@kodaris/krubble-app-components 1.0.158 → 1.0.159
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/krubble-shell-chatbot.umd.js +28113 -0
- package/dist/krubble-shell-chatbot.umd.js.map +1 -0
- package/dist/krubble-shell-chatbot.umd.min.js +10867 -0
- package/dist/krubble-shell-chatbot.umd.min.js.map +1 -0
- package/dist/shell-chatbot.d.ts +23 -0
- package/dist/shell-chatbot.d.ts.map +1 -0
- package/dist/shell-chatbot.js +22 -0
- package/dist/shell-chatbot.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Entry for the self-contained "shell chatbot" UMD bundle (dist/krubble-shell-chatbot.umd*.js).
|
|
3
|
+
*
|
|
4
|
+
* The Operations shell (gms-git's operationsAppPortalWrapperIndex.ejs) renders the floating AI
|
|
5
|
+
* assistant around every operations app. Each app ships its own copy of krubble, and a custom
|
|
6
|
+
* element tag can only be registered once per page, so if the shell and the app both register
|
|
7
|
+
* `kr-chatbot` whichever script runs first owns the tag — and the shell's assistant ends up pinned
|
|
8
|
+
* to whatever krubble version the app happened to be built with.
|
|
9
|
+
*
|
|
10
|
+
* This bundle sidesteps that entirely. It is built with no externals (lit, krubble-components and
|
|
11
|
+
* krubble-http are all inlined) and the rollup build rewrites EVERY custom element tag it registers
|
|
12
|
+
* from `kr-*` to `krs-*` (see renameTags in rollup.config.js). The shell renders `<krs-chatbot>`, the
|
|
13
|
+
* assistant's internals render `krs-button`, `krs-dialog`, ... and nothing in here shares a tag,
|
|
14
|
+
* a class or a lit instance with the app on the page. Publishing krubble updates the assistant in
|
|
15
|
+
* every app with no app rebuild, and an app's krubble version never leaks into the assistant.
|
|
16
|
+
*
|
|
17
|
+
* Only the chatbot is pulled in on purpose: the shell has no use for the scaffold, router or the
|
|
18
|
+
* other app components, and keeping them out keeps the bundle small.
|
|
19
|
+
*/
|
|
20
|
+
import './chatbot.js';
|
|
21
|
+
export { KRChatbot } from './chatbot.js';
|
|
22
|
+
export type { KRChatbotMessage, KRChatbotSend, KRChatbotConversationFile, KRChatbotSendFile, KRChatbotPrompt } from './chatbot.js';
|
|
23
|
+
//# sourceMappingURL=shell-chatbot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shell-chatbot.d.ts","sourceRoot":"","sources":["../src/shell-chatbot.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,YAAY,EAAE,gBAAgB,EAAE,aAAa,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Entry for the self-contained "shell chatbot" UMD bundle (dist/krubble-shell-chatbot.umd*.js).
|
|
3
|
+
*
|
|
4
|
+
* The Operations shell (gms-git's operationsAppPortalWrapperIndex.ejs) renders the floating AI
|
|
5
|
+
* assistant around every operations app. Each app ships its own copy of krubble, and a custom
|
|
6
|
+
* element tag can only be registered once per page, so if the shell and the app both register
|
|
7
|
+
* `kr-chatbot` whichever script runs first owns the tag — and the shell's assistant ends up pinned
|
|
8
|
+
* to whatever krubble version the app happened to be built with.
|
|
9
|
+
*
|
|
10
|
+
* This bundle sidesteps that entirely. It is built with no externals (lit, krubble-components and
|
|
11
|
+
* krubble-http are all inlined) and the rollup build rewrites EVERY custom element tag it registers
|
|
12
|
+
* from `kr-*` to `krs-*` (see renameTags in rollup.config.js). The shell renders `<krs-chatbot>`, the
|
|
13
|
+
* assistant's internals render `krs-button`, `krs-dialog`, ... and nothing in here shares a tag,
|
|
14
|
+
* a class or a lit instance with the app on the page. Publishing krubble updates the assistant in
|
|
15
|
+
* every app with no app rebuild, and an app's krubble version never leaks into the assistant.
|
|
16
|
+
*
|
|
17
|
+
* Only the chatbot is pulled in on purpose: the shell has no use for the scaffold, router or the
|
|
18
|
+
* other app components, and keeping them out keeps the bundle small.
|
|
19
|
+
*/
|
|
20
|
+
import './chatbot.js';
|
|
21
|
+
export { KRChatbot } from './chatbot.js';
|
|
22
|
+
//# sourceMappingURL=shell-chatbot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shell-chatbot.js","sourceRoot":"","sources":["../src/shell-chatbot.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC"}
|