botframework-webchat-fluent-theme 4.18.1-main.20241015.4744d69 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "botframework-webchat-fluent-theme",
3
- "version": "4.18.1-main.20241015.4744d69",
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.20241015.4744d69",
72
- "botframework-webchat-styles": "4.18.1-main.20241015.4744d69",
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.20241015.4744d69",
78
- "botframework-webchat-component": "4.18.1-main.20241015.4744d69",
79
- "botframework-webchat-core": "4.18.1-main.20241015.4744d69",
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",
@@ -88,7 +88,7 @@
88
88
  margin-inline-start: 28px;
89
89
  }
90
90
 
91
- :global(.border-loader):global(.border-loader) {
91
+ :global(.border-loader) {
92
92
  display: flex;
93
93
  flex-flow: column nowrap;
94
94
  gap: var(--webchat-spacingVerticalS);
@@ -96,7 +96,7 @@
96
96
  width: 500px;
97
97
  }
98
98
 
99
- :global(.border-loader__track):global(.border-loader__track) {
99
+ :global(.border-loader__track) {
100
100
  border-radius: inherit;
101
101
  box-sizing: border-box;
102
102
  clip-path: border-box;
@@ -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: #e00;
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