@celljs/ta-web 4.10.0 → 4.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +7 -7
- package/README.md +7 -7
- package/esm/browser/assistant/assistant-chat-list.d.ts +11 -0
- package/esm/browser/assistant/assistant-chat-list.js +12 -0
- package/esm/browser/assistant/assistant-extension.js +5 -0
- package/esm/browser/assistant/assistant-protocol.d.ts +2 -1
- package/esm/browser/assistant/assistant-task-book.d.ts +12 -2
- package/esm/browser/assistant/assistant-task-book.js +23 -4
- package/esm/browser/assistant/assistant-task-source.d.ts +1 -1
- package/esm/browser/assistant/assistant-task-source.js +5 -10
- package/esm/browser/assistant/assistant-task-util.d.ts +13 -3
- package/esm/browser/assistant/assistant-task-util.js +59 -12
- package/esm/browser/assistant/assistant-view.js +48 -24
- package/esm/browser/assistant/assistant.d.ts +18 -4
- package/esm/browser/assistant/assistant.js +52 -17
- package/esm/browser/avatar/dino-face.js +1 -2
- package/esm/browser/chat/chat-protocol.d.ts +5 -0
- package/esm/browser/chat/chat-stores.d.ts +8 -5
- package/esm/browser/chat/chat-stores.js +17 -9
- package/esm/browser/chat/chat-view.js +23 -15
- package/esm/browser/chat/chat.d.ts +16 -8
- package/esm/browser/chat/chat.js +86 -51
- package/esm/browser/components/account-menu.d.ts +0 -2
- package/esm/browser/components/account-menu.js +1 -27
- package/esm/browser/components/agent-settings-view.d.ts +3 -2
- package/esm/browser/components/agent-settings-view.js +2 -1
- package/esm/browser/components/app-nav.d.ts +5 -2
- package/esm/browser/components/app-nav.js +22 -9
- package/esm/browser/components/app-shell-hooks.js +5 -3
- package/esm/browser/components/app-view.js +84 -20
- package/esm/browser/components/busy.d.ts +25 -0
- package/esm/browser/components/busy.js +52 -0
- package/esm/browser/components/chat-icon.d.ts +29 -0
- package/esm/browser/components/chat-icon.js +78 -0
- package/esm/browser/components/chat-list.d.ts +73 -6
- package/esm/browser/components/chat-list.js +295 -60
- package/esm/browser/components/chat-seen.d.ts +53 -0
- package/esm/browser/components/chat-seen.js +101 -0
- package/esm/browser/components/composer-box.d.ts +15 -4
- package/esm/browser/components/composer-box.js +139 -77
- package/esm/browser/components/composer.d.ts +9 -6
- package/esm/browser/components/composer.js +32 -4
- package/esm/browser/components/conversation-scroll-hooks.d.ts +16 -0
- package/esm/browser/components/conversation-scroll-hooks.js +98 -0
- package/esm/browser/components/conversation-scroll-util.d.ts +30 -0
- package/esm/browser/components/conversation-scroll-util.js +56 -0
- package/esm/browser/components/conversation-scroll.d.ts +52 -31
- package/esm/browser/components/conversation-scroll.js +170 -129
- package/esm/browser/components/custom-host.d.ts +3 -0
- package/esm/browser/components/custom-host.js +14 -0
- package/esm/browser/components/directory-commands.d.ts +6 -0
- package/esm/browser/components/directory-commands.js +34 -0
- package/esm/browser/components/discover-view.d.ts +11 -4
- package/esm/browser/components/discover-view.js +20 -11
- package/esm/browser/components/dismiss.d.ts +3 -0
- package/esm/browser/components/dismiss.js +29 -0
- package/esm/browser/components/earlier-messages.d.ts +34 -3
- package/esm/browser/components/earlier-messages.js +42 -8
- package/esm/browser/components/editor-area.d.ts +6 -22
- package/esm/browser/components/editor-area.js +10 -97
- package/esm/browser/components/face.d.ts +24 -0
- package/esm/browser/components/face.js +42 -0
- package/esm/browser/components/fold-text.d.ts +20 -0
- package/esm/browser/components/fold-text.js +66 -0
- package/esm/browser/components/folder-picker.d.ts +1 -1
- package/esm/browser/components/folder-picker.js +1 -1
- package/esm/browser/components/full-screen.d.ts +9 -0
- package/esm/browser/components/full-screen.js +26 -0
- package/esm/browser/components/grow-box.d.ts +9 -0
- package/esm/browser/components/grow-box.js +50 -0
- package/esm/browser/components/hold-to-talk.d.ts +22 -0
- package/esm/browser/components/hold-to-talk.js +29 -0
- package/esm/browser/components/host-view.d.ts +1 -1
- package/esm/browser/components/icon.d.ts +3 -1
- package/esm/browser/components/icon.js +4 -3
- package/esm/browser/components/image-viewer.d.ts +10 -2
- package/esm/browser/components/image-viewer.js +48 -11
- package/esm/browser/components/launcher-search-util.d.ts +4 -3
- package/esm/browser/components/launcher-search-util.js +12 -4
- package/esm/browser/components/lightbox.d.ts +5 -2
- package/esm/browser/components/lightbox.js +4 -3
- package/esm/browser/components/list-rows.d.ts +9 -1
- package/esm/browser/components/list-rows.js +17 -3
- package/esm/browser/components/markdown.js +36 -4
- package/esm/browser/components/media.js +73 -7
- package/esm/browser/components/message-actions.js +3 -0
- package/esm/browser/components/message-footer.d.ts +8 -0
- package/esm/browser/components/message-footer.js +20 -3
- package/esm/browser/components/message-list.d.ts +60 -7
- package/esm/browser/components/message-list.js +206 -58
- package/esm/browser/components/message-menu.js +6 -1
- package/esm/browser/components/model-picker.js +1 -0
- package/esm/browser/components/nav-places.d.ts +21 -2
- package/esm/browser/components/nav-places.js +20 -4
- package/esm/browser/components/notice-center.js +34 -0
- package/esm/browser/components/notice-face.d.ts +10 -0
- package/esm/browser/components/notice-face.js +28 -0
- package/esm/browser/components/phone-shell.d.ts +23 -1
- package/esm/browser/components/phone-shell.js +98 -9
- package/esm/browser/components/picture.d.ts +8 -1
- package/esm/browser/components/picture.js +12 -1
- package/esm/browser/components/plus-menu.d.ts +23 -0
- package/esm/browser/components/plus-menu.js +90 -0
- package/esm/browser/components/recent-shot.d.ts +15 -0
- package/esm/browser/components/recent-shot.js +174 -0
- package/esm/browser/components/relay-view.js +10 -3
- package/esm/browser/components/run-status.d.ts +1 -1
- package/esm/browser/components/run-status.js +17 -29
- package/esm/browser/components/said-text.d.ts +6 -0
- package/esm/browser/components/said-text.js +14 -0
- package/esm/browser/components/scan-screen.d.ts +10 -0
- package/esm/browser/components/scan-screen.js +230 -0
- package/esm/browser/components/search-page.js +10 -6
- package/esm/browser/components/session-settings.d.ts +2 -3
- package/esm/browser/components/session-settings.js +1 -0
- package/esm/browser/components/session-view.d.ts +3 -1
- package/esm/browser/components/session-view.js +35 -21
- package/esm/browser/components/settings-choices.d.ts +1 -0
- package/esm/browser/components/settings-choices.js +3 -2
- package/esm/browser/components/settings-controls.d.ts +5 -3
- package/esm/browser/components/settings-controls.js +10 -1
- package/esm/browser/components/settings-parts.js +45 -14
- package/esm/browser/components/stop-times.d.ts +47 -0
- package/esm/browser/components/stop-times.js +81 -0
- package/esm/browser/components/tool-view.js +7 -2
- package/esm/browser/components/unseen-drop.d.ts +39 -0
- package/esm/browser/components/unseen-drop.js +219 -0
- package/esm/browser/components/use-seen-chats.d.ts +8 -0
- package/esm/browser/components/use-seen-chats.js +49 -0
- package/esm/browser/components/use-stop-times.d.ts +3 -0
- package/esm/browser/components/use-stop-times.js +17 -0
- package/esm/browser/components/voice-button.d.ts +7 -1
- package/esm/browser/components/voice-button.js +15 -2
- package/esm/browser/components/voice-picker.d.ts +6 -0
- package/esm/browser/components/voice-picker.js +53 -0
- package/esm/browser/components/voice-talk.d.ts +11 -3
- package/esm/browser/components/voice-talk.js +24 -4
- package/esm/browser/components/web-composer.d.ts +4 -2
- package/esm/browser/components/web-composer.js +8 -4
- package/esm/browser/components/workbench-tabs.d.ts +41 -0
- package/esm/browser/components/workbench-tabs.js +193 -0
- package/esm/browser/components/workbench-toggle.d.ts +0 -13
- package/esm/browser/components/workbench-toggle.js +1 -28
- package/esm/browser/device/code-scan.d.ts +55 -0
- package/esm/browser/device/code-scan.js +137 -0
- package/esm/browser/device/code-vision.d.ts +51 -0
- package/esm/browser/device/code-vision.js +100 -0
- package/esm/browser/device/hold.js +4 -6
- package/esm/browser/device/long-press.d.ts +10 -0
- package/esm/browser/device/long-press.js +28 -12
- package/esm/browser/device/own-gestures.d.ts +25 -0
- package/esm/browser/device/own-gestures.js +39 -0
- package/esm/browser/device/photo-picker.d.ts +14 -0
- package/esm/browser/device/photo-picker.js +48 -0
- package/esm/browser/device/pull-down.js +3 -2
- package/esm/browser/device/recent-shots.d.ts +45 -0
- package/esm/browser/device/recent-shots.js +142 -0
- package/esm/browser/device/row-swipe.d.ts +2 -0
- package/esm/browser/device/row-swipe.js +14 -3
- package/esm/browser/device/sheet-swipe.d.ts +1 -1
- package/esm/browser/device/sheet-swipe.js +25 -4
- package/esm/browser/extension/extension-view.d.ts +10 -0
- package/esm/browser/extension/extension-view.js +6 -0
- package/esm/browser/extension/icons.js +16 -2
- package/esm/browser/extension/web-api-components.d.ts +287 -0
- package/esm/browser/extension/web-api-components.js +2 -0
- package/esm/browser/extension/web-api-contributions.d.ts +394 -0
- package/esm/browser/extension/web-api-contributions.js +2 -0
- package/esm/browser/extension/web-api-desktop.d.ts +55 -0
- package/esm/browser/extension/web-api-desktop.js +2 -0
- package/esm/browser/extension/web-api-terminal.d.ts +71 -0
- package/esm/browser/extension/web-api-terminal.js +2 -0
- package/esm/browser/extension/web-editor-tabs.d.ts +42 -0
- package/esm/browser/extension/web-editor-tabs.js +137 -0
- package/esm/browser/extension/web-extension-api.d.ts +186 -565
- package/esm/browser/extension/web-extension-context.d.ts +78 -0
- package/esm/browser/extension/web-extension-context.js +354 -0
- package/esm/browser/extension/web-extension-protocol.d.ts +57 -7
- package/esm/browser/extension/web-extension-protocol.js +34 -0
- package/esm/browser/extension/web-extension-run.d.ts +54 -0
- package/esm/browser/extension/web-extension-run.js +120 -0
- package/esm/browser/extension/web-extensions.d.ts +29 -69
- package/esm/browser/extension/web-extensions.js +121 -516
- package/esm/browser/extension/web-home.d.ts +19 -0
- package/esm/browser/extension/web-home.js +72 -0
- package/esm/browser/extension/web-pages.d.ts +13 -3
- package/esm/browser/extension/web-pages.js +23 -3
- package/esm/browser/extension/web-session-notices.d.ts +36 -0
- package/esm/browser/extension/web-session-notices.js +174 -0
- package/esm/browser/extension/web-sharing.d.ts +2 -0
- package/esm/browser/extension/web-sharing.js +4 -0
- package/esm/browser/game/game-host.d.ts +27 -0
- package/esm/browser/game/game-host.js +127 -0
- package/esm/browser/game/game-loader.d.ts +10 -0
- package/esm/browser/game/game-loader.js +28 -0
- package/esm/browser/game/game-protocol.d.ts +49 -0
- package/esm/browser/game/game-protocol.js +2 -0
- package/esm/browser/game/game-runner.d.ts +27 -0
- package/esm/browser/game/game-runner.js +60 -0
- package/esm/browser/game/game-util.d.ts +29 -0
- package/esm/browser/game/game-util.js +180 -0
- package/esm/browser/game/game-view.d.ts +12 -0
- package/esm/browser/game/game-view.js +31 -0
- package/esm/browser/game/game3d-protocol.d.ts +51 -0
- package/esm/browser/game/game3d-protocol.js +2 -0
- package/esm/browser/game/game3d-runner.d.ts +27 -0
- package/esm/browser/game/game3d-runner.js +149 -0
- package/esm/browser/hooks.d.ts +5 -1
- package/esm/browser/hooks.js +13 -2
- package/esm/browser/i18n/locales.d.ts +92 -2
- package/esm/browser/i18n/messages.d.ts +91 -1
- package/esm/browser/i18n/messages.js +187 -7
- package/esm/browser/index.d.ts +9 -0
- package/esm/browser/index.js +9 -0
- package/esm/browser/links/links-protocol.d.ts +7 -0
- package/esm/browser/links/links.d.ts +24 -7
- package/esm/browser/links/links.js +64 -11
- package/esm/browser/markdown/code-renderers.d.ts +4 -0
- package/esm/browser/markdown/code-renderers.js +4 -0
- package/esm/browser/notices/notices-protocol.d.ts +17 -0
- package/esm/browser/notices/notices.d.ts +1 -1
- package/esm/browser/notices/notices.js +6 -2
- package/esm/browser/notices/session-notices.d.ts +69 -0
- package/esm/browser/notices/session-notices.js +92 -0
- package/esm/browser/offline/device-values.js +12 -3
- package/esm/browser/offline/offline-reads.js +3 -1
- package/esm/browser/settings/navigation.d.ts +3 -2
- package/esm/browser/settings/navigation.js +4 -3
- package/esm/browser/settings/settings-protocol.d.ts +15 -0
- package/esm/browser/settings/settings-protocol.js +18 -4
- package/esm/browser/state/state-protocol.d.ts +8 -1
- package/esm/browser/state/state.d.ts +2 -0
- package/esm/browser/state/state.js +21 -2
- package/esm/browser/style/base.d.ts +1 -1
- package/esm/browser/style/base.js +27 -1
- package/esm/browser/style/conversation.d.ts +1 -1
- package/esm/browser/style/conversation.js +45 -5
- package/esm/browser/style/device.js +15 -1
- package/esm/browser/style/layout.d.ts +1 -1
- package/esm/browser/style/layout.js +192 -56
- package/esm/browser/style/pages.d.ts +1 -1
- package/esm/browser/style/pages.js +39 -1
- package/esm/browser/style/phone.d.ts +1 -1
- package/esm/browser/style/phone.js +15 -0
- package/esm/browser/style/shell.d.ts +1 -1
- package/esm/browser/style/shell.js +32 -6
- package/esm/browser/style/surfaces.d.ts +1 -1
- package/esm/browser/style/surfaces.js +21 -2
- package/esm/browser/style/tints.d.ts +27 -0
- package/esm/browser/style/tints.js +56 -0
- package/esm/browser/style.js +13 -1
- package/esm/browser/util/composer.d.ts +6 -0
- package/esm/browser/util/composer.js +16 -0
- package/esm/browser/util/desktop.d.ts +19 -1
- package/esm/browser/util/desktop.js +15 -0
- package/esm/browser/util/frame.d.ts +2 -0
- package/esm/browser/util/frame.js +2 -0
- package/esm/browser/util/link.d.ts +18 -0
- package/esm/browser/util/link.js +66 -1
- package/esm/browser/util/markdown.d.ts +4 -1
- package/esm/browser/util/markdown.js +1 -1
- package/esm/browser/util/message.d.ts +5 -0
- package/esm/browser/util/message.js +30 -0
- package/esm/browser/util/process.d.ts +57 -3
- package/esm/browser/util/process.js +123 -11
- package/esm/browser/util/progress.d.ts +19 -1
- package/esm/browser/util/progress.js +57 -4
- package/esm/browser/util/quote.d.ts +19 -0
- package/esm/browser/util/quote.js +58 -0
- package/esm/browser/util/tool.d.ts +19 -2
- package/esm/browser/util/tool.js +70 -2
- package/esm/browser/util/voice.d.ts +47 -7
- package/esm/browser/util/voice.js +269 -27
- package/esm/browser/workbench-calls.d.ts +6 -4
- package/esm/browser/workbench-calls.js +15 -10
- package/esm/browser/workbench-protocol.d.ts +31 -2
- package/esm/browser/workbench-util.d.ts +15 -4
- package/esm/browser/workbench-util.js +28 -5
- package/esm/browser/workbench.d.ts +33 -1
- package/esm/browser/workbench.js +142 -14
- package/lib/browser/assistant/assistant-chat-list.d.ts +11 -0
- package/lib/browser/assistant/assistant-chat-list.js +13 -0
- package/lib/browser/assistant/assistant-extension.js +5 -0
- package/lib/browser/assistant/assistant-protocol.d.ts +2 -1
- package/lib/browser/assistant/assistant-task-book.d.ts +12 -2
- package/lib/browser/assistant/assistant-task-book.js +23 -4
- package/lib/browser/assistant/assistant-task-source.d.ts +1 -1
- package/lib/browser/assistant/assistant-task-source.js +5 -10
- package/lib/browser/assistant/assistant-task-util.d.ts +13 -3
- package/lib/browser/assistant/assistant-task-util.js +59 -12
- package/lib/browser/assistant/assistant-view.js +46 -22
- package/lib/browser/assistant/assistant.d.ts +18 -4
- package/lib/browser/assistant/assistant.js +52 -17
- package/lib/browser/avatar/dino-face.js +1 -2
- package/lib/browser/chat/chat-protocol.d.ts +5 -0
- package/lib/browser/chat/chat-stores.d.ts +8 -5
- package/lib/browser/chat/chat-stores.js +17 -9
- package/lib/browser/chat/chat-view.js +22 -14
- package/lib/browser/chat/chat.d.ts +16 -8
- package/lib/browser/chat/chat.js +86 -51
- package/lib/browser/components/account-menu.d.ts +0 -2
- package/lib/browser/components/account-menu.js +2 -29
- package/lib/browser/components/agent-settings-view.d.ts +3 -2
- package/lib/browser/components/agent-settings-view.js +2 -1
- package/lib/browser/components/app-nav.d.ts +5 -2
- package/lib/browser/components/app-nav.js +18 -5
- package/lib/browser/components/app-shell-hooks.js +5 -3
- package/lib/browser/components/app-view.js +80 -16
- package/lib/browser/components/busy.d.ts +26 -0
- package/lib/browser/components/busy.js +91 -0
- package/lib/browser/components/chat-icon.d.ts +30 -0
- package/lib/browser/components/chat-icon.js +117 -0
- package/lib/browser/components/chat-list.d.ts +73 -6
- package/lib/browser/components/chat-list.js +295 -59
- package/lib/browser/components/chat-seen.d.ts +54 -0
- package/lib/browser/components/chat-seen.js +104 -0
- package/lib/browser/components/composer-box.d.ts +15 -4
- package/lib/browser/components/composer-box.js +136 -74
- package/lib/browser/components/composer.d.ts +9 -6
- package/lib/browser/components/composer.js +31 -3
- package/lib/browser/components/conversation-scroll-hooks.d.ts +17 -0
- package/lib/browser/components/conversation-scroll-hooks.js +135 -0
- package/lib/browser/components/conversation-scroll-util.d.ts +31 -0
- package/lib/browser/components/conversation-scroll-util.js +60 -0
- package/lib/browser/components/conversation-scroll.d.ts +52 -31
- package/lib/browser/components/conversation-scroll.js +171 -164
- package/lib/browser/components/custom-host.d.ts +4 -0
- package/lib/browser/components/custom-host.js +50 -0
- package/lib/browser/components/directory-commands.d.ts +7 -0
- package/lib/browser/components/directory-commands.js +70 -0
- package/lib/browser/components/discover-view.d.ts +11 -4
- package/lib/browser/components/discover-view.js +19 -10
- package/lib/browser/components/dismiss.d.ts +4 -0
- package/lib/browser/components/dismiss.js +65 -0
- package/lib/browser/components/earlier-messages.d.ts +34 -3
- package/lib/browser/components/earlier-messages.js +44 -9
- package/lib/browser/components/editor-area.d.ts +6 -22
- package/lib/browser/components/editor-area.js +11 -98
- package/lib/browser/components/face.d.ts +25 -0
- package/lib/browser/components/face.js +79 -0
- package/lib/browser/components/fold-text.d.ts +21 -0
- package/lib/browser/components/fold-text.js +103 -0
- package/lib/browser/components/folder-picker.d.ts +1 -1
- package/lib/browser/components/folder-picker.js +1 -1
- package/lib/browser/components/full-screen.d.ts +10 -0
- package/lib/browser/components/full-screen.js +62 -0
- package/lib/browser/components/grow-box.d.ts +10 -0
- package/lib/browser/components/grow-box.js +86 -0
- package/lib/browser/components/hold-to-talk.d.ts +23 -0
- package/lib/browser/components/hold-to-talk.js +65 -0
- package/lib/browser/components/host-view.d.ts +1 -1
- package/lib/browser/components/icon.d.ts +3 -1
- package/lib/browser/components/icon.js +4 -3
- package/lib/browser/components/image-viewer.d.ts +10 -2
- package/lib/browser/components/image-viewer.js +47 -10
- package/lib/browser/components/launcher-search-util.d.ts +4 -3
- package/lib/browser/components/launcher-search-util.js +12 -4
- package/lib/browser/components/lightbox.d.ts +5 -2
- package/lib/browser/components/lightbox.js +4 -3
- package/lib/browser/components/list-rows.d.ts +9 -1
- package/lib/browser/components/list-rows.js +18 -3
- package/lib/browser/components/markdown.js +36 -4
- package/lib/browser/components/media.js +73 -7
- package/lib/browser/components/message-actions.js +3 -0
- package/lib/browser/components/message-footer.d.ts +8 -0
- package/lib/browser/components/message-footer.js +20 -2
- package/lib/browser/components/message-list.d.ts +60 -7
- package/lib/browser/components/message-list.js +206 -55
- package/lib/browser/components/message-menu.js +6 -1
- package/lib/browser/components/model-picker.js +1 -0
- package/lib/browser/components/nav-places.d.ts +21 -2
- package/lib/browser/components/nav-places.js +22 -4
- package/lib/browser/components/notice-center.js +34 -0
- package/lib/browser/components/notice-face.d.ts +11 -0
- package/lib/browser/components/notice-face.js +64 -0
- package/lib/browser/components/phone-shell.d.ts +23 -1
- package/lib/browser/components/phone-shell.js +99 -10
- package/lib/browser/components/picture.d.ts +8 -1
- package/lib/browser/components/picture.js +13 -1
- package/lib/browser/components/plus-menu.d.ts +24 -0
- package/lib/browser/components/plus-menu.js +126 -0
- package/lib/browser/components/recent-shot.d.ts +16 -0
- package/lib/browser/components/recent-shot.js +210 -0
- package/lib/browser/components/relay-view.js +10 -3
- package/lib/browser/components/run-status.d.ts +1 -1
- package/lib/browser/components/run-status.js +17 -29
- package/lib/browser/components/said-text.d.ts +7 -0
- package/lib/browser/components/said-text.js +50 -0
- package/lib/browser/components/scan-screen.d.ts +11 -0
- package/lib/browser/components/scan-screen.js +266 -0
- package/lib/browser/components/search-page.js +10 -6
- package/lib/browser/components/session-settings.d.ts +2 -3
- package/lib/browser/components/session-settings.js +1 -0
- package/lib/browser/components/session-view.d.ts +3 -1
- package/lib/browser/components/session-view.js +32 -18
- package/lib/browser/components/settings-choices.d.ts +1 -0
- package/lib/browser/components/settings-choices.js +2 -1
- package/lib/browser/components/settings-controls.d.ts +5 -3
- package/lib/browser/components/settings-controls.js +10 -1
- package/lib/browser/components/settings-parts.js +43 -12
- package/lib/browser/components/stop-times.d.ts +48 -0
- package/lib/browser/components/stop-times.js +85 -0
- package/lib/browser/components/tool-view.js +7 -2
- package/lib/browser/components/unseen-drop.d.ts +40 -0
- package/lib/browser/components/unseen-drop.js +256 -0
- package/lib/browser/components/use-seen-chats.d.ts +9 -0
- package/lib/browser/components/use-seen-chats.js +85 -0
- package/lib/browser/components/use-stop-times.d.ts +4 -0
- package/lib/browser/components/use-stop-times.js +53 -0
- package/lib/browser/components/voice-button.d.ts +7 -1
- package/lib/browser/components/voice-button.js +16 -2
- package/lib/browser/components/voice-picker.d.ts +7 -0
- package/lib/browser/components/voice-picker.js +89 -0
- package/lib/browser/components/voice-talk.d.ts +11 -3
- package/lib/browser/components/voice-talk.js +25 -4
- package/lib/browser/components/web-composer.d.ts +4 -2
- package/lib/browser/components/web-composer.js +7 -3
- package/lib/browser/components/workbench-tabs.d.ts +42 -0
- package/lib/browser/components/workbench-tabs.js +232 -0
- package/lib/browser/components/workbench-toggle.d.ts +0 -13
- package/lib/browser/components/workbench-toggle.js +1 -29
- package/lib/browser/device/code-scan.d.ts +56 -0
- package/lib/browser/device/code-scan.js +141 -0
- package/lib/browser/device/code-vision.d.ts +52 -0
- package/lib/browser/device/code-vision.js +103 -0
- package/lib/browser/device/hold.js +4 -6
- package/lib/browser/device/long-press.d.ts +10 -0
- package/lib/browser/device/long-press.js +28 -12
- package/lib/browser/device/own-gestures.d.ts +26 -0
- package/lib/browser/device/own-gestures.js +42 -0
- package/lib/browser/device/photo-picker.d.ts +15 -0
- package/lib/browser/device/photo-picker.js +51 -0
- package/lib/browser/device/pull-down.js +3 -2
- package/lib/browser/device/recent-shots.d.ts +46 -0
- package/lib/browser/device/recent-shots.js +145 -0
- package/lib/browser/device/row-swipe.d.ts +2 -0
- package/lib/browser/device/row-swipe.js +14 -3
- package/lib/browser/device/sheet-swipe.d.ts +1 -1
- package/lib/browser/device/sheet-swipe.js +25 -4
- package/lib/browser/extension/extension-view.d.ts +10 -0
- package/lib/browser/extension/extension-view.js +7 -1
- package/lib/browser/extension/icons.js +15 -1
- package/lib/browser/extension/web-api-components.d.ts +288 -0
- package/lib/browser/extension/web-api-components.js +3 -0
- package/lib/browser/extension/web-api-contributions.d.ts +395 -0
- package/lib/browser/extension/web-api-contributions.js +3 -0
- package/lib/browser/extension/web-api-desktop.d.ts +56 -0
- package/lib/browser/extension/web-api-desktop.js +3 -0
- package/lib/browser/extension/web-api-terminal.d.ts +72 -0
- package/lib/browser/extension/web-api-terminal.js +3 -0
- package/lib/browser/extension/web-editor-tabs.d.ts +43 -0
- package/lib/browser/extension/web-editor-tabs.js +141 -0
- package/lib/browser/extension/web-extension-api.d.ts +186 -565
- package/lib/browser/extension/web-extension-context.d.ts +79 -0
- package/lib/browser/extension/web-extension-context.js +391 -0
- package/lib/browser/extension/web-extension-protocol.d.ts +57 -7
- package/lib/browser/extension/web-extension-protocol.js +35 -1
- package/lib/browser/extension/web-extension-run.d.ts +55 -0
- package/lib/browser/extension/web-extension-run.js +123 -0
- package/lib/browser/extension/web-extensions.d.ts +29 -69
- package/lib/browser/extension/web-extensions.js +117 -545
- package/lib/browser/extension/web-home.d.ts +20 -0
- package/lib/browser/extension/web-home.js +76 -0
- package/lib/browser/extension/web-pages.d.ts +13 -3
- package/lib/browser/extension/web-pages.js +23 -3
- package/lib/browser/extension/web-session-notices.d.ts +37 -0
- package/lib/browser/extension/web-session-notices.js +177 -0
- package/lib/browser/extension/web-sharing.d.ts +2 -0
- package/lib/browser/extension/web-sharing.js +4 -0
- package/lib/browser/game/game-host.d.ts +28 -0
- package/lib/browser/game/game-host.js +163 -0
- package/lib/browser/game/game-loader.d.ts +11 -0
- package/lib/browser/game/game-loader.js +31 -0
- package/lib/browser/game/game-protocol.d.ts +50 -0
- package/lib/browser/game/game-protocol.js +3 -0
- package/lib/browser/game/game-runner.d.ts +28 -0
- package/lib/browser/game/game-runner.js +64 -0
- package/lib/browser/game/game-util.d.ts +30 -0
- package/lib/browser/game/game-util.js +183 -0
- package/lib/browser/game/game-view.d.ts +13 -0
- package/lib/browser/game/game-view.js +68 -0
- package/lib/browser/game/game3d-protocol.d.ts +52 -0
- package/lib/browser/game/game3d-protocol.js +3 -0
- package/lib/browser/game/game3d-runner.d.ts +28 -0
- package/lib/browser/game/game3d-runner.js +153 -0
- package/lib/browser/hooks.d.ts +5 -1
- package/lib/browser/hooks.js +14 -2
- package/lib/browser/i18n/locales.d.ts +92 -2
- package/lib/browser/i18n/messages.d.ts +91 -1
- package/lib/browser/i18n/messages.js +187 -7
- package/lib/browser/index.d.ts +9 -0
- package/lib/browser/index.js +9 -0
- package/lib/browser/links/links-protocol.d.ts +7 -0
- package/lib/browser/links/links.d.ts +24 -7
- package/lib/browser/links/links.js +64 -11
- package/lib/browser/markdown/code-renderers.d.ts +5 -0
- package/lib/browser/markdown/code-renderers.js +40 -0
- package/lib/browser/notices/notices-protocol.d.ts +17 -0
- package/lib/browser/notices/notices.d.ts +1 -1
- package/lib/browser/notices/notices.js +6 -2
- package/lib/browser/notices/session-notices.d.ts +70 -0
- package/lib/browser/notices/session-notices.js +96 -0
- package/lib/browser/offline/device-values.js +12 -3
- package/lib/browser/offline/offline-reads.js +3 -1
- package/lib/browser/settings/navigation.d.ts +3 -2
- package/lib/browser/settings/navigation.js +4 -3
- package/lib/browser/settings/settings-protocol.d.ts +15 -0
- package/lib/browser/settings/settings-protocol.js +19 -5
- package/lib/browser/state/state-protocol.d.ts +8 -1
- package/lib/browser/state/state.d.ts +2 -0
- package/lib/browser/state/state.js +21 -2
- package/lib/browser/style/base.d.ts +1 -1
- package/lib/browser/style/base.js +27 -1
- package/lib/browser/style/conversation.d.ts +1 -1
- package/lib/browser/style/conversation.js +45 -5
- package/lib/browser/style/device.js +15 -1
- package/lib/browser/style/layout.d.ts +1 -1
- package/lib/browser/style/layout.js +192 -56
- package/lib/browser/style/pages.d.ts +1 -1
- package/lib/browser/style/pages.js +39 -1
- package/lib/browser/style/phone.d.ts +1 -1
- package/lib/browser/style/phone.js +15 -0
- package/lib/browser/style/shell.d.ts +1 -1
- package/lib/browser/style/shell.js +32 -6
- package/lib/browser/style/surfaces.d.ts +1 -1
- package/lib/browser/style/surfaces.js +21 -2
- package/lib/browser/style/tints.d.ts +28 -0
- package/lib/browser/style/tints.js +59 -0
- package/lib/browser/style.js +13 -1
- package/lib/browser/util/composer.d.ts +6 -0
- package/lib/browser/util/composer.js +16 -0
- package/lib/browser/util/desktop.d.ts +19 -1
- package/lib/browser/util/desktop.js +15 -0
- package/lib/browser/util/frame.d.ts +2 -0
- package/lib/browser/util/frame.js +2 -0
- package/lib/browser/util/link.d.ts +18 -0
- package/lib/browser/util/link.js +66 -1
- package/lib/browser/util/markdown.d.ts +4 -1
- package/lib/browser/util/markdown.js +1 -1
- package/lib/browser/util/message.d.ts +5 -0
- package/lib/browser/util/message.js +30 -0
- package/lib/browser/util/process.d.ts +57 -3
- package/lib/browser/util/process.js +125 -12
- package/lib/browser/util/progress.d.ts +19 -1
- package/lib/browser/util/progress.js +57 -4
- package/lib/browser/util/quote.d.ts +20 -0
- package/lib/browser/util/quote.js +61 -0
- package/lib/browser/util/tool.d.ts +19 -2
- package/lib/browser/util/tool.js +70 -2
- package/lib/browser/util/voice.d.ts +47 -7
- package/lib/browser/util/voice.js +269 -27
- package/lib/browser/workbench-calls.d.ts +6 -4
- package/lib/browser/workbench-calls.js +15 -10
- package/lib/browser/workbench-protocol.d.ts +31 -2
- package/lib/browser/workbench-util.d.ts +15 -4
- package/lib/browser/workbench-util.js +28 -5
- package/lib/browser/workbench.d.ts +33 -1
- package/lib/browser/workbench.js +140 -12
- package/package.json +11 -8
|
@@ -54,9 +54,10 @@ exports.SidebarLeft = SidebarLeft;
|
|
|
54
54
|
const SidebarRight = (props) => React.createElement(SidebarGlyph, { side: "right", ...props });
|
|
55
55
|
exports.SidebarRight = SidebarRight;
|
|
56
56
|
/** A round button with an icon; its label is the tooltip and what screen readers say. */
|
|
57
|
-
function IconButton({ icon, label, badge, className = '', ...props }) {
|
|
58
|
-
return (React.createElement("button", { type: "button", className: `ta-icon-button ${className}`, title: label, "aria-label": label, ...props },
|
|
57
|
+
function IconButton({ icon, label, badge, busy = false, className = '', ...props }) {
|
|
58
|
+
return (React.createElement("button", { type: "button", className: `ta-icon-button ${busy ? 'ta-busy ' : ''}${className}`, title: label, "aria-label": label, "aria-busy": busy || undefined, ...props },
|
|
59
59
|
React.createElement(Icon, { icon: icon }),
|
|
60
|
-
badge ? React.createElement("span", { className: "ta-badge" }, badge) : null
|
|
60
|
+
badge ? React.createElement("span", { className: "ta-badge" }, badge) : null,
|
|
61
|
+
busy ? React.createElement("span", { className: "ta-spinner ta-busy-mark", "aria-hidden": "true" }) : null));
|
|
61
62
|
}
|
|
62
63
|
//# sourceMappingURL=icon.js.map
|
|
@@ -118,8 +118,16 @@ export interface ImageViewerProps {
|
|
|
118
118
|
onLoad?(size: ZoomSize): void;
|
|
119
119
|
/** A click or tap beside the picture (the lightbox closes). */
|
|
120
120
|
onBackground?(): void;
|
|
121
|
+
/** The picture before this one, and the one after (of a folder, of a message): buttons at the sides and ← →; none without them. */
|
|
122
|
+
onPrevious?(): void;
|
|
123
|
+
onNext?(): void;
|
|
124
|
+
/** Takes the keys at once: the picture after one shown by ← → (another viewer) goes on with the keys. */
|
|
125
|
+
autoFocus?: boolean;
|
|
121
126
|
}
|
|
122
|
-
/**
|
|
123
|
-
|
|
127
|
+
/**
|
|
128
|
+
* A picture that zooms and scrolls (ImageZoom), with its buttons: −, the scale, +, fit to window and actual size;
|
|
129
|
+
* with `onPrevious` / `onNext`, the pictures beside it at its sides and by ← → (which scroll it while it is zoomed).
|
|
130
|
+
*/
|
|
131
|
+
export declare function ImageViewer({ src, alt, className, onLoad, onBackground, onPrevious, onNext, autoFocus }: ImageViewerProps): React.JSX.Element;
|
|
124
132
|
export {};
|
|
125
133
|
//# sourceMappingURL=image-viewer.d.ts.map
|
|
@@ -394,16 +394,22 @@ class ImageZoom {
|
|
|
394
394
|
}
|
|
395
395
|
}
|
|
396
396
|
exports.ImageZoom = ImageZoom;
|
|
397
|
-
/**
|
|
398
|
-
|
|
397
|
+
/**
|
|
398
|
+
* A picture that zooms and scrolls (ImageZoom), with its buttons: −, the scale, +, fit to window and actual size;
|
|
399
|
+
* with `onPrevious` / `onNext`, the pictures beside it at its sides and by ← → (which scroll it while it is zoomed).
|
|
400
|
+
*/
|
|
401
|
+
function ImageViewer({ src, alt = '', className = '', onLoad, onBackground, onPrevious, onNext, autoFocus }) {
|
|
399
402
|
const t = (0, use_t_1.useT)();
|
|
400
403
|
const viewport = React.useRef(null);
|
|
401
404
|
const stage = React.useRef(null);
|
|
402
405
|
const image = React.useRef(null);
|
|
403
406
|
const zoom = React.useRef(undefined);
|
|
404
|
-
const latest = React.useRef({ onLoad, onBackground });
|
|
405
|
-
latest.current = { onLoad, onBackground };
|
|
407
|
+
const latest = React.useRef({ onLoad, onBackground, onPrevious, onNext });
|
|
408
|
+
latest.current = { onLoad, onBackground, onPrevious, onNext };
|
|
409
|
+
/** Whether it takes the keys as it comes: only then, not when it is shown again. */
|
|
410
|
+
const focusFirst = React.useRef(autoFocus);
|
|
406
411
|
const [state, setState] = React.useState();
|
|
412
|
+
const [failed, setFailed] = React.useState();
|
|
407
413
|
React.useEffect(() => {
|
|
408
414
|
if (!viewport.current || !stage.current || !image.current) {
|
|
409
415
|
return;
|
|
@@ -414,22 +420,53 @@ function ImageViewer({ src, alt = '', className = '', onLoad, onBackground }) {
|
|
|
414
420
|
background: () => { var _a, _b; return (_b = (_a = latest.current).onBackground) === null || _b === void 0 ? void 0 : _b.call(_a); },
|
|
415
421
|
});
|
|
416
422
|
zoom.current = controller;
|
|
423
|
+
const element = viewport.current;
|
|
424
|
+
if (focusFirst.current) {
|
|
425
|
+
element.focus({ preventScroll: true });
|
|
426
|
+
}
|
|
427
|
+
// Zoomed, the arrows scroll it; else they go to the picture beside it.
|
|
428
|
+
const onKeyDown = (event) => {
|
|
429
|
+
if (event.altKey || event.ctrlKey || event.metaKey || element.dataset.zoomed === 'true') {
|
|
430
|
+
return;
|
|
431
|
+
}
|
|
432
|
+
const { onPrevious: previous, onNext: next } = latest.current;
|
|
433
|
+
const go = event.key === 'ArrowLeft' ? previous : event.key === 'ArrowRight' ? next : undefined;
|
|
434
|
+
if (go) {
|
|
435
|
+
event.preventDefault();
|
|
436
|
+
go();
|
|
437
|
+
}
|
|
438
|
+
};
|
|
439
|
+
element.addEventListener('keydown', onKeyDown);
|
|
417
440
|
// Another src loads in the same picture: its load measures it again.
|
|
418
|
-
|
|
441
|
+
const detach = controller.attach();
|
|
442
|
+
return () => {
|
|
443
|
+
element.removeEventListener('keydown', onKeyDown);
|
|
444
|
+
detach();
|
|
445
|
+
};
|
|
419
446
|
}, []);
|
|
420
447
|
const fitted = !state || zoom_1.ZoomUtil.fitted(state.scale, state);
|
|
448
|
+
const browses = !!onPrevious || !!onNext;
|
|
421
449
|
return (React.createElement("div", { className: `ta-zoom ${className}` },
|
|
422
450
|
React.createElement("div", { ref: viewport, className: "ta-zoom-viewport", tabIndex: 0 },
|
|
423
451
|
React.createElement("div", { ref: stage, className: "ta-zoom-stage" },
|
|
424
|
-
React.createElement("img", { ref: image, src: src, alt: alt, draggable: false }))),
|
|
452
|
+
React.createElement("img", { ref: image, src: src, alt: alt, draggable: false, onError: () => setFailed(src) }))),
|
|
453
|
+
!state && (React.createElement("div", { className: `ta-zoom-status ${failed === src ? 'ta-zoom-failed' : ''}` }, t(failed === src ? 'ta.zoom.failed' : 'ta.zoom.loading'))),
|
|
454
|
+
browses && (React.createElement(React.Fragment, null,
|
|
455
|
+
React.createElement("button", { type: "button", className: "ta-zoom-nav ta-zoom-previous", title: t('ta.zoom.previous'), disabled: !onPrevious, onClick: onPrevious },
|
|
456
|
+
React.createElement(icon_1.Icon, { icon: lucide_react_1.ChevronLeft, size: 20 })),
|
|
457
|
+
React.createElement("button", { type: "button", className: "ta-zoom-nav ta-zoom-next", title: t('ta.zoom.next'), disabled: !onNext, onClick: onNext },
|
|
458
|
+
React.createElement(icon_1.Icon, { icon: lucide_react_1.ChevronRight, size: 20 })))),
|
|
425
459
|
state && (React.createElement("div", { className: "ta-zoom-bar" },
|
|
426
460
|
React.createElement("button", { type: "button", title: t('ta.zoom.out'), disabled: state.scale <= state.min * 1.001, onClick: () => { var _a; return (_a = zoom.current) === null || _a === void 0 ? void 0 : _a.step(-1); } },
|
|
427
|
-
React.createElement(icon_1.Icon, { icon: lucide_react_1.Minus, size:
|
|
428
|
-
React.createElement("
|
|
461
|
+
React.createElement(icon_1.Icon, { icon: lucide_react_1.Minus, size: 17 })),
|
|
462
|
+
React.createElement("span", { className: "ta-zoom-scale" },
|
|
429
463
|
Math.round(state.scale * 100),
|
|
430
464
|
"%"),
|
|
431
465
|
React.createElement("button", { type: "button", title: t('ta.zoom.in'), disabled: state.scale >= state.max * 0.999, onClick: () => { var _a; return (_a = zoom.current) === null || _a === void 0 ? void 0 : _a.step(1); } },
|
|
432
|
-
React.createElement(icon_1.Icon, { icon: lucide_react_1.Plus, size:
|
|
433
|
-
React.createElement("button", { type: "button",
|
|
466
|
+
React.createElement(icon_1.Icon, { icon: lucide_react_1.Plus, size: 17 })),
|
|
467
|
+
React.createElement("button", { type: "button", title: t('ta.zoom.fit'), "aria-pressed": fitted, onClick: () => { var _a; return (_a = zoom.current) === null || _a === void 0 ? void 0 : _a.fit(); } },
|
|
468
|
+
React.createElement(icon_1.Icon, { icon: lucide_react_1.Maximize2, size: 16 })),
|
|
469
|
+
React.createElement("button", { type: "button", title: t('ta.zoom.actual'), "aria-pressed": Math.abs(state.scale - 1) < 0.001, onClick: () => { var _a; return (_a = zoom.current) === null || _a === void 0 ? void 0 : _a.actual(); } },
|
|
470
|
+
React.createElement(icon_1.Icon, { icon: lucide_react_1.Maximize, size: 16 }))))));
|
|
434
471
|
}
|
|
435
472
|
//# sourceMappingURL=image-viewer.js.map
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { WebPageInfo } from '../extension/web-pages';
|
|
2
|
-
/** The pages whose title or extension has every word of `query`, those whose title starts with it first. Pure, for the tests. */
|
|
3
2
|
export declare namespace LauncherSearchUtil {
|
|
4
3
|
function find(pages: readonly WebPageInfo[], query: string): WebPageInfo[];
|
|
5
|
-
/**
|
|
6
|
-
function
|
|
4
|
+
/** The tint of the tile of a page (--ta-tint-<n>), the same for the same extension, as the launcher's tiles. */
|
|
5
|
+
function tint(name: string): number;
|
|
6
|
+
/** The variables of the tile of a page in its tint. */
|
|
7
|
+
function tileStyle(name: string): Record<string, string>;
|
|
7
8
|
/** The title cut where the query is found, to set it apart. */
|
|
8
9
|
function marks(title: string, query: string): {
|
|
9
10
|
text: string;
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.LauncherSearchUtil = void 0;
|
|
4
4
|
/** The pages whose title or extension has every word of `query`, those whose title starts with it first. Pure, for the tests. */
|
|
5
|
+
/** How many tints the theme has (--ta-tint-0 … --ta-tint-8, from the colors of the agents' faces). */
|
|
6
|
+
const TINTS = 9;
|
|
5
7
|
var LauncherSearchUtil;
|
|
6
8
|
(function (LauncherSearchUtil) {
|
|
7
9
|
function find(pages, query) {
|
|
@@ -16,16 +18,22 @@ var LauncherSearchUtil;
|
|
|
16
18
|
.sort((a, b) => { var _a, _b; return Number(!a.title.toLowerCase().startsWith(first)) - Number(!b.title.toLowerCase().startsWith(first)) || ((_a = b.usedAt) !== null && _a !== void 0 ? _a : 0) - ((_b = a.usedAt) !== null && _b !== void 0 ? _b : 0); });
|
|
17
19
|
}
|
|
18
20
|
LauncherSearchUtil.find = find;
|
|
19
|
-
/**
|
|
20
|
-
function
|
|
21
|
+
/** The tint of the tile of a page (--ta-tint-<n>), the same for the same extension, as the launcher's tiles. */
|
|
22
|
+
function tint(name) {
|
|
21
23
|
var _a;
|
|
22
24
|
let hash = 0;
|
|
23
25
|
for (const char of name) {
|
|
24
26
|
hash = (hash * 31 + ((_a = char.codePointAt(0)) !== null && _a !== void 0 ? _a : 0)) >>> 0;
|
|
25
27
|
}
|
|
26
|
-
return hash %
|
|
28
|
+
return hash % TINTS;
|
|
27
29
|
}
|
|
28
|
-
LauncherSearchUtil.
|
|
30
|
+
LauncherSearchUtil.tint = tint;
|
|
31
|
+
/** The variables of the tile of a page in its tint. */
|
|
32
|
+
function tileStyle(name) {
|
|
33
|
+
const n = tint(name);
|
|
34
|
+
return { '--ta-tile': `var(--ta-tint-${n})`, '--ta-tile-ink': `var(--ta-tint-ink-${n})` };
|
|
35
|
+
}
|
|
36
|
+
LauncherSearchUtil.tileStyle = tileStyle;
|
|
29
37
|
/** The title cut where the query is found, to set it apart. */
|
|
30
38
|
function marks(title, query) {
|
|
31
39
|
const word = query.trim().toLowerCase().split(/\s+/)[0];
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
/**
|
|
3
|
-
* An image over the page, to look at closely (ImageViewer): pinched, zoomed, dragged
|
|
3
|
+
* An image over the page, to look at closely (ImageViewer): pinched, zoomed, dragged, and with `onPrevious` /
|
|
4
|
+
* `onNext` the images beside it, by its side buttons and ← →. A click or tap beside it,
|
|
4
5
|
* its close button or Escape closes it. In the top layer, so no container clips it; the touches in it are its
|
|
5
6
|
* own, never a swipe of a sheet under it.
|
|
6
7
|
*/
|
|
7
|
-
export declare function Lightbox({ src, alt, onClose }: {
|
|
8
|
+
export declare function Lightbox({ src, alt, onClose, onPrevious, onNext }: {
|
|
8
9
|
src: string;
|
|
9
10
|
alt: string;
|
|
10
11
|
onClose(): void;
|
|
12
|
+
onPrevious?(): void;
|
|
13
|
+
onNext?(): void;
|
|
11
14
|
}): React.JSX.Element;
|
|
12
15
|
//# sourceMappingURL=lightbox.d.ts.map
|
|
@@ -40,11 +40,12 @@ const use_t_1 = require("../i18n/use-t");
|
|
|
40
40
|
const icon_1 = require("./icon");
|
|
41
41
|
const image_viewer_1 = require("./image-viewer");
|
|
42
42
|
/**
|
|
43
|
-
* An image over the page, to look at closely (ImageViewer): pinched, zoomed, dragged
|
|
43
|
+
* An image over the page, to look at closely (ImageViewer): pinched, zoomed, dragged, and with `onPrevious` /
|
|
44
|
+
* `onNext` the images beside it, by its side buttons and ← →. A click or tap beside it,
|
|
44
45
|
* its close button or Escape closes it. In the top layer, so no container clips it; the touches in it are its
|
|
45
46
|
* own, never a swipe of a sheet under it.
|
|
46
47
|
*/
|
|
47
|
-
function Lightbox({ src, alt, onClose }) {
|
|
48
|
+
function Lightbox({ src, alt, onClose, onPrevious, onNext }) {
|
|
48
49
|
const t = (0, use_t_1.useT)();
|
|
49
50
|
const dialog = React.useRef(null);
|
|
50
51
|
React.useEffect(() => {
|
|
@@ -53,7 +54,7 @@ function Lightbox({ src, alt, onClose }) {
|
|
|
53
54
|
}, []);
|
|
54
55
|
const close = () => { var _a; return (_a = dialog.current) === null || _a === void 0 ? void 0 : _a.close(); };
|
|
55
56
|
return (React.createElement("dialog", { ref: dialog, className: "ta-lightbox", onClose: onClose, onTouchStart: event => event.stopPropagation() },
|
|
56
|
-
React.createElement(image_viewer_1.ImageViewer, { src: src, alt: alt, onBackground: close }),
|
|
57
|
+
React.createElement(image_viewer_1.ImageViewer, { key: src, src: src, alt: alt, onBackground: close, onPrevious: onPrevious, onNext: onNext, autoFocus: true }),
|
|
57
58
|
React.createElement("button", { type: "button", className: "ta-lightbox-close", title: t('ta.close'), "aria-label": t('ta.close'), onClick: close },
|
|
58
59
|
React.createElement(icon_1.Icon, { icon: lucide_react_1.X, size: 18 }))));
|
|
59
60
|
}
|
|
@@ -9,7 +9,8 @@ export interface ListRowProps {
|
|
|
9
9
|
label: string;
|
|
10
10
|
/** On the right, muted: what is chosen. */
|
|
11
11
|
detail?: string;
|
|
12
|
-
|
|
12
|
+
/** A promise keeps the row busy (a page that loads first): a spinner in place of its chevron, once it took a moment. */
|
|
13
|
+
onClick(): unknown;
|
|
13
14
|
/** A right click, or a held finger. */
|
|
14
15
|
onContextMenu?(event: React.MouseEvent): void;
|
|
15
16
|
/** A button of its own at the end, in place of the chevron. */
|
|
@@ -18,5 +19,12 @@ export interface ListRowProps {
|
|
|
18
19
|
/** No chevron: the row does something rather than lead somewhere. */
|
|
19
20
|
action?: boolean;
|
|
20
21
|
}
|
|
22
|
+
export declare namespace ListRowUtil {
|
|
23
|
+
/**
|
|
24
|
+
* What a row that leads somewhere says: its chevron tells it opens more, so the … that the same words have in
|
|
25
|
+
* a menu (Model accounts…) goes, as in the settings of a phone.
|
|
26
|
+
*/
|
|
27
|
+
function label(text: string): string;
|
|
28
|
+
}
|
|
21
29
|
export declare function ListRow({ icon, label, detail, onClick, onContextMenu, trailing, danger, action }: ListRowProps): React.JSX.Element;
|
|
22
30
|
//# sourceMappingURL=list-rows.d.ts.map
|
|
@@ -33,10 +33,12 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.ListRowUtil = void 0;
|
|
36
37
|
exports.ListGroup = ListGroup;
|
|
37
38
|
exports.ListRow = ListRow;
|
|
38
39
|
const lucide_react_1 = require("lucide-react");
|
|
39
40
|
const React = __importStar(require("react"));
|
|
41
|
+
const busy_1 = require("./busy");
|
|
40
42
|
const icon_1 = require("./icon");
|
|
41
43
|
/*
|
|
42
44
|
* The lists of a page of ta (Discover, Me): rows in rounded groups, as the settings of a phone, also on
|
|
@@ -46,13 +48,26 @@ const icon_1 = require("./icon");
|
|
|
46
48
|
function ListGroup({ children }) {
|
|
47
49
|
return React.createElement("div", { className: "ta-list-group" }, children);
|
|
48
50
|
}
|
|
51
|
+
var ListRowUtil;
|
|
52
|
+
(function (ListRowUtil) {
|
|
53
|
+
/**
|
|
54
|
+
* What a row that leads somewhere says: its chevron tells it opens more, so the … that the same words have in
|
|
55
|
+
* a menu (Model accounts…) goes, as in the settings of a phone.
|
|
56
|
+
*/
|
|
57
|
+
function label(text) {
|
|
58
|
+
return text.replace(/\s*(?:…|\.\.\.)$/, '');
|
|
59
|
+
}
|
|
60
|
+
ListRowUtil.label = label;
|
|
61
|
+
})(ListRowUtil || (exports.ListRowUtil = ListRowUtil = {}));
|
|
49
62
|
function ListRow({ icon, label, detail, onClick, onContextMenu, trailing, danger, action }) {
|
|
63
|
+
const [busy, run] = (0, busy_1.useBusy)();
|
|
64
|
+
const chevron = !trailing && !action;
|
|
50
65
|
return (React.createElement("div", { className: `ta-list-row${danger ? ' ta-danger' : ''}${action ? ' ta-action' : ''}` },
|
|
51
|
-
React.createElement("button", { type: "button", className: "ta-list-main", onClick: onClick, onContextMenu: onContextMenu },
|
|
66
|
+
React.createElement("button", { type: "button", className: "ta-list-main", "aria-busy": busy || undefined, onClick: () => void run(onClick).catch(() => undefined), onContextMenu: onContextMenu },
|
|
52
67
|
icon && React.createElement(icon_1.Icon, { icon: icon, size: 19, className: "ta-list-icon" }),
|
|
53
|
-
React.createElement("span", { className: "ta-list-label" }, label),
|
|
68
|
+
React.createElement("span", { className: "ta-list-label" }, chevron ? ListRowUtil.label(label) : label),
|
|
54
69
|
detail && React.createElement("span", { className: "ta-list-detail" }, detail),
|
|
55
|
-
|
|
70
|
+
busy ? React.createElement("span", { className: "ta-spinner ta-later ta-list-busy" }) : chevron && React.createElement(icon_1.Icon, { icon: lucide_react_1.ChevronRight, size: 16, className: "ta-list-chevron" })),
|
|
56
71
|
trailing));
|
|
57
72
|
}
|
|
58
73
|
//# sourceMappingURL=list-rows.js.map
|
|
@@ -38,6 +38,7 @@ exports.Markdown = Markdown;
|
|
|
38
38
|
const lucide_react_1 = require("lucide-react");
|
|
39
39
|
const React = __importStar(require("react"));
|
|
40
40
|
const use_t_1 = require("../i18n/use-t");
|
|
41
|
+
const code_renderers_1 = require("../markdown/code-renderers");
|
|
41
42
|
const mermaid_1 = require("../markdown/mermaid");
|
|
42
43
|
const markdown_1 = require("../util/markdown");
|
|
43
44
|
const icon_1 = require("./icon");
|
|
@@ -87,15 +88,46 @@ function CodeBlock({ code }) {
|
|
|
87
88
|
React.createElement("pre", null,
|
|
88
89
|
React.createElement("code", null, code))));
|
|
89
90
|
}
|
|
91
|
+
/** What a code renderer draws: when it throws, the code itself. */
|
|
92
|
+
class CodeBoundary extends React.Component {
|
|
93
|
+
constructor() {
|
|
94
|
+
super(...arguments);
|
|
95
|
+
this.state = { failed: false };
|
|
96
|
+
}
|
|
97
|
+
static getDerivedStateFromError() {
|
|
98
|
+
return { failed: true };
|
|
99
|
+
}
|
|
100
|
+
componentDidCatch(error) {
|
|
101
|
+
console.error('A code renderer failed:', error);
|
|
102
|
+
}
|
|
103
|
+
componentDidUpdate(previous) {
|
|
104
|
+
if (this.state.failed && previous.retry !== this.props.retry) {
|
|
105
|
+
this.setState({ failed: false });
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
render() {
|
|
109
|
+
return this.state.failed ? this.props.fallback : this.props.children;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
/** A fenced block: as a web extension draws its language, a Mermaid diagram, or code. */
|
|
113
|
+
function CodeView({ language, code, closed }) {
|
|
114
|
+
const Renderer = React.useContext(code_renderers_1.CodeRenderers)[language.trim().toLowerCase()];
|
|
115
|
+
const plain = React.createElement(CodeBlock, { code: code, language: language });
|
|
116
|
+
if (Renderer) {
|
|
117
|
+
return (React.createElement(CodeBoundary, { retry: closed, fallback: plain },
|
|
118
|
+
React.createElement(Renderer, { code: code, language: language, closed: closed })));
|
|
119
|
+
}
|
|
120
|
+
if (mermaid_1.MermaidUtil.isDiagram(language, code)) {
|
|
121
|
+
return React.createElement(mermaid_view_1.MermaidView, { code: code, fallback: plain });
|
|
122
|
+
}
|
|
123
|
+
return plain;
|
|
124
|
+
}
|
|
90
125
|
const Block = React.memo(function Block({ block }) {
|
|
91
126
|
switch (block.type) {
|
|
92
127
|
case 'heading':
|
|
93
128
|
return React.createElement(`h${Math.min(block.level + 2, 6)}`, null, React.createElement(Text, { text: block.text }));
|
|
94
129
|
case 'code':
|
|
95
|
-
|
|
96
|
-
return React.createElement(mermaid_view_1.MermaidView, { code: block.code, fallback: React.createElement(CodeBlock, { code: block.code, language: block.language }) });
|
|
97
|
-
}
|
|
98
|
-
return React.createElement(CodeBlock, { code: block.code, language: block.language });
|
|
130
|
+
return React.createElement(CodeView, { language: block.language, code: block.code, closed: block.closed });
|
|
99
131
|
case 'math':
|
|
100
132
|
return React.createElement(math_1.MathView, { tex: block.tex, display: true, closed: block.closed });
|
|
101
133
|
case 'quote':
|
|
@@ -38,6 +38,7 @@ exports.MediaView = MediaView;
|
|
|
38
38
|
const lucide_react_1 = require("lucide-react");
|
|
39
39
|
const React = __importStar(require("react"));
|
|
40
40
|
const use_t_1 = require("../i18n/use-t");
|
|
41
|
+
const lazy_1 = require("../markdown/lazy");
|
|
41
42
|
const markdown_1 = require("../util/markdown");
|
|
42
43
|
const icon_1 = require("./icon");
|
|
43
44
|
const lightbox_1 = require("./lightbox");
|
|
@@ -46,6 +47,48 @@ const lightbox_1 = require("./lightbox");
|
|
|
46
47
|
* conversation that shows it; without it, files of the workspace do not show.
|
|
47
48
|
*/
|
|
48
49
|
exports.FileUrls = React.createContext(undefined);
|
|
50
|
+
/**
|
|
51
|
+
* What the targets replies showed came to, kept on the device (localStorage): shown again, even after the page
|
|
52
|
+
* loaded again, an image has its place before it loads and one that could not show says so at once, so that
|
|
53
|
+
* nothing under them moves.
|
|
54
|
+
*/
|
|
55
|
+
class ShownTargets extends lazy_1.Recent {
|
|
56
|
+
constructor(limit) {
|
|
57
|
+
var _a;
|
|
58
|
+
var _b;
|
|
59
|
+
super(limit);
|
|
60
|
+
try {
|
|
61
|
+
for (const [key, value] of JSON.parse((_b = (_a = ShownTargets.storage()) === null || _a === void 0 ? void 0 : _a.getItem(ShownTargets.KEY)) !== null && _b !== void 0 ? _b : '[]')) {
|
|
62
|
+
super.set(key, value);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
catch (_c) {
|
|
66
|
+
// Kept by another version, or not at all: starts empty.
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
set(key, value) {
|
|
70
|
+
var _a;
|
|
71
|
+
super.set(key, value);
|
|
72
|
+
(_a = this.saving) !== null && _a !== void 0 ? _a : (this.saving = setTimeout(() => {
|
|
73
|
+
var _a;
|
|
74
|
+
this.saving = undefined;
|
|
75
|
+
try {
|
|
76
|
+
(_a = ShownTargets.storage()) === null || _a === void 0 ? void 0 : _a.setItem(ShownTargets.KEY, JSON.stringify([...this.entries]));
|
|
77
|
+
}
|
|
78
|
+
catch (_b) {
|
|
79
|
+
// Full: kept for this page only.
|
|
80
|
+
}
|
|
81
|
+
}, 1000));
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
static storage() {
|
|
85
|
+
return typeof localStorage === 'undefined' ? undefined : localStorage;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
ShownTargets.KEY = 'ta.media.shown';
|
|
89
|
+
const shown = new ShownTargets(300);
|
|
90
|
+
/** The max-height of an image of a reply (style/conversation.ts). */
|
|
91
|
+
const MEDIA_MAX_HEIGHT = 420;
|
|
49
92
|
/** The URL of a target: as it is, or for a path, the URL of the file; null when it cannot show. */
|
|
50
93
|
function useUrl(src) {
|
|
51
94
|
const fileUrl = React.useContext(exports.FileUrls);
|
|
@@ -75,13 +118,30 @@ function MediaView({ src, alt }) {
|
|
|
75
118
|
const url = useUrl(src);
|
|
76
119
|
const [failedUrl, setFailedUrl] = React.useState();
|
|
77
120
|
const [open, setOpen] = React.useState(false);
|
|
78
|
-
const
|
|
79
|
-
const
|
|
121
|
+
const [loaded, setLoaded] = React.useState(false);
|
|
122
|
+
const known = shown.get(src);
|
|
123
|
+
const failed = (!!url && url === failedUrl) || known === false;
|
|
124
|
+
const setFailed = () => {
|
|
125
|
+
// A file of the workspace that is not there; one from the web may only be out of reach for now (offline).
|
|
126
|
+
if (markdown_1.MarkdownUtil.localPath(src) !== undefined) {
|
|
127
|
+
shown.set(src, false);
|
|
128
|
+
}
|
|
129
|
+
setFailedUrl(url !== null && url !== void 0 ? url : undefined);
|
|
130
|
+
};
|
|
80
131
|
const kind = (_a = markdown_1.MarkdownUtil.media(src)) !== null && _a !== void 0 ? _a : 'image';
|
|
81
|
-
|
|
82
|
-
|
|
132
|
+
const size = kind === 'image' && known ? known : undefined;
|
|
133
|
+
// Of the size it had when known: its place does not change as it loads.
|
|
134
|
+
const box = size &&
|
|
135
|
+
// As tall as an image shows at most (.ta-media-image img), its shape kept.
|
|
136
|
+
{
|
|
137
|
+
aspectRatio: `${size.width} / ${size.height}`,
|
|
138
|
+
width: Math.round(Math.min(size.width, (size.width * MEDIA_MAX_HEIGHT) / size.height)),
|
|
139
|
+
height: 'auto',
|
|
140
|
+
};
|
|
141
|
+
if (url === undefined && !failed) {
|
|
142
|
+
return React.createElement("span", { className: `ta-media-loading ta-media-${kind}`, title: alt || src, style: box || undefined });
|
|
83
143
|
}
|
|
84
|
-
if (url
|
|
144
|
+
if (!url || failed) {
|
|
85
145
|
const name = alt || src.split(/[?#]/)[0].split('/').pop() || src;
|
|
86
146
|
return (React.createElement("span", { className: "ta-media-missing", title: src },
|
|
87
147
|
React.createElement(icon_1.Icon, { icon: lucide_react_1.ImageOff, size: 14 }),
|
|
@@ -96,8 +156,14 @@ function MediaView({ src, alt }) {
|
|
|
96
156
|
return React.createElement("audio", { className: "ta-media ta-media-audio", src: url, title: alt || undefined, controls: true, preload: "metadata", onError: setFailed });
|
|
97
157
|
default:
|
|
98
158
|
return (React.createElement(React.Fragment, null,
|
|
99
|
-
React.createElement("button", { type: "button", className:
|
|
100
|
-
React.createElement("img", { src: url, alt: alt, loading: "lazy",
|
|
159
|
+
React.createElement("button", { type: "button", className: `ta-media ta-media-image${size || loaded ? '' : ' ta-media-pending'}`, title: t('ta.markdown.enlarge'), onClick: () => setOpen(true) },
|
|
160
|
+
React.createElement("img", { src: url, alt: alt, loading: "lazy", width: size === null || size === void 0 ? void 0 : size.width, height: size === null || size === void 0 ? void 0 : size.height, style: box || undefined, onLoad: event => {
|
|
161
|
+
const { naturalWidth: width, naturalHeight: height } = event.currentTarget;
|
|
162
|
+
if (width > 0 && height > 0) {
|
|
163
|
+
shown.set(src, { width, height });
|
|
164
|
+
}
|
|
165
|
+
setLoaded(true);
|
|
166
|
+
}, onError: setFailed })),
|
|
101
167
|
open && React.createElement(lightbox_1.Lightbox, { src: url, alt: alt, onClose: () => setOpen(false) })));
|
|
102
168
|
}
|
|
103
169
|
}
|
|
@@ -43,6 +43,7 @@ const messages_1 = require("../i18n/messages");
|
|
|
43
43
|
const use_t_1 = require("../i18n/use-t");
|
|
44
44
|
const settings_protocol_1 = require("../settings/settings-protocol");
|
|
45
45
|
const message_1 = require("../util/message");
|
|
46
|
+
const quote_1 = require("../util/quote");
|
|
46
47
|
const fork_view_1 = require("./fork-view");
|
|
47
48
|
let forks = 0;
|
|
48
49
|
/**
|
|
@@ -86,6 +87,8 @@ function useMessageActions(store, server, working, cwd, composer, done) {
|
|
|
86
87
|
});
|
|
87
88
|
}, failed);
|
|
88
89
|
},
|
|
90
|
+
quote: text => { var _a; return (_a = composer.current) === null || _a === void 0 ? void 0 : _a.setText(quote_1.QuoteUtil.add(composer.current.text(), text)); },
|
|
91
|
+
resume: () => void store.send(t('ta.message.resumeText')).catch(failed),
|
|
89
92
|
rewind: message => {
|
|
90
93
|
notices
|
|
91
94
|
.confirm({
|
|
@@ -11,6 +11,10 @@ export interface MessageActionHandlers {
|
|
|
11
11
|
rewind(message: SessionMessage): void;
|
|
12
12
|
/** Says something done for a moment (copied, from the menu of a message, which closes at once). */
|
|
13
13
|
notify?(message: string): void;
|
|
14
|
+
/** Quotes what was said in the message box (WeChat's 引用), to ask about that part. */
|
|
15
|
+
quote?(text: string): void;
|
|
16
|
+
/** Tells the agent to go on, after a turn that stopped short (`ta.message.resumeText`). */
|
|
17
|
+
resume?(): void;
|
|
14
18
|
}
|
|
15
19
|
export declare const MessageActions: React.Context<MessageActionHandlers | undefined>;
|
|
16
20
|
export declare namespace MessageFooterUtil {
|
|
@@ -26,6 +30,10 @@ export declare function useTimeLabel(): (timestamp: number) => string;
|
|
|
26
30
|
export declare function TimeBreak({ timestamp }: {
|
|
27
31
|
timestamp?: number;
|
|
28
32
|
}): React.JSX.Element;
|
|
33
|
+
/** Above the first turn of another model (ProcessUtil.modelBreaks): the conversation goes on with it. */
|
|
34
|
+
export declare function ModelBreak({ model }: {
|
|
35
|
+
model: string;
|
|
36
|
+
}): React.JSX.Element;
|
|
29
37
|
/** Under a message of the user: when, copy, a new conversation from here, back to here. */
|
|
30
38
|
export declare function UserFooter({ message, text }: {
|
|
31
39
|
message: SessionMessage;
|
|
@@ -36,6 +36,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
36
36
|
exports.MessageFooterUtil = exports.MessageActions = void 0;
|
|
37
37
|
exports.useTimeLabel = useTimeLabel;
|
|
38
38
|
exports.TimeBreak = TimeBreak;
|
|
39
|
+
exports.ModelBreak = ModelBreak;
|
|
39
40
|
exports.UserFooter = UserFooter;
|
|
40
41
|
exports.TurnFooter = TurnFooter;
|
|
41
42
|
const lucide_react_1 = require("lucide-react");
|
|
@@ -43,6 +44,7 @@ const React = __importStar(require("react"));
|
|
|
43
44
|
const use_t_1 = require("../i18n/use-t");
|
|
44
45
|
const message_1 = require("../util/message");
|
|
45
46
|
const progress_1 = require("../util/progress");
|
|
47
|
+
const quote_1 = require("../util/quote");
|
|
46
48
|
const icon_1 = require("./icon");
|
|
47
49
|
exports.MessageActions = React.createContext(undefined);
|
|
48
50
|
var MessageFooterUtil;
|
|
@@ -65,8 +67,8 @@ var MessageFooterUtil;
|
|
|
65
67
|
}
|
|
66
68
|
MessageFooterUtil.debugInfo = debugInfo;
|
|
67
69
|
})(MessageFooterUtil || (exports.MessageFooterUtil = MessageFooterUtil = {}));
|
|
68
|
-
function FooterButton({ icon, label, onClick, className }) {
|
|
69
|
-
return (React.createElement("button", { type: "button", className: className ? `ta-footer-button ${className}` : 'ta-footer-button', title: label, "aria-label": label, onClick: onClick },
|
|
70
|
+
function FooterButton({ icon, label, onClick, onMouseDown, className, }) {
|
|
71
|
+
return (React.createElement("button", { type: "button", className: className ? `ta-footer-button ${className}` : 'ta-footer-button', title: label, "aria-label": label, onClick: onClick, onMouseDown: onMouseDown },
|
|
70
72
|
React.createElement(icon_1.Icon, { icon: icon, size: 14 })));
|
|
71
73
|
}
|
|
72
74
|
/** Copies, and says so on the button for a moment. */
|
|
@@ -104,6 +106,21 @@ function Time({ timestamp, className = 'ta-footer-time' }) {
|
|
|
104
106
|
function TimeBreak({ timestamp }) {
|
|
105
107
|
return React.createElement(Time, { timestamp: timestamp, className: "ta-time-break" });
|
|
106
108
|
}
|
|
109
|
+
/** Above the first turn of another model (ProcessUtil.modelBreaks): the conversation goes on with it. */
|
|
110
|
+
function ModelBreak({ model }) {
|
|
111
|
+
const t = (0, use_t_1.useT)();
|
|
112
|
+
return (React.createElement("div", { className: "ta-model-break", title: model },
|
|
113
|
+
React.createElement(icon_1.Icon, { icon: lucide_react_1.ArrowRightLeft, size: 12 }),
|
|
114
|
+
React.createElement("span", null, t('ta.message.modelSwitched', { model: model.slice(model.indexOf('/') + 1) }))));
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Quotes the reply in the message box, or the part of it selected: the button keeps the selection (no focus on
|
|
118
|
+
* a press), and takes it when it is in the same message.
|
|
119
|
+
*/
|
|
120
|
+
function QuoteButton({ text, quote }) {
|
|
121
|
+
const t = (0, use_t_1.useT)();
|
|
122
|
+
return (React.createElement(FooterButton, { icon: lucide_react_1.TextQuote, label: t('ta.message.quote'), onMouseDown: event => event.preventDefault(), onClick: event => { var _a; return quote((_a = quote_1.QuoteUtil.selected(event.currentTarget.closest('.ta-message'))) !== null && _a !== void 0 ? _a : text); } }));
|
|
123
|
+
}
|
|
107
124
|
/** Under a message of the user: when, copy, a new conversation from here, back to here. */
|
|
108
125
|
function UserFooter({ message, text }) {
|
|
109
126
|
const t = (0, use_t_1.useT)();
|
|
@@ -127,6 +144,7 @@ function TurnFooter({ messages, last, reply, session, latest, }) {
|
|
|
127
144
|
const used = usage.input > 0 || usage.output > 0;
|
|
128
145
|
return (React.createElement("div", { className: latest ? 'ta-footer ta-footer-latest' : 'ta-footer' },
|
|
129
146
|
reply && React.createElement(CopyButton, { text: () => reply, icon: lucide_react_1.Copy, label: "ta.copy", done: "ta.copied" }),
|
|
147
|
+
reply && (actions === null || actions === void 0 ? void 0 : actions.quote) && React.createElement(QuoteButton, { text: reply, quote: actions.quote }),
|
|
130
148
|
last && actions && !actions.working && React.createElement(FooterButton, { icon: lucide_react_1.GitFork, label: t('ta.message.forkAt'), onClick: () => actions.fork(last, 'at') }),
|
|
131
149
|
last && (React.createElement(CopyButton, { text: () => MessageFooterUtil.debugInfo(last, session), icon: lucide_react_1.Bug, label: "ta.message.debug", done: "ta.message.debugCopied", className: "ta-footer-debug" })),
|
|
132
150
|
React.createElement(Time, { timestamp: last === null || last === void 0 ? void 0 : last.timestamp }),
|