@editorcn/editor 0.5.0 → 0.5.2

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.cjs CHANGED
@@ -43,12 +43,12 @@ __export(index_exports, {
43
43
  module.exports = __toCommonJS(index_exports);
44
44
 
45
45
  // src/rte-text-editor.tsx
46
- var import_react21 = require("react");
46
+ var import_react22 = require("react");
47
47
 
48
48
  // src/bubble-menu/index.tsx
49
49
  var import_core = require("@tiptap/core");
50
50
  var import_menus = require("@tiptap/react/menus");
51
- var import_react4 = require("react");
51
+ var import_react5 = require("react");
52
52
 
53
53
  // src/ui/button.tsx
54
54
  var import_button = require("@base-ui/react/button");
@@ -577,6 +577,7 @@ RteDropdownIcon.displayName = "RteDropdownIcon";
577
577
  // src/ui/toggle.tsx
578
578
  var import_toggle = require("@base-ui/react/toggle");
579
579
  var import_class_variance_authority2 = require("class-variance-authority");
580
+ var import_react2 = require("react");
580
581
  var import_jsx_runtime15 = require("react/jsx-runtime");
581
582
  var toggleVariants = (0, import_class_variance_authority2.cva)(
582
583
  "group/toggle inline-flex items-center justify-center gap-1 rounded-md text-xs font-medium whitespace-nowrap transition-all outline-none hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-pressed:bg-muted data-[state=on]:bg-muted dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
@@ -598,19 +599,16 @@ var toggleVariants = (0, import_class_variance_authority2.cva)(
598
599
  }
599
600
  }
600
601
  );
601
- var Toggle = ({
602
- className,
603
- variant = "default",
604
- size = "default",
605
- ...props
606
- }) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
602
+ var Toggle = (0, import_react2.forwardRef)(({ className, variant = "default", size = "default", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
607
603
  import_toggle.Toggle,
608
604
  {
605
+ ref,
609
606
  "data-slot": "toggle",
610
607
  className: cn(toggleVariants({ className, size, variant })),
611
608
  ...props
612
609
  }
613
- );
610
+ ));
611
+ Toggle.displayName = "Toggle";
614
612
 
615
613
  // src/ui/tooltip.tsx
616
614
  var import_tooltip = require("@base-ui/react/tooltip");
@@ -672,10 +670,10 @@ var TooltipHost = ({
672
670
  ] });
673
671
 
674
672
  // src/bubble-menu/color-selector.tsx
675
- var import_react3 = require("react");
673
+ var import_react4 = require("react");
676
674
 
677
675
  // src/bubble-menu/utils.ts
678
- var import_react2 = require("react");
676
+ var import_react3 = require("react");
679
677
  var defaultEqual = (a, b) => a === b;
