@wix/himalaya-cli 0.1187.0 → 0.1189.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/ts/src/site-shell.d.ts +10 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +4 -0
- package/dist/cli.mjs +329 -94
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/capabilities.md +26 -3
- package/guides/component-reference.json +4 -24
- package/guides/component-reference.md +4 -9
- package/guides/himi-test.md +31 -0
- package/guides/qa-builds.md +1 -1
- package/package.json +2 -2
package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/site-shell.d.ts
CHANGED
|
@@ -66,6 +66,16 @@ export interface SiteShellConfig {
|
|
|
66
66
|
* site's own cookie endpoint signs the WebView in). Set by the shell from its member binding;
|
|
67
67
|
* a Base44 site always bridges. */
|
|
68
68
|
sessionBridge?: boolean;
|
|
69
|
+
/** The site's own Members Area pages a member notification can open — My Orders and My Bookings
|
|
70
|
+
* — as paths relative to {@link origin}. They are never navigation rows (a signed-in utility,
|
|
71
|
+
* not a destination), so they live here rather than in {@link pages}; the site analyzer fills
|
|
72
|
+
* them from the pages it actually found. Absent ⇒ that notification opens the home page. */
|
|
73
|
+
memberPages?: SiteMemberPages;
|
|
74
|
+
}
|
|
75
|
+
/** Members Area pages, by what a notification is about. */
|
|
76
|
+
export interface SiteMemberPages {
|
|
77
|
+
orders?: string;
|
|
78
|
+
bookings?: string;
|
|
69
79
|
}
|
|
70
80
|
/** At most four site tabs; the rest belong in the drawer. Four, not the usual phone-bar five,
|
|
71
81
|
* because every tab keeps its WebView warm (`keepAlive`) and the native keep-alive stores
|
|
@@ -13373,6 +13373,10 @@ function assertSiteShellConfig(site) {
|
|
|
13373
13373
|
seen.add(page.id);
|
|
13374
13374
|
sitePageUrl(site.origin, page.path);
|
|
13375
13375
|
}
|
|
13376
|
+
for (const [key, path] of Object.entries(site.memberPages ?? {})) {
|
|
13377
|
+
if (typeof path !== "string" || !path) throw new Error(`site memberPages.${key} must be a path`);
|
|
13378
|
+
sitePageUrl(site.origin, path);
|
|
13379
|
+
}
|
|
13376
13380
|
if (site.layout !== void 0 && !SITE_LAYOUTS.includes(site.layout)) {
|
|
13377
13381
|
throw new Error(`site layout ${JSON.stringify(site.layout)} must be one of ${SITE_LAYOUTS.join(", ")}`);
|
|
13378
13382
|
}
|