@wix/himalaya-cli 0.1595.0 → 0.1597.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.
|
@@ -2,9 +2,9 @@ import type { LogicBundleRef } from "./schema.js";
|
|
|
2
2
|
/**
|
|
3
3
|
* The first binary version that ships RFC 0074's runtime (S3 iOS/macOS, S5 Android, S7 web).
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
5
|
+
* `HimalayaBinaryVersion` 1.9.0 is the first runtime with every arm (S3–S9) on iOS/macOS and
|
|
6
|
+
* Android (#5322); web has no binary version. An app qualifies when every rollout ring's
|
|
7
|
+
* `minBinaryVersion` is at least this, or when it declares `app.newApp` with no lower floor.
|
|
8
8
|
*/
|
|
9
9
|
export declare const APP_SERVICES_MIN_BINARY: string | undefined;
|
|
10
10
|
/**
|
|
@@ -27,9 +27,9 @@ export interface AppServicesConfig {
|
|
|
27
27
|
/**
|
|
28
28
|
* This app has never shipped a binary older than RFC 0074, so every binary it will ever
|
|
29
29
|
* serve supports app services (RFC 0074 §4: "a brand-new app qualifies from day one").
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
30
|
+
* The only way through the §4 gate today: a rollout ring floor is the app's marketing version,
|
|
31
|
+
* not its runtime, so it never qualifies an app on its own (#5379). Authoring-only: it never
|
|
32
|
+
* reaches the wire. A ring that declares a floor below {@link APP_SERVICES_MIN_BINARY} still fails.
|
|
33
33
|
*/
|
|
34
34
|
newApp?: boolean;
|
|
35
35
|
}
|
|
@@ -64,9 +64,9 @@ export declare function rolloutFloor(rollout: AppServicesRollout | null | undefi
|
|
|
64
64
|
/**
|
|
65
65
|
* RFC 0074 §4 — may this app use app services (`$app:`, `app.*`, `app_services`, the bridges)?
|
|
66
66
|
*
|
|
67
|
-
* Yes when the app
|
|
68
|
-
*
|
|
69
|
-
*
|
|
67
|
+
* Yes only when the app declares `app.newApp` (every binary it will ever serve embeds a runtime
|
|
68
|
+
* at or above {@link APP_SERVICES_MIN_BINARY}) and no ring floor contradicts it. A ring floor alone
|
|
69
|
+
* never qualifies: it is the app's marketing version, not its runtime (see the end of this function). NEVER while the constant is unset — not even for a
|
|
70
70
|
* new app: until a binary ships the runtime (S3/S5/S7), nothing resolves `$app:` or routes `app.*`,
|
|
71
71
|
* so a green lint would ship bindings that never resolve and taps that do nothing.
|
|
72
72
|
*/
|
|
@@ -7155,7 +7155,7 @@ function activeMediaItem(props, index = props.startIndex ?? 0) {
|
|
|
7155
7155
|
}
|
|
7156
7156
|
|
|
7157
7157
|
// ../../core/ts/src/app-services-gate.ts
|
|
7158
|
-
var APP_SERVICES_MIN_BINARY =
|
|
7158
|
+
var APP_SERVICES_MIN_BINARY = "1.9.0";
|
|
7159
7159
|
var APP_SERVICES_BRIDGE_MARKERS = ["__himalaya_app_read", "__himalaya_app_dispatch"];
|
|
7160
7160
|
var APP_SERVICE_ERROR_CODES = [
|
|
7161
7161
|
"not_booted",
|
|
@@ -7204,7 +7204,7 @@ function rolloutFloor(rollout) {
|
|
|
7204
7204
|
function appServicesAllowed(appConfig, rollout, minBinary = APP_SERVICES_MIN_BINARY) {
|
|
7205
7205
|
const floor = rolloutFloor(rollout);
|
|
7206
7206
|
const newApp = appConfig?.app?.newApp === true;
|
|
7207
|
-
const howTo = `
|
|
7207
|
+
const howTo = `declare defineApp({ app: { newApp: true } }) if this app has never shipped a binary below runtime ${minBinary ?? "the first release that ships RFC 0074"}; an existing app waits for an enforced runtime floor (#5379)`;
|
|
7208
7208
|
if (newApp && minBinary === void 0) {
|
|
7209
7209
|
return {
|
|
7210
7210
|
ok: false,
|
|
@@ -7230,13 +7230,11 @@ function appServicesAllowed(appConfig, rollout, minBinary = APP_SERVICES_MIN_BIN
|
|
|
7230
7230
|
reason: `no released binary ships app services yet (APP_SERVICES_MIN_BINARY is unset) and this app's minimum binary is ${floor ?? "unbounded"} \u2014 ${howTo}`
|
|
7231
7231
|
};
|
|
7232
7232
|
}
|
|
7233
|
-
|
|
7234
|
-
|
|
7235
|
-
|
|
7236
|
-
|
|
7237
|
-
|
|
7238
|
-
}
|
|
7239
|
-
return { ok: true, floor, reason: `minimum binary ${floor} ships app services (>= ${minBinary})` };
|
|
7233
|
+
return {
|
|
7234
|
+
ok: false,
|
|
7235
|
+
floor,
|
|
7236
|
+
reason: `this app has shipped binaries, and a rollout ring's minBinaryVersion (${floor ?? "unbounded"}) is the app's marketing version, not its embedded runtime, so it cannot prove those binaries carry app services (runtime ${minBinary}) \u2014 declare defineApp({ app: { newApp: true } }) only if this app has never shipped an older binary`
|
|
7237
|
+
};
|
|
7240
7238
|
}
|
|
7241
7239
|
function lowestDeclaredFloor(rollout) {
|
|
7242
7240
|
let lowest = null;
|
package/dist/cli.mjs
CHANGED
|
@@ -12052,7 +12052,7 @@ function rolloutFloor(rollout) {
|
|
|
12052
12052
|
function appServicesAllowed(appConfig, rollout, minBinary = APP_SERVICES_MIN_BINARY) {
|
|
12053
12053
|
const floor2 = rolloutFloor(rollout);
|
|
12054
12054
|
const newApp = appConfig?.app?.newApp === true;
|
|
12055
|
-
const howTo = `
|
|
12055
|
+
const howTo = `declare defineApp({ app: { newApp: true } }) if this app has never shipped a binary below runtime ${minBinary ?? "the first release that ships RFC 0074"}; an existing app waits for an enforced runtime floor (#5379)`;
|
|
12056
12056
|
if (newApp && minBinary === void 0) {
|
|
12057
12057
|
return {
|
|
12058
12058
|
ok: false,
|
|
@@ -12078,13 +12078,11 @@ function appServicesAllowed(appConfig, rollout, minBinary = APP_SERVICES_MIN_BIN
|
|
|
12078
12078
|
reason: `no released binary ships app services yet (APP_SERVICES_MIN_BINARY is unset) and this app's minimum binary is ${floor2 ?? "unbounded"} \u2014 ${howTo}`
|
|
12079
12079
|
};
|
|
12080
12080
|
}
|
|
12081
|
-
|
|
12082
|
-
|
|
12083
|
-
|
|
12084
|
-
|
|
12085
|
-
|
|
12086
|
-
}
|
|
12087
|
-
return { ok: true, floor: floor2, reason: `minimum binary ${floor2} ships app services (>= ${minBinary})` };
|
|
12081
|
+
return {
|
|
12082
|
+
ok: false,
|
|
12083
|
+
floor: floor2,
|
|
12084
|
+
reason: `this app has shipped binaries, and a rollout ring's minBinaryVersion (${floor2 ?? "unbounded"}) is the app's marketing version, not its embedded runtime, so it cannot prove those binaries carry app services (runtime ${minBinary}) \u2014 declare defineApp({ app: { newApp: true } }) only if this app has never shipped an older binary`
|
|
12085
|
+
};
|
|
12088
12086
|
}
|
|
12089
12087
|
function lowestDeclaredFloor(rollout) {
|
|
12090
12088
|
let lowest = null;
|
|
@@ -12106,7 +12104,7 @@ var APP_SERVICES_MIN_BINARY, APP_SERVICES_BRIDGE_MARKERS;
|
|
|
12106
12104
|
var init_app_services_gate = __esm({
|
|
12107
12105
|
"../../core/ts/src/app-services-gate.ts"() {
|
|
12108
12106
|
init_define_HHP_CATALOG();
|
|
12109
|
-
APP_SERVICES_MIN_BINARY =
|
|
12107
|
+
APP_SERVICES_MIN_BINARY = "1.9.0";
|
|
12110
12108
|
APP_SERVICES_BRIDGE_MARKERS = ["__himalaya_app_read", "__himalaya_app_dispatch"];
|
|
12111
12109
|
}
|
|
12112
12110
|
});
|
|
@@ -15065,7 +15063,6 @@ function webViewOriginAllowed(url, origins) {
|
|
|
15065
15063
|
}
|
|
15066
15064
|
var init_webview_origin = __esm({
|
|
15067
15065
|
"../../core/ts/src/webview-origin.ts"() {
|
|
15068
|
-
"use strict";
|
|
15069
15066
|
init_define_HHP_CATALOG();
|
|
15070
15067
|
}
|
|
15071
15068
|
});
|
|
@@ -22566,7 +22563,7 @@ var init_player_host_manifest = __esm({
|
|
|
22566
22563
|
"../../apps/himi-player/player-host-manifest.ts"() {
|
|
22567
22564
|
init_define_HHP_CATALOG();
|
|
22568
22565
|
PLAYER_HOST_MANIFEST = {
|
|
22569
|
-
"version": "1.
|
|
22566
|
+
"version": "1.9.0",
|
|
22570
22567
|
"capabilities": [
|
|
22571
22568
|
"animation",
|
|
22572
22569
|
"app_info",
|
|
@@ -36199,8 +36196,8 @@ var init_circleClipBorder = __esm({
|
|
|
36199
36196
|
});
|
|
36200
36197
|
|
|
36201
36198
|
// ../../core/web-renderer/src/glassPreview.ts
|
|
36202
|
-
function
|
|
36203
|
-
return context?.surface === "phone" && context.native?.includes("ios") === true;
|
|
36199
|
+
function isIOSGlassPreview(context) {
|
|
36200
|
+
return (context?.surface === "phone" || context?.surface === "tablet") && context.native?.includes("ios") === true;
|
|
36204
36201
|
}
|
|
36205
36202
|
var IOS_GLASS_PREVIEW_PALETTE, IOS_GLASS_PREVIEW_ACCESSIBILITY_DECLARATIONS;
|
|
36206
36203
|
var init_glassPreview = __esm({
|
|
@@ -122744,7 +122741,7 @@ function makeCtx(tokens2, scheme = "light", opts = {}) {
|
|
|
122744
122741
|
sizeClass: opts.sizeClass,
|
|
122745
122742
|
isRTL: opts.isRTL,
|
|
122746
122743
|
containerWidth: opts.containerWidth,
|
|
122747
|
-
modStyle: makeModStyle(tk, () => ambientIsRTL(opts.isRTL),
|
|
122744
|
+
modStyle: makeModStyle(tk, () => ambientIsRTL(opts.isRTL), isIOSGlassPreview(opts.idiomContext), scheme),
|
|
122748
122745
|
catalog: opts.catalog,
|
|
122749
122746
|
localeTag: opts.localeTag,
|
|
122750
122747
|
provider,
|
|
@@ -122787,9 +122784,56 @@ function withAssetPin(path2, pin) {
|
|
|
122787
122784
|
function assetPinQuery(app, headers2) {
|
|
122788
122785
|
const release2 = headers2?.["x-himalaya-release"];
|
|
122789
122786
|
if (!release2) return void 0;
|
|
122790
|
-
if (headers2?.["x-himalaya-preview-token"]) return void 0;
|
|
122791
122787
|
const ring = headers2?.["x-himalaya-release-source"] === "ring";
|
|
122792
|
-
|
|
122788
|
+
const query = `release=${encodeURIComponent(release2)}` + (ring ? "&releaseSource=ring" : "");
|
|
122789
|
+
const token = headers2?.["x-himalaya-preview-token"];
|
|
122790
|
+
return token ? { app, query, headers: { "x-himalaya-release": release2, "x-himalaya-preview-token": token } } : { app, query };
|
|
122791
|
+
}
|
|
122792
|
+
function draftAssetHeaders(url, pin, base) {
|
|
122793
|
+
const headers2 = pin?.headers;
|
|
122794
|
+
if (!headers2 || !url) return void 0;
|
|
122795
|
+
const origin = typeof window !== "undefined" ? window.location.origin : "http://localhost";
|
|
122796
|
+
let parsed;
|
|
122797
|
+
try {
|
|
122798
|
+
parsed = new URL(url, origin);
|
|
122799
|
+
} catch {
|
|
122800
|
+
return void 0;
|
|
122801
|
+
}
|
|
122802
|
+
const root = new URL(base ? base.replace(/\/$/, "") : origin, origin);
|
|
122803
|
+
if (parsed.origin !== root.origin) return void 0;
|
|
122804
|
+
const prefix = root.pathname.replace(/\/$/, "");
|
|
122805
|
+
if (!parsed.pathname.startsWith(`${prefix}/v1/asset/`)) return void 0;
|
|
122806
|
+
if (parsed.searchParams.get("app") !== pin.app) return void 0;
|
|
122807
|
+
if (parsed.searchParams.get("release") !== headers2["x-himalaya-release"]) return void 0;
|
|
122808
|
+
return headers2;
|
|
122809
|
+
}
|
|
122810
|
+
function useAssetSource(url, pin, base) {
|
|
122811
|
+
const headers2 = url ? draftAssetHeaders(url, pin, base) : void 0;
|
|
122812
|
+
const release2 = headers2?.["x-himalaya-release"];
|
|
122813
|
+
const token = headers2?.["x-himalaya-preview-token"];
|
|
122814
|
+
const [loaded2, setLoaded] = React16.useState(null);
|
|
122815
|
+
React16.useEffect(() => {
|
|
122816
|
+
if (!url || !release2 || !token) return;
|
|
122817
|
+
const controller = new AbortController();
|
|
122818
|
+
let objectUrl = null;
|
|
122819
|
+
fetch(url, { headers: { "x-himalaya-release": release2, "x-himalaya-preview-token": token }, credentials: "omit", redirect: "error", signal: controller.signal }).then((r3) => r3.ok ? r3.blob() : null).then((blob) => {
|
|
122820
|
+
if (controller.signal.aborted) return;
|
|
122821
|
+
objectUrl = blob ? URL.createObjectURL(blob) : null;
|
|
122822
|
+
setLoaded({ source: url, blob: objectUrl });
|
|
122823
|
+
}, () => {
|
|
122824
|
+
if (!controller.signal.aborted) setLoaded({ source: url, blob: null });
|
|
122825
|
+
});
|
|
122826
|
+
return () => {
|
|
122827
|
+
controller.abort();
|
|
122828
|
+
if (!objectUrl) return;
|
|
122829
|
+
URL.revokeObjectURL(objectUrl);
|
|
122830
|
+
const revoked = objectUrl;
|
|
122831
|
+
setLoaded((prev) => prev?.blob === revoked ? null : prev);
|
|
122832
|
+
};
|
|
122833
|
+
}, [url, release2, token]);
|
|
122834
|
+
if (!url) return null;
|
|
122835
|
+
if (!headers2) return url;
|
|
122836
|
+
return loaded2?.source === url ? loaded2.blob : null;
|
|
122793
122837
|
}
|
|
122794
122838
|
function withTheme(ctx, theme) {
|
|
122795
122839
|
if (!theme || typeof theme !== "object") return ctx;
|
|
@@ -122810,7 +122854,7 @@ function withTheme(ctx, theme) {
|
|
|
122810
122854
|
spacing: { ...base.spacing ?? {}, ...theme.spacing ?? {} }
|
|
122811
122855
|
};
|
|
122812
122856
|
const tk = makeTokenResolvers(merged, ctx.scheme, ctx.idiomContext);
|
|
122813
|
-
return { ...ctx, ...tk, modStyle: makeModStyle(tk, () => layoutIsRTL(ctx),
|
|
122857
|
+
return { ...ctx, ...tk, modStyle: makeModStyle(tk, () => layoutIsRTL(ctx), isIOSGlassPreview(ctx.idiomContext), ctx.scheme) };
|
|
122814
122858
|
}
|
|
122815
122859
|
function ensureValueSwapKeyframes() {
|
|
122816
122860
|
ensureTransitionKeyframes();
|
|
@@ -125049,7 +125093,7 @@ function renderNodeInner(node, ctx) {
|
|
|
125049
125093
|
const extra = {};
|
|
125050
125094
|
const material = node?.modifiers?.material;
|
|
125051
125095
|
const materialName = typeof material === "string" ? material : material?.token ?? material?.name;
|
|
125052
|
-
if (
|
|
125096
|
+
if (isIOSGlassPreview(ctx.idiomContext) && ctx.material(materialName)?.backdropFilter) {
|
|
125053
125097
|
extra["data-himi-glass-material"] = "";
|
|
125054
125098
|
}
|
|
125055
125099
|
const componentId = resolvedComponentId(node?.id, ctx);
|
|
@@ -125295,7 +125339,7 @@ function renderInner(node, ctx) {
|
|
|
125295
125339
|
const ld = modifiers?.layoutDirection ?? modifiers?.layout_direction;
|
|
125296
125340
|
if ((ld === "ltr" || ld === "rtl") && layoutIsRTL(ctx) !== (ld === "rtl")) {
|
|
125297
125341
|
const pinnedRTL = ld === "rtl";
|
|
125298
|
-
ctx = { ...ctx, layoutRTL: pinnedRTL, modStyle: makeModStyle(ctx, () => pinnedRTL,
|
|
125342
|
+
ctx = { ...ctx, layoutRTL: pinnedRTL, modStyle: makeModStyle(ctx, () => pinnedRTL, isIOSGlassPreview(ctx.idiomContext), ctx.scheme) };
|
|
125299
125343
|
}
|
|
125300
125344
|
const pkg = node.body?.package;
|
|
125301
125345
|
const C2 = ctx.color;
|
|
@@ -126466,6 +126510,7 @@ var init_renderNode = __esm({
|
|
|
126466
126510
|
const avatar = props2.presentation === "avatar";
|
|
126467
126511
|
const heading = asText2(resolveScalarStatic(props2.heading, ctx));
|
|
126468
126512
|
const caption = name;
|
|
126513
|
+
const assetSrc = useAssetSource(imageUrl ? resolveAssetUrl(imageUrl, ctx.assetBaseUrl, ctx.assetPin) : null, ctx.assetPin, ctx.assetBaseUrl);
|
|
126469
126514
|
return /* @__PURE__ */ jsxs9(
|
|
126470
126515
|
"div",
|
|
126471
126516
|
{
|
|
@@ -126501,7 +126546,7 @@ var init_renderNode = __esm({
|
|
|
126501
126546
|
/* @__PURE__ */ jsx11("input", { ref: fileRef, type: "file", accept: "image/*", tabIndex: -1, "aria-hidden": "true", onChange: onPick, onClick: (e2) => e2.stopPropagation(), style: { display: "none" } }),
|
|
126502
126547
|
avatar ? /* @__PURE__ */ jsxs9(Fragment4, { children: [
|
|
126503
126548
|
/* @__PURE__ */ jsxs9("div", { "aria-hidden": "true", style: { position: "relative", flex: "0 0 72px", width: 72, height: 72, borderRadius: "50%", overflow: "hidden", display: "flex", alignItems: "center", justifyContent: "center", background: C2("accentPrimary", "#116DFF"), color: C2("textOnAccent", "#FFFFFF") }, children: [
|
|
126504
|
-
localPreview ||
|
|
126549
|
+
localPreview || assetSrc ? /* @__PURE__ */ jsx11("img", { src: localPreview || assetSrc || void 0, alt: "", style: { position: "absolute", inset: 0, width: "100%", height: "100%", objectFit: "cover", display: "block" } }) : fallbackText.trim() ? /* @__PURE__ */ jsx11("span", { style: { fontFamily: fontStack(ctx.font("title2").family, ctx.idiom), fontSize: pxToRem(22), fontWeight: 600 }, children: fallbackText }) : iconSvg("camera", { size: 24, color: C2("textOnAccent", "#FFFFFF") }),
|
|
126505
126550
|
uploading ? /* @__PURE__ */ jsx11("div", { "data-media-uploading": "true", style: { position: "absolute", inset: 0, background: "rgba(0,0,0,0.35)" } }) : null
|
|
126506
126551
|
] }),
|
|
126507
126552
|
/* @__PURE__ */ jsxs9("div", { style: { display: "flex", flexDirection: "column", gap: 4, alignItems: "flex-start" }, children: [
|
|
@@ -126510,7 +126555,7 @@ var init_renderNode = __esm({
|
|
|
126510
126555
|
failed3 ? /* @__PURE__ */ jsx11("span", { "data-media-upload-error": "true", style: { fontSize: pxToRem(13), color: C2("danger", "#E62214") }, children: MEDIA_FIELD_UPLOAD_FAILED }) : null
|
|
126511
126556
|
] })
|
|
126512
126557
|
] }) : /* @__PURE__ */ jsxs9(Fragment4, { children: [
|
|
126513
|
-
|
|
126558
|
+
assetSrc ? /* @__PURE__ */ jsx11("img", { src: assetSrc, alt: "", "aria-hidden": "true", style: { position: "absolute", inset: 0, width: "100%", height: "100%", objectFit: "cover", display: "block" } }) : /* @__PURE__ */ jsxs9("div", { "aria-hidden": "true", style: { display: "flex", flexDirection: "column", alignItems: "center", gap: 8, color: accentTextColor(ctx) }, children: [
|
|
126514
126559
|
iconSvg("camera", { size: 28, color: accentTextColor(ctx) }),
|
|
126515
126560
|
/* @__PURE__ */ jsx11("span", { style: { fontFamily: fontStack(f2.family, ctx.idiom), fontWeight: f2.weight, fontSize: f2.remSize }, children: name })
|
|
126516
126561
|
] }),
|
|
@@ -128909,8 +128954,9 @@ var init_renderNode = __esm({
|
|
|
128909
128954
|
const imgUrl = props2.url != null && isBinding(props2.url) ? boundUrl : props2.url;
|
|
128910
128955
|
const imgInitials = props2.initials != null && isBinding(props2.initials) ? boundInitials : props2.initials;
|
|
128911
128956
|
const [failedSrc, setFailedSrc] = React16.useState(null);
|
|
128957
|
+
const assetSrc = useAssetSource(imgUrl && typeof imgUrl === "string" ? resolveAssetUrl(imgUrl, ctx.assetBaseUrl, ctx.assetPin) : null, ctx.assetPin, ctx.assetBaseUrl);
|
|
128912
128958
|
const resolvedSrc = useImageSource(
|
|
128913
|
-
|
|
128959
|
+
assetSrc,
|
|
128914
128960
|
{ width: w2, height: boxHeight, mode: renditionMode(contentMode), ratio: effectiveAr || void 0 }
|
|
128915
128961
|
).url;
|
|
128916
128962
|
const sources = useResponsiveImage(resolvedSrc, w2, boxHeight, renditionMode(contentMode), effectiveAr || void 0);
|
|
@@ -129011,8 +129057,9 @@ var init_renderNode = __esm({
|
|
|
129011
129057
|
const a11y = { [ROLE_WHEN_NAMED]: "img", [SELF_RENDERED_LEAF]: true };
|
|
129012
129058
|
const [failedUrl, setFailedUrl] = React16.useState(null);
|
|
129013
129059
|
const source = typeof imageUrl === "string" && imageUrl && failedUrl !== imageUrl ? imageUrl : null;
|
|
129060
|
+
const photoSrc = useAssetSource(source ? resolveAssetUrl(source, ctx.assetBaseUrl, ctx.assetPin) : null, ctx.assetPin, ctx.assetBaseUrl);
|
|
129014
129061
|
const photo = useImageSource(
|
|
129015
|
-
|
|
129062
|
+
photoSrc,
|
|
129016
129063
|
{ width: size, height: size, mode: "fill" }
|
|
129017
129064
|
).url;
|
|
129018
129065
|
if (photo && source) {
|
|
@@ -129139,7 +129186,7 @@ var init_renderNode = __esm({
|
|
|
129139
129186
|
const resolvedTrailingIcon = isBinding(props2.trailingIcon) ? boundTrailingIcon : props2.trailingIcon;
|
|
129140
129187
|
const buttonStyle = props2.style ?? "primary";
|
|
129141
129188
|
const variant = buttonVariant(buttonStyle);
|
|
129142
|
-
const glassPreview = variant === "glass" &&
|
|
129189
|
+
const glassPreview = variant === "glass" && isIOSGlassPreview(ctx.idiomContext);
|
|
129143
129190
|
const destructive = buttonStyle === "destructive" || props2.role === "destructive";
|
|
129144
129191
|
const primary = variant === "filled";
|
|
129145
129192
|
const bt2 = resolveButtonTokens(ctx.tokens, props2.size, buttonStyle);
|
|
@@ -131575,7 +131622,7 @@ var init_renderNode = __esm({
|
|
|
131575
131622
|
const boundImageUrl = useResolvedScalar(props2.imageUrl != null && isBinding(props2.imageUrl) ? props2.imageUrl : void 0, ctx);
|
|
131576
131623
|
const rawImageUrl = props2.imageUrl != null && isBinding(props2.imageUrl) ? boundImageUrl : props2.imageUrl;
|
|
131577
131624
|
const heroSrc = typeof rawImageUrl === "string" && rawImageUrl !== "" ? rawImageUrl : typeof props2.imageAsset === "string" && isWebAssetPath(props2.imageAsset) ? props2.imageAsset : void 0;
|
|
131578
|
-
const resolvedHero = heroSrc ? resolveAssetUrl(heroSrc, ctx.assetBaseUrl, ctx.assetPin) : void 0;
|
|
131625
|
+
const resolvedHero = useAssetSource(heroSrc ? resolveAssetUrl(heroSrc, ctx.assetBaseUrl, ctx.assetPin) : null, ctx.assetPin, ctx.assetBaseUrl) ?? void 0;
|
|
131579
131626
|
const [failedHero, setFailedHero] = React16.useState(null);
|
|
131580
131627
|
const heroUrl = resolvedHero && resolvedHero !== failedHero ? resolvedHero : void 0;
|
|
131581
131628
|
const expanded = Math.max(0, typeof props2.expandedHeight === "number" && Number.isFinite(props2.expandedHeight) ? props2.expandedHeight : 280);
|
|
@@ -132462,7 +132509,7 @@ function renderDescriptorToHtml(payload, tokens2, scheme = "light", provider = n
|
|
|
132462
132509
|
...opts?.assetBaseUrl ? { assetBaseUrl: opts.assetBaseUrl } : {}
|
|
132463
132510
|
});
|
|
132464
132511
|
const FOCUS_STYLE_MARKUP = `<style data-himalaya-focus-ring>${FOCUS_RING_CSS}</style>`;
|
|
132465
|
-
const glassPreview =
|
|
132512
|
+
const glassPreview = isIOSGlassPreview(opts?.idiomContext);
|
|
132466
132513
|
const glassStyleMarkup = `<style data-himalaya-glass-preview>@media (prefers-reduced-transparency:reduce),(forced-colors:active),(prefers-contrast:more){.himi-ios-glass-preview [data-himi-glass-material]{${IOS_GLASS_PREVIEW_ACCESSIBILITY_DECLARATIONS}}}</style>`;
|
|
132467
132514
|
const glassPalette = IOS_GLASS_PREVIEW_PALETTE[scheme === "dark" ? "dark" : "light"];
|
|
132468
132515
|
const withRenderStyles = (markup) => {
|
|
@@ -132586,6 +132633,7 @@ __export(src_exports2, {
|
|
|
132586
132633
|
avatarCircle: () => avatarCircle,
|
|
132587
132634
|
controlIdiomFor: () => controlIdiomFor,
|
|
132588
132635
|
controlText: () => controlText,
|
|
132636
|
+
draftAssetHeaders: () => draftAssetHeaders,
|
|
132589
132637
|
fontStack: () => fontStack,
|
|
132590
132638
|
hasIcon: () => hasIcon,
|
|
132591
132639
|
iconGlyph: () => iconGlyph,
|
|
@@ -132614,6 +132662,7 @@ __export(src_exports2, {
|
|
|
132614
132662
|
responsiveImage: () => responsiveImage,
|
|
132615
132663
|
servicePath: () => servicePath,
|
|
132616
132664
|
skeletonMotion: () => skeletonMotion,
|
|
132665
|
+
useAssetSource: () => useAssetSource,
|
|
132617
132666
|
useBoundValue: () => useBoundValue,
|
|
132618
132667
|
useImageSource: () => useImageSource,
|
|
132619
132668
|
videoObjectFit: () => videoObjectFit,
|
|
@@ -180003,44 +180052,44 @@ var init_preview_assets_generated = __esm({
|
|
|
180003
180052
|
init_define_HHP_CATALOG();
|
|
180004
180053
|
init_preview_assets_format();
|
|
180005
180054
|
PREVIEW_ASSET_MANIFEST = [
|
|
180006
|
-
{ key: "assets/DashboardHost-
|
|
180007
|
-
{ key: "assets/DevDrawer-
|
|
180008
|
-
{ key: "assets/IdiomCompare-
|
|
180009
|
-
{ key: "assets/LightboxViewer-
|
|
180010
|
-
{ key: "assets/OfflineReadingBar-
|
|
180011
|
-
{ key: "assets/PhonePreviewControl-
|
|
180012
|
-
{ key: "assets/SchemeCompare-
|
|
180013
|
-
{ key: "assets/WixFrogTelemetrySink-
|
|
180055
|
+
{ key: "assets/DashboardHost-CJdVFWfX.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2971, sha256: "d9db67f0620697f569646ef1bf49b7e93bc42338ef85728c2fc4787696019e7b" },
|
|
180056
|
+
{ key: "assets/DevDrawer-BHTenbKq.js", contentType: "application/javascript; charset=utf-8", offset: 2979, length: 16783, sha256: "e43fc5b2348e21515f6cbd0d2e88773483f141b84f403a039d5dcf5b04331d14" },
|
|
180057
|
+
{ key: "assets/IdiomCompare-BfQiu0n9.js", contentType: "application/javascript; charset=utf-8", offset: 19762, length: 1926, sha256: "e5755d88a11bd931cc579feea75db84953488f8ccbfee9995d12dcfd0e86b1ee" },
|
|
180058
|
+
{ key: "assets/LightboxViewer-CK0jwU-2.js", contentType: "application/javascript; charset=utf-8", offset: 21688, length: 8171, sha256: "1e49ad7cc008c67e05df0de1588ef6451e0cc16b507c09f8e31a687f0cdaef97" },
|
|
180059
|
+
{ key: "assets/OfflineReadingBar-KWSixiCC.js", contentType: "application/javascript; charset=utf-8", offset: 29859, length: 1707, sha256: "8e7918719713c2161bed17b9fbc3fa1245cbf9bf829ebe127a4b04dbd3c02bd4" },
|
|
180060
|
+
{ key: "assets/PhonePreviewControl-CyP4yxlI.js", contentType: "application/javascript; charset=utf-8", offset: 31566, length: 37768, sha256: "1e71259d4df2d15d3d514c5829e0c8951050fcd185b47310b7846cb5442814b5" },
|
|
180061
|
+
{ key: "assets/SchemeCompare-BOQuq2NT.js", contentType: "application/javascript; charset=utf-8", offset: 69334, length: 1858, sha256: "069fe166e1750b4b206337fd4654cd2ff455f2159e808de19de322e0989a570a" },
|
|
180062
|
+
{ key: "assets/WixFrogTelemetrySink-COYeyGUg.js", contentType: "application/javascript; charset=utf-8", offset: 71192, length: 3165, sha256: "df4aee9699464b84b232e25dc64fddae7de688d9d436bcea4411baa7e96633bf" },
|
|
180014
180063
|
{ key: "assets/calendar-ics-BvfIYWjG.js", contentType: "application/javascript; charset=utf-8", offset: 74357, length: 2192, sha256: "1636167041e9829ceccd3544297b86b8475c38bd2f759c4dbc17c813dc6e9254" },
|
|
180015
|
-
{ key: "assets/files-transfer-
|
|
180064
|
+
{ key: "assets/files-transfer-BC3gbCng.js", contentType: "application/javascript; charset=utf-8", offset: 76549, length: 6446, sha256: "ac40ca4687209bb75c27105686eb5acd07469d8eeac48ef71d9589d3bebf8a4a" },
|
|
180016
180065
|
{ key: "assets/glassPreviewBrowser-DONaOehd.js", contentType: "application/javascript; charset=utf-8", offset: 82995, length: 6578, sha256: "4402c4cddd2a564e7466cdf1e12a0e0277c0400b288e1e5eda1d23e797599d31" },
|
|
180017
180066
|
{ key: "assets/image-preparation-Cj4gldm6.js", contentType: "application/javascript; charset=utf-8", offset: 89573, length: 2704, sha256: "32944ea587c2f3b84389b66b50a850437560238f1c8d33b6275973ee04eee865" },
|
|
180018
|
-
{ key: "assets/index-
|
|
180019
|
-
{ key: "assets/jsx-runtime-CY_jTiqj.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
180020
|
-
{ key: "assets/pdf-
|
|
180021
|
-
{ key: "assets/pdf.worker.min-BQa_JDET.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
180022
|
-
{ key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset:
|
|
180023
|
-
{ key: "assets/pdfDocument-
|
|
180024
|
-
{ key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
180025
|
-
{ key: "assets/webviewBridgeHost-
|
|
180026
|
-
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset:
|
|
180027
|
-
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset:
|
|
180028
|
-
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset:
|
|
180029
|
-
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
180030
|
-
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset:
|
|
180031
|
-
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset:
|
|
180032
|
-
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
180033
|
-
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset:
|
|
180034
|
-
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
180035
|
-
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset:
|
|
180036
|
-
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset:
|
|
180037
|
-
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
180038
|
-
{ key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
180039
|
-
{ key: "index.html", contentType: "text/html; charset=utf-8", offset:
|
|
180040
|
-
{ key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset:
|
|
180041
|
-
{ key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset:
|
|
180042
|
-
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset:
|
|
180043
|
-
{ key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset:
|
|
180067
|
+
{ key: "assets/index-B5JSupQS.js", contentType: "application/javascript; charset=utf-8", offset: 92277, length: 1494187, sha256: "ab21d9f2fcab760f72740d26fba2d4b0fd44568b53b8d1b768061f31832b458b" },
|
|
180068
|
+
{ key: "assets/jsx-runtime-CY_jTiqj.js", contentType: "application/javascript; charset=utf-8", offset: 1586464, length: 7624, sha256: "29dfba5b56f79a0b84d6b04d84d87617454baeba03c225f682ab2ab7ae2d5016" },
|
|
180069
|
+
{ key: "assets/pdf-RVU11R9r.js", contentType: "application/javascript; charset=utf-8", offset: 1594088, length: 488199, sha256: "c71a2b69988b2471a7636bd45b5ba9b480b90474b42b8b801157210fd8fa2c47" },
|
|
180070
|
+
{ key: "assets/pdf.worker.min-BQa_JDET.js", contentType: "application/javascript; charset=utf-8", offset: 2082287, length: 73, sha256: "41bcfda4f3c8c0a81c785ea87c69afc8e7d0ed8c333324aee94c273d881bb6aa" },
|
|
180071
|
+
{ key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2082360, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
|
|
180072
|
+
{ key: "assets/pdfDocument-DDrNcoOB.js", contentType: "application/javascript; charset=utf-8", offset: 3399394, length: 3453, sha256: "2e88d366f7ffcfe61938de71ce5115da2b26c718d5b387c09a7d09ea177138ee" },
|
|
180073
|
+
{ key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3402847, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
|
|
180074
|
+
{ key: "assets/webviewBridgeHost-Dmru7034.js", contentType: "application/javascript; charset=utf-8", offset: 3405113, length: 9888, sha256: "18fc2db4c8470791fee8808fcc168bd5ae385cfea15d70b15cd1cf01979a856e" },
|
|
180075
|
+
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3415001, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
|
|
180076
|
+
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3419611, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
|
|
180077
|
+
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 3908195, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
|
|
180078
|
+
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 3999119, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
|
|
180079
|
+
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4090103, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
|
|
180080
|
+
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4181083, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
|
|
180081
|
+
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4271955, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
|
|
180082
|
+
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4362935, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
|
|
180083
|
+
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4471571, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
|
|
180084
|
+
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4580655, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
|
|
180085
|
+
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4689703, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
|
|
180086
|
+
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 4797403, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
|
|
180087
|
+
{ key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 4885511, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
|
|
180088
|
+
{ key: "index.html", contentType: "text/html; charset=utf-8", offset: 4892329, length: 5037, sha256: "96f03f83bf1540ec2edfadac9a78f49224300ac5eb76cb9bd450e961a4c921eb" },
|
|
180089
|
+
{ key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 4897366, length: 11457, sha256: "6cb2b75264fa5fa2b4d28851878a5eab0712900e8b3a6c2370cc661d6d820805" },
|
|
180090
|
+
{ key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 4908823, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
|
|
180091
|
+
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 4909994, length: 23047, sha256: "20d1459e3f896f344e478e613d0c979a0de02e81a929a45d3a0ef6a53af36441" },
|
|
180092
|
+
{ key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 4933041, length: 23064, sha256: "8655cfe9c74212ec5dafecb49d2fdeb48b19f1bd8a710091e3e55631f9b4ab06" }
|
|
180044
180093
|
];
|
|
180045
180094
|
}
|
|
180046
180095
|
});
|
|
@@ -196644,7 +196693,7 @@ var init_spaces_host_manifest = __esm({
|
|
|
196644
196693
|
"../../apps/himi-spaces-lite/spaces-host-manifest.ts"() {
|
|
196645
196694
|
init_define_HHP_CATALOG();
|
|
196646
196695
|
SPACES_HOST_MANIFEST = {
|
|
196647
|
-
"version": "1.
|
|
196696
|
+
"version": "1.9.0",
|
|
196648
196697
|
"capabilities": [
|
|
196649
196698
|
"animation",
|
|
196650
196699
|
"app_info",
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1597.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": [
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"artifactId": "himalaya-cli"
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
|
-
"falconPackageHash": "
|
|
75
|
+
"falconPackageHash": "fdefbbbafc15c579e39464ec6f448cd09b9e8439934b586fb9f3a6ac"
|
|
76
76
|
}
|