@cloudscape-design/chat-components 1.0.79 → 1.0.81

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 (65) hide show
  1. package/avatar/index.d.ts +1 -5
  2. package/avatar/index.js +10 -16
  3. package/avatar/interfaces.d.ts +77 -78
  4. package/avatar/internal.d.ts +3 -16
  5. package/avatar/internal.js +1 -3
  6. package/avatar/internal.js.map +1 -1
  7. package/avatar/loading-dots/index.d.ts +5 -9
  8. package/avatar/style.d.ts +1 -1
  9. package/chat-bubble/index.d.ts +1 -6
  10. package/chat-bubble/interfaces.d.ts +47 -26
  11. package/chat-bubble/interfaces.js.map +1 -1
  12. package/chat-bubble/internal.d.ts +3 -12
  13. package/chat-bubble/internal.js +3 -4
  14. package/chat-bubble/internal.js.map +1 -1
  15. package/chat-bubble/style.d.ts +33 -0
  16. package/chat-bubble/style.js +33 -0
  17. package/chat-bubble/style.js.map +1 -0
  18. package/chat-bubble/styles.css.js +9 -9
  19. package/chat-bubble/styles.scoped.css +16 -11
  20. package/chat-bubble/styles.selectors.js +9 -9
  21. package/index.d.ts +1 -1
  22. package/internal/api-docs/components/chat-bubble.js +96 -0
  23. package/internal/api-docs/components/index.d.ts +1 -1
  24. package/internal/api-docs/components/interfaces.d.ts +56 -56
  25. package/internal/api-docs/test-utils-doc/dom.d.ts +3 -2
  26. package/internal/api-docs/test-utils-doc/interfaces.d.ts +22 -22
  27. package/internal/api-docs/test-utils-doc/selectors.d.ts +3 -2
  28. package/internal/base-component/get-data-attributes.d.ts +1 -1
  29. package/internal/base-component/use-base-component.d.ts +3 -3
  30. package/internal/base-component/use-visual-refresh.d.ts +1 -1
  31. package/internal/environment.js +2 -2
  32. package/internal/environment.json +2 -2
  33. package/internal/events/index.d.ts +14 -18
  34. package/internal/generated/custom-css-properties/index.d.ts +6 -6
  35. package/internal/generated/styles/tokens.js +8 -8
  36. package/internal/generated/theming/index.cjs +24 -24
  37. package/internal/generated/theming/index.cjs.d.ts +14 -13
  38. package/internal/generated/theming/index.d.ts +14 -13
  39. package/internal/generated/theming/index.js +24 -24
  40. package/internal/keycode.d.ts +18 -18
  41. package/internal/manifest.json +1 -1
  42. package/internal/utils/apply-display-name.d.ts +1 -1
  43. package/internal/utils/get-visual-theme.d.ts +1 -1
  44. package/internal/utils/use-forward-focus.d.ts +3 -4
  45. package/loading-bar/index.d.ts +1 -1
  46. package/loading-bar/interfaces.d.ts +8 -8
  47. package/loading-bar/internal.d.ts +1 -5
  48. package/package.json +1 -1
  49. package/support-prompt-group/focus-helpers.d.ts +2 -3
  50. package/support-prompt-group/index.d.ts +1 -2
  51. package/support-prompt-group/interfaces.d.ts +35 -35
  52. package/support-prompt-group/internal.d.ts +1 -2
  53. package/support-prompt-group/prompt.d.ts +4 -5
  54. package/test-utils/dom/avatar/index.d.ts +3 -3
  55. package/test-utils/dom/chat-bubble/index.d.ts +6 -6
  56. package/test-utils/dom/index.d.ts +75 -75
  57. package/test-utils/dom/loading-bar/index.d.ts +2 -2
  58. package/test-utils/dom/support-prompt-group/index.d.ts +11 -11
  59. package/test-utils/selectors/avatar/index.d.ts +3 -3
  60. package/test-utils/selectors/chat-bubble/index.d.ts +6 -6
  61. package/test-utils/selectors/index.d.ts +67 -67
  62. package/test-utils/selectors/loading-bar/index.d.ts +2 -2
  63. package/test-utils/selectors/support-prompt-group/index.d.ts +11 -11
  64. package/avatar/internal-do-not-use-core.js +0 -12
  65. /package/avatar/{internal-do-not-use-core.js.map → index.js.map} +0 -0
