@tylertech/forge-ai 0.15.3-dev.1 → 0.16.0-dev.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/MIGRATION.md +192 -0
- package/README.md +76 -2
- package/custom-elements.json +5757 -15411
- package/dist/_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.mjs +9 -0
- package/dist/ai-agent-info/ai-agent-info.mjs +4 -78
- package/dist/ai-agent-info/ai-agent-info2.mjs +55 -0
- package/dist/ai-agent-info/index.d.ts +1 -1
- package/dist/ai-agent-info/index.mjs +1 -5
- package/dist/ai-agent-selector/ai-agent-selector.d.ts +2 -2
- package/dist/ai-agent-selector/ai-agent-selector.mjs +4 -439
- package/dist/ai-agent-selector/ai-agent-selector2.mjs +344 -0
- package/dist/ai-agent-selector/index.mjs +1 -5
- package/dist/ai-artifact/ai-artifact.mjs +4 -39
- package/dist/ai-artifact/ai-artifact2.mjs +31 -0
- package/dist/ai-artifact/index.d.ts +1 -1
- package/dist/ai-artifact/index.mjs +1 -5
- package/dist/ai-artifact-card/ai-artifact-card.mjs +4 -142
- package/dist/ai-artifact-card/ai-artifact-card2.mjs +103 -0
- package/dist/ai-artifact-card/index.d.ts +1 -1
- package/dist/ai-artifact-card/index.mjs +1 -5
- package/dist/ai-artifact-card-group/ai-artifact-card-group.mjs +4 -137
- package/dist/ai-artifact-card-group/ai-artifact-card-group2.mjs +100 -0
- package/dist/ai-artifact-card-group/index.d.ts +1 -1
- package/dist/ai-artifact-card-group/index.mjs +1 -5
- package/dist/ai-assistant-response/ai-assistant-response.d.ts +1 -2
- package/dist/ai-assistant-response/ai-assistant-response.mjs +4 -236
- package/dist/ai-assistant-response/ai-assistant-response2.mjs +137 -0
- package/dist/ai-assistant-response/index.d.ts +1 -1
- package/dist/ai-assistant-response/index.mjs +1 -5
- package/dist/ai-canvas/ai-canvas.d.ts +3 -3
- package/dist/ai-canvas/ai-canvas.mjs +4 -95
- package/dist/ai-canvas/ai-canvas2.mjs +74 -0
- package/dist/ai-canvas/index.d.ts +1 -1
- package/dist/ai-canvas/index.mjs +1 -5
- package/dist/ai-chain-of-thought/ai-chain-of-thought.mjs +4 -45
- package/dist/ai-chain-of-thought/ai-chain-of-thought2.mjs +35 -0
- package/dist/ai-chain-of-thought/index.d.ts +5 -5
- package/dist/ai-chain-of-thought/index.mjs +6 -17
- package/dist/ai-chain-of-thought/thought-base/index.mjs +1 -5
- package/dist/ai-chain-of-thought/thought-base/thought-base.mjs +4 -43
- package/dist/ai-chain-of-thought/thought-base/thought-base2.mjs +31 -0
- package/dist/ai-chain-of-thought/thought-detail/index.mjs +1 -5
- package/dist/ai-chain-of-thought/thought-detail/thought-detail.mjs +4 -34
- package/dist/ai-chain-of-thought/thought-detail/thought-detail2.mjs +26 -0
- package/dist/ai-chain-of-thought/thought-image/index.mjs +1 -5
- package/dist/ai-chain-of-thought/thought-image/thought-image.mjs +4 -43
- package/dist/ai-chain-of-thought/thought-image/thought-image2.mjs +30 -0
- package/dist/ai-chain-of-thought/thought-search-result/index.mjs +1 -5
- package/dist/ai-chain-of-thought/thought-search-result/thought-search-result.mjs +4 -62
- package/dist/ai-chain-of-thought/thought-search-result/thought-search-result2.mjs +45 -0
- package/dist/ai-chat-header/ai-chat-header.d.ts +7 -5
- package/dist/ai-chat-header/ai-chat-header.mjs +4 -439
- package/dist/ai-chat-header/ai-chat-header2.mjs +319 -0
- package/dist/ai-chat-header/index.d.ts +2 -2
- package/dist/ai-chat-header/index.mjs +1 -5
- package/dist/ai-chat-interface/ai-chat-interface.d.ts +1 -0
- package/dist/ai-chat-interface/ai-chat-interface.mjs +4 -103
- package/dist/ai-chat-interface/ai-chat-interface2.mjs +73 -0
- package/dist/ai-chat-interface/index.mjs +1 -5
- package/dist/ai-client-message/ai-client-message.d.ts +5 -6
- package/dist/ai-client-message/ai-client-message.mjs +4 -112
- package/dist/ai-client-message/ai-client-message2.mjs +76 -0
- package/dist/ai-client-message/index.mjs +1 -5
- package/dist/ai-context-chip/ai-context-chip.d.ts +1 -1
- package/dist/ai-context-chip/ai-context-chip.mjs +4 -169
- package/dist/ai-context-chip/ai-context-chip2.mjs +113 -0
- package/dist/ai-context-chip/index.mjs +1 -5
- package/dist/ai-context-items/ai-context-items.d.ts +11 -5
- package/dist/ai-context-items/ai-context-items.mjs +4 -78
- package/dist/ai-context-items/ai-context-items2.mjs +53 -0
- package/dist/ai-context-items/index.d.ts +1 -1
- package/dist/ai-context-items/index.mjs +1 -5
- package/dist/ai-conversations-panel/ai-conversations-panel.d.ts +2 -2
- package/dist/ai-conversations-panel/ai-conversations-panel.mjs +4 -632
- package/dist/ai-conversations-panel/ai-conversations-panel2.mjs +531 -0
- package/dist/ai-conversations-panel/index.mjs +1 -5
- package/dist/ai-copy-button/ai-copy-button.mjs +4 -116
- package/dist/ai-copy-button/ai-copy-button2.mjs +88 -0
- package/dist/ai-copy-button/index.mjs +1 -5
- package/dist/ai-dialog/ai-dialog.mjs +4 -304
- package/dist/ai-dialog/ai-dialog2.mjs +237 -0
- package/dist/ai-dialog/index.d.ts +1 -1
- package/dist/ai-dialog/index.mjs +1 -5
- package/dist/ai-disclaimer/ai-disclaimer.mjs +4 -70
- package/dist/ai-disclaimer/ai-disclaimer2.mjs +46 -0
- package/dist/ai-disclaimer/index.d.ts +1 -1
- package/dist/ai-disclaimer/index.mjs +1 -5
- package/dist/ai-dropdown-menu/ai-dropdown-menu-item-group.mjs +4 -80
- package/dist/ai-dropdown-menu/ai-dropdown-menu-item-group2.mjs +51 -0
- package/dist/ai-dropdown-menu/ai-dropdown-menu-item.d.ts +5 -1
- package/dist/ai-dropdown-menu/ai-dropdown-menu-item.mjs +4 -330
- package/dist/ai-dropdown-menu/ai-dropdown-menu-item2.mjs +280 -0
- package/dist/ai-dropdown-menu/ai-dropdown-menu-separator.mjs +4 -26
- package/dist/ai-dropdown-menu/ai-dropdown-menu-separator2.mjs +19 -0
- package/dist/ai-dropdown-menu/ai-dropdown-menu.d.ts +5 -0
- package/dist/ai-dropdown-menu/ai-dropdown-menu.mjs +4 -351
- package/dist/ai-dropdown-menu/ai-dropdown-menu2.mjs +268 -0
- package/dist/ai-dropdown-menu/index.d.ts +1 -0
- package/dist/ai-dropdown-menu/index.mjs +5 -10
- package/dist/ai-dropdown-menu/navigation-controller.d.ts +9 -1
- package/dist/ai-dropdown-menu/navigation-controller.mjs +214 -204
- package/dist/ai-dropdown-menu/selection-manager.mjs +202 -182
- package/dist/ai-edit-thread/ai-edit-thread.d.ts +1 -1
- package/dist/ai-edit-thread/ai-edit-thread.mjs +4 -137
- package/dist/ai-edit-thread/ai-edit-thread2.mjs +96 -0
- package/dist/ai-edit-thread/index.d.ts +1 -1
- package/dist/ai-edit-thread/index.mjs +1 -5
- package/dist/ai-empty-state/ai-empty-state.mjs +4 -38
- package/dist/ai-empty-state/ai-empty-state2.mjs +28 -0
- package/dist/ai-empty-state/index.d.ts +1 -1
- package/dist/ai-empty-state/index.mjs +1 -5
- package/dist/ai-error-message/ai-error-message.mjs +4 -80
- package/dist/ai-error-message/ai-error-message2.mjs +62 -0
- package/dist/ai-error-message/index.mjs +1 -5
- package/dist/ai-fab/ai-fab.mjs +4 -81
- package/dist/ai-fab/ai-fab2.mjs +54 -0
- package/dist/ai-fab/index.d.ts +1 -1
- package/dist/ai-fab/index.mjs +1 -5
- package/dist/ai-file-picker/ai-file-picker.d.ts +1 -0
- package/dist/ai-file-picker/ai-file-picker.mjs +4 -224
- package/dist/ai-file-picker/ai-file-picker2.mjs +172 -0
- package/dist/ai-file-picker/index.mjs +1 -4
- package/dist/ai-gradient-container/ai-gradient-container.mjs +4 -61
- package/dist/ai-gradient-container/ai-gradient-container2.mjs +38 -0
- package/dist/ai-gradient-container/index.d.ts +1 -1
- package/dist/ai-gradient-container/index.mjs +1 -5
- package/dist/ai-icon/ai-icon.d.ts +3 -0
- package/dist/ai-icon/ai-icon.mjs +4 -71
- package/dist/ai-icon/ai-icon2.mjs +41 -0
- package/dist/ai-icon/index.d.ts +1 -1
- package/dist/ai-icon/index.mjs +1 -5
- package/dist/ai-message-thread/ai-message-thread.d.ts +4 -3
- package/dist/ai-message-thread/ai-message-thread.mjs +4 -360
- package/dist/ai-message-thread/ai-message-thread2.mjs +279 -0
- package/dist/ai-message-thread/index.mjs +1 -5
- package/dist/ai-modal/ai-modal.mjs +4 -178
- package/dist/ai-modal/ai-modal2.mjs +141 -0
- package/dist/ai-modal/index.mjs +1 -4
- package/dist/ai-prompt/ai-prompt.d.ts +10 -6
- package/dist/ai-prompt/ai-prompt.mjs +4 -534
- package/dist/ai-prompt/ai-prompt2.mjs +438 -0
- package/dist/ai-prompt/index.mjs +1 -5
- package/dist/ai-reasoning/ai-reasoning.mjs +4 -44
- package/dist/ai-reasoning/ai-reasoning2.mjs +35 -0
- package/dist/ai-reasoning/index.d.ts +2 -2
- package/dist/ai-reasoning/index.mjs +4 -8
- package/dist/ai-reasoning/reasoning-content/index.d.ts +1 -1
- package/dist/ai-reasoning/reasoning-content/index.mjs +1 -5
- package/dist/ai-reasoning/reasoning-content/reasoning-content.mjs +4 -90
- package/dist/ai-reasoning/reasoning-content/reasoning-content2.mjs +68 -0
- package/dist/ai-reasoning-header/ai-reasoning-header.d.ts +7 -1
- package/dist/ai-reasoning-header/ai-reasoning-header.mjs +4 -68
- package/dist/ai-reasoning-header/ai-reasoning-header2.mjs +51 -0
- package/dist/ai-reasoning-header/index.d.ts +1 -1
- package/dist/ai-reasoning-header/index.mjs +1 -5
- package/dist/ai-response-message/ai-response-message.mjs +4 -25
- package/dist/ai-response-message/ai-response-message2.mjs +17 -0
- package/dist/ai-response-message/index.mjs +1 -5
- package/dist/ai-response-message-toolbar/ai-response-message-toolbar.d.ts +1 -1
- package/dist/ai-response-message-toolbar/ai-response-message-toolbar.mjs +4 -230
- package/dist/ai-response-message-toolbar/ai-response-message-toolbar2.mjs +171 -0
- package/dist/ai-response-message-toolbar/index.mjs +1 -5
- package/dist/ai-sidebar/ai-sidebar.d.ts +4 -4
- package/dist/ai-sidebar/ai-sidebar.mjs +4 -256
- package/dist/ai-sidebar/ai-sidebar2.mjs +211 -0
- package/dist/ai-sidebar/index.d.ts +2 -2
- package/dist/ai-sidebar/index.mjs +1 -5
- package/dist/ai-slash-command-menu/ai-slash-command-menu.d.ts +1 -1
- package/dist/ai-slash-command-menu/ai-slash-command-menu.mjs +4 -200
- package/dist/ai-slash-command-menu/ai-slash-command-menu2.mjs +156 -0
- package/dist/ai-slash-command-menu/index.mjs +1 -5
- package/dist/ai-spinner/ai-spinner.mjs +4 -41
- package/dist/ai-spinner/ai-spinner2.mjs +29 -0
- package/dist/ai-spinner/index.d.ts +1 -1
- package/dist/ai-spinner/index.mjs +1 -5
- package/dist/ai-steps/ai-steps.mjs +4 -163
- package/dist/ai-steps/ai-steps2.mjs +133 -0
- package/dist/ai-steps/index.d.ts +1 -1
- package/dist/ai-steps/index.mjs +1 -5
- package/dist/ai-suggestions/ai-suggestions.d.ts +2 -5
- package/dist/ai-suggestions/ai-suggestions.mjs +4 -164
- package/dist/ai-suggestions/ai-suggestions2.mjs +125 -0
- package/dist/ai-suggestions/index.d.ts +2 -1
- package/dist/ai-suggestions/index.mjs +1 -5
- package/dist/ai-thinking-indicator/ai-thinking-indicator.d.ts +2 -1
- package/dist/ai-thinking-indicator/ai-thinking-indicator.mjs +4 -160
- package/dist/ai-thinking-indicator/ai-thinking-indicator2.mjs +143 -0
- package/dist/ai-thinking-indicator/index.d.ts +1 -1
- package/dist/ai-thinking-indicator/index.mjs +1 -5
- package/dist/ai-thread-actions-menu/ai-thread-actions-menu.d.ts +2 -2
- package/dist/ai-thread-actions-menu/ai-thread-actions-menu.mjs +4 -152
- package/dist/ai-thread-actions-menu/ai-thread-actions-menu2.mjs +109 -0
- package/dist/ai-thread-actions-menu/index.d.ts +1 -1
- package/dist/ai-thread-actions-menu/index.mjs +1 -5
- package/dist/ai-threads-search/ai-threads-search.d.ts +3 -4
- package/dist/ai-threads-search/ai-threads-search.mjs +4 -602
- package/dist/ai-threads-search/ai-threads-search2.mjs +495 -0
- package/dist/ai-threads-search/index.d.ts +1 -1
- package/dist/ai-threads-search/index.mjs +1 -5
- package/dist/ai-tool-call/ai-tool-call.d.ts +21 -0
- package/dist/ai-tool-call/ai-tool-call.mjs +4 -0
- package/dist/ai-tool-call/ai-tool-call2.mjs +132 -0
- package/dist/{ai-chatbot → ai-tool-call}/create-tool-renderer.d.ts +1 -1
- package/dist/ai-tool-call/create-tool-renderer.mjs +10 -0
- package/dist/ai-tool-call/index.d.ts +6 -0
- package/dist/ai-tool-call/index.mjs +5 -0
- package/dist/{ai-chatbot → ai-tool-call}/tool-canvas.d.ts +1 -1
- package/dist/ai-tool-call/tool-canvas.mjs +135 -0
- package/dist/ai-tool-call/utils.d.ts +12 -0
- package/dist/ai-tool-call/utils.mjs +20 -0
- package/dist/ai-tool-call-indicator/ai-tool-call-indicator.d.ts +1 -1
- package/dist/ai-tool-call-indicator/ai-tool-call-indicator.mjs +4 -331
- package/dist/ai-tool-call-indicator/ai-tool-call-indicator2.mjs +225 -0
- package/dist/ai-tool-call-indicator/index.mjs +1 -5
- package/dist/ai-user-message/ai-user-message.mjs +4 -151
- package/dist/ai-user-message/ai-user-message2.mjs +105 -0
- package/dist/ai-user-message/index.mjs +1 -5
- package/dist/ai-user-message-toolbar/ai-user-message-toolbar.mjs +4 -160
- package/dist/ai-user-message-toolbar/ai-user-message-toolbar2.mjs +102 -0
- package/dist/ai-user-message-toolbar/index.mjs +1 -5
- package/dist/ai-voice-input/ai-voice-input.d.ts +1 -1
- package/dist/ai-voice-input/ai-voice-input.mjs +4 -113
- package/dist/ai-voice-input/ai-voice-input2.mjs +92 -0
- package/dist/ai-voice-input/index.d.ts +1 -1
- package/dist/ai-voice-input/index.mjs +1 -5
- package/dist/core/drag-controller.mjs +196 -221
- package/dist/core/index.d.ts +3 -2
- package/dist/core/index.mjs +7 -8
- package/dist/core/overlay/index.mjs +1 -4
- package/dist/core/overlay/overlay.d.ts +1 -1
- package/dist/core/overlay/overlay.mjs +4 -180
- package/dist/core/overlay/overlay2.mjs +146 -0
- package/dist/core/popover/index.mjs +1 -4
- package/dist/core/popover/popover.mjs +4 -98
- package/dist/core/popover/popover2.mjs +71 -0
- package/dist/core/resize-controller.mjs +132 -154
- package/dist/core/tooltip/index.mjs +1 -4
- package/dist/core/tooltip/tooltip.mjs +4 -279
- package/dist/core/tooltip/tooltip2.mjs +213 -0
- package/dist/index.d.ts +45 -53
- package/dist/index.mjs +100 -214
- package/dist/jsx.d.ts +895 -0
- package/dist/tools/ai-data-table/ai-data-table.d.ts +1 -2
- package/dist/tools/ai-data-table/ai-data-table.mjs +4 -257
- package/dist/tools/ai-data-table/ai-data-table2.mjs +185 -0
- package/dist/tools/ai-data-table/index.d.ts +0 -1
- package/dist/tools/ai-data-table/index.mjs +1 -6
- package/dist/tools/ai-paginator/ai-paginator.d.ts +14 -0
- package/dist/tools/ai-paginator/ai-paginator.mjs +4 -115
- package/dist/tools/ai-paginator/ai-paginator2.mjs +90 -0
- package/dist/tools/ai-paginator/index.mjs +1 -4
- package/dist/tools/ai-steps/ai-steps.d.ts +2 -3
- package/dist/tools/ai-steps/ai-steps.mjs +4 -49
- package/dist/tools/ai-steps/ai-steps2.mjs +30 -0
- package/dist/tools/ai-steps/index.d.ts +0 -1
- package/dist/tools/ai-steps/index.mjs +1 -6
- package/dist/tools/index.d.ts +3 -3
- package/dist/tools/index.mjs +7 -12
- package/dist/types/chat.d.ts +102 -0
- package/dist/types/feature.d.ts +1 -0
- package/dist/types/file.d.ts +36 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/types/index.mjs +0 -0
- package/dist/types/thread.d.ts +14 -0
- package/dist/types/tool.d.ts +197 -0
- package/dist/utils/csv-utils.mjs +37 -57
- package/dist/utils/delete-thread-controller.d.ts +1 -1
- package/dist/utils/delete-thread-controller.mjs +48 -71
- package/dist/utils/dom.d.ts +14 -0
- package/dist/utils/dom.mjs +30 -0
- package/dist/utils/format.d.ts +9 -0
- package/dist/utils/format.mjs +27 -0
- package/dist/utils/index.d.ts +9 -6
- package/dist/utils/index.mjs +6 -16
- package/dist/utils/infinite-scroll-controller.mjs +88 -94
- package/dist/utils/keyboard-navigation-controller.mjs +62 -70
- package/dist/utils/markdown-stream-controller.mjs +48 -0
- package/dist/utils/markdown.d.ts +10 -1
- package/dist/utils/markdown.mjs +261 -40
- package/dist/utils/storage-utils.mjs +30 -24
- package/package.json +39 -103
- package/dist/ai-agent-info/ai-agent-info.scss.mjs +0 -4
- package/dist/ai-agent-selector/ai-agent-selector.scss.mjs +0 -4
- package/dist/ai-artifact/ai-artifact.scss.mjs +0 -4
- package/dist/ai-artifact-card/ai-artifact-card.scss.mjs +0 -283
- package/dist/ai-artifact-card-group/ai-artifact-card-group.scss.mjs +0 -173
- package/dist/ai-assistant-response/ai-assistant-response.scss.mjs +0 -4
- package/dist/ai-attachment/ai-attachment.d.ts +0 -39
- package/dist/ai-attachment/ai-attachment.mjs +0 -130
- package/dist/ai-attachment/ai-attachment.scss.mjs +0 -4
- package/dist/ai-attachment/index.d.ts +0 -1
- package/dist/ai-attachment/index.mjs +0 -5
- package/dist/ai-button/ai-button.d.ts +0 -21
- package/dist/ai-button/ai-button.mjs +0 -68
- package/dist/ai-button/ai-button.scss.mjs +0 -4
- package/dist/ai-button/index.d.ts +0 -1
- package/dist/ai-button/index.mjs +0 -5
- package/dist/ai-canvas/ai-canvas.scss.mjs +0 -4
- package/dist/ai-chain-of-thought/ai-chain-of-thought.scss.mjs +0 -4
- package/dist/ai-chain-of-thought/thought-base/thought-base.scss.mjs +0 -4
- package/dist/ai-chain-of-thought/thought-detail/thought-detail.scss.mjs +0 -4
- package/dist/ai-chain-of-thought/thought-image/thought-image.scss.mjs +0 -4
- package/dist/ai-chain-of-thought/thought-search-result/thought-search-result.scss.mjs +0 -4
- package/dist/ai-chat-header/ai-chat-header.scss.mjs +0 -4
- package/dist/ai-chat-interface/ai-chat-interface.scss.mjs +0 -4
- package/dist/ai-chatbot/ag-ui-adapter.d.ts +0 -24
- package/dist/ai-chatbot/ag-ui-adapter.mjs +0 -388
- package/dist/ai-chatbot/agent-adapter.d.ts +0 -310
- package/dist/ai-chatbot/agent-adapter.mjs +0 -221
- package/dist/ai-chatbot/agent-runner.d.ts +0 -41
- package/dist/ai-chatbot/agent-runner.mjs +0 -265
- package/dist/ai-chatbot/ai-chatbot-base.d.ts +0 -179
- package/dist/ai-chatbot/ai-chatbot-base.mjs +0 -684
- package/dist/ai-chatbot/ai-chatbot-tool-call.d.ts +0 -19
- package/dist/ai-chatbot/ai-chatbot-tool-call.mjs +0 -182
- package/dist/ai-chatbot/ai-chatbot-tool-call.scss.mjs +0 -4
- package/dist/ai-chatbot/ai-chatbot.d.ts +0 -196
- package/dist/ai-chatbot/ai-chatbot.mjs +0 -502
- package/dist/ai-chatbot/ai-chatbot.scss.mjs +0 -4
- package/dist/ai-chatbot/create-tool-renderer.mjs +0 -16
- package/dist/ai-chatbot/event-emitter.d.ts +0 -43
- package/dist/ai-chatbot/event-emitter.mjs +0 -81
- package/dist/ai-chatbot/file-upload-manager.d.ts +0 -27
- package/dist/ai-chatbot/file-upload-manager.mjs +0 -106
- package/dist/ai-chatbot/http-agent-with-credentials.d.ts +0 -8
- package/dist/ai-chatbot/http-agent-with-credentials.mjs +0 -14
- package/dist/ai-chatbot/index.d.ts +0 -18
- package/dist/ai-chatbot/index.mjs +0 -40
- package/dist/ai-chatbot/markdown-stream-controller.mjs +0 -50
- package/dist/ai-chatbot/message-state-controller.d.ts +0 -72
- package/dist/ai-chatbot/message-state-controller.mjs +0 -392
- package/dist/ai-chatbot/request-serialization.d.ts +0 -33
- package/dist/ai-chatbot/request-serialization.mjs +0 -31
- package/dist/ai-chatbot/tool-canvas.mjs +0 -128
- package/dist/ai-chatbot/types.d.ts +0 -582
- package/dist/ai-chatbot/utils.d.ts +0 -49
- package/dist/ai-chatbot/utils.mjs +0 -114
- package/dist/ai-chatbot-launcher/ai-chatbot-launcher.d.ts +0 -190
- package/dist/ai-chatbot-launcher/ai-chatbot-launcher.mjs +0 -986
- package/dist/ai-chatbot-launcher/ai-chatbot-launcher.scss.mjs +0 -4
- package/dist/ai-chatbot-launcher/index.d.ts +0 -1
- package/dist/ai-chatbot-launcher/index.mjs +0 -5
- package/dist/ai-client-message/ai-client-message.scss.mjs +0 -4
- package/dist/ai-confirmation-prompt/ai-confirmation-prompt.d.ts +0 -34
- package/dist/ai-confirmation-prompt/ai-confirmation-prompt.mjs +0 -134
- package/dist/ai-confirmation-prompt/ai-confirmation-prompt.scss.mjs +0 -4
- package/dist/ai-confirmation-prompt/index.d.ts +0 -1
- package/dist/ai-confirmation-prompt/index.mjs +0 -5
- package/dist/ai-context-chip/ai-context-chip.scss.mjs +0 -4
- package/dist/ai-context-items/ai-context-items.scss.mjs +0 -4
- package/dist/ai-conversations-panel/ai-conversations-panel.scss.mjs +0 -4
- package/dist/ai-copy-button/ai-copy-button.scss.mjs +0 -4
- package/dist/ai-dialog/ai-dialog.scss.mjs +0 -4
- package/dist/ai-disclaimer/ai-disclaimer.scss.mjs +0 -4
- package/dist/ai-dropdown-menu/ai-dropdown-menu-item-group.scss.mjs +0 -4
- package/dist/ai-dropdown-menu/ai-dropdown-menu-item.scss.mjs +0 -4
- package/dist/ai-dropdown-menu/ai-dropdown-menu-separator.scss.mjs +0 -4
- package/dist/ai-dropdown-menu/ai-dropdown-menu.scss.mjs +0 -4
- package/dist/ai-edit-thread/ai-edit-thread.scss.mjs +0 -4
- package/dist/ai-embedded-chat/ai-embedded-chat.d.ts +0 -64
- package/dist/ai-embedded-chat/ai-embedded-chat.mjs +0 -173
- package/dist/ai-embedded-chat/ai-embedded-chat.scss.mjs +0 -4
- package/dist/ai-embedded-chat/index.d.ts +0 -1
- package/dist/ai-embedded-chat/index.mjs +0 -5
- package/dist/ai-empty-state/ai-empty-state.scss.mjs +0 -4
- package/dist/ai-error-message/ai-error-message.scss.mjs +0 -4
- package/dist/ai-fab/ai-fab.scss.mjs +0 -4
- package/dist/ai-file-picker/ai-file-picker.scss.mjs +0 -4
- package/dist/ai-floating-chat/ai-floating-chat.d.ts +0 -53
- package/dist/ai-floating-chat/ai-floating-chat.mjs +0 -147
- package/dist/ai-floating-chat/ai-floating-chat.scss.mjs +0 -4
- package/dist/ai-floating-chat/index.d.ts +0 -1
- package/dist/ai-floating-chat/index.mjs +0 -5
- package/dist/ai-gradient-container/ai-gradient-container.scss.mjs +0 -4
- package/dist/ai-icon/ai-icon.scss.mjs +0 -4
- package/dist/ai-icon-button/ai-icon-button.d.ts +0 -19
- package/dist/ai-icon-button/ai-icon-button.mjs +0 -66
- package/dist/ai-icon-button/ai-icon-button.scss.mjs +0 -4
- package/dist/ai-icon-button/index.d.ts +0 -1
- package/dist/ai-icon-button/index.mjs +0 -5
- package/dist/ai-message-thread/ai-message-thread.scss.mjs +0 -4
- package/dist/ai-modal/ai-modal.scss.mjs +0 -4
- package/dist/ai-prompt/ai-prompt.scss.mjs +0 -4
- package/dist/ai-prompt/prompt-button/index.d.ts +0 -1
- package/dist/ai-prompt/prompt-button/index.mjs +0 -5
- package/dist/ai-prompt/prompt-button/prompt-button.d.ts +0 -16
- package/dist/ai-prompt/prompt-button/prompt-button.mjs +0 -40
- package/dist/ai-prompt/prompt-button/prompt-button.scss.mjs +0 -4
- package/dist/ai-reasoning/ai-reasoning.scss.mjs +0 -4
- package/dist/ai-reasoning/reasoning-content/reasoning-content.scss.mjs +0 -4
- package/dist/ai-reasoning-header/ai-reasoning-header.scss.mjs +0 -4
- package/dist/ai-response-message/ai-response-message.scss.mjs +0 -4
- package/dist/ai-response-message-toolbar/ai-response-message-toolbar.scss.mjs +0 -4
- package/dist/ai-sidebar/ai-sidebar.scss.mjs +0 -4
- package/dist/ai-sidebar-chat/ai-sidebar-chat.d.ts +0 -54
- package/dist/ai-sidebar-chat/ai-sidebar-chat.mjs +0 -163
- package/dist/ai-sidebar-chat/ai-sidebar-chat.scss.mjs +0 -4
- package/dist/ai-sidebar-chat/index.d.ts +0 -1
- package/dist/ai-sidebar-chat/index.mjs +0 -5
- package/dist/ai-slash-command-menu/ai-slash-command-menu.scss.mjs +0 -4
- package/dist/ai-spinner/ai-spinner.scss.mjs +0 -4
- package/dist/ai-steps/ai-steps.scss.mjs +0 -4
- package/dist/ai-suggestions/ai-suggestions.scss.mjs +0 -500
- package/dist/ai-thinking-indicator/ai-thinking-indicator.scss.mjs +0 -143
- package/dist/ai-thread-actions-menu/ai-thread-actions-menu.scss.mjs +0 -4
- package/dist/ai-threads/ai-threads.d.ts +0 -82
- package/dist/ai-threads/ai-threads.mjs +0 -343
- package/dist/ai-threads/ai-threads.scss.mjs +0 -4
- package/dist/ai-threads/index.d.ts +0 -1
- package/dist/ai-threads/index.mjs +0 -5
- package/dist/ai-threads-search/ai-threads-search.scss.mjs +0 -4
- package/dist/ai-tool-call-indicator/ai-tool-call-indicator.scss.mjs +0 -4
- package/dist/ai-user-message/ai-user-message.scss.mjs +0 -4
- package/dist/ai-user-message-toolbar/ai-user-message-toolbar.scss.mjs +0 -4
- package/dist/ai-voice-input/ai-voice-input.scss.mjs +0 -4
- package/dist/core/canvas-controller.d.ts +0 -81
- package/dist/core/canvas-controller.mjs +0 -221
- package/dist/core/chatbot-core-controller.d.ts +0 -57
- package/dist/core/chatbot-core-controller.mjs +0 -545
- package/dist/core/overlay/overlay.scss.mjs +0 -4
- package/dist/core/popover/popover.scss.mjs +0 -4
- package/dist/core/tooltip/tooltip.scss.mjs +0 -4
- package/dist/tools/ai-data-table/ai-data-table-definition.d.ts +0 -2
- package/dist/tools/ai-data-table/ai-data-table-definition.mjs +0 -43
- package/dist/tools/ai-data-table/ai-data-table.scss.mjs +0 -4
- package/dist/tools/ai-mcp-app/ai-mcp-app.d.ts +0 -70
- package/dist/tools/ai-mcp-app/ai-mcp-app.mjs +0 -589
- package/dist/tools/ai-mcp-app/ai-mcp-app.scss.mjs +0 -4
- package/dist/tools/ai-mcp-app/index.d.ts +0 -3
- package/dist/tools/ai-mcp-app/index.mjs +0 -6
- package/dist/tools/ai-mcp-app/mcp-app-bridge-controller.d.ts +0 -60
- package/dist/tools/ai-mcp-app/mcp-app-bridge-controller.mjs +0 -147
- package/dist/tools/ai-mcp-app/mcp-app-bridge-types.d.ts +0 -124
- package/dist/tools/ai-mcp-app/mcp-app-bridge.d.ts +0 -41
- package/dist/tools/ai-mcp-app/mcp-app-bridge.mjs +0 -293
- package/dist/tools/ai-mcp-app/mcp-app-context.d.ts +0 -46
- package/dist/tools/ai-mcp-app/mcp-app-context.mjs +0 -5
- package/dist/tools/ai-paginator/ai-paginator.scss.mjs +0 -4
- package/dist/tools/ai-steps/ai-steps-definition.d.ts +0 -2
- package/dist/tools/ai-steps/ai-steps-definition.mjs +0 -51
- package/dist/tools/ai-steps/ai-steps.scss.mjs +0 -4
- package/dist/utils/inert-outside.d.ts +0 -7
- package/dist/utils/inert-outside.mjs +0 -28
- package/dist/utils.d.ts +0 -32
- package/dist/utils.mjs +0 -57
- /package/dist/{ai-chatbot → utils}/markdown-stream-controller.d.ts +0 -0
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
import __decorate from "../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.mjs";
|
|
2
|
+
import "../core/tooltip/tooltip2.mjs";
|
|
3
|
+
import "../ai-agent-info/ai-agent-info2.mjs";
|
|
4
|
+
import "../ai-agent-selector/ai-agent-selector2.mjs";
|
|
5
|
+
import "../ai-icon/ai-icon2.mjs";
|
|
6
|
+
import "../ai-dropdown-menu/ai-dropdown-menu-separator2.mjs";
|
|
7
|
+
import "../ai-dropdown-menu/ai-dropdown-menu-item2.mjs";
|
|
8
|
+
import "../ai-dropdown-menu/ai-dropdown-menu2.mjs";
|
|
9
|
+
import "../ai-modal/ai-modal2.mjs";
|
|
10
|
+
import ai_chat_header_default from "./ai-chat-header.mjs";
|
|
11
|
+
import { LitElement, html, unsafeCSS } from "lit";
|
|
12
|
+
import { customElement, property, state } from "lit/decorators.js";
|
|
13
|
+
import { when } from "lit/directives/when.js";
|
|
14
|
+
import { createRef, ref } from "lit/directives/ref.js";
|
|
15
|
+
import { html as html$1, unsafeStatic } from "lit/static-html.js";
|
|
16
|
+
//#region src/lib/ai-chat-header/ai-chat-header.ts
|
|
17
|
+
var AiChatHeaderComponentTagName = "forge-ai-chat-header";
|
|
18
|
+
var AiChatHeaderComponent = class AiChatHeaderComponent extends LitElement {
|
|
19
|
+
constructor(..._args) {
|
|
20
|
+
super(..._args);
|
|
21
|
+
this.showExpandButton = false;
|
|
22
|
+
this.showMinimizeButton = false;
|
|
23
|
+
this.expanded = false;
|
|
24
|
+
this.minimizeIcon = "default";
|
|
25
|
+
this.options = "enabled";
|
|
26
|
+
this.exportOption = "enabled";
|
|
27
|
+
this.clearOption = "enabled";
|
|
28
|
+
this.headingLevel = 2;
|
|
29
|
+
this.titleText = "AI Assistant";
|
|
30
|
+
this.agents = [];
|
|
31
|
+
this.disableAgentSelector = false;
|
|
32
|
+
this.showConversationsButton = false;
|
|
33
|
+
this.hasConversationsError = false;
|
|
34
|
+
this.#agentInfoModalRef = createRef();
|
|
35
|
+
this._isTitleOverflowing = false;
|
|
36
|
+
}
|
|
37
|
+
static {
|
|
38
|
+
this.styles = unsafeCSS(ai_chat_header_default);
|
|
39
|
+
}
|
|
40
|
+
#agentInfoModalRef;
|
|
41
|
+
updated(changedProperties) {
|
|
42
|
+
if ((changedProperties.has("titleText") || changedProperties.has("headingLevel")) && this.agents.length === 0) this.#checkTitleOverflow();
|
|
43
|
+
}
|
|
44
|
+
get #hasAvailableOptions() {
|
|
45
|
+
return this.exportOption === "enabled" || this.clearOption === "enabled" || !!this.agentInfo;
|
|
46
|
+
}
|
|
47
|
+
get #titleElement() {
|
|
48
|
+
if (this.agents.length) return html`
|
|
49
|
+
<forge-ai-agent-selector
|
|
50
|
+
.agents=${this.agents}
|
|
51
|
+
.selectedAgentId=${this.selectedAgentId}
|
|
52
|
+
.titleText=${this.titleText}
|
|
53
|
+
?disabled=${this.disableAgentSelector}
|
|
54
|
+
@forge-ai-agent-selector-change=${this.#handleAgentChange}>
|
|
55
|
+
<slot name="icon" slot="icon">
|
|
56
|
+
<forge-ai-icon></forge-ai-icon>
|
|
57
|
+
</slot>
|
|
58
|
+
</forge-ai-agent-selector>
|
|
59
|
+
`;
|
|
60
|
+
const tagName = unsafeStatic(`h${this.headingLevel}`);
|
|
61
|
+
return html$1`
|
|
62
|
+
<slot name="icon" slot="icon">
|
|
63
|
+
<forge-ai-icon></forge-ai-icon>
|
|
64
|
+
</slot>
|
|
65
|
+
<${tagName} class="title" id="title-container">${this.titleText}</${tagName}>
|
|
66
|
+
${when(this._isTitleOverflowing, () => html`<forge-ai-tooltip for="title-container" placement="bottom">${this.titleText}</forge-ai-tooltip>`)}
|
|
67
|
+
`;
|
|
68
|
+
}
|
|
69
|
+
render() {
|
|
70
|
+
return html`
|
|
71
|
+
<div class="header">
|
|
72
|
+
<div class="start" id="title-container">
|
|
73
|
+
${when(this.showConversationsButton, () => html`
|
|
74
|
+
<button
|
|
75
|
+
id="conversations-button"
|
|
76
|
+
@click=${this.#handleConversationsToggle}
|
|
77
|
+
aria-label=${this.hasConversationsError ? "Toggle conversations panel - Failed to load" : "Toggle conversations panel"}
|
|
78
|
+
class="conversations-button forge-icon-button forge-icon-button--medium ai-icon-button">
|
|
79
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true">
|
|
80
|
+
<path d="M3 6h18v2H3zm0 5h18v2H3zm0 5h18v2H3z" />
|
|
81
|
+
</svg>
|
|
82
|
+
${when(this.hasConversationsError, () => html`<span class="forge-badge forge-badge--dot conversations-button__error-badge"></span>`)}
|
|
83
|
+
</button>
|
|
84
|
+
`)}
|
|
85
|
+
${this.#titleElement}
|
|
86
|
+
<slot name="thread-name"></slot>
|
|
87
|
+
</div>
|
|
88
|
+
<div class="end">
|
|
89
|
+
<slot name="header-actions"></slot>
|
|
90
|
+
${when(this.showMinimizeButton, () => html`
|
|
91
|
+
<button
|
|
92
|
+
id="minimize-button"
|
|
93
|
+
@click=${this.#handleMinimizeClick}
|
|
94
|
+
aria-label="Minimize chat window"
|
|
95
|
+
class="forge-icon-button forge-icon-button--medium ai-icon-button">
|
|
96
|
+
${when(this.minimizeIcon === "default", () => html`
|
|
97
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true">
|
|
98
|
+
<path fill="none" d="M0 0h24v24H0z" />
|
|
99
|
+
<path d="M6 19h12v2H6z" />
|
|
100
|
+
</svg>
|
|
101
|
+
`, () => html`
|
|
102
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true">
|
|
103
|
+
<defs>
|
|
104
|
+
<style>
|
|
105
|
+
.cls-1 {
|
|
106
|
+
fill: none;
|
|
107
|
+
}
|
|
108
|
+
</style>
|
|
109
|
+
</defs>
|
|
110
|
+
<path d="M0 0h24v24H0Z" class="cls-1" />
|
|
111
|
+
<path d="M0 0h24v24H0Z" class="cls-1" />
|
|
112
|
+
<path d="M0 0h24v24H0Z" class="cls-1" />
|
|
113
|
+
<path d="M15.89 5H3v14h12.89ZM7.65 15.46l2.58-2.59H4.56v-2h5.67L7.65 8.28l1.41-1.41 5 5-5 5ZM17.89 4.98H21v14.04h-3.11z" class="cls-1" />
|
|
114
|
+
<path d="M9.06 6.87 7.65 8.28l2.58 2.59H4.56v2h5.67l-2.58 2.59 1.41 1.41 5-5z" />
|
|
115
|
+
<path d="M21 3H3a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h18a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2M3 5h12.89v14H3Zm18 14h-3.11V5H21Z" />
|
|
116
|
+
</svg>
|
|
117
|
+
`)}
|
|
118
|
+
</button>
|
|
119
|
+
<forge-ai-tooltip id="minimize-tooltip" for="minimize-button" placement="bottom"> Minimize chat to taskbar </forge-ai-tooltip>
|
|
120
|
+
`)}
|
|
121
|
+
${when(this.showExpandButton, () => html`
|
|
122
|
+
<button
|
|
123
|
+
id="expand-button"
|
|
124
|
+
@click=${this.#handleExpandClick}
|
|
125
|
+
aria-label=${this.expanded ? "Collapse chat window" : "Expand chat window"}
|
|
126
|
+
class="forge-icon-button forge-icon-button--medium ai-icon-button">
|
|
127
|
+
${when(this.expanded, () => html`
|
|
128
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true">
|
|
129
|
+
<path d="M14 14h5v2h-3v3h-2zm-9 0h5v5H8v-3H5zm3-9h2v5H5V8h3zm11 3v2h-5V5h2v3z" />
|
|
130
|
+
</svg>
|
|
131
|
+
`, () => html`
|
|
132
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true">
|
|
133
|
+
<path d="M5 5h5v2H7v3H5zm9 0h5v5h-2V7h-3zm3 9h2v5h-5v-2h3zm-7 3v2H5v-5h2v3z" />
|
|
134
|
+
</svg>
|
|
135
|
+
`)}
|
|
136
|
+
</button>
|
|
137
|
+
<forge-ai-tooltip id="expand-tooltip" for="expand-button" placement="bottom">
|
|
138
|
+
${this.expanded ? "Collapse to smaller window" : "Expand to full window"}
|
|
139
|
+
</forge-ai-tooltip>
|
|
140
|
+
`)}
|
|
141
|
+
${when(this.options === "enabled" && this.#hasAvailableOptions, () => html`
|
|
142
|
+
<forge-ai-dropdown-menu
|
|
143
|
+
variant="icon-button"
|
|
144
|
+
popover-placement="bottom-end"
|
|
145
|
+
selection-mode="none"
|
|
146
|
+
trigger-label="More options"
|
|
147
|
+
@forge-ai-dropdown-menu-change=${this.#handleDropdownChange}>
|
|
148
|
+
<svg slot="trigger-content" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true" class="forge-icon ai-icon-button">
|
|
149
|
+
<path fill="none" d="M0 0h24v24H0z" />
|
|
150
|
+
<path
|
|
151
|
+
d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2" />
|
|
152
|
+
</svg>
|
|
153
|
+
${when(this.exportOption === "enabled", () => html`
|
|
154
|
+
<forge-ai-dropdown-menu-item value="export">
|
|
155
|
+
<svg slot="start" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="forge-icon" aria-hidden="true">
|
|
156
|
+
<path d="m15.61 8.92 1.41-1.41-5-5-5 5 1.41 1.41 2.59-2.58v9.67h2V6.34z" />
|
|
157
|
+
<path d="M19.05 14.06V19h-14v-4.94h-2V19a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-4.94z" />
|
|
158
|
+
</svg>
|
|
159
|
+
<span>Export current chat</span>
|
|
160
|
+
</forge-ai-dropdown-menu-item>
|
|
161
|
+
`)}
|
|
162
|
+
${when(this.agentInfo, () => html`
|
|
163
|
+
<forge-ai-dropdown-menu-item value="info">
|
|
164
|
+
<svg slot="start" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="forge-icon" aria-hidden="true">
|
|
165
|
+
<path fill="none" d="M0 0h24v24H0z" />
|
|
166
|
+
<path
|
|
167
|
+
d="M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8" />
|
|
168
|
+
</svg>
|
|
169
|
+
<span>Info</span>
|
|
170
|
+
</forge-ai-dropdown-menu-item>
|
|
171
|
+
`)}
|
|
172
|
+
${when(this.clearOption === "enabled" && (this.agentInfo || this.exportOption === "enabled"), () => html`<forge-ai-dropdown-menu-separator></forge-ai-dropdown-menu-separator>`)}
|
|
173
|
+
${when(this.clearOption === "enabled", () => html`
|
|
174
|
+
<forge-ai-dropdown-menu-item value="clear-chat">
|
|
175
|
+
<svg slot="start" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="forge-icon" aria-hidden="true">
|
|
176
|
+
<path d="M6 19a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z" />
|
|
177
|
+
</svg>
|
|
178
|
+
<span>Clear chat</span>
|
|
179
|
+
</forge-ai-dropdown-menu-item>
|
|
180
|
+
`)}
|
|
181
|
+
</forge-ai-dropdown-menu>
|
|
182
|
+
`)}
|
|
183
|
+
</div>
|
|
184
|
+
</div>
|
|
185
|
+
${when(this.agentInfo, () => html`
|
|
186
|
+
<forge-ai-modal ${ref(this.#agentInfoModalRef)} label="Agent Information">
|
|
187
|
+
<div class="forge-scaffold">
|
|
188
|
+
<div class="forge-scaffold__header">
|
|
189
|
+
<div class="forge-toolbar">
|
|
190
|
+
<h2 class="forge-toolbar__start agent-info-title">Agent Information</h2>
|
|
191
|
+
<div class="forge-toolbar__end">
|
|
192
|
+
<button
|
|
193
|
+
class="forge-icon-button forge-icon-button--medium ai-icon-button close-button"
|
|
194
|
+
@click=${this.#handleModalClose}
|
|
195
|
+
aria-label="Close agent information dialog">
|
|
196
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true">
|
|
197
|
+
<path fill="none" d="M0 0h24v24H0z" />
|
|
198
|
+
<path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" />
|
|
199
|
+
</svg>
|
|
200
|
+
</button>
|
|
201
|
+
</div>
|
|
202
|
+
</div>
|
|
203
|
+
</div>
|
|
204
|
+
<div class="forge-scaffold__body">
|
|
205
|
+
<div class="agent-info-content">
|
|
206
|
+
<forge-ai-agent-info .agentInfo=${this.agentInfo}></forge-ai-agent-info>
|
|
207
|
+
</div>
|
|
208
|
+
</div>
|
|
209
|
+
<div class="forge-scaffold__footer">
|
|
210
|
+
<div class="forge-toolbar forge-toolbar--inverted">
|
|
211
|
+
<button class="forge-button forge-button--filled forge-toolbar__end" autofocus @click=${this.#handleModalClose}>Close</button>
|
|
212
|
+
</div>
|
|
213
|
+
</div>
|
|
214
|
+
</div>
|
|
215
|
+
</forge-ai-modal>
|
|
216
|
+
`)}
|
|
217
|
+
`;
|
|
218
|
+
}
|
|
219
|
+
#checkTitleOverflow() {
|
|
220
|
+
const titleElement = this.shadowRoot?.querySelector(".title");
|
|
221
|
+
if (titleElement) {
|
|
222
|
+
const isOverflowing = titleElement.scrollWidth > titleElement.offsetWidth;
|
|
223
|
+
if (this._isTitleOverflowing !== isOverflowing) this._isTitleOverflowing = isOverflowing;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
#handleExpandClick() {
|
|
227
|
+
const event = new CustomEvent("forge-ai-chat-header-expand", {
|
|
228
|
+
bubbles: true,
|
|
229
|
+
composed: true
|
|
230
|
+
});
|
|
231
|
+
this.dispatchEvent(event);
|
|
232
|
+
}
|
|
233
|
+
#handleMinimizeClick() {
|
|
234
|
+
const event = new CustomEvent("forge-ai-chat-header-minimize", {
|
|
235
|
+
bubbles: true,
|
|
236
|
+
composed: true
|
|
237
|
+
});
|
|
238
|
+
this.dispatchEvent(event);
|
|
239
|
+
}
|
|
240
|
+
#handleDropdownChange(event) {
|
|
241
|
+
switch (event.detail.value) {
|
|
242
|
+
case "export":
|
|
243
|
+
this.dispatchEvent(new CustomEvent("forge-ai-chat-header-export", {
|
|
244
|
+
bubbles: true,
|
|
245
|
+
composed: true
|
|
246
|
+
}));
|
|
247
|
+
break;
|
|
248
|
+
case "info":
|
|
249
|
+
this.#agentInfoModalRef.value?.show();
|
|
250
|
+
break;
|
|
251
|
+
case "clear-chat": this.dispatchEvent(new CustomEvent("forge-ai-chat-header-clear", {
|
|
252
|
+
bubbles: true,
|
|
253
|
+
composed: true
|
|
254
|
+
}));
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
#handleModalClose() {
|
|
258
|
+
this.#agentInfoModalRef.value?.close();
|
|
259
|
+
}
|
|
260
|
+
#handleAgentChange(event) {
|
|
261
|
+
this.dispatchEvent(new CustomEvent("forge-ai-chat-header-agent-change", {
|
|
262
|
+
detail: event.detail,
|
|
263
|
+
bubbles: true,
|
|
264
|
+
composed: true
|
|
265
|
+
}));
|
|
266
|
+
}
|
|
267
|
+
#handleConversationsToggle() {
|
|
268
|
+
this.dispatchEvent(new CustomEvent("forge-ai-chat-header-conversations-toggle", {
|
|
269
|
+
bubbles: true,
|
|
270
|
+
composed: true
|
|
271
|
+
}));
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* Shows the agent info modal
|
|
275
|
+
*/
|
|
276
|
+
showAgentInfo() {
|
|
277
|
+
this.#agentInfoModalRef.value?.show();
|
|
278
|
+
}
|
|
279
|
+
};
|
|
280
|
+
__decorate([property({
|
|
281
|
+
type: Boolean,
|
|
282
|
+
attribute: "show-expand-button"
|
|
283
|
+
})], AiChatHeaderComponent.prototype, "showExpandButton", void 0);
|
|
284
|
+
__decorate([property({
|
|
285
|
+
type: Boolean,
|
|
286
|
+
attribute: "show-minimize-button"
|
|
287
|
+
})], AiChatHeaderComponent.prototype, "showMinimizeButton", void 0);
|
|
288
|
+
__decorate([property({ type: Boolean })], AiChatHeaderComponent.prototype, "expanded", void 0);
|
|
289
|
+
__decorate([property({ attribute: "minimize-icon" })], AiChatHeaderComponent.prototype, "minimizeIcon", void 0);
|
|
290
|
+
__decorate([property({
|
|
291
|
+
type: Object,
|
|
292
|
+
attribute: false
|
|
293
|
+
})], AiChatHeaderComponent.prototype, "agentInfo", void 0);
|
|
294
|
+
__decorate([property()], AiChatHeaderComponent.prototype, "options", void 0);
|
|
295
|
+
__decorate([property({ attribute: "export-option" })], AiChatHeaderComponent.prototype, "exportOption", void 0);
|
|
296
|
+
__decorate([property({ attribute: "clear-option" })], AiChatHeaderComponent.prototype, "clearOption", void 0);
|
|
297
|
+
__decorate([property({
|
|
298
|
+
attribute: "heading-level",
|
|
299
|
+
type: Number
|
|
300
|
+
})], AiChatHeaderComponent.prototype, "headingLevel", void 0);
|
|
301
|
+
__decorate([property({ attribute: "title-text" })], AiChatHeaderComponent.prototype, "titleText", void 0);
|
|
302
|
+
__decorate([property({ attribute: false })], AiChatHeaderComponent.prototype, "agents", void 0);
|
|
303
|
+
__decorate([property({ attribute: "selected-agent-id" })], AiChatHeaderComponent.prototype, "selectedAgentId", void 0);
|
|
304
|
+
__decorate([property({
|
|
305
|
+
type: Boolean,
|
|
306
|
+
attribute: "disable-agent-selector"
|
|
307
|
+
})], AiChatHeaderComponent.prototype, "disableAgentSelector", void 0);
|
|
308
|
+
__decorate([property({
|
|
309
|
+
type: Boolean,
|
|
310
|
+
attribute: "show-conversations-button"
|
|
311
|
+
})], AiChatHeaderComponent.prototype, "showConversationsButton", void 0);
|
|
312
|
+
__decorate([property({
|
|
313
|
+
type: Boolean,
|
|
314
|
+
attribute: "has-conversations-error"
|
|
315
|
+
})], AiChatHeaderComponent.prototype, "hasConversationsError", void 0);
|
|
316
|
+
__decorate([state()], AiChatHeaderComponent.prototype, "_isTitleOverflowing", void 0);
|
|
317
|
+
AiChatHeaderComponent = __decorate([customElement(AiChatHeaderComponentTagName)], AiChatHeaderComponent);
|
|
318
|
+
//#endregion
|
|
319
|
+
export { AiChatHeaderComponent, AiChatHeaderComponentTagName };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { AiChatHeaderComponent, AiChatHeaderComponentTagName } from './ai-chat-header';
|
|
2
|
-
export type { MinimizeIconType, ForgeAiChatHeaderAgentChangeEventData } from './ai-chat-header';
|
|
1
|
+
export { AiChatHeaderComponent, AiChatHeaderComponentTagName } from './ai-chat-header.js';
|
|
2
|
+
export type { MinimizeIconType, ForgeAiChatHeaderAgentChangeEventData } from './ai-chat-header.js';
|
|
@@ -13,6 +13,7 @@ export declare const AiChatInterfaceComponentTagName: keyof HTMLElementTagNameMa
|
|
|
13
13
|
* @slot suggestions - Slot for AI suggestions component
|
|
14
14
|
* @slot attachments - Slot for file attachments component
|
|
15
15
|
* @slot prompt - Slot for AI prompt component
|
|
16
|
+
* @slot disclaimer - Slot for disclaimer text shown below the prompt
|
|
16
17
|
*/
|
|
17
18
|
export declare class AiChatInterfaceComponent extends LitElement {
|
|
18
19
|
#private;
|
|
@@ -1,103 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import styles from "./ai-chat-interface.scss.mjs";
|
|
6
|
-
var __defProp = Object.defineProperty;
|
|
7
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
8
|
-
var __typeError = (msg) => {
|
|
9
|
-
throw TypeError(msg);
|
|
10
|
-
};
|
|
11
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
12
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
13
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
14
|
-
if (decorator = decorators[i])
|
|
15
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
16
|
-
if (kind && result) __defProp(target, key, result);
|
|
17
|
-
return result;
|
|
18
|
-
};
|
|
19
|
-
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
20
|
-
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
21
|
-
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
22
|
-
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
23
|
-
var _headerSlot, _attachmentsSlot, _suggestionsSlot, _AiChatInterfaceComponent_instances, suggestions_get, attachments_get, _promptSlot, prompt_get, messagesContainer_get, handleSlotChange_fn;
|
|
24
|
-
const AiChatInterfaceComponentTagName = "forge-ai-chat-interface";
|
|
25
|
-
let AiChatInterfaceComponent = class extends LitElement {
|
|
26
|
-
constructor() {
|
|
27
|
-
super(...arguments);
|
|
28
|
-
__privateAdd(this, _AiChatInterfaceComponent_instances);
|
|
29
|
-
__privateAdd(this, _headerSlot, html`<slot name="header" @slotchange=${__privateMethod(this, _AiChatInterfaceComponent_instances, handleSlotChange_fn)}></slot>`);
|
|
30
|
-
__privateAdd(this, _attachmentsSlot, html`<slot name="attachments" @slotchange=${__privateMethod(this, _AiChatInterfaceComponent_instances, handleSlotChange_fn)}></slot>`);
|
|
31
|
-
__privateAdd(this, _suggestionsSlot, html`<slot name="suggestions" @slotchange=${__privateMethod(this, _AiChatInterfaceComponent_instances, handleSlotChange_fn)}></slot>`);
|
|
32
|
-
__privateAdd(this, _promptSlot, html`<slot name="prompt" @slotchange=${__privateMethod(this, _AiChatInterfaceComponent_instances, handleSlotChange_fn)}></slot>`);
|
|
33
|
-
}
|
|
34
|
-
scrollToBottom() {
|
|
35
|
-
const container = this.shadowRoot?.querySelector(".messages-container");
|
|
36
|
-
container?.scrollTo({
|
|
37
|
-
top: container.scrollHeight,
|
|
38
|
-
behavior: "smooth"
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
render() {
|
|
42
|
-
return html`
|
|
43
|
-
<div class="ai-chat-interface">
|
|
44
|
-
${__privateGet(this, _headerSlot)} ${__privateGet(this, _AiChatInterfaceComponent_instances, messagesContainer_get)} ${__privateGet(this, _AiChatInterfaceComponent_instances, suggestions_get)} ${__privateGet(this, _AiChatInterfaceComponent_instances, attachments_get)}
|
|
45
|
-
<div class="prompt-container">
|
|
46
|
-
${__privateGet(this, _AiChatInterfaceComponent_instances, prompt_get)}
|
|
47
|
-
<slot name="disclaimer"></slot>
|
|
48
|
-
</div>
|
|
49
|
-
</div>
|
|
50
|
-
`;
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
_headerSlot = /* @__PURE__ */ new WeakMap();
|
|
54
|
-
_attachmentsSlot = /* @__PURE__ */ new WeakMap();
|
|
55
|
-
_suggestionsSlot = /* @__PURE__ */ new WeakMap();
|
|
56
|
-
_AiChatInterfaceComponent_instances = /* @__PURE__ */ new WeakSet();
|
|
57
|
-
suggestions_get = function() {
|
|
58
|
-
const hasSuggestions = this._slottedSuggestionsNodes.length > 0;
|
|
59
|
-
return when(
|
|
60
|
-
hasSuggestions,
|
|
61
|
-
() => html`<div class="suggestions-container">${__privateGet(this, _suggestionsSlot)}</div>`,
|
|
62
|
-
() => __privateGet(this, _suggestionsSlot)
|
|
63
|
-
);
|
|
64
|
-
};
|
|
65
|
-
attachments_get = function() {
|
|
66
|
-
const hasAttachments = this._slottedAttachmentsNodes.length > 0;
|
|
67
|
-
return when(
|
|
68
|
-
hasAttachments,
|
|
69
|
-
() => html`<div class="attachments-container">${__privateGet(this, _attachmentsSlot)}</div>`,
|
|
70
|
-
() => html`${__privateGet(this, _attachmentsSlot)}`
|
|
71
|
-
);
|
|
72
|
-
};
|
|
73
|
-
_promptSlot = /* @__PURE__ */ new WeakMap();
|
|
74
|
-
prompt_get = function() {
|
|
75
|
-
return __privateGet(this, _promptSlot);
|
|
76
|
-
};
|
|
77
|
-
messagesContainer_get = function() {
|
|
78
|
-
return html`
|
|
79
|
-
<div class="messages-container" part="messages">
|
|
80
|
-
<slot @slotchange=${__privateMethod(this, _AiChatInterfaceComponent_instances, handleSlotChange_fn)}></slot>
|
|
81
|
-
</div>
|
|
82
|
-
`;
|
|
83
|
-
};
|
|
84
|
-
handleSlotChange_fn = function(evt) {
|
|
85
|
-
const slotName = evt.target.name;
|
|
86
|
-
if (["header", "suggestions", "prompt", "attachments"].includes(slotName)) {
|
|
87
|
-
this.requestUpdate();
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
AiChatInterfaceComponent.styles = unsafeCSS(styles);
|
|
91
|
-
__decorateClass([
|
|
92
|
-
queryAssignedNodes({ slot: "suggestions", flatten: true })
|
|
93
|
-
], AiChatInterfaceComponent.prototype, "_slottedSuggestionsNodes", 2);
|
|
94
|
-
__decorateClass([
|
|
95
|
-
queryAssignedNodes({ slot: "attachments", flatten: true })
|
|
96
|
-
], AiChatInterfaceComponent.prototype, "_slottedAttachmentsNodes", 2);
|
|
97
|
-
AiChatInterfaceComponent = __decorateClass([
|
|
98
|
-
customElement(AiChatInterfaceComponentTagName)
|
|
99
|
-
], AiChatInterfaceComponent);
|
|
100
|
-
export {
|
|
101
|
-
AiChatInterfaceComponent,
|
|
102
|
-
AiChatInterfaceComponentTagName
|
|
103
|
-
};
|
|
1
|
+
//#region src/lib/ai-chat-interface/ai-chat-interface.scss?inline
|
|
2
|
+
var ai_chat_interface_default = ":host {\n display: block;\n height: 100%;\n border-radius: inherit;\n overflow: hidden;\n --_ai-chat-interface-message-container-padding: 0;\n}\n\n.ai-chat-interface {\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-family: var(--forge-typography-body1-font-family, var(--forge-typography-font-family, \"Roboto\", sans-serif));\n font-size: var(--forge-typography-body1-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, 0.875)));\n font-weight: var(--forge-typography-body1-font-weight, 400);\n line-height: var(--forge-typography-body1-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.125)));\n letter-spacing: var(--forge-typography-body1-letter-spacing, 0.0357142857em);\n text-transform: var(--forge-typography-body1-text-transform, inherit);\n text-decoration: var(--forge-typography-body1-text-decoration, inherit);\n color: var(--forge-theme-on-surface, #000000);\n display: flex;\n flex-direction: column;\n height: 100%;\n background: linear-gradient(to top, var(--forge-theme-primary-container-minimum, #f7f8fc), var(--forge-theme-surface, #ffffff));\n border-radius: inherit;\n overflow: hidden;\n}\n\n.messages-container::-webkit-scrollbar {\n height: var(--forge-scrollbar-height, 16px);\n width: var(--forge-scrollbar-width, 16px);\n}\n.messages-container::-webkit-scrollbar-track {\n background-color: var(--forge-scrollbar-track-container, var(--forge-theme-surface-container-low, #ebebeb));\n}\n.messages-container::-webkit-scrollbar-track:hover {\n background-color: var(--forge-scrollbar-track-container-hover, var(--forge-theme-surface-container-low, #ebebeb));\n}\n.messages-container::-webkit-scrollbar-corner {\n background-color: var(--forge-scrollbar-track-container, var(--forge-theme-surface-container-low, #ebebeb));\n}\n.messages-container::-webkit-scrollbar-thumb {\n height: var(--forge-scrollbar-thumb-min-height, 32px);\n width: var(--forge-scrollbar-thumb-min-width, 32px);\n border-radius: var(--forge-scrollbar-border-radius, calc(var(--forge-shape-full, 9999px) * var(--forge-shape-factor, 1)));\n border-width: var(--forge-scrollbar-border-width, 3px);\n border-style: solid;\n border-color: transparent;\n background-color: var(--forge-scrollbar-thumb-container, var(--forge-theme-surface-container-medium, #c2c2c2));\n background-clip: content-box;\n}\n.messages-container::-webkit-scrollbar-thumb:hover {\n background-color: var(--forge-scrollbar-thumb-container-hover, var(--forge-theme-surface-container-high, #9e9e9e));\n}\n.messages-container {\n padding: var(--forge-ai-chat-interface-message-container-padding, var(--_ai-chat-interface-message-container-padding));\n overflow-y: auto;\n display: grid;\n flex-grow: 1;\n gap: var(--forge-spacing-medium, 16px);\n}\n@media not all and (min-resolution: 0.001dpcm) {\n @supports (-webkit-appearance: none) {\n .messages-container {\n overflow-y: scroll;\n }\n }\n}\n\n.suggestions-container {\n padding-inline: var(--forge-spacing-medium, 16px);\n padding-block-start: var(--forge-spacing-medium, 16px);\n}\n\n.attachments-container {\n padding-block-end: var(--forge-spacing-medium, 16px);\n padding: var(--forge-spacing-xsmall, 8px) var(--forge-spacing-medium, 16px) 0;\n}\n\n.prompt-container {\n padding: var(--forge-spacing-medium, 16px);\n}";
|
|
3
|
+
//#endregion
|
|
4
|
+
export { ai_chat_interface_default as default };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import __decorate from "../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.mjs";
|
|
2
|
+
import "../ai-gradient-container/ai-gradient-container2.mjs";
|
|
3
|
+
import ai_chat_interface_default from "./ai-chat-interface.mjs";
|
|
4
|
+
import { LitElement, html, unsafeCSS } from "lit";
|
|
5
|
+
import { customElement, queryAssignedNodes } from "lit/decorators.js";
|
|
6
|
+
import { when } from "lit/directives/when.js";
|
|
7
|
+
//#region src/lib/ai-chat-interface/ai-chat-interface.ts
|
|
8
|
+
var AiChatInterfaceComponentTagName = "forge-ai-chat-interface";
|
|
9
|
+
var AiChatInterfaceComponent = class AiChatInterfaceComponent extends LitElement {
|
|
10
|
+
static {
|
|
11
|
+
this.styles = unsafeCSS(ai_chat_interface_default);
|
|
12
|
+
}
|
|
13
|
+
#headerSlot = html`<slot name="header" @slotchange=${this.#handleSlotChange}></slot>`;
|
|
14
|
+
#attachmentsSlot = html`<slot name="attachments" @slotchange=${this.#handleSlotChange}></slot>`;
|
|
15
|
+
#suggestionsSlot = html`<slot name="suggestions" @slotchange=${this.#handleSlotChange}></slot>`;
|
|
16
|
+
get #suggestions() {
|
|
17
|
+
const hasSuggestions = this._slottedSuggestionsNodes.length > 0;
|
|
18
|
+
return when(hasSuggestions, () => html`<div class="suggestions-container">${this.#suggestionsSlot}</div>`, () => this.#suggestionsSlot);
|
|
19
|
+
}
|
|
20
|
+
get #attachments() {
|
|
21
|
+
const hasAttachments = this._slottedAttachmentsNodes.length > 0;
|
|
22
|
+
return when(hasAttachments, () => html`<div class="attachments-container">${this.#attachmentsSlot}</div>`, () => html`${this.#attachmentsSlot}`);
|
|
23
|
+
}
|
|
24
|
+
#promptSlot = html`<slot name="prompt" @slotchange=${this.#handleSlotChange}></slot>`;
|
|
25
|
+
get #prompt() {
|
|
26
|
+
return this.#promptSlot;
|
|
27
|
+
}
|
|
28
|
+
get #messagesContainer() {
|
|
29
|
+
return html`
|
|
30
|
+
<div class="messages-container" part="messages">
|
|
31
|
+
<slot @slotchange=${this.#handleSlotChange}></slot>
|
|
32
|
+
</div>
|
|
33
|
+
`;
|
|
34
|
+
}
|
|
35
|
+
#handleSlotChange(evt) {
|
|
36
|
+
const slotName = evt.target.name;
|
|
37
|
+
if ([
|
|
38
|
+
"header",
|
|
39
|
+
"suggestions",
|
|
40
|
+
"prompt",
|
|
41
|
+
"attachments"
|
|
42
|
+
].includes(slotName)) this.requestUpdate();
|
|
43
|
+
}
|
|
44
|
+
scrollToBottom() {
|
|
45
|
+
const container = this.shadowRoot?.querySelector(".messages-container");
|
|
46
|
+
container?.scrollTo({
|
|
47
|
+
top: container.scrollHeight,
|
|
48
|
+
behavior: "smooth"
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
render() {
|
|
52
|
+
return html`
|
|
53
|
+
<div class="ai-chat-interface">
|
|
54
|
+
${this.#headerSlot} ${this.#messagesContainer} ${this.#suggestions} ${this.#attachments}
|
|
55
|
+
<div class="prompt-container">
|
|
56
|
+
${this.#prompt}
|
|
57
|
+
<slot name="disclaimer"></slot>
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
`;
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
__decorate([queryAssignedNodes({
|
|
64
|
+
slot: "suggestions",
|
|
65
|
+
flatten: true
|
|
66
|
+
})], AiChatInterfaceComponent.prototype, "_slottedSuggestionsNodes", void 0);
|
|
67
|
+
__decorate([queryAssignedNodes({
|
|
68
|
+
slot: "attachments",
|
|
69
|
+
flatten: true
|
|
70
|
+
})], AiChatInterfaceComponent.prototype, "_slottedAttachmentsNodes", void 0);
|
|
71
|
+
AiChatInterfaceComponent = __decorate([customElement(AiChatInterfaceComponentTagName)], AiChatInterfaceComponent);
|
|
72
|
+
//#endregion
|
|
73
|
+
export { AiChatInterfaceComponent, AiChatInterfaceComponentTagName };
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
AiChatInterfaceComponent,
|
|
4
|
-
AiChatInterfaceComponentTagName
|
|
5
|
-
};
|
|
1
|
+
export { AiChatInterfaceComponent, AiChatInterfaceComponentTagName } from "./ai-chat-interface2.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LitElement, TemplateResult, CSSResult } from 'lit';
|
|
2
|
-
import { ClientMessageAction, ClientMessageKind } from '../
|
|
2
|
+
import { ClientMessageAction, ClientMessageKind } from '../types/index.js';
|
|
3
3
|
declare global {
|
|
4
4
|
interface HTMLElementTagNameMap {
|
|
5
5
|
'forge-ai-client-message': AiClientMessageComponent;
|
|
@@ -9,13 +9,12 @@ export declare const AiClientMessageComponentTagName: keyof HTMLElementTagNameMa
|
|
|
9
9
|
/**
|
|
10
10
|
* @tag forge-ai-client-message
|
|
11
11
|
*
|
|
12
|
-
* @summary
|
|
13
|
-
*
|
|
12
|
+
* @summary A standalone message for client-side or system notices, rendered as either plain
|
|
13
|
+
* system-message text or a Forge inline-message banner, depending on `kind`.
|
|
14
14
|
*
|
|
15
15
|
* @description
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* message thread, but exported for direct Storybook/testing use.
|
|
16
|
+
* Use to show notices such as status, warnings or errors in a conversation. Supports optional
|
|
17
|
+
* header, content and action buttons.
|
|
19
18
|
*/
|
|
20
19
|
export declare class AiClientMessageComponent extends LitElement {
|
|
21
20
|
#private;
|