@celljs/ta-web 4.15.2 → 4.17.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-ask-book.d.ts +35 -0
- package/esm/browser/assistant/assistant-ask-book.js +96 -0
- package/esm/browser/assistant/assistant-conversation.d.ts +110 -0
- package/esm/browser/assistant/assistant-conversation.js +351 -0
- package/esm/browser/assistant/assistant-export.js +6 -7
- package/esm/browser/assistant/assistant-extension.d.ts +3 -2
- package/esm/browser/assistant/assistant-extension.js +57 -4
- package/esm/browser/assistant/assistant-protocol.d.ts +17 -2
- package/esm/browser/assistant/assistant-role.d.ts +22 -4
- package/esm/browser/assistant/assistant-role.js +29 -7
- package/esm/browser/assistant/assistant-state.d.ts +5 -1
- package/esm/browser/assistant/assistant-state.js +11 -0
- package/esm/browser/assistant/assistant-task-source.js +7 -1
- package/esm/browser/assistant/assistant-task-util.d.ts +19 -7
- package/esm/browser/assistant/assistant-task-util.js +73 -20
- package/esm/browser/assistant/assistant-tasks.d.ts +0 -7
- package/esm/browser/assistant/assistant-tasks.js +0 -2
- package/esm/browser/assistant/assistant-thread.d.ts +22 -0
- package/esm/browser/assistant/assistant-thread.js +108 -0
- package/esm/browser/assistant/assistant-view.js +77 -126
- package/esm/browser/assistant/assistant.d.ts +33 -105
- package/esm/browser/assistant/assistant.js +103 -356
- package/esm/browser/assistant/chat-task-source.d.ts +58 -0
- package/esm/browser/assistant/chat-task-source.js +107 -0
- package/esm/browser/assistant/read-aloud.d.ts +34 -0
- package/esm/browser/assistant/read-aloud.js +98 -0
- package/esm/browser/assistant/realtime-voice.d.ts +77 -0
- package/esm/browser/assistant/realtime-voice.js +320 -0
- package/esm/browser/assistant/task-views.d.ts +2 -3
- package/esm/browser/assistant/task-views.js +20 -16
- package/esm/browser/assistant/voice-call-bar.d.ts +60 -0
- package/esm/browser/assistant/voice-call-bar.js +260 -0
- package/esm/browser/assistant/voice-call.d.ts +175 -0
- package/esm/browser/assistant/voice-call.js +366 -0
- package/esm/browser/chat/chat-shown.d.ts +78 -0
- package/esm/browser/chat/chat-shown.js +262 -0
- package/esm/browser/chat/chat-view.js +2 -1
- package/esm/browser/chat/chat.d.ts +4 -68
- package/esm/browser/chat/chat.js +5 -253
- package/esm/browser/chat/draft-model.d.ts +1 -1
- package/esm/browser/components/access-view.js +1 -1
- package/esm/browser/components/account-menu.js +1 -1
- package/esm/browser/components/app-nav.d.ts +3 -1
- package/esm/browser/components/app-nav.js +7 -7
- package/esm/browser/components/app-shell-hooks.d.ts +11 -2
- package/esm/browser/components/app-shell-hooks.js +25 -4
- package/esm/browser/components/app-shell-state.d.ts +80 -0
- package/esm/browser/components/app-shell-state.js +466 -0
- package/esm/browser/components/app-view.js +128 -334
- package/esm/browser/components/asks-badge.d.ts +6 -2
- package/esm/browser/components/asks-badge.js +7 -3
- package/esm/browser/components/auth-pictures.d.ts +2 -2
- package/esm/browser/components/auth-pictures.js +13 -1
- package/esm/browser/components/auth-view.d.ts +4 -3
- package/esm/browser/components/auth-view.js +54 -5
- package/esm/browser/components/chat-asks.d.ts +2 -0
- package/esm/browser/components/chat-asks.js +8 -0
- package/esm/browser/components/chat-busy.d.ts +32 -0
- package/esm/browser/components/chat-busy.js +49 -0
- package/esm/browser/components/chat-icon.d.ts +6 -0
- package/esm/browser/components/chat-icon.js +17 -1
- package/esm/browser/components/chat-list-row.d.ts +84 -0
- package/esm/browser/components/chat-list-row.js +198 -0
- package/esm/browser/components/chat-list-util.d.ts +166 -0
- package/esm/browser/components/chat-list-util.js +335 -0
- package/esm/browser/components/chat-list.d.ts +11 -148
- package/esm/browser/components/chat-list.js +280 -511
- package/esm/browser/components/chat-seen.d.ts +7 -0
- package/esm/browser/components/chat-seen.js +58 -10
- package/esm/browser/components/composer-addon-util.d.ts +1 -1
- package/esm/browser/components/composer-addons.d.ts +1 -1
- package/esm/browser/components/composer-attachments.d.ts +11 -0
- package/esm/browser/components/composer-attachments.js +27 -0
- package/esm/browser/components/composer-box-hooks.d.ts +9 -0
- package/esm/browser/components/composer-box-hooks.js +138 -0
- package/esm/browser/components/composer-box-protocol.d.ts +108 -0
- package/esm/browser/components/composer-box-protocol.js +2 -0
- package/esm/browser/components/composer-box.d.ts +1 -95
- package/esm/browser/components/composer-box.js +49 -156
- package/esm/browser/components/composer-target.d.ts +21 -0
- package/esm/browser/components/composer-target.js +43 -0
- package/esm/browser/components/composer.d.ts +7 -1
- package/esm/browser/components/composer.js +13 -9
- package/esm/browser/components/context-menu.js +4 -0
- package/esm/browser/components/conversation-find.d.ts +27 -0
- package/esm/browser/components/conversation-find.js +151 -0
- package/esm/browser/components/conversation-scroll-hooks.js +2 -1
- package/esm/browser/components/conversation-scroll-util.d.ts +73 -0
- package/esm/browser/components/conversation-scroll-util.js +80 -0
- package/esm/browser/components/conversation-scroll.d.ts +1 -35
- package/esm/browser/components/conversation-scroll.js +2 -81
- package/esm/browser/components/conversation-view.d.ts +8 -0
- package/esm/browser/components/conversation-view.js +41 -0
- package/esm/browser/components/discover-view.d.ts +3 -2
- package/esm/browser/components/discover-view.js +31 -26
- package/esm/browser/components/dismiss.js +2 -0
- package/esm/browser/components/earlier-messages.d.ts +2 -0
- package/esm/browser/components/earlier-messages.js +2 -1
- package/esm/browser/components/environment-view.js +50 -1
- package/esm/browser/components/folder-picker.d.ts +7 -0
- package/esm/browser/components/folder-picker.js +90 -20
- package/esm/browser/components/gallery.d.ts +1 -1
- package/esm/browser/components/gallery.js +57 -14
- package/esm/browser/components/host-tag.js +2 -2
- package/esm/browser/components/host-view.d.ts +1 -1
- package/esm/browser/components/host-view.js +3 -1
- package/esm/browser/components/image-menu.d.ts +11 -0
- package/esm/browser/components/image-menu.js +29 -0
- package/esm/browser/components/image-viewer.d.ts +3 -2
- package/esm/browser/components/image-viewer.js +29 -4
- package/esm/browser/components/lightbox.js +2 -0
- package/esm/browser/components/link-dialog.js +2 -0
- package/esm/browser/components/list-rows.d.ts +3 -1
- package/esm/browser/components/list-rows.js +2 -1
- package/esm/browser/components/markdown.js +5 -0
- package/esm/browser/components/media.d.ts +2 -0
- package/esm/browser/components/media.js +16 -1
- package/esm/browser/components/message-actions.d.ts +1 -1
- package/esm/browser/components/message-actions.js +9 -0
- package/esm/browser/components/message-footer.d.ts +3 -1
- package/esm/browser/components/message-footer.js +3 -2
- package/esm/browser/components/message-images.d.ts +41 -0
- package/esm/browser/components/message-images.js +120 -0
- package/esm/browser/components/message-list.d.ts +4 -100
- package/esm/browser/components/message-list.js +10 -447
- package/esm/browser/components/message-menu.js +4 -0
- package/esm/browser/components/message-steps.d.ts +21 -0
- package/esm/browser/components/message-steps.js +182 -0
- package/esm/browser/components/message-user.d.ts +54 -0
- package/esm/browser/components/message-user.js +169 -0
- package/esm/browser/components/model-picker.d.ts +1 -1
- package/esm/browser/components/model-picker.js +2 -0
- package/esm/browser/components/moved-notice.d.ts +14 -0
- package/esm/browser/components/moved-notice.js +60 -0
- package/esm/browser/components/nav-places.d.ts +12 -1
- package/esm/browser/components/nav-places.js +10 -2
- package/esm/browser/components/notice-center.js +36 -1
- package/esm/browser/components/notice-face.js +2 -1
- package/esm/browser/components/phone-shell.d.ts +4 -3
- package/esm/browser/components/phone-shell.js +60 -68
- package/esm/browser/components/plus-menu.d.ts +1 -1
- package/esm/browser/components/relay-services.d.ts +6 -1
- package/esm/browser/components/relay-services.js +109 -2
- package/esm/browser/components/relay-view.js +2 -0
- package/esm/browser/components/remote-hosts.d.ts +10 -0
- package/esm/browser/components/remote-hosts.js +67 -5
- package/esm/browser/components/remote-prompts.js +2 -0
- package/esm/browser/components/scan-screen.js +7 -0
- package/esm/browser/components/screen-navigator-util.d.ts +28 -0
- package/esm/browser/components/screen-navigator-util.js +33 -0
- package/esm/browser/components/screen-navigator.d.ts +30 -0
- package/esm/browser/components/screen-navigator.js +47 -0
- package/esm/browser/components/session-settings.d.ts +1 -1
- package/esm/browser/components/session-view.js +157 -7
- package/esm/browser/components/settings-choices.d.ts +6 -0
- package/esm/browser/components/settings-choices.js +8 -0
- package/esm/browser/components/settings-more.d.ts +7 -0
- package/esm/browser/components/settings-more.js +263 -0
- package/esm/browser/components/settings-parts.d.ts +8 -3
- package/esm/browser/components/settings-parts.js +31 -249
- package/esm/browser/components/settings-view.js +43 -15
- package/esm/browser/components/stop-times.js +1 -0
- package/esm/browser/components/surface-flyout.js +2 -0
- package/esm/browser/components/unseen-drop.d.ts +10 -4
- package/esm/browser/components/unseen-drop.js +9 -8
- package/esm/browser/components/use-seen-chats.js +1 -1
- package/esm/browser/components/voice-services.d.ts +6 -0
- package/esm/browser/components/voice-services.js +137 -0
- package/esm/browser/components/voice-talk.d.ts +23 -6
- package/esm/browser/components/voice-talk.js +46 -11
- package/esm/browser/components/web-composer.d.ts +1 -1
- package/esm/browser/components/web-composer.js +2 -2
- package/esm/browser/components/web-dialog.js +2 -0
- package/esm/browser/device/back-stack.d.ts +89 -11
- package/esm/browser/device/back-stack.js +200 -29
- package/esm/browser/device/device-protocol.d.ts +1 -1
- package/esm/browser/device/device-protocol.js +1 -1
- package/esm/browser/device/own-gestures.d.ts +1 -1
- package/esm/browser/device/pull-down.js +3 -1
- package/esm/browser/device/row-swipe.js +3 -1
- package/esm/browser/device/sheet-swipe.d.ts +1 -179
- package/esm/browser/device/sheet-swipe.js +3 -433
- package/esm/browser/device/swipe-finger.d.ts +31 -0
- package/esm/browser/device/swipe-finger.js +83 -0
- package/esm/browser/device/swipe-settle.d.ts +52 -0
- package/esm/browser/device/swipe-settle.js +170 -0
- package/esm/browser/device/swipe-util.d.ts +97 -0
- package/esm/browser/device/swipe-util.js +183 -0
- package/esm/browser/drafts/drafts-protocol.d.ts +58 -0
- package/esm/browser/drafts/drafts-protocol.js +75 -0
- package/esm/browser/drafts/drafts.d.ts +21 -0
- package/esm/browser/drafts/drafts.js +91 -0
- package/esm/browser/drafts/use-composer-draft.d.ts +20 -0
- package/esm/browser/drafts/use-composer-draft.js +108 -0
- package/esm/browser/extension/icons.js +25 -4
- package/esm/browser/extension/web-api-components.d.ts +13 -0
- package/esm/browser/extension/web-api-contributions.d.ts +125 -0
- package/esm/browser/extension/web-extension-api.d.ts +88 -5
- package/esm/browser/extension/web-extension-context.d.ts +5 -0
- package/esm/browser/extension/web-extension-context.js +60 -7
- package/esm/browser/extension/web-extension-protocol.d.ts +19 -1
- package/esm/browser/extension/web-extension-protocol.js +3 -0
- package/esm/browser/extension/web-extension-run.d.ts +5 -2
- package/esm/browser/extension/web-extension-run.js +13 -1
- package/esm/browser/extension/web-extensions-running.d.ts +93 -0
- package/esm/browser/extension/web-extensions-running.js +339 -0
- package/esm/browser/extension/web-extensions.d.ts +6 -82
- package/esm/browser/extension/web-extensions.js +10 -319
- package/esm/browser/extension/web-pages.js +1 -0
- package/esm/browser/extension/web-session-notices.js +6 -1
- package/esm/browser/extension/web-tasks.d.ts +2 -0
- package/esm/browser/extension/web-tasks.js +6 -0
- package/esm/browser/extension/web-view-util.d.ts +2 -1
- package/esm/browser/extension/web-view-util.js +4 -1
- package/esm/browser/gateway/console-parts.d.ts +4 -12
- package/esm/browser/gateway/console-parts.js +42 -125
- package/esm/browser/gateway/console-tenant.js +3 -2
- package/esm/browser/gateway/console-trend.d.ts +11 -0
- package/esm/browser/gateway/console-trend.js +115 -0
- package/esm/browser/gateway/console-util.js +2 -2
- package/esm/browser/gateway/console-view.js +49 -3
- package/esm/browser/i18n/locales.d.ts +170 -6
- package/esm/browser/i18n/messages-ja.js +171 -7
- package/esm/browser/i18n/messages-zh-tw.js +171 -7
- package/esm/browser/i18n/messages.d.ts +167 -3
- package/esm/browser/i18n/messages.js +342 -14
- package/esm/browser/index.d.ts +17 -0
- package/esm/browser/index.js +17 -0
- package/esm/browser/notices/notices-protocol.d.ts +12 -0
- package/esm/browser/notices/notices.js +7 -4
- package/esm/browser/offline/device-values.d.ts +2 -0
- package/esm/browser/offline/device-values.js +6 -1
- package/esm/browser/screen/page-answers.d.ts +42 -0
- package/esm/browser/screen/page-answers.js +89 -0
- package/esm/browser/screen/screen-protocol.d.ts +112 -0
- package/esm/browser/screen/screen-protocol.js +45 -0
- package/esm/browser/screen/screen.d.ts +20 -0
- package/esm/browser/screen/screen.js +122 -0
- package/esm/browser/screen/use-screen-part.d.ts +6 -0
- package/esm/browser/screen/use-screen-part.js +14 -0
- package/esm/browser/settings/settings-protocol.d.ts +5 -1
- package/esm/browser/settings/settings-protocol.js +6 -2
- package/esm/browser/share/shared-extensions.d.ts +29 -0
- package/esm/browser/share/shared-extensions.js +145 -0
- package/esm/browser/share/shared-link.d.ts +11 -0
- package/esm/browser/share/shared-link.js +38 -0
- package/esm/browser/share/shared-page.d.ts +5 -0
- package/esm/browser/share/shared-page.js +137 -0
- package/esm/browser/state/state-protocol.d.ts +14 -0
- package/esm/browser/state/state-protocol.js +18 -0
- package/esm/browser/state/state.d.ts +10 -2
- package/esm/browser/state/state.js +19 -3
- package/esm/browser/style/base.d.ts +1 -1
- package/esm/browser/style/base.js +4 -0
- package/esm/browser/style/chat-list.d.ts +2 -0
- package/esm/browser/style/chat-list.js +153 -0
- package/esm/browser/style/conversation-column.d.ts +2 -0
- package/esm/browser/style/conversation-column.js +250 -0
- package/esm/browser/style/conversation.d.ts +1 -1
- package/esm/browser/style/conversation.js +24 -8
- package/esm/browser/style/dialogs.d.ts +2 -0
- package/esm/browser/style/dialogs.js +163 -0
- package/esm/browser/style/layout.d.ts +2 -2
- package/esm/browser/style/layout.js +1 -525
- package/esm/browser/style/pages.d.ts +1 -1
- package/esm/browser/style/pages.js +10 -3
- package/esm/browser/style/phone.d.ts +1 -1
- package/esm/browser/style/phone.js +6 -2
- package/esm/browser/style/shared.d.ts +2 -0
- package/esm/browser/style/shared.js +23 -0
- package/esm/browser/style/shell.d.ts +1 -1
- package/esm/browser/style/shell.js +47 -0
- package/esm/browser/style/tasks.d.ts +1 -1
- package/esm/browser/style/tasks.js +13 -8
- package/esm/browser/style.js +8 -0
- package/esm/browser/util/gallery.d.ts +24 -2
- package/esm/browser/util/gallery.js +82 -2
- package/esm/browser/util/image-copy.d.ts +16 -0
- package/esm/browser/util/image-copy.js +57 -0
- package/esm/browser/util/message.d.ts +5 -0
- package/esm/browser/util/message.js +14 -0
- package/esm/browser/util/process.d.ts +6 -2
- package/esm/browser/util/process.js +6 -2
- package/esm/browser/util/spoken.d.ts +24 -0
- package/esm/browser/util/spoken.js +83 -0
- package/esm/browser/util/transcript.d.ts +22 -0
- package/esm/browser/util/transcript.js +46 -0
- package/esm/browser/util/voice.d.ts +5 -1
- package/esm/browser/util/voice.js +6 -1
- package/esm/browser/workbench-hosts.d.ts +36 -0
- package/esm/browser/workbench-hosts.js +120 -0
- package/esm/browser/workbench-lists.d.ts +33 -0
- package/esm/browser/workbench-lists.js +128 -0
- package/esm/browser/workbench-protocol.d.ts +14 -1
- package/esm/browser/workbench-services.d.ts +49 -0
- package/esm/browser/workbench-services.js +120 -0
- package/esm/browser/workbench-util.d.ts +1 -1
- package/esm/browser/workbench.d.ts +6 -89
- package/esm/browser/workbench.js +26 -336
- package/lib/browser/assistant/assistant-ask-book.d.ts +36 -0
- package/lib/browser/assistant/assistant-ask-book.js +100 -0
- package/lib/browser/assistant/assistant-conversation.d.ts +111 -0
- package/lib/browser/assistant/assistant-conversation.js +355 -0
- package/lib/browser/assistant/assistant-export.js +6 -7
- package/lib/browser/assistant/assistant-extension.d.ts +3 -2
- package/lib/browser/assistant/assistant-extension.js +55 -2
- package/lib/browser/assistant/assistant-protocol.d.ts +17 -2
- package/lib/browser/assistant/assistant-role.d.ts +22 -4
- package/lib/browser/assistant/assistant-role.js +30 -8
- package/lib/browser/assistant/assistant-state.d.ts +5 -1
- package/lib/browser/assistant/assistant-state.js +11 -0
- package/lib/browser/assistant/assistant-task-source.js +7 -1
- package/lib/browser/assistant/assistant-task-util.d.ts +19 -7
- package/lib/browser/assistant/assistant-task-util.js +73 -20
- package/lib/browser/assistant/assistant-tasks.d.ts +0 -7
- package/lib/browser/assistant/assistant-tasks.js +1 -3
- package/lib/browser/assistant/assistant-thread.d.ts +23 -0
- package/lib/browser/assistant/assistant-thread.js +144 -0
- package/lib/browser/assistant/assistant-view.js +74 -123
- package/lib/browser/assistant/assistant.d.ts +33 -105
- package/lib/browser/assistant/assistant.js +100 -353
- package/lib/browser/assistant/chat-task-source.d.ts +59 -0
- package/lib/browser/assistant/chat-task-source.js +111 -0
- package/lib/browser/assistant/read-aloud.d.ts +35 -0
- package/lib/browser/assistant/read-aloud.js +102 -0
- package/lib/browser/assistant/realtime-voice.d.ts +78 -0
- package/lib/browser/assistant/realtime-voice.js +324 -0
- package/lib/browser/assistant/task-views.d.ts +2 -3
- package/lib/browser/assistant/task-views.js +19 -15
- package/lib/browser/assistant/voice-call-bar.d.ts +61 -0
- package/lib/browser/assistant/voice-call-bar.js +306 -0
- package/lib/browser/assistant/voice-call.d.ts +176 -0
- package/lib/browser/assistant/voice-call.js +370 -0
- package/lib/browser/chat/chat-shown.d.ts +79 -0
- package/lib/browser/chat/chat-shown.js +266 -0
- package/lib/browser/chat/chat-view.js +2 -1
- package/lib/browser/chat/chat.d.ts +4 -68
- package/lib/browser/chat/chat.js +3 -251
- package/lib/browser/chat/draft-model.d.ts +1 -1
- package/lib/browser/components/access-view.js +2 -2
- package/lib/browser/components/account-menu.js +1 -1
- package/lib/browser/components/app-nav.d.ts +3 -1
- package/lib/browser/components/app-nav.js +7 -7
- package/lib/browser/components/app-shell-hooks.d.ts +11 -2
- package/lib/browser/components/app-shell-hooks.js +26 -5
- package/lib/browser/components/app-shell-state.d.ts +81 -0
- package/lib/browser/components/app-shell-state.js +502 -0
- package/lib/browser/components/app-view.js +120 -326
- package/lib/browser/components/asks-badge.d.ts +6 -2
- package/lib/browser/components/asks-badge.js +7 -3
- package/lib/browser/components/auth-pictures.d.ts +2 -2
- package/lib/browser/components/auth-pictures.js +13 -1
- package/lib/browser/components/auth-view.d.ts +4 -3
- package/lib/browser/components/auth-view.js +53 -4
- package/lib/browser/components/chat-asks.d.ts +2 -0
- package/lib/browser/components/chat-asks.js +8 -0
- package/lib/browser/components/chat-busy.d.ts +33 -0
- package/lib/browser/components/chat-busy.js +52 -0
- package/lib/browser/components/chat-icon.d.ts +6 -0
- package/lib/browser/components/chat-icon.js +17 -1
- package/lib/browser/components/chat-list-row.d.ts +85 -0
- package/lib/browser/components/chat-list-row.js +236 -0
- package/lib/browser/components/chat-list-util.d.ts +167 -0
- package/lib/browser/components/chat-list-util.js +338 -0
- package/lib/browser/components/chat-list.d.ts +11 -148
- package/lib/browser/components/chat-list.js +297 -530
- package/lib/browser/components/chat-seen.d.ts +7 -0
- package/lib/browser/components/chat-seen.js +58 -10
- package/lib/browser/components/composer-addon-util.d.ts +1 -1
- package/lib/browser/components/composer-addons.d.ts +1 -1
- package/lib/browser/components/composer-attachments.d.ts +12 -0
- package/lib/browser/components/composer-attachments.js +64 -0
- package/lib/browser/components/composer-box-hooks.d.ts +10 -0
- package/lib/browser/components/composer-box-hooks.js +178 -0
- package/lib/browser/components/composer-box-protocol.d.ts +109 -0
- package/lib/browser/components/composer-box-protocol.js +3 -0
- package/lib/browser/components/composer-box.d.ts +1 -95
- package/lib/browser/components/composer-box.js +51 -159
- package/lib/browser/components/composer-target.d.ts +22 -0
- package/lib/browser/components/composer-target.js +46 -0
- package/lib/browser/components/composer.d.ts +7 -1
- package/lib/browser/components/composer.js +15 -11
- package/lib/browser/components/context-menu.js +4 -0
- package/lib/browser/components/conversation-find.d.ts +28 -0
- package/lib/browser/components/conversation-find.js +188 -0
- package/lib/browser/components/conversation-scroll-hooks.js +3 -2
- package/lib/browser/components/conversation-scroll-util.d.ts +73 -0
- package/lib/browser/components/conversation-scroll-util.js +85 -1
- package/lib/browser/components/conversation-scroll.d.ts +1 -35
- package/lib/browser/components/conversation-scroll.js +20 -100
- package/lib/browser/components/conversation-view.d.ts +9 -0
- package/lib/browser/components/conversation-view.js +77 -0
- package/lib/browser/components/discover-view.d.ts +3 -2
- package/lib/browser/components/discover-view.js +30 -25
- package/lib/browser/components/dismiss.js +2 -0
- package/lib/browser/components/earlier-messages.d.ts +2 -0
- package/lib/browser/components/earlier-messages.js +2 -1
- package/lib/browser/components/environment-view.js +49 -0
- package/lib/browser/components/folder-picker.d.ts +7 -0
- package/lib/browser/components/folder-picker.js +89 -19
- package/lib/browser/components/gallery.d.ts +1 -1
- package/lib/browser/components/gallery.js +56 -13
- package/lib/browser/components/host-tag.js +1 -1
- package/lib/browser/components/host-view.d.ts +1 -1
- package/lib/browser/components/host-view.js +4 -2
- package/lib/browser/components/image-menu.d.ts +12 -0
- package/lib/browser/components/image-menu.js +65 -0
- package/lib/browser/components/image-viewer.d.ts +3 -2
- package/lib/browser/components/image-viewer.js +28 -3
- package/lib/browser/components/lightbox.js +2 -0
- package/lib/browser/components/link-dialog.js +2 -0
- package/lib/browser/components/list-rows.d.ts +3 -1
- package/lib/browser/components/list-rows.js +2 -1
- package/lib/browser/components/markdown.js +5 -0
- package/lib/browser/components/media.d.ts +2 -0
- package/lib/browser/components/media.js +17 -1
- package/lib/browser/components/message-actions.d.ts +1 -1
- package/lib/browser/components/message-actions.js +9 -0
- package/lib/browser/components/message-footer.d.ts +3 -1
- package/lib/browser/components/message-footer.js +2 -1
- package/lib/browser/components/message-images.d.ts +42 -0
- package/lib/browser/components/message-images.js +157 -0
- package/lib/browser/components/message-list.d.ts +4 -100
- package/lib/browser/components/message-list.js +11 -455
- package/lib/browser/components/message-menu.js +4 -0
- package/lib/browser/components/message-steps.d.ts +22 -0
- package/lib/browser/components/message-steps.js +218 -0
- package/lib/browser/components/message-user.d.ts +55 -0
- package/lib/browser/components/message-user.js +211 -0
- package/lib/browser/components/model-picker.d.ts +1 -1
- package/lib/browser/components/model-picker.js +2 -0
- package/lib/browser/components/moved-notice.d.ts +15 -0
- package/lib/browser/components/moved-notice.js +96 -0
- package/lib/browser/components/nav-places.d.ts +12 -1
- package/lib/browser/components/nav-places.js +12 -3
- package/lib/browser/components/notice-center.js +35 -0
- package/lib/browser/components/notice-face.js +7 -6
- package/lib/browser/components/phone-shell.d.ts +4 -3
- package/lib/browser/components/phone-shell.js +59 -67
- package/lib/browser/components/plus-menu.d.ts +1 -1
- package/lib/browser/components/relay-services.d.ts +6 -1
- package/lib/browser/components/relay-services.js +107 -0
- package/lib/browser/components/relay-view.js +2 -0
- package/lib/browser/components/remote-hosts.d.ts +10 -0
- package/lib/browser/components/remote-hosts.js +67 -4
- package/lib/browser/components/remote-prompts.js +2 -0
- package/lib/browser/components/scan-screen.js +7 -0
- package/lib/browser/components/screen-navigator-util.d.ts +29 -0
- package/lib/browser/components/screen-navigator-util.js +36 -0
- package/lib/browser/components/screen-navigator.d.ts +31 -0
- package/lib/browser/components/screen-navigator.js +83 -0
- package/lib/browser/components/session-settings.d.ts +1 -1
- package/lib/browser/components/session-view.js +157 -7
- package/lib/browser/components/settings-choices.d.ts +7 -1
- package/lib/browser/components/settings-choices.js +9 -1
- package/lib/browser/components/settings-more.d.ts +8 -0
- package/lib/browser/components/settings-more.js +299 -0
- package/lib/browser/components/settings-parts.d.ts +8 -3
- package/lib/browser/components/settings-parts.js +27 -245
- package/lib/browser/components/settings-view.js +43 -15
- package/lib/browser/components/stop-times.js +1 -0
- package/lib/browser/components/surface-flyout.js +2 -0
- package/lib/browser/components/unseen-drop.d.ts +10 -4
- package/lib/browser/components/unseen-drop.js +9 -8
- package/lib/browser/components/use-seen-chats.js +2 -2
- package/lib/browser/components/voice-services.d.ts +7 -0
- package/lib/browser/components/voice-services.js +173 -0
- package/lib/browser/components/voice-talk.d.ts +23 -6
- package/lib/browser/components/voice-talk.js +45 -10
- package/lib/browser/components/web-composer.d.ts +1 -1
- package/lib/browser/components/web-composer.js +2 -2
- package/lib/browser/components/web-dialog.js +2 -0
- package/lib/browser/device/back-stack.d.ts +89 -11
- package/lib/browser/device/back-stack.js +205 -31
- package/lib/browser/device/device-protocol.d.ts +1 -1
- package/lib/browser/device/device-protocol.js +1 -1
- package/lib/browser/device/own-gestures.d.ts +1 -1
- package/lib/browser/device/pull-down.js +8 -6
- package/lib/browser/device/row-swipe.js +11 -9
- package/lib/browser/device/sheet-swipe.d.ts +1 -179
- package/lib/browser/device/sheet-swipe.js +16 -452
- package/lib/browser/device/swipe-finger.d.ts +32 -0
- package/lib/browser/device/swipe-finger.js +87 -0
- package/lib/browser/device/swipe-settle.d.ts +53 -0
- package/lib/browser/device/swipe-settle.js +176 -0
- package/lib/browser/device/swipe-util.d.ts +98 -0
- package/lib/browser/device/swipe-util.js +187 -0
- package/lib/browser/drafts/drafts-protocol.d.ts +59 -0
- package/lib/browser/drafts/drafts-protocol.js +78 -0
- package/lib/browser/drafts/drafts.d.ts +22 -0
- package/lib/browser/drafts/drafts.js +94 -0
- package/lib/browser/drafts/use-composer-draft.d.ts +21 -0
- package/lib/browser/drafts/use-composer-draft.js +146 -0
- package/lib/browser/extension/icons.js +24 -3
- package/lib/browser/extension/web-api-components.d.ts +13 -0
- package/lib/browser/extension/web-api-contributions.d.ts +125 -0
- package/lib/browser/extension/web-extension-api.d.ts +88 -5
- package/lib/browser/extension/web-extension-context.d.ts +5 -0
- package/lib/browser/extension/web-extension-context.js +62 -9
- package/lib/browser/extension/web-extension-protocol.d.ts +19 -1
- package/lib/browser/extension/web-extension-protocol.js +3 -0
- package/lib/browser/extension/web-extension-run.d.ts +5 -2
- package/lib/browser/extension/web-extension-run.js +13 -1
- package/lib/browser/extension/web-extensions-running.d.ts +94 -0
- package/lib/browser/extension/web-extensions-running.js +343 -0
- package/lib/browser/extension/web-extensions.d.ts +6 -82
- package/lib/browser/extension/web-extensions.js +7 -316
- package/lib/browser/extension/web-pages.js +1 -0
- package/lib/browser/extension/web-session-notices.js +8 -3
- package/lib/browser/extension/web-tasks.d.ts +2 -0
- package/lib/browser/extension/web-tasks.js +6 -0
- package/lib/browser/extension/web-view-util.d.ts +2 -1
- package/lib/browser/extension/web-view-util.js +4 -1
- package/lib/browser/gateway/console-parts.d.ts +4 -12
- package/lib/browser/gateway/console-parts.js +42 -126
- package/lib/browser/gateway/console-tenant.js +3 -2
- package/lib/browser/gateway/console-trend.d.ts +12 -0
- package/lib/browser/gateway/console-trend.js +151 -0
- package/lib/browser/gateway/console-util.js +2 -2
- package/lib/browser/gateway/console-view.js +48 -2
- package/lib/browser/i18n/locales.d.ts +170 -6
- package/lib/browser/i18n/messages-ja.js +171 -7
- package/lib/browser/i18n/messages-zh-tw.js +171 -7
- package/lib/browser/i18n/messages.d.ts +167 -3
- package/lib/browser/i18n/messages.js +342 -14
- package/lib/browser/index.d.ts +17 -0
- package/lib/browser/index.js +17 -0
- package/lib/browser/notices/notices-protocol.d.ts +12 -0
- package/lib/browser/notices/notices.js +7 -4
- package/lib/browser/offline/device-values.d.ts +2 -0
- package/lib/browser/offline/device-values.js +6 -1
- package/lib/browser/screen/page-answers.d.ts +43 -0
- package/lib/browser/screen/page-answers.js +93 -0
- package/lib/browser/screen/screen-protocol.d.ts +113 -0
- package/lib/browser/screen/screen-protocol.js +48 -0
- package/lib/browser/screen/screen.d.ts +21 -0
- package/lib/browser/screen/screen.js +125 -0
- package/lib/browser/screen/use-screen-part.d.ts +7 -0
- package/lib/browser/screen/use-screen-part.js +50 -0
- package/lib/browser/settings/settings-protocol.d.ts +5 -1
- package/lib/browser/settings/settings-protocol.js +5 -1
- package/lib/browser/share/shared-extensions.d.ts +30 -0
- package/lib/browser/share/shared-extensions.js +181 -0
- package/lib/browser/share/shared-link.d.ts +12 -0
- package/lib/browser/share/shared-link.js +41 -0
- package/lib/browser/share/shared-page.d.ts +6 -0
- package/lib/browser/share/shared-page.js +173 -0
- package/lib/browser/state/state-protocol.d.ts +14 -0
- package/lib/browser/state/state-protocol.js +20 -1
- package/lib/browser/state/state.d.ts +10 -2
- package/lib/browser/state/state.js +18 -2
- package/lib/browser/style/base.d.ts +1 -1
- package/lib/browser/style/base.js +4 -0
- package/lib/browser/style/chat-list.d.ts +3 -0
- package/lib/browser/style/chat-list.js +156 -0
- package/lib/browser/style/conversation-column.d.ts +3 -0
- package/lib/browser/style/conversation-column.js +253 -0
- package/lib/browser/style/conversation.d.ts +1 -1
- package/lib/browser/style/conversation.js +24 -8
- package/lib/browser/style/dialogs.d.ts +3 -0
- package/lib/browser/style/dialogs.js +166 -0
- package/lib/browser/style/layout.d.ts +2 -2
- package/lib/browser/style/layout.js +1 -525
- package/lib/browser/style/pages.d.ts +1 -1
- package/lib/browser/style/pages.js +10 -3
- package/lib/browser/style/phone.d.ts +1 -1
- package/lib/browser/style/phone.js +7 -3
- package/lib/browser/style/shared.d.ts +3 -0
- package/lib/browser/style/shared.js +26 -0
- package/lib/browser/style/shell.d.ts +1 -1
- package/lib/browser/style/shell.js +47 -0
- package/lib/browser/style/tasks.d.ts +1 -1
- package/lib/browser/style/tasks.js +13 -8
- package/lib/browser/style.js +8 -0
- package/lib/browser/util/gallery.d.ts +24 -2
- package/lib/browser/util/gallery.js +82 -2
- package/lib/browser/util/image-copy.d.ts +17 -0
- package/lib/browser/util/image-copy.js +60 -0
- package/lib/browser/util/message.d.ts +5 -0
- package/lib/browser/util/message.js +14 -0
- package/lib/browser/util/process.d.ts +6 -2
- package/lib/browser/util/process.js +6 -2
- package/lib/browser/util/spoken.d.ts +25 -0
- package/lib/browser/util/spoken.js +86 -0
- package/lib/browser/util/transcript.d.ts +23 -0
- package/lib/browser/util/transcript.js +49 -0
- package/lib/browser/util/voice.d.ts +5 -1
- package/lib/browser/util/voice.js +6 -1
- package/lib/browser/workbench-hosts.d.ts +37 -0
- package/lib/browser/workbench-hosts.js +124 -0
- package/lib/browser/workbench-lists.d.ts +34 -0
- package/lib/browser/workbench-lists.js +132 -0
- package/lib/browser/workbench-protocol.d.ts +14 -1
- package/lib/browser/workbench-services.d.ts +50 -0
- package/lib/browser/workbench-services.js +124 -0
- package/lib/browser/workbench-util.d.ts +1 -1
- package/lib/browser/workbench.d.ts +6 -89
- package/lib/browser/workbench.js +23 -333
- package/package.json +7 -7
|
@@ -5,61 +5,20 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
9
|
exports.TaWebExtensionsImpl = void 0;
|
|
13
10
|
const core_1 = require("@celljs/core");
|
|
14
11
|
const device_1 = require("../device/device");
|
|
15
|
-
const files_protocol_1 = require("../files/files-protocol");
|
|
16
12
|
const messages_1 = require("../i18n/messages");
|
|
17
|
-
const links_protocol_1 = require("../links/links-protocol");
|
|
18
|
-
const notices_protocol_1 = require("../notices/notices-protocol");
|
|
19
|
-
const session_notices_1 = require("../notices/session-notices");
|
|
20
|
-
const settings_protocol_1 = require("../settings/settings-protocol");
|
|
21
|
-
const state_protocol_1 = require("../state/state-protocol");
|
|
22
|
-
const workbench_protocol_1 = require("../workbench-protocol");
|
|
23
|
-
const web_editor_tabs_1 = require("./web-editor-tabs");
|
|
24
|
-
const web_extension_code_1 = require("./web-extension-code");
|
|
25
13
|
const web_extension_context_1 = require("./web-extension-context");
|
|
26
14
|
const web_extension_protocol_1 = require("./web-extension-protocol");
|
|
27
|
-
const
|
|
28
|
-
const web_home_1 = require("./web-home");
|
|
29
|
-
const web_on_demand_1 = require("./web-on-demand");
|
|
30
|
-
const web_page_list_1 = require("./web-page-list");
|
|
15
|
+
const web_extensions_running_1 = require("./web-extensions-running");
|
|
31
16
|
const web_pages_1 = require("./web-pages");
|
|
32
17
|
const web_sharing_1 = require("./web-sharing");
|
|
33
|
-
const web_tasks_1 = require("./web-tasks");
|
|
34
18
|
const web_view_util_1 = require("./web-view-util");
|
|
35
|
-
let TaWebExtensionsImpl = class TaWebExtensionsImpl {
|
|
19
|
+
let TaWebExtensionsImpl = class TaWebExtensionsImpl extends web_extensions_running_1.WebExtensionsRunning {
|
|
36
20
|
constructor() {
|
|
37
|
-
|
|
38
|
-
this.tasks = new web_tasks_1.WebTaskBoard();
|
|
39
|
-
this.home = new web_home_1.WebHomeBoard();
|
|
40
|
-
this.tabs = new web_editor_tabs_1.WebEditorTabs({
|
|
41
|
-
state: () => this.current,
|
|
42
|
-
update: change => this.update(change),
|
|
43
|
-
persisted: () => this.persisted,
|
|
44
|
-
notices: () => this.notices,
|
|
45
|
-
language: () => this.settings.state.language,
|
|
46
|
-
closed: editor => {
|
|
47
|
-
const run = this.running.get(editor.extension);
|
|
48
|
-
if (editor.onClose && run) {
|
|
49
|
-
this.guard(run, editor.onClose);
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
openView: id => this.openView(id, true),
|
|
53
|
-
});
|
|
54
|
-
/** The code read before, by its hash: a start reads only what changed. */
|
|
55
|
-
this.code = new web_extension_code_1.WebExtensionCode(() => (typeof localStorage === 'undefined' ? undefined : localStorage));
|
|
56
|
-
this.current = web_extension_protocol_1.WebExtensionsStateUtil.empty();
|
|
57
|
-
this.running = new Map();
|
|
58
|
-
this.listeners = new Set();
|
|
59
|
-
this.refreshing = Promise.resolve(false);
|
|
60
|
-
/** The extensions of the list of the last time have started (startKept), once. */
|
|
61
|
-
this.keptStarted = false;
|
|
62
|
-
this.pageList = new web_page_list_1.WebPageList();
|
|
21
|
+
super(...arguments);
|
|
63
22
|
this.nextCustom = 0;
|
|
64
23
|
this.sharing = new web_sharing_1.WebSharing({
|
|
65
24
|
language: () => this.settings.state.language,
|
|
@@ -80,29 +39,6 @@ let TaWebExtensionsImpl = class TaWebExtensionsImpl {
|
|
|
80
39
|
};
|
|
81
40
|
};
|
|
82
41
|
}
|
|
83
|
-
get state() {
|
|
84
|
-
return this.current;
|
|
85
|
-
}
|
|
86
|
-
init() {
|
|
87
|
-
this.placeholders = web_view_util_1.WebViewUtil.placeholders(this.persisted.get(web_view_util_1.WebViewUtil.KEPT));
|
|
88
|
-
this.current = { ...this.current, page: this.persisted.get(web_view_util_1.WebViewUtil.PAGE), views: this.placeholders, usage: this.onDemand.used };
|
|
89
|
-
}
|
|
90
|
-
/** The extensions started on open (ta-launcher.md). */
|
|
91
|
-
get onDemand() {
|
|
92
|
-
var _a;
|
|
93
|
-
(_a = this.started) !== null && _a !== void 0 ? _a : (this.started = new web_on_demand_1.WebOnDemand({
|
|
94
|
-
settings: this.settings,
|
|
95
|
-
persisted: this.persisted,
|
|
96
|
-
notices: this.notices,
|
|
97
|
-
packages: () => this.workbench.packages,
|
|
98
|
-
isRunning: id => { var _a; return !!((_a = this.running.get(id)) === null || _a === void 0 ? void 0 : _a.started); },
|
|
99
|
-
start: info => this.launch(info),
|
|
100
|
-
stop: id => this.stopOnDemand(id),
|
|
101
|
-
changed: () => this.update({ onOpen: this.onDemand.list(), kept: this.onDemand.kept(), usage: this.onDemand.used }),
|
|
102
|
-
show: id => this.showView(id),
|
|
103
|
-
}));
|
|
104
|
-
return this.started;
|
|
105
|
-
}
|
|
106
42
|
subscribe(listener) {
|
|
107
43
|
this.listeners.add(listener);
|
|
108
44
|
return () => this.listeners.delete(listener);
|
|
@@ -147,6 +83,9 @@ let TaWebExtensionsImpl = class TaWebExtensionsImpl {
|
|
|
147
83
|
usage: this.onDemand.used,
|
|
148
84
|
});
|
|
149
85
|
}
|
|
86
|
+
showChats(busy) {
|
|
87
|
+
this.update({ chatsShown: { count: this.current.chatsShown.count + 1, busy } });
|
|
88
|
+
}
|
|
150
89
|
hidePage() {
|
|
151
90
|
this.onDemand.hidden();
|
|
152
91
|
if (!this.current.pageHidden) {
|
|
@@ -203,10 +142,6 @@ let TaWebExtensionsImpl = class TaWebExtensionsImpl {
|
|
|
203
142
|
kinds: () => this.listedKinds(),
|
|
204
143
|
});
|
|
205
144
|
}
|
|
206
|
-
/** The kinds the pages of the extensions there are list (TaWebExtensionInfo.lists), started or not. */
|
|
207
|
-
listedKinds() {
|
|
208
|
-
return web_pages_1.WebPagesUtil.listedKinds([...this.current.onOpen.map(entry => entry.info), ...[...this.running.values()].map(run => run.loaded.info)]);
|
|
209
|
-
}
|
|
210
145
|
stopExtension(name) {
|
|
211
146
|
const info = this.onDemand.find(name);
|
|
212
147
|
if (info && this.running.has(info.id)) {
|
|
@@ -235,32 +170,6 @@ let TaWebExtensionsImpl = class TaWebExtensionsImpl {
|
|
|
235
170
|
this.update({ customs: this.current.customs.filter(entry => entry.id !== id) });
|
|
236
171
|
}
|
|
237
172
|
}
|
|
238
|
-
/** Loads and starts an extension started on open, as reconcile starts the others. */
|
|
239
|
-
async launch(info) {
|
|
240
|
-
var _a;
|
|
241
|
-
const load = await this.loadPackage(info);
|
|
242
|
-
// Gone or changed meanwhile: the next refresh has it.
|
|
243
|
-
if (((_a = this.onDemand.get(info.id)) === null || _a === void 0 ? void 0 : _a.hash) === info.hash && !this.running.has(info.id)) {
|
|
244
|
-
this.startPackage(info, load);
|
|
245
|
-
this.publish();
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
/** Stops one started on open: it is still listed, to start again; its page, if shown, gives way to the conversation. */
|
|
249
|
-
stopOnDemand(id) {
|
|
250
|
-
const run = this.running.get(id);
|
|
251
|
-
if (!run) {
|
|
252
|
-
return;
|
|
253
|
-
}
|
|
254
|
-
const shown = this.current.views.some(view => view.extension === id && view.id === this.current.page);
|
|
255
|
-
this.stop(run);
|
|
256
|
-
this.running.delete(id);
|
|
257
|
-
this.onDemand.stopped(id);
|
|
258
|
-
if (shown) {
|
|
259
|
-
this.persisted.set(web_view_util_1.WebViewUtil.PAGE, '');
|
|
260
|
-
this.current = { ...this.current, page: '' };
|
|
261
|
-
}
|
|
262
|
-
this.publish();
|
|
263
|
-
}
|
|
264
173
|
isShown(id) {
|
|
265
174
|
return this.current.page === id || this.current.activeEditor === web_view_util_1.WebViewUtil.editorId(id);
|
|
266
175
|
}
|
|
@@ -306,151 +215,6 @@ let TaWebExtensionsImpl = class TaWebExtensionsImpl {
|
|
|
306
215
|
}
|
|
307
216
|
}
|
|
308
217
|
}
|
|
309
|
-
async reconcile() {
|
|
310
|
-
const off = new Set(this.settings.state.settings.builtinsOff);
|
|
311
|
-
const builtins = this.builtins.filter(builtin => !off.has(builtin.name));
|
|
312
|
-
const builtinIds = new Set(builtins.map(builtin => web_view_util_1.WebExtensionUtil.builtinId(builtin.name)));
|
|
313
|
-
// The built-ins first: they need nothing of the server, and show before it answers.
|
|
314
|
-
let changed = this.stopUnless(run => !!run.loaded.info || builtinIds.has(run.loaded.id));
|
|
315
|
-
for (const builtin of builtins) {
|
|
316
|
-
const id = web_view_util_1.WebExtensionUtil.builtinId(builtin.name);
|
|
317
|
-
if (!this.running.has(id)) {
|
|
318
|
-
this.start({ id, name: builtin.name }, builtin.activate);
|
|
319
|
-
changed = true;
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
if (changed) {
|
|
323
|
-
this.publish();
|
|
324
|
-
}
|
|
325
|
-
const host = this.workbench.state.host;
|
|
326
|
-
const listing = this.workbench.packages.listWebExtensions();
|
|
327
|
-
// Answered below; until then those of the last time start.
|
|
328
|
-
listing.catch(() => undefined);
|
|
329
|
-
changed = (await this.startKept(host)) || changed;
|
|
330
|
-
const listed = await listing;
|
|
331
|
-
if (host) {
|
|
332
|
-
this.code.keepList(host, listed);
|
|
333
|
-
}
|
|
334
|
-
// A built-in package turned off stays in the list, for its switch in the settings.
|
|
335
|
-
const infos = listed.filter(info => info.enabled !== false);
|
|
336
|
-
const fresh = new Map(infos.map(info => [info.id, info]));
|
|
337
|
-
this.code.keepOnly(infos.map(info => info.hash));
|
|
338
|
-
// Those started on open wait to be opened (ta-launcher.md).
|
|
339
|
-
this.onDemand.set(infos.filter(info => info.activation === 'open'));
|
|
340
|
-
// Fetched together, started in the order of the list: the order of their views stays the same.
|
|
341
|
-
const starting = infos.filter(info => { var _a; return ((_a = this.running.get(info.id)) === null || _a === void 0 ? void 0 : _a.hash) !== info.hash && info.activation !== 'open'; });
|
|
342
|
-
const loads = await Promise.all(starting.map(info => this.loadPackage(info)));
|
|
343
|
-
// Stopped only now, just before the new code starts: the views of the old one stay drawn until the next
|
|
344
|
-
// publish, and stopped while the new code is read (after an update, over the relay) they would show
|
|
345
|
-
// without the styles it took away.
|
|
346
|
-
const stopped = this.stopUnless(run => {
|
|
347
|
-
if (!run.loaded.info) {
|
|
348
|
-
return true;
|
|
349
|
-
}
|
|
350
|
-
const info = fresh.get(run.loaded.id);
|
|
351
|
-
if (info && info.hash === run.hash) {
|
|
352
|
-
// Started from the list of the last time: what else it says is of now.
|
|
353
|
-
run.loaded = { ...run.loaded, info };
|
|
354
|
-
return true;
|
|
355
|
-
}
|
|
356
|
-
this.onDemand.stopped(run.loaded.id);
|
|
357
|
-
return false;
|
|
358
|
-
});
|
|
359
|
-
for (const [index, info] of starting.entries()) {
|
|
360
|
-
this.startPackage(info, loads[index]);
|
|
361
|
-
}
|
|
362
|
-
this.placeholders = undefined;
|
|
363
|
-
// The list of those started on open may have changed too.
|
|
364
|
-
this.publish();
|
|
365
|
-
changed = changed || stopped || starting.length > 0;
|
|
366
|
-
await this.tabs.restore();
|
|
367
|
-
return changed;
|
|
368
|
-
}
|
|
369
|
-
/**
|
|
370
|
-
* The first time, before the computer has answered: the extensions of its list of the last time whose code
|
|
371
|
-
* this browser keeps. What they read goes with the first calls of the page, not a round trip after the list
|
|
372
|
-
* (a phone over the relay waited for it before its double's list could show). The list then keeps those
|
|
373
|
-
* still the same and stops the others.
|
|
374
|
-
*/
|
|
375
|
-
async startKept(host) {
|
|
376
|
-
if (this.keptStarted || !host) {
|
|
377
|
-
return false;
|
|
378
|
-
}
|
|
379
|
-
this.keptStarted = true;
|
|
380
|
-
const infos = this.code.list(host).filter(info => info.enabled !== false && info.activation !== 'open' && !this.running.has(info.id));
|
|
381
|
-
const loads = await Promise.all(infos.map(info => {
|
|
382
|
-
const code = this.code.get(info.hash);
|
|
383
|
-
return code === undefined ? undefined : web_view_util_1.WebExtensionUtil.load(code).catch(() => undefined);
|
|
384
|
-
}));
|
|
385
|
-
let started = false;
|
|
386
|
-
for (const [index, info] of infos.entries()) {
|
|
387
|
-
const factory = loads[index];
|
|
388
|
-
if (factory && !this.running.has(info.id)) {
|
|
389
|
-
this.start({ id: info.id, name: info.name, info }, factory, info.hash);
|
|
390
|
-
started = true;
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
if (started) {
|
|
394
|
-
this.publish();
|
|
395
|
-
}
|
|
396
|
-
return started;
|
|
397
|
-
}
|
|
398
|
-
/** Stops and forgets the extensions running that `keep` does not keep; whether there were any. */
|
|
399
|
-
stopUnless(keep) {
|
|
400
|
-
let stopped = false;
|
|
401
|
-
for (const [id, run] of this.running) {
|
|
402
|
-
if (!keep(run)) {
|
|
403
|
-
this.stop(run);
|
|
404
|
-
this.running.delete(id);
|
|
405
|
-
stopped = true;
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
return stopped;
|
|
409
|
-
}
|
|
410
|
-
async loadPackage(info) {
|
|
411
|
-
try {
|
|
412
|
-
const kept = this.code.get(info.hash);
|
|
413
|
-
if (kept !== undefined) {
|
|
414
|
-
return { factory: await web_view_util_1.WebExtensionUtil.load(kept), hash: info.hash };
|
|
415
|
-
}
|
|
416
|
-
const { code, hash } = await this.workbench.packages.readWebExtension(info.id);
|
|
417
|
-
this.code.set(hash, code);
|
|
418
|
-
return { factory: await web_view_util_1.WebExtensionUtil.load(code), hash };
|
|
419
|
-
}
|
|
420
|
-
catch (error) {
|
|
421
|
-
return { error: web_view_util_1.WebExtensionUtil.message(error) };
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
startPackage(info, load) {
|
|
425
|
-
const loaded = { id: info.id, name: info.name, info };
|
|
426
|
-
if ('error' in load) {
|
|
427
|
-
this.running.set(info.id, web_extension_run_1.WebExtensionRunUtil.create({ ...loaded, error: load.error }, info.hash));
|
|
428
|
-
}
|
|
429
|
-
else {
|
|
430
|
-
this.start(loaded, load.factory, load.hash);
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
start(loaded, factory, hash) {
|
|
434
|
-
const run = web_extension_run_1.WebExtensionRunUtil.create(loaded, hash);
|
|
435
|
-
this.running.set(loaded.id, run);
|
|
436
|
-
try {
|
|
437
|
-
const dispose = factory(this.context.create(run));
|
|
438
|
-
run.dispose = typeof dispose === 'function' ? dispose : undefined;
|
|
439
|
-
run.started = true;
|
|
440
|
-
}
|
|
441
|
-
catch (error) {
|
|
442
|
-
this.stop(run);
|
|
443
|
-
run.loaded = { ...loaded, error: web_view_util_1.WebExtensionUtil.message(error) };
|
|
444
|
-
}
|
|
445
|
-
}
|
|
446
|
-
stop(run) {
|
|
447
|
-
run.stopped = true;
|
|
448
|
-
if (run.dispose) {
|
|
449
|
-
this.guard(run, run.dispose);
|
|
450
|
-
}
|
|
451
|
-
web_extension_run_1.WebExtensionRunUtil.clear(run);
|
|
452
|
-
this.tabs.remove(editor => editor.extension === run.loaded.id);
|
|
453
|
-
}
|
|
454
218
|
open(editor, preserveFocus = false) {
|
|
455
219
|
this.tabs.open(editor, preserveFocus);
|
|
456
220
|
}
|
|
@@ -481,84 +245,11 @@ let TaWebExtensionsImpl = class TaWebExtensionsImpl {
|
|
|
481
245
|
switcher: () => this.switcher,
|
|
482
246
|
sessionNotices: this.sessionNotices,
|
|
483
247
|
persisted: this.persisted,
|
|
248
|
+
screen: this.screen,
|
|
484
249
|
};
|
|
485
250
|
}
|
|
486
|
-
guard(run, action) {
|
|
487
|
-
try {
|
|
488
|
-
action();
|
|
489
|
-
}
|
|
490
|
-
catch (error) {
|
|
491
|
-
console.error(`The web extension ${run.loaded.name} failed:`, error);
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
publish() {
|
|
495
|
-
const runs = [...this.running.values()];
|
|
496
|
-
this.tasks.setSources(runs.flatMap(run => run.taskSources.map(source => ({ extension: run.loaded.name, source }))));
|
|
497
|
-
this.home.setSources(runs.flatMap(run => run.homeSources.map(source => ({ extension: run.loaded.name, source }))));
|
|
498
|
-
const { views, ...registered } = web_extension_run_1.WebExtensionRunUtil.collect(runs, id => this.onDemand.has(id));
|
|
499
|
-
if (this.placeholders) {
|
|
500
|
-
views.push(...this.placeholders.filter(placeholder => !views.some(view => view.id === placeholder.id)));
|
|
501
|
-
}
|
|
502
|
-
else {
|
|
503
|
-
const kinds = this.listedKinds();
|
|
504
|
-
// Those of a kind a page lists never take a place of the navigation: none to keep for its first frame.
|
|
505
|
-
this.persisted.set(web_view_util_1.WebViewUtil.KEPT, web_view_util_1.WebViewUtil.keep(views.filter(view => { var _a; return !web_pages_1.WebPagesUtil.listed((_a = this.running.get(view.extension)) === null || _a === void 0 ? void 0 : _a.loaded.info, kinds); })));
|
|
506
|
-
}
|
|
507
|
-
this.update({
|
|
508
|
-
...registered,
|
|
509
|
-
views: views.sort((a, b) => a.order - b.order),
|
|
510
|
-
onOpen: this.onDemand.list(),
|
|
511
|
-
kept: this.onDemand.kept(),
|
|
512
|
-
usage: this.onDemand.used,
|
|
513
|
-
});
|
|
514
|
-
}
|
|
515
|
-
update(change) {
|
|
516
|
-
this.current = { ...this.current, ...change };
|
|
517
|
-
for (const listener of this.listeners) {
|
|
518
|
-
listener(this.current);
|
|
519
|
-
}
|
|
520
|
-
}
|
|
521
251
|
};
|
|
522
252
|
exports.TaWebExtensionsImpl = TaWebExtensionsImpl;
|
|
523
|
-
__decorate([
|
|
524
|
-
(0, core_1.Autowired)(workbench_protocol_1.TaWorkbench),
|
|
525
|
-
__metadata("design:type", Object)
|
|
526
|
-
], TaWebExtensionsImpl.prototype, "workbench", void 0);
|
|
527
|
-
__decorate([
|
|
528
|
-
(0, core_1.Autowired)(settings_protocol_1.TaSettings),
|
|
529
|
-
__metadata("design:type", Object)
|
|
530
|
-
], TaWebExtensionsImpl.prototype, "settings", void 0);
|
|
531
|
-
__decorate([
|
|
532
|
-
(0, core_1.Autowired)(files_protocol_1.TaFiles),
|
|
533
|
-
__metadata("design:type", Object)
|
|
534
|
-
], TaWebExtensionsImpl.prototype, "taFiles", void 0);
|
|
535
|
-
__decorate([
|
|
536
|
-
(0, core_1.Autowired)({ id: links_protocol_1.TaLinks, detached: true }),
|
|
537
|
-
__metadata("design:type", Object)
|
|
538
|
-
], TaWebExtensionsImpl.prototype, "links", void 0);
|
|
539
|
-
__decorate([
|
|
540
|
-
(0, core_1.Autowired)(notices_protocol_1.TaNotices),
|
|
541
|
-
__metadata("design:type", Object)
|
|
542
|
-
], TaWebExtensionsImpl.prototype, "notices", void 0);
|
|
543
|
-
__decorate([
|
|
544
|
-
(0, core_1.Autowired)(state_protocol_1.TaState),
|
|
545
|
-
__metadata("design:type", Object)
|
|
546
|
-
], TaWebExtensionsImpl.prototype, "persisted", void 0);
|
|
547
|
-
__decorate([
|
|
548
|
-
(0, core_1.Autowired)(session_notices_1.TaSessionNotices),
|
|
549
|
-
__metadata("design:type", Object)
|
|
550
|
-
], TaWebExtensionsImpl.prototype, "sessionNotices", void 0);
|
|
551
|
-
__decorate([
|
|
552
|
-
(0, core_1.Autowired)(web_extension_protocol_1.BuiltinWebExtension),
|
|
553
|
-
(0, core_1.Optional)(),
|
|
554
|
-
__metadata("design:type", Array)
|
|
555
|
-
], TaWebExtensionsImpl.prototype, "builtins", void 0);
|
|
556
|
-
__decorate([
|
|
557
|
-
(0, core_1.PostConstruct)(),
|
|
558
|
-
__metadata("design:type", Function),
|
|
559
|
-
__metadata("design:paramtypes", []),
|
|
560
|
-
__metadata("design:returntype", void 0)
|
|
561
|
-
], TaWebExtensionsImpl.prototype, "init", null);
|
|
562
253
|
exports.TaWebExtensionsImpl = TaWebExtensionsImpl = __decorate([
|
|
563
254
|
(0, core_1.Component)(web_extension_protocol_1.TaWebExtensions)
|
|
564
255
|
], TaWebExtensionsImpl);
|
|
@@ -13,6 +13,7 @@ var WebPagesUtil;
|
|
|
13
13
|
WebPagesUtil.USED = {
|
|
14
14
|
key: 'pages.used',
|
|
15
15
|
tier: 'user',
|
|
16
|
+
passive: true,
|
|
16
17
|
initial: {},
|
|
17
18
|
parse: value => value && typeof value === 'object' && !Array.isArray(value)
|
|
18
19
|
? Object.fromEntries(Object.entries(value).filter((entry) => typeof entry[1] === 'number'))
|
|
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.WebSessionNoticeUtil = exports.WebSessionNotices = void 0;
|
|
13
13
|
const core_1 = require("@celljs/core");
|
|
14
14
|
const assistant_protocol_1 = require("../assistant/assistant-protocol");
|
|
15
|
-
const
|
|
15
|
+
const chat_list_util_1 = require("../components/chat-list-util");
|
|
16
16
|
const side_lists_1 = require("../components/side-lists");
|
|
17
17
|
const device_1 = require("../device/device");
|
|
18
18
|
const use_t_1 = require("../i18n/use-t");
|
|
@@ -25,6 +25,11 @@ const web_extension_protocol_1 = require("./web-extension-protocol");
|
|
|
25
25
|
/** The notices of conversations of the page, on what it shows. */
|
|
26
26
|
let WebSessionNotices = class WebSessionNotices {
|
|
27
27
|
notify(notice) {
|
|
28
|
+
var _a;
|
|
29
|
+
// Ta's own screen tells the user nothing: their own page does.
|
|
30
|
+
if ((_a = this.workbench.pages) === null || _a === void 0 ? void 0 : _a.agent) {
|
|
31
|
+
return 'none';
|
|
32
|
+
}
|
|
28
33
|
return this.sessionNotices().notify(notice);
|
|
29
34
|
}
|
|
30
35
|
sessionNotices() {
|
|
@@ -142,7 +147,7 @@ var WebSessionNoticeUtil;
|
|
|
142
147
|
return (assistant === null || assistant === void 0 ? void 0 : assistant.name) || t()('ta.builtin.assistant');
|
|
143
148
|
}
|
|
144
149
|
const found = entry(notice);
|
|
145
|
-
return found ?
|
|
150
|
+
return found ? chat_list_util_1.ChatListUtil.title(found, t()) : t()('ta.chat.new');
|
|
146
151
|
},
|
|
147
152
|
open: async (notice) => {
|
|
148
153
|
var _a;
|
|
@@ -161,7 +166,7 @@ var WebSessionNoticeUtil;
|
|
|
161
166
|
}
|
|
162
167
|
const found = entry(notice);
|
|
163
168
|
const shown = switcher(sessionOf(notice), {
|
|
164
|
-
title: found ?
|
|
169
|
+
title: found ? chat_list_util_1.ChatListUtil.title(found, t()) : undefined,
|
|
165
170
|
cwd: (_a = notice.cwd) !== null && _a !== void 0 ? _a : found === null || found === void 0 ? void 0 : found.cwd,
|
|
166
171
|
sessionFile: notice.sessionFile,
|
|
167
172
|
});
|
|
@@ -15,6 +15,8 @@ export interface WebTaskGroups {
|
|
|
15
15
|
}
|
|
16
16
|
export declare namespace WebTaskUtil {
|
|
17
17
|
function key(extension: string, id: string): string;
|
|
18
|
+
/** How many a gathered row stands for (WebTask.gathered); 1 for a task. */
|
|
19
|
+
function size(task: Pick<WebTask, 'gathered'>): number;
|
|
18
20
|
function ended(task: Pick<WebTask, 'status'>): boolean;
|
|
19
21
|
/** Each group the latest first: by when it started while it goes on, by when it ended after. */
|
|
20
22
|
function groups(tasks: readonly WebTaskEntry[]): WebTaskGroups;
|
|
@@ -7,6 +7,12 @@ var WebTaskUtil;
|
|
|
7
7
|
return `${extension}/${id}`;
|
|
8
8
|
}
|
|
9
9
|
WebTaskUtil.key = key;
|
|
10
|
+
/** How many a gathered row stands for (WebTask.gathered); 1 for a task. */
|
|
11
|
+
function size(task) {
|
|
12
|
+
const { gathered } = task;
|
|
13
|
+
return gathered ? gathered.waiting + gathered.running + gathered.fresh : 1;
|
|
14
|
+
}
|
|
15
|
+
WebTaskUtil.size = size;
|
|
10
16
|
function ended(task) {
|
|
11
17
|
return task.status !== 'running' && task.status !== 'waiting';
|
|
12
18
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type StateSpec } from '../state/state-protocol';
|
|
2
|
-
import type { WebExtensionFactory } from './web-extension-api';
|
|
2
|
+
import type { WebExtensionFactory, WebPageGroup } from './web-extension-api';
|
|
3
3
|
import { type WebViewEntry, type WorkbenchTabs } from './web-extension-protocol';
|
|
4
4
|
export declare namespace WebExtensionUtil {
|
|
5
5
|
function builtinId(name: string): string;
|
|
@@ -26,6 +26,7 @@ export declare namespace WebViewUtil {
|
|
|
26
26
|
order: number;
|
|
27
27
|
pages?: string[];
|
|
28
28
|
discover?: boolean;
|
|
29
|
+
group?: WebPageGroup;
|
|
29
30
|
/** It draws its own top bar: its place shows one on its way, not the title. */
|
|
30
31
|
head?: boolean;
|
|
31
32
|
}
|
|
@@ -78,6 +78,7 @@ var WebViewUtil;
|
|
|
78
78
|
WebViewUtil.TABS = {
|
|
79
79
|
key: 'workbench',
|
|
80
80
|
tier: 'user',
|
|
81
|
+
passive: true,
|
|
81
82
|
initial: { views: [] },
|
|
82
83
|
parse: value => {
|
|
83
84
|
const kept = value;
|
|
@@ -95,6 +96,7 @@ var WebViewUtil;
|
|
|
95
96
|
WebViewUtil.KEPT = {
|
|
96
97
|
key: 'views',
|
|
97
98
|
tier: 'user',
|
|
99
|
+
passive: true,
|
|
98
100
|
initial: [],
|
|
99
101
|
parse: value => (Array.isArray(value) ? value.filter(isKept) : undefined),
|
|
100
102
|
};
|
|
@@ -108,7 +110,7 @@ var WebViewUtil;
|
|
|
108
110
|
typeof view.order === 'number');
|
|
109
111
|
}
|
|
110
112
|
function keep(views) {
|
|
111
|
-
return views.flatMap(({ id, extension, title, icon, location, order, pages, discover, head, onOpen }) => (location !== 'page' && location !== 'sidebar') || onOpen
|
|
113
|
+
return views.flatMap(({ id, extension, title, icon, location, order, pages, discover, group, head, onOpen, navigation }) => (location !== 'page' && location !== 'sidebar') || onOpen || navigation === false
|
|
112
114
|
? []
|
|
113
115
|
: [
|
|
114
116
|
{
|
|
@@ -120,6 +122,7 @@ var WebViewUtil;
|
|
|
120
122
|
order,
|
|
121
123
|
pages,
|
|
122
124
|
discover,
|
|
125
|
+
...(group ? { group } : {}),
|
|
123
126
|
...(head ? { head: true } : {}),
|
|
124
127
|
},
|
|
125
128
|
]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TaGatewayLimits,
|
|
1
|
+
import type { TaGatewayLimits, TaQuotaState } from '@celljs/ta-protocol';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
/** How often what the console shows is read again while it is seen. */
|
|
4
4
|
export declare const REFRESH_MS = 10000;
|
|
@@ -32,24 +32,14 @@ export declare function Stat({ value, label, tone, onClick, title, }: {
|
|
|
32
32
|
onClick?(): void;
|
|
33
33
|
title?: string;
|
|
34
34
|
}): React.JSX.Element;
|
|
35
|
-
/** This month's minutes and tokens of an account, as bars; the limits of messages and pages in a line. */
|
|
36
35
|
export declare function QuotaMeters({ quota }: {
|
|
37
36
|
quota: TaQuotaState;
|
|
38
37
|
}): React.JSX.Element;
|
|
39
|
-
/**
|
|
40
|
-
* What agents took over time, of the gateway or of one account: tokens or dollars by hour (a day) or by day (a week,
|
|
41
|
-
* a month), the totals, and the models and accounts that took most.
|
|
42
|
-
*/
|
|
43
|
-
export declare function TrendCard({ tenantId, tenants, onTenant }: {
|
|
44
|
-
tenantId?: string;
|
|
45
|
-
tenants?: TaGatewayTenant[];
|
|
46
|
-
onTenant?(id: string): void;
|
|
47
|
-
}): React.JSX.Element;
|
|
48
38
|
/**
|
|
49
39
|
* Limits to change: the gateway's defaults (`nullable` false: a limit is a number or none), or an account's over them
|
|
50
40
|
* (each the default's, none, or its own). Saved as a whole.
|
|
51
41
|
*/
|
|
52
|
-
export declare function LimitsForm({ value, defaults, providers, nullable, readOnly, onSave, }: {
|
|
42
|
+
export declare function LimitsForm({ value, defaults, providers, nullable, readOnly, metered, onSave, }: {
|
|
53
43
|
value: TaGatewayLimits;
|
|
54
44
|
defaults?: TaGatewayLimits;
|
|
55
45
|
providers: {
|
|
@@ -58,6 +48,8 @@ export declare function LimitsForm({ value, defaults, providers, nullable, readO
|
|
|
58
48
|
}[];
|
|
59
49
|
nullable: boolean;
|
|
60
50
|
readOnly?: boolean;
|
|
51
|
+
/** Whether the gateway gives models, so that a limit of tokens holds. */
|
|
52
|
+
metered?: boolean;
|
|
61
53
|
onSave(limits: TaGatewayLimits): Promise<unknown>;
|
|
62
54
|
}): React.JSX.Element;
|
|
63
55
|
//# sourceMappingURL=console-parts.d.ts.map
|