@cmssy/remix 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 +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -11,7 +11,7 @@ function createCmssyLoader(config, options = {}) {
|
|
|
11
11
|
request
|
|
12
12
|
}) {
|
|
13
13
|
const url = new URL(request.url);
|
|
14
|
-
const retry = options.retry ??
|
|
14
|
+
const retry = options.retry ?? "interactive";
|
|
15
15
|
const isEdit = await core.isVerifiedEditUrl(url, config);
|
|
16
16
|
const editRequested = url.searchParams.getAll(core.CMSSY_EDIT_QUERY_PARAM).includes("1");
|
|
17
17
|
if (!isEdit && editRequested && internal.isDevelopment()) {
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CmssyPageData, CmssyLayoutGroup,
|
|
2
|
-
export { CMSSY_LOCALE_HEADER, CmssyBlockContext, CmssyConfig, CmssyEnvConfig, CmssyLayoutGroup, CmssyPageData, CmssyWebhookError, CmssyWebhookEvent, RetryPolicy, VerifyCmssyWebhookOptions, createCmssyClient, defineCmssyConfig, isVerifiedEditUrl, localizeHref, verifyCmssyWebhook } from '@cmssy/core';
|
|
1
|
+
import { CmssyPageData, CmssyLayoutGroup, RetryOption, CmssyConfig } from '@cmssy/core';
|
|
2
|
+
export { CMSSY_LOCALE_HEADER, CmssyBlockContext, CmssyConfig, CmssyEnvConfig, CmssyLayoutGroup, CmssyPageData, CmssyRetryMode, CmssyWebhookError, CmssyWebhookEvent, RetryOption, RetryPolicy, VerifyCmssyWebhookOptions, createCmssyClient, defineCmssyConfig, isVerifiedEditUrl, localizeHref, verifyCmssyWebhook } from '@cmssy/core';
|
|
3
3
|
import { BlockDefinition } from '@cmssy/react';
|
|
4
4
|
|
|
5
5
|
interface CmssyRouteData {
|
|
@@ -21,7 +21,7 @@ interface CreateCmssyLoaderOptions {
|
|
|
21
21
|
blocks?: BlockDefinition[];
|
|
22
22
|
positions?: string[];
|
|
23
23
|
appContext?: Record<string, unknown>;
|
|
24
|
-
retry?:
|
|
24
|
+
retry?: RetryOption;
|
|
25
25
|
}
|
|
26
26
|
declare function createCmssyLoader(config: CmssyConfig, options?: CreateCmssyLoaderOptions): ({ request, }: {
|
|
27
27
|
request: Request;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CmssyPageData, CmssyLayoutGroup,
|
|
2
|
-
export { CMSSY_LOCALE_HEADER, CmssyBlockContext, CmssyConfig, CmssyEnvConfig, CmssyLayoutGroup, CmssyPageData, CmssyWebhookError, CmssyWebhookEvent, RetryPolicy, VerifyCmssyWebhookOptions, createCmssyClient, defineCmssyConfig, isVerifiedEditUrl, localizeHref, verifyCmssyWebhook } from '@cmssy/core';
|
|
1
|
+
import { CmssyPageData, CmssyLayoutGroup, RetryOption, CmssyConfig } from '@cmssy/core';
|
|
2
|
+
export { CMSSY_LOCALE_HEADER, CmssyBlockContext, CmssyConfig, CmssyEnvConfig, CmssyLayoutGroup, CmssyPageData, CmssyRetryMode, CmssyWebhookError, CmssyWebhookEvent, RetryOption, RetryPolicy, VerifyCmssyWebhookOptions, createCmssyClient, defineCmssyConfig, isVerifiedEditUrl, localizeHref, verifyCmssyWebhook } from '@cmssy/core';
|
|
3
3
|
import { BlockDefinition } from '@cmssy/react';
|
|
4
4
|
|
|
5
5
|
interface CmssyRouteData {
|
|
@@ -21,7 +21,7 @@ interface CreateCmssyLoaderOptions {
|
|
|
21
21
|
blocks?: BlockDefinition[];
|
|
22
22
|
positions?: string[];
|
|
23
23
|
appContext?: Record<string, unknown>;
|
|
24
|
-
retry?:
|
|
24
|
+
retry?: RetryOption;
|
|
25
25
|
}
|
|
26
26
|
declare function createCmssyLoader(config: CmssyConfig, options?: CreateCmssyLoaderOptions): ({ request, }: {
|
|
27
27
|
request: Request;
|
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@ function createCmssyLoader(config, options = {}) {
|
|
|
10
10
|
request
|
|
11
11
|
}) {
|
|
12
12
|
const url = new URL(request.url);
|
|
13
|
-
const retry = options.retry ??
|
|
13
|
+
const retry = options.retry ?? "interactive";
|
|
14
14
|
const isEdit = await isVerifiedEditUrl(url, config);
|
|
15
15
|
const editRequested = url.searchParams.getAll(CMSSY_EDIT_QUERY_PARAM).includes("1");
|
|
16
16
|
if (!isEdit && editRequested && isDevelopment()) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cmssy/remix",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.12.0",
|
|
4
4
|
"description": "React Router 7 bindings for cmssy headless sites: page loader, framing CSP, sitemap and robots.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cmssy",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
],
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"react-router": ">=7",
|
|
54
|
-
"@cmssy/react": "^12.
|
|
54
|
+
"@cmssy/react": "^12.12.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@types/node": "^20.0.0",
|
|
@@ -59,10 +59,10 @@
|
|
|
59
59
|
"tsup": "^8.3.0",
|
|
60
60
|
"typescript": "^5.6.0",
|
|
61
61
|
"vitest": "^2.1.0",
|
|
62
|
-
"@cmssy/react": "12.
|
|
62
|
+
"@cmssy/react": "12.12.0"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@cmssy/core": "12.
|
|
65
|
+
"@cmssy/core": "12.12.0"
|
|
66
66
|
},
|
|
67
67
|
"scripts": {
|
|
68
68
|
"build": "tsup",
|