@scayle/storefront-nuxt 7.87.2 → 7.88.0
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,18 @@
|
|
|
1
1
|
# @scayle/storefront-nuxt
|
|
2
2
|
|
|
3
|
+
## 7.88.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Add `useNavigationTreeByName` and `useNavigationTreeById` composables.
|
|
8
|
+
Deprecate `useNavigationTree` composable in favor of `useNavigationTreeById`.
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
**Dependencies**
|
|
13
|
+
|
|
14
|
+
- Updated dependency to @scayle/storefront-core@7.66.0
|
|
15
|
+
|
|
3
16
|
## 7.87.2
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
import type { RpcMethodParameters } from '@scayle/storefront-core';
|
|
2
2
|
import type { UseRpcOptions, UseRpcReturn, NormalizedRpcResponse, KeysOf } from '../core/useRpc.js';
|
|
3
3
|
import type { MaybeRefOrGetter } from '#imports';
|
|
4
|
-
export declare function
|
|
4
|
+
export declare function useNavigationTreeById<DataT = NormalizedRpcResponse<'fetchNavigationTreeById'>, PickKeys extends KeysOf<DataT> = KeysOf<DataT>, DefaultT = null>({ params, options, key: _key, }?: Partial<{
|
|
5
5
|
params: MaybeRefOrGetter<RpcMethodParameters<'fetchNavigationTreeById'>>;
|
|
6
6
|
options: UseRpcOptions<'fetchNavigationTreeById', DataT, PickKeys, DefaultT>;
|
|
7
7
|
/** @deprecated use the second argument of the composable to define the key */
|
|
8
8
|
key: string;
|
|
9
9
|
}>, key?: string): UseRpcReturn<'fetchNavigationTreeById', DataT, PickKeys, DefaultT>;
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated This composable was renamed to {@link useNavigationTreeById}.
|
|
12
|
+
*/
|
|
13
|
+
export declare const useNavigationTree: typeof useNavigationTreeById;
|
|
14
|
+
export declare function useNavigationTreeByName<DataT = NormalizedRpcResponse<'fetchNavigationTreeById'>, PickKeys extends KeysOf<DataT> = KeysOf<DataT>, DefaultT = null>({ params, options, key: _key, }?: Partial<{
|
|
15
|
+
params: MaybeRefOrGetter<RpcMethodParameters<'fetchNavigationTreeByName'>>;
|
|
16
|
+
options: UseRpcOptions<'fetchNavigationTreeById', DataT, PickKeys, DefaultT>;
|
|
17
|
+
/** @deprecated use the second argument of the composable to define the key */
|
|
18
|
+
key: string;
|
|
19
|
+
}>, key?: string): UseRpcReturn<'fetchNavigationTreeByName', DataT, PickKeys, DefaultT>;
|
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
import { useRpc } from "../core/useRpc.js";
|
|
2
|
-
export function
|
|
2
|
+
export function useNavigationTreeById({
|
|
3
3
|
params,
|
|
4
4
|
options,
|
|
5
5
|
key: _key
|
|
6
6
|
} = {}, key) {
|
|
7
7
|
return useRpc(
|
|
8
8
|
"fetchNavigationTreeById",
|
|
9
|
-
_key ?? key ?? "
|
|
9
|
+
_key ?? key ?? "useNavigationTreeById",
|
|
10
|
+
params,
|
|
11
|
+
options
|
|
12
|
+
);
|
|
13
|
+
}
|
|
14
|
+
export const useNavigationTree = useNavigationTreeById;
|
|
15
|
+
export function useNavigationTreeByName({
|
|
16
|
+
params,
|
|
17
|
+
options,
|
|
18
|
+
key: _key
|
|
19
|
+
} = {}, key) {
|
|
20
|
+
return useRpc(
|
|
21
|
+
"fetchNavigationTreeByName",
|
|
22
|
+
_key ?? key ?? "useNavigationTreeByName",
|
|
10
23
|
params,
|
|
11
24
|
options
|
|
12
25
|
);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scayle/storefront-nuxt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.
|
|
4
|
+
"version": "7.88.0",
|
|
5
5
|
"description": "Nuxt integration for the SCAYLE Commerce Engine and Storefront API",
|
|
6
6
|
"author": "SCAYLE Commerce Engine",
|
|
7
7
|
"license": "MIT",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@nuxt/kit": "^3.12.2",
|
|
66
66
|
"@opentelemetry/api": "^1.9.0",
|
|
67
67
|
"@scayle/h3-session": "^0.4.1",
|
|
68
|
-
"@scayle/storefront-core": "7.
|
|
68
|
+
"@scayle/storefront-core": "7.66.0",
|
|
69
69
|
"@scayle/unstorage-compression-driver": "^0.1.4",
|
|
70
70
|
"@vueuse/core": "11.1.0",
|
|
71
71
|
"consola": "^3.2.3",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"@nuxt/test-utils": "3.14.4",
|
|
90
90
|
"@scayle/eslint-config-storefront": "4.3.2",
|
|
91
91
|
"@scayle/eslint-plugin-vue-composable": "0.2.1",
|
|
92
|
-
"@types/node": "22.8.
|
|
92
|
+
"@types/node": "22.8.4",
|
|
93
93
|
"dprint": "0.47.5",
|
|
94
94
|
"eslint": "9.13.0",
|
|
95
95
|
"eslint-formatter-gitlab": "5.1.0",
|