botframework-webchat-fluent-theme 4.18.1-main.20240924.f09c8c5 → 4.18.1-main.20240927.ea7a875

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.
Files changed (29) hide show
  1. package/dist/botframework-webchat-fluent-theme.css.map +1 -1
  2. package/dist/botframework-webchat-fluent-theme.development.css.map +1 -1
  3. package/dist/botframework-webchat-fluent-theme.development.js +8 -8
  4. package/dist/botframework-webchat-fluent-theme.development.js.map +1 -1
  5. package/dist/botframework-webchat-fluent-theme.js +1 -1
  6. package/dist/botframework-webchat-fluent-theme.js.map +1 -1
  7. package/dist/botframework-webchat-fluent-theme.mjs +1 -1
  8. package/dist/botframework-webchat-fluent-theme.mjs.map +1 -1
  9. package/dist/botframework-webchat-fluent-theme.production.min.css.map +1 -1
  10. package/dist/botframework-webchat-fluent-theme.production.min.js +8 -8
  11. package/dist/botframework-webchat-fluent-theme.production.min.js.map +1 -1
  12. package/package.json +7 -5
  13. package/src/components/dropZone/DropZone.tsx +1 -1
  14. package/src/components/preChatActivity/PreChatMessageActivity.module.css +2 -0
  15. package/src/env.d.ts +1 -7
  16. package/src/external.umd/botframework-webchat-component/decorator.ts +1 -0
  17. package/src/index.ts +0 -3
  18. package/src/private/FluentThemeProvider.tsx +6 -3
  19. package/src/styles/createStyles.ts +5 -0
  20. package/src/styles/index.ts +2 -2
  21. package/src/styles/useStyles.ts +2 -19
  22. package/src/tsconfig.json +12 -10
  23. package/src/components/decorator/index.ts +0 -1
  24. package/src/components/decorator/private/BorderFlair.module.css +0 -552
  25. package/src/components/decorator/private/BorderFlair.tsx +0 -30
  26. package/src/components/decorator/private/BorderLoader.module.css +0 -49
  27. package/src/components/decorator/private/BorderLoader.tsx +0 -19
  28. package/src/components/decorator/private/Decorator.tsx +0 -20
  29. package/src/styles/injectStyle.ts +0 -9
