@clevertask/scribe 0.0.6 → 0.0.7

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.
@@ -1,5 +1,5 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { B as o } from "../../index-B9XP9QDO.js";
2
+ import { B as o } from "../../index-dyNx8_Ul.js";
3
3
  const l = ({ editor: n }) => /* @__PURE__ */ e(o, { className: "bubble-menu-wrapper", editor: n, children: /* @__PURE__ */ e("div", { className: "menu-item-wrapper", children: [
4
4
  {
5
5
  ariaLabel: "Heading 1",
@@ -1,4 +1,4 @@
1
- import { M as Pe, c as Ne, m as le, P as qt, a as Vt, d as Ie, g as we, f as ve, h as He, i as Ue } from "../../../index-DzExyr-e.js";
1
+ import { M as Pe, c as Ne, m as le, P as qt, a as Vt, d as Ie, g as we, f as ve, h as He, i as Ue } from "../../../index-o3ZWOEgq.js";
2
2
  const xe = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", De = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", B = (t, n) => {
3
3
  for (const e in n)
4
4
  t[e] = n[e];
@@ -1,4 +1,4 @@
1
- import { E as r } from "../../../index-DzExyr-e.js";
1
+ import { E as r } from "../../../index-o3ZWOEgq.js";
2
2
  const s = r.create({
3
3
  name: "SelectedText",
4
4
  addCommands: () => ({
@@ -1,5 +1,5 @@
1
1
  import dt from "./extension-link.js";
2
- import { E as X, P as _, a as W, D as K, b as G, N as T, n as qe, m as M, S as v, k as Xe, j as ut, T as x, F as H, l as $, o as pe, p as pt, q as Ge, r as Je, s as ht, w as J, M as te, c as j, t as Q, u as we, v as ft, x as mt, y as gt, z as bt, A } from "../../../index-DzExyr-e.js";
2
+ import { E as X, P as _, a as W, D as K, b as G, N as T, n as qe, m as M, S as v, k as Xe, j as ut, T as x, F as H, l as $, o as pe, p as pt, q as Ge, r as Je, s as ht, w as J, M as te, c as j, t as Q, u as we, v as ft, x as mt, y as gt, z as bt, A } from "../../../index-o3ZWOEgq.js";
3
3
  import { SlashCommand as wt } from "./slashCommand/index.js";
4
4
  import yt from "./extension-selectedText.js";
5
5
  import Ct from "./slashCommand/renderItems.js";
@@ -1,4 +1,4 @@
1
- import { N as fa, P as pa, a as va, m as ga } from "../../../index-DzExyr-e.js";
1
+ import { N as fa, P as pa, a as va, m as ga } from "../../../index-o3ZWOEgq.js";
2
2
  class u0 {
3
3
  // The + prefix indicates that these fields aren't writeable
4
4
  // Lexer holding the input string.
@@ -11726,14 +11726,13 @@ const x4 = fa.create({
11726
11726
  };
11727
11727
  },
11728
11728
  addProseMirrorPlugins() {
11729
- const r = this.editor.isEditable;
11730
11729
  return [
11731
11730
  new pa({
11732
11731
  key: new va("latexAutoDetect"),
11733
- appendTransaction: (e, t, a) => {
11734
- const n = r ? /\$(\\[^\$]+?)\$|\[(\\[^\]]+?)\]/g : /\$\$([\s\S]+?)\$\$|\$([^\$]+?)\$|\[([^\]]+?)\]|(\\[a-zA-Z]+(?:\{[^}]*\})*)/g;
11735
- let s = a.tr, o = [];
11736
- return a.doc.descendants((h, c, p) => {
11732
+ appendTransaction: (r, e, t) => {
11733
+ const a = this.editor.isEditable, n = a ? /\$(\\[^\$]+?)\$|\[(\\[^\]]+?)\]/g : /\$\$([\s\S]+?)\$\$|\$([^\$]+?)\$|\[([^\]]+?)\]|(\\[a-zA-Z]+(?:\{[^}]*\})*)/g;
11734
+ let s = t.tr, o = [];
11735
+ return t.doc.descendants((h, c, p) => {
11737
11736
  if (!h.isText) return;
11738
11737
  const g = h.text;
11739
11738
  if (!(!g || !p) && !(p.type.name === "codeBlock" || p.type.name === "code") && !h.marks.some((b) => b.type.name === "code") && p.type.name !== "latex" && (g.includes("$") || g.includes("[") || g.includes("\\"))) {
@@ -11741,7 +11740,7 @@ const x4 = fa.create({
11741
11740
  for (; (b = n.exec(g)) !== null; ) {
11742
11741
  const [w] = b, x = c + b.index, z = x + w.length;
11743
11742
  let T, D, C, I;
11744
- r ? [, D, C] = b : [, T, D, C, I] = b;
11743
+ a ? [, D, C] = b : [, T, D, C, I] = b;
11745
11744
  let H = T || D || C || I;
11746
11745
  const P = !!T || !!C, L = !!D;
11747
11746
  if (H) {
@@ -11755,7 +11754,7 @@ const x4 = fa.create({
11755
11754
  s = s.replaceWith(
11756
11755
  h,
11757
11756
  c,
11758
- a.schema.nodes.latex.create({
11757
+ t.schema.nodes.latex.create({
11759
11758
  content: p,
11760
11759
  displayMode: g
11761
11760
  })
@@ -1,4 +1,4 @@
1
- import { a as F, P as T, D as U, b as j, e as z, E as G } from "../../../../index-DzExyr-e.js";
1
+ import { a as F, P as T, D as U, b as j, e as z, E as G } from "../../../../index-o3ZWOEgq.js";
2
2
  function H(f) {
3
3
  var s;
4
4
  const { char: g, allowSpaces: v, allowToIncludeChar: I, allowedPrefixes: m, startOfLine: R, $position: d } = f, P = v && !I, p = z(g), D = new RegExp(`\\s${p}$`), h = R ? "^" : "", C = I ? "" : p, K = P ? new RegExp(`${h}${p}.*?(?=\\s${C}|$)`, "gm") : new RegExp(`${h}(?:^)?${p}[^\\s${C}]*`, "gm"), r = ((s = d.nodeBefore) === null || s === void 0 ? void 0 : s.isText) && d.nodeBefore.text;
@@ -1,4 +1,4 @@
1
- import { R as l, t as c } from "../../../../index-B9XP9QDO.js";
1
+ import { R as l, t as c } from "../../../../index-dyNx8_Ul.js";
2
2
  import { l as a, S as d } from "../../../../SlashCommandList-DLPd43Tg.js";
3
3
  const m = () => {
4
4
  let n, t = [], r, i = !a.isEmpty(t);
@@ -1,5 +1,5 @@
1
1
  import { jsx as i, jsxs as S } from "react/jsx-runtime";
2
- import { u as H, E as k } from "../../index-B9XP9QDO.js";
2
+ import { u as H, E as k } from "../../index-dyNx8_Ul.js";
3
3
  import { initExtensions as B } from "./extension/index.js";
4
4
  import { forwardRef as L, useCallback as f, useImperativeHandle as T, useEffect as u } from "react";
5
5
  import A from "../Menu/BarMenu.js";
@@ -1,4 +1,4 @@
1
- import { P as Ur, a as Fr, B as kr, y as qr, C as zr, E as Kr, G as Gr } from "./index-DzExyr-e.js";
1
+ import { P as Ur, a as Fr, B as kr, y as qr, C as zr, E as Kr, G as Gr } from "./index-o3ZWOEgq.js";
2
2
  import P, { useRef as Yr, useState as At, useDebugValue as lr, useEffect as _t, forwardRef as Xr, useLayoutEffect as Jr, useContext as dr, createContext as fr } from "react";
3
3
  import Qr, { flushSync as Zr } from "react-dom";
4
4
  var U = "top", G = "bottom", Y = "right", F = "left", Rt = "auto", Fe = [U, G, Y, F], Te = "start", He = "end", en = "clippingParents", pr = "viewport", je = "popper", tn = "reference", Wt = /* @__PURE__ */ Fe.reduce(function(t, e) {
@@ -11823,7 +11823,7 @@ class od extends cc {
11823
11823
  let n = t;
11824
11824
  if ([].concat(e).forEach((s) => {
11825
11825
  const o = typeof s == "string" ? `${s}$` : s.key;
11826
- n = t.filter((l) => !l.key.startsWith(o));
11826
+ n = n.filter((l) => !l.key.startsWith(o));
11827
11827
  }), t.length === n.length)
11828
11828
  return;
11829
11829
  const i = this.state.reconfigure({
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.6",
6
+ "version": "0.0.7",
7
7
  "type": "module",
8
8
  "main": "dist/main.js",
9
9
  "types": "dist/main.d.ts",
@@ -49,10 +49,10 @@
49
49
  "@types/lodash": "^4.17.16",
50
50
  "@types/node": "^22.15.3",
51
51
  "@types/react": "^18.3.20",
52
- "@types/react-dom": "^18.3.6",
52
+ "@types/react-dom": "^18.3.7",
53
53
  "@types/turndown": "^5.0.5",
54
- "@typescript-eslint/eslint-plugin": "^8.31.0",
55
- "@typescript-eslint/parser": "^8.31.0",
54
+ "@typescript-eslint/eslint-plugin": "^8.31.1",
55
+ "@typescript-eslint/parser": "^8.31.1",
56
56
  "@vitejs/plugin-react": "^4.4.1",
57
57
  "autoprefixer": "^10.4.21",
58
58
  "eslint": "^9.25.1",
@@ -65,7 +65,7 @@
65
65
  "prettier": "3.4.2",
66
66
  "tailwindcss": "^3.4.17",
67
67
  "typescript": "^5.8.3",
68
- "vite": "^6.3.3",
68
+ "vite": "^6.3.4",
69
69
  "vite-plugin-dts": "^4.5.3",
70
70
  "vite-plugin-lib-inject-css": "^2.2.2"
71
71
  },
@@ -75,23 +75,23 @@
75
75
  "registry": "https://registry.npmjs.org/"
76
76
  },
77
77
  "dependencies": {
78
- "@tiptap/core": "^2.11.7",
79
- "@tiptap/extension-focus": "^2.11.7",
80
- "@tiptap/extension-highlight": "^2.11.7",
81
- "@tiptap/extension-image": "^2.11.7",
82
- "@tiptap/extension-link": "^2.11.7",
83
- "@tiptap/extension-placeholder": "^2.11.7",
84
- "@tiptap/extension-table": "^2.11.7",
85
- "@tiptap/extension-table-cell": "^2.11.7",
86
- "@tiptap/extension-table-header": "^2.11.7",
87
- "@tiptap/extension-table-row": "^2.11.7",
88
- "@tiptap/extension-task-item": "^2.11.7",
89
- "@tiptap/extension-task-list": "^2.11.7",
90
- "@tiptap/extension-typography": "^2.11.7",
91
- "@tiptap/pm": "^2.11.7",
92
- "@tiptap/react": "^2.11.7",
93
- "@tiptap/starter-kit": "^2.11.7",
94
- "@tiptap/suggestion": "^2.11.7",
78
+ "@tiptap/core": "^2.11.9",
79
+ "@tiptap/extension-focus": "^2.11.9",
80
+ "@tiptap/extension-highlight": "^2.11.9",
81
+ "@tiptap/extension-image": "^2.11.9",
82
+ "@tiptap/extension-link": "^2.11.9",
83
+ "@tiptap/extension-placeholder": "^2.11.9",
84
+ "@tiptap/extension-table": "^2.11.9",
85
+ "@tiptap/extension-table-cell": "^2.11.9",
86
+ "@tiptap/extension-table-header": "^2.11.9",
87
+ "@tiptap/extension-table-row": "^2.11.9",
88
+ "@tiptap/extension-task-item": "^2.11.9",
89
+ "@tiptap/extension-task-list": "^2.11.9",
90
+ "@tiptap/extension-typography": "^2.11.9",
91
+ "@tiptap/pm": "^2.11.9",
92
+ "@tiptap/react": "^2.11.9",
93
+ "@tiptap/starter-kit": "^2.11.9",
94
+ "@tiptap/suggestion": "^2.11.9",
95
95
  "clsx": "^2.1.1",
96
96
  "isomorphic-dompurify": "^2.24.0",
97
97
  "katex": "^0.16.22",