@atlaskit/collab-provider 35.0.5 → 35.0.6
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 +6 -0
- package/dist/cjs/helpers/utils.js +4 -4
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/helpers/utils.js +1 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/helpers/utils.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/document/document-service.d.ts +1 -1
- package/dist/types/document/interface-document-service.d.ts +1 -1
- package/dist/types/document/null-document-service.d.ts +1 -1
- package/dist/types/provider/commit-step.d.ts +1 -1
- package/dist/types/provider/index.d.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -13,7 +13,7 @@ exports.toObfuscatedSteps = toObfuscatedSteps;
|
|
|
13
13
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
14
14
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
15
15
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
16
|
-
var
|
|
16
|
+
var _scrubAdf = _interopRequireDefault(require("@atlaskit/adf-utils/scrub-adf"));
|
|
17
17
|
var _prosemirrorCollab = require("@atlaskit/prosemirror-collab");
|
|
18
18
|
var _customErrors = require("../errors/custom-errors");
|
|
19
19
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -166,7 +166,7 @@ var getStepsAdfWithObfuscation = exports.getStepsAdfWithObfuscation = function g
|
|
|
166
166
|
return null;
|
|
167
167
|
}
|
|
168
168
|
var scrubbedSteps = stepContentAsAdf.map(function (adf) {
|
|
169
|
-
return (0,
|
|
169
|
+
return (0, _scrubAdf.default)(adf);
|
|
170
170
|
}).filter(function (adf) {
|
|
171
171
|
return !!adf;
|
|
172
172
|
});
|
|
@@ -174,14 +174,14 @@ var getStepsAdfWithObfuscation = exports.getStepsAdfWithObfuscation = function g
|
|
|
174
174
|
};
|
|
175
175
|
var getDocAdfWithObfuscation = exports.getDocAdfWithObfuscation = function getDocAdfWithObfuscation(doc) {
|
|
176
176
|
var docJson = doc.toJSON();
|
|
177
|
-
var scrubbedDoc = (0,
|
|
177
|
+
var scrubbedDoc = (0, _scrubAdf.default)(docJson);
|
|
178
178
|
if (!scrubbedDoc) {
|
|
179
179
|
return null;
|
|
180
180
|
}
|
|
181
181
|
return scrubbedDoc;
|
|
182
182
|
};
|
|
183
183
|
var getDocAdfWithObfuscationFromJSON = exports.getDocAdfWithObfuscationFromJSON = function getDocAdfWithObfuscationFromJSON(docJson) {
|
|
184
|
-
var scrubbedDoc = (0,
|
|
184
|
+
var scrubbedDoc = (0, _scrubAdf.default)(docJson);
|
|
185
185
|
if (!scrubbedDoc) {
|
|
186
186
|
return null;
|
|
187
187
|
}
|
|
@@ -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 = "35.0.
|
|
8
|
+
var version = exports.version = "35.0.5";
|
|
9
9
|
var nextMajorVersion = exports.nextMajorVersion = function nextMajorVersion() {
|
|
10
10
|
return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
|
|
11
11
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import scrubAdf from '@atlaskit/adf-utils/scrub-adf';
|
|
2
2
|
import { sendableSteps } from '@atlaskit/prosemirror-collab';
|
|
3
3
|
import { CustomError } from '../errors/custom-errors';
|
|
4
4
|
// eslint-disable-next-line require-unicode-regexp
|
|
@@ -3,7 +3,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
3
3
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
4
4
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
5
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
|
-
import
|
|
6
|
+
import scrubAdf from '@atlaskit/adf-utils/scrub-adf';
|
|
7
7
|
import { sendableSteps } from '@atlaskit/prosemirror-collab';
|
|
8
8
|
import { CustomError } from '../errors/custom-errors';
|
|
9
9
|
// eslint-disable-next-line require-unicode-regexp
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DebouncedFunc } from 'lodash';
|
|
2
2
|
import type { ADFEntity } from '@atlaskit/adf-utils/types';
|
|
3
3
|
import type { ResolvedEditorState, SyncUpErrorFunction, CollabEvents, CollabInitPayload } from '@atlaskit/editor-common/collab';
|
|
4
|
-
import type { GetResolvedEditorStateReason } from '@atlaskit/editor-common/types';
|
|
4
|
+
import type { GetResolvedEditorStateReason } from '@atlaskit/editor-common/types/editor-actions';
|
|
5
5
|
import type { JSONDocNode } from '@atlaskit/editor-json-transformer/types';
|
|
6
6
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
7
7
|
import { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ResolvedEditorState, SyncUpErrorFunction } from '@atlaskit/editor-common/collab';
|
|
2
|
-
import type { GetResolvedEditorStateReason } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { GetResolvedEditorStateReason } from '@atlaskit/editor-common/types/editor-actions';
|
|
3
3
|
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import type { Step as ProseMirrorStep } from '@atlaskit/editor-prosemirror/transform-override';
|
|
5
5
|
import type { InternalError } from '../errors/internal-errors';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ResolvedEditorState } from '@atlaskit/editor-common/collab';
|
|
2
|
-
import type { GetResolvedEditorStateReason } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { GetResolvedEditorStateReason } from '@atlaskit/editor-common/types/editor-actions';
|
|
3
3
|
import type { DocumentServiceInterface } from './interface-document-service';
|
|
4
4
|
export declare class NullDocumentService implements DocumentServiceInterface {
|
|
5
5
|
setup: () => this;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CollabEvents } from '@atlaskit/editor-common/collab';
|
|
2
|
-
import type { GetResolvedEditorStateReason } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { GetResolvedEditorStateReason } from '@atlaskit/editor-common/types/editor-actions';
|
|
3
3
|
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import type { Step as ProseMirrorStep } from '@atlaskit/editor-prosemirror/transform-override';
|
|
5
5
|
import type AnalyticsHelper from '../analytics/analytics-helper';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CollabEditProvider, CollabEvents, CollabTelepointerPayload, ResolvedEditorState, Metadata, CollabInitPayload, SyncUpErrorFunction, CollabPresenceActivityChangePayload, CollabActivityAIProviderChangedPayload, ProviderParticipant } from '@atlaskit/editor-common/collab';
|
|
2
|
-
import type { GetResolvedEditorStateReason } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { GetResolvedEditorStateReason } from '@atlaskit/editor-common/types/editor-actions';
|
|
3
3
|
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import type { Step as ProseMirrorStep } from '@atlaskit/editor-prosemirror/transform-override';
|
|
5
5
|
import { Api } from '../api/api';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/collab-provider",
|
|
3
|
-
"version": "35.0.
|
|
3
|
+
"version": "35.0.6",
|
|
4
4
|
"description": "A provider for collaborative editing.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
31
31
|
"@atlaskit/prosemirror-collab": "^1.1.0",
|
|
32
32
|
"@atlaskit/react-ufo": "^8.1.0",
|
|
33
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
33
|
+
"@atlaskit/tmp-editor-statsig": "^232.0.0",
|
|
34
34
|
"@atlaskit/ufo": "^2.0.0",
|
|
35
35
|
"@atlaskit/util-service-support": "^7.4.0",
|
|
36
36
|
"@babel/runtime": "^7.0.0",
|