@uniformdev/canvas-next 18.38.2-alpha.6 → 19.1.1-alpha.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/dist/index.esm.js +3 -0
- package/dist/index.js +3 -0
- package/dist/index.mjs +3 -0
- package/dist/project-map/index.js +1 -1
- package/dist/project-map/index.mjs +1 -1
- package/package.json +6 -6
package/dist/index.esm.js
CHANGED
|
@@ -12,6 +12,9 @@ var getQueryParam = (req, paramName) => {
|
|
|
12
12
|
return Array.isArray(value) ? value[0] : value;
|
|
13
13
|
};
|
|
14
14
|
var createPreviewHandlerGet = ({ secret, resolveFullPath = resolveFullPathDefault } = {}) => async (req, res) => {
|
|
15
|
+
if (req.headers["sec-fetch-mode"] === "no-cors") {
|
|
16
|
+
return res.status(204).end();
|
|
17
|
+
}
|
|
15
18
|
const queryParamsToPreserve = [IN_CONTEXT_EDITOR_QUERY_STRING_PARAM];
|
|
16
19
|
const id = getQueryParam(req, "id");
|
|
17
20
|
const slug = getQueryParam(req, "slug");
|
package/dist/index.js
CHANGED
|
@@ -47,6 +47,9 @@ var getQueryParam = (req, paramName) => {
|
|
|
47
47
|
return Array.isArray(value) ? value[0] : value;
|
|
48
48
|
};
|
|
49
49
|
var createPreviewHandlerGet = ({ secret, resolveFullPath = resolveFullPathDefault } = {}) => async (req, res) => {
|
|
50
|
+
if (req.headers["sec-fetch-mode"] === "no-cors") {
|
|
51
|
+
return res.status(204).end();
|
|
52
|
+
}
|
|
50
53
|
const queryParamsToPreserve = [import_canvas.IN_CONTEXT_EDITOR_QUERY_STRING_PARAM];
|
|
51
54
|
const id = getQueryParam(req, "id");
|
|
52
55
|
const slug = getQueryParam(req, "slug");
|
package/dist/index.mjs
CHANGED
|
@@ -12,6 +12,9 @@ var getQueryParam = (req, paramName) => {
|
|
|
12
12
|
return Array.isArray(value) ? value[0] : value;
|
|
13
13
|
};
|
|
14
14
|
var createPreviewHandlerGet = ({ secret, resolveFullPath = resolveFullPathDefault } = {}) => async (req, res) => {
|
|
15
|
+
if (req.headers["sec-fetch-mode"] === "no-cors") {
|
|
16
|
+
return res.status(204).end();
|
|
17
|
+
}
|
|
15
18
|
const queryParamsToPreserve = [IN_CONTEXT_EDITOR_QUERY_STRING_PARAM];
|
|
16
19
|
const id = getQueryParam(req, "id");
|
|
17
20
|
const slug = getQueryParam(req, "slug");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/canvas-next",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "19.1.1-alpha.1+3ec68fe9d",
|
|
4
4
|
"description": "Next.js SDK for Uniform Canvas",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
"document": "api-extractor run --local"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@uniformdev/canvas": "
|
|
57
|
-
"@uniformdev/canvas-react": "
|
|
58
|
-
"@uniformdev/project-map": "
|
|
56
|
+
"@uniformdev/canvas": "19.1.1-alpha.1+3ec68fe9d",
|
|
57
|
+
"@uniformdev/canvas-react": "19.1.1-alpha.1+3ec68fe9d",
|
|
58
|
+
"@uniformdev/project-map": "19.1.1-alpha.1+3ec68fe9d"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
61
|
"next": ">= 12.0.0",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"react-dom": ">=16"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@types/react": "18.0.
|
|
66
|
+
"@types/react": "18.0.37",
|
|
67
67
|
"next": "13.3.0",
|
|
68
68
|
"react": "18.2.0",
|
|
69
69
|
"react-dom": "18.2.0"
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
"publishConfig": {
|
|
75
75
|
"access": "public"
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "3ec68fe9d54c7128e57cc8a5c8116fe968f65865"
|
|
78
78
|
}
|