@celljs/ta-web 4.43.0 → 4.45.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/apps/app-window.js +2 -2
- package/esm/browser/assistant/assistant-chat-list.js +2 -1
- package/esm/browser/assistant/assistant-extension.js +16 -2
- package/esm/browser/assistant/assistant-protocol.d.ts +6 -0
- package/esm/browser/assistant/assistant-task-source.js +3 -0
- package/esm/browser/assistant/assistant-task-util.d.ts +2 -0
- package/esm/browser/assistant/assistant-task-util.js +5 -0
- package/esm/browser/assistant/assistant.d.ts +3 -0
- package/esm/browser/assistant/assistant.js +26 -2
- package/esm/browser/components/app-shell-hooks.d.ts +2 -1
- package/esm/browser/components/app-shell-hooks.js +4 -3
- package/esm/browser/components/app-shell-state.js +2 -2
- package/esm/browser/components/chat-list-row.js +4 -4
- package/esm/browser/components/chat-list-util.d.ts +2 -2
- package/esm/browser/components/cloud-sign-in-view.d.ts +1 -1
- package/esm/browser/components/custom-host.d.ts +4 -1
- package/esm/browser/components/custom-host.js +8 -2
- package/esm/browser/components/earlier-messages.d.ts +4 -1
- package/esm/browser/components/earlier-messages.js +5 -2
- package/esm/browser/components/hearing-host.d.ts +2 -1
- package/esm/browser/components/hearing-host.js +10 -7
- package/esm/browser/components/host-view.d.ts +1 -1
- package/esm/browser/components/message-list.js +2 -1
- package/esm/browser/components/message-steps.js +8 -5
- package/esm/browser/components/settings-choices.d.ts +2 -1
- package/esm/browser/components/settings-choices.js +2 -1
- package/esm/browser/components/settings-parts.js +23 -3
- package/esm/browser/components/share-dialog.js +1 -1
- package/esm/browser/components/share-friends.d.ts +18 -2
- package/esm/browser/components/share-friends.js +62 -4
- package/esm/browser/components/share-sheet.d.ts +4 -3
- package/esm/browser/components/share-sheet.js +11 -3
- package/esm/browser/extension/web-api-chats.d.ts +23 -0
- package/esm/browser/extension/web-api-desktop.d.ts +14 -0
- package/esm/browser/extension/web-api-skins.d.ts +95 -0
- package/esm/browser/extension/web-api-skins.js +2 -0
- package/esm/browser/extension/web-api-spec.js +3 -0
- package/esm/browser/extension/web-extension-api.d.ts +11 -26
- package/esm/browser/extension/web-extension-context.js +4 -0
- package/esm/browser/extension/web-extension-protocol.d.ts +3 -1
- package/esm/browser/extension/web-extension-protocol.js +1 -0
- package/esm/browser/extension/web-extension-run.d.ts +3 -2
- package/esm/browser/extension/web-extension-run.js +3 -0
- package/esm/browser/extension/web-share-ui.js +6 -1
- package/esm/browser/i18n/en/assistant.d.ts +4 -0
- package/esm/browser/i18n/en/assistant.js +4 -0
- package/esm/browser/i18n/en/chat.d.ts +1 -0
- package/esm/browser/i18n/en/chat.js +1 -0
- package/esm/browser/i18n/en/common.d.ts +0 -3
- package/esm/browser/i18n/en/common.js +0 -3
- package/esm/browser/i18n/en/discover.d.ts +4 -1
- package/esm/browser/i18n/en/discover.js +4 -1
- package/esm/browser/i18n/en/service.js +1 -1
- package/esm/browser/i18n/en/settings.d.ts +8 -0
- package/esm/browser/i18n/en/settings.js +8 -0
- package/esm/browser/i18n/en/tools.d.ts +5 -0
- package/esm/browser/i18n/en/tools.js +5 -0
- package/esm/browser/i18n/ja/assistant.js +4 -0
- package/esm/browser/i18n/ja/chat.js +1 -0
- package/esm/browser/i18n/ja/common.js +0 -3
- package/esm/browser/i18n/ja/discover.js +4 -1
- package/esm/browser/i18n/ja/service.js +1 -1
- package/esm/browser/i18n/ja/settings.js +8 -0
- package/esm/browser/i18n/ja/tools.js +5 -0
- package/esm/browser/i18n/locales.d.ts +23 -5
- package/esm/browser/i18n/messages.d.ts +22 -4
- package/esm/browser/i18n/zh/assistant.js +4 -0
- package/esm/browser/i18n/zh/chat.js +1 -0
- package/esm/browser/i18n/zh/common.js +0 -3
- package/esm/browser/i18n/zh/discover.js +4 -1
- package/esm/browser/i18n/zh/service.js +1 -1
- package/esm/browser/i18n/zh/settings.js +8 -0
- package/esm/browser/i18n/zh/tools.js +5 -0
- package/esm/browser/i18n/zh-tw/assistant.js +4 -0
- package/esm/browser/i18n/zh-tw/chat.js +1 -0
- package/esm/browser/i18n/zh-tw/common.js +0 -3
- package/esm/browser/i18n/zh-tw/discover.js +4 -1
- package/esm/browser/i18n/zh-tw/service.js +1 -1
- package/esm/browser/i18n/zh-tw/settings.js +8 -0
- package/esm/browser/i18n/zh-tw/tools.js +5 -0
- package/esm/browser/links/clipboard-links.d.ts +4 -8
- package/esm/browser/links/clipboard-links.js +9 -51
- package/esm/browser/sandbox/sandbox-runtime-code.js +1 -1
- package/esm/browser/settings/settings-protocol.d.ts +24 -0
- package/esm/browser/settings/settings-protocol.js +9 -0
- package/esm/browser/settings/settings.d.ts +4 -1
- package/esm/browser/settings/settings.js +16 -3
- package/esm/browser/skin/skin-layer.d.ts +8 -0
- package/esm/browser/skin/skin-layer.js +118 -0
- package/esm/browser/skin/skin-util.d.ts +40 -0
- package/esm/browser/skin/skin-util.js +120 -0
- package/esm/browser/style/conversation.d.ts +1 -1
- package/esm/browser/style/conversation.js +3 -2
- package/esm/browser/style/skins.d.ts +9 -0
- package/esm/browser/style/skins.js +107 -0
- package/esm/browser/style/surfaces.d.ts +1 -1
- package/esm/browser/style/surfaces.js +8 -0
- package/esm/browser/style.js +2 -0
- package/esm/browser/util/desktop.d.ts +11 -1
- package/esm/browser/util/desktop.js +30 -0
- package/esm/browser/util/fresh-rows.d.ts +21 -0
- package/esm/browser/util/fresh-rows.js +36 -0
- package/esm/browser/util/process.d.ts +12 -22
- package/esm/browser/util/process.js +49 -39
- package/esm/browser/util/tool.js +15 -5
- package/esm/browser/util/voice.js +10 -2
- package/lib/browser/apps/app-window.js +2 -2
- package/lib/browser/assistant/assistant-chat-list.js +2 -1
- package/lib/browser/assistant/assistant-extension.js +15 -1
- package/lib/browser/assistant/assistant-protocol.d.ts +6 -0
- package/lib/browser/assistant/assistant-task-source.js +3 -0
- package/lib/browser/assistant/assistant-task-util.d.ts +2 -0
- package/lib/browser/assistant/assistant-task-util.js +5 -0
- package/lib/browser/assistant/assistant.d.ts +3 -0
- package/lib/browser/assistant/assistant.js +26 -2
- package/lib/browser/components/app-shell-hooks.d.ts +2 -1
- package/lib/browser/components/app-shell-hooks.js +4 -3
- package/lib/browser/components/app-shell-state.js +2 -2
- package/lib/browser/components/chat-list-row.js +4 -4
- package/lib/browser/components/chat-list-util.d.ts +2 -2
- package/lib/browser/components/cloud-sign-in-view.d.ts +1 -1
- package/lib/browser/components/custom-host.d.ts +4 -1
- package/lib/browser/components/custom-host.js +8 -2
- package/lib/browser/components/earlier-messages.d.ts +4 -1
- package/lib/browser/components/earlier-messages.js +5 -2
- package/lib/browser/components/hearing-host.d.ts +2 -1
- package/lib/browser/components/hearing-host.js +9 -6
- package/lib/browser/components/host-view.d.ts +1 -1
- package/lib/browser/components/message-list.js +2 -1
- package/lib/browser/components/message-steps.js +8 -5
- package/lib/browser/components/settings-choices.d.ts +2 -1
- package/lib/browser/components/settings-choices.js +2 -1
- package/lib/browser/components/settings-parts.js +21 -1
- package/lib/browser/components/share-dialog.js +1 -1
- package/lib/browser/components/share-friends.d.ts +18 -2
- package/lib/browser/components/share-friends.js +65 -4
- package/lib/browser/components/share-sheet.d.ts +4 -3
- package/lib/browser/components/share-sheet.js +10 -2
- package/lib/browser/extension/web-api-chats.d.ts +23 -0
- package/lib/browser/extension/web-api-desktop.d.ts +14 -0
- package/lib/browser/extension/web-api-skins.d.ts +96 -0
- package/lib/browser/extension/web-api-skins.js +3 -0
- package/lib/browser/extension/web-api-spec.js +3 -0
- package/lib/browser/extension/web-extension-api.d.ts +11 -26
- package/lib/browser/extension/web-extension-context.js +4 -0
- package/lib/browser/extension/web-extension-protocol.d.ts +3 -1
- package/lib/browser/extension/web-extension-protocol.js +1 -0
- package/lib/browser/extension/web-extension-run.d.ts +3 -2
- package/lib/browser/extension/web-extension-run.js +3 -0
- package/lib/browser/extension/web-share-ui.js +6 -1
- package/lib/browser/i18n/en/assistant.d.ts +4 -0
- package/lib/browser/i18n/en/assistant.js +4 -0
- package/lib/browser/i18n/en/chat.d.ts +1 -0
- package/lib/browser/i18n/en/chat.js +1 -0
- package/lib/browser/i18n/en/common.d.ts +0 -3
- package/lib/browser/i18n/en/common.js +0 -3
- package/lib/browser/i18n/en/discover.d.ts +4 -1
- package/lib/browser/i18n/en/discover.js +4 -1
- package/lib/browser/i18n/en/service.js +1 -1
- package/lib/browser/i18n/en/settings.d.ts +8 -0
- package/lib/browser/i18n/en/settings.js +8 -0
- package/lib/browser/i18n/en/tools.d.ts +5 -0
- package/lib/browser/i18n/en/tools.js +5 -0
- package/lib/browser/i18n/ja/assistant.js +4 -0
- package/lib/browser/i18n/ja/chat.js +1 -0
- package/lib/browser/i18n/ja/common.js +0 -3
- package/lib/browser/i18n/ja/discover.js +4 -1
- package/lib/browser/i18n/ja/service.js +1 -1
- package/lib/browser/i18n/ja/settings.js +8 -0
- package/lib/browser/i18n/ja/tools.js +5 -0
- package/lib/browser/i18n/locales.d.ts +23 -5
- package/lib/browser/i18n/messages.d.ts +22 -4
- package/lib/browser/i18n/zh/assistant.js +4 -0
- package/lib/browser/i18n/zh/chat.js +1 -0
- package/lib/browser/i18n/zh/common.js +0 -3
- package/lib/browser/i18n/zh/discover.js +4 -1
- package/lib/browser/i18n/zh/service.js +1 -1
- package/lib/browser/i18n/zh/settings.js +8 -0
- package/lib/browser/i18n/zh/tools.js +5 -0
- package/lib/browser/i18n/zh-tw/assistant.js +4 -0
- package/lib/browser/i18n/zh-tw/chat.js +1 -0
- package/lib/browser/i18n/zh-tw/common.js +0 -3
- package/lib/browser/i18n/zh-tw/discover.js +4 -1
- package/lib/browser/i18n/zh-tw/service.js +1 -1
- package/lib/browser/i18n/zh-tw/settings.js +8 -0
- package/lib/browser/i18n/zh-tw/tools.js +5 -0
- package/lib/browser/links/clipboard-links.d.ts +4 -8
- package/lib/browser/links/clipboard-links.js +10 -52
- package/lib/browser/sandbox/sandbox-runtime-code.js +1 -1
- package/lib/browser/settings/settings-protocol.d.ts +24 -0
- package/lib/browser/settings/settings-protocol.js +10 -1
- package/lib/browser/settings/settings.d.ts +4 -1
- package/lib/browser/settings/settings.js +16 -3
- package/lib/browser/skin/skin-layer.d.ts +9 -0
- package/lib/browser/skin/skin-layer.js +154 -0
- package/lib/browser/skin/skin-util.d.ts +41 -0
- package/lib/browser/skin/skin-util.js +123 -0
- package/lib/browser/style/conversation.d.ts +1 -1
- package/lib/browser/style/conversation.js +3 -2
- package/lib/browser/style/skins.d.ts +10 -0
- package/lib/browser/style/skins.js +110 -0
- package/lib/browser/style/surfaces.d.ts +1 -1
- package/lib/browser/style/surfaces.js +8 -0
- package/lib/browser/style.js +2 -0
- package/lib/browser/util/desktop.d.ts +11 -1
- package/lib/browser/util/desktop.js +30 -0
- package/lib/browser/util/fresh-rows.d.ts +22 -0
- package/lib/browser/util/fresh-rows.js +40 -0
- package/lib/browser/util/process.d.ts +12 -22
- package/lib/browser/util/process.js +49 -40
- package/lib/browser/util/tool.js +15 -5
- package/lib/browser/util/voice.js +10 -2
- package/package.json +7 -7
|
@@ -63,12 +63,14 @@ function Tile({ icon: Icon, label, onClick, disabled }) {
|
|
|
63
63
|
React.createElement(Icon, { size: 20 })),
|
|
64
64
|
React.createElement("span", { className: "ta-share-tile-label" }, label)));
|
|
65
65
|
}
|
|
66
|
-
function ShareSheet({ title, link, error, face, name, gets, invite, notes, password, own, onRenew, onStop, stop, onClose, children, notices, rooms, }) {
|
|
66
|
+
function ShareSheet({ title, link, error, face, name, gets, invite, notes, password, own, onRenew, onStop, stop, onClose, children, notices, rooms, onRoomEvent, }) {
|
|
67
67
|
const t = (0, use_t_1.useT)();
|
|
68
68
|
const [copied, copy] = useCopied();
|
|
69
69
|
const [stopping, setStopping] = React.useState(false);
|
|
70
70
|
const [picking, setPicking] = React.useState(false);
|
|
71
71
|
const friends = (0, share_friends_1.useShareFriends)(rooms);
|
|
72
|
+
const [sends, setSends] = React.useState(0);
|
|
73
|
+
const sent = (0, share_friends_1.useFriendSends)(rooms, own ? undefined : link, sends, onRoomEvent);
|
|
72
74
|
const canFriends = !own && !!(friends === null || friends === void 0 ? void 0 : friends.length);
|
|
73
75
|
const canSend = !own && typeof navigator !== 'undefined' && typeof navigator.share === 'function';
|
|
74
76
|
const end = async () => {
|
|
@@ -103,11 +105,17 @@ function ShareSheet({ title, link, error, face, name, gets, invite, notes, passw
|
|
|
103
105
|
" ",
|
|
104
106
|
React.createElement("code", null, password)),
|
|
105
107
|
React.createElement("button", { type: "button", className: "ta-button", onClick: () => copy(password, 'password') }, copied === 'password' ? t('ta.share.copied') : t('ta.share.copyPassword')))),
|
|
106
|
-
picking && link && friends ? (React.createElement(share_friends_1.ShareToFriends, { rooms: rooms, notices: notices, friends: friends, link: link, title: name || title, onDone:
|
|
108
|
+
picking && link && friends ? (React.createElement(share_friends_1.ShareToFriends, { rooms: rooms, notices: notices, friends: friends, link: link, title: name || title, onDone: done => {
|
|
109
|
+
setPicking(false);
|
|
110
|
+
if (done) {
|
|
111
|
+
setSends(n => n + 1);
|
|
112
|
+
}
|
|
113
|
+
} })) : (React.createElement("div", { className: "ta-share-tiles" },
|
|
107
114
|
canFriends && React.createElement(Tile, { icon: lucide_react_1.Send, label: t('ta.share.friends'), disabled: !link, onClick: () => setPicking(true) }),
|
|
108
115
|
React.createElement(Tile, { icon: copied === 'link' ? lucide_react_1.Check : lucide_react_1.Copy, label: copied === 'link' ? t('ta.share.copied') : t('ta.share.copy'), disabled: !link, onClick: () => link && copy((0, share_sheet_compat_1.shareMessage)(invite, link), 'link') }),
|
|
109
116
|
canSend && (React.createElement(Tile, { icon: lucide_react_1.Share2, label: t('ta.share.apps'), disabled: !link, onClick: () => link && void navigator.share({ title: name || title, text: invite, url: link }).catch(() => undefined) })),
|
|
110
117
|
onRenew && React.createElement(Tile, { icon: lucide_react_1.RefreshCw, label: t('ta.share.renew'), disabled: !link, onClick: onRenew }))),
|
|
118
|
+
!picking && React.createElement(share_friends_1.FriendSends, { sent: sent }),
|
|
111
119
|
children,
|
|
112
120
|
lines.length > 0 && (React.createElement("div", { className: "ta-share-notes" }, lines.map(line => (React.createElement("p", { key: line }, line))))),
|
|
113
121
|
onStop && link && (React.createElement("button", { type: "button", className: `ta-share-stop${stopping ? ' ta-busy' : ''}`, disabled: stopping, onClick: () => void end() },
|
|
@@ -78,4 +78,27 @@ export interface WebChatIconSource {
|
|
|
78
78
|
/** What `icon` answers changed: the lists draw their rows again. */
|
|
79
79
|
subscribe?(listener: () => void): () => void;
|
|
80
80
|
}
|
|
81
|
+
/** What a session still opening is shown as (`switchSession`): the head of its conversation, till it comes. */
|
|
82
|
+
export interface WebSessionOpening {
|
|
83
|
+
title?: string;
|
|
84
|
+
cwd?: string;
|
|
85
|
+
/** Its session file, when known: what the device kept of the conversation shows while it opens, and while the computer cannot be reached. */
|
|
86
|
+
sessionFile?: string;
|
|
87
|
+
}
|
|
88
|
+
/** What a notice of an extension has besides its message (WebExtensionUI.notify). */
|
|
89
|
+
export interface WebNotifyOptions {
|
|
90
|
+
action?: {
|
|
91
|
+
label: string;
|
|
92
|
+
run(): void;
|
|
93
|
+
};
|
|
94
|
+
key?: string;
|
|
95
|
+
/** Ta did it for the user: drawn with the double's face, the message as its head (`修改了设置`). */
|
|
96
|
+
ta?: boolean;
|
|
97
|
+
/** What it changed, a row each under the message: `{ label: '通话字幕', before: '关', after: '开' }`, or a name alone. */
|
|
98
|
+
changes?: {
|
|
99
|
+
label?: string;
|
|
100
|
+
before?: string;
|
|
101
|
+
after: string;
|
|
102
|
+
}[];
|
|
103
|
+
}
|
|
81
104
|
//# sourceMappingURL=web-api-chats.d.ts.map
|
|
@@ -20,6 +20,20 @@ export interface WebDeviceUI {
|
|
|
20
20
|
*/
|
|
21
21
|
readonly apps?: WebApps;
|
|
22
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* A tab the browser view should open or close, as Ta Desktop tells it (`ui.onWebviewTab`): a page of a webview opened a
|
|
25
|
+
* link as a new tab (`target="_blank"`, Cmd+click, the middle button, Open Link in New Tab), behind when `background`;
|
|
26
|
+
* or the user pressed Cmd+T or Cmd+W in it. `from` is that webview's `getWebContentsId()`.
|
|
27
|
+
*/
|
|
28
|
+
export type WebviewTabEvent = {
|
|
29
|
+
type: 'open';
|
|
30
|
+
url: string;
|
|
31
|
+
background: boolean;
|
|
32
|
+
from: number;
|
|
33
|
+
} | {
|
|
34
|
+
type: 'new' | 'close';
|
|
35
|
+
from: number;
|
|
36
|
+
};
|
|
23
37
|
export interface WebDesktop {
|
|
24
38
|
/** Node's `process.platform` of the machine (`darwin`, `win32`, `linux`): what its file manager is called. */
|
|
25
39
|
readonly platform: string;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { SkinGlass } from '../settings/settings-protocol';
|
|
3
|
+
import type { WebLabel } from './web-api-contributions';
|
|
4
|
+
/** Light glass with dark words, or dark glass with light words. */
|
|
5
|
+
export type WebSkinTone = 'light' | 'dark';
|
|
6
|
+
/** How much of the picture the columns of Ta let through: clear, soft (the default), or focus, nearly solid (Settings → Appearance). */
|
|
7
|
+
export type WebSkinGlass = SkinGlass;
|
|
8
|
+
/**
|
|
9
|
+
* The colours of a tone of a skin, each a CSS colour without alpha; Ta makes every surface, word and line of its
|
|
10
|
+
* columns from them (docs/design/ta-skins.md 3). Any it leaves out is Ta's own.
|
|
11
|
+
*/
|
|
12
|
+
export interface WebSkinColors {
|
|
13
|
+
/** What the picture shows before it draws (it loads, it starts again), under it, and the window's own colour. */
|
|
14
|
+
base: string;
|
|
15
|
+
/** The glass of the columns, made more or less clear by the user's choice (WebSkinGlass). */
|
|
16
|
+
glass?: string;
|
|
17
|
+
/** Words: titles in it, the body and the quieter lines mixed toward the glass. */
|
|
18
|
+
ink?: string;
|
|
19
|
+
/** What stands out: the brand buttons, links, what is chosen. */
|
|
20
|
+
accent?: string;
|
|
21
|
+
}
|
|
22
|
+
/** A rectangle of the window, in CSS pixels. */
|
|
23
|
+
export interface WebSkinRect {
|
|
24
|
+
left: number;
|
|
25
|
+
top: number;
|
|
26
|
+
right: number;
|
|
27
|
+
bottom: number;
|
|
28
|
+
}
|
|
29
|
+
/** Where the picture is under Ta now (WebSkinBackdropProps.areas). */
|
|
30
|
+
export interface WebSkinAreas {
|
|
31
|
+
/** Where words are read (the conversation, the message box, the settings): the picture is calmest behind them. */
|
|
32
|
+
read: WebSkinRect[];
|
|
33
|
+
/** Where columns cover it (the list of chats, the workbench, the navigation): what matters is not put there. */
|
|
34
|
+
cover: WebSkinRect[];
|
|
35
|
+
}
|
|
36
|
+
/** What a backdrop is given: it draws the whole window, behind every column of Ta, and never takes the pointer. */
|
|
37
|
+
export interface WebSkinBackdropProps {
|
|
38
|
+
/** The tone Ta shows in now. */
|
|
39
|
+
tone: WebSkinTone;
|
|
40
|
+
/** How clear the user wants the glass. */
|
|
41
|
+
glass: WebSkinGlass;
|
|
42
|
+
/**
|
|
43
|
+
* Sets the tone of Ta while the skin shows (its night, its day), as a theme of the settings would; undefined gives
|
|
44
|
+
* it back to `WebSkin.tone`, else the user's theme. Ta switches once, not to and fro: tell it a new tone only past a margin.
|
|
45
|
+
*/
|
|
46
|
+
setTone(tone: WebSkinTone | undefined): void;
|
|
47
|
+
/** Where words are read and where columns cover the picture, now: read it each frame, it costs little. */
|
|
48
|
+
areas(): WebSkinAreas;
|
|
49
|
+
/** It has drawn its first frame: Ta fades it in over its picture (`keep`) and lets the one before go. */
|
|
50
|
+
ready(): void;
|
|
51
|
+
/**
|
|
52
|
+
* A small picture of how it looks now (a `data:` URL of a JPEG some 480 pixels wide): kept on this device, shown
|
|
53
|
+
* under it the next time while it loads, or while it starts again, so that the window never shows blank.
|
|
54
|
+
*/
|
|
55
|
+
keep(picture: string): void;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* A look of Ta: a picture behind it, which its columns show through as glass (`registerSkin`). The user picks it
|
|
59
|
+
* in Settings → Appearance, as the theme; Ta draws the glass, the words, the title bar and the window in its colours,
|
|
60
|
+
* so a skin is its picture and a few colours, never styles of Ta's own classes.
|
|
61
|
+
*/
|
|
62
|
+
export interface WebSkin {
|
|
63
|
+
/** Unique among the skins of the extension. */
|
|
64
|
+
id: string;
|
|
65
|
+
title: WebLabel;
|
|
66
|
+
/** Drawn behind Ta, the size of the window: a picture, a 3D world (`ui.Game3D`), anything. */
|
|
67
|
+
backdrop: React.ComponentType<WebSkinBackdropProps>;
|
|
68
|
+
/** Its colours in each tone. */
|
|
69
|
+
colors: {
|
|
70
|
+
light: WebSkinColors;
|
|
71
|
+
dark: WebSkinColors;
|
|
72
|
+
};
|
|
73
|
+
/** Its tone while its backdrop sets none; default the user's theme. */
|
|
74
|
+
tone?: WebSkinTone;
|
|
75
|
+
/**
|
|
76
|
+
* Its backdrop softens itself behind the columns and the words (`areas`), as a 3D world does in its last pass: the
|
|
77
|
+
* page does not blur it again, which would cost a blur of the window at each of its frames. Without, the page blurs
|
|
78
|
+
* what is behind its columns, which a still picture costs nothing.
|
|
79
|
+
*/
|
|
80
|
+
softens?: boolean;
|
|
81
|
+
}
|
|
82
|
+
export interface WebSkinsAPI {
|
|
83
|
+
/**
|
|
84
|
+
* A look of Ta: a picture behind it and the colours of its glass (docs/design/ta-skins.md), which the user picks in
|
|
85
|
+
* Settings → Appearance. Newer than some Ta apps: `pi.registerSkin?.(…)`.
|
|
86
|
+
*/
|
|
87
|
+
registerSkin(skin: WebSkin): void;
|
|
88
|
+
}
|
|
89
|
+
/** A skin of an extension, as Ta lists them. */
|
|
90
|
+
export interface WebSkinEntry {
|
|
91
|
+
/** `<package name>/<skin id>`: what the settings keep, the same on every device. */
|
|
92
|
+
id: string;
|
|
93
|
+
extension: string;
|
|
94
|
+
skin: WebSkin;
|
|
95
|
+
}
|
|
96
|
+
//# sourceMappingURL=web-api-skins.d.ts.map
|
|
@@ -133,6 +133,7 @@ exports.WEB_UI_SPEC = {
|
|
|
133
133
|
pinChat: page,
|
|
134
134
|
desktop: page,
|
|
135
135
|
debugWebview: page,
|
|
136
|
+
onWebviewTab: page,
|
|
136
137
|
useCwd: page,
|
|
137
138
|
useSessionId: page,
|
|
138
139
|
useSessions: page,
|
|
@@ -184,6 +185,8 @@ exports.WEB_API_SPEC = {
|
|
|
184
185
|
registerToolRenderer: page,
|
|
185
186
|
registerComposerAddon: page,
|
|
186
187
|
registerRoomAddon: page,
|
|
188
|
+
// Its backdrop is drawn behind the page, given functions: only in the page.
|
|
189
|
+
registerSkin: page,
|
|
187
190
|
registerOpener: page,
|
|
188
191
|
registerSearch: page,
|
|
189
192
|
registerPartners: page,
|
|
@@ -6,8 +6,8 @@ import type { ScreenPartSpec, TaScreen } from '../screen/screen-protocol';
|
|
|
6
6
|
import type { Language, Theme } from '../settings/settings-protocol';
|
|
7
7
|
import type { WebCodeRendererOptions, WebCodeRendererProps } from './web-api-code';
|
|
8
8
|
import type { CodeEditorProps, DiffEditorProps, WebAvatarProps, WebChatImagesProps, WebComposerProps, WebConversationViewProps, WebDialogProps, WebEmptyProps, WebFaceProps, WebFolderPickerProps, WebFullScreenProps, WebGroupFaceProps, WebHoldToTalkProps, WebImageViewerProps, WebLoadingProps, WebModelPickerProps, WebPictureCardsProps, WebPictureProps, WebSelectBarProps, WebSelectCheckProps, WebShareSheetProps, WebStackProps, WebSwipeRowProps, WebSwitchProps, WebTaskIconProps, WebVoice } from './web-api-components';
|
|
9
|
-
import type { WebAsk, WebCallsAPI, WebChatIconSource, WebChatTagsAPI, WebComposerAddon, WebCustomMessage, WebHomeSource, WebInitiative, WebMenuItem, WebOpener, WebOpenerOptions, WebRoomAddon, WebRoomAddonEntry, WebSearchSource, WebSessionNotice, WebSettingsSection, WebShareTarget, WebTaskEntry, WebTaskRemoval, WebTaskSource, WebTool, WebToolRendererResolver, WebView, WebViewInfo, WidgetOptions } from './web-api-contributions';
|
|
10
|
-
import type { WebDesktop, WebDeviceUI, WebFileDrag } from './web-api-desktop';
|
|
9
|
+
import type { WebAsk, WebCallsAPI, WebChatIconSource, WebChatTagsAPI, WebComposerAddon, WebCustomMessage, WebHomeSource, WebInitiative, WebMenuItem, WebNotifyOptions, WebOpener, WebOpenerOptions, WebRoomAddon, WebRoomAddonEntry, WebSearchSource, WebSessionNotice, WebSessionOpening, WebSettingsSection, WebShareTarget, WebTaskEntry, WebTaskRemoval, WebTaskSource, WebTool, WebToolRendererResolver, WebView, WebViewInfo, WidgetOptions } from './web-api-contributions';
|
|
10
|
+
import type { WebDesktop, WebDeviceUI, WebFileDrag, WebviewTabEvent } from './web-api-desktop';
|
|
11
11
|
import type { WebEditorsUI } from './web-api-editors';
|
|
12
12
|
import type { WebFileViews, WebFileViewsUI } from './web-api-file-views';
|
|
13
13
|
import type { WebHomeUI, WebPartnersAPI, WebPartnersUI } from './web-api-home';
|
|
@@ -16,6 +16,7 @@ import type { WebHosts } from './web-api-hosts';
|
|
|
16
16
|
import type { WebFileRef, WebMenus, WebShareUI } from './web-api-menus';
|
|
17
17
|
import type { WebPlayUI } from './web-api-play';
|
|
18
18
|
import type { WebServices } from './web-api-services';
|
|
19
|
+
import type { WebSkinsAPI } from './web-api-skins';
|
|
19
20
|
import type { WebPackageStorage } from './web-api-storage';
|
|
20
21
|
import type { WebTargetsAPI } from './web-api-targets';
|
|
21
22
|
import type { WebTerminal, WebTerminalOptions } from './web-api-terminal';
|
|
@@ -39,6 +40,7 @@ export type * from './web-api-hosts';
|
|
|
39
40
|
export type * from './web-api-menus';
|
|
40
41
|
export type * from './web-api-play';
|
|
41
42
|
export type * from './web-api-services';
|
|
43
|
+
export type * from './web-api-skins';
|
|
42
44
|
export type * from './web-api-storage';
|
|
43
45
|
export type * from './web-api-targets';
|
|
44
46
|
export type * from './web-api-terminal';
|
|
@@ -47,7 +49,7 @@ export type { WebPageInfo, WebPageState } from './web-pages';
|
|
|
47
49
|
* What a web extension gets: the web client's side of pi's extension API, its names where they mean the same. A web
|
|
48
50
|
* extension is one ES module without imports, the `web` part of a pi package (TaWebExtensionInfo): a {@link WebExtensionFactory}.
|
|
49
51
|
*/
|
|
50
|
-
export interface WebExtensionAPI extends WebServices, WebPartnersAPI, WebMenus, WebFileViews, WebCallsAPI, WebChatTagsAPI, WebTargetsAPI, WebHostAPI {
|
|
52
|
+
export interface WebExtensionAPI extends WebServices, WebPartnersAPI, WebMenus, WebFileViews, WebCallsAPI, WebChatTagsAPI, WebTargetsAPI, WebHostAPI, WebSkinsAPI {
|
|
51
53
|
/** The React of the page: an extension brings no React of its own. */
|
|
52
54
|
readonly React: typeof React;
|
|
53
55
|
readonly ui: WebExtensionUI;
|
|
@@ -179,34 +181,11 @@ export interface WebExtensionAPI extends WebServices, WebPartnersAPI, WebMenus,
|
|
|
179
181
|
/** Output of the terminals this page opened (terminals.openTerminal); with `exitCode`, the terminal ended. Stops when the extension unloads. */
|
|
180
182
|
onTerminalData(listener: (terminalId: string, data: string, exitCode?: number) => void): () => void;
|
|
181
183
|
}
|
|
182
|
-
/** What a session still opening is shown as (`switchSession`): the head of its conversation, till it comes. */
|
|
183
|
-
export interface WebSessionOpening {
|
|
184
|
-
title?: string;
|
|
185
|
-
cwd?: string;
|
|
186
|
-
/** Its session file, when known: what the device kept of the conversation shows while it opens, and while the computer cannot be reached. */
|
|
187
|
-
sessionFile?: string;
|
|
188
|
-
}
|
|
189
184
|
/** An icon, drawn at `size` pixels in `currentColor`. */
|
|
190
185
|
export type WebIcon = React.ComponentType<{
|
|
191
186
|
size?: number | string;
|
|
192
187
|
strokeWidth?: number | string;
|
|
193
188
|
}>;
|
|
194
|
-
/** What a notice of an extension has besides its message (WebExtensionUI.notify). */
|
|
195
|
-
export interface WebNotifyOptions {
|
|
196
|
-
action?: {
|
|
197
|
-
label: string;
|
|
198
|
-
run(): void;
|
|
199
|
-
};
|
|
200
|
-
key?: string;
|
|
201
|
-
/** Ta did it for the user: drawn with the double's face, the message as its head (`修改了设置`). */
|
|
202
|
-
ta?: boolean;
|
|
203
|
-
/** What it changed, a row each under the message: `{ label: '通话字幕', before: '关', after: '开' }`, or a name alone. */
|
|
204
|
-
changes?: {
|
|
205
|
-
label?: string;
|
|
206
|
-
before?: string;
|
|
207
|
-
after: string;
|
|
208
|
-
}[];
|
|
209
|
-
}
|
|
210
189
|
/** What web extensions see of TaScreen. */
|
|
211
190
|
export type WebScreen = Pick<TaScreen, 'agent' | 'parts' | 'act' | 'element' | 'where' | 'places' | 'go' | 'pageScroll' | 'scroll'>;
|
|
212
191
|
export interface WebExtensionUI extends WebHomeUI, WebPartnersUI, WebEditorsUI, WebDeviceUI, WebPlayUI, WebShareUI, WebFileViewsUI, WebHostUI {
|
|
@@ -283,6 +262,12 @@ export interface WebExtensionUI extends WebHomeUI, WebPartnersUI, WebEditorsUI,
|
|
|
283
262
|
* element's `loadURL`); the app refuses the rest.
|
|
284
263
|
*/
|
|
285
264
|
readonly debugWebview?: (webContentsId: number, method: string, params?: Record<string, unknown>) => Promise<unknown>;
|
|
265
|
+
/**
|
|
266
|
+
* Ta Desktop: hears the tabs the pages of this page's `<webview>`s open or close (WebviewTabEvent); returns how to
|
|
267
|
+
* stop. Hearing tells the app the view has tabs: until then, and in an older app, a page opens its new tabs in place
|
|
268
|
+
* and Cmd+W goes to the app. `undefined` elsewhere.
|
|
269
|
+
*/
|
|
270
|
+
readonly onWebviewTab?: (listener: (event: WebviewTabEvent) => void) => () => void;
|
|
286
271
|
/**
|
|
287
272
|
* Into the message box in front (a conversation's, or `ui.Composer` of a page): `quote` before what it holds, `images`
|
|
288
273
|
* (base64) as if pasted; false when none shows.
|
|
@@ -232,6 +232,7 @@ class WebExtensionContext {
|
|
|
232
232
|
registerSearch: source => register(() => run.searches.push(source)),
|
|
233
233
|
registerComposerAddon: addon => register(() => run.composerAddons.push(addon)),
|
|
234
234
|
registerRoomAddon: addon => register(() => run.roomAddons.push(addon)),
|
|
235
|
+
registerSkin: skin => register(() => run.skins.push(skin)),
|
|
235
236
|
registerSettings: section => register(() => run.settingsSections.push(section)),
|
|
236
237
|
registerSessionMenu: menu => register(() => run.sessionMenus.push(web_extension_run_1.WebExtensionRunUtil.menu(run, menu))),
|
|
237
238
|
registerFileMenu: menu => register(() => run.fileMenus.push(web_extension_run_1.WebExtensionRunUtil.menu(run, menu))),
|
|
@@ -271,6 +272,7 @@ class WebExtensionContext {
|
|
|
271
272
|
const { host } = this;
|
|
272
273
|
const { workbench, settings, notices } = host;
|
|
273
274
|
const subscribe = (listener) => host.extensions.subscribe(listener);
|
|
275
|
+
const webviewTabs = desktop_1.DesktopUtil.webviewTabs();
|
|
274
276
|
return {
|
|
275
277
|
setWidget: (key, component, options = {}) => register(() => (component ? run.widgets.set(key, { component, options }) : run.widgets.delete(key))),
|
|
276
278
|
notify: (message, type = 'info', options = {}) => {
|
|
@@ -311,6 +313,8 @@ class WebExtensionContext {
|
|
|
311
313
|
desktop: desktop_1.DesktopUtil.fileManager(),
|
|
312
314
|
fileDrag: web_file_drag_1.WEB_FILE_DRAG,
|
|
313
315
|
debugWebview: desktop_1.DesktopUtil.debugWebview(),
|
|
316
|
+
// Heard while the extension runs, as `hear` of the API.
|
|
317
|
+
onWebviewTab: webviewTabs && (listener => web_extension_run_1.WebExtensionRunUtil.track(run, () => webviewTabs(event => host.guard(run, () => listener(event))))),
|
|
314
318
|
addToComposer: draft => !run.stopped && composer_target_1.ComposerTarget.add(draft),
|
|
315
319
|
// An extension opens, closes and marks only tabs of its own.
|
|
316
320
|
openEditor: (editor, options) => !run.stopped && host.tabs.open({ ...editor, extension: run.loaded.id, preview: (options === null || options === void 0 ? void 0 : options.preview) === true }, (options === null || options === void 0 ? void 0 : options.preserveFocus) === true),
|
|
@@ -2,7 +2,7 @@ import type { TaEvent, TaTemporaryFrom, TaWebExtensionInfo } from '@celljs/ta-pr
|
|
|
2
2
|
import type * as React from 'react';
|
|
3
3
|
import type { MessageId } from '../i18n/messages';
|
|
4
4
|
import type { BlockSpeech } from '../util/spoken';
|
|
5
|
-
import type { WebAvatarProps, WebCallMouth, WebCallMoves, WebCallPartner, WebChatIconSource, WebChatTagSource, WebCodeMenu, WebCodeRendererProps, WebComposerAddon, WebCustomMessage, WebEditor, WebExtensionFactory, WebFileMenu, WebFileView, WebHomeEntry, WebIcon, WebImage, WebInitiative, WebLabel, WebLinkDescriber, WebMenuItem, WebOpener, WebPageGroup, WebRoomAddonEntry, WebSearchSource, WebSessionMenu, WebSessionOpening, WebSettingsSection, WebShareItem, WebShareTarget, WebShareWay, WebTool, WebToolRendererResolver, WebViewLocation, WebViewPreview, WidgetOptions } from './web-extension-api';
|
|
5
|
+
import type { WebAvatarProps, WebCallMouth, WebCallMoves, WebCallPartner, WebChatIconSource, WebChatTagSource, WebCodeMenu, WebCodeRendererProps, WebComposerAddon, WebCustomMessage, WebEditor, WebExtensionFactory, WebFileMenu, WebFileView, WebHomeEntry, WebIcon, WebImage, WebInitiative, WebLabel, WebLinkDescriber, WebMenuItem, WebOpener, WebPageGroup, WebRoomAddonEntry, WebSearchSource, WebSessionMenu, WebSessionOpening, WebSettingsSection, WebShareItem, WebShareTarget, WebShareWay, WebSkinEntry, WebTool, WebToolRendererResolver, WebViewLocation, WebViewPreview, WidgetOptions } from './web-extension-api';
|
|
6
6
|
import type { WebHomeBoard } from './web-home';
|
|
7
7
|
import type { PageUsage, WebPageInfo } from './web-pages';
|
|
8
8
|
import type { WebPartnerBoard } from './web-partners';
|
|
@@ -117,6 +117,8 @@ export interface WebExtensionsState {
|
|
|
117
117
|
composerAddons: WebComposerAddonEntry[];
|
|
118
118
|
/** What extensions add to the rooms (WebExtensionAPI.registerRoomAddon). */
|
|
119
119
|
roomAddons: WebRoomAddonEntry[];
|
|
120
|
+
/** The looks extensions give Ta (WebExtensionAPI.registerSkin), in the order they loaded. */
|
|
121
|
+
skins: WebSkinEntry[];
|
|
120
122
|
/** The sections extensions add to the settings (WebExtensionAPI.registerSettings). */
|
|
121
123
|
settingsSections: WebSettingsEntry[];
|
|
122
124
|
renderers: Record<string, React.ComponentType<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TaEvent } from '@celljs/ta-protocol';
|
|
2
2
|
import type * as React from 'react';
|
|
3
|
-
import type { WebCallMouth, WebCallMoves, WebCallPartner, WebChatIconSource, WebChatTagSource, WebCodeMenu, WebCodeRendererOptions, WebComposerAddon, WebFileMenu, WebFileView, WebHomeSource, WebInitiative, WebLinkDescriber, WebMenuItem, WebOpener, WebOpenerOptions, WebPartnerSource, WebRoomAddon, WebSearchSource, WebSessionMenu, WebSettingsSection, WebShareWay, WebTaskSource, WebTool, WebToolRendererResolver, WebView, WebVoice, WidgetOptions } from './web-extension-api';
|
|
3
|
+
import type { WebCallMouth, WebCallMoves, WebCallPartner, WebChatIconSource, WebChatTagSource, WebCodeMenu, WebCodeRendererOptions, WebComposerAddon, WebFileMenu, WebFileView, WebHomeSource, WebInitiative, WebLinkDescriber, WebMenuItem, WebOpener, WebOpenerOptions, WebPartnerSource, WebRoomAddon, WebSearchSource, WebSessionMenu, WebSettingsSection, WebShareWay, WebSkin, WebTaskSource, WebTool, WebToolRendererResolver, WebView, WebVoice, WidgetOptions } from './web-extension-api';
|
|
4
4
|
import type { LoadedWebExtension, WebExtensionsState } from './web-extension-protocol';
|
|
5
5
|
/** What an extension registered through its API: all of it goes when it stops. */
|
|
6
6
|
export interface WebRegistrations {
|
|
@@ -37,6 +37,7 @@ export interface WebRegistrations {
|
|
|
37
37
|
searches: WebSearchSource[];
|
|
38
38
|
composerAddons: WebComposerAddon[];
|
|
39
39
|
roomAddons: WebRoomAddon[];
|
|
40
|
+
skins: WebSkin[];
|
|
40
41
|
fileViews: WebFileView[];
|
|
41
42
|
settingsSections: WebSettingsSection[];
|
|
42
43
|
handlers: {
|
|
@@ -83,6 +84,6 @@ export declare namespace WebExtensionRunUtil {
|
|
|
83
84
|
*/
|
|
84
85
|
function voice(run: WebExtensionRun, voice: WebVoice): WebVoice;
|
|
85
86
|
/** What the extensions that run registered, as the page shows it: the first of a message type or a tool name wins. */
|
|
86
|
-
function collect(runs: readonly WebExtensionRun[], onOpen: (id: string) => boolean): Pick<WebExtensionsState, 'openers' | 'specificOpeners' | 'linkDescribers' | 'sessionMenus' | 'fileMenus' | 'fileViews' | 'codeMenus' | 'shareWays' | 'extensions' | 'views' | 'widgets' | 'composerAddons' | 'roomAddons' | 'settingsSections' | 'renderers' | 'codeRenderers' | 'codeSpeech' | 'codePointable' | 'callPartner' | 'callGroup' | 'callMouth' | 'callMoves' | 'avatars' | 'chatIcons' | 'chatTags' | 'initiatives' | 'tools' | 'toolRenderers' | 'searches'>;
|
|
87
|
+
function collect(runs: readonly WebExtensionRun[], onOpen: (id: string) => boolean): Pick<WebExtensionsState, 'openers' | 'specificOpeners' | 'linkDescribers' | 'sessionMenus' | 'fileMenus' | 'fileViews' | 'codeMenus' | 'shareWays' | 'extensions' | 'views' | 'widgets' | 'composerAddons' | 'roomAddons' | 'skins' | 'settingsSections' | 'renderers' | 'codeRenderers' | 'codeSpeech' | 'codePointable' | 'callPartner' | 'callGroup' | 'callMouth' | 'callMoves' | 'avatars' | 'chatIcons' | 'chatTags' | 'initiatives' | 'tools' | 'toolRenderers' | 'searches'>;
|
|
87
88
|
}
|
|
88
89
|
//# sourceMappingURL=web-extension-run.d.ts.map
|
|
@@ -118,6 +118,7 @@ var WebExtensionRunUtil;
|
|
|
118
118
|
searches: [],
|
|
119
119
|
composerAddons: [],
|
|
120
120
|
roomAddons: [],
|
|
121
|
+
skins: [],
|
|
121
122
|
fileViews: [],
|
|
122
123
|
settingsSections: [],
|
|
123
124
|
handlers: [],
|
|
@@ -261,6 +262,8 @@ var WebExtensionRunUtil;
|
|
|
261
262
|
}); })),
|
|
262
263
|
composerAddons: runs.flatMap(run => run.composerAddons.map((addon, index) => ({ id: `${run.loaded.id}/${index}`, extension: run.loaded.id, addon }))),
|
|
263
264
|
roomAddons: runs.flatMap(run => run.roomAddons.map((addon, index) => ({ id: `${run.loaded.id}/${index}`, extension: run.loaded.id, addon }))),
|
|
265
|
+
// By the name of the package, which the settings keep: the same on every device.
|
|
266
|
+
skins: runs.flatMap(run => run.skins.map(skin => ({ id: `${run.loaded.name}/${skin.id}`, extension: run.loaded.name, skin }))),
|
|
264
267
|
settingsSections: runs.flatMap(run => run.settingsSections.map((section, index) => ({ id: `${run.loaded.id}/${index}`, extension: run.loaded.id, section }))),
|
|
265
268
|
renderers,
|
|
266
269
|
codeRenderers,
|
|
@@ -41,7 +41,12 @@ const share_sheet_1 = require("../components/share-sheet");
|
|
|
41
41
|
* (`share`, its tiles the ways to share), and handing an extension on. None of it does anything once it stopped.
|
|
42
42
|
*/
|
|
43
43
|
function shareUI(host, stopped) {
|
|
44
|
-
const sheet = (props) => React.createElement(share_sheet_1.ShareSheet, {
|
|
44
|
+
const sheet = (props) => React.createElement(share_sheet_1.ShareSheet, {
|
|
45
|
+
...props,
|
|
46
|
+
notices: host.notices,
|
|
47
|
+
rooms: host.workbench.rooms,
|
|
48
|
+
onRoomEvent: listener => host.workbench.onRoomEvent(listener, { messages: false }),
|
|
49
|
+
});
|
|
45
50
|
return {
|
|
46
51
|
shareExtension: target => !stopped() && host.extensions.share(target),
|
|
47
52
|
share: item => !stopped() && host.extensions.shareItem(item),
|
|
@@ -24,6 +24,9 @@ export declare const ASSISTANT_EN: {
|
|
|
24
24
|
'ta.assistant.speakStopShort': string;
|
|
25
25
|
'ta.assistant.poke': string;
|
|
26
26
|
'ta.assistant.stop': string;
|
|
27
|
+
'ta.assistant.pauseTasks': string;
|
|
28
|
+
'ta.assistant.resumeTasks': string;
|
|
29
|
+
'ta.assistant.pausedTasks': string;
|
|
27
30
|
'ta.assistant.restart': string;
|
|
28
31
|
'ta.assistant.restartTitle': string;
|
|
29
32
|
'ta.assistant.restartHint': string;
|
|
@@ -78,6 +81,7 @@ export declare const ASSISTANT_EN: {
|
|
|
78
81
|
'ta.task.verdictFail': string;
|
|
79
82
|
'ta.task.branch': string;
|
|
80
83
|
'ta.task.stopped': string;
|
|
84
|
+
'ta.task.paused': string;
|
|
81
85
|
'ta.task.waiting': string;
|
|
82
86
|
'ta.task.waitingPermission': string;
|
|
83
87
|
'ta.task.waitingQuestion': string;
|
|
@@ -27,6 +27,9 @@ exports.ASSISTANT_EN = {
|
|
|
27
27
|
'ta.assistant.speakStopShort': 'Stop',
|
|
28
28
|
'ta.assistant.poke': 'Poke Ta',
|
|
29
29
|
'ta.assistant.stop': 'Stop',
|
|
30
|
+
'ta.assistant.pauseTasks': 'Pause all tasks',
|
|
31
|
+
'ta.assistant.resumeTasks': 'Resume paused tasks ({count})',
|
|
32
|
+
'ta.assistant.pausedTasks': 'Paused {count} tasks',
|
|
30
33
|
'ta.assistant.restart': 'Start over',
|
|
31
34
|
'ta.assistant.restartTitle': 'Start a new conversation with the double?',
|
|
32
35
|
'ta.assistant.restartHint': 'The current one stays in its session file; the tasks go on.',
|
|
@@ -81,6 +84,7 @@ exports.ASSISTANT_EN = {
|
|
|
81
84
|
'ta.task.verdictFail': 'Check failed',
|
|
82
85
|
'ta.task.branch': 'Branch {branch}',
|
|
83
86
|
'ta.task.stopped': 'Stopped',
|
|
87
|
+
'ta.task.paused': 'Paused',
|
|
84
88
|
'ta.task.waiting': 'Waiting for you',
|
|
85
89
|
'ta.task.waitingPermission': 'Waiting for you to allow',
|
|
86
90
|
'ta.task.waitingQuestion': 'Waiting for your answer',
|
|
@@ -172,6 +172,7 @@ export declare const CHAT_EN: {
|
|
|
172
172
|
'ta.hear.getting': string;
|
|
173
173
|
'ta.hear.failed': string;
|
|
174
174
|
'ta.hear.retry': string;
|
|
175
|
+
'ta.hear.service': string;
|
|
175
176
|
'ta.hear.unsupported': string;
|
|
176
177
|
'ta.hear.unavailable': string;
|
|
177
178
|
'ta.hear.unavailableHint': string;
|
|
@@ -175,6 +175,7 @@ exports.CHAT_EN = {
|
|
|
175
175
|
'ta.hear.getting': 'Your computer is downloading the speech model ({percent}%); speak again once it is ready',
|
|
176
176
|
'ta.hear.failed': 'The speech recognition of your computer is not ready',
|
|
177
177
|
'ta.hear.retry': 'Try again',
|
|
178
|
+
'ta.hear.service': 'Use a voice service',
|
|
178
179
|
'ta.hear.unsupported': "This device cannot recognize speech, nor can your computer run Ta's",
|
|
179
180
|
'ta.hear.unavailable': "This device cannot recognize speech, and Ta's speech recognition is off",
|
|
180
181
|
'ta.hear.unavailableHint': 'Turn on Real-time voice and Local models in Settings → Extensions.',
|
|
@@ -57,9 +57,6 @@ export declare const COMMON_EN: {
|
|
|
57
57
|
'ta.clip.pasteMany': string;
|
|
58
58
|
'ta.clip.pick': string;
|
|
59
59
|
'ta.clip.open': string;
|
|
60
|
-
'ta.clip.maybe': string;
|
|
61
|
-
'ta.clip.maybeDetail': string;
|
|
62
|
-
'ta.clip.none': string;
|
|
63
60
|
'ta.link.notFound': string;
|
|
64
61
|
'ta.terminal.openLink': string;
|
|
65
62
|
'ta.terminal.openLinkMac': string;
|
|
@@ -61,9 +61,6 @@ exports.COMMON_EN = {
|
|
|
61
61
|
'ta.clip.pasteMany': '{count} links of Ta in what you pasted',
|
|
62
62
|
'ta.clip.pick': 'Tap one to open it',
|
|
63
63
|
'ta.clip.open': 'Open',
|
|
64
|
-
'ta.clip.maybe': 'There is a link in the clipboard',
|
|
65
|
-
'ta.clip.maybeDetail': 'An invite or a share of Ta opens with Open',
|
|
66
|
-
'ta.clip.none': 'No link of Ta in the clipboard',
|
|
67
64
|
'ta.link.notFound': '{path} is not there.',
|
|
68
65
|
'ta.terminal.openLink': 'Ctrl + click to open',
|
|
69
66
|
'ta.terminal.openLinkMac': 'Cmd + click to open',
|
|
@@ -46,7 +46,10 @@ export declare const DISCOVER_EN: {
|
|
|
46
46
|
'ta.share.friends': string;
|
|
47
47
|
'ta.share.pickFriends': string;
|
|
48
48
|
'ta.share.sendN': string;
|
|
49
|
-
'ta.share.
|
|
49
|
+
'ta.share.sentTitle': string;
|
|
50
|
+
'ta.share.sent': string;
|
|
51
|
+
'ta.share.got': string;
|
|
52
|
+
'ta.share.opened': string;
|
|
50
53
|
'ta.share.renew': string;
|
|
51
54
|
'ta.share.passwordApart': string;
|
|
52
55
|
'ta.share.copyPassword': string;
|
|
@@ -50,7 +50,10 @@ exports.DISCOVER_EN = {
|
|
|
50
50
|
'ta.share.friends': 'Ta friends',
|
|
51
51
|
'ta.share.pickFriends': 'Pick friends',
|
|
52
52
|
'ta.share.sendN': 'Send to {n}',
|
|
53
|
-
'ta.share.
|
|
53
|
+
'ta.share.sentTitle': 'Sent to these friends',
|
|
54
|
+
'ta.share.sent': 'Sent',
|
|
55
|
+
'ta.share.got': 'Received',
|
|
56
|
+
'ta.share.opened': 'Opened',
|
|
54
57
|
'ta.share.renew': 'New link',
|
|
55
58
|
'ta.share.passwordApart': 'Tell them the password apart:',
|
|
56
59
|
'ta.share.copyPassword': 'Copy password',
|
|
@@ -267,6 +267,6 @@ exports.SERVICE_EN = {
|
|
|
267
267
|
'ta.relay.unpair': 'Unpair',
|
|
268
268
|
'ta.relay.unpairConfirm': 'Unpair {name}? It can no longer reach this Ta.',
|
|
269
269
|
'ta.relay.keepAwake': 'Keep this computer awake',
|
|
270
|
-
'ta.relay.keepAwakeHint': '
|
|
270
|
+
'ta.relay.keepAwakeHint': 'Plugged in, the computer does not sleep, so your phone reaches it even overnight; on battery, only while a task runs or for 30 minutes after a device was connected. The display still turns off and locks; closing the lid still puts it to sleep.',
|
|
271
271
|
};
|
|
272
272
|
//# sourceMappingURL=service.js.map
|
|
@@ -60,6 +60,14 @@ export declare const SETTINGS_EN: {
|
|
|
60
60
|
'ta.settings.diagramStyle.sketch': string;
|
|
61
61
|
'ta.settings.diagramStyle.colour': string;
|
|
62
62
|
'ta.settings.diagramStyle.motion': string;
|
|
63
|
+
'ta.settings.skin': string;
|
|
64
|
+
'ta.settings.skinHint': string;
|
|
65
|
+
'ta.settings.skin.none': string;
|
|
66
|
+
'ta.settings.glass': string;
|
|
67
|
+
'ta.settings.glassHint': string;
|
|
68
|
+
'ta.settings.glass.clear': string;
|
|
69
|
+
'ta.settings.glass.soft': string;
|
|
70
|
+
'ta.settings.glass.focus': string;
|
|
63
71
|
'ta.settings.fontSize': string;
|
|
64
72
|
'ta.settings.fontSizeHint': string;
|
|
65
73
|
'ta.settings.chatFontSize': string;
|
|
@@ -63,6 +63,14 @@ exports.SETTINGS_EN = {
|
|
|
63
63
|
'ta.settings.diagramStyle.sketch': 'Sketch',
|
|
64
64
|
'ta.settings.diagramStyle.colour': 'Colour',
|
|
65
65
|
'ta.settings.diagramStyle.motion': 'Motion',
|
|
66
|
+
'ta.settings.skin': 'Skin',
|
|
67
|
+
'ta.settings.skinHint': 'A picture behind Ta, its columns glass over it.',
|
|
68
|
+
'ta.settings.skin.none': 'None',
|
|
69
|
+
'ta.settings.glass': 'Glass',
|
|
70
|
+
'ta.settings.glassHint': 'How much of the skin shows through.',
|
|
71
|
+
'ta.settings.glass.clear': 'Clear',
|
|
72
|
+
'ta.settings.glass.soft': 'Soft',
|
|
73
|
+
'ta.settings.glass.focus': 'Focus',
|
|
66
74
|
'ta.settings.fontSize': 'Font size',
|
|
67
75
|
'ta.settings.fontSizeHint': 'The text of the whole page.',
|
|
68
76
|
'ta.settings.chatFontSize': 'Conversation font size',
|
|
@@ -33,6 +33,11 @@ export declare const TOOLS_EN: {
|
|
|
33
33
|
'ta.tool.verb.deleteScheduled': string;
|
|
34
34
|
'ta.tool.verb.publish': string;
|
|
35
35
|
'ta.tool.verb.editImage': string;
|
|
36
|
+
'ta.tool.verb.generateImage': string;
|
|
37
|
+
'ta.tool.verb.generateVideo': string;
|
|
38
|
+
'ta.tool.verb.findTools': string;
|
|
39
|
+
'ta.tool.verb.callTool': string;
|
|
40
|
+
'ta.tool.verb.notify': string;
|
|
36
41
|
'ta.tool.verb.click': string;
|
|
37
42
|
'ta.tool.verb.doubleClick': string;
|
|
38
43
|
'ta.tool.verb.rightClick': string;
|
|
@@ -36,6 +36,11 @@ exports.TOOLS_EN = {
|
|
|
36
36
|
'ta.tool.verb.deleteScheduled': 'Cancel scheduled task',
|
|
37
37
|
'ta.tool.verb.publish': 'Publish',
|
|
38
38
|
'ta.tool.verb.editImage': 'Edit image',
|
|
39
|
+
'ta.tool.verb.generateImage': 'Generate image',
|
|
40
|
+
'ta.tool.verb.generateVideo': 'Generate video',
|
|
41
|
+
'ta.tool.verb.findTools': 'Find tools',
|
|
42
|
+
'ta.tool.verb.callTool': 'Use tool',
|
|
43
|
+
'ta.tool.verb.notify': 'Send notification',
|
|
39
44
|
'ta.tool.verb.click': 'Click',
|
|
40
45
|
'ta.tool.verb.doubleClick': 'Double-click',
|
|
41
46
|
'ta.tool.verb.rightClick': 'Right-click',
|
|
@@ -26,6 +26,9 @@ exports.ASSISTANT_JA = {
|
|
|
26
26
|
'ta.assistant.speakStopShort': '停止',
|
|
27
27
|
'ta.assistant.poke': 'Ta をつついてみる',
|
|
28
28
|
'ta.assistant.stop': '停止',
|
|
29
|
+
'ta.assistant.pauseTasks': 'すべてのタスクを一時停止',
|
|
30
|
+
'ta.assistant.resumeTasks': '一時停止したタスクを再開({count})',
|
|
31
|
+
'ta.assistant.pausedTasks': '{count} 件のタスクを一時停止しました',
|
|
29
32
|
'ta.assistant.restart': 'やり直す',
|
|
30
33
|
'ta.assistant.restartTitle': '分身との新しい会話を始めますか?',
|
|
31
34
|
'ta.assistant.restartHint': '現在の会話はセッションファイルに保存され、タスクは続行します。',
|
|
@@ -80,6 +83,7 @@ exports.ASSISTANT_JA = {
|
|
|
80
83
|
'ta.task.verdictFail': 'チェック不合格',
|
|
81
84
|
'ta.task.branch': 'ブランチ {branch}',
|
|
82
85
|
'ta.task.stopped': '停止',
|
|
86
|
+
'ta.task.paused': '一時停止中',
|
|
83
87
|
'ta.task.waiting': 'あなたの対応が必要',
|
|
84
88
|
'ta.task.waitingPermission': '許可を待っています',
|
|
85
89
|
'ta.task.waitingQuestion': '回答を待っています',
|
|
@@ -174,6 +174,7 @@ exports.CHAT_JA = {
|
|
|
174
174
|
'ta.hear.getting': 'コンピューターが音声モデルをダウンロード中({percent}%)。終わったらもう一度話してください',
|
|
175
175
|
'ta.hear.failed': 'コンピューターの音声認識の準備ができていません',
|
|
176
176
|
'ta.hear.retry': '再試行',
|
|
177
|
+
'ta.hear.service': '音声サービスを使う',
|
|
177
178
|
'ta.hear.unsupported': 'この端末は音声を認識できず、コンピューターでも Ta の音声認識は動きません',
|
|
178
179
|
'ta.hear.unavailable': 'この端末は音声を認識できず、Ta の音声認識もオフです',
|
|
179
180
|
'ta.hear.unavailableHint': '設定 → 拡張機能 で「リアルタイム音声」と「ローカルモデル」をオンにしてください。',
|
|
@@ -59,9 +59,6 @@ exports.COMMON_JA = {
|
|
|
59
59
|
'ta.clip.pasteMany': '貼り付けた内容に Ta のリンクが {count} 件あります',
|
|
60
60
|
'ta.clip.pick': '開くものをタップ',
|
|
61
61
|
'ta.clip.open': '開く',
|
|
62
|
-
'ta.clip.maybe': 'クリップボードにリンクがあります',
|
|
63
|
-
'ta.clip.maybeDetail': 'Ta の招待や共有なら「開く」で開けます',
|
|
64
|
-
'ta.clip.none': 'クリップボードに Ta のリンクはありません',
|
|
65
62
|
'ta.link.notFound': '{path} は存在しません。',
|
|
66
63
|
'ta.terminal.openLink': 'Ctrl + クリックして開く',
|
|
67
64
|
'ta.terminal.openLinkMac': 'Cmd + クリックして開く',
|