@liveblocks/client 0.13.0-beta.1 → 0.13.0
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/README.md +8 -8
- package/lib/cjs/room.js +6 -2
- package/lib/esm/room.js +6 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,17 +8,17 @@
|
|
|
8
8
|
|
|
9
9
|
**At [Liveblocks](https://liveblocks.io), we’re building tools to help companies create world-class collaborative products that attract, engage and retain users.** This repository is a set of open-source packages for building performant and reliable multiplayer experiences.
|
|
10
10
|
|
|
11
|
+
## Installation
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
npm install @liveblocks/client
|
|
15
|
+
```
|
|
16
|
+
|
|
11
17
|
## Examples
|
|
12
18
|
|
|
13
19
|
- Browse our gallery of collaborative UI patterns. [View examples gallery](https://liveblocks.io/examples)
|
|
14
20
|
- Explore and clone any of our open-source examples. [View code examples](https://github.com/liveblocks/liveblocks/tree/main/examples)
|
|
15
21
|
|
|
16
|
-
## Packages
|
|
17
|
-
|
|
18
|
-
- [@liveblocks/client](https://github.com/liveblocks/liveblocks/tree/main/packages/liveblocks)
|
|
19
|
-
- [@liveblocks/react](https://github.com/liveblocks/liveblocks/tree/main/packages/liveblocks-react)
|
|
20
|
-
- [@liveblocks/node](https://github.com/liveblocks/liveblocks/tree/main/packages/liveblocks-node)
|
|
21
|
-
|
|
22
22
|
## Documentation
|
|
23
23
|
|
|
24
24
|
[Read the documentation](https://liveblocks.io/docs) to start using Liveblocks.
|
|
@@ -35,11 +35,11 @@ For changelog, visit [https://github.com/liveblocks/liveblocks/releases](https:/
|
|
|
35
35
|
|
|
36
36
|
## Community
|
|
37
37
|
|
|
38
|
-
- [
|
|
38
|
+
- [Discord](https://discord.gg/X4YWJuH9VY) - To get involved with the Liveblocks community, ask questions and share tips.
|
|
39
39
|
- [Twitter](https://twitter.com/liveblocks) - To receive updates, announcements, blog posts, and general Liveblocks tips.
|
|
40
40
|
|
|
41
41
|
## License
|
|
42
42
|
|
|
43
43
|
Licensed under the Apache License 2.0, Copyright © 2021-present [Liveblocks](https://liveblocks.io).
|
|
44
44
|
|
|
45
|
-
See [LICENSE](
|
|
45
|
+
See [LICENSE](../../LICENSE) for more information.
|
package/lib/cjs/room.js
CHANGED
|
@@ -839,10 +839,14 @@ See v0.13 release notes for more information.
|
|
|
839
839
|
}
|
|
840
840
|
finally {
|
|
841
841
|
state.isBatching = false;
|
|
842
|
-
|
|
842
|
+
if (state.batch.reverseOps.length > 0) {
|
|
843
|
+
addToUndoStack(state.batch.reverseOps);
|
|
844
|
+
}
|
|
843
845
|
// Clear the redo stack because batch is always called from a local operation
|
|
844
846
|
state.redoStack = [];
|
|
845
|
-
|
|
847
|
+
if (state.batch.ops.length > 0) {
|
|
848
|
+
dispatch(state.batch.ops);
|
|
849
|
+
}
|
|
846
850
|
notify(state.batch.updates);
|
|
847
851
|
state.batch = {
|
|
848
852
|
ops: [],
|
package/lib/esm/room.js
CHANGED
|
@@ -817,10 +817,14 @@ See v0.13 release notes for more information.
|
|
|
817
817
|
}
|
|
818
818
|
finally {
|
|
819
819
|
state.isBatching = false;
|
|
820
|
-
|
|
820
|
+
if (state.batch.reverseOps.length > 0) {
|
|
821
|
+
addToUndoStack(state.batch.reverseOps);
|
|
822
|
+
}
|
|
821
823
|
// Clear the redo stack because batch is always called from a local operation
|
|
822
824
|
state.redoStack = [];
|
|
823
|
-
|
|
825
|
+
if (state.batch.ops.length > 0) {
|
|
826
|
+
dispatch(state.batch.ops);
|
|
827
|
+
}
|
|
824
828
|
notify(state.batch.updates);
|
|
825
829
|
state.batch = {
|
|
826
830
|
ops: [],
|