@cloudscape-design/components-themeable 3.0.1171 → 3.0.1173

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.
Files changed (95) hide show
  1. package/lib/internal/manifest.json +1 -1
  2. package/lib/internal/scss/app-layout/styles.scss +0 -1
  3. package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +1 -1
  4. package/lib/internal/template/app-layout/visual-refresh/drawers.d.ts.map +1 -1
  5. package/lib/internal/template/app-layout/visual-refresh/drawers.js +2 -2
  6. package/lib/internal/template/app-layout/visual-refresh/drawers.js.map +1 -1
  7. package/lib/internal/template/app-layout/visual-refresh/main.d.ts.map +1 -1
  8. package/lib/internal/template/app-layout/visual-refresh/main.js +1 -3
  9. package/lib/internal/template/app-layout/visual-refresh/main.js.map +1 -1
  10. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/local-drawer.d.ts.map +1 -1
  11. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/local-drawer.js +2 -2
  12. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/local-drawer.js.map +1 -1
  13. package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/index.d.ts.map +1 -1
  14. package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/index.js +1 -2
  15. package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/index.js.map +1 -1
  16. package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/slots.d.ts.map +1 -1
  17. package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/slots.js +3 -1
  18. package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/slots.js.map +1 -1
  19. package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/index.d.ts.map +1 -1
  20. package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/index.js +1 -1
  21. package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/index.js.map +1 -1
  22. package/lib/internal/template/container/internal.d.ts +1 -6
  23. package/lib/internal/template/container/internal.d.ts.map +1 -1
  24. package/lib/internal/template/container/internal.js +28 -32
  25. package/lib/internal/template/container/internal.js.map +1 -1
  26. package/lib/internal/template/drawer/implementation.d.ts.map +1 -1
  27. package/lib/internal/template/drawer/implementation.js +3 -5
  28. package/lib/internal/template/drawer/implementation.js.map +1 -1
  29. package/lib/internal/template/form/internal.d.ts.map +1 -1
  30. package/lib/internal/template/form/internal.js +14 -20
  31. package/lib/internal/template/form/internal.js.map +1 -1
  32. package/lib/internal/template/i18n/messages-types.d.ts +4 -5
  33. package/lib/internal/template/i18n/messages-types.d.ts.map +1 -1
  34. package/lib/internal/template/i18n/messages-types.js.map +1 -1
  35. package/lib/internal/template/index.d.ts +0 -1
  36. package/lib/internal/template/index.d.ts.map +1 -1
  37. package/lib/internal/template/index.js +0 -1
  38. package/lib/internal/template/index.js.map +1 -1
  39. package/lib/internal/template/internal/base-component/styles.scoped.css +1 -1
  40. package/lib/internal/template/internal/environment.js +2 -2
  41. package/lib/internal/template/internal/environment.json +2 -2
  42. package/lib/internal/template/modal/internal.d.ts.map +1 -1
  43. package/lib/internal/template/modal/internal.js +5 -8
  44. package/lib/internal/template/modal/internal.js.map +1 -1
  45. package/lib/internal/template/package.json +0 -1
  46. package/lib/internal/template/popover/body.d.ts.map +1 -1
  47. package/lib/internal/template/popover/body.js +8 -10
  48. package/lib/internal/template/popover/body.js.map +1 -1
  49. package/lib/internal/template/split-panel/implementation.d.ts.map +1 -1
  50. package/lib/internal/template/split-panel/implementation.js +2 -5
  51. package/lib/internal/template/split-panel/implementation.js.map +1 -1
  52. package/lib/internal/template/tabs/index.d.ts.map +1 -1
  53. package/lib/internal/template/tabs/index.js +1 -1
  54. package/lib/internal/template/tabs/index.js.map +1 -1
  55. package/lib/internal/template/test-utils/dom/index.d.ts +0 -20
  56. package/lib/internal/template/test-utils/dom/index.js +2 -16
  57. package/lib/internal/template/test-utils/dom/index.js.map +1 -1
  58. package/lib/internal/template/test-utils/selectors/index.d.ts +0 -18
  59. package/lib/internal/template/test-utils/selectors/index.js +2 -16
  60. package/lib/internal/template/test-utils/selectors/index.js.map +1 -1
  61. package/package.json +1 -1
  62. package/lib/internal/scss/error-boundary/styles.scss +0 -11
  63. package/lib/internal/scss/error-boundary/test-classes/styles.scss +0 -13
  64. package/lib/internal/template/error-boundary/fallback.d.ts +0 -3
  65. package/lib/internal/template/error-boundary/fallback.d.ts.map +0 -1
  66. package/lib/internal/template/error-boundary/fallback.js +0 -61
  67. package/lib/internal/template/error-boundary/fallback.js.map +0 -1
  68. package/lib/internal/template/error-boundary/index.d.ts +0 -5
  69. package/lib/internal/template/error-boundary/index.d.ts.map +0 -1
  70. package/lib/internal/template/error-boundary/index.js +0 -22
  71. package/lib/internal/template/error-boundary/index.js.map +0 -1
  72. package/lib/internal/template/error-boundary/interfaces.d.ts +0 -85
  73. package/lib/internal/template/error-boundary/interfaces.d.ts.map +0 -1
  74. package/lib/internal/template/error-boundary/interfaces.js +0 -4
  75. package/lib/internal/template/error-boundary/interfaces.js.map +0 -1
  76. package/lib/internal/template/error-boundary/internal.d.ts +0 -23
  77. package/lib/internal/template/error-boundary/internal.d.ts.map +0 -1
  78. package/lib/internal/template/error-boundary/internal.js +0 -58
  79. package/lib/internal/template/error-boundary/internal.js.map +0 -1
  80. package/lib/internal/template/error-boundary/styles.css.js +0 -9
  81. package/lib/internal/template/error-boundary/styles.scoped.css +0 -10
  82. package/lib/internal/template/error-boundary/styles.selectors.js +0 -10
  83. package/lib/internal/template/error-boundary/test-classes/styles.css.js +0 -11
  84. package/lib/internal/template/error-boundary/test-classes/styles.scoped.css +0 -12
  85. package/lib/internal/template/error-boundary/test-classes/styles.selectors.js +0 -12
  86. package/lib/internal/template/error-boundary/utils.d.ts +0 -2
  87. package/lib/internal/template/error-boundary/utils.d.ts.map +0 -1
  88. package/lib/internal/template/error-boundary/utils.js +0 -7
  89. package/lib/internal/template/error-boundary/utils.js.map +0 -1
  90. package/lib/internal/template/test-utils/dom/error-boundary/index.d.ts +0 -9
  91. package/lib/internal/template/test-utils/dom/error-boundary/index.js +0 -26
  92. package/lib/internal/template/test-utils/dom/error-boundary/index.js.map +0 -1
  93. package/lib/internal/template/test-utils/selectors/error-boundary/index.d.ts +0 -9
  94. package/lib/internal/template/test-utils/selectors/error-boundary/index.js +0 -26
  95. package/lib/internal/template/test-utils/selectors/error-boundary/index.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/error-boundary/internal.tsx"],"names":[],"mappings":"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","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React, { Component, createContext, useContext, useState } from 'react';\n\nimport { useMergeRefs } from '@cloudscape-design/component-toolkit/internal';\n\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { SomeRequired } from '../internal/types';\nimport { ErrorBoundaryFallback } from './fallback';\nimport { ErrorBoundaryProps } from './interfaces';\n\nimport styles from './styles.css.js';\n\n// Helper methods attached to the component's root node for e2e testing.\ndeclare global {\n interface HTMLElement {\n __awsui__?: { forceError?(): void; clearForcedError?(): void };\n }\n}\n\nconst RootSuppressed = Symbol();\n\nconst ErrorBoundariesContext = createContext<\n Pick<ErrorBoundaryProps, 'renderFallback' | 'i18nStrings' | 'onError' | 'errorBoundaryId'> & {\n suppressed: boolean | typeof RootSuppressed;\n }\n>({\n onError: () => {},\n suppressed: RootSuppressed,\n});\n\ninterface InternalErrorBoundaryProps\n extends SomeRequired<ErrorBoundaryProps, 'suppressNested'>,\n InternalBaseComponentProps {}\n\nexport function InternalErrorBoundary({\n children,\n suppressNested,\n __internalRootRef,\n ...props\n}: InternalErrorBoundaryProps) {\n const context = useContext(ErrorBoundariesContext);\n const thisSuppressed = context.suppressed === true;\n const nextSuppressed = suppressNested || thisSuppressed;\n\n const [forcedError, setForcedError] = useState(false);\n const setElement = (node: null | HTMLDivElement) => {\n if (node) {\n if (!node.__awsui__) {\n node.__awsui__ = {};\n }\n node.__awsui__.forceError = () => setForcedError(true);\n node.__awsui__.clearForcedError = () => setForcedError(false);\n }\n };\n const mergedRef = useMergeRefs(setElement, __internalRootRef);\n\n return (\n <div ref={mergedRef} className={styles['error-boundary']} data-awsui-boundary-id={props.errorBoundaryId}>\n {!thisSuppressed ? (\n <ErrorBoundaryImpl {...props} forcedError={forcedError}>\n <ErrorBoundariesContext.Provider value={{ ...props, suppressed: nextSuppressed }}>\n {children}\n </ErrorBoundariesContext.Provider>\n </ErrorBoundaryImpl>\n ) : (\n <>{children}</>\n )}\n </div>\n );\n}\n\ninterface BuiltInErrorBoundaryProps {\n children: React.ReactNode;\n wrapper?: (content: React.ReactNode) => React.ReactNode;\n suppressNested?: boolean;\n}\n\nexport function BuiltInErrorBoundary({ wrapper, suppressNested = false, children }: BuiltInErrorBoundaryProps) {\n const context = useContext(ErrorBoundariesContext);\n const thisSuppressed = context.suppressed === true || context.suppressed === RootSuppressed;\n const nextSuppressed = suppressNested || thisSuppressed;\n return !thisSuppressed ? (\n <ErrorBoundaryImpl {...context} wrapper={wrapper}>\n <ErrorBoundariesContext.Provider value={{ ...context, suppressed: nextSuppressed }}>\n {children}\n </ErrorBoundariesContext.Provider>\n </ErrorBoundaryImpl>\n ) : (\n <>{children}</>\n );\n}\n\ninterface ErrorBoundaryState {\n hasError: boolean;\n}\n\ninterface ErrorBoundaryImplProps extends ErrorBoundaryProps {\n wrapper?: (content: React.ReactNode) => React.ReactNode;\n forcedError?: boolean;\n}\n\nclass ErrorBoundaryImpl extends Component<ErrorBoundaryImplProps, ErrorBoundaryState> {\n constructor(props: ErrorBoundaryImplProps) {\n super(props);\n this.state = { hasError: false };\n }\n\n static getDerivedStateFromError() {\n return { hasError: true };\n }\n\n componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void {\n this.props.onError?.({ error, errorInfo, errorBoundaryId: this.props.errorBoundaryId });\n }\n\n render() {\n if (this.state.hasError || this.props.forcedError) {\n const fallback = <ErrorBoundaryFallback {...this.props} />;\n return this.props.wrapper?.(fallback) ?? fallback;\n }\n return this.props.children;\n }\n}\n"]}
