@clevertask/scribe 0.0.13 → 0.0.14

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.
Files changed (51) hide show
  1. package/dist/assets/index.css +1 -1
  2. package/dist/components/Menu/BarMenu.d.ts +3 -2
  3. package/dist/components/Menu/BarMenu.d.ts.map +1 -0
  4. package/dist/components/Menu/BubbleMenu.d.ts +3 -2
  5. package/dist/components/Menu/BubbleMenu.d.ts.map +1 -0
  6. package/dist/components/Menu/Mobile/ListOptionBar.d.ts +2 -1
  7. package/dist/components/Menu/Mobile/ListOptionBar.d.ts.map +1 -0
  8. package/dist/components/Scribe/extension/emoji/EmojiList.d.ts +2 -1
  9. package/dist/components/Scribe/extension/emoji/EmojiList.d.ts.map +1 -0
  10. package/dist/components/Scribe/extension/emoji/suggest.d.ts +1 -0
  11. package/dist/components/Scribe/extension/emoji/suggest.d.ts.map +1 -0
  12. package/dist/components/Scribe/extension/extension-link.d.ts +2 -1
  13. package/dist/components/Scribe/extension/extension-link.d.ts.map +1 -0
  14. package/dist/components/Scribe/extension/extension-selectedText.d.ts +2 -1
  15. package/dist/components/Scribe/extension/extension-selectedText.d.ts.map +1 -0
  16. package/dist/components/Scribe/extension/index.d.ts +3 -2
  17. package/dist/components/Scribe/extension/index.d.ts.map +1 -0
  18. package/dist/components/Scribe/extension/index.js +1 -1
  19. package/dist/components/Scribe/extension/slashCommand/SlashCommandList.d.ts +3 -2
  20. package/dist/components/Scribe/extension/slashCommand/SlashCommandList.d.ts.map +1 -0
  21. package/dist/components/Scribe/extension/slashCommand/SlashCommandList.js +2 -2
  22. package/dist/components/Scribe/extension/slashCommand/index.d.ts +3 -2
  23. package/dist/components/Scribe/extension/slashCommand/index.d.ts.map +1 -0
  24. package/dist/components/Scribe/extension/slashCommand/items.d.ts +3 -2
  25. package/dist/components/Scribe/extension/slashCommand/items.d.ts.map +1 -0
  26. package/dist/components/Scribe/extension/slashCommand/renderItems.d.ts +2 -1
  27. package/dist/components/Scribe/extension/slashCommand/renderItems.d.ts.map +1 -0
  28. package/dist/components/Scribe/extension/slashCommand/renderItems.js +1 -1
  29. package/dist/components/Scribe/index.d.ts +6 -4
  30. package/dist/components/Scribe/index.d.ts.map +1 -0
  31. package/dist/components/Scribe/index.js +1 -1
  32. package/dist/{index-CWvaDN_2.js → index-DAuPG8ME.js} +5299 -5403
  33. package/dist/main.d.ts +4 -3
  34. package/dist/main.d.ts.map +1 -0
  35. package/dist/{purify.es-DcWaZU6I.js → purify.es-BRDuGiV2.js} +114 -114
  36. package/dist/utils/convert-legacy-math-delimiters.d.ts +1 -0
  37. package/dist/utils/convert-legacy-math-delimiters.d.ts.map +1 -0
  38. package/dist/utils/create-scribe-editor.d.ts +2 -1
  39. package/dist/utils/create-scribe-editor.d.ts.map +1 -0
  40. package/dist/utils/create-scribe-editor.js +1 -1
  41. package/dist/utils/html-to-markdown.d.ts +1 -0
  42. package/dist/utils/html-to-markdown.d.ts.map +1 -0
  43. package/dist/utils/html-to-markdown.js +1 -1
  44. package/dist/utils/index.d.ts +5 -4
  45. package/dist/utils/index.d.ts.map +1 -0
  46. package/dist/utils/is-in-viewport.d.ts +1 -0
  47. package/dist/utils/is-in-viewport.d.ts.map +1 -0
  48. package/dist/utils/markdown-to-html.d.ts +1 -0
  49. package/dist/utils/markdown-to-html.d.ts.map +1 -0
  50. package/dist/utils/markdown-to-html.js +1 -1
  51. package/package.json +14 -17
