@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 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};
@@ -354,7 +354,7 @@ export interface ChatStartSettings {
354
354
  export interface ChatAssistantCopy {
355
355
  name: string;
356
356
  tagline: string | null;
357
- intro: string;
357
+ intro: string | null;
358
358
  }
359
359
  export interface ChatFooterCopy {
360
360
  privacyText: string | null;
@@ -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, or the assistant's avatar picture. */
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.135.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.131.0"
29
+ "@webority/markdown-core": "^0.133.0"
30
30
  },
31
31
  "devDependencies": {
32
- "@webority/markdown-core": "0.131.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"