@atlaskit/collab-provider 9.43.0 → 9.43.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/CHANGELOG.md +17 -0
- package/dist/cjs/provider/index.js +1 -0
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/provider/index.js +1 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/provider/index.js +1 -0
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/provider/index.d.ts +2 -1
- package/dist/types-ts4.5/provider/index.d.ts +2 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/collab-provider
|
|
2
2
|
|
|
3
|
+
## 9.43.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#153986](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/153986)
|
|
8
|
+
[`ce61c835c3b6a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ce61c835c3b6a) -
|
|
9
|
+
allow editorApi to be used to update state in collab plugin
|
|
10
|
+
|
|
11
|
+
## 9.43.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#152510](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/152510)
|
|
16
|
+
[`dcf9edde7ac7b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/dcf9edde7ac7b) -
|
|
17
|
+
bump adf-schema to 42.0.1
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 9.43.0
|
|
4
21
|
|
|
5
22
|
### Minor Changes
|
|
@@ -338,6 +338,7 @@ var Provider = exports.Provider = /*#__PURE__*/function (_Emitter) {
|
|
|
338
338
|
key: "setup",
|
|
339
339
|
value: function setup(_ref7) {
|
|
340
340
|
var getState = _ref7.getState,
|
|
341
|
+
editorApi = _ref7.editorApi,
|
|
341
342
|
onSyncUpError = _ref7.onSyncUpError;
|
|
342
343
|
this.checkForCookies();
|
|
343
344
|
try {
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.version = exports.nextMajorVersion = exports.name = void 0;
|
|
7
7
|
var name = exports.name = "@atlaskit/collab-provider";
|
|
8
|
-
var version = exports.version = "9.43.
|
|
8
|
+
var version = exports.version = "9.43.2";
|
|
9
9
|
var nextMajorVersion = exports.nextMajorVersion = function nextMajorVersion() {
|
|
10
10
|
return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
|
|
11
11
|
};
|
|
@@ -331,6 +331,7 @@ export var Provider = /*#__PURE__*/function (_Emitter) {
|
|
|
331
331
|
key: "setup",
|
|
332
332
|
value: function setup(_ref7) {
|
|
333
333
|
var getState = _ref7.getState,
|
|
334
|
+
editorApi = _ref7.editorApi,
|
|
334
335
|
onSyncUpError = _ref7.onSyncUpError;
|
|
335
336
|
this.checkForCookies();
|
|
336
337
|
try {
|
|
@@ -61,8 +61,9 @@ export declare class Provider extends Emitter<CollabEvents> implements BaseEvent
|
|
|
61
61
|
* @param {SyncUpErrorFunction} options.onSyncUpError (Optional) Function that gets called when the sync of steps fails after retrying 30 times, used by Editor to log to analytics
|
|
62
62
|
* @throws {ProviderInitialisationError} Something went wrong during provider initialisation
|
|
63
63
|
*/
|
|
64
|
-
setup({ getState, onSyncUpError, }: {
|
|
64
|
+
setup({ getState, editorApi, onSyncUpError, }: {
|
|
65
65
|
getState: () => EditorState;
|
|
66
|
+
editorApi?: any;
|
|
66
67
|
onSyncUpError?: SyncUpErrorFunction;
|
|
67
68
|
}): this;
|
|
68
69
|
setupForPresenceOnly(clientId: string): this;
|
|
@@ -61,8 +61,9 @@ export declare class Provider extends Emitter<CollabEvents> implements BaseEvent
|
|
|
61
61
|
* @param {SyncUpErrorFunction} options.onSyncUpError (Optional) Function that gets called when the sync of steps fails after retrying 30 times, used by Editor to log to analytics
|
|
62
62
|
* @throws {ProviderInitialisationError} Something went wrong during provider initialisation
|
|
63
63
|
*/
|
|
64
|
-
setup({ getState, onSyncUpError, }: {
|
|
64
|
+
setup({ getState, editorApi, onSyncUpError, }: {
|
|
65
65
|
getState: () => EditorState;
|
|
66
|
+
editorApi?: any;
|
|
66
67
|
onSyncUpError?: SyncUpErrorFunction;
|
|
67
68
|
}): this;
|
|
68
69
|
setupForPresenceOnly(clientId: string): this;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/collab-provider",
|
|
3
|
-
"version": "9.43.
|
|
3
|
+
"version": "9.43.2",
|
|
4
4
|
"description": "A provider for collaborative editing.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@atlaskit/analytics-gas-types": "^5.1.0",
|
|
36
36
|
"@atlaskit/analytics-listeners": "^8.11.0",
|
|
37
|
-
"@atlaskit/editor-common": "^93.
|
|
38
|
-
"@atlaskit/editor-json-transformer": "^8.
|
|
37
|
+
"@atlaskit/editor-common": "^93.6.0",
|
|
38
|
+
"@atlaskit/editor-json-transformer": "^8.20.0",
|
|
39
39
|
"@atlaskit/editor-prosemirror": "6.0.0",
|
|
40
40
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
41
41
|
"@atlaskit/prosemirror-collab": "^0.10.0",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@atlaskit/adf-schema": "^
|
|
65
|
+
"@atlaskit/adf-schema": "^42.0.2",
|
|
66
66
|
"@atlassian/feature-flags-test-utils": "^0.2.0",
|
|
67
67
|
"typescript": "~5.4.2"
|
|
68
68
|
},
|