@uniformdev/canvas-next 18.6.0 → 18.7.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/index.esm.js +5 -0
- package/dist/index.js +5 -0
- package/dist/index.mjs +5 -0
- package/dist/project-map/index.js +1 -1
- package/dist/project-map/index.mjs +1 -1
- package/dist/slug/index.js +1 -1
- package/dist/slug/index.mjs +1 -1
- package/package.json +6 -6
package/dist/index.esm.js
CHANGED
|
@@ -26,6 +26,11 @@ var createPreviewHandlerGet = ({ secret, resolveFullPath = resolveFullPathDefaul
|
|
|
26
26
|
res.setPreviewData({
|
|
27
27
|
isUniformContextualEditing: req.query[IN_CONTEXT_EDITOR_QUERY_STRING_PARAM] === "true"
|
|
28
28
|
});
|
|
29
|
+
const cookies = res.getHeader("Set-Cookie");
|
|
30
|
+
res.setHeader(
|
|
31
|
+
"Set-Cookie",
|
|
32
|
+
cookies == null ? void 0 : cookies.map((cookie) => cookie.replace("SameSite=Lax", "SameSite=None;Secure"))
|
|
33
|
+
);
|
|
29
34
|
const newQuery = new URLSearchParams();
|
|
30
35
|
queryParamsToPreserve.forEach((param) => {
|
|
31
36
|
const paramValue = req.query[param];
|
package/dist/index.js
CHANGED
|
@@ -62,6 +62,11 @@ var createPreviewHandlerGet = ({ secret, resolveFullPath = resolveFullPathDefaul
|
|
|
62
62
|
res.setPreviewData({
|
|
63
63
|
isUniformContextualEditing: req.query[import_canvas.IN_CONTEXT_EDITOR_QUERY_STRING_PARAM] === "true"
|
|
64
64
|
});
|
|
65
|
+
const cookies = res.getHeader("Set-Cookie");
|
|
66
|
+
res.setHeader(
|
|
67
|
+
"Set-Cookie",
|
|
68
|
+
cookies == null ? void 0 : cookies.map((cookie) => cookie.replace("SameSite=Lax", "SameSite=None;Secure"))
|
|
69
|
+
);
|
|
65
70
|
const newQuery = new URLSearchParams();
|
|
66
71
|
queryParamsToPreserve.forEach((param) => {
|
|
67
72
|
const paramValue = req.query[param];
|
package/dist/index.mjs
CHANGED
|
@@ -26,6 +26,11 @@ var createPreviewHandlerGet = ({ secret, resolveFullPath = resolveFullPathDefaul
|
|
|
26
26
|
res.setPreviewData({
|
|
27
27
|
isUniformContextualEditing: req.query[IN_CONTEXT_EDITOR_QUERY_STRING_PARAM] === "true"
|
|
28
28
|
});
|
|
29
|
+
const cookies = res.getHeader("Set-Cookie");
|
|
30
|
+
res.setHeader(
|
|
31
|
+
"Set-Cookie",
|
|
32
|
+
cookies == null ? void 0 : cookies.map((cookie) => cookie.replace("SameSite=Lax", "SameSite=None;Secure"))
|
|
33
|
+
);
|
|
29
34
|
const newQuery = new URLSearchParams();
|
|
30
35
|
queryParamsToPreserve.forEach((param) => {
|
|
31
36
|
const paramValue = req.query[param];
|
|
@@ -169,7 +169,7 @@ var withUniformGetStaticProps = (callback, options) => {
|
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
const ret = callback ? await callback(context, composition) : { props: {} };
|
|
172
|
-
if (Object.hasOwn(ret, "props")) {
|
|
172
|
+
if (composition && Object.hasOwn(ret, "props")) {
|
|
173
173
|
const casted = ret;
|
|
174
174
|
casted.props["data"] = composition;
|
|
175
175
|
}
|
|
@@ -133,7 +133,7 @@ var withUniformGetStaticProps = (callback, options) => {
|
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
const ret = callback ? await callback(context, composition) : { props: {} };
|
|
136
|
-
if (Object.hasOwn(ret, "props")) {
|
|
136
|
+
if (composition && Object.hasOwn(ret, "props")) {
|
|
137
137
|
const casted = ret;
|
|
138
138
|
casted.props["data"] = composition;
|
|
139
139
|
}
|
package/dist/slug/index.js
CHANGED
package/dist/slug/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/canvas-next",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.7.0",
|
|
4
4
|
"description": "Next.js SDK for Uniform Canvas",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
"format": "prettier --write \"src/**/*.{js,ts,tsx}\""
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@uniformdev/canvas": "18.
|
|
56
|
-
"@uniformdev/canvas-react": "18.
|
|
57
|
-
"@uniformdev/project-map": "18.
|
|
55
|
+
"@uniformdev/canvas": "18.7.0",
|
|
56
|
+
"@uniformdev/canvas-react": "18.7.0",
|
|
57
|
+
"@uniformdev/project-map": "18.7.0"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"next": ">= 12.0.0",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@types/react": "18.0.27",
|
|
66
|
-
"next": "13.1.
|
|
66
|
+
"next": "13.1.6",
|
|
67
67
|
"react": "18.2.0",
|
|
68
68
|
"react-dom": "18.2.0"
|
|
69
69
|
},
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"publishConfig": {
|
|
74
74
|
"access": "public"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "eaf3d0e5c1c124d6b449a2f2b16b327d6f3d3666"
|
|
77
77
|
}
|