@nuforge/editor 0.3.1 → 0.3.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.
package/dist/index.cjs CHANGED
@@ -599,7 +599,9 @@ class Editor {
599
599
  component.name = clean;
600
600
  for (const c of this.getComponents()) {
601
601
  this.walkTemplates(c.template, (tpl) => {
602
- if (tpl instanceof t__namespace.ComponentTemplate && tpl.component.name === old) {
602
+ if (tpl instanceof t__namespace.ComponentTemplate &&
603
+ !tpl.component.external &&
604
+ tpl.component.name === old) {
603
605
  tpl.component.name = clean;
604
606
  }
605
607
  });
package/dist/index.mjs CHANGED
@@ -578,7 +578,9 @@ class Editor {
578
578
  component.name = clean;
579
579
  for (const c of this.getComponents()) {
580
580
  this.walkTemplates(c.template, (tpl) => {
581
- if (tpl instanceof t.ComponentTemplate && tpl.component.name === old) {
581
+ if (tpl instanceof t.ComponentTemplate &&
582
+ !tpl.component.external &&
583
+ tpl.component.name === old) {
582
584
  tpl.component.name = clean;
583
585
  }
584
586
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuforge/editor",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "High-level SDK for building visual page editors on nuforge (mutations, blocks, commands, selection)",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -31,8 +31,8 @@
31
31
  "react-dom": "^18 || ^19",
32
32
  "@nuforge/core": "0.1.5",
33
33
  "@nuforge/react": "0.1.5",
34
- "@nuforge/types": "0.1.4",
35
- "@nuforge/parser": "0.1.4"
34
+ "@nuforge/parser": "0.1.4",
35
+ "@nuforge/types": "0.1.4"
36
36
  },
37
37
  "peerDependenciesMeta": {
38
38
  "@nuforge/react": {
@@ -51,8 +51,8 @@
51
51
  "react": "^19.2.0",
52
52
  "react-dom": "^19.2.0",
53
53
  "@nuforge/core": "0.1.5",
54
- "@nuforge/react": "0.1.5",
55
54
  "@nuforge/parser": "0.1.4",
55
+ "@nuforge/react": "0.1.5",
56
56
  "@nuforge/types": "0.1.4"
57
57
  },
58
58
  "publishConfig": {