@sudajs/theme-engine 0.0.2 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent.d.ts +495 -0
- package/dist/agent.d.ts.map +1 -0
- package/dist/agent.js +603 -0
- package/dist/agent.js.map +1 -0
- package/dist/ai/slots.d.ts +1 -1
- package/dist/ai/slots.d.ts.map +1 -1
- package/dist/cms/apply-bindings.d.ts +2 -2
- package/dist/cms/apply-bindings.d.ts.map +1 -1
- package/dist/cms/get-context.d.ts +2 -2
- package/dist/cms/get-context.d.ts.map +1 -1
- package/dist/cms/index.d.ts +3 -3
- package/dist/cms/index.d.ts.map +1 -1
- package/dist/cms/index.js +3 -3
- package/dist/cms/index.js.map +1 -1
- package/dist/components/base-blocks.js +2 -2
- package/dist/components/base-blocks.js.map +1 -1
- package/dist/components/containers.js +2 -2
- package/dist/components/containers.js.map +1 -1
- package/dist/components/index.d.ts +4 -4
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +6 -6
- package/dist/components/index.js.map +1 -1
- package/dist/components/metadata.js +1 -1
- package/dist/components/metadata.js.map +1 -1
- package/dist/editor/context.d.ts +2 -2
- package/dist/editor/context.d.ts.map +1 -1
- package/dist/editor/context.js +1 -1
- package/dist/editor/context.js.map +1 -1
- package/dist/editor/index.d.ts +4 -4
- package/dist/editor/index.d.ts.map +1 -1
- package/dist/editor/index.js +4 -4
- package/dist/editor/index.js.map +1 -1
- package/dist/editor/theme-editor.d.ts +3 -3
- package/dist/editor/theme-editor.d.ts.map +1 -1
- package/dist/editor/theme-editor.js +2 -2
- package/dist/editor/theme-editor.js.map +1 -1
- package/dist/editor/unified-editor.d.ts +1 -1
- package/dist/editor/unified-editor.d.ts.map +1 -1
- package/dist/editor/unified-editor.js +1 -1
- package/dist/editor/unified-editor.js.map +1 -1
- package/dist/editor/use-theme-runtime.d.ts +1 -1
- package/dist/editor/use-theme-runtime.d.ts.map +1 -1
- package/dist/fields/index.d.ts +5 -5
- package/dist/fields/index.d.ts.map +1 -1
- package/dist/fields/index.js +3 -3
- package/dist/fields/index.js.map +1 -1
- package/dist/fields/media-field.js +1 -1
- package/dist/fields/media-field.js.map +1 -1
- package/dist/fields/normalize-config.js +1 -1
- package/dist/fields/normalize-config.js.map +1 -1
- package/dist/fields/suda-fields.d.ts +2 -2
- package/dist/fields/suda-fields.d.ts.map +1 -1
- package/dist/fields/suda-fields.js +5 -5
- package/dist/fields/suda-fields.js.map +1 -1
- package/dist/index.d.ts +12 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -11
- package/dist/index.js.map +1 -1
- package/dist/manifest.d.ts +3 -3
- package/dist/manifest.d.ts.map +1 -1
- package/dist/registry/filesystem.d.ts +2 -2
- package/dist/registry/filesystem.d.ts.map +1 -1
- package/dist/registry.d.ts +1 -1
- package/dist/registry.d.ts.map +1 -1
- package/dist/render/chrome.d.ts +1 -1
- package/dist/render/chrome.d.ts.map +1 -1
- package/dist/render/index.d.ts +3 -3
- package/dist/render/index.d.ts.map +1 -1
- package/dist/render/index.js +3 -3
- package/dist/render/index.js.map +1 -1
- package/dist/render/render.d.ts +2 -2
- package/dist/render/render.d.ts.map +1 -1
- package/dist/render/render.js +4 -4
- package/dist/render/render.js.map +1 -1
- package/dist/render/slot.d.ts +1 -1
- package/dist/render/slot.d.ts.map +1 -1
- package/dist/runtime.d.ts +7 -7
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js +6 -6
- package/dist/runtime.js.map +1 -1
- package/dist/server.d.ts +13 -12
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +13 -12
- package/dist/server.js.map +1 -1
- package/dist/types.d.ts +3 -3
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { fontField, iconField, menuField, urlField, } from "./basic-fields";
|
|
2
|
-
import { colorField } from "./color-field";
|
|
3
|
-
import { mediaField } from "./media-field";
|
|
4
|
-
import { rangeField } from "./range-field";
|
|
5
|
-
import { spacingField } from "./spacing-field";
|
|
1
|
+
import { fontField, iconField, menuField, urlField, } from "./basic-fields.js";
|
|
2
|
+
import { colorField } from "./color-field.js";
|
|
3
|
+
import { mediaField } from "./media-field.js";
|
|
4
|
+
import { rangeField } from "./range-field.js";
|
|
5
|
+
import { spacingField } from "./spacing-field.js";
|
|
6
6
|
function applyBaseField(target, source) {
|
|
7
7
|
if (source.label !== undefined) {
|
|
8
8
|
target.label = source.label;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"suda-fields.js","sourceRoot":"","sources":["../../src/fields/suda-fields.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,SAAS,EACT,SAAS,EACT,SAAS,EACT,QAAQ,GAGT,MAAM,
|
|
1
|
+
{"version":3,"file":"suda-fields.js","sourceRoot":"","sources":["../../src/fields/suda-fields.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,SAAS,EACT,SAAS,EACT,SAAS,EACT,QAAQ,GAGT,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAuB,MAAM,kBAAkB,CAAC;AACnE,OAAO,EAAE,UAAU,EAA0B,MAAM,kBAAkB,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AA0DlD,SAAS,cAAc,CAAsB,MAAS,EAAE,MAAiB;IACvE,IAAI,MAAM,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;QAC/B,MAAM,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;IAC9B,CAAC;IACD,IAAI,MAAM,CAAC,SAAS,KAAK,SAAS,EAAE,CAAC;QACnC,MAAM,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;IACtC,CAAC;IACD,IAAI,MAAM,CAAC,QAAQ,KAAK,SAAS,EAAE,CAAC;QAClC,MAAM,CAAC,QAAQ,GAAG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,KAAK,CAAgC,CAAC;QAChG,CAAC;QACD,KAAK,OAAO,CAAC,CAAC,CAAC;YACb,MAAM,YAAY,GAAoD,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;YACxF,IAAI,KAAK,CAAC,WAAW,KAAK,SAAS,EAAE,CAAC;gBACpC,YAAY,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;YAC/C,CAAC;YACD,OAAO,cAAc,CACnB,UAAU,CAAC,KAAK,CAAC,KAAK,EAAE,YAAY,CAAC,EACrC,KAAK,CACyB,CAAC;QACnC,CAAC;QACD,KAAK,OAAO,CAAC,CAAC,CAAC;YACb,MAAM,YAAY,GAAoD,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;YACxF,IAAI,KAAK,CAAC,WAAW,KAAK,SAAS,EAAE,CAAC;gBACpC,YAAY,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;YAC/C,CAAC;YACD,OAAO,cAAc,CACnB,UAAU,CAAC,KAAK,CAAC,KAAK,EAAE,YAAY,CAAC,EACrC,KAAK,CACyB,CAAC;QACnC,CAAC;QACD;YACE,OAAO,KAAK,CAAC;IACjB,CAAC;AACH,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
export * from "./types";
|
|
2
|
-
export * from "./manifest";
|
|
3
|
-
export * from "./registry";
|
|
4
|
-
export * from "./ai/slots";
|
|
5
|
-
export * from "./assets";
|
|
6
|
-
export * from "./
|
|
7
|
-
export * from "./
|
|
8
|
-
export * from "./
|
|
9
|
-
export * from "./
|
|
10
|
-
export
|
|
11
|
-
export {
|
|
1
|
+
export * from "./types.js";
|
|
2
|
+
export * from "./manifest.js";
|
|
3
|
+
export * from "./registry.js";
|
|
4
|
+
export * from "./ai/slots.js";
|
|
5
|
+
export * from "./assets.js";
|
|
6
|
+
export * from "./agent.js";
|
|
7
|
+
export * from "./cms/index.js";
|
|
8
|
+
export * from "./fields/index.js";
|
|
9
|
+
export * from "./components/index.js";
|
|
10
|
+
export * from "./editor/index.js";
|
|
11
|
+
export { extractLayoutChrome, type LayoutChrome } from "./render/chrome.js";
|
|
12
|
+
export { getPageSlot, THEME_PAGE_SLOT } from "./render/slot.js";
|
|
12
13
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAG/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAGlC,OAAO,EAAE,mBAAmB,EAAE,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
// Contracts (universal)
|
|
2
|
-
export * from "./types";
|
|
3
|
-
export * from "./manifest";
|
|
4
|
-
export * from "./registry";
|
|
5
|
-
export * from "./ai/slots";
|
|
6
|
-
export * from "./assets";
|
|
7
|
-
export * from "./
|
|
2
|
+
export * from "./types.js";
|
|
3
|
+
export * from "./manifest.js";
|
|
4
|
+
export * from "./registry.js";
|
|
5
|
+
export * from "./ai/slots.js";
|
|
6
|
+
export * from "./assets.js";
|
|
7
|
+
export * from "./agent.js";
|
|
8
|
+
export * from "./cms/index.js";
|
|
8
9
|
// Editor building blocks (client-safe)
|
|
9
|
-
export * from "./fields/index";
|
|
10
|
-
export * from "./components/index";
|
|
11
|
-
export * from "./editor/index";
|
|
10
|
+
export * from "./fields/index.js";
|
|
11
|
+
export * from "./components/index.js";
|
|
12
|
+
export * from "./editor/index.js";
|
|
12
13
|
// Layout chrome helpers (universal/pure)
|
|
13
|
-
export { extractLayoutChrome } from "./render/chrome";
|
|
14
|
-
export { getPageSlot, THEME_PAGE_SLOT } from "./render/slot";
|
|
14
|
+
export { extractLayoutChrome } from "./render/chrome.js";
|
|
15
|
+
export { getPageSlot, THEME_PAGE_SLOT } from "./render/slot.js";
|
|
15
16
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,wBAAwB;AACxB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,wBAAwB;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAE/B,uCAAuC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAElC,yCAAyC;AACzC,OAAO,EAAE,mBAAmB,EAAqB,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC"}
|
package/dist/manifest.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import type { ThemeManifest } from "./types";
|
|
2
|
+
import type { ThemeManifest } from "./types.js";
|
|
3
3
|
/**
|
|
4
4
|
* Validates the serialisable part of a theme. Kept in sync with
|
|
5
5
|
* {@link ThemeManifest} so the CLI, registry and runtime all agree on shape.
|
|
@@ -23,8 +23,8 @@ export declare const themeManifestSchema: z.ZodObject<{
|
|
|
23
23
|
entry: string;
|
|
24
24
|
key: string;
|
|
25
25
|
categories: ("business" | "blog" | "portfolio" | "ecommerce" | "landing" | "other")[];
|
|
26
|
-
name: string;
|
|
27
26
|
version: string;
|
|
27
|
+
name: string;
|
|
28
28
|
minEngineVersion: string;
|
|
29
29
|
description?: string | undefined;
|
|
30
30
|
preview?: string | undefined;
|
|
@@ -34,8 +34,8 @@ export declare const themeManifestSchema: z.ZodObject<{
|
|
|
34
34
|
entry: string;
|
|
35
35
|
key: string;
|
|
36
36
|
categories: ("business" | "blog" | "portfolio" | "ecommerce" | "landing" | "other")[];
|
|
37
|
-
name: string;
|
|
38
37
|
version: string;
|
|
38
|
+
name: string;
|
|
39
39
|
minEngineVersion: string;
|
|
40
40
|
description?: string | undefined;
|
|
41
41
|
preview?: string | undefined;
|
package/dist/manifest.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../src/manifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../src/manifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAWhD;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAc9B,CAAC;AAEH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,aAAa,CAEhE;AAED,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,OAAO,GACb,CAAC,CAAC,mBAAmB,CAAC,OAAO,EAAE,aAAa,CAAC,CAE/C"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ThemeRegistry } from "../registry";
|
|
2
|
-
import type { ResolvedTheme, ThemeManifest } from "../types";
|
|
1
|
+
import type { ThemeRegistry } from "../registry.js";
|
|
2
|
+
import type { ResolvedTheme, ThemeManifest } from "../types.js";
|
|
3
3
|
export interface FileSystemThemeRegistryOptions {
|
|
4
4
|
/** Directories containing one subdirectory per theme artifact/source checkout. */
|
|
5
5
|
roots: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filesystem.d.ts","sourceRoot":"","sources":["../../src/registry/filesystem.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"filesystem.d.ts","sourceRoot":"","sources":["../../src/registry/filesystem.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAA6B,MAAM,aAAa,CAAC;AAE3F,MAAM,WAAW,8BAA8B;IAC7C,kFAAkF;IAClF,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,qEAAqE;IACrE,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAyED;;;;GAIG;AACH,qBAAa,uBAAwB,YAAW,aAAa;IAG/C,OAAO,CAAC,QAAQ,CAAC,OAAO;IAFpC,OAAO,CAAC,OAAO,CAA+C;gBAEjC,OAAO,EAAE,8BAA8B;IAE9D,IAAI,IAAI,OAAO,CAAC,aAAa,EAAE,CAAC;IAKhC,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAKlC,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC;IAkBrE,gBAAgB,CACpB,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAgBnB,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;YAWpE,WAAW;YAKX,eAAe;YAuBf,aAAa;CAuB5B"}
|
package/dist/registry.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ResolvedTheme, ThemeManifest } from "./types";
|
|
1
|
+
import type { ResolvedTheme, ThemeManifest } from "./types.js";
|
|
2
2
|
/**
|
|
3
3
|
* Resolves themes by key/version. Implementations load theme artifacts at
|
|
4
4
|
* runtime (filesystem cache, S3-backed cache, marketplace registry, etc.). Apps
|
package/dist/registry.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE/D;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B,IAAI,IAAI,OAAO,CAAC,aAAa,EAAE,CAAC,CAAC;IACjC,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACnC,8EAA8E;IAC9E,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CAAC;CACvE"}
|
package/dist/render/chrome.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chrome.d.ts","sourceRoot":"","sources":["../../src/render/chrome.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"chrome.d.ts","sourceRoot":"","sources":["../../src/render/chrome.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACtC;AAcD;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,UAAU,GAAG,SAAS,GAAG,YAAY,CAsBpF"}
|
package/dist/render/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { renderThemePage, ThemeRender, type ThemeRenderProps } from "./render";
|
|
2
|
-
export { getPageSlot, THEME_PAGE_SLOT } from "./slot";
|
|
3
|
-
export { extractLayoutChrome, type LayoutChrome } from "./chrome";
|
|
1
|
+
export { renderThemePage, ThemeRender, type ThemeRenderProps } from "./render.js";
|
|
2
|
+
export { getPageSlot, THEME_PAGE_SLOT } from "./slot.js";
|
|
3
|
+
export { extractLayoutChrome, type LayoutChrome } from "./chrome.js";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/render/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/render/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAClF,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC"}
|
package/dist/render/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { renderThemePage, ThemeRender } from "./render";
|
|
2
|
-
export { getPageSlot, THEME_PAGE_SLOT } from "./slot";
|
|
3
|
-
export { extractLayoutChrome } from "./chrome";
|
|
1
|
+
export { renderThemePage, ThemeRender } from "./render.js";
|
|
2
|
+
export { getPageSlot, THEME_PAGE_SLOT } from "./slot.js";
|
|
3
|
+
export { extractLayoutChrome } from "./chrome.js";
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
package/dist/render/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/render/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,WAAW,EAAyB,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/render/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,WAAW,EAAyB,MAAM,aAAa,CAAC;AAClF,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAqB,MAAM,aAAa,CAAC"}
|
package/dist/render/render.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ReactElement } from "react";
|
|
2
|
-
import type { ThemeRenderMetadata } from "../components/metadata";
|
|
3
|
-
import type { LayoutData, PageData, ThemeModule } from "../types";
|
|
2
|
+
import type { ThemeRenderMetadata } from "../components/metadata.js";
|
|
3
|
+
import type { LayoutData, PageData, ThemeModule } from "../types.js";
|
|
4
4
|
export interface ThemeRenderProps {
|
|
5
5
|
theme: Pick<ThemeModule, "pageConfig" | "layoutConfig" | "rendering">;
|
|
6
6
|
pageData: PageData;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../src/render/render.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAa,MAAM,OAAO,CAAC;AAIrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../src/render/render.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAa,MAAM,OAAO,CAAC;AAIrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAErE,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAIrE,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,YAAY,GAAG,cAAc,GAAG,WAAW,CAAC,CAAC;IACtE,QAAQ,EAAE,QAAQ,CAAC;IACnB,UAAU,EAAE,UAAU,CAAC;IACvB,mDAAmD;IACnD,QAAQ,CAAC,EAAE,mBAAmB,CAAC;CAChC;AA4BD,wBAAgB,eAAe,CAAC,KAAK,EAAE,gBAAgB,GAAG,YAAY,CAcrE;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,QAAQ,EACR,UAAU,EACV,QAAQ,GACT,EAAE,gBAAgB,GAAG,YAAY,CAMjC"}
|
package/dist/render/render.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Render } from "@puckeditor/core/rsc";
|
|
3
|
-
import { applyCmsBindings } from "../cms/apply-bindings";
|
|
4
|
-
import { getCmsContext } from "../cms/get-context";
|
|
5
|
-
import { normalizeSudaConfig } from "../fields/normalize-config";
|
|
6
|
-
import { THEME_PAGE_SLOT } from "./slot";
|
|
3
|
+
import { applyCmsBindings } from "../cms/apply-bindings.js";
|
|
4
|
+
import { getCmsContext } from "../cms/get-context.js";
|
|
5
|
+
import { normalizeSudaConfig } from "../fields/normalize-config.js";
|
|
6
|
+
import { THEME_PAGE_SLOT } from "./slot.js";
|
|
7
7
|
function renderPuckTheme({ theme, pageData, layoutData, metadata, }) {
|
|
8
8
|
const baseMeta = metadata ?? {};
|
|
9
9
|
// Project CMS data onto components that declared a `cmsBinding` before
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render.js","sourceRoot":"","sources":["../../src/render/render.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAG9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"render.js","sourceRoot":"","sources":["../../src/render/render.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAG9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAGpE,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAU5C,SAAS,eAAe,CAAC,EACvB,KAAK,EACL,QAAQ,EACR,UAAU,EACV,QAAQ,GACS;IACjB,MAAM,QAAQ,GAAwB,QAAQ,IAAI,EAAE,CAAC;IACrD,uEAAuE;IACvE,sEAAsE;IACtE,iDAAiD;IACjD,MAAM,iBAAiB,GAAG,gBAAgB,CAAC,QAAQ,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC9E,MAAM,UAAU,GAAG,mBAAmB,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IACzD,MAAM,YAAY,GAAG,mBAAmB,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;IAE7D,MAAM,IAAI,GAAc,CACtB,KAAC,MAAM,IAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,iBAAiB,EAAE,QAAQ,EAAE,QAAQ,GAA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 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
|
-
import type { ThemeRenderMetadata } from "../components/metadata";
|
|
2
|
+
import type { ThemeRenderMetadata } from "../components/metadata.js";
|
|
3
3
|
/**
|
|
4
4
|
* The metadata key under which the rendered page tree is exposed to the layout
|
|
5
5
|
* config's root render. Themes place page content via
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slot.d.ts","sourceRoot":"","sources":["../../src/render/slot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"slot.d.ts","sourceRoot":"","sources":["../../src/render/slot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAErE;;;;GAIG;AACH,eAAO,MAAM,eAAe,SAAS,CAAC;AAEtC;;;GAGG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,mBAAmB,GAAG,SAAS,GAAG,SAAS,CAEhF"}
|
package/dist/runtime.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { createEngineComponents } from "./components/index";
|
|
2
|
-
export { colorSchemeField, createColorSchemeDefault, createThemeCssVariables, resolveColorSchemeTokens, SUDA_COLOR_TOKEN_KEYS, type ColorSchemeFieldOptions, type CreateThemeCssVariablesOptions, type SudaColorSchemePreset, type SudaColorSchemeValue, type SudaThemeColorTokens, } from "./fields/index";
|
|
3
|
-
export { resolveAsset, type ThemeRenderMetadata } from "./components/metadata";
|
|
4
|
-
export { getPageSlot, THEME_PAGE_SLOT } from "./render/slot";
|
|
5
|
-
export { createThemeAssetPath, resolveAssetPath, type ResolveAssetPathOptions, type ThemeAssetSummary, type ThemeUnsplashAssetSummary, } from "./assets";
|
|
6
|
-
export type { LayoutData, PageData, SudaComponentConfig, SudaConfig, SudaField, SudaFields, SudaRootConfig, } from "./types";
|
|
7
|
-
export { applyCmsBindings, getCmsContext, type CmsBinding, type CmsContext, type CmsPagination, type CmsPostDetail, type CmsPostListPayload, type CmsPostSummary, type CmsTagDetail, type CmsTagSummary, type CmsViewBinding, type ThemeContentCapabilities, } from "./cms/index";
|
|
1
|
+
export { createEngineComponents } from "./components/index.js";
|
|
2
|
+
export { colorSchemeField, createColorSchemeDefault, createThemeCssVariables, resolveColorSchemeTokens, SUDA_COLOR_TOKEN_KEYS, type ColorSchemeFieldOptions, type CreateThemeCssVariablesOptions, type SudaColorSchemePreset, type SudaColorSchemeValue, type SudaThemeColorTokens, } from "./fields/index.js";
|
|
3
|
+
export { resolveAsset, type ThemeRenderMetadata } from "./components/metadata.js";
|
|
4
|
+
export { getPageSlot, THEME_PAGE_SLOT } from "./render/slot.js";
|
|
5
|
+
export { createThemeAssetPath, resolveAssetPath, type ResolveAssetPathOptions, type ThemeAssetSummary, type ThemeUnsplashAssetSummary, } from "./assets.js";
|
|
6
|
+
export type { LayoutData, PageData, SudaComponentConfig, SudaConfig, SudaField, SudaFields, SudaRootConfig, } from "./types.js";
|
|
7
|
+
export { applyCmsBindings, getCmsContext, type CmsBinding, type CmsContext, type CmsPagination, type CmsPostDetail, type CmsPostListPayload, type CmsPostSummary, type CmsTagDetail, type CmsTagSummary, type CmsViewBinding, type ThemeContentCapabilities, } from "./cms/index.js";
|
|
8
8
|
//# sourceMappingURL=runtime.d.ts.map
|
package/dist/runtime.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EACL,gBAAgB,EAChB,wBAAwB,EACxB,uBAAuB,EACvB,wBAAwB,EACxB,qBAAqB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,8BAA8B,EACnC,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,GAC1B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,YAAY,EAAE,KAAK,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAClF,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EACL,oBAAoB,EACpB,gBAAgB,EAChB,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,GAC/B,MAAM,aAAa,CAAC;AACrB,YAAY,EACV,UAAU,EACV,QAAQ,EACR,mBAAmB,EACnB,UAAU,EACV,SAAS,EACT,UAAU,EACV,cAAc,GACf,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,gBAAgB,EAChB,aAAa,EACb,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,wBAAwB,GAC9B,MAAM,gBAAgB,CAAC"}
|
package/dist/runtime.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// Runtime-only helpers for theme packages. Keep this entry free of editor
|
|
2
2
|
// runtime exports to avoid pulling large client-only dependencies into theme
|
|
3
3
|
// runtime bundles.
|
|
4
|
-
export { createEngineComponents } from "./components/index";
|
|
5
|
-
export { colorSchemeField, createColorSchemeDefault, createThemeCssVariables, resolveColorSchemeTokens, SUDA_COLOR_TOKEN_KEYS, } from "./fields/index";
|
|
6
|
-
export { resolveAsset } from "./components/metadata";
|
|
7
|
-
export { getPageSlot, THEME_PAGE_SLOT } from "./render/slot";
|
|
8
|
-
export { createThemeAssetPath, resolveAssetPath, } from "./assets";
|
|
9
|
-
export { applyCmsBindings, getCmsContext, } from "./cms/index";
|
|
4
|
+
export { createEngineComponents } from "./components/index.js";
|
|
5
|
+
export { colorSchemeField, createColorSchemeDefault, createThemeCssVariables, resolveColorSchemeTokens, SUDA_COLOR_TOKEN_KEYS, } from "./fields/index.js";
|
|
6
|
+
export { resolveAsset } from "./components/metadata.js";
|
|
7
|
+
export { getPageSlot, THEME_PAGE_SLOT } from "./render/slot.js";
|
|
8
|
+
export { createThemeAssetPath, resolveAssetPath, } from "./assets.js";
|
|
9
|
+
export { applyCmsBindings, getCmsContext, } from "./cms/index.js";
|
|
10
10
|
//# sourceMappingURL=runtime.js.map
|
package/dist/runtime.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,6EAA6E;AAC7E,mBAAmB;AACnB,OAAO,EAAE,sBAAsB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,6EAA6E;AAC7E,mBAAmB;AACnB,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EACL,gBAAgB,EAChB,wBAAwB,EACxB,uBAAuB,EACvB,wBAAwB,EACxB,qBAAqB,GAMtB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,YAAY,EAA4B,MAAM,0BAA0B,CAAC;AAClF,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EACL,oBAAoB,EACpB,gBAAgB,GAIjB,MAAM,aAAa,CAAC;AAUrB,OAAO,EACL,gBAAgB,EAChB,aAAa,GAWd,MAAM,gBAAgB,CAAC"}
|
package/dist/server.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
export { renderThemePage, ThemeRender, type ThemeRenderProps } from "./render/render";
|
|
2
|
-
export { getPageSlot, THEME_PAGE_SLOT } from "./render/slot";
|
|
3
|
-
export { extractLayoutChrome, type LayoutChrome } from "./render/chrome";
|
|
4
|
-
export { resolveAsset, type ThemeRenderMetadata } from "./components/metadata";
|
|
5
|
-
export { createThemeAssetPath, resolveAssetPath, type ResolveAssetPathOptions, type ThemeAssetSummary, type ThemeUnsplashAssetSummary, } from "./assets";
|
|
6
|
-
export { composeUnifiedThemeEditorData, splitUnifiedThemeEditorData, } from "./editor/unified-editor";
|
|
7
|
-
export * from "./cms/index";
|
|
8
|
-
export * from "./types";
|
|
9
|
-
export { themeManifestSchema, parseThemeManifest, safeParseThemeManifest } from "./manifest";
|
|
10
|
-
export * from "./registry";
|
|
11
|
-
export * from "./registry/filesystem";
|
|
12
|
-
export * from "./ai/slots";
|
|
1
|
+
export { renderThemePage, ThemeRender, type ThemeRenderProps } from "./render/render.js";
|
|
2
|
+
export { getPageSlot, THEME_PAGE_SLOT } from "./render/slot.js";
|
|
3
|
+
export { extractLayoutChrome, type LayoutChrome } from "./render/chrome.js";
|
|
4
|
+
export { resolveAsset, type ThemeRenderMetadata } from "./components/metadata.js";
|
|
5
|
+
export { createThemeAssetPath, resolveAssetPath, type ResolveAssetPathOptions, type ThemeAssetSummary, type ThemeUnsplashAssetSummary, } from "./assets.js";
|
|
6
|
+
export { composeUnifiedThemeEditorData, splitUnifiedThemeEditorData, } from "./editor/unified-editor.js";
|
|
7
|
+
export * from "./cms/index.js";
|
|
8
|
+
export * from "./types.js";
|
|
9
|
+
export { themeManifestSchema, parseThemeManifest, safeParseThemeManifest } from "./manifest.js";
|
|
10
|
+
export * from "./registry.js";
|
|
11
|
+
export * from "./registry/filesystem.js";
|
|
12
|
+
export * from "./ai/slots.js";
|
|
13
|
+
export * from "./agent.js";
|
|
13
14
|
//# sourceMappingURL=server.d.ts.map
|
package/dist/server.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACzF,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,KAAK,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAClF,OAAO,EACL,oBAAoB,EACpB,gBAAgB,EAChB,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,GAC/B,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,6BAA6B,EAC7B,2BAA2B,GAC5B,MAAM,4BAA4B,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAG/B,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAChG,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC"}
|
package/dist/server.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
// Server-only entry. Pulls `@puckeditor/core/rsc`; import from React Server
|
|
2
2
|
// Components only (e.g. the public site).
|
|
3
|
-
export { renderThemePage, ThemeRender } from "./render/render";
|
|
4
|
-
export { getPageSlot, THEME_PAGE_SLOT } from "./render/slot";
|
|
5
|
-
export { extractLayoutChrome } from "./render/chrome";
|
|
6
|
-
export { resolveAsset } from "./components/metadata";
|
|
7
|
-
export { createThemeAssetPath, resolveAssetPath, } from "./assets";
|
|
8
|
-
export { composeUnifiedThemeEditorData, splitUnifiedThemeEditorData, } from "./editor/unified-editor";
|
|
9
|
-
export * from "./cms/index";
|
|
3
|
+
export { renderThemePage, ThemeRender } from "./render/render.js";
|
|
4
|
+
export { getPageSlot, THEME_PAGE_SLOT } from "./render/slot.js";
|
|
5
|
+
export { extractLayoutChrome } from "./render/chrome.js";
|
|
6
|
+
export { resolveAsset } from "./components/metadata.js";
|
|
7
|
+
export { createThemeAssetPath, resolveAssetPath, } from "./assets.js";
|
|
8
|
+
export { composeUnifiedThemeEditorData, splitUnifiedThemeEditorData, } from "./editor/unified-editor.js";
|
|
9
|
+
export * from "./cms/index.js";
|
|
10
10
|
// Re-export contracts for convenience in server code.
|
|
11
|
-
export * from "./types";
|
|
12
|
-
export { themeManifestSchema, parseThemeManifest, safeParseThemeManifest } from "./manifest";
|
|
13
|
-
export * from "./registry";
|
|
14
|
-
export * from "./registry/filesystem";
|
|
15
|
-
export * from "./ai/slots";
|
|
11
|
+
export * from "./types.js";
|
|
12
|
+
export { themeManifestSchema, parseThemeManifest, safeParseThemeManifest } from "./manifest.js";
|
|
13
|
+
export * from "./registry.js";
|
|
14
|
+
export * from "./registry/filesystem.js";
|
|
15
|
+
export * from "./ai/slots.js";
|
|
16
|
+
export * from "./agent.js";
|
|
16
17
|
//# sourceMappingURL=server.js.map
|
package/dist/server.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,0CAA0C;AAC1C,OAAO,EAAE,eAAe,EAAE,WAAW,EAAyB,MAAM,
|
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,0CAA0C;AAC1C,OAAO,EAAE,eAAe,EAAE,WAAW,EAAyB,MAAM,oBAAoB,CAAC;AACzF,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAqB,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,YAAY,EAA4B,MAAM,0BAA0B,CAAC;AAClF,OAAO,EACL,oBAAoB,EACpB,gBAAgB,GAIjB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,6BAA6B,EAC7B,2BAA2B,GAC5B,MAAM,4BAA4B,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAE/B,sDAAsD;AACtD,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAChG,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC"}
|
package/dist/types.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ComponentConfig as PuckComponentConfig, Config, Data, DefaultComponentProps, DefaultComponents, Fields as PuckFields, RootConfig as PuckRootConfig } from "@puckeditor/core";
|
|
2
2
|
import type { ReactElement } from "react";
|
|
3
|
-
import type { ThemeContentCapabilities } from "./cms/types";
|
|
4
|
-
import type { ThemeRenderMetadata } from "./components/metadata";
|
|
5
|
-
import type { SudaField, SudaFieldExtension } from "./fields/suda-fields";
|
|
3
|
+
import type { ThemeContentCapabilities } from "./cms/types.js";
|
|
4
|
+
import type { ThemeRenderMetadata } from "./components/metadata.js";
|
|
5
|
+
import type { SudaField, SudaFieldExtension } from "./fields/suda-fields.js";
|
|
6
6
|
/**
|
|
7
7
|
* Theme-facing alias for Puck's component config. Generic on the component's
|
|
8
8
|
* prop shape so `fields` and `defaultProps` are strictly typed against the
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","s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