@cmssy/core 12.6.0 → 12.7.1

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.
@@ -85,7 +85,16 @@ interface ShortcutMessage {
85
85
  protocolVersion: number;
86
86
  action: ShortcutAction;
87
87
  }
88
- type AppToEditorMessage = ReadyMessage | BoundsMessage | ClickMessage | DeselectMessage | MoveMessage | DragIndexMessage | ShortcutMessage;
88
+ interface InvisibleBlock {
89
+ blockId: string;
90
+ blockType: string;
91
+ }
92
+ interface InvisibleBlocksMessage {
93
+ type: "cmssy:invisible-blocks";
94
+ protocolVersion: number;
95
+ blocks: InvisibleBlock[];
96
+ }
97
+ type AppToEditorMessage = ReadyMessage | BoundsMessage | ClickMessage | DeselectMessage | MoveMessage | DragIndexMessage | ShortcutMessage | InvisibleBlocksMessage;
89
98
  interface SelectMessage {
90
99
  type: "cmssy:select";
91
100
  protocolVersion: number;
@@ -158,4 +167,4 @@ declare function toCspOrigin(origin: string): string;
158
167
  declare function cmssyCspHeaders(options: CmssyCspOptions): Record<string, string>;
159
168
  declare function applyCmssyCsp<T extends MutableHeaders>(response: T, options: CmssyCspOptions): T;
160
169
 
161
- export { type AppToEditorMessage as A, type BoundsMessage as B, type ClickMessage as C, DEFAULT_CMSSY_EDITOR_ORIGINS as D, type EditorToAppMessage as E, PROTOCOL_VERSION as P, type QueryScopedOptions as Q, type ReadyMessage as R, SHORTCUT_ACTIONS as S, type CmssyClient as a, type CmssyConfig as b, type CmssyCspOptions as c, type CmssyEnvConfig as d, type CmssyTypedDocument as e, type ParentReadyMessage as f, type PatchMessage as g, type PostTarget as h, type SelectMessage as i, type ShortcutAction as j, type ShortcutMessage as k, applyCmssyCsp as l, createCmssyClient as m, defineCmssyConfig as n, isProtocolCompatible as o, normalizeOrigin as p, parseEditorMessage as q, postToEditor as r, resolveEditorOrigin as s, cmssyCspHeaders as t, isDevelopment as u, resolveInitialTarget as v, toCspOrigin as w };
170
+ export { type AppToEditorMessage as A, type BoundsMessage as B, type ClickMessage as C, DEFAULT_CMSSY_EDITOR_ORIGINS as D, type EditorToAppMessage as E, type InvisibleBlock as I, PROTOCOL_VERSION as P, type QueryScopedOptions as Q, type ReadyMessage as R, SHORTCUT_ACTIONS as S, type CmssyClient as a, type CmssyConfig as b, type CmssyCspOptions as c, type CmssyEnvConfig as d, type CmssyTypedDocument as e, type InvisibleBlocksMessage as f, type ParentReadyMessage as g, type PatchMessage as h, type PostTarget as i, type SelectMessage as j, type ShortcutAction as k, type ShortcutMessage as l, applyCmssyCsp as m, createCmssyClient as n, defineCmssyConfig as o, isProtocolCompatible as p, normalizeOrigin as q, parseEditorMessage as r, postToEditor as s, resolveEditorOrigin as t, cmssyCspHeaders as u, isDevelopment as v, resolveInitialTarget as w, toCspOrigin as x };
@@ -85,7 +85,16 @@ interface ShortcutMessage {
85
85
  protocolVersion: number;
86
86
  action: ShortcutAction;
87
87
  }
88
- type AppToEditorMessage = ReadyMessage | BoundsMessage | ClickMessage | DeselectMessage | MoveMessage | DragIndexMessage | ShortcutMessage;
88
+ interface InvisibleBlock {
89
+ blockId: string;
90
+ blockType: string;
91
+ }
92
+ interface InvisibleBlocksMessage {
93
+ type: "cmssy:invisible-blocks";
94
+ protocolVersion: number;
95
+ blocks: InvisibleBlock[];
96
+ }
97
+ type AppToEditorMessage = ReadyMessage | BoundsMessage | ClickMessage | DeselectMessage | MoveMessage | DragIndexMessage | ShortcutMessage | InvisibleBlocksMessage;
89
98
  interface SelectMessage {
90
99
  type: "cmssy:select";
91
100
  protocolVersion: number;
@@ -158,4 +167,4 @@ declare function toCspOrigin(origin: string): string;
158
167
  declare function cmssyCspHeaders(options: CmssyCspOptions): Record<string, string>;
159
168
  declare function applyCmssyCsp<T extends MutableHeaders>(response: T, options: CmssyCspOptions): T;
160
169
 
161
- export { type AppToEditorMessage as A, type BoundsMessage as B, type ClickMessage as C, DEFAULT_CMSSY_EDITOR_ORIGINS as D, type EditorToAppMessage as E, PROTOCOL_VERSION as P, type QueryScopedOptions as Q, type ReadyMessage as R, SHORTCUT_ACTIONS as S, type CmssyClient as a, type CmssyConfig as b, type CmssyCspOptions as c, type CmssyEnvConfig as d, type CmssyTypedDocument as e, type ParentReadyMessage as f, type PatchMessage as g, type PostTarget as h, type SelectMessage as i, type ShortcutAction as j, type ShortcutMessage as k, applyCmssyCsp as l, createCmssyClient as m, defineCmssyConfig as n, isProtocolCompatible as o, normalizeOrigin as p, parseEditorMessage as q, postToEditor as r, resolveEditorOrigin as s, cmssyCspHeaders as t, isDevelopment as u, resolveInitialTarget as v, toCspOrigin as w };
170
+ export { type AppToEditorMessage as A, type BoundsMessage as B, type ClickMessage as C, DEFAULT_CMSSY_EDITOR_ORIGINS as D, type EditorToAppMessage as E, type InvisibleBlock as I, PROTOCOL_VERSION as P, type QueryScopedOptions as Q, type ReadyMessage as R, SHORTCUT_ACTIONS as S, type CmssyClient as a, type CmssyConfig as b, type CmssyCspOptions as c, type CmssyEnvConfig as d, type CmssyTypedDocument as e, type InvisibleBlocksMessage as f, type ParentReadyMessage as g, type PatchMessage as h, type PostTarget as i, type SelectMessage as j, type ShortcutAction as k, type ShortcutMessage as l, applyCmssyCsp as m, createCmssyClient as n, defineCmssyConfig as o, isProtocolCompatible as p, normalizeOrigin as q, parseEditorMessage as r, postToEditor as s, resolveEditorOrigin as t, cmssyCspHeaders as u, isDevelopment as v, resolveInitialTarget as w, toCspOrigin as x };
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
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 CmssyTypedDocument, D as DEFAULT_CMSSY_EDITOR_ORIGINS, E as EditorToAppMessage, P as PROTOCOL_VERSION, f as ParentReadyMessage, g as PatchMessage, h as PostTarget, Q as QueryScopedOptions, R as ReadyMessage, S as SHORTCUT_ACTIONS, i as SelectMessage, j as ShortcutAction, k as ShortcutMessage, l as applyCmssyCsp, m as createCmssyClient, n as defineCmssyConfig, o as isProtocolCompatible, p as normalizeOrigin, q as parseEditorMessage, r as postToEditor, s as resolveEditorOrigin } from './csp-Dhzj8NrW.cjs';
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 CmssyTypedDocument, D as DEFAULT_CMSSY_EDITOR_ORIGINS, E as EditorToAppMessage, I as InvisibleBlock, f as InvisibleBlocksMessage, P as PROTOCOL_VERSION, g as ParentReadyMessage, h as PatchMessage, i as PostTarget, Q as QueryScopedOptions, R as ReadyMessage, S as SHORTCUT_ACTIONS, j as SelectMessage, k as ShortcutAction, l as ShortcutMessage, m as applyCmssyCsp, n as createCmssyClient, o as defineCmssyConfig, p as isProtocolCompatible, q as normalizeOrigin, r as parseEditorMessage, s as postToEditor, t as resolveEditorOrigin } from './csp-BsHNLfJ1.cjs';
2
2
  export { C as CMSSY_LOCALE_HEADER, G as GraphqlRequestOptions, g as graphqlRequest, l as localizeHref, r as resolveCmssyLocale } from './locale-BS61R-fF.cjs';
