@mhamz.01/easyflow-texteditor 0.1.75 → 0.1.76

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
@@ -939,8 +939,15 @@ function useEditorBridge() {
939
939
  return ctx;
940
940
  }
941
941
 
942
+ // src/contexts/themeProvider.tsx
943
+ import { ThemeProvider as NextThemesProvider } from "next-themes";
944
+ import { jsx as jsx11 } from "react/jsx-runtime";
945
+ function ThemeProvider({ children, ...props }) {
946
+ return /* @__PURE__ */ jsx11(NextThemesProvider, { ...props, children });
947
+ }
948
+
942
949
  // src/components/editorLayout/editorLayout.tsx
943
- import { jsx as jsx11, jsxs as jsxs6 } from "react/jsx-runtime";
950
+ import { jsx as jsx12, jsxs as jsxs6 } from "react/jsx-runtime";
944
951
  function EditorLayout({ children, onChange, initialTabs, onTabsChange }) {
945
952
  const [editor, setEditor] = useState4(null);
946
953
  const [tabs, setTabs] = useState4([]);
@@ -1188,12 +1195,12 @@ function EditorLayout({ children, onChange, initialTabs, onTabsChange }) {
1188
1195
  lastRestoredRef.current = key;
1189
1196
  isRestoringRef.current = false;
1190
1197
  }, [editor, tabs, activeTabId, activeSubTabId]);
