microboard-temp 0.4.56 → 0.4.58
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.
- package/dist/cjs/browser.js +5 -2
- package/dist/cjs/index.js +5 -2
- package/dist/cjs/node.js +5 -2
- package/dist/esm/browser.js +5 -2
- package/dist/esm/index.js +5 -2
- package/dist/esm/node.js +5 -2
- package/dist/types/Items/Frame/FrameCommand.d.ts +2 -2
- package/package.json +1 -1
package/dist/cjs/browser.js
CHANGED
|
@@ -18764,7 +18764,7 @@ class StickerCommand {
|
|
|
18764
18764
|
}
|
|
18765
18765
|
|
|
18766
18766
|
// src/Items/Frame/FrameCommand.ts
|
|
18767
|
-
class FrameCommand {
|
|
18767
|
+
class FrameCommand extends BaseCommand {
|
|
18768
18768
|
frame;
|
|
18769
18769
|
operation;
|
|
18770
18770
|
reverse;
|
|
@@ -18821,6 +18821,8 @@ class FrameCommand {
|
|
|
18821
18821
|
children: frame2.getChildrenIds()
|
|
18822
18822
|
};
|
|
18823
18823
|
});
|
|
18824
|
+
default:
|
|
18825
|
+
return super.getReverse();
|
|
18824
18826
|
}
|
|
18825
18827
|
}
|
|
18826
18828
|
}
|
|
@@ -53609,6 +53611,7 @@ class Board {
|
|
|
53609
53611
|
const data = Array.from(items.children).map((el) => this.parseHTML(el));
|
|
53610
53612
|
for (const parsedData of data) {
|
|
53611
53613
|
if ("childrenMap" in parsedData) {
|
|
53614
|
+
const addedFrame = this.add(this.createItem(this.getNewItemId(), parsedData.data));
|
|
53612
53615
|
const addedChildren = Object.values(parsedData.childrenMap).map((childData) => {
|
|
53613
53616
|
const created = this.createItem(this.getNewItemId(), childData);
|
|
53614
53617
|
const added = this.add(created);
|
|
@@ -53621,8 +53624,8 @@ class Board {
|
|
|
53621
53624
|
}
|
|
53622
53625
|
return added;
|
|
53623
53626
|
});
|
|
53627
|
+
addedFrame.addChildItems(addedChildren);
|
|
53624
53628
|
parsedData.data.children = addedChildren.map((item) => item.getId());
|
|
53625
|
-
const addedFrame = this.add(this.createItem(this.getNewItemId(), parsedData.data));
|
|
53626
53629
|
idsMap[parsedData.data.id] = addedFrame.getId();
|
|
53627
53630
|
} else {
|
|
53628
53631
|
const added = this.add(this.createItem(this.getNewItemId(), parsedData));
|
package/dist/cjs/index.js
CHANGED
|
@@ -18764,7 +18764,7 @@ class StickerCommand {
|
|
|
18764
18764
|
}
|
|
18765
18765
|
|
|
18766
18766
|
// src/Items/Frame/FrameCommand.ts
|
|
18767
|
-
class FrameCommand {
|
|
18767
|
+
class FrameCommand extends BaseCommand {
|
|
18768
18768
|
frame;
|
|
18769
18769
|
operation;
|
|
18770
18770
|
reverse;
|
|
@@ -18821,6 +18821,8 @@ class FrameCommand {
|
|
|
18821
18821
|
children: frame2.getChildrenIds()
|
|
18822
18822
|
};
|
|
18823
18823
|
});
|
|
18824
|
+
default:
|
|
18825
|
+
return super.getReverse();
|
|
18824
18826
|
}
|
|
18825
18827
|
}
|
|
18826
18828
|
}
|
|
@@ -53609,6 +53611,7 @@ class Board {
|
|
|
53609
53611
|
const data = Array.from(items.children).map((el) => this.parseHTML(el));
|
|
53610
53612
|
for (const parsedData of data) {
|
|
53611
53613
|
if ("childrenMap" in parsedData) {
|
|
53614
|
+
const addedFrame = this.add(this.createItem(this.getNewItemId(), parsedData.data));
|
|
53612
53615
|
const addedChildren = Object.values(parsedData.childrenMap).map((childData) => {
|
|
53613
53616
|
const created = this.createItem(this.getNewItemId(), childData);
|
|
53614
53617
|
const added = this.add(created);
|
|
@@ -53621,8 +53624,8 @@ class Board {
|
|
|
53621
53624
|
}
|
|
53622
53625
|
return added;
|
|
53623
53626
|
});
|
|
53627
|
+
addedFrame.addChildItems(addedChildren);
|
|
53624
53628
|
parsedData.data.children = addedChildren.map((item) => item.getId());
|
|
53625
|
-
const addedFrame = this.add(this.createItem(this.getNewItemId(), parsedData.data));
|
|
53626
53629
|
idsMap[parsedData.data.id] = addedFrame.getId();
|
|
53627
53630
|
} else {
|
|
53628
53631
|
const added = this.add(this.createItem(this.getNewItemId(), parsedData));
|
package/dist/cjs/node.js
CHANGED
|
@@ -21304,7 +21304,7 @@ class StickerCommand {
|
|
|
21304
21304
|
}
|
|
21305
21305
|
|
|
21306
21306
|
// src/Items/Frame/FrameCommand.ts
|
|
21307
|
-
class FrameCommand {
|
|
21307
|
+
class FrameCommand extends BaseCommand {
|
|
21308
21308
|
frame;
|
|
21309
21309
|
operation;
|
|
21310
21310
|
reverse;
|
|
@@ -21361,6 +21361,8 @@ class FrameCommand {
|
|
|
21361
21361
|
children: frame2.getChildrenIds()
|
|
21362
21362
|
};
|
|
21363
21363
|
});
|
|
21364
|
+
default:
|
|
21365
|
+
return super.getReverse();
|
|
21364
21366
|
}
|
|
21365
21367
|
}
|
|
21366
21368
|
}
|
|
@@ -56082,6 +56084,7 @@ class Board {
|
|
|
56082
56084
|
const data = Array.from(items.children).map((el) => this.parseHTML(el));
|
|
56083
56085
|
for (const parsedData of data) {
|
|
56084
56086
|
if ("childrenMap" in parsedData) {
|
|
56087
|
+
const addedFrame = this.add(this.createItem(this.getNewItemId(), parsedData.data));
|
|
56085
56088
|
const addedChildren = Object.values(parsedData.childrenMap).map((childData) => {
|
|
56086
56089
|
const created = this.createItem(this.getNewItemId(), childData);
|
|
56087
56090
|
const added = this.add(created);
|
|
@@ -56094,8 +56097,8 @@ class Board {
|
|
|
56094
56097
|
}
|
|
56095
56098
|
return added;
|
|
56096
56099
|
});
|
|
56100
|
+
addedFrame.addChildItems(addedChildren);
|
|
56097
56101
|
parsedData.data.children = addedChildren.map((item) => item.getId());
|
|
56098
|
-
const addedFrame = this.add(this.createItem(this.getNewItemId(), parsedData.data));
|
|
56099
56102
|
idsMap[parsedData.data.id] = addedFrame.getId();
|
|
56100
56103
|
} else {
|
|
56101
56104
|
const added = this.add(this.createItem(this.getNewItemId(), parsedData));
|
package/dist/esm/browser.js
CHANGED
|
@@ -18614,7 +18614,7 @@ class StickerCommand {
|
|
|
18614
18614
|
}
|
|
18615
18615
|
|
|
18616
18616
|
// src/Items/Frame/FrameCommand.ts
|
|
18617
|
-
class FrameCommand {
|
|
18617
|
+
class FrameCommand extends BaseCommand {
|
|
18618
18618
|
frame;
|
|
18619
18619
|
operation;
|
|
18620
18620
|
reverse;
|
|
@@ -18671,6 +18671,8 @@ class FrameCommand {
|
|
|
18671
18671
|
children: frame2.getChildrenIds()
|
|
18672
18672
|
};
|
|
18673
18673
|
});
|
|
18674
|
+
default:
|
|
18675
|
+
return super.getReverse();
|
|
18674
18676
|
}
|
|
18675
18677
|
}
|
|
18676
18678
|
}
|
|
@@ -53459,6 +53461,7 @@ class Board {
|
|
|
53459
53461
|
const data = Array.from(items.children).map((el) => this.parseHTML(el));
|
|
53460
53462
|
for (const parsedData of data) {
|
|
53461
53463
|
if ("childrenMap" in parsedData) {
|
|
53464
|
+
const addedFrame = this.add(this.createItem(this.getNewItemId(), parsedData.data));
|
|
53462
53465
|
const addedChildren = Object.values(parsedData.childrenMap).map((childData) => {
|
|
53463
53466
|
const created = this.createItem(this.getNewItemId(), childData);
|
|
53464
53467
|
const added = this.add(created);
|
|
@@ -53471,8 +53474,8 @@ class Board {
|
|
|
53471
53474
|
}
|
|
53472
53475
|
return added;
|
|
53473
53476
|
});
|
|
53477
|
+
addedFrame.addChildItems(addedChildren);
|
|
53474
53478
|
parsedData.data.children = addedChildren.map((item) => item.getId());
|
|
53475
|
-
const addedFrame = this.add(this.createItem(this.getNewItemId(), parsedData.data));
|
|
53476
53479
|
idsMap[parsedData.data.id] = addedFrame.getId();
|
|
53477
53480
|
} else {
|
|
53478
53481
|
const added = this.add(this.createItem(this.getNewItemId(), parsedData));
|
package/dist/esm/index.js
CHANGED
|
@@ -18607,7 +18607,7 @@ class StickerCommand {
|
|
|
18607
18607
|
}
|
|
18608
18608
|
|
|
18609
18609
|
// src/Items/Frame/FrameCommand.ts
|
|
18610
|
-
class FrameCommand {
|
|
18610
|
+
class FrameCommand extends BaseCommand {
|
|
18611
18611
|
frame;
|
|
18612
18612
|
operation;
|
|
18613
18613
|
reverse;
|
|
@@ -18664,6 +18664,8 @@ class FrameCommand {
|
|
|
18664
18664
|
children: frame2.getChildrenIds()
|
|
18665
18665
|
};
|
|
18666
18666
|
});
|
|
18667
|
+
default:
|
|
18668
|
+
return super.getReverse();
|
|
18667
18669
|
}
|
|
18668
18670
|
}
|
|
18669
18671
|
}
|
|
@@ -53452,6 +53454,7 @@ class Board {
|
|
|
53452
53454
|
const data = Array.from(items.children).map((el) => this.parseHTML(el));
|
|
53453
53455
|
for (const parsedData of data) {
|
|
53454
53456
|
if ("childrenMap" in parsedData) {
|
|
53457
|
+
const addedFrame = this.add(this.createItem(this.getNewItemId(), parsedData.data));
|
|
53455
53458
|
const addedChildren = Object.values(parsedData.childrenMap).map((childData) => {
|
|
53456
53459
|
const created = this.createItem(this.getNewItemId(), childData);
|
|
53457
53460
|
const added = this.add(created);
|
|
@@ -53464,8 +53467,8 @@ class Board {
|
|
|
53464
53467
|
}
|
|
53465
53468
|
return added;
|
|
53466
53469
|
});
|
|
53470
|
+
addedFrame.addChildItems(addedChildren);
|
|
53467
53471
|
parsedData.data.children = addedChildren.map((item) => item.getId());
|
|
53468
|
-
const addedFrame = this.add(this.createItem(this.getNewItemId(), parsedData.data));
|
|
53469
53472
|
idsMap[parsedData.data.id] = addedFrame.getId();
|
|
53470
53473
|
} else {
|
|
53471
53474
|
const added = this.add(this.createItem(this.getNewItemId(), parsedData));
|
package/dist/esm/node.js
CHANGED
|
@@ -21142,7 +21142,7 @@ class StickerCommand {
|
|
|
21142
21142
|
}
|
|
21143
21143
|
|
|
21144
21144
|
// src/Items/Frame/FrameCommand.ts
|
|
21145
|
-
class FrameCommand {
|
|
21145
|
+
class FrameCommand extends BaseCommand {
|
|
21146
21146
|
frame;
|
|
21147
21147
|
operation;
|
|
21148
21148
|
reverse;
|
|
@@ -21199,6 +21199,8 @@ class FrameCommand {
|
|
|
21199
21199
|
children: frame2.getChildrenIds()
|
|
21200
21200
|
};
|
|
21201
21201
|
});
|
|
21202
|
+
default:
|
|
21203
|
+
return super.getReverse();
|
|
21202
21204
|
}
|
|
21203
21205
|
}
|
|
21204
21206
|
}
|
|
@@ -55920,6 +55922,7 @@ class Board {
|
|
|
55920
55922
|
const data = Array.from(items.children).map((el) => this.parseHTML(el));
|
|
55921
55923
|
for (const parsedData of data) {
|
|
55922
55924
|
if ("childrenMap" in parsedData) {
|
|
55925
|
+
const addedFrame = this.add(this.createItem(this.getNewItemId(), parsedData.data));
|
|
55923
55926
|
const addedChildren = Object.values(parsedData.childrenMap).map((childData) => {
|
|
55924
55927
|
const created = this.createItem(this.getNewItemId(), childData);
|
|
55925
55928
|
const added = this.add(created);
|
|
@@ -55932,8 +55935,8 @@ class Board {
|
|
|
55932
55935
|
}
|
|
55933
55936
|
return added;
|
|
55934
55937
|
});
|
|
55938
|
+
addedFrame.addChildItems(addedChildren);
|
|
55935
55939
|
parsedData.data.children = addedChildren.map((item) => item.getId());
|
|
55936
|
-
const addedFrame = this.add(this.createItem(this.getNewItemId(), parsedData.data));
|
|
55937
55940
|
idsMap[parsedData.data.id] = addedFrame.getId();
|
|
55938
55941
|
} else {
|
|
55939
55942
|
const added = this.add(this.createItem(this.getNewItemId(), parsedData));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Frame } from "./Frame";
|
|
2
2
|
import { FrameOperation } from "./FrameOperation";
|
|
3
|
-
import {
|
|
4
|
-
export declare class FrameCommand
|
|
3
|
+
import { BaseCommand } from "../../Events/Command";
|
|
4
|
+
export declare class FrameCommand extends BaseCommand {
|
|
5
5
|
private frame;
|
|
6
6
|
private operation;
|
|
7
7
|
private reverse;
|