@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
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ThemePreset, GlobalValue, TypedModeValueOverride, ReferenceTokens } from '@amzn/awsui-theming-build';
|
|
2
|
+
|
|
2
3
|
export declare interface TypedOverride {
|
|
3
|
-
referenceTokens?: ReferenceTokens
|
|
4
|
+
referenceTokens?: ReferenceTokens,
|
|
4
5
|
tokens: {
|
|
5
6
|
colorChartsStatusCritical?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
6
7
|
colorChartsStatusHigh?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
@@ -273,7 +274,7 @@ export declare interface TypedOverride {
|
|
|
273
274
|
borderWidthIconMedium?: GlobalValue;
|
|
274
275
|
borderWidthIconBig?: GlobalValue;
|
|
275
276
|
borderWidthIconLarge?: GlobalValue;
|
|
276
|
-
}
|
|
277
|
+
},
|
|
277
278
|
contexts?: {
|
|
278
279
|
'compact-table'?: {
|
|
279
280
|
tokens: {
|
|
@@ -548,7 +549,7 @@ export declare interface TypedOverride {
|
|
|
548
549
|
borderWidthIconMedium?: GlobalValue;
|
|
549
550
|
borderWidthIconBig?: GlobalValue;
|
|
550
551
|
borderWidthIconLarge?: GlobalValue;
|
|
551
|
-
}
|
|
552
|
+
}
|
|
552
553
|
};
|
|
553
554
|
'top-navigation'?: {
|
|
554
555
|
tokens: {
|
|
@@ -823,7 +824,7 @@ export declare interface TypedOverride {
|
|
|
823
824
|
borderWidthIconMedium?: GlobalValue;
|
|
824
825
|
borderWidthIconBig?: GlobalValue;
|
|
825
826
|
borderWidthIconLarge?: GlobalValue;
|
|
826
|
-
}
|
|
827
|
+
}
|
|
827
828
|
};
|
|
828
829
|
'header'?: {
|
|
829
830
|
tokens: {
|
|
@@ -1098,7 +1099,7 @@ export declare interface TypedOverride {
|
|
|
1098
1099
|
borderWidthIconMedium?: GlobalValue;
|
|
1099
1100
|
borderWidthIconBig?: GlobalValue;
|
|
1100
1101
|
borderWidthIconLarge?: GlobalValue;
|
|
1101
|
-
}
|
|
1102
|
+
}
|
|
1102
1103
|
};
|
|
1103
1104
|
'flashbar'?: {
|
|
1104
1105
|
tokens: {
|
|
@@ -1373,7 +1374,7 @@ export declare interface TypedOverride {
|
|
|
1373
1374
|
borderWidthIconMedium?: GlobalValue;
|
|
1374
1375
|
borderWidthIconBig?: GlobalValue;
|
|
1375
1376
|
borderWidthIconLarge?: GlobalValue;
|
|
1376
|
-
}
|
|
1377
|
+
}
|
|
1377
1378
|
};
|
|
1378
1379
|
'flashbar-warning'?: {
|
|
1379
1380
|
tokens: {
|
|
@@ -1648,7 +1649,7 @@ export declare interface TypedOverride {
|
|
|
1648
1649
|
borderWidthIconMedium?: GlobalValue;
|
|
1649
1650
|
borderWidthIconBig?: GlobalValue;
|
|
1650
1651
|
borderWidthIconLarge?: GlobalValue;
|
|
1651
|
-
}
|
|
1652
|
+
}
|
|
1652
1653
|
};
|
|
1653
1654
|
'alert'?: {
|
|
1654
1655
|
tokens: {
|
|
@@ -1923,7 +1924,7 @@ export declare interface TypedOverride {
|
|
|
1923
1924
|
borderWidthIconMedium?: GlobalValue;
|
|
1924
1925
|
borderWidthIconBig?: GlobalValue;
|
|
1925
1926
|
borderWidthIconLarge?: GlobalValue;
|
|
1926
|
-
}
|
|
1927
|
+
}
|
|
1927
1928
|
};
|
|
1928
1929
|
'alert-header'?: {
|
|
1929
1930
|
tokens: {
|
|
@@ -2198,7 +2199,7 @@ export declare interface TypedOverride {
|
|
|
2198
2199
|
borderWidthIconMedium?: GlobalValue;
|
|
2199
2200
|
borderWidthIconBig?: GlobalValue;
|
|
2200
2201
|
borderWidthIconLarge?: GlobalValue;
|
|
2201
|
-
}
|
|
2202
|
+
}
|
|
2202
2203
|
};
|
|
2203
2204
|
'app-layout-toolbar'?: {
|
|
2204
2205
|
tokens: {
|
|
@@ -2473,8 +2474,8 @@ export declare interface TypedOverride {
|
|
|
2473
2474
|
borderWidthIconMedium?: GlobalValue;
|
|
2474
2475
|
borderWidthIconBig?: GlobalValue;
|
|
2475
2476
|
borderWidthIconLarge?: GlobalValue;
|
|
2476
|
-
}
|
|
2477
|
-
}
|
|
2478
|
-
}
|
|
2477
|
+
}
|
|
2478
|
+
}
|
|
2479
|
+
}
|
|
2479
2480
|
}
|
|
2480
|
-
export declare const preset: ThemePreset;
|
|
2481
|
+
export declare const preset: ThemePreset;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ThemePreset, GlobalValue, TypedModeValueOverride, ReferenceTokens } from '@amzn/awsui-theming-runtime';
|
|
2
|
+
|
|
2
3
|
export declare interface TypedOverride {
|
|
3
|
-
referenceTokens?: ReferenceTokens
|
|
4
|
+
referenceTokens?: ReferenceTokens,
|
|
4
5
|
tokens: {
|
|
5
6
|
colorChartsStatusCritical?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
6
7
|
colorChartsStatusHigh?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
@@ -273,7 +274,7 @@ export declare interface TypedOverride {
|
|
|
273
274
|
borderWidthIconMedium?: GlobalValue;
|
|
274
275
|
borderWidthIconBig?: GlobalValue;
|
|
275
276
|
borderWidthIconLarge?: GlobalValue;
|
|
276
|
-
}
|
|
277
|
+
},
|
|
277
278
|
contexts?: {
|
|
278
279
|
'compact-table'?: {
|
|
279
280
|
tokens: {
|
|
@@ -548,7 +549,7 @@ export declare interface TypedOverride {
|
|
|
548
549
|
borderWidthIconMedium?: GlobalValue;
|
|
549
550
|
borderWidthIconBig?: GlobalValue;
|
|
550
551
|
borderWidthIconLarge?: GlobalValue;
|
|
551
|
-
}
|
|
552
|
+
}
|
|
552
553
|
};
|
|
553
554
|
'top-navigation'?: {
|
|
554
555
|
tokens: {
|
|
@@ -823,7 +824,7 @@ export declare interface TypedOverride {
|
|
|
823
824
|
borderWidthIconMedium?: GlobalValue;
|
|
824
825
|
borderWidthIconBig?: GlobalValue;
|
|
825
826
|
borderWidthIconLarge?: GlobalValue;
|
|
826
|
-
}
|
|
827
|
+
}
|
|
827
828
|
};
|
|
828
829
|
'header'?: {
|
|
829
830
|
tokens: {
|
|
@@ -1098,7 +1099,7 @@ export declare interface TypedOverride {
|
|
|
1098
1099
|
borderWidthIconMedium?: GlobalValue;
|
|
1099
1100
|
borderWidthIconBig?: GlobalValue;
|
|
1100
1101
|
borderWidthIconLarge?: GlobalValue;
|
|
1101
|
-
}
|
|
1102
|
+
}
|
|
1102
1103
|
};
|
|
1103
1104
|
'flashbar'?: {
|
|
1104
1105
|
tokens: {
|
|
@@ -1373,7 +1374,7 @@ export declare interface TypedOverride {
|
|
|
1373
1374
|
borderWidthIconMedium?: GlobalValue;
|
|
1374
1375
|
borderWidthIconBig?: GlobalValue;
|
|
1375
1376
|
borderWidthIconLarge?: GlobalValue;
|
|
1376
|
-
}
|
|
1377
|
+
}
|
|
1377
1378
|
};
|
|
1378
1379
|
'flashbar-warning'?: {
|
|
1379
1380
|
tokens: {
|
|
@@ -1648,7 +1649,7 @@ export declare interface TypedOverride {
|
|
|
1648
1649
|
borderWidthIconMedium?: GlobalValue;
|
|
1649
1650
|
borderWidthIconBig?: GlobalValue;
|
|
1650
1651
|
borderWidthIconLarge?: GlobalValue;
|
|
1651
|
-
}
|
|
1652
|
+
}
|
|
1652
1653
|
};
|
|
1653
1654
|
'alert'?: {
|
|
1654
1655
|
tokens: {
|
|
@@ -1923,7 +1924,7 @@ export declare interface TypedOverride {
|
|
|
1923
1924
|
borderWidthIconMedium?: GlobalValue;
|
|
1924
1925
|
borderWidthIconBig?: GlobalValue;
|
|
1925
1926
|
borderWidthIconLarge?: GlobalValue;
|
|
1926
|
-
}
|
|
1927
|
+
}
|
|
1927
1928
|
};
|
|
1928
1929
|
'alert-header'?: {
|
|
1929
1930
|
tokens: {
|
|
@@ -2198,7 +2199,7 @@ export declare interface TypedOverride {
|
|
|
2198
2199
|
borderWidthIconMedium?: GlobalValue;
|
|
2199
2200
|
borderWidthIconBig?: GlobalValue;
|
|
2200
2201
|
borderWidthIconLarge?: GlobalValue;
|
|
2201
|
-
}
|
|
2202
|
+
}
|
|
2202
2203
|
};
|
|
2203
2204
|
'app-layout-toolbar'?: {
|
|
2204
2205
|
tokens: {
|
|
@@ -2473,8 +2474,8 @@ export declare interface TypedOverride {
|
|
|
2473
2474
|
borderWidthIconMedium?: GlobalValue;
|
|
2474
2475
|
borderWidthIconBig?: GlobalValue;
|
|
2475
2476
|
borderWidthIconLarge?: GlobalValue;
|
|
2476
|
-
}
|
|
2477
|
-
}
|
|
2478
|
-
}
|
|
2477
|
+
}
|
|
2478
|
+
}
|
|
2479
|
+
}
|
|
2479
2480
|
}
|
|
2480
|
-
export declare const preset: ThemePreset;
|
|
2481
|
+
export declare const preset: ThemePreset;
|
|
@@ -6631,8 +6631,8 @@ export var preset = {
|
|
|
6631
6631
|
"dark": "{colorNeutral100}"
|
|
6632
6632
|
},
|
|
6633
6633
|
"colorTextBodySecondary": {
|
|
6634
|
-
"light": "{
|
|
6635
|
-
"dark": "{
|
|
6634
|
+
"light": "{colorNeutral100}",
|
|
6635
|
+
"dark": "{colorNeutral100}"
|
|
6636
6636
|
},
|
|
6637
6637
|
"colorTextBreadcrumbCurrent": {
|
|
6638
6638
|
"light": "{colorNeutral600}",
|
|
@@ -6883,8 +6883,8 @@ export var preset = {
|
|
|
6883
6883
|
"dark": "{colorNeutral950}"
|
|
6884
6884
|
},
|
|
6885
6885
|
"colorTextLabel": {
|
|
6886
|
-
"light": "{
|
|
6887
|
-
"dark": "{
|
|
6886
|
+
"light": "{colorNeutral100}",
|
|
6887
|
+
"dark": "{colorNeutral100}"
|
|
6888
6888
|
},
|
|
6889
6889
|
"colorTextLayoutToggle": {
|
|
6890
6890
|
"light": "{colorWhite}",
|
|
@@ -6903,12 +6903,12 @@ export var preset = {
|
|
|
6903
6903
|
"dark": "{colorNeutral950}"
|
|
6904
6904
|
},
|
|
6905
6905
|
"colorTextLinkDefault": {
|
|
6906
|
-
"light": "{
|
|
6907
|
-
"dark": "{
|
|
6906
|
+
"light": "{colorNeutral100}",
|
|
6907
|
+
"dark": "{colorNeutral100}"
|
|
6908
6908
|
},
|
|
6909
6909
|
"colorTextLinkHover": {
|
|
6910
|
-
"light": "{
|
|
6911
|
-
"dark": "{
|
|
6910
|
+
"light": "{colorWhite}",
|
|
6911
|
+
"dark": "{colorWhite}"
|
|
6912
6912
|
},
|
|
6913
6913
|
"colorTextLinkInvertedHover": {
|
|
6914
6914
|
"light": "{colorWhite}",
|
|
@@ -7745,8 +7745,8 @@ export var preset = {
|
|
|
7745
7745
|
"dark": "{colorTextNotificationYellow}"
|
|
7746
7746
|
},
|
|
7747
7747
|
"colorTextBodySecondary": {
|
|
7748
|
-
"light": "{
|
|
7749
|
-
"dark": "{
|
|
7748
|
+
"light": "{colorTextNotificationYellow}",
|
|
7749
|
+
"dark": "{colorTextNotificationYellow}"
|
|
7750
7750
|
},
|
|
7751
7751
|
"colorTextBreadcrumbCurrent": {
|
|
7752
7752
|
"light": "{colorNeutral600}",
|
|
@@ -7997,8 +7997,8 @@ export var preset = {
|
|
|
7997
7997
|
"dark": "{colorNeutral950}"
|
|
7998
7998
|
},
|
|
7999
7999
|
"colorTextLabel": {
|
|
8000
|
-
"light": "{
|
|
8001
|
-
"dark": "{
|
|
8000
|
+
"light": "{colorTextNotificationYellow}",
|
|
8001
|
+
"dark": "{colorTextNotificationYellow}"
|
|
8002
8002
|
},
|
|
8003
8003
|
"colorTextLayoutToggle": {
|
|
8004
8004
|
"light": "{colorWhite}",
|
|
@@ -8017,12 +8017,12 @@ export var preset = {
|
|
|
8017
8017
|
"dark": "{colorNeutral950}"
|
|
8018
8018
|
},
|
|
8019
8019
|
"colorTextLinkDefault": {
|
|
8020
|
-
"light": "{
|
|
8021
|
-
"dark": "{
|
|
8020
|
+
"light": "{colorTextNotificationYellow}",
|
|
8021
|
+
"dark": "{colorTextNotificationYellow}"
|
|
8022
8022
|
},
|
|
8023
8023
|
"colorTextLinkHover": {
|
|
8024
|
-
"light": "{
|
|
8025
|
-
"dark": "{
|
|
8024
|
+
"light": "{colorTextNotificationYellow}",
|
|
8025
|
+
"dark": "{colorTextNotificationYellow}"
|
|
8026
8026
|
},
|
|
8027
8027
|
"colorTextLinkInvertedHover": {
|
|
8028
8028
|
"light": "{colorTextNotificationYellow}",
|
|
@@ -13269,18 +13269,18 @@ export var preset = {
|
|
|
13269
13269
|
"colorStrokeCodeEditorGutterActiveLineHover": "--color-stroke-code-editor-gutter-active-line-hover-vqrb6s",
|
|
13270
13270
|
"colorTextAccent": "--color-text-accent-n1kmht",
|
|
13271
13271
|
"colorTextBodyDefault": "--color-text-body-default-vvtq8u",
|
|
13272
|
-
"colorTextBodySecondary": "--color-text-body-secondary-
|
|
13272
|
+
"colorTextBodySecondary": "--color-text-body-secondary-yna5sb",
|
|
13273
13273
|
"colorTextBreadcrumbCurrent": "--color-text-breadcrumb-current-2mqnkk",
|
|
13274
13274
|
"colorTextBreadcrumbIcon": "--color-text-breadcrumb-icon-9j48ot",
|
|
13275
|
-
"colorTextButtonInlineIconDefault": "--color-text-button-inline-icon-default-
|
|
13275
|
+
"colorTextButtonInlineIconDefault": "--color-text-button-inline-icon-default-sm4ql6",
|
|
13276
13276
|
"colorTextButtonInlineIconDisabled": "--color-text-button-inline-icon-disabled-82hho0",
|
|
13277
|
-
"colorTextButtonInlineIconHover": "--color-text-button-inline-icon-hover-
|
|
13277
|
+
"colorTextButtonInlineIconHover": "--color-text-button-inline-icon-hover-rbyzfc",
|
|
13278
13278
|
"colorTextButtonNormalActive": "--color-text-button-normal-active-vihsxh",
|
|
13279
13279
|
"colorTextToggleButtonNormalPressed": "--color-text-toggle-button-normal-pressed-wnx2zl",
|
|
13280
13280
|
"colorTextButtonNormalDefault": "--color-text-button-normal-default-nzalii",
|
|
13281
13281
|
"colorTextButtonNormalHover": "--color-text-button-normal-hover-gusgyv",
|
|
13282
|
-
"colorTextLinkButtonNormalDefault": "--color-text-link-button-normal-default-
|
|
13283
|
-
"colorTextLinkButtonNormalHover": "--color-text-link-button-normal-hover-
|
|
13282
|
+
"colorTextLinkButtonNormalDefault": "--color-text-link-button-normal-default-srprth",
|
|
13283
|
+
"colorTextLinkButtonNormalHover": "--color-text-link-button-normal-hover-jrnyw3",
|
|
13284
13284
|
"colorTextLinkButtonNormalActive": "--color-text-link-button-normal-active-js9ryu",
|
|
13285
13285
|
"colorTextButtonPrimaryActive": "--color-text-button-primary-active-refmba",
|
|
13286
13286
|
"colorTextButtonPrimaryDefault": "--color-text-button-primary-default-mwl31m",
|
|
@@ -13332,13 +13332,13 @@ export var preset = {
|
|
|
13332
13332
|
"colorTextInteractiveInvertedDefault": "--color-text-interactive-inverted-default-xlc0d5",
|
|
13333
13333
|
"colorTextInteractiveInvertedHover": "--color-text-interactive-inverted-hover-65rnp7",
|
|
13334
13334
|
"colorTextInverted": "--color-text-inverted-4v4dmq",
|
|
13335
|
-
"colorTextLabel": "--color-text-label-
|
|
13335
|
+
"colorTextLabel": "--color-text-label-28gfmc",
|
|
13336
13336
|
"colorTextLayoutToggle": "--color-text-layout-toggle-1a15s3",
|
|
13337
13337
|
"colorTextLayoutToggleActive": "--color-text-layout-toggle-active-ifu7qp",
|
|
13338
13338
|
"colorTextLayoutToggleHover": "--color-text-layout-toggle-hover-9jwdce",
|
|
13339
13339
|
"colorTextLayoutToggleSelected": "--color-text-layout-toggle-selected-xpximc",
|
|
13340
|
-
"colorTextLinkDefault": "--color-text-link-default-
|
|
13341
|
-
"colorTextLinkHover": "--color-text-link-hover-
|
|
13340
|
+
"colorTextLinkDefault": "--color-text-link-default-hude44",
|
|
13341
|
+
"colorTextLinkHover": "--color-text-link-hover-2hfec2",
|
|
13342
13342
|
"colorTextLinkInvertedHover": "--color-text-link-inverted-hover-ocd3u3",
|
|
13343
13343
|
"colorTextLinkButtonUnderline": "--color-text-link-button-underline-z4wjnv",
|
|
13344
13344
|
"colorTextLinkButtonUnderlineHover": "--color-text-link-button-underline-hover-cn3mqh",
|
package/internal/keycode.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
export declare enum KeyCode {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
2
|
+
pageUp = 33,
|
|
3
|
+
pageDown = 34,
|
|
4
|
+
end = 35,
|
|
5
|
+
home = 36,
|
|
6
|
+
backspace = 8,
|
|
7
|
+
space = 32,
|
|
8
|
+
down = 40,
|
|
9
|
+
left = 37,
|
|
10
|
+
right = 39,
|
|
11
|
+
up = 38,
|
|
12
|
+
escape = 27,
|
|
13
|
+
enter = 13,
|
|
14
|
+
tab = 9,
|
|
15
|
+
shift = 16,
|
|
16
|
+
control = 17,
|
|
17
|
+
alt = 18,
|
|
18
|
+
meta = 91
|
|
19
|
+
}
|
package/internal/manifest.json
CHANGED
|
@@ -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,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export interface ForwardFocusRef {
|
|
3
|
-
|
|
2
|
+
focus(): void;
|
|
4
3
|
}
|
|
5
4
|
export default function useForwardFocus(mainRef: React.Ref<any>, controlRef: React.RefObject<{
|
|
6
|
-
|
|
7
|
-
}>): void;
|
|
5
|
+
focus: HTMLElement["focus"];
|
|
6
|
+
}>): 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,7 +1,3 @@
|
|
|
1
1
|
import { InternalBaseComponentProps } from "../internal/base-component/use-base-component";
|
|
2
2
|
import { LoadingBarProps } from "./interfaces";
|
|
3
|
-
export declare function InternalLoadingBar({
|
|
4
|
-
variant,
|
|
5
|
-
__internalRootRef,
|
|
6
|
-
...rest
|
|
7
|
-
}: LoadingBarProps & InternalBaseComponentProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare function InternalLoadingBar({ variant, __internalRootRef, ...rest }: LoadingBarProps & InternalBaseComponentProps): import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare function getNextFocusTarget(containerObjectRef: React.RefObject<HTMLDivElement>, focusedIdRef: React.MutableRefObject<string | null>): null | HTMLElement;
|
|
3
2
|
export declare function onUnregisterActive(focusableElement: HTMLElement, navigationAPI: React.RefObject<{
|
|
4
|
-
|
|
5
|
-
}>): void;
|
|
3
|
+
getFocusTarget: () => HTMLElement | null;
|
|
4
|
+
}>): void;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { SupportPromptGroupProps } from "./interfaces";
|
|
3
2
|
export type { SupportPromptGroupProps };
|
|
4
3
|
declare const SupportPromptGroup: import("react").ForwardRefExoticComponent<SupportPromptGroupProps & import("react").RefAttributes<SupportPromptGroupProps.Ref>>;
|
|
5
|
-
export default SupportPromptGroup;
|
|
4
|
+
export default SupportPromptGroup;
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import { ClickDetail as _ClickDetail, NonCancelableEventHandler } from "../internal/events";
|
|
2
2
|
export interface SupportPromptGroupProps {
|
|
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
|
-
}
|
|
24
|
-
export declare namespace SupportPromptGroupProps {
|
|
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
3
|
/**
|
|
35
|
-
*
|
|
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.
|
|
36
16
|
*/
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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
|
+
}
|
|
24
|
+
export declare namespace SupportPromptGroupProps {
|
|
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,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { InternalBaseComponentProps } from "../internal/base-component/use-base-component";
|
|
3
2
|
import { SupportPromptGroupProps } from "./interfaces";
|
|
4
|
-
export declare const InternalSupportPromptGroup: import("react").ForwardRefExoticComponent<SupportPromptGroupProps & InternalBaseComponentProps & import("react").RefAttributes<SupportPromptGroupProps.Ref>>;
|
|
3
|
+
export declare const InternalSupportPromptGroup: import("react").ForwardRefExoticComponent<SupportPromptGroupProps & InternalBaseComponentProps & import("react").RefAttributes<SupportPromptGroupProps.Ref>>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export interface PromptProps {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
children: string;
|
|
3
|
+
id: string;
|
|
4
|
+
onClick: (event: React.MouseEvent, id: string) => void;
|
|
6
5
|
}
|
|
7
|
-
export declare const Prompt: import("react").ForwardRefExoticComponent<PromptProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
export declare const Prompt: import("react").ForwardRefExoticComponent<PromptProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentWrapper, ElementWrapper } from "@cloudscape-design/test-utils-core/dom";
|
|
2
2
|
export default class AvatarWrapper extends ComponentWrapper {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
3
|
+
static rootSelector: string;
|
|
4
|
+
findTooltip(): ElementWrapper | null;
|
|
5
|
+
}
|
|
@@ -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
|
+
}
|