@scayle/storefront-nuxt 8.27.0 → 8.28.1
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 +37 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/composables/index.d.ts +1 -0
- package/dist/runtime/composables/index.js +1 -0
- package/dist/runtime/composables/storefront/useCategoryTree.d.ts +9 -0
- package/dist/runtime/composables/storefront/useCategoryTree.js +9 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
# @scayle/storefront-nuxt
|
|
2
2
|
|
|
3
|
+
## 8.28.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Exposed `useCategoryTree` through the `#storefront/composables` alias.
|
|
8
|
+
|
|
9
|
+
**Dependencies**
|
|
10
|
+
|
|
11
|
+
**@scayle/storefront-core v8.28.1**
|
|
12
|
+
|
|
13
|
+
- No changes in this release.
|
|
14
|
+
|
|
15
|
+
## 8.28.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- Introduced the `useCategoryTree` composable for streamlined category tree retrieval.
|
|
20
|
+
|
|
21
|
+
```ts
|
|
22
|
+
const { data, status, error } = useCategoryTree({
|
|
23
|
+
params: {
|
|
24
|
+
children: 10,
|
|
25
|
+
includeHidden: true,
|
|
26
|
+
properties: { withName: ['sale'] },
|
|
27
|
+
},
|
|
28
|
+
})
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Patch Changes
|
|
32
|
+
|
|
33
|
+
**Dependencies**
|
|
34
|
+
|
|
35
|
+
**@scayle/storefront-core v8.28.0**
|
|
36
|
+
|
|
37
|
+
- Minor
|
|
38
|
+
- Introduced the `getCategoryTree` RPC for retrieving the complete category tree.
|
|
39
|
+
|
|
3
40
|
## 8.27.0
|
|
4
41
|
|
|
5
42
|
### Minor Changes
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -13,6 +13,7 @@ export * from './storefront/useBrands.js';
|
|
|
13
13
|
export * from './storefront/useCategories.js';
|
|
14
14
|
export * from './storefront/useCategoryById.js';
|
|
15
15
|
export * from './storefront/useCategoryByPath.js';
|
|
16
|
+
export * from './storefront/useCategoryTree.js';
|
|
16
17
|
export * from './storefront/useCurrentPromotions.js';
|
|
17
18
|
export * from './storefront/useFilters.js';
|
|
18
19
|
export * from './storefront/useNavigationTree.js';
|
|
@@ -13,6 +13,7 @@ export * from "./storefront/useBrands.js";
|
|
|
13
13
|
export * from "./storefront/useCategories.js";
|
|
14
14
|
export * from "./storefront/useCategoryById.js";
|
|
15
15
|
export * from "./storefront/useCategoryByPath.js";
|
|
16
|
+
export * from "./storefront/useCategoryTree.js";
|
|
16
17
|
export * from "./storefront/useCurrentPromotions.js";
|
|
17
18
|
export * from "./storefront/useFilters.js";
|
|
18
19
|
export * from "./storefront/useNavigationTree.js";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { MaybeRefOrGetter } from 'vue';
|
|
2
|
+
import { type KeysOf, type NormalizedRpcResponse, type UseRpcOptions, type UseRpcReturn } from '../core/useRpc.js';
|
|
3
|
+
import type { RpcMethodParameters } from '@scayle/storefront-core';
|
|
4
|
+
type UseCategoriesBaseReturn<DataT, PickKeys extends KeysOf<DataT>, DefaultT> = Awaited<UseRpcReturn<'getCategoryTree', DataT, PickKeys, DefaultT>> & Promise<Awaited<UseRpcReturn<'getCategoryTree', DataT, PickKeys, DefaultT>>>;
|
|
5
|
+
export declare function useCategoryTree<DataT = NormalizedRpcResponse<'getCategoryTree'>, PickKeys extends KeysOf<DataT> = KeysOf<DataT>, DefaultT = null>({ params, options, }?: Partial<{
|
|
6
|
+
params: MaybeRefOrGetter<RpcMethodParameters<'getCategoryTree'>>;
|
|
7
|
+
options: UseRpcOptions<'getCategoryTree', DataT, PickKeys, DefaultT>;
|
|
8
|
+
}>, key?: string): UseCategoriesBaseReturn<DataT, PickKeys, DefaultT>;
|
|
9
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scayle/storefront-nuxt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "8.
|
|
4
|
+
"version": "8.28.1",
|
|
5
5
|
"description": "Nuxt integration for the SCAYLE Commerce Engine and Storefront API",
|
|
6
6
|
"author": "SCAYLE Commerce Engine",
|
|
7
7
|
"license": "MIT",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"dependencies": {
|
|
82
82
|
"@opentelemetry/api": "^1.9.0",
|
|
83
83
|
"@scayle/h3-session": "0.6.1",
|
|
84
|
-
"@scayle/storefront-core": "8.
|
|
84
|
+
"@scayle/storefront-core": "8.28.1",
|
|
85
85
|
"@scayle/unstorage-compression-driver": "^0.2.7",
|
|
86
86
|
"@vercel/nft": "0.29.3",
|
|
87
87
|
"@vueuse/core": "13.2.0",
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
"@scayle/eslint-config-storefront": "4.5.2",
|
|
111
111
|
"@scayle/eslint-plugin-vue-composable": "0.2.1",
|
|
112
112
|
"@scayle/unstorage-scayle-kv-driver": "0.1.2",
|
|
113
|
-
"@types/node": "22.15.
|
|
113
|
+
"@types/node": "22.15.21",
|
|
114
114
|
"dprint": "0.50.0",
|
|
115
115
|
"eslint-formatter-gitlab": "6.0.0",
|
|
116
116
|
"eslint": "9.27.0",
|
|
@@ -138,6 +138,6 @@
|
|
|
138
138
|
"vue": "^3.4.0"
|
|
139
139
|
},
|
|
140
140
|
"volta": {
|
|
141
|
-
"node": "22.
|
|
141
|
+
"node": "22.16.0"
|
|
142
142
|
}
|
|
143
143
|
}
|