@botonic/webchat-lit 2.34.2 → 2.35.0
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/CHANGELOG.md +35 -1
- package/package.json +2 -2
- package/src/lib/debug-event/debug-event.css.js +78 -72
- package/src/lib/debug-event/debug-event.css.js.map +1 -1
- package/src/lib/debug-event/debug-event.d.ts +1 -0
- package/src/lib/debug-event/debug-event.js +11 -7
- package/src/lib/debug-event/debug-event.js.map +1 -1
- package/src/lib/shared/base-styles.js +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,37 @@
|
|
|
1
|
+
## 2.35.0 (2026-08-03)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- upgrade to Nx 23.1.0 in bot apps, create-workspace and botonic/nx-plugin ([#1043](https://github.com/metis-ai/hubtype-product/pull/1043))
|
|
6
|
+
- eslint v9 with flat config ([#1039](https://github.com/metis-ai/hubtype-product/pull/1039))
|
|
7
|
+
|
|
8
|
+
### 🩹 Fixes
|
|
9
|
+
|
|
10
|
+
- **webchat-lit:** dedupe load-note dispatch by note id in debug-event ([#1016](https://github.com/metis-ai/hubtype-product/pull/1016))
|
|
11
|
+
|
|
12
|
+
### ❤️ Thank You
|
|
13
|
+
|
|
14
|
+
- Claude Sonnet 5
|
|
15
|
+
- David Hidalgo @Davidhidalgo
|
|
16
|
+
- Oriol Raventós @Davidhidalgo
|
|
17
|
+
|
|
18
|
+
## 2.35.0-alpha.0 (2026-08-03)
|
|
19
|
+
|
|
20
|
+
### 🚀 Features
|
|
21
|
+
|
|
22
|
+
- eslint v9 with flat config ([#1039](https://github.com/metis-ai/hubtype-product/pull/1039))
|
|
23
|
+
|
|
24
|
+
### 🩹 Fixes
|
|
25
|
+
|
|
26
|
+
- **release-botonic:** fix alpha release version resolution and hook crash ([7b5657fc3](https://github.com/metis-ai/hubtype-product/commit/7b5657fc3))
|
|
27
|
+
- **webchat-lit:** dedupe load-note dispatch by note id in debug-event ([#1016](https://github.com/metis-ai/hubtype-product/pull/1016))
|
|
28
|
+
|
|
29
|
+
### ❤️ Thank You
|
|
30
|
+
|
|
31
|
+
- Claude Sonnet 5
|
|
32
|
+
- David Hidalgo @Davidhidalgo
|
|
33
|
+
- Oriol Raventós @Iru89
|
|
34
|
+
|
|
1
35
|
## 2.34.2 (2026-07-13)
|
|
2
36
|
|
|
3
37
|
### 🩹 Fixes
|
|
@@ -29,4 +63,4 @@
|
|
|
29
63
|
### ❤️ Thank You
|
|
30
64
|
|
|
31
65
|
- Claude Sonnet 4.6
|
|
32
|
-
- David Hidalgo @Davidhidalgo
|
|
66
|
+
- David Hidalgo @Davidhidalgo
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@botonic/webchat-lit",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.35.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"types": "./src/index.d.ts",
|
|
6
6
|
"module": "./src/index.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"lit": "^3.0.0",
|
|
19
|
-
"@botonic/shared": "2.
|
|
19
|
+
"@botonic/shared": "2.35.0"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"tslib": "^2.3.0"
|
|
@@ -12,14 +12,14 @@ export const debugEventStyles = css `
|
|
|
12
12
|
flex-direction: column;
|
|
13
13
|
align-items: stretch;
|
|
14
14
|
justify-content: space-between;
|
|
15
|
-
gap: var(--spacing-s);
|
|
15
|
+
gap: var(--lilara-spacing-s);
|
|
16
16
|
|
|
17
17
|
background-color: var(
|
|
18
18
|
--botonic-debug-event-bg,
|
|
19
|
-
var(--surface-foreground)
|
|
19
|
+
var(--lilara-surface-foreground)
|
|
20
20
|
);
|
|
21
|
-
border-radius: var(--radius-s);
|
|
22
|
-
font-family: var(--font-family);
|
|
21
|
+
border-radius: var(--lilara-radius-s);
|
|
22
|
+
font-family: var(--lilara-font-family);
|
|
23
23
|
box-sizing: border-box;
|
|
24
24
|
width: 100%;
|
|
25
25
|
}
|
|
@@ -31,7 +31,7 @@ export const debugEventStyles = css `
|
|
|
31
31
|
.debug-root.is-collapsible:hover {
|
|
32
32
|
background-color: var(
|
|
33
33
|
--botonic-debug-event-hover-bg,
|
|
34
|
-
var(--color-neutral-50)
|
|
34
|
+
var(--lilara-color-neutral-50)
|
|
35
35
|
);
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -39,11 +39,11 @@ export const debugEventStyles = css `
|
|
|
39
39
|
display: flex;
|
|
40
40
|
align-items: center;
|
|
41
41
|
justify-content: space-between;
|
|
42
|
-
gap: var(--spacing-xxs);
|
|
42
|
+
gap: var(--lilara-spacing-xxs);
|
|
43
43
|
box-sizing: border-box;
|
|
44
44
|
user-select: none;
|
|
45
|
-
border-radius: var(--radius-s);
|
|
46
|
-
padding: var(--spacing-xs) var(--spacing-xs);
|
|
45
|
+
border-radius: var(--lilara-radius-s);
|
|
46
|
+
padding: var(--lilara-spacing-xs) var(--lilara-spacing-xs);
|
|
47
47
|
width: 100%;
|
|
48
48
|
}
|
|
49
49
|
|
|
@@ -67,7 +67,7 @@ export const debugEventStyles = css `
|
|
|
67
67
|
justify-content: center;
|
|
68
68
|
width: 14px;
|
|
69
69
|
height: 14px;
|
|
70
|
-
margin-right: var(--spacing-xs);
|
|
70
|
+
margin-right: var(--lilara-spacing-xs);
|
|
71
71
|
flex-shrink: 0;
|
|
72
72
|
}
|
|
73
73
|
|
|
@@ -83,16 +83,16 @@ export const debugEventStyles = css `
|
|
|
83
83
|
display: flex;
|
|
84
84
|
align-items: center;
|
|
85
85
|
|
|
86
|
-
font-weight: var(--font-weight-bold);
|
|
87
|
-
font-size: var(--font-size-xs);
|
|
88
|
-
color: var(--botonic-debug-event-text, var(--text-base));
|
|
86
|
+
font-weight: var(--lilara-font-weight-bold);
|
|
87
|
+
font-size: var(--lilara-font-size-xs);
|
|
88
|
+
color: var(--botonic-debug-event-text, var(--lilara-text-base));
|
|
89
89
|
line-height: 1.5;
|
|
90
90
|
white-space: nowrap;
|
|
91
|
-
gap: var(--spacing-xxs);
|
|
91
|
+
gap: var(--lilara-spacing-xxs);
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
.debug-title span {
|
|
95
|
-
font-weight: var(--font-weight-regular);
|
|
95
|
+
font-weight: var(--lilara-font-weight-regular);
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
.debug-content {
|
|
@@ -103,16 +103,16 @@ export const debugEventStyles = css `
|
|
|
103
103
|
min-width: 0;
|
|
104
104
|
overflow: hidden;
|
|
105
105
|
|
|
106
|
-
font-size: var(--font-size-xs);
|
|
106
|
+
font-size: var(--lilara-font-size-xs);
|
|
107
107
|
line-height: 1.5;
|
|
108
|
-
color: var(--botonic-debug-event-text, var(--text-base));
|
|
108
|
+
color: var(--botonic-debug-event-text, var(--lilara-text-base));
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
.debug-detail {
|
|
112
112
|
display: flex;
|
|
113
113
|
flex-direction: column;
|
|
114
|
-
gap: var(--spacing-xxs);
|
|
115
|
-
padding: 0 calc(var(--spacing-ml) + var(--spacing-xxs));
|
|
114
|
+
gap: var(--lilara-spacing-xxs);
|
|
115
|
+
padding: 0 calc(var(--lilara-spacing-ml) + var(--lilara-spacing-xxs));
|
|
116
116
|
line-height: 1.5;
|
|
117
117
|
width: 100%;
|
|
118
118
|
min-width: 0;
|
|
@@ -121,16 +121,16 @@ export const debugEventStyles = css `
|
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
.debug-label {
|
|
124
|
-
color: var(--botonic-debug-event-text, var(--text-base));
|
|
125
|
-
font-weight: var(--font-weight-regular);
|
|
126
|
-
font-size: var(--font-size-xs);
|
|
124
|
+
color: var(--botonic-debug-event-text, var(--lilara-text-base));
|
|
125
|
+
font-weight: var(--lilara-font-weight-regular);
|
|
126
|
+
font-size: var(--lilara-font-size-xs);
|
|
127
127
|
line-height: 1.5;
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
.debug-value {
|
|
131
|
-
font-weight: var(--font-weight-bold);
|
|
132
|
-
font-size: var(--font-size-xs);
|
|
133
|
-
color: var(--botonic-debug-event-text, var(--text-base));
|
|
131
|
+
font-weight: var(--lilara-font-weight-bold);
|
|
132
|
+
font-size: var(--lilara-font-size-xs);
|
|
133
|
+
color: var(--botonic-debug-event-text, var(--lilara-text-base));
|
|
134
134
|
line-height: 1.5;
|
|
135
135
|
width: 100%;
|
|
136
136
|
overflow-wrap: break-word;
|
|
@@ -145,24 +145,24 @@ export const debugEventStyles = css `
|
|
|
145
145
|
flex-shrink: 0;
|
|
146
146
|
display: inline-block;
|
|
147
147
|
vertical-align: middle;
|
|
148
|
-
margin-right: var(--spacing-xs);
|
|
148
|
+
margin-right: var(--lilara-spacing-xs);
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
.debug-item-with-icon {
|
|
152
152
|
display: flex;
|
|
153
153
|
align-items: center;
|
|
154
|
-
gap: var(--spacing-xs);
|
|
154
|
+
gap: var(--lilara-spacing-xs);
|
|
155
155
|
padding: 0;
|
|
156
|
-
font-weight: var(--font-weight-bold);
|
|
157
|
-
font-size: var(--font-size-xs);
|
|
158
|
-
color: var(--botonic-debug-event-text, var(--text-base));
|
|
156
|
+
font-weight: var(--lilara-font-weight-bold);
|
|
157
|
+
font-size: var(--lilara-font-size-xs);
|
|
158
|
+
color: var(--botonic-debug-event-text, var(--lilara-text-base));
|
|
159
159
|
line-height: 1.5;
|
|
160
160
|
min-width: 0;
|
|
161
161
|
width: 100%;
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
.debug-item-with-icon:not(:last-child) {
|
|
165
|
-
margin-bottom: var(--spacing-xxs);
|
|
165
|
+
margin-bottom: var(--lilara-spacing-xxs);
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
.debug-item-with-icon > svg {
|
|
@@ -175,32 +175,32 @@ export const debugEventStyles = css `
|
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
.debug-metadata {
|
|
178
|
-
margin-top: var(--spacing-xs);
|
|
179
|
-
padding-top: var(--spacing-s);
|
|
178
|
+
margin-top: var(--lilara-spacing-xs);
|
|
179
|
+
padding-top: var(--lilara-spacing-s);
|
|
180
180
|
border-top: 1px solid
|
|
181
181
|
var(
|
|
182
182
|
--botonic-debug-event-border,
|
|
183
|
-
var(--surface-foreground-border-color)
|
|
183
|
+
var(--lilara-surface-foreground-border-color)
|
|
184
184
|
);
|
|
185
|
-
color: var(--botonic-debug-event-text, var(--text-base));
|
|
186
|
-
font-size: var(--font-size-xs);
|
|
187
|
-
padding-left: calc(var(--spacing-ml) + var(--spacing-xxs));
|
|
185
|
+
color: var(--botonic-debug-event-text, var(--lilara-text-base));
|
|
186
|
+
font-size: var(--lilara-font-size-xs);
|
|
187
|
+
padding-left: calc(var(--lilara-spacing-ml) + var(--lilara-spacing-xxs));
|
|
188
188
|
}
|
|
189
189
|
|
|
190
190
|
.debug-metadata > div {
|
|
191
191
|
margin-top: 6px;
|
|
192
|
-
font-weight: var(--font-weight-regular);
|
|
192
|
+
font-weight: var(--lilara-font-weight-regular);
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
.debug-content-wrapper {
|
|
196
196
|
display: flex;
|
|
197
197
|
flex-direction: column;
|
|
198
|
-
gap: var(--spacing-sm);
|
|
198
|
+
gap: var(--lilara-spacing-sm);
|
|
199
199
|
position: relative;
|
|
200
200
|
width: 100%;
|
|
201
201
|
min-width: 0;
|
|
202
202
|
overflow: hidden;
|
|
203
|
-
margin-bottom: var(--spacing-xs);
|
|
203
|
+
margin-bottom: var(--lilara-spacing-xs);
|
|
204
204
|
}
|
|
205
205
|
|
|
206
206
|
.debug-content-wrapper::before {
|
|
@@ -210,7 +210,7 @@ export const debugEventStyles = css `
|
|
|
210
210
|
width: 1px;
|
|
211
211
|
background-color: var(
|
|
212
212
|
--botonic-debug-event-connector,
|
|
213
|
-
var(--surface-foreground-border-color)
|
|
213
|
+
var(--lilara-surface-foreground-border-color)
|
|
214
214
|
);
|
|
215
215
|
top: 0;
|
|
216
216
|
height: 100%;
|
|
@@ -219,21 +219,27 @@ export const debugEventStyles = css `
|
|
|
219
219
|
.debug-root.is-collapsible:hover .debug-content-wrapper::before {
|
|
220
220
|
background-color: var(
|
|
221
221
|
--botonic-debug-event-connector-hover,
|
|
222
|
-
var(--color-neutral-200)
|
|
222
|
+
var(--lilara-color-neutral-200)
|
|
223
223
|
);
|
|
224
224
|
}
|
|
225
225
|
|
|
226
226
|
.see-info-button {
|
|
227
227
|
border: 1px solid
|
|
228
|
-
var(
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
228
|
+
var(
|
|
229
|
+
--botonic-debug-event-button-border,
|
|
230
|
+
var(--lilara-color-neutral-200)
|
|
231
|
+
);
|
|
232
|
+
border-radius: var(--lilara-radius-s);
|
|
233
|
+
padding: var(--lilara-spacing-xs);
|
|
234
|
+
height: calc(var(--lilara-spacing-ml) + var(--lilara-spacing-xxs));
|
|
232
235
|
background-color: transparent;
|
|
233
|
-
color: var(
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
236
|
+
color: var(
|
|
237
|
+
--botonic-debug-event-button-text,
|
|
238
|
+
var(--lilara-color-neutral-800)
|
|
239
|
+
);
|
|
240
|
+
font-family: var(--lilara-font-family);
|
|
241
|
+
font-size: var(--lilara-font-size-xs);
|
|
242
|
+
font-weight: var(--lilara-font-weight-medium);
|
|
237
243
|
line-height: 1.5;
|
|
238
244
|
cursor: pointer;
|
|
239
245
|
display: flex;
|
|
@@ -245,19 +251,19 @@ export const debugEventStyles = css `
|
|
|
245
251
|
.see-info-button:hover {
|
|
246
252
|
background-color: var(
|
|
247
253
|
--botonic-debug-event-button-hover-bg,
|
|
248
|
-
var(--color-neutral-100)
|
|
254
|
+
var(--lilara-color-neutral-100)
|
|
249
255
|
);
|
|
250
256
|
}
|
|
251
257
|
|
|
252
258
|
.guardrail-item {
|
|
253
259
|
display: flex;
|
|
254
260
|
align-items: center;
|
|
255
|
-
gap: var(--spacing-xs);
|
|
256
|
-
padding-left: calc(var(--spacing-ml) + var(--spacing-xxs));
|
|
257
|
-
margin-bottom: var(--spacing-xs);
|
|
258
|
-
font-size: var(--font-size-xs);
|
|
261
|
+
gap: var(--lilara-spacing-xs);
|
|
262
|
+
padding-left: calc(var(--lilara-spacing-ml) + var(--lilara-spacing-xxs));
|
|
263
|
+
margin-bottom: var(--lilara-spacing-xs);
|
|
264
|
+
font-size: var(--lilara-font-size-xs);
|
|
259
265
|
line-height: 1.5;
|
|
260
|
-
color: var(--botonic-debug-event-text, var(--text-base));
|
|
266
|
+
color: var(--botonic-debug-event-text, var(--lilara-text-base));
|
|
261
267
|
}
|
|
262
268
|
|
|
263
269
|
.guardrail-item.is-last {
|
|
@@ -271,31 +277,31 @@ export const debugEventStyles = css `
|
|
|
271
277
|
}
|
|
272
278
|
|
|
273
279
|
.guardrail-label {
|
|
274
|
-
font-weight: var(--font-weight-bold);
|
|
275
|
-
font-size: var(--font-size-xs);
|
|
280
|
+
font-weight: var(--lilara-font-weight-bold);
|
|
281
|
+
font-size: var(--lilara-font-size-xs);
|
|
276
282
|
line-height: 1.5;
|
|
277
|
-
color: var(--botonic-debug-event-text, var(--text-base));
|
|
283
|
+
color: var(--botonic-debug-event-text, var(--lilara-text-base));
|
|
278
284
|
}
|
|
279
285
|
|
|
280
286
|
.guardrail-value {
|
|
281
|
-
font-weight: var(--font-weight-regular);
|
|
282
|
-
font-size: var(--font-size-xs);
|
|
287
|
+
font-weight: var(--lilara-font-weight-regular);
|
|
288
|
+
font-size: var(--lilara-font-size-xs);
|
|
283
289
|
line-height: 1.5;
|
|
284
|
-
color: var(--botonic-debug-event-text, var(--text-base));
|
|
290
|
+
color: var(--botonic-debug-event-text, var(--lilara-text-base));
|
|
285
291
|
}
|
|
286
292
|
|
|
287
293
|
.source-value {
|
|
288
|
-
font-weight: var(--font-weight-bold);
|
|
289
|
-
font-size: var(--font-size-xs);
|
|
294
|
+
font-weight: var(--lilara-font-weight-bold);
|
|
295
|
+
font-size: var(--lilara-font-size-xs);
|
|
290
296
|
line-height: 1.5;
|
|
291
|
-
color: var(--botonic-debug-event-text, var(--text-base));
|
|
297
|
+
color: var(--botonic-debug-event-text, var(--lilara-text-base));
|
|
292
298
|
}
|
|
293
299
|
|
|
294
300
|
.file-source-value {
|
|
295
|
-
font-weight: var(--font-weight-bold);
|
|
296
|
-
font-size: var(--font-size-xs);
|
|
301
|
+
font-weight: var(--lilara-font-weight-bold);
|
|
302
|
+
font-size: var(--lilara-font-size-xs);
|
|
297
303
|
line-height: 1.5;
|
|
298
|
-
color: var(--botonic-debug-event-text, var(--text-base));
|
|
304
|
+
color: var(--botonic-debug-event-text, var(--lilara-text-base));
|
|
299
305
|
display: block;
|
|
300
306
|
overflow: hidden;
|
|
301
307
|
text-overflow: ellipsis;
|
|
@@ -305,10 +311,10 @@ export const debugEventStyles = css `
|
|
|
305
311
|
}
|
|
306
312
|
|
|
307
313
|
.url-source-value {
|
|
308
|
-
font-weight: var(--font-weight-bold);
|
|
309
|
-
font-size: var(--font-size-xs);
|
|
314
|
+
font-weight: var(--lilara-font-weight-bold);
|
|
315
|
+
font-size: var(--lilara-font-size-xs);
|
|
310
316
|
line-height: 1.5;
|
|
311
|
-
color: var(--botonic-debug-event-text, var(--text-base));
|
|
317
|
+
color: var(--botonic-debug-event-text, var(--lilara-text-base));
|
|
312
318
|
text-decoration: none;
|
|
313
319
|
overflow: hidden;
|
|
314
320
|
text-overflow: ellipsis;
|
|
@@ -320,11 +326,11 @@ export const debugEventStyles = css `
|
|
|
320
326
|
|
|
321
327
|
.url-source-value:hover {
|
|
322
328
|
text-decoration: underline;
|
|
323
|
-
color: var(--botonic-debug-event-link-hover, var(--primary-500));
|
|
329
|
+
color: var(--botonic-debug-event-link-hover, var(--lilara-primary-500));
|
|
324
330
|
}
|
|
325
331
|
|
|
326
332
|
.url-source-value:visited {
|
|
327
|
-
color: var(--botonic-debug-event-text, var(--text-base));
|
|
333
|
+
color: var(--botonic-debug-event-text, var(--lilara-text-base));
|
|
328
334
|
}
|
|
329
335
|
}
|
|
330
336
|
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debug-event.css.js","sourceRoot":"","sources":["../../../../../../../libs/botonic/webchat-lit/src/lib/debug-event/debug-event.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAEzB,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"debug-event.css.js","sourceRoot":"","sources":["../../../../../../../libs/botonic/webchat-lit/src/lib/debug-event/debug-event.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAEzB,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8UlC,CAAA"}
|
|
@@ -6,6 +6,7 @@ export declare class BotonicDebugEvent extends LitElement {
|
|
|
6
6
|
noteContent?: string;
|
|
7
7
|
private _expanded;
|
|
8
8
|
private _hasBeenOpened;
|
|
9
|
+
private _requestedNoteId?;
|
|
9
10
|
static styles: import("lit").CSSResult[];
|
|
10
11
|
connectedCallback(): void;
|
|
11
12
|
updated(changed: Map<string, unknown>): void;
|
|
@@ -50,13 +50,17 @@ export class BotonicDebugEvent extends LitElement {
|
|
|
50
50
|
if (this.action !== EventAction.HandoffSuccess)
|
|
51
51
|
return;
|
|
52
52
|
const data = this.data;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
53
|
+
const noteId = data.handoff_note_id;
|
|
54
|
+
if (!noteId || this.noteContent !== undefined)
|
|
55
|
+
return;
|
|
56
|
+
if (this._requestedNoteId === noteId)
|
|
57
|
+
return;
|
|
58
|
+
this._requestedNoteId = noteId;
|
|
59
|
+
this.dispatchEvent(new CustomEvent('load-note', {
|
|
60
|
+
detail: { noteId },
|
|
61
|
+
bubbles: true,
|
|
62
|
+
composed: true,
|
|
63
|
+
}));
|
|
60
64
|
}
|
|
61
65
|
get _config() {
|
|
62
66
|
return EVENT_CONFIG[this.action];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debug-event.js","sourceRoot":"","sources":["../../../../../../../libs/botonic/webchat-lit/src/lib/debug-event/debug-event.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAC7C,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,KAAK,CAAA;AAC/C,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AAEtD,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAEnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAQpD,MAAM,OAAO,iBAAkB,S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;gBAEC,QAAQ,CAAC,EAAE,YAAY,EAAE,IAAI,EAAE,gBAAgB,EAAE,WAAW,EAAE,CAAC;iBAC9D,IAAI,CAAC,kBAAkB;;;;uCAID,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,EAAE;cACvC,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC;;YAEhC,WAAW;YACX,CAAC,CAAC,IAAI,CAAA;;oBAEE,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,aAAa,EAAE;;eAErD;YACH,CAAC,CAAC,OAAO;;UAEX,IAAI,CAAC,SAAS;YACd,CAAC,CAAC,IAAI,CAAA,8BAA8B,IAAI,CAAC,cAAc,EAAE,QAAQ;YACjE,CAAC,CAAC,OAAO;;KAEd,CAAA;IACH,CAAC;;AAxHe,wBAAM,GAAG,CAAC,WAAW,EAAE,gBAAgB,CAAC,AAAlC,CAAkC;AAR5B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;iDAA0B;AACzB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;+CAAoC;AACtB;IAAxC,QAAQ,CAAC,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC;;sDAAqB;AAE5C;IAAhB,KAAK,EAAE;;oDAA0B;AA+HpC,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,qBAAqB,CAAC,EAAE,CAAC;IAC/C,cAAc,CAAC,MAAM,CAAC,qBAAqB,EAAE,iBAAiB,CAAC,CAAA;AACjE,CAAC"}
|
|
@@ -13,9 +13,9 @@ export const resetStyles = css `
|
|
|
13
13
|
|
|
14
14
|
:host {
|
|
15
15
|
font-style: normal;
|
|
16
|
-
font-size: var(--font-size-s);
|
|
17
|
-
font-family: var(--font-family);
|
|
18
|
-
font-weight: var(--font-weight-regular);
|
|
16
|
+
font-size: var(--lilara-font-size-s);
|
|
17
|
+
font-family: var(--lilara-font-family);
|
|
18
|
+
font-weight: var(--lilara-font-weight-regular);
|
|
19
19
|
word-break: normal;
|
|
20
20
|
line-height: 150%;
|
|
21
21
|
-webkit-font-smoothing: antialiased;
|
|
@@ -23,7 +23,7 @@ export const resetStyles = css `
|
|
|
23
23
|
|
|
24
24
|
@media (prefers-color-scheme: dark) {
|
|
25
25
|
:host {
|
|
26
|
-
color: var(--color-neutral-900);
|
|
26
|
+
color: var(--lilara-color-neutral-900);
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
|