andy-widget-react 3.0.0-next.8 → 3.0.0-next.9
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/README.md +3 -3
- package/dist/index.cjs +0 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +0 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/types/types/index.d.ts +2 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ The official React Widget for Andy. Its canonical source is
|
|
|
8
8
|
Pin an exact reviewed release. 3.0 prereleases are on the npm `next` tag:
|
|
9
9
|
|
|
10
10
|
```bash
|
|
11
|
-
bun add andy-widget-react@3.0.0-next.
|
|
11
|
+
bun add andy-widget-react@3.0.0-next.9
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
React and React DOM 18 or 19 are peer dependencies. `andy-widget-core` (the `<andy-chat>` element) comes with
|
|
@@ -47,8 +47,6 @@ and the host page is unaffected.
|
|
|
47
47
|
| `orientation` | `'left' \| 'right'` | The Launcher's side |
|
|
48
48
|
| `nudge` | `{ id: string, message: string, draft?: string, delayMs?: number } \| null` | A bubble above the closed Launcher, in Sales and Support Mode (see [Nudge](#nudge)) |
|
|
49
49
|
| `name` | `string` | Override the Agent's name |
|
|
50
|
-
| `headline` | `string` | Override the status line |
|
|
51
|
-
| `description` | `string` | Override the intro description |
|
|
52
50
|
| `welcomeMessage` | `string` | Override the Greeting |
|
|
53
51
|
| `predefinedQuestions` | `{ order: number, question: string }[]` | Override the Starters |
|
|
54
52
|
| `theme` | `'light' \| 'dark' \| 'auto'` | Override the theme |
|
|
@@ -61,6 +59,8 @@ and the host page is unaffected.
|
|
|
61
59
|
| `embedId` | `string` | Deprecated alias of `agentId`; logs one notice |
|
|
62
60
|
| `mode` | `'support'` | Deprecated: `support` without `agentId`; logs one notice |
|
|
63
61
|
| `tooltip` | `string` | Deprecated and ignored: the 3.x Launcher has no tooltip |
|
|
62
|
+
| `headline` | `string` | Deprecated and ignored: the panel shows only the name and the Greeting, with no status line |
|
|
63
|
+
| `description` | `string` | Deprecated and ignored: the panel shows no intro description |
|
|
64
64
|
|
|
65
65
|
The overrides replace the Agent's own values in the Widget's language, in Sales Mode only; an empty or invalid
|
|
66
66
|
value leaves the Agent's. The server configuration controls **Powered by Andy**; no prop suppresses it.
|
package/dist/index.cjs
CHANGED
|
@@ -10,8 +10,6 @@ var andyWidgetCore = require('andy-widget-core');
|
|
|
10
10
|
/** The 2.x props that override the Agent's copy and look, as the element's `overrides`. */
|
|
11
11
|
const OVERRIDES = [
|
|
12
12
|
'name',
|
|
13
|
-
'headline',
|
|
14
|
-
'description',
|
|
15
13
|
'welcomeMessage',
|
|
16
14
|
'predefinedQuestions',
|
|
17
15
|
'theme',
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../src/AndyChat.tsx"],"sourcesContent":["import React, { useEffect, useRef, useState } from 'react'\nimport { defineAndyChat, type AndyChatElement, type WidgetOverrides } from 'andy-widget-core'\nimport type { AndyChatProps, SalesAndyChatProps } from './types'\n\n/** The 2.x props that override the Agent's copy and look, as the element's `overrides`. */\nconst OVERRIDES = [\n\t'name',\n\t'
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../src/AndyChat.tsx"],"sourcesContent":["import React, { useEffect, useRef, useState } from 'react'\nimport { defineAndyChat, type AndyChatElement, type WidgetOverrides } from 'andy-widget-core'\nimport type { AndyChatProps, SalesAndyChatProps } from './types'\n\n/** The 2.x props that override the Agent's copy and look, as the element's `overrides`. */\nconst OVERRIDES = [\n\t'name',\n\t'welcomeMessage',\n\t'predefinedQuestions',\n\t'theme',\n\t'orientation',\n\t'brandColor',\n\t'useBrandColor',\n\t'bubbleStyle',\n\t'bubbleLabel',\n\t'logoUrl'\n] as const satisfies ReadonlyArray<keyof WidgetOverrides & keyof SalesAndyChatProps>\n\nconst overridesOf = (props: SalesAndyChatProps): WidgetOverrides =>\n\tObject.fromEntries(OVERRIDES.filter(key => props[key] !== undefined).map(key => [key, props[key]]))\n\n/** Each deprecated prop logs one notice per page. */\nconst noticed = new Set<string>()\nconst notice = (prop: string, message: string) => {\n\tif (noticed.has(prop)) return\n\tnoticed.add(prop)\n\tconsole.warn(`AndyChat: ${message}`)\n}\n\n/**\n * The Andy Widget for React: one `<andy-chat>` element (`andy-widget-core`), whose Widget Mode comes from\n * identity. It shows Sales (`agentId`) to a Visitor and Support to a Requester with a valid pass, and starts a\n * fresh panel on every identity change; this component only hands the element its props. The 2.x props keep\n * working: `embedId` and `mode=\"support\"` as deprecated aliases, the copy and look overrides over the Agent's\n * config, and `previewMode`. `nudge` shows a bubble above the closed Launcher in either mode.\n */\nconst AndyChat: React.FC<AndyChatProps> = props => {\n\t// `mode=\"support\"` never showed Sales, so it keeps the Widget Support-only.\n\tconst sales = props.mode === 'support' ? undefined : props\n\tconst agentId = sales?.agentId ?? sales?.embedId\n\tconst { support, orientation, initialOpen = false, nudge = null } = props\n\tconst lang = props.lang ?? support?.lang\n\tconst supportAlias = !sales\n\tconst embedAlias = sales?.embedId !== undefined\n\tuseEffect(() => {\n\t\tif (supportAlias) notice('mode', '`mode=\"support\"` is deprecated. Pass `support` without `agentId`.')\n\t\tif (embedAlias) notice('embedId', '`embedId` is deprecated. Use `agentId`.')\n\t}, [supportAlias, embedAlias])\n\n\tconst host = useRef<HTMLDivElement>(null)\n\tconst [element, setElement] = useState<AndyChatElement | null>(null)\n\tconst pass = useRef(support?.getRequesterPass)\n\tpass.current = support?.getRequesterPass\n\tuseEffect(() => {\n\t\tdefineAndyChat()\n\t\tconst created = document.createElement('andy-chat')\n\t\tcreated.open = initialOpen\n\t\thost.current?.append(created)\n\t\tsetElement(created)\n\t\t// Removing the element ends its identity: pass, chat, requests and drafts go with it.\n\t\treturn () => created.remove()\n\t}, [])\n\tuseEffect(() => {\n\t\tif (lang) element?.setAttribute('lang', lang)\n\t\telse element?.removeAttribute('lang')\n\t}, [element, lang])\n\tconst overrides = sales ? overridesOf(sales) : {}\n\tconst overridesKey = JSON.stringify(overrides)\n\tconst preview = sales?.previewMode === true\n\tuseEffect(() => {\n\t\tif (!element) return\n\t\telement.overrides = overrides\n\t\telement.preview = preview\n\t\telement.agentId = agentId\n\t\t// The element compares installation, contextKey and API, so a new callback each render is not a new identity.\n\t\telement.support = support\n\t\t\t? { ...support, ...(lang ? { lang } : {}), ...(orientation ? { position: orientation } : {}), getRequesterPass: () => pass.current?.() }\n\t\t\t: null\n\t}, [element, agentId, support, lang, orientation, overridesKey, preview])\n\t// By value, so a nudge written inline is not a new one each render.\n\tconst nudgeKey = JSON.stringify(nudge)\n\tuseEffect(() => {\n\t\tif (element) element.nudge = nudge\n\t}, [element, nudgeKey])\n\treturn <div ref={host} className='andy-widget-host' />\n}\n\nexport default AndyChat\n"],"names":["useEffect","useRef","useState","defineAndyChat","_jsx"],"mappings":";;;;;;;;;AAIA;AACA,MAAM,SAAS,GAAG;IACjB,MAAM;IACN,gBAAgB;IAChB,qBAAqB;IACrB,OAAO;IACP,aAAa;IACb,YAAY;IACZ,eAAe;IACf,aAAa;IACb,aAAa;IACb;CACmF;AAEpF,MAAM,WAAW,GAAG,CAAC,KAAyB,KAC7C,MAAM,CAAC,WAAW,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,IAAI,KAAK,CAAC,GAAG,CAAC,KAAK,SAAS,CAAC,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAEpG;AACA,MAAM,OAAO,GAAG,IAAI,GAAG,EAAU;AACjC,MAAM,MAAM,GAAG,CAAC,IAAY,EAAE,OAAe,KAAI;AAChD,IAAA,IAAI,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC;QAAE;AACvB,IAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC;AACjB,IAAA,OAAO,CAAC,IAAI,CAAC,aAAa,OAAO,CAAA,C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AAA,CAAC,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IACvB,OAAOI,cAAA,CAAA,KAAA,EAAA,EAAK,GAAG,EAAE,IAAI,EAAE,SAAS,EAAC,kBAAkB,EAAA,CAAG;AACvD;;;;;;;;;;;;;;"}
|
package/dist/index.esm.js
CHANGED
|
@@ -7,8 +7,6 @@ export { getApiBaseUrl, setApiBaseUrl } from 'andy-widget-core';
|
|
|
7
7
|
/** The 2.x props that override the Agent's copy and look, as the element's `overrides`. */
|
|
8
8
|
const OVERRIDES = [
|
|
9
9
|
'name',
|
|
10
|
-
'headline',
|
|
11
|
-
'description',
|
|
12
10
|
'welcomeMessage',
|
|
13
11
|
'predefinedQuestions',
|
|
14
12
|
'theme',
|
package/dist/index.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":["../src/AndyChat.tsx"],"sourcesContent":["import React, { useEffect, useRef, useState } from 'react'\nimport { defineAndyChat, type AndyChatElement, type WidgetOverrides } from 'andy-widget-core'\nimport type { AndyChatProps, SalesAndyChatProps } from './types'\n\n/** The 2.x props that override the Agent's copy and look, as the element's `overrides`. */\nconst OVERRIDES = [\n\t'name',\n\t'
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../src/AndyChat.tsx"],"sourcesContent":["import React, { useEffect, useRef, useState } from 'react'\nimport { defineAndyChat, type AndyChatElement, type WidgetOverrides } from 'andy-widget-core'\nimport type { AndyChatProps, SalesAndyChatProps } from './types'\n\n/** The 2.x props that override the Agent's copy and look, as the element's `overrides`. */\nconst OVERRIDES = [\n\t'name',\n\t'welcomeMessage',\n\t'predefinedQuestions',\n\t'theme',\n\t'orientation',\n\t'brandColor',\n\t'useBrandColor',\n\t'bubbleStyle',\n\t'bubbleLabel',\n\t'logoUrl'\n] as const satisfies ReadonlyArray<keyof WidgetOverrides & keyof SalesAndyChatProps>\n\nconst overridesOf = (props: SalesAndyChatProps): WidgetOverrides =>\n\tObject.fromEntries(OVERRIDES.filter(key => props[key] !== undefined).map(key => [key, props[key]]))\n\n/** Each deprecated prop logs one notice per page. */\nconst noticed = new Set<string>()\nconst notice = (prop: string, message: string) => {\n\tif (noticed.has(prop)) return\n\tnoticed.add(prop)\n\tconsole.warn(`AndyChat: ${message}`)\n}\n\n/**\n * The Andy Widget for React: one `<andy-chat>` element (`andy-widget-core`), whose Widget Mode comes from\n * identity. It shows Sales (`agentId`) to a Visitor and Support to a Requester with a valid pass, and starts a\n * fresh panel on every identity change; this component only hands the element its props. The 2.x props keep\n * working: `embedId` and `mode=\"support\"` as deprecated aliases, the copy and look overrides over the Agent's\n * config, and `previewMode`. `nudge` shows a bubble above the closed Launcher in either mode.\n */\nconst AndyChat: React.FC<AndyChatProps> = props => {\n\t// `mode=\"support\"` never showed Sales, so it keeps the Widget Support-only.\n\tconst sales = props.mode === 'support' ? undefined : props\n\tconst agentId = sales?.agentId ?? sales?.embedId\n\tconst { support, orientation, initialOpen = false, nudge = null } = props\n\tconst lang = props.lang ?? support?.lang\n\tconst supportAlias = !sales\n\tconst embedAlias = sales?.embedId !== undefined\n\tuseEffect(() => {\n\t\tif (supportAlias) notice('mode', '`mode=\"support\"` is deprecated. Pass `support` without `agentId`.')\n\t\tif (embedAlias) notice('embedId', '`embedId` is deprecated. Use `agentId`.')\n\t}, [supportAlias, embedAlias])\n\n\tconst host = useRef<HTMLDivElement>(null)\n\tconst [element, setElement] = useState<AndyChatElement | null>(null)\n\tconst pass = useRef(support?.getRequesterPass)\n\tpass.current = support?.getRequesterPass\n\tuseEffect(() => {\n\t\tdefineAndyChat()\n\t\tconst created = document.createElement('andy-chat')\n\t\tcreated.open = initialOpen\n\t\thost.current?.append(created)\n\t\tsetElement(created)\n\t\t// Removing the element ends its identity: pass, chat, requests and drafts go with it.\n\t\treturn () => created.remove()\n\t}, [])\n\tuseEffect(() => {\n\t\tif (lang) element?.setAttribute('lang', lang)\n\t\telse element?.removeAttribute('lang')\n\t}, [element, lang])\n\tconst overrides = sales ? overridesOf(sales) : {}\n\tconst overridesKey = JSON.stringify(overrides)\n\tconst preview = sales?.previewMode === true\n\tuseEffect(() => {\n\t\tif (!element) return\n\t\telement.overrides = overrides\n\t\telement.preview = preview\n\t\telement.agentId = agentId\n\t\t// The element compares installation, contextKey and API, so a new callback each render is not a new identity.\n\t\telement.support = support\n\t\t\t? { ...support, ...(lang ? { lang } : {}), ...(orientation ? { position: orientation } : {}), getRequesterPass: () => pass.current?.() }\n\t\t\t: null\n\t}, [element, agentId, support, lang, orientation, overridesKey, preview])\n\t// By value, so a nudge written inline is not a new one each render.\n\tconst nudgeKey = JSON.stringify(nudge)\n\tuseEffect(() => {\n\t\tif (element) element.nudge = nudge\n\t}, [element, nudgeKey])\n\treturn <div ref={host} className='andy-widget-host' />\n}\n\nexport default AndyChat\n"],"names":["_jsx"],"mappings":";;;;;;AAIA;AACA,MAAM,SAAS,GAAG;IACjB,MAAM;IACN,gBAAgB;IAChB,qBAAqB;IACrB,OAAO;IACP,aAAa;IACb,YAAY;IACZ,eAAe;IACf,aAAa;IACb,aAAa;IACb;CACmF;AAEpF,MAAM,WAAW,GAAG,CAAC,KAAyB,KAC7C,MAAM,CAAC,WAAW,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,IAAI,KAAK,CAAC,GAAG,CAAC,KAAK,SAAS,CAAC,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAEpG;AACA,MAAM,OAAO,GAAG,IAAI,GAAG,EAAU;AACjC,MAAM,MAAM,GAAG,CAAC,IAAY,EAAE,OAAe,KAAI;AAChD,IAAA,IAAI,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC;QAAE;AACvB,IAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC;AACjB,IAAA,OAAO,CAAC,IAAI,CAAC,aAAa,OAAO,CAAA,CAAE,CAAC;AACrC,CAAC;AAED;;;;;;AAMG;AACH,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vB,OAAOA,GAAA,CAAA,KAAA,EAAA,EAAK,GAAG,EAAE,IAAI,EAAE,SAAS,EAAC,kBAAkB,EAAA,CAAG;AACvD;;;;"}
|
|
@@ -25,8 +25,9 @@ export interface SalesAndyChatProps {
|
|
|
25
25
|
tooltip?: string;
|
|
26
26
|
/** The Agent's name, over the configured one. */
|
|
27
27
|
name?: string;
|
|
28
|
-
/**
|
|
28
|
+
/** @deprecated Ignored: the 3.x Widget shows only the name and the Greeting, with no status line. */
|
|
29
29
|
headline?: string;
|
|
30
|
+
/** @deprecated Ignored: the 3.x Widget shows only the name and the Greeting, with no intro description. */
|
|
30
31
|
description?: string;
|
|
31
32
|
/** The Greeting. */
|
|
32
33
|
welcomeMessage?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "andy-widget-react",
|
|
3
|
-
"version": "3.0.0-next.
|
|
3
|
+
"version": "3.0.0-next.9",
|
|
4
4
|
"description": "The Andy Widget for React: a typed wrapper over <andy-chat>",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -60,6 +60,6 @@
|
|
|
60
60
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"andy-widget-core": "3.0.0-next.
|
|
63
|
+
"andy-widget-core": "3.0.0-next.9"
|
|
64
64
|
}
|
|
65
65
|
}
|