@cloudscape-design/chat-components 1.0.58 → 1.0.60
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 +5 -1
- package/avatar/index.js +16 -10
- package/avatar/interfaces.d.ts +88 -58
- package/avatar/interfaces.js.map +1 -1
- package/avatar/internal-do-not-use-core.js +12 -0
- package/avatar/internal.d.ts +16 -3
- package/avatar/internal.js +7 -6
- package/avatar/internal.js.map +1 -1
- package/avatar/loading-dots/index.d.ts +10 -4
- package/avatar/loading-dots/index.js +3 -2
- package/avatar/loading-dots/index.js.map +1 -1
- package/avatar/style.d.ts +5 -0
- package/avatar/style.js +55 -0
- package/avatar/style.js.map +1 -0
- package/avatar/styles.css.js +6 -6
- package/avatar/styles.scoped.css +27 -24
- package/avatar/styles.selectors.js +6 -6
- package/chat-bubble/index.d.ts +6 -1
- package/chat-bubble/interfaces.d.ts +25 -25
- package/chat-bubble/internal.d.ts +12 -3
- package/index.d.ts +1 -1
- package/internal/api-docs/components/avatar.js +82 -0
- package/internal/api-docs/components/index.d.ts +1 -1
- package/internal/api-docs/components/interfaces.d.ts +56 -56
- 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.d.ts +1 -0
- package/internal/environment.js +3 -3
- package/internal/environment.json +3 -3
- package/internal/events/index.d.ts +17 -14
- package/internal/generated/custom-css-properties/index.d.ts +6 -2
- package/internal/generated/custom-css-properties/index.js +5 -1
- package/internal/generated/custom-css-properties/index.js.map +1 -1
- package/internal/generated/theming/index.cjs.d.ts +12 -13
- package/internal/generated/theming/index.d.ts +12 -13
- 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 -3
- package/loading-bar/index.d.ts +1 -1
- package/loading-bar/interfaces.d.ts +8 -8
- package/loading-bar/internal.d.ts +5 -1
- package/package.json +1 -1
- package/support-prompt-group/focus-helpers.d.ts +2 -2
- package/support-prompt-group/index.d.ts +1 -1
- package/support-prompt-group/interfaces.d.ts +35 -35
- package/support-prompt-group/internal.d.ts +1 -1
- package/support-prompt-group/prompt.d.ts +4 -4
- 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/{index.js.map → internal-do-not-use-core.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function applyDisplayName<T>(component: T, displayName: string): void;
|
|
1
|
+
export declare function applyDisplayName<T>(component: T, displayName: string): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getVisualTheme: (theme: string, isVR: boolean) => string;
|
|
1
|
+
export declare const getVisualTheme: (theme: string, isVR: boolean) => string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export interface ForwardFocusRef {
|
|
3
|
-
|
|
3
|
+
focus(): void;
|
|
4
4
|
}
|
|
5
5
|
export default function useForwardFocus(mainRef: React.Ref<any>, controlRef: React.RefObject<{
|
|
6
|
-
|
|
7
|
-
}>): void;
|
|
6
|
+
focus: HTMLElement["focus"];
|
|
7
|
+
}>): void;
|
package/loading-bar/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { LoadingBarProps } from "./interfaces";
|
|
2
2
|
export type { LoadingBarProps };
|
|
3
|
-
export default function LoadingBar(props: LoadingBarProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default function LoadingBar(props: LoadingBarProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export interface LoadingBarProps {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Specifies the variant of the loading bar. Use `gen-ai` to indicate an ongoing generative AI process.
|
|
4
|
+
* Use `gen-ai-masked` for generative AI processes where the bar is displayed at the edge of an element
|
|
5
|
+
* with rounded corners.
|
|
6
|
+
*/
|
|
7
|
+
variant: LoadingBarProps.Variant;
|
|
8
8
|
}
|
|
9
9
|
export declare namespace LoadingBarProps {
|
|
10
|
-
|
|
11
|
-
}
|
|
10
|
+
type Variant = "gen-ai" | "gen-ai-masked";
|
|
11
|
+
}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import { InternalBaseComponentProps } from "../internal/base-component/use-base-component";
|
|
2
2
|
import { LoadingBarProps } from "./interfaces";
|
|
3
|
-
export declare function InternalLoadingBar({
|
|
3
|
+
export declare function InternalLoadingBar({
|
|
4
|
+
variant,
|
|
5
|
+
__internalRootRef,
|
|
6
|
+
...rest
|
|
7
|
+
}: LoadingBarProps & InternalBaseComponentProps): import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare function getNextFocusTarget(containerObjectRef: React.RefObject<HTMLDivElement>, focusedIdRef: React.MutableRefObject<string | null>): null | HTMLElement;
|
|
3
3
|
export declare function onUnregisterActive(focusableElement: HTMLElement, navigationAPI: React.RefObject<{
|
|
4
|
-
|
|
5
|
-
}>): void;
|
|
4
|
+
getFocusTarget: () => HTMLElement | null;
|
|
5
|
+
}>): void;
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
import { SupportPromptGroupProps } from "./interfaces";
|
|
3
3
|
export type { SupportPromptGroupProps };
|
|
4
4
|
declare const SupportPromptGroup: import("react").ForwardRefExoticComponent<SupportPromptGroupProps & import("react").RefAttributes<SupportPromptGroupProps.Ref>>;
|
|
5
|
-
export default SupportPromptGroup;
|
|
5
|
+
export default SupportPromptGroup;
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import { ClickDetail as _ClickDetail, NonCancelableEventHandler } from "../internal/events";
|
|
2
2
|
export interface SupportPromptGroupProps {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Alignment of the prompts. Defaults to `vertical`.
|
|
5
|
+
**/
|
|
6
|
+
alignment?: SupportPromptGroupProps.Alignment;
|
|
7
|
+
/**
|
|
8
|
+
* An array of objects representing support prompts.
|
|
9
|
+
* Each item has the following properties:
|
|
10
|
+
* - text: The text of the support prompt.
|
|
11
|
+
* - id: The ID of the support prompt.
|
|
12
|
+
**/
|
|
13
|
+
items: ReadonlyArray<SupportPromptGroupProps.Item>;
|
|
14
|
+
/**
|
|
15
|
+
* Called when the user clicks on a support prompt. The event detail object contains the ID of the clicked item.
|
|
16
|
+
*/
|
|
17
|
+
onItemClick: NonCancelableEventHandler<SupportPromptGroupProps.ItemClickDetail>;
|
|
18
|
+
/**
|
|
19
|
+
* Adds an aria label to the support prompt group.
|
|
20
|
+
* Use this to provide a unique accessible name for each support prompt group on the page.
|
|
21
|
+
*/
|
|
22
|
+
ariaLabel: string;
|
|
23
23
|
}
|
|
24
24
|
export declare namespace SupportPromptGroupProps {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
25
|
+
type Alignment = "vertical" | "horizontal";
|
|
26
|
+
interface Item {
|
|
27
|
+
text: string;
|
|
28
|
+
id: string;
|
|
29
|
+
}
|
|
30
|
+
interface ItemClickDetail extends _ClickDetail {
|
|
31
|
+
id: string;
|
|
32
|
+
}
|
|
33
|
+
interface Ref {
|
|
34
|
+
/**
|
|
35
|
+
* Focuses support prompt group item by ID.
|
|
36
|
+
*/
|
|
37
|
+
focus(itemId: string): void;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { InternalBaseComponentProps } from "../internal/base-component/use-base-component";
|
|
3
3
|
import { SupportPromptGroupProps } from "./interfaces";
|
|
4
|
-
export declare const InternalSupportPromptGroup: import("react").ForwardRefExoticComponent<SupportPromptGroupProps & InternalBaseComponentProps & import("react").RefAttributes<SupportPromptGroupProps.Ref>>;
|
|
4
|
+
export declare const InternalSupportPromptGroup: import("react").ForwardRefExoticComponent<SupportPromptGroupProps & InternalBaseComponentProps & import("react").RefAttributes<SupportPromptGroupProps.Ref>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export interface PromptProps {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
children: string;
|
|
4
|
+
id: string;
|
|
5
|
+
onClick: (event: React.MouseEvent, id: string) => void;
|
|
6
6
|
}
|
|
7
|
-
export declare const Prompt: import("react").ForwardRefExoticComponent<PromptProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
export declare const Prompt: import("react").ForwardRefExoticComponent<PromptProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import TooltipWrapper from "@cloudscape-design/components/test-utils/dom/internal/tooltip";
|
|
2
2
|
import { ComponentWrapper } from "@cloudscape-design/test-utils-core/dom";
|
|
3
3
|
export default class AvatarWrapper extends ComponentWrapper {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
4
|
+
static rootSelector: string;
|
|
5
|
+
findTooltip(): TooltipWrapper | null;
|
|
6
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ComponentWrapper, ElementWrapper } from "@cloudscape-design/test-utils-core/dom";
|
|
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 | null;
|
|
7
|
+
findActionsSlot(): ElementWrapper | null;
|
|
8
|
+
findLoadingBar(): LoadingBarWrapper | null;
|
|
9
|
+
}
|
|
@@ -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,6 +1,6 @@
|
|
|
1
1
|
import TooltipWrapper from "@cloudscape-design/components/test-utils/selectors/internal/tooltip";
|
|
2
2
|
import { ComponentWrapper } from "@cloudscape-design/test-utils-core/selectors";
|
|
3
3
|
export default class AvatarWrapper extends ComponentWrapper {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
4
|
+
static rootSelector: string;
|
|
5
|
+
findTooltip(): TooltipWrapper;
|
|
6
|
+
}
|
|
@@ -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
|
+
}
|
|
File without changes
|