microboard-temp 0.1.23 → 0.1.24
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/browser.js +8 -8
- package/dist/cjs/index.js +8 -8
- package/dist/cjs/node.js +8 -8
- package/dist/esm/browser.js +8 -8
- package/dist/esm/index.js +8 -8
- package/dist/esm/node.js +8 -8
- package/package.json +1 -1
package/dist/cjs/browser.js
CHANGED
|
@@ -29130,8 +29130,8 @@ class BaseItem extends Mbr {
|
|
|
29130
29130
|
this[key] = value;
|
|
29131
29131
|
});
|
|
29132
29132
|
}
|
|
29133
|
-
this.linkTo = new LinkTo(this.id,
|
|
29134
|
-
this.transformation = new Transformation(this.id,
|
|
29133
|
+
this.linkTo = new LinkTo(this.id, board.events);
|
|
29134
|
+
this.transformation = new Transformation(this.id, board.events);
|
|
29135
29135
|
}
|
|
29136
29136
|
getId() {
|
|
29137
29137
|
return this.id;
|
|
@@ -60756,16 +60756,16 @@ class BoardSelection {
|
|
|
60756
60756
|
}
|
|
60757
60757
|
}
|
|
60758
60758
|
const textItem = item.getRichText()?.getTextString();
|
|
60759
|
-
const copyText = i18n.t("frame.copy");
|
|
60759
|
+
const copyText = conf.i18n.t("frame.copy");
|
|
60760
60760
|
const isCopyTextExist = textItem?.includes(copyText);
|
|
60761
60761
|
const isChangeCopiedFrameText = item.itemType === "Frame" && serializedData.itemType === "Frame" && textItem !== "" && !isCopyTextExist;
|
|
60762
60762
|
if (isChangeCopiedFrameText) {
|
|
60763
60763
|
const copiedFrameText = copyText + (textItem || serializedData.text?.placeholderText);
|
|
60764
|
-
item.
|
|
60765
|
-
item.
|
|
60766
|
-
serializedData.text = item.
|
|
60767
|
-
item.
|
|
60768
|
-
item.
|
|
60764
|
+
item.getRichText()?.editor.clearText();
|
|
60765
|
+
item.getRichText()?.editor.addText(copiedFrameText);
|
|
60766
|
+
serializedData.text = item.getRichText()?.serialize();
|
|
60767
|
+
item.getRichText()?.editor.clearText();
|
|
60768
|
+
item.getRichText()?.editor.addText(textItem || "");
|
|
60769
60769
|
}
|
|
60770
60770
|
copiedItemsMap[item.getId()] = { ...serializedData, zIndex };
|
|
60771
60771
|
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -29130,8 +29130,8 @@ class BaseItem extends Mbr {
|
|
|
29130
29130
|
this[key] = value;
|
|
29131
29131
|
});
|
|
29132
29132
|
}
|
|
29133
|
-
this.linkTo = new LinkTo(this.id,
|
|
29134
|
-
this.transformation = new Transformation(this.id,
|
|
29133
|
+
this.linkTo = new LinkTo(this.id, board.events);
|
|
29134
|
+
this.transformation = new Transformation(this.id, board.events);
|
|
29135
29135
|
}
|
|
29136
29136
|
getId() {
|
|
29137
29137
|
return this.id;
|
|
@@ -60756,16 +60756,16 @@ class BoardSelection {
|
|
|
60756
60756
|
}
|
|
60757
60757
|
}
|
|
60758
60758
|
const textItem = item.getRichText()?.getTextString();
|
|
60759
|
-
const copyText = i18n.t("frame.copy");
|
|
60759
|
+
const copyText = conf.i18n.t("frame.copy");
|
|
60760
60760
|
const isCopyTextExist = textItem?.includes(copyText);
|
|
60761
60761
|
const isChangeCopiedFrameText = item.itemType === "Frame" && serializedData.itemType === "Frame" && textItem !== "" && !isCopyTextExist;
|
|
60762
60762
|
if (isChangeCopiedFrameText) {
|
|
60763
60763
|
const copiedFrameText = copyText + (textItem || serializedData.text?.placeholderText);
|
|
60764
|
-
item.
|
|
60765
|
-
item.
|
|
60766
|
-
serializedData.text = item.
|
|
60767
|
-
item.
|
|
60768
|
-
item.
|
|
60764
|
+
item.getRichText()?.editor.clearText();
|
|
60765
|
+
item.getRichText()?.editor.addText(copiedFrameText);
|
|
60766
|
+
serializedData.text = item.getRichText()?.serialize();
|
|
60767
|
+
item.getRichText()?.editor.clearText();
|
|
60768
|
+
item.getRichText()?.editor.addText(textItem || "");
|
|
60769
60769
|
}
|
|
60770
60770
|
copiedItemsMap[item.getId()] = { ...serializedData, zIndex };
|
|
60771
60771
|
}
|
package/dist/cjs/node.js
CHANGED
|
@@ -37638,8 +37638,8 @@ class BaseItem extends Mbr {
|
|
|
37638
37638
|
this[key] = value;
|
|
37639
37639
|
});
|
|
37640
37640
|
}
|
|
37641
|
-
this.linkTo = new LinkTo(this.id,
|
|
37642
|
-
this.transformation = new Transformation(this.id,
|
|
37641
|
+
this.linkTo = new LinkTo(this.id, board.events);
|
|
37642
|
+
this.transformation = new Transformation(this.id, board.events);
|
|
37643
37643
|
}
|
|
37644
37644
|
getId() {
|
|
37645
37645
|
return this.id;
|
|
@@ -69199,16 +69199,16 @@ class BoardSelection {
|
|
|
69199
69199
|
}
|
|
69200
69200
|
}
|
|
69201
69201
|
const textItem = item.getRichText()?.getTextString();
|
|
69202
|
-
const copyText = i18n.t("frame.copy");
|
|
69202
|
+
const copyText = conf.i18n.t("frame.copy");
|
|
69203
69203
|
const isCopyTextExist = textItem?.includes(copyText);
|
|
69204
69204
|
const isChangeCopiedFrameText = item.itemType === "Frame" && serializedData.itemType === "Frame" && textItem !== "" && !isCopyTextExist;
|
|
69205
69205
|
if (isChangeCopiedFrameText) {
|
|
69206
69206
|
const copiedFrameText = copyText + (textItem || serializedData.text?.placeholderText);
|
|
69207
|
-
item.
|
|
69208
|
-
item.
|
|
69209
|
-
serializedData.text = item.
|
|
69210
|
-
item.
|
|
69211
|
-
item.
|
|
69207
|
+
item.getRichText()?.editor.clearText();
|
|
69208
|
+
item.getRichText()?.editor.addText(copiedFrameText);
|
|
69209
|
+
serializedData.text = item.getRichText()?.serialize();
|
|
69210
|
+
item.getRichText()?.editor.clearText();
|
|
69211
|
+
item.getRichText()?.editor.addText(textItem || "");
|
|
69212
69212
|
}
|
|
69213
69213
|
copiedItemsMap[item.getId()] = { ...serializedData, zIndex };
|
|
69214
69214
|
}
|
package/dist/esm/browser.js
CHANGED
|
@@ -28972,8 +28972,8 @@ class BaseItem extends Mbr {
|
|
|
28972
28972
|
this[key] = value;
|
|
28973
28973
|
});
|
|
28974
28974
|
}
|
|
28975
|
-
this.linkTo = new LinkTo(this.id,
|
|
28976
|
-
this.transformation = new Transformation(this.id,
|
|
28975
|
+
this.linkTo = new LinkTo(this.id, board.events);
|
|
28976
|
+
this.transformation = new Transformation(this.id, board.events);
|
|
28977
28977
|
}
|
|
28978
28978
|
getId() {
|
|
28979
28979
|
return this.id;
|
|
@@ -60598,16 +60598,16 @@ class BoardSelection {
|
|
|
60598
60598
|
}
|
|
60599
60599
|
}
|
|
60600
60600
|
const textItem = item.getRichText()?.getTextString();
|
|
60601
|
-
const copyText = i18n.t("frame.copy");
|
|
60601
|
+
const copyText = conf.i18n.t("frame.copy");
|
|
60602
60602
|
const isCopyTextExist = textItem?.includes(copyText);
|
|
60603
60603
|
const isChangeCopiedFrameText = item.itemType === "Frame" && serializedData.itemType === "Frame" && textItem !== "" && !isCopyTextExist;
|
|
60604
60604
|
if (isChangeCopiedFrameText) {
|
|
60605
60605
|
const copiedFrameText = copyText + (textItem || serializedData.text?.placeholderText);
|
|
60606
|
-
item.
|
|
60607
|
-
item.
|
|
60608
|
-
serializedData.text = item.
|
|
60609
|
-
item.
|
|
60610
|
-
item.
|
|
60606
|
+
item.getRichText()?.editor.clearText();
|
|
60607
|
+
item.getRichText()?.editor.addText(copiedFrameText);
|
|
60608
|
+
serializedData.text = item.getRichText()?.serialize();
|
|
60609
|
+
item.getRichText()?.editor.clearText();
|
|
60610
|
+
item.getRichText()?.editor.addText(textItem || "");
|
|
60611
60611
|
}
|
|
60612
60612
|
copiedItemsMap[item.getId()] = { ...serializedData, zIndex };
|
|
60613
60613
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -28965,8 +28965,8 @@ class BaseItem extends Mbr {
|
|
|
28965
28965
|
this[key] = value;
|
|
28966
28966
|
});
|
|
28967
28967
|
}
|
|
28968
|
-
this.linkTo = new LinkTo(this.id,
|
|
28969
|
-
this.transformation = new Transformation(this.id,
|
|
28968
|
+
this.linkTo = new LinkTo(this.id, board.events);
|
|
28969
|
+
this.transformation = new Transformation(this.id, board.events);
|
|
28970
28970
|
}
|
|
28971
28971
|
getId() {
|
|
28972
28972
|
return this.id;
|
|
@@ -60591,16 +60591,16 @@ class BoardSelection {
|
|
|
60591
60591
|
}
|
|
60592
60592
|
}
|
|
60593
60593
|
const textItem = item.getRichText()?.getTextString();
|
|
60594
|
-
const copyText = i18n.t("frame.copy");
|
|
60594
|
+
const copyText = conf.i18n.t("frame.copy");
|
|
60595
60595
|
const isCopyTextExist = textItem?.includes(copyText);
|
|
60596
60596
|
const isChangeCopiedFrameText = item.itemType === "Frame" && serializedData.itemType === "Frame" && textItem !== "" && !isCopyTextExist;
|
|
60597
60597
|
if (isChangeCopiedFrameText) {
|
|
60598
60598
|
const copiedFrameText = copyText + (textItem || serializedData.text?.placeholderText);
|
|
60599
|
-
item.
|
|
60600
|
-
item.
|
|
60601
|
-
serializedData.text = item.
|
|
60602
|
-
item.
|
|
60603
|
-
item.
|
|
60599
|
+
item.getRichText()?.editor.clearText();
|
|
60600
|
+
item.getRichText()?.editor.addText(copiedFrameText);
|
|
60601
|
+
serializedData.text = item.getRichText()?.serialize();
|
|
60602
|
+
item.getRichText()?.editor.clearText();
|
|
60603
|
+
item.getRichText()?.editor.addText(textItem || "");
|
|
60604
60604
|
}
|
|
60605
60605
|
copiedItemsMap[item.getId()] = { ...serializedData, zIndex };
|
|
60606
60606
|
}
|
package/dist/esm/node.js
CHANGED
|
@@ -37468,8 +37468,8 @@ class BaseItem extends Mbr {
|
|
|
37468
37468
|
this[key] = value;
|
|
37469
37469
|
});
|
|
37470
37470
|
}
|
|
37471
|
-
this.linkTo = new LinkTo(this.id,
|
|
37472
|
-
this.transformation = new Transformation(this.id,
|
|
37471
|
+
this.linkTo = new LinkTo(this.id, board.events);
|
|
37472
|
+
this.transformation = new Transformation(this.id, board.events);
|
|
37473
37473
|
}
|
|
37474
37474
|
getId() {
|
|
37475
37475
|
return this.id;
|
|
@@ -69029,16 +69029,16 @@ class BoardSelection {
|
|
|
69029
69029
|
}
|
|
69030
69030
|
}
|
|
69031
69031
|
const textItem = item.getRichText()?.getTextString();
|
|
69032
|
-
const copyText = i18n.t("frame.copy");
|
|
69032
|
+
const copyText = conf.i18n.t("frame.copy");
|
|
69033
69033
|
const isCopyTextExist = textItem?.includes(copyText);
|
|
69034
69034
|
const isChangeCopiedFrameText = item.itemType === "Frame" && serializedData.itemType === "Frame" && textItem !== "" && !isCopyTextExist;
|
|
69035
69035
|
if (isChangeCopiedFrameText) {
|
|
69036
69036
|
const copiedFrameText = copyText + (textItem || serializedData.text?.placeholderText);
|
|
69037
|
-
item.
|
|
69038
|
-
item.
|
|
69039
|
-
serializedData.text = item.
|
|
69040
|
-
item.
|
|
69041
|
-
item.
|
|
69037
|
+
item.getRichText()?.editor.clearText();
|
|
69038
|
+
item.getRichText()?.editor.addText(copiedFrameText);
|
|
69039
|
+
serializedData.text = item.getRichText()?.serialize();
|
|
69040
|
+
item.getRichText()?.editor.clearText();
|
|
69041
|
+
item.getRichText()?.editor.addText(textItem || "");
|
|
69042
69042
|
}
|
|
69043
69043
|
copiedItemsMap[item.getId()] = { ...serializedData, zIndex };
|
|
69044
69044
|
}
|