@wix/headless-stores 0.0.109 → 0.0.111

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 (40) hide show
  1. package/cjs/dist/astro/actions/custom-checkout.d.ts +1 -3
  2. package/cjs/dist/astro/actions/custom-checkout.js +8 -4
  3. package/cjs/dist/astro/actions/index.js +17 -1
  4. package/cjs/dist/data-component-tags.js +5 -2
  5. package/cjs/dist/enums/index.js +18 -2
  6. package/cjs/dist/enums/social-platform-enums.js +7 -4
  7. package/cjs/dist/enums/sort-enums.js +6 -3
  8. package/cjs/dist/react/Category.js +64 -25
  9. package/cjs/dist/react/CategoryList.js +55 -14
  10. package/cjs/dist/react/Choice.js +32 -25
  11. package/cjs/dist/react/Option.js +68 -29
  12. package/cjs/dist/react/Product.js +194 -155
  13. package/cjs/dist/react/ProductList.js +84 -45
  14. package/cjs/dist/react/core/CategoryList.js +26 -16
  15. package/cjs/dist/react/core/Product.js +30 -20
  16. package/cjs/dist/react/core/ProductList.js +29 -21
  17. package/cjs/dist/react/core/ProductListFilters.js +30 -22
  18. package/cjs/dist/react/core/ProductListPagination.js +7 -4
  19. package/cjs/dist/react/core/ProductListSort.js +11 -6
  20. package/cjs/dist/react/core/ProductModifiers.js +25 -17
  21. package/cjs/dist/react/core/ProductVariantSelector.js +27 -19
  22. package/cjs/dist/react/core/SelectedVariant.js +28 -21
  23. package/cjs/dist/react/index.js +42 -6
  24. package/cjs/dist/react/types.js +5 -2
  25. package/cjs/dist/server-actions/custom-checkout-action.js +11 -8
  26. package/cjs/dist/server-actions/index.js +17 -1
  27. package/cjs/dist/services/buy-now-service.js +20 -15
  28. package/cjs/dist/services/categories-list-service.js +12 -8
  29. package/cjs/dist/services/index.js +25 -5
  30. package/cjs/dist/services/pay-now-service.js +16 -11
  31. package/cjs/dist/services/product-modifiers-service.js +16 -12
  32. package/cjs/dist/services/product-service.js +16 -12
  33. package/cjs/dist/services/products-list-search-service.d.ts +0 -1
  34. package/cjs/dist/services/products-list-search-service.js +1 -1
  35. package/cjs/dist/services/products-list-service.js +66 -59
  36. package/cjs/dist/services/selected-variant-service.js +21 -18
  37. package/cjs/dist/utils/index.js +9 -6
  38. package/cjs/dist/utils/url-params.js +5 -1
  39. package/dist/astro/actions/custom-checkout.d.ts +1 -3
  40. package/package.json +6 -6
@@ -1,10 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.URLParamsUtils = void 0;
1
4
  /**
2
5
  * Utility class for managing URL parameters in web applications.
3
6
  * Provides methods to parse, update, and retrieve URL search parameters with support for multiple values.
4
7
  *
5
8
  * @class URLParamsUtils
6
9
  */
7
- export class URLParamsUtils {
10
+ class URLParamsUtils {
8
11
  /**
9
12
  * Parses URLSearchParams into a more convenient format that supports multiple values for the same key.
10
13
  * Converts multiple parameters with the same key into an array.
@@ -112,3 +115,4 @@ export class URLParamsUtils {
112
115
  return this.parseSearchParams(new URLSearchParams(window.location.search));
113
116
  }
114
117
  }
118
+ exports.URLParamsUtils = URLParamsUtils;
@@ -45,6 +45,4 @@ import { type CustomLineItemCheckoutOptions } from '../../server-actions/index.j
45
45
  * @see {@link https://docs.astro.build/en/guides/actions/} Astro Actions Documentation
46
46
  * @see {@link https://dev.wix.com/docs/sdk/headless/api-reference/stores/checkout} Wix Stores Checkout API
47
47
  */
48
- export declare const customCheckoutActionFactory: (factoryOpts: CustomLineItemCheckoutOptions) => ((input?: any) => Promise<import("astro:actions").SafeResult<never, string>>) & {
49
- orThrow: (input?: any) => Promise<string>;
50
- } & string;
48
+ export declare const customCheckoutActionFactory: (factoryOpts: CustomLineItemCheckoutOptions) => any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/headless-stores",
3
- "version": "0.0.109",
3
+ "version": "0.0.111",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -62,13 +62,13 @@
62
62
  "@wix/auto_sdk_categories_categories": "^1.0.62",
63
63
  "@wix/ecom": "^1.0.1560",
64
64
  "@wix/essentials": "^0.1.24",
65
- "@wix/headless-ecom": "0.0.39",
66
- "@wix/headless-media": "0.0.19",
65
+ "@wix/headless-ecom": "0.0.41",
66
+ "@wix/headless-media": "0.0.21",
67
67
  "@wix/headless-utils": "0.0.8",
68
68
  "@wix/redirects": "^1.0.83",
69
69
  "@wix/services-definitions": "^1.0.1",
70
- "@wix/services-manager-react": "^1.0.2",
71
- "@wix/site": "^1.37.0",
70
+ "@wix/services-manager-react": "^1.0.3",
71
+ "@wix/site": "^1.40.0",
72
72
  "@wix/stores": "^1.0.606"
73
73
  },
74
74
  "peerDependencies": {
@@ -84,5 +84,5 @@
84
84
  "groupId": "com.wixpress.headless-components"
85
85
  }
86
86
  },
87
- "falconPackageHash": "3d07adc0e9bdf4773a8183a89ef8dc5763762f312cb9ff8d53994733"
87
+ "falconPackageHash": "dae1187e9800eec22dca64e6d9cd3123f537fc7d93f88c672d58d90a"
88
88
  }