@liveblocks/redux 0.15.11-test.1 → 0.15.11
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 +14 -4
- package/lib/index.d.ts +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,12 +1,22 @@
|
|
|
1
1
|
<p align="center">
|
|
2
2
|
<a href="https://liveblocks.io">
|
|
3
|
-
<img src="https://
|
|
3
|
+
<img src="https://raw.githubusercontent.com/liveblocks/liveblocks/main/.github/assets/header.svg" alt="Liveblocks" />
|
|
4
4
|
</a>
|
|
5
5
|
</p>
|
|
6
6
|
|
|
7
|
-
#
|
|
7
|
+
# `@liveblocks/redux`
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
<p>
|
|
10
|
+
<a href="https://npmjs.org/package/@liveblocks/redux">
|
|
11
|
+
<img src="https://img.shields.io/npm/v/@liveblocks/redux?style=flat&label=npm&color=c33" alt="NPM" />
|
|
12
|
+
</a>
|
|
13
|
+
<a href="https://bundlephobia.com/package/@liveblocks/redux">
|
|
14
|
+
<img src="https://img.shields.io/bundlephobia/minzip/@liveblocks/redux?style=flat&label=size&color=09f" alt="Size" />
|
|
15
|
+
</a>
|
|
16
|
+
<a href="https://github.com/liveblocks/liveblocks/blob/main/LICENSE">
|
|
17
|
+
<img src="https://img.shields.io/github/license/liveblocks/liveblocks?style=flat&label=license&color=f80" alt="License" />
|
|
18
|
+
</a>
|
|
19
|
+
</p>
|
|
10
20
|
|
|
11
21
|
## Installation
|
|
12
22
|
|
|
@@ -16,7 +26,7 @@ npm install @liveblocks/client @liveblocks/redux
|
|
|
16
26
|
|
|
17
27
|
## Documentation
|
|
18
28
|
|
|
19
|
-
- Start with the [React
|
|
29
|
+
- Start with the [React and Redux guide](https://liveblocks.io/docs/get-started/react-redux).
|
|
20
30
|
- Explore the [API Reference](https://liveblocks.io/docs/api-reference/liveblocks-redux).
|
|
21
31
|
|
|
22
32
|
## Examples
|
package/lib/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Client, User } from "@liveblocks/client";
|
|
1
|
+
import { Client, User, Presence } from "@liveblocks/client";
|
|
2
2
|
import { StoreEnhancer } from "redux";
|
|
3
3
|
export declare type Mapping<T> = Partial<{
|
|
4
4
|
[Property in keyof T]: boolean;
|
|
5
5
|
}>;
|
|
6
|
-
export declare type LiveblocksState<TState, TPresence =
|
|
6
|
+
export declare type LiveblocksState<TState, TPresence extends Presence = Presence> = TState & {
|
|
7
7
|
/**
|
|
8
8
|
* Liveblocks extra state attached by the enhancer
|
|
9
9
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liveblocks/redux",
|
|
3
|
-
"version": "0.15.11
|
|
3
|
+
"version": "0.15.11",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"directory": "packages/liveblocks-redux"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@liveblocks/client": "0.15.11
|
|
39
|
+
"@liveblocks/client": "0.15.11",
|
|
40
40
|
"redux": "^4"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|