@contentstack/studio-registry 1.1.1 → 1.1.2-dev-20251104T1201-7f3ab62.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 +4 -4
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/component-registry/registry.js +3 -3
- package/dist/esm/data-binder/retrieve-data.util.js +1 -1
- package/dist/esm/data-binder/retrieve-data.util.js.map +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/package.json +6 -6
package/dist/cjs/index.cjs
CHANGED
|
@@ -4204,7 +4204,7 @@ class ComponentRegistry {
|
|
|
4204
4204
|
getComponentByNode(node, suppressError = true) {
|
|
4205
4205
|
const name = this.getComponentName(node);
|
|
4206
4206
|
if (!this.componentRegistry.has(name) && !suppressError) {
|
|
4207
|
-
throw new Error(`Component with
|
|
4207
|
+
throw new Error(`Component with type '${name}' is not registered.`);
|
|
4208
4208
|
}
|
|
4209
4209
|
if (!this.componentRegistry.has(name)) {
|
|
4210
4210
|
return;
|
|
@@ -4218,11 +4218,11 @@ class ComponentRegistry {
|
|
|
4218
4218
|
unregisterComponent(node) {
|
|
4219
4219
|
const name = typeof node === "string" ? node : this.getComponentName(node);
|
|
4220
4220
|
if (!this.componentRegistry.has(name)) {
|
|
4221
|
-
console.error(`Component with
|
|
4221
|
+
console.error(`Component with type '${name}' is not registered.`);
|
|
4222
4222
|
return;
|
|
4223
4223
|
}
|
|
4224
4224
|
if (SYSTEM_COMPONENTS.has(name)) {
|
|
4225
|
-
console.error(`Component with
|
|
4225
|
+
console.error(`Component with type '${name}' is a system component and cannot be unregistered.`);
|
|
4226
4226
|
return;
|
|
4227
4227
|
}
|
|
4228
4228
|
this.componentRegistry.delete(name);
|
|
@@ -5374,7 +5374,7 @@ function isDataMatchingPropType(data, type) {
|
|
|
5374
5374
|
href: dataType === "string",
|
|
5375
5375
|
imageurl: dataType === "string",
|
|
5376
5376
|
datestring: dataType === "string",
|
|
5377
|
-
json_rte: dataType === "
|
|
5377
|
+
json_rte: dataType === "object",
|
|
5378
5378
|
};
|
|
5379
5379
|
return map[type];
|
|
5380
5380
|
}
|