@wix/himalaya-cli 0.1805.0 → 0.1806.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/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{d15aa564eeca6cc0a76949e33f7a1319f9c75f1964bdf19a6a3fd7b7740768ee.bin → 09e39aeb032cda05611bd7c888d3ae818f2fa89fc69705221b2dfcdf5ce5d704.bin} +1 -1
- package/dist/browser-plane/sw.js +8 -8
- package/dist/cli.mjs +55 -41
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/designing-himi-screens.md +9 -7
- package/guides/ios-ux.md +1 -1
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -138068,7 +138068,7 @@ function renderInner(node3, ctx, boundMotion) {
|
|
|
138068
138068
|
switch (type2) {
|
|
138069
138069
|
// ───────────── layout ─────────────
|
|
138070
138070
|
case "VStack":
|
|
138071
|
-
return /* @__PURE__ */ jsx14("div", { style: { display: "flex", flexDirection: "column", gap: gap(props2.spacing), alignItems: alignItems(props2.alignment), alignSelf: "stretch", ...wrap }, children:
|
|
138071
|
+
return /* @__PURE__ */ jsx14("div", { style: { display: "flex", flexDirection: "column", gap: gap(props2.spacing), alignItems: alignItems(props2.alignment), alignSelf: "stretch", ...columnPlaceStyle(ctx.columnPlace), ...wrap }, children: columnKids(swipeTabsAdoption(props2.children), ctx, props2.alignment) });
|
|
138072
138072
|
case "HStack": {
|
|
138073
138073
|
const rowFills = Array.isArray(props2.children) && props2.children.some((c2) => {
|
|
138074
138074
|
const n2 = normalize2(c2);
|
|
@@ -138809,7 +138809,7 @@ function listSeparatorStyle(separator, horizontal) {
|
|
|
138809
138809
|
const insetLeading = Math.max(0, Number(s5.insetLeading ?? s5.inset_leading ?? 0) || 0);
|
|
138810
138810
|
return { token, thickness, insetLeading };
|
|
138811
138811
|
}
|
|
138812
|
-
var AppearanceActionContext, rowValue, loadPdfFetch, WebViewBridgeHost2, useIsomorphicLayoutEffect3, GridColumnsContext, GridBoundList, GRID_SPAN_ALL, ResponsiveGrid, MasonryCells, SPLIT_EXPANDED_MIN_WIDTH, SPLIT_COLUMN_GAP, ResponsiveSplitView, appearKeyframesInjected, valueSwapKeyframesInjected, NUMERIC_TEXT, shimmerKeyframesInjected, APPEAR_KEYFRAMES, linkedEntranceKeyframesInjected, pressStylesInjected, REVEAL_ON_FOCUS_ATTR, FOCUS_RING_CSS, focusStylesInjected, HLIST_CHILD_CSS, hListStylesInjected, listAnimateRuntimeInstalled, transitionKeyframesInjected, ENTER_KEYFRAMES, countUpRuntimeInjected, MEASURE_PREFIX, measureRuntimeInjected, revealRuntimeInjected, AMBIENT_HOST_STYLE, AmbientMotionBox, vectorAnimStylesInjected, scrollProgressRuntimeInjected, scrollLinkedRuntime, confettiRuntimeInjected, lottieRuntimeInjected, lottieAssetHeaders, LOTTIE_RUNTIME_ATTRIBUTES, lottieAnims, riveRuntimeInjected, gradientKeyframesInjected, parallaxRuntimeInjected, spinKeyframesInjected, marqueeKeyframesInjected, alignItems, zJustifyItems, fillsZLayer, presentsFromOwnSurface, zLayerIndex, ZFILL_CSS, zFillStylesInjected, hAlignItems, bodyFont, kids2, rowKidCtx, rowKids, staggeredKids, asTextL10n, asFinalTextL10n, asBoundText, useBoundString, asBoundCopy, useBoundCopy, InterpolatedTextView, txt, txtRaw, selectFragmentCase, fragmentValueHash, fragmentSlotContent, FragmentSlotNode, RichContentEditorNode, MediaFieldNode, WorkerSubtreeNode, RichContentNode, substituteItemDeep, resolveItemDeep2, resolveRowAction2, resolveSwipeActions, resolveModBindings, resolvedComponentId, directServiceBindings, withRootStyle, InScreenMorphHost, ReactiveDirectScalars, resolveNodeBoundTransforms, HiddenGate, ExitPresence, StatefulSectionNode, KEYBOARD_INPUT_MODES, AUTOCAPITALIZE_VALUES, ENTER_KEY_HINTS, AUTOGROW_CEILING, EditableField, MENU_ANCHOR_CONTROL, MenuNode, MENU_LONG_PRESS_MS, menuOpensOnLongPress, LoadMoreSentinel, FieldErrorNode, FormView, MediaSlotProvider, MEDIA_ITEM_BINDABLE, MediaPlayerView, VideoNode, PdfDocumentCanvas, PdfViewNode, WebViewNode, InteractivePicker, InteractiveDatePicker, InteractiveSearchField, InteractiveStepper, NODE_EXTRAS_TARGET, SYNTHETIC_TAP_ROLE, SYNTHETIC_TABINDEX, INFERRED_DECORATIVE, SELF_RENDERED_LEAF, ROLE_WHEN_NAMED, AUTHORED_ROLE, PENDING_RANGE, RANGE_ROLES, NODE_A11Y_ATTRS, INTERACTIVE_ROLES, ALWAYS_INTERACTIVE_COMPONENT_TYPES, TAP_ACTIVATOR_ATTR, TAP_GROUP_ATTR, NESTED_CONTROL_SELECTOR, VISUALLY_HIDDEN, NAME_SKIP_SELECTOR, activatorNameObservers, ACTIVATOR_STATE_ATTRS, controlNode, ToggleNode, SliderNode, SelectionControlNode, TabsNode, SegmentedControlNode, DisclosureGroupNode, GridNode, SplitViewNode, REVEAL_RELEASE_MS, REVEAL_FADE_MS, REVEAL_BUFFER, revealProgress, countWords, RevealText, TextNode, ImageNode, ANIMATION_LEAF, LottieNode, RiveNode, AvatarNode, IconNode, EMPTY_STATE_SPACING, EmptyStateNode, ERROR_STATE_VARIANTS, ERROR_STATE_SPACING, ErrorStateNode, ButtonNode, OtpInputNode, ProgressBarNode, SnackbarNode, ACTIVITY_DEFAULT_NAME, ACTIVITY_RING_ARC, ActivityIndicatorNode, NATIVELY_TABBABLE, BottomSheetNode, BOTTOM_DRAWER_HOST_STACK_EVENT, ModalBottomSheetNode, BottomDrawerNode, PRESENTED_OVERLAY_ATTR, TooltipNode, PopoverNode, ChipsInputNode, ChipNode, TableNode, GaugeRing, GaugeNode, RATING_METRICS, ratingMetrics, RatingNode, AvatarStripNode, CHART_STROKE_CYCLE, chartStrokeAt, chartBarCenter, ChartNode, donutSliceOpacity, DonutChartNode, QrCodeNode, ShapeNode, LegendMarker, LegendNode, cellAlign, dataTableProbe, DataTableNode, voiceNoteState, voiceNoteDelivery, VOICE_NOTE_DEFAULT_BARS, clampBarCount, VoiceNoteNode, LiveWaveformNode, PageControlNode, TimelineNode, ECHO_WINDOW_MS, heldPageIndex, LiveWindowMeasured, LiveWindowPage, PagingNode, WheelPickerNode, ColorPickerNode, FilterChipsNode, TILE_PX, MAX_MERCATOR_LAT, DEFAULT_TILE_MAX_ZOOM, CIRCLE_SEGMENTS, METRES_PER_DEG_LAT, MARKER_HIT_RADIUS, SHAPE_HIT_RADIUS, MapNode, CAROUSEL_SETTLE_MS, railScrollLeft, carouselScrollLeft, scrollCarouselTo, CarouselNode, BannerNode, CollapsingHeaderNode, UnsupportedOnSurface, CALENDAR_DATE_ONLY_RE, CAL_DEFAULT_MAX_DOTS, CAL_AGENDA_INITIAL_DAYS, CAL_AGENDA_PAGE_DAYS, CAL_DEFAULT_SNAP_MINUTES, CAL_UNASSIGNED_LANE_ID, MonthCalendarNode, TimeGridNode, AgendaNode, ARIA_ROLE, initialFocusScheduled, PRESENTED_SCOPE, focusRoots, A11yHintDescription, rowRenderers, railRowFrame, renderRailRow, RowAnchors, reportedUnknownComponents, UnknownComponentNode, WebRenderer, ScrollIntoViewNode;
|
|
138812
|
+
var AppearanceActionContext, rowValue, loadPdfFetch, WebViewBridgeHost2, useIsomorphicLayoutEffect3, GridColumnsContext, GridBoundList, GRID_SPAN_ALL, ResponsiveGrid, MasonryCells, SPLIT_EXPANDED_MIN_WIDTH, SPLIT_COLUMN_GAP, ResponsiveSplitView, appearKeyframesInjected, valueSwapKeyframesInjected, NUMERIC_TEXT, shimmerKeyframesInjected, APPEAR_KEYFRAMES, linkedEntranceKeyframesInjected, pressStylesInjected, REVEAL_ON_FOCUS_ATTR, FOCUS_RING_CSS, focusStylesInjected, HLIST_CHILD_CSS, hListStylesInjected, listAnimateRuntimeInstalled, transitionKeyframesInjected, ENTER_KEYFRAMES, countUpRuntimeInjected, MEASURE_PREFIX, measureRuntimeInjected, revealRuntimeInjected, AMBIENT_HOST_STYLE, AmbientMotionBox, vectorAnimStylesInjected, scrollProgressRuntimeInjected, scrollLinkedRuntime, confettiRuntimeInjected, lottieRuntimeInjected, lottieAssetHeaders, LOTTIE_RUNTIME_ATTRIBUTES, lottieAnims, riveRuntimeInjected, gradientKeyframesInjected, parallaxRuntimeInjected, spinKeyframesInjected, marqueeKeyframesInjected, alignItems, zJustifyItems, fillsZLayer, presentsFromOwnSurface, zLayerIndex, ZFILL_CSS, zFillStylesInjected, hAlignItems, bodyFont, kids2, columnKids, columnPlaceStyle, rowKidCtx, rowKids, staggeredKids, asTextL10n, asFinalTextL10n, asBoundText, useBoundString, asBoundCopy, useBoundCopy, InterpolatedTextView, txt, txtRaw, selectFragmentCase, fragmentValueHash, fragmentSlotContent, FragmentSlotNode, RichContentEditorNode, MediaFieldNode, WorkerSubtreeNode, RichContentNode, substituteItemDeep, resolveItemDeep2, resolveRowAction2, resolveSwipeActions, resolveModBindings, resolvedComponentId, directServiceBindings, withRootStyle, InScreenMorphHost, ReactiveDirectScalars, resolveNodeBoundTransforms, HiddenGate, ExitPresence, StatefulSectionNode, KEYBOARD_INPUT_MODES, AUTOCAPITALIZE_VALUES, ENTER_KEY_HINTS, AUTOGROW_CEILING, EditableField, MENU_ANCHOR_CONTROL, MenuNode, MENU_LONG_PRESS_MS, menuOpensOnLongPress, LoadMoreSentinel, FieldErrorNode, FormView, MediaSlotProvider, MEDIA_ITEM_BINDABLE, MediaPlayerView, VideoNode, PdfDocumentCanvas, PdfViewNode, WebViewNode, InteractivePicker, InteractiveDatePicker, InteractiveSearchField, InteractiveStepper, NODE_EXTRAS_TARGET, SYNTHETIC_TAP_ROLE, SYNTHETIC_TABINDEX, INFERRED_DECORATIVE, SELF_RENDERED_LEAF, ROLE_WHEN_NAMED, AUTHORED_ROLE, PENDING_RANGE, RANGE_ROLES, NODE_A11Y_ATTRS, INTERACTIVE_ROLES, ALWAYS_INTERACTIVE_COMPONENT_TYPES, TAP_ACTIVATOR_ATTR, TAP_GROUP_ATTR, NESTED_CONTROL_SELECTOR, VISUALLY_HIDDEN, NAME_SKIP_SELECTOR, activatorNameObservers, ACTIVATOR_STATE_ATTRS, controlNode, ToggleNode, SliderNode, SelectionControlNode, TabsNode, SegmentedControlNode, DisclosureGroupNode, GridNode, SplitViewNode, REVEAL_RELEASE_MS, REVEAL_FADE_MS, REVEAL_BUFFER, revealProgress, countWords, RevealText, TextNode, ImageNode, ANIMATION_LEAF, LottieNode, RiveNode, AvatarNode, IconNode, EMPTY_STATE_SPACING, EmptyStateNode, ERROR_STATE_VARIANTS, ERROR_STATE_SPACING, ErrorStateNode, ButtonNode, OtpInputNode, ProgressBarNode, SnackbarNode, ACTIVITY_DEFAULT_NAME, ACTIVITY_RING_ARC, ActivityIndicatorNode, NATIVELY_TABBABLE, BottomSheetNode, BOTTOM_DRAWER_HOST_STACK_EVENT, ModalBottomSheetNode, BottomDrawerNode, PRESENTED_OVERLAY_ATTR, TooltipNode, PopoverNode, ChipsInputNode, ChipNode, TableNode, GaugeRing, GaugeNode, RATING_METRICS, ratingMetrics, RatingNode, AvatarStripNode, CHART_STROKE_CYCLE, chartStrokeAt, chartBarCenter, ChartNode, donutSliceOpacity, DonutChartNode, QrCodeNode, ShapeNode, LegendMarker, LegendNode, cellAlign, dataTableProbe, DataTableNode, voiceNoteState, voiceNoteDelivery, VOICE_NOTE_DEFAULT_BARS, clampBarCount, VoiceNoteNode, LiveWaveformNode, PageControlNode, TimelineNode, ECHO_WINDOW_MS, heldPageIndex, LiveWindowMeasured, LiveWindowPage, PagingNode, WheelPickerNode, ColorPickerNode, FilterChipsNode, TILE_PX, MAX_MERCATOR_LAT, DEFAULT_TILE_MAX_ZOOM, CIRCLE_SEGMENTS, METRES_PER_DEG_LAT, MARKER_HIT_RADIUS, SHAPE_HIT_RADIUS, MapNode, CAROUSEL_SETTLE_MS, railScrollLeft, carouselScrollLeft, scrollCarouselTo, CarouselNode, BannerNode, CollapsingHeaderNode, UnsupportedOnSurface, CALENDAR_DATE_ONLY_RE, CAL_DEFAULT_MAX_DOTS, CAL_AGENDA_INITIAL_DAYS, CAL_AGENDA_PAGE_DAYS, CAL_DEFAULT_SNAP_MINUTES, CAL_UNASSIGNED_LANE_ID, MonthCalendarNode, TimeGridNode, AgendaNode, ARIA_ROLE, initialFocusScheduled, PRESENTED_SCOPE, focusRoots, A11yHintDescription, rowRenderers, railRowFrame, renderRailRow, RowAnchors, reportedUnknownComponents, UnknownComponentNode, WebRenderer, ScrollIntoViewNode;
|
|
138813
138813
|
var init_renderNode = __esm({
|
|
138814
138814
|
"../../core/web-renderer/src/renderNode.tsx"() {
|
|
138815
138815
|
"use strict";
|
|
@@ -139135,6 +139135,20 @@ var init_renderNode = __esm({
|
|
|
139135
139135
|
};
|
|
139136
139136
|
bodyFont = (ctx) => fontStack(ctx.font("body").family, ctx.idiom);
|
|
139137
139137
|
kids2 = (arr3, ctx) => Array.isArray(arr3) ? arr3.map((n2, i2) => /* @__PURE__ */ jsx14(React21.Fragment, { children: renderNode(n2, ctx) }, n2?.id ?? i2)) : null;
|
|
139138
|
+
columnKids = (arr3, ctx, alignment) => {
|
|
139139
|
+
const place = alignment === "center" ? "center" : alignment === "trailing" ? layoutIsRTL(ctx) ? "left" : "right" : void 0;
|
|
139140
|
+
if (!place && ctx.columnPlace === void 0) return kids2(arr3, ctx);
|
|
139141
|
+
if (!Array.isArray(arr3)) return null;
|
|
139142
|
+
const plain4 = ctx.columnPlace === void 0 ? ctx : derivedContext(ctx, "columnPlace:none", () => ({ ...ctx, columnPlace: void 0 }));
|
|
139143
|
+
const placed = place ? derivedContext(plain4, `columnPlace:${place}`, () => ({ ...plain4, columnPlace: place })) : void 0;
|
|
139144
|
+
return arr3.map((n2, i2) => {
|
|
139145
|
+
const norm3 = placed && n2 && typeof n2 === "object" ? normalize2(n2) : void 0;
|
|
139146
|
+
const mw = Number(norm3?.modifiers?.maxWidth ?? norm3?.modifiers?.max_width ?? 0);
|
|
139147
|
+
const c2 = placed && norm3?.type === "VStack" && mw > 0 ? placed : plain4;
|
|
139148
|
+
return /* @__PURE__ */ jsx14(React21.Fragment, { children: renderNode(n2, c2) }, n2?.id ?? i2);
|
|
139149
|
+
});
|
|
139150
|
+
};
|
|
139151
|
+
columnPlaceStyle = (place) => place === "center" ? { width: "100%", marginLeft: "auto", marginRight: "auto" } : place === "right" ? { width: "100%", marginLeft: "auto" } : place === "left" ? { width: "100%", marginRight: "auto" } : {};
|
|
139138
139152
|
rowKidCtx = (n2, ctx) => wantsRowStretch(n2) ? { ...ctx, rowStretch: true } : normalize2(n2).type === "Divider" ? { ...ctx, rowDivider: true } : ctx;
|
|
139139
139153
|
rowKids = (arr3, ctx) => Array.isArray(arr3) ? arr3.map((n2, i2) => /* @__PURE__ */ jsx14(React21.Fragment, { children: renderNode(n2, rowKidCtx(n2, ctx)) }, n2?.id ?? i2)) : null;
|
|
139140
139154
|
staggeredKids = (arr3, ctx, staggerMs) => Array.isArray(arr3) ? arr3.map((n2, i2) => {
|
|
@@ -252616,52 +252630,52 @@ var init_preview_assets_generated = __esm({
|
|
|
252616
252630
|
init_define_HHP_CATALOG();
|
|
252617
252631
|
init_preview_assets_format();
|
|
252618
252632
|
PREVIEW_ASSET_MANIFEST = [
|
|
252619
|
-
{ key: "assets/DashboardHost-
|
|
252620
|
-
{ key: "assets/DevDrawer-
|
|
252621
|
-
{ key: "assets/IdiomCompare-
|
|
252622
|
-
{ key: "assets/LightboxViewer-
|
|
252623
|
-
{ key: "assets/OfflineReadingBar-
|
|
252624
|
-
{ key: "assets/PhonePreviewControl-
|
|
252625
|
-
{ key: "assets/SchemeCompare-
|
|
252626
|
-
{ key: "assets/WixFrogTelemetrySink-
|
|
252633
|
+
{ key: "assets/DashboardHost-B7GBs0ye.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2985, sha256: "c5220394dbfcc3f47459b511e6496fc4fa5fb4df381cd2a945e0a6a4dc24595e" },
|
|
252634
|
+
{ key: "assets/DevDrawer-BjSMNwif.js", contentType: "application/javascript; charset=utf-8", offset: 2993, length: 16783, sha256: "ceb033cc67cdf0e90c3da16cce459cc52c28d90bd337cea9c378eb03d36f8781" },
|
|
252635
|
+
{ key: "assets/IdiomCompare-DPMa6wH-.js", contentType: "application/javascript; charset=utf-8", offset: 19776, length: 1926, sha256: "b74cb17f8eb0461742d32d03021404fd4a137ff8f28116d02058e8d5393248f0" },
|
|
252636
|
+
{ key: "assets/LightboxViewer-DhN8xOkH.js", contentType: "application/javascript; charset=utf-8", offset: 21702, length: 17382, sha256: "982f52f676ac24cfae3f0c9c4d9c2293a7f5b0b5203acd7a95561d63dc59c8b0" },
|
|
252637
|
+
{ key: "assets/OfflineReadingBar-lcIdnxPU.js", contentType: "application/javascript; charset=utf-8", offset: 39084, length: 1646, sha256: "270685051039469fd75e107471a9216954c83366bd8d253a5cc6fc11b5da85e9" },
|
|
252638
|
+
{ key: "assets/PhonePreviewControl-bYT3XIuG.js", contentType: "application/javascript; charset=utf-8", offset: 40730, length: 37851, sha256: "3b2287dee0e568ecdb0fbfdf656723169ac4b69be562470ac5afb36e8167d11a" },
|
|
252639
|
+
{ key: "assets/SchemeCompare-CxqAnscH.js", contentType: "application/javascript; charset=utf-8", offset: 78581, length: 1858, sha256: "6fc6ab26e6f890dc30a5fda95a34772155bac27a7a117c852a2334dacb0800cb" },
|
|
252640
|
+
{ key: "assets/WixFrogTelemetrySink-db1BpbHu.js", contentType: "application/javascript; charset=utf-8", offset: 80439, length: 3515, sha256: "5c7dce407117eca5cdc798d965304a486258bd3131f3b8b65c5c10e50fd1aba9" },
|
|
252627
252641
|
{ key: "assets/calendar-ics-BvfIYWjG.js", contentType: "application/javascript; charset=utf-8", offset: 83954, length: 2192, sha256: "1636167041e9829ceccd3544297b86b8475c38bd2f759c4dbc17c813dc6e9254" },
|
|
252628
252642
|
{ key: "assets/catalog-B4UJpy5D.js", contentType: "application/javascript; charset=utf-8", offset: 86146, length: 35626, sha256: "90111ffcf2d13eff399836acafd1f2b387859440a29dcd4a0afd8370915992cb" },
|
|
252629
|
-
{ key: "assets/catalogFontFaces-
|
|
252643
|
+
{ key: "assets/catalogFontFaces-DdHY8mw4.js", contentType: "application/javascript; charset=utf-8", offset: 121772, length: 1111, sha256: "de12700c12c11bd3460cc68f6732fbc32e79b8caa86d71e9c85974d75b6320fe" },
|
|
252630
252644
|
{ key: "assets/contacts-vcard-BcohPQ0m.js", contentType: "application/javascript; charset=utf-8", offset: 122883, length: 2567, sha256: "c4ff75e96cd909bbb9182c5dc78794fcebc65139fbddef2537711d774fb33ad0" },
|
|
252631
|
-
{ key: "assets/files-transfer-
|
|
252645
|
+
{ key: "assets/files-transfer-ComLvevj.js", contentType: "application/javascript; charset=utf-8", offset: 125450, length: 6446, sha256: "9cdae7a2dee9a2336285690d573df32a34e1576eab9a3a1319f39f4c0a6d0efc" },
|
|
252632
252646
|
{ key: "assets/frogActionMap-CTMe3Bz1.js", contentType: "application/javascript; charset=utf-8", offset: 131896, length: 1172, sha256: "9f1ce4c70a680dfb902949e1f482c7e47500b69c3350cd091b1b51d674032d53" },
|
|
252633
|
-
{ key: "assets/frogApiRules-
|
|
252647
|
+
{ key: "assets/frogApiRules-Dmb4ZVpt.js", contentType: "application/javascript; charset=utf-8", offset: 133068, length: 2207, sha256: "697c521a4a26d8dbea981fae28604cd1ff29a07dbef10e896cca762443fc2473" },
|
|
252634
252648
|
{ key: "assets/frogScreenMap-S_IRnz20.js", contentType: "application/javascript; charset=utf-8", offset: 135275, length: 1067, sha256: "22b2f71e1b06df8f1e79b890d47fe42e983d37865c2cc9be753e4121764c91e1" },
|
|
252635
252649
|
{ key: "assets/glassPreviewBrowser-DONaOehd.js", contentType: "application/javascript; charset=utf-8", offset: 136342, length: 6578, sha256: "4402c4cddd2a564e7466cdf1e12a0e0277c0400b288e1e5eda1d23e797599d31" },
|
|
252636
252650
|
{ key: "assets/image-preparation-Cj4gldm6.js", contentType: "application/javascript; charset=utf-8", offset: 142920, length: 2704, sha256: "32944ea587c2f3b84389b66b50a850437560238f1c8d33b6275973ee04eee865" },
|
|
252637
|
-
{ key: "assets/index-
|
|
252638
|
-
{ key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
252639
|
-
{ key: "assets/on-device-ml-D5QGvW8P.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
252640
|
-
{ key: "assets/pdf-
|
|
252641
|
-
{ key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
252642
|
-
{ key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset:
|
|
252643
|
-
{ key: "assets/pdfDocument-
|
|
252644
|
-
{ key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
252645
|
-
{ key: "assets/scrollLinkedRuntime-
|
|
252646
|
-
{ key: "assets/webviewBridgeHost-
|
|
252647
|
-
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset:
|
|
252648
|
-
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset:
|
|
252649
|
-
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset:
|
|
252650
|
-
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
252651
|
-
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset:
|
|
252652
|
-
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset:
|
|
252653
|
-
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
252654
|
-
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset:
|
|
252655
|
-
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
252656
|
-
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset:
|
|
252657
|
-
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset:
|
|
252658
|
-
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
252659
|
-
{ key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
252660
|
-
{ key: "index.html", contentType: "text/html; charset=utf-8", offset:
|
|
252661
|
-
{ key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset:
|
|
252662
|
-
{ key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset:
|
|
252663
|
-
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset:
|
|
252664
|
-
{ key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset:
|
|
252651
|
+
{ key: "assets/index-CAM0Nvwa.js", contentType: "application/javascript; charset=utf-8", offset: 145624, length: 1609032, sha256: "9d3722460be67e0537b8ff27ff4102ebb7759726851e0f2f14a4da7ebaec4b35" },
|
|
252652
|
+
{ key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset: 1754656, length: 7751, sha256: "42a78b508d0f309f6a4a6efbb8669015211b3c26574c5b0929884c4d9d20b806" },
|
|
252653
|
+
{ key: "assets/on-device-ml-D5QGvW8P.js", contentType: "application/javascript; charset=utf-8", offset: 1762407, length: 10531, sha256: "914ea54d973624e7bc82d1847444f26084ac16d69be3051b4b5938b1e35beced" },
|
|
252654
|
+
{ key: "assets/pdf-7xBOEFOJ.js", contentType: "application/javascript; charset=utf-8", offset: 1772938, length: 488215, sha256: "09e39aeb032cda05611bd7c888d3ae818f2fa89fc69705221b2dfcdf5ce5d704" },
|
|
252655
|
+
{ key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset: 2261153, length: 90, sha256: "521a0e528916d678d7588b2cddf3dadd3bb959a6d62426382f61c77a82017e35" },
|
|
252656
|
+
{ key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2261243, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
|
|
252657
|
+
{ key: "assets/pdfDocument-CuI2VKxJ.js", contentType: "application/javascript; charset=utf-8", offset: 3578277, length: 3470, sha256: "cd417c2dc9f1b8a5df1ecd6eefd28b19ba072825913be6233ff86aec6b3de109" },
|
|
252658
|
+
{ key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3581747, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
|
|
252659
|
+
{ key: "assets/scrollLinkedRuntime-BDlEz8ae.js", contentType: "application/javascript; charset=utf-8", offset: 3584013, length: 2278, sha256: "bd8fc18e85bb5ab9bf88dbf64fb8be6ad11199408bb8e256c2a05dae219109bc" },
|
|
252660
|
+
{ key: "assets/webviewBridgeHost-C5hR2IjR.js", contentType: "application/javascript; charset=utf-8", offset: 3586291, length: 9889, sha256: "075c828aa830e52ea10ad3fec0f98fc2e93ec3253193ba49bf14f0259952ef08" },
|
|
252661
|
+
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3596180, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
|
|
252662
|
+
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3600790, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
|
|
252663
|
+
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 4089374, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
|
|
252664
|
+
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 4180298, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
|
|
252665
|
+
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4271282, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
|
|
252666
|
+
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4362262, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
|
|
252667
|
+
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4453134, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
|
|
252668
|
+
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4544114, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
|
|
252669
|
+
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4652750, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
|
|
252670
|
+
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4761834, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
|
|
252671
|
+
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4870882, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
|
|
252672
|
+
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 4978582, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
|
|
252673
|
+
{ key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 5066690, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
|
|
252674
|
+
{ key: "index.html", contentType: "text/html; charset=utf-8", offset: 5073508, length: 4924, sha256: "6e3306d8734604884fbf3fd649d0782ea947a19577385d849bae910244c472bd" },
|
|
252675
|
+
{ key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 5078432, length: 11457, sha256: "6cb2b75264fa5fa2b4d28851878a5eab0712900e8b3a6c2370cc661d6d820805" },
|
|
252676
|
+
{ key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 5089889, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
|
|
252677
|
+
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 5091060, length: 24303, sha256: "7ee3dbacf4e6da69c1c7085a2423e33e2adaec933cd897fb2ee2391e3277c3ae" },
|
|
252678
|
+
{ key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 5115363, length: 24320, sha256: "d24f399a1fcfa7f696a0d96aadbc983d2624b45712dae9a15545f6914dbb9506" }
|
|
252665
252679
|
];
|
|
252666
252680
|
}
|
|
252667
252681
|
});
|
|
Binary file
|
|
@@ -62,8 +62,8 @@ they decide what a phone screen looks like, and this guide decides how to compos
|
|
|
62
62
|
reaches 44, or use an `iconOnly` `Button` (`himi validate` warns: `touch_target_too_small`).
|
|
63
63
|
- **A wide surface gets its own layout, not the phone one stretched.** Do not count on the host
|
|
64
64
|
to narrow the screen: a tablet shows it full bleed at every width, and a `splitView` goes side
|
|
65
|
-
by side from
|
|
66
|
-
|
|
65
|
+
by side only from 840 points, so a tablet in portrait (an 834-point iPad, a 600 to 839dp Android
|
|
66
|
+
tablet) still shows it stacked. From the medium width (600 points: an
|
|
67
67
|
iPad or an Android tablet in portrait), each kind of screen changes shape itself:
|
|
68
68
|
- Photo tiles add columns (`columnsMedium: 3`, `columnsExpanded: 4`).
|
|
69
69
|
- A short, bounded set of rows (a day's schedule, a menu, a few sessions) becomes
|
|
@@ -78,10 +78,12 @@ they decide what a phone screen looks like, and this guide decides how to compos
|
|
|
78
78
|
splits from 600 on every platform.
|
|
79
79
|
- A short, bounded screen (a cart, a form, sign-in, settings) splits its parts with the same
|
|
80
80
|
grid: the items beside the order summary, the fields beside the explanation or the art, one
|
|
81
|
-
settings section beside the next. Do not centre a capped column with spacers
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
81
|
+
settings section beside the next. Do not centre a capped column with spacers: on iOS the
|
|
82
|
+
spacers take two thirds of the row and the column gets the rest. A `maxWidth` `vstack` inside a
|
|
83
|
+
`center` column is centred on iOS, macOS, Android and the web; on the web only a `vstack` is,
|
|
84
|
+
so put a capped card or row inside one. React Native leaves it at the leading edge. A long or paged list (a chat list, a feed) stays the scroll root (see Fast screens
|
|
85
|
+
below), with its rows at full width and the time or count in `trailing`, as Mail and Messages
|
|
86
|
+
draw a list on a tablet. That is the wide layout for it, not a stretched phone layout.
|
|
85
87
|
|
|
86
88
|
Render `--device tablet` (834 points) and `--device desktop` and look for a half of the screen
|
|
87
89
|
with nothing in it, or a row whose price sits a screen's width from its name. Space below
|
|
@@ -432,7 +434,7 @@ Concrete patterns lifted from real usage:
|
|
|
432
434
|
- **Photo tile** — `vstack({ spacing: 6, alignment: "leading", children: [ image({ url, fillWidth: true, aspectRatio: 0.8, contentMode: "fill", placeholder: "surfaceSecondary", contentDescription }) + cornerRadius 8, text(name, "body"), text(price, "callout", { color: "textSecondary" }) ] })` with `modifiers.onTap` on the stack, inside `grid({ columns: 2, columnsMedium: 3, columnsExpanded: 4, spacing: 12 })`. A shelf is the same tile at a fixed `width` (about 110) in `lazyList({ horizontal: true, spacing: 12 })`.
|
|
433
435
|
- **A website page with native UI around it** — `vstack({ children: [ header, sitePage(site, { path: "/book-online" }), stickyBar ] })`, where `site` is the app's `site` block (a `SiteShellConfig`) and `sitePage` comes from `@wix/himalaya/sdui`. It emits a `WebView` with `role: "primary"`, `fill`, its own scrolling, `modifiers.weight: 1` and the site preset as its config (the same URL and behaviour a site-shell tab gets; `webView: { … }` overrides it). `title` becomes the page's accessible name (`modifiers.accessibilityLabel`, which every `WebView` needs); without one the site's host is used. The weight gives the page only the height the header and bar leave. Put it at the screen root or directly in a root `VStack`, `HStack` or `ZStack`, and use one per screen. The validator rejects it inside a `LazyList`, `Pager`, `Carousel` or `CollapsingHeader`, or with its weight removed. A site-shell app already gets this form: `siteScreens(site)` gives each page both forms in one descriptor, the Tier-3 screen every app binary renders plus this tree in `payload`, which a newer binary draws instead. To put native UI around one page of a site-shell app and keep it working on older binaries, use `dualFormSiteScreen(defineSiteTab(site, page), vstack({ children: [ header, sitePage(site, { path: page.path, title: page.title }), stickyBar ] }))`. The page inside must load the same URL, with the same config and the same native capability scope (`capabilitiesRequired`), as the Tier-3 screen; `sitePage` scopes a page to no capability, as a site tab is. The validator checks all three (`dual_form_mismatch`), and the screen can carry no `logicBundle`. Older binaries draw only the Tier-3 page, without the header and bar. `siteScreens(site, { form: "node" })` serves the node form alone, for an app whose binaries all support it, and `desugarSiteScreen(descriptor)` converts one Tier-3 site screen. To let native UI follow the page (a cart badge, the page title), give the screen a `logicBundle` that declares `"webview"` and write `sitePage(site, { path, bridge: "worker" })`: the page talks to the worker through `@wix/himalaya/webview-page`, and the worker answers with `@himalaya/webview` ([webview-page-sdk.md](webview-page-sdk.md#a-site-page-that-talks-to-its-screens-worker)). Such a screen carries a worker, so it is a node-form screen (`sdui_layout`), not a dual-form one.
|
|
434
436
|
- **Overlay** — `zstack({ alignment: "center", children: [ backdropImage(cornerRadius 12), withModifiers(label, { padding, background: { token: "accentPrimary" }, cornerRadius: 10 }) ] })`.
|
|
435
|
-
- **Responsive** — `grid({ columns: 1, columnsMedium: 2, spacing: 12 })` for wide cards, 1-up on phone / 2-up on tablet (photo tiles start at 2 on a phone); `splitView({ primary, detail, primaryMaxWidth: 280 })` for master/detail (side by side from
|
|
437
|
+
- **Responsive** — `grid({ columns: 1, columnsMedium: 2, spacing: 12 })` for wide cards, 1-up on phone / 2-up on tablet (photo tiles start at 2 on a phone); `splitView({ primary, detail, primaryMaxWidth: 280 })` for master/detail (side by side from 840 points on iOS, macOS, Android and the web; React Native splits from 600 and shows only the primary pane below that); `contentMaxWidth` in tokens sets the measure only on the web host and in `himi render`; the native Mac window caps content at 920 points whatever it says, and a tablet applies no cap, so a tablet still needs the layout changes above.
|
|
436
438
|
- **Centered separator, not a flanked divider** — the classic "—— or ——" needs each `divider()` to take equal remaining width, and the HStack row-share only kicks in for controls with an intrinsic fill. **A bare `divider()` inside an HStack is a column separator, not a flanking line**: iOS, macOS, Android, web and React Native all draw it as a thin vertical rule the height of the row that takes no share of the width, which is right for a stats row (`12 | 340 | 87`) and wrong for "—— or ——". For "—— or ——", use a **centered caption**: `hstack({ children: [spacer(), text("or continue with", "caption", { color: "textSecondary" }), spacer()] })`, optionally over a single full-width `divider()`.
|
|
437
439
|
|
|
438
440
|
> **Intrinsic-fill controls grab the row.** `Button` and `TextField` have an intrinsic FILL, so the next four idioms are about NOT letting that surprise you (they were the papercuts every off-repo app hit):
|
package/guides/ios-ux.md
CHANGED
|
@@ -45,7 +45,7 @@ Android PNG. That is one descriptor, not a failed render.
|
|
|
45
45
|
| Destructive or blocking decision | An alert, with the destructive button styled as such. | `AlertDialog`, or a `ToolbarItem` with `role: "destructive"`. Confirm or offer undo. | [Alerts](https://developer.apple.com/design/human-interface-guidelines/alerts) |
|
|
46
46
|
| Success | Brief, non-blocking feedback. | `ui.snackbar` from the worker, not an alert. | [Feedback](https://developer.apple.com/design/human-interface-guidelines/feedback) |
|
|
47
47
|
| Search | A search field in the navigation bar. | `topBar.searchable` plus the page's own `SearchField` (or the row that holds it) with `hiddenPath: "$env:topBarSearch"`. The standard app shell draws that field; only a host with a native search handler hides it for the bar. A dedicated search screen when search starts a new task (`himi docs recipe-search`). | [Search fields](https://developer.apple.com/design/human-interface-guidelines/search-fields) |
|
|
48
|
-
| iPad and wide windows | Sidebar or split view for collections; a readable column for reading. | `Grid` `columns: 1, columnsMedium: 2` to put parts side by side from 600 points; `SplitView` (
|
|
48
|
+
| iPad and wide windows | Sidebar or split view for collections; a readable column for reading. | `Grid` `columns: 1, columnsMedium: 2` to put parts side by side from 600 points; `SplitView` only from 840 points (an iPad in landscape; it stacks in portrait). The iPad shell does not apply `contentMaxWidth`, so the screen changes shape itself (`designing-himi-screens`). Render at 834px and record the choice. | [Split views](https://developer.apple.com/design/human-interface-guidelines/split-views) |
|
|
49
49
|
| Type | The system text styles, scaled by Dynamic Type. | Typography tokens from the built-in ramp: `largeTitle`, `title1`–`title3`, `headline`, `body`, `bodyEmphasis`, `callout`, `caption`, `footnote`. No raw sizes. | [Typography](https://developer.apple.com/design/human-interface-guidelines/typography) |
|
|
50
50
|
| Touch targets | At least 44×44 points. | Use `Button`/`ListItem`; do not shrink an icon's hit area below that. | [Accessibility](https://developer.apple.com/design/human-interface-guidelines/accessibility) |
|
|
51
51
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1806.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": "e1a4debf93ec22299dea97df32b7a76d246f37693d3a0373e03e2ec7"
|
|
86
86
|
}
|