botframework-webchat-fluent-theme 4.18.1-main.20250710.5838525 → 4.18.1-main.20250721.cf546fb
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/dist/botframework-webchat-fluent-theme.css.map +1 -1
- package/dist/botframework-webchat-fluent-theme.development.css.map +1 -1
- package/dist/botframework-webchat-fluent-theme.development.js +8 -8
- package/dist/botframework-webchat-fluent-theme.development.js.map +1 -1
- package/dist/botframework-webchat-fluent-theme.js +1 -1
- package/dist/botframework-webchat-fluent-theme.mjs +1 -1
- package/dist/botframework-webchat-fluent-theme.mjs.map +1 -1
- package/dist/botframework-webchat-fluent-theme.production.min.css.map +1 -1
- package/dist/botframework-webchat-fluent-theme.production.min.js +8 -8
- package/dist/botframework-webchat-fluent-theme.production.min.js.map +1 -1
- package/package.json +6 -6
- package/src/components/preChatActivity/PreChatMessageActivity.module.css +1 -1
- package/src/components/preChatActivity/StarterPromptsToolbar.tsx +3 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "botframework-webchat-fluent-theme",
|
|
3
|
-
"version": "4.18.1-main.
|
|
3
|
+
"version": "4.18.1-main.20250721.cf546fb",
|
|
4
4
|
"description": "Fluent theme for Bot Framework Web Chat",
|
|
5
5
|
"main": "./dist/botframework-webchat-fluent-theme.js",
|
|
6
6
|
"types": "./dist/botframework-webchat-fluent-theme.d.ts",
|
|
@@ -68,15 +68,15 @@
|
|
|
68
68
|
"@types/math-random": "^1.0.2",
|
|
69
69
|
"@types/node": "^22.13.4",
|
|
70
70
|
"@types/react": "^16.14.62",
|
|
71
|
-
"botframework-webchat-base": "4.18.1-main.
|
|
72
|
-
"botframework-webchat-styles": "4.18.1-main.
|
|
71
|
+
"botframework-webchat-base": "4.18.1-main.20250721.cf546fb",
|
|
72
|
+
"botframework-webchat-styles": "4.18.1-main.20250721.cf546fb",
|
|
73
73
|
"tsup": "^8.3.6",
|
|
74
74
|
"typescript": "^5.7.3"
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"botframework-webchat-api": "4.18.1-main.
|
|
78
|
-
"botframework-webchat-component": "4.18.1-main.
|
|
79
|
-
"botframework-webchat-core": "4.18.1-main.
|
|
77
|
+
"botframework-webchat-api": "4.18.1-main.20250721.cf546fb",
|
|
78
|
+
"botframework-webchat-component": "4.18.1-main.20250721.cf546fb",
|
|
79
|
+
"botframework-webchat-core": "4.18.1-main.20250721.cf546fb",
|
|
80
80
|
"classnames": "2.5.1",
|
|
81
81
|
"inject-meta-tag": "0.0.1",
|
|
82
82
|
"math-random": "2.0.1",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { hooks } from 'botframework-webchat-api';
|
|
2
2
|
import { type DirectLineCardAction } from 'botframework-webchat-core';
|
|
3
3
|
import cx from 'classnames';
|
|
4
|
-
import React, {
|
|
4
|
+
import React, { memo } from 'react';
|
|
5
5
|
import { useStyles } from '../../styles/index.js';
|
|
6
6
|
import StarterPromptsCardAction from './StarterPromptsCardAction.js';
|
|
7
7
|
import styles from './StarterPromptsToolbar.module.css';
|
|
@@ -21,13 +21,7 @@ const StarterPromptsToolbar = ({ cardActions, className }: Props) => {
|
|
|
21
21
|
// TODO: Accessibility-wise, this should be role="toolbar" with keyboard navigation.
|
|
22
22
|
<div className={cx(className, classNames['pre-chat-message-activity__card-action-toolbar'])}>
|
|
23
23
|
<div className={classNames['pre-chat-message-activity__card-action-toolbar-grid']}>
|
|
24
|
-
{uiState
|
|
25
|
-
<Fragment>
|
|
26
|
-
<StarterPromptsCardAction />
|
|
27
|
-
<StarterPromptsCardAction />
|
|
28
|
-
<StarterPromptsCardAction />
|
|
29
|
-
</Fragment>
|
|
30
|
-
) : (
|
|
24
|
+
{uiState !== 'blueprint' &&
|
|
31
25
|
cardActions
|
|
32
26
|
.filter<DirectLineCardAction & { type: 'messageBack' }>(
|
|
33
27
|
(card: DirectLineCardAction): card is DirectLineCardAction & { type: 'messageBack' } =>
|
|
@@ -35,8 +29,7 @@ const StarterPromptsToolbar = ({ cardActions, className }: Props) => {
|
|
|
35
29
|
)
|
|
36
30
|
// There is no other usable keys in card actions.
|
|
37
31
|
// eslint-disable-next-line react/no-array-index-key
|
|
38
|
-
.map((cardAction, index) => <StarterPromptsCardAction key={index} messageBackAction={cardAction} />)
|
|
39
|
-
)}
|
|
32
|
+
.map((cardAction, index) => <StarterPromptsCardAction key={index} messageBackAction={cardAction} />)}
|
|
40
33
|
</div>
|
|
41
34
|
</div>
|
|
42
35
|
);
|