3
3
  export { C as CmssyRequestError, D as DEFAULT_CMSSY_API_URL, F as FetchLike, a as FetchLikeResponse, b as FetchPageOptions, R as RetryPolicy } from './content-client-BPpRfq0h.cjs';
4
4
  import * as _cmssy_types from '@cmssy/types';
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
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 CmssyTypedDocument, D as DEFAULT_CMSSY_EDITOR_ORIGINS, E as EditorToAppMessage, P as PROTOCOL_VERSION, f as ParentReadyMessage, g as PatchMessage, h as PostTarget, Q as QueryScopedOptions, R as ReadyMessage, S as SHORTCUT_ACTIONS, i as SelectMessage, j as ShortcutAction, k as ShortcutMessage, l as applyCmssyCsp, m as createCmssyClient, n as defineCmssyConfig, o as isProtocolCompatible, p as normalizeOrigin, q as parseEditorMessage, r as postToEditor, s as resolveEditorOrigin } from './csp-bnRXSElG.js';
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 CmssyTypedDocument, D as DEFAULT_CMSSY_EDITOR_ORIGINS, E as EditorToAppMessage, I as InvisibleBlock, f as InvisibleBlocksMessage, P as PROTOCOL_VERSION, g as ParentReadyMessage, h as PatchMessage, i as PostTarget, Q as QueryScopedOptions, R as ReadyMessage, S as SHORTCUT_ACTIONS, j as SelectMessage, k as ShortcutAction, l as ShortcutMessage, m as applyCmssyCsp, n as createCmssyClient, o as defineCmssyConfig, p as isProtocolCompatible, q as normalizeOrigin, r as parseEditorMessage, s as postToEditor, t as resolveEditorOrigin } from './csp-DrkfGO99.js';
2
2
  export { C as CMSSY_LOCALE_HEADER, G as GraphqlRequestOptions, g as graphqlRequest, l as localizeHref, r as resolveCmssyLocale } from './locale-DQZ80cew.js';
