@cmssy/core 14.2.0 → 16.0.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/{csp-CY7ssZsh.d.cts → csp-BHjoSZ2p.d.cts} +4 -4
- package/dist/{csp-DLCKZAyi.d.ts → csp-COFMUmsq.d.ts} +4 -4
- package/dist/index.cjs +4 -4
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -4
- package/dist/internal.cjs +3 -3
- package/dist/internal.d.cts +3 -3
- package/dist/internal.d.ts +3 -3
- package/dist/internal.js +3 -3
- package/package.json +2 -2
|
@@ -58,7 +58,7 @@ interface CmssyClient {
|
|
|
58
58
|
}
|
|
59
59
|
declare function createCmssyClient(input: CmssyClientConfig): CmssyClient;
|
|
60
60
|
|
|
61
|
-
declare const PROTOCOL_VERSION =
|
|
61
|
+
declare const PROTOCOL_VERSION = 3;
|
|
62
62
|
|
|
63
63
|
declare const SHORTCUT_ACTIONS: readonly ["undo", "redo", "save", "duplicate", "delete", "escape"];
|
|
64
64
|
type ShortcutAction = (typeof SHORTCUT_ACTIONS)[number];
|
|
@@ -69,7 +69,7 @@ interface ReadyMessage {
|
|
|
69
69
|
id: string;
|
|
70
70
|
type: string;
|
|
71
71
|
bounds: BlockRect;
|
|
72
|
-
|
|
72
|
+
layoutRegion?: string;
|
|
73
73
|
}>;
|
|
74
74
|
schemas: Record<string, BlockSchema>;
|
|
75
75
|
blockMeta?: Record<string, BlockMeta>;
|
|
@@ -85,7 +85,7 @@ interface ClickMessage {
|
|
|
85
85
|
type: "cmssy:click";
|
|
86
86
|
blockId: string;
|
|
87
87
|
rect: BlockRect;
|
|
88
|
-
|
|
88
|
+
layoutRegion?: string;
|
|
89
89
|
}
|
|
90
90
|
interface DeselectMessage {
|
|
91
91
|
type: "cmssy:deselect";
|
|
@@ -128,7 +128,7 @@ interface PatchMessage {
|
|
|
128
128
|
content: Record<string, unknown>;
|
|
129
129
|
style?: Record<string, unknown>;
|
|
130
130
|
advanced?: Record<string, unknown>;
|
|
131
|
-
|
|
131
|
+
layoutRegion?: string;
|
|
132
132
|
}
|
|
133
133
|
interface ParentReadyMessage {
|
|
134
134
|
type: "cmssy:parent-ready";
|
|
@@ -58,7 +58,7 @@ interface CmssyClient {
|
|
|
58
58
|
}
|
|
59
59
|
declare function createCmssyClient(input: CmssyClientConfig): CmssyClient;
|
|
60
60
|
|
|
61
|
-
declare const PROTOCOL_VERSION =
|
|
61
|
+
declare const PROTOCOL_VERSION = 3;
|
|
62
62
|
|
|
63
63
|
declare const SHORTCUT_ACTIONS: readonly ["undo", "redo", "save", "duplicate", "delete", "escape"];
|
|
64
64
|
type ShortcutAction = (typeof SHORTCUT_ACTIONS)[number];
|
|
@@ -69,7 +69,7 @@ interface ReadyMessage {
|
|
|
69
69
|
id: string;
|
|
70
70
|
type: string;
|
|
71
71
|
bounds: BlockRect;
|
|
72
|
-
|
|
72
|
+
layoutRegion?: string;
|
|
73
73
|
}>;
|
|
74
74
|
schemas: Record<string, BlockSchema>;
|
|
75
75
|
blockMeta?: Record<string, BlockMeta>;
|
|
@@ -85,7 +85,7 @@ interface ClickMessage {
|
|
|
85
85
|
type: "cmssy:click";
|
|
86
86
|
blockId: string;
|
|
87
87
|
rect: BlockRect;
|
|
88
|
-
|
|
88
|
+
layoutRegion?: string;
|
|
89
89
|
}
|
|
90
90
|
interface DeselectMessage {
|
|
91
91
|
type: "cmssy:deselect";
|
|
@@ -128,7 +128,7 @@ interface PatchMessage {
|
|
|
128
128
|
content: Record<string, unknown>;
|
|
129
129
|
style?: Record<string, unknown>;
|
|
130
130
|
advanced?: Record<string, unknown>;
|
|
131
|
-
|
|
131
|
+
layoutRegion?: string;
|
|
132
132
|
}
|
|
133
133
|
interface ParentReadyMessage {
|
|
134
134
|
type: "cmssy:parent-ready";
|
package/dist/index.cjs
CHANGED
|
@@ -640,7 +640,7 @@ function blocksToMeta(blocks, defaults = {}) {
|
|
|
640
640
|
label: block.label ?? block.type,
|
|
641
641
|
...category ? { category } : {},
|
|
642
642
|
...block.icon ? { icon: block.icon } : {},
|
|
643
|
-
...block.
|
|
643
|
+
...block.layoutRegions ? { layoutRegions: block.layoutRegions } : {},
|
|
644
644
|
...block.description ? { description: block.description } : {}
|
|
645
645
|
};
|
|
646
646
|
}
|
|
@@ -660,7 +660,7 @@ function registryToManifestBlocks(schemas, blockMeta) {
|
|
|
660
660
|
...meta?.category ? { category: meta.category } : {},
|
|
661
661
|
...meta?.icon ? { icon: meta.icon } : {},
|
|
662
662
|
...meta?.description ? { description: meta.description } : {},
|
|
663
|
-
...meta?.
|
|
663
|
+
...meta?.layoutRegions?.length ? { layoutRegions: meta.layoutRegions } : {},
|
|
664
664
|
schema
|
|
665
665
|
};
|
|
666
666
|
});
|
|
@@ -764,7 +764,7 @@ function splitLocaleFromPath(path, siteLocales) {
|
|
|
764
764
|
var CMSSY_LOCALE_HEADER = "x-cmssy-locale";
|
|
765
765
|
|
|
766
766
|
// src/bridge/protocol.ts
|
|
767
|
-
var PROTOCOL_VERSION =
|
|
767
|
+
var PROTOCOL_VERSION = 3;
|
|
768
768
|
var SHORTCUT_ACTIONS = [
|
|
769
769
|
"undo",
|
|
770
770
|
"redo",
|
|
@@ -822,7 +822,7 @@ function parseEditorMessage(data, origin, expectedOrigin) {
|
|
|
822
822
|
protocolVersion: PROTOCOL_VERSION,
|
|
823
823
|
...isObject(data.style) ? { style: data.style } : {},
|
|
824
824
|
...isObject(data.advanced) ? { advanced: data.advanced } : {},
|
|
825
|
-
...typeof data.
|
|
825
|
+
...typeof data.layoutRegion === "string" ? { layoutRegion: data.layoutRegion } : {}
|
|
826
826
|
} : null;
|
|
827
827
|
case "cmssy:parent-ready":
|
|
828
828
|
return data.protocolVersion === PROTOCOL_VERSION ? { type: "cmssy:parent-ready", protocolVersion: PROTOCOL_VERSION } : null;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { A as AppToEditorMessage, B as BoundsMessage, C as ClickMessage, a as CmssyClient, b as CmssyConfig, c as CmssyCspOptions, d as CmssyEnvConfig, e as CmssyLayout, f as CmssyRegion, g as CmssyRegionOf, h as CmssyRegionSettings, i as CmssyRegionSettingsOf, j as CmssyTypedDocument, D as DEFAULT_CMSSY_EDITOR_ORIGINS, E as EditorToAppMessage, I as InvisibleBlock, k as InvisibleBlocksMessage, P as PROTOCOL_VERSION, l as ParentReadyMessage, m as PatchMessage, n as PostTarget, Q as QueryScopedOptions, R as ReadyMessage, S as SHORTCUT_ACTIONS, o as SelectMessage, p as ShortcutAction, q as ShortcutMessage, V as ViewportMessage, r as applyCmssyCsp, s as createCmssyClient, t as defineCmssyConfig, u as defineCmssyLayout, v as isProtocolCompatible, w as normalizeOrigin, x as parseEditorMessage, y as postToEditor, z as resolveEditorOrigin } from './csp-
|
|
1
|
+
export { A as AppToEditorMessage, B as BoundsMessage, C as ClickMessage, a as CmssyClient, b as CmssyConfig, c as CmssyCspOptions, d as CmssyEnvConfig, e as CmssyLayout, f as CmssyRegion, g as CmssyRegionOf, h as CmssyRegionSettings, i as CmssyRegionSettingsOf, j as CmssyTypedDocument, D as DEFAULT_CMSSY_EDITOR_ORIGINS, E as EditorToAppMessage, I as InvisibleBlock, k as InvisibleBlocksMessage, P as PROTOCOL_VERSION, l as ParentReadyMessage, m as PatchMessage, n as PostTarget, Q as QueryScopedOptions, R as ReadyMessage, S as SHORTCUT_ACTIONS, o as SelectMessage, p as ShortcutAction, q as ShortcutMessage, V as ViewportMessage, r as applyCmssyCsp, s as createCmssyClient, t as defineCmssyConfig, u as defineCmssyLayout, v as isProtocolCompatible, w as normalizeOrigin, x as parseEditorMessage, y as postToEditor, z as resolveEditorOrigin } from './csp-BHjoSZ2p.cjs';
|
|
2
2
|
export { C as CMSSY_LOCALE_HEADER, G as GraphqlRequestOptions, g as graphqlRequest, l as localizeHref, r as resolveCmssyLocale } from './locale-JyBHqpAQ.cjs';
|
|
3
3
|
export { C as CMSSY_RATE_LIMIT_WINDOW_MS, a as CMSSY_RETRY_MODES, b as CmssyRequestError, c as CmssyRetryMode, D as DEFAULT_CMSSY_API_URL, F as FetchLike, d as FetchLikeResponse, e as FetchPageOptions, R as RetryOption, f as RetryPolicy } from './content-client-65N8ZRq9.cjs';
|
|
4
4
|
import * as _cmssy_types from '@cmssy/types';
|
|
5
5
|
import { FieldOptions, TypedField, ResolvedMediaValue, PageRef, BlockPropsSchema, InferBlockContent, RelationMode, CmssyModelRecord, ResolvedMedia, BlockSchema, LayoutRegion, FieldDefinition, BlockMeta, VerifyCmssyWebhookOptions, CmssyWebhookEvent } from '@cmssy/types';
|
|
6
|
-
export { BlockMeta, BlockPropsSchema, BlockRect, BlockSchema, BuildBlockContextExtra, CmssyBlockAuthContext, CmssyBlockContext, CmssyBlockMember, CmssyBlockPage, CmssyBlockWorkspace, CmssyBranding, CmssyClientConfig, CmssyFormDefinition, CmssyFormField, CmssyFormSettings, CmssyFormSubmitResponse, CmssyLayoutGroup, CmssyLocaleContext, CmssyLocalizedValue, CmssyModelDefinition, CmssyModelRecord, CmssyPageData, CmssyPageMeta, CmssyPageSummary, CmssyRecordList, CmssySiteConfig, CmssyWebhookEvent, CmssyWebhookOrder, FieldCondition, FieldConditionGroup, FieldConditionLogic, FieldControl, FieldDefinition, FieldOptions, FieldType, InferBlockContent,
|
|
6
|
+
export { BlockMeta, BlockPropsSchema, BlockRect, BlockSchema, BuildBlockContextExtra, CmssyBlockAuthContext, CmssyBlockContext, CmssyBlockMember, CmssyBlockPage, CmssyBlockWorkspace, CmssyBranding, CmssyClientConfig, CmssyFormDefinition, CmssyFormField, CmssyFormSettings, CmssyFormSubmitResponse, CmssyLayoutGroup, CmssyLocaleContext, CmssyLocalizedValue, CmssyModelDefinition, CmssyModelRecord, CmssyPageData, CmssyPageMeta, CmssyPageSummary, CmssyRecordList, CmssySiteConfig, CmssyWebhookEvent, CmssyWebhookOrder, FieldCondition, FieldConditionGroup, FieldConditionLogic, FieldControl, FieldDefinition, FieldOptions, FieldType, InferBlockContent, LayoutRegion, LayoutRegionId, RawBlock, RawLayoutBlock, SubmitFormInput, TypedField, VerifyCmssyWebhookOptions, evaluateFieldConditionGroup } from '@cmssy/types';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Whether the content is guaranteed to carry the field. Only `required` says
|
|
@@ -84,7 +84,7 @@ interface BlockManifestSource {
|
|
|
84
84
|
label?: string;
|
|
85
85
|
category?: string;
|
|
86
86
|
icon?: string;
|
|
87
|
-
|
|
87
|
+
layoutRegions?: string[];
|
|
88
88
|
description?: string;
|
|
89
89
|
props: Record<string, FieldDefinition>;
|
|
90
90
|
}
|
|
@@ -94,7 +94,7 @@ interface BlockManifestBlock {
|
|
|
94
94
|
category?: string;
|
|
95
95
|
icon?: string;
|
|
96
96
|
description?: string;
|
|
97
|
-
|
|
97
|
+
layoutRegions?: string[];
|
|
98
98
|
schema: BlockSchema;
|
|
99
99
|
}
|
|
100
100
|
interface BlockManifest {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { A as AppToEditorMessage, B as BoundsMessage, C as ClickMessage, a as CmssyClient, b as CmssyConfig, c as CmssyCspOptions, d as CmssyEnvConfig, e as CmssyLayout, f as CmssyRegion, g as CmssyRegionOf, h as CmssyRegionSettings, i as CmssyRegionSettingsOf, j as CmssyTypedDocument, D as DEFAULT_CMSSY_EDITOR_ORIGINS, E as EditorToAppMessage, I as InvisibleBlock, k as InvisibleBlocksMessage, P as PROTOCOL_VERSION, l as ParentReadyMessage, m as PatchMessage, n as PostTarget, Q as QueryScopedOptions, R as ReadyMessage, S as SHORTCUT_ACTIONS, o as SelectMessage, p as ShortcutAction, q as ShortcutMessage, V as ViewportMessage, r as applyCmssyCsp, s as createCmssyClient, t as defineCmssyConfig, u as defineCmssyLayout, v as isProtocolCompatible, w as normalizeOrigin, x as parseEditorMessage, y as postToEditor, z as resolveEditorOrigin } from './csp-
|
|
1
|
+
export { A as AppToEditorMessage, B as BoundsMessage, C as ClickMessage, a as CmssyClient, b as CmssyConfig, c as CmssyCspOptions, d as CmssyEnvConfig, e as CmssyLayout, f as CmssyRegion, g as CmssyRegionOf, h as CmssyRegionSettings, i as CmssyRegionSettingsOf, j as CmssyTypedDocument, D as DEFAULT_CMSSY_EDITOR_ORIGINS, E as EditorToAppMessage, I as InvisibleBlock, k as InvisibleBlocksMessage, P as PROTOCOL_VERSION, l as ParentReadyMessage, m as PatchMessage, n as PostTarget, Q as QueryScopedOptions, R as ReadyMessage, S as SHORTCUT_ACTIONS, o as SelectMessage, p as ShortcutAction, q as ShortcutMessage, V as ViewportMessage, r as applyCmssyCsp, s as createCmssyClient, t as defineCmssyConfig, u as defineCmssyLayout, v as isProtocolCompatible, w as normalizeOrigin, x as parseEditorMessage, y as postToEditor, z as resolveEditorOrigin } from './csp-COFMUmsq.js';
|
|
2
2
|
export { C as CMSSY_LOCALE_HEADER, G as GraphqlRequestOptions, g as graphqlRequest, l as localizeHref, r as resolveCmssyLocale } from './locale-D9KI4bND.js';
|
|
3
3
|
export { C as CMSSY_RATE_LIMIT_WINDOW_MS, a as CMSSY_RETRY_MODES, b as CmssyRequestError, c as CmssyRetryMode, D as DEFAULT_CMSSY_API_URL, F as FetchLike, d as FetchLikeResponse, e as FetchPageOptions, R as RetryOption, f as RetryPolicy } from './content-client-65N8ZRq9.js';
|
|
4
4
|
import * as _cmssy_types from '@cmssy/types';
|
|
5
5
|
import { FieldOptions, TypedField, ResolvedMediaValue, PageRef, BlockPropsSchema, InferBlockContent, RelationMode, CmssyModelRecord, ResolvedMedia, BlockSchema, LayoutRegion, FieldDefinition, BlockMeta, VerifyCmssyWebhookOptions, CmssyWebhookEvent } from '@cmssy/types';
|
|
6
|
-
export { BlockMeta, BlockPropsSchema, BlockRect, BlockSchema, BuildBlockContextExtra, CmssyBlockAuthContext, CmssyBlockContext, CmssyBlockMember, CmssyBlockPage, CmssyBlockWorkspace, CmssyBranding, CmssyClientConfig, CmssyFormDefinition, CmssyFormField, CmssyFormSettings, CmssyFormSubmitResponse, CmssyLayoutGroup, CmssyLocaleContext, CmssyLocalizedValue, CmssyModelDefinition, CmssyModelRecord, CmssyPageData, CmssyPageMeta, CmssyPageSummary, CmssyRecordList, CmssySiteConfig, CmssyWebhookEvent, CmssyWebhookOrder, FieldCondition, FieldConditionGroup, FieldConditionLogic, FieldControl, FieldDefinition, FieldOptions, FieldType, InferBlockContent,
|
|
6
|
+
export { BlockMeta, BlockPropsSchema, BlockRect, BlockSchema, BuildBlockContextExtra, CmssyBlockAuthContext, CmssyBlockContext, CmssyBlockMember, CmssyBlockPage, CmssyBlockWorkspace, CmssyBranding, CmssyClientConfig, CmssyFormDefinition, CmssyFormField, CmssyFormSettings, CmssyFormSubmitResponse, CmssyLayoutGroup, CmssyLocaleContext, CmssyLocalizedValue, CmssyModelDefinition, CmssyModelRecord, CmssyPageData, CmssyPageMeta, CmssyPageSummary, CmssyRecordList, CmssySiteConfig, CmssyWebhookEvent, CmssyWebhookOrder, FieldCondition, FieldConditionGroup, FieldConditionLogic, FieldControl, FieldDefinition, FieldOptions, FieldType, InferBlockContent, LayoutRegion, LayoutRegionId, RawBlock, RawLayoutBlock, SubmitFormInput, TypedField, VerifyCmssyWebhookOptions, evaluateFieldConditionGroup } from '@cmssy/types';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Whether the content is guaranteed to carry the field. Only `required` says
|
|
@@ -84,7 +84,7 @@ interface BlockManifestSource {
|
|
|
84
84
|
label?: string;
|
|
85
85
|
category?: string;
|
|
86
86
|
icon?: string;
|
|
87
|
-
|
|
87
|
+
layoutRegions?: string[];
|
|
88
88
|
description?: string;
|
|
89
89
|
props: Record<string, FieldDefinition>;
|
|
90
90
|
}
|
|
@@ -94,7 +94,7 @@ interface BlockManifestBlock {
|
|
|
94
94
|
category?: string;
|
|
95
95
|
icon?: string;
|
|
96
96
|
description?: string;
|
|
97
|
-
|
|
97
|
+
layoutRegions?: string[];
|
|
98
98
|
schema: BlockSchema;
|
|
99
99
|
}
|
|
100
100
|
interface BlockManifest {
|
package/dist/index.js
CHANGED
|
@@ -639,7 +639,7 @@ function blocksToMeta(blocks, defaults = {}) {
|
|
|
639
639
|
label: block.label ?? block.type,
|
|
640
640
|
...category ? { category } : {},
|
|
641
641
|
...block.icon ? { icon: block.icon } : {},
|
|
642
|
-
...block.
|
|
642
|
+
...block.layoutRegions ? { layoutRegions: block.layoutRegions } : {},
|
|
643
643
|
...block.description ? { description: block.description } : {}
|
|
644
644
|
};
|
|
645
645
|
}
|
|
@@ -659,7 +659,7 @@ function registryToManifestBlocks(schemas, blockMeta) {
|
|
|
659
659
|
...meta?.category ? { category: meta.category } : {},
|
|
660
660
|
...meta?.icon ? { icon: meta.icon } : {},
|
|
661
661
|
...meta?.description ? { description: meta.description } : {},
|
|
662
|
-
...meta?.
|
|
662
|
+
...meta?.layoutRegions?.length ? { layoutRegions: meta.layoutRegions } : {},
|
|
663
663
|
schema
|
|
664
664
|
};
|
|
665
665
|
});
|
|
@@ -763,7 +763,7 @@ function splitLocaleFromPath(path, siteLocales) {
|
|
|
763
763
|
var CMSSY_LOCALE_HEADER = "x-cmssy-locale";
|
|
764
764
|
|
|
765
765
|
// src/bridge/protocol.ts
|
|
766
|
-
var PROTOCOL_VERSION =
|
|
766
|
+
var PROTOCOL_VERSION = 3;
|
|
767
767
|
var SHORTCUT_ACTIONS = [
|
|
768
768
|
"undo",
|
|
769
769
|
"redo",
|
|
@@ -821,7 +821,7 @@ function parseEditorMessage(data, origin, expectedOrigin) {
|
|
|
821
821
|
protocolVersion: PROTOCOL_VERSION,
|
|
822
822
|
...isObject(data.style) ? { style: data.style } : {},
|
|
823
823
|
...isObject(data.advanced) ? { advanced: data.advanced } : {},
|
|
824
|
-
...typeof data.
|
|
824
|
+
...typeof data.layoutRegion === "string" ? { layoutRegion: data.layoutRegion } : {}
|
|
825
825
|
} : null;
|
|
826
826
|
case "cmssy:parent-ready":
|
|
827
827
|
return data.protocolVersion === PROTOCOL_VERSION ? { type: "cmssy:parent-ready", protocolVersion: PROTOCOL_VERSION } : null;
|
package/dist/internal.cjs
CHANGED
|
@@ -257,7 +257,7 @@ var PUBLIC_PAGE_LAYOUTS_QUERY = `query PublicPageLayouts($workspaceSlug: String!
|
|
|
257
257
|
public {
|
|
258
258
|
page {
|
|
259
259
|
layouts(workspaceSlug: $workspaceSlug, pageSlug: $pageSlug, previewSecret: $previewSecret) {
|
|
260
|
-
|
|
260
|
+
region
|
|
261
261
|
blocks { id type content style advanced order isActive }
|
|
262
262
|
settings
|
|
263
263
|
}
|
|
@@ -478,7 +478,7 @@ var FORM_QUERY = `query PublicForm($formId: ID!) {
|
|
|
478
478
|
}
|
|
479
479
|
settings {
|
|
480
480
|
actionType submitButtonLabel successMessage errorMessage
|
|
481
|
-
redirectUrl requireLogin
|
|
481
|
+
redirectUrl requireLogin
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
484
|
}
|
|
@@ -1282,7 +1282,7 @@ var CMSSY_DELIVERY_OPERATIONS = [
|
|
|
1282
1282
|
document: PUBLIC_PAGE_META_QUERY
|
|
1283
1283
|
},
|
|
1284
1284
|
{
|
|
1285
|
-
purpose: "Header, footer and the other layout
|
|
1285
|
+
purpose: "Header, footer and the other layout regions for a page.",
|
|
1286
1286
|
document: PUBLIC_PAGE_LAYOUTS_QUERY
|
|
1287
1287
|
},
|
|
1288
1288
|
{
|
package/dist/internal.d.cts
CHANGED
|
@@ -3,14 +3,14 @@ import { CmssyFormDefinition, BuildBlockContextExtra, CmssyBlockContext, CmssyCl
|
|
|
3
3
|
export { CmssySiteLocales } from '@cmssy/types';
|
|
4
4
|
import { G as GraphqlRequestOptions } from './locale-JyBHqpAQ.cjs';
|
|
5
5
|
export { C as CMSSY_LOCALE_HEADER, a as localeForPath, b as localeForPathname, l as localizeHref, c as resolveSiteLocales, s as splitCmssyLocale, d as splitLocaleFromPath } from './locale-JyBHqpAQ.cjs';
|
|
6
|
-
import { Q as QueryScopedOptions } from './csp-
|
|
7
|
-
export { F as cmssyCspHeaders, G as isDevelopment, H as layoutRegionIds, J as resolveInitialTarget, K as toCspOrigin } from './csp-
|
|
6
|
+
import { Q as QueryScopedOptions } from './csp-BHjoSZ2p.cjs';
|
|
7
|
+
export { F as cmssyCspHeaders, G as isDevelopment, H as layoutRegionIds, J as resolveInitialTarget, K as toCspOrigin } from './csp-BHjoSZ2p.cjs';
|
|
8
8
|
export { localizedPath } from './internal/locale.cjs';
|
|
9
9
|
|
|
10
10
|
declare const SITE_CONFIG_QUERY = "query PublicSiteConfig($workspaceSlug: String!) {\n public {\n siteConfig(workspaceSlug: $workspaceSlug) {\n id\n workspaceId\n siteName\n defaultLanguage\n enabledLanguages\n enabledFeatures\n notFoundPageId\n previewUrl\n branding {\n brandName\n logoUrl\n logoDarkUrl\n faviconUrl\n ogImageUrl\n }\n }\n }\n}";
|
|
11
11
|
declare const MODEL_DEFINITIONS_QUERY = "query PublicModelDefinitions($workspaceId: String!) {\n public {\n model {\n definitions(workspaceId: $workspaceId) {\n id name slug description icon color displayField recordCount\n }\n }\n }\n}";
|
|
12
12
|
declare const MODEL_RECORDS_QUERY = "query PublicModelRecords($workspaceId: String!, $modelSlug: String!, $filter: JSON, $sort: String, $locale: String, $limit: Int, $offset: Int, $populate: [String!]) {\n public {\n model {\n records(workspaceId: $workspaceId, modelSlug: $modelSlug, filter: $filter, sort: $sort, locale: $locale, limit: $limit, offset: $offset, populate: $populate) {\n items { id modelId data status createdAt updatedAt }\n total\n hasMore\n }\n }\n }\n}";
|
|
13
|
-
declare const FORM_QUERY = "query PublicForm($formId: ID!) {\n public {\n form {\n get(formId: $formId) {\n id\n name\n slug\n description\n fields {\n id name fieldType label placeholder helpText\n defaultValue width order showWhen requiredWhen\n options { value label disabled }\n validation { required minLength maxLength minValue maxValue pattern customMessage }\n }\n settings {\n actionType submitButtonLabel successMessage errorMessage\n redirectUrl requireLogin
|
|
13
|
+
declare const FORM_QUERY = "query PublicForm($formId: ID!) {\n public {\n form {\n get(formId: $formId) {\n id\n name\n slug\n description\n fields {\n id name fieldType label placeholder helpText\n defaultValue width order showWhen requiredWhen\n options { value label disabled }\n validation { required minLength maxLength minValue maxValue pattern customMessage }\n }\n settings {\n actionType submitButtonLabel successMessage errorMessage\n redirectUrl requireLogin\n }\n }\n }\n }\n}";
|
|
14
14
|
declare const SUBMIT_FORM_MUTATION = "mutation SubmitForm($formId: ID!, $input: SubmitFormInput!) {\n public {\n form {\n submit(formId: $formId, input: $input) {\n success message submissionId redirectUrl accessToken customer\n }\n }\n }\n}";
|
|
15
15
|
|
|
16
16
|
declare function buildBlockContext(locale: string, defaultLocale: string, enabledLocales?: string[], isPreview?: boolean, forms?: Record<string, CmssyFormDefinition>, extra?: BuildBlockContextExtra): CmssyBlockContext;
|
package/dist/internal.d.ts
CHANGED
|
@@ -3,14 +3,14 @@ import { CmssyFormDefinition, BuildBlockContextExtra, CmssyBlockContext, CmssyCl
|
|
|
3
3
|
export { CmssySiteLocales } from '@cmssy/types';
|
|
4
4
|
import { G as GraphqlRequestOptions } from './locale-D9KI4bND.js';
|
|
5
5
|
export { C as CMSSY_LOCALE_HEADER, a as localeForPath, b as localeForPathname, l as localizeHref, c as resolveSiteLocales, s as splitCmssyLocale, d as splitLocaleFromPath } from './locale-D9KI4bND.js';
|
|
6
|
-
import { Q as QueryScopedOptions } from './csp-
|
|
7
|
-
export { F as cmssyCspHeaders, G as isDevelopment, H as layoutRegionIds, J as resolveInitialTarget, K as toCspOrigin } from './csp-
|
|
6
|
+
import { Q as QueryScopedOptions } from './csp-COFMUmsq.js';
|
|
7
|
+
export { F as cmssyCspHeaders, G as isDevelopment, H as layoutRegionIds, J as resolveInitialTarget, K as toCspOrigin } from './csp-COFMUmsq.js';
|
|
8
8
|
export { localizedPath } from './internal/locale.js';
|
|
9
9
|
|
|
10
10
|
declare const SITE_CONFIG_QUERY = "query PublicSiteConfig($workspaceSlug: String!) {\n public {\n siteConfig(workspaceSlug: $workspaceSlug) {\n id\n workspaceId\n siteName\n defaultLanguage\n enabledLanguages\n enabledFeatures\n notFoundPageId\n previewUrl\n branding {\n brandName\n logoUrl\n logoDarkUrl\n faviconUrl\n ogImageUrl\n }\n }\n }\n}";
|
|
11
11
|
declare const MODEL_DEFINITIONS_QUERY = "query PublicModelDefinitions($workspaceId: String!) {\n public {\n model {\n definitions(workspaceId: $workspaceId) {\n id name slug description icon color displayField recordCount\n }\n }\n }\n}";
|
|
12
12
|
declare const MODEL_RECORDS_QUERY = "query PublicModelRecords($workspaceId: String!, $modelSlug: String!, $filter: JSON, $sort: String, $locale: String, $limit: Int, $offset: Int, $populate: [String!]) {\n public {\n model {\n records(workspaceId: $workspaceId, modelSlug: $modelSlug, filter: $filter, sort: $sort, locale: $locale, limit: $limit, offset: $offset, populate: $populate) {\n items { id modelId data status createdAt updatedAt }\n total\n hasMore\n }\n }\n }\n}";
|
|
13
|
-
declare const FORM_QUERY = "query PublicForm($formId: ID!) {\n public {\n form {\n get(formId: $formId) {\n id\n name\n slug\n description\n fields {\n id name fieldType label placeholder helpText\n defaultValue width order showWhen requiredWhen\n options { value label disabled }\n validation { required minLength maxLength minValue maxValue pattern customMessage }\n }\n settings {\n actionType submitButtonLabel successMessage errorMessage\n redirectUrl requireLogin
|
|
13
|
+
declare const FORM_QUERY = "query PublicForm($formId: ID!) {\n public {\n form {\n get(formId: $formId) {\n id\n name\n slug\n description\n fields {\n id name fieldType label placeholder helpText\n defaultValue width order showWhen requiredWhen\n options { value label disabled }\n validation { required minLength maxLength minValue maxValue pattern customMessage }\n }\n settings {\n actionType submitButtonLabel successMessage errorMessage\n redirectUrl requireLogin\n }\n }\n }\n }\n}";
|
|
14
14
|
declare const SUBMIT_FORM_MUTATION = "mutation SubmitForm($formId: ID!, $input: SubmitFormInput!) {\n public {\n form {\n submit(formId: $formId, input: $input) {\n success message submissionId redirectUrl accessToken customer\n }\n }\n }\n}";
|
|
15
15
|
|
|
16
16
|
declare function buildBlockContext(locale: string, defaultLocale: string, enabledLocales?: string[], isPreview?: boolean, forms?: Record<string, CmssyFormDefinition>, extra?: BuildBlockContextExtra): CmssyBlockContext;
|
package/dist/internal.js
CHANGED
|
@@ -255,7 +255,7 @@ var PUBLIC_PAGE_LAYOUTS_QUERY = `query PublicPageLayouts($workspaceSlug: String!
|
|
|
255
255
|
public {
|
|
256
256
|
page {
|
|
257
257
|
layouts(workspaceSlug: $workspaceSlug, pageSlug: $pageSlug, previewSecret: $previewSecret) {
|
|
258
|
-
|
|
258
|
+
region
|
|
259
259
|
blocks { id type content style advanced order isActive }
|
|
260
260
|
settings
|
|
261
261
|
}
|
|
@@ -476,7 +476,7 @@ var FORM_QUERY = `query PublicForm($formId: ID!) {
|
|
|
476
476
|
}
|
|
477
477
|
settings {
|
|
478
478
|
actionType submitButtonLabel successMessage errorMessage
|
|
479
|
-
redirectUrl requireLogin
|
|
479
|
+
redirectUrl requireLogin
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
482
|
}
|
|
@@ -1280,7 +1280,7 @@ var CMSSY_DELIVERY_OPERATIONS = [
|
|
|
1280
1280
|
document: PUBLIC_PAGE_META_QUERY
|
|
1281
1281
|
},
|
|
1282
1282
|
{
|
|
1283
|
-
purpose: "Header, footer and the other layout
|
|
1283
|
+
purpose: "Header, footer and the other layout regions for a page.",
|
|
1284
1284
|
document: PUBLIC_PAGE_LAYOUTS_QUERY
|
|
1285
1285
|
},
|
|
1286
1286
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cmssy/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "16.0.0",
|
|
4
4
|
"description": "Framework-agnostic cmssy gateway: GraphQL client, block/field system, editor protocol. No React, no Next.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cmssy",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"vitest": "^2.1.0"
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|
|
90
|
-
"@cmssy/types": "0.
|
|
90
|
+
"@cmssy/types": "0.41.0",
|
|
91
91
|
"jose": "^6.2.3"
|
|
92
92
|
},
|
|
93
93
|
"scripts": {
|