@liveblocks/core 3.23.0-exp1 → 3.23.0-exp2
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/index.cjs +70 -67
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ var __export = (target, all) => {
|
|
|
6
6
|
|
|
7
7
|
// src/version.ts
|
|
8
8
|
var PKG_NAME = "@liveblocks/core";
|
|
9
|
-
var PKG_VERSION = "3.23.0-
|
|
9
|
+
var PKG_VERSION = "3.23.0-exp2";
|
|
10
10
|
var PKG_FORMAT = "esm";
|
|
11
11
|
|
|
12
12
|
// src/dupe-detection.ts
|
|
@@ -11316,6 +11316,9 @@ function createRoom(options, config) {
|
|
|
11316
11316
|
);
|
|
11317
11317
|
}
|
|
11318
11318
|
context.activeBatch.reverseOps.pushLeft(reverse);
|
|
11319
|
+
if (options2?.clearRedoStack) {
|
|
11320
|
+
context.activeBatch.clearRedoStack = true;
|
|
11321
|
+
}
|
|
11319
11322
|
} else {
|
|
11320
11323
|
if (reverse.length > 0) {
|
|
11321
11324
|
addToUndoStack(reverse);
|
|
@@ -12584,7 +12587,7 @@ function createRoom(options, config) {
|
|
|
12584
12587
|
if (currentBatch.scheduleHistoryResume) {
|
|
12585
12588
|
commitPausedHistoryToUndoStack();
|
|
12586
12589
|
}
|
|
12587
|
-
if (currentBatch.ops.length > 0) {
|
|
12590
|
+
if (currentBatch.ops.length > 0 || currentBatch.clearRedoStack) {
|
|
12588
12591
|
clearRedoStack();
|
|
12589
12592
|
}
|
|
12590
12593
|
if (currentBatch.ops.length > 0) {
|