@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
package/dist/ai-icon/ai-icon.mjs
CHANGED
|
@@ -1,71 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import "../ai-gradient-container/ai-gradient-container.mjs";
|
|
6
|
-
import styles from "./ai-icon.scss.mjs";
|
|
7
|
-
var __defProp = Object.defineProperty;
|
|
8
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
9
|
-
var __typeError = (msg) => {
|
|
10
|
-
throw TypeError(msg);
|
|
11
|
-
};
|
|
12
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
13
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
14
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
15
|
-
if (decorator = decorators[i])
|
|
16
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
17
|
-
if (kind && result) __defProp(target, key, result);
|
|
18
|
-
return result;
|
|
19
|
-
};
|
|
20
|
-
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
21
|
-
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
22
|
-
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);
|
|
23
|
-
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), member.set(obj, value), value);
|
|
24
|
-
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
25
|
-
var _internals, _svg, _AiIconComponent_instances, setCssState_fn;
|
|
26
|
-
const AiIconComponentTagName = "forge-ai-icon";
|
|
27
|
-
let AiIconComponent = class extends LitElement {
|
|
28
|
-
constructor() {
|
|
29
|
-
super();
|
|
30
|
-
__privateAdd(this, _AiIconComponent_instances);
|
|
31
|
-
this.outline = false;
|
|
32
|
-
__privateAdd(this, _internals);
|
|
33
|
-
__privateAdd(this, _svg, html`
|
|
34
|
-
<svg width="24" height="24" viewBox="-2 -2 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
|
|
35
|
-
<path
|
|
36
|
-
d="M9.375 10.625L15 12.5L9.375 14.375L7.5 20L5.625 14.375L0 12.5L5.625 10.625L7.5 5L9.375 10.625ZM16.25 3.75L20 5L16.25 6.25L15 10L13.75 6.25L10 5L13.75 3.75L15 0L16.25 3.75Z" />
|
|
37
|
-
</svg>
|
|
38
|
-
`);
|
|
39
|
-
__privateSet(this, _internals, this.attachInternals());
|
|
40
|
-
__privateMethod(this, _AiIconComponent_instances, setCssState_fn).call(this);
|
|
41
|
-
}
|
|
42
|
-
willUpdate(changedProperties) {
|
|
43
|
-
if (changedProperties.has("outline")) {
|
|
44
|
-
__privateMethod(this, _AiIconComponent_instances, setCssState_fn).call(this);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
render() {
|
|
48
|
-
return when(
|
|
49
|
-
this.outline,
|
|
50
|
-
() => html`<forge-ai-gradient-container variant="high">${__privateGet(this, _svg)}</forge-ai-gradient-container>`,
|
|
51
|
-
() => __privateGet(this, _svg)
|
|
52
|
-
);
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
_internals = /* @__PURE__ */ new WeakMap();
|
|
56
|
-
_svg = /* @__PURE__ */ new WeakMap();
|
|
57
|
-
_AiIconComponent_instances = /* @__PURE__ */ new WeakSet();
|
|
58
|
-
setCssState_fn = function() {
|
|
59
|
-
toggleState(__privateGet(this, _internals), "outline", this.outline);
|
|
60
|
-
};
|
|
61
|
-
AiIconComponent.styles = unsafeCSS(styles);
|
|
62
|
-
__decorateClass([
|
|
63
|
-
property({ type: Boolean })
|
|
64
|
-
], AiIconComponent.prototype, "outline", 2);
|
|
65
|
-
AiIconComponent = __decorateClass([
|
|
66
|
-
customElement(AiIconComponentTagName)
|
|
67
|
-
], AiIconComponent);
|
|
68
|
-
export {
|
|
69
|
-
AiIconComponent,
|
|
70
|
-
AiIconComponentTagName
|
|
71
|
-
};
|
|
1
|
+
//#region src/lib/ai-icon/ai-icon.scss?inline
|
|
2
|
+
var ai_icon_default = ":host {\n --_ai-icon-fill-color: var(--forge-ai-icon-color, var(--forge-ai-chatbot-icon-color, var(--forge-theme-tertiary, #3d5afe)));\n box-sizing: border-box;\n display: grid;\n place-items: center;\n height: 24px;\n width: 24px;\n}\n\n* {\n box-sizing: border-box;\n}\n\nsvg {\n fill: var(--_ai-icon-fill-color);\n height: 24px;\n width: 24px;\n}\n\n:host(:state(outline)) {\n height: 36px;\n width: 36px;\n}\n:host(:state(outline)) forge-ai-gradient-container {\n --forge-ai-gradient-container-radius: 100%;\n display: grid;\n place-items: center;\n height: 36px;\n width: 36px;\n}";
|
|
3
|
+
//#endregion
|
|
4
|
+
export { ai_icon_default as default };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import __decorate from "../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.mjs";
|
|
2
|
+
import { toggleState } from "../utils/dom.mjs";
|
|
3
|
+
import "../ai-gradient-container/ai-gradient-container2.mjs";
|
|
4
|
+
import ai_icon_default from "./ai-icon.mjs";
|
|
5
|
+
import { LitElement, html, unsafeCSS } from "lit";
|
|
6
|
+
import { customElement, property } from "lit/decorators.js";
|
|
7
|
+
import { when } from "lit/directives/when.js";
|
|
8
|
+
//#region src/lib/ai-icon/ai-icon.ts
|
|
9
|
+
var AiIconComponentTagName = "forge-ai-icon";
|
|
10
|
+
var AiIconComponent = class AiIconComponent extends LitElement {
|
|
11
|
+
static {
|
|
12
|
+
this.styles = unsafeCSS(ai_icon_default);
|
|
13
|
+
}
|
|
14
|
+
#internals;
|
|
15
|
+
constructor() {
|
|
16
|
+
super();
|
|
17
|
+
this.outline = false;
|
|
18
|
+
this.#svg = html`
|
|
19
|
+
<svg width="24" height="24" viewBox="-2 -2 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
|
|
20
|
+
<path
|
|
21
|
+
d="M9.375 10.625L15 12.5L9.375 14.375L7.5 20L5.625 14.375L0 12.5L5.625 10.625L7.5 5L9.375 10.625ZM16.25 3.75L20 5L16.25 6.25L15 10L13.75 6.25L10 5L13.75 3.75L15 0L16.25 3.75Z" />
|
|
22
|
+
</svg>
|
|
23
|
+
`;
|
|
24
|
+
this.#internals = this.attachInternals();
|
|
25
|
+
this.#setCssState();
|
|
26
|
+
}
|
|
27
|
+
willUpdate(changedProperties) {
|
|
28
|
+
if (changedProperties.has("outline")) this.#setCssState();
|
|
29
|
+
}
|
|
30
|
+
#svg;
|
|
31
|
+
#setCssState() {
|
|
32
|
+
toggleState(this.#internals, "outline", this.outline);
|
|
33
|
+
}
|
|
34
|
+
render() {
|
|
35
|
+
return when(this.outline, () => html`<forge-ai-gradient-container variant="high">${this.#svg}</forge-ai-gradient-container>`, () => this.#svg);
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
__decorate([property({ type: Boolean })], AiIconComponent.prototype, "outline", void 0);
|
|
39
|
+
AiIconComponent = __decorate([customElement(AiIconComponentTagName)], AiIconComponent);
|
|
40
|
+
//#endregion
|
|
41
|
+
export { AiIconComponent, AiIconComponentTagName };
|
package/dist/ai-icon/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './ai-icon';
|
|
1
|
+
export * from './ai-icon.js';
|
package/dist/ai-icon/index.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { LitElement, TemplateResult, PropertyValues, CSSResult } from 'lit';
|
|
2
|
-
import { MessageItem, AnyToolDefinition } from '../
|
|
3
|
-
import { FeatureToggle } from '../ai-chatbot/ai-chatbot.js';
|
|
2
|
+
import { MessageItem, AnyToolDefinition, FeatureToggle } from '../types/index.js';
|
|
4
3
|
declare global {
|
|
5
4
|
interface HTMLElementTagNameMap {
|
|
6
5
|
'forge-ai-message-thread': AiMessageThreadComponent;
|
|
@@ -50,6 +49,9 @@ export declare const AiMessageThreadComponentTagName: keyof HTMLElementTagNameMa
|
|
|
50
49
|
* @event {CustomEvent<ForgeAiMessageThreadResendEventData>} forge-ai-message-thread-resend - Fired when user clicks resend on a message
|
|
51
50
|
* @event {CustomEvent<ForgeAiMessageThreadThumbsEventData>} forge-ai-message-thread-thumbs-up - Fired when user gives thumbs up
|
|
52
51
|
* @event {CustomEvent<ForgeAiMessageThreadThumbsEventData>} forge-ai-message-thread-thumbs-down - Fired when user gives thumbs down
|
|
52
|
+
* @event {CustomEvent<ForgeAiMessageThreadCopyEventData>} forge-ai-message-thread-user-copy - Fired when user clicks copy on a user message
|
|
53
|
+
* @event {CustomEvent<ForgeAiMessageThreadResendEventData>} forge-ai-message-thread-user-resend - Fired when user clicks resend on a user message
|
|
54
|
+
* @event {CustomEvent<ForgeAiMessageThreadEditEventData>} forge-ai-message-thread-user-edit - Fired when user edits a user message
|
|
53
55
|
*/
|
|
54
56
|
export declare class AiMessageThreadComponent extends LitElement {
|
|
55
57
|
#private;
|
|
@@ -61,7 +63,6 @@ export declare class AiMessageThreadComponent extends LitElement {
|
|
|
61
63
|
debugMode: boolean;
|
|
62
64
|
autoScroll: FeatureToggle;
|
|
63
65
|
private _messageThreadContainer;
|
|
64
|
-
private _messageThreadContent;
|
|
65
66
|
connectedCallback(): void;
|
|
66
67
|
disconnectedCallback(): void;
|
|
67
68
|
firstUpdated(): void;
|
|
@@ -1,360 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { property, query, customElement } from "lit/decorators.js";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { keyed } from "lit/directives/keyed.js";
|
|
6
|
-
import { MarkdownStreamController } from "../ai-chatbot/markdown-stream-controller.mjs";
|
|
7
|
-
import { rendersAsMcpAppWidget } from "../ai-chatbot/utils.mjs";
|
|
8
|
-
import "../ai-assistant-response/ai-assistant-response.mjs";
|
|
9
|
-
import "../ai-client-message/ai-client-message.mjs";
|
|
10
|
-
import "../ai-empty-state/ai-empty-state.mjs";
|
|
11
|
-
import "../ai-error-message/ai-error-message.mjs";
|
|
12
|
-
import "../ai-response-message/ai-response-message.mjs";
|
|
13
|
-
import "../ai-thinking-indicator/ai-thinking-indicator.mjs";
|
|
14
|
-
import "../ai-user-message/ai-user-message.mjs";
|
|
15
|
-
import "../ai-chatbot/ai-chatbot-tool-call.mjs";
|
|
16
|
-
import "../core/tooltip/tooltip.mjs";
|
|
17
|
-
import "../tools/ai-mcp-app/ai-mcp-app.mjs";
|
|
18
|
-
import styles from "./ai-message-thread.scss.mjs";
|
|
19
|
-
var __defProp = Object.defineProperty;
|
|
20
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
21
|
-
var __typeError = (msg) => {
|
|
22
|
-
throw TypeError(msg);
|
|
23
|
-
};
|
|
24
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
25
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
26
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
27
|
-
if (decorator = decorators[i])
|
|
28
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
29
|
-
if (kind && result) __defProp(target, key, result);
|
|
30
|
-
return result;
|
|
31
|
-
};
|
|
32
|
-
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
33
|
-
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
34
|
-
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);
|
|
35
|
-
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), member.set(obj, value), value);
|
|
36
|
-
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
37
|
-
var _markdownController, _canAutoScroll, _lastScrollTop, _resizeObserver, _contentResizeObserver, _AiMessageThreadComponent_instances, observe_fn, handleContentResize_fn, scheduleScroll_fn, checkScrollState_fn, _handleScroll, _handleScrollToBottomClick, scrollToBottomButton_get, handleCopy_fn, handleResend_fn, handleThumbsUp_fn, handleThumbsDown_fn, handleUserCopy_fn, handleUserResend_fn, handleUserEdit_fn, renderToolCall_fn, activeResponse_get, renderAssistantResponse_fn, emptyState_get, thinkingIndicator_get, messages_get, dispatchEvent_fn;
|
|
38
|
-
const AiMessageThreadComponentTagName = "forge-ai-message-thread";
|
|
39
|
-
const SCROLL_THRESHOLD = 100;
|
|
40
|
-
let AiMessageThreadComponent = class extends LitElement {
|
|
41
|
-
constructor() {
|
|
42
|
-
super(...arguments);
|
|
43
|
-
__privateAdd(this, _AiMessageThreadComponent_instances);
|
|
44
|
-
this.messageItems = [];
|
|
45
|
-
this.enableReactions = false;
|
|
46
|
-
this.showThinking = false;
|
|
47
|
-
this.debugMode = false;
|
|
48
|
-
this.autoScroll = "on";
|
|
49
|
-
__privateAdd(this, _markdownController);
|
|
50
|
-
__privateAdd(this, _canAutoScroll, true);
|
|
51
|
-
__privateAdd(this, _lastScrollTop, 0);
|
|
52
|
-
__privateAdd(this, _resizeObserver);
|
|
53
|
-
__privateAdd(this, _contentResizeObserver);
|
|
54
|
-
__privateAdd(this, _handleScroll, () => {
|
|
55
|
-
__privateMethod(this, _AiMessageThreadComponent_instances, checkScrollState_fn).call(this);
|
|
56
|
-
});
|
|
57
|
-
__privateAdd(this, _handleScrollToBottomClick, () => {
|
|
58
|
-
this.scrollToBottom({ force: true, behavior: "smooth" });
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
connectedCallback() {
|
|
62
|
-
super.connectedCallback();
|
|
63
|
-
__privateSet(this, _markdownController, new MarkdownStreamController(this));
|
|
64
|
-
__privateSet(this, _resizeObserver, new ResizeObserver(() => __privateMethod(this, _AiMessageThreadComponent_instances, checkScrollState_fn).call(this)));
|
|
65
|
-
__privateSet(this, _contentResizeObserver, new ResizeObserver(() => __privateMethod(this, _AiMessageThreadComponent_instances, handleContentResize_fn).call(this)));
|
|
66
|
-
if (this.hasUpdated) {
|
|
67
|
-
__privateMethod(this, _AiMessageThreadComponent_instances, observe_fn).call(this);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
disconnectedCallback() {
|
|
71
|
-
super.disconnectedCallback();
|
|
72
|
-
__privateGet(this, _resizeObserver)?.disconnect();
|
|
73
|
-
__privateGet(this, _contentResizeObserver)?.disconnect();
|
|
74
|
-
}
|
|
75
|
-
firstUpdated() {
|
|
76
|
-
__privateMethod(this, _AiMessageThreadComponent_instances, observe_fn).call(this);
|
|
77
|
-
}
|
|
78
|
-
updated(changedProperties) {
|
|
79
|
-
super.updated(changedProperties);
|
|
80
|
-
if (this.autoScroll === "on" && (changedProperties.has("messageItems") || changedProperties.has("showThinking"))) {
|
|
81
|
-
__privateMethod(this, _AiMessageThreadComponent_instances, scheduleScroll_fn).call(this);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
scrollToBottom({
|
|
85
|
-
force = false,
|
|
86
|
-
behavior = "smooth"
|
|
87
|
-
} = {}) {
|
|
88
|
-
if (!force && !__privateGet(this, _canAutoScroll)) {
|
|
89
|
-
return;
|
|
90
|
-
}
|
|
91
|
-
const container = this._messageThreadContainer;
|
|
92
|
-
container.scrollTo({
|
|
93
|
-
top: container.scrollHeight,
|
|
94
|
-
behavior
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
render() {
|
|
98
|
-
return html`
|
|
99
|
-
<div class="message-thread" @scroll=${this.autoScroll ? __privateGet(this, _handleScroll) : void 0}>
|
|
100
|
-
${__privateGet(this, _AiMessageThreadComponent_instances, scrollToBottomButton_get)}
|
|
101
|
-
<div class="message-thread-content">${__privateGet(this, _AiMessageThreadComponent_instances, emptyState_get)} ${__privateGet(this, _AiMessageThreadComponent_instances, messages_get)} ${__privateGet(this, _AiMessageThreadComponent_instances, thinkingIndicator_get)}</div>
|
|
102
|
-
</div>
|
|
103
|
-
`;
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
_markdownController = /* @__PURE__ */ new WeakMap();
|
|
107
|
-
_canAutoScroll = /* @__PURE__ */ new WeakMap();
|
|
108
|
-
_lastScrollTop = /* @__PURE__ */ new WeakMap();
|
|
109
|
-
_resizeObserver = /* @__PURE__ */ new WeakMap();
|
|
110
|
-
_contentResizeObserver = /* @__PURE__ */ new WeakMap();
|
|
111
|
-
_AiMessageThreadComponent_instances = /* @__PURE__ */ new WeakSet();
|
|
112
|
-
observe_fn = function() {
|
|
113
|
-
__privateGet(this, _resizeObserver)?.observe(this._messageThreadContainer);
|
|
114
|
-
__privateGet(this, _contentResizeObserver)?.observe(this._messageThreadContent);
|
|
115
|
-
};
|
|
116
|
-
handleContentResize_fn = function() {
|
|
117
|
-
if (this.autoScroll === "on") {
|
|
118
|
-
this.scrollToBottom({ behavior: "instant" });
|
|
119
|
-
}
|
|
120
|
-
};
|
|
121
|
-
scheduleScroll_fn = async function() {
|
|
122
|
-
await this.updateComplete;
|
|
123
|
-
await new Promise(requestAnimationFrame);
|
|
124
|
-
this.scrollToBottom();
|
|
125
|
-
};
|
|
126
|
-
checkScrollState_fn = function() {
|
|
127
|
-
const container = this._messageThreadContainer;
|
|
128
|
-
if (!container) {
|
|
129
|
-
return;
|
|
130
|
-
}
|
|
131
|
-
const { scrollTop, scrollHeight, clientHeight } = container;
|
|
132
|
-
const isNearBottom = scrollTop + clientHeight >= scrollHeight - SCROLL_THRESHOLD;
|
|
133
|
-
const scrolledUp = scrollTop < __privateGet(this, _lastScrollTop);
|
|
134
|
-
__privateSet(this, _lastScrollTop, scrollTop);
|
|
135
|
-
const canAutoScroll = isNearBottom || __privateGet(this, _canAutoScroll) && !scrolledUp;
|
|
136
|
-
if (canAutoScroll !== __privateGet(this, _canAutoScroll)) {
|
|
137
|
-
__privateSet(this, _canAutoScroll, canAutoScroll);
|
|
138
|
-
this.requestUpdate();
|
|
139
|
-
}
|
|
140
|
-
};
|
|
141
|
-
_handleScroll = /* @__PURE__ */ new WeakMap();
|
|
142
|
-
_handleScrollToBottomClick = /* @__PURE__ */ new WeakMap();
|
|
143
|
-
scrollToBottomButton_get = function() {
|
|
144
|
-
if (!this.messageItems.length) {
|
|
145
|
-
return nothing;
|
|
146
|
-
}
|
|
147
|
-
const hiddenClass = __privateGet(this, _canAutoScroll) ? " scroll-to-bottom-button--hidden" : "";
|
|
148
|
-
return html`
|
|
149
|
-
<button
|
|
150
|
-
id="scroll-to-bottom-btn"
|
|
151
|
-
class=${`forge-fab scroll-to-bottom-button${hiddenClass}`}
|
|
152
|
-
aria-label="Scroll to bottom"
|
|
153
|
-
@click=${__privateGet(this, _handleScrollToBottomClick)}>
|
|
154
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true">
|
|
155
|
-
<path d="M7.03 13.92h4V5l2.01-.03v8.95h3.99l-5 5Z" />
|
|
156
|
-
</svg>
|
|
157
|
-
</button>
|
|
158
|
-
<forge-ai-tooltip for="scroll-to-bottom-btn" placement="top">Scroll to bottom</forge-ai-tooltip>
|
|
159
|
-
`;
|
|
160
|
-
};
|
|
161
|
-
handleCopy_fn = function(messageId) {
|
|
162
|
-
__privateMethod(this, _AiMessageThreadComponent_instances, dispatchEvent_fn).call(this, {
|
|
163
|
-
type: "forge-ai-message-thread-copy",
|
|
164
|
-
detail: { messageId }
|
|
165
|
-
});
|
|
166
|
-
};
|
|
167
|
-
handleResend_fn = function(messageId) {
|
|
168
|
-
__privateMethod(this, _AiMessageThreadComponent_instances, dispatchEvent_fn).call(this, {
|
|
169
|
-
type: "forge-ai-message-thread-resend",
|
|
170
|
-
detail: { messageId }
|
|
171
|
-
});
|
|
172
|
-
};
|
|
173
|
-
handleThumbsUp_fn = function(messageId, feedback) {
|
|
174
|
-
const detail = { messageId, feedback };
|
|
175
|
-
__privateMethod(this, _AiMessageThreadComponent_instances, dispatchEvent_fn).call(this, { type: "forge-ai-message-thread-thumbs-up", detail });
|
|
176
|
-
};
|
|
177
|
-
handleThumbsDown_fn = function(messageId, feedback) {
|
|
178
|
-
const detail = { messageId, feedback };
|
|
179
|
-
__privateMethod(this, _AiMessageThreadComponent_instances, dispatchEvent_fn).call(this, { type: "forge-ai-message-thread-thumbs-down", detail });
|
|
180
|
-
};
|
|
181
|
-
handleUserCopy_fn = function(messageId) {
|
|
182
|
-
__privateMethod(this, _AiMessageThreadComponent_instances, dispatchEvent_fn).call(this, {
|
|
183
|
-
type: "forge-ai-message-thread-user-copy",
|
|
184
|
-
detail: { messageId }
|
|
185
|
-
});
|
|
186
|
-
};
|
|
187
|
-
handleUserResend_fn = function(messageId) {
|
|
188
|
-
__privateMethod(this, _AiMessageThreadComponent_instances, dispatchEvent_fn).call(this, {
|
|
189
|
-
type: "forge-ai-message-thread-user-resend",
|
|
190
|
-
detail: { messageId }
|
|
191
|
-
});
|
|
192
|
-
};
|
|
193
|
-
handleUserEdit_fn = function(messageId, content) {
|
|
194
|
-
__privateMethod(this, _AiMessageThreadComponent_instances, dispatchEvent_fn).call(this, {
|
|
195
|
-
type: "forge-ai-message-thread-user-edit",
|
|
196
|
-
detail: { messageId, content }
|
|
197
|
-
});
|
|
198
|
-
};
|
|
199
|
-
renderToolCall_fn = function(toolCall) {
|
|
200
|
-
if (rendersAsMcpAppWidget(toolCall)) {
|
|
201
|
-
return keyed(toolCall.id, html`<forge-ai-mcp-app .toolCall=${toolCall}></forge-ai-mcp-app>`);
|
|
202
|
-
}
|
|
203
|
-
const toolDefinition = this.tools?.get(toolCall.name);
|
|
204
|
-
return html`<forge-ai-chatbot-tool-call
|
|
205
|
-
.toolCall=${toolCall}
|
|
206
|
-
.toolDefinition=${toolDefinition}></forge-ai-chatbot-tool-call>`;
|
|
207
|
-
};
|
|
208
|
-
activeResponse_get = function() {
|
|
209
|
-
const lastItem = this.messageItems[this.messageItems.length - 1];
|
|
210
|
-
return lastItem?.type === "assistant" ? lastItem.data : void 0;
|
|
211
|
-
};
|
|
212
|
-
renderAssistantResponse_fn = function(response) {
|
|
213
|
-
return html`
|
|
214
|
-
<forge-ai-assistant-response
|
|
215
|
-
.response=${response}
|
|
216
|
-
.tools=${this.tools}
|
|
217
|
-
?enable-reactions=${this.enableReactions}
|
|
218
|
-
?debug-mode=${this.debugMode}
|
|
219
|
-
?show-thinking=${this.showThinking && response === __privateGet(this, _AiMessageThreadComponent_instances, activeResponse_get)}
|
|
220
|
-
@forge-ai-assistant-response-copy=${(e) => __privateMethod(this, _AiMessageThreadComponent_instances, handleCopy_fn).call(this, e.detail.responseId)}
|
|
221
|
-
@forge-ai-assistant-response-resend=${(e) => __privateMethod(this, _AiMessageThreadComponent_instances, handleResend_fn).call(this, e.detail.responseId)}
|
|
222
|
-
@forge-ai-assistant-response-thumbs-up=${(e) => __privateMethod(this, _AiMessageThreadComponent_instances, handleThumbsUp_fn).call(this, e.detail.responseId, e.detail.feedback)}
|
|
223
|
-
@forge-ai-assistant-response-thumbs-down=${(e) => __privateMethod(this, _AiMessageThreadComponent_instances, handleThumbsDown_fn).call(this, e.detail.responseId, e.detail.feedback)}>
|
|
224
|
-
</forge-ai-assistant-response>
|
|
225
|
-
`;
|
|
226
|
-
};
|
|
227
|
-
emptyState_get = function() {
|
|
228
|
-
if (this.messageItems.length) {
|
|
229
|
-
return nothing;
|
|
230
|
-
}
|
|
231
|
-
return html`
|
|
232
|
-
<forge-ai-empty-state>
|
|
233
|
-
<slot name="empty-state-icon" slot="icon"></slot>
|
|
234
|
-
<slot name="empty-state-heading" slot="heading">
|
|
235
|
-
<span>How can I help you today?</span>
|
|
236
|
-
</slot>
|
|
237
|
-
<slot name="empty-state-message" slot="body">
|
|
238
|
-
Start a conversation by asking a question or describing what you'd like help with.
|
|
239
|
-
</slot>
|
|
240
|
-
<slot name="empty-state-actions" slot="actions"></slot>
|
|
241
|
-
</forge-ai-empty-state>
|
|
242
|
-
`;
|
|
243
|
-
};
|
|
244
|
-
thinkingIndicator_get = function() {
|
|
245
|
-
if (!this.showThinking) {
|
|
246
|
-
return nothing;
|
|
247
|
-
}
|
|
248
|
-
if (__privateGet(this, _AiMessageThreadComponent_instances, activeResponse_get)) {
|
|
249
|
-
return nothing;
|
|
250
|
-
}
|
|
251
|
-
return html`<div class="thinking-indicator">
|
|
252
|
-
<forge-ai-thinking-indicator class="status-indicator" show-text></forge-ai-thinking-indicator>
|
|
253
|
-
</div>`;
|
|
254
|
-
};
|
|
255
|
-
messages_get = function() {
|
|
256
|
-
const itemsToRender = this.messageItems.filter((item) => {
|
|
257
|
-
if (item.type === "assistant") {
|
|
258
|
-
return true;
|
|
259
|
-
}
|
|
260
|
-
if (item.type === "toolCall") {
|
|
261
|
-
if (rendersAsMcpAppWidget(item.data)) {
|
|
262
|
-
return true;
|
|
263
|
-
}
|
|
264
|
-
const toolDef = this.tools?.get(item.data.name);
|
|
265
|
-
return !!toolDef?.renderer;
|
|
266
|
-
}
|
|
267
|
-
if (item.type === "message") {
|
|
268
|
-
return item.data.role !== "tool";
|
|
269
|
-
}
|
|
270
|
-
return false;
|
|
271
|
-
});
|
|
272
|
-
return itemsToRender.map((item) => {
|
|
273
|
-
if (item.type === "assistant") {
|
|
274
|
-
return __privateMethod(this, _AiMessageThreadComponent_instances, renderAssistantResponse_fn).call(this, item.data);
|
|
275
|
-
}
|
|
276
|
-
if (item.type === "toolCall") {
|
|
277
|
-
return __privateMethod(this, _AiMessageThreadComponent_instances, renderToolCall_fn).call(this, item.data);
|
|
278
|
-
}
|
|
279
|
-
const msg = item.data;
|
|
280
|
-
const content = typeof msg.content === "string" ? msg.content : "";
|
|
281
|
-
if (msg.role === "user") {
|
|
282
|
-
const renderedHtml = __privateGet(this, _markdownController).getCachedHtml(msg.id, content, { streaming: false });
|
|
283
|
-
return html`
|
|
284
|
-
<forge-ai-user-message
|
|
285
|
-
message-id=${msg.id}
|
|
286
|
-
.timestamp=${msg.timestamp}
|
|
287
|
-
.content=${content}
|
|
288
|
-
?streaming=${this.showThinking}
|
|
289
|
-
@forge-ai-user-message-copy=${(e) => __privateMethod(this, _AiMessageThreadComponent_instances, handleUserCopy_fn).call(this, e.detail.messageId)}
|
|
290
|
-
@forge-ai-user-message-resend=${(e) => __privateMethod(this, _AiMessageThreadComponent_instances, handleUserResend_fn).call(this, e.detail.messageId)}
|
|
291
|
-
@forge-ai-user-message-edit=${(e) => __privateMethod(this, _AiMessageThreadComponent_instances, handleUserEdit_fn).call(this, e.detail.messageId, e.detail.content)}>
|
|
292
|
-
${unsafeHTML(renderedHtml)}
|
|
293
|
-
</forge-ai-user-message>
|
|
294
|
-
`;
|
|
295
|
-
} else if (msg.role === "system") {
|
|
296
|
-
return html`
|
|
297
|
-
<forge-ai-client-message
|
|
298
|
-
kind=${msg.kind ?? "text"}
|
|
299
|
-
.header=${msg.header}
|
|
300
|
-
.content=${content}
|
|
301
|
-
.actions=${msg.actions ?? []}>
|
|
302
|
-
</forge-ai-client-message>
|
|
303
|
-
`;
|
|
304
|
-
} else if (msg.status === "error") {
|
|
305
|
-
const renderedHtml = __privateGet(this, _markdownController).getCachedHtml(msg.id, content);
|
|
306
|
-
return html`
|
|
307
|
-
<forge-ai-error-message>
|
|
308
|
-
<span slot="title">Error</span>
|
|
309
|
-
${unsafeHTML(renderedHtml)}
|
|
310
|
-
</forge-ai-error-message>
|
|
311
|
-
`;
|
|
312
|
-
} else {
|
|
313
|
-
return when(content.trim().length, () => {
|
|
314
|
-
const renderedHtml = __privateGet(this, _markdownController).getCachedHtml(msg.id, content);
|
|
315
|
-
return html`<forge-ai-response-message>${unsafeHTML(renderedHtml)}</forge-ai-response-message>`;
|
|
316
|
-
});
|
|
317
|
-
}
|
|
318
|
-
});
|
|
319
|
-
};
|
|
320
|
-
dispatchEvent_fn = function(config) {
|
|
321
|
-
const event = new CustomEvent(config.type, {
|
|
322
|
-
detail: config.detail,
|
|
323
|
-
bubbles: true,
|
|
324
|
-
composed: true
|
|
325
|
-
});
|
|
326
|
-
this.dispatchEvent(event);
|
|
327
|
-
return event;
|
|
328
|
-
};
|
|
329
|
-
AiMessageThreadComponent.styles = unsafeCSS(styles);
|
|
330
|
-
__decorateClass([
|
|
331
|
-
property({ attribute: false })
|
|
332
|
-
], AiMessageThreadComponent.prototype, "messageItems", 2);
|
|
333
|
-
__decorateClass([
|
|
334
|
-
property({ attribute: false })
|
|
335
|
-
], AiMessageThreadComponent.prototype, "tools", 2);
|
|
336
|
-
__decorateClass([
|
|
337
|
-
property({ type: Boolean, attribute: "enable-reactions" })
|
|
338
|
-
], AiMessageThreadComponent.prototype, "enableReactions", 2);
|
|
339
|
-
__decorateClass([
|
|
340
|
-
property({ type: Boolean, attribute: "show-thinking" })
|
|
341
|
-
], AiMessageThreadComponent.prototype, "showThinking", 2);
|
|
342
|
-
__decorateClass([
|
|
343
|
-
property({ type: Boolean, attribute: "debug-mode" })
|
|
344
|
-
], AiMessageThreadComponent.prototype, "debugMode", 2);
|
|
345
|
-
__decorateClass([
|
|
346
|
-
property({ attribute: "auto-scroll" })
|
|
347
|
-
], AiMessageThreadComponent.prototype, "autoScroll", 2);
|
|
348
|
-
__decorateClass([
|
|
349
|
-
query(".message-thread")
|
|
350
|
-
], AiMessageThreadComponent.prototype, "_messageThreadContainer", 2);
|
|
351
|
-
__decorateClass([
|
|
352
|
-
query(".message-thread-content")
|
|
353
|
-
], AiMessageThreadComponent.prototype, "_messageThreadContent", 2);
|
|
354
|
-
AiMessageThreadComponent = __decorateClass([
|
|
355
|
-
customElement(AiMessageThreadComponentTagName)
|
|
356
|
-
], AiMessageThreadComponent);
|
|
357
|
-
export {
|
|
358
|
-
AiMessageThreadComponent,
|
|
359
|
-
AiMessageThreadComponentTagName
|
|
360
|
-
};
|
|
1
|
+
//#region src/lib/ai-message-thread/ai-message-thread.scss?inline
|
|
2
|
+
var ai_message_thread_default = "@keyframes fadein {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n/**\n * @license\n * Copyright Tyler Technologies, Inc.\n * License: Apache-2.0\n */\n.forge-fab {\n --_fab-display:var(--forge-fab-display, inline-flex);\n --_fab-gap:var(--forge-fab-gap, var(--forge-spacing-xsmall, 8px));\n --_fab-background:var(--forge-fab-background, var(--forge-theme-secondary, #ffc107));\n --_fab-color:var(--forge-fab-color, var(--forge-theme-on-secondary, #000000));\n --_fab-size:var(--forge-fab-size, 56px);\n --_fab-padding:var(--forge-fab-padding, var(--forge-spacing-xsmall, 8px));\n --_fab-shadow:var(--forge-fab-shadow, 0px 3px 3px -2px rgba(0, 0, 0, 0.2), 0px 3px 4px 0px rgba(0, 0, 0, 0.14), 0px 1px 8px 0px rgba(0, 0, 0, 0.12));\n --_fab-hover-shadow:var(--forge-fab-hover-shadow, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12));\n --_fab-active-shadow:var(--forge-fab-active-shadow, 0px 3px 3px -2px rgba(0, 0, 0, 0.2), 0px 3px 4px 0px rgba(0, 0, 0, 0.14), 0px 1px 8px 0px rgba(0, 0, 0, 0.12));\n --_fab-lowered-shadow:var(--forge-fab-lowered-shadow, 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12));\n --_fab-lowered-hover-shadow:var(--forge-fab-lowered-hover-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));\n --_fab-lowered-active-shadow:var(--forge-fab-lowered-active-shadow, 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12));\n --_fab-transition-duration:var(--forge-fab-transition-duration, var(--forge-animation-duration-short3, 150ms));\n --_fab-transition-timing:var(--forge-fab-transition-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));\n --_fab-shape:var(--forge-fab-shape, calc(var(--forge-shape-full, 9999px) * var(--forge-shape-factor, 1)));\n --_fab-shape-start-start:var(--forge-fab-shape-start-start, var(--_fab-shape));\n --_fab-shape-start-end:var(--forge-fab-shape-start-end, var(--_fab-shape));\n --_fab-shape-end-start:var(--forge-fab-shape-end-start, var(--_fab-shape));\n --_fab-shape-end-end:var(--forge-fab-shape-end-end, var(--_fab-shape));\n --_fab-extended-padding:var(--forge-fab-extended-padding, var(--forge-spacing-medium-large, 20px));\n --_fab-extended-min-width:var(--forge-fab-extended-min-width, 96px);\n --_fab-density-small-size:var(--forge-fab-density-small-size, 40px);\n --_fab-density-medium-size:var(--forge-fab-density-medium-size, var(--_fab-size));\n --_fab-density-large-size:var(--forge-fab-density-large-size, 96px);\n --_fab-disabled-cursor:var(--forge-fab-disabled-cursor, not-allowed);\n --_fab-disabled-background:var(--forge-fab-disabled-background, var(--forge-theme-surface-container, #e0e0e0));\n --_fab-disabled-color:var(--forge-fab-disabled-color, var(--forge-theme-on-surface-container, #000000));\n --_fab-disabled-opacity:var(--forge-fab-disabled-opacity, 0.38);\n}\n\n.forge-fab {\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-family: var(--forge-typography-button-font-family, var(--forge-typography-font-family, \"Roboto\", sans-serif));\n font-size: var(--forge-typography-button-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-button-font-size-scale, 0.875)));\n font-weight: var(--forge-typography-button-font-weight, 500);\n line-height: var(--forge-typography-button-line-height, normal);\n letter-spacing: var(--forge-typography-button-letter-spacing, 0.0714285714em);\n text-transform: var(--forge-typography-button-text-transform, inherit);\n text-decoration: var(--forge-typography-button-text-decoration, inherit);\n position: relative;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n gap: var(--_fab-gap);\n z-index: 0;\n background: var(--_fab-background);\n color: var(--_fab-color);\n cursor: pointer;\n box-shadow: var(--_fab-shadow);\n box-sizing: border-box;\n height: var(--_fab-density-medium-size);\n min-width: var(--_fab-density-medium-size);\n padding-inline: var(--_fab-padding);\n border-width: medium;\n border-style: none;\n border-color: currentColor;\n border-top-left-radius: var(--_fab-shape-start-start);\n border-top-right-radius: var(--_fab-shape-start-end);\n border-bottom-left-radius: var(--_fab-shape-end-start);\n border-bottom-right-radius: var(--_fab-shape-end-end);\n user-select: none;\n white-space: nowrap;\n transition-property: box-shadow, background, color;\n transition-duration: var(--_fab-transition-duration);\n transition-timing-function: var(--_fab-transition-timing);\n}\n\n.forge-fab:hover {\n --_fab-shadow:var(--_fab-hover-shadow);\n}\n\n.forge-fab:active {\n --_fab-shadow:var(--_fab-active-shadow);\n}\n\n.forge-fab:not(:disabled) {\n --_state-layer-display:var(--forge-state-layer-display, flex);\n --_state-layer-color:var(--forge-state-layer-color, var(--forge-theme-on-surface, #000000));\n --_state-layer-hover-color:var(--forge-state-layer-hover-color, var(--_state-layer-color));\n --_state-layer-hover-opacity:var(--forge-state-layer-hover-opacity, 0.08);\n --_state-layer-pressed-color:var(--forge-state-layer-pressed-color, var(--_state-layer-color));\n --_state-layer-pressed-opacity:var(--forge-state-layer-pressed-opacity, 0.12);\n --_state-layer-hover-duration:var(--forge-state-layer-hover-duration, 15ms);\n --_state-layer-pressed-duration:var(--forge-state-layer-pressed-duration, 105ms);\n --_state-layer-animation-duration:var(--forge-state-layer-animation-duration, 375ms);\n}\n\n.forge-fab:not(:disabled)::before {\n opacity: 0;\n position: absolute;\n backface-visibility: hidden;\n transform: translateZ(0);\n background-color: var(--_state-layer-hover-color);\n inset: 0;\n transition: opacity var(--_state-layer-hover-duration) linear, background-color var(--_state-layer-hover-duration) linear;\n --_state-layer-hover-duration:var(--forge-state-layer-hover-duration, 100ms);\n content: \"\";\n opacity: 0;\n border-radius: inherit;\n}\n\n.forge-fab:not(:disabled):hover::before {\n background-color: var(--_state-layer-hover-color);\n opacity: var(--_state-layer-hover-opacity);\n}\n\n.forge-fab:not(:disabled):active::before {\n opacity: var(--_state-layer-pressed-opacity);\n transition-duration: var(--_state-layer-pressed-duration);\n --_state-layer-pressed-opacity:var(--forge-state-layer-pressed-opacity, 0.18);\n}\n\n@keyframes forge-focus-indicator-outward-grow {\n from {\n outline-width: 0;\n }\n to {\n outline-width: var(--_focus-indicator-active-width);\n }\n}\n@keyframes forge-focus-indicator-outward-shrink {\n from {\n outline-width: var(--_focus-indicator-active-width);\n }\n}\n@keyframes forge-focus-indicator-inward-grow {\n from {\n border-width: 0;\n }\n to {\n border-width: var(--_focus-indicator-active-width);\n }\n}\n@keyframes forge-focus-indicator-inward-shrink {\n from {\n border-width: var(--_focus-indicator-active-width);\n }\n}\n.forge-fab:not(:disabled) {\n outline: none;\n}\n\n.forge-fab:not(:disabled):focus-visible::after {\n --_focus-indicator-display:var(--forge-focus-indicator-display, flex);\n --_focus-indicator-width:var(--forge-focus-indicator-width, var(--forge-border-medium, 2px));\n --_focus-indicator-active-width:var(--forge-focus-indicator-active-width, 6px);\n --_focus-indicator-color:var(--forge-focus-indicator-color, var(--forge-theme-primary, #3f51b5));\n --_focus-indicator-shape:var(--forge-focus-indicator-shape, calc(var(--forge-shape-extra-small, 1px) * var(--forge-shape-factor, 1)));\n --_focus-indicator-duration:var(--forge-focus-indicator-duration, var(--forge-animation-duration-long4, 600ms));\n --_focus-indicator-easing:var(--forge-focus-indicator-easing, var(--forge-animation-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)));\n --_focus-indicator-shape-start-start:var(--forge-focus-indicator-shape-start-start, var(--_focus-indicator-shape));\n --_focus-indicator-shape-start-end:var(--forge-focus-indicator-shape-start-end, var(--_focus-indicator-shape));\n --_focus-indicator-shape-end-end:var(--forge-focus-indicator-shape-end-end, var(--_focus-indicator-shape));\n --_focus-indicator-shape-end-start:var(--forge-focus-indicator-shape-end-start, var(--_focus-indicator-shape));\n --_focus-indicator-outward-offset:var(--forge-focus-indicator-outward-offset, var(--forge-spacing-xxsmall, 4px));\n --_focus-indicator-inward-offset:var(--forge-focus-indicator-inward-offset, 0px);\n --_focus-indicator-offset-block:var(--forge-focus-indicator-offset-block, 0);\n --_focus-indicator-offset-inline:var(--forge-focus-indicator-offset-inline, 0);\n}\n\n.forge-fab:not(:disabled):focus-visible::after {\n animation-delay: 0s, calc(var(--_focus-indicator-duration) * 0.25);\n animation-duration: calc(var(--_focus-indicator-duration) * 0.25), calc(var(--_focus-indicator-duration) * 0.75);\n animation-timing-function: var(--_focus-indicator-easing);\n box-sizing: border-box;\n color: var(--_focus-indicator-color);\n display: none;\n pointer-events: none;\n position: absolute;\n margin-block: var(--_focus-indicator-offset-block);\n margin-inline: var(--_focus-indicator-offset-inline);\n animation-name: forge-focus-indicator-outward-grow, forge-focus-indicator-outward-shrink;\n border-end-end-radius: calc(var(--_focus-indicator-shape-end-end) + var(--_focus-indicator-outward-offset));\n border-end-start-radius: calc(var(--_focus-indicator-shape-end-start) + var(--_focus-indicator-outward-offset));\n border-start-end-radius: calc(var(--_focus-indicator-shape-start-end) + var(--_focus-indicator-outward-offset));\n border-start-start-radius: calc(var(--_focus-indicator-shape-start-start) + var(--_focus-indicator-outward-offset));\n inset: calc(-1 * var(--_focus-indicator-outward-offset));\n outline: var(--_focus-indicator-width) solid currentColor;\n content: \"\";\n display: block;\n}\n\n.forge-fab:not(:disabled) {\n --forge-focus-indicator-color: var(--_fab-background);\n --forge-focus-indicator-shape-start-start: var(--_fab-shape-start-start);\n --forge-focus-indicator-shape-start-end: var(--_fab-shape-start-end);\n --forge-focus-indicator-shape-end-start: var(--_fab-shape-end-start);\n --forge-focus-indicator-shape-end-end: var(--_fab-shape-end-end);\n}\n\n.forge-fab--extended {\n --_fab-padding:var(--_fab-extended-padding);\n min-width: var(--_fab-extended-min-width);\n}\n\n.forge-fab:disabled {\n cursor: var(--_fab-disabled-cursor);\n --_fab-background:var(--_fab-disabled-background);\n --_fab-color:var(--_fab-disabled-color);\n pointer-events: none;\n opacity: var(--_fab-disabled-opacity);\n pointer-events: auto;\n cursor: not-allowed;\n}\n\n.forge-fab--dense, .forge-fab--small {\n --_fab-size:var(--_fab-density-small-size);\n}\n\n.forge-fab--large {\n --_fab-size:var(--_fab-density-large-size);\n --_fab-shape:var(--forge-fab-shape, calc(var(--forge-shape-extra-large, 16px) * var(--forge-shape-factor, 1)));\n}\n\n.forge-fab--flat {\n --_fab-shadow:var(--_fab-lowered-shadow);\n}\n\n.forge-fab--flat:hover {\n --_fab-shadow:var(--_fab-lowered-hover-shadow);\n}\n\n.forge-fab--flat:active {\n --_fab-shadow:var(--_fab-lowered-active-shadow);\n}\n\n:host {\n display: grid;\n height: 100%;\n position: relative;\n}\n\n.message-thread::-webkit-scrollbar {\n height: var(--forge-scrollbar-height, 16px);\n width: var(--forge-scrollbar-width, 16px);\n}\n.message-thread::-webkit-scrollbar-track {\n background-color: var(--forge-scrollbar-track-container, var(--forge-theme-surface-container-low, #ebebeb));\n}\n.message-thread::-webkit-scrollbar-track:hover {\n background-color: var(--forge-scrollbar-track-container-hover, var(--forge-theme-surface-container-low, #ebebeb));\n}\n.message-thread::-webkit-scrollbar-corner {\n background-color: var(--forge-scrollbar-track-container, var(--forge-theme-surface-container-low, #ebebeb));\n}\n.message-thread::-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.message-thread::-webkit-scrollbar-thumb:hover {\n background-color: var(--forge-scrollbar-thumb-container-hover, var(--forge-theme-surface-container-high, #9e9e9e));\n}\n.message-thread {\n overflow-y: auto;\n}\n@media not all and (min-resolution: 0.001dpcm) {\n @supports (-webkit-appearance: none) {\n .message-thread {\n overflow-y: scroll;\n }\n }\n}\n\n.message-thread-content {\n --_message-thread-item-spacing: var(--forge-spacing-xlarge, 32px);\n display: flex;\n flex-direction: column;\n padding: var(--forge-spacing-medium, 16px) var(--forge-spacing-medium, 16px) var(--forge-spacing-xxlarge, 48px) var(--forge-spacing-medium, 16px);\n max-inline-size: var(--forge-ai-message-thread-content-max-width, none);\n margin-inline: auto;\n width: 100%;\n min-height: 100%;\n box-sizing: border-box;\n}\n\n.message-thread-content > * + * {\n margin-block-start: var(--_message-thread-item-spacing);\n}\n\nforge-ai-empty-state {\n margin-block: auto;\n}\n\n.scroll-to-bottom-button {\n --forge-fab-size: 40px;\n --forge-fab-background: var(--forge-theme-surface-bright, #ffffff);\n --forge-fab-color: var(--forge-theme-text-high, rgba(0, 0, 0, 0.87));\n position: absolute;\n bottom: var(--forge-spacing-xxsmall, 4px);\n left: 50%;\n transform: translateX(-50%) translateY(0);\n opacity: 1;\n visibility: visible;\n z-index: 1;\n transition: opacity var(--forge-animation-duration-short2, 100ms) var(--forge-animation-easing-accelerate, cubic-bezier(0.3, 0, 1, 1)), transform var(--forge-animation-duration-short2, 100ms) var(--forge-animation-easing-accelerate, cubic-bezier(0.3, 0, 1, 1)), visibility 0s 0s;\n}\n.scroll-to-bottom-button--hidden {\n opacity: 0;\n transform: translateX(-50%) translateY(24px);\n visibility: hidden;\n pointer-events: none;\n transition: opacity var(--forge-animation-duration-short2, 100ms) var(--forge-animation-easing-accelerate, cubic-bezier(0.3, 0, 1, 1)), transform var(--forge-animation-duration-short2, 100ms) var(--forge-animation-easing-accelerate, cubic-bezier(0.3, 0, 1, 1)), visibility 0s var(--forge-animation-duration-short2, 100ms);\n}\n.scroll-to-bottom-button svg {\n width: 24px;\n height: 24px;\n fill: currentColor;\n}\n\nforge-ai-user-message,\nforge-ai-response-message,\nforge-ai-error-message {\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 font-size: var(--forge-ai-markdown-font-size, 0.875rem);\n line-height: var(--forge-ai-markdown-line-height, 1.5rem);\n color: var(--forge-theme-on-surface, #000000);\n overflow-wrap: break-word;\n}\nforge-ai-user-message h1,\nforge-ai-user-message h2,\nforge-ai-user-message h3,\nforge-ai-user-message h4,\nforge-ai-user-message h5,\nforge-ai-user-message h6,\nforge-ai-response-message h1,\nforge-ai-response-message h2,\nforge-ai-response-message h3,\nforge-ai-response-message h4,\nforge-ai-response-message h5,\nforge-ai-response-message h6,\nforge-ai-error-message h1,\nforge-ai-error-message h2,\nforge-ai-error-message h3,\nforge-ai-error-message h4,\nforge-ai-error-message h5,\nforge-ai-error-message h6 {\n margin: 1.75rem 0 var(--forge-spacing-small, 12px);\n}\nforge-ai-user-message strong,\nforge-ai-response-message strong,\nforge-ai-error-message strong {\n font-weight: 500;\n}\nforge-ai-user-message a,\nforge-ai-response-message a,\nforge-ai-error-message a {\n color: var(--forge-theme-primary, #3f51b5);\n}\nforge-ai-user-message hr,\nforge-ai-response-message hr,\nforge-ai-error-message hr {\n border: none;\n border-top: 1px solid var(--forge-theme-outline, #e0e0e0);\n}\nforge-ai-user-message code,\nforge-ai-response-message code,\nforge-ai-error-message code {\n color: var(--forge-theme-on-surface-container-low, #000000);\n background-color: var(--forge-theme-surface-container-low, #ebebeb);\n border-radius: calc(var(--forge-shape-medium, 4px) * var(--forge-shape-factor, 1));\n padding: var(--forge-spacing-xxxsmall, 2px) var(--forge-spacing-xxsmall, 4px);\n font-size: 0.75em;\n}\nforge-ai-user-message pre,\nforge-ai-response-message pre,\nforge-ai-error-message pre {\n border: 1px solid var(--forge-theme-outline, #e0e0e0);\n border-radius: calc(var(--forge-shape-medium, 4px) * var(--forge-shape-factor, 1));\n margin: 0;\n max-width: 100%;\n overflow-x: auto;\n}\nforge-ai-user-message pre:focus-visible,\nforge-ai-response-message pre:focus-visible,\nforge-ai-error-message pre:focus-visible {\n outline: 2px solid var(--forge-theme-primary, #3f51b5);\n outline-offset: 2px;\n}\nforge-ai-user-message pre code,\nforge-ai-response-message pre code,\nforge-ai-error-message pre code {\n display: block;\n padding: var(--forge-spacing-xsmall, 8px) var(--forge-spacing-small, 12px);\n color: var(--forge-theme-on-surface-container-minimum, #000000);\n background: var(--forge-theme-surface-container-minimum, #f5f5f5);\n white-space: pre;\n}\nforge-ai-user-message [data-scroll-region=table],\nforge-ai-response-message [data-scroll-region=table],\nforge-ai-error-message [data-scroll-region=table] {\n max-width: 100%;\n overflow-x: auto;\n border-radius: calc(var(--forge-shape-large, 8px) * var(--forge-shape-factor, 1));\n margin-block: var(--forge-spacing-medium, 16px);\n}\nforge-ai-user-message [data-scroll-region=table]:focus-visible,\nforge-ai-response-message [data-scroll-region=table]:focus-visible,\nforge-ai-error-message [data-scroll-region=table]:focus-visible {\n outline: 2px solid var(--forge-theme-primary, #3f51b5);\n outline-offset: 2px;\n}\nforge-ai-user-message [data-scroll-region=table] table,\nforge-ai-response-message [data-scroll-region=table] table,\nforge-ai-error-message [data-scroll-region=table] table {\n margin-block: 0;\n}\nforge-ai-user-message table,\nforge-ai-response-message table,\nforge-ai-error-message table {\n width: 100%;\n border-spacing: 0;\n background-color: var(--forge-theme-surface, #ffffff);\n border-radius: calc(var(--forge-shape-large, 8px) * var(--forge-shape-factor, 1));\n overflow: hidden;\n margin-block: var(--forge-spacing-medium, 16px);\n}\nforge-ai-user-message table thead,\nforge-ai-response-message table thead,\nforge-ai-error-message table thead {\n color: var(--forge-theme-text-medium, rgba(0, 0, 0, 0.6));\n font-weight: bold;\n text-align: left;\n font-size: calc(var(--forge-typography-font-size, 1rem) * 0.75);\n box-sizing: border-box;\n}\nforge-ai-user-message table tr,\nforge-ai-response-message table tr,\nforge-ai-error-message table tr {\n height: 36px;\n height: 32px;\n}\nforge-ai-user-message table tr:nth-child(even),\nforge-ai-response-message table tr:nth-child(even),\nforge-ai-error-message table tr:nth-child(even) {\n background-color: var(--forge-theme-surface-dim, #fafafa);\n}\nforge-ai-user-message table tr:last-child td,\nforge-ai-response-message table tr:last-child td,\nforge-ai-error-message table tr:last-child td {\n border-bottom: none;\n}\nforge-ai-user-message table th,\nforge-ai-user-message table td,\nforge-ai-response-message table th,\nforge-ai-response-message table td,\nforge-ai-error-message table th,\nforge-ai-error-message table td {\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-family: var(--forge-typography-label1-font-family, var(--forge-typography-font-family, \"Roboto\", sans-serif));\n font-size: var(--forge-typography-label1-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-font-size-scale, 0.75)));\n font-weight: var(--forge-typography-label1-font-weight, 400);\n line-height: var(--forge-typography-label1-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-line-height-scale, 1.25)));\n letter-spacing: var(--forge-typography-label1-letter-spacing, 0.0357142857em);\n text-transform: var(--forge-typography-label1-text-transform, inherit);\n text-decoration: var(--forge-typography-label1-text-decoration, inherit);\n padding-block: var(--forge-spacing-xsmall, 8px);\n padding-inline-start: var(--forge-spacing-xsmall, 8px);\n padding-inline-end: var(--forge-spacing-medium, 16px);\n border-bottom-width: 1px;\n border-bottom-style: solid;\n border-bottom-color: var(--forge-theme-outline, #e0e0e0);\n}\nforge-ai-user-message table th,\nforge-ai-response-message table th,\nforge-ai-error-message table th {\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-family: var(--forge-typography-label2-font-family, var(--forge-typography-font-family, \"Roboto\", sans-serif));\n font-size: var(--forge-typography-label2-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-font-size-scale, 0.8125)));\n font-weight: var(--forge-typography-label2-font-weight, 400);\n line-height: var(--forge-typography-label2-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-line-height-scale, 1.25)));\n letter-spacing: var(--forge-typography-label2-letter-spacing, 0.0096153846em);\n text-transform: var(--forge-typography-label2-text-transform, inherit);\n text-decoration: var(--forge-typography-label2-text-decoration, inherit);\n font-weight: 600;\n}\nforge-ai-user-message > p:has(+ ol),\nforge-ai-user-message > p:has(+ ul),\nforge-ai-response-message > p:has(+ ol),\nforge-ai-response-message > p:has(+ ul),\nforge-ai-error-message > p:has(+ ol),\nforge-ai-error-message > p:has(+ ul) {\n margin-block-end: var(--forge-spacing-small, 12px);\n}\nforge-ai-user-message > ul,\nforge-ai-response-message > ul,\nforge-ai-error-message > ul {\n list-style-type: disc;\n padding-inline-start: 1.6875rem;\n}\nforge-ai-user-message > ol,\nforge-ai-response-message > ol,\nforge-ai-error-message > ol {\n padding-inline-start: 1.75rem;\n}\nforge-ai-user-message > ol,\nforge-ai-user-message > ul,\nforge-ai-response-message > ol,\nforge-ai-response-message > ul,\nforge-ai-error-message > ol,\nforge-ai-error-message > ul {\n margin: var(--forge-spacing-xsmall, 8px) 0;\n margin-block-end: var(--forge-spacing-medium, 16px);\n}\nforge-ai-user-message > :first-child,\nforge-ai-response-message > :first-child,\nforge-ai-error-message > :first-child {\n margin-block-start: 0;\n}\nforge-ai-user-message > p,\nforge-ai-response-message > p,\nforge-ai-error-message > p {\n margin-block-end: var(--forge-spacing-medium, 16px);\n overflow-wrap: anywhere;\n}\nforge-ai-user-message > p:first-child,\nforge-ai-response-message > p:first-child,\nforge-ai-error-message > p:first-child {\n margin-block-start: 0;\n}\nforge-ai-user-message > p:last-child,\nforge-ai-response-message > p:last-child,\nforge-ai-error-message > p:last-child {\n margin-block-end: 0;\n}";
|
|
3
|
+
//#endregion
|
|
4
|
+
export { ai_message_thread_default as default };
|