@wix/himalaya-cli 0.1750.0 → 0.1751.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/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/builder.d.ts +3 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/himi-package.d.ts +478 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/host-compatibility.d.ts +56 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/icon-catalog.generated.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +4 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/site-shell.d.ts +154 -7
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/validator.d.ts +3 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/screens/src/index.d.ts +2 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/screens/src/podcast-service.d.ts +105 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/screens/src/podcast.d.ts +116 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +326 -13
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +730 -81
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +155 -0
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{b40ea5d0d6251898ff5617139fde8be008dd11e99a70b14c1052093685401700.bin → 21f35a12bd94f4ab97a9a75453c4adcadc438daf024a4b1950d5c356c123bd01.bin} +1 -1
- package/dist/browser-plane/sw.js +7 -7
- package/dist/cli.mjs +34995 -31326
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/component-reference.json +1 -1
- package/guides/component-reference.md +4 -0
- package/guides/designing-himi-screens.md +7 -0
- package/guides/getting-started.md +2 -0
- package/guides/headless-loop.md +1 -1
- package/guides/himi-skill.md +2 -0
- package/guides/index.json +6 -0
- package/guides/qa-builds.md +12 -1
- package/guides/recipe-podcast.md +149 -0
- package/guides/tier-5-add-a-screen.md +16 -2
- package/guides/wix-business-context.md +29 -0
- package/guides/wix-platform-usage.md +7 -2
- package/package.json +10 -10
- package/template-icons/fitness-gym.png +0 -0
- package/templates/beauty-salon/dev/index.ts +1 -1
- package/templates/beauty-salon/l10n/en.json +1 -1
- package/templates/beauty-salon/tier5-src/_shared/program-fields.ts +16 -0
- package/templates/beauty-salon/tier5-src/_shared/programs-section.ts +5 -8
- package/templates/beauty-salon/tier5-src/himi-branded-lite-agenda/index.ts +37 -4
- package/templates/branded-lite/dev/index.ts +101 -1
- package/templates/branded-lite/l10n/en.json +22 -1
- package/templates/branded-lite/l10n/es.json +22 -0
- package/templates/branded-lite/l10n/fr.json +18 -0
- package/templates/branded-lite/l10n/he.json +15 -0
- package/templates/branded-lite/tier5-src/_shared/program-fields.ts +16 -0
- package/templates/branded-lite/tier5-src/_shared/programs-section.ts +5 -8
- package/templates/branded-lite/tier5-src/himi-branded-lite-agenda/index.ts +37 -4
- package/templates/branded-lite/tier5-src/himi-branded-lite-podcasts/index.ts +14 -234
- package/templates/brandy/README.md +33 -0
- package/templates/brandy/config.ts +51 -7
- package/templates/brandy/dev/index.ts +23 -9
- package/templates/community-club/l10n/en.json +1 -1
- package/templates/community-club/tier5-src/_shared/program-fields.ts +16 -0
- package/templates/community-club/tier5-src/_shared/programs-section.ts +5 -8
- package/templates/events-meetups/l10n/en.json +1 -1
- package/templates/events-meetups/tier5-src/_shared/program-fields.ts +16 -0
- package/templates/events-meetups/tier5-src/_shared/programs-section.ts +5 -8
- package/templates/fitness-gym/README.md +53 -0
- package/templates/fitness-gym/config.ts +560 -0
- package/templates/fitness-gym/dev/index.ts +25787 -0
- package/templates/fitness-gym/himalaya.content.json +64 -0
- package/templates/fitness-gym/himalaya.template.json +15 -0
- package/templates/fitness-gym/icon.png +0 -0
- package/templates/fitness-gym/platforms.json +1 -0
- package/templates/fitness-gym/tier5-src/_shared/app-locale.ts +61 -0
- package/templates/fitness-gym/tier5-src/_shared/booking-location.ts +147 -0
- package/templates/fitness-gym/tier5-src/_shared/booking-session.ts +224 -0
- package/templates/fitness-gym/tier5-src/_shared/branded-lite-hosted.ts +280 -0
- package/templates/fitness-gym/tier5-src/_shared/branded-load-state.ts +109 -0
- package/templates/fitness-gym/tier5-src/_shared/business-chat-copy.ts +40 -0
- package/templates/fitness-gym/tier5-src/_shared/business-chat-history.ts +51 -0
- package/templates/fitness-gym/tier5-src/_shared/business-chat-message-model.ts +177 -0
- package/templates/fitness-gym/tier5-src/_shared/business-chat-model.ts +56 -0
- package/templates/fitness-gym/tier5-src/_shared/business-chat-presenter.ts +576 -0
- package/templates/fitness-gym/tier5-src/_shared/business-chat-transport.ts +148 -0
- package/templates/fitness-gym/tier5-src/_shared/collection-contract.ts +228 -0
- package/templates/fitness-gym/tier5-src/_shared/collection-query.ts +193 -0
- package/templates/fitness-gym/tier5-src/_shared/collection-service.ts +400 -0
- package/templates/fitness-gym/tier5-src/_shared/detail-presence.ts +51 -0
- package/templates/fitness-gym/tier5-src/_shared/engine-intl.ts +523 -0
- package/templates/fitness-gym/tier5-src/_shared/himi-account.ts +194 -0
- package/templates/fitness-gym/tier5-src/_shared/himi-booking-saved.ts +88 -0
- package/templates/fitness-gym/tier5-src/_shared/himi-bookings.ts +318 -0
- package/templates/fitness-gym/tier5-src/_shared/himi-copy.ts +116 -0
- package/templates/fitness-gym/tier5-src/_shared/himi-media.ts +29 -0
- package/templates/fitness-gym/tier5-src/_shared/himi-store.ts +7 -0
- package/templates/fitness-gym/tier5-src/_shared/himi-text.ts +24 -0
- package/templates/fitness-gym/tier5-src/_shared/host-events.ts +66 -0
- package/templates/fitness-gym/tier5-src/_shared/hosted-checkout.ts +70 -0
- package/templates/fitness-gym/tier5-src/_shared/iap-attendance-form.ts +106 -0
- package/templates/fitness-gym/tier5-src/_shared/iap-attendance-purchase.ts +216 -0
- package/templates/fitness-gym/tier5-src/_shared/iap-attendance.ts +38 -0
- package/templates/fitness-gym/tier5-src/_shared/iap-worker.ts +127 -0
- package/templates/fitness-gym/tier5-src/_shared/inbox-rooms.ts +68 -0
- package/templates/fitness-gym/tier5-src/_shared/local-preferences.ts +38 -0
- package/templates/fitness-gym/tier5-src/_shared/member-access.ts +63 -0
- package/templates/fitness-gym/tier5-src/_shared/member-account-routes.ts +52 -0
- package/templates/fitness-gym/tier5-src/_shared/member-bookings.ts +107 -0
- package/templates/fitness-gym/tier5-src/_shared/member-screen.ts +99 -0
- package/templates/fitness-gym/tier5-src/_shared/notification-target.ts +141 -0
- package/templates/fitness-gym/tier5-src/_shared/offset-page.ts +10 -0
- package/templates/fitness-gym/tier5-src/_shared/online-actions.ts +76 -0
- package/templates/fitness-gym/tier5-src/_shared/owner-load-error.ts +348 -0
- package/templates/fitness-gym/tier5-src/_shared/payment-setup.ts +6 -0
- package/templates/fitness-gym/tier5-src/_shared/pricing-plan-display.ts +64 -0
- package/templates/fitness-gym/tier5-src/_shared/program-description.ts +11 -0
- package/templates/fitness-gym/tier5-src/_shared/program-fields.ts +16 -0
- package/templates/fitness-gym/tier5-src/_shared/program-standing.ts +46 -0
- package/templates/fitness-gym/tier5-src/_shared/rich-body.ts +78 -0
- package/templates/fitness-gym/tier5-src/_shared/rich-content-link.ts +34 -0
- package/templates/fitness-gym/tier5-src/_shared/sign-in-sheet.ts +18 -0
- package/templates/fitness-gym/tier5-src/_shared/staff-name.ts +18 -0
- package/templates/fitness-gym/tier5-src/_shared/weekly-goal.ts +107 -0
- package/templates/fitness-gym/tier5-src/_shared/wix-bi.ts +85 -0
- package/templates/fitness-gym/tier5-src/_shared/wix-member-links.ts +114 -0
- package/templates/fitness-gym/tier5-src/_shared/wix-service-price.ts +146 -0
- package/templates/fitness-gym/tier5-src/business-chat/index.ts +732 -0
- package/templates/fitness-gym/tier5-src/business-contact/index.ts +6 -0
- package/templates/fitness-gym/tier5-src/himi-booking-account/index.ts +267 -0
- package/templates/fitness-gym/tier5-src/himi-booking-bookings/index.ts +468 -0
- package/templates/fitness-gym/tier5-src/himi-booking-service/index.ts +1190 -0
- package/templates/fitness-gym/tier5-src/himi-booking-services/index.ts +791 -0
- package/templates/fitness-gym/tier5-src/himi-booking-time/index.ts +1729 -0
- package/templates/fitness-gym/tier5-src/himi-branded-lite-agenda/index.ts +988 -0
- package/templates/fitness-gym/tier5-src/himi-branded-lite-member-programs/index.ts +656 -0
- package/templates/fitness-gym/tier5-src/himi-branded-lite-notifications/index.ts +256 -0
- package/templates/fitness-gym/tier5-src/himi-branded-lite-plans/index.ts +495 -0
- package/templates/fitness-gym/tier5-src/himi-branded-lite-program/facts.ts +52 -0
- package/templates/fitness-gym/tier5-src/himi-branded-lite-program/index.ts +845 -0
- package/templates/fitness-gym/tier5-src/himi-fitcoach-goal/index.ts +191 -0
- package/templates/fitness-gym/tier5-src/himi-fitcoach-home/index.ts +619 -0
- package/templates/fitness-gym/tier5-src/himi-store-account/index.ts +1007 -0
- package/templates/fitness-gym/tier5-src/wix-spaces-my-subscriptions/index.ts +84 -0
- package/templates/fitness-gym/tier5-src/wix-spaces-subscription-detail/index.ts +139 -0
- package/templates/fitness-gym/tokens.json +414 -0
- package/templates/gym-fitness/dev/index.ts +1 -1
- package/templates/gym-fitness/l10n/en.json +1 -1
- package/templates/gym-fitness/tier5-src/_shared/program-fields.ts +16 -0
- package/templates/gym-fitness/tier5-src/_shared/programs-section.ts +5 -8
- package/templates/gym-fitness/tier5-src/himi-branded-lite-agenda/index.ts +37 -4
- package/templates/medical-services/dev/index.ts +2 -1
- package/templates/medical-services/tier5-src/himi-booking-account/index.ts +16 -1
- package/templates/nonprofit-cause/l10n/en.json +1 -1
- package/templates/nonprofit-cause/tier5-src/_shared/program-fields.ts +16 -0
- package/templates/nonprofit-cause/tier5-src/_shared/programs-section.ts +5 -8
- package/templates/personal-fitness-trainer/dev/index.ts +2 -2
- package/templates/personal-fitness-trainer/tier5-src/himi-branded-lite-agenda/index.ts +37 -4
- package/templates/podcast-creator/dev/index.ts +100 -0
- package/templates/podcast-creator/l10n/en.json +22 -1
- package/templates/podcast-creator/l10n/es.json +22 -0
- package/templates/podcast-creator/l10n/fr.json +18 -0
- package/templates/podcast-creator/l10n/he.json +15 -0
- package/templates/podcast-creator/tier5-src/_shared/program-fields.ts +16 -0
- package/templates/podcast-creator/tier5-src/_shared/programs-section.ts +5 -8
- package/templates/podcast-creator/tier5-src/himi-branded-lite-podcasts/index.ts +14 -234
- package/templates/portfolio-creative/l10n/en.json +1 -1
- package/templates/portfolio-creative/tier5-src/_shared/program-fields.ts +16 -0
- package/templates/portfolio-creative/tier5-src/_shared/programs-section.ts +5 -8
- package/templates/restaurant/l10n/en.json +1 -1
- package/templates/restaurant/tier5-src/_shared/program-fields.ts +16 -0
- package/templates/restaurant/tier5-src/_shared/programs-section.ts +5 -8
- package/templates/retail-store/l10n/en.json +1 -1
- package/templates/retail-store/tier5-src/_shared/program-fields.ts +16 -0
- package/templates/retail-store/tier5-src/_shared/programs-section.ts +5 -8
- package/templates/salon-spa/dev/index.ts +1 -1
- package/templates/salon-spa/tier5-src/himi-booking-account/index.ts +16 -1
- package/templates/salon-spa/tier5-src/himi-branded-lite-agenda/index.ts +37 -4
- package/templates/yoga-studio/dev/index.ts +1 -1
- package/templates/yoga-studio/l10n/en.json +1 -1
- package/templates/yoga-studio/tier5-src/_shared/program-fields.ts +16 -0
- package/templates/yoga-studio/tier5-src/_shared/programs-section.ts +5 -8
- package/templates/yoga-studio/tier5-src/himi-branded-lite-agenda/index.ts +37 -4
|
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 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 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}",
|
|
@@ -2480,6 +2480,10 @@ export interface ScreenDescriptor {
|
|
|
2480
2480
|
/** "" / "visible" (default) | "hidden": hide the bottom tab bar while this screen is the
|
|
2481
2481
|
* visible top of its tab's stack. Static; no effect in a presentation. */
|
|
2482
2482
|
tabBarVisibility?: string;
|
|
2483
|
+
/** "" / "pinned" (default) | "floating": how the host draws `stickyFooter`. Floating draws it
|
|
2484
|
+
* over the bottom of the scroll with no band behind it (a Fab, a snackbar) and insets the
|
|
2485
|
+
* content by its height. Static; an unknown value is "pinned". */
|
|
2486
|
+
stickyFooterPlacement?: string;
|
|
2483
2487
|
etag?: string;
|
|
2484
2488
|
cacheControl?: CacheControl;
|
|
2485
2489
|
telemetryScreenName?: string;
|
|
@@ -490,6 +490,13 @@ build/validate/render cycles because the failure looks like a content bug rather
|
|
|
490
490
|
only, while `args` preserves typed values. `tier5.*` actions keep their
|
|
491
491
|
params/args as authored (read the state in the reducer); their declared `nav` resolves
|
|
492
492
|
through the existing navigation contract.
|
|
493
|
+
- **Floating button** — when the plan chose a floating action (a WhatsApp contact button, a
|
|
494
|
+
compose button), put `hstack[spacer(), fab]` in `stickyFooter` with no background, and set
|
|
495
|
+
`stickyFooterPlacement: "floating"` on the descriptor. The footer then draws over the bottom of
|
|
496
|
+
the scroll at the bottom end corner, with no band, on iOS, Android, macOS and web; the content ends the
|
|
497
|
+
footer's height higher, so the last row scrolls fully above the button, and a tap beside the
|
|
498
|
+
`Fab` reaches the content under it. A bar (price, confirm) stays `"pinned"`, the default. A
|
|
499
|
+
brand contact button uses the brand's logo glyph (`whatsapp`), not a generic `chat`.
|
|
493
500
|
|
|
494
501
|
---
|
|
495
502
|
|
|
@@ -369,6 +369,8 @@ pull-to-refresh + load-more), a create/edit form `examples/form-submit.*`
|
|
|
369
369
|
(the `recipe-onboarding` guide (its installed skill, or `himi docs recipe-onboarding`)), a sign-in/register screen and a membership paywall
|
|
370
370
|
(the `recipe-auth` guide (its installed skill, or `himi docs recipe-auth`), the `recipe-checkout` guide (its installed skill, or `himi docs recipe-checkout`) — premade `authScreen`/`checkoutScreen` from
|
|
371
371
|
`@wix/himalaya/screens`; use these instead of calling `@himalaya/wix-platform` `auth.signIn()` from a worker),
|
|
372
|
+
a Podcasts screen with in-app playback (the `recipe-podcast` guide (its installed skill, or `himi docs recipe-podcast`) — premade `podcastScreen` +
|
|
373
|
+
`createPodcastService`; never fetch RSS from a worker, open episodes in a browser or simulate a player),
|
|
372
374
|
and the loading/empty/error/ready idiom they all share
|
|
373
375
|
(the `recipe-four-state` guide (its installed skill, or `himi docs recipe-four-state`) — every recipe that loads or writes data shows a loading state,
|
|
374
376
|
a classified error state and a recovery action where the user can fix the failure). Then — **before you
|
package/guides/headless-loop.md
CHANGED
|
@@ -237,7 +237,7 @@ A few flags worth knowing up front (all discoverable via `himi render --help`):
|
|
|
237
237
|
which over-stretches a phone layout.
|
|
238
238
|
- **`himi icons`** lists the valid `Icon.name` vocabulary — an unknown name silently falls back to a
|
|
239
239
|
generic glyph on device (and `validate` warns), so pick from this list rather than guessing SF-Symbol
|
|
240
|
-
names. The full set (aliases included): ai, arrow_down, arrow_left, arrow_right, arrow_up, back, bag, bag_fill, barcode, bell, bell_fill, bell_off, bell_slash, book, bookmark, bookmark_fill, boxes, branch, calendar, camera, cart, cart_fill, chart, chat, check, checklist, checkmark, chevron_down, chevron_left, chevron_right, chevron_up, circle, circle_fill, clock, close, concealed, cookie, copy, dashboard, doc, document, download, edit, ellipsis, error, expand, external_link, eye, eye_slash, filter, folder, forward, fullscreen, gear, gift, globe, grid, grid_fill, grip, heart, heart_fill, help, home, home_fill, house, image, inbox, info, layers, link, list, location, lock, logout, mail, map, menu, message, mic, mic_fill, microphone, microphone_fill, minus, moon, more, more_vertical, music, newspaper, newspaper_fill, next, paper_plane, pause, pencil, people, person, person_fill, phone, photo, pin, play, play_circle, play_circle_fill, plus, plus_circle, plus_circle_fill, prev, question, redo, refresh, repeat, rss, search, send, send_arrow, settings, settings_fill, share, shuffle, skip_back, skip_forward, skip_next, skip_previous, star, star_fill, stop, success, tag, ticket, ticket_fill, trash, tray, undo, user, visible, volume, warning, wifi, xmark.
|
|
240
|
+
names. The full set (aliases included): ai, arrow_down, arrow_left, arrow_right, arrow_up, back, bag, bag_fill, barcode, bell, bell_fill, bell_off, bell_slash, book, bookmark, bookmark_fill, boxes, branch, calendar, camera, cart, cart_fill, chart, chat, check, checklist, checkmark, chevron_down, chevron_left, chevron_right, chevron_up, circle, circle_fill, clock, close, concealed, cookie, copy, dashboard, doc, document, download, edit, ellipsis, error, expand, external_link, eye, eye_slash, filter, folder, forward, fullscreen, gear, gift, globe, grid, grid_fill, grip, heart, heart_fill, help, home, home_fill, house, image, inbox, info, layers, link, list, location, lock, logout, mail, map, menu, message, mic, mic_fill, microphone, microphone_fill, minus, moon, more, more_vertical, music, newspaper, newspaper_fill, next, paper_plane, pause, pencil, people, person, person_fill, phone, photo, pin, play, play_circle, play_circle_fill, plus, plus_circle, plus_circle_fill, prev, question, redo, refresh, repeat, rss, search, send, send_arrow, settings, settings_fill, share, shuffle, skip_back, skip_forward, skip_next, skip_previous, star, star_fill, stop, success, tag, ticket, ticket_fill, trash, tray, undo, user, visible, volume, warning, whatsapp, wifi, xmark.
|
|
241
241
|
|
|
242
242
|
## 4b. Prove it WORKS, not just that it renders (`himi test`, when installed)
|
|
243
243
|
|
package/guides/himi-skill.md
CHANGED
|
@@ -392,6 +392,8 @@ pull-to-refresh + load-more), a create/edit form `examples/form-submit.*`
|
|
|
392
392
|
(the `recipe-onboarding` guide (its installed skill, or `himi docs recipe-onboarding`)), a sign-in/register screen and a membership paywall
|
|
393
393
|
(the `recipe-auth` guide (its installed skill, or `himi docs recipe-auth`), the `recipe-checkout` guide (its installed skill, or `himi docs recipe-checkout`) — premade `authScreen`/`checkoutScreen` from
|
|
394
394
|
`@wix/himalaya/screens`; use these instead of calling `@himalaya/wix-platform` `auth.signIn()` from a worker),
|
|
395
|
+
a Podcasts screen with in-app playback (the `recipe-podcast` guide (its installed skill, or `himi docs recipe-podcast`) — premade `podcastScreen` +
|
|
396
|
+
`createPodcastService`; never fetch RSS from a worker, open episodes in a browser or simulate a player),
|
|
395
397
|
and the loading/empty/error/ready idiom they all share
|
|
396
398
|
(the `recipe-four-state` guide (its installed skill, or `himi docs recipe-four-state`) — every recipe that loads or writes data shows a loading state,
|
|
397
399
|
a classified error state and a recovery action where the user can fix the failure). Then — **before you
|
package/guides/index.json
CHANGED
|
@@ -184,6 +184,12 @@
|
|
|
184
184
|
"category": "Recipes",
|
|
185
185
|
"file": "recipe-checkout.md"
|
|
186
186
|
},
|
|
187
|
+
{
|
|
188
|
+
"id": "recipe-podcast",
|
|
189
|
+
"title": "Recipe: podcast episodes with in-app playback (premade podcast flow)",
|
|
190
|
+
"category": "Recipes",
|
|
191
|
+
"file": "recipe-podcast.md"
|
|
192
|
+
},
|
|
187
193
|
{
|
|
188
194
|
"id": "image-preview",
|
|
189
195
|
"title": "Image and video preview",
|
package/guides/qa-builds.md
CHANGED
|
@@ -1185,7 +1185,18 @@ build that only Wix staff may get:
|
|
|
1185
1185
|
|---|---|---|
|
|
1186
1186
|
| `androidBuildType` | `"debug"` (default `"release"`) | a **debuggable** APK (`:<shell>-app:assembleDebug`; an operator `DIST_ANDROID_TASK` still wins), the way the release manager's `DEV_RELEASE` Android builds are (`assembleDevDebug` in `ai-scheduling-assistant`'s `ci-android.sh`) |
|
|
1187
1187
|
| `androidSigning` | `"oneapp-debug"` (the default for a debug build) | signed with the shared One App debug key — the key `DEV_RELEASE` builds sign with, alias `oneAppDebug`, key password `123456`, the same as the `development` signingConfig of `mobile-apps-engine` and `ai-scheduling-assistant`. There, gradle signs; here `apksigner` re-signs the gradle output with it, because a named key always outranks the app's own signingConfig |
|
|
1188
|
-
| `borrowIosBundleId` | `"ent.wix.admin.dev"` |
|
|
1188
|
+
| `borrowIosBundleId` | `"ent.wix.admin.dev"` | accepted for a staff caller (still only the `ent.*` allow-list) but **not honoured while minted signing is configured**: the iOS build then signs under its own minted `wix-managed` identity — see below |
|
|
1189
|
+
|
|
1190
|
+
**iOS signs with a minted Wix identity, not the borrowed one.** `ent.wix.admin.dev` is the id MRE maps
|
|
1191
|
+
Owner dev builds to, but the build machines' `profiles.tgz` holds no profile for it. A borrowed id turns minted
|
|
1192
|
+
signing off, so the build fell to automatic development signing and failed with "No profiles for
|
|
1193
|
+
ent.wix.admin.dev were found" (jobs 9e0d11cb, 4f06cc95). For a **self-serve Wix-staff** caller, when minted
|
|
1194
|
+
signing is configured, the service therefore ignores `borrowIosBundleId` and mints the app's own
|
|
1195
|
+
enterprise identity under the Wix enterprise account (team `XPHGA2FMQQ`). That is the same certificate, so any
|
|
1196
|
+
employee can install it once they trust the profile; it is verified on a real iPhone (job 005b1708). Nothing is
|
|
1197
|
+
borrowed, so the build replaces no Owner app on the device, and it does not carry the Owner dev identity. The
|
|
1198
|
+
record keeps `wixStaff: true`, so the link stays internal-only. An **internal** credential (`himi dist
|
|
1199
|
+
--borrow-ios-id`) still borrows an id the pool holds.
|
|
1189
1200
|
|
|
1190
1201
|
Every field is validated on every request: an unknown `androidBuildType` is `400
|
|
1191
1202
|
invalid_android_build_type` (iOS-only included), a debug Play bundle is `400
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
# Recipe: podcast episodes with in-app playback (premade `podcastScreen` + `createPodcastService`)
|
|
2
|
+
|
|
3
|
+
For a **Podcasts screen** — episodes from a public RSS feed, played in the app — use the
|
|
4
|
+
premade pair from `@wix/himalaya/screens`. It is the same code Branded Lite and the
|
|
5
|
+
`podcast-creator` template run. Do **not** write your own feed reader or player.
|
|
6
|
+
|
|
7
|
+
## Do not do these
|
|
8
|
+
|
|
9
|
+
- **Do not fetch the RSS feed yourself.** `wixApi.call` refuses a third-party URL
|
|
10
|
+
("not an approved first-party endpoint"). A worker has no general `fetch`. Do not
|
|
11
|
+
ask for that allowlist to be widened.
|
|
12
|
+
- **Do not depend on a server action** such as an RSS import action. A generated app
|
|
13
|
+
has no server of its own to deploy one to.
|
|
14
|
+
- **Do not open the episode in a browser** (`open_url`). Opening a URL is not playback.
|
|
15
|
+
The browser can also fail to play the audio, and the app then loses its queue and
|
|
16
|
+
position.
|
|
17
|
+
- **Do not simulate playback.** That means no local `isPlaying` flag, no timer-based
|
|
18
|
+
progress and no fake seek. A worker has no timers. State comes from the real player.
|
|
19
|
+
|
|
20
|
+
## How it works
|
|
21
|
+
|
|
22
|
+
- **Feed.** The service reads the feed through the Wix Podcasts feed gateway,
|
|
23
|
+
`POST https://podcasts.wix.com/api/feed/graphql`. Every host (iOS, Android, web)
|
|
24
|
+
allows this exact endpoint through the `wix_api` bridge without a member or
|
|
25
|
+
visitor credential. The gateway reads the RSS and follows its redirects on the
|
|
26
|
+
server, so no redirect target reaches the device.
|
|
27
|
+
- **Playback.** The service plays each episode's own enclosure URL with
|
|
28
|
+
`@himalaya/media-playback`. It hands the queue to the native player and
|
|
29
|
+
subscribes to its status at boot. So position, duration, play/pause and errors
|
|
30
|
+
always come from the player, also after the user leaves the screen and comes back.
|
|
31
|
+
Compact native updates are reconciled with a full SDK status read, including
|
|
32
|
+
episode changes made through system controls. Overlapping reads are coalesced.
|
|
33
|
+
Background playback, the lock screen and the notification controls come with
|
|
34
|
+
the native player.
|
|
35
|
+
|
|
36
|
+
## 1. Capabilities — plan them before the first binary
|
|
37
|
+
|
|
38
|
+
Declare **both** ids in config.ts **and** on the screen. `podcastScreen` declares
|
|
39
|
+
them on the screen for you.
|
|
40
|
+
|
|
41
|
+
```ts
|
|
42
|
+
// config.ts
|
|
43
|
+
capabilities: ["wix_api", "media_playback"],
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
`media_playback` is native. It adds the media module and its permissions: iOS
|
|
47
|
+
`UIBackgroundModes` audio, and Android `FOREGROUND_SERVICE`,
|
|
48
|
+
`FOREGROUND_SERVICE_MEDIA_PLAYBACK` and `POST_NOTIFICATIONS`. **An OTA push cannot
|
|
49
|
+
add it to an installed binary.** Put it in the list before you request the app's
|
|
50
|
+
first binary. If you add Podcasts to an app that already has a binary, build a new
|
|
51
|
+
one with `himi dist`.
|
|
52
|
+
|
|
53
|
+
`himi validate` checks this:
|
|
54
|
+
|
|
55
|
+
- `app_capability_missing`: the screen uses an id that config.ts does not list.
|
|
56
|
+
No binary built from that list can play.
|
|
57
|
+
- `native_rebuild_required`: the app's last `himi dist` was built without
|
|
58
|
+
`media_playback`. Existing installs cannot play until a new binary is installed.
|
|
59
|
+
Do not call the feature ready before that binary is built and installed.
|
|
60
|
+
|
|
61
|
+
`himi capabilities media_playback` gives the full native requirements.
|
|
62
|
+
|
|
63
|
+
## 2. The worker
|
|
64
|
+
|
|
65
|
+
```ts
|
|
66
|
+
// tier5-src/podcasts/index.ts
|
|
67
|
+
import { createPodcastService } from "@wix/himalaya/screens";
|
|
68
|
+
|
|
69
|
+
const svc = createPodcastService({ service: "podcast" });
|
|
70
|
+
export { svc };
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Options:
|
|
74
|
+
|
|
75
|
+
- `service`: must match the screen.
|
|
76
|
+
- `limit`: 1–100 episodes, 40 by default.
|
|
77
|
+
- `messages`: worker copy, including dynamic Play/Pause labels and queue/resume templates.
|
|
78
|
+
- `text`: optional action-time copy resolver for a host that supplies translated messages on load.
|
|
79
|
+
- `queue` and `progress`: `{ read, write }` stores, if the queue and resume
|
|
80
|
+
positions must outlive the session.
|
|
81
|
+
|
|
82
|
+
## 3. The screen
|
|
83
|
+
|
|
84
|
+
```ts
|
|
85
|
+
import { podcastScreen } from "@wix/himalaya/screens";
|
|
86
|
+
|
|
87
|
+
const podcasts = () => podcastScreen({
|
|
88
|
+
bundleUrl: "http://localhost:8190/v1/bundles/podcasts",
|
|
89
|
+
service: "podcast",
|
|
90
|
+
// The creator's own public feed, as a runtime setting. An unset feed shows an empty
|
|
91
|
+
// state. Never fill in a sample show as a product default.
|
|
92
|
+
feedUrl: process.env.PODCAST_FEED_URL?.trim() || "",
|
|
93
|
+
});
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
The screen shows the episode list and a pinned player. The player has a title,
|
|
97
|
+
a scrubber, previous, back 15 s, play/pause, forward 30 s and next. Feed errors
|
|
98
|
+
show beside the list with their own retry button. Playback errors show in the
|
|
99
|
+
player with their own retry button.
|
|
100
|
+
|
|
101
|
+
If the app already has an RSS feed setting, keep it and pass it as `feedUrl`.
|
|
102
|
+
|
|
103
|
+
## What each state means
|
|
104
|
+
|
|
105
|
+
| State | When | Retry |
|
|
106
|
+
| --- | --- | --- |
|
|
107
|
+
| `feedState: "unconfigured"` | No feed URL. Nothing is requested. | — |
|
|
108
|
+
| `feedError: "invalid_feed_url"` | The URL is not public `http(s)`, contains user info (a credential), or names localhost or a private network. Nothing is requested. | Hidden: it fails the same way every time |
|
|
109
|
+
| `feedError: "feed_unavailable"` | The gateway could not read the feed, or the request failed. | `retryFeed` reads the same feed again |
|
|
110
|
+
| `feedError: "feed_malformed"` | The answer had no episode list. | `retryFeed` |
|
|
111
|
+
| `feedState: "empty"` | The feed has no episodes, or none with a usable enclosure (`unplayableCount`). | — |
|
|
112
|
+
| `playbackError: "media_failed"` | The player reported an error for this episode. | `retryPlayback` repeats the failed control or restarts the failed episode |
|
|
113
|
+
| `playbackError: "no_audio"` | The episode has no audio. | — |
|
|
114
|
+
|
|
115
|
+
Dispatch failures do not yet expose stable error codes. They show a generic playback error;
|
|
116
|
+
`himi validate` supplies the typed native rebuild diagnostic before publishing.
|
|
117
|
+
|
|
118
|
+
An episode without an enclosure is never given the feed URL or another URL as
|
|
119
|
+
its audio. The service counts it in `unplayableCount` and does not list it.
|
|
120
|
+
|
|
121
|
+
## Testing
|
|
122
|
+
|
|
123
|
+
- `himi validate` checks the capability planning above.
|
|
124
|
+
- `himi test --content <dir> --json` dispatches the screen's actions against the
|
|
125
|
+
real worker.
|
|
126
|
+
- A browser preview shows the list and the web player. It does not prove native
|
|
127
|
+
playback.
|
|
128
|
+
- On a device, check that audio plays and the position advances. Then check
|
|
129
|
+
pause, seek, previous and next, background and lock-screen controls, and that
|
|
130
|
+
the player shows the right state when you come back to the screen. Opening a
|
|
131
|
+
URL or reaching a state flag is not proof of playback.
|
|
132
|
+
|
|
133
|
+
## URL and gateway boundaries
|
|
134
|
+
|
|
135
|
+
Only public feed URLs belong in screen configuration. The URL is delivered to app users.
|
|
136
|
+
Descriptor creation rejects invalid or user-info-bearing settings before serializing them;
|
|
137
|
+
private feeds need a server-side, secret-backed integration. Do not put credentials in the
|
|
138
|
+
path or query either. Feed URLs may use HTTP because the gateway reads them server-side;
|
|
139
|
+
audio enclosures must use HTTPS to work under native transport policy.
|
|
140
|
+
|
|
141
|
+
The client checks URL syntax and obvious private literal hosts. It cannot resolve DNS,
|
|
142
|
+
prevent rebinding, or validate the gateway's redirect hops. These checks are not an SSRF
|
|
143
|
+
security boundary. DNS pinning, private-address refusal and redirect validation belong
|
|
144
|
+
in the existing feed gateway; its deployment is separate from this SDK. This change does
|
|
145
|
+
not widen the Wix bridge endpoint allowlist or establish that gateway's server-side policy.
|
|
146
|
+
|
|
147
|
+
A failed player-status read does not mean the player is idle. Loading the screen preserves
|
|
148
|
+
any ongoing session and restores a saved queue only after a confirmed idle snapshot.
|
|
149
|
+
A newer control cancels an in-flight queue edit before it can overwrite the new player state.
|
|
@@ -751,10 +751,16 @@ nothing can sign the user in, so the link **fails closed**: it never opens, no s
|
|
|
751
751
|
target's tab (or the default tab) is selected at its root and the link is dropped
|
|
752
752
|
(`nav_verb_dropped` / `auth_unavailable`, plus a `[deep-link] refused requiresAuth screen …` line
|
|
753
753
|
in the device log). Serving the app's config logs a warning for that combination. iOS, Android and
|
|
754
|
-
macOS share this rule
|
|
755
|
-
|
|
754
|
+
macOS share this rule. On macOS the Branded Lite and Himi Player shells mount the link cover (below);
|
|
755
|
+
any other Mac shell binds no sign-in gate, so its `requiresAuth` links fail closed. The web host does not hold links yet. In-app navigation (`himi.open`,
|
|
756
756
|
`_nav`) is not gated: a screen the app itself opens is the app's own business.
|
|
757
757
|
|
|
758
|
+
A link the router does not resolve — a `<scheme>://screen/<id>` whose screen is `isPublic: false`
|
|
759
|
+
(without `allowPrivate`) or not in `linkableScreens` at all — **does not open**, on every platform.
|
|
760
|
+
No shell pushes the id itself: iOS shells call `DeepLinkRouter.reportUnresolved(url, config:)`, which
|
|
761
|
+
logs `[deep-link] refused '<id>' …` and drops it (`nav_verb_dropped` / `not_public` or
|
|
762
|
+
`not_linkable`); Android drops it in core the same way. To make a screen linkable, declare it.
|
|
763
|
+
|
|
758
764
|
A shell gets this through core: the coordinator asks the gate the shell's `AuthGateRoot` /
|
|
759
765
|
`AuthSignInCover` bound. Three things are the shell's:
|
|
760
766
|
|
|
@@ -766,6 +772,14 @@ A shell gets this through core: the coordinator asks the gate the shell's `AuthG
|
|
|
766
772
|
start) sets `coordinator.authGate = <its SessionGate>` where it builds the coordinator. A shell
|
|
767
773
|
that never mounts `AuthGateRoot` / `AuthSignInCover` has no sign-in a link can wait on, so its
|
|
768
774
|
`requiresAuth` links never open — mount one to have them open for a signed-in user.
|
|
775
|
+
- **No root of its own? Mount the link cover.** A shell whose sign-in is not an `AuthGateRoot`
|
|
776
|
+
(Branded Lite, Himi Player) puts `.linkSignInCover(gate:provider:)` (SwiftUI) /
|
|
777
|
+
`LinkSignInCover(gate, provider)` (Compose) on its content. `provider` names the member provider
|
|
778
|
+
links are decided by, read at each decision: return nil for a visitor-only build (the links keep
|
|
779
|
+
failing closed), and in a multi-tenant host return the ACTIVE tenant's own provider only — the
|
|
780
|
+
gate still observes the outgoing tenant's provider while a switch is in flight, and only the named
|
|
781
|
+
provider's own state counts, so that session never opens the next tenant's link. It does not take
|
|
782
|
+
over `wixPlatform.auth.signIn()`.
|
|
769
783
|
- **Mark the bootstrap.** Call `sessionGate.markSilentBootstrapSettled()` once its
|
|
770
784
|
`provider.bootstrap()` returns. Until then a held link waits (a provider not bound yet is
|
|
771
785
|
waited for too, never read as "no auth"); a shell that never marks it waits a short grace
|
|
@@ -305,6 +305,35 @@ Each page becomes one screen that carries two forms (`siteScreens(site)` in `@wi
|
|
|
305
305
|
|
|
306
306
|
The block is validated with the shell's own rules before it is written. Only a site shell ever receives it: the analysis leaves it out for any other target, and the merge drops it for a shell whose committed contract has no `site`. `--apply` onto a site shell without a `site` block in the overlay is refused (`site_shell_needs_site`), because it would keep the previous website: in the repo, `--shell brandy` would ship the shell's demo site under the customer's brand; off-repo, the package would keep its last site. The one other `site` block is the `--site-pages` one below.
|
|
307
307
|
|
|
308
|
+
#### Top-bar icons and native pages
|
|
309
|
+
|
|
310
|
+
Three optional parts of a site shell's `site` block add or trim native chrome with no code. The analysis never writes them, and a re-run keeps them, along with each page's `showTitle`. Page references follow their page by its path when the re-derived map renumbers ids, and one whose page is gone is dropped with a warning. In a content package they live in its `provisioning.json`: edit them there. A re-run reads them from it (an overlay copy that disagrees is replaced, with a warning), and `--apply` keeps them even when it points the package at a new website, such as the template's placeholder. Without a package, the analysis overlay holds them, and analyzing a different website from the same folder leaves them out, since they name the old site's pages and links:
|
|
311
|
+
|
|
312
|
+
```json
|
|
313
|
+
"topBar": { "actions": [
|
|
314
|
+
{ "id": "cart", "icon": "cart", "label": "Cart", "target": { "page": "cart" } },
|
|
315
|
+
{ "id": "alerts", "icon": "bell", "label": "Notifications", "target": { "screen": "himi_notification_settings" } },
|
|
316
|
+
{ "id": "insta", "icon": "photo", "label": "Instagram", "target": { "url": "https://instagram.com/yourshop" } }
|
|
317
|
+
] },
|
|
318
|
+
"nativePages": [
|
|
319
|
+
{ "id": "rewards", "screenId": "rewards", "title": "Rewards", "icon": "star", "placement": "tab", "after": "home" }
|
|
320
|
+
]
|
|
321
|
+
```
|
|
322
|
+
|
|
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
|
+
- `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).
|
|
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
|
+
|
|
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
|
+
- **`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
|
+
|
|
331
|
+
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
|
+
|
|
333
|
+
- **`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`.
|
|
334
|
+
|
|
335
|
+
A cart badge on a top-bar icon is not supported yet. The site's cart count (the `site.cart` event) reaches only the worker of the page's own screen, not the app-level navigation worker that drives top-bar badges.
|
|
336
|
+
|
|
308
337
|
### Pages with no native screen: `--site-pages`
|
|
309
338
|
|
|
310
339
|
Branded Lite renders the site with its own screens, so by default `--apply` adds no website page. `--site-pages` is the opt-in for the site's pages that have no native screen: each one opens the website, as a website page in the drawer.
|
|
@@ -17,6 +17,8 @@ served flags and `i18n`, `ping` and `deeplink` always answer from the seam. This
|
|
|
17
17
|
2. The worker's descriptor lists `"wix_platform"` in `logic_bundle.declared_capabilities`
|
|
18
18
|
— otherwise every call fails closed (SDK-import check + native-registry check, RFC 0002
|
|
19
19
|
invariant 24).
|
|
20
|
+
3. To translate app copy with `t()` from `@himalaya/l10n`, also list `"l10n"` in
|
|
21
|
+
`declared_capabilities`. Without it, importing `@himalaya/l10n` throws when the worker starts.
|
|
20
22
|
|
|
21
23
|
## Import + call
|
|
22
24
|
|
|
@@ -31,7 +33,10 @@ await bi.click("cta_start", "home");
|
|
|
31
33
|
const variant = await experiments.conduct("specs.ai", "false"); // → { spec, variant }
|
|
32
34
|
if (await flags.isEnabled("specs.newCheckout")) { /* … */ }
|
|
33
35
|
|
|
34
|
-
// i18n
|
|
36
|
+
// i18n: the platform locale seam. For your app's own copy, use `t()` from `@himalaya/l10n`
|
|
37
|
+
// instead; it is synchronous and its catalog is resident in every worker (iOS, macOS, Android, web).
|
|
38
|
+
// It needs the `l10n` capability (see Prerequisites):
|
|
39
|
+
// import { t } from "@himalaya/l10n"; const title = t("home.title");
|
|
35
40
|
const label = await i18n.t("home.title", "Your agents");
|
|
36
41
|
|
|
37
42
|
// auth / identity
|
|
@@ -52,7 +57,7 @@ await monitoring.captureError("thing failed", { code: "E1" });
|
|
|
52
57
|
| `bi` | `track(evid, params?)`, `pageView(name)`, `click(name, page?)`, `log(v2Event)` ([below](#bilog--a-typed-wix-bi-logger-v2-event)) |
|
|
53
58
|
| `experiments` | `conduct(spec, fallback?)`, `isEnabled(spec)`, `exposure(spec, variant)` |
|
|
54
59
|
| `flags` | `isEnabled(spec, fallback?)`, `value(spec, fallback?)`, `all()` |
|
|
55
|
-
| `i18n` | `t(key, fallback?)`, `locale()` |
|
|
60
|
+
| `i18n` | `t(key, fallback?)`, `locale()`. For app copy, prefer the synchronous `t()` from `@himalaya/l10n` |
|
|
56
61
|
| `ping` | `register()`, `status()` |
|
|
57
62
|
| `deeplink` | `resolveDeferred()` |
|
|
58
63
|
| `session` | `headers()`, `signedInstanceStatus()` |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1751.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": [
|
|
@@ -62,14 +62,14 @@
|
|
|
62
62
|
"@anthropic-ai/mcpb": "2.1.2",
|
|
63
63
|
"@himalaya/data-resources": "0.0.0",
|
|
64
64
|
"@types/wawoff2": "^1.0.2",
|
|
65
|
-
"@wix/asc": "0.4.
|
|
66
|
-
"@wix/asc-api": "0.4.
|
|
67
|
-
"@wix/asc-core": "0.4.
|
|
68
|
-
"@wix/asc-jobs": "0.4.
|
|
69
|
-
"@wix/asc-mcp": "0.4.
|
|
70
|
-
"@wix/asc-web": "0.4.
|
|
71
|
-
"@wix/gplay-api": "0.4.
|
|
72
|
-
"@wix/gplay-jobs": "0.4.
|
|
65
|
+
"@wix/asc": "0.4.15",
|
|
66
|
+
"@wix/asc-api": "0.4.15",
|
|
67
|
+
"@wix/asc-core": "0.4.15",
|
|
68
|
+
"@wix/asc-jobs": "0.4.15",
|
|
69
|
+
"@wix/asc-mcp": "0.4.15",
|
|
70
|
+
"@wix/asc-web": "0.4.15",
|
|
71
|
+
"@wix/gplay-api": "0.4.15",
|
|
72
|
+
"@wix/gplay-jobs": "0.4.15",
|
|
73
73
|
"@wix/himalaya": "0.1.0"
|
|
74
74
|
},
|
|
75
75
|
"publishConfig": {
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"artifactId": "himalaya-cli"
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
|
-
"falconPackageHash": "
|
|
85
|
+
"falconPackageHash": "a2c172ddd85b96143f79e91b6d24f318ea40053308c64808a194f4e5"
|
|
86
86
|
}
|
|
Binary file
|
|
@@ -25168,7 +25168,7 @@ const SCREENS = runtimeSetting({
|
|
|
25168
25168
|
}
|
|
25169
25169
|
},
|
|
25170
25170
|
"modifiers": {
|
|
25171
|
-
"width":
|
|
25171
|
+
"width": 80
|
|
25172
25172
|
}
|
|
25173
25173
|
},
|
|
25174
25174
|
{
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// How a worker reads an Online Program's lifecycle and name. Wix returns them in more than one
|
|
2
|
+
// shape (v3 `status` or `state`; `description.title`, `settings.title`, a flat `title` or
|
|
3
|
+
// `details.title`), so every screen that lists programs reads them here, the same way.
|
|
4
|
+
import type { WixProgram } from "@himalaya/wix-online-programs";
|
|
5
|
+
import { cleanTitle } from "./himi-text.js";
|
|
6
|
+
|
|
7
|
+
export function programStatus(p: WixProgram): string {
|
|
8
|
+
return (p.status ?? p.state ?? "").toUpperCase();
|
|
9
|
+
}
|
|
10
|
+
export const isProgramEnded = (p: WixProgram): boolean => programStatus(p) === "ENDED" || programStatus(p) === "FINISHED";
|
|
11
|
+
export const isProgramDraft = (p: WixProgram): boolean => programStatus(p) === "DRAFT";
|
|
12
|
+
|
|
13
|
+
/** The program's own name, cleaned; "" when it has none (the caller picks its own fallback word). */
|
|
14
|
+
export function programName(p: WixProgram): string {
|
|
15
|
+
return cleanTitle(p.description?.title ?? p.settings?.title ?? p.title ?? p.details?.title);
|
|
16
|
+
}
|
|
@@ -22,7 +22,8 @@ import { iapPriceFields, onlineProgramItem, type IapPollDirective } from "@himal
|
|
|
22
22
|
import { createIapCommerce } from "@himalaya/iap-checkout";
|
|
23
23
|
import { createCollectionQuery, type CollectionPage, type CollectionQueryState } from "./collection-query.js";
|
|
24
24
|
import { memberAccess, memberAccessChanged, memberAccessDenied, type MemberAccess } from "./member-access.js";
|
|
25
|
-
import {
|
|
25
|
+
import { initials } from "./himi-text.js";
|
|
26
|
+
import { isProgramDraft, isProgramEnded, programName } from "./program-fields.js";
|
|
26
27
|
import { programImage } from "./himi-media.js";
|
|
27
28
|
import { descriptionBody } from "./rich-body.js";
|
|
28
29
|
import { programDescription } from "./program-description.js";
|
|
@@ -125,19 +126,15 @@ export interface State {
|
|
|
125
126
|
const full = (p: WixProgram): WixProgramFull => p as WixProgramFull;
|
|
126
127
|
|
|
127
128
|
function programTitle(p: WixProgram): string {
|
|
128
|
-
return
|
|
129
|
-
|| copyParam("memberPrograms.programFallbackName", "Program");
|
|
129
|
+
return programName(p) || copyParam("memberPrograms.programFallbackName", "Program");
|
|
130
130
|
}
|
|
131
131
|
function programDetails(p: WixProgram): string {
|
|
132
132
|
// The body may be a Ricos document or serialized text: read it the way the catalog and detail do.
|
|
133
133
|
const raw = descriptionBody(programDescription(p)).bodyText.replace(/\s+/g, " ").trim();
|
|
134
134
|
return raw.length > 140 ? `${raw.slice(0, 139).trimEnd()}…` : raw;
|
|
135
135
|
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
}
|
|
139
|
-
const isEnded = (p: WixProgram) => programStatus(p) === "ENDED" || programStatus(p) === "FINISHED";
|
|
140
|
-
const isDraft = (p: WixProgram) => programStatus(p) === "DRAFT";
|
|
136
|
+
const isEnded = isProgramEnded;
|
|
137
|
+
const isDraft = isProgramDraft;
|
|
141
138
|
function accessType(p: WixProgram): string {
|
|
142
139
|
return (full(p).restrictions?.accessType ?? "PUBLIC").toUpperCase();
|
|
143
140
|
}
|