@wix/himalaya-cli 0.1750.0 → 0.1752.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/app-config.d.ts +1 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/app-module.d.ts +3 -0
- 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/define-app.d.ts +16 -1
- 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/auth-providers/wix/src/index.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/auth-providers/wix/src/native-engine.d.ts +49 -3
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/auth/src/copy.generated.d.ts +16 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/auth/src/feedback.d.ts +1 -1
- 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/auth.mjs +27 -2
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +326 -13
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +757 -83
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +156 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-auth/worker.mjs +133 -13
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-auth.mjs +139 -13
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{b40ea5d0d6251898ff5617139fde8be008dd11e99a70b14c1052093685401700.bin → 2671d1cadb15daa5e59440f4c924e30c221ab3d405e8a56a0ab1cdbe4764af3d.bin} +1 -1
- package/dist/browser-plane/sw.js +7 -7
- package/dist/cli.mjs +37219 -33014
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/app-config.md +1 -1
- 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-json-output.md +25 -3
- package/guides/himi-skill.md +2 -0
- package/guides/index.json +6 -0
- package/guides/push-cli-onboarding.md +13 -0
- package/guides/qa-builds.md +15 -2
- package/guides/recipe-podcast.md +149 -0
- package/guides/releasing-with-himi-serve.md +51 -0
- package/guides/store-submission.md +46 -1
- 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 +190 -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
|
package/guides/app-config.md
CHANGED
|
@@ -137,7 +137,7 @@ does not include answers `module_not_linked` on device. Some components need one
|
|
|
137
137
|
and `himi validate` errors on a screen that uses one the app does not declare.
|
|
138
138
|
`presigned_upload.putFile` also requires `files` on the calling screen.
|
|
139
139
|
|
|
140
|
-
App-level capability vocabulary: `camera`, `barcode_scanner`, `biometrics`, `secure_storage`, `share`, `push`, `file_picker`, `files`, `open_url`, `pdf`, `clipboard`, `theme`, `l10n`, `photos`, `presigned_upload`, `ui`, `calendar`, `contacts`, `tasks`, `audio_record`, `audio_record_background`, `calls`, `location`, `location_background`, `motion`, `health`, `media_playback`, `webview`, `browser_auth`, `haptic`, `himi_apps`, `iap`, `keyboard`, `torch`, `network`, `wix_cashier`, `wix_chat`, `live_activity`, `local_database`, `speech`, `speaker_diarization`, `system_intents`, `on_device_ai`, `text_recognition`, `translation`, `image_labeling`, `barcode_detection`, `text_embedding`, `entity_extraction`, `app_info`, `release_control`, `legacy_import`, `godot`, `base44`, `animation`, `video_playback`.
|
|
140
|
+
App-level capability vocabulary: `camera`, `barcode_scanner`, `biometrics`, `secure_storage`, `share`, `push`, `file_picker`, `files`, `open_url`, `pdf`, `clipboard`, `theme`, `l10n`, `photos`, `presigned_upload`, `ui`, `calendar`, `contacts`, `tasks`, `audio_record`, `audio_record_background`, `calls`, `location`, `location_background`, `motion`, `health`, `media_playback`, `webview`, `browser_auth`, `haptic`, `himi_apps`, `iap`, `keyboard`, `torch`, `network`, `wix_cashier`, `wix_chat`, `live_activity`, `local_database`, `speech`, `speaker_diarization`, `system_intents`, `on_device_ai`, `text_recognition`, `translation`, `image_labeling`, `barcode_detection`, `text_embedding`, `entity_extraction`, `app_info`, `release_control`, `legacy_import`, `godot`, `base44`, `animation`, `video_playback`, `apple_sign_in`, `google_sign_in`.
|
|
141
141
|
|
|
142
142
|
## What `himi validate` checks (7 passes)
|
|
143
143
|
|
|
@@ -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
|
|
|
@@ -1073,6 +1073,28 @@ A failure after your yes says what was already written on the Wix side, in `erro
|
|
|
1073
1073
|
the recorded consent (`consentId`), and `packageName` only when this run saved the package; for `create-app`,
|
|
1074
1074
|
`packageName` when this run saved it. Running the command again asks for your yes once more and goes on from there.
|
|
1075
1075
|
|
|
1076
|
+
## `himi store google testers pool-add|pool-remove|pool-check` codes
|
|
1077
|
+
|
|
1078
|
+
The owner's side of Wix's closed-test pool: the pool's Google Group (`HIMI_POOL_TESTER_GROUP`) on the app's closed
|
|
1079
|
+
track. The result is one JSON line on stdout (`ok: true`, `onTrack`, `groups`, and for a change the gplay job's `jobId`
|
|
1080
|
+
and `status`), or a failure on stderr with one of these codes. None of them prints a token.
|
|
1081
|
+
|
|
1082
|
+
| Code | Meaning |
|
|
1083
|
+
|---|---|
|
|
1084
|
+
| `invalid_usage` | A missing or malformed op or flag: no package (neither `packageName` in `store/google-play.json` nor `--android-package`), a track that is not a closed track, a malformed group address or developer id, or `--yes` (there is none). Nothing ran. |
|
|
1085
|
+
| `node_too_old` | Needs Node 24 or newer. Nothing ran. |
|
|
1086
|
+
| `pool_group_unset` | `HIMI_POOL_TESTER_GROUP` is not set. Checked first, so nothing was read or changed. |
|
|
1087
|
+
| `confirmation_required` | `pool-add` or `pool-remove` with no terminal to type yes at. Nothing was read or changed. |
|
|
1088
|
+
| `google_signin_failed` | Google sign-in was declined, aborted or failed (`reason`). Nothing was changed. |
|
|
1089
|
+
| `not_signed_in` | `pool-check` with no stored Google sign-in: it only reads and never starts a sign-in. Run `pool-add` or sign in first. Nothing was read or changed. |
|
|
1090
|
+
| `developer_unknown` | Your Play developer account is not known: set `developerId` in `store/google-play.json` or pass `--developer <id>`. Nothing was changed. |
|
|
1091
|
+
| `track_missing` | The app has no closed track by that name. Nothing was changed. |
|
|
1092
|
+
| `pool_group_last` | `pool-remove` when the pool's group is the track's only group: Google Play's API cannot set an empty list, so the error gives the Play Console step instead. Nothing was changed. |
|
|
1093
|
+
| `plan_unexpected` | The job's plan held a change you were not shown (anything beyond the track's testers, or groups that changed since they were read), so it was not approved. Nothing was changed. |
|
|
1094
|
+
| `groups_changed` | The track's groups changed between the plan and your yes (someone edited them meanwhile), so nothing was approved or written. Run the command again. |
|
|
1095
|
+
| `consent_declined` | You did not type yes. The job stays planned and unapproved; nothing was changed. |
|
|
1096
|
+
| `job_failed` | The gplay job failed or did not read back; `jobId` and `status` say where it stopped (`gplay-node jobs show <jobId>`). |
|
|
1097
|
+
|
|
1076
1098
|
## `himi store google keygen|resign` codes
|
|
1077
1099
|
|
|
1078
1100
|
The owner-signed path's upload key (`keygen <package>`) and signature (`resign <in.aab> --keystore <file.p12>
|
|
@@ -1092,8 +1114,8 @@ keystore password is never printed.
|
|
|
1092
1114
|
|
|
1093
1115
|
`himi store app set|show --app <id> --site <msid>` prints one envelope. A refusal from the publishing
|
|
1094
1116
|
service keeps the service's own code in `serverError` (for example `forbidden_app`,
|
|
1095
|
-
`store_app_linked_to_other_site`, `store_app_site_taken`, `premium_plan_required
|
|
1096
|
-
`status`; the CLI `code` is one of:
|
|
1117
|
+
`store_app_linked_to_other_site`, `store_app_site_taken`, `premium_plan_required`,
|
|
1118
|
+
`store_app_service_refused`) and its HTTP `status`; the CLI `code` is one of:
|
|
1097
1119
|
|
|
1098
1120
|
| Code | Meaning |
|
|
1099
1121
|
|---|---|
|
|
@@ -1103,6 +1125,6 @@ service keeps the service's own code in `serverError` (for example `forbidden_ap
|
|
|
1103
1125
|
| `wix_token_unavailable` | The account Wix token (`wix token`) could not be minted; the publishing service needs it to verify you own the app and the site. Nothing was sent. |
|
|
1104
1126
|
| `unauthorized` | The control token was refused or revoked (401). |
|
|
1105
1127
|
| `forbidden` | Not your app, not your site, or the token may not act for the app (403); `serverError` says which. |
|
|
1106
|
-
| `refused` | A rule refused it (another 4xx): the package name, another app holding the site's store app, the app linked to another site, no saved package name, the site's plan; `serverError` says which. |
|
|
1128
|
+
| `refused` | A rule refused it (another 4xx): the package name, another app holding the site's store app, the app linked to another site, no saved package name, the site's plan; `serverError` says which. `store_app_service_refused` is Wix's store-app service refusing for a reason the plane has no code for: `error` carries the service's own words (scrubbed), and a `set` it refused leaves the app unlinked, so another site can be tried. |
|
|
1107
1129
|
| `control_unreachable` | The publishing service could not be reached. |
|
|
1108
1130
|
| `request_failed` | Any other failure (5xx); `status` and `serverError` say which. |
|
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",
|
|
@@ -81,6 +81,19 @@ checks. The output separates the saved setup state, backend configuration readin
|
|
|
81
81
|
Apple signing readiness, native build, Himi routing and device delivery. A server that
|
|
82
82
|
cannot provide live verification is reported as `live_verification_unavailable`.
|
|
83
83
|
|
|
84
|
+
The same output has a `social` block: whether member Apple and Google sign-in will be
|
|
85
|
+
accepted by the site, read from the Branded record on `--refresh` only (without it every
|
|
86
|
+
check is `not_checked`). `appleReady`, `googleIosReady` and `googleAndroidReady` are
|
|
87
|
+
`true`, `false` or `null`; `null` means unknown or not required, never ready. Each check
|
|
88
|
+
in `social.checks` names what is missing with a `code`, such as `bundle_id_missing`,
|
|
89
|
+
`ios_client_missing`, `android_client_missing`, `ios_client_mismatch` or `sha1_missing`. `appleReady` is `true`
|
|
90
|
+
only when the Apple connection is on the bundle and the App Store profile stored on the site
|
|
91
|
+
grants Sign in with Apple. It is `false` when the connection is missing or on another bundle.
|
|
92
|
+
Otherwise it is `null` when there is no stored profile for the bundle (`apple_capability_unreadable`),
|
|
93
|
+
or when that profile lacks Sign in with Apple (`stored_profile_lacks_apple_sign_in`), because the
|
|
94
|
+
binary may be signed with another profile.
|
|
95
|
+
The social block never changes the push `ok` verdict.
|
|
96
|
+
|
|
84
97
|
A setup response of HTTP 202 may mean `needs_attention`, not a running background job.
|
|
85
98
|
After a timeout the CLI reads status once and reports an uncertain submission; it never
|
|
86
99
|
repeats the provisioning POST automatically. Inspect status before retrying.
|
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
|
|
@@ -1437,7 +1448,9 @@ himi dist --app <app> --platform android --aab --wait --target bo
|
|
|
1437
1448
|
already linked to another site (`409 store_app_linked_to_other_site`; moving needs Wix support,
|
|
1438
1449
|
because a build may have locked the package name). It records a link (app → site, one site per
|
|
1439
1450
|
app), holds the site's store app (`409 store_app_site_taken` if another app holds it), and saves
|
|
1440
|
-
the package name; the response says `linked: true` the first time.
|
|
1451
|
+
the package name; the response says `linked: true` the first time. A `set` the service refuses
|
|
1452
|
+
outright (`400 store_app_service_refused`, `409 package_name_in_use`, …) leaves no link behind, so
|
|
1453
|
+
the app can be linked to another site. Only the Google Play package
|
|
1441
1454
|
name is saved this way (`400 store_app_link_android_only` for iOS ids): App Store builds stay
|
|
1442
1455
|
Containers-only. Before a link exists, the check and `GET /v1/admin/site/store-app` answer
|
|
1443
1456
|
`409 store_app_requires_site_binding`, the code an unbound app always got.
|
|
@@ -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.
|
|
@@ -219,6 +219,57 @@ himi-serve release visibility --app <app> public # flip without repu
|
|
|
219
219
|
`"visibility": "unlisted"` in `himalaya.content.json`.) The verb is `POST
|
|
220
220
|
/v1/admin/app-settings` — owner-role callable, scope-checked, audited.
|
|
221
221
|
|
|
222
|
+
### The closed-test pool for Himi apps (RelOps, operator config)
|
|
223
|
+
|
|
224
|
+
himi serve puts a Himi app's Google closed test (12 testers x 14 days) on the
|
|
225
|
+
branded closed-testing pool (catalyst-server `mobile-apps-branded-google-closed-testing`, `ClosedTestingService`).
|
|
226
|
+
RelOps drives it with `himi store relops pool add|status|end [--all-himi]` (see the store-submission guide).
|
|
227
|
+
|
|
228
|
+
| Route | What |
|
|
229
|
+
|---|---|
|
|
230
|
+
| `POST /v1/admin/site/store-pool?app&site` | add: `CreateTestedApp(package, msid)`; 201 with the owner's step |
|
|
231
|
+
| `GET /v1/admin/site/store-pool?app&site` | status: installed/12, day N of 14, our state, the service status |
|
|
232
|
+
| `DELETE /v1/admin/site/store-pool?app&site` | end: `UpdateTestedAppStatus(CANCELLED)`; never a delete |
|
|
233
|
+
| `POST /v1/admin/store-pool/teardown` | resolve `adding` rows, cancel every active entry in Himi's table, wait (bounded, 45 s) for archive, report what is left (`pool end --all-himi`) |
|
|
234
|
+
| `POST /v1/admin/store-pool/sweep` | the daily sweep; the operator credential or a RelOps login |
|
|
235
|
+
|
|
236
|
+
The gate, every call audited (`reason: store_pool_refused`, the code in `storeAppStatus`, with the underlying cause on
|
|
237
|
+
5xx): a RelOps login on `HIMI_RELOPS_ACCOUNTS` (anyone else, the owner included: 403 `relops_only`; the sweep also takes
|
|
238
|
+
the operator static credential). **The toggle `specs.himalaya.ClosedTestPool` gates new adds only** (off or
|
|
239
|
+
unconducted: 404 `store_pool_disabled`): the sweep, teardown, status and end run whenever Himi's table has entries, so a
|
|
240
|
+
toggle opened per user, or closed again, never strands an entry on the pool. Add and status need the owner's
|
|
241
|
+
`play-console` consent under 90 days (403 `relops_consent_required`); **end and teardown need no consent** (they only
|
|
242
|
+
cancel Himi's own entries, which reduces exposure, so RelOps can always end). Add holds at most `HIMI_POOL_MAX_ACTIVE`
|
|
243
|
+
(default 5) open entries (429 `store_pool_full`), reserved atomically on the index row before the service is called.
|
|
244
|
+
The package is always the Containers app's saved package for the site the app holds.
|
|
245
|
+
|
|
246
|
+
Himi's own table lives in cloudStore (`himi/store-pool/<app>/<msid>` plus the index row `himi/store-pool/index`): package,
|
|
247
|
+
msid, addedBy, addedAt, deadline (addedAt + 21 days), state `adding | active | ending | archived | stuck | failed`.
|
|
248
|
+
**No orphans:** an add writes the index (its cap slot) first, then an `adding` row, and only then calls the service; a
|
|
249
|
+
definite refusal frees the slot (`failed`), an ambiguous one (timeout, unavailable) keeps `adding` with the error. A
|
|
250
|
+
retry of the add resumes it (asks the service first), and the sweep resolves an `adding` row older than 10 minutes: the
|
|
251
|
+
service has the package for our site ⇒ adopted as active; none ⇒ `failed`. Every row write is a compare-and-swap on
|
|
252
|
+
the state the writer read. Archived and failed keys leave the index 30 days after they closed (the rows stay). Only
|
|
253
|
+
entries in the table are ever cancelled. A package the service already tracks: if it is ours (an archived Himi entry for
|
|
254
|
+
the same package and site) the add calls `RestartTestedApp`, otherwise it is refused 409 `tested_app_exists_not_ours`
|
|
255
|
+
and left alone; a restart the service refuses is 409 `store_pool_readd_unsupported`.
|
|
256
|
+
|
|
257
|
+
Errors: 503 `store_pool_service_unavailable` (the closed-testing service; `serviceCode` says which),
|
|
258
|
+
503 `store_pool_table_write_failed` / `store_pool_table_read_failed` (cloudStore), 503 `store_pool_unconfigured`,
|
|
259
|
+
409 `store_pool_state_changed` (a concurrent write won), 500 `store_pool_internal_error`.
|
|
260
|
+
|
|
261
|
+
**The sweep** cancels an active entry past its deadline, whose consent expired, whose app no longer holds the site, or
|
|
262
|
+
that is done (COMPLETED, or 12 installs on day 14), then follows each cancelled entry until the service sets
|
|
263
|
+
`archivedDate`. Not archived 3 days after it ended: state `stuck` and a Slack alert. serve has no scheduler of its own,
|
|
264
|
+
so the sweep is an internal route: schedule a daily `POST /v1/admin/store-pool/sweep` with the operator control token
|
|
265
|
+
(a Buildkite scheduled pipeline or a Wix cron job).
|
|
266
|
+
|
|
267
|
+
Config: `HIMI_POOL_MAX_ACTIVE`, `HIMI_POOL_TESTER_GROUP` (the Google Group owners add to track `alpha`),
|
|
268
|
+
`HIMI_POOL_ALERT_CHANNEL` (posted by the `MREBOT_SLACK_TOKEN` bot; unset: a log line). The closed-testing client
|
|
269
|
+
calls with Himalaya's service identity, which needs
|
|
270
|
+
`MOBILE_APPS.BRANDED_GOOGLE_CLOSED_TESTING_{CREATE,GET,UPDATE}` (restart uses UPDATE). It is not wired yet: until the spike confirms the
|
|
271
|
+
generated ambassador package, the routes answer 503 `store_pool_unconfigured` with the toggle on.
|
|
272
|
+
|
|
222
273
|
## Patching one item of a release
|
|
223
274
|
|
|
224
275
|
A whole `himi push` sends every screen, bundle, tokens and app-config in one body. To change
|
|
@@ -352,6 +352,51 @@ As with `wix-submit`, `--app` and `--site` can come from the app folder's `wix`
|
|
|
352
352
|
It shows the app name, the package name (a package name can never be reused or changed once an app exists), and each
|
|
353
353
|
declaration Google asks you to accept when creating an app, then asks for a typed `yes`.
|
|
354
354
|
|
|
355
|
+
### RelOps only: Wix's closed-test pool
|
|
356
|
+
|
|
357
|
+
A personal Play account needs a closed test of **12 testers for 14 days** before Google allows production. For an app
|
|
358
|
+
RelOps works on, Wix can run that test on its own pool of 12 test phones. Only Wix's release team can start it; you
|
|
359
|
+
cannot, and neither can any other customer. It needs your RelOps consent with the Google scopes (`relops request
|
|
360
|
+
--platform android`), under 90 days old.
|
|
361
|
+
|
|
362
|
+
RelOps runs (Wix staff only, not in the customer help):
|
|
363
|
+
|
|
364
|
+
```
|
|
365
|
+
himi store relops pool add --app <app id> --site <msid>
|
|
366
|
+
himi store relops pool status --app <app id> --site <msid>
|
|
367
|
+
himi store relops pool end --app <app id> --site <msid>
|
|
368
|
+
```
|
|
369
|
+
|
|
370
|
+
- `add` puts the app on the pool, using the package name saved for the site's app (never one typed on the command
|
|
371
|
+
line), and prints **your one step**: add the pool's Google Group to the testers of the closed track `alpha`, with
|
|
372
|
+
`himi store google testers pool-add` (below) or by hand in Play Console. The phones opt in after that.
|
|
373
|
+
- `status` shows how many phones installed the app (out of 12), which day of 14 it is, and the entry's state.
|
|
374
|
+
- `end` stops the test and prints **your step**: remove the pool's Google Group from the track, with
|
|
375
|
+
`himi store google testers pool-remove`. The phones uninstall the app. A test is never deleted, only cancelled, so its history stays. RelOps can always end a test, even after
|
|
376
|
+
your consent expired.
|
|
377
|
+
|
|
378
|
+
Your steps, on your own computer and with your own Google sign-in (a RelOps seat cannot change your testers):
|
|
379
|
+
|
|
380
|
+
```
|
|
381
|
+
export HIMI_POOL_TESTER_GROUP=<the pool group address RelOps gives you>
|
|
382
|
+
himi store google testers pool-add [--dir <app>] [--track alpha]
|
|
383
|
+
himi store google testers pool-check [--dir <app>] [--track alpha]
|
|
384
|
+
himi store google testers pool-remove [--dir <app>] [--track alpha]
|
|
385
|
+
```
|
|
386
|
+
|
|
387
|
+
- `pool-add` reads the track's Google Groups, plans a `gplay.closedTest.setup` job with the same groups plus the pool's,
|
|
388
|
+
shows you the change and applies it only after your typed `yes` (there is no `--yes`). Then it reads the track back.
|
|
389
|
+
- `pool-remove` does the same with the pool's group taken out. Every other group you have stays. If the pool's group is
|
|
390
|
+
the track's only group, it stops and gives you the Play Console step instead: Google Play's API cannot set an empty
|
|
391
|
+
group list.
|
|
392
|
+
- `pool-check` only reads: it says whether the pool's group is on the track.
|
|
393
|
+
- The app comes from `packageName` (and `developerId`) in the app folder's `store/google-play.json`, or
|
|
394
|
+
`--android-package` and `--developer`. With `HIMI_POOL_TESTER_GROUP` unset, each of them stops before reading
|
|
395
|
+
anything. Codes: `himi docs himi-json-output`.
|
|
396
|
+
|
|
397
|
+
A test that is not ended is stopped for you after 21 days, when your consent expires, or when the app no longer holds
|
|
398
|
+
the site's store app. The pool takes only a few apps at a time; when it is full, RelOps is told to try later.
|
|
399
|
+
|
|
355
400
|
### Limits
|
|
356
401
|
|
|
357
402
|
- **The owner's yes is a typed yes on a terminal.** No `himi mcp` tool can give it, so a chat message that says "the
|
|
@@ -359,7 +404,7 @@ declaration Google asks you to accept when creating an app, then asks for a type
|
|
|
359
404
|
the yes as a strong habit, not a lock.
|
|
360
405
|
- **Closed testing on a personal account.** Google requires a personal account to run a closed test with **12
|
|
361
406
|
testers for 14 days** before it will allow production. An organization account is exempt. The plan says this up
|
|
362
|
-
front. You find your own testers; Wix's tester pool is used only for apps Wix
|
|
407
|
+
front. You find your own testers; Wix's tester pool is used only for RelOps apps (see "RelOps only: Wix's closed-test pool").
|
|
363
408
|
- **Nothing has run live yet.** The Google steps are tested against fakes, not a real Play account. The first real
|
|
364
409
|
run may find problems.
|
|
365
410
|
- A reply to a policy issue cannot be unsent, and a package name cannot be changed.
|
|
@@ -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
|