botframework-webchat-fluent-theme 4.18.1-main.20240911.3e47786 → 4.18.1-main.20240912.54a6a40

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.20240911.3e47786",
3
+ "version": "4.18.1-main.20240912.54a6a40",
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",
@@ -69,9 +69,9 @@
69
69
  "typescript": "^5.4.5"
70
70
  },
71
71
  "dependencies": {
72
- "botframework-webchat-api": "4.18.1-main.20240911.3e47786",
73
- "botframework-webchat-component": "4.18.1-main.20240911.3e47786",
74
- "botframework-webchat-core": "4.18.1-main.20240911.3e47786",
72
+ "botframework-webchat-api": "4.18.1-main.20240912.54a6a40",
73
+ "botframework-webchat-component": "4.18.1-main.20240912.54a6a40",
74
+ "botframework-webchat-core": "4.18.1-main.20240912.54a6a40",
75
75
  "classnames": "2.5.1",
76
76
  "inject-meta-tag": "0.0.1",
77
77
  "math-random": "2.0.1",
@@ -30,20 +30,6 @@
30
30
  /* Decorator copilot variant */
31
31
  :global(.webchat-fluent) .activity-decorator.variant-copilot {
32
32
  --webchat__bubble--border-radius: var(--webchat-borderRadiusXLarge);
33
-
34
- &:not(:has(:global(.webchat__bubble--from-user))) {
35
- --webchat__bubble--block-padding: var(--webchat-spacingVerticalS) var(--webchat-spacingVerticalS);
36
- --webchat__bubble--border-radius: var(--webchat-borderRadiusMedium);
37
- --webchat__bubble--inline-padding: 34px var(--webchat-spacingHorizontalS);
38
- --webchat__bubble--max-width: 100%;
39
-
40
- display: block;
41
- padding-inline-start: var(--webchat-spacingHorizontalM);
42
- }
43
-
44
- &:not(:has(:global(.webchat__bubble--from-user))) :global(.webchat__stacked-layout__status) {
45
- display: none;
46
- }
47
33
 
48
34
  :global(.webchat__activity-status) {
49
35
  margin: 0 0 var(--webchat-spacingHorizontalXXS);
@@ -53,16 +39,64 @@
53
39
  order: -1;
54
40
  }
55
41
 
56
- /* TODO: remove when we get decorators in and can place header directly to the bubble */
57
- &:not(:has(:global(.webchat__bubble--from-user))) :global(.webchat__stacked-layout .webchat__bubble .webchat__text-content) {
58
- padding-block: calc(var(--webchat-spacingVerticalMNudge) + 20px) var(--webchat-spacingVerticalS);
42
+ &:has(:global(.webchat__bubble--from-user)) :global(.webchat__bubble) {
43
+ margin-block-end: var(--webchat-spacingVerticalM);
44
+ }
45
+ }
46
+
47
+ /* Decorator copilot variant which has bot message */
48
+ :global(.webchat-fluent) .activity-decorator.variant-copilot:not(:has(:global(.webchat__bubble--from-user))) {
49
+ --webchat__bubble--block-padding: 0;
50
+ --webchat__bubble--border-radius: var(--webchat-borderRadiusMedium);
51
+ --webchat__bubble--inline-padding: 0;
52
+ --webchat__bubble--max-width: 100%;
53
+ --webchat__bubble--min-height: 20px;
54
+
55
+ display: flex;
56
+ flex-flow: column nowrap;
57
+ gap: var(--webchat-spacingVerticalS);
58
+ margin-inline: var(--webchat-spacingHorizontalM);
59
+ padding: var(--webchat-spacingVerticalMNudge) var(--webchat-spacingHorizontalM) var(--webchat-spacingVerticalM);
60
+ position: relative;
61
+
62
+ :global(.webchat__stacked-layout) {
63
+ margin: 0;
64
+ position: static;
59
65
  }
60
66
 
61
- &:not(:has(:global(.webchat__bubble--from-user))) :global(.webchat__stacked-layout .webchat__bubble) {
62
- margin-block-start: -28px;
63
- margin-inline-start: -10px;
67
+ :global(.webchat__bubble) {
68
+ position: static;
64
69
  width: var(--webchat__bubble--max-width);
65
70
  }
71
+
72
+ :global(.webchat__bubble .webchat__bubble__content) {
73
+ overflow: visible;
74
+ }
75
+
76
+ :global(.webchat__text-content) {
77
+ margin-inline-start: 28px;
78
+ }
79
+
80
+ :global(.border-loader) {
81
+ display: flex;
82
+ flex-flow: column nowrap;
83
+ gap: var(--webchat-spacingVerticalS);
84
+ padding-inline-end: var(--webchat-spacingHorizontalM);
85
+ width: 500px;
86
+ }
87
+
88
+ :global(.border-loader__track) {
89
+ border-radius: inherit;
90
+ box-sizing: border-box;
91
+ clip-path: border-box;
92
+ margin-inline-start: 28px;
93
+ order: -1;
94
+ width: auto;
95
+ }
96
+
97
+ :global(.webchat__stacked-layout__status) {
98
+ display: none;
99
+ }
66
100
  }
67
101
 
68
102
  /* Transcript activity non-empty */
@@ -102,8 +136,8 @@
102
136
  box-shadow: var(--webchat__bubble--box-shadow);
103
137
  box-sizing: border-box;
104
138
  color: var(--webchat-colorNeutralForeground1);
105
- min-height: var(--webchat__bubble--min-height);
106
139
  max-width: var(--webchat__bubble--max-width);
140
+ min-height: var(--webchat__bubble--min-height);
107
141
  }
108
142
 
109
143
  /* Message bubble text content */
@@ -131,6 +165,12 @@
131
165
  }
132
166
  }
