microboard-ui-temp 0.1.6 → 0.1.8

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.
@@ -78,7 +78,6 @@ function cleanupListeners() {
78
78
  }
79
79
  updateTransform(itemsDiv);
80
80
  }
81
- document.addEventListener("DOMContentLoaded", initListeners);
82
81
  export {
83
82
  initListeners,
84
83
  cleanupListeners
package/dist/index.js CHANGED
@@ -260211,7 +260211,7 @@ class BoardSelection {
260211
260211
  this.handleItemCopy(item, copiedItemsMap);
260212
260212
  });
260213
260213
  this.list().flatMap((item) => {
260214
- if (item instanceof Frame2) {
260214
+ if ("index" in item && item.index) {
260215
260215
  return item.getChildrenIds();
260216
260216
  }
260217
260217
  return [];
@@ -102,7 +102,6 @@ function cleanupListeners() {
102
102
  }
103
103
  updateTransform(itemsDiv);
104
104
  }
105
- document.addEventListener("DOMContentLoaded", initListeners);
106
105
 
107
106
  // src/public/titlePanel.ts
108
107
  var isSnapshotInIframe = window.parent && window.parent !== window && window.parent.location.href.includes("/snapshots/");
@@ -261,4 +260,5 @@ function initUI() {
261
260
  const panel = createTitlePanel();
262
261
  document.body.append(panel);
263
262
  }
263
+ document.addEventListener("DOMContentLoaded", initListeners);
264
264
  document.addEventListener("DOMContentLoaded", initUI);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-ui-temp",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
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.102",
54
+ "microboard-temp": "^0.4.103",
55
55
  "nanoid": "^5.1.5",
56
56
  "prop-types": "^15.8.1",
57
57
  "react-hot-toast": "2.4.1",