@celljs/ta-web 4.16.0 → 4.18.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 +2 -1
- package/README.md +2 -1
- package/esm/browser/assistant/assistant-ask-book.d.ts +35 -0
- package/esm/browser/assistant/assistant-ask-book.js +96 -0
- package/esm/browser/assistant/assistant-chat-list.d.ts +4 -4
- package/esm/browser/assistant/assistant-chat-list.js +74 -4
- package/esm/browser/assistant/assistant-conversation.d.ts +110 -0
- package/esm/browser/assistant/assistant-conversation.js +351 -0
- package/esm/browser/assistant/assistant-export.js +11 -8
- package/esm/browser/assistant/assistant-extension.d.ts +3 -2
- package/esm/browser/assistant/assistant-extension.js +119 -11
- package/esm/browser/assistant/assistant-protocol.d.ts +17 -2
- package/esm/browser/assistant/assistant-role.d.ts +22 -4
- package/esm/browser/assistant/assistant-role.js +33 -8
- package/esm/browser/assistant/assistant-state.d.ts +5 -1
- package/esm/browser/assistant/assistant-state.js +11 -0
- package/esm/browser/assistant/assistant-task-source.d.ts +4 -0
- package/esm/browser/assistant/assistant-task-source.js +24 -4
- package/esm/browser/assistant/assistant-task-util.d.ts +27 -7
- package/esm/browser/assistant/assistant-task-util.js +84 -20
- package/esm/browser/assistant/assistant-tasks.d.ts +0 -7
- package/esm/browser/assistant/assistant-tasks.js +2 -4
- package/esm/browser/assistant/assistant-thread.d.ts +22 -0
- package/esm/browser/assistant/assistant-thread.js +112 -0
- package/esm/browser/assistant/assistant-view.js +79 -130
- package/esm/browser/assistant/assistant.d.ts +33 -105
- package/esm/browser/assistant/assistant.js +105 -357
- package/esm/browser/assistant/call-keeper.d.ts +142 -0
- package/esm/browser/assistant/call-keeper.js +292 -0
- package/esm/browser/assistant/call-screen.d.ts +39 -0
- package/esm/browser/assistant/call-screen.js +75 -0
- package/esm/browser/assistant/chat-task-source.d.ts +56 -0
- package/esm/browser/assistant/chat-task-source.js +82 -0
- package/esm/browser/assistant/read-aloud.d.ts +34 -0
- package/esm/browser/assistant/read-aloud.js +98 -0
- package/esm/browser/assistant/realtime-voice.d.ts +138 -0
- package/esm/browser/assistant/realtime-voice.js +479 -0
- package/esm/browser/assistant/task-views.d.ts +11 -9
- package/esm/browser/assistant/task-views.js +47 -25
- package/esm/browser/assistant/voice-call-bar.d.ts +67 -0
- package/esm/browser/assistant/voice-call-bar.js +316 -0
- package/esm/browser/assistant/voice-call.d.ts +207 -0
- package/esm/browser/assistant/voice-call.js +469 -0
- package/esm/browser/assistant/voice-reopen.d.ts +18 -0
- package/esm/browser/assistant/voice-reopen.js +54 -0
- package/esm/browser/chat/chat-shown.d.ts +78 -0
- package/esm/browser/chat/chat-shown.js +262 -0
- package/esm/browser/chat/chat-view.js +7 -9
- package/esm/browser/chat/chat.d.ts +4 -68
- package/esm/browser/chat/chat.js +5 -253
- package/esm/browser/chat/draft-model.d.ts +1 -1
- package/esm/browser/cloud/cloud-sign-in.d.ts +100 -0
- package/esm/browser/cloud/cloud-sign-in.js +239 -0
- package/esm/browser/cloud/device-page.d.ts +15 -0
- package/esm/browser/cloud/device-page.js +39 -0
- package/esm/browser/components/access-view.js +26 -2
- package/esm/browser/components/account-menu.js +4 -2
- package/esm/browser/components/app-contexts.d.ts +12 -0
- package/esm/browser/components/app-contexts.js +28 -0
- package/esm/browser/components/app-nav.d.ts +6 -2
- package/esm/browser/components/app-nav.js +15 -12
- package/esm/browser/components/app-shell-hooks.d.ts +11 -2
- package/esm/browser/components/app-shell-hooks.js +25 -4
- package/esm/browser/components/app-shell-state.d.ts +80 -0
- package/esm/browser/components/app-shell-state.js +471 -0
- package/esm/browser/components/app-view.js +212 -393
- package/esm/browser/components/asks-badge.d.ts +6 -2
- package/esm/browser/components/asks-badge.js +7 -3
- package/esm/browser/components/auth-pictures.d.ts +2 -2
- package/esm/browser/components/auth-pictures.js +13 -1
- package/esm/browser/components/auth-view.d.ts +4 -3
- package/esm/browser/components/auth-view.js +57 -10
- package/esm/browser/components/call-pill.d.ts +11 -0
- package/esm/browser/components/call-pill.js +19 -0
- package/esm/browser/components/chat-asks.d.ts +2 -0
- package/esm/browser/components/chat-asks.js +8 -0
- package/esm/browser/components/chat-busy.d.ts +32 -0
- package/esm/browser/components/chat-busy.js +49 -0
- package/esm/browser/components/chat-home-util.d.ts +112 -0
- package/esm/browser/components/chat-home-util.js +123 -0
- package/esm/browser/components/chat-home.d.ts +54 -0
- package/esm/browser/components/chat-home.js +125 -0
- package/esm/browser/components/chat-icon.d.ts +10 -2
- package/esm/browser/components/chat-icon.js +32 -6
- package/esm/browser/components/chat-list-hooks.d.ts +30 -0
- package/esm/browser/components/chat-list-hooks.js +81 -0
- package/esm/browser/components/chat-list-props.d.ts +54 -0
- package/esm/browser/components/chat-list-props.js +2 -0
- package/esm/browser/components/chat-list-row.d.ts +96 -0
- package/esm/browser/components/chat-list-row.js +208 -0
- package/esm/browser/components/chat-list-util.d.ts +197 -0
- package/esm/browser/components/chat-list-util.js +398 -0
- package/esm/browser/components/chat-list.d.ts +6 -190
- package/esm/browser/components/chat-list.js +340 -545
- package/esm/browser/components/chat-seen.js +1 -0
- package/esm/browser/components/cloud-sign-in-view.d.ts +61 -0
- package/esm/browser/components/cloud-sign-in-view.js +351 -0
- package/esm/browser/components/code-editor.js +2 -1
- package/esm/browser/components/composer-addon-util.d.ts +1 -1
- package/esm/browser/components/composer-addons.d.ts +1 -1
- package/esm/browser/components/composer-attachments.d.ts +11 -0
- package/esm/browser/components/composer-attachments.js +27 -0
- package/esm/browser/components/composer-box-hooks.d.ts +9 -0
- package/esm/browser/components/composer-box-hooks.js +138 -0
- package/esm/browser/components/composer-box-protocol.d.ts +108 -0
- package/esm/browser/components/composer-box-protocol.js +2 -0
- package/esm/browser/components/composer-box.d.ts +1 -95
- package/esm/browser/components/composer-box.js +54 -154
- package/esm/browser/components/composer-target.d.ts +21 -0
- package/esm/browser/components/composer-target.js +43 -0
- package/esm/browser/components/composer.d.ts +7 -1
- package/esm/browser/components/composer.js +13 -9
- package/esm/browser/components/connection-bar.js +22 -3
- package/esm/browser/components/context-menu.d.ts +11 -2
- package/esm/browser/components/context-menu.js +18 -3
- package/esm/browser/components/conversation-find.d.ts +27 -0
- package/esm/browser/components/conversation-find.js +151 -0
- package/esm/browser/components/conversation-scroll-hooks.js +2 -1
- package/esm/browser/components/conversation-scroll-util.d.ts +73 -0
- package/esm/browser/components/conversation-scroll-util.js +80 -0
- package/esm/browser/components/conversation-scroll.d.ts +3 -35
- package/esm/browser/components/conversation-scroll.js +16 -81
- package/esm/browser/components/conversation-view.d.ts +8 -0
- package/esm/browser/components/conversation-view.js +41 -0
- package/esm/browser/components/device-sign-in-page.d.ts +12 -0
- package/esm/browser/components/device-sign-in-page.js +74 -0
- package/esm/browser/components/diff-editor.js +2 -1
- package/esm/browser/components/discover-view.d.ts +3 -2
- package/esm/browser/components/discover-view.js +31 -26
- package/esm/browser/components/dismiss.js +2 -0
- package/esm/browser/components/earlier-messages.d.ts +2 -0
- package/esm/browser/components/earlier-messages.js +2 -1
- package/esm/browser/components/entry-holds.d.ts +22 -0
- package/esm/browser/components/entry-holds.js +49 -0
- package/esm/browser/components/environment-view.js +8 -8
- package/esm/browser/components/face.d.ts +1 -1
- package/esm/browser/components/fold-text.js +3 -1
- package/esm/browser/components/folder-picker.d.ts +7 -0
- package/esm/browser/components/folder-picker.js +89 -19
- package/esm/browser/components/fork-view.js +2 -4
- package/esm/browser/components/gallery.d.ts +1 -1
- package/esm/browser/components/gallery.js +59 -15
- package/esm/browser/components/held-talk.d.ts +6 -2
- package/esm/browser/components/held-talk.js +20 -2
- package/esm/browser/components/host-view.d.ts +9 -4
- package/esm/browser/components/host-view.js +56 -15
- package/esm/browser/components/image-menu.d.ts +11 -0
- package/esm/browser/components/image-menu.js +29 -0
- package/esm/browser/components/image-swipe.d.ts +50 -0
- package/esm/browser/components/image-swipe.js +139 -0
- package/esm/browser/components/image-viewer.d.ts +12 -115
- package/esm/browser/components/image-viewer.js +74 -368
- package/esm/browser/components/image-zoom.d.ts +112 -0
- package/esm/browser/components/image-zoom.js +355 -0
- package/esm/browser/components/kept-call-bar.d.ts +12 -0
- package/esm/browser/components/kept-call-bar.js +99 -0
- package/esm/browser/components/lightbox.d.ts +6 -2
- package/esm/browser/components/lightbox.js +6 -3
- package/esm/browser/components/link-dialog.d.ts +2 -1
- package/esm/browser/components/link-dialog.js +7 -1
- package/esm/browser/components/link.d.ts +4 -0
- package/esm/browser/components/link.js +11 -0
- package/esm/browser/components/list-rows.d.ts +3 -1
- package/esm/browser/components/list-rows.js +2 -1
- package/esm/browser/components/loading.d.ts +12 -0
- package/esm/browser/components/loading.js +18 -0
- package/esm/browser/components/markdown.js +7 -1
- package/esm/browser/components/media.d.ts +2 -0
- package/esm/browser/components/media.js +16 -1
- package/esm/browser/components/mermaid-view.js +14 -7
- package/esm/browser/components/message-actions.d.ts +1 -1
- package/esm/browser/components/message-actions.js +9 -0
- package/esm/browser/components/message-footer.d.ts +3 -1
- package/esm/browser/components/message-footer.js +3 -2
- package/esm/browser/components/message-images.d.ts +41 -0
- package/esm/browser/components/message-images.js +120 -0
- package/esm/browser/components/message-list.d.ts +4 -100
- package/esm/browser/components/message-list.js +22 -454
- package/esm/browser/components/message-menu.js +4 -0
- package/esm/browser/components/message-steps.d.ts +21 -0
- package/esm/browser/components/message-steps.js +190 -0
- package/esm/browser/components/message-user.d.ts +63 -0
- package/esm/browser/components/message-user.js +204 -0
- package/esm/browser/components/model-picker.d.ts +4 -2
- package/esm/browser/components/model-picker.js +16 -3
- package/esm/browser/components/moved-notice.d.ts +14 -0
- package/esm/browser/components/moved-notice.js +60 -0
- package/esm/browser/components/nav-places.d.ts +17 -11
- package/esm/browser/components/nav-places.js +18 -13
- package/esm/browser/components/notice-center.js +36 -1
- package/esm/browser/components/notice-face.js +2 -1
- package/esm/browser/components/phone-shell.d.ts +5 -4
- package/esm/browser/components/phone-shell.js +60 -68
- package/esm/browser/components/plus-menu.d.ts +1 -1
- package/esm/browser/components/relay-services.d.ts +6 -1
- package/esm/browser/components/relay-services.js +109 -2
- package/esm/browser/components/relay-view.js +2 -0
- package/esm/browser/components/remote-hosts.d.ts +10 -0
- package/esm/browser/components/remote-hosts.js +7 -6
- package/esm/browser/components/remote-prompts.js +2 -0
- package/esm/browser/components/scan-screen.d.ts +4 -2
- package/esm/browser/components/scan-screen.js +53 -20
- package/esm/browser/components/screen-navigator-util.d.ts +28 -0
- package/esm/browser/components/screen-navigator-util.js +33 -0
- package/esm/browser/components/screen-navigator.d.ts +30 -0
- package/esm/browser/components/screen-navigator.js +47 -0
- package/esm/browser/components/search-page.js +3 -2
- package/esm/browser/components/secret-peek.d.ts +3 -0
- package/esm/browser/components/secret-peek.js +19 -0
- package/esm/browser/components/secret-text.d.ts +41 -0
- package/esm/browser/components/secret-text.js +80 -0
- package/esm/browser/components/session-settings.d.ts +1 -1
- package/esm/browser/components/session-view.js +188 -7
- package/esm/browser/components/settings-choices.d.ts +9 -3
- package/esm/browser/components/settings-choices.js +17 -29
- package/esm/browser/components/settings-more.d.ts +7 -0
- package/esm/browser/components/settings-more.js +263 -0
- package/esm/browser/components/settings-parts.d.ts +8 -3
- package/esm/browser/components/settings-parts.js +35 -250
- package/esm/browser/components/settings-view.js +44 -16
- package/esm/browser/components/share-dialog.d.ts +2 -3
- package/esm/browser/components/share-dialog.js +6 -41
- package/esm/browser/components/share-friends.d.ts +18 -0
- package/esm/browser/components/share-friends.js +56 -0
- package/esm/browser/components/share-sheet.d.ts +15 -0
- package/esm/browser/components/share-sheet.js +79 -0
- package/esm/browser/components/side-lists.d.ts +16 -4
- package/esm/browser/components/side-lists.js +28 -12
- package/esm/browser/components/sign-in-accounts.d.ts +2 -1
- package/esm/browser/components/sign-in-accounts.js +59 -5
- package/esm/browser/components/sign-in-label.d.ts +5 -0
- package/esm/browser/components/sign-in-label.js +10 -0
- package/esm/browser/components/stop-times.js +1 -0
- package/esm/browser/components/surface-flyout.js +2 -0
- package/esm/browser/components/system-link-host.d.ts +2 -0
- package/esm/browser/components/system-link-host.js +17 -0
- package/esm/browser/components/tool-result.d.ts +3 -2
- package/esm/browser/components/tool-result.js +5 -3
- package/esm/browser/components/tool-view.d.ts +21 -3
- package/esm/browser/components/tool-view.js +103 -35
- package/esm/browser/components/unseen-drop.d.ts +12 -5
- package/esm/browser/components/unseen-drop.js +9 -8
- package/esm/browser/components/use-seen-chats.js +1 -1
- package/esm/browser/components/voice-services.d.ts +6 -0
- package/esm/browser/components/voice-services.js +160 -0
- package/esm/browser/components/voice-talk.d.ts +23 -6
- package/esm/browser/components/voice-talk.js +46 -11
- package/esm/browser/components/web-composer.d.ts +1 -1
- package/esm/browser/components/web-composer.js +2 -2
- package/esm/browser/components/web-dialog.js +2 -0
- package/esm/browser/components/workbench-view.d.ts +1 -1
- package/esm/browser/components/workbench-view.js +38 -5
- package/esm/browser/device/back-stack.d.ts +89 -11
- package/esm/browser/device/back-stack.js +200 -29
- package/esm/browser/device/code-scan.d.ts +23 -10
- package/esm/browser/device/code-scan.js +48 -43
- package/esm/browser/device/device-protocol.d.ts +1 -1
- package/esm/browser/device/device-protocol.js +1 -1
- package/esm/browser/device/edge-back.d.ts +17 -0
- package/esm/browser/device/edge-back.js +52 -0
- package/esm/browser/device/launch-screen.d.ts +1 -1
- package/esm/browser/device/launch-screen.js +2 -2
- package/esm/browser/device/own-gestures.d.ts +1 -1
- package/esm/browser/device/pull-down.js +3 -1
- package/esm/browser/device/row-swipe.js +3 -1
- package/esm/browser/device/screen-awake.d.ts +24 -0
- package/esm/browser/device/screen-awake.js +59 -0
- package/esm/browser/device/sheet-swipe.d.ts +1 -179
- package/esm/browser/device/sheet-swipe.js +3 -433
- package/esm/browser/device/swipe-finger.d.ts +31 -0
- package/esm/browser/device/swipe-finger.js +83 -0
- package/esm/browser/device/swipe-settle.d.ts +52 -0
- package/esm/browser/device/swipe-settle.js +170 -0
- package/esm/browser/device/swipe-util.d.ts +97 -0
- package/esm/browser/device/swipe-util.js +183 -0
- package/esm/browser/drafts/drafts-protocol.d.ts +58 -0
- package/esm/browser/drafts/drafts-protocol.js +75 -0
- package/esm/browser/drafts/drafts.d.ts +21 -0
- package/esm/browser/drafts/drafts.js +91 -0
- package/esm/browser/drafts/use-composer-draft.d.ts +20 -0
- package/esm/browser/drafts/use-composer-draft.js +108 -0
- package/esm/browser/extension/icons.js +14 -1
- package/esm/browser/extension/share-sheet-compat.d.ts +11 -0
- package/esm/browser/extension/share-sheet-compat.js +27 -0
- package/esm/browser/extension/web-api-chats.d.ts +49 -0
- package/esm/browser/extension/web-api-chats.js +2 -0
- package/esm/browser/extension/web-api-components.d.ts +74 -6
- package/esm/browser/extension/web-api-contributions.d.ts +139 -39
- package/esm/browser/extension/web-api-screen-share.d.ts +10 -0
- package/esm/browser/extension/web-api-screen-share.js +3 -0
- package/esm/browser/extension/web-api-services.d.ts +50 -0
- package/esm/browser/extension/web-api-services.js +2 -0
- package/esm/browser/extension/web-extension-api.d.ts +126 -63
- package/esm/browser/extension/web-extension-context.d.ts +9 -9
- package/esm/browser/extension/web-extension-context.js +84 -19
- package/esm/browser/extension/web-extension-protocol.d.ts +26 -3
- package/esm/browser/extension/web-extension-protocol.js +3 -0
- package/esm/browser/extension/web-extension-run.d.ts +5 -2
- package/esm/browser/extension/web-extension-run.js +13 -2
- package/esm/browser/extension/web-extensions-running.d.ts +93 -0
- package/esm/browser/extension/web-extensions-running.js +339 -0
- package/esm/browser/extension/web-extensions.d.ts +9 -82
- package/esm/browser/extension/web-extensions.js +22 -319
- package/esm/browser/extension/web-pages.js +1 -0
- package/esm/browser/extension/web-session-notices.js +6 -1
- package/esm/browser/extension/web-tasks.d.ts +8 -1
- package/esm/browser/extension/web-tasks.js +17 -3
- package/esm/browser/extension/web-view-util.d.ts +2 -2
- package/esm/browser/extension/web-view-util.js +7 -5
- package/esm/browser/files/files.d.ts +1 -0
- package/esm/browser/files/files.js +14 -3
- package/esm/browser/game/game-control.d.ts +118 -0
- package/esm/browser/game/game-control.js +341 -0
- package/esm/browser/game/game-host.d.ts +14 -2
- package/esm/browser/game/game-host.js +22 -5
- package/esm/browser/game/game-protocol.d.ts +15 -0
- package/esm/browser/game/game-runner.d.ts +3 -1
- package/esm/browser/game/game-runner.js +6 -0
- package/esm/browser/game/game-util.d.ts +3 -0
- package/esm/browser/game/game-util.js +3 -0
- package/esm/browser/game/game-view.d.ts +5 -2
- package/esm/browser/game/game-view.js +4 -4
- package/esm/browser/game/game3d-protocol.d.ts +5 -1
- package/esm/browser/game/game3d-runner.d.ts +3 -1
- package/esm/browser/game/game3d-runner.js +14 -0
- package/esm/browser/gateway/console-agents.d.ts +11 -0
- package/esm/browser/gateway/console-agents.js +128 -0
- package/esm/browser/gateway/console-extension.js +0 -1
- package/esm/browser/gateway/console-limits.d.ts +19 -0
- package/esm/browser/gateway/console-limits.js +164 -0
- package/esm/browser/gateway/console-parts.d.ts +29 -32
- package/esm/browser/gateway/console-parts.js +58 -218
- package/esm/browser/gateway/console-tenant.d.ts +2 -4
- package/esm/browser/gateway/console-tenant.js +118 -209
- package/esm/browser/gateway/console-trend.d.ts +11 -0
- package/esm/browser/gateway/console-trend.js +117 -0
- package/esm/browser/gateway/console-view.js +153 -88
- package/esm/browser/hooks.js +1 -3
- package/esm/browser/hosts.d.ts +2 -0
- package/esm/browser/hosts.js +12 -2
- package/esm/browser/i18n/locales.d.ts +280 -13
- package/esm/browser/i18n/messages-ja.js +292 -25
- package/esm/browser/i18n/messages-zh-tw.js +292 -25
- package/esm/browser/i18n/messages.d.ts +277 -10
- package/esm/browser/i18n/messages.js +585 -51
- package/esm/browser/index.d.ts +18 -0
- package/esm/browser/index.js +18 -0
- package/esm/browser/links/links-protocol.d.ts +10 -1
- package/esm/browser/links/links.d.ts +11 -2
- package/esm/browser/links/links.js +65 -7
- package/esm/browser/links/system-links.d.ts +21 -0
- package/esm/browser/links/system-links.js +54 -0
- package/esm/browser/markdown/hooks.d.ts +3 -1
- package/esm/browser/markdown/hooks.js +11 -3
- package/esm/browser/markdown/mermaid.d.ts +18 -4
- package/esm/browser/markdown/mermaid.js +117 -17
- package/esm/browser/notices/notices-protocol.d.ts +12 -0
- package/esm/browser/notices/notices.js +7 -4
- package/esm/browser/offline/device-values.d.ts +2 -0
- package/esm/browser/offline/device-values.js +6 -1
- package/esm/browser/screen/page-answers.d.ts +42 -0
- package/esm/browser/screen/page-answers.js +89 -0
- package/esm/browser/screen/screen-protocol.d.ts +185 -0
- package/esm/browser/screen/screen-protocol.js +60 -0
- package/esm/browser/screen/screen-scroll.d.ts +55 -0
- package/esm/browser/screen/screen-scroll.js +182 -0
- package/esm/browser/screen/screen.d.ts +53 -0
- package/esm/browser/screen/screen.js +292 -0
- package/esm/browser/screen/use-screen-part.d.ts +6 -0
- package/esm/browser/screen/use-screen-part.js +14 -0
- package/esm/browser/settings/navigation.d.ts +9 -21
- package/esm/browser/settings/navigation.js +11 -31
- package/esm/browser/settings/settings-protocol.d.ts +14 -1
- package/esm/browser/settings/settings-protocol.js +24 -2
- package/esm/browser/settings/settings.d.ts +7 -1
- package/esm/browser/settings/settings.js +31 -7
- package/esm/browser/share/shared-extensions.d.ts +29 -0
- package/esm/browser/share/shared-extensions.js +146 -0
- package/esm/browser/share/shared-link.d.ts +11 -0
- package/esm/browser/share/shared-link.js +38 -0
- package/esm/browser/share/shared-page.d.ts +5 -0
- package/esm/browser/share/shared-page.js +137 -0
- package/esm/browser/state/state-protocol.d.ts +14 -0
- package/esm/browser/state/state-protocol.js +18 -0
- package/esm/browser/state/state.d.ts +10 -2
- package/esm/browser/state/state.js +19 -3
- package/esm/browser/style/base.d.ts +1 -1
- package/esm/browser/style/base.js +12 -1
- package/esm/browser/style/chat-list.d.ts +2 -0
- package/esm/browser/style/chat-list.js +150 -0
- package/esm/browser/style/conversation-column.d.ts +2 -0
- package/esm/browser/style/conversation-column.js +250 -0
- package/esm/browser/style/conversation.d.ts +1 -1
- package/esm/browser/style/conversation.js +66 -12
- package/esm/browser/style/dialogs.d.ts +2 -0
- package/esm/browser/style/dialogs.js +162 -0
- package/esm/browser/style/layout.d.ts +2 -2
- package/esm/browser/style/layout.js +8 -540
- package/esm/browser/style/pages.d.ts +1 -1
- package/esm/browser/style/pages.js +172 -110
- package/esm/browser/style/phone.d.ts +1 -1
- package/esm/browser/style/phone.js +13 -3
- package/esm/browser/style/shared.d.ts +2 -0
- package/esm/browser/style/shared.js +24 -0
- package/esm/browser/style/shell.d.ts +1 -1
- package/esm/browser/style/shell.js +59 -0
- package/esm/browser/style/surfaces.d.ts +1 -1
- package/esm/browser/style/surfaces.js +38 -13
- package/esm/browser/style/tasks.d.ts +1 -1
- package/esm/browser/style/tasks.js +29 -10
- package/esm/browser/style/tints.d.ts +5 -4
- package/esm/browser/style/tints.js +9 -9
- package/esm/browser/style.js +8 -0
- package/esm/browser/util/desktop.d.ts +7 -1
- package/esm/browser/util/desktop.js +17 -0
- package/esm/browser/util/gallery.d.ts +24 -2
- package/esm/browser/util/gallery.js +82 -2
- package/esm/browser/util/image-copy.d.ts +16 -0
- package/esm/browser/util/image-copy.js +57 -0
- package/esm/browser/util/image-swipe.d.ts +42 -0
- package/esm/browser/util/image-swipe.js +66 -0
- package/esm/browser/util/message.d.ts +5 -0
- package/esm/browser/util/message.js +14 -0
- package/esm/browser/util/process.d.ts +37 -5
- package/esm/browser/util/process.js +81 -10
- package/esm/browser/util/share-link.d.ts +5 -0
- package/esm/browser/util/share-link.js +10 -0
- package/esm/browser/util/shell-words.d.ts +18 -0
- package/esm/browser/util/shell-words.js +397 -0
- package/esm/browser/util/spoken.d.ts +29 -0
- package/esm/browser/util/spoken.js +92 -0
- package/esm/browser/util/tool.d.ts +9 -0
- package/esm/browser/util/tool.js +71 -6
- package/esm/browser/util/transcript.d.ts +22 -0
- package/esm/browser/util/transcript.js +48 -0
- package/esm/browser/util/turn-end.d.ts +17 -0
- package/esm/browser/util/turn-end.js +164 -0
- package/esm/browser/util/voice.d.ts +5 -1
- package/esm/browser/util/voice.js +6 -1
- package/esm/browser/workbench-hosts.d.ts +36 -0
- package/esm/browser/workbench-hosts.js +120 -0
- package/esm/browser/workbench-lists.d.ts +33 -0
- package/esm/browser/workbench-lists.js +128 -0
- package/esm/browser/workbench-protocol.d.ts +31 -3
- package/esm/browser/workbench-services.d.ts +57 -0
- package/esm/browser/workbench-services.js +158 -0
- package/esm/browser/workbench-util.d.ts +9 -3
- package/esm/browser/workbench-util.js +24 -4
- package/esm/browser/workbench.d.ts +9 -89
- package/esm/browser/workbench.js +61 -344
- package/lib/browser/assistant/assistant-ask-book.d.ts +36 -0
- package/lib/browser/assistant/assistant-ask-book.js +100 -0
- package/lib/browser/assistant/assistant-chat-list.d.ts +4 -4
- package/lib/browser/assistant/assistant-chat-list.js +73 -3
- package/lib/browser/assistant/assistant-conversation.d.ts +111 -0
- package/lib/browser/assistant/assistant-conversation.js +355 -0
- package/lib/browser/assistant/assistant-export.js +11 -8
- package/lib/browser/assistant/assistant-extension.d.ts +3 -2
- package/lib/browser/assistant/assistant-extension.js +117 -9
- package/lib/browser/assistant/assistant-protocol.d.ts +17 -2
- package/lib/browser/assistant/assistant-role.d.ts +22 -4
- package/lib/browser/assistant/assistant-role.js +34 -9
- package/lib/browser/assistant/assistant-state.d.ts +5 -1
- package/lib/browser/assistant/assistant-state.js +11 -0
- package/lib/browser/assistant/assistant-task-source.d.ts +4 -0
- package/lib/browser/assistant/assistant-task-source.js +25 -4
- package/lib/browser/assistant/assistant-task-util.d.ts +27 -7
- package/lib/browser/assistant/assistant-task-util.js +84 -20
- package/lib/browser/assistant/assistant-tasks.d.ts +0 -7
- package/lib/browser/assistant/assistant-tasks.js +3 -5
- package/lib/browser/assistant/assistant-thread.d.ts +23 -0
- package/lib/browser/assistant/assistant-thread.js +148 -0
- package/lib/browser/assistant/assistant-view.js +76 -127
- package/lib/browser/assistant/assistant.d.ts +33 -105
- package/lib/browser/assistant/assistant.js +102 -354
- package/lib/browser/assistant/call-keeper.d.ts +143 -0
- package/lib/browser/assistant/call-keeper.js +295 -0
- package/lib/browser/assistant/call-screen.d.ts +40 -0
- package/lib/browser/assistant/call-screen.js +78 -0
- package/lib/browser/assistant/chat-task-source.d.ts +57 -0
- package/lib/browser/assistant/chat-task-source.js +86 -0
- package/lib/browser/assistant/read-aloud.d.ts +35 -0
- package/lib/browser/assistant/read-aloud.js +102 -0
- package/lib/browser/assistant/realtime-voice.d.ts +139 -0
- package/lib/browser/assistant/realtime-voice.js +483 -0
- package/lib/browser/assistant/task-views.d.ts +11 -9
- package/lib/browser/assistant/task-views.js +47 -24
- package/lib/browser/assistant/voice-call-bar.d.ts +68 -0
- package/lib/browser/assistant/voice-call-bar.js +362 -0
- package/lib/browser/assistant/voice-call.d.ts +208 -0
- package/lib/browser/assistant/voice-call.js +473 -0
- package/lib/browser/assistant/voice-reopen.d.ts +19 -0
- package/lib/browser/assistant/voice-reopen.js +58 -0
- package/lib/browser/chat/chat-shown.d.ts +79 -0
- package/lib/browser/chat/chat-shown.js +266 -0
- package/lib/browser/chat/chat-view.js +7 -9
- package/lib/browser/chat/chat.d.ts +4 -68
- package/lib/browser/chat/chat.js +3 -251
- package/lib/browser/chat/draft-model.d.ts +1 -1
- package/lib/browser/cloud/cloud-sign-in.d.ts +101 -0
- package/lib/browser/cloud/cloud-sign-in.js +244 -0
- package/lib/browser/cloud/device-page.d.ts +16 -0
- package/lib/browser/cloud/device-page.js +42 -0
- package/lib/browser/components/access-view.js +26 -2
- package/lib/browser/components/account-menu.js +3 -1
- package/lib/browser/components/app-contexts.d.ts +13 -0
- package/lib/browser/components/app-contexts.js +64 -0
- package/lib/browser/components/app-nav.d.ts +6 -2
- package/lib/browser/components/app-nav.js +15 -12
- package/lib/browser/components/app-shell-hooks.d.ts +11 -2
- package/lib/browser/components/app-shell-hooks.js +26 -5
- package/lib/browser/components/app-shell-state.d.ts +81 -0
- package/lib/browser/components/app-shell-state.js +507 -0
- package/lib/browser/components/app-view.js +202 -383
- package/lib/browser/components/asks-badge.d.ts +6 -2
- package/lib/browser/components/asks-badge.js +7 -3
- package/lib/browser/components/auth-pictures.d.ts +2 -2
- package/lib/browser/components/auth-pictures.js +13 -1
- package/lib/browser/components/auth-view.d.ts +4 -3
- package/lib/browser/components/auth-view.js +56 -9
- package/lib/browser/components/call-pill.d.ts +12 -0
- package/lib/browser/components/call-pill.js +55 -0
- package/lib/browser/components/chat-asks.d.ts +2 -0
- package/lib/browser/components/chat-asks.js +8 -0
- package/lib/browser/components/chat-busy.d.ts +33 -0
- package/lib/browser/components/chat-busy.js +52 -0
- package/lib/browser/components/chat-home-util.d.ts +113 -0
- package/lib/browser/components/chat-home-util.js +126 -0
- package/lib/browser/components/chat-home.d.ts +55 -0
- package/lib/browser/components/chat-home.js +164 -0
- package/lib/browser/components/chat-icon.d.ts +10 -2
- package/lib/browser/components/chat-icon.js +32 -6
- package/lib/browser/components/chat-list-hooks.d.ts +31 -0
- package/lib/browser/components/chat-list-hooks.js +120 -0
- package/lib/browser/components/chat-list-props.d.ts +55 -0
- package/lib/browser/components/chat-list-props.js +3 -0
- package/lib/browser/components/chat-list-row.d.ts +97 -0
- package/lib/browser/components/chat-list-row.js +247 -0
- package/lib/browser/components/chat-list-util.d.ts +198 -0
- package/lib/browser/components/chat-list-util.js +401 -0
- package/lib/browser/components/chat-list.d.ts +6 -190
- package/lib/browser/components/chat-list.js +354 -561
- package/lib/browser/components/chat-seen.js +1 -0
- package/lib/browser/components/cloud-sign-in-view.d.ts +62 -0
- package/lib/browser/components/cloud-sign-in-view.js +393 -0
- package/lib/browser/components/code-editor.js +2 -1
- package/lib/browser/components/composer-addon-util.d.ts +1 -1
- package/lib/browser/components/composer-addons.d.ts +1 -1
- package/lib/browser/components/composer-attachments.d.ts +12 -0
- package/lib/browser/components/composer-attachments.js +64 -0
- package/lib/browser/components/composer-box-hooks.d.ts +10 -0
- package/lib/browser/components/composer-box-hooks.js +178 -0
- package/lib/browser/components/composer-box-protocol.d.ts +109 -0
- package/lib/browser/components/composer-box-protocol.js +3 -0
- package/lib/browser/components/composer-box.d.ts +1 -95
- package/lib/browser/components/composer-box.js +56 -157
- package/lib/browser/components/composer-target.d.ts +22 -0
- package/lib/browser/components/composer-target.js +46 -0
- package/lib/browser/components/composer.d.ts +7 -1
- package/lib/browser/components/composer.js +15 -11
- package/lib/browser/components/connection-bar.js +22 -3
- package/lib/browser/components/context-menu.d.ts +11 -2
- package/lib/browser/components/context-menu.js +18 -3
- package/lib/browser/components/conversation-find.d.ts +28 -0
- package/lib/browser/components/conversation-find.js +188 -0
- package/lib/browser/components/conversation-scroll-hooks.js +3 -2
- package/lib/browser/components/conversation-scroll-util.d.ts +73 -0
- package/lib/browser/components/conversation-scroll-util.js +85 -1
- package/lib/browser/components/conversation-scroll.d.ts +3 -35
- package/lib/browser/components/conversation-scroll.js +34 -100
- package/lib/browser/components/conversation-view.d.ts +9 -0
- package/lib/browser/components/conversation-view.js +77 -0
- package/lib/browser/components/device-sign-in-page.d.ts +13 -0
- package/lib/browser/components/device-sign-in-page.js +110 -0
- package/lib/browser/components/diff-editor.js +2 -1
- package/lib/browser/components/discover-view.d.ts +3 -2
- package/lib/browser/components/discover-view.js +30 -25
- package/lib/browser/components/dismiss.js +2 -0
- package/lib/browser/components/earlier-messages.d.ts +2 -0
- package/lib/browser/components/earlier-messages.js +2 -1
- package/lib/browser/components/entry-holds.d.ts +23 -0
- package/lib/browser/components/entry-holds.js +86 -0
- package/lib/browser/components/environment-view.js +8 -8
- package/lib/browser/components/face.d.ts +1 -1
- package/lib/browser/components/fold-text.js +3 -1
- package/lib/browser/components/folder-picker.d.ts +7 -0
- package/lib/browser/components/folder-picker.js +88 -18
- package/lib/browser/components/fork-view.js +2 -4
- package/lib/browser/components/gallery.d.ts +1 -1
- package/lib/browser/components/gallery.js +58 -14
- package/lib/browser/components/held-talk.d.ts +6 -2
- package/lib/browser/components/held-talk.js +20 -2
- package/lib/browser/components/host-view.d.ts +9 -4
- package/lib/browser/components/host-view.js +56 -15
- package/lib/browser/components/image-menu.d.ts +12 -0
- package/lib/browser/components/image-menu.js +65 -0
- package/lib/browser/components/image-swipe.d.ts +51 -0
- package/lib/browser/components/image-swipe.js +143 -0
- package/lib/browser/components/image-viewer.d.ts +12 -115
- package/lib/browser/components/image-viewer.js +74 -370
- package/lib/browser/components/image-zoom.d.ts +113 -0
- package/lib/browser/components/image-zoom.js +359 -0
- package/lib/browser/components/kept-call-bar.d.ts +13 -0
- package/lib/browser/components/kept-call-bar.js +135 -0
- package/lib/browser/components/lightbox.d.ts +6 -2
- package/lib/browser/components/lightbox.js +6 -3
- package/lib/browser/components/link-dialog.d.ts +2 -1
- package/lib/browser/components/link-dialog.js +7 -1
- package/lib/browser/components/link.d.ts +4 -0
- package/lib/browser/components/link.js +12 -0
- package/lib/browser/components/list-rows.d.ts +3 -1
- package/lib/browser/components/list-rows.js +2 -1
- package/lib/browser/components/loading.d.ts +13 -0
- package/lib/browser/components/loading.js +55 -0
- package/lib/browser/components/markdown.js +7 -1
- package/lib/browser/components/media.d.ts +2 -0
- package/lib/browser/components/media.js +17 -1
- package/lib/browser/components/mermaid-view.js +13 -6
- package/lib/browser/components/message-actions.d.ts +1 -1
- package/lib/browser/components/message-actions.js +9 -0
- package/lib/browser/components/message-footer.d.ts +3 -1
- package/lib/browser/components/message-footer.js +2 -1
- package/lib/browser/components/message-images.d.ts +42 -0
- package/lib/browser/components/message-images.js +157 -0
- package/lib/browser/components/message-list.d.ts +4 -100
- package/lib/browser/components/message-list.js +23 -462
- package/lib/browser/components/message-menu.js +4 -0
- package/lib/browser/components/message-steps.d.ts +22 -0
- package/lib/browser/components/message-steps.js +226 -0
- package/lib/browser/components/message-user.d.ts +64 -0
- package/lib/browser/components/message-user.js +247 -0
- package/lib/browser/components/model-picker.d.ts +4 -2
- package/lib/browser/components/model-picker.js +16 -3
- package/lib/browser/components/moved-notice.d.ts +15 -0
- package/lib/browser/components/moved-notice.js +96 -0
- package/lib/browser/components/nav-places.d.ts +17 -11
- package/lib/browser/components/nav-places.js +20 -14
- package/lib/browser/components/notice-center.js +35 -0
- package/lib/browser/components/notice-face.js +7 -6
- package/lib/browser/components/phone-shell.d.ts +5 -4
- package/lib/browser/components/phone-shell.js +59 -67
- package/lib/browser/components/plus-menu.d.ts +1 -1
- package/lib/browser/components/relay-services.d.ts +6 -1
- package/lib/browser/components/relay-services.js +107 -0
- package/lib/browser/components/relay-view.js +2 -0
- package/lib/browser/components/remote-hosts.d.ts +10 -0
- package/lib/browser/components/remote-hosts.js +8 -6
- package/lib/browser/components/remote-prompts.js +2 -0
- package/lib/browser/components/scan-screen.d.ts +4 -2
- package/lib/browser/components/scan-screen.js +54 -20
- package/lib/browser/components/screen-navigator-util.d.ts +29 -0
- package/lib/browser/components/screen-navigator-util.js +36 -0
- package/lib/browser/components/screen-navigator.d.ts +31 -0
- package/lib/browser/components/screen-navigator.js +83 -0
- package/lib/browser/components/search-page.js +3 -2
- package/lib/browser/components/secret-peek.d.ts +4 -0
- package/lib/browser/components/secret-peek.js +55 -0
- package/lib/browser/components/secret-text.d.ts +42 -0
- package/lib/browser/components/secret-text.js +118 -0
- package/lib/browser/components/session-settings.d.ts +1 -1
- package/lib/browser/components/session-view.js +188 -7
- package/lib/browser/components/settings-choices.d.ts +10 -4
- package/lib/browser/components/settings-choices.js +16 -28
- package/lib/browser/components/settings-more.d.ts +8 -0
- package/lib/browser/components/settings-more.js +299 -0
- package/lib/browser/components/settings-parts.d.ts +8 -3
- package/lib/browser/components/settings-parts.js +31 -246
- package/lib/browser/components/settings-view.js +44 -16
- package/lib/browser/components/share-dialog.d.ts +2 -3
- package/lib/browser/components/share-dialog.js +5 -40
- package/lib/browser/components/share-friends.d.ts +19 -0
- package/lib/browser/components/share-friends.js +93 -0
- package/lib/browser/components/share-sheet.d.ts +16 -0
- package/lib/browser/components/share-sheet.js +115 -0
- package/lib/browser/components/side-lists.d.ts +16 -4
- package/lib/browser/components/side-lists.js +28 -12
- package/lib/browser/components/sign-in-accounts.d.ts +2 -1
- package/lib/browser/components/sign-in-accounts.js +59 -5
- package/lib/browser/components/sign-in-label.d.ts +6 -0
- package/lib/browser/components/sign-in-label.js +13 -0
- package/lib/browser/components/stop-times.js +1 -0
- package/lib/browser/components/surface-flyout.js +2 -0
- package/lib/browser/components/system-link-host.d.ts +3 -0
- package/lib/browser/components/system-link-host.js +53 -0
- package/lib/browser/components/tool-result.d.ts +3 -2
- package/lib/browser/components/tool-result.js +5 -3
- package/lib/browser/components/tool-view.d.ts +21 -3
- package/lib/browser/components/tool-view.js +104 -36
- package/lib/browser/components/unseen-drop.d.ts +12 -5
- package/lib/browser/components/unseen-drop.js +9 -8
- package/lib/browser/components/use-seen-chats.js +2 -2
- package/lib/browser/components/voice-services.d.ts +7 -0
- package/lib/browser/components/voice-services.js +196 -0
- package/lib/browser/components/voice-talk.d.ts +23 -6
- package/lib/browser/components/voice-talk.js +45 -10
- package/lib/browser/components/web-composer.d.ts +1 -1
- package/lib/browser/components/web-composer.js +2 -2
- package/lib/browser/components/web-dialog.js +2 -0
- package/lib/browser/components/workbench-view.d.ts +1 -1
- package/lib/browser/components/workbench-view.js +38 -5
- package/lib/browser/device/back-stack.d.ts +89 -11
- package/lib/browser/device/back-stack.js +205 -31
- package/lib/browser/device/code-scan.d.ts +23 -10
- package/lib/browser/device/code-scan.js +47 -42
- package/lib/browser/device/device-protocol.d.ts +1 -1
- package/lib/browser/device/device-protocol.js +1 -1
- package/lib/browser/device/edge-back.d.ts +18 -0
- package/lib/browser/device/edge-back.js +89 -0
- package/lib/browser/device/launch-screen.d.ts +1 -1
- package/lib/browser/device/launch-screen.js +2 -2
- package/lib/browser/device/own-gestures.d.ts +1 -1
- package/lib/browser/device/pull-down.js +8 -6
- package/lib/browser/device/row-swipe.js +11 -9
- package/lib/browser/device/screen-awake.d.ts +25 -0
- package/lib/browser/device/screen-awake.js +63 -0
- package/lib/browser/device/sheet-swipe.d.ts +1 -179
- package/lib/browser/device/sheet-swipe.js +16 -452
- package/lib/browser/device/swipe-finger.d.ts +32 -0
- package/lib/browser/device/swipe-finger.js +87 -0
- package/lib/browser/device/swipe-settle.d.ts +53 -0
- package/lib/browser/device/swipe-settle.js +176 -0
- package/lib/browser/device/swipe-util.d.ts +98 -0
- package/lib/browser/device/swipe-util.js +187 -0
- package/lib/browser/drafts/drafts-protocol.d.ts +59 -0
- package/lib/browser/drafts/drafts-protocol.js +78 -0
- package/lib/browser/drafts/drafts.d.ts +22 -0
- package/lib/browser/drafts/drafts.js +94 -0
- package/lib/browser/drafts/use-composer-draft.d.ts +21 -0
- package/lib/browser/drafts/use-composer-draft.js +146 -0
- package/lib/browser/extension/icons.js +13 -0
- package/lib/browser/extension/share-sheet-compat.d.ts +12 -0
- package/lib/browser/extension/share-sheet-compat.js +30 -0
- package/lib/browser/extension/web-api-chats.d.ts +50 -0
- package/lib/browser/extension/web-api-chats.js +3 -0
- package/lib/browser/extension/web-api-components.d.ts +74 -6
- package/lib/browser/extension/web-api-contributions.d.ts +139 -39
- package/lib/browser/extension/web-api-screen-share.d.ts +11 -0
- package/lib/browser/extension/web-api-screen-share.js +6 -0
- package/lib/browser/extension/web-api-services.d.ts +51 -0
- package/lib/browser/extension/web-api-services.js +3 -0
- package/lib/browser/extension/web-extension-api.d.ts +126 -63
- package/lib/browser/extension/web-extension-context.d.ts +9 -9
- package/lib/browser/extension/web-extension-context.js +86 -21
- package/lib/browser/extension/web-extension-protocol.d.ts +26 -3
- package/lib/browser/extension/web-extension-protocol.js +3 -0
- package/lib/browser/extension/web-extension-run.d.ts +5 -2
- package/lib/browser/extension/web-extension-run.js +13 -2
- package/lib/browser/extension/web-extensions-running.d.ts +94 -0
- package/lib/browser/extension/web-extensions-running.js +343 -0
- package/lib/browser/extension/web-extensions.d.ts +9 -82
- package/lib/browser/extension/web-extensions.js +19 -316
- package/lib/browser/extension/web-pages.js +1 -0
- package/lib/browser/extension/web-session-notices.js +8 -3
- package/lib/browser/extension/web-tasks.d.ts +8 -1
- package/lib/browser/extension/web-tasks.js +17 -3
- package/lib/browser/extension/web-view-util.d.ts +2 -2
- package/lib/browser/extension/web-view-util.js +7 -5
- package/lib/browser/files/files.d.ts +1 -0
- package/lib/browser/files/files.js +14 -3
- package/lib/browser/game/game-control.d.ts +119 -0
- package/lib/browser/game/game-control.js +345 -0
- package/lib/browser/game/game-host.d.ts +14 -2
- package/lib/browser/game/game-host.js +22 -5
- package/lib/browser/game/game-protocol.d.ts +15 -0
- package/lib/browser/game/game-runner.d.ts +3 -1
- package/lib/browser/game/game-runner.js +6 -0
- package/lib/browser/game/game-util.d.ts +3 -0
- package/lib/browser/game/game-util.js +3 -0
- package/lib/browser/game/game-view.d.ts +5 -2
- package/lib/browser/game/game-view.js +4 -4
- package/lib/browser/game/game3d-protocol.d.ts +5 -1
- package/lib/browser/game/game3d-runner.d.ts +3 -1
- package/lib/browser/game/game3d-runner.js +14 -0
- package/lib/browser/gateway/console-agents.d.ts +12 -0
- package/lib/browser/gateway/console-agents.js +165 -0
- package/lib/browser/gateway/console-extension.js +0 -1
- package/lib/browser/gateway/console-limits.d.ts +20 -0
- package/lib/browser/gateway/console-limits.js +200 -0
- package/lib/browser/gateway/console-parts.d.ts +29 -32
- package/lib/browser/gateway/console-parts.js +63 -223
- package/lib/browser/gateway/console-tenant.d.ts +2 -4
- package/lib/browser/gateway/console-tenant.js +116 -208
- package/lib/browser/gateway/console-trend.d.ts +12 -0
- package/lib/browser/gateway/console-trend.js +153 -0
- package/lib/browser/gateway/console-view.js +151 -86
- package/lib/browser/hooks.js +1 -3
- package/lib/browser/hosts.d.ts +2 -0
- package/lib/browser/hosts.js +12 -2
- package/lib/browser/i18n/locales.d.ts +280 -13
- package/lib/browser/i18n/messages-ja.js +292 -25
- package/lib/browser/i18n/messages-zh-tw.js +292 -25
- package/lib/browser/i18n/messages.d.ts +277 -10
- package/lib/browser/i18n/messages.js +585 -51
- package/lib/browser/index.d.ts +18 -0
- package/lib/browser/index.js +18 -0
- package/lib/browser/links/links-protocol.d.ts +10 -1
- package/lib/browser/links/links.d.ts +11 -2
- package/lib/browser/links/links.js +65 -7
- package/lib/browser/links/system-links.d.ts +22 -0
- package/lib/browser/links/system-links.js +58 -0
- package/lib/browser/markdown/hooks.d.ts +3 -1
- package/lib/browser/markdown/hooks.js +12 -3
- package/lib/browser/markdown/mermaid.d.ts +18 -4
- package/lib/browser/markdown/mermaid.js +117 -17
- package/lib/browser/notices/notices-protocol.d.ts +12 -0
- package/lib/browser/notices/notices.js +7 -4
- package/lib/browser/offline/device-values.d.ts +2 -0
- package/lib/browser/offline/device-values.js +6 -1
- package/lib/browser/screen/page-answers.d.ts +43 -0
- package/lib/browser/screen/page-answers.js +93 -0
- package/lib/browser/screen/screen-protocol.d.ts +186 -0
- package/lib/browser/screen/screen-protocol.js +63 -0
- package/lib/browser/screen/screen-scroll.d.ts +56 -0
- package/lib/browser/screen/screen-scroll.js +185 -0
- package/lib/browser/screen/screen.d.ts +54 -0
- package/lib/browser/screen/screen.js +295 -0
- package/lib/browser/screen/use-screen-part.d.ts +7 -0
- package/lib/browser/screen/use-screen-part.js +50 -0
- package/lib/browser/settings/navigation.d.ts +9 -21
- package/lib/browser/settings/navigation.js +11 -31
- package/lib/browser/settings/settings-protocol.d.ts +14 -1
- package/lib/browser/settings/settings-protocol.js +24 -2
- package/lib/browser/settings/settings.d.ts +7 -1
- package/lib/browser/settings/settings.js +31 -7
- package/lib/browser/share/shared-extensions.d.ts +30 -0
- package/lib/browser/share/shared-extensions.js +182 -0
- package/lib/browser/share/shared-link.d.ts +12 -0
- package/lib/browser/share/shared-link.js +41 -0
- package/lib/browser/share/shared-page.d.ts +6 -0
- package/lib/browser/share/shared-page.js +173 -0
- package/lib/browser/state/state-protocol.d.ts +14 -0
- package/lib/browser/state/state-protocol.js +20 -1
- package/lib/browser/state/state.d.ts +10 -2
- package/lib/browser/state/state.js +18 -2
- package/lib/browser/style/base.d.ts +1 -1
- package/lib/browser/style/base.js +12 -1
- package/lib/browser/style/chat-list.d.ts +3 -0
- package/lib/browser/style/chat-list.js +153 -0
- package/lib/browser/style/conversation-column.d.ts +3 -0
- package/lib/browser/style/conversation-column.js +253 -0
- package/lib/browser/style/conversation.d.ts +1 -1
- package/lib/browser/style/conversation.js +66 -12
- package/lib/browser/style/dialogs.d.ts +3 -0
- package/lib/browser/style/dialogs.js +165 -0
- package/lib/browser/style/layout.d.ts +2 -2
- package/lib/browser/style/layout.js +8 -540
- package/lib/browser/style/pages.d.ts +1 -1
- package/lib/browser/style/pages.js +172 -110
- package/lib/browser/style/phone.d.ts +1 -1
- package/lib/browser/style/phone.js +14 -4
- package/lib/browser/style/shared.d.ts +3 -0
- package/lib/browser/style/shared.js +27 -0
- package/lib/browser/style/shell.d.ts +1 -1
- package/lib/browser/style/shell.js +59 -0
- package/lib/browser/style/surfaces.d.ts +1 -1
- package/lib/browser/style/surfaces.js +38 -13
- package/lib/browser/style/tasks.d.ts +1 -1
- package/lib/browser/style/tasks.js +29 -10
- package/lib/browser/style/tints.d.ts +5 -4
- package/lib/browser/style/tints.js +9 -9
- package/lib/browser/style.js +8 -0
- package/lib/browser/util/desktop.d.ts +7 -1
- package/lib/browser/util/desktop.js +17 -0
- package/lib/browser/util/gallery.d.ts +24 -2
- package/lib/browser/util/gallery.js +82 -2
- package/lib/browser/util/image-copy.d.ts +17 -0
- package/lib/browser/util/image-copy.js +60 -0
- package/lib/browser/util/image-swipe.d.ts +43 -0
- package/lib/browser/util/image-swipe.js +69 -0
- package/lib/browser/util/message.d.ts +5 -0
- package/lib/browser/util/message.js +14 -0
- package/lib/browser/util/process.d.ts +37 -5
- package/lib/browser/util/process.js +80 -9
- package/lib/browser/util/share-link.d.ts +5 -0
- package/lib/browser/util/share-link.js +10 -0
- package/lib/browser/util/shell-words.d.ts +19 -0
- package/lib/browser/util/shell-words.js +400 -0
- package/lib/browser/util/spoken.d.ts +30 -0
- package/lib/browser/util/spoken.js +95 -0
- package/lib/browser/util/tool.d.ts +9 -0
- package/lib/browser/util/tool.js +71 -6
- package/lib/browser/util/transcript.d.ts +23 -0
- package/lib/browser/util/transcript.js +51 -0
- package/lib/browser/util/turn-end.d.ts +18 -0
- package/lib/browser/util/turn-end.js +167 -0
- package/lib/browser/util/voice.d.ts +5 -1
- package/lib/browser/util/voice.js +6 -1
- package/lib/browser/workbench-hosts.d.ts +37 -0
- package/lib/browser/workbench-hosts.js +124 -0
- package/lib/browser/workbench-lists.d.ts +34 -0
- package/lib/browser/workbench-lists.js +132 -0
- package/lib/browser/workbench-protocol.d.ts +31 -3
- package/lib/browser/workbench-services.d.ts +58 -0
- package/lib/browser/workbench-services.js +162 -0
- package/lib/browser/workbench-util.d.ts +9 -3
- package/lib/browser/workbench-util.js +24 -4
- package/lib/browser/workbench.d.ts +9 -89
- package/lib/browser/workbench.js +58 -341
- package/package.json +7 -7
- package/esm/browser/components/list-skeleton.d.ts +0 -10
- package/esm/browser/components/list-skeleton.js +0 -31
- package/lib/browser/components/list-skeleton.d.ts +0 -11
- package/lib/browser/components/list-skeleton.js +0 -68
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WorkbenchHosts = void 0;
|
|
4
|
+
const drafts_protocol_1 = require("./drafts/drafts-protocol");
|
|
5
|
+
const hosts_1 = require("./hosts");
|
|
6
|
+
const device_values_1 = require("./offline/device-values");
|
|
7
|
+
const state_protocol_1 = require("./state/state-protocol");
|
|
8
|
+
const workbench_lists_1 = require("./workbench-lists");
|
|
9
|
+
const workbench_util_1 = require("./workbench-util");
|
|
10
|
+
/** The computers this device signs in to: which is in use, and what is kept of each. */
|
|
11
|
+
class WorkbenchHosts extends workbench_lists_1.WorkbenchLists {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments);
|
|
14
|
+
this.list = workbench_util_1.WorkbenchUtil.readHosts((0, workbench_util_1.storage)());
|
|
15
|
+
/** What was kept of the computers dropped, being taken off the device. */
|
|
16
|
+
this.forgetting = Promise.resolve();
|
|
17
|
+
}
|
|
18
|
+
async signIn(given) {
|
|
19
|
+
const credential = typeof given === 'string' ? workbench_util_1.WorkbenchUtil.credential(given.trim()) : given;
|
|
20
|
+
const id = workbench_util_1.WorkbenchUtil.serverOf(credential, (0, workbench_util_1.pageHost)());
|
|
21
|
+
if (this.current.status === 'signed-out' || id === this.current.host) {
|
|
22
|
+
this.keepHosts(hosts_1.HostUtil.use(this.list, id, credential, Date.now()));
|
|
23
|
+
await this.connectWith(credential);
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
// Another computer while one is in use: tried first, so that a wrong or old code leaves the one in use.
|
|
27
|
+
const server = await this.probe(credential);
|
|
28
|
+
this.keepHosts(hosts_1.HostUtil.use(this.list, id, credential, Date.now(), { user: server.user, host: server.host }));
|
|
29
|
+
this.load(id);
|
|
30
|
+
}
|
|
31
|
+
switchTo(hostId) {
|
|
32
|
+
const host = this.list.hosts.find(one => one.id === hostId);
|
|
33
|
+
if (!host || (hostId === this.current.host && this.current.status !== 'signed-out')) {
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
this.keepHosts(hosts_1.HostUtil.select(this.list, hostId, Date.now()));
|
|
37
|
+
if (this.current.status === 'signed-out') {
|
|
38
|
+
// Nothing of another computer is shown yet: signed in to in place.
|
|
39
|
+
void this.connectWith(host.credential);
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
this.load(hostId);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
forget(hostId) {
|
|
46
|
+
const wasCurrent = hostId === this.current.host;
|
|
47
|
+
this.drop(hostId);
|
|
48
|
+
if (!wasCurrent) {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
const next = hosts_1.HostUtil.latest(this.list);
|
|
52
|
+
if (next) {
|
|
53
|
+
this.keepHosts(hosts_1.HostUtil.select(this.list, next.id, Date.now()));
|
|
54
|
+
this.load(next.id);
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
this.signOut();
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
rename(hostId, name) {
|
|
61
|
+
this.keepHosts(hosts_1.HostUtil.rename(this.list, hostId, name));
|
|
62
|
+
}
|
|
63
|
+
/** Whether a computer answers to the credential, and who it is; the connection is closed after. */
|
|
64
|
+
async probe(credential) {
|
|
65
|
+
const { connection, refused } = this.open(credential);
|
|
66
|
+
let timer;
|
|
67
|
+
try {
|
|
68
|
+
const late = new Promise((_, reject) => {
|
|
69
|
+
timer = setTimeout(() => reject(new workbench_util_1.WorkbenchError('unreachable')), workbench_util_1.PROBE_MS);
|
|
70
|
+
});
|
|
71
|
+
await Promise.race([connection.connect(), late]);
|
|
72
|
+
return await Promise.race([connection.server.getServerInfo(), late]);
|
|
73
|
+
}
|
|
74
|
+
catch (error) {
|
|
75
|
+
throw error instanceof workbench_util_1.WorkbenchError ? error : new workbench_util_1.WorkbenchError((await refused()) ? 'refused' : 'unreachable');
|
|
76
|
+
}
|
|
77
|
+
finally {
|
|
78
|
+
clearTimeout(timer);
|
|
79
|
+
connection.close();
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Everything the page shows is of one computer, its web extensions too: it loads again for another,
|
|
84
|
+
* after a moment that shows which (`switching`). What it kept of that one shows at once.
|
|
85
|
+
*/
|
|
86
|
+
load(hostId) {
|
|
87
|
+
this.update({ switching: hostId });
|
|
88
|
+
setTimeout(() => this.reloadSoon(), workbench_util_1.SWITCH_MS);
|
|
89
|
+
}
|
|
90
|
+
reload() {
|
|
91
|
+
location.reload();
|
|
92
|
+
}
|
|
93
|
+
/** A host off this device, with what the page kept of it. */
|
|
94
|
+
drop(hostId) {
|
|
95
|
+
this.keepHosts(hosts_1.HostUtil.remove(this.list, hostId));
|
|
96
|
+
const kept = (0, workbench_util_1.storage)();
|
|
97
|
+
kept === null || kept === void 0 ? void 0 : kept.removeItem(workbench_util_1.WorkbenchUtil.listsKey(hostId));
|
|
98
|
+
kept === null || kept === void 0 ? void 0 : kept.removeItem(state_protocol_1.StateUtil.localKey(drafts_protocol_1.DraftsUtil.spec(hostId).key, 'device', hostId));
|
|
99
|
+
if (kept) {
|
|
100
|
+
state_protocol_1.StateUtil.forgetHost(kept, hostId);
|
|
101
|
+
}
|
|
102
|
+
this.forgetting = Promise.all([this.forgetting, device_values_1.OfflineKeys.forget((0, device_values_1.deviceValues)(), hostId)]);
|
|
103
|
+
if (this.listsOf === hostId) {
|
|
104
|
+
this.listsOf = undefined;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
/** Loads the page again once what was kept of the computers dropped is off the device: a load aborts what IndexedDB has not written. */
|
|
108
|
+
reloadSoon() {
|
|
109
|
+
void this.forgetting.finally(() => this.reload());
|
|
110
|
+
}
|
|
111
|
+
keepHosts(list) {
|
|
112
|
+
var _a;
|
|
113
|
+
this.list = list;
|
|
114
|
+
try {
|
|
115
|
+
(_a = (0, workbench_util_1.storage)()) === null || _a === void 0 ? void 0 : _a.setItem(hosts_1.HostUtil.KEY, JSON.stringify(list));
|
|
116
|
+
}
|
|
117
|
+
catch (_b) {
|
|
118
|
+
// Full: kept for this page.
|
|
119
|
+
}
|
|
120
|
+
this.update({ hosts: list.hosts, host: list.current });
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
exports.WorkbenchHosts = WorkbenchHosts;
|
|
124
|
+
//# sourceMappingURL=workbench-hosts.js.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { SessionStore, type SessionStoreOptions, type TaConnection } from '@celljs/ta-client';
|
|
2
|
+
import type { TaSessionInfo } from '@celljs/ta-protocol';
|
|
3
|
+
import type { WorkbenchState } from './workbench-protocol';
|
|
4
|
+
import { WorkbenchServices } from './workbench-services';
|
|
5
|
+
/** The lists of the sessions of the computer, open, saved and archived, read and kept on the device. */
|
|
6
|
+
export declare abstract class WorkbenchLists extends WorkbenchServices {
|
|
7
|
+
protected abstract current: WorkbenchState;
|
|
8
|
+
protected refreshing?: Promise<void>;
|
|
9
|
+
protected refreshAgain?: Promise<void>;
|
|
10
|
+
/** Settings.chatArchiveDays: the saved conversations older are read only by `readArchived`. */
|
|
11
|
+
protected archiveDays: number;
|
|
12
|
+
/** The read of the archive under way, and from when it was read (WorkbenchUtil.archiveSince). */
|
|
13
|
+
protected archiving?: Promise<void>;
|
|
14
|
+
protected archivedSince?: number;
|
|
15
|
+
/** Counts the lists of open sessions the server told: a read of the lists begun before one does not undo it. */
|
|
16
|
+
protected pushes: number;
|
|
17
|
+
listOpened(info: TaSessionInfo): void;
|
|
18
|
+
/**
|
|
19
|
+
* One read of the lists at a time: asked again meanwhile, one more follows it for all who asked, so that
|
|
20
|
+
* reads on a slow network do not pile up.
|
|
21
|
+
*/
|
|
22
|
+
refresh(): Promise<void>;
|
|
23
|
+
protected readLists(): Promise<void>;
|
|
24
|
+
setArchiveDays(days: number): void;
|
|
25
|
+
readArchived(): Promise<void>;
|
|
26
|
+
createStore(sessionId: string, options?: SessionStoreOptions): SessionStore;
|
|
27
|
+
/** The open sessions from now on as they change, on each connection; a Ta service of before has its lists read again every few seconds. */
|
|
28
|
+
protected watchSessions(connection: TaConnection): Promise<void>;
|
|
29
|
+
/** The open sessions as the server told them; one that closed is among the saved ones now, which are read again. */
|
|
30
|
+
protected takeSessions(sessions: TaSessionInfo[]): void;
|
|
31
|
+
protected keepLists(of: string): void;
|
|
32
|
+
protected abstract update(change: Partial<WorkbenchState>): void;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=workbench-lists.d.ts.map
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WorkbenchLists = void 0;
|
|
4
|
+
const ta_client_1 = require("@celljs/ta-client");
|
|
5
|
+
const settings_protocol_1 = require("./settings/settings-protocol");
|
|
6
|
+
const workbench_services_1 = require("./workbench-services");
|
|
7
|
+
const workbench_util_1 = require("./workbench-util");
|
|
8
|
+
/** The lists of the sessions of the computer, open, saved and archived, read and kept on the device. */
|
|
9
|
+
class WorkbenchLists extends workbench_services_1.WorkbenchServices {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
/** Settings.chatArchiveDays: the saved conversations older are read only by `readArchived`. */
|
|
13
|
+
this.archiveDays = settings_protocol_1.DEFAULT_SETTINGS.chatArchiveDays;
|
|
14
|
+
/** Counts the lists of open sessions the server told: a read of the lists begun before one does not undo it. */
|
|
15
|
+
this.pushes = 0;
|
|
16
|
+
}
|
|
17
|
+
listOpened(info) {
|
|
18
|
+
if (this.current.sessions.some(session => session.sessionId === info.sessionId)) {
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
// Newer than a list read before it, as one the server told.
|
|
22
|
+
this.pushes++;
|
|
23
|
+
this.update({ sessions: workbench_util_1.WorkbenchUtil.sorted([...this.current.sessions, info]) });
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* One read of the lists at a time: asked again meanwhile, one more follows it for all who asked, so that
|
|
27
|
+
* reads on a slow network do not pile up.
|
|
28
|
+
*/
|
|
29
|
+
refresh() {
|
|
30
|
+
var _a;
|
|
31
|
+
if (!this.refreshing) {
|
|
32
|
+
this.refreshing = this.readLists().finally(() => {
|
|
33
|
+
this.refreshing = undefined;
|
|
34
|
+
});
|
|
35
|
+
return this.refreshing;
|
|
36
|
+
}
|
|
37
|
+
(_a = this.refreshAgain) !== null && _a !== void 0 ? _a : (this.refreshAgain = this.refreshing
|
|
38
|
+
.catch(() => undefined)
|
|
39
|
+
.then(() => {
|
|
40
|
+
this.refreshAgain = undefined;
|
|
41
|
+
return this.refresh();
|
|
42
|
+
}));
|
|
43
|
+
return this.refreshAgain;
|
|
44
|
+
}
|
|
45
|
+
async readLists() {
|
|
46
|
+
const pushes = this.pushes;
|
|
47
|
+
// A ta serve of before has no saved sessions to list: its list stays the open ones. The default
|
|
48
|
+
// directory comes along, as another device may have changed it. The archived are left out: a list
|
|
49
|
+
// read every few seconds stays as small as the conversations of the last days, however many there were.
|
|
50
|
+
const since = workbench_util_1.WorkbenchUtil.daysAgo(Date.now(), this.archiveDays);
|
|
51
|
+
const [sessions, saved, server] = await Promise.all([
|
|
52
|
+
this.server.listSessions(),
|
|
53
|
+
this.server.listSavedSessions(since === undefined ? undefined : { since }).catch(() => []),
|
|
54
|
+
this.server.getServerInfo().catch(() => this.current.server),
|
|
55
|
+
]);
|
|
56
|
+
// A ta serve of before lists them all.
|
|
57
|
+
const recent = since === undefined ? saved : saved.filter(session => session.updatedAt >= since);
|
|
58
|
+
// Read every few seconds and mostly the same: what shows them is not drawn again for nothing. A list
|
|
59
|
+
// the server told meanwhile is newer than this one, read before it.
|
|
60
|
+
this.update({
|
|
61
|
+
sessions: pushes === this.pushes ? workbench_util_1.WorkbenchUtil.same(this.current.sessions, workbench_util_1.WorkbenchUtil.sorted(sessions)) : this.current.sessions,
|
|
62
|
+
saved: workbench_util_1.WorkbenchUtil.same(this.current.saved, recent),
|
|
63
|
+
server: workbench_util_1.WorkbenchUtil.same(this.current.server, server),
|
|
64
|
+
});
|
|
65
|
+
// A day later, those that just grew old are in the archive read, not lost between the two lists.
|
|
66
|
+
if (this.current.archived && this.archivedSince !== since) {
|
|
67
|
+
void this.readArchived().catch(() => undefined);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
setArchiveDays(days) {
|
|
71
|
+
if (days === this.archiveDays) {
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
this.archiveDays = days;
|
|
75
|
+
if (this.current.status === 'online') {
|
|
76
|
+
void this.refresh().catch(() => undefined);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
readArchived() {
|
|
80
|
+
var _a;
|
|
81
|
+
(_a = this.archiving) !== null && _a !== void 0 ? _a : (this.archiving = (async () => {
|
|
82
|
+
const since = workbench_util_1.WorkbenchUtil.daysAgo(Date.now(), this.archiveDays);
|
|
83
|
+
const archived = since === undefined ? [] : await this.server.listSavedSessions({ before: since });
|
|
84
|
+
this.archivedSince = since;
|
|
85
|
+
const old = since === undefined ? [] : archived.filter(session => session.updatedAt < since);
|
|
86
|
+
this.update({ archived: workbench_util_1.WorkbenchUtil.same(this.current.archived, old) });
|
|
87
|
+
})().finally(() => {
|
|
88
|
+
this.archiving = undefined;
|
|
89
|
+
}));
|
|
90
|
+
return this.archiving;
|
|
91
|
+
}
|
|
92
|
+
createStore(sessionId, options) {
|
|
93
|
+
return new ta_client_1.SessionStore(this.calls.link, sessionId, { pageBytes: workbench_util_1.PAGE_BYTES, ...options });
|
|
94
|
+
}
|
|
95
|
+
/** The open sessions from now on as they change, on each connection; a Ta service of before has its lists read again every few seconds. */
|
|
96
|
+
async watchSessions(connection) {
|
|
97
|
+
try {
|
|
98
|
+
const sessions = await connection.server.watchSessions();
|
|
99
|
+
if (this.connection === connection) {
|
|
100
|
+
this.takeSessions(sessions);
|
|
101
|
+
this.update({ sessionsPushed: true });
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
catch (error) {
|
|
105
|
+
if (this.connection === connection && ta_client_1.TaRemoteError.isMethodNotFound(error)) {
|
|
106
|
+
this.update({ sessionsPushed: false });
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
/** The open sessions as the server told them; one that closed is among the saved ones now, which are read again. */
|
|
111
|
+
takeSessions(sessions) {
|
|
112
|
+
this.pushes++;
|
|
113
|
+
const closed = this.current.sessions.some(session => !sessions.some(other => other.sessionId === session.sessionId));
|
|
114
|
+
this.update({ sessions: workbench_util_1.WorkbenchUtil.same(this.current.sessions, workbench_util_1.WorkbenchUtil.sorted(sessions)) });
|
|
115
|
+
if (closed) {
|
|
116
|
+
void this.refresh().catch(() => undefined);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
keepLists(of) {
|
|
120
|
+
var _a;
|
|
121
|
+
const { server, sessions, saved } = this.current;
|
|
122
|
+
const kept = { of, server, sessions, saved };
|
|
123
|
+
try {
|
|
124
|
+
(_a = (0, workbench_util_1.storage)()) === null || _a === void 0 ? void 0 : _a.setItem(workbench_util_1.WorkbenchUtil.listsKey(of), JSON.stringify(kept));
|
|
125
|
+
}
|
|
126
|
+
catch (_b) {
|
|
127
|
+
// Full: the next start waits for the server, as it would without.
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
exports.WorkbenchLists = WorkbenchLists;
|
|
132
|
+
//# sourceMappingURL=workbench-lists.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SessionStore, SessionStoreOptions } from '@celljs/ta-client';
|
|
2
|
-
import type { TaAccessServer, TaAuthEvent, TaAuthServer, TaGatewayServer, TaPackageServer, TaRelayServer, TaRemoteEvent, TaRemoteServer, TaRoomEvent, TaRoomServer, TaSavedSessionInfo, TaServer, TaServerInfo, TaSessionInfo, TaSettingsServer, TaTerminalServer, TaWorkspaceServer } from '@celljs/ta-protocol';
|
|
2
|
+
import type { TaAccessServer, TaAuthEvent, TaAuthServer, TaDesktopEvent, TaGatewayServer, TaPackageServer, TaRelayServer, TaRemoteEvent, TaRemoteServer, TaRoomEvent, TaRoomServer, TaSavedSessionInfo, TaScreenShareServer, TaServer, TaServerInfo, TaSessionInfo, TaSettingsServer, TaTerminalServer, TaVoiceEvent, TaVoiceServer, TaWorkspaceServer } from '@celljs/ta-protocol';
|
|
3
3
|
import type { RelayPairing } from '@celljs/ta-relay';
|
|
4
4
|
export declare const TaWorkbench: unique symbol;
|
|
5
5
|
/**
|
|
@@ -7,9 +7,13 @@ export declare const TaWorkbench: unique symbol;
|
|
|
7
7
|
* or ta serve is not running yet (error `unreachable`) and the page tries again until it does.
|
|
8
8
|
*/
|
|
9
9
|
export type ConnectionStatus = 'signed-out' | 'connecting' | 'online' | 'offline';
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* What a sign-in takes: the token of the ta serve of the page, or of one at another address (`url`: Ta in the cloud, a gateway
|
|
12
|
+
* signed in to from the app or Ta Desktop, TA_DEVICE_SIGN_IN_PATH), or a pairing for one behind a relay.
|
|
13
|
+
*/
|
|
11
14
|
export type Credential = {
|
|
12
15
|
token: string;
|
|
16
|
+
url?: string;
|
|
13
17
|
} | {
|
|
14
18
|
pairing: RelayPairing;
|
|
15
19
|
};
|
|
@@ -51,6 +55,8 @@ export interface WorkbenchState {
|
|
|
51
55
|
server?: TaServerInfo;
|
|
52
56
|
/** Ta restarts at the user's word (restartServer), until the page is connected to the one that started again. */
|
|
53
57
|
restarting?: boolean;
|
|
58
|
+
/** Signed out, the page about to load again for the sign-in: nothing drawn until then, so that it is drawn once. */
|
|
59
|
+
leaving?: boolean;
|
|
54
60
|
/**
|
|
55
61
|
* The server tells the open sessions as they change (TaServer.watchSessions): the lists are read again
|
|
56
62
|
* only now and then. Not by a Ta service of before, whose lists are read again every few seconds.
|
|
@@ -74,6 +80,14 @@ export interface WorkbenchPresence {
|
|
|
74
80
|
/** What the box of a conversation holds now: typing while it holds something and keys come. */
|
|
75
81
|
type(sessionId: string, typing: boolean): void;
|
|
76
82
|
}
|
|
83
|
+
/** What ta serve may ask this page (TaClient.onPageAsk), and what it is told of it (PageAnswers). */
|
|
84
|
+
export interface WorkbenchPages {
|
|
85
|
+
/** This page is Ta's own screen (ScreenUtil.agent): it answers nothing. */
|
|
86
|
+
readonly agent: boolean;
|
|
87
|
+
/** Answers `kind` (`<package>/<kind>`, `ta/<kind>`) from now on; the function returned stops. */
|
|
88
|
+
answer(kind: string, handler: (payload: unknown) => unknown): () => void;
|
|
89
|
+
setDevice(device: 'phone' | 'tablet' | 'computer'): void;
|
|
90
|
+
}
|
|
77
91
|
export interface TaWorkbench {
|
|
78
92
|
readonly state: WorkbenchState;
|
|
79
93
|
readonly server: TaServer;
|
|
@@ -87,9 +101,14 @@ export interface TaWorkbench {
|
|
|
87
101
|
readonly gateway: TaGatewayServer;
|
|
88
102
|
readonly relay: TaRelayServer;
|
|
89
103
|
readonly remote: TaRemoteServer;
|
|
104
|
+
/** Desktops of other computers (docs/design/ta-desktop-remote.md). */
|
|
105
|
+
readonly screenShare: TaScreenShareServer;
|
|
90
106
|
readonly rooms: TaRoomServer;
|
|
107
|
+
/** The voice services of calls (docs/design/ta-voice.md). */
|
|
108
|
+
readonly voice: TaVoiceServer;
|
|
91
109
|
/** What this page tells the others in the same Ta it is at (TaPresenceServer). */
|
|
92
110
|
readonly presence: WorkbenchPresence;
|
|
111
|
+
readonly pages: WorkbenchPages;
|
|
93
112
|
subscribe(listener: (state: WorkbenchState) => void): () => void;
|
|
94
113
|
/** Signs in with the token of the URL fragment (`ta serve --web`) or the one this page used before. */
|
|
95
114
|
start(): Promise<void>;
|
|
@@ -98,7 +117,7 @@ export interface TaWorkbench {
|
|
|
98
117
|
* While signed in to another computer, it is tried first and switched to only if it answers: else this
|
|
99
118
|
* rejects with a WorkbenchError and the computer in use stays.
|
|
100
119
|
*/
|
|
101
|
-
signIn(tokenOrLink: string): Promise<void>;
|
|
120
|
+
signIn(tokenOrLink: string | Credential): Promise<void>;
|
|
102
121
|
/**
|
|
103
122
|
* Uses another of the hosts kept: the page loads again for it, as everything shown is of one computer;
|
|
104
123
|
* signed out, it signs in to it in place.
|
|
@@ -110,6 +129,11 @@ export interface TaWorkbench {
|
|
|
110
129
|
rename(hostId: string, name: string): void;
|
|
111
130
|
/** Forgets the computer in use and loads the page again, at the sign-in, with the other computers kept. */
|
|
112
131
|
signOut(): void;
|
|
132
|
+
/**
|
|
133
|
+
* Back to the sign-in to pick another computer or account, as WeChat's switching of accounts: the one in use is kept with
|
|
134
|
+
* what was kept of it, first among those to sign in to again in one tap, with no code to scan.
|
|
135
|
+
*/
|
|
136
|
+
switchSignIn(): void;
|
|
113
137
|
/** Resolves once connected, at once if it is: the lists of the last time show before, and what is picked in them waits for this. */
|
|
114
138
|
connected(): Promise<void>;
|
|
115
139
|
/** While offline: tries to connect now rather than at `retryAt`. */
|
|
@@ -162,5 +186,9 @@ export interface TaWorkbench {
|
|
|
162
186
|
messages?: boolean;
|
|
163
187
|
state?: string[];
|
|
164
188
|
}): () => void;
|
|
189
|
+
/** What the voices this page opened tell (TaVoiceServer.openVoice). */
|
|
190
|
+
onVoiceEvent(listener: (event: TaVoiceEvent) => void): () => void;
|
|
191
|
+
/** What the desktops ask (a password): from now on, and those already waiting. */
|
|
192
|
+
onScreenShareEvent(listener: (event: TaDesktopEvent) => void): () => void;
|
|
165
193
|
}
|
|
166
194
|
//# sourceMappingURL=workbench-protocol.d.ts.map
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { TaConnection } from '@celljs/ta-client';
|
|
2
|
+
import { type TaAccessServer, type TaAuthEvent, type TaAuthServer, type TaDesktopEvent, type TaGatewayServer, type TaPackageServer, type TaRelayServer, type TaRemoteEvent, type TaRemoteServer, type TaRoomEvent, type TaRoomServer, type TaRoomWatch, type TaScreenShareServer, type TaServer, type TaSettingsServer, type TaTerminalServer, type TaVoiceEvent, type TaVoiceServer, type TaWorkspaceServer } from '@celljs/ta-protocol';
|
|
3
|
+
import type { WorkbenchCalls } from './workbench-calls';
|
|
4
|
+
import type { ServiceName } from './workbench-util';
|
|
5
|
+
/** The services of the workbench, and the listeners of what its connection tells. */
|
|
6
|
+
export declare abstract class WorkbenchServices {
|
|
7
|
+
protected abstract readonly calls: WorkbenchCalls;
|
|
8
|
+
protected connection?: TaConnection;
|
|
9
|
+
protected readonly terminalListeners: Set<(terminalId: string, data: string, exitCode?: number) => void>;
|
|
10
|
+
protected readonly extensionDataListeners: Set<(name: string, keys: string[], cwd?: string) => void>;
|
|
11
|
+
protected readonly authListeners: Set<(loginId: string, event: TaAuthEvent) => void>;
|
|
12
|
+
protected readonly remoteListeners: Set<(event: TaRemoteEvent) => void>;
|
|
13
|
+
protected readonly voiceListeners: Set<(event: TaVoiceEvent) => void>;
|
|
14
|
+
protected readonly desktopListeners: Set<(event: TaDesktopEvent) => void>;
|
|
15
|
+
/** Prompts of the desktops waiting now, for a listener that comes later. */
|
|
16
|
+
protected readonly desktopPrompts: Map<string, TaDesktopEvent>;
|
|
17
|
+
/** Those that listen to the rooms, and what they hear: messages and the state too, or the state of some keys. */
|
|
18
|
+
protected readonly roomListeners: Map<(event: TaRoomEvent) => void, TaRoomWatch>;
|
|
19
|
+
/** How the connection watches the rooms now: undefined not at all. */
|
|
20
|
+
protected roomsWatched?: TaRoomWatch;
|
|
21
|
+
get server(): TaServer;
|
|
22
|
+
get workspace(): TaWorkspaceServer;
|
|
23
|
+
get terminals(): TaTerminalServer;
|
|
24
|
+
get settings(): TaSettingsServer;
|
|
25
|
+
get packages(): TaPackageServer;
|
|
26
|
+
get auth(): TaAuthServer;
|
|
27
|
+
get access(): TaAccessServer;
|
|
28
|
+
get gateway(): TaGatewayServer;
|
|
29
|
+
get relay(): TaRelayServer;
|
|
30
|
+
get remote(): TaRemoteServer;
|
|
31
|
+
get screenShare(): TaScreenShareServer;
|
|
32
|
+
get rooms(): TaRoomServer;
|
|
33
|
+
get voice(): TaVoiceServer;
|
|
34
|
+
onScreenShareEvent(listener: (event: TaDesktopEvent) => void): () => void;
|
|
35
|
+
/** The prompts of the desktops: watched once something listens, again on each connection. */
|
|
36
|
+
protected watchDesktops(connection: TaConnection): Promise<void>;
|
|
37
|
+
protected emitDesktop(event: TaDesktopEvent): void;
|
|
38
|
+
onVoiceEvent(listener: (event: TaVoiceEvent) => void): () => void;
|
|
39
|
+
protected service<K extends ServiceName>(name: K): TaConnection[K];
|
|
40
|
+
protected signedIn(): TaConnection;
|
|
41
|
+
onTerminalData(listener: (terminalId: string, data: string, exitCode?: number) => void): () => void;
|
|
42
|
+
onExtensionData(listener: (name: string, keys: string[], cwd?: string) => void): () => void;
|
|
43
|
+
onAuthEvent(listener: (loginId: string, event: TaAuthEvent) => void): () => void;
|
|
44
|
+
onRemoteEvent(listener: (event: TaRemoteEvent) => void): () => void;
|
|
45
|
+
onRoomEvent(listener: (event: TaRoomEvent) => void, options?: {
|
|
46
|
+
messages?: boolean;
|
|
47
|
+
state?: string[];
|
|
48
|
+
}): () => void;
|
|
49
|
+
/** The prompts of ssh that wait for an answer, from now and those already there. */
|
|
50
|
+
protected watchRemote(connection: TaConnection): Promise<void>;
|
|
51
|
+
/**
|
|
52
|
+
* Watches the rooms as the listeners want (messages too if one does), or no more once none listens; on a new
|
|
53
|
+
* connection (`opened`) the listeners read them again (`rooms`), for what changed while away.
|
|
54
|
+
*/
|
|
55
|
+
protected watchRooms(connection: TaConnection, opened: boolean): Promise<void>;
|
|
56
|
+
protected emitRemote(event: TaRemoteEvent): void;
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=workbench-services.d.ts.map
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WorkbenchServices = void 0;
|
|
4
|
+
const ta_protocol_1 = require("@celljs/ta-protocol");
|
|
5
|
+
/** The services of the workbench, and the listeners of what its connection tells. */
|
|
6
|
+
class WorkbenchServices {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.terminalListeners = new Set();
|
|
9
|
+
this.extensionDataListeners = new Set();
|
|
10
|
+
this.authListeners = new Set();
|
|
11
|
+
this.remoteListeners = new Set();
|
|
12
|
+
this.voiceListeners = new Set();
|
|
13
|
+
this.desktopListeners = new Set();
|
|
14
|
+
/** Prompts of the desktops waiting now, for a listener that comes later. */
|
|
15
|
+
this.desktopPrompts = new Map();
|
|
16
|
+
/** Those that listen to the rooms, and what they hear: messages and the state too, or the state of some keys. */
|
|
17
|
+
this.roomListeners = new Map();
|
|
18
|
+
}
|
|
19
|
+
get server() {
|
|
20
|
+
return this.service('server');
|
|
21
|
+
}
|
|
22
|
+
get workspace() {
|
|
23
|
+
return this.service('workspace');
|
|
24
|
+
}
|
|
25
|
+
get terminals() {
|
|
26
|
+
return this.service('terminals');
|
|
27
|
+
}
|
|
28
|
+
get settings() {
|
|
29
|
+
return this.service('settings');
|
|
30
|
+
}
|
|
31
|
+
get packages() {
|
|
32
|
+
return this.service('packages');
|
|
33
|
+
}
|
|
34
|
+
get auth() {
|
|
35
|
+
return this.service('auth');
|
|
36
|
+
}
|
|
37
|
+
get access() {
|
|
38
|
+
return this.service('access');
|
|
39
|
+
}
|
|
40
|
+
get gateway() {
|
|
41
|
+
return this.service('gateway');
|
|
42
|
+
}
|
|
43
|
+
get relay() {
|
|
44
|
+
return this.service('relay');
|
|
45
|
+
}
|
|
46
|
+
get remote() {
|
|
47
|
+
return this.service('remote');
|
|
48
|
+
}
|
|
49
|
+
get screenShare() {
|
|
50
|
+
return this.service('screenShare');
|
|
51
|
+
}
|
|
52
|
+
get rooms() {
|
|
53
|
+
return this.service('rooms');
|
|
54
|
+
}
|
|
55
|
+
get voice() {
|
|
56
|
+
return this.service('voice');
|
|
57
|
+
}
|
|
58
|
+
onScreenShareEvent(listener) {
|
|
59
|
+
this.desktopListeners.add(listener);
|
|
60
|
+
for (const event of this.desktopPrompts.values()) {
|
|
61
|
+
listener(event);
|
|
62
|
+
}
|
|
63
|
+
if (this.desktopListeners.size === 1 && this.connection) {
|
|
64
|
+
void this.watchDesktops(this.connection);
|
|
65
|
+
}
|
|
66
|
+
return () => this.desktopListeners.delete(listener);
|
|
67
|
+
}
|
|
68
|
+
/** The prompts of the desktops: watched once something listens, again on each connection. */
|
|
69
|
+
async watchDesktops(connection) {
|
|
70
|
+
if (this.desktopListeners.size === 0) {
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
// A ta serve of before has no desktops.
|
|
74
|
+
const prompts = await connection.screenShare.watchDesktops().catch(() => []);
|
|
75
|
+
for (const prompt of prompts) {
|
|
76
|
+
this.emitDesktop({ type: 'prompt', prompt });
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
emitDesktop(event) {
|
|
80
|
+
if (event.type === 'prompt') {
|
|
81
|
+
this.desktopPrompts.set(event.prompt.promptId, event);
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
this.desktopPrompts.delete(event.promptId);
|
|
85
|
+
}
|
|
86
|
+
for (const listener of this.desktopListeners) {
|
|
87
|
+
listener(event);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
onVoiceEvent(listener) {
|
|
91
|
+
this.voiceListeners.add(listener);
|
|
92
|
+
return () => this.voiceListeners.delete(listener);
|
|
93
|
+
}
|
|
94
|
+
service(name) {
|
|
95
|
+
return this.calls.service(name);
|
|
96
|
+
}
|
|
97
|
+
signedIn() {
|
|
98
|
+
if (!this.connection) {
|
|
99
|
+
throw new Error('Not signed in to ta serve.');
|
|
100
|
+
}
|
|
101
|
+
return this.connection;
|
|
102
|
+
}
|
|
103
|
+
onTerminalData(listener) {
|
|
104
|
+
this.terminalListeners.add(listener);
|
|
105
|
+
return () => this.terminalListeners.delete(listener);
|
|
106
|
+
}
|
|
107
|
+
onExtensionData(listener) {
|
|
108
|
+
this.extensionDataListeners.add(listener);
|
|
109
|
+
return () => this.extensionDataListeners.delete(listener);
|
|
110
|
+
}
|
|
111
|
+
onAuthEvent(listener) {
|
|
112
|
+
this.authListeners.add(listener);
|
|
113
|
+
return () => this.authListeners.delete(listener);
|
|
114
|
+
}
|
|
115
|
+
onRemoteEvent(listener) {
|
|
116
|
+
this.remoteListeners.add(listener);
|
|
117
|
+
return () => this.remoteListeners.delete(listener);
|
|
118
|
+
}
|
|
119
|
+
onRoomEvent(listener, options = {}) {
|
|
120
|
+
const wrapped = (event) => listener(event);
|
|
121
|
+
this.roomListeners.set(wrapped, ta_protocol_1.TaRoomWatchUtil.of(options.messages, options.state));
|
|
122
|
+
if (this.connection) {
|
|
123
|
+
void this.watchRooms(this.connection, false);
|
|
124
|
+
}
|
|
125
|
+
return () => {
|
|
126
|
+
if (this.roomListeners.delete(wrapped) && this.connection) {
|
|
127
|
+
void this.watchRooms(this.connection, false);
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
/** The prompts of ssh that wait for an answer, from now and those already there. */
|
|
132
|
+
async watchRemote(connection) {
|
|
133
|
+
const prompts = await connection.remote.watch().catch(() => []);
|
|
134
|
+
for (const prompt of prompts) {
|
|
135
|
+
this.emitRemote({ type: 'prompt', prompt });
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Watches the rooms as the listeners want (messages too if one does), or no more once none listens; on a new
|
|
140
|
+
* connection (`opened`) the listeners read them again (`rooms`), for what changed while away.
|
|
141
|
+
*/
|
|
142
|
+
async watchRooms(connection, opened) {
|
|
143
|
+
const wanted = this.roomListeners.size === 0 ? undefined : ta_protocol_1.TaRoomWatchUtil.union(this.roomListeners.values());
|
|
144
|
+
if (!ta_protocol_1.TaRoomWatchUtil.same(wanted, this.roomsWatched)) {
|
|
145
|
+
this.roomsWatched = wanted;
|
|
146
|
+
// A ta serve of before has no rooms; one of before the state of some keys hears it only with messages.
|
|
147
|
+
await (wanted === undefined ? connection.rooms.unwatch() : connection.rooms.watch(wanted.messages, wanted.state)).catch(() => undefined);
|
|
148
|
+
}
|
|
149
|
+
if (opened) {
|
|
150
|
+
for (const listener of this.roomListeners.keys()) {
|
|
151
|
+
listener({ type: 'rooms' });
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
emitRemote(event) {
|
|
156
|
+
for (const listener of this.remoteListeners) {
|
|
157
|
+
listener(event);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
exports.WorkbenchServices = WorkbenchServices;
|
|
162
|
+
//# sourceMappingURL=workbench-services.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type TaSavedSessionInfo, type TaServerInfo, type TaSessionInfo } from '@celljs/ta-protocol';
|
|
2
2
|
import { type RelayPairing } from '@celljs/ta-relay';
|
|
3
3
|
import { type HostList } from './hosts';
|
|
4
4
|
import type { Credential, WorkbenchState } from './workbench-protocol';
|
|
@@ -26,7 +26,7 @@ export interface KeptLists {
|
|
|
26
26
|
sessions: TaSessionInfo[];
|
|
27
27
|
saved: TaSavedSessionInfo[];
|
|
28
28
|
}
|
|
29
|
-
export type ServiceName = 'server' | 'workspace' | 'terminals' | 'settings' | 'packages' | 'auth' | 'access' | 'gateway' | 'relay' | 'remote' | 'rooms';
|
|
29
|
+
export type ServiceName = 'server' | 'workspace' | 'terminals' | 'settings' | 'packages' | 'auth' | 'access' | 'gateway' | 'relay' | 'remote' | 'screenShare' | 'rooms' | 'voice';
|
|
30
30
|
/**
|
|
31
31
|
* A conversation opens with about this much of its latest messages (a screen or two: the images of the user's
|
|
32
32
|
* come apart, TaShownImage), its earlier ones loaded as much at a time when scrolled to.
|
|
@@ -60,8 +60,14 @@ export declare namespace WorkbenchUtil {
|
|
|
60
60
|
function reachable(base: string, fetcher?: typeof fetch): Promise<boolean>;
|
|
61
61
|
/** The hosts kept in `storage`; the token or pairing an older version kept becomes the first. */
|
|
62
62
|
function readHosts(storage: Storage | undefined, now?: number): HostList;
|
|
63
|
-
/** Which ta serve a credential reaches, to know whose lists were kept. */
|
|
63
|
+
/** Which ta serve a credential reaches, to know whose lists were kept: that of the page (`host`) for a token alone. */
|
|
64
64
|
function serverOf(credential: Credential, host: string): string;
|
|
65
|
+
/** Where the ta serve of a token answers: its own address, or that of the page. */
|
|
66
|
+
function serveUrl(credential: {
|
|
67
|
+
url?: string;
|
|
68
|
+
}, base?: string): string;
|
|
69
|
+
/** Its WebSocket, from `serveUrl`. */
|
|
70
|
+
function socketUrl(serve: string): string;
|
|
65
71
|
/** Where the lists of `of` are kept: each computer has its own, to show at once when switched to. */
|
|
66
72
|
function listsKey(of: string): string;
|
|
67
73
|
/** The open sessions as the lists show them: the newest first. */
|