@eldrajs/theme-core 0.3.1 → 0.3.3

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.
Files changed (40) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/dist/{bridge-CLi2P6Wh.js → bridge-DSH4N82G.js} +4 -8
  3. package/dist/bridge.d.ts +1 -1
  4. package/dist/bridge.js +1 -2
  5. package/dist/design-tokens.d.ts +1 -3
  6. package/dist/design-tokens.js +1 -2
  7. package/dist/dynamic-route.d.ts +1 -1
  8. package/dist/dynamic-route.js +1 -2
  9. package/dist/{dynamicRoute-pRTBoYT6.d.ts → dynamicRoute-DzSNn4tV.d.ts} +0 -4
  10. package/dist/{dynamicRoute-CxXY-Y_8.js → dynamicRoute-k60idORj.js} +2 -4
  11. package/dist/i18n.d.ts +1 -3
  12. package/dist/i18n.js +1 -2
  13. package/dist/image-framing.d.ts +1 -1
  14. package/dist/image-framing.js +1 -2
  15. package/dist/{imageFraming-BUZ-yqho.d.ts → imageFraming-BgKBJiTB.d.ts} +0 -2
  16. package/dist/{index-DxrkKyG4.d.ts → index-C3tgQ-hG.d.ts} +0 -8
  17. package/dist/index.d.ts +21 -31
  18. package/dist/index.js +24 -26
  19. package/dist/{layout-CWq_v6ws.d.ts → layout-CkPOfiOM.d.ts} +0 -2
  20. package/dist/layout.d.ts +1 -1
  21. package/dist/layout.js +1 -2
  22. package/dist/links.d.ts +2 -4
  23. package/dist/links.js +2 -3
  24. package/dist/{overlay-C8-F1jzU.js → overlay-a8pghnYy.js} +5 -8
  25. package/dist/{overlay-Bgi0tIbN.d.ts → overlay-mKeZLljc.d.ts} +3 -7
  26. package/dist/overlay.d.ts +1 -1
  27. package/dist/overlay.js +1 -1
  28. package/dist/preview-router.d.ts +1 -1
  29. package/dist/preview-router.js +1 -2
  30. package/dist/reusable.d.ts +2 -4
  31. package/dist/reusable.js +2 -3
  32. package/dist/{reusableExpansion-Bqm83nCJ.js → reusableExpansion-Cg9AE8JX.js} +1 -2
  33. package/dist/{reusableExpansion-CXvs_ckx.d.ts → reusableExpansion-CqrqpK4A.d.ts} +1 -3
  34. package/dist/stega.d.ts +1 -3
  35. package/dist/stega.js +1 -2
  36. package/dist/template-layout.d.ts +2 -2
  37. package/dist/template-layout.js +1 -2
  38. package/dist/{templateLayout-CpZb6EEg.js → templateLayout-CGMAmJBe.js} +3 -5
  39. package/dist/{templateLayout-7rT_TH_E.d.ts → templateLayout-D9gAWXzB.d.ts} +2 -6
  40. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -5,6 +5,11 @@ Release-please writes the generated notes from commit messages and does not repl
5
5
 
6
6
  ## Unreleased
7
7
 
8
+ - **Company facts in `Organization`, alternate names in `WebSite`.** `buildOrganizationLd` takes
9
+ optional `legalName`, `taxID` (the kennitala in Iceland) and `address` (written as a
10
+ `PostalAddress`, left out when every part is empty); `buildWebSiteLd` takes an optional
11
+ `alternateName` list, which Google weighs when it picks a site name.
12
+
8
13
  - **`buildToken` client option (WS-403).** `createEldraClient({ buildToken })` sends
9
14
  `X-Eldra-Build-Token` on every read; pass a read-only build token (`eldra_bld_…`, Studio →
10
15
  Settings → Developers → Build tokens), never the deploy token. Server and build only.
@@ -1,4 +1,4 @@
1
- //#region src/bridge/protocol.ts
1
+ // src/bridge/protocol.ts
2
2
  const BRIDGE_PROTOCOL = "eldra-bridge";
3
3
  const BRIDGE_VERSION = 1;
4
4
  /**
@@ -91,8 +91,7 @@ const THEME_CAPABILITIES = [
91
91
  "image-framing",
92
92
  "rich-text-inline"
93
93
  ];
94
- //#endregion
95
- //#region src/bridge/envelope.ts
94
+ // src/bridge/envelope.ts
96
95
  function makeEnvelope(type, payload) {
97
96
  return {
98
97
  protocol: BRIDGE_PROTOCOL,
@@ -121,8 +120,7 @@ function parseEnvelope(data) {
121
120
  }
122
121
  return e;
123
122
  }
124
- //#endregion
125
- //#region src/bridge/editor.ts
123
+ // src/bridge/editor.ts
126
124
  const HELLO_INTERVAL_MS = 500;
127
125
  const HELLO_MAX_ATTEMPTS = 20;
128
126
  const PING_INTERVAL_MS = 5e3;
@@ -232,8 +230,7 @@ function createEditorBridge(opts) {
232
230
  }
233
231
  };
234
232
  }
235
- //#endregion
236
- //#region src/bridge/theme.ts
233
+ // src/bridge/theme.ts
237
234
  const PRE_LOCK_QUEUE_LIMIT = 50;
238
235
  function createThemeBridge(opts) {
239
236
  const { allowedOrigins, onMessage } = opts;
@@ -310,5 +307,4 @@ function createThemeBridge(opts) {
310
307
  function readMeta(name) {
311
308
  return document.querySelector(`meta[name="${name}"]`)?.content ?? "0.0.0";
312
309
  }
313
- //#endregion
314
310
  export { BRIDGE_PROTOCOL as a, KNOWN_MESSAGE_TYPES as c, parseEnvelope as i, RICH_TEXT_COMMAND_NAMES as l, createEditorBridge as n, BRIDGE_VERSION as o, makeEnvelope as r, EDITOR_CAPABILITIES as s, createThemeBridge as t, THEME_CAPABILITIES as u };
package/dist/bridge.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { C as RichTextDoc, D as ThemeRichTextCommandMessage, E as THEME_CAPABILITIES, O as ThemeRichTextInputMessage, S as RichTextCommandName, T as StructuralDragPayload, _ as EditorRichTextLocateMessage, a as BRIDGE_PROTOCOL, b as ResolvedDesignTokensPayload, c as BridgeHandler, d as DOMRectLike, f as DraftEntryPayload, g as EditorRichTextEditingMessage, h as EditorRichTextAppliedMessage, i as parseEnvelope, k as ThemeRichTextSelectionMessage, l as BridgeMessageType, m as EditorMode, n as createEditorBridge, o as BRIDGE_VERSION, p as EDITOR_CAPABILITIES, r as makeEnvelope, s as BridgeEnvelope, t as createThemeBridge, u as BridgePayloads, v as KNOWN_MESSAGE_TYPES, w as RichTextIdentity, x as ResolvedThemeMessagesPayload, y as RICH_TEXT_COMMAND_NAMES } from "./index-DxrkKyG4.js";
1
+ import { C as RichTextDoc, D as ThemeRichTextCommandMessage, E as THEME_CAPABILITIES, O as ThemeRichTextInputMessage, S as RichTextCommandName, T as StructuralDragPayload, _ as EditorRichTextLocateMessage, a as BRIDGE_PROTOCOL, b as ResolvedDesignTokensPayload, c as BridgeHandler, d as DOMRectLike, f as DraftEntryPayload, g as EditorRichTextEditingMessage, h as EditorRichTextAppliedMessage, i as parseEnvelope, k as ThemeRichTextSelectionMessage, l as BridgeMessageType, m as EditorMode, n as createEditorBridge, o as BRIDGE_VERSION, p as EDITOR_CAPABILITIES, r as makeEnvelope, s as BridgeEnvelope, t as createThemeBridge, u as BridgePayloads, v as KNOWN_MESSAGE_TYPES, w as RichTextIdentity, x as ResolvedThemeMessagesPayload, y as RICH_TEXT_COMMAND_NAMES } from "./index-C3tgQ-hG.js";
2
2
  export { BRIDGE_PROTOCOL, BRIDGE_VERSION, type BridgeEnvelope, type BridgeHandler, type BridgeMessageType, type BridgePayloads, type DOMRectLike, type DraftEntryPayload, EDITOR_CAPABILITIES, type EditorMode, type EditorRichTextAppliedMessage, type EditorRichTextEditingMessage, type EditorRichTextLocateMessage, KNOWN_MESSAGE_TYPES, RICH_TEXT_COMMAND_NAMES, type ResolvedDesignTokensPayload, type ResolvedThemeMessagesPayload, type RichTextCommandName, type RichTextDoc, type RichTextIdentity, type StructuralDragPayload, THEME_CAPABILITIES, type ThemeRichTextCommandMessage, type ThemeRichTextInputMessage, type ThemeRichTextSelectionMessage, createEditorBridge, createThemeBridge, makeEnvelope, parseEnvelope };
package/dist/bridge.js CHANGED
@@ -1,2 +1 @@
1
- import { a as BRIDGE_PROTOCOL, c as KNOWN_MESSAGE_TYPES, i as parseEnvelope, l as RICH_TEXT_COMMAND_NAMES, n as createEditorBridge, o as BRIDGE_VERSION, r as makeEnvelope, s as EDITOR_CAPABILITIES, t as createThemeBridge, u as THEME_CAPABILITIES } from "./bridge-CLi2P6Wh.js";
2
- export { BRIDGE_PROTOCOL, BRIDGE_VERSION, EDITOR_CAPABILITIES, KNOWN_MESSAGE_TYPES, RICH_TEXT_COMMAND_NAMES, THEME_CAPABILITIES, createEditorBridge, createThemeBridge, makeEnvelope, parseEnvelope };
1
+ export { a as BRIDGE_PROTOCOL, o as BRIDGE_VERSION, s as EDITOR_CAPABILITIES, c as KNOWN_MESSAGE_TYPES, l as RICH_TEXT_COMMAND_NAMES, u as THEME_CAPABILITIES, n as createEditorBridge, t as createThemeBridge, r as makeEnvelope, i as parseEnvelope } from "./bridge-DSH4N82G.js";
@@ -1,4 +1,3 @@
1
- //#region src/designTokens.d.ts
2
1
  export type DesignTokenId = string;
3
2
  export type ColorLiteral = string;
4
3
  export type ResponsiveTokenValue<T> = {
@@ -64,5 +63,4 @@ export declare function generateDesignTokenCss(value: ThemeDesignTokens | Design
64
63
  }): string;
65
64
  export declare function generateTailwindThemeCss(value: ThemeDesignTokens | DesignTokenCatalog): string;
66
65
  export declare function designTokenRevisionHash(value: ThemeDesignTokens | DesignTokenCatalog): string;
67
- export declare function responsiveValue<T>(value: ResponsiveTokenValue<T>, breakpoint: 'normal' | 'tablet' | 'mobile'): T;
68
- //#endregion
66
+ export declare function responsiveValue<T>(value: ResponsiveTokenValue<T>, breakpoint: 'normal' | 'tablet' | 'mobile'): T;
@@ -1,4 +1,4 @@
1
- //#region src/designTokens.ts
1
+ // src/designTokens.ts
2
2
  var DesignTokenValidationError = class extends Error {
3
3
  path;
4
4
  code;
@@ -482,5 +482,4 @@ function sha256Hex(bytes) {
482
482
  }
483
483
  return hash.map((value) => value.toString(16).padStart(8, "0")).join("");
484
484
  }
485
- //#endregion
486
485
  export { DesignTokenValidationError, applyDesignTokenOverrides, designTokenRevisionHash, generateDesignTokenCss, generateTailwindThemeCss, normalizeColorSelection, normalizeSiteDesignTokenOverrides, normalizeThemeDesignTokens, resolveColorSelection, resolveDesignTokenCatalog, responsiveValue };
@@ -1,2 +1,2 @@
1
- import { a as buildDynamicRoutePath, c as parseDynamicRoutePattern, i as RouteTemplateLike, l as resolveRoute, n as MAX_DYNAMIC_ROUTE_PATTERN_BYTES, o as catalogRouteTarget, r as ParsedDynamicRoutePattern, s as matchDynamicRoutePattern, t as DynamicRouteResolution } from "./dynamicRoute-pRTBoYT6.js";
1
+ import { a as buildDynamicRoutePath, c as parseDynamicRoutePattern, i as RouteTemplateLike, l as resolveRoute, n as MAX_DYNAMIC_ROUTE_PATTERN_BYTES, o as catalogRouteTarget, r as ParsedDynamicRoutePattern, s as matchDynamicRoutePattern, t as DynamicRouteResolution } from "./dynamicRoute-DzSNn4tV.js";
2
2
  export { DynamicRouteResolution, MAX_DYNAMIC_ROUTE_PATTERN_BYTES, ParsedDynamicRoutePattern, RouteTemplateLike, buildDynamicRoutePath, catalogRouteTarget, matchDynamicRoutePattern, parseDynamicRoutePattern, resolveRoute };
@@ -1,3 +1,2 @@
1
1
  import "./stega.js";
2
- import { a as parseDynamicRoutePattern, i as matchDynamicRoutePattern, n as buildDynamicRoutePath, o as resolveRoute, r as catalogRouteTarget, t as MAX_DYNAMIC_ROUTE_PATTERN_BYTES } from "./dynamicRoute-CxXY-Y_8.js";
3
- export { MAX_DYNAMIC_ROUTE_PATTERN_BYTES, buildDynamicRoutePath, catalogRouteTarget, matchDynamicRoutePattern, parseDynamicRoutePattern, resolveRoute };
2
+ export { t as MAX_DYNAMIC_ROUTE_PATTERN_BYTES, n as buildDynamicRoutePath, r as catalogRouteTarget, i as matchDynamicRoutePattern, a as parseDynamicRoutePattern, o as resolveRoute } from "./dynamicRoute-k60idORj.js";
@@ -1,4 +1,3 @@
1
- //#region src/pagePath.d.ts
2
1
  interface PageLike {
3
2
  id: string;
4
3
  data: Record<string, unknown>;
@@ -7,8 +6,6 @@ interface PageLike {
7
6
  * A no-parent page with slug "home" contributes nothing — so home itself is "/"
8
7
  * and children of home are "/<child>". Parent may be an id string or a resolved doc. */
