microboard-ui-temp 0.1.1 → 0.1.2

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 +8 -11
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -228002,18 +228002,18 @@ class BaseCommand {
228002
228002
  const items = this.items;
228003
228003
  switch (this.operation.method) {
228004
228004
  case "addChildren":
228005
- return mapItemsByOperation(items, (item) => {
228006
- return {
228005
+ return items.map((item) => {
228006
+ return { item, operation: {
228007
228007
  ...this.operation,
228008
- newData: { childIds: item.getChildrenIds() }
228009
- };
228008
+ method: "removeChildren"
228009
+ } };
228010
228010
  });
228011
228011
  case "removeChildren":
228012
- return mapItemsByOperation(items, (item) => {
228013
- return {
228012
+ return items.map((item) => {
228013
+ return { item, operation: {
228014
228014
  ...this.operation,
228015
- newData: { childIds: item.getChildrenIds() }
228016
- };
228015
+ method: "addChildren"
228016
+ } };
228017
228017
  });
228018
228018
  default:
228019
228019
  return mapItemsByOperation(items, (item) => {
@@ -248636,9 +248636,6 @@ class Frame2 extends BaseItem {
248636
248636
  case "RichText":
248637
248637
  this.text.apply(op);
248638
248638
  break;
248639
- case "LinkTo":
248640
- this.linkTo.apply(op);
248641
- break;
248642
248639
  default:
248643
248640
  return;
248644
248641
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-ui-temp",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "type": "module",
@@ -50,7 +50,7 @@
50
50
  "i18next-browser-languagedetector": "^8.2.0",
51
51
  "js-cookie": "^3.0.5",
52
52
  "jwt-decode": "^4.0.0",
53
- "microboard-temp": "^0.4.99",
53
+ "microboard-temp": "^0.4.100",
54
54
  "nanoid": "^5.1.5",
55
55
  "prop-types": "^15.8.1",
56
56
  "react-hot-toast": "2.4.1",