@scayle/storefront-nuxt 7.71.0 → 7.71.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.71.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Provide new import alias `#storefront/composables` to allow for explicit imports of composables provided by the `@scayle/storefront-nuxt` package instead of only relying on the Nuxt auto-import functionality
8
+
9
+ ## 7.71.1
10
+
11
+ ### Patch Changes
12
+
13
+ - Correctly set the `optimizeDeps` for the new `@scayle/storefront-api` package
14
+ - Updated dependencies
15
+ - @scayle/storefront-core@7.51.1
16
+
3
17
  ## 7.71.0
4
18
 
5
19
  ### Minor Changes
package/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scayle/storefront-nuxt",
3
- "version": "7.70.0",
3
+ "version": "7.71.1",
4
4
  "configKey": "storefront",
5
5
  "compatibility": {
6
6
  "nuxt": "^3.9.0"
package/dist/module.mjs CHANGED
@@ -60,7 +60,7 @@ export default {
60
60
  }`;
61
61
  }
62
62
  const PACKAGE_NAME = "@scayle/storefront-nuxt";
63
- const PACKAGE_VERSION = "7.70.0";
63
+ const PACKAGE_VERSION = "7.71.1";
64
64
  const module = defineNuxtModule({
65
65
  meta: {
66
66
  name: PACKAGE_NAME,
@@ -124,7 +124,7 @@ const module = defineNuxtModule({
124
124
  config.optimizeDeps.include.push(
125
125
  PACKAGE_NAME,
126
126
  "@scayle/storefront-core",
127
- "@aboutyou/backbone",
127
+ "@scayle/storefront-api",
128
128
  "slugify"
129
129
  );
130
130
  });
@@ -256,6 +256,9 @@ const module = defineNuxtModule({
256
256
  nuxt.options.alias["#rpcMethods"] = appResolve(
257
257
  options.rpcDir ?? "./rpcMethods"
258
258
  );
259
+ nuxt.options.alias["#storefront/composables"] = resolve(
260
+ "./runtime/composables"
261
+ );
259
262
  addPlugin(resolve("./runtime/plugin/shop"));
260
263
  addPlugin({
261
264
  src: resolve("./runtime/plugin/log.client"),
@@ -0,0 +1,35 @@
1
+ export * from './core/useAvailableShops';
2
+ export * from './core/useCurrentShop';
3
+ export * from './core/useFormatHelpers';
4
+ export * from './core/useIDP';
5
+ export * from './core/useLog';
6
+ export * from './core/useRpc';
7
+ export * from './core/useSession';
8
+ export * from './core/useUser';
9
+ export * from './storefront/useBasket';
10
+ export * from './storefront/useBrand';
11
+ export * from './storefront/useBrands';
12
+ export * from './storefront/useCategories';
13
+ export * from './storefront/useCategoryById';
14
+ export * from './storefront/useCategoryByPath';
15
+ export * from './storefront/useCurrentPromotions';
16
+ export * from './storefront/useFacet';
17
+ export * from './storefront/useFilters';
18
+ export * from './storefront/useNavigationTree';
19
+ export * from './storefront/useNavigationTrees';
20
+ export * from './storefront/useOrder';
21
+ export * from './storefront/useOrderConfirmation';
22
+ export * from './storefront/useProduct';
23
+ export * from './storefront/useProducts';
24
+ export * from './storefront/useProductsByIds';
25
+ export * from './storefront/useProductsByReferenceKeys';
26
+ export * from './storefront/useProductsCount';
27
+ export * from './storefront/usePromotions';
28
+ export * from './storefront/usePromotionsByIds';
29
+ export * from './storefront/useQueryFilterState';
30
+ export * from './storefront/useSearch';
31
+ export * from './storefront/useShopConfiguration';
32
+ export * from './storefront/useStorefrontSearch';
33
+ export * from './storefront/useUserAddresses';
34
+ export * from './storefront/useVariant';
35
+ export * from './storefront/useWishlist';
@@ -0,0 +1,35 @@
1
+ export * from "./core/useAvailableShops.mjs";
2
+ export * from "./core/useCurrentShop.mjs";
3
+ export * from "./core/useFormatHelpers.mjs";
4
+ export * from "./core/useIDP.mjs";
5
+ export * from "./core/useLog.mjs";
6
+ export * from "./core/useRpc.mjs";
7
+ export * from "./core/useSession.mjs";
8
+ export * from "./core/useUser.mjs";
9
+ export * from "./storefront/useBasket.mjs";
10
+ export * from "./storefront/useBrand.mjs";
11
+ export * from "./storefront/useBrands.mjs";
12
+ export * from "./storefront/useCategories.mjs";
13
+ export * from "./storefront/useCategoryById.mjs";
14
+ export * from "./storefront/useCategoryByPath.mjs";
15
+ export * from "./storefront/useCurrentPromotions.mjs";
16
+ export * from "./storefront/useFacet.mjs";
17
+ export * from "./storefront/useFilters.mjs";
18
+ export * from "./storefront/useNavigationTree.mjs";
19
+ export * from "./storefront/useNavigationTrees.mjs";
20
+ export * from "./storefront/useOrder.mjs";
21
+ export * from "./storefront/useOrderConfirmation.mjs";
22
+ export * from "./storefront/useProduct.mjs";
23
+ export * from "./storefront/useProducts.mjs";
24
+ export * from "./storefront/useProductsByIds.mjs";
25
+ export * from "./storefront/useProductsByReferenceKeys.mjs";
26
+ export * from "./storefront/useProductsCount.mjs";
27
+ export * from "./storefront/usePromotions.mjs";
28
+ export * from "./storefront/usePromotionsByIds.mjs";
29
+ export * from "./storefront/useQueryFilterState.mjs";
30
+ export * from "./storefront/useSearch.mjs";
31
+ export * from "./storefront/useShopConfiguration.mjs";
32
+ export * from "./storefront/useStorefrontSearch.mjs";
33
+ export * from "./storefront/useUserAddresses.mjs";
34
+ export * from "./storefront/useVariant.mjs";
35
+ export * from "./storefront/useWishlist.mjs";
@@ -17,7 +17,7 @@ export declare function useFacet({ key, params, }?: Options): Promise<{
17
17
  filters: import("vue").ComputedRef<import("@scayle/storefront-api").FiltersEndpointResponseData | undefined>;
18
18
  filtersFetching: import("vue").Ref<boolean>;
19
19
  unfilteredCount: import("vue").ComputedRef<number | undefined>;
20
- filterStatus: import("vue").Ref<import("../core/useRpc").Status>;
20
+ filterStatus: import("vue").Ref<import("..").Status>;
21
21
  filterError: import("vue").Ref<import("nuxt/app").NuxtError<unknown> | undefined>;
22
22
  productCountData: import("vue").Ref<{
23
23
  count: number;
@@ -25,7 +25,7 @@ export declare function useFacet({ key, params, }?: Options): Promise<{
25
25
  refreshProductCount: ({ where, }?: FilterParams) => Promise<void>;
26
26
  productCountFetching: import("vue").Ref<boolean>;
27
27
  productCountError: import("vue").Ref<import("nuxt/app").NuxtError<unknown> | undefined>;
28
- productCountStatus: import("vue").Ref<import("../core/useRpc").Status>;
28
+ productCountStatus: import("vue").Ref<import("..").Status>;
29
29
  products: import("vue").ComputedRef<import("@scayle/storefront-api").Product[] | undefined>;
30
30
  pagination: import("vue").ComputedRef<{
31
31
  current: number;
@@ -40,12 +40,12 @@ export declare function useFacet({ key, params, }?: Options): Promise<{
40
40
  productsFetching: import("vue").Ref<boolean>;
41
41
  filterProducts: ({ where, page, sort, orFiltersOperator, }: FilterParams) => Promise<void>;
42
42
  productError: import("vue").Ref<import("nuxt/app").NuxtError<unknown> | undefined>;
43
- productStatus: import("vue").Ref<import("../core/useRpc").Status>;
43
+ productStatus: import("vue").Ref<import("..").Status>;
44
44
  categories: import("vue").ComputedRef<import("@scayle/storefront-api").Category | import("@scayle/storefront-api").Category[] | undefined>;
45
45
  selectedCategory: import("vue").ComputedRef<import("@scayle/storefront-api").Category | undefined>;
46
46
  categoriesFetching: import("vue").Ref<boolean>;
47
47
  categoriesError: import("vue").Ref<import("nuxt/app").NuxtError<unknown> | undefined>;
48
- categoriesStatus: import("vue").Ref<import("../core/useRpc").Status>;
48
+ categoriesStatus: import("vue").Ref<import("..").Status>;
49
49
  fetchProducts: ({ path, page, perPage, where, sort, pricePromotionKey, cache, orFiltersOperator, }: FilterParams & {
50
50
  path: string;
51
51
  pricePromotionKey?: string | undefined;
@@ -4,7 +4,7 @@ type Options = Partial<{
4
4
  key: string;
5
5
  }>;
6
6
  export declare function useShopConfiguration({ options, key, }?: Options): Promise<{
7
- data: import("vue").Ref<import("@scayle/storefront-api").ShopConfigurationResponseData | undefined>;
7
+ data: import("vue").Ref<import("@scayle/storefront-api").ShopConfiguration | undefined>;
8
8
  fetching: import("vue").Ref<boolean>;
9
9
  fetch: () => Promise<void>;
10
10
  error: import("vue").Ref<import("nuxt/app").NuxtError<unknown> | undefined>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@scayle/storefront-nuxt",
3
3
  "type": "module",
4
- "version": "7.71.0",
4
+ "version": "7.71.2",
5
5
  "description": "Nuxt integration for the SCAYLE Commerce Engine and Storefront API",
6
6
  "author": "SCAYLE Commerce Engine",
7
7
  "license": "MIT",
@@ -38,22 +38,16 @@
38
38
  "engines": {
39
39
  "node": ">= 20.7.0"
40
40
  },
41
- "build": {
42
- "entries": [
43
- "./src/rpc",
44
- "./src/index"
45
- ]
46
- },
47
41
  "scripts": {
48
42
  "build": "nuxt-module-build build",
49
43
  "dev": "nuxi dev playground",
50
44
  "dev:build": "nuxi build playground",
51
- "prep": "nuxi prepare playground",
45
+ "prep": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
52
46
  "format": "dprint check",
53
47
  "format:fix": "dprint fmt",
54
48
  "lint": "eslint . --format gitlab",
55
49
  "lint:fix": "eslint . --fix",
56
- "typecheck": "vue-tsc --noEmit -p tsconfig.check.json",
50
+ "typecheck": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit",
57
51
  "package:lint": "publint",
58
52
  "test": "vitest run",
59
53
  "test:ci": "vitest run",
@@ -63,7 +57,7 @@
63
57
  "@nuxt/kit": "3.11.1",
64
58
  "@opentelemetry/api": "1.8.0",
65
59
  "@scayle/h3-session": "0.4.0",
66
- "@scayle/storefront-core": "7.51.0",
60
+ "@scayle/storefront-core": "7.51.1",
67
61
  "@scayle/unstorage-compression-driver": "0.1.3",
68
62
  "@vueuse/core": "10.9.0",
69
63
  "consola": "3.2.3",
@@ -80,12 +74,12 @@
80
74
  "yn": "5.0.0"
81
75
  },
82
76
  "devDependencies": {
83
- "@nuxt/eslint": "0.3.12",
77
+ "@nuxt/eslint": "0.3.13",
84
78
  "@nuxt/module-builder": "0.5.5",
85
79
  "@nuxt/schema": "3.11.1",
86
80
  "@nuxt/test-utils": "3.13.0",
87
81
  "@scayle/eslint-config-storefront": "4.2.0",
88
- "@scayle/eslint-plugin-vue-composable": "0.1.1",
82
+ "@scayle/eslint-plugin-vue-composable": "0.2.0",
89
83
  "@types/node": "20.12.12",
90
84
  "dprint": "0.45.1",
91
85
  "eslint": "9.2.0",
@@ -95,7 +89,7 @@
95
89
  "node-mocks-http": "1.14.1",
96
90
  "nuxi": "3.11.1",
97
91
  "nuxt": "3.11.1",
98
- "publint": "0.2.7",
92
+ "publint": "0.2.8",
99
93
  "vitest": "1.6.0",
100
94
  "vue-tsc": "2.0.19"
101
95
  },