@celljs/ta-web 4.42.0 → 4.44.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 +1 -1
- package/README.md +1 -1
- package/esm/browser/apps/app-window.js +2 -2
- package/esm/browser/apps/web-apps.d.ts +4 -0
- package/esm/browser/apps/web-apps.js +14 -3
- package/esm/browser/assistant/assistant-chat-list.js +2 -1
- package/esm/browser/assistant/assistant-extension.js +16 -2
- package/esm/browser/assistant/assistant-protocol.d.ts +6 -0
- package/esm/browser/assistant/assistant-task-source.js +3 -0
- package/esm/browser/assistant/assistant-task-util.d.ts +2 -0
- package/esm/browser/assistant/assistant-task-util.js +5 -0
- package/esm/browser/assistant/assistant.d.ts +3 -0
- package/esm/browser/assistant/assistant.js +26 -2
- package/esm/browser/assistant/ta-hearing.d.ts +85 -0
- package/esm/browser/assistant/ta-hearing.js +272 -0
- package/esm/browser/components/app-shell-hooks.d.ts +2 -1
- package/esm/browser/components/app-shell-hooks.js +4 -3
- package/esm/browser/components/app-shell-state.js +2 -2
- package/esm/browser/components/auth-view.js +1 -1
- package/esm/browser/components/board.js +9 -1
- package/esm/browser/components/chat-list-row.js +4 -4
- package/esm/browser/components/chat-list-util.d.ts +2 -2
- package/esm/browser/components/clipboard-link-host.d.ts +2 -0
- package/esm/browser/components/clipboard-link-host.js +27 -0
- package/esm/browser/components/cloud-network.js +1 -1
- package/esm/browser/components/cloud-sign-in-view.d.ts +1 -1
- package/esm/browser/components/custom-host.d.ts +4 -1
- package/esm/browser/components/custom-host.js +8 -2
- package/esm/browser/components/custom-provider-advanced.js +8 -8
- package/esm/browser/components/custom-provider-view.js +12 -12
- package/esm/browser/components/earlier-messages.d.ts +4 -1
- package/esm/browser/components/earlier-messages.js +5 -2
- package/esm/browser/components/empty-state.d.ts +2 -1
- package/esm/browser/components/empty-state.js +6 -2
- package/esm/browser/components/folder-picker.js +2 -2
- package/esm/browser/components/gallery.js +8 -9
- package/esm/browser/components/hearing-host.d.ts +5 -0
- package/esm/browser/components/hearing-host.js +58 -0
- package/esm/browser/components/host-view.d.ts +1 -1
- package/esm/browser/components/link-dialog.js +4 -0
- package/esm/browser/components/loading.d.ts +3 -2
- package/esm/browser/components/loading.js +7 -3
- package/esm/browser/components/markdown.d.ts +3 -1
- package/esm/browser/components/markdown.js +10 -5
- package/esm/browser/components/media.d.ts +10 -4
- package/esm/browser/components/media.js +60 -14
- package/esm/browser/components/message-list.js +2 -1
- package/esm/browser/components/message-steps.js +8 -5
- package/esm/browser/components/people-picker.d.ts +17 -0
- package/esm/browser/components/people-picker.js +129 -0
- package/esm/browser/components/relay-view.js +1 -1
- package/esm/browser/components/settings-choices.d.ts +2 -1
- package/esm/browser/components/settings-choices.js +2 -1
- package/esm/browser/components/settings-parts.js +25 -3
- package/esm/browser/components/share-dialog.d.ts +2 -2
- package/esm/browser/components/share-dialog.js +7 -4
- package/esm/browser/components/share-friends.d.ts +18 -2
- package/esm/browser/components/share-friends.js +64 -13
- package/esm/browser/components/share-item-sheet.d.ts +12 -0
- package/esm/browser/components/share-item-sheet.js +39 -0
- package/esm/browser/components/share-sheet.d.ts +12 -4
- package/esm/browser/components/share-sheet.js +15 -6
- package/esm/browser/components/sign-in-setup.js +4 -4
- package/esm/browser/components/trusted-domains.js +1 -1
- package/esm/browser/components/view-room.d.ts +25 -0
- package/esm/browser/components/view-room.js +136 -0
- package/esm/browser/components/voice-services.js +6 -6
- package/esm/browser/device/device-protocol.d.ts +9 -6
- package/esm/browser/device/device-protocol.js +7 -4
- package/esm/browser/device/launch-screen.d.ts +11 -1
- package/esm/browser/device/launch-screen.js +22 -4
- package/esm/browser/extension/share-sheet-compat.d.ts +2 -0
- package/esm/browser/extension/share-sheet-compat.js +12 -2
- package/esm/browser/extension/web-api-chats.d.ts +23 -0
- package/esm/browser/extension/web-api-code.d.ts +11 -0
- package/esm/browser/extension/web-api-components.d.ts +8 -1
- package/esm/browser/extension/web-api-contributions.d.ts +30 -1
- package/esm/browser/extension/web-api-desktop.d.ts +2 -1
- package/esm/browser/extension/web-api-file-views.d.ts +38 -0
- package/esm/browser/extension/web-api-file-views.js +2 -0
- package/esm/browser/extension/web-api-host.d.ts +47 -0
- package/esm/browser/extension/web-api-host.js +3 -0
- package/esm/browser/extension/web-api-menus.d.ts +46 -0
- package/esm/browser/extension/web-api-partners.d.ts +58 -1
- package/esm/browser/extension/web-api-skins.d.ts +95 -0
- package/esm/browser/extension/web-api-skins.js +2 -0
- package/esm/browser/extension/web-api-spec.js +9 -0
- package/esm/browser/extension/web-extension-api.d.ts +13 -34
- package/esm/browser/extension/web-extension-context.d.ts +2 -8
- package/esm/browser/extension/web-extension-context.js +15 -39
- package/esm/browser/extension/web-extension-marks.d.ts +10 -0
- package/esm/browser/extension/web-extension-marks.js +29 -0
- package/esm/browser/extension/web-extension-protocol.d.ts +13 -1
- package/esm/browser/extension/web-extension-protocol.js +4 -0
- package/esm/browser/extension/web-extension-run.d.ts +16 -2
- package/esm/browser/extension/web-extension-run.js +80 -0
- package/esm/browser/extension/web-extensions-running.d.ts +5 -1
- package/esm/browser/extension/web-extensions-running.js +16 -0
- package/esm/browser/extension/web-extensions.d.ts +2 -1
- package/esm/browser/extension/web-extensions.js +3 -0
- package/esm/browser/extension/web-home.js +3 -1
- package/esm/browser/extension/web-host-values.d.ts +66 -0
- package/esm/browser/extension/web-host-values.js +191 -0
- package/esm/browser/extension/web-hosts.d.ts +7 -2
- package/esm/browser/extension/web-hosts.js +16 -4
- package/esm/browser/extension/web-share-ui.d.ts +7 -0
- package/esm/browser/extension/web-share-ui.js +20 -0
- package/esm/browser/extension/web-share.d.ts +18 -0
- package/esm/browser/extension/web-share.js +42 -0
- package/esm/browser/i18n/en/assistant.d.ts +4 -0
- package/esm/browser/i18n/en/assistant.js +4 -0
- package/esm/browser/i18n/en/chat.d.ts +10 -0
- package/esm/browser/i18n/en/chat.js +10 -0
- package/esm/browser/i18n/en/common.d.ts +15 -0
- package/esm/browser/i18n/en/common.js +15 -0
- package/esm/browser/i18n/en/discover.d.ts +11 -1
- package/esm/browser/i18n/en/discover.js +11 -1
- package/esm/browser/i18n/en/settings.d.ts +10 -0
- package/esm/browser/i18n/en/settings.js +10 -0
- package/esm/browser/i18n/ja/assistant.js +4 -0
- package/esm/browser/i18n/ja/chat.js +10 -0
- package/esm/browser/i18n/ja/common.js +15 -0
- package/esm/browser/i18n/ja/discover.js +11 -1
- package/esm/browser/i18n/ja/settings.js +10 -0
- package/esm/browser/i18n/locales.d.ts +51 -2
- package/esm/browser/i18n/messages.d.ts +50 -1
- package/esm/browser/i18n/zh/assistant.js +4 -0
- package/esm/browser/i18n/zh/chat.js +10 -0
- package/esm/browser/i18n/zh/common.js +15 -0
- package/esm/browser/i18n/zh/discover.js +11 -1
- package/esm/browser/i18n/zh/settings.js +10 -0
- package/esm/browser/i18n/zh-tw/assistant.js +4 -0
- package/esm/browser/i18n/zh-tw/chat.js +10 -0
- package/esm/browser/i18n/zh-tw/common.js +15 -0
- package/esm/browser/i18n/zh-tw/discover.js +11 -1
- package/esm/browser/i18n/zh-tw/settings.js +10 -0
- package/esm/browser/launch-art/art-palette.d.ts +41 -0
- package/esm/browser/launch-art/art-palette.js +72 -0
- package/esm/browser/launch-art/cyclic-automaton.d.ts +45 -0
- package/esm/browser/launch-art/cyclic-automaton.js +176 -0
- package/esm/browser/launch-art/fractal-tree.d.ts +43 -0
- package/esm/browser/launch-art/fractal-tree.js +48 -0
- package/esm/browser/launch-art/launch-art.d.ts +98 -0
- package/esm/browser/launch-art/launch-art.js +420 -0
- package/esm/browser/launch-art/launch-sky.d.ts +66 -0
- package/esm/browser/launch-art/launch-sky.js +153 -0
- package/esm/browser/links/clipboard-links.d.ts +85 -0
- package/esm/browser/links/clipboard-links.js +261 -0
- package/esm/browser/links/link-text.d.ts +29 -0
- package/esm/browser/links/link-text.js +97 -0
- package/esm/browser/links/links-protocol.d.ts +12 -1
- package/esm/browser/links/links.d.ts +8 -2
- package/esm/browser/links/links.js +33 -3
- package/esm/browser/markdown/code-renderers.d.ts +4 -0
- package/esm/browser/markdown/code-renderers.js +4 -0
- package/esm/browser/partners/group-picker.js +23 -29
- package/esm/browser/sandbox/sandbox-runtime-code.js +1 -1
- package/esm/browser/sandbox/work/work-senses.js +1 -1
- package/esm/browser/settings/settings-protocol.d.ts +26 -0
- package/esm/browser/settings/settings-protocol.js +11 -0
- package/esm/browser/settings/settings.d.ts +4 -1
- package/esm/browser/settings/settings.js +16 -3
- package/esm/browser/skin/skin-layer.d.ts +8 -0
- package/esm/browser/skin/skin-layer.js +118 -0
- package/esm/browser/skin/skin-util.d.ts +40 -0
- package/esm/browser/skin/skin-util.js +120 -0
- package/esm/browser/style/base.d.ts +1 -1
- package/esm/browser/style/base.js +10 -6
- package/esm/browser/style/chat-list.d.ts +1 -1
- package/esm/browser/style/chat-list.js +28 -15
- package/esm/browser/style/conversation-column.d.ts +1 -1
- package/esm/browser/style/conversation.d.ts +1 -1
- package/esm/browser/style/conversation.js +5 -4
- package/esm/browser/style/dialogs.d.ts +1 -1
- package/esm/browser/style/dialogs.js +2 -5
- package/esm/browser/style/forms.d.ts +5 -0
- package/esm/browser/style/forms.js +65 -0
- package/esm/browser/style/layout.d.ts +1 -1
- package/esm/browser/style/pages.d.ts +1 -1
- package/esm/browser/style/pages.js +14 -24
- package/esm/browser/style/phone.d.ts +1 -1
- package/esm/browser/style/shared.d.ts +1 -1
- package/esm/browser/style/shell.d.ts +1 -1
- package/esm/browser/style/shell.js +1 -6
- package/esm/browser/style/skins.d.ts +9 -0
- package/esm/browser/style/skins.js +107 -0
- package/esm/browser/style/surfaces.d.ts +1 -1
- package/esm/browser/style/surfaces.js +8 -6
- package/esm/browser/style/tasks.d.ts +1 -1
- package/esm/browser/style.js +4 -0
- package/esm/browser/util/fresh-rows.d.ts +21 -0
- package/esm/browser/util/fresh-rows.js +36 -0
- package/esm/browser/util/process.d.ts +12 -22
- package/esm/browser/util/process.js +49 -39
- package/esm/browser/util/voice.d.ts +18 -0
- package/esm/browser/util/voice.js +111 -3
- package/esm/browser/workbench-protocol.d.ts +2 -0
- package/esm/browser/workbench-services.d.ts +2 -0
- package/esm/browser/workbench-services.js +5 -0
- package/esm/browser/workbench.js +5 -0
- package/lib/browser/apps/app-window.js +2 -2
- package/lib/browser/apps/web-apps.d.ts +4 -0
- package/lib/browser/apps/web-apps.js +14 -3
- package/lib/browser/assistant/assistant-chat-list.js +2 -1
- package/lib/browser/assistant/assistant-extension.js +15 -1
- package/lib/browser/assistant/assistant-protocol.d.ts +6 -0
- package/lib/browser/assistant/assistant-task-source.js +3 -0
- package/lib/browser/assistant/assistant-task-util.d.ts +2 -0
- package/lib/browser/assistant/assistant-task-util.js +5 -0
- package/lib/browser/assistant/assistant.d.ts +3 -0
- package/lib/browser/assistant/assistant.js +26 -2
- package/lib/browser/assistant/ta-hearing.d.ts +86 -0
- package/lib/browser/assistant/ta-hearing.js +277 -0
- package/lib/browser/components/app-shell-hooks.d.ts +2 -1
- package/lib/browser/components/app-shell-hooks.js +4 -3
- package/lib/browser/components/app-shell-state.js +2 -2
- package/lib/browser/components/auth-view.js +1 -1
- package/lib/browser/components/board.js +9 -1
- package/lib/browser/components/chat-list-row.js +4 -4
- package/lib/browser/components/chat-list-util.d.ts +2 -2
- package/lib/browser/components/clipboard-link-host.d.ts +3 -0
- package/lib/browser/components/clipboard-link-host.js +63 -0
- package/lib/browser/components/cloud-network.js +1 -1
- package/lib/browser/components/cloud-sign-in-view.d.ts +1 -1
- package/lib/browser/components/custom-host.d.ts +4 -1
- package/lib/browser/components/custom-host.js +8 -2
- package/lib/browser/components/custom-provider-advanced.js +8 -8
- package/lib/browser/components/custom-provider-view.js +12 -12
- package/lib/browser/components/earlier-messages.d.ts +4 -1
- package/lib/browser/components/earlier-messages.js +5 -2
- package/lib/browser/components/empty-state.d.ts +2 -1
- package/lib/browser/components/empty-state.js +6 -2
- package/lib/browser/components/folder-picker.js +2 -2
- package/lib/browser/components/gallery.js +7 -8
- package/lib/browser/components/hearing-host.d.ts +6 -0
- package/lib/browser/components/hearing-host.js +94 -0
- package/lib/browser/components/host-view.d.ts +1 -1
- package/lib/browser/components/link-dialog.js +4 -0
- package/lib/browser/components/loading.d.ts +3 -2
- package/lib/browser/components/loading.js +7 -3
- package/lib/browser/components/markdown.d.ts +3 -1
- package/lib/browser/components/markdown.js +9 -4
- package/lib/browser/components/media.d.ts +10 -4
- package/lib/browser/components/media.js +61 -14
- package/lib/browser/components/message-list.js +2 -1
- package/lib/browser/components/message-steps.js +8 -5
- package/lib/browser/components/people-picker.d.ts +18 -0
- package/lib/browser/components/people-picker.js +166 -0
- package/lib/browser/components/relay-view.js +1 -1
- package/lib/browser/components/settings-choices.d.ts +2 -1
- package/lib/browser/components/settings-choices.js +2 -1
- package/lib/browser/components/settings-parts.js +23 -1
- package/lib/browser/components/share-dialog.d.ts +2 -2
- package/lib/browser/components/share-dialog.js +7 -4
- package/lib/browser/components/share-friends.d.ts +18 -2
- package/lib/browser/components/share-friends.js +67 -13
- package/lib/browser/components/share-item-sheet.d.ts +13 -0
- package/lib/browser/components/share-item-sheet.js +75 -0
- package/lib/browser/components/share-sheet.d.ts +12 -4
- package/lib/browser/components/share-sheet.js +14 -4
- package/lib/browser/components/sign-in-setup.js +4 -4
- package/lib/browser/components/trusted-domains.js +1 -1
- package/lib/browser/components/view-room.d.ts +26 -0
- package/lib/browser/components/view-room.js +173 -0
- package/lib/browser/components/voice-services.js +6 -6
- package/lib/browser/device/device-protocol.d.ts +9 -6
- package/lib/browser/device/device-protocol.js +7 -4
- package/lib/browser/device/launch-screen.d.ts +11 -1
- package/lib/browser/device/launch-screen.js +22 -4
- package/lib/browser/extension/share-sheet-compat.d.ts +2 -0
- package/lib/browser/extension/share-sheet-compat.js +13 -2
- package/lib/browser/extension/web-api-chats.d.ts +23 -0
- package/lib/browser/extension/web-api-code.d.ts +11 -0
- package/lib/browser/extension/web-api-components.d.ts +8 -1
- package/lib/browser/extension/web-api-contributions.d.ts +30 -1
- package/lib/browser/extension/web-api-desktop.d.ts +2 -1
- package/lib/browser/extension/web-api-file-views.d.ts +39 -0
- package/lib/browser/extension/web-api-file-views.js +3 -0
- package/lib/browser/extension/web-api-host.d.ts +48 -0
- package/lib/browser/extension/web-api-host.js +4 -0
- package/lib/browser/extension/web-api-menus.d.ts +46 -0
- package/lib/browser/extension/web-api-partners.d.ts +58 -1
- package/lib/browser/extension/web-api-skins.d.ts +96 -0
- package/lib/browser/extension/web-api-skins.js +3 -0
- package/lib/browser/extension/web-api-spec.js +9 -0
- package/lib/browser/extension/web-extension-api.d.ts +13 -34
- package/lib/browser/extension/web-extension-context.d.ts +2 -8
- package/lib/browser/extension/web-extension-context.js +15 -39
- package/lib/browser/extension/web-extension-marks.d.ts +11 -0
- package/lib/browser/extension/web-extension-marks.js +65 -0
- package/lib/browser/extension/web-extension-protocol.d.ts +13 -1
- package/lib/browser/extension/web-extension-protocol.js +4 -0
- package/lib/browser/extension/web-extension-run.d.ts +16 -2
- package/lib/browser/extension/web-extension-run.js +80 -0
- package/lib/browser/extension/web-extensions-running.d.ts +5 -1
- package/lib/browser/extension/web-extensions-running.js +16 -0
- package/lib/browser/extension/web-extensions.d.ts +2 -1
- package/lib/browser/extension/web-extensions.js +3 -0
- package/lib/browser/extension/web-home.js +3 -1
- package/lib/browser/extension/web-host-values.d.ts +67 -0
- package/lib/browser/extension/web-host-values.js +229 -0
- package/lib/browser/extension/web-hosts.d.ts +7 -2
- package/lib/browser/extension/web-hosts.js +16 -4
- package/lib/browser/extension/web-share-ui.d.ts +8 -0
- package/lib/browser/extension/web-share-ui.js +56 -0
- package/lib/browser/extension/web-share.d.ts +19 -0
- package/lib/browser/extension/web-share.js +45 -0
- package/lib/browser/i18n/en/assistant.d.ts +4 -0
- package/lib/browser/i18n/en/assistant.js +4 -0
- package/lib/browser/i18n/en/chat.d.ts +10 -0
- package/lib/browser/i18n/en/chat.js +10 -0
- package/lib/browser/i18n/en/common.d.ts +15 -0
- package/lib/browser/i18n/en/common.js +15 -0
- package/lib/browser/i18n/en/discover.d.ts +11 -1
- package/lib/browser/i18n/en/discover.js +11 -1
- package/lib/browser/i18n/en/settings.d.ts +10 -0
- package/lib/browser/i18n/en/settings.js +10 -0
- package/lib/browser/i18n/ja/assistant.js +4 -0
- package/lib/browser/i18n/ja/chat.js +10 -0
- package/lib/browser/i18n/ja/common.js +15 -0
- package/lib/browser/i18n/ja/discover.js +11 -1
- package/lib/browser/i18n/ja/settings.js +10 -0
- package/lib/browser/i18n/locales.d.ts +51 -2
- package/lib/browser/i18n/messages.d.ts +50 -1
- package/lib/browser/i18n/zh/assistant.js +4 -0
- package/lib/browser/i18n/zh/chat.js +10 -0
- package/lib/browser/i18n/zh/common.js +15 -0
- package/lib/browser/i18n/zh/discover.js +11 -1
- package/lib/browser/i18n/zh/settings.js +10 -0
- package/lib/browser/i18n/zh-tw/assistant.js +4 -0
- package/lib/browser/i18n/zh-tw/chat.js +10 -0
- package/lib/browser/i18n/zh-tw/common.js +15 -0
- package/lib/browser/i18n/zh-tw/discover.js +11 -1
- package/lib/browser/i18n/zh-tw/settings.js +10 -0
- package/lib/browser/launch-art/art-palette.d.ts +42 -0
- package/lib/browser/launch-art/art-palette.js +76 -0
- package/lib/browser/launch-art/cyclic-automaton.d.ts +46 -0
- package/lib/browser/launch-art/cyclic-automaton.js +180 -0
- package/lib/browser/launch-art/fractal-tree.d.ts +44 -0
- package/lib/browser/launch-art/fractal-tree.js +52 -0
- package/lib/browser/launch-art/launch-art.d.ts +99 -0
- package/lib/browser/launch-art/launch-art.js +424 -0
- package/lib/browser/launch-art/launch-sky.d.ts +67 -0
- package/lib/browser/launch-art/launch-sky.js +157 -0
- package/lib/browser/links/clipboard-links.d.ts +86 -0
- package/lib/browser/links/clipboard-links.js +266 -0
- package/lib/browser/links/link-text.d.ts +30 -0
- package/lib/browser/links/link-text.js +100 -0
- package/lib/browser/links/links-protocol.d.ts +12 -1
- package/lib/browser/links/links.d.ts +8 -2
- package/lib/browser/links/links.js +33 -3
- package/lib/browser/markdown/code-renderers.d.ts +4 -0
- package/lib/browser/markdown/code-renderers.js +5 -1
- package/lib/browser/partners/group-picker.js +23 -29
- package/lib/browser/sandbox/sandbox-runtime-code.js +1 -1
- package/lib/browser/sandbox/work/work-senses.js +1 -1
- package/lib/browser/settings/settings-protocol.d.ts +26 -0
- package/lib/browser/settings/settings-protocol.js +12 -1
- package/lib/browser/settings/settings.d.ts +4 -1
- package/lib/browser/settings/settings.js +16 -3
- package/lib/browser/skin/skin-layer.d.ts +9 -0
- package/lib/browser/skin/skin-layer.js +154 -0
- package/lib/browser/skin/skin-util.d.ts +41 -0
- package/lib/browser/skin/skin-util.js +123 -0
- package/lib/browser/style/base.d.ts +1 -1
- package/lib/browser/style/base.js +10 -6
- package/lib/browser/style/chat-list.d.ts +1 -1
- package/lib/browser/style/chat-list.js +28 -15
- package/lib/browser/style/conversation-column.d.ts +1 -1
- package/lib/browser/style/conversation.d.ts +1 -1
- package/lib/browser/style/conversation.js +5 -4
- package/lib/browser/style/dialogs.d.ts +1 -1
- package/lib/browser/style/dialogs.js +2 -5
- package/lib/browser/style/forms.d.ts +6 -0
- package/lib/browser/style/forms.js +68 -0
- package/lib/browser/style/layout.d.ts +1 -1
- package/lib/browser/style/pages.d.ts +1 -1
- package/lib/browser/style/pages.js +14 -24
- package/lib/browser/style/phone.d.ts +1 -1
- package/lib/browser/style/shared.d.ts +1 -1
- package/lib/browser/style/shell.d.ts +1 -1
- package/lib/browser/style/shell.js +1 -6
- package/lib/browser/style/skins.d.ts +10 -0
- package/lib/browser/style/skins.js +110 -0
- package/lib/browser/style/surfaces.d.ts +1 -1
- package/lib/browser/style/surfaces.js +8 -6
- package/lib/browser/style/tasks.d.ts +1 -1
- package/lib/browser/style.js +4 -0
- package/lib/browser/util/fresh-rows.d.ts +22 -0
- package/lib/browser/util/fresh-rows.js +40 -0
- package/lib/browser/util/process.d.ts +12 -22
- package/lib/browser/util/process.js +49 -40
- package/lib/browser/util/voice.d.ts +18 -0
- package/lib/browser/util/voice.js +111 -3
- package/lib/browser/workbench-protocol.d.ts +2 -0
- package/lib/browser/workbench-services.d.ts +2 -0
- package/lib/browser/workbench-services.js +5 -0
- package/lib/browser/workbench.js +5 -0
- package/package.json +8 -8
- package/public/launch.svg +3 -3
|
@@ -40,6 +40,7 @@ const React = __importStar(require("react"));
|
|
|
40
40
|
const hooks_1 = require("../hooks");
|
|
41
41
|
const use_t_1 = require("../i18n/use-t");
|
|
42
42
|
const share_link_1 = require("../util/share-link");
|
|
43
|
+
const share_item_sheet_1 = require("./share-item-sheet");
|
|
43
44
|
const share_sheet_1 = require("./share-sheet");
|
|
44
45
|
/** The link of an extension: of its source when it is published, else of the relay, made by this computer. */
|
|
45
46
|
function useShared(target) {
|
|
@@ -74,12 +75,14 @@ function ShareDialog({ target, onClose }) {
|
|
|
74
75
|
const [shared, error] = useShared(target);
|
|
75
76
|
const packageId = target.packageId;
|
|
76
77
|
const days = (shared === null || shared === void 0 ? void 0 : shared.relayed) ? Math.max(1, Math.round((shared.expiresAt - Date.now()) / 86400000)) : 0;
|
|
77
|
-
return (React.createElement(share_sheet_1.ShareSheet, { title: t('ta.share.title', { name: target.title }), link: shared === null || shared === void 0 ? void 0 : shared.link, error: error === undefined ? undefined : error || t('ta.share.cannot'), face: React.createElement(lucide_react_1.Package, { size: 22 }), name: target.title, gets: t('ta.share.extensionGets'), notes: [(shared === null || shared === void 0 ? void 0 : shared.relayed) ? t('ta.share.relayed', { days, size: Math.round(shared.maxBytes / 1024 / 1024) }) : t('ta.share.published')], onStop: (shared === null || shared === void 0 ? void 0 : shared.relayed) && packageId ? () => bench.relay.unsharePackage(packageId) : undefined, stop: { title: t('ta.share.stopTitle', { name: target.title }), message: t('ta.share.stopHint') }, onClose: onClose, notices: notices, rooms: bench.rooms }));
|
|
78
|
+
return (React.createElement(share_sheet_1.ShareSheet, { title: t('ta.share.title', { name: target.title }), link: shared === null || shared === void 0 ? void 0 : shared.link, error: error === undefined ? undefined : error || t('ta.share.cannot'), face: React.createElement(lucide_react_1.Package, { size: 22 }), name: target.title, gets: t('ta.share.extensionGets'), invite: t('ta.share.extensionInvite', { name: target.title }), notes: [(shared === null || shared === void 0 ? void 0 : shared.relayed) ? t('ta.share.relayed', { days, size: Math.round(shared.maxBytes / 1024 / 1024) }) : t('ta.share.published')], onStop: (shared === null || shared === void 0 ? void 0 : shared.relayed) && packageId ? () => bench.relay.unsharePackage(packageId) : undefined, stop: { title: t('ta.share.stopTitle', { name: target.title }), message: t('ta.share.stopHint') }, onClose: onClose, notices: notices, rooms: bench.rooms, onRoomEvent: listener => bench.onRoomEvent(listener, { messages: false }) }));
|
|
78
79
|
}
|
|
79
|
-
/** The share asked for by a web extension, over the page. */
|
|
80
|
+
/** The share asked for by a web extension, over the page: an extension handed on, or the share sheet of something. */
|
|
80
81
|
function ShareHost() {
|
|
81
82
|
var _a, _b;
|
|
82
|
-
const [{ sharing }, host] = (0, hooks_1.useWebExtensions)();
|
|
83
|
-
return
|
|
83
|
+
const [{ sharing, sharingItem, shareWays }, host] = (0, hooks_1.useWebExtensions)();
|
|
84
|
+
return (React.createElement(React.Fragment, null,
|
|
85
|
+
sharing && React.createElement(ShareDialog, { key: (_b = (_a = sharing.packageId) !== null && _a !== void 0 ? _a : sharing.source) !== null && _b !== void 0 ? _b : sharing.title, target: sharing, onClose: () => host.share(undefined) }),
|
|
86
|
+
sharingItem && React.createElement(share_item_sheet_1.ShareItemSheet, { item: sharingItem, ways: shareWays, onClose: () => host.shareItem(undefined) })));
|
|
84
87
|
}
|
|
85
88
|
//# sourceMappingURL=share-dialog.js.map
|
|
@@ -1,8 +1,22 @@
|
|
|
1
|
-
import type { TaFriend, TaRoomServer } from '@celljs/ta-protocol';
|
|
1
|
+
import type { TaFriend, TaFriendSent, TaRoomEvent, TaRoomServer } from '@celljs/ta-protocol';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import type { TaNotices } from '../notices/notices-protocol';
|
|
4
4
|
/** The friends of this Ta, once read; undefined while read, or where they cannot be. */
|
|
5
5
|
export declare function useShareFriends(rooms: TaRoomServer): TaFriend[] | undefined;
|
|
6
|
+
type Sent = TaFriendSent['to'][number];
|
|
7
|
+
/**
|
|
8
|
+
* The friends this link went to and how far it got with each (TaRoomServer.listFriendSends), read again as the rooms
|
|
9
|
+
* change and when `again` does: the furthest each got, the latest sent first. None from a Ta service of before.
|
|
10
|
+
*/
|
|
11
|
+
export declare function useFriendSends(rooms: TaRoomServer, link: string | undefined, again: number, onRoomEvent?: (listener: (event: TaRoomEvent) => void) => () => void): Sent[];
|
|
12
|
+
export declare namespace FriendSendsUtil {
|
|
13
|
+
/** Each friend once, the furthest any of the sends got with them, in the order they were sent to. */
|
|
14
|
+
function merge(list: readonly TaFriendSent[]): Sent[];
|
|
15
|
+
}
|
|
16
|
+
/** Who the link went to, a line each with how far it got: so the user knows it arrived, and whether it was opened. */
|
|
17
|
+
export declare function FriendSends({ sent }: {
|
|
18
|
+
sent: readonly Sent[];
|
|
19
|
+
}): React.JSX.Element | null;
|
|
6
20
|
/**
|
|
7
21
|
* Send to Ta friends, in the share sheet: the friends to tick, then Send; the link goes sealed for each, into their
|
|
8
22
|
* Ta, where it waits among the partners till opened (TaRoomServer.sendToFriends). What is sent is the link alone, and
|
|
@@ -14,6 +28,8 @@ export declare function ShareToFriends({ rooms, notices, friends, link, title, o
|
|
|
14
28
|
friends: TaFriend[];
|
|
15
29
|
link: string;
|
|
16
30
|
title: string;
|
|
17
|
-
|
|
31
|
+
/** Back to the sheet; `sent` once it went, where the sheet then says to whom and how far it got. */
|
|
32
|
+
onDone(sent?: boolean): void;
|
|
18
33
|
}): React.JSX.Element;
|
|
34
|
+
export {};
|
|
19
35
|
//# sourceMappingURL=share-friends.d.ts.map
|
|
@@ -33,12 +33,15 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.FriendSendsUtil = void 0;
|
|
36
37
|
exports.useShareFriends = useShareFriends;
|
|
38
|
+
exports.useFriendSends = useFriendSends;
|
|
39
|
+
exports.FriendSends = FriendSends;
|
|
37
40
|
exports.ShareToFriends = ShareToFriends;
|
|
38
|
-
const lucide_react_1 = require("lucide-react");
|
|
39
41
|
const React = __importStar(require("react"));
|
|
40
42
|
const use_t_1 = require("../i18n/use-t");
|
|
41
43
|
const face_1 = require("./face");
|
|
44
|
+
const people_picker_1 = require("./people-picker");
|
|
42
45
|
/** The friends of this Ta, once read; undefined while read, or where they cannot be. */
|
|
43
46
|
function useShareFriends(rooms) {
|
|
44
47
|
const [friends, setFriends] = React.useState();
|
|
@@ -54,6 +57,64 @@ function useShareFriends(rooms) {
|
|
|
54
57
|
}, [rooms]);
|
|
55
58
|
return friends;
|
|
56
59
|
}
|
|
60
|
+
/**
|
|
61
|
+
* The friends this link went to and how far it got with each (TaRoomServer.listFriendSends), read again as the rooms
|
|
62
|
+
* change and when `again` does: the furthest each got, the latest sent first. None from a Ta service of before.
|
|
63
|
+
*/
|
|
64
|
+
function useFriendSends(rooms, link, again, onRoomEvent) {
|
|
65
|
+
const [sent, setSent] = React.useState([]);
|
|
66
|
+
const hear = React.useRef(onRoomEvent);
|
|
67
|
+
hear.current = onRoomEvent;
|
|
68
|
+
// biome-ignore lint/correctness/useExhaustiveDependencies: read again once the user sent it
|
|
69
|
+
React.useEffect(() => {
|
|
70
|
+
var _a;
|
|
71
|
+
if (!link) {
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
let live = true;
|
|
75
|
+
const read = () => { var _a; return void Promise.resolve((_a = rooms.listFriendSends) === null || _a === void 0 ? void 0 : _a.call(rooms, link))
|
|
76
|
+
.then(list => live && list && setSent(FriendSendsUtil.merge(list)))
|
|
77
|
+
.catch(() => undefined); };
|
|
78
|
+
read();
|
|
79
|
+
const stop = (_a = hear.current) === null || _a === void 0 ? void 0 : _a.call(hear, event => event.type === 'rooms' && read());
|
|
80
|
+
return () => {
|
|
81
|
+
live = false;
|
|
82
|
+
stop === null || stop === void 0 ? void 0 : stop();
|
|
83
|
+
};
|
|
84
|
+
}, [rooms, link, again]);
|
|
85
|
+
return sent;
|
|
86
|
+
}
|
|
87
|
+
var FriendSendsUtil;
|
|
88
|
+
(function (FriendSendsUtil) {
|
|
89
|
+
const RANK = { sent: 0, got: 1, opened: 2 };
|
|
90
|
+
/** Each friend once, the furthest any of the sends got with them, in the order they were sent to. */
|
|
91
|
+
function merge(list) {
|
|
92
|
+
const byFriend = new Map();
|
|
93
|
+
for (const one of list) {
|
|
94
|
+
for (const friend of one.to) {
|
|
95
|
+
const known = byFriend.get(friend.id);
|
|
96
|
+
if (!known || RANK[friend.state] > RANK[known.state]) {
|
|
97
|
+
byFriend.set(friend.id, { ...friend, ...(known && RANK[known.state] > RANK[friend.state] ? { state: known.state } : {}) });
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
return [...byFriend.values()];
|
|
102
|
+
}
|
|
103
|
+
FriendSendsUtil.merge = merge;
|
|
104
|
+
})(FriendSendsUtil || (exports.FriendSendsUtil = FriendSendsUtil = {}));
|
|
105
|
+
/** Who the link went to, a line each with how far it got: so the user knows it arrived, and whether it was opened. */
|
|
106
|
+
function FriendSends({ sent }) {
|
|
107
|
+
const t = (0, use_t_1.useT)();
|
|
108
|
+
if (!sent.length) {
|
|
109
|
+
return null;
|
|
110
|
+
}
|
|
111
|
+
return (React.createElement("div", { className: "ta-share-sent" },
|
|
112
|
+
React.createElement("span", { className: "ta-share-sent-title" }, t('ta.share.sentTitle')),
|
|
113
|
+
React.createElement("ul", null, sent.map(friend => (React.createElement("li", { key: friend.id },
|
|
114
|
+
React.createElement(face_1.Face, { seed: friend.id, look: friend.look, size: 24 }),
|
|
115
|
+
React.createElement("span", { className: "ta-share-sent-name" }, friend.name),
|
|
116
|
+
React.createElement("span", { className: `ta-share-sent-state ta-share-sent-${friend.state}` }, friend.state === 'opened' ? t('ta.share.opened') : friend.state === 'got' ? t('ta.share.got') : t('ta.share.sent'))))))));
|
|
117
|
+
}
|
|
57
118
|
/**
|
|
58
119
|
* Send to Ta friends, in the share sheet: the friends to tick, then Send; the link goes sealed for each, into their
|
|
59
120
|
* Ta, where it waits among the partners till opened (TaRoomServer.sendToFriends). What is sent is the link alone, and
|
|
@@ -66,26 +127,19 @@ function ShareToFriends({ rooms, notices, friends, link, title, onDone, }) {
|
|
|
66
127
|
const send = async () => {
|
|
67
128
|
setBusy(true);
|
|
68
129
|
try {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
onDone();
|
|
130
|
+
await rooms.sendToFriends(chosen, { link, title });
|
|
131
|
+
onDone(true);
|
|
72
132
|
}
|
|
73
133
|
catch (reason) {
|
|
74
134
|
notices.error(reason);
|
|
75
135
|
setBusy(false);
|
|
76
136
|
}
|
|
77
137
|
};
|
|
138
|
+
const people = friends.map(friend => ({ key: friend.id, name: friend.name, seed: friend.id, look: friend.look, online: friend.online }));
|
|
78
139
|
return (React.createElement("div", { className: "ta-share-friends" },
|
|
79
|
-
React.createElement(
|
|
80
|
-
const on = chosen.includes(friend.id);
|
|
81
|
-
return (React.createElement("li", { key: friend.id },
|
|
82
|
-
React.createElement("button", { type: "button", className: `ta-share-friend${on ? ' ta-on' : ''}`, "aria-pressed": on, onClick: () => setChosen(on ? chosen.filter(id => id !== friend.id) : [...chosen, friend.id]) },
|
|
83
|
-
React.createElement(face_1.Face, { seed: friend.id, look: friend.look, size: 36, online: friend.online }),
|
|
84
|
-
React.createElement("span", { className: "ta-share-friend-name" }, friend.name),
|
|
85
|
-
React.createElement("span", { className: "ta-share-friend-check" }, on && React.createElement(lucide_react_1.Check, { size: 14 })))));
|
|
86
|
-
})),
|
|
140
|
+
React.createElement(people_picker_1.PeoplePicker, { people: people, value: chosen, onChange: setChosen, disabled: busy }),
|
|
87
141
|
React.createElement("div", { className: "ta-share-friends-actions" },
|
|
88
|
-
React.createElement("button", { type: "button", className: "ta-button", onClick: onDone }, t('ta.cancel')),
|
|
142
|
+
React.createElement("button", { type: "button", className: "ta-button", onClick: () => onDone() }, t('ta.cancel')),
|
|
89
143
|
React.createElement("button", { type: "button", className: `ta-button ta-primary${busy ? ' ta-busy' : ''}`, disabled: busy || chosen.length === 0, onClick: () => void send() },
|
|
90
144
|
busy && React.createElement("span", { className: "ta-spinner ta-busy-mark" }),
|
|
91
145
|
React.createElement("span", null, chosen.length ? t('ta.share.sendN', { n: chosen.length }) : t('ta.share.pickFriends'))))));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { WebShareItem, WebShareWay } from '../extension/web-api-menus';
|
|
3
|
+
/**
|
|
4
|
+
* The share sheet of something (WebExtensionUI.share, docs/design/ta-links.md 4.2): what goes, as the other will see
|
|
5
|
+
* it, over a row of the ways that take it (registerShareWay: send to friends and group chats, post to Moments, a link).
|
|
6
|
+
* A way picked, the sheet closes and the way shows what it needs; the one place sharing starts, whatever is shared.
|
|
7
|
+
*/
|
|
8
|
+
export declare function ShareItemSheet({ item, ways, onClose }: {
|
|
9
|
+
item: WebShareItem;
|
|
10
|
+
ways: readonly WebShareWay[];
|
|
11
|
+
onClose(): void;
|
|
12
|
+
}): React.JSX.Element;
|
|
13
|
+
//# sourceMappingURL=share-item-sheet.d.ts.map
|
|
@@ -0,0 +1,75 @@
|
|
|
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.ShareItemSheet = ShareItemSheet;
|
|
37
|
+
const lucide_react_1 = require("lucide-react");
|
|
38
|
+
const React = __importStar(require("react"));
|
|
39
|
+
const icons_1 = require("../extension/icons");
|
|
40
|
+
const web_share_1 = require("../extension/web-share");
|
|
41
|
+
const hooks_1 = require("../hooks");
|
|
42
|
+
const use_t_1 = require("../i18n/use-t");
|
|
43
|
+
const empty_state_1 = require("./empty-state");
|
|
44
|
+
const share_sheet_1 = require("./share-sheet");
|
|
45
|
+
const web_dialog_1 = require("./web-dialog");
|
|
46
|
+
/**
|
|
47
|
+
* The share sheet of something (WebExtensionUI.share, docs/design/ta-links.md 4.2): what goes, as the other will see
|
|
48
|
+
* it, over a row of the ways that take it (registerShareWay: send to friends and group chats, post to Moments, a link).
|
|
49
|
+
* A way picked, the sheet closes and the way shows what it needs; the one place sharing starts, whatever is shared.
|
|
50
|
+
*/
|
|
51
|
+
function ShareItemSheet({ item, ways, onClose }) {
|
|
52
|
+
var _a;
|
|
53
|
+
const t = (0, use_t_1.useT)();
|
|
54
|
+
const [, notices] = (0, hooks_1.useNotices)();
|
|
55
|
+
const taking = web_share_1.WebShareUtil.ways(ways, item);
|
|
56
|
+
const Icon = (_a = icons_1.WEB_ICONS[web_share_1.WebShareUtil.icon(item)]) !== null && _a !== void 0 ? _a : lucide_react_1.Sparkles;
|
|
57
|
+
const name = web_share_1.WebShareUtil.name(item) || t('ta.share.thing');
|
|
58
|
+
const pick = (way) => {
|
|
59
|
+
onClose();
|
|
60
|
+
Promise.resolve()
|
|
61
|
+
.then(() => way.share(item))
|
|
62
|
+
.catch(reason => notices.error(reason));
|
|
63
|
+
};
|
|
64
|
+
return (React.createElement(web_dialog_1.WebDialog, { title: t('ta.share.titled', { name }), onClose: onClose },
|
|
65
|
+
React.createElement("div", { className: "ta-share" },
|
|
66
|
+
React.createElement("div", { className: "ta-share-card" },
|
|
67
|
+
React.createElement("div", { className: "ta-share-who" },
|
|
68
|
+
React.createElement("span", { className: "ta-share-face" },
|
|
69
|
+
React.createElement(Icon, { size: 22 })),
|
|
70
|
+
React.createElement("span", { className: "ta-share-who-text" },
|
|
71
|
+
React.createElement("strong", { className: "ta-share-name" }, name),
|
|
72
|
+
React.createElement("span", { className: "ta-share-gets" }, item.kind === 'file' ? t('ta.share.itemFile') : t('ta.share.itemWork'))))),
|
|
73
|
+
taking.length ? (React.createElement("div", { className: "ta-share-tiles" }, taking.map(way => (React.createElement(share_sheet_1.Tile, { key: way.key, icon: way.icon, label: web_share_1.WebShareUtil.label(way), onClick: () => pick(way) }))))) : (React.createElement(empty_state_1.EmptyState, { title: t('ta.share.noWay'), compact: true })))));
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=share-item-sheet.js.map
|
|
@@ -1,16 +1,24 @@
|
|
|
1
|
-
import type { TaRoomServer } from '@celljs/ta-protocol';
|
|
1
|
+
import type { TaRoomEvent, TaRoomServer } from '@celljs/ta-protocol';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import type { WebShareSheetProps } from '../extension/web-extension-api';
|
|
3
|
+
import type { WebIcon, WebShareSheetProps } from '../extension/web-extension-api';
|
|
4
4
|
import type { TaNotices } from '../notices/notices-protocol';
|
|
5
|
+
/** One of the actions under the code, as the share sheets of phones: a round icon over a word. */
|
|
6
|
+
export declare function Tile({ icon: Icon, label, onClick, disabled }: {
|
|
7
|
+
icon: WebIcon;
|
|
8
|
+
label: string;
|
|
9
|
+
onClick(): void;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
}): React.JSX.Element;
|
|
5
12
|
/**
|
|
6
13
|
* The sheet everything shared goes out from (`ui.ShareSheet`, docs/design/ta-links.md 4): who or what goes and what
|
|
7
14
|
* the other gets over its code, the link, and the actions in one row: Send to Ta friends, Copy, the system's other apps
|
|
8
15
|
* (where it has them), New link; Stop under the notes. Every package shares through it, so a share looks and works the same wherever it is made.
|
|
9
16
|
*/
|
|
10
|
-
/** What the sheet uses of the page: its notices,
|
|
17
|
+
/** What the sheet uses of the page: its notices, the rooms to send to friends by, and what happens in them (how far a send got). */
|
|
11
18
|
export interface ShareSheetServices {
|
|
12
19
|
notices: TaNotices;
|
|
13
20
|
rooms: TaRoomServer;
|
|
21
|
+
onRoomEvent?(listener: (event: TaRoomEvent) => void): () => void;
|
|
14
22
|
}
|
|
15
|
-
export declare function ShareSheet({ title, link, error, face, name, gets, notes, password, own, onRenew, onStop, stop, onClose, children, notices, rooms, }: WebShareSheetProps & ShareSheetServices): React.JSX.Element;
|
|
23
|
+
export declare function ShareSheet({ title, link, error, face, name, gets, invite, notes, password, own, onRenew, onStop, stop, onClose, children, notices, rooms, onRoomEvent, }: WebShareSheetProps & ShareSheetServices): React.JSX.Element;
|
|
16
24
|
//# sourceMappingURL=share-sheet.d.ts.map
|
|
@@ -33,9 +33,11 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.Tile = Tile;
|
|
36
37
|
exports.ShareSheet = ShareSheet;
|
|
37
38
|
const lucide_react_1 = require("lucide-react");
|
|
38
39
|
const React = __importStar(require("react"));
|
|
40
|
+
const share_sheet_compat_1 = require("../extension/share-sheet-compat");
|
|
39
41
|
const use_t_1 = require("../i18n/use-t");
|
|
40
42
|
const empty_state_1 = require("./empty-state");
|
|
41
43
|
const qr_view_1 = require("./qr-view");
|
|
@@ -61,12 +63,14 @@ function Tile({ icon: Icon, label, onClick, disabled }) {
|
|
|
61
63
|
React.createElement(Icon, { size: 20 })),
|
|
62
64
|
React.createElement("span", { className: "ta-share-tile-label" }, label)));
|
|
63
65
|
}
|
|
64
|
-
function ShareSheet({ title, link, error, face, name, gets, notes, password, own, onRenew, onStop, stop, onClose, children, notices, rooms, }) {
|
|
66
|
+
function ShareSheet({ title, link, error, face, name, gets, invite, notes, password, own, onRenew, onStop, stop, onClose, children, notices, rooms, onRoomEvent, }) {
|
|
65
67
|
const t = (0, use_t_1.useT)();
|
|
66
68
|
const [copied, copy] = useCopied();
|
|
67
69
|
const [stopping, setStopping] = React.useState(false);
|
|
68
70
|
const [picking, setPicking] = React.useState(false);
|
|
69
71
|
const friends = (0, share_friends_1.useShareFriends)(rooms);
|
|
72
|
+
const [sends, setSends] = React.useState(0);
|
|
73
|
+
const sent = (0, share_friends_1.useFriendSends)(rooms, own ? undefined : link, sends, onRoomEvent);
|
|
70
74
|
const canFriends = !own && !!(friends === null || friends === void 0 ? void 0 : friends.length);
|
|
71
75
|
const canSend = !own && typeof navigator !== 'undefined' && typeof navigator.share === 'function';
|
|
72
76
|
const end = async () => {
|
|
@@ -101,11 +105,17 @@ function ShareSheet({ title, link, error, face, name, gets, notes, password, own
|
|
|
101
105
|
" ",
|
|
102
106
|
React.createElement("code", null, password)),
|
|
103
107
|
React.createElement("button", { type: "button", className: "ta-button", onClick: () => copy(password, 'password') }, copied === 'password' ? t('ta.share.copied') : t('ta.share.copyPassword')))),
|
|
104
|
-
picking && link && friends ? (React.createElement(share_friends_1.ShareToFriends, { rooms: rooms, notices: notices, friends: friends, link: link, title: name || title, onDone:
|
|
108
|
+
picking && link && friends ? (React.createElement(share_friends_1.ShareToFriends, { rooms: rooms, notices: notices, friends: friends, link: link, title: name || title, onDone: done => {
|
|
109
|
+
setPicking(false);
|
|
110
|
+
if (done) {
|
|
111
|
+
setSends(n => n + 1);
|
|
112
|
+
}
|
|
113
|
+
} })) : (React.createElement("div", { className: "ta-share-tiles" },
|
|
105
114
|
canFriends && React.createElement(Tile, { icon: lucide_react_1.Send, label: t('ta.share.friends'), disabled: !link, onClick: () => setPicking(true) }),
|
|
106
|
-
React.createElement(Tile, { icon: copied === 'link' ? lucide_react_1.Check : lucide_react_1.Copy, label: copied === 'link' ? t('ta.share.copied') : t('ta.share.copy'), disabled: !link, onClick: () => link && copy(link, 'link') }),
|
|
107
|
-
canSend && (React.createElement(Tile, { icon: lucide_react_1.Share2, label: t('ta.share.apps'), disabled: !link, onClick: () => link && void navigator.share({ title: name || title, url: link }).catch(() => undefined) })),
|
|
115
|
+
React.createElement(Tile, { icon: copied === 'link' ? lucide_react_1.Check : lucide_react_1.Copy, label: copied === 'link' ? t('ta.share.copied') : t('ta.share.copy'), disabled: !link, onClick: () => link && copy((0, share_sheet_compat_1.shareMessage)(invite, link), 'link') }),
|
|
116
|
+
canSend && (React.createElement(Tile, { icon: lucide_react_1.Share2, label: t('ta.share.apps'), disabled: !link, onClick: () => link && void navigator.share({ title: name || title, text: invite, url: link }).catch(() => undefined) })),
|
|
108
117
|
onRenew && React.createElement(Tile, { icon: lucide_react_1.RefreshCw, label: t('ta.share.renew'), disabled: !link, onClick: onRenew }))),
|
|
118
|
+
!picking && React.createElement(share_friends_1.FriendSends, { sent: sent }),
|
|
109
119
|
children,
|
|
110
120
|
lines.length > 0 && (React.createElement("div", { className: "ta-share-notes" }, lines.map(line => (React.createElement("p", { key: line }, line))))),
|
|
111
121
|
onStop && link && (React.createElement("button", { type: "button", className: `ta-share-stop${stopping ? ' ta-busy' : ''}`, disabled: stopping, onClick: () => void end() },
|
|
@@ -74,19 +74,19 @@ function SetupForm({ setup, onSave, onCancel }) {
|
|
|
74
74
|
const [busy, setBusy] = React.useState(false);
|
|
75
75
|
const set = (id, value) => setValues(current => ({ ...current, [id]: value }));
|
|
76
76
|
const missing = shape.fields.some(field => { var _a; return !field.optional && !((_a = values[field.id]) === null || _a === void 0 ? void 0 : _a.trim()); }) || (!setup.secret && !((_a = values[shape.secret]) === null || _a === void 0 ? void 0 : _a.trim()));
|
|
77
|
-
return (React.createElement("form", { className: "ta-
|
|
77
|
+
return (React.createElement("form", { className: "ta-form", onSubmit: event => {
|
|
78
78
|
event.preventDefault();
|
|
79
79
|
setBusy(true);
|
|
80
80
|
void onSave(values).finally(() => setBusy(false));
|
|
81
81
|
} },
|
|
82
|
-
[...shape.fields, { id: shape.secret, secret: true }].map(field => { var _a; return (React.createElement("label", { key: field.id, className: "ta-
|
|
83
|
-
React.createElement("span",
|
|
82
|
+
[...shape.fields, { id: shape.secret, secret: true }].map(field => { var _a; return (React.createElement("label", { key: field.id, className: "ta-form-item" },
|
|
83
|
+
React.createElement("span", { className: "ta-form-label" }, t(`ta.signInSetup.field.${field.id}`)),
|
|
84
84
|
React.createElement("input", { className: "ta-input", type: 'secret' in field ? 'password' : 'text', value: (_a = values[field.id]) !== null && _a !== void 0 ? _a : '', placeholder: 'secret' in field && setup.secret
|
|
85
85
|
? t('ta.signInSetup.secretKept')
|
|
86
86
|
: 'optional' in field && field.optional
|
|
87
87
|
? t('ta.signInSetup.optional')
|
|
88
88
|
: '', autoComplete: "off", spellCheck: false, autoCapitalize: "off", onChange: event => set(field.id, event.target.value) }))); }),
|
|
89
|
-
React.createElement("div", { className: "ta-
|
|
89
|
+
React.createElement("div", { className: "ta-form-actions" },
|
|
90
90
|
React.createElement("button", { type: "button", className: "ta-button", disabled: busy, onClick: onCancel }, t('ta.cancel')),
|
|
91
91
|
React.createElement("button", { type: "submit", className: `ta-button ta-primary${busy ? ' ta-busy' : ''}`, disabled: busy || missing }, t('ta.signInSetup.save')))));
|
|
92
92
|
}
|
|
@@ -59,7 +59,7 @@ function TrustedDomains() {
|
|
|
59
59
|
};
|
|
60
60
|
return (React.createElement(React.Fragment, null,
|
|
61
61
|
React.createElement(settings_controls_1.Row, { label: t('ta.settings.trustedDomains'), description: t('ta.settings.trustedDomainsHint'), stacked: true },
|
|
62
|
-
React.createElement("form", { className: "ta-trusted-add", onSubmit: event => {
|
|
62
|
+
React.createElement("form", { className: "ta-trusted-add ta-form-inline", onSubmit: event => {
|
|
63
63
|
event.preventDefault();
|
|
64
64
|
add();
|
|
65
65
|
} },
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The room of a Loading or an EmptyState that is not `compact`: the rest of the view it is in, from its top to the
|
|
4
|
+
* bottom of what shows it, less what comes under it, so that it sits in the middle of what is left however the page
|
|
5
|
+
* around it is laid out. A column of flex that gives it room already (`flex: 1` in base.ts) is left to do so; where its
|
|
6
|
+
* parent is not one (a block an extension wraps it in, a body that is no column of flex) it takes the room itself,
|
|
7
|
+
* rather than each page having to make every box above it a column of flex. It keeps its own height in a reply, in a
|
|
8
|
+
* box drawn as one (a card: rounded, with a background, a border or a shadow) and beside something (a cell of a grid).
|
|
9
|
+
*/
|
|
10
|
+
export declare namespace ViewRoom {
|
|
11
|
+
interface Measure {
|
|
12
|
+
/** Its height as laid out, before any room of its own. */
|
|
13
|
+
height: number;
|
|
14
|
+
/** The height of what it holds (or its min-height): more than that, its parent gives it room. */
|
|
15
|
+
natural: number;
|
|
16
|
+
/** From its top to the bottom of the view, less what comes under it. */
|
|
17
|
+
room: number;
|
|
18
|
+
}
|
|
19
|
+
/** The min-height it takes, or undefined where it keeps the height it has. */
|
|
20
|
+
function height({ height, natural, room }: Measure): number | undefined;
|
|
21
|
+
/** Keeps the room of the element while the view and what is around it change; the function stops it. */
|
|
22
|
+
function keep(element: HTMLElement): () => void;
|
|
23
|
+
}
|
|
24
|
+
/** Gives the element its room in the view (ViewRoom) while `on`. */
|
|
25
|
+
export declare function useViewRoom(ref: React.RefObject<HTMLElement | null>, on: boolean): void;
|
|
26
|
+
//# sourceMappingURL=view-room.d.ts.map
|
|
@@ -0,0 +1,173 @@
|
|
|
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.ViewRoom = void 0;
|
|
37
|
+
exports.useViewRoom = useViewRoom;
|
|
38
|
+
const React = __importStar(require("react"));
|
|
39
|
+
/**
|
|
40
|
+
* The room of a Loading or an EmptyState that is not `compact`: the rest of the view it is in, from its top to the
|
|
41
|
+
* bottom of what shows it, less what comes under it, so that it sits in the middle of what is left however the page
|
|
42
|
+
* around it is laid out. A column of flex that gives it room already (`flex: 1` in base.ts) is left to do so; where its
|
|
43
|
+
* parent is not one (a block an extension wraps it in, a body that is no column of flex) it takes the room itself,
|
|
44
|
+
* rather than each page having to make every box above it a column of flex. It keeps its own height in a reply, in a
|
|
45
|
+
* box drawn as one (a card: rounded, with a background, a border or a shadow) and beside something (a cell of a grid).
|
|
46
|
+
*/
|
|
47
|
+
var ViewRoom;
|
|
48
|
+
(function (ViewRoom) {
|
|
49
|
+
/** The min-height it takes, or undefined where it keeps the height it has. */
|
|
50
|
+
function height({ height, natural, room }) {
|
|
51
|
+
if (height > natural + 1) {
|
|
52
|
+
return undefined;
|
|
53
|
+
}
|
|
54
|
+
return room > height + 1 ? Math.floor(room) : undefined;
|
|
55
|
+
}
|
|
56
|
+
ViewRoom.height = height;
|
|
57
|
+
/** Keeps the room of the element while the view and what is around it change; the function stops it. */
|
|
58
|
+
function keep(element) {
|
|
59
|
+
const view = viewOf(element);
|
|
60
|
+
if (element.closest('.ta-message') || boxed(element, view)) {
|
|
61
|
+
return () => undefined;
|
|
62
|
+
}
|
|
63
|
+
let frame = 0;
|
|
64
|
+
const measure = () => {
|
|
65
|
+
frame = 0;
|
|
66
|
+
const taken = room(element, view);
|
|
67
|
+
const next = taken === undefined ? '' : `${taken}px`;
|
|
68
|
+
if (element.style.minHeight !== next) {
|
|
69
|
+
element.style.minHeight = next;
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
const later = () => {
|
|
73
|
+
if (!frame) {
|
|
74
|
+
frame = requestAnimationFrame(measure);
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
measure();
|
|
78
|
+
const observer = typeof ResizeObserver === 'function' ? new ResizeObserver(later) : undefined;
|
|
79
|
+
observer === null || observer === void 0 ? void 0 : observer.observe(view !== null && view !== void 0 ? view : document.documentElement);
|
|
80
|
+
if (element.parentElement && element.parentElement !== view) {
|
|
81
|
+
observer === null || observer === void 0 ? void 0 : observer.observe(element.parentElement);
|
|
82
|
+
}
|
|
83
|
+
window.addEventListener('resize', later);
|
|
84
|
+
return () => {
|
|
85
|
+
observer === null || observer === void 0 ? void 0 : observer.disconnect();
|
|
86
|
+
window.removeEventListener('resize', later);
|
|
87
|
+
cancelAnimationFrame(frame);
|
|
88
|
+
element.style.minHeight = '';
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
ViewRoom.keep = keep;
|
|
92
|
+
function room(element, view) {
|
|
93
|
+
element.style.minHeight = '';
|
|
94
|
+
const rect = element.getBoundingClientRect();
|
|
95
|
+
let after = 0;
|
|
96
|
+
for (let node = element; node.parentElement && node !== view; node = node.parentElement) {
|
|
97
|
+
const parent = node.parentElement;
|
|
98
|
+
if (parent === view) {
|
|
99
|
+
break;
|
|
100
|
+
}
|
|
101
|
+
const box = node.getBoundingClientRect();
|
|
102
|
+
let bottom = box.bottom;
|
|
103
|
+
for (const sibling of Array.from(parent.children)) {
|
|
104
|
+
if (sibling === node || !inFlow(sibling)) {
|
|
105
|
+
continue;
|
|
106
|
+
}
|
|
107
|
+
const other = sibling.getBoundingClientRect();
|
|
108
|
+
if (other.height === 0 && other.width === 0) {
|
|
109
|
+
continue;
|
|
110
|
+
}
|
|
111
|
+
if (other.top < box.bottom - 1 && other.bottom > box.top + 1) {
|
|
112
|
+
return undefined;
|
|
113
|
+
}
|
|
114
|
+
if (other.top >= box.bottom - 1) {
|
|
115
|
+
bottom = Math.max(bottom, other.bottom);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
const style = getComputedStyle(parent);
|
|
119
|
+
after += bottom - box.bottom + px(style.paddingBottom) + px(style.borderBottomWidth);
|
|
120
|
+
}
|
|
121
|
+
const end = view ? viewBottom(view) : window.innerHeight;
|
|
122
|
+
return height({ height: rect.height, natural: natural(element, rect.height), room: Math.min(end, window.innerHeight) - rect.top - after });
|
|
123
|
+
}
|
|
124
|
+
function natural(element, laid) {
|
|
125
|
+
const style = getComputedStyle(element);
|
|
126
|
+
const children = Array.from(element.children).filter(inFlow);
|
|
127
|
+
if (!children.length) {
|
|
128
|
+
return Math.max(px(style.minHeight), laid);
|
|
129
|
+
}
|
|
130
|
+
const top = Math.min(...children.map(child => child.getBoundingClientRect().top));
|
|
131
|
+
const bottom = Math.max(...children.map(child => child.getBoundingClientRect().bottom));
|
|
132
|
+
const content = bottom - top + px(style.paddingTop) + px(style.paddingBottom) + px(style.borderTopWidth) + px(style.borderBottomWidth);
|
|
133
|
+
return Math.max(px(style.minHeight), content);
|
|
134
|
+
}
|
|
135
|
+
function viewOf(element) {
|
|
136
|
+
for (let node = element.parentElement; node && node !== document.body && node !== document.documentElement; node = node.parentElement) {
|
|
137
|
+
const overflow = getComputedStyle(node).overflowY;
|
|
138
|
+
if (overflow !== 'visible') {
|
|
139
|
+
return node;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
return undefined;
|
|
143
|
+
}
|
|
144
|
+
function viewBottom(view) {
|
|
145
|
+
const style = getComputedStyle(view);
|
|
146
|
+
return view.getBoundingClientRect().top + view.clientTop + view.clientHeight - px(style.paddingBottom);
|
|
147
|
+
}
|
|
148
|
+
function boxed(element, view) {
|
|
149
|
+
for (let node = element.parentElement; node && node !== view && node !== document.body; node = node.parentElement) {
|
|
150
|
+
const style = getComputedStyle(node);
|
|
151
|
+
if (px(style.borderTopLeftRadius) <= 0) {
|
|
152
|
+
continue;
|
|
153
|
+
}
|
|
154
|
+
const filled = !/^(transparent|rgba\(0, 0, 0, 0\))$/.test(style.backgroundColor);
|
|
155
|
+
if (filled || px(style.borderTopWidth) > 0 || style.boxShadow !== 'none') {
|
|
156
|
+
return true;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
return false;
|
|
160
|
+
}
|
|
161
|
+
function inFlow(element) {
|
|
162
|
+
const style = getComputedStyle(element);
|
|
163
|
+
return style.display !== 'none' && style.position !== 'absolute' && style.position !== 'fixed';
|
|
164
|
+
}
|
|
165
|
+
function px(value) {
|
|
166
|
+
return Number.parseFloat(value) || 0;
|
|
167
|
+
}
|
|
168
|
+
})(ViewRoom || (exports.ViewRoom = ViewRoom = {}));
|
|
169
|
+
/** Gives the element its room in the view (ViewRoom) while `on`. */
|
|
170
|
+
function useViewRoom(ref, on) {
|
|
171
|
+
React.useLayoutEffect(() => (on && ref.current ? ViewRoom.keep(ref.current) : undefined), [on, ref]);
|
|
172
|
+
}
|
|
173
|
+
//# sourceMappingURL=view-room.js.map
|
|
@@ -177,17 +177,17 @@ function VoiceForm({ type, title, service, close, added, }) {
|
|
|
177
177
|
event.preventDefault();
|
|
178
178
|
void submit();
|
|
179
179
|
} },
|
|
180
|
-
type.options.map(option => { var _a, _b; return (React.createElement("label", { key: option.key, className: "ta-
|
|
181
|
-
React.createElement("span", { className: "ta-
|
|
182
|
-
option.optional && React.createElement("span", { className: "ta-
|
|
180
|
+
type.options.map(option => { var _a, _b; return (React.createElement("label", { key: option.key, className: "ta-form-item" },
|
|
181
|
+
React.createElement("span", { className: "ta-form-label" }, (_a = ta_protocol_1.TaPackageTextUtil.pick(option.label, language)) !== null && _a !== void 0 ? _a : option.key,
|
|
182
|
+
option.optional && React.createElement("span", { className: "ta-form-optional" }, t('ta.voices.optional'))),
|
|
183
183
|
React.createElement("input", { className: "ta-input", type: option.secret ? 'password' : 'text', autoComplete: option.secret ? 'new-password' : 'off', spellCheck: false, placeholder: service && option.secret ? t('ta.voices.keepSecret') : option.placeholder, value: (_b = values[option.key]) !== null && _b !== void 0 ? _b : '', onChange: event => {
|
|
184
184
|
const value = event.target.value;
|
|
185
185
|
setValues(before => ({ ...before, [option.key]: value }));
|
|
186
186
|
} }))); }),
|
|
187
|
-
React.createElement("label", { className: "ta-
|
|
188
|
-
React.createElement("span", { className: "ta-
|
|
187
|
+
React.createElement("label", { className: "ta-form-item" },
|
|
188
|
+
React.createElement("span", { className: "ta-form-label" },
|
|
189
189
|
t('ta.voices.name'),
|
|
190
|
-
React.createElement("span", { className: "ta-
|
|
190
|
+
React.createElement("span", { className: "ta-form-optional" }, t('ta.voices.optional'))),
|
|
191
191
|
React.createElement("input", { className: "ta-input", value: name, placeholder: title, spellCheck: false, onChange: event => setName(event.target.value) })),
|
|
192
192
|
React.createElement("p", { className: "ta-store-form-note" },
|
|
193
193
|
React.createElement(icon_1.Icon, { icon: lucide_react_1.ShieldCheck, size: 13 }),
|
|
@@ -21,14 +21,17 @@ export interface DeviceState {
|
|
|
21
21
|
* (`@media ${DeviceMedia.COMPACT}`) and for the code (DeviceState). Never write a width of the layout elsewhere.
|
|
22
22
|
*/
|
|
23
23
|
export declare namespace DeviceMedia {
|
|
24
|
-
/**
|
|
25
|
-
|
|
24
|
+
/**
|
|
25
|
+
* The main pointer is a finger. Or a pen: a screen that also takes a stylus is a fine pointer to Chrome on Android
|
|
26
|
+
* (phones with a pen, the emulator), but no pointer of it hovers, as none of a computer's fails to.
|
|
27
|
+
*/
|
|
28
|
+
const TOUCH = "(pointer: coarse), (hover: none)";
|
|
26
29
|
/** A phone held sideways: as wide as a small tablet, but low. */
|
|
27
|
-
const LOW = "(max-height: 500px) and (pointer: coarse)";
|
|
28
|
-
const COMPACT = "(max-width: 860px), (max-height: 500px) and (pointer: coarse)";
|
|
30
|
+
const LOW = "(max-height: 500px) and (pointer: coarse), (max-height: 500px) and (hover: none)";
|
|
31
|
+
const COMPACT = "(max-width: 860px), (max-height: 500px) and (pointer: coarse), (max-height: 500px) and (hover: none)";
|
|
29
32
|
/** The workbench beside the conversation too: a window of a computer, or a tablet wide enough (13" sideways) that the conversation keeps its room beside the sidebar. */
|
|
30
|
-
const EXPANDED = "(min-width: 1100px) and (pointer: fine), (min-width: 1300px)";
|
|
31
|
-
const HANDHELD = "(max-width: 599px), (max-height: 500px) and (pointer: coarse)";
|
|
33
|
+
const EXPANDED = "(min-width: 1100px) and (pointer: fine) and (hover: hover), (min-width: 1300px)";
|
|
34
|
+
const HANDHELD = "(max-width: 599px), (max-height: 500px) and (pointer: coarse), (max-height: 500px) and (hover: none)";
|
|
32
35
|
}
|
|
33
36
|
/**
|
|
34
37
|
* How the page moves with the on-screen keyboard of the Ta app on iOS (DeviceObserver, style/shell.ts):
|