@scayle/storefront-nuxt 7.57.4 → 7.58.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,17 @@
1
1
  # @scayle/storefront-nuxt
2
2
 
3
+ ## 7.58.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Add `useCategoryByPath` composable
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+ - @scayle/storefront-core@7.42.0
13
+ - @scayle/unstorage-compression-driver@0.1.2
14
+
3
15
  ## 7.57.4
4
16
 
5
17
  ### Patch Changes
package/dist/module.json CHANGED
@@ -4,5 +4,5 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.9.0"
6
6
  },
7
- "version": "7.57.3"
7
+ "version": "7.57.4"
8
8
  }
@@ -0,0 +1,20 @@
1
+ import type { RpcMethodParameters } from '@scayle/storefront-core';
2
+ import type { RpcOptions } from '../core/useRpc';
3
+ import type { MaybeRefOrGetter } from '#imports';
4
+ type Options = {
5
+ params: MaybeRefOrGetter<RpcMethodParameters<'getCategoryByPath'>>;
6
+ options?: RpcOptions;
7
+ key: string;
8
+ };
9
+ export declare function useCategoryByPath({ params, options, key, }: Options): Promise<{
10
+ data: import("vue").Ref<{
11
+ path: string;
12
+ children?: number | undefined;
13
+ includeHidden?: true | undefined;
14
+ } | import("@scayle/storefront-core").Category>;
15
+ fetching: import("vue").Ref<boolean>;
16
+ fetch: () => Promise<void>;
17
+ error: import("vue").Ref<import("nuxt/app").NuxtError<unknown> | undefined>;
18
+ status: import("vue").Ref<import("../core/useRpc").Status>;
19
+ }>;
20
+ export {};
@@ -0,0 +1,20 @@
1
+ import { useRpc } from "../core/useRpc.mjs";
2
+ export async function useCategoryByPath({
3
+ params,
4
+ options,
5
+ key = "useCategoryByPath"
6
+ }) {
7
+ const { data, fetching, fetch, error, status } = await useRpc(
8
+ "getCategoryByPath",
9
+ key,
10
+ params,
11
+ options
12
+ );
13
+ return {
14
+ data,
15
+ fetching,
16
+ fetch,
17
+ error,
18
+ status
19
+ };
20
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@scayle/storefront-nuxt",
3
3
  "type": "module",
4
- "version": "7.57.4",
4
+ "version": "7.58.0",
5
5
  "description": "Nuxt integration for the SCAYLE Commerce Engine and Storefront API",
6
6
  "author": "SCAYLE Commerce Engine",
7
7
  "license": "MIT",
@@ -62,13 +62,12 @@
62
62
  "dependencies": {
63
63
  "@nuxt/kit": "3.10.2",
64
64
  "@scayle/h3-session": "0.3.5",
65
- "@scayle/storefront-core": "7.41.3",
66
- "@scayle/unstorage-compression-driver": "0.1.1",
65
+ "@scayle/storefront-core": "7.42.0",
66
+ "@scayle/unstorage-compression-driver": "0.1.2",
67
67
  "@vueuse/core": "10.7.2",
68
68
  "consola": "3.2.3",
69
69
  "core-js": "3.36.0",
70
70
  "defu": "6.1.4",
71
- "h3": "1.10.1",
72
71
  "jose": "^5.2.0",
73
72
  "knitwork": "1.0.0",
74
73
  "nitropack": "2.8.1",
@@ -88,6 +87,7 @@
88
87
  "@types/node": "20.11.19",
89
88
  "eslint": "8.56.0",
90
89
  "eslint-formatter-gitlab": "5.1.0",
90
+ "h3": "1.10.2",
91
91
  "node-mocks-http": "1.14.1",
92
92
  "nuxt": "3.10.2",
93
93
  "prettier": "3.0.0",
@@ -96,12 +96,13 @@
96
96
  "vue-tsc": "1.8.27"
97
97
  },
98
98
  "peerDependencies": {
99
+ "h3": "^1.10.0",
99
100
  "nuxt": ">=3.9.0",
100
101
  "unstorage": ">= 1.10.1",
101
102
  "vue": ">=3.4.0"
102
103
  },
103
104
  "resolutions": {
104
- "h3": "1.10.1",
105
+ "h3": "1.10.2",
105
106
  "@vue/compiler-core": "3.4.19",
106
107
  "@vue/shared": "3.4.19",
107
108
  "@vue/compiler-dom": "3.4.19",