@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
|
@@ -36,15 +36,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
36
36
|
exports.Loading = Loading;
|
|
37
37
|
exports.LoadingHead = LoadingHead;
|
|
38
38
|
const React = __importStar(require("react"));
|
|
39
|
+
const view_room_1 = require("./view-room");
|
|
39
40
|
/**
|
|
40
41
|
* What a page, a list, a card or a dialog shows while what it shows is on its way: a small turning mark, and under it
|
|
41
|
-
* the words of what it waits for when they help, in the middle of the space it
|
|
42
|
-
* of flex
|
|
42
|
+
* the words of what it waits for when they help, in the middle of the space left in the view it is in, as EmptyState:
|
|
43
|
+
* a column of flex gives it room, and where its parent is none it takes the rest of the view itself (ViewRoom), so no
|
|
44
|
+
* page has to lay out what is around it for that. `compact`: a line of its own, in a card, a dialog or a section. It
|
|
43
45
|
* shows only after a moment (style/base.ts), so that what comes at once never flashes it. The one way Ta shows that
|
|
44
46
|
* something is on its way; what waits on a click shows on what was clicked (busy.tsx).
|
|
45
47
|
*/
|
|
46
48
|
function Loading({ label, compact }) {
|
|
47
|
-
|
|
49
|
+
const ref = React.useRef(null);
|
|
50
|
+
(0, view_room_1.useViewRoom)(ref, !compact);
|
|
51
|
+
return (React.createElement("div", { ref: ref, className: compact ? 'ta-loading ta-loading-compact' : 'ta-loading', role: "status", "aria-busy": "true" },
|
|
48
52
|
React.createElement("span", { className: "ta-spinner", "aria-hidden": "true" }),
|
|
49
53
|
label && React.createElement("span", { className: "ta-loading-label" }, label)));
|
|
50
54
|
}
|
|
@@ -10,12 +10,14 @@ export declare function CodeBlock({ code, language }: {
|
|
|
10
10
|
* `inline`: a short text in a line (an option, an answer, a label), its marks and formulas drawn without blocks.
|
|
11
11
|
* `send` and `answer`: where a choice tapped in its blocks goes and what was answered (WebCodeRendererProps), for a
|
|
12
12
|
* text a page shows of a conversation of its own (a group chat); else those of the conversation it is in, if any.
|
|
13
|
+
* `whole`: its blocks are what the page shows, never folded (WebCodeRendererProps.whole).
|
|
13
14
|
*/
|
|
14
|
-
export declare function Markdown({ text, streaming, inline, send, answer, }: {
|
|
15
|
+
export declare function Markdown({ text, streaming, inline, send, answer, whole, }: {
|
|
15
16
|
text: string;
|
|
16
17
|
streaming?: boolean;
|
|
17
18
|
inline?: boolean;
|
|
18
19
|
send?: WebCodeRendererProps['send'];
|
|
19
20
|
answer?: string;
|
|
21
|
+
whole?: boolean;
|
|
20
22
|
}): React.JSX.Element;
|
|
21
23
|
//# sourceMappingURL=markdown.d.ts.map
|
|
@@ -201,6 +201,8 @@ function CodeView({ language, code, closed }) {
|
|
|
201
201
|
const answer = React.useContext(code_renderers_1.CodeAnswer);
|
|
202
202
|
const conversation = React.useContext(code_renderers_1.CodeConversation);
|
|
203
203
|
const embedded = React.useContext(code_renderers_1.CodeEmbedded);
|
|
204
|
+
const whole = React.useContext(code_renderers_1.CodeWhole);
|
|
205
|
+
const titled = React.useContext(code_renderers_1.CodeTitled);
|
|
204
206
|
// What a reply holds for the ear alone (SpokenReply) is heard, not shown.
|
|
205
207
|
if (language.trim().toLowerCase() === spoken_1.SpokenReply.LANGUAGE) {
|
|
206
208
|
return null;
|
|
@@ -209,8 +211,9 @@ function CodeView({ language, code, closed }) {
|
|
|
209
211
|
if (Renderer) {
|
|
210
212
|
return (React.createElement(CodeBoundary, { retry: closed, fallback: plain },
|
|
211
213
|
pointing && React.createElement(PointHint, { onCancel: () => end() }),
|
|
212
|
-
React.createElement(code_renderers_1.CodeEmbedded.Provider, { value: true },
|
|
213
|
-
React.createElement(
|
|
214
|
+
React.createElement(code_renderers_1.CodeEmbedded.Provider, { value: true },
|
|
215
|
+
React.createElement(code_renderers_1.CodeTitled.Provider, { value: undefined }, embedded ? (React.createElement("div", { className: "ta-code-embedded" },
|
|
216
|
+
React.createElement(Renderer, { code: code, language: language, closed: closed, send: send, answer: answer, conversation: conversation, whole: whole, embedded: true, ...(titled ? { titled } : {}) }))) : (React.createElement(Renderer, { code: code, language: language, closed: closed, send: send, answer: answer, conversation: conversation, whole: whole, ...(titled ? { titled } : {}), ...(pointing ? { point: end } : {}) })))),
|
|
214
217
|
closed && !embedded && !pointing && (React.createElement(DrawnActions, { code: code, language: language, conversation: conversation, ...(pointable ? { point: begin } : {}) }))));
|
|
215
218
|
}
|
|
216
219
|
if (mermaid_1.MermaidUtil.isDiagram(language, code)) {
|
|
@@ -305,11 +308,13 @@ const MarkdownBody = React.memo(function MarkdownBody({ text, streaming }) {
|
|
|
305
308
|
* `inline`: a short text in a line (an option, an answer, a label), its marks and formulas drawn without blocks.
|
|
306
309
|
* `send` and `answer`: where a choice tapped in its blocks goes and what was answered (WebCodeRendererProps), for a
|
|
307
310
|
* text a page shows of a conversation of its own (a group chat); else those of the conversation it is in, if any.
|
|
311
|
+
* `whole`: its blocks are what the page shows, never folded (WebCodeRendererProps.whole).
|
|
308
312
|
*/
|
|
309
|
-
function Markdown({ text, streaming = false, inline = false, send, answer, }) {
|
|
313
|
+
function Markdown({ text, streaming = false, inline = false, send, answer, whole, }) {
|
|
310
314
|
const body = inline ? (React.createElement("span", { className: "ta-markdown ta-markdown-inline" },
|
|
311
315
|
React.createElement(Text, { text: text }))) : (React.createElement(MarkdownBody, { text: text, streaming: streaming }));
|
|
316
|
+
const drawn = whole === undefined ? body : React.createElement(code_renderers_1.CodeWhole.Provider, { value: whole }, body);
|
|
312
317
|
return send ? (React.createElement(code_renderers_1.CodeReply.Provider, { value: send },
|
|
313
|
-
React.createElement(code_renderers_1.CodeAnswer.Provider, { value: answer },
|
|
318
|
+
React.createElement(code_renderers_1.CodeAnswer.Provider, { value: answer }, drawn))) : (drawn);
|
|
314
319
|
}
|
|
315
320
|
//# sourceMappingURL=markdown.js.map
|
|
@@ -7,15 +7,21 @@ import { ThumbnailUtil } from '../util/thumbnail';
|
|
|
7
7
|
* the file before.
|
|
8
8
|
*/
|
|
9
9
|
export declare const FileUrls: React.Context<((path: string, box?: ThumbnailUtil.Box) => Promise<string>) | undefined>;
|
|
10
|
+
/**
|
|
11
|
+
* Asks every picture that could not load to load again: one may not have come for a while (a phone whose network
|
|
12
|
+
* changed, the app in the background, the relay of the computer reconnecting), not be missing.
|
|
13
|
+
*/
|
|
14
|
+
export declare function askAgain(): void;
|
|
10
15
|
/**
|
|
11
16
|
* The URL of a target: as it is, or for a path, the URL of the file, smaller in `box`; null when it cannot show,
|
|
12
|
-
* undefined while it is asked (and for no target).
|
|
17
|
+
* undefined while it is asked (and for no target). With it, what to call when what it gave did not load (an image
|
|
18
|
+
* that failed): it is null then, and asked again with the others that could not load (askAgain).
|
|
13
19
|
*/
|
|
14
|
-
export declare function useMediaUrl(src: string | undefined, box?: ThumbnailUtil.Box): string | null | undefined;
|
|
20
|
+
export declare function useMediaUrl(src: string | undefined, box?: ThumbnailUtil.Box): [string | null | undefined, () => void];
|
|
15
21
|
/** The URL of the file itself of a target, not of a picture of it made smaller: what copying it takes. */
|
|
16
22
|
export declare function useFullUrl(): (src: string) => Promise<string>;
|
|
17
|
-
/** The URLs of targets, as `useMediaUrl` gives each, all in one `box`: the tiles of a gallery. */
|
|
18
|
-
export declare function useMediaUrls(sources: readonly string[], box?: ThumbnailUtil.Box): (string | null | undefined)[];
|
|
23
|
+
/** The URLs of targets, as `useMediaUrl` gives each, all in one `box`: the tiles of a gallery; and what to call for one that did not load. */
|
|
24
|
+
export declare function useMediaUrls(sources: readonly string[], box?: ThumbnailUtil.Box): [(string | null | undefined)[], (src: string) => void];
|
|
19
25
|
/** An image, a video or a sound a reply shows: from the web, a data URL, or a file of the workspace. */
|
|
20
26
|
export declare function MediaView({ src, alt }: {
|
|
21
27
|
src: string;
|
|
@@ -34,6 +34,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.FileUrls = void 0;
|
|
37
|
+
exports.askAgain = askAgain;
|
|
37
38
|
exports.useMediaUrl = useMediaUrl;
|
|
38
39
|
exports.useFullUrl = useFullUrl;
|
|
39
40
|
exports.useMediaUrls = useMediaUrls;
|
|
@@ -65,9 +66,49 @@ const MEDIA_MAX_HEIGHT = 420;
|
|
|
65
66
|
const MEDIA_MAX_WIDTH = 720;
|
|
66
67
|
/** The box an image of a reply asks for. */
|
|
67
68
|
const IMAGE_BOX = { width: thumbnail_1.ThumbnailUtil.side(MEDIA_MAX_WIDTH), height: thumbnail_1.ThumbnailUtil.side(MEDIA_MAX_HEIGHT) };
|
|
69
|
+
/** What could not load, told to load again: when the page may reach the computer again, or a tap on one asks. */
|
|
70
|
+
const again = new Set();
|
|
71
|
+
function askAgainShown() {
|
|
72
|
+
if (document.visibilityState === 'visible') {
|
|
73
|
+
askAgain();
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Asks every picture that could not load to load again: one may not have come for a while (a phone whose network
|
|
78
|
+
* changed, the app in the background, the relay of the computer reconnecting), not be missing.
|
|
79
|
+
*/
|
|
80
|
+
function askAgain() {
|
|
81
|
+
for (const one of [...again]) {
|
|
82
|
+
one();
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
/** Counts the times what could not load is asked again, while `waiting`: a dependency of what asks for it. */
|
|
86
|
+
function useAgain(waiting) {
|
|
87
|
+
const [count, setCount] = React.useState(0);
|
|
88
|
+
React.useEffect(() => {
|
|
89
|
+
if (!waiting) {
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
const bump = () => setCount(n => n + 1);
|
|
93
|
+
if (!again.size) {
|
|
94
|
+
window.addEventListener('online', askAgain);
|
|
95
|
+
document.addEventListener('visibilitychange', askAgainShown);
|
|
96
|
+
}
|
|
97
|
+
again.add(bump);
|
|
98
|
+
return () => {
|
|
99
|
+
again.delete(bump);
|
|
100
|
+
if (!again.size) {
|
|
101
|
+
window.removeEventListener('online', askAgain);
|
|
102
|
+
document.removeEventListener('visibilitychange', askAgainShown);
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
}, [waiting]);
|
|
106
|
+
return count;
|
|
107
|
+
}
|
|
68
108
|
/**
|
|
69
109
|
* The URL of a target: as it is, or for a path, the URL of the file, smaller in `box`; null when it cannot show,
|
|
70
|
-
* undefined while it is asked (and for no target).
|
|
110
|
+
* undefined while it is asked (and for no target). With it, what to call when what it gave did not load (an image
|
|
111
|
+
* that failed): it is null then, and asked again with the others that could not load (askAgain).
|
|
71
112
|
*/
|
|
72
113
|
function useMediaUrl(src, box) {
|
|
73
114
|
const fileUrl = React.useContext(exports.FileUrls);
|
|
@@ -76,6 +117,8 @@ function useMediaUrl(src, box) {
|
|
|
76
117
|
// What it asked for with the URL: another target (a gallery enlarged goes through its pictures) is not shown the one before.
|
|
77
118
|
const asked = `${path} ${width}x${height}${cover ? ' cover' : ''}`;
|
|
78
119
|
const [found, setFound] = React.useState();
|
|
120
|
+
const count = useAgain(path !== undefined && (found === null || found === void 0 ? void 0 : found.asked) === asked && found.url === null);
|
|
121
|
+
// biome-ignore lint/correctness/useExhaustiveDependencies: count asks again what could not load
|
|
79
122
|
React.useEffect(() => {
|
|
80
123
|
if (path === undefined) {
|
|
81
124
|
return;
|
|
@@ -89,11 +132,12 @@ function useMediaUrl(src, box) {
|
|
|
89
132
|
return () => {
|
|
90
133
|
current = false;
|
|
91
134
|
};
|
|
92
|
-
}, [fileUrl, path, asked, width, height, cover]);
|
|
135
|
+
}, [fileUrl, path, asked, width, height, cover, count]);
|
|
136
|
+
const broke = React.useCallback(() => setFound(known => ((known === null || known === void 0 ? void 0 : known.asked) === asked ? { asked, url: null } : known)), [asked]);
|
|
93
137
|
if (path === undefined) {
|
|
94
|
-
return src;
|
|
138
|
+
return [src, broke];
|
|
95
139
|
}
|
|
96
|
-
return (found === null || found === void 0 ? void 0 : found.asked) === asked ? found.url : undefined;
|
|
140
|
+
return [(found === null || found === void 0 ? void 0 : found.asked) === asked ? found.url : undefined, broke];
|
|
97
141
|
}
|
|
98
142
|
/** The URL of the file itself of a target, not of a picture of it made smaller: what copying it takes. */
|
|
99
143
|
function useFullUrl() {
|
|
@@ -106,12 +150,14 @@ function useFullUrl() {
|
|
|
106
150
|
return fileUrl ? fileUrl(path) : Promise.reject(new Error(`Cannot load ${path}`));
|
|
107
151
|
}, [fileUrl]);
|
|
108
152
|
}
|
|
109
|
-
/** The URLs of targets, as `useMediaUrl` gives each, all in one `box`: the tiles of a gallery. */
|
|
153
|
+
/** The URLs of targets, as `useMediaUrl` gives each, all in one `box`: the tiles of a gallery; and what to call for one that did not load. */
|
|
110
154
|
function useMediaUrls(sources, box) {
|
|
111
155
|
const fileUrl = React.useContext(exports.FileUrls);
|
|
112
156
|
const key = sources.join('\n');
|
|
113
157
|
const { width, height, cover } = box !== null && box !== void 0 ? box : {};
|
|
114
158
|
const [urls, setUrls] = React.useState({});
|
|
159
|
+
const count = useAgain(sources.some(src => urls[src] === null));
|
|
160
|
+
// biome-ignore lint/correctness/useExhaustiveDependencies: count asks again what could not load
|
|
115
161
|
React.useEffect(() => {
|
|
116
162
|
let current = true;
|
|
117
163
|
for (const src of key.split('\n')) {
|
|
@@ -123,13 +169,14 @@ function useMediaUrls(sources, box) {
|
|
|
123
169
|
setUrls(known => ({ ...known, [src]: null }));
|
|
124
170
|
continue;
|
|
125
171
|
}
|
|
126
|
-
fileUrl(path, width && height ? { width, height, cover } : undefined).then(url => current && setUrls(known => ({ ...known, [src]: url })), () => current && setUrls(known => ({ ...known, [src]: null })));
|
|
172
|
+
fileUrl(path, width && height ? { width, height, cover } : undefined).then(url => current && setUrls(known => (known[src] === url ? known : { ...known, [src]: url })), () => current && setUrls(known => (known[src] === null ? known : { ...known, [src]: null })));
|
|
127
173
|
}
|
|
128
174
|
return () => {
|
|
129
175
|
current = false;
|
|
130
176
|
};
|
|
131
|
-
}, [fileUrl, key, width, height, cover]);
|
|
132
|
-
|
|
177
|
+
}, [fileUrl, key, width, height, cover, count]);
|
|
178
|
+
const broke = React.useCallback((src) => setUrls(known => (known[src] === null ? known : { ...known, [src]: null })), []);
|
|
179
|
+
return [sources.map(src => (markdown_1.MarkdownUtil.localPath(src) === undefined ? src : urls[src])), broke];
|
|
133
180
|
}
|
|
134
181
|
/** An image, a video or a sound a reply shows: from the web, a data URL, or a file of the workspace. */
|
|
135
182
|
function MediaView({ src, alt }) {
|
|
@@ -137,21 +184,21 @@ function MediaView({ src, alt }) {
|
|
|
137
184
|
const t = (0, use_t_1.useT)();
|
|
138
185
|
const kind = (_a = markdown_1.MarkdownUtil.media(src)) !== null && _a !== void 0 ? _a : 'image';
|
|
139
186
|
// A picture of the workspace loads as large as it shows (ThumbnailUtil); enlarged, as it is.
|
|
140
|
-
const url = useMediaUrl(src, kind === 'image' ? IMAGE_BOX : undefined);
|
|
141
|
-
const [failedUrl, setFailedUrl] = React.useState();
|
|
187
|
+
const [url, broke] = useMediaUrl(src, kind === 'image' ? IMAGE_BOX : undefined);
|
|
142
188
|
const [open, setOpen] = React.useState(false);
|
|
143
|
-
const full = useMediaUrl(open && kind === 'image' ? src : undefined);
|
|
189
|
+
const [full] = useMediaUrl(open && kind === 'image' ? src : undefined);
|
|
144
190
|
const [loaded, setLoaded] = React.useState(false);
|
|
145
191
|
const fullUrl = useFullUrl();
|
|
146
192
|
const [menu, openMenu] = (0, image_menu_1.useImageMenu)();
|
|
147
193
|
const known = shown.get(src);
|
|
148
|
-
|
|
194
|
+
// One that could not show before says so at once while it is asked again: it may only not have come then.
|
|
195
|
+
const failed = url === null || (url === undefined && known === false);
|
|
149
196
|
const setFailed = () => {
|
|
150
197
|
// A file of the workspace that is not there; one from the web may only be out of reach for now (offline).
|
|
151
198
|
if (markdown_1.MarkdownUtil.localPath(src) !== undefined) {
|
|
152
199
|
shown.set(src, false);
|
|
153
200
|
}
|
|
154
|
-
|
|
201
|
+
broke();
|
|
155
202
|
};
|
|
156
203
|
const size = kind === 'image' && known ? known : undefined;
|
|
157
204
|
// Of the size it had when known: its place does not change as it loads.
|
|
@@ -167,7 +214,7 @@ function MediaView({ src, alt }) {
|
|
|
167
214
|
}
|
|
168
215
|
if (!url || failed) {
|
|
169
216
|
const name = alt || src.split(/[?#]/)[0].split('/').pop() || src;
|
|
170
|
-
return (React.createElement("
|
|
217
|
+
return (React.createElement("button", { type: "button", className: "ta-media-missing", title: `${src}\n${t('ta.markdown.retry')}`, onClick: askAgain },
|
|
171
218
|
React.createElement(icon_1.Icon, { icon: lucide_react_1.ImageOff, size: 14 }),
|
|
172
219
|
t('ta.markdown.missing', { name })));
|
|
173
220
|
}
|
|
@@ -45,6 +45,7 @@ const extension_view_1 = require("../extension/extension-view");
|
|
|
45
45
|
const use_t_1 = require("../i18n/use-t");
|
|
46
46
|
const code_renderers_1 = require("../markdown/code-renderers");
|
|
47
47
|
const call_transcript_1 = require("../util/call-transcript");
|
|
48
|
+
const fresh_rows_1 = require("../util/fresh-rows");
|
|
48
49
|
const message_1 = require("../util/message");
|
|
49
50
|
const process_1 = require("../util/process");
|
|
50
51
|
const progress_1 = require("../util/progress");
|
|
@@ -293,7 +294,7 @@ function useThreadRows(items, rows) {
|
|
|
293
294
|
// Rows that come after the list is drawn come in with a motion; those of a conversation opened or loaded again,
|
|
294
295
|
// and those already there when earlier messages come in front of them, still: by key, not by index.
|
|
295
296
|
const freshRows = React.useRef(undefined);
|
|
296
|
-
(_b = freshRows.current) !== null && _b !== void 0 ? _b : (freshRows.current = new
|
|
297
|
+
(_b = freshRows.current) !== null && _b !== void 0 ? _b : (freshRows.current = new fresh_rows_1.FreshRows(items));
|
|
297
298
|
const fresh = freshRows.current.from(items);
|
|
298
299
|
const count = items.length;
|
|
299
300
|
return {
|
|
@@ -95,12 +95,15 @@ const SaidStep = React.memo(function SaidStep({ message }) {
|
|
|
95
95
|
React.createElement(message_user_1.MessageOrigin, { blocks: blocks })),
|
|
96
96
|
React.createElement(message_user_1.UserSaid, { blocks: blocks, text: text, bubble: "ta-said-bubble", timestamp: message.timestamp })));
|
|
97
97
|
});
|
|
98
|
-
/**
|
|
99
|
-
|
|
98
|
+
/**
|
|
99
|
+
* Where the work went on after it was cut short (Ta restarted, the network came back, a part of Ta told it something,
|
|
100
|
+
* as that it moved to the cloud): one quiet line on the string of the steps.
|
|
101
|
+
*/
|
|
102
|
+
function ResumedStep({ online, text }) {
|
|
100
103
|
const t = (0, use_t_1.useT)();
|
|
101
|
-
return (React.createElement("div", { className: "ta-step-resumed" },
|
|
104
|
+
return (React.createElement("div", { className: "ta-step-resumed", title: text },
|
|
102
105
|
React.createElement("span", { className: "ta-status ta-status-thought" }),
|
|
103
|
-
React.createElement("span",
|
|
106
|
+
React.createElement("span", { className: "ta-step-resumed-text" }, text || t(online ? 'ta.message.resumedOnline' : 'ta.message.resumed'))));
|
|
104
107
|
}
|
|
105
108
|
const TextStep = React.memo(function TextStep({ text, streaming }) {
|
|
106
109
|
return (React.createElement("div", { className: "ta-step-text" },
|
|
@@ -122,7 +125,7 @@ function Step({ step, results, tools, tagged, streaming, }) {
|
|
|
122
125
|
case 'said':
|
|
123
126
|
return React.createElement(SaidStep, { message: step.message });
|
|
124
127
|
case 'resumed':
|
|
125
|
-
return React.createElement(ResumedStep, { online: step.online });
|
|
128
|
+
return React.createElement(ResumedStep, { online: step.online, text: step.text });
|
|
126
129
|
default:
|
|
127
130
|
return React.createElement(tool_view_1.ActView, { act: step, results: results, runs: tools });
|
|
128
131
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { WebPeoplePickerProps, WebPerson } from '../extension/web-api-partners';
|
|
3
|
+
export declare namespace PeoplePickerUtil {
|
|
4
|
+
/** Those with every word of `query`, in any case, in their name, tag, line, heading or keywords. */
|
|
5
|
+
function filter(people: readonly WebPerson[], query: string): WebPerson[];
|
|
6
|
+
/** Under their headings, each heading once, in the order the first of it comes. */
|
|
7
|
+
function sections(people: readonly WebPerson[]): {
|
|
8
|
+
title?: string;
|
|
9
|
+
people: WebPerson[];
|
|
10
|
+
}[];
|
|
11
|
+
/** What is picked once `key` is tapped: in or out of several, in place of the one before alone. */
|
|
12
|
+
function toggle(value: readonly string[], key: string, single?: boolean): string[];
|
|
13
|
+
/** Whether a tap does nothing on it: it is fixed, or there are as many as may be and it is not one of them. */
|
|
14
|
+
function locked(person: WebPerson, value: readonly string[], max?: number): boolean;
|
|
15
|
+
}
|
|
16
|
+
/** The one way to pick people of Ta (WebPeoplePickerProps; web extensions `ui.PeoplePicker`). */
|
|
17
|
+
export declare function PeoplePicker({ people, value, onChange, single, max, disabled, placeholder, empty, emptyHint }: WebPeoplePickerProps): React.JSX.Element;
|
|
18
|
+
//# sourceMappingURL=people-picker.d.ts.map
|
|
@@ -0,0 +1,166 @@
|
|
|
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.PeoplePickerUtil = void 0;
|
|
37
|
+
exports.PeoplePicker = PeoplePicker;
|
|
38
|
+
const lucide_react_1 = require("lucide-react");
|
|
39
|
+
const React = __importStar(require("react"));
|
|
40
|
+
const use_t_1 = require("../i18n/use-t");
|
|
41
|
+
const empty_state_1 = require("./empty-state");
|
|
42
|
+
const face_1 = require("./face");
|
|
43
|
+
const icon_1 = require("./icon");
|
|
44
|
+
const loading_1 = require("./loading");
|
|
45
|
+
const select_bar_1 = require("./select-bar");
|
|
46
|
+
var PeoplePickerUtil;
|
|
47
|
+
(function (PeoplePickerUtil) {
|
|
48
|
+
/** Those with every word of `query`, in any case, in their name, tag, line, heading or keywords. */
|
|
49
|
+
function filter(people, query) {
|
|
50
|
+
const words = query.toLowerCase().split(/\s+/).filter(Boolean);
|
|
51
|
+
if (!words.length) {
|
|
52
|
+
return [...people];
|
|
53
|
+
}
|
|
54
|
+
return people.filter(person => {
|
|
55
|
+
const text = [person.name, person.tag, person.detail, person.section, person.keywords].filter(Boolean).join(' ').toLowerCase();
|
|
56
|
+
return words.every(word => text.includes(word));
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
PeoplePickerUtil.filter = filter;
|
|
60
|
+
/** Under their headings, each heading once, in the order the first of it comes. */
|
|
61
|
+
function sections(people) {
|
|
62
|
+
const sections = [];
|
|
63
|
+
for (const person of people) {
|
|
64
|
+
const section = sections.find(each => each.title === person.section);
|
|
65
|
+
if (section) {
|
|
66
|
+
section.people.push(person);
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
sections.push({ title: person.section, people: [person] });
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return sections;
|
|
73
|
+
}
|
|
74
|
+
PeoplePickerUtil.sections = sections;
|
|
75
|
+
/** What is picked once `key` is tapped: in or out of several, in place of the one before alone. */
|
|
76
|
+
function toggle(value, key, single) {
|
|
77
|
+
if (single) {
|
|
78
|
+
return [key];
|
|
79
|
+
}
|
|
80
|
+
return value.includes(key) ? value.filter(each => each !== key) : [...value, key];
|
|
81
|
+
}
|
|
82
|
+
PeoplePickerUtil.toggle = toggle;
|
|
83
|
+
/** Whether a tap does nothing on it: it is fixed, or there are as many as may be and it is not one of them. */
|
|
84
|
+
function locked(person, value, max) {
|
|
85
|
+
return !!person.disabled || (max !== undefined && value.length >= max && !value.includes(person.key));
|
|
86
|
+
}
|
|
87
|
+
PeoplePickerUtil.locked = locked;
|
|
88
|
+
})(PeoplePickerUtil || (exports.PeoplePickerUtil = PeoplePickerUtil = {}));
|
|
89
|
+
/** How large a face is in a row, and among those picked in the box. */
|
|
90
|
+
const FACE = 36;
|
|
91
|
+
const CHIP = 28;
|
|
92
|
+
/**
|
|
93
|
+
* Its face as the lists draw it: its own picture (drawn at 36 px, scaled into a chip), the faces of a group chat, else
|
|
94
|
+
* that of its seed; whether it is online only in its row.
|
|
95
|
+
*/
|
|
96
|
+
function PersonFace({ person, size = FACE }) {
|
|
97
|
+
var _a;
|
|
98
|
+
var _b;
|
|
99
|
+
if (person.avatar) {
|
|
100
|
+
return (React.createElement("span", { className: "ta-picker-face", style: { width: size, height: size }, "aria-hidden": "true" },
|
|
101
|
+
React.createElement("span", { style: size === FACE ? undefined : { transform: `scale(${size / FACE})` } }, person.avatar)));
|
|
102
|
+
}
|
|
103
|
+
if ((_a = person.members) === null || _a === void 0 ? void 0 : _a.length) {
|
|
104
|
+
return React.createElement(face_1.GroupFace, { members: person.members, size: size });
|
|
105
|
+
}
|
|
106
|
+
const online = size === FACE ? person.online : undefined;
|
|
107
|
+
return React.createElement(face_1.Face, { seed: (_b = person.seed) !== null && _b !== void 0 ? _b : person.key, face: person.face, look: person.look, double: person.double, online: online, size: size });
|
|
108
|
+
}
|
|
109
|
+
/** The one way to pick people of Ta (WebPeoplePickerProps; web extensions `ui.PeoplePicker`). */
|
|
110
|
+
function PeoplePicker({ people, value, onChange, single, max, disabled, placeholder, empty, emptyHint }) {
|
|
111
|
+
const t = (0, use_t_1.useT)();
|
|
112
|
+
const [query, setQuery] = React.useState('');
|
|
113
|
+
if (!people) {
|
|
114
|
+
return React.createElement(loading_1.Loading, { compact: true });
|
|
115
|
+
}
|
|
116
|
+
if (people.length === 0) {
|
|
117
|
+
return React.createElement(empty_state_1.EmptyState, { compact: true, title: empty !== null && empty !== void 0 ? empty : t('ta.people.none'), hint: emptyHint });
|
|
118
|
+
}
|
|
119
|
+
const shown = PeoplePickerUtil.filter(people, query);
|
|
120
|
+
const picked = single ? [] : value.map(key => people.find(person => person.key === key)).filter(person => !!person);
|
|
121
|
+
const tap = (person) => {
|
|
122
|
+
if (!disabled && !PeoplePickerUtil.locked(person, value, max)) {
|
|
123
|
+
onChange(PeoplePickerUtil.toggle(value, person.key, single));
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
const label = placeholder !== null && placeholder !== void 0 ? placeholder : t('ta.people.search');
|
|
127
|
+
return (React.createElement("div", { className: "ta-picker" },
|
|
128
|
+
React.createElement("label", { className: "ta-picker-search" },
|
|
129
|
+
picked.length === 0 && React.createElement(icon_1.Icon, { icon: lucide_react_1.Search, size: 14 }),
|
|
130
|
+
picked.map(person => (React.createElement("button", { key: person.key, type: "button", className: "ta-picker-chip", title: person.disabled ? person.name : t('ta.people.leaveOut', { name: person.name }), "aria-label": t('ta.people.leaveOut', { name: person.name }), disabled: disabled || person.disabled, onClick: event => {
|
|
131
|
+
event.preventDefault();
|
|
132
|
+
tap(person);
|
|
133
|
+
} },
|
|
134
|
+
React.createElement(PersonFace, { person: person, size: CHIP })))),
|
|
135
|
+
React.createElement("input", { value: query, placeholder: label, "aria-label": label, onChange: event => setQuery(event.target.value), onKeyDown: event => {
|
|
136
|
+
// The one found is taken by Enter, as a search of a messenger's picker.
|
|
137
|
+
if (event.key === 'Enter' && shown.length === 1) {
|
|
138
|
+
event.preventDefault();
|
|
139
|
+
tap(shown[0]);
|
|
140
|
+
setQuery('');
|
|
141
|
+
}
|
|
142
|
+
else if (event.key === 'Backspace' && !query && picked.length) {
|
|
143
|
+
const last = picked[picked.length - 1];
|
|
144
|
+
if (!last.disabled) {
|
|
145
|
+
tap(last);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
} })),
|
|
149
|
+
React.createElement("div", { className: "ta-picker-list" },
|
|
150
|
+
shown.length === 0 && React.createElement(empty_state_1.EmptyState, { compact: true, title: t('ta.people.noMatch') }),
|
|
151
|
+
PeoplePickerUtil.sections(shown).map(section => { var _a; return (React.createElement("div", { key: (_a = section.title) !== null && _a !== void 0 ? _a : '', className: "ta-picker-section" },
|
|
152
|
+
section.title && React.createElement("div", { className: "ta-picker-heading" }, section.title),
|
|
153
|
+
section.people.map(person => {
|
|
154
|
+
const on = value.includes(person.key);
|
|
155
|
+
return (React.createElement("button", { key: person.key, type: "button", "aria-pressed": on, className: "ta-picker-row", disabled: disabled || PeoplePickerUtil.locked(person, value, max), onClick: () => tap(person) },
|
|
156
|
+
!single && React.createElement(select_bar_1.SelectCheck, { checked: on, disabled: PeoplePickerUtil.locked(person, value, max) && !on }),
|
|
157
|
+
React.createElement(PersonFace, { person: person }),
|
|
158
|
+
React.createElement("span", { className: "ta-picker-text" },
|
|
159
|
+
React.createElement("span", { className: "ta-picker-line" },
|
|
160
|
+
React.createElement("span", { className: "ta-picker-name" }, person.name),
|
|
161
|
+
person.tag && React.createElement("span", { className: "ta-picker-tag" }, person.tag)),
|
|
162
|
+
person.detail && React.createElement("span", { className: "ta-picker-detail" }, person.detail)),
|
|
163
|
+
single && on && React.createElement(icon_1.Icon, { icon: lucide_react_1.Check, size: 16, className: "ta-picker-check" })));
|
|
164
|
+
}))); }))));
|
|
165
|
+
}
|
|
166
|
+
//# sourceMappingURL=people-picker.js.map
|
|
@@ -144,7 +144,7 @@ function RelayDialog({ onClose }) {
|
|
|
144
144
|
React.createElement(RelayPicture, null),
|
|
145
145
|
React.createElement("p", null, t('ta.relay.hint')),
|
|
146
146
|
React.createElement("div", { className: "ta-relay-form" },
|
|
147
|
-
React.createElement("label", { className: "ta-field
|
|
147
|
+
React.createElement("label", { className: "ta-field" },
|
|
148
148
|
React.createElement(lucide_react_1.Smartphone, { size: 15, strokeWidth: 1.75, "aria-hidden": "true" }),
|
|
149
149
|
React.createElement("input", { placeholder: t('ta.relay.phone'), value: name, onChange: event => setName(event.target.value) })),
|
|
150
150
|
React.createElement("button", { type: "button", className: busy ? 'ta-button ta-primary ta-busy' : 'ta-button ta-primary', "aria-busy": busy || undefined, disabled: !info, onClick: () => void pair() },
|
|
@@ -3,12 +3,13 @@ import { type LucideIcon } from 'lucide-react';
|
|
|
3
3
|
import type { WebSettingsGroup } from '../extension/web-extension-api';
|
|
4
4
|
import type { MessageId } from '../i18n/messages';
|
|
5
5
|
import type { useT } from '../i18n/use-t';
|
|
6
|
-
import { type DiagramStyle, type FontSize, type LanguageSetting, type ThemeSetting } from '../settings/settings-protocol';
|
|
6
|
+
import { type DiagramStyle, type FontSize, type LanguageSetting, type SkinGlass, type ThemeSetting } from '../settings/settings-protocol';
|
|
7
7
|
import type { Navigation } from './nav-places';
|
|
8
8
|
import { type Choice, type RowEntry } from './settings-controls';
|
|
9
9
|
export declare const THEMES: Choice<ThemeSetting>[];
|
|
10
10
|
export declare const FONT_SIZES: Choice<FontSize>[];
|
|
11
11
|
export declare const DIAGRAM_STYLE_CHOICES: Choice<DiagramStyle>[];
|
|
12
|
+
export declare const GLASS_CHOICES: Choice<SkinGlass>[];
|
|
12
13
|
export declare const LANGUAGES: Choice<LanguageSetting>[];
|
|
13
14
|
/** The model has the icon of the + menu's model (ModelPicker), the others their own. */
|
|
14
15
|
export declare const GROUP_ICONS: Record<string, LucideIcon>;
|
|
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.SHORTCUTS = exports.SETTINGS_GROUPS = exports.GROUP_ICONS = exports.LANGUAGES = exports.DIAGRAM_STYLE_CHOICES = exports.FONT_SIZES = exports.THEMES = void 0;
|
|
36
|
+
exports.SHORTCUTS = exports.SETTINGS_GROUPS = exports.GROUP_ICONS = exports.LANGUAGES = exports.GLASS_CHOICES = exports.DIAGRAM_STYLE_CHOICES = exports.FONT_SIZES = exports.THEMES = void 0;
|
|
37
37
|
exports.usePackages = usePackages;
|
|
38
38
|
exports.navigationRows = navigationRows;
|
|
39
39
|
exports.packageLabel = packageLabel;
|
|
@@ -57,6 +57,7 @@ exports.FONT_SIZES = [
|
|
|
57
57
|
{ value: 'xlarge', label: 'ta.settings.fontSize.xlarge' },
|
|
58
58
|
];
|
|
59
59
|
exports.DIAGRAM_STYLE_CHOICES = settings_protocol_1.DIAGRAM_STYLES.map(value => ({ value, label: `ta.settings.diagramStyle.${value}` }));
|
|
60
|
+
exports.GLASS_CHOICES = settings_protocol_1.SKIN_GLASSES.map(value => ({ value, label: `ta.settings.glass.${value}` }));
|
|
60
61
|
exports.LANGUAGES = [
|
|
61
62
|
{ value: 'system', icon: lucide_react_1.Globe, label: 'ta.settings.language.system' },
|
|
62
63
|
...ta_protocol_1.TaLanguageUtil.ALL.map(value => ({ value, label: ta_protocol_1.TaLanguageUtil.NAMES[value] })),
|
|
@@ -38,10 +38,12 @@ const ta_protocol_1 = require("@celljs/ta-protocol");
|
|
|
38
38
|
const lucide_react_1 = require("lucide-react");
|
|
39
39
|
const React = __importStar(require("react"));
|
|
40
40
|
const device_1 = require("../device/device");
|
|
41
|
+
const web_extension_protocol_1 = require("../extension/web-extension-protocol");
|
|
41
42
|
const hooks_1 = require("../hooks");
|
|
42
43
|
const use_t_1 = require("../i18n/use-t");
|
|
43
44
|
const agent_settings_1 = require("../settings/agent-settings");
|
|
44
45
|
const settings_protocol_1 = require("../settings/settings-protocol");
|
|
46
|
+
const skin_util_1 = require("../skin/skin-util");
|
|
45
47
|
const voice_1 = require("../util/voice");
|
|
46
48
|
const agent_settings_view_1 = require("./agent-settings-view");
|
|
47
49
|
const app_nav_1 = require("./app-nav");
|
|
@@ -56,11 +58,13 @@ const voice_services_1 = require("./voice-services");
|
|
|
56
58
|
/** The sections of the page and of ta, by part, with their rows. */
|
|
57
59
|
function useParts(scope, onScope, onDialog) {
|
|
58
60
|
var _a;
|
|
61
|
+
var _b;
|
|
59
62
|
const t = (0, use_t_1.useT)();
|
|
60
63
|
const [{ settings }, store] = (0, hooks_1.useSettings)();
|
|
61
64
|
const settingsServer = (0, hooks_1.useSettingsServer)();
|
|
62
65
|
const [workbench] = (0, hooks_1.useWorkbench)();
|
|
63
|
-
const [{ cwd, views }] = (0, hooks_1.useWebExtensions)();
|
|
66
|
+
const [{ cwd, views, skins }] = (0, hooks_1.useWebExtensions)();
|
|
67
|
+
const skin = skin_util_1.SkinUtil.pick(skins, settings.skin);
|
|
64
68
|
const navigation = (0, app_nav_1.useNavigation)(views);
|
|
65
69
|
const agent = (0, agent_settings_view_1.useAgentSettings)(cwd !== null && cwd !== void 0 ? cwd : (_a = workbench.server) === null || _a === void 0 ? void 0 : _a.cwd);
|
|
66
70
|
const more = (0, settings_more_1.useMoreSections)(onDialog);
|
|
@@ -73,6 +77,22 @@ function useParts(scope, onScope, onDialog) {
|
|
|
73
77
|
rows: [
|
|
74
78
|
(0, settings_controls_1.row)('theme', [t('ta.settings.theme'), 'theme'], React.createElement(settings_controls_1.Row, { label: t('ta.settings.theme'), stacked: true },
|
|
75
79
|
React.createElement(settings_controls_1.Segmented, { label: t('ta.settings.theme'), value: settings.theme, choices: settings_choices_1.THEMES, onChange: theme => store.update({ theme }) }))),
|
|
80
|
+
// The skins of the extensions installed, none without (docs/design/ta-skins.md); its glass while one shows.
|
|
81
|
+
...(skins.length
|
|
82
|
+
? [
|
|
83
|
+
(0, settings_controls_1.row)('skin', [t('ta.settings.skin'), t('ta.settings.skinHint'), 'skin', 'theme', ...skins.map(entry => web_extension_protocol_1.WebLabelUtil.text(entry.skin.title))], React.createElement(settings_controls_1.Row, { label: t('ta.settings.skin'), description: t('ta.settings.skinHint'), stacked: true },
|
|
84
|
+
React.createElement(settings_controls_1.Segmented, { label: t('ta.settings.skin'), value: (_b = skin === null || skin === void 0 ? void 0 : skin.id) !== null && _b !== void 0 ? _b : settings_protocol_1.NO_SKIN, choices: [
|
|
85
|
+
{ value: settings_protocol_1.NO_SKIN, label: 'ta.settings.skin.none' },
|
|
86
|
+
...skins.map(entry => ({ value: entry.id, label: web_extension_protocol_1.WebLabelUtil.text(entry.skin.title) })),
|
|
87
|
+
], onChange: chosen => store.update({ skin: chosen }) }))),
|
|
88
|
+
]
|
|
89
|
+
: []),
|
|
90
|
+
...(skin
|
|
91
|
+
? [
|
|
92
|
+
(0, settings_controls_1.row)('glass', [t('ta.settings.glass'), t('ta.settings.glassHint'), 'skin'], React.createElement(settings_controls_1.Row, { label: t('ta.settings.glass'), description: t('ta.settings.glassHint'), stacked: true },
|
|
93
|
+
React.createElement(settings_controls_1.Segmented, { label: t('ta.settings.glass'), value: settings.glass, choices: settings_choices_1.GLASS_CHOICES, onChange: glass => store.update({ glass }) }))),
|
|
94
|
+
]
|
|
95
|
+
: []),
|
|
76
96
|
(0, settings_controls_1.row)('font-size', [t('ta.settings.fontSize'), t('ta.settings.fontSizeHint'), 'font'], React.createElement(settings_controls_1.Row, { label: t('ta.settings.fontSize'), description: t('ta.settings.fontSizeHint'), stacked: true },
|
|
77
97
|
React.createElement(settings_controls_1.Segmented, { label: t('ta.settings.fontSize'), value: settings.fontSize, choices: settings_choices_1.FONT_SIZES, onChange: fontSize => store.update({ fontSize }) }))),
|
|
78
98
|
(0, settings_controls_1.row)('chat-font-size', [t('ta.settings.chatFontSize'), t('ta.settings.chatFontSizeHint'), 'font'], React.createElement(settings_controls_1.Row, { label: t('ta.settings.chatFontSize'), description: t('ta.settings.chatFontSizeHint'), stacked: true },
|
|
@@ -132,6 +152,8 @@ function useParts(scope, onScope, onDialog) {
|
|
|
132
152
|
// After the notices and who answers others, before what is kept.
|
|
133
153
|
order: 30,
|
|
134
154
|
rows: [
|
|
155
|
+
(0, settings_controls_1.row)('clipboard-links', [t('ta.settings.clipboardLinks'), t('ta.settings.clipboardLinksHint')], React.createElement(settings_controls_1.Row, { label: t('ta.settings.clipboardLinks'), description: t('ta.settings.clipboardLinksHint') },
|
|
156
|
+
React.createElement(settings_controls_1.Switch, { label: t('ta.settings.clipboardLinks'), checked: settings.clipboardLinks, onChange: clipboardLinks => store.update({ clipboardLinks }) }))),
|
|
135
157
|
(0, settings_controls_1.row)('trusted-domains', [t('ta.settings.trustedDomains'), t('ta.settings.trustedDomainsHint'), ...settings.trustedDomains], React.createElement(trusted_domains_1.TrustedDomains, null)),
|
|
136
158
|
],
|
|
137
159
|
},
|
|
@@ -8,6 +8,6 @@ export declare function ShareDialog({ target, onClose }: {
|
|
|
8
8
|
target: WebShareTarget;
|
|
9
9
|
onClose(): void;
|
|
10
10
|
}): React.JSX.Element;
|
|
11
|
-
/** The share asked for by a web extension, over the page. */
|
|
12
|
-
export declare function ShareHost(): React.JSX.Element
|
|
11
|
+
/** The share asked for by a web extension, over the page: an extension handed on, or the share sheet of something. */
|
|
12
|
+
export declare function ShareHost(): React.JSX.Element;
|
|
13
13
|
//# sourceMappingURL=share-dialog.d.ts.map
|