Skip to content
Next Next commit
Started to move share menu to bundle
  • Loading branch information
mszylkowski committed Dec 10, 2021
commit 34674a270ad3b49f5b4c77124e50b602d4aad614
8 changes: 8 additions & 0 deletions build-system/compile/bundles.config.extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -885,6 +885,14 @@
"hasCss": true
}
},
{
"name": "amp-story-share-menu",
"version": "0.1",
"latestVersion": "0.1",
"options": {
"hasCss": true
}
},
{
"name": "amp-story-shopping",
"version": "0.1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
import {Keys_Enum} from '#core/constants/key-codes';
import * as Preact from '#core/dom/jsx';
import {
ANALYTICS_TAG_NAME,
StoryAnalyticsEvent,
getAnalyticsService,
} from './story-analytics';

import {Services} from '#service';
import {LocalizedStringId_Enum} from '#service/localization/strings';

import {CSS} from '../../../build/amp-story-share-menu-1.0.css';
import {getAmpdoc} from '../../../src/service-helpers';
import {localize} from '../../amp-story/1.0/amp-story-localization-service';
import {ShareWidget} from '../../amp-story/1.0/amp-story-share';
import {
Action,
StateProperty,
UIType,
getStoreService,
} from './amp-story-store-service';
import {CSS} from '../../../build/amp-story-share-menu-1.0.css';
import {Keys_Enum} from '#core/constants/key-codes';
import {LocalizedStringId_Enum} from '#service/localization/strings';
import {Services} from '#service';
import {ShareWidget} from './amp-story-share';
import {createShadowRootWithStyle} from './utils';
import {getAmpdoc} from '../../../src/service-helpers';
import {localize} from './amp-story-localization-service';
} from '../../amp-story/1.0/amp-story-store-service';
import {
ANALYTICS_TAG_NAME,
StoryAnalyticsEvent,
getAnalyticsService,
} from '../../amp-story/1.0/story-analytics';
import {createShadowRootWithStyle} from '../../amp-story/1.0/utils';

/** @const {string} Class to toggle the share menu. */
export const VISIBLE_CLASS = 'i-amphtml-story-share-menu-visible';
Expand Down
2 changes: 1 addition & 1 deletion extensions/amp-story/1.0/amp-story.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ import {LiveStoryManager} from './live-story-manager';
import {MediaPool, MediaType} from './media-pool';
import {PaginationButtons} from './pagination-buttons';
import {Services} from '#service';
import {ShareMenu} from './amp-story-share-menu';
import {ShareMenu} from '../../amp-story-share-menu/0.1/amp-story-share-menu';
import {SwipeXYRecognizer} from '../../../src/gesture-recognizers';
import {SystemLayer} from './amp-story-system-layer';
import {renderUnsupportedBrowserLayer} from './amp-story-unsupported-browser-layer';
Expand Down