@editorcn/editor 0.5.0 → 0.5.1

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