@botonic/webchat-react 2.34.1 → 2.35.0-alpha.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 +4 -0
- package/CLAUDE.md +8 -8
- package/index.d.ts +1 -0
- package/index.js +45 -44
- package/package.json +3 -3
- package/styles.css +173 -170
- package/trigger.js +14 -14
- package/{webchat-app-BfcNIC8B.js → webchat-app-BrBET32o.js} +95 -95
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## 2.34.2 (2026-07-13)
|
|
2
|
+
|
|
3
|
+
This was a version bump only for @botonic/webchat-react to align it with other projects, there were no code changes.
|
|
4
|
+
|
|
1
5
|
## 2.34.1 (2026-07-09)
|
|
2
6
|
|
|
3
7
|
This was a version bump only for @botonic/webchat-react to align it with other projects, there were no code changes.
|
package/CLAUDE.md
CHANGED
|
@@ -71,8 +71,8 @@ The cascade stack, from lowest to highest priority:
|
|
|
71
71
|
/* webchat-tokens.css */
|
|
72
72
|
@layer overrides {
|
|
73
73
|
:root {
|
|
74
|
-
--webchat-input-bg: var(--surface-foreground);
|
|
75
|
-
--webchat-send-button-color: var(--primary-500);
|
|
74
|
+
--webchat-input-bg: var(--lilara-surface-foreground);
|
|
75
|
+
--webchat-send-button-color: var(--lilara-primary-500);
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
```
|
|
@@ -86,13 +86,13 @@ Every value a consumer might want to customize must be a `--webchat-*` token def
|
|
|
86
86
|
Pattern: `--webchat-{component}-{property}` with fallback to a semantic foundations token:
|
|
87
87
|
|
|
88
88
|
```css
|
|
89
|
-
--webchat-input-bg: var(--surface-foreground);
|
|
90
|
-
--webchat-send-button-color: var(--primary-500);
|
|
91
|
-
--webchat-bubble-bot-bg: var(--primary-50);
|
|
89
|
+
--webchat-input-bg: var(--lilara-surface-foreground);
|
|
90
|
+
--webchat-send-button-color: var(--lilara-primary-500);
|
|
91
|
+
--webchat-bubble-bot-bg: var(--lilara-primary-50);
|
|
92
92
|
```
|
|
93
93
|
|
|
94
|
-
Prefer `--primary-*` / `--secondary-*` over raw `--color-purple-*` / `--color-aqua-*`.
|
|
95
|
-
Prefer `--color-focus` over `--secondary-600` directly.
|
|
94
|
+
Prefer `--lilara-primary-*` / `--lilara-secondary-*` over raw `--lilara-color-purple-*` / `--lilara-color-aqua-*`.
|
|
95
|
+
Prefer `--lilara-color-focus` over `--lilara-secondary-600` directly.
|
|
96
96
|
|
|
97
97
|
## Message Components
|
|
98
98
|
|
|
@@ -160,7 +160,7 @@ Prefer CSS keyframes over JS animation libraries. Define keyframes **outside any
|
|
|
160
160
|
|
|
161
161
|
@layer component-variants {
|
|
162
162
|
.messageEnter {
|
|
163
|
-
animation: webchat-fade-in var(--webchat-animation-duration, var(--transition-fast)) var(--webchat-animation-easing, ease-out) both;
|
|
163
|
+
animation: webchat-fade-in var(--webchat-animation-duration, var(--lilara-transition-duration-fast)) var(--webchat-animation-easing, ease-out) both;
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
|
package/index.d.ts
CHANGED
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
*/
|
|
39
39
|
export { useWebchatContext } from './lib/components/webchat-provider/webchat-context';
|
|
40
40
|
export { WebchatProvider } from './lib/components/webchat-provider/webchat-provider';
|
|
41
|
+
export { MediaPlaybackProvider } from './lib/contexts/media-playback-context';
|
|
41
42
|
export { WebchatApp, type WebchatAppProps } from './lib/components/webchat-app';
|
|
42
43
|
export { WebchatContainer } from './lib/components/webchat-container/webchat-container';
|
|
43
44
|
export { CloseButton, MenuTriggerButton, WebchatHeader, } from './lib/components/webchat-header/webchat-header';
|
package/index.js
CHANGED
|
@@ -1,61 +1,62 @@
|
|
|
1
|
-
import { B as s, C as t, D as o, a as r, b as n, c as
|
|
2
|
-
import { Badge as
|
|
1
|
+
import { B as s, C as t, D as o, a as r, b as n, c as i, d as u, e as c, f as l, g as d, M as g, h as M, i as b, j as h, k as p, l as W, O as v, m as C, n as y, o as S, p as O, q as T, P as D, Q as H, R as m, S as x, T as E, W as w, r as I, s as A, t as B, u as R, v as P, w as _, x as k, y as L, z as F, A as f, E as G, F as U, G as N, H as Q, I as Y, J as j, K as q, L as z, N as J } from "./webchat-app-BrBET32o.js";
|
|
2
|
+
import { Badge as V, Banner as X, Button as Z, Checkbox as $, Multiselect as ee, MultiselectWithSections as ae, Select as se, SelectWithSections as te, Slider as oe, Spinner as re, Switch as ne, Tag as ie, TextArea as ue, TextInput as ce, Tooltip as le } from "@lilara/ui-web-react";
|
|
3
3
|
export {
|
|
4
4
|
s as Backdrop,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
V as Badge,
|
|
6
|
+
X as Banner,
|
|
7
|
+
Z as Button,
|
|
8
|
+
$ as Checkbox,
|
|
9
9
|
t as CloseButton,
|
|
10
10
|
o as DEFAULT_WEBCHAT_HERO_HEADER_LAYOUT_CONFIG,
|
|
11
11
|
r as Dialog,
|
|
12
12
|
n as DialogContext,
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
i as DialogProvider,
|
|
14
|
+
u as DropdownMenuItemDownloadTranscript,
|
|
15
15
|
c as DropdownMenuItemResetConversation,
|
|
16
16
|
l as DropdownMenuItemResetSession,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
M as
|
|
17
|
+
d as DropdownMenuItemSounds,
|
|
18
|
+
g as MarkdownText,
|
|
19
|
+
M as MediaPlaybackProvider,
|
|
20
|
+
b as MenuTriggerButton,
|
|
20
21
|
h as Message,
|
|
21
22
|
p as MessageBubble,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
W as MessageMachineRenderer,
|
|
24
|
+
ee as Multiselect,
|
|
25
|
+
ae as MultiselectWithSections,
|
|
26
|
+
v as Overlay,
|
|
27
|
+
C as OverlayContent,
|
|
28
|
+
y as OverlayContext,
|
|
28
29
|
S as OverlayCoverFrame,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
30
|
+
O as OverlayHeader,
|
|
31
|
+
T as OverlayWebviewFrame,
|
|
32
|
+
D as PreviewEventMessage,
|
|
33
|
+
H as QuickReply,
|
|
34
|
+
m as RatingMessage,
|
|
35
|
+
x as SYSTEM_MESSAGE_ROLE,
|
|
36
|
+
se as Select,
|
|
37
|
+
te as SelectWithSections,
|
|
38
|
+
oe as Slider,
|
|
39
|
+
re as Spinner,
|
|
40
|
+
ne as Switch,
|
|
41
|
+
ie as Tag,
|
|
41
42
|
ue as TextArea,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
43
|
+
ce as TextInput,
|
|
44
|
+
le as Tooltip,
|
|
45
|
+
E as TypingIndicator,
|
|
46
|
+
w as WebchatApp,
|
|
47
|
+
I as WebchatContainer,
|
|
48
|
+
A as WebchatHeader,
|
|
49
|
+
B as WebchatInput,
|
|
50
|
+
R as WebchatMessages,
|
|
51
|
+
P as WebchatProvider,
|
|
51
52
|
_ as getMessageActorCount,
|
|
52
|
-
|
|
53
|
-
|
|
53
|
+
k as mergeWebchatHeroHeaderLayoutConfig,
|
|
54
|
+
L as useDialog,
|
|
54
55
|
F as useOverlay,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
f as useOverlayContext,
|
|
57
|
+
G as useOverlayHeader,
|
|
58
|
+
U as useUpdateCustomMessageProps,
|
|
59
|
+
N as useWebchatContainer,
|
|
59
60
|
Q as useWebchatContext,
|
|
60
61
|
Y as useWebchatHeader,
|
|
61
62
|
j as useWebchatHeroHeaderLayout,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@botonic/webchat-react",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.35.0-alpha.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"types": "./index.d.ts",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"react": "^18.0.0",
|
|
32
32
|
"react-dom": "^18.0.0",
|
|
33
|
-
"@botonic/webchat-core": "2.
|
|
34
|
-
"@botonic/shared": "2.
|
|
33
|
+
"@botonic/webchat-core": "2.35.0-alpha.0",
|
|
34
|
+
"@botonic/shared": "2.35.0-alpha.0",
|
|
35
35
|
"@lilara/ui-web-react": ">=0.11.0"
|
|
36
36
|
},
|
|
37
37
|
"publishConfig": {
|