@@ -1,552 +0,0 @@
1
- @property --webchat-decorator-borderFlair-animated-angle {
2
- inherits: true;
3
- initial-value: 0;
4
- syntax: '<number>';
5
- }
6
-
7
- @property --webchat-decorator-borderFlair-animated-color1 {
8
- inherits: true;
9
- initial-value: transparent;
10
- syntax: '<color>';
11
- }
12
-
13
- @property --webchat-decorator-borderFlair-animated-color2 {
14
- inherits: true;
15
- initial-value: transparent;
16
- syntax: '<color>';
17
- }
18
-
19
- @property --webchat-decorator-borderFlair-animated-color3 {
20
- inherits: true;
21
- initial-value: transparent;
22
- syntax: '<color>';
23
- }
24
-
25
- @keyframes borderAnimation-angle {
26
- 0% {
27
- --webchat-decorator-borderFlair-animated-angle: 0.75;
28
- }
29
-
30
- 100% {
31
- --webchat-decorator-borderFlair-animated-angle: 2.75;
32
- }
33
- }
34
-
35
- @keyframes borderAnimation-color1 {
36
- 0% {
37
- --webchat-decorator-borderFlair-animated-color1: var(--webchat-decorator-borderFlair-color1Fade);
38
- }
39
-
40
- 33% {
41
- --webchat-decorator-borderFlair-animated-color1: var(--webchat-decorator-borderFlair-color1);
42
- }
43
-
44
- 83% {
45
- --webchat-decorator-borderFlair-animated-color1: var(--webchat-decorator-borderFlair-color1);
46
- }
47
-
48
- 100% {
49
- --webchat-decorator-borderFlair-animated-color1: var(--webchat-decorator-borderFlair-color1Fade);
50
- }
51
- }
52
-
53
- @keyframes borderAnimation-color2 {
54
- 0% {
55
- --webchat-decorator-borderFlair-animated-color2: var(--webchat-decorator-borderFlair-color2Fade);
56
- }
57
-
58
- 33% {
59
- --webchat-decorator-borderFlair-animated-color2: var(--webchat-decorator-borderFlair-color2);
60
- }
61
-
62
- 83% {
63
- --webchat-decorator-borderFlair-animated-color2: var(--webchat-decorator-borderFlair-color2);
64
- }
65
-
66
- 100% {
67
- --webchat-decorator-borderFlair-animated-color2: var(--webchat-decorator-borderFlair-color2Fade);
68
- }
69
- }
70
-
71
- @keyframes borderAnimation-color3 {
72
- 0% {
73
- --webchat-decorator-borderFlair-animated-color3: var(--webchat-decorator-borderFlair-color3Fade);
74
- }
75
-
76
- 33% {
77
- --webchat-decorator-borderFlair-animated-color3: var(--webchat-decorator-borderFlair-color3);
78
- }
79
-
80
- 83% {
81
- --webchat-decorator-borderFlair-animated-color3: var(--webchat-decorator-borderFlair-color3);
82
- }
83
-
84
- 100% {
85
- --webchat-decorator-borderFlair-animated-color3: var(--webchat-decorator-borderFlair-color3Fade);
86
- }
87
- }
88
-
89
- :global(.webchat-fluent) .border-flair {
90
- /* Configurable variables */
91
- --webchat-decorator-borderFlair-color1: var(--webchat-borderFlair-color1, var(--webchat__border-animation--color-1));
92
- --webchat-decorator-borderFlair-color2: var(--webchat-borderFlair-color2, var(--webchat__border-animation--color-2));
93
- --webchat-decorator-borderFlair-color3: var(--webchat-borderFlair-color3, var(--webchat__border-animation--color-3));
94
- --webchat-decorator-borderFlair-color1Fade: var(--webchat-borderFlair-color1Fade, transparent);
95
- --webchat-decorator-borderFlair-color2Fade: var(--webchat-borderFlair-color2Fade, transparent);
96
- --webchat-decorator-borderFlair-color3Fade: var(--webchat-borderFlair-color1Fade, transparent);
97
- --webchat-decorator-borderFlair-borderSize: var(--webchat-borderFlair-borderSize, 2px);
98
-
99
- /* Helper variables */
100
- --webchat-decorator-borderFlair-backgroundSize: calc(100% + (2 * var(--webchat-decorator-borderFlair-borderSize)));
101
- --webchat-decorator-borderFlair-borderGradient: linear-gradient(calc(var(--webchat-decorator-borderFlair-animated-angle) * 180deg + 45deg),
102
- var(--webchat-decorator-borderFlair-animated-color1),
103
- var(--webchat-decorator-borderFlair-animated-color2),
104
- var(--webchat-decorator-borderFlair-animated-color3));
105
- --webchat-decorator-borderFlair-borderMask: linear-gradient(hsl(0 0% 100% / 0), hsl(0 0% 100% / 0)) padding-box,
106
- linear-gradient(hsl(0 0% 100%), hsl(0 0% 100%)) border-box;
107
-
108
- animation:
109
- borderAnimation-angle 2000ms linear 0ms forwards,
110
- borderAnimation-color1 1200ms linear 0ms forwards,
111
- borderAnimation-color2 1200ms linear 200ms forwards,
112
- borderAnimation-color3 1200ms linear 400ms forwards;
113
- background: var(--webchat-decorator-borderFlair-borderGradient) center center / var(--webchat-decorator-borderFlair-backgroundSize) var(--webchat-decorator-borderFlair-backgroundSize);
114
- border: var(--webchat-decorator-borderFlair-borderSize) solid transparent;
115
- border-radius: inherit;
116
- inset: 0;
117
- isolation: isolate;
118
- -webkit-mask: var(--webchat-decorator-borderFlair-borderMask);
119
- -webkit-mask-composite: clear;
120
- mask: var(--webchat-decorator-borderFlair-borderMask);
121
- mask-composite: intersect;
122
- pointer-events: none;
123
- position: absolute;
124
- }
125
-
126
- :global(.webchat-fluent) .border-flair--complete {
127
- animation-play-state: paused;
128
- }
129
-
130
- /* Firefox implementation */
131
- @supports (-moz-appearance: none) {
132
- @keyframes borderFlair-animation {
133
- 0% {
134
- --webchat-decorator-borderFlair-animated: 0;
135
- }
136
-
137
- 1% {
138
- --webchat-decorator-borderFlair-animated: 0.01;
139
- }
140
-
141
- 2% {
142
- --webchat-decorator-borderFlair-animated: 0.02;
143
- }
144
-
145
- 3% {
146
- --webchat-decorator-borderFlair-animated: 0.03;
147
- }
148
-
149
- 4% {
150
- --webchat-decorator-borderFlair-animated: 0.04;
151
- }
152
-
153
- 5% {
154
- --webchat-decorator-borderFlair-animated: 0.05;
155
- }
156
-
157
- 6% {
158
- --webchat-decorator-borderFlair-animated: 0.06;
159
- }
160
-
161
- 7% {
162
- --webchat-decorator-borderFlair-animated: 0.07;
163
- }
164
-
165
- 8% {
166
- --webchat-decorator-borderFlair-animated: 0.08;
167
- }
168
-
169
- 9% {
170
- --webchat-decorator-borderFlair-animated: 0.09;
171
- }
172
-
173
- 10% {
174
- --webchat-decorator-borderFlair-animated: 0.1;
175
- }
176
-
177
- 11% {
178
- --webchat-decorator-borderFlair-animated: 0.11;
179
- }
180
-
181
- 12% {
182
- --webchat-decorator-borderFlair-animated: 0.12;
183
- }
184
-
185
- 13% {
186
- --webchat-decorator-borderFlair-animated: 0.13;
187
- }
188
-
189
- 14% {
190
- --webchat-decorator-borderFlair-animated: 0.14;
191
- }
192
-
193
- 15% {
194
- --webchat-decorator-borderFlair-animated: 0.15;
195
- }
196
-
197
- 16% {
198
- --webchat-decorator-borderFlair-animated: 0.16;
199
- }
200
-
201
- 17% {
202
- --webchat-decorator-borderFlair-animated: 0.17;
203
- }
204
-
205
- 18% {
206
- --webchat-decorator-borderFlair-animated: 0.18;
207
- }
208
-
209
- 19% {
210
- --webchat-decorator-borderFlair-animated: 0.19;
211
- }
212
-
213
- 20% {
214
- --webchat-decorator-borderFlair-animated: 0.2;
215
- }
216
-
217
- 21% {
218
- --webchat-decorator-borderFlair-animated: 0.21;
219
- }
220
-
221
- 22% {
222
- --webchat-decorator-borderFlair-animated: 0.22;
223
- }
224
-
225
- 23% {
226
- --webchat-decorator-borderFlair-animated: 0.23;
227
- }
228
-
229
- 24% {
230
- --webchat-decorator-borderFlair-animated: 0.24;
231
- }
232
-
233
- 25% {
234
- --webchat-decorator-borderFlair-animated: 0.25;
235
- }
236
-
237
- 26% {
238
- --webchat-decorator-borderFlair-animated: 0.26;
239
- }
240
-
241
- 27% {
242
- --webchat-decorator-borderFlair-animated: 0.27;
243
- }
244
-
245
- 28% {
246
- --webchat-decorator-borderFlair-animated: 0.28;
247
- }
248
-
249
- 29% {
250
- --webchat-decorator-borderFlair-animated: 0.29;
251
- }
252
-
253
- 30% {
254
- --webchat-decorator-borderFlair-animated: 0.3;
255
- }
256
-
257
- 31% {
258
- --webchat-decorator-borderFlair-animated: 0.31;
259
- }
260
-
261
- 32% {
262
- --webchat-decorator-borderFlair-animated: 0.32;
263
- }
264
-
265
- 33% {
266
- --webchat-decorator-borderFlair-animated: 0.33;
267
- }
268
-
269
- 34% {
270
- --webchat-decorator-borderFlair-animated: 0.34;
271
- }
272
-
273
- 35% {
274
- --webchat-decorator-borderFlair-animated: 0.35;
275
- }
276
-
277
- 36% {
278
- --webchat-decorator-borderFlair-animated: 0.36;
279
- }
280
-
281
- 37% {
282
- --webchat-decorator-borderFlair-animated: 0.37;
283
- }
284
-
285
- 38% {
286
- --webchat-decorator-borderFlair-animated: 0.38;
287
- }
288
-
289
- 39% {
290
- --webchat-decorator-borderFlair-animated: 0.39;
291
- }
292
-
293
- 40% {
294
- --webchat-decorator-borderFlair-animated: 0.4;
295
- }
296
-
297
- 41% {
298
- --webchat-decorator-borderFlair-animated: 0.41;
299
- }
300
-
301
- 42% {
302
- --webchat-decorator-borderFlair-animated: 0.42;
303
- }
304
-
305
- 43% {
306
- --webchat-decorator-borderFlair-animated: 0.43;
307
- }
308
-
309
- 44% {
310
- --webchat-decorator-borderFlair-animated: 0.44;
311
- }
312
-
313
- 45% {
314
- --webchat-decorator-borderFlair-animated: 0.45;
315
- }
316
-
317
- 46% {
318
- --webchat-decorator-borderFlair-animated: 0.46;
319
- }
320
-
321
- 47% {
322
- --webchat-decorator-borderFlair-animated: 0.47;
323
- }
324
-
325
- 48% {
326
- --webchat-decorator-borderFlair-animated: 0.48;
327
- }
328
-
329
- 49% {
330
- --webchat-decorator-borderFlair-animated: 0.49;
331
- }
332
-
333
- 50% {
334
- --webchat-decorator-borderFlair-animated: 0.5;
335
- }
336
-
337
- 51% {
338
- --webchat-decorator-borderFlair-animated: 0.51;
339
- }
340
-
341
- 52% {
342
- --webchat-decorator-borderFlair-animated: 0.52;
343
- }
344
-
345
- 53% {
346
- --webchat-decorator-borderFlair-animated: 0.53;
347
- }
348
-
349
- 54% {
350
- --webchat-decorator-borderFlair-animated: 0.54;
351
- }
352
-
353
- 55% {
354
- --webchat-decorator-borderFlair-animated: 0.55;
355
- }
356
-
357
- 56% {
358
- --webchat-decorator-borderFlair-animated: 0.56;
359
- }
360
-
361
- 57% {
362
- --webchat-decorator-borderFlair-animated: 0.57;
363
- }
364
-
365
- 58% {
366
- --webchat-decorator-borderFlair-animated: 0.58;
367
- }
368
-
369
- 59% {
370
- --webchat-decorator-borderFlair-animated: 0.59;
371
- }
372
-
373
- 60% {
374
- --webchat-decorator-borderFlair-animated: 0.6;
375
- }
376
-
377
- 61% {
378
- --webchat-decorator-borderFlair-animated: 0.61;
379
- }
380
-
381
- 62% {
382
- --webchat-decorator-borderFlair-animated: 0.62;
383
- }
384
-
385
- 63% {
386
- --webchat-decorator-borderFlair-animated: 0.63;
387
- }
388
-
389
- 64% {
390
- --webchat-decorator-borderFlair-animated: 0.64;
391
- }
392
-
393
- 65% {
394
- --webchat-decorator-borderFlair-animated: 0.65;
395
- }
396
-
397
- 66% {
398
- --webchat-decorator-borderFlair-animated: 0.66;
399
- }
400
-
401
- 67% {
402
- --webchat-decorator-borderFlair-animated: 0.67;
403
- }
404
-
405
- 68% {
406
- --webchat-decorator-borderFlair-animated: 0.68;
407
- }
408
-
409
- 69% {
410
- --webchat-decorator-borderFlair-animated: 0.69;
411
- }
412
-
413
- 70% {
414
- --webchat-decorator-borderFlair-animated: 0.7;
415
- }
416
-
417
- 71% {
418
- --webchat-decorator-borderFlair-animated: 0.71;
419
- }
420
-
421
- 72% {
422
- --webchat-decorator-borderFlair-animated: 0.72;
423
- }
424
-
425
- 73% {
426
- --webchat-decorator-borderFlair-animated: 0.73;
427
- }
428
-
429
- 74% {
430
- --webchat-decorator-borderFlair-animated: 0.74;
431
- }
432
-
433
- 75% {
434
- --webchat-decorator-borderFlair-animated: 0.75;
435
- }
436
-
437
- 76% {
438
- --webchat-decorator-borderFlair-animated: 0.76;
439
- }
440
-
441
- 77% {
442
- --webchat-decorator-borderFlair-animated: 0.77;
443
- }
444
-
445
- 78% {
446
- --webchat-decorator-borderFlair-animated: 0.78;
447
- }
448
-
449
- 79% {
450
- --webchat-decorator-borderFlair-animated: 0.79;
451
- }
452
-
453
- 80% {
454
- --webchat-decorator-borderFlair-animated: 0.8;
455
- }
456
-
457
- 81% {
458
- --webchat-decorator-borderFlair-animated: 0.81;
459
- }
460
-
461
- 82% {
462
- --webchat-decorator-borderFlair-animated: 0.82;
463
- }
464
-
465
- 83% {
466
- --webchat-decorator-borderFlair-animated: 0.83;
467
- }
468
-
469
- 84% {
470
- --webchat-decorator-borderFlair-animated: 0.84;
471
- }
472
-
473
- 85% {
474
- --webchat-decorator-borderFlair-animated: 0.85;
475
- }
476
-
477
- 86% {
478
- --webchat-decorator-borderFlair-animated: 0.86;
479
- }
480
-
481
- 87% {
482
- --webchat-decorator-borderFlair-animated: 0.87;
483
- }
484
-
485
- 88% {
486
- --webchat-decorator-borderFlair-animated: 0.88;
487
- }
488
-
489
- 89% {
490
- --webchat-decorator-borderFlair-animated: 0.89;
491
- }
492
-
493
- 90% {
494
- --webchat-decorator-borderFlair-animated: 0.9;
495
- }
496
-
497
- 91% {
498
- --webchat-decorator-borderFlair-animated: 0.91;
499
- }
500
-
501
- 92% {
502
- --webchat-decorator-borderFlair-animated: 0.92;
503
- }
504
-
505
- 93% {
506
- --webchat-decorator-borderFlair-animated: 0.93;
507
- }
508
-
509
- 94% {
510
- --webchat-decorator-borderFlair-animated: 0.94;
511
- }
512
-
513
- 95% {
514
- --webchat-decorator-borderFlair-animated: 0.95;
515
- }
516
-
517
- 96% {
518
- --webchat-decorator-borderFlair-animated: 0.96;
519
- }
520
-
521
- 97% {
522
- --webchat-decorator-borderFlair-animated: 0.97;
523
- }
524
-
525
- 98% {
526
- --webchat-decorator-borderFlair-animated: 0.98;
527
- }
528
-
529
- 99% {
530
- --webchat-decorator-borderFlair-animated: 0.99;
531
- }
532
-
533
- 100% {
534
- --webchat-decorator-borderFlair-animated: 1;
535
- }
536
- }
537
-
538
- :global(.webchat-fluent) .border-flair {
539
- --webchat-decorator-borderFlair-animated-angle: calc(0.75 + 2 * var(--webchat-decorator-borderFlair-animated));
540
- --webchat-decorator-borderFlair-animated-color1: color-mix(in srgb,
541
- var(--webchat-decorator-borderFlair-color1) calc((1 - abs(var(--webchat-decorator-borderFlair-animated) * 3 - 1.5)) * 100%),
542
- var(--webchat-decorator-borderFlair-color1Fade));
543
- --webchat-decorator-borderFlair-animated-color2: color-mix(in srgb,
544
- var(--webchat-decorator-borderFlair-color2) calc((1 - abs(var(--webchat-decorator-borderFlair-animated) * 3 - 1.75)) * 100%),
545
- var(--webchat-decorator-borderFlair-color2Fade));
546
- --webchat-decorator-borderFlair-animated-color3: color-mix(in srgb,
547
- var(--webchat-decorator-borderFlair-color3) calc((1 - abs(var(--webchat-decorator-borderFlair-animated) * 3 - 2)) * 100%),
548
- var(--webchat-decorator-borderFlair-color3Fade));
549
-
550
- animation: borderFlair-animation 2000ms linear forwards;
551
- }
552
- }
@@ -1,30 +0,0 @@
1
- import React, { Fragment, memo, useCallback, useState, type ReactNode } from 'react';
2
- import cx from 'classnames';
3
-
4
- import { useStyles } from '../../../styles';
5
- import styles from './BorderFlair.module.css';
6
-
7
- function BorderFlair({ children }: Readonly<{ children?: ReactNode | undefined }>) {
8
- const classNames = useStyles(styles);
9
- const [isComplete, setComplete] = useState(false);
10
-
11
- const handleAnimationEnd = useCallback(
12
- event =>
13
- (event.animationName === styles['borderAnimation-angle'] ||
14
- event.animationName === styles['borderFlair-animation']) &&
15
- setComplete(true),
16
- []
17
- );
18
-
19
- return (
20
- <Fragment>
21
- {children}
22
- <div
23
- className={cx(classNames['border-flair'], isComplete && classNames['border-flair--complete'])}
24
- onAnimationEnd={handleAnimationEnd}
25
- />
26
- </Fragment>
27
- );
28
- }
29
-
30
- export default memo(BorderFlair);
@@ -1,49 +0,0 @@
1
- @keyframes borderAnimation-position {
2
- 0% {
3
- left: -33%;
4
- width: 33%;
5
- }
6
-
7
- 100% {
8
- left: 100%;
9
- width: 33%;
10
- }
11
- }
12
-
13
- :global(.webchat-fluent) .border-loader {
14
- border-radius: inherit;
15
- }
16
-
17
- :global(.webchat-fluent) .border-loader__track {
18
- --webchat-decorator-borderLoader-borderSize: var(--webchat-borderLoader-borderSize, 4px);
19
-
20
- background-color: var(--webchat-colorNeutralBackground6);
21
- height: var(--webchat-decorator-borderLoader-borderSize);
22
- position: relative;
23
- width: 100%;
24
- }
25
-
26
-
27
- :global(.webchat-fluent) .border-loader__loader {
28
- --webchat-decorator-borderLoader-color1: var(--webchat-borderLoader-color1,
29
- var(--webchat__border-animation--color-1));
30
- --webchat-decorator-borderLoader-color2: var(--webchat-borderLoader-color2,
31
- var(--webchat__border-animation--color-2));
32
- --webchat-decorator-borderLoader-color3: var(--webchat-borderLoader-color3,
33
- var(--webchat__border-animation--color-3));
34
- --webchat-decorator-borderLoader-color1Fade: var(--webchat-borderLoader-color1Fade, transparent);
35
- --webchat-decorator-borderLoader-color3Fade: var(--webchat-borderLoader-color1Fade, transparent);
36
-
37
- animation: borderAnimation-position 3s linear infinite;
38
- background: linear-gradient(90deg,
39
- var(--webchat-decorator-borderLoader-color1Fade) 0%,
40
- var(--webchat-decorator-borderLoader-color1) 35%,
41
- var(--webchat-decorator-borderLoader-color2) 70%,
42
- var(--webchat-decorator-borderLoader-color3) 92%,
43
- var(--webchat-decorator-borderLoader-color3Fade)) no-repeat;
44
- height: var(--webchat-decorator-borderLoader-borderSize);
45
- inset: 0;
46
- isolation: isolate;
47
- position: absolute;
48
- width: 100%;
49
- }
@@ -1,19 +0,0 @@
1
- import React, { memo, type ReactNode } from 'react';
2
-
3
- import { useStyles } from '../../../styles';
4
- import styles from './BorderLoader.module.css';
5
-
6
- function BorderLoader({ children }: Readonly<{ children?: ReactNode | undefined }>) {
7
- const classNames = useStyles(styles);
8
-
9
- return (
10
- <div className={classNames['border-loader']}>
11
- {children}
12
- <div className={classNames['border-loader__track']}>
13
- <div className={classNames['border-loader__loader']} />
14
- </div>
15
- </div>
16
- );
17
- }
18
-
19
- export default memo(BorderLoader);
@@ -1,20 +0,0 @@
1
- import { DecoratorComposer, type DecoratorMiddleware } from 'botframework-webchat-api/decorator';
2
- import React, { memo, type ReactNode } from 'react';
3
-
4
- import BorderFlair from './BorderFlair';
5
- import BorderLoader from './BorderLoader';
6
-
7
- const middleware: DecoratorMiddleware[] = [
8
- init =>
9
- init === 'activity border' &&
10
- (next => request => (request.livestreamingState === 'completing' ? BorderFlair : next(request))),
11
- init =>
12
- init === 'activity border' &&
13
- (next => request => (request.livestreamingState === 'preparing' ? BorderLoader : next(request)))
14
- ];
15
-
16
- function FluentThemeDecorator({ children }: Readonly<{ readonly children?: ReactNode | undefined }>) {
17
- return <DecoratorComposer middleware={middleware}>{children}</DecoratorComposer>;
18
- }
19
-
20
- export default memo(FluentThemeDecorator);
@@ -1,9 +0,0 @@
1
- export const injectedStyles = '@--INJECTED-STYLES-CONTENT--@';
2
-
3
- export default function injectStyles() {
4
- if (globalThis.document) {
5
- const style = document.createElement('style');
6
- style.append(document.createTextNode(injectedStyles));
7
- document.head.appendChild(style);
8
- }
9
- }