@inploi/plugin-chatbot 14.14.0 → 14.15.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/README.md +8 -2
- package/cdn/index.js +6 -6
- package/dist/{chatbot-body-1dc31e4a.js → chatbot-body-505ef858.js} +361 -348
- package/dist/{chatbot-body-ae10ed7d.cjs → chatbot-body-d6277030.cjs} +2 -2
- package/dist/chatbot.context.test.d.ts +1 -0
- package/dist/chatbot.d.ts +3 -1
- package/dist/chatbot.state.d.ts +4 -2
- package/dist/components/chatbot.d.ts +4 -1
- package/dist/components/status-bar.d.ts +6 -1
- package/dist/components/status-bar.test.d.ts +1 -0
- package/dist/index-539edf9b.cjs +5 -0
- package/dist/{index-10c0dfc6.js → index-e61d7a73.js} +1638 -1614
- package/dist/plugin-chatbot.cjs +1 -1
- package/dist/plugin-chatbot.js +1 -1
- package/dist/style/tokens.d.ts +4 -4
- package/package.json +3 -3
- package/dist/index-1b25fb45.cjs +0 -5
package/README.md
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
# @inploi/plugin-chatbot
|
|
2
2
|
|
|
3
3
|
The legacy chatbot renders application flows with the shared application engine.
|
|
4
|
-
|
|
5
|
-
the
|
|
4
|
+
It needs `@inploi/sdk` 2.4.0 or later (peer dependency): the npm build imports
|
|
5
|
+
the shared alert contract from the SDK at runtime.
|
|
6
6
|
Register `chatbotPlugin({ theme: { hue: 260, mode: 'light' } })`, then pass the
|
|
7
7
|
result of `fetchFlowByJobId` or `fetchFlowById` to `open`.
|
|
8
8
|
|
|
9
|
+
`fetchFlowByJobId` retains optional API context in `jobContext`; flow nodes read it
|
|
10
|
+
merged beneath the host's `context`, recursively, including `job.custom_data`.
|
|
11
|
+
Explicit host values win, and undefined host values preserve served values.
|
|
12
|
+
Saved application keys continue to use only host context, including when a host
|
|
13
|
+
replaces `context` after fetching the flow.
|
|
14
|
+
|
|
9
15
|
Set optional `jobAlerts: true` on plugin initialisation to offer email alerts
|
|
10
16
|
beneath a semantic submission-closed notice when an email answer is available.
|
|
11
17
|
The default is off. `open` and the fetch helpers accept `jobAlerts` too; an
|