@@ -9,79 +9,79 @@ export { ChatBubbleWrapper };
9
9
  export { LoadingBarWrapper };
10
10
  export { SupportPromptGroupWrapper };
11
11
  declare module '@cloudscape-design/test-utils-core/dist/dom' {
12
- interface ElementWrapper {
13
- /**
14
- * Returns the wrapper of the first Avatar that matches the specified CSS selector.
15
- * If no CSS selector is specified, returns the wrapper of the first Avatar.
16
- * If no matching Avatar is found, returns `null`.
17
- *
18
- * @param {string} [selector] CSS Selector
19
- * @returns {AvatarWrapper | null}
20
- */
21
- findAvatar(selector?: string): AvatarWrapper | null;
22
- /**
23
- * Returns an array of Avatar wrapper that matches the specified CSS selector.
24
- * If no CSS selector is specified, returns all of the Avatars inside the current wrapper.
25
- * If no matching Avatar is found, returns an empty array.
26
- *
27
- * @param {string} [selector] CSS Selector
28
- * @returns {Array<AvatarWrapper>}
29
- */
30
- findAllAvatars(selector?: string): Array<AvatarWrapper>;
31
- /**
32
- * Returns the wrapper of the first ChatBubble that matches the specified CSS selector.
33
- * If no CSS selector is specified, returns the wrapper of the first ChatBubble.
34
- * If no matching ChatBubble is found, returns `null`.
35
- *
36
- * @param {string} [selector] CSS Selector
37
- * @returns {ChatBubbleWrapper | null}
38
- */
39
- findChatBubble(selector?: string): ChatBubbleWrapper | null;
40
- /**
41
- * Returns an array of ChatBubble wrapper that matches the specified CSS selector.
42
- * If no CSS selector is specified, returns all of the ChatBubbles inside the current wrapper.
43
- * If no matching ChatBubble is found, returns an empty array.
44
- *
45
- * @param {string} [selector] CSS Selector
46
- * @returns {Array<ChatBubbleWrapper>}
47
- */
48
- findAllChatBubbles(selector?: string): Array<ChatBubbleWrapper>;
49
- /**
50
- * Returns the wrapper of the first LoadingBar that matches the specified CSS selector.
51
- * If no CSS selector is specified, returns the wrapper of the first LoadingBar.
52
- * If no matching LoadingBar is found, returns `null`.
53
- *
54
- * @param {string} [selector] CSS Selector
55
- * @returns {LoadingBarWrapper | null}
56
- */
57
- findLoadingBar(selector?: string): LoadingBarWrapper | null;
58
- /**
59
- * Returns an array of LoadingBar wrapper that matches the specified CSS selector.
60
- * If no CSS selector is specified, returns all of the LoadingBars inside the current wrapper.
61
- * If no matching LoadingBar is found, returns an empty array.
62
- *
63
- * @param {string} [selector] CSS Selector
64
- * @returns {Array<LoadingBarWrapper>}
65
- */
66
- findAllLoadingBars(selector?: string): Array<LoadingBarWrapper>;
67
- /**
68
- * Returns the wrapper of the first SupportPromptGroup that matches the specified CSS selector.
69
- * If no CSS selector is specified, returns the wrapper of the first SupportPromptGroup.
70
- * If no matching SupportPromptGroup is found, returns `null`.
71
- *
72
- * @param {string} [selector] CSS Selector
73
- * @returns {SupportPromptGroupWrapper | null}
74
- */
75
- findSupportPromptGroup(selector?: string): SupportPromptGroupWrapper | null;
76
- /**
77
- * Returns an array of SupportPromptGroup wrapper that matches the specified CSS selector.
78
- * If no CSS selector is specified, returns all of the SupportPromptGroups inside the current wrapper.
79
- * If no matching SupportPromptGroup is found, returns an empty array.
80
- *
81
- * @param {string} [selector] CSS Selector
82
- * @returns {Array<SupportPromptGroupWrapper>}
83
- */
84
- findAllSupportPromptGroups(selector?: string): Array<SupportPromptGroupWrapper>;
85
- }
12
+ interface ElementWrapper {
13
+ /**
14
+ * Returns the wrapper of the first Avatar that matches the specified CSS selector.
15
+ * If no CSS selector is specified, returns the wrapper of the first Avatar.
16
+ * If no matching Avatar is found, returns `null`.
17
+ *
18
+ * @param {string} [selector] CSS Selector
19
+ * @returns {AvatarWrapper | null}
20
+ */
21
+ findAvatar(selector?: string): AvatarWrapper | null;
22
+ /**
23
+ * Returns an array of Avatar wrapper that matches the specified CSS selector.
24
+ * If no CSS selector is specified, returns all of the Avatars inside the current wrapper.
25
+ * If no matching Avatar is found, returns an empty array.
26
+ *
27
+ * @param {string} [selector] CSS Selector
28
+ * @returns {Array<AvatarWrapper>}
29
+ */
30
+ findAllAvatars(selector?: string): Array<AvatarWrapper>;
31
+ /**
32
+ * Returns the wrapper of the first ChatBubble that matches the specified CSS selector.
33
+ * If no CSS selector is specified, returns the wrapper of the first ChatBubble.
34
+ * If no matching ChatBubble is found, returns `null`.
35
+ *
36
+ * @param {string} [selector] CSS Selector
37
+ * @returns {ChatBubbleWrapper | null}
38
+ */
39
+ findChatBubble(selector?: string): ChatBubbleWrapper | null;
40
+ /**
41
+ * Returns an array of ChatBubble wrapper that matches the specified CSS selector.
42
+ * If no CSS selector is specified, returns all of the ChatBubbles inside the current wrapper.
43
+ * If no matching ChatBubble is found, returns an empty array.
44
+ *
45
+ * @param {string} [selector] CSS Selector
46
+ * @returns {Array<ChatBubbleWrapper>}
47
+ */
48
+ findAllChatBubbles(selector?: string): Array<ChatBubbleWrapper>;
49
+ /**
50
+ * Returns the wrapper of the first LoadingBar that matches the specified CSS selector.
51
+ * If no CSS selector is specified, returns the wrapper of the first LoadingBar.
52
+ * If no matching LoadingBar is found, returns `null`.
53
+ *
54
+ * @param {string} [selector] CSS Selector
55
+ * @returns {LoadingBarWrapper | null}
56
+ */
57
+ findLoadingBar(selector?: string): LoadingBarWrapper | null;
58
+ /**
59
+ * Returns an array of LoadingBar wrapper that matches the specified CSS selector.
60
+ * If no CSS selector is specified, returns all of the LoadingBars inside the current wrapper.
61
+ * If no matching LoadingBar is found, returns an empty array.
62
+ *
63
+ * @param {string} [selector] CSS Selector
64
+ * @returns {Array<LoadingBarWrapper>}
65
+ */
66
+ findAllLoadingBars(selector?: string): Array<LoadingBarWrapper>;
67
+ /**
68
+ * Returns the wrapper of the first SupportPromptGroup that matches the specified CSS selector.
69
+ * If no CSS selector is specified, returns the wrapper of the first SupportPromptGroup.
70
+ * If no matching SupportPromptGroup is found, returns `null`.
71
+ *
72
+ * @param {string} [selector] CSS Selector
73
+ * @returns {SupportPromptGroupWrapper | null}
74
+ */
75
+ findSupportPromptGroup(selector?: string): SupportPromptGroupWrapper | null;
76
+ /**
77
+ * Returns an array of SupportPromptGroup wrapper that matches the specified CSS selector.
78
+ * If no CSS selector is specified, returns all of the SupportPromptGroups inside the current wrapper.
79
+ * If no matching SupportPromptGroup is found, returns an empty array.
80
+ *
81
+ * @param {string} [selector] CSS Selector
82
+ * @returns {Array<SupportPromptGroupWrapper>}
83
+ */
84
+ findAllSupportPromptGroups(selector?: string): Array<SupportPromptGroupWrapper>;
85
+ }
86
86
  }
