@cmssy/core 12.1.1 → 12.3.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.
@@ -25,7 +25,7 @@ interface CmssyTypedDocument<Result, Variables> {
25
25
  __apiType?: (variables: Variables) => Result;
26
26
  }
27
27
 
28
- interface QueryScopedOptions extends GraphqlRequestOptions {
28
+ interface QueryScopedOptions extends Omit<GraphqlRequestOptions, "public"> {
29
29
  workspaceId?: string;
30
30
  }
31
31
  interface CmssyClient {
@@ -25,7 +25,7 @@ interface CmssyTypedDocument<Result, Variables> {
25
25
  __apiType?: (variables: Variables) => Result;
26
26
  }
27
27
 
28
- interface QueryScopedOptions extends GraphqlRequestOptions {
28
+ interface QueryScopedOptions extends Omit<GraphqlRequestOptions, "public"> {
29
29
  workspaceId?: string;
30
30
  }
31
31
  interface CmssyClient {
package/dist/index.cjs CHANGED
@@ -439,7 +439,11 @@ function createCmssyClient(input) {
439
439
  config,
440
440
  document2,
441
441
  scopedVariables,
442
- { ...rest, headers: { ...headers, "x-workspace-id": workspaceId } },
442
+ {
443
+ ...rest,
444
+ public: true,
445
+ headers: { ...headers, "x-workspace-id": workspaceId }
446
+ },
443
447
  "graphql operation"
444
448
  );
445
449
  }
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 SelectMessage, i as applyCmssyCsp, j as createCmssyClient, k as defineCmssyConfig, l as isProtocolCompatible, n as normalizeOrigin, p as parseEditorMessage, m as postToEditor, r as resolveEditorOrigin } from './csp-ZchQ-sC7.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, P as PROTOCOL_VERSION, f as ParentReadyMessage, g as PatchMessage, h as PostTarget, Q as QueryScopedOptions, R as ReadyMessage, S as SelectMessage, i as applyCmssyCsp, j as createCmssyClient, k as defineCmssyConfig, l as isProtocolCompatible, n as normalizeOrigin, p as parseEditorMessage, m as postToEditor, r as resolveEditorOrigin } from './csp-CcMsQrrS.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 SelectMessage, i as applyCmssyCsp, j as createCmssyClient, k as defineCmssyConfig, l as isProtocolCompatible, n as normalizeOrigin, p as parseEditorMessage, m as postToEditor, r as resolveEditorOrigin } from './csp-DjFT5SmH.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, P as PROTOCOL_VERSION, f as ParentReadyMessage, g as PatchMessage, h as PostTarget, Q as QueryScopedOptions, R as ReadyMessage, S as SelectMessage, i as applyCmssyCsp, j as createCmssyClient, k as defineCmssyConfig, l as isProtocolCompatible, n as normalizeOrigin, p as parseEditorMessage, m as postToEditor, r as resolveEditorOrigin } from './csp-Bstf0ycQ.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';
package/dist/index.js CHANGED
@@ -437,7 +437,11 @@ function createCmssyClient(input) {
437
437
  config,
438
438
  document2,
439
439
  scopedVariables,
440
- { ...rest, headers: { ...headers, "x-workspace-id": workspaceId } },
440
+ {
441
+ ...rest,
442
+ public: true,
443
+ headers: { ...headers, "x-workspace-id": workspaceId }
444
+ },
441
445
  "graphql operation"
442
446
  );
443
447
  }
package/dist/internal.cjs CHANGED
@@ -638,7 +638,11 @@ function createCmssyClient(input) {
638
638
  config,
639
639
  document2,
640
640
  scopedVariables,
641
- { ...rest, headers: { ...headers, "x-workspace-id": workspaceId } },
641
+ {
642
+ ...rest,
643
+ public: true,
644
+ headers: { ...headers, "x-workspace-id": workspaceId }
645
+ },
642
646
  "graphql operation"
643
647
  );
644
648
  }
@@ -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-ZchQ-sC7.cjs';
7
- export { o as cmssyCspHeaders, q as isDevelopment, s as resolveInitialTarget, t as toCspOrigin } from './csp-ZchQ-sC7.cjs';
6
+ import { Q as QueryScopedOptions } from './csp-CcMsQrrS.cjs';
7
+ export { o as cmssyCspHeaders, q as isDevelopment, s as resolveInitialTarget, t as toCspOrigin } from './csp-CcMsQrrS.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-DjFT5SmH.js';
7
- export { o as cmssyCspHeaders, q as isDevelopment, s as resolveInitialTarget, t as toCspOrigin } from './csp-DjFT5SmH.js';
6
+ import { Q as QueryScopedOptions } from './csp-Bstf0ycQ.js';
7
+ export { o as cmssyCspHeaders, q as isDevelopment, s as resolveInitialTarget, t as toCspOrigin } from './csp-Bstf0ycQ.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/dist/internal.js CHANGED
@@ -636,7 +636,11 @@ function createCmssyClient(input) {
636
636
  config,
637
637
  document2,
638
638
  scopedVariables,
639
- { ...rest, headers: { ...headers, "x-workspace-id": workspaceId } },
639
+ {
640
+ ...rest,
641
+ public: true,
642
+ headers: { ...headers, "x-workspace-id": workspaceId }
643
+ },
640
644
  "graphql operation"
641
645
  );
642
646
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmssy/core",
3
- "version": "12.1.1",
3
+ "version": "12.3.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",