@scayle/storefront-nuxt 7.48.0 → 7.48.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @scayle/storefront-nuxt
2
2
 
3
+ ## 7.48.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @scayle/storefront-core@7.35.0
9
+
10
+ ## 7.48.1
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+ - @scayle/storefront-core@7.34.1
16
+
3
17
  ## 7.48.0
4
18
 
5
19
  ### Minor Changes
package/dist/module.json CHANGED
@@ -4,5 +4,5 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.7.0"
6
6
  },
7
- "version": "7.47.0"
7
+ "version": "7.48.1"
8
8
  }
@@ -3,10 +3,8 @@ import { useCurrentShop } from "./useCurrentShop.mjs";
3
3
  export default function useFormatHelpers() {
4
4
  const currentShop = useCurrentShop();
5
5
  const formatCurrency = (value, options) => {
6
- const {
7
- locale = currentShop.value.locale,
8
- currencyFractionDigits = currentShop.value.currencyFractionDigits
9
- } = options || {};
6
+ const locale = options?.locale ?? currentShop.value.locale;
7
+ const currencyFractionDigits = options?.currencyFractionDigits ?? currentShop.value.currencyFractionDigits;
10
8
  const currency = options?.style !== "decimal" ? options?.currency ?? currentShop.value.currency : void 0;
11
9
  const minimumFractionDigits = options?.style !== "decimal" ? getDefaultFractionDigits(
12
10
  locale,
@@ -8,7 +8,9 @@ export declare function useSession(): {
8
8
  revokeToken: () => Promise<{
9
9
  result: boolean;
10
10
  }>;
11
- forgetPassword: (params: import("@scayle/storefront-core").SendResetPasswordEmailRequest) => Promise<{
11
+ forgetPassword: (params: {
12
+ email: string;
13
+ }) => Promise<{
12
14
  success: boolean;
13
15
  }>;
14
16
  resetPasswordByHash: (params: import("utility-types").Optional<import("@scayle/storefront-core").UpdatePasswordByHashRequest, "shop_id">) => Promise<undefined>;
@@ -7,7 +7,7 @@ type Options = Partial<{
7
7
  key: string;
8
8
  }>;
9
9
  export declare function useVariant({ params, options, key, }?: Options): Promise<{
10
- data: import("vue").Ref<VariantDetail[]>;
10
+ data: import("vue").Ref<import("@aboutyou/backbone/endpoints/variants/variantsByIds").VariantDetail[]>;
11
11
  fetching: import("vue").Ref<boolean>;
12
12
  fetch: () => Promise<void>;
13
13
  error: import("vue").Ref<import("nuxt/app").NuxtError | undefined>;
package/dist/types.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- import type { ModuleOptions } from './module'
2
+ import type { ModuleOptions } from './module.js'
3
3
 
4
4
 
5
5
  declare module '@nuxt/schema' {
@@ -13,4 +13,4 @@ declare module 'nuxt/schema' {
13
13
  }
14
14
 
15
15
 
16
- export type { AdditionalShopConfig, AppKeys, AuthenticationConfig, BapiConfig, CacheConfig, CheckoutEvent, CheckoutShopConfig, OauthConfig, PublicShopConfig, RedirectsConfig, RedisConfig, SessionConfig, ShopConfig, ShopConfigIndexed, StorageConfig, StorageEntity, StorageProvider, StorefrontConfig } from './module'
16
+ export type { AdditionalShopConfig, AppKeys, AuthenticationConfig, BapiConfig, CacheConfig, CheckoutEvent, CheckoutShopConfig, OauthConfig, PublicShopConfig, RedirectsConfig, RedisConfig, SessionConfig, ShopConfig, ShopConfigIndexed, StorageConfig, StorageEntity, StorageProvider, StorefrontConfig } from './module.js'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@scayle/storefront-nuxt",
3
3
  "type": "module",
4
- "version": "7.48.0",
4
+ "version": "7.48.2",
5
5
  "description": "Nuxt integration for the SCAYLE Commerce Engine and Storefront API",
6
6
  "author": "SCAYLE Commerce Engine",
7
7
  "license": "MIT",
@@ -62,12 +62,12 @@
62
62
  "dependencies": {
63
63
  "@nuxt/kit": "3.8.2",
64
64
  "@scayle/h3-session": "0.3.4",
65
- "@scayle/storefront-core": "7.34.0",
65
+ "@scayle/storefront-core": "7.35.0",
66
66
  "@scayle/unstorage-compression-driver": "0.1.1",
67
- "@vueuse/core": "10.7.0",
67
+ "@vueuse/core": "10.7.1",
68
68
  "consola": "3.2.3",
69
- "core-js": "3.34.0",
70
- "defu": "6.1.3",
69
+ "core-js": "3.35.0",
70
+ "defu": "6.1.4",
71
71
  "h3": "1.9.0",
72
72
  "jose": "4.15.4",
73
73
  "knitwork": "1.0.0",
@@ -80,20 +80,20 @@
80
80
  "yn": "5.0.0"
81
81
  },
82
82
  "devDependencies": {
83
- "@nuxt/module-builder": "0.5.4",
83
+ "@nuxt/module-builder": "0.5.5",
84
84
  "@nuxt/schema": "3.8.2",
85
85
  "@nuxt/test-utils": "3.9.0",
86
86
  "@scayle/eslint-config-storefront": "3.2.6",
87
87
  "@scayle/prettier-config-storefront": "2.0.2",
88
- "@types/node": "20.10.5",
88
+ "@types/node": "20.10.7",
89
89
  "eslint": "8.56.0",
90
90
  "eslint-formatter-gitlab": "5.1.0",
91
- "node-mocks-http": "1.14.0",
91
+ "node-mocks-http": "1.14.1",
92
92
  "nuxt": "3.8.2",
93
93
  "prettier": "3.0.0",
94
- "publint": "0.2.6",
95
- "vitest": "1.1.0",
96
- "vue-tsc": "1.8.26"
94
+ "publint": "0.2.7",
95
+ "vitest": "1.1.3",
96
+ "vue-tsc": "1.8.27"
97
97
  },
98
98
  "peerDependencies": {
99
99
  "nuxt": ">=3.8.1",