@wix/himalaya-cli 0.1279.0 → 0.1281.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 (27) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/catalog-pricing-contract.d.ts +9 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/delivery-contract.d.ts +10 -3
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +33 -0
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/apple-iap-contract.d.ts +178 -0
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/apple-iap-core.d.ts +4 -0
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/apple-iap.d.ts +12 -0
  7. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/cashier-charges.d.ts +23 -0
  8. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/checkout-source.d.ts +1 -0
  9. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-finish-policy.d.ts +8 -0
  10. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-order-backend.d.ts +29 -0
  11. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/index.d.ts +3 -0
  12. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/online-programs.d.ts +2 -0
  13. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/pricing-plans.d.ts +2 -0
  14. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/shared.d.ts +19 -0
  15. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/stores.d.ts +9 -0
  16. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/index.d.ts +4 -0
  17. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/order-refs.d.ts +17 -0
  18. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/wix-bridge.d.ts +8 -0
  19. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap-checkout.mjs +1709 -0
  20. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap.mjs +34 -18
  21. package/dist/authoring-runtime/node_modules/@wix/himalaya/package.json +4 -0
  22. package/dist/cli.mjs +53 -4
  23. package/guides/component-reference.json +3 -2
  24. package/guides/component-reference.md +28 -1
  25. package/guides/iap-pricing.md +9 -0
  26. package/guides/sdk-reference.json +12 -6
  27. package/package.json +2 -2
@@ -825,6 +825,14 @@ export interface PickerProps {
825
825
  placeholder?: string;
826
826
  /** "$service:" sentinel → worker array of {id,label}; `options` is the fallback. */
827
827
  optionsPath?: string;
828
+ /** #3801 — the drawn field's look; setting it selects the drawn field ("menu" by default). */
829
+ field?: PickerFieldStyle;
830
+ /**
831
+ * #3801 — unset keeps each platform's own control, unless `field` is set or an option
832
+ * carries a swatch/imageUrl/icon (then "menu"). "menu": the drawn field + an anchored menu
833
+ * as wide as the field. "wheel": an inline wheel. "sheet": the drawn field + a bottom sheet.
834
+ */
835
+ presentation?: "menu" | "wheel" | "sheet";
828
836
  }