9
8
  declare function resolvePagePath(page: PageLike, allPages: PageLike[]): string;
10
- //#endregion
11
- //#region src/dynamicRoute.d.ts
12
9
  declare const MAX_DYNAMIC_ROUTE_PATTERN_BYTES = 255;
13
10
  interface ParsedDynamicRoutePattern {
14
11
  value: string;
@@ -51,5 +48,4 @@ declare function buildDynamicRoutePath(pattern: unknown, slugValue: unknown): st
51
48
  * different id, or a non-string — returns null.
52
49
  */
53
50
  declare function catalogRouteTarget(schemaApiId: unknown): 'product' | 'collection' | 'category' | null;
54
- //#endregion
55
51
  export { buildDynamicRoutePath as a, parseDynamicRoutePattern as c, resolvePagePath as d, RouteTemplateLike as i, resolveRoute as l, MAX_DYNAMIC_ROUTE_PATTERN_BYTES as n, catalogRouteTarget as o, ParsedDynamicRoutePattern as r, matchDynamicRoutePattern as s, DynamicRouteResolution as t, PageLike as u };
@@ -1,5 +1,5 @@
1
1
  import { stripStega } from "./stega.js";
2
- //#region src/pagePath.ts
2
+ // src/pagePath.ts
3
3
  /** contracts §6: path = "/" + ancestor slugs (parent-first) + own slug.
4
4
  * A no-parent page with slug "home" contributes nothing — so home itself is "/"
5
5
  * and children of home are "/<child>". Parent may be an id string or a resolved doc. */
@@ -24,8 +24,7 @@ function parentIdOf(parent) {
24
24
  if (typeof parent === "object" && parent !== null && typeof parent.id === "string") return parent.id;
25
25
  return null;
26
26
  }
27
- //#endregion
28
- //#region src/dynamicRoute.ts
27
+ // src/dynamicRoute.ts
29
28
  const MAX_DYNAMIC_ROUTE_PATTERN_BYTES = 255;
30
29
  function parseDynamicRoutePattern(value) {
31
30
  if (typeof value !== "string" || value === "" || new TextEncoder().encode(value).byteLength > 255 || !value.startsWith("/") || value === "/" || value.endsWith("/") || value.includes("//") || /[?#\\]/.test(value)) return null;
@@ -122,5 +121,4 @@ function decodeRequestPath(path) {
122
121
  function stripTemplateString(value) {
123
122
  return typeof value === "string" ? stripStega(value).trim() : "";
124
123
  }
125
- //#endregion
126
124
  export { parseDynamicRoutePattern as a, matchDynamicRoutePattern as i, buildDynamicRoutePath as n, resolveRoute as o, catalogRouteTarget as r, resolvePagePath as s, MAX_DYNAMIC_ROUTE_PATTERN_BYTES as t };
package/dist/i18n.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- //#region src/i18n.d.ts
2
1
  /**
3
2
  * Framework-free message-catalogue helpers shared by `@eldrajs/vite-plugin-theme` (the manifest
4
3
  * scanner), `@eldrajs/theme-nuxt` (the build-time merge over the public platform read) and the
@@ -103,5 +102,4 @@ export declare function mergeMessageCatalogues(themeDefaults: ThemeMessages, pla
103
102
  * **credential-less build** (`platform: null` going in) still produce a complete catalogue for
104
103
  * every locale from the manifest alone.
105
104
  */
106
- export declare function resolveMessageCatalogue(themeDefaults: ThemeMessages, platform: ThemeMessages | null, orgLocales: readonly string[], orgDefaultLocale: string): ThemeMessages;
107
- //#endregion
105
+ export declare function resolveMessageCatalogue(themeDefaults: ThemeMessages, platform: ThemeMessages | null, orgLocales: readonly string[], orgDefaultLocale: string): ThemeMessages;
package/dist/i18n.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/i18n.ts
1
+ // src/i18n.ts
2
2
  /** The fallback catalogue: what a theme with no `i18n/` directory (or no messages at all) serves
3
3
  * on `virtual:eldra/messages`. Matches `@eldrajs/vite-plugin-theme`'s own `EMPTY_MESSAGES`
4
4
  * literal. */
@@ -188,5 +188,4 @@ function sortedStringRecord(value) {
188
188
  function isPlainObject(value) {
189
189
  return typeof value === "object" && value !== null && !Array.isArray(value);
190
190
  }
191
- //#endregion
192
191
  export { EMPTY_THEME_MESSAGES, flattenMessages, isForbiddenLocaleTag, mergeMessageCatalogues, resolveMessageCatalogue, sanitizeLocaleMessages, unflattenMessages };
@@ -1,2 +1,2 @@
1
- import { a as ImageFraming, c as focalBand, d as imageFramingAttrs, f as imageFramingStyle, h as unscaledFrameRect, i as IMAGE_FRAMING_MIN_ZOOM, l as framingDrag, m as parseImageFramingValueAttr, n as FrameRect, o as clampFocal, p as normalizeImageFraming, r as IMAGE_FRAMING_MAX_ZOOM, s as clampImageFraming, t as DEFAULT_IMAGE_FRAMING, u as framingZoom } from "./imageFraming-BUZ-yqho.js";
1
+ import { a as ImageFraming, c as focalBand, d as imageFramingAttrs, f as imageFramingStyle, h as unscaledFrameRect, i as IMAGE_FRAMING_MIN_ZOOM, l as framingDrag, m as parseImageFramingValueAttr, n as FrameRect, o as clampFocal, p as normalizeImageFraming, r as IMAGE_FRAMING_MAX_ZOOM, s as clampImageFraming, t as DEFAULT_IMAGE_FRAMING, u as framingZoom } from "./imageFraming-BgKBJiTB.js";
2
2
  export { DEFAULT_IMAGE_FRAMING, FrameRect, IMAGE_FRAMING_MAX_ZOOM, IMAGE_FRAMING_MIN_ZOOM, ImageFraming, clampFocal, clampImageFraming, focalBand, framingDrag, framingZoom, imageFramingAttrs, imageFramingStyle, normalizeImageFraming, parseImageFramingValueAttr, unscaledFrameRect };
@@ -1,4 +1,4 @@
1
- //#region src/imageFraming.ts
1
+ // src/imageFraming.ts
2
2
  const IMAGE_FRAMING_MIN_ZOOM = 1;
3
3
  const IMAGE_FRAMING_MAX_ZOOM = 4;
4
4
  const DEFAULT_IMAGE_FRAMING = Object.freeze({
@@ -105,5 +105,4 @@ function unscaledFrameRect(rect, framing) {
105
105
  height
106
106
  };
107
107
  }
108
- //#endregion
109
108
  export { DEFAULT_IMAGE_FRAMING, IMAGE_FRAMING_MAX_ZOOM, IMAGE_FRAMING_MIN_ZOOM, clampFocal, clampImageFraming, focalBand, framingDrag, framingZoom, imageFramingAttrs, imageFramingStyle, normalizeImageFraming, parseImageFramingValueAttr, unscaledFrameRect };
@@ -1,4 +1,3 @@
1
- //#region src/imageFraming.d.ts
2
1
  /**
3
2
  * §17 image framing: pure maths and style helpers shared by the preview
4
3
  * overlay, the static output and Studio (which mirrors this module).
@@ -47,5 +46,4 @@ declare function unscaledFrameRect(rect: {
47
46
  width: number;
48
47
  height: number;
49
48
  };
50
- //#endregion
51
49
  export { ImageFraming as a, focalBand as c, imageFramingAttrs as d, imageFramingStyle as f, unscaledFrameRect as h, IMAGE_FRAMING_MIN_ZOOM as i, framingDrag as l, parseImageFramingValueAttr as m, FrameRect as n, clampFocal as o, normalizeImageFraming as p, IMAGE_FRAMING_MAX_ZOOM as r, clampImageFraming as s, DEFAULT_IMAGE_FRAMING as t, framingZoom as u };
@@ -1,4 +1,3 @@
1
- //#region src/bridge/protocol.d.ts
2
1
  declare const BRIDGE_PROTOCOL: "eldra-bridge";
3
2
  declare const BRIDGE_VERSION = 1;
4
3
  type EditorMode = 'preview' | 'edit';
@@ -450,13 +449,9 @@ declare const EDITOR_CAPABILITIES: readonly ["content-update", "select-block", "
450
449
  * the toolbar; a side that does not advertise it never sends, and must
451
450
  * ignore, those messages. */
452
451
  declare const THEME_CAPABILITIES: readonly ["design-tokens", "block-slots", "block-hover", "image-framing", "rich-text-inline"];
453
- //#endregion
454
- //#region src/bridge/envelope.d.ts
455
452
  declare function makeEnvelope<T extends BridgeMessageType>(type: T, payload: BridgePayloads[T]): BridgeEnvelope<T>;
456
453
  /** Returns null for anything that must be ignored; logs per contracts §1.4. */
457
454
  declare function parseEnvelope(data: unknown): BridgeEnvelope | null;
458
- //#endregion
459
- //#region src/bridge/editor.d.ts
460
455
  declare function createEditorBridge(opts: {
461
456
  iframe: HTMLIFrameElement;
462
457
  targetOrigin: string;
@@ -467,8 +462,6 @@ declare function createEditorBridge(opts: {
467
462
  post<T extends BridgeMessageType>(type: T, payload: BridgePayloads[T]): void;
468
463
  destroy(): void;
469
464
  };
470
- //#endregion
471
- //#region src/bridge/theme.d.ts
472
465
  declare function createThemeBridge(opts: {
473
466
  allowedOrigins: string[];
474
467
  onMessage: BridgeHandler;
@@ -484,5 +477,4 @@ declare function createThemeBridge(opts: {
484
477
  readonly connected: boolean;
485
478
  destroy(): void;
486
479
  };
487
- //#endregion
488
480
  export { RichTextDoc as C, ThemeRichTextCommandMessage as D, THEME_CAPABILITIES as E, ThemeRichTextInputMessage as O, RichTextCommandName as S, StructuralDragPayload as T, EditorRichTextLocateMessage as _, BRIDGE_PROTOCOL as a, ResolvedDesignTokensPayload as b, BridgeHandler as c, DOMRectLike as d, DraftEntryPayload as f, EditorRichTextEditingMessage as g, EditorRichTextAppliedMessage as h, parseEnvelope as i, ThemeRichTextSelectionMessage as k, BridgeMessageType as l, EditorMode as m, createEditorBridge as n, BRIDGE_VERSION as o, EDITOR_CAPABILITIES as p, makeEnvelope as r, BridgeEnvelope as s, createThemeBridge as t, BridgePayloads as u, KNOWN_MESSAGE_TYPES as v, RichTextIdentity as w, ResolvedThemeMessagesPayload as x, RICH_TEXT_COMMAND_NAMES as y };
package/dist/index.d.ts CHANGED
@@ -1,16 +1,13 @@
1
- import { ColorLiteral, ColorSelection, ContainerOverride, ContainerPreset, CssTokenLength, DesignTokenCatalog, DesignTokenId, DesignTokenValidationCode, DesignTokenValidationError, ResponsiveTokenValue, SiteDesignTokenOverrides, ThemeColorToken, ThemeDesignTokens, applyDesignTokenOverrides, designTokenRevisionHash, generateDesignTokenCss, generateTailwindThemeCss, normalizeColorSelection, normalizeSiteDesignTokenOverrides, normalizeThemeDesignTokens, resolveColorSelection, resolveDesignTokenCatalog, responsiveValue } from "./design-tokens.js";
2
- import { a as buildDynamicRoutePath, c as parseDynamicRoutePattern, d as resolvePagePath, i as RouteTemplateLike, l as resolveRoute, n as MAX_DYNAMIC_ROUTE_PATTERN_BYTES, o as catalogRouteTarget, r as ParsedDynamicRoutePattern, s as matchDynamicRoutePattern, t as DynamicRouteResolution, u as PageLike } from "./dynamicRoute-pRTBoYT6.js";
3
- import { a as ImageFraming, c as focalBand, d as imageFramingAttrs, f as imageFramingStyle, h as unscaledFrameRect, i as IMAGE_FRAMING_MIN_ZOOM, l as framingDrag, m as parseImageFramingValueAttr, n as FrameRect, o as clampFocal, p as normalizeImageFraming, r as IMAGE_FRAMING_MAX_ZOOM, s as clampImageFraming, t as DEFAULT_IMAGE_FRAMING, u as framingZoom } from "./imageFraming-BUZ-yqho.js";
4
1
  import { StegaMeta, decodeStega, encodeStega, stripStega } from "./stega.js";
5
- import { C as ResolveEntryListBody, S as PageMeta, _ as EldraClientOptions, a as TemplateLayoutDocument, b as EntryList, c as TemplateLayoutRenderNode, d as CatalogDoc, f as CatalogList, g as EldraClientError, h as EldraClient, i as TemplateLayoutContext, l as buildTemplateBlockRenames, m as EldraCatalogReader, n as TemplateBlockFieldDefinition, o as TemplateLayoutNode, p as CatalogQuery, r as TemplateBlockNode, s as TemplateLayoutRenderModel, t as TemplateBlockDefinition, u as createTemplateLayoutRenderModel, v as EldraRetryOptions, x as EntryQuery, y as EntryDoc } from "./templateLayout-7rT_TH_E.js";
6
- import { A as generateLayoutCss, C as Responsive, D as WidthLength, E as Spacing, F as resolveLayoutBreakpoints, I as resolveLayoutDocument, L as validateLayoutDocument, M as layoutNodeClass, N as layoutRenderNodeId, O as activeLayoutBreakpoint, P as normalizeLayoutDocument, S as ResolvedLayoutStyle, T as SlotValidationContext, _ as LayoutValidationError, a as LAYOUT_BREAKPOINTS, b as ResolvedLayoutDocument, c as LayoutBreakpoints, d as LayoutNode, f as LayoutRenderBlockNode, g as LayoutValidationCode, h as LayoutStyle, i as EDIT_MODE_HIDDEN_OPACITY, j as hiddenLayoutBreakpoints, k as createLayoutRenderModel, l as LayoutContainerNode, m as LayoutRenderNode, n as CssLength, o as LayoutBlockNode, p as LayoutRenderModel, r as DEFAULT_LAYOUT_BREAKPOINTS, s as LayoutBreakpoint, t as BlockSlotDefinition, u as LayoutDocument, v as LayoutValidationIssue, w as SizingLength, x as ResolvedLayoutNode, y as NormalizedLayoutResult } from "./layout-CWq_v6ws.js";
7
- import { a as RichTextRenderStateChange, c as NegotiatedEditorCapabilities, d as PreviewRouterMessageType, f as createPreviewMessageRouter, i as RichTextFieldIdentity, l as PREVIEW_ROUTER_MESSAGE_TYPES, n as OverlayRuntime, o as classifyBeforeInput, r as OverlayRuntimeOptions, s as createOverlayRuntime, t as BeforeInputClassification, u as PreviewMessageRouter } from "./overlay-Bgi0tIbN.js";
8
- import { a as ReusableComponentRevision, i as ReusableComponentResolver, n as ReusableComponentPlacement, o as ReusableRenderIdentity, r as ReusableComponentProjection, s as createProjectionResolver, t as ReusableComponentBinding } from "./reusableExpansion-CXvs_ckx.js";
2
+ import { C as ResolveEntryListBody, S as PageMeta, _ as EldraClientOptions, a as TemplateLayoutDocument, b as EntryList, c as TemplateLayoutRenderNode, d as CatalogDoc, f as CatalogList, g as EldraClientError, h as EldraClient, i as TemplateLayoutContext, l as buildTemplateBlockRenames, m as EldraCatalogReader, n as TemplateBlockFieldDefinition, o as TemplateLayoutNode, p as CatalogQuery, r as TemplateBlockNode, s as TemplateLayoutRenderModel, t as TemplateBlockDefinition, u as createTemplateLayoutRenderModel, v as EldraRetryOptions, x as EntryQuery, y as EntryDoc } from "./templateLayout-D9gAWXzB.js";
3
+ import { a as buildDynamicRoutePath, c as parseDynamicRoutePattern, d as resolvePagePath, i as RouteTemplateLike, l as resolveRoute, n as MAX_DYNAMIC_ROUTE_PATTERN_BYTES, o as catalogRouteTarget, r as ParsedDynamicRoutePattern, s as matchDynamicRoutePattern, t as DynamicRouteResolution, u as PageLike } from "./dynamicRoute-DzSNn4tV.js";
4
+ import { a as RichTextRenderStateChange, c as NegotiatedEditorCapabilities, d as PreviewRouterMessageType, f as createPreviewMessageRouter, i as RichTextFieldIdentity, l as PREVIEW_ROUTER_MESSAGE_TYPES, n as OverlayRuntime, o as classifyBeforeInput, r as OverlayRuntimeOptions, s as createOverlayRuntime, t as BeforeInputClassification, u as PreviewMessageRouter } from "./overlay-mKeZLljc.js";
5
+ import { A as generateLayoutCss, C as Responsive, D as WidthLength, E as Spacing, F as resolveLayoutBreakpoints, I as resolveLayoutDocument, L as validateLayoutDocument, M as layoutNodeClass, N as layoutRenderNodeId, O as activeLayoutBreakpoint, P as normalizeLayoutDocument, S as ResolvedLayoutStyle, T as SlotValidationContext, _ as LayoutValidationError, a as LAYOUT_BREAKPOINTS, b as ResolvedLayoutDocument, c as LayoutBreakpoints, d as LayoutNode, f as LayoutRenderBlockNode, g as LayoutValidationCode, h as LayoutStyle, i as EDIT_MODE_HIDDEN_OPACITY, j as hiddenLayoutBreakpoints, k as createLayoutRenderModel, l as LayoutContainerNode, m as LayoutRenderNode, n as CssLength, o as LayoutBlockNode, p as LayoutRenderModel, r as DEFAULT_LAYOUT_BREAKPOINTS, s as LayoutBreakpoint, t as BlockSlotDefinition, u as LayoutDocument, v as LayoutValidationIssue, w as SizingLength, x as ResolvedLayoutNode, y as NormalizedLayoutResult } from "./layout-CkPOfiOM.js";
9
6
  import { PageLayoutDocument, PageLayoutNode, ReusableComponentSnapshotCache, ReusableLayoutOptions, ReusableLayoutRenderModel, ReusableLayoutRenderNode, ReusablePerspective, createReusableLayoutRenderModel } from "./reusable.js";
10
- //#region src/client.d.ts
7
+ import { ColorLiteral, ColorSelection, ContainerOverride, ContainerPreset, CssTokenLength, DesignTokenCatalog, DesignTokenId, DesignTokenValidationCode, DesignTokenValidationError, ResponsiveTokenValue, SiteDesignTokenOverrides, ThemeColorToken, ThemeDesignTokens, applyDesignTokenOverrides, designTokenRevisionHash, generateDesignTokenCss, generateTailwindThemeCss, normalizeColorSelection, normalizeSiteDesignTokenOverrides, normalizeThemeDesignTokens, resolveColorSelection, resolveDesignTokenCatalog, responsiveValue } from "./design-tokens.js";
8
+ import { a as ReusableComponentRevision, i as ReusableComponentResolver, n as ReusableComponentPlacement, o as ReusableRenderIdentity, r as ReusableComponentProjection, s as createProjectionResolver, t as ReusableComponentBinding } from "./reusableExpansion-CqrqpK4A.js";
9
+ import { a as ImageFraming, c as focalBand, d as imageFramingAttrs, f as imageFramingStyle, h as unscaledFrameRect, i as IMAGE_FRAMING_MIN_ZOOM, l as framingDrag, m as parseImageFramingValueAttr, n as FrameRect, o as clampFocal, p as normalizeImageFraming, r as IMAGE_FRAMING_MAX_ZOOM, s as clampImageFraming, t as DEFAULT_IMAGE_FRAMING, u as framingZoom } from "./imageFraming-BgKBJiTB.js";
11
10
  export declare function createEldraClient(opts: EldraClientOptions): EldraClient;
12
- //#endregion
13
- //#region src/analytics.d.ts
14
11
  /**
15
12
  * Framework-free custom-event tracking for the Eldra analytics tracker script
16
13
  * (`<gateway>/js/script.js`, see `analyticsTrackerScript` in `@eldrajs/sdk`).
@@ -61,8 +58,6 @@ export declare function truncateUtf8(value: string, maxBytes: number): string;
61
58
  */
62
59
  export declare function normalizeAnalyticsProps(props: AnalyticsProps | undefined): Record<string, string>;
63
60
  export declare function createAnalytics(options: CreateAnalyticsOptions): Analytics;
64
- //#endregion
65
- //#region src/stegaWalk.d.ts
66
61
  /**
67
62
  * Projects a complete localized CMS draft into the active-locale shape used
68
63
  * by theme renderers. The input is never mutated, so Studio can keep sending
@@ -104,8 +99,6 @@ export declare function projectEntryDataLocale(data: Record<string, unknown>, lo
104
99
  * protected the same way whether it is fetched directly or embedded inside
105
100
  * a page. */
106
101
  export declare function encodeEntryDataStega(entryId: string, data: Record<string, unknown>, locale: string | null, apiId?: string): Record<string, unknown>;
107
- //#endregion
108
- //#region src/layoutIdentity.d.ts
109
102
  /**
110
103
  * The layout identity of a rendered element: the nearest
111
104
  * `[data-eldra-layout-node]` ancestor's node id and, when the placement is a
@@ -121,8 +114,6 @@ export declare function layoutIdentityOf(element: Element | null): {
121
114
  layoutNodeId?: string;
122
115
  reusablePlacementId?: string;
123
116
  };
124
- //#endregion
125
- //#region src/richText.d.ts
126
117
  /**
127
118
  * Ordered ids of every rich-text toolbar control a `block.json` may request
128
119
  * in `metadata.toolbar`. §18 v3: the theme no longer renders a toolbar —
@@ -145,8 +136,6 @@ type RichTextToolbarControl = (typeof RICH_TEXT_TOOLBAR_CONTROLS)[number];
145
136
  * click-tracking payload from `encodeStega`.
146
137
  */
147
138
  export declare function safeHref(value: unknown): string | null;
148
- //#endregion
149
- //#region src/richTextTree.d.ts
150
139
  /**
151
140
  * Framework-neutral read renderer for a §18 rich-text field's TipTap JSON
152
141
  * document. Produces a plain element tree; each framework binding maps that
@@ -242,8 +231,6 @@ interface BuildRichTextTreeOptions {
242
231
  * has to place a text node next to the field root's element children.
243
232
  */
244
233
  export declare function buildRichTextTree(doc: unknown, options: BuildRichTextTreeOptions): RichTextRenderNode[];
245
- //#endregion
246
- //#region src/richTextPositions.d.ts
247
234
  /**
248
235
  * ProseMirror-compatible document positions for a §18 rich-text field, with
249
236
  * no dependency on ProseMirror (nor TipTap, nor any UI library — the theme
@@ -415,8 +402,6 @@ export declare function describeSelectionContext(root: Element, node: Node): Ric
415
402
  * `code` mark. Anyone classifying an element must come through here.
416
403
  */
417
404
  export declare function richTextMarkNameOf(element: Element): string | null;
418
- //#endregion
419
- //#region src/blockFields.d.ts
420
405
  /**
421
406
  * The theme's scanned `block.json` field metadata, as `virtual:eldra/block-fields`
422
407
  * projects it. Framework-neutral: a binding's composable is a thin wrapper
@@ -459,8 +444,6 @@ export declare function registerBlockFields(fields: BlockFieldsMap, themeId: str
459
444
  * vite plugin still validates the ids at build time.
460
445
  */
461
446
  export declare function isBlockFieldLocalized(apiId: string | undefined, fieldId: string): boolean;
462
- //#endregion
463
- //#region src/themeId.d.ts
464
447
  /**
465
448
  * Theme ownership of block schemas, as the kit sees it.
466
449
  *
@@ -497,8 +480,6 @@ export declare function themeSchemaApiId(blockApiId: string, themeId: string | u
497
480
  export declare function registerThemeId(themeId: string | undefined): void;
498
481
  /** The registered theme id, if the app registered one. */
499
482
  export declare function getRegisteredThemeId(): string | undefined;
500
- //#endregion
501
- //#region src/seo.d.ts
502
483
  /**
503
484
  * The page-title and SEO-metadata resolver. Framework-free: the theme's `useEldraSeo`
504
485
  * (`@eldrajs/theme-nuxt`) feeds it, and Studio's search-result and share-card previews run the
@@ -622,8 +603,6 @@ export declare function renderSeoTitle(pattern: string, data: SeoData): string;
622
603
  export declare function pickSeoLocale(value: string | SeoLocaleMap | null | undefined, locale: string | null, defaultLocale?: string | null): string;
623
604
  /** Resolves every SEO value one route needs. Pure; never throws on malformed content. */
624
605
  export declare function resolveSeo(input: ResolveSeoInput): ResolvedSeo;
625
- //#endregion
626
- //#region src/sitemap.d.ts
627
606
  /**
628
607
  * `sitemap.xml` and `robots.txt` for a static build. Framework-free and pure: the theme-nuxt
629
608
  * module feeds it the prerendered route list, a test reads every byte without a Nuxt app.
@@ -713,8 +692,6 @@ export declare function buildAlternates(input: {
713
692
  hreflang: string;
714
693
  href: string;
715
694
  }>;
716
- //#endregion
717
- //#region src/structuredData.d.ts
718
695
  /**
719
696
  * schema.org JSON-LD builders, framework-free. A theme's page feeds them plain data it already
720
697
  * renders from (the same price, currency and stock the visible `<Price>` and stock line read), and
@@ -790,9 +767,21 @@ export declare function buildItemListLd(items: readonly {
790
767
  url: string;
791
768
  name: string;
792
769
  }[]): JsonLd;
770
+ export interface PostalAddressLdInput {
771
+ streetAddress?: string | null;
772
+ postalCode?: string | null;
773
+ addressLocality?: string | null;
774
+ /** ISO 3166-1 alpha-2, e.g. `IS`. */
775
+ addressCountry?: string | null;
776
+ }
793
777
  export interface OrganizationLdInput {
794
778
  name: string;
795
779
  url: string;
780
+ /** The registered name, e.g. `Eldra Tech ehf.`, when it differs from `name`. */
781
+ legalName?: string | null;
782
+ /** The company's registration or tax number; in Iceland the kennitala. */
783
+ taxID?: string | null;
784
+ address?: PostalAddressLdInput | null;
796
785
  logo?: string | null;
797
786
  sameAs?: readonly string[];
798
787
  contact?: {
@@ -803,6 +792,8 @@ export interface OrganizationLdInput {
803
792
  export declare function buildOrganizationLd(input: OrganizationLdInput): JsonLd;
804
793
  export interface WebSiteLdInput {
805
794
  name: string;
795
+ /** Other names people know the site by, e.g. its domain; Google weighs them when picking a site name. */
796
+ alternateName?: readonly string[];
806
797
  url: string;
807
798
  /** The site's search page path (`/search`), or `null`/absent when there is none. A SearchAction
808
799
  * pointing at a page that does not exist is worse than none. It is queried with `?q=`. */
@@ -840,5 +831,4 @@ export interface StructuredDataContext {
840
831
  }
841
832
  /** Applies the theme's opt-out and extender to the nodes a page built. Pure. */
842
833
  export declare function applyStructuredDataPolicy(entries: readonly StructuredDataEntry[], policy: StructuredDataPolicy, context: StructuredDataContext): JsonLd[];
843
- //#endregion
844
834
  export { type BeforeInputClassification, type BlockFieldDefinition, type BlockFieldsMap, BlockSlotDefinition, type BuildRichTextTreeOptions, CatalogDoc, CatalogList, CatalogQuery, ColorLiteral, ColorSelection, ContainerOverride, ContainerPreset, CssLength, CssTokenLength, DEFAULT_IMAGE_FRAMING, DEFAULT_LAYOUT_BREAKPOINTS, DesignTokenCatalog, DesignTokenId, DesignTokenValidationCode, DesignTokenValidationError, DynamicRouteResolution, EDIT_MODE_HIDDEN_OPACITY, EldraCatalogReader, EldraClient, EldraClientError, EldraClientOptions, EldraRetryOptions, EntryDoc, EntryList, EntryQuery, FrameRect, IMAGE_FRAMING_MAX_ZOOM, IMAGE_FRAMING_MIN_ZOOM, ImageFraming, LAYOUT_BREAKPOINTS, LayoutBlockNode, LayoutBreakpoint, LayoutBreakpoints, LayoutContainerNode, LayoutDocument, LayoutNode, LayoutRenderBlockNode, LayoutRenderModel, LayoutRenderNode, LayoutStyle, LayoutValidationCode, LayoutValidationError, LayoutValidationIssue, MAX_DYNAMIC_ROUTE_PATTERN_BYTES, type NegotiatedEditorCapabilities, NormalizedLayoutResult, type OverlayRuntime, type OverlayRuntimeOptions, PREVIEW_ROUTER_MESSAGE_TYPES, PageLayoutDocument, PageLayoutNode, type PageLike, PageMeta, ParsedDynamicRoutePattern, type PreviewMessageRouter, type PreviewRouterMessageType, ResolveEntryListBody, ResolvedLayoutDocument, ResolvedLayoutNode, ResolvedLayoutStyle, Responsive, ResponsiveTokenValue, type ReusableComponentBinding, type ReusableComponentPlacement, type ReusableComponentProjection, type ReusableComponentResolver, type ReusableComponentRevision, ReusableComponentSnapshotCache, ReusableLayoutOptions, ReusableLayoutRenderModel, ReusableLayoutRenderNode, ReusablePerspective, type ReusableRenderIdentity, type RichTextDomPoint, type RichTextFieldIdentity, type RichTextMark, type RichTextNode, type RichTextPositionNode, type RichTextPositions, type RichTextRenderChild, type RichTextRenderNode, type RichTextRenderStateChange, type RichTextSelectionContext, type RichTextToolbarControl, RouteTemplateLike, SiteDesignTokenOverrides, SizingLength, SlotValidationContext, Spacing, type StegaMeta, TemplateBlockDefinition, TemplateBlockFieldDefinition, TemplateBlockNode, TemplateLayoutContext, TemplateLayoutDocument, TemplateLayoutNode, TemplateLayoutRenderModel, TemplateLayoutRenderNode, ThemeColorToken, ThemeDesignTokens, WidthLength, activeLayoutBreakpoint, applyDesignTokenOverrides, buildDynamicRoutePath, buildTemplateBlockRenames, catalogRouteTarget, clampFocal, clampImageFraming, classifyBeforeInput, createLayoutRenderModel, createOverlayRuntime, createPreviewMessageRouter, createProjectionResolver, createReusableLayoutRenderModel, createTemplateLayoutRenderModel, decodeStega, designTokenRevisionHash, encodeStega, focalBand, framingDrag, framingZoom, generateDesignTokenCss, generateLayoutCss, generateTailwindThemeCss, hiddenLayoutBreakpoints, imageFramingAttrs, imageFramingStyle, layoutNodeClass, layoutRenderNodeId, matchDynamicRoutePattern, normalizeColorSelection, normalizeImageFraming, normalizeLayoutDocument, normalizeSiteDesignTokenOverrides, normalizeThemeDesignTokens, parseDynamicRoutePattern, parseImageFramingValueAttr, resolveColorSelection, resolveDesignTokenCatalog, resolveLayoutBreakpoints, resolveLayoutDocument, resolvePagePath, resolveRoute, responsiveValue, stripStega, unscaledFrameRect, validateLayoutDocument };
package/dist/index.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import { decodeStega, encodeStega, stripStega } from "./stega.js";
2
- import { a as blockApiIdOf, c as registeredBlockApiId, i as THEME_ID_PATTERN, l as themeSchemaApiId, n as createTemplateLayoutRenderModel, o as getRegisteredThemeId, r as RESERVED_THEME_IDS, s as registerThemeId, t as buildTemplateBlockRenames } from "./templateLayout-CpZb6EEg.js";
3
- import { a as parseDynamicRoutePattern, i as matchDynamicRoutePattern, n as buildDynamicRoutePath, o as resolveRoute, r as catalogRouteTarget, s as resolvePagePath, t as MAX_DYNAMIC_ROUTE_PATTERN_BYTES } from "./dynamicRoute-CxXY-Y_8.js";
4
- import { DEFAULT_IMAGE_FRAMING, IMAGE_FRAMING_MAX_ZOOM, IMAGE_FRAMING_MIN_ZOOM, clampFocal, clampImageFraming, focalBand, framingDrag, framingZoom, imageFramingAttrs, imageFramingStyle, normalizeImageFraming, parseImageFramingValueAttr, unscaledFrameRect } from "./image-framing.js";
5
- import { a as RICH_TEXT_PAD_ATTR, c as domRangeToPositions, d as restampRichTextPositions, f as richTextMarkNameOf, h as layoutIdentityOf, i as RICH_TEXT_MARK_ELEMENTS, l as resolveDomPoint, m as richTextText, n as createOverlayRuntime, o as computeRichTextPositions, p as richTextNodeSize, r as RICH_TEXT_LEAF_TYPES, s as describeSelectionContext, t as classifyBeforeInput, u as resolveDomPosition } from "./overlay-C8-F1jzU.js";
6
- import { DEFAULT_LAYOUT_BREAKPOINTS, EDIT_MODE_HIDDEN_OPACITY, LAYOUT_BREAKPOINTS, LayoutValidationError, activeLayoutBreakpoint, createLayoutRenderModel, generateLayoutCss, hiddenLayoutBreakpoints, layoutNodeClass, layoutRenderNodeId, normalizeLayoutDocument, resolveLayoutBreakpoints, resolveLayoutDocument, validateLayoutDocument } from "./layout.js";
2
+ import { a as blockApiIdOf, c as registeredBlockApiId, i as THEME_ID_PATTERN, l as themeSchemaApiId, n as createTemplateLayoutRenderModel, o as getRegisteredThemeId, r as RESERVED_THEME_IDS, s as registerThemeId, t as buildTemplateBlockRenames } from "./templateLayout-CGMAmJBe.js";
3
+ import { a as parseDynamicRoutePattern, i as matchDynamicRoutePattern, n as buildDynamicRoutePath, o as resolveRoute, r as catalogRouteTarget, s as resolvePagePath, t as MAX_DYNAMIC_ROUTE_PATTERN_BYTES } from "./dynamicRoute-k60idORj.js";
4
+ import { a as RICH_TEXT_PAD_ATTR, c as domRangeToPositions, d as restampRichTextPositions, f as richTextMarkNameOf, h as layoutIdentityOf, i as RICH_TEXT_MARK_ELEMENTS, l as resolveDomPoint, m as richTextText, n as createOverlayRuntime, o as computeRichTextPositions, p as richTextNodeSize, r as RICH_TEXT_LEAF_TYPES, s as describeSelectionContext, t as classifyBeforeInput, u as resolveDomPosition } from "./overlay-a8pghnYy.js";
7
5
  import { PREVIEW_ROUTER_MESSAGE_TYPES, createPreviewMessageRouter } from "./preview-router.js";
8
- import { r as createProjectionResolver } from "./reusableExpansion-Bqm83nCJ.js";
6
+ import { DEFAULT_LAYOUT_BREAKPOINTS, EDIT_MODE_HIDDEN_OPACITY, LAYOUT_BREAKPOINTS, LayoutValidationError, activeLayoutBreakpoint, createLayoutRenderModel, generateLayoutCss, hiddenLayoutBreakpoints, layoutNodeClass, layoutRenderNodeId, normalizeLayoutDocument, resolveLayoutBreakpoints, resolveLayoutDocument, validateLayoutDocument } from "./layout.js";
9
7
  import { ReusableComponentSnapshotCache, createReusableLayoutRenderModel } from "./reusable.js";
8
+ import { r as createProjectionResolver } from "./reusableExpansion-Cg9AE8JX.js";
10
9
  import { DesignTokenValidationError, applyDesignTokenOverrides, designTokenRevisionHash, generateDesignTokenCss, generateTailwindThemeCss, normalizeColorSelection, normalizeSiteDesignTokenOverrides, normalizeThemeDesignTokens, resolveColorSelection, resolveDesignTokenCatalog, responsiveValue } from "./design-tokens.js";
11
- //#region src/blockFields.ts
10
+ import { DEFAULT_IMAGE_FRAMING, IMAGE_FRAMING_MAX_ZOOM, IMAGE_FRAMING_MIN_ZOOM, clampFocal, clampImageFraming, focalBand, framingDrag, framingZoom, imageFramingAttrs, imageFramingStyle, normalizeImageFraming, parseImageFramingValueAttr, unscaledFrameRect } from "./image-framing.js";
11
+ // src/blockFields.ts
12
12
  let registeredBlockFields = {};
13
13
  /**
14
14
  * Registers the theme's block field metadata so `isBlockFieldLocalized` can
@@ -296,8 +296,7 @@ function abortReason(signal) {
296
296
  if (reason !== void 0) return reason;
297
297
  return new DOMException("This operation was aborted", "AbortError");
298
298
  }
299
- //#endregion
300
- //#region src/stegaWalk.ts
299
+ // src/stegaWalk.ts
301
300
  const LOCALE_KEY = /^[A-Za-z0-9]{1,8}(?:-[A-Za-z0-9]{1,8})*$/;
302
301
  /**
303
302
  * A resolved `select` field's public-read shape: the CMS gateway replaces
@@ -481,8 +480,7 @@ function looksLikeRichTextRoot(value) {
481
480
  function looksLikeRichTextNode(value) {
482
481
  return typeof value === "object" && value !== null && !Array.isArray(value) && typeof value.type === "string";
483
482
  }
484
- //#endregion
485
- //#region src/clientTypes.ts
483
+ // src/clientTypes.ts
486
484
  var EldraClientError = class extends Error {
487
485
  status;
488
486
  path;
@@ -493,8 +491,7 @@ var EldraClientError = class extends Error {
493
491
  this.path = path;
494
492
  }
495
493
  };
496
- //#endregion
497
- //#region src/client.ts
494
+ // src/client.ts
498
495
  /**
499
496
  * Strips every trailing `/` from a URL (`https://x///` → `https://x`). A regex
500
497
  * equivalent (`/\/+$/`) backtracks polynomially on a long run of slashes
@@ -810,8 +807,7 @@ function projectLocalizedValue(value, locale, defaultLocale, apiId, path) {
810
807
  function projectLocalizedLeaves(data, locale, defaultLocale, apiId) {
811
808
  return projectLocalizedValue(data, locale, defaultLocale, apiId, "");
812
809
  }
813
- //#endregion
814
- //#region src/analytics.ts
810
+ // src/analytics.ts
815
811
  /** Core's ingest limits (`SanitizeProps`): 30 entries, keys up to 60 bytes, values 300 bytes. */
816
812
  const ANALYTICS_MAX_PROPS = 30;
817
813
  const ANALYTICS_MAX_KEY_BYTES = 60;
@@ -884,8 +880,7 @@ function createAnalytics(options) {
884
880
  }
885
881
  };
886
882
  }
887
- //#endregion
888
- //#region src/richText.ts
883
+ // src/richText.ts
889
884
  /**
890
885
  * Ordered ids of every rich-text toolbar control a `block.json` may request
891
886
  * in `metadata.toolbar`. §18 v3: the theme no longer renders a toolbar —
@@ -948,8 +943,7 @@ function safeHref(value) {
948
943
  return null;
949
944
  }
950
945
  }
951
- //#endregion
952
- //#region src/richTextTree.ts
946
+ // src/richTextTree.ts
953
947
  /**
954
948
  * Framework-neutral read renderer for a §18 rich-text field's TipTap JSON
955
949
  * document. Produces a plain element tree; each framework binding maps that
@@ -1212,8 +1206,7 @@ function buildFileAttachmentMark(mark, options, child) {
1212
1206
  children: [child]
1213
1207
  };
1214
1208
  }
1215
- //#endregion
1216
- //#region src/seo.ts
1209
+ // src/seo.ts
1217
1210
  /** The only pattern syntax version this resolver understands. */
1218
1211
  const SEO_SYNTAX = 1;
1219
1212
  const PLACEHOLDER = /\{\{([^{}]+)\}\}/g;
@@ -1355,8 +1348,7 @@ function resolveSeo(input) {
1355
1348
  twitterSite: handle === "" ? null : `@${handle}`
1356
1349
  };
1357
1350
  }
1358
- //#endregion
1359
- //#region src/sitemap.ts
1351
+ // src/sitemap.ts
1360
1352
  const SITEMAP_MAX_URLS = 5e4;
1361
1353
  const SITEMAP_MAX_BYTES = 52428800;
1362
1354
  const URLSET_OPEN = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\" xmlns:xhtml=\"http://www.w3.org/1999/xhtml\">\n";
@@ -1512,8 +1504,7 @@ function buildAlternates(input) {
1512
1504
  href: href(input.pathFor(void 0))
1513
1505
  }];
1514
1506
  }
1515
- //#endregion
1516
- //#region src/structuredData.ts
1507
+ // src/structuredData.ts
1517
1508
  const STRUCTURED_DATA_TYPES = [
1518
1509
  "product",
1519
1510
  "breadcrumb",
@@ -1674,9 +1665,16 @@ function buildItemListLd(items) {
1674
1665
  }
1675
1666
  function buildOrganizationLd(input) {
1676
1667
  const contact = input.contact;
1668
+ const address = clean({ ...input.address });
1677
1669
  return node("Organization", {
1678
1670
  name: input.name,
1671
+ legalName: input.legalName,
1679
1672
  url: input.url,
1673
+ taxID: input.taxID,
1674
+ address: address ? {
1675
+ "@type": "PostalAddress",
1676
+ ...address
1677
+ } : void 0,
1680
1678
  logo: input.logo,
1681
1679
  sameAs: input.sameAs,
1682
1680
  contactPoint: contact && (contact.email || contact.telephone) ? {
@@ -1691,6 +1689,7 @@ function buildWebSiteLd(input) {
1691
1689
  const search = (input.searchPath ?? "").trim();
1692
1690
  return node("WebSite", {
1693
1691
  name: input.name,
1692
+ alternateName: input.alternateName,
1694
1693
  url: input.url,
1695
1694
  potentialAction: search === "" ? void 0 : {
1696
1695
  "@type": "SearchAction",
@@ -1761,5 +1760,4 @@ function applyStructuredDataPolicy(entries, policy, context) {
1761
1760
  }
1762
1761
  return out;
1763
1762
  }
1764
- //#endregion
1765
1763
  export { ANALYTICS_MAX_KEY_BYTES, ANALYTICS_MAX_NAME_BYTES, ANALYTICS_MAX_PROPS, ANALYTICS_MAX_VALUE_BYTES, ANALYTICS_QUEUE_LIMIT, DEFAULT_HOME_TITLE_PATTERN, DEFAULT_IMAGE_FRAMING, DEFAULT_LAYOUT_BREAKPOINTS, DEFAULT_TITLE_PATTERN, DesignTokenValidationError, EDIT_MODE_HIDDEN_OPACITY, EldraClientError, IMAGE_FRAMING_MAX_ZOOM, IMAGE_FRAMING_MIN_ZOOM, LAYOUT_BREAKPOINTS, LD_DESCRIPTION_MAX, LayoutValidationError, MAX_DYNAMIC_ROUTE_PATTERN_BYTES, PREVIEW_ROUTER_MESSAGE_TYPES, RESERVED_THEME_IDS, RICH_TEXT_LEAF_TYPES, RICH_TEXT_MARK_ELEMENTS, RICH_TEXT_PAD_ATTR, RICH_TEXT_TOOLBAR_CONTROLS, ReusableComponentSnapshotCache, SEO_SYNTAX, SITEMAP_MAX_BYTES, SITEMAP_MAX_URLS, STRUCTURED_DATA_TYPES, THEME_ID_PATTERN, activeLayoutBreakpoint, applyDesignTokenOverrides, applyStructuredDataPolicy, blockApiIdOf, buildAlternates, buildBreadcrumbLd, buildDynamicRoutePath, buildItemListLd, buildOrganizationLd, buildProductLd, buildRichTextTree, buildRobots, buildSitemap, buildTemplateBlockRenames, buildWebSiteLd, catalogRouteTarget, clampFocal, clampImageFraming, classifyBeforeInput, computeRichTextPositions, createAnalytics, createEldraClient, createLayoutRenderModel, createOverlayRuntime, createPreviewMessageRouter, createProjectionResolver, createReusableLayoutRenderModel, createTemplateLayoutRenderModel, decodeStega, describeSelectionContext, designTokenRevisionHash, domRangeToPositions, encodeEntryDataStega, encodeStega, escapeXml, focalBand, framingDrag, framingZoom, generateDesignTokenCss, generateLayoutCss, generateTailwindThemeCss, getRegisteredThemeId, hiddenLayoutBreakpoints, imageFramingAttrs, imageFramingStyle, isBlockFieldLocalized, layoutIdentityOf, layoutNodeClass, layoutRenderNodeId, ldPlainText, ldPrice, matchDynamicRoutePattern, normalizeAnalyticsProps, normalizeColorSelection, normalizeImageFraming, normalizeLayoutDocument, normalizeSiteDesignTokenOverrides, normalizeThemeDesignTokens, parseDynamicRoutePattern, parseImageFramingValueAttr, pickSeoLocale, projectEntryDataLocale, registerBlockFields, registerThemeId, renderSeoTitle, resolveColorSelection, resolveDesignTokenCatalog, resolveDomPoint, resolveDomPosition, resolveLayoutBreakpoints, resolveLayoutDocument, resolvePagePath, resolveRoute, resolveSeo, responsiveValue, restampRichTextPositions, richTextMarkNameOf, richTextNodeSize, richTextText, safeHref, serializeLd, siteOrigin, sitemapLastmod, stripStega, substituteSeoPattern, themeSchemaApiId, tidySeoTitle, truncateUtf8, unscaledFrameRect, validGtin, validateLayoutDocument };
@@ -1,4 +1,3 @@
1
- //#region src/layout.d.ts
2
1
  type LayoutBreakpoint = 'normal' | 'tablet' | 'mobile';
3
2
  type Responsive<T> = {
4
3
  normal: T;
@@ -240,5 +239,4 @@ declare function activeLayoutBreakpoint(width: number, breakpoints?: LayoutBreak
240
239
  * finds the hidden nodes by when it marks them for edit mode.
241
240
  */
242
241
  declare function hiddenLayoutBreakpoints(style?: LayoutStyle): LayoutBreakpoint[];
243
- //#endregion
244
242
  export { generateLayoutCss as A, Responsive as C, WidthLength as D, Spacing as E, resolveLayoutBreakpoints as F, resolveLayoutDocument as I, validateLayoutDocument as L, layoutNodeClass as M, layoutRenderNodeId as N, activeLayoutBreakpoint as O, normalizeLayoutDocument as P, ResolvedLayoutStyle as S, SlotValidationContext as T, LayoutValidationError as _, LAYOUT_BREAKPOINTS as a, ResolvedLayoutDocument as b, LayoutBreakpoints as c, LayoutNode as d, LayoutRenderBlockNode as f, LayoutValidationCode as g, LayoutStyle as h, EDIT_MODE_HIDDEN_OPACITY as i, hiddenLayoutBreakpoints as j, createLayoutRenderModel as k, LayoutContainerNode as l, LayoutRenderNode as m, CssLength as n, LayoutBlockNode as o, LayoutRenderModel as p, DEFAULT_LAYOUT_BREAKPOINTS as r, LayoutBreakpoint as s, BlockSlotDefinition as t, LayoutDocument as u, LayoutValidationIssue as v, SizingLength as w, ResolvedLayoutNode as x, NormalizedLayoutResult as y };
package/dist/layout.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { A as generateLayoutCss, C as Responsive, D as WidthLength, E as Spacing, F as resolveLayoutBreakpoints, I as resolveLayoutDocument, L as validateLayoutDocument, M as layoutNodeClass, N as layoutRenderNodeId, O as activeLayoutBreakpoint, P as normalizeLayoutDocument, S as ResolvedLayoutStyle, T as SlotValidationContext, _ as LayoutValidationError, a as LAYOUT_BREAKPOINTS, b as ResolvedLayoutDocument, c as LayoutBreakpoints, d as LayoutNode, f as LayoutRenderBlockNode, g as LayoutValidationCode, h as LayoutStyle, i as EDIT_MODE_HIDDEN_OPACITY, j as hiddenLayoutBreakpoints, k as createLayoutRenderModel, l as LayoutContainerNode, m as LayoutRenderNode, n as CssLength, o as LayoutBlockNode, p as LayoutRenderModel, r as DEFAULT_LAYOUT_BREAKPOINTS, s as LayoutBreakpoint, t as BlockSlotDefinition, u as LayoutDocument, v as LayoutValidationIssue, w as SizingLength, x as ResolvedLayoutNode, y as NormalizedLayoutResult } from "./layout-CWq_v6ws.js";
1
+ import { A as generateLayoutCss, C as Responsive, D as WidthLength, E as Spacing, F as resolveLayoutBreakpoints, I as resolveLayoutDocument, L as validateLayoutDocument, M as layoutNodeClass, N as layoutRenderNodeId, O as activeLayoutBreakpoint, P as normalizeLayoutDocument, S as ResolvedLayoutStyle, T as SlotValidationContext, _ as LayoutValidationError, a as LAYOUT_BREAKPOINTS, b as ResolvedLayoutDocument, c as LayoutBreakpoints, d as LayoutNode, f as LayoutRenderBlockNode, g as LayoutValidationCode, h as LayoutStyle, i as EDIT_MODE_HIDDEN_OPACITY, j as hiddenLayoutBreakpoints, k as createLayoutRenderModel, l as LayoutContainerNode, m as LayoutRenderNode, n as CssLength, o as LayoutBlockNode, p as LayoutRenderModel, r as DEFAULT_LAYOUT_BREAKPOINTS, s as LayoutBreakpoint, t as BlockSlotDefinition, u as LayoutDocument, v as LayoutValidationIssue, w as SizingLength, x as ResolvedLayoutNode, y as NormalizedLayoutResult } from "./layout-CkPOfiOM.js";
2
2
  export { BlockSlotDefinition, CssLength, DEFAULT_LAYOUT_BREAKPOINTS, EDIT_MODE_HIDDEN_OPACITY, LAYOUT_BREAKPOINTS, LayoutBlockNode, LayoutBreakpoint, LayoutBreakpoints, LayoutContainerNode, LayoutDocument, LayoutNode, LayoutRenderBlockNode, LayoutRenderModel, LayoutRenderNode, LayoutStyle, LayoutValidationCode, LayoutValidationError, LayoutValidationIssue, NormalizedLayoutResult, ResolvedLayoutDocument, ResolvedLayoutNode, ResolvedLayoutStyle, Responsive, SizingLength, SlotValidationContext, Spacing, WidthLength, activeLayoutBreakpoint, createLayoutRenderModel, generateLayoutCss, hiddenLayoutBreakpoints, layoutNodeClass, layoutRenderNodeId, normalizeLayoutDocument, resolveLayoutBreakpoints, resolveLayoutDocument, validateLayoutDocument };
package/dist/layout.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/layout.ts
1
+ // src/layout.ts
2
2
  /** The theme's breakpoints when it configures none — today's numbers,
3
3
  * unchanged, so an unconfigured theme's CSS is byte-identical to before this
4
4
  * type existed. */
@@ -926,5 +926,4 @@ function sha256Hex(bytes) {
926
926
  function rotate(value, bits) {
927
927
  return value >>> bits | value << 32 - bits;
928
928
  }
929
- //#endregion
930
929
  export { DEFAULT_LAYOUT_BREAKPOINTS, EDIT_MODE_HIDDEN_OPACITY, LAYOUT_BREAKPOINTS, LayoutValidationError, activeLayoutBreakpoint, createLayoutRenderModel, generateLayoutCss, hiddenLayoutBreakpoints, layoutNodeClass, layoutRenderNodeId, normalizeLayoutDocument, resolveLayoutBreakpoints, resolveLayoutDocument, validateLayoutDocument };
package/dist/links.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import { i as RouteTemplateLike, u as PageLike } from "./dynamicRoute-pRTBoYT6.js";
2
- //#region src/links.d.ts
1
+ import { i as RouteTemplateLike, u as PageLike } from "./dynamicRoute-DzSNn4tV.js";
3
2
  /** What a `link` field's value points at. Six are destinations; `none` is a
4
3
  * heading — a row that groups the links under it and goes nowhere itself, which
5
4
  * is the only shape a mega-menu or footer column heading has. */
@@ -109,5 +108,4 @@ export declare function linkTargetKeys(value: unknown): string[];
109
108
  * Children resolve one level; a child's own `children` are ignored, matching
110
109
  * the depth the grammar allows.
111
110
  */
112
- export declare function resolveLink(value: unknown, context: LinkRouteContext): ResolvedLink | null;
113
- //#endregion
111
+ export declare function resolveLink(value: unknown, context: LinkRouteContext): ResolvedLink | null;
package/dist/links.js CHANGED
@@ -1,6 +1,6 @@
1
+ import { a as parseDynamicRoutePattern, n as buildDynamicRoutePath, s as resolvePagePath } from "./dynamicRoute-k60idORj.js";
1
2
  import { stripStega } from "./stega.js";
2
- import { a as parseDynamicRoutePattern, n as buildDynamicRoutePath, s as resolvePagePath } from "./dynamicRoute-CxXY-Y_8.js";
3
- //#region src/links.ts
3
+ // src/links.ts
4
4
  /** The route template `schemaApiId` that serves each catalog kind. The three
5
5
  * differ by this constant and nothing else. */
6
6
  const CATALOG_ROUTE_TARGETS = {
@@ -180,5 +180,4 @@ function asLinkValue(value) {
180
180
  function plain(value) {
181
181
  return typeof value === "string" ? stripStega(value).trim() : "";
182
182
  }
183
- //#endregion
184
183
  export { linkTargetKeys, resolveLink, safeLinkHref };
@@ -1,8 +1,8 @@
1
- import { decodeStega, stripStega } from "./stega.js";
2
- import { l as RICH_TEXT_COMMAND_NAMES } from "./bridge-CLi2P6Wh.js";
1
+ import { l as RICH_TEXT_COMMAND_NAMES } from "./bridge-DSH4N82G.js";
3
2
  import { framingDrag, framingZoom, imageFramingStyle, parseImageFramingValueAttr, unscaledFrameRect } from "./image-framing.js";
4
3
  import { activeLayoutBreakpoint } from "./layout.js";
5
- //#region src/layoutIdentity.ts
4
+ import { decodeStega, stripStega } from "./stega.js";
5
+ // src/layoutIdentity.ts
6
6
  /**
7
7
  * The layout identity of a rendered element: the nearest
8
8
  * `[data-eldra-layout-node]` ancestor's node id and, when the placement is a
@@ -23,8 +23,7 @@ function layoutIdentityOf(element) {
23
23
  ...reusablePlacementId ? { reusablePlacementId } : {}
24
24
  };
25
25
  }
26
- //#endregion
27
- //#region src/richTextPositions.ts
26
+ // src/richTextPositions.ts
28
27
  /**
29
28
  * ProseMirror-compatible document positions for a §18 rich-text field, with
30
29
  * no dependency on ProseMirror (nor TipTap, nor any UI library — the theme
@@ -493,8 +492,7 @@ function blockOf(element) {
493
492
  }
494
493
  return { type };
495
494
  }
496
- //#endregion
497
- //#region src/overlay.ts
495
+ // src/overlay.ts
498
496
  const TEXT_EDIT_DEBOUNCE_MS = 300;
499
497
  /**
500
498
  * §18 v3: the `beforeinput` inputTypes the theme is willing to let the
@@ -2904,5 +2902,4 @@ function createOverlayRuntime(opts) {
2904
2902
  }
2905
2903
  };
2906
2904
  }
2907
- //#endregion
2908
2905
  export { RICH_TEXT_PAD_ATTR as a, domRangeToPositions as c, restampRichTextPositions as d, richTextMarkNameOf as f, layoutIdentityOf as h, RICH_TEXT_MARK_ELEMENTS as i, resolveDomPoint as l, richTextText as m, createOverlayRuntime as n, computeRichTextPositions as o, richTextNodeSize as p, RICH_TEXT_LEAF_TYPES as r, describeSelectionContext as s, classifyBeforeInput as t, resolveDomPosition as u };
@@ -1,7 +1,6 @@
1
- import { S as RichTextCommandName, T as StructuralDragPayload, u as BridgePayloads } from "./index-DxrkKyG4.js";
2
- import { n as FrameRect } from "./imageFraming-BUZ-yqho.js";
3
- import { c as LayoutBreakpoints } from "./layout-CWq_v6ws.js";
4
- //#region src/previewRouter.d.ts
1
+ import { S as RichTextCommandName, T as StructuralDragPayload, u as BridgePayloads } from "./index-C3tgQ-hG.js";
2
+ import { n as FrameRect } from "./imageFraming-BgKBJiTB.js";
3
+ import { c as LayoutBreakpoints } from "./layout-CkPOfiOM.js";
5
4
  /**
6
5
  * The `editor:*` messages whose whole effect is a call on the overlay
7
6
  * runtime. They carry no framework state, so they belong here rather than in
@@ -42,8 +41,6 @@ interface PreviewMessageRouter {
42
41
  * `onMessage` routes here) before the overlay runtime it posts through.
43
42
  */
44
43
  declare function createPreviewMessageRouter(overlay: OverlayRuntime | (() => OverlayRuntime)): PreviewMessageRouter;
45
- //#endregion
46
- //#region src/overlay.d.ts
47
44
  /**
48
45
  * §18 v3: which rendered rich-text field something is about. The optional pair
49
46
  * is what tells two renders of the same entry apart — a layout node and a
@@ -197,5 +194,4 @@ interface OverlayRuntime {
197
194
  };
198
195
  }
199
196
  declare function createOverlayRuntime(opts: OverlayRuntimeOptions): OverlayRuntime;
200
- //#endregion
201
197
  export { RichTextRenderStateChange as a, NegotiatedEditorCapabilities as c, PreviewRouterMessageType as d, createPreviewMessageRouter as f, RichTextFieldIdentity as i, PREVIEW_ROUTER_MESSAGE_TYPES as l, OverlayRuntime as n, classifyBeforeInput as o, OverlayRuntimeOptions as r, createOverlayRuntime as s, BeforeInputClassification as t, PreviewMessageRouter as u };
package/dist/overlay.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as RichTextRenderStateChange, c as NegotiatedEditorCapabilities, d as PreviewRouterMessageType, f as createPreviewMessageRouter, i as RichTextFieldIdentity, l as PREVIEW_ROUTER_MESSAGE_TYPES, n as OverlayRuntime, o as classifyBeforeInput, r as OverlayRuntimeOptions, s as createOverlayRuntime, t as BeforeInputClassification, u as PreviewMessageRouter } from "./overlay-Bgi0tIbN.js";
1
+ import { a as RichTextRenderStateChange, c as NegotiatedEditorCapabilities, d as PreviewRouterMessageType, f as createPreviewMessageRouter, i as RichTextFieldIdentity, l as PREVIEW_ROUTER_MESSAGE_TYPES, n as OverlayRuntime, o as classifyBeforeInput, r as OverlayRuntimeOptions, s as createOverlayRuntime, t as BeforeInputClassification, u as PreviewMessageRouter } from "./overlay-mKeZLljc.js";
2
2
  export { BeforeInputClassification, type NegotiatedEditorCapabilities, OverlayRuntime, OverlayRuntimeOptions, PREVIEW_ROUTER_MESSAGE_TYPES, type PreviewMessageRouter, type PreviewRouterMessageType, RichTextFieldIdentity, RichTextRenderStateChange, classifyBeforeInput, createOverlayRuntime, createPreviewMessageRouter };
package/dist/overlay.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./stega.js";
2
2
  import "./image-framing.js";
3
- import { n as createOverlayRuntime, t as classifyBeforeInput } from "./overlay-C8-F1jzU.js";
3
+ import { n as createOverlayRuntime, t as classifyBeforeInput } from "./overlay-a8pghnYy.js";
4
4
  import "./layout.js";
5
5
  import { PREVIEW_ROUTER_MESSAGE_TYPES, createPreviewMessageRouter } from "./preview-router.js";
6
6
  export { PREVIEW_ROUTER_MESSAGE_TYPES, classifyBeforeInput, createOverlayRuntime, createPreviewMessageRouter };
@@ -1,2 +1,2 @@
1
- import { c as NegotiatedEditorCapabilities, d as PreviewRouterMessageType, f as createPreviewMessageRouter, l as PREVIEW_ROUTER_MESSAGE_TYPES, u as PreviewMessageRouter } from "./overlay-Bgi0tIbN.js";
1
+ import { c as NegotiatedEditorCapabilities, d as PreviewRouterMessageType, f as createPreviewMessageRouter, l as PREVIEW_ROUTER_MESSAGE_TYPES, u as PreviewMessageRouter } from "./overlay-mKeZLljc.js";
2
2
  export { NegotiatedEditorCapabilities, PREVIEW_ROUTER_MESSAGE_TYPES, PreviewMessageRouter, PreviewRouterMessageType, createPreviewMessageRouter };
@@ -1,4 +1,4 @@
1
- //#region src/previewRouter.ts
1
+ // src/previewRouter.ts
2
2
  /**
3
3
  * The `editor:*` messages whose whole effect is a call on the overlay
4
4
  * runtime. They carry no framework state, so they belong here rather than in
@@ -126,5 +126,4 @@ function richTextTarget(payload) {
126
126
  ...typeof message.reusablePlacementId === "string" && message.reusablePlacementId !== "" ? { reusablePlacementId: message.reusablePlacementId } : {}
127
127
  };
128
128
  }
129
- //#endregion
130
129
  export { PREVIEW_ROUTER_MESSAGE_TYPES, createPreviewMessageRouter };
@@ -1,6 +1,5 @@
1
- import { T as SlotValidationContext, c as LayoutBreakpoints, d as LayoutNode, m as LayoutRenderNode, p as LayoutRenderModel, u as LayoutDocument } from "./layout-CWq_v6ws.js";
2
- import { a as ReusableComponentRevision, i as ReusableComponentResolver, n as ReusableComponentPlacement, o as ReusableRenderIdentity, r as ReusableComponentProjection, s as createProjectionResolver, t as ReusableComponentBinding } from "./reusableExpansion-CXvs_ckx.js";
3
- //#region src/reusable.d.ts
1
+ import { T as SlotValidationContext, c as LayoutBreakpoints, d as LayoutNode, m as LayoutRenderNode, p as LayoutRenderModel, u as LayoutDocument } from "./layout-CkPOfiOM.js";
2
+ import { a as ReusableComponentRevision, i as ReusableComponentResolver, n as ReusableComponentPlacement, o as ReusableRenderIdentity, r as ReusableComponentProjection, s as createProjectionResolver, t as ReusableComponentBinding } from "./reusableExpansion-CqrqpK4A.js";
4
3
  export type PageLayoutNode = Extract<LayoutNode, {
5
4
  type: 'block';
6
5
  }> | ReusableComponentPlacement | (Omit<Extract<LayoutNode, {
@@ -62,5 +61,4 @@ export declare class ReusableComponentSnapshotCache {
62
61
  * output. The returned model is shared by Vue preview and SSR/static output.
63
62
  */
64
63
  export declare function createReusableLayoutRenderModel(value: unknown, options: ReusableLayoutOptions): ReusableLayoutRenderModel;
65
- //#endregion
66
64
  export { type ReusableComponentBinding, type ReusableComponentPlacement, type ReusableComponentProjection, type ReusableComponentResolver, type ReusableComponentRevision, type ReusableRenderIdentity, createProjectionResolver };
package/dist/reusable.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { createLayoutRenderModel } from "./layout.js";
2
- import { a as expandReusablePlacements, c as validateProjectionRevisions, i as decorateReusableIdentity, n as assertClosedKeys, o as failLayout, r as createProjectionResolver, s as hasOwn, t as asObject } from "./reusableExpansion-Bqm83nCJ.js";
3
- //#region src/reusable.ts
2
+ import { a as expandReusablePlacements, c as validateProjectionRevisions, i as decorateReusableIdentity, n as assertClosedKeys, o as failLayout, r as createProjectionResolver, s as hasOwn, t as asObject } from "./reusableExpansion-Cg9AE8JX.js";
3
+ // src/reusable.ts
4
4
  /**
5
5
  * Perspective-fenced exact-revision cache. Invalid snapshots never mutate the
6
6
  * cache, and replacing one perspective reports only its known page consumers.
@@ -88,5 +88,4 @@ function componentPerspectiveKey(perspective, siteId, componentId) {
88
88
  function snapshotKey(perspective, componentId, siteId, revision) {
89
89
  return `${componentPerspectiveKey(perspective, siteId, componentId)}\0${revision}`;
90
90
  }
91
- //#endregion
92
91
  export { ReusableComponentSnapshotCache, createProjectionResolver, createReusableLayoutRenderModel };
@@ -1,5 +1,5 @@
1
1
  import { LayoutValidationError, layoutRenderNodeId, normalizeLayoutDocument } from "./layout.js";
2
- //#region src/reusableExpansion.ts
2
+ // src/reusableExpansion.ts
3
3
  const UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;
4
4
  const NODE_ID = /^[A-Za-z][A-Za-z0-9_-]{0,95}$/;
5
5
  const MAX_PLACEMENTS = 100;
@@ -225,5 +225,4 @@ function failLayout(path, code) {
225
225
  code
226
226
  });
227
227
  }
228
- //#endregion
229
228
  export { expandReusablePlacements as a, validateProjectionRevisions as c, decorateReusableIdentity as i, assertClosedKeys as n, failLayout as o, createProjectionResolver as r, hasOwn as s, asObject as t };
@@ -1,5 +1,4 @@
1
- import { u as LayoutDocument } from "./layout-CWq_v6ws.js";
2
- //#region src/reusableExpansion.d.ts
1
+ import { u as LayoutDocument } from "./layout-CkPOfiOM.js";
3
2
  /**
4
3
  * One reusable-component placement, as it appears in a stored layout document.
5
4
  * Page layouts (version 2/3) and route-template layouts (version 1) carry the
@@ -38,5 +37,4 @@ type ReusableRenderIdentity = {
38
37
  placementId?: string;
39
38
  };
40
39
  declare function createProjectionResolver(projection: ReusableComponentProjection): ReusableComponentResolver;
41
- //#endregion
42
40
  export { ReusableComponentRevision as a, ReusableComponentResolver as i, ReusableComponentPlacement as n, ReusableRenderIdentity as o, ReusableComponentProjection as r, createProjectionResolver as s, ReusableComponentBinding as t };
package/dist/stega.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- //#region src/stega.d.ts
2
1
  export interface StegaMeta {
3
2
  entryId: string;
4
3
  /** Dot path within entry data, e.g. "title" or "cta.label". List indices numeric: "items.2.title". */
@@ -13,5 +12,4 @@ export declare function stripStega(value: string): string;
13
12
  export declare function decodeStega(value: string): {
14
13
  cleaned: string;
15
14
  meta: StegaMeta | null;
16
- };
17
- //#endregion
15
+ };
package/dist/stega.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/stega.ts
1
+ // src/stega.ts
2
2
  const BIT_0 = "​";
3
3
  const BIT_1 = "‌";
4
4
  const DELIM = "";
@@ -65,5 +65,4 @@ function isStegaMeta(v) {
65
65
  const m = v;
66
66
  return typeof m.entryId === "string" && typeof m.fieldPath === "string" && (m.locale === null || typeof m.locale === "string");
67
67
  }
68
- //#endregion
69
68
  export { decodeStega, encodeStega, stripStega };
@@ -1,3 +1,3 @@
1
- import { a as TemplateLayoutDocument, c as TemplateLayoutRenderNode, i as TemplateLayoutContext, l as buildTemplateBlockRenames, n as TemplateBlockFieldDefinition, o as TemplateLayoutNode, r as TemplateBlockNode, s as TemplateLayoutRenderModel, t as TemplateBlockDefinition, u as createTemplateLayoutRenderModel } from "./templateLayout-7rT_TH_E.js";
2
- import { n as ReusableComponentPlacement, o as ReusableRenderIdentity, r as ReusableComponentProjection } from "./reusableExpansion-CXvs_ckx.js";
1
+ import { a as TemplateLayoutDocument, c as TemplateLayoutRenderNode, i as TemplateLayoutContext, l as buildTemplateBlockRenames, n as TemplateBlockFieldDefinition, o as TemplateLayoutNode, r as TemplateBlockNode, s as TemplateLayoutRenderModel, t as TemplateBlockDefinition, u as createTemplateLayoutRenderModel } from "./templateLayout-D9gAWXzB.js";
2
+ import { n as ReusableComponentPlacement, o as ReusableRenderIdentity, r as ReusableComponentProjection } from "./reusableExpansion-CqrqpK4A.js";
3
3
  export { type ReusableComponentPlacement, type ReusableComponentProjection, type ReusableRenderIdentity, TemplateBlockDefinition, TemplateBlockFieldDefinition, TemplateBlockNode, TemplateLayoutContext, TemplateLayoutDocument, TemplateLayoutNode, TemplateLayoutRenderModel, TemplateLayoutRenderNode, buildTemplateBlockRenames, createTemplateLayoutRenderModel };
@@ -1,3 +1,2 @@
1
- import { n as createTemplateLayoutRenderModel, t as buildTemplateBlockRenames } from "./templateLayout-CpZb6EEg.js";
1
+ export { t as buildTemplateBlockRenames, n as createTemplateLayoutRenderModel } from "./templateLayout-CGMAmJBe.js";
2
2
  import "./layout.js";
3
- export { buildTemplateBlockRenames, createTemplateLayoutRenderModel };
@@ -1,6 +1,6 @@
1
1
  import { LayoutValidationError, generateLayoutCss, layoutNodeClass, normalizeLayoutDocument } from "./layout.js";
2
- import { a as expandReusablePlacements, i as decorateReusableIdentity } from "./reusableExpansion-Bqm83nCJ.js";
3
- //#region src/themeId.ts
2
+ import { a as expandReusablePlacements, i as decorateReusableIdentity } from "./reusableExpansion-Cg9AE8JX.js";
3
+ // src/themeId.ts
4
4
  /**
5
5
  * Theme ownership of block schemas, as the kit sees it.
6
6
  *
@@ -53,8 +53,7 @@ function getRegisteredThemeId() {
53
53
  function registeredBlockApiId(schemaApiId) {
54
54
  return blockApiIdOf(schemaApiId, registeredThemeId);
55
55
  }
56
- //#endregion
57
- //#region src/templateLayout.ts
56
+ // src/templateLayout.ts
58
57
  /**
59
58
  * Flattens a block's `migrations` array (each step's `renames: [{ from, to
60
59
  * }]`) into one `from -> to` map, applied in ascending `version` order with
@@ -378,5 +377,4 @@ function fail(path, code) {
378
377
  code
379
378
  });
380
379
  }
381
- //#endregion
382
380
  export { blockApiIdOf as a, registeredBlockApiId as c, THEME_ID_PATTERN as i, themeSchemaApiId as l, createTemplateLayoutRenderModel as n, getRegisteredThemeId as o, RESERVED_THEME_IDS as r, registerThemeId as s, buildTemplateBlockRenames as t };
@@ -1,6 +1,5 @@
1
- import { c as LayoutBreakpoints, d as LayoutNode, h as LayoutStyle, m as LayoutRenderNode } from "./layout-CWq_v6ws.js";
2
- import { n as ReusableComponentPlacement, o as ReusableRenderIdentity, r as ReusableComponentProjection } from "./reusableExpansion-CXvs_ckx.js";
3
- //#region src/clientTypes.d.ts
1
+ import { c as LayoutBreakpoints, d as LayoutNode, h as LayoutStyle, m as LayoutRenderNode } from "./layout-CkPOfiOM.js";
2
+ import { n as ReusableComponentPlacement, o as ReusableRenderIdentity, r as ReusableComponentProjection } from "./reusableExpansion-CqrqpK4A.js";
4
3
  /**
5
4
  * How hard the client tries again when the gateway says "not now" — a `429`
6
5
  * from its rate limit, a `503` while it restarts, or a dropped connection.
@@ -166,8 +165,6 @@ interface EldraClient {
166
165
  * item — see the doc comment on the implementation. */
167
166
  encodeEntryDataStega(entryId: string, data: Record<string, unknown>, locale: string | null, apiId?: string): Record<string, unknown>;
168
167
  }
169
- //#endregion
170
- //#region src/templateLayout.d.ts
171
168
  interface TemplateBlockFieldDefinition {
172
169
  fieldId: string;
173
170
  default?: unknown;
@@ -257,5 +254,4 @@ interface TemplateLayoutContext {
257
254
  reusableComponentProjection?: ReusableComponentProjection;
258
255
  }
259
256
  declare function createTemplateLayoutRenderModel(value: unknown, context: TemplateLayoutContext): TemplateLayoutRenderModel;
260
- //#endregion
261
257
  export { ResolveEntryListBody as C, PageMeta as S, EldraClientOptions as _, TemplateLayoutDocument as a, EntryList as b, TemplateLayoutRenderNode as c, CatalogDoc as d, CatalogList as f, EldraClientError as g, EldraClient as h, TemplateLayoutContext as i, buildTemplateBlockRenames as l, EldraCatalogReader as m, TemplateBlockFieldDefinition as n, TemplateLayoutNode as o, CatalogQuery as p, TemplateBlockNode as r, TemplateLayoutRenderModel as s, TemplateBlockDefinition as t, createTemplateLayoutRenderModel as u, EldraRetryOptions as v, EntryQuery as x, EntryDoc as y };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eldrajs/theme-core",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
4
4
  "description": "Framework-free core of the Eldra theme SDK: the Studio preview bridge, stega encoding, the overlay runtime, layout CSS, rich-text positions, design tokens and image framing.",
5
5
  "keywords": [
6
6
  "cms",