@atlaskit/editor-plugin-collab-edit 4.1.7 → 4.2.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 CHANGED
@@ -1,5 +1,16 @@
1
1
  # @atlaskit/editor-plugin-collab-edit
2
2
 
3
+ ## 4.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`72f94befc61f2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/72f94befc61f2) -
8
+ replace method-style signatures with function-style signatures
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
3
14
  ## 4.1.7
4
15
 
5
16
  ### Patch Changes
@@ -10,5 +10,5 @@ export declare class Participants implements ReadOnlyParticipants {
10
10
  toArray(): CollabParticipant[];
11
11
  get(sessionId: string): CollabParticipant | undefined;
12
12
  size(): number;
13
- eq(other: Participants): boolean;
13
+ eq(other: ReadOnlyParticipants): boolean;
14
14
  }
@@ -9,9 +9,9 @@ export type PrivateCollabEditOptions = CollabEditOptions & {
9
9
  export type ProviderCallback = <ReturnType>(codeToExecute: (provider: CollabEditProvider) => ReturnType | undefined, onError?: (err: Error) => void) => Promise<ReturnType | undefined> | undefined;
10
10
  export type ProviderBuilder = (collabEditProviderPromise: Promise<CollabEditProvider>) => ProviderCallback;
11
11
  export interface ReadOnlyParticipants {
12
- get(sessionId: string): CollabParticipant | undefined;
13
- toArray(): ReadonlyArray<CollabParticipant>;
14
- eq(other: ReadOnlyParticipants): boolean;
12
+ get: (sessionId: string) => CollabParticipant | undefined;
13
+ toArray: () => ReadonlyArray<CollabParticipant>;
14
+ eq: (other: ReadOnlyParticipants) => boolean;
15
15
  }
16
16
  export type CollabInitializedMetadata = {
17
17
  collabInitialisedAt: null | number;
@@ -10,5 +10,5 @@ export declare class Participants implements ReadOnlyParticipants {
10
10
  toArray(): CollabParticipant[];
11
11
  get(sessionId: string): CollabParticipant | undefined;
12
12
  size(): number;
13
- eq(other: Participants): boolean;
13
+ eq(other: ReadOnlyParticipants): boolean;
14
14
  }
@@ -9,9 +9,9 @@ export type PrivateCollabEditOptions = CollabEditOptions & {
9
9
  export type ProviderCallback = <ReturnType>(codeToExecute: (provider: CollabEditProvider) => ReturnType | undefined, onError?: (err: Error) => void) => Promise<ReturnType | undefined> | undefined;
10
10
  export type ProviderBuilder = (collabEditProviderPromise: Promise<CollabEditProvider>) => ProviderCallback;
11
11
  export interface ReadOnlyParticipants {
12
- get(sessionId: string): CollabParticipant | undefined;
13
- toArray(): ReadonlyArray<CollabParticipant>;
14
- eq(other: ReadOnlyParticipants): boolean;
12
+ get: (sessionId: string) => CollabParticipant | undefined;
13
+ toArray: () => ReadonlyArray<CollabParticipant>;
14
+ eq: (other: ReadOnlyParticipants) => boolean;
15
15
  }
16
16
  export type CollabInitializedMetadata = {
17
17
  collabInitialisedAt: null | number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-collab-edit",
3
- "version": "4.1.7",
3
+ "version": "4.2.0",
4
4
  "description": "Collab Edit plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,7 +32,7 @@
32
32
  "dependencies": {
33
33
  "@atlaskit/adf-schema": "^50.2.1",
34
34
  "@atlaskit/custom-steps": "^0.11.0",
35
- "@atlaskit/editor-json-transformer": "^8.26.0",
35
+ "@atlaskit/editor-json-transformer": "^8.27.0",
36
36
  "@atlaskit/editor-plugin-analytics": "^3.0.0",
37
37
  "@atlaskit/editor-plugin-connectivity": "^3.1.0",
38
38
  "@atlaskit/editor-plugin-editor-viewmode": "^5.0.0",