@scayle/storefront-product-listing 1.6.0 → 1.6.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 +13 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +8 -3
- package/dist/runtime/composables/index.d.ts +1 -0
- package/dist/runtime/composables/index.js +1 -0
- package/dist/runtime/composables/useAllShopCategoriesForId.d.ts +5 -2
- package/dist/runtime/composables/useAllShopCategoriesForId.js +6 -2
- package/dist/runtime/index.d.ts +2 -0
- package/dist/runtime/index.js +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @scayle/storefront-product-listing
|
|
2
2
|
|
|
3
|
+
## 1.6.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Renamed `useAllShopProductsById` to `useAllShopProductsForId` to match the correct method name.
|
|
8
|
+
- Fixed path resolution issue for RPC methods.
|
|
9
|
+
|
|
10
|
+
## 1.6.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Added missing exports for `useAllShopCategoriesForId` composable and SEO utils.
|
|
15
|
+
|
|
3
16
|
## 1.6.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineNuxtModule, createResolver,
|
|
1
|
+
import { defineNuxtModule, createResolver, addImportsDir } from '@nuxt/kit';
|
|
2
2
|
|
|
3
3
|
const PACKAGE_NAME = "@scayle/storefront-product-listing";
|
|
4
|
-
const PACKAGE_VERSION = "1.6.
|
|
4
|
+
const PACKAGE_VERSION = "1.6.2";
|
|
5
5
|
const module = defineNuxtModule({
|
|
6
6
|
meta: {
|
|
7
7
|
name: PACKAGE_NAME,
|
|
@@ -14,7 +14,7 @@ const module = defineNuxtModule({
|
|
|
14
14
|
},
|
|
15
15
|
defaults: {},
|
|
16
16
|
setup(options, nuxt) {
|
|
17
|
-
const { resolve } = createResolver(import.meta.url);
|
|
17
|
+
const { resolve, resolvePath } = createResolver(import.meta.url);
|
|
18
18
|
nuxt.options.alias["#storefront-product-listing"] = resolve("./runtime");
|
|
19
19
|
nuxt.options.build.transpile.push("#storefront-product-listing/runtime");
|
|
20
20
|
nuxt.hook("storefront:custom-rpc:extend", async (customRpcs) => {
|
|
@@ -23,6 +23,11 @@ const module = defineNuxtModule({
|
|
|
23
23
|
names: ["getAllShopCategoriesForId"]
|
|
24
24
|
});
|
|
25
25
|
});
|
|
26
|
+
nuxt.options.optimization.keyedComposables.push({
|
|
27
|
+
name: "useAllShopCategoriesForId",
|
|
28
|
+
argumentLength: 2,
|
|
29
|
+
source: "#storefront-product-listing"
|
|
30
|
+
});
|
|
26
31
|
if (options.autoImports) {
|
|
27
32
|
addImportsDir(resolve("./runtime/composables"));
|
|
28
33
|
addImportsDir(resolve("./runtime/utils"));
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import type { KeysOf, NormalizedRpcResponse, UseRpcReturn } from '@scayle/storefront-nuxt/composables';
|
|
1
|
+
import type { KeysOf, NormalizedRpcResponse, UseRpcOptions, UseRpcReturn } from '@scayle/storefront-nuxt/composables';
|
|
2
2
|
import type { MaybeRefOrGetter } from 'vue';
|
|
3
3
|
import type { RpcMethodParameters } from '@scayle/storefront-core';
|
|
4
|
-
export declare function useAllShopCategoriesForId<DataT = NormalizedRpcResponse<'getAllShopCategoriesForId'>, PickKeys extends KeysOf<DataT> = KeysOf<DataT>, DefaultT = null>(params
|
|
4
|
+
export declare function useAllShopCategoriesForId<DataT = NormalizedRpcResponse<'getAllShopCategoriesForId'>, PickKeys extends KeysOf<DataT> = KeysOf<DataT>, DefaultT = null>({ params, options, }?: Partial<{
|
|
5
|
+
params: MaybeRefOrGetter<RpcMethodParameters<'getAllShopCategoriesForId'>>;
|
|
6
|
+
options: UseRpcOptions<'getAllShopCategoriesForId', DataT, PickKeys, DefaultT>;
|
|
7
|
+
}>, key?: string): UseRpcReturn<'getAllShopCategoriesForId', DataT, PickKeys, DefaultT>;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { useRpc } from "@scayle/storefront-nuxt/composables";
|
|
2
|
-
export function useAllShopCategoriesForId(
|
|
2
|
+
export function useAllShopCategoriesForId({
|
|
3
|
+
params,
|
|
4
|
+
options
|
|
5
|
+
} = {}, key = "useAllShopCategoriesForId") {
|
|
3
6
|
return useRpc(
|
|
4
7
|
"getAllShopCategoriesForId",
|
|
5
8
|
key,
|
|
6
|
-
params
|
|
9
|
+
params,
|
|
10
|
+
options
|
|
7
11
|
);
|
|
8
12
|
}
|
package/dist/runtime/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from './composables/useAllShopCategoriesForId.js';
|
|
1
2
|
export * from './composables/useProductListSort.js';
|
|
2
3
|
export * from './composables/useAppliedFilters.js';
|
|
3
4
|
export * from './composables/useFiltersForListing.js';
|
|
@@ -5,3 +6,4 @@ export * from './composables/useProductListingSeoData.js';
|
|
|
5
6
|
export * from './composables/useProductsForListing.js';
|
|
6
7
|
export * from './utils/filters.js';
|
|
7
8
|
export * from './utils/category.js';
|
|
9
|
+
export * from './utils/seo.js';
|
package/dist/runtime/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from "./composables/useAllShopCategoriesForId.js";
|
|
1
2
|
export * from "./composables/useProductListSort.js";
|
|
2
3
|
export * from "./composables/useAppliedFilters.js";
|
|
3
4
|
export * from "./composables/useFiltersForListing.js";
|
|
@@ -5,3 +6,4 @@ export * from "./composables/useProductListingSeoData.js";
|
|
|
5
6
|
export * from "./composables/useProductsForListing.js";
|
|
6
7
|
export * from "./utils/filters.js";
|
|
7
8
|
export * from "./utils/category.js";
|
|
9
|
+
export * from "./utils/seo.js";
|
package/package.json
CHANGED