@react-email/editor 0.0.0-experimental.43 → 0.0.0-experimental.45
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/core/index.cjs +2 -2
- package/dist/core/index.d.cts +1 -1
- package/dist/core/index.d.mts +1 -1
- package/dist/core/index.mjs +2 -2
- package/dist/{event-bus-DJpnfDHw.mjs → event-bus-BFzKTuhV.mjs} +23 -3
- package/dist/event-bus-BFzKTuhV.mjs.map +1 -0
- package/dist/{event-bus-BJn1dJM1.cjs → event-bus-D-uahiao.cjs} +39 -1
- package/dist/{extension-DcToBuV0.mjs → extension-B_ImOuII.mjs} +2 -2
- package/dist/extension-B_ImOuII.mjs.map +1 -0
- package/dist/{extension-CF0s-pGh.cjs → extension-DHsEsAaO.cjs} +2 -2
- package/dist/extensions/index.cjs +3 -3
- package/dist/extensions/index.d.cts +3 -1
- package/dist/extensions/index.d.cts.map +1 -1
- package/dist/extensions/index.d.mts +3 -1
- package/dist/extensions/index.d.mts.map +1 -1
- package/dist/extensions/index.mjs +3 -3
- package/dist/{extensions-B6VCxUmi.cjs → extensions-5sSJryUX.cjs} +19 -30
- package/dist/{extensions-mStGDfMH.mjs → extensions-BT49qi4I.mjs} +18 -29
- package/dist/extensions-BT49qi4I.mjs.map +1 -0
- package/dist/{global-content-CjA49_jE.mjs → global-content-6jVh6L0b.mjs} +13 -2
- package/dist/global-content-6jVh6L0b.mjs.map +1 -0
- package/dist/{global-content-C5WjNoMX.cjs → global-content-D3TNgSN6.cjs} +24 -1
- package/dist/{index-i5JdL0UD.d.mts → index-BL2rehV8.d.mts} +11 -10
- package/dist/index-BL2rehV8.d.mts.map +1 -0
- package/dist/{index-LCPnE_xx.d.cts → index-DJgMqa5C.d.cts} +11 -10
- package/dist/index-DJgMqa5C.d.cts.map +1 -0
- package/dist/index.cjs +5 -10
- package/dist/index.css +339 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +8 -13
- package/dist/index.mjs.map +1 -1
- package/dist/plugins/index.cjs +1 -1
- package/dist/plugins/index.mjs +1 -1
- package/dist/{root-D6lslKju.cjs → root-CEAehvsX.cjs} +74 -87
- package/dist/{root-BVs63m-4.mjs → root-CJuwiIRn.mjs} +46 -47
- package/dist/root-CJuwiIRn.mjs.map +1 -0
- package/dist/ui/index.cjs +2426 -115
- package/dist/ui/index.d.cts +362 -229
- package/dist/ui/index.d.cts.map +1 -1
- package/dist/ui/index.d.mts +362 -229
- package/dist/ui/index.d.mts.map +1 -1
- package/dist/ui/index.mjs +2395 -92
- package/dist/ui/index.mjs.map +1 -1
- package/dist/ui/inspector/inspector.css +338 -0
- package/dist/ui/themes/default.css +339 -0
- package/package.json +8 -6
- package/readme.md +69 -0
- package/dist/event-bus-DJpnfDHw.mjs.map +0 -1
- package/dist/extension-DcToBuV0.mjs.map +0 -1
- package/dist/extensions-mStGDfMH.mjs.map +0 -1
- package/dist/global-content-CjA49_jE.mjs.map +0 -1
- package/dist/index-LCPnE_xx.d.cts.map +0 -1
- package/dist/index-i5JdL0UD.d.mts.map +0 -1
- package/dist/root-BVs63m-4.mjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_event_bus = require('./event-bus-
|
|
1
|
+
const require_event_bus = require('./event-bus-D-uahiao.cjs');
|
|
2
2
|
const require_set_text_alignment = require('./set-text-alignment-aNb7Ml9N.cjs');
|
|
3
3
|
let _tiptap_react = require("@tiptap/react");
|
|
4
4
|
let react = require("react");
|
|
@@ -125,7 +125,7 @@ function CaseUpperIcon({ size, width, height, ...props }) {
|
|
|
125
125
|
|
|
126
126
|
//#endregion
|
|
127
127
|
//#region src/ui/icons/check.tsx
|
|
128
|
-
function
|
|
128
|
+
function CheckIcon({ size, width, height, ...props }) {
|
|
129
129
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
130
130
|
xmlns: "http://www.w3.org/2000/svg",
|
|
131
131
|
width: size ?? width ?? 24,
|
|
@@ -144,7 +144,7 @@ function Check({ size, width, height, ...props }) {
|
|
|
144
144
|
|
|
145
145
|
//#endregion
|
|
146
146
|
//#region src/ui/icons/chevron-down.tsx
|
|
147
|
-
function
|
|
147
|
+
function ChevronDownIcon({ size, width, height, ...props }) {
|
|
148
148
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
149
149
|
xmlns: "http://www.w3.org/2000/svg",
|
|
150
150
|
width: size ?? width ?? 24,
|
|
@@ -179,11 +179,10 @@ function CodeIcon({ size, width, height, ...props }) {
|
|
|
179
179
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "m16 18 6-6-6-6" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "m8 6-6 6 6 6" })]
|
|
180
180
|
});
|
|
181
181
|
}
|
|
182
|
-
const Code = CodeIcon;
|
|
183
182
|
|
|
184
183
|
//#endregion
|
|
185
184
|
//#region src/ui/icons/columns-2.tsx
|
|
186
|
-
function
|
|
185
|
+
function Columns2Icon({ size, width, height, ...props }) {
|
|
187
186
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
188
187
|
xmlns: "http://www.w3.org/2000/svg",
|
|
189
188
|
width: size ?? width ?? 24,
|
|
@@ -208,7 +207,7 @@ function Columns2({ size, width, height, ...props }) {
|
|
|
208
207
|
|
|
209
208
|
//#endregion
|
|
210
209
|
//#region src/ui/icons/columns-3.tsx
|
|
211
|
-
function
|
|
210
|
+
function Columns3Icon({ size, width, height, ...props }) {
|
|
212
211
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
213
212
|
xmlns: "http://www.w3.org/2000/svg",
|
|
214
213
|
width: size ?? width ?? 24,
|
|
@@ -237,7 +236,7 @@ function Columns3({ size, width, height, ...props }) {
|
|
|
237
236
|
|
|
238
237
|
//#endregion
|
|
239
238
|
//#region src/ui/icons/columns-4.tsx
|
|
240
|
-
function
|
|
239
|
+
function Columns4Icon({ size, width, height, ...props }) {
|
|
241
240
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
242
241
|
xmlns: "http://www.w3.org/2000/svg",
|
|
243
242
|
width: size ?? width ?? 24,
|
|
@@ -290,7 +289,7 @@ function ExternalLinkIcon({ size, width, height, ...props }) {
|
|
|
290
289
|
|
|
291
290
|
//#endregion
|
|
292
291
|
//#region src/ui/icons/heading-1.tsx
|
|
293
|
-
function
|
|
292
|
+
function Heading1Icon({ size, width, height, ...props }) {
|
|
294
293
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
295
294
|
xmlns: "http://www.w3.org/2000/svg",
|
|
296
295
|
width: size ?? width ?? 24,
|
|
@@ -314,7 +313,7 @@ function Heading1({ size, width, height, ...props }) {
|
|
|
314
313
|
|
|
315
314
|
//#endregion
|
|
316
315
|
//#region src/ui/icons/heading-2.tsx
|
|
317
|
-
function
|
|
316
|
+
function Heading2Icon({ size, width, height, ...props }) {
|
|
318
317
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
319
318
|
xmlns: "http://www.w3.org/2000/svg",
|
|
320
319
|
width: size ?? width ?? 24,
|
|
@@ -338,7 +337,7 @@ function Heading2({ size, width, height, ...props }) {
|
|
|
338
337
|
|
|
339
338
|
//#endregion
|
|
340
339
|
//#region src/ui/icons/heading-3.tsx
|
|
341
|
-
function
|
|
340
|
+
function Heading3Icon({ size, width, height, ...props }) {
|
|
342
341
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
343
342
|
xmlns: "http://www.w3.org/2000/svg",
|
|
344
343
|
width: size ?? width ?? 24,
|
|
@@ -420,7 +419,7 @@ function LinkIcon({ size, width, height, ...props }) {
|
|
|
420
419
|
|
|
421
420
|
//#endregion
|
|
422
421
|
//#region src/ui/icons/list.tsx
|
|
423
|
-
function
|
|
422
|
+
function ListIcon({ size, width, height, ...props }) {
|
|
424
423
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
425
424
|
xmlns: "http://www.w3.org/2000/svg",
|
|
426
425
|
width: size ?? width ?? 24,
|
|
@@ -446,7 +445,7 @@ function List({ size, width, height, ...props }) {
|
|
|
446
445
|
|
|
447
446
|
//#endregion
|
|
448
447
|
//#region src/ui/icons/list-ordered.tsx
|
|
449
|
-
function
|
|
448
|
+
function ListOrderedIcon({ size, width, height, ...props }) {
|
|
450
449
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
451
450
|
xmlns: "http://www.w3.org/2000/svg",
|
|
452
451
|
width: size ?? width ?? 24,
|
|
@@ -472,7 +471,7 @@ function ListOrdered({ size, width, height, ...props }) {
|
|
|
472
471
|
|
|
473
472
|
//#endregion
|
|
474
473
|
//#region src/ui/icons/mouse-pointer.tsx
|
|
475
|
-
function
|
|
474
|
+
function MousePointerIcon({ size, width, height, ...props }) {
|
|
476
475
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
477
476
|
xmlns: "http://www.w3.org/2000/svg",
|
|
478
477
|
width: size ?? width ?? 24,
|
|
@@ -510,7 +509,7 @@ function PencilIcon({ size, width, height, ...props }) {
|
|
|
510
509
|
|
|
511
510
|
//#endregion
|
|
512
511
|
//#region src/ui/icons/rows-2.tsx
|
|
513
|
-
function
|
|
512
|
+
function Rows2Icon({ size, width, height, ...props }) {
|
|
514
513
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
515
514
|
xmlns: "http://www.w3.org/2000/svg",
|
|
516
515
|
width: size ?? width ?? 24,
|
|
@@ -535,7 +534,7 @@ function Rows2({ size, width, height, ...props }) {
|
|
|
535
534
|
|
|
536
535
|
//#endregion
|
|
537
536
|
//#region src/ui/icons/split-square-vertical.tsx
|
|
538
|
-
function
|
|
537
|
+
function SplitSquareVerticalIcon({ size, width, height, ...props }) {
|
|
539
538
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
540
539
|
xmlns: "http://www.w3.org/2000/svg",
|
|
541
540
|
width: size ?? width ?? 24,
|
|
@@ -563,7 +562,7 @@ function SplitSquareVertical({ size, width, height, ...props }) {
|
|
|
563
562
|
|
|
564
563
|
//#endregion
|
|
565
564
|
//#region src/ui/icons/square-code.tsx
|
|
566
|
-
function
|
|
565
|
+
function SquareCodeIcon({ size, width, height, ...props }) {
|
|
567
566
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
568
567
|
xmlns: "http://www.w3.org/2000/svg",
|
|
569
568
|
width: size ?? width ?? 24,
|
|
@@ -640,11 +639,10 @@ function TextIcon({ size, width, height, ...props }) {
|
|
|
640
639
|
]
|
|
641
640
|
});
|
|
642
641
|
}
|
|
643
|
-
const Text = TextIcon;
|
|
644
642
|
|
|
645
643
|
//#endregion
|
|
646
644
|
//#region src/ui/icons/text-quote.tsx
|
|
647
|
-
function
|
|
645
|
+
function TextQuoteIcon({ size, width, height, ...props }) {
|
|
648
646
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
649
647
|
xmlns: "http://www.w3.org/2000/svg",
|
|
650
648
|
width: size ?? width ?? 24,
|
|
@@ -913,7 +911,7 @@ function BubbleMenuButtonForm({ className, validateUrl, onLinkApply, onLinkRemov
|
|
|
913
911
|
"aria-label": "Apply link",
|
|
914
912
|
"data-re-btn-bm-apply": "",
|
|
915
913
|
onMouseDown: (e) => e.stopPropagation(),
|
|
916
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
914
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CheckIcon, {})
|
|
917
915
|
})]
|
|
918
916
|
});
|
|
919
917
|
}
|
|
@@ -1329,7 +1327,7 @@ function LinkForm({ editor, currentHref, validateUrl, onLinkApply, onLinkRemove,
|
|
|
1329
1327
|
"aria-label": "Apply link",
|
|
1330
1328
|
"data-re-link-selector-apply": "",
|
|
1331
1329
|
onMouseDown: (e) => e.stopPropagation(),
|
|
1332
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
1330
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CheckIcon, {})
|
|
1333
1331
|
})
|
|
1334
1332
|
]
|
|
1335
1333
|
});
|
|
@@ -1374,43 +1372,43 @@ function NodeSelectorRoot({ omit = [], open: controlledOpen, onOpenChange, class
|
|
|
1374
1372
|
},
|
|
1375
1373
|
{
|
|
1376
1374
|
name: "Title",
|
|
1377
|
-
icon:
|
|
1375
|
+
icon: Heading1Icon,
|
|
1378
1376
|
command: () => editor.chain().focus().clearNodes().toggleHeading({ level: 1 }).run(),
|
|
1379
1377
|
isActive: editorState?.isHeading1Active ?? false
|
|
1380
1378
|
},
|
|
1381
1379
|
{
|
|
1382
1380
|
name: "Subtitle",
|
|
1383
|
-
icon:
|
|
1381
|
+
icon: Heading2Icon,
|
|
1384
1382
|
command: () => editor.chain().focus().clearNodes().toggleHeading({ level: 2 }).run(),
|
|
1385
1383
|
isActive: editorState?.isHeading2Active ?? false
|
|
1386
1384
|
},
|
|
1387
1385
|
{
|
|
1388
1386
|
name: "Heading",
|
|
1389
|
-
icon:
|
|
1387
|
+
icon: Heading3Icon,
|
|
1390
1388
|
command: () => editor.chain().focus().clearNodes().toggleHeading({ level: 3 }).run(),
|
|
1391
1389
|
isActive: editorState?.isHeading3Active ?? false
|
|
1392
1390
|
},
|
|
1393
1391
|
{
|
|
1394
1392
|
name: "Bullet List",
|
|
1395
|
-
icon:
|
|
1393
|
+
icon: ListIcon,
|
|
1396
1394
|
command: () => editor.chain().focus().clearNodes().toggleBulletList().run(),
|
|
1397
1395
|
isActive: editorState?.isBulletListActive ?? false
|
|
1398
1396
|
},
|
|
1399
1397
|
{
|
|
1400
1398
|
name: "Numbered List",
|
|
1401
|
-
icon:
|
|
1399
|
+
icon: ListOrderedIcon,
|
|
1402
1400
|
command: () => editor.chain().focus().clearNodes().toggleOrderedList().run(),
|
|
1403
1401
|
isActive: editorState?.isOrderedListActive ?? false
|
|
1404
1402
|
},
|
|
1405
1403
|
{
|
|
1406
1404
|
name: "Quote",
|
|
1407
|
-
icon:
|
|
1405
|
+
icon: TextQuoteIcon,
|
|
1408
1406
|
command: () => editor.chain().focus().clearNodes().toggleNode("paragraph", "paragraph").toggleBlockquote().run(),
|
|
1409
1407
|
isActive: editorState?.isBlockquoteActive ?? false
|
|
1410
1408
|
},
|
|
1411
1409
|
{
|
|
1412
1410
|
name: "Code",
|
|
1413
|
-
icon:
|
|
1411
|
+
icon: CodeIcon,
|
|
1414
1412
|
command: () => editor.chain().focus().clearNodes().toggleCodeBlock().run(),
|
|
1415
1413
|
isActive: editorState?.isCodeBlockActive ?? false
|
|
1416
1414
|
}
|
|
@@ -1449,7 +1447,7 @@ function NodeSelectorTrigger({ className, children }) {
|
|
|
1449
1447
|
"data-re-node-selector-trigger": "",
|
|
1450
1448
|
className,
|
|
1451
1449
|
onClick: () => setIsOpen(!isOpen),
|
|
1452
|
-
children: children ?? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: activeItem.name }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
1450
|
+
children: children ?? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: activeItem.name }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ChevronDownIcon, {})] })
|
|
1453
1451
|
});
|
|
1454
1452
|
}
|
|
1455
1453
|
function NodeSelectorContent({ className, align = "start", children }) {
|
|
@@ -1471,7 +1469,7 @@ function NodeSelectorContent({ className, align = "start", children }) {
|
|
|
1471
1469
|
children: [
|
|
1472
1470
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icon, {}),
|
|
1473
1471
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: item.name }),
|
|
1474
|
-
item.isActive && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
1472
|
+
item.isActive && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CheckIcon, {})
|
|
1475
1473
|
]
|
|
1476
1474
|
}, item.name);
|
|
1477
1475
|
})
|
|
@@ -1750,7 +1748,7 @@ function BubbleMenuLinkForm({ className, validateUrl, onLinkApply, onLinkRemove,
|
|
|
1750
1748
|
"aria-label": "Apply link",
|
|
1751
1749
|
"data-re-link-bm-apply": "",
|
|
1752
1750
|
onMouseDown: (e) => e.stopPropagation(),
|
|
1753
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
1751
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CheckIcon, {})
|
|
1754
1752
|
})
|
|
1755
1753
|
]
|
|
1756
1754
|
});
|
|
@@ -1945,7 +1943,7 @@ function CommandList({ items, query, selectedIndex, onSelect }) {
|
|
|
1945
1943
|
const TEXT = {
|
|
1946
1944
|
title: "Text",
|
|
1947
1945
|
description: "Plain text block",
|
|
1948
|
-
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
1946
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TextIcon, { size: 20 }),
|
|
1949
1947
|
category: "Text",
|
|
1950
1948
|
searchTerms: ["p", "paragraph"],
|
|
1951
1949
|
command: ({ editor, range }) => {
|
|
@@ -1955,7 +1953,7 @@ const TEXT = {
|
|
|
1955
1953
|
const H1 = {
|
|
1956
1954
|
title: "Title",
|
|
1957
1955
|
description: "Large heading",
|
|
1958
|
-
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
1956
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Heading1Icon, { size: 20 }),
|
|
1959
1957
|
category: "Text",
|
|
1960
1958
|
searchTerms: [
|
|
1961
1959
|
"title",
|
|
@@ -1970,7 +1968,7 @@ const H1 = {
|
|
|
1970
1968
|
const H2 = {
|
|
1971
1969
|
title: "Subtitle",
|
|
1972
1970
|
description: "Medium heading",
|
|
1973
|
-
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
1971
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Heading2Icon, { size: 20 }),
|
|
1974
1972
|
category: "Text",
|
|
1975
1973
|
searchTerms: [
|
|
1976
1974
|
"subtitle",
|
|
@@ -1984,7 +1982,7 @@ const H2 = {
|
|
|
1984
1982
|
const H3 = {
|
|
1985
1983
|
title: "Heading",
|
|
1986
1984
|
description: "Small heading",
|
|
1987
|
-
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
1985
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Heading3Icon, { size: 20 }),
|
|
1988
1986
|
category: "Text",
|
|
1989
1987
|
searchTerms: [
|
|
1990
1988
|
"subtitle",
|
|
@@ -1998,7 +1996,7 @@ const H3 = {
|
|
|
1998
1996
|
const BULLET_LIST = {
|
|
1999
1997
|
title: "Bullet list",
|
|
2000
1998
|
description: "Unordered list",
|
|
2001
|
-
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
1999
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ListIcon, { size: 20 }),
|
|
2002
2000
|
category: "Text",
|
|
2003
2001
|
searchTerms: ["unordered", "point"],
|
|
2004
2002
|
command: ({ editor, range }) => {
|
|
@@ -2008,7 +2006,7 @@ const BULLET_LIST = {
|
|
|
2008
2006
|
const NUMBERED_LIST = {
|
|
2009
2007
|
title: "Numbered list",
|
|
2010
2008
|
description: "Ordered list",
|
|
2011
|
-
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
2009
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ListOrderedIcon, { size: 20 }),
|
|
2012
2010
|
category: "Text",
|
|
2013
2011
|
searchTerms: ["ordered"],
|
|
2014
2012
|
command: ({ editor, range }) => {
|
|
@@ -2018,7 +2016,7 @@ const NUMBERED_LIST = {
|
|
|
2018
2016
|
const QUOTE = {
|
|
2019
2017
|
title: "Quote",
|
|
2020
2018
|
description: "Block quote",
|
|
2021
|
-
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
2019
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TextQuoteIcon, { size: 20 }),
|
|
2022
2020
|
category: "Text",
|
|
2023
2021
|
searchTerms: ["blockquote"],
|
|
2024
2022
|
command: ({ editor, range }) => {
|
|
@@ -2028,7 +2026,7 @@ const QUOTE = {
|
|
|
2028
2026
|
const CODE = {
|
|
2029
2027
|
title: "Code block",
|
|
2030
2028
|
description: "Code snippet",
|
|
2031
|
-
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
2029
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SquareCodeIcon, { size: 20 }),
|
|
2032
2030
|
category: "Text",
|
|
2033
2031
|
searchTerms: ["codeblock"],
|
|
2034
2032
|
command: ({ editor, range }) => {
|
|
@@ -2038,7 +2036,7 @@ const CODE = {
|
|
|
2038
2036
|
const BUTTON = {
|
|
2039
2037
|
title: "Button",
|
|
2040
2038
|
description: "Clickable button",
|
|
2041
|
-
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
2039
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MousePointerIcon, { size: 20 }),
|
|
2042
2040
|
category: "Layout",
|
|
2043
2041
|
searchTerms: ["button"],
|
|
2044
2042
|
command: ({ editor, range }) => {
|
|
@@ -2048,7 +2046,7 @@ const BUTTON = {
|
|
|
2048
2046
|
const DIVIDER = {
|
|
2049
2047
|
title: "Divider",
|
|
2050
2048
|
description: "Horizontal separator",
|
|
2051
|
-
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
2049
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SplitSquareVerticalIcon, { size: 20 }),
|
|
2052
2050
|
category: "Layout",
|
|
2053
2051
|
searchTerms: [
|
|
2054
2052
|
"hr",
|
|
@@ -2062,7 +2060,7 @@ const DIVIDER = {
|
|
|
2062
2060
|
const SECTION = {
|
|
2063
2061
|
title: "Section",
|
|
2064
2062
|
description: "Content section",
|
|
2065
|
-
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
2063
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Rows2Icon, { size: 20 }),
|
|
2066
2064
|
category: "Layout",
|
|
2067
2065
|
searchTerms: [
|
|
2068
2066
|
"section",
|
|
@@ -2076,7 +2074,7 @@ const SECTION = {
|
|
|
2076
2074
|
const TWO_COLUMNS = {
|
|
2077
2075
|
title: "2 columns",
|
|
2078
2076
|
description: "Two column layout",
|
|
2079
|
-
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
2077
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Columns2Icon, { size: 20 }),
|
|
2080
2078
|
category: "Layout",
|
|
2081
2079
|
searchTerms: [
|
|
2082
2080
|
"columns",
|
|
@@ -2097,7 +2095,7 @@ const TWO_COLUMNS = {
|
|
|
2097
2095
|
const THREE_COLUMNS = {
|
|
2098
2096
|
title: "3 columns",
|
|
2099
2097
|
description: "Three column layout",
|
|
2100
|
-
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
2098
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Columns3Icon, { size: 20 }),
|
|
2101
2099
|
category: "Layout",
|
|
2102
2100
|
searchTerms: [
|
|
2103
2101
|
"columns",
|
|
@@ -2117,7 +2115,7 @@ const THREE_COLUMNS = {
|
|
|
2117
2115
|
const FOUR_COLUMNS = {
|
|
2118
2116
|
title: "4 columns",
|
|
2119
2117
|
description: "Four column layout",
|
|
2120
|
-
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
2118
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Columns4Icon, { size: 20 }),
|
|
2121
2119
|
category: "Layout",
|
|
2122
2120
|
searchTerms: [
|
|
2123
2121
|
"columns",
|
|
@@ -2219,7 +2217,8 @@ function SlashCommandRoot({ items: itemsProp, filterItems: filterItemsProp, char
|
|
|
2219
2217
|
});
|
|
2220
2218
|
(0, react.useEffect)(() => {
|
|
2221
2219
|
if (!state.clientRect) return;
|
|
2222
|
-
|
|
2220
|
+
const clientRect = state.clientRect;
|
|
2221
|
+
refs.setReference({ getBoundingClientRect: () => clientRect() });
|
|
2223
2222
|
}, [state.clientRect, refs]);
|
|
2224
2223
|
(0, react.useEffect)(() => {
|
|
2225
2224
|
setSelectedIndex(0);
|
|
@@ -2536,22 +2535,16 @@ Object.defineProperty(exports, 'CaseUpperIcon', {
|
|
|
2536
2535
|
return CaseUpperIcon;
|
|
2537
2536
|
}
|
|
2538
2537
|
});
|
|
2539
|
-
Object.defineProperty(exports, '
|
|
2538
|
+
Object.defineProperty(exports, 'CheckIcon', {
|
|
2540
2539
|
enumerable: true,
|
|
2541
2540
|
get: function () {
|
|
2542
|
-
return
|
|
2541
|
+
return CheckIcon;
|
|
2543
2542
|
}
|
|
2544
2543
|
});
|
|
2545
|
-
Object.defineProperty(exports, '
|
|
2544
|
+
Object.defineProperty(exports, 'ChevronDownIcon', {
|
|
2546
2545
|
enumerable: true,
|
|
2547
2546
|
get: function () {
|
|
2548
|
-
return
|
|
2549
|
-
}
|
|
2550
|
-
});
|
|
2551
|
-
Object.defineProperty(exports, 'Code', {
|
|
2552
|
-
enumerable: true,
|
|
2553
|
-
get: function () {
|
|
2554
|
-
return Code;
|
|
2547
|
+
return ChevronDownIcon;
|
|
2555
2548
|
}
|
|
2556
2549
|
});
|
|
2557
2550
|
Object.defineProperty(exports, 'CodeIcon', {
|
|
@@ -2560,22 +2553,22 @@ Object.defineProperty(exports, 'CodeIcon', {
|
|
|
2560
2553
|
return CodeIcon;
|
|
2561
2554
|
}
|
|
2562
2555
|
});
|
|
2563
|
-
Object.defineProperty(exports, '
|
|
2556
|
+
Object.defineProperty(exports, 'Columns2Icon', {
|
|
2564
2557
|
enumerable: true,
|
|
2565
2558
|
get: function () {
|
|
2566
|
-
return
|
|
2559
|
+
return Columns2Icon;
|
|
2567
2560
|
}
|
|
2568
2561
|
});
|
|
2569
|
-
Object.defineProperty(exports, '
|
|
2562
|
+
Object.defineProperty(exports, 'Columns3Icon', {
|
|
2570
2563
|
enumerable: true,
|
|
2571
2564
|
get: function () {
|
|
2572
|
-
return
|
|
2565
|
+
return Columns3Icon;
|
|
2573
2566
|
}
|
|
2574
2567
|
});
|
|
2575
|
-
Object.defineProperty(exports, '
|
|
2568
|
+
Object.defineProperty(exports, 'Columns4Icon', {
|
|
2576
2569
|
enumerable: true,
|
|
2577
2570
|
get: function () {
|
|
2578
|
-
return
|
|
2571
|
+
return Columns4Icon;
|
|
2579
2572
|
}
|
|
2580
2573
|
});
|
|
2581
2574
|
Object.defineProperty(exports, 'CommandList', {
|
|
@@ -2620,22 +2613,22 @@ Object.defineProperty(exports, 'H3', {
|
|
|
2620
2613
|
return H3;
|
|
2621
2614
|
}
|
|
2622
2615
|
});
|
|
2623
|
-
Object.defineProperty(exports, '
|
|
2616
|
+
Object.defineProperty(exports, 'Heading1Icon', {
|
|
2624
2617
|
enumerable: true,
|
|
2625
2618
|
get: function () {
|
|
2626
|
-
return
|
|
2619
|
+
return Heading1Icon;
|
|
2627
2620
|
}
|
|
2628
2621
|
});
|
|
2629
|
-
Object.defineProperty(exports, '
|
|
2622
|
+
Object.defineProperty(exports, 'Heading2Icon', {
|
|
2630
2623
|
enumerable: true,
|
|
2631
2624
|
get: function () {
|
|
2632
|
-
return
|
|
2625
|
+
return Heading2Icon;
|
|
2633
2626
|
}
|
|
2634
2627
|
});
|
|
2635
|
-
Object.defineProperty(exports, '
|
|
2628
|
+
Object.defineProperty(exports, 'Heading3Icon', {
|
|
2636
2629
|
enumerable: true,
|
|
2637
2630
|
get: function () {
|
|
2638
|
-
return
|
|
2631
|
+
return Heading3Icon;
|
|
2639
2632
|
}
|
|
2640
2633
|
});
|
|
2641
2634
|
Object.defineProperty(exports, 'ItalicIcon', {
|
|
@@ -2650,22 +2643,22 @@ Object.defineProperty(exports, 'LinkIcon', {
|
|
|
2650
2643
|
return LinkIcon;
|
|
2651
2644
|
}
|
|
2652
2645
|
});
|
|
2653
|
-
Object.defineProperty(exports, '
|
|
2646
|
+
Object.defineProperty(exports, 'ListIcon', {
|
|
2654
2647
|
enumerable: true,
|
|
2655
2648
|
get: function () {
|
|
2656
|
-
return
|
|
2649
|
+
return ListIcon;
|
|
2657
2650
|
}
|
|
2658
2651
|
});
|
|
2659
|
-
Object.defineProperty(exports, '
|
|
2652
|
+
Object.defineProperty(exports, 'ListOrderedIcon', {
|
|
2660
2653
|
enumerable: true,
|
|
2661
2654
|
get: function () {
|
|
2662
|
-
return
|
|
2655
|
+
return ListOrderedIcon;
|
|
2663
2656
|
}
|
|
2664
2657
|
});
|
|
2665
|
-
Object.defineProperty(exports, '
|
|
2658
|
+
Object.defineProperty(exports, 'MousePointerIcon', {
|
|
2666
2659
|
enumerable: true,
|
|
2667
2660
|
get: function () {
|
|
2668
|
-
return
|
|
2661
|
+
return MousePointerIcon;
|
|
2669
2662
|
}
|
|
2670
2663
|
});
|
|
2671
2664
|
Object.defineProperty(exports, 'NUMBERED_LIST', {
|
|
@@ -2704,10 +2697,10 @@ Object.defineProperty(exports, 'QUOTE', {
|
|
|
2704
2697
|
return QUOTE;
|
|
2705
2698
|
}
|
|
2706
2699
|
});
|
|
2707
|
-
Object.defineProperty(exports, '
|
|
2700
|
+
Object.defineProperty(exports, 'Rows2Icon', {
|
|
2708
2701
|
enumerable: true,
|
|
2709
2702
|
get: function () {
|
|
2710
|
-
return
|
|
2703
|
+
return Rows2Icon;
|
|
2711
2704
|
}
|
|
2712
2705
|
});
|
|
2713
2706
|
Object.defineProperty(exports, 'SECTION', {
|
|
@@ -2722,16 +2715,16 @@ Object.defineProperty(exports, 'SlashCommandRoot', {
|
|
|
2722
2715
|
return SlashCommandRoot;
|
|
2723
2716
|
}
|
|
2724
2717
|
});
|
|
2725
|
-
Object.defineProperty(exports, '
|
|
2718
|
+
Object.defineProperty(exports, 'SplitSquareVerticalIcon', {
|
|
2726
2719
|
enumerable: true,
|
|
2727
2720
|
get: function () {
|
|
2728
|
-
return
|
|
2721
|
+
return SplitSquareVerticalIcon;
|
|
2729
2722
|
}
|
|
2730
2723
|
});
|
|
2731
|
-
Object.defineProperty(exports, '
|
|
2724
|
+
Object.defineProperty(exports, 'SquareCodeIcon', {
|
|
2732
2725
|
enumerable: true,
|
|
2733
2726
|
get: function () {
|
|
2734
|
-
return
|
|
2727
|
+
return SquareCodeIcon;
|
|
2735
2728
|
}
|
|
2736
2729
|
});
|
|
2737
2730
|
Object.defineProperty(exports, 'StrikethroughIcon', {
|
|
@@ -2758,22 +2751,16 @@ Object.defineProperty(exports, 'TWO_COLUMNS', {
|
|
|
2758
2751
|
return TWO_COLUMNS;
|
|
2759
2752
|
}
|
|
2760
2753
|
});
|
|
2761
|
-
Object.defineProperty(exports, 'Text', {
|
|
2762
|
-
enumerable: true,
|
|
2763
|
-
get: function () {
|
|
2764
|
-
return Text;
|
|
2765
|
-
}
|
|
2766
|
-
});
|
|
2767
2754
|
Object.defineProperty(exports, 'TextIcon', {
|
|
2768
2755
|
enumerable: true,
|
|
2769
2756
|
get: function () {
|
|
2770
2757
|
return TextIcon;
|
|
2771
2758
|
}
|
|
2772
2759
|
});
|
|
2773
|
-
Object.defineProperty(exports, '
|
|
2760
|
+
Object.defineProperty(exports, 'TextQuoteIcon', {
|
|
2774
2761
|
enumerable: true,
|
|
2775
2762
|
get: function () {
|
|
2776
|
-
return
|
|
2763
|
+
return TextQuoteIcon;
|
|
2777
2764
|
}
|
|
2778
2765
|
});
|
|
2779
2766
|
Object.defineProperty(exports, 'UnderlineIcon', {
|