microboard-ui-temp 0.1.10 → 0.1.12

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -3
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -256086,7 +256086,7 @@ class Deck extends BaseItem {
256086
256086
  updateMbr() {
256087
256087
  const { translateX, translateY } = this.transformation.matrix;
256088
256088
  const items = this.index.list();
256089
- const itemsMbr = items[0].getMbr().combine(items.slice(1).map((item) => item.getMbr()));
256089
+ const itemsMbr = items[0]?.getMbr().combine(items.slice(1).map((item) => item.getMbr()));
256090
256090
  this.left = translateX;
256091
256091
  this.top = translateY;
256092
256092
  this.right = translateX + (itemsMbr?.getWidth() || conf.CARD_DIMENSIONS.width + conf.DECK_HORIZONTAL_OFFSET * ((this.children.length || 1) - 1));
@@ -262142,7 +262142,7 @@ class Board {
262142
262142
  itemData.transformation.translateX = translateX - minX + x;
262143
262143
  itemData.transformation.translateY = translateY - minY + y;
262144
262144
  }
262145
- if ("children" in itemData && itemData.children) {
262145
+ if ("children" in itemData && itemData.children?.length) {
262146
262146
  itemData.children = itemData.children.map((childId) => newItemIdMap[childId]);
262147
262147
  }
262148
262148
  newMap[newItemId] = itemData;
@@ -262274,7 +262274,7 @@ class Board {
262274
262274
  itemData.transformation.translateX = translateX + width2 * 10 + 10;
262275
262275
  }
262276
262276
  }
262277
- if (itemData.itemType === "Frame") {
262277
+ if ("children" in itemData && itemData.children?.length) {
262278
262278
  itemData.children = itemData.children.map((childId) => newItemIdMap[childId]);
262279
262279
  }
262280
262280
  newMap[newItemId] = itemData;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-ui-temp",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "type": "module",
@@ -51,7 +51,7 @@
51
51
  "i18next-browser-languagedetector": "^8.2.0",
52
52
  "js-cookie": "^3.0.5",
53
53
  "jwt-decode": "^4.0.0",
54
- "microboard-temp": "^0.4.105",
54
+ "microboard-temp": "^0.4.107",
55
55
  "nanoid": "^5.1.5",
56
56
  "prop-types": "^15.8.1",
57
57
  "react-hot-toast": "2.4.1",