@celljs/ta-web 4.9.1 → 4.11.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 +8 -7
- package/README.md +8 -7
- package/esm/browser/assistant/assistant-chat-list.d.ts +11 -0
- package/esm/browser/assistant/assistant-chat-list.js +20 -2
- package/esm/browser/assistant/assistant-extension.d.ts +8 -1
- package/esm/browser/assistant/assistant-extension.js +25 -0
- package/esm/browser/assistant/assistant-protocol.d.ts +5 -2
- 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 +14 -2
- package/esm/browser/assistant/assistant-task-util.js +62 -13
- package/esm/browser/assistant/assistant-view.js +117 -71
- package/esm/browser/assistant/assistant.d.ts +28 -5
- package/esm/browser/assistant/assistant.js +96 -22
- package/esm/browser/avatar/dino-face.js +1 -2
- package/esm/browser/chat/chat-packages.d.ts +39 -0
- package/esm/browser/chat/chat-packages.js +70 -0
- package/esm/browser/chat/chat-protocol.d.ts +28 -1
- package/esm/browser/chat/chat-stores.d.ts +62 -0
- package/esm/browser/chat/chat-stores.js +129 -0
- package/esm/browser/chat/chat-util.d.ts +17 -0
- package/esm/browser/chat/chat-util.js +61 -0
- package/esm/browser/chat/chat-view.js +45 -17
- package/esm/browser/chat/chat.d.ts +41 -41
- package/esm/browser/chat/chat.js +276 -190
- 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 +11 -5
- package/esm/browser/components/app-nav.js +39 -17
- package/esm/browser/components/app-shell-hooks.d.ts +2 -2
- package/esm/browser/components/app-shell-hooks.js +12 -6
- package/esm/browser/components/app-view.js +150 -36
- 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 +93 -8
- package/esm/browser/components/chat-list.js +411 -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 +18 -8
- package/esm/browser/components/composer-box.js +199 -52
- package/esm/browser/components/composer.d.ts +13 -6
- package/esm/browser/components/composer.js +8 -5
- package/esm/browser/components/connection-bar.js +50 -17
- package/esm/browser/components/context-menu.d.ts +30 -4
- package/esm/browser/components/context-menu.js +199 -37
- package/esm/browser/components/conversation-scroll.d.ts +136 -6
- package/esm/browser/components/conversation-scroll.js +467 -108
- 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 -2
- package/esm/browser/components/earlier-messages.js +42 -23
- package/esm/browser/components/editor-area.d.ts +6 -20
- package/esm/browser/components/editor-area.js +10 -96
- package/esm/browser/components/empty-pictures.d.ts +0 -2
- package/esm/browser/components/empty-pictures.js +0 -16
- 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 +6 -3
- package/esm/browser/components/folder-picker.js +27 -9
- 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/held-talk.d.ts +28 -0
- package/esm/browser/components/held-talk.js +76 -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 +5 -3
- package/esm/browser/components/icon.js +9 -9
- package/esm/browser/components/image-viewer.d.ts +132 -0
- package/esm/browser/components/image-viewer.js +434 -0
- 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 +14 -0
- package/esm/browser/components/lightbox.js +25 -0
- package/esm/browser/components/list-rows.d.ts +9 -1
- package/esm/browser/components/list-rows.js +17 -3
- package/esm/browser/components/markdown.d.ts +6 -2
- package/esm/browser/components/markdown.js +60 -14
- package/esm/browser/components/media.js +20 -12
- package/esm/browser/components/message-actions.js +2 -0
- package/esm/browser/components/message-footer.d.ts +22 -2
- package/esm/browser/components/message-footer.js +47 -13
- package/esm/browser/components/message-list.d.ts +78 -6
- package/esm/browser/components/message-list.js +281 -36
- package/esm/browser/components/message-menu.d.ts +3 -1
- package/esm/browser/components/message-menu.js +24 -4
- package/esm/browser/components/model-picker.js +1 -0
- package/esm/browser/components/nav-places.d.ts +37 -3
- package/esm/browser/components/nav-places.js +32 -7
- 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 +27 -2
- 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 +8 -3
- package/esm/browser/components/session-settings.js +15 -1
- package/esm/browser/components/session-view.js +36 -22
- 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.d.ts +2 -2
- package/esm/browser/components/settings-parts.js +69 -15
- package/esm/browser/components/swipe-row.d.ts +2 -2
- package/esm/browser/components/swipe-row.js +7 -3
- package/esm/browser/components/tool-view.js +21 -14
- 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/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 +51 -0
- package/esm/browser/components/voice-talk.js +242 -0
- 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/device.d.ts +3 -0
- package/esm/browser/device/device.js +11 -1
- package/esm/browser/device/hold.d.ts +42 -0
- package/esm/browser/device/hold.js +134 -0
- package/esm/browser/device/launch-screen.d.ts +1 -1
- package/esm/browser/device/launch-screen.js +1 -1
- package/esm/browser/device/long-press.d.ts +12 -0
- package/esm/browser/device/long-press.js +44 -13
- package/esm/browser/device/own-gestures.d.ts +25 -0
- package/esm/browser/device/own-gestures.js +39 -0
- package/esm/browser/device/pull-down.d.ts +4 -2
- package/esm/browser/device/pull-down.js +67 -78
- 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 +35 -10
- package/esm/browser/device/row-swipe.js +154 -71
- package/esm/browser/device/shake-undo.d.ts +16 -0
- package/esm/browser/device/shake-undo.js +59 -0
- package/esm/browser/device/sheet-swipe.d.ts +118 -18
- package/esm/browser/device/sheet-swipe.js +414 -108
- 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 +15 -2
- package/esm/browser/extension/web-api-components.d.ts +269 -0
- package/esm/browser/extension/web-api-components.js +2 -0
- package/esm/browser/extension/web-api-contributions.d.ts +385 -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 +218 -521
- package/esm/browser/extension/web-extension-code.d.ts +6 -0
- package/esm/browser/extension/web-extension-code.js +24 -0
- package/esm/browser/extension/web-extension-context.d.ts +78 -0
- package/esm/browser/extension/web-extension-context.js +346 -0
- package/esm/browser/extension/web-extension-protocol.d.ts +66 -6
- package/esm/browser/extension/web-extension-protocol.js +41 -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 +41 -68
- package/esm/browser/extension/web-extensions.js +188 -487
- 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/files/files-protocol.d.ts +25 -0
- package/esm/browser/files/files-protocol.js +2 -0
- package/esm/browser/files/files.d.ts +35 -0
- package/esm/browser/files/files.js +119 -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 +105 -3
- package/esm/browser/i18n/messages.d.ts +104 -2
- package/esm/browser/i18n/messages.js +215 -11
- package/esm/browser/index.d.ts +15 -0
- package/esm/browser/index.js +15 -0
- package/esm/browser/links/links-protocol.d.ts +5 -0
- package/esm/browser/links/links.d.ts +19 -7
- package/esm/browser/links/links.js +57 -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 +26 -1
- package/esm/browser/notices/notices.d.ts +3 -1
- package/esm/browser/notices/notices.js +26 -12
- 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.d.ts +55 -0
- package/esm/browser/offline/device-values.js +151 -0
- package/esm/browser/offline/kept-chats-protocol.d.ts +17 -0
- package/esm/browser/offline/kept-chats-protocol.js +2 -0
- package/esm/browser/offline/kept-chats.d.ts +47 -0
- package/esm/browser/offline/kept-chats.js +146 -0
- package/esm/browser/offline/offline-reads.d.ts +44 -0
- package/esm/browser/offline/offline-reads.js +109 -0
- 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 +17 -0
- package/esm/browser/settings/settings-protocol.js +20 -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 +95 -17
- package/esm/browser/style/device.js +42 -5
- package/esm/browser/style/layout.d.ts +1 -1
- package/esm/browser/style/layout.js +252 -67
- package/esm/browser/style/pages.d.ts +1 -1
- package/esm/browser/style/pages.js +38 -2
- 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 +76 -9
- package/esm/browser/style/surfaces.d.ts +1 -1
- package/esm/browser/style/surfaces.js +2 -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 +5 -4
- package/esm/browser/util/frame.js +5 -4
- package/esm/browser/util/link.d.ts +18 -0
- package/esm/browser/util/link.js +66 -1
- package/esm/browser/util/markdown.d.ts +22 -2
- package/esm/browser/util/markdown.js +120 -6
- package/esm/browser/util/message.d.ts +5 -0
- package/esm/browser/util/message.js +30 -0
- package/esm/browser/util/process.d.ts +35 -2
- package/esm/browser/util/process.js +79 -4
- 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 +49 -6
- package/esm/browser/util/voice.js +271 -26
- package/esm/browser/util/zoom.d.ts +46 -0
- package/esm/browser/util/zoom.js +96 -0
- package/esm/browser/workbench-calls.d.ts +61 -0
- package/esm/browser/workbench-calls.js +146 -0
- package/esm/browser/workbench-protocol.d.ts +36 -3
- package/esm/browser/workbench-util.d.ts +22 -4
- package/esm/browser/workbench-util.js +37 -7
- package/esm/browser/workbench.d.ts +47 -6
- package/esm/browser/workbench.js +191 -43
- package/lib/browser/assistant/assistant-chat-list.d.ts +11 -0
- package/lib/browser/assistant/assistant-chat-list.js +21 -2
- package/lib/browser/assistant/assistant-extension.d.ts +8 -1
- package/lib/browser/assistant/assistant-extension.js +25 -0
- package/lib/browser/assistant/assistant-protocol.d.ts +5 -2
- 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 +14 -2
- package/lib/browser/assistant/assistant-task-util.js +62 -13
- package/lib/browser/assistant/assistant-view.js +113 -67
- package/lib/browser/assistant/assistant.d.ts +28 -5
- package/lib/browser/assistant/assistant.js +96 -22
- package/lib/browser/avatar/dino-face.js +1 -2
- package/lib/browser/chat/chat-packages.d.ts +40 -0
- package/lib/browser/chat/chat-packages.js +74 -0
- package/lib/browser/chat/chat-protocol.d.ts +28 -1
- package/lib/browser/chat/chat-stores.d.ts +63 -0
- package/lib/browser/chat/chat-stores.js +133 -0
- package/lib/browser/chat/chat-util.d.ts +18 -0
- package/lib/browser/chat/chat-util.js +64 -0
- package/lib/browser/chat/chat-view.js +44 -16
- package/lib/browser/chat/chat.d.ts +41 -41
- package/lib/browser/chat/chat.js +277 -191
- 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 +11 -5
- package/lib/browser/components/app-nav.js +35 -13
- package/lib/browser/components/app-shell-hooks.d.ts +2 -2
- package/lib/browser/components/app-shell-hooks.js +12 -6
- package/lib/browser/components/app-view.js +145 -31
- 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 +93 -8
- package/lib/browser/components/chat-list.js +412 -60
- 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 +18 -8
- package/lib/browser/components/composer-box.js +198 -51
- package/lib/browser/components/composer.d.ts +13 -6
- package/lib/browser/components/composer.js +7 -4
- package/lib/browser/components/connection-bar.js +48 -15
- package/lib/browser/components/context-menu.d.ts +30 -4
- package/lib/browser/components/context-menu.js +198 -36
- package/lib/browser/components/conversation-scroll.d.ts +136 -6
- package/lib/browser/components/conversation-scroll.js +469 -109
- 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 -2
- package/lib/browser/components/earlier-messages.js +44 -24
- package/lib/browser/components/editor-area.d.ts +6 -20
- package/lib/browser/components/editor-area.js +11 -97
- package/lib/browser/components/empty-pictures.d.ts +0 -2
- package/lib/browser/components/empty-pictures.js +0 -17
- 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 +6 -3
- package/lib/browser/components/folder-picker.js +27 -9
- 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/held-talk.d.ts +29 -0
- package/lib/browser/components/held-talk.js +79 -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 +5 -3
- package/lib/browser/components/icon.js +11 -9
- package/lib/browser/components/image-viewer.d.ts +133 -0
- package/lib/browser/components/image-viewer.js +472 -0
- 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 +15 -0
- package/lib/browser/components/lightbox.js +61 -0
- package/lib/browser/components/list-rows.d.ts +9 -1
- package/lib/browser/components/list-rows.js +18 -3
- package/lib/browser/components/markdown.d.ts +6 -2
- package/lib/browser/components/markdown.js +60 -14
- package/lib/browser/components/media.js +21 -13
- package/lib/browser/components/message-actions.js +2 -0
- package/lib/browser/components/message-footer.d.ts +22 -2
- package/lib/browser/components/message-footer.js +49 -12
- package/lib/browser/components/message-list.d.ts +78 -6
- package/lib/browser/components/message-list.js +281 -32
- package/lib/browser/components/message-menu.d.ts +3 -1
- package/lib/browser/components/message-menu.js +23 -3
- package/lib/browser/components/model-picker.js +1 -0
- package/lib/browser/components/nav-places.d.ts +37 -3
- package/lib/browser/components/nav-places.js +35 -7
- 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 +27 -2
- 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 +8 -3
- package/lib/browser/components/session-settings.js +15 -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.d.ts +2 -2
- package/lib/browser/components/settings-parts.js +67 -13
- package/lib/browser/components/swipe-row.d.ts +2 -2
- package/lib/browser/components/swipe-row.js +7 -3
- package/lib/browser/components/tool-view.js +21 -14
- 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/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 +52 -0
- package/lib/browser/components/voice-talk.js +281 -0
- 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/device.d.ts +3 -0
- package/lib/browser/device/device.js +11 -1
- package/lib/browser/device/hold.d.ts +43 -0
- package/lib/browser/device/hold.js +171 -0
- package/lib/browser/device/launch-screen.d.ts +1 -1
- package/lib/browser/device/launch-screen.js +1 -1
- package/lib/browser/device/long-press.d.ts +12 -0
- package/lib/browser/device/long-press.js +44 -13
- package/lib/browser/device/own-gestures.d.ts +26 -0
- package/lib/browser/device/own-gestures.js +42 -0
- package/lib/browser/device/pull-down.d.ts +4 -2
- package/lib/browser/device/pull-down.js +66 -77
- 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 +35 -10
- package/lib/browser/device/row-swipe.js +153 -70
- package/lib/browser/device/shake-undo.d.ts +17 -0
- package/lib/browser/device/shake-undo.js +63 -0
- package/lib/browser/device/sheet-swipe.d.ts +118 -18
- package/lib/browser/device/sheet-swipe.js +418 -109
- 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 +14 -1
- package/lib/browser/extension/web-api-components.d.ts +270 -0
- package/lib/browser/extension/web-api-components.js +3 -0
- package/lib/browser/extension/web-api-contributions.d.ts +386 -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 +218 -521
- package/lib/browser/extension/web-extension-code.d.ts +6 -0
- package/lib/browser/extension/web-extension-code.js +24 -0
- package/lib/browser/extension/web-extension-context.d.ts +79 -0
- package/lib/browser/extension/web-extension-context.js +383 -0
- package/lib/browser/extension/web-extension-protocol.d.ts +66 -6
- package/lib/browser/extension/web-extension-protocol.js +42 -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 +41 -68
- package/lib/browser/extension/web-extensions.js +184 -516
- 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/files/files-protocol.d.ts +26 -0
- package/lib/browser/files/files-protocol.js +5 -0
- package/lib/browser/files/files.d.ts +36 -0
- package/lib/browser/files/files.js +122 -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 +105 -3
- package/lib/browser/i18n/messages.d.ts +104 -2
- package/lib/browser/i18n/messages.js +215 -11
- package/lib/browser/index.d.ts +15 -0
- package/lib/browser/index.js +15 -0
- package/lib/browser/links/links-protocol.d.ts +5 -0
- package/lib/browser/links/links.d.ts +19 -7
- package/lib/browser/links/links.js +57 -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 +26 -1
- package/lib/browser/notices/notices.d.ts +3 -1
- package/lib/browser/notices/notices.js +26 -12
- 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.d.ts +56 -0
- package/lib/browser/offline/device-values.js +157 -0
- package/lib/browser/offline/kept-chats-protocol.d.ts +18 -0
- package/lib/browser/offline/kept-chats-protocol.js +5 -0
- package/lib/browser/offline/kept-chats.d.ts +48 -0
- package/lib/browser/offline/kept-chats.js +149 -0
- package/lib/browser/offline/offline-reads.d.ts +45 -0
- package/lib/browser/offline/offline-reads.js +113 -0
- 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 +17 -0
- package/lib/browser/settings/settings-protocol.js +21 -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 +95 -17
- package/lib/browser/style/device.js +42 -5
- package/lib/browser/style/layout.d.ts +1 -1
- package/lib/browser/style/layout.js +252 -67
- package/lib/browser/style/pages.d.ts +1 -1
- package/lib/browser/style/pages.js +38 -2
- 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 +76 -9
- package/lib/browser/style/surfaces.d.ts +1 -1
- package/lib/browser/style/surfaces.js +2 -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 +5 -4
- package/lib/browser/util/frame.js +5 -4
- package/lib/browser/util/link.d.ts +18 -0
- package/lib/browser/util/link.js +66 -1
- package/lib/browser/util/markdown.d.ts +22 -2
- package/lib/browser/util/markdown.js +120 -6
- package/lib/browser/util/message.d.ts +5 -0
- package/lib/browser/util/message.js +30 -0
- package/lib/browser/util/process.d.ts +35 -2
- package/lib/browser/util/process.js +80 -5
- 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 +49 -6
- package/lib/browser/util/voice.js +271 -26
- package/lib/browser/util/zoom.d.ts +47 -0
- package/lib/browser/util/zoom.js +99 -0
- package/lib/browser/workbench-calls.d.ts +62 -0
- package/lib/browser/workbench-calls.js +150 -0
- package/lib/browser/workbench-protocol.d.ts +36 -3
- package/lib/browser/workbench-util.d.ts +22 -4
- package/lib/browser/workbench-util.js +38 -8
- package/lib/browser/workbench.d.ts +47 -6
- package/lib/browser/workbench.js +189 -41
- package/package.json +14 -11
- package/public/launch.svg +46 -42
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { WebCustomMessage } from './web-extension-api.js';
|
|
3
|
+
import type { WebExtensionsState } from './web-extension-protocol.js';
|
|
3
4
|
/** The renderers of custom messages that web extensions registered. */
|
|
4
5
|
export declare const MessageRenderers: React.Context<Record<string, React.ComponentType<{
|
|
5
6
|
message: WebCustomMessage;
|
|
6
7
|
}>>>;
|
|
8
|
+
/** How the calls of the tools of web extensions read (WebExtensionAPI.registerToolRenderer). */
|
|
9
|
+
export declare const ToolRenderers: React.Context<import("./web-api-contributions.js").WebToolRendererResolver[]>;
|
|
10
|
+
/** The icons web extensions give conversations of theirs, and a count of their changes (ChatIconUtil). */
|
|
11
|
+
export declare const ChatIcons: React.Context<{
|
|
12
|
+
entries: WebExtensionsState['chatIcons'];
|
|
13
|
+
version: number;
|
|
14
|
+
}>;
|
|
7
15
|
/** The avatars that web extensions registered for the sessions of their groups. */
|
|
8
16
|
export declare const SessionAvatars: React.Context<Record<string, React.ComponentType<import("./web-extension-api.js").WebAvatarProps>>>;
|
|
17
|
+
/** What web extensions add to the menu of a conversation of a list (WebExtensionAPI.registerSessionMenu). */
|
|
18
|
+
export declare const SessionMenus: React.Context<import("./web-extension-api.js").WebSessionMenu[]>;
|
|
9
19
|
interface BoundaryProps {
|
|
10
20
|
name: string;
|
|
11
21
|
/** A new value (a new component) tries again after a failure. */
|
|
@@ -5,8 +5,14 @@ import { useT } from '../i18n/use-t.js';
|
|
|
5
5
|
import { MessageUtil } from '../util/message.js';
|
|
6
6
|
/** The renderers of custom messages that web extensions registered. */
|
|
7
7
|
export const MessageRenderers = React.createContext({});
|
|
8
|
+
/** How the calls of the tools of web extensions read (WebExtensionAPI.registerToolRenderer). */
|
|
9
|
+
export const ToolRenderers = React.createContext([]);
|
|
10
|
+
/** The icons web extensions give conversations of theirs, and a count of their changes (ChatIconUtil). */
|
|
11
|
+
export const ChatIcons = React.createContext({ entries: [], version: 0 });
|
|
8
12
|
/** The avatars that web extensions registered for the sessions of their groups. */
|
|
9
13
|
export const SessionAvatars = React.createContext({});
|
|
14
|
+
/** What web extensions add to the menu of a conversation of a list (WebExtensionAPI.registerSessionMenu). */
|
|
15
|
+
export const SessionMenus = React.createContext([]);
|
|
10
16
|
/** What a web extension draws: when it throws, it says so in its place and the page goes on. */
|
|
11
17
|
export class ExtensionBoundary extends React.Component {
|
|
12
18
|
constructor() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AlarmClock, ArrowDown, ArrowLeft, ArrowRight, ArrowUp, ArrowUpDown, BellOff, Bot, Building2, CaseSensitive, Check, ChevronDown, ChevronRight, ChevronsDownUp, ChevronsUpDown, CircleAlert, Clipboard, Clock, Code, Columns2, Copy, CopyMinus, CornerUpLeft, Crown, Download, Ellipsis, ExternalLink, Eye, File, FileArchive, FileDiff, FilePlus, Files, FileText, Film, Folder, FolderInput, FolderOpen, FolderPlus, FolderSearch, FolderTree, GitBranch, GitCommitHorizontal, Globe, Grip, Hash, House, Image, LayoutDashboard, Link, List, ListChecks, ListTodo, ListTree, ListX, LoaderCircle, LocateFixed, MessageCircle, MessageSquareDot, MessageSquareText, MessagesSquare, Mic, Minus, MousePointerClick, PackageOpen, Paperclip, Pencil, Pin, PinOff, Play, Plus, Power, Puzzle, QrCode, RefreshCw, Regex, Replace, ReplaceAll, RotateCcw, Rows2, Save, ScanLine, ScrollText, Search, Server, Share2, Sparkles, Square, SquareMinus, SquarePlus, SquareTerminal, Star, StarOff, Store, Text, Trash2, Undo2, Unplug, Upload, User, UserPlus, Users, WholeWord, X, } from 'lucide-react';
|
|
1
|
+
import { AlarmClock, ArrowDown, ArrowLeft, ArrowRight, ArrowUp, ArrowUpDown, Bell, BellOff, BookOpen, Bot, Building2, CaseSensitive, Check, ChevronDown, ChevronRight, ChevronsDownUp, ChevronsUpDown, CircleAlert, CircleHelp, Clipboard, Clock, Code, Columns2, Contact, Copy, CopyMinus, CornerDownRight, CornerUpLeft, Crown, Download, Ellipsis, ExternalLink, Eye, File, FileArchive, FileDiff, FilePlus, Files, FileText, Film, Folder, FolderInput, FolderOpen, FolderPlus, FolderSearch, FolderTree, Forward, Gamepad2, GitBranch, GitCommitHorizontal, Globe, Grip, Hash, House, Image, Info, LayoutDashboard, Link, List, ListChecks, ListTodo, ListTree, ListX, LoaderCircle, LocateFixed, MapIcon, Megaphone, MessageCircle, MessageSquareDot, MessageSquareText, MessagesSquare, Mic, Minus, MousePointerClick, PackageOpen, Paperclip, Pencil, Pin, PinOff, Play, Plus, Power, Puzzle, QrCode, RefreshCw, Regex, Replace, ReplaceAll, RotateCcw, Rows2, Save, ScanLine, ScrollText, Search, Send, Server, Share2, Sparkles, Square, SquareMinus, SquarePlus, SquareTerminal, Star, StarOff, Store, Text, Trash2, Trophy, Undo2, Unplug, Upload, User, UserPlus, Users, Volume2, WholeWord, X, } from 'lucide-react';
|
|
2
2
|
/** The icons a web extension gets as `pi.ui.icons`; names are lucide's. Only add: removing one breaks extensions. */
|
|
3
3
|
export const WEB_ICONS = Object.freeze({
|
|
4
4
|
AlarmClock,
|
|
@@ -7,7 +7,9 @@ export const WEB_ICONS = Object.freeze({
|
|
|
7
7
|
ArrowRight,
|
|
8
8
|
ArrowUp,
|
|
9
9
|
ArrowUpDown,
|
|
10
|
+
Bell,
|
|
10
11
|
BellOff,
|
|
12
|
+
BookOpen,
|
|
11
13
|
Bot,
|
|
12
14
|
Building2,
|
|
13
15
|
CaseSensitive,
|
|
@@ -17,12 +19,15 @@ export const WEB_ICONS = Object.freeze({
|
|
|
17
19
|
ChevronsDownUp,
|
|
18
20
|
ChevronsUpDown,
|
|
19
21
|
CircleAlert,
|
|
22
|
+
CircleHelp,
|
|
20
23
|
Clipboard,
|
|
21
24
|
Clock,
|
|
22
25
|
Code,
|
|
23
26
|
Columns2,
|
|
27
|
+
Contact,
|
|
24
28
|
Copy,
|
|
25
29
|
CopyMinus,
|
|
30
|
+
CornerDownRight,
|
|
26
31
|
CornerUpLeft,
|
|
27
32
|
Crown,
|
|
28
33
|
Download,
|
|
@@ -33,15 +38,17 @@ export const WEB_ICONS = Object.freeze({
|
|
|
33
38
|
FileArchive,
|
|
34
39
|
FileDiff,
|
|
35
40
|
FilePlus,
|
|
41
|
+
FileText,
|
|
36
42
|
Files,
|
|
37
43
|
Film,
|
|
38
|
-
FileText,
|
|
39
44
|
Folder,
|
|
40
45
|
FolderInput,
|
|
41
46
|
FolderOpen,
|
|
47
|
+
Forward,
|
|
42
48
|
FolderPlus,
|
|
43
49
|
FolderSearch,
|
|
44
50
|
FolderTree,
|
|
51
|
+
Gamepad2,
|
|
45
52
|
GitBranch,
|
|
46
53
|
GitCommitHorizontal,
|
|
47
54
|
Globe,
|
|
@@ -49,6 +56,7 @@ export const WEB_ICONS = Object.freeze({
|
|
|
49
56
|
Hash,
|
|
50
57
|
House,
|
|
51
58
|
Image,
|
|
59
|
+
Info,
|
|
52
60
|
LayoutDashboard,
|
|
53
61
|
Link,
|
|
54
62
|
List,
|
|
@@ -58,6 +66,8 @@ export const WEB_ICONS = Object.freeze({
|
|
|
58
66
|
ListX,
|
|
59
67
|
LoaderCircle,
|
|
60
68
|
LocateFixed,
|
|
69
|
+
Map: MapIcon,
|
|
70
|
+
Megaphone,
|
|
61
71
|
MessageCircle,
|
|
62
72
|
MessageSquareDot,
|
|
63
73
|
MessageSquareText,
|
|
@@ -85,6 +95,7 @@ export const WEB_ICONS = Object.freeze({
|
|
|
85
95
|
ScanLine,
|
|
86
96
|
ScrollText,
|
|
87
97
|
Search,
|
|
98
|
+
Send,
|
|
88
99
|
Server,
|
|
89
100
|
Share2,
|
|
90
101
|
Sparkles,
|
|
@@ -97,12 +108,14 @@ export const WEB_ICONS = Object.freeze({
|
|
|
97
108
|
Store,
|
|
98
109
|
Text,
|
|
99
110
|
Trash2,
|
|
111
|
+
Trophy,
|
|
100
112
|
Undo2,
|
|
101
113
|
Unplug,
|
|
102
114
|
Upload,
|
|
103
115
|
User,
|
|
104
116
|
UserPlus,
|
|
105
117
|
Users,
|
|
118
|
+
Volume2,
|
|
106
119
|
WholeWord,
|
|
107
120
|
X,
|
|
108
121
|
});
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
/** Part of the web extension API (web-extension-api.ts, which exports it all): the props of the components of `ui`. */
|
|
2
|
+
import type * as React from 'react';
|
|
3
|
+
import type { TextSelection } from './web-extension-api.js';
|
|
4
|
+
export interface WebModelPickerProps {
|
|
5
|
+
/** The directory whose settings give the models and the default; default: that of ta serve. */
|
|
6
|
+
cwd?: string;
|
|
7
|
+
/** `<provider>/<model id>`, or `''` for the model of the settings. */
|
|
8
|
+
value: string;
|
|
9
|
+
onChange(value: string): void;
|
|
10
|
+
/** The entry for `''`; default: `Default (<the model of the settings>)`. */
|
|
11
|
+
defaultLabel?: string;
|
|
12
|
+
/** For a screen reader, when no label is beside it. */
|
|
13
|
+
label?: string;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface WebFolderPickerProps {
|
|
17
|
+
/** Where it opens; default: the directory of ta serve. */
|
|
18
|
+
initial?: string;
|
|
19
|
+
/** The directory picked; the dialog stays open until it returns, and closes with `onClose`. */
|
|
20
|
+
onPick(path: string): void | Promise<void>;
|
|
21
|
+
onClose(): void;
|
|
22
|
+
}
|
|
23
|
+
export interface CodeEditorProps {
|
|
24
|
+
/** The path of the file: its name tells the language (`.ts`, `Dockerfile`); another path is another editor. */
|
|
25
|
+
path: string;
|
|
26
|
+
/** The text shown; a different one replaces it, as an edit the user can undo. */
|
|
27
|
+
value: string;
|
|
28
|
+
readOnly?: boolean;
|
|
29
|
+
/** A line, 1 for the first, shown in the middle with the cursor at its start (at `column`, 1 for the first, when given). */
|
|
30
|
+
line?: number;
|
|
31
|
+
column?: number;
|
|
32
|
+
/** With `line` and `column`: the text up to this column of that line is selected, as a match of a search. */
|
|
33
|
+
endColumn?: number;
|
|
34
|
+
/** Lines or a place to select, shown in the middle; over `line`. */
|
|
35
|
+
selection?: TextSelection;
|
|
36
|
+
/** The user changed the text. */
|
|
37
|
+
onChange?(value: string): void;
|
|
38
|
+
/** Ctrl+S or Cmd+S. */
|
|
39
|
+
onSave?(value: string): void;
|
|
40
|
+
}
|
|
41
|
+
export interface DiffEditorProps {
|
|
42
|
+
/** The path of the file: its name tells the language. */
|
|
43
|
+
path: string;
|
|
44
|
+
/** The text before (left), as HEAD or the index has it. */
|
|
45
|
+
original: string;
|
|
46
|
+
/** The text after (right). */
|
|
47
|
+
modified: string;
|
|
48
|
+
/** Default: side by side, inline when it is narrow. */
|
|
49
|
+
inline?: boolean;
|
|
50
|
+
/** Default true; false lets the user change the right side, `onChange` and `onSave` hear it. */
|
|
51
|
+
readOnly?: boolean;
|
|
52
|
+
onChange?(value: string): void;
|
|
53
|
+
onSave?(value: string): void;
|
|
54
|
+
/** How many changes it found once it compared the texts, and how to go to the next or the one before. */
|
|
55
|
+
onDiff?(diff: {
|
|
56
|
+
changes: number;
|
|
57
|
+
next(): void;
|
|
58
|
+
previous(): void;
|
|
59
|
+
}): void;
|
|
60
|
+
}
|
|
61
|
+
export interface WebEmptyProps {
|
|
62
|
+
/** One short line: what is not there (`No chats yet`), without a full stop. */
|
|
63
|
+
title?: React.ReactNode;
|
|
64
|
+
/** At most one quieter line under it: how to get some. */
|
|
65
|
+
hint?: React.ReactNode;
|
|
66
|
+
/** In a menu, a picker or a dialog: a line of its own rather than the middle of the space. */
|
|
67
|
+
compact?: boolean;
|
|
68
|
+
/** It is there because something failed. */
|
|
69
|
+
tone?: 'error';
|
|
70
|
+
/** Above the text: a `Picture` of what will be there or how to get it; smaller when `compact`. */
|
|
71
|
+
picture?: React.ReactNode;
|
|
72
|
+
/** Under the text: a button. */
|
|
73
|
+
children?: React.ReactNode;
|
|
74
|
+
}
|
|
75
|
+
/** An action behind a row a finger swiped (WebExtensionUI.SwipeRow), or for the rows selected (SelectBar): a word, as WeChat's. */
|
|
76
|
+
export interface WebSwipeAction {
|
|
77
|
+
key: string;
|
|
78
|
+
label: string;
|
|
79
|
+
/** Red, as Delete. */
|
|
80
|
+
danger?: boolean;
|
|
81
|
+
run(): void;
|
|
82
|
+
}
|
|
83
|
+
export interface WebSwipeRowProps {
|
|
84
|
+
actions?: WebSwipeAction[];
|
|
85
|
+
/** Of the row; its content is `.ta-swipe-content`, which the finger moves. */
|
|
86
|
+
className?: string;
|
|
87
|
+
children?: React.ReactNode;
|
|
88
|
+
}
|
|
89
|
+
export interface WebSelectCheckProps {
|
|
90
|
+
checked: boolean;
|
|
91
|
+
/** A row that cannot be chosen (nothing to do with it): a faint mark. */
|
|
92
|
+
disabled?: boolean;
|
|
93
|
+
}
|
|
94
|
+
export interface WebSelectBarProps {
|
|
95
|
+
/** How many are chosen, of how many could be. */
|
|
96
|
+
count: number;
|
|
97
|
+
total: number;
|
|
98
|
+
/** Chooses every row (`true`), or none. */
|
|
99
|
+
onSelectAll(all: boolean): void;
|
|
100
|
+
/** The list stops selecting. */
|
|
101
|
+
onDone(): void;
|
|
102
|
+
/** What can be done with those chosen: disabled while none is. */
|
|
103
|
+
actions: WebSwipeAction[];
|
|
104
|
+
}
|
|
105
|
+
export interface WebSwitchProps {
|
|
106
|
+
checked: boolean;
|
|
107
|
+
/** What it does: a promise shows the new state at once, the knob turning until it settles, and the old one again if it fails (say why yourself). */
|
|
108
|
+
onChange(checked: boolean): unknown;
|
|
109
|
+
/** For a screen reader. */
|
|
110
|
+
label: string;
|
|
111
|
+
disabled?: boolean;
|
|
112
|
+
}
|
|
113
|
+
export interface WebSkeletonProps {
|
|
114
|
+
/** How many rows, at most 6; 6 unless told. */
|
|
115
|
+
rows?: number;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* A small picture, 160 by 96 unless told: its shapes take the classes of the page so that they follow its
|
|
119
|
+
* theme. `ta-pic-pane` a surface, `ta-pic-line` a bar of text, `ta-pic-box` an outline (a field, a box to
|
|
120
|
+
* tick), `ta-pic-accent` what the picture is about (green, light), `ta-pic-mark` green, `ta-pic-soft` half
|
|
121
|
+
* of that, `ta-pic-dot` a quiet dot, `ta-pic-bad` red, `ta-pic-wait` yellow (what waits for the user), `ta-pic-path` a dashed way between two things,
|
|
122
|
+
* `ta-pic-stroke` a green line (`ta-pic-thin` a grey one), `ta-pic-tick` a line drawn on green,
|
|
123
|
+
* `ta-pic-text` green letters of code. In motion: `ta-pic-go` a thing on its way along a path, `ta-pic-sweep` a line
|
|
124
|
+
* that scans up and down, `ta-pic-pulse` a ring that spreads from where to tap; none moves when the user asks for less motion.
|
|
125
|
+
*/
|
|
126
|
+
export interface WebPictureProps {
|
|
127
|
+
width?: number;
|
|
128
|
+
height?: number;
|
|
129
|
+
/** The rounded frame around it, default true; false for a picture that floats, such as a strip of things. */
|
|
130
|
+
frame?: boolean;
|
|
131
|
+
className?: string;
|
|
132
|
+
/** The shapes, in the coordinates of width by height. */
|
|
133
|
+
children?: React.ReactNode;
|
|
134
|
+
}
|
|
135
|
+
export interface WebPictureCard {
|
|
136
|
+
key: string;
|
|
137
|
+
/** A `Picture`. */
|
|
138
|
+
picture: React.ReactNode;
|
|
139
|
+
/** Two to six words. */
|
|
140
|
+
label: string;
|
|
141
|
+
/** A quieter line under the label: when, how. */
|
|
142
|
+
hint?: string;
|
|
143
|
+
/** Shown on hover: the whole of what picking it does. */
|
|
144
|
+
title?: string;
|
|
145
|
+
disabled?: boolean;
|
|
146
|
+
onPick(): void;
|
|
147
|
+
}
|
|
148
|
+
export interface WebImageViewerProps {
|
|
149
|
+
src: string;
|
|
150
|
+
alt?: string;
|
|
151
|
+
/** On its root, for the background behind the picture (a checkerboard for transparency). */
|
|
152
|
+
className?: string;
|
|
153
|
+
/** Once it loaded: its size in pixels. */
|
|
154
|
+
onLoad?(size: {
|
|
155
|
+
width: number;
|
|
156
|
+
height: number;
|
|
157
|
+
}): void;
|
|
158
|
+
/** A click or tap beside the picture. */
|
|
159
|
+
onBackground?(): void;
|
|
160
|
+
/** The picture before this one and the one after (of a folder): buttons at its sides and ← →, which scroll it while zoomed. */
|
|
161
|
+
onPrevious?(): void;
|
|
162
|
+
onNext?(): void;
|
|
163
|
+
/** Takes the keys at once, as when the user goes on from the picture before with ← →. */
|
|
164
|
+
autoFocus?: boolean;
|
|
165
|
+
}
|
|
166
|
+
export interface WebPictureCardsProps {
|
|
167
|
+
cards: readonly WebPictureCard[];
|
|
168
|
+
/** Default as many as there are cards. */
|
|
169
|
+
columns?: number;
|
|
170
|
+
/** On a phone or a narrow window; default `columns`, two at most when a card has a `hint`. */
|
|
171
|
+
compactColumns?: number;
|
|
172
|
+
}
|
|
173
|
+
export interface WebDialogProps {
|
|
174
|
+
title: string;
|
|
175
|
+
onClose(): void;
|
|
176
|
+
children?: React.ReactNode;
|
|
177
|
+
}
|
|
178
|
+
export interface WebStackProps {
|
|
179
|
+
/** The page under it. */
|
|
180
|
+
base: React.ReactNode;
|
|
181
|
+
/** The level pushed over it, while `open`. */
|
|
182
|
+
top: React.ReactNode;
|
|
183
|
+
open: boolean;
|
|
184
|
+
onClose(): void;
|
|
185
|
+
}
|
|
186
|
+
export interface WebFullScreenProps {
|
|
187
|
+
/** What covers the page, laid out in a column of flex as big as the screen. */
|
|
188
|
+
children?: React.ReactNode;
|
|
189
|
+
className?: string;
|
|
190
|
+
style?: React.CSSProperties;
|
|
191
|
+
}
|
|
192
|
+
export interface WebHoldToTalkProps {
|
|
193
|
+
/** What was said, let go on the bottom of the overlay. */
|
|
194
|
+
onSend(text: string): void;
|
|
195
|
+
/** Let go over 编辑: the words to read over first (put them in a box); without it, they are sent. */
|
|
196
|
+
onEdit?(text: string): void;
|
|
197
|
+
/** Words to expect besides those of the work: the names of whom it talks to. */
|
|
198
|
+
hints?: readonly string[];
|
|
199
|
+
className?: string;
|
|
200
|
+
/** Its label, also for screen readers. */
|
|
201
|
+
title?: string;
|
|
202
|
+
disabled?: boolean;
|
|
203
|
+
children?: React.ReactNode;
|
|
204
|
+
}
|
|
205
|
+
export interface WebVoice {
|
|
206
|
+
/** The page can listen: HoldToTalk shows. */
|
|
207
|
+
canListen(): boolean;
|
|
208
|
+
canSpeak(): boolean;
|
|
209
|
+
/** Reads text (Markdown is read as said, not as written) aloud in the voice of the settings, in the language of the page; another reading stops. */
|
|
210
|
+
speak(text: string, onEnd?: () => void): void;
|
|
211
|
+
/** Stops reading. */
|
|
212
|
+
hush(): void;
|
|
213
|
+
}
|
|
214
|
+
export interface WebComposerProps {
|
|
215
|
+
placeholder?: string;
|
|
216
|
+
/** Sends what was typed; when it fails, the text comes back into the box and the reason is a notice of the page. */
|
|
217
|
+
onSend(text: string): Promise<void> | void;
|
|
218
|
+
/** What `@` lists, by name; and the + menu entry that starts an `@`. */
|
|
219
|
+
mentions?: {
|
|
220
|
+
name: string;
|
|
221
|
+
detail?: string;
|
|
222
|
+
}[];
|
|
223
|
+
mentionLabel?: string;
|
|
224
|
+
/** More sections of the + menu, each set apart by a line. */
|
|
225
|
+
actions?: WebComposerAction[][];
|
|
226
|
+
/** The directory the conversation will work in, empty for that of ta serve: a button above the box shows it. */
|
|
227
|
+
cwd?: string;
|
|
228
|
+
/** With it, the button above the box picks another directory, as that of a new conversation does. */
|
|
229
|
+
onPickCwd?(cwd: string): void | Promise<void>;
|
|
230
|
+
/**
|
|
231
|
+
* For a message that opens a conversation: `/` lists the commands it will have in `cwd` (skills, prompts,
|
|
232
|
+
* commands of extensions), as the box of a new conversation does; what is sent starts with the command typed.
|
|
233
|
+
*/
|
|
234
|
+
commands?: boolean;
|
|
235
|
+
/** Something answers now: with nothing typed, the send button stops it (`onStop`), as in a conversation. */
|
|
236
|
+
working?: boolean;
|
|
237
|
+
onStop?(): void;
|
|
238
|
+
/** What the microphone hears is sent at once, as to the double; otherwise it stays in the box to be read over. */
|
|
239
|
+
voiceSends?: boolean;
|
|
240
|
+
/** A talk was sent (the box held to talk, or its bar): the page may read the answer aloud, as the double does. */
|
|
241
|
+
onTalkSent?(): void;
|
|
242
|
+
/** The user talks to the box now. */
|
|
243
|
+
onListening?(listening: boolean): void;
|
|
244
|
+
/** Controls on the right of the box, before the microphone: one that stops a reading, say. */
|
|
245
|
+
after?: React.ReactNode;
|
|
246
|
+
}
|
|
247
|
+
/** An entry of the + menu of the message box. */
|
|
248
|
+
export interface WebComposerAction {
|
|
249
|
+
key: string;
|
|
250
|
+
label: string;
|
|
251
|
+
/** On the left: an icon of 16 pixels, or an avatar. */
|
|
252
|
+
icon?: React.ReactNode;
|
|
253
|
+
/** After the label of a setting, quieter: its value now; on a tile, shown on hover. */
|
|
254
|
+
detail?: string;
|
|
255
|
+
disabled?: boolean;
|
|
256
|
+
/** A setting of the conversation: a row with its value under the tiles, rather than a tile (what is done once). */
|
|
257
|
+
setting?: boolean;
|
|
258
|
+
/** A setting that is on or off (`checked`): a row with a switch, which turns without closing the menu. */
|
|
259
|
+
toggle?: boolean;
|
|
260
|
+
/** Text the entry puts where the caret is, as `@name `; else `run` runs. */
|
|
261
|
+
insert?: string;
|
|
262
|
+
/** A list the menu shows in its place, as the models of a conversation. */
|
|
263
|
+
items?: WebComposerAction[];
|
|
264
|
+
/** In `items`: the entry picked now, checked on the right; a `toggle` that is on. */
|
|
265
|
+
checked?: boolean;
|
|
266
|
+
/** In `items`: the heading it is under. */
|
|
267
|
+
group?: string;
|
|
268
|
+
run?(): void;
|
|
269
|
+
}
|