@celljs/ta-web 4.47.1 → 4.49.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/assistant/assistant-role.d.ts +1 -1
- package/esm/browser/assistant/assistant-role.js +1 -1
- package/esm/browser/assistant/assistant-task-source.js +6 -1
- package/esm/browser/assistant/assistant-task-util.d.ts +1 -0
- package/esm/browser/assistant/assistant-task-util.js +9 -3
- package/esm/browser/assistant/assistant-view.js +4 -2
- package/esm/browser/cloud/cloud-sign-in.d.ts +26 -4
- package/esm/browser/cloud/cloud-sign-in.js +88 -18
- package/esm/browser/components/app-nav.d.ts +3 -1
- package/esm/browser/components/app-nav.js +3 -3
- package/esm/browser/components/app-view.js +16 -6
- package/esm/browser/components/asks-badge.d.ts +12 -0
- package/esm/browser/components/asks-badge.js +17 -1
- package/esm/browser/components/chat-list-row.d.ts +4 -1
- package/esm/browser/components/chat-list-row.js +7 -1
- package/esm/browser/components/chats-dot.d.ts +4 -1
- package/esm/browser/components/chats-dot.js +6 -2
- package/esm/browser/components/cloud-sign-in-view.d.ts +2 -1
- package/esm/browser/components/cloud-sign-in-view.js +28 -5
- package/esm/browser/components/composer-box-protocol.d.ts +5 -3
- package/esm/browser/components/composer-box.js +11 -11
- package/esm/browser/components/composer.d.ts +8 -1
- package/esm/browser/components/composer.js +57 -34
- package/esm/browser/components/host-view.d.ts +1 -1
- package/esm/browser/components/lightbox.d.ts +15 -1
- package/esm/browser/components/lightbox.js +14 -2
- package/esm/browser/components/link.js +8 -3
- package/esm/browser/components/markdown.d.ts +4 -2
- package/esm/browser/components/markdown.js +13 -4
- package/esm/browser/components/media.d.ts +6 -0
- package/esm/browser/components/media.js +9 -1
- package/esm/browser/components/message-images.d.ts +5 -0
- package/esm/browser/components/message-images.js +40 -4
- package/esm/browser/components/message-user.js +4 -2
- package/esm/browser/components/partner-row.js +4 -4
- package/esm/browser/components/phone-shell.d.ts +2 -0
- package/esm/browser/components/phone-shell.js +2 -2
- package/esm/browser/components/sending.d.ts +19 -0
- package/esm/browser/components/sending.js +27 -0
- package/esm/browser/components/session-view.js +4 -3
- package/esm/browser/components/settings-choices.js +1 -0
- package/esm/browser/components/settings-parts.js +28 -17
- package/esm/browser/components/share-dialog.js +3 -2
- package/esm/browser/components/share-item-sheet.js +1 -1
- package/esm/browser/components/share-sheet.d.ts +4 -2
- package/esm/browser/components/share-sheet.js +16 -2
- package/esm/browser/components/sign-in-accounts.js +7 -1
- package/esm/browser/components/unseen-drop.d.ts +2 -2
- package/esm/browser/components/unseen-drop.js +1 -1
- package/esm/browser/device/app-badge.d.ts +8 -0
- package/esm/browser/device/app-badge.js +28 -0
- package/esm/browser/device/code-scan.js +1 -1
- package/esm/browser/extension/web-api-code.d.ts +26 -0
- package/esm/browser/extension/web-api-components.d.ts +31 -0
- package/esm/browser/extension/web-api-menus.d.ts +15 -0
- package/esm/browser/extension/web-api-messages.d.ts +15 -0
- package/esm/browser/extension/web-api-messages.js +2 -0
- package/esm/browser/extension/web-api-partners.d.ts +16 -0
- package/esm/browser/extension/web-api-spec.js +1 -0
- package/esm/browser/extension/web-extension-api.d.ts +7 -13
- package/esm/browser/extension/web-extension-context.js +2 -0
- package/esm/browser/extension/web-session-notices.js +11 -2
- package/esm/browser/extension/web-share-ui.js +1 -0
- package/esm/browser/extension/web-share.js +3 -3
- package/esm/browser/extension/web-sharing.js +1 -1
- package/esm/browser/i18n/en/assistant.d.ts +2 -0
- package/esm/browser/i18n/en/assistant.js +2 -0
- package/esm/browser/i18n/en/chat.d.ts +11 -0
- package/esm/browser/i18n/en/chat.js +13 -2
- package/esm/browser/i18n/en/common.d.ts +4 -0
- package/esm/browser/i18n/en/common.js +4 -0
- package/esm/browser/i18n/en/service.d.ts +5 -0
- package/esm/browser/i18n/en/service.js +5 -0
- package/esm/browser/i18n/en/settings.d.ts +6 -0
- package/esm/browser/i18n/en/settings.js +8 -2
- package/esm/browser/i18n/ja/assistant.js +2 -0
- package/esm/browser/i18n/ja/chat.js +13 -2
- package/esm/browser/i18n/ja/common.js +4 -0
- package/esm/browser/i18n/ja/service.js +5 -0
- package/esm/browser/i18n/ja/settings.js +10 -4
- package/esm/browser/i18n/locales.d.ts +29 -1
- package/esm/browser/i18n/messages.d.ts +28 -0
- package/esm/browser/i18n/zh/assistant.js +2 -0
- package/esm/browser/i18n/zh/chat.js +13 -2
- package/esm/browser/i18n/zh/common.js +4 -0
- package/esm/browser/i18n/zh/service.js +5 -0
- package/esm/browser/i18n/zh/settings.js +8 -2
- package/esm/browser/i18n/zh-tw/assistant.js +2 -0
- package/esm/browser/i18n/zh-tw/chat.js +13 -2
- package/esm/browser/i18n/zh-tw/common.js +4 -0
- package/esm/browser/i18n/zh-tw/service.js +5 -0
- package/esm/browser/i18n/zh-tw/settings.js +8 -2
- package/esm/browser/links/links.js +1 -1
- package/esm/browser/notices/session-notices.d.ts +4 -4
- package/esm/browser/notices/session-notices.js +3 -6
- package/esm/browser/partners/partners-util.d.ts +6 -0
- package/esm/browser/partners/partners-util.js +22 -0
- package/esm/browser/sandbox/sandbox-runtime-code.js +1 -1
- package/esm/browser/settings/agent-settings.d.ts +2 -0
- package/esm/browser/settings/agent-settings.js +2 -0
- package/esm/browser/settings/settings-protocol.d.ts +8 -0
- package/esm/browser/settings/settings-protocol.js +5 -0
- package/esm/browser/style/base.d.ts +1 -1
- package/esm/browser/style/base.js +3 -0
- package/esm/browser/style/chat-list.d.ts +1 -1
- package/esm/browser/style/chat-list.js +8 -3
- package/esm/browser/style/conversation-column.d.ts +1 -1
- package/esm/browser/style/conversation-column.js +6 -1
- package/esm/browser/style/conversation.d.ts +1 -1
- package/esm/browser/style/conversation.js +18 -0
- package/esm/browser/style/phone.d.ts +1 -1
- package/esm/browser/style/phone.js +2 -0
- package/esm/browser/util/composer.d.ts +18 -3
- package/esm/browser/util/composer.js +31 -5
- package/esm/browser/util/desktop.d.ts +8 -1
- package/esm/browser/util/desktop.js +10 -0
- package/esm/browser/util/image-shrink.d.ts +5 -1
- package/esm/browser/util/image-shrink.js +1 -1
- package/esm/browser/util/markdown.d.ts +3 -5
- package/esm/browser/util/markdown.js +5 -29
- package/esm/browser/util/process.js +2 -2
- package/lib/browser/assistant/assistant-role.d.ts +1 -1
- package/lib/browser/assistant/assistant-role.js +1 -1
- package/lib/browser/assistant/assistant-task-source.js +5 -0
- package/lib/browser/assistant/assistant-task-util.d.ts +1 -0
- package/lib/browser/assistant/assistant-task-util.js +8 -2
- package/lib/browser/assistant/assistant-view.js +4 -2
- package/lib/browser/cloud/cloud-sign-in.d.ts +26 -4
- package/lib/browser/cloud/cloud-sign-in.js +89 -19
- package/lib/browser/components/app-nav.d.ts +3 -1
- package/lib/browser/components/app-nav.js +2 -2
- package/lib/browser/components/app-view.js +16 -6
- package/lib/browser/components/asks-badge.d.ts +12 -0
- package/lib/browser/components/asks-badge.js +19 -1
- package/lib/browser/components/chat-list-row.d.ts +4 -1
- package/lib/browser/components/chat-list-row.js +7 -1
- package/lib/browser/components/chats-dot.d.ts +4 -1
- package/lib/browser/components/chats-dot.js +6 -2
- package/lib/browser/components/cloud-sign-in-view.d.ts +2 -1
- package/lib/browser/components/cloud-sign-in-view.js +28 -5
- package/lib/browser/components/composer-box-protocol.d.ts +5 -3
- package/lib/browser/components/composer-box.js +11 -11
- package/lib/browser/components/composer.d.ts +8 -1
- package/lib/browser/components/composer.js +56 -33
- package/lib/browser/components/host-view.d.ts +1 -1
- package/lib/browser/components/lightbox.d.ts +15 -1
- package/lib/browser/components/lightbox.js +15 -2
- package/lib/browser/components/link.js +8 -3
- package/lib/browser/components/markdown.d.ts +4 -2
- package/lib/browser/components/markdown.js +11 -2
- package/lib/browser/components/media.d.ts +6 -0
- package/lib/browser/components/media.js +10 -2
- package/lib/browser/components/message-images.d.ts +5 -0
- package/lib/browser/components/message-images.js +40 -4
- package/lib/browser/components/message-user.js +4 -2
- package/lib/browser/components/partner-row.js +4 -4
- package/lib/browser/components/phone-shell.d.ts +2 -0
- package/lib/browser/components/phone-shell.js +1 -1
- package/lib/browser/components/sending.d.ts +20 -0
- package/lib/browser/components/sending.js +63 -0
- package/lib/browser/components/session-view.js +4 -3
- package/lib/browser/components/settings-choices.js +1 -0
- package/lib/browser/components/settings-parts.js +26 -15
- package/lib/browser/components/share-dialog.js +3 -2
- package/lib/browser/components/share-item-sheet.js +1 -1
- package/lib/browser/components/share-sheet.d.ts +4 -2
- package/lib/browser/components/share-sheet.js +16 -2
- package/lib/browser/components/sign-in-accounts.js +7 -1
- package/lib/browser/components/unseen-drop.d.ts +2 -2
- package/lib/browser/components/unseen-drop.js +1 -1
- package/lib/browser/device/app-badge.d.ts +9 -0
- package/lib/browser/device/app-badge.js +31 -0
- package/lib/browser/device/code-scan.js +1 -1
- package/lib/browser/extension/web-api-code.d.ts +26 -0
- package/lib/browser/extension/web-api-components.d.ts +31 -0
- package/lib/browser/extension/web-api-menus.d.ts +15 -0
- package/lib/browser/extension/web-api-messages.d.ts +16 -0
- package/lib/browser/extension/web-api-messages.js +3 -0
- package/lib/browser/extension/web-api-partners.d.ts +16 -0
- package/lib/browser/extension/web-api-spec.js +1 -0
- package/lib/browser/extension/web-extension-api.d.ts +7 -13
- package/lib/browser/extension/web-extension-context.js +2 -0
- package/lib/browser/extension/web-session-notices.js +10 -1
- package/lib/browser/extension/web-share-ui.js +1 -0
- package/lib/browser/extension/web-share.js +3 -3
- package/lib/browser/extension/web-sharing.js +1 -1
- package/lib/browser/i18n/en/assistant.d.ts +2 -0
- package/lib/browser/i18n/en/assistant.js +2 -0
- package/lib/browser/i18n/en/chat.d.ts +11 -0
- package/lib/browser/i18n/en/chat.js +13 -2
- package/lib/browser/i18n/en/common.d.ts +4 -0
- package/lib/browser/i18n/en/common.js +4 -0
- package/lib/browser/i18n/en/service.d.ts +5 -0
- package/lib/browser/i18n/en/service.js +5 -0
- package/lib/browser/i18n/en/settings.d.ts +6 -0
- package/lib/browser/i18n/en/settings.js +8 -2
- package/lib/browser/i18n/ja/assistant.js +2 -0
- package/lib/browser/i18n/ja/chat.js +13 -2
- package/lib/browser/i18n/ja/common.js +4 -0
- package/lib/browser/i18n/ja/service.js +5 -0
- package/lib/browser/i18n/ja/settings.js +10 -4
- package/lib/browser/i18n/locales.d.ts +29 -1
- package/lib/browser/i18n/messages.d.ts +28 -0
- package/lib/browser/i18n/zh/assistant.js +2 -0
- package/lib/browser/i18n/zh/chat.js +13 -2
- package/lib/browser/i18n/zh/common.js +4 -0
- package/lib/browser/i18n/zh/service.js +5 -0
- package/lib/browser/i18n/zh/settings.js +8 -2
- package/lib/browser/i18n/zh-tw/assistant.js +2 -0
- package/lib/browser/i18n/zh-tw/chat.js +13 -2
- package/lib/browser/i18n/zh-tw/common.js +4 -0
- package/lib/browser/i18n/zh-tw/service.js +5 -0
- package/lib/browser/i18n/zh-tw/settings.js +8 -2
- package/lib/browser/links/links.js +1 -1
- package/lib/browser/notices/session-notices.d.ts +4 -4
- package/lib/browser/notices/session-notices.js +3 -6
- package/lib/browser/partners/partners-util.d.ts +6 -0
- package/lib/browser/partners/partners-util.js +22 -0
- package/lib/browser/sandbox/sandbox-runtime-code.js +1 -1
- package/lib/browser/settings/agent-settings.d.ts +2 -0
- package/lib/browser/settings/agent-settings.js +3 -1
- package/lib/browser/settings/settings-protocol.d.ts +8 -0
- package/lib/browser/settings/settings-protocol.js +6 -1
- package/lib/browser/style/base.d.ts +1 -1
- package/lib/browser/style/base.js +3 -0
- package/lib/browser/style/chat-list.d.ts +1 -1
- package/lib/browser/style/chat-list.js +8 -3
- package/lib/browser/style/conversation-column.d.ts +1 -1
- package/lib/browser/style/conversation-column.js +6 -1
- package/lib/browser/style/conversation.d.ts +1 -1
- package/lib/browser/style/conversation.js +18 -0
- package/lib/browser/style/phone.d.ts +1 -1
- package/lib/browser/style/phone.js +2 -0
- package/lib/browser/util/composer.d.ts +18 -3
- package/lib/browser/util/composer.js +31 -5
- package/lib/browser/util/desktop.d.ts +8 -1
- package/lib/browser/util/desktop.js +10 -0
- package/lib/browser/util/image-shrink.d.ts +5 -1
- package/lib/browser/util/image-shrink.js +1 -1
- package/lib/browser/util/markdown.d.ts +3 -5
- package/lib/browser/util/markdown.js +5 -29
- package/lib/browser/util/process.js +1 -1
- package/package.json +7 -7
- package/esm/browser/util/share-link.d.ts +0 -21
- package/esm/browser/util/share-link.js +0 -61
- package/lib/browser/util/share-link.d.ts +0 -22
- package/lib/browser/util/share-link.js +0 -64
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AppBadge = void 0;
|
|
4
|
+
const desktop_1 = require("../util/desktop");
|
|
5
|
+
/**
|
|
6
|
+
* The number on the icon of Ta, as a messenger's: the messages of people the user has not seen, the red number of the
|
|
7
|
+
* chats' tab. Ta Desktop's Dock, the app on iOS (TaPush.swift, which the computer's pushes set too while the app is
|
|
8
|
+
* closed), or an installed web page (the Badging API); 0 takes it off. Nothing where there is no icon.
|
|
9
|
+
*/
|
|
10
|
+
var AppBadge;
|
|
11
|
+
(function (AppBadge) {
|
|
12
|
+
function set(count, scope = globalThis) {
|
|
13
|
+
var _a, _b, _c;
|
|
14
|
+
const value = Math.max(0, Math.floor(count) || 0);
|
|
15
|
+
const desktop = desktop_1.DesktopUtil.badge(scope);
|
|
16
|
+
if (desktop) {
|
|
17
|
+
desktop(value);
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
const { webkit, navigator } = scope;
|
|
21
|
+
const app = (_a = webkit === null || webkit === void 0 ? void 0 : webkit.messageHandlers) === null || _a === void 0 ? void 0 : _a.taPush;
|
|
22
|
+
if (app) {
|
|
23
|
+
app.postMessage({ action: 'badge', count: value });
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
const done = value ? (_b = navigator === null || navigator === void 0 ? void 0 : navigator.setAppBadge) === null || _b === void 0 ? void 0 : _b.call(navigator, value) : (_c = navigator === null || navigator === void 0 ? void 0 : navigator.clearAppBadge) === null || _c === void 0 ? void 0 : _c.call(navigator);
|
|
27
|
+
void (done === null || done === void 0 ? void 0 : done.catch(() => undefined));
|
|
28
|
+
}
|
|
29
|
+
AppBadge.set = set;
|
|
30
|
+
})(AppBadge || (exports.AppBadge = AppBadge = {}));
|
|
31
|
+
//# sourceMappingURL=app-badge.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CodeScan = exports.CodeScanUtil = exports.ScanScreen = void 0;
|
|
4
|
+
const share_link_1 = require("@celljs/ta-protocol/lib/common/share-link");
|
|
4
5
|
const messages_1 = require("../i18n/messages");
|
|
5
|
-
const share_link_1 = require("../util/share-link");
|
|
6
6
|
const workbench_util_1 = require("../workbench-util");
|
|
7
7
|
const code_vision_1 = require("./code-vision");
|
|
8
8
|
const mini_program_1 = require("./mini-program");
|
|
@@ -9,6 +9,32 @@ export interface WebCodeRendererOptions {
|
|
|
9
9
|
spoken?(code: string): string | undefined;
|
|
10
10
|
pointable?: boolean;
|
|
11
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* The files a text said on another computer names (a line of a group chat, docs/design/ta-local-refs.md), as they came
|
|
14
|
+
* with it, by the path the text names each by (LocalRefs.localPath): `ui.Markdown` with them shows and opens those, and
|
|
15
|
+
* looks for no file of this computer.
|
|
16
|
+
*/
|
|
17
|
+
export interface WebMarkdownFiles {
|
|
18
|
+
/** Whether the file of a path came with the text. */
|
|
19
|
+
has(path: string): boolean;
|
|
20
|
+
/** A URL of one that came, a picture or a video it shows; rejects while it cannot come (its sender away). */
|
|
21
|
+
url(path: string): Promise<string>;
|
|
22
|
+
/** Opens one that came, as the chat opens its files. */
|
|
23
|
+
open(path: string): void;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* What `ui.Markdown` draws: `text` as the conversations show it; `inline`: in a line; `send`, `answer`: a group chat's
|
|
27
|
+
* (newer); `whole`: WebCodeRendererProps.whole; `files`: of a text said on another computer, the files that came with it
|
|
28
|
+
* (newer; older apps look for them on their own computer).
|
|
29
|
+
*/
|
|
30
|
+
export interface WebMarkdownProps {
|
|
31
|
+
text: string;
|
|
32
|
+
inline?: boolean;
|
|
33
|
+
send?: WebCodeRendererProps['send'];
|
|
34
|
+
answer?: string;
|
|
35
|
+
whole?: boolean;
|
|
36
|
+
files?: WebMarkdownFiles;
|
|
37
|
+
}
|
|
12
38
|
/** A fenced block of the language of a code renderer (WebExtensionAPI.registerCodeRenderer). */
|
|
13
39
|
export interface WebCodeRendererProps {
|
|
14
40
|
/** Its lines, as written. */
|
|
@@ -35,6 +35,8 @@ export interface WebShareSheetProps {
|
|
|
35
35
|
/** Who or what goes, as the other will see it: a face or an icon (44 px), and a name. */
|
|
36
36
|
face?: React.ReactNode;
|
|
37
37
|
name?: string;
|
|
38
|
+
/** An icon of the page (WEB_ICONS) for what goes, on its card where it is sent into a chat: `Package` for an extension. */
|
|
39
|
+
icon?: string;
|
|
38
40
|
/** What the other gets, in a line: "They add it as an agent of their own". */
|
|
39
41
|
gets?: string;
|
|
40
42
|
/**
|
|
@@ -214,10 +216,32 @@ export interface WebChatImagesProps {
|
|
|
214
216
|
thumb?: string;
|
|
215
217
|
width: number;
|
|
216
218
|
height: number;
|
|
219
|
+
original?: WebChatOriginal;
|
|
217
220
|
}[];
|
|
218
221
|
/** What they are, for who cannot see them. */
|
|
219
222
|
alt?: string;
|
|
220
223
|
}
|
|
224
|
+
/**
|
|
225
|
+
* The picture as it was picked, of one shown made smaller (WebChatImagesProps): 查看原图 with its size at the bottom left
|
|
226
|
+
* of the picture opened, as WeChat has it; `load` gives its URL once here (undefined when it cannot come now).
|
|
227
|
+
*/
|
|
228
|
+
export interface WebChatOriginal {
|
|
229
|
+
bytes: number;
|
|
230
|
+
load(): Promise<string | undefined>;
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* WebExtensionUI.Sending: a message of the user on its way, as a messenger shows it: a spinner beside it while it goes
|
|
234
|
+
* (`progress`, 0 to 1, when known), a red mark and a line to send it again or take it back once it did not (`failed`, why).
|
|
235
|
+
*/
|
|
236
|
+
export interface WebSendingProps {
|
|
237
|
+
failed?: string;
|
|
238
|
+
progress?: number;
|
|
239
|
+
onResend?(): void;
|
|
240
|
+
onDiscard?(): void;
|
|
241
|
+
/** In place of the line under one that did not go (发送失败 · 重发 · 删除). */
|
|
242
|
+
line?: React.ReactNode;
|
|
243
|
+
children?: React.ReactNode;
|
|
244
|
+
}
|
|
221
245
|
export interface WebImageViewerProps {
|
|
222
246
|
src: string;
|
|
223
247
|
alt?: string;
|
|
@@ -418,6 +442,13 @@ export interface WebComposerImage {
|
|
|
418
442
|
/** In pixels, when the box shrank it (`images` with limits). */
|
|
419
443
|
width?: number;
|
|
420
444
|
height?: number;
|
|
445
|
+
/** The picture as it was picked, when the box made it smaller (`images` with limits): for 查看原图. */
|
|
446
|
+
original?: {
|
|
447
|
+
data: string;
|
|
448
|
+
mimeType: string;
|
|
449
|
+
width: number;
|
|
450
|
+
height: number;
|
|
451
|
+
};
|
|
421
452
|
}
|
|
422
453
|
/** How the message box shrinks the pictures it hands on: their longest side in pixels, their bytes at most. */
|
|
423
454
|
export interface WebComposerImageLimits {
|
|
@@ -57,6 +57,21 @@ export type WebShareItem = {
|
|
|
57
57
|
} | {
|
|
58
58
|
kind: 'file';
|
|
59
59
|
file: WebFileRef;
|
|
60
|
+
} | {
|
|
61
|
+
/**
|
|
62
|
+
* A link from the share sheet (`ui.ShareSheet`: an extension, a conversation, a card, an invitation), to send
|
|
63
|
+
* into chats as a card (docs/design/ta-links.md 4.1): its Send to friends is the way that takes it.
|
|
64
|
+
*/
|
|
65
|
+
kind: 'link';
|
|
66
|
+
link: string;
|
|
67
|
+
/** Who or what goes, as the sheet names it. */
|
|
68
|
+
title: string;
|
|
69
|
+
/** What the other reads with the link (WebShareSheetProps.invite). */
|
|
70
|
+
invite: string;
|
|
71
|
+
/** What the other gets, in a line. */
|
|
72
|
+
gets?: string;
|
|
73
|
+
/** An icon of the page (WEB_ICONS) for what it is. */
|
|
74
|
+
icon?: string;
|
|
60
75
|
};
|
|
61
76
|
/**
|
|
62
77
|
* A way to share (registerShareWay): a tile of the share sheet, for what it takes. Send to friends and group chats,
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Part of the web extension API (web-extension-api.ts, which exports it all): what a chat an extension draws (a group
|
|
3
|
+
* chat, a channel) shows as the conversations of the page do, the pictures of a message and a message on its way.
|
|
4
|
+
*/
|
|
5
|
+
import type * as React from 'react';
|
|
6
|
+
import type { WebChatImagesProps, WebSendingProps } from './web-api-components';
|
|
7
|
+
export interface WebMessagesUI {
|
|
8
|
+
/**
|
|
9
|
+
* The pictures of a message of a chat the extension draws, as a conversation shows the user's (`thumb` blurred till
|
|
10
|
+
* `src`; 查看原图 of one shown made smaller, `original`). Newer than some apps.
|
|
11
|
+
*/
|
|
12
|
+
readonly ChatImages?: React.ComponentType<WebChatImagesProps>;
|
|
13
|
+
/** A message of the user on its way, around it: a spinner beside it while it goes, a red mark and 重发 / 删除 once it did not. Newer than some apps. */
|
|
14
|
+
readonly Sending?: React.ComponentType<WebSendingProps>;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=web-api-messages.d.ts.map
|
|
@@ -69,10 +69,26 @@ export interface WebPartnerChat {
|
|
|
69
69
|
seenAt?: number;
|
|
70
70
|
/** What was said last, with who said it where it is not the partner. */
|
|
71
71
|
last?: string;
|
|
72
|
+
/**
|
|
73
|
+
* Before {@link last}, in red while it is unseen, as WeChat's `[Someone @ you]`: what of it is for the user. Newer than
|
|
74
|
+
* some Ta apps.
|
|
75
|
+
*/
|
|
76
|
+
flag?: string;
|
|
72
77
|
/** `Date.now()` time of it: where the conversation is in the double's list. */
|
|
73
78
|
at?: number;
|
|
74
79
|
/** Said since the user last looked: the amber dot. */
|
|
75
80
|
unseen?: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* With {@link unseen}, how many messages people sent that the user has not seen (a friend, a group chat): a red
|
|
83
|
+
* number on its face in place of the amber dot, and counted on the tab of the chats, as WeChat's. Newer than some Ta
|
|
84
|
+
* apps.
|
|
85
|
+
*/
|
|
86
|
+
count?: number;
|
|
87
|
+
/**
|
|
88
|
+
* Marks what was said seen, as the user drags its number (or dot) away, from its row or from the tab of the chats
|
|
89
|
+
* with all the others; without it, it stays till opened. Newer than some Ta apps.
|
|
90
|
+
*/
|
|
91
|
+
see?(): void;
|
|
76
92
|
/** Answers now: the green dot that breathes. */
|
|
77
93
|
busy?: boolean;
|
|
78
94
|
/** Waits for the user to answer: the blue ?. */
|
|
@@ -94,6 +94,7 @@ exports.WEB_UI_SPEC = {
|
|
|
94
94
|
PictureCards: component(B),
|
|
95
95
|
ImageViewer: component(B),
|
|
96
96
|
ChatImages: component(B),
|
|
97
|
+
Sending: component(B),
|
|
97
98
|
QrCode: component(B),
|
|
98
99
|
// Its host is functions that take functions: only in the page, for now (docs/design/ta-works.md stage 2 opens it).
|
|
99
100
|
WorkFrame: page,
|
|
@@ -4,8 +4,8 @@ import type { Mood } from '../avatar/dino-avatar';
|
|
|
4
4
|
import type { DeviceState } from '../device/device-protocol';
|
|
5
5
|
import type { ScreenPartSpec, TaScreen } from '../screen/screen-protocol';
|
|
6
6
|
import type { Language, Theme } from '../settings/settings-protocol';
|
|
7
|
-
import type { WebCodeRendererOptions, WebCodeRendererProps } from './web-api-code';
|
|
8
|
-
import type { CodeEditorProps, DiffEditorProps, WebAvatarProps,
|
|
7
|
+
import type { WebCodeRendererOptions, WebCodeRendererProps, WebMarkdownProps } from './web-api-code';
|
|
8
|
+
import type { CodeEditorProps, DiffEditorProps, WebAvatarProps, 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
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
10
|
import type { WebDesktop, WebDeviceUI, WebFileDrag, WebviewTabEvent } from './web-api-desktop';
|
|
11
11
|
import type { WebEditorsUI } from './web-api-editors';
|
|
@@ -14,6 +14,7 @@ import type { WebHomeUI, WebPartnersAPI, WebPartnersUI } from './web-api-home';
|
|
|
14
14
|
import type { WebHostAPI, WebHostUI } from './web-api-host';
|
|
15
15
|
import type { WebHosts } from './web-api-hosts';
|
|
16
16
|
import type { WebFileRef, WebMenus, WebShareUI } from './web-api-menus';
|
|
17
|
+
import type { WebMessagesUI } from './web-api-messages';
|
|
17
18
|
import type { WebPlayUI } from './web-api-play';
|
|
18
19
|
import type { WebServices } from './web-api-services';
|
|
19
20
|
import type { WebSkinsAPI } from './web-api-skins';
|
|
@@ -38,6 +39,7 @@ export type * from './web-api-home';
|
|
|
38
39
|
export type * from './web-api-host';
|
|
39
40
|
export type * from './web-api-hosts';
|
|
40
41
|
export type * from './web-api-menus';
|
|
42
|
+
export type * from './web-api-messages';
|
|
41
43
|
export type * from './web-api-play';
|
|
42
44
|
export type * from './web-api-services';
|
|
43
45
|
export type * from './web-api-skins';
|
|
@@ -188,7 +190,7 @@ export type WebIcon = React.ComponentType<{
|
|
|
188
190
|
}>;
|
|
189
191
|
/** What web extensions see of TaScreen. */
|
|
190
192
|
export type WebScreen = Pick<TaScreen, 'agent' | 'parts' | 'act' | 'element' | 'where' | 'places' | 'go' | 'pageScroll' | 'scroll'>;
|
|
191
|
-
export interface WebExtensionUI extends WebHomeUI, WebPartnersUI, WebEditorsUI, WebDeviceUI, WebPlayUI, WebShareUI, WebFileViewsUI, WebHostUI {
|
|
193
|
+
export interface WebExtensionUI extends WebMessagesUI, WebHomeUI, WebPartnersUI, WebEditorsUI, WebDeviceUI, WebPlayUI, WebShareUI, WebFileViewsUI, WebHostUI {
|
|
192
194
|
/** A widget around the message box, as pi's, or a card in the workbench on the right; `undefined` removes it. */
|
|
193
195
|
setWidget(key: string, widget: React.ComponentType | undefined, options?: WidgetOptions): void;
|
|
194
196
|
/**
|
|
@@ -477,14 +479,8 @@ export interface WebExtensionUI extends WebHomeUI, WebPartnersUI, WebEditorsUI,
|
|
|
477
479
|
* meeting written down); let it go when it stops. Newer than some Ta apps: `pi.ui.keepAwake?.()`.
|
|
478
480
|
*/
|
|
479
481
|
readonly keepAwake?: () => () => void;
|
|
480
|
-
/** As the conversations show it
|
|
481
|
-
readonly Markdown: React.ComponentType<
|
|
482
|
-
text: string;
|
|
483
|
-
inline?: boolean;
|
|
484
|
-
send?: WebCodeRendererProps['send'];
|
|
485
|
-
answer?: string;
|
|
486
|
-
whole?: boolean;
|
|
487
|
-
}>;
|
|
482
|
+
/** As the conversations show it (WebMarkdownProps). */
|
|
483
|
+
readonly Markdown: React.ComponentType<WebMarkdownProps>;
|
|
488
484
|
/**
|
|
489
485
|
* A conversation to read, drawn as those of the page are, with what extensions draw in them (cards, plots,
|
|
490
486
|
* 3D); nothing in it acts. Newer than some Ta apps: `pi.ui.Conversation ?? …`.
|
|
@@ -558,8 +554,6 @@ export interface WebExtensionUI extends WebHomeUI, WebPartnersUI, WebEditorsUI,
|
|
|
558
554
|
* fit / actual size below it, and the pictures beside it at its sides when given (`onPrevious` / `onNext`). It fills its parent (a column of flex).
|
|
559
555
|
*/
|
|
560
556
|
readonly ImageViewer: React.ComponentType<WebImageViewerProps>;
|
|
561
|
-
/** The pictures of a message of a chat the extension draws, as a conversation shows the user's (`thumb` blurred till `src`). Newer than some apps. */
|
|
562
|
-
readonly ChatImages?: React.ComponentType<WebChatImagesProps>;
|
|
563
557
|
/** A QR code of a text (a link to scan with a phone), black on white whatever the theme; `label` for a screen reader. */
|
|
564
558
|
readonly QrCode: React.ComponentType<{
|
|
565
559
|
text: string;
|
|
@@ -64,6 +64,7 @@ const phone_shell_1 = require("../components/phone-shell");
|
|
|
64
64
|
const picture_1 = require("../components/picture");
|
|
65
65
|
const qr_view_1 = require("../components/qr-view");
|
|
66
66
|
const select_bar_1 = require("../components/select-bar");
|
|
67
|
+
const sending_1 = require("../components/sending");
|
|
67
68
|
const settings_controls_1 = require("../components/settings-controls");
|
|
68
69
|
const swipe_row_1 = require("../components/swipe-row");
|
|
69
70
|
const ta_avatar_1 = require("../components/ta-avatar");
|
|
@@ -467,6 +468,7 @@ class WebExtensionContext {
|
|
|
467
468
|
PictureCards: picture_1.PictureCards,
|
|
468
469
|
ImageViewer: image_viewer_1.ImageViewer,
|
|
469
470
|
ChatImages: message_images_1.ChatImages,
|
|
471
|
+
Sending: sending_1.Sending,
|
|
470
472
|
QrCode: qr_view_1.QrView,
|
|
471
473
|
WorkFrame: work_frame_1.WorkFrame,
|
|
472
474
|
WorkSenses: work_senses_1.WorkSenses,
|
|
@@ -99,7 +99,11 @@ var WebSessionNoticeUtil;
|
|
|
99
99
|
const state = deps.extensions.state;
|
|
100
100
|
const assistant = deps.assistant();
|
|
101
101
|
const double = isDouble(notice, assistant);
|
|
102
|
-
const looking =
|
|
102
|
+
const looking = notice.view
|
|
103
|
+
? state.page === notice.view && !state.pageHidden
|
|
104
|
+
: double
|
|
105
|
+
? state.page === side_lists_1.DOUBLE_PAGE
|
|
106
|
+
: state.conversationShown && !!notice.sessionId && state.sessionId === notice.sessionId;
|
|
103
107
|
const task = !!notice.sessionId && !!(assistant === null || assistant === void 0 ? void 0 : assistant.taskOf(notice.sessionId)) && !((_a = assistant.taskOf(notice.sessionId)) === null || _a === void 0 ? void 0 : _a.takenOver);
|
|
104
108
|
return { focused: focused(), looking, task, system: systemAllowed(), quiet: device_1.Device.state.touch };
|
|
105
109
|
}
|
|
@@ -196,10 +200,15 @@ var WebSessionNoticeUtil;
|
|
|
196
200
|
}
|
|
197
201
|
},
|
|
198
202
|
chime: (level, way) => {
|
|
203
|
+
var _a;
|
|
199
204
|
// Ta Desktop's notice of the system, from its main process, sounds of its own but for an answer.
|
|
200
205
|
if (way !== 'system' || !desktop_1.DesktopUtil.notices() || level === 'done') {
|
|
201
206
|
tone.play(level);
|
|
202
207
|
}
|
|
208
|
+
// A phone in hand buzzes too, as a messenger's in front; a page away buzzes nothing.
|
|
209
|
+
if (device_1.Device.state.touch && focused()) {
|
|
210
|
+
(_a = (0, device_1.nativePlugin)('Haptics')) === null || _a === void 0 ? void 0 : _a('impact', { style: 'MEDIUM' }).catch(() => undefined);
|
|
211
|
+
}
|
|
203
212
|
},
|
|
204
213
|
};
|
|
205
214
|
}
|
|
@@ -46,6 +46,7 @@ function shareUI(host, stopped) {
|
|
|
46
46
|
notices: host.notices,
|
|
47
47
|
rooms: host.workbench.rooms,
|
|
48
48
|
onRoomEvent: listener => host.workbench.onRoomEvent(listener, { messages: false }),
|
|
49
|
+
ways: () => host.extensions.state.shareWays,
|
|
49
50
|
});
|
|
50
51
|
return {
|
|
51
52
|
shareExtension: target => !stopped() && host.extensions.share(target),
|
|
@@ -28,13 +28,13 @@ var WebShareUtil;
|
|
|
28
28
|
/** What it is called: the title a work gives itself, the name of a file; '' for a block that says nothing. */
|
|
29
29
|
function name(item) {
|
|
30
30
|
var _a;
|
|
31
|
-
return item.kind === 'file' ? item.file.name : ((_a = ta_protocol_1.TaWorkTitle.of(item.language, item.code)) !== null && _a !== void 0 ? _a : '');
|
|
31
|
+
return item.kind === 'file' ? item.file.name : item.kind === 'link' ? item.title : ((_a = ta_protocol_1.TaWorkTitle.of(item.language, item.code)) !== null && _a !== void 0 ? _a : '');
|
|
32
32
|
}
|
|
33
33
|
WebShareUtil.name = name;
|
|
34
34
|
/** The name of its icon (WEB_ICONS): that of the kind of work, a file's. */
|
|
35
35
|
function icon(item) {
|
|
36
|
-
var _a;
|
|
37
|
-
return item.kind === 'file' ? 'FileText' : ((_a = ta_protocol_1.TA_WORK_BLOCKS[item.language]) !== null &&
|
|
36
|
+
var _a, _b;
|
|
37
|
+
return item.kind === 'file' ? 'FileText' : item.kind === 'link' ? ((_a = item.icon) !== null && _a !== void 0 ? _a : 'Link') : ((_b = ta_protocol_1.TA_WORK_BLOCKS[item.language]) !== null && _b !== void 0 ? _b : 'Sparkles');
|
|
38
38
|
}
|
|
39
39
|
WebShareUtil.icon = icon;
|
|
40
40
|
function label(way) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.WebSharing = void 0;
|
|
4
|
+
const share_link_1 = require("@celljs/ta-protocol/lib/common/share-link");
|
|
4
5
|
const messages_1 = require("../i18n/messages");
|
|
5
|
-
const share_link_1 = require("../util/share-link");
|
|
6
6
|
/** Extensions opened from links and the market without installing (ta-launcher.md): fetched, loaded, shown. */
|
|
7
7
|
class WebSharing {
|
|
8
8
|
constructor(host) {
|
|
@@ -78,6 +78,8 @@ export declare const ASSISTANT_EN: {
|
|
|
78
78
|
'ta.task.running': string;
|
|
79
79
|
'ta.task.done': string;
|
|
80
80
|
'ta.task.failed': string;
|
|
81
|
+
'ta.task.deadEndFiltered': string;
|
|
82
|
+
'ta.task.deadEndEmpty': string;
|
|
81
83
|
'ta.task.verdictPass': string;
|
|
82
84
|
'ta.task.verdictFail': string;
|
|
83
85
|
'ta.task.branch': string;
|
|
@@ -81,6 +81,8 @@ exports.ASSISTANT_EN = {
|
|
|
81
81
|
'ta.task.running': 'Running',
|
|
82
82
|
'ta.task.done': 'Done',
|
|
83
83
|
'ta.task.failed': 'Failed',
|
|
84
|
+
'ta.task.deadEndFiltered': 'Not done: the model service filtered the reply (tried once more)',
|
|
85
|
+
'ta.task.deadEndEmpty': 'Not done: the model stopped with no output (tried once more)',
|
|
84
86
|
'ta.task.verdictPass': 'Check passed',
|
|
85
87
|
'ta.task.verdictFail': 'Check failed',
|
|
86
88
|
'ta.task.branch': 'Branch {branch}',
|
|
@@ -15,6 +15,7 @@ export declare const CHAT_EN: {
|
|
|
15
15
|
'ta.chat.asking': string;
|
|
16
16
|
'ta.chat.draft': string;
|
|
17
17
|
'ta.chat.asksCount': string;
|
|
18
|
+
'ta.chat.unseenCount': string;
|
|
18
19
|
'ta.chat.letGo': string;
|
|
19
20
|
'ta.chat.toAsk': string;
|
|
20
21
|
'ta.chat.removed': string;
|
|
@@ -89,6 +90,7 @@ export declare const CHAT_EN: {
|
|
|
89
90
|
'ta.message.sendFailed': string;
|
|
90
91
|
'ta.message.resend': string;
|
|
91
92
|
'ta.message.discard': string;
|
|
93
|
+
'ta.message.sending': string;
|
|
92
94
|
'ta.message.noModel': string;
|
|
93
95
|
'ta.message.connectModel': string;
|
|
94
96
|
'ta.message.selectText': string;
|
|
@@ -228,6 +230,15 @@ export declare const CHAT_EN: {
|
|
|
228
230
|
'ta.composer.queue.takeBackTitle': string;
|
|
229
231
|
'ta.composer.queue.editTitle': string;
|
|
230
232
|
'ta.composer.queue.remove': string;
|
|
233
|
+
'ta.composer.queue.settings': string;
|
|
234
|
+
'ta.composer.queue.sendNowTitle': string;
|
|
235
|
+
'ta.composer.queue.sendNow': string;
|
|
236
|
+
'ta.composer.interruptTitle': string;
|
|
237
|
+
'ta.composer.followUpTitle': string;
|
|
238
|
+
'ta.composer.interruptPlaceholderTouch': string;
|
|
239
|
+
'ta.composer.interruptPlaceholder': string;
|
|
240
|
+
'ta.composer.followUpPlaceholderTouch': string;
|
|
241
|
+
'ta.composer.followUpPlaceholder': string;
|
|
231
242
|
'ta.chat.replyingFor': string;
|
|
232
243
|
'ta.chats.busy': string;
|
|
233
244
|
'ta.chat.tagOpen': string;
|
|
@@ -18,6 +18,7 @@ exports.CHAT_EN = {
|
|
|
18
18
|
'ta.chat.asking': 'Your call',
|
|
19
19
|
'ta.chat.draft': 'Draft',
|
|
20
20
|
'ta.chat.asksCount': '{count} waiting for you to decide',
|
|
21
|
+
'ta.chat.unseenCount': '{count} new messages',
|
|
21
22
|
'ta.chat.letGo': 'Skip this decision',
|
|
22
23
|
'ta.chat.toAsk': 'Waiting for you: {question}',
|
|
23
24
|
'ta.chat.removed': 'Removed ({count})',
|
|
@@ -59,7 +60,7 @@ exports.CHAT_EN = {
|
|
|
59
60
|
'ta.session.waitingClientTool': 'waiting for a client tool',
|
|
60
61
|
'ta.composer.placeholder': 'Message Ta; / for commands, @ for files',
|
|
61
62
|
'ta.composer.placeholderTouch': 'Message Ta',
|
|
62
|
-
'ta.composer.steerPlaceholder': 'Add to it or steer Ta;
|
|
63
|
+
'ta.composer.steerPlaceholder': 'Add to it or steer Ta; {alt}Enter queues, {mod}Enter sends now',
|
|
63
64
|
'ta.composer.steerPlaceholderTouch': 'Add to it or steer Ta',
|
|
64
65
|
'ta.composer.stopTitle': 'Stop (Esc)',
|
|
65
66
|
'ta.composer.stopping': 'Stopping…',
|
|
@@ -92,6 +93,7 @@ exports.CHAT_EN = {
|
|
|
92
93
|
'ta.message.sendFailed': 'Not sent',
|
|
93
94
|
'ta.message.resend': 'Send again',
|
|
94
95
|
'ta.message.discard': 'Delete',
|
|
96
|
+
'ta.message.sending': 'Sending',
|
|
95
97
|
'ta.message.noModel': 'No model connected yet, so Ta cannot answer',
|
|
96
98
|
'ta.message.connectModel': 'Connect a model',
|
|
97
99
|
'ta.message.selectText': 'Select text',
|
|
@@ -197,7 +199,7 @@ exports.CHAT_EN = {
|
|
|
197
199
|
'ta.talk.tooShort': 'Too short to send',
|
|
198
200
|
'ta.talk.hold': 'Hold to talk',
|
|
199
201
|
'ta.composer.keyboard': 'Type instead',
|
|
200
|
-
'ta.composer.steerTitle': 'Steer Ta (Enter);
|
|
202
|
+
'ta.composer.steerTitle': 'Steer Ta (Enter); {alt}Enter queues, {mod}Enter sends now',
|
|
201
203
|
'ta.composer.addImage': 'Add images',
|
|
202
204
|
'ta.composer.addMedia': 'Add images or videos',
|
|
203
205
|
'ta.composer.album': 'Album',
|
|
@@ -231,6 +233,15 @@ exports.CHAT_EN = {
|
|
|
231
233
|
'ta.composer.queue.takeBackTitle': 'Take the waiting messages back into the box',
|
|
232
234
|
'ta.composer.queue.editTitle': 'Take back into the box to edit',
|
|
233
235
|
'ta.composer.queue.remove': 'Remove',
|
|
236
|
+
'ta.composer.queue.settings': 'Settings for messages sent while Ta works',
|
|
237
|
+
'ta.composer.queue.sendNowTitle': 'Stop what Ta is doing and send this at once',
|
|
238
|
+
'ta.composer.queue.sendNow': 'Send now',
|
|
239
|
+
'ta.composer.interruptTitle': 'Stop Ta and send now (Enter); {alt}Enter queues',
|
|
240
|
+
'ta.composer.followUpTitle': 'Queue for when Ta is done (Enter); {mod}Enter sends now',
|
|
241
|
+
'ta.composer.interruptPlaceholderTouch': 'Sending stops Ta and goes at once',
|
|
242
|
+
'ta.composer.interruptPlaceholder': 'Sending stops Ta and goes at once; {alt}Enter queues',
|
|
243
|
+
'ta.composer.followUpPlaceholderTouch': 'Queue a message for when Ta is done',
|
|
244
|
+
'ta.composer.followUpPlaceholder': 'Queue a message for when Ta is done; {mod}Enter sends now',
|
|
234
245
|
'ta.chat.replyingFor': '{names} · answering',
|
|
235
246
|
'ta.chats.busy': 'Conversations going on',
|
|
236
247
|
'ta.chat.tagOpen': 'What this means, and how to change it',
|
|
@@ -23,6 +23,9 @@ export declare const COMMON_EN: {
|
|
|
23
23
|
'ta.markdown.exitFullscreen': string;
|
|
24
24
|
'ta.markdown.enlarge': string;
|
|
25
25
|
'ta.images.expand': string;
|
|
26
|
+
'ta.images.original': string;
|
|
27
|
+
'ta.images.originalLoading': string;
|
|
28
|
+
'ta.images.originalFailed': string;
|
|
26
29
|
'ta.images.collapse': string;
|
|
27
30
|
'ta.zoom.in': string;
|
|
28
31
|
'ta.zoom.out': string;
|
|
@@ -36,6 +39,7 @@ export declare const COMMON_EN: {
|
|
|
36
39
|
'ta.zoom.next': string;
|
|
37
40
|
'ta.zoom.failed': string;
|
|
38
41
|
'ta.markdown.missing': string;
|
|
42
|
+
'ta.markdown.elsewhere': string;
|
|
39
43
|
'ta.markdown.retry': string;
|
|
40
44
|
'ta.link.openFile': string;
|
|
41
45
|
'ta.link.openFolder': string;
|
|
@@ -26,6 +26,9 @@ exports.COMMON_EN = {
|
|
|
26
26
|
'ta.markdown.exitFullscreen': 'Exit full screen',
|
|
27
27
|
'ta.markdown.enlarge': 'View larger',
|
|
28
28
|
'ta.images.expand': 'Show {count}',
|
|
29
|
+
'ta.images.original': 'View original {size}',
|
|
30
|
+
'ta.images.originalLoading': 'Loading the original',
|
|
31
|
+
'ta.images.originalFailed': 'The original cannot come now: try again later',
|
|
29
32
|
'ta.images.collapse': 'Fold',
|
|
30
33
|
'ta.zoom.in': 'Zoom in',
|
|
31
34
|
'ta.zoom.out': 'Zoom out',
|
|
@@ -39,6 +42,7 @@ exports.COMMON_EN = {
|
|
|
39
42
|
'ta.zoom.next': 'Next picture (→)',
|
|
40
43
|
'ta.zoom.failed': 'Cannot show this picture',
|
|
41
44
|
'ta.markdown.missing': 'Cannot show {name}',
|
|
45
|
+
'ta.markdown.elsewhere': '{name} is on their computer and did not come',
|
|
42
46
|
'ta.markdown.retry': 'Tap to try again',
|
|
43
47
|
// Links of replies
|
|
44
48
|
'ta.link.openFile': 'Click to open',
|
|
@@ -155,6 +155,11 @@ export declare const SERVICE_EN: {
|
|
|
155
155
|
'ta.cloud.codeTitle': string;
|
|
156
156
|
'ta.cloud.code': string;
|
|
157
157
|
'ta.cloud.pending': string;
|
|
158
|
+
'ta.cloud.failed.timeout': string;
|
|
159
|
+
'ta.cloud.failed.error': string;
|
|
160
|
+
'ta.cloud.renewed': string;
|
|
161
|
+
'ta.cloud.reconnecting': string;
|
|
162
|
+
'ta.cloud.signInAgain': string;
|
|
158
163
|
'ta.cloud.connecting': string;
|
|
159
164
|
'ta.cloud.retry': string;
|
|
160
165
|
'ta.cloud.device.title': string;
|
|
@@ -160,6 +160,11 @@ exports.SERVICE_EN = {
|
|
|
160
160
|
'ta.cloud.codeTitle': 'Finish in the browser',
|
|
161
161
|
'ta.cloud.code': 'Check the browser shows the same code, and sign in there. Ta connects here once you have.',
|
|
162
162
|
'ta.cloud.pending': 'Waiting for you to sign in…',
|
|
163
|
+
'ta.cloud.failed.timeout': 'The sign-in timed out. Try again.',
|
|
164
|
+
'ta.cloud.failed.error': "The sign-in didn't go through. Try again.",
|
|
165
|
+
'ta.cloud.renewed': 'This sign-in waited too long and expired. Sign in again below.',
|
|
166
|
+
'ta.cloud.reconnecting': 'Reconnecting to Ta in the cloud…',
|
|
167
|
+
'ta.cloud.signInAgain': 'Sign in again',
|
|
163
168
|
'ta.cloud.connecting': 'Connecting to {host}…',
|
|
164
169
|
'ta.cloud.retry': 'Try again',
|
|
165
170
|
'ta.cloud.device.title': 'Let a device sign in',
|
|
@@ -213,6 +213,11 @@ export declare const SETTINGS_EN: {
|
|
|
213
213
|
'ta.setting.transport': string;
|
|
214
214
|
'ta.setting.transport.hint': string;
|
|
215
215
|
'ta.setting.transport.auto': string;
|
|
216
|
+
'ta.settings.sendWhileWorking': string;
|
|
217
|
+
'ta.settings.sendWhileWorkingHint': string;
|
|
218
|
+
'ta.settings.sendWhileWorking.steer': string;
|
|
219
|
+
'ta.settings.sendWhileWorking.followUp': string;
|
|
220
|
+
'ta.settings.sendWhileWorking.interrupt': string;
|
|
216
221
|
'ta.setting.steeringMode': string;
|
|
217
222
|
'ta.setting.steeringMode.hint': string;
|
|
218
223
|
'ta.setting.steeringMode.one-at-a-time': string;
|
|
@@ -277,6 +282,7 @@ export declare const SETTINGS_EN: {
|
|
|
277
282
|
'ta.shortcut.send': string;
|
|
278
283
|
'ta.shortcut.newline': string;
|
|
279
284
|
'ta.shortcut.followUp': string;
|
|
285
|
+
'ta.shortcut.sendNow': string;
|
|
280
286
|
'ta.shortcut.stop': string;
|
|
281
287
|
'ta.shortcut.commands': string;
|
|
282
288
|
'ta.shortcut.files': string;
|
|
@@ -216,12 +216,17 @@ exports.SETTINGS_EN = {
|
|
|
216
216
|
'ta.setting.transport': 'Transport',
|
|
217
217
|
'ta.setting.transport.hint': 'How Ta reaches a provider that offers more than one way.',
|
|
218
218
|
'ta.setting.transport.auto': 'Auto',
|
|
219
|
+
'ta.settings.sendWhileWorking': 'Sending while Ta works',
|
|
220
|
+
'ta.settings.sendWhileWorkingHint': 'What Enter and the send button do while Ta works, on this device. {alt}Enter and {mod}Enter do another for once.',
|
|
221
|
+
'ta.settings.sendWhileWorking.steer': 'Steer (recommended)',
|
|
222
|
+
'ta.settings.sendWhileWorking.followUp': 'Queue',
|
|
223
|
+
'ta.settings.sendWhileWorking.interrupt': 'Send now',
|
|
219
224
|
'ta.setting.steeringMode': 'Steering messages',
|
|
220
|
-
'ta.setting.steeringMode.hint': '
|
|
225
|
+
'ta.setting.steeringMode.hint': 'Ta reads them once its tools of now are done: several one at a time, or all together.',
|
|
221
226
|
'ta.setting.steeringMode.one-at-a-time': 'One at a time',
|
|
222
227
|
'ta.setting.steeringMode.all': 'All together',
|
|
223
228
|
'ta.setting.followUpMode': 'Queued messages',
|
|
224
|
-
'ta.setting.followUpMode.hint': '
|
|
229
|
+
'ta.setting.followUpMode.hint': 'They go when the run ends: several one at a time, or all together.',
|
|
225
230
|
'ta.setting.followUpMode.one-at-a-time': 'One at a time',
|
|
226
231
|
'ta.setting.followUpMode.all': 'All together',
|
|
227
232
|
'ta.setting.context.renewAt': 'Renew the context at',
|
|
@@ -280,6 +285,7 @@ exports.SETTINGS_EN = {
|
|
|
280
285
|
'ta.shortcut.send': 'Send',
|
|
281
286
|
'ta.shortcut.newline': 'New line',
|
|
282
287
|
'ta.shortcut.followUp': 'Queue a message while Ta works',
|
|
288
|
+
'ta.shortcut.sendNow': 'Send now: stop Ta and handle this at once',
|
|
283
289
|
'ta.shortcut.stop': 'Stop Ta',
|
|
284
290
|
'ta.shortcut.commands': 'Commands and skills',
|
|
285
291
|
'ta.shortcut.files': 'Mention a file',
|
|
@@ -80,6 +80,8 @@ exports.ASSISTANT_JA = {
|
|
|
80
80
|
'ta.task.running': '進行中',
|
|
81
81
|
'ta.task.done': '完了',
|
|
82
82
|
'ta.task.failed': '失敗',
|
|
83
|
+
'ta.task.deadEndFiltered': '未完了:応答がモデルサービスのコンテンツフィルターで止められました(自動で一度再試行済み)',
|
|
84
|
+
'ta.task.deadEndEmpty': '未完了:モデルが何も出力せずに終了しました(自動で一度再試行済み)',
|
|
83
85
|
'ta.task.verdictPass': 'チェック合格',
|
|
84
86
|
'ta.task.verdictFail': 'チェック不合格',
|
|
85
87
|
'ta.task.branch': 'ブランチ {branch}',
|