@celljs/ta-web 4.34.0 → 4.35.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/app-icon.d.ts +23 -0
- package/esm/browser/apps/app-icon.js +98 -0
- package/esm/browser/apps/app-settings.d.ts +6 -0
- package/esm/browser/apps/app-settings.js +67 -0
- package/esm/browser/apps/app-window-util.d.ts +23 -0
- package/esm/browser/apps/app-window-util.js +27 -0
- package/esm/browser/apps/app-window.d.ts +9 -0
- package/esm/browser/apps/app-window.js +90 -0
- package/esm/browser/apps/web-apps.d.ts +29 -0
- package/esm/browser/apps/web-apps.js +57 -0
- package/esm/browser/assistant/call-keeper.d.ts +2 -5
- package/esm/browser/assistant/call-keeper.js +7 -11
- package/esm/browser/components/access-settings.d.ts +6 -0
- package/esm/browser/components/access-settings.js +52 -0
- package/esm/browser/components/app-root.d.ts +6 -0
- package/esm/browser/components/app-root.js +34 -0
- package/esm/browser/components/app-view.d.ts +8 -2
- package/esm/browser/components/app-view.js +1 -25
- package/esm/browser/components/cloud-sign-in-view.d.ts +1 -1
- package/esm/browser/components/host-view.d.ts +1 -1
- package/esm/browser/components/settings-more.js +6 -0
- package/esm/browser/device/screen-awake.d.ts +16 -0
- package/esm/browser/device/screen-awake.js +37 -0
- package/esm/browser/device/sheet-swipe.js +4 -0
- package/esm/browser/extension/icons.js +2 -1
- package/esm/browser/extension/web-access.d.ts +16 -0
- package/esm/browser/extension/web-access.js +75 -0
- package/esm/browser/extension/web-api-desktop.d.ts +23 -0
- package/esm/browser/extension/web-api-spec.d.ts +70 -0
- package/esm/browser/extension/web-api-spec.js +223 -0
- package/esm/browser/extension/web-extension-api.d.ts +6 -0
- package/esm/browser/extension/web-extension-context.js +11 -2
- package/esm/browser/extension/web-extension-run.d.ts +6 -1
- package/esm/browser/extension/web-extension-run.js +25 -0
- package/esm/browser/extension/web-extensions-running.d.ts +18 -1
- package/esm/browser/extension/web-extensions-running.js +102 -9
- package/esm/browser/extension/web-pages.d.ts +5 -0
- package/esm/browser/extension/web-pages.js +3 -0
- package/esm/browser/i18n/en/common.d.ts +1 -0
- package/esm/browser/i18n/en/common.js +1 -0
- package/esm/browser/i18n/en/discover.d.ts +11 -0
- package/esm/browser/i18n/en/discover.js +11 -0
- package/esm/browser/i18n/en/settings.d.ts +28 -0
- package/esm/browser/i18n/en/settings.js +28 -0
- package/esm/browser/i18n/ja/common.js +1 -0
- package/esm/browser/i18n/ja/discover.js +11 -0
- package/esm/browser/i18n/ja/settings.js +28 -0
- package/esm/browser/i18n/locales.d.ts +41 -3
- package/esm/browser/i18n/messages.d.ts +40 -2
- package/esm/browser/i18n/zh/common.js +1 -0
- package/esm/browser/i18n/zh/discover.js +11 -0
- package/esm/browser/i18n/zh/settings.js +28 -0
- package/esm/browser/i18n/zh-tw/common.js +1 -0
- package/esm/browser/i18n/zh-tw/discover.js +11 -0
- package/esm/browser/i18n/zh-tw/settings.js +28 -0
- package/esm/browser/index.d.ts +1 -0
- package/esm/browser/index.js +1 -0
- package/esm/browser/notices/notices.js +1 -0
- package/esm/browser/sandbox/channel/channel.d.ts +56 -0
- package/esm/browser/sandbox/channel/channel.js +124 -0
- package/esm/browser/sandbox/channel/codec.d.ts +80 -0
- package/esm/browser/sandbox/channel/codec.js +251 -0
- package/esm/browser/sandbox/hook-host.d.ts +23 -0
- package/esm/browser/sandbox/hook-host.js +61 -0
- package/esm/browser/sandbox/isolated-host.d.ts +105 -0
- package/esm/browser/sandbox/isolated-host.js +395 -0
- package/esm/browser/sandbox/remote/remote-copy.d.ts +56 -0
- package/esm/browser/sandbox/remote/remote-copy.js +302 -0
- package/esm/browser/sandbox/remote/remote-mirror.d.ts +61 -0
- package/esm/browser/sandbox/remote/remote-mirror.js +341 -0
- package/esm/browser/sandbox/remote/remote-protocol.d.ts +79 -0
- package/esm/browser/sandbox/remote/remote-protocol.js +54 -0
- package/esm/browser/sandbox/remote/remote-styles.d.ts +10 -0
- package/esm/browser/sandbox/remote/remote-styles.js +113 -0
- package/esm/browser/sandbox/remote-root.d.ts +11 -0
- package/esm/browser/sandbox/remote-root.js +81 -0
- package/esm/browser/sandbox/runtime/frame-api.d.ts +28 -0
- package/esm/browser/sandbox/runtime/frame-api.js +147 -0
- package/esm/browser/sandbox/runtime/frame-features.d.ts +6 -0
- package/esm/browser/sandbox/runtime/frame-features.js +50 -0
- package/esm/browser/sandbox/runtime/frame-parts.d.ts +36 -0
- package/esm/browser/sandbox/runtime/frame-parts.js +69 -0
- package/esm/browser/sandbox/runtime/frame-roots.d.ts +26 -0
- package/esm/browser/sandbox/runtime/frame-roots.js +76 -0
- package/esm/browser/sandbox/runtime/frame-store.d.ts +9 -0
- package/esm/browser/sandbox/runtime/frame-store.js +18 -0
- package/esm/browser/sandbox/runtime/sandbox-runtime.d.ts +11 -0
- package/esm/browser/sandbox/runtime/sandbox-runtime.js +45 -0
- package/esm/browser/sandbox/sandbox-features.d.ts +25 -0
- package/esm/browser/sandbox/sandbox-features.js +32 -0
- package/esm/browser/sandbox/sandbox-frame.d.ts +21 -0
- package/esm/browser/sandbox/sandbox-frame.js +75 -0
- package/esm/browser/sandbox/sandbox-guards.d.ts +19 -0
- package/esm/browser/sandbox/sandbox-guards.js +74 -0
- package/esm/browser/sandbox/sandbox-protocol.d.ts +57 -0
- package/esm/browser/sandbox/sandbox-protocol.js +49 -0
- package/esm/browser/sandbox/sandbox-runtime-code.d.ts +1 -0
- package/esm/browser/sandbox/sandbox-runtime-code.js +3 -0
- package/esm/browser/sandbox/web-sandbox.d.ts +28 -0
- package/esm/browser/sandbox/web-sandbox.js +44 -0
- package/esm/browser/settings/settings-protocol.d.ts +2 -0
- package/esm/browser/settings/settings-protocol.js +2 -0
- package/esm/browser/style/surfaces.d.ts +1 -1
- package/esm/browser/style/surfaces.js +5 -0
- package/esm/browser/style/tints.d.ts +2 -0
- package/esm/browser/style/tints.js +10 -0
- package/esm/browser/util/desktop.d.ts +31 -1
- package/esm/browser/util/desktop.js +20 -0
- package/esm/browser/view.js +1 -1
- package/lib/browser/apps/app-icon.d.ts +24 -0
- package/lib/browser/apps/app-icon.js +134 -0
- package/lib/browser/apps/app-settings.d.ts +7 -0
- package/lib/browser/apps/app-settings.js +103 -0
- package/lib/browser/apps/app-window-util.d.ts +24 -0
- package/lib/browser/apps/app-window-util.js +30 -0
- package/lib/browser/apps/app-window.d.ts +10 -0
- package/lib/browser/apps/app-window.js +126 -0
- package/lib/browser/apps/web-apps.d.ts +30 -0
- package/lib/browser/apps/web-apps.js +61 -0
- package/lib/browser/assistant/call-keeper.d.ts +2 -5
- package/lib/browser/assistant/call-keeper.js +6 -10
- package/lib/browser/components/access-settings.d.ts +7 -0
- package/lib/browser/components/access-settings.js +88 -0
- package/lib/browser/components/app-root.d.ts +7 -0
- package/lib/browser/components/app-root.js +70 -0
- package/lib/browser/components/app-view.d.ts +8 -2
- package/lib/browser/components/app-view.js +1 -25
- package/lib/browser/components/cloud-sign-in-view.d.ts +1 -1
- package/lib/browser/components/host-view.d.ts +1 -1
- package/lib/browser/components/settings-more.js +6 -0
- package/lib/browser/device/screen-awake.d.ts +16 -0
- package/lib/browser/device/screen-awake.js +39 -1
- package/lib/browser/device/sheet-swipe.js +4 -0
- package/lib/browser/extension/icons.js +1 -0
- package/lib/browser/extension/web-access.d.ts +17 -0
- package/lib/browser/extension/web-access.js +78 -0
- package/lib/browser/extension/web-api-desktop.d.ts +23 -0
- package/lib/browser/extension/web-api-spec.d.ts +71 -0
- package/lib/browser/extension/web-api-spec.js +226 -0
- package/lib/browser/extension/web-extension-api.d.ts +6 -0
- package/lib/browser/extension/web-extension-context.js +11 -2
- package/lib/browser/extension/web-extension-run.d.ts +6 -1
- package/lib/browser/extension/web-extension-run.js +25 -0
- package/lib/browser/extension/web-extensions-running.d.ts +18 -1
- package/lib/browser/extension/web-extensions-running.js +102 -9
- package/lib/browser/extension/web-pages.d.ts +5 -0
- package/lib/browser/extension/web-pages.js +3 -0
- package/lib/browser/i18n/en/common.d.ts +1 -0
- package/lib/browser/i18n/en/common.js +1 -0
- package/lib/browser/i18n/en/discover.d.ts +11 -0
- package/lib/browser/i18n/en/discover.js +11 -0
- package/lib/browser/i18n/en/settings.d.ts +28 -0
- package/lib/browser/i18n/en/settings.js +28 -0
- package/lib/browser/i18n/ja/common.js +1 -0
- package/lib/browser/i18n/ja/discover.js +11 -0
- package/lib/browser/i18n/ja/settings.js +28 -0
- package/lib/browser/i18n/locales.d.ts +41 -3
- package/lib/browser/i18n/messages.d.ts +40 -2
- package/lib/browser/i18n/zh/common.js +1 -0
- package/lib/browser/i18n/zh/discover.js +11 -0
- package/lib/browser/i18n/zh/settings.js +28 -0
- package/lib/browser/i18n/zh-tw/common.js +1 -0
- package/lib/browser/i18n/zh-tw/discover.js +11 -0
- package/lib/browser/i18n/zh-tw/settings.js +28 -0
- package/lib/browser/index.d.ts +1 -0
- package/lib/browser/index.js +1 -0
- package/lib/browser/notices/notices.js +1 -0
- package/lib/browser/sandbox/channel/channel.d.ts +57 -0
- package/lib/browser/sandbox/channel/channel.js +128 -0
- package/lib/browser/sandbox/channel/codec.d.ts +81 -0
- package/lib/browser/sandbox/channel/codec.js +256 -0
- package/lib/browser/sandbox/hook-host.d.ts +24 -0
- package/lib/browser/sandbox/hook-host.js +98 -0
- package/lib/browser/sandbox/isolated-host.d.ts +106 -0
- package/lib/browser/sandbox/isolated-host.js +432 -0
- package/lib/browser/sandbox/remote/remote-copy.d.ts +57 -0
- package/lib/browser/sandbox/remote/remote-copy.js +306 -0
- package/lib/browser/sandbox/remote/remote-mirror.d.ts +62 -0
- package/lib/browser/sandbox/remote/remote-mirror.js +345 -0
- package/lib/browser/sandbox/remote/remote-protocol.d.ts +80 -0
- package/lib/browser/sandbox/remote/remote-protocol.js +57 -0
- package/lib/browser/sandbox/remote/remote-styles.d.ts +11 -0
- package/lib/browser/sandbox/remote/remote-styles.js +116 -0
- package/lib/browser/sandbox/remote-root.d.ts +12 -0
- package/lib/browser/sandbox/remote-root.js +117 -0
- package/lib/browser/sandbox/runtime/frame-api.d.ts +29 -0
- package/lib/browser/sandbox/runtime/frame-api.js +183 -0
- package/lib/browser/sandbox/runtime/frame-features.d.ts +7 -0
- package/lib/browser/sandbox/runtime/frame-features.js +53 -0
- package/lib/browser/sandbox/runtime/frame-parts.d.ts +37 -0
- package/lib/browser/sandbox/runtime/frame-parts.js +106 -0
- package/lib/browser/sandbox/runtime/frame-roots.d.ts +27 -0
- package/lib/browser/sandbox/runtime/frame-roots.js +113 -0
- package/lib/browser/sandbox/runtime/frame-store.d.ts +10 -0
- package/lib/browser/sandbox/runtime/frame-store.js +22 -0
- package/lib/browser/sandbox/runtime/sandbox-runtime.d.ts +12 -0
- package/lib/browser/sandbox/runtime/sandbox-runtime.js +47 -0
- package/lib/browser/sandbox/sandbox-features.d.ts +26 -0
- package/lib/browser/sandbox/sandbox-features.js +35 -0
- package/lib/browser/sandbox/sandbox-frame.d.ts +22 -0
- package/lib/browser/sandbox/sandbox-frame.js +79 -0
- package/lib/browser/sandbox/sandbox-guards.d.ts +20 -0
- package/lib/browser/sandbox/sandbox-guards.js +77 -0
- package/lib/browser/sandbox/sandbox-protocol.d.ts +58 -0
- package/lib/browser/sandbox/sandbox-protocol.js +52 -0
- package/lib/browser/sandbox/sandbox-runtime-code.d.ts +2 -0
- package/lib/browser/sandbox/sandbox-runtime-code.js +6 -0
- package/lib/browser/sandbox/web-sandbox.d.ts +29 -0
- package/lib/browser/sandbox/web-sandbox.js +47 -0
- package/lib/browser/settings/settings-protocol.d.ts +2 -0
- package/lib/browser/settings/settings-protocol.js +2 -0
- package/lib/browser/style/surfaces.d.ts +1 -1
- package/lib/browser/style/surfaces.js +5 -0
- package/lib/browser/style/tints.d.ts +2 -0
- package/lib/browser/style/tints.js +10 -0
- package/lib/browser/util/desktop.d.ts +31 -1
- package/lib/browser/util/desktop.js +20 -0
- package/lib/browser/view.js +2 -2
- package/package.json +8 -8
|
@@ -22,7 +22,6 @@ export declare const EN_MESSAGES: {
|
|
|
22
22
|
'ta.access.bind': string;
|
|
23
23
|
'ta.access.bindHint': string;
|
|
24
24
|
'ta.access.requested': string;
|
|
25
|
-
'ta.access.allow': string;
|
|
26
25
|
'ta.access.dismiss': string;
|
|
27
26
|
'ta.access.add': string;
|
|
28
27
|
'ta.access.open': string;
|
|
@@ -39,7 +38,6 @@ export declare const EN_MESSAGES: {
|
|
|
39
38
|
'ta.access.removeConfirm': string;
|
|
40
39
|
'ta.access.removeDetail': string;
|
|
41
40
|
'ta.access.remove': string;
|
|
42
|
-
'ta.access.browser': string;
|
|
43
41
|
'ta.access.thisBrowser': string;
|
|
44
42
|
'ta.access.lastUsed': string;
|
|
45
43
|
'ta.access.signOut': string;
|
|
@@ -710,6 +708,7 @@ export declare const EN_MESSAGES: {
|
|
|
710
708
|
'ta.error.forbiddenHint': string;
|
|
711
709
|
'ta.error.forbiddenAsk': string;
|
|
712
710
|
'ta.error.limit': string;
|
|
711
|
+
'ta.error.deviceNotWaiting': string;
|
|
713
712
|
'ta.error.forbiddenNever': string;
|
|
714
713
|
'ta.notices': string;
|
|
715
714
|
'ta.notice.picture': string;
|
|
@@ -1021,6 +1020,17 @@ export declare const EN_MESSAGES: {
|
|
|
1021
1020
|
'ta.open.open': string;
|
|
1022
1021
|
'ta.open.notALink': string;
|
|
1023
1022
|
'ta.open.failed': string;
|
|
1023
|
+
'ta.access.ask': string;
|
|
1024
|
+
'ta.access.new': string;
|
|
1025
|
+
'ta.access.updated': string;
|
|
1026
|
+
'ta.access.full': string;
|
|
1027
|
+
'ta.access.app': string;
|
|
1028
|
+
'ta.access.browser': string;
|
|
1029
|
+
'ta.access.from': string;
|
|
1030
|
+
'ta.access.fromLink': string;
|
|
1031
|
+
'ta.access.fromMarket': string;
|
|
1032
|
+
'ta.access.allow': string;
|
|
1033
|
+
'ta.access.failed': string;
|
|
1024
1034
|
'ta.search.pages': string;
|
|
1025
1035
|
'ta.search.all': string;
|
|
1026
1036
|
'ta.search.more': string;
|
|
@@ -1421,6 +1431,22 @@ export declare const EN_MESSAGES: {
|
|
|
1421
1431
|
'ta.settings.keepAliveDescription': string;
|
|
1422
1432
|
'ta.settings.retention': string;
|
|
1423
1433
|
'ta.settings.retentionDescription': string;
|
|
1434
|
+
'ta.settings.trust': string;
|
|
1435
|
+
'ta.settings.trustDescription': string;
|
|
1436
|
+
'ta.settings.trust.off': string;
|
|
1437
|
+
'ta.settings.trust.browser': string;
|
|
1438
|
+
'ta.settings.trust.ask': string;
|
|
1439
|
+
'ta.settings.trust.all': string;
|
|
1440
|
+
'ta.settings.trust.offHint': string;
|
|
1441
|
+
'ta.settings.trust.browserHint': string;
|
|
1442
|
+
'ta.settings.trust.askHint': string;
|
|
1443
|
+
'ta.settings.trust.allHint': string;
|
|
1444
|
+
'ta.settings.sandbox': string;
|
|
1445
|
+
'ta.settings.sandboxDescription': string;
|
|
1446
|
+
'ta.settings.sandboxLocal': string;
|
|
1447
|
+
'ta.settings.sandboxLocalDescription': string;
|
|
1448
|
+
'ta.settings.sandboxParts': string;
|
|
1449
|
+
'ta.settings.sandboxPartsDescription': string;
|
|
1424
1450
|
'ta.settings.minutes': string;
|
|
1425
1451
|
'ta.settings.days': string;
|
|
1426
1452
|
'ta.settings.never': string;
|
|
@@ -1552,6 +1578,18 @@ export declare const EN_MESSAGES: {
|
|
|
1552
1578
|
'ta.settings.cwdChange': string;
|
|
1553
1579
|
'ta.settings.cwdDescription': string;
|
|
1554
1580
|
'ta.workingDirectory.changed': string;
|
|
1581
|
+
'ta.settings.installApps': string;
|
|
1582
|
+
'ta.settings.installAppsDescription': string;
|
|
1583
|
+
'ta.settings.apps': string;
|
|
1584
|
+
'ta.apps.install': string;
|
|
1585
|
+
'ta.apps.remove': string;
|
|
1586
|
+
'ta.apps.open': string;
|
|
1587
|
+
'ta.apps.installed': string;
|
|
1588
|
+
'ta.apps.noEntry': string;
|
|
1589
|
+
'ta.apps.removed': string;
|
|
1590
|
+
'ta.apps.off': string;
|
|
1591
|
+
'ta.apps.gone': string;
|
|
1592
|
+
'ta.apps.goneHint': string;
|
|
1555
1593
|
'ta.tool.earlier': string;
|
|
1556
1594
|
'ta.tool.hideScript': string;
|
|
1557
1595
|
'ta.tool.showScript': string;
|
|
@@ -70,6 +70,7 @@ export const COMMON_ZH = {
|
|
|
70
70
|
'ta.error.forbiddenHint': '这台 Ta 的所有者或管理员可以给你这个权限',
|
|
71
71
|
'ta.error.forbiddenAsk': '申请',
|
|
72
72
|
'ta.error.limit': '这台 Ta 同时在跑的协作任务已满,请稍后再试',
|
|
73
|
+
'ta.error.deviceNotWaiting': '这台设备没有在等待允许,可能已被允许或移除',
|
|
73
74
|
'ta.error.forbiddenNever': '这里对所有协作者都不开放',
|
|
74
75
|
'ta.notices': '通知',
|
|
75
76
|
'ta.notice.picture': '扩展给出的图像,如要扫描的二维码',
|
|
@@ -57,6 +57,17 @@ export const DISCOVER_ZH = {
|
|
|
57
57
|
'ta.open.open': '打开',
|
|
58
58
|
'ta.open.notALink': '这不是扩展链接',
|
|
59
59
|
'ta.open.failed': '没能打开',
|
|
60
|
+
'ta.access.ask': '允许“{name}”运行?',
|
|
61
|
+
'ta.access.new': '它不是你自己做的,允许后才会运行。',
|
|
62
|
+
'ta.access.updated': '它更新了,新版本要你再允许一次才会运行。',
|
|
63
|
+
'ta.access.full': '它申请 Ta 的全部能力:读写这台电脑上的文件、运行命令、读你的对话。只允许你信任的来源。',
|
|
64
|
+
'ta.access.app': '它只申请自己的页面,以及 Ta 的通知、小组件和语音,不申请你的文件和对话。',
|
|
65
|
+
'ta.access.browser': '它只申请自己的页面和数据,和网页一样,不申请你的文件和对话。',
|
|
66
|
+
'ta.access.from': '来源:{source}。',
|
|
67
|
+
'ta.access.fromLink': '别人分享的链接',
|
|
68
|
+
'ta.access.fromMarket': '扩展市场',
|
|
69
|
+
'ta.access.allow': '允许',
|
|
70
|
+
'ta.access.failed': '没能允许',
|
|
60
71
|
'ta.search.pages': '页面',
|
|
61
72
|
'ta.search.all': '显示全部 {count} 个',
|
|
62
73
|
'ta.search.more': '查看更多',
|
|
@@ -104,6 +104,22 @@ export const SETTINGS_ZH = {
|
|
|
104
104
|
'ta.settings.keepAliveDescription': '打开时才启动的扩展,离开后在后台保留这么久再停止,期间再打开还在原来的位置',
|
|
105
105
|
'ta.settings.retention': '清除不用的临时扩展',
|
|
106
106
|
'ta.settings.retentionDescription': '没有安装的扩展,这么多天没用就清除;收进“我的”的不清除',
|
|
107
|
+
'ta.settings.trust': '别人分享的扩展',
|
|
108
|
+
'ta.settings.trustDescription': '别人分享给你的扩展能用到哪一步:只像网页、每个版本问你,或者 Ta 的全部能力',
|
|
109
|
+
'ta.settings.trust.off': '关闭',
|
|
110
|
+
'ta.settings.trust.browser': '只给网页',
|
|
111
|
+
'ta.settings.trust.ask': '逐版询问',
|
|
112
|
+
'ta.settings.trust.all': '完全信任',
|
|
113
|
+
'ta.settings.trust.offHint': '别人分享的扩展都不运行,也不再询问',
|
|
114
|
+
'ta.settings.trust.browserHint': '只能用自己的页面和数据,和网页一样;申请更多的不运行',
|
|
115
|
+
'ta.settings.trust.askHint': '每个扩展申请什么由你允许,更新后再问;不到完全访问的和 Ta 隔开运行',
|
|
116
|
+
'ta.settings.trust.allHint': '不再询问,直接拥有 Ta 的全部能力(你的文件、对话)。只在信任分享给你的人时选',
|
|
117
|
+
'ta.settings.sandbox': '在这台设备上隔离运行',
|
|
118
|
+
'ta.settings.sandboxDescription': '关掉后,需要和 Ta 隔开运行的扩展在这台设备上不运行',
|
|
119
|
+
'ta.settings.sandboxLocal': '保存它们的本地数据',
|
|
120
|
+
'ta.settings.sandboxLocalDescription': '它们存在本地的数据跟着扩展数据保存,每个最多 1 MB',
|
|
121
|
+
'ta.settings.sandboxParts': '允许使用 Ta 的组件',
|
|
122
|
+
'ta.settings.sandboxPartsDescription': '关掉后只显示它们自己画的内容,没有 Ta 的文字排版、对话框和图标',
|
|
107
123
|
'ta.settings.minutes': '{count} 分钟',
|
|
108
124
|
'ta.settings.days': '{count} 天',
|
|
109
125
|
'ta.settings.never': '从不',
|
|
@@ -235,5 +251,17 @@ export const SETTINGS_ZH = {
|
|
|
235
251
|
'ta.settings.cwdChange': '更改…',
|
|
236
252
|
'ta.settings.cwdDescription': '新对话、终端和分身派出的任务在这里打开;已有的对话留在各自的目录:{path}',
|
|
237
253
|
'ta.workingDirectory.changed': '默认目录已改为 {path}',
|
|
254
|
+
'ta.settings.installApps': '可以装成应用',
|
|
255
|
+
'ta.settings.installAppsDescription': '在快捷打开里长按页面,装成这台电脑上的一个应用,有自己的窗口。关掉后,已装的照样能打开',
|
|
256
|
+
'ta.settings.apps': '装成的应用',
|
|
257
|
+
'ta.apps.install': '装成应用',
|
|
258
|
+
'ta.apps.remove': '从应用里移除',
|
|
259
|
+
'ta.apps.open': '打开',
|
|
260
|
+
'ta.apps.installed': '{name} 已装成应用,以后可以从电脑的应用里打开',
|
|
261
|
+
'ta.apps.noEntry': '{name} 的窗口已打开,但没能放进电脑的应用里',
|
|
262
|
+
'ta.apps.removed': '已从应用里移除 {name}',
|
|
263
|
+
'ta.apps.off': '设置里关掉了“可以装成应用”',
|
|
264
|
+
'ta.apps.gone': '这个页面已经不在了',
|
|
265
|
+
'ta.apps.goneHint': '它的扩展可能已被移除或关闭。',
|
|
238
266
|
};
|
|
239
267
|
//# sourceMappingURL=settings.js.map
|
|
@@ -70,6 +70,7 @@ export const COMMON_ZH_TW = {
|
|
|
70
70
|
'ta.error.forbiddenHint': '這台 Ta 的所有者或管理員可以給你這個權限',
|
|
71
71
|
'ta.error.forbiddenAsk': '申請',
|
|
72
72
|
'ta.error.limit': '這台 Ta 同時在跑的協作任務已滿,請稍後再試',
|
|
73
|
+
'ta.error.deviceNotWaiting': '這台裝置沒有在等待允許,可能已被允許或移除',
|
|
73
74
|
'ta.error.forbiddenNever': '這裡對所有協作者都不開放',
|
|
74
75
|
'ta.notices': '通知',
|
|
75
76
|
'ta.notice.picture': '擴充功能給出的影像,如要掃描的QR 碼',
|
|
@@ -57,6 +57,17 @@ export const DISCOVER_ZH_TW = {
|
|
|
57
57
|
'ta.open.open': '開啟',
|
|
58
58
|
'ta.open.notALink': '這不是擴充功能連結',
|
|
59
59
|
'ta.open.failed': '沒能開啟',
|
|
60
|
+
'ta.access.ask': '允許「{name}」執行?',
|
|
61
|
+
'ta.access.new': '它不是你自己做的,允許後才會執行。',
|
|
62
|
+
'ta.access.updated': '它更新了,新版本要你再允許一次才會執行。',
|
|
63
|
+
'ta.access.full': '它申請 Ta 的全部能力:讀寫這台電腦上的檔案、執行命令、讀你的對話。只允許你信任的來源。',
|
|
64
|
+
'ta.access.app': '它只申請自己的頁面,以及 Ta 的通知、小工具和語音,不申請你的檔案和對話。',
|
|
65
|
+
'ta.access.browser': '它只申請自己的頁面和資料,和網頁一樣,不申請你的檔案和對話。',
|
|
66
|
+
'ta.access.from': '來源:{source}。',
|
|
67
|
+
'ta.access.fromLink': '別人分享的連結',
|
|
68
|
+
'ta.access.fromMarket': '擴充功能市場',
|
|
69
|
+
'ta.access.allow': '允許',
|
|
70
|
+
'ta.access.failed': '沒能允許',
|
|
60
71
|
'ta.search.pages': '頁面',
|
|
61
72
|
'ta.search.all': '顯示全部 {count} 個',
|
|
62
73
|
'ta.search.more': '檢視更多',
|
|
@@ -104,6 +104,22 @@ export const SETTINGS_ZH_TW = {
|
|
|
104
104
|
'ta.settings.keepAliveDescription': '開啟時才啟動的擴充功能,離開後在後台保留這麼久再停止,期間再開啟還在原來的位置',
|
|
105
105
|
'ta.settings.retention': '清除不用的臨時擴充功能',
|
|
106
106
|
'ta.settings.retentionDescription': '沒有安裝的擴充功能,這麼多天沒用就清除;收進「我的」的不清除',
|
|
107
|
+
'ta.settings.trust': '別人分享的擴充功能',
|
|
108
|
+
'ta.settings.trustDescription': '別人分享給你的擴充功能能用到哪一步:只像網頁、每個版本問你,或者 Ta 的全部能力',
|
|
109
|
+
'ta.settings.trust.off': '關閉',
|
|
110
|
+
'ta.settings.trust.browser': '只給網頁',
|
|
111
|
+
'ta.settings.trust.ask': '逐版詢問',
|
|
112
|
+
'ta.settings.trust.all': '完全信任',
|
|
113
|
+
'ta.settings.trust.offHint': '別人分享的擴充功能都不執行,也不再詢問',
|
|
114
|
+
'ta.settings.trust.browserHint': '只能用自己的頁面和資料,和網頁一樣;申請更多的不執行',
|
|
115
|
+
'ta.settings.trust.askHint': '每個擴充功能申請什麼由你允許,更新後再問;不到完全存取的和 Ta 隔開執行',
|
|
116
|
+
'ta.settings.trust.allHint': '不再詢問,直接擁有 Ta 的全部能力(你的檔案、對話)。只在信任分享給你的人時選',
|
|
117
|
+
'ta.settings.sandbox': '在這台裝置上隔離執行',
|
|
118
|
+
'ta.settings.sandboxDescription': '關掉後,需要和 Ta 隔開執行的擴充功能在這台裝置上不執行',
|
|
119
|
+
'ta.settings.sandboxLocal': '保存它們的本機資料',
|
|
120
|
+
'ta.settings.sandboxLocalDescription': '它們存在本機的資料跟著擴充功能資料保存,每個最多 1 MB',
|
|
121
|
+
'ta.settings.sandboxParts': '允許使用 Ta 的元件',
|
|
122
|
+
'ta.settings.sandboxPartsDescription': '關掉後只顯示它們自己畫的內容,沒有 Ta 的文字排版、對話框和圖示',
|
|
107
123
|
'ta.settings.minutes': '{count} 分鐘',
|
|
108
124
|
'ta.settings.days': '{count} 天',
|
|
109
125
|
'ta.settings.never': '從不',
|
|
@@ -235,5 +251,17 @@ export const SETTINGS_ZH_TW = {
|
|
|
235
251
|
'ta.settings.cwdChange': '更改…',
|
|
236
252
|
'ta.settings.cwdDescription': '新對話、終端機和分身派出的任務在這裡開啟;已有的對話留在各自的目錄:{path}',
|
|
237
253
|
'ta.workingDirectory.changed': '預設目錄已改為 {path}',
|
|
254
|
+
'ta.settings.installApps': '可以裝成應用程式',
|
|
255
|
+
'ta.settings.installAppsDescription': '在快捷開啟裡長按頁面,裝成這台電腦上的一個應用程式,有自己的視窗。關掉後,已裝的照樣能開啟',
|
|
256
|
+
'ta.settings.apps': '裝成的應用程式',
|
|
257
|
+
'ta.apps.install': '裝成應用程式',
|
|
258
|
+
'ta.apps.remove': '從應用程式移除',
|
|
259
|
+
'ta.apps.open': '開啟',
|
|
260
|
+
'ta.apps.installed': '{name} 已裝成應用程式,以後可以從電腦的應用程式裡開啟',
|
|
261
|
+
'ta.apps.noEntry': '{name} 的視窗已開啟,但沒能放進電腦的應用程式裡',
|
|
262
|
+
'ta.apps.removed': '已從應用程式移除 {name}',
|
|
263
|
+
'ta.apps.off': '設定裡關掉了「可以裝成應用程式」',
|
|
264
|
+
'ta.apps.gone': '這個頁面已經不在了',
|
|
265
|
+
'ta.apps.goneHint': '它的擴充功能可能已被移除或關閉。',
|
|
238
266
|
};
|
|
239
267
|
//# sourceMappingURL=settings.js.map
|
package/esm/browser/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export * from './chat/chat-shown.js';
|
|
|
13
13
|
export * from './chat/chat-util.js';
|
|
14
14
|
export * from './chat/chat-view.js';
|
|
15
15
|
export * from './components/account-menu.js';
|
|
16
|
+
export * from './components/app-root.js';
|
|
16
17
|
export * from './components/app-view.js';
|
|
17
18
|
export * from './components/callout.js';
|
|
18
19
|
export * from './components/chat-list.js';
|
package/esm/browser/index.js
CHANGED
|
@@ -13,6 +13,7 @@ export * from './chat/chat-shown.js';
|
|
|
13
13
|
export * from './chat/chat-util.js';
|
|
14
14
|
export * from './chat/chat-view.js';
|
|
15
15
|
export * from './components/account-menu.js';
|
|
16
|
+
export * from './components/app-root.js';
|
|
16
17
|
export * from './components/app-view.js';
|
|
17
18
|
export * from './components/callout.js';
|
|
18
19
|
export * from './components/chat-list.js';
|
|
@@ -73,6 +73,7 @@ export var NoticesUtil;
|
|
|
73
73
|
[TaErrorCode.ALREADY_COMPACTED]: 'ta.error.alreadyCompacted',
|
|
74
74
|
[TaErrorCode.SESSION_BUSY]: 'ta.error.sessionBusy',
|
|
75
75
|
[TaErrorCode.LIMIT]: 'ta.error.limit',
|
|
76
|
+
[TaErrorCode.DEVICE_NOT_WAITING]: 'ta.error.deviceNotWaiting',
|
|
76
77
|
};
|
|
77
78
|
/** What an error says: its message, and for a failure ta serve names (TaRemoteError) its hint. */
|
|
78
79
|
function describe(cause) {
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/** What one end of a channel sends the other (docs/design/ta-extension-access.md 3.3). */
|
|
2
|
+
export type ChannelMessage = {
|
|
3
|
+
t: 'q';
|
|
4
|
+
id: number;
|
|
5
|
+
op: string;
|
|
6
|
+
body: unknown;
|
|
7
|
+
} | {
|
|
8
|
+
t: 'a';
|
|
9
|
+
id: number;
|
|
10
|
+
body?: unknown;
|
|
11
|
+
error?: string;
|
|
12
|
+
} | {
|
|
13
|
+
t: 'x';
|
|
14
|
+
id: number;
|
|
15
|
+
} | {
|
|
16
|
+
t: 'n';
|
|
17
|
+
op: string;
|
|
18
|
+
body: unknown;
|
|
19
|
+
};
|
|
20
|
+
/** A MessagePort, or anything that sends and hears as one does. */
|
|
21
|
+
export interface ChannelPort {
|
|
22
|
+
postMessage(message: unknown): void;
|
|
23
|
+
onmessage: ((event: MessageEvent) => void) | null;
|
|
24
|
+
close?(): void;
|
|
25
|
+
}
|
|
26
|
+
/** Answers a request: what it returns, or resolves to, is the answer; what it throws, the error. */
|
|
27
|
+
export type ChannelHandler = (body: unknown, signal: AbortSignal) => unknown;
|
|
28
|
+
export declare namespace ChannelLimits {
|
|
29
|
+
/** Requests of the other end answered at once, at most: more are refused, so that a sandbox cannot flood the page. */
|
|
30
|
+
const RUNNING = 256;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* One end of the channel between the page and a sandbox: requests answered by their id, cancelled with a signal,
|
|
34
|
+
* and notices that want no answer. It knows nothing of what the operations mean; both ends are this class.
|
|
35
|
+
*/
|
|
36
|
+
export declare class Channel {
|
|
37
|
+
protected readonly port: ChannelPort;
|
|
38
|
+
protected nextId: number;
|
|
39
|
+
protected readonly waiting: Map<number, {
|
|
40
|
+
resolve(value: unknown): void;
|
|
41
|
+
reject(error: Error): void;
|
|
42
|
+
}>;
|
|
43
|
+
protected readonly running: Map<number, AbortController>;
|
|
44
|
+
protected readonly handlers: Map<string, ChannelHandler>;
|
|
45
|
+
protected readonly listeners: Map<string, (body: unknown) => void>;
|
|
46
|
+
protected closed: boolean;
|
|
47
|
+
constructor(port: ChannelPort);
|
|
48
|
+
request<T = unknown>(op: string, body?: unknown, signal?: AbortSignal): Promise<T>;
|
|
49
|
+
notify(op: string, body?: unknown): void;
|
|
50
|
+
handle(op: string, handler: ChannelHandler): void;
|
|
51
|
+
on(op: string, listener: (body: unknown) => void): void;
|
|
52
|
+
close(): void;
|
|
53
|
+
protected send(message: ChannelMessage): void;
|
|
54
|
+
protected heard(message: ChannelMessage | null): void;
|
|
55
|
+
protected answer(id: number, op: string, body: unknown): void;
|
|
56
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
export var ChannelLimits;
|
|
2
|
+
(function (ChannelLimits) {
|
|
3
|
+
/** Requests of the other end answered at once, at most: more are refused, so that a sandbox cannot flood the page. */
|
|
4
|
+
ChannelLimits.RUNNING = 256;
|
|
5
|
+
})(ChannelLimits || (ChannelLimits = {}));
|
|
6
|
+
/**
|
|
7
|
+
* One end of the channel between the page and a sandbox: requests answered by their id, cancelled with a signal,
|
|
8
|
+
* and notices that want no answer. It knows nothing of what the operations mean; both ends are this class.
|
|
9
|
+
*/
|
|
10
|
+
export class Channel {
|
|
11
|
+
constructor(port) {
|
|
12
|
+
this.port = port;
|
|
13
|
+
this.nextId = 1;
|
|
14
|
+
this.waiting = new Map();
|
|
15
|
+
this.running = new Map();
|
|
16
|
+
this.handlers = new Map();
|
|
17
|
+
this.listeners = new Map();
|
|
18
|
+
this.closed = false;
|
|
19
|
+
port.onmessage = event => this.heard(event.data);
|
|
20
|
+
}
|
|
21
|
+
request(op, body, signal) {
|
|
22
|
+
if (this.closed) {
|
|
23
|
+
return Promise.reject(new Error('The channel is closed.'));
|
|
24
|
+
}
|
|
25
|
+
const id = this.nextId++;
|
|
26
|
+
return new Promise((resolve, reject) => {
|
|
27
|
+
this.waiting.set(id, { resolve: resolve, reject });
|
|
28
|
+
signal === null || signal === void 0 ? void 0 : signal.addEventListener('abort', () => {
|
|
29
|
+
if (this.waiting.delete(id)) {
|
|
30
|
+
this.send({ t: 'x', id });
|
|
31
|
+
reject(new DOMException('Cancelled.', 'AbortError'));
|
|
32
|
+
}
|
|
33
|
+
}, { once: true });
|
|
34
|
+
this.send({ t: 'q', id, op, body });
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
notify(op, body) {
|
|
38
|
+
if (!this.closed) {
|
|
39
|
+
this.send({ t: 'n', op, body });
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
handle(op, handler) {
|
|
43
|
+
this.handlers.set(op, handler);
|
|
44
|
+
}
|
|
45
|
+
on(op, listener) {
|
|
46
|
+
this.listeners.set(op, listener);
|
|
47
|
+
}
|
|
48
|
+
close() {
|
|
49
|
+
var _a, _b;
|
|
50
|
+
if (this.closed) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
this.closed = true;
|
|
54
|
+
for (const waiting of this.waiting.values())
|
|
55
|
+
waiting.reject(new Error('The channel is closed.'));
|
|
56
|
+
this.waiting.clear();
|
|
57
|
+
for (const running of this.running.values())
|
|
58
|
+
running.abort();
|
|
59
|
+
this.running.clear();
|
|
60
|
+
this.port.onmessage = null;
|
|
61
|
+
(_b = (_a = this.port).close) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
62
|
+
}
|
|
63
|
+
send(message) {
|
|
64
|
+
try {
|
|
65
|
+
this.port.postMessage(message);
|
|
66
|
+
}
|
|
67
|
+
catch (error) {
|
|
68
|
+
// What cannot be cloned fails the request that carried it, not the channel.
|
|
69
|
+
if (message.t === 'q') {
|
|
70
|
+
const waiting = this.waiting.get(message.id);
|
|
71
|
+
this.waiting.delete(message.id);
|
|
72
|
+
waiting === null || waiting === void 0 ? void 0 : waiting.reject(error instanceof Error ? error : new Error(String(error)));
|
|
73
|
+
}
|
|
74
|
+
else if (message.t === 'a') {
|
|
75
|
+
this.port.postMessage({ t: 'a', id: message.id, error: error instanceof Error ? error.message : String(error) });
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
console.error(error);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
heard(message) {
|
|
83
|
+
var _a, _b;
|
|
84
|
+
if (this.closed || !message || typeof message !== 'object') {
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
switch (message.t) {
|
|
88
|
+
case 'a': {
|
|
89
|
+
const waiting = this.waiting.get(message.id);
|
|
90
|
+
this.waiting.delete(message.id);
|
|
91
|
+
if (message.error !== undefined) {
|
|
92
|
+
waiting === null || waiting === void 0 ? void 0 : waiting.reject(new Error(String(message.error)));
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
waiting === null || waiting === void 0 ? void 0 : waiting.resolve(message.body);
|
|
96
|
+
}
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
case 'x':
|
|
100
|
+
(_a = this.running.get(message.id)) === null || _a === void 0 ? void 0 : _a.abort();
|
|
101
|
+
this.running.delete(message.id);
|
|
102
|
+
return;
|
|
103
|
+
case 'n':
|
|
104
|
+
(_b = this.listeners.get(String(message.op))) === null || _b === void 0 ? void 0 : _b(message.body);
|
|
105
|
+
return;
|
|
106
|
+
case 'q':
|
|
107
|
+
this.answer(message.id, String(message.op), message.body);
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
answer(id, op, body) {
|
|
112
|
+
const handler = this.handlers.get(op);
|
|
113
|
+
if (!handler || this.running.size >= ChannelLimits.RUNNING) {
|
|
114
|
+
this.send({ t: 'a', id, error: handler ? 'Too many requests at once.' : `Nothing here answers ${op}.` });
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
const controller = new AbortController();
|
|
118
|
+
this.running.set(id, controller);
|
|
119
|
+
new Promise(resolve => resolve(handler(body, controller.signal)))
|
|
120
|
+
.then(value => this.running.has(id) && this.send({ t: 'a', id, body: value }), error => this.running.has(id) && this.send({ t: 'a', id, error: error instanceof Error ? error.message : String(error) }))
|
|
121
|
+
.finally(() => this.running.delete(id));
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
//# sourceMappingURL=channel.js.map
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import type { WebApiShape } from '../../extension/web-api-spec.js';
|
|
2
|
+
import type { Channel } from './channel.js';
|
|
3
|
+
/** The key of what stands for a function, a component, a part of Ta or a live object as it crosses. */
|
|
4
|
+
export declare const MARK = "#ta";
|
|
5
|
+
export type CodecMark = {
|
|
6
|
+
[MARK]: 'f';
|
|
7
|
+
id: number;
|
|
8
|
+
} | {
|
|
9
|
+
[MARK]: 'c';
|
|
10
|
+
id: number;
|
|
11
|
+
} | {
|
|
12
|
+
[MARK]: 'part';
|
|
13
|
+
path: string;
|
|
14
|
+
} | {
|
|
15
|
+
[MARK]: 'live';
|
|
16
|
+
id: number;
|
|
17
|
+
values: Record<string, unknown>;
|
|
18
|
+
rest: unknown;
|
|
19
|
+
};
|
|
20
|
+
/** What a side of the channel makes of what only it can: the components of the other's, and the parts of Ta. */
|
|
21
|
+
export interface CodecSide {
|
|
22
|
+
/** What to draw for a component of the other side (the page: a remote root of it). */
|
|
23
|
+
component?(id: number): unknown;
|
|
24
|
+
/** The part of Ta of that path (the page: the component itself, as far as access reaches). */
|
|
25
|
+
part?(path: string): unknown;
|
|
26
|
+
/** The path of a part of Ta this side stands in for (the sandbox: its stand-ins), else undefined. */
|
|
27
|
+
partOf?(value: unknown): string | undefined;
|
|
28
|
+
}
|
|
29
|
+
/** Handles given out together, let go together: the props of a part, the registration of a view. */
|
|
30
|
+
export declare class CodecScope {
|
|
31
|
+
protected readonly codec: Codec;
|
|
32
|
+
readonly ids: Set<number>;
|
|
33
|
+
readonly stops: (() => void)[];
|
|
34
|
+
constructor(codec: Codec);
|
|
35
|
+
release(): void;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Turns what crosses into what a structured clone carries, and back (docs/design/ta-extension-access.md 3.2): a
|
|
39
|
+
* function becomes a handle the other side calls through the channel (its result a promise), a component one the
|
|
40
|
+
* other side draws, a part of Ta its path, the live methods of an object a snapshot sent again as it changes. Both
|
|
41
|
+
* ends have one; neither knows what the values mean.
|
|
42
|
+
*/
|
|
43
|
+
export declare class Codec {
|
|
44
|
+
protected readonly channel: Channel;
|
|
45
|
+
protected readonly side: CodecSide;
|
|
46
|
+
protected nextId: number;
|
|
47
|
+
protected readonly own: Map<number, {
|
|
48
|
+
value: unknown;
|
|
49
|
+
uses: number;
|
|
50
|
+
kind: 'f' | 'c';
|
|
51
|
+
}>;
|
|
52
|
+
protected readonly ids: WeakMap<object, number>;
|
|
53
|
+
protected readonly proxies: Map<number, (...args: unknown[]) => Promise<unknown>>;
|
|
54
|
+
protected readonly lives: Map<number, {
|
|
55
|
+
values: Record<string, unknown>;
|
|
56
|
+
listeners: Set<() => void>;
|
|
57
|
+
}>;
|
|
58
|
+
/** What lives as long as the channel: the handles of calls, whose callbacks the other side may call any time. */
|
|
59
|
+
readonly forever: CodecScope;
|
|
60
|
+
constructor(channel: Channel, side?: CodecSide);
|
|
61
|
+
scope(): CodecScope;
|
|
62
|
+
/** A component this side handed out, by its handle. */
|
|
63
|
+
component(id: number): unknown;
|
|
64
|
+
/** The arguments of a call, each by its shape. */
|
|
65
|
+
encodeArgs(args: readonly unknown[], shapes: readonly (WebApiShape | null)[] | undefined, scope?: CodecScope): unknown[];
|
|
66
|
+
encode(value: unknown, shape?: WebApiShape, scope?: CodecScope, seen?: Set<object>): unknown;
|
|
67
|
+
decode(value: unknown): unknown;
|
|
68
|
+
release(scope: CodecScope): void;
|
|
69
|
+
protected componentMark(value: unknown, scope: CodecScope): unknown;
|
|
70
|
+
protected fields(value: Record<string, unknown>, shape: WebApiShape | undefined, scope: CodecScope, seen: Set<object>, skip?: readonly string[]): Record<string, unknown>;
|
|
71
|
+
/** Its live methods read now and again whenever its own `subscribe` says, the rest as fields. */
|
|
72
|
+
protected liveMark(value: Record<string, unknown>, shape: WebApiShape & object, scope: CodecScope, seen: Set<object>): unknown;
|
|
73
|
+
protected live(mark: Extract<CodecMark, {
|
|
74
|
+
[MARK]: 'live';
|
|
75
|
+
}>): unknown;
|
|
76
|
+
protected hold(value: unknown, kind: 'f' | 'c', scope: CodecScope): number;
|
|
77
|
+
protected proxy(id: number): (...args: unknown[]) => Promise<unknown>;
|
|
78
|
+
/** What a structured clone carries as it is. */
|
|
79
|
+
static cloned(value: object): boolean;
|
|
80
|
+
}
|