@cmssy/react 0.7.6 → 0.7.7
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 +2 -1
- package/dist/client.d.cts +2 -2
- package/dist/client.d.ts +2 -2
- package/dist/client.js +2 -1
- package/dist/{commerce-queries-CA8_5lMX.d.cts → commerce-queries-BSTuurfl.d.cts} +8 -0
- package/dist/{commerce-queries-CA8_5lMX.d.ts → commerce-queries-BSTuurfl.d.ts} +8 -0
- package/dist/index.cjs +2 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/client.cjs
CHANGED
|
@@ -32,7 +32,8 @@ function blocksToMeta(blocks, defaults = {}) {
|
|
|
32
32
|
label: block.label ?? block.type,
|
|
33
33
|
...category ? { category } : {},
|
|
34
34
|
...block.icon ? { icon: block.icon } : {},
|
|
35
|
-
...block.layoutPositions ? { layoutPositions: block.layoutPositions } : {}
|
|
35
|
+
...block.layoutPositions ? { layoutPositions: block.layoutPositions } : {},
|
|
36
|
+
...block.description ? { description: block.description } : {}
|
|
36
37
|
};
|
|
37
38
|
}
|
|
38
39
|
return out;
|
package/dist/client.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { B as BlockSchema, a as BlockMeta, C as CmssyPageData, b as BlockDefinition, c as CmssyFormDefinition, d as CmssyLayoutGroup, e as CmssyLocaleContext, f as CmssyCart, g as CmssyOrder, h as CmssyProduct } from './commerce-queries-
|
|
3
|
-
export { i as CmssyCartDiscount, j as CmssyCartItem, k as CmssyCartItemSnapshot, l as CmssyOrderItem, m as CmssyProductVariant } from './commerce-queries-
|
|
2
|
+
import { B as BlockSchema, a as BlockMeta, C as CmssyPageData, b as BlockDefinition, c as CmssyFormDefinition, d as CmssyLayoutGroup, e as CmssyLocaleContext, f as CmssyCart, g as CmssyOrder, h as CmssyProduct } from './commerce-queries-BSTuurfl.cjs';
|
|
3
|
+
export { i as CmssyCartDiscount, j as CmssyCartItem, k as CmssyCartItemSnapshot, l as CmssyOrderItem, m as CmssyProductVariant } from './commerce-queries-BSTuurfl.cjs';
|
|
4
4
|
import { ReactNode } from 'react';
|
|
5
5
|
|
|
6
6
|
interface EditBridgeConfig {
|
package/dist/client.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { B as BlockSchema, a as BlockMeta, C as CmssyPageData, b as BlockDefinition, c as CmssyFormDefinition, d as CmssyLayoutGroup, e as CmssyLocaleContext, f as CmssyCart, g as CmssyOrder, h as CmssyProduct } from './commerce-queries-
|
|
3
|
-
export { i as CmssyCartDiscount, j as CmssyCartItem, k as CmssyCartItemSnapshot, l as CmssyOrderItem, m as CmssyProductVariant } from './commerce-queries-
|
|
2
|
+
import { B as BlockSchema, a as BlockMeta, C as CmssyPageData, b as BlockDefinition, c as CmssyFormDefinition, d as CmssyLayoutGroup, e as CmssyLocaleContext, f as CmssyCart, g as CmssyOrder, h as CmssyProduct } from './commerce-queries-BSTuurfl.js';
|
|
3
|
+
export { i as CmssyCartDiscount, j as CmssyCartItem, k as CmssyCartItemSnapshot, l as CmssyOrderItem, m as CmssyProductVariant } from './commerce-queries-BSTuurfl.js';
|
|
4
4
|
import { ReactNode } from 'react';
|
|
5
5
|
|
|
6
6
|
interface EditBridgeConfig {
|
package/dist/client.js
CHANGED
|
@@ -30,7 +30,8 @@ function blocksToMeta(blocks, defaults = {}) {
|
|
|
30
30
|
label: block.label ?? block.type,
|
|
31
31
|
...category ? { category } : {},
|
|
32
32
|
...block.icon ? { icon: block.icon } : {},
|
|
33
|
-
...block.layoutPositions ? { layoutPositions: block.layoutPositions } : {}
|
|
33
|
+
...block.layoutPositions ? { layoutPositions: block.layoutPositions } : {},
|
|
34
|
+
...block.description ? { description: block.description } : {}
|
|
34
35
|
};
|
|
35
36
|
}
|
|
36
37
|
return out;
|
|
@@ -214,6 +214,8 @@ interface BlockMeta {
|
|
|
214
214
|
category?: string;
|
|
215
215
|
icon?: string;
|
|
216
216
|
layoutPositions?: string[];
|
|
217
|
+
/** One-line block description; surfaced to the AI page composer. */
|
|
218
|
+
description?: string;
|
|
217
219
|
}
|
|
218
220
|
interface BlockRect {
|
|
219
221
|
x: number;
|
|
@@ -313,6 +315,11 @@ interface BlockDefinition {
|
|
|
313
315
|
category?: string;
|
|
314
316
|
icon?: string;
|
|
315
317
|
layoutPositions?: string[];
|
|
318
|
+
/**
|
|
319
|
+
* One-line semantic description of what the block is and when it belongs on a
|
|
320
|
+
* page. Surfaced to the AI page composer to guide block selection and order.
|
|
321
|
+
*/
|
|
322
|
+
description?: string;
|
|
316
323
|
props: Record<string, FieldDefinition>;
|
|
317
324
|
/**
|
|
318
325
|
* Optional server-side data loader. Run by CmssyServerPage during SSR; its
|
|
@@ -336,6 +343,7 @@ declare function defineBlock<C extends Record<string, unknown>, D = unknown>(def
|
|
|
336
343
|
category?: string;
|
|
337
344
|
icon?: string;
|
|
338
345
|
layoutPositions?: string[];
|
|
346
|
+
description?: string;
|
|
339
347
|
props: Record<string, FieldDefinition>;
|
|
340
348
|
loader?: (args: {
|
|
341
349
|
content: C;
|
|
@@ -214,6 +214,8 @@ interface BlockMeta {
|
|
|
214
214
|
category?: string;
|
|
215
215
|
icon?: string;
|
|
216
216
|
layoutPositions?: string[];
|
|
217
|
+
/** One-line block description; surfaced to the AI page composer. */
|
|
218
|
+
description?: string;
|
|
217
219
|
}
|
|
218
220
|
interface BlockRect {
|
|
219
221
|
x: number;
|
|
@@ -313,6 +315,11 @@ interface BlockDefinition {
|
|
|
313
315
|
category?: string;
|
|
314
316
|
icon?: string;
|
|
315
317
|
layoutPositions?: string[];
|
|
318
|
+
/**
|
|
319
|
+
* One-line semantic description of what the block is and when it belongs on a
|
|
320
|
+
* page. Surfaced to the AI page composer to guide block selection and order.
|
|
321
|
+
*/
|
|
322
|
+
description?: string;
|
|
316
323
|
props: Record<string, FieldDefinition>;
|
|
317
324
|
/**
|
|
318
325
|
* Optional server-side data loader. Run by CmssyServerPage during SSR; its
|
|
@@ -336,6 +343,7 @@ declare function defineBlock<C extends Record<string, unknown>, D = unknown>(def
|
|
|
336
343
|
category?: string;
|
|
337
344
|
icon?: string;
|
|
338
345
|
layoutPositions?: string[];
|
|
346
|
+
description?: string;
|
|
339
347
|
props: Record<string, FieldDefinition>;
|
|
340
348
|
loader?: (args: {
|
|
341
349
|
content: C;
|
package/dist/index.cjs
CHANGED
|
@@ -61,7 +61,8 @@ function blocksToMeta(blocks, defaults = {}) {
|
|
|
61
61
|
label: block.label ?? block.type,
|
|
62
62
|
...category ? { category } : {},
|
|
63
63
|
...block.icon ? { icon: block.icon } : {},
|
|
64
|
-
...block.layoutPositions ? { layoutPositions: block.layoutPositions } : {}
|
|
64
|
+
...block.layoutPositions ? { layoutPositions: block.layoutPositions } : {},
|
|
65
|
+
...block.description ? { description: block.description } : {}
|
|
65
66
|
};
|
|
66
67
|
}
|
|
67
68
|
return out;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FieldDefinition, C as CmssyPageData, b as BlockDefinition, c as CmssyFormDefinition, n as CmssyBlockAuthContext, o as CmssyBlockWorkspace, d as CmssyLayoutGroup, E as EditorToAppMessage, A as AppToEditorMessage, p as FetchLike, q as CmssyClientConfig, r as CmssySiteConfig, R as RawBlock, e as CmssyLocaleContext, s as BlockMap, t as CmssyBlockContext } from './commerce-queries-
|
|
2
|
-
export { a as BlockMeta, u as BlockRect, B as BlockSchema, v as BoundsMessage, w as BuildBlockContextExtra, x as ClickMessage, y as CmssyBlockMember, z as CmssyBranding, f as CmssyCart, i as CmssyCartDiscount, j as CmssyCartItem, k as CmssyCartItemSnapshot, D as CmssyFormField, G as CmssyFormSettings, H as CmssyFormSubmitResponse, I as CmssyLocalizedValue, J as CmssyModelDefinition, K as CmssyModelRecord, g as CmssyOrder, L as CmssyPageMeta, M as CmssyPageSummary, h as CmssyProduct, m as CmssyProductVariant, N as CmssyRecordList, O as DEFAULT_CMSSY_API_URL, P as FORM_QUERY, Q as FetchLikeResponse, S as FetchPageOptions, T as FieldType, U as MODEL_DEFINITIONS_QUERY, V as MODEL_RECORDS_QUERY, W as PROTOCOL_VERSION, X as ParentReadyMessage, Y as PatchMessage, Z as RawLayoutBlock, _ as ReadyMessage, $ as SITE_CONFIG_QUERY, a0 as SUBMIT_FORM_MUTATION, a1 as SelectMessage, a2 as SubmitFormInput, a3 as blocksToMeta, a4 as blocksToSchemas, a5 as buildBlockContext, a6 as buildBlockMap, a7 as defineBlock, a8 as fetchLayouts, a9 as fetchPage, aa as fetchPageById, ab as fetchPageMeta, ac as fetchPages, ad as isProtocolCompatible, ae as normalizeSlug, af as resolveApiUrl } from './commerce-queries-
|
|
1
|
+
import { F as FieldDefinition, C as CmssyPageData, b as BlockDefinition, c as CmssyFormDefinition, n as CmssyBlockAuthContext, o as CmssyBlockWorkspace, d as CmssyLayoutGroup, E as EditorToAppMessage, A as AppToEditorMessage, p as FetchLike, q as CmssyClientConfig, r as CmssySiteConfig, R as RawBlock, e as CmssyLocaleContext, s as BlockMap, t as CmssyBlockContext } from './commerce-queries-BSTuurfl.cjs';
|
|
2
|
+
export { a as BlockMeta, u as BlockRect, B as BlockSchema, v as BoundsMessage, w as BuildBlockContextExtra, x as ClickMessage, y as CmssyBlockMember, z as CmssyBranding, f as CmssyCart, i as CmssyCartDiscount, j as CmssyCartItem, k as CmssyCartItemSnapshot, D as CmssyFormField, G as CmssyFormSettings, H as CmssyFormSubmitResponse, I as CmssyLocalizedValue, J as CmssyModelDefinition, K as CmssyModelRecord, g as CmssyOrder, L as CmssyPageMeta, M as CmssyPageSummary, h as CmssyProduct, m as CmssyProductVariant, N as CmssyRecordList, O as DEFAULT_CMSSY_API_URL, P as FORM_QUERY, Q as FetchLikeResponse, S as FetchPageOptions, T as FieldType, U as MODEL_DEFINITIONS_QUERY, V as MODEL_RECORDS_QUERY, W as PROTOCOL_VERSION, X as ParentReadyMessage, Y as PatchMessage, Z as RawLayoutBlock, _ as ReadyMessage, $ as SITE_CONFIG_QUERY, a0 as SUBMIT_FORM_MUTATION, a1 as SelectMessage, a2 as SubmitFormInput, a3 as blocksToMeta, a4 as blocksToSchemas, a5 as buildBlockContext, a6 as buildBlockMap, a7 as defineBlock, a8 as fetchLayouts, a9 as fetchPage, aa as fetchPageById, ab as fetchPageMeta, ac as fetchPages, ad as isProtocolCompatible, ae as normalizeSlug, af as resolveApiUrl } from './commerce-queries-BSTuurfl.cjs';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
5
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FieldDefinition, C as CmssyPageData, b as BlockDefinition, c as CmssyFormDefinition, n as CmssyBlockAuthContext, o as CmssyBlockWorkspace, d as CmssyLayoutGroup, E as EditorToAppMessage, A as AppToEditorMessage, p as FetchLike, q as CmssyClientConfig, r as CmssySiteConfig, R as RawBlock, e as CmssyLocaleContext, s as BlockMap, t as CmssyBlockContext } from './commerce-queries-
|
|
2
|
-
export { a as BlockMeta, u as BlockRect, B as BlockSchema, v as BoundsMessage, w as BuildBlockContextExtra, x as ClickMessage, y as CmssyBlockMember, z as CmssyBranding, f as CmssyCart, i as CmssyCartDiscount, j as CmssyCartItem, k as CmssyCartItemSnapshot, D as CmssyFormField, G as CmssyFormSettings, H as CmssyFormSubmitResponse, I as CmssyLocalizedValue, J as CmssyModelDefinition, K as CmssyModelRecord, g as CmssyOrder, L as CmssyPageMeta, M as CmssyPageSummary, h as CmssyProduct, m as CmssyProductVariant, N as CmssyRecordList, O as DEFAULT_CMSSY_API_URL, P as FORM_QUERY, Q as FetchLikeResponse, S as FetchPageOptions, T as FieldType, U as MODEL_DEFINITIONS_QUERY, V as MODEL_RECORDS_QUERY, W as PROTOCOL_VERSION, X as ParentReadyMessage, Y as PatchMessage, Z as RawLayoutBlock, _ as ReadyMessage, $ as SITE_CONFIG_QUERY, a0 as SUBMIT_FORM_MUTATION, a1 as SelectMessage, a2 as SubmitFormInput, a3 as blocksToMeta, a4 as blocksToSchemas, a5 as buildBlockContext, a6 as buildBlockMap, a7 as defineBlock, a8 as fetchLayouts, a9 as fetchPage, aa as fetchPageById, ab as fetchPageMeta, ac as fetchPages, ad as isProtocolCompatible, ae as normalizeSlug, af as resolveApiUrl } from './commerce-queries-
|
|
1
|
+
import { F as FieldDefinition, C as CmssyPageData, b as BlockDefinition, c as CmssyFormDefinition, n as CmssyBlockAuthContext, o as CmssyBlockWorkspace, d as CmssyLayoutGroup, E as EditorToAppMessage, A as AppToEditorMessage, p as FetchLike, q as CmssyClientConfig, r as CmssySiteConfig, R as RawBlock, e as CmssyLocaleContext, s as BlockMap, t as CmssyBlockContext } from './commerce-queries-BSTuurfl.js';
|
|
2
|
+
export { a as BlockMeta, u as BlockRect, B as BlockSchema, v as BoundsMessage, w as BuildBlockContextExtra, x as ClickMessage, y as CmssyBlockMember, z as CmssyBranding, f as CmssyCart, i as CmssyCartDiscount, j as CmssyCartItem, k as CmssyCartItemSnapshot, D as CmssyFormField, G as CmssyFormSettings, H as CmssyFormSubmitResponse, I as CmssyLocalizedValue, J as CmssyModelDefinition, K as CmssyModelRecord, g as CmssyOrder, L as CmssyPageMeta, M as CmssyPageSummary, h as CmssyProduct, m as CmssyProductVariant, N as CmssyRecordList, O as DEFAULT_CMSSY_API_URL, P as FORM_QUERY, Q as FetchLikeResponse, S as FetchPageOptions, T as FieldType, U as MODEL_DEFINITIONS_QUERY, V as MODEL_RECORDS_QUERY, W as PROTOCOL_VERSION, X as ParentReadyMessage, Y as PatchMessage, Z as RawLayoutBlock, _ as ReadyMessage, $ as SITE_CONFIG_QUERY, a0 as SUBMIT_FORM_MUTATION, a1 as SelectMessage, a2 as SubmitFormInput, a3 as blocksToMeta, a4 as blocksToSchemas, a5 as buildBlockContext, a6 as buildBlockMap, a7 as defineBlock, a8 as fetchLayouts, a9 as fetchPage, aa as fetchPageById, ab as fetchPageMeta, ac as fetchPages, ad as isProtocolCompatible, ae as normalizeSlug, af as resolveApiUrl } from './commerce-queries-BSTuurfl.js';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
5
|
|
package/dist/index.js
CHANGED
|
@@ -59,7 +59,8 @@ function blocksToMeta(blocks, defaults = {}) {
|
|
|
59
59
|
label: block.label ?? block.type,
|
|
60
60
|
...category ? { category } : {},
|
|
61
61
|
...block.icon ? { icon: block.icon } : {},
|
|
62
|
-
...block.layoutPositions ? { layoutPositions: block.layoutPositions } : {}
|
|
62
|
+
...block.layoutPositions ? { layoutPositions: block.layoutPositions } : {},
|
|
63
|
+
...block.description ? { description: block.description } : {}
|
|
63
64
|
};
|
|
64
65
|
}
|
|
65
66
|
return out;
|