@celljs/ta-web 4.27.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-role.d.ts +9 -4
- package/esm/browser/assistant/assistant-role.js +17 -5
- package/esm/browser/assistant/assistant-task-util.d.ts +6 -0
- package/esm/browser/assistant/assistant-task-util.js +12 -1
- package/esm/browser/assistant/assistant-thread.js +15 -2
- package/esm/browser/assistant/assistant-view.js +4 -1
- package/esm/browser/assistant/assistant.d.ts +2 -1
- package/esm/browser/assistant/assistant.js +9 -7
- package/esm/browser/assistant/call-conversing.d.ts +45 -0
- package/esm/browser/assistant/call-conversing.js +91 -0
- package/esm/browser/assistant/call-face.d.ts +13 -0
- package/esm/browser/assistant/call-face.js +81 -0
- package/esm/browser/assistant/call-keeper.d.ts +8 -4
- package/esm/browser/assistant/call-keeper.js +32 -11
- package/esm/browser/assistant/call-partnering.d.ts +37 -0
- package/esm/browser/assistant/call-partnering.js +79 -0
- package/esm/browser/assistant/call-scenes.d.ts +26 -0
- package/esm/browser/assistant/call-scenes.js +85 -0
- package/esm/browser/assistant/call-screen.d.ts +3 -0
- package/esm/browser/assistant/call-screen.js +15 -0
- package/esm/browser/assistant/mic-sense.d.ts +31 -0
- package/esm/browser/assistant/mic-sense.js +119 -0
- package/esm/browser/assistant/noise-gate.d.ts +32 -0
- package/esm/browser/assistant/noise-gate.js +66 -0
- package/esm/browser/assistant/pcm-util.d.ts +10 -0
- package/esm/browser/assistant/pcm-util.js +55 -0
- package/esm/browser/assistant/read-aloud.d.ts +2 -1
- package/esm/browser/assistant/realtime-voice-protocol.d.ts +84 -0
- package/esm/browser/assistant/realtime-voice-protocol.js +40 -0
- package/esm/browser/assistant/realtime-voice.d.ts +50 -62
- package/esm/browser/assistant/realtime-voice.js +213 -134
- package/esm/browser/assistant/spoken-timeline.d.ts +27 -0
- package/esm/browser/assistant/spoken-timeline.js +49 -0
- package/esm/browser/assistant/voice-call-bar.d.ts +9 -2
- package/esm/browser/assistant/voice-call-bar.js +81 -31
- package/esm/browser/assistant/voice-call-protocol.d.ts +61 -4
- package/esm/browser/assistant/voice-call.d.ts +16 -23
- package/esm/browser/assistant/voice-call.js +134 -117
- package/esm/browser/assistant/voice-reading.d.ts +83 -0
- package/esm/browser/assistant/voice-reading.js +150 -0
- package/esm/browser/avatar/dino-talk.d.ts +15 -0
- package/esm/browser/avatar/dino-talk.js +34 -0
- 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/conversation-scroll-util.d.ts +8 -1
- package/esm/browser/components/conversation-scroll-util.js +21 -0
- package/esm/browser/components/conversation-scroll.js +10 -11
- 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/gallery.js +28 -7
- package/esm/browser/components/host-view.d.ts +1 -1
- package/esm/browser/components/image-pull.d.ts +64 -0
- package/esm/browser/components/image-pull.js +202 -0
- package/esm/browser/components/kept-call-bar.js +2 -1
- package/esm/browser/components/lightbox.d.ts +1 -1
- package/esm/browser/components/lightbox.js +57 -2
- package/esm/browser/components/markdown.d.ts +8 -1
- package/esm/browser/components/markdown.js +12 -4
- 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/partner-row.js +2 -1
- package/esm/browser/components/relay-services.d.ts +9 -3
- package/esm/browser/components/relay-services.js +73 -35
- package/esm/browser/components/session-view.js +4 -2
- 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 +16 -9
- package/esm/browser/components/settings-view.js +2 -6
- package/esm/browser/components/ta-avatar.d.ts +15 -1
- package/esm/browser/components/ta-avatar.js +38 -5
- package/esm/browser/components/voice-services.js +6 -1
- 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 +109 -2
- package/esm/browser/extension/web-api-components.d.ts +4 -0
- package/esm/browser/extension/web-api-contributions.d.ts +14 -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-api-partners.d.ts +2 -0
- package/esm/browser/extension/web-extension-api.d.ts +8 -10
- 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 +4 -0
- package/esm/browser/extension/web-extension-protocol.d.ts +10 -1
- package/esm/browser/extension/web-extension-protocol.js +1 -0
- package/esm/browser/extension/web-extension-run.d.ts +4 -2
- package/esm/browser/extension/web-extension-run.js +10 -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 +1150 -1131
- package/esm/browser/i18n/messages-ja.js +20 -1567
- package/esm/browser/i18n/messages-zh-tw.d.ts +0 -1
- package/esm/browser/i18n/messages-zh-tw.js +20 -1568
- package/esm/browser/i18n/messages.d.ts +1153 -1131
- package/esm/browser/i18n/messages.js +44 -3145
- 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/markdown/code-renderers.d.ts +2 -0
- package/esm/browser/markdown/code-renderers.js +2 -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/screen/page-answers.d.ts +2 -1
- package/esm/browser/screen/page-answers.js +7 -4
- package/esm/browser/settings/settings-protocol.d.ts +4 -0
- package/esm/browser/settings/settings-protocol.js +4 -0
- package/esm/browser/style/base.d.ts +1 -1
- package/esm/browser/style/base.js +3 -0
- package/esm/browser/style/chat-list.d.ts +1 -1
- package/esm/browser/style/chat-list.js +1 -1
- 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 +11 -1
- package/esm/browser/style/device.js +1 -0
- package/esm/browser/style/dialogs.d.ts +1 -1
- package/esm/browser/style/dialogs.js +1 -1
- package/esm/browser/style/layout.d.ts +1 -1
- package/esm/browser/style/layout.js +135 -57
- package/esm/browser/style/pages.d.ts +1 -1
- package/esm/browser/style/pages.js +0 -7
- package/esm/browser/style/shell.d.ts +1 -1
- package/esm/browser/style/shell.js +8 -0
- package/esm/browser/style/video-call.d.ts +2 -0
- package/esm/browser/style/video-call.js +63 -0
- package/esm/browser/style.js +2 -0
- package/esm/browser/util/call-transcript.d.ts +16 -0
- package/esm/browser/util/call-transcript.js +110 -0
- package/esm/browser/util/desktop.d.ts +10 -1
- package/esm/browser/util/desktop.js +10 -0
- package/esm/browser/util/image-pull.d.ts +61 -0
- package/esm/browser/util/image-pull.js +88 -0
- package/esm/browser/util/process.d.ts +6 -0
- package/esm/browser/util/process.js +18 -5
- package/esm/browser/util/spoken.d.ts +3 -3
- package/esm/browser/util/spoken.js +4 -4
- package/esm/browser/video-call/call-camera.d.ts +59 -0
- package/esm/browser/video-call/call-camera.js +188 -0
- 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/call-window.d.ts +19 -0
- package/esm/browser/video-call/call-window.js +80 -0
- package/esm/browser/video-call/clip-plan.d.ts +56 -0
- package/esm/browser/video-call/clip-plan.js +76 -0
- 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 +69 -0
- package/esm/browser/video-call/face-files.js +132 -0
- 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.d.ts +19 -0
- package/esm/browser/video-call/video-call-view.js +254 -0
- package/esm/browser/video-call/video-face.d.ts +19 -0
- package/esm/browser/video-call/video-face.js +471 -0
- package/esm/browser/workbench-hosts.d.ts +1 -0
- package/esm/browser/workbench-protocol.d.ts +2 -0
- package/esm/browser/workbench-util.d.ts +5 -0
- package/esm/browser/workbench-util.js +18 -0
- package/esm/browser/workbench.d.ts +14 -0
- package/esm/browser/workbench.js +73 -6
- package/lib/browser/assistant/assistant-role.d.ts +9 -4
- package/lib/browser/assistant/assistant-role.js +17 -5
- package/lib/browser/assistant/assistant-task-util.d.ts +6 -0
- package/lib/browser/assistant/assistant-task-util.js +11 -0
- package/lib/browser/assistant/assistant-thread.js +15 -2
- package/lib/browser/assistant/assistant-view.js +3 -0
- package/lib/browser/assistant/assistant.d.ts +2 -1
- package/lib/browser/assistant/assistant.js +9 -7
- package/lib/browser/assistant/call-conversing.d.ts +46 -0
- package/lib/browser/assistant/call-conversing.js +96 -0
- package/lib/browser/assistant/call-face.d.ts +14 -0
- package/lib/browser/assistant/call-face.js +117 -0
- package/lib/browser/assistant/call-keeper.d.ts +8 -4
- package/lib/browser/assistant/call-keeper.js +32 -11
- package/lib/browser/assistant/call-partnering.d.ts +38 -0
- package/lib/browser/assistant/call-partnering.js +83 -0
- package/lib/browser/assistant/call-scenes.d.ts +27 -0
- package/lib/browser/assistant/call-scenes.js +88 -0
- package/lib/browser/assistant/call-screen.d.ts +3 -0
- package/lib/browser/assistant/call-screen.js +15 -0
- package/lib/browser/assistant/mic-sense.d.ts +32 -0
- package/lib/browser/assistant/mic-sense.js +123 -0
- package/lib/browser/assistant/noise-gate.d.ts +33 -0
- package/lib/browser/assistant/noise-gate.js +71 -0
- package/lib/browser/assistant/pcm-util.d.ts +11 -0
- package/lib/browser/assistant/pcm-util.js +58 -0
- package/lib/browser/assistant/read-aloud.d.ts +2 -1
- package/lib/browser/assistant/realtime-voice-protocol.d.ts +85 -0
- package/lib/browser/assistant/realtime-voice-protocol.js +43 -0
- package/lib/browser/assistant/realtime-voice.d.ts +50 -62
- package/lib/browser/assistant/realtime-voice.js +217 -138
- package/lib/browser/assistant/spoken-timeline.d.ts +28 -0
- package/lib/browser/assistant/spoken-timeline.js +53 -0
- package/lib/browser/assistant/voice-call-bar.d.ts +9 -2
- package/lib/browser/assistant/voice-call-bar.js +81 -30
- package/lib/browser/assistant/voice-call-protocol.d.ts +61 -4
- package/lib/browser/assistant/voice-call.d.ts +16 -23
- package/lib/browser/assistant/voice-call.js +134 -117
- package/lib/browser/assistant/voice-reading.d.ts +84 -0
- package/lib/browser/assistant/voice-reading.js +156 -0
- package/lib/browser/avatar/dino-talk.d.ts +16 -0
- package/lib/browser/avatar/dino-talk.js +37 -0
- 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/conversation-scroll-util.d.ts +8 -1
- package/lib/browser/components/conversation-scroll-util.js +21 -0
- package/lib/browser/components/conversation-scroll.js +10 -11
- 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/gallery.js +28 -7
- package/lib/browser/components/host-view.d.ts +1 -1
- package/lib/browser/components/image-pull.d.ts +65 -0
- package/lib/browser/components/image-pull.js +206 -0
- package/lib/browser/components/kept-call-bar.js +2 -1
- package/lib/browser/components/lightbox.d.ts +1 -1
- package/lib/browser/components/lightbox.js +57 -2
- package/lib/browser/components/markdown.d.ts +8 -1
- package/lib/browser/components/markdown.js +11 -3
- 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/partner-row.js +2 -1
- package/lib/browser/components/relay-services.d.ts +9 -3
- package/lib/browser/components/relay-services.js +71 -33
- package/lib/browser/components/session-view.js +3 -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 +15 -8
- package/lib/browser/components/settings-view.js +2 -6
- package/lib/browser/components/ta-avatar.d.ts +15 -1
- package/lib/browser/components/ta-avatar.js +38 -5
- package/lib/browser/components/voice-services.js +5 -0
- 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 +109 -2
- package/lib/browser/extension/web-api-components.d.ts +4 -0
- package/lib/browser/extension/web-api-contributions.d.ts +14 -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-api-partners.d.ts +2 -0
- package/lib/browser/extension/web-extension-api.d.ts +8 -10
- 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 +4 -0
- package/lib/browser/extension/web-extension-protocol.d.ts +10 -1
- package/lib/browser/extension/web-extension-protocol.js +1 -0
- package/lib/browser/extension/web-extension-run.d.ts +4 -2
- package/lib/browser/extension/web-extension-run.js +10 -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 +1150 -1131
- package/lib/browser/i18n/messages-ja.js +20 -1567
- package/lib/browser/i18n/messages-zh-tw.d.ts +0 -1
- package/lib/browser/i18n/messages-zh-tw.js +20 -1568
- package/lib/browser/i18n/messages.d.ts +1153 -1131
- package/lib/browser/i18n/messages.js +44 -3145
- 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/markdown/code-renderers.d.ts +2 -0
- package/lib/browser/markdown/code-renderers.js +3 -1
- 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/screen/page-answers.d.ts +2 -1
- package/lib/browser/screen/page-answers.js +7 -4
- package/lib/browser/settings/settings-protocol.d.ts +4 -0
- package/lib/browser/settings/settings-protocol.js +4 -0
- package/lib/browser/style/base.d.ts +1 -1
- package/lib/browser/style/base.js +3 -0
- package/lib/browser/style/chat-list.d.ts +1 -1
- package/lib/browser/style/chat-list.js +1 -1
- 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 +11 -1
- package/lib/browser/style/device.js +1 -0
- package/lib/browser/style/dialogs.d.ts +1 -1
- package/lib/browser/style/dialogs.js +1 -1
- package/lib/browser/style/layout.d.ts +1 -1
- package/lib/browser/style/layout.js +135 -57
- package/lib/browser/style/pages.d.ts +1 -1
- package/lib/browser/style/pages.js +0 -7
- package/lib/browser/style/shell.d.ts +1 -1
- package/lib/browser/style/shell.js +8 -0
- package/lib/browser/style/video-call.d.ts +3 -0
- package/lib/browser/style/video-call.js +66 -0
- package/lib/browser/style.js +2 -0
- package/lib/browser/util/call-transcript.d.ts +17 -0
- package/lib/browser/util/call-transcript.js +113 -0
- package/lib/browser/util/desktop.d.ts +10 -1
- package/lib/browser/util/desktop.js +10 -0
- package/lib/browser/util/image-pull.d.ts +62 -0
- package/lib/browser/util/image-pull.js +91 -0
- package/lib/browser/util/process.d.ts +6 -0
- package/lib/browser/util/process.js +17 -4
- package/lib/browser/util/spoken.d.ts +3 -3
- package/lib/browser/util/spoken.js +4 -4
- package/lib/browser/video-call/call-camera.d.ts +60 -0
- package/lib/browser/video-call/call-camera.js +192 -0
- 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/call-window.d.ts +20 -0
- package/lib/browser/video-call/call-window.js +83 -0
- package/lib/browser/video-call/clip-plan.d.ts +57 -0
- package/lib/browser/video-call/clip-plan.js +80 -0
- 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 +70 -0
- package/lib/browser/video-call/face-files.js +137 -0
- 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.d.ts +20 -0
- package/lib/browser/video-call/video-call-view.js +290 -0
- package/lib/browser/video-call/video-face.d.ts +20 -0
- package/lib/browser/video-call/video-face.js +507 -0
- package/lib/browser/workbench-hosts.d.ts +1 -0
- package/lib/browser/workbench-protocol.d.ts +2 -0
- package/lib/browser/workbench-util.d.ts +5 -0
- package/lib/browser/workbench-util.js +18 -0
- package/lib/browser/workbench.d.ts +14 -0
- package/lib/browser/workbench.js +71 -4
- package/package.json +7 -7
- package/public/faces/README.md +40 -0
- 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/clap.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/happy.mp4 +0 -0
- package/public/faces/heart.mp4 +0 -0
- package/public/faces/idle-1.mp4 +0 -0
- package/public/faces/idle-2.mp4 +0 -0
- package/public/faces/idle-3.mp4 +0 -0
- package/public/faces/laugh.mp4 +0 -0
- package/public/faces/lips.json +1 -0
- package/public/faces/listening.mp4 +0 -0
- package/public/faces/poster.jpg +0 -0
- package/public/faces/shy.mp4 +0 -0
- package/public/faces/sorry.mp4 +0 -0
- package/public/faces/stretch.mp4 +0 -0
- package/public/faces/surprised.mp4 +0 -0
- package/public/faces/talk-1.mp4 +0 -0
- package/public/faces/talk-2.mp4 +0 -0
- package/public/faces/think-2.mp4 +0 -0
- package/public/faces/thinking.mp4 +0 -0
- package/public/faces/wave.mp4 +0 -0
|
@@ -0,0 +1,87 @@
|
|
|
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.useComposerEmoji = useComposerEmoji;
|
|
37
|
+
exports.ComposerEmojiButton = ComposerEmojiButton;
|
|
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 composer_box_hooks_1 = require("./composer-box-hooks");
|
|
42
|
+
const emoji_panel_1 = require("./emoji-panel");
|
|
43
|
+
const icon_1 = require("./icon");
|
|
44
|
+
/**
|
|
45
|
+
* The emoji of the message box (ComposerBoxProps.emoji), as WeChat's: on a phone a panel in place of the keyboard,
|
|
46
|
+
* its button a keyboard while it shows; on a computer a popover above the button. `onOpen` puts the + panel away.
|
|
47
|
+
*/
|
|
48
|
+
function useComposerEmoji(handheld, input, onOpen) {
|
|
49
|
+
const [open, setOpen] = React.useState(false);
|
|
50
|
+
const [closing, setClosing] = React.useState(false);
|
|
51
|
+
const anchor = React.useRef(null);
|
|
52
|
+
const panel = React.useRef(null);
|
|
53
|
+
const close = React.useCallback(() => {
|
|
54
|
+
setOpen(false);
|
|
55
|
+
setClosing(handheld);
|
|
56
|
+
}, [handheld]);
|
|
57
|
+
(0, composer_box_hooks_1.usePlusMenuDismiss)(open, close, anchor, panel);
|
|
58
|
+
const toggle = () => {
|
|
59
|
+
var _a, _b;
|
|
60
|
+
if (open) {
|
|
61
|
+
close();
|
|
62
|
+
if (handheld) {
|
|
63
|
+
(_a = input.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
64
|
+
}
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
if (handheld) {
|
|
68
|
+
(_b = input.current) === null || _b === void 0 ? void 0 : _b.blur();
|
|
69
|
+
}
|
|
70
|
+
onOpen();
|
|
71
|
+
setClosing(false);
|
|
72
|
+
setOpen(true);
|
|
73
|
+
};
|
|
74
|
+
return { open, closing, close, toggle, anchor, panel, hide: () => setOpen(false), closed: () => setClosing(false) };
|
|
75
|
+
}
|
|
76
|
+
/** The button on the right of the field, and on a computer the popover over it. */
|
|
77
|
+
function ComposerEmojiButton({ emoji, handheld, onPick }) {
|
|
78
|
+
const t = (0, use_t_1.useT)();
|
|
79
|
+
const keyboard = emoji.open && handheld;
|
|
80
|
+
return (React.createElement("div", { className: "ta-emoji-anchor", ref: emoji.anchor },
|
|
81
|
+
React.createElement("button", { type: "button", className: `ta-mic ta-emoji-button${emoji.open ? ' ta-on' : ''}`, title: t(keyboard ? 'ta.composer.keyboard' : 'ta.composer.emoji'), "aria-label": t(keyboard ? 'ta.composer.keyboard' : 'ta.composer.emoji'), "aria-expanded": emoji.open,
|
|
82
|
+
// On a computer the field keeps the focus while the popover opens.
|
|
83
|
+
onPointerDown: event => !handheld && event.preventDefault(), onClick: emoji.toggle },
|
|
84
|
+
React.createElement(icon_1.Icon, { icon: keyboard ? lucide_react_1.Keyboard : lucide_react_1.Smile, size: 20 })),
|
|
85
|
+
emoji.open && !handheld && React.createElement(emoji_panel_1.EmojiPanel, { onPick: onPick })));
|
|
86
|
+
}
|
|
87
|
+
//# sourceMappingURL=composer-emoji.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type FrameScheduler } from '../util/frame';
|
|
2
2
|
/** A row of the thread. */
|
|
3
3
|
export interface ScrollRow {
|
|
4
4
|
/** From the top of the thread. */
|
|
@@ -82,6 +82,13 @@ export interface ScrollThread {
|
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
84
|
export declare namespace ScrollUtil {
|
|
85
|
+
/** The last message of the user among `rows` (ASK_CLASS): the message sent last, the room under the thread for its answer. */
|
|
86
|
+
function lastAsk<T extends Element>(rows: ArrayLike<T>): T | undefined;
|
|
87
|
+
/**
|
|
88
|
+
* The room `room` under a thread `height` tall (with it) once the message sent no longer holds the top: what its
|
|
89
|
+
* answer filled of it goes, and it never grows; kept as it was, the bottom of the view would be an empty screen.
|
|
90
|
+
*/
|
|
91
|
+
function roomLeft<T extends Element & ScrollRow>(rows: ArrayLike<T>, viewport: number, height: number, room: number): number;
|
|
85
92
|
/** The first of `rows` (in order, as laid out) in a view scrolled to `top`; past what says earlier rows load. */
|
|
86
93
|
function firstRow(rows: ArrayLike<ScrollRow>, top: number): ScrollRow | undefined;
|
|
87
94
|
/**
|
|
@@ -5,6 +5,7 @@ exports.hasScrollEnd = hasScrollEnd;
|
|
|
5
5
|
exports.calm = calm;
|
|
6
6
|
exports.isElement = isElement;
|
|
7
7
|
exports.scrollsInside = scrollsInside;
|
|
8
|
+
const frame_1 = require("../util/frame");
|
|
8
9
|
/** A message of the user in the thread: where the view goes when one is sent. */
|
|
9
10
|
exports.ASK_CLASS = 'ta-thread-ask';
|
|
10
11
|
/** How long a part of a message opened or closed by a click keeps its place (a motion of its height). */
|
|
@@ -61,6 +62,26 @@ function scrollsInside(target, view, up) {
|
|
|
61
62
|
}
|
|
62
63
|
var ScrollUtil;
|
|
63
64
|
(function (ScrollUtil) {
|
|
65
|
+
/** The last message of the user among `rows` (ASK_CLASS): the message sent last, the room under the thread for its answer. */
|
|
66
|
+
function lastAsk(rows) {
|
|
67
|
+
var _a;
|
|
68
|
+
for (let index = rows.length - 1; index >= 0; index--) {
|
|
69
|
+
if ((_a = rows[index].classList) === null || _a === void 0 ? void 0 : _a.contains(exports.ASK_CLASS)) {
|
|
70
|
+
return rows[index];
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return undefined;
|
|
74
|
+
}
|
|
75
|
+
ScrollUtil.lastAsk = lastAsk;
|
|
76
|
+
/**
|
|
77
|
+
* The room `room` under a thread `height` tall (with it) once the message sent no longer holds the top: what its
|
|
78
|
+
* answer filled of it goes, and it never grows; kept as it was, the bottom of the view would be an empty screen.
|
|
79
|
+
*/
|
|
80
|
+
function roomLeft(rows, viewport, height, room) {
|
|
81
|
+
const message = lastAsk(rows);
|
|
82
|
+
return message ? Math.min(room, frame_1.FrameUtil.anchor(message.offsetTop, viewport, height - room).room) : 0;
|
|
83
|
+
}
|
|
84
|
+
ScrollUtil.roomLeft = roomLeft;
|
|
64
85
|
/** The first of `rows` (in order, as laid out) in a view scrolled to `top`; past what says earlier rows load. */
|
|
65
86
|
function firstRow(rows, top) {
|
|
66
87
|
var _a, _b;
|
|
@@ -214,8 +214,7 @@ class ConversationScroller {
|
|
|
214
214
|
return;
|
|
215
215
|
}
|
|
216
216
|
const distance = view.scrollHeight - top - view.clientHeight;
|
|
217
|
-
// More than a screen up with the thread as it was
|
|
218
|
-
// WebKit the view put back to the top while the steps of a turn fold into its reply, the event after.
|
|
217
|
+
// More than a screen up: with the thread as it was, a search; as it changed, WebKit's reset as a turn's steps fold.
|
|
219
218
|
const searched = -moved > view.clientHeight && view.scrollHeight === this.extent;
|
|
220
219
|
if (distance < 1) {
|
|
221
220
|
this.following = true;
|
|
@@ -226,6 +225,9 @@ class ConversationScroller {
|
|
|
226
225
|
this.following = false;
|
|
227
226
|
this.chasing = false;
|
|
228
227
|
}
|
|
228
|
+
else if (this.following && -moved > view.clientHeight) {
|
|
229
|
+
this.moveTo(top - moved); // WebKit's, undone at once: else the view glides down from a screen short of the end.
|
|
230
|
+
}
|
|
229
231
|
else if (moved >= 1 && distance < frame_1.FrameUtil.STICK_PX) {
|
|
230
232
|
this.following = true;
|
|
231
233
|
}
|
|
@@ -324,6 +326,10 @@ class ConversationScroller {
|
|
|
324
326
|
this.endLater();
|
|
325
327
|
}
|
|
326
328
|
}
|
|
329
|
+
else if (this.room > 0) {
|
|
330
|
+
// The message no longer holds the top (the user moved the view): its answer still fills the room as it grows.
|
|
331
|
+
this.makeRoom(conversation_scroll_util_1.ScrollUtil.roomLeft(this.thread.children, view.clientHeight, this.thread.offsetHeight, this.room));
|
|
332
|
+
}
|
|
327
333
|
if (this.heading !== undefined) {
|
|
328
334
|
return;
|
|
329
335
|
}
|
|
@@ -357,19 +363,12 @@ class ConversationScroller {
|
|
|
357
363
|
* message to the next row; the view would else go to the top of the thread.
|
|
358
364
|
*/
|
|
359
365
|
sentRow() {
|
|
360
|
-
var _a;
|
|
361
366
|
const sent = this.sent;
|
|
362
367
|
if (!(sent === null || sent === void 0 ? void 0 : sent.isConnected) || sent.classList.contains(conversation_scroll_util_1.ASK_CLASS)) {
|
|
363
368
|
return (sent === null || sent === void 0 ? void 0 : sent.isConnected) ? sent : undefined;
|
|
364
369
|
}
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
if ((_a = rows[index].classList) === null || _a === void 0 ? void 0 : _a.contains(conversation_scroll_util_1.ASK_CLASS)) {
|
|
368
|
-
this.sent = rows[index];
|
|
369
|
-
return rows[index];
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
return undefined;
|
|
370
|
+
this.sent = conversation_scroll_util_1.ScrollUtil.lastAsk(this.thread.children);
|
|
371
|
+
return this.sent;
|
|
373
372
|
}
|
|
374
373
|
/** Where the view goes for the message sent to be at its top, with the room under the thread for that. */
|
|
375
374
|
place(message) {
|
|
@@ -19,9 +19,10 @@ export interface DiscoverViewProps {
|
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* Discover, as in a messaging app: the pages the navigation has no room for, or that the user put here, then those
|
|
22
|
-
* of extensions started on open, in cards by what they are for (WebView.group
|
|
23
|
-
*
|
|
24
|
-
* navigation. Scan, where the app has a camera, comes
|
|
22
|
+
* of extensions started on open, in cards by what they are for (WebView.group, `pi.group` of a package started on
|
|
23
|
+
* open; DISCOVER_GROUPS): people, what Ta does for the user, what is shared, Ta itself, play, the rest. A row opens
|
|
24
|
+
* its page; its menu (a right click, a held finger) puts it in the navigation. Scan, where the app has a camera, comes
|
|
25
|
+
* first, as in WeChat.
|
|
25
26
|
*/
|
|
26
27
|
export declare function DiscoverView({ pages, onOpenPages, onOpen, onPin, onSettings, onScan, leading }: DiscoverViewProps): React.JSX.Element;
|
|
27
28
|
//# sourceMappingURL=discover-view.d.ts.map
|
|
@@ -45,9 +45,10 @@ const list_rows_1 = require("./list-rows");
|
|
|
45
45
|
const nav_places_1 = require("./nav-places");
|
|
46
46
|
/**
|
|
47
47
|
* Discover, as in a messaging app: the pages the navigation has no room for, or that the user put here, then those
|
|
48
|
-
* of extensions started on open, in cards by what they are for (WebView.group
|
|
49
|
-
*
|
|
50
|
-
* navigation. Scan, where the app has a camera, comes
|
|
48
|
+
* of extensions started on open, in cards by what they are for (WebView.group, `pi.group` of a package started on
|
|
49
|
+
* open; DISCOVER_GROUPS): people, what Ta does for the user, what is shared, Ta itself, play, the rest. A row opens
|
|
50
|
+
* its page; its menu (a right click, a held finger) puts it in the navigation. Scan, where the app has a camera, comes
|
|
51
|
+
* first, as in WeChat.
|
|
51
52
|
*/
|
|
52
53
|
function DiscoverView({ pages, onOpenPages, onOpen, onPin, onSettings, onScan, leading }) {
|
|
53
54
|
const t = (0, use_t_1.useT)();
|
|
@@ -55,7 +56,7 @@ function DiscoverView({ pages, onOpenPages, onOpen, onPin, onSettings, onScan, l
|
|
|
55
56
|
const [menu, openMenu] = (0, context_menu_1.useContextMenu)();
|
|
56
57
|
const entries = [
|
|
57
58
|
...pages.map(page => ({ kind: 'page', page, group: page.group })),
|
|
58
|
-
...onOpenPages.map(page => ({ kind: 'open', page, group:
|
|
59
|
+
...onOpenPages.map(page => ({ kind: 'open', page, group: page.group })),
|
|
59
60
|
];
|
|
60
61
|
const row = (entry) => {
|
|
61
62
|
var _a, _b;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare namespace EmojiPanelUtil {
|
|
3
|
+
/** The faces and signs most said in a chat, as WeChat's panel puts them first. */
|
|
4
|
+
const EMOJIS: readonly string[];
|
|
5
|
+
/** The text with the emoji at the caret, right against what is there: no space put before it. */
|
|
6
|
+
function insert(text: string, caret: number, emoji: string): [string, number];
|
|
7
|
+
/** The text with the last character before the caret taken out, an emoji of the panel (with its selector) as one. */
|
|
8
|
+
function deleteBack(text: string, caret: number): [string, number];
|
|
9
|
+
}
|
|
10
|
+
export interface EmojiPanelProps {
|
|
11
|
+
onPick(emoji: string): void;
|
|
12
|
+
/** On a phone: a panel under the box in place of the keyboard, with Delete and Send, as WeChat's; else a popover above the button. */
|
|
13
|
+
docked?: boolean;
|
|
14
|
+
/** Going: a docked panel folds away, then `onClosed`. */
|
|
15
|
+
closing?: boolean;
|
|
16
|
+
onClosed?(): void;
|
|
17
|
+
onDelete?(): void;
|
|
18
|
+
onSend?(): void;
|
|
19
|
+
sendable?: boolean;
|
|
20
|
+
}
|
|
21
|
+
/** The emoji of the message box: a tap puts one where the caret is. */
|
|
22
|
+
export declare const EmojiPanel: React.ForwardRefExoticComponent<EmojiPanelProps & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
+
//# sourceMappingURL=emoji-panel.d.ts.map
|
|
@@ -0,0 +1,90 @@
|
|
|
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.EmojiPanel = exports.EmojiPanelUtil = void 0;
|
|
37
|
+
const lucide_react_1 = require("lucide-react");
|
|
38
|
+
const React = __importStar(require("react"));
|
|
39
|
+
const use_t_1 = require("../i18n/use-t");
|
|
40
|
+
const icon_1 = require("./icon");
|
|
41
|
+
var EmojiPanelUtil;
|
|
42
|
+
(function (EmojiPanelUtil) {
|
|
43
|
+
/** The faces and signs most said in a chat, as WeChat's panel puts them first. */
|
|
44
|
+
EmojiPanelUtil.EMOJIS = Array.from('๐๐๐๐คฃ๐๐๐
๐๐๐๐๐๐๐๐ฅฐ๐๐๐ค๐คฉ๐ค๐คจ๐๐๐ถ๐๐๐ฃ๐ฅ๐ฎ๐ค๐ฏ๐ช๐ซ๐ฅฑ๐ด๐๐๐๐๐คค๐๐๐๐๐๐ซ ๐ค๐ฒ๐๐๐๐๐ค๐ข๐ญ๐ฆ๐ง๐จ๐ฉ๐คฏ๐ฌ๐ฐ๐ฑ๐ฅต๐ฅถ๐ณ๐คช๐ต๐ก๐ ๐คฌ๐ท๐ค๐ค๐คข๐คฎ๐ฅด๐๐ฅณ๐ฅบ๐ค ๐คก๐ค๐ง๐๐ป๐๐ค๐๐บ๐๐๐โ๏ธ๐ค๐ค๐ค๐ค๐๐๐๐ค๐๐ช๐๐โ๐โค๏ธ๐งก๐๐๐๐๐ค๐ค๐๐ฏ๐ข๐ฅ๐ซ๐ฆ๐จ๐ฅโจ๐๐๐๐๐น๐ธ๐๐โญ๐โ๐บ๐ป๐๐ฐ๐๐ถ๐ฑ๐ผ๐ฆ๐๐ก๐ฐ๐โ
โโโ').reduce((list, char) => {
|
|
45
|
+
// A variation selector belongs to the sign before it.
|
|
46
|
+
if (char === '\uFE0F' && list.length) {
|
|
47
|
+
list[list.length - 1] += char;
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
list.push(char);
|
|
51
|
+
}
|
|
52
|
+
return list;
|
|
53
|
+
}, []);
|
|
54
|
+
/** The text with the emoji at the caret, right against what is there: no space put before it. */
|
|
55
|
+
function insert(text, caret, emoji) {
|
|
56
|
+
return [text.slice(0, caret) + emoji + text.slice(caret), caret + emoji.length];
|
|
57
|
+
}
|
|
58
|
+
EmojiPanelUtil.insert = insert;
|
|
59
|
+
/** The text with the last character before the caret taken out, an emoji of the panel (with its selector) as one. */
|
|
60
|
+
function deleteBack(text, caret) {
|
|
61
|
+
var _a, _b;
|
|
62
|
+
const before = text.slice(0, caret);
|
|
63
|
+
if (!before) {
|
|
64
|
+
return [text, caret];
|
|
65
|
+
}
|
|
66
|
+
const last = (_b = (_a = EmojiPanelUtil.EMOJIS.find(emoji => emoji.length > 1 && before.endsWith(emoji))) !== null && _a !== void 0 ? _a : Array.from(before).pop()) !== null && _b !== void 0 ? _b : '';
|
|
67
|
+
const at = caret - last.length;
|
|
68
|
+
return [text.slice(0, at) + text.slice(caret), at];
|
|
69
|
+
}
|
|
70
|
+
EmojiPanelUtil.deleteBack = deleteBack;
|
|
71
|
+
})(EmojiPanelUtil || (exports.EmojiPanelUtil = EmojiPanelUtil = {}));
|
|
72
|
+
/** The emoji of the message box: a tap puts one where the caret is. */
|
|
73
|
+
exports.EmojiPanel = React.forwardRef(function EmojiPanel({ onPick, docked, closing, onClosed, onDelete, onSend, sendable }, ref) {
|
|
74
|
+
const t = (0, use_t_1.useT)();
|
|
75
|
+
const grid = (React.createElement("div", { className: "ta-emoji-grid", role: "listbox", "aria-label": t('ta.composer.emoji') }, EmojiPanelUtil.EMOJIS.map(emoji => (React.createElement("button", { key: emoji, type: "button", role: "option", "aria-selected": false, className: "ta-emoji",
|
|
76
|
+
// The field keeps the caret (and on a computer the focus) while one is picked.
|
|
77
|
+
onPointerDown: event => event.preventDefault(), onClick: () => onPick(emoji) }, emoji)))));
|
|
78
|
+
if (!docked) {
|
|
79
|
+
return (React.createElement("div", { ref: ref, className: "ta-emoji-pop" }, grid));
|
|
80
|
+
}
|
|
81
|
+
return (React.createElement("div", { ref: ref, className: `ta-plus-dock${closing ? ' ta-closing' : ''}`, onAnimationEnd: event => closing && event.target === event.currentTarget && (onClosed === null || onClosed === void 0 ? void 0 : onClosed()) },
|
|
82
|
+
React.createElement("div", { className: "ta-plus-dock-inner" },
|
|
83
|
+
React.createElement("div", { className: "ta-emoji-panel" },
|
|
84
|
+
grid,
|
|
85
|
+
React.createElement("div", { className: "ta-emoji-keys" },
|
|
86
|
+
React.createElement("button", { type: "button", className: "ta-emoji-key", "aria-label": t('ta.composer.deleteBack'), onClick: onDelete },
|
|
87
|
+
React.createElement(icon_1.Icon, { icon: lucide_react_1.Delete, size: 20 })),
|
|
88
|
+
React.createElement("button", { type: "button", className: "ta-emoji-key ta-emoji-send", disabled: !sendable, onClick: onSend }, t('ta.send')))))));
|
|
89
|
+
});
|
|
90
|
+
//# sourceMappingURL=emoji-panel.js.map
|
|
@@ -36,6 +36,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
36
36
|
exports.Gallery = Gallery;
|
|
37
37
|
const lucide_react_1 = require("lucide-react");
|
|
38
38
|
const React = __importStar(require("react"));
|
|
39
|
+
const react_dom_1 = require("react-dom");
|
|
39
40
|
const use_t_1 = require("../i18n/use-t");
|
|
40
41
|
const gallery_1 = require("../util/gallery");
|
|
41
42
|
const thumbnail_1 = require("../util/thumbnail");
|
|
@@ -68,6 +69,30 @@ function Tile({ url, picture, more, onOpen, onMenu, onShape, }) {
|
|
|
68
69
|
"+",
|
|
69
70
|
more)));
|
|
70
71
|
}
|
|
72
|
+
/** The galleries drawn and not measured yet, with what each is told. */
|
|
73
|
+
const measuring = new Map();
|
|
74
|
+
function roomOf(box) {
|
|
75
|
+
return { width: box.clientWidth, gap: Number.parseFloat(getComputedStyle(box).rowGap) || 0 };
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Tells `set` how wide `box` is, with the others drawn with it, before the page shows them: measured one by one as
|
|
79
|
+
* each is drawn, each would lay out the page again, which the one before changed; together, it is laid out once.
|
|
80
|
+
*/
|
|
81
|
+
function measureGallery(box, set) {
|
|
82
|
+
if (!measuring.size) {
|
|
83
|
+
queueMicrotask(() => {
|
|
84
|
+
const galleries = [...measuring].filter(([one]) => one.isConnected);
|
|
85
|
+
measuring.clear();
|
|
86
|
+
const rooms = galleries.map(([one]) => roomOf(one));
|
|
87
|
+
(0, react_dom_1.flushSync)(() => {
|
|
88
|
+
for (const [index, [, tell]] of galleries.entries()) {
|
|
89
|
+
tell(rooms[index]);
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
measuring.set(box, set);
|
|
95
|
+
}
|
|
71
96
|
/**
|
|
72
97
|
* Pictures of a reply shown together (GalleryUtil): in rows as wide as the reply, each whole in its shape, the words
|
|
73
98
|
* that name each under it, and a click on one opens it over the page, where โ โ and its side buttons go through all.
|
|
@@ -87,13 +112,9 @@ function Gallery({ items }) {
|
|
|
87
112
|
if (!box) {
|
|
88
113
|
return;
|
|
89
114
|
}
|
|
90
|
-
const
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
setRoom(room => (room.width === width && room.gap === gap ? room : { width, gap }));
|
|
94
|
-
};
|
|
95
|
-
measure();
|
|
96
|
-
const observer = new ResizeObserver(measure);
|
|
115
|
+
const take = (next) => setRoom(room => (room.width === next.width && room.gap === next.gap ? room : next));
|
|
116
|
+
measureGallery(box, take);
|
|
117
|
+
const observer = new ResizeObserver(() => take(roomOf(box)));
|
|
97
118
|
observer.observe(box);
|
|
98
119
|
return () => observer.disconnect();
|
|
99
120
|
}, []);
|