@clevertask/scribe 0.1.25 → 0.1.26

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 (30) hide show
  1. package/dist/{BarMenu-CP5BJhc-.js → BarMenu-BGWT4Oyk.js} +1 -1
  2. package/dist/assets/index.css +1 -1
  3. package/dist/components/Menu/BarMenu.js +1 -1
  4. package/dist/components/Menu/BubbleMenu.js +2 -2
  5. package/dist/components/Menu/CalloutBubbleMenu.js +2 -2
  6. package/dist/components/Menu/LinkBubbleMenu.js +2 -2
  7. package/dist/components/Menu/Mobile/ListOptionBar.js +1 -1
  8. package/dist/components/Menu/TableBubbleMenu.js +2 -2
  9. package/dist/components/Scribe/extension/emoji/suggest.js +2 -2
  10. package/dist/components/Scribe/extension/extension-markdown-paste.js +1 -1
  11. package/dist/components/Scribe/extension/external-link-preview/index.js +1 -1
  12. package/dist/components/Scribe/extension/external-link-preview/node-view.js +1 -1
  13. package/dist/components/Scribe/extension/index.js +1 -1
  14. package/dist/components/Scribe/extension/slashCommand/renderItems.js +2 -2
  15. package/dist/components/Scribe/index.js +4 -4
  16. package/dist/{dist-Cwbl2Okw.js → dist-BiognBi4.js} +2 -1
  17. package/dist/{extension-9Oc-QD39.js → extension-BFPlsViw.js} +1 -1
  18. package/dist/{html-to-markdown-CKpceHDk.js → html-to-markdown-BpR-7GtJ.js} +1 -1
  19. package/dist/main.js +2 -2
  20. package/dist/{markdown-to-html-zj2j0HLf.js → markdown-to-html-BoK5O_j-.js} +183 -143
  21. package/dist/{menus-B0uyLVhs.js → menus-BDXjZsFU.js} +1 -1
  22. package/dist/{purify.es-CpMrJENN.js → purify.es-q6CUdJQi.js} +251 -190
  23. package/dist/{schema-extensions-LzyMpyWW.js → schema-extensions-BryyErmk.js} +2 -2
  24. package/dist/schema-extensions.js +1 -1
  25. package/dist/schema.js +1 -1
  26. package/dist/{tippy.esm-8vSV0zL7.js → tippy.esm-MjWnmeEn.js} +0 -3
  27. package/dist/utils/html-to-markdown.js +1 -1
  28. package/dist/utils/index.js +3 -3
  29. package/dist/utils/markdown-to-html.js +1 -1
  30. package/package.json +11 -11
@@ -49099,7 +49099,7 @@ function ja(e, t, n) {
49099
49099
  }
49100
49100
  e.consume();
