botframework-webchat-fluent-theme 4.18.1-main.20250114.4df27b8 → 4.18.1-main.20250114.cf2b542
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 +4 -4
- 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.js.map +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 +4 -4
- package/dist/botframework-webchat-fluent-theme.production.min.js.map +1 -1
- package/package.json +6 -6
- package/src/components/theme/Theme.module.css +0 -31
- package/src/private/FluentThemeProvider.tsx +2 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "botframework-webchat-fluent-theme",
|
|
3
|
-
"version": "4.18.1-main.20250114.
|
|
3
|
+
"version": "4.18.1-main.20250114.cf2b542",
|
|
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": "^20.12.11",
|
|
70
70
|
"@types/react": "^16.14.60",
|
|
71
|
-
"botframework-webchat-base": "4.18.1-main.20250114.
|
|
72
|
-
"botframework-webchat-styles": "4.18.1-main.20250114.
|
|
71
|
+
"botframework-webchat-base": "4.18.1-main.20250114.cf2b542",
|
|
72
|
+
"botframework-webchat-styles": "4.18.1-main.20250114.cf2b542",
|
|
73
73
|
"tsup": "^8.0.2",
|
|
74
74
|
"typescript": "^5.4.5"
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"botframework-webchat-api": "4.18.1-main.20250114.
|
|
78
|
-
"botframework-webchat-component": "4.18.1-main.20250114.
|
|
79
|
-
"botframework-webchat-core": "4.18.1-main.20250114.
|
|
77
|
+
"botframework-webchat-api": "4.18.1-main.20250114.cf2b542",
|
|
78
|
+
"botframework-webchat-component": "4.18.1-main.20250114.cf2b542",
|
|
79
|
+
"botframework-webchat-core": "4.18.1-main.20250114.cf2b542",
|
|
80
80
|
"classnames": "2.5.1",
|
|
81
81
|
"inject-meta-tag": "0.0.1",
|
|
82
82
|
"math-random": "2.0.1",
|
|
@@ -33,9 +33,6 @@
|
|
|
33
33
|
--webchat-colorNeutralStencil1: var(--colorNeutralStencil1, #e6e6e6); /* #575757 for dark mode */
|
|
34
34
|
--webchat-colorNeutralStencil2: var(--colorNeutralStencil2, #fafafa); /* #333333 for dark mode */
|
|
35
35
|
|
|
36
|
-
--webchat-colorNeutralShadowAmbient: var(--colorNeutralShadowAmbient, rgba(0, 0, 0, 0.12));
|
|
37
|
-
--webchat-colorNeutralShadowKey: var(--colorNeutralShadowKey, rgba(0, 0, 0, 0.14));
|
|
38
|
-
|
|
39
36
|
--webchat-colorTransparentBackground: var(--colorTransparentBackground, rgba(0, 0, 0, 0.4));
|
|
40
37
|
|
|
41
38
|
--webchat-colorNeutralStrokeDisabled: var(--colorNeutralStrokeDisabled, #e0e0e0);
|
|
@@ -593,31 +590,3 @@
|
|
|
593
590
|
:global(.webchat-fluent).theme :global(.webchat__monochrome-image-masker) {
|
|
594
591
|
background-color: var(--webchat-colorNeutralForeground4);
|
|
595
592
|
}
|
|
596
|
-
|
|
597
|
-
/* Feedback button */
|
|
598
|
-
:global(.webchat-fluent).theme :global(.webchat__thumb-button) {
|
|
599
|
-
color: var(--webchat-colorNeutralForeground1);
|
|
600
|
-
|
|
601
|
-
&:focus-visible {
|
|
602
|
-
outline: var(--webchat-strokeWidthThick) solid var(--webchat-colorStrokeFocus2);
|
|
603
|
-
}
|
|
604
|
-
|
|
605
|
-
&[aria-disabled='true'] {
|
|
606
|
-
color: var(--webchat-colorNeutralForegroundDisabled);
|
|
607
|
-
}
|
|
608
|
-
}
|
|
609
|
-
|
|
610
|
-
/* Tooltip */
|
|
611
|
-
:global(.webchat-fluent).theme :global(.webchat__tooltip) {
|
|
612
|
-
--webchat__tooltip-background: var(--tooltip-background, var(--webchat-colorNeutralBackground1));
|
|
613
|
-
|
|
614
|
-
color: var(--webchat-colorNeutralForeground1);
|
|
615
|
-
filter: drop-shadow(0 0 2px var(--webchat-colorNeutralShadowAmbient))
|
|
616
|
-
drop-shadow(0 4px 8px var(--webchat-colorNeutralShadowKey));
|
|
617
|
-
font-family: var(--webchat-fontFamilyBase);
|
|
618
|
-
font-size: var(--webchat-fontSizeBase200);
|
|
619
|
-
font-weight: var(--webchat-fontWeightRegular);
|
|
620
|
-
line-height: var(--webchat-lineHeightBase200);
|
|
621
|
-
padding: var(--webchat-spacingVerticalSNudge) var(--webchat-spacingHorizontalM);
|
|
622
|
-
transition: opacity var(--webchat-durationNormal) var(--webchat-curveDecelerateMid);
|
|
623
|
-
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ActivityMiddleware } from 'botframework-webchat-api';
|
|
2
2
|
import { Components } from 'botframework-webchat-component';
|
|
3
3
|
import { WebChatDecorator } from 'botframework-webchat-component/decorator';
|
|
4
4
|
import React, { memo, type ReactNode } from 'react';
|
|
@@ -43,20 +43,11 @@ const sendBoxMiddleware = [() => () => () => PrimarySendBox];
|
|
|
43
43
|
|
|
44
44
|
const styles = createStyles();
|
|
45
45
|
|
|
46
|
-
const fluentStyleOptions: StyleOptions = Object.freeze({
|
|
47
|
-
feedbackActionsPlacement: 'activity-actions'
|
|
48
|
-
});
|
|
49
|
-
|
|
50
46
|
const FluentThemeProvider = ({ children, variant = 'fluent' }: Props) => (
|
|
51
47
|
<VariantComposer variant={variant}>
|
|
52
48
|
<WebChatTheme>
|
|
53
49
|
<TelephoneKeypadProvider>
|
|
54
|
-
<ThemeProvider
|
|
55
|
-
activityMiddleware={activityMiddleware}
|
|
56
|
-
sendBoxMiddleware={sendBoxMiddleware}
|
|
57
|
-
styleOptions={fluentStyleOptions}
|
|
58
|
-
styles={styles}
|
|
59
|
-
>
|
|
50
|
+
<ThemeProvider activityMiddleware={activityMiddleware} sendBoxMiddleware={sendBoxMiddleware} styles={styles}>
|
|
60
51
|
<WebChatDecorator>{children}</WebChatDecorator>
|
|
61
52
|
</ThemeProvider>
|
|
62
53
|
</TelephoneKeypadProvider>
|