@bridgething/browser 0.12.0 → 0.14.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.md +9 -0
- package/dist/index.d.ts +18 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +45 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/wasm/core-wasm.d.ts +65 -7
- package/wasm/core-wasm.js +307 -28
- package/wasm/core-wasm_bg.wasm +0 -0
- package/wasm/core-wasm_bg.wasm.d.ts +22 -7
package/README.md
CHANGED
|
@@ -31,6 +31,15 @@ const phase = await device.push('daemon', binary);
|
|
|
31
31
|
if (phase.kind === 'failed') console.error(phase.reason);
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
+
A webapp's settings are reachable too: `webappConfig` and `setWebappConfig`,
|
|
35
|
+
the shared doc namespace through `webappDoc`, `setWebappDoc` and
|
|
36
|
+
`nextDocChange`, and its settings page or icon through `webappResource`.
|
|
37
|
+
|
|
38
|
+
```ts
|
|
39
|
+
const page = await device.webappResource(app.id, 'settings');
|
|
40
|
+
const html = new Blob([page.bytes], { type: page.mime ?? 'text/html' });
|
|
41
|
+
```
|
|
42
|
+
|
|
34
43
|
`installWebapp` records the second argument as the install's source.
|
|
35
44
|
`nextEvent` reads the progress feed during a push. `fetchManifest`,
|
|
36
45
|
`compositeVersion`, and `otaArtifactUrls` read the release manifest the device
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { BridgeThingMeta, WebappInfo } from '@bridgething/lib';
|
|
1
|
+
import type { BridgeThingMeta, ConfigEntry, DocEntry, LauncherGesture, WebappInfo } from '@bridgething/lib';
|
|
2
2
|
import type { DeviceNicknameReply, WebappActive, WebappSlot, WebappSlots } from '@bridgething/lib/gateway';
|
|
3
|
-
import type { ArtifactUrls, CompositeVersion, InstalledWebapp, OtaDiscoverManifest, OtaUpdateKind, Phase, UpdateEvent } from '../wasm/core-wasm.js';
|
|
3
|
+
import type { ArtifactUrls, CompositeVersion, InstalledWebapp, OtaDiscoverManifest, OtaUpdateKind, Phase, ResourceOrigin, UpdateEvent, WebappBlobEntry, WebappDocChange, WebappResourceBody, WebappResourceKind } from '../wasm/core-wasm.js';
|
|
4
4
|
import { type SerialPort } from './web-serial.js';
|
|
5
|
-
export type { ArtifactDigest, ArtifactUrls, CompositeVersion, InstalledWebapp, OtaDiscoverManifest, OtaManifestChannel, OtaManifestRelease, OtaPatchDigest, OtaReleaseArtifacts, OtaUpdateKind, Phase, PhaseKind, PlanStep, UpdateEvent, } from '../wasm/core-wasm.js';
|
|
5
|
+
export type { ArtifactDigest, ArtifactUrls, CompositeVersion, InstalledWebapp, OtaDiscoverManifest, OtaManifestChannel, OtaManifestRelease, OtaPatchDigest, OtaReleaseArtifacts, OtaUpdateKind, Phase, PhaseKind, PlanStep, ResourceOrigin, UpdateEvent, WebappBlobEntry, WebappDocChange, WebappResourceBody, WebappResourceKind, } from '../wasm/core-wasm.js';
|
|
6
6
|
export { permittedSerialPorts, requestSerialPort, serialAvailable } from './web-serial.js';
|
|
7
7
|
export type { SerialPort } from './web-serial.js';
|
|
8
8
|
export declare const DEFAULT_HOST = "bridgething.local";
|
|
@@ -31,7 +31,22 @@ export declare class Device {
|
|
|
31
31
|
switchWebapp(id: string): Promise<WebappActive>;
|
|
32
32
|
uninstallWebapp(id: string): Promise<WebappActive>;
|
|
33
33
|
setWebappSlot(slot: WebappSlot, id: string | null): Promise<WebappSlots>;
|
|
34
|
+
webappResource(id: string, kind: WebappResourceKind, origin?: ResourceOrigin | null): Promise<WebappResourceBody>;
|
|
35
|
+
webappConfig(id: string): Promise<ConfigEntry[]>;
|
|
36
|
+
setWebappConfig(id: string, key: string, value: string): Promise<void>;
|
|
37
|
+
deleteWebappConfig(id: string, key: string): Promise<void>;
|
|
38
|
+
webappDoc(id: string): Promise<DocEntry[]>;
|
|
39
|
+
webappDocEntry(id: string, key: string): Promise<string | null>;
|
|
40
|
+
setWebappDoc(id: string, key: string, value: string): Promise<void>;
|
|
41
|
+
deleteWebappDoc(id: string, key: string): Promise<void>;
|
|
42
|
+
createBlobHandle(mime: string): string;
|
|
43
|
+
appendBlobHandle(handle: string, base64: string): number;
|
|
44
|
+
putWebappBlob(id: string, key: string, handle: string, onProgress?: (sent: number, total: number) => void): Promise<WebappBlobEntry>;
|
|
45
|
+
deleteWebappBlob(id: string, key: string): Promise<void>;
|
|
46
|
+
webappBlobs(id: string): Promise<WebappBlobEntry[]>;
|
|
47
|
+
nextDocChange(): Promise<WebappDocChange | null>;
|
|
34
48
|
setNickname(nickname: string): Promise<DeviceNicknameReply>;
|
|
49
|
+
setLauncherGesture(gesture: LauncherGesture): Promise<void>;
|
|
35
50
|
installWebapp(bundle: Uint8Array, provenance?: string): Promise<InstalledWebapp>;
|
|
36
51
|
push(kind: Exclude<OtaUpdateKind, 'image'>, artifact: Uint8Array, label?: string): Promise<Phase>;
|
|
37
52
|
pushImage(swu: Uint8Array, zcks: Map<string, Uint8Array>, updateUrlBase?: string): Promise<Phase>;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,QAAQ,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE5G,OAAO,KAAK,EAAE,mBAAmB,EAAE,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE3G,OAAO,KAAK,EACV,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,mBAAmB,EACnB,aAAa,EACb,KAAK,EACL,cAAc,EACd,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M,GAAG,OAAO,CAAC,KAAK,CAAC;IAIjG,SAAS,IAAI,OAAO,CAAC,WAAW,CAAC;IAIjC,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAIvB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAGvB"}
|
package/dist/index.js
CHANGED
|
@@ -75,9 +75,54 @@ export class Device {
|
|
|
75
75
|
setWebappSlot(slot, id) {
|
|
76
76
|
return this.session.setWebappSlot(slot, id ?? undefined);
|
|
77
77
|
}
|
|
78
|
+
webappResource(id, kind, origin) {
|
|
79
|
+
return this.session.webappResource(id, kind, origin);
|
|
80
|
+
}
|
|
81
|
+
webappConfig(id) {
|
|
82
|
+
return this.session.webappConfig(id);
|
|
83
|
+
}
|
|
84
|
+
setWebappConfig(id, key, value) {
|
|
85
|
+
return this.session.setWebappConfig(id, key, value);
|
|
86
|
+
}
|
|
87
|
+
deleteWebappConfig(id, key) {
|
|
88
|
+
return this.session.deleteWebappConfig(id, key);
|
|
89
|
+
}
|
|
90
|
+
webappDoc(id) {
|
|
91
|
+
return this.session.webappDoc(id);
|
|
92
|
+
}
|
|
93
|
+
async webappDocEntry(id, key) {
|
|
94
|
+
return (await this.session.webappDocEntry(id, key)) ?? null;
|
|
95
|
+
}
|
|
96
|
+
setWebappDoc(id, key, value) {
|
|
97
|
+
return this.session.setWebappDoc(id, key, value);
|
|
98
|
+
}
|
|
99
|
+
deleteWebappDoc(id, key) {
|
|
100
|
+
return this.session.deleteWebappDoc(id, key);
|
|
101
|
+
}
|
|
102
|
+
createBlobHandle(mime) {
|
|
103
|
+
return this.session.createBlobHandle(mime);
|
|
104
|
+
}
|
|
105
|
+
appendBlobHandle(handle, base64) {
|
|
106
|
+
return this.session.appendBlobHandle(handle, base64);
|
|
107
|
+
}
|
|
108
|
+
putWebappBlob(id, key, handle, onProgress) {
|
|
109
|
+
return this.session.putWebappBlob(id, key, handle, onProgress);
|
|
110
|
+
}
|
|
111
|
+
deleteWebappBlob(id, key) {
|
|
112
|
+
return this.session.deleteWebappBlob(id, key);
|
|
113
|
+
}
|
|
114
|
+
webappBlobs(id) {
|
|
115
|
+
return this.session.webappBlobs(id);
|
|
116
|
+
}
|
|
117
|
+
nextDocChange() {
|
|
118
|
+
return this.session.nextDocChange();
|
|
119
|
+
}
|
|
78
120
|
setNickname(nickname) {
|
|
79
121
|
return this.session.setNickname(nickname);
|
|
80
122
|
}
|
|
123
|
+
setLauncherGesture(gesture) {
|
|
124
|
+
return this.session.setLauncherGesture(gesture);
|
|
125
|
+
}
|
|
81
126
|
installWebapp(bundle, provenance) {
|
|
82
127
|
return this.session.installWebapp(bundle, provenance);
|
|
83
128
|
}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,gCAAgC,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,gCAAgC,EAAE,MAAM,kBAAkB,CAAC;AAiB9F,OAAO,QAAQ,EAAE,EACf,QAAQ,EACR,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,qBAAqB,GACtB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAmB,MAAM,iBAAiB,CAAC;AAuBrF,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAG3F,MAAM,CAAC,MAAM,YAAY,GAAG,wBAAwB,CAAC;AAErD,IAAI,OAAO,GAA4B,IAAI,CAAC;AAE5C,MAAM,UAAU,KAAK;IACnB,OAAO,KAAK,QAAQ,EAAE,CAAC;IACvB,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,IAAY;IACrC,MAAM,OAAO,GA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qC,EAAE,QAAoB,EAAE,KAAc;QAC9E,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;IAClD,CAAC;IAED,SAAS,CAAC,GAAe,EAAE,IAA6B,EAAE,aAAsB;QAC9E,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,EAAE,IAAI,EAAE,aAAa,CAAC,CAAC;IAC1D,CAAC;IAED,SAAS;QACP,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,CAAC;IAClC,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;IAC/B,CAAC;IAED,KAAK;QACH,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;IACvB,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bridgething/browser",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "Drive a Spotify Car Thing from the browser: the bridgething delivery core compiled to wasm, plus the Web Serial and network transports.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Joey Eamigh <55670930+JoeyEamigh@users.noreply.github.com> (https://github.com/JoeyEamigh)",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"lint": "eslint ."
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@bridgething/lib": "0.
|
|
49
|
+
"@bridgething/lib": "0.14.0"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"typescript": "^6.0.3"
|
package/wasm/core-wasm.d.ts
CHANGED
|
@@ -58,6 +58,34 @@ export interface InstalledWebapp {
|
|
|
58
58
|
provenance?: string;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
+
export type WebappResourceKind = "icon" | "settings" | "overlay";
|
|
62
|
+
|
|
63
|
+
export interface ResourceOrigin {
|
|
64
|
+
url: string;
|
|
65
|
+
sha256: string;
|
|
66
|
+
size: number;
|
|
67
|
+
mime: string | null;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export interface WebappResourceBody {
|
|
71
|
+
digest: string;
|
|
72
|
+
mime: string | null;
|
|
73
|
+
bytes: Uint8Array;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export interface WebappDocChange {
|
|
77
|
+
id: string;
|
|
78
|
+
key: string;
|
|
79
|
+
value: string | null;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export interface WebappBlobEntry {
|
|
83
|
+
key: string;
|
|
84
|
+
sha256: string;
|
|
85
|
+
mime: string;
|
|
86
|
+
size: number;
|
|
87
|
+
}
|
|
88
|
+
|
|
61
89
|
export interface CompositeVersion {
|
|
62
90
|
daemon: string;
|
|
63
91
|
image: string;
|
|
@@ -131,18 +159,33 @@ export class DeliverySession {
|
|
|
131
159
|
free(): void;
|
|
132
160
|
[Symbol.dispose](): void;
|
|
133
161
|
activeWebapp(): Promise<any>;
|
|
162
|
+
appendBlobHandle(handle: string, base64: string): number;
|
|
134
163
|
static attach(link: ByteLink, device_id?: string | null): Promise<DeliverySession>;
|
|
135
164
|
closed(): Promise<void>;
|
|
136
165
|
static connect(url: string, device_id?: string | null): Promise<DeliverySession>;
|
|
166
|
+
createBlobHandle(mime: string): string;
|
|
167
|
+
deleteWebappBlob(id: string, key: string): Promise<void>;
|
|
168
|
+
deleteWebappConfig(id: string, key: string): Promise<void>;
|
|
169
|
+
deleteWebappDoc(id: string, key: string): Promise<void>;
|
|
137
170
|
installWebapp(bundle: Uint8Array, provenance?: string | null): Promise<InstalledWebapp>;
|
|
138
171
|
meta(): Promise<any>;
|
|
172
|
+
nextDocChange(): Promise<WebappDocChange | null>;
|
|
139
173
|
nextEvent(): Promise<UpdateEvent>;
|
|
140
174
|
push(kind: OtaUpdateKind, artifact: Uint8Array, label?: string | null): Promise<Phase>;
|
|
141
175
|
pushImage(swu: Uint8Array, zcks: Map<string, Uint8Array>, update_url_base?: string | null): Promise<Phase>;
|
|
176
|
+
putWebappBlob(id: string, key: string, handle: string, on_progress: ((sent: number, total: number) => void) | null | undefined): Promise<WebappBlobEntry>;
|
|
177
|
+
setLauncherGesture(gesture: "longPress" | "fivePress"): Promise<void>;
|
|
142
178
|
setNickname(nickname: string): Promise<any>;
|
|
179
|
+
setWebappConfig(id: string, key: string, value: string): Promise<void>;
|
|
180
|
+
setWebappDoc(id: string, key: string, value: string): Promise<void>;
|
|
143
181
|
setWebappSlot(slot: "launcher" | "overlay", id?: string | null): Promise<any>;
|
|
144
182
|
switchWebapp(id: string): Promise<any>;
|
|
145
183
|
uninstallWebapp(id: string): Promise<any>;
|
|
184
|
+
webappBlobs(id: string): Promise<WebappBlobEntry[]>;
|
|
185
|
+
webappConfig(id: string): Promise<any>;
|
|
186
|
+
webappDoc(id: string): Promise<any>;
|
|
187
|
+
webappDocEntry(id: string, key: string): Promise<string | undefined>;
|
|
188
|
+
webappResource(id: string, kind: WebappResourceKind, origin: ResourceOrigin | null | undefined): Promise<WebappResourceBody>;
|
|
146
189
|
webappSlots(): Promise<any>;
|
|
147
190
|
webapps(): Promise<any>;
|
|
148
191
|
readonly deviceId: string;
|
|
@@ -167,31 +210,46 @@ export interface InitOutput {
|
|
|
167
210
|
readonly bytelink_new: (a: number) => number;
|
|
168
211
|
readonly bytelink_push: (a: number, b: number, c: number) => void;
|
|
169
212
|
readonly deliverysession_activeWebapp: (a: number) => number;
|
|
213
|
+
readonly deliverysession_appendBlobHandle: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
170
214
|
readonly deliverysession_attach: (a: number, b: number, c: number) => number;
|
|
171
215
|
readonly deliverysession_closed: (a: number) => number;
|
|
172
216
|
readonly deliverysession_connect: (a: number, b: number, c: number, d: number) => number;
|
|
217
|
+
readonly deliverysession_createBlobHandle: (a: number, b: number, c: number, d: number) => void;
|
|
218
|
+
readonly deliverysession_deleteWebappBlob: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
219
|
+
readonly deliverysession_deleteWebappConfig: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
220
|
+
readonly deliverysession_deleteWebappDoc: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
173
221
|
readonly deliverysession_deviceId: (a: number, b: number) => void;
|
|
174
222
|
readonly deliverysession_installWebapp: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
175
223
|
readonly deliverysession_meta: (a: number) => number;
|
|
224
|
+
readonly deliverysession_nextDocChange: (a: number) => number;
|
|
176
225
|
readonly deliverysession_nextEvent: (a: number) => number;
|
|
177
226
|
readonly deliverysession_push: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
|
|
178
227
|
readonly deliverysession_pushImage: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
228
|
+
readonly deliverysession_putWebappBlob: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
229
|
+
readonly deliverysession_setLauncherGesture: (a: number, b: number, c: number) => number;
|
|
179
230
|
readonly deliverysession_setNickname: (a: number, b: number, c: number) => number;
|
|
231
|
+
readonly deliverysession_setWebappConfig: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
|
|
232
|
+
readonly deliverysession_setWebappDoc: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
|
|
180
233
|
readonly deliverysession_setWebappSlot: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
181
234
|
readonly deliverysession_switchWebapp: (a: number, b: number, c: number) => number;
|
|
182
235
|
readonly deliverysession_uninstallWebapp: (a: number, b: number, c: number) => number;
|
|
236
|
+
readonly deliverysession_webappBlobs: (a: number, b: number, c: number) => number;
|
|
237
|
+
readonly deliverysession_webappConfig: (a: number, b: number, c: number) => number;
|
|
238
|
+
readonly deliverysession_webappDoc: (a: number, b: number, c: number) => number;
|
|
239
|
+
readonly deliverysession_webappDocEntry: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
240
|
+
readonly deliverysession_webappResource: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
183
241
|
readonly deliverysession_webappSlots: (a: number) => number;
|
|
184
242
|
readonly deliverysession_webapps: (a: number) => number;
|
|
185
243
|
readonly discoverManifest: (a: number, b: number) => number;
|
|
186
244
|
readonly init: () => void;
|
|
187
245
|
readonly parseCompositeVersion: (a: number, b: number, c: number) => void;
|
|
188
|
-
readonly
|
|
189
|
-
readonly
|
|
190
|
-
readonly
|
|
191
|
-
readonly
|
|
192
|
-
readonly
|
|
193
|
-
readonly
|
|
194
|
-
readonly
|
|
246
|
+
readonly __wasm_bindgen_func_elem_7352: (a: number, b: number, c: number, d: number) => void;
|
|
247
|
+
readonly __wasm_bindgen_func_elem_7354: (a: number, b: number, c: number, d: number) => void;
|
|
248
|
+
readonly __wasm_bindgen_func_elem_4541: (a: number, b: number, c: number) => void;
|
|
249
|
+
readonly __wasm_bindgen_func_elem_4541_2: (a: number, b: number, c: number) => void;
|
|
250
|
+
readonly __wasm_bindgen_func_elem_4541_3: (a: number, b: number, c: number) => void;
|
|
251
|
+
readonly __wasm_bindgen_func_elem_6084: (a: number, b: number) => void;
|
|
252
|
+
readonly __wasm_bindgen_func_elem_5524: (a: number, b: number) => void;
|
|
195
253
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
196
254
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
197
255
|
readonly __wbindgen_export3: (a: number) => void;
|
package/wasm/core-wasm.js
CHANGED
|
@@ -58,6 +58,30 @@ export class DeliverySession {
|
|
|
58
58
|
const ret = wasm.deliverysession_activeWebapp(this.__wbg_ptr);
|
|
59
59
|
return takeObject(ret);
|
|
60
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* @param {string} handle
|
|
63
|
+
* @param {string} base64
|
|
64
|
+
* @returns {number}
|
|
65
|
+
*/
|
|
66
|
+
appendBlobHandle(handle, base64) {
|
|
67
|
+
try {
|
|
68
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
69
|
+
const ptr0 = passStringToWasm0(handle, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
70
|
+
const len0 = WASM_VECTOR_LEN;
|
|
71
|
+
const ptr1 = passStringToWasm0(base64, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
72
|
+
const len1 = WASM_VECTOR_LEN;
|
|
73
|
+
wasm.deliverysession_appendBlobHandle(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
74
|
+
var r0 = getDataViewMemory0().getFloat64(retptr + 8 * 0, true);
|
|
75
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
76
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
77
|
+
if (r3) {
|
|
78
|
+
throw takeObject(r2);
|
|
79
|
+
}
|
|
80
|
+
return r0;
|
|
81
|
+
} finally {
|
|
82
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
61
85
|
/**
|
|
62
86
|
* @param {ByteLink} link
|
|
63
87
|
* @param {string | null} [device_id]
|
|
@@ -90,6 +114,75 @@ export class DeliverySession {
|
|
|
90
114
|
const ret = wasm.deliverysession_connect(ptr0, len0, ptr1, len1);
|
|
91
115
|
return takeObject(ret);
|
|
92
116
|
}
|
|
117
|
+
/**
|
|
118
|
+
* @param {string} mime
|
|
119
|
+
* @returns {string}
|
|
120
|
+
*/
|
|
121
|
+
createBlobHandle(mime) {
|
|
122
|
+
let deferred3_0;
|
|
123
|
+
let deferred3_1;
|
|
124
|
+
try {
|
|
125
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
126
|
+
const ptr0 = passStringToWasm0(mime, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
127
|
+
const len0 = WASM_VECTOR_LEN;
|
|
128
|
+
wasm.deliverysession_createBlobHandle(retptr, this.__wbg_ptr, ptr0, len0);
|
|
129
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
130
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
131
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
132
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
133
|
+
var ptr2 = r0;
|
|
134
|
+
var len2 = r1;
|
|
135
|
+
if (r3) {
|
|
136
|
+
ptr2 = 0; len2 = 0;
|
|
137
|
+
throw takeObject(r2);
|
|
138
|
+
}
|
|
139
|
+
deferred3_0 = ptr2;
|
|
140
|
+
deferred3_1 = len2;
|
|
141
|
+
return getStringFromWasm0(ptr2, len2);
|
|
142
|
+
} finally {
|
|
143
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
144
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* @param {string} id
|
|
149
|
+
* @param {string} key
|
|
150
|
+
* @returns {Promise<void>}
|
|
151
|
+
*/
|
|
152
|
+
deleteWebappBlob(id, key) {
|
|
153
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
154
|
+
const len0 = WASM_VECTOR_LEN;
|
|
155
|
+
const ptr1 = passStringToWasm0(key, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
156
|
+
const len1 = WASM_VECTOR_LEN;
|
|
157
|
+
const ret = wasm.deliverysession_deleteWebappBlob(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
158
|
+
return takeObject(ret);
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* @param {string} id
|
|
162
|
+
* @param {string} key
|
|
163
|
+
* @returns {Promise<void>}
|
|
164
|
+
*/
|
|
165
|
+
deleteWebappConfig(id, key) {
|
|
166
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
167
|
+
const len0 = WASM_VECTOR_LEN;
|
|
168
|
+
const ptr1 = passStringToWasm0(key, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
169
|
+
const len1 = WASM_VECTOR_LEN;
|
|
170
|
+
const ret = wasm.deliverysession_deleteWebappConfig(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
171
|
+
return takeObject(ret);
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* @param {string} id
|
|
175
|
+
* @param {string} key
|
|
176
|
+
* @returns {Promise<void>}
|
|
177
|
+
*/
|
|
178
|
+
deleteWebappDoc(id, key) {
|
|
179
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
180
|
+
const len0 = WASM_VECTOR_LEN;
|
|
181
|
+
const ptr1 = passStringToWasm0(key, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
182
|
+
const len1 = WASM_VECTOR_LEN;
|
|
183
|
+
const ret = wasm.deliverysession_deleteWebappDoc(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
184
|
+
return takeObject(ret);
|
|
185
|
+
}
|
|
93
186
|
/**
|
|
94
187
|
* @returns {string}
|
|
95
188
|
*/
|
|
@@ -129,6 +222,13 @@ export class DeliverySession {
|
|
|
129
222
|
const ret = wasm.deliverysession_meta(this.__wbg_ptr);
|
|
130
223
|
return takeObject(ret);
|
|
131
224
|
}
|
|
225
|
+
/**
|
|
226
|
+
* @returns {WebappDocChange | null}
|
|
227
|
+
*/
|
|
228
|
+
nextDocChange() {
|
|
229
|
+
const ret = wasm.deliverysession_nextDocChange(this.__wbg_ptr);
|
|
230
|
+
return takeObject(ret);
|
|
231
|
+
}
|
|
132
232
|
/**
|
|
133
233
|
* @returns {UpdateEvent}
|
|
134
234
|
*/
|
|
@@ -166,6 +266,33 @@ export class DeliverySession {
|
|
|
166
266
|
const ret = wasm.deliverysession_pushImage(this.__wbg_ptr, ptr0, len0, addHeapObject(zcks), ptr1, len1);
|
|
167
267
|
return takeObject(ret);
|
|
168
268
|
}
|
|
269
|
+
/**
|
|
270
|
+
* @param {string} id
|
|
271
|
+
* @param {string} key
|
|
272
|
+
* @param {string} handle
|
|
273
|
+
* @param {((sent: number, total: number) => void) | null | undefined} on_progress
|
|
274
|
+
* @returns {WebappBlobEntry}
|
|
275
|
+
*/
|
|
276
|
+
putWebappBlob(id, key, handle, on_progress) {
|
|
277
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
278
|
+
const len0 = WASM_VECTOR_LEN;
|
|
279
|
+
const ptr1 = passStringToWasm0(key, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
280
|
+
const len1 = WASM_VECTOR_LEN;
|
|
281
|
+
const ptr2 = passStringToWasm0(handle, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
282
|
+
const len2 = WASM_VECTOR_LEN;
|
|
283
|
+
const ret = wasm.deliverysession_putWebappBlob(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, isLikeNone(on_progress) ? 0 : addHeapObject(on_progress));
|
|
284
|
+
return takeObject(ret);
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* @param {"longPress" | "fivePress"} gesture
|
|
288
|
+
* @returns {Promise<void>}
|
|
289
|
+
*/
|
|
290
|
+
setLauncherGesture(gesture) {
|
|
291
|
+
const ptr0 = passStringToWasm0(gesture, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
292
|
+
const len0 = WASM_VECTOR_LEN;
|
|
293
|
+
const ret = wasm.deliverysession_setLauncherGesture(this.__wbg_ptr, ptr0, len0);
|
|
294
|
+
return takeObject(ret);
|
|
295
|
+
}
|
|
169
296
|
/**
|
|
170
297
|
* @param {string} nickname
|
|
171
298
|
* @returns {Promise<any>}
|
|
@@ -176,6 +303,38 @@ export class DeliverySession {
|
|
|
176
303
|
const ret = wasm.deliverysession_setNickname(this.__wbg_ptr, ptr0, len0);
|
|
177
304
|
return takeObject(ret);
|
|
178
305
|
}
|
|
306
|
+
/**
|
|
307
|
+
* @param {string} id
|
|
308
|
+
* @param {string} key
|
|
309
|
+
* @param {string} value
|
|
310
|
+
* @returns {Promise<void>}
|
|
311
|
+
*/
|
|
312
|
+
setWebappConfig(id, key, value) {
|
|
313
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
314
|
+
const len0 = WASM_VECTOR_LEN;
|
|
315
|
+
const ptr1 = passStringToWasm0(key, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
316
|
+
const len1 = WASM_VECTOR_LEN;
|
|
317
|
+
const ptr2 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
318
|
+
const len2 = WASM_VECTOR_LEN;
|
|
319
|
+
const ret = wasm.deliverysession_setWebappConfig(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
320
|
+
return takeObject(ret);
|
|
321
|
+
}
|
|
322
|
+
/**
|
|
323
|
+
* @param {string} id
|
|
324
|
+
* @param {string} key
|
|
325
|
+
* @param {string} value
|
|
326
|
+
* @returns {Promise<void>}
|
|
327
|
+
*/
|
|
328
|
+
setWebappDoc(id, key, value) {
|
|
329
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
330
|
+
const len0 = WASM_VECTOR_LEN;
|
|
331
|
+
const ptr1 = passStringToWasm0(key, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
332
|
+
const len1 = WASM_VECTOR_LEN;
|
|
333
|
+
const ptr2 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
334
|
+
const len2 = WASM_VECTOR_LEN;
|
|
335
|
+
const ret = wasm.deliverysession_setWebappDoc(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
336
|
+
return takeObject(ret);
|
|
337
|
+
}
|
|
179
338
|
/**
|
|
180
339
|
* @param {"launcher" | "overlay"} slot
|
|
181
340
|
* @param {string | null} [id]
|
|
@@ -209,6 +368,63 @@ export class DeliverySession {
|
|
|
209
368
|
const ret = wasm.deliverysession_uninstallWebapp(this.__wbg_ptr, ptr0, len0);
|
|
210
369
|
return takeObject(ret);
|
|
211
370
|
}
|
|
371
|
+
/**
|
|
372
|
+
* @param {string} id
|
|
373
|
+
* @returns {WebappBlobEntry[]}
|
|
374
|
+
*/
|
|
375
|
+
webappBlobs(id) {
|
|
376
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
377
|
+
const len0 = WASM_VECTOR_LEN;
|
|
378
|
+
const ret = wasm.deliverysession_webappBlobs(this.__wbg_ptr, ptr0, len0);
|
|
379
|
+
return takeObject(ret);
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
382
|
+
* @param {string} id
|
|
383
|
+
* @returns {Promise<any>}
|
|
384
|
+
*/
|
|
385
|
+
webappConfig(id) {
|
|
386
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
387
|
+
const len0 = WASM_VECTOR_LEN;
|
|
388
|
+
const ret = wasm.deliverysession_webappConfig(this.__wbg_ptr, ptr0, len0);
|
|
389
|
+
return takeObject(ret);
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* @param {string} id
|
|
393
|
+
* @returns {Promise<any>}
|
|
394
|
+
*/
|
|
395
|
+
webappDoc(id) {
|
|
396
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
397
|
+
const len0 = WASM_VECTOR_LEN;
|
|
398
|
+
const ret = wasm.deliverysession_webappDoc(this.__wbg_ptr, ptr0, len0);
|
|
399
|
+
return takeObject(ret);
|
|
400
|
+
}
|
|
401
|
+
/**
|
|
402
|
+
* @param {string} id
|
|
403
|
+
* @param {string} key
|
|
404
|
+
* @returns {Promise<string | undefined>}
|
|
405
|
+
*/
|
|
406
|
+
webappDocEntry(id, key) {
|
|
407
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
408
|
+
const len0 = WASM_VECTOR_LEN;
|
|
409
|
+
const ptr1 = passStringToWasm0(key, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
410
|
+
const len1 = WASM_VECTOR_LEN;
|
|
411
|
+
const ret = wasm.deliverysession_webappDocEntry(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
412
|
+
return takeObject(ret);
|
|
413
|
+
}
|
|
414
|
+
/**
|
|
415
|
+
* @param {string} id
|
|
416
|
+
* @param {WebappResourceKind} kind
|
|
417
|
+
* @param {ResourceOrigin | null | undefined} origin
|
|
418
|
+
* @returns {WebappResourceBody}
|
|
419
|
+
*/
|
|
420
|
+
webappResource(id, kind, origin) {
|
|
421
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
422
|
+
const len0 = WASM_VECTOR_LEN;
|
|
423
|
+
const ptr1 = passStringToWasm0(kind, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
424
|
+
const len1 = WASM_VECTOR_LEN;
|
|
425
|
+
const ret = wasm.deliverysession_webappResource(this.__wbg_ptr, ptr0, len0, ptr1, len1, addHeapObject(origin));
|
|
426
|
+
return takeObject(ret);
|
|
427
|
+
}
|
|
212
428
|
/**
|
|
213
429
|
* @returns {Promise<any>}
|
|
214
430
|
*/
|
|
@@ -303,6 +519,10 @@ function __wbg_get_imports() {
|
|
|
303
519
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
304
520
|
return addHeapObject(ret);
|
|
305
521
|
},
|
|
522
|
+
__wbg_Number_9a4e0ecb0fa16705: function(arg0) {
|
|
523
|
+
const ret = Number(getObject(arg0));
|
|
524
|
+
return ret;
|
|
525
|
+
},
|
|
306
526
|
__wbg_String_8564e559799eccda: function(arg0, arg1) {
|
|
307
527
|
const ret = String(getObject(arg1));
|
|
308
528
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -310,6 +530,12 @@ function __wbg_get_imports() {
|
|
|
310
530
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
311
531
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
312
532
|
},
|
|
533
|
+
__wbg___wbindgen_bigint_get_as_i64_d968e41184ae354f: function(arg0, arg1) {
|
|
534
|
+
const v = getObject(arg1);
|
|
535
|
+
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
536
|
+
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
537
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
538
|
+
},
|
|
313
539
|
__wbg___wbindgen_boolean_get_fa956cfa2d1bd751: function(arg0) {
|
|
314
540
|
const v = getObject(arg0);
|
|
315
541
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
@@ -322,10 +548,22 @@ function __wbg_get_imports() {
|
|
|
322
548
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
323
549
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
324
550
|
},
|
|
551
|
+
__wbg___wbindgen_in_aca499c5de7ff5e5: function(arg0, arg1) {
|
|
552
|
+
const ret = getObject(arg0) in getObject(arg1);
|
|
553
|
+
return ret;
|
|
554
|
+
},
|
|
555
|
+
__wbg___wbindgen_is_bigint_2f76dc55065b4273: function(arg0) {
|
|
556
|
+
const ret = typeof(getObject(arg0)) === 'bigint';
|
|
557
|
+
return ret;
|
|
558
|
+
},
|
|
325
559
|
__wbg___wbindgen_is_function_1ff95bcc5517c252: function(arg0) {
|
|
326
560
|
const ret = typeof(getObject(arg0)) === 'function';
|
|
327
561
|
return ret;
|
|
328
562
|
},
|
|
563
|
+
__wbg___wbindgen_is_null_ea9085d691f535d3: function(arg0) {
|
|
564
|
+
const ret = getObject(arg0) === null;
|
|
565
|
+
return ret;
|
|
566
|
+
},
|
|
329
567
|
__wbg___wbindgen_is_object_a27215656b807791: function(arg0) {
|
|
330
568
|
const val = getObject(arg0);
|
|
331
569
|
const ret = typeof(val) === 'object' && val !== null;
|
|
@@ -339,6 +577,20 @@ function __wbg_get_imports() {
|
|
|
339
577
|
const ret = getObject(arg0) === undefined;
|
|
340
578
|
return ret;
|
|
341
579
|
},
|
|
580
|
+
__wbg___wbindgen_jsval_eq_e659fcf7b0e32763: function(arg0, arg1) {
|
|
581
|
+
const ret = getObject(arg0) === getObject(arg1);
|
|
582
|
+
return ret;
|
|
583
|
+
},
|
|
584
|
+
__wbg___wbindgen_jsval_loose_eq_db4c3b15f63fc170: function(arg0, arg1) {
|
|
585
|
+
const ret = getObject(arg0) == getObject(arg1);
|
|
586
|
+
return ret;
|
|
587
|
+
},
|
|
588
|
+
__wbg___wbindgen_number_get_394265ed1e1b84ee: function(arg0, arg1) {
|
|
589
|
+
const obj = getObject(arg1);
|
|
590
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
591
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
592
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
593
|
+
},
|
|
342
594
|
__wbg___wbindgen_string_get_b0ca35b86a603356: function(arg0, arg1) {
|
|
343
595
|
const obj = getObject(arg1);
|
|
344
596
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
@@ -376,6 +628,14 @@ function __wbg_get_imports() {
|
|
|
376
628
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3));
|
|
377
629
|
return addHeapObject(ret);
|
|
378
630
|
}, arguments); },
|
|
631
|
+
__wbg_cancel_3983a93e24cc66b3: function(arg0) {
|
|
632
|
+
const ret = getObject(arg0).cancel();
|
|
633
|
+
return addHeapObject(ret);
|
|
634
|
+
},
|
|
635
|
+
__wbg_cancel_3ba68e9bb6d68b37: function(arg0) {
|
|
636
|
+
const ret = getObject(arg0).cancel();
|
|
637
|
+
return addHeapObject(ret);
|
|
638
|
+
},
|
|
379
639
|
__wbg_close_c65ca0257e895318: function() { return handleError(function (arg0) {
|
|
380
640
|
getObject(arg0).close();
|
|
381
641
|
}, arguments); },
|
|
@@ -429,6 +689,10 @@ function __wbg_get_imports() {
|
|
|
429
689
|
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
430
690
|
return addHeapObject(ret);
|
|
431
691
|
}, arguments); },
|
|
692
|
+
__wbg_get_with_ref_key_6412cf3094599694: function(arg0, arg1) {
|
|
693
|
+
const ret = getObject(arg0)[getObject(arg1)];
|
|
694
|
+
return addHeapObject(ret);
|
|
695
|
+
},
|
|
432
696
|
__wbg_headers_cf9c80f30e2a4eff: function(arg0) {
|
|
433
697
|
const ret = getObject(arg0).headers;
|
|
434
698
|
return addHeapObject(ret);
|
|
@@ -483,6 +747,10 @@ function __wbg_get_imports() {
|
|
|
483
747
|
const ret = result;
|
|
484
748
|
return ret;
|
|
485
749
|
},
|
|
750
|
+
__wbg_isSafeInteger_04f36e4056f1b851: function(arg0) {
|
|
751
|
+
const ret = Number.isSafeInteger(getObject(arg0));
|
|
752
|
+
return ret;
|
|
753
|
+
},
|
|
486
754
|
__wbg_iterator_6f722e4a93058b71: function() {
|
|
487
755
|
const ret = Symbol.iterator;
|
|
488
756
|
return addHeapObject(ret);
|
|
@@ -541,7 +809,7 @@ function __wbg_get_imports() {
|
|
|
541
809
|
const a = state0.a;
|
|
542
810
|
state0.a = 0;
|
|
543
811
|
try {
|
|
544
|
-
return
|
|
812
|
+
return __wasm_bindgen_func_elem_7354(a, state0.b, arg0, arg1);
|
|
545
813
|
} finally {
|
|
546
814
|
state0.a = a;
|
|
547
815
|
}
|
|
@@ -568,6 +836,10 @@ function __wbg_get_imports() {
|
|
|
568
836
|
const ret = Date.now();
|
|
569
837
|
return ret;
|
|
570
838
|
}, arguments); },
|
|
839
|
+
__wbg_now_86c0d4ba3fa605b8: function() {
|
|
840
|
+
const ret = Date.now();
|
|
841
|
+
return ret;
|
|
842
|
+
},
|
|
571
843
|
__wbg_now_e7c6795a7f81e10f: function(arg0) {
|
|
572
844
|
const ret = getObject(arg0).now();
|
|
573
845
|
return ret;
|
|
@@ -597,7 +869,7 @@ function __wbg_get_imports() {
|
|
|
597
869
|
__wbg_send_a321b376d40ec867: function() { return handleError(function (arg0, arg1, arg2) {
|
|
598
870
|
getObject(arg0).send(getArrayU8FromWasm0(arg1, arg2));
|
|
599
871
|
}, arguments); },
|
|
600
|
-
|
|
872
|
+
__wbg_setTimeout_9af5dc3010a3b990: function(arg0, arg1) {
|
|
601
873
|
setTimeout(getObject(arg0), arg1);
|
|
602
874
|
},
|
|
603
875
|
__wbg_set_0de9c62c23d04ad5: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
@@ -610,6 +882,10 @@ function __wbg_get_imports() {
|
|
|
610
882
|
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
611
883
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
612
884
|
},
|
|
885
|
+
__wbg_set_8535240470bf2500: function() { return handleError(function (arg0, arg1, arg2) {
|
|
886
|
+
const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
|
|
887
|
+
return ret;
|
|
888
|
+
}, arguments); },
|
|
613
889
|
__wbg_set_8a16b38e4805b298: function(arg0, arg1, arg2) {
|
|
614
890
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
615
891
|
},
|
|
@@ -683,34 +959,37 @@ function __wbg_get_imports() {
|
|
|
683
959
|
const ret = getObject(arg0).value;
|
|
684
960
|
return addHeapObject(ret);
|
|
685
961
|
},
|
|
962
|
+
__wbg_warn_b1370d804fa3e259: function(arg0) {
|
|
963
|
+
console.warn(getObject(arg0));
|
|
964
|
+
},
|
|
686
965
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
687
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
688
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
966
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1165, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
967
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_7352);
|
|
689
968
|
return addHeapObject(ret);
|
|
690
969
|
},
|
|
691
970
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
692
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx:
|
|
693
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
971
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 974, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
972
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_4541);
|
|
694
973
|
return addHeapObject(ret);
|
|
695
974
|
},
|
|
696
975
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
697
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx:
|
|
698
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
976
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 974, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
977
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_4541_2);
|
|
699
978
|
return addHeapObject(ret);
|
|
700
979
|
},
|
|
701
980
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
702
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx:
|
|
703
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
981
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 974, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
982
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_4541_3);
|
|
704
983
|
return addHeapObject(ret);
|
|
705
984
|
},
|
|
706
985
|
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
707
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
708
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
986
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1077, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
987
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_6084);
|
|
709
988
|
return addHeapObject(ret);
|
|
710
989
|
},
|
|
711
990
|
__wbindgen_cast_0000000000000006: function(arg0, arg1) {
|
|
712
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
713
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
991
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 989, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
992
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_5524);
|
|
714
993
|
return addHeapObject(ret);
|
|
715
994
|
},
|
|
716
995
|
__wbindgen_cast_0000000000000007: function(arg0) {
|
|
@@ -742,30 +1021,30 @@ function __wbg_get_imports() {
|
|
|
742
1021
|
};
|
|
743
1022
|
}
|
|
744
1023
|
|
|
745
|
-
function
|
|
746
|
-
wasm.
|
|
1024
|
+
function __wasm_bindgen_func_elem_6084(arg0, arg1) {
|
|
1025
|
+
wasm.__wasm_bindgen_func_elem_6084(arg0, arg1);
|
|
747
1026
|
}
|
|
748
1027
|
|
|
749
|
-
function
|
|
750
|
-
wasm.
|
|
1028
|
+
function __wasm_bindgen_func_elem_5524(arg0, arg1) {
|
|
1029
|
+
wasm.__wasm_bindgen_func_elem_5524(arg0, arg1);
|
|
751
1030
|
}
|
|
752
1031
|
|
|
753
|
-
function
|
|
754
|
-
wasm.
|
|
1032
|
+
function __wasm_bindgen_func_elem_4541(arg0, arg1, arg2) {
|
|
1033
|
+
wasm.__wasm_bindgen_func_elem_4541(arg0, arg1, addHeapObject(arg2));
|
|
755
1034
|
}
|
|
756
1035
|
|
|
757
|
-
function
|
|
758
|
-
wasm.
|
|
1036
|
+
function __wasm_bindgen_func_elem_4541_2(arg0, arg1, arg2) {
|
|
1037
|
+
wasm.__wasm_bindgen_func_elem_4541_2(arg0, arg1, addHeapObject(arg2));
|
|
759
1038
|
}
|
|
760
1039
|
|
|
761
|
-
function
|
|
762
|
-
wasm.
|
|
1040
|
+
function __wasm_bindgen_func_elem_4541_3(arg0, arg1, arg2) {
|
|
1041
|
+
wasm.__wasm_bindgen_func_elem_4541_3(arg0, arg1, addHeapObject(arg2));
|
|
763
1042
|
}
|
|
764
1043
|
|
|
765
|
-
function
|
|
1044
|
+
function __wasm_bindgen_func_elem_7352(arg0, arg1, arg2) {
|
|
766
1045
|
try {
|
|
767
1046
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
768
|
-
wasm.
|
|
1047
|
+
wasm.__wasm_bindgen_func_elem_7352(retptr, arg0, arg1, addHeapObject(arg2));
|
|
769
1048
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
770
1049
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
771
1050
|
if (r1) {
|
|
@@ -776,8 +1055,8 @@ function __wasm_bindgen_func_elem_6600(arg0, arg1, arg2) {
|
|
|
776
1055
|
}
|
|
777
1056
|
}
|
|
778
1057
|
|
|
779
|
-
function
|
|
780
|
-
wasm.
|
|
1058
|
+
function __wasm_bindgen_func_elem_7354(arg0, arg1, arg2, arg3) {
|
|
1059
|
+
wasm.__wasm_bindgen_func_elem_7354(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
781
1060
|
}
|
|
782
1061
|
|
|
783
1062
|
|
package/wasm/core-wasm_bg.wasm
CHANGED
|
Binary file
|
|
@@ -8,31 +8,46 @@ export const bytelink_close: (a: number) => void;
|
|
|
8
8
|
export const bytelink_new: (a: number) => number;
|
|
9
9
|
export const bytelink_push: (a: number, b: number, c: number) => void;
|
|
10
10
|
export const deliverysession_activeWebapp: (a: number) => number;
|
|
11
|
+
export const deliverysession_appendBlobHandle: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
11
12
|
export const deliverysession_attach: (a: number, b: number, c: number) => number;
|
|
12
13
|
export const deliverysession_closed: (a: number) => number;
|
|
13
14
|
export const deliverysession_connect: (a: number, b: number, c: number, d: number) => number;
|
|
15
|
+
export const deliverysession_createBlobHandle: (a: number, b: number, c: number, d: number) => void;
|
|
16
|
+
export const deliverysession_deleteWebappBlob: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
17
|
+
export const deliverysession_deleteWebappConfig: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
18
|
+
export const deliverysession_deleteWebappDoc: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
14
19
|
export const deliverysession_deviceId: (a: number, b: number) => void;
|
|
15
20
|
export const deliverysession_installWebapp: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
16
21
|
export const deliverysession_meta: (a: number) => number;
|
|
22
|
+
export const deliverysession_nextDocChange: (a: number) => number;
|
|
17
23
|
export const deliverysession_nextEvent: (a: number) => number;
|
|
18
24
|
export const deliverysession_push: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
|
|
19
25
|
export const deliverysession_pushImage: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
26
|
+
export const deliverysession_putWebappBlob: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
27
|
+
export const deliverysession_setLauncherGesture: (a: number, b: number, c: number) => number;
|
|
20
28
|
export const deliverysession_setNickname: (a: number, b: number, c: number) => number;
|
|
29
|
+
export const deliverysession_setWebappConfig: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
|
|
30
|
+
export const deliverysession_setWebappDoc: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
|
|
21
31
|
export const deliverysession_setWebappSlot: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
22
32
|
export const deliverysession_switchWebapp: (a: number, b: number, c: number) => number;
|
|
23
33
|
export const deliverysession_uninstallWebapp: (a: number, b: number, c: number) => number;
|
|
34
|
+
export const deliverysession_webappBlobs: (a: number, b: number, c: number) => number;
|
|
35
|
+
export const deliverysession_webappConfig: (a: number, b: number, c: number) => number;
|
|
36
|
+
export const deliverysession_webappDoc: (a: number, b: number, c: number) => number;
|
|
37
|
+
export const deliverysession_webappDocEntry: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
38
|
+
export const deliverysession_webappResource: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
24
39
|
export const deliverysession_webappSlots: (a: number) => number;
|
|
25
40
|
export const deliverysession_webapps: (a: number) => number;
|
|
26
41
|
export const discoverManifest: (a: number, b: number) => number;
|
|
27
42
|
export const init: () => void;
|
|
28
43
|
export const parseCompositeVersion: (a: number, b: number, c: number) => void;
|
|
29
|
-
export const
|
|
30
|
-
export const
|
|
31
|
-
export const
|
|
32
|
-
export const
|
|
33
|
-
export const
|
|
34
|
-
export const
|
|
35
|
-
export const
|
|
44
|
+
export const __wasm_bindgen_func_elem_7352: (a: number, b: number, c: number, d: number) => void;
|
|
45
|
+
export const __wasm_bindgen_func_elem_7354: (a: number, b: number, c: number, d: number) => void;
|
|
46
|
+
export const __wasm_bindgen_func_elem_4541: (a: number, b: number, c: number) => void;
|
|
47
|
+
export const __wasm_bindgen_func_elem_4541_2: (a: number, b: number, c: number) => void;
|
|
48
|
+
export const __wasm_bindgen_func_elem_4541_3: (a: number, b: number, c: number) => void;
|
|
49
|
+
export const __wasm_bindgen_func_elem_6084: (a: number, b: number) => void;
|
|
50
|
+
export const __wasm_bindgen_func_elem_5524: (a: number, b: number) => void;
|
|
36
51
|
export const __wbindgen_export: (a: number, b: number) => number;
|
|
37
52
|
export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
38
53
|
export const __wbindgen_export3: (a: number) => void;
|