49101
49101
  } else if (C === "\\end") {
49102
- b(), m.length === 1 && S.type === "styling" && S.body.length === 1 && S.body[0].type === "ordgroup" && S.body[0].body.length === 0 && (h.length > 1 || !u) && !Array.isArray(v?.[v.length - 1]) && h.pop(), _.length < h.length + 1 && _.push([]);
49102
+ b(), m.length === 1 && S.type === "styling" && S.body.length === 1 && S.body[0].type === "ordgroup" && S.body[0].body.length === 0 && (h.length > 1 || !u) && !Array.isArray(v?.[v.length - 1]) && !(c && v?.[v.length - 1] === !0) && h.pop(), _.length < h.length + 1 && _.push([]);
49103
49103
  break;
49104
49104
  } else if (C === "\\\\") {
49105
49105
  e.consume();
@@ -52801,7 +52801,7 @@ var Ko = function(e, t) {
52801
52801
  return Jo(t, e, n);
52802
52802
  }
52803
52803
  }, Xo = {
52804
- version: "0.18.7",
52804
+ version: "0.18.9",
52805
52805
  render: Go,
52806
52806
  renderToString: Ko,
52807
52807
  ParseError: T,
@@ -1,2 +1,2 @@
1
- import { t as e } from "./schema-extensions-LzyMpyWW.js";
1
+ import { t as e } from "./schema-extensions-BryyErmk.js";
2
2
  export { e as createScribeSchemaExtensionSet };
package/dist/schema.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { ScribeTableTransformError as e, applyScribeTableTransform as t } from "./table-transforms.js";
2
- import { t as n } from "./schema-extensions-LzyMpyWW.js";
2
+ import { t as n } from "./schema-extensions-BryyErmk.js";
3
3
  import { SCRIBE_DOCUMENT_NODE_CAPABILITY_ROLES as r, SCRIBE_DOCUMENT_NODE_CONTENT_KINDS as i, createScribeDocumentNodeCapabilityManifest as a, defineScribeDocumentNodeCapability as o } from "./document-node-capabilities.js";
4
4
  //#region lib/schema.ts
5
5
  var s = (e = {}) => Object.values(n(e));
@@ -1600,7 +1600,6 @@ function on(e, t) {
1600
1600
  clearTimeout(r), clearTimeout(i), cancelAnimationFrame(a);
1601
1601
  }
1602
1602
  function pe(t) {
1603
- /* istanbul ignore else */
1604
1603
  if (process.env.NODE_ENV !== "production" && Q(y.state.isDestroyed, Ft("setProps")), !y.state.isDestroyed) {
1605
1604
  N("onBeforeUpdate", [y, t]), G();
1606
1605
  var n = y.props, r = Jt(e, Object.assign({}, n, gt(t), { ignoreAttributes: !0 }));
@@ -1653,7 +1652,6 @@ function on(e, t) {
1653
1652
  process.env.NODE_ENV !== "production" && Q(y.state.isDestroyed, Ft("hideWithInteractivity")), k().addEventListener("mousemove", m), ft(rn, m), m(e);
1654
1653
  }
1655
1654
  function X() {
1656
- /* istanbul ignore else */
1657
1655
  process.env.NODE_ENV !== "production" && Q(y.state.isDestroyed, Ft("unmount")), y.state.isVisible && y.hide(), y.state.isMounted && (se(), q().forEach(function(e) {
1658
1656
  e._tippy.unmount();
1659
1657
  }), x.parentNode && x.parentNode.removeChild(x), an = an.filter(function(e) {
@@ -1661,7 +1659,6 @@ function on(e, t) {
1661
1659
  }), y.state.isMounted = !1, N("onHidden", [y]));
1662
1660
  }
1663
1661
  function _e() {
1664
- /* istanbul ignore else */
1665
1662
  process.env.NODE_ENV !== "production" && Q(y.state.isDestroyed, Ft("destroy")), !y.state.isDestroyed && (y.clearDelayTimeouts(), y.unmount(), G(), delete e._tippy, y.state.isDestroyed = !0, N("onDestroy", [y]));
1666
1663
  }
1667
1664
  }
@@ -1,2 +1,2 @@
1
- import { t as e } from "../html-to-markdown-CKpceHDk.js";
1
+ import { t as e } from "../html-to-markdown-BpR-7GtJ.js";
2
2
  export { e as html2md };
@@ -1,9 +1,9 @@
1
1
  import { t as e } from "../dist-xjmWZ-oh.js";
2
- import { t } from "../html-to-markdown-CKpceHDk.js";
3
- import { t as n } from "../markdown-to-html-zj2j0HLf.js";
2
+ import { t } from "../html-to-markdown-BpR-7GtJ.js";
3
+ import { t as n } from "../markdown-to-html-BoK5O_j-.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-9Oc-QD39.js";
6
+ import { t as a } from "../extension-BFPlsViw.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-zj2j0HLf.js";
1
+ import { t as e } from "../markdown-to-html-BoK5O_j-.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.25",
3
+ "version": "0.1.26",
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,16 +56,16 @@
56
56
  "@tiptap/react": "3.31.3",
57
57
  "@tiptap/suggestion": "3.31.3",
58
58
  "clsx": "^2.1.1",
59
- "dompurify": "^3.4.15",
60
- "katex": "^0.18.7",
61
- "marked": "^18.0.12",
59
+ "dompurify": "^3.4.16",
60
+ "katex": "^0.18.9",
61
+ "marked": "^18.0.14",
62
62
  "tippy.js": "^6.3.7",
63
63
  "turndown": "^7.2.4"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@playwright/test": "^1.63.0",
67
67
  "@radix-ui/themes": "^3.3.0",
68
- "@testing-library/dom": "^10.4.1",
68
+ "@testing-library/dom": "^10.4.2",
69
69
  "@testing-library/jest-dom": "^7.0.1",
70
70
  "@testing-library/react": "^16.3.3",
71
71
  "@tiptap/extension-blockquote": "3.31.3",
@@ -107,20 +107,20 @@
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.4",
110
+ "@types/node": "^24.19.0",
111
111
  "@types/react": "^19.3.0",
112
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
- "jsdom": "^30.0.1",
116
+ "jsdom": "^30.1.1",
117
117
  "lodash": "^4.18.1",
118
- "oxfmt": "^0.67.0",
119
- "oxlint": "^1.82.0",
118
+ "oxfmt": "^0.70.0",
119
+ "oxlint": "^1.85.0",
120
120
  "typescript": "~7.0.2",
121
- "vite": "^8.3.0",
121
+ "vite": "^8.3.1",
122
122
  "vite-plugin-lib-inject-css": "^2.2.2",
123
- "vitest": "^5.0.0"
123
+ "vitest": "^5.0.2"
124
124
  },
125
125
  "peerDependencies": {
126
126
  "@radix-ui/themes": ">=3.3.0",