@webority/chat-core 0.134.0 → 0.135.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:`SlideUp`,idle:`None`,labelReveal:`Bubble`,compact:!1},panel:{motion:`Spring`,widthPx:420,maxHeightPx:650,bottomGapPx:80},phone:{maxWidthPx:768,mode:`FullScreen`,sheetHeightDvh:85,sheetMaxHeightPx:640},input:{ring:!0,sendReveal:`OnText`},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`};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}}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},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};
@@ -2,10 +2,14 @@ export type ChatLauncherStyle = "Round" | "Pill";
2
2
  export type ChatEntrance = "SlideUp" | "BounceIn" | "FadeInPulse" | "SpinScale" | "WiggleIn" | "ElasticIn" | "Rise" | "None";
3
3
  export type ChatIdleMotion = "FloatAndPulse" | "Ring" | "None";
4
4
  export type ChatLabelReveal = "Bubble" | "Expand";
5
- export type ChatPanelMotion = "Spring" | "None";
5
+ 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";
11
+ /** Fixed keeps the panel at its height; Content grows it with the conversation up to that height. */
12
+ export type ChatPanelHeight = "Fixed" | "Content";
9
13
  export interface ChatLook {
10
14
  launcher: {
11
15
  style: ChatLauncherStyle;
@@ -13,12 +17,15 @@ export interface ChatLook {
13
17
  idle: ChatIdleMotion;
14
18
  labelReveal: ChatLabelReveal;
15
19
  compact: boolean;
20
+ mark: ChatLauncherMark;
16
21
  };
17
22
  panel: {
18
23
  motion: ChatPanelMotion;
19
24
  widthPx: number;
20
25
  maxHeightPx: number;
21
26
  bottomGapPx: number;
27
+ height: ChatPanelHeight;
28
+ replyAvatars: boolean;
22
29
  };
23
30
  phone: {
24
31
  maxWidthPx: number;
@@ -26,9 +33,11 @@ export interface ChatLook {
26
33
  sheetHeightDvh: number;
27
34
  sheetMaxHeightPx: number;
28
35
  };
36
+ /** sendIcon is a shared icon name for the send button. */
29
37
  input: {
30
38
  ring: boolean;
31
39
  sendReveal: ChatSendReveal;
40
+ sendIcon: string;
32
41
  };
33
42
  avoid: {
34
43
  liftSelectors: string[];
@@ -38,6 +47,8 @@ export interface ChatLook {
38
47
  autoOpenBusySelectors: string[];
39
48
  };
40
49
  motion: ChatMotion;
50
+ /** The assistant's avatar picture (an image URL) for the header, the replies and an Avatar launcher mark; null draws the gradient. */
51
+ avatar: string | null;
41
52
  }
42
53
  export declare const defaultChatLook: ChatLook;
43
54
  /** A partial look, nested one level, as a surface accepts it. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webority/chat-core",
3
- "version": "0.134.0",
3
+ "version": "0.135.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.130.3"
29
+ "@webority/markdown-core": "^0.131.0"
30
30
  },
31
31
  "devDependencies": {
32
- "@webority/markdown-core": "0.130.3",
32
+ "@webority/markdown-core": "0.131.0",
33
33
  "typescript": "^7.0.2",
34
34
  "vite": "^8.0.12",
35
35
  "vitest": "5.0.1"