@contentstack/studio-registry 1.5.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +374 -29
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/common/global-store.js +49 -0
- package/dist/esm/common/global-store.js.map +1 -0
- package/dist/esm/component-registry/registry-options-processor.js +36 -0
- package/dist/esm/component-registry/registry-options-processor.js.map +1 -1
- package/dist/esm/component-registry/registry.constant.js +6 -0
- package/dist/esm/component-registry/registry.constant.js.map +1 -1
- package/dist/esm/component-registry/registry.js +54 -6
- package/dist/esm/component-registry/registry.js.map +1 -1
- package/dist/esm/component-registry/singleton.js +17 -25
- package/dist/esm/component-registry/singleton.js.map +1 -1
- package/dist/esm/data-binder/retrieve-data.js +164 -2
- package/dist/esm/data-binder/retrieve-data.js.map +1 -1
- package/dist/esm/data-binder/retrieve-data.util.js +7 -1
- package/dist/esm/data-binder/retrieve-data.util.js.map +1 -1
- package/dist/esm/design-registry/singleton.js +37 -0
- package/dist/esm/design-registry/singleton.js.map +1 -0
- package/dist/esm/index.d.ts +207 -16
- package/dist/esm/index.js +4 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/utils/sections.js +13 -0
- package/dist/esm/utils/sections.js.map +1 -0
- package/package.json +7 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-data.js","sources":["../../../src/data-binder/retrieve-data.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"retrieve-data.js","sources":["../../../src/data-binder/retrieve-data.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;AAuDA;;;;;;;;;;;;AAYG;AACH,MAAM,qBAAqB,GAAG,IAAI,GAAG,EAAU;AAE/C;;;;;;;;;;;;;AAaG;AACG,SAAU,iCAAiC,CAAC,OAAe,EAAA;AAC/D,IAAA,IAAI,qBAAqB,CAAC,IAAI,KA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AU,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,QAAQ,EAAE,IAAI;IAC3C;;AAEA,IAAA,OAAO,UAAU;AACnB;;;;"}
|
|
@@ -38,6 +38,7 @@ function getDefaultPropStaticValue(args) {
|
|
|
38
38
|
datestring: "",
|
|
39
39
|
any: "",
|
|
40
40
|
json_rte: {},
|
|
41
|
+
plaintext: "",
|
|
41
42
|
};
|
|
42
43
|
if (args) {
|
|
43
44
|
return defaultValues[args];
|
|
@@ -58,6 +59,7 @@ function isKnownType(type) {
|
|
|
58
59
|
datestring: true,
|
|
59
60
|
any: true,
|
|
60
61
|
json_rte: true,
|
|
62
|
+
plaintext: true,
|
|
61
63
|
};
|
|
62
64
|
return Object.keys(knownTypes).includes(type);
|
|
63
65
|
}
|
|
@@ -178,8 +180,12 @@ function isDataMatchingPropType(data, type) {
|
|
|
178
180
|
imageurl: dataType === "string",
|
|
179
181
|
datestring: dataType === "string",
|
|
180
182
|
json_rte: dataType === "object",
|
|
183
|
+
// "any" accepts all data types — no validation
|
|
184
|
+
any: true,
|
|
185
|
+
// "plaintext" accepts singleline/multiline text, number, and boolean fields
|
|
186
|
+
plaintext: dataType === "string" || dataType === "number" || dataType === "boolean",
|
|
181
187
|
};
|
|
182
|
-
return map[type];
|
|
188
|
+
return map[type] ?? false;
|
|
183
189
|
}
|
|
184
190
|
function getDataType(data) {
|
|
185
191
|
if (typeof data === "object" && data !== null && !Array.isArray(data)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-data.util.js","sources":["../../../src/data-binder/retrieve-data.util.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;AA6BA;;;;;;;;;;;;;;;;;AAiBG;AACG,SAAU,yBAAyB,CACvC,IAAQ,EAAA;AAER,IAAA,MAAM,aAAa,GAAG;AACpB,QAAA,MAAM,EAAE,EAAE;AACV,QAAA,OAAO,EAAE,KAAK;AACd,QAAA,MAAM,EAAE,CAAC;;AAET,QAAA,MAAM,EAAE,EAAE;AACV,QAAA,KAAK,EAAE,EAAE;AACT,QAAA,MAAM,EAAE,EAAE;AACV,QAAA,IAAI,EAAE,EAAE;AACR,QAAA,QAAQ,EAAE,EAAE;AACZ,QAAA,UAAU,EAAE,EAAE;AACd,QAAA,GAAG,EAAE,EAAE;AACP,QAAA,QAAQ,EAAE,EAAE;
|
|
1
|
+
{"version":3,"file":"retrieve-data.util.js","sources":["../../../src/data-binder/retrieve-data.util.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;AA6BA;;;;;;;;;;;;;;;;;AAiBG;AACG,SAAU,yBAAyB,CACvC,IAAQ,EAAA;AAER,IAAA,MAAM,aAAa,GAAG;AACpB,QAAA,MAAM,EAAE,EAAE;AACV,QAAA,OAAO,EAAE,KAAK;AACd,QAAA,MAAM,EAAE,CAAC;;AAET,QAAA,MAAM,EAAE,EAAE;AACV,QAAA,KAAK,EAAE,EAAE;AACT,QAAA,MAAM,EAAE,EAAE;AACV,QAAA,IAAI,EAAE,EAAE;AACR,QAAA,QAAQ,EAAE,EAAE;AACZ,QAAA,UAAU,EAAE,EAAE;AACd,QAAA,GAAG,EAAE,EAAE;AACP,QAAA,QAAQ,EAAE,EAAE;AACZ,QAAA,SAAS,EAAE,EAAE;KACd;IAED,IAAI,IAAI,EAAE;AACR,QAAA,OAAO,aAAa,CAAC,IAAI,CAAC;IAC5B;AAEA,IAAA,OAAO,aAAa;AACtB;AAEM,SAAU,WAAW,CAAC,IAAY,EAAA;AACtC,IAAA,MAAM,UAAU,GAAmC;AACjD,QAAA,MAAM,EAAE,IAAI;AACZ,QAAA,OAAO,EAAE,IAAI;AACb,QAAA,MAAM,EAAE,IAAI;AACZ,QAAA,MAAM,EAAE,IAAI;AACZ,QAAA,KAAK,EAAE,IAAI;AACX,QAAA,MAAM,EAAE,IAAI;AACZ,QAAA,IAAI,EAAE,IAAI;AACV,QAAA,IAAI,EAAE,IAAI;AACV,QAAA,QAAQ,EAAE,IAAI;AACd,QAAA,UAAU,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AAQ;QAC7B,MAAM,EAAE,QAAQ,KAAK,QAAQ;QAC7B,KAAK,EAAE,QAAQ,KAAK,OAAO;QAC3B,IAAI,EAAE,QAAQ,KAAK,QAAQ;QAC3B,QAAQ,EAAE,QAAQ,KAAK,QAAQ;QAC/B,UAAU,EAAE,QAAQ,KAAK,QAAQ;QACjC,QAAQ,EAAE,QAAQ,KAAK,QAAQ;;AAE/B,QAAA,GAAG,EAAE,IAAI;;QAET,SAAS,EACP,QAAQ,KAAK,QAAQ,IAAI,QAAQ,KAAK,QAAQ,IAAI,QAAQ,KAAK,SAAS;KAC3E;AACD,IAAA,OAAO,GAAG,CAAC,IAAI,CAAC,IAAI,KAAK;AAC3B;AAEM,SAAU,WAAW,CAAC,IAAa,EAAA;AACvC,IAAA,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;AACrE,QAAA,OAAO,QAAQ;IACjB;AACA,IAAA,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;AACvB,QAAA,OAAO,OAAO;IAChB;IACA,OAAO,OAAO,IAAI;AACpB;;;;"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { getGlobalStudioStore } from '../common/global-store.js';
|
|
2
|
+
import { DesignRegistry } from './design-registry.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Singleton DesignRegistry, backed by a versioned slot on `globalThis`.
|
|
6
|
+
*
|
|
7
|
+
* Previously, `studio-react/src/composable-studio/sdk.ts` did
|
|
8
|
+
* `export const designRegistry = new DesignRegistry()` at module scope — which
|
|
9
|
+
* means every separate module-graph (RSC vs client, build workers) got its own
|
|
10
|
+
* `DesignRegistry`. Design tokens registered on one side were invisible to the
|
|
11
|
+
* other. See `common/global-store.ts` for the dual-graph background.
|
|
12
|
+
*
|
|
13
|
+
* After this change, all callers of `getDesignRegistryInstance()` resolve to
|
|
14
|
+
* the same `DesignRegistry` within a single JS runtime.
|
|
15
|
+
*/
|
|
16
|
+
function getDesignRegistryInstance() {
|
|
17
|
+
const store = getGlobalStudioStore();
|
|
18
|
+
if (!store.designRegistry) {
|
|
19
|
+
store.designRegistry = new DesignRegistry();
|
|
20
|
+
}
|
|
21
|
+
return store.designRegistry;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Resets the singleton instance. For tests only.
|
|
25
|
+
*/
|
|
26
|
+
function resetDesignRegistryInstance() {
|
|
27
|
+
getGlobalStudioStore().designRegistry = null;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Checks if the singleton instance has been created.
|
|
31
|
+
*/
|
|
32
|
+
function hasDesignRegistryInstance() {
|
|
33
|
+
return getGlobalStudioStore().designRegistry !== null;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export { getDesignRegistryInstance, hasDesignRegistryInstance, resetDesignRegistryInstance };
|
|
37
|
+
//# sourceMappingURL=singleton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"singleton.js","sources":["../../../src/design-registry/singleton.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAGA;;;;;;;;;;;AAWG;SACa,yBAAyB,GAAA;AACvC,IAAA,MAAM,KAAK,GAAG,oBAAoB,EAAE;AACpC,IAAA,IAAI,CAAC,KAAK,CAAC,cAAc,EAAE;AACzB,QAAA,KAAK,CAAC,cAAc,GAAG,IAAI,cAAc,EAAE;IAC7C;IACA,OAAO,KAAK,CAAC,cAAgC;AAC/C;AAEA;;AAEG;SACa,2BAA2B,GAAA;AACzC,IAAA,oBAAoB,EAAE,CAAC,cAAc,GAAG,IAAI;AAC9C;AAEA;;AAEG;SACa,yBAAyB,GAAA;AACvC,IAAA,OAAO,oBAAoB,EAAE,CAAC,cAAc,KAAK,IAAI;AACvD;;;;"}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -87,9 +87,56 @@ type ObjectInput = PropBase<NodePropTypes["object"], Record<string, unknown>> &
|
|
|
87
87
|
properties?: unknown;
|
|
88
88
|
};
|
|
89
89
|
type AnyProp = PropBase<NodePropTypes["any"], any>;
|
|
90
|
+
/**
|
|
91
|
+
* Use `json_rte` for props bound to a **Contentstack JSON Rich-Text Editor field**.
|
|
92
|
+
*
|
|
93
|
+
* **Why a dedicated type:** RTE fields deliver structured content. Binding an RTE field
|
|
94
|
+
* to a plain `string` prop tries to render the structured value as text, which produces
|
|
95
|
+
* `[object Object]` or stringified JSON in the page. The `json_rte` type signals to Studio's
|
|
96
|
+
* data picker that the prop expects RTE content, and to component code that the prop value
|
|
97
|
+
* is a **JSON RTE document object** (not a string).
|
|
98
|
+
*
|
|
99
|
+
* **Runtime value shape.** The prop receives the JSON RTE field's structured value (an
|
|
100
|
+
* object — root node with `children`, `attrs`, etc.). To render it, the component must:
|
|
101
|
+
* 1. Convert the JSON RTE document to HTML via `@contentstack/json-rte-serializer`
|
|
102
|
+
* (`jsonToHtml(doc)`)
|
|
103
|
+
* 2. Sanitize the HTML (e.g. DOMPurify) — JSON RTE content is editor-supplied
|
|
104
|
+
* 3. Render with `dangerouslySetInnerHTML`
|
|
105
|
+
*
|
|
106
|
+
* @example
|
|
107
|
+
* ```tsx
|
|
108
|
+
* // register the prop
|
|
109
|
+
* registerComponent(BlogBody, {
|
|
110
|
+
* type: "blog-body",
|
|
111
|
+
* props: {
|
|
112
|
+
* body: { type: "json_rte", displayName: "Body" },
|
|
113
|
+
* },
|
|
114
|
+
* });
|
|
115
|
+
*
|
|
116
|
+
* // component serializes JSON RTE → HTML → sanitize → render
|
|
117
|
+
* import { jsonToHtml } from "@contentstack/json-rte-serializer";
|
|
118
|
+
* import DOMPurify from "isomorphic-dompurify";
|
|
119
|
+
* function BlogBody({ body }: { body: object | undefined }) {
|
|
120
|
+
* if (!body) return null;
|
|
121
|
+
* const html = jsonToHtml(body); // JSON RTE doc → HTML string
|
|
122
|
+
* const safe = DOMPurify.sanitize(html); // sanitize the HTML
|
|
123
|
+
* return <article dangerouslySetInnerHTML={{ __html: safe }} />;
|
|
124
|
+
* }
|
|
125
|
+
* ```
|
|
126
|
+
*
|
|
127
|
+
* **Do NOT type the prop as `string`** and skip the serializer — the runtime value is
|
|
128
|
+
* an object, not a pre-serialized HTML string.
|
|
129
|
+
*
|
|
130
|
+
* See docs: `docs/20-bring-your-own-components/component-schema.md` § json_rte.
|
|
131
|
+
*/
|
|
90
132
|
type JsonRTEProp = PropBase<NodePropTypes["json_rte"], object>;
|
|
133
|
+
/** Accepts singleline and multiline text fields only; excludes HTML RTE and Markdown. */
|
|
134
|
+
type PlainTextProp = PropBase<NodePropTypes["plaintext"], string> & {
|
|
135
|
+
control?: "default" | "large";
|
|
136
|
+
placeholder?: string;
|
|
137
|
+
};
|
|
91
138
|
type PropsWithNoOptionsRequired = StringProp | BooleanProp | NumberProp | DateStringProp | HrefProp | ImageUrlProp | ObjectProp | ArrayProp | SlotProp;
|
|
92
|
-
type PropInput = StringProp | BooleanProp | NumberProp | DateStringProp | HrefProp | ImageUrlProp | ObjectProp | ArrayProp | SlotProp | ChoiceProp | AnyProp | JsonRTEProp;
|
|
139
|
+
type PropInput = StringProp | BooleanProp | NumberProp | DateStringProp | HrefProp | ImageUrlProp | ObjectProp | ArrayProp | SlotProp | ChoiceProp | AnyProp | JsonRTEProp | PlainTextProp;
|
|
93
140
|
type PropTypeOfNoOptionsRequired = PropsWithNoOptionsRequired["type"];
|
|
94
141
|
type PropType = PropInput["type"];
|
|
95
142
|
type Props = {
|
|
@@ -126,8 +173,9 @@ declare const INTERNAL_COMPONENT_SECTIONS: {
|
|
|
126
173
|
readonly REGISTERED_COMPONENTS: "Registered Components";
|
|
127
174
|
readonly HTML_ELEMENT: "HTML Elements";
|
|
128
175
|
readonly SYMBOL: "Symbols";
|
|
176
|
+
readonly SECTION_COMPOSITION: "Sections";
|
|
129
177
|
};
|
|
130
|
-
declare const INTERNAL_SECTIONS: ("Basic" | "Media" | "Container" | "Smart Containers" | "Advanced" | "Registered Components" | "HTML Elements" | "Symbols")[];
|
|
178
|
+
declare const INTERNAL_SECTIONS: ("Basic" | "Media" | "Container" | "Smart Containers" | "Advanced" | "Registered Components" | "HTML Elements" | "Symbols" | "Sections")[];
|
|
131
179
|
declare const STYLE_SECTIONS_OPTIONS: readonly ["class", "size", "spacing", "position", "visibility", "layout", "typography", "transform", "media", "background", "shadow", "effect", "overflow", "border", "responsive"];
|
|
132
180
|
/**
|
|
133
181
|
* The style group is the group of the style sections options.
|
|
@@ -149,6 +197,7 @@ declare const INTERNAL_COMPONENTS_NAMES: {
|
|
|
149
197
|
readonly JSON_RTE: "json-rte";
|
|
150
198
|
readonly COLLAPSIBLE_TEXT: "collapsible-text";
|
|
151
199
|
readonly PLAIN_TEXT: "plain-text";
|
|
200
|
+
readonly RICH_TEXT: "rich-text";
|
|
152
201
|
readonly VIDEO: "video";
|
|
153
202
|
readonly EMBED: "embed";
|
|
154
203
|
readonly IMAGE: "image";
|
|
@@ -160,6 +209,7 @@ declare const INTERNAL_COMPONENTS_NAMES: {
|
|
|
160
209
|
readonly CONDITION_BLOCK: "condition-block";
|
|
161
210
|
readonly SYMBOL: "symbol";
|
|
162
211
|
readonly FRAGMENT: "fragment";
|
|
212
|
+
readonly SECTION_SLOT: "section-slot";
|
|
163
213
|
readonly HTML_ELEMENT: "html-element";
|
|
164
214
|
readonly STYLE_SHEET: "style-sheet";
|
|
165
215
|
};
|
|
@@ -243,13 +293,34 @@ interface RegisterComponentSchemaInput<C = unknown> {
|
|
|
243
293
|
*/
|
|
244
294
|
hideFromComponentList?: boolean;
|
|
245
295
|
icon?: string;
|
|
296
|
+
/**
|
|
297
|
+
* A custom icon for this component, shown in the Studio Layers tree and other
|
|
298
|
+
* component-icon surfaces. Accepts one of:
|
|
299
|
+
* - an inline SVG string (e.g. `"<svg ...>...</svg>"`) — recommended; themeable via `currentColor`
|
|
300
|
+
* - an absolute URL (`"https://..."` or a `"data:image/..."` data URI)
|
|
301
|
+
* - a servable relative/root-relative path on your app (`"/icons/foo.svg"`, or an imported asset URL)
|
|
302
|
+
*
|
|
303
|
+
* Note: a raw source-tree path (e.g. `"./icons/foo.svg"`) will not resolve — bundlers hash and
|
|
304
|
+
* relocate assets. Put the asset in `public/` and pass a root-relative path, or import it
|
|
305
|
+
* (`import url from "./icon.svg"`) and pass the resulting URL.
|
|
306
|
+
*
|
|
307
|
+
* Invalid values are ignored (with a console warning) and fall back to the default icon.
|
|
308
|
+
*/
|
|
309
|
+
layerIcon?: LayerIcon;
|
|
246
310
|
/**
|
|
247
311
|
* This can be used to store extra metadata for components. For eg for symbols we can store uid here.
|
|
248
312
|
*/
|
|
249
313
|
metadata?: Record<string, unknown>;
|
|
250
314
|
}
|
|
251
|
-
|
|
315
|
+
/**
|
|
316
|
+
* Accepted shapes for {@link RegisterComponentSchemaInput.layerIcon}. The template-literal
|
|
317
|
+
* members are editor hints only — the trailing `string` keeps any value assignable (imported
|
|
318
|
+
* SVG vars, relative paths, xml-prolog SVGs), and the real validation happens at runtime.
|
|
319
|
+
*/
|
|
320
|
+
type LayerIcon = `<svg${string}` | `<?xml${string}` | `http://${string}` | `https://${string}` | `data:image/${string}` | `/${string}` | string;
|
|
321
|
+
interface RegisterComponentSchema<C> extends Required<Omit<RegisterComponentSchemaInput<C>, "props" | "layerIcon">> {
|
|
252
322
|
registry: Registry;
|
|
323
|
+
layerIcon?: LayerIcon;
|
|
253
324
|
sections: string[];
|
|
254
325
|
styles: {
|
|
255
326
|
[styleGroup: string]: Required<StyleGroupOptions>;
|
|
@@ -338,11 +409,37 @@ declare class ComponentRegistry<C> {
|
|
|
338
409
|
* @param componentsConfigs
|
|
339
410
|
*/
|
|
340
411
|
registerSymbolComponent(componentsConfigs: RegisterInternalComponentOptionsInput<C>[]): void;
|
|
412
|
+
registerSectionComponent(componentsConfigs: RegisterInternalComponentOptionsInput<C>[]): void;
|
|
341
413
|
/**
|
|
342
414
|
* Registers one or more components in the component registry.
|
|
415
|
+
*
|
|
416
|
+
* By default, duplicate registrations (same `type` registered twice) are
|
|
417
|
+
* silently skipped — making the call **idempotent**. This is the desired
|
|
418
|
+
* behaviour under:
|
|
419
|
+
* - HMR re-evaluation (the same module runs twice in dev),
|
|
420
|
+
* - dual-bundle scenarios (RSC + client both pull in the registration
|
|
421
|
+
* module),
|
|
422
|
+
* - prod build workers (each worker may re-import the module),
|
|
423
|
+
* - test setup re-runs.
|
|
424
|
+
*
|
|
425
|
+
* The previous default — throwing on duplicate — forced every consumer to
|
|
426
|
+
* wrap the call in `try/catch` to absorb the throw, which had the side
|
|
427
|
+
* effect of masking real registration errors (typos in `type`, malformed
|
|
428
|
+
* schemas). Real errors now surface on the first call; duplicates no longer
|
|
429
|
+
* trip them up.
|
|
430
|
+
*
|
|
431
|
+
* Pass `{ strict: true }` to opt back into the old behaviour (throw on any
|
|
432
|
+
* duplicate). This is useful in tests that want to assert a clean
|
|
433
|
+
* registration boundary. `overrideDefaultComponents` on the registry config
|
|
434
|
+
* still wins over both — it lets a duplicate replace the existing entry.
|
|
435
|
+
*
|
|
343
436
|
* @param components - An array of component options to register.
|
|
437
|
+
* @param options - Per-call registration options. `strict: true` reinstates
|
|
438
|
+
* the throw on duplicate.
|
|
344
439
|
*/
|
|
345
|
-
registerComponents(components: RegisterComponentOptionsInput<C>[]
|
|
440
|
+
registerComponents(components: RegisterComponentOptionsInput<C>[], options?: {
|
|
441
|
+
strict?: boolean;
|
|
442
|
+
}): void;
|
|
346
443
|
/**
|
|
347
444
|
* Retrieves an array of component registry values.
|
|
348
445
|
*
|
|
@@ -441,18 +538,18 @@ declare class ComponentRegistry<C> {
|
|
|
441
538
|
}
|
|
442
539
|
|
|
443
540
|
/**
|
|
444
|
-
*
|
|
445
|
-
* Creates it if it doesn't exist yet.
|
|
446
|
-
*
|
|
447
|
-
* @returns The singleton ComponentRegistry instance
|
|
541
|
+
* Singleton ComponentRegistry, backed by a versioned slot on `globalThis`.
|
|
448
542
|
*
|
|
449
|
-
*
|
|
450
|
-
*
|
|
451
|
-
*
|
|
543
|
+
* The previous module-scoped `let instance` only existed within whichever
|
|
544
|
+
* module-graph evaluated this file. Under Next.js's dual RSC/client graph or
|
|
545
|
+
* across prod build workers, that meant two registries with no sharing —
|
|
546
|
+
* `fetchCompositionData` (server) could see an empty registry while
|
|
547
|
+
* `<StudioComponent>` (client) saw a populated one. See `common/global-store.ts`
|
|
548
|
+
* for the full reasoning.
|
|
452
549
|
*
|
|
453
|
-
*
|
|
454
|
-
*
|
|
455
|
-
*
|
|
550
|
+
* After this change, all callers of `getComponentRegistryInstance()` resolve
|
|
551
|
+
* to the same `ComponentRegistry` instance within a single JS runtime,
|
|
552
|
+
* regardless of which graph or worker they were evaluated in.
|
|
456
553
|
*/
|
|
457
554
|
declare function getComponentRegistryInstance(): ComponentRegistry<any>;
|
|
458
555
|
/**
|
|
@@ -756,6 +853,28 @@ declare class DesignRegistry {
|
|
|
756
853
|
updateClasses(classes: DesignClasses[]): void;
|
|
757
854
|
}
|
|
758
855
|
|
|
856
|
+
/**
|
|
857
|
+
* Singleton DesignRegistry, backed by a versioned slot on `globalThis`.
|
|
858
|
+
*
|
|
859
|
+
* Previously, `studio-react/src/composable-studio/sdk.ts` did
|
|
860
|
+
* `export const designRegistry = new DesignRegistry()` at module scope — which
|
|
861
|
+
* means every separate module-graph (RSC vs client, build workers) got its own
|
|
862
|
+
* `DesignRegistry`. Design tokens registered on one side were invisible to the
|
|
863
|
+
* other. See `common/global-store.ts` for the dual-graph background.
|
|
864
|
+
*
|
|
865
|
+
* After this change, all callers of `getDesignRegistryInstance()` resolve to
|
|
866
|
+
* the same `DesignRegistry` within a single JS runtime.
|
|
867
|
+
*/
|
|
868
|
+
declare function getDesignRegistryInstance(): DesignRegistry;
|
|
869
|
+
/**
|
|
870
|
+
* Resets the singleton instance. For tests only.
|
|
871
|
+
*/
|
|
872
|
+
declare function resetDesignRegistryInstance(): void;
|
|
873
|
+
/**
|
|
874
|
+
* Checks if the singleton instance has been created.
|
|
875
|
+
*/
|
|
876
|
+
declare function hasDesignRegistryInstance(): boolean;
|
|
877
|
+
|
|
759
878
|
declare function getDesignClassesNames<C extends DesignClassesInput[]>(classes: C): DesignClassesNames<C>;
|
|
760
879
|
|
|
761
880
|
declare const DEFAULT_DESIGN_TOKENS: {
|
|
@@ -1164,10 +1283,26 @@ interface DataSources {
|
|
|
1164
1283
|
contentstack?: any;
|
|
1165
1284
|
[source: string]: any;
|
|
1166
1285
|
}
|
|
1286
|
+
interface SectionScopedDataSources {
|
|
1287
|
+
template: unknown;
|
|
1288
|
+
contentstack: Record<string, any>;
|
|
1289
|
+
contentstack_queries: Record<string, any>;
|
|
1290
|
+
static_value?: Record<string, unknown>;
|
|
1291
|
+
page: DataSources;
|
|
1292
|
+
repeater?: Record<string, {
|
|
1293
|
+
context: unknown;
|
|
1294
|
+
}>;
|
|
1295
|
+
parentRepeaterUID?: string | null;
|
|
1296
|
+
selectedField?: string;
|
|
1297
|
+
uidRemapping?: Record<string, string>;
|
|
1298
|
+
componentPropsFallback?: Record<string, unknown>;
|
|
1299
|
+
}
|
|
1167
1300
|
interface StudioSpecData {
|
|
1168
1301
|
dataSources: DataSources;
|
|
1169
1302
|
static_value: StaticValue;
|
|
1170
1303
|
symbol_props?: Record<string, any>;
|
|
1304
|
+
component_props?: Record<string, any>;
|
|
1305
|
+
section_scoped_data?: Record<string, SectionScopedDataSources>;
|
|
1171
1306
|
}
|
|
1172
1307
|
interface ComposableStudioData extends StudioSpecData {
|
|
1173
1308
|
component_props: Record<string, any> | undefined;
|
|
@@ -1179,6 +1314,12 @@ interface StaticValueItem<T> {
|
|
|
1179
1314
|
}
|
|
1180
1315
|
type RawStaticValue = {
|
|
1181
1316
|
text?: Array<StaticValueItem<string>>;
|
|
1317
|
+
/**
|
|
1318
|
+
* COMS-1035: text-node content props use the `plaintext` prop type and
|
|
1319
|
+
* persist their authored static value under this `plaintext` schema key
|
|
1320
|
+
* (was `text` before the migration).
|
|
1321
|
+
*/
|
|
1322
|
+
plaintext?: Array<StaticValueItem<string>>;
|
|
1182
1323
|
/**
|
|
1183
1324
|
* NOTE: We are storing the Markdown value in the html_rte field.
|
|
1184
1325
|
* Earlier we used to store the HTML Values, here we are storing the Markdown Values.
|
|
@@ -1229,6 +1370,21 @@ type PlaceHolders<T> = PartialRecord<PropType, (placeholder?: string) => T>;
|
|
|
1229
1370
|
* @throws {Error} - Throws an error if the prop type does not match the component registry or if the type is not handled.
|
|
1230
1371
|
*/
|
|
1231
1372
|
|
|
1373
|
+
/**
|
|
1374
|
+
* Retract every binding-mismatch error previously reported for `nodeUid`'s
|
|
1375
|
+
* props and forget them.
|
|
1376
|
+
*
|
|
1377
|
+
* The in-render retraction in `retrievePropValue` only clears the editor badge
|
|
1378
|
+
* when the SAME node re-renders with matching data — which never happens once
|
|
1379
|
+
* the node disappears (e.g. a repeater item removed, or a section swapped for a
|
|
1380
|
+
* different schema). Without this, such a node's badge would latch and its
|
|
1381
|
+
* entry would leak in `reportedBindingErrors` forever. Call this from the
|
|
1382
|
+
* node's unmount path so the badge reflects the live tree.
|
|
1383
|
+
*
|
|
1384
|
+
* Keys are `${nodeUid}-${field}`; the trailing `-` (and fixed-length uids)
|
|
1385
|
+
* makes the prefix match exact, so one node's uid can't match another's.
|
|
1386
|
+
*/
|
|
1387
|
+
declare function clearReportedBindingErrorsForNode(nodeUid: string): void;
|
|
1232
1388
|
type CommonNodeProps<T> = T & {
|
|
1233
1389
|
binding?: string;
|
|
1234
1390
|
placeholder?: string;
|
|
@@ -1322,5 +1478,40 @@ declare class BreakpointRegistry {
|
|
|
1322
1478
|
declare const getSymbolUIDFromNode: (symbol: Node) => string;
|
|
1323
1479
|
declare const getSymbolUIDFromUID: (uid: string) => string;
|
|
1324
1480
|
|
|
1325
|
-
|
|
1326
|
-
|
|
1481
|
+
/**
|
|
1482
|
+
* Extracts the composition UID from a section-composition node's metadata.
|
|
1483
|
+
* Used to resolve section references to their actual composition identifiers.
|
|
1484
|
+
*
|
|
1485
|
+
* @param section - The section node containing metadata
|
|
1486
|
+
* @returns The composition UID or undefined if not present
|
|
1487
|
+
*/
|
|
1488
|
+
declare const getSectionUIDFromNode: (section: Node) => any;
|
|
1489
|
+
|
|
1490
|
+
/**
|
|
1491
|
+
* Shape of the slot we own on globalThis. Each field is lazily initialized by
|
|
1492
|
+
* the corresponding `get*Instance()` helper; storing `null` keeps the slot
|
|
1493
|
+
* type-stable while letting each consumer create its instance on first access.
|
|
1494
|
+
*/
|
|
1495
|
+
interface GlobalStudioStore {
|
|
1496
|
+
componentRegistry: unknown | null;
|
|
1497
|
+
designRegistry: unknown | null;
|
|
1498
|
+
breakpointManager: unknown | null;
|
|
1499
|
+
}
|
|
1500
|
+
/**
|
|
1501
|
+
* Returns the SDK's versioned slot on globalThis, creating it on first call.
|
|
1502
|
+
* Always returns the same object reference within a single JS runtime.
|
|
1503
|
+
*
|
|
1504
|
+
* Type-erased on purpose: each registry singleton casts to its own type on
|
|
1505
|
+
* read/write so the public API of `studio-registry` stays free of cross-
|
|
1506
|
+
* package import dependencies (e.g. `BreakpointManager` lives in
|
|
1507
|
+
* `studio-client`).
|
|
1508
|
+
*/
|
|
1509
|
+
declare function getGlobalStudioStore(): GlobalStudioStore;
|
|
1510
|
+
/**
|
|
1511
|
+
* Clears the entire store. For tests only. Production code should never call
|
|
1512
|
+
* this — it would orphan every existing reference to the previous instances.
|
|
1513
|
+
*/
|
|
1514
|
+
declare function resetGlobalStudioStore(): void;
|
|
1515
|
+
|
|
1516
|
+
export { ALLOWED_DESIGN_VALUES_LEVELS, BUILT_IN_COMPONENTS, BreakpointRegistry, ComponentRegistry, DATA_SOURCES, DATA_SOURCES_PREFIX, DEFAULT_DESIGN_TOKENS, DesignRegistry, INTERNAL_COMPONENTS_NAMES, INTERNAL_COMPONENT_SECTIONS, INTERNAL_SECTIONS, JSONRTERegistry, STYLE_SECTIONS_OPTIONS, STYLE_SECTION_CATEGORIES, SYSTEM_COMPONENTS, clearReportedBindingErrorsForNode, convertBindingPath, getBindingString, getComponentRegistryInstance, getCslpPath, getCslpTag, getDataType, getDefaultPropStaticValue, getDesignClassesNames, getDesignRegistryInstance, getFlattenedData, getGlobalStudioStore, getPlaceHolderComponent, getRepeaterBinding, getRepeaterContextPath, getSectionUIDFromNode, getSlotData, getSymbolUIDFromNode, getSymbolUIDFromUID, hasComponentRegistryInstance, hasDesignRegistryInstance, isDataMatchingPropType, isKnownType, normalizeSingleSelectChoiceValue, resetComponentRegistryInstance, resetDesignRegistryInstance, resetGlobalStudioStore, resolveMetadataBindings, retrievePropValue };
|
|
1517
|
+
export type { AllowedDesignValues, AllowedDesignValuesLevel, AnyProp, ArrayProp, BooleanProp, Breakpoint, BreakpointInput, CSBindingPath, CSDataSources, ChoiceProp, ComponentRegistryOptions, ComponentType, ComposableStudioData, ContentstackBindingValue, CssVariablesToDesignTokens, CssVariablesToValue, DataSourceItem, DataSources, DateStringProp, DefaultBreakpoint, DesignClassValue, DesignClasses, DesignClassesInput, DesignClassesNames, DesignTokenCssVariable, DesignTokens, DesignTokensInput, DesignTokensInputKeys, DesignTokensOptions, DesignTokensOptionsInput, GetSlots, GetSlotsParams, GlobalDesignTokens, GlobalStudioStore, HrefProp, ICSEntryReference, ImageUrlProp, InternalComponentRegistryOptions, JSONRTERegistryOptions, JsonRTEProp, LayerIcon, LengthToken, NodeProps, NumberProp, ObjectInput, ObjectProp, PlaceHolders, PlainTextProp, PreProcessedBreakpoint, PreProcessedDesignTokenInput, PropBase, PropInput, PropType, PropTypeOfNoOptionsRequired, PropValidator, Props, PropsWithNoOptionsRequired, RawStaticValue, RegisterComponentOptionsInput, RegisterComponentSchema, RegisterComponentSchemaInput, RegisterInternalComponentOptionsInput, Registry, RepeaterBindingValue, SectionDesignTokens, SectionScopedDataSources, SlotProp, StaticValue, StaticValueItem, StaticValueUid, StringProp, StudioSpecData, StyleGroupOptions, StyleSectionCategoriesOptions, StyleSectionOptions, StyleSections, TemplateBindingValue };
|
package/dist/esm/index.js
CHANGED
|
@@ -2,12 +2,15 @@ export { ComponentRegistry } from './component-registry/registry.js';
|
|
|
2
2
|
export { BUILT_IN_COMPONENTS, DATA_SOURCES, DATA_SOURCES_PREFIX, INTERNAL_COMPONENTS_NAMES, INTERNAL_COMPONENT_SECTIONS, INTERNAL_SECTIONS, STYLE_SECTIONS_OPTIONS, STYLE_SECTION_CATEGORIES, SYSTEM_COMPONENTS } from './component-registry/registry.constant.js';
|
|
3
3
|
export { getComponentRegistryInstance, hasComponentRegistryInstance, resetComponentRegistryInstance } from './component-registry/singleton.js';
|
|
4
4
|
export { DesignRegistry } from './design-registry/design-registry.js';
|
|
5
|
+
export { getDesignRegistryInstance, hasDesignRegistryInstance, resetDesignRegistryInstance } from './design-registry/singleton.js';
|
|
5
6
|
export { getDesignClassesNames } from './design-registry/design-classes.js';
|
|
6
7
|
export { ALLOWED_DESIGN_VALUES_LEVELS, DEFAULT_DESIGN_TOKENS } from './design-registry/constants.js';
|
|
7
8
|
export { JSONRTERegistry } from './json-rte-registry/index.js';
|
|
8
|
-
export { retrievePropValue } from './data-binder/retrieve-data.js';
|
|
9
|
+
export { clearReportedBindingErrorsForNode, retrievePropValue } from './data-binder/retrieve-data.js';
|
|
9
10
|
export { convertBindingPath, getBindingString, getDataType, getDefaultPropStaticValue, getFlattenedData, getPlaceHolderComponent, getRepeaterContextPath, getSlotData, isDataMatchingPropType, isKnownType, normalizeSingleSelectChoiceValue, resolveMetadataBindings } from './data-binder/retrieve-data.util.js';
|
|
10
11
|
export { getCslpPath, getCslpTag, getRepeaterBinding } from './data-binder/cslp.js';
|
|
11
12
|
export { BreakpointRegistry } from './breakpoint-registry/index.js';
|
|
12
13
|
export { getSymbolUIDFromNode, getSymbolUIDFromUID } from './utils/symbols.js';
|
|
14
|
+
export { getSectionUIDFromNode } from './utils/sections.js';
|
|
15
|
+
export { getGlobalStudioStore, resetGlobalStudioStore } from './common/global-store.js';
|
|
13
16
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Extracts the composition UID from a section-composition node's metadata.
|
|
3
|
+
* Used to resolve section references to their actual composition identifiers.
|
|
4
|
+
*
|
|
5
|
+
* @param section - The section node containing metadata
|
|
6
|
+
* @returns The composition UID or undefined if not present
|
|
7
|
+
*/
|
|
8
|
+
const getSectionUIDFromNode = (section) => {
|
|
9
|
+
return section.metadata?.compositionUID;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { getSectionUIDFromNode };
|
|
13
|
+
//# sourceMappingURL=sections.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sections.js","sources":["../../../src/utils/sections.ts"],"sourcesContent":[null],"names":[],"mappings":"AAEA;;;;;;AAMG;AACI,MAAM,qBAAqB,GAAG,CAAC,OAAa,KAAI;AACrD,IAAA,OAAO,OAAO,CAAC,QAAQ,EAAE,cAAc;AACzC;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentstack/studio-registry",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "This package houses all the registry related to the visual builder",
|
|
5
5
|
"main": "dist/cjs/index.cjs",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"dist"
|
|
16
16
|
],
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@contentstack/common-config": "^1.
|
|
19
|
-
"@contentstack/studio-internal": "^1.
|
|
18
|
+
"@contentstack/common-config": "^1.2.0",
|
|
19
|
+
"@contentstack/studio-internal": "^1.3.0",
|
|
20
20
|
"@rollup/plugin-commonjs": "^28.0.6",
|
|
21
21
|
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
22
22
|
"@rollup/plugin-terser": "^1.0.0",
|
|
@@ -52,14 +52,11 @@
|
|
|
52
52
|
"author": "Contentstack",
|
|
53
53
|
"license": "MIT",
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@contentstack/json-rte-serializer": "^3.0
|
|
56
|
-
"@contentstack/studio-message-types": "^1.
|
|
57
|
-
"@contentstack/studio-messenger": "^1.
|
|
55
|
+
"@contentstack/json-rte-serializer": "^3.1.0",
|
|
56
|
+
"@contentstack/studio-message-types": "^1.3.0",
|
|
57
|
+
"@contentstack/studio-messenger": "^1.5.0",
|
|
58
58
|
"csstype": "^3.1.3",
|
|
59
59
|
"lodash-es": "^4.18.1"
|
|
60
60
|
},
|
|
61
|
-
"
|
|
62
|
-
"access": "public"
|
|
63
|
-
},
|
|
64
|
-
"gitHead": "1877b45f4a73ffb0c570ea06c197ba95504c014a"
|
|
61
|
+
"gitHead": "8ac2eaeeeab2403708cf075475d8553832fb7866"
|
|
65
62
|
}
|