@wix/himalaya-cli 0.1637.0 → 0.1638.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-module.d.ts +8 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +25 -0
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{289b89dc660fa050af31f8ce5f22ffd7332a60c7b80b8ffd2b141ec074fb2e22.bin → 3361f61ce6b490c8b7b252658ea67f733d88c6e9f95906d0e31eea4827141df3.bin} +1 -1
- package/dist/browser-plane/sw.js +8 -8
- package/dist/cli.mjs +98 -74
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/android-ux.md +6 -3
- package/guides/himi-json-output.md +7 -0
- package/guides/ios-ux.md +4 -2
- package/package.json +2 -2
- package/templates/beauty-salon/tier5-src/_shared/member-screen.ts +99 -0
- package/templates/beauty-salon/tier5-src/himi-booking-service/index.ts +10 -0
- package/templates/beauty-salon/tier5-src/himi-booking-time/index.ts +20 -5
- package/templates/beauty-salon/tier5-src/himi-store-account/index.ts +71 -4
- package/templates/branded-lite/tier5-src/_shared/member-screen.ts +99 -0
- package/templates/branded-lite/tier5-src/himi-booking-service/index.ts +10 -0
- package/templates/branded-lite/tier5-src/himi-booking-time/index.ts +20 -5
- package/templates/branded-lite/tier5-src/himi-store-account/index.ts +71 -4
- package/templates/community-club/tier5-src/_shared/member-screen.ts +99 -0
- package/templates/community-club/tier5-src/himi-store-account/index.ts +71 -4
- package/templates/events-meetups/tier5-src/_shared/member-screen.ts +99 -0
- package/templates/events-meetups/tier5-src/himi-store-account/index.ts +71 -4
- package/templates/gym-fitness/tier5-src/_shared/member-screen.ts +99 -0
- package/templates/gym-fitness/tier5-src/himi-booking-service/index.ts +10 -0
- package/templates/gym-fitness/tier5-src/himi-booking-time/index.ts +20 -5
- package/templates/gym-fitness/tier5-src/himi-store-account/index.ts +71 -4
- package/templates/nonprofit-cause/tier5-src/_shared/member-screen.ts +99 -0
- package/templates/nonprofit-cause/tier5-src/himi-store-account/index.ts +71 -4
- package/templates/podcast-creator/tier5-src/_shared/member-screen.ts +99 -0
- package/templates/podcast-creator/tier5-src/himi-store-account/index.ts +71 -4
- package/templates/portfolio-creative/tier5-src/_shared/member-screen.ts +99 -0
- package/templates/portfolio-creative/tier5-src/himi-store-account/index.ts +71 -4
- package/templates/restaurant/tier5-src/_shared/member-screen.ts +99 -0
- package/templates/restaurant/tier5-src/himi-store-account/index.ts +71 -4
- package/templates/retail-store/tier5-src/_shared/member-screen.ts +99 -0
- package/templates/retail-store/tier5-src/himi-store-account/index.ts +71 -4
- package/templates/salon-spa/dev/index.ts +16 -12
- package/templates/salon-spa/tier5-src/_shared/member-screen.ts +99 -0
- package/templates/salon-spa/tier5-src/himi-booking-account/index.ts +12 -1
- package/templates/salon-spa/tier5-src/himi-booking-service/index.ts +10 -0
- package/templates/salon-spa/tier5-src/himi-booking-time/index.ts +20 -5
- package/templates/salon-spa/tier5-src/himi-salon-home/index.ts +17 -27
- package/templates/salon-spa/tier5-src/himi-store-account/index.ts +71 -4
- package/templates/yoga-studio/tier5-src/_shared/member-screen.ts +99 -0
- package/templates/yoga-studio/tier5-src/himi-booking-service/index.ts +10 -0
- package/templates/yoga-studio/tier5-src/himi-booking-time/index.ts +20 -5
- package/templates/yoga-studio/tier5-src/himi-store-account/index.ts +71 -4
|
@@ -167,6 +167,14 @@ export interface AppDevModule {
|
|
|
167
167
|
/** Embedded first-run seed (offline self-containment). */
|
|
168
168
|
seed: AppSeed;
|
|
169
169
|
}
|
|
170
|
+
/** The fields an `AppDevModule` must carry, in the order the error names them. `label`,
|
|
171
|
+
* `urlScheme`, `bundles`, `designTokensPath` and `dataRoutes` are optional (`deriveAppMeta`
|
|
172
|
+
* falls back for the first two), so they are deliberately absent. */
|
|
173
|
+
export declare const REQUIRED_APP_DEV_MODULE_FIELDS: readonly ["config", "homeScreenId", "screens.exact", "actions", "createStore", "seed"];
|
|
174
|
+
/** Throw a named-field error unless `module` is a complete `AppDevModule`. Runs after both the
|
|
175
|
+
* host and the contained realm produce a module, so the two share one message. */
|
|
176
|
+
export declare function assertAppDevModuleShape(entry: string, module: unknown): asserts module is AppDevModule;
|
|
177
|
+
export declare function appDevModuleShapeMessage(entry: string, missing: readonly string[]): string;
|
|
170
178
|
/** Derived, lightweight metadata used by the admin picker + `/__dev/apps`. */
|
|
171
179
|
export interface DerivedAppMeta {
|
|
172
180
|
name: string;
|
|
@@ -9390,6 +9390,28 @@ function isFunctionsOnlyConfig(config) {
|
|
|
9390
9390
|
function uiConfig(config) {
|
|
9391
9391
|
return config ?? {};
|
|
9392
9392
|
}
|
|
9393
|
+
var REQUIRED_APP_DEV_MODULE_FIELDS = ["config", "homeScreenId", "screens.exact", "actions", "createStore", "seed"];
|
|
9394
|
+
function assertAppDevModuleShape(entry, module) {
|
|
9395
|
+
if (module === null || typeof module !== "object") {
|
|
9396
|
+
const found = module === null ? "null" : typeof module;
|
|
9397
|
+
throw new Error(`${entry} must default-export an AppDevModule (got ${found}).`);
|
|
9398
|
+
}
|
|
9399
|
+
const m = module;
|
|
9400
|
+
const missing = [];
|
|
9401
|
+
if (!m.config) missing.push("config");
|
|
9402
|
+
if (typeof m.homeScreenId !== "string") missing.push("homeScreenId");
|
|
9403
|
+
const screens = m.screens;
|
|
9404
|
+
if (!screens || typeof screens !== "object") missing.push("screens.exact");
|
|
9405
|
+
else if (!screens.exact || typeof screens.exact !== "object") missing.push("screens.exact");
|
|
9406
|
+
if (!Array.isArray(m.actions)) missing.push("actions");
|
|
9407
|
+
if (typeof m.createStore !== "function") missing.push("createStore");
|
|
9408
|
+
if (!m.seed) missing.push("seed");
|
|
9409
|
+
if (missing.length === 0) return;
|
|
9410
|
+
throw new Error(appDevModuleShapeMessage(entry, missing));
|
|
9411
|
+
}
|
|
9412
|
+
function appDevModuleShapeMessage(entry, missing) {
|
|
9413
|
+
return `${entry}: the default export is not a complete AppDevModule \u2014 missing: ${missing.join(", ")}. Required: ${REQUIRED_APP_DEV_MODULE_FIELDS.join(", ")}. See \`himi docs tier-5-add-a-screen\`.`;
|
|
9414
|
+
}
|
|
9393
9415
|
var META_SITE_ID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
9394
9416
|
function isMetaSiteId(v) {
|
|
9395
9417
|
return typeof v === "string" && META_SITE_ID.test(v);
|
|
@@ -9488,12 +9510,15 @@ function emptyBlock(service, titlePath, ctaTitle, ctaScreen, iconName, id, opts
|
|
|
9488
9510
|
}
|
|
9489
9511
|
var STATE_SWAP_TRANSITION = { enter: "fade", exit: "fade" };
|
|
9490
9512
|
export {
|
|
9513
|
+
REQUIRED_APP_DEV_MODULE_FIELDS,
|
|
9491
9514
|
STATE_SWAP_TRANSITION,
|
|
9492
9515
|
activityIndicator,
|
|
9493
9516
|
agenda,
|
|
9494
9517
|
agendaList,
|
|
9495
9518
|
alertDialog,
|
|
9519
|
+
appDevModuleShapeMessage,
|
|
9496
9520
|
appIntent,
|
|
9521
|
+
assertAppDevModuleShape,
|
|
9497
9522
|
avatarStrip,
|
|
9498
9523
|
banner,
|
|
9499
9524
|
bottomSheet,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"files": [
|
|
3
3
|
{
|
|
4
4
|
"name": "sw.js",
|
|
5
|
-
"bytes":
|
|
5
|
+
"bytes": 2460277
|
|
6
6
|
},
|
|
7
7
|
{
|
|
8
8
|
"name": "host.html",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"bytes": 23064
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
|
-
"name": "preview-deferred/
|
|
24
|
+
"name": "preview-deferred/3361f61ce6b490c8b7b252658ea67f733d88c6e9f95906d0e31eea4827141df3.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-Bh7e0AqI.js",
|
|
83
83
|
"contentType": "application/javascript; charset=utf-8",
|
|
84
|
-
"sha256": "
|
|
85
|
-
"file": "preview-deferred/
|
|
84
|
+
"sha256": "3361f61ce6b490c8b7b252658ea67f733d88c6e9f95906d0e31eea4827141df3",
|
|
85
|
+
"file": "preview-deferred/3361f61ce6b490c8b7b252658ea67f733d88c6e9f95906d0e31eea4827141df3.bin"
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
88
|
"key": "assets/pdf.worker.min-BGnVRhRG.js",
|