@wix/himalaya-cli 0.2023.0 → 0.2025.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/app-config.d.ts +9 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +20 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/validator.d.ts +38 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +24 -3
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +17 -1
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{dda1fb76c0d4cd06bff81e83b374bfbf1937f894c6f2228ec6cd7140743d0775.bin → 0053531a0cb26d4293937d4021578c4c8b6e7fb5f2199a593995336ead10cc38.bin} +1 -1
- package/dist/browser-plane/sw.js +1 -1
- package/dist/cli.mjs +87 -53
- package/dist/preview-assets.generated.bin +0 -0
- package/package.json +2 -2
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-today/index.ts +146 -13
- package/templates/community-club-owner/tier5-src/himi-owner-lite-today/index.ts +146 -13
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-today/index.ts +146 -13
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-today/index.ts +146 -13
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-today/index.ts +146 -13
- package/templates/owner-lite/tier5-src/himi-owner-lite-today/index.ts +146 -13
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-today/index.ts +146 -13
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-today/index.ts +146 -13
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-today/index.ts +146 -13
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-today/index.ts +146 -13
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-today/index.ts +146 -13
|
@@ -30,6 +30,8 @@ export interface FrogTelemetryConfig {
|
|
|
30
30
|
screenMap?: Record<string, ServedScreenMapEntry>;
|
|
31
31
|
/** oneapp: the Wix API bridge BI rules (#4977), a successful Wix API call → its outcome event. */
|
|
32
32
|
apiRules?: ServedWixApiRule[];
|
|
33
|
+
/** #6880 — every rule, `when` rules included, for a host that evaluates `when`; absent while none has one. */
|
|
34
|
+
apiRulesV2?: ServedWixApiRule[];
|
|
33
35
|
/** oneapp: the platform action map (#4979), a user's tap on a descriptor action → its RN tap event. */
|
|
34
36
|
actionMap?: ServedActionMapEntry[];
|
|
35
37
|
/** oneapp, #6878: the action-map entries that read a BI-resolved `tier5.*` param, under a key a pre-#6878
|
|
@@ -82,8 +84,15 @@ export interface ServedWixApiRule {
|
|
|
82
84
|
endpoint?: string;
|
|
83
85
|
module?: string;
|
|
84
86
|
fields: Record<string, string | number>;
|
|
87
|
+
/** #6880 — see `WixApiBiRule.when`; a rule carrying one is served only under `frog.apiRulesV2`. */
|
|
88
|
+
when?: Record<string, string | boolean>;
|
|
85
89
|
}
|
|
86
90
|
export declare function servedWixApiRules(): ServedWixApiRule[];
|
|
91
|
+
export declare function servedWixApiRulesV2(): ServedWixApiRule[] | undefined;
|
|
92
|
+
export declare function splitServedWixApiRules(rules: readonly ServedWixApiRule[]): {
|
|
93
|
+
apiRules: ServedWixApiRule[];
|
|
94
|
+
apiRulesV2?: ServedWixApiRule[];
|
|
95
|
+
};
|
|
87
96
|
export interface ServedScreenMapEntry {
|
|
88
97
|
screenName: string;
|
|
89
98
|
module: string;
|
package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts
CHANGED
|
@@ -4361,6 +4361,12 @@ export interface WidgetSnapshot {
|
|
|
4361
4361
|
* PRESENTATION axis. Each region is drawn with the same family allowlist as `payload`.
|
|
4362
4362
|
*/
|
|
4363
4363
|
regions?: Record<string, Component>;
|
|
4364
|
+
/**
|
|
4365
|
+
* How much this widget matters right now, so iOS can rotate it to the top of a Smart Stack
|
|
4366
|
+
* (`TimelineEntryRelevance`). A frame's own `relevance` wins while that frame is current.
|
|
4367
|
+
* Android has no equivalent and ignores it.
|
|
4368
|
+
*/
|
|
4369
|
+
relevance?: WidgetRelevance;
|
|
4364
4370
|
}
|
|
4365
4371
|
/** One frame of a produce-time widget timeline (Lever A). */
|
|
4366
4372
|
export interface WidgetFrame {
|
|
@@ -4368,6 +4374,20 @@ export interface WidgetFrame {
|
|
|
4368
4374
|
startsAt: number;
|
|
4369
4375
|
/** The frozen component tree for this frame — literals only, like `payload`. */
|
|
4370
4376
|
payload: Component;
|
|
4377
|
+
/**
|
|
4378
|
+
* The size trees for this frame (`small` / `medium` / `circular` / …), drawn instead of the
|
|
4379
|
+
* snapshot's `regions` while the frame is current. Absent → the frame draws `payload` at every
|
|
4380
|
+
* size. Each is drawn with the same family allowlist as `payload`.
|
|
4381
|
+
*/
|
|
4382
|
+
regions?: Record<string, Component>;
|
|
4383
|
+
/** How much this frame matters while it is current; absent → the snapshot's `relevance`. */
|
|
4384
|
+
relevance?: WidgetRelevance;
|
|
4385
|
+
}
|
|
4386
|
+
/** Smart Stack relevance (iOS `TimelineEntryRelevance`): a 0–100 score on the producer's own
|
|
4387
|
+
* scale, held for `durationSeconds` (0 → for as long as the entry is shown). */
|
|
4388
|
+
export interface WidgetRelevance {
|
|
4389
|
+
score: number;
|
|
4390
|
+
durationSeconds: number;
|
|
4371
4391
|
}
|
|
4372
4392
|
/**
|
|
4373
4393
|
* Lever E — an interactive widget action reference on a widget-safe `Button`. Names a
|
package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/validator.d.ts
CHANGED
|
@@ -2031,6 +2031,44 @@ export declare const widgetSnapshotSchema: {
|
|
|
2031
2031
|
readonly payload: {
|
|
2032
2032
|
readonly $ref: "#/$defs/component";
|
|
2033
2033
|
};
|
|
2034
|
+
readonly regions: {
|
|
2035
|
+
readonly type: "object";
|
|
2036
|
+
readonly additionalProperties: {
|
|
2037
|
+
readonly $ref: "#/$defs/component";
|
|
2038
|
+
};
|
|
2039
|
+
};
|
|
2040
|
+
readonly relevance: {
|
|
2041
|
+
readonly type: "object";
|
|
2042
|
+
readonly additionalProperties: false;
|
|
2043
|
+
readonly required: readonly ["score", "durationSeconds"];
|
|
2044
|
+
readonly properties: {
|
|
2045
|
+
readonly score: {
|
|
2046
|
+
readonly type: "integer";
|
|
2047
|
+
readonly minimum: 0;
|
|
2048
|
+
readonly maximum: 100;
|
|
2049
|
+
};
|
|
2050
|
+
readonly durationSeconds: {
|
|
2051
|
+
readonly type: "integer";
|
|
2052
|
+
readonly minimum: 0;
|
|
2053
|
+
};
|
|
2054
|
+
};
|
|
2055
|
+
};
|
|
2056
|
+
};
|
|
2057
|
+
};
|
|
2058
|
+
};
|
|
2059
|
+
readonly relevance: {
|
|
2060
|
+
readonly type: "object";
|
|
2061
|
+
readonly additionalProperties: false;
|
|
2062
|
+
readonly required: readonly ["score", "durationSeconds"];
|
|
2063
|
+
readonly properties: {
|
|
2064
|
+
readonly score: {
|
|
2065
|
+
readonly type: "integer";
|
|
2066
|
+
readonly minimum: 0;
|
|
2067
|
+
readonly maximum: 100;
|
|
2068
|
+
};
|
|
2069
|
+
readonly durationSeconds: {
|
|
2070
|
+
readonly type: "integer";
|
|
2071
|
+
readonly minimum: 0;
|
|
2034
2072
|
};
|
|
2035
2073
|
};
|
|
2036
2074
|
};
|
|
@@ -10353,6 +10353,15 @@ var CORE_COMPONENTS = /* @__PURE__ */ new Set([
|
|
|
10353
10353
|
"himalaya.Lottie",
|
|
10354
10354
|
"himalaya.Rive"
|
|
10355
10355
|
]);
|
|
10356
|
+
var WIDGET_RELEVANCE_SCHEMA = {
|
|
10357
|
+
type: "object",
|
|
10358
|
+
additionalProperties: false,
|
|
10359
|
+
required: ["score", "durationSeconds"],
|
|
10360
|
+
properties: {
|
|
10361
|
+
score: { type: "integer", minimum: 0, maximum: 100 },
|
|
10362
|
+
durationSeconds: { type: "integer", minimum: 0 }
|
|
10363
|
+
}
|
|
10364
|
+
};
|
|
10356
10365
|
var widgetSnapshotSchema = {
|
|
10357
10366
|
$id: "https://himalaya.dev/schema/widget-snapshot.json",
|
|
10358
10367
|
type: "object",
|
|
@@ -10409,10 +10418,17 @@ var widgetSnapshotSchema = {
|
|
|
10409
10418
|
required: ["startsAt", "payload"],
|
|
10410
10419
|
properties: {
|
|
10411
10420
|
startsAt: { type: "integer", minimum: 0 },
|
|
10412
|
-
payload: { $ref: "#/$defs/component" }
|
|
10421
|
+
payload: { $ref: "#/$defs/component" },
|
|
10422
|
+
// The frame's own size trees, scanned below like the snapshot's.
|
|
10423
|
+
regions: {
|
|
10424
|
+
type: "object",
|
|
10425
|
+
additionalProperties: { $ref: "#/$defs/component" }
|
|
10426
|
+
},
|
|
10427
|
+
relevance: WIDGET_RELEVANCE_SCHEMA
|
|
10413
10428
|
}
|
|
10414
10429
|
}
|
|
10415
10430
|
},
|
|
10431
|
+
relevance: WIDGET_RELEVANCE_SCHEMA,
|
|
10416
10432
|
// RFC 0047 — named presentation regions: each value is a frozen component tree
|
|
10417
10433
|
// (compact/minimal/expanded, list/grid/nowPlaying, …). Scanned for the frozen
|
|
10418
10434
|
// guarantee + family allowlist below, exactly like `payload` and `frames`.
|
|
@@ -10569,8 +10585,13 @@ function validateWidget(snapshot) {
|
|
|
10569
10585
|
}
|
|
10570
10586
|
if (Array.isArray(snap.frames)) {
|
|
10571
10587
|
snap.frames.forEach((frame, i) => {
|
|
10572
|
-
const
|
|
10573
|
-
scanWidgetPayload(
|
|
10588
|
+
const f = frame;
|
|
10589
|
+
scanWidgetPayload(f?.payload, family, `$.frames[${i}].payload`, bindingViolations, disallowedComponents, timeRefViolations, intentViolations, actionSites);
|
|
10590
|
+
if (f?.regions && typeof f.regions === "object" && !Array.isArray(f.regions)) {
|
|
10591
|
+
for (const [key, region] of Object.entries(f.regions)) {
|
|
10592
|
+
scanWidgetPayload(region, family, `$.frames[${i}].regions.${key}`, bindingViolations, disallowedComponents, timeRefViolations, intentViolations, actionSites);
|
|
10593
|
+
}
|
|
10594
|
+
}
|
|
10574
10595
|
});
|
|
10575
10596
|
}
|
|
10576
10597
|
if (snap.regions && typeof snap.regions === "object" && !Array.isArray(snap.regions)) {
|
|
@@ -8043,6 +8043,15 @@ var screenDescriptorSchema = {
|
|
|
8043
8043
|
}
|
|
8044
8044
|
}
|
|
8045
8045
|
};
|
|
8046
|
+
var WIDGET_RELEVANCE_SCHEMA = {
|
|
8047
|
+
type: "object",
|
|
8048
|
+
additionalProperties: false,
|
|
8049
|
+
required: ["score", "durationSeconds"],
|
|
8050
|
+
properties: {
|
|
8051
|
+
score: { type: "integer", minimum: 0, maximum: 100 },
|
|
8052
|
+
durationSeconds: { type: "integer", minimum: 0 }
|
|
8053
|
+
}
|
|
8054
|
+
};
|
|
8046
8055
|
var widgetSnapshotSchema = {
|
|
8047
8056
|
$id: "https://himalaya.dev/schema/widget-snapshot.json",
|
|
8048
8057
|
type: "object",
|
|
@@ -8099,10 +8108,17 @@ var widgetSnapshotSchema = {
|
|
|
8099
8108
|
required: ["startsAt", "payload"],
|
|
8100
8109
|
properties: {
|
|
8101
8110
|
startsAt: { type: "integer", minimum: 0 },
|
|
8102
|
-
payload: { $ref: "#/$defs/component" }
|
|
8111
|
+
payload: { $ref: "#/$defs/component" },
|
|
8112
|
+
// The frame's own size trees, scanned below like the snapshot's.
|
|
8113
|
+
regions: {
|
|
8114
|
+
type: "object",
|
|
8115
|
+
additionalProperties: { $ref: "#/$defs/component" }
|
|
8116
|
+
},
|
|
8117
|
+
relevance: WIDGET_RELEVANCE_SCHEMA
|
|
8103
8118
|
}
|
|
8104
8119
|
}
|
|
8105
8120
|
},
|
|
8121
|
+
relevance: WIDGET_RELEVANCE_SCHEMA,
|
|
8106
8122
|
// RFC 0047 — named presentation regions: each value is a frozen component tree
|
|
8107
8123
|
// (compact/minimal/expanded, list/grid/nowPlaying, …). Scanned for the frozen
|
|
8108
8124
|
// guarantee + family allowlist below, exactly like `payload` and `frames`.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"files": [
|
|
3
3
|
{
|
|
4
4
|
"name": "sw.js",
|
|
5
|
-
"bytes":
|
|
5
|
+
"bytes": 2844348
|
|
6
6
|
},
|
|
7
7
|
{
|
|
8
8
|
"name": "host.html",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"bytes": 24320
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
|
-
"name": "preview-deferred/
|
|
24
|
+
"name": "preview-deferred/0053531a0cb26d4293937d4021578c4c8b6e7fb5f2199a593995336ead10cc38.bin",
|
|
25
25
|
"bytes": 488215
|
|
26
26
|
},
|
|
27
27
|
{
|
|
@@ -79,10 +79,10 @@
|
|
|
79
79
|
],
|
|
80
80
|
"deferred": [
|
|
81
81
|
{
|
|
82
|
-
"key": "assets/pdf-
|
|
82
|
+
"key": "assets/pdf-UNbRm9v0.js",
|
|
83
83
|
"contentType": "application/javascript; charset=utf-8",
|
|
84
|
-
"sha256": "
|
|
85
|
-
"file": "preview-deferred/
|
|
84
|
+
"sha256": "0053531a0cb26d4293937d4021578c4c8b6e7fb5f2199a593995336ead10cc38",
|
|
85
|
+
"file": "preview-deferred/0053531a0cb26d4293937d4021578c4c8b6e7fb5f2199a593995336ead10cc38.bin"
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
88
|
"key": "assets/pdf.worker.min-BGnVRhRG.js",
|