microboard-temp 0.4.58 → 0.4.60
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 +18 -2
- package/dist/cjs/index.js +18 -2
- package/dist/cjs/node.js +18 -2
- package/dist/esm/browser.js +18 -2
- package/dist/esm/index.js +18 -2
- package/dist/esm/node.js +18 -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 {
|
|
18768
18768
|
frame;
|
|
18769
18769
|
operation;
|
|
18770
18770
|
reverse;
|
|
@@ -18822,7 +18822,23 @@ class FrameCommand extends BaseCommand {
|
|
|
18822
18822
|
};
|
|
18823
18823
|
});
|
|
18824
18824
|
default:
|
|
18825
|
-
return
|
|
18825
|
+
return mapItemsByOperation(frame, (item) => {
|
|
18826
|
+
const op = this.operation;
|
|
18827
|
+
let newData = {};
|
|
18828
|
+
if (op.prevData) {
|
|
18829
|
+
newData = { ...op.prevData };
|
|
18830
|
+
} else {
|
|
18831
|
+
Object.keys(op.newData).forEach((key) => {
|
|
18832
|
+
if (item[key]) {
|
|
18833
|
+
newData[key] = item[key];
|
|
18834
|
+
}
|
|
18835
|
+
});
|
|
18836
|
+
}
|
|
18837
|
+
return {
|
|
18838
|
+
...op,
|
|
18839
|
+
newData
|
|
18840
|
+
};
|
|
18841
|
+
});
|
|
18826
18842
|
}
|
|
18827
18843
|
}
|
|
18828
18844
|
}
|
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 {
|
|
18768
18768
|
frame;
|
|
18769
18769
|
operation;
|
|
18770
18770
|
reverse;
|
|
@@ -18822,7 +18822,23 @@ class FrameCommand extends BaseCommand {
|
|
|
18822
18822
|
};
|
|
18823
18823
|
});
|
|
18824
18824
|
default:
|
|
18825
|
-
return
|
|
18825
|
+
return mapItemsByOperation(frame, (item) => {
|
|
18826
|
+
const op = this.operation;
|
|
18827
|
+
let newData = {};
|
|
18828
|
+
if (op.prevData) {
|
|
18829
|
+
newData = { ...op.prevData };
|
|
18830
|
+
} else {
|
|
18831
|
+
Object.keys(op.newData).forEach((key) => {
|
|
18832
|
+
if (item[key]) {
|
|
18833
|
+
newData[key] = item[key];
|
|
18834
|
+
}
|
|
18835
|
+
});
|
|
18836
|
+
}
|
|
18837
|
+
return {
|
|
18838
|
+
...op,
|
|
18839
|
+
newData
|
|
18840
|
+
};
|
|
18841
|
+
});
|
|
18826
18842
|
}
|
|
18827
18843
|
}
|
|
18828
18844
|
}
|
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 {
|
|
21308
21308
|
frame;
|
|
21309
21309
|
operation;
|
|
21310
21310
|
reverse;
|
|
@@ -21362,7 +21362,23 @@ class FrameCommand extends BaseCommand {
|
|
|
21362
21362
|
};
|
|
21363
21363
|
});
|
|
21364
21364
|
default:
|
|
21365
|
-
return
|
|
21365
|
+
return mapItemsByOperation(frame, (item) => {
|
|
21366
|
+
const op = this.operation;
|
|
21367
|
+
let newData = {};
|
|
21368
|
+
if (op.prevData) {
|
|
21369
|
+
newData = { ...op.prevData };
|
|
21370
|
+
} else {
|
|
21371
|
+
Object.keys(op.newData).forEach((key) => {
|
|
21372
|
+
if (item[key]) {
|
|
21373
|
+
newData[key] = item[key];
|
|
21374
|
+
}
|
|
21375
|
+
});
|
|
21376
|
+
}
|
|
21377
|
+
return {
|
|
21378
|
+
...op,
|
|
21379
|
+
newData
|
|
21380
|
+
};
|
|
21381
|
+
});
|
|
21366
21382
|
}
|
|
21367
21383
|
}
|
|
21368
21384
|
}
|
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 {
|
|
18618
18618
|
frame;
|
|
18619
18619
|
operation;
|
|
18620
18620
|
reverse;
|
|
@@ -18672,7 +18672,23 @@ class FrameCommand extends BaseCommand {
|
|
|
18672
18672
|
};
|
|
18673
18673
|
});
|
|
18674
18674
|
default:
|
|
18675
|
-
return
|
|
18675
|
+
return mapItemsByOperation(frame, (item) => {
|
|
18676
|
+
const op = this.operation;
|
|
18677
|
+
let newData = {};
|
|
18678
|
+
if (op.prevData) {
|
|
18679
|
+
newData = { ...op.prevData };
|
|
18680
|
+
} else {
|
|
18681
|
+
Object.keys(op.newData).forEach((key) => {
|
|
18682
|
+
if (item[key]) {
|
|
18683
|
+
newData[key] = item[key];
|
|
18684
|
+
}
|
|
18685
|
+
});
|
|
18686
|
+
}
|
|
18687
|
+
return {
|
|
18688
|
+
...op,
|
|
18689
|
+
newData
|
|
18690
|
+
};
|
|
18691
|
+
});
|
|
18676
18692
|
}
|
|
18677
18693
|
}
|
|
18678
18694
|
}
|
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 {
|
|
18611
18611
|
frame;
|
|
18612
18612
|
operation;
|
|
18613
18613
|
reverse;
|
|
@@ -18665,7 +18665,23 @@ class FrameCommand extends BaseCommand {
|
|
|
18665
18665
|
};
|
|
18666
18666
|
});
|
|
18667
18667
|
default:
|
|
18668
|
-
return
|
|
18668
|
+
return mapItemsByOperation(frame, (item) => {
|
|
18669
|
+
const op = this.operation;
|
|
18670
|
+
let newData = {};
|
|
18671
|
+
if (op.prevData) {
|
|
18672
|
+
newData = { ...op.prevData };
|
|
18673
|
+
} else {
|
|
18674
|
+
Object.keys(op.newData).forEach((key) => {
|
|
18675
|
+
if (item[key]) {
|
|
18676
|
+
newData[key] = item[key];
|
|
18677
|
+
}
|
|
18678
|
+
});
|
|
18679
|
+
}
|
|
18680
|
+
return {
|
|
18681
|
+
...op,
|
|
18682
|
+
newData
|
|
18683
|
+
};
|
|
18684
|
+
});
|
|
18669
18685
|
}
|
|
18670
18686
|
}
|
|
18671
18687
|
}
|
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 {
|
|
21146
21146
|
frame;
|
|
21147
21147
|
operation;
|
|
21148
21148
|
reverse;
|
|
@@ -21200,7 +21200,23 @@ class FrameCommand extends BaseCommand {
|
|
|
21200
21200
|
};
|
|
21201
21201
|
});
|
|
21202
21202
|
default:
|
|
21203
|
-
return
|
|
21203
|
+
return mapItemsByOperation(frame, (item) => {
|
|
21204
|
+
const op = this.operation;
|
|
21205
|
+
let newData = {};
|
|
21206
|
+
if (op.prevData) {
|
|
21207
|
+
newData = { ...op.prevData };
|
|
21208
|
+
} else {
|
|
21209
|
+
Object.keys(op.newData).forEach((key) => {
|
|
21210
|
+
if (item[key]) {
|
|
21211
|
+
newData[key] = item[key];
|
|
21212
|
+
}
|
|
21213
|
+
});
|
|
21214
|
+
}
|
|
21215
|
+
return {
|
|
21216
|
+
...op,
|
|
21217
|
+
newData
|
|
21218
|
+
};
|
|
21219
|
+
});
|
|
21204
21220
|
}
|
|
21205
21221
|
}
|
|
21206
21222
|
}
|
|
@@ -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 { Command } from "../../Events";
|
|
4
|
+
export declare class FrameCommand implements Command {
|
|
5
5
|
private frame;
|
|
6
6
|
private operation;
|
|
7
7
|
private reverse;
|