@atlaskit/collab-provider 24.2.2 → 24.2.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 +10 -0
- package/dist/cjs/analytics/ufo.js +6 -5
- package/dist/cjs/document/document-service.js +3 -3
- package/dist/cjs/participants/telepointers-helper.js +6 -5
- package/dist/cjs/provider/index.js +2 -2
- package/dist/cjs/socket-io-provider.js +3 -3
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/analytics/ufo.js +2 -1
- package/dist/es2019/document/document-service.js +1 -1
- package/dist/es2019/participants/telepointers-helper.js +2 -1
- package/dist/es2019/provider/index.js +1 -1
- package/dist/es2019/socket-io-provider.js +1 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/analytics/ufo.js +2 -1
- package/dist/esm/document/document-service.js +1 -1
- package/dist/esm/participants/telepointers-helper.js +2 -1
- package/dist/esm/provider/index.js +1 -1
- package/dist/esm/socket-io-provider.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/analytics/analytics-helper.d.ts +1 -1
- package/dist/types/analytics/ufo.d.ts +1 -1
- package/dist/types/document/document-service.d.ts +2 -2
- package/dist/types/document/getConflictChanges.d.ts +1 -1
- package/dist/types/document/interface-document-service.d.ts +1 -1
- package/dist/types/helpers/utils.d.ts +2 -2
- package/dist/types/provider/commit-step.d.ts +1 -1
- package/dist/types/provider/get-offline-steps-length.d.ts +1 -1
- package/dist/types/provider/index.d.ts +1 -1
- package/dist/types/types.d.ts +2 -2
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @atlaskit/collab-provider
|
|
2
2
|
|
|
3
|
+
## 24.2.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`656801b9e097c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/656801b9e097c) -
|
|
8
|
+
VOLTC-331 - Migrate updated package usage in platform/editor: rewrite barrel imports of
|
|
9
|
+
voltCompliant provider packages to deep/subpath imports (consumer-side debarrel). No public API
|
|
10
|
+
changes.
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
3
13
|
## 24.2.2
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -6,13 +6,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.createDocInitExp = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var
|
|
9
|
+
var _experienceTypes = require("@atlaskit/ufo/experience-types");
|
|
10
|
+
var _experience = require("@atlaskit/ufo/experience");
|
|
10
11
|
var createDocumentInitExperience = function createDocumentInitExperience() {
|
|
11
|
-
return new
|
|
12
|
-
type:
|
|
13
|
-
performanceType:
|
|
12
|
+
return new _experience.UFOExperience('collab-provider.document-init', {
|
|
13
|
+
type: _experienceTypes.ExperienceTypes.Load,
|
|
14
|
+
performanceType: _experienceTypes.ExperiencePerformanceTypes.Custom,
|
|
14
15
|
performanceConfig: {
|
|
15
|
-
histogram: (0, _defineProperty2.default)({},
|
|
16
|
+
histogram: (0, _defineProperty2.default)({}, _experienceTypes.ExperiencePerformanceTypes.Custom, {
|
|
16
17
|
duration: '250_500_1000_1500_2000_3000_4000'
|
|
17
18
|
})
|
|
18
19
|
}
|
|
@@ -12,7 +12,7 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
|
|
|
12
12
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
13
13
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
14
14
|
var _throttle = _interopRequireDefault(require("lodash/throttle"));
|
|
15
|
-
var
|
|
15
|
+
var _transformOverride = require("@atlaskit/editor-prosemirror/transform-override");
|
|
16
16
|
var _prosemirrorCollab = require("@atlaskit/prosemirror-collab");
|
|
17
17
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
18
18
|
var _editorJsonTransformer = require("@atlaskit/editor-json-transformer");
|
|
@@ -447,7 +447,7 @@ var DocumentService = exports.DocumentService = /*#__PURE__*/function () {
|
|
|
447
447
|
state = (_this$getState5 = _this.getState) === null || _this$getState5 === void 0 ? void 0 : _this$getState5.call(_this);
|
|
448
448
|
if (state !== null && state !== void 0 && state.schema) {
|
|
449
449
|
stepsToBeApplied = generatedSteps === null || generatedSteps === void 0 ? void 0 : generatedSteps.map(function (s) {
|
|
450
|
-
return
|
|
450
|
+
return _transformOverride.Step.fromJSON(state.schema, s);
|
|
451
451
|
});
|
|
452
452
|
if (stepsToBeApplied && stepsToBeApplied.length > 0) {
|
|
453
453
|
(_this$analyticsHelper12 = _this.analyticsHelper) === null || _this$analyticsHelper12 === void 0 || _this$analyticsHelper12.sendActionEvent(_const.EVENT_ACTION.REINITIALISE_DOCUMENT, _const.EVENT_STATUS.INFO, {
|
|
@@ -863,7 +863,7 @@ var DocumentService = exports.DocumentService = /*#__PURE__*/function () {
|
|
|
863
863
|
var schema = state.schema,
|
|
864
864
|
tr = state.tr;
|
|
865
865
|
var remoteSteps = steps.map(function (s) {
|
|
866
|
-
return
|
|
866
|
+
return _transformOverride.Step.fromJSON(schema, s);
|
|
867
867
|
});
|
|
868
868
|
var conflicts = (0, _getConflictChanges.getConflictChanges)({
|
|
869
869
|
localSteps: unconfirmedSteps,
|
|
@@ -8,7 +8,8 @@ exports.telepointerFromStep = exports.telepointerCallback = void 0;
|
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
10
|
var _utils = require("../helpers/utils");
|
|
11
|
-
var
|
|
11
|
+
var _experienceTypes = require("@atlaskit/ufo/experience-types");
|
|
12
|
+
var _experience = require("@atlaskit/ufo/experience");
|
|
12
13
|
var _types = require("../types");
|
|
13
14
|
var logger = (0, _utils.createLogger)('Telepointer', 'green');
|
|
14
15
|
var telepointerFromStep = exports.telepointerFromStep = function telepointerFromStep(participants, step) {
|
|
@@ -42,11 +43,11 @@ var telepointerFromStep = exports.telepointerFromStep = function telepointerFrom
|
|
|
42
43
|
}
|
|
43
44
|
};
|
|
44
45
|
var telepointerCallback = exports.telepointerCallback = function telepointerCallback(documentAri) {
|
|
45
|
-
var telepointerExperience = new
|
|
46
|
-
type:
|
|
47
|
-
performanceType:
|
|
46
|
+
var telepointerExperience = new _experience.UFOExperience('collab-provider.telepointer', {
|
|
47
|
+
type: _experienceTypes.ExperienceTypes.Operation,
|
|
48
|
+
performanceType: _experienceTypes.ExperiencePerformanceTypes.Custom,
|
|
48
49
|
performanceConfig: {
|
|
49
|
-
histogram: (0, _defineProperty2.default)({},
|
|
50
|
+
histogram: (0, _defineProperty2.default)({}, _experienceTypes.ExperiencePerformanceTypes.Custom, {
|
|
50
51
|
duration: '250_500_1000_1500_2000_3000_4000'
|
|
51
52
|
})
|
|
52
53
|
}
|
|
@@ -15,7 +15,7 @@ var _get2 = _interopRequireDefault(require("@babel/runtime/helpers/get"));
|
|
|
15
15
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
16
16
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
17
17
|
var _uuid = require("uuid");
|
|
18
|
-
var
|
|
18
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
19
19
|
var _emitter = require("../emitter");
|
|
20
20
|
var _channel = require("../channel");
|
|
21
21
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
@@ -673,7 +673,7 @@ var Provider = exports.Provider = /*#__PURE__*/function (_Emitter) {
|
|
|
673
673
|
selection: data.selection
|
|
674
674
|
}), (0, _performance.shouldTelepointerBeSampled)() ? (0, _telepointersHelper.telepointerCallback)(this.config.documentAri) : undefined);
|
|
675
675
|
} else if ((data === null || data === void 0 ? void 0 : data.type) === 'ai-provider:change') {
|
|
676
|
-
if (!(0,
|
|
676
|
+
if (!(0, _fg.fg)('platform_move_presence_agents')) {
|
|
677
677
|
this.participantsService.sendAIProviderChanged(_objectSpread(_objectSpread({}, basePayload), data));
|
|
678
678
|
}
|
|
679
679
|
} else if ((data === null || data === void 0 ? void 0 : data.type) === 'participant:activity') {
|
|
@@ -8,7 +8,7 @@ exports.createSocketIOCollabProvider = createSocketIOCollabProvider;
|
|
|
8
8
|
exports.createSocketIOSocket = createSocketIOSocket;
|
|
9
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
10
|
var _socket = require("socket.io-client");
|
|
11
|
-
var
|
|
11
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
12
12
|
var _provider = require("./provider");
|
|
13
13
|
var _utils = require("./helpers/utils");
|
|
14
14
|
var _config = require("./config");
|
|
@@ -23,14 +23,14 @@ function createSocketIOSocket(url, auth, productInfo, isPresenceOnly, analyticsH
|
|
|
23
23
|
var transports = ['polling', 'websocket'];
|
|
24
24
|
if (isPresenceOnly) {
|
|
25
25
|
// Presence-specific configuration
|
|
26
|
-
if ((0,
|
|
26
|
+
if ((0, _fg.fg)('platform-editor-presence-websocket-only')) {
|
|
27
27
|
// https://socket.io/docs/v4/client-options/#transports
|
|
28
28
|
// WebSocket first, if fails, try polling
|
|
29
29
|
transports = ['websocket'];
|
|
30
30
|
}
|
|
31
31
|
socketIOOptions = _config.SOCKET_IO_OPTIONS_WITH_HIGH_JITTER;
|
|
32
32
|
} else {
|
|
33
|
-
if ((0, _utils.isGCPtenant)(hostname) && (0,
|
|
33
|
+
if ((0, _utils.isGCPtenant)(hostname) && (0, _fg.fg)('collab_edit_via_websocket_only_for_gcp')) {
|
|
34
34
|
transports = ['websocket'];
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -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 = "24.2.
|
|
8
|
+
var version = exports.version = "24.2.2";
|
|
9
9
|
var nextMajorVersion = exports.nextMajorVersion = function nextMajorVersion() {
|
|
10
10
|
return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
|
|
11
11
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ExperiencePerformanceTypes, ExperienceTypes
|
|
1
|
+
import { ExperiencePerformanceTypes, ExperienceTypes } from '@atlaskit/ufo/experience-types';
|
|
2
|
+
import { UFOExperience } from '@atlaskit/ufo/experience';
|
|
2
3
|
const createDocumentInitExperience = () => new UFOExperience('collab-provider.document-init', {
|
|
3
4
|
type: ExperienceTypes.Load,
|
|
4
5
|
performanceType: ExperiencePerformanceTypes.Custom,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import throttle from 'lodash/throttle';
|
|
3
|
-
import { Step as ProseMirrorStep } from '@atlaskit/editor-prosemirror/transform';
|
|
3
|
+
import { Step as ProseMirrorStep } from '@atlaskit/editor-prosemirror/transform-override';
|
|
4
4
|
import { getCollabState, sendableSteps } from '@atlaskit/prosemirror-collab';
|
|
5
5
|
import { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
6
6
|
import { JSONTransformer } from '@atlaskit/editor-json-transformer';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { createLogger } from '../helpers/utils';
|
|
2
|
-
import { ExperiencePerformanceTypes, ExperienceTypes
|
|
2
|
+
import { ExperiencePerformanceTypes, ExperienceTypes } from '@atlaskit/ufo/experience-types';
|
|
3
|
+
import { UFOExperience } from '@atlaskit/ufo/experience';
|
|
3
4
|
import { AcknowledgementResponseTypes } from '../types';
|
|
4
5
|
const logger = createLogger('Telepointer', 'green');
|
|
5
6
|
export const telepointerFromStep = (participants, step) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
3
3
|
import { v4 as uuidv4 } from 'uuid';
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
5
5
|
import { Emitter } from '../emitter';
|
|
6
6
|
import { Channel } from '../channel';
|
|
7
7
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { io } from 'socket.io-client';
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
3
3
|
import { Provider } from './provider';
|
|
4
4
|
import { getProduct, getSubProduct, isGCPtenant } from './helpers/utils';
|
|
5
5
|
import { SOCKET_IO_OPTIONS, SOCKET_IO_OPTIONS_WITH_HIGH_JITTER } from './config';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
import { ExperiencePerformanceTypes, ExperienceTypes
|
|
2
|
+
import { ExperiencePerformanceTypes, ExperienceTypes } from '@atlaskit/ufo/experience-types';
|
|
3
|
+
import { UFOExperience } from '@atlaskit/ufo/experience';
|
|
3
4
|
var createDocumentInitExperience = function createDocumentInitExperience() {
|
|
4
5
|
return new UFOExperience('collab-provider.document-init', {
|
|
5
6
|
type: ExperienceTypes.Load,
|
|
@@ -10,7 +10,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
10
10
|
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; }
|
|
11
11
|
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; }
|
|
12
12
|
import throttle from 'lodash/throttle';
|
|
13
|
-
import { Step as ProseMirrorStep } from '@atlaskit/editor-prosemirror/transform';
|
|
13
|
+
import { Step as ProseMirrorStep } from '@atlaskit/editor-prosemirror/transform-override';
|
|
14
14
|
import { getCollabState, sendableSteps } from '@atlaskit/prosemirror-collab';
|
|
15
15
|
import { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
16
16
|
import { JSONTransformer } from '@atlaskit/editor-json-transformer';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import { createLogger } from '../helpers/utils';
|
|
4
|
-
import { ExperiencePerformanceTypes, ExperienceTypes
|
|
4
|
+
import { ExperiencePerformanceTypes, ExperienceTypes } from '@atlaskit/ufo/experience-types';
|
|
5
|
+
import { UFOExperience } from '@atlaskit/ufo/experience';
|
|
5
6
|
import { AcknowledgementResponseTypes } from '../types';
|
|
6
7
|
var logger = createLogger('Telepointer', 'green');
|
|
7
8
|
export var telepointerFromStep = function telepointerFromStep(participants, step) {
|
|
@@ -14,7 +14,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
14
14
|
function _superPropGet(t, o, e, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; }
|
|
15
15
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
16
16
|
import { v4 as uuidv4 } from 'uuid';
|
|
17
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
17
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
18
18
|
import { Emitter } from '../emitter';
|
|
19
19
|
import { Channel } from '../channel';
|
|
20
20
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
@@ -2,7 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
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; }
|
|
3
3
|
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; }
|
|
4
4
|
import { io } from 'socket.io-client';
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
6
6
|
import { Provider } from './provider';
|
|
7
7
|
import { getProduct, getSubProduct, isGCPtenant } from './helpers/utils';
|
|
8
8
|
import { SOCKET_IO_OPTIONS, SOCKET_IO_OPTIONS_WITH_HIGH_JITTER } from './config';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AnalyticsWebClient } from '@atlaskit/analytics-listeners';
|
|
1
|
+
import type { AnalyticsWebClient } from '@atlaskit/analytics-listeners/types';
|
|
2
2
|
import type { ProviderError } from '@atlaskit/editor-common/collab';
|
|
3
3
|
import type { ActionAnalyticsEvent, EVENT_STATUS } from '../helpers/const';
|
|
4
4
|
export default class AnalyticsHelper {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { UFOExperience } from '@atlaskit/ufo';
|
|
1
|
+
import { UFOExperience } from '@atlaskit/ufo/experience';
|
|
2
2
|
import type AnalyticsHelper from './analytics-helper';
|
|
3
3
|
export declare const createDocInitExp: (analyticsHelper: AnalyticsHelper | undefined) => UFOExperience | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ResolvedEditorState, SyncUpErrorFunction, CollabEvents, CollabInitPayload } from '@atlaskit/editor-common/collab';
|
|
2
|
-
import { Step as ProseMirrorStep } from '@atlaskit/editor-prosemirror/transform';
|
|
2
|
+
import { Step as ProseMirrorStep } from '@atlaskit/editor-prosemirror/transform-override';
|
|
3
3
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
5
|
-
import type { JSONDocNode } from '@atlaskit/editor-json-transformer';
|
|
5
|
+
import type { JSONDocNode } from '@atlaskit/editor-json-transformer/types';
|
|
6
6
|
import type { Catchupv2Response, ChannelEvent, GenerateDiffStepsResponseBody, ReconcileResponse, ReconnectionMetadata, StepsPayload } from '../types';
|
|
7
7
|
import type { MetadataService } from '../metadata/metadata-service';
|
|
8
8
|
import { CatchupEventReason } from '../helpers/const';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Step as ProseMirrorStep } from '@atlaskit/editor-prosemirror/transform';
|
|
1
|
+
import type { Step as ProseMirrorStep } from '@atlaskit/editor-prosemirror/transform-override';
|
|
2
2
|
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
import type { ConflictChanges } from '@atlaskit/editor-common/collab';
|
|
4
4
|
import type { Rebaseable } from '@atlaskit/prosemirror-collab';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ResolvedEditorState, SyncUpErrorFunction } from '@atlaskit/editor-common/collab';
|
|
2
|
-
import type { Step as ProseMirrorStep } from '@atlaskit/editor-prosemirror/transform';
|
|
2
|
+
import type { Step as ProseMirrorStep } from '@atlaskit/editor-prosemirror/transform-override';
|
|
3
3
|
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import type { InternalError } from '../errors/internal-errors';
|
|
5
5
|
import type { GetResolvedEditorStateReason } from '@atlaskit/editor-common/types';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ADFEntity } from '@atlaskit/adf-utils/types';
|
|
2
2
|
import type { ProductInformation } from '../types';
|
|
3
|
-
import type { Step as ProseMirrorStep } from '@atlaskit/editor-prosemirror/transform';
|
|
3
|
+
import type { Step as ProseMirrorStep } from '@atlaskit/editor-prosemirror/transform-override';
|
|
4
4
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
5
5
|
import type { StepJson } from '@atlaskit/editor-common/collab';
|
|
6
|
-
import type { JSONDocNode } from '@atlaskit/editor-json-transformer';
|
|
6
|
+
import type { JSONDocNode } from '@atlaskit/editor-json-transformer/types';
|
|
7
7
|
import type { Node as ProseMirrorNode } from '@atlaskit/editor-prosemirror/model';
|
|
8
8
|
import { CustomError } from '../errors/custom-errors';
|
|
9
9
|
export declare const createLogger: (prefix: string, color?: string) => (msg: string, data?: any) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ChannelEvent, StepsPayload } from '../types';
|
|
2
2
|
import type { CollabEvents } from '@atlaskit/editor-common/collab';
|
|
3
|
-
import type { Step as ProseMirrorStep } from '@atlaskit/editor-prosemirror/transform';
|
|
3
|
+
import type { Step as ProseMirrorStep } from '@atlaskit/editor-prosemirror/transform-override';
|
|
4
4
|
import type AnalyticsHelper from '../analytics/analytics-helper';
|
|
5
5
|
import type { InternalError } from '../errors/internal-errors';
|
|
6
6
|
import type { GetResolvedEditorStateReason } from '@atlaskit/editor-common/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Step as ProseMirrorStep } from '@atlaskit/editor-prosemirror/transform';
|
|
1
|
+
import type { Step as ProseMirrorStep } from '@atlaskit/editor-prosemirror/transform-override';
|
|
2
2
|
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
export declare function getOfflineStepsLength(steps: readonly ProseMirrorStep[] | undefined, origins: readonly Transaction[] | undefined): number | undefined;
|
|
4
4
|
export declare function getOfflineReplaceStepsLength(steps: readonly ProseMirrorStep[] | undefined, origins: readonly Transaction[] | undefined): number | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
import type { Step as ProseMirrorStep } from '@atlaskit/editor-prosemirror/transform';
|
|
2
|
+
import type { Step as ProseMirrorStep } from '@atlaskit/editor-prosemirror/transform-override';
|
|
3
3
|
import { Emitter } from '../emitter';
|
|
4
4
|
import type { Config } from '../types';
|
|
5
5
|
import type { CollabEditProvider, CollabEvents, CollabTelepointerPayload, ResolvedEditorState, Metadata, CollabInitPayload, SyncUpErrorFunction, CollabPresenceActivityChangePayload, CollabActivityAIProviderChangedPayload, ProviderParticipant } from '@atlaskit/editor-common/collab';
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { AnalyticsWebClient } from '@atlaskit/analytics-listeners';
|
|
1
|
+
import type { AnalyticsWebClient } from '@atlaskit/analytics-listeners/types';
|
|
2
2
|
import type { AnonymousAsset } from '@atlaskit/anonymous-assets';
|
|
3
3
|
import type { Manager, Socket as SocketIOSocket } from 'socket.io-client';
|
|
4
4
|
import type { InternalError } from './errors/internal-errors';
|
|
5
|
-
import type { JSONDocNode } from '@atlaskit/editor-json-transformer';
|
|
5
|
+
import type { JSONDocNode } from '@atlaskit/editor-json-transformer/types';
|
|
6
6
|
import type { BatchProps, GetUserType } from './participants/participants-helper';
|
|
7
7
|
import type AnalyticsHelper from './analytics/analytics-helper';
|
|
8
8
|
import type { StepJson, CollabSendableSelection, Metadata, UserPermitType, PresenceActivity } from '@atlaskit/editor-common/collab';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/collab-provider",
|
|
3
|
-
"version": "24.2.
|
|
3
|
+
"version": "24.2.3",
|
|
4
4
|
"description": "A provider for collaborative editing.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@atlaskit/adf-schema": "^57.0.0",
|
|
60
|
+
"@atlaskit/editor-test-helpers": "workspace:^",
|
|
60
61
|
"@atlassian/a11y-jest-testing": "^0.17.0",
|
|
61
62
|
"@atlassian/experiment-test-utils": "^0.2.0",
|
|
62
63
|
"@atlassian/feature-flags-test-utils": "^1.2.0"
|