@clevertask/scribe 0.1.21 → 0.1.23
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 +32 -2
- package/dist/{BarMenu-tPZoiOba.js → BarMenu-DW95OBe1.js} +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/components/Menu/BarMenu.js +1 -1
- package/dist/components/Menu/BubbleMenu.js +2 -2
- package/dist/components/Menu/CalloutBubbleMenu.js +2 -2
- package/dist/components/Menu/LinkBubbleMenu.js +2 -2
- package/dist/components/Menu/Mobile/ListOptionBar.js +1 -1
- package/dist/components/Menu/TableBubbleMenu.js +2 -2
- package/dist/components/Scribe/extension/emoji/suggest.js +1 -1
- package/dist/components/Scribe/extension/extension-markdown-paste.js +1 -1
- package/dist/components/Scribe/extension/external-link-preview/index.js +1 -1
- package/dist/components/Scribe/extension/external-link-preview/node-view.js +1 -1
- 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/slashCommand/renderItems.js +1 -1
- package/dist/components/Scribe/index.js +4 -4
- package/dist/{dist-D31OwZrM.js → dist-_L8dTDsy.js} +1 -1
- package/dist/document-node-capabilities.d.ts +47 -0
- package/dist/document-node-capabilities.d.ts.map +1 -0
- package/dist/document-node-capabilities.js +406 -0
- package/dist/{extension-B-7qHi2u.js → extension-B7i7CZ1Y.js} +2 -1
- package/dist/{html-to-markdown-D7PT8MhP.js → html-to-markdown-CKpceHDk.js} +1 -1
- package/dist/main.js +2 -2
- package/dist/{markdown-to-html-ChfR7P_Y.js → markdown-to-html-zj2j0HLf.js} +18 -15
- package/dist/{menus-DLKcWlVX.js → menus-BhM4ctz2.js} +2 -2
- package/dist/{purify.es-DGv0-Lid.js → purify.es-CpMrJENN.js} +277 -277
- package/dist/{schema-extensions-BMJIwh-u.js → schema-extensions-ggKYCkRf.js} +1300 -1273
- package/dist/schema-extensions.d.ts +1 -0
- package/dist/schema-extensions.d.ts.map +1 -1
- package/dist/schema-extensions.js +1 -1
- package/dist/schema.d.ts +2 -0
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +4 -3
- package/dist/utils/html-to-markdown.js +1 -1
- package/dist/utils/index.js +3 -3
- package/dist/utils/markdown-to-html.js +1 -1
- package/package.json +10 -10
|
@@ -2,6 +2,7 @@ import type { AnyExtension } from "@tiptap/core";
|
|
|
2
2
|
import type { ScribeSchemaExtensionOptions } from "./schema";
|
|
3
3
|
type ScribeSchemaExtensionSet = {
|
|
4
4
|
starterKit: AnyExtension;
|
|
5
|
+
code: AnyExtension;
|
|
5
6
|
externalLinkPreview: AnyExtension;
|
|
6
7
|
callout: AnyExtension;
|
|
7
8
|
taskList: AnyExtension;
|
|
@@ -1 +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;
|
|
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;AAejD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AAE7D,KAAK,wBAAwB,GAAG;IAC9B,UAAU,EAAE,YAAY,CAAC;IACzB,IAAI,EAAE,YAAY,CAAC;IACnB,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;AAMF,eAAO,MAAM,8BAA8B,yBAExC,4BAA4B,KAAQ,wBAsCrC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./schema-extensions-
|
|
1
|
+
import { t as e } from "./schema-extensions-ggKYCkRf.js";
|
|
2
2
|
export { e as createScribeSchemaExtensionSet };
|
package/dist/schema.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { Extensions } from "@tiptap/core";
|
|
2
|
+
export { createScribeDocumentNodeCapabilityManifest, defineScribeDocumentNodeCapability, SCRIBE_DOCUMENT_NODE_CAPABILITY_ROLES, SCRIBE_DOCUMENT_NODE_CONTENT_KINDS, } from "./document-node-capabilities.js";
|
|
3
|
+
export type { ScribeDocumentNodeAttributeShape, ScribeDocumentNodeCapability, ScribeDocumentNodeCapabilityManifest, ScribeDocumentNodeCapabilityRole, ScribeDocumentNodeContentKind, ScribeDocumentNodePotentialOperation, } from "./document-node-capabilities.js";
|
|
2
4
|
export type ScribeSchemaExtensionOptions = {
|
|
3
5
|
/**
|
|
4
6
|
* Enables Scribe's built-in undo and redo history. Schema-only consumers can
|
package/dist/schema.d.ts.map
CHANGED
|
@@ -1 +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"}
|
|
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,OAAO,EACL,0CAA0C,EAC1C,kCAAkC,EAClC,qCAAqC,EACrC,kCAAkC,GACnC,MAAM,iCAAiC,CAAC;AACzC,YAAY,EACV,gCAAgC,EAChC,4BAA4B,EAC5B,oCAAoC,EACpC,gCAAgC,EAChC,6BAA6B,EAC7B,oCAAoC,GACrC,MAAM,iCAAiC,CAAC;AAEzC,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
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { t as e } from "./schema-extensions-
|
|
1
|
+
import { t as e } from "./schema-extensions-ggKYCkRf.js";
|
|
2
|
+
import { SCRIBE_DOCUMENT_NODE_CAPABILITY_ROLES as t, SCRIBE_DOCUMENT_NODE_CONTENT_KINDS as n, createScribeDocumentNodeCapabilityManifest as r, defineScribeDocumentNodeCapability as i } from "./document-node-capabilities.js";
|
|
2
3
|
//#region lib/schema.ts
|
|
3
|
-
var
|
|
4
|
+
var a = (t = {}) => Object.values(e(t));
|
|
4
5
|
//#endregion
|
|
5
|
-
export { t as createScribeSchemaExtensions };
|
|
6
|
+
export { t as SCRIBE_DOCUMENT_NODE_CAPABILITY_ROLES, n as SCRIBE_DOCUMENT_NODE_CONTENT_KINDS, r as createScribeDocumentNodeCapabilityManifest, a as createScribeSchemaExtensions, i as defineScribeDocumentNodeCapability };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../html-to-markdown-
|
|
1
|
+
import { t as e } from "../html-to-markdown-CKpceHDk.js";
|
|
2
2
|
export { e as html2md };
|
package/dist/utils/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as e } from "../dist-ClNucvAM.js";
|
|
2
|
-
import { t } from "../html-to-markdown-
|
|
3
|
-
import { t as n } from "../markdown-to-html-
|
|
2
|
+
import { t } from "../html-to-markdown-CKpceHDk.js";
|
|
3
|
+
import { t as n } from "../markdown-to-html-zj2j0HLf.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-B7i7CZ1Y.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-zj2j0HLf.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.23",
|
|
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": [
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
"@tiptap/react": "3.31.3",
|
|
57
57
|
"@tiptap/suggestion": "3.31.3",
|
|
58
58
|
"clsx": "^2.1.1",
|
|
59
|
-
"dompurify": "^3.4.
|
|
60
|
-
"katex": "^0.18.
|
|
61
|
-
"marked": "^18.0.
|
|
59
|
+
"dompurify": "^3.4.15",
|
|
60
|
+
"katex": "^0.18.7",
|
|
61
|
+
"marked": "^18.0.12",
|
|
62
62
|
"tippy.js": "^6.3.7",
|
|
63
63
|
"turndown": "^7.2.4"
|
|
64
64
|
},
|
|
@@ -107,18 +107,18 @@
|
|
|
107
107
|
"@tiptap/pm": "3.31.3",
|
|
108
108
|
"@tiptap/starter-kit": "3.31.3",
|
|
109
109
|
"@types/lodash": "^4.17.25",
|
|
110
|
-
"@types/node": "^24.13.
|
|
111
|
-
"@types/react": "^19.
|
|
112
|
-
"@types/react-dom": "^19.
|
|
110
|
+
"@types/node": "^24.13.4",
|
|
111
|
+
"@types/react": "^19.3.0",
|
|
112
|
+
"@types/react-dom": "^19.3.0",
|
|
113
113
|
"@types/turndown": "^5.0.6",
|
|
114
114
|
"@vitejs/plugin-react": "^6.1.1",
|
|
115
115
|
"glob": "^13.0.6",
|
|
116
116
|
"jsdom": "^30.0.1",
|
|
117
117
|
"lodash": "^4.18.1",
|
|
118
|
-
"oxfmt": "^0.
|
|
119
|
-
"oxlint": "^1.
|
|
118
|
+
"oxfmt": "^0.67.0",
|
|
119
|
+
"oxlint": "^1.82.0",
|
|
120
120
|
"typescript": "~7.0.2",
|
|
121
|
-
"vite": "^8.
|
|
121
|
+
"vite": "^8.3.0",
|
|
122
122
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
123
123
|
"vitest": "^5.0.0"
|
|
124
124
|
},
|