@wix/himalaya-cli 0.1703.0 → 0.1704.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/dev-server/src/l10n.d.ts +2 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +4 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/site-screen-form.d.ts +39 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/site-shell.d.ts +37 -15
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/validator.d.ts +11 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/webview-embedded.d.ts +2 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +1065 -922
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +23 -5
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{df0422934aaa38861fe3fc040a30a521cc958ddcc9fee01e9202b3c6c5dbf4d6.bin → f72b868102c2ba960b7736896ee03d831fbf5218e59cc153b4bb2af3cc21dbbb.bin} +1 -1
- package/dist/browser-plane/sw.js +7 -7
- package/dist/cli.mjs +249 -104
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/component-reference.json +1 -1
- package/guides/component-reference.md +4 -1
- package/guides/designing-himi-screens.md +1 -1
- package/guides/wix-business-context.md +1 -1
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -14033,14 +14033,25 @@ var init_validator = __esm({
|
|
|
14033
14033
|
then: { required: ["payload"], not: { required: ["url"] } }
|
|
14034
14034
|
},
|
|
14035
14035
|
{
|
|
14036
|
-
// WebView tiers must carry a url
|
|
14036
|
+
// WebView tiers must carry a url
|
|
14037
14037
|
if: {
|
|
14038
14038
|
properties: {
|
|
14039
14039
|
renderer: { enum: ["webview_native_bridge", "webview_ds"] }
|
|
14040
14040
|
},
|
|
14041
14041
|
required: ["renderer"]
|
|
14042
14042
|
},
|
|
14043
|
-
then: { required: ["url"]
|
|
14043
|
+
then: { required: ["url"] }
|
|
14044
|
+
},
|
|
14045
|
+
{
|
|
14046
|
+
// A Tier-4 screen carries no payload. A Tier-3 one may: RFC 0079 phase 3B's dual-form site screen
|
|
14047
|
+
// carries its node form there (every shipped binary's Tier-3 branch ignores it; a dual-form binary
|
|
14048
|
+
// draws it). That payload's own rules — one root primary page, the same url and config as the
|
|
14049
|
+
// Tier-3 fields, no logicBundle — are `webViewEmbeddedFindings` (`dual_form_*`).
|
|
14050
|
+
if: {
|
|
14051
|
+
properties: { renderer: { const: "webview_ds" } },
|
|
14052
|
+
required: ["renderer"]
|
|
14053
|
+
},
|
|
14054
|
+
then: { not: { required: ["payload"] } }
|
|
14044
14055
|
},
|
|
14045
14056
|
{
|
|
14046
14057
|
// webview_ds requires SRI pinning + manifest version
|
|
@@ -16229,11 +16240,55 @@ function webViewOriginAllowed(url, origins) {
|
|
|
16229
16240
|
}
|
|
16230
16241
|
var init_webview_origin = __esm({
|
|
16231
16242
|
"../../core/ts/src/webview-origin.ts"() {
|
|
16232
|
-
"use strict";
|
|
16233
16243
|
init_define_HHP_CATALOG();
|
|
16234
16244
|
}
|
|
16235
16245
|
});
|
|
16236
16246
|
|
|
16247
|
+
// ../../core/ts/src/site-screen-form.ts
|
|
16248
|
+
function coreType(v2) {
|
|
16249
|
+
if (!isRec(v2) || !isRec(v2.body)) return null;
|
|
16250
|
+
return v2.body.package === "himalaya" && typeof v2.body.type === "string" ? v2.body.type : null;
|
|
16251
|
+
}
|
|
16252
|
+
function propsOf2(v2) {
|
|
16253
|
+
const p2 = v2.body.props;
|
|
16254
|
+
return isRec(p2) ? p2 : {};
|
|
16255
|
+
}
|
|
16256
|
+
function rootPrimaryWebView(root) {
|
|
16257
|
+
if (isPrimaryWebViewNode(root)) return root;
|
|
16258
|
+
const type2 = coreType(root);
|
|
16259
|
+
if (type2 === null || !PRIMARY_ROOT_STACKS.has(type2)) return null;
|
|
16260
|
+
const children2 = propsOf2(root).children;
|
|
16261
|
+
return Array.isArray(children2) ? children2.find(isPrimaryWebViewNode) ?? null : null;
|
|
16262
|
+
}
|
|
16263
|
+
function sameCapabilityScope(a3, b3) {
|
|
16264
|
+
if (a3 == null || b3 == null) return a3 == null && b3 == null;
|
|
16265
|
+
if (!Array.isArray(a3) || !Array.isArray(b3)) return false;
|
|
16266
|
+
const sa2 = new Set(a3);
|
|
16267
|
+
const sb = new Set(b3);
|
|
16268
|
+
return sa2.size === sb.size && [...sa2].every((v2) => sb.has(v2));
|
|
16269
|
+
}
|
|
16270
|
+
function prefersPayloadNodeForm(descriptor) {
|
|
16271
|
+
if (!isRec(descriptor) || descriptor.renderer !== DUAL_FORM_T3_RENDERER || descriptor.logicBundle != null) return false;
|
|
16272
|
+
const primary = rootPrimaryWebView(descriptor.payload);
|
|
16273
|
+
return primary !== null && sameCapabilityScope(propsOf2(primary).capabilitiesRequired, descriptor.capabilitiesRequired);
|
|
16274
|
+
}
|
|
16275
|
+
function payloadNodeForm(descriptor) {
|
|
16276
|
+
if (!prefersPayloadNodeForm(descriptor)) return descriptor;
|
|
16277
|
+
const { url: _url, webViewConfig: _config, ...screen } = descriptor;
|
|
16278
|
+
return { ...screen, renderer: DUAL_FORM_NODE_RENDERER };
|
|
16279
|
+
}
|
|
16280
|
+
var isRec, DUAL_FORM_T3_RENDERER, DUAL_FORM_NODE_RENDERER, PRIMARY_ROOT_STACKS, isPrimaryWebViewNode;
|
|
16281
|
+
var init_site_screen_form = __esm({
|
|
16282
|
+
"../../core/ts/src/site-screen-form.ts"() {
|
|
16283
|
+
init_define_HHP_CATALOG();
|
|
16284
|
+
isRec = (v2) => typeof v2 === "object" && v2 !== null && !Array.isArray(v2);
|
|
16285
|
+
DUAL_FORM_T3_RENDERER = "webview_native_bridge";
|
|
16286
|
+
DUAL_FORM_NODE_RENDERER = "sdui_layout";
|
|
16287
|
+
PRIMARY_ROOT_STACKS = /* @__PURE__ */ new Set(["VStack", "HStack", "ZStack"]);
|
|
16288
|
+
isPrimaryWebViewNode = (v2) => coreType(v2) === "WebView" && propsOf2(v2).role === "primary";
|
|
16289
|
+
}
|
|
16290
|
+
});
|
|
16291
|
+
|
|
16237
16292
|
// ../../core/ts/src/webview-embedded.ts
|
|
16238
16293
|
function canonicalJson(value2) {
|
|
16239
16294
|
return canonicalJsonAt(value2, /* @__PURE__ */ new Set());
|
|
@@ -16277,12 +16332,69 @@ function effectiveWebViewInstanceId(screenId, args, componentId, explicitInstanc
|
|
|
16277
16332
|
if (typeof explicitInstanceId === "string" && explicitInstanceId !== "") return explicitInstanceId;
|
|
16278
16333
|
return `${screenId}?${canonicalScreenArgs(args)}/${componentId}`;
|
|
16279
16334
|
}
|
|
16335
|
+
function sameJson(a3, b3) {
|
|
16336
|
+
try {
|
|
16337
|
+
return canonicalJson(a3 ?? {}) === canonicalJson(b3 ?? {});
|
|
16338
|
+
} catch {
|
|
16339
|
+
return false;
|
|
16340
|
+
}
|
|
16341
|
+
}
|
|
16342
|
+
function dualFormRules(descriptor, out2) {
|
|
16343
|
+
if (descriptor.renderer !== DUAL_FORM_T3_RENDERER || descriptor.payload == null) return;
|
|
16344
|
+
if (descriptor.logicBundle != null) {
|
|
16345
|
+
out2.push({
|
|
16346
|
+
severity: "error",
|
|
16347
|
+
rule: "dual_form_logic_bundle",
|
|
16348
|
+
path: "logicBundle",
|
|
16349
|
+
message: `this Tier-3 screen carries a node form in payload and a logicBundle \u2014 every shipped binary routes a Tier-3 screen with a logicBundle to the worker-backed WebView screen, and a worker-backed screen has no node form yet (RFC 0079 \xA78, \xA714 Q1). Drop the payload, or the logicBundle`
|
|
16350
|
+
});
|
|
16351
|
+
}
|
|
16352
|
+
const primary = rootPrimaryWebView(descriptor.payload);
|
|
16353
|
+
if (primary === null) {
|
|
16354
|
+
out2.push({
|
|
16355
|
+
severity: "error",
|
|
16356
|
+
rule: "dual_form_without_primary",
|
|
16357
|
+
path: "payload",
|
|
16358
|
+
message: `this Tier-3 screen carries a payload with no role: "primary" WebView at its root (the root itself, or a direct child of a root VStack, HStack or ZStack) \u2014 a Tier-3 screen's payload is its node form, the same page as a primary WebView with native UI around it (RFC 0079 \xA78). Put the page there with sitePage(), or drop the payload`
|
|
16359
|
+
});
|
|
16360
|
+
return;
|
|
16361
|
+
}
|
|
16362
|
+
const props2 = propsOf3(primary);
|
|
16363
|
+
const at2 = (prop2) => {
|
|
16364
|
+
const path2 = descriptor.payload === primary ? "payload" : `payload.body.props.children[${propsOf3(descriptor.payload).children.indexOf(primary)}]`;
|
|
16365
|
+
return `${path2}.body.props.${prop2}`;
|
|
16366
|
+
};
|
|
16367
|
+
if (props2.url !== descriptor.url) {
|
|
16368
|
+
out2.push({
|
|
16369
|
+
severity: "error",
|
|
16370
|
+
rule: "dual_form_mismatch",
|
|
16371
|
+
path: at2("url"),
|
|
16372
|
+
message: `the primary WebView in payload loads ${JSON.stringify(props2.url)} but the Tier-3 screen loads ${JSON.stringify(descriptor.url)} \u2014 the two forms are one page, so an old binary and a new one would show different pages. Build both from one page (dualFormSiteScreen / siteScreens) (RFC 0079 \xA78)`
|
|
16373
|
+
});
|
|
16374
|
+
}
|
|
16375
|
+
if (!sameCapabilityScope(props2.capabilitiesRequired, descriptor.capabilitiesRequired)) {
|
|
16376
|
+
out2.push({
|
|
16377
|
+
severity: "error",
|
|
16378
|
+
rule: "dual_form_mismatch",
|
|
16379
|
+
path: at2("capabilitiesRequired"),
|
|
16380
|
+
message: `the primary WebView in payload is scoped to ${JSON.stringify(props2.capabilitiesRequired ?? null)} native capabilities but the Tier-3 screen to ${JSON.stringify(descriptor.capabilitiesRequired ?? null)} \u2014 a node with no scope gets the app's whole declared list from the native bridge, so the site page could call capabilities its Tier-3 page could not. Give the node the screen's capabilitiesRequired (an empty array stays empty); a dual-form binary keeps the Tier-3 page until they match (RFC 0079 \xA78)`
|
|
16381
|
+
});
|
|
16382
|
+
}
|
|
16383
|
+
if (!sameJson(props2.config, descriptor.webViewConfig)) {
|
|
16384
|
+
out2.push({
|
|
16385
|
+
severity: "error",
|
|
16386
|
+
rule: "dual_form_mismatch",
|
|
16387
|
+
path: at2("config"),
|
|
16388
|
+
message: `the primary WebView's config in payload differs from the Tier-3 screen's webViewConfig \u2014 the two forms are one page, so an old binary and a new one would behave differently (keep-alive, chrome hiders, allowed origins). Build both from one page (dualFormSiteScreen / siteScreens) (RFC 0079 \xA78)`
|
|
16389
|
+
});
|
|
16390
|
+
}
|
|
16391
|
+
}
|
|
16280
16392
|
function childComponents(value2, path2, inTemplate, out2) {
|
|
16281
16393
|
if (Array.isArray(value2)) {
|
|
16282
16394
|
value2.forEach((v2, i2) => childComponents(v2, `${path2}[${i2}]`, inTemplate, out2));
|
|
16283
16395
|
return;
|
|
16284
16396
|
}
|
|
16285
|
-
if (!
|
|
16397
|
+
if (!isRec2(value2)) return;
|
|
16286
16398
|
if (isComponent(value2)) {
|
|
16287
16399
|
out2.push({ c: value2, path: path2, inTemplate });
|
|
16288
16400
|
return;
|
|
@@ -16290,7 +16402,7 @@ function childComponents(value2, path2, inTemplate, out2) {
|
|
|
16290
16402
|
for (const [k3, v2] of Object.entries(value2)) childComponents(v2, `${path2}.${k3}`, inTemplate || /Template$/.test(k3), out2);
|
|
16291
16403
|
}
|
|
16292
16404
|
function childrenOf(c2, path2, inTemplate) {
|
|
16293
|
-
const props2 =
|
|
16405
|
+
const props2 = propsOf3(c2);
|
|
16294
16406
|
const type2 = typeOf(c2);
|
|
16295
16407
|
const boundList = (type2 === "LazyList" || type2 === "Grid" || type2 === "Carousel") && hasItemsPath(props2);
|
|
16296
16408
|
const boundPages = type2 === "Pager" && hasPagesPath(props2);
|
|
@@ -16317,13 +16429,13 @@ function collectWebViews(descriptor) {
|
|
|
16317
16429
|
sites.push({
|
|
16318
16430
|
path: path2,
|
|
16319
16431
|
id: typeof c2.id === "string" ? c2.id : "",
|
|
16320
|
-
props:
|
|
16321
|
-
modifiers:
|
|
16432
|
+
props: propsOf3(c2),
|
|
16433
|
+
modifiers: isRec2(c2.modifiers) ? c2.modifiers : {},
|
|
16322
16434
|
inTemplate,
|
|
16323
16435
|
...at2
|
|
16324
16436
|
});
|
|
16325
16437
|
}
|
|
16326
|
-
const props2 =
|
|
16438
|
+
const props2 = propsOf3(c2);
|
|
16327
16439
|
const below = {
|
|
16328
16440
|
parentType: type2,
|
|
16329
16441
|
scrollAncestor: type2 !== null && PRIMARY_FORBIDDEN_ANCESTORS.has(type2) ? type2 === "LazyList" ? props2.horizontal === true ? "a horizontal LazyList" : "a vertical LazyList" : `a ${type2}` : at2.scrollAncestor,
|
|
@@ -16336,7 +16448,7 @@ function collectWebViews(descriptor) {
|
|
|
16336
16448
|
}
|
|
16337
16449
|
function mountable(c2, inTemplate = false) {
|
|
16338
16450
|
const type2 = typeOf(c2);
|
|
16339
|
-
const props2 =
|
|
16451
|
+
const props2 = propsOf3(c2);
|
|
16340
16452
|
const repeated = (n2) => inTemplate && n2 > 0 ? Infinity : n2;
|
|
16341
16453
|
if (type2 === "WebView") return repeated(isBridged(props2) ? 1 : 0);
|
|
16342
16454
|
if (type2 === "LazyList") {
|
|
@@ -16417,9 +16529,9 @@ function primaryRules(s5, config, out2) {
|
|
|
16417
16529
|
}
|
|
16418
16530
|
}
|
|
16419
16531
|
function webViewEmbeddedFindings(descriptor) {
|
|
16420
|
-
if (!
|
|
16532
|
+
if (!isRec2(descriptor)) return [];
|
|
16421
16533
|
const out2 = [];
|
|
16422
|
-
const screenConfig =
|
|
16534
|
+
const screenConfig = isRec2(descriptor.webViewConfig) ? descriptor.webViewConfig : {};
|
|
16423
16535
|
if (screenConfig.storageSeed !== void 0 && screenConfig.originIsolation !== "per_instance") {
|
|
16424
16536
|
out2.push({
|
|
16425
16537
|
severity: "error",
|
|
@@ -16428,17 +16540,18 @@ function webViewEmbeddedFindings(descriptor) {
|
|
|
16428
16540
|
message: `the screen's webViewConfig sets storageSeed without originIsolation: "per_instance" \u2014 a seed migrates into a per-instance origin only (RFC 0073 \xA74.2)`
|
|
16429
16541
|
});
|
|
16430
16542
|
}
|
|
16543
|
+
dualFormRules(descriptor, out2);
|
|
16431
16544
|
const sites = collectWebViews(descriptor);
|
|
16432
16545
|
if (sites.length === 0) return out2;
|
|
16433
16546
|
const screenId = typeof descriptor.screenId === "string" ? descriptor.screenId : "";
|
|
16434
|
-
const lb =
|
|
16547
|
+
const lb = isRec2(descriptor.logicBundle) ? descriptor.logicBundle : null;
|
|
16435
16548
|
const caps = lb && Array.isArray(lb.declaredCapabilities) ? lb.declaredCapabilities : [];
|
|
16436
16549
|
const seen = /* @__PURE__ */ new Map();
|
|
16437
16550
|
for (const s5 of sites) {
|
|
16438
16551
|
const { props: props2, path: path2 } = s5;
|
|
16439
16552
|
const config = configOf(props2);
|
|
16440
16553
|
const bridged = isBridged(props2);
|
|
16441
|
-
const security =
|
|
16554
|
+
const security = isRec2(config.bridgeSecurity) ? config.bridgeSecurity : {};
|
|
16442
16555
|
for (const [field, value2, prop2] of [
|
|
16443
16556
|
["bridge", props2.bridge, "bridge"],
|
|
16444
16557
|
["originIsolation", config.originIsolation, "config.originIsolation"],
|
|
@@ -16562,7 +16675,7 @@ function webViewEmbeddedFindings(descriptor) {
|
|
|
16562
16675
|
function webViewEmbeddedAppFindings(screens) {
|
|
16563
16676
|
const byId2 = /* @__PURE__ */ new Map();
|
|
16564
16677
|
for (const { screenId, descriptor } of screens) {
|
|
16565
|
-
if (!
|
|
16678
|
+
if (!isRec2(descriptor)) continue;
|
|
16566
16679
|
for (const s5 of collectWebViews(descriptor)) {
|
|
16567
16680
|
if (!isPerInstance(s5.props) || !isLiteral(s5.props.instanceId)) continue;
|
|
16568
16681
|
const content = [s5.props.inlineHtml, s5.props.url].find(isLiteral);
|
|
@@ -16587,11 +16700,13 @@ function webViewEmbeddedAppFindings(screens) {
|
|
|
16587
16700
|
}
|
|
16588
16701
|
return out2;
|
|
16589
16702
|
}
|
|
16590
|
-
var MAX_SIMULTANEOUS_BRIDGED_WEBVIEWS, WEBVIEW_EMBEDDED_ENUMS,
|
|
16703
|
+
var MAX_SIMULTANEOUS_BRIDGED_WEBVIEWS, WEBVIEW_EMBEDDED_ENUMS, isRec2, byCodeUnit, PRIMARY_FORBIDDEN_ANCESTORS, verticallyScrolls, isComponent, typeOf, propsOf3, hasItemsPath, hasPagesPath, isBridged, isPrimary, configOf, hasWeight, SITE_CONFIG_FIELDS, siteConfigFields, isPerInstance, isLiteral, isItemDerived;
|
|
16591
16704
|
var init_webview_embedded = __esm({
|
|
16592
16705
|
"../../core/ts/src/webview-embedded.ts"() {
|
|
16593
16706
|
init_define_HHP_CATALOG();
|
|
16594
16707
|
init_webview_origin();
|
|
16708
|
+
init_site_screen_form();
|
|
16709
|
+
init_site_screen_form();
|
|
16595
16710
|
MAX_SIMULTANEOUS_BRIDGED_WEBVIEWS = 4;
|
|
16596
16711
|
WEBVIEW_EMBEDDED_ENUMS = {
|
|
16597
16712
|
bridge: ["", "worker"],
|
|
@@ -16600,24 +16715,24 @@ var init_webview_embedded = __esm({
|
|
|
16600
16715
|
profile: ["", "app_content"],
|
|
16601
16716
|
role: ["", "primary"]
|
|
16602
16717
|
};
|
|
16603
|
-
|
|
16718
|
+
isRec2 = (v2) => typeof v2 === "object" && v2 !== null && !Array.isArray(v2);
|
|
16604
16719
|
byCodeUnit = (a3, b3) => a3 < b3 ? -1 : a3 > b3 ? 1 : 0;
|
|
16605
16720
|
PRIMARY_FORBIDDEN_ANCESTORS = /* @__PURE__ */ new Set(["LazyList", "Pager", "Carousel", "CollapsingHeader"]);
|
|
16606
16721
|
verticallyScrolls = (type2, props2) => type2 === "LazyList" && props2.horizontal !== true || type2 === "CollapsingHeader";
|
|
16607
|
-
isComponent = (v2) =>
|
|
16722
|
+
isComponent = (v2) => isRec2(v2) && isRec2(v2.body) && typeof v2.body.package === "string" && typeof v2.body.type === "string";
|
|
16608
16723
|
typeOf = (c2) => {
|
|
16609
16724
|
const body = c2.body;
|
|
16610
16725
|
return body.package === "himalaya" ? body.type : null;
|
|
16611
16726
|
};
|
|
16612
|
-
|
|
16727
|
+
propsOf3 = (c2) => {
|
|
16613
16728
|
const p2 = c2.body.props;
|
|
16614
|
-
return
|
|
16729
|
+
return isRec2(p2) ? p2 : {};
|
|
16615
16730
|
};
|
|
16616
16731
|
hasItemsPath = (props2) => typeof props2.itemsPath === "string" && props2.itemsPath !== "";
|
|
16617
16732
|
hasPagesPath = (props2) => typeof props2.pagesPath === "string" && /^\$(service|app):/.test(props2.pagesPath);
|
|
16618
16733
|
isBridged = (props2) => props2.bridge === "worker";
|
|
16619
16734
|
isPrimary = (props2) => props2.role === "primary";
|
|
16620
|
-
configOf = (props2) =>
|
|
16735
|
+
configOf = (props2) => isRec2(props2.config) ? props2.config : {};
|
|
16621
16736
|
hasWeight = (modifiers) => typeof modifiers.weight === "number" && Number.isFinite(modifiers.weight) && modifiers.weight > 0;
|
|
16622
16737
|
SITE_CONFIG_FIELDS = ["hostedSiteAdapter", "sessionBridge", "hideHostedSiteHeader", "hideHostedSiteFooter", "hideHostedSiteMenu", "hideWixAds"];
|
|
16623
16738
|
siteConfigFields = (config) => SITE_CONFIG_FIELDS.filter((k3) => config[k3] === true || typeof config[k3] === "string" && config[k3] !== "");
|
|
@@ -29391,9 +29506,29 @@ function translateWith(node3, map2) {
|
|
|
29391
29506
|
}
|
|
29392
29507
|
}
|
|
29393
29508
|
visit(node3, true);
|
|
29509
|
+
translateAccessibilityWith(node3, map2);
|
|
29394
29510
|
return node3;
|
|
29395
29511
|
}
|
|
29396
|
-
|
|
29512
|
+
function translateAccessibilityWith(node3, map2, atRoot = true, inLogicBundle = false) {
|
|
29513
|
+
if (map2.size === 0) return;
|
|
29514
|
+
if (Array.isArray(node3)) {
|
|
29515
|
+
for (const child3 of node3) translateAccessibilityWith(child3, map2, false, inLogicBundle);
|
|
29516
|
+
return;
|
|
29517
|
+
}
|
|
29518
|
+
if (typeof node3 !== "object" || node3 === null) return;
|
|
29519
|
+
const record3 = node3;
|
|
29520
|
+
for (const [key4, value2] of Object.entries(record3)) {
|
|
29521
|
+
if (atRoot && key4 === "input") continue;
|
|
29522
|
+
if (inLogicBundle && key4 === "bootState") continue;
|
|
29523
|
+
if (ACCESSIBILITY_COPY.has(key4) && typeof value2 === "string") {
|
|
29524
|
+
const translated2 = map2.get(value2);
|
|
29525
|
+
if (translated2) record3[key4] = translated2;
|
|
29526
|
+
} else {
|
|
29527
|
+
translateAccessibilityWith(value2, map2, false, atRoot && key4 === "logicBundle");
|
|
29528
|
+
}
|
|
29529
|
+
}
|
|
29530
|
+
}
|
|
29531
|
+
var ROOT3, catalogCache, ACCESSIBILITY_COPY;
|
|
29397
29532
|
var init_l10n = __esm({
|
|
29398
29533
|
"../../core/dev-server/src/l10n.ts"() {
|
|
29399
29534
|
init_define_HHP_CATALOG();
|
|
@@ -29401,6 +29536,7 @@ var init_l10n = __esm({
|
|
|
29401
29536
|
init_l10n_catalog();
|
|
29402
29537
|
ROOT3 = resolve27(fileURLToPath18(new URL("../../..", import.meta.url)));
|
|
29403
29538
|
catalogCache = /* @__PURE__ */ new Map();
|
|
29539
|
+
ACCESSIBILITY_COPY = /* @__PURE__ */ new Set(["accessibilityLabel", "accessibilityHint", "accessibilityValue"]);
|
|
29404
29540
|
}
|
|
29405
29541
|
});
|
|
29406
29542
|
|
|
@@ -32867,7 +33003,6 @@ function resolveIdiom(tokens2, ctx = {}) {
|
|
|
32867
33003
|
var IDIOM_CONTEXTS, UNSAFE_KEYS;
|
|
32868
33004
|
var init_idiom = __esm({
|
|
32869
33005
|
"../../core/ts/src/idiom.ts"() {
|
|
32870
|
-
"use strict";
|
|
32871
33006
|
init_define_HHP_CATALOG();
|
|
32872
33007
|
IDIOM_CONTEXTS = {
|
|
32873
33008
|
ios: { native: ["ios"] },
|
|
@@ -34690,7 +34825,6 @@ function shouldRevealError(args) {
|
|
|
34690
34825
|
var EMAIL_RE, URL_HOST_RE, INTEGER_RE, NUMBER_RE, AUTHORED_PATTERN_LIMIT, authoredPatterns;
|
|
34691
34826
|
var init_validation = __esm({
|
|
34692
34827
|
"../../core/ts/src/validation.ts"() {
|
|
34693
|
-
"use strict";
|
|
34694
34828
|
init_define_HHP_CATALOG();
|
|
34695
34829
|
EMAIL_RE = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
|
|
34696
34830
|
URL_HOST_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(:[0-9]+)?$/;
|
|
@@ -37623,13 +37757,20 @@ function defineSitePageScreen(site) {
|
|
|
37623
37757
|
webViewConfig: { ...preset, keepAlive: false }
|
|
37624
37758
|
};
|
|
37625
37759
|
}
|
|
37626
|
-
function primarySiteWebView(url, config, id, label4) {
|
|
37760
|
+
function primarySiteWebView(url, config, id, label4, capabilitiesRequired) {
|
|
37627
37761
|
return {
|
|
37628
37762
|
id,
|
|
37629
37763
|
body: {
|
|
37630
37764
|
package: "himalaya",
|
|
37631
37765
|
type: "WebView",
|
|
37632
|
-
props: {
|
|
37766
|
+
props: {
|
|
37767
|
+
url,
|
|
37768
|
+
role: "primary",
|
|
37769
|
+
fill: true,
|
|
37770
|
+
scrollEnabled: true,
|
|
37771
|
+
...capabilitiesRequired ? { capabilitiesRequired: [...capabilitiesRequired] } : {},
|
|
37772
|
+
...config ? { config } : {}
|
|
37773
|
+
}
|
|
37633
37774
|
},
|
|
37634
37775
|
modifiers: { weight: 1, accessibilityLabel: label4?.trim() || hostOf(url) }
|
|
37635
37776
|
};
|
|
@@ -37646,20 +37787,41 @@ function isDesugarableSiteScreen(descriptor) {
|
|
|
37646
37787
|
}
|
|
37647
37788
|
function desugarSiteScreen(descriptor) {
|
|
37648
37789
|
if (!isDesugarableSiteScreen(descriptor)) return descriptor;
|
|
37649
|
-
|
|
37790
|
+
if (prefersPayloadNodeForm(descriptor)) return payloadNodeForm(descriptor);
|
|
37791
|
+
const { url, webViewConfig, payload: _payload, ...screen } = descriptor;
|
|
37650
37792
|
return {
|
|
37651
37793
|
...screen,
|
|
37652
37794
|
renderer: SITE_NODE_SCREEN_RENDERER,
|
|
37653
|
-
|
|
37795
|
+
// The Tier-3 page's native capability scope rides on the node (an empty allowlist stays empty).
|
|
37796
|
+
payload: primarySiteWebView(
|
|
37797
|
+
url,
|
|
37798
|
+
webViewConfig ? { ...webViewConfig } : void 0,
|
|
37799
|
+
SITE_PAGE_NODE_ID,
|
|
37800
|
+
descriptor.title,
|
|
37801
|
+
descriptor.capabilitiesRequired
|
|
37802
|
+
)
|
|
37654
37803
|
};
|
|
37655
37804
|
}
|
|
37805
|
+
function dualFormSiteScreen(descriptor, payload) {
|
|
37806
|
+
if (!isDesugarableSiteScreen(descriptor)) {
|
|
37807
|
+
if (payload === void 0) return descriptor;
|
|
37808
|
+
throw new Error(`site screen ${JSON.stringify(descriptor?.screenId)} cannot carry a node form: only a Tier-3 screen with a url, no logicBundle and no internalLinksAsScreens can (RFC 0079 \xA78)`);
|
|
37809
|
+
}
|
|
37810
|
+
const { payload: _old, ...t3 } = descriptor;
|
|
37811
|
+
const out2 = { ...t3, payload: payload ?? desugarSiteScreen(t3).payload };
|
|
37812
|
+
const drift = webViewEmbeddedFindings(out2).filter((f2) => f2.rule.startsWith("dual_form_"));
|
|
37813
|
+
if (drift.length > 0) {
|
|
37814
|
+
throw new Error(`site screen ${JSON.stringify(descriptor.screenId)}: ${drift.map((f2) => f2.message).join("; ")}`);
|
|
37815
|
+
}
|
|
37816
|
+
return out2;
|
|
37817
|
+
}
|
|
37656
37818
|
function siteScreens(site, opts) {
|
|
37657
37819
|
assertSiteShellConfig(site, opts);
|
|
37658
|
-
const form = opts?.form ?? "
|
|
37820
|
+
const form = opts?.form ?? "both";
|
|
37659
37821
|
if (!SITE_SCREEN_FORMS.includes(form)) {
|
|
37660
37822
|
throw new Error(`site screen form ${JSON.stringify(form)} must be one of ${SITE_SCREEN_FORMS.join(", ")}`);
|
|
37661
37823
|
}
|
|
37662
|
-
const shape = (d2) => form === "node" ? desugarSiteScreen(d2) : d2;
|
|
37824
|
+
const shape = (d2) => form === "node" ? desugarSiteScreen(d2) : form === "both" ? dualFormSiteScreen(d2) : d2;
|
|
37663
37825
|
return {
|
|
37664
37826
|
...Object.fromEntries(site.pages.map((page) => [siteScreenId(page), shape(defineSiteTab(site, page))])),
|
|
37665
37827
|
[SITE_PAGE_SCREEN_ID]: shape(defineSitePageScreen(site))
|
|
@@ -37728,13 +37890,15 @@ var SITE_LAYOUTS, SITE_SHELL_MAX_TABS, SITE_SCREEN_PREFIX, SITE_PAGE_SCREEN_ID,
|
|
|
37728
37890
|
var init_site_shell = __esm({
|
|
37729
37891
|
"../../core/ts/src/site-shell.ts"() {
|
|
37730
37892
|
init_define_HHP_CATALOG();
|
|
37893
|
+
init_site_screen_form();
|
|
37894
|
+
init_webview_embedded();
|
|
37731
37895
|
SITE_LAYOUTS = ["auto", "tabs", "drawer", "sidebar", "single"];
|
|
37732
37896
|
SITE_SHELL_MAX_TABS = 4;
|
|
37733
37897
|
SITE_SCREEN_PREFIX = "site_";
|
|
37734
37898
|
SITE_PAGE_SCREEN_ID = "site_page";
|
|
37735
37899
|
PAGE_ID = /^[a-z0-9_]+$/;
|
|
37736
37900
|
SITE_PAGE_NODE_ID = "site_page_view";
|
|
37737
|
-
SITE_SCREEN_FORMS = ["t3", "node"];
|
|
37901
|
+
SITE_SCREEN_FORMS = ["t3", "node", "both"];
|
|
37738
37902
|
SITE_NODE_SCREEN_RENDERER = "sdui_layout";
|
|
37739
37903
|
}
|
|
37740
37904
|
});
|
|
@@ -43382,19 +43546,19 @@ function templateReadsService(template) {
|
|
|
43382
43546
|
}
|
|
43383
43547
|
return reads3;
|
|
43384
43548
|
}
|
|
43385
|
-
function
|
|
43549
|
+
function sameJson2(a3, b3) {
|
|
43386
43550
|
if (a3 === b3) return true;
|
|
43387
43551
|
if (a3 === null || b3 === null || typeof a3 !== "object" || typeof b3 !== "object") return false;
|
|
43388
43552
|
if (Array.isArray(a3)) {
|
|
43389
43553
|
if (!Array.isArray(b3) || a3.length !== b3.length) return false;
|
|
43390
|
-
for (let i2 = 0; i2 < a3.length; i2++) if (!
|
|
43554
|
+
for (let i2 = 0; i2 < a3.length; i2++) if (!sameJson2(a3[i2], b3[i2])) return false;
|
|
43391
43555
|
return true;
|
|
43392
43556
|
}
|
|
43393
43557
|
if (Array.isArray(b3)) return false;
|
|
43394
43558
|
const ka2 = Object.keys(a3);
|
|
43395
43559
|
if (ka2.length !== Object.keys(b3).length) return false;
|
|
43396
43560
|
for (const k3 of ka2) {
|
|
43397
|
-
if (!Object.prototype.hasOwnProperty.call(b3, k3) || !
|
|
43561
|
+
if (!Object.prototype.hasOwnProperty.call(b3, k3) || !sameJson2(a3[k3], b3[k3])) return false;
|
|
43398
43562
|
}
|
|
43399
43563
|
return true;
|
|
43400
43564
|
}
|
|
@@ -43542,7 +43706,7 @@ var init_bindings2 = __esm({
|
|
|
43542
43706
|
const scope3 = item2 && typeof item2 === "object" ? { ...item2, __index: index } : { value: item2, __index: index };
|
|
43543
43707
|
return /* @__PURE__ */ jsx4(Fragment, { children: renderRow(template, { ...ctx, itemScope: scope3, ...previewKey2 !== void 0 ? { imagePreviewRows: [...ctx.imagePreviewRows ?? [], previewKey2] } : {} }) });
|
|
43544
43708
|
},
|
|
43545
|
-
(prev, next) => prev.ctx === next.ctx && prev.template === next.template && prev.renderRow === next.renderRow && prev.index === next.index && prev.previewKey === next.previewKey && !templateReadsService(next.template) &&
|
|
43709
|
+
(prev, next) => prev.ctx === next.ctx && prev.template === next.template && prev.renderRow === next.renderRow && prev.index === next.index && prev.previewKey === next.previewKey && !templateReadsService(next.template) && sameJson2(prev.item, next.item)
|
|
43546
43710
|
);
|
|
43547
43711
|
}
|
|
43548
43712
|
});
|
|
@@ -45230,12 +45394,13 @@ function injectIntoInlineHtml(html, config, scrollEnabled = true) {
|
|
|
45230
45394
|
if (tail) out2 += tail;
|
|
45231
45395
|
return out2;
|
|
45232
45396
|
}
|
|
45233
|
-
var NETWORK_SCHEMES, asRecord, nonEmpty3, scriptBody;
|
|
45397
|
+
var NETWORK_SCHEMES, SITE_PAGE_FRAME_GRANTS, asRecord, nonEmpty3, scriptBody;
|
|
45234
45398
|
var init_webviewFrame = __esm({
|
|
45235
45399
|
"../../core/web-renderer/src/webviewFrame.ts"() {
|
|
45236
45400
|
init_define_HHP_CATALOG();
|
|
45237
45401
|
init_webview_origin();
|
|
45238
45402
|
NETWORK_SCHEMES = /* @__PURE__ */ new Set(["http:", "https:"]);
|
|
45403
|
+
SITE_PAGE_FRAME_GRANTS = ["allow-popups", "allow-forms"];
|
|
45239
45404
|
asRecord = (v2) => v2 && typeof v2 === "object" ? v2 : {};
|
|
45240
45405
|
nonEmpty3 = (v2) => typeof v2 === "string" && v2.length > 0 ? v2 : void 0;
|
|
45241
45406
|
scriptBody = (js2) => js2.replace(/<\/(script)/gi, "<\\/$1");
|
|
@@ -135499,7 +135664,7 @@ var init_renderNode = __esm({
|
|
|
135499
135664
|
const scrollEnabled = typeof props2.scrollEnabled === "boolean" ? props2.scrollEnabled : primary;
|
|
135500
135665
|
const htmlStr = rawHtml != null ? injectIntoInlineHtml(rawHtml, config, scrollEnabled) : void 0;
|
|
135501
135666
|
const urlAllowed = urlStr != null && (config.allowedOrigins.length === 0 || webViewOriginAllowed(urlStr, config.allowedOrigins));
|
|
135502
|
-
const urlFrame = urlStr && urlAllowed ? webviewFrameSandbox(urlStr) : null;
|
|
135667
|
+
const urlFrame = urlStr && urlAllowed ? webviewFrameSandbox(urlStr, primary ? SITE_PAGE_FRAME_GRANTS : []) : null;
|
|
135503
135668
|
const boundHeight = useResolvedScalar(props2.heightPath != null && isBinding(props2.heightPath) ? props2.heightPath : void 0, ctx);
|
|
135504
135669
|
const fill2 = props2.fill === true || primary;
|
|
135505
135670
|
const h2 = typeof boundHeight === "number" && boundHeight > 0 ? boundHeight : typeof props2.height === "number" && props2.height > 0 ? props2.height : void 0;
|
|
@@ -140478,6 +140643,7 @@ __export(src_exports2, {
|
|
|
140478
140643
|
FakeServiceProvider: () => FakeServiceProvider,
|
|
140479
140644
|
IDIOM_CONTROLS: () => IDIOM_CONTROLS,
|
|
140480
140645
|
ImageCacheContext: () => ImageCacheContext,
|
|
140646
|
+
SITE_PAGE_FRAME_GRANTS: () => SITE_PAGE_FRAME_GRANTS,
|
|
140481
140647
|
SKELETON_SHIMMER_PERIOD_MS: () => SKELETON_SHIMMER_PERIOD_MS,
|
|
140482
140648
|
UNSUPPORTED_PRIVATE_CACHE: () => UNSUPPORTED_PRIVATE_CACHE,
|
|
140483
140649
|
WebAppRegistry: () => WebAppRegistry,
|
|
@@ -142564,7 +142730,7 @@ function steadyPart(state, probe2, at2, omitted) {
|
|
|
142564
142730
|
const steady = {};
|
|
142565
142731
|
for (const [key4, value2] of Object.entries(state)) {
|
|
142566
142732
|
const other = probe2[key4];
|
|
142567
|
-
if (
|
|
142733
|
+
if (sameJson3(value2, other)) steady[key4] = value2;
|
|
142568
142734
|
else if (isRecord4(value2) && isRecord4(other)) {
|
|
142569
142735
|
const part4 = steadyPart(value2, other, `${at2}.${key4}`, omitted);
|
|
142570
142736
|
if (Object.keys(part4).length > 0) steady[key4] = part4;
|
|
@@ -142607,7 +142773,7 @@ function valueAt3(root, path2) {
|
|
|
142607
142773
|
function isRecord4(v2) {
|
|
142608
142774
|
return v2 !== null && typeof v2 === "object" && !Array.isArray(v2);
|
|
142609
142775
|
}
|
|
142610
|
-
function
|
|
142776
|
+
function sameJson3(a3, b3) {
|
|
142611
142777
|
try {
|
|
142612
142778
|
return JSON.stringify(a3) === JSON.stringify(b3);
|
|
142613
142779
|
} catch {
|
|
@@ -146571,7 +146737,6 @@ function pinnedLanguageSwap(locale, appDir3) {
|
|
|
146571
146737
|
const map2 = existsSync39(path2) ? sourceMap(parseCatalog(readFileSync43(path2, "utf8"))) : /* @__PURE__ */ new Map();
|
|
146572
146738
|
return (descriptor, workerSource) => {
|
|
146573
146739
|
translateWith(descriptor, map2);
|
|
146574
|
-
translateAccessibility(descriptor, map2);
|
|
146575
146740
|
const onAppear = descriptor?.payload?.modifiers?.onAppear;
|
|
146576
146741
|
if (typeof onAppear?.actionId !== "string" || !onAppear.actionId.startsWith("tier5.")) return;
|
|
146577
146742
|
const params = onAppear.params ??= {};
|
|
@@ -146580,24 +146745,6 @@ function pinnedLanguageSwap(locale, appDir3) {
|
|
|
146580
146745
|
if (textCopy) params.textCopy = textCopy;
|
|
146581
146746
|
};
|
|
146582
146747
|
}
|
|
146583
|
-
function translateAccessibility(node3, map2, atRoot = true, inLogicBundle = false) {
|
|
146584
|
-
if (Array.isArray(node3)) {
|
|
146585
|
-
for (const child3 of node3) translateAccessibility(child3, map2, false, inLogicBundle);
|
|
146586
|
-
return;
|
|
146587
|
-
}
|
|
146588
|
-
if (typeof node3 !== "object" || node3 === null) return;
|
|
146589
|
-
const record3 = node3;
|
|
146590
|
-
for (const [key4, value2] of Object.entries(record3)) {
|
|
146591
|
-
if (atRoot && key4 === "input") continue;
|
|
146592
|
-
if (inLogicBundle && key4 === "bootState") continue;
|
|
146593
|
-
if (ACCESSIBILITY_COPY.has(key4) && typeof value2 === "string") {
|
|
146594
|
-
const translated2 = map2.get(value2);
|
|
146595
|
-
if (translated2) record3[key4] = translated2;
|
|
146596
|
-
} else {
|
|
146597
|
-
translateAccessibility(value2, map2, false, atRoot && key4 === "logicBundle");
|
|
146598
|
-
}
|
|
146599
|
-
}
|
|
146600
|
-
}
|
|
146601
146748
|
function textCopyFor(workerSource, map2) {
|
|
146602
146749
|
const found = {};
|
|
146603
146750
|
for (const [source2, translation] of [...map2].sort(([a3], [b3]) => a3 < b3 ? -1 : a3 > b3 ? 1 : 0)) {
|
|
@@ -146611,14 +146758,12 @@ function appearsAsLiteral(text25, value2) {
|
|
|
146611
146758
|
const escaped = literal3.replace(/[\u0080-\uffff]/g, (c2) => `\\u${c2.charCodeAt(0).toString(16).padStart(4, "0")}`);
|
|
146612
146759
|
return escaped !== literal3 && text25.includes(escaped);
|
|
146613
146760
|
}
|
|
146614
|
-
var ACCESSIBILITY_COPY;
|
|
146615
146761
|
var init_pinned_language = __esm({
|
|
146616
146762
|
"../release-build/pinned-language.ts"() {
|
|
146617
146763
|
init_define_HHP_CATALOG();
|
|
146618
146764
|
init_locale();
|
|
146619
146765
|
init_l10n();
|
|
146620
146766
|
init_l10n_catalog();
|
|
146621
|
-
ACCESSIBILITY_COPY = /* @__PURE__ */ new Set(["accessibilityLabel", "accessibilityHint", "accessibilityValue"]);
|
|
146622
146767
|
}
|
|
146623
146768
|
});
|
|
146624
146769
|
|
|
@@ -234815,51 +234960,51 @@ var init_preview_assets_generated = __esm({
|
|
|
234815
234960
|
init_define_HHP_CATALOG();
|
|
234816
234961
|
init_preview_assets_format();
|
|
234817
234962
|
PREVIEW_ASSET_MANIFEST = [
|
|
234818
|
-
{ key: "assets/DashboardHost-
|
|
234819
|
-
{ key: "assets/DevDrawer-
|
|
234820
|
-
{ key: "assets/IdiomCompare-
|
|
234821
|
-
{ key: "assets/LightboxViewer-
|
|
234822
|
-
{ key: "assets/OfflineReadingBar-
|
|
234823
|
-
{ key: "assets/PhonePreviewControl-
|
|
234824
|
-
{ key: "assets/SchemeCompare-
|
|
234825
|
-
{ key: "assets/WixFrogTelemetrySink-
|
|
234963
|
+
{ key: "assets/DashboardHost-Cz8ix59X.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2985, sha256: "35fa7f76746c3b7ae534e0c029f0f33659155bcf908a4668d749a8ad2766a24d" },
|
|
234964
|
+
{ key: "assets/DevDrawer-D4Frxe18.js", contentType: "application/javascript; charset=utf-8", offset: 2993, length: 16783, sha256: "0b9232c96e0d6d32906b61a16a323e0e193f96e5d96401d1bed43179099ec30e" },
|
|
234965
|
+
{ key: "assets/IdiomCompare-6UUSs3g4.js", contentType: "application/javascript; charset=utf-8", offset: 19776, length: 1926, sha256: "591c3bfb5433993e44a3569de9a8cc250ad36806fe637bb187b6ccf2ede82533" },
|
|
234966
|
+
{ key: "assets/LightboxViewer-BQ2Ilaty.js", contentType: "application/javascript; charset=utf-8", offset: 21702, length: 17382, sha256: "df883f340d5b840af12a293f915b4865070c660c069a4ad12b7526ee0d469864" },
|
|
234967
|
+
{ key: "assets/OfflineReadingBar-MMYKfJV8.js", contentType: "application/javascript; charset=utf-8", offset: 39084, length: 1646, sha256: "38f14aa21bb629b15b01748ad161a31190536256238b6a2b9cd46e56df53eec5" },
|
|
234968
|
+
{ key: "assets/PhonePreviewControl-DTcd1gxZ.js", contentType: "application/javascript; charset=utf-8", offset: 40730, length: 37851, sha256: "7b6c44953ff679c96e4d5a6ad1f7297f03b4bc80389d40553df8404ad225a98a" },
|
|
234969
|
+
{ key: "assets/SchemeCompare-sw4JAEHW.js", contentType: "application/javascript; charset=utf-8", offset: 78581, length: 1858, sha256: "c9170b4c5f45da9a0875ccd8f8ab330ee6f28f902e9015ba1df9f78367f1d306" },
|
|
234970
|
+
{ key: "assets/WixFrogTelemetrySink-B-aq0eMx.js", contentType: "application/javascript; charset=utf-8", offset: 80439, length: 3515, sha256: "b3c7e2598d5980ded10add4b222a0fe859eaa9cb2a6cfd126f2300760b0dbd6f" },
|
|
234826
234971
|
{ key: "assets/calendar-ics-BvfIYWjG.js", contentType: "application/javascript; charset=utf-8", offset: 83954, length: 2192, sha256: "1636167041e9829ceccd3544297b86b8475c38bd2f759c4dbc17c813dc6e9254" },
|
|
234827
234972
|
{ key: "assets/catalog-CAoUWITw.js", contentType: "application/javascript; charset=utf-8", offset: 86146, length: 26046, sha256: "4c270ca3051f77d761aef1297125e02339d48493dd2b84a0cacf0faf41aa8cb3" },
|
|
234828
|
-
{ key: "assets/catalogFontFaces-
|
|
234973
|
+
{ key: "assets/catalogFontFaces-Ctilj-ZV.js", contentType: "application/javascript; charset=utf-8", offset: 112192, length: 1111, sha256: "576a4c08d5fafdf5f4d96eb1c7b99be028dc1534c0ec9583ade0395a5aa9ef78" },
|
|
234829
234974
|
{ key: "assets/contacts-vcard-BcohPQ0m.js", contentType: "application/javascript; charset=utf-8", offset: 113303, length: 2567, sha256: "c4ff75e96cd909bbb9182c5dc78794fcebc65139fbddef2537711d774fb33ad0" },
|
|
234830
|
-
{ key: "assets/files-transfer-
|
|
234975
|
+
{ key: "assets/files-transfer-BpE53eji.js", contentType: "application/javascript; charset=utf-8", offset: 115870, length: 6446, sha256: "a78496b8031134f8d112af8ef7b5c98b30459d14fb9885a67df2c435207dace5" },
|
|
234831
234976
|
{ key: "assets/frogActionMap-CTMe3Bz1.js", contentType: "application/javascript; charset=utf-8", offset: 122316, length: 1172, sha256: "9f1ce4c70a680dfb902949e1f482c7e47500b69c3350cd091b1b51d674032d53" },
|
|
234832
|
-
{ key: "assets/frogApiRules-
|
|
234977
|
+
{ key: "assets/frogApiRules-tk8Cmjcq.js", contentType: "application/javascript; charset=utf-8", offset: 123488, length: 2207, sha256: "7a27b2e0a70f180506153e92550c6562aadf896c1a8a484ccfe77ffcafc8255d" },
|
|
234833
234978
|
{ key: "assets/frogScreenMap-S_IRnz20.js", contentType: "application/javascript; charset=utf-8", offset: 125695, length: 1067, sha256: "22b2f71e1b06df8f1e79b890d47fe42e983d37865c2cc9be753e4121764c91e1" },
|
|
234834
234979
|
{ key: "assets/glassPreviewBrowser-DONaOehd.js", contentType: "application/javascript; charset=utf-8", offset: 126762, length: 6578, sha256: "4402c4cddd2a564e7466cdf1e12a0e0277c0400b288e1e5eda1d23e797599d31" },
|
|
234835
234980
|
{ key: "assets/image-preparation-Cj4gldm6.js", contentType: "application/javascript; charset=utf-8", offset: 133340, length: 2704, sha256: "32944ea587c2f3b84389b66b50a850437560238f1c8d33b6275973ee04eee865" },
|
|
234836
|
-
{ key: "assets/index-
|
|
234837
|
-
{ key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
234838
|
-
{ key: "assets/pdf-
|
|
234839
|
-
{ key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
234840
|
-
{ key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset:
|
|
234841
|
-
{ key: "assets/pdfDocument-
|
|
234842
|
-
{ key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
234843
|
-
{ key: "assets/scrollLinkedRuntime-
|
|
234844
|
-
{ key: "assets/webviewBridgeHost-
|
|
234845
|
-
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset:
|
|
234846
|
-
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset:
|
|
234847
|
-
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset:
|
|
234848
|
-
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
234849
|
-
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset:
|
|
234850
|
-
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset:
|
|
234851
|
-
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
234852
|
-
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset:
|
|
234853
|
-
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
234854
|
-
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset:
|
|
234855
|
-
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset:
|
|
234856
|
-
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
234857
|
-
{ key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
234858
|
-
{ key: "index.html", contentType: "text/html; charset=utf-8", offset:
|
|
234859
|
-
{ key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset:
|
|
234860
|
-
{ key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset:
|
|
234861
|
-
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset:
|
|
234862
|
-
{ key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset:
|
|
234981
|
+
{ key: "assets/index-c7TDrwUS.js", contentType: "application/javascript; charset=utf-8", offset: 136044, length: 1580398, sha256: "c933733f197fd032ec0cb969a4c4e439b3264fd9f57f9a66f58f5f6731bae3f1" },
|
|
234982
|
+
{ key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset: 1716442, length: 7751, sha256: "42a78b508d0f309f6a4a6efbb8669015211b3c26574c5b0929884c4d9d20b806" },
|
|
234983
|
+
{ key: "assets/pdf-CKMiK8-D.js", contentType: "application/javascript; charset=utf-8", offset: 1724193, length: 488215, sha256: "f72b868102c2ba960b7736896ee03d831fbf5218e59cc153b4bb2af3cc21dbbb" },
|
|
234984
|
+
{ key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset: 2212408, length: 90, sha256: "521a0e528916d678d7588b2cddf3dadd3bb959a6d62426382f61c77a82017e35" },
|
|
234985
|
+
{ key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2212498, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
|
|
234986
|
+
{ key: "assets/pdfDocument-DvXJW2lj.js", contentType: "application/javascript; charset=utf-8", offset: 3529532, length: 3470, sha256: "30736fa2780e5a4c8c60ec4b88c0e5cee1a08d825ec1792ccfff18a0bf8fa52d" },
|
|
234987
|
+
{ key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3533002, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
|
|
234988
|
+
{ key: "assets/scrollLinkedRuntime-3bCFSKQZ.js", contentType: "application/javascript; charset=utf-8", offset: 3535268, length: 2278, sha256: "d753719a7ff3b9cc5e0d9399d2ec2a66f582d21cfa19c67d3f4cd4583f6c4c02" },
|
|
234989
|
+
{ key: "assets/webviewBridgeHost-DvBDJheG.js", contentType: "application/javascript; charset=utf-8", offset: 3537546, length: 9889, sha256: "9ccf43d49fd26d0e6a6dd0ecb4ed28f641a1417b34066ae501cebfbe31e265a1" },
|
|
234990
|
+
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3547435, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
|
|
234991
|
+
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3552045, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
|
|
234992
|
+
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 4040629, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
|
|
234993
|
+
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 4131553, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
|
|
234994
|
+
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4222537, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
|
|
234995
|
+
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4313517, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
|
|
234996
|
+
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4404389, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
|
|
234997
|
+
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4495369, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
|
|
234998
|
+
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4604005, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
|
|
234999
|
+
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4713089, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
|
|
235000
|
+
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4822137, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
|
|
235001
|
+
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 4929837, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
|
|
235002
|
+
{ key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 5017945, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
|
|
235003
|
+
{ key: "index.html", contentType: "text/html; charset=utf-8", offset: 5024763, length: 4924, sha256: "85c594fe14f12fbc33b43fd6aee5cc3df140ce8dbaaf399de293e077a27bb7f7" },
|
|
235004
|
+
{ key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 5029687, length: 11457, sha256: "6cb2b75264fa5fa2b4d28851878a5eab0712900e8b3a6c2370cc661d6d820805" },
|
|
235005
|
+
{ key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 5041144, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
|
|
235006
|
+
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 5042315, length: 23047, sha256: "20d1459e3f896f344e478e613d0c979a0de02e81a929a45d3a0ef6a53af36441" },
|
|
235007
|
+
{ key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 5065362, length: 23064, sha256: "8655cfe9c74212ec5dafecb49d2fdeb48b19f1bd8a710091e3e55631f9b4ab06" }
|
|
234863
235008
|
];
|
|
234864
235009
|
}
|
|
234865
235010
|
});
|
|
@@ -246588,7 +246733,7 @@ function toBase44Schema(spec, app2) {
|
|
|
246588
246733
|
...spec.rls !== void 0 ? { rls: spec.rls } : {}
|
|
246589
246734
|
};
|
|
246590
246735
|
}
|
|
246591
|
-
function
|
|
246736
|
+
function propsOf4(schema2) {
|
|
246592
246737
|
const p2 = schema2?.properties;
|
|
246593
246738
|
return p2 && typeof p2 === "object" && !Array.isArray(p2) ? p2 : {};
|
|
246594
246739
|
}
|
|
@@ -246614,8 +246759,8 @@ function keepRemotePermissions(desired, remote, spec) {
|
|
|
246614
246759
|
if (remote.rls === void 0) delete desired.rls;
|
|
246615
246760
|
else desired.rls = remote.rls;
|
|
246616
246761
|
}
|
|
246617
|
-
const remoteProps =
|
|
246618
|
-
const desiredProps =
|
|
246762
|
+
const remoteProps = propsOf4(remote);
|
|
246763
|
+
const desiredProps = propsOf4(desired);
|
|
246619
246764
|
for (const f2 of spec.fields ?? []) {
|
|
246620
246765
|
const live4 = remoteProps[f2.key];
|
|
246621
246766
|
if (!live4 || f2.rls === void 0) continue;
|
|
@@ -246628,8 +246773,8 @@ function keepRemotePermissions(desired, remote, spec) {
|
|
|
246628
246773
|
}
|
|
246629
246774
|
function inheritUndeclaredPermissions(desired, remote, spec) {
|
|
246630
246775
|
if (spec.rls === void 0 && remote.rls !== void 0) desired.rls = remote.rls;
|
|
246631
|
-
const remoteProps =
|
|
246632
|
-
const desiredProps =
|
|
246776
|
+
const remoteProps = propsOf4(remote);
|
|
246777
|
+
const desiredProps = propsOf4(desired);
|
|
246633
246778
|
for (const f2 of spec.fields ?? []) {
|
|
246634
246779
|
if (f2.rls === void 0 && remoteProps[f2.key]?.rls !== void 0) desiredProps[f2.key].rls = remoteProps[f2.key].rls;
|
|
246635
246780
|
}
|
|
@@ -246674,8 +246819,8 @@ function planEntitySync(declared, snapshot4, opts) {
|
|
|
246674
246819
|
}
|
|
246675
246820
|
const desired = toBase44Schema(spec, app2);
|
|
246676
246821
|
const drift = [];
|
|
246677
|
-
const remoteProps =
|
|
246678
|
-
const desiredProps =
|
|
246822
|
+
const remoteProps = propsOf4(e2.schema);
|
|
246823
|
+
const desiredProps = propsOf4(desired);
|
|
246679
246824
|
for (const [key4, p2] of Object.entries(desiredProps)) {
|
|
246680
246825
|
const r3 = remoteProps[key4];
|
|
246681
246826
|
if (!r3) drift.push({ kind: "add-field", detail: `field "${key4}" (${String(p2.type)}) is added` });
|