@liveblocks/redux 0.15.11 → 0.16.2
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 +2 -0
- package/{lib/esm → esm}/index.js +2 -2
- package/{lib/esm → esm}/index.mjs +2 -2
- package/{lib/index.d.ts → index.d.ts} +0 -0
- package/{lib/index.js → index.js} +2 -2
- package/package.json +11 -11
package/README.md
CHANGED
package/{lib/esm → esm}/index.js
RENAMED
|
@@ -36,7 +36,7 @@ var __spreadValues = (a, b) => {
|
|
|
36
36
|
return a;
|
|
37
37
|
};
|
|
38
38
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
39
|
-
const { patchImmutableObject, patchLiveObjectKey,
|
|
39
|
+
const { patchImmutableObject, patchLiveObjectKey, lsonToJson } = internals;
|
|
40
40
|
const ACTION_TYPES = {
|
|
41
41
|
ENTER: "@@LIVEBLOCKS/ENTER",
|
|
42
42
|
LEAVE: "@@LIVEBLOCKS/LEAVE",
|
|
@@ -155,7 +155,7 @@ const internalEnhancer = (options) => {
|
|
|
155
155
|
updates[key] = storageInitialState[key];
|
|
156
156
|
patchLiveObjectKey(root, key, void 0, storageInitialState[key]);
|
|
157
157
|
} else {
|
|
158
|
-
updates[key] =
|
|
158
|
+
updates[key] = lsonToJson(liveblocksStatePart);
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
});
|
|
@@ -36,7 +36,7 @@ var __spreadValues = (a, b) => {
|
|
|
36
36
|
return a;
|
|
37
37
|
};
|
|
38
38
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
39
|
-
const { patchImmutableObject, patchLiveObjectKey,
|
|
39
|
+
const { patchImmutableObject, patchLiveObjectKey, lsonToJson } = internals;
|
|
40
40
|
const ACTION_TYPES = {
|
|
41
41
|
ENTER: "@@LIVEBLOCKS/ENTER",
|
|
42
42
|
LEAVE: "@@LIVEBLOCKS/LEAVE",
|
|
@@ -155,7 +155,7 @@ const internalEnhancer = (options) => {
|
|
|
155
155
|
updates[key] = storageInitialState[key];
|
|
156
156
|
patchLiveObjectKey(root, key, void 0, storageInitialState[key]);
|
|
157
157
|
} else {
|
|
158
|
-
updates[key] =
|
|
158
|
+
updates[key] = lsonToJson(liveblocksStatePart);
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
});
|
|
File without changes
|
|
@@ -79,7 +79,7 @@ function mappingToFunctionIsNotAllowed(key) {
|
|
|
79
79
|
|
|
80
80
|
var patchImmutableObject = client.internals.patchImmutableObject,
|
|
81
81
|
patchLiveObjectKey = client.internals.patchLiveObjectKey,
|
|
82
|
-
|
|
82
|
+
lsonToJson = client.internals.lsonToJson;
|
|
83
83
|
var ACTION_TYPES = {
|
|
84
84
|
ENTER: "@@LIVEBLOCKS/ENTER",
|
|
85
85
|
LEAVE: "@@LIVEBLOCKS/LEAVE",
|
|
@@ -224,7 +224,7 @@ var internalEnhancer = function internalEnhancer(options) {
|
|
|
224
224
|
updates[_key] = storageInitialState[_key];
|
|
225
225
|
patchLiveObjectKey(root, _key, undefined, storageInitialState[_key]);
|
|
226
226
|
} else {
|
|
227
|
-
updates[_key] =
|
|
227
|
+
updates[_key] = lsonToJson(liveblocksStatePart);
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
230
|
});
|
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liveblocks/redux",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.2",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"description": "",
|
|
6
|
-
"main": "./
|
|
7
|
-
"types": "./
|
|
5
|
+
"description": "A store enhancer to integrate Liveblocks into Redux stores.",
|
|
6
|
+
"main": "./index.js",
|
|
7
|
+
"types": "./index.d.ts",
|
|
8
8
|
"files": [
|
|
9
|
-
"
|
|
9
|
+
"**"
|
|
10
10
|
],
|
|
11
11
|
"exports": {
|
|
12
12
|
".": {
|
|
13
|
-
"types": "./
|
|
14
|
-
"module": "./
|
|
15
|
-
"import": "./
|
|
16
|
-
"default": "./
|
|
13
|
+
"types": "./index.d.ts",
|
|
14
|
+
"module": "./esm/index.js",
|
|
15
|
+
"import": "./esm/index.mjs",
|
|
16
|
+
"default": "./index.js"
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
"keywords": [
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"collaborative"
|
|
26
26
|
],
|
|
27
27
|
"scripts": {
|
|
28
|
-
"build": "rollup -c",
|
|
28
|
+
"build": "rollup -c && cp ./package.json ./README.md ./lib",
|
|
29
29
|
"test": "jest --watch",
|
|
30
30
|
"dtslint": "dtslint --localTs node_modules/typescript/lib --expectOnly types"
|
|
31
31
|
},
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"directory": "packages/liveblocks-redux"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@liveblocks/client": "0.
|
|
39
|
+
"@liveblocks/client": "0.16.2",
|
|
40
40
|
"redux": "^4"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|