@webority/chat-core 0.160.0 → 0.161.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/dist/look.js +1 -1
- package/dist/types/look.d.ts +8 -2
- package/package.json +3 -3
package/dist/look.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e={launcher:{style:`Round`,entrance:`Rise`,idle:`None`,labelReveal:`Bubble`,compact:!1,mark:`Icon`},panel:{motion:`Spring`,widthPx:420,maxHeightPx:650,bottomGapPx:24,height:`Fixed`,placement:`Floating`,replyAvatars
|
|
1
|
+
var e={launcher:{style:`Round`,entrance:`Rise`,idle:`None`,labelReveal:`Bubble`,compact:!1,mark:`Icon`},panel:{motion:`Spring`,widthPx:420,maxHeightPx:650,bottomGapPx:24,height:`Fixed`,placement:`Floating`,replyAvatars:`First`,greetingLoaderMs:0},phone:{maxWidthPx:768,mode:`FullScreen`,sheetHeightDvh:85,sheetMaxHeightPx:640,hideLauncher:!1},input:{ring:!0,sendReveal:`OnText`,sendIcon:`arrow-up`,mark:`None`},avoid:{liftSelectors:[`footer`,`.form-actions-sticky`,`.wui-tabbar`],menuSelectors:[`.offcanvas.show`,`wui-drawer[open]`,`[data-menu-open]`],darkSelectors:[`[data-theme='dark']`,`[data-bs-theme='dark']`],autoOpenOptOutSelector:`[data-chat-no-autoopen]`,autoOpenBusySelectors:[`[data-chat-busy]`]},motion:`On`,avatar:null,avatarMotion:`Still`,expressive:!1};function t(t){let n=t??{};return{launcher:{...e.launcher,...n.launcher},panel:{...e.panel,...n.panel},phone:{...e.phone,...n.phone},input:{...e.input,...n.input},avoid:{...e.avoid,...n.avoid},motion:n.motion??e.motion,avatar:n.avatar??e.avatar,avatarMotion:n.avatarMotion??e.avatarMotion,expressive:n.expressive??e.expressive}}export{e as defaultChatLook,t as mergeLook};
|
package/dist/types/look.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/** Expanding rests as the launcher mark alone and grows into a pill with the label on hover, focus or the peek. */
|
|
2
|
+
export type ChatLauncherStyle = "Round" | "Pill" | "Expanding";
|
|
2
3
|
export type ChatEntrance = "SlideUp" | "BounceIn" | "FadeInPulse" | "SpinScale" | "WiggleIn" | "ElasticIn" | "Rise" | "None";
|
|
3
4
|
export type ChatIdleMotion = "FloatAndPulse" | "Ring" | "None";
|
|
4
5
|
export type ChatLabelReveal = "Bubble" | "Expand";
|
|
@@ -14,6 +15,10 @@ export type ChatPanelHeight = "Fixed" | "Content";
|
|
|
14
15
|
export type ChatPanelPlacement = "Floating" | "Side";
|
|
15
16
|
/** What the ask box shows at its start: nothing, or the assistant's avatar. */
|
|
16
17
|
export type ChatInputMark = "None" | "Avatar";
|
|
18
|
+
/** Which assistant replies carry the avatar: none, the first of each run of replies, or every reply. */
|
|
19
|
+
export type ChatReplyAvatars = "None" | "First" | "Every";
|
|
20
|
+
/** Drift slowly turns the gradient of the header, greeting and reply orbs; it applies only while no avatar picture is set. */
|
|
21
|
+
export type ChatAvatarMotion = "Still" | "Drift";
|
|
17
22
|
export interface ChatLook {
|
|
18
23
|
launcher: {
|
|
19
24
|
style: ChatLauncherStyle;
|
|
@@ -31,7 +36,7 @@ export interface ChatLook {
|
|
|
31
36
|
bottomGapPx: number;
|
|
32
37
|
height: ChatPanelHeight;
|
|
33
38
|
placement: ChatPanelPlacement;
|
|
34
|
-
replyAvatars:
|
|
39
|
+
replyAvatars: ChatReplyAvatars;
|
|
35
40
|
/** How long the typing pill shows before the greeting on first open; 0 shows the greeting at once. */
|
|
36
41
|
greetingLoaderMs: number;
|
|
37
42
|
};
|
|
@@ -60,6 +65,7 @@ export interface ChatLook {
|
|
|
60
65
|
motion: ChatMotion;
|
|
61
66
|
/** The assistant's avatar picture (an image URL) for the header, the replies and an Avatar launcher mark; null draws the gradient. */
|
|
62
67
|
avatar: string | null;
|
|
68
|
+
avatarMotion: ChatAvatarMotion;
|
|
63
69
|
/** Expressive motion: the ring that turns around the thinking mark through a reply and the launcher shrinking as the panel opens. Off by default; reduced motion switches it off. */
|
|
64
70
|
expressive: boolean;
|
|
65
71
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webority/chat-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.161.0",
|
|
4
4
|
"description": "The headless Webority Chat engine: the client over the chat routes, the session state machine over message parts, the stream reader, profile resolution with screen narrowing, the default English labels and a fixture client for sandboxes and tests. No DOM and no UI.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"type": "module",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
},
|
|
27
27
|
"sideEffects": false,
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@webority/markdown-core": "^0.
|
|
29
|
+
"@webority/markdown-core": "^0.191.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@webority/markdown-core": "0.
|
|
32
|
+
"@webority/markdown-core": "0.191.0",
|
|
33
33
|
"typescript": "^7.0.2",
|
|
34
34
|
"vite": "^8.1.6",
|
|
35
35
|
"vitest": "5.1.0"
|