87
- export default function wrapper(root?: Element): ElementWrapper<Element>;
87
+ export default function wrapper(root?: Element): ElementWrapper<Element>;
@@ -1,4 +1,4 @@
1
1
  import { ComponentWrapper } from "@cloudscape-design/test-utils-core/dom";
2
2
  export default class LoadingBarWrapper extends ComponentWrapper {
3
- static rootSelector: string;
4
- }
3
+ static rootSelector: string;
4
+ }
@@ -1,15 +1,15 @@
1
1
  import { ComponentWrapper, ElementWrapper } from "@cloudscape-design/test-utils-core/dom";
2
2
  export default class SupportPromptGroupWrapper extends ComponentWrapper {
3
- static rootSelector: string;
4
- /**
5
- * Finds all items.
6
- */
7
- findItems(): Array<ElementWrapper>;
8
- /**
9
- * Finds a support prompt item by its id.
10
- */
11
- findItemById(id: string): null | SupportPromptWrapper;
3
+ static rootSelector: string;
4
+ /**
5
+ * Finds all items.
6
+ */
7
+ findItems(): Array<ElementWrapper>;
8
+ /**
9
+ * Finds a support prompt item by its id.
10
+ */
11
+ findItemById(id: string): null | SupportPromptWrapper;
12
12
  }
