@scayle/storefront-nuxt 7.71.1 → 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,11 @@
|
|
|
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
|
+
|
|
3
9
|
## 7.71.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/module.json
CHANGED
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.71.
|
|
63
|
+
const PACKAGE_VERSION = "7.71.1";
|
|
64
64
|
const module = defineNuxtModule({
|
|
65
65
|
meta: {
|
|
66
66
|
name: PACKAGE_NAME,
|
|
@@ -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("
|
|
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("
|
|
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("
|
|
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("
|
|
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;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scayle/storefront-nuxt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.71.
|
|
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 -
|
|
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",
|