@wix/himalaya-cli 0.1752.0 → 0.1754.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.
Files changed (63) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/builder.d.ts +3 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/define-app.d.ts +3 -2
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +5 -0
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/site-shell.d.ts +10 -0
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/validator.d.ts +4 -0
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/online-programs/src/index.d.ts +175 -0
  7. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +108 -0
  8. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +3 -0
  9. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-online-programs.mjs +65 -1
  10. package/dist/browser-plane/assets.json +5 -5
  11. package/dist/browser-plane/preview-deferred/{2671d1cadb15daa5e59440f4c924e30c221ab3d405e8a56a0ab1cdbe4764af3d.bin → 707207384524513171a679366d75e91a1652b53eb3de01ef15418c4ba68c9370.bin} +1 -1
  12. package/dist/browser-plane/sw.js +5 -5
  13. package/dist/cli.mjs +168 -73
  14. package/dist/preview-assets.generated.bin +0 -0
  15. package/guides/component-reference.json +1 -1
  16. package/guides/component-reference.md +5 -0
  17. package/guides/himi-json-output.md +12 -3
  18. package/guides/one-app-section-mappings.md +1 -1
  19. package/guides/one-app-to-himi-app.md +4 -0
  20. package/guides/push-cli-onboarding.md +2 -0
  21. package/guides/sdk-reference.json +165 -0
  22. package/guides/wix-business-context.md +15 -1
  23. package/package.json +2 -2
  24. package/templates/beauty-salon/recipes/programs-filters.json +94 -0
  25. package/templates/beauty-salon/recipes/programs-see-all.json +43 -0
  26. package/templates/beauty-salon/tier5-src/_shared/programs-section.ts +19 -7
  27. package/templates/beauty-salon/tier5-src/himi-branded-lite-order/index.ts +7 -2
  28. package/templates/branded-lite/recipes/programs-filters.json +94 -0
  29. package/templates/branded-lite/recipes/programs-see-all.json +43 -0
  30. package/templates/branded-lite/tier5-src/_shared/programs-section.ts +19 -7
  31. package/templates/branded-lite/tier5-src/himi-branded-lite-inbox/index.ts +10 -1
  32. package/templates/branded-lite/tier5-src/himi-branded-lite-order/index.ts +7 -2
  33. package/templates/community-club/recipes/programs-filters.json +94 -0
  34. package/templates/community-club/recipes/programs-see-all.json +43 -0
  35. package/templates/community-club/tier5-src/_shared/programs-section.ts +19 -7
  36. package/templates/events-meetups/recipes/programs-filters.json +94 -0
  37. package/templates/events-meetups/recipes/programs-see-all.json +43 -0
  38. package/templates/events-meetups/tier5-src/_shared/programs-section.ts +19 -7
  39. package/templates/gym-fitness/recipes/programs-filters.json +94 -0
  40. package/templates/gym-fitness/recipes/programs-see-all.json +43 -0
  41. package/templates/gym-fitness/tier5-src/_shared/programs-section.ts +19 -7
  42. package/templates/gym-fitness/tier5-src/himi-branded-lite-order/index.ts +7 -2
  43. package/templates/nonprofit-cause/recipes/programs-filters.json +94 -0
  44. package/templates/nonprofit-cause/recipes/programs-see-all.json +43 -0
  45. package/templates/nonprofit-cause/tier5-src/_shared/programs-section.ts +19 -7
  46. package/templates/podcast-creator/recipes/programs-filters.json +94 -0
  47. package/templates/podcast-creator/recipes/programs-see-all.json +43 -0
  48. package/templates/podcast-creator/tier5-src/_shared/programs-section.ts +19 -7
  49. package/templates/portfolio-creative/recipes/programs-filters.json +94 -0
  50. package/templates/portfolio-creative/recipes/programs-see-all.json +43 -0
  51. package/templates/portfolio-creative/tier5-src/_shared/programs-section.ts +19 -7
  52. package/templates/portfolio-creative/tier5-src/himi-branded-lite-order/index.ts +7 -2
  53. package/templates/restaurant/recipes/programs-filters.json +94 -0
  54. package/templates/restaurant/recipes/programs-see-all.json +43 -0
  55. package/templates/restaurant/tier5-src/_shared/programs-section.ts +19 -7
  56. package/templates/retail-store/recipes/programs-filters.json +94 -0
  57. package/templates/retail-store/recipes/programs-see-all.json +43 -0
  58. package/templates/retail-store/tier5-src/_shared/programs-section.ts +19 -7
  59. package/templates/retail-store/tier5-src/himi-branded-lite-order/index.ts +7 -2
  60. package/templates/wholesale-store/tier5-src/himi-branded-lite-order/index.ts +7 -2
  61. package/templates/yoga-studio/recipes/programs-filters.json +94 -0
  62. package/templates/yoga-studio/recipes/programs-see-all.json +43 -0
  63. package/templates/yoga-studio/tier5-src/_shared/programs-section.ts +19 -7
Binary file
@@ -1286,7 +1286,7 @@
1286
1286
  }
1287
1287
  ],
