@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
|
@@ -1,60 +1,56 @@
|
|
|
1
|
-
import { useInject } from '@celljs/react';
|
|
2
1
|
import { ChevronLeft } from 'lucide-react';
|
|
3
2
|
import * as React from 'react';
|
|
4
|
-
import { AssistantChatList
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
3
|
+
import { AssistantChatList } from '../assistant/assistant-chat-list.js';
|
|
4
|
+
import { ChatView } from '../chat/chat-view.js';
|
|
5
|
+
import { DevicePageUtil } from '../cloud/device-page.js';
|
|
6
|
+
import { DeviceMotion } from '../device/device-protocol.js';
|
|
8
7
|
import { LaunchScreenUtil } from '../device/launch-screen.js';
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { TaFiles } from '../files/files-protocol.js';
|
|
12
|
-
import { useCodeScan, useNotices, useOpenLink, usePersisted, useSettings, useWebExtensions, useWorkbench } from '../hooks.js';
|
|
13
|
-
import { useT } from '../i18n/use-t.js';
|
|
14
|
-
import { CodeRenderers } from '../markdown/code-renderers.js';
|
|
8
|
+
import { WebCwdUtil, WebLabelUtil } from '../extension/web-extension-protocol.js';
|
|
9
|
+
import { usePersisted } from '../hooks.js';
|
|
15
10
|
import { SIGN_IN_EVENT } from '../notices/notices.js';
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { Voice } from '../util/voice.js';
|
|
11
|
+
import { SharedPageUtil } from '../share/shared-link.js';
|
|
12
|
+
import { SharedPage } from '../share/shared-page.js';
|
|
19
13
|
import { WorkbenchUtil } from '../workbench-util.js';
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
14
|
+
import { AppContexts } from './app-contexts.js';
|
|
15
|
+
import { PageView, Rail, SidebarView } from './app-nav.js';
|
|
16
|
+
import { LOGIN_LATER, RAIL } from './app-shell-hooks.js';
|
|
17
|
+
import { useAppShell } from './app-shell-state.js';
|
|
22
18
|
import { AuthUtil, LoginPage, useAuthProviders } from './auth-view.js';
|
|
23
|
-
import { BoardSurface
|
|
24
|
-
import { ChatAskUtil
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
19
|
+
import { BoardSurface } from './board.js';
|
|
20
|
+
import { ChatAskUtil } from './chat-asks.js';
|
|
21
|
+
import { ChatIconUtil } from './chat-icon.js';
|
|
22
|
+
import { ChatListUtil } from './chat-list-util.js';
|
|
27
23
|
import { ChatSeenUtil, SEEN_CHATS } from './chat-seen.js';
|
|
28
24
|
import { ConnectionBar } from './connection-bar.js';
|
|
29
25
|
import { CustomHost } from './custom-host.js';
|
|
26
|
+
import { DeviceSignInPage } from './device-sign-in-page.js';
|
|
30
27
|
import { DinoLookHost, DinoLookProvider } from './dino-look.js';
|
|
31
28
|
import { DiscoverView } from './discover-view.js';
|
|
32
29
|
import { EditorArea } from './editor-area.js';
|
|
30
|
+
import { EntryHoldUtil, useCallGoingOn } from './entry-holds.js';
|
|
33
31
|
import { EnvironmentPage } from './environment-view.js';
|
|
34
|
-
import {
|
|
35
|
-
import { SwitchingVeil } from './host-view.js';
|
|
32
|
+
import { PageVeil } from './host-view.js';
|
|
36
33
|
import { IconButton, SidebarLeft } from './icon.js';
|
|
34
|
+
import { KeptCallBar } from './kept-call-bar.js';
|
|
37
35
|
import { KeptPages } from './kept-pages.js';
|
|
38
36
|
import { LauncherSurface } from './launcher-surface.js';
|
|
39
|
-
import { OpenLink } from './link.js';
|
|
40
37
|
import { LinkDialog } from './link-dialog.js';
|
|
41
|
-
import { ListSkeleton } from './list-skeleton.js';
|
|
42
38
|
import { MeView } from './me-view.js';
|
|
43
|
-
import { FileUrls } from './media.js';
|
|
44
39
|
import { DISCOVER, ME_TAB, phoneTabs } from './nav-places.js';
|
|
45
40
|
import { NoticeCenter } from './notice-center.js';
|
|
46
|
-
import { PhoneShell } from './phone-shell.js';
|
|
41
|
+
import { PhoneShell, PhoneStack } from './phone-shell.js';
|
|
47
42
|
import { RemotePrompts } from './remote-prompts.js';
|
|
48
43
|
import { ScanHost } from './scan-screen.js';
|
|
44
|
+
import { useScreenNavigator } from './screen-navigator.js';
|
|
45
|
+
import { ScreenNavigatorUtil } from './screen-navigator-util.js';
|
|
49
46
|
import { ServeRestartNotices } from './serve-restart.js';
|
|
50
47
|
import { SettingsView } from './settings-view.js';
|
|
51
48
|
import { ShareHost } from './share-dialog.js';
|
|
52
49
|
import { DOUBLE_PAGE, SideListUtil } from './side-lists.js';
|
|
53
|
-
import { paneStyle, Sash
|
|
50
|
+
import { paneStyle, Sash } from './split-pane.js';
|
|
54
51
|
import { SurfaceFlyout } from './surface-flyout.js';
|
|
55
|
-
import { usePageVisible } from './use-seen-chats.js';
|
|
56
52
|
import { WorkbenchToggleContext } from './workbench-toggle.js';
|
|
57
|
-
import { SignIn
|
|
53
|
+
import { SignIn } from './workbench-view.js';
|
|
58
54
|
/**
|
|
59
55
|
* ta on the web, laid out as an IDE: the navigation, a sidebar (the chats, or a sidebar view of a web
|
|
60
56
|
* extension), the conversation or a page, the workbench (the tools of web extensions and the tabs they
|
|
@@ -63,302 +59,9 @@ import { SignIn, useDocument } from './workbench-view.js';
|
|
|
63
59
|
* the conversation instead.
|
|
64
60
|
*/
|
|
65
61
|
function AppShell() {
|
|
66
|
-
var _a, _b, _c
|
|
67
|
-
var
|
|
68
|
-
const t =
|
|
69
|
-
const [workbench, bench] = useWorkbench();
|
|
70
|
-
const [extensions, host] = useWebExtensions();
|
|
71
|
-
const [{ store, pending }, chat] = useChat();
|
|
72
|
-
const [sideId, setSideId] = usePersisted(SIDE);
|
|
73
|
-
const [removedChats] = usePersisted(REMOVED_CHATS);
|
|
74
|
-
const [chatsByDirectory, setChatsByDirectory] = usePersisted(BY_DIRECTORY);
|
|
75
|
-
const [foldedChats, setFoldedChats] = usePersisted(FOLDED);
|
|
76
|
-
const [pinnedChats, setPinnedChats] = usePersisted(PINNED);
|
|
77
|
-
const [letGoAsks, setLetGoAsks] = usePersisted(LET_GO_ASKS);
|
|
78
|
-
const [navOpen, setNavOpen] = React.useState(false);
|
|
79
|
-
const layout = useDevice(device => device.layout);
|
|
80
|
-
const touch = useDevice(device => device.touch);
|
|
81
|
-
// A phone: tabs at the bottom, and the conversation or a page over them, a screen of its own (phone-shell.tsx).
|
|
82
|
-
const phone = useDevice(device => device.handheld);
|
|
83
|
-
const [screenOpen, setScreenOpen] = React.useState(false);
|
|
84
|
-
// The launcher or the board, over the first tab of a phone or in a flyout of the rail (ta-launcher.md).
|
|
85
|
-
const [surface, setSurface] = React.useState();
|
|
86
|
-
const closing = React.useRef(undefined);
|
|
87
|
-
const surfaces = useSurfaces();
|
|
88
|
-
// It opens on its first tab, as those apps do, whatever this tab of the browser showed before.
|
|
89
|
-
const opened = React.useRef(false);
|
|
90
|
-
React.useEffect(() => {
|
|
91
|
-
if (phone && !opened.current) {
|
|
92
|
-
opened.current = true;
|
|
93
|
-
setSideId(FIRST_SIDE);
|
|
94
|
-
host.showPage('');
|
|
95
|
-
}
|
|
96
|
-
}, [phone, setSideId, host]);
|
|
97
|
-
/**
|
|
98
|
-
* The settings view is shown in place of the conversation or the page, at that section (`''`: the first); on a
|
|
99
|
-
* phone it is a screen over Me, which stays while it slides away, until another screen takes its place.
|
|
100
|
-
*/
|
|
101
|
-
const [settings, setSettings] = React.useState();
|
|
102
|
-
// Each opening of the settings on a phone starts afresh: no search or section left from the last.
|
|
103
|
-
const [settingsOpened, setSettingsOpened] = React.useState(0);
|
|
104
|
-
const [tabPage, setTabPage] = React.useState();
|
|
105
|
-
const openSettings = React.useCallback((section) => {
|
|
106
|
-
setSettings(section !== null && section !== void 0 ? section : '');
|
|
107
|
-
setSettingsOpened(count => count + 1);
|
|
108
|
-
setNavOpen(false);
|
|
109
|
-
setScreenOpen(phone);
|
|
110
|
-
}, [phone]);
|
|
111
|
-
const closeSettings = React.useCallback(() => (phone ? setScreenOpen(false) : setSettings(undefined)), [phone]);
|
|
112
|
-
const settingsShown = settings !== undefined && (!phone || screenOpen);
|
|
113
|
-
const [rightOpen, toggleRight, revealRight, uncoverRight] = useRight();
|
|
114
|
-
const [maximized, setMaximized] = React.useState(false);
|
|
115
|
-
const [{ theme, language, settings: chatSettings }] = useSettings();
|
|
116
|
-
const readArchived = React.useCallback(() => void bench.readArchived().catch(() => undefined), [bench]);
|
|
117
|
-
React.useEffect(() => bench.setArchiveDays(chatSettings.chatArchiveDays), [bench, chatSettings.chatArchiveDays]);
|
|
118
|
-
const sidebar = usePane(SIDEBAR);
|
|
119
|
-
const editor = usePane(EDITOR);
|
|
120
|
-
const online = workbench.status === 'online';
|
|
121
|
-
// Files named in replies outside a conversation (channels, pages) are in the server's directory.
|
|
122
|
-
const files = useInject(TaFiles);
|
|
123
|
-
const fileUrl = React.useCallback(async (path, box) => files.loadable(ThumbnailUtil.boxed(await bench.workspace.fileUrl(path), box)), [bench, files]);
|
|
124
|
-
const openLink = useOpenLink(undefined);
|
|
125
|
-
useDocument();
|
|
126
|
-
useRefresh(online);
|
|
127
|
-
// What the server and its packages say (errors, questions) is in the language of the page.
|
|
128
|
-
React.useEffect(() => {
|
|
129
|
-
if (online) {
|
|
130
|
-
bench.settings.setLanguage(language).catch(() => undefined);
|
|
131
|
-
}
|
|
132
|
-
}, [online, language, bench]);
|
|
133
|
-
React.useEffect(() => {
|
|
134
|
-
void bench.start();
|
|
135
|
-
}, [bench]);
|
|
136
|
-
// The computer cannot be reached from the start: the web extensions of the last time start anyway (from
|
|
137
|
-
// the code this device kept) and show what they read last; online, `chat.start` loads them.
|
|
138
|
-
const offline = workbench.status === 'offline';
|
|
139
|
-
const startedOffline = React.useRef(false);
|
|
140
|
-
React.useEffect(() => {
|
|
141
|
-
if (offline && !startedOffline.current) {
|
|
142
|
-
startedOffline.current = true;
|
|
143
|
-
void host.refresh().catch(() => undefined);
|
|
144
|
-
}
|
|
145
|
-
}, [offline, host]);
|
|
146
|
-
/** The conversation the page opens with is shown: those shown after are the user's doing. */
|
|
147
|
-
const started = React.useRef(false);
|
|
148
|
-
React.useEffect(() => {
|
|
149
|
-
if (online) {
|
|
150
|
-
void chat.start().then(() => {
|
|
151
|
-
started.current = true;
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
}, [online, chat]);
|
|
155
|
-
// A tab a web extension opens is meant to be seen, unless it opens again behind the others as the page loads.
|
|
156
|
-
const { activeEditor, focus } = extensions;
|
|
157
|
-
const revealEditor = editor.reveal;
|
|
158
|
-
React.useEffect(() => {
|
|
159
|
-
if (focus > 0) {
|
|
160
|
-
revealRight();
|
|
161
|
-
revealEditor();
|
|
162
|
-
// Opened from the launcher or the board: the workbench comes in their place.
|
|
163
|
-
setSurface(undefined);
|
|
164
|
-
}
|
|
165
|
-
}, [focus, revealRight, revealEditor]);
|
|
166
|
-
React.useEffect(() => {
|
|
167
|
-
host.setSettingsOpener(openSettings);
|
|
168
|
-
return () => host.setSettingsOpener(undefined);
|
|
169
|
-
}, [host, openSettings]);
|
|
170
|
-
// A web extension shows another conversation: the conversation, not a page, a drawer or the workbench over it, is then in front.
|
|
171
|
-
React.useEffect(() => {
|
|
172
|
-
host.setSessionSwitcher(async (session, opening) => {
|
|
173
|
-
// In front at once, while it opens.
|
|
174
|
-
const shown = typeof session === 'object' && 'sessionFile' in session ? chat.resume(session.sessionFile) : chat.show(session, opening);
|
|
175
|
-
setNavOpen(false);
|
|
176
|
-
setSurface(undefined);
|
|
177
|
-
setSettings(undefined);
|
|
178
|
-
setScreenOpen(true);
|
|
179
|
-
setMaximized(false);
|
|
180
|
-
uncoverRight();
|
|
181
|
-
try {
|
|
182
|
-
await shown;
|
|
183
|
-
}
|
|
184
|
-
catch (error) {
|
|
185
|
-
// A phone goes back to the list it came from, rather than showing the conversation of before.
|
|
186
|
-
if (phone && chat.state.pending === undefined) {
|
|
187
|
-
setScreenOpen(false);
|
|
188
|
-
}
|
|
189
|
-
throw error;
|
|
190
|
-
}
|
|
191
|
-
});
|
|
192
|
-
return () => host.setSessionSwitcher(undefined);
|
|
193
|
-
}, [host, chat, uncoverRight, phone]);
|
|
194
|
-
// A page shown from the sidebar on a phone: the drawer goes; so do the settings, for the page or the conversation shown.
|
|
195
|
-
const { page } = extensions;
|
|
196
|
-
const shownSession = store === null || store === void 0 ? void 0 : store.sessionId;
|
|
197
|
-
// biome-ignore lint/correctness/useExhaustiveDependencies: follows the page
|
|
198
|
-
React.useEffect(() => setNavOpen(false), [page]);
|
|
199
|
-
// biome-ignore lint/correctness/useExhaustiveDependencies: follows what the main area shows
|
|
200
|
-
React.useEffect(() => {
|
|
201
|
-
setSettings(undefined);
|
|
202
|
-
// A phone keeps the tab under what came over it.
|
|
203
|
-
if (!phone) {
|
|
204
|
-
setTabPage(undefined);
|
|
205
|
-
}
|
|
206
|
-
}, [page, shownSession]);
|
|
207
|
-
// Another conversation shown that no sidebar view lists (not that of an agent, which is in a group), by a page,
|
|
208
|
-
// a link or a fork: the sidebar turns to the chats, where it is selected, to be found again. Not the one the page opens with,
|
|
209
|
-
// nor one the list does not have yet: it may be an agent's.
|
|
210
|
-
// biome-ignore lint/correctness/useExhaustiveDependencies: follows the conversation shown
|
|
211
|
-
React.useEffect(() => {
|
|
212
|
-
if (!shownSession || !started.current || phone) {
|
|
213
|
-
return;
|
|
214
|
-
}
|
|
215
|
-
const info = workbench.sessions.find(session => session.sessionId === shownSession);
|
|
216
|
-
if (info && !info.group) {
|
|
217
|
-
setSideId('');
|
|
218
|
-
}
|
|
219
|
-
}, [shownSession]);
|
|
220
|
-
const { hasCards, openCards, cardsTool } = useWorkbenchCards(rightOpen && !editor.collapsed);
|
|
221
|
-
const view = extensions.views.find(candidate => candidate.id === page && candidate.location === 'page');
|
|
222
|
-
const sideViews = SideListUtil.sidebarViews(extensions.views);
|
|
223
|
-
const sideView = sideId === FIRST_SIDE ? sideViews[0] : sideViews.find(candidate => candidate.id === sideId);
|
|
224
|
-
// The first start, nothing kept: the double's list may still come, rather than the chats shown a moment before it.
|
|
225
|
-
const sideComing = sideId === FIRST_SIDE && !sideView && !extensions.loaded;
|
|
226
|
-
const side = sideView ? sideView.id : sideComing ? FIRST_SIDE : '';
|
|
227
|
-
const showPage = (id) => {
|
|
228
|
-
host.showPage(id);
|
|
229
|
-
setNavOpen(false);
|
|
230
|
-
setSettings(undefined);
|
|
231
|
-
setTabPage(undefined);
|
|
232
|
-
};
|
|
233
|
-
const lists = SideListUtil.of(sideViews, t('ta.chat'));
|
|
234
|
-
const tools = [...(hasCards ? [cardsTool] : []), ...extensions.views.filter(candidate => candidate.location === 'panel')];
|
|
235
|
-
const openTool = (id) => (id === CARDS_ID ? openCards() : host.openView(id));
|
|
236
|
-
// The workbench: the tabs open, or the tools that open there.
|
|
237
|
-
const editors = extensions.editors.length > 0 || tools.length > 0;
|
|
238
|
-
// The settings take the place of the conversation and of the workbench, as a page of their own.
|
|
239
|
-
const showEditors = rightOpen && editors && !editor.collapsed && !settingsShown;
|
|
240
|
-
// Over the conversation of a narrow screen, closing the last tab goes back to the conversation.
|
|
241
|
-
const tabCount = extensions.editors.length;
|
|
242
|
-
const tabsBefore = React.useRef(tabCount);
|
|
243
|
-
React.useEffect(() => {
|
|
244
|
-
if (tabsBefore.current > 0 && tabCount === 0 && showEditors && layout !== 'expanded') {
|
|
245
|
-
toggleRight();
|
|
246
|
-
}
|
|
247
|
-
tabsBefore.current = tabCount;
|
|
248
|
-
}, [tabCount, showEditors, toggleRight, layout]);
|
|
249
|
-
useDrawerSwipe(touch && layout === 'compact' && !phone && !showEditors, navOpen, setNavOpen);
|
|
250
|
-
// The pages of the rail: in the navigation, or under Discover.
|
|
251
|
-
const navigation = useNavigation(extensions.views);
|
|
252
|
-
const codeScan = useCodeScan();
|
|
253
|
-
const [, notices] = useNotices();
|
|
254
|
-
// Without a sidebar view that lists the double, its page is the first tab: it opens there, once the views are in.
|
|
255
|
-
const homeOpened = React.useRef(false);
|
|
256
|
-
const homeId = phone && extensions.views.length > 0 ? (_a = navigation.home) === null || _a === void 0 ? void 0 : _a.id : undefined;
|
|
257
|
-
React.useEffect(() => {
|
|
258
|
-
if (homeId && !homeOpened.current) {
|
|
259
|
-
homeOpened.current = true;
|
|
260
|
-
if (!host.state.page) {
|
|
261
|
-
host.showPage(homeId);
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
}, [homeId, host]);
|
|
265
|
-
// A page of an extension started on open that Discover lists: shown as those of Discover are.
|
|
266
|
-
const discoveredOnOpen = !!(view === null || view === void 0 ? void 0 : view.onOpen) && navigation.onOpen.some(entry => entry.state === 'shown');
|
|
267
|
-
const railView = view && (view === navigation.home || navigation.pages.includes(view) || discoveredOnOpen) ? view : undefined;
|
|
268
|
-
// On a phone a page of a list (a channel, the double) or of Discover comes in front of the tabs; one of the navigation is a tab.
|
|
269
|
-
const tabView = view && (view === navigation.home || navigation.nav.includes(view)) ? view : undefined;
|
|
270
|
-
// A page of the screen, and those in the background beside it, kept as they were.
|
|
271
|
-
const screenPage = settings === undefined && view && !tabView ? view : undefined;
|
|
272
|
-
// The conversation in front, where the tools of the workbench follow its directory; else they are in the default one.
|
|
273
|
-
const conversationShown = phone ? screenOpen && settings === undefined && !screenPage : settings === undefined && tabPage !== 'discover' && !view;
|
|
274
|
-
React.useEffect(() => host.setConversationShown(conversationShown), [host, conversationShown]);
|
|
275
|
-
// What the user has seen is kept here, whichever list or tab is out: one read from the agents' list is seen too.
|
|
276
|
-
const { seen: seenChats, looking } = useSeenConversations(workbench.sessions, conversationShown ? store === null || store === void 0 ? void 0 : store.sessionId : undefined, (view === null || view === void 0 ? void 0 : view.id) === DOUBLE_PAGE && settings === undefined && (!phone || screenOpen || view === tabView));
|
|
277
|
-
// The others in the same Ta see who looks at a conversation with them (TaSessionInfo.people), while the page is seen.
|
|
278
|
-
const pageVisible = usePageVisible();
|
|
279
|
-
React.useEffect(() => bench.presence.look(pageVisible ? looking : undefined), [bench, pageVisible, looking]);
|
|
280
|
-
const state = useInject(TaState);
|
|
281
|
-
const { pageShown } = extensions;
|
|
282
|
-
// biome-ignore lint/correctness/useExhaustiveDependencies: follows the pages shown
|
|
283
|
-
React.useEffect(() => {
|
|
284
|
-
// A page that slides in over it: the launcher or the board goes once covered, not under the page as it comes.
|
|
285
|
-
if (phone && surface && view && !tabView) {
|
|
286
|
-
const timer = setTimeout(() => setSurface(undefined), 420);
|
|
287
|
-
closing.current = () => clearTimeout(timer);
|
|
288
|
-
}
|
|
289
|
-
else {
|
|
290
|
-
setSurface(undefined);
|
|
291
|
-
}
|
|
292
|
-
// A page shown from the workbench over it (Open in the main area of a channel): the workbench goes, as for a conversation.
|
|
293
|
-
if (pageShown > 0 && view) {
|
|
294
|
-
setSettings(undefined);
|
|
295
|
-
setScreenOpen(!tabView);
|
|
296
|
-
setMaximized(false);
|
|
297
|
-
uncoverRight();
|
|
298
|
-
}
|
|
299
|
-
}, [pageShown]);
|
|
300
|
-
React.useEffect(() => () => { var _a; return (_a = closing.current) === null || _a === void 0 ? void 0 : _a.call(closing); }, []);
|
|
301
|
-
React.useEffect(() => {
|
|
302
|
-
if (layout !== 'compact') {
|
|
303
|
-
setNavOpen(false);
|
|
304
|
-
}
|
|
305
|
-
}, [layout]);
|
|
306
|
-
// The settings and the pages of the rail take the place of the sidebar too, as on their own; in the drawer of a narrow screen the sidebar stays.
|
|
307
|
-
const full = settings !== undefined || tabPage === 'discover' || railView !== undefined;
|
|
308
|
-
const sideShown = navOpen || (!sidebar.collapsed && !full);
|
|
309
|
-
// Over such a page, the logo (and Mod+B) goes back to the conversation, with the sidebar.
|
|
310
|
-
const toggleSide = () => {
|
|
311
|
-
if (navOpen) {
|
|
312
|
-
setNavOpen(false);
|
|
313
|
-
}
|
|
314
|
-
else if (full) {
|
|
315
|
-
setSettings(undefined);
|
|
316
|
-
setTabPage(undefined);
|
|
317
|
-
if (view) {
|
|
318
|
-
host.showPage('');
|
|
319
|
-
}
|
|
320
|
-
sidebar.reveal();
|
|
321
|
-
}
|
|
322
|
-
else {
|
|
323
|
-
sidebar.toggle();
|
|
324
|
-
}
|
|
325
|
-
};
|
|
326
|
-
// A list of the rail: it shows in the sidebar, in place of a page; picked again, the sidebar (or the drawer) goes.
|
|
327
|
-
const showList = (id) => {
|
|
328
|
-
const pick = SideListUtil.pick(id, { side, drawer: navOpen, shown: sideShown });
|
|
329
|
-
if (pick === 'close') {
|
|
330
|
-
setNavOpen(false);
|
|
331
|
-
}
|
|
332
|
-
else if (pick === 'hide') {
|
|
333
|
-
sidebar.toggle();
|
|
334
|
-
}
|
|
335
|
-
else {
|
|
336
|
-
setSideId(id);
|
|
337
|
-
}
|
|
338
|
-
if (pick === 'show') {
|
|
339
|
-
setSettings(undefined);
|
|
340
|
-
setTabPage(undefined);
|
|
341
|
-
if (view && full) {
|
|
342
|
-
host.showPage('');
|
|
343
|
-
}
|
|
344
|
-
sidebar.reveal();
|
|
345
|
-
}
|
|
346
|
-
};
|
|
347
|
-
const toggleWorkbench = () => {
|
|
348
|
-
if (showEditors) {
|
|
349
|
-
toggleRight();
|
|
350
|
-
}
|
|
351
|
-
else {
|
|
352
|
-
// Over the settings of a wide screen (the rail, Cmd/Ctrl+J): they give way to what was under them.
|
|
353
|
-
if (!phone && settings !== undefined) {
|
|
354
|
-
setSettings(undefined);
|
|
355
|
-
}
|
|
356
|
-
revealRight();
|
|
357
|
-
editor.reveal();
|
|
358
|
-
}
|
|
359
|
-
};
|
|
360
|
-
useKeys(toggleSide, openSettings, () => editors && toggleWorkbench());
|
|
361
|
-
useTitlebarColor(workbench.status !== 'signed-out', theme);
|
|
62
|
+
var _a, _b, _c;
|
|
63
|
+
var _d, _e;
|
|
64
|
+
const { t, workbench, extensions, host, store, pending, chat, setSideId, removedChats, chatsByDirectory, setChatsByDirectory, foldedChats, setFoldedChats, pinnedChats, setPinnedChats, letGoAsks, setLetGoAsks, navOpen, setNavOpen, phone, screenOpen, setScreenOpen, surface, setSurface, surfaces, settings, setSettings, settingsOpened, tabPage, setTabPage, openSettings, closeSettings, settingsShown, toggleRight, maximized, setMaximized, chatSettings, readArchived, sidebar, editor, online, fileUrl, openLink, activeEditor, view, sideView, side, showPage, lists, tools, openTool, editors, showEditors, navigation, codeScan, notices, railCurrent, tabView, screenPage, seenChats, looking, state, sideShown, showList, toggleWorkbench, picking, chatsBusy, setChatsBusy, deciding, } = useAppShell();
|
|
362
65
|
const [providers, reloadProviders] = useAuthProviders(online);
|
|
363
66
|
const [later, setLater] = usePersisted(LOGIN_LATER);
|
|
364
67
|
/** A call failed for want of a sign-in (SIGN_IN_EVENT): the page of sign-in, even if the user put it off. */
|
|
@@ -371,10 +74,12 @@ function AppShell() {
|
|
|
371
74
|
window.addEventListener(SIGN_IN_EVENT, ask);
|
|
372
75
|
return () => window.removeEventListener(SIGN_IN_EVENT, ask);
|
|
373
76
|
}, [reloadProviders]);
|
|
374
|
-
|
|
375
|
-
|
|
77
|
+
const doubleId = DOUBLE_PAGE;
|
|
78
|
+
// Where Ta's agents read the page to be, and go (docs/design/ta-app-use.md 3): set below as it renders.
|
|
79
|
+
const screenShell = useScreenNavigator();
|
|
80
|
+
const inCall = useCallGoingOn();
|
|
376
81
|
if (workbench.status === 'signed-out') {
|
|
377
|
-
return React.createElement(SignIn, { error: workbench.error });
|
|
82
|
+
return workbench.leaving ? React.createElement("div", { className: "ta-signin" }) : React.createElement(SignIn, { error: workbench.error });
|
|
378
83
|
}
|
|
379
84
|
if (workbench.error === 'environment') {
|
|
380
85
|
return React.createElement(EnvironmentPage, null);
|
|
@@ -386,7 +91,7 @@ function AppShell() {
|
|
|
386
91
|
}, onSignedIn: () => {
|
|
387
92
|
setAsked(false);
|
|
388
93
|
reloadProviders();
|
|
389
|
-
} }));
|
|
94
|
+
}, onProviders: reloadProviders }));
|
|
390
95
|
}
|
|
391
96
|
// What the columns beside the conversation and the editors take, so that the editors never take more than the conversation.
|
|
392
97
|
const sideWidths = {
|
|
@@ -406,7 +111,8 @@ function AppShell() {
|
|
|
406
111
|
showPage('');
|
|
407
112
|
}
|
|
408
113
|
};
|
|
409
|
-
|
|
114
|
+
picking.current = picked;
|
|
115
|
+
const chatList = (busy) => (React.createElement(AssistantChatList, { sessions: workbench.sessions, saved: workbench.saved, removed: removedChats, archived: workbench.archived, onArchive: readArchived, foldDays: chatSettings.chatFoldDays, archiveDays: chatSettings.chatArchiveDays, selected: view || phone ? undefined : (pending !== null && pending !== void 0 ? pending : store === null || store === void 0 ? void 0 : store.sessionId), chat: chat, byDirectory: chatsByDirectory, onByDirectory: setChatsByDirectory, folded: foldedChats, onFolded: setFoldedChats, pinned: pinnedChats, onPinned: setPinnedChats, looking: looking, seen: seenChats, onUnseen: (entry, unseen) => {
|
|
410
116
|
var _a;
|
|
411
117
|
const file = ChatListUtil.file(entry);
|
|
412
118
|
const before = state.get(SEEN_CHATS);
|
|
@@ -418,9 +124,10 @@ function AppShell() {
|
|
|
418
124
|
if (at !== undefined) {
|
|
419
125
|
setLetGoAsks(before => ChatAskUtil.letGo(before, ChatListUtil.file(entry), at));
|
|
420
126
|
}
|
|
421
|
-
}, onPicked: picked }));
|
|
422
|
-
|
|
423
|
-
const
|
|
127
|
+
}, onPicked: picked, busy: busy, onBusy: setChatsBusy }));
|
|
128
|
+
// On a phone the conversations going on are pushed over the tab (below); elsewhere they are the chats, filtered.
|
|
129
|
+
const sideList = sideView ? React.createElement(SidebarView, { view: sideView }) : chatList(!phone && chatsBusy);
|
|
130
|
+
const editorArea = (React.createElement(EditorArea, { editors: extensions.editors, active: activeEditor, views: tools, onShow: id => host.showEditor(id), onClose: ids => void host.closeEditors(ids), onPin: id => host.pinEditor(id), onOpenView: openTool, onHide: editor.toggle, cwd: (_d = WebCwdUtil.shown(extensions)) !== null && _d !== void 0 ? _d : (_a = workbench.server) === null || _a === void 0 ? void 0 : _a.cwd, maximized: maximized, onMaximize: () => setMaximized(!maximized) }));
|
|
424
131
|
// A photo of the scan screen to the double: its conversation shows, the photo goes with what to do with it.
|
|
425
132
|
const askDouble = async (text, image) => {
|
|
426
133
|
const double = extensions.views.find(candidate => candidate.id === DOUBLE_PAGE);
|
|
@@ -441,10 +148,22 @@ function AppShell() {
|
|
|
441
148
|
React.createElement(LinkDialog, null),
|
|
442
149
|
React.createElement(RemotePrompts, null),
|
|
443
150
|
React.createElement(ServeRestartNotices, null),
|
|
444
|
-
React.createElement(
|
|
151
|
+
React.createElement(PageVeil, null),
|
|
445
152
|
codeScan && React.createElement(ScanHost, { onCode: text => void codeScan.open(text), onAsk: askDouble }),
|
|
446
153
|
React.createElement(ShareHost, null),
|
|
447
|
-
React.createElement(CustomHost, null)
|
|
154
|
+
React.createElement(CustomHost, null),
|
|
155
|
+
React.createElement(KeptCallBar, { looking: looking, onBack: (sessionId, double) => {
|
|
156
|
+
var _a;
|
|
157
|
+
if (double) {
|
|
158
|
+
showPage(doubleId);
|
|
159
|
+
if (phone) {
|
|
160
|
+
setScreenOpen(true);
|
|
161
|
+
}
|
|
162
|
+
return;
|
|
163
|
+
}
|
|
164
|
+
void ((_a = host.sessionSwitcher()) === null || _a === void 0 ? void 0 : _a(sessionId));
|
|
165
|
+
picked();
|
|
166
|
+
} })));
|
|
448
167
|
// The screen of a phone slides away: a page it showed is out of sight, and its extension may go to the background.
|
|
449
168
|
const closeScreen = () => {
|
|
450
169
|
setScreenOpen(false);
|
|
@@ -474,40 +193,38 @@ function AppShell() {
|
|
|
474
193
|
}
|
|
475
194
|
};
|
|
476
195
|
const discoverView = (leading) => (React.createElement(DiscoverView, { pages: navigation.discover, onOpenPages: navigation.onOpen, onOpen: openDiscovered, onPin: pinDiscovered, onSettings: () => openSettings('navigation'), onScan: codeScan && (() => void codeScan.scan()), leading: leading }));
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
196
|
+
const keptPages = EntryHoldUtil.kept(extensions.kept, inCall, tabView);
|
|
197
|
+
const holds = EntryHoldUtil.holds({
|
|
198
|
+
double: () => {
|
|
199
|
+
const before = { view: view === null || view === void 0 ? void 0 : view.id, settings, tabPage, screenOpen };
|
|
200
|
+
showPage(doubleId);
|
|
201
|
+
return given => {
|
|
202
|
+
var _a;
|
|
203
|
+
if (given === 'call') {
|
|
204
|
+
host.showPage((_a = before.view) !== null && _a !== void 0 ? _a : '');
|
|
205
|
+
setSettings(before.settings);
|
|
206
|
+
setTabPage(before.tabPage);
|
|
207
|
+
setScreenOpen(before.screenOpen);
|
|
208
|
+
}
|
|
209
|
+
else if (phone) {
|
|
210
|
+
setScreenOpen(true);
|
|
211
|
+
}
|
|
212
|
+
};
|
|
213
|
+
},
|
|
214
|
+
chats: () => {
|
|
215
|
+
void chat.draft();
|
|
216
|
+
picked();
|
|
483
217
|
},
|
|
484
|
-
move: HeldTalk.point,
|
|
485
|
-
end: HeldTalk.release,
|
|
486
|
-
cancel: HeldTalk.cancel,
|
|
487
218
|
});
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
double: talkHold('double', () => {
|
|
491
|
-
showPage(doubleId);
|
|
492
|
-
// Over the tabs when a sidebar view lists the double; as a tab of its own elsewhere.
|
|
493
|
-
if (phone) {
|
|
494
|
-
setScreenOpen(!navigation.home);
|
|
495
|
-
}
|
|
496
|
-
}),
|
|
497
|
-
chats: talkHold('draft', () => {
|
|
498
|
-
void chat.draft();
|
|
499
|
-
picked();
|
|
500
|
-
}),
|
|
501
|
-
}
|
|
502
|
-
: {};
|
|
503
|
-
// The chats' tab has the amber dot of their rows while one of them said something unseen, as a messenger's: of
|
|
504
|
-
// those the list shows, so that each dot of the tab has a row to find. Dragged away, all are seen. Those that
|
|
505
|
-
// wait for the user to decide are counted on it, on the rail too, until answered.
|
|
219
|
+
// The chats' tab, and the double's on the rail, have the amber dot of the rows listed while one said something unseen,
|
|
220
|
+
// as a messenger's, but those quiet (a call); what waits for the user to decide is counted there until answered.
|
|
506
221
|
const listedChats = ChatListUtil.entries(workbench.sessions, workbench.saved, removedChats, undefined, WorkbenchUtil.daysAgo(Date.now(), chatSettings.chatArchiveDays), ChatListUtil.keptFiles(workbench.saved, pinnedChats, letGoAsks), ChatIconUtil.archiveSince(extensions.chatIcons, Date.now())).listed;
|
|
507
|
-
const chatsAsking = ChatAskUtil.count(listedChats, letGoAsks);
|
|
508
222
|
const inFront = looking ? workbench.sessions.find(session => session.sessionId === looking) : undefined;
|
|
509
|
-
const chatsUnseen = ChatSeenUtil.anyUnseen(listedChats, seenChats, inFront && ChatListUtil.file(inFront));
|
|
223
|
+
const chatsUnseen = ChatSeenUtil.anyUnseen(ChatIconUtil.loud(extensions.chatIcons, listedChats), seenChats, inFront && ChatListUtil.file(inFront));
|
|
224
|
+
// Dragged away, the dot of the chats: all seen.
|
|
510
225
|
const seeAllChats = () => state.set(SEEN_CHATS, ChatSeenUtil.seeAll(state.get(SEEN_CHATS), listedChats, Date.now()));
|
|
226
|
+
// Dragged away, the count of the double: what the conversations ask let go; the double's own tasks wait on.
|
|
227
|
+
const letGoAllAsks = () => setLetGoAsks(before => ChatAskUtil.letGoAll(before, listedChats));
|
|
511
228
|
const tabs = phone
|
|
512
229
|
? phoneTabs(lists, navigation, {
|
|
513
230
|
discover: t('ta.discover'),
|
|
@@ -515,64 +232,166 @@ function AppShell() {
|
|
|
515
232
|
fold: t('ta.nav.fold'),
|
|
516
233
|
settings: { label: t('ta.nav.settings'), run: () => openSettings('navigation') },
|
|
517
234
|
holds,
|
|
518
|
-
}).map(item =>
|
|
235
|
+
}).map(item => item.id === '' && chatsUnseen
|
|
236
|
+
? { ...item, unseen: true, onSeeAll: seeAllChats }
|
|
237
|
+
: item.double && deciding
|
|
238
|
+
? { ...item, asks: deciding, onSeeAll: letGoAllAsks }
|
|
239
|
+
: item)
|
|
519
240
|
: [];
|
|
520
|
-
const tab = tabPage === 'me' ? ME_TAB : tabPage === 'discover' ? DISCOVER : ((
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
241
|
+
const tab = tabPage === 'me' ? ME_TAB : tabPage === 'discover' ? DISCOVER : ((_e = tabView === null || tabView === void 0 ? void 0 : tabView.id) !== null && _e !== void 0 ? _e : side);
|
|
242
|
+
const pickTab = (id) => {
|
|
243
|
+
setSurface(undefined);
|
|
244
|
+
setChatsBusy(false);
|
|
245
|
+
if (navigation.nav.some(candidate => candidate.id === id)) {
|
|
246
|
+
showPage(id);
|
|
247
|
+
return;
|
|
248
|
+
}
|
|
249
|
+
setTabPage(id === ME_TAB ? 'me' : id === DISCOVER ? 'discover' : undefined);
|
|
250
|
+
if (tabView) {
|
|
251
|
+
host.showPage('');
|
|
252
|
+
}
|
|
253
|
+
if (id !== ME_TAB && id !== DISCOVER) {
|
|
254
|
+
setSideId(id);
|
|
255
|
+
}
|
|
256
|
+
};
|
|
257
|
+
const chatName = (entry) => entry.sessionName || entry.firstMessage || t('ta.chat.new');
|
|
258
|
+
const shownChat = store ? workbench.sessions.find(session => session.sessionId === store.sessionId) : undefined;
|
|
259
|
+
screenShell.current = {
|
|
260
|
+
phone,
|
|
261
|
+
where: ScreenNavigatorUtil.where({
|
|
262
|
+
settings: settingsShown ? (settings !== null && settings !== void 0 ? settings : '') : undefined,
|
|
263
|
+
page: phone ? (screenOpen ? screenPage : tabView) : tabPage === 'discover' ? undefined : view,
|
|
264
|
+
discover: tabPage === 'discover',
|
|
265
|
+
me: phone && !screenOpen && tabPage === 'me',
|
|
266
|
+
list: (phone ? !screenOpen && !tabView && !tabPage : sideShown) ? (_b = lists.find(entry => entry.id === side)) === null || _b === void 0 ? void 0 : _b.label : undefined,
|
|
267
|
+
chat: (phone ? screenOpen && !screenPage && settings === undefined : settings === undefined && tabPage !== 'discover' && !view)
|
|
268
|
+
? shownChat
|
|
269
|
+
? chatName(shownChat)
|
|
270
|
+
: t('ta.chat.new')
|
|
271
|
+
: undefined,
|
|
272
|
+
words: { settings: t('ta.settings'), discover: t('ta.discover'), me: t('ta.me') },
|
|
273
|
+
}),
|
|
274
|
+
places: [
|
|
275
|
+
...lists.map(entry => ({ id: `list:${entry.id}`, title: entry.label })),
|
|
276
|
+
...navigation.pages.map(page => ({
|
|
277
|
+
id: `page:${page.id}`,
|
|
278
|
+
title: WebLabelUtil.text(page.title),
|
|
279
|
+
})),
|
|
280
|
+
...navigation.onOpen.map(page => ({ id: `page:${page.id}`, title: page.title })),
|
|
281
|
+
{ id: 'discover', title: t('ta.discover') },
|
|
282
|
+
...(phone ? [{ id: 'me', title: t('ta.me') }] : []),
|
|
283
|
+
{ id: 'settings', title: t('ta.settings') },
|
|
284
|
+
],
|
|
285
|
+
goPlace: place => {
|
|
286
|
+
const [kind, id = ''] = place.id.split(/:(.*)/s);
|
|
287
|
+
if (kind === 'settings') {
|
|
288
|
+
return openSettings();
|
|
289
|
+
}
|
|
290
|
+
if (kind === 'page') {
|
|
291
|
+
return host.showView(id);
|
|
292
|
+
}
|
|
293
|
+
if (phone) {
|
|
294
|
+
// The tabs are under the screen of a phone: what is over them slides away, as the back does.
|
|
295
|
+
if (screenOpen) {
|
|
296
|
+
closeScreen();
|
|
297
|
+
}
|
|
298
|
+
return pickTab(kind === 'list' ? id : kind === 'me' ? ME_TAB : DISCOVER);
|
|
299
|
+
}
|
|
300
|
+
setSettings(undefined);
|
|
301
|
+
setNavOpen(false);
|
|
302
|
+
if (kind === 'discover') {
|
|
303
|
+
setTabPage('discover');
|
|
528
304
|
return;
|
|
529
305
|
}
|
|
530
|
-
setTabPage(
|
|
531
|
-
|
|
306
|
+
setTabPage(undefined);
|
|
307
|
+
setSideId(id);
|
|
308
|
+
if (view) {
|
|
532
309
|
host.showPage('');
|
|
533
310
|
}
|
|
534
|
-
|
|
535
|
-
|
|
311
|
+
sidebar.reveal();
|
|
312
|
+
},
|
|
313
|
+
showChat: async (target) => {
|
|
314
|
+
const switcher = host.sessionSwitcher();
|
|
315
|
+
if (!switcher) {
|
|
316
|
+
throw new Error('The page cannot show a conversation yet.');
|
|
536
317
|
}
|
|
537
|
-
|
|
318
|
+
const shown = switcher('sessionId' in target ? target.sessionId : { sessionFile: target.sessionFile });
|
|
319
|
+
host.showPage('');
|
|
320
|
+
await shown;
|
|
321
|
+
},
|
|
322
|
+
chats: [
|
|
323
|
+
...workbench.sessions
|
|
324
|
+
.filter(session => !session.group)
|
|
325
|
+
.map(session => ({ name: chatName(session), sessionId: session.sessionId, sessionFile: session.sessionFile })),
|
|
326
|
+
...workbench.saved.filter(saved => !saved.group).map(saved => ({ name: chatName(saved), sessionFile: saved.sessionFile })),
|
|
327
|
+
],
|
|
328
|
+
openSettings,
|
|
329
|
+
};
|
|
330
|
+
// The launcher and the board are over the first tab only, as WeChat's over its chats.
|
|
331
|
+
const firstTab = ((_c = tabs[0]) === null || _c === void 0 ? void 0 : _c.id) === tab;
|
|
332
|
+
const content = phone ? (React.createElement(PhoneShell, { tabs: tabs, tab: tab, launcher: firstTab && surfaces.launcher ? React.createElement(LauncherSurface, { active: surface === 'launcher' }) : undefined, board: firstTab && surfaces.board ? (React.createElement(BoardSurface, { leading: React.createElement(IconButton, { icon: ChevronLeft, label: t('ta.back'), onClick: () => setSurface(undefined) }) })) : undefined, surface: surface, onSurface: setSurface, onTab: pickTab, home: React.createElement(PhoneHome, { pushable: SideListUtil.pushesOver(tabView), busy: chatsBusy, onBusy: setChatsBusy, busyList: () => React.createElement("div", { className: "ta-sidebar" }, chatList(true)) }, tabPage === 'me' ? (React.createElement("div", { className: "ta-main" },
|
|
538
333
|
React.createElement(MeView, { onSettings: openSettings }))) : tabPage === 'discover' ? (React.createElement("div", { className: "ta-main" }, discoverView())) : tabView ? (React.createElement("div", { className: "ta-main" },
|
|
539
|
-
React.createElement(PageView, { view: tabView }))) : (React.createElement("div", { className: "ta-sidebar" }, sideList)), screen: React.createElement(React.Fragment, null,
|
|
540
|
-
React.createElement(KeptPages, { views: extensions.views, kept:
|
|
334
|
+
React.createElement(PageView, { view: tabView }))) : (React.createElement("div", { className: "ta-sidebar" }, sideList))), screen: React.createElement(React.Fragment, null,
|
|
335
|
+
React.createElement(KeptPages, { views: extensions.views, kept: keptPages, shown: screenPage, render: page => (React.createElement(PageView, { view: page, leading: React.createElement(IconButton, { icon: ChevronLeft, label: t('ta.back'), className: "ta-narrow-only", onClick: closeScreen }) })) }),
|
|
541
336
|
settings !== undefined ? (React.createElement(SettingsView, { key: settingsOpened, section: settings || undefined, onClose: closeSettings, onBack: closeSettings })) : screenPage ? null : (React.createElement(ChatView, { widgets: extensions.widgets, onMenu: closeScreen, back: true }))), screenOpen: screenOpen, onBack: closeScreen, workbench: editors && !settingsShown ? (React.createElement("div", { className: "ta-editors-pane", inert: !showEditors }, editorArea)) : undefined, workbenchOpen: showEditors, onWorkbench: open => (open ? toggleWorkbench() : showEditors && toggleRight()) }, overlays)) : (React.createElement("div", { className: classes.filter(Boolean).join(' '), style: sideWidths },
|
|
542
337
|
navOpen && React.createElement("button", { type: "button", className: "ta-scrim", "aria-label": t('ta.close'), onClick: () => setNavOpen(false) }),
|
|
543
338
|
React.createElement("div", { className: "ta-nav" },
|
|
544
|
-
React.createElement(Rail, { lists: lists, list: sideShown ? side : undefined, onList: showList, navigation: navigation, current:
|
|
339
|
+
React.createElement(Rail, { lists: lists, list: sideShown ? side : undefined, onList: showList, navigation: navigation, current: railCurrent, onPage: showPage, onDiscover: () => {
|
|
545
340
|
setSettings(undefined);
|
|
546
341
|
setNavOpen(false);
|
|
547
342
|
setTabPage('discover');
|
|
548
|
-
}, onSettings: openSettings, settingsShown: settings !== undefined, surfaces: surfaces, surface: surface, onSurface: setSurface, holds: holds, asks:
|
|
343
|
+
}, onSettings: openSettings, settingsShown: settings !== undefined, surfaces: surfaces, surface: surface, onSurface: setSurface, holds: holds, asks: deciding, onDismissAsks: letGoAllAsks, onSeeAll: chatsUnseen ? seeAllChats : undefined }),
|
|
549
344
|
sideShown && (React.createElement("div", { className: "ta-sidebar", style: paneStyle(sidebar) },
|
|
550
345
|
sideList,
|
|
551
346
|
React.createElement(Sash, { pane: sidebar, side: "start", label: t('ta.layout.sidebar') })))),
|
|
552
347
|
React.createElement("main", { className: "ta-main" },
|
|
553
348
|
React.createElement(ConnectionBar, null),
|
|
554
|
-
React.createElement(KeptPages, { views: extensions.views, kept:
|
|
349
|
+
React.createElement(KeptPages, { views: extensions.views, kept: keptPages, shown: settings === undefined && tabPage !== 'discover' ? view : undefined, render: page => (React.createElement(PageView, { view: page, leading: React.createElement(IconButton, { icon: SidebarLeft, label: t('ta.sidebar'), className: "ta-narrow-only", onClick: () => setNavOpen(true) }) })) }),
|
|
555
350
|
settings !== undefined ? (React.createElement(SettingsView, { section: settings || undefined, onClose: closeSettings, onMenu: () => setNavOpen(true) })) : tabPage === 'discover' ? (discoverView(React.createElement(IconButton, { icon: SidebarLeft, label: t('ta.sidebar'), className: "ta-narrow-only", onClick: () => setNavOpen(true) }))) : view ? null : (React.createElement(ChatView, { widgets: extensions.widgets, onMenu: () => setNavOpen(true) }))),
|
|
556
351
|
showEditors && (React.createElement("div", { className: "ta-editors-pane", style: paneStyle(editor) },
|
|
557
352
|
React.createElement(Sash, { pane: editor, side: "end", label: t('ta.layout.editor') }),
|
|
558
353
|
editorArea)),
|
|
559
354
|
surface && React.createElement(SurfaceFlyout, { surface: surface, onClose: () => setSurface(undefined) }),
|
|
560
355
|
overlays));
|
|
561
|
-
return (React.createElement(
|
|
562
|
-
React.createElement(
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
356
|
+
return (React.createElement(AppContexts, { fileUrl: fileUrl, openLink: openLink },
|
|
357
|
+
React.createElement(WorkbenchToggleContext.Provider, { value: toggle }, content)));
|
|
358
|
+
}
|
|
359
|
+
/**
|
|
360
|
+
* What a tab of a phone shows, and the conversations going on (ui.showChats with `busy`) pushed over it while
|
|
361
|
+
* `busy`, as the folder of the chats is pushed over their list: back with its button, a swipe from the left edge or the
|
|
362
|
+
* back of the system (PhoneStack, a layer of BackLayers), to the tab as it was; a conversation picked in it comes over
|
|
363
|
+
* it, and goes back to it. Drawn while open and while it slides away. Not over a page of an extension's own in the
|
|
364
|
+
* tabs (`pushable`, SideListUtil.pushesOver): the page is drawn as it is, the shell shows those going on over the chats.
|
|
365
|
+
*/
|
|
366
|
+
function PhoneHome({ pushable, busy, onBusy, busyList, children, }) {
|
|
367
|
+
const [drawn, setDrawn] = React.useState(busy);
|
|
368
|
+
React.useEffect(() => {
|
|
369
|
+
if (busy) {
|
|
370
|
+
setDrawn(true);
|
|
371
|
+
return;
|
|
372
|
+
}
|
|
373
|
+
const timer = setTimeout(() => setDrawn(false), DeviceMotion.SHEET_MS);
|
|
374
|
+
return () => clearTimeout(timer);
|
|
375
|
+
}, [busy]);
|
|
376
|
+
if (!pushable) {
|
|
377
|
+
return children;
|
|
378
|
+
}
|
|
379
|
+
return React.createElement(PhoneStack, { base: children, top: (busy || drawn) && busyList(), open: busy, onClose: () => onBusy(false) });
|
|
571
380
|
}
|
|
572
381
|
/** The app, with the look the user picked for the double (every ta below draws it) and the picker of that look. */
|
|
573
382
|
export function AppView() {
|
|
383
|
+
// A conversation shared by a link, opened in a browser: drawn as Ta does, with nothing signed in behind it.
|
|
384
|
+
const [shared] = React.useState(() => SharedPageUtil.link());
|
|
385
|
+
// A device asked to sign in here (TA_DEVICE_SIGN_IN_PATH): the page where the user lets it in, whoever this browser is.
|
|
386
|
+
const [device] = React.useState(() => (shared ? undefined : DevicePageUtil.take()));
|
|
574
387
|
// The launch picture of the app of a phone goes once the page is whole.
|
|
575
388
|
React.useEffect(() => LaunchScreenUtil.start(), []);
|
|
389
|
+
if (shared) {
|
|
390
|
+
return React.createElement(SharedPage, { link: shared });
|
|
391
|
+
}
|
|
392
|
+
if (device) {
|
|
393
|
+
return React.createElement(DeviceSignInPage, { code: device.code, outcome: device.outcome, from: device.from });
|
|
394
|
+
}
|
|
576
395
|
return (React.createElement(DinoLookProvider, null,
|
|
577
396
|
React.createElement(AppShell, null),
|
|
578
397
|
React.createElement(DinoLookHost, null)));
|