botframework-webchat-fluent-theme 4.18.1-main.20241009.ef5bda6 → 4.18.1-main.20241029.4a18bde
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 +5 -5
- 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 +5 -5
- package/dist/botframework-webchat-fluent-theme.production.min.js.map +1 -1
- package/package.json +6 -6
- package/src/components/dropZone/DropZone.module.css +2 -2
- package/src/components/dropZone/DropZone.tsx +7 -0
- package/src/components/theme/Theme.module.css +8 -0
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.20241029.4a18bde",
|
|
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.
|
|
72
|
-
"botframework-webchat-styles": "4.18.1-main.
|
|
71
|
+
"botframework-webchat-base": "4.18.1-main.20241029.4a18bde",
|
|
72
|
+
"botframework-webchat-styles": "4.18.1-main.20241029.4a18bde",
|
|
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.
|
|
78
|
-
"botframework-webchat-component": "4.18.1-main.
|
|
79
|
-
"botframework-webchat-core": "4.18.1-main.
|
|
77
|
+
"botframework-webchat-api": "4.18.1-main.20241029.4a18bde",
|
|
78
|
+
"botframework-webchat-component": "4.18.1-main.20241029.4a18bde",
|
|
79
|
+
"botframework-webchat-core": "4.18.1-main.20241029.4a18bde",
|
|
80
80
|
"classnames": "2.5.1",
|
|
81
81
|
"inject-meta-tag": "0.0.1",
|
|
82
82
|
"math-random": "2.0.1",
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
place-content: center;
|
|
9
9
|
place-items: center;
|
|
10
10
|
position: absolute;
|
|
11
|
+
transition: all var(--webchat-durationNormal) var(--webchat-curveDecelerateMid);
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
:global(.webchat-fluent) .sendbox__attachment-drop-zone--droppable {
|
|
14
|
-
background-color:
|
|
15
|
-
color: White;
|
|
15
|
+
background-color: var(--webchat-colorBrandBackground2Hover);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
:global(.webchat-fluent) .sendbox__attachment-drop-zone-icon {
|
|
@@ -62,12 +62,19 @@ const DropZone = (props: { readonly onFilesAdded: (files: File[]) => void }) =>
|
|
|
62
62
|
|
|
63
63
|
const handleDragLeave = () => --entranceCounter <= 0 && setDropZoneState(false);
|
|
64
64
|
|
|
65
|
+
const handleDragEnd = () => {
|
|
66
|
+
entranceCounter = 0;
|
|
67
|
+
setDropZoneState(false);
|
|
68
|
+
};
|
|
69
|
+
|
|
65
70
|
document.addEventListener('dragenter', handleDragEnter, false);
|
|
66
71
|
document.addEventListener('dragleave', handleDragLeave, false);
|
|
72
|
+
document.addEventListener('dragend', handleDragEnd, false);
|
|
67
73
|
|
|
68
74
|
return () => {
|
|
69
75
|
document.removeEventListener('dragenter', handleDragEnter);
|
|
70
76
|
document.removeEventListener('dragleave', handleDragLeave);
|
|
77
|
+
document.removeEventListener('dragend', handleDragEnd);
|
|
71
78
|
};
|
|
72
79
|
}, [setDropZoneState]);
|
|
73
80
|
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
:global {
|
|
2
|
+
/* biome-ignore format: do not print each class on the new line */
|
|
3
|
+
.a, .b, .c, .d, .e, .f, .g, .h, .i, .j, .k, .l, .m, .n, .o, .p, .q, .r, .s, .t, .v, .w, .u, .x, .y, .z,
|
|
4
|
+
.A, .B, .C, .D, .E, .F, .G, .H, .I, .J, .K, .L, .M, .N, .O, .P, .Q, .R, .S, .T, .V, .W, .U, .X, .Y, .Z {
|
|
5
|
+
/* biome-ignore lint: esbuild considers empty global classes as used and removes them due to lack of rules */
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
1
9
|
:global(.webchat-fluent).theme {
|
|
2
10
|
display: contents;
|
|
3
11
|
|