1191
- return /* @__PURE__ */ jsx11(EditorBridgeProvider, { value: {
1198
+ return /* @__PURE__ */ jsx12(ThemeProvider, { attribute: "class", defaultTheme: "system", enableSystem: true, children: /* @__PURE__ */ jsx12(EditorBridgeProvider, { value: {
1192
1199
  editorContent: editor,
1193
1200
  setEditorContent: setEditor,
1194
1201
  debouncedSave
1195
- }, children: /* @__PURE__ */ jsx11(SidebarProvider, { children: /* @__PURE__ */ jsxs6("div", { className: "flex h-full w-full min-h-0 relative", children: [
1196
- /* @__PURE__ */ jsx11(
1202
+ }, children: /* @__PURE__ */ jsx12(SidebarProvider, { children: /* @__PURE__ */ jsxs6("div", { className: "flex h-full w-full min-h-0 relative", children: [
1203
+ /* @__PURE__ */ jsx12(
1197
1204
  AppSidebar,
1198
1205
  {
1199
1206
  tabs,
@@ -1210,10 +1217,10 @@ function EditorLayout({ children, onChange, initialTabs, onTabsChange }) {
1210
1217
  }
1211
1218
  ),
1212
1219
  /* @__PURE__ */ jsxs6(SidebarInset, { className: "flex flex-col flex-1 min-h-0 overflow-hidden", children: [
1213
- /* @__PURE__ */ jsx11("header", { className: "h-12 flex-shrink-0 border-b flex items-center px-4", children: /* @__PURE__ */ jsx11(SidebarTrigger, {}) }),
1214
- /* @__PURE__ */ jsx11("div", { className: "flex-1 min-h-0 overflow-auto", children })
1220
+ /* @__PURE__ */ jsx12("header", { className: "h-12 flex-shrink-0 border-b flex items-center px-4", children: /* @__PURE__ */ jsx12(SidebarTrigger, {}) }),
1221
+ /* @__PURE__ */ jsx12("div", { className: "flex-1 min-h-0 overflow-auto", children })
1215
1222
  ] })
1216
- ] }) }) });
1223
+ ] }) }) }) });
1217
1224
  }
1218
1225
 
1219
1226
  // src/components/tiptap-templates/simple/simple-editor.tsx
@@ -1428,7 +1435,7 @@ import {
1428
1435
  FloatingPortal,
1429
1436
  FloatingDelayGroup
1430
1437
  } from "@floating-ui/react";
1431
- import { jsx as jsx12 } from "react/jsx-runtime";
1438
+ import { jsx as jsx13 } from "react/jsx-runtime";
1432
1439
  function useTooltip({
1433
1440
  initialOpen = false,
1434
1441
  placement = "top",
@@ -1492,14 +1499,14 @@ function useTooltipContext() {
1492
1499
  function Tooltip2({ children, ...props }) {
1493
1500
  const tooltip = useTooltip(props);
1494
1501
  if (!props.useDelayGroup) {
1495
- return /* @__PURE__ */ jsx12(TooltipContext.Provider, { value: tooltip, children });
1502
+ return /* @__PURE__ */ jsx13(TooltipContext.Provider, { value: tooltip, children });
1496
1503
  }
1497
- return /* @__PURE__ */ jsx12(
1504
+ return /* @__PURE__ */ jsx13(
1498
1505
  FloatingDelayGroup,
1499
1506
  {
1500
1507
  delay: { open: props.delay ?? 0, close: props.closeDelay ?? 0 },
1501
1508
  timeoutMs: props.timeout,
1502
- children: /* @__PURE__ */ jsx12(TooltipContext.Provider, { value: tooltip, children })
1509
+ children: /* @__PURE__ */ jsx13(TooltipContext.Provider, { value: tooltip, children })
1503
1510
  }
1504
1511
  );
1505
1512
  }
@@ -1528,7 +1535,7 @@ var TooltipTrigger2 = forwardRef(
1528
1535
  })
1529
1536
  );
1530
1537
  }
1531
- return /* @__PURE__ */ jsx12(
1538
+ return /* @__PURE__ */ jsx13(
1532
1539
  "button",
1533
1540
  {
1534
1541
  ref,
@@ -1544,7 +1551,7 @@ var TooltipContent2 = forwardRef(
1544
1551
  const context = useTooltipContext();
1545
1552
  const ref = useMergeRefs([context.refs.setFloating, propRef]);
1546
1553
  if (!context.open) return null;
1547
- const content = /* @__PURE__ */ jsx12(
1554
+ const content = /* @__PURE__ */ jsx13(
1548
1555
  "div",
1549
1556
  {
1550
1557
  ref,
@@ -1558,7 +1565,7 @@ var TooltipContent2 = forwardRef(
1558
1565
  }
1559
1566
  );
1560
1567
  if (portal) {
1561
- return /* @__PURE__ */ jsx12(FloatingPortal, { ...portalProps, children: content });
1568
+ return /* @__PURE__ */ jsx13(FloatingPortal, { ...portalProps, children: content });
1562
1569
  }
1563
1570
  return content;
1564
1571
  }
@@ -1875,14 +1882,14 @@ var FontSizeExtension = Extension2.create({
1875
1882
  });
1876
1883
 
1877
1884
  // src/components/tiptap-ui-primitive/button/button.tsx
1878
- import { jsx as jsx13, jsxs as jsxs7 } from "react/jsx-runtime";
1885
+ import { jsx as jsx14, jsxs as jsxs7 } from "react/jsx-runtime";
1879
1886
  var ShortcutDisplay = ({
1880
1887
  shortcuts
1881
1888
  }) => {
1882
1889
  if (shortcuts.length === 0) return null;
1883
- return /* @__PURE__ */ jsx13("div", { children: shortcuts.map((key, index) => /* @__PURE__ */ jsxs7(Fragment, { children: [
1884
- index > 0 && /* @__PURE__ */ jsx13("kbd", { children: "+" }),
1885
- /* @__PURE__ */ jsx13("kbd", { children: key })
1890
+ return /* @__PURE__ */ jsx14("div", { children: shortcuts.map((key, index) => /* @__PURE__ */ jsxs7(Fragment, { children: [
1891
+ index > 0 && /* @__PURE__ */ jsx14("kbd", { children: "+" }),
1892
+ /* @__PURE__ */ jsx14("kbd", { children: key })
1886
1893
  ] }, index)) });
1887
1894
  };
1888
1895
  var Button2 = forwardRef2(
@@ -1900,7 +1907,7 @@ var Button2 = forwardRef2(
1900
1907
  [shortcutKeys]
1901
1908
  );
1902
1909
  if (!tooltip || !showTooltip) {
1903
- return /* @__PURE__ */ jsx13(
1910
+ return /* @__PURE__ */ jsx14(
1904
1911
  "button",
1905
1912
  {
1906
1913
  className: cn2("tiptap-button", className),
@@ -1912,7 +1919,7 @@ var Button2 = forwardRef2(
1912
1919
  );
1913
1920
  }
1914
1921
  return /* @__PURE__ */ jsxs7(Tooltip2, { delay: 200, children: [
1915
- /* @__PURE__ */ jsx13(
1922
+ /* @__PURE__ */ jsx14(
1916
1923
  TooltipTrigger2,
1917
1924
  {
1918
1925
  className: cn2("tiptap-button", className),
@@ -1924,14 +1931,14 @@ var Button2 = forwardRef2(
1924
1931
  ),
1925
1932
  /* @__PURE__ */ jsxs7(TooltipContent2, { children: [
1926
1933
  tooltip,
1927
- /* @__PURE__ */ jsx13(ShortcutDisplay, { shortcuts })
1934
+ /* @__PURE__ */ jsx14(ShortcutDisplay, { shortcuts })
1928
1935
  ] })
1929
1936
  ] });
1930
1937
  }
1931
1938
  );
1932
1939
  Button2.displayName = "Button";
1933
1940
  var ButtonGroup = forwardRef2(({ className, children, orientation = "vertical", ...props }, ref) => {
1934
- return /* @__PURE__ */ jsx13(
1941
+ return /* @__PURE__ */ jsx14(
1935
1942
  "div",
1936
1943
  {
1937
1944
  ref,
@@ -1946,7 +1953,7 @@ var ButtonGroup = forwardRef2(({ className, children, orientation = "vertical",
1946
1953
  ButtonGroup.displayName = "ButtonGroup";
1947
1954
 
1948
1955
  // src/components/tiptap-ui-primitive/spacer/spacer.tsx
1949
- import { jsx as jsx14 } from "react/jsx-runtime";
1956
+ import { jsx as jsx15 } from "react/jsx-runtime";
1950
1957
  function Spacer({
1951
1958
  orientation = "horizontal",
1952
1959
  size,
@@ -1961,7 +1968,7 @@ function Spacer({
1961
1968
  height: orientation === "horizontal" ? "1px" : size
1962
1969
  }
1963
1970
  };
1964
- return /* @__PURE__ */ jsx14("div", { ...props, style: computedStyle });
1971
+ return /* @__PURE__ */ jsx15("div", { ...props, style: computedStyle });
1965
1972
  }
1966
1973
 
1967
1974
  // src/components/tiptap-ui-primitive/toolbar/toolbar.tsx
@@ -1969,12 +1976,12 @@ import { forwardRef as forwardRef4, useCallback as useCallback4, useEffect as us
1969
1976
 
1970
1977
  // src/components/tiptap-ui-primitive/separator/separator.tsx
1971
1978
  import { forwardRef as forwardRef3 } from "react";
1972
- import { jsx as jsx15 } from "react/jsx-runtime";
1979
+ import { jsx as jsx16 } from "react/jsx-runtime";
1973
1980
  var Separator3 = forwardRef3(
1974
1981
  ({ decorative, orientation = "vertical", className, ...divProps }, ref) => {
1975
1982
  const ariaOrientation = orientation === "vertical" ? orientation : void 0;
1976
1983
  const semanticProps = decorative ? { role: "none" } : { "aria-orientation": ariaOrientation, role: "separator" };
1977
- return /* @__PURE__ */ jsx15(
1984
+ return /* @__PURE__ */ jsx16(
1978
1985
  "div",
1979
1986
  {
1980
1987
  className: cn2("tiptap-separator", className),
@@ -2143,7 +2150,7 @@ var useComposedRef = (libRef, userRef) => {
2143
2150
  };
2144
2151
 
2145
2152
  // src/components/tiptap-ui-primitive/toolbar/toolbar.tsx
2146
- import { jsx as jsx16 } from "react/jsx-runtime";
2153
+ import { jsx as jsx17 } from "react/jsx-runtime";
2147
2154
  var useToolbarNavigation = (toolbarRef) => {
2148
2155
  const [items, setItems] = useState7([]);
2149
2156
  const collectItems = useCallback4(() => {
@@ -2200,7 +2207,7 @@ var Toolbar = forwardRef4(
2200
2207
  const toolbarRef = useRef3(null);
2201
2208
  const composedRef = useComposedRef(toolbarRef, ref);
2202
2209
  useToolbarNavigation(toolbarRef);
2203
- return /* @__PURE__ */ jsx16(
2210
+ return /* @__PURE__ */ jsx17(
2204
2211
  "div",
2205
2212
  {
2206
2213
  ref: composedRef,
@@ -2216,7 +2223,7 @@ var Toolbar = forwardRef4(
2216
2223
  );
2217
2224
  Toolbar.displayName = "Toolbar";
2218
2225
  var ToolbarGroup = forwardRef4(
2219
- ({ children, className, ...props }, ref) => /* @__PURE__ */ jsx16(
2226
+ ({ children, className, ...props }, ref) => /* @__PURE__ */ jsx17(
2220
2227
  "div",
2221
2228
  {
2222
2229
  ref,
@@ -2229,7 +2236,7 @@ var ToolbarGroup = forwardRef4(
2229
2236
  );
2230
2237
  ToolbarGroup.displayName = "ToolbarGroup";
2231
2238
  var ToolbarSeparator = forwardRef4(
2232
- ({ ...props }, ref) => /* @__PURE__ */ jsx16(Separator3, { ref, orientation: "vertical", decorative: true, ...props })
2239
+ ({ ...props }, ref) => /* @__PURE__ */ jsx17(Separator3, { ref, orientation: "vertical", decorative: true, ...props })
2233
2240
  );
2234
2241
  ToolbarSeparator.displayName = "ToolbarSeparator";
2235
2242
 
@@ -2245,11 +2252,11 @@ import {
2245
2252
  Heading3,
2246
2253
  Code
2247
2254
  } from "lucide-react";
2248
- import { jsx as jsx17, jsxs as jsxs8 } from "react/jsx-runtime";
2255
+ import { jsx as jsx18, jsxs as jsxs8 } from "react/jsx-runtime";
2249
2256
  function BubbleMenuInline() {
2250
2257
  const { editor } = useCurrentEditor();
2251
2258
  if (!editor) return null;
2252
- return /* @__PURE__ */ jsx17(
2259
+ return /* @__PURE__ */ jsx18(
2253
2260
  BubbleMenu,
2254
2261
  {
2255
2262
  editor,
@@ -2273,76 +2280,76 @@ function BubbleMenuInline() {
2273
2280
  {
2274
2281
  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",
2275
2282
  children: [
2276
- /* @__PURE__ */ jsx17(
2283
+ /* @__PURE__ */ jsx18(
2277
2284
  Button,
2278
2285
  {
2279
2286
  variant: "ghost",
2280
2287
  size: "sm",
2281
2288
  onClick: () => editor.chain().focus().toggleHeading({ level: 1 }).run(),
2282
2289
  className: editor.isActive("heading", { level: 1 }) ? "bg-accent" : "",
2283
- children: /* @__PURE__ */ jsx17(Heading1, { size: 15 })
2290
+ children: /* @__PURE__ */ jsx18(Heading1, { size: 15 })
2284
2291
  }
2285
2292
  ),
2286
- /* @__PURE__ */ jsx17(
2293
+ /* @__PURE__ */ jsx18(
2287
2294
  Button,
2288
2295
  {
2289
2296
  variant: "ghost",
2290
2297
  size: "sm",
2291
2298
  onClick: () => editor.chain().focus().toggleHeading({ level: 2 }).run(),
2292
2299
  className: editor.isActive("heading", { level: 2 }) ? "bg-accent" : "",
2293
- children: /* @__PURE__ */ jsx17(Heading2, { size: 15 })
2300
+ children: /* @__PURE__ */ jsx18(Heading2, { size: 15 })
2294
2301
  }
2295
2302
  ),
2296
- /* @__PURE__ */ jsx17(
2303
+ /* @__PURE__ */ jsx18(
2297
2304
  Button,
2298
2305
  {
2299
2306
  variant: "ghost",
2300
2307
  size: "sm",
2301
2308
  onClick: () => editor.chain().focus().toggleHeading({ level: 3 }).run(),
2302
2309
  className: editor.isActive("heading", { level: 3 }) ? "bg-accent" : "",
2303
- children: /* @__PURE__ */ jsx17(Heading3, { size: 15 })
2310
+ children: /* @__PURE__ */ jsx18(Heading3, { size: 15 })
2304
2311
  }
2305
2312
  ),
2306
- /* @__PURE__ */ jsx17(Separator, { orientation: "vertical", className: "mx-1" }),
2307
- /* @__PURE__ */ jsx17(
2313
+ /* @__PURE__ */ jsx18(Separator, { orientation: "vertical", className: "mx-1" }),
2314
+ /* @__PURE__ */ jsx18(
2308
2315
  Button,
2309
2316
  {
2310
2317
  variant: "ghost",
2311
2318
  size: "sm",
2312
2319
  onClick: () => editor.chain().focus().toggleBulletList().run(),
2313
2320
  className: editor.isActive("bulletList") ? "bg-accent" : "",
2314
- children: /* @__PURE__ */ jsx17(List, { size: 15 })
2321
+ children: /* @__PURE__ */ jsx18(List, { size: 15 })
2315
2322
  }
2316
2323
  ),
2317
- /* @__PURE__ */ jsx17(
2324
+ /* @__PURE__ */ jsx18(
2318
2325
  Button,
2319
2326
  {
2320
2327
  variant: "ghost",
2321
2328
  size: "sm",
2322
2329
  onClick: () => editor.chain().focus().toggleOrderedList().run(),
2323
2330
  className: editor.isActive("orderedList") ? "bg-accent" : "",
2324
- children: /* @__PURE__ */ jsx17(ListOrdered, { size: 15 })
2331
+ children: /* @__PURE__ */ jsx18(ListOrdered, { size: 15 })
2325
2332
  }
2326
2333
  ),
2327
- /* @__PURE__ */ jsx17(
2334
+ /* @__PURE__ */ jsx18(
2328
2335
  Button,
2329
2336
  {
2330
2337
  variant: "ghost",
2331
2338
  size: "sm",
2332
2339
  onClick: () => editor.chain().focus().toggleTaskList().run(),
2333
2340
  className: editor.isActive("taskList") ? "bg-accent" : "",
2334
- children: /* @__PURE__ */ jsx17(CheckSquare, { size: 15 })
2341
+ children: /* @__PURE__ */ jsx18(CheckSquare, { size: 15 })
2335
2342
  }
2336
2343
  ),
2337
- /* @__PURE__ */ jsx17(Separator, { orientation: "vertical", className: "mx-1" }),
2338
- /* @__PURE__ */ jsx17(
2344
+ /* @__PURE__ */ jsx18(Separator, { orientation: "vertical", className: "mx-1" }),
2345
+ /* @__PURE__ */ jsx18(
2339
2346
  Button,
2340
2347
  {
2341
2348
  variant: "ghost",
2342
2349
  size: "sm",
2343
2350
  onClick: () => editor.chain().focus().toggleCodeBlock().run(),
2344
2351
  className: editor.isActive("codeBlock") ? "bg-accent" : "",
2345
- children: /* @__PURE__ */ jsx17(Code, { size: 15 })
2352
+ children: /* @__PURE__ */ jsx18(Code, { size: 15 })
2346
2353
  }
2347
2354
  )
2348
2355
  ]
@@ -2362,9 +2369,9 @@ import { NodeViewWrapper } from "@tiptap/react";
2362
2369
 
2363
2370
  // src/components/tiptap-icons/close-icon.tsx
2364
2371
  import { memo } from "react";
2365
- import { jsx as jsx18 } from "react/jsx-runtime";
2372
+ import { jsx as jsx19 } from "react/jsx-runtime";
2366
2373
  var CloseIcon = memo(({ className, ...props }) => {
2367
- return /* @__PURE__ */ jsx18(
2374
+ return /* @__PURE__ */ jsx19(
2368
2375
  "svg",
2369
2376
  {
2370
2377
  width: "24",
@@ -2374,7 +2381,7 @@ var CloseIcon = memo(({ className, ...props }) => {
2374
2381
  fill: "currentColor",
2375
2382
  xmlns: "http://www.w3.org/2000/svg",
2376
2383
  ...props,
2377
- children: /* @__PURE__ */ jsx18(
2384
+ children: /* @__PURE__ */ jsx19(
2378
2385
  "path",
2379
2386
  {
2380
2387
  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",
@@ -2387,7 +2394,7 @@ var CloseIcon = memo(({ className, ...props }) => {
2387
2394
  CloseIcon.displayName = "CloseIcon";
2388
2395
 
2389
2396
  // src/components/tiptap-node/image-upload-node/image-upload-node.tsx
2390
- import { Fragment as Fragment2, jsx as jsx19, jsxs as jsxs9 } from "react/jsx-runtime";
2397
+ import { Fragment as Fragment2, jsx as jsx20, jsxs as jsxs9 } from "react/jsx-runtime";
2391
2398
  function useFileUpload(options) {
2392
2399
  const [fileItems, setFileItems] = useState8([]);
2393
2400
  const uploadFile = async (file) => {
@@ -2505,14 +2512,14 @@ var CloudUploadIcon = () => /* @__PURE__ */ jsxs9(
2505
2512
  fill: "currentColor",
2506
2513
  xmlns: "http://www.w3.org/2000/svg",
2507
2514
  children: [
2508
- /* @__PURE__ */ jsx19(
2515
+ /* @__PURE__ */ jsx20(
2509
2516
  "path",
2510
2517
  {
2511
2518
  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",
2512
2519
  fill: "currentColor"
2513
2520
  }
2514
2521
  ),
2515
- /* @__PURE__ */ jsx19(
2522
+ /* @__PURE__ */ jsx20(
2516
2523
  "path",
2517
2524
  {
2518
2525
  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",
@@ -2522,7 +2529,7 @@ var CloudUploadIcon = () => /* @__PURE__ */ jsxs9(
2522
2529
  ]
2523
2530
  }
2524
2531
  );
2525
- var FileIcon = () => /* @__PURE__ */ jsx19(
2532
+ var FileIcon = () => /* @__PURE__ */ jsx20(
2526
2533
  "svg",
2527
2534
  {
2528
2535
  width: "43",
@@ -2531,7 +2538,7 @@ var FileIcon = () => /* @__PURE__ */ jsx19(
2531
2538
  fill: "currentColor",
2532
2539
  className: "tiptap-image-upload-dropzone-rect-primary",
2533
2540
  xmlns: "http://www.w3.org/2000/svg",
2534
- children: /* @__PURE__ */ jsx19(
2541
+ children: /* @__PURE__ */ jsx20(
2535
2542
  "path",
2536
2543
  {
2537
2544
  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",
@@ -2543,7 +2550,7 @@ var FileIcon = () => /* @__PURE__ */ jsx19(
2543
2550
  )
2544
2551
  }
2545
2552
  );
2546
- var FileCornerIcon = () => /* @__PURE__ */ jsx19(
2553
+ var FileCornerIcon = () => /* @__PURE__ */ jsx20(
2547
2554
  "svg",
2548
2555
  {
2549
2556
  width: "10",
@@ -2552,7 +2559,7 @@ var FileCornerIcon = () => /* @__PURE__ */ jsx19(
2552
2559
  viewBox: "0 0 10 10",
2553
2560
  fill: "currentColor",
2554
2561
  xmlns: "http://www.w3.org/2000/svg",
2555
- children: /* @__PURE__ */ jsx19(
2562
+ children: /* @__PURE__ */ jsx20(
2556
2563
  "path",
2557
2564
  {
2558
2565
  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",
@@ -2595,7 +2602,7 @@ var ImageUploadDragArea = ({
2595
2602
  onFile(files);
2596
2603
  }
2597
2604
  };
2598
- return /* @__PURE__ */ jsx19(
2605
+ return /* @__PURE__ */ jsx20(
2599
2606
  "div",
2600
2607
  {
2601
2608
  className: `tiptap-image-upload-drag-area ${isDragActive ? "drag-active" : ""} ${isDragOver ? "drag-over" : ""}`,
@@ -2619,7 +2626,7 @@ var ImageUploadPreview = ({
2619
2626
  return `${parseFloat((bytes / Math.pow(k, i)).toFixed(2))} ${sizes[i]}`;
2620
2627
  };
2621
2628
  return /* @__PURE__ */ jsxs9("div", { className: "tiptap-image-upload-preview", children: [
2622
- fileItem.status === "uploading" && /* @__PURE__ */ jsx19(
2629
+ fileItem.status === "uploading" && /* @__PURE__ */ jsx20(
2623
2630
  "div",
2624
2631
  {
2625
2632
  className: "tiptap-image-upload-progress",
@@ -2628,10 +2635,10 @@ var ImageUploadPreview = ({
2628
2635
  ),
2629
2636
  /* @__PURE__ */ jsxs9("div", { className: "tiptap-image-upload-preview-content", children: [
2630
2637
  /* @__PURE__ */ jsxs9("div", { className: "tiptap-image-upload-file-info", children: [
2631
- /* @__PURE__ */ jsx19("div", { className: "tiptap-image-upload-file-icon", children: /* @__PURE__ */ jsx19(CloudUploadIcon, {}) }),
2638
+ /* @__PURE__ */ jsx20("div", { className: "tiptap-image-upload-file-icon", children: /* @__PURE__ */ jsx20(CloudUploadIcon, {}) }),
2632
2639
  /* @__PURE__ */ jsxs9("div", { className: "tiptap-image-upload-details", children: [
2633
- /* @__PURE__ */ jsx19("span", { className: "tiptap-image-upload-text", children: fileItem.file.name }),
2634
- /* @__PURE__ */ jsx19("span", { className: "tiptap-image-upload-subtext", children: formatFileSize(fileItem.file.size) })
2640
+ /* @__PURE__ */ jsx20("span", { className: "tiptap-image-upload-text", children: fileItem.file.name }),
2641
+ /* @__PURE__ */ jsx20("span", { className: "tiptap-image-upload-subtext", children: formatFileSize(fileItem.file.size) })
2635
2642
  ] })
2636
2643
  ] }),
2637
2644
  /* @__PURE__ */ jsxs9("div", { className: "tiptap-image-upload-actions", children: [
@@ -2639,7 +2646,7 @@ var ImageUploadPreview = ({
2639
2646
  fileItem.progress,
2640
2647
  "%"
2641
2648
  ] }),
2642
- /* @__PURE__ */ jsx19(
2649
+ /* @__PURE__ */ jsx20(
2643
2650
  Button2,
2644
2651
  {
2645
2652
  type: "button",
@@ -2648,7 +2655,7 @@ var ImageUploadPreview = ({
2648
2655
  e.stopPropagation();
2649
2656
  onRemove();
2650
2657
  },
2651
- children: /* @__PURE__ */ jsx19(CloseIcon, { className: "tiptap-button-icon" })
2658
+ children: /* @__PURE__ */ jsx20(CloseIcon, { className: "tiptap-button-icon" })
2652
2659
  }
2653
2660
  )
2654
2661
  ] })
@@ -2660,13 +2667,13 @@ var DropZoneContent = ({
2660
2667
  limit
2661
2668
  }) => /* @__PURE__ */ jsxs9(Fragment2, { children: [
2662
2669
  /* @__PURE__ */ jsxs9("div", { className: "tiptap-image-upload-dropzone", children: [
2663
- /* @__PURE__ */ jsx19(FileIcon, {}),
2664
- /* @__PURE__ */ jsx19(FileCornerIcon, {}),
2665
- /* @__PURE__ */ jsx19("div", { className: "tiptap-image-upload-icon-container", children: /* @__PURE__ */ jsx19(CloudUploadIcon, {}) })
2670
+ /* @__PURE__ */ jsx20(FileIcon, {}),
2671
+ /* @__PURE__ */ jsx20(FileCornerIcon, {}),
2672
+ /* @__PURE__ */ jsx20("div", { className: "tiptap-image-upload-icon-container", children: /* @__PURE__ */ jsx20(CloudUploadIcon, {}) })
2666
2673
  ] }),
2667
2674
  /* @__PURE__ */ jsxs9("div", { className: "tiptap-image-upload-content", children: [
2668
2675
  /* @__PURE__ */ jsxs9("span", { className: "tiptap-image-upload-text", children: [
2669
- /* @__PURE__ */ jsx19("em", { children: "Click to upload" }),
2676
+ /* @__PURE__ */ jsx20("em", { children: "Click to upload" }),
2670
2677
  " or drag and drop"
2671
2678
  ] }),
2672
2679
  /* @__PURE__ */ jsxs9("span", { className: "tiptap-image-upload-subtext", children: [
@@ -2737,7 +2744,7 @@ var ImageUploadNode = (props) => {
2737
2744
  tabIndex: 0,
2738
2745
  onClick: handleClick,
2739
2746
  children: [
2740
- !hasFiles && /* @__PURE__ */ jsx19(ImageUploadDragArea, { onFile: handleUpload, children: /* @__PURE__ */ jsx19(DropZoneContent, { maxSize, limit }) }),
2747
+ !hasFiles && /* @__PURE__ */ jsx20(ImageUploadDragArea, { onFile: handleUpload, children: /* @__PURE__ */ jsx20(DropZoneContent, { maxSize, limit }) }),
2741
2748
  hasFiles && /* @__PURE__ */ jsxs9("div", { className: "tiptap-image-upload-previews", children: [
2742
2749
  fileItems.length > 1 && /* @__PURE__ */ jsxs9("div", { className: "tiptap-image-upload-header", children: [
2743
2750
  /* @__PURE__ */ jsxs9("span", { children: [
@@ -2745,7 +2752,7 @@ var ImageUploadNode = (props) => {
2745
2752
  fileItems.length,
2746
2753
  " files"
2747
2754
  ] }),
2748
- /* @__PURE__ */ jsx19(
2755
+ /* @__PURE__ */ jsx20(
2749
2756
  Button2,
2750
2757
  {
2751
2758
  type: "button",
@@ -2758,7 +2765,7 @@ var ImageUploadNode = (props) => {
2758
2765
  }
2759
2766
  )
2760
2767
  ] }),
2761
- fileItems.map((fileItem) => /* @__PURE__ */ jsx19(
2768
+ fileItems.map((fileItem) => /* @__PURE__ */ jsx20(
2762
2769
  ImageUploadPreview,
2763
2770
  {
2764
2771
  fileItem,
@@ -2767,7 +2774,7 @@ var ImageUploadNode = (props) => {
2767
2774
  fileItem.id
2768
2775
  ))
2769
2776
  ] }),
2770
- /* @__PURE__ */ jsx19(
2777
+ /* @__PURE__ */ jsx20(
2771
2778
  "input",
2772
2779
  {
2773
2780
  ref: inputRef,
@@ -2880,9 +2887,9 @@ import { forwardRef as forwardRef9, useCallback as useCallback7, useState as use
2880
2887
 
2881
2888
  // src/components/tiptap-icons/chevron-down-icon.tsx
2882
2889
  import { memo as memo2 } from "react";
2883
- import { jsx as jsx20 } from "react/jsx-runtime";
2890
+ import { jsx as jsx21 } from "react/jsx-runtime";
2884
2891
  var ChevronDownIcon = memo2(({ className, ...props }) => {
2885
- return /* @__PURE__ */ jsx20(
2892
+ return /* @__PURE__ */ jsx21(
2886
2893
  "svg",
2887
2894
  {
2888
2895
  width: "24",
@@ -2892,7 +2899,7 @@ var ChevronDownIcon = memo2(({ className, ...props }) => {
2892
2899
  fill: "currentColor",
2893
2900
  xmlns: "http://www.w3.org/2000/svg",
2894
2901
  ...props,
2895
- children: /* @__PURE__ */ jsx20(
2902
+ children: /* @__PURE__ */ jsx21(
2896
2903
  "path",
2897
2904
  {
2898
2905
  fillRule: "evenodd",
@@ -2940,7 +2947,7 @@ import { forwardRef as forwardRef6, useCallback as useCallback5 } from "react";
2940
2947
 
2941
2948
  // src/components/tiptap-ui-primitive/badge/badge.tsx
2942
2949
  import { forwardRef as forwardRef5 } from "react";
2943
- import { jsx as jsx21 } from "react/jsx-runtime";
2950
+ import { jsx as jsx22 } from "react/jsx-runtime";
2944
2951
  var Badge = forwardRef5(
2945
2952
  ({
2946
2953
  variant,
@@ -2951,7 +2958,7 @@ var Badge = forwardRef5(
2951
2958
  children,
2952
2959
  ...props
2953
2960
  }, ref) => {
2954
- return /* @__PURE__ */ jsx21(
2961
+ return /* @__PURE__ */ jsx22(
2955
2962
  "div",
2956
2963
  {
2957
2964
  ref,
@@ -2969,12 +2976,12 @@ var Badge = forwardRef5(
2969
2976
  Badge.displayName = "Badge";
2970
2977
 
2971
2978
  // src/components/tiptap-ui/heading-button/heading-button.tsx
2972
- import { Fragment as Fragment3, jsx as jsx22, jsxs as jsxs10 } from "react/jsx-runtime";
2979
+ import { Fragment as Fragment3, jsx as jsx23, jsxs as jsxs10 } from "react/jsx-runtime";
2973
2980
  function HeadingShortcutBadge({
2974
2981
  level,
2975
2982
  shortcutKeys = HEADING_SHORTCUT_KEYS[level]
2976
2983
  }) {
2977
- return /* @__PURE__ */ jsx22(Badge, { children: parseShortcutKeys({ shortcutKeys }) });
2984
+ return /* @__PURE__ */ jsx23(Badge, { children: parseShortcutKeys({ shortcutKeys }) });
2978
2985
  }
2979
2986
  var HeadingButton = forwardRef6(
2980
2987
  ({
@@ -3014,7 +3021,7 @@ var HeadingButton = forwardRef6(
3014
3021
  if (!isVisible) {
3015
3022
  return null;
3016
3023
  }
3017
- return /* @__PURE__ */ jsx22(
3024
+ return /* @__PURE__ */ jsx23(
3018
3025
  Button2,
3019
3026
  {
3020
3027
  type: "button",
@@ -3031,9 +3038,9 @@ var HeadingButton = forwardRef6(
3031
3038
  ...buttonProps,
3032
3039
  ref,
3033
3040
  children: children ?? /* @__PURE__ */ jsxs10(Fragment3, { children: [
3034
- /* @__PURE__ */ jsx22(Icon, { className: "tiptap-button-icon" }),
3035
- text && /* @__PURE__ */ jsx22("span", { className: "tiptap-button-text", children: text }),
3036
- showShortcut && /* @__PURE__ */ jsx22(HeadingShortcutBadge, { level, shortcutKeys })
3041
+ /* @__PURE__ */ jsx23(Icon, { className: "tiptap-button-icon" }),
3042
+ text && /* @__PURE__ */ jsx23("span", { className: "tiptap-button-text", children: text }),
3043
+ showShortcut && /* @__PURE__ */ jsx23(HeadingShortcutBadge, { level, shortcutKeys })
3037
3044
  ] })
3038
3045
  }
3039
3046
  );
@@ -3047,7 +3054,7 @@ import { NodeSelection as NodeSelection2, TextSelection as TextSelection2 } from
3047
3054
 
3048
3055
  // src/components/tiptap-icons/heading-one-icon.tsx
3049
3056
  import { memo as memo3 } from "react";
3050
- import { jsx as jsx23, jsxs as jsxs11 } from "react/jsx-runtime";
3057
+ import { jsx as jsx24, jsxs as jsxs11 } from "react/jsx-runtime";
3051
3058
  var HeadingOneIcon = memo3(({ className, ...props }) => {
3052
3059
  return /* @__PURE__ */ jsxs11(
3053
3060
  "svg",
@@ -3060,14 +3067,14 @@ var HeadingOneIcon = memo3(({ className, ...props }) => {
3060
3067
  xmlns: "http://www.w3.org/2000/svg",
3061
3068
  ...props,
3062
3069
  children: [
3063
- /* @__PURE__ */ jsx23(
3070
+ /* @__PURE__ */ jsx24(
3064
3071
  "path",
3065
3072
  {
3066
3073
  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",
3067
3074
  fill: "currentColor"
3068
3075
  }
3069
3076
  ),
3070
- /* @__PURE__ */ jsx23(
3077
+ /* @__PURE__ */ jsx24(
3071
3078
  "path",
3072
3079
  {
3073
3080
  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",
@@ -3082,7 +3089,7 @@ HeadingOneIcon.displayName = "HeadingOneIcon";
3082
3089
 
3083
3090
  // src/components/tiptap-icons/heading-two-icon.tsx
3084
3091
  import { memo as memo4 } from "react";
3085
- import { jsx as jsx24, jsxs as jsxs12 } from "react/jsx-runtime";
3092
+ import { jsx as jsx25, jsxs as jsxs12 } from "react/jsx-runtime";
3086
3093
  var HeadingTwoIcon = memo4(({ className, ...props }) => {
3087
3094
  return /* @__PURE__ */ jsxs12(
3088
3095
  "svg",
@@ -3095,14 +3102,14 @@ var HeadingTwoIcon = memo4(({ className, ...props }) => {
3095
3102
  xmlns: "http://www.w3.org/2000/svg",
3096
3103
  ...props,
3097
3104
  children: [
3098
- /* @__PURE__ */ jsx24(
3105
+ /* @__PURE__ */ jsx25(
3099
3106
  "path",
3100
3107
  {
3101
3108
  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",
3102
3109
  fill: "currentColor"
3103
3110
  }
3104
3111
  ),
3105
- /* @__PURE__ */ jsx24(
3112
+ /* @__PURE__ */ jsx25(
3106
3113
  "path",
3107
3114
  {
3108
3115
  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",
@@ -3117,7 +3124,7 @@ HeadingTwoIcon.displayName = "HeadingTwoIcon";
3117
3124
 
3118
3125
  // src/components/tiptap-icons/heading-three-icon.tsx
3119
3126
  import { memo as memo5 } from "react";
3120
- import { jsx as jsx25, jsxs as jsxs13 } from "react/jsx-runtime";
3127
+ import { jsx as jsx26, jsxs as jsxs13 } from "react/jsx-runtime";
3121
3128
  var HeadingThreeIcon = memo5(({ className, ...props }) => {
3122
3129
  return /* @__PURE__ */ jsxs13(
3123
3130
  "svg",
@@ -3130,14 +3137,14 @@ var HeadingThreeIcon = memo5(({ className, ...props }) => {
3130
3137
  xmlns: "http://www.w3.org/2000/svg",
3131
3138
  ...props,
3132
3139
  children: [
3133
- /* @__PURE__ */ jsx25(
3140
+ /* @__PURE__ */ jsx26(
3134
3141
  "path",
3135
3142
  {
3136
3143
  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",
3137
3144
  fill: "currentColor"
3138
3145
  }
3139
3146
  ),
3140
- /* @__PURE__ */ jsx25(
3147
+ /* @__PURE__ */ jsx26(
3141
3148
  "path",
3142
3149
  {
3143
3150
  fillRule: "evenodd",
@@ -3146,7 +3153,7 @@ var HeadingThreeIcon = memo5(({ className, ...props }) => {
3146
3153
  fill: "currentColor"
3147
3154
  }
3148
3155
  ),
3149
- /* @__PURE__ */ jsx25(
3156
+ /* @__PURE__ */ jsx26(
3150
3157
  "path",
3151
3158
  {
3152
3159
  fillRule: "evenodd",
@@ -3163,7 +3170,7 @@ HeadingThreeIcon.displayName = "HeadingThreeIcon";
3163
3170
 
3164
3171
  // src/components/tiptap-icons/heading-four-icon.tsx
3165
3172
  import { memo as memo6 } from "react";
3166
- import { jsx as jsx26, jsxs as jsxs14 } from "react/jsx-runtime";
3173
+ import { jsx as jsx27, jsxs as jsxs14 } from "react/jsx-runtime";
3167
3174
  var HeadingFourIcon = memo6(({ className, ...props }) => {
3168
3175
  return /* @__PURE__ */ jsxs14(
3169
3176
  "svg",
@@ -3176,14 +3183,14 @@ var HeadingFourIcon = memo6(({ className, ...props }) => {
3176
3183
  xmlns: "http://www.w3.org/2000/svg",
3177
3184
  ...props,
3178
3185
  children: [
3179
- /* @__PURE__ */ jsx26(
3186
+ /* @__PURE__ */ jsx27(
3180
3187
  "path",
3181
3188
  {
3182
3189
  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",
3183
3190
  fill: "currentColor"
3184
3191
  }
3185
3192
  ),
3186
- /* @__PURE__ */ jsx26(
3193
+ /* @__PURE__ */ jsx27(
3187
3194
  "path",
3188
3195
  {
3189
3196
  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",
@@ -3198,7 +3205,7 @@ HeadingFourIcon.displayName = "HeadingFourIcon";
3198
3205
 
3199
3206
  // src/components/tiptap-icons/heading-five-icon.tsx
3200
3207
  import { memo as memo7 } from "react";
3201
- import { jsx as jsx27, jsxs as jsxs15 } from "react/jsx-runtime";
3208
+ import { jsx as jsx28, jsxs as jsxs15 } from "react/jsx-runtime";
3202
3209
  var HeadingFiveIcon = memo7(({ className, ...props }) => {
3203
3210
  return /* @__PURE__ */ jsxs15(
3204
3211
  "svg",
@@ -3211,14 +3218,14 @@ var HeadingFiveIcon = memo7(({ className, ...props }) => {
3211
3218
  xmlns: "http://www.w3.org/2000/svg",
3212
3219
  ...props,
3213
3220
  children: [
3214
- /* @__PURE__ */ jsx27(
3221
+ /* @__PURE__ */ jsx28(
3215
3222
  "path",
3216
3223
  {
3217
3224
  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",
3218
3225
  fill: "currentColor"
3219
3226
  }
3220
3227
  ),
3221
- /* @__PURE__ */ jsx27(
3228
+ /* @__PURE__ */ jsx28(
3222
3229
  "path",
3223
3230
  {
3224
3231
  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",
@@ -3233,7 +3240,7 @@ HeadingFiveIcon.displayName = "HeadingFiveIcon";
3233
3240
 
3234
3241
  // src/components/tiptap-icons/heading-six-icon.tsx
3235
3242
  import { memo as memo8 } from "react";
3236
- import { jsx as jsx28, jsxs as jsxs16 } from "react/jsx-runtime";
3243
+ import { jsx as jsx29, jsxs as jsxs16 } from "react/jsx-runtime";
3237
3244
  var HeadingSixIcon = memo8(({ className, ...props }) => {
3238
3245
  return /* @__PURE__ */ jsxs16(
3239
3246
  "svg",
@@ -3246,14 +3253,14 @@ var HeadingSixIcon = memo8(({ className, ...props }) => {
3246
3253
  xmlns: "http://www.w3.org/2000/svg",
3247
3254
  ...props,
3248
3255
  children: [
3249
- /* @__PURE__ */ jsx28(
3256
+ /* @__PURE__ */ jsx29(
3250
3257
  "path",
3251
3258
  {
3252
3259
  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",
3253
3260
  fill: "currentColor"
3254
3261
  }
3255
3262
  ),
3256
- /* @__PURE__ */ jsx28(
3263
+ /* @__PURE__ */ jsx29(
3257
3264
  "path",
3258
3265
  {
3259
3266
  fillRule: "evenodd",
@@ -3408,22 +3415,22 @@ function useHeading(config) {
3408
3415
  // src/components/tiptap-ui-primitive/dropdown-menu/dropdown-menu.tsx
3409
3416
  import { forwardRef as forwardRef7 } from "react";
3410
3417
  import * as DropdownMenuPrimitive2 from "@radix-ui/react-dropdown-menu";
3411
- import { jsx as jsx29 } from "react/jsx-runtime";
3418
+ import { jsx as jsx30 } from "react/jsx-runtime";
3412
3419
  function DropdownMenu2({
3413
3420
  ...props
3414
3421
  }) {
3415
- return /* @__PURE__ */ jsx29(DropdownMenuPrimitive2.Root, { modal: false, ...props });
3422
+ return /* @__PURE__ */ jsx30(DropdownMenuPrimitive2.Root, { modal: false, ...props });
3416
3423
  }
3417
3424
  function DropdownMenuPortal({
3418
3425
  ...props
3419
3426
  }) {
3420
- return /* @__PURE__ */ jsx29(DropdownMenuPrimitive2.Portal, { ...props });
3427
+ return /* @__PURE__ */ jsx30(DropdownMenuPrimitive2.Portal, { ...props });
3421
3428
  }
3422
- var DropdownMenuTrigger2 = forwardRef7(({ ...props }, ref) => /* @__PURE__ */ jsx29(DropdownMenuPrimitive2.Trigger, { ref, ...props }));
3429
+ var DropdownMenuTrigger2 = forwardRef7(({ ...props }, ref) => /* @__PURE__ */ jsx30(DropdownMenuPrimitive2.Trigger, { ref, ...props }));
3423
3430
  DropdownMenuTrigger2.displayName = DropdownMenuPrimitive2.Trigger.displayName;
3424
3431
  var DropdownMenuItem2 = DropdownMenuPrimitive2.Item;
3425
3432
  var DropdownMenuSubContent = forwardRef7(({ className, portal = true, ...props }, ref) => {
3426
- const content = /* @__PURE__ */ jsx29(
3433
+ const content = /* @__PURE__ */ jsx30(
3427
3434
  DropdownMenuPrimitive2.SubContent,
3428
3435
  {
3429
3436
  ref,
@@ -3431,11 +3438,11 @@ var DropdownMenuSubContent = forwardRef7(({ className, portal = true, ...props }
3431
3438
  ...props
3432
3439
  }
3433
3440
  );
3434
- return portal ? /* @__PURE__ */ jsx29(DropdownMenuPortal, { ...typeof portal === "object" ? portal : {}, children: content }) : content;
3441
+ return portal ? /* @__PURE__ */ jsx30(DropdownMenuPortal, { ...typeof portal === "object" ? portal : {}, children: content }) : content;
3435
3442
  });
3436
3443
  DropdownMenuSubContent.displayName = DropdownMenuPrimitive2.SubContent.displayName;
3437
3444
  var DropdownMenuContent2 = forwardRef7(({ className, sideOffset = 4, portal = false, ...props }, ref) => {
3438
- const content = /* @__PURE__ */ jsx29(
3445
+ const content = /* @__PURE__ */ jsx30(
3439
3446
  DropdownMenuPrimitive2.Content,
3440
3447
  {
3441
3448
  ref,
@@ -3445,22 +3452,22 @@ var DropdownMenuContent2 = forwardRef7(({ className, sideOffset = 4, portal = fa
3445
3452
  ...props
3446
3453
  }
3447
3454
  );
3448
- return portal ? /* @__PURE__ */ jsx29(DropdownMenuPortal, { ...typeof portal === "object" ? portal : {}, children: content }) : content;
3455
+ return portal ? /* @__PURE__ */ jsx30(DropdownMenuPortal, { ...typeof portal === "object" ? portal : {}, children: content }) : content;
3449
3456
  });
3450
3457
  DropdownMenuContent2.displayName = DropdownMenuPrimitive2.Content.displayName;
3451
3458
 
3452
3459
  // src/components/tiptap-ui-primitive/card/card.tsx
3453
3460
  import { forwardRef as forwardRef8 } from "react";
3454
- import { jsx as jsx30 } from "react/jsx-runtime";
3461
+ import { jsx as jsx31 } from "react/jsx-runtime";
3455
3462
  var Card = forwardRef8(
3456
3463
  ({ className, ...props }, ref) => {
3457
- return /* @__PURE__ */ jsx30("div", { ref, className: cn2("tiptap-card", className), ...props });
3464
+ return /* @__PURE__ */ jsx31("div", { ref, className: cn2("tiptap-card", className), ...props });
3458
3465
  }
3459
3466
  );
3460
3467
  Card.displayName = "Card";
3461
3468
  var CardHeader = forwardRef8(
3462
3469
  ({ className, ...props }, ref) => {
3463
- return /* @__PURE__ */ jsx30(
3470
+ return /* @__PURE__ */ jsx31(
3464
3471
  "div",
3465
3472
  {
3466
3473
  ref,
@@ -3473,12 +3480,12 @@ var CardHeader = forwardRef8(
3473
3480
  CardHeader.displayName = "CardHeader";
3474
3481
  var CardBody = forwardRef8(
3475
3482
  ({ className, ...props }, ref) => {
3476
- return /* @__PURE__ */ jsx30("div", { ref, className: cn2("tiptap-card-body", className), ...props });
3483
+ return /* @__PURE__ */ jsx31("div", { ref, className: cn2("tiptap-card-body", className), ...props });
3477
3484
  }
3478
3485
  );
3479
3486
  CardBody.displayName = "CardBody";
3480
3487
  var CardItemGroup = forwardRef8(({ className, orientation = "vertical", ...props }, ref) => {
3481
- return /* @__PURE__ */ jsx30(
3488
+ return /* @__PURE__ */ jsx31(
3482
3489
  "div",
3483
3490
  {
3484
3491
  ref,
@@ -3491,7 +3498,7 @@ var CardItemGroup = forwardRef8(({ className, orientation = "vertical", ...props
3491
3498
  CardItemGroup.displayName = "CardItemGroup";
3492
3499
  var CardGroupLabel = forwardRef8(
3493
3500
  ({ className, ...props }, ref) => {
3494
- return /* @__PURE__ */ jsx30(
3501
+ return /* @__PURE__ */ jsx31(
3495
3502
  "div",
3496
3503
  {
3497
3504
  ref,
@@ -3504,7 +3511,7 @@ var CardGroupLabel = forwardRef8(
3504
3511
  CardGroupLabel.displayName = "CardGroupLabel";
3505
3512
  var CardFooter = forwardRef8(
3506
3513
  ({ className, ...props }, ref) => {
3507
- return /* @__PURE__ */ jsx30(
3514
+ return /* @__PURE__ */ jsx31(
3508
3515
  "div",
3509
3516
  {
3510
3517
  ref,
@@ -3517,7 +3524,7 @@ var CardFooter = forwardRef8(
3517
3524
  CardFooter.displayName = "CardFooter";
3518
3525
 
3519
3526
  // src/components/tiptap-ui/heading-dropdown-menu/heading-dropdown-menu.tsx
3520
- import { jsx as jsx31, jsxs as jsxs17 } from "react/jsx-runtime";
3527
+ import { jsx as jsx32, jsxs as jsxs17 } from "react/jsx-runtime";
3521
3528
  var HeadingDropdownMenu = forwardRef9(
3522
3529
  ({
3523
3530
  editor: providedEditor,
@@ -3546,7 +3553,7 @@ var HeadingDropdownMenu = forwardRef9(
3546
3553
  return null;
3547
3554
  }
3548
3555
  return /* @__PURE__ */ jsxs17(DropdownMenu2, { modal: true, open: isOpen, onOpenChange: handleOpenChange, children: [
3549
- /* @__PURE__ */ jsx31(DropdownMenuTrigger2, { asChild: true, children: /* @__PURE__ */ jsxs17(
3556
+ /* @__PURE__ */ jsx32(DropdownMenuTrigger2, { asChild: true, children: /* @__PURE__ */ jsxs17(
3550
3557
  Button2,
3551
3558
  {
3552
3559
  type: "button",
@@ -3562,12 +3569,12 @@ var HeadingDropdownMenu = forwardRef9(
3562
3569
  ...buttonProps,
3563
3570
  ref,
3564
3571
  children: [
3565
- /* @__PURE__ */ jsx31(Icon, { className: "tiptap-button-icon" }),
3566
- /* @__PURE__ */ jsx31(ChevronDownIcon, { className: "tiptap-button-dropdown-small" })
3572
+ /* @__PURE__ */ jsx32(Icon, { className: "tiptap-button-icon" }),
3573
+ /* @__PURE__ */ jsx32(ChevronDownIcon, { className: "tiptap-button-dropdown-small" })
3567
3574
  ]
3568
3575
  }
3569
3576
  ) }),
3570
- /* @__PURE__ */ jsx31(DropdownMenuContent2, { align: "start", portal, children: /* @__PURE__ */ jsx31(Card, { children: /* @__PURE__ */ jsx31(CardBody, { children: /* @__PURE__ */ jsx31(ButtonGroup, { children: levels.map((level) => /* @__PURE__ */ jsx31(DropdownMenuItem2, { asChild: true, children: /* @__PURE__ */ jsx31(
3577
+ /* @__PURE__ */ jsx32(DropdownMenuContent2, { align: "start", portal, children: /* @__PURE__ */ jsx32(Card, { children: /* @__PURE__ */ jsx32(CardBody, { children: /* @__PURE__ */ jsx32(ButtonGroup, { children: levels.map((level) => /* @__PURE__ */ jsx32(DropdownMenuItem2, { asChild: true, children: /* @__PURE__ */ jsx32(
3571
3578
  HeadingButton,
3572
3579
  {
3573
3580
  editor,
@@ -3586,9 +3593,9 @@ import { useEffect as useEffect6, useState as useState11 } from "react";
3586
3593
 
3587
3594
  // src/components/tiptap-icons/heading-icon.tsx
3588
3595
  import { memo as memo9 } from "react";
3589
- import { jsx as jsx32 } from "react/jsx-runtime";
3596
+ import { jsx as jsx33 } from "react/jsx-runtime";
3590
3597
  var HeadingIcon = memo9(({ className, ...props }) => {
3591
- return /* @__PURE__ */ jsx32(
3598
+ return /* @__PURE__ */ jsx33(
3592
3599
  "svg",
3593
3600
  {
3594
3601
  width: "24",
@@ -3598,7 +3605,7 @@ var HeadingIcon = memo9(({ className, ...props }) => {
3598
3605
  fill: "currentColor",
3599
3606
  xmlns: "http://www.w3.org/2000/svg",
3600
3607
  ...props,
3601
- children: /* @__PURE__ */ jsx32(
3608
+ children: /* @__PURE__ */ jsx33(
3602
3609
  "path",
3603
3610
  {
3604
3611
  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",
@@ -3652,11 +3659,11 @@ function useHeadingDropdownMenu(config) {
3652
3659
 
3653
3660
  // src/components/tiptap-ui/image-upload-button/image-upload-button.tsx
3654
3661
  import { forwardRef as forwardRef10, useCallback as useCallback8 } from "react";
3655
- import { Fragment as Fragment4, jsx as jsx33, jsxs as jsxs18 } from "react/jsx-runtime";
3662
+ import { Fragment as Fragment4, jsx as jsx34, jsxs as jsxs18 } from "react/jsx-runtime";
3656
3663
  function ImageShortcutBadge({
3657
3664
  shortcutKeys = IMAGE_UPLOAD_SHORTCUT_KEY
3658
3665
  }) {
3659
- return /* @__PURE__ */ jsx33(Badge, { children: parseShortcutKeys({ shortcutKeys }) });
3666
+ return /* @__PURE__ */ jsx34(Badge, { children: parseShortcutKeys({ shortcutKeys }) });
3660
3667
  }
3661
3668
  var ImageUploadButton = forwardRef10(
3662
3669
  ({
@@ -3696,7 +3703,7 @@ var ImageUploadButton = forwardRef10(
3696
3703
  return null;
3697
3704
  }
3698
3705
  const RenderIcon = CustomIcon ?? Icon;
3699
- return /* @__PURE__ */ jsx33(
3706
+ return /* @__PURE__ */ jsx34(
3700
3707
  Button2,
3701
3708
  {
3702
3709
  type: "button",
@@ -3713,9 +3720,9 @@ var ImageUploadButton = forwardRef10(
3713
3720
  ...buttonProps,
3714
3721
  ref,
3715
3722
  children: children ?? /* @__PURE__ */ jsxs18(Fragment4, { children: [
3716
- /* @__PURE__ */ jsx33(RenderIcon, { className: "tiptap-button-icon" }),
3717
- text && /* @__PURE__ */ jsx33("span", { className: "tiptap-button-text", children: text }),
3718
- showShortcut && /* @__PURE__ */ jsx33(ImageShortcutBadge, { shortcutKeys })
3723
+ /* @__PURE__ */ jsx34(RenderIcon, { className: "tiptap-button-icon" }),
3724
+ text && /* @__PURE__ */ jsx34("span", { className: "tiptap-button-text", children: text }),
3725
+ showShortcut && /* @__PURE__ */ jsx34(ImageShortcutBadge, { shortcutKeys })
3719
3726
  ] })
3720
3727
  }
3721
3728
  );
@@ -3744,9 +3751,9 @@ function useIsBreakpoint(mode = "max", breakpoint = 768) {
3744
3751
 
3745
3752
  // src/components/tiptap-icons/image-plus-icon.tsx
3746
3753
  import { memo as memo10 } from "react";
3747
- import { jsx as jsx34 } from "react/jsx-runtime";
3754
+ import { jsx as jsx35 } from "react/jsx-runtime";
3748
3755
  var ImagePlusIcon = memo10(({ className, ...props }) => {
3749
- return /* @__PURE__ */ jsx34(
3756
+ return /* @__PURE__ */ jsx35(
3750
3757
  "svg",
3751
3758
  {
3752
3759
  width: "24",
@@ -3756,7 +3763,7 @@ var ImagePlusIcon = memo10(({ className, ...props }) => {
3756
3763
  fill: "currentColor",
3757
3764
  xmlns: "http://www.w3.org/2000/svg",
3758
3765
  ...props,
3759
- children: /* @__PURE__ */ jsx34(
3766
+ children: /* @__PURE__ */ jsx35(
3760
3767
  "path",
3761
3768
  {
3762
3769
  fillRule: "evenodd",
@@ -3880,12 +3887,12 @@ import { useCallback as useCallback12, useState as useState16 } from "react";
3880
3887
 
3881
3888
  // src/components/tiptap-ui/list-button/list-button.tsx
3882
3889
  import { forwardRef as forwardRef11, useCallback as useCallback10 } from "react";
3883
- import { Fragment as Fragment5, jsx as jsx35, jsxs as jsxs19 } from "react/jsx-runtime";
3890
+ import { Fragment as Fragment5, jsx as jsx36, jsxs as jsxs19 } from "react/jsx-runtime";
3884
3891
  function ListShortcutBadge({
3885
3892
  type,
3886
3893
  shortcutKeys = LIST_SHORTCUT_KEYS[type]
3887
3894
  }) {
3888
- return /* @__PURE__ */ jsx35(Badge, { children: parseShortcutKeys({ shortcutKeys }) });
3895
+ return /* @__PURE__ */ jsx36(Badge, { children: parseShortcutKeys({ shortcutKeys }) });
3889
3896
  }
3890
3897
  var ListButton = forwardRef11(
3891
3898
  ({
@@ -3925,7 +3932,7 @@ var ListButton = forwardRef11(
3925
3932
  if (!isVisible) {
3926
3933
  return null;
3927
3934
  }
3928
- return /* @__PURE__ */ jsx35(
3935
+ return /* @__PURE__ */ jsx36(
3929
3936
  Button2,
3930
3937
  {
3931
3938
  type: "button",
@@ -3942,9 +3949,9 @@ var ListButton = forwardRef11(
3942
3949
  ...buttonProps,
3943
3950
  ref,
3944
3951
  children: children ?? /* @__PURE__ */ jsxs19(Fragment5, { children: [
3945
- /* @__PURE__ */ jsx35(Icon, { className: "tiptap-button-icon" }),
3946
- text && /* @__PURE__ */ jsx35("span", { className: "tiptap-button-text", children: text }),
3947
- showShortcut && /* @__PURE__ */ jsx35(ListShortcutBadge, { type, shortcutKeys })
3952
+ /* @__PURE__ */ jsx36(Icon, { className: "tiptap-button-icon" }),
3953
+ text && /* @__PURE__ */ jsx36("span", { className: "tiptap-button-text", children: text }),
3954
+ showShortcut && /* @__PURE__ */ jsx36(ListShortcutBadge, { type, shortcutKeys })
3948
3955
  ] })
3949
3956
  }
3950
3957
  );
@@ -3958,7 +3965,7 @@ import { NodeSelection as NodeSelection3, TextSelection as TextSelection3 } from
3958
3965
 
3959
3966
  // src/components/tiptap-icons/list-icon.tsx
3960
3967
  import { memo as memo11 } from "react";
3961
- import { jsx as jsx36, jsxs as jsxs20 } from "react/jsx-runtime";
3968
+ import { jsx as jsx37, jsxs as jsxs20 } from "react/jsx-runtime";
3962
3969
  var ListIcon = memo11(({ className, ...props }) => {
3963
3970
  return /* @__PURE__ */ jsxs20(
3964
3971
  "svg",
@@ -3971,7 +3978,7 @@ var ListIcon = memo11(({ className, ...props }) => {
3971
3978
  xmlns: "http://www.w3.org/2000/svg",
3972
3979
  ...props,
3973
3980
  children: [
3974
- /* @__PURE__ */ jsx36(
3981
+ /* @__PURE__ */ jsx37(
3975
3982
  "path",
3976
3983
  {
3977
3984
  fillRule: "evenodd",
@@ -3980,7 +3987,7 @@ var ListIcon = memo11(({ className, ...props }) => {
3980
3987
  fill: "currentColor"
3981
3988
  }
3982
3989
  ),
3983
- /* @__PURE__ */ jsx36(
3990
+ /* @__PURE__ */ jsx37(
3984
3991
  "path",
3985
3992
  {
3986
3993
  fillRule: "evenodd",
@@ -3989,7 +3996,7 @@ var ListIcon = memo11(({ className, ...props }) => {
3989
3996
  fill: "currentColor"
3990
3997
  }
3991
3998
  ),
3992
- /* @__PURE__ */ jsx36(
3999
+ /* @__PURE__ */ jsx37(
3993
4000
  "path",
3994
4001
  {
3995
4002
  fillRule: "evenodd",
@@ -3998,7 +4005,7 @@ var ListIcon = memo11(({ className, ...props }) => {
3998
4005
  fill: "currentColor"
3999
4006
  }
4000
4007
  ),
4001
- /* @__PURE__ */ jsx36(
4008
+ /* @__PURE__ */ jsx37(
4002
4009
  "path",
4003
4010
  {
4004
4011
  fillRule: "evenodd",
@@ -4007,7 +4014,7 @@ var ListIcon = memo11(({ className, ...props }) => {
4007
4014
  fill: "currentColor"
4008
4015
  }
4009
4016
  ),
4010
- /* @__PURE__ */ jsx36(
4017
+ /* @__PURE__ */ jsx37(
4011
4018
  "path",
4012
4019
  {
4013
4020
  fillRule: "evenodd",
@@ -4016,7 +4023,7 @@ var ListIcon = memo11(({ className, ...props }) => {
4016
4023
  fill: "currentColor"
4017
4024
  }
4018
4025
  ),
4019
- /* @__PURE__ */ jsx36(
4026
+ /* @__PURE__ */ jsx37(
4020
4027
  "path",
4021
4028
  {
4022
4029
  fillRule: "evenodd",
@@ -4033,7 +4040,7 @@ ListIcon.displayName = "ListIcon";
4033
4040
 
4034
4041
  // src/components/tiptap-icons/list-ordered-icon.tsx
4035
4042
  import { memo as memo12 } from "react";
4036
- import { jsx as jsx37, jsxs as jsxs21 } from "react/jsx-runtime";
4043
+ import { jsx as jsx38, jsxs as jsxs21 } from "react/jsx-runtime";
4037
4044
  var ListOrderedIcon = memo12(({ className, ...props }) => {
4038
4045
  return /* @__PURE__ */ jsxs21(
4039
4046
  "svg",
@@ -4046,7 +4053,7 @@ var ListOrderedIcon = memo12(({ className, ...props }) => {
4046
4053
  xmlns: "http://www.w3.org/2000/svg",
4047
4054
  ...props,
4048
4055
  children: [
4049
- /* @__PURE__ */ jsx37(
4056
+ /* @__PURE__ */ jsx38(
4050
4057
  "path",
4051
4058
  {
4052
4059
  fillRule: "evenodd",
@@ -4055,7 +4062,7 @@ var ListOrderedIcon = memo12(({ className, ...props }) => {
4055
4062
  fill: "currentColor"
4056
4063
  }
4057
4064
  ),
4058
- /* @__PURE__ */ jsx37(
4065
+ /* @__PURE__ */ jsx38(
4059
4066
  "path",
4060
4067
  {
4061
4068
  fillRule: "evenodd",
@@ -4064,7 +4071,7 @@ var ListOrderedIcon = memo12(({ className, ...props }) => {
4064
4071
  fill: "currentColor"
4065
4072
  }
4066
4073
  ),
4067
- /* @__PURE__ */ jsx37(
4074
+ /* @__PURE__ */ jsx38(
4068
4075
  "path",
4069
4076
  {
4070
4077
  fillRule: "evenodd",
@@ -4073,7 +4080,7 @@ var ListOrderedIcon = memo12(({ className, ...props }) => {
4073
4080
  fill: "currentColor"
4074
4081
  }
4075
4082
  ),
4076
- /* @__PURE__ */ jsx37(
4083
+ /* @__PURE__ */ jsx38(
4077
4084
  "path",
4078
4085
  {
4079
4086
  fillRule: "evenodd",
@@ -4082,7 +4089,7 @@ var ListOrderedIcon = memo12(({ className, ...props }) => {
4082
4089
  fill: "currentColor"
4083
4090
  }
4084
4091
  ),
4085
- /* @__PURE__ */ jsx37(
4092
+ /* @__PURE__ */ jsx38(
4086
4093
  "path",
4087
4094
  {
4088
4095
  fillRule: "evenodd",
@@ -4091,7 +4098,7 @@ var ListOrderedIcon = memo12(({ className, ...props }) => {
4091
4098
  fill: "currentColor"
4092
4099
  }
4093
4100
  ),
4094
- /* @__PURE__ */ jsx37(
4101
+ /* @__PURE__ */ jsx38(
4095
4102
  "path",
4096
4103
  {
4097
4104
  fillRule: "evenodd",
@@ -4108,7 +4115,7 @@ ListOrderedIcon.displayName = "ListOrderedIcon";
4108
4115
 
4109
4116
  // src/components/tiptap-icons/list-todo-icon.tsx
4110
4117
  import { memo as memo13 } from "react";
4111
- import { jsx as jsx38, jsxs as jsxs22 } from "react/jsx-runtime";
4118
+ import { jsx as jsx39, jsxs as jsxs22 } from "react/jsx-runtime";
4112
4119
  var ListTodoIcon = memo13(({ className, ...props }) => {
4113
4120
  return /* @__PURE__ */ jsxs22(
4114
4121
  "svg",
@@ -4121,7 +4128,7 @@ var ListTodoIcon = memo13(({ className, ...props }) => {
4121
4128
  xmlns: "http://www.w3.org/2000/svg",
4122
4129
  ...props,
4123
4130
  children: [
4124
- /* @__PURE__ */ jsx38(
4131
+ /* @__PURE__ */ jsx39(
4125
4132
  "path",
4126
4133
  {
4127
4134
  fillRule: "evenodd",
@@ -4130,7 +4137,7 @@ var ListTodoIcon = memo13(({ className, ...props }) => {
4130
4137
  fill: "currentColor"
4131
4138
  }
4132
4139
  ),
4133
- /* @__PURE__ */ jsx38(
4140
+ /* @__PURE__ */ jsx39(
4134
4141
  "path",
4135
4142
  {
4136
4143
  fillRule: "evenodd",
@@ -4139,7 +4146,7 @@ var ListTodoIcon = memo13(({ className, ...props }) => {
4139
4146
  fill: "currentColor"
4140
4147
  }
4141
4148
  ),
4142
- /* @__PURE__ */ jsx38(
4149
+ /* @__PURE__ */ jsx39(
4143
4150
  "path",
4144
4151
  {
4145
4152
  fillRule: "evenodd",
@@ -4148,7 +4155,7 @@ var ListTodoIcon = memo13(({ className, ...props }) => {
4148
4155
  fill: "currentColor"
4149
4156
  }
4150
4157
  ),
4151
- /* @__PURE__ */ jsx38(
4158
+ /* @__PURE__ */ jsx39(
4152
4159
  "path",
4153
4160
  {
4154
4161
  fillRule: "evenodd",
@@ -4157,7 +4164,7 @@ var ListTodoIcon = memo13(({ className, ...props }) => {
4157
4164
  fill: "currentColor"
4158
4165
  }
4159
4166
  ),
4160
- /* @__PURE__ */ jsx38(
4167
+ /* @__PURE__ */ jsx39(
4161
4168
  "path",
4162
4169
  {
4163
4170
  fillRule: "evenodd",
@@ -4426,7 +4433,7 @@ function useListDropdownMenu(config) {
4426
4433
  }
4427
4434
 
4428
4435
  // src/components/tiptap-ui/list-dropdown-menu/list-dropdown-menu.tsx
4429
- import { jsx as jsx39, jsxs as jsxs23 } from "react/jsx-runtime";
4436
+ import { jsx as jsx40, jsxs as jsxs23 } from "react/jsx-runtime";
4430
4437
  function ListDropdownMenu({
4431
4438
  editor: providedEditor,
4432
4439
  types = ["bulletList", "orderedList", "taskList"],
@@ -4453,7 +4460,7 @@ function ListDropdownMenu({
4453
4460
  return null;
4454
4461
  }
4455
4462
  return /* @__PURE__ */ jsxs23(DropdownMenu2, { open: isOpen, onOpenChange: handleOnOpenChange, children: [
4456
- /* @__PURE__ */ jsx39(DropdownMenuTrigger2, { asChild: true, children: /* @__PURE__ */ jsxs23(
4463
+ /* @__PURE__ */ jsx40(DropdownMenuTrigger2, { asChild: true, children: /* @__PURE__ */ jsxs23(
4457
4464
  Button2,
4458
4465
  {
4459
4466
  type: "button",
@@ -4467,12 +4474,12 @@ function ListDropdownMenu({
4467
4474
  tooltip: "List",
4468
4475
  ...props,
4469
4476
  children: [
4470
- /* @__PURE__ */ jsx39(Icon, { className: "tiptap-button-icon" }),
4471
- /* @__PURE__ */ jsx39(ChevronDownIcon, { className: "tiptap-button-dropdown-small" })
4477
+ /* @__PURE__ */ jsx40(Icon, { className: "tiptap-button-icon" }),
4478
+ /* @__PURE__ */ jsx40(ChevronDownIcon, { className: "tiptap-button-dropdown-small" })
4472
4479
  ]
4473
4480
  }
4474
4481
  ) }),
4475
- /* @__PURE__ */ jsx39(DropdownMenuContent2, { align: "start", portal, children: /* @__PURE__ */ jsx39(Card, { children: /* @__PURE__ */ jsx39(CardBody, { children: /* @__PURE__ */ jsx39(ButtonGroup, { children: filteredLists.map((option) => /* @__PURE__ */ jsx39(DropdownMenuItem2, { asChild: true, children: /* @__PURE__ */ jsx39(
4482
+ /* @__PURE__ */ jsx40(DropdownMenuContent2, { align: "start", portal, children: /* @__PURE__ */ jsx40(Card, { children: /* @__PURE__ */ jsx40(CardBody, { children: /* @__PURE__ */ jsx40(ButtonGroup, { children: filteredLists.map((option) => /* @__PURE__ */ jsx40(DropdownMenuItem2, { asChild: true, children: /* @__PURE__ */ jsx40(
4476
4483
  ListButton,
4477
4484
  {
4478
4485
  editor,
@@ -4486,11 +4493,11 @@ function ListDropdownMenu({
4486
4493
 
4487
4494
  // src/components/tiptap-ui/blockquote-button/blockquote-button.tsx
4488
4495
  import { forwardRef as forwardRef12, useCallback as useCallback13 } from "react";
4489
- import { Fragment as Fragment6, jsx as jsx40, jsxs as jsxs24 } from "react/jsx-runtime";
4496
+ import { Fragment as Fragment6, jsx as jsx41, jsxs as jsxs24 } from "react/jsx-runtime";
4490
4497
  function BlockquoteShortcutBadge({
4491
4498
  shortcutKeys = BLOCKQUOTE_SHORTCUT_KEY
4492
4499
  }) {
4493
- return /* @__PURE__ */ jsx40(Badge, { children: parseShortcutKeys({ shortcutKeys }) });
4500
+ return /* @__PURE__ */ jsx41(Badge, { children: parseShortcutKeys({ shortcutKeys }) });
4494
4501
  }
4495
4502
  var BlockquoteButton = forwardRef12(
4496
4503
  ({
@@ -4528,7 +4535,7 @@ var BlockquoteButton = forwardRef12(
4528
4535
  if (!isVisible) {
4529
4536
  return null;
4530
4537
  }
4531
- return /* @__PURE__ */ jsx40(
4538
+ return /* @__PURE__ */ jsx41(
4532
4539
  Button2,
4533
4540
  {
4534
4541
  type: "button",
@@ -4545,9 +4552,9 @@ var BlockquoteButton = forwardRef12(
4545
4552
  ...buttonProps,
4546
4553
  ref,
4547
4554
  children: children ?? /* @__PURE__ */ jsxs24(Fragment6, { children: [
4548
- /* @__PURE__ */ jsx40(Icon, { className: "tiptap-button-icon" }),
4549
- text && /* @__PURE__ */ jsx40("span", { className: "tiptap-button-text", children: text }),
4550
- showShortcut && /* @__PURE__ */ jsx40(BlockquoteShortcutBadge, { shortcutKeys })
4555
+ /* @__PURE__ */ jsx41(Icon, { className: "tiptap-button-icon" }),
4556
+ text && /* @__PURE__ */ jsx41("span", { className: "tiptap-button-text", children: text }),
4557
+ showShortcut && /* @__PURE__ */ jsx41(BlockquoteShortcutBadge, { shortcutKeys })
4551
4558
  ] })
4552
4559
  }
4553
4560
  );
@@ -4561,7 +4568,7 @@ import { NodeSelection as NodeSelection4, TextSelection as TextSelection4 } from
4561
4568
 
4562
4569
  // src/components/tiptap-icons/blockquote-icon.tsx
4563
4570
  import { memo as memo14 } from "react";
4564
- import { jsx as jsx41, jsxs as jsxs25 } from "react/jsx-runtime";
4571
+ import { jsx as jsx42, jsxs as jsxs25 } from "react/jsx-runtime";
4565
4572
  var BlockquoteIcon = memo14(({ className, ...props }) => {
4566
4573
  return /* @__PURE__ */ jsxs25(
4567
4574
  "svg",
@@ -4574,7 +4581,7 @@ var BlockquoteIcon = memo14(({ className, ...props }) => {
4574
4581
  xmlns: "http://www.w3.org/2000/svg",
4575
4582
  ...props,
4576
4583
  children: [
4577
- /* @__PURE__ */ jsx41(
4584
+ /* @__PURE__ */ jsx42(
4578
4585
  "path",
4579
4586
  {
4580
4587
  fillRule: "evenodd",
@@ -4583,7 +4590,7 @@ var BlockquoteIcon = memo14(({ className, ...props }) => {
4583
4590
  fill: "currentColor"
4584
4591
  }
4585
4592
  ),
4586
- /* @__PURE__ */ jsx41(
4593
+ /* @__PURE__ */ jsx42(
4587
4594
  "path",
4588
4595
  {
4589
4596
  fillRule: "evenodd",
@@ -4592,7 +4599,7 @@ var BlockquoteIcon = memo14(({ className, ...props }) => {
4592
4599
  fill: "currentColor"
4593
4600
  }
4594
4601
  ),
4595
- /* @__PURE__ */ jsx41(
4602
+ /* @__PURE__ */ jsx42(
4596
4603
  "path",
4597
4604
  {
4598
4605
  fillRule: "evenodd",
@@ -4601,7 +4608,7 @@ var BlockquoteIcon = memo14(({ className, ...props }) => {
4601
4608
  fill: "currentColor"
4602
4609
  }
4603
4610
  ),
4604
- /* @__PURE__ */ jsx41(
4611
+ /* @__PURE__ */ jsx42(
4605
4612
  "path",
4606
4613
  {
4607
4614
  fillRule: "evenodd",
@@ -4727,9 +4734,9 @@ import { forwardRef as forwardRef14, useMemo as useMemo7, useRef as useRef5, use
4727
4734
 
4728
4735
  // src/components/tiptap-icons/ban-icon.tsx
4729
4736
  import { memo as memo15 } from "react";
4730
- import { jsx as jsx42 } from "react/jsx-runtime";
4737
+ import { jsx as jsx43 } from "react/jsx-runtime";
4731
4738
  var BanIcon = memo15(({ className, ...props }) => {
4732
- return /* @__PURE__ */ jsx42(
4739
+ return /* @__PURE__ */ jsx43(
4733
4740
  "svg",
4734
4741
  {
4735
4742
  width: "24",
@@ -4739,7 +4746,7 @@ var BanIcon = memo15(({ className, ...props }) => {
4739
4746
  fill: "currentColor",
4740
4747
  xmlns: "http://www.w3.org/2000/svg",
4741
4748
  ...props,
4742
- children: /* @__PURE__ */ jsx42(
4749
+ children: /* @__PURE__ */ jsx43(
4743
4750
  "path",
4744
4751
  {
4745
4752
  fillRule: "evenodd",
@@ -4755,9 +4762,9 @@ BanIcon.displayName = "BanIcon";
4755
4762
 
4756
4763
  // src/components/tiptap-icons/highlighter-icon.tsx
4757
4764
  import { memo as memo16 } from "react";
4758
- import { jsx as jsx43 } from "react/jsx-runtime";
4765
+ import { jsx as jsx44 } from "react/jsx-runtime";
4759
4766
  var HighlighterIcon = memo16(({ className, ...props }) => {
4760
- return /* @__PURE__ */ jsx43(
4767
+ return /* @__PURE__ */ jsx44(
4761
4768
  "svg",
4762
4769
  {
4763
4770
  width: "24",
@@ -4767,7 +4774,7 @@ var HighlighterIcon = memo16(({ className, ...props }) => {
4767
4774
  fill: "currentColor",
4768
4775
  xmlns: "http://www.w3.org/2000/svg",
4769
4776
  ...props,
4770
- children: /* @__PURE__ */ jsx43(
4777
+ children: /* @__PURE__ */ jsx44(
4771
4778
  "path",
4772
4779
  {
4773
4780
  fillRule: "evenodd",
@@ -4783,16 +4790,16 @@ HighlighterIcon.displayName = "HighlighterIcon";
4783
4790
 
4784
4791
  // src/components/tiptap-ui-primitive/popover/popover.tsx
4785
4792
  import * as PopoverPrimitive from "@radix-ui/react-popover";
4786
- import { jsx as jsx44 } from "react/jsx-runtime";
4793
+ import { jsx as jsx45 } from "react/jsx-runtime";
4787
4794
  function Popover({
4788
4795
  ...props
4789
4796
  }) {
4790
- return /* @__PURE__ */ jsx44(PopoverPrimitive.Root, { ...props });
4797
+ return /* @__PURE__ */ jsx45(PopoverPrimitive.Root, { ...props });
4791
4798
  }
4792
4799
  function PopoverTrigger({
4793
4800
  ...props
4794
4801
  }) {
4795
- return /* @__PURE__ */ jsx44(PopoverPrimitive.Trigger, { ...props });
4802
+ return /* @__PURE__ */ jsx45(PopoverPrimitive.Trigger, { ...props });
4796
4803
  }
4797
4804
  function PopoverContent({
4798
4805
  className,
@@ -4800,7 +4807,7 @@ function PopoverContent({
4800
4807
  sideOffset = 4,
4801
4808
  ...props
4802
4809
  }) {
4803
- return /* @__PURE__ */ jsx44(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx44(
4810
+ return /* @__PURE__ */ jsx45(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx45(
4804
4811
  PopoverPrimitive.Content,
4805
4812
  {
4806
4813
  align,
@@ -4813,11 +4820,11 @@ function PopoverContent({
4813
4820
 
4814
4821
  // src/components/tiptap-ui/color-highlight-button/color-highlight-button.tsx
4815
4822
  import { forwardRef as forwardRef13, useCallback as useCallback15, useMemo as useMemo6 } from "react";
4816
- import { Fragment as Fragment7, jsx as jsx45, jsxs as jsxs26 } from "react/jsx-runtime";
4823
+ import { Fragment as Fragment7, jsx as jsx46, jsxs as jsxs26 } from "react/jsx-runtime";
4817
4824
  function ColorHighlightShortcutBadge({
4818
4825
  shortcutKeys = COLOR_HIGHLIGHT_SHORTCUT_KEY
4819
4826
  }) {
4820
- return /* @__PURE__ */ jsx45(Badge, { children: parseShortcutKeys({ shortcutKeys }) });
4827
+ return /* @__PURE__ */ jsx46(Badge, { children: parseShortcutKeys({ shortcutKeys }) });
4821
4828
  }
4822
4829
  var ColorHighlightButton = forwardRef13(
4823
4830
  ({
@@ -4867,7 +4874,7 @@ var ColorHighlightButton = forwardRef13(
4867
4874
  if (!isVisible) {
4868
4875
  return null;
4869
4876
  }
4870
- return /* @__PURE__ */ jsx45(
4877
+ return /* @__PURE__ */ jsx46(
4871
4878
  Button2,
4872
4879
  {
4873
4880
  type: "button",
@@ -4885,15 +4892,15 @@ var ColorHighlightButton = forwardRef13(
4885
4892
  ...buttonProps,
4886
4893
  ref,
4887
4894
  children: children ?? /* @__PURE__ */ jsxs26(Fragment7, { children: [
4888
- /* @__PURE__ */ jsx45(
4895
+ /* @__PURE__ */ jsx46(
4889
4896
  "span",
4890
4897
  {
4891
4898
  className: "tiptap-button-highlight",
4892
4899
  style: { "--highlight-color": highlightColor }
4893
4900
  }
4894
4901
  ),
4895
- text && /* @__PURE__ */ jsx45("span", { className: "tiptap-button-text", children: text }),
4896
- showShortcut && /* @__PURE__ */ jsx45(ColorHighlightShortcutBadge, { shortcutKeys })
4902
+ text && /* @__PURE__ */ jsx46("span", { className: "tiptap-button-text", children: text }),
4903
+ showShortcut && /* @__PURE__ */ jsx46(ColorHighlightShortcutBadge, { shortcutKeys })
4897
4904
  ] })
4898
4905
  }
4899
4906
  );
@@ -5108,8 +5115,8 @@ function useColorHighlight(config) {
5108
5115
  }
5109
5116
 
5110
5117
  // src/components/tiptap-ui/color-highlight-popover/color-highlight-popover.tsx
5111
- import { jsx as jsx46, jsxs as jsxs27 } from "react/jsx-runtime";
5112
- var ColorHighlightPopoverButton = forwardRef14(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx46(
5118
+ import { jsx as jsx47, jsxs as jsxs27 } from "react/jsx-runtime";
5119
+ var ColorHighlightPopoverButton = forwardRef14(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx47(
5113
5120
  Button2,
5114
5121
  {
5115
5122
  type: "button",
@@ -5122,7 +5129,7 @@ var ColorHighlightPopoverButton = forwardRef14(({ className, children, ...props
5122
5129
  tooltip: "Highlight",
5123
5130
  ref,
5124
5131
  ...props,
5125
- children: children ?? /* @__PURE__ */ jsx46(HighlighterIcon, { className: "tiptap-button-icon" })
5132
+ children: children ?? /* @__PURE__ */ jsx47(HighlighterIcon, { className: "tiptap-button-icon" })
5126
5133
  }
5127
5134
  ));
5128
5135
  ColorHighlightPopoverButton.displayName = "ColorHighlightPopoverButton";
@@ -5158,14 +5165,14 @@ function ColorHighlightPopoverContent({
5158
5165
  },
5159
5166
  autoSelectFirstItem: false
5160
5167
  });
5161
- return /* @__PURE__ */ jsx46(
5168
+ return /* @__PURE__ */ jsx47(
5162
5169
  Card,
5163
5170
  {
5164
5171
  ref: containerRef,
5165
5172
  tabIndex: 0,
5166
5173
  style: isMobile ? { boxShadow: "none", border: 0 } : {},
5167
- children: /* @__PURE__ */ jsx46(CardBody, { style: isMobile ? { padding: 0 } : {}, children: /* @__PURE__ */ jsxs27(CardItemGroup, { orientation: "horizontal", children: [
5168
- /* @__PURE__ */ jsx46(ButtonGroup, { orientation: "horizontal", children: colors.map((color, index) => /* @__PURE__ */ jsx46(
5174
+ children: /* @__PURE__ */ jsx47(CardBody, { style: isMobile ? { padding: 0 } : {}, children: /* @__PURE__ */ jsxs27(CardItemGroup, { orientation: "horizontal", children: [
5175
+ /* @__PURE__ */ jsx47(ButtonGroup, { orientation: "horizontal", children: colors.map((color, index) => /* @__PURE__ */ jsx47(
5169
5176
  ColorHighlightButton,
5170
5177
  {
5171
5178
  editor,
@@ -5177,8 +5184,8 @@ function ColorHighlightPopoverContent({
5177
5184
  },
5178
5185
  color.value
5179
5186
  )) }),
5180
- /* @__PURE__ */ jsx46(Separator3, {}),
5181
- /* @__PURE__ */ jsx46(ButtonGroup, { orientation: "horizontal", children: /* @__PURE__ */ jsx46(
5187
+ /* @__PURE__ */ jsx47(Separator3, {}),
5188
+ /* @__PURE__ */ jsx47(ButtonGroup, { orientation: "horizontal", children: /* @__PURE__ */ jsx47(
5182
5189
  Button2,
5183
5190
  {
5184
5191
  onClick: handleRemoveHighlight,
@@ -5189,7 +5196,7 @@ function ColorHighlightPopoverContent({
5189
5196
  role: "menuitem",
5190
5197
  "data-style": "ghost",
5191
5198
  "data-highlighted": selectedIndex === colors.length,
5192
- children: /* @__PURE__ */ jsx46(BanIcon, { className: "tiptap-button-icon" })
5199
+ children: /* @__PURE__ */ jsx47(BanIcon, { className: "tiptap-button-icon" })
5193
5200
  }
5194
5201
  ) })
5195
5202
  ] }) })
@@ -5202,9 +5209,9 @@ import { forwardRef as forwardRef15, useCallback as useCallback17, useEffect as
5202
5209
 
5203
5210
  // src/components/tiptap-icons/corner-down-left-icon.tsx
5204
5211
  import { memo as memo17 } from "react";
5205
- import { jsx as jsx47 } from "react/jsx-runtime";
5212
+ import { jsx as jsx48 } from "react/jsx-runtime";
5206
5213
  var CornerDownLeftIcon = memo17(({ className, ...props }) => {
5207
- return /* @__PURE__ */ jsx47(
5214
+ return /* @__PURE__ */ jsx48(
5208
5215
  "svg",
5209
5216
  {
5210
5217
  width: "24",
@@ -5214,7 +5221,7 @@ var CornerDownLeftIcon = memo17(({ className, ...props }) => {
5214
5221
  fill: "currentColor",
5215
5222
  xmlns: "http://www.w3.org/2000/svg",
5216
5223
  ...props,
5217
- children: /* @__PURE__ */ jsx47(
5224
+ children: /* @__PURE__ */ jsx48(
5218
5225
  "path",
5219
5226
  {
5220
5227
  fillRule: "evenodd",
@@ -5230,7 +5237,7 @@ CornerDownLeftIcon.displayName = "CornerDownLeftIcon";
5230
5237
 
5231
5238
  // src/components/tiptap-icons/external-link-icon.tsx
5232
5239
  import { memo as memo18 } from "react";
5233
- import { jsx as jsx48, jsxs as jsxs28 } from "react/jsx-runtime";
5240
+ import { jsx as jsx49, jsxs as jsxs28 } from "react/jsx-runtime";
5234
5241
  var ExternalLinkIcon = memo18(({ className, ...props }) => {
5235
5242
  return /* @__PURE__ */ jsxs28(
5236
5243
  "svg",
@@ -5243,14 +5250,14 @@ var ExternalLinkIcon = memo18(({ className, ...props }) => {
5243
5250
  xmlns: "http://www.w3.org/2000/svg",
5244
5251
  ...props,
5245
5252
  children: [
5246
- /* @__PURE__ */ jsx48(
5253
+ /* @__PURE__ */ jsx49(
5247
5254
  "path",
5248
5255
  {
5249
5256
  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",
5250
5257
  fill: "currentColor"
5251
5258
  }
5252
5259
  ),
5253
- /* @__PURE__ */ jsx48(
5260
+ /* @__PURE__ */ jsx49(
5254
5261
  "path",
5255
5262
  {
5256
5263
  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",
@@ -5265,7 +5272,7 @@ ExternalLinkIcon.displayName = "ExternalLinkIcon";
5265
5272
 
5266
5273
  // src/components/tiptap-icons/link-icon.tsx
5267
5274
  import { memo as memo19 } from "react";
5268
- import { jsx as jsx49, jsxs as jsxs29 } from "react/jsx-runtime";
5275
+ import { jsx as jsx50, jsxs as jsxs29 } from "react/jsx-runtime";
5269
5276
  var LinkIcon = memo19(({ className, ...props }) => {
5270
5277
  return /* @__PURE__ */ jsxs29(
5271
5278
  "svg",
@@ -5278,14 +5285,14 @@ var LinkIcon = memo19(({ className, ...props }) => {
5278
5285
  xmlns: "http://www.w3.org/2000/svg",
5279
5286
  ...props,
5280
5287
  children: [
5281
- /* @__PURE__ */ jsx49(
5288
+ /* @__PURE__ */ jsx50(
5282
5289
  "path",
5283
5290
  {
5284
5291
  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",
5285
5292
  fill: "currentColor"
5286
5293
  }
5287
5294
  ),
5288
- /* @__PURE__ */ jsx49(
5295
+ /* @__PURE__ */ jsx50(
5289
5296
  "path",
5290
5297
  {
5291
5298
  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",
@@ -5300,9 +5307,9 @@ LinkIcon.displayName = "LinkIcon";
5300
5307
 
5301
5308
  // src/components/tiptap-icons/trash-icon.tsx
5302
5309
  import { memo as memo20 } from "react";
5303
- import { jsx as jsx50 } from "react/jsx-runtime";
5310
+ import { jsx as jsx51 } from "react/jsx-runtime";
5304
5311
  var TrashIcon = memo20(({ className, ...props }) => {
5305
- return /* @__PURE__ */ jsx50(
5312
+ return /* @__PURE__ */ jsx51(
5306
5313
  "svg",
5307
5314
  {
5308
5315
  width: "24",
@@ -5312,7 +5319,7 @@ var TrashIcon = memo20(({ className, ...props }) => {
5312
5319
  fill: "currentColor",
5313
5320
  xmlns: "http://www.w3.org/2000/svg",
5314
5321
  ...props,
5315
- children: /* @__PURE__ */ jsx50(
5322
+ children: /* @__PURE__ */ jsx51(
5316
5323
  "path",
5317
5324
  {
5318
5325
  fillRule: "evenodd",
@@ -5327,23 +5334,23 @@ var TrashIcon = memo20(({ className, ...props }) => {
5327
5334
  TrashIcon.displayName = "TrashIcon";
5328
5335
 
5329
5336
  // src/components/tiptap-ui-primitive/input/input.tsx
5330
- import { jsx as jsx51 } from "react/jsx-runtime";
5337
+ import { jsx as jsx52 } from "react/jsx-runtime";
5331
5338
  function Input2({ className, type, ...props }) {
5332
- return /* @__PURE__ */ jsx51("input", { type, className: cn2("tiptap-input", className), ...props });
5339
+ return /* @__PURE__ */ jsx52("input", { type, className: cn2("tiptap-input", className), ...props });
5333
5340
  }
5334
5341
  function InputGroup({
5335
5342
  className,
5336
5343
  children,
5337
5344
  ...props
5338
5345
  }) {
5339
- return /* @__PURE__ */ jsx51("div", { className: cn2("tiptap-input-group", className), ...props, children });
5346
+ return /* @__PURE__ */ jsx52("div", { className: cn2("tiptap-input-group", className), ...props, children });
5340
5347
  }
5341
5348
 
5342
5349
  // src/components/tiptap-ui/link-popover/link-popover.tsx
5343
- import { jsx as jsx52, jsxs as jsxs30 } from "react/jsx-runtime";
5350
+ import { jsx as jsx53, jsxs as jsxs30 } from "react/jsx-runtime";
5344
5351
  var LinkButton = forwardRef15(
5345
5352
  ({ className, children, ...props }, ref) => {
5346
- return /* @__PURE__ */ jsx52(
5353
+ return /* @__PURE__ */ jsx53(
5347
5354
  Button2,
5348
5355
  {
5349
5356
  type: "button",
@@ -5355,7 +5362,7 @@ var LinkButton = forwardRef15(
5355
5362
  tooltip: "Link",
5356
5363
  ref,
5357
5364
  ...props,
5358
- children: children || /* @__PURE__ */ jsx52(LinkIcon, { className: "tiptap-button-icon" })
5365
+ children: children || /* @__PURE__ */ jsx53(LinkIcon, { className: "tiptap-button-icon" })
5359
5366
  }
5360
5367
  );
5361
5368
  }
@@ -5376,20 +5383,20 @@ var LinkMain = ({
5376
5383
  setLink();
5377
5384
  }
5378
5385
  };
5379
- return /* @__PURE__ */ jsx52(
5386
+ return /* @__PURE__ */ jsx53(
5380
5387
  Card,
5381
5388
  {
5382
5389
  style: {
5383
5390
  ...isMobile ? { boxShadow: "none", border: 0 } : {}
5384
5391
  },
5385
- children: /* @__PURE__ */ jsx52(
5392
+ children: /* @__PURE__ */ jsx53(
5386
5393
  CardBody,
5387
5394
  {
5388
5395
  style: {
5389
5396
  ...isMobile ? { padding: 0 } : {}
5390
5397
  },
5391
5398
  children: /* @__PURE__ */ jsxs30(CardItemGroup, { orientation: "horizontal", children: [
5392
- /* @__PURE__ */ jsx52(InputGroup, { children: /* @__PURE__ */ jsx52(
5399
+ /* @__PURE__ */ jsx53(InputGroup, { children: /* @__PURE__ */ jsx53(
5393
5400
  Input2,
5394
5401
  {
5395
5402
  type: "url",
@@ -5403,7 +5410,7 @@ var LinkMain = ({
5403
5410
  autoCapitalize: "off"
5404
5411
  }
5405
5412
  ) }),
5406
- /* @__PURE__ */ jsx52(ButtonGroup, { orientation: "horizontal", children: /* @__PURE__ */ jsx52(
5413
+ /* @__PURE__ */ jsx53(ButtonGroup, { orientation: "horizontal", children: /* @__PURE__ */ jsx53(
5407
5414
  Button2,
5408
5415
  {
5409
5416
  type: "button",
@@ -5411,12 +5418,12 @@ var LinkMain = ({
5411
5418
  title: "Apply link",
5412
5419
  disabled: !url && !isActive,
5413
5420
  "data-style": "ghost",
5414
- children: /* @__PURE__ */ jsx52(CornerDownLeftIcon, { className: "tiptap-button-icon" })
5421
+ children: /* @__PURE__ */ jsx53(CornerDownLeftIcon, { className: "tiptap-button-icon" })
5415
5422
  }
5416
5423
  ) }),
5417
- /* @__PURE__ */ jsx52(Separator3, {}),
5424
+ /* @__PURE__ */ jsx53(Separator3, {}),
5418
5425
  /* @__PURE__ */ jsxs30(ButtonGroup, { orientation: "horizontal", children: [
5419
- /* @__PURE__ */ jsx52(
5426
+ /* @__PURE__ */ jsx53(
5420
5427
  Button2,
5421
5428
  {
5422
5429
  type: "button",
@@ -5424,10 +5431,10 @@ var LinkMain = ({
5424
5431
  title: "Open in new window",
5425
5432
  disabled: !url && !isActive,
5426
5433
  "data-style": "ghost",
5427
- children: /* @__PURE__ */ jsx52(ExternalLinkIcon, { className: "tiptap-button-icon" })
5434
+ children: /* @__PURE__ */ jsx53(ExternalLinkIcon, { className: "tiptap-button-icon" })
5428
5435
  }
5429
5436
  ),
5430
- /* @__PURE__ */ jsx52(
5437
+ /* @__PURE__ */ jsx53(
5431
5438
  Button2,
5432
5439
  {
5433
5440
  type: "button",
@@ -5435,7 +5442,7 @@ var LinkMain = ({
5435
5442
  title: "Remove link",
5436
5443
  disabled: !url && !isActive,
5437
5444
  "data-style": "ghost",
5438
- children: /* @__PURE__ */ jsx52(TrashIcon, { className: "tiptap-button-icon" })
5445
+ children: /* @__PURE__ */ jsx53(TrashIcon, { className: "tiptap-button-icon" })
5439
5446
  }
5440
5447
  )
5441
5448
  ] })
@@ -5449,7 +5456,7 @@ var LinkContent = ({ editor }) => {
5449
5456
  const linkPopover = useLinkPopover({
5450
5457
  editor
5451
5458
  });
5452
- return /* @__PURE__ */ jsx52(LinkMain, { ...linkPopover });
5459
+ return /* @__PURE__ */ jsx53(LinkMain, { ...linkPopover });
5453
5460
  };
5454
5461
  var LinkPopover = forwardRef15(
5455
5462
  ({
@@ -5508,7 +5515,7 @@ var LinkPopover = forwardRef15(
5508
5515
  return null;
5509
5516
  }
5510
5517
  return /* @__PURE__ */ jsxs30(Popover, { open: isOpen, onOpenChange: handleOnOpenChange, children: [
5511
- /* @__PURE__ */ jsx52(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx52(
5518
+ /* @__PURE__ */ jsx53(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx53(
5512
5519
  LinkButton,
5513
5520
  {
5514
5521
  disabled: !canSet,
@@ -5519,10 +5526,10 @@ var LinkPopover = forwardRef15(
5519
5526
  onClick: handleClick,
5520
5527
  ...buttonProps,
5521
5528
  ref,
5522
- children: children ?? /* @__PURE__ */ jsx52(Icon, { className: "tiptap-button-icon" })
5529
+ children: children ?? /* @__PURE__ */ jsx53(Icon, { className: "tiptap-button-icon" })
5523
5530
  }
5524
5531
  ) }),
5525
- /* @__PURE__ */ jsx52(PopoverContent, { children: /* @__PURE__ */ jsx52(
5532
+ /* @__PURE__ */ jsx53(PopoverContent, { children: /* @__PURE__ */ jsx53(
5526
5533
  LinkMain,
5527
5534
  {
5528
5535
  url,
@@ -5671,12 +5678,12 @@ function useLinkPopover(config) {
5671
5678
 
5672
5679
  // src/components/tiptap-ui/mark-button/mark-button.tsx
5673
5680
  import { forwardRef as forwardRef16, useCallback as useCallback19 } from "react";
5674
- import { Fragment as Fragment8, jsx as jsx53, jsxs as jsxs31 } from "react/jsx-runtime";
5681
+ import { Fragment as Fragment8, jsx as jsx54, jsxs as jsxs31 } from "react/jsx-runtime";
5675
5682
  function MarkShortcutBadge({
5676
5683
  type,
5677
5684
  shortcutKeys = MARK_SHORTCUT_KEYS[type]
5678
5685
  }) {
5679
- return /* @__PURE__ */ jsx53(Badge, { children: parseShortcutKeys({ shortcutKeys }) });
5686
+ return /* @__PURE__ */ jsx54(Badge, { children: parseShortcutKeys({ shortcutKeys }) });
5680
5687
  }
5681
5688
  var MarkButton = forwardRef16(
5682
5689
  ({
@@ -5716,7 +5723,7 @@ var MarkButton = forwardRef16(
5716
5723
  if (!isVisible) {
5717
5724
  return null;
5718
5725
  }
5719
- return /* @__PURE__ */ jsx53(
5726
+ return /* @__PURE__ */ jsx54(
5720
5727
  Button2,
5721
5728
  {
5722
5729
  type: "button",
@@ -5733,9 +5740,9 @@ var MarkButton = forwardRef16(
5733
5740
  ...buttonProps,
5734
5741
  ref,
5735
5742
  children: children ?? /* @__PURE__ */ jsxs31(Fragment8, { children: [
5736
- /* @__PURE__ */ jsx53(Icon, { className: "tiptap-button-icon" }),
5737
- text && /* @__PURE__ */ jsx53("span", { className: "tiptap-button-text", children: text }),
5738
- showShortcut && /* @__PURE__ */ jsx53(MarkShortcutBadge, { type, shortcutKeys })
5743
+ /* @__PURE__ */ jsx54(Icon, { className: "tiptap-button-icon" }),
5744
+ text && /* @__PURE__ */ jsx54("span", { className: "tiptap-button-text", children: text }),
5745
+ showShortcut && /* @__PURE__ */ jsx54(MarkShortcutBadge, { type, shortcutKeys })
5739
5746
  ] })
5740
5747
  }
5741
5748
  );
@@ -5748,9 +5755,9 @@ import { useCallback as useCallback20, useEffect as useEffect15, useState as use
5748
5755
 
5749
5756
  // src/components/tiptap-icons/bold-icon.tsx
5750
5757
  import { memo as memo21 } from "react";
5751
- import { jsx as jsx54 } from "react/jsx-runtime";
5758
+ import { jsx as jsx55 } from "react/jsx-runtime";
5752
5759
  var BoldIcon = memo21(({ className, ...props }) => {
5753
- return /* @__PURE__ */ jsx54(
5760
+ return /* @__PURE__ */ jsx55(
5754
5761
  "svg",
5755
5762
  {
5756
5763
  width: "24",
@@ -5760,7 +5767,7 @@ var BoldIcon = memo21(({ className, ...props }) => {
5760
5767
  fill: "currentColor",
5761
5768
  xmlns: "http://www.w3.org/2000/svg",
5762
5769
  ...props,
5763
- children: /* @__PURE__ */ jsx54(
5770
+ children: /* @__PURE__ */ jsx55(
5764
5771
  "path",
5765
5772
  {
5766
5773
  fillRule: "evenodd",
@@ -5776,7 +5783,7 @@ BoldIcon.displayName = "BoldIcon";
5776
5783
 
5777
5784
  // src/components/tiptap-icons/code2-icon.tsx
5778
5785
  import { memo as memo22 } from "react";
5779
- import { jsx as jsx55, jsxs as jsxs32 } from "react/jsx-runtime";
5786
+ import { jsx as jsx56, jsxs as jsxs32 } from "react/jsx-runtime";
5780
5787
  var Code2Icon = memo22(({ className, ...props }) => {
5781
5788
  return /* @__PURE__ */ jsxs32(
5782
5789
  "svg",
@@ -5789,21 +5796,21 @@ var Code2Icon = memo22(({ className, ...props }) => {
5789
5796
  xmlns: "http://www.w3.org/2000/svg",
5790
5797
  ...props,
5791
5798
  children: [
5792
- /* @__PURE__ */ jsx55(
5799
+ /* @__PURE__ */ jsx56(
5793
5800
  "path",
5794
5801
  {
5795
5802
  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",
5796
5803
  fill: "currentColor"
5797
5804
  }
5798
5805
  ),
5799
- /* @__PURE__ */ jsx55(
5806
+ /* @__PURE__ */ jsx56(
5800
5807
  "path",
5801
5808
  {
5802
5809
  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",
5803
5810
  fill: "currentColor"
5804
5811
  }
5805
5812
  ),
5806
- /* @__PURE__ */ jsx55(
5813
+ /* @__PURE__ */ jsx56(
5807
5814
  "path",
5808
5815
  {
5809
5816
  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",
@@ -5818,9 +5825,9 @@ Code2Icon.displayName = "Code2Icon";
5818
5825
 
5819
5826
  // src/components/tiptap-icons/italic-icon.tsx
5820
5827
  import { memo as memo23 } from "react";
5821
- import { jsx as jsx56 } from "react/jsx-runtime";
5828
+ import { jsx as jsx57 } from "react/jsx-runtime";
5822
5829
  var ItalicIcon = memo23(({ className, ...props }) => {
5823
- return /* @__PURE__ */ jsx56(
5830
+ return /* @__PURE__ */ jsx57(
5824
5831
  "svg",
5825
5832
  {
5826
5833
  width: "24",
@@ -5830,7 +5837,7 @@ var ItalicIcon = memo23(({ className, ...props }) => {
5830
5837
  fill: "currentColor",
5831
5838
  xmlns: "http://www.w3.org/2000/svg",
5832
5839
  ...props,
5833
- children: /* @__PURE__ */ jsx56(
5840
+ children: /* @__PURE__ */ jsx57(
5834
5841
  "path",
5835
5842
  {
5836
5843
  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",
@@ -5844,7 +5851,7 @@ ItalicIcon.displayName = "ItalicIcon";
5844
5851
 
5845
5852
  // src/components/tiptap-icons/strike-icon.tsx
5846
5853
  import { memo as memo24 } from "react";
5847
- import { jsx as jsx57, jsxs as jsxs33 } from "react/jsx-runtime";
5854
+ import { jsx as jsx58, jsxs as jsxs33 } from "react/jsx-runtime";
5848
5855
  var StrikeIcon = memo24(({ className, ...props }) => {
5849
5856
  return /* @__PURE__ */ jsxs33(
5850
5857
  "svg",
@@ -5857,14 +5864,14 @@ var StrikeIcon = memo24(({ className, ...props }) => {
5857
5864
  xmlns: "http://www.w3.org/2000/svg",
5858
5865
  ...props,
5859
5866
  children: [
5860
- /* @__PURE__ */ jsx57(
5867
+ /* @__PURE__ */ jsx58(
5861
5868
  "path",
5862
5869
  {
5863
5870
  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",
5864
5871
  fill: "currentColor"
5865
5872
  }
5866
5873
  ),
5867
- /* @__PURE__ */ jsx57(
5874
+ /* @__PURE__ */ jsx58(
5868
5875
  "path",
5869
5876
  {
5870
5877
  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",
@@ -5879,7 +5886,7 @@ StrikeIcon.displayName = "StrikeIcon";
5879
5886
 
5880
5887
  // src/components/tiptap-icons/subscript-icon.tsx
5881
5888
  import { memo as memo25 } from "react";
5882
- import { jsx as jsx58, jsxs as jsxs34 } from "react/jsx-runtime";
5889
+ import { jsx as jsx59, jsxs as jsxs34 } from "react/jsx-runtime";
5883
5890
  var SubscriptIcon = memo25(({ className, ...props }) => {
5884
5891
  return /* @__PURE__ */ jsxs34(
5885
5892
  "svg",
@@ -5892,7 +5899,7 @@ var SubscriptIcon = memo25(({ className, ...props }) => {
5892
5899
  xmlns: "http://www.w3.org/2000/svg",
5893
5900
  ...props,
5894
5901
  children: [
5895
- /* @__PURE__ */ jsx58(
5902
+ /* @__PURE__ */ jsx59(
5896
5903
  "path",
5897
5904
  {
5898
5905
  fillRule: "evenodd",
@@ -5901,7 +5908,7 @@ var SubscriptIcon = memo25(({ className, ...props }) => {
5901
5908
  fill: "currentColor"
5902
5909
  }
5903
5910
  ),
5904
- /* @__PURE__ */ jsx58(
5911
+ /* @__PURE__ */ jsx59(
5905
5912
  "path",
5906
5913
  {
5907
5914
  fillRule: "evenodd",
@@ -5910,7 +5917,7 @@ var SubscriptIcon = memo25(({ className, ...props }) => {
5910
5917
  fill: "currentColor"
5911
5918
  }
5912
5919
  ),
5913
- /* @__PURE__ */ jsx58(
5920
+ /* @__PURE__ */ jsx59(
5914
5921
  "path",
5915
5922
  {
5916
5923
  fillRule: "evenodd",
@@ -5927,7 +5934,7 @@ SubscriptIcon.displayName = "SubscriptIcon";
5927
5934
 
5928
5935
  // src/components/tiptap-icons/superscript-icon.tsx
5929
5936
  import { memo as memo26 } from "react";
5930
- import { jsx as jsx59, jsxs as jsxs35 } from "react/jsx-runtime";
5937
+ import { jsx as jsx60, jsxs as jsxs35 } from "react/jsx-runtime";
5931
5938
  var SuperscriptIcon = memo26(({ className, ...props }) => {
5932
5939
  return /* @__PURE__ */ jsxs35(
5933
5940
  "svg",
@@ -5940,7 +5947,7 @@ var SuperscriptIcon = memo26(({ className, ...props }) => {
5940
5947
  xmlns: "http://www.w3.org/2000/svg",
5941
5948
  ...props,
5942
5949
  children: [
5943
- /* @__PURE__ */ jsx59(
5950
+ /* @__PURE__ */ jsx60(
5944
5951
  "path",
5945
5952
  {
5946
5953
  fillRule: "evenodd",
@@ -5949,7 +5956,7 @@ var SuperscriptIcon = memo26(({ className, ...props }) => {
5949
5956
  fill: "currentColor"
5950
5957
  }
5951
5958
  ),
5952
- /* @__PURE__ */ jsx59(
5959
+ /* @__PURE__ */ jsx60(
5953
5960
  "path",
5954
5961
  {
5955
5962
  fillRule: "evenodd",
@@ -5958,7 +5965,7 @@ var SuperscriptIcon = memo26(({ className, ...props }) => {
5958
5965
  fill: "currentColor"
5959
5966
  }
5960
5967
  ),
5961
- /* @__PURE__ */ jsx59(
5968
+ /* @__PURE__ */ jsx60(
5962
5969
  "path",
5963
5970
  {
5964
5971
  fillRule: "evenodd",
@@ -5975,9 +5982,9 @@ SuperscriptIcon.displayName = "SuperscriptIcon";
5975
5982
 
5976
5983
  // src/components/tiptap-icons/underline-icon.tsx
5977
5984
  import { memo as memo27 } from "react";
5978
- import { jsx as jsx60 } from "react/jsx-runtime";
5985
+ import { jsx as jsx61 } from "react/jsx-runtime";
5979
5986
  var UnderlineIcon = memo27(({ className, ...props }) => {
5980
- return /* @__PURE__ */ jsx60(
5987
+ return /* @__PURE__ */ jsx61(
5981
5988
  "svg",
5982
5989
  {
5983
5990
  width: "24",
@@ -5987,7 +5994,7 @@ var UnderlineIcon = memo27(({ className, ...props }) => {
5987
5994
  fill: "currentColor",
5988
5995
  xmlns: "http://www.w3.org/2000/svg",
5989
5996
  ...props,
5990
- children: /* @__PURE__ */ jsx60(
5997
+ children: /* @__PURE__ */ jsx61(
5991
5998
  "path",
5992
5999
  {
5993
6000
  fillRule: "evenodd",
@@ -6090,12 +6097,12 @@ function useMark(config) {
6090
6097
 
6091
6098
  // src/components/tiptap-ui/text-align-button/text-align-button.tsx
6092
6099
  import { forwardRef as forwardRef17, useCallback as useCallback21 } from "react";
6093
- import { Fragment as Fragment9, jsx as jsx61, jsxs as jsxs36 } from "react/jsx-runtime";
6100
+ import { Fragment as Fragment9, jsx as jsx62, jsxs as jsxs36 } from "react/jsx-runtime";
6094
6101
  function TextAlignShortcutBadge({
6095
6102
  align,
6096
6103
  shortcutKeys = TEXT_ALIGN_SHORTCUT_KEYS[align]
6097
6104
  }) {
6098
- return /* @__PURE__ */ jsx61(Badge, { children: parseShortcutKeys({ shortcutKeys }) });
6105
+ return /* @__PURE__ */ jsx62(Badge, { children: parseShortcutKeys({ shortcutKeys }) });
6099
6106
  }
6100
6107
  var TextAlignButton = forwardRef17(
6101
6108
  ({
@@ -6137,7 +6144,7 @@ var TextAlignButton = forwardRef17(
6137
6144
  return null;
6138
6145
  }
6139
6146
  const RenderIcon = CustomIcon ?? Icon;
6140
- return /* @__PURE__ */ jsx61(
6147
+ return /* @__PURE__ */ jsx62(
6141
6148
  Button2,
6142
6149
  {
6143
6150
  type: "button",
@@ -6154,9 +6161,9 @@ var TextAlignButton = forwardRef17(
6154
6161
  ...buttonProps,
6155
6162
  ref,
6156
6163
  children: children ?? /* @__PURE__ */ jsxs36(Fragment9, { children: [
6157
- /* @__PURE__ */ jsx61(RenderIcon, { className: "tiptap-button-icon" }),
6158
- text && /* @__PURE__ */ jsx61("span", { className: "tiptap-button-text", children: text }),
6159
- showShortcut && /* @__PURE__ */ jsx61(
6164
+ /* @__PURE__ */ jsx62(RenderIcon, { className: "tiptap-button-icon" }),
6165
+ text && /* @__PURE__ */ jsx62("span", { className: "tiptap-button-text", children: text }),
6166
+ showShortcut && /* @__PURE__ */ jsx62(
6160
6167
  TextAlignShortcutBadge,
6161
6168
  {
6162
6169
  align,
@@ -6175,7 +6182,7 @@ import { useCallback as useCallback22, useEffect as useEffect16, useState as use
6175
6182
 
6176
6183
  // src/components/tiptap-icons/align-center-icon.tsx
6177
6184
  import { memo as memo28 } from "react";
6178
- import { jsx as jsx62, jsxs as jsxs37 } from "react/jsx-runtime";
6185
+ import { jsx as jsx63, jsxs as jsxs37 } from "react/jsx-runtime";
6179
6186
  var AlignCenterIcon = memo28(({ className, ...props }) => {
6180
6187
  return /* @__PURE__ */ jsxs37(
6181
6188
  "svg",
@@ -6188,7 +6195,7 @@ var AlignCenterIcon = memo28(({ className, ...props }) => {
6188
6195
  xmlns: "http://www.w3.org/2000/svg",
6189
6196
  ...props,
6190
6197
  children: [
6191
- /* @__PURE__ */ jsx62(
6198
+ /* @__PURE__ */ jsx63(
6192
6199
  "path",
6193
6200
  {
6194
6201
  fillRule: "evenodd",
@@ -6197,7 +6204,7 @@ var AlignCenterIcon = memo28(({ className, ...props }) => {
6197
6204
  fill: "currentColor"
6198
6205
  }
6199
6206
  ),
6200
- /* @__PURE__ */ jsx62(
6207
+ /* @__PURE__ */ jsx63(
6201
6208
  "path",
6202
6209
  {
6203
6210
  fillRule: "evenodd",
@@ -6206,7 +6213,7 @@ var AlignCenterIcon = memo28(({ className, ...props }) => {
6206
6213
  fill: "currentColor"
6207
6214
  }
6208
6215
  ),
6209
- /* @__PURE__ */ jsx62(
6216
+ /* @__PURE__ */ jsx63(
6210
6217
  "path",
6211
6218
  {
6212
6219
  fillRule: "evenodd",
@@ -6223,7 +6230,7 @@ AlignCenterIcon.displayName = "AlignCenterIcon";
6223
6230
 
6224
6231
  // src/components/tiptap-icons/align-justify-icon.tsx
6225
6232
  import { memo as memo29 } from "react";
6226
- import { jsx as jsx63, jsxs as jsxs38 } from "react/jsx-runtime";
6233
+ import { jsx as jsx64, jsxs as jsxs38 } from "react/jsx-runtime";
6227
6234
  var AlignJustifyIcon = memo29(({ className, ...props }) => {
6228
6235
  return /* @__PURE__ */ jsxs38(
6229
6236
  "svg",
@@ -6236,7 +6243,7 @@ var AlignJustifyIcon = memo29(({ className, ...props }) => {
6236
6243
  xmlns: "http://www.w3.org/2000/svg",
6237
6244
  ...props,
6238
6245
  children: [
6239
- /* @__PURE__ */ jsx63(
6246
+ /* @__PURE__ */ jsx64(
6240
6247
  "path",
6241
6248
  {
6242
6249
  fillRule: "evenodd",
@@ -6245,7 +6252,7 @@ var AlignJustifyIcon = memo29(({ className, ...props }) => {
6245
6252
  fill: "currentColor"
6246
6253
  }
6247
6254
  ),
6248
- /* @__PURE__ */ jsx63(
6255
+ /* @__PURE__ */ jsx64(
6249
6256
  "path",
6250
6257
  {
6251
6258
  fillRule: "evenodd",
@@ -6254,7 +6261,7 @@ var AlignJustifyIcon = memo29(({ className, ...props }) => {
6254
6261
  fill: "currentColor"
6255
6262
  }
6256
6263
  ),
6257
- /* @__PURE__ */ jsx63(
6264
+ /* @__PURE__ */ jsx64(
6258
6265
  "path",
6259
6266
  {
6260
6267
  fillRule: "evenodd",
@@ -6271,7 +6278,7 @@ AlignJustifyIcon.displayName = "AlignJustifyIcon";
6271
6278
 
6272
6279
  // src/components/tiptap-icons/align-left-icon.tsx
6273
6280
  import { memo as memo30 } from "react";
6274
- import { jsx as jsx64, jsxs as jsxs39 } from "react/jsx-runtime";
6281
+ import { jsx as jsx65, jsxs as jsxs39 } from "react/jsx-runtime";
6275
6282
  var AlignLeftIcon = memo30(({ className, ...props }) => {
6276
6283
  return /* @__PURE__ */ jsxs39(
6277
6284
  "svg",
@@ -6284,7 +6291,7 @@ var AlignLeftIcon = memo30(({ className, ...props }) => {
6284
6291
  xmlns: "http://www.w3.org/2000/svg",
6285
6292
  ...props,
6286
6293
  children: [
6287
- /* @__PURE__ */ jsx64(
6294
+ /* @__PURE__ */ jsx65(
6288
6295
  "path",
6289
6296
  {
6290
6297
  fillRule: "evenodd",
@@ -6293,7 +6300,7 @@ var AlignLeftIcon = memo30(({ className, ...props }) => {
6293
6300
  fill: "currentColor"
6294
6301
  }
6295
6302
  ),
6296
- /* @__PURE__ */ jsx64(
6303
+ /* @__PURE__ */ jsx65(
6297
6304
  "path",
6298
6305
  {
6299
6306
  fillRule: "evenodd",
@@ -6302,7 +6309,7 @@ var AlignLeftIcon = memo30(({ className, ...props }) => {
6302
6309
  fill: "currentColor"
6303
6310
  }
6304
6311
  ),
6305
- /* @__PURE__ */ jsx64(
6312
+ /* @__PURE__ */ jsx65(
6306
6313
  "path",
6307
6314
  {
6308
6315
  fillRule: "evenodd",
@@ -6319,7 +6326,7 @@ AlignLeftIcon.displayName = "AlignLeftIcon";
6319
6326
 
6320
6327
  // src/components/tiptap-icons/align-right-icon.tsx
6321
6328
  import { memo as memo31 } from "react";
6322
- import { jsx as jsx65, jsxs as jsxs40 } from "react/jsx-runtime";
6329
+ import { jsx as jsx66, jsxs as jsxs40 } from "react/jsx-runtime";
6323
6330
  var AlignRightIcon = memo31(({ className, ...props }) => {
6324
6331
  return /* @__PURE__ */ jsxs40(
6325
6332
  "svg",
@@ -6332,7 +6339,7 @@ var AlignRightIcon = memo31(({ className, ...props }) => {
6332
6339
  xmlns: "http://www.w3.org/2000/svg",
6333
6340
  ...props,
6334
6341
  children: [
6335
- /* @__PURE__ */ jsx65(
6342
+ /* @__PURE__ */ jsx66(
6336
6343
  "path",
6337
6344
  {
6338
6345
  fillRule: "evenodd",
@@ -6341,7 +6348,7 @@ var AlignRightIcon = memo31(({ className, ...props }) => {
6341
6348
  fill: "currentColor"
6342
6349
  }
6343
6350
  ),
6344
- /* @__PURE__ */ jsx65(
6351
+ /* @__PURE__ */ jsx66(
6345
6352
  "path",
6346
6353
  {
6347
6354
  fillRule: "evenodd",
@@ -6350,7 +6357,7 @@ var AlignRightIcon = memo31(({ className, ...props }) => {
6350
6357
  fill: "currentColor"
6351
6358
  }
6352
6359
  ),
6353
- /* @__PURE__ */ jsx65(
6360
+ /* @__PURE__ */ jsx66(
6354
6361
  "path",
6355
6362
  {
6356
6363
  fillRule: "evenodd",
@@ -6458,12 +6465,12 @@ function useTextAlign(config) {
6458
6465
 
6459
6466
  // src/components/tiptap-ui/undo-redo-button/undo-redo-button.tsx
6460
6467
  import { forwardRef as forwardRef18, useCallback as useCallback23 } from "react";
6461
- import { Fragment as Fragment10, jsx as jsx66, jsxs as jsxs41 } from "react/jsx-runtime";
6468
+ import { Fragment as Fragment10, jsx as jsx67, jsxs as jsxs41 } from "react/jsx-runtime";
6462
6469
  function HistoryShortcutBadge({
6463
6470
  action,
6464
6471
  shortcutKeys = UNDO_REDO_SHORTCUT_KEYS[action]
6465
6472
  }) {
6466
- return /* @__PURE__ */ jsx66(Badge, { children: parseShortcutKeys({ shortcutKeys }) });
6473
+ return /* @__PURE__ */ jsx67(Badge, { children: parseShortcutKeys({ shortcutKeys }) });
6467
6474
  }
6468
6475
  var UndoRedoButton = forwardRef18(
6469
6476
  ({
@@ -6495,7 +6502,7 @@ var UndoRedoButton = forwardRef18(
6495
6502
  if (!isVisible) {
6496
6503
  return null;
6497
6504
  }
6498
- return /* @__PURE__ */ jsx66(
6505
+ return /* @__PURE__ */ jsx67(
6499
6506
  Button2,
6500
6507
  {
6501
6508
  type: "button",
@@ -6510,9 +6517,9 @@ var UndoRedoButton = forwardRef18(
6510
6517
  ...buttonProps,
6511
6518
  ref,
6512
6519
  children: children ?? /* @__PURE__ */ jsxs41(Fragment10, { children: [
6513
- /* @__PURE__ */ jsx66(Icon, { className: "tiptap-button-icon" }),
6514
- text && /* @__PURE__ */ jsx66("span", { className: "tiptap-button-text", children: text }),
6515
- showShortcut && /* @__PURE__ */ jsx66(
6520
+ /* @__PURE__ */ jsx67(Icon, { className: "tiptap-button-icon" }),
6521
+ text && /* @__PURE__ */ jsx67("span", { className: "tiptap-button-text", children: text }),
6522
+ showShortcut && /* @__PURE__ */ jsx67(
6516
6523
  HistoryShortcutBadge,
6517
6524
  {
6518
6525
  action,
@@ -6531,9 +6538,9 @@ import { useCallback as useCallback24, useEffect as useEffect17, useState as use
6531
6538
 
6532
6539
  // src/components/tiptap-icons/redo2-icon.tsx
6533
6540
  import { memo as memo32 } from "react";
6534
- import { jsx as jsx67 } from "react/jsx-runtime";
6541
+ import { jsx as jsx68 } from "react/jsx-runtime";
6535
6542
  var Redo2Icon = memo32(({ className, ...props }) => {
6536
- return /* @__PURE__ */ jsx67(
6543
+ return /* @__PURE__ */ jsx68(
6537
6544
  "svg",
6538
6545
  {
6539
6546
  width: "24",
@@ -6543,7 +6550,7 @@ var Redo2Icon = memo32(({ className, ...props }) => {
6543
6550
  fill: "currentColor",
6544
6551
  xmlns: "http://www.w3.org/2000/svg",
6545
6552
  ...props,
6546
- children: /* @__PURE__ */ jsx67(
6553
+ children: /* @__PURE__ */ jsx68(
6547
6554
  "path",
6548
6555
  {
6549
6556
  fillRule: "evenodd",
@@ -6559,9 +6566,9 @@ Redo2Icon.displayName = "Redo2Icon";
6559
6566
 
6560
6567
  // src/components/tiptap-icons/undo2-icon.tsx
6561
6568
  import { memo as memo33 } from "react";
6562
- import { jsx as jsx68 } from "react/jsx-runtime";
6569
+ import { jsx as jsx69 } from "react/jsx-runtime";
6563
6570
  var Undo2Icon = memo33(({ className, ...props }) => {
6564
- return /* @__PURE__ */ jsx68(
6571
+ return /* @__PURE__ */ jsx69(
6565
6572
  "svg",
6566
6573
  {
6567
6574
  width: "24",
@@ -6571,7 +6578,7 @@ var Undo2Icon = memo33(({ className, ...props }) => {
6571
6578
  fill: "currentColor",
6572
6579
  xmlns: "http://www.w3.org/2000/svg",
6573
6580
  ...props,
6574
- children: /* @__PURE__ */ jsx68(
6581
+ children: /* @__PURE__ */ jsx69(
6575
6582
  "path",
6576
6583
  {
6577
6584
  fillRule: "evenodd",
@@ -6702,12 +6709,12 @@ import { ChevronDown } from "lucide-react";
6702
6709
  // src/components/ui/command.tsx
6703
6710
  import { Command as CommandPrimitive } from "cmdk";
6704
6711
  import { SearchIcon } from "lucide-react";
6705
- import { jsx as jsx69, jsxs as jsxs42 } from "react/jsx-runtime";
6712
+ import { jsx as jsx70, jsxs as jsxs42 } from "react/jsx-runtime";
6706
6713
  function Command({
6707
6714
  className,
6708
6715
  ...props
6709
6716
  }) {
6710
- return /* @__PURE__ */ jsx69(
6717
+ return /* @__PURE__ */ jsx70(
6711
6718
  CommandPrimitive,
6712
6719
  {
6713
6720
  "data-slot": "command",
@@ -6729,8 +6736,8 @@ function CommandInput({
6729
6736
  "data-slot": "command-input-wrapper",
6730
6737
  className: "flex h-9 items-center gap-2 border-b px-3",
6731
6738
  children: [
6732
- /* @__PURE__ */ jsx69(SearchIcon, { className: "size-4 shrink-0 opacity-50" }),
6733
- /* @__PURE__ */ jsx69(
6739
+ /* @__PURE__ */ jsx70(SearchIcon, { className: "size-4 shrink-0 opacity-50" }),
6740
+ /* @__PURE__ */ jsx70(
6734
6741
  CommandPrimitive.Input,
6735
6742
  {
6736
6743
  "data-slot": "command-input",
@@ -6749,7 +6756,7 @@ function CommandList({
6749
6756
  className,
6750
6757
  ...props
6751
6758
  }) {
6752
- return /* @__PURE__ */ jsx69(
6759
+ return /* @__PURE__ */ jsx70(
6753
6760
  CommandPrimitive.List,
6754
6761
  {
6755
6762
  "data-slot": "command-list",
@@ -6764,7 +6771,7 @@ function CommandList({
6764
6771
  function CommandEmpty({
6765
6772
  ...props
6766
6773
  }) {
6767
- return /* @__PURE__ */ jsx69(
6774
+ return /* @__PURE__ */ jsx70(
6768
6775
  CommandPrimitive.Empty,
6769
6776
  {
6770
6777
  "data-slot": "command-empty",
@@ -6777,7 +6784,7 @@ function CommandGroup({
6777
6784
  className,
6778
6785
  ...props
6779
6786
  }) {
6780
- return /* @__PURE__ */ jsx69(
6787
+ return /* @__PURE__ */ jsx70(
6781
6788
  CommandPrimitive.Group,
6782
6789
  {
6783
6790
  "data-slot": "command-group",
@@ -6793,7 +6800,7 @@ function CommandItem({
6793
6800
  className,
6794
6801
  ...props
6795
6802
  }) {
6796
- return /* @__PURE__ */ jsx69(
6803
+ return /* @__PURE__ */ jsx70(
6797
6804
  CommandPrimitive.Item,
6798
6805
  {
6799
6806
  "data-slot": "command-item",
@@ -6808,16 +6815,16 @@ function CommandItem({
6808
6815
 
6809
6816
  // src/components/ui/popover.tsx
6810
6817
  import * as PopoverPrimitive2 from "@radix-ui/react-popover";
6811
- import { jsx as jsx70 } from "react/jsx-runtime";
6818
+ import { jsx as jsx71 } from "react/jsx-runtime";
6812
6819
  function Popover2({
6813
6820
  ...props
6814
6821
  }) {
6815
- return /* @__PURE__ */ jsx70(PopoverPrimitive2.Root, { "data-slot": "popover", ...props });
6822
+ return /* @__PURE__ */ jsx71(PopoverPrimitive2.Root, { "data-slot": "popover", ...props });
6816
6823
  }
6817
6824
  function PopoverTrigger2({
6818
6825
  ...props
6819
6826
  }) {
6820
- return /* @__PURE__ */ jsx70(PopoverPrimitive2.Trigger, { "data-slot": "popover-trigger", ...props });
6827
+ return /* @__PURE__ */ jsx71(PopoverPrimitive2.Trigger, { "data-slot": "popover-trigger", ...props });
6821
6828
  }
6822
6829
  function PopoverContent2({
6823
6830
  className,
@@ -6825,7 +6832,7 @@ function PopoverContent2({
6825
6832
  sideOffset = 4,
6826
6833
  ...props
6827
6834
  }) {
6828
- return /* @__PURE__ */ jsx70(PopoverPrimitive2.Portal, { children: /* @__PURE__ */ jsx70(
6835
+ return /* @__PURE__ */ jsx71(PopoverPrimitive2.Portal, { children: /* @__PURE__ */ jsx71(
6829
6836
  PopoverPrimitive2.Content,
6830
6837
  {
6831
6838
  "data-slot": "popover-content",
@@ -6841,7 +6848,7 @@ function PopoverContent2({
6841
6848
  }
6842
6849
 
6843
6850
  // src/components/tiptap-ui/font-family-dropdown/font-family-dropdown.tsx
6844
- import { jsx as jsx71, jsxs as jsxs43 } from "react/jsx-runtime";
6851
+ import { jsx as jsx72, jsxs as jsxs43 } from "react/jsx-runtime";
6845
6852
  function FontFamilyDropdown() {
6846
6853
  const { editor } = useCurrentEditor3();
6847
6854
  const [open, setOpen] = useState25(false);
@@ -6863,18 +6870,18 @@ function FontFamilyDropdown() {
6863
6870
  }, 0);
6864
6871
  };
6865
6872
  return /* @__PURE__ */ jsxs43(Popover2, { open, onOpenChange: setOpen, children: [
6866
- /* @__PURE__ */ jsx71(PopoverTrigger2, { asChild: true, children: /* @__PURE__ */ jsxs43(
6873
+ /* @__PURE__ */ jsx72(PopoverTrigger2, { asChild: true, children: /* @__PURE__ */ jsxs43(
6867
6874
  Button,
6868
6875
  {
6869
6876
  variant: "outlineFontFamily",
6870
6877
  className: "\r\n min-w-[90px] h-7 px-2 flex items-center justify-between rounded-sm\r\n border-[#a3a3a8] text-[#a3a3a8]\r\n hover:border-[#000] hover:text-[#fff] transition-colors\r\n ",
6871
6878
  children: [
6872
6879
  currentFont,
6873
- /* @__PURE__ */ jsx71(ChevronDown, { className: "w-4 h-4" })
6880
+ /* @__PURE__ */ jsx72(ChevronDown, { className: "w-4 h-4" })
6874
6881
  ]
6875
6882
  }
6876
6883
  ) }),
6877
- /* @__PURE__ */ jsx71(
6884
+ /* @__PURE__ */ jsx72(
6878
6885
  PopoverContent2,
6879
6886
  {
6880
6887
  className: "w-[300px] p-0",
@@ -6886,11 +6893,11 @@ function FontFamilyDropdown() {
6886
6893
  }
6887
6894
  },
6888
6895
  children: /* @__PURE__ */ jsxs43(Command, { children: [
6889
- /* @__PURE__ */ jsx71("div", { className: "cmd-input-wrapper", children: /* @__PURE__ */ jsx71(CommandInput, { placeholder: "Search font..." }) }),
6896
+ /* @__PURE__ */ jsx72("div", { className: "cmd-input-wrapper", children: /* @__PURE__ */ jsx72(CommandInput, { placeholder: "Search font..." }) }),
6890
6897
  /* @__PURE__ */ jsxs43(CommandList, { className: "max-h-[220px]", children: [
6891
- /* @__PURE__ */ jsx71(CommandEmpty, { children: "No font found." }),
6898
+ /* @__PURE__ */ jsx72(CommandEmpty, { children: "No font found." }),
6892
6899
  /* @__PURE__ */ jsxs43(CommandGroup, { children: [
6893
- /* @__PURE__ */ jsx71(
6900
+ /* @__PURE__ */ jsx72(
6894
6901
  CommandItem,
6895
6902
  {
6896
6903
  onSelect: () => {
@@ -6913,7 +6920,7 @@ function FontFamilyDropdown() {
6913
6920
  },
6914
6921
  "default"
6915
6922
  ),
6916
- FONT_OPTIONS.map(({ label, cssFontFamily }) => /* @__PURE__ */ jsx71(
6923
+ FONT_OPTIONS.map(({ label, cssFontFamily }) => /* @__PURE__ */ jsx72(
6917
6924
  CommandItem,
6918
6925
  {
6919
6926
  onSelect: () => {
@@ -7024,12 +7031,12 @@ import { debounce } from "lodash";
7024
7031
 
7025
7032
  // src/components/ui/label.tsx
7026
7033
  import * as LabelPrimitive from "@radix-ui/react-label";
7027
- import { jsx as jsx72 } from "react/jsx-runtime";
7034
+ import { jsx as jsx73 } from "react/jsx-runtime";
7028
7035
  function Label2({
7029
7036
  className,
7030
7037
  ...props
7031
7038
  }) {
7032
- return /* @__PURE__ */ jsx72(
7039
+ return /* @__PURE__ */ jsx73(
7033
7040
  LabelPrimitive.Root,
7034
7041
  {
7035
7042
  "data-slot": "label",
@@ -7044,7 +7051,7 @@ function Label2({
7044
7051
 
7045
7052
  // src/components/tiptap-ui/color-picker/color-picker.tsx
7046
7053
  import React4 from "react";
7047
- import { jsx as jsx73, jsxs as jsxs44 } from "react/jsx-runtime";
7054
+ import { jsx as jsx74, jsxs as jsxs44 } from "react/jsx-runtime";
7048
7055
  function ColorPicker({ type = "text" }) {
7049
7056
  const { editor } = useCurrentEditor4();
7050
7057
  const [open, setOpen] = useState26(false);
@@ -7095,14 +7102,14 @@ function ColorPicker({ type = "text" }) {
7095
7102
  );
7096
7103
  if (!editor) return null;
7097
7104
  return /* @__PURE__ */ jsxs44(Popover2, { open, onOpenChange: (v) => setOpen(v), children: [
7098
- /* @__PURE__ */ jsx73(PopoverTrigger2, { asChild: true, children: /* @__PURE__ */ jsxs44(
7105
+ /* @__PURE__ */ jsx74(PopoverTrigger2, { asChild: true, children: /* @__PURE__ */ jsxs44(
7099
7106
  Button,
7100
7107
  {
7101
7108
  variant: "outlineFontFamily",
7102
7109
  className: "flex items-center h-7 rounded-sm px-2 border-[#a3a3a8] text-[#a3a3a8] hover:text-white",
7103
7110
  children: [
7104
7111
  "Color",
7105
- /* @__PURE__ */ jsx73(
7112
+ /* @__PURE__ */ jsx74(
7106
7113
  "span",
7107
7114
  {
7108
7115
  className: "w-3 h-3 ml-2 rounded-sm border border-black/20",
@@ -7119,9 +7126,9 @@ function ColorPicker({ type = "text" }) {
7119
7126
  align: "start",
7120
7127
  onClick: (e) => e.stopPropagation(),
7121
7128
  children: [
7122
- /* @__PURE__ */ jsx73(Label2, { className: "text-xs mb-2", children: type === "text" ? "Text Color" : "Highlight Color" }),
7129
+ /* @__PURE__ */ jsx74(Label2, { className: "text-xs mb-2", children: type === "text" ? "Text Color" : "Highlight Color" }),
7123
7130
  !showCustom && /* @__PURE__ */ jsxs44("div", { className: "flex flex-col gap-3", children: [
7124
- /* @__PURE__ */ jsx73("div", { className: "grid grid-cols-7 gap-1", children: GRADIENT_ROWS_70.map((c) => /* @__PURE__ */ jsx73(
7131
+ /* @__PURE__ */ jsx74("div", { className: "grid grid-cols-7 gap-1", children: GRADIENT_ROWS_70.map((c) => /* @__PURE__ */ jsx74(
7125
7132
  "div",
7126
7133
  {
7127
7134
  onClick: () => {
@@ -7133,7 +7140,7 @@ function ColorPicker({ type = "text" }) {
7133
7140
  },
7134
7141
  c
7135
7142
  )) }),
7136
- /* @__PURE__ */ jsx73(
7143
+ /* @__PURE__ */ jsx74(
7137
7144
  Button,
7138
7145
  {
7139
7146
  size: "sm",
@@ -7157,7 +7164,7 @@ function ColorPicker({ type = "text" }) {
7157
7164
  onPointerUp: (e) => e.stopPropagation(),
7158
7165
  onClick: (e) => e.stopPropagation(),
7159
7166
  children: [
7160
- /* @__PURE__ */ jsx73(
7167
+ /* @__PURE__ */ jsx74(
7161
7168
  HexColorPicker,
7162
7169
  {
7163
7170
  color: tempHex,
@@ -7169,7 +7176,7 @@ function ColorPicker({ type = "text" }) {
7169
7176
  }
7170
7177
  ),
7171
7178
  /* @__PURE__ */ jsxs44("div", { className: "flex gap-2 items-center", children: [
7172
- /* @__PURE__ */ jsx73(
7179
+ /* @__PURE__ */ jsx74(
7173
7180
  "input",
7174
7181
  {
7175
7182
  value: tempHex,
@@ -7180,7 +7187,7 @@ function ColorPicker({ type = "text" }) {
7180
7187
  className: "w-full px-2 py-1 border rounded text-sm"
7181
7188
  }
7182
7189
  ),
7183
- /* @__PURE__ */ jsx73(
7190
+ /* @__PURE__ */ jsx74(
7184
7191
  Button,
7185
7192
  {
7186
7193
  size: "sm",
@@ -7193,7 +7200,7 @@ function ColorPicker({ type = "text" }) {
7193
7200
  }
7194
7201
  )
7195
7202
  ] }),
7196
- /* @__PURE__ */ jsx73("div", { className: "flex justify-end mt-2", children: /* @__PURE__ */ jsx73(
7203
+ /* @__PURE__ */ jsx74("div", { className: "flex justify-end mt-2", children: /* @__PURE__ */ jsx74(
7197
7204
  Button,
7198
7205
  {
7199
7206
  size: "sm",
@@ -7221,7 +7228,7 @@ function ColorPicker({ type = "text" }) {
7221
7228
  import { useState as useState27 } from "react";
7222
7229
  import { useCurrentEditor as useCurrentEditor5 } from "@tiptap/react";
7223
7230
  import { FiTable } from "react-icons/fi";
7224
- import { jsx as jsx74, jsxs as jsxs45 } from "react/jsx-runtime";
7231
+ import { jsx as jsx75, jsxs as jsxs45 } from "react/jsx-runtime";
7225
7232
  function TableDropdownMenu() {
7226
7233
  const { editor } = useCurrentEditor5();
7227
7234
  const [open, setOpen] = useState27(false);
@@ -7264,20 +7271,20 @@ function TableDropdownMenu() {
7264
7271
  setOpen(false);
7265
7272
  };
7266
7273
  return /* @__PURE__ */ jsxs45(Popover2, { open, onOpenChange: setOpen, children: [
7267
- /* @__PURE__ */ jsx74(PopoverTrigger2, { asChild: true, children: /* @__PURE__ */ jsx74(Button, { variant: "tableButton", size: "sm", children: /* @__PURE__ */ jsx74(FiTable, { size: 16, color: "#a3a3a8" }) }) }),
7268
- /* @__PURE__ */ jsx74(PopoverContent2, { className: "w-[220px] p-0", align: "start", children: /* @__PURE__ */ jsxs45(Command, { children: [
7269
- /* @__PURE__ */ jsx74(CommandInput, { placeholder: "Search table actions..." }),
7270
- /* @__PURE__ */ jsx74(CommandList, { className: "max-h-[260px]", children: /* @__PURE__ */ jsxs45(CommandGroup, { children: [
7271
- /* @__PURE__ */ jsx74(CommandItem, { onSelect: () => handleAction("insert"), children: "Insert Table" }),
7272
- /* @__PURE__ */ jsx74(CommandItem, { onSelect: () => handleAction("addColBefore"), children: "Add Column Before" }),
7273
- /* @__PURE__ */ jsx74(CommandItem, { onSelect: () => handleAction("addColAfter"), children: "Add Column After" }),
7274
- /* @__PURE__ */ jsx74(CommandItem, { onSelect: () => handleAction("delCol"), children: "Delete Column" }),
7275
- /* @__PURE__ */ jsx74(CommandItem, { onSelect: () => handleAction("addRowBefore"), children: "Add Row Before" }),
7276
- /* @__PURE__ */ jsx74(CommandItem, { onSelect: () => handleAction("addRowAfter"), children: "Add Row After" }),
7277
- /* @__PURE__ */ jsx74(CommandItem, { onSelect: () => handleAction("delRow"), children: "Delete Row" }),
7278
- /* @__PURE__ */ jsx74(CommandItem, { onSelect: () => handleAction("merge"), children: "Merge Cells" }),
7279
- /* @__PURE__ */ jsx74(CommandItem, { onSelect: () => handleAction("split"), children: "Split Cells" }),
7280
- /* @__PURE__ */ jsx74(CommandItem, { onSelect: () => handleAction("deleteTable"), children: "Delete Table" })
7274
+ /* @__PURE__ */ jsx75(PopoverTrigger2, { asChild: true, children: /* @__PURE__ */ jsx75(Button, { variant: "tableButton", size: "sm", children: /* @__PURE__ */ jsx75(FiTable, { size: 16, color: "#a3a3a8" }) }) }),
7275
+ /* @__PURE__ */ jsx75(PopoverContent2, { className: "w-[220px] p-0", align: "start", children: /* @__PURE__ */ jsxs45(Command, { children: [
7276
+ /* @__PURE__ */ jsx75(CommandInput, { placeholder: "Search table actions..." }),
7277
+ /* @__PURE__ */ jsx75(CommandList, { className: "max-h-[260px]", children: /* @__PURE__ */ jsxs45(CommandGroup, { children: [
7278
+ /* @__PURE__ */ jsx75(CommandItem, { onSelect: () => handleAction("insert"), children: "Insert Table" }),
7279
+ /* @__PURE__ */ jsx75(CommandItem, { onSelect: () => handleAction("addColBefore"), children: "Add Column Before" }),
7280
+ /* @__PURE__ */ jsx75(CommandItem, { onSelect: () => handleAction("addColAfter"), children: "Add Column After" }),
7281
+ /* @__PURE__ */ jsx75(CommandItem, { onSelect: () => handleAction("delCol"), children: "Delete Column" }),
7282
+ /* @__PURE__ */ jsx75(CommandItem, { onSelect: () => handleAction("addRowBefore"), children: "Add Row Before" }),
7283
+ /* @__PURE__ */ jsx75(CommandItem, { onSelect: () => handleAction("addRowAfter"), children: "Add Row After" }),
7284
+ /* @__PURE__ */ jsx75(CommandItem, { onSelect: () => handleAction("delRow"), children: "Delete Row" }),
7285
+ /* @__PURE__ */ jsx75(CommandItem, { onSelect: () => handleAction("merge"), children: "Merge Cells" }),
7286
+ /* @__PURE__ */ jsx75(CommandItem, { onSelect: () => handleAction("split"), children: "Split Cells" }),
7287
+ /* @__PURE__ */ jsx75(CommandItem, { onSelect: () => handleAction("deleteTable"), children: "Delete Table" })
7281
7288
  ] }) })
7282
7289
  ] }) })
7283
7290
  ] });
@@ -7285,9 +7292,9 @@ function TableDropdownMenu() {
7285
7292
 
7286
7293
  // src/components/tiptap-icons/arrow-left-icon.tsx
7287
7294
  import { memo as memo34 } from "react";
7288
- import { jsx as jsx75 } from "react/jsx-runtime";
7295
+ import { jsx as jsx76 } from "react/jsx-runtime";
7289
7296
  var ArrowLeftIcon = memo34(({ className, ...props }) => {
7290
- return /* @__PURE__ */ jsx75(
7297
+ return /* @__PURE__ */ jsx76(
7291
7298
  "svg",
7292
7299
  {
7293
7300
  width: "24",
@@ -7297,7 +7304,7 @@ var ArrowLeftIcon = memo34(({ className, ...props }) => {
7297
7304
  fill: "currentColor",
7298
7305
  xmlns: "http://www.w3.org/2000/svg",
7299
7306
  ...props,
7300
- children: /* @__PURE__ */ jsx75(
7307
+ children: /* @__PURE__ */ jsx76(
7301
7308
  "path",
7302
7309
  {
7303
7310
  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",
@@ -7523,62 +7530,62 @@ function useCursorVisibility({
7523
7530
  }
7524
7531
 
7525
7532
  // src/components/tiptap-templates/simple/simple-editor.tsx
7526
- import { Fragment as Fragment11, jsx as jsx76, jsxs as jsxs46 } from "react/jsx-runtime";
7533
+ import { Fragment as Fragment11, jsx as jsx77, jsxs as jsxs46 } from "react/jsx-runtime";
7527
7534
  var MainToolbarContent = ({
7528
7535
  onHighlighterClick,
7529
7536
  onLinkClick,
7530
7537
  isMobile
7531
7538
  }) => {
7532
7539
  return /* @__PURE__ */ jsxs46(Fragment11, { children: [
7533
- /* @__PURE__ */ jsx76(Spacer, {}),
7534
- /* @__PURE__ */ jsx76(FontFamilyDropdown, {}),
7535
- /* @__PURE__ */ jsx76(ColorPicker, { type: "text" }),
7540
+ /* @__PURE__ */ jsx77(Spacer, {}),
7541
+ /* @__PURE__ */ jsx77(FontFamilyDropdown, {}),
7542
+ /* @__PURE__ */ jsx77(ColorPicker, { type: "text" }),
7536
7543
  /* @__PURE__ */ jsxs46(ToolbarGroup, { children: [
7537
- /* @__PURE__ */ jsx76(MarkButton, { type: "bold" }),
7538
- /* @__PURE__ */ jsx76(MarkButton, { type: "italic" }),
7539
- /* @__PURE__ */ jsx76(MarkButton, { type: "strike" }),
7540
- /* @__PURE__ */ jsx76(MarkButton, { type: "code" }),
7541
- /* @__PURE__ */ jsx76(MarkButton, { type: "underline" }),
7542
- /* @__PURE__ */ jsx76(UndoRedoButton, { action: "undo" }),
7543
- /* @__PURE__ */ jsx76(UndoRedoButton, { action: "redo" })
7544
+ /* @__PURE__ */ jsx77(MarkButton, { type: "bold" }),
7545
+ /* @__PURE__ */ jsx77(MarkButton, { type: "italic" }),
7546
+ /* @__PURE__ */ jsx77(MarkButton, { type: "strike" }),
7547
+ /* @__PURE__ */ jsx77(MarkButton, { type: "code" }),
7548
+ /* @__PURE__ */ jsx77(MarkButton, { type: "underline" }),
7549
+ /* @__PURE__ */ jsx77(UndoRedoButton, { action: "undo" }),
7550
+ /* @__PURE__ */ jsx77(UndoRedoButton, { action: "redo" })
7544
7551
  ] }),
7545
- /* @__PURE__ */ jsx76(ToolbarSeparator, {}),
7552
+ /* @__PURE__ */ jsx77(ToolbarSeparator, {}),
7546
7553
  /* @__PURE__ */ jsxs46(ToolbarGroup, { children: [
7547
- /* @__PURE__ */ jsx76(TextAlignButton, { align: "left" }),
7548
- /* @__PURE__ */ jsx76(TextAlignButton, { align: "center" }),
7549
- /* @__PURE__ */ jsx76(TextAlignButton, { align: "right" }),
7550
- /* @__PURE__ */ jsx76(TextAlignButton, { align: "justify" })
7554
+ /* @__PURE__ */ jsx77(TextAlignButton, { align: "left" }),
7555
+ /* @__PURE__ */ jsx77(TextAlignButton, { align: "center" }),
7556
+ /* @__PURE__ */ jsx77(TextAlignButton, { align: "right" }),
7557
+ /* @__PURE__ */ jsx77(TextAlignButton, { align: "justify" })
7551
7558
  ] }),
7552
- /* @__PURE__ */ jsx76(ToolbarSeparator, {}),
7559
+ /* @__PURE__ */ jsx77(ToolbarSeparator, {}),
7553
7560
  /* @__PURE__ */ jsxs46(ToolbarGroup, { children: [
7554
- /* @__PURE__ */ jsx76(HeadingDropdownMenu, { levels: [1, 2, 3, 4], portal: isMobile }),
7555
- /* @__PURE__ */ jsx76(
7561
+ /* @__PURE__ */ jsx77(HeadingDropdownMenu, { levels: [1, 2, 3, 4], portal: isMobile }),
7562
+ /* @__PURE__ */ jsx77(
7556
7563
  ListDropdownMenu,
7557
7564
  {
7558
7565
  types: ["bulletList", "orderedList", "taskList"],
7559
7566
  portal: isMobile
7560
7567
  }
7561
7568
  ),
7562
- /* @__PURE__ */ jsx76(BlockquoteButton, {})
7569
+ /* @__PURE__ */ jsx77(BlockquoteButton, {})
7563
7570
  ] }),
7564
- /* @__PURE__ */ jsx76(ToolbarGroup, { children: /* @__PURE__ */ jsx76(TableDropdownMenu, {}) }),
7565
- /* @__PURE__ */ jsx76(ToolbarGroup, {}),
7566
- /* @__PURE__ */ jsx76(ToolbarSeparator, {}),
7567
- /* @__PURE__ */ jsx76(ToolbarGroup, { children: /* @__PURE__ */ jsx76(ImageUploadButton, { text: "Add" }) }),
7568
- /* @__PURE__ */ jsx76(Spacer, {}),
7569
- isMobile && /* @__PURE__ */ jsx76(ToolbarSeparator, {})
7571
+ /* @__PURE__ */ jsx77(ToolbarGroup, { children: /* @__PURE__ */ jsx77(TableDropdownMenu, {}) }),
7572
+ /* @__PURE__ */ jsx77(ToolbarGroup, {}),
7573
+ /* @__PURE__ */ jsx77(ToolbarSeparator, {}),
7574
+ /* @__PURE__ */ jsx77(ToolbarGroup, { children: /* @__PURE__ */ jsx77(ImageUploadButton, { text: "Add" }) }),
7575
+ /* @__PURE__ */ jsx77(Spacer, {}),
7576
+ isMobile && /* @__PURE__ */ jsx77(ToolbarSeparator, {})
7570
7577
  ] });
7571
7578
  };
7572
7579
  var MobileToolbarContent = ({
7573
7580
  type,
7574
7581
  onBack
7575
7582
  }) => /* @__PURE__ */ jsxs46(Fragment11, { children: [
7576
- /* @__PURE__ */ jsx76(ToolbarGroup, { children: /* @__PURE__ */ jsxs46(Button2, { "data-style": "ghost", onClick: onBack, children: [
7577
- /* @__PURE__ */ jsx76(ArrowLeftIcon, { className: "tiptap-button-icon" }),
7578
- type === "highlighter" ? /* @__PURE__ */ jsx76(HighlighterIcon, { className: "tiptap-button-icon" }) : /* @__PURE__ */ jsx76(LinkIcon, { className: "tiptap-button-icon" })
7583
+ /* @__PURE__ */ jsx77(ToolbarGroup, { children: /* @__PURE__ */ jsxs46(Button2, { "data-style": "ghost", onClick: onBack, children: [
7584
+ /* @__PURE__ */ jsx77(ArrowLeftIcon, { className: "tiptap-button-icon" }),
7585
+ type === "highlighter" ? /* @__PURE__ */ jsx77(HighlighterIcon, { className: "tiptap-button-icon" }) : /* @__PURE__ */ jsx77(LinkIcon, { className: "tiptap-button-icon" })
7579
7586
  ] }) }),
7580
- /* @__PURE__ */ jsx76(ToolbarSeparator, {}),
7581
- type === "highlighter" ? /* @__PURE__ */ jsx76(ColorHighlightPopoverContent, {}) : /* @__PURE__ */ jsx76(LinkContent, {})
7587
+ /* @__PURE__ */ jsx77(ToolbarSeparator, {}),
7588
+ type === "highlighter" ? /* @__PURE__ */ jsx77(ColorHighlightPopoverContent, {}) : /* @__PURE__ */ jsx77(LinkContent, {})
7582
7589
  ] });
7583
7590
  function SimpleEditor() {
7584
7591
  const { setEditorContent, debouncedSave } = useEditorBridge();
@@ -7688,8 +7695,8 @@ function SimpleEditor() {
7688
7695
  window.visualViewport?.removeEventListener("scroll", updatePosition);
7689
7696
  };
7690
7697
  }, []);
7691
- return /* @__PURE__ */ jsx76("div", { className: "simple-editor-wrapper", children: /* @__PURE__ */ jsxs46(EditorContext.Provider, { value: { editor }, children: [
7692
- /* @__PURE__ */ jsx76(
7698
+ return /* @__PURE__ */ jsx77("div", { className: "simple-editor-wrapper", children: /* @__PURE__ */ jsxs46(EditorContext.Provider, { value: { editor }, children: [
7699
+ /* @__PURE__ */ jsx77(
7693
7700
  Toolbar,
7694
7701
  {
7695
7702
  ref: toolbarRef,
@@ -7698,14 +7705,14 @@ function SimpleEditor() {
7698
7705
  bottom: `calc(100% - ${height - rect.y}px)`
7699
7706
  } : {}
7700
7707
  },
7701
- children: mobileView === "main" ? /* @__PURE__ */ jsx76(
7708
+ children: mobileView === "main" ? /* @__PURE__ */ jsx77(
7702
7709
  MainToolbarContent,
7703
7710
  {
7704
7711
  onHighlighterClick: () => setMobileView("highlighter"),
7705
7712
  onLinkClick: () => setMobileView("link"),
7706
7713
  isMobile
7707
7714
  }
7708
- ) : /* @__PURE__ */ jsx76(
7715
+ ) : /* @__PURE__ */ jsx77(
7709
7716
  MobileToolbarContent,
7710
7717
  {
7711
7718
  type: mobileView === "highlighter" ? "highlighter" : "link",
@@ -7714,14 +7721,14 @@ function SimpleEditor() {
7714
7721
  )
7715
7722
  }
7716
7723
  ),
7717
- /* @__PURE__ */ jsx76(
7724
+ /* @__PURE__ */ jsx77(
7718
7725
  EditorContent,
7719
7726
  {
7720
7727
  editor,
7721
7728
  role: "presentation",
7722
7729
  autoFocus: true,
7723
7730
  className: "simple-editor-content",
7724
- children: editor && /* @__PURE__ */ jsx76(BubbleMenuInline, {})
7731
+ children: editor && /* @__PURE__ */ jsx77(BubbleMenuInline, {})
7725
7732
  }
7726
7733
  )
7727
7734
  ] }) });
@@ -7729,9 +7736,9 @@ function SimpleEditor() {
7729
7736
 
7730
7737
  // src/components/editor/editor.tsx
7731
7738
  import clsx2 from "clsx";
7732
- import { jsx as jsx77 } from "react/jsx-runtime";
7739
+ import { jsx as jsx78 } from "react/jsx-runtime";
7733
7740
  function Editor({ onChange, className, style, onTabsChange, initialTabs }) {
7734
- return /* @__PURE__ */ jsx77(
7741
+ return /* @__PURE__ */ jsx78(
7735
7742
  "div",
7736
7743
  {
7737
7744
  className: clsx2(
@@ -7739,7 +7746,7 @@ function Editor({ onChange, className, style, onTabsChange, initialTabs }) {
7739
7746
  className
7740
7747
  ),
7741
7748
  style,
7742
- children: /* @__PURE__ */ jsx77(EditorShell, { children: /* @__PURE__ */ jsx77(EditorLayout, { onChange, initialTabs, onTabsChange, children: /* @__PURE__ */ jsx77(SimpleEditor, {}) }) })
7749
+ children: /* @__PURE__ */ jsx78(EditorShell, { children: /* @__PURE__ */ jsx78(EditorLayout, { onChange, initialTabs, onTabsChange, children: /* @__PURE__ */ jsx78(SimpleEditor, {}) }) })
7743
7750
  }
7744
7751
  );
7745
7752
  }
@@ -7827,6 +7834,7 @@ export {
7827
7834
  EditorBridgeProvider,
7828
7835
  FONT_OPTIONS,
7829
7836
  GRADIENT_ROWS_70,
7837
+ ThemeProvider,
7830
7838
  cn,
7831
7839
  fileToBase64,
7832
7840
  loadActiveTab,