13
13
  export declare class SupportPromptWrapper extends ComponentWrapper<HTMLButtonElement> {
14
- static rootSelector: string;
15
- }
14
+ static rootSelector: string;
15
+ }
@@ -1,5 +1,5 @@
1
1
  import { ComponentWrapper, ElementWrapper } from "@cloudscape-design/test-utils-core/selectors";
2
2
  export default class AvatarWrapper extends ComponentWrapper {
3
- static rootSelector: string;
4
- findTooltip(): ElementWrapper;
5
- }
3
+ static rootSelector: string;
4
+ findTooltip(): ElementWrapper;
5
+ }
@@ -1,9 +1,9 @@
1
1
  import { ComponentWrapper, ElementWrapper } from "@cloudscape-design/test-utils-core/selectors";
2
2
  import LoadingBarWrapper from "../loading-bar";
3
3
  export default class ChatBubbleWrapper extends ComponentWrapper {
4
- static rootSelector: string;
5
- findAvatarSlot(): ElementWrapper | null;
6
- findContentSlot(): ElementWrapper;
7
- findActionsSlot(): ElementWrapper;
8
- findLoadingBar(): LoadingBarWrapper;
9
- }
4
+ static rootSelector: string;
5
+ findAvatarSlot(): ElementWrapper | null;
6
+ findContentSlot(): ElementWrapper;
7
+ findActionsSlot(): ElementWrapper;
8
+ findLoadingBar(): LoadingBarWrapper;
9
+ }
@@ -9,71 +9,71 @@ export { ChatBubbleWrapper };
9
9
  export { LoadingBarWrapper };
10
10
  export { SupportPromptGroupWrapper };