1288
1288
  "descriptor": {
1289
- "ScreenDescriptor": "export interface ScreenDescriptor {\n screenId: string;\n renderer: RendererKind;\n title?: string;\n /** Present when `renderer` is `sdui_intent` or `sdui_layout`. On a `webview_native_bridge` site screen it\n * may carry the screen's node form: the root tree with the page as a `role: \"primary\"`\n * WebView, which a dual-form binary draws instead of the Tier-3 page and every older binary ignores\n * (`prefersPayloadNodeForm`, `dualFormSiteScreen`). */\n payload?: Component;\n /** A component pinned ABOVE the scrolling payload (sticky tab-header / toolbar).\n * Rendered by the host outside the screen scroll, so it stays put as content\n * scrolls. Optional; absent = no sticky header. */\n stickyHeader?: Component;\n /** A component pinned BELOW the scrolling payload (sticky footer — price/confirm\n * bar, peeking bottom-sheet). Rendered outside the screen scroll by the host. */\n stickyFooter?: Component;\n /** When true, the host wraps the screen in a scroll that starts pinned to the\n * bottom and shows a floating \"jump to latest\" button whenever the user scrolls\n * up (a chat transcript). Tapping it animates back to the bottom. Absent/false =\n * a normal top-anchored scroll. Honored by the app host (Router). */\n scrollToBottom?: boolean;\n /** The chat transcript scroll policy. On a send the host pins the\n * named component near the top and reserves the space the reply grows into;\n * when the reply outgrows it the host follows the tail. A drag pauses\n * following, and only then is a jump-to-latest control shown. */\n transcriptScroll?: TranscriptScroll;\n /** The page's title for a host that shows it in its own navigation bar (iOS `himalayaEmbedTitle`, Android\n * `ProvideHimalayaEmbedTitle`): it gets the title as soon as it has the descriptor, before the worker boots, and\n * `replaces` is not drawn. Every other host ignores it, so the in-content header stays. */\n hostTitle?: HostTitle;\n /** Present when `renderer` is `webview_native_bridge` or `webview_ds`. */\n url?: string;\n capabilitiesRequired?: string[];\n schemaVersion: number;\n togglesApplied?: string[];\n /** Per-session flag/experiment assignments baked in for this request. */\n assignments?: import(\"./flags.js\").Assignment[];\n /** Per-screen top bar (trailing actions +\n * leading/style override). Fully replaces `NavigationConfig.topBarDefault`. */\n topBar?: TopBarConfig;\n /** \"\" / \"visible\" (default) | \"hidden\": hide the bottom tab bar while this screen is the\n * visible top of its tab's stack. Static; no effect in a presentation. */\n tabBarVisibility?: string;\n /** \"\" / \"pinned\" (default) | \"floating\": how the host draws `stickyFooter`. Floating draws it\n * over the bottom of the scroll with no band behind it (a Fab, a snackbar) and insets the\n * content by its height. Static; an unknown value is \"pinned\". */\n stickyFooterPlacement?: string;\n etag?: string;\n cacheControl?: CacheControl;\n telemetryScreenName?: string;\n bundleSri?: string;\n manifestVersion?: number;\n /**\n * Present on Tier-5 screens. The presence of this field is the tier-5\n * signal — there is no separate `tier: 5` flag.\n */\n logicBundle?: LogicBundleRef;\n /**\n * Static per-screen input injected as `globalThis.himalaya.input` before the\n * Tier-5 worker bundle evaluates — the worker reads it synchronously in `load()`\n * (e.g. `himalaya.input.id` for a detail screen, or a baked catalog like\n * `himalaya.input.cmsCollections`).\n *\n * A push merges its navigation parameters into this object on web, iOS, and Android.\n * For example, `himi.open({ screenId: \"event\", id: \"$item.id\" })` makes the id\n * available as `himalaya.input.id` in the pushed worker; static `input` remains the\n * fallback for values baked into a descriptor or a templated route. The host also\n * supplies `screenId`. See docs/tier-5-add-a-screen.md → \"Navigate to a detail screen\".\n *\n * Arbitrary JSON object; consumed by the web host (ScreenController) and the\n * native JSWorker.\n */\n input?: Record<string, unknown>;\n /**\n * Tier 3 / Tier 4 — behavior of the hosted WebView. Ignored by SDUI tiers.\n * Authored in the descriptor builder (git); served OTA verbatim.\n */\n webViewConfig?: WebViewConfig;\n}",
1289
+ "ScreenDescriptor": "export interface ScreenDescriptor {\n screenId: string;\n renderer: RendererKind;\n title?: string;\n /** Present when `renderer` is `sdui_intent` or `sdui_layout`. On a `webview_native_bridge` site screen it\n * may carry the screen's node form: the root tree with the page as a `role: \"primary\"`\n * WebView, which a dual-form binary draws instead of the Tier-3 page and every older binary ignores\n * (`prefersPayloadNodeForm`, `dualFormSiteScreen`). */\n payload?: Component;\n /** A component pinned ABOVE the scrolling payload (sticky tab-header / toolbar).\n * Rendered by the host outside the screen scroll, so it stays put as content\n * scrolls. Optional; absent = no sticky header. */\n stickyHeader?: Component;\n /** A component pinned BELOW the scrolling payload (sticky footer — price/confirm\n * bar, peeking bottom-sheet). Rendered outside the screen scroll by the host. */\n stickyFooter?: Component;\n /** When true, the host wraps the screen in a scroll that starts pinned to the\n * bottom and shows a floating \"jump to latest\" button whenever the user scrolls\n * up (a chat transcript). Tapping it animates back to the bottom. Absent/false =\n * a normal top-anchored scroll. Honored by the app host (Router). */\n scrollToBottom?: boolean;\n /** The chat transcript scroll policy. On a send the host pins the\n * named component near the top and reserves the space the reply grows into;\n * when the reply outgrows it the host follows the tail. A drag pauses\n * following, and only then is a jump-to-latest control shown. */\n transcriptScroll?: TranscriptScroll;\n /** The page's title for a host that shows it in its own navigation bar (iOS `himalayaEmbedTitle`, Android\n * `ProvideHimalayaEmbedTitle`): it gets the title as soon as it has the descriptor, before the worker boots, and\n * `replaces` is not drawn. Every other host ignores it, so the in-content header stays. */\n hostTitle?: HostTitle;\n /** Present when `renderer` is `webview_native_bridge` or `webview_ds`. */\n url?: string;\n capabilitiesRequired?: string[];\n schemaVersion: number;\n togglesApplied?: string[];\n /** Per-session flag/experiment assignments baked in for this request. */\n assignments?: import(\"./flags.js\").Assignment[];\n /** Per-screen top bar (trailing actions +\n * leading/style override). Fully replaces `NavigationConfig.topBarDefault`. */\n topBar?: TopBarConfig;\n /** \"\" / \"visible\" (default) | \"hidden\": hide the bottom tab bar while this screen is the\n * visible top of its tab's stack. Static; no effect in a presentation. */\n tabBarVisibility?: string;\n /** \"\" / \"pinned\" (default) | \"floating\": how the host draws `stickyFooter`. Floating draws it\n * over the bottom of the scroll with no band behind it (a Fab, a snackbar) and insets the\n * content by its height. Static; an unknown value is \"pinned\". */\n stickyFooterPlacement?: string;\n /** A `$service:` path used as a token: when its value CHANGES to a non-empty one, the screen's\n * own vertical scroll returns to the top (animated; none under Reduce Motion). The value on\n * first render is a baseline; an empty or unresolved value does nothing. A worker fires it\n * again by writing a new value (a counter, \"x|3\"). The rule of `LazyList.scrollToItemPath`. */\n scrollToTopPath?: string;\n etag?: string;\n cacheControl?: CacheControl;\n telemetryScreenName?: string;\n bundleSri?: string;\n manifestVersion?: number;\n /**\n * Present on Tier-5 screens. The presence of this field is the tier-5\n * signal — there is no separate `tier: 5` flag.\n */\n logicBundle?: LogicBundleRef;\n /**\n * Static per-screen input injected as `globalThis.himalaya.input` before the\n * Tier-5 worker bundle evaluates — the worker reads it synchronously in `load()`\n * (e.g. `himalaya.input.id` for a detail screen, or a baked catalog like\n * `himalaya.input.cmsCollections`).\n *\n * A push merges its navigation parameters into this object on web, iOS, and Android.\n * For example, `himi.open({ screenId: \"event\", id: \"$item.id\" })` makes the id\n * available as `himalaya.input.id` in the pushed worker; static `input` remains the\n * fallback for values baked into a descriptor or a templated route. The host also\n * supplies `screenId`. See docs/tier-5-add-a-screen.md → \"Navigate to a detail screen\".\n *\n * Arbitrary JSON object; consumed by the web host (ScreenController) and the\n * native JSWorker.\n */\n input?: Record<string, unknown>;\n /**\n * Tier 3 / Tier 4 — behavior of the hosted WebView. Ignored by SDUI tiers.\n * Authored in the descriptor builder (git); served OTA verbatim.\n */\n webViewConfig?: WebViewConfig;\n}",
1290
1290
  "Component": "export interface Component {\n id: string;\n body: ComponentBody;\n modifiers?: Modifiers;\n minVersion?: number;\n}",
1291
1291
  "LogicBundleRef": "export interface LogicBundleRef {\n url: string;\n /** \"sha256-...\" SRI string. */\n integrity: string;\n contentType?: string;\n /** SDK capability ids the bundle is permitted to import / invoke. */\n declaredCapabilities: string[];\n /** Bundle refuses to load on a binary older than this (semver). */\n minBinaryVersion?: string;\n /** Bundle's own semver. */\n bundleVersion?: string;\n /** Base64 detached publisher signature over the bundle bytes\n * (authenticity beyond SRI). Verified by a host-injected verifier when present;\n * unsigned bundles load as today. */\n signature?: string;\n /** The publisher key id a host pins, paired with `signature`. */\n keyId?: string;\n /** Ambient refresh (gap G2): the host invokes `action` (a `tier5.<svc>.<action>`\n * path) every `intervalMs` while the screen is visible — workers have no timer\n * of their own, so the host owns the cadence. */\n refresh?: { intervalMs: number; action: string };\n /** The worker's boot state, `{ serviceName: initialState }`, baked into the descriptor from the\n * bundle when the screen is served (`extractBundleServices`). A host with no live worker and no saved snapshot paints the\n * first frame against it, so the screen's own loading state shows at once — its skeleton, its\n * title, its gates closed as the worker will close them — instead of a generic loader or every\n * fail-open branch. The live worker replaces it as soon as it boots. */\n bootState?: Record<string, unknown>;\n}",
1292
1292
  "Modifiers": "export interface Modifiers {\n /** Changing non-empty token: scroll this node into view and move accessibility focus to it. */\n scrollIntoViewPath?: string;\n /** Inherited preview scope; unknown values inherit. */\n imagePreview?: string;\n padding?: EdgeInsets;\n background?: TokenRef;\n cornerRadius?: number;\n /** Fixed intrinsic width (pt/dp/px). Honored by iOS (`FrameIfPresent`), Android\n * (frame) and web (`modifiers.ts`). With no `ScrollView` in the vocabulary and\n * regions clipped at `maxHeight`, `width`/`height`/`fillMaxWidth` are the main\n * sizing tools for embed/host content. */\n width?: number;\n /** Fixed intrinsic height (pt/dp/px). See `width`. */\n height?: number;\n /** Fill the available cross-axis width (keeps any fixed `height`). Mirrors\n * Compose `fillMaxWidth` / SwiftUI `.frame(maxWidth: .infinity)`. See `width`. */\n fillMaxWidth?: boolean;\n /** CAP the node's laid-out width at this many points. It CONSTRAINS, it\n * does not SET: a node narrower than the cap keeps its intrinsic width, so a\n * short chat bubble stays short while a long one stops at the cap — the\n * asymmetry `width` cannot express and `weight` cannot either (weights divide\n * the *available* space, so every child lands on the same fraction).\n * The cap covers the node's TOTAL width, padding + border included (CSS\n * `max-width` under `box-sizing: border-box`). `fillMaxWidth` grabs the axis but\n * THE CAP WINS — fill + cap is exactly `maxWidth` wide; a literal `width` larger\n * than the cap is clamped to it too. POINTS, not a fraction: a modifier is\n * resolved with no portable notion of \"the row\" on any renderer — compose a\n * percentage from a weighted sibling gap instead. `0`/absent = no cap. */\n maxWidth?: number;\n /** Flex weight along the parent stack's MAIN axis (HStack = width, VStack =\n * height). The stack measures its intrinsic (unweighted) children first, then\n * divides what is LEFT among the weighted ones in proportion to their weights:\n * two children at `1` split the leftover equally, `2` and `1` split it 2:1.\n * Absent (or <= 0) keeps the node at its intrinsic size. Use this — not\n * `fillMaxWidth` — when a node should claim the remaining space *beside* its\n * siblings; a full-bleed fill grabs the whole axis and starves them. Ignored\n * outside an HStack/VStack.\n * CAVEAT — row-sharing controls have NO intrinsic width to measure first: in an\n * HStack a `Button` and a `Toggle` are implicitly weighted, so they DIVIDE the\n * row with your weighted child instead of taking a width ahead of it —\n * `[VStack(weight:1), Button, Button]` is a three-way split, not \"the VStack gets\n * the remainder\". To opt a Button out on EVERY renderer set `fullWidth: false`\n * (an explicit flag wins in both directions; absent falls back to the style\n * default, which is \"share\" for every style but `tertiary`/`link`), or use\n * `iconOnly`. Otherwise give the actions their own row.\n * See `himi docs designing-himi-screens` §4. */\n weight?: number;\n /** RTL — pin the subtree's writing direction: `\"ltr\"` | `\"rtl\"` | `\"locale\"`\n * (inherit). The common RTL pattern is the inverse of `Text.textDirection`: pin a\n * container `ltr` (a logotype, an attachment-tile row, a composer button row)\n * inside an otherwise-RTL screen. Absent = inherit the ambient direction. #1060. */\n layoutDirection?: \"ltr\" | \"rtl\" | \"locale\";\n /** Absolute visual translation (pt/dp/px). Applied as the OUTERMOST transform so\n * it shifts the fully-styled node WITHOUT changing its layout footprint — lets a\n * ZStack place polar/absolute children (e.g. AgentOrbit). Negative allowed. */\n offsetX?: number;\n offsetY?: number;\n onTap?: Action;\n /** Double-tap gesture (e.g. Instagram double-tap-to-like). Distinct from onTap. */\n onDoubleTap?: Action;\n accessibilityLabel?: string;\n hidden?: boolean;\n /** Data-bound conditional visibility: a `\"$service:<svc>.<field>\"`\n * or `\"$item.<field>\"` sentinel resolving to a bool at render; when true the\n * subtree fully COLLAPSES (zero layout, like `hidden`), overriding the\n * literal `hidden`. */\n hiddenPath?: string;\n /** Long-press gesture modifier. */\n onLongPress?: Action;\n /** Fires once when the component first appears on screen. */\n onAppear?: Action;\n /** Scoped token overrides for the subtree. */\n theme?: ThemeOverrides;\n /** Names a token from the app's `shadows` registry. */\n shadow?: TokenRef;\n /** Names a token from the app's `gradients` registry (background fill). */\n backgroundGradient?: TokenRef;\n /** Value-driven gradient: a `$service:`/`$item.` path resolving to a gradient\n * TOKEN NAME used as the live background (e.g. weather sky day→night). */\n backgroundGradientPath?: string;\n /** Value-driven background COLOR: a `$service:`/`$item.` path resolving to a\n * color TOKEN NAME used as the live background. Honored on iOS + Android\n * (`BoundBackgroundIfPresent`); web render support is tracked in #1057. */\n backgroundColorPath?: string;\n /** Value-driven background IMAGE: a `$service:`/`$item.` path resolving to an\n * image URL used as the live background. Honored on iOS + Android; web render\n * support is tracked in #1057. */\n backgroundImagePath?: string;\n /** #1051 — MEASURE (publish): report this node's laid-out size into the renderer's\n * self-contained (worker-free) measure store under the named keys, so a SIBLING can\n * feed the number back into its own layout via a `$measure:<key>` binding. The SDUI\n * equivalent of SwiftUI `.onGeometryChange` / Compose `onGloballyPositioned`; the\n * canonical use is a pinned bottom bar whose measured height becomes a scroll view's\n * bottom inset (sticky-footer + scroll-inset, unrepresentable before — #1051). */\n onMeasure?: Measure;\n /** #1051 — bound height: a `\"$measure:<key>\"` (measure store) or\n * `\"$service:<svc>.<field>\"` / `\"$item.<field>\"` (worker/row state) sentinel resolving\n * to a NUMBER at render. Wins over the literal `height`. String path only, so a\n * binding can never blank the node (never overload the numeric `height`). */\n heightPath?: string;\n /** #1051 — bound width. See `heightPath`. Wins over the literal `width`. */\n widthPath?: string;\n /** #1051 — bound TOP inset (the header-height → top-inset idiom). A `$measure:`/\n * `$service:`/`$item.` sentinel resolving to a number; added as top padding. */\n paddingTopPath?: string;\n /** #1051 — bound BOTTOM inset (the sticky-footer-height → bottom-inset idiom). A\n * `$measure:`/`$service:`/`$item.` sentinel resolving to a number; added as bottom\n * padding so the last scroll row clears a pinned bottom bar. */\n paddingBottomPath?: string;\n /** #1053 — INLINE gradient background paint. Distinct from `backgroundGradient`\n * (which names a `gradients` registry token an embed host can't register): this\n * carries its stops/colours in the descriptor, so it works anywhere. Painted as\n * a surface (behind children), below `material`/`backgroundGradient` if those are\n * also set. */\n gradient?: Gradient;\n /** #1053 — gradient ALPHA MASK: the node shows through where the gradient is\n * opaque and fades where it's transparent (a transparent-token stop = fully\n * clear). The material-under-gradient-scrim / scroll-fade-out idiom. Mirrors iOS\n * `.mask()`, Android `BlendMode.DstIn`, web `mask-image`. */\n mask?: Gradient;\n /** Inline border/stroke. */\n border?: Border;\n /** Subtree alpha 0.0–1.0; absent = opaque. */\n opacity?: number;\n /** #433 — constrain the subtree to a width:height ratio (e.g. `1` = square,\n * `1.777` = 16:9). Width-driven: the height derives from the resolved width.\n * Lets a data-bound Grid cell / photo tile hold its shape at any width. */\n aspectRatio?: number;\n /** Names a token from the app's `motions` registry; the subtree\n * fades + slides up on first appearance. */\n appear?: TokenRef;\n /** Surface material token (flat/glass/frosted). */\n material?: TokenRef;\n /** Per-node construction-language override. */\n variant?: string;\n /** Per-node density / motion override. */\n density?: string;\n motion?: string;\n /** Motion grammar (Batch 1) — press/tap feedback style\n * (auto|none|scale|highlight|scaleHighlight|lift); timing comes from `motion`.\n * Applied only when the node is interactive. Unknown degrades to `auto`. */\n pressFeedback?: string;\n /** Motion grammar (Batch 1) — press-coupled haptic\n * (none|selection|light|medium|heavy|success|warning|error); fires with onTap.\n * Default none (opt-in). Web is a no-op. */\n haptic?: string;\n /** Motion grammar (Batch 1) — animate this container's size changes instead of\n * snapping (iOS `.animation(value:)`, Android `animateContentSize`, web height\n * transition). Curve from the active `motion` personality. */\n animateContentSize?: boolean;\n /** Motion grammar (Batch 1) — enter/exit transition; supersedes `appear` when\n * both are present. */\n transition?: Transition;\n /** Motion grammar (Batch 2, scroll-driven) — defer the `transition` enter until\n * the node first crosses into the scroll viewport (reveal-on-scroll). Gated by\n * reduced motion (shown immediately when reduced). */\n revealOnScroll?: boolean;\n /** Motion grammar (Batch 2, scroll-driven) — parallax factor: the node drifts\n * vertically at this fraction of the scroll delta as it moves through the\n * viewport. Gated by reduced motion. Generalizes CollapsingHeader parallaxFactor. */\n parallax?: number;\n /** Motion grammar (Batch 4, rich visual) — when a backgroundGradient is present,\n * continuously drift/rotate it (animated gradient). Gated by reduced motion. */\n animatedGradient?: boolean;\n /** Motion grammar (Batch 3, hero/nav) — shared-element key: a matching\n * transitionId on the source + destination screen morphs that element across\n * navigation (web View Transitions / iOS matchedTransitionSource / Android\n * SharedTransitionLayout). Gated by reduced motion. */\n transitionId?: string;\n /** Motion grammar (Batch 4, rich visual) — render the backgroundGradient as a\n * mesh (overlapping multi-point blend) rather than a linear sweep; combine with\n * animatedGradient to drift it. */\n meshGradient?: boolean;\n /** Motion grammar (Batch 4, celebration) — burst a one-shot confetti overlay\n * within the node on appear. Gated by reduced motion. */\n confetti?: boolean;\n /** Motion grammar (Batch 2, scroll-driven) — pin this node to the top of its\n * scroll container (sticky section header). Functional positioning; not gated\n * by reduced motion. */\n sticky?: boolean;\n /** Motion grammar (Batch 2, scroll-driven) — turn this thin node into a\n * reading-progress bar that fills left→right with scroll (scaleX). web reads\n * window scroll; native reads the host scroll fraction. Functional. */\n scrollProgress?: boolean;\n /** Motion grammar (Batch 4, rich vector) — a named built-in vector animation\n * (\"loader\" | \"success\" | \"pulse\"), dependency-free. Gated by reduced motion.\n * Arbitrary Lottie/Rive JSON is the lib-backed superset follow-up. */\n vectorAnim?: string;\n /** Motion grammar (Batch 1, choreography) — delay this node's ENTER transition\n * by N ms so a screen can SEQUENCE its entrance beyond list stagger (\"title\n * fades, subtitle slides in 100ms later\"). Adds to any list `staggerMs`. Gated\n * by reduced motion. 0/absent = no extra delay. */\n enterDelayMs?: number;\n /** Motion grammar (Phase-3, per-node MotionSpec) — overrides the PRESS-feedback\n * curve with a `motions`-registry token, mirroring `Transition.motion` for the\n * enter curve. Absent → press uses the global `motion` personality. */\n pressMotion?: TokenRef;\n /** Motion grammar (Phase-3, gesture-driven) — finger-tracked drag-to-dismiss; past\n * threshold along `direction` it animates off and fires `action`, else springs back. */\n swipeDismiss?: SwipeDismiss;\n /** Motion grammar (Phase-4, reduced-motion) — per-node escape from the reduced-motion\n * gate. Default true (respect). false = \"must move anyway\" (transition/press animate\n * even when reduced motion is on). */\n respectReducedMotion?: boolean;\n /** #1052 — uniform scale (1 = no change). */\n scale?: number;\n /** #1052 — rotation in DEGREES. */\n rotation?: number;\n /** #1052 — stacking order within a ZStack/overlay. */\n zIndex?: number;\n /** #1052 — gaussian blur radius (pt/dp/px). */\n blur?: number;\n /** #1052 — `false` = decorative (ignores taps, unlike `hidden` which stays hit-testable);\n * `true` = force hit-testable (a clear tap target). */\n hitTestable?: boolean;\n /** #1052 — explicit drop shadow (colour + radius + offset), for upward / multi-layer\n * shadows the `shadow` token can't express. */\n boxShadow?: Shadow;\n /** The role assistive technology should announce. Absent = the\n * renderer INFERS it from the component type, so an author never restates the\n * obvious. `\"decorative\"` is node-local: the node itself stops being an\n * accessibility element (no role, not a stop) while its children stay\n * traversable — the ARIA `role=\"presentation\"` semantic. To remove the subtree\n * too, use `accessibilityHidden`. */\n accessibilityRole?: AccessibilityRole;\n /** The supplementary \"what happens if I act\" phrase\n * (iOS `accessibilityHint`, Android `onClickLabel`, ARIA `aria-describedby`).\n * Never a substitute for `accessibilityLabel`: AT may not speak a hint at all. */\n accessibilityHint?: string;\n /** Remove this node AND its subtree from the accessibility tree.\n * Distinct from `hidden` (which removes it visually too) and from the\n * `\"decorative\"` role (node-local; children stay reachable). */\n accessibilityHidden?: boolean;\n /** Mark the node as a heading at level 1–6, for rotor / heading\n * navigation. Implies the `\"heading\"` role when `accessibilityRole` is absent.\n * The LEVEL reaches iOS and web only: Android (Compose `heading()`) and React Native\n * (`accessibilityRole: \"header\"`) have no level primitive and mark a plain heading. */\n headingLevel?: number;\n /** An explicit SPOKEN value where the visual and spoken values\n * differ (a rating \"3 of 5\", a gauge \"72 percent\"). Where the value is derivable\n * from a prop the renderer computes it and this override is unnecessary. */\n accessibilityValue?: string;\n /** Additive state that a single role cannot carry. A node may\n * hold several. */\n accessibilityTraits?: AccessibilityTrait[];\n /** Explicit traversal index within the nearest focus group. Absent ⇒\n * the arm's visual / DOM order. The lower index is reached FIRST, which is why iOS\n * (whose `accessibilitySortPriority` is descending) negates it. */\n focusOrder?: number;\n /** This node's subtree is ONE traversal scope: children are ordered\n * relative to each other, then the group takes its parent's slot (iOS\n * `shouldGroupAccessibilityChildren`, Android `isTraversalGroup`, ARIA grouping). */\n focusGroup?: boolean;\n /** AT / keyboard focus lands here when the screen or a newly presented\n * modal appears. At most one per focus scope. */\n initialFocus?: boolean;\n /** A general live-region announcement, on any node and any transition.\n * The generalization of `FragmentSlotCase.accessibilityAnnouncement`, which only ever\n * fired on a fragment-slot case swap. */\n announce?: LiveRegion;\n /** Clip ANY node (content + surface) to a shape:\n * \"rectangle\" | \"roundedRectangle\" | \"capsule\" | \"circle\" | \"ellipse\". Unknown/empty =\n * no shape clip (`cornerRadius` keeps its meaning). When set it replaces the\n * corner-radius-only clip; a \"roundedRectangle\" uses `clipCornerRadii`, else `cornerRadius`. */\n clipShape?: string;\n /** Uneven corner radii for `clipShape: \"roundedRectangle\"`. */\n clipCornerRadii?: CornerRadii;\n /** A recurring, finite, transform-only motion on a decorative node: a\n * living character's idle `hop`, a `blink`, a working `breathe`. Never changes the\n * node's layout footprint. Stopped by reduced motion unless `respectReducedMotion`\n * is false. */\n ambientMotion?: AmbientMotion;\n /** amendment — BINDABLE TRANSFORMS. Each is a `\"$service:<svc>.<field>\"` /\n * `\"$item.<field>\"` sentinel resolving to a NUMBER at render. A bound value overrides its\n * static sibling (`scale`, `rotation`, `offsetX`, `offsetY`, `opacity`, `cornerRadius`); an\n * unresolved or non-numeric value falls back to that sibling (or identity). A change animates\n * with the node's `motion` token; reduced motion jumps. Render-only: transforms never affect\n * layout, the origin is the centre, and hit-testing follows the transformed frame. `$env:` is\n * rejected. Drawn on iOS, macOS, Android and web. A literal number is drawn as a fixed value\n * (a bound row's substituted `$item.` reads the same way), but belongs in the static sibling. */\n scalePath?: string;\n /** Bound `rotation`, in DEGREES. See `scalePath`. */\n rotationPath?: string;\n /** Bound `offsetX`, in points. See `scalePath`. */\n offsetXPath?: string;\n /** Bound `offsetY`, in points. See `scalePath`. */\n offsetYPath?: string;\n /** Bound `opacity`, 0–1 (clamped). See `scalePath`. */\n opacityPath?: string;\n /** Bound `cornerRadius`, in points. See `scalePath`. */\n cornerRadiusPath?: string;\n /** amendment — a declarative scroll offset → transform/opacity mapping,\n * evaluated natively every frame (no worker round-trip). Drawn on iOS/macOS, Android and web,\n * composed with the static and bound transforms. */\n scrollLinked?: ScrollLinked;\n}",
@@ -2484,6 +2484,11 @@ export interface ScreenDescriptor {
2484
2484
  * over the bottom of the scroll with no band behind it (a Fab, a snackbar) and insets the
2485
2485
  * content by its height. Static; an unknown value is "pinned". */
2486
2486
  stickyFooterPlacement?: string;
2487
+ /** A `$service:` path used as a token: when its value CHANGES to a non-empty one, the screen's
2488
+ * own vertical scroll returns to the top (animated; none under Reduce Motion). The value on
2489
+ * first render is a baseline; an empty or unresolved value does nothing. A worker fires it
2490
+ * again by writing a new value (a counter, "x|3"). The rule of `LazyList.scrollToItemPath`. */
2491
+ scrollToTopPath?: string;
2487
2492
  etag?: string;
2488
2493
  cacheControl?: CacheControl;
2489
2494
  telemetryScreenName?: string;
@@ -658,13 +658,16 @@ unresolved migration finding.
658
658
 
659
659
  Binds the source header's bell, chat and cart counts in `config.ts`. Success prints
660
660
  `ok: true` and a `status`: `written`, `unchanged`, `would_write` (`--dry-run`),
661
- `no_badges` or `nothing_to_bind`; `unmapped` lists badge buttons that are not clearly
661
+ `no_badges`, `badges_unverified` (no badge found and a platform's runtime view was not
662
+ collected, so `unverifiedPlatforms` names it and `warnings` says why) or `nothing_to_bind`;
663
+ `unmapped` lists badge buttons that are not clearly
662
664
  a bell, chat or cart button and are never guessed. Failures print `ok: false` and a
663
665
  top-level `code` on stderr.
664
666
 
665
667
  - `invalid_usage`: required options are missing, duplicated, or unknown (exit 2).
666
- - `evidence_invalid`: the evidence manifest or a collected file is missing, invalid,
667
- fails its recorded hash, or a platform's runtime context was unavailable (exit 1).
668
+ - `evidence_invalid`: the evidence manifest or a collected file is missing, invalid
669
+ or fails its recorded hash (exit 1). A platform's unavailable runtime view is not
670
+ an error here: see `badges_unverified`.
668
671
  - `config_uninspectable`: `config.ts` or `himalaya.content.json` cannot be read, so
669
672
  the app's screens and navigation cannot be inspected, or `config.ts` cannot be
670
673
  written; in that case the coverage ledger is put back as it was (exit 1).
@@ -685,6 +688,12 @@ mode). `loginWall.kept` is true when the source does not require login but the a
685
688
  the warning `access_policy_unavailable` to the manifest when the source did not report the login setting. Failures print `ok: false` and a top-level `code`
686
689
  on stderr.
687
690
 
691
+ The gates are read from the published structure (`raw-structure.json`) alone; a platform's runtime view is never an input, so
692
+ the gates, and every decision made from them, are the same with or without it. Only the reporting differs: when a platform's
693
+ runtime view was not collected (`runtime_context_unavailable`), every outcome once the evidence has been read (success, and
694
+ every failure except `invalid_usage` and `evidence_invalid`) carries `unverifiedPlatforms` (`ios`, `android`) and a `warnings`
695
+ entry per platform. They say that what that view would add to the platform's access is unverified, never that it is unrestricted.
696
+
688
697
  - `invalid_usage`: required options are missing, duplicated or unknown, `--screen` is not `<layoutItemId>=<screenId>`,
689
698
  `--login-wall` is not `required` or `none`, or `--dry-run` and `--check` are both given (exit 2).
690
699
  - `evidence_invalid`: the evidence manifest or `raw-structure.json` is missing, invalid or fails its recorded hash,
@@ -79,7 +79,7 @@ The **Himalaya implementation** cell is blank for every unassigned row. Notes on
79
79
 
80
80
  | Source sectionDefinitionId | Source viewer component | Himalaya implementation | Placement / reuse | Class | Settings, actions and gaps |
81
81
  | --- | --- | --- | --- | --- | --- |
82
- | `achievements_list_section` | `wix-one-app-achievements.SectionMemberChallengesScreen` | [Programs list/detail](https://github.com/wix-private/himalaya/blob/97f1542f2f7d6e8cb7a902b912c87dcaa37e5a67/apps/himi-branded-lite/dev/index.ts) + [programs worker](https://github.com/wix-private/himalaya/blob/97f1542f2f7d6e8cb7a902b912c87dcaa37e5a67/core/dev-server/tier5-bundles-src/himi-branded-lite-programs/index.ts "audience-lint-ok: optional pinned upstream evidence, not a local authoring dependency") | Existing base; member list added | Partial | `himi_member_programs` (worker `himi-branded-lite-member-programs`) is the member list: each card carries the signed-in member's standing from Participants v3 / Join Applications v3 (Joined, Program complete, Program ended, Pending request, Request approved, Invited, Participation suspended), a progress bar once started, the price before joining, the "All programs / Programs I joined" and category filters, cursor paging and pull-to-refresh; an ended program the member never joined is dropped. Still open: the 2-card section mode with "See all" (`extraProps.limit=2`, inline composition), join / cancel-request actions on the card itself (the card opens the program, which owns them), and Pricing Plans benefits ("Included in your plan"). |
82
+ | `achievements_list_section` | `wix-one-app-achievements.SectionMemberChallengesScreen` | [Programs list/detail](https://github.com/wix-private/himalaya/blob/97f1542f2f7d6e8cb7a902b912c87dcaa37e5a67/apps/himi-branded-lite/dev/index.ts) + [programs worker](https://github.com/wix-private/himalaya/blob/97f1542f2f7d6e8cb7a902b912c87dcaa37e5a67/core/dev-server/tier5-bundles-src/himi-branded-lite-programs/index.ts "audience-lint-ok: optional pinned upstream evidence, not a local authoring dependency") | Existing base; member list added | Partial | `himi_member_programs` (worker `himi-branded-lite-member-programs`) is the member list: each card carries the signed-in member's standing from Participants v3 / Join Applications v3 (Joined, Program complete, Program ended, Pending request, Request approved, Invited, Participation suspended), a progress bar once started, the price before joining, the "All programs / Programs I joined" and category filters, cursor paging and pull-to-refresh; an ended program the member never joined is dropped. The migration generator now composes the list inline: the category and "All programs / Programs I joined" filters (hidden when `isFilterVisible` is false), the default 2-card mode (`extraProps.limit`, an authored limit or an infinite list is followed) and "See all" to `himi_programs` only while more programs exist. Still open: join / cancel-request actions on the card itself (the card opens the program, which owns them), and Pricing Plans benefits ("Included in your plan"). |
83
83
  | `achievements_carousel_section` | `wix-one-app-achievements.MemberChallengesCarousel` | [Programs data/detail](https://github.com/wix-private/himalaya/blob/97f1542f2f7d6e8cb7a902b912c87dcaa37e5a67/core/dev-server/tier5-bundles-src/himi-branded-lite-programs/index.ts "audience-lint-ok: optional pinned upstream evidence, not a local authoring dependency") + [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") | Existing base; adaptation needed | Partial | Reuse the Programs feature and compose a carousel; preserve source extraProps.limit=5 and selected programs. No ready-made legacy Challenges carousel adapter is claimed. |
84
84
  | `achievements_participant_carousel_section` | `wix-one-app-achievements.ParticipantChallengesCarousel` | | | Empty | The public Programs catalog is not a member-participating-programs carousel. No verified consumer participant/progress list implementation was found. |
85
85
 
@@ -133,6 +133,10 @@ Never import the evidence directory into runtime code.
133
133
  An unavailable supporting runtime view is recorded as `runtime_context_unavailable`
134
134
  with its platform and typed failure code; that enriched file is absent. Continue
135
135
  from authored intent and mark the platform behavior as unverified in the report.
136
+ `one-app generate`, `header-badges` and `access` build from the published structure and
137
+ keep working without that view; the coverage ledger gets an unverified row per missing
138
+ platform, and `generate` lists each one in its `gaps` and in `unverifiedPlatforms`. A bell, chat or cart badge is only readable from a runtime view, so
139
+ `header-badges` answers `badges_unverified` (not `no_badges`) and names the platform.
136
140
  `coverage verify` cannot pass while either platform runtime view is missing, and
137
141
  `validate-topbar` reports an evidence error when collection recorded an unavailable
138
142
  runtime context. These checks report the gap; they do not block promotion.
@@ -92,6 +92,8 @@ grants Sign in with Apple. It is `false` when the connection is missing or on an
92
92
  Otherwise it is `null` when there is no stored profile for the bundle (`apple_capability_unreadable`),
93
93
  or when that profile lacks Sign in with Apple (`stored_profile_lacks_apple_sign_in`), because the
94
94
  binary may be signed with another profile.
95
+ `social.hints` says who can fix what the owner cannot: for `ios_client_missing`, the Branded team (or a person in
96
+ the Firebase console) must add an iOS app to the app's Firebase project and sync social login.
95
97
  The social block never changes the push `ok` verdict.
96
98
 
97
99
  A setup response of HTTP 202 may mean `needs_attention`, not a running background job.
@@ -29726,6 +29726,171 @@
29726
29726
  "jsdoc": "/** True when participation is blocked by the free-tier cap (no premium, count over limit). */",
29727
29727
  "decl": "export function isParticipationBlocked(stats: WixGetPremiumStatsResponse | undefined): boolean;",
29728
29728
  "verificationChecked": true
29729
+ },
29730
+ {
29731
+ "name": "WixSection",
29732
+ "kind": "interface",
29733
+ "jsdoc": "",
29734
+ "decl": "export interface WixSection {\n id?: string;\n revision?: string;\n programId?: string;\n description?: { title?: string };\n totalSteps?: number;\n ordering?: number;\n delayInDays?: number;\n}",
29735
+ "verificationChecked": true
29736
+ },
29737
+ {
29738
+ "name": "WixListSectionsResponse",
29739
+ "kind": "interface",
29740
+ "jsdoc": "",
29741
+ "decl": "export interface WixListSectionsResponse { sections?: WixSection[] }",
29742
+ "verificationChecked": true
29743
+ },
29744
+ {
29745
+ "name": "listSections",
29746
+ "kind": "function",
29747
+ "jsdoc": "/** GET /online-programs/v3/sections?programId= — every section of one program, in order.\n * An empty list can mean the program has no sections OR the caller may not read them: the API does not tell the two apart.\n * @scope member — a joined member (or a visitor of a program that allows it). */",
29748
+ "decl": "export function listSections(programId: string, readOptions?: WixCallOptions): Promise<WixListSectionsResponse>;",
29749
+ "http": "GET /online-programs/v3/sections?programId={…}",
29750
+ "scope": "member",
29751
+ "verificationChecked": true
29752
+ },
29753
+ {
29754
+ "name": "WixStep",
29755
+ "kind": "interface",
29756
+ "jsdoc": "",
29757
+ "decl": "export interface WixStep {\n id?: string;\n revision?: string;\n programId?: string;\n sectionId?: string;\n description?: { title?: string; details?: unknown; [field: string]: unknown };\n ordering?: number;\n /** VIDEO | QUIZ | TEXT | … — read `videoOptions` / `quizOptions` for the matching one. */\n stepType?: string;\n videoOptions?: Record<string, unknown>;\n quizOptions?: { id?: string; totalQuestions?: number; passingGrade?: number };\n}",
29758
+ "verificationChecked": true
29759
+ },
29760
+ {
29761
+ "name": "WixQueryStepsResponse",
29762
+ "kind": "interface",
29763
+ "jsdoc": "",
29764
+ "decl": "export interface WixQueryStepsResponse {\n steps?: WixStep[];\n pagingMetadata?: { count?: number; hasNext?: boolean; cursors?: { next?: string | null; prev?: string | null } };\n}",
29765
+ "verificationChecked": true
29766
+ },
29767
+ {
29768
+ "name": "WixQueryStepsOptions",
29769
+ "kind": "interface",
29770
+ "jsdoc": "",
29771
+ "decl": "export interface WixQueryStepsOptions {\n /** Narrow to one section. */\n sectionId?: string;\n /** Page size, 1..100; default 100. */\n limit?: number;\n /** `pagingMetadata.cursors.next` of the previous page. A cursor page carries no filter: the cursor holds the section filter, as in the other cursor pages here. */\n cursor?: string;\n /** Which description fields come back; omit for the API default (the participant view). */\n descriptionFieldSet?: string;\n}",
29772
+ "verificationChecked": true
29773
+ },
29774
+ {
29775
+ "name": "queryParticipantSteps",
29776
+ "kind": "function",
29777
+ "jsdoc": "/** POST /online-programs/v3/steps/query — the steps of one program as a participant sees them.\n * @scope member */",
29778
+ "decl": "export function queryParticipantSteps(programId: string, opts: WixQueryStepsOptions = {}, readOptions?: WixCallOptions): Promise<WixQueryStepsResponse>;",
29779
+ "http": "POST /online-programs/v3/steps/query",
29780
+ "scope": "member",
29781
+ "verificationChecked": true
29782
+ },
29783
+ {
29784
+ "name": "WixResolvedStep",
29785
+ "kind": "interface",
29786
+ "jsdoc": "",
29787
+ "decl": "export interface WixResolvedStep {\n id?: string;\n participantId?: string;\n programStepId?: string;\n quizSubmissionId?: string;\n earnedScore?: number;\n passingGrade?: number;\n /** A free string in the spec; the API defines no values there, so none are listed here. */\n status?: string;\n createdDate?: string;\n updatedDate?: string;\n}",
29788
+ "verificationChecked": true
29789
+ },
29790
+ {
29791
+ "name": "WixQueryResolvedStepsResponse",
29792
+ "kind": "interface",
29793
+ "jsdoc": "",
29794
+ "decl": "export interface WixQueryResolvedStepsResponse {\n resolvedSteps?: WixResolvedStep[];\n pagingMetadata?: { count?: number; hasNext?: boolean; cursors?: { next?: string | null; prev?: string | null } };\n}",
29795
+ "verificationChecked": true
29796
+ },
29797
+ {
29798
+ "name": "queryResolvedSteps",
29799
+ "kind": "function",
29800
+ "jsdoc": "/** POST /online-programs/participants/v3/resolved-steps/query — the steps one participant finished.\n * An empty list means nothing is done yet, never that the read failed. A cursor page carries no filter: the cursor\n * holds the participant filter, so pass the cursor from the same participant's previous page.\n * @scope member */",
29801
+ "decl": "export function queryResolvedSteps(participantId: string, opts: { limit?: number; cursor?: string } = {}, readOptions?: WixCallOptions): Promise<WixQueryResolvedStepsResponse>;",
29802
+ "http": "POST /online-programs/participants/v3/resolved-steps/query",
29803
+ "scope": "member",
29804
+ "verificationChecked": true
29805
+ },
29806
+ {
29807
+ "name": "completeStep",
29808
+ "kind": "function",
29809
+ "jsdoc": "/** POST /online-programs/participants/v3/resolved-steps/upsert/participant/{participantId}/step/{stepId}\n * — complete a step. Repeating the call for the same pair updates the one resolved step.\n * The ids in the body always come from the two arguments, so they match the path. `status` is sent as given\n * and is NOT defaulted: the spec lists no values and no default, so the caller passes what the site expects.\n * A quiz step's score is the server's to set from `quizSubmissionId`; the binding does not send one.\n * @scope member — the participant must be the signed-in member's own. */",
29810
+ "decl": "export function completeStep(participantId: string, programStepId: string, resolvedStep: Pick<WixResolvedStep, \"status\" | \"quizSubmissionId\"> = {}, options?: WixCallOptions): Promise<{ resolvedStep?: WixResolvedStep }>;",
29811
+ "http": "POST /online-programs/participants/v3/resolved-steps/upsert/participant/{…}/step/{…}",
29812
+ "scope": "member",
29813
+ "verificationChecked": true
29814
+ },
29815
+ {
29816
+ "name": "undoStep",
29817
+ "kind": "function",
29818
+ "jsdoc": "/** DELETE /online-programs/participants/v3/resolved-steps/{resolvedStepId} — undo a completed step.\n * @scope member */",
29819
+ "decl": "export function undoStep(resolvedStepId: string, options?: WixCallOptions): Promise<Record<string, never>>;",
29820
+ "http": "DELETE /online-programs/participants/v3/resolved-steps/{…}",
29821
+ "scope": "member",
29822
+ "verificationChecked": true
29823
+ },
29824
+ {
29825
+ "name": "WixQuizField",
29826
+ "kind": "interface",
29827
+ "jsdoc": "",
29828
+ "decl": "export interface WixQuizField {\n id?: string;\n /** The key a submission's `answers` use for this question (not `id`). */\n target?: string;\n /** The question text. */\n question?: string;\n score?: number;\n rightMessage?: string;\n wrongMessage?: string;\n /** One of `numeric` / `shortText` / `longText` / `singleChoice` / `multiChoice` / `fileUpload` is set. */\n [fieldType: string]: unknown;\n}",
29829
+ "verificationChecked": true
29830
+ },
29831
+ {
29832
+ "name": "WixQuiz",
29833
+ "kind": "interface",
29834
+ "jsdoc": "",
29835
+ "decl": "export interface WixQuiz {\n id?: string;\n revision?: string;\n settings?: { passingGrade?: number; title?: string; attempts?: number };\n fields?: WixQuizField[];\n}",
29836
+ "verificationChecked": true
29837
+ },
29838
+ {
29839
+ "name": "getQuiz",
29840
+ "kind": "function",
29841
+ "jsdoc": "/** GET /online-programs/v1/quizzes/{quizId} — a quiz with its questions. `quizId` is the step's `quizOptions.id`.\n * NOT callable by a member: on amit1 the gateway answers a member token with an empty 403 (the lock lists\n * only the APP identity for this route). The submission route below does accept a member.\n * @scope owner — the quiz definition is app-identity only, so a member session cannot read it. */",
29842
+ "decl": "export function getQuiz(quizId: string, readOptions?: WixCallOptions): Promise<{ quiz?: WixQuiz }>;",
29843
+ "http": "GET /online-programs/v1/quizzes/{…}",
29844
+ "scope": "owner",
29845
+ "verificationChecked": true
29846
+ },
29847
+ {
29848
+ "name": "WixQuizAnswer",
29849
+ "kind": "interface",
29850
+ "jsdoc": "",
29851
+ "decl": "export interface WixQuizAnswer { fieldId?: string; value?: unknown; score?: number; correct?: boolean; message?: string }",
29852
+ "verificationChecked": true
29853
+ },
29854
+ {
29855
+ "name": "WixQuizSubmission",
29856
+ "kind": "interface",
29857
+ "jsdoc": "",
29858
+ "decl": "export interface WixQuizSubmission {\n id?: string;\n quizId?: string;\n /** The participant the answers belong to: pass the signed-in member's own participant id. */\n groupId?: string;\n earnedGrade?: number;\n passingGrade?: number;\n /** Keyed by question `target` (`WixQuizField.target`). */\n answers?: Record<string, WixQuizAnswer>;\n evaluationStatus?: string;\n}",
29859
+ "verificationChecked": true
29860
+ },
29861
+ {
29862
+ "name": "createQuizSubmission",
29863
+ "kind": "function",
29864
+ "jsdoc": "/** POST /online-programs/v1/quiz-submissions — submit answers; the response carries the evaluation.\n * @scope member */",
29865
+ "decl": "export function createQuizSubmission(submission: { quizId: string; groupId?: string; answers: Record<string, WixQuizAnswer> }, options?: WixCallOptions): Promise<{ quizSubmission?: WixQuizSubmission }>;",
29866
+ "http": "POST /online-programs/v1/quiz-submissions",
29867
+ "scope": "member",
29868
+ "verificationChecked": true
29869
+ },
29870
+ {
29871
+ "name": "leaveProgram",
29872
+ "kind": "function",
29873
+ "jsdoc": "/** DELETE /online-programs/v3/participants/{participantId} — the member leaves the program.\n * Removes the member's own participation: pass the participant id from `queryMemberParticipants` / `listMyParticipations`,\n * never another member's. Whether progress is kept is not documented by the spec.\n * Verified on amit1: a member leaving their own participation gets `{}` and the participant's\n * `enrollmentStatus` becomes `LEFT`.\n * @scope member */",
29874
+ "decl": "export function leaveProgram(participantId: string, options?: WixCallOptions): Promise<Record<string, never>>;",
29875
+ "http": "DELETE /online-programs/v3/participants/{…}",
29876
+ "scope": "member",
29877
+ "verificationChecked": true
29878
+ },
29879
+ {
29880
+ "name": "WixCertificateDownloadUrl",
29881
+ "kind": "interface",
29882
+ "jsdoc": "",
29883
+ "decl": "export interface WixCertificateDownloadUrl { downloadUrl?: string; expirationDate?: string }",
29884
+ "verificationChecked": true
29885
+ },
29886
+ {
29887
+ "name": "getCertificateDownloadUrl",
29888
+ "kind": "function",
29889
+ "jsdoc": "/** GET /online-programs/v3/participants/{participantId}/certificate-download-url — a time-limited link.\n * @scope member */",
29890
+ "decl": "export function getCertificateDownloadUrl(participantId: string, readOptions?: WixCallOptions): Promise<WixCertificateDownloadUrl>;",
29891
+ "http": "GET /online-programs/v3/participants/{…}/certificate-download-url",
29892
+ "scope": "member",
29893
+ "verificationChecked": true
29729
29894
  }
29730
29895
  ]
29731
29896
  },
@@ -322,12 +322,26 @@ Three optional parts of a site shell's `site` block add or trim native chrome wi
322
322
 
323
323
  - **`topBar.actions`**: up to three trailing icons, served app-wide as `navigation.topBarDefault` (`siteTopBarDefault(site)`), so every screen without a top bar of its own shows them. `label` is the icon's accessible name. A `target` is exactly one of:
324
324
  - `page`: a site page id of any placement. An `overflow` page has no row but can still be a target, for example the site's cart page.
325
- - `screen`: a native page's `screenId`, or a native screen the shell serves itself (`himi_notification_settings`, and the Account screen when a member binding is set).
325
+ - `screen`: a native page's `screenId`, or a native screen the shell serves itself (`himi_notification_settings`, and the Account screen and the member screens below when a member binding is set).
326
326
  - `url`: an https page off the site. The icon opens the same "Open in browser?" prompt an off-site link in a site page shows. A URL on the site is refused: declare it as a page instead.
327
327
 
328
328
  A target that is a tab switches to that tab (`himi.tab`). Any other target opens its screen (`himi.open`), and so does every target under the `drawer` and `single` layouts, which have no tab bar. Under `menuSource: "runtime"`, a site page target is always opened rather than switched to, because the site's own menu may move that page out of the tab bar on a later launch. On the page or native screen an icon opens, the bar leaves that icon out, so tapping it cannot push a second copy of it. A native screen that draws a top bar of its own keeps it as the author wrote it. A `url` with a `.` or `..` path segment is refused.
329
329
  - **`nativePages`**: the author's own Tier-5 screens as rows. Each one is a `tab`, `drawer` or `overflow` entry (an `overflow` entry is linkable only). They join the tab bar, drawer and rail with the site's pages, after the page named by `after` (default: after all of them, and never before `home`). Tabs count toward the four-tab limit together with the site's tabs. The WebView keep-alive cap only concerns site tabs, because a native tab keeps no WebView. Every native page is in `linkableScreens`. It is private by default: a link from outside the app (a website link, another app) to `<scheme>://screen/<screenId>` opens it only when the page sets `"public": true`. `"requiresAuth": true` implies public and signs the user in first. It needs a sign-in that gates deep links, which today means a Wix member binding. Any other app refuses it, a Base44 site included, rather than open the screen signed out. A native page that places the built-in Notifications or Account screen stays public unless it sets `"public": false`, which turns off outside links to that screen. A public native page opens on its tab when it has one. Under the `drawer`, `single` and one-tab `auto` layouts, where there is no tab to select, the link pushes it instead. Account deletion (`himi_delete_account`) cannot be placed. An id must differ from every site page's id and must not start with `drawer_`. A `screenId` must not start with `site_`.
330
330
 
331
+ **Member screens (Brandy, `wix` binding).** A Brandy app whose contract binds a Wix member client (`wix`) also serves Branded Lite's own member screens, with Branded Lite's builders and workers: the activity feed `himi_notifications`, the inbox `himi_inbox`, My Orders `himi_orders` and My Subscriptions `himi_my_subscriptions`. A native page may place any of them, and a `{ screen }` icon may open one that a native page places (an `overflow` page adds no row). The Account screen links to all of them. The screens they open (an order, a thread, a subscription, the sign-in form) are served too but cannot be placed. A visitor-only contract refuses a native page or icon that names a member screen, saying a `wix` binding is missing. Cart and checkout are not served yet: they need a visitor session shared with the website. The wishlist (`himi_saved_products`) is not served: it lists products saved on native product screens, which a site shell does not have. Inside these screens, a link to a screen a site shell does not serve goes to the website instead: Chat with us opens the site's contact page, Browse the shop and Browse plans open the site's shop and plans pages (a tab is switched to), and each is removed when the site has no such page. Reorder, which fills the native cart, is removed. A sensible default for a member app is Account and Notifications as drawer rows and a bell that opens Notifications:
332
+
333
+ ```json
334
+ "nativePages": [
335
+ { "id": "my_account", "screenId": "himi_account", "title": "Account", "icon": "person", "placement": "drawer" },
336
+ { "id": "activity", "screenId": "himi_notifications", "title": "Notifications", "icon": "bell", "placement": "drawer", "public": true }
337
+ ],
338
+ "topBar": { "actions": [
339
+ { "id": "notifications", "icon": "bell", "label": "Notifications", "target": { "screen": "himi_notifications" } }
340
+ ] }
341
+ ```
342
+
343
+ With `himi_notifications` placed, the built-in Notifications row is labelled Notification settings. The page ids avoid `account` and `notifications`, which the built-in rows reserve.
344
+
331
345
  The contract only places a native page. Its descriptor and worker come from the content package's own `dev/index.ts`, which checks that every placed screen is one it builds (`assertSiteNativePagesBuilt`), so `himi build`, `validate`, `render` and `push` refuse a native page whose screen is missing. The shared contract parser and the dist projection cannot see the content, so they check only the shape, the ids and the targets. Both fields survive `himi push` → `himi dist --shell brandy`: the projection keeps them with the rest of the site block, and a top-bar URL must also pass the bake-safe URL rule (https, with no query string).
332
346
 
333
347
  - **`pageTitle`** decides where a site page's screen draws its title in the top bar. `"auto"` (the default) draws none on a page that a tab, rail or drawer row opens, because the row's label already names it. It still draws one on an `overflow` page and on the page a link opens (`site_page`, which shows the page's own document title). `"always"` draws every title, which was the only behaviour before this setting, and `"never"` draws none. Under `menuSource: "runtime"`, `"auto"` keeps every title: the live menu can drop a page's row, so the build cannot know which titles a row repeats. A page's own `showTitle: true | false` wins over the rule. A hidden title is `topBar.titleDisplay: "hidden"` on that screen: nothing is drawn and the space is collapsed, but screen readers still announce the title as the screen's name. Because a screen's own `topBar` replaces `navigation.topBarDefault`, such a screen also carries the `topBar.actions` icons, so they stay on it. Website pages in a native app (`--site-pages`) keep their titles unless the block sets `pageTitle`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1752.0",
3
+ "version": "0.1754.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": "88829bcebae37fdbdc23997d9a9a3e45022b83d12c70aaed01b8dc27"
85
+ "falconPackageHash": "4ba7fdc3faa7f46bc39660718e5fd175e3e16f30ab37540cafdf4e27"
86
86
  }
@@ -0,0 +1,94 @@
1
+ {
2
+ "_recipe": "The programs list's two filters: the participant-status segmented control (All programs / Programs I joined; hidden for a guest) and the category chips (All categories first; hidden when the site has no categories). Service: registerProgramsSection(svc,{layout:'list'}); the worker owns the options and hides a control the source turns off (options.filters). Also the list's empty line (a category or the joined filter with no programs), hidden while there are cards.",
3
+ "_placeholders": {
4
+ "svc": "service name the page worker registered with registerProgramsSection",
5
+ "id": "unique node id prefix (e.g. the screen id)",
6
+ "statusLabel": "accessibility label of the status control",
7
+ "categoryLabel": "accessibility label of the category chips",
8
+ "allProgramsLabel": "fallback label of the first status option",
9
+ "joinedLabel": "fallback label of the second status option",
10
+ "allCategoriesLabel": "fallback label of the first category chip"
11
+ },
12
+ "node": {
13
+ "id": "{{id}}.filters",
14
+ "body": {
15
+ "package": "himalaya",
16
+ "type": "VStack",
17
+ "props": {
18
+ "spacing": 10,
19
+ "alignment": "leading",
20
+ "children": [
21
+ {
22
+ "id": "{{id}}.status_filter",
23
+ "body": {
24
+ "package": "himalaya",
25
+ "type": "SegmentedControl",
26
+ "props": {
27
+ "options": [
28
+ {
29
+ "id": "all",
30
+ "label": "{{allProgramsLabel}}"
31
+ },
32
+ {
33
+ "id": "joined",
34
+ "label": "{{joinedLabel}}"
35
+ }
36
+ ],
37
+ "optionsPath": "$service:{{svc}}.statusOptions",
38
+ "selectedId": "$service:{{svc}}.statusFilter",
39
+ "onChange": {
40
+ "actionId": "tier5.{{svc}}.setStatus"
41
+ }
42
+ }
43
+ },
44
+ "modifiers": {
45
+ "accessibilityLabel": "{{statusLabel}}",
46
+ "hiddenPath": "$service:{{svc}}.hideStatusFilter"
47
+ }
48
+ },
49
+ {
50
+ "id": "{{id}}.category_filter",
51
+ "body": {
52
+ "package": "himalaya",
53
+ "type": "FilterChips",
54
+ "props": {
55
+ "chips": [
56
+ {
57
+ "id": "",
58
+ "label": "{{allCategoriesLabel}}"
59
+ }
60
+ ],
61
+ "optionsPath": "$service:{{svc}}.categoryChips",
62
+ "selectedIds": [
63
+ "$service:{{svc}}.categoryId"
64
+ ],
65
+ "onChange": {
66
+ "actionId": "tier5.{{svc}}.setCategory"
67
+ }
68
+ }
69
+ },
70
+ "modifiers": {
71
+ "accessibilityLabel": "{{categoryLabel}}",
72
+ "hiddenPath": "$service:{{svc}}.hideCategoryFilter"
73
+ }
74
+ },
75
+ {
76
+ "id": "{{id}}.empty",
77
+ "body": {
78
+ "package": "himalaya",
79
+ "type": "Text",
80
+ "props": {
81
+ "text": "$service:{{svc}}.emptyText",
82
+ "style": "body",
83
+ "color": "textSecondary"
84
+ }
85
+ },
86
+ "modifiers": {
87
+ "hiddenPath": "$service:{{svc}}.noEmpty"
88
+ }
89
+ }
90
+ ]
91
+ }
92
+ }
93
+ }
94
+ }
@@ -0,0 +1,43 @@
1
+ {
2
+ "_recipe": "See all button for an INLINE programs list (a limited number of cards); shown only while more programs exist than the cards show. Omit when the scaffold has no himi_programs screen.",
3
+ "_placeholders": {
4
+ "svc": "service name registered with registerProgramsSection (inlineLimit set)",
5
+ "id": "unique node id prefix for this section",
6
+ "seeAllLabel": "button title",
7
+ "seeAllScreen": "screen id the button opens, himi_programs"
8
+ },
9
+ "node": {
10
+ "id": "{{id}}.seeall",
11
+ "body": {
12
+ "package": "himalaya",
13
+ "type": "VStack",
14
+ "props": {
15
+ "spacing": 0,
16
+ "alignment": "leading",
17
+ "children": [
18
+ {
19
+ "id": "{{id}}.seeall.button",
20
+ "body": {
21
+ "package": "himalaya",
22
+ "type": "Button",
23
+ "props": {
24
+ "title": "{{seeAllLabel}}",
25
+ "style": "secondary",
26
+ "size": "md",
27
+ "fullWidth": true,
28
+ "action": {
29
+ "actionId": "himi.open",
30
+ "params": { "screenId": "{{seeAllScreen}}" }
31
+ }
32
+ }
33
+ }
34
+ }
35
+ ]
36
+ }
37
+ },
38
+ "modifiers": {
39
+ "padding": { "leading": 0, "trailing": 0, "top": 8, "bottom": 8 },
40
+ "hiddenPath": "$service:{{svc}}.noSeeAll"
41
+ }
42
+ }
43
+ }
@@ -113,6 +113,7 @@ export interface State {
113
113
  categoryId: string;
114
114
  categoryChips: Option[];
115
115
  hideCategoryFilter: boolean;
116
+ noSeeAll: boolean;
116
117
  hidePriceRetry: boolean;
117
118
  priceRetryText: string;
118
119
  summary: string;
@@ -339,7 +340,7 @@ function programContent(o: { program: WixProgram; participant?: WixParticipant;
339
340
  // ── Reads ────────────────────────────────────────────────────────────────────
340
341
 
341
342
  interface Scope { email: string; memberId: string; scope: string }
342
- interface PageMeta extends Record<string, unknown> { email: string; memberId: string; scope: string; needsSignIn: boolean; joinedFilter: boolean }
343
+ interface PageMeta extends Record<string, unknown> { email: string; memberId: string; scope: string; needsSignIn: boolean; joinedFilter: boolean; more?: boolean }
343
344
 
344
345
  type Participations = Map<string, WixParticipant>;
345
346
  /** The member's participations for this scope — walked once per first page, reused by its later pages. */
@@ -457,6 +458,9 @@ export interface ProgramsSectionOptions {
457
458
  order?: string[];
458
459
  /** list: hide a filter the source section turns off. */
459
460
  filters?: { status?: boolean; category?: boolean };
461
+ /** list: the section's inline mode: show this many cards, no paging, and offer See all while more programs exist
462
+ * (the source's `extraProps.limit`). Absent: the list follows the cursor to the last program. */
463
+ inlineLimit?: number;
460
464
  }
461
465
 
462
466
  const CAROUSEL_LIMIT = 5;
@@ -469,6 +473,7 @@ export function registerProgramsSection(serviceName: string, options: ProgramsSe
469
473
  const display: Display = { card: carousel, duration: options.showDuration !== false, participants: options.showParticipants !== false };
470
474
  const showPrice = options.showPrice !== false;
471
475
  const limit = Math.min(PAGE_SIZE, Math.max(1, Math.floor(options.limit ?? CAROUSEL_LIMIT)));
476
+ const inlineLimit = !carousel && options.inlineLimit !== undefined && options.inlineLimit > 0 ? Math.min(PAGE_SIZE, Math.floor(options.inlineLimit)) : 0;
472
477
  const order = (options.order ?? []).filter((id) => typeof id === "string" && id).slice(0, ORDER_LIMIT);
473
478
  /** The promoted programs, in their configured order. A failed read promotes nothing: the default order stands. */
474
479
  async function promotedPrograms(): Promise<WixProgram[]> {
@@ -537,13 +542,18 @@ export function registerProgramsSection(serviceName: string, options: ProgramsSe
537
542
  // An ended program the member never joined is not theirs to see (the One App's visibility rule) —
538
543
  // applied only when the member's participations are known, so a degraded read hides nothing they joined.
539
544
  .filter((p) => !isEnded(p) || participations.has(p.id) || !participationsKnown);
540
- const programs = carousel ? visible.slice(0, limit) : visible;
545
+ const programs = carousel ? visible.slice(0, limit) : inlineLimit ? visible.slice(0, inlineLimit) : visible;
541
546
  const pagingMetadata = response.pagingMetadata as { hasNext?: boolean; cursors?: { next?: string | null } } | undefined;
542
547
  // A last page may still carry a cursor: `hasNext: false` wins, as in the catalog bundle.
543
- const nextCursor = carousel ? "" : pagingMetadata?.hasNext === false ? "" : pagingMetadata?.cursors?.next ?? "";
544
- if (!carousel && pagingMetadata?.hasNext && !nextCursor) throw new Error("Programs response is missing its next-page cursor");
545
- if (!programs.length && nextCursor && nextCursor !== pageCursor) {
546
- if (read + 1 < MAX_EMPTY_READS) { pageCursor = nextCursor; continue; }
548
+ const readCursor = carousel ? "" : pagingMetadata?.hasNext === false ? "" : pagingMetadata?.cursors?.next ?? "";
549
+ // An inline list never hands a cursor to the screen, but it still reads on past a page that held nothing to show.
550
+ const nextCursor = inlineLimit ? "" : readCursor;
551
+ if (!carousel && !inlineLimit && pagingMetadata?.hasNext && !nextCursor) throw new Error("Programs response is missing its next-page cursor");
552
+ // An inline list reads one page and says whether programs remain past what it shows: that is the See all.
553
+ const pageMore = visible.length > inlineLimit || pagingMetadata?.hasNext === true || !!readCursor;
554
+ if (inlineLimit) metadata.more = pageMore;
555
+ if (!programs.length && readCursor && readCursor !== pageCursor) {
556
+ if (read + 1 < MAX_EMPTY_READS) { pageCursor = readCursor; continue; }
547
557
  // Past the cap, end the list rather than hand back an empty page with a cursor nothing can load.
548
558
  return { items: [], nextCursor: "", metadata };
549
559
  }
@@ -570,7 +580,7 @@ export function registerProgramsSection(serviceName: string, options: ProgramsSe
570
580
  status: "loading", rows: [], isLoading: true, notLoading: false, isErrored: false, notErrored: true, noEmpty: true, hideList: true,
571
581
  emptyText: "", errorText: "", identityLine: "", needsSignIn: false, noSignIn: true, nextCursor: "", noMore: true, noPageError: true, loadingMore: false,
572
582
  statusFilter: "all", statusOptions: [], hideStatusFilter: true, categoryId: "", categoryChips: [], hideCategoryFilter: true,
573
- hidePriceRetry: true, priceRetryText: "", summary: "", hasRows: false, noRows: true,
583
+ noSeeAll: true, hidePriceRetry: true, priceRetryText: "", summary: "", hasRows: false, noRows: true,
574
584
  };
575
585
 
576
586
  /** A row shows a price when the section does and the member is not in or past the program. */
@@ -631,6 +641,8 @@ export function registerProgramsSection(serviceName: string, options: ProgramsSe
631
641
  hideStatusFilter: options.filters?.status === false || (!member && statusFilter !== "joined"),
632
642
  categoryId, categoryChips,
633
643
  hideCategoryFilter: options.filters?.category === false || categoriesFailed || !categories || categories.length === 0,
644
+ // See all only for an inline (limited) list that has programs past the cards it shows.
645
+ noSeeAll: !(inlineLimit && status === "ready" && meta.more === true),
634
646
  hidePriceRetry: status !== "ready" || !views.some((view) => view && view.route !== "disabled" && (scopeIncomplete || view.retryable)),
635
647
  priceRetryText: copyParam("memberPrograms.priceRetryText", "Some prices could not be loaded."),
636
648
  // The rows loaded so far are not the catalog: a count is only true once the last page is in.