@celljs/ta-web 4.16.0 → 4.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +2 -1
- package/README.md +2 -1
- package/esm/browser/assistant/assistant-ask-book.d.ts +35 -0
- package/esm/browser/assistant/assistant-ask-book.js +96 -0
- package/esm/browser/assistant/assistant-chat-list.d.ts +4 -4
- package/esm/browser/assistant/assistant-chat-list.js +74 -4
- package/esm/browser/assistant/assistant-conversation.d.ts +110 -0
- package/esm/browser/assistant/assistant-conversation.js +351 -0
- package/esm/browser/assistant/assistant-export.js +11 -8
- package/esm/browser/assistant/assistant-extension.d.ts +3 -2
- package/esm/browser/assistant/assistant-extension.js +119 -11
- package/esm/browser/assistant/assistant-protocol.d.ts +17 -2
- package/esm/browser/assistant/assistant-role.d.ts +22 -4
- package/esm/browser/assistant/assistant-role.js +33 -8
- package/esm/browser/assistant/assistant-state.d.ts +5 -1
- package/esm/browser/assistant/assistant-state.js +11 -0
- package/esm/browser/assistant/assistant-task-source.d.ts +4 -0
- package/esm/browser/assistant/assistant-task-source.js +24 -4
- package/esm/browser/assistant/assistant-task-util.d.ts +27 -7
- package/esm/browser/assistant/assistant-task-util.js +84 -20
- package/esm/browser/assistant/assistant-tasks.d.ts +0 -7
- package/esm/browser/assistant/assistant-tasks.js +2 -4
- package/esm/browser/assistant/assistant-thread.d.ts +22 -0
- package/esm/browser/assistant/assistant-thread.js +112 -0
- package/esm/browser/assistant/assistant-view.js +79 -130
- package/esm/browser/assistant/assistant.d.ts +33 -105
- package/esm/browser/assistant/assistant.js +105 -357
- package/esm/browser/assistant/call-keeper.d.ts +142 -0
- package/esm/browser/assistant/call-keeper.js +292 -0
- package/esm/browser/assistant/call-screen.d.ts +39 -0
- package/esm/browser/assistant/call-screen.js +75 -0
- package/esm/browser/assistant/chat-task-source.d.ts +56 -0
- package/esm/browser/assistant/chat-task-source.js +82 -0
- package/esm/browser/assistant/read-aloud.d.ts +34 -0
- package/esm/browser/assistant/read-aloud.js +98 -0
- package/esm/browser/assistant/realtime-voice.d.ts +138 -0
- package/esm/browser/assistant/realtime-voice.js +479 -0
- package/esm/browser/assistant/task-views.d.ts +11 -9
- package/esm/browser/assistant/task-views.js +47 -25
- package/esm/browser/assistant/voice-call-bar.d.ts +67 -0
- package/esm/browser/assistant/voice-call-bar.js +316 -0
- package/esm/browser/assistant/voice-call.d.ts +207 -0
- package/esm/browser/assistant/voice-call.js +469 -0
- package/esm/browser/assistant/voice-reopen.d.ts +18 -0
- package/esm/browser/assistant/voice-reopen.js +54 -0
- package/esm/browser/chat/chat-shown.d.ts +78 -0
- package/esm/browser/chat/chat-shown.js +262 -0
- package/esm/browser/chat/chat-view.js +7 -9
- package/esm/browser/chat/chat.d.ts +4 -68
- package/esm/browser/chat/chat.js +5 -253
- package/esm/browser/chat/draft-model.d.ts +1 -1
- package/esm/browser/cloud/cloud-sign-in.d.ts +100 -0
- package/esm/browser/cloud/cloud-sign-in.js +239 -0
- package/esm/browser/cloud/device-page.d.ts +15 -0
- package/esm/browser/cloud/device-page.js +39 -0
- package/esm/browser/components/access-view.js +26 -2
- package/esm/browser/components/account-menu.js +4 -2
- package/esm/browser/components/app-contexts.d.ts +12 -0
- package/esm/browser/components/app-contexts.js +28 -0
- package/esm/browser/components/app-nav.d.ts +6 -2
- package/esm/browser/components/app-nav.js +15 -12
- package/esm/browser/components/app-shell-hooks.d.ts +11 -2
- package/esm/browser/components/app-shell-hooks.js +25 -4
- package/esm/browser/components/app-shell-state.d.ts +80 -0
- package/esm/browser/components/app-shell-state.js +471 -0
- package/esm/browser/components/app-view.js +212 -393
- package/esm/browser/components/asks-badge.d.ts +6 -2
- package/esm/browser/components/asks-badge.js +7 -3
- package/esm/browser/components/auth-pictures.d.ts +2 -2
- package/esm/browser/components/auth-pictures.js +13 -1
- package/esm/browser/components/auth-view.d.ts +4 -3
- package/esm/browser/components/auth-view.js +57 -10
- package/esm/browser/components/call-pill.d.ts +11 -0
- package/esm/browser/components/call-pill.js +19 -0
- package/esm/browser/components/chat-asks.d.ts +2 -0
- package/esm/browser/components/chat-asks.js +8 -0
- package/esm/browser/components/chat-busy.d.ts +32 -0
- package/esm/browser/components/chat-busy.js +49 -0
- package/esm/browser/components/chat-home-util.d.ts +112 -0
- package/esm/browser/components/chat-home-util.js +123 -0
- package/esm/browser/components/chat-home.d.ts +54 -0
- package/esm/browser/components/chat-home.js +125 -0
- package/esm/browser/components/chat-icon.d.ts +10 -2
- package/esm/browser/components/chat-icon.js +32 -6
- package/esm/browser/components/chat-list-hooks.d.ts +30 -0
- package/esm/browser/components/chat-list-hooks.js +81 -0
- package/esm/browser/components/chat-list-props.d.ts +54 -0
- package/esm/browser/components/chat-list-props.js +2 -0
- package/esm/browser/components/chat-list-row.d.ts +96 -0
- package/esm/browser/components/chat-list-row.js +208 -0
- package/esm/browser/components/chat-list-util.d.ts +197 -0
- package/esm/browser/components/chat-list-util.js +398 -0
- package/esm/browser/components/chat-list.d.ts +6 -190
- package/esm/browser/components/chat-list.js +340 -545
- package/esm/browser/components/chat-seen.js +1 -0
- package/esm/browser/components/cloud-sign-in-view.d.ts +61 -0
- package/esm/browser/components/cloud-sign-in-view.js +351 -0
- package/esm/browser/components/code-editor.js +2 -1
- package/esm/browser/components/composer-addon-util.d.ts +1 -1
- package/esm/browser/components/composer-addons.d.ts +1 -1
- package/esm/browser/components/composer-attachments.d.ts +11 -0
- package/esm/browser/components/composer-attachments.js +27 -0
- package/esm/browser/components/composer-box-hooks.d.ts +9 -0
- package/esm/browser/components/composer-box-hooks.js +138 -0
- package/esm/browser/components/composer-box-protocol.d.ts +108 -0
- package/esm/browser/components/composer-box-protocol.js +2 -0
- package/esm/browser/components/composer-box.d.ts +1 -95
- package/esm/browser/components/composer-box.js +54 -154
- package/esm/browser/components/composer-target.d.ts +21 -0
- package/esm/browser/components/composer-target.js +43 -0
- package/esm/browser/components/composer.d.ts +7 -1
- package/esm/browser/components/composer.js +13 -9
- package/esm/browser/components/connection-bar.js +22 -3
- package/esm/browser/components/context-menu.d.ts +11 -2
- package/esm/browser/components/context-menu.js +18 -3
- package/esm/browser/components/conversation-find.d.ts +27 -0
- package/esm/browser/components/conversation-find.js +151 -0
- package/esm/browser/components/conversation-scroll-hooks.js +2 -1
- package/esm/browser/components/conversation-scroll-util.d.ts +73 -0
- package/esm/browser/components/conversation-scroll-util.js +80 -0
- package/esm/browser/components/conversation-scroll.d.ts +3 -35
- package/esm/browser/components/conversation-scroll.js +16 -81
- package/esm/browser/components/conversation-view.d.ts +8 -0
- package/esm/browser/components/conversation-view.js +41 -0
- package/esm/browser/components/device-sign-in-page.d.ts +12 -0
- package/esm/browser/components/device-sign-in-page.js +74 -0
- package/esm/browser/components/diff-editor.js +2 -1
- package/esm/browser/components/discover-view.d.ts +3 -2
- package/esm/browser/components/discover-view.js +31 -26
- package/esm/browser/components/dismiss.js +2 -0
- package/esm/browser/components/earlier-messages.d.ts +2 -0
- package/esm/browser/components/earlier-messages.js +2 -1
- package/esm/browser/components/entry-holds.d.ts +22 -0
- package/esm/browser/components/entry-holds.js +49 -0
- package/esm/browser/components/environment-view.js +8 -8
- package/esm/browser/components/face.d.ts +1 -1
- package/esm/browser/components/fold-text.js +3 -1
- package/esm/browser/components/folder-picker.d.ts +7 -0
- package/esm/browser/components/folder-picker.js +89 -19
- package/esm/browser/components/fork-view.js +2 -4
- package/esm/browser/components/gallery.d.ts +1 -1
- package/esm/browser/components/gallery.js +59 -15
- package/esm/browser/components/held-talk.d.ts +6 -2
- package/esm/browser/components/held-talk.js +20 -2
- package/esm/browser/components/host-view.d.ts +9 -4
- package/esm/browser/components/host-view.js +56 -15
- package/esm/browser/components/image-menu.d.ts +11 -0
- package/esm/browser/components/image-menu.js +29 -0
- package/esm/browser/components/image-swipe.d.ts +50 -0
- package/esm/browser/components/image-swipe.js +139 -0
- package/esm/browser/components/image-viewer.d.ts +12 -115
- package/esm/browser/components/image-viewer.js +74 -368
- package/esm/browser/components/image-zoom.d.ts +112 -0
- package/esm/browser/components/image-zoom.js +355 -0
- package/esm/browser/components/kept-call-bar.d.ts +12 -0
- package/esm/browser/components/kept-call-bar.js +99 -0
- package/esm/browser/components/lightbox.d.ts +6 -2
- package/esm/browser/components/lightbox.js +6 -3
- package/esm/browser/components/link-dialog.d.ts +2 -1
- package/esm/browser/components/link-dialog.js +7 -1
- package/esm/browser/components/link.d.ts +4 -0
- package/esm/browser/components/link.js +11 -0
- package/esm/browser/components/list-rows.d.ts +3 -1
- package/esm/browser/components/list-rows.js +2 -1
- package/esm/browser/components/loading.d.ts +12 -0
- package/esm/browser/components/loading.js +18 -0
- package/esm/browser/components/markdown.js +7 -1
- package/esm/browser/components/media.d.ts +2 -0
- package/esm/browser/components/media.js +16 -1
- package/esm/browser/components/mermaid-view.js +14 -7
- package/esm/browser/components/message-actions.d.ts +1 -1
- package/esm/browser/components/message-actions.js +9 -0
- package/esm/browser/components/message-footer.d.ts +3 -1
- package/esm/browser/components/message-footer.js +3 -2
- package/esm/browser/components/message-images.d.ts +41 -0
- package/esm/browser/components/message-images.js +120 -0
- package/esm/browser/components/message-list.d.ts +4 -100
- package/esm/browser/components/message-list.js +22 -454
- package/esm/browser/components/message-menu.js +4 -0
- package/esm/browser/components/message-steps.d.ts +21 -0
- package/esm/browser/components/message-steps.js +190 -0
- package/esm/browser/components/message-user.d.ts +63 -0
- package/esm/browser/components/message-user.js +204 -0
- package/esm/browser/components/model-picker.d.ts +4 -2
- package/esm/browser/components/model-picker.js +16 -3
- package/esm/browser/components/moved-notice.d.ts +14 -0
- package/esm/browser/components/moved-notice.js +60 -0
- package/esm/browser/components/nav-places.d.ts +17 -11
- package/esm/browser/components/nav-places.js +18 -13
- package/esm/browser/components/notice-center.js +36 -1
- package/esm/browser/components/notice-face.js +2 -1
- package/esm/browser/components/phone-shell.d.ts +5 -4
- package/esm/browser/components/phone-shell.js +60 -68
- package/esm/browser/components/plus-menu.d.ts +1 -1
- package/esm/browser/components/relay-services.d.ts +6 -1
- package/esm/browser/components/relay-services.js +109 -2
- package/esm/browser/components/relay-view.js +2 -0
- package/esm/browser/components/remote-hosts.d.ts +10 -0
- package/esm/browser/components/remote-hosts.js +7 -6
- package/esm/browser/components/remote-prompts.js +2 -0
- package/esm/browser/components/scan-screen.d.ts +4 -2
- package/esm/browser/components/scan-screen.js +53 -20
- package/esm/browser/components/screen-navigator-util.d.ts +28 -0
- package/esm/browser/components/screen-navigator-util.js +33 -0
- package/esm/browser/components/screen-navigator.d.ts +30 -0
- package/esm/browser/components/screen-navigator.js +47 -0
- package/esm/browser/components/search-page.js +3 -2
- package/esm/browser/components/secret-peek.d.ts +3 -0
- package/esm/browser/components/secret-peek.js +19 -0
- package/esm/browser/components/secret-text.d.ts +41 -0
- package/esm/browser/components/secret-text.js +80 -0
- package/esm/browser/components/session-settings.d.ts +1 -1
- package/esm/browser/components/session-view.js +188 -7
- package/esm/browser/components/settings-choices.d.ts +9 -3
- package/esm/browser/components/settings-choices.js +17 -29
- package/esm/browser/components/settings-more.d.ts +7 -0
- package/esm/browser/components/settings-more.js +263 -0
- package/esm/browser/components/settings-parts.d.ts +8 -3
- package/esm/browser/components/settings-parts.js +35 -250
- package/esm/browser/components/settings-view.js +44 -16
- package/esm/browser/components/share-dialog.d.ts +2 -3
- package/esm/browser/components/share-dialog.js +6 -41
- package/esm/browser/components/share-friends.d.ts +18 -0
- package/esm/browser/components/share-friends.js +56 -0
- package/esm/browser/components/share-sheet.d.ts +15 -0
- package/esm/browser/components/share-sheet.js +79 -0
- package/esm/browser/components/side-lists.d.ts +16 -4
- package/esm/browser/components/side-lists.js +28 -12
- package/esm/browser/components/sign-in-accounts.d.ts +2 -1
- package/esm/browser/components/sign-in-accounts.js +59 -5
- package/esm/browser/components/sign-in-label.d.ts +5 -0
- package/esm/browser/components/sign-in-label.js +10 -0
- package/esm/browser/components/stop-times.js +1 -0
- package/esm/browser/components/surface-flyout.js +2 -0
- package/esm/browser/components/system-link-host.d.ts +2 -0
- package/esm/browser/components/system-link-host.js +17 -0
- package/esm/browser/components/tool-result.d.ts +3 -2
- package/esm/browser/components/tool-result.js +5 -3
- package/esm/browser/components/tool-view.d.ts +21 -3
- package/esm/browser/components/tool-view.js +103 -35
- package/esm/browser/components/unseen-drop.d.ts +12 -5
- package/esm/browser/components/unseen-drop.js +9 -8
- package/esm/browser/components/use-seen-chats.js +1 -1
- package/esm/browser/components/voice-services.d.ts +6 -0
- package/esm/browser/components/voice-services.js +160 -0
- package/esm/browser/components/voice-talk.d.ts +23 -6
- package/esm/browser/components/voice-talk.js +46 -11
- package/esm/browser/components/web-composer.d.ts +1 -1
- package/esm/browser/components/web-composer.js +2 -2
- package/esm/browser/components/web-dialog.js +2 -0
- package/esm/browser/components/workbench-view.d.ts +1 -1
- package/esm/browser/components/workbench-view.js +38 -5
- package/esm/browser/device/back-stack.d.ts +89 -11
- package/esm/browser/device/back-stack.js +200 -29
- package/esm/browser/device/code-scan.d.ts +23 -10
- package/esm/browser/device/code-scan.js +48 -43
- package/esm/browser/device/device-protocol.d.ts +1 -1
- package/esm/browser/device/device-protocol.js +1 -1
- package/esm/browser/device/edge-back.d.ts +17 -0
- package/esm/browser/device/edge-back.js +52 -0
- package/esm/browser/device/launch-screen.d.ts +1 -1
- package/esm/browser/device/launch-screen.js +2 -2
- package/esm/browser/device/own-gestures.d.ts +1 -1
- package/esm/browser/device/pull-down.js +3 -1
- package/esm/browser/device/row-swipe.js +3 -1
- package/esm/browser/device/screen-awake.d.ts +24 -0
- package/esm/browser/device/screen-awake.js +59 -0
- package/esm/browser/device/sheet-swipe.d.ts +1 -179
- package/esm/browser/device/sheet-swipe.js +3 -433
- package/esm/browser/device/swipe-finger.d.ts +31 -0
- package/esm/browser/device/swipe-finger.js +83 -0
- package/esm/browser/device/swipe-settle.d.ts +52 -0
- package/esm/browser/device/swipe-settle.js +170 -0
- package/esm/browser/device/swipe-util.d.ts +97 -0
- package/esm/browser/device/swipe-util.js +183 -0
- package/esm/browser/drafts/drafts-protocol.d.ts +58 -0
- package/esm/browser/drafts/drafts-protocol.js +75 -0
- package/esm/browser/drafts/drafts.d.ts +21 -0
- package/esm/browser/drafts/drafts.js +91 -0
- package/esm/browser/drafts/use-composer-draft.d.ts +20 -0
- package/esm/browser/drafts/use-composer-draft.js +108 -0
- package/esm/browser/extension/icons.js +14 -1
- package/esm/browser/extension/share-sheet-compat.d.ts +11 -0
- package/esm/browser/extension/share-sheet-compat.js +27 -0
- package/esm/browser/extension/web-api-chats.d.ts +49 -0
- package/esm/browser/extension/web-api-chats.js +2 -0
- package/esm/browser/extension/web-api-components.d.ts +74 -6
- package/esm/browser/extension/web-api-contributions.d.ts +139 -39
- package/esm/browser/extension/web-api-screen-share.d.ts +10 -0
- package/esm/browser/extension/web-api-screen-share.js +3 -0
- package/esm/browser/extension/web-api-services.d.ts +50 -0
- package/esm/browser/extension/web-api-services.js +2 -0
- package/esm/browser/extension/web-extension-api.d.ts +126 -63
- package/esm/browser/extension/web-extension-context.d.ts +9 -9
- package/esm/browser/extension/web-extension-context.js +84 -19
- package/esm/browser/extension/web-extension-protocol.d.ts +26 -3
- package/esm/browser/extension/web-extension-protocol.js +3 -0
- package/esm/browser/extension/web-extension-run.d.ts +5 -2
- package/esm/browser/extension/web-extension-run.js +13 -2
- package/esm/browser/extension/web-extensions-running.d.ts +93 -0
- package/esm/browser/extension/web-extensions-running.js +339 -0
- package/esm/browser/extension/web-extensions.d.ts +9 -82
- package/esm/browser/extension/web-extensions.js +22 -319
- package/esm/browser/extension/web-pages.js +1 -0
- package/esm/browser/extension/web-session-notices.js +6 -1
- package/esm/browser/extension/web-tasks.d.ts +8 -1
- package/esm/browser/extension/web-tasks.js +17 -3
- package/esm/browser/extension/web-view-util.d.ts +2 -2
- package/esm/browser/extension/web-view-util.js +7 -5
- package/esm/browser/files/files.d.ts +1 -0
- package/esm/browser/files/files.js +14 -3
- package/esm/browser/game/game-control.d.ts +118 -0
- package/esm/browser/game/game-control.js +341 -0
- package/esm/browser/game/game-host.d.ts +14 -2
- package/esm/browser/game/game-host.js +22 -5
- package/esm/browser/game/game-protocol.d.ts +15 -0
- package/esm/browser/game/game-runner.d.ts +3 -1
- package/esm/browser/game/game-runner.js +6 -0
- package/esm/browser/game/game-util.d.ts +3 -0
- package/esm/browser/game/game-util.js +3 -0
- package/esm/browser/game/game-view.d.ts +5 -2
- package/esm/browser/game/game-view.js +4 -4
- package/esm/browser/game/game3d-protocol.d.ts +5 -1
- package/esm/browser/game/game3d-runner.d.ts +3 -1
- package/esm/browser/game/game3d-runner.js +14 -0
- package/esm/browser/gateway/console-agents.d.ts +11 -0
- package/esm/browser/gateway/console-agents.js +128 -0
- package/esm/browser/gateway/console-extension.js +0 -1
- package/esm/browser/gateway/console-limits.d.ts +19 -0
- package/esm/browser/gateway/console-limits.js +164 -0
- package/esm/browser/gateway/console-parts.d.ts +29 -32
- package/esm/browser/gateway/console-parts.js +58 -218
- package/esm/browser/gateway/console-tenant.d.ts +2 -4
- package/esm/browser/gateway/console-tenant.js +118 -209
- package/esm/browser/gateway/console-trend.d.ts +11 -0
- package/esm/browser/gateway/console-trend.js +117 -0
- package/esm/browser/gateway/console-view.js +153 -88
- package/esm/browser/hooks.js +1 -3
- package/esm/browser/hosts.d.ts +2 -0
- package/esm/browser/hosts.js +12 -2
- package/esm/browser/i18n/locales.d.ts +280 -13
- package/esm/browser/i18n/messages-ja.js +292 -25
- package/esm/browser/i18n/messages-zh-tw.js +292 -25
- package/esm/browser/i18n/messages.d.ts +277 -10
- package/esm/browser/i18n/messages.js +585 -51
- package/esm/browser/index.d.ts +18 -0
- package/esm/browser/index.js +18 -0
- package/esm/browser/links/links-protocol.d.ts +10 -1
- package/esm/browser/links/links.d.ts +11 -2
- package/esm/browser/links/links.js +65 -7
- package/esm/browser/links/system-links.d.ts +21 -0
- package/esm/browser/links/system-links.js +54 -0
- package/esm/browser/markdown/hooks.d.ts +3 -1
- package/esm/browser/markdown/hooks.js +11 -3
- package/esm/browser/markdown/mermaid.d.ts +18 -4
- package/esm/browser/markdown/mermaid.js +117 -17
- package/esm/browser/notices/notices-protocol.d.ts +12 -0
- package/esm/browser/notices/notices.js +7 -4
- package/esm/browser/offline/device-values.d.ts +2 -0
- package/esm/browser/offline/device-values.js +6 -1
- package/esm/browser/screen/page-answers.d.ts +42 -0
- package/esm/browser/screen/page-answers.js +89 -0
- package/esm/browser/screen/screen-protocol.d.ts +185 -0
- package/esm/browser/screen/screen-protocol.js +60 -0
- package/esm/browser/screen/screen-scroll.d.ts +55 -0
- package/esm/browser/screen/screen-scroll.js +182 -0
- package/esm/browser/screen/screen.d.ts +53 -0
- package/esm/browser/screen/screen.js +292 -0
- package/esm/browser/screen/use-screen-part.d.ts +6 -0
- package/esm/browser/screen/use-screen-part.js +14 -0
- package/esm/browser/settings/navigation.d.ts +9 -21
- package/esm/browser/settings/navigation.js +11 -31
- package/esm/browser/settings/settings-protocol.d.ts +14 -1
- package/esm/browser/settings/settings-protocol.js +24 -2
- package/esm/browser/settings/settings.d.ts +7 -1
- package/esm/browser/settings/settings.js +31 -7
- package/esm/browser/share/shared-extensions.d.ts +29 -0
- package/esm/browser/share/shared-extensions.js +146 -0
- package/esm/browser/share/shared-link.d.ts +11 -0
- package/esm/browser/share/shared-link.js +38 -0
- package/esm/browser/share/shared-page.d.ts +5 -0
- package/esm/browser/share/shared-page.js +137 -0
- package/esm/browser/state/state-protocol.d.ts +14 -0
- package/esm/browser/state/state-protocol.js +18 -0
- package/esm/browser/state/state.d.ts +10 -2
- package/esm/browser/state/state.js +19 -3
- package/esm/browser/style/base.d.ts +1 -1
- package/esm/browser/style/base.js +12 -1
- package/esm/browser/style/chat-list.d.ts +2 -0
- package/esm/browser/style/chat-list.js +150 -0
- package/esm/browser/style/conversation-column.d.ts +2 -0
- package/esm/browser/style/conversation-column.js +250 -0
- package/esm/browser/style/conversation.d.ts +1 -1
- package/esm/browser/style/conversation.js +66 -12
- package/esm/browser/style/dialogs.d.ts +2 -0
- package/esm/browser/style/dialogs.js +162 -0
- package/esm/browser/style/layout.d.ts +2 -2
- package/esm/browser/style/layout.js +8 -540
- package/esm/browser/style/pages.d.ts +1 -1
- package/esm/browser/style/pages.js +172 -110
- package/esm/browser/style/phone.d.ts +1 -1
- package/esm/browser/style/phone.js +13 -3
- package/esm/browser/style/shared.d.ts +2 -0
- package/esm/browser/style/shared.js +24 -0
- package/esm/browser/style/shell.d.ts +1 -1
- package/esm/browser/style/shell.js +59 -0
- package/esm/browser/style/surfaces.d.ts +1 -1
- package/esm/browser/style/surfaces.js +38 -13
- package/esm/browser/style/tasks.d.ts +1 -1
- package/esm/browser/style/tasks.js +29 -10
- package/esm/browser/style/tints.d.ts +5 -4
- package/esm/browser/style/tints.js +9 -9
- package/esm/browser/style.js +8 -0
- package/esm/browser/util/desktop.d.ts +7 -1
- package/esm/browser/util/desktop.js +17 -0
- package/esm/browser/util/gallery.d.ts +24 -2
- package/esm/browser/util/gallery.js +82 -2
- package/esm/browser/util/image-copy.d.ts +16 -0
- package/esm/browser/util/image-copy.js +57 -0
- package/esm/browser/util/image-swipe.d.ts +42 -0
- package/esm/browser/util/image-swipe.js +66 -0
- package/esm/browser/util/message.d.ts +5 -0
- package/esm/browser/util/message.js +14 -0
- package/esm/browser/util/process.d.ts +37 -5
- package/esm/browser/util/process.js +81 -10
- package/esm/browser/util/share-link.d.ts +5 -0
- package/esm/browser/util/share-link.js +10 -0
- package/esm/browser/util/shell-words.d.ts +18 -0
- package/esm/browser/util/shell-words.js +397 -0
- package/esm/browser/util/spoken.d.ts +29 -0
- package/esm/browser/util/spoken.js +92 -0
- package/esm/browser/util/tool.d.ts +9 -0
- package/esm/browser/util/tool.js +71 -6
- package/esm/browser/util/transcript.d.ts +22 -0
- package/esm/browser/util/transcript.js +48 -0
- package/esm/browser/util/turn-end.d.ts +17 -0
- package/esm/browser/util/turn-end.js +164 -0
- package/esm/browser/util/voice.d.ts +5 -1
- package/esm/browser/util/voice.js +6 -1
- package/esm/browser/workbench-hosts.d.ts +36 -0
- package/esm/browser/workbench-hosts.js +120 -0
- package/esm/browser/workbench-lists.d.ts +33 -0
- package/esm/browser/workbench-lists.js +128 -0
- package/esm/browser/workbench-protocol.d.ts +31 -3
- package/esm/browser/workbench-services.d.ts +57 -0
- package/esm/browser/workbench-services.js +158 -0
- package/esm/browser/workbench-util.d.ts +9 -3
- package/esm/browser/workbench-util.js +24 -4
- package/esm/browser/workbench.d.ts +9 -89
- package/esm/browser/workbench.js +61 -344
- package/lib/browser/assistant/assistant-ask-book.d.ts +36 -0
- package/lib/browser/assistant/assistant-ask-book.js +100 -0
- package/lib/browser/assistant/assistant-chat-list.d.ts +4 -4
- package/lib/browser/assistant/assistant-chat-list.js +73 -3
- package/lib/browser/assistant/assistant-conversation.d.ts +111 -0
- package/lib/browser/assistant/assistant-conversation.js +355 -0
- package/lib/browser/assistant/assistant-export.js +11 -8
- package/lib/browser/assistant/assistant-extension.d.ts +3 -2
- package/lib/browser/assistant/assistant-extension.js +117 -9
- package/lib/browser/assistant/assistant-protocol.d.ts +17 -2
- package/lib/browser/assistant/assistant-role.d.ts +22 -4
- package/lib/browser/assistant/assistant-role.js +34 -9
- package/lib/browser/assistant/assistant-state.d.ts +5 -1
- package/lib/browser/assistant/assistant-state.js +11 -0
- package/lib/browser/assistant/assistant-task-source.d.ts +4 -0
- package/lib/browser/assistant/assistant-task-source.js +25 -4
- package/lib/browser/assistant/assistant-task-util.d.ts +27 -7
- package/lib/browser/assistant/assistant-task-util.js +84 -20
- package/lib/browser/assistant/assistant-tasks.d.ts +0 -7
- package/lib/browser/assistant/assistant-tasks.js +3 -5
- package/lib/browser/assistant/assistant-thread.d.ts +23 -0
- package/lib/browser/assistant/assistant-thread.js +148 -0
- package/lib/browser/assistant/assistant-view.js +76 -127
- package/lib/browser/assistant/assistant.d.ts +33 -105
- package/lib/browser/assistant/assistant.js +102 -354
- package/lib/browser/assistant/call-keeper.d.ts +143 -0
- package/lib/browser/assistant/call-keeper.js +295 -0
- package/lib/browser/assistant/call-screen.d.ts +40 -0
- package/lib/browser/assistant/call-screen.js +78 -0
- package/lib/browser/assistant/chat-task-source.d.ts +57 -0
- package/lib/browser/assistant/chat-task-source.js +86 -0
- package/lib/browser/assistant/read-aloud.d.ts +35 -0
- package/lib/browser/assistant/read-aloud.js +102 -0
- package/lib/browser/assistant/realtime-voice.d.ts +139 -0
- package/lib/browser/assistant/realtime-voice.js +483 -0
- package/lib/browser/assistant/task-views.d.ts +11 -9
- package/lib/browser/assistant/task-views.js +47 -24
- package/lib/browser/assistant/voice-call-bar.d.ts +68 -0
- package/lib/browser/assistant/voice-call-bar.js +362 -0
- package/lib/browser/assistant/voice-call.d.ts +208 -0
- package/lib/browser/assistant/voice-call.js +473 -0
- package/lib/browser/assistant/voice-reopen.d.ts +19 -0
- package/lib/browser/assistant/voice-reopen.js +58 -0
- package/lib/browser/chat/chat-shown.d.ts +79 -0
- package/lib/browser/chat/chat-shown.js +266 -0
- package/lib/browser/chat/chat-view.js +7 -9
- package/lib/browser/chat/chat.d.ts +4 -68
- package/lib/browser/chat/chat.js +3 -251
- package/lib/browser/chat/draft-model.d.ts +1 -1
- package/lib/browser/cloud/cloud-sign-in.d.ts +101 -0
- package/lib/browser/cloud/cloud-sign-in.js +244 -0
- package/lib/browser/cloud/device-page.d.ts +16 -0
- package/lib/browser/cloud/device-page.js +42 -0
- package/lib/browser/components/access-view.js +26 -2
- package/lib/browser/components/account-menu.js +3 -1
- package/lib/browser/components/app-contexts.d.ts +13 -0
- package/lib/browser/components/app-contexts.js +64 -0
- package/lib/browser/components/app-nav.d.ts +6 -2
- package/lib/browser/components/app-nav.js +15 -12
- package/lib/browser/components/app-shell-hooks.d.ts +11 -2
- package/lib/browser/components/app-shell-hooks.js +26 -5
- package/lib/browser/components/app-shell-state.d.ts +81 -0
- package/lib/browser/components/app-shell-state.js +507 -0
- package/lib/browser/components/app-view.js +202 -383
- package/lib/browser/components/asks-badge.d.ts +6 -2
- package/lib/browser/components/asks-badge.js +7 -3
- package/lib/browser/components/auth-pictures.d.ts +2 -2
- package/lib/browser/components/auth-pictures.js +13 -1
- package/lib/browser/components/auth-view.d.ts +4 -3
- package/lib/browser/components/auth-view.js +56 -9
- package/lib/browser/components/call-pill.d.ts +12 -0
- package/lib/browser/components/call-pill.js +55 -0
- package/lib/browser/components/chat-asks.d.ts +2 -0
- package/lib/browser/components/chat-asks.js +8 -0
- package/lib/browser/components/chat-busy.d.ts +33 -0
- package/lib/browser/components/chat-busy.js +52 -0
- package/lib/browser/components/chat-home-util.d.ts +113 -0
- package/lib/browser/components/chat-home-util.js +126 -0
- package/lib/browser/components/chat-home.d.ts +55 -0
- package/lib/browser/components/chat-home.js +164 -0
- package/lib/browser/components/chat-icon.d.ts +10 -2
- package/lib/browser/components/chat-icon.js +32 -6
- package/lib/browser/components/chat-list-hooks.d.ts +31 -0
- package/lib/browser/components/chat-list-hooks.js +120 -0
- package/lib/browser/components/chat-list-props.d.ts +55 -0
- package/lib/browser/components/chat-list-props.js +3 -0
- package/lib/browser/components/chat-list-row.d.ts +97 -0
- package/lib/browser/components/chat-list-row.js +247 -0
- package/lib/browser/components/chat-list-util.d.ts +198 -0
- package/lib/browser/components/chat-list-util.js +401 -0
- package/lib/browser/components/chat-list.d.ts +6 -190
- package/lib/browser/components/chat-list.js +354 -561
- package/lib/browser/components/chat-seen.js +1 -0
- package/lib/browser/components/cloud-sign-in-view.d.ts +62 -0
- package/lib/browser/components/cloud-sign-in-view.js +393 -0
- package/lib/browser/components/code-editor.js +2 -1
- package/lib/browser/components/composer-addon-util.d.ts +1 -1
- package/lib/browser/components/composer-addons.d.ts +1 -1
- package/lib/browser/components/composer-attachments.d.ts +12 -0
- package/lib/browser/components/composer-attachments.js +64 -0
- package/lib/browser/components/composer-box-hooks.d.ts +10 -0
- package/lib/browser/components/composer-box-hooks.js +178 -0
- package/lib/browser/components/composer-box-protocol.d.ts +109 -0
- package/lib/browser/components/composer-box-protocol.js +3 -0
- package/lib/browser/components/composer-box.d.ts +1 -95
- package/lib/browser/components/composer-box.js +56 -157
- package/lib/browser/components/composer-target.d.ts +22 -0
- package/lib/browser/components/composer-target.js +46 -0
- package/lib/browser/components/composer.d.ts +7 -1
- package/lib/browser/components/composer.js +15 -11
- package/lib/browser/components/connection-bar.js +22 -3
- package/lib/browser/components/context-menu.d.ts +11 -2
- package/lib/browser/components/context-menu.js +18 -3
- package/lib/browser/components/conversation-find.d.ts +28 -0
- package/lib/browser/components/conversation-find.js +188 -0
- package/lib/browser/components/conversation-scroll-hooks.js +3 -2
- package/lib/browser/components/conversation-scroll-util.d.ts +73 -0
- package/lib/browser/components/conversation-scroll-util.js +85 -1
- package/lib/browser/components/conversation-scroll.d.ts +3 -35
- package/lib/browser/components/conversation-scroll.js +34 -100
- package/lib/browser/components/conversation-view.d.ts +9 -0
- package/lib/browser/components/conversation-view.js +77 -0
- package/lib/browser/components/device-sign-in-page.d.ts +13 -0
- package/lib/browser/components/device-sign-in-page.js +110 -0
- package/lib/browser/components/diff-editor.js +2 -1
- package/lib/browser/components/discover-view.d.ts +3 -2
- package/lib/browser/components/discover-view.js +30 -25
- package/lib/browser/components/dismiss.js +2 -0
- package/lib/browser/components/earlier-messages.d.ts +2 -0
- package/lib/browser/components/earlier-messages.js +2 -1
- package/lib/browser/components/entry-holds.d.ts +23 -0
- package/lib/browser/components/entry-holds.js +86 -0
- package/lib/browser/components/environment-view.js +8 -8
- package/lib/browser/components/face.d.ts +1 -1
- package/lib/browser/components/fold-text.js +3 -1
- package/lib/browser/components/folder-picker.d.ts +7 -0
- package/lib/browser/components/folder-picker.js +88 -18
- package/lib/browser/components/fork-view.js +2 -4
- package/lib/browser/components/gallery.d.ts +1 -1
- package/lib/browser/components/gallery.js +58 -14
- package/lib/browser/components/held-talk.d.ts +6 -2
- package/lib/browser/components/held-talk.js +20 -2
- package/lib/browser/components/host-view.d.ts +9 -4
- package/lib/browser/components/host-view.js +56 -15
- package/lib/browser/components/image-menu.d.ts +12 -0
- package/lib/browser/components/image-menu.js +65 -0
- package/lib/browser/components/image-swipe.d.ts +51 -0
- package/lib/browser/components/image-swipe.js +143 -0
- package/lib/browser/components/image-viewer.d.ts +12 -115
- package/lib/browser/components/image-viewer.js +74 -370
- package/lib/browser/components/image-zoom.d.ts +113 -0
- package/lib/browser/components/image-zoom.js +359 -0
- package/lib/browser/components/kept-call-bar.d.ts +13 -0
- package/lib/browser/components/kept-call-bar.js +135 -0
- package/lib/browser/components/lightbox.d.ts +6 -2
- package/lib/browser/components/lightbox.js +6 -3
- package/lib/browser/components/link-dialog.d.ts +2 -1
- package/lib/browser/components/link-dialog.js +7 -1
- package/lib/browser/components/link.d.ts +4 -0
- package/lib/browser/components/link.js +12 -0
- package/lib/browser/components/list-rows.d.ts +3 -1
- package/lib/browser/components/list-rows.js +2 -1
- package/lib/browser/components/loading.d.ts +13 -0
- package/lib/browser/components/loading.js +55 -0
- package/lib/browser/components/markdown.js +7 -1
- package/lib/browser/components/media.d.ts +2 -0
- package/lib/browser/components/media.js +17 -1
- package/lib/browser/components/mermaid-view.js +13 -6
- package/lib/browser/components/message-actions.d.ts +1 -1
- package/lib/browser/components/message-actions.js +9 -0
- package/lib/browser/components/message-footer.d.ts +3 -1
- package/lib/browser/components/message-footer.js +2 -1
- package/lib/browser/components/message-images.d.ts +42 -0
- package/lib/browser/components/message-images.js +157 -0
- package/lib/browser/components/message-list.d.ts +4 -100
- package/lib/browser/components/message-list.js +23 -462
- package/lib/browser/components/message-menu.js +4 -0
- package/lib/browser/components/message-steps.d.ts +22 -0
- package/lib/browser/components/message-steps.js +226 -0
- package/lib/browser/components/message-user.d.ts +64 -0
- package/lib/browser/components/message-user.js +247 -0
- package/lib/browser/components/model-picker.d.ts +4 -2
- package/lib/browser/components/model-picker.js +16 -3
- package/lib/browser/components/moved-notice.d.ts +15 -0
- package/lib/browser/components/moved-notice.js +96 -0
- package/lib/browser/components/nav-places.d.ts +17 -11
- package/lib/browser/components/nav-places.js +20 -14
- package/lib/browser/components/notice-center.js +35 -0
- package/lib/browser/components/notice-face.js +7 -6
- package/lib/browser/components/phone-shell.d.ts +5 -4
- package/lib/browser/components/phone-shell.js +59 -67
- package/lib/browser/components/plus-menu.d.ts +1 -1
- package/lib/browser/components/relay-services.d.ts +6 -1
- package/lib/browser/components/relay-services.js +107 -0
- package/lib/browser/components/relay-view.js +2 -0
- package/lib/browser/components/remote-hosts.d.ts +10 -0
- package/lib/browser/components/remote-hosts.js +8 -6
- package/lib/browser/components/remote-prompts.js +2 -0
- package/lib/browser/components/scan-screen.d.ts +4 -2
- package/lib/browser/components/scan-screen.js +54 -20
- package/lib/browser/components/screen-navigator-util.d.ts +29 -0
- package/lib/browser/components/screen-navigator-util.js +36 -0
- package/lib/browser/components/screen-navigator.d.ts +31 -0
- package/lib/browser/components/screen-navigator.js +83 -0
- package/lib/browser/components/search-page.js +3 -2
- package/lib/browser/components/secret-peek.d.ts +4 -0
- package/lib/browser/components/secret-peek.js +55 -0
- package/lib/browser/components/secret-text.d.ts +42 -0
- package/lib/browser/components/secret-text.js +118 -0
- package/lib/browser/components/session-settings.d.ts +1 -1
- package/lib/browser/components/session-view.js +188 -7
- package/lib/browser/components/settings-choices.d.ts +10 -4
- package/lib/browser/components/settings-choices.js +16 -28
- package/lib/browser/components/settings-more.d.ts +8 -0
- package/lib/browser/components/settings-more.js +299 -0
- package/lib/browser/components/settings-parts.d.ts +8 -3
- package/lib/browser/components/settings-parts.js +31 -246
- package/lib/browser/components/settings-view.js +44 -16
- package/lib/browser/components/share-dialog.d.ts +2 -3
- package/lib/browser/components/share-dialog.js +5 -40
- package/lib/browser/components/share-friends.d.ts +19 -0
- package/lib/browser/components/share-friends.js +93 -0
- package/lib/browser/components/share-sheet.d.ts +16 -0
- package/lib/browser/components/share-sheet.js +115 -0
- package/lib/browser/components/side-lists.d.ts +16 -4
- package/lib/browser/components/side-lists.js +28 -12
- package/lib/browser/components/sign-in-accounts.d.ts +2 -1
- package/lib/browser/components/sign-in-accounts.js +59 -5
- package/lib/browser/components/sign-in-label.d.ts +6 -0
- package/lib/browser/components/sign-in-label.js +13 -0
- package/lib/browser/components/stop-times.js +1 -0
- package/lib/browser/components/surface-flyout.js +2 -0
- package/lib/browser/components/system-link-host.d.ts +3 -0
- package/lib/browser/components/system-link-host.js +53 -0
- package/lib/browser/components/tool-result.d.ts +3 -2
- package/lib/browser/components/tool-result.js +5 -3
- package/lib/browser/components/tool-view.d.ts +21 -3
- package/lib/browser/components/tool-view.js +104 -36
- package/lib/browser/components/unseen-drop.d.ts +12 -5
- package/lib/browser/components/unseen-drop.js +9 -8
- package/lib/browser/components/use-seen-chats.js +2 -2
- package/lib/browser/components/voice-services.d.ts +7 -0
- package/lib/browser/components/voice-services.js +196 -0
- package/lib/browser/components/voice-talk.d.ts +23 -6
- package/lib/browser/components/voice-talk.js +45 -10
- package/lib/browser/components/web-composer.d.ts +1 -1
- package/lib/browser/components/web-composer.js +2 -2
- package/lib/browser/components/web-dialog.js +2 -0
- package/lib/browser/components/workbench-view.d.ts +1 -1
- package/lib/browser/components/workbench-view.js +38 -5
- package/lib/browser/device/back-stack.d.ts +89 -11
- package/lib/browser/device/back-stack.js +205 -31
- package/lib/browser/device/code-scan.d.ts +23 -10
- package/lib/browser/device/code-scan.js +47 -42
- package/lib/browser/device/device-protocol.d.ts +1 -1
- package/lib/browser/device/device-protocol.js +1 -1
- package/lib/browser/device/edge-back.d.ts +18 -0
- package/lib/browser/device/edge-back.js +89 -0
- package/lib/browser/device/launch-screen.d.ts +1 -1
- package/lib/browser/device/launch-screen.js +2 -2
- package/lib/browser/device/own-gestures.d.ts +1 -1
- package/lib/browser/device/pull-down.js +8 -6
- package/lib/browser/device/row-swipe.js +11 -9
- package/lib/browser/device/screen-awake.d.ts +25 -0
- package/lib/browser/device/screen-awake.js +63 -0
- package/lib/browser/device/sheet-swipe.d.ts +1 -179
- package/lib/browser/device/sheet-swipe.js +16 -452
- package/lib/browser/device/swipe-finger.d.ts +32 -0
- package/lib/browser/device/swipe-finger.js +87 -0
- package/lib/browser/device/swipe-settle.d.ts +53 -0
- package/lib/browser/device/swipe-settle.js +176 -0
- package/lib/browser/device/swipe-util.d.ts +98 -0
- package/lib/browser/device/swipe-util.js +187 -0
- package/lib/browser/drafts/drafts-protocol.d.ts +59 -0
- package/lib/browser/drafts/drafts-protocol.js +78 -0
- package/lib/browser/drafts/drafts.d.ts +22 -0
- package/lib/browser/drafts/drafts.js +94 -0
- package/lib/browser/drafts/use-composer-draft.d.ts +21 -0
- package/lib/browser/drafts/use-composer-draft.js +146 -0
- package/lib/browser/extension/icons.js +13 -0
- package/lib/browser/extension/share-sheet-compat.d.ts +12 -0
- package/lib/browser/extension/share-sheet-compat.js +30 -0
- package/lib/browser/extension/web-api-chats.d.ts +50 -0
- package/lib/browser/extension/web-api-chats.js +3 -0
- package/lib/browser/extension/web-api-components.d.ts +74 -6
- package/lib/browser/extension/web-api-contributions.d.ts +139 -39
- package/lib/browser/extension/web-api-screen-share.d.ts +11 -0
- package/lib/browser/extension/web-api-screen-share.js +6 -0
- package/lib/browser/extension/web-api-services.d.ts +51 -0
- package/lib/browser/extension/web-api-services.js +3 -0
- package/lib/browser/extension/web-extension-api.d.ts +126 -63
- package/lib/browser/extension/web-extension-context.d.ts +9 -9
- package/lib/browser/extension/web-extension-context.js +86 -21
- package/lib/browser/extension/web-extension-protocol.d.ts +26 -3
- package/lib/browser/extension/web-extension-protocol.js +3 -0
- package/lib/browser/extension/web-extension-run.d.ts +5 -2
- package/lib/browser/extension/web-extension-run.js +13 -2
- package/lib/browser/extension/web-extensions-running.d.ts +94 -0
- package/lib/browser/extension/web-extensions-running.js +343 -0
- package/lib/browser/extension/web-extensions.d.ts +9 -82
- package/lib/browser/extension/web-extensions.js +19 -316
- package/lib/browser/extension/web-pages.js +1 -0
- package/lib/browser/extension/web-session-notices.js +8 -3
- package/lib/browser/extension/web-tasks.d.ts +8 -1
- package/lib/browser/extension/web-tasks.js +17 -3
- package/lib/browser/extension/web-view-util.d.ts +2 -2
- package/lib/browser/extension/web-view-util.js +7 -5
- package/lib/browser/files/files.d.ts +1 -0
- package/lib/browser/files/files.js +14 -3
- package/lib/browser/game/game-control.d.ts +119 -0
- package/lib/browser/game/game-control.js +345 -0
- package/lib/browser/game/game-host.d.ts +14 -2
- package/lib/browser/game/game-host.js +22 -5
- package/lib/browser/game/game-protocol.d.ts +15 -0
- package/lib/browser/game/game-runner.d.ts +3 -1
- package/lib/browser/game/game-runner.js +6 -0
- package/lib/browser/game/game-util.d.ts +3 -0
- package/lib/browser/game/game-util.js +3 -0
- package/lib/browser/game/game-view.d.ts +5 -2
- package/lib/browser/game/game-view.js +4 -4
- package/lib/browser/game/game3d-protocol.d.ts +5 -1
- package/lib/browser/game/game3d-runner.d.ts +3 -1
- package/lib/browser/game/game3d-runner.js +14 -0
- package/lib/browser/gateway/console-agents.d.ts +12 -0
- package/lib/browser/gateway/console-agents.js +165 -0
- package/lib/browser/gateway/console-extension.js +0 -1
- package/lib/browser/gateway/console-limits.d.ts +20 -0
- package/lib/browser/gateway/console-limits.js +200 -0
- package/lib/browser/gateway/console-parts.d.ts +29 -32
- package/lib/browser/gateway/console-parts.js +63 -223
- package/lib/browser/gateway/console-tenant.d.ts +2 -4
- package/lib/browser/gateway/console-tenant.js +116 -208
- package/lib/browser/gateway/console-trend.d.ts +12 -0
- package/lib/browser/gateway/console-trend.js +153 -0
- package/lib/browser/gateway/console-view.js +151 -86
- package/lib/browser/hooks.js +1 -3
- package/lib/browser/hosts.d.ts +2 -0
- package/lib/browser/hosts.js +12 -2
- package/lib/browser/i18n/locales.d.ts +280 -13
- package/lib/browser/i18n/messages-ja.js +292 -25
- package/lib/browser/i18n/messages-zh-tw.js +292 -25
- package/lib/browser/i18n/messages.d.ts +277 -10
- package/lib/browser/i18n/messages.js +585 -51
- package/lib/browser/index.d.ts +18 -0
- package/lib/browser/index.js +18 -0
- package/lib/browser/links/links-protocol.d.ts +10 -1
- package/lib/browser/links/links.d.ts +11 -2
- package/lib/browser/links/links.js +65 -7
- package/lib/browser/links/system-links.d.ts +22 -0
- package/lib/browser/links/system-links.js +58 -0
- package/lib/browser/markdown/hooks.d.ts +3 -1
- package/lib/browser/markdown/hooks.js +12 -3
- package/lib/browser/markdown/mermaid.d.ts +18 -4
- package/lib/browser/markdown/mermaid.js +117 -17
- package/lib/browser/notices/notices-protocol.d.ts +12 -0
- package/lib/browser/notices/notices.js +7 -4
- package/lib/browser/offline/device-values.d.ts +2 -0
- package/lib/browser/offline/device-values.js +6 -1
- package/lib/browser/screen/page-answers.d.ts +43 -0
- package/lib/browser/screen/page-answers.js +93 -0
- package/lib/browser/screen/screen-protocol.d.ts +186 -0
- package/lib/browser/screen/screen-protocol.js +63 -0
- package/lib/browser/screen/screen-scroll.d.ts +56 -0
- package/lib/browser/screen/screen-scroll.js +185 -0
- package/lib/browser/screen/screen.d.ts +54 -0
- package/lib/browser/screen/screen.js +295 -0
- package/lib/browser/screen/use-screen-part.d.ts +7 -0
- package/lib/browser/screen/use-screen-part.js +50 -0
- package/lib/browser/settings/navigation.d.ts +9 -21
- package/lib/browser/settings/navigation.js +11 -31
- package/lib/browser/settings/settings-protocol.d.ts +14 -1
- package/lib/browser/settings/settings-protocol.js +24 -2
- package/lib/browser/settings/settings.d.ts +7 -1
- package/lib/browser/settings/settings.js +31 -7
- package/lib/browser/share/shared-extensions.d.ts +30 -0
- package/lib/browser/share/shared-extensions.js +182 -0
- package/lib/browser/share/shared-link.d.ts +12 -0
- package/lib/browser/share/shared-link.js +41 -0
- package/lib/browser/share/shared-page.d.ts +6 -0
- package/lib/browser/share/shared-page.js +173 -0
- package/lib/browser/state/state-protocol.d.ts +14 -0
- package/lib/browser/state/state-protocol.js +20 -1
- package/lib/browser/state/state.d.ts +10 -2
- package/lib/browser/state/state.js +18 -2
- package/lib/browser/style/base.d.ts +1 -1
- package/lib/browser/style/base.js +12 -1
- package/lib/browser/style/chat-list.d.ts +3 -0
- package/lib/browser/style/chat-list.js +153 -0
- package/lib/browser/style/conversation-column.d.ts +3 -0
- package/lib/browser/style/conversation-column.js +253 -0
- package/lib/browser/style/conversation.d.ts +1 -1
- package/lib/browser/style/conversation.js +66 -12
- package/lib/browser/style/dialogs.d.ts +3 -0
- package/lib/browser/style/dialogs.js +165 -0
- package/lib/browser/style/layout.d.ts +2 -2
- package/lib/browser/style/layout.js +8 -540
- package/lib/browser/style/pages.d.ts +1 -1
- package/lib/browser/style/pages.js +172 -110
- package/lib/browser/style/phone.d.ts +1 -1
- package/lib/browser/style/phone.js +14 -4
- package/lib/browser/style/shared.d.ts +3 -0
- package/lib/browser/style/shared.js +27 -0
- package/lib/browser/style/shell.d.ts +1 -1
- package/lib/browser/style/shell.js +59 -0
- package/lib/browser/style/surfaces.d.ts +1 -1
- package/lib/browser/style/surfaces.js +38 -13
- package/lib/browser/style/tasks.d.ts +1 -1
- package/lib/browser/style/tasks.js +29 -10
- package/lib/browser/style/tints.d.ts +5 -4
- package/lib/browser/style/tints.js +9 -9
- package/lib/browser/style.js +8 -0
- package/lib/browser/util/desktop.d.ts +7 -1
- package/lib/browser/util/desktop.js +17 -0
- package/lib/browser/util/gallery.d.ts +24 -2
- package/lib/browser/util/gallery.js +82 -2
- package/lib/browser/util/image-copy.d.ts +17 -0
- package/lib/browser/util/image-copy.js +60 -0
- package/lib/browser/util/image-swipe.d.ts +43 -0
- package/lib/browser/util/image-swipe.js +69 -0
- package/lib/browser/util/message.d.ts +5 -0
- package/lib/browser/util/message.js +14 -0
- package/lib/browser/util/process.d.ts +37 -5
- package/lib/browser/util/process.js +80 -9
- package/lib/browser/util/share-link.d.ts +5 -0
- package/lib/browser/util/share-link.js +10 -0
- package/lib/browser/util/shell-words.d.ts +19 -0
- package/lib/browser/util/shell-words.js +400 -0
- package/lib/browser/util/spoken.d.ts +30 -0
- package/lib/browser/util/spoken.js +95 -0
- package/lib/browser/util/tool.d.ts +9 -0
- package/lib/browser/util/tool.js +71 -6
- package/lib/browser/util/transcript.d.ts +23 -0
- package/lib/browser/util/transcript.js +51 -0
- package/lib/browser/util/turn-end.d.ts +18 -0
- package/lib/browser/util/turn-end.js +167 -0
- package/lib/browser/util/voice.d.ts +5 -1
- package/lib/browser/util/voice.js +6 -1
- package/lib/browser/workbench-hosts.d.ts +37 -0
- package/lib/browser/workbench-hosts.js +124 -0
- package/lib/browser/workbench-lists.d.ts +34 -0
- package/lib/browser/workbench-lists.js +132 -0
- package/lib/browser/workbench-protocol.d.ts +31 -3
- package/lib/browser/workbench-services.d.ts +58 -0
- package/lib/browser/workbench-services.js +162 -0
- package/lib/browser/workbench-util.d.ts +9 -3
- package/lib/browser/workbench-util.js +24 -4
- package/lib/browser/workbench.d.ts +9 -89
- package/lib/browser/workbench.js +58 -341
- package/package.json +7 -7
- package/esm/browser/components/list-skeleton.d.ts +0 -10
- package/esm/browser/components/list-skeleton.js +0 -31
- package/lib/browser/components/list-skeleton.d.ts +0 -11
- package/lib/browser/components/list-skeleton.js +0 -68
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DevicePageUtil = void 0;
|
|
4
|
+
const ta_protocol_1 = require("@celljs/ta-protocol");
|
|
5
|
+
var DevicePageUtil;
|
|
6
|
+
(function (DevicePageUtil) {
|
|
7
|
+
/** The code of a device this page was opened for (SignInPageUtil.deviceBack), taken out of the address. */
|
|
8
|
+
function take() {
|
|
9
|
+
if (typeof location === 'undefined') {
|
|
10
|
+
return undefined;
|
|
11
|
+
}
|
|
12
|
+
const found = read(location.hash);
|
|
13
|
+
if (found) {
|
|
14
|
+
history.replaceState(null, '', location.pathname + location.search);
|
|
15
|
+
}
|
|
16
|
+
return found;
|
|
17
|
+
}
|
|
18
|
+
DevicePageUtil.take = take;
|
|
19
|
+
function read(hash) {
|
|
20
|
+
var _a;
|
|
21
|
+
const params = new URLSearchParams(hash.replace(/^#/, ''));
|
|
22
|
+
const code = params.get('device');
|
|
23
|
+
if (!code || !/^[A-Z0-9]{4}-[A-Z0-9]{4}$/.test(code)) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
const outcome = params.get('device-sign-in');
|
|
27
|
+
const from = (_a = params.get('from')) === null || _a === void 0 ? void 0 : _a.slice(0, 300);
|
|
28
|
+
return { code, ...(outcome === 'done' || outcome === 'waiting' || outcome === 'failed' ? { outcome } : {}), ...(from ? { from } : {}) };
|
|
29
|
+
}
|
|
30
|
+
DevicePageUtil.read = read;
|
|
31
|
+
/** Lets the device of `code` in as the account this browser signed in with here. */
|
|
32
|
+
async function approve(code, token, fetcher = fetch) {
|
|
33
|
+
const response = await fetcher(`${ta_protocol_1.TA_DEVICE_SIGN_IN_PATH}/approve`, {
|
|
34
|
+
method: 'POST',
|
|
35
|
+
headers: { authorization: `Bearer ${token}`, 'content-type': 'application/json' },
|
|
36
|
+
body: JSON.stringify({ code }),
|
|
37
|
+
}).catch(() => undefined);
|
|
38
|
+
return Boolean(response === null || response === void 0 ? void 0 : response.ok);
|
|
39
|
+
}
|
|
40
|
+
DevicePageUtil.approve = approve;
|
|
41
|
+
})(DevicePageUtil || (exports.DevicePageUtil = DevicePageUtil = {}));
|
|
42
|
+
//# sourceMappingURL=device-page.js.map
|
|
@@ -42,7 +42,7 @@ const hooks_1 = require("../hooks");
|
|
|
42
42
|
const use_t_1 = require("../i18n/use-t");
|
|
43
43
|
const workbench_util_1 = require("../workbench-util");
|
|
44
44
|
const access_util_1 = require("./access-util");
|
|
45
|
-
const
|
|
45
|
+
const chat_list_util_1 = require("./chat-list-util");
|
|
46
46
|
const icon_1 = require("./icon");
|
|
47
47
|
const settings_controls_1 = require("./settings-controls");
|
|
48
48
|
const sign_in_accounts_1 = require("./sign-in-accounts");
|
|
@@ -65,7 +65,7 @@ function AccountAvatar({ id, avatar, className = 'ta-access-avatar' }) {
|
|
|
65
65
|
return React.createElement("img", { className: className, src: avatar, alt: "", referrerPolicy: "no-referrer" });
|
|
66
66
|
}
|
|
67
67
|
const name = id.split(':').slice(1).join(':') || id;
|
|
68
|
-
return (React.createElement("span", { className: `${className} ta-chat-avatar ta-tone-${
|
|
68
|
+
return (React.createElement("span", { className: `${className} ta-chat-avatar ta-tone-${chat_list_util_1.ChatListUtil.tone(id)}`, "aria-hidden": "true" }, name.charAt(0).toUpperCase()));
|
|
69
69
|
}
|
|
70
70
|
function AccountLabel({ id, name, avatar }) {
|
|
71
71
|
return (React.createElement("span", { className: "ta-access-account" },
|
|
@@ -117,7 +117,31 @@ function AccessSettings({ info, onChange }) {
|
|
|
117
117
|
}
|
|
118
118
|
};
|
|
119
119
|
const date = (time) => new Date(time).toLocaleString(language, { dateStyle: 'medium', timeStyle: 'short' });
|
|
120
|
+
// Everyone who signs in with a provider let in at once (`<provider>:*`), or each asks and waits to be let in.
|
|
121
|
+
const open = async (provider, on) => {
|
|
122
|
+
const pattern = `${provider.id}:*`;
|
|
123
|
+
if (on) {
|
|
124
|
+
await run(() => bench.access.allow(pattern));
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
const name = sign_in_accounts_1.SignInAccountsUtil.label(provider, t);
|
|
128
|
+
const confirmed = await notices.confirm({
|
|
129
|
+
title: t('ta.access.openOff', { name }),
|
|
130
|
+
message: t('ta.access.openOffDetail'),
|
|
131
|
+
confirmLabel: t('ta.access.openOffConfirm'),
|
|
132
|
+
danger: true,
|
|
133
|
+
});
|
|
134
|
+
if (confirmed) {
|
|
135
|
+
await run(() => bench.access.disallow(pattern));
|
|
136
|
+
}
|
|
137
|
+
};
|
|
120
138
|
return (React.createElement(React.Fragment, null,
|
|
139
|
+
manage &&
|
|
140
|
+
info.providers.map(provider => {
|
|
141
|
+
const rule = info.accounts.find(account => account.id === `${provider.id}:*`);
|
|
142
|
+
return (React.createElement(settings_controls_1.Row, { key: `open:${provider.id}`, label: t('ta.access.open', { name: provider.name }), description: t('ta.access.openHint') },
|
|
143
|
+
React.createElement(settings_controls_1.Switch, { checked: Boolean(rule), disabled: busy || (rule === null || rule === void 0 ? void 0 : rule.source) === 'env', label: t('ta.access.open', { name: provider.name }), onChange: on => open(provider, on) })));
|
|
144
|
+
}),
|
|
121
145
|
manage && here && info.providers.length > 0 && (React.createElement(settings_controls_1.Row, { label: t('ta.access.bind'), description: t('ta.access.bindHint'), stacked: true },
|
|
122
146
|
React.createElement("div", { className: "ta-access-bind" }, info.providers.map(provider => (React.createElement("button", { key: provider.id, type: "button", className: "ta-button", disabled: busy, onClick: () => void bind(provider.id) },
|
|
123
147
|
React.createElement(sign_in_marks_1.SignInMark, { provider: provider.id, size: 15 }),
|
|
@@ -124,6 +124,8 @@ function useAccountEntries(onSettings, onDialog) {
|
|
|
124
124
|
]
|
|
125
125
|
: []),
|
|
126
126
|
entry('about', t('ta.manage.about'), lucide_react_1.Info, () => onSettings('about')),
|
|
127
|
+
// As WeChat's: the computer in use kept, to come back to in one tap; signing out forgets it.
|
|
128
|
+
entry('switchSignIn', t('ta.account.switchSignIn'), lucide_react_1.ArrowLeftRight, () => workbench.switchSignIn()),
|
|
127
129
|
entry('signOut', t('ta.settings.signOut'), lucide_react_1.LogOut, () => workbench.signOut(), { danger: true }),
|
|
128
130
|
],
|
|
129
131
|
];
|
|
@@ -212,7 +214,7 @@ function AccountMenu({ onSettings, active }) {
|
|
|
212
214
|
React.createElement("span", { className: "ta-menu-label" }, choice.label))))))));
|
|
213
215
|
};
|
|
214
216
|
return (React.createElement("div", { className: "ta-account", ref: root },
|
|
215
|
-
React.createElement("button", { ref: button, type: "button", className: `ta-account-button${open || active ? ' ta-on' : ''}`, title: `${account.name} · ${account.state}`, "aria-label": label, "aria-haspopup": "menu", "aria-expanded": open, "aria-controls": open ? id : undefined, onClick: () => (open ? close() : setOpen(true)) },
|
|
217
|
+
React.createElement("button", { ref: button, type: "button", className: `ta-account-button${open || active ? ' ta-on' : ''}`, title: `${account.name} · ${account.state}`, "aria-label": label, "aria-haspopup": "menu", "aria-expanded": open, "aria-controls": open ? id : undefined, "data-ta-place": "settings", onClick: () => (open ? close() : setOpen(true)) },
|
|
216
218
|
React.createElement(AccountFigure, { size: 28, className: "ta-account-figure" }),
|
|
217
219
|
account.offlineShown && React.createElement("span", { className: "ta-account-dot" })),
|
|
218
220
|
open && (React.createElement("div", { className: "ta-account-menu", id: id, role: "menu", "aria-label": t('ta.account.menu'), onKeyDown: onArrows },
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { OpenLink } from './link';
|
|
3
|
+
import { FileUrls } from './media';
|
|
4
|
+
/**
|
|
5
|
+
* What every part of the page reads of the shell and of web extensions: the files and links it opens, how extensions
|
|
6
|
+
* draw messages, code, tools, avatars and icons, their menus, and what a tap on a name of the vault shows.
|
|
7
|
+
*/
|
|
8
|
+
export declare function AppContexts({ fileUrl, openLink, children, }: {
|
|
9
|
+
fileUrl: React.ContextType<typeof FileUrls>;
|
|
10
|
+
openLink: React.ContextType<typeof OpenLink>;
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
}): React.JSX.Element;
|
|
13
|
+
//# sourceMappingURL=app-contexts.d.ts.map
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.AppContexts = AppContexts;
|
|
37
|
+
const React = __importStar(require("react"));
|
|
38
|
+
const extension_view_1 = require("../extension/extension-view");
|
|
39
|
+
const hooks_1 = require("../hooks");
|
|
40
|
+
const code_renderers_1 = require("../markdown/code-renderers");
|
|
41
|
+
const chat_icon_1 = require("./chat-icon");
|
|
42
|
+
const link_1 = require("./link");
|
|
43
|
+
const media_1 = require("./media");
|
|
44
|
+
const secret_peek_1 = require("./secret-peek");
|
|
45
|
+
const secret_text_1 = require("./secret-text");
|
|
46
|
+
/**
|
|
47
|
+
* What every part of the page reads of the shell and of web extensions: the files and links it opens, how extensions
|
|
48
|
+
* draw messages, code, tools, avatars and icons, their menus, and what a tap on a name of the vault shows.
|
|
49
|
+
*/
|
|
50
|
+
function AppContexts({ fileUrl, openLink, children, }) {
|
|
51
|
+
const [extensions] = (0, hooks_1.useWebExtensions)();
|
|
52
|
+
const secretPeek = (0, secret_peek_1.useSecretPeek)();
|
|
53
|
+
return (React.createElement(media_1.FileUrls.Provider, { value: fileUrl },
|
|
54
|
+
React.createElement(link_1.OpenLink.Provider, { value: openLink },
|
|
55
|
+
React.createElement(extension_view_1.MessageRenderers.Provider, { value: extensions.renderers },
|
|
56
|
+
React.createElement(code_renderers_1.CodeRenderers.Provider, { value: extensions.codeRenderers },
|
|
57
|
+
React.createElement(extension_view_1.ToolRenderers.Provider, { value: extensions.toolRenderers },
|
|
58
|
+
React.createElement(extension_view_1.SessionAvatars.Provider, { value: extensions.avatars },
|
|
59
|
+
React.createElement(chat_icon_1.ChatIconsProvider, { entries: extensions.chatIcons },
|
|
60
|
+
React.createElement(extension_view_1.SessionMenus.Provider, { value: extensions.sessionMenus },
|
|
61
|
+
React.createElement(extension_view_1.LoadedExtensions.Provider, { value: extensions.extensions },
|
|
62
|
+
React.createElement(secret_text_1.SecretPeeks.Provider, { value: secretPeek }, children)))))))))));
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=app-contexts.js.map
|
|
@@ -29,15 +29,19 @@ export interface RailProps {
|
|
|
29
29
|
onSurface(surface: PhoneSurface | undefined): void;
|
|
30
30
|
/** What a held entry does: the double listens, the chats open a new one (entryHold). */
|
|
31
31
|
holds: EntryHolds;
|
|
32
|
-
/**
|
|
32
|
+
/** What waits for the user to decide (WebTaskUtil.deciding): a count on the entry of the double, whose home lists it. */
|
|
33
33
|
asks?: number;
|
|
34
|
+
/** Lets go what the conversations ask, as the user drags the count away. */
|
|
35
|
+
onDismissAsks?(): void;
|
|
36
|
+
/** A chat said something unseen: the amber dot on the double's entry, as on a phone's first tab; dragged away, all seen. */
|
|
37
|
+
onSeeAll?(): void;
|
|
34
38
|
}
|
|
35
39
|
/**
|
|
36
40
|
* The navigation on the left, as the tabs of a phone: the logo; the lists of the sidebar; the pages, and Discover
|
|
37
41
|
* once some are under it; the account with the settings at the bottom. A page's menu (a right click) puts it under
|
|
38
42
|
* Discover; that of the double talks to it, and that of the chats opens a new one (entryMenu).
|
|
39
43
|
*/
|
|
40
|
-
export declare function Rail({ lists, list, onList, navigation, current, onPage, onDiscover, onSettings, settingsShown, surfaces, surface, onSurface, holds, asks, }: RailProps): React.JSX.Element;
|
|
44
|
+
export declare function Rail({ lists, list, onList, navigation, current, onPage, onDiscover, onSettings, settingsShown, surfaces, surface, onSurface, holds, asks, onDismissAsks, onSeeAll, }: RailProps): React.JSX.Element;
|
|
41
45
|
/** A sidebar view of a web extension, under its title or its own top bar. */
|
|
42
46
|
export declare function SidebarView({ view }: {
|
|
43
47
|
view: WebViewEntry;
|
|
@@ -56,6 +56,7 @@ const icon_1 = require("./icon");
|
|
|
56
56
|
const nav_places_1 = require("./nav-places");
|
|
57
57
|
const phone_shell_1 = require("./phone-shell");
|
|
58
58
|
const ta_avatar_1 = require("./ta-avatar");
|
|
59
|
+
const unseen_drop_1 = require("./unseen-drop");
|
|
59
60
|
const workbench_toggle_1 = require("./workbench-toggle");
|
|
60
61
|
/* The navigation of the app: the rail, a sidebar view, a page of the main area. */
|
|
61
62
|
/** Where the pages of the rail go on this device: a phone has the room its tabs leave. */
|
|
@@ -79,25 +80,26 @@ function useNavigation(views) {
|
|
|
79
80
|
update,
|
|
80
81
|
};
|
|
81
82
|
}
|
|
82
|
-
function RailItem({ label, active, onClick, onContextMenu, onPointerDown, 'data-held': held, children }) {
|
|
83
|
-
return (React.createElement("button", { type: "button", className: `ta-rail-item ${active ? 'ta-active' : ''}`, title: label, "aria-label": label, "aria-pressed": active, onClick: onClick, onContextMenu: onContextMenu, onPointerDown: onPointerDown, "data-held": held }, children));
|
|
83
|
+
function RailItem({ label, place, active, onClick, onContextMenu, onPointerDown, 'data-held': held, children }) {
|
|
84
|
+
return (React.createElement("button", { type: "button", className: `ta-rail-item ${active ? 'ta-active' : ''}`, title: label, "aria-label": label, "aria-pressed": active, onClick: onClick, onContextMenu: onContextMenu, onPointerDown: onPointerDown, "data-held": held, "data-ta-place": place }, children));
|
|
84
85
|
}
|
|
85
86
|
/**
|
|
86
87
|
* The navigation on the left, as the tabs of a phone: the logo; the lists of the sidebar; the pages, and Discover
|
|
87
88
|
* once some are under it; the account with the settings at the bottom. A page's menu (a right click) puts it under
|
|
88
89
|
* Discover; that of the double talks to it, and that of the chats opens a new one (entryMenu).
|
|
89
90
|
*/
|
|
90
|
-
function Rail({ lists, list, onList, navigation, current, onPage, onDiscover, onSettings, settingsShown, surfaces, surface, onSurface, holds, asks, }) {
|
|
91
|
+
function Rail({ lists, list, onList, navigation, current, onPage, onDiscover, onSettings, settingsShown, surfaces, surface, onSurface, holds, asks, onDismissAsks, onSeeAll, }) {
|
|
91
92
|
const t = (0, use_t_1.useT)();
|
|
92
93
|
const [{ server }] = (0, hooks_1.useWorkbench)();
|
|
93
94
|
const [menu, openMenu] = (0, context_menu_1.useContextMenu)();
|
|
94
95
|
const held = (0, hold_1.useHeld)();
|
|
95
96
|
const settingsItem = { label: t('ta.nav.settings'), run: () => onSettings('navigation') };
|
|
96
|
-
/** A page of the rail
|
|
97
|
-
const item = (view
|
|
97
|
+
/** A page of the rail: its menu puts it under Discover. */
|
|
98
|
+
const item = (view) => {
|
|
98
99
|
var _a;
|
|
99
100
|
const Glyph = (_a = view.icon) !== null && _a !== void 0 ? _a : lucide_react_1.PanelTop;
|
|
100
|
-
return (React.createElement(RailItem, { key: view.id, label: web_extension_protocol_1.WebLabelUtil.text(view.title), active: !settingsShown && current === view.id, onClick: () => onPage(view.id), onContextMenu:
|
|
101
|
+
return (React.createElement(RailItem, { key: view.id, label: web_extension_protocol_1.WebLabelUtil.text(view.title), place: `page:${view.id}`, active: !settingsShown && current === view.id, onClick: () => onPage(view.id), onContextMenu: event => openMenu(event, [{ label: t('ta.nav.fold'), run: () => navigation.fold(view.id) }, '-', settingsItem]) },
|
|
102
|
+
React.createElement(Glyph, { size: 20, strokeWidth: 1.6 })));
|
|
101
103
|
};
|
|
102
104
|
const discover = (0, nav_places_1.hasDiscover)(navigation) || current === nav_places_1.DISCOVER;
|
|
103
105
|
// The workbench from anywhere, a page or the settings too, as the launcher and the board.
|
|
@@ -106,13 +108,13 @@ function Rail({ lists, list, onList, navigation, current, onPage, onDiscover, on
|
|
|
106
108
|
React.createElement("div", { className: "ta-rail-logo", title: server ? `Ta v${server.version}` : 'Ta' },
|
|
107
109
|
React.createElement(dino_1.Dino, { size: 26 })),
|
|
108
110
|
React.createElement("div", { className: "ta-rail-items" },
|
|
109
|
-
|
|
110
|
-
lists.map(entry => (React.createElement(RailItem, { key: entry.id, label: entry.label, active: list === entry.id, onClick: () => onList(entry.id), ...held((0, nav_places_1.entryHold)(entry.id, entry.double, holds)) },
|
|
111
|
+
lists.map(entry => (React.createElement(RailItem, { key: entry.id, label: entry.label, place: `list:${entry.id}`, active: list === entry.id, onClick: () => onList(entry.id), ...held((0, nav_places_1.entryHold)(entry.id, entry.double, holds)) },
|
|
111
112
|
entry.double ? React.createElement(ta_avatar_1.DinoFace, { size: 24, className: "ta-nav-face" }) : React.createElement(entry.icon, { size: 20, strokeWidth: 1.6 }),
|
|
112
|
-
entry.
|
|
113
|
+
entry.double &&
|
|
114
|
+
(asks ? (React.createElement(asks_badge_1.AsksBadge, { count: asks, onDismiss: onDismissAsks })) : (onSeeAll && React.createElement(unseen_drop_1.UnseenDrop, { label: t('ta.chat.unseen'), onDismiss: onSeeAll, className: "ta-tabbar-dot ta-rail-dot" })))))),
|
|
113
115
|
(navigation.nav.length > 0 || discover) && React.createElement("hr", { className: "ta-rail-divider" }),
|
|
114
116
|
navigation.nav.map(view => item(view)),
|
|
115
|
-
discover && (React.createElement(RailItem, { label: t('ta.discover'), active: !settingsShown && current === nav_places_1.DISCOVER, onClick: onDiscover, onContextMenu: event => openMenu(event, [settingsItem]) },
|
|
117
|
+
discover && (React.createElement(RailItem, { label: t('ta.discover'), place: "discover", active: !settingsShown && current === nav_places_1.DISCOVER, onClick: onDiscover, onContextMenu: event => openMenu(event, [settingsItem]) },
|
|
116
118
|
React.createElement(lucide_react_1.Compass, { size: 20, strokeWidth: 1.6 })))),
|
|
117
119
|
(workbench || surfaces.launcher || surfaces.board) && (React.createElement("div", { className: "ta-rail-tools" },
|
|
118
120
|
workbench && (React.createElement(RailItem, { label: `${t('ta.workbench')} (${agent_settings_1.ShortcutUtil.keys('Mod+J').join(agent_settings_1.ShortcutUtil.isMac() ? '' : '+')})`, active: workbench.open, onClick: workbench.toggle },
|
|
@@ -168,7 +170,8 @@ function PageView({ view, leading }) {
|
|
|
168
170
|
React.createElement(view.head, null)))) : (React.createElement("div", { className: "ta-main-title" },
|
|
169
171
|
React.createElement("span", null, title))),
|
|
170
172
|
React.createElement(workbench_toggle_1.WorkbenchToggle, null)),
|
|
171
|
-
React.createElement(
|
|
172
|
-
React.createElement(View,
|
|
173
|
+
React.createElement("div", { className: "ta-page-body" },
|
|
174
|
+
React.createElement(extension_view_1.ExtensionBoundary, { key: view.id, name: title, resetKey: View },
|
|
175
|
+
React.createElement(View, null)))));
|
|
173
176
|
}
|
|
174
177
|
//# sourceMappingURL=app-nav.js.map
|
|
@@ -12,6 +12,12 @@ export type TabPage = 'discover' | 'me';
|
|
|
12
12
|
/** The user put off signing in to a model, in this tab: the page shows the app until the tab is reopened. */
|
|
13
13
|
export declare const LOGIN_LATER: StateSpec<boolean>;
|
|
14
14
|
export declare const SIDE: StateSpec<string>;
|
|
15
|
+
/** Discover or Me in place of the conversation, in this tab, as it showed when the page or the app was closed. */
|
|
16
|
+
export declare const TAB_PAGE: StateSpec<TabPage | undefined>;
|
|
17
|
+
/** The section of the settings shown in place of the conversation, in this tab; none when they are closed. */
|
|
18
|
+
export declare const SETTINGS_SHOWN: StateSpec<string | undefined>;
|
|
19
|
+
/** The workbench over the whole of the right, in this tab. */
|
|
20
|
+
export declare const WORKBENCH_MAX: StateSpec<boolean>;
|
|
15
21
|
export declare const SIDEBAR: PaneSpec;
|
|
16
22
|
export declare const EDITOR: PaneSpec;
|
|
17
23
|
/** The width of the navigation rail, in style.ts. */
|
|
@@ -23,8 +29,11 @@ export declare const CARDS_ID = "ta/cards";
|
|
|
23
29
|
* them hides it where it lies over the conversation, the user's choice kept.
|
|
24
30
|
*/
|
|
25
31
|
export declare function useRight(): [boolean, () => void, () => void, () => void];
|
|
26
|
-
/**
|
|
27
|
-
|
|
32
|
+
/**
|
|
33
|
+
* Cmd/Ctrl+B shows or hides the sidebar, Cmd/Ctrl+J the workbench, and Cmd/Ctrl+, opens the settings, as in an IDE;
|
|
34
|
+
* Cmd/Ctrl+Shift+T opens again the conversation last taken out of the list, as a browser its tab last closed.
|
|
35
|
+
*/
|
|
36
|
+
export declare function useKeys(toggle: () => void, openSettings: () => void, toggleWorkbench: () => void, reopen?: () => void): void;
|
|
28
37
|
/**
|
|
29
38
|
* The installed app with its title bar hidden draws the bar itself (see .ta-titlebar), but the browser
|
|
30
39
|
* paints the corners of the window's buttons with theme-color: the traffic lights at the left over the
|
|
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.CARDS_ID = exports.RAIL = exports.EDITOR = exports.SIDEBAR = exports.SIDE = exports.LOGIN_LATER = exports.FIRST_SIDE = void 0;
|
|
36
|
+
exports.CARDS_ID = exports.RAIL = exports.EDITOR = exports.SIDEBAR = exports.WORKBENCH_MAX = exports.SETTINGS_SHOWN = exports.TAB_PAGE = exports.SIDE = exports.LOGIN_LATER = exports.FIRST_SIDE = void 0;
|
|
37
37
|
exports.useRight = useRight;
|
|
38
38
|
exports.useKeys = useKeys;
|
|
39
39
|
exports.useTitlebarColor = useTitlebarColor;
|
|
@@ -57,6 +57,17 @@ exports.FIRST_SIDE = '*';
|
|
|
57
57
|
/** The user put off signing in to a model, in this tab: the page shows the app until the tab is reopened. */
|
|
58
58
|
exports.LOGIN_LATER = { key: 'login.later', tier: 'tab', initial: false, parse: state_protocol_1.StateUtil.boolean };
|
|
59
59
|
exports.SIDE = { key: 'side', tier: 'tab', initial: exports.FIRST_SIDE, parse: state_protocol_1.StateUtil.string };
|
|
60
|
+
/** Discover or Me in place of the conversation, in this tab, as it showed when the page or the app was closed. */
|
|
61
|
+
exports.TAB_PAGE = {
|
|
62
|
+
key: 'tabPage',
|
|
63
|
+
tier: 'tab',
|
|
64
|
+
initial: undefined,
|
|
65
|
+
parse: value => (value === 'discover' || value === 'me' ? value : undefined),
|
|
66
|
+
};
|
|
67
|
+
/** The section of the settings shown in place of the conversation, in this tab; none when they are closed. */
|
|
68
|
+
exports.SETTINGS_SHOWN = { key: 'settings.shown', tier: 'tab', initial: undefined, parse: state_protocol_1.StateUtil.string };
|
|
69
|
+
/** The workbench over the whole of the right, in this tab. */
|
|
70
|
+
exports.WORKBENCH_MAX = { key: 'workbench.max', tier: 'tab', initial: false, parse: state_protocol_1.StateUtil.boolean };
|
|
60
71
|
exports.SIDEBAR = { key: 'sidebar', initial: 300, min: 200, max: 520 };
|
|
61
72
|
exports.EDITOR = { key: 'editor', initial: 480, min: 320, max: 1200 };
|
|
62
73
|
/** The width of the navigation rail, in style.ts. */
|
|
@@ -93,14 +104,24 @@ function useRight() {
|
|
|
93
104
|
// `set` is stable, so `reveal` is too: effects may depend on it.
|
|
94
105
|
return [open, toggle, reveal, uncover];
|
|
95
106
|
}
|
|
96
|
-
/**
|
|
97
|
-
|
|
107
|
+
/**
|
|
108
|
+
* Cmd/Ctrl+B shows or hides the sidebar, Cmd/Ctrl+J the workbench, and Cmd/Ctrl+, opens the settings, as in an IDE;
|
|
109
|
+
* Cmd/Ctrl+Shift+T opens again the conversation last taken out of the list, as a browser its tab last closed.
|
|
110
|
+
*/
|
|
111
|
+
function useKeys(toggle, openSettings, toggleWorkbench, reopen) {
|
|
98
112
|
React.useEffect(() => {
|
|
99
113
|
const onKey = (event) => {
|
|
100
|
-
if (!(event.metaKey || event.ctrlKey) || event.
|
|
114
|
+
if (!(event.metaKey || event.ctrlKey) || event.altKey) {
|
|
101
115
|
return;
|
|
102
116
|
}
|
|
103
117
|
const key = event.key.toLowerCase();
|
|
118
|
+
if (event.shiftKey) {
|
|
119
|
+
if (key === 't' && reopen) {
|
|
120
|
+
event.preventDefault();
|
|
121
|
+
reopen();
|
|
122
|
+
}
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
104
125
|
if (key === 'b') {
|
|
105
126
|
event.preventDefault();
|
|
106
127
|
toggle();
|
|
@@ -116,7 +137,7 @@ function useKeys(toggle, openSettings, toggleWorkbench) {
|
|
|
116
137
|
};
|
|
117
138
|
window.addEventListener('keydown', onKey);
|
|
118
139
|
return () => window.removeEventListener('keydown', onKey);
|
|
119
|
-
}, [toggle, openSettings, toggleWorkbench]);
|
|
140
|
+
}, [toggle, openSettings, toggleWorkbench, reopen]);
|
|
120
141
|
}
|
|
121
142
|
/**
|
|
122
143
|
* The installed app with its title bar hidden draws the bar itself (see .ta-titlebar), but the browser
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { TaState } from '../state/state-protocol';
|
|
3
|
+
import { ThumbnailUtil } from '../util/thumbnail';
|
|
4
|
+
import type { PhoneSurface } from './phone-shell';
|
|
5
|
+
import type { SettingsSection } from './settings-view';
|
|
6
|
+
/** What AppShell shows and does: its state, what follows it, and the ways it changes. */
|
|
7
|
+
export declare function useAppShell(): {
|
|
8
|
+
t: import("../i18n/use-t").Translate;
|
|
9
|
+
workbench: import("..").WorkbenchState;
|
|
10
|
+
extensions: import("..").WebExtensionsState;
|
|
11
|
+
host: import("..").TaWebExtensions;
|
|
12
|
+
store: import("@celljs/ta-client").SessionStore | undefined;
|
|
13
|
+
pending: string | undefined;
|
|
14
|
+
chat: import("../chat/chat-protocol").TaChat;
|
|
15
|
+
setSideId: (value: string | ((previous: string) => string)) => void;
|
|
16
|
+
removedChats: string[];
|
|
17
|
+
chatsByDirectory: boolean;
|
|
18
|
+
setChatsByDirectory: (value: boolean | ((previous: boolean) => boolean)) => void;
|
|
19
|
+
foldedChats: string[];
|
|
20
|
+
setFoldedChats: (value: string[] | ((previous: string[]) => string[])) => void;
|
|
21
|
+
pinnedChats: string[];
|
|
22
|
+
setPinnedChats: (value: string[] | ((previous: string[]) => string[])) => void;
|
|
23
|
+
letGoAsks: import("./chat-asks").LetGoAsks;
|
|
24
|
+
setLetGoAsks: (value: import("./chat-asks").LetGoAsks | ((previous: import("./chat-asks").LetGoAsks) => import("./chat-asks").LetGoAsks)) => void;
|
|
25
|
+
navOpen: boolean;
|
|
26
|
+
setNavOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
27
|
+
phone: boolean;
|
|
28
|
+
screenOpen: boolean;
|
|
29
|
+
setScreenOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
30
|
+
surface: PhoneSurface | undefined;
|
|
31
|
+
setSurface: React.Dispatch<React.SetStateAction<PhoneSurface | undefined>>;
|
|
32
|
+
surfaces: {
|
|
33
|
+
launcher: boolean;
|
|
34
|
+
board: boolean;
|
|
35
|
+
};
|
|
36
|
+
settings: string | undefined;
|
|
37
|
+
setSettings: (value: string | ((previous: string | undefined) => string | undefined) | undefined) => void;
|
|
38
|
+
settingsOpened: number;
|
|
39
|
+
tabPage: import("./app-shell-hooks").TabPage | undefined;
|
|
40
|
+
setTabPage: (value: ((previous: import("./app-shell-hooks").TabPage | undefined) => import("./app-shell-hooks").TabPage | undefined) | import("./app-shell-hooks").TabPage | undefined) => void;
|
|
41
|
+
openSettings: (section?: SettingsSection) => void;
|
|
42
|
+
closeSettings: () => void;
|
|
43
|
+
settingsShown: boolean;
|
|
44
|
+
toggleRight: () => void;
|
|
45
|
+
maximized: boolean;
|
|
46
|
+
setMaximized: (value: boolean | ((previous: boolean) => boolean)) => void;
|
|
47
|
+
chatSettings: import("..").Settings;
|
|
48
|
+
readArchived: () => undefined;
|
|
49
|
+
sidebar: import("./split-pane").Pane;
|
|
50
|
+
editor: import("./split-pane").Pane;
|
|
51
|
+
online: boolean;
|
|
52
|
+
fileUrl: (path: string, box?: ThumbnailUtil.Box) => Promise<string>;
|
|
53
|
+
openLink: (target: import("..").LinkTarget, external: boolean) => void;
|
|
54
|
+
activeEditor: string | undefined;
|
|
55
|
+
view: import("..").WebViewEntry | undefined;
|
|
56
|
+
sideView: import("..").WebViewEntry | undefined;
|
|
57
|
+
side: string;
|
|
58
|
+
showPage: (id: string) => void;
|
|
59
|
+
lists: import("./side-lists").SideList[];
|
|
60
|
+
tools: import("..").WebViewEntry[];
|
|
61
|
+
openTool: (id: string) => void;
|
|
62
|
+
editors: boolean;
|
|
63
|
+
showEditors: boolean;
|
|
64
|
+
navigation: import("./nav-places").Navigation;
|
|
65
|
+
codeScan: import("../device/code-scan").CodeScan | undefined;
|
|
66
|
+
notices: import("..").TaNotices;
|
|
67
|
+
railCurrent: string;
|
|
68
|
+
tabView: import("..").WebViewEntry | undefined;
|
|
69
|
+
screenPage: import("..").WebViewEntry | undefined;
|
|
70
|
+
seenChats: import("./chat-seen").ChatSeen;
|
|
71
|
+
looking: string | undefined;
|
|
72
|
+
state: TaState;
|
|
73
|
+
sideShown: boolean;
|
|
74
|
+
showList: (id: string) => void;
|
|
75
|
+
toggleWorkbench: () => void;
|
|
76
|
+
picking: React.RefObject<() => void>;
|
|
77
|
+
chatsBusy: boolean;
|
|
78
|
+
deciding: number;
|
|
79
|
+
setChatsBusy: React.Dispatch<React.SetStateAction<boolean>>;
|
|
80
|
+
};
|
|
81
|
+
//# sourceMappingURL=app-shell-state.d.ts.map
|