@cmssy/astro 12.10.0 → 12.12.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 +1 -1
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +1 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -87,7 +87,7 @@ async function loadCmssyPage(config, request, url, options = {}) {
|
|
|
87
87
|
const positions = options.positions ?? ["header", "footer"];
|
|
88
88
|
const blocks = options.blocks ?? [];
|
|
89
89
|
const headerLocale = request.headers.get(internal.CMSSY_LOCALE_HEADER) ?? void 0;
|
|
90
|
-
const retry = options.retry ??
|
|
90
|
+
const retry = options.retry ?? (options.prerendered === false ? "interactive" : "build");
|
|
91
91
|
const slot = await react.resolveCmssyLayoutSlot(config, {
|
|
92
92
|
position: positions[0] ?? "header",
|
|
93
93
|
blocks,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CmssyConfig, CmssyPageData, CmssyLayoutGroup,
|
|
2
|
-
export { CMSSY_EDIT_HEADER, CMSSY_LOCALE_HEADER, CmssyBlockContext, CmssyConfig, CmssyEnvConfig, CmssyLayoutGroup, CmssyPageData, CmssyWebhookError, CmssyWebhookEvent, RetryPolicy, VerifyCmssyWebhookOptions, createCmssyClient, defineCmssyConfig, localizeHref, resolveEditorOrigin, verifyCmssyWebhook } from '@cmssy/core';
|
|
1
|
+
import { CmssyConfig, CmssyPageData, CmssyLayoutGroup, RetryOption } from '@cmssy/core';
|
|
2
|
+
export { CMSSY_EDIT_HEADER, CMSSY_LOCALE_HEADER, CmssyBlockContext, CmssyConfig, CmssyEnvConfig, CmssyLayoutGroup, CmssyPageData, CmssyRetryMode, CmssyWebhookError, CmssyWebhookEvent, RetryOption, RetryPolicy, VerifyCmssyWebhookOptions, createCmssyClient, defineCmssyConfig, localizeHref, resolveEditorOrigin, verifyCmssyWebhook } from '@cmssy/core';
|
|
3
3
|
import { BlockDefinition } from '@cmssy/react';
|
|
4
4
|
|
|
5
5
|
declare const CMSSY_EDIT_PATH_PREFIX = "/cmssy-edit";
|
|
@@ -31,7 +31,8 @@ interface LoadCmssyPageOptions {
|
|
|
31
31
|
blocks?: BlockDefinition[];
|
|
32
32
|
positions?: string[];
|
|
33
33
|
appContext?: Record<string, unknown>;
|
|
34
|
-
retry?:
|
|
34
|
+
retry?: RetryOption;
|
|
35
|
+
prerendered?: boolean;
|
|
35
36
|
}
|
|
36
37
|
declare function loadCmssyPage(config: CmssyConfig, request: Request, url: URL, options?: LoadCmssyPageOptions): Promise<CmssyPageResult>;
|
|
37
38
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CmssyConfig, CmssyPageData, CmssyLayoutGroup,
|
|
2
|
-
export { CMSSY_EDIT_HEADER, CMSSY_LOCALE_HEADER, CmssyBlockContext, CmssyConfig, CmssyEnvConfig, CmssyLayoutGroup, CmssyPageData, CmssyWebhookError, CmssyWebhookEvent, RetryPolicy, VerifyCmssyWebhookOptions, createCmssyClient, defineCmssyConfig, localizeHref, resolveEditorOrigin, verifyCmssyWebhook } from '@cmssy/core';
|
|
1
|
+
import { CmssyConfig, CmssyPageData, CmssyLayoutGroup, RetryOption } from '@cmssy/core';
|
|
2
|
+
export { CMSSY_EDIT_HEADER, CMSSY_LOCALE_HEADER, CmssyBlockContext, CmssyConfig, CmssyEnvConfig, CmssyLayoutGroup, CmssyPageData, CmssyRetryMode, CmssyWebhookError, CmssyWebhookEvent, RetryOption, RetryPolicy, VerifyCmssyWebhookOptions, createCmssyClient, defineCmssyConfig, localizeHref, resolveEditorOrigin, verifyCmssyWebhook } from '@cmssy/core';
|
|
3
3
|
import { BlockDefinition } from '@cmssy/react';
|
|
4
4
|
|
|
5
5
|
declare const CMSSY_EDIT_PATH_PREFIX = "/cmssy-edit";
|
|
@@ -31,7 +31,8 @@ interface LoadCmssyPageOptions {
|
|
|
31
31
|
blocks?: BlockDefinition[];
|
|
32
32
|
positions?: string[];
|
|
33
33
|
appContext?: Record<string, unknown>;
|
|
34
|
-
retry?:
|
|
34
|
+
retry?: RetryOption;
|
|
35
|
+
prerendered?: boolean;
|
|
35
36
|
}
|
|
36
37
|
declare function loadCmssyPage(config: CmssyConfig, request: Request, url: URL, options?: LoadCmssyPageOptions): Promise<CmssyPageResult>;
|
|
37
38
|
|
package/dist/index.js
CHANGED
|
@@ -86,7 +86,7 @@ async function loadCmssyPage(config, request, url, options = {}) {
|
|
|
86
86
|
const positions = options.positions ?? ["header", "footer"];
|
|
87
87
|
const blocks = options.blocks ?? [];
|
|
88
88
|
const headerLocale = request.headers.get(CMSSY_LOCALE_HEADER) ?? void 0;
|
|
89
|
-
const retry = options.retry ??
|
|
89
|
+
const retry = options.retry ?? (options.prerendered === false ? "interactive" : "build");
|
|
90
90
|
const slot = await resolveCmssyLayoutSlot(config, {
|
|
91
91
|
position: positions[0] ?? "header",
|
|
92
92
|
blocks,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cmssy/astro",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.12.0",
|
|
4
4
|
"description": "Astro bindings for cmssy headless sites: middleware, page loader, sitemap and robots.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cmssy",
|
|
@@ -50,17 +50,17 @@
|
|
|
50
50
|
],
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"astro": ">=4.16",
|
|
53
|
-
"@cmssy/react": "^12.
|
|
53
|
+
"@cmssy/react": "^12.12.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@types/node": "^20.0.0",
|
|
57
57
|
"tsup": "^8.3.0",
|
|
58
58
|
"typescript": "^5.6.0",
|
|
59
59
|
"vitest": "^2.1.0",
|
|
60
|
-
"@cmssy/react": "12.
|
|
60
|
+
"@cmssy/react": "12.12.0"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@cmssy/core": "12.
|
|
63
|
+
"@cmssy/core": "12.12.0"
|
|
64
64
|
},
|
|
65
65
|
"scripts": {
|
|
66
66
|
"build": "tsup",
|