microboard-temp 0.4.60 → 0.4.61
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 +32 -15
- package/dist/cjs/index.js +32 -15
- package/dist/cjs/node.js +32 -15
- package/dist/esm/browser.js +32 -15
- package/dist/esm/index.js +32 -15
- package/dist/esm/node.js +32 -15
- package/package.json +1 -1
package/dist/cjs/browser.js
CHANGED
|
@@ -19482,23 +19482,40 @@ class BaseCommand {
|
|
|
19482
19482
|
}
|
|
19483
19483
|
getReverse() {
|
|
19484
19484
|
const items = this.items;
|
|
19485
|
-
|
|
19486
|
-
|
|
19487
|
-
|
|
19488
|
-
|
|
19489
|
-
|
|
19490
|
-
|
|
19491
|
-
|
|
19492
|
-
|
|
19493
|
-
|
|
19485
|
+
switch (this.operation.method) {
|
|
19486
|
+
case "addChildren":
|
|
19487
|
+
return mapItemsByOperation(items, (item) => {
|
|
19488
|
+
return {
|
|
19489
|
+
...this.operation,
|
|
19490
|
+
newData: { childIds: item.getChildrenIds() }
|
|
19491
|
+
};
|
|
19492
|
+
});
|
|
19493
|
+
case "removeChildren":
|
|
19494
|
+
return mapItemsByOperation(items, (item) => {
|
|
19495
|
+
return {
|
|
19496
|
+
...this.operation,
|
|
19497
|
+
newData: { childIds: item.getChildrenIds() }
|
|
19498
|
+
};
|
|
19499
|
+
});
|
|
19500
|
+
default:
|
|
19501
|
+
return mapItemsByOperation(items, (item) => {
|
|
19502
|
+
const op = this.operation;
|
|
19503
|
+
let newData = {};
|
|
19504
|
+
if (op.prevData) {
|
|
19505
|
+
newData = { ...op.prevData };
|
|
19506
|
+
} else {
|
|
19507
|
+
Object.keys(op.newData).forEach((key) => {
|
|
19508
|
+
if (item[key]) {
|
|
19509
|
+
newData[key] = item[key];
|
|
19510
|
+
}
|
|
19511
|
+
});
|
|
19494
19512
|
}
|
|
19513
|
+
return {
|
|
19514
|
+
...op,
|
|
19515
|
+
newData
|
|
19516
|
+
};
|
|
19495
19517
|
});
|
|
19496
|
-
|
|
19497
|
-
return {
|
|
19498
|
-
...op,
|
|
19499
|
-
newData
|
|
19500
|
-
};
|
|
19501
|
-
});
|
|
19518
|
+
}
|
|
19502
19519
|
}
|
|
19503
19520
|
}
|
|
19504
19521
|
var itemCommandFactories = {
|
package/dist/cjs/index.js
CHANGED
|
@@ -19482,23 +19482,40 @@ class BaseCommand {
|
|
|
19482
19482
|
}
|
|
19483
19483
|
getReverse() {
|
|
19484
19484
|
const items = this.items;
|
|
19485
|
-
|
|
19486
|
-
|
|
19487
|
-
|
|
19488
|
-
|
|
19489
|
-
|
|
19490
|
-
|
|
19491
|
-
|
|
19492
|
-
|
|
19493
|
-
|
|
19485
|
+
switch (this.operation.method) {
|
|
19486
|
+
case "addChildren":
|
|
19487
|
+
return mapItemsByOperation(items, (item) => {
|
|
19488
|
+
return {
|
|
19489
|
+
...this.operation,
|
|
19490
|
+
newData: { childIds: item.getChildrenIds() }
|
|
19491
|
+
};
|
|
19492
|
+
});
|
|
19493
|
+
case "removeChildren":
|
|
19494
|
+
return mapItemsByOperation(items, (item) => {
|
|
19495
|
+
return {
|
|
19496
|
+
...this.operation,
|
|
19497
|
+
newData: { childIds: item.getChildrenIds() }
|
|
19498
|
+
};
|
|
19499
|
+
});
|
|
19500
|
+
default:
|
|
19501
|
+
return mapItemsByOperation(items, (item) => {
|
|
19502
|
+
const op = this.operation;
|
|
19503
|
+
let newData = {};
|
|
19504
|
+
if (op.prevData) {
|
|
19505
|
+
newData = { ...op.prevData };
|
|
19506
|
+
} else {
|
|
19507
|
+
Object.keys(op.newData).forEach((key) => {
|
|
19508
|
+
if (item[key]) {
|
|
19509
|
+
newData[key] = item[key];
|
|
19510
|
+
}
|
|
19511
|
+
});
|
|
19494
19512
|
}
|
|
19513
|
+
return {
|
|
19514
|
+
...op,
|
|
19515
|
+
newData
|
|
19516
|
+
};
|
|
19495
19517
|
});
|
|
19496
|
-
|
|
19497
|
-
return {
|
|
19498
|
-
...op,
|
|
19499
|
-
newData
|
|
19500
|
-
};
|
|
19501
|
-
});
|
|
19518
|
+
}
|
|
19502
19519
|
}
|
|
19503
19520
|
}
|
|
19504
19521
|
var itemCommandFactories = {
|
package/dist/cjs/node.js
CHANGED
|
@@ -22021,23 +22021,40 @@ class BaseCommand {
|
|
|
22021
22021
|
}
|
|
22022
22022
|
getReverse() {
|
|
22023
22023
|
const items = this.items;
|
|
22024
|
-
|
|
22025
|
-
|
|
22026
|
-
|
|
22027
|
-
|
|
22028
|
-
|
|
22029
|
-
|
|
22030
|
-
|
|
22031
|
-
|
|
22032
|
-
|
|
22024
|
+
switch (this.operation.method) {
|
|
22025
|
+
case "addChildren":
|
|
22026
|
+
return mapItemsByOperation(items, (item) => {
|
|
22027
|
+
return {
|
|
22028
|
+
...this.operation,
|
|
22029
|
+
newData: { childIds: item.getChildrenIds() }
|
|
22030
|
+
};
|
|
22031
|
+
});
|
|
22032
|
+
case "removeChildren":
|
|
22033
|
+
return mapItemsByOperation(items, (item) => {
|
|
22034
|
+
return {
|
|
22035
|
+
...this.operation,
|
|
22036
|
+
newData: { childIds: item.getChildrenIds() }
|
|
22037
|
+
};
|
|
22038
|
+
});
|
|
22039
|
+
default:
|
|
22040
|
+
return mapItemsByOperation(items, (item) => {
|
|
22041
|
+
const op = this.operation;
|
|
22042
|
+
let newData = {};
|
|
22043
|
+
if (op.prevData) {
|
|
22044
|
+
newData = { ...op.prevData };
|
|
22045
|
+
} else {
|
|
22046
|
+
Object.keys(op.newData).forEach((key) => {
|
|
22047
|
+
if (item[key]) {
|
|
22048
|
+
newData[key] = item[key];
|
|
22049
|
+
}
|
|
22050
|
+
});
|
|
22033
22051
|
}
|
|
22052
|
+
return {
|
|
22053
|
+
...op,
|
|
22054
|
+
newData
|
|
22055
|
+
};
|
|
22034
22056
|
});
|
|
22035
|
-
|
|
22036
|
-
return {
|
|
22037
|
-
...op,
|
|
22038
|
-
newData
|
|
22039
|
-
};
|
|
22040
|
-
});
|
|
22057
|
+
}
|
|
22041
22058
|
}
|
|
22042
22059
|
}
|
|
22043
22060
|
var itemCommandFactories = {
|
package/dist/esm/browser.js
CHANGED
|
@@ -19332,23 +19332,40 @@ class BaseCommand {
|
|
|
19332
19332
|
}
|
|
19333
19333
|
getReverse() {
|
|
19334
19334
|
const items = this.items;
|
|
19335
|
-
|
|
19336
|
-
|
|
19337
|
-
|
|
19338
|
-
|
|
19339
|
-
|
|
19340
|
-
|
|
19341
|
-
|
|
19342
|
-
|
|
19343
|
-
|
|
19335
|
+
switch (this.operation.method) {
|
|
19336
|
+
case "addChildren":
|
|
19337
|
+
return mapItemsByOperation(items, (item) => {
|
|
19338
|
+
return {
|
|
19339
|
+
...this.operation,
|
|
19340
|
+
newData: { childIds: item.getChildrenIds() }
|
|
19341
|
+
};
|
|
19342
|
+
});
|
|
19343
|
+
case "removeChildren":
|
|
19344
|
+
return mapItemsByOperation(items, (item) => {
|
|
19345
|
+
return {
|
|
19346
|
+
...this.operation,
|
|
19347
|
+
newData: { childIds: item.getChildrenIds() }
|
|
19348
|
+
};
|
|
19349
|
+
});
|
|
19350
|
+
default:
|
|
19351
|
+
return mapItemsByOperation(items, (item) => {
|
|
19352
|
+
const op = this.operation;
|
|
19353
|
+
let newData = {};
|
|
19354
|
+
if (op.prevData) {
|
|
19355
|
+
newData = { ...op.prevData };
|
|
19356
|
+
} else {
|
|
19357
|
+
Object.keys(op.newData).forEach((key) => {
|
|
19358
|
+
if (item[key]) {
|
|
19359
|
+
newData[key] = item[key];
|
|
19360
|
+
}
|
|
19361
|
+
});
|
|
19344
19362
|
}
|
|
19363
|
+
return {
|
|
19364
|
+
...op,
|
|
19365
|
+
newData
|
|
19366
|
+
};
|
|
19345
19367
|
});
|
|
19346
|
-
|
|
19347
|
-
return {
|
|
19348
|
-
...op,
|
|
19349
|
-
newData
|
|
19350
|
-
};
|
|
19351
|
-
});
|
|
19368
|
+
}
|
|
19352
19369
|
}
|
|
19353
19370
|
}
|
|
19354
19371
|
var itemCommandFactories = {
|
package/dist/esm/index.js
CHANGED
|
@@ -19325,23 +19325,40 @@ class BaseCommand {
|
|
|
19325
19325
|
}
|
|
19326
19326
|
getReverse() {
|
|
19327
19327
|
const items = this.items;
|
|
19328
|
-
|
|
19329
|
-
|
|
19330
|
-
|
|
19331
|
-
|
|
19332
|
-
|
|
19333
|
-
|
|
19334
|
-
|
|
19335
|
-
|
|
19336
|
-
|
|
19328
|
+
switch (this.operation.method) {
|
|
19329
|
+
case "addChildren":
|
|
19330
|
+
return mapItemsByOperation(items, (item) => {
|
|
19331
|
+
return {
|
|
19332
|
+
...this.operation,
|
|
19333
|
+
newData: { childIds: item.getChildrenIds() }
|
|
19334
|
+
};
|
|
19335
|
+
});
|
|
19336
|
+
case "removeChildren":
|
|
19337
|
+
return mapItemsByOperation(items, (item) => {
|
|
19338
|
+
return {
|
|
19339
|
+
...this.operation,
|
|
19340
|
+
newData: { childIds: item.getChildrenIds() }
|
|
19341
|
+
};
|
|
19342
|
+
});
|
|
19343
|
+
default:
|
|
19344
|
+
return mapItemsByOperation(items, (item) => {
|
|
19345
|
+
const op = this.operation;
|
|
19346
|
+
let newData = {};
|
|
19347
|
+
if (op.prevData) {
|
|
19348
|
+
newData = { ...op.prevData };
|
|
19349
|
+
} else {
|
|
19350
|
+
Object.keys(op.newData).forEach((key) => {
|
|
19351
|
+
if (item[key]) {
|
|
19352
|
+
newData[key] = item[key];
|
|
19353
|
+
}
|
|
19354
|
+
});
|
|
19337
19355
|
}
|
|
19356
|
+
return {
|
|
19357
|
+
...op,
|
|
19358
|
+
newData
|
|
19359
|
+
};
|
|
19338
19360
|
});
|
|
19339
|
-
|
|
19340
|
-
return {
|
|
19341
|
-
...op,
|
|
19342
|
-
newData
|
|
19343
|
-
};
|
|
19344
|
-
});
|
|
19361
|
+
}
|
|
19345
19362
|
}
|
|
19346
19363
|
}
|
|
19347
19364
|
var itemCommandFactories = {
|
package/dist/esm/node.js
CHANGED
|
@@ -21859,23 +21859,40 @@ class BaseCommand {
|
|
|
21859
21859
|
}
|
|
21860
21860
|
getReverse() {
|
|
21861
21861
|
const items = this.items;
|
|
21862
|
-
|
|
21863
|
-
|
|
21864
|
-
|
|
21865
|
-
|
|
21866
|
-
|
|
21867
|
-
|
|
21868
|
-
|
|
21869
|
-
|
|
21870
|
-
|
|
21862
|
+
switch (this.operation.method) {
|
|
21863
|
+
case "addChildren":
|
|
21864
|
+
return mapItemsByOperation(items, (item) => {
|
|
21865
|
+
return {
|
|
21866
|
+
...this.operation,
|
|
21867
|
+
newData: { childIds: item.getChildrenIds() }
|
|
21868
|
+
};
|
|
21869
|
+
});
|
|
21870
|
+
case "removeChildren":
|
|
21871
|
+
return mapItemsByOperation(items, (item) => {
|
|
21872
|
+
return {
|
|
21873
|
+
...this.operation,
|
|
21874
|
+
newData: { childIds: item.getChildrenIds() }
|
|
21875
|
+
};
|
|
21876
|
+
});
|
|
21877
|
+
default:
|
|
21878
|
+
return mapItemsByOperation(items, (item) => {
|
|
21879
|
+
const op = this.operation;
|
|
21880
|
+
let newData = {};
|
|
21881
|
+
if (op.prevData) {
|
|
21882
|
+
newData = { ...op.prevData };
|
|
21883
|
+
} else {
|
|
21884
|
+
Object.keys(op.newData).forEach((key) => {
|
|
21885
|
+
if (item[key]) {
|
|
21886
|
+
newData[key] = item[key];
|
|
21887
|
+
}
|
|
21888
|
+
});
|
|
21871
21889
|
}
|
|
21890
|
+
return {
|
|
21891
|
+
...op,
|
|
21892
|
+
newData
|
|
21893
|
+
};
|
|
21872
21894
|
});
|
|
21873
|
-
|
|
21874
|
-
return {
|
|
21875
|
-
...op,
|
|
21876
|
-
newData
|
|
21877
|
-
};
|
|
21878
|
-
});
|
|
21895
|
+
}
|
|
21879
21896
|
}
|
|
21880
21897
|
}
|
|
21881
21898
|
var itemCommandFactories = {
|