@atlaskit/prosemirror-collab 0.9.2 → 0.9.3
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/CHANGELOG.md +8 -0
- package/dist/cjs/index.js +2 -1
- package/dist/es2019/index.js +2 -1
- package/dist/esm/index.js +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/prosemirror-collab
|
|
2
2
|
|
|
3
|
+
## 0.9.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#137366](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/137366)
|
|
8
|
+
[`44c333f52bfa6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/44c333f52bfa6) -
|
|
9
|
+
Avoid left undefined clientId in collab-provider
|
|
10
|
+
|
|
3
11
|
## 0.9.2
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/cjs/index.js
CHANGED
|
@@ -83,7 +83,8 @@ function collab() {
|
|
|
83
83
|
clientID:
|
|
84
84
|
// eslint-disable-next-line eqeqeq
|
|
85
85
|
// generate a temporary id as clientId when it is null or undefined
|
|
86
|
-
|
|
86
|
+
// prefix temp-pc- indicates prosemirror-collab
|
|
87
|
+
config.clientID == null || !config.clientID ? "temp-pc-".concat((0, _uuid.v4)()) : config.clientID
|
|
87
88
|
};
|
|
88
89
|
return new _state.Plugin({
|
|
89
90
|
key: collabKey,
|
package/dist/es2019/index.js
CHANGED
|
@@ -73,7 +73,8 @@ export function collab(config = {}) {
|
|
|
73
73
|
clientID:
|
|
74
74
|
// eslint-disable-next-line eqeqeq
|
|
75
75
|
// generate a temporary id as clientId when it is null or undefined
|
|
76
|
-
|
|
76
|
+
// prefix temp-pc- indicates prosemirror-collab
|
|
77
|
+
config.clientID == null || !config.clientID ? `temp-pc-${uuidv4()}` : config.clientID
|
|
77
78
|
};
|
|
78
79
|
return new Plugin({
|
|
79
80
|
key: collabKey,
|
package/dist/esm/index.js
CHANGED
|
@@ -72,7 +72,8 @@ export function collab() {
|
|
|
72
72
|
clientID:
|
|
73
73
|
// eslint-disable-next-line eqeqeq
|
|
74
74
|
// generate a temporary id as clientId when it is null or undefined
|
|
75
|
-
|
|
75
|
+
// prefix temp-pc- indicates prosemirror-collab
|
|
76
|
+
config.clientID == null || !config.clientID ? "temp-pc-".concat(uuidv4()) : config.clientID
|
|
76
77
|
};
|
|
77
78
|
return new Plugin({
|
|
78
79
|
key: collabKey,
|