diff --git a/package.json b/package.json index 16aa36496a..d511171d45 100644 --- a/package.json +++ b/package.json @@ -158,18 +158,13 @@ "size-limit": [ { "path": "lib/components/internal/plugins/index.js", - "limit": "2.5 kB" + "brotli": false, + "limit": "11 kB" }, { - "path": [ - "lib/components/app-layout/visual-refresh-toolbar/exports.js", - "lib/components/split-panel/implementation.js", - "lib/components/breadcrumb-group/implementation.js", - "lib/components/drawer/implementation.js", - "lib/components/side-navigation/implementation.js", - "lib/components/help-panel/implementation.js" - ], - "limit": "140 kB" + "path": "lib/components/internal/widget-exports.js", + "brotli": false, + "limit": "795 kB" } ], "browserslist": [ diff --git a/src/internal/widget-exports.ts b/src/internal/widget-exports.ts new file mode 100644 index 0000000000..f4e750edac --- /dev/null +++ b/src/internal/widget-exports.ts @@ -0,0 +1,19 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 +export { PACKAGE_VERSION } from './environment'; +export { + AppLayoutDrawerImplementation as AppLayoutDrawer, + AppLayoutGlobalDrawersImplementation as AppLayoutGlobalDrawers, +} from '../app-layout/visual-refresh-toolbar/drawer'; +export { AppLayoutNavigationImplementation as AppLayoutNavigation } from '../app-layout/visual-refresh-toolbar/navigation'; +export { AppLayoutNotificationsImplementation as AppLayoutNotifications } from '../app-layout/visual-refresh-toolbar/notifications'; +export { + AppLayoutSplitPanelDrawerBottomImplementation as AppLayoutSplitPanelBottom, + AppLayoutSplitPanelDrawerSideImplementation as AppLayoutSplitPanelSide, +} from '../app-layout/visual-refresh-toolbar/split-panel'; +export { AppLayoutToolbarImplementation as AppLayoutToolbar } from '../app-layout/visual-refresh-toolbar/toolbar'; +export { SplitPanelImplementation as SplitPanel } from '../split-panel/implementation'; +export { BreadcrumbGroupImplementation as BreadcrumbGroup } from '../breadcrumb-group/implementation'; +export { DrawerImplementation as Drawer } from '../drawer/implementation'; +export { SideNavigationImplementation as SideNavigation } from '../side-navigation/implementation'; +export { HelpPanelImplementation as HelpPanel } from '../help-panel/implementation';