@@ -1,9 +0,0 @@
1
-
2
- import './styles.scoped.css';
3
- export default {
4
- "error-boundary": "awsui_error-boundary_9pwoq_r5exj_5",
5
- "header": "awsui_header_9pwoq_r5exj_6",
6
- "description": "awsui_description_9pwoq_r5exj_7",
7
- "action": "awsui_action_9pwoq_r5exj_8"
8
- };
9
-
@@ -1,10 +0,0 @@
1
- /*
2
- Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- SPDX-License-Identifier: Apache-2.0
4
- */
5
- .awsui_error-boundary_9pwoq_r5exj_5:not(#\9),
6
- .awsui_header_9pwoq_r5exj_6:not(#\9),
7
- .awsui_description_9pwoq_r5exj_7:not(#\9),
8
- .awsui_action_9pwoq_r5exj_8:not(#\9) {
9
- display: contents;
10
- }
@@ -1,10 +0,0 @@
1
-
2
- // es-module interop with Babel and Typescript
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- module.exports.default = {
5
- "error-boundary": "awsui_error-boundary_9pwoq_r5exj_5",
6
- "header": "awsui_header_9pwoq_r5exj_6",
7
- "description": "awsui_description_9pwoq_r5exj_7",
8
- "action": "awsui_action_9pwoq_r5exj_8"
9
- };
10
-
@@ -1,11 +0,0 @@
1
-
2
- import './styles.scoped.css';
3
- export default {
4
- "fallback": "awsui_fallback_11u4a_1e43p_5",
5
- "feedback-action": "awsui_feedback-action_11u4a_1e43p_6",
6
- "refresh-action": "awsui_refresh-action_11u4a_1e43p_7",
7
- "header": "awsui_header_11u4a_1e43p_8",
8
- "description": "awsui_description_11u4a_1e43p_9",
9
- "action": "awsui_action_11u4a_1e43p_10"
10
- };
11
-
@@ -1,12 +0,0 @@
1
- /*
2
- Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- SPDX-License-Identifier: Apache-2.0
4
- */
5
- .awsui_fallback_11u4a_1e43p_5:not(#\9),
6
- .awsui_feedback-action_11u4a_1e43p_6:not(#\9),
7
- .awsui_refresh-action_11u4a_1e43p_7:not(#\9),
8
- .awsui_header_11u4a_1e43p_8:not(#\9),
9
- .awsui_description_11u4a_1e43p_9:not(#\9),
10
- .awsui_action_11u4a_1e43p_10:not(#\9) {
11
- /* used in test-utils */
12
- }
@@ -1,12 +0,0 @@
1
-
2
- // es-module interop with Babel and Typescript
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- module.exports.default = {
5
- "fallback": "awsui_fallback_11u4a_1e43p_5",
6
- "feedback-action": "awsui_feedback-action_11u4a_1e43p_6",
7
- "refresh-action": "awsui_refresh-action_11u4a_1e43p_7",
8
- "header": "awsui_header_11u4a_1e43p_8",
9
- "description": "awsui_description_11u4a_1e43p_9",
10
- "action": "awsui_action_11u4a_1e43p_10"
11
- };
12
-
@@ -1,2 +0,0 @@
1
- export declare function refreshPage(): void;
2
- //# sourceMappingURL=utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/error-boundary/utils.ts"],"names":[],"mappings":"AAIA,wBAAgB,WAAW,SAE1B"}
@@ -1,7 +0,0 @@
1
- // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
- // SPDX-License-Identifier: Apache-2.0
3
- /* istanbul ignore next */
4
- export function refreshPage() {
5
- window.location.reload();
6
- }
7
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/error-boundary/utils.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,0BAA0B;AAC1B,MAAM,UAAU,WAAW;IACzB,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;AAC3B,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\n/* istanbul ignore next */\nexport function refreshPage() {\n window.location.reload();\n}\n"]}
@@ -1,9 +0,0 @@
1
- import { ComponentWrapper, ElementWrapper } from '@cloudscape-design/test-utils-core/dom';
2
- export default class ErrorBoundaryWrapper extends ComponentWrapper<HTMLButtonElement> {
3
- static rootSelector: string;
4
- findHeader(): ElementWrapper;
5
- findDescription(): ElementWrapper;
6
- findAction(): null | ElementWrapper;
7
- findFeedbackAction(): null | ElementWrapper;
8
- findRefreshAction(): null | ElementWrapper;
9
- }
@@ -1,26 +0,0 @@
1
- "use strict";
2
- // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- // SPDX-License-Identifier: Apache-2.0
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- const dom_1 = require("@cloudscape-design/test-utils-core/dom");
6
- const styles_selectors_js_1 = require("../../../error-boundary/test-classes/styles.selectors.js");
7
- class ErrorBoundaryWrapper extends dom_1.ComponentWrapper {
8
- findHeader() {
9
- return this.findByClassName(styles_selectors_js_1.default.header);
10
- }
11
- findDescription() {
12
- return this.findByClassName(styles_selectors_js_1.default.description);
13
- }
14
- findAction() {
15
- return this.findByClassName(styles_selectors_js_1.default.action);
16
- }
17
- findFeedbackAction() {
18
- return this.findByClassName(styles_selectors_js_1.default['feedback-action']);
19
- }
20
- findRefreshAction() {
21
- return this.findByClassName(styles_selectors_js_1.default['refresh-action']);
22
- }
23
- }
24
- ErrorBoundaryWrapper.rootSelector = styles_selectors_js_1.default.fallback;
25
- exports.default = ErrorBoundaryWrapper;
26
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/error-boundary/index.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;;AAEtC,gEAA0F;AAE1F,kGAAmF;AAEnF,MAAqB,oBAAqB,SAAQ,sBAAmC;IAGnF,UAAU;QACR,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAW,CAAC,MAAM,CAAE,CAAC;IACnD,CAAC;IAED,eAAe;QACb,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAW,CAAC,WAAW,CAAE,CAAC;IACxD,CAAC;IAED,UAAU;QACR,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAW,CAAC,MAAM,CAAC,CAAC;IAClD,CAAC;IAED,kBAAkB;QAChB,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAW,CAAC,iBAAiB,CAAC,CAAC,CAAC;IAC9D,CAAC;IAED,iBAAiB;QACf,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAW,CAAC,gBAAgB,CAAC,CAAC,CAAC;IAC7D,CAAC;;AApBM,iCAAY,GAAW,6BAAW,CAAC,QAAQ,CAAC;kBADhC,oBAAoB"}
@@ -1,9 +0,0 @@
1
- import { ComponentWrapper, ElementWrapper } from "@cloudscape-design/test-utils-core/selectors";
2
- export default class ErrorBoundaryWrapper extends ComponentWrapper {
3
- static rootSelector: string;
4
- findHeader(): ElementWrapper;
5
- findDescription(): ElementWrapper;
6
- findAction(): ElementWrapper;
7
- findFeedbackAction(): ElementWrapper;
8
- findRefreshAction(): ElementWrapper;
9
- }
@@ -1,26 +0,0 @@
1
- "use strict";
2
- // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- // SPDX-License-Identifier: Apache-2.0
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- const selectors_1 = require("@cloudscape-design/test-utils-core/selectors");
6
- const styles_selectors_js_1 = require("../../../error-boundary/test-classes/styles.selectors.js");
7
- class ErrorBoundaryWrapper extends selectors_1.ComponentWrapper {
8
- findHeader() {
9
- return this.findByClassName(styles_selectors_js_1.default.header);
10
- }
11
- findDescription() {
12
- return this.findByClassName(styles_selectors_js_1.default.description);
13
- }
14
- findAction() {
15
- return this.findByClassName(styles_selectors_js_1.default.action);
16
- }
17
- findFeedbackAction() {
18
- return this.findByClassName(styles_selectors_js_1.default['feedback-action']);
19
- }
20
- findRefreshAction() {
21
- return this.findByClassName(styles_selectors_js_1.default['refresh-action']);
22
- }
23
- }
24
- ErrorBoundaryWrapper.rootSelector = styles_selectors_js_1.default.fallback;
25
- exports.default = ErrorBoundaryWrapper;
26
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/error-boundary/index.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;;AAEtC,4EAAgG;AAChG,kGAAmF;AACnF,MAAqB,oBAAqB,SAAQ,4BAAgB;IAEhE,UAAU;QACR,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAW,CAAC,MAAM,CAAE,CAAC;IACnD,CAAC;IACD,eAAe;QACb,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAW,CAAC,WAAW,CAAE,CAAC;IACxD,CAAC;IACD,UAAU;QACR,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAW,CAAC,MAAM,CAAC,CAAC;IAClD,CAAC;IACD,kBAAkB;QAChB,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAW,CAAC,iBAAiB,CAAC,CAAC,CAAC;IAC9D,CAAC;IACD,iBAAiB;QACf,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAW,CAAC,gBAAgB,CAAC,CAAC,CAAC;IAC7D,CAAC;;AAfM,iCAAY,GAAW,6BAAW,CAAC,QAAQ,CAAC;kBADhC,oBAAoB"}