680
678
  var shallowEqual = (a, b) => {
681
679
  if (a === b) {
@@ -692,16 +690,16 @@ var shallowEqual = (a, b) => {
692
690
  return ak.every((k) => a[k] === b[k]);
693
691
  };
694
692
  var useEditorState = (editor, selector, isEqual = defaultEqual) => {
695
- const selectorRef = (0, import_react2.useRef)(selector);
696
- const isEqualRef = (0, import_react2.useRef)(isEqual);
697
- (0, import_react2.useEffect)(() => {
693
+ const selectorRef = (0, import_react3.useRef)(selector);
694
+ const isEqualRef = (0, import_react3.useRef)(isEqual);
695
+ (0, import_react3.useEffect)(() => {
698
696
  selectorRef.current = selector;
699
697
  isEqualRef.current = isEqual;
700
698
  });
701
- const snapshotRef = (0, import_react2.useRef)({
699
+ const snapshotRef = (0, import_react3.useRef)({
702
700
  value: editor ? selector(editor) : void 0
703
701
  });
704
- const updateSnapshot = (0, import_react2.useCallback)(() => {
702
+ const updateSnapshot = (0, import_react3.useCallback)(() => {
705
703
  if (!editor) {
706
704
  return;
707
705
  }
@@ -711,7 +709,7 @@ var useEditorState = (editor, selector, isEqual = defaultEqual) => {
711
709
  }
712
710
  snapshotRef.current = { value: next };
713
711
  }, [editor]);
714
- const subscribe = (0, import_react2.useCallback)(
712
+ const subscribe = (0, import_react3.useCallback)(
715
713
  (onStoreChange) => {
716
714
  if (!editor) {
717
715
  return () => {
@@ -730,8 +728,8 @@ var useEditorState = (editor, selector, isEqual = defaultEqual) => {
730
728
  },
731
729
  [editor, updateSnapshot]
732
730
  );
733
- const getSnapshot = (0, import_react2.useCallback)(() => snapshotRef.current.value, []);
734
- return (0, import_react2.useSyncExternalStore)(subscribe, getSnapshot, getSnapshot);
731
+ const getSnapshot = (0, import_react3.useCallback)(() => snapshotRef.current.value, []);
732
+ return (0, import_react3.useSyncExternalStore)(subscribe, getSnapshot, getSnapshot);
735
733
  };
736
734
 
737
735
  // src/bubble-menu/color-selector.tsx
@@ -784,8 +782,8 @@ var HIGHLIGHT_COLORS = [
784
782
  { color: "#bbf7d0", label: "Green" }
785
783
  ];
786
784
  var ColorSelector = ({ editor }) => {
787
- const [open, setOpen] = (0, import_react3.useState)(false);
788
- const [recent, setRecent] = (0, import_react3.useState)(() => readRecentColors());
785
+ const [open, setOpen] = (0, import_react4.useState)(false);
786
+ const [recent, setRecent] = (0, import_react4.useState)(() => readRecentColors());
789
787
  const { highlightColor, textColor } = useEditorState(
790
788
  editor,
791
789
  (ed) => ({
@@ -1020,7 +1018,7 @@ var TextButtons = ({ editor }) => {
1020
1018
  // src/bubble-menu/index.tsx
1021
1019
  var import_jsx_runtime19 = require("react/jsx-runtime");
1022
1020
  var BubbleMenu = ({ editor }) => {
1023
- const shouldShow = (0, import_react4.useCallback)(
1021
+ const shouldShow = (0, import_react5.useCallback)(
1024
1022
  ({
1025
1023
  editor: ed,
1026
1024
  state
@@ -1052,6 +1050,7 @@ var BubbleMenu = ({ editor }) => {
1052
1050
  return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1053
1051
  import_menus.BubbleMenu,
1054
1052
  {
1053
+ className: "z-50",
1055
1054
  editor,
1056
1055
  options: { offset: 8, placement: "top" },
1057
1056
  shouldShow,
@@ -1065,14 +1064,14 @@ var BubbleMenu = ({ editor }) => {
1065
1064
  };
1066
1065
 
1067
1066
  // src/controls/rte-control.tsx
1068
- var import_react6 = require("@tiptap/react");
1069
- var import_react7 = require("react");
1067
+ var import_react7 = require("@tiptap/react");
1068
+ var import_react8 = require("react");
1070
1069
 
1071
1070
  // src/rte-context.ts
1072
- var import_react5 = require("react");
1073
- var RichTextEditorContext = (0, import_react5.createContext)(null);
1071
+ var import_react6 = require("react");
1072
+ var RichTextEditorContext = (0, import_react6.createContext)(null);
1074
1073
  var useRichTextEditorContext = () => {
1075
- const context = (0, import_react5.useContext)(RichTextEditorContext);
1074
+ const context = (0, import_react6.useContext)(RichTextEditorContext);
1076
1075
  if (!context) {
1077
1076
  throw new Error(
1078
1077
  "useRichTextEditorContext must be used within RichTextEditor"
@@ -1085,45 +1084,69 @@ var useRichTextEditorContext = () => {
1085
1084
  var import_jsx_runtime20 = require("react/jsx-runtime");
1086
1085
  var RichTextEditorTooltip = ({
1087
1086
  children,
1087
+ id,
1088
1088
  label
1089
1089
  }) => {
1090
- const tooltip = (0, import_react7.useContext)(RichTextEditorContext)?.tooltip;
1090
+ const tooltip = (0, import_react8.useContext)(RichTextEditorContext)?.tooltip;
1091
1091
  if (!tooltip) {
1092
- return children;
1092
+ return id ? (0, import_react8.cloneElement)(children, { id }) : children;
1093
1093
  }
1094
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(TooltipTrigger, { handle: tooltip, payload: label, render: children });
1095
- };
1096
- var RichTextEditorControl = ({
1097
- active = false,
1098
- interactive: _interactive = true,
1099
- className,
1100
- children,
1101
- onMouseDown,
1102
- onClick,
1103
- disabled,
1104
- ...props
1105
- }) => {
1106
- const toggle = /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1107
- Toggle,
1094
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1095
+ TooltipTrigger,
1108
1096
  {
1109
- size: "sm",
1110
- pressed: active,
1111
- disabled,
1112
- "aria-label": props["aria-label"],
1113
- className: cn(
1114
- "rte-control-button inline-flex h-8 min-w-8 items-center justify-center rounded-md p-0 transition-[background-color,color,scale] duration-[150ms,150ms,100ms] ease-[ease-out] active:scale-96",
1115
- className
1116
- ),
1117
- onMouseDown: (e) => {
1118
- e.preventDefault();
1119
- onMouseDown?.(e);
1120
- },
1121
- onPressedChange: () => onClick?.({}),
1122
- children
1097
+ handle: tooltip,
1098
+ payload: label,
1099
+ render: children,
1100
+ ...id && { id }
1123
1101
  }
1124
1102
  );
1125
- return props.title ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(RichTextEditorTooltip, { label: props.title, children: toggle }) : toggle;
1126
1103
  };
1104
+ var triggerKeys = [
1105
+ "aria-controls",
1106
+ "aria-expanded",
1107
+ "aria-haspopup"
1108
+ ];
1109
+ var triggerProps = (props) => Object.fromEntries(
1110
+ triggerKeys.flatMap(
1111
+ (key) => props[key] === void 0 ? [] : [[key, props[key]]]
1112
+ )
1113
+ );
1114
+ var RichTextEditorControl = (0, import_react8.forwardRef)(
1115
+ ({
1116
+ active = false,
1117
+ interactive: _interactive = true,
1118
+ className,
1119
+ children,
1120
+ onMouseDown,
1121
+ onClick,
1122
+ disabled,
1123
+ ...props
1124
+ }, ref) => {
1125
+ const toggle = /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1126
+ Toggle,
1127
+ {
1128
+ ref,
1129
+ ...triggerProps(props),
1130
+ ...!props.title && props.id && { id: props.id },
1131
+ size: "sm",
1132
+ pressed: active,
1133
+ disabled,
1134
+ "aria-label": props["aria-label"],
1135
+ className: cn(
1136
+ "rte-control-button inline-flex h-8 min-w-8 items-center justify-center rounded-md p-0 transition-[background-color,color,scale] duration-[150ms,150ms,100ms] ease-[ease-out] active:scale-96",
1137
+ className
1138
+ ),
1139
+ onMouseDown: (e) => {
1140
+ e.preventDefault();
1141
+ onMouseDown?.(e);
1142
+ },
1143
+ onClick,
1144
+ children
1145
+ }
1146
+ );
1147
+ return props.title ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(RichTextEditorTooltip, { id: props.id, label: props.title, children: toggle }) : toggle;
1148
+ }
1149
+ );
1127
1150
  var resolveIsActive = (editor, config) => {
1128
1151
  if (!editor || !config) {
1129
1152
  return false;
@@ -1151,7 +1174,7 @@ var createControl = ({
1151
1174
  const { editor, labels, icons } = useRichTextEditorContext();
1152
1175
  const ariaLabel = labels[label];
1153
1176
  const selector = createSelector(isActive, isDisabled);
1154
- (0, import_react6.useEditorState)({ editor: editor ?? null, selector });
1177
+ (0, import_react7.useEditorState)({ editor: editor ?? null, selector });
1155
1178
  const { active, disabled } = selector({ editor: editor ?? null });
1156
1179
  return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1157
1180
  RichTextEditorControl,
@@ -1338,19 +1361,19 @@ var SuperscriptControl = createControl({
1338
1361
  });
1339
1362
 
1340
1363
  // src/controls/rte-link-control.tsx
1341
- var import_react8 = require("@tiptap/react");
1364
+ var import_react9 = require("@tiptap/react");
1342
1365
  var React15 = __toESM(require("react"), 1);
1343
- var import_react9 = require("react");
1366
+ var import_react10 = require("react");
1344
1367
  var import_jsx_runtime21 = require("react/jsx-runtime");
1345
1368
  var LinkControl = () => {
1346
1369
  const { editor, icons, labels, tooltip } = useRichTextEditorContext();
1347
- const [url, setUrl] = (0, import_react9.useState)("");
1348
- const [open, setOpen] = (0, import_react9.useState)(false);
1349
- const active = (0, import_react8.useEditorState)({
1370
+ const [url, setUrl] = (0, import_react10.useState)("");
1371
+ const [open, setOpen] = (0, import_react10.useState)(false);
1372
+ const active = (0, import_react9.useEditorState)({
1350
1373
  editor: editor ?? null,
1351
1374
  selector: (ctx) => ctx.editor && !ctx.editor.isDestroyed ? ctx.editor.isActive("link") : false
1352
1375
  });
1353
- const handleOpen = (0, import_react9.useCallback)(
1376
+ const handleOpen = (0, import_react10.useCallback)(
1354
1377
  (isOpen) => {
1355
1378
  if (isOpen) {
1356
1379
  const linkData = editor?.getAttributes("link");
@@ -1438,24 +1461,68 @@ var LinkControl = () => {
1438
1461
 
1439
1462
  // src/controls/rte-twitter-control.tsx
1440
1463
  var import_core2 = require("@tiptap/core");
1441
- var import_react14 = require("@tiptap/react");
1442
- var import_react15 = require("react");
1464
+ var import_react15 = require("@tiptap/react");
1465
+ var import_react16 = require("react");
1443
1466
 
1444
1467
  // src/extensions/resizable-node-view.tsx
1445
- var import_react12 = require("@tiptap/react");
1446
- var import_react13 = require("react");
1468
+ var import_react13 = require("@tiptap/react");
1469
+ var import_react14 = require("react");
1447
1470
 
1448
1471
  // src/icons.tsx
1472
+ var import_react12 = require("react");
1473
+
1474
+ // src/icon-placeholder.tsx
1449
1475
  var import_lucide_react = require("lucide-react");
1450
- var import_react11 = require("react");
1476
+ var import_jsx_runtime22 = require("react/jsx-runtime");
1477
+ var ICONS = {
1478
+ AlignCenter: import_lucide_react.AlignCenter,
1479
+ AlignJustify: import_lucide_react.AlignJustify,
1480
+ AlignLeft: import_lucide_react.AlignLeft,
1481
+ AlignRight: import_lucide_react.AlignRight,
1482
+ Bold: import_lucide_react.Bold,
1483
+ Code: import_lucide_react.Code,
1484
+ Heading1: import_lucide_react.Heading1,
1485
+ Heading2: import_lucide_react.Heading2,
1486
+ Heading3: import_lucide_react.Heading3,
1487
+ Heading4: import_lucide_react.Heading4,
1488
+ Heading5: import_lucide_react.Heading5,
1489
+ Heading6: import_lucide_react.Heading6,
1490
+ Highlighter: import_lucide_react.Highlighter,
1491
+ Italic: import_lucide_react.Italic,
1492
+ Link: import_lucide_react.Link,
1493
+ Link2Off: import_lucide_react.Link2Off,
1494
+ List: import_lucide_react.List,
1495
+ ListOrdered: import_lucide_react.ListOrdered,
1496
+ Minus: import_lucide_react.Minus,
1497
+ Redo2: import_lucide_react.Redo2,
1498
+ RemoveFormatting: import_lucide_react.RemoveFormatting,
1499
+ SquareCode: import_lucide_react.SquareCode,
1500
+ Strikethrough: import_lucide_react.Strikethrough,
1501
+ Subscript: import_lucide_react.Subscript,
1502
+ Superscript: import_lucide_react.Superscript,
1503
+ TextQuote: import_lucide_react.TextQuote,
1504
+ Underline: import_lucide_react.Underline,
1505
+ Undo2: import_lucide_react.Undo2
1506
+ };
1507
+ var IconPlaceholder = ({
1508
+ lucide,
1509
+ tabler: _tabler,
1510
+ hugeicons: _hugeicons,
1511
+ phosphor: _phosphor,
1512
+ remixicon: _remixicon,
1513
+ ...props
1514
+ }) => {
1515
+ const Icon2 = ICONS[lucide];
1516
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Icon2, { ...props });
1517
+ };
1451
1518
 
1452
1519
  // src/language-icons.tsx
1453
- var import_react10 = require("react");
1454
- var import_jsx_runtime22 = require("react/jsx-runtime");
1520
+ var import_react11 = require("react");
1521
+ var import_jsx_runtime23 = require("react/jsx-runtime");
1455
1522
  var LangIcon = ({
1456
1523
  children,
1457
1524
  className
1458
- }) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1525
+ }) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1459
1526
  "svg",
1460
1527
  {
1461
1528
  xmlns: "http://www.w3.org/2000/svg",
@@ -1470,140 +1537,140 @@ var LangIcon = ({
1470
1537
  }
1471
1538
  );
1472
1539
  var DEFAULT_LANGUAGE_ICONS = {
1473
- bash: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(LangIcon, { children: [
1474
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("rect", { x: "2.5", y: "4", width: "19", height: "16", rx: "2" }),
1475
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M6.5 9.5l3.5 3-3.5 3" }),
1476
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M12 15.5h5.5" })
1540
+ bash: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(LangIcon, { children: [
1541
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("rect", { x: "2.5", y: "4", width: "19", height: "16", rx: "2" }),
1542
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M6.5 9.5l3.5 3-3.5 3" }),
1543
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M12 15.5h5.5" })
1477
1544
  ] }),
1478
- c: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(LangIcon, { children: [
1479
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("circle", { cx: "12", cy: "12", r: "8.5" }),
1480
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M15.6 9.3a4.5 4.5 0 1 0 0 5.4" })
1545
+ c: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(LangIcon, { children: [
1546
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("circle", { cx: "12", cy: "12", r: "8.5" }),
1547
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M15.6 9.3a4.5 4.5 0 1 0 0 5.4" })
1481
1548
  ] }),
1482
- cpp: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(LangIcon, { children: [
1483
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("circle", { cx: "9.5", cy: "12", r: "6.5" }),
1484
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M12.3 9.7a3.3 3.3 0 1 0 0 4.6" }),
1485
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M15.7 10.5v3M14.2 12h3" }),
1486
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M19.3 10.5v3M17.8 12h3" })
1549
+ cpp: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(LangIcon, { children: [
1550
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("circle", { cx: "9.5", cy: "12", r: "6.5" }),
1551
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M12.3 9.7a3.3 3.3 0 1 0 0 4.6" }),
1552
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M15.7 10.5v3M14.2 12h3" }),
1553
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M19.3 10.5v3M17.8 12h3" })
1487
1554
  ] }),
1488
- css: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(LangIcon, { children: [
1489
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("rect", { x: "3", y: "3", width: "18", height: "18", rx: "4" }),
1490
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M9.7 7.5l-1 9" }),
1491
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M15.3 7.5l-1 9" }),
1492
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M7 10.3h11" }),
1493
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M6.5 14.3h11" })
1555
+ css: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(LangIcon, { children: [
1556
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("rect", { x: "3", y: "3", width: "18", height: "18", rx: "4" }),
1557
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M9.7 7.5l-1 9" }),
1558
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M15.3 7.5l-1 9" }),
1559
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M7 10.3h11" }),
1560
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M6.5 14.3h11" })
1494
1561
  ] }),
1495
- go: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(LangIcon, { children: [
1496
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("rect", { x: "3", y: "3", width: "18", height: "18", rx: "4" }),
1497
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M12.6 9.7A3.3 3.3 0 1 0 12.6 14.3" }),
1498
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M12.6 12h-1.9" }),
1499
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("circle", { cx: "17", cy: "12", r: "2.9" })
1562
+ go: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(LangIcon, { children: [
1563
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("rect", { x: "3", y: "3", width: "18", height: "18", rx: "4" }),
1564
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M12.6 9.7A3.3 3.3 0 1 0 12.6 14.3" }),
1565
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M12.6 12h-1.9" }),
1566
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("circle", { cx: "17", cy: "12", r: "2.9" })
1500
1567
  ] }),
1501
- html: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(LangIcon, { children: [
1502
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("rect", { x: "3", y: "3", width: "18", height: "18", rx: "4" }),
1503
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M9.5 8.5L6.5 12l3 3.5" }),
1504
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M14.5 8.5L17.5 12l-3 3.5" }),
1505
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M13 7.3l-2 9.4" })
1568
+ html: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(LangIcon, { children: [
1569
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("rect", { x: "3", y: "3", width: "18", height: "18", rx: "4" }),
1570
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M9.5 8.5L6.5 12l3 3.5" }),
1571
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M14.5 8.5L17.5 12l-3 3.5" }),
1572
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M13 7.3l-2 9.4" })
1506
1573
  ] }),
1507
- java: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(LangIcon, { children: [
1508
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M6 10h10v5a3 3 0 0 1-3 3H9a3 3 0 0 1-3-3v-5z" }),
1509
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M16 12h1.3a1.8 1.8 0 0 1 0 3.6H16" }),
1510
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M9.3 3.8c-.9.8-.9 1.6 0 2.4M13.3 3.8c-.9.8-.9 1.6 0 2.4" }),
1511
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M6 19.3h10" })
1574
+ java: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(LangIcon, { children: [
1575
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M6 10h10v5a3 3 0 0 1-3 3H9a3 3 0 0 1-3-3v-5z" }),
1576
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M16 12h1.3a1.8 1.8 0 0 1 0 3.6H16" }),
1577
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M9.3 3.8c-.9.8-.9 1.6 0 2.4M13.3 3.8c-.9.8-.9 1.6 0 2.4" }),
1578
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M6 19.3h10" })
1512
1579
  ] }),
1513
- javascript: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(LangIcon, { children: [
1514
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("rect", { x: "3", y: "3", width: "18", height: "18", rx: "4" }),
1515
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M10.5 8v6.5a2 2 0 0 1-3.5 1.3" }),
1516
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M17 8.8a2 2 0 0 0-2-.8c-1.1 0-2.2.6-2.2 1.7 0 1 .9 1.4 2.2 1.7 1.3.3 2.3.7 2.3 1.9 0 1.1-1 1.8-2.3 1.8a2.4 2.4 0 0 1-2.3-1.4" })
1580
+ javascript: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(LangIcon, { children: [
1581
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("rect", { x: "3", y: "3", width: "18", height: "18", rx: "4" }),
1582
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M10.5 8v6.5a2 2 0 0 1-3.5 1.3" }),
1583
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M17 8.8a2 2 0 0 0-2-.8c-1.1 0-2.2.6-2.2 1.7 0 1 .9 1.4 2.2 1.7 1.3.3 2.3.7 2.3 1.9 0 1.1-1 1.8-2.3 1.8a2.4 2.4 0 0 1-2.3-1.4" })
1517
1584
  ] }),
1518
- json: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(LangIcon, { children: [
1519
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M8 3H7a2 2 0 0 0-2 2v4a2 2 0 0 1-2 2 2 2 0 0 1 2 2v4a2 2 0 0 0 2 2" }),
1520
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M16 3h1a2 2 0 0 1 2 2v4a2 2 0 0 0 2 2 2 2 0 0 0-2 2v4a2 2 0 0 1-2 2" })
1585
+ json: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(LangIcon, { children: [
1586
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M8 3H7a2 2 0 0 0-2 2v4a2 2 0 0 1-2 2 2 2 0 0 1 2 2v4a2 2 0 0 0 2 2" }),
1587
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M16 3h1a2 2 0 0 1 2 2v4a2 2 0 0 0 2 2 2 2 0 0 0-2 2v4a2 2 0 0 1-2 2" })
1521
1588
  ] }),
1522
- kotlin: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(LangIcon, { children: [
1523
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("rect", { x: "3", y: "3", width: "18", height: "18", rx: "4" }),
1524
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M9 7.5v9" }),
1525
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M9 12l6-4.5" }),
1526
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M9 12l6 4.5" })
1589
+ kotlin: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(LangIcon, { children: [
1590
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("rect", { x: "3", y: "3", width: "18", height: "18", rx: "4" }),
1591
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M9 7.5v9" }),
1592
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M9 12l6-4.5" }),
1593
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M9 12l6 4.5" })
1527
1594
  ] }),
1528
- markdown: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(LangIcon, { children: [
1529
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("rect", { x: "2", y: "5", width: "20", height: "14", rx: "2" }),
1530
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M6 15V9l3 4 3-4v6" }),
1531
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M16.5 9v6" }),
1532
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M14.5 13l2 2 2-2" })
1595
+ markdown: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(LangIcon, { children: [
1596
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("rect", { x: "2", y: "5", width: "20", height: "14", rx: "2" }),
1597
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M6 15V9l3 4 3-4v6" }),
1598
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M16.5 9v6" }),
1599
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M14.5 13l2 2 2-2" })
1533
1600
  ] }),
1534
- php: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(LangIcon, { children: [
1535
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("rect", { x: "3", y: "3", width: "18", height: "18", rx: "4" }),
1536
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M11.5 8.5L7.5 12l4 3.5" }),
1537
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M15.2 8.2c1.1 0 1.9.6 1.9 1.6 0 1.1-.9 1.5-1.8 1.8-.6.2-1 .5-1 1.1" }),
1538
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("circle", { cx: "14.3", cy: "16.2", r: ".5", fill: "currentColor", stroke: "none" })
1601
+ php: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(LangIcon, { children: [
1602
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("rect", { x: "3", y: "3", width: "18", height: "18", rx: "4" }),
1603
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M11.5 8.5L7.5 12l4 3.5" }),
1604
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M15.2 8.2c1.1 0 1.9.6 1.9 1.6 0 1.1-.9 1.5-1.8 1.8-.6.2-1 .5-1 1.1" }),
1605
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("circle", { cx: "14.3", cy: "16.2", r: ".5", fill: "currentColor", stroke: "none" })
1539
1606
  ] }),
1540
- plaintext: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(LangIcon, { children: [
1541
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("rect", { x: "4", y: "2.5", width: "16", height: "19", rx: "2" }),
1542
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("line", { x1: "7.5", y1: "7.5", x2: "16.5", y2: "7.5" }),
1543
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("line", { x1: "7.5", y1: "11.5", x2: "16.5", y2: "11.5" }),
1544
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("line", { x1: "7.5", y1: "15.5", x2: "13.5", y2: "15.5" })
1607
+ plaintext: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(LangIcon, { children: [
1608
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("rect", { x: "4", y: "2.5", width: "16", height: "19", rx: "2" }),
1609
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("line", { x1: "7.5", y1: "7.5", x2: "16.5", y2: "7.5" }),
1610
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("line", { x1: "7.5", y1: "11.5", x2: "16.5", y2: "11.5" }),
1611
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("line", { x1: "7.5", y1: "15.5", x2: "13.5", y2: "15.5" })
1545
1612
  ] }),
1546
- python: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(LangIcon, { children: [
1547
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M4.5 15c0-3 2.5-4.7 5.7-4.7h1.6c2.8 0 5-2 5-4.5" }),
1548
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M9.5 3.3c1.3-.3 2.6 0 3.3 1-.7 1-2 1.3-3.3 1" }),
1549
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("circle", { cx: "15.5", cy: "4.3", r: ".55", fill: "currentColor", stroke: "none" }),
1550
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M17.8 4.5l1.4-.6M17.8 4.9l1.4.6" })
1613
+ python: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(LangIcon, { children: [
1614
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M4.5 15c0-3 2.5-4.7 5.7-4.7h1.6c2.8 0 5-2 5-4.5" }),
1615
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M9.5 3.3c1.3-.3 2.6 0 3.3 1-.7 1-2 1.3-3.3 1" }),
1616
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("circle", { cx: "15.5", cy: "4.3", r: ".55", fill: "currentColor", stroke: "none" }),
1617
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M17.8 4.5l1.4-.6M17.8 4.9l1.4.6" })
1551
1618
  ] }),
1552
- ruby: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(LangIcon, { children: [
1553
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("polygon", { points: "12 2.5 19.5 8 12 21.5 4.5 8" }),
1554
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M4.5 8h15" }),
1555
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M12 2.5v19" })
1619
+ ruby: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(LangIcon, { children: [
1620
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("polygon", { points: "12 2.5 19.5 8 12 21.5 4.5 8" }),
1621
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M4.5 8h15" }),
1622
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M12 2.5v19" })
1556
1623
  ] }),
1557
- rust: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(LangIcon, { children: [
1558
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("circle", { cx: "12", cy: "12", r: "7" }),
1559
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("circle", { cx: "12", cy: "12", r: "2.3" }),
1560
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M12 2.5v3M12 18.5v3M2.5 12h3M18.5 12h3" }),
1561
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M5.6 5.6l2.1 2.1M16.3 16.3l2.1 2.1M5.6 18.4l2.1-2.1M16.3 7.7l2.1-2.1" })
1624
+ rust: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(LangIcon, { children: [
1625
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("circle", { cx: "12", cy: "12", r: "7" }),
1626
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("circle", { cx: "12", cy: "12", r: "2.3" }),
1627
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M12 2.5v3M12 18.5v3M2.5 12h3M18.5 12h3" }),
1628
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M5.6 5.6l2.1 2.1M16.3 16.3l2.1 2.1M5.6 18.4l2.1-2.1M16.3 7.7l2.1-2.1" })
1562
1629
  ] }),
1563
- sql: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(LangIcon, { children: [
1564
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("ellipse", { cx: "12", cy: "6", rx: "8", ry: "3" }),
1565
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M4 6v6c0 1.7 3.6 3 8 3s8-1.3 8-3V6" }),
1566
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M4 12v6c0 1.7 3.6 3 8 3s8-1.3 8-3v-6" })
1630
+ sql: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(LangIcon, { children: [
1631
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("ellipse", { cx: "12", cy: "6", rx: "8", ry: "3" }),
1632
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M4 6v6c0 1.7 3.6 3 8 3s8-1.3 8-3V6" }),
1633
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M4 12v6c0 1.7 3.6 3 8 3s8-1.3 8-3v-6" })
1567
1634
  ] }),
1568
- swift: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(LangIcon, { children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M19 4.5c-2.6 4-5.5 7-8.3 9 2-.2 3.7-1 4.8-2.6-.7 2.8-2.8 5-5.3 6.1 3 .5 5.6-.5 7.2-2.4.4 2-.4 3.9-1.9 4.9 3.7-1.3 6-4.2 6.6-7.6-1 2.6-2.8 4.6-4.6 5.8" }) }),
1569
- typescript: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(LangIcon, { children: [
1570
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("rect", { x: "3", y: "3", width: "18", height: "18", rx: "4" }),
1571
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M7.3 8.2h5M9.8 8.2v7.6" }),
1572
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M17 8.8a2 2 0 0 0-2-.8c-1.1 0-2.2.6-2.2 1.7 0 1 .9 1.4 2.2 1.7 1.3.3 2.3.7 2.3 1.9 0 1.1-1 1.8-2.3 1.8a2.4 2.4 0 0 1-2.3-1.4" })
1635
+ swift: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(LangIcon, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M19 4.5c-2.6 4-5.5 7-8.3 9 2-.2 3.7-1 4.8-2.6-.7 2.8-2.8 5-5.3 6.1 3 .5 5.6-.5 7.2-2.4.4 2-.4 3.9-1.9 4.9 3.7-1.3 6-4.2 6.6-7.6-1 2.6-2.8 4.6-4.6 5.8" }) }),
1636
+ typescript: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(LangIcon, { children: [
1637
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("rect", { x: "3", y: "3", width: "18", height: "18", rx: "4" }),
1638
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M7.3 8.2h5M9.8 8.2v7.6" }),
1639
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M17 8.8a2 2 0 0 0-2-.8c-1.1 0-2.2.6-2.2 1.7 0 1 .9 1.4 2.2 1.7 1.3.3 2.3.7 2.3 1.9 0 1.1-1 1.8-2.3 1.8a2.4 2.4 0 0 1-2.3-1.4" })
1573
1640
  ] }),
1574
- xml: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(LangIcon, { children: [
1575
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M8 7l-4.5 5 4.5 5" }),
1576
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M16 7l4.5 5-4.5 5" }),
1577
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M12 8v8" })
1641
+ xml: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(LangIcon, { children: [
1642
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M8 7l-4.5 5 4.5 5" }),
1643
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M16 7l4.5 5-4.5 5" }),
1644
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M12 8v8" })
1578
1645
  ] }),
1579
- yaml: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(LangIcon, { children: [
1580
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("rect", { x: "2.5", y: "3", width: "19", height: "18", rx: "2" }),
1581
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M6.5 8h2M9.5 8h8" }),
1582
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M6.5 12h2M9.5 12h6" }),
1583
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M6.5 16h2M9.5 16h7" })
1646
+ yaml: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(LangIcon, { children: [
1647
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("rect", { x: "2.5", y: "3", width: "19", height: "18", rx: "2" }),
1648
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M6.5 8h2M9.5 8h8" }),
1649
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M6.5 12h2M9.5 12h6" }),
1650
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M6.5 16h2M9.5 16h7" })
1584
1651
  ] })
1585
1652
  };
1586
1653
 
1587
1654
  // src/icons.tsx
1588
- var import_jsx_runtime23 = require("react/jsx-runtime");
1655
+ var import_jsx_runtime24 = require("react/jsx-runtime");
1589
1656
  var ALIGN_PATHS = {
1590
- center: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_jsx_runtime23.Fragment, { children: [
1591
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("line", { x1: "21", y1: "6", x2: "3", y2: "6" }),
1592
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("line", { x1: "17", y1: "12", x2: "7", y2: "12" }),
1593
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("line", { x1: "19", y1: "18", x2: "5", y2: "18" })
1657
+ center: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
1658
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("line", { x1: "21", y1: "6", x2: "3", y2: "6" }),
1659
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("line", { x1: "17", y1: "12", x2: "7", y2: "12" }),
1660
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("line", { x1: "19", y1: "18", x2: "5", y2: "18" })
1594
1661
  ] }),
1595
- left: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_jsx_runtime23.Fragment, { children: [
1596
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("line", { x1: "21", y1: "6", x2: "3", y2: "6" }),
1597
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("line", { x1: "15", y1: "12", x2: "3", y2: "12" }),
1598
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("line", { x1: "17", y1: "18", x2: "3", y2: "18" })
1662
+ left: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
1663
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("line", { x1: "21", y1: "6", x2: "3", y2: "6" }),
1664
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("line", { x1: "15", y1: "12", x2: "3", y2: "12" }),
1665
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("line", { x1: "17", y1: "18", x2: "3", y2: "18" })
1599
1666
  ] }),
1600
- right: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_jsx_runtime23.Fragment, { children: [
1601
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("line", { x1: "21", y1: "6", x2: "3", y2: "6" }),
1602
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("line", { x1: "21", y1: "12", x2: "9", y2: "12" }),
1603
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("line", { x1: "21", y1: "18", x2: "7", y2: "18" })
1667
+ right: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
1668
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("line", { x1: "21", y1: "6", x2: "3", y2: "6" }),
1669
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("line", { x1: "21", y1: "12", x2: "9", y2: "12" }),
1670
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("line", { x1: "21", y1: "18", x2: "7", y2: "18" })
1604
1671
  ] })
1605
1672
  };
1606
- var AlignIcon = ({ dir }) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1673
+ var AlignIcon = ({ dir }) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1607
1674
  "svg",
1608
1675
  {
1609
1676
  xmlns: "http://www.w3.org/2000/svg",
@@ -1617,7 +1684,7 @@ var AlignIcon = ({ dir }) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1617
1684
  children: ALIGN_PATHS[dir]
1618
1685
  }
1619
1686
  );
1620
- var EditUrlIcon = () => /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
1687
+ var EditUrlIcon = () => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
1621
1688
  "svg",
1622
1689
  {
1623
1690
  xmlns: "http://www.w3.org/2000/svg",
@@ -1629,12 +1696,12 @@ var EditUrlIcon = () => /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
1629
1696
  strokeLinejoin: "round",
1630
1697
  className: "rte-editor-icon",
1631
1698
  children: [
1632
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M12 20h9" }),
1633
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z" })
1699
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("path", { d: "M12 20h9" }),
1700
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("path", { d: "M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z" })
1634
1701
  ]
1635
1702
  }
1636
1703
  );
1637
- var OpenInYouTubeIcon = () => /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
1704
+ var OpenInYouTubeIcon = () => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
1638
1705
  "svg",
1639
1706
  {
1640
1707
  xmlns: "http://www.w3.org/2000/svg",
@@ -1646,13 +1713,13 @@ var OpenInYouTubeIcon = () => /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
1646
1713
  strokeLinejoin: "round",
1647
1714
  className: "rte-editor-icon",
1648
1715
  children: [
1649
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }),
1650
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("polyline", { points: "15 3 21 3 21 9" }),
1651
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("line", { x1: "10", y1: "14", x2: "21", y2: "3" })
1716
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }),
1717
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("polyline", { points: "15 3 21 3 21 9" }),
1718
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("line", { x1: "10", y1: "14", x2: "21", y2: "3" })
1652
1719
  ]
1653
1720
  }
1654
1721
  );
1655
- var DeleteEmbedIcon = () => /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
1722
+ var DeleteEmbedIcon = () => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
1656
1723
  "svg",
1657
1724
  {
1658
1725
  xmlns: "http://www.w3.org/2000/svg",
@@ -1664,46 +1731,326 @@ var DeleteEmbedIcon = () => /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
1664
1731
  strokeLinejoin: "round",
1665
1732
  className: "rte-editor-icon",
1666
1733
  children: [
1667
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("polyline", { points: "3 6 5 6 21 6" }),
1668
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" })
1734
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("polyline", { points: "3 6 5 6 21 6" }),
1735
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" })
1669
1736
  ]
1670
1737
  }
1671
1738
  );
1672
1739
  var iconProps = { className: "rte-editor-icon" };
1673
1740
  var DEFAULT_ICONS = {
1674
- alignCenterControlIcon: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react.TextAlignCenter, { ...iconProps }),
1675
- alignJustifyControlIcon: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react.TextAlignJustify, { ...iconProps }),
1676
- alignLeftControlIcon: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react.TextAlignStart, { ...iconProps }),
1677
- alignRightControlIcon: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react.TextAlignEnd, { ...iconProps }),
1678
- blockquoteControlIcon: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react.TextQuote, { ...iconProps }),
1679
- boldControlIcon: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react.Bold, { ...iconProps }),
1680
- bulletListControlIcon: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react.List, { ...iconProps }),
1681
- clearFormattingControlIcon: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react.RemoveFormatting, { ...iconProps }),
1682
- codeBlockControlIcon: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react.SquareCode, { ...iconProps }),
1683
- codeControlIcon: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react.Code, { ...iconProps }),
1684
- h1ControlIcon: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react.Heading1, { ...iconProps }),
1685
- h2ControlIcon: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react.Heading2, { ...iconProps }),
1686
- h3ControlIcon: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react.Heading3, { ...iconProps }),
1687
- h4ControlIcon: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react.Heading4, { ...iconProps }),
1688
- h5ControlIcon: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react.Heading5, { ...iconProps }),
1689
- h6ControlIcon: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react.Heading6, { ...iconProps }),
1690
- highlightControlIcon: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react.Highlighter, { ...iconProps }),
1691
- hrControlIcon: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react.Minus, { ...iconProps }),
1692
- italicControlIcon: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react.Italic, { ...iconProps }),
1741
+ alignCenterControlIcon: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1742
+ IconPlaceholder,
1743
+ {
1744
+ lucide: "AlignCenter",
1745
+ tabler: "IconAlignCenter",
1746
+ hugeicons: "TextAlignCenterIcon",
1747
+ phosphor: "TextAlignCenterIcon",
1748
+ remixicon: "RiAlignCenter",
1749
+ ...iconProps
1750
+ }
1751
+ ),
1752
+ alignJustifyControlIcon: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1753
+ IconPlaceholder,
1754
+ {
1755
+ lucide: "AlignJustify",
1756
+ tabler: "IconAlignJustified",
1757
+ hugeicons: "TextAlignJustifyCenterIcon",
1758
+ phosphor: "TextAlignJustifyIcon",
1759
+ remixicon: "RiAlignJustify",
1760
+ ...iconProps
1761
+ }
1762
+ ),
1763
+ alignLeftControlIcon: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1764
+ IconPlaceholder,
1765
+ {
1766
+ lucide: "AlignLeft",
1767
+ tabler: "IconAlignLeft",
1768
+ hugeicons: "TextAlignLeftIcon",
1769
+ phosphor: "TextAlignLeftIcon",
1770
+ remixicon: "RiAlignLeft",
1771
+ ...iconProps
1772
+ }
1773
+ ),
1774
+ alignRightControlIcon: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1775
+ IconPlaceholder,
1776
+ {
1777
+ lucide: "AlignRight",
1778
+ tabler: "IconAlignRight",
1779
+ hugeicons: "TextAlignRightIcon",
1780
+ phosphor: "TextAlignRightIcon",
1781
+ remixicon: "RiAlignRight",
1782
+ ...iconProps
1783
+ }
1784
+ ),
1785
+ blockquoteControlIcon: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1786
+ IconPlaceholder,
1787
+ {
1788
+ lucide: "TextQuote",
1789
+ tabler: "IconQuote",
1790
+ hugeicons: "LeftToRightBlockQuoteIcon",
1791
+ phosphor: "QuotesIcon",
1792
+ remixicon: "RiQuoteText",
1793
+ ...iconProps
1794
+ }
1795
+ ),
1796
+ boldControlIcon: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1797
+ IconPlaceholder,
1798
+ {
1799
+ lucide: "Bold",
1800
+ tabler: "IconBold",
1801
+ hugeicons: "BoldIcon",
1802
+ phosphor: "TextBIcon",
1803
+ remixicon: "RiBold",
1804
+ ...iconProps
1805
+ }
1806
+ ),
1807
+ bulletListControlIcon: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1808
+ IconPlaceholder,
1809
+ {
1810
+ lucide: "List",
1811
+ tabler: "IconList",
1812
+ hugeicons: "LeftToRightListBulletIcon",
1813
+ phosphor: "ListBulletsIcon",
1814
+ remixicon: "RiListUnordered",
1815
+ ...iconProps
1816
+ }
1817
+ ),
1818
+ clearFormattingControlIcon: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1819
+ IconPlaceholder,
1820
+ {
1821
+ lucide: "RemoveFormatting",
1822
+ tabler: "IconEraser",
1823
+ hugeicons: "TextClearIcon",
1824
+ phosphor: "EraserIcon",
1825
+ remixicon: "RiFormatClear",
1826
+ ...iconProps
1827
+ }
1828
+ ),
1829
+ codeBlockControlIcon: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1830
+ IconPlaceholder,
1831
+ {
1832
+ lucide: "SquareCode",
1833
+ tabler: "IconSourceCode",
1834
+ hugeicons: "SourceCodeSquareIcon",
1835
+ phosphor: "CodeBlockIcon",
1836
+ remixicon: "RiCodeBoxLine",
1837
+ ...iconProps
1838
+ }
1839
+ ),
1840
+ codeControlIcon: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1841
+ IconPlaceholder,
1842
+ {
1843
+ lucide: "Code",
1844
+ tabler: "IconCode",
1845
+ hugeicons: "SourceCodeIcon",
1846
+ phosphor: "CodeIcon",
1847
+ remixicon: "RiCodeLine",
1848
+ ...iconProps
1849
+ }
1850
+ ),
1851
+ h1ControlIcon: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1852
+ IconPlaceholder,
1853
+ {
1854
+ lucide: "Heading1",
1855
+ tabler: "IconH1",
1856
+ hugeicons: "Heading01Icon",
1857
+ phosphor: "TextHOneIcon",
1858
+ remixicon: "RiH1",
1859
+ ...iconProps
1860
+ }
1861
+ ),
1862
+ h2ControlIcon: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1863
+ IconPlaceholder,
1864
+ {
1865
+ lucide: "Heading2",
1866
+ tabler: "IconH2",
1867
+ hugeicons: "Heading02Icon",
1868
+ phosphor: "TextHTwoIcon",
1869
+ remixicon: "RiH2",
1870
+ ...iconProps
1871
+ }
1872
+ ),
1873
+ h3ControlIcon: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1874
+ IconPlaceholder,
1875
+ {
1876
+ lucide: "Heading3",
1877
+ tabler: "IconH3",
1878
+ hugeicons: "Heading03Icon",
1879
+ phosphor: "TextHThreeIcon",
1880
+ remixicon: "RiH3",
1881
+ ...iconProps
1882
+ }
1883
+ ),
1884
+ h4ControlIcon: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1885
+ IconPlaceholder,
1886
+ {
1887
+ lucide: "Heading4",
1888
+ tabler: "IconH4",
1889
+ hugeicons: "Heading04Icon",
1890
+ phosphor: "TextHFourIcon",
1891
+ remixicon: "RiH4",
1892
+ ...iconProps
1893
+ }
1894
+ ),
1895
+ h5ControlIcon: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1896
+ IconPlaceholder,
1897
+ {
1898
+ lucide: "Heading5",
1899
+ tabler: "IconH5",
1900
+ hugeicons: "Heading05Icon",
1901
+ phosphor: "TextHFiveIcon",
1902
+ remixicon: "RiH5",
1903
+ ...iconProps
1904
+ }
1905
+ ),
1906
+ h6ControlIcon: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1907
+ IconPlaceholder,
1908
+ {
1909
+ lucide: "Heading6",
1910
+ tabler: "IconH6",
1911
+ hugeicons: "Heading06Icon",
1912
+ phosphor: "TextHSixIcon",
1913
+ remixicon: "RiH6",
1914
+ ...iconProps
1915
+ }
1916
+ ),
1917
+ highlightControlIcon: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1918
+ IconPlaceholder,
1919
+ {
1920
+ lucide: "Highlighter",
1921
+ tabler: "IconHighlight",
1922
+ hugeicons: "HighlighterIcon",
1923
+ phosphor: "HighlighterIcon",
1924
+ remixicon: "RiMarkPenLine",
1925
+ ...iconProps
1926
+ }
1927
+ ),
1928
+ hrControlIcon: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1929
+ IconPlaceholder,
1930
+ {
1931
+ lucide: "Minus",
1932
+ tabler: "IconMinus",
1933
+ hugeicons: "MinusSignIcon",
1934
+ phosphor: "MinusIcon",
1935
+ remixicon: "RiSeparator",
1936
+ ...iconProps
1937
+ }
1938
+ ),
1939
+ italicControlIcon: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1940
+ IconPlaceholder,
1941
+ {
1942
+ lucide: "Italic",
1943
+ tabler: "IconItalic",
1944
+ hugeicons: "ItalicIcon",
1945
+ phosphor: "TextItalicIcon",
1946
+ remixicon: "RiItalic",
1947
+ ...iconProps
1948
+ }
1949
+ ),
1693
1950
  languageIcons: DEFAULT_LANGUAGE_ICONS,
1694
- linkControlIcon: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react.Link, { ...iconProps }),
1695
- orderedListControlIcon: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react.ListOrdered, { ...iconProps }),
1696
- redoControlIcon: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react.Redo2, { ...iconProps }),
1697
- strikeControlIcon: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react.Strikethrough, { ...iconProps }),
1698
- subscriptControlIcon: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react.Subscript, { ...iconProps }),
1699
- superscriptControlIcon: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react.Superscript, { ...iconProps }),
1700
- underlineControlIcon: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react.Underline, { ...iconProps }),
1701
- undoControlIcon: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react.Undo2, { ...iconProps }),
1702
- unlinkControlIcon: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react.Link2Off, { ...iconProps })
1951
+ linkControlIcon: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1952
+ IconPlaceholder,
1953
+ {
1954
+ lucide: "Link",
1955
+ tabler: "IconLink",
1956
+ hugeicons: "Link01Icon",
1957
+ phosphor: "LinkIcon",
1958
+ remixicon: "RiLink",
1959
+ ...iconProps
1960
+ }
1961
+ ),
1962
+ orderedListControlIcon: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1963
+ IconPlaceholder,
1964
+ {
1965
+ lucide: "ListOrdered",
1966
+ tabler: "IconListNumbers",
1967
+ hugeicons: "LeftToRightListNumberIcon",
1968
+ phosphor: "ListNumbersIcon",
1969
+ remixicon: "RiListOrdered",
1970
+ ...iconProps
1971
+ }
1972
+ ),
1973
+ redoControlIcon: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1974
+ IconPlaceholder,
1975
+ {
1976
+ lucide: "Redo2",
1977
+ tabler: "IconArrowForwardUp",
1978
+ hugeicons: "RedoIcon",
1979
+ phosphor: "ArrowClockwiseIcon",
1980
+ remixicon: "RiArrowGoForwardLine",
1981
+ ...iconProps
1982
+ }
1983
+ ),
1984
+ strikeControlIcon: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1985
+ IconPlaceholder,
1986
+ {
1987
+ lucide: "Strikethrough",
1988
+ tabler: "IconStrikethrough",
1989
+ hugeicons: "StrikethroughIcon",
1990
+ phosphor: "TextStrikethroughIcon",
1991
+ remixicon: "RiStrikethrough",
1992
+ ...iconProps
1993
+ }
1994
+ ),
1995
+ subscriptControlIcon: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1996
+ IconPlaceholder,
1997
+ {
1998
+ lucide: "Subscript",
1999
+ tabler: "IconSubscript",
2000
+ hugeicons: "SubscriptIcon",
2001
+ phosphor: "TextSubscriptIcon",
2002
+ remixicon: "RiSubscript",
2003
+ ...iconProps
2004
+ }
2005
+ ),
2006
+ superscriptControlIcon: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2007
+ IconPlaceholder,
2008
+ {
2009
+ lucide: "Superscript",
2010
+ tabler: "IconSuperscript",
2011
+ hugeicons: "SuperscriptIcon",
2012
+ phosphor: "TextSuperscriptIcon",
2013
+ remixicon: "RiSuperscript",
2014
+ ...iconProps
2015
+ }
2016
+ ),
2017
+ underlineControlIcon: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2018
+ IconPlaceholder,
2019
+ {
2020
+ lucide: "Underline",
2021
+ tabler: "IconUnderline",
2022
+ hugeicons: "UnderlineIcon",
2023
+ phosphor: "TextUnderlineIcon",
2024
+ remixicon: "RiUnderline",
2025
+ ...iconProps
2026
+ }
2027
+ ),
2028
+ undoControlIcon: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2029
+ IconPlaceholder,
2030
+ {
2031
+ lucide: "Undo2",
2032
+ tabler: "IconArrowBackUp",
2033
+ hugeicons: "UndoIcon",
2034
+ phosphor: "ArrowCounterClockwiseIcon",
2035
+ remixicon: "RiArrowGoBackLine",
2036
+ ...iconProps
2037
+ }
2038
+ ),
2039
+ unlinkControlIcon: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2040
+ IconPlaceholder,
2041
+ {
2042
+ lucide: "Link2Off",
2043
+ tabler: "IconUnlink",
2044
+ hugeicons: "UnlinkIcon",
2045
+ phosphor: "LinkBreakIcon",
2046
+ remixicon: "RiLinkUnlink",
2047
+ ...iconProps
2048
+ }
2049
+ )
1703
2050
  };
1704
2051
 
1705
2052
  // src/extensions/resizable-node-view.tsx
1706
- var import_jsx_runtime24 = require("react/jsx-runtime");
2053
+ var import_jsx_runtime25 = require("react/jsx-runtime");
1707
2054
  var SELECTOR_BUTTON = "rte-embed-selector-btn inline-flex h-8 min-w-8 cursor-pointer items-center justify-center rounded-sm border-none bg-transparent px-2 text-[0.75rem] font-medium text-popover-foreground [transition:background-color_150ms_ease-out,color_150ms_ease-out,scale_100ms_ease-out] hover:bg-muted hover:text-foreground focus-visible:outline-2 focus-visible:outline-solid focus-visible:outline-ring/50 focus-visible:-outline-offset-2 active:scale-96";
1708
2055
  var SELECTOR_GROUP = "rte-embed-selector-group flex items-center gap-0.5";
1709
2056
  var SELECTOR_DIVIDER = "rte-embed-selector-divider mx-0.5 h-4 w-px shrink-0 bg-border";
@@ -1727,8 +2074,8 @@ var EmbedToolbar = ({
1727
2074
  nodeSrc
1728
2075
  }) => {
1729
2076
  if (isEditingUrl) {
1730
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "rte-embed-selector-edit-form flex items-center gap-1.5", children: [
1731
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2077
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "rte-embed-selector-edit-form flex items-center gap-1.5", children: [
2078
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1732
2079
  "input",
1733
2080
  {
1734
2081
  ref: inputRef,
@@ -1746,7 +2093,7 @@ var EmbedToolbar = ({
1746
2093
  }
1747
2094
  }
1748
2095
  ),
1749
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2096
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1750
2097
  "button",
1751
2098
  {
1752
2099
  type: "button",
@@ -1758,7 +2105,7 @@ var EmbedToolbar = ({
1758
2105
  children: "Save"
1759
2106
  }
1760
2107
  ),
1761
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2108
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1762
2109
  "button",
1763
2110
  {
1764
2111
  type: "button",
@@ -1769,8 +2116,8 @@ var EmbedToolbar = ({
1769
2116
  )
1770
2117
  ] });
1771
2118
  }
1772
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
1773
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: SELECTOR_GROUP, children: ["left", "center", "right"].map((dir) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2119
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
2120
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: SELECTOR_GROUP, children: ["left", "center", "right"].map((dir) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1774
2121
  "button",
1775
2122
  {
1776
2123
  type: "button",
@@ -1781,12 +2128,12 @@ var EmbedToolbar = ({
1781
2128
  align === dir && "rte-embed-selector-btn--active bg-muted text-foreground"
1782
2129
  ),
1783
2130
  onClick: () => updateAttributes({ align: dir }),
1784
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(AlignIcon, { dir })
2131
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(AlignIcon, { dir })
1785
2132
  },
1786
2133
  dir
1787
2134
  )) }),
1788
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: SELECTOR_DIVIDER }),
1789
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: SELECTOR_GROUP, children: [25, 50, 75, 100].map((pct) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
2135
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: SELECTOR_DIVIDER }),
2136
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: SELECTOR_GROUP, children: [25, 50, 75, 100].map((pct) => /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
1790
2137
  "button",
1791
2138
  {
1792
2139
  type: "button",
@@ -1803,9 +2150,9 @@ var EmbedToolbar = ({
1803
2150
  },
1804
2151
  pct
1805
2152
  )) }),
1806
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: SELECTOR_DIVIDER }),
1807
- /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: SELECTOR_GROUP, children: [
1808
- (videoSrc || nodeSrc) && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2153
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: SELECTOR_DIVIDER }),
2154
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: SELECTOR_GROUP, children: [
2155
+ (videoSrc || nodeSrc) && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1809
2156
  "button",
1810
2157
  {
1811
2158
  type: "button",
@@ -1816,10 +2163,10 @@ var EmbedToolbar = ({
1816
2163
  setUrlInput(videoSrc || nodeSrc || "");
1817
2164
  setIsEditingUrl(true);
1818
2165
  },
1819
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(EditUrlIcon, {})
2166
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(EditUrlIcon, {})
1820
2167
  }
1821
2168
  ),
1822
- watchUrl && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2169
+ watchUrl && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1823
2170
  "button",
1824
2171
  {
1825
2172
  type: "button",
@@ -1827,10 +2174,10 @@ var EmbedToolbar = ({
1827
2174
  "aria-label": "Open video in YouTube",
1828
2175
  className: SELECTOR_BUTTON,
1829
2176
  onClick: () => window.open(watchUrl, "_blank"),
1830
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(OpenInYouTubeIcon, {})
2177
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(OpenInYouTubeIcon, {})
1831
2178
  }
1832
2179
  ),
1833
- deleteNode && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2180
+ deleteNode && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1834
2181
  "button",
1835
2182
  {
1836
2183
  type: "button",
@@ -1841,7 +2188,7 @@ var EmbedToolbar = ({
1841
2188
  "rte-embed-selector-btn--danger hover:bg-destructive/15 hover:text-destructive"
1842
2189
  ),
1843
2190
  onClick: () => deleteNode(),
1844
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(DeleteEmbedIcon, {})
2191
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(DeleteEmbedIcon, {})
1845
2192
  }
1846
2193
  )
1847
2194
  ] })
@@ -1863,26 +2210,26 @@ var ResizableNodeView = ({
1863
2210
  watchUrl,
1864
2211
  onSrcChange
1865
2212
  }) => {
1866
- const containerRef = (0, import_react13.useRef)(null);
1867
- const [isEditingUrl, setIsEditingUrl] = (0, import_react13.useState)(false);
1868
- const [urlInput, setUrlInput] = (0, import_react13.useState)(videoSrc || "");
1869
- const [isResizing, setIsResizing] = (0, import_react13.useState)(false);
1870
- const [currentDimensions, setCurrentDimensions] = (0, import_react13.useState)(null);
1871
- const resizingRef = (0, import_react13.useRef)(null);
2213
+ const containerRef = (0, import_react14.useRef)(null);
2214
+ const [isEditingUrl, setIsEditingUrl] = (0, import_react14.useState)(false);
2215
+ const [urlInput, setUrlInput] = (0, import_react14.useState)(videoSrc || "");
2216
+ const [isResizing, setIsResizing] = (0, import_react14.useState)(false);
2217
+ const [currentDimensions, setCurrentDimensions] = (0, import_react14.useState)(null);
2218
+ const resizingRef = (0, import_react14.useRef)(null);
1872
2219
  const width = node.attrs.width;
1873
2220
  const height = node.attrs.height;
1874
2221
  const align = node.attrs.align || "center";
1875
- const getEditorWidth = (0, import_react13.useCallback)(
2222
+ const getEditorWidth = (0, import_react14.useCallback)(
1876
2223
  () => view?.dom?.parentElement?.offsetWidth ?? 800,
1877
2224
  [view]
1878
2225
  );
1879
- const inputRef = (0, import_react13.useRef)(null);
1880
- (0, import_react13.useEffect)(() => {
2226
+ const inputRef = (0, import_react14.useRef)(null);
2227
+ (0, import_react14.useEffect)(() => {
1881
2228
  if (isEditingUrl) {
1882
2229
  inputRef.current?.focus();
1883
2230
  }
1884
2231
  }, [isEditingUrl]);
1885
- const handleMouseMove = (0, import_react13.useCallback)(
2232
+ const handleMouseMove = (0, import_react14.useCallback)(
1886
2233
  (e) => {
1887
2234
  const resize = resizingRef.current;
1888
2235
  if (!resize) {
@@ -1932,7 +2279,7 @@ var ResizableNodeView = ({
1932
2279
  },
1933
2280
  [lockAspect, aspectRatio, minWidth, maxWidth]
1934
2281
  );
1935
- const handleMouseUp = (0, import_react13.useCallback)(
2282
+ const handleMouseUp = (0, import_react14.useCallback)(
1936
2283
  function handleMouseUp2() {
1937
2284
  const resize = resizingRef.current;
1938
2285
  if (!resize) {
@@ -1953,7 +2300,7 @@ var ResizableNodeView = ({
1953
2300
  },
1954
2301
  [handleMouseMove, updateAttributes]
1955
2302
  );
1956
- const handleMouseDown = (0, import_react13.useCallback)(
2303
+ const handleMouseDown = (0, import_react14.useCallback)(
1957
2304
  (e, direction) => {
1958
2305
  e.preventDefault();
1959
2306
  e.stopPropagation();
@@ -1984,7 +2331,7 @@ var ResizableNodeView = ({
1984
2331
  },
1985
2332
  [width, height, getEditorWidth, handleMouseMove, handleMouseUp]
1986
2333
  );
1987
- (0, import_react13.useEffect)(
2334
+ (0, import_react14.useEffect)(
1988
2335
  () => () => {
1989
2336
  document.removeEventListener("mousemove", handleMouseMove);
1990
2337
  document.removeEventListener("mouseup", handleMouseUp);
@@ -2012,13 +2359,13 @@ var ResizableNodeView = ({
2012
2359
  setIsEditingUrl(false);
2013
2360
  };
2014
2361
  const isEditable = editor ? editor.isEditable : true;
2015
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2016
- import_react12.NodeViewWrapper,
2362
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2363
+ import_react13.NodeViewWrapper,
2017
2364
  {
2018
2365
  className: "rte-embed-wrapper group/embed",
2019
2366
  "data-selected": selected || void 0,
2020
2367
  "data-align": align,
2021
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
2368
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
2022
2369
  "div",
2023
2370
  {
2024
2371
  ref: containerRef,
@@ -2031,12 +2378,12 @@ var ResizableNodeView = ({
2031
2378
  },
2032
2379
  children: [
2033
2380
  children,
2034
- selected && isEditable && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2381
+ selected && isEditable && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2035
2382
  "div",
2036
2383
  {
2037
2384
  className: "rte-embed-selector pointer-events-auto absolute top-[-46px] left-1/2 z-50 flex h-10 animate-rte-bubble-pop-in items-center gap-1 rounded-lg border border-[color-mix(in_srgb,var(--border)_60%,transparent)] bg-popover px-1 whitespace-nowrap shadow-[0_8px_30px_-12px_rgb(0_0_0/0.15)] [transform:translateX(-50%)]",
2038
2385
  contentEditable: false,
2039
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2386
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2040
2387
  EmbedToolbar,
2041
2388
  {
2042
2389
  align,
@@ -2056,14 +2403,14 @@ var ResizableNodeView = ({
2056
2403
  )
2057
2404
  }
2058
2405
  ),
2059
- isResizing && currentDimensions && /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "rte-embed-resize-badge pointer-events-none absolute right-2 bottom-2 z-40 rounded-sm bg-foreground/85 px-1.5 py-0.5 font-[family-name:var(--font-mono,monospace)] text-[0.75rem] font-medium text-background tabular-nums backdrop-blur-xs", children: [
2406
+ isResizing && currentDimensions && /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "rte-embed-resize-badge pointer-events-none absolute right-2 bottom-2 z-40 rounded-sm bg-foreground/85 px-1.5 py-0.5 font-[family-name:var(--font-mono,monospace)] text-[0.75rem] font-medium text-background tabular-nums backdrop-blur-xs", children: [
2060
2407
  currentDimensions.w,
2061
2408
  " \xD7 ",
2062
2409
  currentDimensions.h,
2063
2410
  " px"
2064
2411
  ] }),
2065
- selected && isEditable && /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
2066
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2412
+ selected && isEditable && /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
2413
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2067
2414
  "div",
2068
2415
  {
2069
2416
  className: `${SIDE_HANDLE} rte-resize-handle--left -left-[3px]`,
@@ -2071,7 +2418,7 @@ var ResizableNodeView = ({
2071
2418
  role: "presentation"
2072
2419
  }
2073
2420
  ),
2074
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2421
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2075
2422
  "div",
2076
2423
  {
2077
2424
  className: `${SIDE_HANDLE} rte-resize-handle--right -right-[3px]`,
@@ -2079,7 +2426,7 @@ var ResizableNodeView = ({
2079
2426
  role: "presentation"
2080
2427
  }
2081
2428
  ),
2082
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2429
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2083
2430
  "div",
2084
2431
  {
2085
2432
  className: `${EDGE_HANDLE} rte-resize-handle--bottom inset-x-0 -bottom-[3px] h-1.5 cursor-ns-resize after:inset-x-1 after:bottom-px after:h-0.5 after:[transition:height_150ms_ease-out,bottom_150ms_ease-out] hover:after:bottom-0 hover:after:h-1`,
@@ -2087,7 +2434,7 @@ var ResizableNodeView = ({
2087
2434
  role: "presentation"
2088
2435
  }
2089
2436
  ),
2090
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2437
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2091
2438
  "div",
2092
2439
  {
2093
2440
  className: `${CORNER_HANDLE} rte-resize-handle--corner-bl -bottom-[5px] -left-[5px] cursor-nesw-resize`,
@@ -2095,7 +2442,7 @@ var ResizableNodeView = ({
2095
2442
  role: "presentation"
2096
2443
  }
2097
2444
  ),
2098
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2445
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2099
2446
  "div",
2100
2447
  {
2101
2448
  className: `${CORNER_HANDLE} rte-resize-handle--corner-br -right-[5px] -bottom-[5px] cursor-nwse-resize`,
@@ -2112,7 +2459,7 @@ var ResizableNodeView = ({
2112
2459
  };
2113
2460
 
2114
2461
  // src/controls/rte-twitter-control.tsx
2115
- var import_jsx_runtime25 = require("react/jsx-runtime");
2462
+ var import_jsx_runtime26 = require("react/jsx-runtime");
2116
2463
  var WIDGET_SCRIPT_URL = "https://platform.twitter.com/widgets.js";
2117
2464
  var SCRIPT_LOAD_TIMEOUT_MS = 8e3;
2118
2465
  var READY_POLL_INTERVAL_MS = 50;
@@ -2188,15 +2535,15 @@ var loadTwitterScript = () => {
2188
2535
  };
2189
2536
  var TwitterNodeView = (props) => {
2190
2537
  const { node } = props;
2191
- const containerRef = (0, import_react15.useRef)(null);
2192
- const [loading, setLoading] = (0, import_react15.useState)(true);
2193
- const [failed, setFailed] = (0, import_react15.useState)(false);
2538
+ const containerRef = (0, import_react16.useRef)(null);
2539
+ const [loading, setLoading] = (0, import_react16.useState)(true);
2540
+ const [failed, setFailed] = (0, import_react16.useState)(false);
2194
2541
  const { tweetId } = node.attrs;
2195
- const renderedTweetIdRef = (0, import_react15.useRef)(null);
2196
- const activeRenderIdRef = (0, import_react15.useRef)(0);
2197
- const retryToken = (0, import_react15.useRef)(0);
2198
- const [retryCount, setRetryCount] = (0, import_react15.useState)(0);
2199
- (0, import_react15.useEffect)(() => {
2542
+ const renderedTweetIdRef = (0, import_react16.useRef)(null);
2543
+ const activeRenderIdRef = (0, import_react16.useRef)(0);
2544
+ const retryToken = (0, import_react16.useRef)(0);
2545
+ const [retryCount, setRetryCount] = (0, import_react16.useState)(0);
2546
+ (0, import_react16.useEffect)(() => {
2200
2547
  if (!containerRef.current || !tweetId) {
2201
2548
  return;
2202
2549
  }
@@ -2255,11 +2602,11 @@ var TwitterNodeView = (props) => {
2255
2602
  isCancelled = true;
2256
2603
  };
2257
2604
  }, [tweetId, retryCount, failed]);
2258
- const handleRetry = (0, import_react15.useCallback)(() => {
2605
+ const handleRetry = (0, import_react16.useCallback)(() => {
2259
2606
  retryToken.current += 1;
2260
2607
  setRetryCount(retryToken.current);
2261
2608
  }, []);
2262
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
2609
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
2263
2610
  ResizableNodeView,
2264
2611
  {
2265
2612
  ...props,
@@ -2267,12 +2614,12 @@ var TwitterNodeView = (props) => {
2267
2614
  minWidth: 300,
2268
2615
  maxWidth: 1200,
2269
2616
  children: [
2270
- loading && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "rte-embed-loading animate-pulse", children: "Loading tweet..." }),
2271
- !loading && failed && /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "rte-embed-error", children: [
2272
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("p", { children: "Couldn't load this tweet." }),
2273
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("button", { type: "button", onClick: handleRetry, children: "Retry" })
2617
+ loading && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "rte-embed-loading animate-pulse", children: "Loading tweet..." }),
2618
+ !loading && failed && /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "rte-embed-error", children: [
2619
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { children: "Couldn't load this tweet." }),
2620
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("button", { type: "button", onClick: handleRetry, children: "Retry" })
2274
2621
  ] }),
2275
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { ref: containerRef })
2622
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { ref: containerRef })
2276
2623
  ]
2277
2624
  }
2278
2625
  );
@@ -2342,7 +2689,7 @@ var TwitterEmbed = import_core2.Node.create({
2342
2689
  ];
2343
2690
  },
2344
2691
  addNodeView() {
2345
- return (0, import_react14.ReactNodeViewRenderer)(TwitterNodeView);
2692
+ return (0, import_react15.ReactNodeViewRenderer)(TwitterNodeView);
2346
2693
  },
2347
2694
  atom: true,
2348
2695
  draggable: true,
@@ -2376,10 +2723,10 @@ var extractTweetId = (input) => {
2376
2723
  };
2377
2724
  var TwitterEmbedControl = ({ className }) => {
2378
2725
  const { editor } = useRichTextEditorContext();
2379
- const [open, setOpen] = (0, import_react15.useState)(false);
2380
- const [url, setUrl] = (0, import_react15.useState)("");
2381
- const [touched, setTouched] = (0, import_react15.useState)(false);
2382
- const { active } = (0, import_react14.useEditorState)({
2726
+ const [open, setOpen] = (0, import_react16.useState)(false);
2727
+ const [url, setUrl] = (0, import_react16.useState)("");
2728
+ const [touched, setTouched] = (0, import_react16.useState)(false);
2729
+ const { active } = (0, import_react15.useEditorState)({
2383
2730
  editor: editor ?? null,
2384
2731
  selector: (ctx) => ({
2385
2732
  active: ctx.editor && !ctx.editor.isDestroyed ? ctx.editor.isActive("twitter") : false
@@ -2387,11 +2734,11 @@ var TwitterEmbedControl = ({ className }) => {
2387
2734
  }) ?? { active: false };
2388
2735
  const tweetId = url ? extractTweetId(url) : null;
2389
2736
  const showError = touched && url.length > 0 && !tweetId;
2390
- const resetState = (0, import_react15.useCallback)(() => {
2737
+ const resetState = (0, import_react16.useCallback)(() => {
2391
2738
  setUrl("");
2392
2739
  setTouched(false);
2393
2740
  }, []);
2394
- const handleInsert = (0, import_react15.useCallback)(() => {
2741
+ const handleInsert = (0, import_react16.useCallback)(() => {
2395
2742
  setTouched(true);
2396
2743
  if (!tweetId || !editor) {
2397
2744
  return false;
@@ -2400,7 +2747,7 @@ var TwitterEmbedControl = ({ className }) => {
2400
2747
  resetState();
2401
2748
  return true;
2402
2749
  }, [tweetId, editor, resetState]);
2403
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
2750
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
2404
2751
  Dialog,
2405
2752
  {
2406
2753
  open,
@@ -2411,36 +2758,36 @@ var TwitterEmbedControl = ({ className }) => {
2411
2758
  }
2412
2759
  },
2413
2760
  children: [
2414
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2761
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2415
2762
  DialogTrigger,
2416
2763
  {
2417
- render: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2764
+ render: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2418
2765
  RichTextEditorControl,
2419
2766
  {
2420
2767
  active,
2421
2768
  className,
2422
2769
  title: "Embed Tweet",
2423
2770
  "aria-label": "Embed Tweet",
2424
- children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2771
+ children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2425
2772
  "svg",
2426
2773
  {
2427
2774
  xmlns: "http://www.w3.org/2000/svg",
2428
2775
  viewBox: "0 0 24 24",
2429
2776
  fill: "currentColor",
2430
2777
  className: "rte-editor-icon",
2431
- children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("path", { d: "M18.2 3.2h3.3l-7.2 8.2 8.5 11.2h-6.6l-5.2-6.8-6 6.8H2.7l7.7-8.8L2.3 3.2h6.8l4.7 6.2 5.4-6.2zm-1.2 17.3h1.8L7 4.8H5.1l11.9 15.7z" })
2778
+ children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("path", { d: "M18.2 3.2h3.3l-7.2 8.2 8.5 11.2h-6.6l-5.2-6.8-6 6.8H2.7l7.7-8.8L2.3 3.2h6.8l4.7 6.2 5.4-6.2zm-1.2 17.3h1.8L7 4.8H5.1l11.9 15.7z" })
2432
2779
  }
2433
2780
  )
2434
2781
  }
2435
2782
  )
2436
2783
  }
2437
2784
  ),
2438
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(DialogContent, { children: [
2439
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(DialogHeader, { children: [
2440
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(DialogTitle, { children: "Embed Tweet" }),
2441
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(DialogDescription, { children: "Paste a tweet URL or ID." })
2785
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(DialogContent, { children: [
2786
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(DialogHeader, { children: [
2787
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(DialogTitle, { children: "Embed Tweet" }),
2788
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(DialogDescription, { children: "Paste a tweet URL or ID." })
2442
2789
  ] }),
2443
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2790
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2444
2791
  Input,
2445
2792
  {
2446
2793
  value: url,
@@ -2460,10 +2807,10 @@ var TwitterEmbedControl = ({ className }) => {
2460
2807
  }
2461
2808
  }
2462
2809
  ),
2463
- showError && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("p", { className: "rte-input-error", role: "alert", children: "That doesn't look like a valid tweet URL or ID." }),
2464
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(DialogFooter, { children: [
2465
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(DialogClose, { children: "Cancel" }),
2466
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2810
+ showError && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "rte-input-error", role: "alert", children: "That doesn't look like a valid tweet URL or ID." }),
2811
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(DialogFooter, { children: [
2812
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(DialogClose, { children: "Cancel" }),
2813
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2467
2814
  "button",
2468
2815
  {
2469
2816
  type: "button",
@@ -2486,9 +2833,9 @@ var TwitterEmbedControl = ({ className }) => {
2486
2833
 
2487
2834
  // src/controls/rte-youtube-control.tsx
2488
2835
  var import_core3 = require("@tiptap/core");
2489
- var import_react16 = require("@tiptap/react");
2490
- var import_react17 = require("react");
2491
- var import_jsx_runtime26 = require("react/jsx-runtime");
2836
+ var import_react17 = require("@tiptap/react");
2837
+ var import_react18 = require("react");
2838
+ var import_jsx_runtime27 = require("react/jsx-runtime");
2492
2839
  var getYouTubeId = (url) => {
2493
2840
  const clean = url.trim();
2494
2841
  const patterns = [
@@ -2516,7 +2863,7 @@ var YouTubeNodeView = (props) => {
2516
2863
  if (videoId) {
2517
2864
  watchUrl = videoId.startsWith("http") ? videoId : `https://www.youtube.com/watch?v=${videoId}`;
2518
2865
  }
2519
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2866
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2520
2867
  ResizableNodeView,
2521
2868
  {
2522
2869
  ...props,
@@ -2527,7 +2874,7 @@ var YouTubeNodeView = (props) => {
2527
2874
  videoSrc: rawSrc,
2528
2875
  watchUrl,
2529
2876
  onSrcChange: (newSrc) => updateAttributes({ src: newSrc }),
2530
- children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2877
+ children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2531
2878
  "iframe",
2532
2879
  {
2533
2880
  src: `https://www.youtube-nocookie.com/embed/${videoId}`,
@@ -2605,7 +2952,7 @@ var YouTubeEmbed = import_core3.Node.create({
2605
2952
  ];
2606
2953
  },
2607
2954
  addNodeView() {
2608
- return (0, import_react16.ReactNodeViewRenderer)(YouTubeNodeView);
2955
+ return (0, import_react17.ReactNodeViewRenderer)(YouTubeNodeView);
2609
2956
  },
2610
2957
  atom: true,
2611
2958
  draggable: true,
@@ -2629,32 +2976,32 @@ var YouTubeEmbed = import_core3.Node.create({
2629
2976
  });
2630
2977
  var YouTubeEmbedControl = ({ className }) => {
2631
2978
  const { editor } = useRichTextEditorContext();
2632
- const [open, setOpen] = (0, import_react17.useState)(false);
2633
- const [url, setUrl] = (0, import_react17.useState)("");
2634
- const { active } = (0, import_react16.useEditorState)({
2979
+ const [open, setOpen] = (0, import_react18.useState)(false);
2980
+ const [url, setUrl] = (0, import_react18.useState)("");
2981
+ const { active } = (0, import_react17.useEditorState)({
2635
2982
  editor: editor ?? null,
2636
2983
  selector: (ctx) => ({
2637
2984
  active: ctx.editor && !ctx.editor.isDestroyed ? ctx.editor.isActive("youtube") : false
2638
2985
  })
2639
2986
  }) ?? { active: false };
2640
- const handleInsert = (0, import_react17.useCallback)(() => {
2987
+ const handleInsert = (0, import_react18.useCallback)(() => {
2641
2988
  if (url && editor) {
2642
2989
  editor.chain().focus().setYouTubeEmbed(url).run();
2643
2990
  setUrl("");
2644
2991
  }
2645
2992
  }, [url, editor]);
2646
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(Dialog, { open, onOpenChange: setOpen, children: [
2647
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2993
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(Dialog, { open, onOpenChange: setOpen, children: [
2994
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2648
2995
  DialogTrigger,
2649
2996
  {
2650
- render: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2997
+ render: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2651
2998
  RichTextEditorControl,
2652
2999
  {
2653
3000
  active,
2654
3001
  className,
2655
3002
  title: "Embed YouTube video",
2656
3003
  "aria-label": "Embed YouTube video",
2657
- children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
3004
+ children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
2658
3005
  "svg",
2659
3006
  {
2660
3007
  xmlns: "http://www.w3.org/2000/svg",
@@ -2666,8 +3013,8 @@ var YouTubeEmbedControl = ({ className }) => {
2666
3013
  strokeLinejoin: "round",
2667
3014
  className: "rte-editor-icon",
2668
3015
  children: [
2669
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("path", { d: "M23.5 6.2a3 3 0 0 0-2.1-2.1C19.5 3.5 12 3.5 12 3.5s-7.5 0-9.4.6a3 3 0 0 0-2.1 2.1C0 8.1 0 12 0 12s0 3.9.5 5.8a3 3 0 0 0 2.1 2.1c1.9.6 9.4.6 9.4.6s7.5 0 9.4-.6a3 3 0 0 0 2.1-2.1c.5-1.9.5-5.8.5-5.8s0-3.9-.5-5.8z" }),
2670
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("path", { d: "M9.5 15.5V8.5l6.2 3.5z" })
3016
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("path", { d: "M23.5 6.2a3 3 0 0 0-2.1-2.1C19.5 3.5 12 3.5 12 3.5s-7.5 0-9.4.6a3 3 0 0 0-2.1 2.1C0 8.1 0 12 0 12s0 3.9.5 5.8a3 3 0 0 0 2.1 2.1c1.9.6 9.4.6 9.4.6s7.5 0 9.4-.6a3 3 0 0 0 2.1-2.1c.5-1.9.5-5.8.5-5.8s0-3.9-.5-5.8z" }),
3017
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("path", { d: "M9.5 15.5V8.5l6.2 3.5z" })
2671
3018
  ]
2672
3019
  }
2673
3020
  )
@@ -2675,12 +3022,12 @@ var YouTubeEmbedControl = ({ className }) => {
2675
3022
  )
2676
3023
  }
2677
3024
  ),
2678
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(DialogContent, { showCloseButton: false, children: [
2679
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(DialogHeader, { children: [
2680
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(DialogTitle, { children: "Embed YouTube video" }),
2681
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(DialogDescription, { children: "Paste a YouTube video URL or ID." })
3025
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(DialogContent, { showCloseButton: false, children: [
3026
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(DialogHeader, { children: [
3027
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(DialogTitle, { children: "Embed YouTube video" }),
3028
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(DialogDescription, { children: "Paste a YouTube video URL or ID." })
2682
3029
  ] }),
2683
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
3030
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2684
3031
  Input,
2685
3032
  {
2686
3033
  value: url,
@@ -2694,9 +3041,9 @@ var YouTubeEmbedControl = ({ className }) => {
2694
3041
  }
2695
3042
  }
2696
3043
  ),
2697
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(DialogFooter, { children: [
2698
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(DialogClose, { children: "Cancel" }),
2699
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
3044
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(DialogFooter, { children: [
3045
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(DialogClose, { children: "Cancel" }),
3046
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2700
3047
  DialogClose,
2701
3048
  {
2702
3049
  disabled: !url,
@@ -2752,16 +3099,16 @@ var DEFAULT_LABELS = {
2752
3099
  };
2753
3100
 
2754
3101
  // src/rte-content.tsx
2755
- var import_react18 = require("@tiptap/react");
2756
- var import_jsx_runtime27 = require("react/jsx-runtime");
3102
+ var import_react19 = require("@tiptap/react");
3103
+ var import_jsx_runtime28 = require("react/jsx-runtime");
2757
3104
  var Content = ({
2758
3105
  children,
2759
3106
  className
2760
3107
  }) => {
2761
3108
  const { editor, preset, variant } = useRichTextEditorContext();
2762
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "relative", children: [
2763
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2764
- import_react18.EditorContent,
3109
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "relative", children: [
3110
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
3111
+ import_react19.EditorContent,
2765
3112
  {
2766
3113
  editor,
2767
3114
  className: cn(
@@ -2778,8 +3125,8 @@ var Content = ({
2778
3125
  };
2779
3126
 
2780
3127
  // src/rte-controls-group.tsx
2781
- var import_react19 = require("react");
2782
- var import_jsx_runtime28 = require("react/jsx-runtime");
3128
+ var import_react20 = require("react");
3129
+ var import_jsx_runtime29 = require("react/jsx-runtime");
2783
3130
  var SEPARATOR = "[.rte-controls-group+&]:before:w-px [.rte-controls-group+&]:before:shrink-0 [.rte-controls-group+&]:before:bg-border [.rte-controls-group+&]:before:content-['']";
2784
3131
  var BUTTON = "[&>button]:border-none [&>button]:bg-transparent [&>button]:transition-[background-color,color] [&>button]:duration-150 [&>button]:ease-[ease-out] [&>button:focus-visible]:outline-2 [&>button:focus-visible]:outline-offset-1 [&>button:focus-visible]:outline-ring/50 [&>button:focus-visible]:outline-solid";
2785
3132
  var variantClasses = {
@@ -2791,8 +3138,8 @@ var ControlsGroup = ({
2791
3138
  children,
2792
3139
  className
2793
3140
  }) => {
2794
- const variant = (0, import_react19.useContext)(RichTextEditorContext)?.variant;
2795
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
3141
+ const variant = (0, import_react20.useContext)(RichTextEditorContext)?.variant;
3142
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
2796
3143
  "div",
2797
3144
  {
2798
3145
  className: cn(
@@ -2806,8 +3153,8 @@ var ControlsGroup = ({
2806
3153
  };
2807
3154
 
2808
3155
  // src/rte-footer.tsx
2809
- var import_react20 = require("react");
2810
- var import_jsx_runtime29 = require("react/jsx-runtime");
3156
+ var import_react21 = require("react");
3157
+ var import_jsx_runtime30 = require("react/jsx-runtime");
2811
3158
  var Footer = ({
2812
3159
  children,
2813
3160
  className,
@@ -2818,9 +3165,9 @@ var Footer = ({
2818
3165
  wordCountFormatter
2819
3166
  }) => {
2820
3167
  const { editor, variant } = useRichTextEditorContext();
2821
- const [, forceUpdate] = (0, import_react20.useState)(0);
2822
- const rafRef = (0, import_react20.useRef)(null);
2823
- (0, import_react20.useEffect)(() => {
3168
+ const [, forceUpdate] = (0, import_react21.useState)(0);
3169
+ const rafRef = (0, import_react21.useRef)(null);
3170
+ (0, import_react21.useEffect)(() => {
2824
3171
  if (!editor || !showWordCount) {
2825
3172
  return;
2826
3173
  }
@@ -2849,7 +3196,7 @@ var Footer = ({
2849
3196
  }
2850
3197
  };
2851
3198
  }, [editor, showWordCount]);
2852
- const wordCount = (0, import_react20.useMemo)(() => {
3199
+ const wordCount = (0, import_react21.useMemo)(() => {
2853
3200
  if (!editor || !showWordCount) {
2854
3201
  return null;
2855
3202
  }
@@ -2866,7 +3213,7 @@ var Footer = ({
2866
3213
  if (!showWordCount && !children) {
2867
3214
  return null;
2868
3215
  }
2869
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
3216
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
2870
3217
  "div",
2871
3218
  {
2872
3219
  className: cn(
@@ -2880,28 +3227,28 @@ var Footer = ({
2880
3227
  "data-sticky": sticky ? "" : void 0,
2881
3228
  style: sticky ? { bottom: stickyOffset } : void 0,
2882
3229
  children: [
2883
- showWordCount && wordCount && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
3230
+ showWordCount && wordCount && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2884
3231
  "span",
2885
3232
  {
2886
3233
  className: cn(
2887
3234
  "rte-footer-word-count inline-flex items-center gap-1.5 text-[0.75rem] whitespace-nowrap",
2888
3235
  wordCountClassName
2889
3236
  ),
2890
- children: wordCountFormatter ? wordCountFormatter(wordCount) : /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_jsx_runtime29.Fragment, { children: [
2891
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("span", { className: "rte-footer-word-count-stat inline-flex items-baseline gap-1", children: [
2892
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "rte-footer-word-count-number font-medium text-foreground tabular-nums", children: wordCount.words }),
2893
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "rte-footer-word-count-unit text-muted-foreground", children: "words" })
3237
+ children: wordCountFormatter ? wordCountFormatter(wordCount) : /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_jsx_runtime30.Fragment, { children: [
3238
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("span", { className: "rte-footer-word-count-stat inline-flex items-baseline gap-1", children: [
3239
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "rte-footer-word-count-number font-medium text-foreground tabular-nums", children: wordCount.words }),
3240
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "rte-footer-word-count-unit text-muted-foreground", children: "words" })
2894
3241
  ] }),
2895
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
3242
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2896
3243
  "span",
2897
3244
  {
2898
3245
  className: "rte-footer-word-count-separator size-[3px] shrink-0 rounded-full bg-[color-mix(in_srgb,var(--muted-foreground)_45%,transparent)]",
2899
3246
  "aria-hidden": "true"
2900
3247
  }
2901
3248
  ),
2902
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("span", { className: "rte-footer-word-count-stat inline-flex items-baseline gap-1", children: [
2903
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "rte-footer-word-count-number font-medium text-foreground tabular-nums", children: wordCount.characters }),
2904
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "rte-footer-word-count-unit text-muted-foreground", children: "characters" })
3249
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("span", { className: "rte-footer-word-count-stat inline-flex items-baseline gap-1", children: [
3250
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "rte-footer-word-count-number font-medium text-foreground tabular-nums", children: wordCount.characters }),
3251
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "rte-footer-word-count-unit text-muted-foreground", children: "characters" })
2905
3252
  ] })
2906
3253
  ] })
2907
3254
  }
@@ -2913,7 +3260,7 @@ var Footer = ({
2913
3260
  };
2914
3261
 
2915
3262
  // src/rte-toolbar.tsx
2916
- var import_jsx_runtime30 = require("react/jsx-runtime");
3263
+ var import_jsx_runtime31 = require("react/jsx-runtime");
2917
3264
  var Toolbar = ({
2918
3265
  children,
2919
3266
  className,
@@ -2924,7 +3271,7 @@ var Toolbar = ({
2924
3271
  if (!editable) {
2925
3272
  return null;
2926
3273
  }
2927
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3274
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2928
3275
  "div",
2929
3276
  {
2930
3277
  className: cn(
@@ -2946,7 +3293,7 @@ var Toolbar = ({
2946
3293
  };
2947
3294
 
2948
3295
  // src/rte-text-editor.tsx
2949
- var import_jsx_runtime31 = require("react/jsx-runtime");
3296
+ var import_jsx_runtime32 = require("react/jsx-runtime");
2950
3297
  var RichTextEditorRoot = ({
2951
3298
  editor,
2952
3299
  children,
@@ -2957,18 +3304,18 @@ var RichTextEditorRoot = ({
2957
3304
  preset = "document",
2958
3305
  editable = true
2959
3306
  }) => {
2960
- const mergedLabels = (0, import_react21.useMemo)(
3307
+ const mergedLabels = (0, import_react22.useMemo)(
2961
3308
  () => ({ ...DEFAULT_LABELS, ...labels }),
2962
3309
  [labels]
2963
3310
  );
2964
- const mergedIcons = (0, import_react21.useMemo)(() => ({ ...DEFAULT_ICONS, ...icons }), [icons]);
2965
- const [tooltip] = (0, import_react21.useState)(createTooltipHandle);
2966
- (0, import_react21.useEffect)(() => {
3311
+ const mergedIcons = (0, import_react22.useMemo)(() => ({ ...DEFAULT_ICONS, ...icons }), [icons]);
3312
+ const [tooltip] = (0, import_react22.useState)(createTooltipHandle);
3313
+ (0, import_react22.useEffect)(() => {
2967
3314
  if (editor && editor.isEditable !== editable) {
2968
3315
  editor.setEditable(editable);
2969
3316
  }
2970
3317
  }, [editor, editable]);
2971
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3318
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
2972
3319
  RichTextEditorContext.Provider,
2973
3320
  {
2974
3321
  value: {
@@ -2980,7 +3327,7 @@ var RichTextEditorRoot = ({
2980
3327
  tooltip,
2981
3328
  variant
2982
3329
  },
2983
- children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3330
+ children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
2984
3331
  "div",
2985
3332
  {
2986
3333
  className: cn(
@@ -2991,7 +3338,7 @@ var RichTextEditorRoot = ({
2991
3338
  className
2992
3339
  ),
2993
3340
  "data-variant": variant,
2994
- children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(TooltipProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(TooltipHost, { handle: tooltip, side: "bottom", children }) })
3341
+ children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(TooltipProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(TooltipHost, { handle: tooltip, side: "bottom", children }) })
2995
3342
  }
2996
3343
  )
2997
3344
  }