@contentstack/studio-registry 1.1.1 → 1.1.2

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.
@@ -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 name '${name}' is not registered.`);
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 name '${name}' is not registered.`);
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 name '${name}' is a system component and cannot be unregistered.`);
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 === "json",
5377
+ json_rte: dataType === "object",
5378
5378
  };
5379
5379
  return map[type];
5380
5380
  }