@cmssy/core 19.31.0 → 19.32.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.
@@ -179,9 +179,11 @@ interface ShortcutMessage {
179
179
  protocolVersion: number;
180
180
  action: ShortcutAction;
181
181
  }
182
+ type InvisibleReason = "empty" | "transparent";
182
183
  interface InvisibleBlock {
183
184
  blockId: string;
184
185
  blockType: string;
186
+ reason: InvisibleReason;
185
187
  }
186
188
  interface InvisibleBlocksMessage {
187
189
  type: "cmssy:invisible-blocks";
@@ -267,4 +269,4 @@ declare function toCspOrigin(origin: string): string;
267
269
  declare function cmssyCspHeaders(options: CmssyCspOptions): Record<string, string>;
268
270
  declare function applyCmssyCsp<T extends MutableHeaders>(response: T, options: CmssyCspOptions): T;
269
271
 
270
- export { type AppToEditorMessage as A, type BoundsMessage as B, type CmssyRecordSort as C, DEFAULT_CMSSY_EDITOR_ORIGINS as D, type EditorToAppMessage as E, FORM_QUERY as F, type ViewportMessage as G, applyCmssyCsp as H, type InvisibleBlock as I, createCmssyClient as J, defineCmssyConfig as K, defineCmssyLayout as L, MODEL_DEFINITIONS_QUERY as M, isProtocolCompatible as N, normalizeOrigin as O, PROTOCOL_VERSION as P, type QueryScopedOptions as Q, type ReadyMessage as R, SITE_CONFIG_QUERY as S, parseEditorMessage as T, postToEditor as U, type VariablesParameter as V, resolveEditorOrigin as W, MODEL_RECORDS_QUERY as a, SUBMIT_FORM_MUTATION as b, cmssyCspHeaders as c, type ClickMessage as d, type CmssyClient as e, type CmssyConfig as f, type CmssyCspOptions as g, type CmssyEnvConfig as h, isDevelopment as i, type CmssyLayout as j, type CmssyRegion as k, layoutRegionIds as l, type CmssyRegionOf as m, type CmssyRegionSettings as n, type CmssyRegionSettingsOf as o, type InvisibleBlocksMessage as p, type ParentReadyMessage as q, resolveInitialTarget as r, type PatchMessage as s, toCspOrigin as t, type PostTarget as u, SHORTCUT_ACTIONS as v, type ScopedVariables as w, type SelectMessage as x, type ShortcutAction as y, type ShortcutMessage as z };
272
+ export { type AppToEditorMessage as A, type BoundsMessage as B, type CmssyRecordSort as C, DEFAULT_CMSSY_EDITOR_ORIGINS as D, type EditorToAppMessage as E, FORM_QUERY as F, type ShortcutMessage as G, type ViewportMessage as H, type InvisibleBlock as I, applyCmssyCsp as J, createCmssyClient as K, defineCmssyConfig as L, MODEL_DEFINITIONS_QUERY as M, defineCmssyLayout as N, isProtocolCompatible as O, PROTOCOL_VERSION as P, type QueryScopedOptions as Q, type ReadyMessage as R, SITE_CONFIG_QUERY as S, normalizeOrigin as T, parseEditorMessage as U, type VariablesParameter as V, postToEditor as W, resolveEditorOrigin as X, MODEL_RECORDS_QUERY as a, SUBMIT_FORM_MUTATION as b, cmssyCspHeaders as c, type ClickMessage as d, type CmssyClient as e, type CmssyConfig as f, type CmssyCspOptions as g, type CmssyEnvConfig as h, isDevelopment as i, type CmssyLayout as j, type CmssyRegion as k, layoutRegionIds as l, type CmssyRegionOf as m, type CmssyRegionSettings as n, type CmssyRegionSettingsOf as o, type InvisibleBlocksMessage as p, type InvisibleReason as q, resolveInitialTarget as r, type ParentReadyMessage as s, toCspOrigin as t, type PatchMessage as u, type PostTarget as v, SHORTCUT_ACTIONS as w, type ScopedVariables as x, type SelectMessage as y, type ShortcutAction as z };
@@ -179,9 +179,11 @@ interface ShortcutMessage {
179
179
  protocolVersion: number;
180
180
  action: ShortcutAction;
181
181
  }
182
+ type InvisibleReason = "empty" | "transparent";
182
183
  interface InvisibleBlock {
183
184
  blockId: string;
184
185
  blockType: string;
186
+ reason: InvisibleReason;
185
187
  }
186
188
  interface InvisibleBlocksMessage {
187
189
  type: "cmssy:invisible-blocks";
@@ -267,4 +269,4 @@ declare function toCspOrigin(origin: string): string;
267
269
  declare function cmssyCspHeaders(options: CmssyCspOptions): Record<string, string>;
268
270
  declare function applyCmssyCsp<T extends MutableHeaders>(response: T, options: CmssyCspOptions): T;
269
271
 
270
- export { type AppToEditorMessage as A, type BoundsMessage as B, type CmssyRecordSort as C, DEFAULT_CMSSY_EDITOR_ORIGINS as D, type EditorToAppMessage as E, FORM_QUERY as F, type ViewportMessage as G, applyCmssyCsp as H, type InvisibleBlock as I, createCmssyClient as J, defineCmssyConfig as K, defineCmssyLayout as L, MODEL_DEFINITIONS_QUERY as M, isProtocolCompatible as N, normalizeOrigin as O, PROTOCOL_VERSION as P, type QueryScopedOptions as Q, type ReadyMessage as R, SITE_CONFIG_QUERY as S, parseEditorMessage as T, postToEditor as U, type VariablesParameter as V, resolveEditorOrigin as W, MODEL_RECORDS_QUERY as a, SUBMIT_FORM_MUTATION as b, cmssyCspHeaders as c, type ClickMessage as d, type CmssyClient as e, type CmssyConfig as f, type CmssyCspOptions as g, type CmssyEnvConfig as h, isDevelopment as i, type CmssyLayout as j, type CmssyRegion as k, layoutRegionIds as l, type CmssyRegionOf as m, type CmssyRegionSettings as n, type CmssyRegionSettingsOf as o, type InvisibleBlocksMessage as p, type ParentReadyMessage as q, resolveInitialTarget as r, type PatchMessage as s, toCspOrigin as t, type PostTarget as u, SHORTCUT_ACTIONS as v, type ScopedVariables as w, type SelectMessage as x, type ShortcutAction as y, type ShortcutMessage as z };
272
+ export { type AppToEditorMessage as A, type BoundsMessage as B, type CmssyRecordSort as C, DEFAULT_CMSSY_EDITOR_ORIGINS as D, type EditorToAppMessage as E, FORM_QUERY as F, type ShortcutMessage as G, type ViewportMessage as H, type InvisibleBlock as I, applyCmssyCsp as J, createCmssyClient as K, defineCmssyConfig as L, MODEL_DEFINITIONS_QUERY as M, defineCmssyLayout as N, isProtocolCompatible as O, PROTOCOL_VERSION as P, type QueryScopedOptions as Q, type ReadyMessage as R, SITE_CONFIG_QUERY as S, normalizeOrigin as T, parseEditorMessage as U, type VariablesParameter as V, postToEditor as W, resolveEditorOrigin as X, MODEL_RECORDS_QUERY as a, SUBMIT_FORM_MUTATION as b, cmssyCspHeaders as c, type ClickMessage as d, type CmssyClient as e, type CmssyConfig as f, type CmssyCspOptions as g, type CmssyEnvConfig as h, isDevelopment as i, type CmssyLayout as j, type CmssyRegion as k, layoutRegionIds as l, type CmssyRegionOf as m, type CmssyRegionSettings as n, type CmssyRegionSettingsOf as o, type InvisibleBlocksMessage as p, type InvisibleReason as q, resolveInitialTarget as r, type ParentReadyMessage as s, toCspOrigin as t, type PatchMessage as u, type PostTarget as v, SHORTCUT_ACTIONS as w, type ScopedVariables as x, type SelectMessage as y, type ShortcutAction as z };
package/dist/index.cjs CHANGED
@@ -225,7 +225,7 @@ function documentText(document2) {
225
225
  }
226
226
 
227
227
  // src/version.ts
228
- var CMSSY_CORE_VERSION = "19.31.0" ;
228
+ var CMSSY_CORE_VERSION = "19.32.0" ;
229
229
  var CMSSY_USER_AGENT = `@cmssy/core/${CMSSY_CORE_VERSION}`;
230
230
 
231
231
  // src/data/http.ts
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { C as CmssyRecordSort } from './csp-CDQ84XTt.cjs';
2
- export { A as AppToEditorMessage, B as BoundsMessage, d as ClickMessage, e as CmssyClient, f as CmssyConfig, g as CmssyCspOptions, h as CmssyEnvConfig, j as CmssyLayout, k as CmssyRegion, m as CmssyRegionOf, n as CmssyRegionSettings, o as CmssyRegionSettingsOf, D as DEFAULT_CMSSY_EDITOR_ORIGINS, E as EditorToAppMessage, I as InvisibleBlock, p as InvisibleBlocksMessage, P as PROTOCOL_VERSION, q as ParentReadyMessage, s as PatchMessage, u as PostTarget, Q as QueryScopedOptions, R as ReadyMessage, v as SHORTCUT_ACTIONS, w as ScopedVariables, x as SelectMessage, y as ShortcutAction, z as ShortcutMessage, V as VariablesParameter, G as ViewportMessage, H as applyCmssyCsp, J as createCmssyClient, K as defineCmssyConfig, L as defineCmssyLayout, N as isProtocolCompatible, O as normalizeOrigin, T as parseEditorMessage, U as postToEditor, W as resolveEditorOrigin } from './csp-CDQ84XTt.cjs';
1
+ import { C as CmssyRecordSort } from './csp-BERb4adx.cjs';
2
+ export { A as AppToEditorMessage, B as BoundsMessage, d as ClickMessage, e as CmssyClient, f as CmssyConfig, g as CmssyCspOptions, h as CmssyEnvConfig, j as CmssyLayout, k as CmssyRegion, m as CmssyRegionOf, n as CmssyRegionSettings, o as CmssyRegionSettingsOf, D as DEFAULT_CMSSY_EDITOR_ORIGINS, E as EditorToAppMessage, I as InvisibleBlock, p as InvisibleBlocksMessage, q as InvisibleReason, P as PROTOCOL_VERSION, s as ParentReadyMessage, u as PatchMessage, v as PostTarget, Q as QueryScopedOptions, R as ReadyMessage, w as SHORTCUT_ACTIONS, x as ScopedVariables, y as SelectMessage, z as ShortcutAction, G as ShortcutMessage, V as VariablesParameter, H as ViewportMessage, J as applyCmssyCsp, K as createCmssyClient, L as defineCmssyConfig, N as defineCmssyLayout, O as isProtocolCompatible, T as normalizeOrigin, U as parseEditorMessage, W as postToEditor, X as resolveEditorOrigin } from './csp-BERb4adx.cjs';
3
3
  import { a as CmssyOperation, G as GraphqlRequestOptions } from './locale-CUk6dYTo.cjs';
4
4
  export { b as CMSSY_LOCALE_HEADER, C as CmssyOperationInput, f as CmssyTypedDocument, g as graphqlRequest, d as localizeHref, h as resolveCmssyLocale, t as typedOperation } from './locale-CUk6dYTo.cjs';
5
5
  import { F as FetchLike, R as RetryOption, C as CmssyClientConfig } from './content-client-EAeHiBv2.cjs';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { C as CmssyRecordSort } from './csp-DoY_JZ4u.js';
2
- export { A as AppToEditorMessage, B as BoundsMessage, d as ClickMessage, e as CmssyClient, f as CmssyConfig, g as CmssyCspOptions, h as CmssyEnvConfig, j as CmssyLayout, k as CmssyRegion, m as CmssyRegionOf, n as CmssyRegionSettings, o as CmssyRegionSettingsOf, D as DEFAULT_CMSSY_EDITOR_ORIGINS, E as EditorToAppMessage, I as InvisibleBlock, p as InvisibleBlocksMessage, P as PROTOCOL_VERSION, q as ParentReadyMessage, s as PatchMessage, u as PostTarget, Q as QueryScopedOptions, R as ReadyMessage, v as SHORTCUT_ACTIONS, w as ScopedVariables, x as SelectMessage, y as ShortcutAction, z as ShortcutMessage, V as VariablesParameter, G as ViewportMessage, H as applyCmssyCsp, J as createCmssyClient, K as defineCmssyConfig, L as defineCmssyLayout, N as isProtocolCompatible, O as normalizeOrigin, T as parseEditorMessage, U as postToEditor, W as resolveEditorOrigin } from './csp-DoY_JZ4u.js';
1
+ import { C as CmssyRecordSort } from './csp-EaQufK8P.js';
2
+ export { A as AppToEditorMessage, B as BoundsMessage, d as ClickMessage, e as CmssyClient, f as CmssyConfig, g as CmssyCspOptions, h as CmssyEnvConfig, j as CmssyLayout, k as CmssyRegion, m as CmssyRegionOf, n as CmssyRegionSettings, o as CmssyRegionSettingsOf, D as DEFAULT_CMSSY_EDITOR_ORIGINS, E as EditorToAppMessage, I as InvisibleBlock, p as InvisibleBlocksMessage, q as InvisibleReason, P as PROTOCOL_VERSION, s as ParentReadyMessage, u as PatchMessage, v as PostTarget, Q as QueryScopedOptions, R as ReadyMessage, w as SHORTCUT_ACTIONS, x as ScopedVariables, y as SelectMessage, z as ShortcutAction, G as ShortcutMessage, V as VariablesParameter, H as ViewportMessage, J as applyCmssyCsp, K as createCmssyClient, L as defineCmssyConfig, N as defineCmssyLayout, O as isProtocolCompatible, T as normalizeOrigin, U as parseEditorMessage, W as postToEditor, X as resolveEditorOrigin } from './csp-EaQufK8P.js';
3
3
  import { a as CmssyOperation, G as GraphqlRequestOptions } from './locale-Ds2uJX5V.js';
4
4
  export { b as CMSSY_LOCALE_HEADER, C as CmssyOperationInput, f as CmssyTypedDocument, g as graphqlRequest, d as localizeHref, h as resolveCmssyLocale, t as typedOperation } from './locale-Ds2uJX5V.js';
5
5
  import { F as FetchLike, R as RetryOption, C as CmssyClientConfig } from './content-client-EAeHiBv2.js';
package/dist/index.js CHANGED
@@ -224,7 +224,7 @@ function documentText(document2) {
224
224
  }
225
225
 
226
226
  // src/version.ts
227
- var CMSSY_CORE_VERSION = "19.31.0" ;
227
+ var CMSSY_CORE_VERSION = "19.32.0" ;
228
228
  var CMSSY_USER_AGENT = `@cmssy/core/${CMSSY_CORE_VERSION}`;
229
229
 
230
230
  // src/data/http.ts
@@ -154,7 +154,7 @@ function documentText(document) {
154
154
  }
155
155
 
156
156
  // src/version.ts
157
- var CMSSY_CORE_VERSION = "19.31.0" ;
157
+ var CMSSY_CORE_VERSION = "19.32.0" ;
158
158
  var CMSSY_USER_AGENT = `@cmssy/core/${CMSSY_CORE_VERSION}`;
159
159
 
160
160
  // src/data/http.ts
@@ -152,7 +152,7 @@ function documentText(document) {
152
152
  }
153
153
 
154
154
  // src/version.ts
155
- var CMSSY_CORE_VERSION = "19.31.0" ;
155
+ var CMSSY_CORE_VERSION = "19.32.0" ;
156
156
  var CMSSY_USER_AGENT = `@cmssy/core/${CMSSY_CORE_VERSION}`;
157
157
 
158
158
  // src/data/http.ts
package/dist/internal.cjs CHANGED
@@ -154,7 +154,7 @@ function documentText(document2) {
154
154
  }
155
155
 
156
156
  // src/version.ts
157
- var CMSSY_CORE_VERSION = "19.31.0" ;
157
+ var CMSSY_CORE_VERSION = "19.32.0" ;
158
158
  var CMSSY_USER_AGENT = `@cmssy/core/${CMSSY_CORE_VERSION}`;
159
159
 
160
160
  // src/data/http.ts
@@ -4,8 +4,8 @@ import { G as GraphqlRequestOptions } from './locale-CUk6dYTo.cjs';
4
4
  export { b as CMSSY_LOCALE_HEADER, l as localeForPath, c as localeForPathname, d as localizeHref, r as resolveSiteLocales, s as splitCmssyLocale, e as splitLocaleFromPath } from './locale-CUk6dYTo.cjs';
5
5
  import { CmssyFormDefinition, BuildBlockContextExtra, CmssyBlockContext, CmssySiteConfig, FieldDefinition, RawBlock, CmssyLayoutGroup } from '@cmssy/types';
6
6
  export { CmssySiteLocales } from '@cmssy/types';
7
- import { Q as QueryScopedOptions } from './csp-CDQ84XTt.cjs';
8
- export { F as FORM_QUERY, M as MODEL_DEFINITIONS_QUERY, a as MODEL_RECORDS_QUERY, S as SITE_CONFIG_QUERY, b as SUBMIT_FORM_MUTATION, c as cmssyCspHeaders, i as isDevelopment, l as layoutRegionIds, r as resolveInitialTarget, t as toCspOrigin } from './csp-CDQ84XTt.cjs';
7
+ import { Q as QueryScopedOptions } from './csp-BERb4adx.cjs';
8
+ export { F as FORM_QUERY, M as MODEL_DEFINITIONS_QUERY, a as MODEL_RECORDS_QUERY, S as SITE_CONFIG_QUERY, b as SUBMIT_FORM_MUTATION, c as cmssyCspHeaders, i as isDevelopment, l as layoutRegionIds, r as resolveInitialTarget, t as toCspOrigin } from './csp-BERb4adx.cjs';
9
9
  export { localizedPath } from './internal/locale.cjs';
10
10
 
11
11
  declare function buildBlockContext(locale: string, defaultLocale: string, enabledLocales?: string[], isPreview?: boolean, forms?: Record<string, CmssyFormDefinition>, extra?: BuildBlockContextExtra): CmssyBlockContext;
@@ -4,8 +4,8 @@ import { G as GraphqlRequestOptions } from './locale-Ds2uJX5V.js';
4
4
  export { b as CMSSY_LOCALE_HEADER, l as localeForPath, c as localeForPathname, d as localizeHref, r as resolveSiteLocales, s as splitCmssyLocale, e as splitLocaleFromPath } from './locale-Ds2uJX5V.js';
5
5
  import { CmssyFormDefinition, BuildBlockContextExtra, CmssyBlockContext, CmssySiteConfig, FieldDefinition, RawBlock, CmssyLayoutGroup } from '@cmssy/types';
6
6
  export { CmssySiteLocales } from '@cmssy/types';
7
- import { Q as QueryScopedOptions } from './csp-DoY_JZ4u.js';
8
- export { F as FORM_QUERY, M as MODEL_DEFINITIONS_QUERY, a as MODEL_RECORDS_QUERY, S as SITE_CONFIG_QUERY, b as SUBMIT_FORM_MUTATION, c as cmssyCspHeaders, i as isDevelopment, l as layoutRegionIds, r as resolveInitialTarget, t as toCspOrigin } from './csp-DoY_JZ4u.js';
7
+ import { Q as QueryScopedOptions } from './csp-EaQufK8P.js';
8
+ export { F as FORM_QUERY, M as MODEL_DEFINITIONS_QUERY, a as MODEL_RECORDS_QUERY, S as SITE_CONFIG_QUERY, b as SUBMIT_FORM_MUTATION, c as cmssyCspHeaders, i as isDevelopment, l as layoutRegionIds, r as resolveInitialTarget, t as toCspOrigin } from './csp-EaQufK8P.js';
9
9
  export { localizedPath } from './internal/locale.js';
10
10
 
11
11
  declare function buildBlockContext(locale: string, defaultLocale: string, enabledLocales?: string[], isPreview?: boolean, forms?: Record<string, CmssyFormDefinition>, extra?: BuildBlockContextExtra): CmssyBlockContext;
package/dist/internal.js CHANGED
@@ -152,7 +152,7 @@ function documentText(document2) {
152
152
  }
153
153
 
154
154
  // src/version.ts
155
- var CMSSY_CORE_VERSION = "19.31.0" ;
155
+ var CMSSY_CORE_VERSION = "19.32.0" ;
156
156
  var CMSSY_USER_AGENT = `@cmssy/core/${CMSSY_CORE_VERSION}`;
157
157
 
158
158
  // src/data/http.ts
@@ -152,7 +152,7 @@ function documentText(document) {
152
152
  }
153
153
 
154
154
  // src/version.ts
155
- var CMSSY_CORE_VERSION = "19.31.0" ;
155
+ var CMSSY_CORE_VERSION = "19.32.0" ;
156
156
  var CMSSY_USER_AGENT = `@cmssy/core/${CMSSY_CORE_VERSION}`;
157
157
 
158
158
  // src/content/content-client.ts
package/dist/preflight.js CHANGED
@@ -150,7 +150,7 @@ function documentText(document) {
150
150
  }
151
151
 
152
152
  // src/version.ts
153
- var CMSSY_CORE_VERSION = "19.31.0" ;
153
+ var CMSSY_CORE_VERSION = "19.32.0" ;
154
154
  var CMSSY_USER_AGENT = `@cmssy/core/${CMSSY_CORE_VERSION}`;
155
155
 
156
156
  // src/content/content-client.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmssy/core",
3
- "version": "19.31.0",
3
+ "version": "19.32.0",
4
4
  "engines": {
5
5
  "node": ">=20"
6
6
  },
@@ -90,7 +90,7 @@
90
90
  "vitest": "^2.1.0"
91
91
  },
92
92
  "dependencies": {
93
- "@cmssy/types": "0.75.0",
93
+ "@cmssy/types": "0.75.1",
94
94
  "jose": "^6.2.3"
95
95
  },
96
96
  "scripts": {