11
11
  declare module '@cloudscape-design/test-utils-core/dist/selectors' {
12
- interface ElementWrapper {
13
- /**
14
- * Returns a wrapper that matches the Avatars with the specified CSS selector.
15
- * If no CSS selector is specified, returns a wrapper that matches Avatars.
16
- *
17
- * @param {string} [selector] CSS Selector
18
- * @returns {AvatarWrapper}
19
- */
20
- findAvatar(selector?: string): AvatarWrapper;
21
- /**
22
- * Returns a multi-element wrapper that matches Avatars with the specified CSS selector.
23
- * If no CSS selector is specified, returns a multi-element wrapper that matches Avatars.
24
- *
25
- * @param {string} [selector] CSS Selector
26
- * @returns {MultiElementWrapper<AvatarWrapper>}
27
- */
28
- findAllAvatars(selector?: string): MultiElementWrapper<AvatarWrapper>;
29
- /**
30
- * Returns a wrapper that matches the ChatBubbles with the specified CSS selector.
31
- * If no CSS selector is specified, returns a wrapper that matches ChatBubbles.
32
- *
33
- * @param {string} [selector] CSS Selector
34
- * @returns {ChatBubbleWrapper}
35
- */
36
- findChatBubble(selector?: string): ChatBubbleWrapper;
37
- /**
38
- * Returns a multi-element wrapper that matches ChatBubbles with the specified CSS selector.
39
- * If no CSS selector is specified, returns a multi-element wrapper that matches ChatBubbles.
40
- *
41
- * @param {string} [selector] CSS Selector
42
- * @returns {MultiElementWrapper<ChatBubbleWrapper>}
43
- */
44
- findAllChatBubbles(selector?: string): MultiElementWrapper<ChatBubbleWrapper>;
45
- /**
46
- * Returns a wrapper that matches the LoadingBars with the specified CSS selector.
47
- * If no CSS selector is specified, returns a wrapper that matches LoadingBars.
48
- *
49
- * @param {string} [selector] CSS Selector
50
- * @returns {LoadingBarWrapper}
51
- */
52
- findLoadingBar(selector?: string): LoadingBarWrapper;
53
- /**
54
- * Returns a multi-element wrapper that matches LoadingBars with the specified CSS selector.
55
- * If no CSS selector is specified, returns a multi-element wrapper that matches LoadingBars.
56
- *
57
- * @param {string} [selector] CSS Selector
58
- * @returns {MultiElementWrapper<LoadingBarWrapper>}
59
- */
60
- findAllLoadingBars(selector?: string): MultiElementWrapper<LoadingBarWrapper>;
61
- /**
62
- * Returns a wrapper that matches the SupportPromptGroups with the specified CSS selector.
63
- * If no CSS selector is specified, returns a wrapper that matches SupportPromptGroups.
64
- *
65
- * @param {string} [selector] CSS Selector
66
- * @returns {SupportPromptGroupWrapper}
67
- */
68
- findSupportPromptGroup(selector?: string): SupportPromptGroupWrapper;
69
- /**
70
- * Returns a multi-element wrapper that matches SupportPromptGroups with the specified CSS selector.
71
- * If no CSS selector is specified, returns a multi-element wrapper that matches SupportPromptGroups.
72
- *
73
- * @param {string} [selector] CSS Selector
74
- * @returns {MultiElementWrapper<SupportPromptGroupWrapper>}
75
- */
76
- findAllSupportPromptGroups(selector?: string): MultiElementWrapper<SupportPromptGroupWrapper>;
77
- }
12
+ interface ElementWrapper {
13
+ /**
14
+ * Returns a wrapper that matches the Avatars with the specified CSS selector.
15
+ * If no CSS selector is specified, returns a wrapper that matches Avatars.
16
+ *
17
+ * @param {string} [selector] CSS Selector
18
+ * @returns {AvatarWrapper}
19
+ */
20
+ findAvatar(selector?: string): AvatarWrapper;
21
+ /**
22
+ * Returns a multi-element wrapper that matches Avatars with the specified CSS selector.
23
+ * If no CSS selector is specified, returns a multi-element wrapper that matches Avatars.
24
+ *
25
+ * @param {string} [selector] CSS Selector
26
+ * @returns {MultiElementWrapper<AvatarWrapper>}
27
+ */
28
+ findAllAvatars(selector?: string): MultiElementWrapper<AvatarWrapper>;
29
+ /**
30
+ * Returns a wrapper that matches the ChatBubbles with the specified CSS selector.
31
+ * If no CSS selector is specified, returns a wrapper that matches ChatBubbles.
32
+ *
33
+ * @param {string} [selector] CSS Selector
34
+ * @returns {ChatBubbleWrapper}
35
+ */
36
+ findChatBubble(selector?: string): ChatBubbleWrapper;
37
+ /**
38
+ * Returns a multi-element wrapper that matches ChatBubbles with the specified CSS selector.
39
+ * If no CSS selector is specified, returns a multi-element wrapper that matches ChatBubbles.
40
+ *
41
+ * @param {string} [selector] CSS Selector
42
+ * @returns {MultiElementWrapper<ChatBubbleWrapper>}
43
+ */
44
+ findAllChatBubbles(selector?: string): MultiElementWrapper<ChatBubbleWrapper>;
45
+ /**
46
+ * Returns a wrapper that matches the LoadingBars with the specified CSS selector.
47
+ * If no CSS selector is specified, returns a wrapper that matches LoadingBars.
48
+ *
49
+ * @param {string} [selector] CSS Selector
50
+ * @returns {LoadingBarWrapper}
51
+ */
52
+ findLoadingBar(selector?: string): LoadingBarWrapper;
53
+ /**
54
+ * Returns a multi-element wrapper that matches LoadingBars with the specified CSS selector.
55
+ * If no CSS selector is specified, returns a multi-element wrapper that matches LoadingBars.
56
+ *
57
+ * @param {string} [selector] CSS Selector
58
+ * @returns {MultiElementWrapper<LoadingBarWrapper>}
59
+ */
60
+ findAllLoadingBars(selector?: string): MultiElementWrapper<LoadingBarWrapper>;
61
+ /**
62
+ * Returns a wrapper that matches the SupportPromptGroups with the specified CSS selector.
63
+ * If no CSS selector is specified, returns a wrapper that matches SupportPromptGroups.
64
+ *
65
+ * @param {string} [selector] CSS Selector
66
+ * @returns {SupportPromptGroupWrapper}
67
+ */
68
+ findSupportPromptGroup(selector?: string): SupportPromptGroupWrapper;
69
+ /**
70
+ * Returns a multi-element wrapper that matches SupportPromptGroups with the specified CSS selector.
71
+ * If no CSS selector is specified, returns a multi-element wrapper that matches SupportPromptGroups.
72
+ *
73
+ * @param {string} [selector] CSS Selector
74
+ * @returns {MultiElementWrapper<SupportPromptGroupWrapper>}
75
+ */
76
+ findAllSupportPromptGroups(selector?: string): MultiElementWrapper<SupportPromptGroupWrapper>;
77
+ }
78
78
  }
