@wix/himalaya-cli 0.1723.0 → 0.1724.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 +2 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/godot/src/index.d.ts +3 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/attendance-classifier.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/wix-payments-contract.d.ts +3 -39
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/define-app.d.ts +10 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/index.d.ts +2 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/preview-surfaces.d.ts +24 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/site-web-sdk.d.ts +37 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/site-web-sdk.generated.d.ts +1 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/wrapped-app-link.d.ts +13 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/checkout-source.d.ts +2 -3
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-order-backend.d.ts +0 -2
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/attendance.d.ts +2 -8
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/index.d.ts +4 -13
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +175 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap-checkout.mjs +46 -502
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap.mjs +5 -26
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +64 -648
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +1 -0
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/package-reader.js +4 -4
- package/dist/browser-plane/preview-deferred/{74e5b76ecf38392d7eb3f9a9512d60a0675de85d411c9c56293e123152b3f70b.bin → a6e25c06d2a17ab2b5e34bf2b5965fa3ddd76ce3da32a036e546a60938130d7b.bin} +1 -1
- package/dist/browser-plane/sw.js +9 -9
- package/dist/cli.mjs +1275 -408
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/himi-json-output.md +6 -2
- package/guides/iap-screen-adoption.md +4 -4
- package/guides/sdk-reference.json +11 -74
- package/guides/webview-page-sdk.md +14 -0
- package/guides/wix-business-context.md +24 -0
- package/guides/wix-site-to-himi-app.md +2 -1
- package/package.json +2 -2
- package/templates/beauty-salon/tier5-src/himi-store-account/index.ts +2 -2
- package/templates/beauty-salon/tier5-src/himi-store-product/index.ts +5 -8
- package/templates/branded-lite/tier5-src/himi-store-account/index.ts +2 -2
- package/templates/branded-lite/tier5-src/himi-store-product/index.ts +5 -8
- package/templates/brandy/README.md +13 -0
- package/templates/brandy/config.ts +15 -1
- package/templates/brandy/dev/index.ts +10 -7
- package/templates/community-club/tier5-src/himi-store-account/index.ts +2 -2
- package/templates/conference/tier5-src/himi-store-account/index.ts +2 -2
- package/templates/events-meetups/tier5-src/himi-store-account/index.ts +2 -2
- package/templates/gym-fitness/tier5-src/himi-store-account/index.ts +2 -2
- package/templates/gym-fitness/tier5-src/himi-store-product/index.ts +5 -8
- package/templates/nonprofit-cause/tier5-src/himi-store-account/index.ts +2 -2
- package/templates/podcast-creator/tier5-src/himi-store-account/index.ts +2 -2
- package/templates/portfolio-creative/tier5-src/himi-store-account/index.ts +2 -2
- package/templates/portfolio-creative/tier5-src/himi-store-product/index.ts +5 -8
- package/templates/restaurant/tier5-src/himi-store-account/index.ts +2 -2
- package/templates/retail-store/tier5-src/himi-store-account/index.ts +2 -2
- package/templates/retail-store/tier5-src/himi-store-product/index.ts +5 -8
- package/templates/salon-spa/tier5-src/himi-store-account/index.ts +2 -2
- package/templates/wholesale-store/tier5-src/himi-store-account/index.ts +2 -2
- package/templates/wholesale-store/tier5-src/himi-store-product/index.ts +5 -8
- package/templates/yoga-studio/tier5-src/himi-store-account/index.ts +2 -2
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/attendance-orders.d.ts +0 -10
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/online-programs-orders.d.ts +0 -2
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/pricing-plans-orders.d.ts +0 -2
|
@@ -673,36 +673,25 @@ var IAP_CATALOG_KINDS = ["onlineProgram", "storesProduct", "pricingPlan", "booki
|
|
|
673
673
|
|
|
674
674
|
// ../../core/sdk/iap/src/wix-payments-contract.ts
|
|
675
675
|
var HIMALAYA_SERVE_IAP_ROUTE = { prefix: "/himalaya-serve/v1/iap" };
|
|
676
|
-
var BOOKINGS_APPLE_SALES_ENABLED = true;
|
|
677
|
-
var EVENTS_APPLE_SALES_ENABLED = true;
|
|
678
676
|
var ATTENDANCE_SALE_RULE = { appProductId: (id) => id, productType: "CONSUMABLE" };
|
|
679
|
-
var STORES_APPLE_SALES_ENABLED = true;
|
|
680
677
|
var STORES_PRODUCT_SALE_RULE = { appProductId: (id) => id, productType: "NON_CONSUMABLE" };
|
|
681
678
|
var ONLINE_PROGRAM_SALE_RULE = { appProductId: (id) => id, productType: "NON_CONSUMABLE" };
|
|
682
|
-
var PRICING_PLAN_APPLE_SALES_ENABLED = true;
|
|
683
679
|
var PRICING_PLAN_SALE_RULE = { appProductId: (id) => id, productType: "NON_CONSUMABLE" };
|
|
684
680
|
var VIDEOS_APPLE_SALES_ENABLED = false;
|
|
685
|
-
var PRICING_PLAN_ITEM_PAYMENT_ENABLED = false;
|
|
686
|
-
var ONLINE_PROGRAM_ITEM_PAYMENT_ENABLED = false;
|
|
687
|
-
var BOOKINGS_ITEM_PAYMENT_ENABLED = false;
|
|
688
|
-
var EVENTS_ITEM_PAYMENT_ENABLED = false;
|
|
689
|
-
var CANCEL_PAYMENT_ENABLED = false;
|
|
690
681
|
var VIDEO_SALE_RULE = { appProductId: (id) => id, productType: "NON_CONSUMABLE" };
|
|
691
682
|
function appleSaleRules(options = {}) {
|
|
692
683
|
return {
|
|
693
684
|
onlineProgram: ONLINE_PROGRAM_SALE_RULE,
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
685
|
+
storesProduct: STORES_PRODUCT_SALE_RULE,
|
|
686
|
+
pricingPlan: PRICING_PLAN_SALE_RULE,
|
|
687
|
+
bookingsService: ATTENDANCE_SALE_RULE,
|
|
688
|
+
eventsTicket: ATTENDANCE_SALE_RULE,
|
|
698
689
|
...options.videosAppleSalesEnabled ?? VIDEOS_APPLE_SALES_ENABLED ? { wixVideo: VIDEO_SALE_RULE } : {}
|
|
699
690
|
};
|
|
700
691
|
}
|
|
701
692
|
var APPLE_SALE_RULES = appleSaleRules();
|
|
702
693
|
var APPLE_PROVISIONING_RULES = {
|
|
703
694
|
...APPLE_SALE_RULES,
|
|
704
|
-
bookingsService: ATTENDANCE_SALE_RULE,
|
|
705
|
-
eventsTicket: ATTENDANCE_SALE_RULE,
|
|
706
695
|
wixVideo: VIDEO_SALE_RULE
|
|
707
696
|
};
|
|
708
697
|
var APPLE_PRICING_RULES = { ...APPLE_SALE_RULES, wixVideo: VIDEO_SALE_RULE };
|
|
@@ -1480,8 +1469,7 @@ function attendanceCheckoutRoute(item, currency, platform) {
|
|
|
1480
1469
|
if (["android", "web"].includes(platform)) return "regular";
|
|
1481
1470
|
const route = classifyForApple(item, currency);
|
|
1482
1471
|
if (route === "wixPayments") return "regular";
|
|
1483
|
-
|
|
1484
|
-
return platform === "ios" && route === "appleIap" && enabled ? "appleIap" : "blocked";
|
|
1472
|
+
return platform === "ios" && route === "appleIap" ? "appleIap" : "blocked";
|
|
1485
1473
|
}
|
|
1486
1474
|
var ADDRESSLESS_CUSTOM = "CUSTOM_WITHOUT_ADDRESS";
|
|
1487
1475
|
var PHYSICAL_LOCATIONS = ["BUSINESS", "CUSTOMER", "CUSTOM", ADDRESSLESS_CUSTOM];
|
|
@@ -1744,19 +1732,10 @@ export {
|
|
|
1744
1732
|
APPLE_PRICING_RULES,
|
|
1745
1733
|
APPLE_PROVISIONING_RULES,
|
|
1746
1734
|
APPLE_SALE_RULES,
|
|
1747
|
-
BOOKINGS_APPLE_SALES_ENABLED,
|
|
1748
|
-
BOOKINGS_ITEM_PAYMENT_ENABLED,
|
|
1749
|
-
CANCEL_PAYMENT_ENABLED,
|
|
1750
|
-
EVENTS_APPLE_SALES_ENABLED,
|
|
1751
|
-
EVENTS_ITEM_PAYMENT_ENABLED,
|
|
1752
1735
|
HIMALAYA_SERVE_IAP_ROUTE,
|
|
1753
1736
|
IAP_CATALOG_KINDS,
|
|
1754
1737
|
MAX_AUTOMATIC_ATTEMPTS,
|
|
1755
1738
|
MAX_RETRY_DELAY_MS,
|
|
1756
|
-
ONLINE_PROGRAM_ITEM_PAYMENT_ENABLED,
|
|
1757
|
-
PRICING_PLAN_APPLE_SALES_ENABLED,
|
|
1758
|
-
PRICING_PLAN_ITEM_PAYMENT_ENABLED,
|
|
1759
|
-
STORES_APPLE_SALES_ENABLED,
|
|
1760
1739
|
STORES_PRODUCT_SALE_RULE,
|
|
1761
1740
|
VIDEOS_APPLE_SALES_ENABLED,
|
|
1762
1741
|
appleManagedStore,
|