@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.
- package/avatar/index.d.ts +1 -5
- package/avatar/index.js +10 -16
- package/avatar/interfaces.d.ts +77 -78
- package/avatar/internal.d.ts +3 -16
- package/avatar/internal.js +1 -3
- package/avatar/internal.js.map +1 -1
- package/avatar/loading-dots/index.d.ts +5 -9
- package/avatar/style.d.ts +1 -1
- package/chat-bubble/index.d.ts +1 -6
- package/chat-bubble/interfaces.d.ts +47 -26
- package/chat-bubble/interfaces.js.map +1 -1
- package/chat-bubble/internal.d.ts +3 -12
- package/chat-bubble/internal.js +3 -4
- package/chat-bubble/internal.js.map +1 -1
- package/chat-bubble/style.d.ts +33 -0
- package/chat-bubble/style.js +33 -0
- package/chat-bubble/style.js.map +1 -0
- package/chat-bubble/styles.css.js +9 -9
- package/chat-bubble/styles.scoped.css +16 -11
- package/chat-bubble/styles.selectors.js +9 -9
- package/index.d.ts +1 -1
- package/internal/api-docs/components/chat-bubble.js +96 -0
- package/internal/api-docs/components/index.d.ts +1 -1
- package/internal/api-docs/components/interfaces.d.ts +56 -56
- package/internal/api-docs/test-utils-doc/dom.d.ts +3 -2
- package/internal/api-docs/test-utils-doc/interfaces.d.ts +22 -22
- package/internal/api-docs/test-utils-doc/selectors.d.ts +3 -2
- package/internal/base-component/get-data-attributes.d.ts +1 -1
- package/internal/base-component/use-base-component.d.ts +3 -3
- package/internal/base-component/use-visual-refresh.d.ts +1 -1
- package/internal/environment.js +2 -2
- package/internal/environment.json +2 -2
- package/internal/events/index.d.ts +14 -18
- package/internal/generated/custom-css-properties/index.d.ts +6 -6
- package/internal/generated/styles/tokens.js +8 -8
- package/internal/generated/theming/index.cjs +24 -24
- package/internal/generated/theming/index.cjs.d.ts +14 -13
- package/internal/generated/theming/index.d.ts +14 -13
- package/internal/generated/theming/index.js +24 -24
- package/internal/keycode.d.ts +18 -18
- package/internal/manifest.json +1 -1
- package/internal/utils/apply-display-name.d.ts +1 -1
- package/internal/utils/get-visual-theme.d.ts +1 -1
- package/internal/utils/use-forward-focus.d.ts +3 -4
- package/loading-bar/index.d.ts +1 -1
- package/loading-bar/interfaces.d.ts +8 -8
- package/loading-bar/internal.d.ts +1 -5
- package/package.json +1 -1
- package/support-prompt-group/focus-helpers.d.ts +2 -3
- package/support-prompt-group/index.d.ts +1 -2
- package/support-prompt-group/interfaces.d.ts +35 -35
- package/support-prompt-group/internal.d.ts +1 -2
- package/support-prompt-group/prompt.d.ts +4 -5
- package/test-utils/dom/avatar/index.d.ts +3 -3
- package/test-utils/dom/chat-bubble/index.d.ts +6 -6
- package/test-utils/dom/index.d.ts +75 -75
- package/test-utils/dom/loading-bar/index.d.ts +2 -2
- package/test-utils/dom/support-prompt-group/index.d.ts +11 -11
- package/test-utils/selectors/avatar/index.d.ts +3 -3
- package/test-utils/selectors/chat-bubble/index.d.ts +6 -6
- package/test-utils/selectors/index.d.ts +67 -67
- package/test-utils/selectors/loading-bar/index.d.ts +2 -2
- package/test-utils/selectors/support-prompt-group/index.d.ts +11 -11
- package/avatar/internal-do-not-use-core.js +0 -12
- /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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
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,15 +1,15 @@
|
|
|
1
1
|
import { ComponentWrapper, ElementWrapper } from "@cloudscape-design/test-utils-core/dom";
|
|
2
2
|
export default class SupportPromptGroupWrapper extends ComponentWrapper {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
|
|
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
|
-
|
|
4
|
-
|
|
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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
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,15 +1,15 @@
|
|
|
1
1
|
import { ComponentWrapper, ElementWrapper } from "@cloudscape-design/test-utils-core/selectors";
|
|
2
2
|
export default class SupportPromptGroupWrapper extends ComponentWrapper {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
|
|
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
|
|
File without changes
|