@clevertask/scribe 0.1.18 → 0.1.20
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/README.md +29 -1
- package/dist/{BarMenu-C9tCdvyV.js → BarMenu-sZGqMjQr.js} +1 -1
- package/dist/components/Menu/BarMenu.js +1 -1
- package/dist/components/Menu/BubbleMenu.js +2 -2
- package/dist/components/Menu/CalloutBubbleMenu.js +64 -64
- package/dist/components/Menu/LinkBubbleMenu.js +16 -16
- package/dist/components/Menu/Mobile/ListOptionBar.js +1 -1
- package/dist/components/Menu/TableBubbleMenu.js +2 -2
- package/dist/components/Menu/linkBubbleMenuPlugin.js +1 -1
- package/dist/components/Scribe/extension/callout.js +2 -5
- package/dist/components/Scribe/extension/emoji/suggest.js +1 -1
- package/dist/components/Scribe/extension/extension-link.js +1 -1
- package/dist/components/Scribe/extension/extension-markdown-paste.js +2 -2
- package/dist/components/Scribe/extension/extension-selectedText.js +1 -1
- package/dist/components/Scribe/extension/external-link-preview/commands.js +38 -38
- package/dist/components/Scribe/extension/external-link-preview/index.d.ts +1 -2
- package/dist/components/Scribe/extension/external-link-preview/index.d.ts.map +1 -1
- package/dist/components/Scribe/extension/external-link-preview/index.js +20 -113
- package/dist/components/Scribe/extension/external-link-preview/node-view.js +6 -6
- package/dist/components/Scribe/extension/external-link-preview/paste.js +5 -5
- package/dist/components/Scribe/extension/external-link-preview/render-html.js +1 -1
- package/dist/components/Scribe/extension/external-link-preview/schema.d.ts +8 -0
- package/dist/components/Scribe/extension/external-link-preview/schema.d.ts.map +1 -0
- package/dist/components/Scribe/extension/external-link-preview/schema.js +100 -0
- package/dist/components/Scribe/extension/index.d.ts +2 -2
- package/dist/components/Scribe/extension/index.d.ts.map +1 -1
- package/dist/components/Scribe/extension/index.js +1 -1
- package/dist/components/Scribe/extension/resizable-table.js +1 -1
- package/dist/components/Scribe/extension/slashCommand/index.js +32 -2
- package/dist/components/Scribe/extension/slashCommand/renderItems.js +1 -1
- package/dist/components/Scribe/extension/tableOfContents.js +1 -1
- package/dist/components/Scribe/index.js +4 -4
- package/dist/{slashCommand-D35jcSNp.js → dist-Bm6rBIf2.js} +101 -110
- package/dist/{dist-DRPH9MfF.js → dist-BrbZZTdj.js} +21 -9
- package/dist/{dist-CkWsQ5Lj.js → dist-jjH04EIX.js} +585 -798
- package/dist/extension-BNjzWzJi.js +57 -0
- package/dist/{extension-link-yMrg9JOz.js → extension-link-7ta0X4tP.js} +2 -2
- package/dist/{html-to-markdown-CnlA8pb8.js → html-to-markdown-pY8ngCXa.js} +14 -14
- package/dist/main.js +6 -6
- package/dist/{markdown-to-html-BLzYd3Fu.js → markdown-to-html-BSuSwB4B.js} +42 -14
- package/dist/{menus-Dy2dj4QT.js → menus-i0cEakC3.js} +137 -135
- package/dist/{resizable-table-D0mls3aB.js → resizable-table-DFTyMlVu.js} +27 -30
- package/dist/{extension-DOo9QT6U.js → schema-extensions-B-U6SbYg.js} +51922 -51962
- package/dist/schema-extensions.d.ts +20 -0
- package/dist/schema-extensions.d.ts.map +1 -0
- package/dist/schema-extensions.js +2 -0
- package/dist/schema.d.ts +17 -0
- package/dist/schema.d.ts.map +1 -0
- package/dist/schema.js +5 -0
- package/dist/utils/html-to-markdown.js +1 -1
- package/dist/utils/index.js +4 -4
- package/dist/utils/markdown-to-html.js +1 -1
- package/package.json +57 -51
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { AnyExtension } from "@tiptap/core";
|
|
2
|
+
import type { ScribeSchemaExtensionOptions } from "./schema";
|
|
3
|
+
type ScribeSchemaExtensionSet = {
|
|
4
|
+
starterKit: AnyExtension;
|
|
5
|
+
externalLinkPreview: AnyExtension;
|
|
6
|
+
callout: AnyExtension;
|
|
7
|
+
taskList: AnyExtension;
|
|
8
|
+
taskItem: AnyExtension;
|
|
9
|
+
tableKit: AnyExtension;
|
|
10
|
+
table: AnyExtension;
|
|
11
|
+
highlight: AnyExtension;
|
|
12
|
+
link: AnyExtension;
|
|
13
|
+
image: AnyExtension;
|
|
14
|
+
emoji: AnyExtension;
|
|
15
|
+
mathematics: AnyExtension;
|
|
16
|
+
typography: AnyExtension;
|
|
17
|
+
};
|
|
18
|
+
export declare const createScribeSchemaExtensionSet: ({ enableUndoRedo, }?: ScribeSchemaExtensionOptions) => ScribeSchemaExtensionSet;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=schema-extensions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-extensions.d.ts","sourceRoot":"","sources":["../lib/schema-extensions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAcjD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AAE7D,KAAK,wBAAwB,GAAG;IAC9B,UAAU,EAAE,YAAY,CAAC;IACzB,mBAAmB,EAAE,YAAY,CAAC;IAClC,OAAO,EAAE,YAAY,CAAC;IACtB,QAAQ,EAAE,YAAY,CAAC;IACvB,QAAQ,EAAE,YAAY,CAAC;IACvB,QAAQ,EAAE,YAAY,CAAC;IACvB,KAAK,EAAE,YAAY,CAAC;IACpB,SAAS,EAAE,YAAY,CAAC;IACxB,IAAI,EAAE,YAAY,CAAC;IACnB,KAAK,EAAE,YAAY,CAAC;IACpB,KAAK,EAAE,YAAY,CAAC;IACpB,WAAW,EAAE,YAAY,CAAC;IAC1B,UAAU,EAAE,YAAY,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,8BAA8B,yBAExC,4BAA4B,KAAQ,wBAoCrC,CAAC"}
|
package/dist/schema.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Extensions } from "@tiptap/core";
|
|
2
|
+
export type ScribeSchemaExtensionOptions = {
|
|
3
|
+
/**
|
|
4
|
+
* Enables Scribe's built-in undo and redo history. Schema-only consumers can
|
|
5
|
+
* disable it because history does not affect the ProseMirror document model.
|
|
6
|
+
*/
|
|
7
|
+
enableUndoRedo?: boolean;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Build the schema-bearing Scribe extensions without importing Scribe's React
|
|
11
|
+
* editor UI or stylesheet.
|
|
12
|
+
*
|
|
13
|
+
* Consumer-owned document nodes must be appended separately. For example,
|
|
14
|
+
* CleverTask adds its resource-reference node to the returned extension list.
|
|
15
|
+
*/
|
|
16
|
+
export declare const createScribeSchemaExtensions: (options?: ScribeSchemaExtensionOptions) => Extensions;
|
|
17
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../lib/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG/C,MAAM,MAAM,4BAA4B,GAAG;IACzC;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,aAC9B,4BAA4B,KACpC,UAAoE,CAAC"}
|
package/dist/schema.js
ADDED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../html-to-markdown-
|
|
1
|
+
import { t as e } from "../html-to-markdown-pY8ngCXa.js";
|
|
2
2
|
export { e as html2md };
|
package/dist/utils/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as e } from "../dist-
|
|
2
|
-
import { t } from "../html-to-markdown-
|
|
3
|
-
import { t as n } from "../markdown-to-html-
|
|
1
|
+
import { t as e } from "../dist-jjH04EIX.js";
|
|
2
|
+
import { t } from "../html-to-markdown-pY8ngCXa.js";
|
|
3
|
+
import { t as n } from "../markdown-to-html-BSuSwB4B.js";
|
|
4
4
|
import { isInViewport as r } from "./is-in-viewport.js";
|
|
5
5
|
import { convertLegacyMathDelimiters as i } from "./convert-legacy-math-delimiters.js";
|
|
6
|
-
import { t as a } from "../extension-
|
|
6
|
+
import { t as a } from "../extension-BNjzWzJi.js";
|
|
7
7
|
//#region lib/utils/create-scribe-editor.ts
|
|
8
8
|
function o({ content: n = "", editable: r = !1, enableUndoRedo: i, externalLinkPreview: o, onContentChange: s }) {
|
|
9
9
|
return new e({
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../markdown-to-html-
|
|
1
|
+
import { t as e } from "../markdown-to-html-BSuSwB4B.js";
|
|
2
2
|
export { e as md2html };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clevertask/scribe",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.20",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A Radix-based Tiptap rich text editor with a Notion-style block interface for viewing and creating content. Perfect for diverse needs like notes, documents, AI chat, Markdown parsing, and comments.",
|
|
6
6
|
"keywords": [
|
|
@@ -37,6 +37,11 @@
|
|
|
37
37
|
"import": "./dist/main.js",
|
|
38
38
|
"default": "./dist/main.js"
|
|
39
39
|
},
|
|
40
|
+
"./schema": {
|
|
41
|
+
"types": "./dist/schema.d.ts",
|
|
42
|
+
"import": "./dist/schema.js",
|
|
43
|
+
"default": "./dist/schema.js"
|
|
44
|
+
},
|
|
40
45
|
"./styles.css": "./dist/main.css",
|
|
41
46
|
"./dist/main.css": "./dist/main.css"
|
|
42
47
|
},
|
|
@@ -45,15 +50,15 @@
|
|
|
45
50
|
"registry": "https://registry.npmjs.org/"
|
|
46
51
|
},
|
|
47
52
|
"dependencies": {
|
|
48
|
-
"@tiptap/core": "3.30.
|
|
49
|
-
"@tiptap/extension-bubble-menu": "3.30.
|
|
50
|
-
"@tiptap/extension-floating-menu": "3.30.
|
|
51
|
-
"@tiptap/react": "3.30.
|
|
52
|
-
"@tiptap/suggestion": "3.30.
|
|
53
|
+
"@tiptap/core": "3.30.5",
|
|
54
|
+
"@tiptap/extension-bubble-menu": "3.30.5",
|
|
55
|
+
"@tiptap/extension-floating-menu": "3.30.5",
|
|
56
|
+
"@tiptap/react": "3.30.5",
|
|
57
|
+
"@tiptap/suggestion": "3.30.5",
|
|
53
58
|
"clsx": "^2.1.1",
|
|
54
59
|
"dompurify": "^3.4.14",
|
|
55
60
|
"katex": "^0.18.4",
|
|
56
|
-
"marked": "^18.0.
|
|
61
|
+
"marked": "^18.0.11",
|
|
57
62
|
"tippy.js": "^6.3.7",
|
|
58
63
|
"turndown": "^7.2.4"
|
|
59
64
|
},
|
|
@@ -62,55 +67,56 @@
|
|
|
62
67
|
"@radix-ui/themes": "^3.3.0",
|
|
63
68
|
"@testing-library/dom": "^10.4.1",
|
|
64
69
|
"@testing-library/jest-dom": "^7.0.1",
|
|
65
|
-
"@testing-library/react": "^16.3.
|
|
66
|
-
"@tiptap/extension-blockquote": "3.30.
|
|
67
|
-
"@tiptap/extension-bold": "3.30.
|
|
68
|
-
"@tiptap/extension-bullet-list": "3.30.
|
|
69
|
-
"@tiptap/extension-code": "3.30.
|
|
70
|
-
"@tiptap/extension-code-block": "3.30.
|
|
71
|
-
"@tiptap/extension-document": "3.30.
|
|
72
|
-
"@tiptap/extension-dropcursor": "3.30.
|
|
73
|
-
"@tiptap/extension-emoji": "3.30.
|
|
74
|
-
"@tiptap/extension-focus": "3.30.
|
|
75
|
-
"@tiptap/extension-gapcursor": "3.30.
|
|
76
|
-
"@tiptap/extension-hard-break": "3.30.
|
|
77
|
-
"@tiptap/extension-heading": "3.30.
|
|
78
|
-
"@tiptap/extension-highlight": "3.30.
|
|
79
|
-
"@tiptap/extension-horizontal-rule": "3.30.
|
|
80
|
-
"@tiptap/extension-image": "3.30.
|
|
81
|
-
"@tiptap/extension-italic": "3.30.
|
|
82
|
-
"@tiptap/extension-link": "3.30.
|
|
83
|
-
"@tiptap/extension-list": "3.30.
|
|
84
|
-
"@tiptap/extension-list-item": "3.30.
|
|
85
|
-
"@tiptap/extension-list-keymap": "3.30.
|
|
86
|
-
"@tiptap/extension-mathematics": "3.30.
|
|
87
|
-
"@tiptap/extension-ordered-list": "3.30.
|
|
88
|
-
"@tiptap/extension-paragraph": "3.30.
|
|
89
|
-
"@tiptap/extension-placeholder": "3.30.
|
|
90
|
-
"@tiptap/extension-strike": "3.30.
|
|
91
|
-
"@tiptap/extension-table": "3.30.
|
|
92
|
-
"@tiptap/extension-table-cell": "3.30.
|
|
93
|
-
"@tiptap/extension-table-header": "3.30.
|
|
94
|
-
"@tiptap/extension-table-row": "3.30.
|
|
95
|
-
"@tiptap/extension-task-item": "3.30.
|
|
96
|
-
"@tiptap/extension-task-list": "3.30.
|
|
97
|
-
"@tiptap/extension-text": "3.30.
|
|
98
|
-
"@tiptap/extension-typography": "3.30.
|
|
99
|
-
"@tiptap/extension-underline": "3.30.
|
|
100
|
-
"@tiptap/extensions": "3.30.
|
|
101
|
-
"@tiptap/
|
|
102
|
-
"@tiptap/
|
|
70
|
+
"@testing-library/react": "^16.3.3",
|
|
71
|
+
"@tiptap/extension-blockquote": "3.30.5",
|
|
72
|
+
"@tiptap/extension-bold": "3.30.5",
|
|
73
|
+
"@tiptap/extension-bullet-list": "3.30.5",
|
|
74
|
+
"@tiptap/extension-code": "3.30.5",
|
|
75
|
+
"@tiptap/extension-code-block": "3.30.5",
|
|
76
|
+
"@tiptap/extension-document": "3.30.5",
|
|
77
|
+
"@tiptap/extension-dropcursor": "3.30.5",
|
|
78
|
+
"@tiptap/extension-emoji": "3.30.5",
|
|
79
|
+
"@tiptap/extension-focus": "3.30.5",
|
|
80
|
+
"@tiptap/extension-gapcursor": "3.30.5",
|
|
81
|
+
"@tiptap/extension-hard-break": "3.30.5",
|
|
82
|
+
"@tiptap/extension-heading": "3.30.5",
|
|
83
|
+
"@tiptap/extension-highlight": "3.30.5",
|
|
84
|
+
"@tiptap/extension-horizontal-rule": "3.30.5",
|
|
85
|
+
"@tiptap/extension-image": "3.30.5",
|
|
86
|
+
"@tiptap/extension-italic": "3.30.5",
|
|
87
|
+
"@tiptap/extension-link": "3.30.5",
|
|
88
|
+
"@tiptap/extension-list": "3.30.5",
|
|
89
|
+
"@tiptap/extension-list-item": "3.30.5",
|
|
90
|
+
"@tiptap/extension-list-keymap": "3.30.5",
|
|
91
|
+
"@tiptap/extension-mathematics": "3.30.5",
|
|
92
|
+
"@tiptap/extension-ordered-list": "3.30.5",
|
|
93
|
+
"@tiptap/extension-paragraph": "3.30.5",
|
|
94
|
+
"@tiptap/extension-placeholder": "3.30.5",
|
|
95
|
+
"@tiptap/extension-strike": "3.30.5",
|
|
96
|
+
"@tiptap/extension-table": "3.30.5",
|
|
97
|
+
"@tiptap/extension-table-cell": "3.30.5",
|
|
98
|
+
"@tiptap/extension-table-header": "3.30.5",
|
|
99
|
+
"@tiptap/extension-table-row": "3.30.5",
|
|
100
|
+
"@tiptap/extension-task-item": "3.30.5",
|
|
101
|
+
"@tiptap/extension-task-list": "3.30.5",
|
|
102
|
+
"@tiptap/extension-text": "3.30.5",
|
|
103
|
+
"@tiptap/extension-typography": "3.30.5",
|
|
104
|
+
"@tiptap/extension-underline": "3.30.5",
|
|
105
|
+
"@tiptap/extensions": "3.30.5",
|
|
106
|
+
"@tiptap/html": "3.30.5",
|
|
107
|
+
"@tiptap/pm": "3.30.5",
|
|
108
|
+
"@tiptap/starter-kit": "3.30.5",
|
|
103
109
|
"@types/lodash": "^4.17.25",
|
|
104
110
|
"@types/node": "^24.13.3",
|
|
105
111
|
"@types/react": "^19.2.18",
|
|
106
|
-
"@types/react-dom": "^19.2.
|
|
112
|
+
"@types/react-dom": "^19.2.5",
|
|
107
113
|
"@types/turndown": "^5.0.6",
|
|
108
|
-
"@vitejs/plugin-react": "^6.1.
|
|
114
|
+
"@vitejs/plugin-react": "^6.1.1",
|
|
109
115
|
"glob": "^13.0.6",
|
|
110
116
|
"jsdom": "^30.0.1",
|
|
111
117
|
"lodash": "^4.18.1",
|
|
112
|
-
"oxfmt": "^0.
|
|
113
|
-
"oxlint": "^1.
|
|
118
|
+
"oxfmt": "^0.65.0",
|
|
119
|
+
"oxlint": "^1.80.0",
|
|
114
120
|
"typescript": "~7.0.2",
|
|
115
121
|
"vite": "^8.2.2",
|
|
116
122
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
@@ -118,7 +124,7 @@
|
|
|
118
124
|
},
|
|
119
125
|
"peerDependencies": {
|
|
120
126
|
"@radix-ui/themes": ">=3.3.0",
|
|
121
|
-
"@tiptap/pm": "3.30.
|
|
127
|
+
"@tiptap/pm": "3.30.5",
|
|
122
128
|
"react": ">=18.3.1 <20.0.0",
|
|
123
129
|
"react-dom": ">=18.3.1 <20.0.0"
|
|
124
130
|
},
|
|
@@ -130,7 +136,7 @@
|
|
|
130
136
|
"e2e:install": "playwright install --with-deps chromium",
|
|
131
137
|
"e2e:prepare": "pnpm run build && node scripts/prepare-package-consumer.mjs",
|
|
132
138
|
"e2e:serve": "pnpm --dir e2e/consumer exec vite --force --strictPort --host 127.0.0.1 --port 5174",
|
|
133
|
-
"build": "vite build && npm run build:style && tsc -p tsconfig.types.json --noCheck",
|
|
139
|
+
"build": "vite build && npm run build:style && tsc -p tsconfig.types.json --noCheck && node scripts/verify-headless-schema-build.mjs",
|
|
134
140
|
"build:style": "mkdir -p ./dist && cp ./lib/styles/main.css ./dist/main.css",
|
|
135
141
|
"lint": "oxlint . --report-unused-disable-directives --deny-warnings",
|
|
136
142
|
"preview": "vite preview",
|