@cloudscape-design/components 3.0.749 → 3.0.750
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/alert/actions-wrapper/index.d.ts +1 -1
- package/alert/actions-wrapper/index.d.ts.map +1 -1
- package/alert/actions-wrapper/index.js +2 -2
- package/alert/actions-wrapper/index.js.map +1 -1
- package/alert/internal.d.ts.map +1 -1
- package/alert/internal.js +5 -15
- package/alert/internal.js.map +1 -1
- package/alert/styles.css.js +25 -27
- package/alert/styles.scoped.css +39 -45
- package/alert/styles.selectors.js +25 -27
- package/app-layout/visual-refresh-toolbar/toolbar/styles.css.js +12 -12
- package/app-layout/visual-refresh-toolbar/toolbar/styles.scoped.css +15 -15
- package/app-layout/visual-refresh-toolbar/toolbar/styles.selectors.js +12 -12
- package/breadcrumb-group/implementation.d.ts.map +1 -1
- package/breadcrumb-group/implementation.js +1 -1
- package/breadcrumb-group/implementation.js.map +1 -1
- package/breadcrumb-group/interfaces.d.ts +1 -1
- package/breadcrumb-group/interfaces.js.map +1 -1
- package/button-dropdown/interfaces.d.ts +0 -7
- package/button-dropdown/interfaces.d.ts.map +1 -1
- package/button-dropdown/interfaces.js.map +1 -1
- package/button-dropdown/internal.d.ts.map +1 -1
- package/button-dropdown/internal.js +2 -2
- package/button-dropdown/internal.js.map +1 -1
- package/button-dropdown/item-element/index.d.ts +1 -1
- package/button-dropdown/item-element/index.d.ts.map +1 -1
- package/button-dropdown/item-element/index.js +4 -4
- package/button-dropdown/item-element/index.js.map +1 -1
- package/button-dropdown/item-element/styles.css.js +12 -13
- package/button-dropdown/item-element/styles.scoped.css +14 -52
- package/button-dropdown/item-element/styles.selectors.js +12 -13
- package/button-dropdown/items-list.d.ts +1 -1
- package/button-dropdown/items-list.d.ts.map +1 -1
- package/button-dropdown/items-list.js +2 -2
- package/button-dropdown/items-list.js.map +1 -1
- package/flashbar/collapsible-flashbar.d.ts.map +1 -1
- package/flashbar/collapsible-flashbar.js +5 -13
- package/flashbar/collapsible-flashbar.js.map +1 -1
- package/flashbar/flash.d.ts.map +1 -1
- package/flashbar/flash.js +7 -19
- package/flashbar/flash.js.map +1 -1
- package/flashbar/non-collapsible-flashbar.d.ts.map +1 -1
- package/flashbar/non-collapsible-flashbar.js +2 -4
- package/flashbar/non-collapsible-flashbar.js.map +1 -1
- package/flashbar/styles.css.js +47 -50
- package/flashbar/styles.scoped.css +146 -152
- package/flashbar/styles.selectors.js +47 -50
- package/internal/components/tooltip/index.d.ts +1 -3
- package/internal/components/tooltip/index.d.ts.map +1 -1
- package/internal/components/tooltip/index.js +2 -2
- package/internal/components/tooltip/index.js.map +1 -1
- package/internal/environment.js +1 -1
- package/internal/environment.json +1 -1
- package/internal/manifest.json +1 -1
- package/internal/plugins/api.d.ts +0 -9
- package/internal/plugins/api.d.ts.map +1 -1
- package/internal/plugins/api.js +0 -7
- package/internal/plugins/api.js.map +1 -1
- package/internal/plugins/helpers/index.d.ts +0 -1
- package/internal/plugins/helpers/index.d.ts.map +1 -1
- package/internal/plugins/helpers/index.js +0 -1
- package/internal/plugins/helpers/index.js.map +1 -1
- package/internal/plugins/helpers/use-discovered-action.d.ts +2 -2
- package/internal/plugins/helpers/use-discovered-action.d.ts.map +1 -1
- package/internal/plugins/helpers/use-discovered-action.js.map +1 -1
- package/package.json +1 -1
- package/property-filter/styles.css.js +38 -38
- package/property-filter/styles.scoped.css +44 -40
- package/property-filter/styles.selectors.js +38 -38
- package/side-navigation/implementation.d.ts +1 -1
- package/side-navigation/implementation.d.ts.map +1 -1
- package/side-navigation/implementation.js +1 -2
- package/side-navigation/implementation.js.map +1 -1
- package/side-navigation/interfaces.d.ts +0 -4
- package/side-navigation/interfaces.d.ts.map +1 -1
- package/side-navigation/interfaces.js.map +1 -1
- package/side-navigation/styles.css.js +29 -30
- package/side-navigation/styles.scoped.css +41 -46
- package/side-navigation/styles.selectors.js +29 -30
- package/test-utils/dom/side-navigation/index.d.ts +0 -1
- package/test-utils/dom/side-navigation/index.js +0 -3
- package/test-utils/dom/side-navigation/index.js.map +1 -1
- package/test-utils/selectors/side-navigation/index.d.ts +0 -1
- package/test-utils/selectors/side-navigation/index.js +0 -3
- package/test-utils/selectors/side-navigation/index.js.map +1 -1
- package/test-utils/tsconfig.tsbuildinfo +1 -1
- package/flashbar/analytics-metadata/interfaces.d.ts +0 -36
- package/flashbar/analytics-metadata/interfaces.d.ts.map +0 -1
- package/flashbar/analytics-metadata/interfaces.js +0 -4
- package/flashbar/analytics-metadata/interfaces.js.map +0 -1
- package/flashbar/analytics-metadata/styles.css.js +0 -6
- package/flashbar/analytics-metadata/styles.scoped.css +0 -7
- package/flashbar/analytics-metadata/styles.selectors.js +0 -7
- package/flashbar/analytics-metadata/utils.d.ts +0 -7
- package/flashbar/analytics-metadata/utils.d.ts.map +0 -1
- package/flashbar/analytics-metadata/utils.js +0 -33
- package/flashbar/analytics-metadata/utils.js.map +0 -1
- package/internal/components/tooltip/registry.d.ts +0 -4
- package/internal/components/tooltip/registry.d.ts.map +0 -1
- package/internal/components/tooltip/registry.js +0 -28
- package/internal/components/tooltip/registry.js.map +0 -1
- package/internal/plugins/controllers/alert-flash-content.d.ts +0 -46
- package/internal/plugins/controllers/alert-flash-content.d.ts.map +0 -1
- package/internal/plugins/controllers/alert-flash-content.js +0 -59
- package/internal/plugins/controllers/alert-flash-content.js.map +0 -1
- package/internal/plugins/helpers/use-discovered-content.d.ts +0 -15
- package/internal/plugins/helpers/use-discovered-content.d.ts.map +0 -1
- package/internal/plugins/helpers/use-discovered-content.js +0 -82
- package/internal/plugins/helpers/use-discovered-content.js.map +0 -1
|
@@ -2,55 +2,52 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"flash-with-motion": "awsui_flash-with-
|
|
6
|
-
"enter": "
|
|
7
|
-
"flash-body": "awsui_flash-
|
|
8
|
-
"flash-message": "awsui_flash-
|
|
9
|
-
"flash-header": "awsui_flash-
|
|
10
|
-
"flash-content": "awsui_flash-
|
|
11
|
-
"action-button-wrapper": "awsui_action-button-
|
|
12
|
-
"dismiss-button-wrapper": "awsui_dismiss-button-
|
|
13
|
-
"flash-icon": "awsui_flash-
|
|
14
|
-
"entering": "
|
|
15
|
-
"entered": "
|
|
16
|
-
"exiting": "
|
|
17
|
-
"stack": "
|
|
18
|
-
"animation-running": "awsui_animation-
|
|
19
|
-
"item": "
|
|
20
|
-
"flash-list-item": "awsui_flash-list-
|
|
21
|
-
"notification-bar": "awsui_notification-
|
|
22
|
-
"collapsed": "
|
|
23
|
-
"animation-ready": "awsui_animation-
|
|
24
|
-
"expanded-only": "awsui_expanded-
|
|
25
|
-
"expanded": "
|
|
26
|
-
"flash": "
|
|
27
|
-
"collapsible": "
|
|
28
|
-
"short-list": "awsui_short-
|
|
29
|
-
"visual-refresh": "awsui_visual-
|
|
30
|
-
"status": "
|
|
31
|
-
"header": "
|
|
32
|
-
"item-count": "awsui_item-
|
|
33
|
-
"button": "
|
|
34
|
-
"type-count": "awsui_type-
|
|
35
|
-
"count-number": "awsui_count-
|
|
36
|
-
"icon": "
|
|
37
|
-
"floating": "
|
|
38
|
-
"flashbar": "
|
|
39
|
-
"flash-refresh": "awsui_flash-
|
|
40
|
-
"flash-list": "awsui_flash-
|
|
41
|
-
"flash-focus-container": "awsui_flash-focus-
|
|
42
|
-
"flash-text": "awsui_flash-
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"flash-type-
|
|
51
|
-
"flash-type-
|
|
52
|
-
"flash-type-info": "awsui_flash-type-info_1q84n_iol8n_907",
|
|
53
|
-
"flash-type-in-progress": "awsui_flash-type-in-progress_1q84n_iol8n_908",
|
|
54
|
-
"flash-type-warning": "awsui_flash-type-warning_1q84n_iol8n_912"
|
|
5
|
+
"flash-with-motion": "awsui_flash-with-motion_1q84n_v26q8_153",
|
|
6
|
+
"enter": "awsui_enter_1q84n_v26q8_153",
|
|
7
|
+
"flash-body": "awsui_flash-body_1q84n_v26q8_167",
|
|
8
|
+
"flash-message": "awsui_flash-message_1q84n_v26q8_167",
|
|
9
|
+
"flash-header": "awsui_flash-header_1q84n_v26q8_167",
|
|
10
|
+
"flash-content": "awsui_flash-content_1q84n_v26q8_168",
|
|
11
|
+
"action-button-wrapper": "awsui_action-button-wrapper_1q84n_v26q8_169",
|
|
12
|
+
"dismiss-button-wrapper": "awsui_dismiss-button-wrapper_1q84n_v26q8_170",
|
|
13
|
+
"flash-icon": "awsui_flash-icon_1q84n_v26q8_193",
|
|
14
|
+
"entering": "awsui_entering_1q84n_v26q8_206",
|
|
15
|
+
"entered": "awsui_entered_1q84n_v26q8_227",
|
|
16
|
+
"exiting": "awsui_exiting_1q84n_v26q8_332",
|
|
17
|
+
"stack": "awsui_stack_1q84n_v26q8_366",
|
|
18
|
+
"animation-running": "awsui_animation-running_1q84n_v26q8_366",
|
|
19
|
+
"item": "awsui_item_1q84n_v26q8_366",
|
|
20
|
+
"flash-list-item": "awsui_flash-list-item_1q84n_v26q8_367",
|
|
21
|
+
"notification-bar": "awsui_notification-bar_1q84n_v26q8_368",
|
|
22
|
+
"collapsed": "awsui_collapsed_1q84n_v26q8_388",
|
|
23
|
+
"animation-ready": "awsui_animation-ready_1q84n_v26q8_388",
|
|
24
|
+
"expanded-only": "awsui_expanded-only_1q84n_v26q8_388",
|
|
25
|
+
"expanded": "awsui_expanded_1q84n_v26q8_388",
|
|
26
|
+
"flash": "awsui_flash_1q84n_v26q8_153",
|
|
27
|
+
"collapsible": "awsui_collapsible_1q84n_v26q8_444",
|
|
28
|
+
"short-list": "awsui_short-list_1q84n_v26q8_450",
|
|
29
|
+
"visual-refresh": "awsui_visual-refresh_1q84n_v26q8_450",
|
|
30
|
+
"status": "awsui_status_1q84n_v26q8_597",
|
|
31
|
+
"header": "awsui_header_1q84n_v26q8_597",
|
|
32
|
+
"item-count": "awsui_item-count_1q84n_v26q8_598",
|
|
33
|
+
"button": "awsui_button_1q84n_v26q8_599",
|
|
34
|
+
"type-count": "awsui_type-count_1q84n_v26q8_632",
|
|
35
|
+
"count-number": "awsui_count-number_1q84n_v26q8_632",
|
|
36
|
+
"icon": "awsui_icon_1q84n_v26q8_666",
|
|
37
|
+
"floating": "awsui_floating_1q84n_v26q8_707",
|
|
38
|
+
"flashbar": "awsui_flashbar_1q84n_v26q8_711",
|
|
39
|
+
"flash-refresh": "awsui_flash-refresh_1q84n_v26q8_786",
|
|
40
|
+
"flash-list": "awsui_flash-list_1q84n_v26q8_367",
|
|
41
|
+
"flash-focus-container": "awsui_flash-focus-container_1q84n_v26q8_807",
|
|
42
|
+
"flash-text": "awsui_flash-text_1q84n_v26q8_837",
|
|
43
|
+
"dismiss-button": "awsui_dismiss-button_1q84n_v26q8_170",
|
|
44
|
+
"breakpoint-default": "awsui_breakpoint-default_1q84n_v26q8_879",
|
|
45
|
+
"action-button": "awsui_action-button_1q84n_v26q8_169",
|
|
46
|
+
"action-slot": "awsui_action-slot_1q84n_v26q8_889",
|
|
47
|
+
"flash-type-success": "awsui_flash-type-success_1q84n_v26q8_893",
|
|
48
|
+
"flash-type-error": "awsui_flash-type-error_1q84n_v26q8_897",
|
|
49
|
+
"flash-type-info": "awsui_flash-type-info_1q84n_v26q8_901",
|
|
50
|
+
"flash-type-in-progress": "awsui_flash-type-in-progress_1q84n_v26q8_902",
|
|
51
|
+
"flash-type-warning": "awsui_flash-type-warning_1q84n_v26q8_906"
|
|
55
52
|
};
|
|
56
53
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { PopoverProps } from '../../../popover/interfaces';
|
|
3
2
|
export interface TooltipProps {
|
|
4
3
|
value: React.ReactNode;
|
|
5
4
|
trackRef: React.RefObject<HTMLElement | SVGElement>;
|
|
@@ -7,7 +6,6 @@ export interface TooltipProps {
|
|
|
7
6
|
position?: 'top' | 'right' | 'bottom' | 'left';
|
|
8
7
|
className?: string;
|
|
9
8
|
contentAttributes?: React.HTMLAttributes<HTMLDivElement>;
|
|
10
|
-
size?: PopoverProps['size'];
|
|
11
9
|
}
|
|
12
|
-
export default function Tooltip({ value, trackRef, trackKey, className, contentAttributes, position,
|
|
10
|
+
export default function Tooltip({ value, trackRef, trackKey, className, contentAttributes, position, }: TooltipProps): JSX.Element;
|
|
13
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/tooltip/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/tooltip/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,UAAU,CAAC,CAAC;IACpD,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;CAC1D;AAED,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAC9B,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,iBAAsB,EACtB,QAAgB,GACjB,EAAE,YAAY,eA4Bd"}
|
|
@@ -8,13 +8,13 @@ import PopoverContainer from '../../../popover/container';
|
|
|
8
8
|
import Portal from '../portal';
|
|
9
9
|
import { Transition } from '../transition';
|
|
10
10
|
import styles from './styles.css.js';
|
|
11
|
-
export default function Tooltip({ value, trackRef, trackKey, className, contentAttributes = {}, position = 'top',
|
|
11
|
+
export default function Tooltip({ value, trackRef, trackKey, className, contentAttributes = {}, position = 'top', }) {
|
|
12
12
|
if (!trackKey && (typeof value === 'string' || typeof value === 'number')) {
|
|
13
13
|
trackKey = value;
|
|
14
14
|
}
|
|
15
15
|
return (React.createElement(Portal, null,
|
|
16
16
|
React.createElement("div", Object.assign({ className: clsx(styles.root, className) }, contentAttributes, { "data-testid": trackKey }),
|
|
17
|
-
React.createElement(Transition, { in: true }, () => (React.createElement(PopoverContainer, { trackRef: trackRef, trackKey: trackKey, size:
|
|
17
|
+
React.createElement(Transition, { in: true }, () => (React.createElement(PopoverContainer, { trackRef: trackRef, trackKey: trackKey, size: "small", fixedWidth: false, position: position, zIndex: 7000, arrow: position => React.createElement(PopoverArrow, { position: position }) },
|
|
18
18
|
React.createElement(PopoverBody, { dismissButton: false, dismissAriaLabel: undefined, onDismiss: undefined, header: undefined }, value)))))));
|
|
19
19
|
}
|
|
20
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/components/tooltip/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,YAAY,MAAM,wBAAwB,CAAC;AAClD,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAChD,OAAO,gBAAgB,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/components/tooltip/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,YAAY,MAAM,wBAAwB,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import clsx from 'clsx';\n\nimport PopoverArrow from '../../../popover/arrow';\nimport PopoverBody from '../../../popover/body';\nimport PopoverContainer from '../../../popover/container';\nimport Portal from '../portal';\nimport { Transition } from '../transition';\n\nimport styles from './styles.css.js';\n\nexport interface TooltipProps {\n value: React.ReactNode;\n trackRef: React.RefObject<HTMLElement | SVGElement>;\n trackKey?: string | number;\n position?: 'top' | 'right' | 'bottom' | 'left';\n className?: string;\n contentAttributes?: React.HTMLAttributes<HTMLDivElement>;\n}\n\nexport default function Tooltip({\n value,\n trackRef,\n trackKey,\n className,\n contentAttributes = {},\n position = 'top',\n}: TooltipProps) {\n if (!trackKey && (typeof value === 'string' || typeof value === 'number')) {\n trackKey = value;\n }\n\n return (\n <Portal>\n <div className={clsx(styles.root, className)} {...contentAttributes} data-testid={trackKey}>\n <Transition in={true}>\n {() => (\n <PopoverContainer\n trackRef={trackRef}\n trackKey={trackKey}\n size=\"small\"\n fixedWidth={false}\n position={position}\n zIndex={7000}\n arrow={position => <PopoverArrow position={position} />}\n >\n <PopoverBody dismissButton={false} dismissAriaLabel={undefined} onDismiss={undefined} header={undefined}>\n {value}\n </PopoverBody>\n </PopoverContainer>\n )}\n </Transition>\n </div>\n </Portal>\n );\n}\n"]}
|
package/internal/environment.js
CHANGED
package/internal/manifest.json
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { BreadcrumbGroupProps } from '../../breadcrumb-group/interfaces';
|
|
2
2
|
import { ActionsApiInternal, ActionsApiPublic } from './controllers/action-buttons';
|
|
3
|
-
import { AlertFlashContentApiInternal, AlertFlashContentApiPublic } from './controllers/alert-flash-content';
|
|
4
3
|
import { AppLayoutWidgetApiInternal } from './controllers/app-layout-widget';
|
|
5
4
|
import { BreadcrumbsApiInternal } from './controllers/breadcrumbs';
|
|
6
5
|
import { DrawersApiInternal, DrawersApiPublic } from './controllers/drawers';
|
|
@@ -8,17 +7,13 @@ interface AwsuiApi {
|
|
|
8
7
|
awsuiPlugins: {
|
|
9
8
|
appLayout: DrawersApiPublic;
|
|
10
9
|
alert: ActionsApiPublic;
|
|
11
|
-
alertContent: AlertFlashContentApiPublic;
|
|
12
10
|
flashbar: ActionsApiPublic;
|
|
13
|
-
flashContent: AlertFlashContentApiPublic;
|
|
14
11
|
};
|
|
15
12
|
awsuiPluginsInternal: {
|
|
16
13
|
appLayout: DrawersApiInternal;
|
|
17
14
|
appLayoutWidget: AppLayoutWidgetApiInternal;
|
|
18
15
|
alert: ActionsApiInternal;
|
|
19
|
-
alertContent: AlertFlashContentApiInternal;
|
|
20
16
|
flashbar: ActionsApiInternal;
|
|
21
|
-
flashContent: AlertFlashContentApiInternal;
|
|
22
17
|
breadcrumbs: BreadcrumbsApiInternal<BreadcrumbGroupProps>;
|
|
23
18
|
};
|
|
24
19
|
}
|
|
@@ -26,16 +21,12 @@ export declare function loadApi(): AwsuiApi;
|
|
|
26
21
|
export declare const awsuiPlugins: {
|
|
27
22
|
appLayout: DrawersApiPublic;
|
|
28
23
|
alert: ActionsApiPublic;
|
|
29
|
-
alertContent: AlertFlashContentApiPublic;
|
|
30
24
|
flashbar: ActionsApiPublic;
|
|
31
|
-
flashContent: AlertFlashContentApiPublic;
|
|
32
25
|
}, awsuiPluginsInternal: {
|
|
33
26
|
appLayout: DrawersApiInternal;
|
|
34
27
|
appLayoutWidget: AppLayoutWidgetApiInternal;
|
|
35
28
|
alert: ActionsApiInternal;
|
|
36
|
-
alertContent: AlertFlashContentApiInternal;
|
|
37
29
|
flashbar: ActionsApiInternal;
|
|
38
|
-
flashContent: AlertFlashContentApiInternal;
|
|
39
30
|
breadcrumbs: BreadcrumbsApiInternal<BreadcrumbGroupProps>;
|
|
40
31
|
};
|
|
41
32
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/internal/plugins/api.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAA2B,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAC7G,OAAO,
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/internal/plugins/api.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAA2B,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAC7G,OAAO,EAAE,0BAA0B,EAA6B,MAAM,iCAAiC,CAAC;AACxG,OAAO,EAAE,sBAAsB,EAAyB,MAAM,2BAA2B,CAAC;AAC1F,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAqB,MAAM,uBAAuB,CAAC;AAIhG,UAAU,QAAQ;IAChB,YAAY,EAAE;QACZ,SAAS,EAAE,gBAAgB,CAAC;QAC5B,KAAK,EAAE,gBAAgB,CAAC;QACxB,QAAQ,EAAE,gBAAgB,CAAC;KAC5B,CAAC;IACF,oBAAoB,EAAE;QACpB,SAAS,EAAE,kBAAkB,CAAC;QAC9B,eAAe,EAAE,0BAA0B,CAAC;QAC5C,KAAK,EAAE,kBAAkB,CAAC;QAC1B,QAAQ,EAAE,kBAAkB,CAAC;QAC7B,WAAW,EAAE,sBAAsB,CAAC,oBAAoB,CAAC,CAAC;KAC3D,CAAC;CACH;AAwBD,wBAAgB,OAAO,aAQtB;AAED,eAAO,MAAQ,YAAY;eA7CZ,gBAAgB;WACpB,gBAAgB;cACb,gBAAgB;GA2CD,oBAAoB;eAxClC,kBAAkB;qBACZ,0BAA0B;WACpC,kBAAkB;cACf,kBAAkB;iBACf,uBAAuB,oBAAoB,CAAC;CAoCE,CAAC"}
|
package/internal/plugins/api.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ActionButtonsController } from './controllers/action-buttons';
|
|
2
|
-
import { AlertFlashContentController, } from './controllers/alert-flash-content';
|
|
3
2
|
import { AppLayoutWidgetController } from './controllers/app-layout-widget';
|
|
4
3
|
import { BreadcrumbsController } from './controllers/breadcrumbs';
|
|
5
4
|
import { DrawersController } from './controllers/drawers';
|
|
@@ -42,12 +41,6 @@ function installApi(api) {
|
|
|
42
41
|
const alertActions = new ActionButtonsController();
|
|
43
42
|
api.awsuiPlugins.alert = alertActions.installPublic(api.awsuiPlugins.alert);
|
|
44
43
|
api.awsuiPluginsInternal.alert = alertActions.installInternal(api.awsuiPluginsInternal.alert);
|
|
45
|
-
const alertContent = new AlertFlashContentController();
|
|
46
|
-
api.awsuiPlugins.alertContent = alertContent.installPublic(api.awsuiPlugins.alertContent);
|
|
47
|
-
api.awsuiPluginsInternal.alertContent = alertContent.installInternal(api.awsuiPluginsInternal.alertContent);
|
|
48
|
-
const flashContent = new AlertFlashContentController();
|
|
49
|
-
api.awsuiPlugins.flashContent = flashContent.installPublic(api.awsuiPlugins.flashContent);
|
|
50
|
-
api.awsuiPluginsInternal.flashContent = flashContent.installInternal(api.awsuiPluginsInternal.flashContent);
|
|
51
44
|
const flashbarActions = new ActionButtonsController();
|
|
52
45
|
api.awsuiPlugins.flashbar = flashbarActions.installPublic(api.awsuiPlugins.flashbar);
|
|
53
46
|
api.awsuiPluginsInternal.flashbar = flashbarActions.installInternal(api.awsuiPluginsInternal.flashbar);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../../../src/internal/plugins/api.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,uBAAuB,EAAwC,MAAM,8BAA8B,CAAC;AAC7G,OAAO,
|
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../../../src/internal/plugins/api.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,uBAAuB,EAAwC,MAAM,8BAA8B,CAAC;AAC7G,OAAO,EAA8B,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AACxG,OAAO,EAA0B,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAC1F,OAAO,EAAwC,iBAAiB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AAG,gBAAgB,CAAC,aAAa,CAAC,GAAG,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;IACxF,GAAG,CAAC,oBAAoB,CAAC,SAAS,GAAG,gBAAgB,CAAC,eAAe,CAAC,GAAG,CAAC,oBAAoB,CAAC,SAAS,CAAC,CAAC;IAE1G,MAAM,mBAAmB,GAAG,IAAI,yBAAyB,EAAE,CAAC;IAC5D,GAAG,CAAC,oBAAoB,CAAC,eAAe,GAAG,mBAAmB,CAAC,eAAe,CAC5E,GAAG,CAAC,oBAAoB,CAAC,eAAe,CACzC,CAAC;IAEF,MAAM,YAAY,GAAG,IAAI,uBAAuB,EAAE,CAAC;IACnD,GAAG,CAAC,YAAY,CAAC,KAAK,GAAG,YAAY,CAAC,aAAa,CAAC,GAAG,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAC5E,GAAG,CAAC,oBAAoB,CAAC,KAAK,GAAG,YAAY,CAAC,eAAe,CAAC,GAAG,CAAC,oBAAoB,CAAC,KAAK,CAAC,CAAC;IAE9F,MAAM,eAAe,GAAG,IAAI,uBAAuB,EAAE,CAAC;IACtD,GAAG,CAAC,YAAY,CAAC,QAAQ,GAAG,eAAe,CAAC,aAAa,CAAC,GAAG,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IACrF,GAAG,CAAC,oBAAoB,CAAC,QAAQ,GAAG,eAAe,CAAC,eAAe,CAAC,GAAG,CAAC,oBAAoB,CAAC,QAAQ,CAAC,CAAC;IAEvG,MAAM,WAAW,GAAG,IAAI,qBAAqB,EAAwB,CAAC;IACtE,GAAG,CAAC,oBAAoB,CAAC,WAAW,GAAG,WAAW,CAAC,eAAe,CAAC,GAAG,CAAC,oBAAoB,CAAC,WAAW,CAAC,CAAC;IAEzG,OAAO,GAAe,CAAC;AACzB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { BreadcrumbGroupProps } from '../../breadcrumb-group/interfaces';\nimport { ActionButtonsController, ActionsApiInternal, ActionsApiPublic } from './controllers/action-buttons';\nimport { AppLayoutWidgetApiInternal, AppLayoutWidgetController } from './controllers/app-layout-widget';\nimport { BreadcrumbsApiInternal, BreadcrumbsController } from './controllers/breadcrumbs';\nimport { DrawersApiInternal, DrawersApiPublic, DrawersController } from './controllers/drawers';\n\nconst storageKey = Symbol.for('awsui-plugin-api');\n\ninterface AwsuiApi {\n awsuiPlugins: {\n appLayout: DrawersApiPublic;\n alert: ActionsApiPublic;\n flashbar: ActionsApiPublic;\n };\n awsuiPluginsInternal: {\n appLayout: DrawersApiInternal;\n appLayoutWidget: AppLayoutWidgetApiInternal;\n alert: ActionsApiInternal;\n flashbar: ActionsApiInternal;\n breadcrumbs: BreadcrumbsApiInternal<BreadcrumbGroupProps>;\n };\n}\n\ninterface WindowWithApi extends Window {\n [storageKey]: AwsuiApi;\n}\n\nfunction findUpApi(currentWindow: WindowWithApi): AwsuiApi | undefined {\n try {\n if (currentWindow?.[storageKey]) {\n return currentWindow[storageKey];\n }\n\n if (!currentWindow || currentWindow.parent === currentWindow) {\n // When the window has no more parents, it references itself\n return undefined;\n }\n\n return findUpApi(currentWindow.parent as WindowWithApi);\n } catch (ex) {\n // Most likely a cross-origin access error\n return undefined;\n }\n}\n\nexport function loadApi() {\n if (typeof window === 'undefined') {\n return installApi({});\n }\n const win = window as unknown as WindowWithApi;\n const existingApi = findUpApi(win);\n win[storageKey] = installApi(existingApi ?? {});\n return win[storageKey];\n}\n\nexport const { awsuiPlugins, awsuiPluginsInternal } = loadApi();\n\ntype DeepPartial<T> = T extends (...args: any) => any ? T : { [P in keyof T]?: DeepPartial<T[P]> };\n\nfunction installApi(api: DeepPartial<AwsuiApi>): AwsuiApi {\n api.awsuiPlugins ??= {};\n api.awsuiPluginsInternal ??= {};\n\n const appLayoutDrawers = new DrawersController();\n api.awsuiPlugins.appLayout = appLayoutDrawers.installPublic(api.awsuiPlugins.appLayout);\n api.awsuiPluginsInternal.appLayout = appLayoutDrawers.installInternal(api.awsuiPluginsInternal.appLayout);\n\n const appLayoutController = new AppLayoutWidgetController();\n api.awsuiPluginsInternal.appLayoutWidget = appLayoutController.installInternal(\n api.awsuiPluginsInternal.appLayoutWidget\n );\n\n const alertActions = new ActionButtonsController();\n api.awsuiPlugins.alert = alertActions.installPublic(api.awsuiPlugins.alert);\n api.awsuiPluginsInternal.alert = alertActions.installInternal(api.awsuiPluginsInternal.alert);\n\n const flashbarActions = new ActionButtonsController();\n api.awsuiPlugins.flashbar = flashbarActions.installPublic(api.awsuiPlugins.flashbar);\n api.awsuiPluginsInternal.flashbar = flashbarActions.installInternal(api.awsuiPluginsInternal.flashbar);\n\n const breadcrumbs = new BreadcrumbsController<BreadcrumbGroupProps>();\n api.awsuiPluginsInternal.breadcrumbs = breadcrumbs.installInternal(api.awsuiPluginsInternal.breadcrumbs);\n\n return api as AwsuiApi;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/plugins/helpers/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/plugins/helpers/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -2,5 +2,4 @@
|
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
export { RuntimeContentWrapper } from './runtime-content-wrapper';
|
|
4
4
|
export { createUseDiscoveredAction } from './use-discovered-action';
|
|
5
|
-
export { createUseDiscoveredContent } from './use-discovered-content';
|
|
6
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/plugins/helpers/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/plugins/helpers/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nexport { RuntimeContentWrapper } from './runtime-content-wrapper';\nexport { createUseDiscoveredAction } from './use-discovered-action';\n"]}
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { ActionButtonsController } from '../controllers/action-buttons';
|
|
3
3
|
export declare function createUseDiscoveredAction(onActionRegistered: ActionButtonsController['onActionRegistered']): (type: string) => {
|
|
4
4
|
discoveredActions: React.ReactNode[];
|
|
5
|
-
headerRef: React.
|
|
6
|
-
contentRef: React.
|
|
5
|
+
headerRef: React.RefObject<HTMLDivElement>;
|
|
6
|
+
contentRef: React.RefObject<HTMLDivElement>;
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=use-discovered-action.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-discovered-action.d.ts","sourceRoot":"","sources":["../../../../../src/internal/plugins/helpers/use-discovered-action.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAE3D,OAAO,EAAE,uBAAuB,EAA+B,MAAM,+BAA+B,CAAC;AAgBrG,wBAAgB,yBAAyB,CAAC,kBAAkB,EAAE,uBAAuB,CAAC,oBAAoB,CAAC,UAC/D,MAAM
|
|
1
|
+
{"version":3,"file":"use-discovered-action.d.ts","sourceRoot":"","sources":["../../../../../src/internal/plugins/helpers/use-discovered-action.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAE3D,OAAO,EAAE,uBAAuB,EAA+B,MAAM,+BAA+B,CAAC;AAgBrG,wBAAgB,yBAAyB,CAAC,kBAAkB,EAAE,uBAAuB,CAAC,oBAAoB,CAAC,UAC/D,MAAM;;;;EAajD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-discovered-action.js","sourceRoot":"","sources":["../../../../../src/internal/plugins/helpers/use-discovered-action.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAG3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAElE,SAAS,oBAAoB,CAAC,MAA2B,EAAE,OAAsB;IAC/E,IAAI,CAAC,MAAM,EAAE;QACX,OAAO,IAAI,CAAC;KACb;IACD,OAAO,CACL,oBAAC,qBAAqB,IACpB,GAAG,EAAE,MAAM,CAAC,EAAE,GAAG,GAAG,GAAG,OAAO,CAAC,IAAI,EACnC,YAAY,EAAE,SAAS,CAAC,EAAE,CAAC,MAAM,CAAC,YAAY,CAAC,SAAS,EAAE,OAAO,CAAC,EAClE,cAAc,EAAE,SAAS,CAAC,EAAE,CAAC,MAAM,CAAC,cAAc,CAAC,SAAS,CAAC,GAC7D,CACH,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,kBAAiE;IACzG,OAAO,SAAS,mBAAmB,CAAC,IAAY;
|
|
1
|
+
{"version":3,"file":"use-discovered-action.js","sourceRoot":"","sources":["../../../../../src/internal/plugins/helpers/use-discovered-action.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE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AC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect, useRef, useState } from 'react';\n\nimport { ActionButtonsController, ActionConfig, ActionContext } from '../controllers/action-buttons';\nimport { RuntimeContentWrapper } from './runtime-content-wrapper';\n\nfunction convertRuntimeAction(action: ActionConfig | null, context: ActionContext) {\n if (!action) {\n return null;\n }\n return (\n <RuntimeContentWrapper\n key={action.id + '-' + context.type}\n mountContent={container => action.mountContent(container, context)}\n unmountContent={container => action.unmountContent(container)}\n />\n );\n}\n\nexport function createUseDiscoveredAction(onActionRegistered: ActionButtonsController['onActionRegistered']) {\n return function useDiscoveredAction(type: string) {\n const [discoveredActions, setDiscoveredActions] = useState<Array<React.ReactNode>>([]);\n const headerRef = useRef<HTMLDivElement>(null);\n const contentRef = useRef<HTMLDivElement>(null);\n\n useEffect(() => {\n return onActionRegistered(actions => {\n setDiscoveredActions(actions.map(action => convertRuntimeAction(action, { type, headerRef, contentRef })));\n });\n }, [type]);\n\n return { discoveredActions, headerRef, contentRef };\n };\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"root": "
|
|
5
|
-
"search-field": "awsui_search-
|
|
6
|
-
"input-wrapper": "awsui_input-
|
|
7
|
-
"add-token": "awsui_add-
|
|
8
|
-
"tokens": "
|
|
9
|
-
"token-operator": "awsui_token-
|
|
10
|
-
"property-editor": "awsui_property-
|
|
11
|
-
"property-editor-form": "awsui_property-editor-
|
|
12
|
-
"property-editor-field-property": "awsui_property-editor-field-
|
|
13
|
-
"property-editor-field-operator": "awsui_property-editor-field-
|
|
14
|
-
"property-editor-field-value": "awsui_property-editor-field-
|
|
15
|
-
"property-editor-cancel": "awsui_property-editor-
|
|
16
|
-
"property-editor-submit": "awsui_property-editor-
|
|
17
|
-
"property-editor-actions": "awsui_property-editor-
|
|
18
|
-
"token-editor": "awsui_token-
|
|
19
|
-
"token-editor-form": "awsui_token-editor-
|
|
20
|
-
"token-editor-field-property": "awsui_token-editor-field-
|
|
21
|
-
"token-editor-field-operator": "awsui_token-editor-field-
|
|
22
|
-
"token-editor-field-value": "awsui_token-editor-field-
|
|
23
|
-
"token-editor-cancel": "awsui_token-editor-
|
|
24
|
-
"token-editor-submit": "awsui_token-editor-
|
|
25
|
-
"token-editor-actions": "awsui_token-editor-
|
|
26
|
-
"token-editor-grid": "awsui_token-editor-
|
|
27
|
-
"token-editor-grid-group": "awsui_token-editor-grid-
|
|
28
|
-
"token-editor-narrow": "awsui_token-editor-
|
|
29
|
-
"token-editor-supports-groups": "awsui_token-editor-supports-
|
|
30
|
-
"token-editor-grid-header": "awsui_token-editor-grid-
|
|
31
|
-
"token-editor-grid-cell": "awsui_token-editor-grid-
|
|
32
|
-
"token-editor-add-token": "awsui_token-editor-add-
|
|
33
|
-
"custom-content-wrapper": "awsui_custom-content-
|
|
34
|
-
"custom-control": "awsui_custom-
|
|
35
|
-
"input": "
|
|
36
|
-
"results": "
|
|
37
|
-
"token-trigger": "awsui_token-
|
|
38
|
-
"remove-all": "awsui_remove-
|
|
39
|
-
"join-operation": "awsui_join-
|
|
40
|
-
"custom-filter-actions": "awsui_custom-filter-
|
|
41
|
-
"constraint": "
|
|
4
|
+
"root": "awsui_root_1wzqe_13ua9_141",
|
|
5
|
+
"search-field": "awsui_search-field_1wzqe_13ua9_176",
|
|
6
|
+
"input-wrapper": "awsui_input-wrapper_1wzqe_13ua9_182",
|
|
7
|
+
"add-token": "awsui_add-token_1wzqe_13ua9_186",
|
|
8
|
+
"tokens": "awsui_tokens_1wzqe_13ua9_193",
|
|
9
|
+
"token-operator": "awsui_token-operator_1wzqe_13ua9_198",
|
|
10
|
+
"property-editor": "awsui_property-editor_1wzqe_13ua9_202",
|
|
11
|
+
"property-editor-form": "awsui_property-editor-form_1wzqe_13ua9_210",
|
|
12
|
+
"property-editor-field-property": "awsui_property-editor-field-property_1wzqe_13ua9_213",
|
|
13
|
+
"property-editor-field-operator": "awsui_property-editor-field-operator_1wzqe_13ua9_216",
|
|
14
|
+
"property-editor-field-value": "awsui_property-editor-field-value_1wzqe_13ua9_219",
|
|
15
|
+
"property-editor-cancel": "awsui_property-editor-cancel_1wzqe_13ua9_222",
|
|
16
|
+
"property-editor-submit": "awsui_property-editor-submit_1wzqe_13ua9_225",
|
|
17
|
+
"property-editor-actions": "awsui_property-editor-actions_1wzqe_13ua9_228",
|
|
18
|
+
"token-editor": "awsui_token-editor_1wzqe_13ua9_235",
|
|
19
|
+
"token-editor-form": "awsui_token-editor-form_1wzqe_13ua9_243",
|
|
20
|
+
"token-editor-field-property": "awsui_token-editor-field-property_1wzqe_13ua9_246",
|
|
21
|
+
"token-editor-field-operator": "awsui_token-editor-field-operator_1wzqe_13ua9_249",
|
|
22
|
+
"token-editor-field-value": "awsui_token-editor-field-value_1wzqe_13ua9_252",
|
|
23
|
+
"token-editor-cancel": "awsui_token-editor-cancel_1wzqe_13ua9_255",
|
|
24
|
+
"token-editor-submit": "awsui_token-editor-submit_1wzqe_13ua9_258",
|
|
25
|
+
"token-editor-actions": "awsui_token-editor-actions_1wzqe_13ua9_261",
|
|
26
|
+
"token-editor-grid": "awsui_token-editor-grid_1wzqe_13ua9_270",
|
|
27
|
+
"token-editor-grid-group": "awsui_token-editor-grid-group_1wzqe_13ua9_307",
|
|
28
|
+
"token-editor-narrow": "awsui_token-editor-narrow_1wzqe_13ua9_310",
|
|
29
|
+
"token-editor-supports-groups": "awsui_token-editor-supports-groups_1wzqe_13ua9_319",
|
|
30
|
+
"token-editor-grid-header": "awsui_token-editor-grid-header_1wzqe_13ua9_323",
|
|
31
|
+
"token-editor-grid-cell": "awsui_token-editor-grid-cell_1wzqe_13ua9_329",
|
|
32
|
+
"token-editor-add-token": "awsui_token-editor-add-token_1wzqe_13ua9_338",
|
|
33
|
+
"custom-content-wrapper": "awsui_custom-content-wrapper_1wzqe_13ua9_342",
|
|
34
|
+
"custom-control": "awsui_custom-control_1wzqe_13ua9_346",
|
|
35
|
+
"input": "awsui_input_1wzqe_13ua9_182",
|
|
36
|
+
"results": "awsui_results_1wzqe_13ua9_354",
|
|
37
|
+
"token-trigger": "awsui_token-trigger_1wzqe_13ua9_359",
|
|
38
|
+
"remove-all": "awsui_remove-all_1wzqe_13ua9_364",
|
|
39
|
+
"join-operation": "awsui_join-operation_1wzqe_13ua9_365",
|
|
40
|
+
"custom-filter-actions": "awsui_custom-filter-actions_1wzqe_13ua9_366",
|
|
41
|
+
"constraint": "awsui_constraint_1wzqe_13ua9_370"
|
|
42
42
|
};
|
|
43
43
|
|