@newheap/platform-ai-chat 0.20.0 → 0.21.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 +12 -2
- package/admin/i18n/en.json +1738 -0
- package/admin/i18n/nl.json +1738 -0
- package/admin/index.d.ts +47 -6
- package/fesm2022/newheap-platform-ai-chat-admin.mjs +3620 -23
- package/fesm2022/newheap-platform-ai-chat-admin.mjs.map +1 -1
- package/fesm2022/newheap-platform-ai-chat-testing.mjs +339 -19
- package/fesm2022/newheap-platform-ai-chat-testing.mjs.map +1 -1
- package/fesm2022/newheap-platform-ai-chat.mjs +145 -3488
- package/fesm2022/newheap-platform-ai-chat.mjs.map +1 -1
- package/i18n/en.json +4 -1726
- package/i18n/nl.json +4 -1726
- package/index.d.ts +97 -14
- package/package.json +4 -1
- package/testing/index.d.ts +16 -0
package/README.md
CHANGED
|
@@ -241,7 +241,9 @@ invitation link. Participants can view members and leave. Custom hosts using
|
|
|
241
241
|
## Administration
|
|
242
242
|
|
|
243
243
|
The administration page is a separate entry point, so it stays out of the initial
|
|
244
|
-
bundle
|
|
244
|
+
bundle, and its `nh-assistant.admin.` texts come with it: every component of
|
|
245
|
+
`@newheap/platform-ai-chat/admin` merges them when it is created, unless the assistant
|
|
246
|
+
uses `translations: 'host'`. Route to it lazily behind the host's admin permission and pass the route as
|
|
245
247
|
`adminRoute`:
|
|
246
248
|
|
|
247
249
|
```typescript
|
|
@@ -536,7 +538,15 @@ Error events are shown through their `messageKey`, then `nh-assistant.errors.<co
|
|
|
536
538
|
then a generic text. Tool result codes use `nh-assistant.result-codes.<code>` and
|
|
537
539
|
fall back to the code. With `translations: 'host'`, copy the bundles from
|
|
538
540
|
`NH_ASSISTANT_TRANSLATIONS` or from `@newheap/platform-ai-chat/i18n/en.json` and
|
|
539
|
-
`nl.json
|
|
541
|
+
`nl.json`, and the administration's `nh-assistant.admin.` texts from
|
|
542
|
+
`NH_ASSISTANT_ADMIN_TRANSLATIONS` (`@newheap/platform-ai-chat/admin`) or from
|
|
543
|
+
`@newheap/platform-ai-chat/admin/i18n/en.json` and `nl.json`.
|
|
544
|
+
|
|
545
|
+
The root entry point bundles the texts of the panel and its other components, which load
|
|
546
|
+
with the application. The administration ships its texts in its own entry point, so they
|
|
547
|
+
load with its lazy route; a host page that shows
|
|
548
|
+
`nh-assistant.admin.` keys without an administration component starts
|
|
549
|
+
`NhAssistantAdminTranslationMerger` itself.
|
|
540
550
|
|
|
541
551
|
## Mock API
|
|
542
552
|
|