@cmssy/react 19.32.0 → 19.34.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/client.cjs +1 -1
- package/dist/client.js +1 -1
- package/dist/index.cjs +3 -0
- package/dist/index.js +4 -1
- package/package.json +3 -3
package/dist/client.cjs
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var react = require('react');
|
|
5
|
-
var core = require('@cmssy/core');
|
|
6
5
|
var internal = require('@cmssy/core/internal');
|
|
6
|
+
var core = require('@cmssy/core');
|
|
7
7
|
var blockErrorBoundary = require('@cmssy/react/block-error-boundary');
|
|
8
8
|
var jsxRuntime = require('react/jsx-runtime');
|
|
9
9
|
|
package/dist/client.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useState, useRef, useEffect, useMemo, createElement } from 'react';
|
|
3
|
-
import { blocksToMeta, blocksToSchemas, postToEditor, layoutRegionsToBridge, PROTOCOL_VERSION, parseEditorMessage, CMSSY_EDIT_TOKEN_HEADER } from '@cmssy/core';
|
|
4
3
|
import { resolveInitialTarget, buildBlockContext, getBlockContentForLanguage, normalizeBlockContent, asBucket } from '@cmssy/core/internal';
|
|
4
|
+
import { blocksToMeta, blocksToSchemas, postToEditor, layoutRegionsToBridge, PROTOCOL_VERSION, parseEditorMessage, CMSSY_EDIT_TOKEN_HEADER } from '@cmssy/core';
|
|
5
5
|
import { BlockErrorBoundary } from '@cmssy/react/block-error-boundary';
|
|
6
6
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
7
7
|
|
package/dist/index.cjs
CHANGED
|
@@ -9,6 +9,9 @@ var locale = require('@cmssy/core/internal/locale');
|
|
|
9
9
|
|
|
10
10
|
// src/index.ts
|
|
11
11
|
function defineBlock(def) {
|
|
12
|
+
for (const problem of internal.unreachableShowWhenTargets(def.type, def.props)) {
|
|
13
|
+
console.warn(problem);
|
|
14
|
+
}
|
|
12
15
|
return def;
|
|
13
16
|
}
|
|
14
17
|
function buildBlockMap(blocks) {
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { blocksToSchemas, isTransientRequestError, resolveEditorOrigin, verifyCmssyEditToken, CMSSY_EDIT_TOKEN_HEADER } from '@cmssy/core';
|
|
2
2
|
export { CmssyRequestError, MediaType, PROTOCOL_VERSION, createCmssyClient, defineCmssyLayout, evaluateFieldConditionGroup, fields, graphqlRequest, isFormFieldRequired, isFormFieldVisible, isProtocolCompatible, mediaAlt, mediaDuration, mediaType, mediaTypeValues, mediaUrl, mediaUrls, normalizeOrigin, parseEditorMessage, postToEditor, typedOperation, visibleFormFields } from '@cmssy/core';
|
|
3
|
-
import { buildBlockContext, readThroughLayoutStore, layoutStoreKey, fetchLayouts, normalizeBlockContent, asBucket, layoutRegionIds, fetchPage, resolveSiteLocales as resolveSiteLocales$1, getBlockContentForLanguage, resolveRelationContent } from '@cmssy/core/internal';
|
|
3
|
+
import { unreachableShowWhenTargets, buildBlockContext, readThroughLayoutStore, layoutStoreKey, fetchLayouts, normalizeBlockContent, asBucket, layoutRegionIds, fetchPage, resolveSiteLocales as resolveSiteLocales$1, getBlockContentForLanguage, resolveRelationContent } from '@cmssy/core/internal';
|
|
4
4
|
export { buildBlockContext } from '@cmssy/core/internal';
|
|
5
5
|
import { createElement } from 'react';
|
|
6
6
|
import { BlockErrorBoundary } from '@cmssy/react/block-error-boundary';
|
|
@@ -9,6 +9,9 @@ import { resolveSiteLocales, splitLocaleFromPath } from '@cmssy/core/internal/lo
|
|
|
9
9
|
|
|
10
10
|
// src/index.ts
|
|
11
11
|
function defineBlock(def) {
|
|
12
|
+
for (const problem of unreachableShowWhenTargets(def.type, def.props)) {
|
|
13
|
+
console.warn(problem);
|
|
14
|
+
}
|
|
12
15
|
return def;
|
|
13
16
|
}
|
|
14
17
|
function buildBlockMap(blocks) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cmssy/react",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.34.0",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=20"
|
|
6
6
|
},
|
|
@@ -109,8 +109,8 @@
|
|
|
109
109
|
"vitest": "^2.1.0"
|
|
110
110
|
},
|
|
111
111
|
"dependencies": {
|
|
112
|
-
"@cmssy/types": "0.
|
|
113
|
-
"@cmssy/core": "19.
|
|
112
|
+
"@cmssy/types": "0.77.0",
|
|
113
|
+
"@cmssy/core": "19.34.0"
|
|
114
114
|
},
|
|
115
115
|
"scripts": {
|
|
116
116
|
"build": "tsup",
|