@wix/himalaya-cli 0.1954.0 → 0.1956.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 +154 -72
- package/guides/one-app-section-mappings.md +1 -1
- package/guides/one-app-to-himi-app.md +11 -7
- package/package.json +2 -2
- package/templates/branded-lite/l10n/ar.json +5 -0
- package/templates/branded-lite/l10n/cs.json +5 -0
- package/templates/branded-lite/l10n/da.json +5 -0
- package/templates/branded-lite/l10n/de.json +5 -0
- package/templates/branded-lite/l10n/el.json +5 -0
- package/templates/branded-lite/l10n/es.json +5 -0
- package/templates/branded-lite/l10n/fi.json +5 -0
- package/templates/branded-lite/l10n/fr.json +5 -0
- package/templates/branded-lite/l10n/he.json +5 -0
- package/templates/branded-lite/l10n/hu.json +5 -0
- package/templates/branded-lite/l10n/id.json +5 -0
- package/templates/branded-lite/l10n/it.json +5 -0
- package/templates/branded-lite/l10n/ja.json +5 -0
- package/templates/branded-lite/l10n/ko.json +5 -0
- package/templates/branded-lite/l10n/lt.json +5 -0
- package/templates/branded-lite/l10n/nl.json +5 -0
- package/templates/branded-lite/l10n/no.json +5 -0
- package/templates/branded-lite/l10n/pl.json +5 -0
- package/templates/branded-lite/l10n/pt.json +5 -0
- package/templates/branded-lite/l10n/ru.json +5 -0
- package/templates/branded-lite/l10n/sv.json +5 -0
- package/templates/branded-lite/l10n/th.json +5 -0
- package/templates/branded-lite/l10n/tr.json +5 -0
- package/templates/branded-lite/l10n/uk.json +5 -0
- package/templates/branded-lite/l10n/vi.json +5 -0
- package/templates/branded-lite/l10n/zh.json +5 -0
- package/templates/branded-lite/recipes/blog-carousel-classic.json +335 -0
- package/templates/branded-lite/recipes/blog-carousel-full.json +374 -0
- package/templates/branded-lite/recipes/events-inline-carousel.json +308 -0
- package/templates/branded-lite/recipes/galleries-carousel.json +51 -2
- package/templates/branded-lite/recipes/galleries-collage.json +51 -2
- package/templates/branded-lite/recipes/galleries-list.json +51 -2
- package/templates/branded-lite/recipes/groups-cards.json +194 -86
- package/templates/branded-lite/recipes/groups-list.json +209 -62
- package/templates/branded-lite/tier5-src/_shared/blog-list.ts +5 -1
- package/templates/branded-lite/tier5-src/_shared/galleries-section.ts +70 -23
- package/templates/branded-lite/tier5-src/_shared/groups-section.ts +297 -26
- package/templates/branded-lite/recipes/blog-hero.json +0 -95
package/dist/cli.mjs
CHANGED
|
@@ -12706,6 +12706,20 @@ function compileV2(html, profile, options2) {
|
|
|
12706
12706
|
if (!info4?.paths.has(relative41)) error(el2, "HHP-BINDING-PATH", `Unknown controller state path ${relative41}.`);
|
|
12707
12707
|
return `$service:${serviceName2}.${relative41}`;
|
|
12708
12708
|
}
|
|
12709
|
+
function projectText(el2, row2, text32, matches2) {
|
|
12710
|
+
for (const match of matches2) path2(el2, match[1], row2);
|
|
12711
|
+
const key4 = `t${textProjections.length}`;
|
|
12712
|
+
const normalized2 = text32.replace(/{{\s*([\w.$]+)\s*}}/g, (_match, raw) => `{{${raw.startsWith("$item.") ? raw : statePath(raw)}}}`);
|
|
12713
|
+
textProjections.push({ key: key4, text: normalized2, ...typeof row2 === "string" && row2 ? { collection: row2 } : {} });
|
|
12714
|
+
return typeof row2 === "string" && row2 ? `$item.__hhpText_${key4}` : `$service:${serviceName2}.__hhpText.${key4}`;
|
|
12715
|
+
}
|
|
12716
|
+
function interpolations(el2, text32) {
|
|
12717
|
+
if (/{{|}}/.test(text32.replace(/{{\s*[\w.$]+\s*}}/g, ""))) {
|
|
12718
|
+
error(el2, "HHP-TEXT-EXPRESSION", "Text interpolation accepts state/item paths; compute expressions in the controller.");
|
|
12719
|
+
return void 0;
|
|
12720
|
+
}
|
|
12721
|
+
return [...text32.matchAll(/{{\s*([\w.$]+)\s*}}/g)];
|
|
12722
|
+
}
|
|
12709
12723
|
const read2 = (value2, dotted) => dotted.split(".").reduce((current, key4) => current && typeof current === "object" && Object.hasOwn(current, key4) ? current[key4] : void 0, value2);
|
|
12710
12724
|
function rowValues(row2, raw) {
|
|
12711
12725
|
if (!row2) return [];
|
|
@@ -12769,17 +12783,12 @@ function compileV2(html, profile, options2) {
|
|
|
12769
12783
|
const textNodes = element.contents().toArray().filter((n2) => n2.type === "text");
|
|
12770
12784
|
const text32 = textNodes.map((n2) => n2.data).join(" ").replace(/\s+/g, " ").trim();
|
|
12771
12785
|
if (["Text", "RichText"].includes(type2)) {
|
|
12772
|
-
const matches2 =
|
|
12773
|
-
if (/{{|}}/.test(text32.replace(/{{\s*[\w.$]+\s*}}/g, ""))) error(el2, "HHP-TEXT-EXPRESSION", "Text interpolation accepts state/item paths; compute expressions in the controller.");
|
|
12786
|
+
const matches2 = interpolations(el2, text32) ?? [];
|
|
12774
12787
|
if (matches2.length) {
|
|
12775
12788
|
if (matches2.length === 1 && matches2[0][0] === text32 && type2 === "Text") {
|
|
12776
12789
|
props2.text = path2(el2, matches2[0][1], row2);
|
|
12777
12790
|
} else if ((controller || nanoActions) && type2 === "Text") {
|
|
12778
|
-
|
|
12779
|
-
const key4 = `t${textProjections.length}`;
|
|
12780
|
-
const normalized2 = text32.replace(/{{\s*([\w.$]+)\s*}}/g, (_match, raw) => `{{${raw.startsWith("$item.") ? raw : statePath(raw)}}}`);
|
|
12781
|
-
textProjections.push({ key: key4, text: normalized2, ...row2 ? { collection: row2 } : {} });
|
|
12782
|
-
props2.text = row2 ? `$item.__hhpText_${key4}` : `$service:${serviceName2}.__hhpText.${key4}`;
|
|
12791
|
+
props2.text = projectText(el2, row2, text32, matches2);
|
|
12783
12792
|
} else {
|
|
12784
12793
|
if (profile.surfaces.some((surface) => surface === "ios" || surface === "android" || surface === "macos"))
|
|
12785
12794
|
error(el2, "HHP-TEXT-TEMPLATE-SURFACE", "Text templates are not implemented by the enabled native renderers.", "Compute the complete string in controller state and bind it on a Text component with {{path}} or bind:content.");
|
|
@@ -12799,8 +12808,17 @@ function compileV2(html, profile, options2) {
|
|
|
12799
12808
|
if (heading) props2.style = heading;
|
|
12800
12809
|
else error(el2, "HHP-TOKEN", "Headings require a body, title1, headline, or largeTitle typography token.");
|
|
12801
12810
|
}
|
|
12802
|
-
} else if (type2 === "Button" && (text32 || attrs.title))
|
|
12803
|
-
|
|
12811
|
+
} else if (type2 === "Button" && (text32 || attrs.title)) {
|
|
12812
|
+
const label4 = text32 || attrs.title;
|
|
12813
|
+
const matches2 = interpolations(el2, label4);
|
|
12814
|
+
if (!matches2?.length) props2.title = label4;
|
|
12815
|
+
else if (matches2.length === 1 && matches2[0][0] === label4) props2.title = path2(el2, matches2[0][1], row2);
|
|
12816
|
+
else if (controller || nanoActions) props2.title = projectText(el2, row2, label4, matches2);
|
|
12817
|
+
else {
|
|
12818
|
+
props2.title = label4;
|
|
12819
|
+
error(el2, "HHP-TEXT-TEMPLATE-SURFACE", "A button label mixing copy and {{paths}} needs a worker to build the complete string.", "Keep the complete label in state and bind it with a single {{path}}.");
|
|
12820
|
+
}
|
|
12821
|
+
} else if (text32) error(el2, "HHP-TEXT", "Wrap container text in a paragraph or span.");
|
|
12804
12822
|
if (type2 === "Image" && attrs.src) {
|
|
12805
12823
|
if (/^https:\/\//.test(attrs.src)) props2.url = attrs.src;
|
|
12806
12824
|
else {
|
|
@@ -208818,8 +208836,20 @@ function applyEdits(source2, edits) {
|
|
|
208818
208836
|
return out2;
|
|
208819
208837
|
}
|
|
208820
208838
|
function parse3(fileName, source2) {
|
|
208839
|
+
parseStats.calls++;
|
|
208840
|
+
const key4 = `${fileName}\0${source2}`;
|
|
208841
|
+
if (parseMemo.has(key4)) {
|
|
208842
|
+
const hit = parseMemo.get(key4);
|
|
208843
|
+
parseMemo.delete(key4);
|
|
208844
|
+
parseMemo.set(key4, hit);
|
|
208845
|
+
return hit;
|
|
208846
|
+
}
|
|
208847
|
+
parseStats.runs++;
|
|
208821
208848
|
const file2 = ts27.createSourceFile(fileName, source2, ts27.ScriptTarget.Latest, true, ts27.ScriptKind.TS);
|
|
208822
|
-
|
|
208849
|
+
const result = file2.parseDiagnostics.length ? void 0 : file2;
|
|
208850
|
+
parseMemo.set(key4, result);
|
|
208851
|
+
while (parseMemo.size > PARSE_MEMO_ENTRIES) parseMemo.delete(parseMemo.keys().next().value);
|
|
208852
|
+
return result;
|
|
208823
208853
|
}
|
|
208824
208854
|
function screensObject(file2) {
|
|
208825
208855
|
for (const statement of file2.statements) {
|
|
@@ -209239,7 +209269,7 @@ function renderGateTable(gates) {
|
|
|
209239
209269
|
""
|
|
209240
209270
|
].join("\n");
|
|
209241
209271
|
}
|
|
209242
|
-
var obj15, text9, strings, mayHide, STOCK_COPY, node, SIGN_IN_SCREEN, CHAT_SCREEN, PLANS_SCREEN, slotPrefix, accessStatePath, accessRowHiddenPath, accessHiddenPath, slice, stringValue2, objectValue, PAYLOAD_KEYS, indented, LOGIN_HELPER, LOGIN_GATE_SCREEN, sameStatement, loginHelperSource, NEW_APP_NOT_LITERAL, NEW_APP_REASON;
|
|
209272
|
+
var obj15, text9, strings, mayHide, STOCK_COPY, node, SIGN_IN_SCREEN, CHAT_SCREEN, PLANS_SCREEN, slotPrefix, accessStatePath, accessRowHiddenPath, accessHiddenPath, PARSE_MEMO_ENTRIES, parseMemo, parseStats, slice, stringValue2, objectValue, PAYLOAD_KEYS, indented, LOGIN_HELPER, LOGIN_GATE_SCREEN, sameStatement, loginHelperSource, NEW_APP_NOT_LITERAL, NEW_APP_REASON;
|
|
209243
209273
|
var init_access = __esm({
|
|
209244
209274
|
"src/one-app/access.ts"() {
|
|
209245
209275
|
init_define_HHP_CATALOG();
|
|
@@ -209268,6 +209298,9 @@ var init_access = __esm({
|
|
|
209268
209298
|
accessStatePath = (gate) => `$app:${NAV_SERVICE}.accessState.${gate.key}`;
|
|
209269
209299
|
accessRowHiddenPath = (gate) => `$app:${NAV_SERVICE}.accessHidden.${gate.key}`;
|
|
209270
209300
|
accessHiddenPath = (gate) => `$service:${NAV_SERVICE}.accessHidden.${gate.key}`;
|
|
209301
|
+
PARSE_MEMO_ENTRIES = 3;
|
|
209302
|
+
parseMemo = /* @__PURE__ */ new Map();
|
|
209303
|
+
parseStats = { calls: 0, runs: 0 };
|
|
209271
209304
|
slice = (source2, node4) => source2.slice(node4.getStart(), node4.getEnd());
|
|
209272
209305
|
stringValue2 = (node4) => node4 && (ts27.isStringLiteral(node4) || ts27.isNoSubstitutionTemplateLiteral(node4)) ? node4.text : void 0;
|
|
209273
209306
|
objectValue = (property3) => property3 && ts27.isObjectLiteralExpression(property3.initializer) ? property3.initializer : void 0;
|
|
@@ -210707,28 +210740,43 @@ function galleryCards(id, s5, index, ctx, options2) {
|
|
|
210707
210740
|
const title = str15(s5.title).trim();
|
|
210708
210741
|
const viewAll = ctx.hasScreen("himi_galleries") ? node3(`${id}.all`, "Button", { title: "View All", style: "secondary", size: "md", fullWidth: true, action: { actionId: "himi.open", params: { screenId: "himi_galleries" } } }, { hiddenPath: `$service:${svc}.noMore` }) : void 0;
|
|
210709
210742
|
if (s5.showTitle !== false && title) children2.push(text10(`${id}.title`, title, "title3", {}, inset(0, 0, 0)));
|
|
210710
|
-
children2.push(
|
|
210743
|
+
children2.push(galleriesRecipe(options2.layout, svc, id, ctx), ...viewAll ? [viewAll] : [], ...ctx.optionalRecipe("section-error", { svc, id, action: "load" }));
|
|
210711
210744
|
return vstack(`${id}.box`, children2, 12, { ...inset(16, 16), onAppear: { actionId: `tier5.${svc}.load`, params: {} } });
|
|
210712
210745
|
}
|
|
210746
|
+
function galleriesRecipe(name, svc, id, ctx) {
|
|
210747
|
+
const node4 = ctx.recipe(name, { svc, id, signInScreen: "himi_sign_in" });
|
|
210748
|
+
return ctx.hasScreen("himi_sign_in") ? node4 : withoutNode(node4, `${id}.signin.button`);
|
|
210749
|
+
}
|
|
210713
210750
|
function galleryCollage(id, index, ctx, options2) {
|
|
210714
210751
|
if (!ctx.hasScreen("himi_gallery")) throw new RecipeError("this scaffold has no himi_gallery screen for a gallery tile to open, so the section keeps its title and a See All link.");
|
|
210715
210752
|
const svc = ctx.uses("galleries", `galleries${index}`, { limit: 1, showName: options2.showName, collage: true });
|
|
210716
|
-
return vstack(`${id}.box`, [
|
|
210753
|
+
return vstack(`${id}.box`, [galleriesRecipe("galleries-collage", svc, id, ctx), ...ctx.optionalRecipe("section-error", { svc, id, action: "load" })], 12, { ...inset(16, 16), onAppear: { actionId: `tier5.${svc}.load`, params: {} } });
|
|
210717
210754
|
}
|
|
210718
210755
|
function groupsSection(recipe, type2) {
|
|
210719
210756
|
return (id, s5, st2, index, ctx, sectionId) => {
|
|
210720
210757
|
if (!ctx.hasScreen("himi_group")) return ctx.unsupported(sectionId, type2, "this scaffold has no himi_group screen for a row to open");
|
|
210721
210758
|
const groupIds = arr3(st2.groupsIds).filter((v2) => typeof v2 === "string" && !!v2);
|
|
210722
210759
|
const limit = countOf2(st2.maxGroups);
|
|
210723
|
-
const createText2 = str15(st2.createButtonText).trim();
|
|
210724
|
-
|
|
210760
|
+
const createText2 = str15(st2.createButtonText).trim() || "Create Group";
|
|
210761
|
+
ctx.gap(sectionId, type2, `the source has a "${createText2}" control for a member the site lets create groups; the section has none, because Wix refuses group creation to every member session (createGroup needs an owner token)`);
|
|
210725
210762
|
const svc = ctx.uses("groups", `groups${index}`, { ...groupIds.length ? { groupIds } : {}, ...limit !== void 0 ? { limit } : {}, ...recipe === "groups-cards" ? { cards: true } : {} });
|
|
210726
|
-
const
|
|
210727
|
-
const
|
|
210728
|
-
|
|
210729
|
-
|
|
210730
|
-
|
|
210731
|
-
|
|
210763
|
+
const title = s5.showTitle === true ? str15(s5.title).trim() : "";
|
|
210764
|
+
const expand3 = str15(st2.expandButtonText).trim() || "View All";
|
|
210765
|
+
const signInScreen = ctx.hasScreen("himi_sign_in") ? "himi_sign_in" : "";
|
|
210766
|
+
let list5 = ctx.recipe(recipe, {
|
|
210767
|
+
svc,
|
|
210768
|
+
id,
|
|
210769
|
+
title,
|
|
210770
|
+
detailScreen: "himi_group",
|
|
210771
|
+
signInScreen,
|
|
210772
|
+
...recipe === "groups-list" ? { headLabel: "Search", searchPlaceholder: "Search groups", seeAllLabel: expand3, seeAllScreen: "himi_groups" } : { headLabel: expand3, headScreen: "himi_groups" }
|
|
210773
|
+
});
|
|
210774
|
+
list5 = withoutNode(list5, title ? `${id}.headSpacer` : `${id}.headTitle`);
|
|
210775
|
+
if (!ctx.hasScreen("himi_groups")) {
|
|
210776
|
+
list5 = recipe === "groups-list" ? withoutNode(list5, `${id}.more`) : withoutNode(list5, `${id}.all`);
|
|
210777
|
+
if (recipe === "groups-cards" && !title) list5 = withoutNode(list5, `${id}.head`);
|
|
210778
|
+
}
|
|
210779
|
+
return vstack(`${id}.box`, [list5, ...ctx.optionalRecipe("section-error", { svc, id, action: "load" })], 12, { ...inset(16, 16), onAppear: { actionId: `tier5.${svc}.load`, params: {} } });
|
|
210732
210780
|
};
|
|
210733
210781
|
}
|
|
210734
210782
|
function productsSection(kind) {
|
|
@@ -210798,7 +210846,7 @@ function wishlistSection(id, s5, st2, index, ctx, sectionId) {
|
|
|
210798
210846
|
children2.push(list5, ...ctx.optionalRecipe("section-error", { svc, id, action: "load" }));
|
|
210799
210847
|
return vstack(`${id}.box`, children2, 12, { ...inset(16, 16), onAppear: { actionId: `tier5.${svc}.load`, params: {} } });
|
|
210800
210848
|
}
|
|
210801
|
-
function blogOptions(st2,
|
|
210849
|
+
function blogOptions(st2, rows = {}) {
|
|
210802
210850
|
const content = obj19(st2.contentSettings);
|
|
210803
210851
|
const display = obj19(st2.displayOptions);
|
|
210804
210852
|
const raw = content.postsPerCategory;
|
|
@@ -210818,7 +210866,8 @@ function blogOptions(st2, listRows = false) {
|
|
|
210818
210866
|
views: display.times_viewed === true,
|
|
210819
210867
|
comments: display.comments === true,
|
|
210820
210868
|
// Each its own source switch (absent: hidden). The full list See All opens gets the same row facts.
|
|
210821
|
-
...
|
|
210869
|
+
...rows.avatar ? { avatar: display.avatar === true } : {},
|
|
210870
|
+
...rows.excerpt ? { excerpt: display.excerpt === true } : {}
|
|
210822
210871
|
},
|
|
210823
210872
|
// The native list shows "2 hours ago", not an absolute date (observed on the source app; no source setting carries it).
|
|
210824
210873
|
relativeTime: true
|
|
@@ -210828,7 +210877,7 @@ function blogOptions(st2, listRows = false) {
|
|
|
210828
210877
|
function blogSection(id, s5, st2, index, ctx, sectionId, type2) {
|
|
210829
210878
|
const display = obj19(st2.displayOptions);
|
|
210830
210879
|
if (st2.postsLayout !== void 0 && st2.postsLayout !== "list") ctx.gap(sectionId, type2, `post layout "${String(st2.postsLayout)}" is shown as the shared blog list`);
|
|
210831
|
-
const { base: base2, limit } = blogOptions(st2, true);
|
|
210880
|
+
const { base: base2, limit } = blogOptions(st2, { avatar: true, excerpt: true });
|
|
210832
210881
|
const svc = ctx.uses("blog", `blog${index}`, { ...base2, ...limit !== void 0 ? { limit, seeAll: true } : {} });
|
|
210833
210882
|
const nodes3 = ctx.recipeNodes("blog-list", { svc, id, detailScreen: "himi_blog_post" });
|
|
210834
210883
|
loadOnAppear(nodes3, svc);
|
|
@@ -210851,18 +210900,20 @@ function blogSection(id, s5, st2, index, ctx, sectionId, type2) {
|
|
|
210851
210900
|
}
|
|
210852
210901
|
return out2;
|
|
210853
210902
|
}
|
|
210854
|
-
function blogCarousel(type2,
|
|
210903
|
+
function blogCarousel(type2, look) {
|
|
210855
210904
|
return (id, s5, st2, index, ctx, sectionId) => {
|
|
210856
|
-
const { base: base2, limit } = blogOptions(st2);
|
|
210905
|
+
const { base: base2, limit } = blogOptions(st2, { avatar: true });
|
|
210857
210906
|
const shown3 = Math.min(limit ?? BLOG_HERO_MAX, BLOG_HERO_MAX);
|
|
210858
210907
|
if (limit === void 0 || limit > BLOG_HERO_MAX) ctx.gap(sectionId, type2, `the source carousel is not limited to ${BLOG_HERO_MAX} posts; the app shows the latest ${shown3}`);
|
|
210859
|
-
for (const reason of layoutGaps(st2)) ctx.gap(sectionId, type2, reason);
|
|
210860
210908
|
const svc = ctx.uses("blog", `blog${index}`, { ...base2, limit: shown3 });
|
|
210861
210909
|
const children2 = [];
|
|
210862
210910
|
const title = str15(s5.title).trim();
|
|
210863
210911
|
if (s5.showTitle === true && title) children2.push(text10(`${id}.title`, title, "title3", {}, inset(0, 0, 0)));
|
|
210864
|
-
|
|
210865
|
-
|
|
210912
|
+
const textOnly = look === "classic" && obj19(base2.show).cover === false;
|
|
210913
|
+
const skeleton = look === "full" ? 240 : textOnly ? 110 : 270;
|
|
210914
|
+
children2.push(node3(`${id}.loading`, "Skeleton", { height: skeleton, count: 1, cornerRadius: 12 }, { padding: { leading: 0, trailing: 0, top: 0, bottom: 0 }, hiddenPath: `$service:${svc}.notLoading` }));
|
|
210915
|
+
const cards = ctx.recipe(`blog-carousel-${look}`, { svc, id, detailScreen: "himi_blog_post" });
|
|
210916
|
+
children2.push(textOnly ? withoutNode(cards, `${id}.media`) : cards, ...ctx.optionalRecipe("section-error", { svc, id, action: "retry" }));
|
|
210866
210917
|
return vstack(`${id}.box`, children2, 12, { ...inset(16, 16), onAppear: { actionId: `tier5.${svc}.load`, params: {} } });
|
|
210867
210918
|
};
|
|
210868
210919
|
}
|
|
@@ -210872,16 +210923,27 @@ function withOpenParams(node4, id, values) {
|
|
|
210872
210923
|
return { ...entry, body: { ...body, props: { ...props2, action: { ...action, params: { ...obj19(action.params), ...values } } } } };
|
|
210873
210924
|
});
|
|
210874
210925
|
}
|
|
210875
|
-
function eventsInline(id, s5, st2, index, ctx) {
|
|
210926
|
+
function eventsInline(id, s5, st2, index, ctx, rail = false) {
|
|
210876
210927
|
const { categoryIds, eventIds } = eventsSelection(st2);
|
|
210877
210928
|
const open6 = eventsOpenParams(st2);
|
|
210878
|
-
const
|
|
210879
|
-
const
|
|
210880
|
-
const
|
|
210929
|
+
const hasList = ctx.hasScreen("himi_events");
|
|
210930
|
+
const seeAll = !rail && Object.keys(open6).length > 0 && hasList;
|
|
210931
|
+
const svc = ctx.uses("events", `events${index}`, { ...rail ? { limit: EVENTS_RAIL_INLINE } : {}, ...categoryIds.length ? { categoryIds } : {}, ...eventIds.length ? { eventIds } : {} });
|
|
210932
|
+
const recipe = ctx.recipe(rail ? "events-inline-carousel" : "events-inline", { svc, id, shareLabel: "Share", seeAllLabel: seeAll ? "See All" : "", seeAllScreen: "himi_events" });
|
|
210881
210933
|
const card2 = seeAll ? withOpenParams(recipe, `${id}.see_all`, open6) : withoutNode(recipe, `${id}.see_all`);
|
|
210882
210934
|
const children2 = [];
|
|
210883
210935
|
const title = str15(s5.title).trim();
|
|
210884
|
-
if (s5.showTitle === true && title)
|
|
210936
|
+
if (s5.showTitle === true && title) {
|
|
210937
|
+
children2.push(rail && hasList ? hstack(`${id}.head`, [
|
|
210938
|
+
text10(`${id}.title`, title, "title3", { maxLines: 2 }, { ...inset(0, 0, 0), weight: 1 }),
|
|
210939
|
+
node3(
|
|
210940
|
+
`${id}.all`,
|
|
210941
|
+
"Button",
|
|
210942
|
+
{ title: "View All", style: "link", size: "md", action: { actionId: "himi.open", params: { screenId: "himi_events", ...open6 } } },
|
|
210943
|
+
{ hiddenPath: `$service:${svc}.noRows` }
|
|
210944
|
+
)
|
|
210945
|
+
], 12) : text10(`${id}.title`, title, "title3", {}, inset(0, 0, 0)));
|
|
210946
|
+
}
|
|
210885
210947
|
children2.push(card2, ...ctx.optionalRecipe("section-error", { svc, id, action: "load" }));
|
|
210886
210948
|
return vstack(`${id}.box`, children2, 12, { ...inset(16, 16), onAppear: { actionId: `tier5.${svc}.load`, params: {} } });
|
|
210887
210949
|
}
|
|
@@ -211643,7 +211705,7 @@ function addNavigation(out2, plan, taken2, pageIconOf) {
|
|
|
211643
211705
|
out2.routes.push({ layoutItemId: "(more)", label: "More", screenId, kind: "generated" });
|
|
211644
211706
|
out2.tabs.push({ layoutItemId: "(more)", label: "More", screenId });
|
|
211645
211707
|
}
|
|
211646
|
-
var TEMPLATE_HOME_SCREEN, TEMPLATE_SCREEN_PARAM_KEYS, SYSTEM_ALL_PRODUCTS_ID, collectionParams, TEMPLATE_PARAMS, countOf2, SCREEN_ADAPTATIONS, FALLBACK_TARGETS, BOTTOM_TABS_BEFORE_MORE, TEMPLATE_VERTICALS, PAGE_TYPE_ICONS, HOME_TAB_ICON, TEMPLATE_FALLBACKS, MODULES, obj19, arr3, str15, node3, text10, vstack, hstack, inset, youtubeIdOf, DIRECT_VIDEO_FILE, UNREAD_IMAGE_RATIO, BUSINESS_CHAT_SCREEN, 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, CALENDAR_INLINE, UPCOMING_SESSIONS_INLINE, UPCOMING_INTERVALS, HISTORY_INLINE, PRODUCTS_INLINE, GROUP_FEED_POSTS_MAX, POST_ACTION_LABELS, postActionsGap, NEWSFEED_GROUPS_MAX, LOYALTY_TIERS_INLINE, VIDEOS_INLINE_DEFAULT, VIDEOS_INLINE_MAX, WISHLIST_INLINE, SOCIAL_NETWORKS, HANDLERS, memberActionService, MERGED_PAGES_BUNDLE, hasCtaButton, chevron;
|
|
211708
|
+
var TEMPLATE_HOME_SCREEN, TEMPLATE_SCREEN_PARAM_KEYS, SYSTEM_ALL_PRODUCTS_ID, collectionParams, TEMPLATE_PARAMS, countOf2, SCREEN_ADAPTATIONS, FALLBACK_TARGETS, BOTTOM_TABS_BEFORE_MORE, TEMPLATE_VERTICALS, PAGE_TYPE_ICONS, HOME_TAB_ICON, TEMPLATE_FALLBACKS, MODULES, obj19, arr3, str15, node3, text10, vstack, hstack, inset, youtubeIdOf, DIRECT_VIDEO_FILE, UNREAD_IMAGE_RATIO, REPEATER_COLUMNS_MAX, BUSINESS_CHAT_SCREEN, 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, CALENDAR_INLINE, UPCOMING_SESSIONS_INLINE, UPCOMING_INTERVALS, HISTORY_INLINE, PRODUCTS_INLINE, GROUP_FEED_POSTS_MAX, POST_ACTION_LABELS, postActionsGap, NEWSFEED_GROUPS_MAX, LOYALTY_TIERS_INLINE, VIDEOS_INLINE_DEFAULT, VIDEOS_INLINE_MAX, WISHLIST_INLINE, EVENTS_RAIL_INLINE, SOCIAL_NETWORKS, HANDLERS, memberActionService, MERGED_PAGES_BUNDLE, hasCtaButton, chevron;
|
|
211647
211709
|
var init_generate = __esm({
|
|
211648
211710
|
"src/one-app/generate.ts"() {
|
|
211649
211711
|
init_define_HHP_CATALOG();
|
|
@@ -211767,7 +211829,7 @@ var init_generate = __esm({
|
|
|
211767
211829
|
// `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.
|
|
211768
211830
|
groups_feed_section: { screen: "himi_groups_feed", needsScreen: true },
|
|
211769
211831
|
// Link only when the scaffold has the events screen: without it the link would open nothing, so the section is reported instead.
|
|
211770
|
-
events_carousel_section: { sibling: "events_list_section", screen: "himi_events", needsScreen: true, siblingShowsAll: showsEveryEvent },
|
|
211832
|
+
events_carousel_section: { sibling: "events_list_section", screen: "himi_events", needsScreen: true, params: eventsOpenParams, siblingShowsAll: showsEveryEvent },
|
|
211771
211833
|
// Upcoming sessions of the business (the Bookings widget): the template's agenda screen lists the site's upcoming class and course sessions.
|
|
211772
211834
|
platform_general_upcoming_section: { screen: "himi_agenda", needsScreen: true },
|
|
211773
211835
|
// 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.
|
|
@@ -211917,6 +211979,7 @@ var init_generate = __esm({
|
|
|
211917
211979
|
};
|
|
211918
211980
|
DIRECT_VIDEO_FILE = /\.(?:mp4|m4v|mov|webm|m3u8)(?:[?#]|$)/i;
|
|
211919
211981
|
UNREAD_IMAGE_RATIO = 4 / 3;
|
|
211982
|
+
REPEATER_COLUMNS_MAX = 3;
|
|
211920
211983
|
BUSINESS_CHAT_SCREEN = "himi_business_chat";
|
|
211921
211984
|
SUBSCRIPTIONS_MAX = 5;
|
|
211922
211985
|
selectedPlanIds = (st2) => arr3(st2.selectedPlanIds).filter((v2) => typeof v2 === "string" && !!v2);
|
|
@@ -211948,6 +212011,7 @@ var init_generate = __esm({
|
|
|
211948
212011
|
VIDEOS_INLINE_DEFAULT = 8;
|
|
211949
212012
|
VIDEOS_INLINE_MAX = 20;
|
|
211950
212013
|
WISHLIST_INLINE = 6;
|
|
212014
|
+
EVENTS_RAIL_INLINE = 10;
|
|
211951
212015
|
SOCIAL_NETWORKS = {
|
|
211952
212016
|
instagram: "Instagram",
|
|
211953
212017
|
facebook: "Facebook",
|
|
@@ -212053,30 +212117,49 @@ var init_generate = __esm({
|
|
|
212053
212117
|
autoplay: !!st2.autoplay
|
|
212054
212118
|
}, { cornerRadius: 8, fillMaxWidth: true, accessibilityLabel: ctx.page.label })], 0, inset(8, 8));
|
|
212055
212119
|
},
|
|
212056
|
-
//
|
|
212057
|
-
// (`imageOverlay`); here
|
|
212120
|
+
// Image cards, each with a title, a subtitle and the tap the source gave it, in the source's order. The source may lay the texts
|
|
212121
|
+
// over the image (`imageOverlay`); here they sit under it, so the image stays clear and the texts stay readable. A `grid` repeater
|
|
212122
|
+
// keeps its columns, at every width: on a narrow phone the cells shrink, the texts wrap to two lines and the whole card stays the tap.
|
|
212058
212123
|
platform_elements_repeater_section: (id, _s2, st2, _i2, ctx, elementId) => {
|
|
212059
212124
|
const options2 = obj19(st2.imageOptions);
|
|
212125
|
+
const grid = st2.type === "grid";
|
|
212126
|
+
const showText = st2.showText !== false;
|
|
212127
|
+
const align = textAlign(obj19(st2.textOptions).textAlignment);
|
|
212060
212128
|
const gap = Math.min(24, Math.max(4, Number(st2.spaceBetweenItems) || 12));
|
|
212129
|
+
const ratio = sourceRatio(options2.aspectRatio);
|
|
212130
|
+
let unsized = false;
|
|
212061
212131
|
const cards = arr3(st2.items).map(obj19).flatMap((item2, i2) => {
|
|
212062
212132
|
if (item2.isHidden === true) return [];
|
|
212063
212133
|
const title = str15(item2.title).trim();
|
|
212134
|
+
const subtitle = str15(item2.subtitle).trim();
|
|
212064
212135
|
const url = str15(item2.imageUrl);
|
|
212065
|
-
if (!
|
|
212066
|
-
const tap = controlTap(ctx, obj19(item2.actionData), elementId, "platform_elements_repeater_section", `the item "${title || url}"`);
|
|
212136
|
+
if (!url && !(showText && (title || subtitle))) return [];
|
|
212137
|
+
const tap = controlTap(ctx, obj19(item2.action ?? item2.actionData), elementId, "platform_elements_repeater_section", `the item "${title || subtitle || url}"`);
|
|
212067
212138
|
const parts = [];
|
|
212068
|
-
if (url)
|
|
212069
|
-
|
|
212070
|
-
|
|
212071
|
-
|
|
212072
|
-
|
|
212073
|
-
|
|
212074
|
-
|
|
212075
|
-
|
|
212139
|
+
if (url) {
|
|
212140
|
+
unsized ||= ratio === void 0;
|
|
212141
|
+
parts.push(node3(`${id}.i${i2}.img`, "Image", {
|
|
212142
|
+
url: ctx.imageUrl(url),
|
|
212143
|
+
fillWidth: true,
|
|
212144
|
+
aspectRatio: ratio ?? UNREAD_IMAGE_RATIO,
|
|
212145
|
+
contentMode: options2.imageScale === "fit" ? "fit" : "fill",
|
|
212146
|
+
contentDescription: title || ctx.page.label
|
|
212147
|
+
}, typeof options2.cornerRadius === "number" ? { cornerRadius: options2.cornerRadius } : void 0));
|
|
212148
|
+
}
|
|
212149
|
+
const lines2 = grid ? { maxLines: 2 } : {};
|
|
212150
|
+
const texts = [];
|
|
212151
|
+
if (showText && title) texts.push(text10(`${id}.i${i2}.title`, title, "bodyEmphasis", { textAlign: align, ...lines2 }, { fillMaxWidth: true }));
|
|
212152
|
+
if (showText && subtitle) texts.push(text10(`${id}.i${i2}.subtitle`, subtitle, "footnote", { textAlign: align, color: "textSecondary", ...lines2 }, { fillMaxWidth: true }));
|
|
212153
|
+
if (texts.length) parts.push(vstack(`${id}.i${i2}.texts`, texts, 2, { fillMaxWidth: true }));
|
|
212076
212154
|
return [vstack(`${id}.i${i2}`, parts, 8, tap ? { onTap: tap, fillMaxWidth: true } : { fillMaxWidth: true })];
|
|
212077
212155
|
});
|
|
212078
|
-
if (!cards.length) return ctx.unsupported(elementId, "platform_elements_repeater_section", "the repeater has no item with
|
|
212079
|
-
|
|
212156
|
+
if (!cards.length) return ctx.unsupported(elementId, "platform_elements_repeater_section", "the repeater has no item with an image or a text to show");
|
|
212157
|
+
if (unsized) ctx.gap(elementId, "platform_elements_repeater_section", "the source gives the cards' images no proportions; they are shown in a 4:3 box");
|
|
212158
|
+
if (!grid) return vstack(`${id}.box`, cards, gap, inset(8, 8));
|
|
212159
|
+
const asked = countOf2(st2.numberOfColumns) ?? 2;
|
|
212160
|
+
const columns = Math.min(asked, REPEATER_COLUMNS_MAX);
|
|
212161
|
+
if (asked > columns) ctx.gap(elementId, "platform_elements_repeater_section", `the source lays the items in ${asked} columns; a phone shows ${columns}, so the cards stay readable, and a wider screen shows ${asked}`);
|
|
212162
|
+
return vstack(`${id}.box`, [node3(`${id}.grid`, "Grid", { columns, ...asked > columns ? { columnsMedium: asked } : {}, spacing: gap, items: cards }, { fillMaxWidth: true })], 0, inset(8, 8));
|
|
212080
212163
|
},
|
|
212081
212164
|
// The source lays its texts over the picture. They sit on the picture here too, on a plain accent band (a translucent scrim is
|
|
212082
212165
|
// not used: a web renderer paints a band with an opacity above its sibling text) so they read on any photo; the button follows
|
|
@@ -212244,8 +212327,8 @@ var init_generate = __esm({
|
|
|
212244
212327
|
return plansSection(id, s5, index, ctx, { planIds: selectedPlanIds(st2), showBenefits: true, ...order ? { order } : {} });
|
|
212245
212328
|
},
|
|
212246
212329
|
// The site's first Pro Gallery galleries as cover cards (a rail, or full-width cards when the source turns its carousel off), as many as
|
|
212247
|
-
// the source's `maxGalleries`; with exactly one (and the carousel on) the source shows that gallery as a collage, and so does the section. Like the source, which lists a member's non-hidden, non-empty galleries
|
|
212248
|
-
//
|
|
212330
|
+
// the source's `maxGalleries`; with exactly one (and the carousel on) the source shows that gallery as a collage, and so does the section. Like the source, which lists a member's non-hidden, non-empty galleries, the
|
|
212331
|
+
// module reads for a signed-in member only: a visitor gets a sign-in state and a list it cannot read the error state, never "No galleries yet". A card opens the template's gallery screen and View All its galleries screen: a scaffold without either
|
|
212249
212332
|
// keeps the title and a link, as every data section does.
|
|
212250
212333
|
progallery_carousel_section: (id, s5, st2, index, ctx, sectionId) => {
|
|
212251
212334
|
const asked = typeof st2.maxGalleries === "number" && st2.maxGalleries >= 1 ? Math.floor(st2.maxGalleries) : void 0;
|
|
@@ -212305,17 +212388,14 @@ var init_generate = __esm({
|
|
|
212305
212388
|
const children2 = [heading && ctx.hasScreen("himi_member_programs") ? section3 : withoutNode(section3, `${id}.cta`)];
|
|
212306
212389
|
return vstack(`${id}.box`, children2, 0, { onAppear: { actionId: `tier5.${svc}.load`, params: {} } });
|
|
212307
212390
|
},
|
|
212308
|
-
// The latest posts as a
|
|
212309
|
-
|
|
212310
|
-
|
|
212311
|
-
|
|
212312
|
-
|
|
212313
|
-
|
|
212314
|
-
|
|
212315
|
-
|
|
212316
|
-
const extras = [display.excerpt === true && "the excerpt", display.author === true && "the author", display.likes === true && "the likes", display.times_viewed === true && "the views", display.comments === true && "the comments"].filter(Boolean);
|
|
212317
|
-
return extras.length ? [`the source's cards also show ${extras.join(", ")}; the carousel shows the cover, the title and the time`] : [];
|
|
212318
|
-
}),
|
|
212391
|
+
// The latest posts as a rail of cards, the title over the cover (the definition is the "full" layout).
|
|
212392
|
+
newBlog_postlist_carousel_full_section: blogCarousel("newBlog_postlist_carousel_full_section", "full"),
|
|
212393
|
+
// The same rail in the layout the section names: "full" (title over the cover) or "classic" (cover, then title, author and counts).
|
|
212394
|
+
newBlog_postlist_carousel_section: (id, s5, st2, index, ctx, sectionId) => {
|
|
212395
|
+
const type2 = "newBlog_postlist_carousel_section";
|
|
212396
|
+
if (st2.carouselLayout !== void 0 && st2.carouselLayout !== "full" && st2.carouselLayout !== "classic") ctx.gap(sectionId, type2, `carousel layout "${String(st2.carouselLayout)}" is shown as the Classic carousel`);
|
|
212397
|
+
return blogCarousel(type2, st2.carouselLayout === "full" ? "full" : "classic")(id, s5, st2, index, ctx, sectionId);
|
|
212398
|
+
},
|
|
212319
212399
|
// The blog's categories as an inline vertical list. Each row opens himi_blog, whose chips are the same categories: the template screen
|
|
212320
212400
|
// does not open on a given category, so that difference is reported. The source's image and description have no row field here.
|
|
212321
212401
|
newBlog_category_list_vertical_section: (id, s5, st2, index, ctx, sectionId) => {
|
|
@@ -212710,16 +212790,18 @@ var init_generate = __esm({
|
|
|
212710
212790
|
// Shared galleries are the members' Shared Gallery, a different data source from the Pro Gallery list the shared loader reads (the
|
|
212711
212791
|
// migration guide says not to substitute it), so the section is not shown inline: it keeps its title and links to the galleries screen.
|
|
212712
212792
|
shared_gallery_list_section: (_id, _s2, _st, _i2, ctx, elementId) => ctx.unsupported(elementId, "shared_gallery_list_section", "the source's shared galleries are the members' Shared Gallery, a different data source from the site's Pro Gallery, so they are not shown inline; the link opens the site's galleries, not the members' shared ones"),
|
|
212713
|
-
// The events carousel
|
|
212714
|
-
//
|
|
212715
|
-
//
|
|
212793
|
+
// The events carousel: the shared events cards in a rail that scrolls sideways, limited to the source's chosen categories or events as the
|
|
212794
|
+
// list section is. `filter` is 0 for every event, 1 by category and "manual" for chosen events (read off the 45 carousels collected from
|
|
212795
|
+
// the top apps); the ids decide the selection, as for the list, so `filter` only marks a selection the source made without choosing anything.
|
|
212716
212796
|
events_carousel_section: (id, s5, st2, index, ctx, sectionId) => {
|
|
212717
212797
|
const type2 = "events_carousel_section";
|
|
212718
|
-
|
|
212719
|
-
|
|
212720
|
-
if (st2.filter !== void 0 && st2.filter !== 0 && st2.filter !== 1) return ctx.unsupported(sectionId, type2, `its event filter ${JSON.stringify(st2.filter)} is not one this generator knows`);
|
|
212721
|
-
ctx.
|
|
212722
|
-
if (st2.filter === 1) ctx.gap(sectionId, type2, "the source filters by category but chose none; the section shows every upcoming event");
|
|
212798
|
+
const { categoryIds, eventIds } = eventsSelection(st2);
|
|
212799
|
+
const every = showsEveryEvent(st2);
|
|
212800
|
+
if (st2.filter !== void 0 && st2.filter !== 0 && st2.filter !== 1 && st2.filter !== "manual") return ctx.unsupported(sectionId, type2, `its event filter ${JSON.stringify(st2.filter)} is not one this generator knows`);
|
|
212801
|
+
if (st2.filter === "manual" && every) return ctx.unsupported(sectionId, type2, "the source shows chosen events but chose none, so there is nothing to show");
|
|
212802
|
+
if (st2.filter === 1 && every) ctx.gap(sectionId, type2, "the source filters by category but chose none; the section shows every upcoming event");
|
|
212803
|
+
if (categoryIds.length && eventIds.length) ctx.gap(sectionId, type2, "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");
|
|
212804
|
+
ctx.gap(sectionId, type2, `the rail shows at most the next ${EVENTS_RAIL_INLINE} upcoming events`);
|
|
212723
212805
|
const card2 = obj19(st2.cardSettings);
|
|
212724
212806
|
const hidden = [["imageVisible", "image"], ["dateVisible", "date"], ["locationVisible", "location"]].filter(([key4]) => card2[key4] === false).map(([, name]) => name);
|
|
212725
212807
|
if (hidden.length) ctx.gap(sectionId, type2, `the source hides the event's ${hidden.join(", ")}; the card shows ${hidden.length > 1 ? "them" : "it"}`);
|
|
@@ -212728,7 +212810,7 @@ var init_generate = __esm({
|
|
|
212728
212810
|
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`);
|
|
212729
212811
|
const missing4 = [["guestsVisible", "guest avatars"], ["membershipOfferVisible", "the membership offer"]].filter(([key4]) => card2[key4] === true).map(([, name]) => name);
|
|
212730
212812
|
if (missing4.length) ctx.gap(sectionId, type2, `the source card shows ${missing4.join(" and ")}; the card has ${missing4.length > 1 ? "neither" : "none"}`);
|
|
212731
|
-
return eventsInline(id, s5, st2, index, ctx);
|
|
212813
|
+
return eventsInline(id, s5, st2, index, ctx, true);
|
|
212732
212814
|
},
|
|
212733
212815
|
// 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
|
|
212734
212816
|
// one); a link that is not an http(s) URL is left out and reported, never opened as something else.
|
|
@@ -127,7 +127,7 @@ carousel placement remain separate gaps; the mappings above stay Partial.
|
|
|
127
127
|
| Source sectionDefinitionId | Source viewer component | Himalaya implementation | Placement / reuse | Class | Settings, actions and gaps |
|
|
128
128
|
| --- | --- | --- | --- | --- | --- |
|
|
129
129
|
| `events_list_section` | `wix.events.clientApp.Index` | [himi_events / himi_event](https://github.com/wix-private/himalaya/blob/97f1542f2f7d6e8cb7a902b912c87dcaa37e5a67/packages/himi-events/dev/index.ts) + [events-list worker](https://github.com/wix-private/himalaya/blob/97f1542f2f7d6e8cb7a902b912c87dcaa37e5a67/core/dev-server/tier5-bundles-src/himi-events-list/index.ts "audience-lint-ok: optional pinned upstream evidence, not a local authoring dependency") | Screen; inline adapter needed | Module | Reuse the consumer Events list/detail and relevant RSVP/ticket destinations. Translate selection, order, layout and local display options. |
|
|
130
|
-
| `events_carousel_section` | `wix.events.CarouselSection` | [Events list/detail](https://github.com/wix-private/himalaya/blob/97f1542f2f7d6e8cb7a902b912c87dcaa37e5a67/packages/himi-events/dev/index.ts) + [Core Carousel](https://github.com/wix-private/himalaya/blob/97f1542f2f7d6e8cb7a902b912c87dcaa37e5a67/core/dev-server/src/builder.ts "audience-lint-ok: optional pinned upstream evidence, not a local authoring dependency") |
|
|
130
|
+
| `events_carousel_section` | `wix.events.CarouselSection` | [Events list/detail](https://github.com/wix-private/himalaya/blob/97f1542f2f7d6e8cb7a902b912c87dcaa37e5a67/packages/himi-events/dev/index.ts) + [Core Carousel](https://github.com/wix-private/himalaya/blob/97f1542f2f7d6e8cb7a902b912c87dcaa37e5a67/core/dev-server/src/builder.ts "audience-lint-ok: optional pinned upstream evidence, not a local authoring dependency") | Generated inline by `himi one-app generate` (Branded Lite events-inline-carousel recipe); View All opens the events list | Partial | Reuse event data and destinations. The carousel shows the shared inline event cards (at most the next 10, reported) in a rail that scrolls sideways, limited to its chosen categories (`categoryIds`) or events (`eventIds`) as the list section is. View All sits on the heading and shows whenever the heading does, once there are events; it opens the events list on the same selection. A "manual" carousel with nothing chosen, or an unknown `filter`, keeps its place as the source title and a link to the events screen, and is reported. The source's own button labels, hidden card parts, guest avatars and membership offer are reported as gaps. |
|
|
131
131
|
| `events_schedule_section` | `wix.events.ScheduleSection` | Branded Lite event-schedule recipe over the event agenda read | Generated inline by `himi one-app generate`; View All opens the event screen | Partial | Lists the chosen event's first sessions (day and time in the event's zone, name, stage) and hides itself when the event has no agenda. The source's My Agenda bookmarks and its "no schedule" message are not shown and are reported as adapted gaps; a source section with no event chosen is reported, not faked. |
|
|
132
132
|
| `events_discussion_section` | `wix.events.DiscussionSection` | | | Empty | No event-scoped discussion implementation was found. Groups/social feed and Blog comments must not be selected automatically. |
|
|
133
133
|
| `events_guests_section` | `wix.events.GuestsSection` | | | Empty | The Events detail has only a best-effort attendee summary/avatar strip using an owner-scoped guest query. It is not a full consumer guest-list section; leave the mapping unassigned. |
|
|
@@ -225,8 +225,8 @@ source's title (only when the source shows it) and a **See All** button to the s
|
|
|
225
225
|
| `platform_general_upcoming_section` | `himi_agenda` | nothing to the screen. Beside other sections, a scaffold with `himi_service` and the `upcoming-sessions` recipe shows the strip inline: the business's next 3 class and course sessions in the source's `interval` window (`day`, `week` or `month` from now; another value is the month, reported), each with a date block, the day and local times, the coach, and the member's Booked or On waitlist badge. A row opens `himi_service` on its session, and View All opens this screen |
|
|
226
226
|
| `vod_list_section` | `himi_videos` | nothing: the screen is the channel list (the source has no setting to choose a channel). Beside other sections it shows each channel in place, as the source does: its cover, title and size ("1 video · Free"), Play All, its first five clips as rows (the length on the thumbnail, the video's host when it is not Wix) and See All to the channel (`himi_video_channel`) when it has more; the first three channels, with See All to this screen when the site has more. A clip and Play All open `himi_video`, which plays a Wix-hosted or YouTube video; Play All starts on the first of those among the clips the section reads (the rows and one more) and does not go on to the next clip (reported as a gap); a channel with none there shows no Play All, and its rows and See All still open every clip. A site with no ready video shows "No videos yet."; a failed read shows the shared error piece |
|
|
227
227
|
| `bookings_agenda_section` | `himi_agenda` | nothing: the screen is the calendar of the site's class and course sessions. Beside other sections, a scaffold with `himi_service` and the `class-calendar` recipe shows the calendar inline: the Agenda's week strip (it pages and opens into the month), filter chips (All, the member's Booked sessions, each class), and the first 10 sessions of the selected day or the next day with one, each with its coach, spots, place and one control (Book opens `himi_time` on the session; View Course and Join Waitlist open `himi_service` on it). See All opens this screen; the source's filter sheet and its booked-session sheet are reported gaps |
|
|
228
|
-
| `progallery_carousel_section` | `himi_galleries` | `maxGalleries`, `isCarousel`, `isShowName`: a rail of the first `maxGalleries` gallery covers (full-width cards when the carousel is off). With exactly ONE gallery and the carousel on, the source shows that gallery as a collage, and so does the section: the gallery's name (when names are on) with View All, then its first five pictures as one big tile and four small, the last small tile with "+N" for the pictures past the five; a tile and View All open the gallery (`himi_gallery`). The section's own title is not shown there (the header is the gallery's name), and a picture's caption over its tile is reported as a gap. Like the list section it reads the One App's galleries service as a member: a visitor sees the "
|
|
229
|
-
| `proGallery_gallery_list_section` | `himi_galleries` | nothing: the section has no settings. Beside other sections it shows the site's first 10 galleries as full-width cards (a card opens `himi_gallery`), with View All to this screen, and reports that gap. Like the source, which reads the One App's own galleries service as a member and never shows hidden or empty galleries, the section lists them for a signed-in member only: a visitor sees
|
|
228
|
+
| `progallery_carousel_section` | `himi_galleries` | `maxGalleries`, `isCarousel`, `isShowName`: a rail of the first `maxGalleries` gallery covers (full-width cards when the carousel is off). With exactly ONE gallery and the carousel on, the source shows that gallery as a collage, and so does the section: the gallery's name (when names are on) with View All, then its first five pictures as one big tile and four small, the last small tile with "+N" for the pictures past the five; a tile and View All open the gallery (`himi_gallery`). The section's own title is not shown there (the header is the gallery's name), and a picture's caption over its tile is reported as a gap. Like the list section it reads the One App's galleries service as a member: a visitor sees a sign-in state (a Sign in button when the app has `himi_sign_in`), never "No galleries yet" |
|
|
229
|
+
| `proGallery_gallery_list_section` | `himi_galleries` | nothing: the section has no settings. Beside other sections it shows the site's first 10 galleries as full-width cards (a card opens `himi_gallery`), with View All to this screen, and reports that gap. Like the source, which reads the One App's own galleries service as a member and never shows hidden or empty galleries, the section lists them for a signed-in member only: a visitor (or a member Wix refuses) sees a sign-in state, and a member where that service cannot be read sees the error state with a retry (the web bridge refuses its host: the public Pro Gallery list has no hidden flag, so it is never used as a stand-in). "No galleries yet" shows only when a member's read answered with none; signing in or out reads again |
|
|
230
230
|
| `shared_gallery_list_section` | `himi_galleries` | nothing. Never shown inline: it is the members' Shared Gallery, a different data source from the site's Pro Gallery. It keeps its title and a See All link that opens the site's galleries, not the members' shared ones, and reports that gap |
|
|
231
231
|
|
|
232
232
|
A screen that cannot follow a setting would show more or other content than the source, so `generate` reports one **gap** per
|
|
@@ -267,11 +267,15 @@ section's settings, with no loader of their own:
|
|
|
267
267
|
visit without them is the whole list again). The section's `filter` setting is not read, because the two sections of the Barcelona
|
|
268
268
|
Erasmus source contradict the carousel's reading of it. A section naming both categories and events shows the events that match both, reported.
|
|
269
269
|
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.
|
|
270
|
-
- `events_carousel_section`: the shared inline events cards (the same module as `events_list_section`)
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
270
|
+
- `events_carousel_section`: the shared inline events cards (the same module as `events_list_section`) in a rail that scrolls sideways
|
|
271
|
+
(the `events-inline-carousel` recipe), at most the next 10 upcoming events in date order (reported). Its `filter` is 0 for every
|
|
272
|
+
event, 1 for chosen categories and `"manual"` for chosen events, but as for the list section its `categoryIds` / `eventIds` decide
|
|
273
|
+
what it shows. **View All** sits on the section's heading, as in the source: it shows whenever the heading does (`showTitle` and a
|
|
274
|
+
title) once the read found events, not only when more events exist, and opens `himi_events` on the carousel's selection (the same
|
|
275
|
+
comma-separated `categoryIds` / `eventIds` values). A scaffold without `himi_events` keeps the heading without View All. A
|
|
276
|
+
`"manual"` carousel that names no categories and no events, or an unknown `filter`, keeps the source's title and a **See All** link
|
|
277
|
+
to `himi_events`, reported. Gaps: a category filter with nothing chosen (it shows every event), a card part the source hides but
|
|
278
|
+
the card shows (image, date, location) and a part the source shows but the card has not (guest avatars, the membership offer).
|
|
275
279
|
- `events_schedule_section`: one event's schedule (`settings.eventId`). The first 10 sessions are rows (day and start time in the app's
|
|
276
280
|
language and the event's time zone, name, stage), read as the conference agenda reads them (the event with its agenda fieldset, then its
|
|
277
281
|
schedule), and **View All** opens `himi_event` on that event, whose screen lists every session. An event with no schedule, or one that is
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1956.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": "912a8d6ba71e96c41f1915484939dbe648e5f05f24691904ccc92daa"
|
|
86
86
|
}
|
|
@@ -9453,6 +9453,11 @@
|
|
|
9453
9453
|
"translation": "لا توجد معارض بعد.",
|
|
9454
9454
|
"origin": "machine"
|
|
9455
9455
|
},
|
|
9456
|
+
"h_053905f92420": {
|
|
9457
|
+
"source": "Sign in to see galleries.",
|
|
9458
|
+
"translation": "سجّل الدخول لعرض المعارض.",
|
|
9459
|
+
"origin": "machine"
|
|
9460
|
+
},
|
|
9456
9461
|
"h_02f435ca9a67": {
|
|
9457
9462
|
"source": "No posts in this group yet.",
|
|
9458
9463
|
"translation": "لا توجد منشورات في هذه المجموعة بعد.",
|
|
@@ -9453,6 +9453,11 @@
|
|
|
9453
9453
|
"translation": "Zatím tu nejsou žádné galerie.",
|
|
9454
9454
|
"origin": "machine"
|
|
9455
9455
|
},
|
|
9456
|
+
"h_053905f92420": {
|
|
9457
|
+
"source": "Sign in to see galleries.",
|
|
9458
|
+
"translation": "Pro zobrazení galerií se přihlaste.",
|
|
9459
|
+
"origin": "machine"
|
|
9460
|
+
},
|
|
9456
9461
|
"h_02f435ca9a67": {
|
|
9457
9462
|
"source": "No posts in this group yet.",
|
|
9458
9463
|
"translation": "V této skupině zatím nejsou žádné příspěvky.",
|
|
@@ -9453,6 +9453,11 @@
|
|
|
9453
9453
|
"translation": "Der er ingen gallerier endnu.",
|
|
9454
9454
|
"origin": "machine"
|
|
9455
9455
|
},
|
|
9456
|
+
"h_053905f92420": {
|
|
9457
|
+
"source": "Sign in to see galleries.",
|
|
9458
|
+
"translation": "Log ind for at se gallerierne.",
|
|
9459
|
+
"origin": "machine"
|
|
9460
|
+
},
|
|
9456
9461
|
"h_02f435ca9a67": {
|
|
9457
9462
|
"source": "No posts in this group yet.",
|
|
9458
9463
|
"translation": "Der er ingen opslag i denne gruppe endnu.",
|
|
@@ -9453,6 +9453,11 @@
|
|
|
9453
9453
|
"translation": "Noch keine Galerien.",
|
|
9454
9454
|
"origin": "machine"
|
|
9455
9455
|
},
|
|
9456
|
+
"h_053905f92420": {
|
|
9457
|
+
"source": "Sign in to see galleries.",
|
|
9458
|
+
"translation": "Melde dich an, um die Galerien zu sehen.",
|
|
9459
|
+
"origin": "machine"
|
|
9460
|
+
},
|
|
9456
9461
|
"h_02f435ca9a67": {
|
|
9457
9462
|
"source": "No posts in this group yet.",
|
|
9458
9463
|
"translation": "In dieser Gruppe gibt es noch keine Beiträge.",
|
|
@@ -9453,6 +9453,11 @@
|
|
|
9453
9453
|
"translation": "Δεν υπάρχουν ακόμη γκαλερί.",
|
|
9454
9454
|
"origin": "machine"
|
|
9455
9455
|
},
|
|
9456
|
+
"h_053905f92420": {
|
|
9457
|
+
"source": "Sign in to see galleries.",
|
|
9458
|
+
"translation": "Συνδεθείτε για να δείτε τις συλλογές.",
|
|
9459
|
+
"origin": "machine"
|
|
9460
|
+
},
|
|
9456
9461
|
"h_02f435ca9a67": {
|
|
9457
9462
|
"source": "No posts in this group yet.",
|
|
9458
9463
|
"translation": "Δεν υπάρχουν ακόμη αναρτήσεις σε αυτήν την ομάδα.",
|
|
@@ -9453,6 +9453,11 @@
|
|
|
9453
9453
|
"translation": "Aún no hay galerías.",
|
|
9454
9454
|
"origin": "machine"
|
|
9455
9455
|
},
|
|
9456
|
+
"h_053905f92420": {
|
|
9457
|
+
"source": "Sign in to see galleries.",
|
|
9458
|
+
"translation": "Inicia sesión para ver las galerías.",
|
|
9459
|
+
"origin": "machine"
|
|
9460
|
+
},
|
|
9456
9461
|
"h_02f435ca9a67": {
|
|
9457
9462
|
"source": "No posts in this group yet.",
|
|
9458
9463
|
"translation": "Todavía no hay publicaciones en este grupo.",
|