microboard-temp 0.4.50 → 0.4.51

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.
@@ -21471,7 +21471,7 @@ class BaseItem extends Mbr {
21471
21471
  childIds.forEach((childId) => {
21472
21472
  const foundItem = this.index?.getById(childId);
21473
21473
  if (this.parent !== childId && this.getId() !== childId) {
21474
- if (!this.index?.getById(childId) && foundItem) {
21474
+ if (!this.board.index.getById(childId) && foundItem) {
21475
21475
  foundItem.parent = "Board";
21476
21476
  this.index?.remove(foundItem);
21477
21477
  this.board.items.index.insert(foundItem);
package/dist/cjs/index.js CHANGED
@@ -21471,7 +21471,7 @@ class BaseItem extends Mbr {
21471
21471
  childIds.forEach((childId) => {
21472
21472
  const foundItem = this.index?.getById(childId);
21473
21473
  if (this.parent !== childId && this.getId() !== childId) {
21474
- if (!this.index?.getById(childId) && foundItem) {
21474
+ if (!this.board.index.getById(childId) && foundItem) {
21475
21475
  foundItem.parent = "Board";
21476
21476
  this.index?.remove(foundItem);
21477
21477
  this.board.items.index.insert(foundItem);
package/dist/cjs/node.js CHANGED
@@ -23943,7 +23943,7 @@ class BaseItem extends Mbr {
23943
23943
  childIds.forEach((childId) => {
23944
23944
  const foundItem = this.index?.getById(childId);
23945
23945
  if (this.parent !== childId && this.getId() !== childId) {
23946
- if (!this.index?.getById(childId) && foundItem) {
23946
+ if (!this.board.index.getById(childId) && foundItem) {
23947
23947
  foundItem.parent = "Board";
23948
23948
  this.index?.remove(foundItem);
23949
23949
  this.board.items.index.insert(foundItem);
@@ -21321,7 +21321,7 @@ class BaseItem extends Mbr {
21321
21321
  childIds.forEach((childId) => {
21322
21322
  const foundItem = this.index?.getById(childId);
21323
21323
  if (this.parent !== childId && this.getId() !== childId) {
21324
- if (!this.index?.getById(childId) && foundItem) {
21324
+ if (!this.board.index.getById(childId) && foundItem) {
21325
21325
  foundItem.parent = "Board";
21326
21326
  this.index?.remove(foundItem);
21327
21327
  this.board.items.index.insert(foundItem);
package/dist/esm/index.js CHANGED
@@ -21314,7 +21314,7 @@ class BaseItem extends Mbr {
21314
21314
  childIds.forEach((childId) => {
21315
21315
  const foundItem = this.index?.getById(childId);
21316
21316
  if (this.parent !== childId && this.getId() !== childId) {
21317
- if (!this.index?.getById(childId) && foundItem) {
21317
+ if (!this.board.index.getById(childId) && foundItem) {
21318
21318
  foundItem.parent = "Board";
21319
21319
  this.index?.remove(foundItem);
21320
21320
  this.board.items.index.insert(foundItem);
package/dist/esm/node.js CHANGED
@@ -23781,7 +23781,7 @@ class BaseItem extends Mbr {
23781
23781
  childIds.forEach((childId) => {
23782
23782
  const foundItem = this.index?.getById(childId);
23783
23783
  if (this.parent !== childId && this.getId() !== childId) {
23784
- if (!this.index?.getById(childId) && foundItem) {
23784
+ if (!this.board.index.getById(childId) && foundItem) {
23785
23785
  foundItem.parent = "Board";
23786
23786
  this.index?.remove(foundItem);
23787
23787
  this.board.items.index.insert(foundItem);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.4.50",
3
+ "version": "0.4.51",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",