@wix/himalaya-cli 0.1728.0 → 0.1730.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/entity-extraction/src/index.d.ts +34 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/catalog-pricing-contract.d.ts +4 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/pricing-contract.d.ts +6 -1
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/wix-payments-contract.d.ts +10 -0
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/sdk-types/src/capabilities.generated.d.ts +4 -1
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/text-embedding/src/index.d.ts +37 -0
  7. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/translation/src/index.d.ts +51 -0
  8. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/webview-page/src/capabilities.generated.d.ts +6 -0
  9. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/define-app.d.ts +1 -1
  10. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/index.d.ts +1 -0
  11. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/pricing-plans.d.ts +20 -0
  12. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/index.d.ts +1 -1
  13. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/screens/src/index.d.ts +2 -0
  14. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/audio-record.mjs +3 -0
  15. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/calendar.mjs +3 -0
  16. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/calls.mjs +3 -0
  17. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/contacts.mjs +3 -0
  18. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +3 -0
  19. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/entity-extraction.mjs +38 -0
  20. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap-checkout.mjs +49 -8
  21. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap.mjs +35 -9
  22. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/location.mjs +3 -0
  23. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/motion.mjs +3 -0
  24. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/photos.mjs +3 -0
  25. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +57 -14
  26. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdk-types.mjs +3 -0
  27. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/tasks.mjs +3 -0
  28. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/text-embedding.mjs +76 -0
  29. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/translation.mjs +66 -0
  30. package/dist/authoring-runtime/node_modules/@wix/himalaya/package.json +12 -0
  31. package/dist/browser-plane/assets.json +5 -5
  32. package/dist/browser-plane/preview-deferred/{ec5d778f3e7ecbc2351ab7a8f3509483b798094de9f889fe8b03447db1413cb6.bin → 9c4b4a8e0772f247f08e61b35d51b0bd2574408381cab23ec88cad1c7df68177.bin} +1 -1
  33. package/dist/browser-plane/sw.js +8 -8
  34. package/dist/cli.mjs +514 -315
  35. package/dist/preview-assets.generated.bin +0 -0
  36. package/guides/app-config.md +1 -1
  37. package/guides/capabilities.md +3 -0
  38. package/guides/iap-pricing.md +2 -2
  39. package/guides/iap-screen-adoption.md +1 -1
  40. package/guides/importable-sdks.md +3 -0
  41. package/guides/release-notes.md +30 -0
  42. package/guides/sdk-reference.json +252 -7
  43. package/guides/web-page-sdk-reference.md +3 -0
  44. package/package.json +2 -2
  45. package/templates/beauty-salon/tier5-src/himi-branded-lite-plans/index.ts +16 -7
  46. package/templates/beauty-salon-owner/dev/index.ts +35 -0
  47. package/templates/branded-lite/dev/index.ts +16 -0
  48. package/templates/branded-lite/tier5-src/himi-branded-lite-plans/index.ts +16 -7
  49. package/templates/community-club/dev/index.ts +2 -0
  50. package/templates/community-club-owner/dev/index.ts +35 -0
  51. package/templates/conference/dev/index.ts +1 -0
  52. package/templates/events-meetups/dev/index.ts +2 -0
  53. package/templates/events-meetups-owner/dev/index.ts +31 -0
  54. package/templates/gym-fitness/dev/index.ts +1 -0
  55. package/templates/gym-fitness/tier5-src/himi-branded-lite-plans/index.ts +16 -7
  56. package/templates/gym-fitness-owner/dev/index.ts +37 -0
  57. package/templates/nonprofit-cause/dev/index.ts +2 -0
  58. package/templates/nonprofit-cause/tier5-src/himi-branded-lite-plans/index.ts +16 -7
  59. package/templates/nonprofit-cause-owner/dev/index.ts +33 -0
  60. package/templates/owner-lite/dev/index.ts +37 -0
  61. package/templates/podcast-creator/dev/index.ts +2 -0
  62. package/templates/podcast-creator/tier5-src/himi-branded-lite-plans/index.ts +16 -7
  63. package/templates/podcast-creator-owner/dev/index.ts +35 -0
  64. package/templates/portfolio-creative/dev/index.ts +2 -0
  65. package/templates/portfolio-creative-owner/dev/index.ts +35 -0
  66. package/templates/restaurant/dev/index.ts +2 -0
  67. package/templates/restaurant-owner/dev/index.ts +37 -0
  68. package/templates/retail-store-owner/dev/index.ts +33 -0
  69. package/templates/yoga-studio/dev/index.ts +2 -0
  70. package/templates/yoga-studio/tier5-src/himi-branded-lite-plans/index.ts +16 -7
  71. package/templates/yoga-studio-owner/dev/index.ts +33 -0
