@celljs/ta-web 4.42.0 → 4.44.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +1 -1
- package/README.md +1 -1
- package/esm/browser/apps/app-window.js +2 -2
- package/esm/browser/apps/web-apps.d.ts +4 -0
- package/esm/browser/apps/web-apps.js +14 -3
- package/esm/browser/assistant/assistant-chat-list.js +2 -1
- package/esm/browser/assistant/assistant-extension.js +16 -2
- package/esm/browser/assistant/assistant-protocol.d.ts +6 -0
- package/esm/browser/assistant/assistant-task-source.js +3 -0
- package/esm/browser/assistant/assistant-task-util.d.ts +2 -0
- package/esm/browser/assistant/assistant-task-util.js +5 -0
- package/esm/browser/assistant/assistant.d.ts +3 -0
- package/esm/browser/assistant/assistant.js +26 -2
- package/esm/browser/assistant/ta-hearing.d.ts +85 -0
- package/esm/browser/assistant/ta-hearing.js +272 -0
- package/esm/browser/components/app-shell-hooks.d.ts +2 -1
- package/esm/browser/components/app-shell-hooks.js +4 -3
- package/esm/browser/components/app-shell-state.js +2 -2
- package/esm/browser/components/auth-view.js +1 -1
- package/esm/browser/components/board.js +9 -1
- package/esm/browser/components/chat-list-row.js +4 -4
- package/esm/browser/components/chat-list-util.d.ts +2 -2
- package/esm/browser/components/clipboard-link-host.d.ts +2 -0
- package/esm/browser/components/clipboard-link-host.js +27 -0
- package/esm/browser/components/cloud-network.js +1 -1
- package/esm/browser/components/cloud-sign-in-view.d.ts +1 -1
- package/esm/browser/components/custom-host.d.ts +4 -1
- package/esm/browser/components/custom-host.js +8 -2
- package/esm/browser/components/custom-provider-advanced.js +8 -8
- package/esm/browser/components/custom-provider-view.js +12 -12
- package/esm/browser/components/earlier-messages.d.ts +4 -1
- package/esm/browser/components/earlier-messages.js +5 -2
- package/esm/browser/components/empty-state.d.ts +2 -1
- package/esm/browser/components/empty-state.js +6 -2
- package/esm/browser/components/folder-picker.js +2 -2
- package/esm/browser/components/gallery.js +8 -9
- package/esm/browser/components/hearing-host.d.ts +5 -0
- package/esm/browser/components/hearing-host.js +58 -0
- package/esm/browser/components/host-view.d.ts +1 -1
- package/esm/browser/components/link-dialog.js +4 -0
- package/esm/browser/components/loading.d.ts +3 -2
- package/esm/browser/components/loading.js +7 -3
- package/esm/browser/components/markdown.d.ts +3 -1
- package/esm/browser/components/markdown.js +10 -5
- package/esm/browser/components/media.d.ts +10 -4
- package/esm/browser/components/media.js +60 -14
- package/esm/browser/components/message-list.js +2 -1
- package/esm/browser/components/message-steps.js +8 -5
- package/esm/browser/components/people-picker.d.ts +17 -0
- package/esm/browser/components/people-picker.js +129 -0
- package/esm/browser/components/relay-view.js +1 -1
- package/esm/browser/components/settings-choices.d.ts +2 -1
- package/esm/browser/components/settings-choices.js +2 -1
- package/esm/browser/components/settings-parts.js +25 -3
- package/esm/browser/components/share-dialog.d.ts +2 -2
- package/esm/browser/components/share-dialog.js +7 -4
- package/esm/browser/components/share-friends.d.ts +18 -2
- package/esm/browser/components/share-friends.js +64 -13
- package/esm/browser/components/share-item-sheet.d.ts +12 -0
- package/esm/browser/components/share-item-sheet.js +39 -0
- package/esm/browser/components/share-sheet.d.ts +12 -4
- package/esm/browser/components/share-sheet.js +15 -6
- package/esm/browser/components/sign-in-setup.js +4 -4
- package/esm/browser/components/trusted-domains.js +1 -1
- package/esm/browser/components/view-room.d.ts +25 -0
- package/esm/browser/components/view-room.js +136 -0
- package/esm/browser/components/voice-services.js +6 -6
- package/esm/browser/device/device-protocol.d.ts +9 -6
- package/esm/browser/device/device-protocol.js +7 -4
- package/esm/browser/device/launch-screen.d.ts +11 -1
- package/esm/browser/device/launch-screen.js +22 -4
- package/esm/browser/extension/share-sheet-compat.d.ts +2 -0
- package/esm/browser/extension/share-sheet-compat.js +12 -2
- package/esm/browser/extension/web-api-chats.d.ts +23 -0
- package/esm/browser/extension/web-api-code.d.ts +11 -0
- package/esm/browser/extension/web-api-components.d.ts +8 -1
- package/esm/browser/extension/web-api-contributions.d.ts +30 -1
- package/esm/browser/extension/web-api-desktop.d.ts +2 -1
- package/esm/browser/extension/web-api-file-views.d.ts +38 -0
- package/esm/browser/extension/web-api-file-views.js +2 -0
- package/esm/browser/extension/web-api-host.d.ts +47 -0
- package/esm/browser/extension/web-api-host.js +3 -0
- package/esm/browser/extension/web-api-menus.d.ts +46 -0
- package/esm/browser/extension/web-api-partners.d.ts +58 -1
- package/esm/browser/extension/web-api-skins.d.ts +95 -0
- package/esm/browser/extension/web-api-skins.js +2 -0
- package/esm/browser/extension/web-api-spec.js +9 -0
- package/esm/browser/extension/web-extension-api.d.ts +13 -34
- package/esm/browser/extension/web-extension-context.d.ts +2 -8
- package/esm/browser/extension/web-extension-context.js +15 -39
- package/esm/browser/extension/web-extension-marks.d.ts +10 -0
- package/esm/browser/extension/web-extension-marks.js +29 -0
- package/esm/browser/extension/web-extension-protocol.d.ts +13 -1
- package/esm/browser/extension/web-extension-protocol.js +4 -0
- package/esm/browser/extension/web-extension-run.d.ts +16 -2
- package/esm/browser/extension/web-extension-run.js +80 -0
- package/esm/browser/extension/web-extensions-running.d.ts +5 -1
- package/esm/browser/extension/web-extensions-running.js +16 -0
- package/esm/browser/extension/web-extensions.d.ts +2 -1
- package/esm/browser/extension/web-extensions.js +3 -0
- package/esm/browser/extension/web-home.js +3 -1
- package/esm/browser/extension/web-host-values.d.ts +66 -0
- package/esm/browser/extension/web-host-values.js +191 -0
- package/esm/browser/extension/web-hosts.d.ts +7 -2
- package/esm/browser/extension/web-hosts.js +16 -4
- package/esm/browser/extension/web-share-ui.d.ts +7 -0
- package/esm/browser/extension/web-share-ui.js +20 -0
- package/esm/browser/extension/web-share.d.ts +18 -0
- package/esm/browser/extension/web-share.js +42 -0
- package/esm/browser/i18n/en/assistant.d.ts +4 -0
- package/esm/browser/i18n/en/assistant.js +4 -0
- package/esm/browser/i18n/en/chat.d.ts +10 -0
- package/esm/browser/i18n/en/chat.js +10 -0
- package/esm/browser/i18n/en/common.d.ts +15 -0
- package/esm/browser/i18n/en/common.js +15 -0
- package/esm/browser/i18n/en/discover.d.ts +11 -1
- package/esm/browser/i18n/en/discover.js +11 -1
- package/esm/browser/i18n/en/settings.d.ts +10 -0
- package/esm/browser/i18n/en/settings.js +10 -0
- package/esm/browser/i18n/ja/assistant.js +4 -0
- package/esm/browser/i18n/ja/chat.js +10 -0
- package/esm/browser/i18n/ja/common.js +15 -0
- package/esm/browser/i18n/ja/discover.js +11 -1
- package/esm/browser/i18n/ja/settings.js +10 -0
- package/esm/browser/i18n/locales.d.ts +51 -2
- package/esm/browser/i18n/messages.d.ts +50 -1
- package/esm/browser/i18n/zh/assistant.js +4 -0
- package/esm/browser/i18n/zh/chat.js +10 -0
- package/esm/browser/i18n/zh/common.js +15 -0
- package/esm/browser/i18n/zh/discover.js +11 -1
- package/esm/browser/i18n/zh/settings.js +10 -0
- package/esm/browser/i18n/zh-tw/assistant.js +4 -0
- package/esm/browser/i18n/zh-tw/chat.js +10 -0
- package/esm/browser/i18n/zh-tw/common.js +15 -0
- package/esm/browser/i18n/zh-tw/discover.js +11 -1
- package/esm/browser/i18n/zh-tw/settings.js +10 -0
- package/esm/browser/launch-art/art-palette.d.ts +41 -0
- package/esm/browser/launch-art/art-palette.js +72 -0
- package/esm/browser/launch-art/cyclic-automaton.d.ts +45 -0
- package/esm/browser/launch-art/cyclic-automaton.js +176 -0
- package/esm/browser/launch-art/fractal-tree.d.ts +43 -0
- package/esm/browser/launch-art/fractal-tree.js +48 -0
- package/esm/browser/launch-art/launch-art.d.ts +98 -0
- package/esm/browser/launch-art/launch-art.js +420 -0
- package/esm/browser/launch-art/launch-sky.d.ts +66 -0
- package/esm/browser/launch-art/launch-sky.js +153 -0
- package/esm/browser/links/clipboard-links.d.ts +85 -0
- package/esm/browser/links/clipboard-links.js +261 -0
- package/esm/browser/links/link-text.d.ts +29 -0
- package/esm/browser/links/link-text.js +97 -0
- package/esm/browser/links/links-protocol.d.ts +12 -1
- package/esm/browser/links/links.d.ts +8 -2
- package/esm/browser/links/links.js +33 -3
- package/esm/browser/markdown/code-renderers.d.ts +4 -0
- package/esm/browser/markdown/code-renderers.js +4 -0
- package/esm/browser/partners/group-picker.js +23 -29
- package/esm/browser/sandbox/sandbox-runtime-code.js +1 -1
- package/esm/browser/sandbox/work/work-senses.js +1 -1
- package/esm/browser/settings/settings-protocol.d.ts +26 -0
- package/esm/browser/settings/settings-protocol.js +11 -0
- package/esm/browser/settings/settings.d.ts +4 -1
- package/esm/browser/settings/settings.js +16 -3
- package/esm/browser/skin/skin-layer.d.ts +8 -0
- package/esm/browser/skin/skin-layer.js +118 -0
- package/esm/browser/skin/skin-util.d.ts +40 -0
- package/esm/browser/skin/skin-util.js +120 -0
- package/esm/browser/style/base.d.ts +1 -1
- package/esm/browser/style/base.js +10 -6
- package/esm/browser/style/chat-list.d.ts +1 -1
- package/esm/browser/style/chat-list.js +28 -15
- package/esm/browser/style/conversation-column.d.ts +1 -1
- package/esm/browser/style/conversation.d.ts +1 -1
- package/esm/browser/style/conversation.js +5 -4
- package/esm/browser/style/dialogs.d.ts +1 -1
- package/esm/browser/style/dialogs.js +2 -5
- package/esm/browser/style/forms.d.ts +5 -0
- package/esm/browser/style/forms.js +65 -0
- package/esm/browser/style/layout.d.ts +1 -1
- package/esm/browser/style/pages.d.ts +1 -1
- package/esm/browser/style/pages.js +14 -24
- package/esm/browser/style/phone.d.ts +1 -1
- package/esm/browser/style/shared.d.ts +1 -1
- package/esm/browser/style/shell.d.ts +1 -1
- package/esm/browser/style/shell.js +1 -6
- package/esm/browser/style/skins.d.ts +9 -0
- package/esm/browser/style/skins.js +107 -0
- package/esm/browser/style/surfaces.d.ts +1 -1
- package/esm/browser/style/surfaces.js +8 -6
- package/esm/browser/style/tasks.d.ts +1 -1
- package/esm/browser/style.js +4 -0
- package/esm/browser/util/fresh-rows.d.ts +21 -0
- package/esm/browser/util/fresh-rows.js +36 -0
- package/esm/browser/util/process.d.ts +12 -22
- package/esm/browser/util/process.js +49 -39
- package/esm/browser/util/voice.d.ts +18 -0
- package/esm/browser/util/voice.js +111 -3
- package/esm/browser/workbench-protocol.d.ts +2 -0
- package/esm/browser/workbench-services.d.ts +2 -0
- package/esm/browser/workbench-services.js +5 -0
- package/esm/browser/workbench.js +5 -0
- package/lib/browser/apps/app-window.js +2 -2
- package/lib/browser/apps/web-apps.d.ts +4 -0
- package/lib/browser/apps/web-apps.js +14 -3
- package/lib/browser/assistant/assistant-chat-list.js +2 -1
- package/lib/browser/assistant/assistant-extension.js +15 -1
- package/lib/browser/assistant/assistant-protocol.d.ts +6 -0
- package/lib/browser/assistant/assistant-task-source.js +3 -0
- package/lib/browser/assistant/assistant-task-util.d.ts +2 -0
- package/lib/browser/assistant/assistant-task-util.js +5 -0
- package/lib/browser/assistant/assistant.d.ts +3 -0
- package/lib/browser/assistant/assistant.js +26 -2
- package/lib/browser/assistant/ta-hearing.d.ts +86 -0
- package/lib/browser/assistant/ta-hearing.js +277 -0
- package/lib/browser/components/app-shell-hooks.d.ts +2 -1
- package/lib/browser/components/app-shell-hooks.js +4 -3
- package/lib/browser/components/app-shell-state.js +2 -2
- package/lib/browser/components/auth-view.js +1 -1
- package/lib/browser/components/board.js +9 -1
- package/lib/browser/components/chat-list-row.js +4 -4
- package/lib/browser/components/chat-list-util.d.ts +2 -2
- package/lib/browser/components/clipboard-link-host.d.ts +3 -0
- package/lib/browser/components/clipboard-link-host.js +63 -0
- package/lib/browser/components/cloud-network.js +1 -1
- package/lib/browser/components/cloud-sign-in-view.d.ts +1 -1
- package/lib/browser/components/custom-host.d.ts +4 -1
- package/lib/browser/components/custom-host.js +8 -2
- package/lib/browser/components/custom-provider-advanced.js +8 -8
- package/lib/browser/components/custom-provider-view.js +12 -12
- package/lib/browser/components/earlier-messages.d.ts +4 -1
- package/lib/browser/components/earlier-messages.js +5 -2
- package/lib/browser/components/empty-state.d.ts +2 -1
- package/lib/browser/components/empty-state.js +6 -2
- package/lib/browser/components/folder-picker.js +2 -2
- package/lib/browser/components/gallery.js +7 -8
- package/lib/browser/components/hearing-host.d.ts +6 -0
- package/lib/browser/components/hearing-host.js +94 -0
- package/lib/browser/components/host-view.d.ts +1 -1
- package/lib/browser/components/link-dialog.js +4 -0
- package/lib/browser/components/loading.d.ts +3 -2
- package/lib/browser/components/loading.js +7 -3
- package/lib/browser/components/markdown.d.ts +3 -1
- package/lib/browser/components/markdown.js +9 -4
- package/lib/browser/components/media.d.ts +10 -4
- package/lib/browser/components/media.js +61 -14
- package/lib/browser/components/message-list.js +2 -1
- package/lib/browser/components/message-steps.js +8 -5
- package/lib/browser/components/people-picker.d.ts +18 -0
- package/lib/browser/components/people-picker.js +166 -0
- package/lib/browser/components/relay-view.js +1 -1
- package/lib/browser/components/settings-choices.d.ts +2 -1
- package/lib/browser/components/settings-choices.js +2 -1
- package/lib/browser/components/settings-parts.js +23 -1
- package/lib/browser/components/share-dialog.d.ts +2 -2
- package/lib/browser/components/share-dialog.js +7 -4
- package/lib/browser/components/share-friends.d.ts +18 -2
- package/lib/browser/components/share-friends.js +67 -13
- package/lib/browser/components/share-item-sheet.d.ts +13 -0
- package/lib/browser/components/share-item-sheet.js +75 -0
- package/lib/browser/components/share-sheet.d.ts +12 -4
- package/lib/browser/components/share-sheet.js +14 -4
- package/lib/browser/components/sign-in-setup.js +4 -4
- package/lib/browser/components/trusted-domains.js +1 -1
- package/lib/browser/components/view-room.d.ts +26 -0
- package/lib/browser/components/view-room.js +173 -0
- package/lib/browser/components/voice-services.js +6 -6
- package/lib/browser/device/device-protocol.d.ts +9 -6
- package/lib/browser/device/device-protocol.js +7 -4
- package/lib/browser/device/launch-screen.d.ts +11 -1
- package/lib/browser/device/launch-screen.js +22 -4
- package/lib/browser/extension/share-sheet-compat.d.ts +2 -0
- package/lib/browser/extension/share-sheet-compat.js +13 -2
- package/lib/browser/extension/web-api-chats.d.ts +23 -0
- package/lib/browser/extension/web-api-code.d.ts +11 -0
- package/lib/browser/extension/web-api-components.d.ts +8 -1
- package/lib/browser/extension/web-api-contributions.d.ts +30 -1
- package/lib/browser/extension/web-api-desktop.d.ts +2 -1
- package/lib/browser/extension/web-api-file-views.d.ts +39 -0
- package/lib/browser/extension/web-api-file-views.js +3 -0
- package/lib/browser/extension/web-api-host.d.ts +48 -0
- package/lib/browser/extension/web-api-host.js +4 -0
- package/lib/browser/extension/web-api-menus.d.ts +46 -0
- package/lib/browser/extension/web-api-partners.d.ts +58 -1
- package/lib/browser/extension/web-api-skins.d.ts +96 -0
- package/lib/browser/extension/web-api-skins.js +3 -0
- package/lib/browser/extension/web-api-spec.js +9 -0
- package/lib/browser/extension/web-extension-api.d.ts +13 -34
- package/lib/browser/extension/web-extension-context.d.ts +2 -8
- package/lib/browser/extension/web-extension-context.js +15 -39
- package/lib/browser/extension/web-extension-marks.d.ts +11 -0
- package/lib/browser/extension/web-extension-marks.js +65 -0
- package/lib/browser/extension/web-extension-protocol.d.ts +13 -1
- package/lib/browser/extension/web-extension-protocol.js +4 -0
- package/lib/browser/extension/web-extension-run.d.ts +16 -2
- package/lib/browser/extension/web-extension-run.js +80 -0
- package/lib/browser/extension/web-extensions-running.d.ts +5 -1
- package/lib/browser/extension/web-extensions-running.js +16 -0
- package/lib/browser/extension/web-extensions.d.ts +2 -1
- package/lib/browser/extension/web-extensions.js +3 -0
- package/lib/browser/extension/web-home.js +3 -1
- package/lib/browser/extension/web-host-values.d.ts +67 -0
- package/lib/browser/extension/web-host-values.js +229 -0
- package/lib/browser/extension/web-hosts.d.ts +7 -2
- package/lib/browser/extension/web-hosts.js +16 -4
- package/lib/browser/extension/web-share-ui.d.ts +8 -0
- package/lib/browser/extension/web-share-ui.js +56 -0
- package/lib/browser/extension/web-share.d.ts +19 -0
- package/lib/browser/extension/web-share.js +45 -0
- package/lib/browser/i18n/en/assistant.d.ts +4 -0
- package/lib/browser/i18n/en/assistant.js +4 -0
- package/lib/browser/i18n/en/chat.d.ts +10 -0
- package/lib/browser/i18n/en/chat.js +10 -0
- package/lib/browser/i18n/en/common.d.ts +15 -0
- package/lib/browser/i18n/en/common.js +15 -0
- package/lib/browser/i18n/en/discover.d.ts +11 -1
- package/lib/browser/i18n/en/discover.js +11 -1
- package/lib/browser/i18n/en/settings.d.ts +10 -0
- package/lib/browser/i18n/en/settings.js +10 -0
- package/lib/browser/i18n/ja/assistant.js +4 -0
- package/lib/browser/i18n/ja/chat.js +10 -0
- package/lib/browser/i18n/ja/common.js +15 -0
- package/lib/browser/i18n/ja/discover.js +11 -1
- package/lib/browser/i18n/ja/settings.js +10 -0
- package/lib/browser/i18n/locales.d.ts +51 -2
- package/lib/browser/i18n/messages.d.ts +50 -1
- package/lib/browser/i18n/zh/assistant.js +4 -0
- package/lib/browser/i18n/zh/chat.js +10 -0
- package/lib/browser/i18n/zh/common.js +15 -0
- package/lib/browser/i18n/zh/discover.js +11 -1
- package/lib/browser/i18n/zh/settings.js +10 -0
- package/lib/browser/i18n/zh-tw/assistant.js +4 -0
- package/lib/browser/i18n/zh-tw/chat.js +10 -0
- package/lib/browser/i18n/zh-tw/common.js +15 -0
- package/lib/browser/i18n/zh-tw/discover.js +11 -1
- package/lib/browser/i18n/zh-tw/settings.js +10 -0
- package/lib/browser/launch-art/art-palette.d.ts +42 -0
- package/lib/browser/launch-art/art-palette.js +76 -0
- package/lib/browser/launch-art/cyclic-automaton.d.ts +46 -0
- package/lib/browser/launch-art/cyclic-automaton.js +180 -0
- package/lib/browser/launch-art/fractal-tree.d.ts +44 -0
- package/lib/browser/launch-art/fractal-tree.js +52 -0
- package/lib/browser/launch-art/launch-art.d.ts +99 -0
- package/lib/browser/launch-art/launch-art.js +424 -0
- package/lib/browser/launch-art/launch-sky.d.ts +67 -0
- package/lib/browser/launch-art/launch-sky.js +157 -0
- package/lib/browser/links/clipboard-links.d.ts +86 -0
- package/lib/browser/links/clipboard-links.js +266 -0
- package/lib/browser/links/link-text.d.ts +30 -0
- package/lib/browser/links/link-text.js +100 -0
- package/lib/browser/links/links-protocol.d.ts +12 -1
- package/lib/browser/links/links.d.ts +8 -2
- package/lib/browser/links/links.js +33 -3
- package/lib/browser/markdown/code-renderers.d.ts +4 -0
- package/lib/browser/markdown/code-renderers.js +5 -1
- package/lib/browser/partners/group-picker.js +23 -29
- package/lib/browser/sandbox/sandbox-runtime-code.js +1 -1
- package/lib/browser/sandbox/work/work-senses.js +1 -1
- package/lib/browser/settings/settings-protocol.d.ts +26 -0
- package/lib/browser/settings/settings-protocol.js +12 -1
- package/lib/browser/settings/settings.d.ts +4 -1
- package/lib/browser/settings/settings.js +16 -3
- package/lib/browser/skin/skin-layer.d.ts +9 -0
- package/lib/browser/skin/skin-layer.js +154 -0
- package/lib/browser/skin/skin-util.d.ts +41 -0
- package/lib/browser/skin/skin-util.js +123 -0
- package/lib/browser/style/base.d.ts +1 -1
- package/lib/browser/style/base.js +10 -6
- package/lib/browser/style/chat-list.d.ts +1 -1
- package/lib/browser/style/chat-list.js +28 -15
- package/lib/browser/style/conversation-column.d.ts +1 -1
- package/lib/browser/style/conversation.d.ts +1 -1
- package/lib/browser/style/conversation.js +5 -4
- package/lib/browser/style/dialogs.d.ts +1 -1
- package/lib/browser/style/dialogs.js +2 -5
- package/lib/browser/style/forms.d.ts +6 -0
- package/lib/browser/style/forms.js +68 -0
- package/lib/browser/style/layout.d.ts +1 -1
- package/lib/browser/style/pages.d.ts +1 -1
- package/lib/browser/style/pages.js +14 -24
- package/lib/browser/style/phone.d.ts +1 -1
- package/lib/browser/style/shared.d.ts +1 -1
- package/lib/browser/style/shell.d.ts +1 -1
- package/lib/browser/style/shell.js +1 -6
- package/lib/browser/style/skins.d.ts +10 -0
- package/lib/browser/style/skins.js +110 -0
- package/lib/browser/style/surfaces.d.ts +1 -1
- package/lib/browser/style/surfaces.js +8 -6
- package/lib/browser/style/tasks.d.ts +1 -1
- package/lib/browser/style.js +4 -0
- package/lib/browser/util/fresh-rows.d.ts +22 -0
- package/lib/browser/util/fresh-rows.js +40 -0
- package/lib/browser/util/process.d.ts +12 -22
- package/lib/browser/util/process.js +49 -40
- package/lib/browser/util/voice.d.ts +18 -0
- package/lib/browser/util/voice.js +111 -3
- package/lib/browser/workbench-protocol.d.ts +2 -0
- package/lib/browser/workbench-services.d.ts +2 -0
- package/lib/browser/workbench-services.js +5 -0
- package/lib/browser/workbench.js +5 -0
- package/package.json +8 -8
- package/public/launch.svg +3 -3
|
@@ -115,7 +115,7 @@ export const BROWSER_SENSE_DEVICES = {
|
|
|
115
115
|
return false;
|
|
116
116
|
}
|
|
117
117
|
// A computer has the events and never fires them: only where fingers touch.
|
|
118
|
-
if (!((_a = window.matchMedia) === null || _a === void 0 ? void 0 : _a.call(window, '(
|
|
118
|
+
if (!((_a = window.matchMedia) === null || _a === void 0 ? void 0 : _a.call(window, '(hover: none)').matches)) {
|
|
119
119
|
return false;
|
|
120
120
|
}
|
|
121
121
|
const asks = [window.DeviceOrientationEvent, window.DeviceMotionEvent];
|
|
@@ -9,6 +9,13 @@ export type Language = TaLanguage;
|
|
|
9
9
|
/** How diagrams of replies draw: in the colours of the page, as by hand, a colour to a node, or coming in and flowing. */
|
|
10
10
|
export type DiagramStyle = 'clean' | 'sketch' | 'colour' | 'motion';
|
|
11
11
|
export declare const DIAGRAM_STYLES: readonly DiagramStyle[];
|
|
12
|
+
/** How much of the picture of a skin the columns let through (WebSkinGlass). */
|
|
13
|
+
export type SkinGlass = 'clear' | 'soft' | 'focus';
|
|
14
|
+
export declare const SKIN_GLASSES: readonly SkinGlass[];
|
|
15
|
+
/** `Settings.skin` at first: the first skin there is, so that one the user installs shows. */
|
|
16
|
+
export declare const AUTO_SKIN = "auto";
|
|
17
|
+
/** `Settings.skin` of the user who wants none. */
|
|
18
|
+
export declare const NO_SKIN = "none";
|
|
12
19
|
/** How large the text is, as the font size of WeChat: small, standard, large, extra large. */
|
|
13
20
|
export type FontSize = 'small' | 'standard' | 'large' | 'xlarge';
|
|
14
21
|
/** What each size multiplies the font sizes of the styles by (`--ta-font-scale`, see style/base.ts). */
|
|
@@ -55,6 +62,13 @@ export interface Settings {
|
|
|
55
62
|
taskModel: string;
|
|
56
63
|
reduceMotion: boolean;
|
|
57
64
|
diagramStyle: DiagramStyle;
|
|
65
|
+
/**
|
|
66
|
+
* The skin Ta shows in (WebExtensionAPI.registerSkin, docs/design/ta-skins.md): `<extension id>/<skin id>`, NO_SKIN,
|
|
67
|
+
* or AUTO_SKIN for the first there is.
|
|
68
|
+
*/
|
|
69
|
+
skin: string;
|
|
70
|
+
/** How clear the glass of a skin is. */
|
|
71
|
+
glass: SkinGlass;
|
|
58
72
|
/** The names of the built-in web extensions turned off; the others are on. */
|
|
59
73
|
builtinsOff: string[];
|
|
60
74
|
/**
|
|
@@ -62,6 +76,8 @@ export interface Settings {
|
|
|
62
76
|
* `github.com`, `*.github.com`, `localhost:3000`, or `*` for all. This machine always is.
|
|
63
77
|
*/
|
|
64
78
|
trustedDomains: string[];
|
|
79
|
+
/** Links of Ta the user copied are offered as Ta comes back, and those pasted, with Open (ClipboardLinks). On at first. */
|
|
80
|
+
clipboardLinks: boolean;
|
|
65
81
|
/** Which pages of web extensions are in the navigation, and which under Discover. */
|
|
66
82
|
navigation: NavigationSetting;
|
|
67
83
|
/** How long an extension started on open keeps running once left, before it stops (ta-launcher.md). */
|
|
@@ -89,6 +105,8 @@ export interface SettingsState {
|
|
|
89
105
|
chatFontScale: number;
|
|
90
106
|
/** Also when the system asks for it. */
|
|
91
107
|
reduceMotion: boolean;
|
|
108
|
+
/** The colour of the window, which a skin that shows gives it (ShownLook.color); else that of the theme. */
|
|
109
|
+
skinColor?: string;
|
|
92
110
|
}
|
|
93
111
|
/** What `keepAliveMinutes` may be. */
|
|
94
112
|
export declare const KEEP_ALIVE_CHOICES: readonly number[];
|
|
@@ -113,8 +131,16 @@ export declare namespace SettingsUtil {
|
|
|
113
131
|
function language(setting: LanguageSetting, browserLanguage: string): Language;
|
|
114
132
|
}
|
|
115
133
|
/** The settings of the web client: theme, language, font size, voice, motion. They apply as soon as they change. */
|
|
134
|
+
/** How a skin that shows wants the page (SkinLayer): its tone over the user's theme, and the window in its colour. */
|
|
135
|
+
export interface ShownLook {
|
|
136
|
+
theme: Theme;
|
|
137
|
+
/** Of the window and the bar of the browser (theme-color), opaque. */
|
|
138
|
+
color: string;
|
|
139
|
+
}
|
|
116
140
|
export interface TaSettings {
|
|
117
141
|
readonly state: SettingsState;
|
|
118
142
|
update(change: Partial<Settings>): void;
|
|
119
143
|
subscribe(listener: (state: SettingsState) => void): () => void;
|
|
144
|
+
/** The look of a skin, over the theme of the settings, until it is undefined again. */
|
|
145
|
+
show(look: ShownLook | undefined): void;
|
|
120
146
|
}
|
|
@@ -2,6 +2,11 @@ import { TA_WEB_SETTINGS_DATA, TaDelegateUtil, TaLanguageUtil } from '@celljs/ta
|
|
|
2
2
|
import { DEFAULT_NAVIGATION, NavigationUtil } from './navigation.js';
|
|
3
3
|
export const TaSettings = Symbol('TaSettings');
|
|
4
4
|
export const DIAGRAM_STYLES = ['clean', 'sketch', 'colour', 'motion'];
|
|
5
|
+
export const SKIN_GLASSES = ['clear', 'soft', 'focus'];
|
|
6
|
+
/** `Settings.skin` at first: the first skin there is, so that one the user installs shows. */
|
|
7
|
+
export const AUTO_SKIN = 'auto';
|
|
8
|
+
/** `Settings.skin` of the user who wants none. */
|
|
9
|
+
export const NO_SKIN = 'none';
|
|
5
10
|
/** What each size multiplies the font sizes of the styles by (`--ta-font-scale`, see style/base.ts). */
|
|
6
11
|
export const FONT_SCALES = { small: 0.9, standard: 1, large: 1.12, xlarge: 1.25 };
|
|
7
12
|
/**
|
|
@@ -35,8 +40,11 @@ export const DEFAULT_SETTINGS = {
|
|
|
35
40
|
taskModel: '',
|
|
36
41
|
reduceMotion: false,
|
|
37
42
|
diagramStyle: 'clean',
|
|
43
|
+
skin: AUTO_SKIN,
|
|
44
|
+
glass: 'soft',
|
|
38
45
|
builtinsOff: [],
|
|
39
46
|
trustedDomains: [],
|
|
47
|
+
clipboardLinks: true,
|
|
40
48
|
navigation: DEFAULT_NAVIGATION,
|
|
41
49
|
keepAliveMinutes: 5,
|
|
42
50
|
chatFoldDays: 7,
|
|
@@ -84,8 +92,11 @@ export var SettingsUtil;
|
|
|
84
92
|
taskModel: modelRef(kept.taskModel),
|
|
85
93
|
reduceMotion: kept.reduceMotion === true,
|
|
86
94
|
diagramStyle: DIAGRAM_STYLES.includes(kept.diagramStyle) ? kept.diagramStyle : DEFAULT_SETTINGS.diagramStyle,
|
|
95
|
+
skin: typeof kept.skin === 'string' && kept.skin ? kept.skin : AUTO_SKIN,
|
|
96
|
+
glass: SKIN_GLASSES.includes(kept.glass) ? kept.glass : DEFAULT_SETTINGS.glass,
|
|
87
97
|
builtinsOff: strings(kept.builtinsOff),
|
|
88
98
|
trustedDomains: strings(kept.trustedDomains),
|
|
99
|
+
clipboardLinks: kept.clipboardLinks !== false,
|
|
89
100
|
navigation: NavigationUtil.parse(kept.navigation),
|
|
90
101
|
keepAliveMinutes: choice(kept.keepAliveMinutes, KEEP_ALIVE_CHOICES, DEFAULT_SETTINGS.keepAliveMinutes),
|
|
91
102
|
chatFoldDays: choice(kept.chatFoldDays, CHAT_FOLD_CHOICES, DEFAULT_SETTINGS.chatFoldDays),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LocaleManager } from '@celljs/widget';
|
|
2
2
|
import { TaState } from '../state/state-protocol.js';
|
|
3
3
|
import { TaWorkbench } from '../workbench-protocol.js';
|
|
4
|
-
import { type Settings, type SettingsState, TaSettings } from './settings-protocol.js';
|
|
4
|
+
import { type Settings, type SettingsState, type ShownLook, TaSettings } from './settings-protocol.js';
|
|
5
5
|
/**
|
|
6
6
|
* The colours of the conversation (--ta-main) and of the side columns (--ta-side), for the bar of the
|
|
7
7
|
* browser and the title bar of the installed app.
|
|
@@ -21,6 +21,8 @@ export declare class TaSettingsImpl implements TaSettings {
|
|
|
21
21
|
protected readonly persisted: TaState;
|
|
22
22
|
protected readonly workbench: TaWorkbench;
|
|
23
23
|
protected current: SettingsState;
|
|
24
|
+
/** That of a skin that shows (show). */
|
|
25
|
+
protected shownLook?: ShownLook;
|
|
24
26
|
/** The settings kept for the computer signed in to; the page may show another look (shown). */
|
|
25
27
|
protected kept: Settings;
|
|
26
28
|
protected readonly listeners: Set<(state: SettingsState) => void>;
|
|
@@ -30,6 +32,7 @@ export declare class TaSettingsImpl implements TaSettings {
|
|
|
30
32
|
protected init(): void;
|
|
31
33
|
update(change: Partial<Settings>): void;
|
|
32
34
|
subscribe(listener: (state: SettingsState) => void): () => void;
|
|
35
|
+
show(look: ShownLook | undefined): void;
|
|
33
36
|
protected resolve(settings: Settings): SettingsState;
|
|
34
37
|
/** Signed in, the settings kept for the computer; else those with the look the page had last. */
|
|
35
38
|
protected shown(settings: Settings): Settings;
|
|
@@ -59,14 +59,25 @@ let TaSettingsImpl = class TaSettingsImpl {
|
|
|
59
59
|
this.listeners.add(listener);
|
|
60
60
|
return () => this.listeners.delete(listener);
|
|
61
61
|
}
|
|
62
|
+
show(look) {
|
|
63
|
+
var _a, _b;
|
|
64
|
+
if ((look === null || look === void 0 ? void 0 : look.theme) === ((_a = this.shownLook) === null || _a === void 0 ? void 0 : _a.theme) && (look === null || look === void 0 ? void 0 : look.color) === ((_b = this.shownLook) === null || _b === void 0 ? void 0 : _b.color)) {
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
this.shownLook = look;
|
|
68
|
+
this.apply(this.kept);
|
|
69
|
+
}
|
|
62
70
|
resolve(settings) {
|
|
71
|
+
var _a;
|
|
72
|
+
var _b;
|
|
63
73
|
return {
|
|
64
74
|
settings,
|
|
65
|
-
theme: SettingsUtil.theme(settings.theme, this.dark.matches),
|
|
75
|
+
theme: (_b = (_a = this.shownLook) === null || _a === void 0 ? void 0 : _a.theme) !== null && _b !== void 0 ? _b : SettingsUtil.theme(settings.theme, this.dark.matches),
|
|
66
76
|
language: SettingsUtil.language(settings.language, navigator.language),
|
|
67
77
|
fontScale: FONT_SCALES[settings.fontSize],
|
|
68
78
|
chatFontScale: FONT_SCALES[settings.chatFontSize],
|
|
69
79
|
reduceMotion: settings.reduceMotion || this.calm.matches,
|
|
80
|
+
...(this.shownLook ? { skinColor: this.shownLook.color } : {}),
|
|
70
81
|
};
|
|
71
82
|
}
|
|
72
83
|
/** Signed in, the settings kept for the computer; else those with the look the page had last. */
|
|
@@ -74,6 +85,7 @@ let TaSettingsImpl = class TaSettingsImpl {
|
|
|
74
85
|
return this.workbench.state.host === undefined ? { ...settings, ...this.persisted.get(SettingsUtil.LOOK) } : settings;
|
|
75
86
|
}
|
|
76
87
|
apply(kept) {
|
|
88
|
+
var _a, _b;
|
|
77
89
|
const state = this.resolve(this.shown(kept));
|
|
78
90
|
this.kept = kept;
|
|
79
91
|
this.current = state;
|
|
@@ -94,9 +106,10 @@ let TaSettingsImpl = class TaSettingsImpl {
|
|
|
94
106
|
meta.name = 'theme-color';
|
|
95
107
|
document.head.appendChild(meta);
|
|
96
108
|
}
|
|
97
|
-
|
|
109
|
+
// Under a skin, the window is its colour: what shows for a moment where the page has not drawn is the picture's, never black.
|
|
110
|
+
meta.content = (_a = state.skinColor) !== null && _a !== void 0 ? _a : THEME_COLORS[state.theme].main;
|
|
98
111
|
// The bar of WeChat's mini program over the page: the colour at the top of the chats, its first page (--ta-side).
|
|
99
|
-
MiniProgram.paint(THEME_COLORS[state.theme].side, state.theme === 'dark');
|
|
112
|
+
MiniProgram.paint((_b = state.skinColor) !== null && _b !== void 0 ? _b : THEME_COLORS[state.theme].side, state.theme === 'dark');
|
|
100
113
|
// Even the current one: a language whose messages still load (Japanese, Traditional Chinese) is selected once
|
|
101
114
|
// they are there, unless another is asked for meanwhile.
|
|
102
115
|
void this.localeManager.get().then(locales => {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The skin the user picked (Settings.skin, docs/design/ta-skins.md), behind the page: its backdrop over the picture it
|
|
4
|
+
* kept, in the colour it gives, faded in once it draws; the page in its tone and its colours (style/skins.ts), the
|
|
5
|
+
* window in its colour (TaSettings.show). Another skin, or its extension loaded again, fades in over the one before,
|
|
6
|
+
* which goes once it is in: the window never shows blank between them.
|
|
7
|
+
*/
|
|
8
|
+
export declare function SkinLayer(): React.JSX.Element | null;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ExtensionBoundary } from '../extension/extension-view.js';
|
|
3
|
+
import { usePersisted, useSettings, useWebExtensions } from '../hooks.js';
|
|
4
|
+
import { SettingsUtil } from '../settings/settings-protocol.js';
|
|
5
|
+
import { SkinUtil } from './skin-util.js';
|
|
6
|
+
/** A backdrop that never says it is ready is shown after this long. */
|
|
7
|
+
const READY_AT_LATEST_MS = 4000;
|
|
8
|
+
/** As the fade of .ta-skin-live: the backdrop before is let go once the new one is in. */
|
|
9
|
+
const FADE_MS = 1000;
|
|
10
|
+
let nextLayer = 0;
|
|
11
|
+
/** Normalizes any CSS colour to `#rrggbb` with a canvas of the page. */
|
|
12
|
+
function normalize(color) {
|
|
13
|
+
const context = document.createElement('canvas').getContext('2d');
|
|
14
|
+
if (!context) {
|
|
15
|
+
return undefined;
|
|
16
|
+
}
|
|
17
|
+
context.fillStyle = '#000';
|
|
18
|
+
context.fillStyle = color;
|
|
19
|
+
return String(context.fillStyle);
|
|
20
|
+
}
|
|
21
|
+
function usePrefersDark() {
|
|
22
|
+
return React.useSyncExternalStore(listener => {
|
|
23
|
+
const query = matchMedia('(prefers-color-scheme: dark)');
|
|
24
|
+
query.addEventListener('change', listener);
|
|
25
|
+
return () => query.removeEventListener('change', listener);
|
|
26
|
+
}, () => matchMedia('(prefers-color-scheme: dark)').matches);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* The skin the user picked (Settings.skin, docs/design/ta-skins.md), behind the page: its backdrop over the picture it
|
|
30
|
+
* kept, in the colour it gives, faded in once it draws; the page in its tone and its colours (style/skins.ts), the
|
|
31
|
+
* window in its colour (TaSettings.show). Another skin, or its extension loaded again, fades in over the one before,
|
|
32
|
+
* which goes once it is in: the window never shows blank between them.
|
|
33
|
+
*/
|
|
34
|
+
export function SkinLayer() {
|
|
35
|
+
const [{ skins }] = useWebExtensions();
|
|
36
|
+
const [state, settings] = useSettings();
|
|
37
|
+
const [kept, keep] = usePersisted(SkinUtil.PICTURE);
|
|
38
|
+
const prefersDark = usePrefersDark();
|
|
39
|
+
const entry = SkinUtil.pick(skins, state.settings.skin);
|
|
40
|
+
const [asked, setAsked] = React.useState();
|
|
41
|
+
const tone = entry && SkinUtil.tone((asked === null || asked === void 0 ? void 0 : asked.skin) === entry.id ? asked.tone : undefined, entry.skin, SettingsUtil.theme(state.settings.theme, prefersDark));
|
|
42
|
+
const colors = entry && tone ? entry.skin.colors[tone] : undefined;
|
|
43
|
+
const skinId = entry === null || entry === void 0 ? void 0 : entry.id;
|
|
44
|
+
const [base, glassColor, ink, accent] = [colors === null || colors === void 0 ? void 0 : colors.base, colors === null || colors === void 0 ? void 0 : colors.glass, colors === null || colors === void 0 ? void 0 : colors.ink, colors === null || colors === void 0 ? void 0 : colors.accent];
|
|
45
|
+
const variables = React.useMemo(() => (base === undefined ? undefined : SkinUtil.variables({ base, glass: glassColor, ink, accent }, normalize)), [base, glassColor, ink, accent]);
|
|
46
|
+
const glass = state.settings.glass;
|
|
47
|
+
const softens = !!(entry === null || entry === void 0 ? void 0 : entry.skin.softens);
|
|
48
|
+
React.useLayoutEffect(() => {
|
|
49
|
+
if (!skinId || !tone || !variables) {
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
const root = document.documentElement;
|
|
53
|
+
root.setAttribute('data-ta-skin', skinId);
|
|
54
|
+
root.setAttribute('data-ta-glass', glass);
|
|
55
|
+
root.toggleAttribute('data-ta-skin-softens', softens);
|
|
56
|
+
for (const [name, value] of Object.entries(variables)) {
|
|
57
|
+
root.style.setProperty(name, value);
|
|
58
|
+
}
|
|
59
|
+
settings.show({ theme: tone, color: variables['--ta-skin-base'] });
|
|
60
|
+
return () => {
|
|
61
|
+
root.removeAttribute('data-ta-skin');
|
|
62
|
+
root.removeAttribute('data-ta-glass');
|
|
63
|
+
root.removeAttribute('data-ta-skin-softens');
|
|
64
|
+
for (const name of SkinUtil.VARIABLES) {
|
|
65
|
+
root.style.removeProperty(name);
|
|
66
|
+
}
|
|
67
|
+
settings.show(undefined);
|
|
68
|
+
};
|
|
69
|
+
}, [skinId, tone, variables, glass, softens, settings]);
|
|
70
|
+
const [layers, setLayers] = React.useState([]);
|
|
71
|
+
React.useEffect(() => {
|
|
72
|
+
setLayers(current => {
|
|
73
|
+
if (!entry) {
|
|
74
|
+
return current.length ? [] : current;
|
|
75
|
+
}
|
|
76
|
+
const top = current.at(-1);
|
|
77
|
+
if (top && top.entry.id === entry.id && top.entry.skin.backdrop === entry.skin.backdrop) {
|
|
78
|
+
return top.entry === entry ? current : [...current.slice(0, -1), { ...top, entry }];
|
|
79
|
+
}
|
|
80
|
+
return [...current, { key: ++nextLayer, entry, ready: false }];
|
|
81
|
+
});
|
|
82
|
+
}, [entry]);
|
|
83
|
+
const top = layers.at(-1);
|
|
84
|
+
// The one before goes once the new one is in.
|
|
85
|
+
React.useEffect(() => {
|
|
86
|
+
if (!(top === null || top === void 0 ? void 0 : top.ready) || layers.length < 2) {
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
const timer = setTimeout(() => setLayers(current => current.filter(layer => layer.key >= top.key)), FADE_MS);
|
|
90
|
+
return () => clearTimeout(timer);
|
|
91
|
+
}, [top, layers.length]);
|
|
92
|
+
const ready = React.useCallback((key) => setLayers(current => current.map(layer => (layer.key === key && !layer.ready ? { ...layer, ready: true } : layer))), []);
|
|
93
|
+
if (!entry || !tone || !layers.length) {
|
|
94
|
+
return null;
|
|
95
|
+
}
|
|
96
|
+
const picture = (kept === null || kept === void 0 ? void 0 : kept.skin) === entry.id ? kept.picture : undefined;
|
|
97
|
+
return (React.createElement("div", { className: "ta-skin", inert: true, "aria-hidden": "true", style: picture ? { backgroundImage: `url("${picture}")` } : undefined }, layers.map(layer => (React.createElement(SkinBackdrop, { key: layer.key, layer: layer, tone: tone, glass: glass, top: layer === top, onReady: ready, onTone: next => setAsked({ skin: layer.entry.id, tone: next }), onKeep: picture => SkinUtil.keepable(picture) && keep({ skin: layer.entry.id, picture }) })))));
|
|
98
|
+
}
|
|
99
|
+
function SkinBackdrop({ layer, tone, glass, top, onReady, onTone, onKeep }) {
|
|
100
|
+
const calls = React.useRef({ top, onReady, onTone, onKeep });
|
|
101
|
+
calls.current = { top, onReady, onTone, onKeep };
|
|
102
|
+
const { key } = layer;
|
|
103
|
+
React.useEffect(() => {
|
|
104
|
+
const timer = setTimeout(() => calls.current.onReady(key), READY_AT_LATEST_MS);
|
|
105
|
+
return () => clearTimeout(timer);
|
|
106
|
+
}, [key]);
|
|
107
|
+
const own = React.useMemo(() => ({
|
|
108
|
+
setTone: next => calls.current.top && calls.current.onTone(next),
|
|
109
|
+
areas: () => SkinUtil.areas(document),
|
|
110
|
+
ready: () => calls.current.onReady(key),
|
|
111
|
+
keep: picture => calls.current.onKeep(picture),
|
|
112
|
+
}), [key]);
|
|
113
|
+
const Backdrop = layer.entry.skin.backdrop;
|
|
114
|
+
return (React.createElement("div", { className: layer.ready ? 'ta-skin-live ta-skin-ready' : 'ta-skin-live' },
|
|
115
|
+
React.createElement(ExtensionBoundary, { name: layer.entry.extension, extension: layer.entry.extension, resetKey: Backdrop, fallback: null },
|
|
116
|
+
React.createElement(Backdrop, { ...own, tone: tone, glass: glass }))));
|
|
117
|
+
}
|
|
118
|
+
//# sourceMappingURL=skin-layer.js.map
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { WebSkin, WebSkinAreas, WebSkinColors, WebSkinEntry, WebSkinRect } from '../extension/web-extension-api.js';
|
|
2
|
+
import { type Theme } from '../settings/settings-protocol.js';
|
|
3
|
+
import type { StateSpec } from '../state/state-protocol.js';
|
|
4
|
+
/** The picture of the skin that showed last, on this device (WebSkinBackdropProps.keep). */
|
|
5
|
+
export interface KeptSkinPicture {
|
|
6
|
+
/** WebSkinEntry.id. */
|
|
7
|
+
skin: string;
|
|
8
|
+
/** A `data:` URL. */
|
|
9
|
+
picture: string;
|
|
10
|
+
}
|
|
11
|
+
/** What the page does with a skin (docs/design/ta-skins.md): which shows, in which tone, its colours, where it is read over. */
|
|
12
|
+
export declare namespace SkinUtil {
|
|
13
|
+
/** Where words are read over the picture: the conversation, the message box, the settings. */
|
|
14
|
+
const READ = ".ta-thread, .ta-console-box, .ta-settings-scroll";
|
|
15
|
+
/** Columns that cover it: the lists beside, the workbench, the navigation. */
|
|
16
|
+
const COVER = ".ta-chats, .ta-side-view, .ta-editors, .ta-rail, .ta-tabbar";
|
|
17
|
+
/** One picture for the device, of the skin that showed last: a skin chosen again shows its own once it keeps one. */
|
|
18
|
+
const PICTURE: StateSpec<KeptSkinPicture | undefined>;
|
|
19
|
+
/** The skin of `setting` (Settings.skin): none for NO_SKIN or one that is not there (its extension is not on this device), the first for AUTO_SKIN. */
|
|
20
|
+
function pick(skins: readonly WebSkinEntry[], setting: string): WebSkinEntry | undefined;
|
|
21
|
+
/** The tone the page shows in: the one its backdrop asked for, else its own, else the user's theme. */
|
|
22
|
+
function tone(asked: Theme | undefined, skin: WebSkin, theme: Theme): Theme;
|
|
23
|
+
/** A picture fit to keep: a picture, not too long. */
|
|
24
|
+
function keepable(picture: unknown): picture is string;
|
|
25
|
+
/** `#rrggbb` of `#rgb`, `#rrggbb` or `rgb(r, g, b)`; otherwise what `normalize` makes of it (a canvas of the page), else undefined. */
|
|
26
|
+
function hex(color: string | undefined, normalize?: (color: string) => string | undefined): string | undefined;
|
|
27
|
+
/** Whether words on `#rrggbb` should be dark. */
|
|
28
|
+
function light(hex: string): boolean;
|
|
29
|
+
/**
|
|
30
|
+
* The variables of the root for the colours of a tone (style/skins.ts makes the theme of them): those left out are
|
|
31
|
+
* not set, so that the style's own stand; the words on the accent dark or light as it is.
|
|
32
|
+
*/
|
|
33
|
+
function variables(colors: WebSkinColors, normalize?: (color: string) => string | undefined): Record<string, string>;
|
|
34
|
+
/** Every variable `variables` may set, to take them off again. */
|
|
35
|
+
const VARIABLES: string[];
|
|
36
|
+
/** The rectangles of what `selector` finds that can be seen in the window. */
|
|
37
|
+
function rects(root: ParentNode, selector: string, width: number, height: number): WebSkinRect[];
|
|
38
|
+
/** Where words are read and where columns cover the picture, in the window now. */
|
|
39
|
+
function areas(document: Document): WebSkinAreas;
|
|
40
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { AUTO_SKIN, NO_SKIN } from '../settings/settings-protocol.js';
|
|
2
|
+
/** The longest a picture kept may be, as text: a JPEG some 480 pixels wide is a tenth of it. */
|
|
3
|
+
const MAX_PICTURE = 400000;
|
|
4
|
+
/** What the page does with a skin (docs/design/ta-skins.md): which shows, in which tone, its colours, where it is read over. */
|
|
5
|
+
export var SkinUtil;
|
|
6
|
+
(function (SkinUtil) {
|
|
7
|
+
/** Where words are read over the picture: the conversation, the message box, the settings. */
|
|
8
|
+
SkinUtil.READ = '.ta-thread, .ta-console-box, .ta-settings-scroll';
|
|
9
|
+
/** Columns that cover it: the lists beside, the workbench, the navigation. */
|
|
10
|
+
SkinUtil.COVER = '.ta-chats, .ta-side-view, .ta-editors, .ta-rail, .ta-tabbar';
|
|
11
|
+
/** One picture for the device, of the skin that showed last: a skin chosen again shows its own once it keeps one. */
|
|
12
|
+
SkinUtil.PICTURE = {
|
|
13
|
+
key: 'skin.picture',
|
|
14
|
+
tier: 'device',
|
|
15
|
+
initial: undefined,
|
|
16
|
+
parse: value => {
|
|
17
|
+
const kept = value;
|
|
18
|
+
return typeof (kept === null || kept === void 0 ? void 0 : kept.skin) === 'string' && typeof kept.picture === 'string' && kept.picture.startsWith('data:image/')
|
|
19
|
+
? kept
|
|
20
|
+
: undefined;
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
/** The skin of `setting` (Settings.skin): none for NO_SKIN or one that is not there (its extension is not on this device), the first for AUTO_SKIN. */
|
|
24
|
+
function pick(skins, setting) {
|
|
25
|
+
if (setting === NO_SKIN) {
|
|
26
|
+
return undefined;
|
|
27
|
+
}
|
|
28
|
+
return setting === AUTO_SKIN ? skins[0] : skins.find(entry => entry.id === setting);
|
|
29
|
+
}
|
|
30
|
+
SkinUtil.pick = pick;
|
|
31
|
+
/** The tone the page shows in: the one its backdrop asked for, else its own, else the user's theme. */
|
|
32
|
+
function tone(asked, skin, theme) {
|
|
33
|
+
var _a;
|
|
34
|
+
return (_a = asked !== null && asked !== void 0 ? asked : skin.tone) !== null && _a !== void 0 ? _a : theme;
|
|
35
|
+
}
|
|
36
|
+
SkinUtil.tone = tone;
|
|
37
|
+
/** A picture fit to keep: a picture, not too long. */
|
|
38
|
+
function keepable(picture) {
|
|
39
|
+
return typeof picture === 'string' && picture.startsWith('data:image/') && picture.length <= MAX_PICTURE;
|
|
40
|
+
}
|
|
41
|
+
SkinUtil.keepable = keepable;
|
|
42
|
+
/** `#rrggbb` of `#rgb`, `#rrggbb` or `rgb(r, g, b)`; otherwise what `normalize` makes of it (a canvas of the page), else undefined. */
|
|
43
|
+
function hex(color, normalize) {
|
|
44
|
+
var _a;
|
|
45
|
+
const value = (_a = color === null || color === void 0 ? void 0 : color.trim().toLowerCase()) !== null && _a !== void 0 ? _a : '';
|
|
46
|
+
const short = /^#([0-9a-f])([0-9a-f])([0-9a-f])$/.exec(value);
|
|
47
|
+
if (short) {
|
|
48
|
+
return `#${short[1]}${short[1]}${short[2]}${short[2]}${short[3]}${short[3]}`;
|
|
49
|
+
}
|
|
50
|
+
if (/^#[0-9a-f]{6}$/.test(value)) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
const rgb = /^rgba?\(\s*(\d+)[\s,]+(\d+)[\s,]+(\d+)\s*(?:[,/]\s*[\d.]+%?\s*)?\)$/.exec(value);
|
|
54
|
+
if (rgb) {
|
|
55
|
+
return `#${rgb
|
|
56
|
+
.slice(1, 4)
|
|
57
|
+
.map(part => Math.min(255, Number(part)).toString(16).padStart(2, '0'))
|
|
58
|
+
.join('')}`;
|
|
59
|
+
}
|
|
60
|
+
const made = value && (normalize === null || normalize === void 0 ? void 0 : normalize(value));
|
|
61
|
+
return made && /^#[0-9a-f]{6}$/.test(made) ? made : undefined;
|
|
62
|
+
}
|
|
63
|
+
SkinUtil.hex = hex;
|
|
64
|
+
/** Whether words on `#rrggbb` should be dark. */
|
|
65
|
+
function light(hex) {
|
|
66
|
+
const [r, g, b] = [1, 3, 5]
|
|
67
|
+
.map(at => Number.parseInt(hex.slice(at, at + 2), 16) / 255)
|
|
68
|
+
.map(c => (c <= 0.04045 ? c / 12.92 : ((c + 0.055) / 1.055) ** 2.4));
|
|
69
|
+
return 0.2126 * r + 0.7152 * g + 0.0722 * b > 0.4;
|
|
70
|
+
}
|
|
71
|
+
SkinUtil.light = light;
|
|
72
|
+
/**
|
|
73
|
+
* The variables of the root for the colours of a tone (style/skins.ts makes the theme of them): those left out are
|
|
74
|
+
* not set, so that the style's own stand; the words on the accent dark or light as it is.
|
|
75
|
+
*/
|
|
76
|
+
function variables(colors, normalize) {
|
|
77
|
+
var _a;
|
|
78
|
+
const base = (_a = hex(colors.base, normalize)) !== null && _a !== void 0 ? _a : '#808080';
|
|
79
|
+
const out = { '--ta-skin-base': base };
|
|
80
|
+
const glass = hex(colors.glass, normalize);
|
|
81
|
+
const ink = hex(colors.ink, normalize);
|
|
82
|
+
const accent = hex(colors.accent, normalize);
|
|
83
|
+
if (glass) {
|
|
84
|
+
out['--ta-skin-glass'] = glass;
|
|
85
|
+
}
|
|
86
|
+
if (ink) {
|
|
87
|
+
out['--ta-skin-ink'] = ink;
|
|
88
|
+
}
|
|
89
|
+
if (accent) {
|
|
90
|
+
out['--ta-skin-accent'] = accent;
|
|
91
|
+
out['--ta-skin-on-accent'] = light(accent) ? '#1a1a1a' : '#ffffff';
|
|
92
|
+
}
|
|
93
|
+
return out;
|
|
94
|
+
}
|
|
95
|
+
SkinUtil.variables = variables;
|
|
96
|
+
/** Every variable `variables` may set, to take them off again. */
|
|
97
|
+
SkinUtil.VARIABLES = ['--ta-skin-base', '--ta-skin-glass', '--ta-skin-ink', '--ta-skin-accent', '--ta-skin-on-accent'];
|
|
98
|
+
/** The rectangles of what `selector` finds that can be seen in the window. */
|
|
99
|
+
function rects(root, selector, width, height) {
|
|
100
|
+
const out = [];
|
|
101
|
+
for (const element of root.querySelectorAll(selector)) {
|
|
102
|
+
const box = element.getBoundingClientRect();
|
|
103
|
+
if (box.width > 1 && box.height > 1 && box.right > 0 && box.bottom > 0 && box.left < width && box.top < height) {
|
|
104
|
+
out.push({ left: box.left, top: box.top, right: box.right, bottom: box.bottom });
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
return out;
|
|
108
|
+
}
|
|
109
|
+
SkinUtil.rects = rects;
|
|
110
|
+
/** Where words are read and where columns cover the picture, in the window now. */
|
|
111
|
+
function areas(document) {
|
|
112
|
+
var _a, _b;
|
|
113
|
+
const view = document.defaultView;
|
|
114
|
+
const width = (_a = view === null || view === void 0 ? void 0 : view.innerWidth) !== null && _a !== void 0 ? _a : 0;
|
|
115
|
+
const height = (_b = view === null || view === void 0 ? void 0 : view.innerHeight) !== null && _b !== void 0 ? _b : 0;
|
|
116
|
+
return { read: rects(document, SkinUtil.READ, width, height), cover: rects(document, SkinUtil.COVER, width, height) };
|
|
117
|
+
}
|
|
118
|
+
SkinUtil.areas = areas;
|
|
119
|
+
})(SkinUtil || (SkinUtil = {}));
|
|
120
|
+
//# sourceMappingURL=skin-util.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** Tokens of the theme, controls, levels. */
|
|
2
|
-
export declare const BASE_STYLE = "\n:root, :root[data-theme='dark'] {\n --ta-main: #141416;\n --ta-side: #1c1c1e;\n --ta-card: #1a1a1c;\n --ta-input: #1a1a1a;\n --ta-raised: #242426;\n --ta-user: #2a2a2d;\n --ta-hover: #2a2a2e;\n --ta-hover-strong: #333338;\n --ta-selected: #2c2c31;\n --ta-chip: #2a2a2e;\n /* The chosen segment of a segmented control, on a track of --ta-raised: above it, lighter in the dark. */\n --ta-segment: #333338;\n --ta-border: #2e2e33;\n --ta-border-muted: #232328;\n --ta-border-field: #3d3d45;\n --ta-border-focus: #8a8a96;\n --ta-text: #e5e5e5;\n --ta-body: #d4d4d6;\n --ta-secondary: #a3a3a3;\n --ta-muted: #7c7c82;\n --ta-brand: #e5e5e5;\n --ta-brand-text: #1a1a1a;\n --ta-accent: #34d399;\n --ta-link: #4dabf7;\n --ta-green: #4ade80;\n --ta-red: #f87171;\n --ta-yellow: #fbbf24;\n --ta-blue: #60a5fa;\n --ta-code: #161618;\n --ta-add: rgba(74, 222, 128, 0.1);\n --ta-remove: rgba(248, 113, 113, 0.1);\n --ta-shadow-pop: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04);\n --ta-shadow-composer: 0 12px 32px rgba(0, 0, 0, 0.32);\n --ta-scrollbar: rgba(255, 255, 255, 0.12);\n color-scheme: dark;\n}\n:root[data-theme='light'] {\n --ta-main: #ffffff;\n --ta-side: #f5f5f7;\n --ta-card: #ffffff;\n --ta-input: #ffffff;\n --ta-raised: #f3f3f5;\n --ta-user: #f2f2f2;\n --ta-hover: #ebebf0;\n --ta-hover-strong: #e2e2e8;\n --ta-selected: #e6e6ea;\n --ta-chip: #ececf0;\n --ta-segment: #ffffff;\n --ta-border: #dcdee3;\n --ta-border-muted: #e8eaed;\n --ta-border-field: #c9ccd4;\n --ta-border-focus: #6b6e76;\n --ta-text: #1a1a1a;\n --ta-body: #33363b;\n --ta-secondary: #5c5c5c;\n --ta-muted: #8e8e93;\n --ta-brand: #1a1a1a;\n --ta-brand-text: #ffffff;\n --ta-accent: #10a372;\n --ta-link: #1677ff;\n --ta-green: #16a34a;\n --ta-red: #e5484d;\n --ta-yellow: #d97706;\n --ta-blue: #1677ff;\n --ta-code: #f7f8fa;\n --ta-add: rgba(34, 197, 94, 0.1);\n --ta-remove: rgba(239, 68, 68, 0.08);\n --ta-shadow-pop: 0 16px 40px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(15, 23, 42, 0.05);\n --ta-shadow-composer: 0 8px 24px rgba(15, 23, 42, 0.07);\n --ta-scrollbar: rgba(0, 0, 0, 0.14);\n color-scheme: light;\n}\n:root {\n /** The height of the title bar the page draws itself; see .ta-titlebar. */\n --ta-titlebar: 0px;\n /**\n * Under a title bar every column keeps a gap of 3px below it, and the first row of each rises into the rest of\n * its head, centred on the tabs of the workbench (34px high, below the gap) rather than on a head of 56px:\n * 28px - 3px - 17px. The search of the sidebar, 40px high, so starts right under the bar, none of it hidden.\n */\n --ta-top-gap: min(3px, var(--ta-titlebar));\n --ta-lift: min(8px, var(--ta-titlebar));\n --ta-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;\n --ta-mono: 'SF Mono', Menlo, Monaco, Consolas, 'Courier New', monospace;\n --ta-col: 760px;\n --ta-ease: cubic-bezier(0.2, 0.8, 0.2, 1);\n /* The font sizes of the settings (TaSettingsImpl sets the first two). Every font size in px is written\n calc(13px * var(--ta-font-scale)), line heights in px too: the page's size (more on a phone, see\n style/device.ts), and in a conversation (.ta-conversation: its messages and the field of its message\n box) that of conversations on top of it. */\n --ta-page-font-scale: 1;\n --ta-chat-font-scale: 1;\n --ta-device-font-scale: 1;\n --ta-font-scale: calc(var(--ta-device-font-scale) * var(--ta-page-font-scale));\n /* How wide the content of a page is (the pages of Discover, Extensions): a column of rows, a feed or a\n form; or wide, for cards and tiles side by side. Web extensions use them too. */\n --ta-page-width: 720px;\n --ta-page-wide: 880px;\n}\n.ta-conversation { --ta-font-scale: calc(var(--ta-device-font-scale) * var(--ta-page-font-scale) * var(--ta-chat-font-scale)); font-size: calc(14px * var(--ta-font-scale)); }\n* { box-sizing: border-box; }\nhtml, body, #cell-root, #root { height: 100%; margin: 0; }\n/* The page and its scrolling areas do not bounce at the ends. Only scrolling areas of their own: on any\n other element (one with overflow: hidden is a scroll container too) it stops the wheel from reaching\n the area under it, and nothing scrolls while the pointer is over a card or a code block. */\nhtml, body, .ta-scroll, .ta-chat-scroll, .ta-side-scroll, .ta-rail-items, .ta-side-view-body, .ta-editor-body,\n.ta-workbench-launcher, .ta-workbench-menu, .ta-settings-scroll, .ta-settings-toc, .ta-pick-list, .ta-commands,\n.ta-folder-list, .ta-auth-list { overscroll-behavior: none; }\nbody { background: var(--ta-main); color: var(--ta-text); font: calc(14px * var(--ta-font-scale))/1.6 var(--ta-sans); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }\nbutton, input, select, textarea { font: inherit; color: inherit; }\nbutton { cursor: pointer; }\ncode, pre { font-family: var(--ta-mono); font-size: calc(12.5px * var(--ta-font-scale)); }\na { color: var(--ta-link); text-decoration: none; }\n* { scrollbar-width: thin; scrollbar-color: var(--ta-scrollbar) transparent; }\n:focus-visible { outline: 2px solid var(--ta-blue); outline-offset: 1px; }\n.ta-muted { color: var(--ta-muted); }\n.ta-small { font-size: calc(12px * var(--ta-font-scale)); }\n.ta-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }\n.ta-path { font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); }\n.ta-spacer { flex: 1; }\n.ta-icon { flex: none; }\n.ta-narrow-only { display: none !important; }\n.ta-glass { background: var(--ta-card); border: 1px solid var(--ta-border); }\n\n/* Controls */\n.ta-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--ta-border); background: transparent; font-size: calc(13px * var(--ta-font-scale)); font-weight: 500; white-space: nowrap; color: var(--ta-text); transition: background 120ms, border-color 120ms; }\n.ta-button:hover:not(:disabled) { background: var(--ta-hover); }\n.ta-button:disabled { opacity: 0.45; cursor: default; }\n.ta-primary { background: var(--ta-brand); border-color: var(--ta-brand); color: var(--ta-brand-text); }\n.ta-primary:hover:not(:disabled) { background: var(--ta-brand); opacity: 0.88; }\n.ta-danger, .ta-stop { color: var(--ta-red); }\n.ta-quiet { border-color: transparent; color: var(--ta-secondary); }\n.ta-wide { width: 100%; height: 38px; }\n.ta-link { background: none; border: 0; padding: 0; color: var(--ta-link); font-size: calc(12px * var(--ta-font-scale)); display: inline-flex; align-items: center; gap: 4px; }\n/* Buttons that hold an icon, centred in a box of their size: without the padding of the browser, which iOS makes 14px a side, so that the icon sat off centre there. */\n.ta-icon-button, .ta-footer-button, .ta-rail-item, .ta-rail-logo, .ta-send, .ta-mic, .ta-editor-tab-close, .ta-attachment-remove, .ta-account-button, .ta-tool-trailing, .ta-to-bottom { padding: 0; }\n.ta-icon-button { position: relative; display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 8px; border: 0; background: transparent; color: var(--ta-secondary); transition: background 120ms, color 120ms; }\n.ta-icon-button:hover:not(:disabled) { background: var(--ta-hover); color: var(--ta-text); }\n.ta-icon-button:disabled { opacity: 0.4; }\n.ta-icon-button.ta-on { color: var(--ta-text); background: var(--ta-hover); }\n.ta-icon-button-boxed { border: 1px solid var(--ta-border-field); height: 34px; width: 34px; }\n.ta-badge { position: absolute; top: 2px; right: 2px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; background: var(--ta-red); color: #fff; font-size: 10px; font-weight: 600; line-height: 15px; }\n.ta-input, .ta-field { width: 100%; height: 36px; border: 1px solid var(--ta-border-field); background: var(--ta-input); border-radius: 8px; padding: 0 10px; outline: none; transition: border-color 120ms; }\n.ta-field { display: flex; align-items: center; gap: 8px; color: var(--ta-muted); }\n.ta-field-small { height: 34px; }\n.ta-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; color: var(--ta-text); padding: 0; font-size: calc(13px * var(--ta-font-scale)); }\n.ta-input:focus, .ta-field:focus-within { border-color: var(--ta-border-focus); }\n.ta-editor { height: auto; min-height: 140px; padding: 8px 10px; font-family: var(--ta-mono); resize: vertical; }\n.ta-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }\n/* Levels: the colour of the icon tells the level; the text stays in the colours of text. */\n.ta-level-info { --ta-level: var(--ta-blue); }\n.ta-level-success { --ta-level: var(--ta-green); }\n.ta-level-warning { --ta-level: var(--ta-yellow); }\n.ta-level-error { --ta-level: var(--ta-red); }\n.ta-level-icon { color: var(--ta-level, var(--ta-muted)); }\n/* In its place: a soft tint of its level, the text in the colours of text. */\n.ta-callout { display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: calc(13px * var(--ta-font-scale)); line-height: 1.5; text-align: left; color: var(--ta-body); background: color-mix(in srgb, var(--ta-level) 7%, var(--ta-card)); border: 1px solid color-mix(in srgb, var(--ta-level) 18%, var(--ta-border-muted)); }\n.ta-callout > .ta-level-icon { margin-top: 2px; }\n.ta-callout-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }\n.ta-callout-message { white-space: pre-wrap; overflow-wrap: anywhere; }\n.ta-callout-detail { color: var(--ta-secondary); font-size: calc(12px * var(--ta-font-scale)); white-space: pre-wrap; overflow-wrap: anywhere; }\n.ta-empty .ta-callout { max-width: min(520px, 100%); }\n.ta-spinner { width: 13px; height: 13px; border: 1.8px solid var(--ta-border-field); border-top-color: var(--ta-text); border-radius: 50%; animation: ta-spin 0.8s linear infinite; flex: none; display: inline-block; }\n/*\n * Busy (components/busy.tsx): what waits on something slow says so only once it took a moment (--ta-busy-delay),\n * so that what is quick does not flash, and takes no second click meanwhile. ta-busy a button or an icon\n * button, its spinner (ta-busy-mark; with ta-on-brand on a button of the brand's color) over its label, which keeps its width; ta-pending a row that is being\n * taken away, which fades back; ta-spinner ta-later a spinner of its own; ta-switch ta-busy a switch, which\n * moved at once, its knob turning.\n */\n.ta-busy, .ta-pending { --ta-busy-delay: 160ms; pointer-events: none; }\n.ta-busy:not(.ta-switch) { animation: ta-busy-ink 0s var(--ta-busy-delay) forwards; }\n.ta-button.ta-busy { position: relative; }\n.ta-busy > .ta-busy-mark { position: absolute; inset: 0; margin: auto; animation: ta-spin 0.8s linear infinite, ta-busy-in 140ms var(--ta-busy-delay) both; }\n.ta-primary > .ta-busy-mark, .ta-busy-mark.ta-on-brand { border-color: color-mix(in srgb, var(--ta-brand-text) 30%, transparent); border-top-color: var(--ta-brand-text); }\n.ta-button-danger > .ta-busy-mark { border-color: rgba(255, 255, 255, 0.35); border-top-color: #fff; }\n/* A busy button that brought no ta-busy-mark of its own gets one: its label inked out alone would leave it blank. */\n.ta-button.ta-busy:not(:has(> .ta-busy-mark))::after { content: ''; position: absolute; inset: 0; width: 13px; height: 13px; margin: auto; border: 1.8px solid var(--ta-border-field); border-top-color: var(--ta-text); border-radius: 50%; animation: ta-spin 0.8s linear infinite, ta-busy-in 140ms var(--ta-busy-delay) both; }\n.ta-primary.ta-busy:not(:has(> .ta-busy-mark))::after { border-color: color-mix(in srgb, var(--ta-brand-text) 30%, transparent); border-top-color: var(--ta-brand-text); }\n.ta-pending { animation: ta-busy-dim 180ms var(--ta-busy-delay) forwards; }\n.ta-spinner.ta-later { animation: ta-spin 0.8s linear infinite, ta-busy-in 140ms var(--ta-busy-delay, 160ms) both; }\n.ta-switch.ta-busy::before { content: ''; position: absolute; z-index: 1; top: 5px; left: 5px; width: 10px; height: 10px; box-sizing: border-box; border-radius: 50%; border: 1.6px solid rgba(0, 0, 0, 0.12); border-top-color: #8a8a8a; transition: translate 180ms var(--ta-ease); animation: ta-turn 0.8s linear infinite, ta-busy-in 140ms var(--ta-busy-delay) both; }\n.ta-switch.ta-busy:checked::before { translate: 16px 0; border-top-color: var(--ta-green); }\n@keyframes ta-busy-in { from { opacity: 0; } }\n@keyframes ta-busy-ink { to { color: transparent; } }\n@keyframes ta-busy-dim { to { opacity: 0.45; } }\n/* A turn by rotate, which leaves transform and translate to what is turned. */\n@keyframes ta-turn { to rotate: 360deg; }\n/* Nothing to show (EmptyState, ui.Empty): in the middle of the space of its parent, a column of flex; compact, a line of its own in a menu or a picker. */\n.ta-empty { flex: 1; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 32px 24px 56px; text-align: center; font-size: calc(13px * var(--ta-font-scale)); line-height: 1.5; color: var(--ta-muted); text-wrap: balance; }\n.ta-empty-title { color: var(--ta-secondary); font-size: calc(13.5px * var(--ta-font-scale)); font-weight: 500; }\n.ta-empty-title + .ta-empty-hint { margin-top: -4px; }\n/* Chinese breaks between its words and after its commas, as the first page of a conversation (.ta-hero p) */\n.ta-empty-hint { max-width: 260px; text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; font-size: calc(12.5px * var(--ta-font-scale)); }\n.ta-empty-compact { flex: none; width: 100%; box-sizing: border-box; padding: 20px 12px; }\n.ta-empty-compact .ta-empty-title { font-size: calc(13px * var(--ta-font-scale)); font-weight: 400; }\n.ta-empty-picture { width: min(200px, 80%); margin-bottom: 8px; animation: ta-in 320ms var(--ta-ease) both; }\n.ta-empty-compact .ta-empty-picture { width: min(150px, 60%); margin-bottom: 4px; }\n.ta-setting-row > .ta-empty-compact { padding: 4px 0; }\n.ta-empty-error .ta-empty-title { color: var(--ta-red); overflow-wrap: anywhere; }\n/*\n * On its way (Loading, ui.Loading): a turning mark, its words under it, in the middle of the space of its parent as\n * .ta-empty (some room of its own where its parent is not a column of flex); only after a moment, so that what comes\n * at once never flashes it. Compact: a line of its own in a card, a dialog or a section.\n */\n.ta-loading { flex: 1; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 120px; padding: 24px; box-sizing: border-box; text-align: center; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); line-height: 1.5; animation: ta-fade 200ms ease-out var(--ta-loading-delay, 450ms) both; }\n.ta-loading-compact { flex: none; width: 100%; min-height: 0; padding: 20px 12px; }\n.ta-loading-label { max-width: 280px; text-wrap: balance; overflow-wrap: anywhere; }\n\n";
|
|
2
|
+
export declare const BASE_STYLE = "\n:root, :root[data-theme='dark'] {\n --ta-main: #141416;\n --ta-side: #1c1c1e;\n --ta-card: #1a1a1c;\n --ta-input: #1a1a1a;\n --ta-raised: #242426;\n --ta-user: #2a2a2d;\n --ta-hover: #2a2a2e;\n --ta-hover-strong: #333338;\n --ta-selected: #2c2c31;\n --ta-chip: #2a2a2e;\n /* The chosen segment of a segmented control, on a track of --ta-raised: above it, lighter in the dark. */\n --ta-segment: #333338;\n --ta-border: #2e2e33;\n --ta-border-muted: #232328;\n --ta-border-field: #3d3d45;\n --ta-border-focus: #8a8a96;\n --ta-text: #e5e5e5;\n --ta-body: #d4d4d6;\n --ta-secondary: #a3a3a3;\n --ta-muted: #7c7c82;\n /* The chevron of a select, drawn in --ta-muted (an image cannot take currentColor). */\n --ta-select-chevron: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c7c82' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E\");\n --ta-brand: #e5e5e5;\n --ta-brand-text: #1a1a1a;\n --ta-accent: #34d399;\n --ta-link: #4dabf7;\n --ta-green: #4ade80;\n --ta-red: #f87171;\n --ta-yellow: #fbbf24;\n --ta-blue: #60a5fa;\n --ta-code: #161618;\n --ta-add: rgba(74, 222, 128, 0.1);\n --ta-remove: rgba(248, 113, 113, 0.1);\n --ta-shadow-pop: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04);\n --ta-shadow-composer: 0 12px 32px rgba(0, 0, 0, 0.32);\n --ta-scrollbar: rgba(255, 255, 255, 0.12);\n color-scheme: dark;\n}\n:root[data-theme='light'] {\n --ta-main: #ffffff;\n --ta-side: #f5f5f7;\n --ta-card: #ffffff;\n --ta-input: #ffffff;\n --ta-raised: #f3f3f5;\n --ta-user: #f2f2f2;\n --ta-hover: #ebebf0;\n --ta-hover-strong: #e2e2e8;\n --ta-selected: #e6e6ea;\n --ta-chip: #ececf0;\n --ta-segment: #ffffff;\n --ta-border: #dcdee3;\n --ta-border-muted: #e8eaed;\n --ta-border-field: #c9ccd4;\n --ta-border-focus: #6b6e76;\n --ta-text: #1a1a1a;\n --ta-body: #33363b;\n --ta-secondary: #5c5c5c;\n --ta-muted: #8e8e93;\n --ta-select-chevron: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E\");\n --ta-brand: #1a1a1a;\n --ta-brand-text: #ffffff;\n --ta-accent: #10a372;\n --ta-link: #1677ff;\n --ta-green: #16a34a;\n --ta-red: #e5484d;\n --ta-yellow: #d97706;\n --ta-blue: #1677ff;\n --ta-code: #f7f8fa;\n --ta-add: rgba(34, 197, 94, 0.1);\n --ta-remove: rgba(239, 68, 68, 0.08);\n --ta-shadow-pop: 0 16px 40px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(15, 23, 42, 0.05);\n --ta-shadow-composer: 0 8px 24px rgba(15, 23, 42, 0.07);\n --ta-scrollbar: rgba(0, 0, 0, 0.14);\n color-scheme: light;\n}\n:root {\n /** The height of the title bar the page draws itself; see .ta-titlebar. */\n --ta-titlebar: 0px;\n /**\n * Under a title bar every column keeps a gap of 3px below it, and the first row of each rises into the rest of\n * its head, centred on the tabs of the workbench (34px high, below the gap) rather than on a head of 56px:\n * 28px - 3px - 17px. The search of the sidebar, 40px high, so starts right under the bar, none of it hidden.\n */\n --ta-top-gap: min(3px, var(--ta-titlebar));\n --ta-lift: min(8px, var(--ta-titlebar));\n --ta-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;\n --ta-mono: 'SF Mono', Menlo, Monaco, Consolas, 'Courier New', monospace;\n --ta-col: 760px;\n --ta-ease: cubic-bezier(0.2, 0.8, 0.2, 1);\n /* The font sizes of the settings (TaSettingsImpl sets the first two). Every font size in px is written\n calc(13px * var(--ta-font-scale)), line heights in px too: the page's size (more on a phone, see\n style/device.ts), and in a conversation (.ta-conversation: its messages and the field of its message\n box) that of conversations on top of it. */\n --ta-page-font-scale: 1;\n --ta-chat-font-scale: 1;\n --ta-device-font-scale: 1;\n --ta-font-scale: calc(var(--ta-device-font-scale) * var(--ta-page-font-scale));\n /* How wide the content of a page is (the pages of Discover, Extensions): a column of rows, a feed or a\n form; or wide, for cards and tiles side by side. Web extensions use them too. */\n --ta-page-width: 720px;\n --ta-page-wide: 880px;\n}\n.ta-conversation { --ta-font-scale: calc(var(--ta-device-font-scale) * var(--ta-page-font-scale) * var(--ta-chat-font-scale)); font-size: calc(14px * var(--ta-font-scale)); }\n* { box-sizing: border-box; }\nhtml, body, #cell-root, #root { height: 100%; margin: 0; }\n/* The page and its scrolling areas do not bounce at the ends. Only scrolling areas of their own: on any\n other element (one with overflow: hidden is a scroll container too) it stops the wheel from reaching\n the area under it, and nothing scrolls while the pointer is over a card or a code block. */\nhtml, body, .ta-scroll, .ta-chat-scroll, .ta-side-scroll, .ta-rail-items, .ta-side-view-body, .ta-editor-body,\n.ta-workbench-launcher, .ta-workbench-menu, .ta-settings-scroll, .ta-settings-toc, .ta-pick-list, .ta-commands,\n.ta-folder-list, .ta-auth-list { overscroll-behavior: none; }\nbody { background: var(--ta-main); color: var(--ta-text); font: calc(14px * var(--ta-font-scale))/1.6 var(--ta-sans); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }\nbutton, input, select, textarea { font: inherit; color: inherit; }\nbutton { cursor: pointer; }\ncode, pre { font-family: var(--ta-mono); font-size: calc(12.5px * var(--ta-font-scale)); }\na { color: var(--ta-link); text-decoration: none; }\n* { scrollbar-width: thin; scrollbar-color: var(--ta-scrollbar) transparent; }\n:focus-visible { outline: 2px solid var(--ta-blue); outline-offset: 1px; }\n.ta-muted { color: var(--ta-muted); }\n.ta-small { font-size: calc(12px * var(--ta-font-scale)); }\n.ta-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }\n.ta-path { font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); }\n.ta-spacer { flex: 1; }\n.ta-icon { flex: none; }\n.ta-narrow-only { display: none !important; }\n.ta-glass { background: var(--ta-card); border: 1px solid var(--ta-border); }\n\n/* Controls */\n.ta-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--ta-border); background: transparent; font-size: calc(13px * var(--ta-font-scale)); font-weight: 500; white-space: nowrap; color: var(--ta-text); transition: background 120ms, border-color 120ms; }\n.ta-button:hover:not(:disabled) { background: var(--ta-hover); }\n.ta-button:disabled { opacity: 0.45; cursor: default; }\n.ta-primary { background: var(--ta-brand); border-color: var(--ta-brand); color: var(--ta-brand-text); }\n.ta-primary:hover:not(:disabled) { background: var(--ta-brand); opacity: 0.88; }\n.ta-danger, .ta-stop { color: var(--ta-red); }\n.ta-quiet { border-color: transparent; color: var(--ta-secondary); }\n.ta-wide { width: 100%; height: 38px; }\n.ta-link { background: none; border: 0; padding: 0; color: var(--ta-link); font-size: calc(12px * var(--ta-font-scale)); display: inline-flex; align-items: center; gap: 4px; }\n/* Buttons that hold an icon, centred in a box of their size: without the padding of the browser, which iOS makes 14px a side, so that the icon sat off centre there. */\n.ta-icon-button, .ta-footer-button, .ta-rail-item, .ta-rail-logo, .ta-send, .ta-mic, .ta-editor-tab-close, .ta-attachment-remove, .ta-account-button, .ta-tool-trailing, .ta-to-bottom { padding: 0; }\n.ta-icon-button { position: relative; display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 8px; border: 0; background: transparent; color: var(--ta-secondary); transition: background 120ms, color 120ms; }\n.ta-icon-button:hover:not(:disabled) { background: var(--ta-hover); color: var(--ta-text); }\n.ta-icon-button:disabled { opacity: 0.4; }\n.ta-icon-button.ta-on { color: var(--ta-text); background: var(--ta-hover); }\n.ta-icon-button-boxed { border: 1px solid var(--ta-border-field); height: var(--ta-input-height); width: var(--ta-input-height); }\n.ta-badge { position: absolute; top: 2px; right: 2px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; background: var(--ta-red); color: #fff; font-size: 10px; font-weight: 600; line-height: 15px; }\n/* Fields and forms are style/forms.ts. */\n/* Every select of Ta and of its extensions has the one chevron of the model picker, kept off its right border by\n --ta-select-inset; each owner sets only its box. A select that draws its own (or none) is .ta-select-plain. */\nselect:not([multiple]):not([size]):not(.ta-select-plain) { appearance: none; -webkit-appearance: none; padding-right: calc(var(--ta-select-inset, 10px) + 21px); background-image: var(--ta-select-chevron); background-repeat: no-repeat; background-position: right var(--ta-select-inset, 10px) center; background-size: 15px 15px; text-overflow: ellipsis; cursor: pointer; }\nselect.ta-select-plain { appearance: none; -webkit-appearance: none; }\nselect:disabled { cursor: default; }\n.ta-editor { height: auto; min-height: 140px; padding: 8px 10px; font-family: var(--ta-mono); resize: vertical; }\n.ta-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }\n/* Levels: the colour of the icon tells the level; the text stays in the colours of text. */\n.ta-level-info { --ta-level: var(--ta-blue); }\n.ta-level-success { --ta-level: var(--ta-green); }\n.ta-level-warning { --ta-level: var(--ta-yellow); }\n.ta-level-error { --ta-level: var(--ta-red); }\n.ta-level-icon { color: var(--ta-level, var(--ta-muted)); }\n/* In its place: a soft tint of its level, the text in the colours of text. */\n.ta-callout { display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: calc(13px * var(--ta-font-scale)); line-height: 1.5; text-align: left; color: var(--ta-body); background: color-mix(in srgb, var(--ta-level) 7%, var(--ta-card)); border: 1px solid color-mix(in srgb, var(--ta-level) 18%, var(--ta-border-muted)); }\n.ta-callout > .ta-level-icon { margin-top: 2px; }\n.ta-callout-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }\n.ta-callout-message { white-space: pre-wrap; overflow-wrap: anywhere; }\n.ta-callout-detail { color: var(--ta-secondary); font-size: calc(12px * var(--ta-font-scale)); white-space: pre-wrap; overflow-wrap: anywhere; }\n.ta-empty .ta-callout { max-width: min(520px, 100%); }\n.ta-spinner { width: 13px; height: 13px; border: 1.8px solid var(--ta-border-field); border-top-color: var(--ta-text); border-radius: 50%; animation: ta-spin 0.8s linear infinite; flex: none; display: inline-block; }\n/*\n * Busy (components/busy.tsx): what waits on something slow says so only once it took a moment (--ta-busy-delay),\n * so that what is quick does not flash, and takes no second click meanwhile. ta-busy a button or an icon\n * button, its spinner (ta-busy-mark; with ta-on-brand on a button of the brand's color) over its label, which keeps its width; ta-pending a row that is being\n * taken away, which fades back; ta-spinner ta-later a spinner of its own; ta-switch ta-busy a switch, which\n * moved at once, its knob turning.\n */\n.ta-busy, .ta-pending { --ta-busy-delay: 160ms; pointer-events: none; }\n.ta-busy:not(.ta-switch) { animation: ta-busy-ink 0s var(--ta-busy-delay) forwards; }\n.ta-button.ta-busy { position: relative; }\n.ta-busy > .ta-busy-mark { position: absolute; inset: 0; margin: auto; animation: ta-spin 0.8s linear infinite, ta-busy-in 140ms var(--ta-busy-delay) both; }\n.ta-primary > .ta-busy-mark, .ta-busy-mark.ta-on-brand { border-color: color-mix(in srgb, var(--ta-brand-text) 30%, transparent); border-top-color: var(--ta-brand-text); }\n.ta-button-danger > .ta-busy-mark { border-color: rgba(255, 255, 255, 0.35); border-top-color: #fff; }\n/* A busy button that brought no ta-busy-mark of its own gets one: its label inked out alone would leave it blank. */\n.ta-button.ta-busy:not(:has(> .ta-busy-mark))::after { content: ''; position: absolute; inset: 0; width: 13px; height: 13px; margin: auto; border: 1.8px solid var(--ta-border-field); border-top-color: var(--ta-text); border-radius: 50%; animation: ta-spin 0.8s linear infinite, ta-busy-in 140ms var(--ta-busy-delay) both; }\n.ta-primary.ta-busy:not(:has(> .ta-busy-mark))::after { border-color: color-mix(in srgb, var(--ta-brand-text) 30%, transparent); border-top-color: var(--ta-brand-text); }\n.ta-pending { animation: ta-busy-dim 180ms var(--ta-busy-delay) forwards; }\n.ta-spinner.ta-later { animation: ta-spin 0.8s linear infinite, ta-busy-in 140ms var(--ta-busy-delay, 160ms) both; }\n.ta-switch.ta-busy::before { content: ''; position: absolute; z-index: 1; top: 5px; left: 5px; width: 10px; height: 10px; box-sizing: border-box; border-radius: 50%; border: 1.6px solid rgba(0, 0, 0, 0.12); border-top-color: #8a8a8a; transition: translate 180ms var(--ta-ease); animation: ta-turn 0.8s linear infinite, ta-busy-in 140ms var(--ta-busy-delay) both; }\n.ta-switch.ta-busy:checked::before { translate: 16px 0; border-top-color: var(--ta-green); }\n@keyframes ta-busy-in { from { opacity: 0; } }\n@keyframes ta-busy-ink { to { color: transparent; } }\n@keyframes ta-busy-dim { to { opacity: 0.45; } }\n/* A turn by rotate, which leaves transform and translate to what is turned. */\n@keyframes ta-turn { to rotate: 360deg; }\n/* Nothing to show (EmptyState, ui.Empty): in the middle of the space of its parent, a column of flex; compact, a line of its own in a menu or a picker. */\n.ta-empty { flex: 1; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 32px 24px 56px; text-align: center; font-size: calc(13px * var(--ta-font-scale)); line-height: 1.5; color: var(--ta-muted); text-wrap: balance; }\n.ta-empty-title { color: var(--ta-secondary); font-size: calc(13.5px * var(--ta-font-scale)); font-weight: 500; }\n.ta-empty-title + .ta-empty-hint { margin-top: -4px; }\n/* Chinese breaks between its words and after its commas, as the first page of a conversation (.ta-hero p) */\n.ta-empty-hint { max-width: 260px; text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; font-size: calc(12.5px * var(--ta-font-scale)); }\n.ta-empty-compact { flex: none; width: 100%; box-sizing: border-box; padding: 20px 12px; }\n.ta-empty-compact .ta-empty-title { font-size: calc(13px * var(--ta-font-scale)); font-weight: 400; }\n.ta-empty-picture { width: min(200px, 80%); margin-bottom: 8px; animation: ta-in 320ms var(--ta-ease) both; }\n.ta-empty-compact .ta-empty-picture { width: min(150px, 60%); margin-bottom: 4px; }\n.ta-setting-row > .ta-empty-compact { padding: 4px 0; }\n.ta-empty-error .ta-empty-title { color: var(--ta-red); overflow-wrap: anywhere; }\n/*\n * On its way (Loading, ui.Loading): a turning mark, its words under it, in the middle of the space of its parent as\n * .ta-empty (some room of its own where its parent is not a column of flex); only after a moment, so that what comes\n * at once never flashes it. Compact: a line of its own in a card, a dialog or a section.\n */\n.ta-loading { flex: 1; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 120px; padding: 24px; box-sizing: border-box; text-align: center; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); line-height: 1.5; animation: ta-fade 200ms ease-out var(--ta-loading-delay, 450ms) both; }\n.ta-loading-compact { flex: none; width: 100%; min-height: 0; padding: 20px 12px; }\n.ta-loading-label { max-width: 280px; text-wrap: balance; overflow-wrap: anywhere; }\n\n";
|
|
@@ -21,6 +21,8 @@ export const BASE_STYLE = `
|
|
|
21
21
|
--ta-body: #d4d4d6;
|
|
22
22
|
--ta-secondary: #a3a3a3;
|
|
23
23
|
--ta-muted: #7c7c82;
|
|
24
|
+
/* The chevron of a select, drawn in --ta-muted (an image cannot take currentColor). */
|
|
25
|
+
--ta-select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c7c82' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
|
|
24
26
|
--ta-brand: #e5e5e5;
|
|
25
27
|
--ta-brand-text: #1a1a1a;
|
|
26
28
|
--ta-accent: #34d399;
|
|
@@ -57,6 +59,7 @@ export const BASE_STYLE = `
|
|
|
57
59
|
--ta-body: #33363b;
|
|
58
60
|
--ta-secondary: #5c5c5c;
|
|
59
61
|
--ta-muted: #8e8e93;
|
|
62
|
+
--ta-select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
|
|
60
63
|
--ta-brand: #1a1a1a;
|
|
61
64
|
--ta-brand-text: #ffffff;
|
|
62
65
|
--ta-accent: #10a372;
|
|
@@ -141,13 +144,14 @@ a { color: var(--ta-link); text-decoration: none; }
|
|
|
141
144
|
.ta-icon-button:hover:not(:disabled) { background: var(--ta-hover); color: var(--ta-text); }
|
|
142
145
|
.ta-icon-button:disabled { opacity: 0.4; }
|
|
143
146
|
.ta-icon-button.ta-on { color: var(--ta-text); background: var(--ta-hover); }
|
|
144
|
-
.ta-icon-button-boxed { border: 1px solid var(--ta-border-field); height:
|
|
147
|
+
.ta-icon-button-boxed { border: 1px solid var(--ta-border-field); height: var(--ta-input-height); width: var(--ta-input-height); }
|
|
145
148
|
.ta-badge { position: absolute; top: 2px; right: 2px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; background: var(--ta-red); color: #fff; font-size: 10px; font-weight: 600; line-height: 15px; }
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
.ta-
|
|
150
|
-
.ta-
|
|
149
|
+
/* Fields and forms are style/forms.ts. */
|
|
150
|
+
/* Every select of Ta and of its extensions has the one chevron of the model picker, kept off its right border by
|
|
151
|
+
--ta-select-inset; each owner sets only its box. A select that draws its own (or none) is .ta-select-plain. */
|
|
152
|
+
select:not([multiple]):not([size]):not(.ta-select-plain) { appearance: none; -webkit-appearance: none; padding-right: calc(var(--ta-select-inset, 10px) + 21px); background-image: var(--ta-select-chevron); background-repeat: no-repeat; background-position: right var(--ta-select-inset, 10px) center; background-size: 15px 15px; text-overflow: ellipsis; cursor: pointer; }
|
|
153
|
+
select.ta-select-plain { appearance: none; -webkit-appearance: none; }
|
|
154
|
+
select:disabled { cursor: default; }
|
|
151
155
|
.ta-editor { height: auto; min-height: 140px; padding: 8px 10px; font-family: var(--ta-mono); resize: vertical; }
|
|
152
156
|
.ta-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
|
|
153
157
|
/* Levels: the colour of the icon tells the level; the text stays in the colours of text. */
|