@webority/chat-core 0.170.1 → 0.171.1

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=5,t=20,n={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`,emphasis:`Always`,markInsetPx:null,sendInsetPx:null,rowHeightPx:null,markAlign:`Centre`},starters:{style:`Chips`,recentRows:0,recentRowsMax:5,heading:!1,gapPx:null,greetingHeading:`Show`,greetingStyle:`Welcome`},footer:{layout:`Stacked`,disclaimer:`Show`,order:null,noticeBreak:`None`},quickReplies:{style:`Plain`},replies:{ratingRow:`Hover`},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},r=e=>typeof e==`object`&&!!e&&!Array.isArray(e);function i(e){let t={...n},i=[];for(let[n,a]of Object.entries(e??{})){if(!(n in t)){i.push(n);continue}let e=t[n];if(r(e)&&r(a))for(let t of Object.keys(a))t in e||i.push(`${n}.${t}`)}return i}function a(e){let t=e??{};return{launcher:{...n.launcher,...t.launcher},panel:{...n.panel,...t.panel},phone:{...n.phone,...t.phone},input:{...n.input,...t.input},starters:{...n.starters,...t.starters},footer:{...n.footer,...t.footer},quickReplies:{...n.quickReplies,...t.quickReplies},replies:{...n.replies,...t.replies},avoid:{...n.avoid,...t.avoid},motion:t.motion??n.motion,avatar:t.avatar??n.avatar,avatarMotion:t.avatarMotion??n.avatarMotion,expressive:t.expressive??n.expressive}}export{t as CHAT_RECENT_ROWS_CEILING,e as CHAT_RECENT_ROWS_MAX,n as defaultChatLook,a as mergeLook,i as unknownLookNames};
1
+ var e=5,t=20,n={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`,emphasis:`Always`,markInsetPx:null,sendInsetPx:null,rowHeightPx:null,markAlign:`Centre`},starters:{style:`Chips`,recentRows:0,recentRowsMax:5,heading:!1,gapPx:null,greetingHeading:`Show`,greetingStyle:`Welcome`},footer:{layout:`Stacked`,disclaimer:`Show`,order:null,noticeBreak:`None`,notice:`Block`},quickReplies:{style:`Plain`},replies:{ratingRow:`Hover`},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},r=e=>typeof e==`object`&&!!e&&!Array.isArray(e);function i(e){let t={...n},i=[];for(let[n,a]of Object.entries(e??{})){if(!(n in t)){i.push(n);continue}let e=t[n];if(r(e)&&r(a))for(let t of Object.keys(a))t in e||i.push(`${n}.${t}`)}return i}function a(e){let t=e??{};return{launcher:{...n.launcher,...t.launcher},panel:{...n.panel,...t.panel},phone:{...n.phone,...t.phone},input:{...n.input,...t.input},starters:{...n.starters,...t.starters},footer:{...n.footer,...t.footer},quickReplies:{...n.quickReplies,...t.quickReplies},replies:{...n.replies,...t.replies},avoid:{...n.avoid,...t.avoid},motion:t.motion??n.motion,avatar:t.avatar??n.avatar,avatarMotion:t.avatarMotion??n.avatarMotion,expressive:t.expressive??n.expressive}}export{t as CHAT_RECENT_ROWS_CEILING,e as CHAT_RECENT_ROWS_MAX,n as defaultChatLook,a as mergeLook,i as unknownLookNames};
@@ -25,6 +25,8 @@ export type ChatFooterLayout = "Stacked" | "Inline";
25
25
  export type ChatFooterDisclaimer = "Show" | "Hide";
26
26
  /** BeforeLinks breaks the reCAPTCHA notice after "the Google", so its two links keep their own line; None lets the notice wrap freely. */
27
27
  export type ChatFooterNoticeBreak = "None" | "BeforeLinks";
28
+ /** Block keeps the reCAPTCHA notice on its own lines; Inline runs it on after the line before it; Small keeps its own lines at a smaller size. */
29
+ export type ChatFooterNotice = "Block" | "Inline" | "Small";
28
30
  export type ChatFooterPart = "disclaimer" | "privacy" | "assurance" | "captcha";
29
31
  /** What draws the ask box edge: the plain border, or the chat gradient. */
30
32
  export type ChatInputEdge = "None" | "Gradient";
@@ -130,6 +132,7 @@ export interface ChatLook {
130
132
  disclaimer: ChatFooterDisclaimer;
131
133
  order: ChatFooterPart[] | null;
132
134
  noticeBreak: ChatFooterNoticeBreak;
135
+ notice: ChatFooterNotice;
133
136
  };
134
137
  quickReplies: {
135
138
  style: ChatQuickReplyStyle;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webority/chat-core",
3
- "version": "0.170.1",
3
+ "version": "0.171.1",
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.192.0"
29
+ "@webority/markdown-core": "^0.193.0"
30
30
  },
31
31
  "devDependencies": {
32
- "@webority/markdown-core": "0.192.0",
32
+ "@webority/markdown-core": "0.193.0",
33
33
  "typescript": "^7.0.2",
34
34
  "vite": "^8.1.6",
35
35
  "vitest": "5.1.0"