@celljs/ta-web 4.19.0 → 4.21.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/esm/browser/account/device-account.d.ts +65 -1
- package/esm/browser/account/device-account.js +206 -6
- package/esm/browser/assistant/assistant-chat-list.js +2 -1
- package/esm/browser/assistant/call-turn-end.d.ts +55 -0
- package/esm/browser/assistant/call-turn-end.js +68 -0
- package/esm/browser/assistant/realtime-voice.js +3 -3
- package/esm/browser/assistant/voice-call.d.ts +19 -28
- package/esm/browser/assistant/voice-call.js +64 -51
- package/esm/browser/components/account-menu.d.ts +9 -4
- package/esm/browser/components/account-menu.js +59 -20
- package/esm/browser/components/account-view.d.ts +33 -7
- package/esm/browser/components/account-view.js +140 -79
- package/esm/browser/components/app-view.js +2 -2
- package/esm/browser/components/cloud-sign-in-view.d.ts +1 -1
- package/esm/browser/components/cloud-sign-in-view.js +4 -1
- package/esm/browser/components/dino-look.d.ts +9 -1
- package/esm/browser/components/dino-look.js +46 -1
- package/esm/browser/components/environment-view.js +12 -1
- package/esm/browser/components/face-pictures.d.ts +10 -0
- package/esm/browser/components/face-pictures.js +24 -0
- package/esm/browser/components/face.d.ts +4 -1
- package/esm/browser/components/face.js +16 -1
- package/esm/browser/components/host-view.d.ts +15 -8
- package/esm/browser/components/host-view.js +23 -70
- package/esm/browser/components/me-view.d.ts +2 -2
- package/esm/browser/components/me-view.js +7 -6
- package/esm/browser/components/picture-dialog.d.ts +18 -0
- package/esm/browser/components/picture-dialog.js +116 -0
- package/esm/browser/components/profile-view.d.ts +11 -0
- package/esm/browser/components/profile-view.js +85 -0
- package/esm/browser/components/workbench-view.js +42 -7
- package/esm/browser/extension/icons.js +2 -1
- package/esm/browser/extension/web-api-components.d.ts +2 -2
- package/esm/browser/extension/web-api-home.d.ts +13 -0
- package/esm/browser/extension/web-api-home.js +2 -0
- package/esm/browser/extension/web-extension-api.d.ts +4 -4
- package/esm/browser/extension/web-extension-context.js +2 -1
- package/esm/browser/extension/web-home.d.ts +8 -0
- package/esm/browser/extension/web-home.js +20 -0
- package/esm/browser/gateway/console-limits.d.ts +15 -0
- package/esm/browser/gateway/console-limits.js +2 -2
- package/esm/browser/gateway/console-tenant.js +33 -2
- package/esm/browser/gateway/console-updates.d.ts +12 -0
- package/esm/browser/gateway/console-updates.js +76 -0
- package/esm/browser/gateway/console-util.d.ts +7 -1
- package/esm/browser/gateway/console-util.js +18 -0
- package/esm/browser/gateway/console-view.js +9 -2
- package/esm/browser/i18n/locales.d.ts +55 -3
- package/esm/browser/i18n/locales.js +9 -3
- package/esm/browser/i18n/messages-all.d.ts +7 -0
- package/esm/browser/i18n/messages-all.js +14 -0
- package/esm/browser/i18n/messages-ja.js +54 -4
- package/esm/browser/i18n/messages-zh-tw.js +54 -4
- package/esm/browser/i18n/messages.d.ts +56 -8
- package/esm/browser/i18n/messages.js +141 -19
- package/esm/browser/i18n/use-t.js +4 -3
- package/esm/browser/settings/settings.js +3 -1
- package/esm/browser/style/conversation-column.d.ts +1 -1
- package/esm/browser/style/conversation-column.js +2 -1
- package/esm/browser/style/dialogs.d.ts +1 -1
- package/esm/browser/style/dialogs.js +6 -0
- package/esm/browser/style/pages.d.ts +1 -1
- package/esm/browser/style/pages.js +11 -0
- package/esm/browser/style/surfaces.d.ts +1 -1
- package/esm/browser/style/surfaces.js +1 -0
- package/esm/browser/util/picture.d.ts +5 -0
- package/esm/browser/util/picture.js +43 -0
- package/esm/browser/util/turn-end.d.ts +8 -0
- package/esm/browser/util/turn-end.js +78 -35
- package/esm/browser/workbench-hosts.d.ts +4 -1
- package/esm/browser/workbench-hosts.js +17 -0
- package/esm/browser/workbench-protocol.d.ts +8 -0
- package/lib/browser/account/device-account.d.ts +65 -1
- package/lib/browser/account/device-account.js +206 -6
- package/lib/browser/assistant/assistant-chat-list.js +2 -1
- package/lib/browser/assistant/call-turn-end.d.ts +56 -0
- package/lib/browser/assistant/call-turn-end.js +72 -0
- package/lib/browser/assistant/realtime-voice.js +3 -3
- package/lib/browser/assistant/voice-call.d.ts +19 -28
- package/lib/browser/assistant/voice-call.js +67 -54
- package/lib/browser/components/account-menu.d.ts +9 -4
- package/lib/browser/components/account-menu.js +57 -18
- package/lib/browser/components/account-view.d.ts +33 -7
- package/lib/browser/components/account-view.js +142 -77
- package/lib/browser/components/app-view.js +1 -1
- package/lib/browser/components/cloud-sign-in-view.d.ts +1 -1
- package/lib/browser/components/cloud-sign-in-view.js +4 -1
- package/lib/browser/components/dino-look.d.ts +9 -1
- package/lib/browser/components/dino-look.js +48 -1
- package/lib/browser/components/environment-view.js +11 -0
- package/lib/browser/components/face-pictures.d.ts +11 -0
- package/lib/browser/components/face-pictures.js +60 -0
- package/lib/browser/components/face.d.ts +4 -1
- package/lib/browser/components/face.js +16 -1
- package/lib/browser/components/host-view.d.ts +15 -8
- package/lib/browser/components/host-view.js +22 -68
- package/lib/browser/components/me-view.d.ts +2 -2
- package/lib/browser/components/me-view.js +7 -6
- package/lib/browser/components/picture-dialog.d.ts +19 -0
- package/lib/browser/components/picture-dialog.js +153 -0
- package/lib/browser/components/profile-view.d.ts +12 -0
- package/lib/browser/components/profile-view.js +123 -0
- package/lib/browser/components/workbench-view.js +39 -4
- package/lib/browser/extension/icons.js +1 -0
- package/lib/browser/extension/web-api-components.d.ts +2 -2
- package/lib/browser/extension/web-api-home.d.ts +14 -0
- package/lib/browser/extension/web-api-home.js +3 -0
- package/lib/browser/extension/web-extension-api.d.ts +4 -4
- package/lib/browser/extension/web-extension-context.js +2 -1
- package/lib/browser/extension/web-home.d.ts +8 -0
- package/lib/browser/extension/web-home.js +54 -1
- package/lib/browser/gateway/console-limits.d.ts +15 -0
- package/lib/browser/gateway/console-limits.js +2 -0
- package/lib/browser/gateway/console-tenant.js +32 -1
- package/lib/browser/gateway/console-updates.d.ts +13 -0
- package/lib/browser/gateway/console-updates.js +113 -0
- package/lib/browser/gateway/console-util.d.ts +7 -1
- package/lib/browser/gateway/console-util.js +18 -0
- package/lib/browser/gateway/console-view.js +9 -2
- package/lib/browser/i18n/locales.d.ts +55 -3
- package/lib/browser/i18n/locales.js +8 -2
- package/lib/browser/i18n/messages-all.d.ts +8 -0
- package/lib/browser/i18n/messages-all.js +17 -0
- package/lib/browser/i18n/messages-ja.js +54 -4
- package/lib/browser/i18n/messages-zh-tw.js +54 -4
- package/lib/browser/i18n/messages.d.ts +56 -8
- package/lib/browser/i18n/messages.js +143 -21
- package/lib/browser/i18n/use-t.js +4 -3
- package/lib/browser/settings/settings.js +3 -1
- package/lib/browser/style/conversation-column.d.ts +1 -1
- package/lib/browser/style/conversation-column.js +2 -1
- package/lib/browser/style/dialogs.d.ts +1 -1
- package/lib/browser/style/dialogs.js +6 -0
- package/lib/browser/style/pages.d.ts +1 -1
- package/lib/browser/style/pages.js +11 -0
- package/lib/browser/style/surfaces.d.ts +1 -1
- package/lib/browser/style/surfaces.js +1 -0
- package/lib/browser/util/picture.d.ts +6 -0
- package/lib/browser/util/picture.js +46 -0
- package/lib/browser/util/turn-end.d.ts +8 -0
- package/lib/browser/util/turn-end.js +78 -35
- package/lib/browser/workbench-hosts.d.ts +4 -1
- package/lib/browser/workbench-hosts.js +17 -0
- package/lib/browser/workbench-protocol.d.ts +8 -0
- package/package.json +7 -7
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* The launcher and the board (ta-launcher.md, components/board.tsx): their cards and rows, and the flyout
|
|
3
3
|
* the rail opens them in on a computer or a tablet. Where they rest on a phone is in style/phone.ts.
|
|
4
4
|
*/
|
|
5
|
-
export declare const SURFACES_STYLE = "\n.ta-kept-page { display: contents; }\n.ta-kept-page[hidden] { display: none; }\n/* Under the head of a page of an extension (PageView): what is taller than the window scrolls, never sideways. */\n.ta-page-body { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }\n.ta-launcher { display: flex; flex-direction: column; gap: 24px; }\n/* The launcher with its search: the stack fills it, its base scrolls. */\n.ta-launcher-surface { flex: 1; min-height: 0; display: flex; flex-direction: column; }\n.ta-launcher-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px 18px; }\n.ta-launcher-field { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 36px; margin-bottom: 18px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--ta-raised); color: var(--ta-muted); font: inherit; font-size: calc(14px * var(--ta-font-scale)); cursor: text; -webkit-tap-highlight-color: transparent; transition: background 140ms; }\n.ta-launcher-field:active { background: var(--ta-hover); }\n.ta-launcher-search { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--ta-main); }\n.ta-launcher-search-head { flex: none; display: flex; align-items: center; gap: 4px; padding: 10px 12px 8px; }\n.ta-launcher-search-head input::-webkit-search-cancel-button { display: none; }\n.ta-launcher-clear { flex: none; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ta-muted); }\n.ta-launcher-cancel { flex: none; height: 36px; padding: 0 8px; border: 0; background: none; color: var(--ta-text); font: inherit; font-size: calc(15px * var(--ta-font-scale)); cursor: pointer; }\n.ta-launcher-search-body { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; padding: 4px 8px 16px; }\n.ta-launcher-results { margin: 0; padding: 0; list-style: none; animation: ta-fade 120ms ease-out; }\n.ta-launcher-results-section + .ta-launcher-results-section { margin-top: 14px; }\n.ta-launcher-results-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; padding: 0 8px; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); line-height: calc(16px * var(--ta-font-scale)); font-weight: 600; }\n.ta-launcher-results-all { border: 0; padding: 4px 0; background: none; color: var(--ta-link); font: inherit; font-weight: 500; cursor: pointer; }\n.ta-launcher-more { height: 1px; }\n/* A long list draws the rows in view only; the rest keep their place. */\n.ta-launcher-result-row { position: relative; display: flex; align-items: center; content-visibility: auto; contain-intrinsic-size: auto 56px; }\n.ta-launcher-result-row > .ta-launcher-result { flex: 1; min-width: 0; }\n.ta-launcher-result-letter { font-size: calc(15px * var(--ta-font-scale)); font-weight: 600; }\n.ta-launcher-result-action { flex: none; position: absolute; right: 8px; height: 28px; padding: 0 12px; border: 0; border-radius: 14px; background: var(--ta-chip); color: var(--ta-text); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); font-weight: 600; cursor: pointer; transition: background 140ms, transform 120ms var(--ta-ease); }\n.ta-launcher-result-action:hover { background: var(--ta-hover-strong); }\n.ta-launcher-result-action:active { transform: scale(0.95); }\n.ta-launcher-result-row:has(.ta-launcher-result-action) .ta-launcher-result { padding-right: 84px; }\n/* The share sheet (share-sheet.tsx): the card of what goes, its code and link, the actions in a row, notes, Stop. */\n.ta-share { display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding: 2px 2px 4px; }\n.ta-share-card { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 16px 14px; border-radius: 16px; background: var(--ta-raised); }\n.ta-share-who { display: flex; align-items: center; gap: 12px; align-self: stretch; min-width: 0; }\n.ta-share-face { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; overflow: hidden; background: var(--ta-tile); color: var(--ta-tile-ink); }\n.ta-share-who-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }\n.ta-share-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(15px * var(--ta-font-scale)); font-weight: 600; }\n.ta-share-gets { color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); line-height: calc(18px * var(--ta-font-scale)); }\n.ta-share-qr { width: 196px; height: 196px; padding: 10px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--ta-border-muted); }\n.ta-share-qr svg { display: block; width: 100%; height: 100%; border-radius: 0; animation: ta-fade 160ms ease-out; }\n.ta-share-qr-busy { display: grid; place-items: center; background: var(--ta-card); }\n.ta-share-link { align-self: stretch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; color: var(--ta-muted); font-family: var(--ta-mono); font-size: calc(11.5px * var(--ta-font-scale)); user-select: all; }\n.ta-share-password { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--ta-raised); color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); }\n.ta-share-password > span { flex: 1; min-width: 0; }\n.ta-share-password code { color: var(--ta-text); font-family: var(--ta-mono); }\n.ta-share-tiles { display: flex; justify-content: center; gap: 4px; }\n.ta-share-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 76px; padding: 4px 0; border: 0; background: none; color: var(--ta-text); font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }\n.ta-share-tile:disabled { opacity: 0.45; cursor: default; }\n.ta-share-tile-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ta-raised); transition: background 140ms, transform 120ms var(--ta-ease); }\n.ta-share-tile:not(:disabled):hover .ta-share-tile-icon { background: var(--ta-hover-strong); }\n.ta-share-tile:not(:disabled):active .ta-share-tile-icon { transform: scale(0.94); }\n.ta-share-tile-label { color: var(--ta-secondary); font-size: calc(12px * var(--ta-font-scale)); white-space: nowrap; }\n.ta-share-friends { display: flex; flex-direction: column; gap: 10px; }\n.ta-share-friend-list { display: flex; flex-direction: column; gap: 2px; max-height: 240px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }\n.ta-share-friend { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 8px; border: 0; border-radius: 12px; background: none; color: var(--ta-text); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }\n.ta-share-friend:hover { background: var(--ta-hover); }\n.ta-share-friend-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(14px * var(--ta-font-scale)); }\n.ta-share-friend-check { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border: 1.5px solid var(--ta-border-field); border-radius: 50%; color: var(--ta-brand-text); transition: background 140ms, border-color 140ms; }\n.ta-share-friend.ta-on .ta-share-friend-check { border-color: var(--ta-brand); background: var(--ta-brand); }\n.ta-share-friends-actions { display: flex; justify-content: flex-end; gap: 8px; }\n.ta-share-notes { display: flex; flex-direction: column; gap: 4px; padding: 0 4px; }\n.ta-share-notes p { margin: 0; text-align: center; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); line-height: calc(17px * var(--ta-font-scale)); text-wrap: balance; }\n.ta-share-stop { position: relative; align-self: center; border: 0; padding: 4px 8px; background: none; color: var(--ta-red); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); cursor: pointer; }\n.ta-launcher-result { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 6px 8px; border: 0; border-radius: 12px; background: none; color: var(--ta-text); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }\n.ta-launcher-result:hover, .ta-launcher-result:active { background: var(--ta-hover); }\n.ta-launcher-result-icon { flex: none; position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ta-tile); color: var(--ta-tile-ink); }\n.ta-launcher-result-icon > .ta-busy-mark { width: 16px; height: 16px; border-color: color-mix(in srgb, var(--ta-tile-ink) 25%, transparent); border-top-color: var(--ta-tile-ink); }\n.ta-launcher-result-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }\n.ta-launcher-result-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(15px * var(--ta-font-scale)); line-height: calc(20px * var(--ta-font-scale)); }\n.ta-launcher-result-title mark { background: none; color: var(--ta-accent); font-weight: 600; }\n.ta-launcher-result-detail { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); line-height: calc(16px * var(--ta-font-scale)); }\n.ta-board { flex: 1; min-height: 0; display: flex; flex-direction: column; }\n.ta-board-head { flex: none; display: flex; align-items: center; gap: 6px; min-height: 64px; padding: 6px 14px 6px 16px; }\n.ta-board-heading { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }\n.ta-board-title { font-size: calc(22px * var(--ta-font-scale)); line-height: calc(28px * var(--ta-font-scale)); font-weight: 700; letter-spacing: -0.01em; color: var(--ta-text); }\n.ta-board-date { color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); line-height: calc(17px * var(--ta-font-scale)); }\n.ta-board-edit-button { flex: none; height: 30px; padding: 0 14px; border: 0; border-radius: 15px; background: var(--ta-chip); color: var(--ta-text); font-size: calc(13px * var(--ta-font-scale)); font-weight: 500; transition: background 160ms, color 160ms, transform 120ms var(--ta-ease); }\n.ta-board-edit-button:hover { background: var(--ta-hover-strong); }\n.ta-board-edit-button:active { transform: scale(0.96); }\n.ta-board-edit-button.ta-active { background: var(--ta-brand); color: var(--ta-brand-text); }\n.ta-board-body { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; padding: 2px 14px calc(20px + env(safe-area-inset-bottom)); }\n.ta-board-cards { display: flex; flex-direction: column; gap: 12px; }\n.ta-board-card { padding: 12px 14px 14px; border-radius: 20px; background: var(--ta-main); box-shadow: 0 0 0 1px var(--ta-border-muted), 0 2px 6px rgba(15, 23, 42, 0.03), 0 8px 24px rgba(15, 23, 42, 0.04); animation: ta-board-in 260ms var(--ta-ease) both; }\n:root[data-theme='dark'] .ta-board-card { background: var(--ta-card); box-shadow: 0 0 0 1px var(--ta-border-muted); }\n@keyframes ta-board-in { from { opacity: 0; transform: translate3d(0, 6px, 0); } }\n.ta-board-card-head { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); line-height: calc(18px * var(--ta-font-scale)); font-weight: 600; }\n.ta-board-card-icon { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: color-mix(in srgb, var(--ta-accent) 14%, transparent); color: var(--ta-accent); }\n.ta-board-card-body { min-width: 0; color: var(--ta-body); font-size: calc(14px * var(--ta-font-scale)); }\n/* A card with nothing says so in one quiet line, where its content would start. */\n.ta-board-card-body .ta-empty { min-height: 0; align-items: flex-start; padding: 0 0 2px; text-align: left; }\n.ta-board-card-body .ta-empty-title { color: var(--ta-muted); font-weight: 400; }\n.ta-board-edit { display: flex; flex-direction: column; animation: ta-fade 160ms ease-out; }\n.ta-board-rows { display: flex; flex-direction: column; border-radius: 14px; background: var(--ta-main); box-shadow: 0 0 0 1px var(--ta-border-muted); }\n.ta-board-row { position: relative; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 4px 0 10px; border-radius: 14px; background: var(--ta-main); transition: transform 200ms var(--ta-ease), box-shadow 160ms; }\n.ta-board-row + .ta-board-row::before { content: ''; position: absolute; top: 0; left: 76px; right: 0; border-top: 1px solid var(--ta-border-muted); }\n.ta-board-row[data-sorting] { z-index: 2; transition: box-shadow 160ms; box-shadow: var(--ta-shadow-pop); }\n.ta-board-row[data-sorting]::before, .ta-board-row[data-sorting] + .ta-board-row::before { display: none; }\n.ta-board-toggle { flex: none; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; background: none; }\n.ta-board-off { color: var(--ta-red); }\n.ta-board-on { color: var(--ta-green); }\n.ta-board-row-icon { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--ta-chip); color: var(--ta-secondary); }\n.ta-board-row-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ta-text); font-size: calc(15px * var(--ta-font-scale)); }\n.ta-board-grip { flex: none; display: grid; place-items: center; width: 44px; height: 48px; padding: 0; border: 0; background: none; color: var(--ta-muted); cursor: grab; touch-action: none; }\n.ta-board-row[data-sorting] .ta-board-grip { cursor: grabbing; }\n.ta-board-label { margin: 20px 6px 8px; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); line-height: calc(16px * var(--ta-font-scale)); }\n\n/* The rail's buttons for them, above the account; the flyout beside it. */\n.ta-rail-tools { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 4px; }\n.ta-flyout { position: fixed; z-index: 50; left: calc(64px + env(safe-area-inset-left)); bottom: calc(10px + env(safe-area-inset-bottom)); width: 380px; max-width: calc(100vw - 80px); max-height: min(680px, calc(100vh - 20px - var(--ta-titlebar))); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--ta-border); border-radius: 16px; background: var(--ta-side); box-shadow: var(--ta-shadow-pop); transform-origin: 0 100%; animation: ta-flyout-in 180ms var(--ta-ease); }\n.ta-flyout > .ta-launcher-surface { height: min(560px, calc(100vh - 20px - var(--ta-titlebar))); flex: none; }\n@keyframes ta-flyout-in { from { opacity: 0; transform: translate3d(-6px, 6px, 0) scale(0.97); } }\n/* The faces of those who are not Ta (components/face.tsx): they blink, and look about while they work */\n:root:not([data-theme='light']) .ta-face[data-face=\"11\"] .ta-face-body > g > circle { fill: #4a4a52; }\n.ta-face { position: relative; display: inline-flex; flex: none; }\n.ta-face svg { display: block; overflow: visible; }\n.ta-face-double { align-items: center; justify-content: center; }\n.ta-face-eyes { transform-box: fill-box; transform-origin: center; animation: ta-face-blink 5.2s infinite; }\n.ta-face[data-face=\"1\"] .ta-face-eyes, .ta-face[data-face=\"5\"] .ta-face-eyes, .ta-face[data-face=\"9\"] .ta-face-eyes, .ta-face[data-face=\"13\"] .ta-face-eyes, .ta-face[data-face=\"17\"] .ta-face-eyes, .ta-face[data-face=\"21\"] .ta-face-eyes { animation-delay: -1.7s; }\n.ta-face[data-face=\"2\"] .ta-face-eyes, .ta-face[data-face=\"6\"] .ta-face-eyes, .ta-face[data-face=\"10\"] .ta-face-eyes, .ta-face[data-face=\"14\"] .ta-face-eyes, .ta-face[data-face=\"18\"] .ta-face-eyes, .ta-face[data-face=\"22\"] .ta-face-eyes { animation-delay: -3.1s; }\n.ta-face[data-face=\"3\"] .ta-face-eyes, .ta-face[data-face=\"7\"] .ta-face-eyes, .ta-face[data-face=\"11\"] .ta-face-eyes, .ta-face[data-face=\"15\"] .ta-face-eyes, .ta-face[data-face=\"19\"] .ta-face-eyes, .ta-face[data-face=\"23\"] .ta-face-eyes { animation-delay: -4.4s; }\n.ta-face-working .ta-face-look { animation: ta-face-look 2.4s ease-in-out infinite; }\n.ta-face-working .ta-face-body { transform-box: fill-box; transform-origin: 50% 100%; animation: ta-face-bob 1.2s ease-in-out infinite; }\n.ta-face-dot { position: absolute; right: -1px; bottom: -1px; width: 27%; height: 27%; min-width: 7px; min-height: 7px; box-sizing: content-box; border-radius: 50%; border: 2px solid var(--ta-face-ring, var(--ta-main)); background: var(--ta-border-field); }\n.ta-face-dot.ta-face-on { background: var(--ta-green); }\n@keyframes ta-face-blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(0.1); } }\n@keyframes ta-face-look { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-1.4px); } 70% { transform: translateX(1.4px); } }\n@keyframes ta-face-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.2px); } }\n@media (prefers-reduced-motion: reduce) { .ta-face * { animation: none !important; } }\n.ta-group-face { position: relative; display: inline-flex; flex: none; }\n.ta-group-face-back { position: absolute; right: 0; top: 0; }\n.ta-group-face-front { position: absolute; left: 0; bottom: 0; z-index: 1; }\n";
|
|
5
|
+
export declare const SURFACES_STYLE = "\n.ta-kept-page { display: contents; }\n.ta-kept-page[hidden] { display: none; }\n/* Under the head of a page of an extension (PageView): what is taller than the window scrolls, never sideways. */\n.ta-page-body { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }\n.ta-launcher { display: flex; flex-direction: column; gap: 24px; }\n/* The launcher with its search: the stack fills it, its base scrolls. */\n.ta-launcher-surface { flex: 1; min-height: 0; display: flex; flex-direction: column; }\n.ta-launcher-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px 18px; }\n.ta-launcher-field { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 36px; margin-bottom: 18px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--ta-raised); color: var(--ta-muted); font: inherit; font-size: calc(14px * var(--ta-font-scale)); cursor: text; -webkit-tap-highlight-color: transparent; transition: background 140ms; }\n.ta-launcher-field:active { background: var(--ta-hover); }\n.ta-launcher-search { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--ta-main); }\n.ta-launcher-search-head { flex: none; display: flex; align-items: center; gap: 4px; padding: 10px 12px 8px; }\n.ta-launcher-search-head input::-webkit-search-cancel-button { display: none; }\n.ta-launcher-clear { flex: none; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ta-muted); }\n.ta-launcher-cancel { flex: none; height: 36px; padding: 0 8px; border: 0; background: none; color: var(--ta-text); font: inherit; font-size: calc(15px * var(--ta-font-scale)); cursor: pointer; }\n.ta-launcher-search-body { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; padding: 4px 8px 16px; }\n.ta-launcher-results { margin: 0; padding: 0; list-style: none; animation: ta-fade 120ms ease-out; }\n.ta-launcher-results-section + .ta-launcher-results-section { margin-top: 14px; }\n.ta-launcher-results-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; padding: 0 8px; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); line-height: calc(16px * var(--ta-font-scale)); font-weight: 600; }\n.ta-launcher-results-all { border: 0; padding: 4px 0; background: none; color: var(--ta-link); font: inherit; font-weight: 500; cursor: pointer; }\n.ta-launcher-more { height: 1px; }\n/* A long list draws the rows in view only; the rest keep their place. */\n.ta-launcher-result-row { position: relative; display: flex; align-items: center; content-visibility: auto; contain-intrinsic-size: auto 56px; }\n.ta-launcher-result-row > .ta-launcher-result { flex: 1; min-width: 0; }\n.ta-launcher-result-letter { font-size: calc(15px * var(--ta-font-scale)); font-weight: 600; }\n.ta-launcher-result-action { flex: none; position: absolute; right: 8px; height: 28px; padding: 0 12px; border: 0; border-radius: 14px; background: var(--ta-chip); color: var(--ta-text); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); font-weight: 600; cursor: pointer; transition: background 140ms, transform 120ms var(--ta-ease); }\n.ta-launcher-result-action:hover { background: var(--ta-hover-strong); }\n.ta-launcher-result-action:active { transform: scale(0.95); }\n.ta-launcher-result-row:has(.ta-launcher-result-action) .ta-launcher-result { padding-right: 84px; }\n/* The share sheet (share-sheet.tsx): the card of what goes, its code and link, the actions in a row, notes, Stop. */\n.ta-share { display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding: 2px 2px 4px; }\n.ta-share-card { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 16px 14px; border-radius: 16px; background: var(--ta-raised); }\n.ta-share-who { display: flex; align-items: center; gap: 12px; align-self: stretch; min-width: 0; }\n.ta-share-face { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; overflow: hidden; background: var(--ta-tile); color: var(--ta-tile-ink); }\n.ta-share-who-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }\n.ta-share-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(15px * var(--ta-font-scale)); font-weight: 600; }\n.ta-share-gets { color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); line-height: calc(18px * var(--ta-font-scale)); }\n.ta-share-qr { width: 196px; height: 196px; padding: 10px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--ta-border-muted); }\n.ta-share-qr svg { display: block; width: 100%; height: 100%; border-radius: 0; animation: ta-fade 160ms ease-out; }\n.ta-share-qr-busy { display: grid; place-items: center; background: var(--ta-card); }\n.ta-share-link { align-self: stretch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; color: var(--ta-muted); font-family: var(--ta-mono); font-size: calc(11.5px * var(--ta-font-scale)); user-select: all; }\n.ta-share-password { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--ta-raised); color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); }\n.ta-share-password > span { flex: 1; min-width: 0; }\n.ta-share-password code { color: var(--ta-text); font-family: var(--ta-mono); }\n.ta-share-tiles { display: flex; justify-content: center; gap: 4px; }\n.ta-share-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 76px; padding: 4px 0; border: 0; background: none; color: var(--ta-text); font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }\n.ta-share-tile:disabled { opacity: 0.45; cursor: default; }\n.ta-share-tile-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ta-raised); transition: background 140ms, transform 120ms var(--ta-ease); }\n.ta-share-tile:not(:disabled):hover .ta-share-tile-icon { background: var(--ta-hover-strong); }\n.ta-share-tile:not(:disabled):active .ta-share-tile-icon { transform: scale(0.94); }\n.ta-share-tile-label { color: var(--ta-secondary); font-size: calc(12px * var(--ta-font-scale)); white-space: nowrap; }\n.ta-share-friends { display: flex; flex-direction: column; gap: 10px; }\n.ta-share-friend-list { display: flex; flex-direction: column; gap: 2px; max-height: 240px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }\n.ta-share-friend { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 8px; border: 0; border-radius: 12px; background: none; color: var(--ta-text); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }\n.ta-share-friend:hover { background: var(--ta-hover); }\n.ta-share-friend-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(14px * var(--ta-font-scale)); }\n.ta-share-friend-check { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border: 1.5px solid var(--ta-border-field); border-radius: 50%; color: var(--ta-brand-text); transition: background 140ms, border-color 140ms; }\n.ta-share-friend.ta-on .ta-share-friend-check { border-color: var(--ta-brand); background: var(--ta-brand); }\n.ta-share-friends-actions { display: flex; justify-content: flex-end; gap: 8px; }\n.ta-share-notes { display: flex; flex-direction: column; gap: 4px; padding: 0 4px; }\n.ta-share-notes p { margin: 0; text-align: center; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); line-height: calc(17px * var(--ta-font-scale)); text-wrap: balance; }\n.ta-share-stop { position: relative; align-self: center; border: 0; padding: 4px 8px; background: none; color: var(--ta-red); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); cursor: pointer; }\n.ta-launcher-result { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 6px 8px; border: 0; border-radius: 12px; background: none; color: var(--ta-text); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }\n.ta-launcher-result:hover, .ta-launcher-result:active { background: var(--ta-hover); }\n.ta-launcher-result-icon { flex: none; position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ta-tile); color: var(--ta-tile-ink); }\n.ta-launcher-result-icon > .ta-busy-mark { width: 16px; height: 16px; border-color: color-mix(in srgb, var(--ta-tile-ink) 25%, transparent); border-top-color: var(--ta-tile-ink); }\n.ta-launcher-result-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }\n.ta-launcher-result-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(15px * var(--ta-font-scale)); line-height: calc(20px * var(--ta-font-scale)); }\n.ta-launcher-result-title mark { background: none; color: var(--ta-accent); font-weight: 600; }\n.ta-launcher-result-detail { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); line-height: calc(16px * var(--ta-font-scale)); }\n.ta-board { flex: 1; min-height: 0; display: flex; flex-direction: column; }\n.ta-board-head { flex: none; display: flex; align-items: center; gap: 6px; min-height: 64px; padding: 6px 14px 6px 16px; }\n.ta-board-heading { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }\n.ta-board-title { font-size: calc(22px * var(--ta-font-scale)); line-height: calc(28px * var(--ta-font-scale)); font-weight: 700; letter-spacing: -0.01em; color: var(--ta-text); }\n.ta-board-date { color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); line-height: calc(17px * var(--ta-font-scale)); }\n.ta-board-edit-button { flex: none; height: 30px; padding: 0 14px; border: 0; border-radius: 15px; background: var(--ta-chip); color: var(--ta-text); font-size: calc(13px * var(--ta-font-scale)); font-weight: 500; transition: background 160ms, color 160ms, transform 120ms var(--ta-ease); }\n.ta-board-edit-button:hover { background: var(--ta-hover-strong); }\n.ta-board-edit-button:active { transform: scale(0.96); }\n.ta-board-edit-button.ta-active { background: var(--ta-brand); color: var(--ta-brand-text); }\n.ta-board-body { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; padding: 2px 14px calc(20px + env(safe-area-inset-bottom)); }\n.ta-board-cards { display: flex; flex-direction: column; gap: 12px; }\n.ta-board-card { padding: 12px 14px 14px; border-radius: 20px; background: var(--ta-main); box-shadow: 0 0 0 1px var(--ta-border-muted), 0 2px 6px rgba(15, 23, 42, 0.03), 0 8px 24px rgba(15, 23, 42, 0.04); animation: ta-board-in 260ms var(--ta-ease) both; }\n:root[data-theme='dark'] .ta-board-card { background: var(--ta-card); box-shadow: 0 0 0 1px var(--ta-border-muted); }\n@keyframes ta-board-in { from { opacity: 0; transform: translate3d(0, 6px, 0); } }\n.ta-board-card-head { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); line-height: calc(18px * var(--ta-font-scale)); font-weight: 600; }\n.ta-board-card-icon { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: color-mix(in srgb, var(--ta-accent) 14%, transparent); color: var(--ta-accent); }\n.ta-board-card-body { min-width: 0; color: var(--ta-body); font-size: calc(14px * var(--ta-font-scale)); }\n/* A card with nothing says so in one quiet line, where its content would start. */\n.ta-board-card-body .ta-empty { min-height: 0; align-items: flex-start; padding: 0 0 2px; text-align: left; }\n.ta-board-card-body .ta-empty-title { color: var(--ta-muted); font-weight: 400; }\n.ta-board-edit { display: flex; flex-direction: column; animation: ta-fade 160ms ease-out; }\n.ta-board-rows { display: flex; flex-direction: column; border-radius: 14px; background: var(--ta-main); box-shadow: 0 0 0 1px var(--ta-border-muted); }\n.ta-board-row { position: relative; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 4px 0 10px; border-radius: 14px; background: var(--ta-main); transition: transform 200ms var(--ta-ease), box-shadow 160ms; }\n.ta-board-row + .ta-board-row::before { content: ''; position: absolute; top: 0; left: 76px; right: 0; border-top: 1px solid var(--ta-border-muted); }\n.ta-board-row[data-sorting] { z-index: 2; transition: box-shadow 160ms; box-shadow: var(--ta-shadow-pop); }\n.ta-board-row[data-sorting]::before, .ta-board-row[data-sorting] + .ta-board-row::before { display: none; }\n.ta-board-toggle { flex: none; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; background: none; }\n.ta-board-off { color: var(--ta-red); }\n.ta-board-on { color: var(--ta-green); }\n.ta-board-row-icon { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--ta-chip); color: var(--ta-secondary); }\n.ta-board-row-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ta-text); font-size: calc(15px * var(--ta-font-scale)); }\n.ta-board-grip { flex: none; display: grid; place-items: center; width: 44px; height: 48px; padding: 0; border: 0; background: none; color: var(--ta-muted); cursor: grab; touch-action: none; }\n.ta-board-row[data-sorting] .ta-board-grip { cursor: grabbing; }\n.ta-board-label { margin: 20px 6px 8px; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); line-height: calc(16px * var(--ta-font-scale)); }\n\n/* The rail's buttons for them, above the account; the flyout beside it. */\n.ta-rail-tools { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 4px; }\n.ta-flyout { position: fixed; z-index: 50; left: calc(64px + env(safe-area-inset-left)); bottom: calc(10px + env(safe-area-inset-bottom)); width: 380px; max-width: calc(100vw - 80px); max-height: min(680px, calc(100vh - 20px - var(--ta-titlebar))); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--ta-border); border-radius: 16px; background: var(--ta-side); box-shadow: var(--ta-shadow-pop); transform-origin: 0 100%; animation: ta-flyout-in 180ms var(--ta-ease); }\n.ta-flyout > .ta-launcher-surface { height: min(560px, calc(100vh - 20px - var(--ta-titlebar))); flex: none; }\n@keyframes ta-flyout-in { from { opacity: 0; transform: translate3d(-6px, 6px, 0) scale(0.97); } }\n/* The faces of those who are not Ta (components/face.tsx): they blink, and look about while they work */\n:root:not([data-theme='light']) .ta-face[data-face=\"11\"] .ta-face-body > g > circle { fill: #4a4a52; }\n.ta-face { position: relative; display: inline-flex; flex: none; }\n.ta-face svg { display: block; overflow: visible; }\n.ta-face-double { align-items: center; justify-content: center; }\n.ta-face-picture > img { display: block; flex: none; border-radius: 50%; object-fit: cover; background: var(--ta-main); }\n.ta-face-eyes { transform-box: fill-box; transform-origin: center; animation: ta-face-blink 5.2s infinite; }\n.ta-face[data-face=\"1\"] .ta-face-eyes, .ta-face[data-face=\"5\"] .ta-face-eyes, .ta-face[data-face=\"9\"] .ta-face-eyes, .ta-face[data-face=\"13\"] .ta-face-eyes, .ta-face[data-face=\"17\"] .ta-face-eyes, .ta-face[data-face=\"21\"] .ta-face-eyes { animation-delay: -1.7s; }\n.ta-face[data-face=\"2\"] .ta-face-eyes, .ta-face[data-face=\"6\"] .ta-face-eyes, .ta-face[data-face=\"10\"] .ta-face-eyes, .ta-face[data-face=\"14\"] .ta-face-eyes, .ta-face[data-face=\"18\"] .ta-face-eyes, .ta-face[data-face=\"22\"] .ta-face-eyes { animation-delay: -3.1s; }\n.ta-face[data-face=\"3\"] .ta-face-eyes, .ta-face[data-face=\"7\"] .ta-face-eyes, .ta-face[data-face=\"11\"] .ta-face-eyes, .ta-face[data-face=\"15\"] .ta-face-eyes, .ta-face[data-face=\"19\"] .ta-face-eyes, .ta-face[data-face=\"23\"] .ta-face-eyes { animation-delay: -4.4s; }\n.ta-face-working .ta-face-look { animation: ta-face-look 2.4s ease-in-out infinite; }\n.ta-face-working .ta-face-body { transform-box: fill-box; transform-origin: 50% 100%; animation: ta-face-bob 1.2s ease-in-out infinite; }\n.ta-face-dot { position: absolute; right: -1px; bottom: -1px; width: 27%; height: 27%; min-width: 7px; min-height: 7px; box-sizing: content-box; border-radius: 50%; border: 2px solid var(--ta-face-ring, var(--ta-main)); background: var(--ta-border-field); }\n.ta-face-dot.ta-face-on { background: var(--ta-green); }\n@keyframes ta-face-blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(0.1); } }\n@keyframes ta-face-look { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-1.4px); } 70% { transform: translateX(1.4px); } }\n@keyframes ta-face-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.2px); } }\n@media (prefers-reduced-motion: reduce) { .ta-face * { animation: none !important; } }\n.ta-group-face { position: relative; display: inline-flex; flex: none; }\n.ta-group-face-back { position: absolute; right: 0; top: 0; }\n.ta-group-face-front { position: absolute; left: 0; bottom: 0; z-index: 1; }\n";
|
|
@@ -118,6 +118,7 @@ export const SURFACES_STYLE = `
|
|
|
118
118
|
.ta-face { position: relative; display: inline-flex; flex: none; }
|
|
119
119
|
.ta-face svg { display: block; overflow: visible; }
|
|
120
120
|
.ta-face-double { align-items: center; justify-content: center; }
|
|
121
|
+
.ta-face-picture > img { display: block; flex: none; border-radius: 50%; object-fit: cover; background: var(--ta-main); }
|
|
121
122
|
.ta-face-eyes { transform-box: fill-box; transform-origin: center; animation: ta-face-blink 5.2s infinite; }
|
|
122
123
|
.ta-face[data-face="1"] .ta-face-eyes, .ta-face[data-face="5"] .ta-face-eyes, .ta-face[data-face="9"] .ta-face-eyes, .ta-face[data-face="13"] .ta-face-eyes, .ta-face[data-face="17"] .ta-face-eyes, .ta-face[data-face="21"] .ta-face-eyes { animation-delay: -1.7s; }
|
|
123
124
|
.ta-face[data-face="2"] .ta-face-eyes, .ta-face[data-face="6"] .ta-face-eyes, .ta-face[data-face="10"] .ta-face-eyes, .ta-face[data-face="14"] .ta-face-eyes, .ta-face[data-face="18"] .ta-face-eyes, .ta-face[data-face="22"] .ta-face-eyes { animation-delay: -3.1s; }
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** The picture the user gives themselves (TaRoomServer.setPicture), made of a photo. */
|
|
2
|
+
export declare namespace PictureUtil {
|
|
3
|
+
/** The middle square of a photo, as a JPEG small enough; undefined when none is. */
|
|
4
|
+
function square(file: Blob): Promise<string | undefined>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { TA_PICTURE } from '@celljs/ta-protocol';
|
|
2
|
+
/** Sides of the square tried, largest first, and qualities of each, till one fits a picture of Ta (TA_PICTURE.maxChars). */
|
|
3
|
+
const SIDES = [192, 160, 128, 96];
|
|
4
|
+
const QUALITIES = [0.86, 0.76, 0.66];
|
|
5
|
+
/** The picture the user gives themselves (TaRoomServer.setPicture), made of a photo. */
|
|
6
|
+
export var PictureUtil;
|
|
7
|
+
(function (PictureUtil) {
|
|
8
|
+
/** The middle square of a photo, as a JPEG small enough; undefined when none is. */
|
|
9
|
+
async function square(file) {
|
|
10
|
+
const bitmap = await createImageBitmap(file);
|
|
11
|
+
try {
|
|
12
|
+
const side = Math.min(bitmap.width, bitmap.height);
|
|
13
|
+
const left = (bitmap.width - side) / 2;
|
|
14
|
+
const top = (bitmap.height - side) / 2;
|
|
15
|
+
for (const size of SIDES) {
|
|
16
|
+
const canvas = document.createElement('canvas');
|
|
17
|
+
canvas.width = size;
|
|
18
|
+
canvas.height = size;
|
|
19
|
+
const context = canvas.getContext('2d');
|
|
20
|
+
if (!context) {
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
// What is clear in a PNG shows white, not black, in a JPEG.
|
|
24
|
+
context.fillStyle = '#fff';
|
|
25
|
+
context.fillRect(0, 0, size, size);
|
|
26
|
+
context.imageSmoothingQuality = 'high';
|
|
27
|
+
context.drawImage(bitmap, left, top, side, side, 0, 0, size, size);
|
|
28
|
+
for (const quality of QUALITIES) {
|
|
29
|
+
const url = canvas.toDataURL('image/jpeg', quality);
|
|
30
|
+
if (url.length <= TA_PICTURE.maxChars) {
|
|
31
|
+
return url;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return undefined;
|
|
36
|
+
}
|
|
37
|
+
finally {
|
|
38
|
+
bitmap.close();
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
PictureUtil.square = square;
|
|
42
|
+
})(PictureUtil || (PictureUtil = {}));
|
|
43
|
+
//# sourceMappingURL=picture.js.map
|
|
@@ -6,6 +6,14 @@
|
|
|
6
6
|
export declare namespace TurnEnd {
|
|
7
7
|
/** How many letters and digits it holds, a filler alone (a breath, "嗯嗯", "uh-huh") counting none. */
|
|
8
8
|
function words(text: string): number;
|
|
9
|
+
/** What sounds alone say: the user thinks (a hesitation, an opener) or agrees (a backchannel). */
|
|
10
|
+
type Sounds = 'hesitation' | 'backchannel';
|
|
11
|
+
/**
|
|
12
|
+
* Whether what was said holds sounds alone and no words yet ("哎", "嗯,那个", "uh-huh"): a hesitation when any of
|
|
13
|
+
* them is of someone who thinks, else a backchannel; undefined when it holds words, or nothing, or asks ("啊?",
|
|
14
|
+
* "and then?").
|
|
15
|
+
*/
|
|
16
|
+
function sounds(text: string): Sounds | undefined;
|
|
9
17
|
/** It ends as a sentence does: a full stop, a question or an exclamation mark. */
|
|
10
18
|
function ended(text: string): boolean;
|
|
11
19
|
/** It ends on a word that leads on, a comma or an ellipsis: the user is still to say more. */
|
|
@@ -5,42 +5,46 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export var TurnEnd;
|
|
7
7
|
(function (TurnEnd) {
|
|
8
|
+
/** Sounds of someone who thinks, alone in a sentence: no words, and the user is to say more. */
|
|
9
|
+
const HESITATIONS = ['呃', '额', '啊', '哎', '诶', '欸', '唔', 'えっと', 'えーと', 'あの', 'あのー', 'um', 'umm', 'uh', 'uhh', 'er', 'erm', 'hmm', 'ah'];
|
|
10
|
+
/** Sounds of someone who listens or agrees, alone in a sentence: no words, though they may be an answer ("嗯"). */
|
|
11
|
+
const BACKCHANNELS = ['嗯', '嗯嗯', '哦', '噢', '哦哦', '对对', '对对对', '好好', 'うん', 'ええ', 'はい', 'mm', 'mhm', 'uh-huh', 'oh'];
|
|
8
12
|
/** Sounds of someone who thinks or listens, alone in a sentence: no words. */
|
|
9
|
-
const FILLERS = [
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
'
|
|
13
|
-
'
|
|
14
|
-
'
|
|
15
|
-
'
|
|
16
|
-
'
|
|
17
|
-
'
|
|
18
|
-
'
|
|
19
|
-
'
|
|
20
|
-
'
|
|
21
|
-
'
|
|
22
|
-
'
|
|
23
|
-
'
|
|
24
|
-
'
|
|
25
|
-
'
|
|
26
|
-
'
|
|
27
|
-
'
|
|
28
|
-
'
|
|
29
|
-
'
|
|
30
|
-
'
|
|
31
|
-
'
|
|
32
|
-
'
|
|
33
|
-
'
|
|
34
|
-
'
|
|
35
|
-
'
|
|
36
|
-
'
|
|
37
|
-
'
|
|
38
|
-
'
|
|
39
|
-
'
|
|
40
|
-
'
|
|
41
|
-
'
|
|
42
|
-
'
|
|
43
|
-
'
|
|
13
|
+
const FILLERS = [...HESITATIONS, ...BACKCHANNELS];
|
|
14
|
+
/** Words one begins with while thinking ("那个…", "就是…"): alone, nothing is said yet. */
|
|
15
|
+
const OPENERS = [
|
|
16
|
+
'那个',
|
|
17
|
+
'这个',
|
|
18
|
+
'就是',
|
|
19
|
+
'然后',
|
|
20
|
+
'还有',
|
|
21
|
+
'而且',
|
|
22
|
+
'但是',
|
|
23
|
+
'可是',
|
|
24
|
+
'不过',
|
|
25
|
+
'因为',
|
|
26
|
+
'所以',
|
|
27
|
+
'如果',
|
|
28
|
+
'或者',
|
|
29
|
+
'比如',
|
|
30
|
+
'那',
|
|
31
|
+
'就',
|
|
32
|
+
'那個',
|
|
33
|
+
'這個',
|
|
34
|
+
'還有',
|
|
35
|
+
'因為',
|
|
36
|
+
'比如說',
|
|
37
|
+
'それから',
|
|
38
|
+
'でも',
|
|
39
|
+
'だから',
|
|
40
|
+
'けど',
|
|
41
|
+
'あと',
|
|
42
|
+
'and',
|
|
43
|
+
'but',
|
|
44
|
+
'so',
|
|
45
|
+
'because',
|
|
46
|
+
'like',
|
|
47
|
+
'then',
|
|
44
48
|
];
|
|
45
49
|
/** Words at the end of what was said that lead on to more: the user is not done. */
|
|
46
50
|
const LEADING = [
|
|
@@ -119,6 +123,45 @@ export var TurnEnd;
|
|
|
119
123
|
return FILLERS.some(filler => bare(filler) === letters) ? 0 : letters.length;
|
|
120
124
|
}
|
|
121
125
|
TurnEnd.words = words;
|
|
126
|
+
/** The sounds of the list, by their letters, longest first: a sentence of them is taken apart greedily. */
|
|
127
|
+
const SOUNDS = [
|
|
128
|
+
...HESITATIONS.map(word => [word, 'hesitation']),
|
|
129
|
+
...OPENERS.map(word => [word, 'hesitation']),
|
|
130
|
+
...BACKCHANNELS.map(word => [word, 'backchannel']),
|
|
131
|
+
]
|
|
132
|
+
.map(([word, kind]) => [bare(word), kind])
|
|
133
|
+
.sort((a, b) => b[0].length - a[0].length);
|
|
134
|
+
/**
|
|
135
|
+
* Whether what was said holds sounds alone and no words yet ("哎", "嗯,那个", "uh-huh"): a hesitation when any of
|
|
136
|
+
* them is of someone who thinks, else a backchannel; undefined when it holds words, or nothing, or asks ("啊?",
|
|
137
|
+
* "and then?").
|
|
138
|
+
*/
|
|
139
|
+
function sounds(text) {
|
|
140
|
+
if (/[??]\s*$/u.test(text)) {
|
|
141
|
+
return undefined;
|
|
142
|
+
}
|
|
143
|
+
// "uh-huh" is one sound; words of Latin letters are whole words, those of other scripts run together.
|
|
144
|
+
const chunks = text
|
|
145
|
+
.toLowerCase()
|
|
146
|
+
.replace(/(\p{L})-(\p{L})/gu, '$1$2')
|
|
147
|
+
.split(/[^\p{L}\p{N}]+/u)
|
|
148
|
+
.filter(Boolean);
|
|
149
|
+
let kind;
|
|
150
|
+
for (const chunk of chunks) {
|
|
151
|
+
let rest = chunk;
|
|
152
|
+
while (rest) {
|
|
153
|
+
const latin = /^[a-z]+$/.test(rest);
|
|
154
|
+
const found = SOUNDS.find(([word]) => (latin ? rest === word : rest.startsWith(word)));
|
|
155
|
+
if (!found) {
|
|
156
|
+
return undefined;
|
|
157
|
+
}
|
|
158
|
+
kind = kind === 'hesitation' ? kind : found[1];
|
|
159
|
+
rest = rest.slice(found[0].length);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
return kind;
|
|
163
|
+
}
|
|
164
|
+
TurnEnd.sounds = sounds;
|
|
122
165
|
/** It ends as a sentence does: a full stop, a question or an exclamation mark. */
|
|
123
166
|
function ended(text) {
|
|
124
167
|
const trimmed = text.trim().replace(/["'”’」』))]+$/u, '');
|
|
@@ -2,7 +2,7 @@ import type { TaConnection } from '@celljs/ta-client';
|
|
|
2
2
|
import type { TaServerInfo } from '@celljs/ta-protocol';
|
|
3
3
|
import { type HostList } from './hosts.js';
|
|
4
4
|
import { WorkbenchLists } from './workbench-lists.js';
|
|
5
|
-
import type { Credential } from './workbench-protocol.js';
|
|
5
|
+
import type { Credential, SavedHost } from './workbench-protocol.js';
|
|
6
6
|
/** The computers this device signs in to: which is in use, and what is kept of each. */
|
|
7
7
|
export declare abstract class WorkbenchHosts extends WorkbenchLists {
|
|
8
8
|
protected list: HostList;
|
|
@@ -16,8 +16,11 @@ export declare abstract class WorkbenchHosts extends WorkbenchLists {
|
|
|
16
16
|
* used at once when none is.
|
|
17
17
|
*/
|
|
18
18
|
addAccountHost(link: string, account: string): Promise<void>;
|
|
19
|
+
markAccountHost(hostId: string, account: string): void;
|
|
19
20
|
/** The computers the account brought: those of `account`, or all of them when the device left the account. */
|
|
20
21
|
forgetAccountHosts(account?: string): void;
|
|
22
|
+
parkHosts(ids: string[]): SavedHost[];
|
|
23
|
+
restoreHosts(hosts: SavedHost[]): void;
|
|
21
24
|
switchTo(hostId: string): void;
|
|
22
25
|
forget(hostId: string): void;
|
|
23
26
|
rename(hostId: string, name: string): void;
|
|
@@ -30,6 +30,10 @@ export class WorkbenchHosts extends WorkbenchLists {
|
|
|
30
30
|
* used at once when none is.
|
|
31
31
|
*/
|
|
32
32
|
async addAccountHost(link, account) {
|
|
33
|
+
// One reached directly already (a Ta in the cloud, by its gateway): not a second entry through the relay.
|
|
34
|
+
if (this.list.hosts.some(one => one.account === account && 'token' in one.credential)) {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
33
37
|
const credential = WorkbenchUtil.credential(link);
|
|
34
38
|
const id = WorkbenchUtil.serverOf(credential, pageHost());
|
|
35
39
|
if (this.current.status === 'signed-out' && !this.list.current) {
|
|
@@ -39,12 +43,25 @@ export class WorkbenchHosts extends WorkbenchLists {
|
|
|
39
43
|
}
|
|
40
44
|
this.keepHosts(HostUtil.keep(this.list, id, credential, account, Date.now()));
|
|
41
45
|
}
|
|
46
|
+
markAccountHost(hostId, account) {
|
|
47
|
+
this.keepHosts({ ...this.list, hosts: this.list.hosts.map(one => (one.id === hostId ? { ...one, account } : one)) });
|
|
48
|
+
}
|
|
42
49
|
/** The computers the account brought: those of `account`, or all of them when the device left the account. */
|
|
43
50
|
forgetAccountHosts(account) {
|
|
44
51
|
for (const host of this.list.hosts.filter(one => one.account && (account === undefined || one.account === account))) {
|
|
45
52
|
this.forget(host.id);
|
|
46
53
|
}
|
|
47
54
|
}
|
|
55
|
+
parkHosts(ids) {
|
|
56
|
+
const parked = this.list.hosts.filter(one => ids.includes(one.id));
|
|
57
|
+
const current = this.list.current && ids.includes(this.list.current) ? undefined : this.list.current;
|
|
58
|
+
this.keepHosts({ ...(current ? { current } : {}), hosts: this.list.hosts.filter(one => !ids.includes(one.id)) });
|
|
59
|
+
return parked;
|
|
60
|
+
}
|
|
61
|
+
restoreHosts(hosts) {
|
|
62
|
+
const ids = new Set(hosts.map(one => one.id));
|
|
63
|
+
this.keepHosts({ ...(this.list.current ? { current: this.list.current } : {}), hosts: [...this.list.hosts.filter(one => !ids.has(one.id)), ...hosts] });
|
|
64
|
+
}
|
|
48
65
|
switchTo(hostId) {
|
|
49
66
|
const host = this.list.hosts.find(one => one.id === hostId);
|
|
50
67
|
if (!host || (hostId === this.current.host && this.current.status !== 'signed-out')) {
|
|
@@ -132,8 +132,16 @@ export interface TaWorkbench {
|
|
|
132
132
|
rename(hostId: string, name: string): void;
|
|
133
133
|
/** A way into a computer of the user's account (docs/design/ta-account.md): kept, used at once when none is. */
|
|
134
134
|
addAccountHost(link: string, account: string): Promise<void>;
|
|
135
|
+
/** A computer this device brought into its account (docs/design/ta-me.md 4) is its device `account` there. */
|
|
136
|
+
markAccountHost(hostId: string, account: string): void;
|
|
135
137
|
/** The computers the account brought: those of `account`, or all when the device left the account. */
|
|
136
138
|
forgetAccountHosts(account?: string): void;
|
|
139
|
+
/**
|
|
140
|
+
* Takes the computers of an account the user switched away from off the list, what the page kept of them kept on the
|
|
141
|
+
* device (docs/design/ta-me.md 4): back as they were with restoreHosts.
|
|
142
|
+
*/
|
|
143
|
+
parkHosts(ids: string[]): SavedHost[];
|
|
144
|
+
restoreHosts(hosts: SavedHost[]): void;
|
|
137
145
|
/** Forgets the computer in use and loads the page again, at the sign-in, with the other computers kept. */
|
|
138
146
|
signOut(): void;
|
|
139
147
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TaAccountInfo } from '@celljs/ta-protocol';
|
|
1
|
+
import type { TaAccountInfo, TaAccountServer } from '@celljs/ta-protocol';
|
|
2
2
|
import { AccountAgent, type AccountKept, type AccountView, type AccountWay } from '@celljs/ta-relay';
|
|
3
3
|
import type { SavedHost } from '../workbench-protocol';
|
|
4
4
|
/** What a page does about the account: of its ta serve (a computer), or of the device itself (the app). */
|
|
@@ -14,9 +14,27 @@ export interface AccountSide {
|
|
|
14
14
|
export interface AccountHosts {
|
|
15
15
|
readonly state: {
|
|
16
16
|
hosts: SavedHost[];
|
|
17
|
+
host?: string;
|
|
18
|
+
status: string;
|
|
19
|
+
switching?: string;
|
|
17
20
|
};
|
|
21
|
+
/** The account of the computer in use, through its ta serve. */
|
|
22
|
+
readonly account: TaAccountServer;
|
|
23
|
+
subscribe(listener: () => void): () => void;
|
|
18
24
|
addAccountHost(link: string, account: string): Promise<void>;
|
|
19
25
|
forgetAccountHosts(account?: string): void;
|
|
26
|
+
markAccountHost(hostId: string, account: string): void;
|
|
27
|
+
forget(hostId: string): void;
|
|
28
|
+
switchTo(hostId: string): void;
|
|
29
|
+
parkHosts(ids: string[]): SavedHost[];
|
|
30
|
+
restoreHosts(hosts: SavedHost[]): void;
|
|
31
|
+
switchSignIn(): void;
|
|
32
|
+
}
|
|
33
|
+
/** An account this device switched away from (docs/design/ta-me.md 4): back in one tap, with its computers. */
|
|
34
|
+
export interface RecentAccount {
|
|
35
|
+
kept: AccountKept;
|
|
36
|
+
hosts: SavedHost[];
|
|
37
|
+
at: number;
|
|
20
38
|
}
|
|
21
39
|
/**
|
|
22
40
|
* The app as a device of the user's account (docs/design/ta-account.md): its own keys in localStorage; the computers
|
|
@@ -42,12 +60,58 @@ export declare class DeviceAccount implements AccountSide {
|
|
|
42
60
|
protected timer?: ReturnType<typeof setTimeout>;
|
|
43
61
|
protected running?: Promise<void>;
|
|
44
62
|
protected constructor(hosts: AccountHosts, service: () => Promise<string>, gateways: () => Promise<string[]>);
|
|
63
|
+
/** The computers to bring into the account, and the devices of it this device lets in once they ask. */
|
|
64
|
+
protected static joining(): {
|
|
65
|
+
hosts: string[];
|
|
66
|
+
devices: string[];
|
|
67
|
+
};
|
|
68
|
+
protected static keepJoining(next: {
|
|
69
|
+
hosts: string[];
|
|
70
|
+
devices: string[];
|
|
71
|
+
}): void;
|
|
72
|
+
/**
|
|
73
|
+
* A computer connected by its code while this device is in an account (docs/design/ta-me.md 4): it joins the account
|
|
74
|
+
* once connected, with a token of the account this device gets for it, and this device lets it in. Being by the
|
|
75
|
+
* computer to scan its code is as good as tapping Allow.
|
|
76
|
+
*/
|
|
77
|
+
bringIn(hostId: string): void;
|
|
78
|
+
protected bringing: boolean;
|
|
79
|
+
/** The computers tried once in this page: one that would not join is not asked again every round. */
|
|
80
|
+
protected readonly tried: Set<string>;
|
|
81
|
+
/** The Ta in the cloud of the account's gateway, in the account too (docs/design/ta-me.md 2): brought in as a scanned computer. */
|
|
82
|
+
protected bringCloud(): void;
|
|
83
|
+
/** The computer in use, if it waits to be brought into the account: asked to join it. */
|
|
84
|
+
protected bringPending(): Promise<void>;
|
|
85
|
+
/** The computers this device brought in, let in as soon as they ask. */
|
|
86
|
+
protected letInBrought(view: AccountView): Promise<AccountView>;
|
|
87
|
+
/** The one of the page, once made. */
|
|
88
|
+
static current(): DeviceAccount | undefined;
|
|
45
89
|
/** The one of the page. */
|
|
46
90
|
static of(hosts: AccountHosts, service: () => Promise<string>, gateways: () => Promise<string[]>): DeviceAccount;
|
|
47
91
|
/** What the device calls itself in the account. */
|
|
48
92
|
static deviceName(agent?: string): string;
|
|
49
93
|
protected static read(): AccountKept | undefined;
|
|
50
94
|
protected agentOf(kept: AccountKept): AccountAgent;
|
|
95
|
+
/** The address of the gateway of a Ta in the cloud kept, as the account service it is. */
|
|
96
|
+
protected static gatewayOf(host: SavedHost): string | undefined;
|
|
97
|
+
/** The computers the account brought: those it paired, and the Ta in the cloud of its gateway (a company's account). */
|
|
98
|
+
protected ownHosts(): SavedHost[];
|
|
99
|
+
/** The accounts switched away from, the latest first. */
|
|
100
|
+
static recent(): RecentAccount[];
|
|
101
|
+
protected static keepRecent(recent: RecentAccount[]): void;
|
|
102
|
+
/** The account in use put aside, its computers with it, for another (WeChat's switching of accounts). */
|
|
103
|
+
protected putAside(): void;
|
|
104
|
+
/** Back to the sign-in, the account in use kept among those signed in to lately. */
|
|
105
|
+
switchAccount(): void;
|
|
106
|
+
/** An account switched away from, in use again, with its computers: the one of them used last opens. */
|
|
107
|
+
resume(account: string): void;
|
|
108
|
+
/** An account switched away from, no longer offered. */
|
|
109
|
+
forgetRecent(account: string): void;
|
|
110
|
+
/**
|
|
111
|
+
* Signed in to a Ta in the cloud: its gateway's account is this device's from now on, one account at a time
|
|
112
|
+
* (docs/design/ta-me.md 2); another in use is put aside, to come back to.
|
|
113
|
+
*/
|
|
114
|
+
cloudSignedIn(gateway: string): void;
|
|
51
115
|
/** A Ta in the cloud signed in to: its token is the account of its gateway, which this device joins by itself. */
|
|
52
116
|
protected cloudToken(): {
|
|
53
117
|
service: string;
|