@genexus/genexus-ide-ui 1.1.23 → 1.1.24
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/cjs/MERCURY_ASSETS-f14e91ff.js +9 -0
- package/dist/cjs/{MERCURY_ASSETS-15c5c1ac.js.map → MERCURY_ASSETS-f14e91ff.js.map} +1 -1
- package/dist/cjs/gx-ide-about.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-about.cjs.entry.js.map +1 -1
- package/dist/cjs/gx-ide-ai-message.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-bpm-app-declaration.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-bpm-import-files.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-bpm-import-files.cjs.entry.js.map +1 -1
- package/dist/cjs/gx-ide-bpm-import-gxpm.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-bpm-import-gxpm.cjs.entry.js.map +1 -1
- package/dist/cjs/gx-ide-bpm-objects-selector.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-bpm-objects-selector.cjs.entry.js.map +1 -1
- package/dist/cjs/gx-ide-bpm-task-documents.cjs.entry.js +5 -5
- package/dist/cjs/gx-ide-bpm-task-documents.cjs.entry.js.map +1 -1
- package/dist/cjs/gx-ide-chat-container_2.cjs.entry.js +2 -2
- package/dist/cjs/gx-ide-chat-container_2.cjs.entry.js.map +1 -1
- package/dist/cjs/gx-ide-create-kb-from-server.cjs.entry.js +2 -2
- package/dist/cjs/gx-ide-create-kb-from-server.cjs.entry.js.map +1 -1
- package/dist/cjs/gx-ide-current-user-info.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-dashboard-home.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-data-selector.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-data-type-selector.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-data-type-selector.cjs.entry.js.map +1 -1
- package/dist/cjs/gx-ide-design-import.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-entity-selector.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-file-item.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-file-uploader.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-json-import.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-json-import.cjs.entry.js.map +1 -1
- package/dist/cjs/gx-ide-kb-manager-export.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-kb-manager-import.cjs.entry.js +2 -2
- package/dist/cjs/gx-ide-kb-manager-import.cjs.entry.js.map +1 -1
- package/dist/cjs/gx-ide-manage-module-references-v2.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-manage-module-references.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-new-kb.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-object-selector.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-open-api-import.cjs.entry.js +2 -2
- package/dist/cjs/gx-ide-open-api-import.cjs.entry.js.map +1 -1
- package/dist/cjs/gx-ide-plugin-details.cjs.entry.js +2 -2
- package/dist/cjs/gx-ide-plugin-details.cjs.entry.js.map +1 -1
- package/dist/cjs/gx-ide-plugin-explorer.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-references.cjs.entry.js +2 -2
- package/dist/cjs/gx-ide-references.cjs.entry.js.map +1 -1
- package/dist/cjs/gx-ide-sc-chat-container.cjs.entry.js +144 -112
- package/dist/cjs/gx-ide-sc-chat-container.cjs.entry.js.map +1 -1
- package/dist/cjs/gx-ide-select-kb-items.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-share-kb.cjs.entry.js +2 -2
- package/dist/cjs/gx-ide-share-kb.cjs.entry.js.map +1 -1
- package/dist/cjs/gx-ide-splash.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-start-page.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-team-dev-bring-changes.cjs.entry.js +3 -3
- package/dist/cjs/gx-ide-team-dev-bring-changes.cjs.entry.js.map +1 -1
- package/dist/cjs/gx-ide-team-dev-commit.cjs.entry.js +2 -2
- package/dist/cjs/gx-ide-team-dev-history.cjs.entry.js +2 -2
- package/dist/cjs/gx-ide-test.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-test.cjs.entry.js.map +1 -1
- package/dist/cjs/gx-ide-welcome-page.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-ww-attributes.cjs.entry.js +1 -1
- package/dist/cjs/index.cjs.js +2 -5
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/render-item.lit-3f18e009.js +329 -0
- package/dist/cjs/render-item.lit-3f18e009.js.map +1 -0
- package/dist/cjs/{utilities-6118dc24.js → utilities-0b308992.js} +2 -2
- package/dist/cjs/{utilities-6118dc24.js.map → utilities-0b308992.js.map} +1 -1
- package/dist/collection/components/_test/test.js +1 -1
- package/dist/collection/components/_test/test.js.map +1 -1
- package/dist/collection/components/about/about.css +1 -0
- package/dist/collection/components/bpm/import-files/bpm-import-files.js +1 -1
- package/dist/collection/components/bpm/import-files/bpm-import-files.js.map +1 -1
- package/dist/collection/components/bpm/import-gxpm/bpm-import-gxpm.js +1 -1
- package/dist/collection/components/bpm/import-gxpm/bpm-import-gxpm.js.map +1 -1
- package/dist/collection/components/bpm/objects-selector/bpm-objects-selector.js +1 -1
- package/dist/collection/components/bpm/objects-selector/bpm-objects-selector.js.map +1 -1
- package/dist/collection/components/bpm/task-documents/task-documents.js +4 -4
- package/dist/collection/components/bpm/task-documents/task-documents.js.map +1 -1
- package/dist/collection/components/chat/chat-container/chat-container.css +0 -5
- package/dist/collection/components/chat/lit-custom-render/actions.lit.js +27 -0
- package/dist/collection/components/chat/lit-custom-render/actions.lit.js.map +1 -0
- package/dist/collection/components/chat/lit-custom-render/code-block.lit.js +46 -0
- package/dist/collection/components/chat/lit-custom-render/code-block.lit.js.map +1 -0
- package/dist/collection/components/chat/lit-custom-render/dots-animation.js +61 -0
- package/dist/collection/components/chat/lit-custom-render/dots-animation.js.map +1 -0
- package/dist/collection/components/chat/lit-custom-render/render-item.lit.js +122 -0
- package/dist/collection/components/chat/lit-custom-render/render-item.lit.js.map +1 -0
- package/dist/collection/components/chat/lit-custom-render/spinner-animation.js +58 -0
- package/dist/collection/components/chat/lit-custom-render/spinner-animation.js.map +1 -0
- package/dist/collection/components/chat/lit-custom-render/types.js +2 -0
- package/dist/collection/components/chat/lit-custom-render/types.js.map +1 -0
- package/dist/collection/components/chat/lit-custom-render/utils.js +50 -0
- package/dist/collection/components/chat/lit-custom-render/utils.js.map +1 -0
- package/dist/collection/components/data-type-selector/data-type-selector.js.map +1 -1
- package/dist/collection/components/json-import/json-import.js.map +1 -1
- package/dist/collection/components/kb-manager-import/kb-manager-import.js +2 -2
- package/dist/collection/components/kb-manager-import/kb-manager-import.js.map +1 -1
- package/dist/collection/components/open-api-import/open-api-import.js +1 -1
- package/dist/collection/components/open-api-import/open-api-import.js.map +1 -1
- package/dist/collection/components/plugin-details/plugin-details.js +1 -1
- package/dist/collection/components/plugin-details/plugin-details.js.map +1 -1
- package/dist/collection/components/references/references.js +1 -1
- package/dist/collection/components/references/references.js.map +1 -1
- package/dist/collection/components/team-dev/bring-changes/bring-changes.js +1 -1
- package/dist/collection/components/team-dev/bring-changes/bring-changes.js.map +1 -1
- package/dist/collection/components/team-dev/create-kb-from-server/create-kb-from-server.js +1 -1
- package/dist/collection/components/team-dev/create-kb-from-server/create-kb-from-server.js.map +1 -1
- package/dist/collection/components/team-dev/share-kb/share-kb.js +1 -1
- package/dist/collection/components/team-dev/share-kb/share-kb.js.map +1 -1
- package/dist/collection/components/team-dev/update/update.js +1 -1
- package/dist/collection/index.js +2 -1
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/showcase/chat-container/callbacks.js +44 -187
- package/dist/collection/showcase/chat-container/callbacks.js.map +1 -1
- package/dist/collection/showcase/chat-container/chat.showcase.js +7 -6
- package/dist/collection/showcase/chat-container/chat.showcase.js.map +1 -1
- package/dist/collection/showcase/chat-container/models.js +321 -0
- package/dist/collection/showcase/chat-container/models.js.map +1 -0
- package/dist/components/MERCURY_ASSETS.js +1 -1
- package/dist/components/MERCURY_ASSETS.js.map +1 -1
- package/dist/components/bpm-objects-selector.js +1 -1
- package/dist/components/bpm-objects-selector.js.map +1 -1
- package/dist/components/chat-container.js +1 -1
- package/dist/components/chat-container.js.map +1 -1
- package/dist/components/gx-ide-about.js +1 -1
- package/dist/components/gx-ide-about.js.map +1 -1
- package/dist/components/gx-ide-bpm-import-files.js +1 -1
- package/dist/components/gx-ide-bpm-import-files.js.map +1 -1
- package/dist/components/gx-ide-bpm-import-gxpm.js +1 -1
- package/dist/components/gx-ide-bpm-import-gxpm.js.map +1 -1
- package/dist/components/gx-ide-bpm-task-documents.js +4 -4
- package/dist/components/gx-ide-bpm-task-documents.js.map +1 -1
- package/dist/components/gx-ide-create-kb-from-server.js +1 -1
- package/dist/components/gx-ide-create-kb-from-server.js.map +1 -1
- package/dist/components/gx-ide-data-type-selector.js.map +1 -1
- package/dist/components/gx-ide-json-import.js.map +1 -1
- package/dist/components/gx-ide-kb-manager-import.js +1 -1
- package/dist/components/gx-ide-kb-manager-import.js.map +1 -1
- package/dist/components/gx-ide-open-api-import.js +1 -1
- package/dist/components/gx-ide-open-api-import.js.map +1 -1
- package/dist/components/gx-ide-plugin-details.js +1 -1
- package/dist/components/gx-ide-plugin-details.js.map +1 -1
- package/dist/components/gx-ide-references.js +1 -1
- package/dist/components/gx-ide-references.js.map +1 -1
- package/dist/components/gx-ide-sc-chat-container.js +145 -112
- package/dist/components/gx-ide-sc-chat-container.js.map +1 -1
- package/dist/components/gx-ide-share-kb.js +1 -1
- package/dist/components/gx-ide-share-kb.js.map +1 -1
- package/dist/components/gx-ide-team-dev-bring-changes.js +1 -1
- package/dist/components/gx-ide-team-dev-bring-changes.js.map +1 -1
- package/dist/components/gx-ide-test.js +1 -1
- package/dist/components/gx-ide-test.js.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/render-item.lit.js +327 -0
- package/dist/components/render-item.lit.js.map +1 -0
- package/dist/esm/MERCURY_ASSETS-ccf43ae3.js +7 -0
- package/dist/esm/{MERCURY_ASSETS-7c06e424.js.map → MERCURY_ASSETS-ccf43ae3.js.map} +1 -1
- package/dist/esm/gx-ide-about.entry.js +1 -1
- package/dist/esm/gx-ide-about.entry.js.map +1 -1
- package/dist/esm/gx-ide-ai-message.entry.js +1 -1
- package/dist/esm/gx-ide-bpm-app-declaration.entry.js +1 -1
- package/dist/esm/gx-ide-bpm-import-files.entry.js +1 -1
- package/dist/esm/gx-ide-bpm-import-files.entry.js.map +1 -1
- package/dist/esm/gx-ide-bpm-import-gxpm.entry.js +1 -1
- package/dist/esm/gx-ide-bpm-import-gxpm.entry.js.map +1 -1
- package/dist/esm/gx-ide-bpm-objects-selector.entry.js +1 -1
- package/dist/esm/gx-ide-bpm-objects-selector.entry.js.map +1 -1
- package/dist/esm/gx-ide-bpm-task-documents.entry.js +5 -5
- package/dist/esm/gx-ide-bpm-task-documents.entry.js.map +1 -1
- package/dist/esm/gx-ide-chat-container_2.entry.js +2 -2
- package/dist/esm/gx-ide-chat-container_2.entry.js.map +1 -1
- package/dist/esm/gx-ide-create-kb-from-server.entry.js +2 -2
- package/dist/esm/gx-ide-create-kb-from-server.entry.js.map +1 -1
- package/dist/esm/gx-ide-current-user-info.entry.js +1 -1
- package/dist/esm/gx-ide-dashboard-home.entry.js +1 -1
- package/dist/esm/gx-ide-data-selector.entry.js +1 -1
- package/dist/esm/gx-ide-data-type-selector.entry.js +1 -1
- package/dist/esm/gx-ide-data-type-selector.entry.js.map +1 -1
- package/dist/esm/gx-ide-design-import.entry.js +1 -1
- package/dist/esm/gx-ide-entity-selector.entry.js +1 -1
- package/dist/esm/gx-ide-file-item.entry.js +1 -1
- package/dist/esm/gx-ide-file-uploader.entry.js +1 -1
- package/dist/esm/gx-ide-json-import.entry.js +1 -1
- package/dist/esm/gx-ide-json-import.entry.js.map +1 -1
- package/dist/esm/gx-ide-kb-manager-export.entry.js +1 -1
- package/dist/esm/gx-ide-kb-manager-import.entry.js +2 -2
- package/dist/esm/gx-ide-kb-manager-import.entry.js.map +1 -1
- package/dist/esm/gx-ide-manage-module-references-v2.entry.js +1 -1
- package/dist/esm/gx-ide-manage-module-references.entry.js +1 -1
- package/dist/esm/gx-ide-new-kb.entry.js +1 -1
- package/dist/esm/gx-ide-object-selector.entry.js +1 -1
- package/dist/esm/gx-ide-open-api-import.entry.js +2 -2
- package/dist/esm/gx-ide-open-api-import.entry.js.map +1 -1
- package/dist/esm/gx-ide-plugin-details.entry.js +2 -2
- package/dist/esm/gx-ide-plugin-details.entry.js.map +1 -1
- package/dist/esm/gx-ide-plugin-explorer.entry.js +1 -1
- package/dist/esm/gx-ide-references.entry.js +2 -2
- package/dist/esm/gx-ide-references.entry.js.map +1 -1
- package/dist/esm/gx-ide-sc-chat-container.entry.js +145 -113
- package/dist/esm/gx-ide-sc-chat-container.entry.js.map +1 -1
- package/dist/esm/gx-ide-select-kb-items.entry.js +1 -1
- package/dist/esm/gx-ide-share-kb.entry.js +2 -2
- package/dist/esm/gx-ide-share-kb.entry.js.map +1 -1
- package/dist/esm/gx-ide-splash.entry.js +1 -1
- package/dist/esm/gx-ide-start-page.entry.js +1 -1
- package/dist/esm/gx-ide-team-dev-bring-changes.entry.js +3 -3
- package/dist/esm/gx-ide-team-dev-bring-changes.entry.js.map +1 -1
- package/dist/esm/gx-ide-team-dev-commit.entry.js +2 -2
- package/dist/esm/gx-ide-team-dev-history.entry.js +2 -2
- package/dist/esm/gx-ide-test.entry.js +1 -1
- package/dist/esm/gx-ide-test.entry.js.map +1 -1
- package/dist/esm/gx-ide-welcome-page.entry.js +1 -1
- package/dist/esm/gx-ide-ww-attributes.entry.js +1 -1
- package/dist/esm/index.js +1 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/render-item.lit-449f2946.js +327 -0
- package/dist/esm/render-item.lit-449f2946.js.map +1 -0
- package/dist/esm/{utilities-6fdb43e4.js → utilities-00ec1b22.js} +2 -2
- package/dist/esm/{utilities-6fdb43e4.js.map → utilities-00ec1b22.js.map} +1 -1
- package/dist/genexus-ide-ui/genexus-ide-ui.esm.js +1 -1
- package/dist/genexus-ide-ui/index.esm.js +1 -5
- package/dist/genexus-ide-ui/index.esm.js.map +1 -1
- package/dist/genexus-ide-ui/p-04c6bd23.entry.js.map +1 -1
- package/dist/genexus-ide-ui/{p-476b74a1.entry.js → p-05f1ff03.entry.js} +2 -2
- package/dist/genexus-ide-ui/p-05f1ff03.entry.js.map +1 -0
- package/dist/genexus-ide-ui/{p-863ef4de.entry.js → p-0937c905.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-0cd3ab87.entry.js → p-0a0ab008.entry.js} +3 -3
- package/dist/genexus-ide-ui/p-0a0ab008.entry.js.map +1 -0
- package/dist/genexus-ide-ui/{p-1292a6b9.entry.js → p-1664d366.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-1292a6b9.entry.js.map → p-1664d366.entry.js.map} +1 -1
- package/dist/genexus-ide-ui/{p-884e0ed9.entry.js → p-2ad98d24.entry.js} +3 -3
- package/dist/genexus-ide-ui/{p-884e0ed9.entry.js.map → p-2ad98d24.entry.js.map} +1 -1
- package/dist/genexus-ide-ui/{p-d4ef0c35.entry.js → p-2d04b927.entry.js} +3 -3
- package/dist/genexus-ide-ui/{p-8bb9242a.entry.js → p-36c7a87b.entry.js} +2 -2
- package/dist/genexus-ide-ui/p-36c7a87b.entry.js.map +1 -0
- package/dist/genexus-ide-ui/{p-ca706700.entry.js → p-3dbd3842.entry.js} +3 -3
- package/dist/genexus-ide-ui/{p-2987a259.js → p-401bfc97.js} +4430 -4318
- package/dist/genexus-ide-ui/p-401bfc97.js.map +1 -0
- package/dist/genexus-ide-ui/p-46ffec64.entry.js.map +1 -1
- package/dist/genexus-ide-ui/{p-45539ad0.entry.js → p-494b3955.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-45539ad0.entry.js.map → p-494b3955.entry.js.map} +1 -1
- package/dist/genexus-ide-ui/{p-d77582b8.entry.js → p-4ad7826c.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-72b5d3e4.entry.js → p-4bb2c398.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-810ad95f.entry.js → p-538594e2.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-641c79a9.entry.js → p-5e7f8ae6.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-c50b9883.entry.js → p-5ff6fe1d.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-c50b9883.entry.js.map → p-5ff6fe1d.entry.js.map} +1 -1
- package/dist/genexus-ide-ui/{p-7ae2a57f.entry.js → p-6e958b79.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-4e6425f3.entry.js → p-731b8947.entry.js} +183 -142
- package/dist/genexus-ide-ui/p-731b8947.entry.js.map +1 -0
- package/dist/genexus-ide-ui/{p-012cfb1d.entry.js → p-75d6c740.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-7d7cf30d.entry.js → p-8714eeb1.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-ca9978e1.entry.js → p-88581fe4.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-1be1db4e.entry.js → p-8e34e92b.entry.js} +2 -2
- package/dist/genexus-ide-ui/p-8e34e92b.entry.js.map +1 -0
- package/dist/genexus-ide-ui/{p-ea02e5cf.entry.js → p-960d9108.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-ea02e5cf.entry.js.map → p-960d9108.entry.js.map} +1 -1
- package/dist/genexus-ide-ui/{p-7053c38e.entry.js → p-9d985956.entry.js} +11 -11
- package/dist/genexus-ide-ui/{p-7f65f9e3.entry.js → p-a708a870.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-c92332af.entry.js → p-b0aa8cdb.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-93cdb6f8.entry.js → p-bfe3277f.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-760d8f2a.entry.js → p-c3abc0f5.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-760d8f2a.entry.js.map → p-c3abc0f5.entry.js.map} +1 -1
- package/dist/genexus-ide-ui/{p-52f37ec7.entry.js → p-caa5ee2f.entry.js} +8 -8
- package/dist/genexus-ide-ui/{p-a869ec48.entry.js → p-d4ca8530.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-0f8a8202.js → p-d7a91333.js} +2 -2
- package/dist/genexus-ide-ui/p-d8379699.entry.js.map +1 -1
- package/dist/genexus-ide-ui/{p-c9bca7c0.entry.js → p-dce532ea.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-bbb5b0fb.entry.js → p-e02e3694.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-75c1634c.entry.js → p-e162771e.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-75c1634c.entry.js.map → p-e162771e.entry.js.map} +1 -1
- package/dist/genexus-ide-ui/p-e24902a0.entry.js.map +1 -1
- package/dist/genexus-ide-ui/{p-7d107d2f.entry.js → p-f3f068f6.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-fd440291.entry.js → p-f4a60017.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-7cece7a8.entry.js → p-f52ea9d4.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-7cece7a8.entry.js.map → p-f52ea9d4.entry.js.map} +1 -1
- package/dist/genexus-ide-ui/{p-54fb1287.entry.js → p-f83ceb69.entry.js} +2 -2
- package/dist/genexus-ide-ui/p-fd4f9904.js +955 -0
- package/dist/genexus-ide-ui/p-fd4f9904.js.map +1 -0
- package/dist/types/components/chat/lit-custom-render/actions.lit.d.ts +2 -0
- package/dist/types/components/chat/lit-custom-render/code-block.lit.d.ts +2 -0
- package/dist/types/components/chat/lit-custom-render/dots-animation.d.ts +5 -0
- package/dist/types/components/chat/lit-custom-render/render-item.lit.d.ts +3 -0
- package/dist/types/components/chat/lit-custom-render/spinner-animation.d.ts +5 -0
- package/dist/types/components/chat/lit-custom-render/types.d.ts +4 -0
- package/dist/types/components/chat/lit-custom-render/utils.d.ts +23 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/types/showcase/chat-container/callbacks.d.ts +2 -5
- package/dist/types/showcase/chat-container/models.d.ts +15 -0
- package/package.json +8 -7
- package/dist/cjs/MERCURY_ASSETS-15c5c1ac.js +0 -9
- package/dist/cjs/code-render-2af31443.js +0 -86
- package/dist/cjs/code-render-2af31443.js.map +0 -1
- package/dist/collection/components/chat/code-render.js +0 -65
- package/dist/collection/components/chat/code-render.js.map +0 -1
- package/dist/components/code-render.js +0 -83
- package/dist/components/code-render.js.map +0 -1
- package/dist/esm/MERCURY_ASSETS-7c06e424.js +0 -7
- package/dist/esm/code-render-e6bf0562.js +0 -83
- package/dist/esm/code-render-e6bf0562.js.map +0 -1
- package/dist/genexus-ide-ui/p-0cd3ab87.entry.js.map +0 -1
- package/dist/genexus-ide-ui/p-1be1db4e.entry.js.map +0 -1
- package/dist/genexus-ide-ui/p-2987a259.js.map +0 -1
- package/dist/genexus-ide-ui/p-476b74a1.entry.js.map +0 -1
- package/dist/genexus-ide-ui/p-4e6425f3.entry.js.map +0 -1
- package/dist/genexus-ide-ui/p-60221a44.js +0 -109
- package/dist/genexus-ide-ui/p-60221a44.js.map +0 -1
- package/dist/genexus-ide-ui/p-8bb9242a.entry.js.map +0 -1
- package/dist/types/components/chat/code-render.d.ts +0 -4
- /package/dist/genexus-ide-ui/{p-863ef4de.entry.js.map → p-0937c905.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-d4ef0c35.entry.js.map → p-2d04b927.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-ca706700.entry.js.map → p-3dbd3842.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-d77582b8.entry.js.map → p-4ad7826c.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-72b5d3e4.entry.js.map → p-4bb2c398.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-810ad95f.entry.js.map → p-538594e2.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-641c79a9.entry.js.map → p-5e7f8ae6.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-7ae2a57f.entry.js.map → p-6e958b79.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-012cfb1d.entry.js.map → p-75d6c740.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-7d7cf30d.entry.js.map → p-8714eeb1.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-ca9978e1.entry.js.map → p-88581fe4.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-7053c38e.entry.js.map → p-9d985956.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-7f65f9e3.entry.js.map → p-a708a870.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-c92332af.entry.js.map → p-b0aa8cdb.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-93cdb6f8.entry.js.map → p-bfe3277f.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-52f37ec7.entry.js.map → p-caa5ee2f.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-a869ec48.entry.js.map → p-d4ca8530.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-0f8a8202.js.map → p-d7a91333.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-c9bca7c0.entry.js.map → p-dce532ea.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-bbb5b0fb.entry.js.map → p-e02e3694.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-7d107d2f.entry.js.map → p-f3f068f6.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-fd440291.entry.js.map → p-f4a60017.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-54fb1287.entry.js.map → p-f83ceb69.entry.js.map} +0 -0
|
@@ -0,0 +1,955 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2019 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
+
*/
|
|
6
|
+
const s = globalThis, i = s.ShadowRoot && (void 0 === s.ShadyCSS || s.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, e = Symbol(), o = new WeakMap;
|
|
7
|
+
|
|
8
|
+
class r {
|
|
9
|
+
constructor(s, i, o) {
|
|
10
|
+
if (this._$cssResult$ = !0, o !== e) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
11
|
+
this.cssText = s, this.t = i;
|
|
12
|
+
}
|
|
13
|
+
get styleSheet() {
|
|
14
|
+
let s = this.o;
|
|
15
|
+
const e = this.t;
|
|
16
|
+
if (i && void 0 === s) {
|
|
17
|
+
const i = void 0 !== e && 1 === e.length;
|
|
18
|
+
i && (s = o.get(e)), void 0 === s && ((this.o = s = new CSSStyleSheet).replaceSync(this.cssText),
|
|
19
|
+
i && o.set(e, s));
|
|
20
|
+
}
|
|
21
|
+
return s;
|
|
22
|
+
}
|
|
23
|
+
toString() {
|
|
24
|
+
return this.cssText;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const r$2 = s => new r("string" == typeof s ? s : s + "", void 0, e), i$3 = (s, ...i) => {
|
|
29
|
+
const o = 1 === s.length ? s[0] : i.reduce(((i, e, o) => i + (s => {
|
|
30
|
+
if (!0 === s._$cssResult$) return s.cssText;
|
|
31
|
+
if ("number" == typeof s) return s;
|
|
32
|
+
throw Error("Value passed to 'css' function must be a 'css' function result: " + s + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
33
|
+
})(e) + s[o + 1]), s[0]);
|
|
34
|
+
return new r(o, s, e);
|
|
35
|
+
}, S$1 = (e, o) => {
|
|
36
|
+
if (i) e.adoptedStyleSheets = o.map((s => s instanceof CSSStyleSheet ? s : s.styleSheet)); else for (const i of o) {
|
|
37
|
+
const o = document.createElement("style"), r = s.litNonce;
|
|
38
|
+
void 0 !== r && o.setAttribute("nonce", r), o.textContent = i.cssText, e.appendChild(o);
|
|
39
|
+
}
|
|
40
|
+
}, a = i ? s => s : s => s instanceof CSSStyleSheet ? (s => {
|
|
41
|
+
let i = "";
|
|
42
|
+
for (const e of s.cssRules) i += e.cssText;
|
|
43
|
+
return r$2(i);
|
|
44
|
+
})(s) : s
|
|
45
|
+
/**
|
|
46
|
+
* @license
|
|
47
|
+
* Copyright 2017 Google LLC
|
|
48
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
49
|
+
*/;
|
|
50
|
+
|
|
51
|
+
const {is: h, defineProperty: d, getOwnPropertyDescriptor: p, getOwnPropertyNames: f, getOwnPropertySymbols: v, getPrototypeOf: b} = Object, m = globalThis, $ = m.trustedTypes, g = $ ? $.emptyScript : "", w = m.reactiveElementPolyfillSupport, d$1 = (s, i) => s, _ = {
|
|
52
|
+
toAttribute(s, i) {
|
|
53
|
+
switch (i) {
|
|
54
|
+
case Boolean:
|
|
55
|
+
s = s ? g : null;
|
|
56
|
+
break;
|
|
57
|
+
|
|
58
|
+
case Object:
|
|
59
|
+
case Array:
|
|
60
|
+
s = null == s ? s : JSON.stringify(s);
|
|
61
|
+
}
|
|
62
|
+
return s;
|
|
63
|
+
},
|
|
64
|
+
fromAttribute(s, i) {
|
|
65
|
+
let e = s;
|
|
66
|
+
switch (i) {
|
|
67
|
+
case Boolean:
|
|
68
|
+
e = null !== s;
|
|
69
|
+
break;
|
|
70
|
+
|
|
71
|
+
case Number:
|
|
72
|
+
e = null === s ? null : Number(s);
|
|
73
|
+
break;
|
|
74
|
+
|
|
75
|
+
case Object:
|
|
76
|
+
case Array:
|
|
77
|
+
try {
|
|
78
|
+
e = JSON.parse(s);
|
|
79
|
+
} catch (s) {
|
|
80
|
+
e = null;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
return e;
|
|
84
|
+
}
|
|
85
|
+
}, f$1 = (s, i) => !h(s, i), k = {
|
|
86
|
+
attribute: !0,
|
|
87
|
+
type: String,
|
|
88
|
+
converter: _,
|
|
89
|
+
reflect: !1,
|
|
90
|
+
useDefault: !1,
|
|
91
|
+
hasChanged: f$1
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
Symbol.metadata ??= Symbol("metadata"), m.litPropertyMetadata ??= new WeakMap;
|
|
95
|
+
|
|
96
|
+
class C extends HTMLElement {
|
|
97
|
+
static addInitializer(s) {
|
|
98
|
+
this._$Ei(), (this.l ??= []).push(s);
|
|
99
|
+
}
|
|
100
|
+
static get observedAttributes() {
|
|
101
|
+
return this.finalize(), this._$Eh && [ ...this._$Eh.keys() ];
|
|
102
|
+
}
|
|
103
|
+
static createProperty(s, i = k) {
|
|
104
|
+
if (i.state && (i.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(s) && ((i = Object.create(i)).wrapped = !0),
|
|
105
|
+
this.elementProperties.set(s, i), !i.noAccessor) {
|
|
106
|
+
const e = Symbol(), o = this.getPropertyDescriptor(s, e, i);
|
|
107
|
+
void 0 !== o && d(this.prototype, s, o);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
static getPropertyDescriptor(s, i, e) {
|
|
111
|
+
const {get: o, set: r} = p(this.prototype, s) ?? {
|
|
112
|
+
get() {
|
|
113
|
+
return this[i];
|
|
114
|
+
},
|
|
115
|
+
set(s) {
|
|
116
|
+
this[i] = s;
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
return {
|
|
120
|
+
get: o,
|
|
121
|
+
set(i) {
|
|
122
|
+
const a = o?.call(this);
|
|
123
|
+
r?.call(this, i), this.requestUpdate(s, a, e);
|
|
124
|
+
},
|
|
125
|
+
configurable: !0,
|
|
126
|
+
enumerable: !0
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
static getPropertyOptions(s) {
|
|
130
|
+
return this.elementProperties.get(s) ?? k;
|
|
131
|
+
}
|
|
132
|
+
static _$Ei() {
|
|
133
|
+
if (this.hasOwnProperty(d$1("elementProperties"))) return;
|
|
134
|
+
const s = b(this);
|
|
135
|
+
s.finalize(), void 0 !== s.l && (this.l = [ ...s.l ]), this.elementProperties = new Map(s.elementProperties);
|
|
136
|
+
}
|
|
137
|
+
static finalize() {
|
|
138
|
+
if (this.hasOwnProperty(d$1("finalized"))) return;
|
|
139
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(d$1("properties"))) {
|
|
140
|
+
const s = this.properties, i = [ ...f(s), ...v(s) ];
|
|
141
|
+
for (const e of i) this.createProperty(e, s[e]);
|
|
142
|
+
}
|
|
143
|
+
const s = this[Symbol.metadata];
|
|
144
|
+
if (null !== s) {
|
|
145
|
+
const i = litPropertyMetadata.get(s);
|
|
146
|
+
if (void 0 !== i) for (const [s, e] of i) this.elementProperties.set(s, e);
|
|
147
|
+
}
|
|
148
|
+
this._$Eh = new Map;
|
|
149
|
+
for (const [s, i] of this.elementProperties) {
|
|
150
|
+
const e = this._$Eu(s, i);
|
|
151
|
+
void 0 !== e && this._$Eh.set(e, s);
|
|
152
|
+
}
|
|
153
|
+
this.elementStyles = this.finalizeStyles(this.styles);
|
|
154
|
+
}
|
|
155
|
+
static finalizeStyles(s) {
|
|
156
|
+
const i = [];
|
|
157
|
+
if (Array.isArray(s)) {
|
|
158
|
+
const e = new Set(s.flat(1 / 0).reverse());
|
|
159
|
+
for (const s of e) i.unshift(a(s));
|
|
160
|
+
} else void 0 !== s && i.push(a(s));
|
|
161
|
+
return i;
|
|
162
|
+
}
|
|
163
|
+
static _$Eu(s, i) {
|
|
164
|
+
const e = i.attribute;
|
|
165
|
+
return !1 === e ? void 0 : "string" == typeof e ? e : "string" == typeof s ? s.toLowerCase() : void 0;
|
|
166
|
+
}
|
|
167
|
+
constructor() {
|
|
168
|
+
super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null,
|
|
169
|
+
this._$Ev();
|
|
170
|
+
}
|
|
171
|
+
_$Ev() {
|
|
172
|
+
this._$ES = new Promise((s => this.enableUpdating = s)), this._$AL = new Map, this._$E_(),
|
|
173
|
+
this.requestUpdate(), this.constructor.l?.forEach((s => s(this)));
|
|
174
|
+
}
|
|
175
|
+
addController(s) {
|
|
176
|
+
(this._$EO ??= new Set).add(s), void 0 !== this.renderRoot && this.isConnected && s.hostConnected?.();
|
|
177
|
+
}
|
|
178
|
+
removeController(s) {
|
|
179
|
+
this._$EO?.delete(s);
|
|
180
|
+
}
|
|
181
|
+
_$E_() {
|
|
182
|
+
const s = new Map, i = this.constructor.elementProperties;
|
|
183
|
+
for (const e of i.keys()) this.hasOwnProperty(e) && (s.set(e, this[e]), delete this[e]);
|
|
184
|
+
s.size > 0 && (this._$Ep = s);
|
|
185
|
+
}
|
|
186
|
+
createRenderRoot() {
|
|
187
|
+
const s = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
188
|
+
return S$1(s, this.constructor.elementStyles), s;
|
|
189
|
+
}
|
|
190
|
+
connectedCallback() {
|
|
191
|
+
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach((s => s.hostConnected?.()));
|
|
192
|
+
}
|
|
193
|
+
enableUpdating(s) {}
|
|
194
|
+
disconnectedCallback() {
|
|
195
|
+
this._$EO?.forEach((s => s.hostDisconnected?.()));
|
|
196
|
+
}
|
|
197
|
+
attributeChangedCallback(s, i, e) {
|
|
198
|
+
this._$AK(s, e);
|
|
199
|
+
}
|
|
200
|
+
_$ET(s, i) {
|
|
201
|
+
const e = this.constructor.elementProperties.get(s), o = this.constructor._$Eu(s, e);
|
|
202
|
+
if (void 0 !== o && !0 === e.reflect) {
|
|
203
|
+
const r = (void 0 !== e.converter?.toAttribute ? e.converter : _).toAttribute(i, e.type);
|
|
204
|
+
this._$Em = s, null == r ? this.removeAttribute(o) : this.setAttribute(o, r), this._$Em = null;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
_$AK(s, i) {
|
|
208
|
+
const e = this.constructor, o = e._$Eh.get(s);
|
|
209
|
+
if (void 0 !== o && this._$Em !== o) {
|
|
210
|
+
const s = e.getPropertyOptions(o), r = "function" == typeof s.converter ? {
|
|
211
|
+
fromAttribute: s.converter
|
|
212
|
+
} : void 0 !== s.converter?.fromAttribute ? s.converter : _;
|
|
213
|
+
this._$Em = o;
|
|
214
|
+
const a = r.fromAttribute(i, s.type);
|
|
215
|
+
this[o] = a ?? this._$Ej?.get(o) ?? a, this._$Em = null;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
requestUpdate(s, i, e) {
|
|
219
|
+
if (void 0 !== s) {
|
|
220
|
+
const o = this.constructor, r = this[s];
|
|
221
|
+
if (e ??= o.getPropertyOptions(s), !((e.hasChanged ?? f$1)(r, i) || e.useDefault && e.reflect && r === this._$Ej?.get(s) && !this.hasAttribute(o._$Eu(s, e)))) return;
|
|
222
|
+
this.C(s, i, e);
|
|
223
|
+
}
|
|
224
|
+
!1 === this.isUpdatePending && (this._$ES = this._$EP());
|
|
225
|
+
}
|
|
226
|
+
C(s, i, {useDefault: e, reflect: o, wrapped: r}, a) {
|
|
227
|
+
e && !(this._$Ej ??= new Map).has(s) && (this._$Ej.set(s, a ?? i ?? this[s]), !0 !== r || void 0 !== a) || (this._$AL.has(s) || (this.hasUpdated || e || (i = void 0),
|
|
228
|
+
this._$AL.set(s, i)), !0 === o && this._$Em !== s && (this._$Eq ??= new Set).add(s));
|
|
229
|
+
}
|
|
230
|
+
async _$EP() {
|
|
231
|
+
this.isUpdatePending = !0;
|
|
232
|
+
try {
|
|
233
|
+
await this._$ES;
|
|
234
|
+
} catch (s) {
|
|
235
|
+
Promise.reject(s);
|
|
236
|
+
}
|
|
237
|
+
const s = this.scheduleUpdate();
|
|
238
|
+
return null != s && await s, !this.isUpdatePending;
|
|
239
|
+
}
|
|
240
|
+
scheduleUpdate() {
|
|
241
|
+
return this.performUpdate();
|
|
242
|
+
}
|
|
243
|
+
performUpdate() {
|
|
244
|
+
if (!this.isUpdatePending) return;
|
|
245
|
+
if (!this.hasUpdated) {
|
|
246
|
+
if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
|
|
247
|
+
for (const [s, i] of this._$Ep) this[s] = i;
|
|
248
|
+
this._$Ep = void 0;
|
|
249
|
+
}
|
|
250
|
+
const s = this.constructor.elementProperties;
|
|
251
|
+
if (s.size > 0) for (const [i, e] of s) {
|
|
252
|
+
const {wrapped: s} = e, o = this[i];
|
|
253
|
+
!0 !== s || this._$AL.has(i) || void 0 === o || this.C(i, void 0, e, o);
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
let s = !1;
|
|
257
|
+
const i = this._$AL;
|
|
258
|
+
try {
|
|
259
|
+
s = this.shouldUpdate(i), s ? (this.willUpdate(i), this._$EO?.forEach((s => s.hostUpdate?.())),
|
|
260
|
+
this.update(i)) : this._$EM();
|
|
261
|
+
} catch (i) {
|
|
262
|
+
throw s = !1, this._$EM(), i;
|
|
263
|
+
}
|
|
264
|
+
s && this._$AE(i);
|
|
265
|
+
}
|
|
266
|
+
willUpdate(s) {}
|
|
267
|
+
_$AE(s) {
|
|
268
|
+
this._$EO?.forEach((s => s.hostUpdated?.())), this.hasUpdated || (this.hasUpdated = !0,
|
|
269
|
+
this.firstUpdated(s)), this.updated(s);
|
|
270
|
+
}
|
|
271
|
+
_$EM() {
|
|
272
|
+
this._$AL = new Map, this.isUpdatePending = !1;
|
|
273
|
+
}
|
|
274
|
+
get updateComplete() {
|
|
275
|
+
return this.getUpdateComplete();
|
|
276
|
+
}
|
|
277
|
+
getUpdateComplete() {
|
|
278
|
+
return this._$ES;
|
|
279
|
+
}
|
|
280
|
+
shouldUpdate(s) {
|
|
281
|
+
return !0;
|
|
282
|
+
}
|
|
283
|
+
update(s) {
|
|
284
|
+
this._$Eq &&= this._$Eq.forEach((s => this._$ET(s, this[s]))), this._$EM();
|
|
285
|
+
}
|
|
286
|
+
updated(s) {}
|
|
287
|
+
firstUpdated(s) {}
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
C.elementStyles = [], C.shadowRootOptions = {
|
|
291
|
+
mode: "open"
|
|
292
|
+
}, C[d$1("elementProperties")] = new Map, C[d$1("finalized")] = new Map, w?.({
|
|
293
|
+
ReactiveElement: C
|
|
294
|
+
}), (m.reactiveElementVersions ??= []).push("2.1.1");
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* @license
|
|
298
|
+
* Copyright 2017 Google LLC
|
|
299
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
300
|
+
*/ const A = globalThis, E = A.trustedTypes, O = E ? E.createPolicy("lit-html", {
|
|
301
|
+
createHTML: s => s
|
|
302
|
+
}) : void 0, x = "$lit$", j = `lit$${Math.random().toFixed(9).slice(2)}$`, M = "?" + j, z = `<${M}>`, N = document, l = () => N.createComment(""), c = s => null === s || "object" != typeof s && "function" != typeof s, U = Array.isArray, u = s => U(s) || "function" == typeof s?.[Symbol.iterator], R = "[ \t\n\f\r]", T = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, D = /-->/g, I = />/g, L = RegExp(`>|${R}(?:([^\\s"'>=/]+)(${R}*=${R}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`, "g"), J = /'/g, W = /"/g, H = /^(?:script|style|textarea|title)$/i, y = s => (i, ...e) => ({
|
|
303
|
+
_$litType$: s,
|
|
304
|
+
strings: i,
|
|
305
|
+
values: e
|
|
306
|
+
}), Z = y(1), q = Symbol.for("lit-noChange"), K = Symbol.for("lit-nothing"), F = new WeakMap, G = N.createTreeWalker(N, 129);
|
|
307
|
+
|
|
308
|
+
function P(s, i) {
|
|
309
|
+
if (!U(s) || !s.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
310
|
+
return void 0 !== O ? O.createHTML(i) : i;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
const V = (s, i) => {
|
|
314
|
+
const e = s.length - 1, o = [];
|
|
315
|
+
let r, a = 2 === i ? "<svg>" : 3 === i ? "<math>" : "", h = T;
|
|
316
|
+
for (let i = 0; i < e; i++) {
|
|
317
|
+
const e = s[i];
|
|
318
|
+
let d, p, f = -1, v = 0;
|
|
319
|
+
for (;v < e.length && (h.lastIndex = v, p = h.exec(e), null !== p); ) v = h.lastIndex,
|
|
320
|
+
h === T ? "!--" === p[1] ? h = D : void 0 !== p[1] ? h = I : void 0 !== p[2] ? (H.test(p[2]) && (r = RegExp("</" + p[2], "g")),
|
|
321
|
+
h = L) : void 0 !== p[3] && (h = L) : h === L ? ">" === p[0] ? (h = r ?? T, f = -1) : void 0 === p[1] ? f = -2 : (f = h.lastIndex - p[2].length,
|
|
322
|
+
d = p[1], h = void 0 === p[3] ? L : '"' === p[3] ? W : J) : h === W || h === J ? h = L : h === D || h === I ? h = T : (h = L,
|
|
323
|
+
r = void 0);
|
|
324
|
+
const b = h === L && s[i + 1].startsWith("/>") ? " " : "";
|
|
325
|
+
a += h === T ? e + z : f >= 0 ? (o.push(d), e.slice(0, f) + x + e.slice(f) + j + b) : e + j + (-2 === f ? i : b);
|
|
326
|
+
}
|
|
327
|
+
return [ P(s, a + (s[e] || "<?>") + (2 === i ? "</svg>" : 3 === i ? "</math>" : "")), o ];
|
|
328
|
+
};
|
|
329
|
+
|
|
330
|
+
class Q {
|
|
331
|
+
constructor({strings: s, _$litType$: i}, e) {
|
|
332
|
+
let o;
|
|
333
|
+
this.parts = [];
|
|
334
|
+
let r = 0, a = 0;
|
|
335
|
+
const h = s.length - 1, d = this.parts, [p, f] = V(s, i);
|
|
336
|
+
if (this.el = Q.createElement(p, e), G.currentNode = this.el.content, 2 === i || 3 === i) {
|
|
337
|
+
const s = this.el.content.firstChild;
|
|
338
|
+
s.replaceWith(...s.childNodes);
|
|
339
|
+
}
|
|
340
|
+
for (;null !== (o = G.nextNode()) && d.length < h; ) {
|
|
341
|
+
if (1 === o.nodeType) {
|
|
342
|
+
if (o.hasAttributes()) for (const s of o.getAttributeNames()) if (s.endsWith(x)) {
|
|
343
|
+
const i = f[a++], e = o.getAttribute(s).split(j), h = /([.?@])?(.*)/.exec(i);
|
|
344
|
+
d.push({
|
|
345
|
+
type: 1,
|
|
346
|
+
index: r,
|
|
347
|
+
name: h[2],
|
|
348
|
+
strings: e,
|
|
349
|
+
ctor: "." === h[1] ? st : "?" === h[1] ? it : "@" === h[1] ? et : tt
|
|
350
|
+
}), o.removeAttribute(s);
|
|
351
|
+
} else s.startsWith(j) && (d.push({
|
|
352
|
+
type: 6,
|
|
353
|
+
index: r
|
|
354
|
+
}), o.removeAttribute(s));
|
|
355
|
+
if (H.test(o.tagName)) {
|
|
356
|
+
const s = o.textContent.split(j), i = s.length - 1;
|
|
357
|
+
if (i > 0) {
|
|
358
|
+
o.textContent = E ? E.emptyScript : "";
|
|
359
|
+
for (let e = 0; e < i; e++) o.append(s[e], l()), G.nextNode(), d.push({
|
|
360
|
+
type: 2,
|
|
361
|
+
index: ++r
|
|
362
|
+
});
|
|
363
|
+
o.append(s[i], l());
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
} else if (8 === o.nodeType) if (o.data === M) d.push({
|
|
367
|
+
type: 2,
|
|
368
|
+
index: r
|
|
369
|
+
}); else {
|
|
370
|
+
let s = -1;
|
|
371
|
+
for (;-1 !== (s = o.data.indexOf(j, s + 1)); ) d.push({
|
|
372
|
+
type: 7,
|
|
373
|
+
index: r
|
|
374
|
+
}), s += j.length - 1;
|
|
375
|
+
}
|
|
376
|
+
r++;
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
static createElement(s, i) {
|
|
380
|
+
const e = N.createElement("template");
|
|
381
|
+
return e.innerHTML = s, e;
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
function S(s, i, e = s, o) {
|
|
386
|
+
if (i === q) return i;
|
|
387
|
+
let r = void 0 !== o ? e._$Co?.[o] : e._$Cl;
|
|
388
|
+
const a = c(i) ? void 0 : i._$litDirective$;
|
|
389
|
+
return r?.constructor !== a && (r?._$AO?.(!1), void 0 === a ? r = void 0 : (r = new a(s),
|
|
390
|
+
r._$AT(s, e, o)), void 0 !== o ? (e._$Co ??= [])[o] = r : e._$Cl = r), void 0 !== r && (i = S(s, r._$AS(s, i.values), r, o)),
|
|
391
|
+
i;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
class X {
|
|
395
|
+
constructor(s, i) {
|
|
396
|
+
this._$AV = [], this._$AN = void 0, this._$AD = s, this._$AM = i;
|
|
397
|
+
}
|
|
398
|
+
get parentNode() {
|
|
399
|
+
return this._$AM.parentNode;
|
|
400
|
+
}
|
|
401
|
+
get _$AU() {
|
|
402
|
+
return this._$AM._$AU;
|
|
403
|
+
}
|
|
404
|
+
u(s) {
|
|
405
|
+
const {el: {content: i}, parts: e} = this._$AD, o = (s?.creationScope ?? N).importNode(i, !0);
|
|
406
|
+
G.currentNode = o;
|
|
407
|
+
let r = G.nextNode(), a = 0, h = 0, d = e[0];
|
|
408
|
+
for (;void 0 !== d; ) {
|
|
409
|
+
if (a === d.index) {
|
|
410
|
+
let i;
|
|
411
|
+
2 === d.type ? i = new Y(r, r.nextSibling, this, s) : 1 === d.type ? i = new d.ctor(r, d.name, d.strings, this, s) : 6 === d.type && (i = new ot(r, this, s)),
|
|
412
|
+
this._$AV.push(i), d = e[++h];
|
|
413
|
+
}
|
|
414
|
+
a !== d?.index && (r = G.nextNode(), a++);
|
|
415
|
+
}
|
|
416
|
+
return G.currentNode = N, o;
|
|
417
|
+
}
|
|
418
|
+
p(s) {
|
|
419
|
+
let i = 0;
|
|
420
|
+
for (const e of this._$AV) void 0 !== e && (void 0 !== e.strings ? (e._$AI(s, e, i),
|
|
421
|
+
i += e.strings.length - 2) : e._$AI(s[i])), i++;
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
class Y {
|
|
426
|
+
get _$AU() {
|
|
427
|
+
return this._$AM?._$AU ?? this._$Cv;
|
|
428
|
+
}
|
|
429
|
+
constructor(s, i, e, o) {
|
|
430
|
+
this.type = 2, this._$AH = K, this._$AN = void 0, this._$AA = s, this._$AB = i,
|
|
431
|
+
this._$AM = e, this.options = o, this._$Cv = o?.isConnected ?? !0;
|
|
432
|
+
}
|
|
433
|
+
get parentNode() {
|
|
434
|
+
let s = this._$AA.parentNode;
|
|
435
|
+
const i = this._$AM;
|
|
436
|
+
return void 0 !== i && 11 === s?.nodeType && (s = i.parentNode), s;
|
|
437
|
+
}
|
|
438
|
+
get startNode() {
|
|
439
|
+
return this._$AA;
|
|
440
|
+
}
|
|
441
|
+
get endNode() {
|
|
442
|
+
return this._$AB;
|
|
443
|
+
}
|
|
444
|
+
_$AI(s, i = this) {
|
|
445
|
+
s = S(this, s, i), c(s) ? s === K || null == s || "" === s ? (this._$AH !== K && this._$AR(),
|
|
446
|
+
this._$AH = K) : s !== this._$AH && s !== q && this._(s) : void 0 !== s._$litType$ ? this.$(s) : void 0 !== s.nodeType ? this.T(s) : u(s) ? this.k(s) : this._(s);
|
|
447
|
+
}
|
|
448
|
+
O(s) {
|
|
449
|
+
return this._$AA.parentNode.insertBefore(s, this._$AB);
|
|
450
|
+
}
|
|
451
|
+
T(s) {
|
|
452
|
+
this._$AH !== s && (this._$AR(), this._$AH = this.O(s));
|
|
453
|
+
}
|
|
454
|
+
_(s) {
|
|
455
|
+
this._$AH !== K && c(this._$AH) ? this._$AA.nextSibling.data = s : this.T(N.createTextNode(s)),
|
|
456
|
+
this._$AH = s;
|
|
457
|
+
}
|
|
458
|
+
$(s) {
|
|
459
|
+
const {values: i, _$litType$: e} = s, o = "number" == typeof e ? this._$AC(s) : (void 0 === e.el && (e.el = Q.createElement(P(e.h, e.h[0]), this.options)),
|
|
460
|
+
e);
|
|
461
|
+
if (this._$AH?._$AD === o) this._$AH.p(i); else {
|
|
462
|
+
const s = new X(o, this), e = s.u(this.options);
|
|
463
|
+
s.p(i), this.T(e), this._$AH = s;
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
_$AC(s) {
|
|
467
|
+
let i = F.get(s.strings);
|
|
468
|
+
return void 0 === i && F.set(s.strings, i = new Q(s)), i;
|
|
469
|
+
}
|
|
470
|
+
k(s) {
|
|
471
|
+
U(this._$AH) || (this._$AH = [], this._$AR());
|
|
472
|
+
const i = this._$AH;
|
|
473
|
+
let e, o = 0;
|
|
474
|
+
for (const r of s) o === i.length ? i.push(e = new Y(this.O(l()), this.O(l()), this, this.options)) : e = i[o],
|
|
475
|
+
e._$AI(r), o++;
|
|
476
|
+
o < i.length && (this._$AR(e && e._$AB.nextSibling, o), i.length = o);
|
|
477
|
+
}
|
|
478
|
+
_$AR(s = this._$AA.nextSibling, i) {
|
|
479
|
+
for (this._$AP?.(!1, !0, i); s !== this._$AB; ) {
|
|
480
|
+
const i = s.nextSibling;
|
|
481
|
+
s.remove(), s = i;
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
setConnected(s) {
|
|
485
|
+
void 0 === this._$AM && (this._$Cv = s, this._$AP?.(s));
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
class tt {
|
|
490
|
+
get tagName() {
|
|
491
|
+
return this.element.tagName;
|
|
492
|
+
}
|
|
493
|
+
get _$AU() {
|
|
494
|
+
return this._$AM._$AU;
|
|
495
|
+
}
|
|
496
|
+
constructor(s, i, e, o, r) {
|
|
497
|
+
this.type = 1, this._$AH = K, this._$AN = void 0, this.element = s, this.name = i,
|
|
498
|
+
this._$AM = o, this.options = r, e.length > 2 || "" !== e[0] || "" !== e[1] ? (this._$AH = Array(e.length - 1).fill(new String),
|
|
499
|
+
this.strings = e) : this._$AH = K;
|
|
500
|
+
}
|
|
501
|
+
_$AI(s, i = this, e, o) {
|
|
502
|
+
const r = this.strings;
|
|
503
|
+
let a = !1;
|
|
504
|
+
if (void 0 === r) s = S(this, s, i, 0), a = !c(s) || s !== this._$AH && s !== q,
|
|
505
|
+
a && (this._$AH = s); else {
|
|
506
|
+
const o = s;
|
|
507
|
+
let h, d;
|
|
508
|
+
for (s = r[0], h = 0; h < r.length - 1; h++) d = S(this, o[e + h], i, h), d === q && (d = this._$AH[h]),
|
|
509
|
+
a ||= !c(d) || d !== this._$AH[h], d === K ? s = K : s !== K && (s += (d ?? "") + r[h + 1]),
|
|
510
|
+
this._$AH[h] = d;
|
|
511
|
+
}
|
|
512
|
+
a && !o && this.j(s);
|
|
513
|
+
}
|
|
514
|
+
j(s) {
|
|
515
|
+
s === K ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, s ?? "");
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
class st extends tt {
|
|
520
|
+
constructor() {
|
|
521
|
+
super(...arguments), this.type = 3;
|
|
522
|
+
}
|
|
523
|
+
j(s) {
|
|
524
|
+
this.element[this.name] = s === K ? void 0 : s;
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
class it extends tt {
|
|
529
|
+
constructor() {
|
|
530
|
+
super(...arguments), this.type = 4;
|
|
531
|
+
}
|
|
532
|
+
j(s) {
|
|
533
|
+
this.element.toggleAttribute(this.name, !!s && s !== K);
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
class et extends tt {
|
|
538
|
+
constructor(s, i, e, o, r) {
|
|
539
|
+
super(s, i, e, o, r), this.type = 5;
|
|
540
|
+
}
|
|
541
|
+
_$AI(s, i = this) {
|
|
542
|
+
if ((s = S(this, s, i, 0) ?? K) === q) return;
|
|
543
|
+
const e = this._$AH, o = s === K && e !== K || s.capture !== e.capture || s.once !== e.once || s.passive !== e.passive, r = s !== K && (e === K || o);
|
|
544
|
+
o && this.element.removeEventListener(this.name, this, e), r && this.element.addEventListener(this.name, this, s),
|
|
545
|
+
this._$AH = s;
|
|
546
|
+
}
|
|
547
|
+
handleEvent(s) {
|
|
548
|
+
"function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, s) : this._$AH.handleEvent(s);
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
class ot {
|
|
553
|
+
constructor(s, i, e) {
|
|
554
|
+
this.element = s, this.type = 6, this._$AN = void 0, this._$AM = i, this.options = e;
|
|
555
|
+
}
|
|
556
|
+
get _$AU() {
|
|
557
|
+
return this._$AM._$AU;
|
|
558
|
+
}
|
|
559
|
+
_$AI(s) {
|
|
560
|
+
S(this, s);
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
const nt = A.litHtmlPolyfillSupport;
|
|
565
|
+
|
|
566
|
+
nt?.(Q, Y), (A.litHtmlVersions ??= []).push("3.3.1");
|
|
567
|
+
|
|
568
|
+
const B = (s, i, e) => {
|
|
569
|
+
const o = e?.renderBefore ?? i;
|
|
570
|
+
let r = o._$litPart$;
|
|
571
|
+
if (void 0 === r) {
|
|
572
|
+
const s = e?.renderBefore ?? null;
|
|
573
|
+
o._$litPart$ = r = new Y(i.insertBefore(l(), s), s, void 0, e ?? {});
|
|
574
|
+
}
|
|
575
|
+
return r._$AI(s), r
|
|
576
|
+
/**
|
|
577
|
+
* @license
|
|
578
|
+
* Copyright 2017 Google LLC
|
|
579
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
580
|
+
*/;
|
|
581
|
+
};
|
|
582
|
+
|
|
583
|
+
const rt = globalThis;
|
|
584
|
+
|
|
585
|
+
class at extends C {
|
|
586
|
+
constructor() {
|
|
587
|
+
super(...arguments), this.renderOptions = {
|
|
588
|
+
host: this
|
|
589
|
+
}, this._$Do = void 0;
|
|
590
|
+
}
|
|
591
|
+
createRenderRoot() {
|
|
592
|
+
const s = super.createRenderRoot();
|
|
593
|
+
return this.renderOptions.renderBefore ??= s.firstChild, s;
|
|
594
|
+
}
|
|
595
|
+
update(s) {
|
|
596
|
+
const i = this.render();
|
|
597
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(s),
|
|
598
|
+
this._$Do = B(i, this.renderRoot, this.renderOptions);
|
|
599
|
+
}
|
|
600
|
+
connectedCallback() {
|
|
601
|
+
super.connectedCallback(), this._$Do?.setConnected(!0);
|
|
602
|
+
}
|
|
603
|
+
disconnectedCallback() {
|
|
604
|
+
super.disconnectedCallback(), this._$Do?.setConnected(!1);
|
|
605
|
+
}
|
|
606
|
+
render() {
|
|
607
|
+
return q;
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
at._$litElement$ = !0, at["finalized"] = !0, rt.litElementHydrateSupport?.({
|
|
612
|
+
LitElement: at
|
|
613
|
+
});
|
|
614
|
+
|
|
615
|
+
const ct = rt.litElementPolyfillSupport;
|
|
616
|
+
|
|
617
|
+
ct?.({
|
|
618
|
+
LitElement: at
|
|
619
|
+
});
|
|
620
|
+
|
|
621
|
+
(rt.litElementVersions ??= []).push("4.2.1");
|
|
622
|
+
|
|
623
|
+
/**
|
|
624
|
+
* @license
|
|
625
|
+
* Copyright 2021 Google LLC
|
|
626
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
627
|
+
*/ function n(s, i, e) {
|
|
628
|
+
return s ? i(s) : e?.(s);
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
// The following utils were copied from Chamelmeon (src/components/chat/utils.ts or src/common/utils.ts)
|
|
632
|
+
const getMessageSerializedContentAll = s => typeof s.content === "string" ? s.content : JSON.stringify(s.content, undefined, 2);
|
|
633
|
+
|
|
634
|
+
const getMessageContent = s => typeof s.content === "string" ? s.content : s.content.message
|
|
635
|
+
/**
|
|
636
|
+
* Converts an object mapping token keys to booleans into a space-separated
|
|
637
|
+
* string containing the token keys that map to truthy values.
|
|
638
|
+
* @example
|
|
639
|
+
* part={tokenMap({
|
|
640
|
+
* header: true,
|
|
641
|
+
* disabled: this.disabled,
|
|
642
|
+
* selected: this.selected,
|
|
643
|
+
* [levelPart]: canShowLines,
|
|
644
|
+
* "expand-button":
|
|
645
|
+
* canShowLines && !this.leaf && this.expandableButton !== "no"
|
|
646
|
+
* })}
|
|
647
|
+
*/;
|
|
648
|
+
|
|
649
|
+
const tokenMap = s => {
|
|
650
|
+
const i = Object.keys(s);
|
|
651
|
+
let e = "";
|
|
652
|
+
for (let o = 0; o < i.length; o++) {
|
|
653
|
+
const r = i[o];
|
|
654
|
+
const a = s[r];
|
|
655
|
+
if (a) {
|
|
656
|
+
e += e === "" ? r : ` ${r}`;
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
return e;
|
|
660
|
+
};
|
|
661
|
+
|
|
662
|
+
const copyToTheClipboard = s => navigator.clipboard.writeText(s);
|
|
663
|
+
|
|
664
|
+
const copyButtonClickHandler = (s, i) => {
|
|
665
|
+
copyToTheClipboard(i);
|
|
666
|
+
const e = s.currentTarget;
|
|
667
|
+
if (e) {
|
|
668
|
+
const s = e.getAttribute("part");
|
|
669
|
+
const i = `${s} copying`;
|
|
670
|
+
e.setAttribute("disabled", "disabled");
|
|
671
|
+
e.setAttribute("part", i);
|
|
672
|
+
setTimeout((() => {
|
|
673
|
+
e.removeAttribute("disabled");
|
|
674
|
+
e.setAttribute("part", s || "");
|
|
675
|
+
}), 1500);
|
|
676
|
+
}
|
|
677
|
+
};
|
|
678
|
+
|
|
679
|
+
const ht = "complete";
|
|
680
|
+
|
|
681
|
+
const copyClickHandler = (s, i) => {
|
|
682
|
+
// We use the whole message to support copying the files and/or sources
|
|
683
|
+
const e = getMessageSerializedContentAll(i);
|
|
684
|
+
copyButtonClickHandler(s, e);
|
|
685
|
+
};
|
|
686
|
+
|
|
687
|
+
const customActionsRender = (s, i) => {
|
|
688
|
+
const {accessibleName: e} = i.translations;
|
|
689
|
+
const o = s.role === "assistant" && (s.status === "complete" || !s.status);
|
|
690
|
+
const r = s.role === "error";
|
|
691
|
+
return n(o || r, (() => Z`<div part="actions-container">
|
|
692
|
+
<button
|
|
693
|
+
aria-label=${
|
|
694
|
+
// TODO: Don't set aria-label if it equals to the caption
|
|
695
|
+
e.copyMessageContent}
|
|
696
|
+
part=${tokenMap(Object.assign({
|
|
697
|
+
[`assistant copy-message-content ${s.id}`]: true
|
|
698
|
+
}, s.parts ? {
|
|
699
|
+
[s.parts]: true
|
|
700
|
+
} : {}))}
|
|
701
|
+
type="button"
|
|
702
|
+
@click=${i => copyClickHandler(i, s)}
|
|
703
|
+
>
|
|
704
|
+
<!-- icon only button type -->
|
|
705
|
+
</button>
|
|
706
|
+
</div>`));
|
|
707
|
+
};
|
|
708
|
+
|
|
709
|
+
const downloadCodeBlockCallback = (s, i, e) => () => e(s, i);
|
|
710
|
+
|
|
711
|
+
const customCodeBlockRender = s => i => {
|
|
712
|
+
var e;
|
|
713
|
+
const {accessibleName: o, text: r} = s.translations;
|
|
714
|
+
const a = (e = s.callbacks) === null || e === void 0 ? void 0 : e.downloadCodeBlock;
|
|
715
|
+
// console.log("downloadCb", downloadCb);
|
|
716
|
+
return Z`<div part="code-block">
|
|
717
|
+
<div part="code-block__header">
|
|
718
|
+
<span part="code-block__header-caption">${i.language}</span>
|
|
719
|
+
|
|
720
|
+
<div part="code-block__header-actions">
|
|
721
|
+
<button
|
|
722
|
+
class="button-copy-code"
|
|
723
|
+
aria-label=${r.copyCodeButton}
|
|
724
|
+
part="code-block__button--icon-only code-block__copy-code-button"
|
|
725
|
+
type="button"
|
|
726
|
+
@click=${s => copyButtonClickHandler(s, i.plainText)}
|
|
727
|
+
>
|
|
728
|
+
<!-- icon only button type -->
|
|
729
|
+
</button>
|
|
730
|
+
|
|
731
|
+
${n(a, (() => Z`<button
|
|
732
|
+
aria-label=${
|
|
733
|
+
// TODO: Don't set aria-label if it equals to the caption
|
|
734
|
+
o.downloadCodeButton}
|
|
735
|
+
part="code-block__button--icon-only code-block__download-code-button"
|
|
736
|
+
@click=${downloadCodeBlockCallback(i.plainText, i.language, a)}
|
|
737
|
+
>
|
|
738
|
+
<!-- icon only button type -->
|
|
739
|
+
</button>`))}
|
|
740
|
+
</div>
|
|
741
|
+
</div>
|
|
742
|
+
|
|
743
|
+
<ch-code
|
|
744
|
+
.language=${i.language}
|
|
745
|
+
.lastNestedChildClass=${i.lastNestedChildClass}
|
|
746
|
+
part="code-block__content"
|
|
747
|
+
.showIndicator=${i.showIndicator}
|
|
748
|
+
.value=${i.plainText}
|
|
749
|
+
></ch-code>
|
|
750
|
+
</div>`;
|
|
751
|
+
}
|
|
752
|
+
/**
|
|
753
|
+
* @license
|
|
754
|
+
* Copyright 2017 Google LLC
|
|
755
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
756
|
+
*/;
|
|
757
|
+
|
|
758
|
+
const t = s => (i, e) => {
|
|
759
|
+
void 0 !== e ? e.addInitializer((() => {
|
|
760
|
+
customElements.define(s, i);
|
|
761
|
+
})) : customElements.define(s, i);
|
|
762
|
+
};
|
|
763
|
+
|
|
764
|
+
var lt = undefined && undefined.__decorate || function(s, i, e, o) {
|
|
765
|
+
var r = arguments.length, a = r < 3 ? i : o === null ? o = Object.getOwnPropertyDescriptor(i, e) : o, h;
|
|
766
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") a = Reflect.decorate(s, i, e, o); else for (var d = s.length - 1; d >= 0; d--) if (h = s[d]) a = (r < 3 ? h(a) : r > 3 ? h(i, e, a) : h(i, e)) || a;
|
|
767
|
+
return r > 3 && a && Object.defineProperty(i, e, a), a;
|
|
768
|
+
};
|
|
769
|
+
|
|
770
|
+
const dt = "dot";
|
|
771
|
+
|
|
772
|
+
let ut = class s extends at {
|
|
773
|
+
// Render the UI as a function of component state
|
|
774
|
+
render() {
|
|
775
|
+
return Z`<div class=${dt} part="dot dot-1"></div>
|
|
776
|
+
<div class=${dt} part="dot dot-2"></div>
|
|
777
|
+
<div class=${dt} part="dot dot-3"></div>`;
|
|
778
|
+
}
|
|
779
|
+
};
|
|
780
|
+
|
|
781
|
+
ut.styles = i$3`
|
|
782
|
+
:host {
|
|
783
|
+
--dot-size: 5px;
|
|
784
|
+
--dot-initial-opacity: 0;
|
|
785
|
+
--dot-initial-scale: 0.5;
|
|
786
|
+
--dot-background-color: var(--mer-color__primary--200);
|
|
787
|
+
--animation-duration: 0.4s;
|
|
788
|
+
display: inline-flex;
|
|
789
|
+
gap: calc(var(--dot-size) / 1.15);
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
.dot {
|
|
793
|
+
display: inline-block;
|
|
794
|
+
inline-size: var(--dot-size);
|
|
795
|
+
block-size: var(--dot-size);
|
|
796
|
+
border-radius: calc(var(--dot-size) / 2);
|
|
797
|
+
opacity: var(--dot-initial-opacity);
|
|
798
|
+
transform: scale(var(--dot-initial-scale));
|
|
799
|
+
animation: animateDot var(--animation-duration) ease-in-out infinite alternate;
|
|
800
|
+
background-color: var(--dot-background-color);
|
|
801
|
+
}
|
|
802
|
+
.dot:nth-child(2) {
|
|
803
|
+
animation-delay: calc(var(--animation-duration) / 3); // 33% delay
|
|
804
|
+
}
|
|
805
|
+
.dot:nth-child(3) {
|
|
806
|
+
animation-delay: calc(var(--animation-duration) / 1.5); // 66% delay
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
@keyframes animateDot {
|
|
810
|
+
to {
|
|
811
|
+
opacity: 1;
|
|
812
|
+
transform: scale(1);
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
`;
|
|
816
|
+
|
|
817
|
+
ut = lt([ t("dots-animation") ], ut);
|
|
818
|
+
|
|
819
|
+
/*
|
|
820
|
+
README:
|
|
821
|
+
This file contains sections for customitizing the ch-chat renderItem.
|
|
822
|
+
The following sections are being customized at the time of writting:
|
|
823
|
+
- actions: customActionsRender,
|
|
824
|
+
- codeBlock: customCodeBlockRender,
|
|
825
|
+
- content: customContentRender
|
|
826
|
+
|
|
827
|
+
What for?
|
|
828
|
+
|
|
829
|
+
- actions: In order to be able to customize the copy button, by adding a part
|
|
830
|
+
"copying" when the user copies the message. This additional part allows changing
|
|
831
|
+
the current button icon of "copy" to a "checked" icon.
|
|
832
|
+
- codeBlock: Same reason as "actions" section.
|
|
833
|
+
- content: Mercury includes a "header" section for the assistant message. This
|
|
834
|
+
header includes an avatar, the assistant name, and optionally the message time.
|
|
835
|
+
This header requires custom markup, and for this reason this section has to be
|
|
836
|
+
customized.
|
|
837
|
+
*/
|
|
838
|
+
/**
|
|
839
|
+
* Mercury section that includes the assistant the assistant name, and an optional message time.
|
|
840
|
+
*
|
|
841
|
+
* @param messageMetaData - Metadata containing assistantName and time
|
|
842
|
+
* @returns TemplateResult rendering the assistant message header
|
|
843
|
+
*/ const messageHeader = s => {
|
|
844
|
+
const i = s.assistantName;
|
|
845
|
+
const e = s.time;
|
|
846
|
+
return Z` <div part="header assistant">
|
|
847
|
+
<div part="header__start assistant">
|
|
848
|
+
<div part="header__avatar-container assistant">
|
|
849
|
+
<div part="header__avatar-border assistant"></div>
|
|
850
|
+
<div part="header__avatar-image assistant"></div>
|
|
851
|
+
</div>
|
|
852
|
+
<div part="header__role assistant">${i}</div>
|
|
853
|
+
</div>
|
|
854
|
+
${e ? Z`<time datetime="${e}" part="header__time assistant"
|
|
855
|
+
>${e}</time
|
|
856
|
+
>` : K}
|
|
857
|
+
</div>`;
|
|
858
|
+
};
|
|
859
|
+
|
|
860
|
+
// customzied in order to add the custom "messageHeader"
|
|
861
|
+
const customAssistantContentRender = (s, i, e) => {
|
|
862
|
+
var o, r;
|
|
863
|
+
const a = getMessageContent(s);
|
|
864
|
+
return s.status === "waiting" ? Z`${messageHeader(s.metadata)}
|
|
865
|
+
<style>
|
|
866
|
+
dots-animation::part(dot-1) {
|
|
867
|
+
--dot-background-color: #5ba7ff;
|
|
868
|
+
}
|
|
869
|
+
dots-animation::part(dot-2) {
|
|
870
|
+
--dot-background-color: #00ccff;
|
|
871
|
+
}
|
|
872
|
+
dots-animation::part(dot-3) {
|
|
873
|
+
--dot-background-color: #cf7aff;
|
|
874
|
+
}
|
|
875
|
+
</style>
|
|
876
|
+
<div
|
|
877
|
+
class="assistant-loading"
|
|
878
|
+
part=${tokenMap(Object.assign({
|
|
879
|
+
[`assistant content waiting ${s.id}`]: true
|
|
880
|
+
}, s.parts ? {
|
|
881
|
+
[s.parts]: true
|
|
882
|
+
} : {}))}
|
|
883
|
+
>
|
|
884
|
+
${a}
|
|
885
|
+
<dots-animation></dots-animation>
|
|
886
|
+
</div>` : Z`${messageHeader(s.metadata)}
|
|
887
|
+
<ch-markdown-viewer
|
|
888
|
+
part=${tokenMap(Object.assign({
|
|
889
|
+
[`assistant content ${s.id} ${(o = s.status) !== null && o !== void 0 ? o : ht}`]: true
|
|
890
|
+
}, s.parts ? {
|
|
891
|
+
[s.parts]: true
|
|
892
|
+
} : {}))}
|
|
893
|
+
.renderCode=${
|
|
894
|
+
// WA: Define codeBlockRender as "any" to avoid types incompatibility:
|
|
895
|
+
// codeBlockRender returns TemplateResult and renderCode expects TemplateResult | undefined
|
|
896
|
+
// In Chameleon this type mismatch does not happens. TODO: Evaluate a solution in Chameleon.
|
|
897
|
+
e(i)}
|
|
898
|
+
.showIndicator=${s.status === "streaming"}
|
|
899
|
+
.theme=${(r = i.markdownTheme) !== null && r !== void 0 ? r : undefined}
|
|
900
|
+
.value=${a}
|
|
901
|
+
></ch-markdown-viewer>`;
|
|
902
|
+
};
|
|
903
|
+
|
|
904
|
+
// customzied in order to add the custom "messageHeader"
|
|
905
|
+
const customErrorContentRender = (s, i, e) => {
|
|
906
|
+
var o;
|
|
907
|
+
const r = getMessageContent(s);
|
|
908
|
+
return Z`${messageHeader(s.metadata)}
|
|
909
|
+
<ch-markdown-viewer
|
|
910
|
+
part=${tokenMap(Object.assign({
|
|
911
|
+
[`error content ${s.id}`]: true
|
|
912
|
+
}, s.parts ? {
|
|
913
|
+
[s.parts]: true
|
|
914
|
+
} : {}))}
|
|
915
|
+
.renderCode=${
|
|
916
|
+
// WA: Define codeBlockRender as "any" to avoid types incompatibility:
|
|
917
|
+
// codeBlockRender returns TemplateResult and renderCode expects TemplateResult | undefined
|
|
918
|
+
// In Chameleon this type mismatch does not happens. TODO: Evaluate a solution in Chameleon.
|
|
919
|
+
e(i)}
|
|
920
|
+
.theme=${(o = i.markdownTheme) !== null && o !== void 0 ? o : undefined}
|
|
921
|
+
.value=${r}
|
|
922
|
+
></ch-markdown-viewer>`;
|
|
923
|
+
};
|
|
924
|
+
|
|
925
|
+
// No modification. It is required to be defined.
|
|
926
|
+
const defaultSystemContentRender = () => "string | TemplateResult"
|
|
927
|
+
// No modification. It is required to be defined.
|
|
928
|
+
;
|
|
929
|
+
|
|
930
|
+
const defaultUserContentRender = s => {
|
|
931
|
+
var i;
|
|
932
|
+
return (i = getMessageContent(s)) !== null && i !== void 0 ? i : "";
|
|
933
|
+
};
|
|
934
|
+
|
|
935
|
+
const pt = {
|
|
936
|
+
// TODO: Check if each contentRender can be optional, since it may be not me required to implement
|
|
937
|
+
// a custom render for each type of content. ie.: Mercury does not requres to customize "system" and "user"
|
|
938
|
+
assistant: customAssistantContentRender,
|
|
939
|
+
error: customErrorContentRender,
|
|
940
|
+
system: defaultSystemContentRender,
|
|
941
|
+
user: defaultUserContentRender
|
|
942
|
+
};
|
|
943
|
+
|
|
944
|
+
const customContentRender = (s, i, e) => pt[s.role](s, i, e)
|
|
945
|
+
// /Content
|
|
946
|
+
;
|
|
947
|
+
|
|
948
|
+
const ft = {
|
|
949
|
+
actions: customActionsRender,
|
|
950
|
+
codeBlock: customCodeBlockRender,
|
|
951
|
+
content: customContentRender
|
|
952
|
+
};
|
|
953
|
+
|
|
954
|
+
export { ft as r };
|
|
955
|
+
//# sourceMappingURL=p-fd4f9904.js.map
|