@vue-storefront/next 4.1.0 → 4.2.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/dist/client.d.mts +2 -2
- package/dist/client.d.ts +2 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -0
- package/dist/index.mjs +2 -0
- package/dist/{types-TuCCvExK.d.mts → types-UzPeXhBu.d.mts} +6 -0
- package/dist/{types-TuCCvExK.d.ts → types-UzPeXhBu.d.ts} +6 -0
- package/package.json +3 -2
package/dist/client.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SDKApi } from '@vue-storefront/sdk';
|
|
2
|
-
import { S as SfContract, b as CreateSdkContextReturn } from './types-
|
|
3
|
-
export { M as Maybe, d as SfState, c as SfStateProps, e as createSfStateProvider } from './types-
|
|
2
|
+
import { S as SfContract, b as CreateSdkContextReturn } from './types-UzPeXhBu.mjs';
|
|
3
|
+
export { M as Maybe, d as SfState, c as SfStateProps, e as createSfStateProvider } from './types-UzPeXhBu.mjs';
|
|
4
4
|
import 'react';
|
|
5
5
|
|
|
6
6
|
/**
|
package/dist/client.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SDKApi } from '@vue-storefront/sdk';
|
|
2
|
-
import { S as SfContract, b as CreateSdkContextReturn } from './types-
|
|
3
|
-
export { M as Maybe, d as SfState, c as SfStateProps, e as createSfStateProvider } from './types-
|
|
2
|
+
import { S as SfContract, b as CreateSdkContextReturn } from './types-UzPeXhBu.js';
|
|
3
|
+
export { M as Maybe, d as SfState, c as SfStateProps, e as createSfStateProvider } from './types-UzPeXhBu.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
|
|
6
6
|
/**
|
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -84,6 +84,7 @@ function composeMiddlewareUrl({
|
|
|
84
84
|
var defaultMethodsRequestConfig = {
|
|
85
85
|
unifiedCommerce: {
|
|
86
86
|
middlewareModule: {
|
|
87
|
+
getCategory: { method: "GET" },
|
|
87
88
|
getCategories: { method: "GET" },
|
|
88
89
|
getProductDetails: { method: "GET" },
|
|
89
90
|
getProductReviews: { method: "GET" },
|
|
@@ -94,6 +95,7 @@ var defaultMethodsRequestConfig = {
|
|
|
94
95
|
},
|
|
95
96
|
unifiedCms: {
|
|
96
97
|
middlewareModule: {
|
|
98
|
+
getPage: { method: "GET" },
|
|
97
99
|
getEntries: { method: "GET" }
|
|
98
100
|
}
|
|
99
101
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -45,6 +45,7 @@ function composeMiddlewareUrl({
|
|
|
45
45
|
var defaultMethodsRequestConfig = {
|
|
46
46
|
unifiedCommerce: {
|
|
47
47
|
middlewareModule: {
|
|
48
|
+
getCategory: { method: "GET" },
|
|
48
49
|
getCategories: { method: "GET" },
|
|
49
50
|
getProductDetails: { method: "GET" },
|
|
50
51
|
getProductReviews: { method: "GET" },
|
|
@@ -55,6 +56,7 @@ var defaultMethodsRequestConfig = {
|
|
|
55
56
|
},
|
|
56
57
|
unifiedCms: {
|
|
57
58
|
middlewareModule: {
|
|
59
|
+
getPage: { method: "GET" },
|
|
58
60
|
getEntries: { method: "GET" }
|
|
59
61
|
}
|
|
60
62
|
}
|
|
@@ -4,6 +4,9 @@ import React, { ReactNode } from 'react';
|
|
|
4
4
|
declare const defaultMethodsRequestConfig: {
|
|
5
5
|
readonly unifiedCommerce: {
|
|
6
6
|
readonly middlewareModule: {
|
|
7
|
+
readonly getCategory: {
|
|
8
|
+
readonly method: "GET";
|
|
9
|
+
};
|
|
7
10
|
readonly getCategories: {
|
|
8
11
|
readonly method: "GET";
|
|
9
12
|
};
|
|
@@ -26,6 +29,9 @@ declare const defaultMethodsRequestConfig: {
|
|
|
26
29
|
};
|
|
27
30
|
readonly unifiedCms: {
|
|
28
31
|
readonly middlewareModule: {
|
|
32
|
+
readonly getPage: {
|
|
33
|
+
readonly method: "GET";
|
|
34
|
+
};
|
|
29
35
|
readonly getEntries: {
|
|
30
36
|
readonly method: "GET";
|
|
31
37
|
};
|
|
@@ -4,6 +4,9 @@ import React, { ReactNode } from 'react';
|
|
|
4
4
|
declare const defaultMethodsRequestConfig: {
|
|
5
5
|
readonly unifiedCommerce: {
|
|
6
6
|
readonly middlewareModule: {
|
|
7
|
+
readonly getCategory: {
|
|
8
|
+
readonly method: "GET";
|
|
9
|
+
};
|
|
7
10
|
readonly getCategories: {
|
|
8
11
|
readonly method: "GET";
|
|
9
12
|
};
|
|
@@ -26,6 +29,9 @@ declare const defaultMethodsRequestConfig: {
|
|
|
26
29
|
};
|
|
27
30
|
readonly unifiedCms: {
|
|
28
31
|
readonly middlewareModule: {
|
|
32
|
+
readonly getPage: {
|
|
33
|
+
readonly method: "GET";
|
|
34
|
+
};
|
|
29
35
|
readonly getEntries: {
|
|
30
36
|
readonly method: "GET";
|
|
31
37
|
};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@vue-storefront/next",
|
|
3
3
|
"description": "Vue Storefront dedicated features for Next.js",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "4.
|
|
5
|
+
"version": "4.2.0",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
8
8
|
"import": "./dist/index.mjs",
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
"test:unit": "vitest run"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@vue-storefront/sdk": "^3.2.0",
|
|
47
46
|
"zustand": "^4.5.4"
|
|
48
47
|
},
|
|
49
48
|
"devDependencies": {
|
|
50
49
|
"@types/react": "^18.2.31",
|
|
51
50
|
"@types/react-dom": "^18.2.14",
|
|
51
|
+
"@vue-storefront/sdk": "^3.1.0",
|
|
52
52
|
"react-dom": "^18.2.0",
|
|
53
53
|
"start-server-and-test": "^2.0.3",
|
|
54
54
|
"tsup": "8.0.1",
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
"next": "^13.4.7 || ^14.0.0"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
|
+
"@vue-storefront/sdk": "^3.1.0",
|
|
60
61
|
"react": "^18.2.0",
|
|
61
62
|
"next": "^13.4.7 || ^14.0.0"
|
|
62
63
|
},
|