@liveblocks/redux 0.15.9 → 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 CHANGED
@@ -1,12 +1,22 @@
1
1
  <p align="center">
2
2
  <a href="https://liveblocks.io">
3
- <img src="https://liveblocks.io/images/blog/introducing-liveblocks.png">
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
- # Liveblocks · [![Twitter Follow](https://shields.io/twitter/follow/liveblocks?label=Follow)](https://twitter.com/liveblocks)
7
+ # `@liveblocks/redux`
8
8
 
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.
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-Redux guide](https://liveblocks.io/docs/get-started/react-redux).
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 = any> = TState & {
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.9",
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.9",
39
+ "@liveblocks/client": "0.15.11",
40
40
  "redux": "^4"
41
41
  },
42
42
  "devDependencies": {
@@ -52,7 +52,10 @@
52
52
  "@testing-library/react": "^12.1.2",
53
53
  "@testing-library/react-hooks": "^7.0.2",
54
54
  "@types/jest": "^27.4.1",
55
+ "@typescript-eslint/eslint-plugin": "^5.18.0",
56
+ "@typescript-eslint/parser": "^5.18.0",
55
57
  "esbuild": "0.14.11",
58
+ "eslint": "^8.12.0",
56
59
  "jest": "^27.4.7",
57
60
  "msw": "^0.36.4",
58
61
  "redux": "^4.1.2",
@@ -60,4 +63,4 @@
60
63
  "rollup-plugin-esbuild": "^4.8.2",
61
64
  "whatwg-fetch": "^3.6.2"
62
65
  }
63
- }
66
+ }