@cloudscape-design/components 3.0.912 → 3.0.913

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.
@@ -1 +1 @@
1
- {"version":3,"file":"annotation-trigger.d.ts","sourceRoot":"","sources":["../../../../src/annotation-context/annotation/annotation-trigger.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAE3C,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAKvD,UAAU,sBAAsB;IAC9B,IAAI,EAAE,OAAO,CAAC;IAEd,OAAO,EAAE,MAAM,IAAI,CAAC;IAEpB,WAAW,EAAE,sBAAsB,CAAC,aAAa,CAAC,CAAC;IACnD,kBAAkB,EAAE,MAAM,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;CACzB;;AAED,wBAuBG"}
1
+ {"version":3,"file":"annotation-trigger.d.ts","sourceRoot":"","sources":["../../../../src/annotation-context/annotation/annotation-trigger.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAE3C,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAKvD,UAAU,sBAAsB;IAC9B,IAAI,EAAE,OAAO,CAAC;IAEd,OAAO,EAAE,MAAM,IAAI,CAAC;IAEpB,WAAW,EAAE,sBAAsB,CAAC,aAAa,CAAC,CAAC;IACnD,kBAAkB,EAAE,MAAM,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;CACzB;;AAED,wBAwBG"}
@@ -8,7 +8,7 @@ export default React.forwardRef(function AnnotationTrigger({ open, onClick: onCl
8
8
  event.preventDefault();
9
9
  onClickHandler();
10
10
  }, [onClickHandler]);
11
- return (React.createElement("button", { ref: ref, className: styles.hotspot, "aria-haspopup": "dialog", "aria-label": i18nStrings.labelHotspot(open, taskLocalStepIndex !== null && taskLocalStepIndex !== void 0 ? taskLocalStepIndex : 0, totalLocalSteps !== null && totalLocalSteps !== void 0 ? totalLocalSteps : 0), onClick: onClick },
11
+ return (React.createElement("button", { ref: ref, className: styles.hotspot, "aria-haspopup": "dialog", "aria-expanded": open, "aria-label": i18nStrings.labelHotspot(open, taskLocalStepIndex !== null && taskLocalStepIndex !== void 0 ? taskLocalStepIndex : 0, totalLocalSteps !== null && totalLocalSteps !== void 0 ? totalLocalSteps : 0), onClick: onClick },
12
12
  React.createElement(AnnotationIcon, { open: open })));
13
13
  });
14
14
  //# sourceMappingURL=annotation-trigger.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"annotation-trigger.js","sourceRoot":"","sources":["../../../../src/annotation-context/annotation/annotation-trigger.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAG3C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAYrC,eAAe,KAAK,CAAC,UAAU,CAA4C,SAAS,iBAAiB,CACnG,EAAE,IAAI,EAAE,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,kBAAkB,EAAE,eAAe,EAA0B,EAC3G,GAAG;IAEH,MAAM,OAAO,GAAG,WAAW,CACzB,CAAC,KAAuB,EAAE,EAAE;QAC1B,KAAK,CAAC,cAAc,EAAE,CAAC;QACvB,cAAc,EAAE,CAAC;IACnB,CAAC,EACD,CAAC,cAAc,CAAC,CACjB,CAAC;IAEF,OAAO,CACL,gCACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,MAAM,CAAC,OAAO,mBACX,QAAQ,gBACV,WAAW,CAAC,YAAY,CAAC,IAAI,EAAE,kBAAkB,aAAlB,kBAAkB,cAAlB,kBAAkB,GAAI,CAAC,EAAE,eAAe,aAAf,eAAe,cAAf,eAAe,GAAI,CAAC,CAAC,EACzF,OAAO,EAAE,OAAO;QAEhB,oBAAC,cAAc,IAAC,IAAI,EAAE,IAAI,GAAI,CACvB,CACV,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useCallback } from 'react';\n\nimport { AnnotationContextProps } from '../interfaces';\nimport { AnnotationIcon } from './annotation-icon';\n\nimport styles from './styles.css.js';\n\ninterface AnnotationTriggerProps {\n open: boolean;\n\n onClick: () => void;\n\n i18nStrings: AnnotationContextProps['i18nStrings'];\n taskLocalStepIndex: number;\n totalLocalSteps: number;\n}\n\nexport default React.forwardRef<HTMLButtonElement, AnnotationTriggerProps>(function AnnotationTrigger(\n { open, onClick: onClickHandler, i18nStrings, taskLocalStepIndex, totalLocalSteps }: AnnotationTriggerProps,\n ref\n) {\n const onClick = useCallback(\n (event: React.MouseEvent) => {\n event.preventDefault();\n onClickHandler();\n },\n [onClickHandler]\n );\n\n return (\n <button\n ref={ref}\n className={styles.hotspot}\n aria-haspopup=\"dialog\"\n aria-label={i18nStrings.labelHotspot(open, taskLocalStepIndex ?? 0, totalLocalSteps ?? 0)}\n onClick={onClick}\n >\n <AnnotationIcon open={open} />\n </button>\n );\n});\n"]}
1
+ {"version":3,"file":"annotation-trigger.js","sourceRoot":"","sources":["../../../../src/annotation-context/annotation/annotation-trigger.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAG3C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAYrC,eAAe,KAAK,CAAC,UAAU,CAA4C,SAAS,iBAAiB,CACnG,EAAE,IAAI,EAAE,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,kBAAkB,EAAE,eAAe,EAA0B,EAC3G,GAAG;IAEH,MAAM,OAAO,GAAG,WAAW,CACzB,CAAC,KAAuB,EAAE,EAAE;QAC1B,KAAK,CAAC,cAAc,EAAE,CAAC;QACvB,cAAc,EAAE,CAAC;IACnB,CAAC,EACD,CAAC,cAAc,CAAC,CACjB,CAAC;IAEF,OAAO,CACL,gCACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,MAAM,CAAC,OAAO,mBACX,QAAQ,mBACP,IAAI,gBACP,WAAW,CAAC,YAAY,CAAC,IAAI,EAAE,kBAAkB,aAAlB,kBAAkB,cAAlB,kBAAkB,GAAI,CAAC,EAAE,eAAe,aAAf,eAAe,cAAf,eAAe,GAAI,CAAC,CAAC,EACzF,OAAO,EAAE,OAAO;QAEhB,oBAAC,cAAc,IAAC,IAAI,EAAE,IAAI,GAAI,CACvB,CACV,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useCallback } from 'react';\n\nimport { AnnotationContextProps } from '../interfaces';\nimport { AnnotationIcon } from './annotation-icon';\n\nimport styles from './styles.css.js';\n\ninterface AnnotationTriggerProps {\n open: boolean;\n\n onClick: () => void;\n\n i18nStrings: AnnotationContextProps['i18nStrings'];\n taskLocalStepIndex: number;\n totalLocalSteps: number;\n}\n\nexport default React.forwardRef<HTMLButtonElement, AnnotationTriggerProps>(function AnnotationTrigger(\n { open, onClick: onClickHandler, i18nStrings, taskLocalStepIndex, totalLocalSteps }: AnnotationTriggerProps,\n ref\n) {\n const onClick = useCallback(\n (event: React.MouseEvent) => {\n event.preventDefault();\n onClickHandler();\n },\n [onClickHandler]\n );\n\n return (\n <button\n ref={ref}\n className={styles.hotspot}\n aria-haspopup=\"dialog\"\n aria-expanded={open}\n aria-label={i18nStrings.labelHotspot(open, taskLocalStepIndex ?? 0, totalLocalSteps ?? 0)}\n onClick={onClick}\n >\n <AnnotationIcon open={open} />\n </button>\n );\n});\n"]}
@@ -38,8 +38,15 @@ export interface AnnotationContextProps {
38
38
  */
39
39
  children: React.ReactNode;
40
40
  /**
41
- * An object containing all the necessary localized strings required by
42
- * the component.
41
+ * An object containing all the necessary localized strings required by the component. The object should contain:
42
+ *
43
+ * * `finishButtonText` - Specifies the text that's displayed in the finish button.
44
+ * * `labelDismissAnnotation` - Specifies the aria-label for the dismiss button.
45
+ * * `labelHotspot` - Specifies the aria-label for the hotspot button. The `openState` argument is deprecated, it's handled by the hotspot button aria-expanded attribute.
46
+ * * `nextButtonText` - Specifies the text that's displayed in the next button.
47
+ * * `previousButtonText` - Specifies the text that's displayed in the previous button.
48
+ * * `stepCounterText` - Specifies the step counter text that's displayed in the annotation popover.
49
+ * * `taskTitle` - Specifies the title text that's displayed in the annotation popover.
43
50
  */
44
51
  i18nStrings: AnnotationContextProps.I18nStrings;
45
52
  }
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/annotation-context/interfaces.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAElE,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,eAAe,EAAE,sBAAsB,CAAC,QAAQ,GAAG,IAAI,CAAC;IAExD;;;;;;;;;OASG;IACH,YAAY,CAAC,EAAE,yBAAyB,CAAC,sBAAsB,CAAC,gBAAgB,CAAC,CAAC;IAElF;;OAEG;IACH,eAAe,EAAE,yBAAyB,CAAC,kBAAkB,CAAC,cAAc,CAAC,CAAC;IAE9E;;OAEG;IACH,cAAc,EAAE,yBAAyB,CAAC,kBAAkB,CAAC,cAAc,CAAC,CAAC;IAE7E;;;OAGG;IACH,QAAQ,CAAC,EAAE,yBAAyB,CAAC,IAAI,CAAC,CAAC;IAE3C;;;;OAIG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B;;;OAGG;IACH,WAAW,EAAE,sBAAsB,CAAC,WAAW,CAAC;CACjD;AAED,yBAAiB,sBAAsB,CAAC;IACtC,UAAiB,gBAA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IACH,cAAc,EAAE,yBAAyB,CAAC,kBAAkB,CAAC,cAAc,CAAC,CAAC;IAE7E;;;OAGG;IACH,QAAQ,CAAC,EAAE,yBAAyB,CAAC,IAAI,CAAC,CAAC;IAE3C;;;;OAIG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B;;;;;;;;;;OAUG;IACH,WAAW,EAAE,sBAAsB,CAAC,WAAW,CAAC;CACjD;AAED,yBAAiB,sBAAsB,CAAC;IACtC,UAAiB,gBAAgB;QAC/B,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,GAAG,UAAU,GAAG,MAAM,GAAG,eAAe,CAAC;KACxD;IAED,UAAiB,gBAAgB;QAC/B,IAAI,EAAE,OAAO,CAAC;KACf;IAED,KAAY,IAAI,GAAG,kBAAkB,CAAC,IAAI,CAAC;IAC3C,KAAY,IAAI,GAAG,kBAAkB,CAAC,IAAI,CAAC;IAC3C,KAAY,QAAQ,GAAG,kBAAkB,CAAC,QAAQ,CAAC;IAEnD,UAAiB,WAAW;QAC1B,cAAc,EAAE,MAAM,CAAC;QACvB,kBAAkB,EAAE,MAAM,CAAC;QAC3B,gBAAgB,EAAE,MAAM,CAAC;QAEzB,sBAAsB,EAAE,MAAM,CAAC;QAC/B,YAAY,EAAE,CAAC,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,KAAK,MAAM,CAAC;QAExF,eAAe,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,KAAK,MAAM,CAAC;QACvE,SAAS,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,MAAM,CAAC;KAC7D;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/annotation-context/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { NonCancelableEventHandler } from '../internal/events';\nimport { TutorialPanelProps } from '../tutorial-panel/interfaces';\n\nexport interface AnnotationContextProps {\n /**\n * The currently launched tutorial. This should be the object received\n * in the `detail` property of the `onStartTutorial` event.\n */\n currentTutorial: AnnotationContextProps.Tutorial | null;\n\n /**\n * This event is fired when a user clicks the \"Next\" or \"Previous\"\n * button on a popover, when the user clicks on a closed hotspot icon,\n * or when the AnnotationOverlay determines that the current hotspot\n * has disappeared from the page and a different one should be\n * selected (e.g. when navigating between pages).\n *\n * Use the `reason` property of the event detail to determine why\n * this event was fired.\n */\n onStepChange?: NonCancelableEventHandler<AnnotationContextProps.StepChangeDetail>;\n\n /**\n * Fired when the user selects a tutorial from the list.\n */\n onStartTutorial: NonCancelableEventHandler<TutorialPanelProps.TutorialDetail>;\n\n /**\n * Fired when the user exits the current tutorial.\n */\n onExitTutorial: NonCancelableEventHandler<TutorialPanelProps.TutorialDetail>;\n\n /**\n * Fired when the user clicks the \"Finish\" button on the last step of\n * the tutorial.\n */\n onFinish?: NonCancelableEventHandler<void>;\n\n /**\n * Put all page content inside this component's children. This component\n * will provide a context which is used by the Hotspot elements throughout\n * the page.\n */\n children: React.ReactNode;\n\n /**\n * An object containing all the necessary localized strings required by\n * the component.\n */\n i18nStrings: AnnotationContextProps.I18nStrings;\n}\n\nexport namespace AnnotationContextProps {\n export interface StepChangeDetail {\n step: number;\n reason: 'next' | 'previous' | 'open' | 'auto-fallback';\n }\n\n export interface OpenChangeDetail {\n open: boolean;\n }\n\n export type Task = TutorialPanelProps.Task;\n export type Step = TutorialPanelProps.Step;\n export type Tutorial = TutorialPanelProps.Tutorial;\n\n export interface I18nStrings {\n nextButtonText: string;\n previousButtonText: string;\n finishButtonText: string;\n\n labelDismissAnnotation: string;\n labelHotspot: (openState: boolean, stepIndex: number, totalStepCount: number) => string;\n\n stepCounterText: (stepIndex: number, totalStepCount: number) => string;\n taskTitle: (taskIndex: number, taskTitle: string) => string;\n }\n}\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/annotation-context/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { NonCancelableEventHandler } from '../internal/events';\nimport { TutorialPanelProps } from '../tutorial-panel/interfaces';\n\nexport interface AnnotationContextProps {\n /**\n * The currently launched tutorial. This should be the object received\n * in the `detail` property of the `onStartTutorial` event.\n */\n currentTutorial: AnnotationContextProps.Tutorial | null;\n\n /**\n * This event is fired when a user clicks the \"Next\" or \"Previous\"\n * button on a popover, when the user clicks on a closed hotspot icon,\n * or when the AnnotationOverlay determines that the current hotspot\n * has disappeared from the page and a different one should be\n * selected (e.g. when navigating between pages).\n *\n * Use the `reason` property of the event detail to determine why\n * this event was fired.\n */\n onStepChange?: NonCancelableEventHandler<AnnotationContextProps.StepChangeDetail>;\n\n /**\n * Fired when the user selects a tutorial from the list.\n */\n onStartTutorial: NonCancelableEventHandler<TutorialPanelProps.TutorialDetail>;\n\n /**\n * Fired when the user exits the current tutorial.\n */\n onExitTutorial: NonCancelableEventHandler<TutorialPanelProps.TutorialDetail>;\n\n /**\n * Fired when the user clicks the \"Finish\" button on the last step of\n * the tutorial.\n */\n onFinish?: NonCancelableEventHandler<void>;\n\n /**\n * Put all page content inside this component's children. This component\n * will provide a context which is used by the Hotspot elements throughout\n * the page.\n */\n children: React.ReactNode;\n\n /**\n * An object containing all the necessary localized strings required by the component. The object should contain:\n *\n * * `finishButtonText` - Specifies the text that's displayed in the finish button.\n * * `labelDismissAnnotation` - Specifies the aria-label for the dismiss button.\n * * `labelHotspot` - Specifies the aria-label for the hotspot button. The `openState` argument is deprecated, it's handled by the hotspot button aria-expanded attribute.\n * * `nextButtonText` - Specifies the text that's displayed in the next button.\n * * `previousButtonText` - Specifies the text that's displayed in the previous button.\n * * `stepCounterText` - Specifies the step counter text that's displayed in the annotation popover.\n * * `taskTitle` - Specifies the title text that's displayed in the annotation popover.\n */\n i18nStrings: AnnotationContextProps.I18nStrings;\n}\n\nexport namespace AnnotationContextProps {\n export interface StepChangeDetail {\n step: number;\n reason: 'next' | 'previous' | 'open' | 'auto-fallback';\n }\n\n export interface OpenChangeDetail {\n open: boolean;\n }\n\n export type Task = TutorialPanelProps.Task;\n export type Step = TutorialPanelProps.Step;\n export type Tutorial = TutorialPanelProps.Tutorial;\n\n export interface I18nStrings {\n nextButtonText: string;\n previousButtonText: string;\n finishButtonText: string;\n\n labelDismissAnnotation: string;\n labelHotspot: (openState: boolean, stepIndex: number, totalStepCount: number) => string;\n\n stepCounterText: (stepIndex: number, totalStepCount: number) => string;\n taskTitle: (taskIndex: number, taskTitle: string) => string;\n }\n}\n"]}
@@ -1,4 +1,4 @@
1
1
  export var PACKAGE_SOURCE = "components";
2
- export var PACKAGE_VERSION = "3.0.0 (b0921c44)";
2
+ export var PACKAGE_VERSION = "3.0.0 (aaa40924)";
3
3
  export var THEME = "open-source-visual-refresh";
4
4
  export var ALWAYS_VISUAL_REFRESH = true;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "PACKAGE_SOURCE": "components",
3
- "PACKAGE_VERSION": "3.0.0 (b0921c44)",
3
+ "PACKAGE_VERSION": "3.0.0 (aaa40924)",
4
4
  "THEME": "default",
5
5
  "ALWAYS_VISUAL_REFRESH": false
6
6
  }
@@ -1,3 +1,3 @@
1
1
  {
2
- "commit": "b0921c448d0ceb03d59e35fa1193e00e64075517"
2
+ "commit": "aaa40924623d63e0e1ac8dcfa9a8decb51248755"
3
3
  }
package/package.json CHANGED
@@ -132,7 +132,7 @@
132
132
  "./internal/base-component/index.js",
133
133
  "./internal/base-component/styles.css.js"
134
134
  ],
135
- "version": "3.0.912",
135
+ "version": "3.0.913",
136
136
  "repository": {
137
137
  "type": "git",
138
138
  "url": "https://github.com/cloudscape-design/components.git"