@wix/himalaya-cli 0.1716.0 → 0.1718.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/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/local-db/src/index.d.ts +65 -6
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/sdk-types/src/capabilities.generated.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/audio-record.mjs +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/calendar.mjs +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/calls.mjs +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/contacts.mjs +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/local-db.mjs +55 -3
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/location.mjs +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/motion.mjs +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/photos.mjs +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdk-types.mjs +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/tasks.mjs +1 -1
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{b4828fbd7a53fb443702c941d578a5af3fdbb7d53defdbaeccc4e8b639dde683.bin → 74e5b76ecf38392d7eb3f9a9512d60a0675de85d411c9c56293e123152b3f70b.bin} +1 -1
- package/dist/browser-plane/sw.js +6 -6
- package/dist/cli.mjs +111 -50
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/branded-lite-site-binding.md +18 -0
- package/guides/designing-himi-screens.md +17 -0
- package/guides/sdk-reference.json +62 -6
- package/guides/web-page-sdk-reference.md +1 -1
- package/package.json +2 -2
|
@@ -65,10 +65,69 @@ export interface LocalQuery {
|
|
|
65
65
|
export declare function getAll(entity: string): Promise<DbEntity[]>;
|
|
66
66
|
/** One row by `id`, or null. */
|
|
67
67
|
export declare function get(entity: string, id: string): Promise<DbEntity | null>;
|
|
68
|
-
/** Insert or replace a row (matched by its `id`).
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
68
|
+
/** Insert or replace a row (matched by its `id`).
|
|
69
|
+
*
|
|
70
|
+
* With `expectPrincipal` the write is principal-bound: it goes through {@link batch}, so it is
|
|
71
|
+
* refused with a `principal_mismatch` {@link LocalDbError} instead of landing in another
|
|
72
|
+
* member's partition. */
|
|
73
|
+
export declare function upsert(entity: string, object: DbEntity, opts?: WriteOptions): Promise<void>;
|
|
74
|
+
/** Remove a row by `id` (no-op if missing). `expectPrincipal` binds it as {@link upsert} does. */
|
|
75
|
+
export declare function remove(entity: string, id: string, opts?: WriteOptions): Promise<void>;
|
|
76
|
+
/** Options for a principal-bound write. */
|
|
77
|
+
export interface WriteOptions {
|
|
78
|
+
/** A token from {@link principal}. The host refuses the write (and writes nothing) when the
|
|
79
|
+
* partition it would land in now belongs to anyone else. */
|
|
80
|
+
expectPrincipal?: string;
|
|
81
|
+
}
|
|
82
|
+
/** One write of a {@link batch}. */
|
|
83
|
+
export type BatchWrite = {
|
|
84
|
+
op: "upsert";
|
|
85
|
+
entity: string;
|
|
86
|
+
object: DbEntity;
|
|
87
|
+
} | {
|
|
88
|
+
op: "remove";
|
|
89
|
+
entity: string;
|
|
90
|
+
id: string;
|
|
91
|
+
};
|
|
92
|
+
export type LocalDbErrorCode = "principal_mismatch" | "unbindable" | "failed";
|
|
93
|
+
/** The typed rejection of a principal-bound write. A plain Error carrying `code` — worker bundles
|
|
94
|
+
* are compiled to a target without class syntax, so this is a factory, not a subclass.
|
|
95
|
+
* - `principal_mismatch`: the partition changed hands since the token was read. Nothing was written.
|
|
96
|
+
* - `unbindable`: this host keeps no per-member partition (no principal wired, or web storage with
|
|
97
|
+
* no per-account database), so no token can bind the write. Nothing was written.
|
|
98
|
+
* - `failed`: the host refused the batch for another reason it reported. Nothing was written. */
|
|
99
|
+
export interface LocalDbError extends Error {
|
|
100
|
+
name: "LocalDbError";
|
|
101
|
+
code: LocalDbErrorCode;
|
|
102
|
+
}
|
|
103
|
+
/** Build a {@link LocalDbError}: what {@link batch} throws when the host refuses it. Exported so a
|
|
104
|
+
* test fake can reject a bound write exactly as a host does. */
|
|
105
|
+
export declare function localDbError(code: LocalDbErrorCode, message: string): LocalDbError;
|
|
106
|
+
/** Narrow a caught value: `catch (e) { if (isLocalDbError(e) && e.code === "principal_mismatch") … }`. */
|
|
107
|
+
export declare function isLocalDbError(e: unknown): e is LocalDbError;
|
|
108
|
+
/**
|
|
109
|
+
* An opaque token for the partition local-db writes land in NOW: the signed-in principal, the
|
|
110
|
+
* tenant and the active business, as this host scopes them. Equal tokens mean the same partition.
|
|
111
|
+
* Read it once you have checked who you are writing for, and pass it to every write that must not
|
|
112
|
+
* reach anyone else's rows.
|
|
113
|
+
*
|
|
114
|
+
* `null` when the host cannot bind writes: a binary older than capability `version` 3, or a host with
|
|
115
|
+
* no per-member partition (no principal wired; web storage without a per-account database). A
|
|
116
|
+
* bound write there is refused, never written unchecked. On an old binary the dispatcher does not
|
|
117
|
+
* know the `batch` verb either, so a bound write there rejects with nothing written — never unchecked.
|
|
118
|
+
*/
|
|
119
|
+
export declare function principal(): Promise<string | null>;
|
|
120
|
+
/**
|
|
121
|
+
* Apply several writes together, across collections, to one partition.
|
|
122
|
+
*
|
|
123
|
+
* Every write is validated (declared entity, string `id`) before any is applied, so a bad write
|
|
124
|
+
* fails the batch with nothing written. With `expectPrincipal`, the token is compared against the
|
|
125
|
+
* partition the batch resolves, in the same step that applies it: a switch before that step is
|
|
126
|
+
* refused with `principal_mismatch` and nothing written; a switch after it cannot move the batch,
|
|
127
|
+
* which lands whole in the partition the token named. Writes apply in order. A process killed
|
|
128
|
+
* part-way through can leave a prefix applied: batch is not crash-atomic across collections.
|
|
129
|
+
*/
|
|
130
|
+
export declare function batch(writes: readonly BatchWrite[], opts?: WriteOptions): Promise<void>;
|
|
72
131
|
/** Drop the whole collection. */
|
|
73
132
|
export declare function purge(entity: string): Promise<void>;
|
|
74
133
|
/** Rows of a collection matching `q` (filter + sort + paginate), evaluated on
|
|
@@ -97,5 +156,5 @@ export declare function queueDepth(): Promise<number>;
|
|
|
97
156
|
/** Drain (clear) the queue; returns how many writes were drained. */
|
|
98
157
|
export declare function drainQueue(): Promise<number>;
|
|
99
158
|
/** Capability version, for bundles that gate on min binary version. v2 adds the
|
|
100
|
-
* query DSL (query/count)
|
|
101
|
-
export declare const version =
|
|
159
|
+
* query DSL (query/count); v3 adds `principal()` and principal-bound `batch()`. */
|
|
160
|
+
export declare const version = 3;
|
|
@@ -20,7 +20,7 @@ export declare const CAPABILITY_REGISTRY: {
|
|
|
20
20
|
readonly keyboard: readonly ["dismiss"];
|
|
21
21
|
readonly legacy_import: readonly ["ack", "read"];
|
|
22
22
|
readonly live_activity: readonly ["end", "start", "update"];
|
|
23
|
-
readonly local_database: readonly ["availability", "count", "get", "getAll", "purge", "query", "queueDepth", "queueDrain", "queueEnqueue", "remove", "upsert"];
|
|
23
|
+
readonly local_database: readonly ["availability", "batch", "count", "get", "getAll", "principal", "purge", "query", "queueDepth", "queueDrain", "queueEnqueue", "remove", "upsert"];
|
|
24
24
|
readonly location: readonly ["backgroundStart", "backgroundStop", "getCurrent", "getPermissionStatus", "regionAdd", "regionClear", "regionList", "regionNext", "regionRemove", "regionSupport", "requestPermission", "watchNext", "watchStart", "watchStop"];
|
|
25
25
|
readonly media_playback: readonly ["download", "getCapabilities", "getState", "next", "pause", "pictureInPicture", "play", "presentFullscreen", "previous", "release", "removeDownload", "seek", "seekTo", "setMuted", "setQueue", "setRate", "skip", "status", "stop", "subscribeStatus", "unsubscribeStatus"];
|
|
26
26
|
readonly motion: readonly ["availability", "getAltitude", "getHeading", "getPermissionStatus", "getStepCount", "openStepHistorySetup", "requestPermission", "watchNext", "watchStart", "watchStop"];
|
|
@@ -35,7 +35,7 @@ var CAPABILITY_REGISTRY = {
|
|
|
35
35
|
"keyboard": ["dismiss"],
|
|
36
36
|
"legacy_import": ["ack", "read"],
|
|
37
37
|
"live_activity": ["end", "start", "update"],
|
|
38
|
-
"local_database": ["availability", "count", "get", "getAll", "purge", "query", "queueDepth", "queueDrain", "queueEnqueue", "remove", "upsert"],
|
|
38
|
+
"local_database": ["availability", "batch", "count", "get", "getAll", "principal", "purge", "query", "queueDepth", "queueDrain", "queueEnqueue", "remove", "upsert"],
|
|
39
39
|
"location": ["backgroundStart", "backgroundStop", "getCurrent", "getPermissionStatus", "regionAdd", "regionClear", "regionList", "regionNext", "regionRemove", "regionSupport", "requestPermission", "watchNext", "watchStart", "watchStop"],
|
|
40
40
|
"media_playback": ["download", "getCapabilities", "getState", "next", "pause", "pictureInPicture", "play", "presentFullscreen", "previous", "release", "removeDownload", "seek", "seekTo", "setMuted", "setQueue", "setRate", "skip", "status", "stop", "subscribeStatus", "unsubscribeStatus"],
|
|
41
41
|
"motion": ["availability", "getAltitude", "getHeading", "getPermissionStatus", "getStepCount", "openStepHistorySetup", "requestPermission", "watchNext", "watchStart", "watchStop"],
|
|
@@ -35,7 +35,7 @@ var CAPABILITY_REGISTRY = {
|
|
|
35
35
|
"keyboard": ["dismiss"],
|
|
36
36
|
"legacy_import": ["ack", "read"],
|
|
37
37
|
"live_activity": ["end", "start", "update"],
|
|
38
|
-
"local_database": ["availability", "count", "get", "getAll", "purge", "query", "queueDepth", "queueDrain", "queueEnqueue", "remove", "upsert"],
|
|
38
|
+
"local_database": ["availability", "batch", "count", "get", "getAll", "principal", "purge", "query", "queueDepth", "queueDrain", "queueEnqueue", "remove", "upsert"],
|
|
39
39
|
"location": ["backgroundStart", "backgroundStop", "getCurrent", "getPermissionStatus", "regionAdd", "regionClear", "regionList", "regionNext", "regionRemove", "regionSupport", "requestPermission", "watchNext", "watchStart", "watchStop"],
|
|
40
40
|
"media_playback": ["download", "getCapabilities", "getState", "next", "pause", "pictureInPicture", "play", "presentFullscreen", "previous", "release", "removeDownload", "seek", "seekTo", "setMuted", "setQueue", "setRate", "skip", "status", "stop", "subscribeStatus", "unsubscribeStatus"],
|
|
41
41
|
"motion": ["availability", "getAltitude", "getHeading", "getPermissionStatus", "getStepCount", "openStepHistorySetup", "requestPermission", "watchNext", "watchStart", "watchStop"],
|
|
@@ -35,7 +35,7 @@ var CAPABILITY_REGISTRY = {
|
|
|
35
35
|
"keyboard": ["dismiss"],
|
|
36
36
|
"legacy_import": ["ack", "read"],
|
|
37
37
|
"live_activity": ["end", "start", "update"],
|
|
38
|
-
"local_database": ["availability", "count", "get", "getAll", "purge", "query", "queueDepth", "queueDrain", "queueEnqueue", "remove", "upsert"],
|
|
38
|
+
"local_database": ["availability", "batch", "count", "get", "getAll", "principal", "purge", "query", "queueDepth", "queueDrain", "queueEnqueue", "remove", "upsert"],
|
|
39
39
|
"location": ["backgroundStart", "backgroundStop", "getCurrent", "getPermissionStatus", "regionAdd", "regionClear", "regionList", "regionNext", "regionRemove", "regionSupport", "requestPermission", "watchNext", "watchStart", "watchStop"],
|
|
40
40
|
"media_playback": ["download", "getCapabilities", "getState", "next", "pause", "pictureInPicture", "play", "presentFullscreen", "previous", "release", "removeDownload", "seek", "seekTo", "setMuted", "setQueue", "setRate", "skip", "status", "stop", "subscribeStatus", "unsubscribeStatus"],
|
|
41
41
|
"motion": ["availability", "getAltitude", "getHeading", "getPermissionStatus", "getStepCount", "openStepHistorySetup", "requestPermission", "watchNext", "watchStart", "watchStop"],
|
|
@@ -35,7 +35,7 @@ var CAPABILITY_REGISTRY = {
|
|
|
35
35
|
"keyboard": ["dismiss"],
|
|
36
36
|
"legacy_import": ["ack", "read"],
|
|
37
37
|
"live_activity": ["end", "start", "update"],
|
|
38
|
-
"local_database": ["availability", "count", "get", "getAll", "purge", "query", "queueDepth", "queueDrain", "queueEnqueue", "remove", "upsert"],
|
|
38
|
+
"local_database": ["availability", "batch", "count", "get", "getAll", "principal", "purge", "query", "queueDepth", "queueDrain", "queueEnqueue", "remove", "upsert"],
|
|
39
39
|
"location": ["backgroundStart", "backgroundStop", "getCurrent", "getPermissionStatus", "regionAdd", "regionClear", "regionList", "regionNext", "regionRemove", "regionSupport", "requestPermission", "watchNext", "watchStart", "watchStop"],
|
|
40
40
|
"media_playback": ["download", "getCapabilities", "getState", "next", "pause", "pictureInPicture", "play", "presentFullscreen", "previous", "release", "removeDownload", "seek", "seekTo", "setMuted", "setQueue", "setRate", "skip", "status", "stop", "subscribeStatus", "unsubscribeStatus"],
|
|
41
41
|
"motion": ["availability", "getAltitude", "getHeading", "getPermissionStatus", "getStepCount", "openStepHistorySetup", "requestPermission", "watchNext", "watchStart", "watchStop"],
|
|
@@ -33,15 +33,63 @@ async function get(entity, id) {
|
|
|
33
33
|
const r = await dispatch("capability.local_database.get", { entity, id });
|
|
34
34
|
return r?.item ?? null;
|
|
35
35
|
}
|
|
36
|
-
async function upsert(entity, object) {
|
|
36
|
+
async function upsert(entity, object, opts) {
|
|
37
37
|
if (!entity) throw new Error("local-db.upsert: entity is required");
|
|
38
38
|
if (!object || typeof object.id !== "string") throw new Error("local-db.upsert: object.id (string) is required");
|
|
39
|
+
if (opts?.expectPrincipal !== void 0) {
|
|
40
|
+
await batch([{ op: "upsert", entity, object }], opts);
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
39
43
|
await dispatch("capability.local_database.upsert", { entity, object: JSON.stringify(object) });
|
|
40
44
|
}
|
|
41
|
-
async function remove(entity, id) {
|
|
45
|
+
async function remove(entity, id, opts) {
|
|
42
46
|
if (!entity || !id) throw new Error("local-db.remove: entity and id are required");
|
|
47
|
+
if (opts?.expectPrincipal !== void 0) {
|
|
48
|
+
await batch([{ op: "remove", entity, id }], opts);
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
43
51
|
await dispatch("capability.local_database.remove", { entity, id });
|
|
44
52
|
}
|
|
53
|
+
function localDbError(code, message) {
|
|
54
|
+
const e = new Error(message);
|
|
55
|
+
e.name = "LocalDbError";
|
|
56
|
+
e.code = code;
|
|
57
|
+
return e;
|
|
58
|
+
}
|
|
59
|
+
function isLocalDbError(e) {
|
|
60
|
+
return e instanceof Error && e.name === "LocalDbError" && typeof e.code === "string";
|
|
61
|
+
}
|
|
62
|
+
async function principal() {
|
|
63
|
+
try {
|
|
64
|
+
const r = await dispatch("capability.local_database.principal");
|
|
65
|
+
return typeof r?.principal === "string" ? r.principal : null;
|
|
66
|
+
} catch {
|
|
67
|
+
return null;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
async function batch(writes, opts) {
|
|
71
|
+
for (const w of writes) {
|
|
72
|
+
if (!w?.entity) throw new Error("local-db.batch: every write needs an entity");
|
|
73
|
+
if (w.op === "upsert") {
|
|
74
|
+
if (!w.object || typeof w.object.id !== "string") throw new Error("local-db.batch: upsert object.id (string) is required");
|
|
75
|
+
} else if (w.op === "remove") {
|
|
76
|
+
if (!w.id) throw new Error("local-db.batch: remove id is required");
|
|
77
|
+
} else {
|
|
78
|
+
throw new Error(`local-db.batch: unknown op "${w.op}"`);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
if (writes.length === 0) return;
|
|
82
|
+
const params = {
|
|
83
|
+
writes: JSON.stringify(writes.map((w) => w.op === "upsert" ? { op: w.op, entity: w.entity, object: w.object } : { op: w.op, entity: w.entity, id: w.id }))
|
|
84
|
+
};
|
|
85
|
+
if (opts?.expectPrincipal !== void 0) params.expectPrincipal = opts.expectPrincipal;
|
|
86
|
+
const r = await dispatch("capability.local_database.batch", params);
|
|
87
|
+
const err = r?.error;
|
|
88
|
+
if (err) {
|
|
89
|
+
const code = err.code === "principal_mismatch" || err.code === "unbindable" ? err.code : "failed";
|
|
90
|
+
throw localDbError(code, err.message ?? String(err.code));
|
|
91
|
+
}
|
|
92
|
+
}
|
|
45
93
|
async function purge(entity) {
|
|
46
94
|
if (!entity) throw new Error("local-db.purge: entity is required");
|
|
47
95
|
await dispatch("capability.local_database.purge", { entity });
|
|
@@ -68,14 +116,18 @@ async function drainQueue() {
|
|
|
68
116
|
const r = await dispatch("capability.local_database.queueDrain", {});
|
|
69
117
|
return r?.drained ?? 0;
|
|
70
118
|
}
|
|
71
|
-
var version =
|
|
119
|
+
var version = 3;
|
|
72
120
|
export {
|
|
73
121
|
availability,
|
|
122
|
+
batch,
|
|
74
123
|
count,
|
|
75
124
|
drainQueue,
|
|
76
125
|
enqueue,
|
|
77
126
|
get,
|
|
78
127
|
getAll,
|
|
128
|
+
isLocalDbError,
|
|
129
|
+
localDbError,
|
|
130
|
+
principal,
|
|
79
131
|
purge,
|
|
80
132
|
query,
|
|
81
133
|
queueDepth,
|
|
@@ -35,7 +35,7 @@ var CAPABILITY_REGISTRY = {
|
|
|
35
35
|
"keyboard": ["dismiss"],
|
|
36
36
|
"legacy_import": ["ack", "read"],
|
|
37
37
|
"live_activity": ["end", "start", "update"],
|
|
38
|
-
"local_database": ["availability", "count", "get", "getAll", "purge", "query", "queueDepth", "queueDrain", "queueEnqueue", "remove", "upsert"],
|
|
38
|
+
"local_database": ["availability", "batch", "count", "get", "getAll", "principal", "purge", "query", "queueDepth", "queueDrain", "queueEnqueue", "remove", "upsert"],
|
|
39
39
|
"location": ["backgroundStart", "backgroundStop", "getCurrent", "getPermissionStatus", "regionAdd", "regionClear", "regionList", "regionNext", "regionRemove", "regionSupport", "requestPermission", "watchNext", "watchStart", "watchStop"],
|
|
40
40
|
"media_playback": ["download", "getCapabilities", "getState", "next", "pause", "pictureInPicture", "play", "presentFullscreen", "previous", "release", "removeDownload", "seek", "seekTo", "setMuted", "setQueue", "setRate", "skip", "status", "stop", "subscribeStatus", "unsubscribeStatus"],
|
|
41
41
|
"motion": ["availability", "getAltitude", "getHeading", "getPermissionStatus", "getStepCount", "openStepHistorySetup", "requestPermission", "watchNext", "watchStart", "watchStop"],
|
|
@@ -35,7 +35,7 @@ var CAPABILITY_REGISTRY = {
|
|
|
35
35
|
"keyboard": ["dismiss"],
|
|
36
36
|
"legacy_import": ["ack", "read"],
|
|
37
37
|
"live_activity": ["end", "start", "update"],
|
|
38
|
-
"local_database": ["availability", "count", "get", "getAll", "purge", "query", "queueDepth", "queueDrain", "queueEnqueue", "remove", "upsert"],
|
|
38
|
+
"local_database": ["availability", "batch", "count", "get", "getAll", "principal", "purge", "query", "queueDepth", "queueDrain", "queueEnqueue", "remove", "upsert"],
|
|
39
39
|
"location": ["backgroundStart", "backgroundStop", "getCurrent", "getPermissionStatus", "regionAdd", "regionClear", "regionList", "regionNext", "regionRemove", "regionSupport", "requestPermission", "watchNext", "watchStart", "watchStop"],
|
|
40
40
|
"media_playback": ["download", "getCapabilities", "getState", "next", "pause", "pictureInPicture", "play", "presentFullscreen", "previous", "release", "removeDownload", "seek", "seekTo", "setMuted", "setQueue", "setRate", "skip", "status", "stop", "subscribeStatus", "unsubscribeStatus"],
|
|
41
41
|
"motion": ["availability", "getAltitude", "getHeading", "getPermissionStatus", "getStepCount", "openStepHistorySetup", "requestPermission", "watchNext", "watchStart", "watchStop"],
|
|
@@ -35,7 +35,7 @@ var CAPABILITY_REGISTRY = {
|
|
|
35
35
|
"keyboard": ["dismiss"],
|
|
36
36
|
"legacy_import": ["ack", "read"],
|
|
37
37
|
"live_activity": ["end", "start", "update"],
|
|
38
|
-
"local_database": ["availability", "count", "get", "getAll", "purge", "query", "queueDepth", "queueDrain", "queueEnqueue", "remove", "upsert"],
|
|
38
|
+
"local_database": ["availability", "batch", "count", "get", "getAll", "principal", "purge", "query", "queueDepth", "queueDrain", "queueEnqueue", "remove", "upsert"],
|
|
39
39
|
"location": ["backgroundStart", "backgroundStop", "getCurrent", "getPermissionStatus", "regionAdd", "regionClear", "regionList", "regionNext", "regionRemove", "regionSupport", "requestPermission", "watchNext", "watchStart", "watchStop"],
|
|
40
40
|
"media_playback": ["download", "getCapabilities", "getState", "next", "pause", "pictureInPicture", "play", "presentFullscreen", "previous", "release", "removeDownload", "seek", "seekTo", "setMuted", "setQueue", "setRate", "skip", "status", "stop", "subscribeStatus", "unsubscribeStatus"],
|
|
41
41
|
"motion": ["availability", "getAltitude", "getHeading", "getPermissionStatus", "getStepCount", "openStepHistorySetup", "requestPermission", "watchNext", "watchStart", "watchStop"],
|
|
@@ -20,7 +20,7 @@ var CAPABILITY_REGISTRY = {
|
|
|
20
20
|
"keyboard": ["dismiss"],
|
|
21
21
|
"legacy_import": ["ack", "read"],
|
|
22
22
|
"live_activity": ["end", "start", "update"],
|
|
23
|
-
"local_database": ["availability", "count", "get", "getAll", "purge", "query", "queueDepth", "queueDrain", "queueEnqueue", "remove", "upsert"],
|
|
23
|
+
"local_database": ["availability", "batch", "count", "get", "getAll", "principal", "purge", "query", "queueDepth", "queueDrain", "queueEnqueue", "remove", "upsert"],
|
|
24
24
|
"location": ["backgroundStart", "backgroundStop", "getCurrent", "getPermissionStatus", "regionAdd", "regionClear", "regionList", "regionNext", "regionRemove", "regionSupport", "requestPermission", "watchNext", "watchStart", "watchStop"],
|
|
25
25
|
"media_playback": ["download", "getCapabilities", "getState", "next", "pause", "pictureInPicture", "play", "presentFullscreen", "previous", "release", "removeDownload", "seek", "seekTo", "setMuted", "setQueue", "setRate", "skip", "status", "stop", "subscribeStatus", "unsubscribeStatus"],
|
|
26
26
|
"motion": ["availability", "getAltitude", "getHeading", "getPermissionStatus", "getStepCount", "openStepHistorySetup", "requestPermission", "watchNext", "watchStart", "watchStop"],
|
|
@@ -35,7 +35,7 @@ var CAPABILITY_REGISTRY = {
|
|
|
35
35
|
"keyboard": ["dismiss"],
|
|
36
36
|
"legacy_import": ["ack", "read"],
|
|
37
37
|
"live_activity": ["end", "start", "update"],
|
|
38
|
-
"local_database": ["availability", "count", "get", "getAll", "purge", "query", "queueDepth", "queueDrain", "queueEnqueue", "remove", "upsert"],
|
|
38
|
+
"local_database": ["availability", "batch", "count", "get", "getAll", "principal", "purge", "query", "queueDepth", "queueDrain", "queueEnqueue", "remove", "upsert"],
|
|
39
39
|
"location": ["backgroundStart", "backgroundStop", "getCurrent", "getPermissionStatus", "regionAdd", "regionClear", "regionList", "regionNext", "regionRemove", "regionSupport", "requestPermission", "watchNext", "watchStart", "watchStop"],
|
|
40
40
|
"media_playback": ["download", "getCapabilities", "getState", "next", "pause", "pictureInPicture", "play", "presentFullscreen", "previous", "release", "removeDownload", "seek", "seekTo", "setMuted", "setQueue", "setRate", "skip", "status", "stop", "subscribeStatus", "unsubscribeStatus"],
|
|
41
41
|
"motion": ["availability", "getAltitude", "getHeading", "getPermissionStatus", "getStepCount", "openStepHistorySetup", "requestPermission", "watchNext", "watchStart", "watchStop"],
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"files": [
|
|
3
3
|
{
|
|
4
4
|
"name": "sw.js",
|
|
5
|
-
"bytes":
|
|
5
|
+
"bytes": 2548954
|
|
6
6
|
},
|
|
7
7
|
{
|
|
8
8
|
"name": "host.html",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"bytes": 23064
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
|
-
"name": "preview-deferred/
|
|
24
|
+
"name": "preview-deferred/74e5b76ecf38392d7eb3f9a9512d60a0675de85d411c9c56293e123152b3f70b.bin",
|
|
25
25
|
"bytes": 488215
|
|
26
26
|
},
|
|
27
27
|
{
|
|
@@ -79,10 +79,10 @@
|
|
|
79
79
|
],
|
|
80
80
|
"deferred": [
|
|
81
81
|
{
|
|
82
|
-
"key": "assets/pdf-
|
|
82
|
+
"key": "assets/pdf-BvrtgH6N.js",
|
|
83
83
|
"contentType": "application/javascript; charset=utf-8",
|
|
84
|
-
"sha256": "
|
|
85
|
-
"file": "preview-deferred/
|
|
84
|
+
"sha256": "74e5b76ecf38392d7eb3f9a9512d60a0675de85d411c9c56293e123152b3f70b",
|
|
85
|
+
"file": "preview-deferred/74e5b76ecf38392d7eb3f9a9512d60a0675de85d411c9c56293e123152b3f70b.bin"
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
88
|
"key": "assets/pdf.worker.min-BGnVRhRG.js",
|