@celljs/ta-web 4.42.0 → 4.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +1 -1
- package/README.md +1 -1
- package/esm/browser/apps/web-apps.d.ts +4 -0
- package/esm/browser/apps/web-apps.js +14 -3
- package/esm/browser/assistant/ta-hearing.d.ts +85 -0
- package/esm/browser/assistant/ta-hearing.js +272 -0
- package/esm/browser/components/auth-view.js +1 -1
- package/esm/browser/components/board.js +9 -1
- package/esm/browser/components/clipboard-link-host.d.ts +2 -0
- package/esm/browser/components/clipboard-link-host.js +27 -0
- package/esm/browser/components/cloud-network.js +1 -1
- package/esm/browser/components/cloud-sign-in-view.d.ts +1 -1
- package/esm/browser/components/custom-provider-advanced.js +8 -8
- package/esm/browser/components/custom-provider-view.js +12 -12
- package/esm/browser/components/empty-state.d.ts +2 -1
- package/esm/browser/components/empty-state.js +6 -2
- package/esm/browser/components/folder-picker.js +2 -2
- package/esm/browser/components/gallery.js +8 -9
- package/esm/browser/components/hearing-host.d.ts +5 -0
- package/esm/browser/components/hearing-host.js +58 -0
- package/esm/browser/components/host-view.d.ts +1 -1
- package/esm/browser/components/link-dialog.js +4 -0
- package/esm/browser/components/loading.d.ts +3 -2
- package/esm/browser/components/loading.js +7 -3
- package/esm/browser/components/markdown.d.ts +3 -1
- package/esm/browser/components/markdown.js +10 -5
- package/esm/browser/components/media.d.ts +10 -4
- package/esm/browser/components/media.js +60 -14
- package/esm/browser/components/people-picker.d.ts +17 -0
- package/esm/browser/components/people-picker.js +129 -0
- package/esm/browser/components/relay-view.js +1 -1
- package/esm/browser/components/settings-parts.js +2 -0
- package/esm/browser/components/share-dialog.d.ts +2 -2
- package/esm/browser/components/share-dialog.js +7 -4
- package/esm/browser/components/share-friends.js +3 -10
- package/esm/browser/components/share-item-sheet.d.ts +12 -0
- package/esm/browser/components/share-item-sheet.js +39 -0
- package/esm/browser/components/share-sheet.d.ts +9 -2
- package/esm/browser/components/share-sheet.js +5 -4
- package/esm/browser/components/sign-in-setup.js +4 -4
- package/esm/browser/components/trusted-domains.js +1 -1
- package/esm/browser/components/view-room.d.ts +25 -0
- package/esm/browser/components/view-room.js +136 -0
- package/esm/browser/components/voice-services.js +6 -6
- package/esm/browser/device/device-protocol.d.ts +9 -6
- package/esm/browser/device/device-protocol.js +7 -4
- package/esm/browser/device/launch-screen.d.ts +11 -1
- package/esm/browser/device/launch-screen.js +22 -4
- package/esm/browser/extension/share-sheet-compat.d.ts +2 -0
- package/esm/browser/extension/share-sheet-compat.js +12 -2
- package/esm/browser/extension/web-api-code.d.ts +11 -0
- package/esm/browser/extension/web-api-components.d.ts +8 -1
- package/esm/browser/extension/web-api-contributions.d.ts +30 -1
- package/esm/browser/extension/web-api-desktop.d.ts +2 -1
- package/esm/browser/extension/web-api-file-views.d.ts +38 -0
- package/esm/browser/extension/web-api-file-views.js +2 -0
- package/esm/browser/extension/web-api-host.d.ts +47 -0
- package/esm/browser/extension/web-api-host.js +3 -0
- package/esm/browser/extension/web-api-menus.d.ts +46 -0
- package/esm/browser/extension/web-api-partners.d.ts +58 -1
- package/esm/browser/extension/web-api-spec.js +7 -0
- package/esm/browser/extension/web-extension-api.d.ts +10 -10
- package/esm/browser/extension/web-extension-context.d.ts +2 -8
- package/esm/browser/extension/web-extension-context.js +14 -39
- package/esm/browser/extension/web-extension-marks.d.ts +10 -0
- package/esm/browser/extension/web-extension-marks.js +29 -0
- package/esm/browser/extension/web-extension-protocol.d.ts +11 -1
- package/esm/browser/extension/web-extension-protocol.js +3 -0
- package/esm/browser/extension/web-extension-run.d.ts +15 -2
- package/esm/browser/extension/web-extension-run.js +77 -0
- package/esm/browser/extension/web-extensions-running.d.ts +5 -1
- package/esm/browser/extension/web-extensions-running.js +16 -0
- package/esm/browser/extension/web-extensions.d.ts +2 -1
- package/esm/browser/extension/web-extensions.js +3 -0
- package/esm/browser/extension/web-home.js +3 -1
- package/esm/browser/extension/web-host-values.d.ts +66 -0
- package/esm/browser/extension/web-host-values.js +191 -0
- package/esm/browser/extension/web-hosts.d.ts +7 -2
- package/esm/browser/extension/web-hosts.js +16 -4
- package/esm/browser/extension/web-share-ui.d.ts +7 -0
- package/esm/browser/extension/web-share-ui.js +15 -0
- package/esm/browser/extension/web-share.d.ts +18 -0
- package/esm/browser/extension/web-share.js +42 -0
- package/esm/browser/i18n/en/chat.d.ts +10 -0
- package/esm/browser/i18n/en/chat.js +10 -0
- package/esm/browser/i18n/en/common.d.ts +18 -0
- package/esm/browser/i18n/en/common.js +18 -0
- package/esm/browser/i18n/en/discover.d.ts +7 -0
- package/esm/browser/i18n/en/discover.js +7 -0
- package/esm/browser/i18n/en/settings.d.ts +2 -0
- package/esm/browser/i18n/en/settings.js +2 -0
- package/esm/browser/i18n/ja/chat.js +10 -0
- package/esm/browser/i18n/ja/common.js +18 -0
- package/esm/browser/i18n/ja/discover.js +7 -0
- package/esm/browser/i18n/ja/settings.js +2 -0
- package/esm/browser/i18n/locales.d.ts +38 -1
- package/esm/browser/i18n/messages.d.ts +37 -0
- package/esm/browser/i18n/zh/chat.js +10 -0
- package/esm/browser/i18n/zh/common.js +18 -0
- package/esm/browser/i18n/zh/discover.js +7 -0
- package/esm/browser/i18n/zh/settings.js +2 -0
- package/esm/browser/i18n/zh-tw/chat.js +10 -0
- package/esm/browser/i18n/zh-tw/common.js +18 -0
- package/esm/browser/i18n/zh-tw/discover.js +7 -0
- package/esm/browser/i18n/zh-tw/settings.js +2 -0
- package/esm/browser/launch-art/art-palette.d.ts +41 -0
- package/esm/browser/launch-art/art-palette.js +72 -0
- package/esm/browser/launch-art/cyclic-automaton.d.ts +45 -0
- package/esm/browser/launch-art/cyclic-automaton.js +176 -0
- package/esm/browser/launch-art/fractal-tree.d.ts +43 -0
- package/esm/browser/launch-art/fractal-tree.js +48 -0
- package/esm/browser/launch-art/launch-art.d.ts +98 -0
- package/esm/browser/launch-art/launch-art.js +420 -0
- package/esm/browser/launch-art/launch-sky.d.ts +66 -0
- package/esm/browser/launch-art/launch-sky.js +153 -0
- package/esm/browser/links/clipboard-links.d.ts +89 -0
- package/esm/browser/links/clipboard-links.js +303 -0
- package/esm/browser/links/link-text.d.ts +29 -0
- package/esm/browser/links/link-text.js +97 -0
- package/esm/browser/links/links-protocol.d.ts +12 -1
- package/esm/browser/links/links.d.ts +8 -2
- package/esm/browser/links/links.js +33 -3
- package/esm/browser/markdown/code-renderers.d.ts +4 -0
- package/esm/browser/markdown/code-renderers.js +4 -0
- package/esm/browser/partners/group-picker.js +23 -29
- package/esm/browser/sandbox/sandbox-runtime-code.js +1 -1
- package/esm/browser/sandbox/work/work-senses.js +1 -1
- package/esm/browser/settings/settings-protocol.d.ts +2 -0
- package/esm/browser/settings/settings-protocol.js +2 -0
- package/esm/browser/style/base.d.ts +1 -1
- package/esm/browser/style/base.js +10 -6
- package/esm/browser/style/chat-list.d.ts +1 -1
- package/esm/browser/style/chat-list.js +28 -15
- package/esm/browser/style/conversation-column.d.ts +1 -1
- package/esm/browser/style/conversation.d.ts +1 -1
- package/esm/browser/style/conversation.js +2 -2
- package/esm/browser/style/dialogs.d.ts +1 -1
- package/esm/browser/style/dialogs.js +2 -5
- package/esm/browser/style/forms.d.ts +5 -0
- package/esm/browser/style/forms.js +65 -0
- package/esm/browser/style/layout.d.ts +1 -1
- package/esm/browser/style/pages.d.ts +1 -1
- package/esm/browser/style/pages.js +14 -24
- package/esm/browser/style/phone.d.ts +1 -1
- package/esm/browser/style/shared.d.ts +1 -1
- package/esm/browser/style/shell.d.ts +1 -1
- package/esm/browser/style/shell.js +1 -6
- package/esm/browser/style/surfaces.d.ts +1 -1
- package/esm/browser/style/surfaces.js +0 -6
- package/esm/browser/style/tasks.d.ts +1 -1
- package/esm/browser/style.js +2 -0
- package/esm/browser/util/voice.d.ts +18 -0
- package/esm/browser/util/voice.js +111 -3
- package/esm/browser/workbench-protocol.d.ts +2 -0
- package/esm/browser/workbench-services.d.ts +2 -0
- package/esm/browser/workbench-services.js +5 -0
- package/esm/browser/workbench.js +5 -0
- package/lib/browser/apps/web-apps.d.ts +4 -0
- package/lib/browser/apps/web-apps.js +14 -3
- package/lib/browser/assistant/ta-hearing.d.ts +86 -0
- package/lib/browser/assistant/ta-hearing.js +277 -0
- package/lib/browser/components/auth-view.js +1 -1
- package/lib/browser/components/board.js +9 -1
- package/lib/browser/components/clipboard-link-host.d.ts +3 -0
- package/lib/browser/components/clipboard-link-host.js +63 -0
- package/lib/browser/components/cloud-network.js +1 -1
- package/lib/browser/components/cloud-sign-in-view.d.ts +1 -1
- package/lib/browser/components/custom-provider-advanced.js +8 -8
- package/lib/browser/components/custom-provider-view.js +12 -12
- package/lib/browser/components/empty-state.d.ts +2 -1
- package/lib/browser/components/empty-state.js +6 -2
- package/lib/browser/components/folder-picker.js +2 -2
- package/lib/browser/components/gallery.js +7 -8
- package/lib/browser/components/hearing-host.d.ts +6 -0
- package/lib/browser/components/hearing-host.js +94 -0
- package/lib/browser/components/host-view.d.ts +1 -1
- package/lib/browser/components/link-dialog.js +4 -0
- package/lib/browser/components/loading.d.ts +3 -2
- package/lib/browser/components/loading.js +7 -3
- package/lib/browser/components/markdown.d.ts +3 -1
- package/lib/browser/components/markdown.js +9 -4
- package/lib/browser/components/media.d.ts +10 -4
- package/lib/browser/components/media.js +61 -14
- package/lib/browser/components/people-picker.d.ts +18 -0
- package/lib/browser/components/people-picker.js +166 -0
- package/lib/browser/components/relay-view.js +1 -1
- package/lib/browser/components/settings-parts.js +2 -0
- package/lib/browser/components/share-dialog.d.ts +2 -2
- package/lib/browser/components/share-dialog.js +7 -4
- package/lib/browser/components/share-friends.js +3 -10
- package/lib/browser/components/share-item-sheet.d.ts +13 -0
- package/lib/browser/components/share-item-sheet.js +75 -0
- package/lib/browser/components/share-sheet.d.ts +9 -2
- package/lib/browser/components/share-sheet.js +5 -3
- package/lib/browser/components/sign-in-setup.js +4 -4
- package/lib/browser/components/trusted-domains.js +1 -1
- package/lib/browser/components/view-room.d.ts +26 -0
- package/lib/browser/components/view-room.js +173 -0
- package/lib/browser/components/voice-services.js +6 -6
- package/lib/browser/device/device-protocol.d.ts +9 -6
- package/lib/browser/device/device-protocol.js +7 -4
- package/lib/browser/device/launch-screen.d.ts +11 -1
- package/lib/browser/device/launch-screen.js +22 -4
- package/lib/browser/extension/share-sheet-compat.d.ts +2 -0
- package/lib/browser/extension/share-sheet-compat.js +13 -2
- package/lib/browser/extension/web-api-code.d.ts +11 -0
- package/lib/browser/extension/web-api-components.d.ts +8 -1
- package/lib/browser/extension/web-api-contributions.d.ts +30 -1
- package/lib/browser/extension/web-api-desktop.d.ts +2 -1
- package/lib/browser/extension/web-api-file-views.d.ts +39 -0
- package/lib/browser/extension/web-api-file-views.js +3 -0
- package/lib/browser/extension/web-api-host.d.ts +48 -0
- package/lib/browser/extension/web-api-host.js +4 -0
- package/lib/browser/extension/web-api-menus.d.ts +46 -0
- package/lib/browser/extension/web-api-partners.d.ts +58 -1
- package/lib/browser/extension/web-api-spec.js +7 -0
- package/lib/browser/extension/web-extension-api.d.ts +10 -10
- package/lib/browser/extension/web-extension-context.d.ts +2 -8
- package/lib/browser/extension/web-extension-context.js +14 -39
- package/lib/browser/extension/web-extension-marks.d.ts +11 -0
- package/lib/browser/extension/web-extension-marks.js +65 -0
- package/lib/browser/extension/web-extension-protocol.d.ts +11 -1
- package/lib/browser/extension/web-extension-protocol.js +3 -0
- package/lib/browser/extension/web-extension-run.d.ts +15 -2
- package/lib/browser/extension/web-extension-run.js +77 -0
- package/lib/browser/extension/web-extensions-running.d.ts +5 -1
- package/lib/browser/extension/web-extensions-running.js +16 -0
- package/lib/browser/extension/web-extensions.d.ts +2 -1
- package/lib/browser/extension/web-extensions.js +3 -0
- package/lib/browser/extension/web-home.js +3 -1
- package/lib/browser/extension/web-host-values.d.ts +67 -0
- package/lib/browser/extension/web-host-values.js +229 -0
- package/lib/browser/extension/web-hosts.d.ts +7 -2
- package/lib/browser/extension/web-hosts.js +16 -4
- package/lib/browser/extension/web-share-ui.d.ts +8 -0
- package/lib/browser/extension/web-share-ui.js +51 -0
- package/lib/browser/extension/web-share.d.ts +19 -0
- package/lib/browser/extension/web-share.js +45 -0
- package/lib/browser/i18n/en/chat.d.ts +10 -0
- package/lib/browser/i18n/en/chat.js +10 -0
- package/lib/browser/i18n/en/common.d.ts +18 -0
- package/lib/browser/i18n/en/common.js +18 -0
- package/lib/browser/i18n/en/discover.d.ts +7 -0
- package/lib/browser/i18n/en/discover.js +7 -0
- package/lib/browser/i18n/en/settings.d.ts +2 -0
- package/lib/browser/i18n/en/settings.js +2 -0
- package/lib/browser/i18n/ja/chat.js +10 -0
- package/lib/browser/i18n/ja/common.js +18 -0
- package/lib/browser/i18n/ja/discover.js +7 -0
- package/lib/browser/i18n/ja/settings.js +2 -0
- package/lib/browser/i18n/locales.d.ts +38 -1
- package/lib/browser/i18n/messages.d.ts +37 -0
- package/lib/browser/i18n/zh/chat.js +10 -0
- package/lib/browser/i18n/zh/common.js +18 -0
- package/lib/browser/i18n/zh/discover.js +7 -0
- package/lib/browser/i18n/zh/settings.js +2 -0
- package/lib/browser/i18n/zh-tw/chat.js +10 -0
- package/lib/browser/i18n/zh-tw/common.js +18 -0
- package/lib/browser/i18n/zh-tw/discover.js +7 -0
- package/lib/browser/i18n/zh-tw/settings.js +2 -0
- package/lib/browser/launch-art/art-palette.d.ts +42 -0
- package/lib/browser/launch-art/art-palette.js +76 -0
- package/lib/browser/launch-art/cyclic-automaton.d.ts +46 -0
- package/lib/browser/launch-art/cyclic-automaton.js +180 -0
- package/lib/browser/launch-art/fractal-tree.d.ts +44 -0
- package/lib/browser/launch-art/fractal-tree.js +52 -0
- package/lib/browser/launch-art/launch-art.d.ts +99 -0
- package/lib/browser/launch-art/launch-art.js +424 -0
- package/lib/browser/launch-art/launch-sky.d.ts +67 -0
- package/lib/browser/launch-art/launch-sky.js +157 -0
- package/lib/browser/links/clipboard-links.d.ts +90 -0
- package/lib/browser/links/clipboard-links.js +308 -0
- package/lib/browser/links/link-text.d.ts +30 -0
- package/lib/browser/links/link-text.js +100 -0
- package/lib/browser/links/links-protocol.d.ts +12 -1
- package/lib/browser/links/links.d.ts +8 -2
- package/lib/browser/links/links.js +33 -3
- package/lib/browser/markdown/code-renderers.d.ts +4 -0
- package/lib/browser/markdown/code-renderers.js +5 -1
- package/lib/browser/partners/group-picker.js +23 -29
- package/lib/browser/sandbox/sandbox-runtime-code.js +1 -1
- package/lib/browser/sandbox/work/work-senses.js +1 -1
- package/lib/browser/settings/settings-protocol.d.ts +2 -0
- package/lib/browser/settings/settings-protocol.js +2 -0
- package/lib/browser/style/base.d.ts +1 -1
- package/lib/browser/style/base.js +10 -6
- package/lib/browser/style/chat-list.d.ts +1 -1
- package/lib/browser/style/chat-list.js +28 -15
- package/lib/browser/style/conversation-column.d.ts +1 -1
- package/lib/browser/style/conversation.d.ts +1 -1
- package/lib/browser/style/conversation.js +2 -2
- package/lib/browser/style/dialogs.d.ts +1 -1
- package/lib/browser/style/dialogs.js +2 -5
- package/lib/browser/style/forms.d.ts +6 -0
- package/lib/browser/style/forms.js +68 -0
- package/lib/browser/style/layout.d.ts +1 -1
- package/lib/browser/style/pages.d.ts +1 -1
- package/lib/browser/style/pages.js +14 -24
- package/lib/browser/style/phone.d.ts +1 -1
- package/lib/browser/style/shared.d.ts +1 -1
- package/lib/browser/style/shell.d.ts +1 -1
- package/lib/browser/style/shell.js +1 -6
- package/lib/browser/style/surfaces.d.ts +1 -1
- package/lib/browser/style/surfaces.js +0 -6
- package/lib/browser/style/tasks.d.ts +1 -1
- package/lib/browser/style.js +2 -0
- package/lib/browser/util/voice.d.ts +18 -0
- package/lib/browser/util/voice.js +111 -3
- package/lib/browser/workbench-protocol.d.ts +2 -0
- package/lib/browser/workbench-services.d.ts +2 -0
- package/lib/browser/workbench-services.js +5 -0
- package/lib/browser/workbench.js +5 -0
- package/package.json +8 -8
- package/public/launch.svg +3 -3
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { WebExtensionRunUtil } from './web-extension-run.js';
|
|
3
|
+
/**
|
|
4
|
+
* What the methods of one package's host answer, for `ui.useHost`: one read for all who show the same, again only as
|
|
5
|
+
* the host says it changed (TaExtensionHost.changed), the connection comes back or the page shows after a change it
|
|
6
|
+
* missed; the same snapshot until an answer differs.
|
|
7
|
+
*/
|
|
8
|
+
export class WebHostValues {
|
|
9
|
+
constructor(deps) {
|
|
10
|
+
this.deps = deps;
|
|
11
|
+
this.entries = new Map();
|
|
12
|
+
this.stops = [];
|
|
13
|
+
}
|
|
14
|
+
/** What a method with its params is kept by. */
|
|
15
|
+
static key(method, params = []) {
|
|
16
|
+
return `${method}\n${JSON.stringify(params)}`;
|
|
17
|
+
}
|
|
18
|
+
/** The snapshot of a method with its params (WebHostValues.key), the same object until it changes. */
|
|
19
|
+
get(key) {
|
|
20
|
+
return this.entry(key).snapshot;
|
|
21
|
+
}
|
|
22
|
+
/** Shows it: read now, and again as it changes, until the function returned. */
|
|
23
|
+
subscribe(key, options, listener) {
|
|
24
|
+
var _a;
|
|
25
|
+
const entry = this.entry(key);
|
|
26
|
+
entry.topics = new Set((_a = options.topics) !== null && _a !== void 0 ? _a : [entry.method]);
|
|
27
|
+
entry.every = options.every;
|
|
28
|
+
entry.listeners.add(listener);
|
|
29
|
+
if (entry.listeners.size === 1) {
|
|
30
|
+
this.listen();
|
|
31
|
+
void this.read(entry);
|
|
32
|
+
if (entry.every) {
|
|
33
|
+
entry.timer = setInterval(() => !this.hidden() && void this.read(entry), entry.every);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return () => {
|
|
37
|
+
entry.listeners.delete(listener);
|
|
38
|
+
if (entry.listeners.size === 0) {
|
|
39
|
+
clearInterval(entry.timer);
|
|
40
|
+
entry.timer = undefined;
|
|
41
|
+
if (![...this.entries.values()].some(each => each.listeners.size)) {
|
|
42
|
+
this.dispose();
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
/** Heard of the host: what reads one of the topics is read again, or marked to be once the page shows. */
|
|
48
|
+
changed(topics) {
|
|
49
|
+
for (const entry of this.shown()) {
|
|
50
|
+
if (topics.some(topic => entry.topics.has(topic))) {
|
|
51
|
+
if (this.hidden()) {
|
|
52
|
+
entry.stale = true;
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
void this.read(entry);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
dispose() {
|
|
61
|
+
for (const stop of this.stops) {
|
|
62
|
+
stop();
|
|
63
|
+
}
|
|
64
|
+
this.stops = [];
|
|
65
|
+
}
|
|
66
|
+
entry(key) {
|
|
67
|
+
let entry = this.entries.get(key);
|
|
68
|
+
if (!entry) {
|
|
69
|
+
const at = key.indexOf('\n');
|
|
70
|
+
const method = key.slice(0, at);
|
|
71
|
+
const params = JSON.parse(key.slice(at + 1));
|
|
72
|
+
const created = {
|
|
73
|
+
method,
|
|
74
|
+
params,
|
|
75
|
+
topics: new Set([method]),
|
|
76
|
+
listeners: new Set(),
|
|
77
|
+
snapshot: { loading: true, read: () => this.read(created) },
|
|
78
|
+
};
|
|
79
|
+
this.entries.set(key, created);
|
|
80
|
+
entry = created;
|
|
81
|
+
}
|
|
82
|
+
return entry;
|
|
83
|
+
}
|
|
84
|
+
listen() {
|
|
85
|
+
var _a, _b;
|
|
86
|
+
if (this.stops.length) {
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
this.stops.push(this.deps.onChanged(topics => this.changed(topics)));
|
|
90
|
+
this.stops.push(this.deps.onReconnect(() => this.readShown(false)));
|
|
91
|
+
const shows = (_b = (_a = this.deps).onShown) === null || _b === void 0 ? void 0 : _b.call(_a, () => this.readShown(true));
|
|
92
|
+
if (shows) {
|
|
93
|
+
this.stops.push(shows);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
/** Reads again what shows; only what changed while hidden with `stale`. */
|
|
97
|
+
readShown(stale) {
|
|
98
|
+
for (const entry of this.shown()) {
|
|
99
|
+
if (!stale || entry.stale) {
|
|
100
|
+
void this.read(entry);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
shown() {
|
|
105
|
+
return [...this.entries.values()].filter(entry => entry.listeners.size > 0);
|
|
106
|
+
}
|
|
107
|
+
hidden() {
|
|
108
|
+
var _a, _b;
|
|
109
|
+
var _c;
|
|
110
|
+
return (_c = (_b = (_a = this.deps).hidden) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : false;
|
|
111
|
+
}
|
|
112
|
+
read(entry) {
|
|
113
|
+
if (entry.reading) {
|
|
114
|
+
entry.again = true;
|
|
115
|
+
return entry.reading;
|
|
116
|
+
}
|
|
117
|
+
entry.stale = false;
|
|
118
|
+
entry.reading = (async () => {
|
|
119
|
+
do {
|
|
120
|
+
entry.again = false;
|
|
121
|
+
try {
|
|
122
|
+
const value = await this.deps.call(entry.method, entry.params);
|
|
123
|
+
const json = JSON.stringify(value !== null && value !== void 0 ? value : null);
|
|
124
|
+
if (json !== entry.json || entry.snapshot.loading || entry.snapshot.error !== undefined) {
|
|
125
|
+
entry.json = json;
|
|
126
|
+
this.show(entry, { value: value !== null && value !== void 0 ? value : undefined, loading: false, read: entry.snapshot.read });
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
catch (failure) {
|
|
130
|
+
const error = failure instanceof Error ? failure.message : String(failure);
|
|
131
|
+
if (error !== entry.snapshot.error || entry.snapshot.loading) {
|
|
132
|
+
this.show(entry, { value: entry.snapshot.value, error, loading: false, read: entry.snapshot.read });
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
} while (entry.again);
|
|
136
|
+
})().finally(() => {
|
|
137
|
+
entry.reading = undefined;
|
|
138
|
+
});
|
|
139
|
+
return entry.reading;
|
|
140
|
+
}
|
|
141
|
+
show(entry, snapshot) {
|
|
142
|
+
entry.snapshot = snapshot;
|
|
143
|
+
for (const listener of [...entry.listeners]) {
|
|
144
|
+
listener();
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
/** The values of each extension that runs, made as it first asks. */
|
|
149
|
+
const OF_RUN = new WeakMap();
|
|
150
|
+
/** What `ui.useHost` and `onHostChanged` of an extension read: its package's host, on the connection of the page. */
|
|
151
|
+
export var WebHostValuesUtil;
|
|
152
|
+
(function (WebHostValuesUtil) {
|
|
153
|
+
function of(run, workbench) {
|
|
154
|
+
let values = OF_RUN.get(run);
|
|
155
|
+
if (!values) {
|
|
156
|
+
const { name } = run.loaded;
|
|
157
|
+
const visible = typeof document !== 'undefined';
|
|
158
|
+
values = new WebHostValues({
|
|
159
|
+
call: (method, params) => run.stopped
|
|
160
|
+
? Promise.reject(new Error(`The web extension ${name} has stopped.`))
|
|
161
|
+
: workbench.packages.callPackageHost(name, method, [...params]),
|
|
162
|
+
onChanged: listener => WebExtensionRunUtil.track(run, () => workbench.onHostChanged((changed, topics) => changed === name && listener(topics))),
|
|
163
|
+
onReconnect: listener => WebExtensionRunUtil.track(run, () => workbench.onReconnect(listener)),
|
|
164
|
+
hidden: () => visible && document.visibilityState === 'hidden',
|
|
165
|
+
onShown: listener => {
|
|
166
|
+
if (!visible) {
|
|
167
|
+
return () => undefined;
|
|
168
|
+
}
|
|
169
|
+
const shown = () => document.visibilityState === 'visible' && listener();
|
|
170
|
+
document.addEventListener('visibilitychange', shown);
|
|
171
|
+
return () => document.removeEventListener('visibilitychange', shown);
|
|
172
|
+
},
|
|
173
|
+
});
|
|
174
|
+
OF_RUN.set(run, values);
|
|
175
|
+
}
|
|
176
|
+
return values;
|
|
177
|
+
}
|
|
178
|
+
WebHostValuesUtil.of = of;
|
|
179
|
+
})(WebHostValuesUtil || (WebHostValuesUtil = {}));
|
|
180
|
+
/** `ui.useHost` on the values of one extension. */
|
|
181
|
+
export function useHostValue(values, method, params = [], options = {}) {
|
|
182
|
+
var _a;
|
|
183
|
+
const key = WebHostValues.key(method, params);
|
|
184
|
+
// By their values, not the arrays of each render.
|
|
185
|
+
const topics = ((_a = options.topics) !== null && _a !== void 0 ? _a : [method]).join('\n');
|
|
186
|
+
const { every } = options;
|
|
187
|
+
const subscribe = React.useCallback((listener) => values.subscribe(key, { topics: topics.split('\n'), every }, listener), [values, key, topics, every]);
|
|
188
|
+
const get = React.useCallback(() => values.get(key), [values, key]);
|
|
189
|
+
return React.useSyncExternalStore(subscribe, get, get);
|
|
190
|
+
}
|
|
191
|
+
//# sourceMappingURL=web-host-values.js.map
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import type { SavedHost, TaWorkbench } from '../workbench-protocol.js';
|
|
2
2
|
import type { WebHost, WebHosts } from './web-api-hosts.js';
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* The computers of the device as extensions see them (WebExtensionAPI.hosts): never their ways in. Once the extension
|
|
5
|
+
* stopped, it keeps no computer and moves the page to none: what acts for the user fails (WebExtensionContext).
|
|
6
|
+
*/
|
|
4
7
|
export declare namespace WebHostsUtil {
|
|
5
|
-
function of(workbench: () => TaWorkbench
|
|
8
|
+
function of(workbench: () => TaWorkbench, extension?: {
|
|
9
|
+
readonly stopped: boolean;
|
|
10
|
+
}): WebHosts;
|
|
6
11
|
function hostOf(saved: SavedHost): WebHost;
|
|
7
12
|
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { HostUtil } from '../hosts.js';
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* The computers of the device as extensions see them (WebExtensionAPI.hosts): never their ways in. Once the extension
|
|
4
|
+
* stopped, it keeps no computer and moves the page to none: what acts for the user fails (WebExtensionContext).
|
|
5
|
+
*/
|
|
3
6
|
export var WebHostsUtil;
|
|
4
7
|
(function (WebHostsUtil) {
|
|
5
|
-
function of(workbench) {
|
|
8
|
+
function of(workbench, extension = { stopped: false }) {
|
|
6
9
|
return {
|
|
7
10
|
current: () => {
|
|
8
11
|
const { hosts, host } = workbench().state;
|
|
@@ -10,8 +13,17 @@ export var WebHostsUtil;
|
|
|
10
13
|
return saved && hostOf(saved);
|
|
11
14
|
},
|
|
12
15
|
list: () => workbench().state.hosts.map(hostOf),
|
|
13
|
-
keep: (link, name) =>
|
|
14
|
-
|
|
16
|
+
keep: (link, name) => {
|
|
17
|
+
if (extension.stopped) {
|
|
18
|
+
throw new Error('The web extension has stopped.');
|
|
19
|
+
}
|
|
20
|
+
return workbench().keepHost(link, name);
|
|
21
|
+
},
|
|
22
|
+
switchTo: id => {
|
|
23
|
+
if (!extension.stopped) {
|
|
24
|
+
workbench().switchTo(id);
|
|
25
|
+
}
|
|
26
|
+
},
|
|
15
27
|
};
|
|
16
28
|
}
|
|
17
29
|
WebHostsUtil.of = of;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { WebExtensionUI } from './web-extension-api.js';
|
|
2
|
+
import type { WebExtensionContextHost } from './web-extension-context.js';
|
|
3
|
+
/**
|
|
4
|
+
* What `ui` gives an extension to share with (docs/design/ta-links.md 4): the share sheet of a link, that of something
|
|
5
|
+
* (`share`, its tiles the ways to share), and handing an extension on. None of it does anything once it stopped.
|
|
6
|
+
*/
|
|
7
|
+
export declare function shareUI(host: Pick<WebExtensionContextHost, 'extensions' | 'notices' | 'workbench'>, stopped: () => boolean): Pick<WebExtensionUI, 'shareExtension' | 'share' | 'ShareSheet'>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ShareSheet } from '../components/share-sheet.js';
|
|
3
|
+
/**
|
|
4
|
+
* What `ui` gives an extension to share with (docs/design/ta-links.md 4): the share sheet of a link, that of something
|
|
5
|
+
* (`share`, its tiles the ways to share), and handing an extension on. None of it does anything once it stopped.
|
|
6
|
+
*/
|
|
7
|
+
export function shareUI(host, stopped) {
|
|
8
|
+
const sheet = (props) => React.createElement(ShareSheet, { ...props, notices: host.notices, rooms: host.workbench.rooms });
|
|
9
|
+
return {
|
|
10
|
+
shareExtension: target => !stopped() && host.extensions.share(target),
|
|
11
|
+
share: item => !stopped() && host.extensions.shareItem(item),
|
|
12
|
+
ShareSheet: sheet,
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=web-share-ui.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { WebCodeRef, WebFileRef, WebShareItem, WebShareWay } from './web-api-menus.js';
|
|
2
|
+
/**
|
|
3
|
+
* Sharing, one entry for all (docs/design/ta-links.md 4.2): the item a block or a file is, the ways that take it, and
|
|
4
|
+
* what the sheet says of it. The page adds the one Share under a block a renderer drew and in the menu of a file.
|
|
5
|
+
*/
|
|
6
|
+
export declare namespace WebShareUtil {
|
|
7
|
+
/** A block a renderer drew; none for one drawn as code. */
|
|
8
|
+
function ofBlock(block: WebCodeRef): WebShareItem | undefined;
|
|
9
|
+
/** A file; none for a folder. */
|
|
10
|
+
function ofFile(file: WebFileRef): WebShareItem | undefined;
|
|
11
|
+
/** The ways that take it, in their order. */
|
|
12
|
+
function ways(all: readonly WebShareWay[], item: WebShareItem): WebShareWay[];
|
|
13
|
+
/** What it is called: the title a work gives itself, the name of a file; '' for a block that says nothing. */
|
|
14
|
+
function name(item: WebShareItem): string;
|
|
15
|
+
/** The name of its icon (WEB_ICONS): that of the kind of work, a file's. */
|
|
16
|
+
function icon(item: WebShareItem): string;
|
|
17
|
+
function label(way: WebShareWay): string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { TA_WORK_BLOCKS, TaWorkTitle } from '@celljs/ta-protocol';
|
|
2
|
+
/**
|
|
3
|
+
* Sharing, one entry for all (docs/design/ta-links.md 4.2): the item a block or a file is, the ways that take it, and
|
|
4
|
+
* what the sheet says of it. The page adds the one Share under a block a renderer drew and in the menu of a file.
|
|
5
|
+
*/
|
|
6
|
+
export var WebShareUtil;
|
|
7
|
+
(function (WebShareUtil) {
|
|
8
|
+
/** A block a renderer drew; none for one drawn as code. */
|
|
9
|
+
function ofBlock(block) {
|
|
10
|
+
return block.drawn
|
|
11
|
+
? { kind: 'block', language: block.language, code: block.code, ...(block.conversation ? { conversation: block.conversation } : {}) }
|
|
12
|
+
: undefined;
|
|
13
|
+
}
|
|
14
|
+
WebShareUtil.ofBlock = ofBlock;
|
|
15
|
+
/** A file; none for a folder. */
|
|
16
|
+
function ofFile(file) {
|
|
17
|
+
return file.kind === 'file' ? { kind: 'file', file } : undefined;
|
|
18
|
+
}
|
|
19
|
+
WebShareUtil.ofFile = ofFile;
|
|
20
|
+
/** The ways that take it, in their order. */
|
|
21
|
+
function ways(all, item) {
|
|
22
|
+
return all.filter(way => way.accepts(item));
|
|
23
|
+
}
|
|
24
|
+
WebShareUtil.ways = ways;
|
|
25
|
+
/** What it is called: the title a work gives itself, the name of a file; '' for a block that says nothing. */
|
|
26
|
+
function name(item) {
|
|
27
|
+
var _a;
|
|
28
|
+
return item.kind === 'file' ? item.file.name : ((_a = TaWorkTitle.of(item.language, item.code)) !== null && _a !== void 0 ? _a : '');
|
|
29
|
+
}
|
|
30
|
+
WebShareUtil.name = name;
|
|
31
|
+
/** The name of its icon (WEB_ICONS): that of the kind of work, a file's. */
|
|
32
|
+
function icon(item) {
|
|
33
|
+
var _a;
|
|
34
|
+
return item.kind === 'file' ? 'FileText' : ((_a = TA_WORK_BLOCKS[item.language]) !== null && _a !== void 0 ? _a : 'Sparkles');
|
|
35
|
+
}
|
|
36
|
+
WebShareUtil.icon = icon;
|
|
37
|
+
function label(way) {
|
|
38
|
+
return typeof way.label === 'function' ? way.label() : way.label;
|
|
39
|
+
}
|
|
40
|
+
WebShareUtil.label = label;
|
|
41
|
+
})(WebShareUtil || (WebShareUtil = {}));
|
|
42
|
+
//# sourceMappingURL=web-share.js.map
|
|
@@ -165,6 +165,16 @@ export declare const CHAT_EN: {
|
|
|
165
165
|
'ta.composer.voiceDenied': string;
|
|
166
166
|
'ta.composer.voiceUnavailable': string;
|
|
167
167
|
'ta.composer.voiceFailed': string;
|
|
168
|
+
'ta.hear.offer': string;
|
|
169
|
+
'ta.hear.offerHint': string;
|
|
170
|
+
'ta.hear.turnOn': string;
|
|
171
|
+
'ta.hear.turnedOn': string;
|
|
172
|
+
'ta.hear.getting': string;
|
|
173
|
+
'ta.hear.failed': string;
|
|
174
|
+
'ta.hear.retry': string;
|
|
175
|
+
'ta.hear.unsupported': string;
|
|
176
|
+
'ta.hear.unavailable': string;
|
|
177
|
+
'ta.hear.unavailableHint': string;
|
|
168
178
|
'ta.talk.listening': string;
|
|
169
179
|
'ta.talk.edit': string;
|
|
170
180
|
'ta.talk.releaseSend': string;
|
|
@@ -165,6 +165,16 @@ export const CHAT_EN = {
|
|
|
165
165
|
'ta.composer.voiceDenied': 'Ta may not use the microphone or speech recognition. If they are allowed already, this browser may have no speech recognition: try Safari, Chrome or the Ta app.',
|
|
166
166
|
'ta.composer.voiceUnavailable': 'Speech recognition is not available in this browser (on an iPhone, turn on Siri & Dictation). Try Safari, Chrome or the Ta app.',
|
|
167
167
|
'ta.composer.voiceFailed': 'Speech recognition failed: {error}',
|
|
168
|
+
'ta.hear.offer': 'This device cannot recognize speech: your computer can write it down instead',
|
|
169
|
+
'ta.hear.offerHint': 'Downloads a model of about {size} to the computer; it needs only the microphone, and nothing goes online.',
|
|
170
|
+
'ta.hear.turnOn': 'Download and turn on',
|
|
171
|
+
'ta.hear.turnedOn': 'Downloading the speech model to your computer; speak again once it is ready',
|
|
172
|
+
'ta.hear.getting': 'Your computer is downloading the speech model ({percent}%); speak again once it is ready',
|
|
173
|
+
'ta.hear.failed': 'The speech recognition of your computer is not ready',
|
|
174
|
+
'ta.hear.retry': 'Try again',
|
|
175
|
+
'ta.hear.unsupported': "This device cannot recognize speech, nor can your computer run Ta's",
|
|
176
|
+
'ta.hear.unavailable': "This device cannot recognize speech, and Ta's speech recognition is off",
|
|
177
|
+
'ta.hear.unavailableHint': 'Turn on Real-time voice and Local models in Settings → Extensions.',
|
|
168
178
|
'ta.talk.listening': 'Listening…',
|
|
169
179
|
'ta.talk.edit': 'Edit',
|
|
170
180
|
'ta.talk.releaseSend': 'Release to send',
|
|
@@ -36,6 +36,7 @@ export declare const COMMON_EN: {
|
|
|
36
36
|
'ta.zoom.next': string;
|
|
37
37
|
'ta.zoom.failed': string;
|
|
38
38
|
'ta.markdown.missing': string;
|
|
39
|
+
'ta.markdown.retry': string;
|
|
39
40
|
'ta.link.openFile': string;
|
|
40
41
|
'ta.link.openFolder': string;
|
|
41
42
|
'ta.link.external': string;
|
|
@@ -46,6 +47,19 @@ export declare const COMMON_EN: {
|
|
|
46
47
|
'ta.link.trust': string;
|
|
47
48
|
'ta.link.trustHint': string;
|
|
48
49
|
'ta.link.copied': string;
|
|
50
|
+
'ta.link.kindPairing': string;
|
|
51
|
+
'ta.link.kindExtension': string;
|
|
52
|
+
'ta.clip.clipboardOne': string;
|
|
53
|
+
'ta.clip.pasteOne': string;
|
|
54
|
+
'ta.clip.clipboardFrom': string;
|
|
55
|
+
'ta.clip.pasteFrom': string;
|
|
56
|
+
'ta.clip.clipboardMany': string;
|
|
57
|
+
'ta.clip.pasteMany': string;
|
|
58
|
+
'ta.clip.pick': string;
|
|
59
|
+
'ta.clip.open': string;
|
|
60
|
+
'ta.clip.maybe': string;
|
|
61
|
+
'ta.clip.maybeDetail': string;
|
|
62
|
+
'ta.clip.none': string;
|
|
49
63
|
'ta.link.notFound': string;
|
|
50
64
|
'ta.terminal.openLink': string;
|
|
51
65
|
'ta.terminal.openLinkMac': string;
|
|
@@ -92,6 +106,10 @@ export declare const COMMON_EN: {
|
|
|
92
106
|
'ta.select.all': string;
|
|
93
107
|
'ta.select.count': string;
|
|
94
108
|
'ta.select.done': string;
|
|
109
|
+
'ta.people.search': string;
|
|
110
|
+
'ta.people.none': string;
|
|
111
|
+
'ta.people.noMatch': string;
|
|
112
|
+
'ta.people.leaveOut': string;
|
|
95
113
|
'ta.more': string;
|
|
96
114
|
'ta.host.title': string;
|
|
97
115
|
'ta.on': string;
|
|
@@ -36,6 +36,7 @@ export const COMMON_EN = {
|
|
|
36
36
|
'ta.zoom.next': 'Next picture (→)',
|
|
37
37
|
'ta.zoom.failed': 'Cannot show this picture',
|
|
38
38
|
'ta.markdown.missing': 'Cannot show {name}',
|
|
39
|
+
'ta.markdown.retry': 'Tap to try again',
|
|
39
40
|
// Links of replies
|
|
40
41
|
'ta.link.openFile': 'Click to open',
|
|
41
42
|
'ta.link.openFolder': 'Click to show in the explorer',
|
|
@@ -47,6 +48,19 @@ export const COMMON_EN = {
|
|
|
47
48
|
'ta.link.trust': 'Trust {host}',
|
|
48
49
|
'ta.link.trustHint': 'Pages of this host open without asking from now on; the list is in Settings.',
|
|
49
50
|
'ta.link.copied': 'Link copied',
|
|
51
|
+
'ta.link.kindPairing': 'Link to connect a computer',
|
|
52
|
+
'ta.link.kindExtension': 'Extension of Ta',
|
|
53
|
+
'ta.clip.clipboardOne': 'In the clipboard: {kind}',
|
|
54
|
+
'ta.clip.pasteOne': 'You pasted a link of Ta: {kind}',
|
|
55
|
+
'ta.clip.clipboardFrom': 'From the clipboard · {kind}',
|
|
56
|
+
'ta.clip.pasteFrom': 'Pasted · {kind}',
|
|
57
|
+
'ta.clip.clipboardMany': '{count} links of Ta in the clipboard',
|
|
58
|
+
'ta.clip.pasteMany': '{count} links of Ta in what you pasted',
|
|
59
|
+
'ta.clip.pick': 'Tap one to open it',
|
|
60
|
+
'ta.clip.open': 'Open',
|
|
61
|
+
'ta.clip.maybe': 'There is a link in the clipboard',
|
|
62
|
+
'ta.clip.maybeDetail': 'An invite or a share of Ta opens with Open',
|
|
63
|
+
'ta.clip.none': 'No link of Ta in the clipboard',
|
|
50
64
|
'ta.link.notFound': '{path} is not there.',
|
|
51
65
|
'ta.terminal.openLink': 'Ctrl + click to open',
|
|
52
66
|
'ta.terminal.openLinkMac': 'Cmd + click to open',
|
|
@@ -93,6 +107,10 @@ export const COMMON_EN = {
|
|
|
93
107
|
'ta.select.all': 'Select all',
|
|
94
108
|
'ta.select.count': '{count} selected',
|
|
95
109
|
'ta.select.done': 'Done',
|
|
110
|
+
'ta.people.search': 'Search',
|
|
111
|
+
'ta.people.none': 'Nobody to pick yet',
|
|
112
|
+
'ta.people.noMatch': 'No one found',
|
|
113
|
+
'ta.people.leaveOut': 'Leave out {name}',
|
|
96
114
|
'ta.more': 'More',
|
|
97
115
|
'ta.host.title': 'On the remote host {host}',
|
|
98
116
|
'ta.on': 'On',
|
|
@@ -52,6 +52,13 @@ export declare const DISCOVER_EN: {
|
|
|
52
52
|
'ta.share.copyPassword': string;
|
|
53
53
|
'ta.share.cannotMake': string;
|
|
54
54
|
'ta.share.extensionGets': string;
|
|
55
|
+
'ta.share.extensionInvite': string;
|
|
56
|
+
'ta.share.share': string;
|
|
57
|
+
'ta.share.titled': string;
|
|
58
|
+
'ta.share.thing': string;
|
|
59
|
+
'ta.share.itemWork': string;
|
|
60
|
+
'ta.share.itemFile': string;
|
|
61
|
+
'ta.share.noWay': string;
|
|
55
62
|
'ta.open.title': string;
|
|
56
63
|
'ta.open.published': string;
|
|
57
64
|
'ta.open.relayed': string;
|
|
@@ -53,6 +53,13 @@ export const DISCOVER_EN = {
|
|
|
53
53
|
'ta.share.copyPassword': 'Copy password',
|
|
54
54
|
'ta.share.cannotMake': 'The link could not be made',
|
|
55
55
|
'ta.share.extensionGets': 'They open it in Ta without installing',
|
|
56
|
+
'ta.share.extensionInvite': 'An extension of Ta for you, {name}. Open the link in Ta to try it, nothing to install:',
|
|
57
|
+
'ta.share.share': 'Share',
|
|
58
|
+
'ta.share.titled': 'Share “{name}”',
|
|
59
|
+
'ta.share.thing': 'This',
|
|
60
|
+
'ta.share.itemWork': 'Pick where it goes',
|
|
61
|
+
'ta.share.itemFile': 'A copy of the file as it is now',
|
|
62
|
+
'ta.share.noWay': 'Nowhere to share it here',
|
|
56
63
|
'ta.open.title': 'Open {name}?',
|
|
57
64
|
'ta.open.published': 'It runs in Ta with what Ta can do: it reads and writes files of this computer and runs commands. Open only what you trust.',
|
|
58
65
|
'ta.open.relayed': 'It comes from the computer of the one who shared it, and runs in Ta with what Ta can do: it reads and writes files of this computer and runs commands. Open only what you trust.',
|
|
@@ -145,6 +145,8 @@ export declare const SETTINGS_EN: {
|
|
|
145
145
|
'ta.settings.chatArchiveHint': string;
|
|
146
146
|
'ta.settings.recentShots': string;
|
|
147
147
|
'ta.settings.recentShotsHint': string;
|
|
148
|
+
'ta.settings.clipboardLinks': string;
|
|
149
|
+
'ta.settings.clipboardLinksHint': string;
|
|
148
150
|
'ta.settings.navigation': string;
|
|
149
151
|
'ta.settings.navigation.show': string;
|
|
150
152
|
'ta.settings.navigation.inNav': string;
|
|
@@ -145,6 +145,8 @@ export const SETTINGS_EN = {
|
|
|
145
145
|
'ta.settings.chatArchiveHint': 'Chats with no new message for this long leave the list and are no longer read with it. Find them under Archived at its end, or by search',
|
|
146
146
|
'ta.settings.recentShots': 'Suggest recent screenshots',
|
|
147
147
|
'ta.settings.recentShotsHint': 'When you open a chat just after taking a screenshot, it shows once above the message box; tap it to add it. In Ta Desktop and the Ta app',
|
|
148
|
+
'ta.settings.clipboardLinks': 'Spot links of Ta you copy',
|
|
149
|
+
'ta.settings.clipboardLinksHint': 'Copied a message with an invite or a share of Ta? Back in Ta, it shows what it is with Open; so does pasting it anywhere in Ta. The clipboard is read only as you come back, and nothing of it is kept. On iPhone, only once you tap Open',
|
|
148
150
|
'ta.settings.navigation': 'Navigation',
|
|
149
151
|
'ta.settings.navigation.show': 'In the navigation',
|
|
150
152
|
'ta.settings.navigation.inNav': 'In the navigation',
|
|
@@ -164,6 +164,16 @@ export const CHAT_JA = {
|
|
|
164
164
|
'ta.composer.voiceDenied': 'Ta はマイクまたは音声認識を使用する権限がありません。許可しても使えない場合、このブラウザーは音声認識に対応していない可能性があります。Safari、Chrome または Ta App をお使いください。',
|
|
165
165
|
'ta.composer.voiceUnavailable': 'このブラウザーの音声認識は使えません(iPhone では「Siri と音声入力」をオンにしてください)。Safari、Chrome または Ta App をお使いください。',
|
|
166
166
|
'ta.composer.voiceFailed': '音声認識が利用できません:{error}',
|
|
167
|
+
'ta.hear.offer': 'この端末は音声を認識できません。代わりにコンピューターで書き起こせます',
|
|
168
|
+
'ta.hear.offerHint': '約 {size} の認識モデルをコンピューターにダウンロードします。マイクの許可だけで、ネットには出ません。',
|
|
169
|
+
'ta.hear.turnOn': 'ダウンロードしてオン',
|
|
170
|
+
'ta.hear.turnedOn': 'コンピューターが音声モデルをダウンロードしています。終わったらもう一度話してください',
|
|
171
|
+
'ta.hear.getting': 'コンピューターが音声モデルをダウンロード中({percent}%)。終わったらもう一度話してください',
|
|
172
|
+
'ta.hear.failed': 'コンピューターの音声認識の準備ができていません',
|
|
173
|
+
'ta.hear.retry': '再試行',
|
|
174
|
+
'ta.hear.unsupported': 'この端末は音声を認識できず、コンピューターでも Ta の音声認識は動きません',
|
|
175
|
+
'ta.hear.unavailable': 'この端末は音声を認識できず、Ta の音声認識もオフです',
|
|
176
|
+
'ta.hear.unavailableHint': '設定 → 拡張機能 で「リアルタイム音声」と「ローカルモデル」をオンにしてください。',
|
|
167
177
|
'ta.talk.listening': '聴取中…',
|
|
168
178
|
'ta.talk.edit': '編集',
|
|
169
179
|
'ta.talk.releaseSend': '離して送信',
|
|
@@ -35,6 +35,7 @@ export const COMMON_JA = {
|
|
|
35
35
|
'ta.zoom.next': '次の画像(→)',
|
|
36
36
|
'ta.zoom.failed': 'この画像は表示できません',
|
|
37
37
|
'ta.markdown.missing': '{name} は表示できません',
|
|
38
|
+
'ta.markdown.retry': 'タップして再読み込み',
|
|
38
39
|
'ta.link.openFile': 'クリックして開く',
|
|
39
40
|
'ta.link.openFolder': 'クリックしてエクスプローラーで表示',
|
|
40
41
|
'ta.link.external': 'Ctrl + クリックしてブラウザで開く',
|
|
@@ -45,6 +46,19 @@ export const COMMON_JA = {
|
|
|
45
46
|
'ta.link.trust': '{host} を信頼する',
|
|
46
47
|
'ta.link.trustHint': 'このホストのページは今後質問なしで開きます。リストは設定で管理できます。',
|
|
47
48
|
'ta.link.copied': 'リンクをコピーしました',
|
|
49
|
+
'ta.link.kindPairing': 'コンピューター接続のリンク',
|
|
50
|
+
'ta.link.kindExtension': 'Ta の拡張機能',
|
|
51
|
+
'ta.clip.clipboardOne': 'クリップボードに{kind}があります',
|
|
52
|
+
'ta.clip.pasteOne': '貼り付けたのは{kind}です',
|
|
53
|
+
'ta.clip.clipboardFrom': 'クリップボードから · {kind}',
|
|
54
|
+
'ta.clip.pasteFrom': '貼り付けた内容 · {kind}',
|
|
55
|
+
'ta.clip.clipboardMany': 'クリップボードに Ta のリンクが {count} 件あります',
|
|
56
|
+
'ta.clip.pasteMany': '貼り付けた内容に Ta のリンクが {count} 件あります',
|
|
57
|
+
'ta.clip.pick': '開くものをタップ',
|
|
58
|
+
'ta.clip.open': '開く',
|
|
59
|
+
'ta.clip.maybe': 'クリップボードにリンクがあります',
|
|
60
|
+
'ta.clip.maybeDetail': 'Ta の招待や共有なら「開く」で開けます',
|
|
61
|
+
'ta.clip.none': 'クリップボードに Ta のリンクはありません',
|
|
48
62
|
'ta.link.notFound': '{path} は存在しません。',
|
|
49
63
|
'ta.terminal.openLink': 'Ctrl + クリックして開く',
|
|
50
64
|
'ta.terminal.openLinkMac': 'Cmd + クリックして開く',
|
|
@@ -91,6 +105,10 @@ export const COMMON_JA = {
|
|
|
91
105
|
'ta.select.all': 'すべて選択',
|
|
92
106
|
'ta.select.count': '{count} 件選択',
|
|
93
107
|
'ta.select.done': '完了',
|
|
108
|
+
'ta.people.search': '検索',
|
|
109
|
+
'ta.people.none': '選べる人がまだいません',
|
|
110
|
+
'ta.people.noMatch': '見つかりません',
|
|
111
|
+
'ta.people.leaveOut': '{name} を外す',
|
|
94
112
|
'ta.more': 'その他',
|
|
95
113
|
'ta.host.title': 'リモートホスト {host} 上',
|
|
96
114
|
'ta.on': 'オン',
|
|
@@ -51,6 +51,13 @@ export const DISCOVER_JA = {
|
|
|
51
51
|
'ta.share.copyPassword': 'パスワードをコピー',
|
|
52
52
|
'ta.share.cannotMake': 'リンクを作成できませんでした',
|
|
53
53
|
'ta.share.extensionGets': 'インストールせずに Ta で開けます',
|
|
54
|
+
'ta.share.extensionInvite': 'Ta の拡張機能「{name}」をどうぞ。Ta でリンクを開けば、インストールせずに試せます:',
|
|
55
|
+
'ta.share.share': '共有',
|
|
56
|
+
'ta.share.titled': '「{name}」を共有',
|
|
57
|
+
'ta.share.thing': 'これ',
|
|
58
|
+
'ta.share.itemWork': '共有先を選んでください',
|
|
59
|
+
'ta.share.itemFile': '今のファイルのコピーを送ります',
|
|
60
|
+
'ta.share.noWay': 'ここには共有先がありません',
|
|
54
61
|
'ta.open.title': '「{name}」を開きますか?',
|
|
55
62
|
'ta.open.published': 'この拡張機能は Ta で実行され、Ta ができることを実行できます:このパソコン上のファイルを読み書きし、コマンドを実行できます。信頼できるソースからのみ開いてください。',
|
|
56
63
|
'ta.open.relayed': 'この拡張機能は共有者のパソコンからきたもので、Ta で実行され、Ta ができることを実行できます:このパソコン上のファイルを読み書きし、コマンドを実行できます。信頼できる人が共有した拡張機能のみ開いてください。',
|
|
@@ -144,6 +144,8 @@ export const SETTINGS_JA = {
|
|
|
144
144
|
'ta.settings.chatArchiveHint': 'この期間新しいメッセージがない会話はリストから外され、リストとともに更新されなくなります。リストの末尾の「アーカイブ済み」または検索で見つけることができます',
|
|
145
145
|
'ta.settings.recentShots': '最近のスクリーンショットを提案',
|
|
146
146
|
'ta.settings.recentShotsHint': 'スクリーンショット直後に会話を開くと、メッセージボックスの上に一度表示されます。クリックして追加できます。Ta デスクトップ版と手機版 App のみ',
|
|
147
|
+
'ta.settings.clipboardLinks': 'コピーした Ta のリンクを見つける',
|
|
148
|
+
'ta.settings.clipboardLinksHint': 'Ta の招待や共有のリンクを含む内容をコピーすると、Ta に戻ったときに何かを示し、「開く」で開けます。Ta のどこに貼り付けても同じです。クリップボードは戻った瞬間に一度だけ読み、内容は保存しません。iPhone では「開く」をタップしたときだけ読みます',
|
|
147
149
|
'ta.settings.navigation': 'ナビゲーション',
|
|
148
150
|
'ta.settings.navigation.show': 'ナビゲーションバーに表示',
|
|
149
151
|
'ta.settings.navigation.inNav': 'ナビゲーションバーに',
|