@inploi/plugin-chatbot 14.13.3 → 14.15.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/README.md +31 -0
- package/cdn/index.js +7 -7
- package/cdn/style.css +1 -1
- package/dist/chatbot-body-4f5e817b.cjs +5 -0
- package/dist/chatbot-body-e11d7ba9.js +4444 -0
- package/dist/chatbot.context.test.d.ts +1 -0
- package/dist/chatbot.d.ts +8 -2
- package/dist/chatbot.state.d.ts +9 -3
- package/dist/components/chat-error.d.ts +3 -1
- package/dist/components/chatbot-body.d.ts +3 -2
- package/dist/components/chatbot.d.ts +3 -2
- package/dist/components/conversation.d.ts +3 -1
- package/dist/components/job-alerts-offer.d.ts +7 -0
- package/dist/components/job-alerts-offer.test.d.ts +1 -0
- package/dist/i18n.d.ts +48 -6
- package/dist/index-8afa7a59.js +3440 -0
- package/dist/index-f26ac3c8.cjs +5 -0
- package/dist/plugin-chatbot.cjs +1 -1
- package/dist/plugin-chatbot.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +4 -4
- package/dist/chatbot-body-0eb387f9.js +0 -4356
- package/dist/chatbot-body-dd27d81b.cjs +0 -5
- package/dist/index-89864783.js +0 -3389
- package/dist/index-93dabc80.cjs +0 -5
package/README.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# @inploi/plugin-chatbot
|
|
2
|
+
|
|
3
|
+
The legacy chatbot renders application flows with the shared application engine.
|
|
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
|
+
Register `chatbotPlugin({ theme: { hue: 260, mode: 'light' } })`, then pass the
|
|
7
|
+
result of `fetchFlowByJobId` or `fetchFlowById` to `open`.
|
|
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
|
+
|
|
15
|
+
Set optional `jobAlerts: true` on plugin initialisation to offer email alerts
|
|
16
|
+
beneath a semantic submission-closed notice when an email answer is available.
|
|
17
|
+
The default is off. `open` and the fetch helpers accept `jobAlerts` too; an
|
|
18
|
+
explicit per-application value overrides initialisation, including `false`.
|
|
19
|
+
Fetch-flow errors never show the offer.
|
|
20
|
+
|
|
21
|
+
Only Get job alerts saves a weekly search. The offer uses the canonical `email`
|
|
22
|
+
answer, falling back to an authored email-format text question, and optional
|
|
23
|
+
`first_name`/`last_name` answers. On acceptance, known jobs are looked up and their
|
|
24
|
+
identity verified before their available city, town and category filters are saved.
|
|
25
|
+
A failed lookup or save shows an error. Missing job metadata permits a partial
|
|
26
|
+
or company-wide search; No thanks sends nothing. One offer per application keeps
|
|
27
|
+
its in-memory choice and pending save across closing, reopening and Undo in the
|
|
28
|
+
same application session. A fresh application gets a fresh offer.
|
|
29
|
+
|
|
30
|
+
Copy is defined in the English dictionary in `src/i18n.ts` and can be overridden
|
|
31
|
+
through the existing `terms` option. This package has no locale dictionaries.
|