@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,5 +2,5 @@
|
|
|
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";
|
|
6
6
|
//# sourceMappingURL=surfaces.d.ts.map
|
|
@@ -121,6 +121,7 @@ exports.SURFACES_STYLE = `
|
|
|
121
121
|
.ta-face { position: relative; display: inline-flex; flex: none; }
|
|
122
122
|
.ta-face svg { display: block; overflow: visible; }
|
|
123
123
|
.ta-face-double { align-items: center; justify-content: center; }
|
|
124
|
+
.ta-face-picture > img { display: block; flex: none; border-radius: 50%; object-fit: cover; background: var(--ta-main); }
|
|
124
125
|
.ta-face-eyes { transform-box: fill-box; transform-origin: center; animation: ta-face-blink 5.2s infinite; }
|
|
125
126
|
.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; }
|
|
126
127
|
.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,6 @@
|
|
|
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
|
+
}
|
|
6
|
+
//# sourceMappingURL=picture.d.ts.map
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PictureUtil = void 0;
|
|
4
|
+
const ta_protocol_1 = require("@celljs/ta-protocol");
|
|
5
|
+
/** Sides of the square tried, largest first, and qualities of each, till one fits a picture of Ta (TA_PICTURE.maxChars). */
|
|
6
|
+
const SIDES = [192, 160, 128, 96];
|
|
7
|
+
const QUALITIES = [0.86, 0.76, 0.66];
|
|
8
|
+
/** The picture the user gives themselves (TaRoomServer.setPicture), made of a photo. */
|
|
9
|
+
var PictureUtil;
|
|
10
|
+
(function (PictureUtil) {
|
|
11
|
+
/** The middle square of a photo, as a JPEG small enough; undefined when none is. */
|
|
12
|
+
async function square(file) {
|
|
13
|
+
const bitmap = await createImageBitmap(file);
|
|
14
|
+
try {
|
|
15
|
+
const side = Math.min(bitmap.width, bitmap.height);
|
|
16
|
+
const left = (bitmap.width - side) / 2;
|
|
17
|
+
const top = (bitmap.height - side) / 2;
|
|
18
|
+
for (const size of SIDES) {
|
|
19
|
+
const canvas = document.createElement('canvas');
|
|
20
|
+
canvas.width = size;
|
|
21
|
+
canvas.height = size;
|
|
22
|
+
const context = canvas.getContext('2d');
|
|
23
|
+
if (!context) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
// What is clear in a PNG shows white, not black, in a JPEG.
|
|
27
|
+
context.fillStyle = '#fff';
|
|
28
|
+
context.fillRect(0, 0, size, size);
|
|
29
|
+
context.imageSmoothingQuality = 'high';
|
|
30
|
+
context.drawImage(bitmap, left, top, side, side, 0, 0, size, size);
|
|
31
|
+
for (const quality of QUALITIES) {
|
|
32
|
+
const url = canvas.toDataURL('image/jpeg', quality);
|
|
33
|
+
if (url.length <= ta_protocol_1.TA_PICTURE.maxChars) {
|
|
34
|
+
return url;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return undefined;
|
|
39
|
+
}
|
|
40
|
+
finally {
|
|
41
|
+
bitmap.close();
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
PictureUtil.square = square;
|
|
45
|
+
})(PictureUtil || (exports.PictureUtil = PictureUtil = {}));
|
|
46
|
+
//# 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. */
|
|
@@ -8,42 +8,46 @@ exports.TurnEnd = void 0;
|
|
|
8
8
|
*/
|
|
9
9
|
var TurnEnd;
|
|
10
10
|
(function (TurnEnd) {
|
|
11
|
+
/** Sounds of someone who thinks, alone in a sentence: no words, and the user is to say more. */
|
|
12
|
+
const HESITATIONS = ['呃', '额', '啊', '哎', '诶', '欸', '唔', 'えっと', 'えーと', 'あの', 'あのー', 'um', 'umm', 'uh', 'uhh', 'er', 'erm', 'hmm', 'ah'];
|
|
13
|
+
/** Sounds of someone who listens or agrees, alone in a sentence: no words, though they may be an answer ("嗯"). */
|
|
14
|
+
const BACKCHANNELS = ['嗯', '嗯嗯', '哦', '噢', '哦哦', '对对', '对对对', '好好', 'うん', 'ええ', 'はい', 'mm', 'mhm', 'uh-huh', 'oh'];
|
|
11
15
|
/** Sounds of someone who thinks or listens, alone in a sentence: no words. */
|
|
12
|
-
const FILLERS = [
|
|
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
|
-
'
|
|
44
|
-
'
|
|
45
|
-
'
|
|
46
|
-
'
|
|
16
|
+
const FILLERS = [...HESITATIONS, ...BACKCHANNELS];
|
|
17
|
+
/** Words one begins with while thinking ("那个…", "就是…"): alone, nothing is said yet. */
|
|
18
|
+
const OPENERS = [
|
|
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
|
+
'けど',
|
|
44
|
+
'あと',
|
|
45
|
+
'and',
|
|
46
|
+
'but',
|
|
47
|
+
'so',
|
|
48
|
+
'because',
|
|
49
|
+
'like',
|
|
50
|
+
'then',
|
|
47
51
|
];
|
|
48
52
|
/** Words at the end of what was said that lead on to more: the user is not done. */
|
|
49
53
|
const LEADING = [
|
|
@@ -122,6 +126,45 @@ var TurnEnd;
|
|
|
122
126
|
return FILLERS.some(filler => bare(filler) === letters) ? 0 : letters.length;
|
|
123
127
|
}
|
|
124
128
|
TurnEnd.words = words;
|
|
129
|
+
/** The sounds of the list, by their letters, longest first: a sentence of them is taken apart greedily. */
|
|
130
|
+
const SOUNDS = [
|
|
131
|
+
...HESITATIONS.map(word => [word, 'hesitation']),
|
|
132
|
+
...OPENERS.map(word => [word, 'hesitation']),
|
|
133
|
+
...BACKCHANNELS.map(word => [word, 'backchannel']),
|
|
134
|
+
]
|
|
135
|
+
.map(([word, kind]) => [bare(word), kind])
|
|
136
|
+
.sort((a, b) => b[0].length - a[0].length);
|
|
137
|
+
/**
|
|
138
|
+
* Whether what was said holds sounds alone and no words yet ("哎", "嗯,那个", "uh-huh"): a hesitation when any of
|
|
139
|
+
* them is of someone who thinks, else a backchannel; undefined when it holds words, or nothing, or asks ("啊?",
|
|
140
|
+
* "and then?").
|
|
141
|
+
*/
|
|
142
|
+
function sounds(text) {
|
|
143
|
+
if (/[??]\s*$/u.test(text)) {
|
|
144
|
+
return undefined;
|
|
145
|
+
}
|
|
146
|
+
// "uh-huh" is one sound; words of Latin letters are whole words, those of other scripts run together.
|
|
147
|
+
const chunks = text
|
|
148
|
+
.toLowerCase()
|
|
149
|
+
.replace(/(\p{L})-(\p{L})/gu, '$1$2')
|
|
150
|
+
.split(/[^\p{L}\p{N}]+/u)
|
|
151
|
+
.filter(Boolean);
|
|
152
|
+
let kind;
|
|
153
|
+
for (const chunk of chunks) {
|
|
154
|
+
let rest = chunk;
|
|
155
|
+
while (rest) {
|
|
156
|
+
const latin = /^[a-z]+$/.test(rest);
|
|
157
|
+
const found = SOUNDS.find(([word]) => (latin ? rest === word : rest.startsWith(word)));
|
|
158
|
+
if (!found) {
|
|
159
|
+
return undefined;
|
|
160
|
+
}
|
|
161
|
+
kind = kind === 'hesitation' ? kind : found[1];
|
|
162
|
+
rest = rest.slice(found[0].length);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
return kind;
|
|
166
|
+
}
|
|
167
|
+
TurnEnd.sounds = sounds;
|
|
125
168
|
/** It ends as a sentence does: a full stop, a question or an exclamation mark. */
|
|
126
169
|
function ended(text) {
|
|
127
170
|
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';
|
|
4
4
|
import { WorkbenchLists } from './workbench-lists';
|
|
5
|
-
import type { Credential } from './workbench-protocol';
|
|
5
|
+
import type { Credential, SavedHost } from './workbench-protocol';
|
|
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;
|
|
@@ -33,6 +33,10 @@ class WorkbenchHosts extends workbench_lists_1.WorkbenchLists {
|
|
|
33
33
|
* used at once when none is.
|
|
34
34
|
*/
|
|
35
35
|
async addAccountHost(link, account) {
|
|
36
|
+
// One reached directly already (a Ta in the cloud, by its gateway): not a second entry through the relay.
|
|
37
|
+
if (this.list.hosts.some(one => one.account === account && 'token' in one.credential)) {
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
36
40
|
const credential = workbench_util_1.WorkbenchUtil.credential(link);
|
|
37
41
|
const id = workbench_util_1.WorkbenchUtil.serverOf(credential, (0, workbench_util_1.pageHost)());
|
|
38
42
|
if (this.current.status === 'signed-out' && !this.list.current) {
|
|
@@ -42,12 +46,25 @@ class WorkbenchHosts extends workbench_lists_1.WorkbenchLists {
|
|
|
42
46
|
}
|
|
43
47
|
this.keepHosts(hosts_1.HostUtil.keep(this.list, id, credential, account, Date.now()));
|
|
44
48
|
}
|
|
49
|
+
markAccountHost(hostId, account) {
|
|
50
|
+
this.keepHosts({ ...this.list, hosts: this.list.hosts.map(one => (one.id === hostId ? { ...one, account } : one)) });
|
|
51
|
+
}
|
|
45
52
|
/** The computers the account brought: those of `account`, or all of them when the device left the account. */
|
|
46
53
|
forgetAccountHosts(account) {
|
|
47
54
|
for (const host of this.list.hosts.filter(one => one.account && (account === undefined || one.account === account))) {
|
|
48
55
|
this.forget(host.id);
|
|
49
56
|
}
|
|
50
57
|
}
|
|
58
|
+
parkHosts(ids) {
|
|
59
|
+
const parked = this.list.hosts.filter(one => ids.includes(one.id));
|
|
60
|
+
const current = this.list.current && ids.includes(this.list.current) ? undefined : this.list.current;
|
|
61
|
+
this.keepHosts({ ...(current ? { current } : {}), hosts: this.list.hosts.filter(one => !ids.includes(one.id)) });
|
|
62
|
+
return parked;
|
|
63
|
+
}
|
|
64
|
+
restoreHosts(hosts) {
|
|
65
|
+
const ids = new Set(hosts.map(one => one.id));
|
|
66
|
+
this.keepHosts({ ...(this.list.current ? { current: this.list.current } : {}), hosts: [...this.list.hosts.filter(one => !ids.has(one.id)), ...hosts] });
|
|
67
|
+
}
|
|
51
68
|
switchTo(hostId) {
|
|
52
69
|
const host = this.list.hosts.find(one => one.id === hostId);
|
|
53
70
|
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
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-web",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.21.0",
|
|
4
4
|
"description": "The web client of ta serve: sessions, streaming messages, tool runs with diffs, and dialogs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cell-component"
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
"watch": "tsc -b -w --preserveWatchOutput"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@celljs/core": "4.
|
|
37
|
-
"@celljs/react": "4.
|
|
38
|
-
"@celljs/ta-client": "4.
|
|
39
|
-
"@celljs/ta-protocol": "4.
|
|
40
|
-
"@celljs/ta-relay": "4.
|
|
41
|
-
"@celljs/widget": "4.
|
|
36
|
+
"@celljs/core": "4.21.0",
|
|
37
|
+
"@celljs/react": "4.21.0",
|
|
38
|
+
"@celljs/ta-client": "4.21.0",
|
|
39
|
+
"@celljs/ta-protocol": "4.21.0",
|
|
40
|
+
"@celljs/ta-relay": "4.21.0",
|
|
41
|
+
"@celljs/widget": "4.21.0",
|
|
42
42
|
"@types/three": "^0.187.0",
|
|
43
43
|
"@xterm/addon-fit": "^0.11.0",
|
|
44
44
|
"@xterm/addon-unicode11": "^0.9.0",
|