@@ -1,4 +1,4 @@
1
- import { Editor } from '@tiptap/core';
1
+ import { Editor } from "@tiptap/core";
2
2
  export type CreateEditorOptions = {
3
3
  content?: string;
4
4
  editable?: boolean;
@@ -9,3 +9,4 @@ export type CreateEditorOptions = {
9
9
  }) => void;
10
10
  };
11
11
  export declare function createScribeEditor({ content, editable, onContentChange }: CreateEditorOptions): Editor;
12
+ //# sourceMappingURL=create-scribe-editor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-scribe-editor.d.ts","sourceRoot":"","sources":["../../lib/utils/create-scribe-editor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAItC,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,GAAG,CAAC;QAAC,eAAe,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;CACzG,CAAC;AAEF,wBAAgB,kBAAkB,CAAC,EAAE,OAAY,EAAE,QAAgB,EAAE,eAAe,EAAE,EAAE,mBAAmB,GAAG,MAAM,CAoBnH"}
@@ -2,7 +2,7 @@ import { E as i } from "../index-flsxByQS.js";
2
2
  import { initExtensions as n } from "../components/Scribe/extension/index.js";
3
3
  import { html2md as m } from "./html-to-markdown.js";
4
4
  import "../marked.esm-H7n4rMcO.js";
