@wix/himalaya-cli 0.1714.0 → 0.1716.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/webview/src/dispatcher.d.ts +4 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/webview/src/index.d.ts +14 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/webview/src/site-events.d.ts +54 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/webview-page/src/capabilities.generated.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/webview-page/src/client.d.ts +24 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/webview-page/src/index.d.ts +7 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +2 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +2 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/webview-page.mjs +21 -2
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/webview.mjs +208 -1
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{eebfb701744c8f130b659a79b33f563c2a47f5104d624fe7e108a064dce68d1b.bin → b4828fbd7a53fb443702c941d578a5af3fdbb7d53defdbaeccc4e8b639dde683.bin} +1 -1
- package/dist/browser-plane/sw.js +8 -8
- package/dist/cli.mjs +74 -47
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/release-notes.md +16 -0
- package/guides/sdk-reference.json +29 -1
- package/guides/webview-page-sdk.md +47 -0
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -25897,6 +25897,7 @@ var init_config_source_edit = __esm({
|
|
|
25897
25897
|
var manifest_exports = {};
|
|
25898
25898
|
__export(manifest_exports, {
|
|
25899
25899
|
AVAILABILITY_METHOD: () => AVAILABILITY_METHOD,
|
|
25900
|
+
BINDING_RESERVED_NAMES: () => BINDING_RESERVED_NAMES,
|
|
25900
25901
|
EXTENSIONS_DIR: () => EXTENSIONS_DIR,
|
|
25901
25902
|
EXTENSION_ACTION_PREFIX: () => EXTENSION_ACTION_PREFIX,
|
|
25902
25903
|
EXTENSION_GENERATED_DIR: () => EXTENSION_GENERATED_DIR,
|
|
@@ -25908,6 +25909,7 @@ __export(manifest_exports, {
|
|
|
25908
25909
|
MAX_EXTENSION_BYTES: () => MAX_EXTENSION_BYTES,
|
|
25909
25910
|
MAX_SOURCES_PER_PLATFORM: () => MAX_SOURCES_PER_PLATFORM,
|
|
25910
25911
|
VIEW_FALLBACK_PROP: () => VIEW_FALLBACK_PROP,
|
|
25912
|
+
bindingIdentifier: () => bindingIdentifier,
|
|
25911
25913
|
buildInputs: () => buildInputs,
|
|
25912
25914
|
buildSafetyRefusal: () => buildSafetyRefusal,
|
|
25913
25915
|
extensionActionId: () => extensionActionId,
|
|
@@ -25952,11 +25954,15 @@ function viewWhenMissing(manifest2, view) {
|
|
|
25952
25954
|
function pascalName(name) {
|
|
25953
25955
|
return name.split("-").map((part4) => part4.charAt(0).toUpperCase() + part4.slice(1)).join("");
|
|
25954
25956
|
}
|
|
25957
|
+
function bindingIdentifier(name) {
|
|
25958
|
+
const pascal2 = pascalName(name);
|
|
25959
|
+
return pascal2.charAt(0).toLowerCase() + pascal2.slice(1);
|
|
25960
|
+
}
|
|
25955
25961
|
function isValidExtensionName(name) {
|
|
25956
|
-
return typeof name === "string" && NAME_RE.test(name) && !RESERVED.has(extensionNamespace(name));
|
|
25962
|
+
return typeof name === "string" && NAME_RE.test(name) && !RESERVED.has(extensionNamespace(name)) && !BINDING_RESERVED_NAMES.has(bindingIdentifier(name));
|
|
25957
25963
|
}
|
|
25958
25964
|
function isValidMethodName(name) {
|
|
25959
|
-
return typeof name === "string" && METHOD_RE.test(name) && !RESERVED.has(name);
|
|
25965
|
+
return typeof name === "string" && METHOD_RE.test(name) && !RESERVED.has(name) && !BINDING_RESERVED_NAMES.has(name);
|
|
25960
25966
|
}
|
|
25961
25967
|
function isValidFieldName(name) {
|
|
25962
25968
|
return typeof name === "string" && METHOD_RE.test(name) && !HARD_KEYWORDS.has(name);
|
|
@@ -26087,7 +26093,11 @@ function parseExtensionManifest(raw) {
|
|
|
26087
26093
|
} else {
|
|
26088
26094
|
for (const [method, spec] of Object.entries(rawActions)) {
|
|
26089
26095
|
if (!isValidMethodName(method)) {
|
|
26090
|
-
bad4("extension_action_invalid", `actions.${method}`, `action "${method}" must be a lowerCamelCase method name of the interface`);
|
|
26096
|
+
bad4("extension_action_invalid", `actions.${method}`, `action "${method}" must be a lowerCamelCase method name of the interface, not a reserved word or a name the generated binding uses (${[...BINDING_RESERVED_NAMES].join(", ")})`);
|
|
26097
|
+
continue;
|
|
26098
|
+
}
|
|
26099
|
+
if (typeof m2.name === "string" && method === bindingIdentifier(m2.name)) {
|
|
26100
|
+
bad4("extension_action_invalid", `actions.${method}`, `action "${method}" has the same name as the binding's default export for "${m2.name}"; rename the method`);
|
|
26091
26101
|
continue;
|
|
26092
26102
|
}
|
|
26093
26103
|
const annotation = spec?.annotation;
|
|
@@ -26138,7 +26148,7 @@ function buildInputs(manifest2, files) {
|
|
|
26138
26148
|
const pick4 = (arm) => isUnsupported(arm) ? [] : files.filter((f2) => arm.sources.some((p2) => matchesSourcePattern(f2, p2))).sort();
|
|
26139
26149
|
return { ios: pick4(manifest2.ios), android: pick4(manifest2.android) };
|
|
26140
26150
|
}
|
|
26141
|
-
var EXTENSIONS_DIR, EXTENSION_MANIFEST, EXTENSION_GENERATED_DIR, EXTENSION_WORKER_BINDING, EXTENSION_IMPORT_PREFIX, EXTENSION_ACTION_PREFIX, EXTENSION_GRANT_PREFIX, MAX_EXTENSIONS, MAX_EXTENSION_BYTES, MAX_SOURCES_PER_PLATFORM, NAME_RE, METHOD_RE, VIEW_RE, TYPE_NAME_RE, SEMVER_RE, RESERVED, WHEN_MISSING, VIEW_FALLBACK_PROP, AVAILABILITY_METHOD, ANNOTATIONS, HARD_KEYWORDS, LATER_PHASE_ARM_FIELDS, ARM_FIELDS, TOP_FIELDS;
|
|
26151
|
+
var EXTENSIONS_DIR, EXTENSION_MANIFEST, EXTENSION_GENERATED_DIR, EXTENSION_WORKER_BINDING, EXTENSION_IMPORT_PREFIX, EXTENSION_ACTION_PREFIX, EXTENSION_GRANT_PREFIX, MAX_EXTENSIONS, MAX_EXTENSION_BYTES, MAX_SOURCES_PER_PLATFORM, NAME_RE, METHOD_RE, VIEW_RE, TYPE_NAME_RE, SEMVER_RE, RESERVED, WHEN_MISSING, VIEW_FALLBACK_PROP, AVAILABILITY_METHOD, ANNOTATIONS, BINDING_RESERVED_NAMES, HARD_KEYWORDS, LATER_PHASE_ARM_FIELDS, ARM_FIELDS, TOP_FIELDS;
|
|
26142
26152
|
var init_manifest = __esm({
|
|
26143
26153
|
"../native-extensions/manifest.ts"() {
|
|
26144
26154
|
init_define_HHP_CATALOG();
|
|
@@ -26227,6 +26237,14 @@ var init_manifest = __esm({
|
|
|
26227
26237
|
VIEW_FALLBACK_PROP = "fallback";
|
|
26228
26238
|
AVAILABILITY_METHOD = "__available";
|
|
26229
26239
|
ANNOTATIONS = ["readonly", "mutating", "destructive"];
|
|
26240
|
+
BINDING_RESERVED_NAMES = /* @__PURE__ */ new Set([
|
|
26241
|
+
"isAvailable",
|
|
26242
|
+
"isExtensionMissing",
|
|
26243
|
+
"extensionMissingError",
|
|
26244
|
+
"call",
|
|
26245
|
+
"bridge",
|
|
26246
|
+
"isMissing"
|
|
26247
|
+
]);
|
|
26230
26248
|
HARD_KEYWORDS = /* @__PURE__ */ new Set([
|
|
26231
26249
|
// Swift
|
|
26232
26250
|
"associatedtype",
|
|
@@ -26357,9 +26375,19 @@ function workerBinding(model) {
|
|
|
26357
26375
|
``,
|
|
26358
26376
|
`/** Thrown by a method when the running binary was not built with this extension (an older build, a`,
|
|
26359
26377
|
` * web host, Himi Player): the dispatcher answers \`{ ok: false, code: "${EXTENSION_MISSING_CODE}" }\`. */`,
|
|
26360
|
-
`export
|
|
26361
|
-
`
|
|
26362
|
-
|
|
26378
|
+
`export const EXTENSION_MISSING = ${JSON.stringify(EXTENSION_MISSING_CODE)};`,
|
|
26379
|
+
`export type ExtensionMissingError = Error & { code: typeof EXTENSION_MISSING; actionId: string };`,
|
|
26380
|
+
`// A factory, not a class: the worker bundle target has no class syntax.`,
|
|
26381
|
+
`function extensionMissingError(actionId: string): ExtensionMissingError {`,
|
|
26382
|
+
` const e = new Error(\`\${actionId}: this build does not include the "${model.name}" extension\`) as ExtensionMissingError;`,
|
|
26383
|
+
` e.name = "ExtensionMissingError";`,
|
|
26384
|
+
` e.code = EXTENSION_MISSING;`,
|
|
26385
|
+
` e.actionId = actionId;`,
|
|
26386
|
+
` return e;`,
|
|
26387
|
+
`}`,
|
|
26388
|
+
`/** Whether \`e\` is the error a method throws when the running binary lacks this extension. */`,
|
|
26389
|
+
`export function isExtensionMissing(e: unknown): e is ExtensionMissingError {`,
|
|
26390
|
+
` return !!e && typeof e === "object" && (e as { code?: unknown }).code === EXTENSION_MISSING;`,
|
|
26363
26391
|
`}`,
|
|
26364
26392
|
``,
|
|
26365
26393
|
`type Bridge = { dispatch(id: string, params: Record<string, string>): Promise<unknown> };`,
|
|
@@ -26371,7 +26399,7 @@ function workerBinding(model) {
|
|
|
26371
26399
|
` const b = bridge();`,
|
|
26372
26400
|
` if (!b) return Promise.reject(new Error("@ext/${model.name}: no himalaya bridge in this context"));`,
|
|
26373
26401
|
` return b.dispatch(id, input === undefined ? {} : { ${ARGS_PARAM}: JSON.stringify(input) })`,
|
|
26374
|
-
` .then((r) => { if (isMissing(r)) throw
|
|
26402
|
+
` .then((r) => { if (isMissing(r)) throw extensionMissingError(id); return r; });`,
|
|
26375
26403
|
`}`,
|
|
26376
26404
|
``,
|
|
26377
26405
|
`/** Whether the running binary carries this extension. Never rejects: no bridge, an older binary`,
|
|
@@ -35902,7 +35930,6 @@ function shouldRevealError(args) {
|
|
|
35902
35930
|
var EMAIL_RE, URL_HOST_RE, INTEGER_RE, NUMBER_RE, AUTHORED_PATTERN_LIMIT, authoredPatterns;
|
|
35903
35931
|
var init_validation = __esm({
|
|
35904
35932
|
"../../core/ts/src/validation.ts"() {
|
|
35905
|
-
"use strict";
|
|
35906
35933
|
init_define_HHP_CATALOG();
|
|
35907
35934
|
EMAIL_RE = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
|
|
35908
35935
|
URL_HOST_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(:[0-9]+)?$/;
|
|
@@ -236232,51 +236259,51 @@ var init_preview_assets_generated = __esm({
|
|
|
236232
236259
|
init_define_HHP_CATALOG();
|
|
236233
236260
|
init_preview_assets_format();
|
|
236234
236261
|
PREVIEW_ASSET_MANIFEST = [
|
|
236235
|
-
{ key: "assets/DashboardHost-
|
|
236236
|
-
{ key: "assets/DevDrawer-
|
|
236237
|
-
{ key: "assets/IdiomCompare-
|
|
236238
|
-
{ key: "assets/LightboxViewer-
|
|
236239
|
-
{ key: "assets/OfflineReadingBar-
|
|
236240
|
-
{ key: "assets/PhonePreviewControl-
|
|
236241
|
-
{ key: "assets/SchemeCompare-
|
|
236242
|
-
{ key: "assets/WixFrogTelemetrySink-
|
|
236262
|
+
{ key: "assets/DashboardHost-DvQMZkAL.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2985, sha256: "dad493d09288bfe65c2bbcf4b678482cd779ed070d9332ad83904ecfa71289af" },
|
|
236263
|
+
{ key: "assets/DevDrawer-BHS65bbf.js", contentType: "application/javascript; charset=utf-8", offset: 2993, length: 16783, sha256: "b08abeed59d0da6c566aab08daba25883c7734b73a317e9bf3a88518695d8004" },
|
|
236264
|
+
{ key: "assets/IdiomCompare-fOCenSxi.js", contentType: "application/javascript; charset=utf-8", offset: 19776, length: 1926, sha256: "0d830b8db50cb9c2c8310b46e2386a9a23e42cdd5d94c3e58b4f261f197f2a07" },
|
|
236265
|
+
{ key: "assets/LightboxViewer-D5s2WpL_.js", contentType: "application/javascript; charset=utf-8", offset: 21702, length: 17382, sha256: "83deb92acc41f9e9dd71ce2e866b50b68c169d0d4503041155257d65c2f04e0a" },
|
|
236266
|
+
{ key: "assets/OfflineReadingBar-oGKQUzmF.js", contentType: "application/javascript; charset=utf-8", offset: 39084, length: 1646, sha256: "f18b39d645ec0f4f063f561c44f91b555f73a5e05b955fa4d762d1ea6023da4b" },
|
|
236267
|
+
{ key: "assets/PhonePreviewControl-OpPUUUr5.js", contentType: "application/javascript; charset=utf-8", offset: 40730, length: 37851, sha256: "c0bae62140afc8100953f6179cf93eed34aa383f66364991c5fa901159ec418e" },
|
|
236268
|
+
{ key: "assets/SchemeCompare-DBOzZO3J.js", contentType: "application/javascript; charset=utf-8", offset: 78581, length: 1858, sha256: "1c7fa281fb5294e2dee370c4cc7a08e1fd08c5e316ee8f283a3cdefe2e580b13" },
|
|
236269
|
+
{ key: "assets/WixFrogTelemetrySink-DLrYpCHb.js", contentType: "application/javascript; charset=utf-8", offset: 80439, length: 3515, sha256: "6f7e8e9be431ba1fd4a8b3866c317988f2b95dda3773dadd8329b0bb796938c8" },
|
|
236243
236270
|
{ key: "assets/calendar-ics-BvfIYWjG.js", contentType: "application/javascript; charset=utf-8", offset: 83954, length: 2192, sha256: "1636167041e9829ceccd3544297b86b8475c38bd2f759c4dbc17c813dc6e9254" },
|
|
236244
236271
|
{ key: "assets/catalog-CAoUWITw.js", contentType: "application/javascript; charset=utf-8", offset: 86146, length: 26046, sha256: "4c270ca3051f77d761aef1297125e02339d48493dd2b84a0cacf0faf41aa8cb3" },
|
|
236245
|
-
{ key: "assets/catalogFontFaces-
|
|
236272
|
+
{ key: "assets/catalogFontFaces-vx4gOVfr.js", contentType: "application/javascript; charset=utf-8", offset: 112192, length: 1111, sha256: "cc9e1d02e6af63044b9bbf7a661248d11481534f3e67b0954343412aa49076e4" },
|
|
236246
236273
|
{ key: "assets/contacts-vcard-BcohPQ0m.js", contentType: "application/javascript; charset=utf-8", offset: 113303, length: 2567, sha256: "c4ff75e96cd909bbb9182c5dc78794fcebc65139fbddef2537711d774fb33ad0" },
|
|
236247
|
-
{ key: "assets/files-transfer-
|
|
236274
|
+
{ key: "assets/files-transfer-DvKDzIgt.js", contentType: "application/javascript; charset=utf-8", offset: 115870, length: 6446, sha256: "b028489772414190b872f343350866d51912925b03e00017ba9b64a1b347a5a1" },
|
|
236248
236275
|
{ key: "assets/frogActionMap-CTMe3Bz1.js", contentType: "application/javascript; charset=utf-8", offset: 122316, length: 1172, sha256: "9f1ce4c70a680dfb902949e1f482c7e47500b69c3350cd091b1b51d674032d53" },
|
|
236249
|
-
{ key: "assets/frogApiRules-
|
|
236276
|
+
{ key: "assets/frogApiRules-CDc52xTv.js", contentType: "application/javascript; charset=utf-8", offset: 123488, length: 2207, sha256: "e40c4f438e87fdc2e40ee6d95033456984cb70a6f984eb90fc17f6d2f13bd9c1" },
|
|
236250
236277
|
{ key: "assets/frogScreenMap-S_IRnz20.js", contentType: "application/javascript; charset=utf-8", offset: 125695, length: 1067, sha256: "22b2f71e1b06df8f1e79b890d47fe42e983d37865c2cc9be753e4121764c91e1" },
|
|
236251
236278
|
{ key: "assets/glassPreviewBrowser-DONaOehd.js", contentType: "application/javascript; charset=utf-8", offset: 126762, length: 6578, sha256: "4402c4cddd2a564e7466cdf1e12a0e0277c0400b288e1e5eda1d23e797599d31" },
|
|
236252
236279
|
{ key: "assets/image-preparation-Cj4gldm6.js", contentType: "application/javascript; charset=utf-8", offset: 133340, length: 2704, sha256: "32944ea587c2f3b84389b66b50a850437560238f1c8d33b6275973ee04eee865" },
|
|
236253
|
-
{ key: "assets/index-
|
|
236254
|
-
{ key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
236255
|
-
{ key: "assets/pdf-
|
|
236256
|
-
{ key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
236257
|
-
{ key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset:
|
|
236258
|
-
{ key: "assets/pdfDocument
|
|
236259
|
-
{ key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
236260
|
-
{ key: "assets/scrollLinkedRuntime-
|
|
236261
|
-
{ key: "assets/webviewBridgeHost-
|
|
236262
|
-
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset:
|
|
236263
|
-
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset:
|
|
236264
|
-
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset:
|
|
236265
|
-
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
236266
|
-
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset:
|
|
236267
|
-
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset:
|
|
236268
|
-
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
236269
|
-
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset:
|
|
236270
|
-
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
236271
|
-
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset:
|
|
236272
|
-
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset:
|
|
236273
|
-
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
236274
|
-
{ key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
236275
|
-
{ key: "index.html", contentType: "text/html; charset=utf-8", offset:
|
|
236276
|
-
{ key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset:
|
|
236277
|
-
{ key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset:
|
|
236278
|
-
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset:
|
|
236279
|
-
{ key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset:
|
|
236280
|
+
{ key: "assets/index-DWGWH1G8.js", contentType: "application/javascript; charset=utf-8", offset: 136044, length: 1583602, sha256: "bc38b5943566a84061407531055266c86fe5c38e549098adfb8e8d5cc4379b9e" },
|
|
236281
|
+
{ key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset: 1719646, length: 7751, sha256: "42a78b508d0f309f6a4a6efbb8669015211b3c26574c5b0929884c4d9d20b806" },
|
|
236282
|
+
{ key: "assets/pdf-BTR99rzn.js", contentType: "application/javascript; charset=utf-8", offset: 1727397, length: 488215, sha256: "b4828fbd7a53fb443702c941d578a5af3fdbb7d53defdbaeccc4e8b639dde683" },
|
|
236283
|
+
{ key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset: 2215612, length: 90, sha256: "521a0e528916d678d7588b2cddf3dadd3bb959a6d62426382f61c77a82017e35" },
|
|
236284
|
+
{ key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2215702, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
|
|
236285
|
+
{ key: "assets/pdfDocument--GCizSnD.js", contentType: "application/javascript; charset=utf-8", offset: 3532736, length: 3470, sha256: "d2687266e8df412f93b2c918d15987dbea5323695810e59c9ce66e43c0e38f30" },
|
|
236286
|
+
{ key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3536206, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
|
|
236287
|
+
{ key: "assets/scrollLinkedRuntime-B6U2b-mL.js", contentType: "application/javascript; charset=utf-8", offset: 3538472, length: 2278, sha256: "c8d97d970ac9237f486f0cf4d0b5d5d8ffb0d1bb96611e5623def83095898049" },
|
|
236288
|
+
{ key: "assets/webviewBridgeHost-B4pWADM1.js", contentType: "application/javascript; charset=utf-8", offset: 3540750, length: 9889, sha256: "a0f8c0ed9dc42f7c22672164464cb9268ec78e108cc025c2f1464a5a04d75db3" },
|
|
236289
|
+
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3550639, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
|
|
236290
|
+
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3555249, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
|
|
236291
|
+
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 4043833, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
|
|
236292
|
+
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 4134757, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
|
|
236293
|
+
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4225741, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
|
|
236294
|
+
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4316721, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
|
|
236295
|
+
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4407593, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
|
|
236296
|
+
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4498573, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
|
|
236297
|
+
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4607209, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
|
|
236298
|
+
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4716293, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
|
|
236299
|
+
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4825341, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
|
|
236300
|
+
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 4933041, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
|
|
236301
|
+
{ key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 5021149, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
|
|
236302
|
+
{ key: "index.html", contentType: "text/html; charset=utf-8", offset: 5027967, length: 4924, sha256: "faf6b94e77e1fd4d8817702f09f66127867056b3c0bd63d7d7419c029d07c41c" },
|
|
236303
|
+
{ key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 5032891, length: 11457, sha256: "6cb2b75264fa5fa2b4d28851878a5eab0712900e8b3a6c2370cc661d6d820805" },
|
|
236304
|
+
{ key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 5044348, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
|
|
236305
|
+
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 5045519, length: 23047, sha256: "20d1459e3f896f344e478e613d0c979a0de02e81a929a45d3a0ef6a53af36441" },
|
|
236306
|
+
{ key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 5068566, length: 23064, sha256: "8655cfe9c74212ec5dafecb49d2fdeb48b19f1bd8a710091e3e55631f9b4ab06" }
|
|
236280
236307
|
];
|
|
236281
236308
|
}
|
|
236282
236309
|
});
|
|
Binary file
|
package/guides/release-notes.md
CHANGED
|
@@ -14,6 +14,22 @@ areas, always in the same order, so you can skim for the one you care about.
|
|
|
14
14
|
|
|
15
15
|
---
|
|
16
16
|
|
|
17
|
+
## 2026-11-14
|
|
18
|
+
|
|
19
|
+
### Logic, data & SDKs
|
|
20
|
+
|
|
21
|
+
- **A worker hears what the website on its screen is doing: the page title, the page path, whether a
|
|
22
|
+
member is signed in to the site, and the Wix cart count.** Subscribe with `onSiteEvent(cb)` from
|
|
23
|
+
`@himalaya/webview` (or read `siteState(instanceId)`) on a screen whose website page is a
|
|
24
|
+
`sitePage(site, { path, bridge: "worker" })` on the site your app is built for, and bind the state to
|
|
25
|
+
native UI: the app-bar title, a cart badge, a "Sign in" row. The app reads the title, path and member
|
|
26
|
+
state itself, so the site needs no edit and the page cannot fake them. On a Wix site the app also reads
|
|
27
|
+
the number on the header cart icon; it is best effort, and `null` means unknown (no cart icon), so hide
|
|
28
|
+
the badge then. Events stop while the page is off your site, and the full state arrives again when it
|
|
29
|
+
comes back. A page that runs `@wix/himalaya/webview-page` (Base44 and others) can add what the app
|
|
30
|
+
cannot see with `himalaya.site.report({ cart, member })`; what the app reads always wins. iOS, macOS and
|
|
31
|
+
Android; nothing arrives on web, where the site is in a cross-origin frame. (#5808)
|
|
32
|
+
|
|
17
33
|
## 2026-11-13
|
|
18
34
|
|
|
19
35
|
### Getting started & the CLI
|
|
@@ -6349,6 +6349,13 @@
|
|
|
6349
6349
|
"decl": "export {\n PAGE_HANDSHAKE_CAPABILITY,\n PAGE_HANDSHAKE_METHOD,\n type ExposedPageCapability,\n type PageCapabilityRequest,\n type PageCapabilityResponse,\n type PageConsoleEvent,\n type PageCtx,\n type PageLifecycleEvent,\n type PageRequestHandler,\n type PageStream,\n} from \"./dispatcher.js\";",
|
|
6350
6350
|
"verificationChecked": true
|
|
6351
6351
|
},
|
|
6352
|
+
{
|
|
6353
|
+
"name": "\"./site-events.js\"",
|
|
6354
|
+
"kind": "reexport",
|
|
6355
|
+
"jsdoc": "",
|
|
6356
|
+
"decl": "export type { SiteEvent, SiteEventName, SiteEventSource, SiteRoute, SiteSnapshot } from \"./site-events.js\";",
|
|
6357
|
+
"verificationChecked": true
|
|
6358
|
+
},
|
|
6352
6359
|
{
|
|
6353
6360
|
"name": "postToPage",
|
|
6354
6361
|
"kind": "function",
|
|
@@ -6398,6 +6405,20 @@
|
|
|
6398
6405
|
"decl": "export function onPageConsole(cb: (e: PageConsoleEvent) => void): () => void;",
|
|
6399
6406
|
"verificationChecked": true
|
|
6400
6407
|
},
|
|
6408
|
+
{
|
|
6409
|
+
"name": "onSiteEvent",
|
|
6410
|
+
"kind": "function",
|
|
6411
|
+
"jsdoc": "/**\n * Observe site events of the screen's SITE-TRUSTED page (a `role: \"primary\"`,\n * `bridge: \"worker\"` site WebView on the site baked into the app): `title`, `route` and `member` from\n * the host, `cart` from the binary's Wix adapter (best effort: `null` is unknown, hide a badge), and\n * whatever the page reports itself with `himalaya.site.report(…)`. Precedence per field: host >\n * adapter > page. Each event carries the merged `state`; the host re-sends a `snapshot` whenever the\n * channel attaches (a mount, a return to the site after leaving it). Without a site-trusted bridge\n * nothing is emitted. Returns an unsubscribe function.\n */",
|
|
6412
|
+
"decl": "export function onSiteEvent(cb: (e: SiteEvent) => void): () => void;",
|
|
6413
|
+
"verificationChecked": true
|
|
6414
|
+
},
|
|
6415
|
+
{
|
|
6416
|
+
"name": "siteState",
|
|
6417
|
+
"kind": "function",
|
|
6418
|
+
"jsdoc": "/** The merged site snapshot of one page instance, or `undefined` before anything was heard from it. */",
|
|
6419
|
+
"decl": "export function siteState(instanceId: string): SiteSnapshot | undefined;",
|
|
6420
|
+
"verificationChecked": true
|
|
6421
|
+
},
|
|
6401
6422
|
{
|
|
6402
6423
|
"name": "exposeCapabilitiesToPage",
|
|
6403
6424
|
"kind": "function",
|
|
@@ -6430,7 +6451,7 @@
|
|
|
6430
6451
|
"name": "\"./client.js\"",
|
|
6431
6452
|
"kind": "reexport",
|
|
6432
6453
|
"jsdoc": "",
|
|
6433
|
-
"decl": "export type {\n PageEventHandler,\n WebViewPageError,\n WebViewPageEvent,\n WebViewPageRequest,\n WebViewPageResponse,\n WebViewPageStreamEnvelope,\n} from \"./client.js\";",
|
|
6454
|
+
"decl": "export type {\n PageEventHandler,\n PageSite,\n SiteReport,\n WebViewPageError,\n WebViewPageEvent,\n WebViewPageRequest,\n WebViewPageResponse,\n WebViewPageStreamEnvelope,\n} from \"./client.js\";",
|
|
6434
6455
|
"verificationChecked": true
|
|
6435
6456
|
},
|
|
6436
6457
|
{
|
|
@@ -6475,6 +6496,13 @@
|
|
|
6475
6496
|
"decl": "export const himalaya = client.merge({}) as HimalayaPageSdk;",
|
|
6476
6497
|
"verificationChecked": true
|
|
6477
6498
|
},
|
|
6499
|
+
{
|
|
6500
|
+
"name": "site",
|
|
6501
|
+
"kind": "const",
|
|
6502
|
+
"jsdoc": "/**\n * Report site facts the host cannot see (Base44 and other sites): `cart`, the\n * website's `member`, and — only where no host reports them — `title` and `route`. Fire-and-forget;\n * the host's own title, route and member always win. Same as `himalaya.site.report(fields)`.\n */",
|
|
6503
|
+
"decl": "export const site = client.site;",
|
|
6504
|
+
"verificationChecked": true
|
|
6505
|
+
},
|
|
6478
6506
|
{
|
|
6479
6507
|
"name": "health",
|
|
6480
6508
|
"kind": "const",
|
|
@@ -300,6 +300,53 @@ and the site's header, menu, footer and ads stay hidden. The page still cannot n
|
|
|
300
300
|
action or call a native capability itself: it reaches native code only through the worker's declared
|
|
301
301
|
capabilities, as described above. On web there is no channel for a site page.
|
|
302
302
|
|
|
303
|
+
### Site events: title, route, member and cart
|
|
304
|
+
|
|
305
|
+
A trusted site page tells its worker what the website is doing, with no edit to the site. The worker
|
|
306
|
+
subscribes with `onSiteEvent` from `@himalaya/webview`:
|
|
307
|
+
|
|
308
|
+
```ts
|
|
309
|
+
import { onSiteEvent, siteState } from "@himalaya/webview";
|
|
310
|
+
|
|
311
|
+
onSiteEvent((e) => {
|
|
312
|
+
// e.event: "title" | "route" | "cart" | "member" | "snapshot"
|
|
313
|
+
// e.source: "host" | "adapter" | "page"; e.state: { title, route, cart, member } (null = unknown)
|
|
314
|
+
void svc.site(e.state);
|
|
315
|
+
});
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
| Event | Payload | Where it comes from |
|
|
319
|
+
|---|---|---|
|
|
320
|
+
| `title` | `{ title }` | the app reads the page's own title |
|
|
321
|
+
| `route` | `{ path, search, sameDocument }` | the app reads the page's own address; `path` is inside the site (`/book-online`), never another site |
|
|
322
|
+
| `member` | `{ signedIn }` | Wix: the app reads the site's member cookie. Base44: the app's own sign-in |
|
|
323
|
+
| `cart` | `{ count }` | Wix only: the app reads the header cart icon. `null` means unknown (no cart icon): hide the badge |
|
|
324
|
+
|
|
325
|
+
- Every event carries the full `state`. When the page comes back onto the site after leaving it, or the
|
|
326
|
+
screen remounts, the worker gets a `snapshot` event, so it never needs to ask. `siteState(instanceId)`
|
|
327
|
+
reads the latest state.
|
|
328
|
+
- Nothing arrives while the page is off the site, and nothing arrives for a page that is not trusted (no
|
|
329
|
+
baked site, or the strict bridge).
|
|
330
|
+
- The Wix cart count is best effort. Wix has no documented way for a site script to read the cart total, so
|
|
331
|
+
the app reads the number on the header cart icon. A site without that icon reports `null`.
|
|
332
|
+
- On web no site events arrive (the site is in a cross-origin frame).
|
|
333
|
+
|
|
334
|
+
Bind the state to native UI: `hostTitle: "$service:shop.pageTitle"` for the app bar, a cart badge on
|
|
335
|
+
`$service:shop.cartCount`, a native "Sign in" row shown when the website's member is signed out.
|
|
336
|
+
|
|
337
|
+
**Other sites (Base44 and any page that runs this SDK).** The title, route and member still come from the app
|
|
338
|
+
with no page code. A page can add what the app cannot see, such as its cart count:
|
|
339
|
+
|
|
340
|
+
```ts
|
|
341
|
+
import { himalaya } from "@wix/himalaya/webview-page";
|
|
342
|
+
|
|
343
|
+
himalaya.site.report({ cart: 3 }); // or { member: true }, { title }, { route: "/path?x=1" }
|
|
344
|
+
```
|
|
345
|
+
|
|
346
|
+
`report` is fire-and-forget and returns `false` outside the app. Per field, what the app reads wins over what
|
|
347
|
+
the page reports: a page can never change the title, route or member the app reported. `site` is reserved, so
|
|
348
|
+
a worker cannot register an `onPageRequest("site", …)` namespace.
|
|
349
|
+
|
|
303
350
|
## Demo app regression page
|
|
304
351
|
|
|
305
352
|
The demo app hosts a page that calls every capability its iOS and Android boots already
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1716.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "himi — the Himalaya authoring CLI. Build a Tier-5 content package on your own machine, push it to the production serve as a draft, preview it on web + Himi Player, and read worker logs back — the remote dev loop. Wraps @himalaya/serve-cli for transport.",
|
|
6
6
|
"keywords": [
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"artifactId": "himalaya-cli"
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
|
-
"falconPackageHash": "
|
|
84
|
+
"falconPackageHash": "b205e6ec7d4bcc336dd46951b13f93e9e94d0b599eacee200ec44097"
|
|
85
85
|
}
|