@webority/chat-core 0.135.0 → 0.136.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/contract.d.ts +1 -1
- package/dist/types/look.d.ts +4 -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:80,height:`Fixed`,replyAvatars:!0},phone:{maxWidthPx:768,mode:`FullScreen`,sheetHeightDvh:85,sheetMaxHeightPx:640},input:{ring:!0,sendReveal:`OnText`,sendIcon:`arrow-up`},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};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}}export{e as defaultChatLook,t as mergeLook};
|
|
1
|
+
var e={launcher:{style:`Round`,entrance:`Rise`,idle:`None`,labelReveal:`Bubble`,compact:!1,mark:`Icon`},panel:{motion:`Spring`,widthPx:420,maxHeightPx:650,bottomGapPx:80,height:`Fixed`,replyAvatars:!0,greetingLoaderMs:0},phone:{maxWidthPx:768,mode:`FullScreen`,sheetHeightDvh:85,sheetMaxHeightPx:640},input:{ring:!0,sendReveal:`OnText`,sendIcon:`arrow-up`},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};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}}export{e as defaultChatLook,t as mergeLook};
|
package/dist/types/contract.d.ts
CHANGED
package/dist/types/look.d.ts
CHANGED
|
@@ -6,8 +6,8 @@ export type ChatPanelMotion = "Spring" | "Gentle" | "None";
|
|
|
6
6
|
export type ChatPhoneMode = "FullScreen" | "Sheet";
|
|
7
7
|
export type ChatSendReveal = "OnText" | "Always";
|
|
8
8
|
export type ChatMotion = "On" | "Reduced";
|
|
9
|
-
/** What the launcher button shows: the chat icon,
|
|
10
|
-
export type ChatLauncherMark = "Icon" | "Avatar";
|
|
9
|
+
/** What the launcher button shows: the chat icon, the assistant's avatar picture, or a living gradient orb. */
|
|
10
|
+
export type ChatLauncherMark = "Icon" | "Avatar" | "Orb";
|
|
11
11
|
/** Fixed keeps the panel at its height; Content grows it with the conversation up to that height. */
|
|
12
12
|
export type ChatPanelHeight = "Fixed" | "Content";
|
|
13
13
|
export interface ChatLook {
|
|
@@ -26,6 +26,8 @@ export interface ChatLook {
|
|
|
26
26
|
bottomGapPx: number;
|
|
27
27
|
height: ChatPanelHeight;
|
|
28
28
|
replyAvatars: boolean;
|
|
29
|
+
/** How long the typing pill shows before the greeting on first open; 0 shows the greeting at once. */
|
|
30
|
+
greetingLoaderMs: number;
|
|
29
31
|
};
|
|
30
32
|
phone: {
|
|
31
33
|
maxWidthPx: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webority/chat-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.136.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.133.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@webority/markdown-core": "0.
|
|
32
|
+
"@webority/markdown-core": "0.133.0",
|
|
33
33
|
"typescript": "^7.0.2",
|
|
34
34
|
"vite": "^8.0.12",
|
|
35
35
|
"vitest": "5.0.1"
|