3
3
  export { C as CmssyRequestError, D as DEFAULT_CMSSY_API_URL, F as FetchLike, a as FetchLikeResponse, b as FetchPageOptions, R as RetryPolicy } from './content-client-BPpRfq0h.js';
4
4
  import * as _cmssy_types from '@cmssy/types';
@@ -3,8 +3,8 @@ import { CmssyFormDefinition, BuildBlockContextExtra, CmssyBlockContext, CmssyCl
3
3
  export { CmssySiteLocales } from '@cmssy/types';
4
4
  import { G as GraphqlRequestOptions } from './locale-BS61R-fF.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-BS61R-fF.cjs';
6
- import { Q as QueryScopedOptions } from './csp-Dhzj8NrW.cjs';
7
- export { t as cmssyCspHeaders, u as isDevelopment, v as resolveInitialTarget, w as toCspOrigin } from './csp-Dhzj8NrW.cjs';
6
+ import { Q as QueryScopedOptions } from './csp-BsHNLfJ1.cjs';
7
+ export { u as cmssyCspHeaders, v as isDevelopment, w as resolveInitialTarget, x as toCspOrigin } from './csp-BsHNLfJ1.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}";
@@ -3,8 +3,8 @@ import { CmssyFormDefinition, BuildBlockContextExtra, CmssyBlockContext, CmssyCl
3
3
  export { CmssySiteLocales } from '@cmssy/types';
4
4
  import { G as GraphqlRequestOptions } from './locale-DQZ80cew.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-DQZ80cew.js';
6
- import { Q as QueryScopedOptions } from './csp-bnRXSElG.js';
7
- export { t as cmssyCspHeaders, u as isDevelopment, v as resolveInitialTarget, w as toCspOrigin } from './csp-bnRXSElG.js';
6
+ import { Q as QueryScopedOptions } from './csp-DrkfGO99.js';
7
+ export { u as cmssyCspHeaders, v as isDevelopment, w as resolveInitialTarget, x as toCspOrigin } from './csp-DrkfGO99.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}";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmssy/core",
3
- "version": "12.6.0",
3
+ "version": "12.7.1",
4
4
  "description": "Framework-agnostic cmssy gateway: GraphQL client, block/field system, editor protocol. No React, no Next.",
5
5
  "keywords": [
6
6
  "cmssy",