@wix/himalaya-cli 0.2010.0 → 0.2012.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 +76 -43
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -20178,6 +20178,7 @@ function buttonVariant(style) {
|
|
|
20178
20178
|
var SYSTEM_FONT_FAMILY, TONAL_ELEVATION_ALPHA, BUTTON_SIZES, BUTTON_MIN_HIT_TARGET, nonNegative, nonEmpty2, own2, COLOR_TOKEN_PROPS, TYPOGRAPHY_TOKEN_PROPS, BUTTON_VARIANTS;
|
|
20179
20179
|
var init_tokens = __esm({
|
|
20180
20180
|
"../../core/ts/src/tokens.ts"() {
|
|
20181
|
+
"use strict";
|
|
20181
20182
|
init_define_HHP_CATALOG();
|
|
20182
20183
|
SYSTEM_FONT_FAMILY = "$system";
|
|
20183
20184
|
TONAL_ELEVATION_ALPHA = [0, 0.05, 0.08, 0.11, 0.12, 0.14];
|
|
@@ -45465,6 +45466,7 @@ function resolveIdiom(tokens2, ctx = {}) {
|
|
|
45465
45466
|
var IDIOM_CONTEXTS, UNSAFE_KEYS;
|
|
45466
45467
|
var init_idiom = __esm({
|
|
45467
45468
|
"../../core/ts/src/idiom.ts"() {
|
|
45469
|
+
"use strict";
|
|
45468
45470
|
init_define_HHP_CATALOG();
|
|
45469
45471
|
IDIOM_CONTEXTS = {
|
|
45470
45472
|
ios: { native: ["ios"] },
|
|
@@ -47234,6 +47236,7 @@ function shouldRevealError(args) {
|
|
|
47234
47236
|
var EMAIL_RE, URL_HOST_RE, INTEGER_RE, NUMBER_RE, AUTHORED_PATTERN_LIMIT, authoredPatterns;
|
|
47235
47237
|
var init_validation = __esm({
|
|
47236
47238
|
"../../core/ts/src/validation.ts"() {
|
|
47239
|
+
"use strict";
|
|
47237
47240
|
init_define_HHP_CATALOG();
|
|
47238
47241
|
EMAIL_RE = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
|
|
47239
47242
|
URL_HOST_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(:[0-9]+)?$/;
|
|
@@ -183605,7 +183608,7 @@ function isTemplatePlaceholder(text32) {
|
|
|
183605
183608
|
}
|
|
183606
183609
|
function cleanText(raw, cap2) {
|
|
183607
183610
|
const s5 = String(raw ?? "").replace(/[\u0000-\u001F\u007F]/g, " ").replace(/\s+/g, " ").trim();
|
|
183608
|
-
return s5.length > cap2 ? `${s5.slice(0, cap2 - 1).trimEnd()}\u2026` : s5;
|
|
183611
|
+
return s5.length > cap2 ? `${s5.slice(0, cap2 - 1).replace(/[\uD800-\uDBFF]$/, "").trimEnd()}\u2026` : s5;
|
|
183609
183612
|
}
|
|
183610
183613
|
function stripPii(text32) {
|
|
183611
183614
|
return text32.replace(EMAIL_RE2, "").replace(PHONE_SHAPE_RE, (m2) => {
|
|
@@ -212908,13 +212911,21 @@ function sourceRatio(value2) {
|
|
|
212908
212911
|
return typeof value2 === "number" && Number.isFinite(value2) && value2 > 0 ? value2 : void 0;
|
|
212909
212912
|
}
|
|
212910
212913
|
function unsizedImageUrls(raw) {
|
|
212911
|
-
const
|
|
212914
|
+
const images = /* @__PURE__ */ new Set(), banners = /* @__PURE__ */ new Set();
|
|
212915
|
+
const add = (into, url) => {
|
|
212916
|
+
if (typeof url === "string" && /^https:\/\//i.test(url)) into.add(url);
|
|
212917
|
+
};
|
|
212912
212918
|
for (const section3 of Object.values(record3(record3(raw).sections))) {
|
|
212913
|
-
|
|
212914
|
-
const
|
|
212915
|
-
if (
|
|
212919
|
+
const type2 = record3(section3).sectionDefinitionId;
|
|
212920
|
+
const settings = record3(record3(section3).settings);
|
|
212921
|
+
if (type2 === "platform_elements_image_section") {
|
|
212922
|
+
const data = record3(settings.data);
|
|
212923
|
+
if (sourceRatio(data.aspectRatio) === void 0) add(images, data.url);
|
|
212924
|
+
} else if (type2 === "platform_elements_interactive_banner_section") {
|
|
212925
|
+
if (sourceRatio(settings.aspectRatio) === void 0 && sourceRatio(settings.originalAspectRatio) === void 0) add(banners, settings.imageUri);
|
|
212926
|
+
}
|
|
212916
212927
|
}
|
|
212917
|
-
return [...
|
|
212928
|
+
return [.../* @__PURE__ */ new Set([...images, ...banners])];
|
|
212918
212929
|
}
|
|
212919
212930
|
async function imageAspectRatios(urls2, fetchAsset, limits = PROBE_LIMITS) {
|
|
212920
212931
|
return probeEach(urls2, limits, async (url, signal) => {
|
|
@@ -213086,7 +213097,8 @@ function mergedCopyPack(packs) {
|
|
|
213086
213097
|
}
|
|
213087
213098
|
}
|
|
213088
213099
|
}
|
|
213089
|
-
|
|
213100
|
+
const texts = Object.entries(text32).sort(([a3], [b3]) => a3 < b3 ? -1 : a3 > b3 ? 1 : 0);
|
|
213101
|
+
if (texts.length) out2.textCopy = JSON.stringify(Object.fromEntries(texts));
|
|
213090
213102
|
return out2;
|
|
213091
213103
|
}
|
|
213092
213104
|
function bannerTextStyle(item2) {
|
|
@@ -213098,14 +213110,16 @@ function bannerTextStyle(item2) {
|
|
|
213098
213110
|
return item2.type === "title" ? "title3" : "body";
|
|
213099
213111
|
}
|
|
213100
213112
|
function bannerTextColor(color) {
|
|
213101
|
-
const match =
|
|
213102
|
-
if (!match
|
|
213103
|
-
const
|
|
213104
|
-
|
|
213113
|
+
const match = BANNER_HEX.exec(str16(color).trim());
|
|
213114
|
+
if (!match) return "";
|
|
213115
|
+
const digits2 = match[1] ?? match[2];
|
|
213116
|
+
const full = digits2.length <= 4 ? digits2.split("").map((c2) => c2 + c2).join("") : digits2;
|
|
213117
|
+
if (/^[0-9a-f]{6}00$/i.test(full)) return "";
|
|
213118
|
+
return `#${full.slice(0, 6).toLowerCase()}`;
|
|
213105
213119
|
}
|
|
213106
213120
|
function bannerText(id, value2, style, align, color) {
|
|
213107
213121
|
const words = text10(id, value2, style, { textAlign: align, color: "textOnAccent" }, { fillMaxWidth: true });
|
|
213108
|
-
return
|
|
213122
|
+
return vstack(`${id}.scope`, [words], 0, { fillMaxWidth: true, theme: { colors: { textOnAccent: color || BANNER_TEXT_DEFAULT } } }, align);
|
|
213109
213123
|
}
|
|
213110
213124
|
function weekFirstDayOf(locale) {
|
|
213111
213125
|
return locale ? String(firstWeekdayOf(locale)) : void 0;
|
|
@@ -213171,23 +213185,10 @@ function galleryCollage(id, index, ctx, options2) {
|
|
|
213171
213185
|
const svc = ctx.uses("galleries", `galleries${index}`, { limit: 1, showName: options2.showName, collage: true });
|
|
213172
213186
|
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: {} } });
|
|
213173
213187
|
}
|
|
213174
|
-
function sectionCopy(ctx, ...
|
|
213175
|
-
const
|
|
213176
|
-
|
|
213177
|
-
|
|
213178
|
-
for (const [key4, value2] of Object.entries(ctx.workerCopy(module))) {
|
|
213179
|
-
if (key4 !== "textCopy") {
|
|
213180
|
-
params[key4] = value2;
|
|
213181
|
-
continue;
|
|
213182
|
-
}
|
|
213183
|
-
try {
|
|
213184
|
-
texts = { ...texts, ...JSON.parse(value2) };
|
|
213185
|
-
} catch {
|
|
213186
|
-
}
|
|
213187
|
-
}
|
|
213188
|
-
}
|
|
213189
|
-
if (texts) params.textCopy = JSON.stringify(Object.fromEntries(Object.entries(texts).sort(([a3], [b3]) => a3 < b3 ? -1 : a3 > b3 ? 1 : 0)));
|
|
213190
|
-
return params;
|
|
213188
|
+
function sectionCopy(ctx, module, ...helpers) {
|
|
213189
|
+
const pack = ctx.workerCopy(module);
|
|
213190
|
+
for (const helper of helpers) ctx.workerCopy(helper);
|
|
213191
|
+
return pack;
|
|
213191
213192
|
}
|
|
213192
213193
|
function groupsSection(recipe, type2) {
|
|
213193
213194
|
return (id, s5, st2, index, ctx, sectionId) => {
|
|
@@ -214162,7 +214163,7 @@ function addNavigation(out2, plan, taken2, pageIconOf) {
|
|
|
214162
214163
|
out2.routes.push({ layoutItemId: "(more)", label: "More", screenId, kind: "generated" });
|
|
214163
214164
|
out2.tabs.push({ layoutItemId: "(more)", label: "More", screenId });
|
|
214164
214165
|
}
|
|
214165
|
-
var TEMPLATE_HOME_SCREEN, TEMPLATE_SCREEN_PARAM_KEYS, SYSTEM_ALL_PRODUCTS_ID, collectionParams, faqHiddenCategories, TEMPLATE_PARAMS, countOf2, SCREEN_ADAPTATIONS, FALLBACK_TARGETS, BOTTOM_TABS_BEFORE_MORE, TEMPLATE_VERTICALS, PAGE_TYPE_ICONS, HOME_TAB_ICON, TEMPLATE_FALLBACKS, MODULES, obj20, arr4, str16, node3, text10, vstack, hstack, inset, youtubeIdOf, DIRECT_VIDEO_FILE, UNREAD_IMAGE_RATIO, REPEATER_COLUMNS_MAX, REPEATER_ON_IMAGE_INSET, REPEATER_ON_SHADE_THEME, REPEATER_ON_BARE_IMAGE_THEME, REPEATER_IMAGE_SHADE, BUSINESS_CHAT_SCREEN, SUBSCRIPTIONS_MAX, selectedPlanIds, PLAN_SELECT_LABEL, PLAN_DETAILS_LABEL, PLAN_BENEFITS_LABEL, 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;
|
|
214166
|
+
var TEMPLATE_HOME_SCREEN, TEMPLATE_SCREEN_PARAM_KEYS, SYSTEM_ALL_PRODUCTS_ID, collectionParams, faqHiddenCategories, TEMPLATE_PARAMS, countOf2, SCREEN_ADAPTATIONS, FALLBACK_TARGETS, BOTTOM_TABS_BEFORE_MORE, TEMPLATE_VERTICALS, PAGE_TYPE_ICONS, HOME_TAB_ICON, TEMPLATE_FALLBACKS, MODULES, obj20, arr4, str16, node3, text10, vstack, hstack, inset, youtubeIdOf, DIRECT_VIDEO_FILE, UNREAD_IMAGE_RATIO, REPEATER_COLUMNS_MAX, REPEATER_ON_IMAGE_INSET, REPEATER_ON_SHADE_THEME, REPEATER_ON_BARE_IMAGE_THEME, REPEATER_IMAGE_SHADE, BUSINESS_CHAT_SCREEN, SUBSCRIPTIONS_MAX, selectedPlanIds, PLAN_SELECT_LABEL, PLAN_DETAILS_LABEL, PLAN_BENEFITS_LABEL, BANNER_HEX, BANNER_TEXT_DEFAULT, 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;
|
|
214166
214167
|
var init_generate = __esm({
|
|
214167
214168
|
"src/one-app/generate.ts"() {
|
|
214168
214169
|
init_define_HHP_CATALOG();
|
|
@@ -214450,6 +214451,8 @@ var init_generate = __esm({
|
|
|
214450
214451
|
PLAN_SELECT_LABEL = "Select";
|
|
214451
214452
|
PLAN_DETAILS_LABEL = "See Details";
|
|
214452
214453
|
PLAN_BENEFITS_LABEL = "Show Benefits";
|
|
214454
|
+
BANNER_HEX = /^(?:#([0-9a-f]{3,4})|#?([0-9a-f]{6}|[0-9a-f]{8}))$/i;
|
|
214455
|
+
BANNER_TEXT_DEFAULT = "#ffffff";
|
|
214453
214456
|
MEMBERS_RAIL = 10;
|
|
214454
214457
|
PROGRAMS_DEFAULT_LIMIT = 2;
|
|
214455
214458
|
PROGRAMS_INLINE_MAX = 20;
|
|
@@ -214648,36 +214651,50 @@ var init_generate = __esm({
|
|
|
214648
214651
|
},
|
|
214649
214652
|
// The source lays its texts and its button straight on the picture, where it places them (`verticalAlign`, `horizontalAlign`), in
|
|
214650
214653
|
// the colors and type sizes it authored, over the picture in its own crop (`aspectRatio`, `cornerRadius`). They sit there here too,
|
|
214651
|
-
// with no panel behind them: the source draws none. With no picture the texts and the button simply stack.
|
|
214654
|
+
// with no panel behind them: the source draws none. With no picture the texts and the button simply stack. A layout other than
|
|
214655
|
+
// "stacked" (split, diagonal) does not put the texts on the picture: they follow it below, in the theme's colors, and that is reported.
|
|
214652
214656
|
platform_elements_interactive_banner_section: (id, _s2, st2, _i2, ctx, elementId) => {
|
|
214657
|
+
const type2 = "platform_elements_interactive_banner_section";
|
|
214653
214658
|
const url = str16(st2.imageUri);
|
|
214654
|
-
const tap = controlTap(ctx, obj20(st2.action), elementId,
|
|
214655
|
-
const
|
|
214659
|
+
const tap = controlTap(ctx, obj20(st2.action), elementId, type2, "the banner");
|
|
214660
|
+
const horizontal = str16(st2.horizontalAlign).trim().toLowerCase(), verticalAlign = str16(st2.verticalAlign).trim().toLowerCase();
|
|
214661
|
+
const align = horizontal === "center" ? "center" : horizontal === "right" ? "trailing" : "leading";
|
|
214662
|
+
let ratio = url ? sourceRatio(st2.aspectRatio) ?? sourceRatio(st2.originalAspectRatio) ?? sourceRatio(ctx.imageRatio(url)) : void 0;
|
|
214663
|
+
if (url && ratio === void 0) {
|
|
214664
|
+
ratio = UNREAD_IMAGE_RATIO;
|
|
214665
|
+
ctx.gap(elementId, type2, "the banner picture's proportions are unknown (no authored ratio, its file header was not read); it is shown in a 4:3 box");
|
|
214666
|
+
}
|
|
214656
214667
|
const picture = url ? node3(`${id}.img`, "Image", {
|
|
214657
214668
|
url: ctx.imageUrl(url),
|
|
214658
214669
|
fillWidth: true,
|
|
214659
|
-
|
|
214670
|
+
aspectRatio: ratio,
|
|
214660
214671
|
contentMode: "fill",
|
|
214661
214672
|
contentDescription: ctx.page.label
|
|
214662
214673
|
}, typeof st2.cornerRadius === "number" ? { cornerRadius: st2.cornerRadius } : void 0) : null;
|
|
214674
|
+
const layout2 = str16(st2.layoutType).trim();
|
|
214675
|
+
const onPicture = !!picture && (!layout2 || layout2.toLowerCase() === "stacked");
|
|
214676
|
+
if (picture && !onPicture) ctx.gap(elementId, type2, `the source lays the banner out as "${layout2}"; the texts and the button follow the picture below it`);
|
|
214663
214677
|
const texts = [];
|
|
214664
214678
|
const buttons = [];
|
|
214665
214679
|
arr4(st2.items).map(obj20).forEach((item2, i2) => {
|
|
214666
214680
|
if (item2.isHidden === true || !str16(item2.text).trim()) return;
|
|
214667
214681
|
if (item2.type === "button") {
|
|
214668
214682
|
if (tap) buttons.push(node3(`${id}.b${i2}`, "Button", { title: str16(item2.text).trim(), style: "primary", size: "md", fullWidth: false, action: tap }));
|
|
214669
|
-
else ctx.gap(elementId,
|
|
214670
|
-
} else if (
|
|
214671
|
-
|
|
214683
|
+
else ctx.gap(elementId, type2, `the banner button "${str16(item2.text).trim()}" is left out: it has no action the app can run`);
|
|
214684
|
+
} else if (onPicture) {
|
|
214685
|
+
const color = bannerTextColor(item2.color), authored2 = str16(item2.color).trim();
|
|
214686
|
+
if (authored2 && !BANNER_HEX.test(authored2)) ctx.gap(elementId, type2, `the banner text "${str16(item2.text).trim()}" has a color the app cannot read (${JSON.stringify(authored2)}); it is drawn white on the picture`);
|
|
214687
|
+
texts.push(bannerText(`${id}.t${i2}`, str16(item2.text).trim(), bannerTextStyle(item2), align, color));
|
|
214688
|
+
} else texts.push(text10(`${id}.t${i2}`, str16(item2.text).trim(), bannerTextStyle(item2), { textAlign: align }, { fillMaxWidth: true }));
|
|
214672
214689
|
});
|
|
214673
214690
|
const tapped = tap ? { onTap: tap } : {};
|
|
214674
|
-
if (!
|
|
214675
|
-
const parts = [...texts, ...buttons];
|
|
214676
|
-
return parts.length ? vstack(`${id}.box`, parts, 8, { ...inset(8, 8), ...tapped }, align
|
|
214691
|
+
if (!onPicture) {
|
|
214692
|
+
const parts = [...picture ? [picture] : [], ...texts, ...buttons];
|
|
214693
|
+
return parts.length ? vstack(`${id}.box`, parts, 8, { ...inset(8, 8), ...tapped }, align) : null;
|
|
214677
214694
|
}
|
|
214678
214695
|
const words = texts.length ? [vstack(`${id}.texts`, texts, 4, { fillMaxWidth: true }, align)] : [];
|
|
214679
214696
|
const over = vstack(`${id}.over`, [...words, ...buttons], 12, { fillMaxWidth: true, padding: { leading: 16, trailing: 16, top: 16, bottom: 16 } }, align);
|
|
214680
|
-
const vertical =
|
|
214697
|
+
const vertical = verticalAlign === "top" || verticalAlign === "bottom" ? { verticalAlignment: verticalAlign } : {};
|
|
214681
214698
|
return vstack(`${id}.box`, [node3(`${id}.stack`, "ZStack", { alignment: align, ...vertical, children: [picture, over] }, { fillMaxWidth: true })], 0, { ...inset(8, 8), ...tapped });
|
|
214682
214699
|
},
|
|
214683
214700
|
// A web page inside the screen. The source sizes it to its content; a fixed height is the nearest fixed equivalent.
|
|
@@ -308547,6 +308564,11 @@ var init_site_properties = __esm({
|
|
|
308547
308564
|
});
|
|
308548
308565
|
|
|
308549
308566
|
// src/site-analyze/derive.ts
|
|
308567
|
+
function aboutFromCrawl(about, crawlComplete) {
|
|
308568
|
+
const text32 = bounded(oneLine2(about), ABOUT_MAX_LENGTH);
|
|
308569
|
+
if (!text32 && !crawlComplete) return void 0;
|
|
308570
|
+
return text32;
|
|
308571
|
+
}
|
|
308550
308572
|
function deriveAppName(ctx, override) {
|
|
308551
308573
|
return clean3(override) || clean3(ctx.identity.businessName) || clean3(ctx.identity.siteDisplayName) || "My Business";
|
|
308552
308574
|
}
|
|
@@ -308652,6 +308674,10 @@ function deriveTailoring(ctx, overrides = {}, revision = "site-derived") {
|
|
|
308652
308674
|
appName: appName2,
|
|
308653
308675
|
businessName: clean3(ctx.identity.businessName) || appName2,
|
|
308654
308676
|
tagline: clean3(overrides.tagline) || clean3(ctx.identity.description),
|
|
308677
|
+
// Present even when empty: an absent key would inherit the shell's About text. `analyzeSite`
|
|
308678
|
+
// fills it from the crawl's About section (`aboutFromCrawl`), or drops the key when the crawl
|
|
308679
|
+
// could not tell. The description already shows as the tagline.
|
|
308680
|
+
about: "",
|
|
308655
308681
|
// "" means UNKNOWN here, with `missing` above as the signal — the published overlay's
|
|
308656
308682
|
// documented shape. Keeping an unknown url out of a MERGE is `apply.ts`'s job, at the
|
|
308657
308683
|
// seam where an empty string would otherwise beat the shell's committed value.
|
|
@@ -308664,7 +308690,7 @@ function deriveTailoring(ctx, overrides = {}, revision = "site-derived") {
|
|
|
308664
308690
|
}
|
|
308665
308691
|
function bounded(s5, max) {
|
|
308666
308692
|
if (s5.length <= max) return s5;
|
|
308667
|
-
const cut2 = s5.slice(0, max - 1);
|
|
308693
|
+
const cut2 = s5.slice(0, max - 1).replace(/[\uD800-\uDBFF]$/, "");
|
|
308668
308694
|
const space = cut2.lastIndexOf(" ");
|
|
308669
308695
|
return `${(space > max * 0.6 ? cut2.slice(0, space) : cut2).trimEnd()}\u2026`;
|
|
308670
308696
|
}
|
|
@@ -308713,12 +308739,13 @@ function deriveStaticGalleries(pages2) {
|
|
|
308713
308739
|
}
|
|
308714
308740
|
return galleries;
|
|
308715
308741
|
}
|
|
308716
|
-
var clean3, ID_MAX, NAME_MAX, TYPE_MAX, CONTROL_CHARS2, HAS_CONTROL_CHAR, plain4, shown2, STATIC_FAQ_LIMITS, oneLine2, STATIC_GALLERY_LIMITS;
|
|
308742
|
+
var clean3, ABOUT_MAX_LENGTH, ID_MAX, NAME_MAX, TYPE_MAX, CONTROL_CHARS2, HAS_CONTROL_CHAR, plain4, shown2, STATIC_FAQ_LIMITS, oneLine2, STATIC_GALLERY_LIMITS;
|
|
308717
308743
|
var init_derive = __esm({
|
|
308718
308744
|
"src/site-analyze/derive.ts"() {
|
|
308719
308745
|
init_define_HHP_CATALOG();
|
|
308720
308746
|
init_types2();
|
|
308721
308747
|
clean3 = (s5) => (s5 ?? "").trim();
|
|
308748
|
+
ABOUT_MAX_LENGTH = 1e3;
|
|
308722
308749
|
ID_MAX = 256;
|
|
308723
308750
|
NAME_MAX = 120;
|
|
308724
308751
|
TYPE_MAX = 80;
|
|
@@ -309750,6 +309777,9 @@ async function analyzeSite(input, ports) {
|
|
|
309750
309777
|
if (Object.keys(book.copy.suggestedCopyKeys).length) {
|
|
309751
309778
|
plan.provisioning.copy = { ...book.copy.suggestedCopyKeys };
|
|
309752
309779
|
}
|
|
309780
|
+
const about = aboutFromCrawl(book.copy.about, book.look.complete === true);
|
|
309781
|
+
if (about === void 0) delete plan.provisioning.identity.about;
|
|
309782
|
+
else plan.provisioning.identity.about = about;
|
|
309753
309783
|
plan.provisioning.cmsCollections = adoptedCms.collections;
|
|
309754
309784
|
const screenshots = [];
|
|
309755
309785
|
const warnings = identity.source === "crawl" ? [guessedNameWarning(plan.provisioning.identity.appName, crawledTitle, ownerLookupError)] : [];
|
|
@@ -310326,8 +310356,10 @@ function mergeCustomerOwned(committed, overlay, opts = {}) {
|
|
|
310326
310356
|
function carryFromLastApply(previous, overlay) {
|
|
310327
310357
|
if (!plainObject(previous) || !sameKnownSite(previous, overlay)) return overlay;
|
|
310328
310358
|
const photoFunction = plainObject(previous.wix) ? previous.wix.memberPhotoUploadFunction : void 0;
|
|
310359
|
+
const about = plainObject(previous.identity) ? previous.identity.about : void 0;
|
|
310329
310360
|
return {
|
|
310330
310361
|
...overlay,
|
|
310362
|
+
...plainObject(overlay.identity) && overlay.identity.about === void 0 && typeof about === "string" ? { identity: { ...overlay.identity, about } } : {},
|
|
310331
310363
|
...overlay.businessContact === void 0 ? { businessContact: previous.businessContact } : {},
|
|
310332
310364
|
...overlay.loyalty === void 0 ? { loyalty: previous.loyalty } : {},
|
|
310333
310365
|
...overlay.businessTimeZone === void 0 ? { businessTimeZone: previous.businessTimeZone } : {},
|
|
@@ -310617,6 +310649,7 @@ async function applyOverlays(input) {
|
|
|
310617
310649
|
else if (!sameKnownSite(cur, overlay)) delete merged.loyalty;
|
|
310618
310650
|
if (overlay.businessTimeZone !== void 0) merged.businessTimeZone = overlay.businessTimeZone;
|
|
310619
310651
|
else if (!sameKnownSite(cur, overlay)) delete merged.businessTimeZone;
|
|
310652
|
+
if (overlay.identity?.about === void 0 && plainObject(merged.identity) && !sameKnownSite(cur, overlay)) delete merged.identity.about;
|
|
310620
310653
|
packageFaq = merged.faq;
|
|
310621
310654
|
packageGalleries = merged.galleries;
|
|
310622
310655
|
if (recordSite) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2012.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": "b3dba201007bb28e9f107d20e4d51f8929be3d71d505bed66586d8a7"
|
|
86
86
|
}
|