@mhamz.01/easyflow-texteditor 0.1.98 → 0.1.100

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/dist/index.mjs CHANGED
@@ -1274,13 +1274,13 @@ import { useEffect as useEffect24, useRef as useRef7, useState as useState33 } f
1274
1274
  import { EditorContent, EditorContext, useEditor } from "@tiptap/react";
1275
1275
  import { StarterKit } from "@tiptap/starter-kit";
1276
1276
  import Image from "@tiptap/extension-image";
1277
- import { ListItem, TaskItem, TaskList } from "@tiptap/extension-list";
1277
+ import { TaskItem, TaskList } from "@tiptap/extension-list";
1278
1278
  import { TextAlign } from "@tiptap/extension-text-align";
1279
1279
  import { Typography } from "@tiptap/extension-typography";
1280
1280
  import { Highlight } from "@tiptap/extension-highlight";
1281
1281
  import { Subscript } from "@tiptap/extension-subscript";
1282
1282
  import { Superscript } from "@tiptap/extension-superscript";
1283
- import { Gapcursor, Selection as Selection3 } from "@tiptap/extensions";
1283
+ import { Gapcursor, Selection as Selection2 } from "@tiptap/extensions";
1284
1284
  import { TextStyleKit } from "@tiptap/extension-text-style";
1285
1285
 
1286
1286
  // node_modules/@tiptap/extension-document/dist/index.js
@@ -1349,396 +1349,9 @@ var Paragraph = Node2.create({
1349
1349
  });
1350
1350
  var index_default2 = Paragraph;
1351
1351
 
1352
- // node_modules/@tiptap/extension-blockquote/dist/index.js
1353
- import { mergeAttributes as mergeAttributes2, Node as Node3, wrappingInputRule } from "@tiptap/core";
1354
- import { jsx as jsx17 } from "@tiptap/core/jsx-runtime";
1355
- var inputRegex = /^\s*>\s$/;
1356
- var Blockquote = Node3.create({
1357
- name: "blockquote",
1358
- addOptions() {
1359
- return {
1360
- HTMLAttributes: {}
1361
- };
1362
- },
1363
- content: "block+",
1364
- group: "block",
1365
- defining: true,
1366
- parseHTML() {
1367
- return [{ tag: "blockquote" }];
1368
- },
1369
- renderHTML({ HTMLAttributes }) {
1370
- return /* @__PURE__ */ jsx17("blockquote", { ...mergeAttributes2(this.options.HTMLAttributes, HTMLAttributes), children: /* @__PURE__ */ jsx17("slot", {}) });
1371
- },
1372
- parseMarkdown: (token, helpers) => {
1373
- return helpers.createNode("blockquote", void 0, helpers.parseChildren(token.tokens || []));
1374
- },
1375
- renderMarkdown: (node, h) => {
1376
- if (!node.content) {
1377
- return "";
1378
- }
1379
- const prefix = ">";
1380
- const result = [];
1381
- node.content.forEach((child) => {
1382
- const childContent = h.renderChildren([child]);
1383
- const lines = childContent.split("\n");
1384
- const linesWithPrefix = lines.map((line) => {
1385
- if (line.trim() === "") {
1386
- return prefix;
1387
- }
1388
- return `${prefix} ${line}`;
1389
- });
1390
- result.push(linesWithPrefix.join("\n"));
1391
- });
1392
- return result.join(`
1393
- ${prefix}
1394
- `);
1395
- },
1396
- addCommands() {
1397
- return {
1398
- setBlockquote: () => ({ commands }) => {
1399
- return commands.wrapIn(this.name);
1400
- },
1401
- toggleBlockquote: () => ({ commands }) => {
1402
- return commands.toggleWrap(this.name);
1403
- },
1404
- unsetBlockquote: () => ({ commands }) => {
1405
- return commands.lift(this.name);
1406
- }
1407
- };
1408
- },
1409
- addKeyboardShortcuts() {
1410
- return {
1411
- "Mod-Shift-b": () => this.editor.commands.toggleBlockquote()
1412
- };
1413
- },
1414
- addInputRules() {
1415
- return [
1416
- wrappingInputRule({
1417
- find: inputRegex,
1418
- type: this.type
1419
- })
1420
- ];
1421
- }
1422
- });
1423
- var index_default3 = Blockquote;
1424
-
1425
- // node_modules/@tiptap/extension-code-block/dist/index.js
1426
- import { mergeAttributes as mergeAttributes3, Node as Node4, textblockTypeInputRule } from "@tiptap/core";
1427
- import { Plugin, PluginKey, Selection, TextSelection } from "@tiptap/pm/state";
1428
- var DEFAULT_TAB_SIZE = 4;
1429
- var backtickInputRegex = /^```([a-z]+)?[\s\n]$/;
1430
- var tildeInputRegex = /^~~~([a-z]+)?[\s\n]$/;
1431
- var CodeBlock = Node4.create({
1432
- name: "codeBlock",
1433
- addOptions() {
1434
- return {
1435
- languageClassPrefix: "language-",
1436
- exitOnTripleEnter: true,
1437
- exitOnArrowDown: true,
1438
- defaultLanguage: null,
1439
- enableTabIndentation: false,
1440
- tabSize: DEFAULT_TAB_SIZE,
1441
- HTMLAttributes: {}
1442
- };
1443
- },
1444
- content: "text*",
1445
- marks: "",
1446
- group: "block",
1447
- code: true,
1448
- defining: true,
1449
- addAttributes() {
1450
- return {
1451
- language: {
1452
- default: this.options.defaultLanguage,
1453
- parseHTML: (element) => {
1454
- var _a;
1455
- const { languageClassPrefix } = this.options;
1456
- if (!languageClassPrefix) {
1457
- return null;
1458
- }
1459
- const classNames = [...((_a = element.firstElementChild) == null ? void 0 : _a.classList) || []];
1460
- const languages = classNames.filter((className) => className.startsWith(languageClassPrefix)).map((className) => className.replace(languageClassPrefix, ""));
1461
- const language = languages[0];
1462
- if (!language) {
1463
- return null;
1464
- }
1465
- return language;
1466
- },
1467
- rendered: false
1468
- }
1469
- };
1470
- },
1471
- parseHTML() {
1472
- return [
1473
- {
1474
- tag: "pre",
1475
- preserveWhitespace: "full"
1476
- }
1477
- ];
1478
- },
1479
- renderHTML({ node, HTMLAttributes }) {
1480
- return [
1481
- "pre",
1482
- mergeAttributes3(this.options.HTMLAttributes, HTMLAttributes),
1483
- [
1484
- "code",
1485
- {
1486
- class: node.attrs.language ? this.options.languageClassPrefix + node.attrs.language : null
1487
- },
1488
- 0
1489
- ]
1490
- ];
1491
- },
1492
- markdownTokenName: "code",
1493
- parseMarkdown: (token, helpers) => {
1494
- var _a;
1495
- if (((_a = token.raw) == null ? void 0 : _a.startsWith("```")) === false && token.codeBlockStyle !== "indented") {
1496
- return [];
1497
- }
1498
- return helpers.createNode(
1499
- "codeBlock",
1500
- { language: token.lang || null },
1501
- token.text ? [helpers.createTextNode(token.text)] : []
1502
- );
1503
- },
1504
- renderMarkdown: (node, h) => {
1505
- var _a;
1506
- let output = "";
1507
- const language = ((_a = node.attrs) == null ? void 0 : _a.language) || "";
1508
- if (!node.content) {
1509
- output = `\`\`\`${language}
1510
-
1511
- \`\`\``;
1512
- } else {
1513
- const lines = [`\`\`\`${language}`, h.renderChildren(node.content), "```"];
1514
- output = lines.join("\n");
1515
- }
1516
- return output;
1517
- },
1518
- addCommands() {
1519
- return {
1520
- setCodeBlock: (attributes) => ({ commands }) => {
1521
- return commands.setNode(this.name, attributes);
1522
- },
1523
- toggleCodeBlock: (attributes) => ({ commands }) => {
1524
- return commands.toggleNode(this.name, "paragraph", attributes);
1525
- }
1526
- };
1527
- },
1528
- addKeyboardShortcuts() {
1529
- return {
1530
- "Mod-Alt-c": () => this.editor.commands.toggleCodeBlock(),
1531
- // remove code block when at start of document or code block is empty
1532
- Backspace: () => {
1533
- const { empty, $anchor } = this.editor.state.selection;
1534
- const isAtStart = $anchor.pos === 1;
1535
- if (!empty || $anchor.parent.type.name !== this.name) {
1536
- return false;
1537
- }
1538
- if (isAtStart || !$anchor.parent.textContent.length) {
1539
- return this.editor.commands.clearNodes();
1540
- }
1541
- return false;
1542
- },
1543
- // handle tab indentation
1544
- Tab: ({ editor }) => {
1545
- var _a;
1546
- if (!this.options.enableTabIndentation) {
1547
- return false;
1548
- }
1549
- const tabSize = (_a = this.options.tabSize) != null ? _a : DEFAULT_TAB_SIZE;
1550
- const { state } = editor;
1551
- const { selection } = state;
1552
- const { $from, empty } = selection;
1553
- if ($from.parent.type !== this.type) {
1554
- return false;
1555
- }
1556
- const indent = " ".repeat(tabSize);
1557
- if (empty) {
1558
- return editor.commands.insertContent(indent);
1559
- }
1560
- return editor.commands.command(({ tr }) => {
1561
- const { from, to } = selection;
1562
- const text = state.doc.textBetween(from, to, "\n", "\n");
1563
- const lines = text.split("\n");
1564
- const indentedText = lines.map((line) => indent + line).join("\n");
1565
- tr.replaceWith(from, to, state.schema.text(indentedText));
1566
- return true;
1567
- });
1568
- },
1569
- // handle shift+tab reverse indentation
1570
- "Shift-Tab": ({ editor }) => {
1571
- var _a;
1572
- if (!this.options.enableTabIndentation) {
1573
- return false;
1574
- }
1575
- const tabSize = (_a = this.options.tabSize) != null ? _a : DEFAULT_TAB_SIZE;
1576
- const { state } = editor;
1577
- const { selection } = state;
1578
- const { $from, empty } = selection;
1579
- if ($from.parent.type !== this.type) {
1580
- return false;
1581
- }
1582
- if (empty) {
1583
- return editor.commands.command(({ tr }) => {
1584
- var _a2;
1585
- const { pos } = $from;
1586
- const codeBlockStart = $from.start();
1587
- const codeBlockEnd = $from.end();
1588
- const allText = state.doc.textBetween(codeBlockStart, codeBlockEnd, "\n", "\n");
1589
- const lines = allText.split("\n");
1590
- let currentLineIndex = 0;
1591
- let charCount = 0;
1592
- const relativeCursorPos = pos - codeBlockStart;
1593
- for (let i = 0; i < lines.length; i += 1) {
1594
- if (charCount + lines[i].length >= relativeCursorPos) {
1595
- currentLineIndex = i;
1596
- break;
1597
- }
1598
- charCount += lines[i].length + 1;
1599
- }
1600
- const currentLine = lines[currentLineIndex];
1601
- const leadingSpaces = ((_a2 = currentLine.match(/^ */)) == null ? void 0 : _a2[0]) || "";
1602
- const spacesToRemove = Math.min(leadingSpaces.length, tabSize);
1603
- if (spacesToRemove === 0) {
1604
- return true;
1605
- }
1606
- let lineStartPos = codeBlockStart;
1607
- for (let i = 0; i < currentLineIndex; i += 1) {
1608
- lineStartPos += lines[i].length + 1;
1609
- }
1610
- tr.delete(lineStartPos, lineStartPos + spacesToRemove);
1611
- const cursorPosInLine = pos - lineStartPos;
1612
- if (cursorPosInLine <= spacesToRemove) {
1613
- tr.setSelection(TextSelection.create(tr.doc, lineStartPos));
1614
- }
1615
- return true;
1616
- });
1617
- }
1618
- return editor.commands.command(({ tr }) => {
1619
- const { from, to } = selection;
1620
- const text = state.doc.textBetween(from, to, "\n", "\n");
1621
- const lines = text.split("\n");
1622
- const reverseIndentText = lines.map((line) => {
1623
- var _a2;
1624
- const leadingSpaces = ((_a2 = line.match(/^ */)) == null ? void 0 : _a2[0]) || "";
1625
- const spacesToRemove = Math.min(leadingSpaces.length, tabSize);
1626
- return line.slice(spacesToRemove);
1627
- }).join("\n");
1628
- tr.replaceWith(from, to, state.schema.text(reverseIndentText));
1629
- return true;
1630
- });
1631
- },
1632
- // exit node on triple enter
1633
- Enter: ({ editor }) => {
1634
- if (!this.options.exitOnTripleEnter) {
1635
- return false;
1636
- }
1637
- const { state } = editor;
1638
- const { selection } = state;
1639
- const { $from, empty } = selection;
1640
- if (!empty || $from.parent.type !== this.type) {
1641
- return false;
1642
- }
1643
- const isAtEnd = $from.parentOffset === $from.parent.nodeSize - 2;
1644
- const endsWithDoubleNewline = $from.parent.textContent.endsWith("\n\n");
1645
- if (!isAtEnd || !endsWithDoubleNewline) {
1646
- return false;
1647
- }
1648
- return editor.chain().command(({ tr }) => {
1649
- tr.delete($from.pos - 2, $from.pos);
1650
- return true;
1651
- }).exitCode().run();
1652
- },
1653
- // exit node on arrow down
1654
- ArrowDown: ({ editor }) => {
1655
- if (!this.options.exitOnArrowDown) {
1656
- return false;
1657
- }
1658
- const { state } = editor;
1659
- const { selection, doc } = state;
1660
- const { $from, empty } = selection;
1661
- if (!empty || $from.parent.type !== this.type) {
1662
- return false;
1663
- }
1664
- const isAtEnd = $from.parentOffset === $from.parent.nodeSize - 2;
1665
- if (!isAtEnd) {
1666
- return false;
1667
- }
1668
- const after = $from.after();
1669
- if (after === void 0) {
1670
- return false;
1671
- }
1672
- const nodeAfter = doc.nodeAt(after);
1673
- if (nodeAfter) {
1674
- return editor.commands.command(({ tr }) => {
1675
- tr.setSelection(Selection.near(doc.resolve(after)));
1676
- return true;
1677
- });
1678
- }
1679
- return editor.commands.exitCode();
1680
- }
1681
- };
1682
- },
1683
- addInputRules() {
1684
- return [
1685
- textblockTypeInputRule({
1686
- find: backtickInputRegex,
1687
- type: this.type,
1688
- getAttributes: (match) => ({
1689
- language: match[1]
1690
- })
1691
- }),
1692
- textblockTypeInputRule({
1693
- find: tildeInputRegex,
1694
- type: this.type,
1695
- getAttributes: (match) => ({
1696
- language: match[1]
1697
- })
1698
- })
1699
- ];
1700
- },
1701
- addProseMirrorPlugins() {
1702
- return [
1703
- // this plugin creates a code block for pasted content from VS Code
1704
- // we can also detect the copied code language
1705
- new Plugin({
1706
- key: new PluginKey("codeBlockVSCodeHandler"),
1707
- props: {
1708
- handlePaste: (view, event) => {
1709
- if (!event.clipboardData) {
1710
- return false;
1711
- }
1712
- if (this.editor.isActive(this.type.name)) {
1713
- return false;
1714
- }
1715
- const text = event.clipboardData.getData("text/plain");
1716
- const vscode = event.clipboardData.getData("vscode-editor-data");
1717
- const vscodeData = vscode ? JSON.parse(vscode) : void 0;
1718
- const language = vscodeData == null ? void 0 : vscodeData.mode;
1719
- if (!text || !language) {
1720
- return false;
1721
- }
1722
- const { tr, schema } = view.state;
1723
- const textNode = schema.text(text.replace(/\r\n?/g, "\n"));
1724
- tr.replaceSelectionWith(this.type.create({ language }, textNode));
1725
- if (tr.selection.$from.parent.type !== this.type) {
1726
- tr.setSelection(TextSelection.near(tr.doc.resolve(Math.max(0, tr.selection.from - 2))));
1727
- }
1728
- tr.setMeta("paste", true);
1729
- view.dispatch(tr);
1730
- return true;
1731
- }
1732
- }
1733
- })
1734
- ];
1735
- }
1736
- });
1737
- var index_default4 = CodeBlock;
1738
-
1739
1352
  // node_modules/@tiptap/extension-text/dist/index.js