829
837
  ```
830
838
 
@@ -2316,7 +2324,8 @@ export interface LogicBundleRef {
2316
2324
 
2317
2325
  A few props take a typed **object** rather than nested components. Some are arrays of them:
2318
2326
  `FilterChips.chips` is a `FilterChip[]`, `SegmentedControl.options` / `Tabs.tabs` are a
2319
- `TabItem[]`, `Picker.options` / `WheelPicker.options` are a `PickerOption[]`, and
2327
+ `TabItem[]`, `Picker.options` / `WheelPicker.options` are a `PickerOption[]` (and
2328
+ `Picker.field` is a single `PickerFieldStyle`, the drawn field's look), and
2320
2329
  `Gauge.rings` is a `GaugeRing[]` (concentric rings, drawn outer→inner), and
2321
2330
  `RichContentEditor.tools` is a `RichContentEditorTool[]` (a fixed list of toolbar buttons).
2322
2331
  One is a single object: `Text.timeRef` is a `WidgetTimeRef`, the widget-safe live clock —
@@ -2341,6 +2350,24 @@ export interface TabItem {
2341
2350
  export interface PickerOption {
2342
2351
  id: string;
2343
2352
  label: string;
2353
+ /** #3801 — a colour chip before the label: a colour token name or "#RRGGBB". Drawn first. */
2354
+ swatch?: string;
2355
+ /** #3801 — a small remote thumbnail before the label (drawn when there is no swatch). */
2356
+ imageUrl?: string;
2357
+ /** #3801 — a leading icon name (drawn when there is no swatch or image). */
2358
+ icon?: IconRef;
2359
+ /** #3801 — shown but not choosable; never dispatched through `onChange`. */
2360
+ disabled?: boolean;
2361
+ }
2362
+
2363
+ export interface PickerFieldStyle {
2364
+ borderColor?: string;
2365
+ borderWidth?: number;
2366
+ cornerRadius?: number;
2367
+ minHeight?: number;
2368
+ padding?: number;
2369
+ chevronIcon?: string;
2370
+ placeholderColor?: string;
2344
2371
  }
2345
2372
 
2346
2373
  export interface GaugeRing {
@@ -30,6 +30,15 @@ does not mean the item is free. Only an explicit `regular` route keeps your exis
30
30
  `iapPriceFields(view, copy)` turns a view into bindable fields (`priceText`, `priceNote`,
31
31
  `priceLoading`, `hidePriceRetry`, `actionDisabled`, `actionNote`) using labels from your own copy.
32
32
 
33
+ `pricing.appleProduct(reference)` names the App Store product a settled `appleIap` route sells, and
34
+ returns `null` for any other route. It is for a checkout to compare with the product it is asked to
35
+ sell. Do not put it in screen state.
36
+
37
+ > **Buying is not switched on.** `@wix/himalaya/iap-checkout` is a shared App Store checkout,
38
+ > `createAppleIapCheckout`, built on this layer. It answers `notEnabled` and makes no call until Wix
39
+ > enables it, so keep App Store items blocked as described above. Never build your own purchase
40
+ > flow for them.
41
+
33
42
  ## Catalog references
34
43
 
35
44
  An item is identified by `{ kind, id }`. The kind is the same entity type `himi store iap` uses
@@ -1661,8 +1661,8 @@
1661
1661
  {
1662
1662
  "name": "SubmitProofResult",
1663
1663
  "kind": "type",
1664
- "jsdoc": "",
1665
- "decl": "export type SubmitProofResult =\n | { status: \"processed\" | \"alreadyProcessed\"; acknowledgement: ProcessingAcknowledgement }\n | { status: \"retryable\"; retryAfterMs?: number }\n | { status: \"authRequired\" | \"ownershipConflict\" | \"rejected\" };"
1664
+ "jsdoc": "/** `processed`/`alreadyProcessed`: durable access; finish. `accepted`: the backend durably owns the\n * proof and its own tracking, but access is not confirmed yet; finish, access stays `processing`.\n * `refusedFinal`: the backend recorded the proof and refused it for good; finish, access stays\n * `rejected`. All four must echo the acknowledgement. `rejected`/`ownershipConflict` hold the\n * transaction unfinished. */",
1665
+ "decl": "export type SubmitProofResult =\n | { status: \"processed\" | \"alreadyProcessed\" | \"accepted\" | \"refusedFinal\"; acknowledgement: ProcessingAcknowledgement }\n | { status: \"retryable\"; retryAfterMs?: number }\n | { status: \"authRequired\" | \"ownershipConflict\" | \"rejected\" };"
1666
1666
  },
1667
1667
  {
1668
1668
  "name": "DeliveryBackend",
@@ -1697,8 +1697,8 @@
1697
1697
  {
1698
1698
  "name": "AccessStatus",
1699
1699
  "kind": "type",
1700
- "jsdoc": "",
1701
- "decl": "export type AccessStatus = \"pending\" | \"confirming\" | \"waitingToRetry\" | \"signInRequired\"\n | \"ownershipConflict\" | \"rejected\" | \"confirmed\";"
1700
+ "jsdoc": "/** `processing`: the backend accepted the proof and the transaction may finish, but access is not\n * confirmed; the backend's own tracking decides it. */",
1701
+ "decl": "export type AccessStatus = \"pending\" | \"confirming\" | \"waitingToRetry\" | \"signInRequired\"\n | \"ownershipConflict\" | \"rejected\" | \"processing\" | \"confirmed\";"
1702
1702
  },
1703
1703
  {
1704
1704
  "name": "CompletionStatus",
@@ -1710,7 +1710,7 @@
1710
1710
  "name": "DeliveryItemState",
1711
1711
  "kind": "interface",
1712
1712
  "jsdoc": "/** Safe to render and persist: no proof, account token, transaction or member id. */",
1713
- "decl": "export interface DeliveryItemState {\n productId: string;\n environment: AppleTransaction[\"environment\"];\n /** Present in the last native unfinished enumeration; null before one succeeded. */\n held: boolean | null;\n /** `confirmed` only from a matching acknowledgement for the current session. */\n access: AccessStatus;\n completion: CompletionStatus;\n attempts: number;\n nextAttemptAt: number | null;\n errorCode: DeliveryErrorCode | null;\n}"
1713
+ "decl": "export interface DeliveryItemState {\n productId: string;\n environment: AppleTransaction[\"environment\"];\n /** Present in the last native unfinished enumeration; null before one succeeded. */\n held: boolean | null;\n /** `confirmed` only from a matching `processed` acknowledgement for the current session. */\n access: AccessStatus;\n completion: CompletionStatus;\n attempts: number;\n nextAttemptAt: number | null;\n errorCode: DeliveryErrorCode | null;\n}"
1714
1714
  },
1715
1715
  {
1716
1716
  "name": "DeliveryState",
@@ -1862,6 +1862,12 @@
1862
1862
  "jsdoc": "/** Serializable per-item state a screen binds. Carries no credential, transaction or entitlement. */",
1863
1863
  "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}"
1864
1864
  },
1865
+ {
1866
+ "name": "IapAppleProduct",
1867
+ "kind": "interface",
1868
+ "jsdoc": "/** The App Store product a settled route sells. For a checkout to compare with the product the\n * payment service names; not screen state and not a purchase authorization. */",
1869
+ "decl": "export interface IapAppleProduct {\n productId: string;\n mappingRevision: string;\n}"
1870
+ },
1865
1871
  {
1866
1872
  "name": "IapCheckoutDecision",
1867
1873
  "kind": "interface",
@@ -1884,7 +1890,7 @@
1884
1890
  "name": "IapCatalogPricing",
1885
1891
  "kind": "interface",
1886
1892
  "jsdoc": "",
1887
- "decl": "export interface IapCatalogPricing {\n readonly enabled: boolean;\n /** Batched mapping + Apple lookup for the items a screen shows. */\n load(input: IapCatalogInput): Promise<void>;\n refresh(): Promise<void>;\n view(reference: CatalogReference): IapItemView;\n /** May a commerce flow START now? Re-read immediately before the first mutation: the route as it\n * is now, so a refresh in flight (`resolving`) blocks. */\n checkoutGuard(reference: CatalogReference): IapCheckoutDecision;\n /** May a flow that already STARTED take its next commerce step (e.g. pay after a join)? While no\n * new answer exists (a refresh in flight, or a mapping backend that did not answer) it uses the\n * route the last settled lookup gave for the current scope, so a routine refresh cannot strand a\n * regular checkout halfway; any new answer other than regular stops it. */\n continueCheckoutGuard(reference: CatalogReference): IapCheckoutDecision;\n /** The host-scheduled visible refresh; undefined while disabled. */\n pollDirective(action: string): IapPollDirective | undefined;\n dispose(): void;\n}"
1893
+ "decl": "export interface IapCatalogPricing {\n readonly enabled: boolean;\n /** Batched mapping + Apple lookup for the items a screen shows. */\n load(input: IapCatalogInput): Promise<void>;\n refresh(): Promise<void>;\n view(reference: CatalogReference): IapItemView;\n /** May a commerce flow START now? Re-read immediately before the first mutation: the route as it\n * is now, so a refresh in flight (`resolving`) blocks. */\n checkoutGuard(reference: CatalogReference): IapCheckoutDecision;\n /** May a flow that already STARTED take its next commerce step (e.g. pay after a join)? While no\n * new answer exists (a refresh in flight, or a mapping backend that did not answer) it uses the\n * route the last settled lookup gave for the current scope, so a routine refresh cannot strand a\n * regular checkout halfway; any new answer other than regular stops it. */\n continueCheckoutGuard(reference: CatalogReference): IapCheckoutDecision;\n /** The App Store product the item's settled Apple route sells; null on any other route, while\n * a lookup is resolving, while disabled or after dispose. */\n appleProduct(reference: CatalogReference): IapAppleProduct | null;\n /** The host-scheduled visible refresh; undefined while disabled. */\n pollDirective(action: string): IapPollDirective | undefined;\n dispose(): void;\n}"
1888
1894
  },
1889
1895
  {
1890
1896
  "name": "IapPriceCopy",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1279.0",
3
+ "version": "0.1281.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": [
@@ -70,5 +70,5 @@
70
70
  "artifactId": "himalaya-cli"
71
71
  }
72
72
  },
73
- "falconPackageHash": "9fef991555cd52fbac9bdcbd94b346d3a14c87204cce5605cc1bdff1"
73
+ "falconPackageHash": "18e6a48db1eed7bbaca4bf6ade0fcd4bd61ca66903cace609f49f2ea"
74
74
  }