@articollab/tiptap 0.0.0-stage → 0.12.0-beta.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/LICENSE +21 -0
- package/README.md +6 -2
- package/dist/index.d.ts +50 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +89 -0
- package/dist/index.js.map +1 -0
- package/package.json +61 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Michael Wang
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @articollab/tiptap
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Tiptap extension for Articollab Text.
|
|
4
|
+
|
|
5
|
+
[Read the Tiptap guide](https://eastsun5566.github.io/articollab/#/tiptap).
|
|
6
|
+
|
|
7
|
+
MIT.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Extension } from "@tiptap/core";
|
|
2
|
+
import type { UndoManager } from "@articollab/core";
|
|
3
|
+
import { type RemoteSelectionsOptions, type TextMapping } from "@articollab/prosemirror";
|
|
4
|
+
export { basicMapping, isComposing, remoteSelections, resolveSelection, selectionCursors, setRemoteSelections, textToDoc, type CursorSelection, type MarkMapping, type RemoteSelection, type RemoteSelectionsOptions, type RemoteSelectionStatus, type TextMapping, type TextPath, } from "@articollab/prosemirror";
|
|
5
|
+
/** The nodes and marks of Tiptap's StarterKit. */
|
|
6
|
+
export declare const starterKitMapping: TextMapping;
|
|
7
|
+
/** The parts of a client document the extension uses; any `ClientDocument` has them. */
|
|
8
|
+
export interface CollaborativeDocument {
|
|
9
|
+
readonly state: object;
|
|
10
|
+
transact(callback: () => void): unknown;
|
|
11
|
+
readonly replayConflict: unknown;
|
|
12
|
+
}
|
|
13
|
+
export interface ArticollabTextOptions {
|
|
14
|
+
/** The writer's document; required. */
|
|
15
|
+
document: CollaborativeDocument | null;
|
|
16
|
+
/** The path of the Text the editor shows; required. */
|
|
17
|
+
path: string;
|
|
18
|
+
/** This writer's undo manager, for the `undo` and `redo` commands and their keys. */
|
|
19
|
+
history: UndoManager | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Which nodes and marks stand for the Text; `starterKitMapping` by default. A mapping you pass
|
|
22
|
+
* replaces it whole: Tiptap merges options, so the default is applied only when none is given.
|
|
23
|
+
*/
|
|
24
|
+
mapping: TextMapping | undefined;
|
|
25
|
+
/** Whether local edits may be written now; an edit is refused while it returns false. */
|
|
26
|
+
canEdit: (() => boolean) | undefined;
|
|
27
|
+
/** Called with an error that stopped the extension; local edits are refused from then on. */
|
|
28
|
+
onError: ((error: unknown) => void) | undefined;
|
|
29
|
+
/** Called with the text of a composition that could not be written, for the user to copy. */
|
|
30
|
+
onUnsentComposition: ((text: string) => void) | undefined;
|
|
31
|
+
/** How to draw other writers' selections, or `false` to leave them out. */
|
|
32
|
+
remoteSelections: RemoteSelectionsOptions | false;
|
|
33
|
+
}
|
|
34
|
+
declare module "@tiptap/core" {
|
|
35
|
+
interface Commands<ReturnType> {
|
|
36
|
+
articollabText: {
|
|
37
|
+
/** Undoes this writer's latest change to the document. */
|
|
38
|
+
undo: () => ReturnType;
|
|
39
|
+
/** Redoes the latest undone change. */
|
|
40
|
+
redo: () => ReturnType;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Keeps a Tiptap editor and an Articollab Text in step, with the `textSync` plugin. Turn off
|
|
46
|
+
* StarterKit's `undoRedo` and `trailingNode`, and pass an undo manager as `history` for the
|
|
47
|
+
* `undo` and `redo` commands.
|
|
48
|
+
*/
|
|
49
|
+
export declare const ArticollabText: Extension<ArticollabTextOptions, any>;
|
|
50
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAqB,MAAM,cAAc,CAAC;AAG5D,OAAO,KAAK,EAA0C,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC5F,OAAO,EACmC,KAAK,uBAAuB,EAAE,KAAK,WAAW,EACvF,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACL,YAAY,EACZ,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,SAAS,EACT,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,WAAW,E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
|
+
import { redo, remoteSelections, textSync, undo, } from "@articollab/prosemirror";
|
|
3
|
+
export { basicMapping, isComposing, remoteSelections, resolveSelection, selectionCursors, setRemoteSelections, textToDoc, } from "@articollab/prosemirror";
|
|
4
|
+
/** The nodes and marks of Tiptap's StarterKit. */
|
|
5
|
+
export const starterKitMapping = Object.freeze({
|
|
6
|
+
paragraph: "paragraph",
|
|
7
|
+
marks: Object.freeze({
|
|
8
|
+
bold: Object.freeze({ mark: "bold" }),
|
|
9
|
+
italic: Object.freeze({ mark: "italic" }),
|
|
10
|
+
strike: Object.freeze({ mark: "strike" }),
|
|
11
|
+
underline: Object.freeze({ mark: "underline" }),
|
|
12
|
+
code: Object.freeze({ mark: "code" }),
|
|
13
|
+
link: Object.freeze({
|
|
14
|
+
mark: "link",
|
|
15
|
+
value: (mark) => String(mark.attrs.href),
|
|
16
|
+
attrs: (value) => ({ href: typeof value === "string" ? value : JSON.stringify(value) }),
|
|
17
|
+
}),
|
|
18
|
+
}),
|
|
19
|
+
heading: Object.freeze({ node: "heading", levels: Object.freeze([1, 2, 3, 4, 5, 6]) }),
|
|
20
|
+
codeBlock: Object.freeze({ node: "codeBlock", language: "language" }),
|
|
21
|
+
blockquote: Object.freeze({ node: "blockquote" }),
|
|
22
|
+
lists: Object.freeze({ item: "listItem", bullet: "bulletList", ordered: "orderedList" }),
|
|
23
|
+
lineBreak: Object.freeze({ node: "hardBreak" }),
|
|
24
|
+
});
|
|
25
|
+
/** Extensions that cannot share an editor with this one, and why. */
|
|
26
|
+
const conflicts = {
|
|
27
|
+
undoRedo: "its undo would take back other writers' changes",
|
|
28
|
+
trailingNode: "each writer would add its own empty paragraph at the end",
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Keeps a Tiptap editor and an Articollab Text in step, with the `textSync` plugin. Turn off
|
|
32
|
+
* StarterKit's `undoRedo` and `trailingNode`, and pass an undo manager as `history` for the
|
|
33
|
+
* `undo` and `redo` commands.
|
|
34
|
+
*/
|
|
35
|
+
export const ArticollabText = Extension.create({
|
|
36
|
+
name: "articollabText",
|
|
37
|
+
addOptions() {
|
|
38
|
+
return {
|
|
39
|
+
document: null, path: "", history: undefined, mapping: undefined,
|
|
40
|
+
canEdit: undefined, onError: undefined, onUnsentComposition: undefined, remoteSelections: {},
|
|
41
|
+
};
|
|
42
|
+
},
|
|
43
|
+
onBeforeCreate() {
|
|
44
|
+
for (const { name } of this.editor.extensionManager.extensions) {
|
|
45
|
+
const reason = conflicts[name];
|
|
46
|
+
if (reason !== undefined) {
|
|
47
|
+
throw new TypeError(`Turn off the ${name} extension to use articollabText, such as with ` +
|
|
48
|
+
`StarterKit.configure({ undoRedo: false, trailingNode: false }): ${reason}`);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
addProseMirrorPlugins() {
|
|
53
|
+
const { document, path, history, mapping, canEdit, onError, onUnsentComposition } = this.options;
|
|
54
|
+
if (document === null)
|
|
55
|
+
throw new TypeError("articollabText needs a document");
|
|
56
|
+
// oxlint-disable-next-line typescript/no-unsafe-type-assertion -- textSync checks the path against the document's own state.
|
|
57
|
+
const doc = document;
|
|
58
|
+
// oxlint-disable-next-line typescript/no-unsafe-type-assertion -- As above: a wide schema has no static Text paths.
|
|
59
|
+
const sync = textSync(doc, path, {
|
|
60
|
+
mapping: mapping ?? starterKitMapping,
|
|
61
|
+
...(history === undefined ? {} : { history }),
|
|
62
|
+
...(canEdit === undefined ? {} : { canEdit }),
|
|
63
|
+
...(onError === undefined ? {} : { onError }),
|
|
64
|
+
...(onUnsentComposition === undefined ? {} : { onUnsentComposition }),
|
|
65
|
+
});
|
|
66
|
+
return this.options.remoteSelections === false ? [sync] : [sync, remoteSelections(this.options.remoteSelections)];
|
|
67
|
+
},
|
|
68
|
+
addCommands() {
|
|
69
|
+
// The Text's change reaches the editor as a transaction of its own, so the command's is not dispatched.
|
|
70
|
+
const run = (command) => () => ({ tr, state, dispatch, view }) => {
|
|
71
|
+
const history = this.options.history;
|
|
72
|
+
if (history === undefined)
|
|
73
|
+
return false;
|
|
74
|
+
const done = command(history)(state, dispatch, view);
|
|
75
|
+
if (done && dispatch !== undefined)
|
|
76
|
+
tr.setMeta("preventDispatch", true);
|
|
77
|
+
return done;
|
|
78
|
+
};
|
|
79
|
+
return { undo: run(undo), redo: run(redo) };
|
|
80
|
+
},
|
|
81
|
+
addKeyboardShortcuts() {
|
|
82
|
+
return {
|
|
83
|
+
"Mod-z": () => this.editor.commands.undo(),
|
|
84
|
+
"Shift-Mod-z": () => this.editor.commands.redo(),
|
|
85
|
+
"Mod-y": () => this.editor.commands.redo(),
|
|
86
|
+
};
|
|
87
|
+
},
|
|
88
|
+
});
|
|
89
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAqB,MAAM,cAAc,CAAC;AAI5D,OAAO,EACL,IAAI,EAAE,gBAAgB,EAAE,QAAQ,EAAE,IAAI,GACvC,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACL,YAAY,EACZ,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,SAAS,GAQV,MAAM,yBAAyB,CAAC;AAEjC,kDAAkD;AAClD,MAAM,CAAC,MAAM,iBAAiB,GAAgB,MAAM,CAAC,MAAM,CAAC;IAC1D,SAAS,EAAE,WAAW;IACtB,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC;QACnB,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;QACrC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;QACzC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;QACzC,SAAS,EAAE,MAAM,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CAAC,IAAI,EAAE;YAC1C,aAAa,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE;YAChD,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE;SAC3C,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,64 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@articollab/tiptap",
|
|
3
|
-
"version": "0.0.0
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.12.0-beta.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"registry": "https://registry.npmjs.org/",
|
|
7
|
+
"access": "public",
|
|
8
|
+
"tag": "beta"
|
|
9
|
+
},
|
|
10
|
+
"description": "Tiptap extension for Articollab Text.",
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/EastSun5566/articollab.git",
|
|
14
|
+
"directory": "packages/tiptap"
|
|
15
|
+
},
|
|
16
|
+
"homepage": "https://eastsun5566.github.io/articollab/",
|
|
17
|
+
"bugs": {
|
|
18
|
+
"url": "https://github.com/EastSun5566/articollab/issues"
|
|
19
|
+
},
|
|
20
|
+
"keywords": [
|
|
21
|
+
"collaboration",
|
|
22
|
+
"realtime",
|
|
23
|
+
"sync",
|
|
24
|
+
"local-first",
|
|
25
|
+
"server-reconciliation"
|
|
26
|
+
],
|
|
27
|
+
"author": {
|
|
28
|
+
"name": "EastSun5566",
|
|
29
|
+
"email": "hi@eastsun.me",
|
|
30
|
+
"url": "https://github.com/EastSun5566"
|
|
31
|
+
},
|
|
32
|
+
"license": "MIT",
|
|
33
|
+
"type": "module",
|
|
34
|
+
"engines": {
|
|
35
|
+
"node": ">=24.0.0"
|
|
36
|
+
},
|
|
37
|
+
"types": "./dist/index.d.ts",
|
|
38
|
+
"files": [
|
|
39
|
+
"dist",
|
|
40
|
+
"README.md",
|
|
41
|
+
"LICENSE"
|
|
42
|
+
],
|
|
43
|
+
"exports": {
|
|
44
|
+
".": {
|
|
45
|
+
"types": "./dist/index.d.ts",
|
|
46
|
+
"import": "./dist/index.js"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"dependencies": {
|
|
50
|
+
"@articollab/core": "0.12.0-beta.0",
|
|
51
|
+
"@articollab/prosemirror": "0.12.0-beta.0"
|
|
52
|
+
},
|
|
53
|
+
"peerDependencies": {
|
|
54
|
+
"@tiptap/core": "^3.0.0",
|
|
55
|
+
"prosemirror-model": "^1.25.0"
|
|
56
|
+
},
|
|
57
|
+
"devDependencies": {
|
|
58
|
+
"@tiptap/core": "^3.35.1",
|
|
59
|
+
"prosemirror-model": "^1.25.13"
|
|
60
|
+
},
|
|
61
|
+
"scripts": {
|
|
62
|
+
"build": "tsc -p tsconfig.build.json"
|
|
63
|
+
}
|
|
6
64
|
}
|