133
167
 
168
+ /* Message bubble latency loader */
169
+ :global(.webchat-fluent) .activity-decorator :global(.border-loader) {
170
+ max-width: 100%;
171
+ width: var(--webchat__bubble--max-width);
172
+ }
173
+
134
174
  /* Markdown links and citation links */
135
175
  :global(.webchat-fluent) .activity-decorator :global(.webchat__render-markdown) a[href]:not(:global(.webchat__render-markdown__pure-identifier)) {
136
176
  color: var(--webchat-colorBrandForegroundLink);
@@ -214,6 +254,8 @@
214
254
 
215
255
  /* Citation summary chevron */
216
256
  :global(.webchat-fluent) .activity-decorator :global(.webchat__link-definitions__header) {
257
+ border-radius: var(--webchat-borderRadiusMedium);
258
+
217
259
  :global(.webchat__link-definitions__header-text) {
218
260
  color: var(--webchat-colorNeutralForeground3);
219
261
  }
@@ -223,6 +265,11 @@
223
265
  font-size: var(--webchat__font-size--small);
224
266
  width: 1em;
225
267
  }
268
+
269
+ &:focus-visible {
270
+ outline-offset: 1px;
271
+ outline: var(--webchat-strokeWidthThin) solid var(--webchat-colorStrokeFocus2);
272
+ }
226
273
  }
227
274
 
228
275
  /* Citation link definitions */
@@ -7,11 +7,6 @@
7
7
  flex-wrap: nowrap;
8
8
  gap: var(--webchat-spacingHorizontalS);
9
9
  max-width: var(--webchat__bubble--max-width);
10
- padding-block-start: var(--webchat-spacingVerticalXS);
11
- padding-inline: var(--webchat-spacingVerticalMNudge);
12
- /* TODO: remove when moved to the bubble */
13
- position: relative;
14
- z-index: 1;
15
10
  }
16
11
 
17
12
  :global(.webchat-fluent) .copilot-message-header__avatar {