@atlaskit/collab-provider 9.40.6 → 9.41.0
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/provider/index.js +8 -0
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/provider/index.js +8 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/provider/index.js +8 -0
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/provider/index.d.ts +6 -0
- package/dist/types-ts4.5/provider/index.d.ts +6 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/collab-provider
|
|
2
2
|
|
|
3
|
+
## 9.41.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#144504](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/144504)
|
|
8
|
+
[`b193c17f3732d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b193c17f3732d) -
|
|
9
|
+
Expose method to get ProseMirror version to collab provider
|
|
10
|
+
|
|
3
11
|
## 9.40.6
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -258,6 +258,14 @@ var Provider = exports.Provider = /*#__PURE__*/function (_Emitter) {
|
|
|
258
258
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "getUnconfirmedSteps", function () {
|
|
259
259
|
return _this.documentService.getUnconfirmedSteps();
|
|
260
260
|
});
|
|
261
|
+
/**
|
|
262
|
+
* Provides a synchronous method to retreive the version from the Document Service / Editor State
|
|
263
|
+
*
|
|
264
|
+
* @returns {number} Returns the current ProseMirror version from the Editor State
|
|
265
|
+
*/
|
|
266
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "getCurrentPmVersion", function () {
|
|
267
|
+
return _this.documentService.getCurrentPmVersion();
|
|
268
|
+
});
|
|
261
269
|
/**
|
|
262
270
|
* Used when the provider is disconnected or destroyed to prevent perpetual timers from continuously running
|
|
263
271
|
*/
|
|
@@ -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.
|
|
8
|
+
var version = exports.version = "9.41.0";
|
|
9
9
|
var nextMajorVersion = exports.nextMajorVersion = function nextMajorVersion() {
|
|
10
10
|
return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
|
|
11
11
|
};
|
|
@@ -211,6 +211,14 @@ export class Provider extends Emitter {
|
|
|
211
211
|
_defineProperty(this, "getUnconfirmedSteps", () => {
|
|
212
212
|
return this.documentService.getUnconfirmedSteps();
|
|
213
213
|
});
|
|
214
|
+
/**
|
|
215
|
+
* Provides a synchronous method to retreive the version from the Document Service / Editor State
|
|
216
|
+
*
|
|
217
|
+
* @returns {number} Returns the current ProseMirror version from the Editor State
|
|
218
|
+
*/
|
|
219
|
+
_defineProperty(this, "getCurrentPmVersion", () => {
|
|
220
|
+
return this.documentService.getCurrentPmVersion();
|
|
221
|
+
});
|
|
214
222
|
/**
|
|
215
223
|
* Used when the provider is disconnected or destroyed to prevent perpetual timers from continuously running
|
|
216
224
|
*/
|
|
@@ -251,6 +251,14 @@ export var Provider = /*#__PURE__*/function (_Emitter) {
|
|
|
251
251
|
_defineProperty(_assertThisInitialized(_this), "getUnconfirmedSteps", function () {
|
|
252
252
|
return _this.documentService.getUnconfirmedSteps();
|
|
253
253
|
});
|
|
254
|
+
/**
|
|
255
|
+
* Provides a synchronous method to retreive the version from the Document Service / Editor State
|
|
256
|
+
*
|
|
257
|
+
* @returns {number} Returns the current ProseMirror version from the Editor State
|
|
258
|
+
*/
|
|
259
|
+
_defineProperty(_assertThisInitialized(_this), "getCurrentPmVersion", function () {
|
|
260
|
+
return _this.documentService.getCurrentPmVersion();
|
|
261
|
+
});
|
|
254
262
|
/**
|
|
255
263
|
* Used when the provider is disconnected or destroyed to prevent perpetual timers from continuously running
|
|
256
264
|
*/
|
|
@@ -148,6 +148,12 @@ export declare class Provider extends Emitter<CollabEvents> implements BaseEvent
|
|
|
148
148
|
*/
|
|
149
149
|
getFinalAcknowledgedState: () => Promise<ResolvedEditorState>;
|
|
150
150
|
getUnconfirmedSteps: () => readonly ProseMirrorStep[] | undefined;
|
|
151
|
+
/**
|
|
152
|
+
* Provides a synchronous method to retreive the version from the Document Service / Editor State
|
|
153
|
+
*
|
|
154
|
+
* @returns {number} Returns the current ProseMirror version from the Editor State
|
|
155
|
+
*/
|
|
156
|
+
getCurrentPmVersion: () => number;
|
|
151
157
|
/**
|
|
152
158
|
* Used when the provider is disconnected or destroyed to prevent perpetual timers from continuously running
|
|
153
159
|
*/
|
|
@@ -148,6 +148,12 @@ export declare class Provider extends Emitter<CollabEvents> implements BaseEvent
|
|
|
148
148
|
*/
|
|
149
149
|
getFinalAcknowledgedState: () => Promise<ResolvedEditorState>;
|
|
150
150
|
getUnconfirmedSteps: () => readonly ProseMirrorStep[] | undefined;
|
|
151
|
+
/**
|
|
152
|
+
* Provides a synchronous method to retreive the version from the Document Service / Editor State
|
|
153
|
+
*
|
|
154
|
+
* @returns {number} Returns the current ProseMirror version from the Editor State
|
|
155
|
+
*/
|
|
156
|
+
getCurrentPmVersion: () => number;
|
|
151
157
|
/**
|
|
152
158
|
* Used when the provider is disconnected or destroyed to prevent perpetual timers from continuously running
|
|
153
159
|
*/
|