microboard-temp 0.4.99 → 0.4.100

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.
@@ -19494,18 +19494,18 @@ class BaseCommand {
19494
19494
  const items = this.items;
19495
19495
  switch (this.operation.method) {
19496
19496
  case "addChildren":
19497
- return mapItemsByOperation(items, (item) => {
19498
- return {
19497
+ return items.map((item) => {
19498
+ return { item, operation: {
19499
19499
  ...this.operation,
19500
- newData: { childIds: item.getChildrenIds() }
19501
- };
19500
+ method: "removeChildren"
19501
+ } };
19502
19502
  });
19503
19503
  case "removeChildren":
19504
- return mapItemsByOperation(items, (item) => {
19505
- return {
19504
+ return items.map((item) => {
19505
+ return { item, operation: {
19506
19506
  ...this.operation,
19507
- newData: { childIds: item.getChildrenIds() }
19508
- };
19507
+ method: "addChildren"
19508
+ } };
19509
19509
  });
19510
19510
  default:
19511
19511
  return mapItemsByOperation(items, (item) => {
@@ -40549,9 +40549,6 @@ class Frame2 extends BaseItem {
40549
40549
  case "RichText":
40550
40550
  this.text.apply(op);
40551
40551
  break;
40552
- case "LinkTo":
40553
- this.linkTo.apply(op);
40554
- break;
40555
40552
  default:
40556
40553
  return;
40557
40554
  }
package/dist/cjs/index.js CHANGED
@@ -19494,18 +19494,18 @@ class BaseCommand {
19494
19494
  const items = this.items;
19495
19495
  switch (this.operation.method) {
19496
19496
  case "addChildren":
19497
- return mapItemsByOperation(items, (item) => {
19498
- return {
19497
+ return items.map((item) => {
19498
+ return { item, operation: {
19499
19499
  ...this.operation,
19500
- newData: { childIds: item.getChildrenIds() }
19501
- };
19500
+ method: "removeChildren"
19501
+ } };
19502
19502
  });
19503
19503
  case "removeChildren":
19504
- return mapItemsByOperation(items, (item) => {
19505
- return {
19504
+ return items.map((item) => {
19505
+ return { item, operation: {
19506
19506
  ...this.operation,
19507
- newData: { childIds: item.getChildrenIds() }
19508
- };
19507
+ method: "addChildren"
19508
+ } };
19509
19509
  });
19510
19510
  default:
19511
19511
  return mapItemsByOperation(items, (item) => {
@@ -40549,9 +40549,6 @@ class Frame2 extends BaseItem {
40549
40549
  case "RichText":
40550
40550
  this.text.apply(op);
40551
40551
  break;
40552
- case "LinkTo":
40553
- this.linkTo.apply(op);
40554
- break;
40555
40552
  default:
40556
40553
  return;
40557
40554
  }
package/dist/cjs/node.js CHANGED
@@ -22033,18 +22033,18 @@ class BaseCommand {
22033
22033
  const items = this.items;
22034
22034
  switch (this.operation.method) {
22035
22035
  case "addChildren":
22036
- return mapItemsByOperation(items, (item) => {
22037
- return {
22036
+ return items.map((item) => {
22037
+ return { item, operation: {
22038
22038
  ...this.operation,
22039
- newData: { childIds: item.getChildrenIds() }
22040
- };
22039
+ method: "removeChildren"
22040
+ } };
22041
22041
  });
22042
22042
  case "removeChildren":
22043
- return mapItemsByOperation(items, (item) => {
22044
- return {
22043
+ return items.map((item) => {
22044
+ return { item, operation: {
22045
22045
  ...this.operation,
22046
- newData: { childIds: item.getChildrenIds() }
22047
- };
22046
+ method: "addChildren"
22047
+ } };
22048
22048
  });
22049
22049
  default:
22050
22050
  return mapItemsByOperation(items, (item) => {
@@ -43022,9 +43022,6 @@ class Frame2 extends BaseItem {
43022
43022
  case "RichText":
43023
43023
  this.text.apply(op);
43024
43024
  break;
43025
- case "LinkTo":
43026
- this.linkTo.apply(op);
43027
- break;
43028
43025
  default:
43029
43026
  return;
43030
43027
  }
@@ -19343,18 +19343,18 @@ class BaseCommand {
19343
19343
  const items = this.items;
19344
19344
  switch (this.operation.method) {
19345
19345
  case "addChildren":
19346
- return mapItemsByOperation(items, (item) => {
19347
- return {
19346
+ return items.map((item) => {
19347
+ return { item, operation: {
19348
19348
  ...this.operation,
19349
- newData: { childIds: item.getChildrenIds() }
19350
- };
19349
+ method: "removeChildren"
19350
+ } };
19351
19351
  });
19352
19352
  case "removeChildren":
19353
- return mapItemsByOperation(items, (item) => {
19354
- return {
19353
+ return items.map((item) => {
19354
+ return { item, operation: {
19355
19355
  ...this.operation,
19356
- newData: { childIds: item.getChildrenIds() }
19357
- };
19356
+ method: "addChildren"
19357
+ } };
19358
19358
  });
19359
19359
  default:
19360
19360
  return mapItemsByOperation(items, (item) => {
@@ -40398,9 +40398,6 @@ class Frame2 extends BaseItem {
40398
40398
  case "RichText":
40399
40399
  this.text.apply(op);
40400
40400
  break;
40401
- case "LinkTo":
40402
- this.linkTo.apply(op);
40403
- break;
40404
40401
  default:
40405
40402
  return;
40406
40403
  }
package/dist/esm/index.js CHANGED
@@ -19336,18 +19336,18 @@ class BaseCommand {
19336
19336
  const items = this.items;
19337
19337
  switch (this.operation.method) {
19338
19338
  case "addChildren":
19339
- return mapItemsByOperation(items, (item) => {
19340
- return {
19339
+ return items.map((item) => {
19340
+ return { item, operation: {
19341
19341
  ...this.operation,
19342
- newData: { childIds: item.getChildrenIds() }
19343
- };
19342
+ method: "removeChildren"
19343
+ } };
19344
19344
  });
19345
19345
  case "removeChildren":
19346
- return mapItemsByOperation(items, (item) => {
19347
- return {
19346
+ return items.map((item) => {
19347
+ return { item, operation: {
19348
19348
  ...this.operation,
19349
- newData: { childIds: item.getChildrenIds() }
19350
- };
19349
+ method: "addChildren"
19350
+ } };
19351
19351
  });
19352
19352
  default:
19353
19353
  return mapItemsByOperation(items, (item) => {
@@ -40391,9 +40391,6 @@ class Frame2 extends BaseItem {
40391
40391
  case "RichText":
40392
40392
  this.text.apply(op);
40393
40393
  break;
40394
- case "LinkTo":
40395
- this.linkTo.apply(op);
40396
- break;
40397
40394
  default:
40398
40395
  return;
40399
40396
  }
package/dist/esm/node.js CHANGED
@@ -21870,18 +21870,18 @@ class BaseCommand {
21870
21870
  const items = this.items;
21871
21871
  switch (this.operation.method) {
21872
21872
  case "addChildren":
21873
- return mapItemsByOperation(items, (item) => {
21874
- return {
21873
+ return items.map((item) => {
21874
+ return { item, operation: {
21875
21875
  ...this.operation,
21876
- newData: { childIds: item.getChildrenIds() }
21877
- };
21876
+ method: "removeChildren"
21877
+ } };
21878
21878
  });
21879
21879
  case "removeChildren":
21880
- return mapItemsByOperation(items, (item) => {
21881
- return {
21880
+ return items.map((item) => {
21881
+ return { item, operation: {
21882
21882
  ...this.operation,
21883
- newData: { childIds: item.getChildrenIds() }
21884
- };
21883
+ method: "addChildren"
21884
+ } };
21885
21885
  });
21886
21886
  default:
21887
21887
  return mapItemsByOperation(items, (item) => {
@@ -42859,9 +42859,6 @@ class Frame2 extends BaseItem {
42859
42859
  case "RichText":
42860
42860
  this.text.apply(op);
42861
42861
  break;
42862
- case "LinkTo":
42863
- this.linkTo.apply(op);
42864
- break;
42865
42862
  default:
42866
42863
  return;
42867
42864
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.4.99",
3
+ "version": "0.4.100",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",