botframework-webchat-fluent-theme 4.18.1-main.20240911.3e47786 → 4.18.1-main.20240917.4b9342a

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.20240917.4b9342a",
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.20240917.4b9342a",
73
+ "botframework-webchat-component": "4.18.1-main.20240917.4b9342a",
74
+ "botframework-webchat-core": "4.18.1-main.20240917.4b9342a",
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,69 @@
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
+ /* Hide generated badge as it is in the copilot header */
47
+ :global(.webchat__bubble .webchat__text-content .webchat__text-content__generated-badge) {
48
+ display: none;
49
+ }
50
+ }
51
+
52
+ /* Decorator copilot variant which has bot message */
53
+ :global(.webchat-fluent) .activity-decorator.variant-copilot:not(:has(:global(.webchat__bubble--from-user))) {
54
+ --webchat__bubble--block-padding: 0;
55
+ --webchat__bubble--border-radius: var(--webchat-borderRadiusMedium);
56
+ --webchat__bubble--inline-padding: 0;
57
+ --webchat__bubble--max-width: 100%;
58
+ --webchat__bubble--min-height: 20px;
59
+
60
+ display: flex;
61
+ flex-flow: column nowrap;
62
+ gap: var(--webchat-spacingVerticalS);
63
+ margin-inline: var(--webchat-spacingHorizontalM);
64
+ padding: var(--webchat-spacingVerticalMNudge) var(--webchat-spacingHorizontalM) var(--webchat-spacingVerticalM);
65
+ position: relative;
66
+
67
+ :global(.webchat__stacked-layout) {
68
+ margin: 0;
69
+ position: static;
59
70
  }
60
71
 
61
- &:not(:has(:global(.webchat__bubble--from-user))) :global(.webchat__stacked-layout .webchat__bubble) {
62
- margin-block-start: -28px;
63
- margin-inline-start: -10px;
72
+ :global(.webchat__bubble) {
73
+ position: static;
64
74
  width: var(--webchat__bubble--max-width);
65
75
  }
76
+
77
+ :global(.webchat__bubble .webchat__bubble__content) {
78
+ overflow: visible;
79
+ }
80
+
81
+ :global(.webchat__text-content) {
82
+ margin-inline-start: 28px;
83
+ }
84
+
85
+ :global(.border-loader) {
86
+ display: flex;
87
+ flex-flow: column nowrap;
88
+ gap: var(--webchat-spacingVerticalS);
89
+ padding-inline-end: var(--webchat-spacingHorizontalM);
90
+ width: 500px;
91
+ }
92
+
93
+ :global(.border-loader__track) {
94
+ border-radius: inherit;
95
+ box-sizing: border-box;
96
+ clip-path: border-box;
97
+ margin-inline-start: 28px;
98
+ order: -1;
99
+ width: auto;
100
+ }
101
+
102
+ :global(.webchat__stacked-layout__status) {
103
+ display: none;
104
+ }
66
105
  }
67
106
 
68
107
  /* Transcript activity non-empty */
@@ -102,8 +141,8 @@
102
141
  box-shadow: var(--webchat__bubble--box-shadow);
103
142
  box-sizing: border-box;
104
143
  color: var(--webchat-colorNeutralForeground1);
105
- min-height: var(--webchat__bubble--min-height);
106
144
  max-width: var(--webchat__bubble--max-width);
145
+ min-height: var(--webchat__bubble--min-height);
107
146
  }
108
147
 
109
148
  /* Message bubble text content */
@@ -113,6 +152,30 @@
113
152
  min-height: auto;
114
153
  padding-block: var(--webchat__bubble--block-padding);
115
154
  padding-inline: var(--webchat__bubble--inline-padding);
155
+
156
+ &:empty {
157
+ padding-block-end: 0;
158
+ }
159
+
160
+ +:global(.webchat__text-content) {
161
+ margin-top: calc(var(--webchat__bubble--block-padding) * -1);
162
+ }
163
+ }
164
+
165
+ /* Message bubble text content generated badge */
166
+ :global(.webchat-fluent) .activity-decorator :global(.webchat__stacked-layout .webchat__bubble .webchat__text-content__generated-badge) {
167
+ align-items: center;
168
+ align-self: flex-start;
169
+ background-color: var(--webchat-colorNeutralBackground5);
170
+ border-radius: var(--webchat-borderRadiusMedium);
171
+ box-sizing: border-box;
172
+ color: var(--webchat-colorNeutralForeground3);
173
+ cursor: default;
174
+ display: inline-flex;
175
+ font-size: var(--webchat-fontSizeBase100);
176
+ height: 16px;
177
+ line-height: var(--webchat-lineHeightBase100);
178
+ padding-inline: var(--webchat-spacingHorizontalXS);
116
179
  }
117
180
 
118
181
  /* Message bubble attachment content */
@@ -131,6 +194,12 @@
131
194
  }
132
195
  }
133
196
 
197
+ /* Message bubble latency loader */
198
+ :global(.webchat-fluent) .activity-decorator :global(.border-loader) {
199
+ max-width: 100%;
200
+ width: var(--webchat__bubble--max-width);
201
+ }
202
+
134
203
  /* Markdown links and citation links */
135
204
  :global(.webchat-fluent) .activity-decorator :global(.webchat__render-markdown) a[href]:not(:global(.webchat__render-markdown__pure-identifier)) {
136
205
  color: var(--webchat-colorBrandForegroundLink);
@@ -214,6 +283,8 @@
214
283
 
215
284
  /* Citation summary chevron */
216
285
  :global(.webchat-fluent) .activity-decorator :global(.webchat__link-definitions__header) {
286
+ border-radius: var(--webchat-borderRadiusMedium);
287
+
217
288
  :global(.webchat__link-definitions__header-text) {
218
289
  color: var(--webchat-colorNeutralForeground3);
219
290
  }
@@ -223,6 +294,11 @@
223
294
  font-size: var(--webchat__font-size--small);
224
295
  width: 1em;
225
296
  }
297
+
298
+ &:focus-visible {
299
+ outline-offset: 1px;
300
+ outline: var(--webchat-strokeWidthThin) solid var(--webchat-colorStrokeFocus2);
301
+ }
226
302
  }
227
303
 
228
304
  /* 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 {