Binary file
@@ -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`, `image_labeling`, `barcode_detection`, `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`.
141
141
 
142
142
  ## What `himi validate` checks (7 passes)
143
143
 
@@ -310,6 +310,7 @@ binary carries neither the code nor the store-review footprint of a framework it
310
310
  | calendar | `calendar` |
311
311
  | calls | `calls` |
312
312
  | contacts | `contacts` |
313
+ | entity_extraction | `entity_extraction` |
313
314
  | godot | `godot` |
314
315
  | health | `health` |
315
316
  | iap | `iap` (and `wix_cashier` on iOS) |
@@ -323,7 +324,9 @@ binary carries neither the code nor the store-review footprint of a framework it
323
324
  | push | `push` |
324
325
  | speech (iOS) | `speech` |
325
326
  | tasks (iOS) | `tasks` |
327
+ | text_embedding | `text_embedding` |
326
328
  | text_recognition | `text_recognition` |
329
+ | translation | `translation` |
327
330
 
328
331
  What that means for a worker:
329
332
 
@@ -22,7 +22,7 @@ what to do:
22
22
  |---|---|---|
23
23
  | `disabled` | Your screen's own price, exactly as before | Allowed |
24
24
  | `resolving` | A "Loading price…" label, never your own price | Blocked |
25
- | `appleIap` | `displayPrice` exactly as Apple formats it, plus a "One-time purchase" note | Blocked; the shared checkout sells it |
25
+ | `appleIap` | `displayPrice` exactly as Apple formats it, plus a "One-time purchase" note. With `renews` (an auto-renewing subscription) the note is empty: show your item's own billing period, and sell only when `subscriptionPeriod` (ISO 8601, `P1M`) matches it | Blocked; the shared checkout sells it |
26
26
  | `regular` | `displayPrice` (the commerce price you passed), or nothing | Allowed |
27
27
  | `unavailable` | "Price unavailable", plus Retry when `retryable` | Blocked |
28
28
 
@@ -49,7 +49,7 @@ when it registers the item with Apple:
49
49
  |---|---|---|
50
50
  | `onlineProgram` | An Online Programs program | `onlineProgramItem(program, commercePrice)` |
51
51
  | `storesProduct` | A Wix Stores product | Build `{ kind: "storesProduct", id }` |
52
- | `pricingPlan` | A one-time Pricing Plans plan | Build `{ kind: "pricingPlan", id }` |
52
+ | `pricingPlan` | A Pricing Plans plan: one-time, or recurring until canceled while `PLAN_SUBSCRIPTIONS_APPLE_SALES_ENABLED` is on (`applePlanPeriod` gives its period) | Build `{ kind: "pricingPlan", id }` |
53
53
  | `wixVideo` | A Wix video with a one-time Sale price, in a channel that requires no subscription or plan | `wixVideoItem(channel, video)`; `undefined` for a free, rental-only or subscription-locked video |
54
54
 
55
55
  ## Add it to a worker
@@ -11,7 +11,7 @@ and generated templates. Historical receipts retain their recorded amounts.
11
11
 
12
12
  | Entry point | Identity and displayed offer | Result |
13
13
  |---|---|---|
14
- | `himi-branded-lite-plans` | Pricing Plan ID; `priceLine` | Shared Apple pricing and existing Join action through `pricingPlanOrders`; only one-time unlimited Plans can start Apple checkout |
14
+ | `himi-branded-lite-plans` | Pricing Plan ID; `priceLine` | Shared Apple pricing and existing Join action through `pricingPlanOrders`; one-time unlimited Plans can start Apple checkout, and recurring Plans billed until canceled with no free trial once `PLAN_SUBSCRIPTIONS_APPLE_SALES_ENABLED` is on |
15
15
  | `wix-spaces-plan-detail` | Pricing Plan ID; `price` | Shared pricing; remains read-only |
16
16
  | `createCheckoutService` / `checkoutScreen` | Pricing Plan ID; `priceLine` | Same shared Plans pricing and purchase; existing options, copy, login destination and factory shape retained |
17
17
  | `himi-store-product` | Stores product ID; `price` | Shared pricing; physical options/add/save retained. With Stores Apple sales enabled, a mapped digital product without options offers Buy now through wix-iap StartItemPayment, which places and charges the eCom order server-side ([checkout](iap-wix-checkout.md#wix-stores-items-through-startitempayment)) |
@@ -28,6 +28,7 @@ package in one greppable file) or `GET /v1/sdk/<name>` over HTTP; in the CLI,
28
28
  - `@himalaya/contacts` — Tier-5 typed binding for the device address book.
29
29
  - `@himalaya/core` — App config & navigation types — `defineApp` (what every `apps/<app>/config.ts` calls) and the OTA `NavigationConfig`. NOT a Tier-5 worker capability: import it from `config.ts`, not from a bundle. Full config surface: `himi docs app-config`; descriptor/component types: `himi components`.
30
30
  - `@himalaya/dispatch` — Tier-5 action dispatch.
31
+ - `@himalaya/entity-extraction` — Tier-5 typed binding for ON-DEVICE entity extraction.
31
32
  - `@himalaya/file-picker` — Tier-5 typed binding for user-mediated document access OUTSIDE the app sandbox.
32
33
  - `@himalaya/files` — Tier-5 typed binding for app-scoped document storage.
33
34
  - `@himalaya/godot` — Tier-5 typed binding for a Godot game surface.
@@ -64,10 +65,12 @@ package in one greppable file) or `GET /v1/sdk/<name>` over HTTP; in the CLI,
64
65
  - `@himalaya/speech` — Tier-5 typed binding to the platform's speech capability.
65
66
  - `@himalaya/system-intents` — Tier-5 typed binding to the platform's system-intents capability.
66
67
  - `@himalaya/tasks` — Tier-5 typed binding for reminders / to-dos.
68
+ - `@himalaya/text-embedding` — Tier-5 typed binding for ON-DEVICE sentence embeddings.
67
69
  - `@himalaya/text-recognition` — Tier-5 typed binding for ON-DEVICE text recognition (OCR).
68
70
  - `@himalaya/theme` — Tier-5 typed binding for the runtime brand overlay.
69
71
  - `@himalaya/time` — Tier-5 temporal helpers.
70
72
  - `@himalaya/torch` — Tier-5 typed binding for the platform's torch (the camera flashlight).
73
+ - `@himalaya/translation` — Tier-5 typed binding for ON-DEVICE language identification and translation.
71
74
  - `@himalaya/ui` — Tier-5 typed binding to the platform's imperative popup capability.
72
75
  - `@himalaya/webview` — Tier-5 typed binding for the page ↔ worker message channel of a worker-backed webview screen (Part 2 / RFC 0025 composition).
73
76
  - `@himalaya/webview-page` — browser-side SDK for a trusted page hosted by a worker-backed Himalaya WebView.
@@ -14,6 +14,36 @@ areas, always in the same order, so you can skim for the one you care about.
14
14
 
15
15
  ---
16
16
 
17
+ ## 2026-11-15
18
+
19
+ ### Logic, data & SDKs
20
+
21
+ - **On-device AI runs on Android, and gains three writing tasks on every platform.**
22
+ `@himalaya/on-device-ai` now uses Gemini Nano on Android devices that have it (Pixel 9 and later,
23
+ recent Galaxy S, others with AICore). It downloads the model on first use and says so in
24
+ `availability()`. Its reason says so if the download fails. New `summarize`, `rewrite` and `proofread`
25
+ calls handle the common text jobs without a prompt. They run on Apple Foundation Models, Gemini Nano,
26
+ or Chrome's built-in Summarizer / Rewriter / Proofreader, and never fall back to the cloud. Declare
27
+ `on_device_ai`. (#5880)
28
+ - **Region monitoring works on Android.** `addMonitoredRegion` and `watchMonitoredRegions` from
29
+ `@himalaya/location` now register real OS geofences on Android, as they already did on iOS. Crossings
30
+ reach your worker even if the app was closed when they happened, and regions are restored after a
31
+ reboot. Declare `location_background`. Approximate-only location is refused with a reason that asks
32
+ for precise location. (#5880)
33
+ - **Read text, barcodes and image labels from a photo, on device.** `@himalaya/text-recognition`
34
+ (`recognize`), `@himalaya/barcode-detection` (`detect`, a still image with no camera permission) and
35
+ `@himalaya/image-labeling` (`label`) run Apple Vision on iOS and macOS and ML Kit on Android. Barcode
36
+ detection also runs on the web where the browser has `BarcodeDetector`. Pass a file your worker holds
37
+ and declare the capability plus `files`. (#5887)
38
+ - **Translate, compare and pick apart text, on device.** `@himalaya/translation` identifies a language
39
+ and translates. It uses Apple Translation, ML Kit, or Chrome's built-in Translator. On Android and
40
+ Chrome a language pack downloads on first use. On iOS and macOS it uses the languages installed in
41
+ Settings, and `prepare()` reports a missing pair as `downloadable`. `@himalaya/text-embedding` turns text into vectors, with `rank` and
42
+ `cosineSimilarity` for "find the closest note" search. `@himalaya/entity-extraction` finds dates,
43
+ addresses, phone numbers, emails and URLs in a text. Names of people, places and organizations are
44
+ found on iOS and macOS only; money amounts and tracking, IBAN, card and ISBN numbers on Android only.
45
+ (#5899)
46
+
17
47
  ## 2026-11-14
18
48
 
19
49
  ### Logic, data & SDKs
@@ -1721,6 +1721,69 @@
1721
1721
  }
1722
1722
  ]
1723
1723
  },
1724
+ {
1725
+ "name": "@himalaya/entity-extraction",
1726
+ "source": "core/sdk/entity-extraction/src/index.ts",
1727
+ "description": "Tier-5 typed binding for ON-DEVICE entity extraction.",
1728
+ "api": [
1729
+ {
1730
+ "name": "EntityType",
1731
+ "kind": "type",
1732
+ "jsdoc": "",
1733
+ "decl": "export type EntityType =\n | \"date_time\"\n | \"address\"\n | \"phone\"\n | \"email\"\n | \"url\"\n | \"money\"\n | \"flight_number\"\n | \"tracking_number\"\n | \"iban\"\n | \"payment_card\"\n | \"isbn\"\n | \"person\"\n | \"place\"\n | \"organization\";",
1734
+ "verificationChecked": true
1735
+ },
1736
+ {
1737
+ "name": "EntityExtractionAvailability",
1738
+ "kind": "interface",
1739
+ "jsdoc": "",
1740
+ "decl": "export interface EntityExtractionAvailability {\n available: boolean;\n /** \"apple_natural_language\" | \"mlkit\" when available. */\n engine?: string;\n reason?: string;\n}",
1741
+ "verificationChecked": true
1742
+ },
1743
+ {
1744
+ "name": "ExtractOptions",
1745
+ "kind": "interface",
1746
+ "jsdoc": "",
1747
+ "decl": "export interface ExtractOptions {\n /** BCP-47 language of the text. Default \"en\". */\n language?: string;\n /** Only these types (default: all the engine supports). */\n types?: EntityType[];\n}",
1748
+ "verificationChecked": true
1749
+ },
1750
+ {
1751
+ "name": "Entity",
1752
+ "kind": "interface",
1753
+ "jsdoc": "",
1754
+ "decl": "export interface Entity {\n /** The entity as it appears in the text. */\n text: string;\n /** Start index into the input (inclusive). */\n start: number;\n /** End index into the input (exclusive). */\n end: number;\n type: EntityType;\n /** A normalised form when the engine has one — ISO-8601 for date_time, the URL for url, … */\n value?: string;\n}",
1755
+ "verificationChecked": true
1756
+ },
1757
+ {
1758
+ "name": "ExtractResult",
1759
+ "kind": "interface",
1760
+ "jsdoc": "",
1761
+ "decl": "export interface ExtractResult {\n /** In order of appearance. */\n entities: Entity[];\n engine: string;\n}",
1762
+ "verificationChecked": true
1763
+ },
1764
+ {
1765
+ "name": "availability",
1766
+ "kind": "function",
1767
+ "jsdoc": "/** Whether on-device entity extraction is available for a language (default \"en\"). Never rejects. */",
1768
+ "decl": "export async function availability(language?: string): Promise<EntityExtractionAvailability>;",
1769
+ "verificationChecked": true
1770
+ },
1771
+ {
1772
+ "name": "extract",
1773
+ "kind": "function",
1774
+ "jsdoc": "/** Extract entities from text on device. Rejects when unavailable. */",
1775
+ "decl": "export async function extract(text: string, opts: ExtractOptions = {}): Promise<ExtractResult>;",
1776
+ "verificationChecked": true
1777
+ },
1778
+ {
1779
+ "name": "version",
1780
+ "kind": "const",
1781
+ "jsdoc": "",
1782
+ "decl": "export const version = 1;",
1783
+ "verificationChecked": true
1784
+ }
1785
+ ]
1786
+ },
1724
1787
  {
1725
1788
  "name": "@himalaya/file-picker",
1726
1789
  "source": "core/sdk/file-picker/src/index.ts",
@@ -2654,7 +2717,7 @@
2654
2717
  "name": "PricingMapping",
2655
2718
  "kind": "type",
2656
2719
  "jsdoc": "",
2657
- "decl": "export type PricingMapping = { reference: CatalogReference } & (\n | { route: \"appleIap\"; productId: string; mappingRevision: string }\n | { route: \"regular\" }\n | { route: \"unavailable\" }\n);",
2720
+ "decl": "export type PricingMapping = { reference: CatalogReference } & (\n /** `renews`: mapped as an App Store auto-renewing subscription, so only a StoreKit subscription prices it. */\n | { route: \"appleIap\"; productId: string; mappingRevision: string; renews?: true }\n | { route: \"regular\" }\n | { route: \"unavailable\" }\n);",
2658
2721
  "verificationChecked": true
2659
2722
  },
2660
2723
  {
@@ -2675,7 +2738,7 @@
2675
2738
  "name": "ItemPriceState",
2676
2739
  "kind": "type",
2677
2740
  "jsdoc": "",
2678
- "decl": "export type ItemPriceState = { reference: CatalogReference } & (\n | { status: \"loading\" }\n | { status: \"ready\"; source: \"appleIap\"; displayPrice: string; productId: string; mappingRevision: string }\n | { status: \"ready\"; source: \"regular\"; displayPrice: string }\n | { status: \"unavailable\"; reason: PricingUnavailableReason; retryable: boolean }\n);",
2741
+ "decl": "export type ItemPriceState = { reference: CatalogReference } & (\n | { status: \"loading\" }\n | { status: \"ready\"; source: \"appleIap\"; displayPrice: string; productId: string; mappingRevision: string; renews?: true; subscriptionPeriod?: string }\n | { status: \"ready\"; source: \"regular\"; displayPrice: string }\n | { status: \"unavailable\"; reason: PricingUnavailableReason; retryable: boolean }\n);",
2679
2742
  "verificationChecked": true
2680
2743
  },
2681
2744
  {
@@ -2752,7 +2815,7 @@
2752
2815
  "name": "IapItemView",
2753
2816
  "kind": "interface",
2754
2817
  "jsdoc": "/** Serializable per-item state a screen binds. Carries no credential, transaction or entitlement. */",
2755
- "decl": "export interface IapItemView {\n reference: CatalogReference;\n route: IapPaymentRoute;\n /** Apple: StoreKit's string verbatim. Regular: the caller's commerce price. Otherwise \"\". */\n displayPrice: string;\n reason?: PricingUnavailableReason;\n retryable: boolean;\n /** True only when the existing commerce checkout may run: disabled or an explicit regular route. */\n canStartRegularCheckout: boolean;\n /** Apple purchasing is not available until a backend verifies transactions. */\n purchasable: false;\n}",
2818
+ "decl": "export interface IapItemView {\n reference: CatalogReference;\n route: IapPaymentRoute;\n /** Apple: StoreKit's string verbatim. Regular: the caller's commerce price. Otherwise \"\". */\n displayPrice: string;\n reason?: PricingUnavailableReason;\n retryable: boolean;\n /** True only when the existing commerce checkout may run: disabled or an explicit regular route. */\n canStartRegularCheckout: boolean;\n /** Apple only: the price is an auto-renewing subscription's, so the screen shows its own billing period. */\n renews?: true;\n /** With `renews`: StoreKit's billing period, ISO 8601 (`P1M`). A screen sells only when its item's matches. */\n subscriptionPeriod?: string;\n /** Apple purchasing is not available until a backend verifies transactions. */\n purchasable: false;\n}",
2756
2819
  "verificationChecked": true
2757
2820
  },
2758
2821
  {
@@ -2871,7 +2934,7 @@
2871
2934
  "name": "AppleSaleRule",
2872
2935
  "kind": "interface",
2873
2936
  "jsdoc": "/** How the App Store sells one vertical's Wix item: the purchases catalog's `appProductId` for it, and\n * the only product type the purchase flow sells it as. */",
2874
- "decl": "export interface AppleSaleRule {\n appProductId(entityId: string): string;\n productType: \"NON_CONSUMABLE\" | \"CONSUMABLE\";\n}",
2937
+ "decl": "export interface AppleSaleRule {\n appProductId(entityId: string): string;\n productType: \"NON_CONSUMABLE\" | \"CONSUMABLE\";\n /** Also sold as an App Store auto-renewing subscription; wix-iap decides per item which one applies. */\n renews?: boolean;\n}",
2875
2938
  "verificationChecked": true
2876
2939
  },
2877
2940
  {
@@ -2881,6 +2944,13 @@
2881
2944
  "decl": "export const STORES_PRODUCT_SALE_RULE: AppleSaleRule = { appProductId: (id) => id, productType: \"NON_CONSUMABLE\" };",
2882
2945
  "verificationChecked": true
2883
2946
  },
2947
+ {
2948
+ "name": "PLAN_SUBSCRIPTIONS_APPLE_SALES_ENABLED",
2949
+ "kind": "const",
2950
+ "jsdoc": "/**\n * Whether recurring Pricing Plans sell as App Store auto-renewing subscriptions. OFF: they stay off until\n * the subscription lifecycle (expiry, refunds, auto-renew off, grace) is proven; a separate change turns\n * it on. Off, an\n * `AUTO_RENEWING_SUBSCRIPTION` mapping is not for sale and a recurring plan cannot start Apple checkout.\n */",
2951
+ "decl": "export const PLAN_SUBSCRIPTIONS_APPLE_SALES_ENABLED = false;",
2952
+ "verificationChecked": true
2953
+ },
2884
2954
  {
2885
2955
  "name": "VIDEOS_APPLE_SALES_ENABLED",
2886
2956
  "kind": "const",
@@ -2892,7 +2962,7 @@
2892
2962
  "name": "AppleSaleOptions",
2893
2963
  "kind": "interface",
2894
2964
  "jsdoc": "/**\n * The one definition `himi store iap connect` writes mappings by and the mapping source reads them by,\n * keyed by catalog kind. Every vertical but Video sells through wix-iap StartItemPayment, which orders\n * the item server-side and names the App Store product by the item's own id.\n */",
2895
- "decl": "export interface AppleSaleOptions {\n videosAppleSalesEnabled?: boolean;\n}",
2965
+ "decl": "export interface AppleSaleOptions {\n videosAppleSalesEnabled?: boolean;\n planSubscriptionsAppleSalesEnabled?: boolean;\n}",
2896
2966
  "verificationChecked": true
2897
2967
  },
2898
2968
  {
@@ -3406,7 +3476,7 @@
3406
3476
  "name": "\"./iap-verticals/index.js\"",
3407
3477
  "kind": "reexport",
3408
3478
  "jsdoc": "",
3409
- "decl": "export { onlineProgramOrders, pricingPlanOrders, storesProductOrders, bookingOrders, eventTicketOrders, wixVideoOrders, classifyCart } from \"./iap-verticals/index.js\";",
3479
+ "decl": "export { onlineProgramOrders, pricingPlanOrders, storesProductOrders, bookingOrders, eventTicketOrders, wixVideoOrders, classifyCart, isAppleSellablePlan, applePlanPeriod, type ApplePlanPricing } from \"./iap-verticals/index.js\";",
3410
3480
  "verificationChecked": true
3411
3481
  },
3412
3482
  {
@@ -5527,7 +5597,7 @@
5527
5597
  "name": "PlanRow",
5528
5598
  "kind": "interface",
5529
5599
  "jsdoc": "/** One plan, flattened to the scalar fields an SDUI row template can bind.\n *\n * Flattened on purpose: a row template binds `$item.<field>` and cannot iterate\n * a nested list, so the perks arrive as three slots plus their `no…` flags\n * rather than an array. Three is a deliberate cap — it is what a plan card can\n * show without becoming a wall of text. */",
5530
- "decl": "export interface PlanRow {\n id: string;\n name: string;\n description: string;\n priceLine: string;\n periodLine: string;\n perk1: string; perk2: string; perk3: string;\n noPerk1: boolean; noPerk2: boolean; noPerk3: boolean;\n badge: string;\n noBadge: boolean;\n hasBadge: boolean;\n /** True when this is the plan the signed-in member currently holds. */\n joined: boolean;\n notJoined: boolean;\n /** \"Current plan\" / \"\" — the label a joined row shows instead of a Join button. */\n joinedLabel: string;\n /** Per-row CTA, so the template needs no conditional of its own. */\n cta: string;\n appleSupported: boolean;\n joinDisabled: boolean;\n joinNote: string;\n}",
5600
+ "decl": "export interface PlanRow {\n id: string;\n name: string;\n description: string;\n priceLine: string;\n periodLine: string;\n perk1: string; perk2: string; perk3: string;\n noPerk1: boolean; noPerk2: boolean; noPerk3: boolean;\n badge: string;\n noBadge: boolean;\n hasBadge: boolean;\n /** True when this is the plan the signed-in member currently holds. */\n joined: boolean;\n notJoined: boolean;\n /** \"Current plan\" / \"\" — the label a joined row shows instead of a Join button. */\n joinedLabel: string;\n /** Per-row CTA, so the template needs no conditional of its own. */\n cta: string;\n appleSupported: boolean;\n /** The App Store period Apple must renew it at (\"\" for a one-time plan): offered only on a matching price. */\n applePeriod: string;\n joinDisabled: boolean;\n joinNote: string;\n}",
5531
5601
  "verificationChecked": true
5532
5602
  },
5533
5603
  {
@@ -6050,6 +6120,76 @@
6050
6120
  }
6051
6121
  ]
6052
6122
  },
6123
+ {
6124
+ "name": "@himalaya/text-embedding",
6125
+ "source": "core/sdk/text-embedding/src/index.ts",
6126
+ "description": "Tier-5 typed binding for ON-DEVICE sentence embeddings.",
6127
+ "api": [
6128
+ {
6129
+ "name": "MAX_TEXTS_PER_CALL",
6130
+ "kind": "const",
6131
+ "jsdoc": "/** The most texts one `embed` call takes. */",
6132
+ "decl": "export const MAX_TEXTS_PER_CALL = 64;",
6133
+ "verificationChecked": true
6134
+ },
6135
+ {
6136
+ "name": "TextEmbeddingAvailability",
6137
+ "kind": "interface",
6138
+ "jsdoc": "",
6139
+ "decl": "export interface TextEmbeddingAvailability {\n available: boolean;\n /** \"apple_natural_language\" | \"mediapipe\" when available. */\n engine?: string;\n /** Vector length, when known. */\n dimensions?: number;\n /** Why it is unavailable — on Android, also while the model is still downloading. */\n reason?: string;\n}",
6140
+ "verificationChecked": true
6141
+ },
6142
+ {
6143
+ "name": "EmbedResult",
6144
+ "kind": "interface",
6145
+ "jsdoc": "",
6146
+ "decl": "export interface EmbedResult {\n /** One vector per input text, in the same order. */\n vectors: number[][];\n dimensions: number;\n engine: string;\n}",
6147
+ "verificationChecked": true
6148
+ },
6149
+ {
6150
+ "name": "RankedText",
6151
+ "kind": "interface",
6152
+ "jsdoc": "",
6153
+ "decl": "export interface RankedText {\n text: string;\n /** Index of the text in the input array. */\n index: number;\n /** Cosine similarity to the query, -1..1. */\n score: number;\n}",
6154
+ "verificationChecked": true
6155
+ },
6156
+ {
6157
+ "name": "availability",
6158
+ "kind": "function",
6159
+ "jsdoc": "/** Whether on-device embeddings are available for a language (default \"en\"). Never rejects. */",
6160
+ "decl": "export async function availability(language?: string): Promise<TextEmbeddingAvailability>;",
6161
+ "verificationChecked": true
6162
+ },
6163
+ {
6164
+ "name": "embed",
6165
+ "kind": "function",
6166
+ "jsdoc": "/** Embed up to {@link MAX_TEXTS_PER_CALL} texts on device. Rejects when unavailable. */",
6167
+ "decl": "export async function embed(texts: string[], opts: { language?: string } = {}): Promise<EmbedResult>;",
6168
+ "verificationChecked": true
6169
+ },
6170
+ {
6171
+ "name": "cosineSimilarity",
6172
+ "kind": "function",
6173
+ "jsdoc": "/** Cosine similarity of two vectors (-1..1); 0 when either is empty or zero or their lengths differ. */",
6174
+ "decl": "export function cosineSimilarity(a: readonly number[], b: readonly number[]): number;",
6175
+ "verificationChecked": true
6176
+ },
6177
+ {
6178
+ "name": "rank",
6179
+ "kind": "function",
6180
+ "jsdoc": "/** Rank `candidates` by semantic similarity to `query`, most similar first. Embeds in batches. */",
6181
+ "decl": "export async function rank(query: string, candidates: string[], opts: { language?: string } = {}): Promise<RankedText[]>;",
6182
+ "verificationChecked": true
6183
+ },
6184
+ {
6185
+ "name": "version",
6186
+ "kind": "const",
6187
+ "jsdoc": "",
6188
+ "decl": "export const version = 1;",
6189
+ "verificationChecked": true
6190
+ }
6191
+ ]
6192
+ },
6053
6193
  {
6054
6194
  "name": "@himalaya/text-recognition",
6055
6195
  "source": "core/sdk/text-recognition/src/index.ts",
@@ -6449,6 +6589,111 @@
6449
6589
  }
6450
6590
  ]
6451
6591
  },
6592
+ {
6593
+ "name": "@himalaya/translation",
6594
+ "source": "core/sdk/translation/src/index.ts",
6595
+ "description": "Tier-5 typed binding for ON-DEVICE language identification and translation.",
6596
+ "api": [
6597
+ {
6598
+ "name": "PairStatus",
6599
+ "kind": "type",
6600
+ "jsdoc": "",
6601
+ "decl": "export type PairStatus = \"installed\" | \"downloadable\" | \"unsupported\";",
6602
+ "verificationChecked": true
6603
+ },
6604
+ {
6605
+ "name": "TranslationAvailability",
6606
+ "kind": "interface",
6607
+ "jsdoc": "",
6608
+ "decl": "export interface TranslationAvailability {\n available: boolean;\n /** \"apple_translation\" | \"mlkit\" | \"chrome_built_in\" when available. */\n engine?: string;\n reason?: string;\n}",
6609
+ "verificationChecked": true
6610
+ },
6611
+ {
6612
+ "name": "PairAvailability",
6613
+ "kind": "interface",
6614
+ "jsdoc": "",
6615
+ "decl": "export interface PairAvailability extends TranslationAvailability {\n status: PairStatus;\n}",
6616
+ "verificationChecked": true
6617
+ },
6618
+ {
6619
+ "name": "LanguageCandidate",
6620
+ "kind": "interface",
6621
+ "jsdoc": "",
6622
+ "decl": "export interface LanguageCandidate {\n language: string;\n confidence: number;\n}",
6623
+ "verificationChecked": true
6624
+ },
6625
+ {
6626
+ "name": "IdentifyResult",
6627
+ "kind": "interface",
6628
+ "jsdoc": "",
6629
+ "decl": "export interface IdentifyResult {\n /** The most likely language, or \"und\". */\n language: string;\n confidence: number;\n /** Up to five candidates, most likely first. */\n candidates: LanguageCandidate[];\n engine: string;\n}",
6630
+ "verificationChecked": true
6631
+ },
6632
+ {
6633
+ "name": "PrepareResult",
6634
+ "kind": "interface",
6635
+ "jsdoc": "",
6636
+ "decl": "export interface PrepareResult {\n status: PairStatus;\n engine: string;\n reason?: string;\n}",
6637
+ "verificationChecked": true
6638
+ },
6639
+ {
6640
+ "name": "TranslateInput",
6641
+ "kind": "interface",
6642
+ "jsdoc": "",
6643
+ "decl": "export interface TranslateInput {\n text: string;\n /** The language to translate into. */\n target: string;\n /** The source language; identified from the text when omitted. */\n source?: string;\n}",
6644
+ "verificationChecked": true
6645
+ },
6646
+ {
6647
+ "name": "TranslateResult",
6648
+ "kind": "interface",
6649
+ "jsdoc": "",
6650
+ "decl": "export interface TranslateResult {\n text: string;\n source: string;\n target: string;\n engine: string;\n}",
6651
+ "verificationChecked": true
6652
+ },
6653
+ {
6654
+ "name": "availability",
6655
+ "kind": "function",
6656
+ "jsdoc": "/** Whether on-device translation is available at all on this device / host (spec R8). Never rejects. */",
6657
+ "decl": "export async function availability(): Promise<TranslationAvailability>;",
6658
+ "verificationChecked": true
6659
+ },
6660
+ {
6661
+ "name": "pairAvailability",
6662
+ "kind": "function",
6663
+ "jsdoc": "/** Whether a language pair is installed, downloadable or unsupported. Never rejects. */",
6664
+ "decl": "export async function pairAvailability(source: string, target: string): Promise<PairAvailability>;",
6665
+ "verificationChecked": true
6666
+ },
6667
+ {
6668
+ "name": "identifyLanguage",
6669
+ "kind": "function",
6670
+ "jsdoc": "/** Identify the language of a piece of text. Rejects when unavailable. */",
6671
+ "decl": "export async function identifyLanguage(text: string): Promise<IdentifyResult>;",
6672
+ "verificationChecked": true
6673
+ },
6674
+ {
6675
+ "name": "prepare",
6676
+ "kind": "function",
6677
+ "jsdoc": "/** Download a pair's models where the platform allows it (Android, web), and answer its status. */",
6678
+ "decl": "export async function prepare(source: string, target: string): Promise<PrepareResult>;",
6679
+ "verificationChecked": true
6680
+ },
6681
+ {
6682
+ "name": "translate",
6683
+ "kind": "function",
6684
+ "jsdoc": "/** Translate text on device. Rejects when the pair is unavailable or the source cannot be identified. */",
6685
+ "decl": "export async function translate(input: TranslateInput): Promise<TranslateResult>;",
6686
+ "verificationChecked": true
6687
+ },
6688
+ {
6689
+ "name": "version",
6690
+ "kind": "const",
6691
+ "jsdoc": "",
6692
+ "decl": "export const version = 1;",
6693
+ "verificationChecked": true
6694
+ }
6695
+ ]
6696
+ },
6452
6697
  {
6453
6698
  "name": "@himalaya/ui",
6454
6699
  "source": "core/sdk/ui/src/index.ts",
@@ -25,6 +25,7 @@ the SDK sources, so it matches the shipped SDKs.
25
25
  - [`camera`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fcamera?format=md) — Camera capability. 4 methods · returns FileHandles.
26
26
  - [`clipboard`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fclipboard?format=md) — System clipboard. 5 methods.
27
27
  - [`contacts`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fcontacts?format=md) — Device address book. 6 methods.
28
+ - [`entity_extraction`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fentity_extraction?format=md) — ON-DEVICE entity extraction. 2 methods.
28
29
  - [`file_picker`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Ffile_picker?format=md) — User-mediated document access OUTSIDE the app sandbox. 3 methods · returns FileHandles.
29
30
  - [`files`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Ffiles?format=md) — App-scoped document storage. 9 methods · returns FileHandles.
30
31
  - [`godot`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fgodot?format=md) — A Godot game surface. 3 methods · not in Brandy.
@@ -54,9 +55,11 @@ the SDK sources, so it matches the shipped SDKs.
54
55
  - [`speech`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fspeech?format=md) — Speech capability. 8 methods.
55
56
  - [`system_intents`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fsystem_intents?format=md) — System-intents capability. 2 methods · not in Brandy.
56
57
  - [`tasks`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Ftasks?format=md) — Reminders / to-dos. 7 methods.
58
+ - [`text_embedding`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Ftext_embedding?format=md) — ON-DEVICE sentence embeddings. 3 methods.
57
59
  - [`text_recognition`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Ftext_recognition?format=md) — ON-DEVICE text recognition (OCR). 2 methods.
58
60
  - [`theme`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Ftheme?format=md) — Runtime brand overlay. 2 methods.
59
61
  - [`torch`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Ftorch?format=md) — Torch (the camera flashlight). 4 methods.
62
+ - [`translation`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Ftranslation?format=md) — ON-DEVICE language identification and translation. 5 methods.
60
63
  - [`ui`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fui?format=md) — Imperative popup capability. 2 methods · not in Brandy.
61
64
  - [`wix_cashier`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fwix_cashier?format=md) — Native cashier. 2 methods.
62
65
  - [`wix_chat`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fwix_chat?format=md) — Host-owned realtime Chat event subscriptions. 2 methods.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1728.0",
3
+ "version": "0.1730.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": [
@@ -81,5 +81,5 @@
81
81
  "artifactId": "himalaya-cli"
82
82
  }
83
83
  },
84
- "falconPackageHash": "1154f006d00ca8db78e45f16755e4a7ce8d5756950ed01565d76c03c"
84
+ "falconPackageHash": "47887a31979c38ecebaf9a2b92c37c53bf84de73e408eac75af59b3a"
85
85
  }
@@ -13,7 +13,7 @@ import { session as wixPlatformSession } from "@himalaya/wix-platform";
13
13
  import { copyParam, copyTemplate, stashCopy } from "../_shared/himi-copy.js";
14
14
  import { activePlanIds, entitlement, isPaymentSetupFailure, payCashierOrder } from "@himalaya/checkout";
15
15
  import { hostSessionFromGlobal, iapPriceFields, type IapCatalogItem } from "@himalaya/iap";
16
- import { createIapCommerce, pricingPlanOrders } from "@himalaya/iap-checkout";
16
+ import { applePlanPeriod, createIapCommerce, isAppleSellablePlan, pricingPlanOrders } from "@himalaya/iap-checkout";
17
17
  import { iapPriceCopy, iapPurchaseCopy, resetUnhydratedKeysOnOlderRuntime } from "../_shared/iap-worker.js";
18
18
  import { formatCurrency } from "../_shared/engine-intl.js";
19
19
  import { isHostedWorker, hostedSitePageOpener } from "../_shared/hosted-checkout.js";
@@ -67,6 +67,8 @@ interface PlanRow {
67
67
  free: boolean;
68
68
  joined: boolean;
69
69
  appleSupported: boolean;
70
+ /** The App Store period Apple must renew it at ("" for a one-time plan): offered only on a matching price. */
71
+ applePeriod: string;
70
72
  joinLabel: string;
71
73
  joinDisabled: boolean;
72
74
  joinNote: string;
@@ -142,6 +144,12 @@ function isFreePlan(plan: WixPlan): boolean {
142
144
  return raw !== undefined && raw !== "" && Number(raw) === 0;
143
145
  }
144
146
 
147
+ /** Apple sells the plan only on the terms it bills: a recurring plan as a renewing App Store price. Only a
148
+ * settled price says whether it renews; while one reloads, the purchase fields keep the last route. */
149
+ function appleOffered(row: PlanRow, view: { route: string; renews?: true; subscriptionPeriod?: string }): boolean {
150
+ return row.appleSupported && (view.route !== "appleIap" || row.applePeriod === (view.renews ? view.subscriptionPeriod ?? "" : ""));
151
+ }
152
+
145
153
  function planRow(plan: WixPlan): PlanRow {
146
154
  const name = (plan.name || copyParam("plans.planFallbackName", "Plan")).trim();
147
155
  const perks = (plan.perks?.values ?? [])
@@ -173,7 +181,8 @@ function planRow(plan: WixPlan): PlanRow {
173
181
  hasBadge: !!badge,
174
182
  joinUrl: joinUrl(plan),
175
183
  free: isFreePlan(plan),
176
- appleSupported: plan.pricing?.singlePaymentUnlimited === true,
184
+ appleSupported: isAppleSellablePlan(plan.pricing),
185
+ applePeriod: applePlanPeriod(plan.pricing),
177
186
  joined: false, joinLabel: copyParam("plans.joinCta", "Continue"), joinDisabled: true, joinNote: "",
178
187
  };
179
188
  }
@@ -242,14 +251,14 @@ function pricedState(state: State): State {
242
251
  const regularReady = regularGeneration === memberSession.current().generation && (!memberSession.identityBound || memberSession.current().kind === "member");
243
252
  const joined = apple ? purchase.accessReady : regularReady && regularAccess.has(row.id);
244
253
  return { ...row, expanded: expandedPlans.has(row.id), benefitsCollapsed: !expandedPlans.has(row.id), benefitsState: expandedPlans.has(row.id) ? "expanded" : "collapsed", priceLine: view.route === "disabled" ? row.priceLine : price.priceText,
245
- periodLine: apple ? price.priceNote : view.route === "regular" || view.route === "disabled" ? row.periodLine : "",
254
+ periodLine: apple && !view.renews ? price.priceNote : view.route === "regular" || view.route === "disabled" || view.renews ? row.periodLine : "",
246
255
  trialBadge: apple || price.actionDisabled ? "" : row.trialBadge,
247
- validity: apple ? "" : row.validity,
256
+ validity: apple && !view.renews ? "" : row.validity,
248
257
  noTrialBadge: apple || price.actionDisabled || row.noTrialBadge,
249
258
  joined,
250
259
  joinLabel: joined ? copyParam("plans.joinedLabel", "Current plan") : apple ? purchase.buyLabel : row.joinLabel,
251
- joinDisabled: joined || (apple ? purchase.buyDisabled || !row.appleSupported : price.actionDisabled || !regularReady) || joining.has(row.id),
252
- joinNote: apple ? row.appleSupported ? purchase.buyNote : iapPriceCopy("plans").purchaseUnavailable : price.actionNote };
260
+ joinDisabled: joined || (apple ? purchase.buyDisabled || !appleOffered(row, view) : price.actionDisabled || !regularReady) || joining.has(row.id),
261
+ joinNote: apple ? appleOffered(row, view) ? purchase.buyNote : iapPriceCopy("plans").purchaseUnavailable : price.actionNote };
253
262
  });
254
263
  const detail = priced.find(row => row.id === detailInputId()) ?? null;
255
264
  const owned = detailInputId() ? detail?.joined ? detail : undefined : priced.find(row => row.joined);
@@ -442,7 +451,7 @@ const svc = defineService<State, {
442
451
  const purchase = commerce.purchaseFields(reference, iapPurchaseCopy("plans"));
443
452
  if (purchase.accessReady) return undefined;
444
453
  if (purchase.appleRoute) {
445
- if (!row.appleSupported) return undefined;
454
+ if (!appleOffered(row, commerce.pricing.view(reference))) return undefined;
446
455
  await commerce.buy({ reference });
447
456
  void svc.pricingPublish();
448
457
  return undefined;