@celljs/ta-web 4.28.0 → 4.29.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/assistant/assistant-thread.js +15 -2
- package/esm/browser/assistant/call-scenes.d.ts +5 -4
- package/esm/browser/assistant/call-scenes.js +10 -7
- package/esm/browser/chat/chat-protocol.d.ts +2 -0
- package/esm/browser/chat/chat-shown.d.ts +3 -1
- package/esm/browser/chat/chat-shown.js +25 -3
- package/esm/browser/chat/chat.d.ts +5 -1
- package/esm/browser/chat/chat.js +32 -16
- package/esm/browser/components/account-menu.d.ts +6 -16
- package/esm/browser/components/account-menu.js +47 -101
- package/esm/browser/components/app-contexts.js +3 -2
- package/esm/browser/components/cloud-sign-in-view.d.ts +1 -1
- package/esm/browser/components/composer-box-protocol.d.ts +2 -0
- package/esm/browser/components/composer-box.js +20 -1
- package/esm/browser/components/composer-emoji.d.ts +22 -0
- package/esm/browser/components/composer-emoji.js +50 -0
- package/esm/browser/components/discover-view.d.ts +4 -3
- package/esm/browser/components/discover-view.js +5 -4
- package/esm/browser/components/emoji-panel.d.ts +22 -0
- package/esm/browser/components/emoji-panel.js +54 -0
- package/esm/browser/components/host-view.d.ts +1 -1
- package/esm/browser/components/markdown.d.ts +6 -1
- package/esm/browser/components/markdown.js +6 -2
- package/esm/browser/components/me-rows.d.ts +24 -0
- package/esm/browser/components/me-rows.js +19 -0
- package/esm/browser/components/me-view.d.ts +2 -1
- package/esm/browser/components/me-view.js +3 -2
- package/esm/browser/components/message-list.js +47 -7
- package/esm/browser/components/message-steps.js +13 -0
- package/esm/browser/components/nav-places.js +1 -1
- package/esm/browser/components/settings-choices.js +3 -0
- package/esm/browser/components/settings-controls.d.ts +13 -0
- package/esm/browser/components/settings-controls.js +19 -0
- package/esm/browser/components/settings-more.d.ts +1 -1
- package/esm/browser/components/settings-more.js +28 -39
- package/esm/browser/components/settings-parts.d.ts +4 -2
- package/esm/browser/components/settings-parts.js +14 -9
- package/esm/browser/components/settings-view.js +2 -6
- package/esm/browser/components/web-composer.d.ts +1 -1
- package/esm/browser/components/web-composer.js +2 -2
- package/esm/browser/device/file-save.d.ts +31 -0
- package/esm/browser/device/file-save.js +80 -0
- package/esm/browser/extension/extension-view.d.ts +2 -0
- package/esm/browser/extension/extension-view.js +2 -0
- package/esm/browser/extension/web-api-call.d.ts +45 -0
- package/esm/browser/extension/web-api-components.d.ts +4 -0
- package/esm/browser/extension/web-api-contributions.d.ts +13 -14
- package/esm/browser/extension/web-api-desktop.d.ts +16 -1
- package/esm/browser/extension/web-api-desktop.js +1 -0
- package/esm/browser/extension/web-extension-api.d.ts +7 -9
- package/esm/browser/extension/web-extension-code.d.ts +15 -8
- package/esm/browser/extension/web-extension-code.js +25 -27
- package/esm/browser/extension/web-extension-context.js +3 -0
- package/esm/browser/extension/web-extension-protocol.d.ts +8 -1
- package/esm/browser/extension/web-extension-protocol.js +1 -0
- package/esm/browser/extension/web-extension-run.d.ts +3 -2
- package/esm/browser/extension/web-extension-run.js +8 -4
- package/esm/browser/extension/web-extensions-running.js +7 -6
- package/esm/browser/extension/web-pages.d.ts +2 -0
- package/esm/browser/extension/web-pages.js +2 -0
- package/esm/browser/i18n/en/account.d.ts +202 -0
- package/esm/browser/i18n/en/account.js +205 -0
- package/esm/browser/i18n/en/assistant.d.ts +129 -0
- package/esm/browser/i18n/en/assistant.js +130 -0
- package/esm/browser/i18n/en/call.d.ts +86 -0
- package/esm/browser/i18n/en/call.js +87 -0
- package/esm/browser/i18n/en/chat.d.ts +213 -0
- package/esm/browser/i18n/en/chat.js +214 -0
- package/esm/browser/i18n/en/common.d.ts +99 -0
- package/esm/browser/i18n/en/common.js +101 -0
- package/esm/browser/i18n/en/console.d.ts +230 -0
- package/esm/browser/i18n/en/console.js +232 -0
- package/esm/browser/i18n/en/discover.d.ts +117 -0
- package/esm/browser/i18n/en/discover.js +119 -0
- package/esm/browser/i18n/en/service.d.ts +242 -0
- package/esm/browser/i18n/en/service.js +245 -0
- package/esm/browser/i18n/en/settings.d.ts +213 -0
- package/esm/browser/i18n/en/settings.js +214 -0
- package/esm/browser/i18n/en/tools.d.ts +85 -0
- package/esm/browser/i18n/en/tools.js +87 -0
- package/esm/browser/i18n/ja/account.d.ts +2 -0
- package/esm/browser/i18n/ja/account.js +202 -0
- package/esm/browser/i18n/ja/assistant.d.ts +2 -0
- package/esm/browser/i18n/ja/assistant.js +129 -0
- package/esm/browser/i18n/ja/call.d.ts +2 -0
- package/esm/browser/i18n/ja/call.js +86 -0
- package/esm/browser/i18n/ja/chat.d.ts +2 -0
- package/esm/browser/i18n/ja/chat.js +213 -0
- package/esm/browser/i18n/ja/common.d.ts +2 -0
- package/esm/browser/i18n/ja/common.js +99 -0
- package/esm/browser/i18n/ja/console.d.ts +2 -0
- package/esm/browser/i18n/ja/console.js +230 -0
- package/esm/browser/i18n/ja/discover.d.ts +2 -0
- package/esm/browser/i18n/ja/discover.js +117 -0
- package/esm/browser/i18n/ja/service.d.ts +2 -0
- package/esm/browser/i18n/ja/service.js +242 -0
- package/esm/browser/i18n/ja/settings.d.ts +2 -0
- package/esm/browser/i18n/ja/settings.js +213 -0
- package/esm/browser/i18n/ja/tools.d.ts +2 -0
- package/esm/browser/i18n/ja/tools.js +85 -0
- package/esm/browser/i18n/locales.d.ts +1136 -1136
- package/esm/browser/i18n/messages-ja.js +20 -1586
- package/esm/browser/i18n/messages-zh-tw.d.ts +0 -1
- package/esm/browser/i18n/messages-zh-tw.js +20 -1587
- package/esm/browser/i18n/messages.d.ts +1139 -1136
- package/esm/browser/i18n/messages.js +44 -3183
- package/esm/browser/i18n/zh/account.d.ts +2 -0
- package/esm/browser/i18n/zh/account.js +203 -0
- package/esm/browser/i18n/zh/assistant.d.ts +2 -0
- package/esm/browser/i18n/zh/assistant.js +129 -0
- package/esm/browser/i18n/zh/call.d.ts +2 -0
- package/esm/browser/i18n/zh/call.js +86 -0
- package/esm/browser/i18n/zh/chat.d.ts +2 -0
- package/esm/browser/i18n/zh/chat.js +213 -0
- package/esm/browser/i18n/zh/common.d.ts +2 -0
- package/esm/browser/i18n/zh/common.js +99 -0
- package/esm/browser/i18n/zh/console.d.ts +2 -0
- package/esm/browser/i18n/zh/console.js +230 -0
- package/esm/browser/i18n/zh/discover.d.ts +2 -0
- package/esm/browser/i18n/zh/discover.js +117 -0
- package/esm/browser/i18n/zh/service.d.ts +2 -0
- package/esm/browser/i18n/zh/service.js +242 -0
- package/esm/browser/i18n/zh/settings.d.ts +2 -0
- package/esm/browser/i18n/zh/settings.js +213 -0
- package/esm/browser/i18n/zh/tools.d.ts +2 -0
- package/esm/browser/i18n/zh/tools.js +86 -0
- package/esm/browser/i18n/zh-tw/account.d.ts +2 -0
- package/esm/browser/i18n/zh-tw/account.js +202 -0
- package/esm/browser/i18n/zh-tw/assistant.d.ts +2 -0
- package/esm/browser/i18n/zh-tw/assistant.js +129 -0
- package/esm/browser/i18n/zh-tw/call.d.ts +2 -0
- package/esm/browser/i18n/zh-tw/call.js +86 -0
- package/esm/browser/i18n/zh-tw/chat.d.ts +2 -0
- package/esm/browser/i18n/zh-tw/chat.js +213 -0
- package/esm/browser/i18n/zh-tw/common.d.ts +2 -0
- package/esm/browser/i18n/zh-tw/common.js +99 -0
- package/esm/browser/i18n/zh-tw/console.d.ts +2 -0
- package/esm/browser/i18n/zh-tw/console.js +230 -0
- package/esm/browser/i18n/zh-tw/discover.d.ts +2 -0
- package/esm/browser/i18n/zh-tw/discover.js +117 -0
- package/esm/browser/i18n/zh-tw/service.d.ts +2 -0
- package/esm/browser/i18n/zh-tw/service.js +242 -0
- package/esm/browser/i18n/zh-tw/settings.d.ts +2 -0
- package/esm/browser/i18n/zh-tw/settings.js +213 -0
- package/esm/browser/i18n/zh-tw/tools.d.ts +2 -0
- package/esm/browser/i18n/zh-tw/tools.js +85 -0
- package/esm/browser/offline/device-values.d.ts +4 -0
- package/esm/browser/offline/device-values.js +10 -0
- package/esm/browser/pwa/page-build.d.ts +15 -0
- package/esm/browser/pwa/page-build.js +45 -0
- package/esm/browser/settings/settings-protocol.d.ts +2 -0
- package/esm/browser/settings/settings-protocol.js +2 -0
- package/esm/browser/style/base.d.ts +1 -1
- package/esm/browser/style/base.js +3 -0
- package/esm/browser/style/conversation-column.d.ts +1 -1
- package/esm/browser/style/conversation-column.js +17 -0
- package/esm/browser/style/conversation.d.ts +1 -1
- package/esm/browser/style/conversation.js +5 -0
- package/esm/browser/style/pages.d.ts +1 -1
- package/esm/browser/style/pages.js +0 -7
- package/esm/browser/style/video-call.d.ts +1 -1
- package/esm/browser/style/video-call.js +15 -4
- package/esm/browser/util/call-transcript.d.ts +16 -0
- package/esm/browser/util/call-transcript.js +110 -0
- package/esm/browser/util/process.d.ts +6 -0
- package/esm/browser/util/process.js +18 -5
- package/esm/browser/video-call/call-people.d.ts +21 -0
- package/esm/browser/video-call/call-people.js +29 -0
- package/esm/browser/video-call/clip-plan.d.ts +11 -2
- package/esm/browser/video-call/clip-plan.js +19 -3
- package/esm/browser/video-call/face-camera.d.ts +93 -0
- package/esm/browser/video-call/face-camera.js +192 -0
- package/esm/browser/video-call/face-files.d.ts +43 -5
- package/esm/browser/video-call/face-files.js +73 -18
- package/esm/browser/video-call/face-moves.d.ts +68 -0
- package/esm/browser/video-call/face-moves.js +180 -0
- package/esm/browser/video-call/face-stage.d.ts +139 -0
- package/esm/browser/video-call/face-stage.js +219 -0
- package/esm/browser/video-call/mouth-layer.d.ts +81 -0
- package/esm/browser/video-call/mouth-layer.js +241 -0
- package/esm/browser/video-call/video-call-view.js +44 -4
- package/esm/browser/video-call/video-face.d.ts +11 -5
- package/esm/browser/video-call/video-face.js +302 -328
- package/esm/browser/workbench.d.ts +8 -0
- package/esm/browser/workbench.js +37 -1
- package/lib/browser/assistant/assistant-thread.js +15 -2
- package/lib/browser/assistant/call-scenes.d.ts +5 -4
- package/lib/browser/assistant/call-scenes.js +10 -7
- package/lib/browser/chat/chat-protocol.d.ts +2 -0
- package/lib/browser/chat/chat-shown.d.ts +3 -1
- package/lib/browser/chat/chat-shown.js +25 -3
- package/lib/browser/chat/chat.d.ts +5 -1
- package/lib/browser/chat/chat.js +32 -16
- package/lib/browser/components/account-menu.d.ts +6 -16
- package/lib/browser/components/account-menu.js +45 -99
- package/lib/browser/components/app-contexts.js +2 -1
- package/lib/browser/components/cloud-sign-in-view.d.ts +1 -1
- package/lib/browser/components/composer-box-protocol.d.ts +2 -0
- package/lib/browser/components/composer-box.js +20 -1
- package/lib/browser/components/composer-emoji.d.ts +23 -0
- package/lib/browser/components/composer-emoji.js +87 -0
- package/lib/browser/components/discover-view.d.ts +4 -3
- package/lib/browser/components/discover-view.js +5 -4
- package/lib/browser/components/emoji-panel.d.ts +23 -0
- package/lib/browser/components/emoji-panel.js +90 -0
- package/lib/browser/components/host-view.d.ts +1 -1
- package/lib/browser/components/markdown.d.ts +6 -1
- package/lib/browser/components/markdown.js +6 -2
- package/lib/browser/components/me-rows.d.ts +25 -0
- package/lib/browser/components/me-rows.js +22 -0
- package/lib/browser/components/me-view.d.ts +2 -1
- package/lib/browser/components/me-view.js +3 -2
- package/lib/browser/components/message-list.js +46 -6
- package/lib/browser/components/message-steps.js +13 -0
- package/lib/browser/components/nav-places.js +1 -1
- package/lib/browser/components/settings-choices.js +3 -0
- package/lib/browser/components/settings-controls.d.ts +13 -0
- package/lib/browser/components/settings-controls.js +19 -0
- package/lib/browser/components/settings-more.d.ts +1 -1
- package/lib/browser/components/settings-more.js +27 -38
- package/lib/browser/components/settings-parts.d.ts +4 -2
- package/lib/browser/components/settings-parts.js +13 -8
- package/lib/browser/components/settings-view.js +2 -6
- package/lib/browser/components/web-composer.d.ts +1 -1
- package/lib/browser/components/web-composer.js +2 -2
- package/lib/browser/device/file-save.d.ts +32 -0
- package/lib/browser/device/file-save.js +83 -0
- package/lib/browser/extension/extension-view.d.ts +2 -0
- package/lib/browser/extension/extension-view.js +3 -1
- package/lib/browser/extension/web-api-call.d.ts +45 -0
- package/lib/browser/extension/web-api-components.d.ts +4 -0
- package/lib/browser/extension/web-api-contributions.d.ts +13 -14
- package/lib/browser/extension/web-api-desktop.d.ts +16 -1
- package/lib/browser/extension/web-api-desktop.js +1 -0
- package/lib/browser/extension/web-extension-api.d.ts +7 -9
- package/lib/browser/extension/web-extension-code.d.ts +15 -8
- package/lib/browser/extension/web-extension-code.js +25 -27
- package/lib/browser/extension/web-extension-context.js +3 -0
- package/lib/browser/extension/web-extension-protocol.d.ts +8 -1
- package/lib/browser/extension/web-extension-protocol.js +1 -0
- package/lib/browser/extension/web-extension-run.d.ts +3 -2
- package/lib/browser/extension/web-extension-run.js +8 -4
- package/lib/browser/extension/web-extensions-running.js +7 -6
- package/lib/browser/extension/web-pages.d.ts +2 -0
- package/lib/browser/extension/web-pages.js +2 -0
- package/lib/browser/i18n/en/account.d.ts +203 -0
- package/lib/browser/i18n/en/account.js +208 -0
- package/lib/browser/i18n/en/assistant.d.ts +130 -0
- package/lib/browser/i18n/en/assistant.js +133 -0
- package/lib/browser/i18n/en/call.d.ts +87 -0
- package/lib/browser/i18n/en/call.js +90 -0
- package/lib/browser/i18n/en/chat.d.ts +214 -0
- package/lib/browser/i18n/en/chat.js +217 -0
- package/lib/browser/i18n/en/common.d.ts +100 -0
- package/lib/browser/i18n/en/common.js +104 -0
- package/lib/browser/i18n/en/console.d.ts +231 -0
- package/lib/browser/i18n/en/console.js +235 -0
- package/lib/browser/i18n/en/discover.d.ts +118 -0
- package/lib/browser/i18n/en/discover.js +122 -0
- package/lib/browser/i18n/en/service.d.ts +243 -0
- package/lib/browser/i18n/en/service.js +248 -0
- package/lib/browser/i18n/en/settings.d.ts +214 -0
- package/lib/browser/i18n/en/settings.js +217 -0
- package/lib/browser/i18n/en/tools.d.ts +86 -0
- package/lib/browser/i18n/en/tools.js +90 -0
- package/lib/browser/i18n/ja/account.d.ts +3 -0
- package/lib/browser/i18n/ja/account.js +205 -0
- package/lib/browser/i18n/ja/assistant.d.ts +3 -0
- package/lib/browser/i18n/ja/assistant.js +132 -0
- package/lib/browser/i18n/ja/call.d.ts +3 -0
- package/lib/browser/i18n/ja/call.js +89 -0
- package/lib/browser/i18n/ja/chat.d.ts +3 -0
- package/lib/browser/i18n/ja/chat.js +216 -0
- package/lib/browser/i18n/ja/common.d.ts +3 -0
- package/lib/browser/i18n/ja/common.js +102 -0
- package/lib/browser/i18n/ja/console.d.ts +3 -0
- package/lib/browser/i18n/ja/console.js +233 -0
- package/lib/browser/i18n/ja/discover.d.ts +3 -0
- package/lib/browser/i18n/ja/discover.js +120 -0
- package/lib/browser/i18n/ja/service.d.ts +3 -0
- package/lib/browser/i18n/ja/service.js +245 -0
- package/lib/browser/i18n/ja/settings.d.ts +3 -0
- package/lib/browser/i18n/ja/settings.js +216 -0
- package/lib/browser/i18n/ja/tools.d.ts +3 -0
- package/lib/browser/i18n/ja/tools.js +88 -0
- package/lib/browser/i18n/locales.d.ts +1136 -1136
- package/lib/browser/i18n/messages-ja.js +20 -1586
- package/lib/browser/i18n/messages-zh-tw.d.ts +0 -1
- package/lib/browser/i18n/messages-zh-tw.js +20 -1587
- package/lib/browser/i18n/messages.d.ts +1139 -1136
- package/lib/browser/i18n/messages.js +44 -3183
- package/lib/browser/i18n/zh/account.d.ts +3 -0
- package/lib/browser/i18n/zh/account.js +206 -0
- package/lib/browser/i18n/zh/assistant.d.ts +3 -0
- package/lib/browser/i18n/zh/assistant.js +132 -0
- package/lib/browser/i18n/zh/call.d.ts +3 -0
- package/lib/browser/i18n/zh/call.js +89 -0
- package/lib/browser/i18n/zh/chat.d.ts +3 -0
- package/lib/browser/i18n/zh/chat.js +216 -0
- package/lib/browser/i18n/zh/common.d.ts +3 -0
- package/lib/browser/i18n/zh/common.js +102 -0
- package/lib/browser/i18n/zh/console.d.ts +3 -0
- package/lib/browser/i18n/zh/console.js +233 -0
- package/lib/browser/i18n/zh/discover.d.ts +3 -0
- package/lib/browser/i18n/zh/discover.js +120 -0
- package/lib/browser/i18n/zh/service.d.ts +3 -0
- package/lib/browser/i18n/zh/service.js +245 -0
- package/lib/browser/i18n/zh/settings.d.ts +3 -0
- package/lib/browser/i18n/zh/settings.js +216 -0
- package/lib/browser/i18n/zh/tools.d.ts +3 -0
- package/lib/browser/i18n/zh/tools.js +89 -0
- package/lib/browser/i18n/zh-tw/account.d.ts +3 -0
- package/lib/browser/i18n/zh-tw/account.js +205 -0
- package/lib/browser/i18n/zh-tw/assistant.d.ts +3 -0
- package/lib/browser/i18n/zh-tw/assistant.js +132 -0
- package/lib/browser/i18n/zh-tw/call.d.ts +3 -0
- package/lib/browser/i18n/zh-tw/call.js +89 -0
- package/lib/browser/i18n/zh-tw/chat.d.ts +3 -0
- package/lib/browser/i18n/zh-tw/chat.js +216 -0
- package/lib/browser/i18n/zh-tw/common.d.ts +3 -0
- package/lib/browser/i18n/zh-tw/common.js +102 -0
- package/lib/browser/i18n/zh-tw/console.d.ts +3 -0
- package/lib/browser/i18n/zh-tw/console.js +233 -0
- package/lib/browser/i18n/zh-tw/discover.d.ts +3 -0
- package/lib/browser/i18n/zh-tw/discover.js +120 -0
- package/lib/browser/i18n/zh-tw/service.d.ts +3 -0
- package/lib/browser/i18n/zh-tw/service.js +245 -0
- package/lib/browser/i18n/zh-tw/settings.d.ts +3 -0
- package/lib/browser/i18n/zh-tw/settings.js +216 -0
- package/lib/browser/i18n/zh-tw/tools.d.ts +3 -0
- package/lib/browser/i18n/zh-tw/tools.js +88 -0
- package/lib/browser/offline/device-values.d.ts +4 -0
- package/lib/browser/offline/device-values.js +10 -0
- package/lib/browser/pwa/page-build.d.ts +16 -0
- package/lib/browser/pwa/page-build.js +48 -0
- package/lib/browser/settings/settings-protocol.d.ts +2 -0
- package/lib/browser/settings/settings-protocol.js +2 -0
- package/lib/browser/style/base.d.ts +1 -1
- package/lib/browser/style/base.js +3 -0
- package/lib/browser/style/conversation-column.d.ts +1 -1
- package/lib/browser/style/conversation-column.js +17 -0
- package/lib/browser/style/conversation.d.ts +1 -1
- package/lib/browser/style/conversation.js +5 -0
- package/lib/browser/style/pages.d.ts +1 -1
- package/lib/browser/style/pages.js +0 -7
- package/lib/browser/style/video-call.d.ts +1 -1
- package/lib/browser/style/video-call.js +15 -4
- package/lib/browser/util/call-transcript.d.ts +17 -0
- package/lib/browser/util/call-transcript.js +113 -0
- package/lib/browser/util/process.d.ts +6 -0
- package/lib/browser/util/process.js +17 -4
- package/lib/browser/video-call/call-people.d.ts +22 -0
- package/lib/browser/video-call/call-people.js +32 -0
- package/lib/browser/video-call/clip-plan.d.ts +11 -2
- package/lib/browser/video-call/clip-plan.js +19 -3
- package/lib/browser/video-call/face-camera.d.ts +94 -0
- package/lib/browser/video-call/face-camera.js +197 -0
- package/lib/browser/video-call/face-files.d.ts +43 -5
- package/lib/browser/video-call/face-files.js +73 -18
- package/lib/browser/video-call/face-moves.d.ts +69 -0
- package/lib/browser/video-call/face-moves.js +184 -0
- package/lib/browser/video-call/face-stage.d.ts +140 -0
- package/lib/browser/video-call/face-stage.js +223 -0
- package/lib/browser/video-call/mouth-layer.d.ts +82 -0
- package/lib/browser/video-call/mouth-layer.js +245 -0
- package/lib/browser/video-call/video-call-view.js +44 -4
- package/lib/browser/video-call/video-face.d.ts +11 -5
- package/lib/browser/video-call/video-face.js +302 -328
- package/lib/browser/workbench.d.ts +8 -0
- package/lib/browser/workbench.js +36 -0
- package/package.json +7 -7
- package/public/faces/README.md +17 -4
- package/public/faces/blonde/clap.mp4 +0 -0
- package/public/faces/blonde/dance.mp4 +0 -0
- package/public/faces/blonde/face.jpg +0 -0
- package/public/faces/blonde/happy.mp4 +0 -0
- package/public/faces/blonde/heart.mp4 +0 -0
- package/public/faces/blonde/idle-1.mp4 +0 -0
- package/public/faces/blonde/idle-2.mp4 +0 -0
- package/public/faces/blonde/idle-3.mp4 +0 -0
- package/public/faces/blonde/laugh.mp4 +0 -0
- package/public/faces/blonde/listening.mp4 +0 -0
- package/public/faces/blonde/poster.jpg +0 -0
- package/public/faces/blonde/shy.mp4 +0 -0
- package/public/faces/blonde/sorry.mp4 +0 -0
- package/public/faces/blonde/stretch.mp4 +0 -0
- package/public/faces/blonde/surprised.mp4 +0 -0
- package/public/faces/blonde/talk-1.mp4 +0 -0
- package/public/faces/blonde/talk-2.mp4 +0 -0
- package/public/faces/blonde/think-2.mp4 +0 -0
- package/public/faces/blonde/thinking.mp4 +0 -0
- package/public/faces/blonde/wave.mp4 +0 -0
- package/public/faces/dance.mp4 +0 -0
- package/public/faces/face.jpg +0 -0
- package/public/faces/framing.json +1 -0
- package/public/faces/lips.json +1 -1
- package/public/faces/stretch.mp4 +0 -0
- package/esm/browser/video-call/face-clips.d.ts +0 -33
- package/esm/browser/video-call/face-clips.js +0 -93
- package/lib/browser/video-call/face-clips.d.ts +0 -34
- package/lib/browser/video-call/face-clips.js +0 -96
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { Blocks, Cloud, FolderOpen, Info, Keyboard,
|
|
1
|
+
import { Blocks, Cloud, FolderOpen, Info, Keyboard, Puzzle, RefreshCw, RotateCw, Server, ShieldCheck, Trash2, Waypoints } from 'lucide-react';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { useDevice } from '../device/device.js';
|
|
4
4
|
import { ExtensionBoundary } from '../extension/extension-view.js';
|
|
5
5
|
import { WebLabelUtil } from '../extension/web-extension-protocol.js';
|
|
6
6
|
import { useNotices, useSettings, useWebExtensions, useWorkbench } from '../hooks.js';
|
|
7
7
|
import { useLanguage, useT } from '../i18n/use-t.js';
|
|
8
|
-
import { WorkbenchUtil } from '../workbench-util.js';
|
|
9
8
|
import { AccessSettings, useAccess } from './access-view.js';
|
|
10
9
|
import { BusyMark } from './busy.js';
|
|
11
10
|
import { EnvironmentSettings, useGateway } from './environment-view.js';
|
|
@@ -23,12 +22,12 @@ import { SignInSetupSettings, useSignInConfig } from './sign-in-setup.js';
|
|
|
23
22
|
* those built in, those of extensions where they ask, the computers and services Ta reaches, who may come in, the
|
|
24
23
|
* keys, and what is about Ta and this computer.
|
|
25
24
|
*/
|
|
26
|
-
export function useMoreSections(
|
|
25
|
+
export function useMoreSections(onDialog) {
|
|
27
26
|
var _a, _b;
|
|
28
27
|
const t = useT();
|
|
29
28
|
const language = useLanguage();
|
|
30
29
|
const [{ settings }, store] = useSettings();
|
|
31
|
-
const [workbench
|
|
30
|
+
const [workbench] = useWorkbench();
|
|
32
31
|
const [{ extensions, settingsSections }, host] = useWebExtensions();
|
|
33
32
|
const packageList = usePackages();
|
|
34
33
|
const builtinPackages = packageList.packages.filter(pkg => pkg.origin === 'builtin');
|
|
@@ -37,10 +36,8 @@ export function useMoreSections(onClose, onDialog) {
|
|
|
37
36
|
const signInConfig = useSignInConfig();
|
|
38
37
|
const gateway = useGateway();
|
|
39
38
|
const restartTa = useRestartTa();
|
|
40
|
-
//
|
|
41
|
-
// that pairs phones, and signs out at the foot of Me.
|
|
39
|
+
// A finger has no keys to learn.
|
|
42
40
|
const touch = useDevice(device => device.touch);
|
|
43
|
-
const handheld = useDevice(device => device.handheld);
|
|
44
41
|
// What runs, one thing at a time: its control turns (Switch, IconButton busy), the others wait.
|
|
45
42
|
const [busy, setBusy] = React.useState();
|
|
46
43
|
const run = (key, action, done) => {
|
|
@@ -185,14 +182,36 @@ export function useMoreSections(onClose, onDialog) {
|
|
|
185
182
|
id: 'shortcuts',
|
|
186
183
|
title: t('ta.settings.shortcuts'),
|
|
187
184
|
icon: Keyboard,
|
|
185
|
+
// Last of General, with About, after those of extensions there.
|
|
186
|
+
order: 900,
|
|
188
187
|
rows: SHORTCUTS.map(shortcut => row(`key:${shortcut.keys}`, [t(shortcut.label), shortcut.keys, t('ta.settings.shortcuts')], React.createElement(Row, { label: t(shortcut.label) },
|
|
189
188
|
React.createElement(Keys, { keys: shortcut.keys })))),
|
|
190
189
|
},
|
|
191
190
|
]),
|
|
191
|
+
// Where new chats open: how Ta works, beside its model and tools.
|
|
192
|
+
...(workbench.server
|
|
193
|
+
? [
|
|
194
|
+
{
|
|
195
|
+
id: 'directory',
|
|
196
|
+
title: t('ta.settings.cwd'),
|
|
197
|
+
icon: FolderOpen,
|
|
198
|
+
group: 'ta',
|
|
199
|
+
order: 50,
|
|
200
|
+
rows: [
|
|
201
|
+
row('cwd', [t('ta.settings.cwd'), workbench.server.cwd], React.createElement(Row, { label: t('ta.settings.cwd'), description: t('ta.settings.cwdDescription', { path: workbench.server.cwd }) },
|
|
202
|
+
React.createElement("button", { type: "button", className: "ta-button", onClick: () => onDialog('directory') },
|
|
203
|
+
React.createElement(Icon, { icon: FolderOpen, size: 15 }),
|
|
204
|
+
" ",
|
|
205
|
+
t('ta.settings.cwdChange')))),
|
|
206
|
+
],
|
|
207
|
+
},
|
|
208
|
+
]
|
|
209
|
+
: []),
|
|
192
210
|
{
|
|
193
211
|
id: 'about',
|
|
194
212
|
title: t('ta.settings.about'),
|
|
195
213
|
icon: Info,
|
|
214
|
+
order: 1000,
|
|
196
215
|
rows: workbench.server
|
|
197
216
|
? [
|
|
198
217
|
row('version', [t('ta.settings.version'), 'version'], React.createElement(Row, { label: t('ta.settings.version'), description: restartTa.update
|
|
@@ -209,37 +228,6 @@ export function useMoreSections(onClose, onDialog) {
|
|
|
209
228
|
]
|
|
210
229
|
: []),
|
|
211
230
|
row('settings-files', [t('ta.settings.files'), 'settings.json', 'models.json', 'JSON'], React.createElement(SettingsFilesRow, null)),
|
|
212
|
-
row('cwd', [t('ta.settings.cwd'), workbench.server.cwd], React.createElement(Row, { label: t('ta.settings.cwd'), description: t('ta.settings.cwdDescription', { path: workbench.server.cwd }) },
|
|
213
|
-
React.createElement("button", { type: "button", className: "ta-button", onClick: () => onDialog('directory') },
|
|
214
|
-
React.createElement(Icon, { icon: FolderOpen, size: 15 }),
|
|
215
|
-
" ",
|
|
216
|
-
t('ta.settings.cwdChange')))),
|
|
217
|
-
row('accounts', [t('ta.settings.accounts'), t('ta.settings.accountsDescription')], React.createElement(Row, { label: t('ta.settings.accounts'), description: t('ta.settings.accountsDescription') },
|
|
218
|
-
React.createElement("button", { type: "button", className: "ta-button", onClick: () => onDialog('accounts') },
|
|
219
|
-
React.createElement(Icon, { icon: KeyRound, size: 15 }),
|
|
220
|
-
" ",
|
|
221
|
-
t('ta.settings.manageAccounts')))),
|
|
222
|
-
...(WorkbenchUtil.isApp() || handheld
|
|
223
|
-
? []
|
|
224
|
-
: [
|
|
225
|
-
row('relay', [t('ta.settings.relay'), t('ta.settings.relayDescription')], React.createElement(Row, { label: t('ta.settings.relay'), description: t('ta.settings.relayDescription') },
|
|
226
|
-
React.createElement("button", { type: "button", className: "ta-button", onClick: () => onDialog('relay') },
|
|
227
|
-
React.createElement(Icon, { icon: Smartphone, size: 15 }),
|
|
228
|
-
" ",
|
|
229
|
-
t('ta.settings.manageAccounts')))),
|
|
230
|
-
]),
|
|
231
|
-
...(handheld
|
|
232
|
-
? []
|
|
233
|
-
: [
|
|
234
|
-
row('signOut', [t('ta.settings.signOut')], React.createElement(Row, { label: t('ta.settings.signOut') },
|
|
235
|
-
React.createElement("button", { type: "button", className: "ta-button ta-danger", onClick: () => {
|
|
236
|
-
onClose();
|
|
237
|
-
bench.signOut();
|
|
238
|
-
} },
|
|
239
|
-
React.createElement(Icon, { icon: LogOut, size: 15 }),
|
|
240
|
-
" ",
|
|
241
|
-
t('ta.settings.signOut')))),
|
|
242
|
-
]),
|
|
243
231
|
]
|
|
244
232
|
: [],
|
|
245
233
|
},
|
|
@@ -248,13 +236,14 @@ export function useMoreSections(onClose, onDialog) {
|
|
|
248
236
|
}
|
|
249
237
|
/** A section an extension added (WebExtensionAPI.registerSettings): its rows as Ta's, each control in a boundary of its own. */
|
|
250
238
|
function extensionSection({ id, section }) {
|
|
251
|
-
var _a;
|
|
239
|
+
var _a, _b;
|
|
252
240
|
const title = WebLabelUtil.text(section.title);
|
|
253
241
|
return {
|
|
254
242
|
id: `extension-${id.replace(/[^\w-]+/g, '-')}`,
|
|
255
243
|
title,
|
|
256
244
|
icon: (_a = section.icon) !== null && _a !== void 0 ? _a : Puzzle,
|
|
257
245
|
group: section.group && SETTINGS_GROUPS.some(group => group.id === section.group) ? section.group : 'extensions',
|
|
246
|
+
order: (_b = section.order) !== null && _b !== void 0 ? _b : 100,
|
|
258
247
|
rows: section.rows.map(item => {
|
|
259
248
|
const label = WebLabelUtil.text(item.label);
|
|
260
249
|
const description = item.description === undefined ? undefined : WebLabelUtil.text(item.description);
|
|
@@ -10,6 +10,8 @@ export interface SectionEntry {
|
|
|
10
10
|
rows: RowEntry[];
|
|
11
11
|
/** The part it is in; default `general`. */
|
|
12
12
|
group?: WebSettingsGroup;
|
|
13
|
+
/** Smaller first in its part, in the order given for the same; default 0, an extension's 100 (WebSettingsSection.order). */
|
|
14
|
+
order?: number;
|
|
13
15
|
/** A setting of pi's files, of the user or of the project: under the scope of its part (Part.lead). */
|
|
14
16
|
scoped?: boolean;
|
|
15
17
|
}
|
|
@@ -21,6 +23,6 @@ export interface Part {
|
|
|
21
23
|
lead?: React.ReactNode;
|
|
22
24
|
}
|
|
23
25
|
/** What a row of the settings opens over them. */
|
|
24
|
-
export type SettingsDialog = '
|
|
26
|
+
export type SettingsDialog = 'directory';
|
|
25
27
|
/** The sections of the page and of ta, by part, with their rows. */
|
|
26
|
-
export declare function useParts(scope: TaSettingsScope, onScope: (scope: TaSettingsScope) => void,
|
|
28
|
+
export declare function useParts(scope: TaSettingsScope, onScope: (scope: TaSettingsScope) => void, onDialog: (dialog: SettingsDialog) => void): Part[];
|
|
@@ -12,13 +12,13 @@ import { useNavigation } from './app-nav.js';
|
|
|
12
12
|
import { Loading } from './loading.js';
|
|
13
13
|
import { SettingsModelPicker } from './model-picker.js';
|
|
14
14
|
import { DIAGRAM_STYLE_CHOICES, FONT_SIZES, GROUP_ICONS, LANGUAGES, navigationRows, SETTINGS_GROUPS, THEMES } from './settings-choices.js';
|
|
15
|
-
import { ChoiceRow, Row, row, Segmented, Switch } from './settings-controls.js';
|
|
15
|
+
import { ChoiceRow, Row, row, Segmented, SettingsViewUtil, Switch } from './settings-controls.js';
|
|
16
16
|
import { useMoreSections } from './settings-more.js';
|
|
17
17
|
import { TrustedDomains } from './trusted-domains.js';
|
|
18
18
|
import { VoicePicker } from './voice-picker.js';
|
|
19
19
|
import { VoiceServices } from './voice-services.js';
|
|
20
20
|
/** The sections of the page and of ta, by part, with their rows. */
|
|
21
|
-
export function useParts(scope, onScope,
|
|
21
|
+
export function useParts(scope, onScope, onDialog) {
|
|
22
22
|
var _a;
|
|
23
23
|
const t = useT();
|
|
24
24
|
const [{ settings }, store] = useSettings();
|
|
@@ -27,7 +27,7 @@ export function useParts(scope, onScope, onClose, onDialog) {
|
|
|
27
27
|
const [{ cwd, views }] = useWebExtensions();
|
|
28
28
|
const navigation = useNavigation(views);
|
|
29
29
|
const agent = useAgentSettings(cwd !== null && cwd !== void 0 ? cwd : (_a = workbench.server) === null || _a === void 0 ? void 0 : _a.cwd);
|
|
30
|
-
const more = useMoreSections(
|
|
30
|
+
const more = useMoreSections(onDialog);
|
|
31
31
|
const handheld = useDevice(device => device.handheld);
|
|
32
32
|
const web = [
|
|
33
33
|
{
|
|
@@ -72,6 +72,7 @@ export function useParts(scope, onScope, onClose, onDialog) {
|
|
|
72
72
|
id: 'chats',
|
|
73
73
|
title: t('ta.settings.chats'),
|
|
74
74
|
icon: List,
|
|
75
|
+
group: 'chats',
|
|
75
76
|
rows: [
|
|
76
77
|
row('chat-fold', [t('ta.settings.chatFold'), t('ta.settings.chatFoldHint')], React.createElement(Row, { label: t('ta.settings.chatFold'), description: t('ta.settings.chatFoldHint'), stacked: true },
|
|
77
78
|
React.createElement(Segmented, { label: t('ta.settings.chatFold'), value: String(settings.chatFoldDays), choices: CHAT_FOLD_CHOICES.map(days => ({
|
|
@@ -91,6 +92,9 @@ export function useParts(scope, onScope, onClose, onDialog) {
|
|
|
91
92
|
id: 'links',
|
|
92
93
|
title: t('ta.settings.links'),
|
|
93
94
|
icon: Link2,
|
|
95
|
+
group: 'chats',
|
|
96
|
+
// After the notices and who answers others, before what is kept.
|
|
97
|
+
order: 30,
|
|
94
98
|
rows: [
|
|
95
99
|
row('trusted-domains', [t('ta.settings.trustedDomains'), t('ta.settings.trustedDomainsHint'), ...settings.trustedDomains], React.createElement(TrustedDomains, null)),
|
|
96
100
|
],
|
|
@@ -120,6 +124,7 @@ export function useParts(scope, onScope, onClose, onDialog) {
|
|
|
120
124
|
id: 'voice',
|
|
121
125
|
title: t('ta.settings.voice'),
|
|
122
126
|
icon: Volume2,
|
|
127
|
+
group: 'voice',
|
|
123
128
|
rows: [
|
|
124
129
|
row('speak', [t('ta.settings.speak'), t('ta.settings.speakHint')], React.createElement(Row, { label: t('ta.settings.speak'), description: t('ta.settings.speakHint') },
|
|
125
130
|
React.createElement(Switch, { label: t('ta.settings.speak'), checked: settings.speak, onChange: speak => store.update({ speak }) }))),
|
|
@@ -172,11 +177,11 @@ export function useParts(scope, onScope, onClose, onDialog) {
|
|
|
172
177
|
}); });
|
|
173
178
|
// Ta's scoped sections first in its part, under their scope; each part's own sections before those of extensions.
|
|
174
179
|
const sections = [...web.filter(entry => entry.group !== 'ta'), ...ta, ...web.filter(entry => entry.group === 'ta'), ...more];
|
|
175
|
-
return SETTINGS_GROUPS.map(
|
|
176
|
-
id
|
|
177
|
-
title: t(group.title),
|
|
178
|
-
sections:
|
|
179
|
-
...(
|
|
180
|
-
})
|
|
180
|
+
return SettingsViewUtil.parts(sections, SETTINGS_GROUPS).map(({ id, sections: own }) => { var _a; var _b; return ({
|
|
181
|
+
id,
|
|
182
|
+
title: t((_b = (_a = SETTINGS_GROUPS.find(group => group.id === id)) === null || _a === void 0 ? void 0 : _a.title) !== null && _b !== void 0 ? _b : 'ta.settings.general'),
|
|
183
|
+
sections: own,
|
|
184
|
+
...(id === 'ta' ? { lead } : {}),
|
|
185
|
+
}); });
|
|
181
186
|
}
|
|
182
187
|
//# sourceMappingURL=settings-parts.js.map
|
|
@@ -4,13 +4,11 @@ import { useDevice } from '../device/device.js';
|
|
|
4
4
|
import { useT } from '../i18n/use-t.js';
|
|
5
5
|
import { ScreenUtil } from '../screen/screen-protocol.js';
|
|
6
6
|
import { useScreenPart } from '../screen/use-screen-part.js';
|
|
7
|
-
import { AuthDialog } from './auth-view.js';
|
|
8
7
|
import { EmptyState } from './empty-state.js';
|
|
9
8
|
import { Icon, IconButton } from './icon.js';
|
|
10
9
|
import { ListGroup, ListRow } from './list-rows.js';
|
|
11
10
|
import { Loading } from './loading.js';
|
|
12
11
|
import { PhoneStack } from './phone-shell.js';
|
|
13
|
-
import { RelayDialog } from './relay-view.js';
|
|
14
12
|
import { SettingsViewUtil } from './settings-controls.js';
|
|
15
13
|
import { useParts } from './settings-parts.js';
|
|
16
14
|
import { WorkingDirectoryPicker } from './working-directory.js';
|
|
@@ -28,7 +26,7 @@ export function SettingsView({ section, onClose, onMenu, onBack }) {
|
|
|
28
26
|
const [scope, setScope] = React.useState('user');
|
|
29
27
|
const [dialog, setDialog] = React.useState();
|
|
30
28
|
const closeDialog = React.useCallback(() => setDialog(undefined), []);
|
|
31
|
-
const parts = useParts(scope, setScope,
|
|
29
|
+
const parts = useParts(scope, setScope, setDialog);
|
|
32
30
|
// What an agent reads of the settings and where it goes in them (docs/design/ta-app-use.md 3); the rows are read as they show.
|
|
33
31
|
useScreenPart({
|
|
34
32
|
id: 'settings',
|
|
@@ -67,9 +65,7 @@ export function SettingsView({ section, onClose, onMenu, onBack }) {
|
|
|
67
65
|
const props = { parts, query, search, section };
|
|
68
66
|
return (React.createElement("section", { className: "ta-settings-page", "aria-label": t('ta.settings'), ...ScreenUtil.part('settings') },
|
|
69
67
|
handheld ? React.createElement(PhoneSettings, { ...props, onBack: onBack !== null && onBack !== void 0 ? onBack : onClose }) : React.createElement(WideSettings, { ...props, onClose: onClose, onMenu: onMenu, onBack: onBack }),
|
|
70
|
-
dialog === '
|
|
71
|
-
dialog === 'directory' && React.createElement(WorkingDirectoryPicker, { onClose: closeDialog }),
|
|
72
|
-
dialog === 'relay' && React.createElement(RelayDialog, { onClose: closeDialog })));
|
|
68
|
+
dialog === 'directory' && React.createElement(WorkingDirectoryPicker, { onClose: closeDialog })));
|
|
73
69
|
}
|
|
74
70
|
/** The rows of a section, in a card. */
|
|
75
71
|
function SectionRows({ entry }) {
|
|
@@ -19,4 +19,4 @@ export interface WebComposerHostProps extends WebComposerProps {
|
|
|
19
19
|
* The message box as web extensions get it (`pi.ui.Composer`): text, and pictures when it takes them (shrunk within
|
|
20
20
|
* the limits given), `@` for the names they give; a failure is a notice of the page.
|
|
21
21
|
*/
|
|
22
|
-
export declare function WebComposer({ notices, placeholder, onSend, images, mentions, mentionLabel, actions, cwd, onPickCwd, commands, working, onStop, voiceSends, onTalkSent, onListening, after, draft, server, listDirectory, serverCwd, remote, }: WebComposerHostProps): React.JSX.Element;
|
|
22
|
+
export declare function WebComposer({ notices, placeholder, onSend, images, emoji, autoFocus, mentions, mentionLabel, actions, cwd, onPickCwd, commands, working, onStop, voiceSends, onTalkSent, onListening, after, draft, server, listDirectory, serverCwd, remote, }: WebComposerHostProps): React.JSX.Element;
|
|
@@ -10,7 +10,7 @@ import { DirectoryButton } from './folder-picker.js';
|
|
|
10
10
|
* The message box as web extensions get it (`pi.ui.Composer`): text, and pictures when it takes them (shrunk within
|
|
11
11
|
* the limits given), `@` for the names they give; a failure is a notice of the page.
|
|
12
12
|
*/
|
|
13
|
-
export function WebComposer({ notices, placeholder, onSend, images, mentions, mentionLabel, actions, cwd, onPickCwd, commands, working, onStop, voiceSends, onTalkSent, onListening, after, draft, server, listDirectory, serverCwd, remote, }) {
|
|
13
|
+
export function WebComposer({ notices, placeholder, onSend, images, emoji, autoFocus, mentions, mentionLabel, actions, cwd, onPickCwd, commands, working, onStop, voiceSends, onTalkSent, onListening, after, draft, server, listDirectory, serverCwd, remote, }) {
|
|
14
14
|
const t = useT();
|
|
15
15
|
const language = useLanguage();
|
|
16
16
|
const [query, setQuery] = React.useState();
|
|
@@ -19,7 +19,7 @@ export function WebComposer({ notices, placeholder, onSend, images, mentions, me
|
|
|
19
19
|
return (React.createElement(ComposerBox, { placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : t('ta.composer.label'), onSend: async (text, attached) => {
|
|
20
20
|
const limits = typeof images === 'object' ? images : undefined;
|
|
21
21
|
await onSend(text, limits ? await Promise.all(attached.map(image => ImageShrink.shrink(image, limits))) : attached);
|
|
22
|
-
}, images: !!images, commands: listed, onMentionQuery: mentions ? setQuery : undefined, mentions: mentions && query !== undefined
|
|
22
|
+
}, images: !!images, emoji: emoji, autoFocus: autoFocus, commands: listed, onMentionQuery: mentions ? setQuery : undefined, mentions: mentions && query !== undefined
|
|
23
23
|
? {
|
|
24
24
|
items: ComposerUtil.commands(mentions, query).map(mention => ({
|
|
25
25
|
key: mention.name,
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { WebFileSaved as FileSaveResult } from '../extension/web-api-desktop.js';
|
|
2
|
+
/** What the page asks the Ta app: TaSave.swift of apps/ta-mobile on iOS, MainActivity.java on Android. */
|
|
3
|
+
export interface FileSaveMessage {
|
|
4
|
+
id: string;
|
|
5
|
+
action: 'begin' | 'chunk' | 'end';
|
|
6
|
+
/** `begin`: the name of the file, its type. */
|
|
7
|
+
name?: string;
|
|
8
|
+
type?: string;
|
|
9
|
+
/** `chunk`: the next bytes, in base64. */
|
|
10
|
+
data?: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Files kept on a phone as its system keeps them, where a browser's download does nothing (the web view of the Ta
|
|
14
|
+
* app has none): on iOS pictures and videos go to the album, other files to Files where the user picks; on Android
|
|
15
|
+
* everything goes to Downloads. The bytes go to the app in pieces, which it writes to a file of its own before it
|
|
16
|
+
* keeps it. Elsewhere (a browser, Ta Desktop) there is none: the page downloads as browsers do.
|
|
17
|
+
*/
|
|
18
|
+
export declare namespace FileSave {
|
|
19
|
+
const EVENT = "ta-save";
|
|
20
|
+
/** The bytes of one message: a multiple of 3, so that each piece is base64 of its own, without padding inside. */
|
|
21
|
+
const CHUNK_BYTES: number;
|
|
22
|
+
/** Whether the device keeps files itself here: in the Ta app on iOS and Android. */
|
|
23
|
+
function available(): boolean;
|
|
24
|
+
/** Base64 of bytes, a piece at a time: `String.fromCharCode` takes only so many arguments. */
|
|
25
|
+
function base64(bytes: Uint8Array): string;
|
|
26
|
+
/**
|
|
27
|
+
* Keeps `file` on the device as `name`. Not timed out: the user takes the time they need in Files. Rejects when
|
|
28
|
+
* the app could not write or keep it; resolves `cancelled` in a browser.
|
|
29
|
+
*/
|
|
30
|
+
function save(file: Blob, name: string): Promise<FileSaveResult>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Files kept on a phone as its system keeps them, where a browser's download does nothing (the web view of the Ta
|
|
3
|
+
* app has none): on iOS pictures and videos go to the album, other files to Files where the user picks; on Android
|
|
4
|
+
* everything goes to Downloads. The bytes go to the app in pieces, which it writes to a file of its own before it
|
|
5
|
+
* keeps it. Elsewhere (a browser, Ta Desktop) there is none: the page downloads as browsers do.
|
|
6
|
+
*/
|
|
7
|
+
export var FileSave;
|
|
8
|
+
(function (FileSave) {
|
|
9
|
+
FileSave.EVENT = 'ta-save';
|
|
10
|
+
/** The bytes of one message: a multiple of 3, so that each piece is base64 of its own, without padding inside. */
|
|
11
|
+
FileSave.CHUNK_BYTES = 3 * 256 * 1024;
|
|
12
|
+
let next = 0;
|
|
13
|
+
function native() {
|
|
14
|
+
var _a, _b;
|
|
15
|
+
const scope = globalThis;
|
|
16
|
+
const ios = (_b = (_a = scope.webkit) === null || _a === void 0 ? void 0 : _a.messageHandlers) === null || _b === void 0 ? void 0 : _b.taSave;
|
|
17
|
+
if (ios) {
|
|
18
|
+
return { post: message => ios.postMessage(message) };
|
|
19
|
+
}
|
|
20
|
+
const android = scope.taSaveAndroid;
|
|
21
|
+
return android ? { post: message => android.post(JSON.stringify(message)) } : undefined;
|
|
22
|
+
}
|
|
23
|
+
/** Whether the device keeps files itself here: in the Ta app on iOS and Android. */
|
|
24
|
+
function available() {
|
|
25
|
+
return native() !== undefined;
|
|
26
|
+
}
|
|
27
|
+
FileSave.available = available;
|
|
28
|
+
/** Base64 of bytes, a piece at a time: `String.fromCharCode` takes only so many arguments. */
|
|
29
|
+
function base64(bytes) {
|
|
30
|
+
let text = '';
|
|
31
|
+
for (let start = 0; start < bytes.length; start += 0x8000) {
|
|
32
|
+
text += String.fromCharCode(...bytes.subarray(start, start + 0x8000));
|
|
33
|
+
}
|
|
34
|
+
return btoa(text);
|
|
35
|
+
}
|
|
36
|
+
FileSave.base64 = base64;
|
|
37
|
+
/**
|
|
38
|
+
* Keeps `file` on the device as `name`. Not timed out: the user takes the time they need in Files. Rejects when
|
|
39
|
+
* the app could not write or keep it; resolves `cancelled` in a browser.
|
|
40
|
+
*/
|
|
41
|
+
async function save(file, name) {
|
|
42
|
+
const app = native();
|
|
43
|
+
if (!app) {
|
|
44
|
+
return 'cancelled';
|
|
45
|
+
}
|
|
46
|
+
const id = `s${++next}`;
|
|
47
|
+
let onEvent = () => undefined;
|
|
48
|
+
const answer = new Promise((resolve, reject) => {
|
|
49
|
+
onEvent = (event) => {
|
|
50
|
+
const detail = event.detail;
|
|
51
|
+
if ((detail === null || detail === void 0 ? void 0 : detail.id) !== id) {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
globalThis.removeEventListener(FileSave.EVENT, onEvent);
|
|
55
|
+
if (detail.result) {
|
|
56
|
+
resolve(detail.result);
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
reject(new Error(detail.error || 'The file could not be saved'));
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
globalThis.addEventListener(FileSave.EVENT, onEvent);
|
|
63
|
+
});
|
|
64
|
+
try {
|
|
65
|
+
app.post({ id, action: 'begin', name, type: file.type });
|
|
66
|
+
for (let start = 0; start < file.size; start += FileSave.CHUNK_BYTES) {
|
|
67
|
+
const piece = new Uint8Array(await file.slice(start, start + FileSave.CHUNK_BYTES).arrayBuffer());
|
|
68
|
+
app.post({ id, action: 'chunk', data: base64(piece) });
|
|
69
|
+
}
|
|
70
|
+
app.post({ id, action: 'end' });
|
|
71
|
+
}
|
|
72
|
+
catch (error) {
|
|
73
|
+
globalThis.removeEventListener(FileSave.EVENT, onEvent);
|
|
74
|
+
throw error;
|
|
75
|
+
}
|
|
76
|
+
return answer;
|
|
77
|
+
}
|
|
78
|
+
FileSave.save = save;
|
|
79
|
+
})(FileSave || (FileSave = {}));
|
|
80
|
+
//# sourceMappingURL=file-save.js.map
|
|
@@ -14,6 +14,8 @@ export declare const ChatIcons: React.Context<{
|
|
|
14
14
|
}>;
|
|
15
15
|
/** The avatars that web extensions registered for the sessions of their groups. */
|
|
16
16
|
export declare const SessionAvatars: React.Context<Record<string, React.ComponentType<import("./web-extension-api.js").WebAvatarProps>>>;
|
|
17
|
+
/** The group of the conversations calls are answered in (WebExtensionsState.callGroup): shown as the record of a call. */
|
|
18
|
+
export declare const CallGroup: React.Context<string | undefined>;
|
|
17
19
|
/** What web extensions add to the menu of a conversation of a list (WebExtensionAPI.registerSessionMenu). */
|
|
18
20
|
export declare const SessionMenus: React.Context<import("./web-api-menus.js").WebSessionMenu[]>;
|
|
19
21
|
/** The web extensions loaded: what a message one of their packages sent as the user calls it (TaMessageSource). */
|
|
@@ -12,6 +12,8 @@ export const ToolRenderers = React.createContext([]);
|
|
|
12
12
|
export const ChatIcons = React.createContext({ entries: [], version: 0 });
|
|
13
13
|
/** The avatars that web extensions registered for the sessions of their groups. */
|
|
14
14
|
export const SessionAvatars = React.createContext({});
|
|
15
|
+
/** The group of the conversations calls are answered in (WebExtensionsState.callGroup): shown as the record of a call. */
|
|
16
|
+
export const CallGroup = React.createContext(undefined);
|
|
15
17
|
/** What web extensions add to the menu of a conversation of a list (WebExtensionAPI.registerSessionMenu). */
|
|
16
18
|
export const SessionMenus = React.createContext([]);
|
|
17
19
|
/** The web extensions loaded: what a message one of their packages sent as the user calls it (TaMessageSource). */
|
|
@@ -72,6 +72,42 @@ export interface WebCallMouth {
|
|
|
72
72
|
/** For a video call that begins; undefined when it cannot draw now (not set up, or the page too far from it). */
|
|
73
73
|
open(): Promise<WebMouthSession | undefined>;
|
|
74
74
|
}
|
|
75
|
+
/**
|
|
76
|
+
* Moves of the person of a video call an extension adds to Ta's own (WebExtensionAPI.registerCallMoves, docs/design/ta-call.md
|
|
77
|
+
* 16): clips the user made or filmed. They play as Ta's own do, through the same transitions; one named as a move of Ta's
|
|
78
|
+
* own, or of the same state, comes first, and Ta's own plays in its place when its clip cannot.
|
|
79
|
+
*/
|
|
80
|
+
export interface WebCallMoves {
|
|
81
|
+
/** The moves as a video call begins. */
|
|
82
|
+
moves(): Promise<WebCallMove[]>;
|
|
83
|
+
/** A move could not play (its clip did not load or decode): Ta's own plays in its place; the extension says why where the user manages them. */
|
|
84
|
+
failed?(name: string, reason: string): void;
|
|
85
|
+
}
|
|
86
|
+
/** A move a clip shows (WebCallMoves). */
|
|
87
|
+
export interface WebCallMove {
|
|
88
|
+
/** Its name: a move of Ta's own of that name (wave, nod…) gives way to it. */
|
|
89
|
+
name: string;
|
|
90
|
+
/** What the user calls it, in the list of what she can do. */
|
|
91
|
+
title?: string;
|
|
92
|
+
/**
|
|
93
|
+
* A loop of a state (listening, thinking, speaking: played at random while the call is so, before Ta's own); `say`:
|
|
94
|
+
* once, as she says one of its words; `after`: once she said it, as she listens (she may stand up).
|
|
95
|
+
*/
|
|
96
|
+
kind: 'listening' | 'thinking' | 'speaking' | 'say' | 'after';
|
|
97
|
+
/** The words that bring it (`say`, `after`), as she says them. */
|
|
98
|
+
words?: string[];
|
|
99
|
+
/** Its clip, a URL the page plays (a `blob:`): 24 frames a second, beginning and ending as she sits. */
|
|
100
|
+
url: string;
|
|
101
|
+
frames: number;
|
|
102
|
+
/** Of a clip she stands up in: where her seated picture is (x, y, width, height) and the box of her body `fps` times a second. */
|
|
103
|
+
framing?: {
|
|
104
|
+
rest: number[];
|
|
105
|
+
body: number[][];
|
|
106
|
+
fps: number;
|
|
107
|
+
};
|
|
108
|
+
/** Where her face is in each frame (x1, y1, x2, y2), for her mouth. */
|
|
109
|
+
boxes?: number[][];
|
|
110
|
+
}
|
|
75
111
|
/** The frame of a clip that shows at a moment of a reading: its name (faces/<clip>.mp4) and its frame. */
|
|
76
112
|
export type WebMouthSlot = [clip: string, frame: number];
|
|
77
113
|
/** A part of a frame drawn again: where it goes in the frame (pixels of the clip), soft at its edges. */
|
|
@@ -105,3 +141,12 @@ export interface WebMouthSession {
|
|
|
105
141
|
frame(say: number, slot: number): WebMouthFrame | undefined;
|
|
106
142
|
close(): void;
|
|
107
143
|
}
|
|
144
|
+
/** What an extension adds to calls (WebExtensionAPI). */
|
|
145
|
+
export interface WebCallsAPI {
|
|
146
|
+
/** Answers in calls in place of the conversation called (the first registered). Newer than some Ta apps: `pi.registerCallPartner?.(…)`. */
|
|
147
|
+
registerCallPartner(partner: WebCallPartner): void;
|
|
148
|
+
/** Draws the mouth of the person of video calls as Ta speaks (the first registered). Newer than some Ta apps. */
|
|
149
|
+
registerCallMouth(mouth: WebCallMouth): void;
|
|
150
|
+
/** Adds moves to the person of video calls (all registered, before Ta's own). Newer than some Ta apps: `pi.registerCallMoves?.(…)`. */
|
|
151
|
+
registerCallMoves(moves: WebCallMoves): void;
|
|
152
|
+
}
|
|
@@ -321,6 +321,10 @@ export interface WebComposerProps {
|
|
|
321
321
|
* Newer than some Ta apps, which take none.
|
|
322
322
|
*/
|
|
323
323
|
images?: boolean | WebComposerImageLimits;
|
|
324
|
+
/** An emoji button on the right of the field, as WeChat's: on a phone its panel takes the place of the keyboard. Newer than some Ta apps. */
|
|
325
|
+
emoji?: boolean;
|
|
326
|
+
/** The field takes the focus as the box shows (the keyboard comes up on a phone), as a box opened to comment. Newer than some Ta apps. */
|
|
327
|
+
autoFocus?: boolean;
|
|
324
328
|
/** What `@` lists, by name; and the + menu entry that starts an `@`. */
|
|
325
329
|
mentions?: {
|
|
326
330
|
name: string;
|
|
@@ -19,11 +19,12 @@ export interface WebConversation {
|
|
|
19
19
|
title?: string;
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
|
-
* The groups of the settings, by what the user looks for
|
|
23
|
-
*
|
|
24
|
-
*
|
|
22
|
+
* The groups of the settings, by what the user looks for (docs/design/ta-places.md): `general` (how Ta looks), `chats`
|
|
23
|
+
* (the list, notices, who answers others, what is kept), `ta` (models, the double, coding agents), `initiative` (what
|
|
24
|
+
* Ta does by itself), `voice` (speech, calls), `devices` (devices, other computers, the network), `privacy` (secrets,
|
|
25
|
+
* who may come in), `extensions` (what was added to Ta). Older Ta apps leave out a section of a group they do not know.
|
|
25
26
|
*/
|
|
26
|
-
export type WebSettingsGroup = 'general' | 'ta' | 'devices' | 'privacy' | 'extensions';
|
|
27
|
+
export type WebSettingsGroup = 'general' | 'chats' | 'ta' | 'initiative' | 'voice' | 'devices' | 'privacy' | 'extensions';
|
|
27
28
|
/** A section an extension adds to the settings (WebExtensionAPI.registerSettings). */
|
|
28
29
|
export interface WebSettingsSection {
|
|
29
30
|
title: WebLabel;
|
|
@@ -31,6 +32,8 @@ export interface WebSettingsSection {
|
|
|
31
32
|
icon?: WebIcon;
|
|
32
33
|
/** The group it is listed in, after Ta's own sections there; default `extensions`. Newer than some Ta apps. */
|
|
33
34
|
group?: WebSettingsGroup;
|
|
35
|
+
/** Smaller first among those of extensions in its group, then as registered; default 100 (negative: before Ta's). */
|
|
36
|
+
order?: number;
|
|
34
37
|
rows: WebSettingRow[];
|
|
35
38
|
/**
|
|
36
39
|
* Models without signing in to a service (coding agents to install): the first page, which asks to sign in, shows the
|
|
@@ -129,16 +132,12 @@ export interface WidgetOptions {
|
|
|
129
132
|
*/
|
|
130
133
|
export type WebViewLocation = 'page' | 'sidebar' | 'panel' | 'launcher' | 'board';
|
|
131
134
|
/**
|
|
132
|
-
*
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* Where a page is listed: a group of Discover (`people`, `work`, `share`, `more`), or `me`, among the entries of Me (the
|
|
138
|
-
* last tab of a phone; the menu of the account elsewhere), for what is the user's own (their feedback), never in the
|
|
139
|
-
* navigation nor under Discover. Older Ta apps list a page of `me` under Discover's `more`.
|
|
135
|
+
* Where a page is listed: a card of Discover (docs/design/ta-places.md), `people` (friends, rooms, who is nearby, what
|
|
136
|
+
* they post), `work` (what Ta does for the user), `share` (what the user shares, who is let in), `tools` (Ta itself and
|
|
137
|
+
* what it reaches), `play` (games, worlds), `more` (the rest); or `me`, among the entries of Me, for what is the
|
|
138
|
+
* user's own (their feedback), never in the navigation nor under Discover. Older Ta apps list the newer under `more`.
|
|
140
139
|
*/
|
|
141
|
-
export type WebPageGroup = 'people' | 'work' | 'share' | 'more' | 'me';
|
|
140
|
+
export type WebPageGroup = 'people' | 'work' | 'share' | 'tools' | 'play' | 'more' | 'me';
|
|
142
141
|
export interface WebView {
|
|
143
142
|
title: WebLabel;
|
|
144
143
|
render: React.ComponentType;
|
|
@@ -502,7 +501,7 @@ export interface WebCodeRendererProps {
|
|
|
502
501
|
closed: boolean;
|
|
503
502
|
/**
|
|
504
503
|
* Sends words as the user to the conversation the block is in (after its turn, if it works): a choice in it
|
|
505
|
-
* answered with a tap. None where no conversation holds the block (`ui.Markdown` of a page). Newer than some
|
|
504
|
+
* answered with a tap. None where no conversation holds the block (`ui.Markdown` of a page given none). Newer than some
|
|
506
505
|
* Ta apps, whose props have no `send`: there `pi.sendUserMessage` reaches the conversation shown.
|
|
507
506
|
*/
|
|
508
507
|
send?: (text: string) => Promise<void>;
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
/** Part of the web extension API (web-extension-api.ts, which exports it all): what Ta Desktop
|
|
1
|
+
/** Part of the web extension API (web-extension-api.ts, which exports it all): what Ta Desktop and the Ta app add, and files dragged between views. */
|
|
2
|
+
/**
|
|
3
|
+
* Where the Ta app kept a file (`ui.saveFile`): `photos` the album of iOS (pictures and videos), `files` where the
|
|
4
|
+
* user chose in Files (iOS, any other file), `downloads` the Downloads of Android; `cancelled` when the user closed
|
|
5
|
+
* Files, `denied` when Ta may not add to the album (Settings) or write the Downloads (Android 8 and 9, asked then).
|
|
6
|
+
*/
|
|
7
|
+
export type WebFileSaved = 'photos' | 'files' | 'downloads' | 'cancelled' | 'denied';
|
|
8
|
+
/** What a device adds to `ui`. */
|
|
9
|
+
export interface WebDeviceUI {
|
|
10
|
+
/**
|
|
11
|
+
* In the Ta app on a phone, whose web view downloads nothing: keeps a file as the system does (iOS: pictures and
|
|
12
|
+
* videos in the album, other files in Files; Android: Downloads). Undefined elsewhere, where a link with
|
|
13
|
+
* `download` saves it. Newer than some Ta apps.
|
|
14
|
+
*/
|
|
15
|
+
readonly saveFile?: (file: Blob, name: string) => Promise<WebFileSaved>;
|
|
16
|
+
}
|
|
2
17
|
export interface WebDesktop {
|
|
3
18
|
/** Node's `process.platform` of the machine (`darwin`, `win32`, `linux`): what its file manager is called. */
|
|
4
19
|
readonly platform: string;
|
|
@@ -7,8 +7,8 @@ import type { Game3DProps } from '../game/game3d-protocol.js';
|
|
|
7
7
|
import type { ScreenPartSpec, TaScreen } from '../screen/screen-protocol.js';
|
|
8
8
|
import type { Language, Theme } from '../settings/settings-protocol.js';
|
|
9
9
|
import type { CodeEditorProps, DiffEditorProps, WebChatImagesProps, WebComposerProps, WebConversationViewProps, WebDialogProps, WebEmptyProps, WebFaceProps, WebFolderPickerProps, WebFullScreenProps, WebGroupFaceProps, WebHoldToTalkProps, WebImageViewerProps, WebLoadingProps, WebModelPickerProps, WebPictureCardsProps, WebPictureProps, WebSelectBarProps, WebSelectCheckProps, WebShareSheetProps, WebStackProps, WebSwipeRowProps, WebSwitchProps, WebTaskIconProps, WebVoice } from './web-api-components.js';
|
|
10
|
-
import type { WebAsk,
|
|
11
|
-
import type { WebDesktop, WebFileDrag } from './web-api-desktop.js';
|
|
10
|
+
import type { WebAsk, WebCallsAPI, WebChatIconSource, WebCodeRendererOptions, WebCodeRendererProps, WebComposerAddon, WebCustomMessage, WebHomeSource, WebInitiative, WebMenuItem, WebOpener, WebOpenerOptions, WebRoomAddon, WebRoomAddonEntry, WebSearchSource, WebSessionNotice, WebSettingsSection, WebShareTarget, WebTaskEntry, WebTaskRemoval, WebTaskSource, WebTool, WebToolRendererResolver, WebView, WebViewInfo, WidgetOptions } from './web-api-contributions.js';
|
|
11
|
+
import type { WebDesktop, WebDeviceUI, WebFileDrag } from './web-api-desktop.js';
|
|
12
12
|
import type { WebEditorsUI } from './web-api-editors.js';
|
|
13
13
|
import type { WebHomeUI, WebPartnersAPI, WebPartnersUI } from './web-api-home.js';
|
|
14
14
|
import type { WebFileRef, WebMenus } from './web-api-menus.js';
|
|
@@ -35,7 +35,7 @@ export type { WebPageInfo, WebPageState } from './web-pages.js';
|
|
|
35
35
|
* the two mean the same. A web extension is one ES module without imports, the `web` part of a pi
|
|
36
36
|
* package (see TaWebExtensionInfo); it exports a {@link WebExtensionFactory}.
|
|
37
37
|
*/
|
|
38
|
-
export interface WebExtensionAPI extends WebServices, WebPartnersAPI, WebMenus {
|
|
38
|
+
export interface WebExtensionAPI extends WebServices, WebPartnersAPI, WebMenus, WebCallsAPI {
|
|
39
39
|
/** The React of the page: an extension brings no React of its own. */
|
|
40
40
|
readonly React: typeof React;
|
|
41
41
|
readonly ui: WebExtensionUI;
|
|
@@ -52,10 +52,6 @@ export interface WebExtensionAPI extends WebServices, WebPartnersAPI, WebMenus {
|
|
|
52
52
|
* `options.spoken`: what of a block is said aloud; older apps leave it out.
|
|
53
53
|
*/
|
|
54
54
|
registerCodeRenderer(language: string, renderer: React.ComponentType<WebCodeRendererProps>, options?: WebCodeRendererOptions): void;
|
|
55
|
-
/** Answers in calls in place of the conversation called (the first registered). Newer than some Ta apps: `pi.registerCallPartner?.(…)`. */
|
|
56
|
-
registerCallPartner(partner: WebCallPartner): void;
|
|
57
|
-
/** Draws the mouth of the person of video calls as Ta speaks (the first registered). Newer than some Ta apps. */
|
|
58
|
-
registerCallMouth(mouth: WebCallMouth): void;
|
|
59
55
|
/** Who answers in the sessions of its group (TaOpenSessionOptions.group, its package), drawn at each turn in place of ta. */
|
|
60
56
|
registerAvatar(avatar: React.ComponentType<WebAvatarProps>): void;
|
|
61
57
|
/**
|
|
@@ -228,7 +224,7 @@ export interface WebNotifyOptions {
|
|
|
228
224
|
export type { ScreenAction, ScreenItem, ScreenPartSpec, ScreenPartView, ScreenPlace, ScreenScrollable, ScreenScrollTo } from '../screen/screen-protocol.js';
|
|
229
225
|
/** What web extensions see of TaScreen. */
|
|
230
226
|
export type WebScreen = Pick<TaScreen, 'agent' | 'parts' | 'act' | 'element' | 'where' | 'places' | 'go' | 'pageScroll' | 'scroll'>;
|
|
231
|
-
export interface WebExtensionUI extends WebHomeUI, WebPartnersUI, WebEditorsUI {
|
|
227
|
+
export interface WebExtensionUI extends WebHomeUI, WebPartnersUI, WebEditorsUI, WebDeviceUI {
|
|
232
228
|
/** A widget around the message box, as pi's, or a card in the workbench on the right; `undefined` removes it. */
|
|
233
229
|
setWidget(key: string, widget: React.ComponentType | undefined, options?: WidgetOptions): void;
|
|
234
230
|
/**
|
|
@@ -509,10 +505,12 @@ export interface WebExtensionUI extends WebHomeUI, WebPartnersUI, WebEditorsUI {
|
|
|
509
505
|
readonly HoldToTalk: React.ComponentType<WebHoldToTalkProps>;
|
|
510
506
|
/** Listening and reading aloud as the conversations of the page do: its recognizer, the voice of the settings. */
|
|
511
507
|
readonly voice: WebVoice;
|
|
512
|
-
/**
|
|
508
|
+
/** As the conversations show it; `inline`: in a line; `send`, `answer`: a group chat's, for taps in cards (newer). */
|
|
513
509
|
readonly Markdown: React.ComponentType<{
|
|
514
510
|
text: string;
|
|
515
511
|
inline?: boolean;
|
|
512
|
+
send?: WebCodeRendererProps['send'];
|
|
513
|
+
answer?: string;
|
|
516
514
|
}>;
|
|
517
515
|
/**
|
|
518
516
|
* A conversation to read, drawn as those of the page are, with what extensions draw in them (cards, plots,
|