79
- export default function wrapper(root?: string): ElementWrapper;
79
+ export default function wrapper(root?: string): ElementWrapper;
@@ -1,4 +1,4 @@
1
1
  import { ComponentWrapper } from "@cloudscape-design/test-utils-core/selectors";
2
2
  export default class LoadingBarWrapper extends ComponentWrapper {
3
- static rootSelector: string;
4
- }
3
+ static rootSelector: string;
4
+ }
@@ -1,15 +1,15 @@
1
1
  import { ComponentWrapper, ElementWrapper } from "@cloudscape-design/test-utils-core/selectors";
2
2
  export default class SupportPromptGroupWrapper extends ComponentWrapper {
3
- static rootSelector: string;
4
- /**
5
- * Finds all items.
6
- */
7
- findItems(): import("@cloudscape-design/test-utils-core/selectors").MultiElementWrapper<ElementWrapper>;
8
- /**
9
- * Finds a support prompt item by its id.
10
- */
11
- findItemById(id: string): SupportPromptWrapper;
3
+ static rootSelector: string;
4
+ /**
5
+ * Finds all items.
6
+ */
7
+ findItems(): import("@cloudscape-design/test-utils-core/selectors").MultiElementWrapper<ElementWrapper>;
8
+ /**
9
+ * Finds a support prompt item by its id.
10
+ */
11
+ findItemById(id: string): SupportPromptWrapper;
12
12
  }
13
13
  export declare class SupportPromptWrapper extends ComponentWrapper {
14
- static rootSelector: string;
15
- }
14
+ static rootSelector: string;
15
+ }
@@ -1,12 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- // SPDX-License-Identifier: Apache-2.0
4
- import useBaseComponent from "../internal/base-component/use-base-component";
5
- import { applyDisplayName } from "../internal/utils/apply-display-name";
6
- import InternalAvatar from "./internal";
7
- export default function Avatar({ color = "default", iconName = "user-profile", ...props }) {
8
- const baseComponentProps = useBaseComponent("Avatar", { props: { color, iconName } });
9
- return _jsx(InternalAvatar, { color: color, iconName: iconName, ...props, ...baseComponentProps });
10
- }
11
- applyDisplayName(Avatar, "Avatar");
12
- //# sourceMappingURL=internal-do-not-use-core.js.map