@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,7 +1,8 @@
|
|
|
1
1
|
import type { TaEvent, TaTemporaryFrom, TaWebExtensionInfo } from '@celljs/ta-protocol';
|
|
2
2
|
import type * as React from 'react';
|
|
3
3
|
import type { MessageId } from '../i18n/messages';
|
|
4
|
-
import type { WebAvatarProps, WebComposerAddon, WebCustomMessage, WebEditor, WebExtensionFactory, WebIcon, WebLabel, WebMenuItem, WebOpener, WebSearchSource, WebSessionOpening, WebShareTarget, WebTool, WidgetOptions } from './web-extension-api';
|
|
4
|
+
import type { WebAvatarProps, WebChatIconSource, WebCodeRendererProps, WebComposerAddon, WebCustomMessage, WebEditor, WebExtensionFactory, WebIcon, WebImage, WebLabel, WebMenuItem, WebOpener, WebSearchSource, WebSessionMenu, WebSessionOpening, WebSettingsSection, WebShareTarget, WebTool, WebToolRendererResolver, WebViewLocation, WebViewPreview, WidgetOptions } from './web-extension-api';
|
|
5
|
+
import type { WebHomeBoard } from './web-home';
|
|
5
6
|
import type { PageUsage, WebPageInfo } from './web-pages';
|
|
6
7
|
import type { WebTaskBoard } from './web-tasks';
|
|
7
8
|
export declare const TaWebExtensions: unique symbol;
|
|
@@ -38,6 +39,12 @@ export interface WebComposerAddonEntry {
|
|
|
38
39
|
extension: string;
|
|
39
40
|
addon: WebComposerAddon;
|
|
40
41
|
}
|
|
42
|
+
export interface WebSettingsEntry {
|
|
43
|
+
/** `<extension id>/<index>`. */
|
|
44
|
+
id: string;
|
|
45
|
+
extension: string;
|
|
46
|
+
section: WebSettingsSection;
|
|
47
|
+
}
|
|
41
48
|
export interface WebViewEntry {
|
|
42
49
|
/** `<extension name>/<view name>`. */
|
|
43
50
|
id: string;
|
|
@@ -54,11 +61,14 @@ export interface WebViewEntry {
|
|
|
54
61
|
/** Under Discover until the user pins it (WebView.discover). */
|
|
55
62
|
discover?: boolean;
|
|
56
63
|
menu?(): WebMenuItem[][];
|
|
64
|
+
preview?(): WebViewPreview | undefined;
|
|
65
|
+
busy?(): boolean;
|
|
66
|
+
subscribePreview?(listener: () => void): () => void;
|
|
67
|
+
send?(text: string, images?: WebImage[]): Promise<void>;
|
|
57
68
|
/** Kept from before (WebViewUtil.placeholders): its place, until its extension registers it again. */
|
|
58
69
|
pending?: boolean;
|
|
59
70
|
}
|
|
60
|
-
|
|
61
|
-
export type WebViewLocation = 'page' | 'sidebar' | 'panel' | 'launcher' | 'board';
|
|
71
|
+
export type { WebViewLocation } from './web-extension-api';
|
|
62
72
|
/** An extension started on open (`activation: 'open'`), running or not. */
|
|
63
73
|
export interface OnOpenExtension {
|
|
64
74
|
info: TaWebExtensionInfo;
|
|
@@ -81,21 +91,38 @@ export interface WorkbenchTabs {
|
|
|
81
91
|
/** The tab shown: a view's, or one an extension opens again itself (a file). */
|
|
82
92
|
active?: string;
|
|
83
93
|
}
|
|
94
|
+
export interface WebChatIconEntry {
|
|
95
|
+
/** The name of the extension's package: the default tint. */
|
|
96
|
+
extension: string;
|
|
97
|
+
source: WebChatIconSource;
|
|
98
|
+
}
|
|
84
99
|
export interface WebExtensionsState {
|
|
85
100
|
extensions: LoadedWebExtension[];
|
|
86
101
|
views: WebViewEntry[];
|
|
87
102
|
widgets: WebWidgetEntry[];
|
|
88
103
|
/** What extensions add to the message box of every conversation (WebExtensionAPI.registerComposerAddon). */
|
|
89
104
|
composerAddons: WebComposerAddonEntry[];
|
|
105
|
+
/** The sections extensions add to the settings (WebExtensionAPI.registerSettings). */
|
|
106
|
+
settingsSections: WebSettingsEntry[];
|
|
90
107
|
renderers: Record<string, React.ComponentType<{
|
|
91
108
|
message: WebCustomMessage;
|
|
92
109
|
}>>;
|
|
110
|
+
/** By language, in lower case: the first registered (WebExtensionAPI.registerCodeRenderer). */
|
|
111
|
+
codeRenderers: Record<string, React.ComponentType<WebCodeRendererProps>>;
|
|
93
112
|
/** By the name of the extension, the group of the sessions it draws (WebExtensionAPI.registerAvatar). */
|
|
94
113
|
avatars: Record<string, React.ComponentType<WebAvatarProps>>;
|
|
114
|
+
/** The icons extensions give conversations of theirs (WebExtensionAPI.registerChatIcon), with the extension of each. */
|
|
115
|
+
chatIcons: WebChatIconEntry[];
|
|
95
116
|
/** The first tool of each name. */
|
|
96
117
|
tools: WebTool[];
|
|
97
|
-
/**
|
|
118
|
+
/** How calls of tools read (WebExtensionAPI.registerToolRenderer), in the order the extensions loaded. */
|
|
119
|
+
toolRenderers: WebToolRendererResolver[];
|
|
120
|
+
/** Those of links (WebExtensionAPI.registerOpener), the specific ones first, each in the order the extensions registered them. */
|
|
98
121
|
openers: WebOpener[];
|
|
122
|
+
/** Those of some links only (WebOpenerOptions.specific): asked also for a link that goes out of Ta. */
|
|
123
|
+
specificOpeners: WebOpener[];
|
|
124
|
+
/** Entries of the menu of a conversation of a list (WebExtensionAPI.registerSessionMenu). */
|
|
125
|
+
sessionMenus: WebSessionMenu[];
|
|
99
126
|
/** The tabs of the editor area (the workbench), in the order they opened. */
|
|
100
127
|
editors: WebEditorEntry[];
|
|
101
128
|
activeEditor?: string;
|
|
@@ -103,6 +130,11 @@ export interface WebExtensionsState {
|
|
|
103
130
|
focus: number;
|
|
104
131
|
/** The directory of the conversation shown. */
|
|
105
132
|
cwd?: string;
|
|
133
|
+
/**
|
|
134
|
+
* The conversation is in front, not a page, the settings, Discover or the lists of a phone
|
|
135
|
+
* (setConversationShown): `ui.useCwd` gives its directory only then, else the default one.
|
|
136
|
+
*/
|
|
137
|
+
conversationShown: boolean;
|
|
106
138
|
/** The session of the conversation shown. */
|
|
107
139
|
sessionId?: string;
|
|
108
140
|
/** The view of the page shown in the main area; `''` for the conversation. */
|
|
@@ -121,6 +153,24 @@ export interface WebExtensionsState {
|
|
|
121
153
|
searches: WebSearchSource[];
|
|
122
154
|
/** An extension handed on: its dialog shows (WebExtensionUI.shareExtension). */
|
|
123
155
|
sharing?: WebShareTarget;
|
|
156
|
+
/** What extensions show over the page (WebExtensionUI.custom), the last on top. */
|
|
157
|
+
customs: WebCustomEntry[];
|
|
158
|
+
}
|
|
159
|
+
export interface WebCustomEntry {
|
|
160
|
+
id: number;
|
|
161
|
+
/** The name of the extension. */
|
|
162
|
+
extension: string;
|
|
163
|
+
component: React.ComponentType<{
|
|
164
|
+
close(): void;
|
|
165
|
+
}>;
|
|
166
|
+
}
|
|
167
|
+
export declare namespace WebExtensionsStateUtil {
|
|
168
|
+
/** Before any extension ran. */
|
|
169
|
+
function empty(): WebExtensionsState;
|
|
170
|
+
}
|
|
171
|
+
export declare namespace WebCwdUtil {
|
|
172
|
+
/** The directory of the conversation while it is in front; else none, and the workbench is in the default directory. */
|
|
173
|
+
function shown(state: Pick<WebExtensionsState, 'cwd' | 'conversationShown'>): string | undefined;
|
|
124
174
|
}
|
|
125
175
|
export declare namespace WebLabelUtil {
|
|
126
176
|
function text(label: WebLabel | undefined): string;
|
|
@@ -145,14 +195,14 @@ export interface TaWebExtensions {
|
|
|
145
195
|
readonly state: WebExtensionsState;
|
|
146
196
|
/** The tasks of every extension (WebExtensionAPI.registerTasks), the double's too. */
|
|
147
197
|
readonly tasks: WebTaskBoard;
|
|
198
|
+
/** The rows of the double's home of every extension (registerHomeItems). */
|
|
199
|
+
readonly home: WebHomeBoard;
|
|
148
200
|
readonly builtins: readonly BuiltinWebExtension[];
|
|
149
201
|
subscribe(listener: (state: WebExtensionsState) => void): () => void;
|
|
150
202
|
/** Loads what is new, unloads what is gone or off, and loads again what changed. True when anything did. */
|
|
151
203
|
refresh(): Promise<boolean>;
|
|
152
204
|
/** After packages changed: {@link refresh}, then the pi extensions, skills and prompts of the conversation shown. */
|
|
153
205
|
reloadPackages(): Promise<void>;
|
|
154
|
-
/** Removes the package of a web extension from the server. */
|
|
155
|
-
remove(id: string): Promise<void>;
|
|
156
206
|
/** Shows an open tab of the editor area. */
|
|
157
207
|
showEditor(id: string): void;
|
|
158
208
|
/** Opens a `panel` view as a tab of the editor area, or shows its tab. */
|
|
@@ -174,6 +224,12 @@ export interface TaWebExtensions {
|
|
|
174
224
|
forgetPage(id: string): void;
|
|
175
225
|
/** Shows the dialog that hands an extension on; `undefined` closes it. */
|
|
176
226
|
share(target: WebShareTarget | undefined): void;
|
|
227
|
+
/** What `ui.custom` does: shows it over the page; the function returned takes it away. */
|
|
228
|
+
showCustom(extension: string, component: React.ComponentType<{
|
|
229
|
+
close(): void;
|
|
230
|
+
}>): () => void;
|
|
231
|
+
/** Takes away what `ui.custom` shows. */
|
|
232
|
+
closeCustom(id: number): void;
|
|
177
233
|
/** What `ui.openShared` does. */
|
|
178
234
|
openShared(text: string): Promise<boolean>;
|
|
179
235
|
/** Opens a package without installing it, loads the web extensions again and shows its first page (WebExtensionAPI.openTemporary). */
|
|
@@ -191,9 +247,13 @@ export interface TaWebExtensions {
|
|
|
191
247
|
pinEditor(id: string): void;
|
|
192
248
|
/** The conversation shown, while there is one. */
|
|
193
249
|
connect(conversation: WebExtensionConversation | undefined): void;
|
|
250
|
+
/** Whether the conversation is what the main area shows: the shell says so as it changes. */
|
|
251
|
+
setConversationShown(shown: boolean): void;
|
|
194
252
|
/** An event of the conversation shown, for the handlers of `on`. */
|
|
195
253
|
emit(event: TaEvent): void;
|
|
196
254
|
/** What `switchSession` of web extensions does: the page shows that session; `undefined` until it can. */
|
|
197
255
|
setSessionSwitcher(switcher: WebSessionSwitcher | undefined): void;
|
|
256
|
+
/** How the page shows a session as the conversation, once it said (setSessionSwitcher). */
|
|
257
|
+
sessionSwitcher(): WebSessionSwitcher | undefined;
|
|
198
258
|
}
|
|
199
259
|
//# sourceMappingURL=web-extension-protocol.d.ts.map
|
|
@@ -1,8 +1,49 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WebLabelUtil = exports.BuiltinWebExtension = exports.TaWebExtensions = void 0;
|
|
3
|
+
exports.WebLabelUtil = exports.WebCwdUtil = exports.WebExtensionsStateUtil = exports.BuiltinWebExtension = exports.TaWebExtensions = void 0;
|
|
4
4
|
exports.TaWebExtensions = Symbol('TaWebExtensions');
|
|
5
5
|
exports.BuiltinWebExtension = Symbol('BuiltinWebExtension');
|
|
6
|
+
var WebExtensionsStateUtil;
|
|
7
|
+
(function (WebExtensionsStateUtil) {
|
|
8
|
+
/** Before any extension ran. */
|
|
9
|
+
function empty() {
|
|
10
|
+
return {
|
|
11
|
+
extensions: [],
|
|
12
|
+
views: [],
|
|
13
|
+
widgets: [],
|
|
14
|
+
composerAddons: [],
|
|
15
|
+
settingsSections: [],
|
|
16
|
+
renderers: {},
|
|
17
|
+
codeRenderers: {},
|
|
18
|
+
avatars: {},
|
|
19
|
+
chatIcons: [],
|
|
20
|
+
tools: [],
|
|
21
|
+
toolRenderers: [],
|
|
22
|
+
openers: [],
|
|
23
|
+
specificOpeners: [],
|
|
24
|
+
sessionMenus: [],
|
|
25
|
+
customs: [],
|
|
26
|
+
editors: [],
|
|
27
|
+
focus: 0,
|
|
28
|
+
page: '',
|
|
29
|
+
pageShown: 0,
|
|
30
|
+
conversationShown: true,
|
|
31
|
+
onOpen: [],
|
|
32
|
+
kept: [],
|
|
33
|
+
usage: {},
|
|
34
|
+
searches: [],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
WebExtensionsStateUtil.empty = empty;
|
|
38
|
+
})(WebExtensionsStateUtil || (exports.WebExtensionsStateUtil = WebExtensionsStateUtil = {}));
|
|
39
|
+
var WebCwdUtil;
|
|
40
|
+
(function (WebCwdUtil) {
|
|
41
|
+
/** The directory of the conversation while it is in front; else none, and the workbench is in the default directory. */
|
|
42
|
+
function shown(state) {
|
|
43
|
+
return state.conversationShown ? state.cwd : undefined;
|
|
44
|
+
}
|
|
45
|
+
WebCwdUtil.shown = shown;
|
|
46
|
+
})(WebCwdUtil || (exports.WebCwdUtil = WebCwdUtil = {}));
|
|
6
47
|
var WebLabelUtil;
|
|
7
48
|
(function (WebLabelUtil) {
|
|
8
49
|
function text(label) {
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { TaEvent } from '@celljs/ta-protocol';
|
|
2
|
+
import type * as React from 'react';
|
|
3
|
+
import type { WebChatIconSource, WebComposerAddon, WebHomeSource, WebOpener, WebSearchSource, WebSessionMenu, WebSettingsSection, WebTaskSource, WebTool, WebToolRendererResolver, WebView, WidgetOptions } from './web-extension-api';
|
|
4
|
+
import type { LoadedWebExtension, WebExtensionsState } from './web-extension-protocol';
|
|
5
|
+
/** What an extension registered through its API: all of it goes when it stops. */
|
|
6
|
+
export interface WebRegistrations {
|
|
7
|
+
views: Map<string, WebView>;
|
|
8
|
+
widgets: Map<string, {
|
|
9
|
+
component: React.ComponentType;
|
|
10
|
+
options: WidgetOptions;
|
|
11
|
+
}>;
|
|
12
|
+
renderers: Map<string, WebExtensionsState['renderers'][string]>;
|
|
13
|
+
codeRenderers: Map<string, WebExtensionsState['codeRenderers'][string]>;
|
|
14
|
+
avatar?: WebExtensionsState['avatars'][string];
|
|
15
|
+
chatIcons: WebChatIconSource[];
|
|
16
|
+
homeSources: WebHomeSource[];
|
|
17
|
+
tools: WebTool[];
|
|
18
|
+
toolRenderers: WebToolRendererResolver[];
|
|
19
|
+
openers: WebOpener[];
|
|
20
|
+
/** Openers of some links only (WebOpenerOptions.specific): asked first. */
|
|
21
|
+
specificOpeners: WebOpener[];
|
|
22
|
+
sessionMenus: WebSessionMenu[];
|
|
23
|
+
taskSources: WebTaskSource[];
|
|
24
|
+
searches: WebSearchSource[];
|
|
25
|
+
composerAddons: WebComposerAddon[];
|
|
26
|
+
settingsSections: WebSettingsSection[];
|
|
27
|
+
handlers: {
|
|
28
|
+
type: string;
|
|
29
|
+
handler: (event: TaEvent) => void;
|
|
30
|
+
}[];
|
|
31
|
+
}
|
|
32
|
+
/** One web extension that runs, and what it registered. */
|
|
33
|
+
export interface WebExtensionRun extends WebRegistrations {
|
|
34
|
+
loaded: LoadedWebExtension;
|
|
35
|
+
/** Of the file it runs; a change loads it again. */
|
|
36
|
+
hash?: string;
|
|
37
|
+
/** Its function has returned: what it registers from now on shows at once. */
|
|
38
|
+
started: boolean;
|
|
39
|
+
stopped: boolean;
|
|
40
|
+
/** Undo what it subscribed to outside its registrations (the terminals of the workbench, its storage). */
|
|
41
|
+
unsubscribes: (() => void)[];
|
|
42
|
+
dispose?: () => void;
|
|
43
|
+
}
|
|
44
|
+
export declare namespace WebExtensionRunUtil {
|
|
45
|
+
/** Nothing registered: the one list of what a run holds, so that a stop clears every kind of it. */
|
|
46
|
+
function registrations(): WebRegistrations;
|
|
47
|
+
function create(loaded: LoadedWebExtension, hash?: string): WebExtensionRun;
|
|
48
|
+
/** Stops what it registered and subscribed to; it registers nothing more. */
|
|
49
|
+
function clear(run: WebExtensionRun): void;
|
|
50
|
+
/** Subscribes for the extension: undone when it stops, or by the function returned. */
|
|
51
|
+
function track(run: WebExtensionRun, subscribe: () => () => void): () => void;
|
|
52
|
+
/** What the extensions that run registered, as the page shows it: the first of a message type or a tool name wins. */
|
|
53
|
+
function collect(runs: readonly WebExtensionRun[], onOpen: (id: string) => boolean): Pick<WebExtensionsState, 'openers' | 'specificOpeners' | 'sessionMenus' | 'extensions' | 'views' | 'widgets' | 'composerAddons' | 'settingsSections' | 'renderers' | 'codeRenderers' | 'avatars' | 'chatIcons' | 'tools' | 'toolRenderers' | 'searches'>;
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=web-extension-run.d.ts.map
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebExtensionRunUtil = void 0;
|
|
4
|
+
const DEFAULT_ORDER = 100;
|
|
5
|
+
var WebExtensionRunUtil;
|
|
6
|
+
(function (WebExtensionRunUtil) {
|
|
7
|
+
/** Nothing registered: the one list of what a run holds, so that a stop clears every kind of it. */
|
|
8
|
+
function registrations() {
|
|
9
|
+
return {
|
|
10
|
+
views: new Map(),
|
|
11
|
+
widgets: new Map(),
|
|
12
|
+
renderers: new Map(),
|
|
13
|
+
codeRenderers: new Map(),
|
|
14
|
+
avatar: undefined,
|
|
15
|
+
chatIcons: [],
|
|
16
|
+
homeSources: [],
|
|
17
|
+
tools: [],
|
|
18
|
+
toolRenderers: [],
|
|
19
|
+
openers: [],
|
|
20
|
+
specificOpeners: [],
|
|
21
|
+
sessionMenus: [],
|
|
22
|
+
taskSources: [],
|
|
23
|
+
searches: [],
|
|
24
|
+
composerAddons: [],
|
|
25
|
+
settingsSections: [],
|
|
26
|
+
handlers: [],
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
WebExtensionRunUtil.registrations = registrations;
|
|
30
|
+
function create(loaded, hash) {
|
|
31
|
+
return { loaded, hash, started: false, stopped: false, unsubscribes: [], ...registrations() };
|
|
32
|
+
}
|
|
33
|
+
WebExtensionRunUtil.create = create;
|
|
34
|
+
/** Stops what it registered and subscribed to; it registers nothing more. */
|
|
35
|
+
function clear(run) {
|
|
36
|
+
run.stopped = true;
|
|
37
|
+
Object.assign(run, registrations());
|
|
38
|
+
for (const unsubscribe of run.unsubscribes.splice(0)) {
|
|
39
|
+
unsubscribe();
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
WebExtensionRunUtil.clear = clear;
|
|
43
|
+
/** Subscribes for the extension: undone when it stops, or by the function returned. */
|
|
44
|
+
function track(run, subscribe) {
|
|
45
|
+
if (run.stopped) {
|
|
46
|
+
return () => undefined;
|
|
47
|
+
}
|
|
48
|
+
const unsubscribe = subscribe();
|
|
49
|
+
run.unsubscribes.push(unsubscribe);
|
|
50
|
+
return () => {
|
|
51
|
+
unsubscribe();
|
|
52
|
+
run.unsubscribes = run.unsubscribes.filter(other => other !== unsubscribe);
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
WebExtensionRunUtil.track = track;
|
|
56
|
+
/** What the extensions that run registered, as the page shows it: the first of a message type or a tool name wins. */
|
|
57
|
+
function collect(runs, onOpen) {
|
|
58
|
+
var _a, _b;
|
|
59
|
+
const renderers = {};
|
|
60
|
+
const codeRenderers = {};
|
|
61
|
+
const avatars = {};
|
|
62
|
+
const tools = [];
|
|
63
|
+
for (const run of runs) {
|
|
64
|
+
if (run.avatar) {
|
|
65
|
+
avatars[run.loaded.name] = run.avatar;
|
|
66
|
+
}
|
|
67
|
+
for (const [type, renderer] of run.renderers) {
|
|
68
|
+
(_a = renderers[type]) !== null && _a !== void 0 ? _a : (renderers[type] = renderer);
|
|
69
|
+
}
|
|
70
|
+
for (const [language, renderer] of run.codeRenderers) {
|
|
71
|
+
(_b = codeRenderers[language]) !== null && _b !== void 0 ? _b : (codeRenderers[language] = renderer);
|
|
72
|
+
}
|
|
73
|
+
for (const tool of run.tools) {
|
|
74
|
+
if (!tools.some(other => other.name === tool.name)) {
|
|
75
|
+
tools.push(tool);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
const views = runs.flatMap(run => [...run.views].map(([name, view]) => { var _a, _b, _c, _d, _e; var _f, _g; return ({
|
|
80
|
+
id: `${run.loaded.name}/${name}`,
|
|
81
|
+
extension: run.loaded.id,
|
|
82
|
+
title: view.title,
|
|
83
|
+
component: view.render,
|
|
84
|
+
icon: view.icon,
|
|
85
|
+
location: (_f = view.location) !== null && _f !== void 0 ? _f : 'page',
|
|
86
|
+
order: (_g = view.order) !== null && _g !== void 0 ? _g : DEFAULT_ORDER,
|
|
87
|
+
head: view.head,
|
|
88
|
+
pages: view.pages,
|
|
89
|
+
discover: view.discover,
|
|
90
|
+
menu: (_a = view.menu) === null || _a === void 0 ? void 0 : _a.bind(view),
|
|
91
|
+
preview: (_b = view.preview) === null || _b === void 0 ? void 0 : _b.bind(view),
|
|
92
|
+
busy: (_c = view.busy) === null || _c === void 0 ? void 0 : _c.bind(view),
|
|
93
|
+
subscribePreview: (_d = view.subscribe) === null || _d === void 0 ? void 0 : _d.bind(view),
|
|
94
|
+
send: (_e = view.send) === null || _e === void 0 ? void 0 : _e.bind(view),
|
|
95
|
+
...(onOpen(run.loaded.id) ? { onOpen: true } : {}),
|
|
96
|
+
}); }));
|
|
97
|
+
return {
|
|
98
|
+
openers: [...runs.flatMap(run => run.specificOpeners), ...runs.flatMap(run => run.openers)],
|
|
99
|
+
specificOpeners: runs.flatMap(run => run.specificOpeners),
|
|
100
|
+
sessionMenus: runs.flatMap(run => run.sessionMenus),
|
|
101
|
+
extensions: runs.map(run => run.loaded),
|
|
102
|
+
views,
|
|
103
|
+
widgets: runs.flatMap(run => [...run.widgets].map(([key, { component, options }]) => { var _a; return ({
|
|
104
|
+
id: `${run.loaded.id}/${key}`,
|
|
105
|
+
extension: run.loaded.id,
|
|
106
|
+
placement: (_a = options.placement) !== null && _a !== void 0 ? _a : 'aboveEditor',
|
|
107
|
+
title: options.title,
|
|
108
|
+
component,
|
|
109
|
+
}); })),
|
|
110
|
+
composerAddons: runs.flatMap(run => run.composerAddons.map((addon, index) => ({ id: `${run.loaded.id}/${index}`, extension: run.loaded.id, addon }))),
|
|
111
|
+
settingsSections: runs.flatMap(run => run.settingsSections.map((section, index) => ({ id: `${run.loaded.id}/${index}`, extension: run.loaded.id, section }))),
|
|
112
|
+
renderers,
|
|
113
|
+
codeRenderers,
|
|
114
|
+
avatars,
|
|
115
|
+
chatIcons: runs.flatMap(run => run.chatIcons.map(source => ({ extension: run.loaded.name, source }))),
|
|
116
|
+
tools,
|
|
117
|
+
toolRenderers: runs.flatMap(run => run.toolRenderers),
|
|
118
|
+
searches: runs.flatMap(run => run.searches).sort((a, b) => { var _a, _b; return ((_a = a.order) !== null && _a !== void 0 ? _a : DEFAULT_ORDER) - ((_b = b.order) !== null && _b !== void 0 ? _b : DEFAULT_ORDER); }),
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
WebExtensionRunUtil.collect = collect;
|
|
122
|
+
})(WebExtensionRunUtil || (exports.WebExtensionRunUtil = WebExtensionRunUtil = {}));
|
|
123
|
+
//# sourceMappingURL=web-extension-run.js.map
|
|
@@ -1,66 +1,46 @@
|
|
|
1
|
-
import type { TaEvent,
|
|
2
|
-
import * as React from 'react';
|
|
1
|
+
import type { TaEvent, TaTemporaryFrom, TaWebExtensionInfo } from '@celljs/ta-protocol';
|
|
2
|
+
import type * as React from 'react';
|
|
3
|
+
import { TaFiles } from '../files/files-protocol';
|
|
3
4
|
import { TaLinks } from '../links/links-protocol';
|
|
4
5
|
import { TaNotices } from '../notices/notices-protocol';
|
|
6
|
+
import { TaSessionNotices } from '../notices/session-notices';
|
|
5
7
|
import { TaSettings } from '../settings/settings-protocol';
|
|
6
8
|
import { TaState } from '../state/state-protocol';
|
|
7
9
|
import { TaWorkbench } from '../workbench-protocol';
|
|
8
|
-
import
|
|
10
|
+
import { WebEditorTabs } from './web-editor-tabs';
|
|
11
|
+
import type { WebExtensionFactory, WebShareTarget } from './web-extension-api';
|
|
9
12
|
import { WebExtensionCode } from './web-extension-code';
|
|
13
|
+
import { WebExtensionContext, type WebExtensionContextHost } from './web-extension-context';
|
|
10
14
|
import { BuiltinWebExtension, type LoadedWebExtension, TaWebExtensions, type WebEditorEntry, type WebExtensionConversation, type WebExtensionsState, type WebSessionSwitcher, type WebViewEntry } from './web-extension-protocol';
|
|
15
|
+
import { type WebExtensionRun } from './web-extension-run';
|
|
16
|
+
import { WebHomeBoard } from './web-home';
|
|
11
17
|
import { WebOnDemand } from './web-on-demand';
|
|
12
18
|
import type { WebPageInfo } from './web-pages';
|
|
13
19
|
import { WebSharing } from './web-sharing';
|
|
14
20
|
import { WebTaskBoard } from './web-tasks';
|
|
15
|
-
/** One web extension that runs, and what it registered. */
|
|
16
|
-
interface Running {
|
|
17
|
-
loaded: LoadedWebExtension;
|
|
18
|
-
/** Of the file it runs; a change loads it again. */
|
|
19
|
-
hash?: string;
|
|
20
|
-
/** Its function has returned: what it registers from now on shows at once. */
|
|
21
|
-
started: boolean;
|
|
22
|
-
stopped: boolean;
|
|
23
|
-
views: Map<string, WebView>;
|
|
24
|
-
widgets: Map<string, {
|
|
25
|
-
component: React.ComponentType;
|
|
26
|
-
options: WidgetOptions;
|
|
27
|
-
}>;
|
|
28
|
-
renderers: Map<string, WebExtensionsState['renderers'][string]>;
|
|
29
|
-
avatar?: WebExtensionsState['avatars'][string];
|
|
30
|
-
tools: WebTool[];
|
|
31
|
-
openers: WebOpener[];
|
|
32
|
-
taskSources: WebTaskSource[];
|
|
33
|
-
searches: WebSearchSource[];
|
|
34
|
-
composerAddons: WebComposerAddon[];
|
|
35
|
-
handlers: {
|
|
36
|
-
type: string;
|
|
37
|
-
handler: (event: TaEvent) => void;
|
|
38
|
-
}[];
|
|
39
|
-
/** Undo what it subscribed to outside this class (the terminals of the workbench). */
|
|
40
|
-
unsubscribes: (() => void)[];
|
|
41
|
-
dispose?: () => void;
|
|
42
|
-
}
|
|
43
21
|
export declare class TaWebExtensionsImpl implements TaWebExtensions {
|
|
44
22
|
protected readonly workbench: TaWorkbench;
|
|
45
23
|
protected readonly settings: TaSettings;
|
|
24
|
+
protected readonly taFiles: TaFiles;
|
|
46
25
|
/** Detached: TaLinks asks the openers of the extensions. */
|
|
47
26
|
protected readonly links: TaLinks;
|
|
48
27
|
protected readonly notices: TaNotices;
|
|
49
28
|
protected readonly persisted: TaState;
|
|
29
|
+
protected readonly sessionNotices: TaSessionNotices;
|
|
50
30
|
readonly builtins: BuiltinWebExtension[];
|
|
51
31
|
readonly tasks: WebTaskBoard;
|
|
32
|
+
readonly home: WebHomeBoard;
|
|
33
|
+
protected readonly tabs: WebEditorTabs;
|
|
52
34
|
/** The code read before, by its hash: a start reads only what changed. */
|
|
53
35
|
protected readonly code: WebExtensionCode;
|
|
54
36
|
protected current: WebExtensionsState;
|
|
55
|
-
protected readonly running: Map<string,
|
|
37
|
+
protected readonly running: Map<string, WebExtensionRun>;
|
|
56
38
|
protected readonly listeners: Set<(state: WebExtensionsState) => void>;
|
|
57
39
|
protected conversation?: WebExtensionConversation;
|
|
58
40
|
protected switcher?: WebSessionSwitcher;
|
|
59
41
|
protected refreshing: Promise<boolean>;
|
|
60
|
-
/** The
|
|
61
|
-
protected
|
|
62
|
-
/** The tab shown before the page loaded, until it opens again or the user shows another. */
|
|
63
|
-
protected pendingActive?: string;
|
|
42
|
+
/** The extensions of the list of the last time have started (startKept), once. */
|
|
43
|
+
protected keptStarted: boolean;
|
|
64
44
|
/** The views of the navigation kept from before (WebViewUtil.KEPT), in their places until the extensions have loaded once. */
|
|
65
45
|
protected placeholders?: WebViewEntry[];
|
|
66
46
|
protected started?: WebOnDemand;
|
|
@@ -84,18 +64,26 @@ export declare class TaWebExtensionsImpl implements TaWebExtensions {
|
|
|
84
64
|
* extensions, skills and prompts of the conversation shown.
|
|
85
65
|
*/
|
|
86
66
|
reloadPackages(): Promise<void>;
|
|
87
|
-
remove(id: string): Promise<void>;
|
|
88
67
|
showEditor(id: string): void;
|
|
89
68
|
openView(id: string, preserveFocus?: boolean): void;
|
|
90
69
|
showPage(id: string): void;
|
|
91
70
|
hidePage(): void;
|
|
92
71
|
showView(id: string): Promise<boolean>;
|
|
72
|
+
/** Whether `ui.showView` has something for an id: an extension started on open, or a view. */
|
|
73
|
+
protected knows(id: string): boolean;
|
|
93
74
|
pages(): readonly WebPageInfo[];
|
|
75
|
+
/** The kinds the pages of the extensions there are list (TaWebExtensionInfo.lists), started or not. */
|
|
76
|
+
protected listedKinds(): Set<string>;
|
|
94
77
|
stopExtension(name: string): void;
|
|
95
78
|
forgetPage(id: string): void;
|
|
96
79
|
openTemporary(source: string, from: TaTemporaryFrom): Promise<string>;
|
|
97
80
|
openShared(text: string): Promise<boolean>;
|
|
98
81
|
share(target: WebShareTarget | undefined): void;
|
|
82
|
+
protected nextCustom: number;
|
|
83
|
+
showCustom(extension: string, component: React.ComponentType<{
|
|
84
|
+
close(): void;
|
|
85
|
+
}>): () => void;
|
|
86
|
+
closeCustom(id: number): void;
|
|
99
87
|
protected readonly sharing: WebSharing;
|
|
100
88
|
/** The pages change with the extensions and with the navigation of the settings. */
|
|
101
89
|
protected readonly subscribePages: (listener: () => void) => () => void;
|
|
@@ -107,18 +95,21 @@ export declare class TaWebExtensionsImpl implements TaWebExtensions {
|
|
|
107
95
|
closeEditor(id: string): Promise<void>;
|
|
108
96
|
closeEditors(ids: readonly string[]): Promise<void>;
|
|
109
97
|
pinEditor(id: string): void;
|
|
110
|
-
/** Removes a tab and tells the extension that opened it. */
|
|
111
|
-
protected dropEditor(editor: WebEditorEntry): void;
|
|
112
|
-
protected setDirty(run: Running, id: string, dirty: boolean): void;
|
|
113
98
|
connect(conversation: WebExtensionConversation | undefined): void;
|
|
99
|
+
setConversationShown(shown: boolean): void;
|
|
114
100
|
setSessionSwitcher(switcher: WebSessionSwitcher | undefined): void;
|
|
101
|
+
sessionSwitcher(): WebSessionSwitcher | undefined;
|
|
115
102
|
emit(event: TaEvent): void;
|
|
116
103
|
protected reconcile(): Promise<boolean>;
|
|
117
|
-
/**
|
|
118
|
-
|
|
119
|
-
|
|
104
|
+
/**
|
|
105
|
+
* The first time, before the computer has answered: the extensions of its list of the last time whose code
|
|
106
|
+
* this browser keeps. What they read goes with the first calls of the page, not a round trip after the list
|
|
107
|
+
* (a phone over the relay waited for it before its double's list could show). The list then keeps those
|
|
108
|
+
* still the same and stops the others.
|
|
109
|
+
*/
|
|
110
|
+
protected startKept(host: string | undefined): Promise<boolean>;
|
|
120
111
|
/** Stops and forgets the extensions running that `keep` does not keep; whether there were any. */
|
|
121
|
-
protected stopUnless(keep: (run:
|
|
112
|
+
protected stopUnless(keep: (run: WebExtensionRun) => boolean): boolean;
|
|
122
113
|
protected loadPackage(info: TaWebExtensionInfo): Promise<{
|
|
123
114
|
factory: WebExtensionFactory;
|
|
124
115
|
hash: string;
|
|
@@ -132,32 +123,14 @@ export declare class TaWebExtensionsImpl implements TaWebExtensions {
|
|
|
132
123
|
error: string;
|
|
133
124
|
}): void;
|
|
134
125
|
protected start(loaded: LoadedWebExtension, factory: WebExtensionFactory, hash?: string): void;
|
|
135
|
-
protected stop(run:
|
|
136
|
-
protected openEditor(run: Running, editor: WebEditor, preserveFocus?: boolean, preview?: boolean): void;
|
|
126
|
+
protected stop(run: WebExtensionRun): void;
|
|
137
127
|
open(editor: WebEditorEntry, preserveFocus?: boolean): void;
|
|
138
|
-
protected
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
protected
|
|
143
|
-
settings: TaSettings;
|
|
144
|
-
}>;
|
|
145
|
-
protected readonly diffEditor: (props: DiffEditorProps) => React.FunctionComponentElement<DiffEditorProps & {
|
|
146
|
-
settings: TaSettings;
|
|
147
|
-
}>;
|
|
148
|
-
protected readonly listDirectory: (directory: string) => Promise<import("@celljs/ta-protocol").TaDirEntry[]>;
|
|
149
|
-
/** The message box, whose button of the directory lists those of the server. */
|
|
150
|
-
protected readonly composer: (props: WebComposerProps) => React.FunctionComponentElement<import("../components/web-composer").WebComposerHostProps>;
|
|
151
|
-
protected readonly modelPicker: (props: WebModelPickerProps) => React.FunctionComponentElement<WebModelPickerProps & {
|
|
152
|
-
settings: TaSettingsServer;
|
|
153
|
-
}>;
|
|
154
|
-
protected readonly folderPicker: ({ initial, onPick, onClose }: WebFolderPickerProps) => React.FunctionComponentElement<import("../components/folder-picker").FolderPickerProps>;
|
|
155
|
-
protected api(run: Running): WebExtensionAPI;
|
|
156
|
-
/** The data of the package of an extension on the server; of a directory with `cwd`. */
|
|
157
|
-
protected storage(run: Running, cwd?: string): WebStorage;
|
|
158
|
-
protected guard(run: Running, action: () => void): void;
|
|
128
|
+
protected wired?: WebExtensionContext;
|
|
129
|
+
/** What the API of each extension asks of the page; made when the first starts, once the fields are injected. */
|
|
130
|
+
protected get context(): WebExtensionContext;
|
|
131
|
+
protected contextHost(): WebExtensionContextHost;
|
|
132
|
+
protected guard(run: WebExtensionRun, action: () => void): void;
|
|
159
133
|
protected publish(): void;
|
|
160
134
|
protected update(change: Partial<WebExtensionsState>): void;
|
|
161
135
|
}
|
|
162
|
-
export {};
|
|
163
136
|
//# sourceMappingURL=web-extensions.d.ts.map
|