@atlaskit/prosemirror-collab 0.2.0 → 0.2.2

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,17 @@
1
1
  ## 1.3.0 (2022-05-30)
2
2
 
3
+ ## 0.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`a142ba1aa28`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a142ba1aa28) - [ED17172] Bump prosemirror-model to 1.16.0 and prosemirror-view to 1.23.7 and removed work-arounds for fixed issues
8
+
9
+ ## 0.2.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
14
+
3
15
  ## 0.2.0
4
16
 
5
17
  ### Minor Changes
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/prosemirror-collab",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/prosemirror-collab",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/prosemirror-collab",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "sideEffects": false
5
5
  }
@@ -7,7 +7,7 @@ declare class Rebaseable {
7
7
  constructor(step: ProseMirrorStep, inverted: ProseMirrorStep, origin: ProseMirrorTransform);
8
8
  }
9
9
  export declare function rebaseSteps(steps: readonly Rebaseable[], over: readonly ProseMirrorStep[], transform: ProseMirrorTransform): Rebaseable[];
10
- declare type CollabConfig = {
10
+ type CollabConfig = {
11
11
  version?: number;
12
12
  clientID?: number | string | null;
13
13
  };
@@ -0,0 +1,25 @@
1
+ import { type EditorState, Plugin, type Transaction } from 'prosemirror-state';
2
+ import type { Step as ProseMirrorStep, Transform as ProseMirrorTransform } from 'prosemirror-transform';
3
+ declare class Rebaseable {
4
+ readonly step: ProseMirrorStep;
5
+ readonly inverted: ProseMirrorStep;
6
+ readonly origin: ProseMirrorTransform;
7
+ constructor(step: ProseMirrorStep, inverted: ProseMirrorStep, origin: ProseMirrorTransform);
8
+ }
9
+ export declare function rebaseSteps(steps: readonly Rebaseable[], over: readonly ProseMirrorStep[], transform: ProseMirrorTransform): Rebaseable[];
10
+ type CollabConfig = {
11
+ version?: number;
12
+ clientID?: number | string | null;
13
+ };
14
+ export declare function collab(config?: CollabConfig): Plugin;
15
+ export declare function receiveTransaction(state: EditorState, steps: readonly ProseMirrorStep[], clientIDs: readonly (string | number)[], options?: {
16
+ mapSelectionBackward?: boolean;
17
+ }): Transaction<any>;
18
+ export declare function sendableSteps(state: EditorState): {
19
+ version: number;
20
+ steps: readonly ProseMirrorStep[];
21
+ clientID: number | string;
22
+ origins: readonly Transaction[];
23
+ } | null;
24
+ export declare function getVersion(state: EditorState): number;
25
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/prosemirror-collab",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Collaborative editing for ProseMirror - Atlassian Fork",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -12,6 +12,14 @@
12
12
  "module": "dist/esm/index.js",
13
13
  "module:es2019": "dist/es2019/index.js",
14
14
  "types": "dist/types/index.d.ts",
15
+ "typesVersions": {
16
+ ">=4.5 <4.9": {
17
+ "*": [
18
+ "dist/types-ts4.5/*",
19
+ "dist/types-ts4.5/index.d.ts"
20
+ ]
21
+ }
22
+ },
15
23
  "sideEffects": false,
16
24
  "atlaskit:src": "src/index.ts",
17
25
  "atlassian": {
@@ -28,13 +36,13 @@
28
36
  },
29
37
  "devDependencies": {
30
38
  "@atlaskit/adf-schema": "^25.6.0",
31
- "@atlaskit/editor-test-helpers": "^18.2.0",
39
+ "@atlaskit/editor-test-helpers": "^18.3.0",
32
40
  "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
33
41
  "@types/prosemirror-history": "^1.0.1",
34
42
  "@types/prosemirror-model": "^1.11.0",
35
43
  "@types/prosemirror-transform": "^1.1.0",
36
44
  "prosemirror-history": "^1.1.3",
37
- "prosemirror-model": "1.14.3",
45
+ "prosemirror-model": "1.16.0",
38
46
  "prosemirror-transform": "1.3.2"
39
47
  },
40
48
  "techstack": {