@cloudscape-design/components 3.0.1383 → 3.0.1384
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app-layout/visual-refresh-toolbar/contexts.d.ts +5 -3
- package/app-layout/visual-refresh-toolbar/contexts.d.ts.map +1 -1
- package/app-layout/visual-refresh-toolbar/contexts.js.map +1 -1
- package/app-layout/visual-refresh-toolbar/interfaces.d.ts +3 -0
- package/app-layout/visual-refresh-toolbar/interfaces.d.ts.map +1 -1
- package/app-layout/visual-refresh-toolbar/interfaces.js.map +1 -1
- package/app-layout/visual-refresh-toolbar/skeleton/slots.d.ts +4 -1
- package/app-layout/visual-refresh-toolbar/skeleton/slots.d.ts.map +1 -1
- package/app-layout/visual-refresh-toolbar/skeleton/slots.js +8 -5
- package/app-layout/visual-refresh-toolbar/skeleton/slots.js.map +1 -1
- package/app-layout/visual-refresh-toolbar/skeleton/toolbar-container.d.ts +5 -0
- package/app-layout/visual-refresh-toolbar/skeleton/toolbar-container.d.ts.map +1 -1
- package/app-layout/visual-refresh-toolbar/skeleton/toolbar-container.js +3 -3
- package/app-layout/visual-refresh-toolbar/skeleton/toolbar-container.js.map +1 -1
- package/app-layout/visual-refresh-toolbar/state/use-app-layout.d.ts.map +1 -1
- package/app-layout/visual-refresh-toolbar/state/use-app-layout.js +27 -3
- package/app-layout/visual-refresh-toolbar/state/use-app-layout.js.map +1 -1
- package/app-layout/visual-refresh-toolbar/state/use-own-breadcrumbs-props.d.ts +6 -0
- package/app-layout/visual-refresh-toolbar/state/use-own-breadcrumbs-props.d.ts.map +1 -0
- package/app-layout/visual-refresh-toolbar/state/use-own-breadcrumbs-props.js +16 -0
- package/app-layout/visual-refresh-toolbar/state/use-own-breadcrumbs-props.js.map +1 -0
- package/app-layout/visual-refresh-toolbar/toolbar/index.d.ts +5 -1
- package/app-layout/visual-refresh-toolbar/toolbar/index.d.ts.map +1 -1
- package/app-layout/visual-refresh-toolbar/toolbar/index.js +2 -2
- package/app-layout/visual-refresh-toolbar/toolbar/index.js.map +1 -1
- package/app-layout/visual-refresh-toolbar/toolbar/styles.css.js +15 -14
- package/app-layout/visual-refresh-toolbar/toolbar/styles.scoped.css +35 -31
- package/app-layout/visual-refresh-toolbar/toolbar/styles.selectors.js +15 -14
- package/app-layout/visual-refresh-toolbar/widget-areas/before-main-slot.d.ts.map +1 -1
- package/app-layout/visual-refresh-toolbar/widget-areas/before-main-slot.js +2 -2
- package/app-layout/visual-refresh-toolbar/widget-areas/before-main-slot.js.map +1 -1
- package/breadcrumb-group/implementation.d.ts.map +1 -1
- package/breadcrumb-group/implementation.js +30 -1
- package/breadcrumb-group/implementation.js.map +1 -1
- package/container/index.d.ts +3 -7
- package/container/index.d.ts.map +1 -1
- package/container/index.js +4 -3
- package/container/index.js.map +1 -1
- package/container/interfaces.d.ts +7 -0
- package/container/interfaces.d.ts.map +1 -1
- package/container/interfaces.js.map +1 -1
- package/container/internal.d.ts +3 -26
- package/container/internal.d.ts.map +1 -1
- package/container/internal.js +37 -8
- package/container/internal.js.map +1 -1
- package/container/styles.css.js +34 -33
- package/container/styles.scoped.css +77 -56
- package/container/styles.selectors.js +34 -33
- package/copy-to-clipboard/internal.d.ts.map +1 -1
- package/copy-to-clipboard/internal.js +3 -1
- package/copy-to-clipboard/internal.js.map +1 -1
- package/flashbar/styles.css.js +50 -50
- package/flashbar/styles.scoped.css +160 -200
- package/flashbar/styles.selectors.js +50 -50
- package/icon/generated/icons.d.ts +1 -0
- package/icon/generated/icons.d.ts.map +1 -1
- package/icon/generated/icons.js +3 -0
- package/icon/generated/icons.js.map +1 -1
- package/icon-provider/interfaces.d.ts +1 -1
- package/icon-provider/interfaces.d.ts.map +1 -1
- package/icon-provider/interfaces.js.map +1 -1
- package/internal/base-component/styles.scoped.css +1 -1
- package/internal/base-theme/styles.scoped.css +3 -0
- package/internal/environment.js +2 -2
- package/internal/environment.json +2 -2
- package/internal/generated/styles/tokens.d.ts +3 -0
- package/internal/generated/styles/tokens.js +3 -0
- package/internal/generated/theming/index.cjs +65 -0
- package/internal/generated/theming/index.js +65 -0
- package/internal/manifest.json +1 -1
- package/internal/plugins/widget/index.d.ts +5 -1
- package/internal/plugins/widget/index.d.ts.map +1 -1
- package/internal/plugins/widget/index.js +26 -1
- package/internal/plugins/widget/index.js.map +1 -1
- package/internal/plugins/widget/interfaces.d.ts +12 -2
- package/internal/plugins/widget/interfaces.d.ts.map +1 -1
- package/internal/plugins/widget/interfaces.js.map +1 -1
- package/internal/plugins/widget.d.ts +1 -1
- package/internal/plugins/widget.d.ts.map +1 -1
- package/internal/plugins/widget.js +1 -1
- package/internal/plugins/widget.js.map +1 -1
- package/manifest.json +2 -2
- package/package.json +1 -1
- package/plugins/index.d.ts +2 -1
- package/plugins/index.d.ts.map +1 -1
- package/plugins/index.js +2 -1
- package/plugins/index.js.map +1 -1
- package/table/header-cell/styles.css.js +38 -38
- package/table/header-cell/styles.scoped.css +80 -81
- package/table/header-cell/styles.selectors.js +38 -38
- package/table/sticky-columns/interfaces.d.ts +2 -0
- package/table/sticky-columns/interfaces.d.ts.map +1 -1
- package/table/sticky-columns/interfaces.js.map +1 -1
- package/table/sticky-columns/use-sticky-columns.d.ts.map +1 -1
- package/table/sticky-columns/use-sticky-columns.js +11 -5
- package/table/sticky-columns/use-sticky-columns.js.map +1 -1
- package/table/sticky-columns/utils.d.ts.map +1 -1
- package/table/sticky-columns/utils.js +2 -0
- package/table/sticky-columns/utils.js.map +1 -1
- package/table/utils.d.ts +1 -3
- package/table/utils.d.ts.map +1 -1
- package/table/utils.js +12 -5
- package/table/utils.js.map +1 -1
- package/internal/generated/theming/index.cjs.d.ts +0 -4785
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../src/internal/plugins/widget/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { ButtonGroupProps, ItemRuntime } from '../../../button-group/interfaces';\nimport { NonCancelableEventHandler } from '../../../types/events';\n\ninterface Message<Type, Payload> {\n type: Type;\n payload: Payload;\n}\n\ntype DrawerVisibilityChange = (callback: (isVisible: boolean) => void) => void;\n\ninterface MountContentContext {\n onVisibilityChange: DrawerVisibilityChange;\n}\n\ninterface DrawerStateChangeParams {\n isOpen: boolean;\n initiatedByUserAction?: boolean;\n}\n\nexport interface DrawerPayload {\n id: string;\n ariaLabels: {\n content?: string;\n closeButton?: string;\n triggerButton?: string;\n resizeHandle?: string;\n resizeHandleTooltipText?: string;\n expandedModeButton?: string;\n exitExpandedModeButton?: string;\n };\n isExpandable?: boolean;\n resizable?: boolean;\n defaultSize?: number;\n onResize?: NonCancelableEventHandler<{ size: number; id: string }>;\n defaultActive?: boolean;\n trigger?: {\n iconSvg?: string;\n customIcon?: string;\n };\n exitExpandedModeTrigger?: {\n customIcon?: string;\n };\n mountContent: (container: HTMLElement, mountContext: MountContentContext) => void;\n unmountContent: (container: HTMLElement) => void;\n preserveInactiveContent?: boolean;\n onToggle?: NonCancelableEventHandler<DrawerStateChangeParams>;\n mountHeader?: (container: HTMLElement) => void;\n unmountHeader?: (container: HTMLElement) => void;\n headerActions?: ReadonlyArray<ItemRuntime>;\n onHeaderActionClick?: NonCancelableEventHandler<ButtonGroupProps.ItemClickDetails>;\n onToggleFocusMode?: NonCancelableEventHandler<{ isExpanded: boolean }>;\n position?: 'side' | 'bottom';\n}\n\ntype Destructor = () => void;\nexport type MountContentPart<T> = (container: HTMLElement, data: T) => Destructor | void;\n\n/**\n * Describes a single feature entry in the notification drawer.\n *\n * The generic type `T` determines how feature text content is provided:\n * - When `T` is `string`, the values are rendered as plain text.\n * - When `T` is `ReactNode`, you must also provide `mountItem` on the parent\n * `FeatureNotificationsPayload` so the framework can mount the React content\n * into the DOM container.\n */\nexport interface Feature<T> {\n /** Unique identifier used for persistence tracking (seen/unseen state) and list keying. */\n id: string;\n /** Primary title displayed as the feature heading in both the notification drawer and the feature prompt popover. */\n header: T;\n /** Descriptive body rendered below the header in the notification drawer and the feature prompt popover. */\n content: T;\n /** Optional category label rendered between the release date and the content in the notification drawer. */\n contentCategory?: T;\n /** Publication date of the feature. Used for default filtering (last 90 days), descending sort order, and display formatting. */\n releaseDate: Date;\n}\n\nexport interface FeatureNotificationsPersistenceConfig {\n uniqueKey: string;\n}\n\ntype FeatureId = string;\ntype FeatureReleaseDateString = string;\nexport type PersistedFeaturesDict = Record<FeatureId, FeatureReleaseDateString>;\nexport type PersistFeatureNotifications = (\n persistenceConfig: FeatureNotificationsPersistenceConfig,\n value: PersistedFeaturesDict\n) => Promise<void>;\nexport type RetrieveFeatureNotifications = (\n persistenceConfig: FeatureNotificationsPersistenceConfig\n) => Promise<PersistedFeaturesDict>;\n\nexport interface FeatureNotificationsPayload<T> {\n /**\n * Unique identifier for the feature notifications.\n */\n id: string;\n /**\n * When set to `true`, prevents the feature prompt from automatically appearing\n * when unseen features are detected during registration. The prompt can still\n * be shown programmatically via the `showFeaturePromptIfPossible` message.\n *\n * @default false\n */\n suppressFeaturePrompt?: boolean;\n /**\n * List of features to display in the notification drawer. Each feature is filtered\n * by `filterFeatures` (or a default 90-day recency filter), sorted by `releaseDate`\n * in descending order, and tracked for seen/unseen state via persistence. The latest\n * unseen feature is used to populate the feature prompt, and opening the drawer marks\n * all features as seen.\n */\n features: Array<Feature<T>>;\n /**\n * Mounting function used to render each feature's `header`, `content`, and\n * `contentCategory` values into the DOM. Required when `T` is `ReactNode`\n * (or any non-string type) so the framework can mount the content into the\n * provided container element. When `T` is `string`, this can be omitted and\n * values are rendered as plain text.\n *\n * The function receives the target `container` element and the `data` value\n * (one of the feature's text fields), and should return an optional destructor\n * that will be called on unmount to clean up resources (e.g. `root.unmount()`).\n *\n * @example\n * ```ts\n * import { createRoot } from 'react-dom/client';\n *\n * mountItem: (container, data) => {\n * const root = createRoot(container);\n * root.render(data);\n * return () => root.unmount();\n * }\n * ```\n */\n mountItem?: MountContentPart<T>;\n /**\n * Optional URL rendered as a \"View all feature releases\" link at the bottom of the notification\n * drawer, allowing users to navigate to a dedicated page with the full list of\n * features.\n */\n featuresPageLink?: string;\n /**\n * Optional predicate to control which features are displayed. Applied to each\n * feature before sorting. When omitted, a default filter is used that only\n * keeps features with a `releaseDate` within the last 90 days.\n */\n filterFeatures?: (item: Feature<T>) => boolean;\n /**\n * Configuration for persisting seen/unseen state of features. The `uniqueKey`\n * is used as the storage key when saving and retrieving which features the user\n * has already viewed. When omitted, a default key (`'awsui-feature-notifications'`)\n * is used.\n */\n persistenceConfig?: FeatureNotificationsPersistenceConfig;\n /**\n * @internal\n * Optional override for saving the seen/unseen state of features. When provided,\n * this function is called instead of the built-in persistence mechanism when the\n * user opens the notification drawer and all features are marked as seen.\n * Receives the `persistenceConfig` and a dictionary mapping feature IDs to their\n * release date strings.\n */\n __persistFeatureNotifications?: PersistFeatureNotifications;\n /**\n * @internal\n * Optional override for retrieving the previously persisted seen/unseen state of\n * features. When provided, this function is called instead of the built-in retrieval\n * mechanism during registration to determine which features the user has already viewed.\n * Should return a dictionary mapping feature IDs to their release date strings.\n */\n __retrieveFeatureNotifications?: RetrieveFeatureNotifications;\n\n i18nStrings?: {\n titleText?: string;\n viewAllText?: string;\n closeButtonAriaLabel?: string;\n contentAriaLabel?: string;\n triggerButtonAriaLabel?: string;\n resizeHandleAriaLabel?: string;\n };\n}\n\nexport type FeatureNotificationsPayloadPublic<T> = Omit<\n FeatureNotificationsPayload<T>,\n '__persistFeatureNotifications' | '__retrieveFeatureNotifications'\n>;\n\nexport type RegisterDrawerMessage = Message<'registerLeftDrawer' | 'registerBottomDrawer', DrawerPayload>;\nexport type RegisterFeatureNotificationsMessage<T> = Message<\n 'registerFeatureNotifications',\n FeatureNotificationsPayload<T>\n>;\nexport type UpdateDrawerConfigMessage = Message<\n 'updateDrawerConfig',\n Pick<DrawerPayload, 'id'> &\n Partial<Omit<DrawerPayload, 'mountContent' | 'unmountContent' | 'mountHeader' | 'unmountHeader'>>\n>;\nexport type OpenDrawerMessage = Message<'openDrawer', { id: string }>;\nexport type CloseDrawerMessage = Message<'closeDrawer', { id: string }>;\nexport type ResizeDrawerMessage = Message<'resizeDrawer', { id: string; size: number }>;\nexport type ExpandDrawerMessage = Message<'expandDrawer', { id: string }>;\nexport interface ExitExpandedModeMessage {\n type: 'exitExpandedMode';\n}\nexport interface ShowFeaturePromptIfPossible {\n type: 'showFeaturePromptIfPossible';\n}\nexport interface ClearFeatureNotifications {\n type: 'clearFeatureNotifications';\n}\n\nexport type AppLayoutUpdateMessage<T = unknown> =\n | UpdateDrawerConfigMessage\n | OpenDrawerMessage\n | CloseDrawerMessage\n | ResizeDrawerMessage\n | ExpandDrawerMessage\n | ExitExpandedModeMessage\n | RegisterFeatureNotificationsMessage<T>\n | ShowFeaturePromptIfPossible\n | ClearFeatureNotifications;\n\nexport type InitialMessage<T>
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../src/internal/plugins/widget/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport type { BreadcrumbGroupProps } from '../../../breadcrumb-group/interfaces';\nimport { ButtonGroupProps, ItemRuntime } from '../../../button-group/interfaces';\nimport { NonCancelableEventHandler } from '../../../types/events';\n\ninterface Message<Type, Payload> {\n type: Type;\n payload: Payload;\n}\n\ntype DrawerVisibilityChange = (callback: (isVisible: boolean) => void) => void;\n\ninterface MountContentContext {\n onVisibilityChange: DrawerVisibilityChange;\n}\n\ninterface DrawerStateChangeParams {\n isOpen: boolean;\n initiatedByUserAction?: boolean;\n}\n\nexport interface DrawerPayload {\n id: string;\n ariaLabels: {\n content?: string;\n closeButton?: string;\n triggerButton?: string;\n resizeHandle?: string;\n resizeHandleTooltipText?: string;\n expandedModeButton?: string;\n exitExpandedModeButton?: string;\n };\n isExpandable?: boolean;\n resizable?: boolean;\n defaultSize?: number;\n onResize?: NonCancelableEventHandler<{ size: number; id: string }>;\n defaultActive?: boolean;\n trigger?: {\n iconSvg?: string;\n customIcon?: string;\n };\n exitExpandedModeTrigger?: {\n customIcon?: string;\n };\n mountContent: (container: HTMLElement, mountContext: MountContentContext) => void;\n unmountContent: (container: HTMLElement) => void;\n preserveInactiveContent?: boolean;\n onToggle?: NonCancelableEventHandler<DrawerStateChangeParams>;\n mountHeader?: (container: HTMLElement) => void;\n unmountHeader?: (container: HTMLElement) => void;\n headerActions?: ReadonlyArray<ItemRuntime>;\n onHeaderActionClick?: NonCancelableEventHandler<ButtonGroupProps.ItemClickDetails>;\n onToggleFocusMode?: NonCancelableEventHandler<{ isExpanded: boolean }>;\n position?: 'side' | 'bottom';\n}\n\ntype Destructor = () => void;\nexport type MountContentPart<T> = (container: HTMLElement, data: T) => Destructor | void;\n\n/**\n * Describes a single feature entry in the notification drawer.\n *\n * The generic type `T` determines how feature text content is provided:\n * - When `T` is `string`, the values are rendered as plain text.\n * - When `T` is `ReactNode`, you must also provide `mountItem` on the parent\n * `FeatureNotificationsPayload` so the framework can mount the React content\n * into the DOM container.\n */\nexport interface Feature<T> {\n /** Unique identifier used for persistence tracking (seen/unseen state) and list keying. */\n id: string;\n /** Primary title displayed as the feature heading in both the notification drawer and the feature prompt popover. */\n header: T;\n /** Descriptive body rendered below the header in the notification drawer and the feature prompt popover. */\n content: T;\n /** Optional category label rendered between the release date and the content in the notification drawer. */\n contentCategory?: T;\n /** Publication date of the feature. Used for default filtering (last 90 days), descending sort order, and display formatting. */\n releaseDate: Date;\n}\n\nexport interface FeatureNotificationsPersistenceConfig {\n uniqueKey: string;\n}\n\ntype FeatureId = string;\ntype FeatureReleaseDateString = string;\nexport type PersistedFeaturesDict = Record<FeatureId, FeatureReleaseDateString>;\nexport type PersistFeatureNotifications = (\n persistenceConfig: FeatureNotificationsPersistenceConfig,\n value: PersistedFeaturesDict\n) => Promise<void>;\nexport type RetrieveFeatureNotifications = (\n persistenceConfig: FeatureNotificationsPersistenceConfig\n) => Promise<PersistedFeaturesDict>;\n\nexport interface FeatureNotificationsPayload<T> {\n /**\n * Unique identifier for the feature notifications.\n */\n id: string;\n /**\n * When set to `true`, prevents the feature prompt from automatically appearing\n * when unseen features are detected during registration. The prompt can still\n * be shown programmatically via the `showFeaturePromptIfPossible` message.\n *\n * @default false\n */\n suppressFeaturePrompt?: boolean;\n /**\n * List of features to display in the notification drawer. Each feature is filtered\n * by `filterFeatures` (or a default 90-day recency filter), sorted by `releaseDate`\n * in descending order, and tracked for seen/unseen state via persistence. The latest\n * unseen feature is used to populate the feature prompt, and opening the drawer marks\n * all features as seen.\n */\n features: Array<Feature<T>>;\n /**\n * Mounting function used to render each feature's `header`, `content`, and\n * `contentCategory` values into the DOM. Required when `T` is `ReactNode`\n * (or any non-string type) so the framework can mount the content into the\n * provided container element. When `T` is `string`, this can be omitted and\n * values are rendered as plain text.\n *\n * The function receives the target `container` element and the `data` value\n * (one of the feature's text fields), and should return an optional destructor\n * that will be called on unmount to clean up resources (e.g. `root.unmount()`).\n *\n * @example\n * ```ts\n * import { createRoot } from 'react-dom/client';\n *\n * mountItem: (container, data) => {\n * const root = createRoot(container);\n * root.render(data);\n * return () => root.unmount();\n * }\n * ```\n */\n mountItem?: MountContentPart<T>;\n /**\n * Optional URL rendered as a \"View all feature releases\" link at the bottom of the notification\n * drawer, allowing users to navigate to a dedicated page with the full list of\n * features.\n */\n featuresPageLink?: string;\n /**\n * Optional predicate to control which features are displayed. Applied to each\n * feature before sorting. When omitted, a default filter is used that only\n * keeps features with a `releaseDate` within the last 90 days.\n */\n filterFeatures?: (item: Feature<T>) => boolean;\n /**\n * Configuration for persisting seen/unseen state of features. The `uniqueKey`\n * is used as the storage key when saving and retrieving which features the user\n * has already viewed. When omitted, a default key (`'awsui-feature-notifications'`)\n * is used.\n */\n persistenceConfig?: FeatureNotificationsPersistenceConfig;\n /**\n * @internal\n * Optional override for saving the seen/unseen state of features. When provided,\n * this function is called instead of the built-in persistence mechanism when the\n * user opens the notification drawer and all features are marked as seen.\n * Receives the `persistenceConfig` and a dictionary mapping feature IDs to their\n * release date strings.\n */\n __persistFeatureNotifications?: PersistFeatureNotifications;\n /**\n * @internal\n * Optional override for retrieving the previously persisted seen/unseen state of\n * features. When provided, this function is called instead of the built-in retrieval\n * mechanism during registration to determine which features the user has already viewed.\n * Should return a dictionary mapping feature IDs to their release date strings.\n */\n __retrieveFeatureNotifications?: RetrieveFeatureNotifications;\n\n i18nStrings?: {\n titleText?: string;\n viewAllText?: string;\n closeButtonAriaLabel?: string;\n contentAriaLabel?: string;\n triggerButtonAriaLabel?: string;\n resizeHandleAriaLabel?: string;\n };\n}\n\nexport type FeatureNotificationsPayloadPublic<T> = Omit<\n FeatureNotificationsPayload<T>,\n '__persistFeatureNotifications' | '__retrieveFeatureNotifications'\n>;\n\nexport interface BreadcrumbsConsumerPayload {\n /** Called when the current breadcrumbs change. */\n onBreadcrumbsChange: (breadcrumbs: BreadcrumbGroupProps | null) => void;\n}\n\nexport interface BreadcrumbsConsumerRegistration {\n unregister: () => void;\n}\n\nexport type RegisterBreadcrumbsExternalConsumerMessage = Message<\n 'registerBreadcrumbsExternalConsumer',\n BreadcrumbsConsumerPayload\n>;\nexport type UnregisterBreadcrumbsExternalConsumerMessage = Message<'unregisterBreadcrumbsExternalConsumer', undefined>;\n\nexport type RegisterDrawerMessage = Message<'registerLeftDrawer' | 'registerBottomDrawer', DrawerPayload>;\nexport type RegisterFeatureNotificationsMessage<T> = Message<\n 'registerFeatureNotifications',\n FeatureNotificationsPayload<T>\n>;\nexport type UpdateDrawerConfigMessage = Message<\n 'updateDrawerConfig',\n Pick<DrawerPayload, 'id'> &\n Partial<Omit<DrawerPayload, 'mountContent' | 'unmountContent' | 'mountHeader' | 'unmountHeader'>>\n>;\nexport type OpenDrawerMessage = Message<'openDrawer', { id: string }>;\nexport type CloseDrawerMessage = Message<'closeDrawer', { id: string }>;\nexport type ResizeDrawerMessage = Message<'resizeDrawer', { id: string; size: number }>;\nexport type ExpandDrawerMessage = Message<'expandDrawer', { id: string }>;\nexport interface ExitExpandedModeMessage {\n type: 'exitExpandedMode';\n}\nexport interface ShowFeaturePromptIfPossible {\n type: 'showFeaturePromptIfPossible';\n}\nexport interface ClearFeatureNotifications {\n type: 'clearFeatureNotifications';\n}\n\nexport type AppLayoutUpdateMessage<T = unknown> =\n | UpdateDrawerConfigMessage\n | OpenDrawerMessage\n | CloseDrawerMessage\n | ResizeDrawerMessage\n | ExpandDrawerMessage\n | ExitExpandedModeMessage\n | RegisterFeatureNotificationsMessage<T>\n | ShowFeaturePromptIfPossible\n | ClearFeatureNotifications\n | UnregisterBreadcrumbsExternalConsumerMessage;\n\nexport type InitialMessage<T> =\n | RegisterDrawerMessage\n | RegisterFeatureNotificationsMessage<T>\n | RegisterBreadcrumbsExternalConsumerMessage;\n\nexport type WidgetMessage<T = unknown> = InitialMessage<T> | AppLayoutUpdateMessage<T>;\n"]}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export * from './widget/interfaces';
|
|
2
2
|
export { isAppLayoutReady, whenAppLayoutReady } from './widget/core';
|
|
3
|
-
export { registerLeftDrawer, registerBottomDrawer, registerFeatureNotifications, updateDrawer, showFeaturePromptIfPossible, clearFeatureNotifications } from './widget/index';
|
|
3
|
+
export { registerLeftDrawer, registerBottomDrawer, registerFeatureNotifications, updateDrawer, showFeaturePromptIfPossible, clearFeatureNotifications, registerBreadcrumbsConsumer } from './widget/index';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widget.d.ts","sourceRoot":"","sources":["../../../../src/internal/plugins/widget.ts"],"names":[],"mappings":"AAEA,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACrE,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,4BAA4B,EAC5B,YAAY,EACZ,2BAA2B,EAC3B,yBAAyB,
|
|
1
|
+
{"version":3,"file":"widget.d.ts","sourceRoot":"","sources":["../../../../src/internal/plugins/widget.ts"],"names":[],"mappings":"AAEA,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACrE,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,4BAA4B,EAC5B,YAAY,EACZ,2BAA2B,EAC3B,yBAAyB,EACzB,2BAA2B,GAC5B,MAAM,gBAAgB,CAAC"}
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
export * from './widget/interfaces';
|
|
4
4
|
export { isAppLayoutReady, whenAppLayoutReady } from './widget/core';
|
|
5
|
-
export { registerLeftDrawer, registerBottomDrawer, registerFeatureNotifications, updateDrawer, showFeaturePromptIfPossible, clearFeatureNotifications, } from './widget/index';
|
|
5
|
+
export { registerLeftDrawer, registerBottomDrawer, registerFeatureNotifications, updateDrawer, showFeaturePromptIfPossible, clearFeatureNotifications, registerBreadcrumbsConsumer, } from './widget/index';
|
|
6
6
|
//# sourceMappingURL=widget.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widget.js","sourceRoot":"","sources":["../../../../src/internal/plugins/widget.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACrE,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,4BAA4B,EAC5B,YAAY,EACZ,2BAA2B,EAC3B,yBAAyB,
|
|
1
|
+
{"version":3,"file":"widget.js","sourceRoot":"","sources":["../../../../src/internal/plugins/widget.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACrE,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,4BAA4B,EAC5B,YAAY,EACZ,2BAA2B,EAC3B,yBAAyB,EACzB,2BAA2B,GAC5B,MAAM,gBAAgB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nexport * from './widget/interfaces';\nexport { isAppLayoutReady, whenAppLayoutReady } from './widget/core';\nexport {\n registerLeftDrawer,\n registerBottomDrawer,\n registerFeatureNotifications,\n updateDrawer,\n showFeaturePromptIfPossible,\n clearFeatureNotifications,\n registerBreadcrumbsConsumer,\n} from './widget/index';\n"]}
|
package/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -359,7 +359,7 @@
|
|
|
359
359
|
"./internal/base-theme/styles.css.js",
|
|
360
360
|
"./internal/base-component/styles.css.js"
|
|
361
361
|
],
|
|
362
|
-
"version": "3.0.
|
|
362
|
+
"version": "3.0.1384",
|
|
363
363
|
"repository": {
|
|
364
364
|
"type": "git",
|
|
365
365
|
"url": "https://github.com/cloudscape-design/components.git"
|
package/plugins/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from '../internal/plugins/widget/interfaces';
|
|
2
|
-
import { clearFeatureNotifications, registerFeatureNotificationsPublic, showFeaturePromptIfPossible } from '../internal/plugins/widget/index';
|
|
2
|
+
import { clearFeatureNotifications, registerBreadcrumbsConsumer, registerFeatureNotificationsPublic, showFeaturePromptIfPossible } from '../internal/plugins/widget/index';
|
|
3
|
+
export { registerBreadcrumbsConsumer };
|
|
3
4
|
export declare const featureNotifications: {
|
|
4
5
|
registerFeatureNotifications: typeof registerFeatureNotificationsPublic;
|
|
5
6
|
showFeaturePromptIfPossible: typeof showFeaturePromptIfPossible;
|
package/plugins/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/index.ts"],"names":[],"mappings":"AAGA,cAAc,uCAAuC,CAAC;AACtD,OAAO,EACL,yBAAyB,EACzB,kCAAkC,EAClC,2BAA2B,EAC5B,MAAM,kCAAkC,CAAC;AAE1C,eAAO,MAAM,oBAAoB;;;;CAIhC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/index.ts"],"names":[],"mappings":"AAGA,cAAc,uCAAuC,CAAC;AACtD,OAAO,EACL,yBAAyB,EACzB,2BAA2B,EAC3B,kCAAkC,EAClC,2BAA2B,EAC5B,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAE,2BAA2B,EAAE,CAAC;AAEvC,eAAO,MAAM,oBAAoB;;;;CAIhC,CAAC"}
|
package/plugins/index.js
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
'use client';
|
|
4
4
|
export * from '../internal/plugins/widget/interfaces';
|
|
5
|
-
import { clearFeatureNotifications, registerFeatureNotificationsPublic, showFeaturePromptIfPossible, } from '../internal/plugins/widget/index';
|
|
5
|
+
import { clearFeatureNotifications, registerBreadcrumbsConsumer, registerFeatureNotificationsPublic, showFeaturePromptIfPossible, } from '../internal/plugins/widget/index';
|
|
6
|
+
export { registerBreadcrumbsConsumer };
|
|
6
7
|
export const featureNotifications = {
|
|
7
8
|
registerFeatureNotifications: registerFeatureNotificationsPublic,
|
|
8
9
|
showFeaturePromptIfPossible,
|
package/plugins/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/plugins/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,YAAY,CAAC;AACb,cAAc,uCAAuC,CAAC;AACtD,OAAO,EACL,yBAAyB,EACzB,kCAAkC,EAClC,2BAA2B,GAC5B,MAAM,kCAAkC,CAAC;AAE1C,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,4BAA4B,EAAE,kCAAkC;IAChE,2BAA2B;IAC3B,yBAAyB;CAC1B,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n'use client';\nexport * from '../internal/plugins/widget/interfaces';\nimport {\n clearFeatureNotifications,\n registerFeatureNotificationsPublic,\n showFeaturePromptIfPossible,\n} from '../internal/plugins/widget/index';\n\nexport const featureNotifications = {\n registerFeatureNotifications: registerFeatureNotificationsPublic,\n showFeaturePromptIfPossible,\n clearFeatureNotifications,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/plugins/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,YAAY,CAAC;AACb,cAAc,uCAAuC,CAAC;AACtD,OAAO,EACL,yBAAyB,EACzB,2BAA2B,EAC3B,kCAAkC,EAClC,2BAA2B,GAC5B,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAE,2BAA2B,EAAE,CAAC;AAEvC,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,4BAA4B,EAAE,kCAAkC;IAChE,2BAA2B;IAC3B,yBAAyB;CAC1B,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n'use client';\nexport * from '../internal/plugins/widget/interfaces';\nimport {\n clearFeatureNotifications,\n registerBreadcrumbsConsumer,\n registerFeatureNotificationsPublic,\n showFeaturePromptIfPossible,\n} from '../internal/plugins/widget/index';\n\nexport { registerBreadcrumbsConsumer };\n\nexport const featureNotifications = {\n registerFeatureNotifications: registerFeatureNotificationsPublic,\n showFeaturePromptIfPossible,\n clearFeatureNotifications,\n};\n"]}
|
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"header-cell": "awsui_header-
|
|
5
|
-
"header-cell-fake-focus": "awsui_header-cell-fake-
|
|
6
|
-
"header-cell-group": "awsui_header-cell-
|
|
7
|
-
"header-cell-grouped": "awsui_header-cell-
|
|
8
|
-
"header-cell-spans-rows": "awsui_header-cell-spans-
|
|
9
|
-
"resize-divider": "awsui_resize-
|
|
10
|
-
"header-cell-sticky": "awsui_header-cell-
|
|
11
|
-
"header-cell-stuck": "awsui_header-cell-
|
|
12
|
-
"header-cell-variant-full-page": "awsui_header-cell-variant-full-
|
|
13
|
-
"header-cell-hidden": "awsui_header-cell-
|
|
14
|
-
"header-cell-variant-embedded": "awsui_header-cell-variant-
|
|
15
|
-
"is-visual-refresh": "awsui_is-visual-
|
|
16
|
-
"sticky-cell": "awsui_sticky-
|
|
17
|
-
"header-cell-variant-borderless": "awsui_header-cell-variant-
|
|
18
|
-
"header-cell-sortable": "awsui_header-cell-
|
|
19
|
-
"table-variant-full-page": "awsui_table-variant-full-
|
|
20
|
-
"sticky-cell-pad-left": "awsui_sticky-cell-pad-
|
|
21
|
-
"has-selection": "awsui_has-
|
|
22
|
-
"sticky-cell-last-inline-start": "awsui_sticky-cell-last-inline-
|
|
23
|
-
"sticky-cell-last-inline-end": "awsui_sticky-cell-last-inline-
|
|
24
|
-
"sorting-icon": "awsui_sorting-
|
|
25
|
-
"header-cell-main": "awsui_header-cell-
|
|
26
|
-
"sort-priority-badge": "awsui_sort-priority-
|
|
27
|
-
"edit-icon": "awsui_edit-
|
|
28
|
-
"header-cell-content": "awsui_header-cell-
|
|
29
|
-
"header-cell-content-expandable": "awsui_header-cell-content-
|
|
30
|
-
"header-cell-content-multi-sorted": "awsui_header-cell-content-multi-
|
|
31
|
-
"header-cell-disabled": "awsui_header-cell-
|
|
32
|
-
"header-cell-sorted": "awsui_header-cell-
|
|
33
|
-
"header-cell-main-with-menu": "awsui_header-cell-main-with-
|
|
34
|
-
"header-cell-content-with-menu": "awsui_header-cell-content-with-
|
|
35
|
-
"header-cell-text": "awsui_header-cell-
|
|
36
|
-
"header-cell-text-wrap": "awsui_header-cell-text-
|
|
37
|
-
"header-cell-ascending": "awsui_header-cell-
|
|
38
|
-
"header-cell-descending": "awsui_header-cell-
|
|
39
|
-
"has-striped-rows": "awsui_has-striped-
|
|
40
|
-
"sticky-cell-pad-inline-start": "awsui_sticky-cell-pad-inline-
|
|
41
|
-
"header-cell-resizable": "awsui_header-cell-
|
|
4
|
+
"header-cell": "awsui_header-cell_1spae_11bbl_9",
|
|
5
|
+
"header-cell-fake-focus": "awsui_header-cell-fake-focus_1spae_11bbl_43",
|
|
6
|
+
"header-cell-group": "awsui_header-cell-group_1spae_11bbl_64",
|
|
7
|
+
"header-cell-grouped": "awsui_header-cell-grouped_1spae_11bbl_64",
|
|
8
|
+
"header-cell-spans-rows": "awsui_header-cell-spans-rows_1spae_11bbl_64",
|
|
9
|
+
"resize-divider": "awsui_resize-divider_1spae_11bbl_69",
|
|
10
|
+
"header-cell-sticky": "awsui_header-cell-sticky_1spae_11bbl_72",
|
|
11
|
+
"header-cell-stuck": "awsui_header-cell-stuck_1spae_11bbl_78",
|
|
12
|
+
"header-cell-variant-full-page": "awsui_header-cell-variant-full-page_1spae_11bbl_78",
|
|
13
|
+
"header-cell-hidden": "awsui_header-cell-hidden_1spae_11bbl_84",
|
|
14
|
+
"header-cell-variant-embedded": "awsui_header-cell-variant-embedded_1spae_11bbl_87",
|
|
15
|
+
"is-visual-refresh": "awsui_is-visual-refresh_1spae_11bbl_87",
|
|
16
|
+
"sticky-cell": "awsui_sticky-cell_1spae_11bbl_87",
|
|
17
|
+
"header-cell-variant-borderless": "awsui_header-cell-variant-borderless_1spae_11bbl_87",
|
|
18
|
+
"header-cell-sortable": "awsui_header-cell-sortable_1spae_11bbl_90",
|
|
19
|
+
"table-variant-full-page": "awsui_table-variant-full-page_1spae_11bbl_111",
|
|
20
|
+
"sticky-cell-pad-left": "awsui_sticky-cell-pad-left_1spae_11bbl_114",
|
|
21
|
+
"has-selection": "awsui_has-selection_1spae_11bbl_114",
|
|
22
|
+
"sticky-cell-last-inline-start": "awsui_sticky-cell-last-inline-start_1spae_11bbl_117",
|
|
23
|
+
"sticky-cell-last-inline-end": "awsui_sticky-cell-last-inline-end_1spae_11bbl_129",
|
|
24
|
+
"sorting-icon": "awsui_sorting-icon_1spae_11bbl_138",
|
|
25
|
+
"header-cell-main": "awsui_header-cell-main_1spae_11bbl_146",
|
|
26
|
+
"sort-priority-badge": "awsui_sort-priority-badge_1spae_11bbl_151",
|
|
27
|
+
"edit-icon": "awsui_edit-icon_1spae_11bbl_155",
|
|
28
|
+
"header-cell-content": "awsui_header-cell-content_1spae_11bbl_161",
|
|
29
|
+
"header-cell-content-expandable": "awsui_header-cell-content-expandable_1spae_11bbl_167",
|
|
30
|
+
"header-cell-content-multi-sorted": "awsui_header-cell-content-multi-sorted_1spae_11bbl_225",
|
|
31
|
+
"header-cell-disabled": "awsui_header-cell-disabled_1spae_11bbl_228",
|
|
32
|
+
"header-cell-sorted": "awsui_header-cell-sorted_1spae_11bbl_228",
|
|
33
|
+
"header-cell-main-with-menu": "awsui_header-cell-main-with-menu_1spae_11bbl_232",
|
|
34
|
+
"header-cell-content-with-menu": "awsui_header-cell-content-with-menu_1spae_11bbl_237",
|
|
35
|
+
"header-cell-text": "awsui_header-cell-text_1spae_11bbl_269",
|
|
36
|
+
"header-cell-text-wrap": "awsui_header-cell-text-wrap_1spae_11bbl_273",
|
|
37
|
+
"header-cell-ascending": "awsui_header-cell-ascending_1spae_11bbl_279",
|
|
38
|
+
"header-cell-descending": "awsui_header-cell-descending_1spae_11bbl_280",
|
|
39
|
+
"has-striped-rows": "awsui_has-striped-rows_1spae_11bbl_394",
|
|
40
|
+
"sticky-cell-pad-inline-start": "awsui_sticky-cell-pad-inline-start_1spae_11bbl_394",
|
|
41
|
+
"header-cell-resizable": "awsui_header-cell-resizable_1spae_11bbl_406"
|
|
42
42
|
};
|
|
43
43
|
|