@wix/himalaya-cli 0.1737.0 → 0.1739.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/sdk/iap/src/wix-payments-contract.d.ts +6 -8
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/checkout-source.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap-checkout.mjs +2 -2
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap.mjs +2 -2
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +2 -2
- package/dist/cli.mjs +3 -3
- package/guides/iap-products.md +1 -1
- package/guides/iap-screen-adoption.md +1 -1
- package/guides/sdk-reference.json +5 -5
- package/guides/tier-5-add-a-screen.md +12 -0
- package/package.json +2 -2
|
@@ -43,21 +43,19 @@ export interface AppleSaleRule {
|
|
|
43
43
|
* id (eCom's `catalogItemId`). One-time unlocks only, whatever the backend also accepts. */
|
|
44
44
|
export declare const STORES_PRODUCT_SALE_RULE: AppleSaleRule;
|
|
45
45
|
/**
|
|
46
|
-
* Whether recurring Pricing Plans sell as App Store auto-renewing subscriptions.
|
|
47
|
-
* the subscription lifecycle (expiry, refunds, auto-renew off, grace) is proven; a separate change turns
|
|
48
|
-
* it on. Off, an
|
|
46
|
+
* Whether recurring Pricing Plans sell as App Store auto-renewing subscriptions. ON. Off, an
|
|
49
47
|
* `AUTO_RENEWING_SUBSCRIPTION` mapping is not for sale and a recurring plan cannot start Apple checkout.
|
|
50
48
|
*/
|
|
51
|
-
export declare const PLAN_SUBSCRIPTIONS_APPLE_SALES_ENABLED =
|
|
49
|
+
export declare const PLAN_SUBSCRIPTIONS_APPLE_SALES_ENABLED = true;
|
|
52
50
|
/**
|
|
53
|
-
* Whether Wix Video videos sell through the App Store.
|
|
54
|
-
*
|
|
55
|
-
*
|
|
51
|
+
* Whether Wix Video videos sell through the App Store. ON. A video with a one-time Sale price above zero
|
|
52
|
+
* is mapped under its video id as a one-time unlock (`wixVideoItem`), and screens show its App Store
|
|
53
|
+
* price. ON, the Video
|
|
56
54
|
* screen offers Buy: the device opens Video's own SALE order on its GraphQL gateway (`wixVideoOrders`),
|
|
57
55
|
* and the shared checkout charges it with appleIAP and pays it through StartPayment. OFF, the adapter
|
|
58
56
|
* refuses every sale and the screen composes no checkout.
|
|
59
57
|
*/
|
|
60
|
-
export declare const VIDEOS_APPLE_SALES_ENABLED =
|
|
58
|
+
export declare const VIDEOS_APPLE_SALES_ENABLED = true;
|
|
61
59
|
/**
|
|
62
60
|
* The one definition `himi store iap connect` writes mappings by and the mapping source reads them by,
|
|
63
61
|
* keyed by catalog kind. Every vertical but Video sells through wix-iap StartItemPayment, which orders
|
|
@@ -7,5 +7,5 @@ export declare function appleIapCheckoutEnabled(): boolean;
|
|
|
7
7
|
* Kept because screens generated from earlier `himi init` templates still call it. */
|
|
8
8
|
export declare function storesAppleSalesEnabled(): boolean;
|
|
9
9
|
/** Whether a Wix Video sells through the App Store: the device opens Video's SALE order and the
|
|
10
|
-
* shared checkout pays it (`VIDEOS_APPLE_SALES_ENABLED` in @himalaya/iap
|
|
10
|
+
* shared checkout pays it (`VIDEOS_APPLE_SALES_ENABLED` in @himalaya/iap). */
|
|
11
11
|
export declare function videosAppleSalesEnabled(): boolean;
|
|
@@ -727,8 +727,8 @@ var ATTENDANCE_SALE_RULE = { appProductId: (id) => id, productType: "CONSUMABLE"
|
|
|
727
727
|
var STORES_PRODUCT_SALE_RULE = { appProductId: (id) => id, productType: "NON_CONSUMABLE" };
|
|
728
728
|
var ONLINE_PROGRAM_SALE_RULE = { appProductId: (id) => id, productType: "NON_CONSUMABLE" };
|
|
729
729
|
var PRICING_PLAN_SALE_RULE = { appProductId: (id) => id, productType: "NON_CONSUMABLE" };
|
|
730
|
-
var PLAN_SUBSCRIPTIONS_APPLE_SALES_ENABLED =
|
|
731
|
-
var VIDEOS_APPLE_SALES_ENABLED =
|
|
730
|
+
var PLAN_SUBSCRIPTIONS_APPLE_SALES_ENABLED = true;
|
|
731
|
+
var VIDEOS_APPLE_SALES_ENABLED = true;
|
|
732
732
|
var VIDEO_SALE_RULE = { appProductId: (id) => id, productType: "NON_CONSUMABLE" };
|
|
733
733
|
function appleSaleRules(options = {}) {
|
|
734
734
|
return {
|
|
@@ -687,8 +687,8 @@ var ATTENDANCE_SALE_RULE = { appProductId: (id) => id, productType: "CONSUMABLE"
|
|
|
687
687
|
var STORES_PRODUCT_SALE_RULE = { appProductId: (id) => id, productType: "NON_CONSUMABLE" };
|
|
688
688
|
var ONLINE_PROGRAM_SALE_RULE = { appProductId: (id) => id, productType: "NON_CONSUMABLE" };
|
|
689
689
|
var PRICING_PLAN_SALE_RULE = { appProductId: (id) => id, productType: "NON_CONSUMABLE" };
|
|
690
|
-
var PLAN_SUBSCRIPTIONS_APPLE_SALES_ENABLED =
|
|
691
|
-
var VIDEOS_APPLE_SALES_ENABLED =
|
|
690
|
+
var PLAN_SUBSCRIPTIONS_APPLE_SALES_ENABLED = true;
|
|
691
|
+
var VIDEOS_APPLE_SALES_ENABLED = true;
|
|
692
692
|
var VIDEO_SALE_RULE = { appProductId: (id) => id, productType: "NON_CONSUMABLE" };
|
|
693
693
|
function appleSaleRules(options = {}) {
|
|
694
694
|
return {
|
|
@@ -2376,8 +2376,8 @@ var ATTENDANCE_SALE_RULE = { appProductId: (id2) => id2, productType: "CONSUMABL
|
|
|
2376
2376
|
var STORES_PRODUCT_SALE_RULE = { appProductId: (id2) => id2, productType: "NON_CONSUMABLE" };
|
|
2377
2377
|
var ONLINE_PROGRAM_SALE_RULE = { appProductId: (id2) => id2, productType: "NON_CONSUMABLE" };
|
|
2378
2378
|
var PRICING_PLAN_SALE_RULE = { appProductId: (id2) => id2, productType: "NON_CONSUMABLE" };
|
|
2379
|
-
var PLAN_SUBSCRIPTIONS_APPLE_SALES_ENABLED =
|
|
2380
|
-
var VIDEOS_APPLE_SALES_ENABLED =
|
|
2379
|
+
var PLAN_SUBSCRIPTIONS_APPLE_SALES_ENABLED = true;
|
|
2380
|
+
var VIDEOS_APPLE_SALES_ENABLED = true;
|
|
2381
2381
|
var VIDEO_SALE_RULE = { appProductId: (id2) => id2, productType: "NON_CONSUMABLE" };
|
|
2382
2382
|
function appleSaleRules(options = {}) {
|
|
2383
2383
|
return {
|
package/dist/cli.mjs
CHANGED
|
@@ -29216,6 +29216,7 @@ var init_page_worker = __esm({
|
|
|
29216
29216
|
var ICON_VIEW_BOX, ICON_STROKE_WIDTH, ICON_FALLBACK, ICON_CATALOG, ICON_NORMALIZED_INDEX, ICON_NAMES;
|
|
29217
29217
|
var init_icon_catalog_generated = __esm({
|
|
29218
29218
|
"../../core/ts/src/icon-catalog.generated.ts"() {
|
|
29219
|
+
"use strict";
|
|
29219
29220
|
init_define_HHP_CATALOG();
|
|
29220
29221
|
ICON_VIEW_BOX = 24;
|
|
29221
29222
|
ICON_STROKE_WIDTH = 2;
|
|
@@ -40525,7 +40526,6 @@ function shouldRevealError(args) {
|
|
|
40525
40526
|
var EMAIL_RE, URL_HOST_RE, INTEGER_RE, NUMBER_RE, AUTHORED_PATTERN_LIMIT, authoredPatterns;
|
|
40526
40527
|
var init_validation = __esm({
|
|
40527
40528
|
"../../core/ts/src/validation.ts"() {
|
|
40528
|
-
"use strict";
|
|
40529
40529
|
init_define_HHP_CATALOG();
|
|
40530
40530
|
EMAIL_RE = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
|
|
40531
40531
|
URL_HOST_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(:[0-9]+)?$/;
|
|
@@ -241243,8 +241243,8 @@ var init_wix_payments_contract = __esm({
|
|
|
241243
241243
|
STORES_PRODUCT_SALE_RULE = { appProductId: (id) => id, productType: "NON_CONSUMABLE" };
|
|
241244
241244
|
ONLINE_PROGRAM_SALE_RULE = { appProductId: (id) => id, productType: "NON_CONSUMABLE" };
|
|
241245
241245
|
PRICING_PLAN_SALE_RULE = { appProductId: (id) => id, productType: "NON_CONSUMABLE" };
|
|
241246
|
-
PLAN_SUBSCRIPTIONS_APPLE_SALES_ENABLED =
|
|
241247
|
-
VIDEOS_APPLE_SALES_ENABLED =
|
|
241246
|
+
PLAN_SUBSCRIPTIONS_APPLE_SALES_ENABLED = true;
|
|
241247
|
+
VIDEOS_APPLE_SALES_ENABLED = true;
|
|
241248
241248
|
VIDEO_SALE_RULE = { appProductId: (id) => id, productType: "NON_CONSUMABLE" };
|
|
241249
241249
|
APPLE_SALE_RULES = appleSaleRules();
|
|
241250
241250
|
APPLE_PROVISIONING_RULES = {
|
package/guides/iap-products.md
CHANGED
|
@@ -557,7 +557,7 @@ In order:
|
|
|
557
557
|
4. **One mapping per Wix item → Apple product, through Catalog `listProducts` / `createProduct`.** Online Programs map by program id, Wix Stores
|
|
558
558
|
digital products by product id, one-time unlimited Pricing Plans by plan id, and Wix videos by
|
|
559
559
|
video id (the ids the purchase flow looks up), all only as non-consumables. A mapped video gets
|
|
560
|
-
its App Store price on the Videos screens
|
|
560
|
+
its App Store price on the Videos screens, and the Video screen sells it (device order,
|
|
561
561
|
[checkout](iap-wix-checkout.md#wix-video-the-device-opens-videos-order)). A plan is mapped only when the site reads it
|
|
562
562
|
as one-time unlimited (one payment, valid until cancelled); a recurring, time-limited or archived
|
|
563
563
|
plan is skipped. When the site's plans cannot be read, each plan is `failed` (`request_failed`,
|
|
@@ -21,7 +21,7 @@ and generated templates. Historical receipts retain their recorded amounts.
|
|
|
21
21
|
| `himi-branded-lite-cart` | Full catalog app/item/options reference and quantity; line `total` | Refreshes the current cart and routes before payment; only verified physical regular carts keep checkout; Apple, mixed, multiple-digital, unknown and unverified digital carts are blocked |
|
|
22
22
|
| `himi-store-cart` | Full catalog reference; line `total` | Consistent shared prices and suppressed Wix subtotal when routes are unsettled or Apple; remains read-only |
|
|
23
23
|
| `himi-branded-lite-order` | Original catalog app/item/options and quantity | Preserves references; checks current routing and catalog facts before re-adding physical items; never reprices the paid receipt |
|
|
24
|
-
| `himi-branded-lite-videos`, `himi-branded-lite-video` (Videos, channel and Video screens) | Wix video ID (`wixVideo`); carousel and row `priceLine`, Video `priceText` / `priceNote` / `purchaseNote` | Shared pricing for videos with a one-time Sale price, in channels that require no subscription or plan. The Video screen's Buy (`buyHidden` / `buyLabel` / `buyDisabled` / `buyNote`) sells through `wixVideoOrders`, the device's own Video order,
|
|
24
|
+
| `himi-branded-lite-videos`, `himi-branded-lite-video` (Videos, channel and Video screens) | Wix video ID (`wixVideo`); carousel and row `priceLine`, Video `priceText` / `priceNote` / `purchaseNote` | Shared pricing for videos with a one-time Sale price, in channels that require no subscription or plan. The Video screen's Buy (`buyHidden` / `buyLabel` / `buyDisabled` / `buyNote`) sells through `wixVideoOrders`, the device's own Video order, while `VIDEOS_APPLE_SALES_ENABLED` is on, which it is by default. Home's video rail stays unpriced |
|
|
25
25
|
| `video-courses-preview` / Atlas | `storeProductId`, plus course-specific member access mirror | Deferred: deployment and usable course access are unverified. Existing native digital-checkout guard remains; Atlas courses are Stores products, not Wix Video, so `wixVideoOrders` does not apply |
|
|
26
26
|
| `wix-spaces-product-detail`, `wix-spaces-shop`, `wix-spaces-saved`, `wix-spaces-cart` | Legacy worker sources | Retired `fixtures/wix-spaces-clone/dev` descriptors still reference these workers; no active app or generated template consumer. Legacy pricing/checkout is not migrated or certified for managed Apple IAP |
|
|
27
27
|
| `hip-shop-product`, `hip-shop-home`, `hip-shop-explore`, `hip-shop-saved`, `hip-shop-cart` | Legacy worker sources | Retired `fixtures/hip-shop/dev` descriptors reference these workers; no active app or generated template consumer. Legacy pricing/checkout is not migrated or certified for managed Apple IAP |
|
|
@@ -2947,15 +2947,15 @@
|
|
|
2947
2947
|
{
|
|
2948
2948
|
"name": "PLAN_SUBSCRIPTIONS_APPLE_SALES_ENABLED",
|
|
2949
2949
|
"kind": "const",
|
|
2950
|
-
"jsdoc": "/**\n * Whether recurring Pricing Plans sell as App Store auto-renewing subscriptions.
|
|
2951
|
-
"decl": "export const PLAN_SUBSCRIPTIONS_APPLE_SALES_ENABLED =
|
|
2950
|
+
"jsdoc": "/**\n * Whether recurring Pricing Plans sell as App Store auto-renewing subscriptions. 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 = true;",
|
|
2952
2952
|
"verificationChecked": true
|
|
2953
2953
|
},
|
|
2954
2954
|
{
|
|
2955
2955
|
"name": "VIDEOS_APPLE_SALES_ENABLED",
|
|
2956
2956
|
"kind": "const",
|
|
2957
|
-
"jsdoc": "/**\n * Whether Wix Video videos sell through the App Store.
|
|
2958
|
-
"decl": "export const VIDEOS_APPLE_SALES_ENABLED =
|
|
2957
|
+
"jsdoc": "/**\n * Whether Wix Video videos sell through the App Store. ON. A video with a one-time Sale price above zero\n * is mapped under its video id as a one-time unlock (`wixVideoItem`), and screens show its App Store\n * price. ON, the Video\n * screen offers Buy: the device opens Video's own SALE order on its GraphQL gateway (`wixVideoOrders`),\n * and the shared checkout charges it with appleIAP and pays it through StartPayment. OFF, the adapter\n * refuses every sale and the screen composes no checkout.\n */",
|
|
2958
|
+
"decl": "export const VIDEOS_APPLE_SALES_ENABLED = true;",
|
|
2959
2959
|
"verificationChecked": true
|
|
2960
2960
|
},
|
|
2961
2961
|
{
|
|
@@ -3573,7 +3573,7 @@
|
|
|
3573
3573
|
{
|
|
3574
3574
|
"name": "videosAppleSalesEnabled",
|
|
3575
3575
|
"kind": "function",
|
|
3576
|
-
"jsdoc": "/** Whether a Wix Video sells through the App Store: the device opens Video's SALE order and the\n * shared checkout pays it (`VIDEOS_APPLE_SALES_ENABLED` in @himalaya/iap
|
|
3576
|
+
"jsdoc": "/** Whether a Wix Video sells through the App Store: the device opens Video's SALE order and the\n * shared checkout pays it (`VIDEOS_APPLE_SALES_ENABLED` in @himalaya/iap). */",
|
|
3577
3577
|
"decl": "export function videosAppleSalesEnabled(): boolean;",
|
|
3578
3578
|
"verificationChecked": true
|
|
3579
3579
|
},
|
|
@@ -1089,6 +1089,18 @@ them from the store like real data. Every screen that shows the record reads the
|
|
|
1089
1089
|
each other screen that shows the record and assert the changed value there (`himi docs
|
|
1090
1090
|
himi-test`, "Prove a local mutation survives a cold visit").
|
|
1091
1091
|
|
|
1092
|
+
**A count or summary of those records is computed from the store, never written down.** A
|
|
1093
|
+
line like "3 activities · 4.5 km", a total, a "2 of 5 done" or a badge count describes records
|
|
1094
|
+
the user can change, so the screen that shows it computes it from the records every time it
|
|
1095
|
+
reads them: in `load`, in the `"return"` refresh, and in any of its own actions that changes them.
|
|
1096
|
+
Use one helper for all three, so no path leaves the old value on screen. Never put it on the
|
|
1097
|
+
sample data as a ready-made string or number (`summary: "3 activities"`, `count: 3`): the first
|
|
1098
|
+
change makes it wrong, and nothing checks that it was right to begin with. Neither `himi validate`
|
|
1099
|
+
nor `himi test` can catch a stale summary, because to them it is only text. Assert it in the same
|
|
1100
|
+
`coldVisits` journey: change a record, open the screen that summarises it, and check every part
|
|
1101
|
+
the change can move (both the count and the distance in "3 activities · 4.5 km"), or the whole
|
|
1102
|
+
rendered line.
|
|
1103
|
+
|
|
1092
1104
|
### App services: state that outlives every screen
|
|
1093
1105
|
|
|
1094
1106
|
An app service is a `defineService` in the app's one app-level bundle, which the shell
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1739.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "himi — the Himalaya authoring CLI. Build a Tier-5 content package on your own machine, push it to the production serve as a draft, preview it on web + Himi Player, and read worker logs back — the remote dev loop. Wraps @himalaya/serve-cli for transport.",
|
|
6
6
|
"keywords": [
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"artifactId": "himalaya-cli"
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
|
-
"falconPackageHash": "
|
|
85
|
+
"falconPackageHash": "bb30d0f036568b2a2927d255bf646a87107fde47a6fc77f3a4e60063"
|
|
86
86
|
}
|