@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,359 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ImageZoom = void 0;
|
|
4
|
+
const zoom_1 = require("../util/zoom");
|
|
5
|
+
/** How long a step of the buttons, a double tap, or a pinch let go past the limits takes to get there. */
|
|
6
|
+
const ANIMATE_MS = 200;
|
|
7
|
+
/** Two taps this close in time and place are a double tap. */
|
|
8
|
+
const DOUBLE_TAP_MS = 300;
|
|
9
|
+
const DOUBLE_TAP_PX = 30;
|
|
10
|
+
/** A finger or the mouse that moved less than this taps or clicks. */
|
|
11
|
+
const TAP_PX = 8;
|
|
12
|
+
/**
|
|
13
|
+
* Zooms a picture in a box that scrolls, as the viewers of pictures do: all of it at first, never larger than
|
|
14
|
+
* its own pixels; two fingers pinch it, a trackpad pinches it (a wheel with Ctrl, or Safari's gestures), a
|
|
15
|
+
* wheel with Ctrl or ⌘ zooms it at the pointer, a double tap or click zooms in there and back out; zoomed,
|
|
16
|
+
* a finger or the wheel scrolls it and the mouse drags it. A pinch past the limits goes on a little and comes
|
|
17
|
+
* back. What scrolls is the box itself: a finger scrolls it on the compositor, and the sheets of the phone
|
|
18
|
+
* leave a picture that scrolls sideways alone (sheet-swipe.ts).
|
|
19
|
+
*/
|
|
20
|
+
class ImageZoom {
|
|
21
|
+
constructor(viewport, stage, image, on) {
|
|
22
|
+
this.viewport = viewport;
|
|
23
|
+
this.stage = stage;
|
|
24
|
+
this.image = image;
|
|
25
|
+
this.on = on;
|
|
26
|
+
this.scale = 1;
|
|
27
|
+
this.limits = { base: 1, min: 1, max: 1 };
|
|
28
|
+
/** Whether it shows as at first: then it fits again when the box changes size. */
|
|
29
|
+
this.fitted = true;
|
|
30
|
+
this.lastTouch = 0;
|
|
31
|
+
this.dragged = false;
|
|
32
|
+
this.frame = 0;
|
|
33
|
+
this.announced = 0;
|
|
34
|
+
this.onLoad = () => {
|
|
35
|
+
const { image } = this;
|
|
36
|
+
// A picture of no size of its own (an SVG with only a viewBox) fills the box.
|
|
37
|
+
const box = this.box();
|
|
38
|
+
this.natural = { width: image.naturalWidth || box.width, height: image.naturalHeight || box.height };
|
|
39
|
+
this.fitted = true;
|
|
40
|
+
this.layout();
|
|
41
|
+
image.dataset.ready = '';
|
|
42
|
+
this.on.loaded(this.natural);
|
|
43
|
+
};
|
|
44
|
+
this.onWheel = (event) => {
|
|
45
|
+
// A pinch of a trackpad comes as a wheel with Ctrl; Ctrl or ⌘ with a wheel zooms too. A wheel alone scrolls.
|
|
46
|
+
if (!event.ctrlKey && !event.metaKey) {
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
event.preventDefault();
|
|
50
|
+
cancelAnimationFrame(this.frame);
|
|
51
|
+
const point = this.local(event.clientX, event.clientY);
|
|
52
|
+
const last = this.wheelAnchor;
|
|
53
|
+
const same = last && event.timeStamp - last.t < 250 && Math.hypot(point.x - last.point.x, point.y - last.point.y) < 2;
|
|
54
|
+
const spot = same ? last.spot : this.spotAt(point);
|
|
55
|
+
this.wheelAnchor = { point, spot, t: event.timeStamp };
|
|
56
|
+
this.place(zoom_1.ZoomUtil.clamp(this.scale * zoom_1.ZoomUtil.wheel(event.deltaY, event.deltaMode), this.limits), spot, point);
|
|
57
|
+
};
|
|
58
|
+
/** Safari's pinch of a trackpad (and of a finger, which the touches have already). */
|
|
59
|
+
this.onGesture = (event) => {
|
|
60
|
+
event.preventDefault();
|
|
61
|
+
const gesture = event;
|
|
62
|
+
if (this.pinch || Date.now() - this.lastTouch < 500) {
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
const point = this.local(gesture.clientX, gesture.clientY);
|
|
66
|
+
if (event.type === 'gesturestart') {
|
|
67
|
+
cancelAnimationFrame(this.frame);
|
|
68
|
+
this.gesture = { scale: this.scale };
|
|
69
|
+
}
|
|
70
|
+
else if (this.gesture && event.type === 'gesturechange') {
|
|
71
|
+
this.place(zoom_1.ZoomUtil.clamp(this.gesture.scale * gesture.scale, this.limits), this.spotAt(point), point);
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
this.gesture = undefined;
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
this.onTouchStart = (event) => {
|
|
78
|
+
this.lastTouch = Date.now();
|
|
79
|
+
cancelAnimationFrame(this.frame);
|
|
80
|
+
if (event.touches.length >= 2) {
|
|
81
|
+
const { point, distance } = this.pinchOf(event.touches);
|
|
82
|
+
this.pinch = { scale: this.scale, distance, spot: this.spotAt(point) };
|
|
83
|
+
this.tap = undefined;
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
const touch = event.touches[0];
|
|
87
|
+
this.tap = touch && { x: touch.clientX, y: touch.clientY, t: event.timeStamp, moved: false };
|
|
88
|
+
};
|
|
89
|
+
this.onTouchMove = (event) => {
|
|
90
|
+
this.lastTouch = Date.now();
|
|
91
|
+
if (this.pinch && event.touches.length >= 2) {
|
|
92
|
+
// Neither the page nor a sheet moves under a pinch.
|
|
93
|
+
event.preventDefault();
|
|
94
|
+
const { point, distance } = this.pinchOf(event.touches);
|
|
95
|
+
this.place(zoom_1.ZoomUtil.rubber((this.pinch.scale * distance) / this.pinch.distance, this.limits), this.pinch.spot, point);
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
const touch = event.touches[0];
|
|
99
|
+
if (this.tap && touch && Math.hypot(touch.clientX - this.tap.x, touch.clientY - this.tap.y) > TAP_PX) {
|
|
100
|
+
this.tap.moved = true;
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
this.onTouchEnd = (event) => {
|
|
104
|
+
this.lastTouch = Date.now();
|
|
105
|
+
if (this.pinch) {
|
|
106
|
+
if (event.touches.length >= 2) {
|
|
107
|
+
const { point, distance } = this.pinchOf(event.touches);
|
|
108
|
+
this.pinch = { scale: this.scale, distance, spot: this.spotAt(point) };
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
this.pinch = undefined;
|
|
112
|
+
// Past the limits, it comes back, about the middle of the box.
|
|
113
|
+
const settled = zoom_1.ZoomUtil.clamp(this.scale, this.limits);
|
|
114
|
+
if (settled !== this.scale) {
|
|
115
|
+
this.zoomTo(settled);
|
|
116
|
+
}
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
const tap = this.tap;
|
|
120
|
+
this.tap = undefined;
|
|
121
|
+
if (!tap || tap.moved || event.touches.length > 0 || event.timeStamp - tap.t > DOUBLE_TAP_MS) {
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
const last = this.lastTap;
|
|
125
|
+
if (last && tap.t - last.t < DOUBLE_TAP_MS * 1.5 && Math.hypot(tap.x - last.x, tap.y - last.y) < DOUBLE_TAP_PX) {
|
|
126
|
+
this.lastTap = undefined;
|
|
127
|
+
clearTimeout(this.backgroundTimer);
|
|
128
|
+
// No click, nor a zoom of the page, follows.
|
|
129
|
+
if (event.cancelable) {
|
|
130
|
+
event.preventDefault();
|
|
131
|
+
}
|
|
132
|
+
this.zoomTo(zoom_1.ZoomUtil.toggle(this.scale, this.limits), this.local(tap.x, tap.y));
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
this.lastTap = { x: tap.x, y: tap.y, t: tap.t };
|
|
136
|
+
};
|
|
137
|
+
this.onPointerDown = (event) => {
|
|
138
|
+
var _a;
|
|
139
|
+
this.dragged = false;
|
|
140
|
+
if (event.pointerType !== 'mouse' || event.button !== 0 || this.viewport.dataset.zoomed !== 'true') {
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
cancelAnimationFrame(this.frame);
|
|
144
|
+
const { viewport } = this;
|
|
145
|
+
this.drag = { id: event.pointerId, x: event.clientX, y: event.clientY, left: viewport.scrollLeft, top: viewport.scrollTop, moved: false };
|
|
146
|
+
(_a = viewport.setPointerCapture) === null || _a === void 0 ? void 0 : _a.call(viewport, event.pointerId);
|
|
147
|
+
};
|
|
148
|
+
this.onPointerMove = (event) => {
|
|
149
|
+
const drag = this.drag;
|
|
150
|
+
if (!drag || drag.id !== event.pointerId) {
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
const dx = event.clientX - drag.x;
|
|
154
|
+
const dy = event.clientY - drag.y;
|
|
155
|
+
if (!drag.moved && Math.hypot(dx, dy) > TAP_PX / 2) {
|
|
156
|
+
drag.moved = true;
|
|
157
|
+
this.viewport.dataset.dragging = '';
|
|
158
|
+
}
|
|
159
|
+
if (drag.moved) {
|
|
160
|
+
this.viewport.scrollLeft = drag.left - dx;
|
|
161
|
+
this.viewport.scrollTop = drag.top - dy;
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
this.onPointerUp = (event) => {
|
|
165
|
+
var _a;
|
|
166
|
+
if (((_a = this.drag) === null || _a === void 0 ? void 0 : _a.id) === event.pointerId) {
|
|
167
|
+
this.dragged = this.drag.moved;
|
|
168
|
+
this.drag = undefined;
|
|
169
|
+
delete this.viewport.dataset.dragging;
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
/** A click beside the picture; after a touch, once it is clear that no second tap follows. */
|
|
173
|
+
this.onClick = (event) => {
|
|
174
|
+
if (this.dragged || event.target === this.image) {
|
|
175
|
+
return;
|
|
176
|
+
}
|
|
177
|
+
clearTimeout(this.backgroundTimer);
|
|
178
|
+
if (Date.now() - this.lastTouch < 800) {
|
|
179
|
+
this.backgroundTimer = setTimeout(() => this.on.background(), DOUBLE_TAP_MS * 1.5);
|
|
180
|
+
}
|
|
181
|
+
else {
|
|
182
|
+
this.on.background();
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
this.onDoubleClick = (event) => {
|
|
186
|
+
// A double tap is the touches'.
|
|
187
|
+
if (Date.now() - this.lastTouch < 800) {
|
|
188
|
+
return;
|
|
189
|
+
}
|
|
190
|
+
event.preventDefault();
|
|
191
|
+
this.zoomTo(zoom_1.ZoomUtil.toggle(this.scale, this.limits), this.local(event.clientX, event.clientY));
|
|
192
|
+
};
|
|
193
|
+
this.onKey = (event) => {
|
|
194
|
+
if (event.altKey) {
|
|
195
|
+
return;
|
|
196
|
+
}
|
|
197
|
+
const keys = {
|
|
198
|
+
'+': () => this.step(1),
|
|
199
|
+
'=': () => this.step(1),
|
|
200
|
+
'-': () => this.step(-1),
|
|
201
|
+
'0': () => this.fit(),
|
|
202
|
+
'1': () => this.actual(),
|
|
203
|
+
};
|
|
204
|
+
const action = keys[event.key];
|
|
205
|
+
if (action) {
|
|
206
|
+
event.preventDefault();
|
|
207
|
+
action();
|
|
208
|
+
}
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
attach() {
|
|
212
|
+
const { viewport, image } = this;
|
|
213
|
+
const listeners = [
|
|
214
|
+
[image, 'load', this.onLoad],
|
|
215
|
+
[viewport, 'wheel', this.onWheel, { passive: false }],
|
|
216
|
+
[viewport, 'touchstart', this.onTouchStart, { passive: true }],
|
|
217
|
+
[viewport, 'touchmove', this.onTouchMove, { passive: false }],
|
|
218
|
+
[viewport, 'touchend', this.onTouchEnd],
|
|
219
|
+
[viewport, 'touchcancel', this.onTouchEnd],
|
|
220
|
+
[viewport, 'gesturestart', this.onGesture],
|
|
221
|
+
[viewport, 'gesturechange', this.onGesture],
|
|
222
|
+
[viewport, 'gestureend', this.onGesture],
|
|
223
|
+
[viewport, 'pointerdown', this.onPointerDown],
|
|
224
|
+
[viewport, 'pointermove', this.onPointerMove],
|
|
225
|
+
[viewport, 'pointerup', this.onPointerUp],
|
|
226
|
+
[viewport, 'pointercancel', this.onPointerUp],
|
|
227
|
+
[viewport, 'click', this.onClick],
|
|
228
|
+
[viewport, 'dblclick', this.onDoubleClick],
|
|
229
|
+
[viewport, 'keydown', this.onKey],
|
|
230
|
+
];
|
|
231
|
+
for (const [target, type, listener, options] of listeners) {
|
|
232
|
+
target.addEventListener(type, listener, options);
|
|
233
|
+
}
|
|
234
|
+
const resize = new ResizeObserver(() => this.layout());
|
|
235
|
+
resize.observe(viewport);
|
|
236
|
+
if (image.complete && image.naturalWidth) {
|
|
237
|
+
this.onLoad();
|
|
238
|
+
}
|
|
239
|
+
return () => {
|
|
240
|
+
for (const [target, type, listener] of listeners) {
|
|
241
|
+
target.removeEventListener(type, listener);
|
|
242
|
+
}
|
|
243
|
+
resize.disconnect();
|
|
244
|
+
cancelAnimationFrame(this.frame);
|
|
245
|
+
clearTimeout(this.backgroundTimer);
|
|
246
|
+
};
|
|
247
|
+
}
|
|
248
|
+
/** Zooms to `scale` at `point` of the box (its middle by default), sliding there. */
|
|
249
|
+
zoomTo(scale, point = this.middle(), animate = true) {
|
|
250
|
+
const to = zoom_1.ZoomUtil.clamp(scale, this.limits);
|
|
251
|
+
if (!animate) {
|
|
252
|
+
this.place(to, this.spotAt(point), point);
|
|
253
|
+
return;
|
|
254
|
+
}
|
|
255
|
+
const from = this.scale;
|
|
256
|
+
const spot = this.spotAt(point);
|
|
257
|
+
const start = performance.now();
|
|
258
|
+
cancelAnimationFrame(this.frame);
|
|
259
|
+
const tick = (now) => {
|
|
260
|
+
const progress = Math.min(1, (now - start) / ANIMATE_MS);
|
|
261
|
+
const eased = 1 - (1 - progress) ** 3;
|
|
262
|
+
this.place(from + (to - from) * eased, spot, point);
|
|
263
|
+
if (progress < 1) {
|
|
264
|
+
this.frame = requestAnimationFrame(tick);
|
|
265
|
+
}
|
|
266
|
+
};
|
|
267
|
+
this.frame = requestAnimationFrame(tick);
|
|
268
|
+
}
|
|
269
|
+
step(way) {
|
|
270
|
+
this.zoomTo(zoom_1.ZoomUtil.step(this.scale, way, this.limits));
|
|
271
|
+
}
|
|
272
|
+
fit() {
|
|
273
|
+
this.zoomTo(this.limits.base);
|
|
274
|
+
}
|
|
275
|
+
actual() {
|
|
276
|
+
this.zoomTo(1);
|
|
277
|
+
}
|
|
278
|
+
box() {
|
|
279
|
+
return { width: this.viewport.clientWidth, height: this.viewport.clientHeight };
|
|
280
|
+
}
|
|
281
|
+
middle() {
|
|
282
|
+
const box = this.box();
|
|
283
|
+
return { x: box.width / 2, y: box.height / 2 };
|
|
284
|
+
}
|
|
285
|
+
/** A point of the page in the box. */
|
|
286
|
+
local(clientX, clientY) {
|
|
287
|
+
const rect = this.viewport.getBoundingClientRect();
|
|
288
|
+
return { x: clientX - rect.left, y: clientY - rect.top };
|
|
289
|
+
}
|
|
290
|
+
/** The spot of the picture (its own pixels) under `point` of the box. */
|
|
291
|
+
spotAt(point) {
|
|
292
|
+
var _a;
|
|
293
|
+
const natural = (_a = this.natural) !== null && _a !== void 0 ? _a : { width: 1, height: 1 };
|
|
294
|
+
const box = this.box();
|
|
295
|
+
return {
|
|
296
|
+
x: zoom_1.ZoomUtil.at(point.x, this.viewport.scrollLeft, natural.width, this.scale, box.width),
|
|
297
|
+
y: zoom_1.ZoomUtil.at(point.y, this.viewport.scrollTop, natural.height, this.scale, box.height),
|
|
298
|
+
};
|
|
299
|
+
}
|
|
300
|
+
/** Draws it at `scale` with `spot` of the picture under `point` of the box. */
|
|
301
|
+
place(scale, spot, point) {
|
|
302
|
+
const natural = this.natural;
|
|
303
|
+
if (!natural) {
|
|
304
|
+
return;
|
|
305
|
+
}
|
|
306
|
+
const box = this.box();
|
|
307
|
+
const width = natural.width * scale;
|
|
308
|
+
const height = natural.height * scale;
|
|
309
|
+
this.scale = scale;
|
|
310
|
+
this.fitted = zoom_1.ZoomUtil.fitted(scale, this.limits);
|
|
311
|
+
const { stage, image, viewport } = this;
|
|
312
|
+
stage.style.width = `${zoom_1.ZoomUtil.extent(width, box.width)}px`;
|
|
313
|
+
stage.style.height = `${zoom_1.ZoomUtil.extent(height, box.height)}px`;
|
|
314
|
+
image.style.width = `${width}px`;
|
|
315
|
+
image.style.height = `${height}px`;
|
|
316
|
+
image.style.transform = `translate(${zoom_1.ZoomUtil.offset(width, box.width)}px, ${zoom_1.ZoomUtil.offset(height, box.height)}px)`;
|
|
317
|
+
image.classList.toggle('ta-zoom-pixelated', scale >= zoom_1.ZoomUtil.PIXELATED);
|
|
318
|
+
viewport.scrollLeft = zoom_1.ZoomUtil.scrollTo(spot.x, point.x, natural.width, scale, box.width);
|
|
319
|
+
viewport.scrollTop = zoom_1.ZoomUtil.scrollTo(spot.y, point.y, natural.height, scale, box.height);
|
|
320
|
+
viewport.dataset.zoomed = String(width + 2 * zoom_1.ZoomUtil.PAD > box.width + 1 || height + 2 * zoom_1.ZoomUtil.PAD > box.height + 1);
|
|
321
|
+
this.announce();
|
|
322
|
+
}
|
|
323
|
+
/** Tells what shows the scale, once a frame. */
|
|
324
|
+
announce() {
|
|
325
|
+
if (this.announced) {
|
|
326
|
+
return;
|
|
327
|
+
}
|
|
328
|
+
this.announced = requestAnimationFrame(() => {
|
|
329
|
+
this.announced = 0;
|
|
330
|
+
this.on.changed({ scale: this.scale, ...this.limits });
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
/** Fits it again in a box of another size, or keeps the middle where it is when zoomed. */
|
|
334
|
+
layout() {
|
|
335
|
+
if (!this.natural) {
|
|
336
|
+
return;
|
|
337
|
+
}
|
|
338
|
+
const middle = this.middle();
|
|
339
|
+
const spot = this.spotAt(middle);
|
|
340
|
+
const fitted = this.fitted;
|
|
341
|
+
this.limits = zoom_1.ZoomUtil.limits(this.natural, this.box());
|
|
342
|
+
if (fitted) {
|
|
343
|
+
this.place(this.limits.base, { x: this.natural.width / 2, y: this.natural.height / 2 }, middle);
|
|
344
|
+
}
|
|
345
|
+
else {
|
|
346
|
+
this.place(zoom_1.ZoomUtil.clamp(this.scale, this.limits), spot, middle);
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
pinchOf(touches) {
|
|
350
|
+
const a = touches[0];
|
|
351
|
+
const b = touches[1];
|
|
352
|
+
return {
|
|
353
|
+
point: this.local((a.clientX + b.clientX) / 2, (a.clientY + b.clientY) / 2),
|
|
354
|
+
distance: Math.max(1, Math.hypot(a.clientX - b.clientX, a.clientY - b.clientY)),
|
|
355
|
+
};
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
exports.ImageZoom = ImageZoom;
|
|
359
|
+
//# sourceMappingURL=image-zoom.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The call going on, wherever the page is (TaCallKeeper), on any device of the user: a part of the screen Ta's agents
|
|
4
|
+
* read and work over every page (CallScreen), and while its conversation is not in front of the user, as a
|
|
5
|
+
* messenger's small window at the top of the page: what it is doing, a tap back to its conversation, and Hang up. A
|
|
6
|
+
* call on another device of the user (TaCallKeeper.elsewhere) shows the same, where it goes on, and hangs up there.
|
|
7
|
+
* `looking`: the conversation in front.
|
|
8
|
+
*/
|
|
9
|
+
export declare function KeptCallBar({ looking, onBack }: {
|
|
10
|
+
looking: string | undefined;
|
|
11
|
+
onBack(sessionId: string, double: boolean): void;
|
|
12
|
+
}): React.JSX.Element | null;
|
|
13
|
+
//# sourceMappingURL=kept-call-bar.d.ts.map
|
|
@@ -0,0 +1,135 @@
|
|
|
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.KeptCallBar = KeptCallBar;
|
|
37
|
+
const react_1 = require("@celljs/react");
|
|
38
|
+
const React = __importStar(require("react"));
|
|
39
|
+
const call_keeper_1 = require("../assistant/call-keeper");
|
|
40
|
+
const call_screen_1 = require("../assistant/call-screen");
|
|
41
|
+
const web_extension_protocol_1 = require("../extension/web-extension-protocol");
|
|
42
|
+
const hooks_1 = require("../hooks");
|
|
43
|
+
const use_t_1 = require("../i18n/use-t");
|
|
44
|
+
const screen_protocol_1 = require("../screen/screen-protocol");
|
|
45
|
+
const use_screen_part_1 = require("../screen/use-screen-part");
|
|
46
|
+
const call_pill_1 = require("./call-pill");
|
|
47
|
+
/** How often a call elsewhere is looked at again while it shows: it goes once its page stops telling of it. */
|
|
48
|
+
const ELSEWHERE_TICK_MS = 15000;
|
|
49
|
+
/**
|
|
50
|
+
* The call going on, wherever the page is (TaCallKeeper), on any device of the user: a part of the screen Ta's agents
|
|
51
|
+
* read and work over every page (CallScreen), and while its conversation is not in front of the user, as a
|
|
52
|
+
* messenger's small window at the top of the page: what it is doing, a tap back to its conversation, and Hang up. A
|
|
53
|
+
* call on another device of the user (TaCallKeeper.elsewhere) shows the same, where it goes on, and hangs up there.
|
|
54
|
+
* `looking`: the conversation in front.
|
|
55
|
+
*/
|
|
56
|
+
function KeptCallBar({ looking, onBack }) {
|
|
57
|
+
const t = (0, use_t_1.useT)();
|
|
58
|
+
const keeper = (0, react_1.useInject)(call_keeper_1.TaCallKeeper);
|
|
59
|
+
const [{ settings }, store] = (0, hooks_1.useSettings)();
|
|
60
|
+
const kept = React.useSyncExternalStore(listener => keeper.subscribe(listener), () => keeper.kept);
|
|
61
|
+
const elsewhere = React.useSyncExternalStore(listener => keeper.subscribe(listener), () => keeper.elsewhere);
|
|
62
|
+
useResumedCall(looking, onBack);
|
|
63
|
+
const call = kept === null || kept === void 0 ? void 0 : kept.held.call;
|
|
64
|
+
const state = React.useSyncExternalStore(listener => { var _a; return (_a = call === null || call === void 0 ? void 0 : call.subscribe(listener)) !== null && _a !== void 0 ? _a : (() => undefined); }, () => call === null || call === void 0 ? void 0 : call.state);
|
|
65
|
+
const [, tick] = React.useReducer((n) => n + 1, 0);
|
|
66
|
+
React.useEffect(() => {
|
|
67
|
+
if (!elsewhere) {
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
const timer = setInterval(tick, ELSEWHERE_TICK_MS);
|
|
71
|
+
return () => clearInterval(timer);
|
|
72
|
+
}, [elsewhere]);
|
|
73
|
+
if (kept && call && (state === null || state === void 0 ? void 0 : state.active)) {
|
|
74
|
+
const inFront = kept.sessionId === looking;
|
|
75
|
+
const back = () => onBack(kept.sessionId, !!kept.double);
|
|
76
|
+
const seen = {
|
|
77
|
+
title: kept.title,
|
|
78
|
+
phase: state.phase,
|
|
79
|
+
paused: state.paused,
|
|
80
|
+
heard: !!state.heard.trim(),
|
|
81
|
+
captions: settings.callCaptions,
|
|
82
|
+
};
|
|
83
|
+
return (React.createElement(React.Fragment, null,
|
|
84
|
+
React.createElement(CallPart, { seen: seen, controls: {
|
|
85
|
+
hangUp: () => keeper.hangUp(),
|
|
86
|
+
interrupt: () => call.interrupt(),
|
|
87
|
+
done: () => call.endTurn(),
|
|
88
|
+
captions: on => store.update({ callCaptions: on }),
|
|
89
|
+
...(inFront ? {} : { open: back }),
|
|
90
|
+
} }),
|
|
91
|
+
!inFront && (React.createElement(call_pill_1.CallPill, { title: kept.title, phase: call_screen_1.CallScreen.phase(t, seen), connecting: state.phase === 'connecting', onBack: back, onHangUp: () => keeper.hangUp() }))));
|
|
92
|
+
}
|
|
93
|
+
if (elsewhere) {
|
|
94
|
+
const back = () => onBack(elsewhere.sessionId, !!elsewhere.double);
|
|
95
|
+
const seen = {
|
|
96
|
+
title: elsewhere.title,
|
|
97
|
+
phase: elsewhere.phase,
|
|
98
|
+
paused: elsewhere.paused,
|
|
99
|
+
elsewhere: elsewhere.handheld ? 'phone' : 'computer',
|
|
100
|
+
};
|
|
101
|
+
const where = t(elsewhere.handheld ? 'ta.call.onPhone' : 'ta.call.onComputer');
|
|
102
|
+
return (React.createElement(React.Fragment, null,
|
|
103
|
+
React.createElement(CallPart, { seen: seen, controls: { hangUp: () => keeper.hangUpElsewhere(), ...(elsewhere.sessionId === looking ? {} : { open: back }) } }),
|
|
104
|
+
React.createElement(call_pill_1.CallPill, { title: elsewhere.title, phase: `${where} · ${call_screen_1.CallScreen.phase(t, seen)}`, connecting: elsewhere.phase === 'connecting', onBack: back, onHangUp: () => keeper.hangUpElsewhere() })));
|
|
105
|
+
}
|
|
106
|
+
return null;
|
|
107
|
+
}
|
|
108
|
+
/** The call as a part of the screen (CallScreen), while it goes on. */
|
|
109
|
+
function CallPart({ seen, controls }) {
|
|
110
|
+
const t = (0, use_t_1.useT)();
|
|
111
|
+
const screen = (0, react_1.useInject)(screen_protocol_1.TaScreen);
|
|
112
|
+
(0, use_screen_part_1.useScreenPart)(call_screen_1.CallScreen.spec(seen, controls, t, screen));
|
|
113
|
+
return null;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* The call that went on as the page went away (it loaded again, the app restarted): once connected, its conversation
|
|
117
|
+
* shows again, and its view calls again (TaCallKeeper.resume).
|
|
118
|
+
*/
|
|
119
|
+
function useResumedCall(looking, onBack) {
|
|
120
|
+
const keeper = (0, react_1.useInject)(call_keeper_1.TaCallKeeper);
|
|
121
|
+
const extensions = (0, react_1.useInject)(web_extension_protocol_1.TaWebExtensions);
|
|
122
|
+
const [{ status }] = (0, hooks_1.useWorkbench)();
|
|
123
|
+
const resumed = React.useRef(false);
|
|
124
|
+
React.useEffect(() => {
|
|
125
|
+
const spot = keeper.resuming;
|
|
126
|
+
if (resumed.current || !spot || status !== 'online' || (!spot.double && !extensions.sessionSwitcher())) {
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
resumed.current = true;
|
|
130
|
+
if (spot.double || looking !== spot.sessionId) {
|
|
131
|
+
onBack(spot.sessionId, !!spot.double);
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
//# sourceMappingURL=kept-call-bar.js.map
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
/**
|
|
3
3
|
* An image over the page, to look at closely (ImageViewer): pinched, zoomed, dragged, and with `onPrevious` /
|
|
4
|
-
* `onNext` the images beside it, by its side buttons and
|
|
4
|
+
* `onNext` the images beside it, by its side buttons, ← → and a finger that swipes it (`previousSrc` / `nextSrc`
|
|
5
|
+
* in sight as it does, as the viewers of pictures of a phone). A click or tap beside it,
|
|
5
6
|
* its close button or Escape closes it. In the top layer, so no container clips it; the touches in it are its
|
|
6
7
|
* own, never a swipe of a sheet under it.
|
|
7
8
|
*/
|
|
8
|
-
export declare function Lightbox({ src, alt, caption, count, onClose, onPrevious, onNext, }: {
|
|
9
|
+
export declare function Lightbox({ src, alt, caption, count, onClose, onPrevious, onNext, previousSrc, nextSrc, }: {
|
|
9
10
|
src: string;
|
|
10
11
|
alt: string;
|
|
11
12
|
/** The words that name it, at the top. */
|
|
@@ -18,5 +19,8 @@ export declare function Lightbox({ src, alt, caption, count, onClose, onPrevious
|
|
|
18
19
|
onClose(): void;
|
|
19
20
|
onPrevious?(): void;
|
|
20
21
|
onNext?(): void;
|
|
22
|
+
/** The images before and after it, in sight as a finger swipes it to them. */
|
|
23
|
+
previousSrc?: string;
|
|
24
|
+
nextSrc?: string;
|
|
21
25
|
}): React.JSX.Element;
|
|
22
26
|
//# sourceMappingURL=lightbox.d.ts.map
|
|
@@ -36,16 +36,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
36
36
|
exports.Lightbox = Lightbox;
|
|
37
37
|
const lucide_react_1 = require("lucide-react");
|
|
38
38
|
const React = __importStar(require("react"));
|
|
39
|
+
const back_stack_1 = require("../device/back-stack");
|
|
39
40
|
const use_t_1 = require("../i18n/use-t");
|
|
40
41
|
const icon_1 = require("./icon");
|
|
41
42
|
const image_viewer_1 = require("./image-viewer");
|
|
42
43
|
/**
|
|
43
44
|
* An image over the page, to look at closely (ImageViewer): pinched, zoomed, dragged, and with `onPrevious` /
|
|
44
|
-
* `onNext` the images beside it, by its side buttons and
|
|
45
|
+
* `onNext` the images beside it, by its side buttons, ← → and a finger that swipes it (`previousSrc` / `nextSrc`
|
|
46
|
+
* in sight as it does, as the viewers of pictures of a phone). A click or tap beside it,
|
|
45
47
|
* its close button or Escape closes it. In the top layer, so no container clips it; the touches in it are its
|
|
46
48
|
* own, never a swipe of a sheet under it.
|
|
47
49
|
*/
|
|
48
|
-
function Lightbox({ src, alt, caption, count, onClose, onPrevious, onNext, }) {
|
|
50
|
+
function Lightbox({ src, alt, caption, count, onClose, onPrevious, onNext, previousSrc, nextSrc, }) {
|
|
49
51
|
const t = (0, use_t_1.useT)();
|
|
50
52
|
const dialog = React.useRef(null);
|
|
51
53
|
React.useEffect(() => {
|
|
@@ -53,8 +55,9 @@ function Lightbox({ src, alt, caption, count, onClose, onPrevious, onNext, }) {
|
|
|
53
55
|
(_b = (_a = dialog.current) === null || _a === void 0 ? void 0 : _a.showModal) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
54
56
|
}, []);
|
|
55
57
|
const close = () => { var _a; return (_a = dialog.current) === null || _a === void 0 ? void 0 : _a.close(); };
|
|
58
|
+
(0, back_stack_1.useBackLayer)(true, close);
|
|
56
59
|
return (React.createElement("dialog", { ref: dialog, className: "ta-lightbox", onClose: onClose, onTouchStart: event => event.stopPropagation() },
|
|
57
|
-
React.createElement(image_viewer_1.ImageViewer, {
|
|
60
|
+
React.createElement(image_viewer_1.ImageViewer, { src: src, alt: alt, onBackground: close, onPrevious: onPrevious, onNext: onNext, previousSrc: previousSrc, nextSrc: nextSrc, autoFocus: true }),
|
|
58
61
|
(caption || count) && (React.createElement("div", { className: "ta-lightbox-caption" },
|
|
59
62
|
caption && React.createElement("span", { className: "ta-lightbox-words" }, caption),
|
|
60
63
|
count && count.of > 1 && React.createElement("span", { className: "ta-lightbox-count" }, `${count.at + 1} / ${count.of}`))),
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
/** The question of TaLinks while there is one. */
|
|
3
|
-
|
|
3
|
+
/** The question of links going out of Ta, and the links of Ta the system opens the app with coming in (SystemLinkHost). */
|
|
4
|
+
export declare function LinkDialog(): React.JSX.Element;
|
|
4
5
|
//# sourceMappingURL=link-dialog.d.ts.map
|
|
@@ -37,9 +37,11 @@ exports.LinkDialog = LinkDialog;
|
|
|
37
37
|
const lucide_react_1 = require("lucide-react");
|
|
38
38
|
const React = __importStar(require("react"));
|
|
39
39
|
const react_dom_1 = require("react-dom");
|
|
40
|
+
const back_stack_1 = require("../device/back-stack");
|
|
40
41
|
const hooks_1 = require("../hooks");
|
|
41
42
|
const use_t_1 = require("../i18n/use-t");
|
|
42
43
|
const icon_1 = require("./icon");
|
|
44
|
+
const system_link_host_1 = require("./system-link-host");
|
|
43
45
|
/** The URL with its host apart: what the user has to read before going there. */
|
|
44
46
|
function Address({ url }) {
|
|
45
47
|
const parsed = new URL(url);
|
|
@@ -52,6 +54,7 @@ function Address({ url }) {
|
|
|
52
54
|
/** Asks before a page opens outside of Ta, as VS Code does for a domain it does not trust. */
|
|
53
55
|
function ExternalLinkDialog({ request, links }) {
|
|
54
56
|
const t = (0, use_t_1.useT)();
|
|
57
|
+
(0, back_stack_1.useBackLayer)(true, () => links.answer(request.id, 'cancel'));
|
|
55
58
|
React.useEffect(() => {
|
|
56
59
|
const onKey = (event) => event.key === 'Escape' && links.answer(request.id, 'cancel');
|
|
57
60
|
document.addEventListener('keydown', onKey);
|
|
@@ -74,8 +77,11 @@ function ExternalLinkDialog({ request, links }) {
|
|
|
74
77
|
React.createElement("button", { type: "button", className: "ta-button ta-primary", autoFocus: true, onClick: () => answer('open') }, t('ta.link.open'))))), document.body);
|
|
75
78
|
}
|
|
76
79
|
/** The question of TaLinks while there is one. */
|
|
80
|
+
/** The question of links going out of Ta, and the links of Ta the system opens the app with coming in (SystemLinkHost). */
|
|
77
81
|
function LinkDialog() {
|
|
78
82
|
const [{ external }, links] = (0, hooks_1.useLinks)();
|
|
79
|
-
return
|
|
83
|
+
return (React.createElement(React.Fragment, null,
|
|
84
|
+
React.createElement(system_link_host_1.SystemLinkHost, null),
|
|
85
|
+
external && React.createElement(ExternalLinkDialog, { key: external.id, request: external, links: links })));
|
|
80
86
|
}
|
|
81
87
|
//# sourceMappingURL=link-dialog.js.map
|
|
@@ -17,4 +17,8 @@ export declare function LinkView({ href, children }: {
|
|
|
17
17
|
export declare function CodeLink({ text }: {
|
|
18
18
|
text: string;
|
|
19
19
|
}): React.JSX.Element;
|
|
20
|
+
/** A file a turn changed, by its name: a link to it where links open, else the name. */
|
|
21
|
+
export declare function FileLink({ path }: {
|
|
22
|
+
path: string;
|
|
23
|
+
}): React.JSX.Element;
|
|
20
24
|
//# sourceMappingURL=link.d.ts.map
|
|
@@ -36,6 +36,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
36
36
|
exports.OpenLink = void 0;
|
|
37
37
|
exports.LinkView = LinkView;
|
|
38
38
|
exports.CodeLink = CodeLink;
|
|
39
|
+
exports.FileLink = FileLink;
|
|
39
40
|
const React = __importStar(require("react"));
|
|
40
41
|
const use_t_1 = require("../i18n/use-t");
|
|
41
42
|
const link_1 = require("../util/link");
|
|
@@ -85,6 +86,17 @@ function CodeLink({ text }) {
|
|
|
85
86
|
return (React.createElement(PathButton, { target: target, code: true },
|
|
86
87
|
React.createElement("code", null, text)));
|
|
87
88
|
}
|
|
89
|
+
/** A file a turn changed, by its name: a link to it where links open, else the name. */
|
|
90
|
+
function FileLink({ path }) {
|
|
91
|
+
const open = React.useContext(exports.OpenLink);
|
|
92
|
+
const target = React.useMemo(() => { var _a; return (open ? ((_a = link_1.LinkUtil.codeReference(path)) !== null && _a !== void 0 ? _a : link_1.LinkUtil.parse(path)) : undefined); }, [open, path]);
|
|
93
|
+
const label = path.replace(/\/+$/, '').split('/').pop() || path;
|
|
94
|
+
if ((target === null || target === void 0 ? void 0 : target.type) !== 'path') {
|
|
95
|
+
return (React.createElement("code", { className: "ta-file-chip", title: path }, label));
|
|
96
|
+
}
|
|
97
|
+
return (React.createElement(PathButton, { target: target, code: true },
|
|
98
|
+
React.createElement("code", { className: "ta-file-chip" }, label)));
|
|
99
|
+
}
|
|
88
100
|
function PathButton({ target, code, children }) {
|
|
89
101
|
const t = (0, use_t_1.useT)();
|
|
90
102
|
const open = React.useContext(exports.OpenLink);
|
|
@@ -15,6 +15,8 @@ export interface ListRowProps {
|
|
|
15
15
|
onContextMenu?(event: React.MouseEvent): void;
|
|
16
16
|
/** A button of its own at the end, in place of the chevron. */
|
|
17
17
|
trailing?: React.ReactNode;
|
|
18
|
+
/** Small, before the chevron: WebView.mark of a page under Discover. */
|
|
19
|
+
mark?: React.ReactNode;
|
|
18
20
|
danger?: boolean;
|
|
19
21
|
/** No chevron: the row does something rather than lead somewhere. */
|
|
20
22
|
action?: boolean;
|
|
@@ -26,5 +28,5 @@ export declare namespace ListRowUtil {
|
|
|
26
28
|
*/
|
|
27
29
|
function label(text: string): string;
|
|
28
30
|
}
|
|
29
|
-
export declare function ListRow({ icon, label, detail, onClick, onContextMenu, trailing, danger, action }: ListRowProps): React.JSX.Element;
|
|
31
|
+
export declare function ListRow({ icon, label, detail, onClick, onContextMenu, trailing, mark, danger, action }: ListRowProps): React.JSX.Element;
|
|
30
32
|
//# sourceMappingURL=list-rows.d.ts.map
|