@atlaskit/collab-provider 16.1.9 → 16.1.11
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 +14 -0
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/channel.d.ts +1 -1
- package/dist/types/document/document-service.d.ts +2 -2
- package/dist/types/document/getConflictChanges.d.ts +3 -3
- package/dist/types/document/step-queue-state.d.ts +1 -1
- package/dist/types/helpers/utils.d.ts +3 -3
- package/dist/types/namespace/namespace-service.d.ts +1 -1
- package/dist/types/participants/participants-helper.d.ts +1 -1
- package/dist/types/participants/participants-service.d.ts +2 -1
- package/dist/types/participants/participants-state.d.ts +1 -1
- package/dist/types/types.d.ts +1 -1
- package/dist/types-ts4.5/channel.d.ts +1 -1
- package/dist/types-ts4.5/document/document-service.d.ts +2 -2
- package/dist/types-ts4.5/document/getConflictChanges.d.ts +3 -3
- package/dist/types-ts4.5/document/step-queue-state.d.ts +1 -1
- package/dist/types-ts4.5/helpers/utils.d.ts +3 -3
- package/dist/types-ts4.5/namespace/namespace-service.d.ts +1 -1
- package/dist/types-ts4.5/participants/participants-helper.d.ts +1 -1
- package/dist/types-ts4.5/participants/participants-service.d.ts +2 -1
- package/dist/types-ts4.5/participants/participants-state.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/collab-provider
|
|
2
2
|
|
|
3
|
+
## 16.1.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 16.1.10
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`5221db0d676ef`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5221db0d676ef) -
|
|
14
|
+
Mechanical type-import autofix for tables, collab, and synchrony packages.
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 16.1.9
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -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 = "16.1.
|
|
8
|
+
var version = exports.version = "16.1.11";
|
|
9
9
|
var nextMajorVersion = exports.nextMajorVersion = function nextMajorVersion() {
|
|
10
10
|
return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
|
|
11
11
|
};
|
package/dist/types/channel.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Emitter } from './emitter';
|
|
2
2
|
import type { Config, ChannelEvent, Catchupv2Response, ReconcileResponse, GenerateDiffStepsResponseBody } from './types';
|
|
3
|
-
import {
|
|
3
|
+
import type { CatchupEventReason } from './helpers/const';
|
|
4
4
|
import type { Socket } from 'socket.io-client';
|
|
5
5
|
import type AnalyticsHelper from './analytics/analytics-helper';
|
|
6
6
|
import type { Metadata } from '@atlaskit/editor-common/collab';
|
|
@@ -8,8 +8,8 @@ import type { MetadataService } from '../metadata/metadata-service';
|
|
|
8
8
|
import { CatchupEventReason } from '../helpers/const';
|
|
9
9
|
import type AnalyticsHelper from '../analytics/analytics-helper';
|
|
10
10
|
import type { InternalError } from '../errors/internal-errors';
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
11
|
+
import type { ParticipantsService } from '../participants/participants-service';
|
|
12
|
+
import type { DocumentServiceInterface } from './interface-document-service';
|
|
13
13
|
import type { GetResolvedEditorStateReason } from '@atlaskit/editor-common/types';
|
|
14
14
|
import type { ADFEntity } from '@atlaskit/adf-utils/types';
|
|
15
15
|
import type { DebouncedFunc } from 'lodash';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { Step as ProseMirrorStep } from '@atlaskit/editor-prosemirror/transform';
|
|
2
|
+
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
import type { ConflictChanges } from '@atlaskit/editor-common/collab';
|
|
4
|
-
import {
|
|
4
|
+
import type { Rebaseable } from '@atlaskit/prosemirror-collab';
|
|
5
5
|
interface Options {
|
|
6
6
|
localSteps: readonly Rebaseable[];
|
|
7
7
|
remoteSteps: ProseMirrorStep[];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ADFEntity } from '@atlaskit/adf-utils/types';
|
|
2
2
|
import type { ProductInformation } from '../types';
|
|
3
3
|
import type { Step as ProseMirrorStep } from '@atlaskit/editor-prosemirror/transform';
|
|
4
4
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
5
5
|
import type { StepJson } from '@atlaskit/editor-common/collab';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import type { JSONDocNode } from '@atlaskit/editor-json-transformer';
|
|
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;
|
|
10
10
|
export declare function sleep(ms: number): Promise<any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ProviderParticipant } from '@atlaskit/editor-common/collab';
|
|
2
2
|
import type { PresencePayload } from '../types';
|
|
3
|
-
import {
|
|
3
|
+
import type { ParticipantsState } from './participants-state';
|
|
4
4
|
export declare const PARTICIPANT_UPDATE_INTERVAL: number;
|
|
5
5
|
export type ParticipantsMap = Map<string, ProviderParticipant>;
|
|
6
6
|
type UserType = Pick<ProviderParticipant, 'name' | 'avatar' | 'userId' | 'email' | 'isGuest'>;
|
|
@@ -2,7 +2,8 @@ import type { CollabEventPresenceData, CollabTelepointerPayload, CollabPresenceA
|
|
|
2
2
|
import type AnalyticsHelper from '../analytics/analytics-helper';
|
|
3
3
|
import type { CollabEventDisconnectedData, ChannelEvent, PresenceData, PresencePayload, TelepointerPayload, FetchAnonymousAsset } from '../types';
|
|
4
4
|
import type { BatchProps, GetUserType } from './participants-helper';
|
|
5
|
-
import {
|
|
5
|
+
import { ParticipantsState } from './participants-state';
|
|
6
|
+
import type { ParticipantFilter } from './participants-state';
|
|
6
7
|
export declare const SINGLE_COLLAB_MODE = "single";
|
|
7
8
|
export declare const MULTI_COLLAB_MODE = "collab";
|
|
8
9
|
/**
|
package/dist/types/types.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import type { JSONDocNode } from '@atlaskit/editor-json-transformer';
|
|
|
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';
|
|
9
|
-
import {
|
|
9
|
+
import type { CatchupEventReason } from './helpers/const';
|
|
10
10
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
11
11
|
export interface CollabEventDisconnectedData {
|
|
12
12
|
reason: 'CLIENT_DISCONNECT' | 'SERVER_DISCONNECT' | 'SOCKET_CLOSED' | 'SOCKET_ERROR' | 'SOCKET_TIMEOUT' | 'UNKNOWN_DISCONNECT';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Emitter } from './emitter';
|
|
2
2
|
import type { Config, ChannelEvent, Catchupv2Response, ReconcileResponse, GenerateDiffStepsResponseBody } from './types';
|
|
3
|
-
import {
|
|
3
|
+
import type { CatchupEventReason } from './helpers/const';
|
|
4
4
|
import type { Socket } from 'socket.io-client';
|
|
5
5
|
import type AnalyticsHelper from './analytics/analytics-helper';
|
|
6
6
|
import type { Metadata } from '@atlaskit/editor-common/collab';
|
|
@@ -8,8 +8,8 @@ import type { MetadataService } from '../metadata/metadata-service';
|
|
|
8
8
|
import { CatchupEventReason } from '../helpers/const';
|
|
9
9
|
import type AnalyticsHelper from '../analytics/analytics-helper';
|
|
10
10
|
import type { InternalError } from '../errors/internal-errors';
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
11
|
+
import type { ParticipantsService } from '../participants/participants-service';
|
|
12
|
+
import type { DocumentServiceInterface } from './interface-document-service';
|
|
13
13
|
import type { GetResolvedEditorStateReason } from '@atlaskit/editor-common/types';
|
|
14
14
|
import type { ADFEntity } from '@atlaskit/adf-utils/types';
|
|
15
15
|
import type { DebouncedFunc } from 'lodash';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { Step as ProseMirrorStep } from '@atlaskit/editor-prosemirror/transform';
|
|
2
|
+
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
import type { ConflictChanges } from '@atlaskit/editor-common/collab';
|
|
4
|
-
import {
|
|
4
|
+
import type { Rebaseable } from '@atlaskit/prosemirror-collab';
|
|
5
5
|
interface Options {
|
|
6
6
|
localSteps: readonly Rebaseable[];
|
|
7
7
|
remoteSteps: ProseMirrorStep[];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ADFEntity } from '@atlaskit/adf-utils/types';
|
|
2
2
|
import type { ProductInformation } from '../types';
|
|
3
3
|
import type { Step as ProseMirrorStep } from '@atlaskit/editor-prosemirror/transform';
|
|
4
4
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
5
5
|
import type { StepJson } from '@atlaskit/editor-common/collab';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import type { JSONDocNode } from '@atlaskit/editor-json-transformer';
|
|
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;
|
|
10
10
|
export declare function sleep(ms: number): Promise<any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ProviderParticipant } from '@atlaskit/editor-common/collab';
|
|
2
2
|
import type { PresencePayload } from '../types';
|
|
3
|
-
import {
|
|
3
|
+
import type { ParticipantsState } from './participants-state';
|
|
4
4
|
export declare const PARTICIPANT_UPDATE_INTERVAL: number;
|
|
5
5
|
export type ParticipantsMap = Map<string, ProviderParticipant>;
|
|
6
6
|
type UserType = Pick<ProviderParticipant, 'name' | 'avatar' | 'userId' | 'email' | 'isGuest'>;
|
|
@@ -2,7 +2,8 @@ import type { CollabEventPresenceData, CollabTelepointerPayload, CollabPresenceA
|
|
|
2
2
|
import type AnalyticsHelper from '../analytics/analytics-helper';
|
|
3
3
|
import type { CollabEventDisconnectedData, ChannelEvent, PresenceData, PresencePayload, TelepointerPayload, FetchAnonymousAsset } from '../types';
|
|
4
4
|
import type { BatchProps, GetUserType } from './participants-helper';
|
|
5
|
-
import {
|
|
5
|
+
import { ParticipantsState } from './participants-state';
|
|
6
|
+
import type { ParticipantFilter } from './participants-state';
|
|
6
7
|
export declare const SINGLE_COLLAB_MODE = "single";
|
|
7
8
|
export declare const MULTI_COLLAB_MODE = "collab";
|
|
8
9
|
/**
|
|
@@ -6,7 +6,7 @@ import type { JSONDocNode } from '@atlaskit/editor-json-transformer';
|
|
|
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';
|
|
9
|
-
import {
|
|
9
|
+
import type { CatchupEventReason } from './helpers/const';
|
|
10
10
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
11
11
|
export interface CollabEventDisconnectedData {
|
|
12
12
|
reason: 'CLIENT_DISCONNECT' | 'SERVER_DISCONNECT' | 'SOCKET_CLOSED' | 'SOCKET_ERROR' | 'SOCKET_TIMEOUT' | 'UNKNOWN_DISCONNECT';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/collab-provider",
|
|
3
|
-
"version": "16.1.
|
|
3
|
+
"version": "16.1.11",
|
|
4
4
|
"description": "A provider for collaborative editing.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
38
38
|
"@atlaskit/prosemirror-collab": "^0.22.0",
|
|
39
39
|
"@atlaskit/react-ufo": "^5.5.0",
|
|
40
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
40
|
+
"@atlaskit/tmp-editor-statsig": "^47.0.0",
|
|
41
41
|
"@atlaskit/ufo": "^0.4.0",
|
|
42
42
|
"@atlaskit/util-service-support": "^6.3.0",
|
|
43
43
|
"@babel/runtime": "^7.0.0",
|
|
@@ -73,6 +73,6 @@
|
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
|
-
"@atlaskit/editor-common": "^112.
|
|
76
|
+
"@atlaskit/editor-common": "^112.10.0"
|
|
77
77
|
}
|
|
78
78
|
}
|