5
- import "../purify.es-DcWaZU6I.js";
5
+ import "../purify.es-BRDuGiV2.js";
6
6
  function d({ content: r = "", editable: e = !1, onContentChange: o }) {
7
7
  return new i({
8
8
  content: r,
@@ -1 +1,2 @@
1
1
  export declare const html2md: (html: string) => string;
2
+ //# sourceMappingURL=html-to-markdown.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"html-to-markdown.d.ts","sourceRoot":"","sources":["../../lib/utils/html-to-markdown.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,GAAI,MAAM,MAAM,WAkCnC,CAAC"}
@@ -1,4 +1,4 @@
1
- import { p as c } from "../purify.es-DcWaZU6I.js";
1
+ import { p as c } from "../purify.es-BRDuGiV2.js";
2
2
  import { T as i } from "../turndown.browser.es-RmA_HBaI.js";
3
3
  const p = (a) => {
4
4
  const e = new i({
@@ -1,5 +1,6 @@
1
- export * from './html-to-markdown';
2
- export * from './markdown-to-html';
3
- export * from './is-in-viewport';
1
+ export * from "./html-to-markdown";
2
+ export * from "./markdown-to-html";
3
+ export * from "./is-in-viewport";
4
4
  export * from './convert-legacy-math-delimiters';
5
- export * from './create-scribe-editor';
5
+ export * from "./create-scribe-editor";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kCAAkC,CAAC;AACjD,cAAc,wBAAwB,CAAC"}
@@ -1 +1,2 @@
1
1
  export declare const isInViewport: (ele: HTMLElement, container: HTMLElement) => boolean;
2
+ //# sourceMappingURL=is-in-viewport.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-in-viewport.d.ts","sourceRoot":"","sources":["../../lib/utils/is-in-viewport.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,GAAI,KAAK,WAAW,EAAE,WAAW,WAAW,YASpE,CAAC"}
@@ -1 +1,2 @@
1
1
  export declare const md2html: (md: string) => string;
2
+ //# sourceMappingURL=markdown-to-html.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"markdown-to-html.d.ts","sourceRoot":"","sources":["../../lib/utils/markdown-to-html.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,GAAI,IAAI,MAAM,WAA2D,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { m as r } from "../marked.esm-H7n4rMcO.js";
2
- import { p as a } from "../purify.es-DcWaZU6I.js";
2
+ import { p as a } from "../purify.es-BRDuGiV2.js";
3
3
  const p = (m) => a.sanitize(r.parse(m, { async: !1 }));
4
4
  export {
5
5
  p as md2html
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "A Tiptap-based 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.",
4
4
  "author": "CleverTask",
5
5
  "private": false,
6
- "version": "0.0.13",
6
+ "version": "0.0.14",
7
7
  "type": "module",
8
8
  "main": "dist/main.js",
9
9
  "types": "dist/main.d.ts",
@@ -36,30 +36,27 @@
36
36
  "react-dom": ">=18.3.1 <20.0.0"
37
37
  },
38
38
  "devDependencies": {
39
- "@eslint/js": "^9.39.3",
39
+ "@eslint/js": "^9.39.4",
40
40
  "@tailwindcss/typography": "^0.5.19",
41
- "@types/lodash": "^4.17.23",
42
- "@types/node": "^24.10.13",
41
+ "@types/lodash": "^4.17.24",
42
+ "@types/node": "^24.12.0",
43
43
  "@types/react": "^19.2.14",
44
44
  "@types/react-dom": "^19.2.3",
45
45
  "@types/turndown": "^5.0.6",
46
- "@typescript-eslint/eslint-plugin": "^8.56.0",
47
- "@typescript-eslint/parser": "^8.56.0",
48
46
  "@vitejs/plugin-react": "^5.1.4",
49
- "autoprefixer": "^10.4.24",
50
- "eslint": "^9.39.3",
47
+ "autoprefixer": "^10.4.27",
48
+ "eslint": "^9.39.4",
51
49
  "eslint-plugin-react-hooks": "^7.0.1",
52
- "eslint-plugin-react-refresh": "^0.5.0",
50
+ "eslint-plugin-react-refresh": "^0.5.2",
53
51
  "glob": "^13.0.6",
54
- "globals": "^17.3.0",
52
+ "globals": "^17.4.0",
55
53
  "lodash": "^4.17.23",
56
- "postcss": "^8.5.6",
54
+ "postcss": "^8.5.8",
57
55
  "postcss-cli": "^11.0.1",
58
56
  "prettier": "3.4.2",
59
57
  "tailwindcss": "^3.4.19",
60
58
  "typescript": "~5.9.3",
61
- "typescript-eslint": "^8.56.0",
62
- "unplugin-dts": "1.0.0-beta.6",
59
+ "typescript-eslint": "^8.57.0",
63
60
  "vite": "^7.3.1",
64
61
  "vite-plugin-lib-inject-css": "^2.2.2"
65
62
  },
@@ -75,7 +72,7 @@
75
72
  "@tiptap/extension-highlight": "^2.27.2",
76
73
  "@tiptap/extension-image": "^2.27.2",
77
74
  "@tiptap/extension-link": "^2.27.2",
78
- "@tiptap/extension-mathematics": "^3.20.0",
75
+ "@tiptap/extension-mathematics": "^3.20.1",
79
76
  "@tiptap/extension-placeholder": "^2.27.2",
80
77
  "@tiptap/extension-table": "^2.27.2",
81
78
  "@tiptap/extension-table-cell": "^2.27.2",
@@ -89,15 +86,15 @@
89
86
  "@tiptap/starter-kit": "^2.27.2",
90
87
  "@tiptap/suggestion": "^2.27.2",
91
88
  "clsx": "^2.1.1",
92
- "dompurify": "^3.3.1",
93
- "katex": "^0.16.28",
89
+ "dompurify": "^3.3.2",
90
+ "katex": "^0.16.38",
94
91
  "marked": "^15.0.12",
95
92
  "tippy.js": "^6.3.7",
96
93
  "turndown": "^7.2.2"
97
94
  },
98
95
  "scripts": {
99
96
  "dev": "vite",
100
- "build": "vite build && npm run build:style",
97
+ "build": "vite build && npm run build:style && tsc -p tsconfig.types.json --noCheck",
101
98
  "build:style": "postcss ./lib/styles/main.css -o ./dist/main.css",
102
99
  "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
103
100
  "preview": "vite preview",