1740
- import { Node as Node5 } from "@tiptap/core";
1741
- var Text = Node5.create({
1353
+ import { Node as Node3 } from "@tiptap/core";
1354
+ var Text = Node3.create({
1742
1355
  name: "text",
1743
1356
  group: "inline",
1744
1357
  parseMarkdown: (token) => {
@@ -1749,7 +1362,7 @@ var Text = Node5.create({
1749
1362
  },
1750
1363
  renderMarkdown: (node) => node.text || ""
1751
1364
  });
1752
- var index_default5 = Text;
1365
+ var index_default3 = Text;
1753
1366
 
1754
1367
  // src/components/tiptap-templates/simple/simple-editor.tsx
1755
1368
  import { FontFamily, TextStyle } from "@tiptap/extension-text-style";
@@ -1868,7 +1481,7 @@ import {
1868
1481
  FloatingPortal,
1869
1482
  FloatingDelayGroup
1870
1483
  } from "@floating-ui/react";
1871
- import { jsx as jsx18 } from "react/jsx-runtime";
1484
+ import { jsx as jsx17 } from "react/jsx-runtime";
1872
1485
  function useTooltip({
1873
1486
  initialOpen = false,
1874
1487
  placement = "top",
@@ -1932,14 +1545,14 @@ function useTooltipContext() {
1932
1545
  function Tooltip2({ children, ...props }) {
1933
1546
  const tooltip = useTooltip(props);
1934
1547
  if (!props.useDelayGroup) {
1935
- return /* @__PURE__ */ jsx18(TooltipContext.Provider, { value: tooltip, children });
1548
+ return /* @__PURE__ */ jsx17(TooltipContext.Provider, { value: tooltip, children });
1936
1549
  }
1937
- return /* @__PURE__ */ jsx18(
1550
+ return /* @__PURE__ */ jsx17(
1938
1551
  FloatingDelayGroup,
1939
1552
  {
1940
1553
  delay: { open: props.delay ?? 0, close: props.closeDelay ?? 0 },
1941
1554
  timeoutMs: props.timeout,
1942
- children: /* @__PURE__ */ jsx18(TooltipContext.Provider, { value: tooltip, children })
1555
+ children: /* @__PURE__ */ jsx17(TooltipContext.Provider, { value: tooltip, children })
1943
1556
  }
1944
1557
  );
1945
1558
  }
@@ -1968,7 +1581,7 @@ var TooltipTrigger2 = forwardRef(
1968
1581
  })
1969
1582
  );
1970
1583
  }
1971
- return /* @__PURE__ */ jsx18(
1584
+ return /* @__PURE__ */ jsx17(
1972
1585
  "button",
1973
1586
  {
1974
1587
  ref,
@@ -1984,7 +1597,7 @@ var TooltipContent2 = forwardRef(
1984
1597
  const context = useTooltipContext();
1985
1598
  const ref = useMergeRefs([context.refs.setFloating, propRef]);
1986
1599
  if (!context.open) return null;
1987
- const content = /* @__PURE__ */ jsx18(
1600
+ const content = /* @__PURE__ */ jsx17(
1988
1601
  "div",
1989
1602
  {
1990
1603
  ref,
@@ -1998,7 +1611,7 @@ var TooltipContent2 = forwardRef(
1998
1611
  }
1999
1612
  );
2000
1613
  if (portal) {
2001
- return /* @__PURE__ */ jsx18(FloatingPortal, { ...portalProps, children: content });
1614
+ return /* @__PURE__ */ jsx17(FloatingPortal, { ...portalProps, children: content });
2002
1615
  }
2003
1616
  return content;
2004
1617
  }
@@ -2011,8 +1624,8 @@ TooltipContent2.displayName = "TooltipContent";
2011
1624
  import {
2012
1625
  AllSelection,
2013
1626
  NodeSelection,
2014
- Selection as Selection2,
2015
- TextSelection as TextSelection2
1627
+ Selection,
1628
+ TextSelection
2016
1629
  } from "@tiptap/pm/state";
2017
1630
  import { Extension as Extension2 } from "@tiptap/core";
2018
1631
  var MAX_FILE_SIZE = 5 * 1024 * 1024;
@@ -2060,7 +1673,7 @@ var isNodeInSchema = (nodeName, editor) => {
2060
1673
  function focusNextNode(editor) {
2061
1674
  const { state, view } = editor;
2062
1675
  const { doc, selection } = state;
2063
- const nextSel = Selection2.findFrom(selection.$to, 1, true);
1676
+ const nextSel = Selection.findFrom(selection.$to, 1, true);
2064
1677
  if (nextSel) {
2065
1678
  view.dispatch(state.tr.setSelection(nextSel).scrollIntoView());
2066
1679
  return true;
@@ -2074,7 +1687,7 @@ function focusNextNode(editor) {
2074
1687
  const para = paragraphType.create();
2075
1688
  let tr = state.tr.insert(end, para);
2076
1689
  const $inside = tr.doc.resolve(end + 1);
2077
- tr = tr.setSelection(TextSelection2.near($inside)).scrollIntoView();
1690
+ tr = tr.setSelection(TextSelection.near($inside)).scrollIntoView();
2078
1691
  view.dispatch(tr);
2079
1692
  return true;
2080
1693
  }
@@ -2166,7 +1779,7 @@ function selectionWithinConvertibleTypes(editor, types = []) {
2166
1779
  const nodeType = selection.node?.type?.name;
2167
1780
  return !!nodeType && allowed.has(nodeType);
2168
1781
  }
2169
- if (selection instanceof TextSelection2 || selection instanceof AllSelection) {
1782
+ if (selection instanceof TextSelection || selection instanceof AllSelection) {
2170
1783
  let valid = true;
2171
1784
  state.doc.nodesBetween(selection.from, selection.to, (node) => {
2172
1785
  if (node.isTextblock && !allowed.has(node.type.name)) {
@@ -2315,14 +1928,14 @@ var FontSizeExtension = Extension2.create({
2315
1928
  });
2316
1929
 
2317
1930
  // src/components/tiptap-ui-primitive/button/button.tsx
2318
- import { jsx as jsx19, jsxs as jsxs9 } from "react/jsx-runtime";
1931
+ import { jsx as jsx18, jsxs as jsxs9 } from "react/jsx-runtime";
2319
1932
  var ShortcutDisplay = ({
2320
1933
  shortcuts
2321
1934
  }) => {
2322
1935
  if (shortcuts.length === 0) return null;
2323
- return /* @__PURE__ */ jsx19("div", { children: shortcuts.map((key, index) => /* @__PURE__ */ jsxs9(Fragment2, { children: [
2324
- index > 0 && /* @__PURE__ */ jsx19("kbd", { children: "+" }),
2325
- /* @__PURE__ */ jsx19("kbd", { children: key })
1936
+ return /* @__PURE__ */ jsx18("div", { children: shortcuts.map((key, index) => /* @__PURE__ */ jsxs9(Fragment2, { children: [
1937
+ index > 0 && /* @__PURE__ */ jsx18("kbd", { children: "+" }),
1938
+ /* @__PURE__ */ jsx18("kbd", { children: key })
2326
1939
  ] }, index)) });
2327
1940
  };
2328
1941
  var Button2 = forwardRef2(
@@ -2340,7 +1953,7 @@ var Button2 = forwardRef2(
2340
1953
  [shortcutKeys]
2341
1954
  );
2342
1955
  if (!tooltip || !showTooltip) {
2343
- return /* @__PURE__ */ jsx19(
1956
+ return /* @__PURE__ */ jsx18(
2344
1957
  "button",
2345
1958
  {
2346
1959
  className: cn2("tiptap-button", className),
@@ -2352,7 +1965,7 @@ var Button2 = forwardRef2(
2352
1965
  );
2353
1966
  }
2354
1967
  return /* @__PURE__ */ jsxs9(Tooltip2, { delay: 200, children: [
2355
- /* @__PURE__ */ jsx19(
1968
+ /* @__PURE__ */ jsx18(
2356
1969
  TooltipTrigger2,
2357
1970
  {
2358
1971
  className: cn2("tiptap-button", className),
@@ -2364,14 +1977,14 @@ var Button2 = forwardRef2(
2364
1977
  ),
2365
1978
  /* @__PURE__ */ jsxs9(TooltipContent2, { children: [
2366
1979
  tooltip,
2367
- /* @__PURE__ */ jsx19(ShortcutDisplay, { shortcuts })
1980
+ /* @__PURE__ */ jsx18(ShortcutDisplay, { shortcuts })
2368
1981
  ] })
2369
1982
  ] });
2370
1983
  }
2371
1984
  );
2372
1985
  Button2.displayName = "Button";
2373
1986
  var ButtonGroup = forwardRef2(({ className, children, orientation = "vertical", ...props }, ref) => {
2374
- return /* @__PURE__ */ jsx19(
1987
+ return /* @__PURE__ */ jsx18(
2375
1988
  "div",
2376
1989
  {
2377
1990
  ref,
@@ -2386,7 +1999,7 @@ var ButtonGroup = forwardRef2(({ className, children, orientation = "vertical",
2386
1999
  ButtonGroup.displayName = "ButtonGroup";
2387
2000
 
2388
2001
  // src/components/tiptap-ui-primitive/spacer/spacer.tsx
2389
- import { jsx as jsx20 } from "react/jsx-runtime";
2002
+ import { jsx as jsx19 } from "react/jsx-runtime";
2390
2003
  function Spacer({
2391
2004
  orientation = "horizontal",
2392
2005
  size,
@@ -2401,7 +2014,7 @@ function Spacer({
2401
2014
  height: orientation === "horizontal" ? "1px" : size
2402
2015
  }
2403
2016
  };
2404
- return /* @__PURE__ */ jsx20("div", { ...props, style: computedStyle });
2017
+ return /* @__PURE__ */ jsx19("div", { ...props, style: computedStyle });
2405
2018
  }
2406
2019
 
2407
2020
  // src/components/tiptap-ui-primitive/toolbar/toolbar.tsx
@@ -2409,12 +2022,12 @@ import { forwardRef as forwardRef4, useCallback as useCallback7, useEffect as us
2409
2022
 
2410
2023
  // src/components/tiptap-ui-primitive/separator/separator.tsx
2411
2024
  import { forwardRef as forwardRef3 } from "react";
2412
- import { jsx as jsx21 } from "react/jsx-runtime";
2025
+ import { jsx as jsx20 } from "react/jsx-runtime";
2413
2026
  var Separator2 = forwardRef3(
2414
2027
  ({ decorative, orientation = "vertical", className, ...divProps }, ref) => {
2415
2028
  const ariaOrientation = orientation === "vertical" ? orientation : void 0;
2416
2029
  const semanticProps = decorative ? { role: "none" } : { "aria-orientation": ariaOrientation, role: "separator" };
2417
- return /* @__PURE__ */ jsx21(
2030
+ return /* @__PURE__ */ jsx20(
2418
2031
  "div",
2419
2032
  {
2420
2033
  className: cn2("tiptap-separator", className),
@@ -2583,7 +2196,7 @@ var useComposedRef = (libRef, userRef) => {
2583
2196
  };
2584
2197
 
2585
2198
  // src/components/tiptap-ui-primitive/toolbar/toolbar.tsx
2586
- import { jsx as jsx22 } from "react/jsx-runtime";
2199
+ import { jsx as jsx21 } from "react/jsx-runtime";
2587
2200
  var useToolbarNavigation = (toolbarRef) => {
2588
2201
  const [items, setItems] = useState10([]);
2589
2202
  const collectItems = useCallback7(() => {
@@ -2640,7 +2253,7 @@ var Toolbar = forwardRef4(
2640
2253
  const toolbarRef = useRef3(null);
2641
2254
  const composedRef = useComposedRef(toolbarRef, ref);
2642
2255
  useToolbarNavigation(toolbarRef);
2643
- return /* @__PURE__ */ jsx22(
2256
+ return /* @__PURE__ */ jsx21(
2644
2257
  "div",
2645
2258
  {
2646
2259
  ref: composedRef,
@@ -2656,7 +2269,7 @@ var Toolbar = forwardRef4(
2656
2269
  );
2657
2270
  Toolbar.displayName = "Toolbar";
2658
2271
  var ToolbarGroup = forwardRef4(
2659
- ({ children, className, ...props }, ref) => /* @__PURE__ */ jsx22(
2272
+ ({ children, className, ...props }, ref) => /* @__PURE__ */ jsx21(
2660
2273
  "div",
2661
2274
  {
2662
2275
  ref,
@@ -2669,7 +2282,7 @@ var ToolbarGroup = forwardRef4(
2669
2282
  );
2670
2283
  ToolbarGroup.displayName = "ToolbarGroup";
2671
2284
  var ToolbarSeparator = forwardRef4(
2672
- ({ ...props }, ref) => /* @__PURE__ */ jsx22(Separator2, { ref, orientation: "vertical", decorative: true, ...props })
2285
+ ({ ...props }, ref) => /* @__PURE__ */ jsx21(Separator2, { ref, orientation: "vertical", decorative: true, ...props })
2673
2286
  );
2674
2287
  ToolbarSeparator.displayName = "ToolbarSeparator";
2675
2288
 
@@ -2685,11 +2298,11 @@ import {
2685
2298
  Heading3,
2686
2299
  Code
2687
2300
  } from "lucide-react";
2688
- import { jsx as jsx23, jsxs as jsxs10 } from "react/jsx-runtime";
2301
+ import { jsx as jsx22, jsxs as jsxs10 } from "react/jsx-runtime";
2689
2302
  function BubbleMenuInline() {
2690
2303
  const { editor } = useCurrentEditor();
2691
2304
  if (!editor) return null;
2692
- return /* @__PURE__ */ jsx23(
2305
+ return /* @__PURE__ */ jsx22(
2693
2306
  BubbleMenu,
2694
2307
  {
2695
2308
  editor,
@@ -2713,76 +2326,76 @@ function BubbleMenuInline() {
2713
2326
  {
2714
2327
  className: "relative flex items-center gap-1 rounded-md border bg-[#171717] text-[#a1a1a6] p-1 shadow-md z-[15]\r\n animate-in fade-in slide-in-from-top-2 duration-200",
2715
2328
  children: [
2716
- /* @__PURE__ */ jsx23(
2329
+ /* @__PURE__ */ jsx22(
2717
2330
  Button,
2718
2331
  {
2719
2332
  variant: "ghost",
2720
2333
  size: "sm",
2721
2334
  onClick: () => editor.chain().focus().toggleHeading({ level: 1 }).run(),
2722
2335
  className: editor.isActive("heading", { level: 1 }) ? "bg-accent" : "",
2723
- children: /* @__PURE__ */ jsx23(Heading1, { size: 15 })
2336
+ children: /* @__PURE__ */ jsx22(Heading1, { size: 15 })
2724
2337
  }
2725
2338
  ),
2726
- /* @__PURE__ */ jsx23(
2339
+ /* @__PURE__ */ jsx22(
2727
2340
  Button,
2728
2341
  {
2729
2342
  variant: "ghost",
2730
2343
  size: "sm",
2731
2344
  onClick: () => editor.chain().focus().toggleHeading({ level: 2 }).run(),
2732
2345
  className: editor.isActive("heading", { level: 2 }) ? "bg-accent" : "",
2733
- children: /* @__PURE__ */ jsx23(Heading2, { size: 15 })
2346
+ children: /* @__PURE__ */ jsx22(Heading2, { size: 15 })
2734
2347
  }
2735
2348
  ),
2736
- /* @__PURE__ */ jsx23(
2349
+ /* @__PURE__ */ jsx22(
2737
2350
  Button,
2738
2351
  {
2739
2352
  variant: "ghost",
2740
2353
  size: "sm",
2741
2354
  onClick: () => editor.chain().focus().toggleHeading({ level: 3 }).run(),
2742
2355
  className: editor.isActive("heading", { level: 3 }) ? "bg-accent" : "",
2743
- children: /* @__PURE__ */ jsx23(Heading3, { size: 15 })
2356
+ children: /* @__PURE__ */ jsx22(Heading3, { size: 15 })
2744
2357
  }
2745
2358
  ),
2746
- /* @__PURE__ */ jsx23(Separator, { orientation: "vertical", className: "mx-1" }),
2747
- /* @__PURE__ */ jsx23(
2359
+ /* @__PURE__ */ jsx22(Separator, { orientation: "vertical", className: "mx-1" }),
2360
+ /* @__PURE__ */ jsx22(
2748
2361
  Button,
2749
2362
  {
2750
2363
  variant: "ghost",
2751
2364
  size: "sm",
2752
2365
  onClick: () => editor.chain().focus().toggleBulletList().run(),
2753
2366
  className: editor.isActive("bulletList") ? "bg-accent" : "",
2754
- children: /* @__PURE__ */ jsx23(List, { size: 15 })
2367
+ children: /* @__PURE__ */ jsx22(List, { size: 15 })
2755
2368
  }
2756
2369
  ),
2757
- /* @__PURE__ */ jsx23(
2370
+ /* @__PURE__ */ jsx22(
2758
2371
  Button,
2759
2372
  {
2760
2373
  variant: "ghost",
2761
2374
  size: "sm",
2762
2375
  onClick: () => editor.chain().focus().toggleOrderedList().run(),
2763
2376
  className: editor.isActive("orderedList") ? "bg-accent" : "",
2764
- children: /* @__PURE__ */ jsx23(ListOrdered, { size: 15 })
2377
+ children: /* @__PURE__ */ jsx22(ListOrdered, { size: 15 })
2765
2378
  }
2766
2379
  ),
2767
- /* @__PURE__ */ jsx23(
2380
+ /* @__PURE__ */ jsx22(
2768
2381
  Button,
2769
2382
  {
2770
2383
  variant: "ghost",
2771
2384
  size: "sm",
2772
2385
  onClick: () => editor.chain().focus().toggleTaskList().run(),
2773
2386
  className: editor.isActive("taskList") ? "bg-accent" : "",
2774
- children: /* @__PURE__ */ jsx23(CheckSquare, { size: 15 })
2387
+ children: /* @__PURE__ */ jsx22(CheckSquare, { size: 15 })
2775
2388
  }
2776
2389
  ),
2777
- /* @__PURE__ */ jsx23(Separator, { orientation: "vertical", className: "mx-1" }),
2778
- /* @__PURE__ */ jsx23(
2390
+ /* @__PURE__ */ jsx22(Separator, { orientation: "vertical", className: "mx-1" }),
2391
+ /* @__PURE__ */ jsx22(
2779
2392
  Button,
2780
2393
  {
2781
2394
  variant: "ghost",
2782
2395
  size: "sm",
2783
2396
  onClick: () => editor.chain().focus().toggleCodeBlock().run(),
2784
2397
  className: editor.isActive("codeBlock") ? "bg-accent" : "",
2785
- children: /* @__PURE__ */ jsx23(Code, { size: 15 })
2398
+ children: /* @__PURE__ */ jsx22(Code, { size: 15 })
2786
2399
  }
2787
2400
  )
2788
2401
  ]
@@ -2793,7 +2406,7 @@ function BubbleMenuInline() {
2793
2406
  }
2794
2407
 
2795
2408
  // src/components/tiptap-node/image-upload-node/image-upload-node-extension.ts
2796
- import { mergeAttributes as mergeAttributes4, Node as Node6 } from "@tiptap/react";
2409
+ import { mergeAttributes as mergeAttributes2, Node as Node4 } from "@tiptap/react";
2797
2410
  import { ReactNodeViewRenderer } from "@tiptap/react";
2798
2411
 
2799
2412
  // src/components/tiptap-node/image-upload-node/image-upload-node.tsx
@@ -2802,9 +2415,9 @@ import { NodeViewWrapper } from "@tiptap/react";
2802
2415
 
2803
2416
  // src/components/tiptap-icons/close-icon.tsx
2804
2417
  import { memo as memo6 } from "react";
2805
- import { jsx as jsx24 } from "react/jsx-runtime";
2418
+ import { jsx as jsx23 } from "react/jsx-runtime";
2806
2419
  var CloseIcon = memo6(({ className, ...props }) => {
2807
- return /* @__PURE__ */ jsx24(
2420
+ return /* @__PURE__ */ jsx23(
2808
2421
  "svg",
2809
2422
  {
2810
2423
  width: "24",
@@ -2814,7 +2427,7 @@ var CloseIcon = memo6(({ className, ...props }) => {
2814
2427
  fill: "currentColor",
2815
2428
  xmlns: "http://www.w3.org/2000/svg",
2816
2429
  ...props,
2817
- children: /* @__PURE__ */ jsx24(
2430
+ children: /* @__PURE__ */ jsx23(
2818
2431
  "path",
2819
2432
  {
2820
2433
  d: "M18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.29289 17.2929C4.90237 17.6834 4.90237 18.3166 5.29289 18.7071C5.68342 19.0976 6.31658 19.0976 6.70711 18.7071L12 13.4142L17.2929 18.7071C17.6834 19.0976 18.3166 19.0976 18.7071 18.7071C19.0976 18.3166 19.0976 17.6834 18.7071 17.2929L13.4142 12L18.7071 6.70711Z",
@@ -2827,7 +2440,7 @@ var CloseIcon = memo6(({ className, ...props }) => {
2827
2440
  CloseIcon.displayName = "CloseIcon";
2828
2441
 
2829
2442
  // src/components/tiptap-node/image-upload-node/image-upload-node.tsx
2830
- import { Fragment as Fragment3, jsx as jsx25, jsxs as jsxs11 } from "react/jsx-runtime";
2443
+ import { Fragment as Fragment3, jsx as jsx24, jsxs as jsxs11 } from "react/jsx-runtime";
2831
2444
  function useFileUpload(options) {
2832
2445
  const [fileItems, setFileItems] = useState11([]);
2833
2446
  const uploadFile = async (file) => {
@@ -2945,14 +2558,14 @@ var CloudUploadIcon = () => /* @__PURE__ */ jsxs11(
2945
2558
  fill: "currentColor",
2946
2559
  xmlns: "http://www.w3.org/2000/svg",
2947
2560
  children: [
2948
- /* @__PURE__ */ jsx25(
2561
+ /* @__PURE__ */ jsx24(
2949
2562
  "path",
2950
2563
  {
2951
2564
  d: "M11.1953 4.41771C10.3478 4.08499 9.43578 3.94949 8.5282 4.02147C7.62062 4.09345 6.74133 4.37102 5.95691 4.83316C5.1725 5.2953 4.50354 5.92989 4.00071 6.68886C3.49788 7.44783 3.17436 8.31128 3.05465 9.2138C2.93495 10.1163 3.0222 11.0343 3.3098 11.8981C3.5974 12.7619 4.07781 13.5489 4.71463 14.1995C5.10094 14.5942 5.09414 15.2274 4.69945 15.6137C4.30476 16 3.67163 15.9932 3.28532 15.5985C2.43622 14.731 1.79568 13.6816 1.41221 12.5299C1.02875 11.3781 0.91241 10.1542 1.07201 8.95084C1.23162 7.74748 1.66298 6.59621 2.33343 5.58425C3.00387 4.57229 3.89581 3.72617 4.9417 3.10998C5.98758 2.4938 7.15998 2.1237 8.37008 2.02773C9.58018 1.93176 10.7963 2.11243 11.9262 2.55605C13.0561 2.99968 14.0703 3.69462 14.8919 4.58825C15.5423 5.29573 16.0585 6.11304 16.4177 7.00002H17.4999C18.6799 6.99991 19.8288 7.37933 20.7766 8.08222C21.7245 8.78515 22.4212 9.7743 22.7637 10.9036C23.1062 12.0328 23.0765 13.2423 22.6788 14.3534C22.2812 15.4644 21.5367 16.4181 20.5554 17.0736C20.0962 17.3803 19.4752 17.2567 19.1684 16.7975C18.8617 16.3382 18.9853 15.7172 19.4445 15.4105C20.069 14.9934 20.5427 14.3865 20.7958 13.6794C21.0488 12.9724 21.0678 12.2027 20.8498 11.4841C20.6318 10.7655 20.1885 10.136 19.5853 9.6887C18.9821 9.24138 18.251 8.99993 17.5001 9.00002H15.71C15.2679 9.00002 14.8783 8.70973 14.7518 8.28611C14.4913 7.41374 14.0357 6.61208 13.4195 5.94186C12.8034 5.27164 12.0427 4.75043 11.1953 4.41771Z",
2952
2565
  fill: "currentColor"
2953
2566
  }
2954
2567
  ),
2955
- /* @__PURE__ */ jsx25(
2568
+ /* @__PURE__ */ jsx24(
2956
2569
  "path",
2957
2570
  {
2958
2571
  d: "M11 14.4142V21C11 21.5523 11.4477 22 12 22C12.5523 22 13 21.5523 13 21V14.4142L15.2929 16.7071C15.6834 17.0976 16.3166 17.0976 16.7071 16.7071C17.0976 16.3166 17.0976 15.6834 16.7071 15.2929L12.7078 11.2936C12.7054 11.2912 12.703 11.2888 12.7005 11.2864C12.5208 11.1099 12.2746 11.0008 12.003 11L12 11L11.997 11C11.8625 11.0004 11.7343 11.0273 11.6172 11.0759C11.502 11.1236 11.3938 11.1937 11.2995 11.2864C11.297 11.2888 11.2946 11.2912 11.2922 11.2936L7.29289 15.2929C6.90237 15.6834 6.90237 16.3166 7.29289 16.7071C7.68342 17.0976 8.31658 17.0976 8.70711 16.7071L11 14.4142Z",
@@ -2962,7 +2575,7 @@ var CloudUploadIcon = () => /* @__PURE__ */ jsxs11(
2962
2575
  ]
2963
2576
  }
2964
2577
  );
2965
- var FileIcon = () => /* @__PURE__ */ jsx25(
2578
+ var FileIcon = () => /* @__PURE__ */ jsx24(
2966
2579
  "svg",
2967
2580
  {
2968
2581
  width: "43",
@@ -2971,7 +2584,7 @@ var FileIcon = () => /* @__PURE__ */ jsx25(
2971
2584
  fill: "currentColor",
2972
2585
  className: "tiptap-image-upload-dropzone-rect-primary",
2973
2586
  xmlns: "http://www.w3.org/2000/svg",
2974
- children: /* @__PURE__ */ jsx25(
2587
+ children: /* @__PURE__ */ jsx24(
2975
2588
  "path",
2976
2589
  {
2977
2590
  d: "M0.75 10.75C0.75 5.64137 4.89137 1.5 10 1.5H32.3431C33.2051 1.5 34.0317 1.84241 34.6412 2.4519L40.2981 8.10876C40.9076 8.71825 41.25 9.5449 41.25 10.4069V46.75C41.25 51.8586 37.1086 56 32 56H10C4.89137 56 0.75 51.8586 0.75 46.75V10.75Z",
@@ -2983,7 +2596,7 @@ var FileIcon = () => /* @__PURE__ */ jsx25(
2983
2596
  )
2984
2597
  }
2985
2598
  );
2986
- var FileCornerIcon = () => /* @__PURE__ */ jsx25(
2599
+ var FileCornerIcon = () => /* @__PURE__ */ jsx24(
2987
2600
  "svg",
2988
2601
  {
2989
2602
  width: "10",
@@ -2992,7 +2605,7 @@ var FileCornerIcon = () => /* @__PURE__ */ jsx25(
2992
2605
  viewBox: "0 0 10 10",
2993
2606
  fill: "currentColor",
2994
2607
  xmlns: "http://www.w3.org/2000/svg",
2995
- children: /* @__PURE__ */ jsx25(
2608
+ children: /* @__PURE__ */ jsx24(
2996
2609
  "path",
2997
2610
  {
2998
2611
  d: "M0 0.75H0.343146C1.40401 0.75 2.42143 1.17143 3.17157 1.92157L8.82843 7.57843C9.57857 8.32857 10 9.34599 10 10.4069V10.75H4C1.79086 10.75 0 8.95914 0 6.75V0.75Z",
@@ -3035,7 +2648,7 @@ var ImageUploadDragArea = ({
3035
2648
  onFile(files);
3036
2649
  }
3037
2650
  };
3038
- return /* @__PURE__ */ jsx25(
2651
+ return /* @__PURE__ */ jsx24(
3039
2652
  "div",
3040
2653
  {
3041
2654
  className: `tiptap-image-upload-drag-area ${isDragActive ? "drag-active" : ""} ${isDragOver ? "drag-over" : ""}`,
@@ -3059,7 +2672,7 @@ var ImageUploadPreview = ({
3059
2672
  return `${parseFloat((bytes / Math.pow(k, i)).toFixed(2))} ${sizes[i]}`;
3060
2673
  };
3061
2674
  return /* @__PURE__ */ jsxs11("div", { className: "tiptap-image-upload-preview", children: [
3062
- fileItem.status === "uploading" && /* @__PURE__ */ jsx25(
2675
+ fileItem.status === "uploading" && /* @__PURE__ */ jsx24(
3063
2676
  "div",
3064
2677
  {
3065
2678
  className: "tiptap-image-upload-progress",
@@ -3068,10 +2681,10 @@ var ImageUploadPreview = ({
3068
2681
  ),
3069
2682
  /* @__PURE__ */ jsxs11("div", { className: "tiptap-image-upload-preview-content", children: [
3070
2683
  /* @__PURE__ */ jsxs11("div", { className: "tiptap-image-upload-file-info", children: [
3071
- /* @__PURE__ */ jsx25("div", { className: "tiptap-image-upload-file-icon", children: /* @__PURE__ */ jsx25(CloudUploadIcon, {}) }),
2684
+ /* @__PURE__ */ jsx24("div", { className: "tiptap-image-upload-file-icon", children: /* @__PURE__ */ jsx24(CloudUploadIcon, {}) }),
3072
2685
  /* @__PURE__ */ jsxs11("div", { className: "tiptap-image-upload-details", children: [
3073
- /* @__PURE__ */ jsx25("span", { className: "tiptap-image-upload-text", children: fileItem.file.name }),
3074
- /* @__PURE__ */ jsx25("span", { className: "tiptap-image-upload-subtext", children: formatFileSize(fileItem.file.size) })
2686
+ /* @__PURE__ */ jsx24("span", { className: "tiptap-image-upload-text", children: fileItem.file.name }),
2687
+ /* @__PURE__ */ jsx24("span", { className: "tiptap-image-upload-subtext", children: formatFileSize(fileItem.file.size) })
3075
2688
  ] })
3076
2689
  ] }),
3077
2690
  /* @__PURE__ */ jsxs11("div", { className: "tiptap-image-upload-actions", children: [
@@ -3079,7 +2692,7 @@ var ImageUploadPreview = ({
3079
2692
  fileItem.progress,
3080
2693
  "%"
3081
2694
  ] }),
3082
- /* @__PURE__ */ jsx25(
2695
+ /* @__PURE__ */ jsx24(
3083
2696
  Button2,
3084
2697
  {
3085
2698
  type: "button",
@@ -3088,7 +2701,7 @@ var ImageUploadPreview = ({
3088
2701
  e.stopPropagation();
3089
2702
  onRemove();
3090
2703
  },
3091
- children: /* @__PURE__ */ jsx25(CloseIcon, { className: "tiptap-button-icon" })
2704
+ children: /* @__PURE__ */ jsx24(CloseIcon, { className: "tiptap-button-icon" })
3092
2705
  }
3093
2706
  )
3094
2707
  ] })
@@ -3100,13 +2713,13 @@ var DropZoneContent = ({
3100
2713
  limit
3101
2714
  }) => /* @__PURE__ */ jsxs11(Fragment3, { children: [
3102
2715
  /* @__PURE__ */ jsxs11("div", { className: "tiptap-image-upload-dropzone", children: [
3103
- /* @__PURE__ */ jsx25(FileIcon, {}),
3104
- /* @__PURE__ */ jsx25(FileCornerIcon, {}),
3105
- /* @__PURE__ */ jsx25("div", { className: "tiptap-image-upload-icon-container", children: /* @__PURE__ */ jsx25(CloudUploadIcon, {}) })
2716
+ /* @__PURE__ */ jsx24(FileIcon, {}),
2717
+ /* @__PURE__ */ jsx24(FileCornerIcon, {}),
2718
+ /* @__PURE__ */ jsx24("div", { className: "tiptap-image-upload-icon-container", children: /* @__PURE__ */ jsx24(CloudUploadIcon, {}) })
3106
2719
  ] }),
3107
2720
  /* @__PURE__ */ jsxs11("div", { className: "tiptap-image-upload-content", children: [
3108
2721
  /* @__PURE__ */ jsxs11("span", { className: "tiptap-image-upload-text", children: [
3109
- /* @__PURE__ */ jsx25("em", { children: "Click to upload" }),
2722
+ /* @__PURE__ */ jsx24("em", { children: "Click to upload" }),
3110
2723
  " or drag and drop"
3111
2724
  ] }),
3112
2725
  /* @__PURE__ */ jsxs11("span", { className: "tiptap-image-upload-subtext", children: [
@@ -3177,7 +2790,7 @@ var ImageUploadNode = (props) => {
3177
2790
  tabIndex: 0,
3178
2791
  onClick: handleClick,
3179
2792
  children: [
3180
- !hasFiles && /* @__PURE__ */ jsx25(ImageUploadDragArea, { onFile: handleUpload, children: /* @__PURE__ */ jsx25(DropZoneContent, { maxSize, limit }) }),
2793
+ !hasFiles && /* @__PURE__ */ jsx24(ImageUploadDragArea, { onFile: handleUpload, children: /* @__PURE__ */ jsx24(DropZoneContent, { maxSize, limit }) }),
3181
2794
  hasFiles && /* @__PURE__ */ jsxs11("div", { className: "tiptap-image-upload-previews", children: [
3182
2795
  fileItems.length > 1 && /* @__PURE__ */ jsxs11("div", { className: "tiptap-image-upload-header", children: [
3183
2796
  /* @__PURE__ */ jsxs11("span", { children: [
@@ -3185,7 +2798,7 @@ var ImageUploadNode = (props) => {
3185
2798
  fileItems.length,
3186
2799
  " files"
3187
2800
  ] }),
3188
- /* @__PURE__ */ jsx25(
2801
+ /* @__PURE__ */ jsx24(
3189
2802
  Button2,
3190
2803
  {
3191
2804
  type: "button",
@@ -3198,7 +2811,7 @@ var ImageUploadNode = (props) => {
3198
2811
  }
3199
2812
  )
3200
2813
  ] }),
3201
- fileItems.map((fileItem) => /* @__PURE__ */ jsx25(
2814
+ fileItems.map((fileItem) => /* @__PURE__ */ jsx24(
3202
2815
  ImageUploadPreview,
3203
2816
  {
3204
2817
  fileItem,
@@ -3207,7 +2820,7 @@ var ImageUploadNode = (props) => {
3207
2820
  fileItem.id
3208
2821
  ))
3209
2822
  ] }),
3210
- /* @__PURE__ */ jsx25(
2823
+ /* @__PURE__ */ jsx24(
3211
2824
  "input",
3212
2825
  {
3213
2826
  ref: inputRef,
@@ -3225,7 +2838,7 @@ var ImageUploadNode = (props) => {
3225
2838
  };
3226
2839
 
3227
2840
  // src/components/tiptap-node/image-upload-node/image-upload-node-extension.ts
3228
- var ImageUploadNode2 = Node6.create({
2841
+ var ImageUploadNode2 = Node4.create({
3229
2842
  name: "imageUpload",
3230
2843
  group: "block",
3231
2844
  draggable: true,
@@ -3262,7 +2875,7 @@ var ImageUploadNode2 = Node6.create({
3262
2875
  renderHTML({ HTMLAttributes }) {
3263
2876
  return [
3264
2877
  "div",
3265
- mergeAttributes4({ "data-type": "image-upload" }, HTMLAttributes)
2878
+ mergeAttributes2({ "data-type": "image-upload" }, HTMLAttributes)
3266
2879
  ];
3267
2880
  },
3268
2881
  addNodeView() {
@@ -3303,26 +2916,29 @@ var ImageUploadNode2 = Node6.create({
3303
2916
  });
3304
2917
 
3305
2918
  // src/components/tiptap-node/horizontal-rule-node/horizontal-rule-node-extension.ts
3306
- import { mergeAttributes as mergeAttributes5 } from "@tiptap/react";
2919
+ import { mergeAttributes as mergeAttributes3 } from "@tiptap/react";
3307
2920
  import TiptapHorizontalRule from "@tiptap/extension-horizontal-rule";
3308
2921
  var HorizontalRule = TiptapHorizontalRule.extend({
3309
2922
  renderHTML() {
3310
2923
  return [
3311
2924
  "div",
3312
- mergeAttributes5(this.options.HTMLAttributes, { "data-type": this.name }),
2925
+ mergeAttributes3(this.options.HTMLAttributes, { "data-type": this.name }),
3313
2926
  ["hr"]
3314
2927
  ];
3315
2928
  }
3316
2929
  });
3317
2930
 
2931
+ // src/components/tiptap-templates/simple/simple-editor.tsx
2932
+ import Blockquote from "@tiptap/extension-blockquote";
2933
+
3318
2934
  // src/components/tiptap-ui/heading-dropdown-menu/heading-dropdown-menu.tsx
3319
2935
  import { forwardRef as forwardRef9, useCallback as useCallback10, useState as useState13 } from "react";
3320
2936
 
3321
2937
  // src/components/tiptap-icons/chevron-down-icon.tsx
3322
2938
  import { memo as memo7 } from "react";
3323
- import { jsx as jsx26 } from "react/jsx-runtime";
2939
+ import { jsx as jsx25 } from "react/jsx-runtime";
3324
2940
  var ChevronDownIcon = memo7(({ className, ...props }) => {
3325
- return /* @__PURE__ */ jsx26(
2941
+ return /* @__PURE__ */ jsx25(
3326
2942
  "svg",
3327
2943
  {
3328
2944
  width: "24",
@@ -3332,7 +2948,7 @@ var ChevronDownIcon = memo7(({ className, ...props }) => {
3332
2948
  fill: "currentColor",
3333
2949
  xmlns: "http://www.w3.org/2000/svg",
3334
2950
  ...props,
3335
- children: /* @__PURE__ */ jsx26(
2951
+ children: /* @__PURE__ */ jsx25(
3336
2952
  "path",
3337
2953
  {
3338
2954
  fillRule: "evenodd",
@@ -3380,7 +2996,7 @@ import { forwardRef as forwardRef6, useCallback as useCallback8 } from "react";
3380
2996
 
3381
2997
  // src/components/tiptap-ui-primitive/badge/badge.tsx
3382
2998
  import { forwardRef as forwardRef5 } from "react";
3383
- import { jsx as jsx27 } from "react/jsx-runtime";
2999
+ import { jsx as jsx26 } from "react/jsx-runtime";
3384
3000
  var Badge = forwardRef5(
3385
3001
  ({
3386
3002
  variant,
@@ -3391,7 +3007,7 @@ var Badge = forwardRef5(
3391
3007
  children,
3392
3008
  ...props
3393
3009
  }, ref) => {
3394
- return /* @__PURE__ */ jsx27(
3010
+ return /* @__PURE__ */ jsx26(
3395
3011
  "div",
3396
3012
  {
3397
3013
  ref,
@@ -3409,12 +3025,12 @@ var Badge = forwardRef5(
3409
3025
  Badge.displayName = "Badge";
3410
3026
 
3411
3027
  // src/components/tiptap-ui/heading-button/heading-button.tsx
3412
- import { Fragment as Fragment4, jsx as jsx28, jsxs as jsxs12 } from "react/jsx-runtime";
3028
+ import { Fragment as Fragment4, jsx as jsx27, jsxs as jsxs12 } from "react/jsx-runtime";
3413
3029
  function HeadingShortcutBadge({
3414
3030
  level,
3415
3031
  shortcutKeys = HEADING_SHORTCUT_KEYS[level]
3416
3032
  }) {
3417
- return /* @__PURE__ */ jsx28(Badge, { children: parseShortcutKeys({ shortcutKeys }) });
3033
+ return /* @__PURE__ */ jsx27(Badge, { children: parseShortcutKeys({ shortcutKeys }) });
3418
3034
  }
3419
3035
  var HeadingButton = forwardRef6(
3420
3036
  ({
@@ -3454,7 +3070,7 @@ var HeadingButton = forwardRef6(
3454
3070
  if (!isVisible) {
3455
3071
  return null;
3456
3072
  }
3457
- return /* @__PURE__ */ jsx28(
3073
+ return /* @__PURE__ */ jsx27(
3458
3074
  Button2,
3459
3075
  {
3460
3076
  type: "button",
@@ -3471,9 +3087,9 @@ var HeadingButton = forwardRef6(
3471
3087
  ...buttonProps,
3472
3088
  ref,
3473
3089
  children: children ?? /* @__PURE__ */ jsxs12(Fragment4, { children: [
3474
- /* @__PURE__ */ jsx28(Icon, { className: "tiptap-button-icon" }),
3475
- text && /* @__PURE__ */ jsx28("span", { className: "tiptap-button-text", children: text }),
3476
- showShortcut && /* @__PURE__ */ jsx28(HeadingShortcutBadge, { level, shortcutKeys })
3090
+ /* @__PURE__ */ jsx27(Icon, { className: "tiptap-button-icon" }),
3091
+ text && /* @__PURE__ */ jsx27("span", { className: "tiptap-button-text", children: text }),
3092
+ showShortcut && /* @__PURE__ */ jsx27(HeadingShortcutBadge, { level, shortcutKeys })
3477
3093
  ] })
3478
3094
  }
3479
3095
  );
@@ -3483,11 +3099,11 @@ HeadingButton.displayName = "HeadingButton";
3483
3099
 
3484
3100
  // src/components/tiptap-ui/heading-button/use-heading.ts
3485
3101
  import { useCallback as useCallback9, useEffect as useEffect5, useState as useState12 } from "react";
3486
- import { NodeSelection as NodeSelection2, TextSelection as TextSelection3 } from "@tiptap/pm/state";
3102
+ import { NodeSelection as NodeSelection2, TextSelection as TextSelection2 } from "@tiptap/pm/state";
3487
3103
 
3488
3104
  // src/components/tiptap-icons/heading-one-icon.tsx
3489
3105
  import { memo as memo8 } from "react";
3490
- import { jsx as jsx29, jsxs as jsxs13 } from "react/jsx-runtime";
3106
+ import { jsx as jsx28, jsxs as jsxs13 } from "react/jsx-runtime";
3491
3107
  var HeadingOneIcon = memo8(({ className, ...props }) => {
3492
3108
  return /* @__PURE__ */ jsxs13(
3493
3109
  "svg",
@@ -3500,14 +3116,14 @@ var HeadingOneIcon = memo8(({ className, ...props }) => {
3500
3116
  xmlns: "http://www.w3.org/2000/svg",
3501
3117
  ...props,
3502
3118
  children: [
3503
- /* @__PURE__ */ jsx29(
3119
+ /* @__PURE__ */ jsx28(
3504
3120
  "path",
3505
3121
  {
3506
3122
  d: "M5 6C5 5.44772 4.55228 5 4 5C3.44772 5 3 5.44772 3 6V18C3 18.5523 3.44772 19 4 19C4.55228 19 5 18.5523 5 18V13H11V18C11 18.5523 11.4477 19 12 19C12.5523 19 13 18.5523 13 18V6C13 5.44772 12.5523 5 12 5C11.4477 5 11 5.44772 11 6V11H5V6Z",
3507
3123
  fill: "currentColor"
3508
3124
  }
3509
3125
  ),
3510
- /* @__PURE__ */ jsx29(
3126
+ /* @__PURE__ */ jsx28(
3511
3127
  "path",
3512
3128
  {
3513
3129
  d: "M21.0001 10C21.0001 9.63121 20.7971 9.29235 20.472 9.11833C20.1468 8.94431 19.7523 8.96338 19.4454 9.16795L16.4454 11.168C15.9859 11.4743 15.8617 12.0952 16.1681 12.5547C16.4744 13.0142 17.0953 13.1384 17.5548 12.8321L19.0001 11.8685V18C19.0001 18.5523 19.4478 19 20.0001 19C20.5524 19 21.0001 18.5523 21.0001 18V10Z",
@@ -3522,7 +3138,7 @@ HeadingOneIcon.displayName = "HeadingOneIcon";
3522
3138
 
3523
3139
  // src/components/tiptap-icons/heading-two-icon.tsx
3524
3140
  import { memo as memo9 } from "react";
3525
- import { jsx as jsx30, jsxs as jsxs14 } from "react/jsx-runtime";
3141
+ import { jsx as jsx29, jsxs as jsxs14 } from "react/jsx-runtime";
3526
3142
  var HeadingTwoIcon = memo9(({ className, ...props }) => {
3527
3143
  return /* @__PURE__ */ jsxs14(
3528
3144
  "svg",
@@ -3535,14 +3151,14 @@ var HeadingTwoIcon = memo9(({ className, ...props }) => {
3535
3151
  xmlns: "http://www.w3.org/2000/svg",
3536
3152
  ...props,
3537
3153
  children: [
3538
- /* @__PURE__ */ jsx30(
3154
+ /* @__PURE__ */ jsx29(
3539
3155
  "path",
3540
3156
  {
3541
3157
  d: "M5 6C5 5.44772 4.55228 5 4 5C3.44772 5 3 5.44772 3 6V18C3 18.5523 3.44772 19 4 19C4.55228 19 5 18.5523 5 18V13H11V18C11 18.5523 11.4477 19 12 19C12.5523 19 13 18.5523 13 18V6C13 5.44772 12.5523 5 12 5C11.4477 5 11 5.44772 11 6V11H5V6Z",
3542
3158
  fill: "currentColor"
3543
3159
  }
3544
3160
  ),
3545
- /* @__PURE__ */ jsx30(
3161
+ /* @__PURE__ */ jsx29(
3546
3162
  "path",
3547
3163
  {
3548
3164
  d: "M22.0001 12C22.0001 10.7611 21.1663 9.79297 20.0663 9.42632C18.9547 9.05578 17.6171 9.28724 16.4001 10.2C15.9582 10.5314 15.8687 11.1582 16.2001 11.6C16.5314 12.0418 17.1582 12.1314 17.6001 11.8C18.383 11.2128 19.0455 11.1942 19.4338 11.3237C19.8339 11.457 20.0001 11.7389 20.0001 12C20.0001 12.4839 19.8554 12.7379 19.6537 12.9481C19.4275 13.1837 19.1378 13.363 18.7055 13.6307C18.6313 13.6767 18.553 13.7252 18.4701 13.777C17.9572 14.0975 17.3128 14.5261 16.8163 15.2087C16.3007 15.9177 16.0001 16.8183 16.0001 18C16.0001 18.5523 16.4478 19 17.0001 19H21.0001C21.5523 19 22.0001 18.5523 22.0001 18C22.0001 17.4477 21.5523 17 21.0001 17H18.131C18.21 16.742 18.3176 16.5448 18.4338 16.385C18.6873 16.0364 19.0429 15.7775 19.5301 15.473C19.5898 15.4357 19.6536 15.3966 19.7205 15.3556C20.139 15.0992 20.6783 14.7687 21.0964 14.3332C21.6447 13.7621 22.0001 13.0161 22.0001 12Z",
@@ -3557,7 +3173,7 @@ HeadingTwoIcon.displayName = "HeadingTwoIcon";
3557
3173
 
3558
3174
  // src/components/tiptap-icons/heading-three-icon.tsx
3559
3175
  import { memo as memo10 } from "react";
3560
- import { jsx as jsx31, jsxs as jsxs15 } from "react/jsx-runtime";
3176
+ import { jsx as jsx30, jsxs as jsxs15 } from "react/jsx-runtime";
3561
3177
  var HeadingThreeIcon = memo10(({ className, ...props }) => {
3562
3178
  return /* @__PURE__ */ jsxs15(
3563
3179
  "svg",
@@ -3570,14 +3186,14 @@ var HeadingThreeIcon = memo10(({ className, ...props }) => {
3570
3186
  xmlns: "http://www.w3.org/2000/svg",
3571
3187
  ...props,
3572
3188
  children: [
3573
- /* @__PURE__ */ jsx31(
3189
+ /* @__PURE__ */ jsx30(
3574
3190
  "path",
3575
3191
  {
3576
3192
  d: "M4 5C4.55228 5 5 5.44772 5 6V11H11V6C11 5.44772 11.4477 5 12 5C12.5523 5 13 5.44772 13 6V18C13 18.5523 12.5523 19 12 19C11.4477 19 11 18.5523 11 18V13H5V18C5 18.5523 4.55228 19 4 19C3.44772 19 3 18.5523 3 18V6C3 5.44772 3.44772 5 4 5Z",
3577
3193
  fill: "currentColor"
3578
3194
  }
3579
3195
  ),
3580
- /* @__PURE__ */ jsx31(
3196
+ /* @__PURE__ */ jsx30(
3581
3197
  "path",
3582
3198
  {
3583
3199
  fillRule: "evenodd",
@@ -3586,7 +3202,7 @@ var HeadingThreeIcon = memo10(({ className, ...props }) => {
3586
3202
  fill: "currentColor"
3587
3203
  }
3588
3204
  ),
3589
- /* @__PURE__ */ jsx31(
3205
+ /* @__PURE__ */ jsx30(
3590
3206
  "path",
3591
3207
  {
3592
3208
  fillRule: "evenodd",
@@ -3603,7 +3219,7 @@ HeadingThreeIcon.displayName = "HeadingThreeIcon";
3603
3219
 
3604
3220
  // src/components/tiptap-icons/heading-four-icon.tsx
3605
3221
  import { memo as memo11 } from "react";
3606
- import { jsx as jsx32, jsxs as jsxs16 } from "react/jsx-runtime";
3222
+ import { jsx as jsx31, jsxs as jsxs16 } from "react/jsx-runtime";
3607
3223
  var HeadingFourIcon = memo11(({ className, ...props }) => {
3608
3224
  return /* @__PURE__ */ jsxs16(
3609
3225
  "svg",
@@ -3616,14 +3232,14 @@ var HeadingFourIcon = memo11(({ className, ...props }) => {
3616
3232
  xmlns: "http://www.w3.org/2000/svg",
3617
3233
  ...props,
3618
3234
  children: [
3619
- /* @__PURE__ */ jsx32(
3235
+ /* @__PURE__ */ jsx31(
3620
3236
  "path",
3621
3237
  {
3622
3238
  d: "M4 5C4.55228 5 5 5.44772 5 6V11H11V6C11 5.44772 11.4477 5 12 5C12.5523 5 13 5.44772 13 6V18C13 18.5523 12.5523 19 12 19C11.4477 19 11 18.5523 11 18V13H5V18C5 18.5523 4.55228 19 4 19C3.44772 19 3 18.5523 3 18V6C3 5.44772 3.44772 5 4 5Z",
3623
3239
  fill: "currentColor"
3624
3240
  }
3625
3241
  ),
3626
- /* @__PURE__ */ jsx32(
3242
+ /* @__PURE__ */ jsx31(
3627
3243
  "path",
3628
3244
  {
3629
3245
  d: "M17 9C17.5523 9 18 9.44772 18 10V13H20V10C20 9.44772 20.4477 9 21 9C21.5523 9 22 9.44772 22 10V18C22 18.5523 21.5523 19 21 19C20.4477 19 20 18.5523 20 18V15H17C16.4477 15 16 14.5523 16 14V10C16 9.44772 16.4477 9 17 9Z",
@@ -3638,7 +3254,7 @@ HeadingFourIcon.displayName = "HeadingFourIcon";
3638
3254
 
3639
3255
  // src/components/tiptap-icons/heading-five-icon.tsx
3640
3256
  import { memo as memo12 } from "react";
3641
- import { jsx as jsx33, jsxs as jsxs17 } from "react/jsx-runtime";
3257
+ import { jsx as jsx32, jsxs as jsxs17 } from "react/jsx-runtime";
3642
3258
  var HeadingFiveIcon = memo12(({ className, ...props }) => {
3643
3259
  return /* @__PURE__ */ jsxs17(
3644
3260
  "svg",
@@ -3651,14 +3267,14 @@ var HeadingFiveIcon = memo12(({ className, ...props }) => {
3651
3267
  xmlns: "http://www.w3.org/2000/svg",
3652
3268
  ...props,
3653
3269
  children: [
3654
- /* @__PURE__ */ jsx33(
3270
+ /* @__PURE__ */ jsx32(
3655
3271
  "path",
3656
3272
  {
3657
3273
  d: "M5 6C5 5.44772 4.55228 5 4 5C3.44772 5 3 5.44772 3 6V18C3 18.5523 3.44772 19 4 19C4.55228 19 5 18.5523 5 18V13H11V18C11 18.5523 11.4477 19 12 19C12.5523 19 13 18.5523 13 18V6C13 5.44772 12.5523 5 12 5C11.4477 5 11 5.44772 11 6V11H5V6Z",
3658
3274
  fill: "currentColor"
3659
3275
  }
3660
3276
  ),
3661
- /* @__PURE__ */ jsx33(
3277
+ /* @__PURE__ */ jsx32(
3662
3278
  "path",
3663
3279
  {
3664
3280
  d: "M16 10C16 9.44772 16.4477 9 17 9H21C21.5523 9 22 9.44772 22 10C22 10.5523 21.5523 11 21 11H18V12H18.3C20.2754 12 22 13.4739 22 15.5C22 17.5261 20.2754 19 18.3 19C17.6457 19 17.0925 18.8643 16.5528 18.5944C16.0588 18.3474 15.8586 17.7468 16.1055 17.2528C16.3525 16.7588 16.9532 16.5586 17.4472 16.8056C17.7074 16.9357 17.9542 17 18.3 17C19.3246 17 20 16.2739 20 15.5C20 14.7261 19.3246 14 18.3 14H17C16.4477 14 16 13.5523 16 13L16 12.9928V10Z",
@@ -3673,7 +3289,7 @@ HeadingFiveIcon.displayName = "HeadingFiveIcon";
3673
3289
 
3674
3290
  // src/components/tiptap-icons/heading-six-icon.tsx
3675
3291
  import { memo as memo13 } from "react";
3676
- import { jsx as jsx34, jsxs as jsxs18 } from "react/jsx-runtime";
3292
+ import { jsx as jsx33, jsxs as jsxs18 } from "react/jsx-runtime";
3677
3293
  var HeadingSixIcon = memo13(({ className, ...props }) => {
3678
3294
  return /* @__PURE__ */ jsxs18(
3679
3295
  "svg",
@@ -3686,14 +3302,14 @@ var HeadingSixIcon = memo13(({ className, ...props }) => {
3686
3302
  xmlns: "http://www.w3.org/2000/svg",
3687
3303
  ...props,
3688
3304
  children: [
3689
- /* @__PURE__ */ jsx34(
3305
+ /* @__PURE__ */ jsx33(
3690
3306
  "path",
3691
3307
  {
3692
3308
  d: "M5 6C5 5.44772 4.55228 5 4 5C3.44772 5 3 5.44772 3 6V18C3 18.5523 3.44772 19 4 19C4.55228 19 5 18.5523 5 18V13H11V18C11 18.5523 11.4477 19 12 19C12.5523 19 13 18.5523 13 18V6C13 5.44772 12.5523 5 12 5C11.4477 5 11 5.44772 11 6V11H5V6Z",
3693
3309
  fill: "currentColor"
3694
3310
  }
3695
3311
  ),
3696
- /* @__PURE__ */ jsx34(
3312
+ /* @__PURE__ */ jsx33(
3697
3313
  "path",
3698
3314
  {
3699
3315
  fillRule: "evenodd",
@@ -3760,7 +3376,7 @@ function toggleHeading(editor, level) {
3760
3376
  const view = editor.view;
3761
3377
  let state = view.state;
3762
3378
  let tr = state.tr;
3763
- if (state.selection.empty || state.selection instanceof TextSelection3) {
3379
+ if (state.selection.empty || state.selection instanceof TextSelection2) {
3764
3380
  const pos = findNodePosition({
3765
3381
  editor,
3766
3382
  node: state.selection.$anchor.node(1)
@@ -3779,7 +3395,7 @@ function toggleHeading(editor, level) {
3779
3395
  const to = lastChild ? selection.to - lastChild.nodeSize : selection.to - 1;
3780
3396
  const resolvedFrom = state.doc.resolve(from);
3781
3397
  const resolvedTo = state.doc.resolve(to);
3782
- chain = chain.setTextSelection(TextSelection3.between(resolvedFrom, resolvedTo)).clearNodes();
3398
+ chain = chain.setTextSelection(TextSelection2.between(resolvedFrom, resolvedTo)).clearNodes();
3783
3399
  }
3784
3400
  const isActive = levels.some(
3785
3401
  (l) => editor.isActive("heading", { level: l })
@@ -3848,22 +3464,22 @@ function useHeading(config) {
3848
3464
  // src/components/tiptap-ui-primitive/dropdown-menu/dropdown-menu.tsx
3849
3465
  import { forwardRef as forwardRef7 } from "react";
3850
3466
  import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
3851
- import { jsx as jsx35 } from "react/jsx-runtime";
3467
+ import { jsx as jsx34 } from "react/jsx-runtime";
3852
3468
  function DropdownMenu({
3853
3469
  ...props
3854
3470
  }) {
3855
- return /* @__PURE__ */ jsx35(DropdownMenuPrimitive.Root, { modal: false, ...props });
3471
+ return /* @__PURE__ */ jsx34(DropdownMenuPrimitive.Root, { modal: false, ...props });
3856
3472
  }
3857
3473
  function DropdownMenuPortal({
3858
3474
  ...props
3859
3475
  }) {
3860
- return /* @__PURE__ */ jsx35(DropdownMenuPrimitive.Portal, { ...props });
3476
+ return /* @__PURE__ */ jsx34(DropdownMenuPrimitive.Portal, { ...props });
3861
3477
  }
3862
- var DropdownMenuTrigger = forwardRef7(({ ...props }, ref) => /* @__PURE__ */ jsx35(DropdownMenuPrimitive.Trigger, { ref, ...props }));
3478
+ var DropdownMenuTrigger = forwardRef7(({ ...props }, ref) => /* @__PURE__ */ jsx34(DropdownMenuPrimitive.Trigger, { ref, ...props }));
3863
3479
  DropdownMenuTrigger.displayName = DropdownMenuPrimitive.Trigger.displayName;
3864
3480
  var DropdownMenuItem = DropdownMenuPrimitive.Item;
3865
3481
  var DropdownMenuSubContent = forwardRef7(({ className, portal = true, ...props }, ref) => {
3866
- const content = /* @__PURE__ */ jsx35(
3482
+ const content = /* @__PURE__ */ jsx34(
3867
3483
  DropdownMenuPrimitive.SubContent,
3868
3484
  {
3869
3485
  ref,
@@ -3871,11 +3487,11 @@ var DropdownMenuSubContent = forwardRef7(({ className, portal = true, ...props }
3871
3487
  ...props
3872
3488
  }
3873
3489
  );
3874
- return portal ? /* @__PURE__ */ jsx35(DropdownMenuPortal, { ...typeof portal === "object" ? portal : {}, children: content }) : content;
3490
+ return portal ? /* @__PURE__ */ jsx34(DropdownMenuPortal, { ...typeof portal === "object" ? portal : {}, children: content }) : content;
3875
3491
  });
3876
3492
  DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
3877
3493
  var DropdownMenuContent = forwardRef7(({ className, sideOffset = 4, portal = false, ...props }, ref) => {
3878
- const content = /* @__PURE__ */ jsx35(
3494
+ const content = /* @__PURE__ */ jsx34(
3879
3495
  DropdownMenuPrimitive.Content,
3880
3496
  {
3881
3497
  ref,
@@ -3885,22 +3501,22 @@ var DropdownMenuContent = forwardRef7(({ className, sideOffset = 4, portal = fal
3885
3501
  ...props
3886
3502
  }
3887
3503
  );
3888
- return portal ? /* @__PURE__ */ jsx35(DropdownMenuPortal, { ...typeof portal === "object" ? portal : {}, children: content }) : content;
3504
+ return portal ? /* @__PURE__ */ jsx34(DropdownMenuPortal, { ...typeof portal === "object" ? portal : {}, children: content }) : content;
3889
3505
  });
3890
3506
  DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
3891
3507
 
3892
3508
  // src/components/tiptap-ui-primitive/card/card.tsx
3893
3509
  import { forwardRef as forwardRef8 } from "react";
3894
- import { jsx as jsx36 } from "react/jsx-runtime";
3510
+ import { jsx as jsx35 } from "react/jsx-runtime";
3895
3511
  var Card = forwardRef8(
3896
3512
  ({ className, ...props }, ref) => {
3897
- return /* @__PURE__ */ jsx36("div", { ref, className: cn2("tiptap-card", className), ...props });
3513
+ return /* @__PURE__ */ jsx35("div", { ref, className: cn2("tiptap-card", className), ...props });
3898
3514
  }
3899
3515
  );
3900
3516
  Card.displayName = "Card";
3901
3517
  var CardHeader = forwardRef8(
3902
3518
  ({ className, ...props }, ref) => {
3903
- return /* @__PURE__ */ jsx36(
3519
+ return /* @__PURE__ */ jsx35(
3904
3520
  "div",
3905
3521
  {
3906
3522
  ref,
@@ -3913,12 +3529,12 @@ var CardHeader = forwardRef8(
3913
3529
  CardHeader.displayName = "CardHeader";
3914
3530
  var CardBody = forwardRef8(
3915
3531
  ({ className, ...props }, ref) => {
3916
- return /* @__PURE__ */ jsx36("div", { ref, className: cn2("tiptap-card-body", className), ...props });
3532
+ return /* @__PURE__ */ jsx35("div", { ref, className: cn2("tiptap-card-body", className), ...props });
3917
3533
  }
3918
3534
  );
3919
3535
  CardBody.displayName = "CardBody";
3920
3536
  var CardItemGroup = forwardRef8(({ className, orientation = "vertical", ...props }, ref) => {
3921
- return /* @__PURE__ */ jsx36(
3537
+ return /* @__PURE__ */ jsx35(
3922
3538
  "div",
3923
3539
  {
3924
3540
  ref,
@@ -3931,7 +3547,7 @@ var CardItemGroup = forwardRef8(({ className, orientation = "vertical", ...props
3931
3547
  CardItemGroup.displayName = "CardItemGroup";
3932
3548
  var CardGroupLabel = forwardRef8(
3933
3549
  ({ className, ...props }, ref) => {
3934
- return /* @__PURE__ */ jsx36(
3550
+ return /* @__PURE__ */ jsx35(
3935
3551
  "div",
3936
3552
  {
3937
3553
  ref,
@@ -3944,7 +3560,7 @@ var CardGroupLabel = forwardRef8(
3944
3560
  CardGroupLabel.displayName = "CardGroupLabel";
3945
3561
  var CardFooter = forwardRef8(
3946
3562
  ({ className, ...props }, ref) => {
3947
- return /* @__PURE__ */ jsx36(
3563
+ return /* @__PURE__ */ jsx35(
3948
3564
  "div",
3949
3565
  {
3950
3566
  ref,
@@ -3957,7 +3573,7 @@ var CardFooter = forwardRef8(
3957
3573
  CardFooter.displayName = "CardFooter";
3958
3574
 
3959
3575
  // src/components/tiptap-ui/heading-dropdown-menu/heading-dropdown-menu.tsx
3960
- import { jsx as jsx37, jsxs as jsxs19 } from "react/jsx-runtime";
3576
+ import { jsx as jsx36, jsxs as jsxs19 } from "react/jsx-runtime";
3961
3577
  var HeadingDropdownMenu = forwardRef9(
3962
3578
  ({
3963
3579
  editor: providedEditor,
@@ -3986,7 +3602,7 @@ var HeadingDropdownMenu = forwardRef9(
3986
3602
  return null;
3987
3603
  }
3988
3604
  return /* @__PURE__ */ jsxs19(DropdownMenu, { modal: true, open: isOpen, onOpenChange: handleOpenChange, children: [
3989
- /* @__PURE__ */ jsx37(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs19(
3605
+ /* @__PURE__ */ jsx36(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs19(
3990
3606
  Button2,
3991
3607
  {
3992
3608
  type: "button",
@@ -4002,12 +3618,12 @@ var HeadingDropdownMenu = forwardRef9(
4002
3618
  ...buttonProps,
4003
3619
  ref,
4004
3620
  children: [
4005
- /* @__PURE__ */ jsx37(Icon, { className: "tiptap-button-icon" }),
4006
- /* @__PURE__ */ jsx37(ChevronDownIcon, { className: "tiptap-button-dropdown-small" })
3621
+ /* @__PURE__ */ jsx36(Icon, { className: "tiptap-button-icon" }),
3622
+ /* @__PURE__ */ jsx36(ChevronDownIcon, { className: "tiptap-button-dropdown-small" })
4007
3623
  ]
4008
3624
  }
4009
3625
  ) }),
4010
- /* @__PURE__ */ jsx37(DropdownMenuContent, { align: "start", portal, children: /* @__PURE__ */ jsx37(Card, { children: /* @__PURE__ */ jsx37(CardBody, { children: /* @__PURE__ */ jsx37(ButtonGroup, { children: levels.map((level) => /* @__PURE__ */ jsx37(DropdownMenuItem, { asChild: true, children: /* @__PURE__ */ jsx37(
3626
+ /* @__PURE__ */ jsx36(DropdownMenuContent, { align: "start", portal, children: /* @__PURE__ */ jsx36(Card, { children: /* @__PURE__ */ jsx36(CardBody, { children: /* @__PURE__ */ jsx36(ButtonGroup, { children: levels.map((level) => /* @__PURE__ */ jsx36(DropdownMenuItem, { asChild: true, children: /* @__PURE__ */ jsx36(
4011
3627
  HeadingButton,
4012
3628
  {
4013
3629
  editor,
@@ -4026,9 +3642,9 @@ import { useEffect as useEffect6, useState as useState14 } from "react";
4026
3642
 
4027
3643
  // src/components/tiptap-icons/heading-icon.tsx
4028
3644
  import { memo as memo14 } from "react";
4029
- import { jsx as jsx38 } from "react/jsx-runtime";
3645
+ import { jsx as jsx37 } from "react/jsx-runtime";
4030
3646
  var HeadingIcon = memo14(({ className, ...props }) => {
4031
- return /* @__PURE__ */ jsx38(
3647
+ return /* @__PURE__ */ jsx37(
4032
3648
  "svg",
4033
3649
  {
4034
3650
  width: "24",
@@ -4038,7 +3654,7 @@ var HeadingIcon = memo14(({ className, ...props }) => {
4038
3654
  fill: "currentColor",
4039
3655
  xmlns: "http://www.w3.org/2000/svg",
4040
3656
  ...props,
4041
- children: /* @__PURE__ */ jsx38(
3657
+ children: /* @__PURE__ */ jsx37(
4042
3658
  "path",
4043
3659
  {
4044
3660
  d: "M6 3C6.55228 3 7 3.44772 7 4V11H17V4C17 3.44772 17.4477 3 18 3C18.5523 3 19 3.44772 19 4V20C19 20.5523 18.5523 21 18 21C17.4477 21 17 20.5523 17 20V13H7V20C7 20.5523 6.55228 21 6 21C5.44772 21 5 20.5523 5 20V4C5 3.44772 5.44772 3 6 3Z",
@@ -4092,11 +3708,11 @@ function useHeadingDropdownMenu(config) {
4092
3708
 
4093
3709
  // src/components/tiptap-ui/image-upload-button/image-upload-button.tsx
4094
3710
  import { forwardRef as forwardRef10, useCallback as useCallback11 } from "react";
4095
- import { Fragment as Fragment5, jsx as jsx39, jsxs as jsxs20 } from "react/jsx-runtime";
3711
+ import { Fragment as Fragment5, jsx as jsx38, jsxs as jsxs20 } from "react/jsx-runtime";
4096
3712
  function ImageShortcutBadge({
4097
3713
  shortcutKeys = IMAGE_UPLOAD_SHORTCUT_KEY
4098
3714
  }) {
4099
- return /* @__PURE__ */ jsx39(Badge, { children: parseShortcutKeys({ shortcutKeys }) });
3715
+ return /* @__PURE__ */ jsx38(Badge, { children: parseShortcutKeys({ shortcutKeys }) });
4100
3716
  }
4101
3717
  var ImageUploadButton = forwardRef10(
4102
3718
  ({
@@ -4136,7 +3752,7 @@ var ImageUploadButton = forwardRef10(
4136
3752
  return null;
4137
3753
  }
4138
3754
  const RenderIcon = CustomIcon ?? Icon;
4139
- return /* @__PURE__ */ jsx39(
3755
+ return /* @__PURE__ */ jsx38(
4140
3756
  Button2,
4141
3757
  {
4142
3758
  type: "button",
@@ -4153,9 +3769,9 @@ var ImageUploadButton = forwardRef10(
4153
3769
  ...buttonProps,
4154
3770
  ref,
4155
3771
  children: children ?? /* @__PURE__ */ jsxs20(Fragment5, { children: [
4156
- /* @__PURE__ */ jsx39(RenderIcon, { className: "tiptap-button-icon" }),
4157
- text && /* @__PURE__ */ jsx39("span", { className: "tiptap-button-text", children: text }),
4158
- showShortcut && /* @__PURE__ */ jsx39(ImageShortcutBadge, { shortcutKeys })
3772
+ /* @__PURE__ */ jsx38(RenderIcon, { className: "tiptap-button-icon" }),
3773
+ text && /* @__PURE__ */ jsx38("span", { className: "tiptap-button-text", children: text }),
3774
+ showShortcut && /* @__PURE__ */ jsx38(ImageShortcutBadge, { shortcutKeys })
4159
3775
  ] })
4160
3776
  }
4161
3777
  );
@@ -4184,9 +3800,9 @@ function useIsBreakpoint(mode = "max", breakpoint = 768) {
4184
3800
 
4185
3801
  // src/components/tiptap-icons/image-plus-icon.tsx
4186
3802
  import { memo as memo15 } from "react";
4187
- import { jsx as jsx40 } from "react/jsx-runtime";
3803
+ import { jsx as jsx39 } from "react/jsx-runtime";
4188
3804
  var ImagePlusIcon = memo15(({ className, ...props }) => {
4189
- return /* @__PURE__ */ jsx40(
3805
+ return /* @__PURE__ */ jsx39(
4190
3806
  "svg",
4191
3807
  {
4192
3808
  width: "24",
@@ -4196,7 +3812,7 @@ var ImagePlusIcon = memo15(({ className, ...props }) => {
4196
3812
  fill: "currentColor",
4197
3813
  xmlns: "http://www.w3.org/2000/svg",
4198
3814
  ...props,
4199
- children: /* @__PURE__ */ jsx40(
3815
+ children: /* @__PURE__ */ jsx39(
4200
3816
  "path",
4201
3817
  {
4202
3818
  fillRule: "evenodd",
@@ -4320,12 +3936,12 @@ import { useCallback as useCallback15, useState as useState19 } from "react";
4320
3936
 
4321
3937
  // src/components/tiptap-ui/list-button/list-button.tsx
4322
3938
  import { forwardRef as forwardRef11, useCallback as useCallback13 } from "react";
4323
- import { Fragment as Fragment6, jsx as jsx41, jsxs as jsxs21 } from "react/jsx-runtime";
3939
+ import { Fragment as Fragment6, jsx as jsx40, jsxs as jsxs21 } from "react/jsx-runtime";
4324
3940
  function ListShortcutBadge({
4325
3941
  type,
4326
3942
  shortcutKeys = LIST_SHORTCUT_KEYS[type]
4327
3943
  }) {
4328
- return /* @__PURE__ */ jsx41(Badge, { children: parseShortcutKeys({ shortcutKeys }) });
3944
+ return /* @__PURE__ */ jsx40(Badge, { children: parseShortcutKeys({ shortcutKeys }) });
4329
3945
  }
4330
3946
  var ListButton = forwardRef11(
4331
3947
  ({
@@ -4365,7 +3981,7 @@ var ListButton = forwardRef11(
4365
3981
  if (!isVisible) {
4366
3982
  return null;
4367
3983
  }
4368
- return /* @__PURE__ */ jsx41(
3984
+ return /* @__PURE__ */ jsx40(
4369
3985
  Button2,
4370
3986
  {
4371
3987
  type: "button",
@@ -4382,9 +3998,9 @@ var ListButton = forwardRef11(
4382
3998
  ...buttonProps,
4383
3999
  ref,
4384
4000
  children: children ?? /* @__PURE__ */ jsxs21(Fragment6, { children: [
4385
- /* @__PURE__ */ jsx41(Icon, { className: "tiptap-button-icon" }),
4386
- text && /* @__PURE__ */ jsx41("span", { className: "tiptap-button-text", children: text }),
4387
- showShortcut && /* @__PURE__ */ jsx41(ListShortcutBadge, { type, shortcutKeys })
4001
+ /* @__PURE__ */ jsx40(Icon, { className: "tiptap-button-icon" }),
4002
+ text && /* @__PURE__ */ jsx40("span", { className: "tiptap-button-text", children: text }),
4003
+ showShortcut && /* @__PURE__ */ jsx40(ListShortcutBadge, { type, shortcutKeys })
4388
4004
  ] })
4389
4005
  }
4390
4006
  );
@@ -4394,11 +4010,11 @@ ListButton.displayName = "ListButton";
4394
4010
 
4395
4011
  // src/components/tiptap-ui/list-button/use-list.ts
4396
4012
  import { useCallback as useCallback14, useEffect as useEffect9, useState as useState17 } from "react";
4397
- import { NodeSelection as NodeSelection3, TextSelection as TextSelection4 } from "@tiptap/pm/state";
4013
+ import { NodeSelection as NodeSelection3, TextSelection as TextSelection3 } from "@tiptap/pm/state";
4398
4014
 
4399
4015
  // src/components/tiptap-icons/list-icon.tsx
4400
4016
  import { memo as memo16 } from "react";
4401
- import { jsx as jsx42, jsxs as jsxs22 } from "react/jsx-runtime";
4017
+ import { jsx as jsx41, jsxs as jsxs22 } from "react/jsx-runtime";
4402
4018
  var ListIcon = memo16(({ className, ...props }) => {
4403
4019
  return /* @__PURE__ */ jsxs22(
4404
4020
  "svg",
@@ -4411,7 +4027,7 @@ var ListIcon = memo16(({ className, ...props }) => {
4411
4027
  xmlns: "http://www.w3.org/2000/svg",
4412
4028
  ...props,
4413
4029
  children: [
4414
- /* @__PURE__ */ jsx42(
4030
+ /* @__PURE__ */ jsx41(
4415
4031
  "path",
4416
4032
  {
4417
4033
  fillRule: "evenodd",
@@ -4420,7 +4036,7 @@ var ListIcon = memo16(({ className, ...props }) => {
4420
4036
  fill: "currentColor"
4421
4037
  }
4422
4038
  ),
4423
- /* @__PURE__ */ jsx42(
4039
+ /* @__PURE__ */ jsx41(
4424
4040
  "path",
4425
4041
  {
4426
4042
  fillRule: "evenodd",
@@ -4429,7 +4045,7 @@ var ListIcon = memo16(({ className, ...props }) => {
4429
4045
  fill: "currentColor"
4430
4046
  }
4431
4047
  ),
4432
- /* @__PURE__ */ jsx42(
4048
+ /* @__PURE__ */ jsx41(
4433
4049
  "path",
4434
4050
  {
4435
4051
  fillRule: "evenodd",
@@ -4438,7 +4054,7 @@ var ListIcon = memo16(({ className, ...props }) => {
4438
4054
  fill: "currentColor"
4439
4055
  }
4440
4056
  ),
4441
- /* @__PURE__ */ jsx42(
4057
+ /* @__PURE__ */ jsx41(
4442
4058
  "path",
4443
4059
  {
4444
4060
  fillRule: "evenodd",
@@ -4447,7 +4063,7 @@ var ListIcon = memo16(({ className, ...props }) => {
4447
4063
  fill: "currentColor"
4448
4064
  }
4449
4065
  ),
4450
- /* @__PURE__ */ jsx42(
4066
+ /* @__PURE__ */ jsx41(
4451
4067
  "path",
4452
4068
  {
4453
4069
  fillRule: "evenodd",
@@ -4456,7 +4072,7 @@ var ListIcon = memo16(({ className, ...props }) => {
4456
4072
  fill: "currentColor"
4457
4073
  }
4458
4074
  ),
4459
- /* @__PURE__ */ jsx42(
4075
+ /* @__PURE__ */ jsx41(
4460
4076
  "path",
4461
4077
  {
4462
4078
  fillRule: "evenodd",
@@ -4473,7 +4089,7 @@ ListIcon.displayName = "ListIcon";
4473
4089
 
4474
4090
  // src/components/tiptap-icons/list-ordered-icon.tsx
4475
4091
  import { memo as memo17 } from "react";
4476
- import { jsx as jsx43, jsxs as jsxs23 } from "react/jsx-runtime";
4092
+ import { jsx as jsx42, jsxs as jsxs23 } from "react/jsx-runtime";
4477
4093
  var ListOrderedIcon = memo17(({ className, ...props }) => {
4478
4094
  return /* @__PURE__ */ jsxs23(
4479
4095
  "svg",
@@ -4486,7 +4102,7 @@ var ListOrderedIcon = memo17(({ className, ...props }) => {
4486
4102
  xmlns: "http://www.w3.org/2000/svg",
4487
4103
  ...props,
4488
4104
  children: [
4489
- /* @__PURE__ */ jsx43(
4105
+ /* @__PURE__ */ jsx42(
4490
4106
  "path",
4491
4107
  {
4492
4108
  fillRule: "evenodd",
@@ -4495,7 +4111,7 @@ var ListOrderedIcon = memo17(({ className, ...props }) => {
4495
4111
  fill: "currentColor"
4496
4112
  }
4497
4113
  ),
4498
- /* @__PURE__ */ jsx43(
4114
+ /* @__PURE__ */ jsx42(
4499
4115
  "path",
4500
4116
  {
4501
4117
  fillRule: "evenodd",
@@ -4504,7 +4120,7 @@ var ListOrderedIcon = memo17(({ className, ...props }) => {
4504
4120
  fill: "currentColor"
4505
4121
  }
4506
4122
  ),
4507
- /* @__PURE__ */ jsx43(
4123
+ /* @__PURE__ */ jsx42(
4508
4124
  "path",
4509
4125
  {
4510
4126
  fillRule: "evenodd",
@@ -4513,7 +4129,7 @@ var ListOrderedIcon = memo17(({ className, ...props }) => {
4513
4129
  fill: "currentColor"
4514
4130
  }
4515
4131
  ),
4516
- /* @__PURE__ */ jsx43(
4132
+ /* @__PURE__ */ jsx42(
4517
4133
  "path",
4518
4134
  {
4519
4135
  fillRule: "evenodd",
@@ -4522,7 +4138,7 @@ var ListOrderedIcon = memo17(({ className, ...props }) => {
4522
4138
  fill: "currentColor"
4523
4139
  }
4524
4140
  ),
4525
- /* @__PURE__ */ jsx43(
4141
+ /* @__PURE__ */ jsx42(
4526
4142
  "path",
4527
4143
  {
4528
4144
  fillRule: "evenodd",
@@ -4531,7 +4147,7 @@ var ListOrderedIcon = memo17(({ className, ...props }) => {
4531
4147
  fill: "currentColor"
4532
4148
  }
4533
4149
  ),
4534
- /* @__PURE__ */ jsx43(
4150
+ /* @__PURE__ */ jsx42(
4535
4151
  "path",
4536
4152
  {
4537
4153
  fillRule: "evenodd",
@@ -4548,7 +4164,7 @@ ListOrderedIcon.displayName = "ListOrderedIcon";
4548
4164
 
4549
4165
  // src/components/tiptap-icons/list-todo-icon.tsx
4550
4166
  import { memo as memo18 } from "react";
4551
- import { jsx as jsx44, jsxs as jsxs24 } from "react/jsx-runtime";
4167
+ import { jsx as jsx43, jsxs as jsxs24 } from "react/jsx-runtime";
4552
4168
  var ListTodoIcon = memo18(({ className, ...props }) => {
4553
4169
  return /* @__PURE__ */ jsxs24(
4554
4170
  "svg",
@@ -4561,7 +4177,7 @@ var ListTodoIcon = memo18(({ className, ...props }) => {
4561
4177
  xmlns: "http://www.w3.org/2000/svg",
4562
4178
  ...props,
4563
4179
  children: [
4564
- /* @__PURE__ */ jsx44(
4180
+ /* @__PURE__ */ jsx43(
4565
4181
  "path",
4566
4182
  {
4567
4183
  fillRule: "evenodd",
@@ -4570,7 +4186,7 @@ var ListTodoIcon = memo18(({ className, ...props }) => {
4570
4186
  fill: "currentColor"
4571
4187
  }
4572
4188
  ),
4573
- /* @__PURE__ */ jsx44(
4189
+ /* @__PURE__ */ jsx43(
4574
4190
  "path",
4575
4191
  {
4576
4192
  fillRule: "evenodd",
@@ -4579,7 +4195,7 @@ var ListTodoIcon = memo18(({ className, ...props }) => {
4579
4195
  fill: "currentColor"
4580
4196
  }
4581
4197
  ),
4582
- /* @__PURE__ */ jsx44(
4198
+ /* @__PURE__ */ jsx43(
4583
4199
  "path",
4584
4200
  {
4585
4201
  fillRule: "evenodd",
@@ -4588,7 +4204,7 @@ var ListTodoIcon = memo18(({ className, ...props }) => {
4588
4204
  fill: "currentColor"
4589
4205
  }
4590
4206
  ),
4591
- /* @__PURE__ */ jsx44(
4207
+ /* @__PURE__ */ jsx43(
4592
4208
  "path",
4593
4209
  {
4594
4210
  fillRule: "evenodd",
@@ -4597,7 +4213,7 @@ var ListTodoIcon = memo18(({ className, ...props }) => {
4597
4213
  fill: "currentColor"
4598
4214
  }
4599
4215
  ),
4600
- /* @__PURE__ */ jsx44(
4216
+ /* @__PURE__ */ jsx43(
4601
4217
  "path",
4602
4218
  {
4603
4219
  fillRule: "evenodd",
@@ -4685,7 +4301,7 @@ function toggleList(editor, type) {
4685
4301
  const view = editor.view;
4686
4302
  let state = view.state;
4687
4303
  let tr = state.tr;
4688
- if (state.selection.empty || state.selection instanceof TextSelection4) {
4304
+ if (state.selection.empty || state.selection instanceof TextSelection3) {
4689
4305
  const pos = findNodePosition({
4690
4306
  editor,
4691
4307
  node: state.selection.$anchor.node(1)
@@ -4704,7 +4320,7 @@ function toggleList(editor, type) {
4704
4320
  const to = lastChild ? selection.to - lastChild.nodeSize : selection.to - 1;
4705
4321
  const resolvedFrom = state.doc.resolve(from);
4706
4322
  const resolvedTo = state.doc.resolve(to);
4707
- chain = chain.setTextSelection(TextSelection4.between(resolvedFrom, resolvedTo)).clearNodes();
4323
+ chain = chain.setTextSelection(TextSelection3.between(resolvedFrom, resolvedTo)).clearNodes();
4708
4324
  }
4709
4325
  if (editor.isActive(type)) {
4710
4326
  chain.liftListItem("listItem").lift("bulletList").lift("orderedList").lift("taskList").run();
@@ -4866,7 +4482,7 @@ function useListDropdownMenu(config) {
4866
4482
  }
4867
4483
 
4868
4484
  // src/components/tiptap-ui/list-dropdown-menu/list-dropdown-menu.tsx
4869
- import { jsx as jsx45, jsxs as jsxs25 } from "react/jsx-runtime";
4485
+ import { jsx as jsx44, jsxs as jsxs25 } from "react/jsx-runtime";
4870
4486
  function ListDropdownMenu({
4871
4487
  editor: providedEditor,
4872
4488
  types = ["bulletList", "orderedList", "taskList"],
@@ -4893,7 +4509,7 @@ function ListDropdownMenu({
4893
4509
  return null;
4894
4510
  }
4895
4511
  return /* @__PURE__ */ jsxs25(DropdownMenu, { open: isOpen, onOpenChange: handleOnOpenChange, children: [
4896
- /* @__PURE__ */ jsx45(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs25(
4512
+ /* @__PURE__ */ jsx44(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs25(
4897
4513
  Button2,
4898
4514
  {
4899
4515
  type: "button",
@@ -4907,12 +4523,12 @@ function ListDropdownMenu({
4907
4523
  tooltip: "List",
4908
4524
  ...props,
4909
4525
  children: [
4910
- /* @__PURE__ */ jsx45(Icon, { className: "tiptap-button-icon" }),
4911
- /* @__PURE__ */ jsx45(ChevronDownIcon, { className: "tiptap-button-dropdown-small" })
4526
+ /* @__PURE__ */ jsx44(Icon, { className: "tiptap-button-icon" }),
4527
+ /* @__PURE__ */ jsx44(ChevronDownIcon, { className: "tiptap-button-dropdown-small" })
4912
4528
  ]
4913
4529
  }
4914
4530
  ) }),
4915
- /* @__PURE__ */ jsx45(DropdownMenuContent, { align: "start", portal, children: /* @__PURE__ */ jsx45(Card, { children: /* @__PURE__ */ jsx45(CardBody, { children: /* @__PURE__ */ jsx45(ButtonGroup, { children: filteredLists.map((option) => /* @__PURE__ */ jsx45(DropdownMenuItem, { asChild: true, children: /* @__PURE__ */ jsx45(
4531
+ /* @__PURE__ */ jsx44(DropdownMenuContent, { align: "start", portal, children: /* @__PURE__ */ jsx44(Card, { children: /* @__PURE__ */ jsx44(CardBody, { children: /* @__PURE__ */ jsx44(ButtonGroup, { children: filteredLists.map((option) => /* @__PURE__ */ jsx44(DropdownMenuItem, { asChild: true, children: /* @__PURE__ */ jsx44(
4916
4532
  ListButton,
4917
4533
  {
4918
4534
  editor,
@@ -4926,11 +4542,11 @@ function ListDropdownMenu({
4926
4542
 
4927
4543
  // src/components/tiptap-ui/blockquote-button/blockquote-button.tsx
4928
4544
  import { forwardRef as forwardRef12, useCallback as useCallback16 } from "react";
4929
- import { Fragment as Fragment7, jsx as jsx46, jsxs as jsxs26 } from "react/jsx-runtime";
4545
+ import { Fragment as Fragment7, jsx as jsx45, jsxs as jsxs26 } from "react/jsx-runtime";
4930
4546
  function BlockquoteShortcutBadge({
4931
4547
  shortcutKeys = BLOCKQUOTE_SHORTCUT_KEY
4932
4548
  }) {
4933
- return /* @__PURE__ */ jsx46(Badge, { children: parseShortcutKeys({ shortcutKeys }) });
4549
+ return /* @__PURE__ */ jsx45(Badge, { children: parseShortcutKeys({ shortcutKeys }) });
4934
4550
  }
4935
4551
  var BlockquoteButton = forwardRef12(
4936
4552
  ({
@@ -4968,7 +4584,7 @@ var BlockquoteButton = forwardRef12(
4968
4584
  if (!isVisible) {
4969
4585
  return null;
4970
4586
  }
4971
- return /* @__PURE__ */ jsx46(
4587
+ return /* @__PURE__ */ jsx45(
4972
4588
  Button2,
4973
4589
  {
4974
4590
  type: "button",
@@ -4985,9 +4601,9 @@ var BlockquoteButton = forwardRef12(
4985
4601
  ...buttonProps,
4986
4602
  ref,
4987
4603
  children: children ?? /* @__PURE__ */ jsxs26(Fragment7, { children: [
4988
- /* @__PURE__ */ jsx46(Icon, { className: "tiptap-button-icon" }),
4989
- text && /* @__PURE__ */ jsx46("span", { className: "tiptap-button-text", children: text }),
4990
- showShortcut && /* @__PURE__ */ jsx46(BlockquoteShortcutBadge, { shortcutKeys })
4604
+ /* @__PURE__ */ jsx45(Icon, { className: "tiptap-button-icon" }),
4605
+ text && /* @__PURE__ */ jsx45("span", { className: "tiptap-button-text", children: text }),
4606
+ showShortcut && /* @__PURE__ */ jsx45(BlockquoteShortcutBadge, { shortcutKeys })
4991
4607
  ] })
4992
4608
  }
4993
4609
  );
@@ -4997,11 +4613,11 @@ BlockquoteButton.displayName = "BlockquoteButton";
4997
4613
 
4998
4614
  // src/components/tiptap-ui/blockquote-button/use-blockquote.ts
4999
4615
  import { useCallback as useCallback17, useEffect as useEffect11, useState as useState20 } from "react";
5000
- import { NodeSelection as NodeSelection4, TextSelection as TextSelection5 } from "@tiptap/pm/state";
4616
+ import { NodeSelection as NodeSelection4, TextSelection as TextSelection4 } from "@tiptap/pm/state";
5001
4617
 
5002
4618
  // src/components/tiptap-icons/blockquote-icon.tsx
5003
4619
  import { memo as memo19 } from "react";
5004
- import { jsx as jsx47, jsxs as jsxs27 } from "react/jsx-runtime";
4620
+ import { jsx as jsx46, jsxs as jsxs27 } from "react/jsx-runtime";
5005
4621
  var BlockquoteIcon = memo19(({ className, ...props }) => {
5006
4622
  return /* @__PURE__ */ jsxs27(
5007
4623
  "svg",
@@ -5014,7 +4630,7 @@ var BlockquoteIcon = memo19(({ className, ...props }) => {
5014
4630
  xmlns: "http://www.w3.org/2000/svg",
5015
4631
  ...props,
5016
4632
  children: [
5017
- /* @__PURE__ */ jsx47(
4633
+ /* @__PURE__ */ jsx46(
5018
4634
  "path",
5019
4635
  {
5020
4636
  fillRule: "evenodd",
@@ -5023,7 +4639,7 @@ var BlockquoteIcon = memo19(({ className, ...props }) => {
5023
4639
  fill: "currentColor"
5024
4640
  }
5025
4641
  ),
5026
- /* @__PURE__ */ jsx47(
4642
+ /* @__PURE__ */ jsx46(
5027
4643
  "path",
5028
4644
  {
5029
4645
  fillRule: "evenodd",
@@ -5032,7 +4648,7 @@ var BlockquoteIcon = memo19(({ className, ...props }) => {
5032
4648
  fill: "currentColor"
5033
4649
  }
5034
4650
  ),
5035
- /* @__PURE__ */ jsx47(
4651
+ /* @__PURE__ */ jsx46(
5036
4652
  "path",
5037
4653
  {
5038
4654
  fillRule: "evenodd",
@@ -5041,7 +4657,7 @@ var BlockquoteIcon = memo19(({ className, ...props }) => {
5041
4657
  fill: "currentColor"
5042
4658
  }
5043
4659
  ),
5044
- /* @__PURE__ */ jsx47(
4660
+ /* @__PURE__ */ jsx46(
5045
4661
  "path",
5046
4662
  {
5047
4663
  fillRule: "evenodd",
@@ -5084,7 +4700,7 @@ function toggleBlockquote(editor) {
5084
4700
  const view = editor.view;
5085
4701
  let state = view.state;
5086
4702
  let tr = state.tr;
5087
- if (state.selection.empty || state.selection instanceof TextSelection5) {
4703
+ if (state.selection.empty || state.selection instanceof TextSelection4) {
5088
4704
  const pos = findNodePosition({
5089
4705
  editor,
5090
4706
  node: state.selection.$anchor.node(1)
@@ -5103,7 +4719,7 @@ function toggleBlockquote(editor) {
5103
4719
  const to = lastChild ? selection.to - lastChild.nodeSize : selection.to - 1;
5104
4720
  const resolvedFrom = state.doc.resolve(from);
5105
4721
  const resolvedTo = state.doc.resolve(to);
5106
- chain = chain.setTextSelection(TextSelection5.between(resolvedFrom, resolvedTo)).clearNodes();
4722
+ chain = chain.setTextSelection(TextSelection4.between(resolvedFrom, resolvedTo)).clearNodes();
5107
4723
  }
5108
4724
  const toggle = editor.isActive("blockquote") ? chain.lift("blockquote") : chain.wrapIn("blockquote");
5109
4725
  toggle.run();
@@ -5167,9 +4783,9 @@ import { forwardRef as forwardRef14, useMemo as useMemo8, useRef as useRef5, use
5167
4783
 
5168
4784
  // src/components/tiptap-icons/ban-icon.tsx
5169
4785
  import { memo as memo20 } from "react";
5170
- import { jsx as jsx48 } from "react/jsx-runtime";
4786
+ import { jsx as jsx47 } from "react/jsx-runtime";
5171
4787
  var BanIcon = memo20(({ className, ...props }) => {
5172
- return /* @__PURE__ */ jsx48(
4788
+ return /* @__PURE__ */ jsx47(
5173
4789
  "svg",
5174
4790
  {
5175
4791
  width: "24",
@@ -5179,7 +4795,7 @@ var BanIcon = memo20(({ className, ...props }) => {
5179
4795
  fill: "currentColor",
5180
4796
  xmlns: "http://www.w3.org/2000/svg",
5181
4797
  ...props,
5182
- children: /* @__PURE__ */ jsx48(
4798
+ children: /* @__PURE__ */ jsx47(
5183
4799
  "path",
5184
4800
  {
5185
4801
  fillRule: "evenodd",
@@ -5195,9 +4811,9 @@ BanIcon.displayName = "BanIcon";
5195
4811
 
5196
4812
  // src/components/tiptap-icons/highlighter-icon.tsx
5197
4813
  import { memo as memo21 } from "react";
5198
- import { jsx as jsx49 } from "react/jsx-runtime";
4814
+ import { jsx as jsx48 } from "react/jsx-runtime";
5199
4815
  var HighlighterIcon = memo21(({ className, ...props }) => {
5200
- return /* @__PURE__ */ jsx49(
4816
+ return /* @__PURE__ */ jsx48(
5201
4817
  "svg",
5202
4818
  {
5203
4819
  width: "24",
@@ -5207,7 +4823,7 @@ var HighlighterIcon = memo21(({ className, ...props }) => {
5207
4823
  fill: "currentColor",
5208
4824
  xmlns: "http://www.w3.org/2000/svg",
5209
4825
  ...props,
5210
- children: /* @__PURE__ */ jsx49(
4826
+ children: /* @__PURE__ */ jsx48(
5211
4827
  "path",
5212
4828
  {
5213
4829
  fillRule: "evenodd",
@@ -5223,16 +4839,16 @@ HighlighterIcon.displayName = "HighlighterIcon";
5223
4839
 
5224
4840
  // src/components/tiptap-ui-primitive/popover/popover.tsx
5225
4841
  import * as PopoverPrimitive from "@radix-ui/react-popover";
5226
- import { jsx as jsx50 } from "react/jsx-runtime";
4842
+ import { jsx as jsx49 } from "react/jsx-runtime";
5227
4843
  function Popover({
5228
4844
  ...props
5229
4845
  }) {
5230
- return /* @__PURE__ */ jsx50(PopoverPrimitive.Root, { ...props });
4846
+ return /* @__PURE__ */ jsx49(PopoverPrimitive.Root, { ...props });
5231
4847
  }
5232
4848
  function PopoverTrigger({
5233
4849
  ...props
5234
4850
  }) {
5235
- return /* @__PURE__ */ jsx50(PopoverPrimitive.Trigger, { ...props });
4851
+ return /* @__PURE__ */ jsx49(PopoverPrimitive.Trigger, { ...props });
5236
4852
  }
5237
4853
  function PopoverContent({
5238
4854
  className,
@@ -5240,7 +4856,7 @@ function PopoverContent({
5240
4856
  sideOffset = 4,
5241
4857
  ...props
5242
4858
  }) {
5243
- return /* @__PURE__ */ jsx50(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx50(
4859
+ return /* @__PURE__ */ jsx49(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx49(
5244
4860
  PopoverPrimitive.Content,
5245
4861
  {
5246
4862
  align,
@@ -5253,11 +4869,11 @@ function PopoverContent({
5253
4869
 
5254
4870
  // src/components/tiptap-ui/color-highlight-button/color-highlight-button.tsx
5255
4871
  import { forwardRef as forwardRef13, useCallback as useCallback18, useMemo as useMemo7 } from "react";
5256
- import { Fragment as Fragment8, jsx as jsx51, jsxs as jsxs28 } from "react/jsx-runtime";
4872
+ import { Fragment as Fragment8, jsx as jsx50, jsxs as jsxs28 } from "react/jsx-runtime";
5257
4873
  function ColorHighlightShortcutBadge({
5258
4874
  shortcutKeys = COLOR_HIGHLIGHT_SHORTCUT_KEY
5259
4875
  }) {
5260
- return /* @__PURE__ */ jsx51(Badge, { children: parseShortcutKeys({ shortcutKeys }) });
4876
+ return /* @__PURE__ */ jsx50(Badge, { children: parseShortcutKeys({ shortcutKeys }) });
5261
4877
  }
5262
4878
  var ColorHighlightButton = forwardRef13(
5263
4879
  ({
@@ -5307,7 +4923,7 @@ var ColorHighlightButton = forwardRef13(
5307
4923
  if (!isVisible) {
5308
4924
  return null;
5309
4925
  }
5310
- return /* @__PURE__ */ jsx51(
4926
+ return /* @__PURE__ */ jsx50(
5311
4927
  Button2,
5312
4928
  {
5313
4929
  type: "button",
@@ -5325,15 +4941,15 @@ var ColorHighlightButton = forwardRef13(
5325
4941
  ...buttonProps,
5326
4942
  ref,
5327
4943
  children: children ?? /* @__PURE__ */ jsxs28(Fragment8, { children: [
5328
- /* @__PURE__ */ jsx51(
4944
+ /* @__PURE__ */ jsx50(
5329
4945
  "span",
5330
4946
  {
5331
4947
  className: "tiptap-button-highlight",
5332
4948
  style: { "--highlight-color": highlightColor }
5333
4949
  }
5334
4950
  ),
5335
- text && /* @__PURE__ */ jsx51("span", { className: "tiptap-button-text", children: text }),
5336
- showShortcut && /* @__PURE__ */ jsx51(ColorHighlightShortcutBadge, { shortcutKeys })
4951
+ text && /* @__PURE__ */ jsx50("span", { className: "tiptap-button-text", children: text }),
4952
+ showShortcut && /* @__PURE__ */ jsx50(ColorHighlightShortcutBadge, { shortcutKeys })
5337
4953
  ] })
5338
4954
  }
5339
4955
  );
@@ -5548,8 +5164,8 @@ function useColorHighlight(config) {
5548
5164
  }
5549
5165
 
5550
5166
  // src/components/tiptap-ui/color-highlight-popover/color-highlight-popover.tsx
5551
- import { jsx as jsx52, jsxs as jsxs29 } from "react/jsx-runtime";
5552
- var ColorHighlightPopoverButton = forwardRef14(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx52(
5167
+ import { jsx as jsx51, jsxs as jsxs29 } from "react/jsx-runtime";
5168
+ var ColorHighlightPopoverButton = forwardRef14(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx51(
5553
5169
  Button2,
5554
5170
  {
5555
5171
  type: "button",
@@ -5562,7 +5178,7 @@ var ColorHighlightPopoverButton = forwardRef14(({ className, children, ...props
5562
5178
  tooltip: "Highlight",
5563
5179
  ref,
5564
5180
  ...props,
5565
- children: children ?? /* @__PURE__ */ jsx52(HighlighterIcon, { className: "tiptap-button-icon" })
5181
+ children: children ?? /* @__PURE__ */ jsx51(HighlighterIcon, { className: "tiptap-button-icon" })
5566
5182
  }
5567
5183
  ));
5568
5184
  ColorHighlightPopoverButton.displayName = "ColorHighlightPopoverButton";
@@ -5598,14 +5214,14 @@ function ColorHighlightPopoverContent({
5598
5214
  },
5599
5215
  autoSelectFirstItem: false
5600
5216
  });
5601
- return /* @__PURE__ */ jsx52(
5217
+ return /* @__PURE__ */ jsx51(
5602
5218
  Card,
5603
5219
  {
5604
5220
  ref: containerRef,
5605
5221
  tabIndex: 0,
5606
5222
  style: isMobile ? { boxShadow: "none", border: 0 } : {},
5607
- children: /* @__PURE__ */ jsx52(CardBody, { style: isMobile ? { padding: 0 } : {}, children: /* @__PURE__ */ jsxs29(CardItemGroup, { orientation: "horizontal", children: [
5608
- /* @__PURE__ */ jsx52(ButtonGroup, { orientation: "horizontal", children: colors.map((color, index) => /* @__PURE__ */ jsx52(
5223
+ children: /* @__PURE__ */ jsx51(CardBody, { style: isMobile ? { padding: 0 } : {}, children: /* @__PURE__ */ jsxs29(CardItemGroup, { orientation: "horizontal", children: [
5224
+ /* @__PURE__ */ jsx51(ButtonGroup, { orientation: "horizontal", children: colors.map((color, index) => /* @__PURE__ */ jsx51(
5609
5225
  ColorHighlightButton,
5610
5226
  {
5611
5227
  editor,
@@ -5617,8 +5233,8 @@ function ColorHighlightPopoverContent({
5617
5233
  },
5618
5234
  color.value
5619
5235
  )) }),
5620
- /* @__PURE__ */ jsx52(Separator2, {}),
5621
- /* @__PURE__ */ jsx52(ButtonGroup, { orientation: "horizontal", children: /* @__PURE__ */ jsx52(
5236
+ /* @__PURE__ */ jsx51(Separator2, {}),
5237
+ /* @__PURE__ */ jsx51(ButtonGroup, { orientation: "horizontal", children: /* @__PURE__ */ jsx51(
5622
5238
  Button2,
5623
5239
  {
5624
5240
  onClick: handleRemoveHighlight,
@@ -5629,7 +5245,7 @@ function ColorHighlightPopoverContent({
5629
5245
  role: "menuitem",
5630
5246
  "data-style": "ghost",
5631
5247
  "data-highlighted": selectedIndex === colors.length,
5632
- children: /* @__PURE__ */ jsx52(BanIcon, { className: "tiptap-button-icon" })
5248
+ children: /* @__PURE__ */ jsx51(BanIcon, { className: "tiptap-button-icon" })
5633
5249
  }
5634
5250
  ) })
5635
5251
  ] }) })
@@ -5642,9 +5258,9 @@ import { forwardRef as forwardRef15, useCallback as useCallback20, useEffect as
5642
5258
 
5643
5259
  // src/components/tiptap-icons/corner-down-left-icon.tsx
5644
5260
  import { memo as memo22 } from "react";
5645
- import { jsx as jsx53 } from "react/jsx-runtime";
5261
+ import { jsx as jsx52 } from "react/jsx-runtime";
5646
5262
  var CornerDownLeftIcon = memo22(({ className, ...props }) => {
5647
- return /* @__PURE__ */ jsx53(
5263
+ return /* @__PURE__ */ jsx52(
5648
5264
  "svg",
5649
5265
  {
5650
5266
  width: "24",
@@ -5654,7 +5270,7 @@ var CornerDownLeftIcon = memo22(({ className, ...props }) => {
5654
5270
  fill: "currentColor",
5655
5271
  xmlns: "http://www.w3.org/2000/svg",
5656
5272
  ...props,
5657
- children: /* @__PURE__ */ jsx53(
5273
+ children: /* @__PURE__ */ jsx52(
5658
5274
  "path",
5659
5275
  {
5660
5276
  fillRule: "evenodd",
@@ -5670,7 +5286,7 @@ CornerDownLeftIcon.displayName = "CornerDownLeftIcon";
5670
5286
 
5671
5287
  // src/components/tiptap-icons/external-link-icon.tsx
5672
5288
  import { memo as memo23 } from "react";
5673
- import { jsx as jsx54, jsxs as jsxs30 } from "react/jsx-runtime";
5289
+ import { jsx as jsx53, jsxs as jsxs30 } from "react/jsx-runtime";
5674
5290
  var ExternalLinkIcon = memo23(({ className, ...props }) => {
5675
5291
  return /* @__PURE__ */ jsxs30(
5676
5292
  "svg",
@@ -5683,14 +5299,14 @@ var ExternalLinkIcon = memo23(({ className, ...props }) => {
5683
5299
  xmlns: "http://www.w3.org/2000/svg",
5684
5300
  ...props,
5685
5301
  children: [
5686
- /* @__PURE__ */ jsx54(
5302
+ /* @__PURE__ */ jsx53(
5687
5303
  "path",
5688
5304
  {
5689
5305
  d: "M14 3C14 2.44772 14.4477 2 15 2H21C21.5523 2 22 2.44772 22 3V9C22 9.55228 21.5523 10 21 10C20.4477 10 20 9.55228 20 9V5.41421L10.7071 14.7071C10.3166 15.0976 9.68342 15.0976 9.29289 14.7071C8.90237 14.3166 8.90237 13.6834 9.29289 13.2929L18.5858 4H15C14.4477 4 14 3.55228 14 3Z",
5690
5306
  fill: "currentColor"
5691
5307
  }
5692
5308
  ),
5693
- /* @__PURE__ */ jsx54(
5309
+ /* @__PURE__ */ jsx53(
5694
5310
  "path",
5695
5311
  {
5696
5312
  d: "M4.29289 7.29289C4.48043 7.10536 4.73478 7 5 7H11C11.5523 7 12 6.55228 12 6C12 5.44772 11.5523 5 11 5H5C4.20435 5 3.44129 5.31607 2.87868 5.87868C2.31607 6.44129 2 7.20435 2 8V19C2 19.7957 2.31607 20.5587 2.87868 21.1213C3.44129 21.6839 4.20435 22 5 22H16C16.7957 22 17.5587 21.6839 18.1213 21.1213C18.6839 20.5587 19 19.7957 19 19V13C19 12.4477 18.5523 12 18 12C17.4477 12 17 12.4477 17 13V19C17 19.2652 16.8946 19.5196 16.7071 19.7071C16.5196 19.8946 16.2652 20 16 20H5C4.73478 20 4.48043 19.8946 4.29289 19.7071C4.10536 19.5196 4 19.2652 4 19V8C4 7.73478 4.10536 7.48043 4.29289 7.29289Z",
@@ -5705,7 +5321,7 @@ ExternalLinkIcon.displayName = "ExternalLinkIcon";
5705
5321
 
5706
5322
  // src/components/tiptap-icons/link-icon.tsx
5707
5323
  import { memo as memo24 } from "react";
5708
- import { jsx as jsx55, jsxs as jsxs31 } from "react/jsx-runtime";
5324
+ import { jsx as jsx54, jsxs as jsxs31 } from "react/jsx-runtime";
5709
5325
  var LinkIcon = memo24(({ className, ...props }) => {
5710
5326
  return /* @__PURE__ */ jsxs31(
5711
5327
  "svg",
@@ -5718,14 +5334,14 @@ var LinkIcon = memo24(({ className, ...props }) => {
5718
5334
  xmlns: "http://www.w3.org/2000/svg",
5719
5335
  ...props,
5720
5336
  children: [
5721
- /* @__PURE__ */ jsx55(
5337
+ /* @__PURE__ */ jsx54(
5722
5338
  "path",
5723
5339
  {
5724
5340
  d: "M16.9958 1.06669C15.4226 1.05302 13.907 1.65779 12.7753 2.75074L12.765 2.76086L11.045 4.47086C10.6534 4.86024 10.6515 5.49341 11.0409 5.88507C11.4303 6.27673 12.0634 6.27858 12.4551 5.88919L14.1697 4.18456C14.9236 3.45893 15.9319 3.05752 16.9784 3.06662C18.0272 3.07573 19.0304 3.49641 19.772 4.23804C20.5137 4.97967 20.9344 5.98292 20.9435 7.03171C20.9526 8.07776 20.5515 9.08563 19.8265 9.83941L16.833 12.8329C16.4274 13.2386 15.9393 13.5524 15.4019 13.7529C14.8645 13.9533 14.2903 14.0359 13.7181 13.9949C13.146 13.9539 12.5894 13.7904 12.0861 13.5154C11.5827 13.2404 11.1444 12.8604 10.8008 12.401C10.47 11.9588 9.84333 11.8685 9.40108 12.1993C8.95883 12.5301 8.86849 13.1568 9.1993 13.599C9.71464 14.288 10.3721 14.858 11.1272 15.2705C11.8822 15.683 12.7171 15.9283 13.5753 15.9898C14.4334 16.0513 15.2948 15.9274 16.1009 15.6267C16.907 15.326 17.639 14.8555 18.2473 14.247L21.2472 11.2471L21.2593 11.2347C22.3523 10.1031 22.9571 8.58751 22.9434 7.01433C22.9297 5.44115 22.2987 3.93628 21.1863 2.82383C20.0738 1.71138 18.5689 1.08036 16.9958 1.06669Z",
5725
5341
  fill: "currentColor"
5726
5342
  }
5727
5343
  ),
5728
- /* @__PURE__ */ jsx55(
5344
+ /* @__PURE__ */ jsx54(
5729
5345
  "path",
5730
5346
  {
5731
5347
  d: "M10.4247 8.0102C9.56657 7.94874 8.70522 8.07256 7.89911 8.37326C7.09305 8.67395 6.36096 9.14458 5.75272 9.753L2.75285 12.7529L2.74067 12.7653C1.64772 13.8969 1.04295 15.4125 1.05662 16.9857C1.07029 18.5589 1.70131 20.0637 2.81376 21.1762C3.9262 22.2886 5.43108 22.9196 7.00426 22.9333C8.57744 22.947 10.0931 22.3422 11.2247 21.2493L11.2371 21.2371L12.9471 19.5271C13.3376 19.1366 13.3376 18.5034 12.9471 18.1129C12.5565 17.7223 11.9234 17.7223 11.5328 18.1129L9.82932 19.8164C9.07555 20.5414 8.06768 20.9425 7.02164 20.9334C5.97285 20.9243 4.9696 20.5036 4.22797 19.762C3.48634 19.0203 3.06566 18.0171 3.05655 16.9683C3.04746 15.9222 3.44851 14.9144 4.17355 14.1606L7.16719 11.167C7.5727 10.7613 8.06071 10.4476 8.59811 10.2471C9.13552 10.0467 9.70976 9.96412 10.2819 10.0051C10.854 10.0461 11.4106 10.2096 11.9139 10.4846C12.4173 10.7596 12.8556 11.1397 13.1992 11.599C13.53 12.0412 14.1567 12.1316 14.5989 11.8007C15.0412 11.4699 15.1315 10.8433 14.8007 10.401C14.2854 9.71205 13.6279 9.14198 12.8729 8.72948C12.1178 8.31697 11.2829 8.07166 10.4247 8.0102Z",
@@ -5740,9 +5356,9 @@ LinkIcon.displayName = "LinkIcon";
5740
5356
 
5741
5357
  // src/components/tiptap-icons/trash-icon.tsx
5742
5358
  import { memo as memo25 } from "react";
5743
- import { jsx as jsx56 } from "react/jsx-runtime";
5359
+ import { jsx as jsx55 } from "react/jsx-runtime";
5744
5360
  var TrashIcon = memo25(({ className, ...props }) => {
5745
- return /* @__PURE__ */ jsx56(
5361
+ return /* @__PURE__ */ jsx55(
5746
5362
  "svg",
5747
5363
  {
5748
5364
  width: "24",
@@ -5752,7 +5368,7 @@ var TrashIcon = memo25(({ className, ...props }) => {
5752
5368
  fill: "currentColor",
5753
5369
  xmlns: "http://www.w3.org/2000/svg",
5754
5370
  ...props,
5755
- children: /* @__PURE__ */ jsx56(
5371
+ children: /* @__PURE__ */ jsx55(
5756
5372
  "path",
5757
5373
  {
5758
5374
  fillRule: "evenodd",
@@ -5767,23 +5383,23 @@ var TrashIcon = memo25(({ className, ...props }) => {
5767
5383
  TrashIcon.displayName = "TrashIcon";
5768
5384
 
5769
5385
  // src/components/tiptap-ui-primitive/input/input.tsx
5770
- import { jsx as jsx57 } from "react/jsx-runtime";
5386
+ import { jsx as jsx56 } from "react/jsx-runtime";
5771
5387
  function Input({ className, type, ...props }) {
5772
- return /* @__PURE__ */ jsx57("input", { type, className: cn2("tiptap-input", className), ...props });
5388
+ return /* @__PURE__ */ jsx56("input", { type, className: cn2("tiptap-input", className), ...props });
5773
5389
  }
5774
5390
  function InputGroup({
5775
5391
  className,
5776
5392
  children,
5777
5393
  ...props
5778
5394
  }) {
5779
- return /* @__PURE__ */ jsx57("div", { className: cn2("tiptap-input-group", className), ...props, children });
5395
+ return /* @__PURE__ */ jsx56("div", { className: cn2("tiptap-input-group", className), ...props, children });
5780
5396
  }
5781
5397
 
5782
5398
  // src/components/tiptap-ui/link-popover/link-popover.tsx
5783
- import { jsx as jsx58, jsxs as jsxs32 } from "react/jsx-runtime";
5399
+ import { jsx as jsx57, jsxs as jsxs32 } from "react/jsx-runtime";
5784
5400
  var LinkButton = forwardRef15(
5785
5401
  ({ className, children, ...props }, ref) => {
5786
- return /* @__PURE__ */ jsx58(
5402
+ return /* @__PURE__ */ jsx57(
5787
5403
  Button2,
5788
5404
  {
5789
5405
  type: "button",
@@ -5795,7 +5411,7 @@ var LinkButton = forwardRef15(
5795
5411
  tooltip: "Link",
5796
5412
  ref,
5797
5413
  ...props,
5798
- children: children || /* @__PURE__ */ jsx58(LinkIcon, { className: "tiptap-button-icon" })
5414
+ children: children || /* @__PURE__ */ jsx57(LinkIcon, { className: "tiptap-button-icon" })
5799
5415
  }
5800
5416
  );
5801
5417
  }
@@ -5816,20 +5432,20 @@ var LinkMain = ({
5816
5432
  setLink();
5817
5433
  }
5818
5434
  };
5819
- return /* @__PURE__ */ jsx58(
5435
+ return /* @__PURE__ */ jsx57(
5820
5436
  Card,
5821
5437
  {
5822
5438
  style: {
5823
5439
  ...isMobile ? { boxShadow: "none", border: 0 } : {}
5824
5440
  },
5825
- children: /* @__PURE__ */ jsx58(
5441
+ children: /* @__PURE__ */ jsx57(
5826
5442
  CardBody,
5827
5443
  {
5828
5444
  style: {
5829
5445
  ...isMobile ? { padding: 0 } : {}
5830
5446
  },
5831
5447
  children: /* @__PURE__ */ jsxs32(CardItemGroup, { orientation: "horizontal", children: [
5832
- /* @__PURE__ */ jsx58(InputGroup, { children: /* @__PURE__ */ jsx58(
5448
+ /* @__PURE__ */ jsx57(InputGroup, { children: /* @__PURE__ */ jsx57(
5833
5449
  Input,
5834
5450
  {
5835
5451
  type: "url",
@@ -5843,7 +5459,7 @@ var LinkMain = ({
5843
5459
  autoCapitalize: "off"
5844
5460
  }
5845
5461
  ) }),
5846
- /* @__PURE__ */ jsx58(ButtonGroup, { orientation: "horizontal", children: /* @__PURE__ */ jsx58(
5462
+ /* @__PURE__ */ jsx57(ButtonGroup, { orientation: "horizontal", children: /* @__PURE__ */ jsx57(
5847
5463
  Button2,
5848
5464
  {
5849
5465
  type: "button",
@@ -5851,12 +5467,12 @@ var LinkMain = ({
5851
5467
  title: "Apply link",
5852
5468
  disabled: !url && !isActive,
5853
5469
  "data-style": "ghost",
5854
- children: /* @__PURE__ */ jsx58(CornerDownLeftIcon, { className: "tiptap-button-icon" })
5470
+ children: /* @__PURE__ */ jsx57(CornerDownLeftIcon, { className: "tiptap-button-icon" })
5855
5471
  }
5856
5472
  ) }),
5857
- /* @__PURE__ */ jsx58(Separator2, {}),
5473
+ /* @__PURE__ */ jsx57(Separator2, {}),
5858
5474
  /* @__PURE__ */ jsxs32(ButtonGroup, { orientation: "horizontal", children: [
5859
- /* @__PURE__ */ jsx58(
5475
+ /* @__PURE__ */ jsx57(
5860
5476
  Button2,
5861
5477
  {
5862
5478
  type: "button",
@@ -5864,10 +5480,10 @@ var LinkMain = ({
5864
5480
  title: "Open in new window",
5865
5481
  disabled: !url && !isActive,
5866
5482
  "data-style": "ghost",
5867
- children: /* @__PURE__ */ jsx58(ExternalLinkIcon, { className: "tiptap-button-icon" })
5483
+ children: /* @__PURE__ */ jsx57(ExternalLinkIcon, { className: "tiptap-button-icon" })
5868
5484
  }
5869
5485
  ),
5870
- /* @__PURE__ */ jsx58(
5486
+ /* @__PURE__ */ jsx57(
5871
5487
  Button2,
5872
5488
  {
5873
5489
  type: "button",
@@ -5875,7 +5491,7 @@ var LinkMain = ({
5875
5491
  title: "Remove link",
5876
5492
  disabled: !url && !isActive,
5877
5493
  "data-style": "ghost",
5878
- children: /* @__PURE__ */ jsx58(TrashIcon, { className: "tiptap-button-icon" })
5494
+ children: /* @__PURE__ */ jsx57(TrashIcon, { className: "tiptap-button-icon" })
5879
5495
  }
5880
5496
  )
5881
5497
  ] })
@@ -5889,7 +5505,7 @@ var LinkContent = ({ editor }) => {
5889
5505
  const linkPopover = useLinkPopover({
5890
5506
  editor
5891
5507
  });
5892
- return /* @__PURE__ */ jsx58(LinkMain, { ...linkPopover });
5508
+ return /* @__PURE__ */ jsx57(LinkMain, { ...linkPopover });
5893
5509
  };
5894
5510
  var LinkPopover = forwardRef15(
5895
5511
  ({
@@ -5948,7 +5564,7 @@ var LinkPopover = forwardRef15(
5948
5564
  return null;
5949
5565
  }
5950
5566
  return /* @__PURE__ */ jsxs32(Popover, { open: isOpen, onOpenChange: handleOnOpenChange, children: [
5951
- /* @__PURE__ */ jsx58(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx58(
5567
+ /* @__PURE__ */ jsx57(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx57(
5952
5568
  LinkButton,
5953
5569
  {
5954
5570
  disabled: !canSet,
@@ -5959,10 +5575,10 @@ var LinkPopover = forwardRef15(
5959
5575
  onClick: handleClick,
5960
5576
  ...buttonProps,
5961
5577
  ref,
5962
- children: children ?? /* @__PURE__ */ jsx58(Icon, { className: "tiptap-button-icon" })
5578
+ children: children ?? /* @__PURE__ */ jsx57(Icon, { className: "tiptap-button-icon" })
5963
5579
  }
5964
5580
  ) }),
5965
- /* @__PURE__ */ jsx58(PopoverContent, { children: /* @__PURE__ */ jsx58(
5581
+ /* @__PURE__ */ jsx57(PopoverContent, { children: /* @__PURE__ */ jsx57(
5966
5582
  LinkMain,
5967
5583
  {
5968
5584
  url,
@@ -6111,12 +5727,12 @@ function useLinkPopover(config) {
6111
5727
 
6112
5728
  // src/components/tiptap-ui/mark-button/mark-button.tsx
6113
5729
  import { forwardRef as forwardRef16, useCallback as useCallback22 } from "react";
6114
- import { Fragment as Fragment9, jsx as jsx59, jsxs as jsxs33 } from "react/jsx-runtime";
5730
+ import { Fragment as Fragment9, jsx as jsx58, jsxs as jsxs33 } from "react/jsx-runtime";
6115
5731
  function MarkShortcutBadge({
6116
5732
  type,
6117
5733
  shortcutKeys = MARK_SHORTCUT_KEYS[type]
6118
5734
  }) {
6119
- return /* @__PURE__ */ jsx59(Badge, { children: parseShortcutKeys({ shortcutKeys }) });
5735
+ return /* @__PURE__ */ jsx58(Badge, { children: parseShortcutKeys({ shortcutKeys }) });
6120
5736
  }
6121
5737
  var MarkButton = forwardRef16(
6122
5738
  ({
@@ -6156,7 +5772,7 @@ var MarkButton = forwardRef16(
6156
5772
  if (!isVisible) {
6157
5773
  return null;
6158
5774
  }
6159
- return /* @__PURE__ */ jsx59(
5775
+ return /* @__PURE__ */ jsx58(
6160
5776
  Button2,
6161
5777
  {
6162
5778
  type: "button",
@@ -6173,9 +5789,9 @@ var MarkButton = forwardRef16(
6173
5789
  ...buttonProps,
6174
5790
  ref,
6175
5791
  children: children ?? /* @__PURE__ */ jsxs33(Fragment9, { children: [
6176
- /* @__PURE__ */ jsx59(Icon, { className: "tiptap-button-icon" }),
6177
- text && /* @__PURE__ */ jsx59("span", { className: "tiptap-button-text", children: text }),
6178
- showShortcut && /* @__PURE__ */ jsx59(MarkShortcutBadge, { type, shortcutKeys })
5792
+ /* @__PURE__ */ jsx58(Icon, { className: "tiptap-button-icon" }),
5793
+ text && /* @__PURE__ */ jsx58("span", { className: "tiptap-button-text", children: text }),
5794
+ showShortcut && /* @__PURE__ */ jsx58(MarkShortcutBadge, { type, shortcutKeys })
6179
5795
  ] })
6180
5796
  }
6181
5797
  );
@@ -6188,9 +5804,9 @@ import { useCallback as useCallback23, useEffect as useEffect15, useState as use
6188
5804
 
6189
5805
  // src/components/tiptap-icons/bold-icon.tsx
6190
5806
  import { memo as memo26 } from "react";
6191
- import { jsx as jsx60 } from "react/jsx-runtime";
5807
+ import { jsx as jsx59 } from "react/jsx-runtime";
6192
5808
  var BoldIcon = memo26(({ className, ...props }) => {
6193
- return /* @__PURE__ */ jsx60(
5809
+ return /* @__PURE__ */ jsx59(
6194
5810
  "svg",
6195
5811
  {
6196
5812
  width: "24",
@@ -6200,7 +5816,7 @@ var BoldIcon = memo26(({ className, ...props }) => {
6200
5816
  fill: "currentColor",
6201
5817
  xmlns: "http://www.w3.org/2000/svg",
6202
5818
  ...props,
6203
- children: /* @__PURE__ */ jsx60(
5819
+ children: /* @__PURE__ */ jsx59(
6204
5820
  "path",
6205
5821
  {
6206
5822
  fillRule: "evenodd",
@@ -6216,7 +5832,7 @@ BoldIcon.displayName = "BoldIcon";
6216
5832
 
6217
5833
  // src/components/tiptap-icons/code2-icon.tsx
6218
5834
  import { memo as memo27 } from "react";
6219
- import { jsx as jsx61, jsxs as jsxs34 } from "react/jsx-runtime";
5835
+ import { jsx as jsx60, jsxs as jsxs34 } from "react/jsx-runtime";
6220
5836
  var Code2Icon = memo27(({ className, ...props }) => {
6221
5837
  return /* @__PURE__ */ jsxs34(
6222
5838
  "svg",
@@ -6229,21 +5845,21 @@ var Code2Icon = memo27(({ className, ...props }) => {
6229
5845
  xmlns: "http://www.w3.org/2000/svg",
6230
5846
  ...props,
6231
5847
  children: [
6232
- /* @__PURE__ */ jsx61(
5848
+ /* @__PURE__ */ jsx60(
6233
5849
  "path",
6234
5850
  {
6235
5851
  d: "M15.4545 4.2983C15.6192 3.77115 15.3254 3.21028 14.7983 3.04554C14.2712 2.88081 13.7103 3.1746 13.5455 3.70175L8.54554 19.7017C8.38081 20.2289 8.6746 20.7898 9.20175 20.9545C9.72889 21.1192 10.2898 20.8254 10.4545 20.2983L15.4545 4.2983Z",
6236
5852
  fill: "currentColor"
6237
5853
  }
6238
5854
  ),
6239
- /* @__PURE__ */ jsx61(
5855
+ /* @__PURE__ */ jsx60(
6240
5856
  "path",
6241
5857
  {
6242
5858
  d: "M6.70711 7.29289C7.09763 7.68342 7.09763 8.31658 6.70711 8.70711L3.41421 12L6.70711 15.2929C7.09763 15.6834 7.09763 16.3166 6.70711 16.7071C6.31658 17.0976 5.68342 17.0976 5.29289 16.7071L1.29289 12.7071C0.902369 12.3166 0.902369 11.6834 1.29289 11.2929L5.29289 7.29289C5.68342 6.90237 6.31658 6.90237 6.70711 7.29289Z",
6243
5859
  fill: "currentColor"
6244
5860
  }
6245
5861
  ),
6246
- /* @__PURE__ */ jsx61(
5862
+ /* @__PURE__ */ jsx60(
6247
5863
  "path",
6248
5864
  {
6249
5865
  d: "M17.2929 7.29289C17.6834 6.90237 18.3166 6.90237 18.7071 7.29289L22.7071 11.2929C23.0976 11.6834 23.0976 12.3166 22.7071 12.7071L18.7071 16.7071C18.3166 17.0976 17.6834 17.0976 17.2929 16.7071C16.9024 16.3166 16.9024 15.6834 17.2929 15.2929L20.5858 12L17.2929 8.70711C16.9024 8.31658 16.9024 7.68342 17.2929 7.29289Z",
@@ -6258,9 +5874,9 @@ Code2Icon.displayName = "Code2Icon";
6258
5874
 
6259
5875
  // src/components/tiptap-icons/italic-icon.tsx
6260
5876
  import { memo as memo28 } from "react";
6261
- import { jsx as jsx62 } from "react/jsx-runtime";
5877
+ import { jsx as jsx61 } from "react/jsx-runtime";
6262
5878
  var ItalicIcon = memo28(({ className, ...props }) => {
6263
- return /* @__PURE__ */ jsx62(
5879
+ return /* @__PURE__ */ jsx61(
6264
5880
  "svg",
6265
5881
  {
6266
5882
  width: "24",
@@ -6270,7 +5886,7 @@ var ItalicIcon = memo28(({ className, ...props }) => {
6270
5886
  fill: "currentColor",
6271
5887
  xmlns: "http://www.w3.org/2000/svg",
6272
5888
  ...props,
6273
- children: /* @__PURE__ */ jsx62(
5889
+ children: /* @__PURE__ */ jsx61(
6274
5890
  "path",
6275
5891
  {
6276
5892
  d: "M15.0222 3H19C19.5523 3 20 3.44772 20 4C20 4.55228 19.5523 5 19 5H15.693L10.443 19H14C14.5523 19 15 19.4477 15 20C15 20.5523 14.5523 21 14 21H9.02418C9.00802 21.0004 8.99181 21.0004 8.97557 21H5C4.44772 21 4 20.5523 4 20C4 19.4477 4.44772 19 5 19H8.30704L13.557 5H10C9.44772 5 9 4.55228 9 4C9 3.44772 9.44772 3 10 3H14.9782C14.9928 2.99968 15.0075 2.99967 15.0222 3Z",
@@ -6284,7 +5900,7 @@ ItalicIcon.displayName = "ItalicIcon";
6284
5900
 
6285
5901
  // src/components/tiptap-icons/strike-icon.tsx
6286
5902
  import { memo as memo29 } from "react";
6287
- import { jsx as jsx63, jsxs as jsxs35 } from "react/jsx-runtime";
5903
+ import { jsx as jsx62, jsxs as jsxs35 } from "react/jsx-runtime";
6288
5904
  var StrikeIcon = memo29(({ className, ...props }) => {
6289
5905
  return /* @__PURE__ */ jsxs35(
6290
5906
  "svg",
@@ -6297,14 +5913,14 @@ var StrikeIcon = memo29(({ className, ...props }) => {
6297
5913
  xmlns: "http://www.w3.org/2000/svg",
6298
5914
  ...props,
6299
5915
  children: [
6300
- /* @__PURE__ */ jsx63(
5916
+ /* @__PURE__ */ jsx62(
6301
5917
  "path",
6302
5918
  {
6303
5919
  d: "M9.00039 3H16.0001C16.5524 3 17.0001 3.44772 17.0001 4C17.0001 4.55229 16.5524 5 16.0001 5H9.00011C8.68006 4.99983 8.36412 5.07648 8.07983 5.22349C7.79555 5.37051 7.55069 5.5836 7.36585 5.84487C7.181 6.10614 7.06155 6.40796 7.01754 6.72497C6.97352 7.04198 7.00623 7.36492 7.11292 7.66667C7.29701 8.18737 7.02414 8.75872 6.50344 8.94281C5.98274 9.1269 5.4114 8.85403 5.2273 8.33333C5.01393 7.72984 4.94851 7.08396 5.03654 6.44994C5.12456 5.81592 5.36346 5.21229 5.73316 4.68974C6.10285 4.1672 6.59256 3.74101 7.16113 3.44698C7.72955 3.15303 8.36047 2.99975 9.00039 3Z",
6304
5920
  fill: "currentColor"
6305
5921
  }
6306
5922
  ),
6307
- /* @__PURE__ */ jsx63(
5923
+ /* @__PURE__ */ jsx62(
6308
5924
  "path",
6309
5925
  {
6310
5926
  d: "M18 13H20C20.5523 13 21 12.5523 21 12C21 11.4477 20.5523 11 20 11H4C3.44772 11 3 11.4477 3 12C3 12.5523 3.44772 13 4 13H14C14.7956 13 15.5587 13.3161 16.1213 13.8787C16.6839 14.4413 17 15.2044 17 16C17 16.7956 16.6839 17.5587 16.1213 18.1213C15.5587 18.6839 14.7956 19 14 19H6C5.44772 19 5 19.4477 5 20C5 20.5523 5.44772 21 6 21H14C15.3261 21 16.5979 20.4732 17.5355 19.5355C18.4732 18.5979 19 17.3261 19 16C19 14.9119 18.6453 13.8604 18 13Z",
@@ -6319,7 +5935,7 @@ StrikeIcon.displayName = "StrikeIcon";
6319
5935
 
6320
5936
  // src/components/tiptap-icons/subscript-icon.tsx
6321
5937
  import { memo as memo30 } from "react";
6322
- import { jsx as jsx64, jsxs as jsxs36 } from "react/jsx-runtime";
5938
+ import { jsx as jsx63, jsxs as jsxs36 } from "react/jsx-runtime";
6323
5939
  var SubscriptIcon = memo30(({ className, ...props }) => {
6324
5940
  return /* @__PURE__ */ jsxs36(
6325
5941
  "svg",
@@ -6332,7 +5948,7 @@ var SubscriptIcon = memo30(({ className, ...props }) => {
6332
5948
  xmlns: "http://www.w3.org/2000/svg",
6333
5949
  ...props,
6334
5950
  children: [
6335
- /* @__PURE__ */ jsx64(
5951
+ /* @__PURE__ */ jsx63(
6336
5952
  "path",
6337
5953
  {
6338
5954
  fillRule: "evenodd",
@@ -6341,7 +5957,7 @@ var SubscriptIcon = memo30(({ className, ...props }) => {
6341
5957
  fill: "currentColor"
6342
5958
  }
6343
5959
  ),
6344
- /* @__PURE__ */ jsx64(
5960
+ /* @__PURE__ */ jsx63(
6345
5961
  "path",
6346
5962
  {
6347
5963
  fillRule: "evenodd",
@@ -6350,7 +5966,7 @@ var SubscriptIcon = memo30(({ className, ...props }) => {
6350
5966
  fill: "currentColor"
6351
5967
  }
6352
5968
  ),
6353
- /* @__PURE__ */ jsx64(
5969
+ /* @__PURE__ */ jsx63(
6354
5970
  "path",
6355
5971
  {
6356
5972
  fillRule: "evenodd",
@@ -6367,7 +5983,7 @@ SubscriptIcon.displayName = "SubscriptIcon";
6367
5983
 
6368
5984
  // src/components/tiptap-icons/superscript-icon.tsx
6369
5985
  import { memo as memo31 } from "react";
6370
- import { jsx as jsx65, jsxs as jsxs37 } from "react/jsx-runtime";
5986
+ import { jsx as jsx64, jsxs as jsxs37 } from "react/jsx-runtime";
6371
5987
  var SuperscriptIcon = memo31(({ className, ...props }) => {
6372
5988
  return /* @__PURE__ */ jsxs37(
6373
5989
  "svg",
@@ -6380,7 +5996,7 @@ var SuperscriptIcon = memo31(({ className, ...props }) => {
6380
5996
  xmlns: "http://www.w3.org/2000/svg",
6381
5997
  ...props,
6382
5998
  children: [
6383
- /* @__PURE__ */ jsx65(
5999
+ /* @__PURE__ */ jsx64(
6384
6000
  "path",
6385
6001
  {
6386
6002
  fillRule: "evenodd",
@@ -6389,7 +6005,7 @@ var SuperscriptIcon = memo31(({ className, ...props }) => {
6389
6005
  fill: "currentColor"
6390
6006
  }
6391
6007
  ),
6392
- /* @__PURE__ */ jsx65(
6008
+ /* @__PURE__ */ jsx64(
6393
6009
  "path",
6394
6010
  {
6395
6011
  fillRule: "evenodd",
@@ -6398,7 +6014,7 @@ var SuperscriptIcon = memo31(({ className, ...props }) => {
6398
6014
  fill: "currentColor"
6399
6015
  }
6400
6016
  ),
6401
- /* @__PURE__ */ jsx65(
6017
+ /* @__PURE__ */ jsx64(
6402
6018
  "path",
6403
6019
  {
6404
6020
  fillRule: "evenodd",
@@ -6415,9 +6031,9 @@ SuperscriptIcon.displayName = "SuperscriptIcon";
6415
6031
 
6416
6032
  // src/components/tiptap-icons/underline-icon.tsx
6417
6033
  import { memo as memo32 } from "react";
6418
- import { jsx as jsx66 } from "react/jsx-runtime";
6034
+ import { jsx as jsx65 } from "react/jsx-runtime";
6419
6035
  var UnderlineIcon = memo32(({ className, ...props }) => {
6420
- return /* @__PURE__ */ jsx66(
6036
+ return /* @__PURE__ */ jsx65(
6421
6037
  "svg",
6422
6038
  {
6423
6039
  width: "24",
@@ -6427,7 +6043,7 @@ var UnderlineIcon = memo32(({ className, ...props }) => {
6427
6043
  fill: "currentColor",
6428
6044
  xmlns: "http://www.w3.org/2000/svg",
6429
6045
  ...props,
6430
- children: /* @__PURE__ */ jsx66(
6046
+ children: /* @__PURE__ */ jsx65(
6431
6047
  "path",
6432
6048
  {
6433
6049
  fillRule: "evenodd",
@@ -6530,12 +6146,12 @@ function useMark(config) {
6530
6146
 
6531
6147
  // src/components/tiptap-ui/text-align-button/text-align-button.tsx
6532
6148
  import { forwardRef as forwardRef17, useCallback as useCallback24 } from "react";
6533
- import { Fragment as Fragment10, jsx as jsx67, jsxs as jsxs38 } from "react/jsx-runtime";
6149
+ import { Fragment as Fragment10, jsx as jsx66, jsxs as jsxs38 } from "react/jsx-runtime";
6534
6150
  function TextAlignShortcutBadge({
6535
6151
  align,
6536
6152
  shortcutKeys = TEXT_ALIGN_SHORTCUT_KEYS[align]
6537
6153
  }) {
6538
- return /* @__PURE__ */ jsx67(Badge, { children: parseShortcutKeys({ shortcutKeys }) });
6154
+ return /* @__PURE__ */ jsx66(Badge, { children: parseShortcutKeys({ shortcutKeys }) });
6539
6155
  }
6540
6156
  var TextAlignButton = forwardRef17(
6541
6157
  ({
@@ -6577,7 +6193,7 @@ var TextAlignButton = forwardRef17(
6577
6193
  return null;
6578
6194
  }
6579
6195
  const RenderIcon = CustomIcon ?? Icon;
6580
- return /* @__PURE__ */ jsx67(
6196
+ return /* @__PURE__ */ jsx66(
6581
6197
  Button2,
6582
6198
  {
6583
6199
  type: "button",
@@ -6594,9 +6210,9 @@ var TextAlignButton = forwardRef17(
6594
6210
  ...buttonProps,
6595
6211
  ref,
6596
6212
  children: children ?? /* @__PURE__ */ jsxs38(Fragment10, { children: [
6597
- /* @__PURE__ */ jsx67(RenderIcon, { className: "tiptap-button-icon" }),
6598
- text && /* @__PURE__ */ jsx67("span", { className: "tiptap-button-text", children: text }),
6599
- showShortcut && /* @__PURE__ */ jsx67(
6213
+ /* @__PURE__ */ jsx66(RenderIcon, { className: "tiptap-button-icon" }),
6214
+ text && /* @__PURE__ */ jsx66("span", { className: "tiptap-button-text", children: text }),
6215
+ showShortcut && /* @__PURE__ */ jsx66(
6600
6216
  TextAlignShortcutBadge,
6601
6217
  {
6602
6218
  align,
@@ -6615,7 +6231,7 @@ import { useCallback as useCallback25, useEffect as useEffect16, useState as use
6615
6231
 
6616
6232
  // src/components/tiptap-icons/align-center-icon.tsx
6617
6233
  import { memo as memo33 } from "react";
6618
- import { jsx as jsx68, jsxs as jsxs39 } from "react/jsx-runtime";
6234
+ import { jsx as jsx67, jsxs as jsxs39 } from "react/jsx-runtime";
6619
6235
  var AlignCenterIcon = memo33(({ className, ...props }) => {
6620
6236
  return /* @__PURE__ */ jsxs39(
6621
6237
  "svg",
@@ -6628,7 +6244,7 @@ var AlignCenterIcon = memo33(({ className, ...props }) => {
6628
6244
  xmlns: "http://www.w3.org/2000/svg",
6629
6245
  ...props,
6630
6246
  children: [
6631
- /* @__PURE__ */ jsx68(
6247
+ /* @__PURE__ */ jsx67(
6632
6248
  "path",
6633
6249
  {
6634
6250
  fillRule: "evenodd",
@@ -6637,7 +6253,7 @@ var AlignCenterIcon = memo33(({ className, ...props }) => {
6637
6253
  fill: "currentColor"
6638
6254
  }
6639
6255
  ),
6640
- /* @__PURE__ */ jsx68(
6256
+ /* @__PURE__ */ jsx67(
6641
6257
  "path",
6642
6258
  {
6643
6259
  fillRule: "evenodd",
@@ -6646,7 +6262,7 @@ var AlignCenterIcon = memo33(({ className, ...props }) => {
6646
6262
  fill: "currentColor"
6647
6263
  }
6648
6264
  ),
6649
- /* @__PURE__ */ jsx68(
6265
+ /* @__PURE__ */ jsx67(
6650
6266
  "path",
6651
6267
  {
6652
6268
  fillRule: "evenodd",
@@ -6663,7 +6279,7 @@ AlignCenterIcon.displayName = "AlignCenterIcon";
6663
6279
 
6664
6280
  // src/components/tiptap-icons/align-justify-icon.tsx
6665
6281
  import { memo as memo34 } from "react";
6666
- import { jsx as jsx69, jsxs as jsxs40 } from "react/jsx-runtime";
6282
+ import { jsx as jsx68, jsxs as jsxs40 } from "react/jsx-runtime";
6667
6283
  var AlignJustifyIcon = memo34(({ className, ...props }) => {
6668
6284
  return /* @__PURE__ */ jsxs40(
6669
6285
  "svg",
@@ -6676,7 +6292,7 @@ var AlignJustifyIcon = memo34(({ className, ...props }) => {
6676
6292
  xmlns: "http://www.w3.org/2000/svg",
6677
6293
  ...props,
6678
6294
  children: [
6679
- /* @__PURE__ */ jsx69(
6295
+ /* @__PURE__ */ jsx68(
6680
6296
  "path",
6681
6297
  {
6682
6298
  fillRule: "evenodd",
@@ -6685,7 +6301,7 @@ var AlignJustifyIcon = memo34(({ className, ...props }) => {
6685
6301
  fill: "currentColor"
6686
6302
  }
6687
6303
  ),
6688
- /* @__PURE__ */ jsx69(
6304
+ /* @__PURE__ */ jsx68(
6689
6305
  "path",
6690
6306
  {
6691
6307
  fillRule: "evenodd",
@@ -6694,7 +6310,7 @@ var AlignJustifyIcon = memo34(({ className, ...props }) => {
6694
6310
  fill: "currentColor"
6695
6311
  }
6696
6312
  ),
6697
- /* @__PURE__ */ jsx69(
6313
+ /* @__PURE__ */ jsx68(
6698
6314
  "path",
6699
6315
  {
6700
6316
  fillRule: "evenodd",
@@ -6711,7 +6327,7 @@ AlignJustifyIcon.displayName = "AlignJustifyIcon";
6711
6327
 
6712
6328
  // src/components/tiptap-icons/align-left-icon.tsx
6713
6329
  import { memo as memo35 } from "react";
6714
- import { jsx as jsx70, jsxs as jsxs41 } from "react/jsx-runtime";
6330
+ import { jsx as jsx69, jsxs as jsxs41 } from "react/jsx-runtime";
6715
6331
  var AlignLeftIcon = memo35(({ className, ...props }) => {
6716
6332
  return /* @__PURE__ */ jsxs41(
6717
6333
  "svg",
@@ -6724,7 +6340,7 @@ var AlignLeftIcon = memo35(({ className, ...props }) => {
6724
6340
  xmlns: "http://www.w3.org/2000/svg",
6725
6341
  ...props,
6726
6342
  children: [
6727
- /* @__PURE__ */ jsx70(
6343
+ /* @__PURE__ */ jsx69(
6728
6344
  "path",
6729
6345
  {
6730
6346
  fillRule: "evenodd",
@@ -6733,7 +6349,7 @@ var AlignLeftIcon = memo35(({ className, ...props }) => {
6733
6349
  fill: "currentColor"
6734
6350
  }
6735
6351
  ),
6736
- /* @__PURE__ */ jsx70(
6352
+ /* @__PURE__ */ jsx69(
6737
6353
  "path",
6738
6354
  {
6739
6355
  fillRule: "evenodd",
@@ -6742,7 +6358,7 @@ var AlignLeftIcon = memo35(({ className, ...props }) => {
6742
6358
  fill: "currentColor"
6743
6359
  }
6744
6360
  ),
6745
- /* @__PURE__ */ jsx70(
6361
+ /* @__PURE__ */ jsx69(
6746
6362
  "path",
6747
6363
  {
6748
6364
  fillRule: "evenodd",
@@ -6759,7 +6375,7 @@ AlignLeftIcon.displayName = "AlignLeftIcon";
6759
6375
 
6760
6376
  // src/components/tiptap-icons/align-right-icon.tsx
6761
6377
  import { memo as memo36 } from "react";
6762
- import { jsx as jsx71, jsxs as jsxs42 } from "react/jsx-runtime";
6378
+ import { jsx as jsx70, jsxs as jsxs42 } from "react/jsx-runtime";
6763
6379
  var AlignRightIcon = memo36(({ className, ...props }) => {
6764
6380
  return /* @__PURE__ */ jsxs42(
6765
6381
  "svg",
@@ -6772,7 +6388,7 @@ var AlignRightIcon = memo36(({ className, ...props }) => {
6772
6388
  xmlns: "http://www.w3.org/2000/svg",
6773
6389
  ...props,
6774
6390
  children: [
6775
- /* @__PURE__ */ jsx71(
6391
+ /* @__PURE__ */ jsx70(
6776
6392
  "path",
6777
6393
  {
6778
6394
  fillRule: "evenodd",
@@ -6781,7 +6397,7 @@ var AlignRightIcon = memo36(({ className, ...props }) => {
6781
6397
  fill: "currentColor"
6782
6398
  }
6783
6399
  ),
6784
- /* @__PURE__ */ jsx71(
6400
+ /* @__PURE__ */ jsx70(
6785
6401
  "path",
6786
6402
  {
6787
6403
  fillRule: "evenodd",
@@ -6790,7 +6406,7 @@ var AlignRightIcon = memo36(({ className, ...props }) => {
6790
6406
  fill: "currentColor"
6791
6407
  }
6792
6408
  ),
6793
- /* @__PURE__ */ jsx71(
6409
+ /* @__PURE__ */ jsx70(
6794
6410
  "path",
6795
6411
  {
6796
6412
  fillRule: "evenodd",
@@ -6898,12 +6514,12 @@ function useTextAlign(config) {
6898
6514
 
6899
6515
  // src/components/tiptap-ui/undo-redo-button/undo-redo-button.tsx
6900
6516
  import { forwardRef as forwardRef18, useCallback as useCallback26 } from "react";
6901
- import { Fragment as Fragment11, jsx as jsx72, jsxs as jsxs43 } from "react/jsx-runtime";
6517
+ import { Fragment as Fragment11, jsx as jsx71, jsxs as jsxs43 } from "react/jsx-runtime";
6902
6518
  function HistoryShortcutBadge({
6903
6519
  action,
6904
6520
  shortcutKeys = UNDO_REDO_SHORTCUT_KEYS[action]
6905
6521
  }) {
6906
- return /* @__PURE__ */ jsx72(Badge, { children: parseShortcutKeys({ shortcutKeys }) });
6522
+ return /* @__PURE__ */ jsx71(Badge, { children: parseShortcutKeys({ shortcutKeys }) });
6907
6523
  }
6908
6524
  var UndoRedoButton = forwardRef18(
6909
6525
  ({
@@ -6935,7 +6551,7 @@ var UndoRedoButton = forwardRef18(
6935
6551
  if (!isVisible) {
6936
6552
  return null;
6937
6553
  }
6938
- return /* @__PURE__ */ jsx72(
6554
+ return /* @__PURE__ */ jsx71(
6939
6555
  Button2,
6940
6556
  {
6941
6557
  type: "button",
@@ -6950,9 +6566,9 @@ var UndoRedoButton = forwardRef18(
6950
6566
  ...buttonProps,
6951
6567
  ref,
6952
6568
  children: children ?? /* @__PURE__ */ jsxs43(Fragment11, { children: [
6953
- /* @__PURE__ */ jsx72(Icon, { className: "tiptap-button-icon" }),
6954
- text && /* @__PURE__ */ jsx72("span", { className: "tiptap-button-text", children: text }),
6955
- showShortcut && /* @__PURE__ */ jsx72(
6569
+ /* @__PURE__ */ jsx71(Icon, { className: "tiptap-button-icon" }),
6570
+ text && /* @__PURE__ */ jsx71("span", { className: "tiptap-button-text", children: text }),
6571
+ showShortcut && /* @__PURE__ */ jsx71(
6956
6572
  HistoryShortcutBadge,
6957
6573
  {
6958
6574
  action,
@@ -6971,9 +6587,9 @@ import { useCallback as useCallback27, useEffect as useEffect17, useState as use
6971
6587
 
6972
6588
  // src/components/tiptap-icons/redo2-icon.tsx
6973
6589
  import { memo as memo37 } from "react";
6974
- import { jsx as jsx73 } from "react/jsx-runtime";
6590
+ import { jsx as jsx72 } from "react/jsx-runtime";
6975
6591
  var Redo2Icon = memo37(({ className, ...props }) => {
6976
- return /* @__PURE__ */ jsx73(
6592
+ return /* @__PURE__ */ jsx72(
6977
6593
  "svg",
6978
6594
  {
6979
6595
  width: "24",
@@ -6983,7 +6599,7 @@ var Redo2Icon = memo37(({ className, ...props }) => {
6983
6599
  fill: "currentColor",
6984
6600
  xmlns: "http://www.w3.org/2000/svg",
6985
6601
  ...props,
6986
- children: /* @__PURE__ */ jsx73(
6602
+ children: /* @__PURE__ */ jsx72(
6987
6603
  "path",
6988
6604
  {
6989
6605
  fillRule: "evenodd",
@@ -6999,9 +6615,9 @@ Redo2Icon.displayName = "Redo2Icon";
6999
6615
 
7000
6616
  // src/components/tiptap-icons/undo2-icon.tsx
7001
6617
  import { memo as memo38 } from "react";
7002
- import { jsx as jsx74 } from "react/jsx-runtime";
6618
+ import { jsx as jsx73 } from "react/jsx-runtime";
7003
6619
  var Undo2Icon = memo38(({ className, ...props }) => {
7004
- return /* @__PURE__ */ jsx74(
6620
+ return /* @__PURE__ */ jsx73(
7005
6621
  "svg",
7006
6622
  {
7007
6623
  width: "24",
@@ -7011,7 +6627,7 @@ var Undo2Icon = memo38(({ className, ...props }) => {
7011
6627
  fill: "currentColor",
7012
6628
  xmlns: "http://www.w3.org/2000/svg",
7013
6629
  ...props,
7014
- children: /* @__PURE__ */ jsx74(
6630
+ children: /* @__PURE__ */ jsx73(
7015
6631
  "path",
7016
6632
  {
7017
6633
  fillRule: "evenodd",
@@ -7287,12 +6903,12 @@ import { ChevronDown } from "lucide-react";
7287
6903
  // src/components/ui/command.tsx
7288
6904
  import { Command as CommandPrimitive } from "cmdk";
7289
6905
  import { SearchIcon } from "lucide-react";
7290
- import { jsx as jsx75, jsxs as jsxs44 } from "react/jsx-runtime";
6906
+ import { jsx as jsx74, jsxs as jsxs44 } from "react/jsx-runtime";
7291
6907
  function Command({
7292
6908
  className,
7293
6909
  ...props
7294
6910
  }) {
7295
- return /* @__PURE__ */ jsx75(
6911
+ return /* @__PURE__ */ jsx74(
7296
6912
  CommandPrimitive,
7297
6913
  {
7298
6914
  "data-slot": "command",
@@ -7314,8 +6930,8 @@ function CommandInput({
7314
6930
  "data-slot": "command-input-wrapper",
7315
6931
  className: "flex h-9 items-center gap-2 border-b px-3",
7316
6932
  children: [
7317
- /* @__PURE__ */ jsx75(SearchIcon, { className: "size-4 shrink-0 opacity-50" }),
7318
- /* @__PURE__ */ jsx75(
6933
+ /* @__PURE__ */ jsx74(SearchIcon, { className: "size-4 shrink-0 opacity-50" }),
6934
+ /* @__PURE__ */ jsx74(
7319
6935
  CommandPrimitive.Input,
7320
6936
  {
7321
6937
  "data-slot": "command-input",
@@ -7334,7 +6950,7 @@ function CommandList({
7334
6950
  className,
7335
6951
  ...props
7336
6952
  }) {
7337
- return /* @__PURE__ */ jsx75(
6953
+ return /* @__PURE__ */ jsx74(
7338
6954
  CommandPrimitive.List,
7339
6955
  {
7340
6956
  "data-slot": "command-list",
@@ -7349,7 +6965,7 @@ function CommandList({
7349
6965
  function CommandEmpty({
7350
6966
  ...props
7351
6967
  }) {
7352
- return /* @__PURE__ */ jsx75(
6968
+ return /* @__PURE__ */ jsx74(
7353
6969
  CommandPrimitive.Empty,
7354
6970
  {
7355
6971
  "data-slot": "command-empty",
@@ -7362,7 +6978,7 @@ function CommandGroup({
7362
6978
  className,
7363
6979
  ...props
7364
6980
  }) {
7365
- return /* @__PURE__ */ jsx75(
6981
+ return /* @__PURE__ */ jsx74(
7366
6982
  CommandPrimitive.Group,
7367
6983
  {
7368
6984
  "data-slot": "command-group",
@@ -7378,7 +6994,7 @@ function CommandItem({
7378
6994
  className,
7379
6995
  ...props
7380
6996
  }) {
7381
- return /* @__PURE__ */ jsx75(
6997
+ return /* @__PURE__ */ jsx74(
7382
6998
  CommandPrimitive.Item,
7383
6999
  {
7384
7000
  "data-slot": "command-item",
@@ -7393,16 +7009,16 @@ function CommandItem({
7393
7009
 
7394
7010
  // src/components/ui/popover.tsx
7395
7011
  import * as PopoverPrimitive2 from "@radix-ui/react-popover";
7396
- import { jsx as jsx76 } from "react/jsx-runtime";
7012
+ import { jsx as jsx75 } from "react/jsx-runtime";
7397
7013
  function Popover2({
7398
7014
  ...props
7399
7015
  }) {
7400
- return /* @__PURE__ */ jsx76(PopoverPrimitive2.Root, { "data-slot": "popover", ...props });
7016
+ return /* @__PURE__ */ jsx75(PopoverPrimitive2.Root, { "data-slot": "popover", ...props });
7401
7017
  }
7402
7018
  function PopoverTrigger2({
7403
7019
  ...props
7404
7020
  }) {
7405
- return /* @__PURE__ */ jsx76(PopoverPrimitive2.Trigger, { "data-slot": "popover-trigger", ...props });
7021
+ return /* @__PURE__ */ jsx75(PopoverPrimitive2.Trigger, { "data-slot": "popover-trigger", ...props });
7406
7022
  }
7407
7023
  function PopoverContent2({
7408
7024
  className,
@@ -7410,7 +7026,7 @@ function PopoverContent2({
7410
7026
  sideOffset = 4,
7411
7027
  ...props
7412
7028
  }) {
7413
- return /* @__PURE__ */ jsx76(PopoverPrimitive2.Portal, { children: /* @__PURE__ */ jsx76(
7029
+ return /* @__PURE__ */ jsx75(PopoverPrimitive2.Portal, { children: /* @__PURE__ */ jsx75(
7414
7030
  PopoverPrimitive2.Content,
7415
7031
  {
7416
7032
  "data-slot": "popover-content",
@@ -7426,7 +7042,7 @@ function PopoverContent2({
7426
7042
  }
7427
7043
 
7428
7044
  // src/components/tiptap-ui/font-family-dropdown/font-family-dropdown.tsx
7429
- import { jsx as jsx77, jsxs as jsxs45 } from "react/jsx-runtime";
7045
+ import { jsx as jsx76, jsxs as jsxs45 } from "react/jsx-runtime";
7430
7046
  function FontFamilyDropdown() {
7431
7047
  const { editor } = useCurrentEditor3();
7432
7048
  const [open, setOpen] = useState28(false);
@@ -7445,26 +7061,26 @@ function FontFamilyDropdown() {
7445
7061
  const currentFont = getCurrentFontLabel();
7446
7062
  const applyFont = (family) => {
7447
7063
  if (!editor) return;
7448
- const { from, to } = editor.state.selection;
7449
- if (from === to) {
7450
- editor.chain().focus().setFontFamily(family).run();
7451
- return;
7452
- }
7453
- editor.chain().focus().setMark("textStyle", { fontFamily: family }).run();
7064
+ setTimeout(() => {
7065
+ const success = editor.chain().focus().setFontFamily(family).run();
7066
+ if (!success) {
7067
+ console.warn("Font not applied:", family);
7068
+ }
7069
+ }, 0);
7454
7070
  };
7455
7071
  return /* @__PURE__ */ jsxs45(Popover2, { open, onOpenChange: setOpen, children: [
7456
- /* @__PURE__ */ jsx77(PopoverTrigger2, { asChild: true, children: /* @__PURE__ */ jsxs45(
7072
+ /* @__PURE__ */ jsx76(PopoverTrigger2, { asChild: true, children: /* @__PURE__ */ jsxs45(
7457
7073
  Button,
7458
7074
  {
7459
7075
  variant: "outlineFontFamily",
7460
7076
  className: "min-w-[90px] h-7 px-2 flex items-center justify-between rounded-sm border-[#a3a3a8] text-[#a3a3a8] hover:border-[#000] hover:text-[#fff] transition-colors",
7461
7077
  children: [
7462
7078
  currentFont,
7463
- /* @__PURE__ */ jsx77(ChevronDown, { className: "w-4 h-4" })
7079
+ /* @__PURE__ */ jsx76(ChevronDown, { className: "w-4 h-4" })
7464
7080
  ]
7465
7081
  }
7466
7082
  ) }),
7467
- /* @__PURE__ */ jsx77(
7083
+ /* @__PURE__ */ jsx76(
7468
7084
  PopoverContent2,
7469
7085
  {
7470
7086
  className: "w-[300px] p-0",
@@ -7476,24 +7092,26 @@ function FontFamilyDropdown() {
7476
7092
  }
7477
7093
  },
7478
7094
  children: /* @__PURE__ */ jsxs45(Command, { children: [
7479
- /* @__PURE__ */ jsx77("div", { className: "cmd-input-wrapper", children: /* @__PURE__ */ jsx77(CommandInput, { placeholder: "Search font..." }) }),
7095
+ /* @__PURE__ */ jsx76("div", { className: "cmd-input-wrapper", children: /* @__PURE__ */ jsx76(CommandInput, { placeholder: "Search font..." }) }),
7480
7096
  /* @__PURE__ */ jsxs45(CommandList, { className: "max-h-[220px]", children: [
7481
- /* @__PURE__ */ jsx77(CommandEmpty, { children: "No font found." }),
7097
+ /* @__PURE__ */ jsx76(CommandEmpty, { children: "No font found." }),
7482
7098
  /* @__PURE__ */ jsxs45(CommandGroup, { children: [
7483
- /* @__PURE__ */ jsx77(
7099
+ /* @__PURE__ */ jsx76(
7484
7100
  CommandItem,
7485
7101
  {
7486
7102
  onSelect: () => {
7487
7103
  if (!editor) return;
7488
- editor.chain().focus().unsetFontFamily().run();
7489
- setOpen(false);
7104
+ setTimeout(() => {
7105
+ editor.chain().focus().unsetFontFamily().run();
7106
+ setOpen(false);
7107
+ }, 0);
7490
7108
  },
7491
7109
  className: "font-sans",
7492
7110
  children: "Default"
7493
7111
  },
7494
7112
  "default"
7495
7113
  ),
7496
- FONT_OPTIONS.map(({ label, cssFontFamily }) => /* @__PURE__ */ jsx77(
7114
+ FONT_OPTIONS.map(({ label, cssFontFamily }) => /* @__PURE__ */ jsx76(
7497
7115
  CommandItem,
7498
7116
  {
7499
7117
  onSelect: () => {
@@ -7521,12 +7139,12 @@ import { debounce } from "lodash";
7521
7139
 
7522
7140
  // src/components/ui/label.tsx
7523
7141
  import * as LabelPrimitive from "@radix-ui/react-label";
7524
- import { jsx as jsx78 } from "react/jsx-runtime";
7142
+ import { jsx as jsx77 } from "react/jsx-runtime";
7525
7143
  function Label({
7526
7144
  className,
7527
7145
  ...props
7528
7146
  }) {
7529
- return /* @__PURE__ */ jsx78(
7147
+ return /* @__PURE__ */ jsx77(
7530
7148
  LabelPrimitive.Root,
7531
7149
  {
7532
7150
  "data-slot": "label",
@@ -7541,7 +7159,7 @@ function Label({
7541
7159
 
7542
7160
  // src/components/tiptap-ui/color-picker/color-picker.tsx
7543
7161
  import React4 from "react";
7544
- import { jsx as jsx79, jsxs as jsxs46 } from "react/jsx-runtime";
7162
+ import { jsx as jsx78, jsxs as jsxs46 } from "react/jsx-runtime";
7545
7163
  function ColorPicker({ type = "text" }) {
7546
7164
  const { editor } = useCurrentEditor4();
7547
7165
  const [open, setOpen] = useState29(false);
@@ -7592,14 +7210,14 @@ function ColorPicker({ type = "text" }) {
7592
7210
  );
7593
7211
  if (!editor) return null;
7594
7212
  return /* @__PURE__ */ jsxs46(Popover2, { open, onOpenChange: (v) => setOpen(v), children: [
7595
- /* @__PURE__ */ jsx79(PopoverTrigger2, { asChild: true, children: /* @__PURE__ */ jsxs46(
7213
+ /* @__PURE__ */ jsx78(PopoverTrigger2, { asChild: true, children: /* @__PURE__ */ jsxs46(
7596
7214
  Button,
7597
7215
  {
7598
7216
  variant: "outlineFontFamily",
7599
7217
  className: "flex items-center h-7 rounded-sm px-2 border-[#a3a3a8] text-[#a3a3a8] hover:text-white",
7600
7218
  children: [
7601
7219
  "Color",
7602
- /* @__PURE__ */ jsx79(
7220
+ /* @__PURE__ */ jsx78(
7603
7221
  "span",
7604
7222
  {
7605
7223
  className: "w-3 h-3 ml-2 rounded-sm border border-black/20",
@@ -7616,9 +7234,9 @@ function ColorPicker({ type = "text" }) {
7616
7234
  align: "start",
7617
7235
  onClick: (e) => e.stopPropagation(),
7618
7236
  children: [
7619
- /* @__PURE__ */ jsx79(Label, { className: "text-xs mb-2", children: type === "text" ? "Text Color" : "Highlight Color" }),
7237
+ /* @__PURE__ */ jsx78(Label, { className: "text-xs mb-2", children: type === "text" ? "Text Color" : "Highlight Color" }),
7620
7238
  !showCustom && /* @__PURE__ */ jsxs46("div", { className: "flex flex-col gap-3", children: [
7621
- /* @__PURE__ */ jsx79("div", { className: "grid grid-cols-7 gap-1", children: GRADIENT_ROWS_70.map((c) => /* @__PURE__ */ jsx79(
7239
+ /* @__PURE__ */ jsx78("div", { className: "grid grid-cols-7 gap-1", children: GRADIENT_ROWS_70.map((c) => /* @__PURE__ */ jsx78(
7622
7240
  "div",
7623
7241
  {
7624
7242
  onClick: () => {
@@ -7630,7 +7248,7 @@ function ColorPicker({ type = "text" }) {
7630
7248
  },
7631
7249
  c
7632
7250
  )) }),
7633
- /* @__PURE__ */ jsx79(
7251
+ /* @__PURE__ */ jsx78(
7634
7252
  Button,
7635
7253
  {
7636
7254
  size: "sm",
@@ -7654,7 +7272,7 @@ function ColorPicker({ type = "text" }) {
7654
7272
  onPointerUp: (e) => e.stopPropagation(),
7655
7273
  onClick: (e) => e.stopPropagation(),
7656
7274
  children: [
7657
- /* @__PURE__ */ jsx79(
7275
+ /* @__PURE__ */ jsx78(
7658
7276
  HexColorPicker,
7659
7277
  {
7660
7278
  color: tempHex,
@@ -7666,7 +7284,7 @@ function ColorPicker({ type = "text" }) {
7666
7284
  }
7667
7285
  ),
7668
7286
  /* @__PURE__ */ jsxs46("div", { className: "flex gap-2 items-center", children: [
7669
- /* @__PURE__ */ jsx79(
7287
+ /* @__PURE__ */ jsx78(
7670
7288
  "input",
7671
7289
  {
7672
7290
  value: tempHex,
@@ -7677,7 +7295,7 @@ function ColorPicker({ type = "text" }) {
7677
7295
  className: "w-full px-2 py-1 border rounded text-sm"
7678
7296
  }
7679
7297
  ),
7680
- /* @__PURE__ */ jsx79(
7298
+ /* @__PURE__ */ jsx78(
7681
7299
  Button,
7682
7300
  {
7683
7301
  size: "sm",
@@ -7690,7 +7308,7 @@ function ColorPicker({ type = "text" }) {
7690
7308
  }
7691
7309
  )
7692
7310
  ] }),
7693
- /* @__PURE__ */ jsx79("div", { className: "flex justify-end mt-2", children: /* @__PURE__ */ jsx79(
7311
+ /* @__PURE__ */ jsx78("div", { className: "flex justify-end mt-2", children: /* @__PURE__ */ jsx78(
7694
7312
  Button,
7695
7313
  {
7696
7314
  size: "sm",
@@ -7718,7 +7336,7 @@ function ColorPicker({ type = "text" }) {
7718
7336
  import { useState as useState30 } from "react";
7719
7337
  import { useCurrentEditor as useCurrentEditor5 } from "@tiptap/react";
7720
7338
  import { FiTable } from "react-icons/fi";
7721
- import { jsx as jsx80, jsxs as jsxs47 } from "react/jsx-runtime";
7339
+ import { jsx as jsx79, jsxs as jsxs47 } from "react/jsx-runtime";
7722
7340
  function TableDropdownMenu() {
7723
7341
  const { editor } = useCurrentEditor5();
7724
7342
  const [open, setOpen] = useState30(false);
@@ -7761,20 +7379,20 @@ function TableDropdownMenu() {
7761
7379
  setOpen(false);
7762
7380
  };
7763
7381
  return /* @__PURE__ */ jsxs47(Popover2, { open, onOpenChange: setOpen, children: [
7764
- /* @__PURE__ */ jsx80(PopoverTrigger2, { asChild: true, children: /* @__PURE__ */ jsx80(Button, { variant: "tableButton", size: "sm", children: /* @__PURE__ */ jsx80(FiTable, { size: 16, color: "#a3a3a8" }) }) }),
7765
- /* @__PURE__ */ jsx80(PopoverContent2, { className: "w-[220px] p-0", align: "start", children: /* @__PURE__ */ jsxs47(Command, { children: [
7766
- /* @__PURE__ */ jsx80(CommandInput, { placeholder: "Search table actions..." }),
7767
- /* @__PURE__ */ jsx80(CommandList, { className: "max-h-[260px]", children: /* @__PURE__ */ jsxs47(CommandGroup, { children: [
7768
- /* @__PURE__ */ jsx80(CommandItem, { onSelect: () => handleAction("insert"), children: "Insert Table" }),
7769
- /* @__PURE__ */ jsx80(CommandItem, { onSelect: () => handleAction("addColBefore"), children: "Add Column Before" }),
7770
- /* @__PURE__ */ jsx80(CommandItem, { onSelect: () => handleAction("addColAfter"), children: "Add Column After" }),
7771
- /* @__PURE__ */ jsx80(CommandItem, { onSelect: () => handleAction("delCol"), children: "Delete Column" }),
7772
- /* @__PURE__ */ jsx80(CommandItem, { onSelect: () => handleAction("addRowBefore"), children: "Add Row Before" }),
7773
- /* @__PURE__ */ jsx80(CommandItem, { onSelect: () => handleAction("addRowAfter"), children: "Add Row After" }),
7774
- /* @__PURE__ */ jsx80(CommandItem, { onSelect: () => handleAction("delRow"), children: "Delete Row" }),
7775
- /* @__PURE__ */ jsx80(CommandItem, { onSelect: () => handleAction("merge"), children: "Merge Cells" }),
7776
- /* @__PURE__ */ jsx80(CommandItem, { onSelect: () => handleAction("split"), children: "Split Cells" }),
7777
- /* @__PURE__ */ jsx80(CommandItem, { onSelect: () => handleAction("deleteTable"), children: "Delete Table" })
7382
+ /* @__PURE__ */ jsx79(PopoverTrigger2, { asChild: true, children: /* @__PURE__ */ jsx79(Button, { variant: "tableButton", size: "sm", children: /* @__PURE__ */ jsx79(FiTable, { size: 16, color: "#a3a3a8" }) }) }),
7383
+ /* @__PURE__ */ jsx79(PopoverContent2, { className: "w-[220px] p-0", align: "start", children: /* @__PURE__ */ jsxs47(Command, { children: [
7384
+ /* @__PURE__ */ jsx79(CommandInput, { placeholder: "Search table actions..." }),
7385
+ /* @__PURE__ */ jsx79(CommandList, { className: "max-h-[260px]", children: /* @__PURE__ */ jsxs47(CommandGroup, { children: [
7386
+ /* @__PURE__ */ jsx79(CommandItem, { onSelect: () => handleAction("insert"), children: "Insert Table" }),
7387
+ /* @__PURE__ */ jsx79(CommandItem, { onSelect: () => handleAction("addColBefore"), children: "Add Column Before" }),
7388
+ /* @__PURE__ */ jsx79(CommandItem, { onSelect: () => handleAction("addColAfter"), children: "Add Column After" }),
7389
+ /* @__PURE__ */ jsx79(CommandItem, { onSelect: () => handleAction("delCol"), children: "Delete Column" }),
7390
+ /* @__PURE__ */ jsx79(CommandItem, { onSelect: () => handleAction("addRowBefore"), children: "Add Row Before" }),
7391
+ /* @__PURE__ */ jsx79(CommandItem, { onSelect: () => handleAction("addRowAfter"), children: "Add Row After" }),
7392
+ /* @__PURE__ */ jsx79(CommandItem, { onSelect: () => handleAction("delRow"), children: "Delete Row" }),
7393
+ /* @__PURE__ */ jsx79(CommandItem, { onSelect: () => handleAction("merge"), children: "Merge Cells" }),
7394
+ /* @__PURE__ */ jsx79(CommandItem, { onSelect: () => handleAction("split"), children: "Split Cells" }),
7395
+ /* @__PURE__ */ jsx79(CommandItem, { onSelect: () => handleAction("deleteTable"), children: "Delete Table" })
7778
7396
  ] }) })
7779
7397
  ] }) })
7780
7398
  ] });
@@ -7782,9 +7400,9 @@ function TableDropdownMenu() {
7782
7400
 
7783
7401
  // src/components/tiptap-icons/arrow-left-icon.tsx
7784
7402
  import { memo as memo39 } from "react";
7785
- import { jsx as jsx81 } from "react/jsx-runtime";
7403
+ import { jsx as jsx80 } from "react/jsx-runtime";
7786
7404
  var ArrowLeftIcon = memo39(({ className, ...props }) => {
7787
- return /* @__PURE__ */ jsx81(
7405
+ return /* @__PURE__ */ jsx80(
7788
7406
  "svg",
7789
7407
  {
7790
7408
  width: "24",
@@ -7794,7 +7412,7 @@ var ArrowLeftIcon = memo39(({ className, ...props }) => {
7794
7412
  fill: "currentColor",
7795
7413
  xmlns: "http://www.w3.org/2000/svg",
7796
7414
  ...props,
7797
- children: /* @__PURE__ */ jsx81(
7415
+ children: /* @__PURE__ */ jsx80(
7798
7416
  "path",
7799
7417
  {
7800
7418
  d: "M12.7071 5.70711C13.0976 5.31658 13.0976 4.68342 12.7071 4.29289C12.3166 3.90237 11.6834 3.90237 11.2929 4.29289L4.29289 11.2929C3.90237 11.6834 3.90237 12.3166 4.29289 12.7071L11.2929 19.7071C11.6834 20.0976 12.3166 20.0976 12.7071 19.7071C13.0976 19.3166 13.0976 18.6834 12.7071 18.2929L7.41421 13L19 13C19.5523 13 20 12.5523 20 12C20 11.4477 19.5523 11 19 11L7.41421 11L12.7071 5.70711Z",
@@ -8020,62 +7638,62 @@ function useCursorVisibility({
8020
7638
  }
8021
7639
 
8022
7640
  // src/components/tiptap-templates/simple/simple-editor.tsx
8023
- import { Fragment as Fragment12, jsx as jsx82, jsxs as jsxs48 } from "react/jsx-runtime";
7641
+ import { Fragment as Fragment12, jsx as jsx81, jsxs as jsxs48 } from "react/jsx-runtime";
8024
7642
  var MainToolbarContent = ({
8025
7643
  onHighlighterClick,
8026
7644
  onLinkClick,
8027
7645
  isMobile
8028
7646
  }) => {
8029
7647
  return /* @__PURE__ */ jsxs48(Fragment12, { children: [
8030
- /* @__PURE__ */ jsx82(Spacer, {}),
8031
- /* @__PURE__ */ jsx82(FontFamilyDropdown, {}),
8032
- /* @__PURE__ */ jsx82(ColorPicker, { type: "text" }),
7648
+ /* @__PURE__ */ jsx81(Spacer, {}),
7649
+ /* @__PURE__ */ jsx81(FontFamilyDropdown, {}),
7650
+ /* @__PURE__ */ jsx81(ColorPicker, { type: "text" }),
8033
7651
  /* @__PURE__ */ jsxs48(ToolbarGroup, { children: [
8034
- /* @__PURE__ */ jsx82(MarkButton, { type: "bold" }),
8035
- /* @__PURE__ */ jsx82(MarkButton, { type: "italic" }),
8036
- /* @__PURE__ */ jsx82(MarkButton, { type: "strike" }),
8037
- /* @__PURE__ */ jsx82(MarkButton, { type: "code" }),
8038
- /* @__PURE__ */ jsx82(MarkButton, { type: "underline" }),
8039
- /* @__PURE__ */ jsx82(UndoRedoButton, { action: "undo" }),
8040
- /* @__PURE__ */ jsx82(UndoRedoButton, { action: "redo" })
7652
+ /* @__PURE__ */ jsx81(MarkButton, { type: "bold" }),
7653
+ /* @__PURE__ */ jsx81(MarkButton, { type: "italic" }),
7654
+ /* @__PURE__ */ jsx81(MarkButton, { type: "strike" }),
7655
+ /* @__PURE__ */ jsx81(MarkButton, { type: "code" }),
7656
+ /* @__PURE__ */ jsx81(MarkButton, { type: "underline" }),
7657
+ /* @__PURE__ */ jsx81(UndoRedoButton, { action: "undo" }),
7658
+ /* @__PURE__ */ jsx81(UndoRedoButton, { action: "redo" })
8041
7659
  ] }),
8042
- /* @__PURE__ */ jsx82(ToolbarSeparator, {}),
7660
+ /* @__PURE__ */ jsx81(ToolbarSeparator, {}),
8043
7661
  /* @__PURE__ */ jsxs48(ToolbarGroup, { children: [
8044
- /* @__PURE__ */ jsx82(TextAlignButton, { align: "left" }),
8045
- /* @__PURE__ */ jsx82(TextAlignButton, { align: "center" }),
8046
- /* @__PURE__ */ jsx82(TextAlignButton, { align: "right" }),
8047
- /* @__PURE__ */ jsx82(TextAlignButton, { align: "justify" })
7662
+ /* @__PURE__ */ jsx81(TextAlignButton, { align: "left" }),
7663
+ /* @__PURE__ */ jsx81(TextAlignButton, { align: "center" }),
7664
+ /* @__PURE__ */ jsx81(TextAlignButton, { align: "right" }),
7665
+ /* @__PURE__ */ jsx81(TextAlignButton, { align: "justify" })
8048
7666
  ] }),
8049
- /* @__PURE__ */ jsx82(ToolbarSeparator, {}),
7667
+ /* @__PURE__ */ jsx81(ToolbarSeparator, {}),
8050
7668
  /* @__PURE__ */ jsxs48(ToolbarGroup, { children: [
8051
- /* @__PURE__ */ jsx82(HeadingDropdownMenu, { levels: [1, 2, 3, 4], portal: isMobile }),
8052
- /* @__PURE__ */ jsx82(
7669
+ /* @__PURE__ */ jsx81(HeadingDropdownMenu, { levels: [1, 2, 3, 4], portal: isMobile }),
7670
+ /* @__PURE__ */ jsx81(
8053
7671
  ListDropdownMenu,
8054
7672
  {
8055
7673
  types: ["bulletList", "orderedList", "taskList"],
8056
7674
  portal: isMobile
8057
7675
  }
8058
7676
  ),
8059
- /* @__PURE__ */ jsx82(BlockquoteButton, {})
7677
+ /* @__PURE__ */ jsx81(BlockquoteButton, {})
8060
7678
  ] }),
8061
- /* @__PURE__ */ jsx82(ToolbarGroup, { children: /* @__PURE__ */ jsx82(TableDropdownMenu, {}) }),
8062
- /* @__PURE__ */ jsx82(ToolbarGroup, {}),
8063
- /* @__PURE__ */ jsx82(ToolbarSeparator, {}),
8064
- /* @__PURE__ */ jsx82(ToolbarGroup, { children: /* @__PURE__ */ jsx82(ImageUploadButton, { text: "Add" }) }),
8065
- /* @__PURE__ */ jsx82(Spacer, {}),
8066
- isMobile && /* @__PURE__ */ jsx82(ToolbarSeparator, {})
7679
+ /* @__PURE__ */ jsx81(ToolbarGroup, { children: /* @__PURE__ */ jsx81(TableDropdownMenu, {}) }),
7680
+ /* @__PURE__ */ jsx81(ToolbarGroup, {}),
7681
+ /* @__PURE__ */ jsx81(ToolbarSeparator, {}),
7682
+ /* @__PURE__ */ jsx81(ToolbarGroup, { children: /* @__PURE__ */ jsx81(ImageUploadButton, { text: "Add" }) }),
7683
+ /* @__PURE__ */ jsx81(Spacer, {}),
7684
+ isMobile && /* @__PURE__ */ jsx81(ToolbarSeparator, {})
8067
7685
  ] });
8068
7686
  };
8069
7687
  var MobileToolbarContent = ({
8070
7688
  type,
8071
7689
  onBack
8072
7690
  }) => /* @__PURE__ */ jsxs48(Fragment12, { children: [
8073
- /* @__PURE__ */ jsx82(ToolbarGroup, { children: /* @__PURE__ */ jsxs48(Button2, { "data-style": "ghost", onClick: onBack, children: [
8074
- /* @__PURE__ */ jsx82(ArrowLeftIcon, { className: "tiptap-button-icon" }),
8075
- type === "highlighter" ? /* @__PURE__ */ jsx82(HighlighterIcon, { className: "tiptap-button-icon" }) : /* @__PURE__ */ jsx82(LinkIcon, { className: "tiptap-button-icon" })
7691
+ /* @__PURE__ */ jsx81(ToolbarGroup, { children: /* @__PURE__ */ jsxs48(Button2, { "data-style": "ghost", onClick: onBack, children: [
7692
+ /* @__PURE__ */ jsx81(ArrowLeftIcon, { className: "tiptap-button-icon" }),
7693
+ type === "highlighter" ? /* @__PURE__ */ jsx81(HighlighterIcon, { className: "tiptap-button-icon" }) : /* @__PURE__ */ jsx81(LinkIcon, { className: "tiptap-button-icon" })
8076
7694
  ] }) }),
8077
- /* @__PURE__ */ jsx82(ToolbarSeparator, {}),
8078
- type === "highlighter" ? /* @__PURE__ */ jsx82(ColorHighlightPopoverContent, {}) : /* @__PURE__ */ jsx82(LinkContent, {})
7695
+ /* @__PURE__ */ jsx81(ToolbarSeparator, {}),
7696
+ type === "highlighter" ? /* @__PURE__ */ jsx81(ColorHighlightPopoverContent, {}) : /* @__PURE__ */ jsx81(LinkContent, {})
8079
7697
  ] });
8080
7698
  function SimpleEditor() {
8081
7699
  const { setEditorContent, debouncedSave } = useEditorBridge();
@@ -8085,6 +7703,14 @@ function SimpleEditor() {
8085
7703
  "main"
8086
7704
  );
8087
7705
  const toolbarRef = useRef7(null);
7706
+ const CustomBlockquote = Blockquote.extend({
7707
+ addOptions() {
7708
+ return {
7709
+ ...this.parent?.(),
7710
+ HTMLAttributes: {}
7711
+ };
7712
+ }
7713
+ });
8088
7714
  const editor = useEditor({
8089
7715
  immediatelyRender: false,
8090
7716
  editorProps: {
@@ -8099,6 +7725,14 @@ function SimpleEditor() {
8099
7725
  extensions: [
8100
7726
  StarterKit.configure({
8101
7727
  horizontalRule: false,
7728
+ bulletList: {
7729
+ keepMarks: true,
7730
+ keepAttributes: true
7731
+ },
7732
+ orderedList: {
7733
+ keepMarks: true,
7734
+ keepAttributes: true
7735
+ },
8102
7736
  link: {
8103
7737
  openOnClick: false,
8104
7738
  enableClickSelection: true
@@ -8106,25 +7740,10 @@ function SimpleEditor() {
8106
7740
  }),
8107
7741
  HorizontalRule,
8108
7742
  index_default,
8109
- index_default3.configure({
8110
- HTMLAttributes: {
8111
- class: "blockquote-node"
8112
- }
8113
- }),
8114
- index_default4.configure({
8115
- HTMLAttributes: {
8116
- class: "code-block-node"
8117
- }
8118
- }),
8119
- ListItem.configure({
8120
- HTMLAttributes: {
8121
- class: "list-item-node"
8122
- }
8123
- }),
8124
- Image,
8125
7743
  index_default2,
8126
- index_default5,
7744
+ index_default3,
8127
7745
  Gapcursor,
7746
+ CustomBlockquote,
8128
7747
  TextStyle,
8129
7748
  FontSizeStepper.configure({ step: 2, min: 8, defaultSize: 16 }),
8130
7749
  FontFamily.configure({
@@ -8145,7 +7764,7 @@ function SimpleEditor() {
8145
7764
  Typography,
8146
7765
  Superscript,
8147
7766
  Subscript,
8148
- Selection3,
7767
+ Selection2,
8149
7768
  ImageUploadNode2.configure({
8150
7769
  accept: "image/*",
8151
7770
  maxSize: MAX_FILE_SIZE,
@@ -8201,8 +7820,8 @@ function SimpleEditor() {
8201
7820
  window.visualViewport?.removeEventListener("scroll", updatePosition);
8202
7821
  };
8203
7822
  }, []);
8204
- return /* @__PURE__ */ jsx82("div", { className: "simple-editor-wrapper", children: /* @__PURE__ */ jsxs48(EditorContext.Provider, { value: { editor }, children: [
8205
- /* @__PURE__ */ jsx82(
7823
+ return /* @__PURE__ */ jsx81("div", { className: "simple-editor-wrapper", children: /* @__PURE__ */ jsxs48(EditorContext.Provider, { value: { editor }, children: [
7824
+ /* @__PURE__ */ jsx81(
8206
7825
  Toolbar,
8207
7826
  {
8208
7827
  ref: toolbarRef,
@@ -8211,14 +7830,14 @@ function SimpleEditor() {
8211
7830
  bottom: `calc(100% - ${height - rect.y}px)`
8212
7831
  } : {}
8213
7832
  },
8214
- children: mobileView === "main" ? /* @__PURE__ */ jsx82(
7833
+ children: mobileView === "main" ? /* @__PURE__ */ jsx81(
8215
7834
  MainToolbarContent,
8216
7835
  {
8217
7836
  onHighlighterClick: () => setMobileView("highlighter"),
8218
7837
  onLinkClick: () => setMobileView("link"),
8219
7838
  isMobile
8220
7839
  }
8221
- ) : /* @__PURE__ */ jsx82(
7840
+ ) : /* @__PURE__ */ jsx81(
8222
7841
  MobileToolbarContent,
8223
7842
  {
8224
7843
  type: mobileView === "highlighter" ? "highlighter" : "link",
@@ -8227,14 +7846,14 @@ function SimpleEditor() {
8227
7846
  )
8228
7847
  }
8229
7848
  ),
8230
- /* @__PURE__ */ jsx82(
7849
+ /* @__PURE__ */ jsx81(
8231
7850
  EditorContent,
8232
7851
  {
8233
7852
  editor,
8234
7853
  role: "presentation",
8235
7854
  autoFocus: true,
8236
7855
  className: "simple-editor-content",
8237
- children: editor && /* @__PURE__ */ jsx82(BubbleMenuInline, {})
7856
+ children: editor && /* @__PURE__ */ jsx81(BubbleMenuInline, {})
8238
7857
  }
8239
7858
  )
8240
7859
  ] }) });
@@ -8242,9 +7861,9 @@ function SimpleEditor() {
8242
7861
 
8243
7862
  // src/components/editor/editor.tsx
8244
7863
  import clsx2 from "clsx";
8245
- import { jsx as jsx83 } from "react/jsx-runtime";
7864
+ import { jsx as jsx82 } from "react/jsx-runtime";
8246
7865
  function Editor({ onChange, className, style, onTabsChange, initialTabs }) {
8247
- return /* @__PURE__ */ jsx83(
7866
+ return /* @__PURE__ */ jsx82(
8248
7867
  "div",
8249
7868
  {
8250
7869
  className: clsx2(
@@ -8252,7 +7871,7 @@ function Editor({ onChange, className, style, onTabsChange, initialTabs }) {
8252
7871
  className
8253
7872
  ),
8254
7873
  style,
8255
- children: /* @__PURE__ */ jsx83(EditorShell, { children: /* @__PURE__ */ jsx83(EditorLayout, { onChange, initialTabs, onTabsChange, children: /* @__PURE__ */ jsx83(SimpleEditor, {}) }) })
7874
+ children: /* @__PURE__ */ jsx82(EditorShell, { children: /* @__PURE__ */ jsx82(EditorLayout, { onChange, initialTabs, onTabsChange, children: /* @__PURE__ */ jsx82(SimpleEditor, {}) }) })
8256
7875
  }
8257
7876
  );
8258
7877
  }