@cmssy/astro 19.38.0 → 19.39.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.cjs +2 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -138,7 +138,8 @@ async function loadCmssyPage(config, request, url, options = {}) {
|
|
|
138
138
|
...isEdit && config.draftSecret ? {
|
|
139
139
|
blockDataToken: await core.mintCmssyEditToken(config.draftSecret, {
|
|
140
140
|
page: slot.page.slug
|
|
141
|
-
})
|
|
141
|
+
}),
|
|
142
|
+
acceptsEditToken: true
|
|
142
143
|
} : {},
|
|
143
144
|
editorData,
|
|
144
145
|
editorOrigin: slot.editorOrigin,
|
package/dist/index.d.cts
CHANGED
|
@@ -23,6 +23,7 @@ interface CmssyPageResult {
|
|
|
23
23
|
enabledLocales: string[];
|
|
24
24
|
isEdit: boolean;
|
|
25
25
|
blockDataToken?: string;
|
|
26
|
+
acceptsEditToken?: boolean;
|
|
26
27
|
editorData?: Record<string, CmssyLayoutEditorData>;
|
|
27
28
|
editorOrigin?: string | string[];
|
|
28
29
|
layoutRegions?: readonly LayoutRegion[];
|
package/dist/index.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ interface CmssyPageResult {
|
|
|
23
23
|
enabledLocales: string[];
|
|
24
24
|
isEdit: boolean;
|
|
25
25
|
blockDataToken?: string;
|
|
26
|
+
acceptsEditToken?: boolean;
|
|
26
27
|
editorData?: Record<string, CmssyLayoutEditorData>;
|
|
27
28
|
editorOrigin?: string | string[];
|
|
28
29
|
layoutRegions?: readonly LayoutRegion[];
|
package/dist/index.js
CHANGED
|
@@ -138,7 +138,8 @@ async function loadCmssyPage(config, request, url, options = {}) {
|
|
|
138
138
|
...isEdit && config.draftSecret ? {
|
|
139
139
|
blockDataToken: await mintCmssyEditToken(config.draftSecret, {
|
|
140
140
|
page: slot.page.slug
|
|
141
|
-
})
|
|
141
|
+
}),
|
|
142
|
+
acceptsEditToken: true
|
|
142
143
|
} : {},
|
|
143
144
|
editorData,
|
|
144
145
|
editorOrigin: slot.editorOrigin,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cmssy/astro",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.39.0",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=20"
|
|
6
6
|
},
|
|
@@ -53,17 +53,17 @@
|
|
|
53
53
|
],
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"astro": ">=4.16",
|
|
56
|
-
"@cmssy/react": "^19.
|
|
56
|
+
"@cmssy/react": "^19.39.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@types/node": "^20.0.0",
|
|
60
60
|
"tsup": "^8.3.0",
|
|
61
61
|
"typescript": "^5.6.0",
|
|
62
62
|
"vitest": "^2.1.0",
|
|
63
|
-
"@cmssy/react": "19.
|
|
63
|
+
"@cmssy/react": "19.39.0"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@cmssy/core": "19.
|
|
66
|
+
"@cmssy/core": "19.39.0"
|
|
67
67
|
},
|
|
68
68
|
"scripts": {
|
|
69
69
|
"build": "tsup",
|