@wix/himalaya-cli 0.1852.0 → 0.1853.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/cli.mjs +95 -32
- package/guides/himi-json-output.md +8 -2
- package/guides/one-app-section-mappings.md +1 -1
- package/guides/one-app-to-himi-app.md +19 -6
- package/package.json +2 -2
- package/template-icons/bare-fashion.png +0 -0
- package/templates/bare-fashion/README.md +52 -0
- package/templates/bare-fashion/config.ts +474 -0
- package/templates/bare-fashion/dev/index.ts +16526 -0
- package/templates/bare-fashion/himalaya.content.json +70 -0
- package/templates/bare-fashion/himalaya.template.json +18 -0
- package/templates/bare-fashion/icon.png +0 -0
- package/templates/bare-fashion/platforms.json +3 -0
- package/templates/bare-fashion/tier5-src/_shared/app-locale.ts +70 -0
- package/templates/bare-fashion/tier5-src/_shared/bare-fashion-address-book.ts +116 -0
- package/templates/bare-fashion/tier5-src/_shared/bare-fashion-address-countries.ts +261 -0
- package/templates/bare-fashion/tier5-src/_shared/bare-fashion-bag-count.ts +24 -0
- package/templates/bare-fashion/tier5-src/_shared/bare-fashion-categories.ts +48 -0
- package/templates/bare-fashion/tier5-src/_shared/bare-fashion-facets.ts +265 -0
- package/templates/bare-fashion/tier5-src/_shared/bare-fashion-load-error.ts +38 -0
- package/templates/bare-fashion/tier5-src/_shared/bare-fashion-product-card.ts +136 -0
- package/templates/bare-fashion/tier5-src/_shared/bare-fashion-store-options.ts +129 -0
- package/templates/bare-fashion/tier5-src/_shared/branded-lite-hosted.ts +282 -0
- package/templates/bare-fashion/tier5-src/_shared/collection-contract.ts +228 -0
- package/templates/bare-fashion/tier5-src/_shared/collection-query.ts +201 -0
- package/templates/bare-fashion/tier5-src/_shared/collection-service.ts +429 -0
- package/templates/bare-fashion/tier5-src/_shared/engine-intl.ts +529 -0
- package/templates/bare-fashion/tier5-src/_shared/himi-account.ts +209 -0
- package/templates/bare-fashion/tier5-src/_shared/himi-copy.ts +123 -0
- package/templates/bare-fashion/tier5-src/_shared/himi-layouts.ts +142 -0
- package/templates/bare-fashion/tier5-src/_shared/himi-store-categories.ts +108 -0
- package/templates/bare-fashion/tier5-src/_shared/himi-store-saved.ts +57 -0
- package/templates/bare-fashion/tier5-src/_shared/himi-store.ts +7 -0
- package/templates/bare-fashion/tier5-src/_shared/himi-text.ts +24 -0
- package/templates/bare-fashion/tier5-src/_shared/hosted-checkout.ts +70 -0
- package/templates/bare-fashion/tier5-src/_shared/live-session.ts +172 -0
- package/templates/bare-fashion/tier5-src/_shared/local-preferences.ts +38 -0
- package/templates/bare-fashion/tier5-src/_shared/member-access.ts +63 -0
- package/templates/bare-fashion/tier5-src/_shared/member-avatar.ts +76 -0
- package/templates/bare-fashion/tier5-src/_shared/member-orders.ts +8 -0
- package/templates/bare-fashion/tier5-src/_shared/online-actions.ts +76 -0
- package/templates/bare-fashion/tier5-src/_shared/owner-load-error.ts +348 -0
- package/templates/bare-fashion/tier5-src/himi-bare-fashion-account/index.ts +127 -0
- package/templates/bare-fashion/tier5-src/himi-bare-fashion-address-form/index.ts +367 -0
- package/templates/bare-fashion/tier5-src/himi-bare-fashion-addresses/index.ts +202 -0
- package/templates/bare-fashion/tier5-src/himi-bare-fashion-appearance/index.ts +73 -0
- package/templates/bare-fashion/tier5-src/himi-bare-fashion-cart/index.ts +540 -0
- package/templates/bare-fashion/tier5-src/himi-bare-fashion-collection/index.ts +111 -0
- package/templates/bare-fashion/tier5-src/himi-bare-fashion-home/index.ts +241 -0
- package/templates/bare-fashion/tier5-src/himi-bare-fashion-nav/index.ts +56 -0
- package/templates/bare-fashion/tier5-src/himi-bare-fashion-order/index.ts +437 -0
- package/templates/bare-fashion/tier5-src/himi-bare-fashion-product/index.ts +650 -0
- package/templates/bare-fashion/tier5-src/himi-bare-fashion-products/index.ts +142 -0
- package/templates/bare-fashion/tier5-src/himi-bare-fashion-saved/index.ts +45 -0
- package/templates/bare-fashion/tier5-src/himi-bare-fashion-search/index.ts +199 -0
- package/templates/bare-fashion/tier5-src/himi-bare-fashion-shop/index.ts +79 -0
- package/templates/bare-fashion/tier5-src/himi-bare-fashion-sign-in/index.ts +269 -0
- package/templates/bare-fashion/tier5-src/himi-bare-fashion-wallet/index.ts +224 -0
- package/templates/bare-fashion/tier5-src/himi-branded-lite-info/index.ts +209 -0
- package/templates/bare-fashion/tier5-src/himi-branded-lite-orders/index.ts +327 -0
- package/templates/bare-fashion/tier5-src/wix-spaces-collections/index.ts +48 -0
- package/templates/bare-fashion/tier5-src/wix-spaces-delete-account/index.ts +59 -0
- package/templates/bare-fashion/tier5-src/wix-spaces-view-profile/index.ts +119 -0
- package/templates/bare-fashion/tokens.json +348 -0
- package/templates/beauty-salon/tier5-src/_shared/collection-query.ts +8 -0
- package/templates/beauty-salon/tier5-src/_shared/collection-service.ts +7 -1
- package/templates/beauty-salon-owner/tier5-src/_shared/collection-query.ts +8 -0
- package/templates/beauty-salon-owner/tier5-src/_shared/collection-service.ts +7 -1
- package/templates/branded-lite/recipes/upcoming-bookings.json +118 -6
- package/templates/branded-lite/tier5-src/_shared/collection-query-legacy.ts +7 -0
- package/templates/branded-lite/tier5-src/_shared/collection-query.ts +7 -0
- package/templates/branded-lite/tier5-src/_shared/collection-service.ts +7 -1
- package/templates/branded-lite/tier5-src/_shared/events-inline-options.ts +55 -3
- package/templates/branded-lite/tier5-src/_shared/events-inline.ts +5 -3
- package/templates/branded-lite/tier5-src/_shared/upcoming-bookings-section.ts +15 -4
- package/templates/branded-lite/tier5-src/himi-events-list/index.ts +17 -0
- package/templates/brandy/tier5-src/_shared/collection-query-legacy.ts +7 -0
- package/templates/brandy/tier5-src/_shared/collection-query.ts +7 -0
- package/templates/brandy/tier5-src/_shared/collection-service.ts +7 -1
- package/templates/community-club/tier5-src/_shared/collection-query.ts +8 -0
- package/templates/community-club/tier5-src/_shared/collection-service.ts +7 -1
- package/templates/community-club/tier5-src/_shared/events-inline-options.ts +77 -0
- package/templates/community-club/tier5-src/himi-events-list/index.ts +17 -0
- package/templates/community-club-owner/tier5-src/_shared/collection-query.ts +8 -0
- package/templates/community-club-owner/tier5-src/_shared/collection-service.ts +7 -1
- package/templates/conference/tier5-src/_shared/collection-query.ts +8 -0
- package/templates/conference/tier5-src/_shared/collection-service.ts +7 -1
- package/templates/conference/tier5-src/_shared/events-inline-options.ts +77 -0
- package/templates/conference/tier5-src/himi-events-list/index.ts +17 -0
- package/templates/events-meetups/tier5-src/_shared/collection-query.ts +8 -0
- package/templates/events-meetups/tier5-src/_shared/collection-service.ts +7 -1
- package/templates/events-meetups/tier5-src/_shared/events-inline-options.ts +77 -0
- package/templates/events-meetups/tier5-src/himi-events-list/index.ts +17 -0
- package/templates/events-meetups-owner/tier5-src/_shared/collection-query.ts +8 -0
- package/templates/events-meetups-owner/tier5-src/_shared/collection-service.ts +7 -1
- package/templates/fitness-gym/tier5-src/_shared/collection-query.ts +8 -0
- package/templates/fitness-gym/tier5-src/_shared/collection-service.ts +7 -1
- package/templates/gym-fitness/tier5-src/_shared/collection-query.ts +8 -0
- package/templates/gym-fitness/tier5-src/_shared/collection-service.ts +7 -1
- package/templates/gym-fitness/tier5-src/_shared/events-inline-options.ts +77 -0
- package/templates/gym-fitness/tier5-src/himi-events-list/index.ts +17 -0
- package/templates/gym-fitness-owner/tier5-src/_shared/collection-query.ts +8 -0
- package/templates/gym-fitness-owner/tier5-src/_shared/collection-service.ts +7 -1
- package/templates/medical-services/tier5-src/_shared/collection-query.ts +8 -0
- package/templates/medical-services/tier5-src/_shared/collection-service.ts +7 -1
- package/templates/nonprofit-cause/tier5-src/_shared/collection-query.ts +8 -0
- package/templates/nonprofit-cause/tier5-src/_shared/collection-service.ts +7 -1
- package/templates/nonprofit-cause/tier5-src/_shared/events-inline-options.ts +77 -0
- package/templates/nonprofit-cause/tier5-src/himi-events-list/index.ts +17 -0
- package/templates/nonprofit-cause-owner/tier5-src/_shared/collection-query.ts +8 -0
- package/templates/nonprofit-cause-owner/tier5-src/_shared/collection-service.ts +7 -1
- package/templates/owner-lite/tier5-src/_shared/collection-query.ts +8 -0
- package/templates/owner-lite/tier5-src/_shared/collection-service.ts +7 -1
- package/templates/personal-fitness-trainer/tier5-src/_shared/collection-query.ts +8 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/collection-service.ts +7 -1
- package/templates/podcast-creator/tier5-src/_shared/collection-query.ts +8 -0
- package/templates/podcast-creator/tier5-src/_shared/collection-service.ts +7 -1
- package/templates/podcast-creator/tier5-src/_shared/events-inline-options.ts +77 -0
- package/templates/podcast-creator/tier5-src/himi-events-list/index.ts +17 -0
- package/templates/podcast-creator-owner/tier5-src/_shared/collection-query.ts +8 -0
- package/templates/podcast-creator-owner/tier5-src/_shared/collection-service.ts +7 -1
- package/templates/portfolio-creative/tier5-src/_shared/collection-query.ts +8 -0
- package/templates/portfolio-creative/tier5-src/_shared/collection-service.ts +7 -1
- package/templates/portfolio-creative/tier5-src/_shared/events-inline-options.ts +77 -0
- package/templates/portfolio-creative/tier5-src/himi-events-list/index.ts +17 -0
- package/templates/portfolio-creative-owner/tier5-src/_shared/collection-query.ts +8 -0
- package/templates/portfolio-creative-owner/tier5-src/_shared/collection-service.ts +7 -1
- package/templates/restaurant/tier5-src/_shared/collection-query.ts +8 -0
- package/templates/restaurant/tier5-src/_shared/collection-service.ts +7 -1
- package/templates/restaurant/tier5-src/_shared/events-inline-options.ts +77 -0
- package/templates/restaurant/tier5-src/himi-events-list/index.ts +17 -0
- package/templates/restaurant-owner/tier5-src/_shared/collection-query.ts +8 -0
- package/templates/restaurant-owner/tier5-src/_shared/collection-service.ts +7 -1
- package/templates/retail-store/tier5-src/_shared/collection-query-legacy.ts +7 -0
- package/templates/retail-store/tier5-src/_shared/collection-query.ts +7 -0
- package/templates/retail-store/tier5-src/_shared/collection-service.ts +7 -1
- package/templates/retail-store-owner/tier5-src/_shared/collection-query.ts +8 -0
- package/templates/retail-store-owner/tier5-src/_shared/collection-service.ts +7 -1
- package/templates/salon-spa/tier5-src/_shared/collection-query.ts +8 -0
- package/templates/salon-spa/tier5-src/_shared/collection-service.ts +7 -1
- package/templates/wholesale-store/tier5-src/_shared/collection-query-legacy.ts +7 -0
- package/templates/wholesale-store/tier5-src/_shared/collection-query.ts +7 -0
- package/templates/wholesale-store/tier5-src/_shared/collection-service.ts +7 -1
- package/templates/yoga-studio/tier5-src/_shared/collection-query.ts +8 -0
- package/templates/yoga-studio/tier5-src/_shared/collection-service.ts +7 -1
- package/templates/yoga-studio/tier5-src/_shared/events-inline-options.ts +77 -0
- package/templates/yoga-studio/tier5-src/himi-events-list/index.ts +17 -0
- package/templates/yoga-studio-owner/tier5-src/_shared/collection-query.ts +8 -0
- package/templates/yoga-studio-owner/tier5-src/_shared/collection-service.ts +7 -1
package/dist/cli.mjs
CHANGED
|
@@ -172747,11 +172747,25 @@ function rowTemplateTarget(entry, removed) {
|
|
|
172747
172747
|
if (!isNode5(entry)) return void 0;
|
|
172748
172748
|
const props2 = entry.body.props;
|
|
172749
172749
|
if (!props2?.itemsPath || !Array.isArray(props2.items)) return void 0;
|
|
172750
|
-
|
|
172751
|
-
|
|
172752
|
-
|
|
172753
|
-
|
|
172754
|
-
|
|
172750
|
+
const inRow = (v2) => {
|
|
172751
|
+
if (Array.isArray(v2)) {
|
|
172752
|
+
for (const x2 of v2) {
|
|
172753
|
+
const to2 = inRow(x2);
|
|
172754
|
+
if (to2) return to2;
|
|
172755
|
+
}
|
|
172756
|
+
return void 0;
|
|
172757
|
+
}
|
|
172758
|
+
if (!v2 || typeof v2 !== "object") return void 0;
|
|
172759
|
+
if (isNode5(v2) && v2.body.props?.itemsPath) return void 0;
|
|
172760
|
+
const own6 = isNode5(v2) ? tapTarget(v2) : void 0;
|
|
172761
|
+
if (own6 && removed(own6)) return own6;
|
|
172762
|
+
for (const child3 of Object.values(v2)) {
|
|
172763
|
+
const to2 = inRow(child3);
|
|
172764
|
+
if (to2) return to2;
|
|
172765
|
+
}
|
|
172766
|
+
return void 0;
|
|
172767
|
+
};
|
|
172768
|
+
return inRow(props2.items);
|
|
172755
172769
|
}
|
|
172756
172770
|
function emptyDeadCases(root, isDead) {
|
|
172757
172771
|
const out2 = [];
|
|
@@ -248188,7 +248202,7 @@ var init_native_defaults = __esm({
|
|
|
248188
248202
|
platform_general_contact_section: contact,
|
|
248189
248203
|
platform_general_contact_section_bp: contact,
|
|
248190
248204
|
achievements_list_section: [...programs, "Default list limit 2 and See All when more results exist; respect authored limit/infinite settings"],
|
|
248191
|
-
achievements_carousel_section: [...programs, "Default carousel limit 5 and
|
|
248205
|
+
achievements_carousel_section: [...programs, "Default carousel limit 5, page dots and See All to the programs screen; respect authored selection/limit"],
|
|
248192
248206
|
newBlog_postlist_vertical_section: blogList,
|
|
248193
248207
|
newBlog_compact_post_list_vertical_section: blogList,
|
|
248194
248208
|
events_list_section: ["Date badge", "Share event", "RSVP or ticket action appropriate to the event and visitor state"],
|
|
@@ -248596,6 +248610,7 @@ __export(coverage_exports, {
|
|
|
248596
248610
|
deriveRequirements: () => deriveRequirements,
|
|
248597
248611
|
recordRouteTargets: () => recordRouteTargets,
|
|
248598
248612
|
requirementId: () => requirementId,
|
|
248613
|
+
summarizeVerification: () => summarizeVerification,
|
|
248599
248614
|
syncCoverage: () => syncCoverage,
|
|
248600
248615
|
verifiedEvidence: () => verifiedEvidence,
|
|
248601
248616
|
verifyCoverage: () => verifyCoverage,
|
|
@@ -248987,6 +249002,14 @@ function verifyCoverage(evidenceDir, contentDir2, releaseHash, builtScreenIds) {
|
|
|
248987
249002
|
}
|
|
248988
249003
|
return { ok: issues.length === 0, count: rows.length, requirementIds: rows.map((row2) => String(row2.id ?? "")), issues };
|
|
248989
249004
|
}
|
|
249005
|
+
function summarizeVerification(coverage2, native) {
|
|
249006
|
+
const open6 = new Set(coverage2.issues.flatMap((issue3) => issue3.id ? [issue3.id] : [])).size;
|
|
249007
|
+
return {
|
|
249008
|
+
failedParts: [...coverage2.ok ? [] : ["coverage"], ...native && !native.ok ? ["native"] : []],
|
|
249009
|
+
issueCount: coverage2.issues.length + (native?.issues.length ?? 0),
|
|
249010
|
+
rows: { total: coverage2.count, open: open6, closed: Math.max(coverage2.count - open6, 0) }
|
|
249011
|
+
};
|
|
249012
|
+
}
|
|
248990
249013
|
var SECTION_VISIBILITY_STATES, obj7, sha3, REQUIRED_CHECK, COVERAGE_FILE, NATIVE_PROOF_FILE;
|
|
248991
249014
|
var init_coverage = __esm({
|
|
248992
249015
|
"src/one-app/coverage.ts"() {
|
|
@@ -277437,6 +277460,10 @@ function showsEveryEvent(settings) {
|
|
|
277437
277460
|
const { categoryIds, eventIds } = eventsSelection(settings);
|
|
277438
277461
|
return categoryIds.length === 0 && eventIds.length === 0;
|
|
277439
277462
|
}
|
|
277463
|
+
function eventsOpenParams(settings) {
|
|
277464
|
+
const { categoryIds, eventIds } = eventsSelection(settings);
|
|
277465
|
+
return { ...categoryIds.length ? { categoryIds: categoryIds.join(",") } : {}, ...eventIds.length ? { eventIds: eventIds.join(",") } : {} };
|
|
277466
|
+
}
|
|
277440
277467
|
var idsOf;
|
|
277441
277468
|
var init_events_section = __esm({
|
|
277442
277469
|
"src/one-app/events-section.ts"() {
|
|
@@ -277527,6 +277554,11 @@ function programsLimit(section3, settings) {
|
|
|
277527
277554
|
if (authored2 === void 0 || authored2 === null) return PROGRAMS_DEFAULT_LIMIT;
|
|
277528
277555
|
return void 0;
|
|
277529
277556
|
}
|
|
277557
|
+
function carouselLimit(section3, settings) {
|
|
277558
|
+
const authored2 = obj15(section3.extraProps).limit ?? settings.limit;
|
|
277559
|
+
if (authored2 === void 0 || authored2 === null) return void 0;
|
|
277560
|
+
return countOf2(authored2) ?? PROGRAMS_INLINE_MAX;
|
|
277561
|
+
}
|
|
277530
277562
|
function galleryCards(id, s5, index, ctx, options2) {
|
|
277531
277563
|
if (!ctx.hasScreen("himi_gallery")) throw new RecipeError("this scaffold has no himi_gallery screen for a gallery card to open, so the section keeps its title and a See All link.");
|
|
277532
277564
|
const svc = ctx.uses("galleries", `galleries${index}`, { ...options2.limit !== void 0 ? { limit: options2.limit } : {}, showName: options2.showName });
|
|
@@ -277686,9 +277718,25 @@ function blogCarousel(type2, layoutGaps) {
|
|
|
277686
277718
|
return vstack(`${id}.box`, children2, 12, { ...inset(16, 16), onAppear: { actionId: `tier5.${svc}.load`, params: {} } });
|
|
277687
277719
|
};
|
|
277688
277720
|
}
|
|
277689
|
-
function
|
|
277690
|
-
const
|
|
277691
|
-
|
|
277721
|
+
function withOpenParams(node3, id, values) {
|
|
277722
|
+
const walk5 = (value2) => {
|
|
277723
|
+
if (Array.isArray(value2)) return value2.map(walk5);
|
|
277724
|
+
if (!value2 || typeof value2 !== "object") return value2;
|
|
277725
|
+
const entry = value2;
|
|
277726
|
+
const next = Object.fromEntries(Object.entries(entry).map(([k3, v2]) => [k3, walk5(v2)]));
|
|
277727
|
+
if (entry.id !== id) return next;
|
|
277728
|
+
const body = obj15(next.body), props2 = obj15(body.props), action = obj15(props2.action);
|
|
277729
|
+
return { ...next, body: { ...body, props: { ...props2, action: { ...action, params: { ...obj15(action.params), ...values } } } } };
|
|
277730
|
+
};
|
|
277731
|
+
return walk5(node3);
|
|
277732
|
+
}
|
|
277733
|
+
function eventsInline(id, s5, st2, index, ctx) {
|
|
277734
|
+
const { categoryIds, eventIds } = eventsSelection(st2);
|
|
277735
|
+
const open6 = eventsOpenParams(st2);
|
|
277736
|
+
const seeAll = Object.keys(open6).length > 0 && ctx.hasScreen("himi_events");
|
|
277737
|
+
const svc = ctx.uses("events", `events${index}`, { ...categoryIds.length ? { categoryIds } : {}, ...eventIds.length ? { eventIds } : {} });
|
|
277738
|
+
const recipe = ctx.recipe("events-inline", { svc, id, shareLabel: "Share", seeAllLabel: seeAll ? "See All" : "", seeAllScreen: "himi_events" });
|
|
277739
|
+
const card2 = seeAll ? withOpenParams(recipe, `${id}.see_all`, open6) : withoutNode(recipe, `${id}.see_all`);
|
|
277692
277740
|
const children2 = [];
|
|
277693
277741
|
const title = str16(s5.title).trim();
|
|
277694
277742
|
if (s5.showTitle === true && title) children2.push(text29(`${id}.title`, title, "title3", {}, inset(0, 0, 0)));
|
|
@@ -277980,11 +278028,14 @@ function generateScreens(input) {
|
|
|
277980
278028
|
uses.length = registered;
|
|
277981
278029
|
extras.length = extra;
|
|
277982
278030
|
out2.gaps.length = gapped;
|
|
277983
|
-
const
|
|
278031
|
+
const values = fallback.params?.(obj15(section3.settings)) ?? {};
|
|
278032
|
+
const sibling = fallback.sibling && Object.keys(values).length === 0 ? items.find((other) => other !== layoutItemId && arr(obj15(layoutItems[other]).elements).some((e2) => {
|
|
278033
|
+
const candidate = obj15(sections2[str16(obj15(e2).elementId)]);
|
|
278034
|
+
return str16(candidate.sectionDefinitionId) === fallback.sibling && (fallback.siblingShowsAll?.(obj15(candidate.settings)) ?? true);
|
|
278035
|
+
})) : void 0;
|
|
277984
278036
|
fellBack.add(`${layoutItemId}|${type2}`);
|
|
277985
278037
|
const screen = standIn !== void 0 && scaffold && !scaffold.has(fallback.screen) ? standIn : fallback.screen;
|
|
277986
278038
|
const target = `${ROUTE_PLACEHOLDER}${sibling ?? ""}|${screen}|${fallback.sibling ?? ""}`;
|
|
277987
|
-
const values = fallback.params?.(obj15(section3.settings)) ?? {};
|
|
277988
278039
|
const passed = values.categoryId !== void 0 ? { ...values, categoryActivation: sectionNodeId } : values;
|
|
277989
278040
|
if (fallback.params) paramLinked.add(screen);
|
|
277990
278041
|
const title = section3.showTitle === false ? "" : str16(section3.title).trim() || label4;
|
|
@@ -278251,7 +278302,7 @@ function addNavigation(out2, plan, taken2, pageIconOf) {
|
|
|
278251
278302
|
out2.routes.push({ layoutItemId: "(more)", label: "More", screenId, kind: "generated" });
|
|
278252
278303
|
out2.tabs.push({ layoutItemId: "(more)", label: "More", screenId });
|
|
278253
278304
|
}
|
|
278254
|
-
var TEMPLATE_HOME_SCREEN, TEMPLATE_SCREEN_PARAM_KEYS, SYSTEM_ALL_PRODUCTS_ID, collectionParams, TEMPLATE_PARAMS, countOf2, SCREEN_ADAPTATIONS, FALLBACK_TARGETS, NO_INLINE_SECTION, ROUTE_PLACEHOLDER, BOTTOM_TABS_BEFORE_MORE, TEMPLATE_VERTICALS, PAGE_TYPE_ICONS, HOME_TAB_ICON, TEMPLATE_FALLBACKS, MODULES, obj15, arr, str16, node2, text29, vstack, hstack, inset, openUrl2, youtubeIdOf, DIRECT_VIDEO_FILE, dialUrl, mailUrl, BUSINESS_CHAT_SCREEN2, sourceTap, SUBSCRIPTIONS_MAX, selectedPlanIds, MEMBERS_RAIL, PROGRAMS_DEFAULT_LIMIT, PROGRAMS_INLINE_MAX, PODCAST_INLINE, GALLERIES_INLINE_MAX, GALLERIES_LIST_INLINE, BLOG_HERO_MAX, BLOG_SEARCH_POSTS, EVENT_SCHEDULE_INLINE, SHOP_ALL, SERVICES_INLINE, UPCOMING_INLINE, PRODUCTS_INLINE, GROUP_FEED_POSTS_MAX, NEWSFEED_GROUPS_MAX, LOYALTY_TIERS_INLINE, VIDEOS_INLINE_DEFAULT, VIDEOS_INLINE_MAX, WISHLIST_INLINE, SOCIAL_NETWORKS, HANDLERS, MERGED_PAGES_BUNDLE, chevron;
|
|
278305
|
+
var TEMPLATE_HOME_SCREEN, TEMPLATE_SCREEN_PARAM_KEYS, SYSTEM_ALL_PRODUCTS_ID, collectionParams, TEMPLATE_PARAMS, countOf2, SCREEN_ADAPTATIONS, FALLBACK_TARGETS, NO_INLINE_SECTION, ROUTE_PLACEHOLDER, BOTTOM_TABS_BEFORE_MORE, TEMPLATE_VERTICALS, PAGE_TYPE_ICONS, HOME_TAB_ICON, TEMPLATE_FALLBACKS, MODULES, obj15, arr, str16, node2, text29, vstack, hstack, inset, openUrl2, youtubeIdOf, DIRECT_VIDEO_FILE, dialUrl, mailUrl, BUSINESS_CHAT_SCREEN2, sourceTap, SUBSCRIPTIONS_MAX, selectedPlanIds, MEMBERS_RAIL, PROGRAMS_DEFAULT_LIMIT, PROGRAMS_INLINE_MAX, PODCAST_INLINE, GALLERIES_INLINE_MAX, GALLERIES_LIST_INLINE, BLOG_HERO_MAX, BLOG_SEARCH_POSTS, EVENT_SCHEDULE_INLINE, SHOP_ALL, SERVICES_INLINE, UPCOMING_INLINE, HISTORY_INLINE, PRODUCTS_INLINE, GROUP_FEED_POSTS_MAX, NEWSFEED_GROUPS_MAX, LOYALTY_TIERS_INLINE, VIDEOS_INLINE_DEFAULT, VIDEOS_INLINE_MAX, WISHLIST_INLINE, SOCIAL_NETWORKS, HANDLERS, MERGED_PAGES_BUNDLE, chevron;
|
|
278255
278306
|
var init_generate2 = __esm({
|
|
278256
278307
|
"src/one-app/generate.ts"() {
|
|
278257
278308
|
init_define_HHP_CATALOG();
|
|
@@ -278325,7 +278376,8 @@ var init_generate2 = __esm({
|
|
|
278325
278376
|
FALLBACK_TARGETS = {
|
|
278326
278377
|
achievements_carousel_section: { sibling: "achievements_list_section", screen: "himi_programs" },
|
|
278327
278378
|
achievements_list_section: { screen: "himi_programs" },
|
|
278328
|
-
|
|
278379
|
+
// A section limited to categories or events passes them, and never links the sibling page: that page shows every event.
|
|
278380
|
+
events_list_section: { sibling: "events_list_section", screen: "himi_events", params: eventsOpenParams, siblingShowsAll: showsEveryEvent },
|
|
278329
278381
|
newBlog_postlist_vertical_section: { screen: "himi_blog" },
|
|
278330
278382
|
newBlog_compact_post_list_vertical_section: { screen: "himi_blog" },
|
|
278331
278383
|
member_list_section: { sibling: "member_list_section", screen: "himi_members" },
|
|
@@ -278365,7 +278417,7 @@ var init_generate2 = __esm({
|
|
|
278365
278417
|
// `himi_groups_feed` is a newer template screen: a scaffold without it links `himi_groups` (`TEMPLATE_FALLBACKS`), as a page of only this section opens it.
|
|
278366
278418
|
groups_feed_section: { screen: "himi_groups_feed", needsScreen: true },
|
|
278367
278419
|
// Link only when the scaffold has the events screen: without it the link would open nothing, so the section is reported instead.
|
|
278368
|
-
events_carousel_section: { sibling: "events_list_section", screen: "himi_events", needsScreen: true },
|
|
278420
|
+
events_carousel_section: { sibling: "events_list_section", screen: "himi_events", needsScreen: true, siblingShowsAll: showsEveryEvent },
|
|
278369
278421
|
// Upcoming sessions of the business (the Bookings widget): the template's agenda screen lists the site's upcoming class and course sessions.
|
|
278370
278422
|
platform_general_upcoming_section: { screen: "himi_agenda", needsScreen: true },
|
|
278371
278423
|
// One event's schedule inline needs `himi_event` for View All to open; without it (or with no event chosen) the section keeps its title and a link to the events screen.
|
|
@@ -278536,6 +278588,7 @@ var init_generate2 = __esm({
|
|
|
278536
278588
|
SHOP_ALL = "all";
|
|
278537
278589
|
SERVICES_INLINE = 6;
|
|
278538
278590
|
UPCOMING_INLINE = 3;
|
|
278591
|
+
HISTORY_INLINE = 1;
|
|
278539
278592
|
PRODUCTS_INLINE = { carousel: 8, grid: 6 };
|
|
278540
278593
|
GROUP_FEED_POSTS_MAX = 20;
|
|
278541
278594
|
NEWSFEED_GROUPS_MAX = 5;
|
|
@@ -278976,17 +279029,19 @@ var init_generate2 = __esm({
|
|
|
278976
279029
|
const showPast = obj15(st2.previousBookings).enabled !== false;
|
|
278977
279030
|
const emptyText = str16(obj15(st2.emptyState).text).trim();
|
|
278978
279031
|
const layout2 = str16(obj15(st2.virtualSession).cardLayout).trim();
|
|
278979
|
-
ctx.gap(sectionId, type2, `the section shows the next ${UPCOMING_INLINE} upcoming bookings
|
|
279032
|
+
ctx.gap(sectionId, type2, `the section shows the next ${UPCOMING_INLINE} upcoming bookings as text rows, and a See All button opens My Bookings`);
|
|
279033
|
+
if (showPast) ctx.gap(sectionId, type2, `the History block shows the latest ${HISTORY_INLINE} past booking as a text row with Book Again, or the source's empty state, under a "History" heading; its Show All opens My Bookings on its Upcoming tab (the source opens its History tab), and the card has no date block`);
|
|
278980
279034
|
if (obj15(st2.avatars).show === true) ctx.gap(sectionId, type2, "the source shows avatars on its booking cards; the section's rows have none");
|
|
278981
279035
|
if (layout2 && layout2 !== "TEXT_ONLY") ctx.gap(sectionId, type2, `the source shows virtual sessions as "${layout2}" cards; the section shows them as text rows`);
|
|
278982
279036
|
if (st2.isBusinessProfile === true) ctx.gap(sectionId, type2, "the source is set to a business profile; the section shows the signed-in member's own bookings");
|
|
278983
|
-
const svc = ctx.uses("upcomingBookings", `upcomingBookings${index}`, { limit: UPCOMING_INLINE, showPast, ...emptyText ? { emptyText } : {} });
|
|
279037
|
+
const svc = ctx.uses("upcomingBookings", `upcomingBookings${index}`, { limit: UPCOMING_INLINE, showPast, ...showPast ? { pastLimit: HISTORY_INLINE } : {}, ...emptyText ? { emptyText } : {} });
|
|
278984
279038
|
const children2 = [];
|
|
278985
279039
|
const title = str16(s5.title).trim();
|
|
278986
279040
|
if (s5.showTitle === true && title) children2.push(text29(`${id}.title`, title, "title3", {}, inset(0, 0, 0)));
|
|
278987
|
-
let list5 = ctx.recipe("upcoming-bookings", { svc, id, signInScreen: "himi_sign_in", seeAllLabel: "See All", seeAllScreen: "himi_bookings" });
|
|
279041
|
+
let list5 = ctx.recipe("upcoming-bookings", { svc, id, signInScreen: "himi_sign_in", serviceScreen: "himi_service", seeAllLabel: "See All", seeAllScreen: "himi_bookings" });
|
|
278988
279042
|
if (!showPast) list5 = withoutNode(withoutNode(list5, `${id}.pastBlock`), `${id}.upcomingHead`);
|
|
278989
279043
|
if (!ctx.hasScreen("himi_sign_in")) list5 = withoutNode(list5, `${id}.signin.button`);
|
|
279044
|
+
if (!ctx.hasScreen("himi_service")) list5 = withoutNode(list5, `${id}.past.again`);
|
|
278990
279045
|
children2.push(list5, ...ctx.optionalRecipe("section-error", { svc, id, action: "load" }));
|
|
278991
279046
|
return vstack(`${id}.box`, children2, 12, { ...inset(16, 16), onAppear: { actionId: `tier5.${svc}.load`, params: {} } });
|
|
278992
279047
|
},
|
|
@@ -279011,21 +279066,28 @@ var init_generate2 = __esm({
|
|
|
279011
279066
|
children2.push(card2, ...ctx.optionalRecipe("section-error", { svc, id, action: "load" }));
|
|
279012
279067
|
return vstack(`${id}.box`, children2, 12, { ...inset(16, 16), onAppear: { actionId: `tier5.${svc}.load`, params: {} } });
|
|
279013
279068
|
},
|
|
279014
|
-
// The programs carousel: the shared programs module in carousel layout, configured from the section's own settings.
|
|
279015
|
-
|
|
279069
|
+
// The programs carousel: the shared programs module in carousel layout, configured from the section's own settings. The source
|
|
279070
|
+
// component always offers See All to the programs screen (no setting turns it off), so it is drawn whenever the scaffold can.
|
|
279071
|
+
achievements_carousel_section: (id, s5, st2, index, ctx, sectionId) => {
|
|
279016
279072
|
const sorting = obj15(st2.sortingSettings);
|
|
279017
279073
|
const order = sorting.ordering === "MANUAL" ? arr(sorting.challengesOrder).filter((v2) => typeof v2 === "string") : [];
|
|
279074
|
+
const limit = carouselLimit(s5, st2);
|
|
279075
|
+
if (limit !== void 0 && limit > PROGRAMS_INLINE_MAX) ctx.gap(sectionId, "achievements_carousel_section", `the source shows ${limit} programs in the carousel; it shows at most ${PROGRAMS_INLINE_MAX} and See All opens the full list`);
|
|
279018
279076
|
const svc = ctx.uses("programs", `programs${index}`, {
|
|
279019
279077
|
layout: "carousel",
|
|
279020
279078
|
showDuration: st2.isDurationVisible !== false,
|
|
279021
279079
|
showParticipants: st2.isParticipantsVisible !== false,
|
|
279022
279080
|
showPrice: st2.isPriceVisible !== false,
|
|
279081
|
+
...limit !== void 0 ? { limit } : {},
|
|
279023
279082
|
...order.length ? { order } : {}
|
|
279024
279083
|
});
|
|
279025
279084
|
const children2 = [];
|
|
279026
279085
|
const title = str16(s5.title).trim();
|
|
279027
279086
|
if (s5.showTitle !== false && title) children2.push(text29(`${id}.title`, title, "title3", {}, inset(0, 0, 0)));
|
|
279028
279087
|
children2.push(ctx.recipe("programs-carousel", { svc, id, detailScreen: "himi_program" }), ...ctx.optionalRecipe("section-error", { svc, id, action: "retry" }));
|
|
279088
|
+
const seeAll = ctx.hasScreen("himi_programs") ? ctx.optionalRecipe("programs-see-all", { svc, id, seeAllLabel: "See All", seeAllScreen: "himi_programs" }) : [];
|
|
279089
|
+
if (seeAll.length) children2.push(...seeAll.map((n2) => ({ ...n2, modifiers: Object.fromEntries(Object.entries(obj15(n2.modifiers)).filter(([key4]) => key4 !== "hiddenPath")) })));
|
|
279090
|
+
else ctx.gap(sectionId, "achievements_carousel_section", "the source offers See All for more programs; this scaffold has no himi_programs screen or no programs-see-all recipe, so the button is left out");
|
|
279029
279091
|
return vstack(`${id}.box`, children2, 12, { ...inset(16, 16), onAppear: { actionId: `tier5.${svc}.load`, params: {} } });
|
|
279030
279092
|
},
|
|
279031
279093
|
// The programs list: full-width cards from the shared programs module (the list layout pages itself), with the source's
|
|
@@ -279096,12 +279158,11 @@ var init_generate2 = __esm({
|
|
|
279096
279158
|
// a limited list shows N posts and offers "See All Posts" for the full list in the same category.
|
|
279097
279159
|
newBlog_postlist_vertical_section: (id, s5, st2, index, ctx, sectionId) => blogSection(id, s5, st2, index, ctx, sectionId, "newBlog_postlist_vertical_section"),
|
|
279098
279160
|
newBlog_compact_post_list_vertical_section: (id, s5, st2, index, ctx, sectionId) => blogSection(id, s5, st2, index, ctx, sectionId, "newBlog_compact_post_list_vertical_section"),
|
|
279099
|
-
// Events inline: the shared events section
|
|
279161
|
+
// Events inline: the shared events section, limited to the source's chosen categories or events when it names any.
|
|
279100
279162
|
events_list_section: (id, s5, st2, index, ctx, sectionId) => {
|
|
279101
|
-
|
|
279102
|
-
|
|
279103
|
-
|
|
279104
|
-
return eventsInline(id, s5, index, ctx);
|
|
279163
|
+
const { categoryIds, eventIds } = eventsSelection(st2);
|
|
279164
|
+
if (categoryIds.length && eventIds.length) ctx.gap(sectionId, "events_list_section", "the source names both categories and events; the section shows the events that are in one of the categories and are also among the chosen ones");
|
|
279165
|
+
return eventsInline(id, s5, st2, index, ctx);
|
|
279105
279166
|
},
|
|
279106
279167
|
// One event's schedule (the source's `eventId`): its first sessions as rows (day and time in the event's zone, name, stage), and View All
|
|
279107
279168
|
// opens the event, whose full schedule lists every session. The whole section hides when the event has no schedule. A section with no
|
|
@@ -279186,7 +279247,7 @@ var init_generate2 = __esm({
|
|
|
279186
279247
|
if (custom.length) ctx.gap(sectionId, type2, `the source sets its own button label${custom.length > 1 && custom[0] !== custom[1] ? "s" : ""} ${[...new Set(custom)].map((label4) => `"${label4}"`).join(" and ")}; the card shows its own registration button label`);
|
|
279187
279248
|
const missing4 = [["guestsVisible", "guest avatars"], ["membershipOfferVisible", "the membership offer"]].filter(([key4]) => card2[key4] === true).map(([, name]) => name);
|
|
279188
279249
|
if (missing4.length) ctx.gap(sectionId, type2, `the source card shows ${missing4.join(" and ")}; the card has ${missing4.length > 1 ? "neither" : "none"}`);
|
|
279189
|
-
return eventsInline(id, s5, index, ctx);
|
|
279250
|
+
return eventsInline(id, s5, st2, index, ctx);
|
|
279190
279251
|
},
|
|
279191
279252
|
// Links to the business's networks. Himi has no brand icons, so each link is a button named for its network (a host name for an unknown
|
|
279192
279253
|
// one); a link that is not an http(s) URL is left out and reported, never opened as something else.
|
|
@@ -280554,8 +280615,10 @@ async function runOneAppCommand(argv, io2, deps = {}, commandIncluded = false) {
|
|
|
280554
280615
|
const mode = args[0];
|
|
280555
280616
|
const evidence = args.indexOf("--evidence-dir");
|
|
280556
280617
|
const content = args.indexOf("--content");
|
|
280557
|
-
|
|
280558
|
-
|
|
280618
|
+
const stageAt = args.indexOf("--stage");
|
|
280619
|
+
const stage2 = stageAt >= 0 ? args[stageAt + 1] : "publish";
|
|
280620
|
+
if (!["init", "sync", "check", "verify"].includes(mode) || evidence < 0 || content < 0 || !args[evidence + 1] || !args[content + 1] || stageAt >= 0 && (mode !== "verify" || args.indexOf("--stage", stageAt + 1) >= 0 || !["publish", "pre-publish"].includes(stage2))) {
|
|
280621
|
+
io2.error(JSON.stringify({ ok: false, code: "invalid_usage", usage: "himi one-app coverage init|sync|check|verify --evidence-dir <dir> --content <dir> [--release-hash <sha256>] (verify only: [--stage publish|pre-publish], given once)" }));
|
|
280559
280622
|
return 2;
|
|
280560
280623
|
}
|
|
280561
280624
|
try {
|
|
@@ -280564,9 +280627,9 @@ async function runOneAppCommand(argv, io2, deps = {}, commandIncluded = false) {
|
|
|
280564
280627
|
const hash3 = at2 >= 0 ? args[at2 + 1] : void 0;
|
|
280565
280628
|
if (!hash3 || !/^[a-f0-9]{64}$/i.test(hash3)) throw Error("coverage verify requires --release-hash <sha256>.");
|
|
280566
280629
|
const result2 = verifyCoverage(args[evidence + 1], args[content + 1], hash3);
|
|
280567
|
-
const native = verifyNativeProof(args[content + 1], hash3, result2.requirementIds);
|
|
280568
|
-
const ok6 = result2.ok && native
|
|
280569
|
-
(ok6 ? io2.log : io2.error)(JSON.stringify({ ...result2, ok: ok6, native, ...ok6 ? {} : { code: "coverage_unverified" } }, null, 2));
|
|
280630
|
+
const native = stage2 === "pre-publish" ? void 0 : verifyNativeProof(args[content + 1], hash3, result2.requirementIds);
|
|
280631
|
+
const ok6 = result2.ok && (native?.ok ?? true);
|
|
280632
|
+
(ok6 ? io2.log : io2.error)(JSON.stringify({ ...result2, ok: ok6, stage: stage2, native: native ?? { skipped: true }, ...summarizeVerification(result2, native), ...ok6 ? {} : { code: "coverage_unverified" } }, null, 2));
|
|
280570
280633
|
return ok6 ? 0 : 1;
|
|
280571
280634
|
}
|
|
280572
280635
|
const result = syncCoverage(args[evidence + 1], args[content + 1], mode !== "check");
|
|
@@ -280796,7 +280859,7 @@ var init_cli2 = __esm({
|
|
|
280796
280859
|
init_version2();
|
|
280797
280860
|
init_migration_context();
|
|
280798
280861
|
init_site_language();
|
|
280799
|
-
ONE_APP_USAGE = "himi one-app migrate --msid <uuid> [--app-instance branded|free] [--locale <tag>] [--languages <tag,tag>] [--prompt <text> | --prompt-file <file>] [--name <slug>] [--dir <parent>] [--target bo] [--top-tabs bottom-tabs|keep] [--json]\nhimi one-app validate-topbar --evidence-dir <.himi/one-app> --content <app-dir> [--json]\nhimi one-app header-badges --evidence-dir <.himi/one-app> --content <app-dir> [--dry-run]\nhimi one-app generate --evidence-dir <.himi/one-app> --content <app-dir> [--out <screens.json>]\n" + APPLY_NAVIGATION_USAGE + "\nhimi one-app provision --evidence-dir <.himi/one-app> --content <app-dir> [--dry-run]\n" + ACCESS_USAGE + "\nhimi one-app validate-design --evidence-dir <.himi/one-app> --content <app-dir> [--json] [--fix] [--record --release-hash <sha256>]\nhimi one-app coverage init|sync|check|verify --evidence-dir <.himi/one-app> --content <app-dir> [--release-hash <sha256>]\nhimi one-app validate-identity --evidence-dir <.himi/one-app> --content <app-dir> [--json] [--fix]\n" + PAYMENT_REVIEW_USAGE;
|
|
280862
|
+
ONE_APP_USAGE = "himi one-app migrate --msid <uuid> [--app-instance branded|free] [--locale <tag>] [--languages <tag,tag>] [--prompt <text> | --prompt-file <file>] [--name <slug>] [--dir <parent>] [--target bo] [--top-tabs bottom-tabs|keep] [--json]\nhimi one-app validate-topbar --evidence-dir <.himi/one-app> --content <app-dir> [--json]\nhimi one-app header-badges --evidence-dir <.himi/one-app> --content <app-dir> [--dry-run]\nhimi one-app generate --evidence-dir <.himi/one-app> --content <app-dir> [--out <screens.json>]\n" + APPLY_NAVIGATION_USAGE + "\nhimi one-app provision --evidence-dir <.himi/one-app> --content <app-dir> [--dry-run]\n" + ACCESS_USAGE + "\nhimi one-app validate-design --evidence-dir <.himi/one-app> --content <app-dir> [--json] [--fix] [--record --release-hash <sha256>]\nhimi one-app coverage init|sync|check|verify --evidence-dir <.himi/one-app> --content <app-dir> [--release-hash <sha256>] (verify only: [--stage publish|pre-publish])\nhimi one-app validate-identity --evidence-dir <.himi/one-app> --content <app-dir> [--json] [--fix]\n" + PAYMENT_REVIEW_USAGE;
|
|
280800
280863
|
UUID2 = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
280801
280864
|
SLUG2 = /^[a-z0-9][a-z0-9-]{0,62}$/;
|
|
280802
280865
|
VALUE_FLAGS = /* @__PURE__ */ new Set(["msid", "app-instance", "locale", "languages", "prompt", "prompt-file", "name", "dir", "target", "top-tabs"]);
|
|
@@ -288995,7 +289058,7 @@ Transport: same targets/tokens as himi-serve \u2014 --target <local|prod|bo>, --
|
|
|
288995
289058
|
--telemetry-url, --control-token/--telemetry-token, or HIMI_* env.
|
|
288996
289059
|
Guides: ${DEVELOPER_PORTAL_URL}`;
|
|
288997
289060
|
var COMMANDS = [
|
|
288998
|
-
{ name: "one-app", summary: "collect One App source configuration and evidence for reconstruction; validate-payments checks payment evidence and explicit owner decisions before scaffolding; validate-topbar checks authored settings and resolved platform bars; header-badges binds the source header's bell, chat and cart counts in config.ts; access carries the source's locked pages (members only, a badge, a paid plan) as lock screens and hidden tabs; provision writes the collected loyalty currency and business time zone into the screens that take them as onAppear params (an unverified value is left unset, never invented); generate writes each source page as a screen descriptor from the evidence alone (source labels, copy, images, styles, alignment, contact text) for `template screens --upsert`, and fails with sections_unmapped rather than ship a placeholder for a section it cannot map; validate-design compares the source theme's colors, heading/body font families, button shape and accent text contrast with the migrated tokens.json; validate-identity checks built display text and the app name in config.ts for accidental technical app slugs against collected business identity (--fix writes the business name into config.ts); coverage inventories and verifies source requirements. Branded falls back to Free/Spaces only when absent. Collection does not launch a model or build the app. User-scoped Wix authentication is required; WIX_API_KEY is not used.", required: "migrate --msid <uuid> [--app-instance branded|free] [--locale <tag>] [--prompt <text> | --prompt-file <file>] [--name <slug>] [--dir <parent>] [--target bo] [--top-tabs bottom-tabs|keep] [--json] | validate-payments --evidence-dir <.himi/one-app> [--json] | validate-topbar --evidence-dir <.himi/one-app> --content <app-dir> [--json] | generate --evidence-dir <.himi/one-app> --content <app-dir> [--out <screens.json>] | provision --evidence-dir <.himi/one-app> --content <app-dir> [--dry-run] | validate-design --evidence-dir <.himi/one-app> --content <app-dir> [--json] [--fix] [--record --release-hash <sha256>] | validate-identity --evidence-dir <.himi/one-app> --content <app-dir> [--json] [--fix] | coverage init|sync|check|verify --evidence-dir <.himi/one-app> --content <app-dir> [--release-hash <sha256>]" },
|
|
289061
|
+
{ name: "one-app", summary: "collect One App source configuration and evidence for reconstruction; validate-payments checks payment evidence and explicit owner decisions before scaffolding; validate-topbar checks authored settings and resolved platform bars; header-badges binds the source header's bell, chat and cart counts in config.ts; access carries the source's locked pages (members only, a badge, a paid plan) as lock screens and hidden tabs; provision writes the collected loyalty currency and business time zone into the screens that take them as onAppear params (an unverified value is left unset, never invented); generate writes each source page as a screen descriptor from the evidence alone (source labels, copy, images, styles, alignment, contact text) for `template screens --upsert`, and fails with sections_unmapped rather than ship a placeholder for a section it cannot map; validate-design compares the source theme's colors, heading/body font families, button shape and accent text contrast with the migrated tokens.json; validate-identity checks built display text and the app name in config.ts for accidental technical app slugs against collected business identity (--fix writes the business name into config.ts); coverage inventories and verifies source requirements. Branded falls back to Free/Spaces only when absent. Collection does not launch a model or build the app. User-scoped Wix authentication is required; WIX_API_KEY is not used.", required: "migrate --msid <uuid> [--app-instance branded|free] [--locale <tag>] [--prompt <text> | --prompt-file <file>] [--name <slug>] [--dir <parent>] [--target bo] [--top-tabs bottom-tabs|keep] [--json] | validate-payments --evidence-dir <.himi/one-app> [--json] | validate-topbar --evidence-dir <.himi/one-app> --content <app-dir> [--json] | generate --evidence-dir <.himi/one-app> --content <app-dir> [--out <screens.json>] | provision --evidence-dir <.himi/one-app> --content <app-dir> [--dry-run] | validate-design --evidence-dir <.himi/one-app> --content <app-dir> [--json] [--fix] [--record --release-hash <sha256>] | validate-identity --evidence-dir <.himi/one-app> --content <app-dir> [--json] [--fix] | coverage init|sync|check|verify --evidence-dir <.himi/one-app> --content <app-dir> [--release-hash <sha256>] (verify only: [--stage publish|pre-publish])" },
|
|
288999
289062
|
{ name: "hhp", summary: "author responsive HTML/CSS/TypeScript screens compiled to native SDUI and T5 workers; scaffold, inspect the app profile, lint or compile declared sources", required: "init <screen> | profile | lint | compile [--app <name>|--content <dir>] [--json] [--dry-run]" },
|
|
289000
289063
|
{ name: "captcha", summary: "create and store native CAPTCHA keys in Serve, or inspect setup status; customer setup verifies Wix site ownership; does not enable member CAPTCHA SDKs", required: "setup|status --app <app> [--content <dir>] [--site <msid>] [--ios-bundle-id <id>] [--android-package-name <id>] [--target <t>]" },
|
|
289001
289064
|
{ name: "init", summary: "scaffold a starter content package (OTA-only; no native shells). --template <t> starts from a full reference app (branded-lite = consumer storefront over a Wix site; owner-lite = owner CRUD/management) instead of the minimal counter; --templates lists bundled ones; --remote fetches the template off the serve plane (falls back to the bundled copy offline). The new app also gets its agent files (the same set `himi agent-init` writes: AGENTS.md, CLAUDE.md, the himalaya skill, HIMALAYA.md, a SessionStart hook) so the next session started inside it picks the work up; --no-agent skips them. It also makes the build board (.himi/studio/, exactly as `himi studio --no-open` does \u2014 it never opens a browser), so every later render, test, validate, push and progress entry refreshes it; and, for a template bundled with this CLI, it makes the FIRST PICTURE itself (never for a --remote one: that is its publisher's code, and a render runs it on this machine, so next[] leaves the render to the agent after it has read the code): exactly `himi render <homeScreenId> --png --mocks --device iphone` (offline \u2014 no request; never --live; --mocks loads the app's recorded data when it has any), run as a child it kills after a time budget, writing .himi/shots/<home>.png and journaling it (by: himi) as the STARTING POINT (\"Starting point: the <template> template, before any of your changes\") so the board and the journal hold a picture when init returns. init also records the source it wrote (.himi/init-source.json: a content fingerprint, Markdown left out), and the first home PNG render after the source diverges from it is journaled once as \"First look at your app\" \u2014 reported as `firstLook: {image}` or `{skipped: <reason>}`, never a failed init; `--no-first-look` skips it (for scripts and CI that render themselves). For a bundled template (never a --remote one \u2014 the preview would build and serve its publisher's code) init also STARTS the live preview itself: `himi run --watch --content <dir> --port <p> --no-open --idle-exit 30`, detached in its own process group with its output in .himi/watch.log, never waited for (the url is chosen before it builds), recorded in .himi/watch.json, and reported as `watch: {started, pid, url, board, log}` \u2014 or `{skipped: <reason>}` for a `CI` environment, a test runner, a watch already running, or a start that failed (never a failed init). Nothing else skips it: outside CI it is started, and `watch.note` says an opt-out was ignored. The envelope LEADS with `doNow`: three lines to run now (the consent preflight, the live preview \u2014 its url and board when init started it, else `himi run --watch --content <dir> &` with the board's path \u2014 and the postcard line), and ENDS with the same lines as `doNowAgain`, so an agent that reads only the head or only the tail (`| tail`) gets them; at a terminal they are also printed as plain text on stderr, before the JSON and again after it. Its `next[]` LEADS with the steps for THIS session, in this order for every app \u2014 the offline first render and that picture's `himi progress` postcard (only when init could not make the picture), the skill's consent preflight (authorize or mock any Wix or external startup request; with none, go straight on), and only then the live preview (the running one's url, or `himi run --watch &` when init did not start it) \u2014 ahead of the next-session guidance", required: "<name> [--dir] [--template <t>] [--remote] [--base44-app-id <id>] [--base44-app-url <https://tenant>] [--no-agent] [--agents-how-to <cli|skills-first>] [--no-first-look] | [<name>] --from-url <https://site> [--spec <app.json>] [--dir] | --spec <app.json> | --templates" },
|
|
@@ -841,11 +841,17 @@ entry per platform. They say that what that view would add to the platform's acc
|
|
|
841
841
|
|
|
842
842
|
## `himi one-app coverage` codes
|
|
843
843
|
|
|
844
|
-
- `invalid_usage`: the mode or required paths are missing
|
|
844
|
+
- `invalid_usage`: the mode or required paths are missing, or `--stage` is not `publish` or
|
|
845
|
+
`pre-publish`, or is given more than once, or is given to a mode other than `verify` (exit 2).
|
|
845
846
|
- `evidence_invalid`: collected evidence cannot be read or fails its manifest hash (exit 1).
|
|
846
847
|
- `coverage_drift`: a requirement disappeared or `check` found new requirements not
|
|
847
848
|
recorded in `ONE-APP-COVERAGE.json` (exit 1).
|
|
848
|
-
- `coverage_unverified`: `verify` found unresolved, failed, or stale requirement checks
|
|
849
|
+
- `coverage_unverified`: `verify` found unresolved, failed, or stale requirement checks, or
|
|
850
|
+
(at the default `--stage publish`) no valid `native-proof.json` (exit 1). The JSON names the
|
|
851
|
+
failing part in `failedParts` (`coverage`, `native`) and carries `issueCount`, `rows`
|
|
852
|
+
(`total`, `open`, `closed`; a row is open when an issue names its id) and the full `issues[]`
|
|
853
|
+
and `native.issues[]`. These fields are also present on success. `--stage pre-publish` skips the
|
|
854
|
+
native proof and prints `native: {"skipped": true}`; the code is the same.
|
|
849
855
|
|
|
850
856
|
## `himi base44 entities` codes
|
|
851
857
|
|
|
@@ -80,7 +80,7 @@ The **Himalaya implementation** cell is blank for every unassigned row. Notes on
|
|
|
80
80
|
| Source sectionDefinitionId | Source viewer component | Himalaya implementation | Placement / reuse | Class | Settings, actions and gaps |
|
|
81
81
|
| --- | --- | --- | --- | --- | --- |
|
|
82
82
|
| `achievements_list_section` | `wix-one-app-achievements.SectionMemberChallengesScreen` | [Programs list/detail](https://github.com/wix-private/himalaya/blob/97f1542f2f7d6e8cb7a902b912c87dcaa37e5a67/apps/himi-branded-lite/dev/index.ts) + [programs worker](https://github.com/wix-private/himalaya/blob/97f1542f2f7d6e8cb7a902b912c87dcaa37e5a67/core/dev-server/tier5-bundles-src/himi-branded-lite-programs/index.ts "audience-lint-ok: optional pinned upstream evidence, not a local authoring dependency") + shared programs module (list layout) with the `programs-card`, `programs-filters` and `programs-see-all` recipes | Composed inline; member list and program detail reused | Partial | The migration generator composes the list inline: full-width cards (duration, participants and price follow `isDurationVisible`, `isParticipantsVisible`, `isPriceVisible`), the category chips and the "All programs / Programs I joined" control (hidden for a visitor; both hidden when `isFilterVisible` is false, each axis also follows `filterSettings.byCategory` / `byParticipantStatus`), the 2-card mode and "See all" to `himi_programs` only while more programs exist. The card count is the definition's `extraProps.limit` (2, verified in the Catalyst definitions file); an authored `extraProps.limit` or `settings.limit` wins, an infinite flag or a non-count limit shows the whole list, and a limit above 20 shows 20 and reports a gap. A page made only of this section gets a generated screen with the list inline (it is not routed to `himi_programs`). `himi_member_programs` (worker `himi-branded-lite-member-programs`) is the member list: each card carries the signed-in member's standing from Participants v3 / Join Applications v3 (Joined, Program complete, Program ended, Pending request, Request approved, Invited, Participation suspended), a progress bar once started, the price before joining, the same two filters, cursor paging and pull-to-refresh; an ended program the member never joined is dropped. The card opens `himi_program`, which enrols through Join Applications v3 (a free program confirms the participant, a private one sends a request for owner approval, an approved paid application goes to payment), shows the same standing, and offers Cancel request only while a request waits for approval. Still open: join / cancel-request actions on the card itself, a MANUAL order in the inline list (only the carousel reads it; the generator reports no gap for it), and Pricing Plans benefits ("Included in your plan"). |
|
|
83
|
-
| `achievements_carousel_section` | `wix-one-app-achievements.MemberChallengesCarousel` | [Programs data/detail](https://github.com/wix-private/himalaya/blob/97f1542f2f7d6e8cb7a902b912c87dcaa37e5a67/core/dev-server/tier5-bundles-src/himi-branded-lite-programs/index.ts "audience-lint-ok: optional pinned upstream evidence, not a local authoring dependency") + shared programs module (carousel layout) with the `programs-carousel` recipe | Composed inline | Partial | The migration generator composes the carousel inline: the section title (unless `showTitle` is false), one page of snapping cards with page dots, duration, participants and price per `isDurationVisible`, `isParticipantsVisible`, `isPriceVisible`, a MANUAL `sortingSettings.challengesOrder` that puts the selected programs first (it does not exclude the others), a retry when the read fails, and a card that opens `himi_program`. It shows 5 cards, the definition's `extraProps.limit
|
|
83
|
+
| `achievements_carousel_section` | `wix-one-app-achievements.MemberChallengesCarousel` | [Programs data/detail](https://github.com/wix-private/himalaya/blob/97f1542f2f7d6e8cb7a902b912c87dcaa37e5a67/core/dev-server/tier5-bundles-src/himi-branded-lite-programs/index.ts "audience-lint-ok: optional pinned upstream evidence, not a local authoring dependency") + shared programs module (carousel layout) with the `programs-carousel` recipe | Composed inline | Partial | The migration generator composes the carousel inline: the section title (unless `showTitle` is false), one page of snapping cards with page dots, duration, participants and price per `isDurationVisible`, `isParticipantsVisible`, `isPriceVisible`, a MANUAL `sortingSettings.challengesOrder` that puts the selected programs first (it does not exclude the others), a retry when the read fails, and a card that opens `himi_program`. It shows 5 cards, the definition's `extraProps.limit`; an authored `extraProps.limit` or `settings.limit` wins, a non-count limit shows the most one page holds, and a limit above 20 shows 20 and reports a gap. The source carousel has no setting for its call to action (a collected app carries only the visibility flags, `sortingSettings` and `filterSettings`), so the "See All" button to `himi_programs` is always drawn under the cards, with the `programs-see-all` recipe; a scaffold without that recipe or without `himi_programs` reports a gap. Still open: the button is shown even when no more programs exist than the cards (the worker only clears its `noSeeAll` gate for an inline list). |
|
|
84
84
|
| `achievements_participant_carousel_section` | `wix-one-app-achievements.ParticipantChallengesCarousel` | Shared programs module (carousel layout, `participating`) with the `programs-participant-carousel` recipe | Composed inline | Partial | Signed-in only: hidden whole, title included, for a visitor, when the member has no programs, or when the read fails. The cards are the member's own programs with their progress (no price), and each opens `himi_program`. It shows 5 cards, the definition's `extraProps.limit`; an authored `extraProps.limit` or `settings.limit` is respected up to 20 cards (one read page). The "Programs I joined" CTA opens `himi_member_programs` and shows only with the section title, as in the source viewer. A scaffold without `himi_program` reports the section unsupported; one without `himi_member_programs` leaves out the CTA. Still open: a MANUAL selection/order is ignored, and a limit above 20 shows 20; the generator reports no gap for either. |
|
|
85
85
|
|
|
86
86
|
For authored Programs sections, pass the source settings as a JSON string in the
|
|
@@ -179,7 +179,7 @@ The CLI's versioned native-widget inventory supplies these rows automatically.
|
|
|
179
179
|
| `single_group_feed_section`, `groups_feed_section` | Post actions, attachments, comments/post destination, topic filter and the group's Members / Library / Rules / Media destinations. |
|
|
180
180
|
| `platform_general_contact_section`, `platform_general_contact_section_bp` | Business address and map, respecting authored visibility and available coordinates. |
|
|
181
181
|
| `achievements_list_section` | Category filter, including All Categories with no categories; actual visitor/member login, access/join/payment/Continue states; participants line; default limit 2 and See All when applicable. |
|
|
182
|
-
| `achievements_carousel_section` | The same Program state/display rules, default limit 5
|
|
182
|
+
| `achievements_carousel_section` | The same Program state/display rules, default limit 5 (an authored limit is read), page dots and See All to the programs screen. |
|
|
183
183
|
| `newBlog_postlist_vertical_section`, `newBlog_compact_post_list_vertical_section` | Row display options, unlimited paging or a limited count with See All Posts, and layout. Coverage derives these per placement from the authored settings: see "Generate blog post lists from their settings". |
|
|
184
184
|
| `events_list_section` | Date badge, Share and the appropriate RSVP/ticket action. |
|
|
185
185
|
| `platform_elements_image_section` | Press behavior. `onPressType: "openAsModal"` opens the image full screen: tap it with the reserved `himi.lightbox` action and `args.images` set to `[{ "url": <the image url>, "alt": <its accessibility label> }]`. `nothing` and a `none` action need no tap. Coverage derives the row per placement from the authored value. |
|
|
@@ -215,7 +215,7 @@ source's title (only when the source shows it) and a **See All** button to the s
|
|
|
215
215
|
| Source section | Screen | What the section passes |
|
|
216
216
|
| --- | --- | --- |
|
|
217
217
|
| `upcoming_bookings_section` | `himi_bookings` | nothing |
|
|
218
|
-
| `events_list_section` that names no event and no category | `himi_events` | nothing: the screen is the paged list of every event (Upcoming and Past); a section limited to chosen events or categories is a generated page
|
|
218
|
+
| `events_list_section` that names no event and no category | `himi_events` | nothing: the screen is the paged list of every event (Upcoming and Past). A page that also holds other sections, or a scaffold without `himi_events`, shows the inline cards instead; a section limited to chosen events or categories is a generated page too (see "Data sections"). The section's `filter` setting is not read: only `categoryIds` and `eventIds` select |
|
|
219
219
|
| `memberships_packages_section` | `himi_my_subscriptions` | nothing |
|
|
220
220
|
| `platform_paid_plans_section` | `himi_plans` | nothing: the screen takes no plan selection |
|
|
221
221
|
| `groups_list_section` | `himi_groups` | nothing: no group selection or count |
|
|
@@ -255,9 +255,16 @@ section's settings, with no loader of their own:
|
|
|
255
255
|
`himi_form` on the section's form: `platformFormId` (a v4 form id) or `shortId` (a legacy numeric id), both of which the form screen
|
|
256
256
|
reads. The form is not laid out inline (its fields, draft and submit are that screen's worker), which is reported as a gap. A section
|
|
257
257
|
with no readable id, or a scaffold with no `himi_form`, is reported as unmapped.
|
|
258
|
+
- `events_list_section`: the shared inline events cards. A page made only of a section that names no event and no category opens
|
|
259
|
+
`himi_events` instead (see "Sections whose screen already exists"). A section with `categoryIds` or `eventIds` shows only those
|
|
260
|
+
events (upcoming, never a draft) and offers **See All**, which opens `himi_events` on the same selection: the ids travel as the
|
|
261
|
+
comma-separated `categoryIds` / `eventIds` values of the `himi.open` link, and the list reads them back (only well-formed ids; a
|
|
262
|
+
visit without them is the whole list again). The section's `filter` setting is not read, because the two sections of the Barcelona
|
|
263
|
+
Erasmus source contradict the carousel's reading of it. A section naming both categories and events shows the events that match both, reported.
|
|
264
|
+
A scaffold without `himi_events` keeps the cards and leaves the See All out. One that shows every event has no See All, as in the source.
|
|
258
265
|
- `events_carousel_section`: the shared inline events cards (the same module as `events_list_section`). Its `filter` is 0 for every
|
|
259
|
-
event, 1 for chosen categories and `"manual"` for chosen events. A carousel of chosen events or categories
|
|
260
|
-
module
|
|
266
|
+
event, 1 for chosen categories and `"manual"` for chosen events. A carousel of chosen events or categories does not pass its selection
|
|
267
|
+
to the shared module yet (the list section does), so it keeps the source's title and a **See All** link to `himi_events`, reported. An
|
|
261
268
|
unfiltered one shows the next events as cards, with gaps for the carousel layout, a card part the source hides but the card
|
|
262
269
|
shows (image, date, location) and a part the source shows but the card has not (guest avatars, the membership offer).
|
|
263
270
|
- `events_schedule_section`: one event's schedule (`settings.eventId`). The first 10 sessions are rows (day and start time in the app's
|
|
@@ -1385,7 +1392,13 @@ or inspect device screenshots; those results are supplied by the publisher.
|
|
|
1385
1392
|
Keep the device artifacts for review. A check record alone cannot show whether a
|
|
1386
1393
|
screen looks or behaves correctly.
|
|
1387
1394
|
`himi one-app coverage verify --evidence-dir .himi/one-app --content .
|
|
1388
|
-
--release-hash <sha256>` reports every unresolved or stale row.
|
|
1395
|
+
--release-hash <sha256>` reports every unresolved or stale row. It also prints
|
|
1396
|
+
`failedParts` (`coverage`, `native`), `issueCount` and `rows` (`total`, `open`,
|
|
1397
|
+
`closed`), so a caller can see which part failed without reading each issue. Add
|
|
1398
|
+
`--stage pre-publish` to check the ledger before a draft exists: the native proof
|
|
1399
|
+
is skipped (`native: {"skipped": true}`), so a passing result then says nothing about
|
|
1400
|
+
the phone walkthrough. Without the flag (`--stage publish`) the native proof is
|
|
1401
|
+
required, as above. `himi push`
|
|
1389
1402
|
checks local coverage and the top bar for a marked migration and warns when
|
|
1390
1403
|
either is incomplete. A partial push warns because its derived release may
|
|
1391
1404
|
inherit screens the local checks did not cover. These One App warnings do not
|
|
@@ -1502,7 +1515,7 @@ settings each honors are in the generator; one it cannot show becomes an `adapte
|
|
|
1502
1515
|
6 or 8 products as square, borderless tiles, with a See All link beside the title, or a button under the row when the section has no title,
|
|
1503
1516
|
opening the shop on that collection; a blog carousel shows the source's limit of latest posts, at most 10, with the title under the image;
|
|
1504
1517
|
a video carousel shows the source's count of its channel's ready videos (at most 20) as cards that open
|
|
1505
|
-
the template's video screen, with the length and the title as the source switches them, and a See All to the channel; groups omit the Create button; a single group's feed shows the latest posts read-only, at most the source's post count, with a button that opens the group, and a group that is not public shows what the group screen shows a non-member, never its posts; the topic filter, reactions, comments and the composer are reported; the subscriptions section shows the latest 5 active plan orders and cannot show package balances or session credits; a services list, which has no settings of its own, shows the first 6 services with a See All button to the services screen; a store search section is a search bar that opens the shop; a wishlist section shows the products saved on this device (the member account wishlist cannot be read), with See All to the saved-products screen; a performance tracker shows the member's progress against the source's default weekly goal, the weekly streak and the all-time sessions (500+ past 500), counted from the member's own bookings with the rule of My Bookings' "This week" card (a confirmed booking that took place), with a See All button to My Bookings; the source's attended-only or scheduled counting, the goal each member sets and the Apple Health daily activity cannot be read by a visitor and are reported; upcoming bookings shows the signed-in member's next 3 bookings and, unless the source turns previous bookings off,
|
|
1518
|
+
the template's video screen, with the length and the title as the source switches them, and a See All to the channel; groups omit the Create button; a single group's feed shows the latest posts read-only, at most the source's post count, with a button that opens the group, and a group that is not public shows what the group screen shows a non-member, never its posts; the topic filter, reactions, comments and the composer are reported; the subscriptions section shows the latest 5 active plan orders and cannot show package balances or session credits; a services list, which has no settings of its own, shows the first 6 services with a See All button to the services screen; a store search section is a search bar that opens the shop; a wishlist section shows the products saved on this device (the member account wishlist cannot be read), with See All to the saved-products screen; a performance tracker shows the member's progress against the source's default weekly goal, the weekly streak and the all-time sessions (500+ past 500), counted from the member's own bookings with the rule of My Bookings' "This week" card (a confirmed booking that took place), with a See All button to My Bookings; the source's attended-only or scheduled counting, the goal each member sets and the Apple Health daily activity cannot be read by a visitor and are reported; upcoming bookings shows the signed-in member's next 3 bookings and, unless the source turns previous bookings off, the source's History block (a "History" heading with Show All to My Bookings, the member's latest past booking with Book Again, or the source's empty state when there is none), with the source's empty text and a See All button to My Bookings, and a guest gets a sign-in prompt). A scaffold without a section's recipe or module takes the fallback below. A page with such modules gets ONE
|
|
1506
1519
|
worker, `tier5-src/page-<screen>/index.ts`, that registers the modules its sections use. A page that is only a template vertical (members,
|
|
1507
1520
|
loyalty, shop, groups feed, services list) opens the template's screen, and a groups feed passes the source's own title,
|
|
1508
1521
|
"Group list" label and post count. A data section never vanishes: when the shared modules cannot honor its settings
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1853.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": [
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"artifactId": "himalaya-cli"
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
|
-
"falconPackageHash": "
|
|
85
|
+
"falconPackageHash": "11fd6cbee7d63d429f6ce387f3bdc1231cd77948af47deb61483e19e"
|
|
86
86
|
}
|
|
Binary file
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# __HIMI_APP_NAME__ — from the `bare-fashion` template
|
|
2
|
+
|
|
3
|
+
A fashion and apparel storefront over a real Wix Stores site, ported from the BARE app: an editorial Home with a full-bleed hero, top categories, New In and On Sale; Shop by category; Products with category chips, sort and filters; search with recent searches; product details with size and colour pickers and an added-to-bag drawer; Favorites; a cart with promo codes and the Wix checkout; Account with orders, saved addresses and a wallet. Black and white, serif type. Boots as a VISITOR (catalog, favorites and cart work with no login); member screens sign in.
|
|
4
|
+
|
|
5
|
+
Everything here is now yours to edit — screens in `dev/`, logic in `tier5-src/`,
|
|
6
|
+
identity and navigation in `config.ts`, look and feel in `tokens.json`.
|
|
7
|
+
|
|
8
|
+
## Point at your Wix site
|
|
9
|
+
|
|
10
|
+
Your **Wix Headless `clientId` binds the data** — the visitor token minted from it already
|
|
11
|
+
names your site, so reads need nothing else. Set these before `himi build` / preview so calls
|
|
12
|
+
hit YOUR site (the placeholders are not a real backend):
|
|
13
|
+
|
|
14
|
+
export WIX_CLIENT_ID="<headless-oauth-client-id>"
|
|
15
|
+
export WIX_SITE_URL="https://your-site.wixsite.com/…"
|
|
16
|
+
export WIX_SITE_ID="<metasite-id>"
|
|
17
|
+
|
|
18
|
+
`WIX_SITE_ID` is the site that client belongs to. The member login takes it from the environment
|
|
19
|
+
while `WIX_CLIENT_ID` is the client the config uses. A native build needs it for member sign-up on
|
|
20
|
+
a CAPTCHA-protected site, push registration and in-app purchases.
|
|
21
|
+
|
|
22
|
+
Full details, including how to ship a binary a customer can install against their own
|
|
23
|
+
site: `himi docs branded-lite-site-binding`.
|
|
24
|
+
|
|
25
|
+
## The loop
|
|
26
|
+
|
|
27
|
+
himi build # compile tier5-src/* -> dist/bundles
|
|
28
|
+
himi validate # screens, bindings and worker boot
|
|
29
|
+
himi render <screenId> --tree # render a screen right here, no device needed
|
|
30
|
+
himi test # exercise every action your screens declare
|
|
31
|
+
himi login --browser --target wix # sign in with your Wix account (once)
|
|
32
|
+
# no browser? export WIX_API_KEY, then himi login --wix --target wix
|
|
33
|
+
himi push --draft # publish a DRAFT release + get preview links
|
|
34
|
+
|
|
35
|
+
Build, validate, render and test run entirely on your machine. Only `login` and
|
|
36
|
+
`push` reach Wix. No per-app install is needed: the CLI ships the `@wix/himalaya`
|
|
37
|
+
runtime it compiles against.
|
|
38
|
+
|
|
39
|
+
## Pattern index — where to look for each recipe
|
|
40
|
+
|
|
41
|
+
| Pattern | Screens |
|
|
42
|
+
|---|---|
|
|
43
|
+
| Editorial hero, category tiles and product rails | himi_branded_home |
|
|
44
|
+
| Category chips, sort and a filter panel over a product grid | himi_products, himi_search |
|
|
45
|
+
| Option pickers and an added-to-bag drawer | himi_product |
|
|
46
|
+
| Device favorites with member sync | himi_saved_products |
|
|
47
|
+
| Promo codes and the Wix checkout | himi_cart |
|
|
48
|
+
| A cart count badge on the native tab bar (app-level nav worker) | config.ts navigation |
|
|
49
|
+
| Member addresses with a country picker | himi_addresses, himi_address_form |
|
|
50
|
+
|
|
51
|
+
Guides: `himi docs recipe-dynamic-list`, `himi docs tier-5-add-a-screen`,
|
|
52
|
+
`himi docs designing-himi-screens`. Seed references: `himi agent-init`.
|