@webority/chat-core 0.167.0 → 0.168.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 +12 -2
- package/package.json +1 -1
package/dist/look.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e=5,t={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,launcherLabel:!1,entrance:`Fade`,offsetXPx:null,offsetYPx:null},input:{ring:!0,sendReveal:`OnText`,sendIcon:`arrow-up`,mark:`None`,edge:`None`,placeholder:`Plain`,busyEdge:`Off`,markInsetPx:null,sendInsetPx:null,rowHeightPx:null,markAlign:`Centre`},starters:{style:`Chips`,recentRows:0,heading:!1,gapPx:null},footer:{layout:`Stacked`,disclaimer:`Show`},avoid:{liftAboveBanner:!0,liftGapPx:20,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 n(e){let n=e??{};return{launcher:{...t.launcher,...n.launcher},panel:{...t.panel,...n.panel},phone:{...t.phone,...n.phone},input:{...t.input,...n.input},starters:{...t.starters,...n.starters},footer:{...t.footer,...n.footer},avoid:{...t.avoid,...n.avoid},motion:n.motion??t.motion,avatar:n.avatar??t.avatar,avatarMotion:n.avatarMotion??t.avatarMotion,expressive:n.expressive??t.expressive}}export{e as CHAT_RECENT_ROWS_MAX,t as defaultChatLook,n as mergeLook};
|
|
1
|
+
var e=5,t={launcher:{style:`Round`,entrance:`Rise`,idle:`None`,labelReveal:`Bubble`,compact:!1,mark:`Icon`,glass:`Light`},panel:{motion:`Spring`,widthPx:420,maxHeightPx:650,bottomGapPx:24,height:`Fixed`,placement:`Floating`,replyAvatars:`First`,greetingLoaderMs:0,emptyMinHeightPx:null},phone:{maxWidthPx:768,mode:`FullScreen`,sheetHeightDvh:85,sheetMaxHeightPx:640,hideLauncher:!1,launcherLabel:!1,entrance:`Fade`,offsetXPx:null,offsetYPx:null},input:{ring:!0,sendReveal:`OnText`,sendIcon:`arrow-up`,mark:`None`,edge:`None`,placeholder:`Plain`,busyEdge:`Off`,markInsetPx:null,sendInsetPx:null,rowHeightPx:null,markAlign:`Centre`},starters:{style:`Chips`,recentRows:0,heading:!1,gapPx:null},footer:{layout:`Stacked`,disclaimer:`Show`},quickReplies:{style:`Plain`},avoid:{liftAboveBanner:!0,liftGapPx:20,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 n(e){let n=e??{};return{launcher:{...t.launcher,...n.launcher},panel:{...t.panel,...n.panel},phone:{...t.phone,...n.phone},input:{...t.input,...n.input},starters:{...t.starters,...n.starters},footer:{...t.footer,...n.footer},quickReplies:{...t.quickReplies,...n.quickReplies},avoid:{...t.avoid,...n.avoid},motion:n.motion??t.motion,avatar:n.avatar??t.avatar,avatarMotion:n.avatarMotion??t.avatarMotion,expressive:n.expressive??t.expressive}}export{e as CHAT_RECENT_ROWS_MAX,t as defaultChatLook,n as mergeLook};
|
package/dist/types/look.d.ts
CHANGED
|
@@ -27,8 +27,12 @@ export type ChatFooterDisclaimer = "Show" | "Hide";
|
|
|
27
27
|
export type ChatInputEdge = "None" | "Gradient";
|
|
28
28
|
/** How the ask box placeholder is drawn: plain muted text, or filled with the chat gradient. */
|
|
29
29
|
export type ChatInputPlaceholder = "Plain" | "Gradient";
|
|
30
|
-
/** Whether the ask box edge
|
|
31
|
-
export type ChatInputBusyEdge = "Off" | "Sweep";
|
|
30
|
+
/** Whether the ask box edge moves while a reply is thinking or streaming: Sweep slides the chat gradient along the edge; Conic turns a conic brand-colour border around it. */
|
|
31
|
+
export type ChatInputBusyEdge = "Off" | "Sweep" | "Conic";
|
|
32
|
+
/** How the quick-reply chips are drawn: Plain, or Outlined with a resting border and an accent tint on hover. */
|
|
33
|
+
export type ChatQuickReplyStyle = "Plain" | "Outlined";
|
|
34
|
+
/** The launcher glass: Light follows the page and dark mode; Dark draws darker glass with a white label for a launcher over a dark page band. */
|
|
35
|
+
export type ChatLauncherGlass = "Light" | "Dark";
|
|
32
36
|
/** How a phone launcher arrives: Fade fades in where it sits; Match plays the launcher's own entrance. */
|
|
33
37
|
export type ChatPhoneEntrance = "Fade" | "Match";
|
|
34
38
|
/** Where the ask box mark sits against the send button: Centre of the row, or Bottom, on the send button's bottom line. */
|
|
@@ -45,6 +49,7 @@ export interface ChatLook {
|
|
|
45
49
|
labelReveal: ChatLabelReveal;
|
|
46
50
|
compact: boolean;
|
|
47
51
|
mark: ChatLauncherMark;
|
|
52
|
+
glass: ChatLauncherGlass;
|
|
48
53
|
};
|
|
49
54
|
panel: {
|
|
50
55
|
motion: ChatPanelMotion;
|
|
@@ -57,6 +62,8 @@ export interface ChatLook {
|
|
|
57
62
|
replyAvatars: ChatReplyAvatars;
|
|
58
63
|
/** How long the typing pill shows before the greeting on first open; 0 shows the greeting at once. */
|
|
59
64
|
greetingLoaderMs: number;
|
|
65
|
+
/** The least height in pixels the empty welcome screen keeps on desktop; null keeps the built-in height. The phone ignores it. */
|
|
66
|
+
emptyMinHeightPx: number | null;
|
|
60
67
|
};
|
|
61
68
|
/**
|
|
62
69
|
* hideLauncher hides the launcher while the panel is open on a phone. launcherLabel shows the launcher label on a phone instead of clipping it.
|
|
@@ -104,6 +111,9 @@ export interface ChatLook {
|
|
|
104
111
|
layout: ChatFooterLayout;
|
|
105
112
|
disclaimer: ChatFooterDisclaimer;
|
|
106
113
|
};
|
|
114
|
+
quickReplies: {
|
|
115
|
+
style: ChatQuickReplyStyle;
|
|
116
|
+
};
|
|
107
117
|
avoid: {
|
|
108
118
|
/** Whether the launcher lifts over an open banner; the profile's own setting also has to allow it. */
|
|
109
119
|
liftAboveBanner: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webority/chat-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.168.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",
|