@mekari/pixel3-rich-text-editor 0.0.18 → 0.1.0-dev.0

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.
Files changed (67) hide show
  1. package/dist/{chunk-FZPMIQTC.mjs → chunk-2LGSTJSZ.mjs} +2 -1
  2. package/dist/chunk-4KJOYLJI.mjs +168 -0
  3. package/dist/chunk-4TUA5VF4.mjs +173 -0
  4. package/dist/{chunk-2OCRJNTJ.mjs → chunk-7RMCTPMN.mjs} +2 -2
  5. package/dist/{chunk-ES3FCTTF.mjs → chunk-E3MEVHFO.mjs} +27 -6
  6. package/dist/{chunk-WBMECFO3.mjs → chunk-MCGJK3E4.mjs} +18 -46
  7. package/dist/{chunk-73N5SLQ5.mjs → chunk-MUYPED2X.mjs} +82 -25
  8. package/dist/{chunk-V52XUOVW.mjs → chunk-O33DDWRB.mjs} +10 -2
  9. package/dist/{chunk-RNQQ7LGC.mjs → chunk-PQRMWB4A.mjs} +73 -1
  10. package/dist/{chunk-JAKI6TU2.mjs → chunk-QG3GEBVL.mjs} +8 -22
  11. package/dist/{chunk-GVMGRBDI.mjs → chunk-TNDDXUVW.mjs} +5 -1
  12. package/dist/{chunk-VK7QDWXR.mjs → chunk-YCSNVWMP.mjs} +18 -5
  13. package/dist/{chunk-HF36L4GZ.mjs → chunk-ZAXJ3BEP.mjs} +2 -0
  14. package/dist/{chunk-5IPS4HT7.mjs → chunk-ZRAXSVO5.mjs} +1 -1
  15. package/dist/editor-toolbar.d.mts +9 -5
  16. package/dist/editor-toolbar.d.ts +9 -5
  17. package/dist/editor-toolbar.js +193 -92
  18. package/dist/editor-toolbar.mjs +7 -7
  19. package/dist/extensions/align-extension.js +75 -21
  20. package/dist/extensions/align-extension.mjs +2 -2
  21. package/dist/extensions/color-extension.js +69 -0
  22. package/dist/extensions/color-extension.mjs +2 -2
  23. package/dist/extensions/heading-extension.js +85 -45
  24. package/dist/extensions/heading-extension.mjs +2 -2
  25. package/dist/extensions/icons.d.mts +5 -1
  26. package/dist/extensions/icons.d.ts +5 -1
  27. package/dist/extensions/icons.js +76 -0
  28. package/dist/extensions/icons.mjs +9 -1
  29. package/dist/extensions/index.js +115 -71
  30. package/dist/extensions/index.mjs +6 -6
  31. package/dist/extensions/link-extension.js +85 -4
  32. package/dist/extensions/link-extension.mjs +2 -2
  33. package/dist/extensions/mention-list-extension.d.mts +33 -0
  34. package/dist/extensions/mention-list-extension.d.ts +33 -0
  35. package/dist/extensions/mention-list-extension.js +194 -0
  36. package/dist/extensions/mention-list-extension.mjs +7 -0
  37. package/dist/extensions/single-extension.d.mts +1 -1
  38. package/dist/extensions/single-extension.d.ts +1 -1
  39. package/dist/extensions/single-extension.js +73 -1
  40. package/dist/extensions/single-extension.mjs +2 -2
  41. package/dist/index.d.mts +1 -1
  42. package/dist/index.d.ts +1 -1
  43. package/dist/index.js +552 -104
  44. package/dist/index.mjs +14 -12
  45. package/dist/metafile-cjs.json +1 -1
  46. package/dist/metafile-esm.json +1 -1
  47. package/dist/modules/rich-text-editor.connects.js +2 -0
  48. package/dist/modules/rich-text-editor.connects.mjs +1 -1
  49. package/dist/modules/rich-text-editor.hooks.js +2 -0
  50. package/dist/modules/rich-text-editor.hooks.mjs +2 -2
  51. package/dist/modules/rich-text-editor.props.d.mts +7 -3
  52. package/dist/modules/rich-text-editor.props.d.ts +7 -3
  53. package/dist/modules/rich-text-editor.props.js +5 -1
  54. package/dist/modules/rich-text-editor.props.mjs +1 -1
  55. package/dist/modules/rich-text-editor.types.d.mts +18 -4
  56. package/dist/modules/rich-text-editor.types.d.ts +18 -4
  57. package/dist/rich-text-editor.d.mts +15 -4
  58. package/dist/rich-text-editor.d.ts +15 -4
  59. package/dist/rich-text-editor.js +552 -104
  60. package/dist/rich-text-editor.mjs +14 -12
  61. package/dist/rte-style-provider.js +1 -1
  62. package/dist/rte-style-provider.mjs +4 -4
  63. package/dist/rte-suggestion.d.mts +7 -0
  64. package/dist/rte-suggestion.d.ts +7 -0
  65. package/dist/rte-suggestion.js +354 -0
  66. package/dist/rte-suggestion.mjs +8 -0
  67. package/package.json +12 -8
@@ -26,6 +26,9 @@ __export(editor_toolbar_exports, {
26
26
  module.exports = __toCommonJS(editor_toolbar_exports);
27
27
  var import_vue13 = require("vue");
28
28
  var import_vue14 = require("vue");
29
+ var import_css5 = require("@mekari/pixel3-styled-system/css");
30
+ var import_pixel3_divider = require("@mekari/pixel3-divider");
31
+ var import_pixel3_scrollbar = require("@mekari/pixel3-scrollbar");
29
32
 
30
33
  // src/extensions/heading-extension.tsx
31
34
  var import_vue3 = require("vue");
@@ -355,6 +358,74 @@ var CaretIcon = (0, import_vue2.defineComponent)({
355
358
  }, null)]);
356
359
  }
357
360
  });
361
+ var ImageIcon = (0, import_vue2.defineComponent)({
362
+ name: "ImageIcon",
363
+ setup() {
364
+ return () => (0, import_vue.createVNode)("svg", {
365
+ "xmlns": "http://www.w3.org/2000/svg",
366
+ "width": "20",
367
+ "height": "20",
368
+ "viewBox": "0 0 20 20",
369
+ "fill": "none"
370
+ }, [(0, import_vue.createVNode)("path", {
371
+ "fill-rule": "evenodd",
372
+ "clip-rule": "evenodd",
373
+ "d": "M9.13948 1.25H10.8605C12.3328 1.24998 13.5133 1.24997 14.4405 1.37376C15.4002 1.50189 16.2001 1.77481 16.8347 2.4051C17.4701 3.03609 17.7459 3.83259 17.8753 4.78811C18 5.70986 18 6.88312 18 8.34439V11.6556C18 13.1169 18 14.2901 17.8753 15.2119C17.7459 16.1674 17.4701 16.9639 16.8347 17.5949C16.2001 18.2252 15.4002 18.4981 14.4405 18.6262C13.5133 18.75 12.3328 18.75 10.8605 18.75H9.13947C7.66718 18.75 6.48666 18.75 5.55953 18.6262C4.59985 18.4981 3.79994 18.2252 3.16528 17.5949C2.58896 17.0226 2.30764 16.313 2.16398 15.4695C1.99993 14.5064 1.99996 13.2565 2 11.6731L2 8.34442C1.99998 6.88313 1.99997 5.70987 2.12475 4.78811C2.25411 3.83259 2.5299 3.03609 3.16528 2.4051C3.79994 1.77481 4.59985 1.50189 5.55953 1.37376C6.48666 1.24997 7.66719 1.24998 9.13948 1.25ZM5.75805 2.86056C4.96282 2.96674 4.53137 3.16245 4.22226 3.46942C3.91387 3.77568 3.71778 4.20206 3.61119 4.98935C3.50162 5.79875 3.5 6.87016 3.5 8.4V11.6C3.5 12.5721 3.50087 13.3576 3.52902 14.0064L6.03954 12.2878C6.94782 11.6827 8.2354 11.7423 9.0689 12.4535L9.07527 12.4589L9.33734 12.6877C9.68567 12.9822 10.2858 12.9815 10.6328 12.6855L13.984 9.82945C14.6747 9.24036 15.6655 9.09888 16.5 9.40545V8.4C16.5 6.87016 16.4984 5.79875 16.3888 4.98935C16.2822 4.20206 16.0861 3.77568 15.7777 3.46942C15.4686 3.16245 15.0372 2.96674 14.242 2.86056C13.4257 2.75157 12.3456 2.75 10.8056 2.75H9.19445C7.65442 2.75 6.57433 2.75157 5.75805 2.86056ZM16.2474 10.9638L16.5 11.1945V11.6C16.5 13.1298 16.4984 14.2013 16.3888 15.0107C16.2822 15.7979 16.0861 16.2243 15.7777 16.5306C15.4686 16.8376 15.0372 17.0333 14.242 17.1394C13.4257 17.2484 12.3456 17.25 10.8056 17.25H9.19445C7.65442 17.25 6.57433 17.2484 5.75805 17.1394C4.96282 17.0333 4.53137 16.8376 4.22226 16.5306C4.01416 16.3239 3.85786 16.0633 3.74539 15.6761L6.87456 13.534C7.23802 13.2943 7.78269 13.3303 8.09262 13.5923L8.35477 13.8211L8.36118 13.8266C9.26993 14.6019 10.6976 14.6019 11.6063 13.8266L14.9572 10.9709C15.3024 10.6764 15.8983 10.6739 16.2474 10.9638ZM5.22222 6.8C5.22222 5.49725 6.28423 4.45 7.58334 4.45C8.88244 4.45 9.94445 5.49725 9.94445 6.8C9.94445 8.10276 8.88244 9.15 7.58334 9.15C6.28423 9.15 5.22222 8.10276 5.22222 6.8Z",
374
+ "fill": "#758195"
375
+ }, null)]);
376
+ }
377
+ });
378
+ var FileIcon = (0, import_vue2.defineComponent)({
379
+ name: "FileIcon",
380
+ setup() {
381
+ return () => (0, import_vue.createVNode)("svg", {
382
+ "xmlns": "http://www.w3.org/2000/svg",
383
+ "width": "18",
384
+ "height": "17",
385
+ "viewBox": "0 0 18 17",
386
+ "fill": "none"
387
+ }, [(0, import_vue.createVNode)("path", {
388
+ "fill-rule": "evenodd",
389
+ "clip-rule": "evenodd",
390
+ "d": "M11.6901 2.47169C10.3906 1.1761 8.28282 1.1761 6.98332 2.47169L3.07076 6.37248C0.976415 8.46053 0.976415 11.845 3.07076 13.933C5.16636 16.0223 8.56492 16.0223 10.6605 13.933L16.2205 8.3898C16.5138 8.09734 16.9887 8.09806 17.2811 8.39139C17.5736 8.68473 17.5729 9.1596 17.2795 9.45205L11.7196 14.9953C9.03856 17.6682 4.69271 17.6682 2.0117 14.9953C-0.670564 12.3211 -0.670564 7.98442 2.0117 5.31022L5.92426 1.40943C7.80917 -0.469814 10.8643 -0.469812 12.7492 1.40943C14.6354 3.28992 14.6354 6.33973 12.7492 8.22022L8.83664 12.121C7.74783 13.2066 5.98345 13.2066 4.89464 12.121C3.80458 11.0342 3.80458 9.27127 4.89464 8.18449L8.8072 4.2837C9.10053 3.99125 9.5754 3.99196 9.86786 4.2853C10.1603 4.57863 10.1596 5.0535 9.86626 5.34596L5.9537 9.24675C5.45156 9.74738 5.45156 10.5581 5.9537 11.0588C6.45709 11.5606 7.27419 11.5606 7.77758 11.0588L11.6901 7.15797C12.9884 5.86363 12.9884 3.76603 11.6901 2.47169Z",
391
+ "fill": "#758195"
392
+ }, null)]);
393
+ }
394
+ });
395
+ var AudioIcon = (0, import_vue2.defineComponent)({
396
+ name: "AudioIcon",
397
+ setup() {
398
+ return () => (0, import_vue.createVNode)("svg", {
399
+ "xmlns": "http://www.w3.org/2000/svg",
400
+ "width": "20",
401
+ "height": "20",
402
+ "viewBox": "0 0 20 20",
403
+ "fill": "none"
404
+ }, [(0, import_vue.createVNode)("path", {
405
+ "fill-rule": "evenodd",
406
+ "clip-rule": "evenodd",
407
+ "d": "M6.32334 4.94737C6.32334 2.91036 7.96446 1.25 10 1.25C12.0355 1.25 13.6767 2.91036 13.6767 4.94737V10C13.6767 12.037 12.0355 13.6974 10 13.6974C7.96446 13.6974 6.32334 12.037 6.32334 10V4.94737ZM10 2.75C8.80284 2.75 7.82334 3.7288 7.82334 4.94737V10C7.82334 11.2186 8.80284 12.1974 10 12.1974C11.1972 12.1974 12.1767 11.2186 12.1767 10V4.94737C12.1767 3.7288 11.1972 2.75 10 2.75ZM14.9948 9.67107C15.409 9.66825 15.7471 10.0017 15.7499 10.4159C15.7686 13.1719 13.4277 15.3958 10.75 15.7526L10.75 17.25H11.6724C12.0866 17.25 12.4224 17.5858 12.4224 18C12.4224 18.4142 12.0866 18.75 11.6724 18.75H8.3276C7.91339 18.75 7.5776 18.4142 7.5776 18C7.5776 17.5858 7.91339 17.25 8.3276 17.25H9.24997L9.24996 15.7526C6.57163 15.3957 4.25 13.1696 4.25 10.4211C4.25 10.0068 4.58579 9.67105 5 9.67105C5.41421 9.67105 5.75 10.0068 5.75 10.4211C5.75 12.4712 7.71926 14.3026 9.99995 14.3026C12.2856 14.3026 14.2638 12.4679 14.2499 10.4262C14.2471 10.012 14.5806 9.67389 14.9948 9.67107Z",
408
+ "fill": "#758195"
409
+ }, null)]);
410
+ }
411
+ });
412
+ var MentionIcon = (0, import_vue2.defineComponent)({
413
+ name: "MentionIcon",
414
+ setup() {
415
+ return () => (0, import_vue.createVNode)("svg", {
416
+ "xmlns": "http://www.w3.org/2000/svg",
417
+ "width": "18",
418
+ "height": "18",
419
+ "viewBox": "0 0 18 18",
420
+ "fill": "none"
421
+ }, [(0, import_vue.createVNode)("path", {
422
+ "fill-rule": "evenodd",
423
+ "clip-rule": "evenodd",
424
+ "d": "M5.04155 0.82474C6.82687 -0.0106618 8.84196 -0.218789 10.7603 0.234079C12.6787 0.686946 14.388 1.77428 15.6112 3.3199C16.8345 4.86553 17.5 6.7789 17.5 8.75V9.55C17.5 10.3854 17.1681 11.1866 16.5774 11.7774C15.9866 12.3681 15.1854 12.7 14.35 12.7C13.5146 12.7 12.7134 12.3681 12.1226 11.7774C11.9824 11.6371 11.8567 11.485 11.7466 11.3234C11.0222 12.1662 9.94841 12.7 8.74991 12.7C6.56839 12.7 4.79991 10.9315 4.79991 8.74999C4.79991 6.56847 6.56839 4.79999 8.74991 4.79999C9.67546 4.79999 10.5267 5.11833 11.2 5.65148V5.55C11.2 5.13579 11.5358 4.8 11.95 4.8C12.3642 4.8 12.7 5.13579 12.7 5.55V9.55C12.7 9.98761 12.8738 10.4073 13.1833 10.7167C13.4927 11.0262 13.9124 11.2 14.35 11.2C14.7876 11.2 15.2073 11.0262 15.5167 10.7167C15.8262 10.4073 16 9.98761 16 9.55V8.75C16 7.1168 15.4486 5.53144 14.435 4.25078C13.4215 2.97012 12.0052 2.06919 10.4157 1.69395C8.8262 1.31872 7.15655 1.49117 5.67729 2.18336C4.19802 2.87555 2.9958 4.04692 2.26541 5.50771C1.53502 6.96849 1.31925 8.63309 1.65306 10.2318C1.98687 11.8305 2.85069 13.2697 4.10459 14.3162C5.35848 15.3627 6.92898 15.9551 8.56164 15.9976C10.1943 16.04 11.7934 15.5299 13.1 14.55C13.4314 14.3015 13.9015 14.3686 14.15 14.7C14.3985 15.0314 14.3314 15.5015 14 15.75C12.4231 16.9327 10.4931 17.5483 8.52266 17.497C6.55222 17.4458 4.65679 16.7308 3.14347 15.4678C1.63015 14.2048 0.587595 12.4679 0.184723 10.5384C-0.218148 8.6089 0.0422661 6.5999 0.923772 4.83689C1.80528 3.07387 3.25623 1.66014 5.04155 0.82474ZM8.74991 6.29999C7.39682 6.29999 6.29991 7.3969 6.29991 8.74999C6.29991 10.1031 7.39682 11.2 8.74991 11.2C10.103 11.2 11.1999 10.1031 11.1999 8.74999C11.1999 7.3969 10.103 6.29999 8.74991 6.29999Z",
425
+ "fill": "#758195"
426
+ }, null)]);
427
+ }
428
+ });
358
429
 
359
430
  // src/extensions/heading-extension.tsx
360
431
  var HeadingExtention = (0, import_vue4.defineComponent)({
@@ -372,7 +443,8 @@ var HeadingExtention = (0, import_vue4.defineComponent)({
372
443
  editor
373
444
  }) {
374
445
  return () => (0, import_vue3.createVNode)(import_pixel3_popover.MpPopover, {
375
- "id": "popover-heading-extention"
446
+ "id": "popover-heading-extention",
447
+ "usePortal": true
376
448
  }, {
377
449
  default: () => [(0, import_vue3.createVNode)(import_pixel3_popover.MpPopoverTrigger, null, {
378
450
  default: () => [(0, import_vue3.withDirectives)((0, import_vue3.createVNode)("button", {
@@ -443,84 +515,55 @@ var HeadingExtention = (0, import_vue4.defineComponent)({
443
515
  })
444
516
  }, {
445
517
  default: () => [(0, import_vue3.createVNode)(import_pixel3_popover.MpPopoverList, {
446
- "class": (0, import_css.css)({
447
- gap: "2",
448
- alignItems: "flex-start",
449
- paddingLeft: "3"
450
- })
518
+ "data-pixel-rte": true
451
519
  }, {
452
520
  default: () => [(0, import_vue3.createVNode)(import_pixel3_popover.MpPopoverListItem, {
453
- "class": {
454
- "is-active": editor == null ? void 0 : editor.isActive("heading", {
455
- level: 1
456
- }),
457
- "text-sizing": true
458
- },
521
+ "is-active": editor == null ? void 0 : editor.isActive("heading", {
522
+ level: 1
523
+ }),
459
524
  "onClick": () => (editor == null ? void 0 : editor.chain()).focus().toggleHeading({
460
525
  level: 1
461
526
  }).run()
462
527
  }, {
463
528
  default: () => [(0, import_vue3.createVNode)(import_pixel3_text.MpText, {
464
529
  "as": "h1",
465
- "size": "h1",
466
- "class": (0, import_css.css)({
467
- color: "currentColor"
468
- })
530
+ "size": "h1"
469
531
  }, {
470
532
  default: () => [(0, import_vue3.createTextVNode)("Heading 1")]
471
533
  })]
472
534
  }), (0, import_vue3.createVNode)(import_pixel3_popover.MpPopoverListItem, {
473
- "class": {
474
- "is-active": editor == null ? void 0 : editor.isActive("heading", {
475
- level: 2
476
- }),
477
- "text-sizing": true
478
- },
535
+ "is-active": editor == null ? void 0 : editor.isActive("heading", {
536
+ level: 2
537
+ }),
479
538
  "onClick": () => (editor == null ? void 0 : editor.chain()).focus().toggleHeading({
480
539
  level: 2
481
540
  }).run()
482
541
  }, {
483
542
  default: () => [(0, import_vue3.createVNode)(import_pixel3_text.MpText, {
484
543
  "as": "h2",
485
- "size": "h2",
486
- "class": (0, import_css.css)({
487
- color: "currentColor"
488
- })
544
+ "size": "h2"
489
545
  }, {
490
546
  default: () => [(0, import_vue3.createTextVNode)("Heading 2")]
491
547
  })]
492
548
  }), (0, import_vue3.createVNode)(import_pixel3_popover.MpPopoverListItem, {
493
- "class": {
494
- "is-active": editor == null ? void 0 : editor.isActive("heading", {
495
- level: 3
496
- }),
497
- "text-sizing": true
498
- },
549
+ "is-active": editor == null ? void 0 : editor.isActive("heading", {
550
+ level: 3
551
+ }),
499
552
  "onClick": () => (editor == null ? void 0 : editor.chain()).focus().toggleHeading({
500
553
  level: 3
501
554
  }).run()
502
555
  }, {
503
556
  default: () => [(0, import_vue3.createVNode)(import_pixel3_text.MpText, {
504
557
  "as": "h3",
505
- "size": "h3",
506
- "class": (0, import_css.css)({
507
- color: "currentColor"
508
- })
558
+ "size": "h3"
509
559
  }, {
510
560
  default: () => [(0, import_vue3.createTextVNode)("Heading 3")]
511
561
  })]
512
562
  }), (0, import_vue3.createVNode)(import_pixel3_popover.MpPopoverListItem, {
513
- "class": {
514
- "is-active": editor == null ? void 0 : editor.isActive("paragraph"),
515
- "text-sizing": true
516
- },
563
+ "is-active": editor == null ? void 0 : editor.isActive("paragraph"),
517
564
  "onClick": () => (editor == null ? void 0 : editor.chain()).focus().setParagraph().run()
518
565
  }, {
519
- default: () => [(0, import_vue3.createVNode)(import_pixel3_text.MpText, {
520
- "class": (0, import_css.css)({
521
- color: "currentColor"
522
- })
523
- }, {
566
+ default: () => [(0, import_vue3.createVNode)(import_pixel3_text.MpText, null, {
524
567
  default: () => [(0, import_vue3.createTextVNode)("Normal text")]
525
568
  })]
526
569
  })]
@@ -555,7 +598,8 @@ var AlignExtention = (0, import_vue6.defineComponent)({
555
598
  });
556
599
  }, "isActiveAlignment");
557
600
  return () => (0, import_vue5.createVNode)(import_pixel3_popover2.MpPopover, {
558
- "id": "popover-align-extention"
601
+ "id": "popover-align-extention",
602
+ "usePortal": true
559
603
  }, {
560
604
  default: () => [(0, import_vue5.createVNode)(import_pixel3_popover2.MpPopoverTrigger, null, {
561
605
  default: () => [(0, import_vue5.withDirectives)((0, import_vue5.createVNode)("button", {
@@ -577,40 +621,25 @@ var AlignExtention = (0, import_vue6.defineComponent)({
577
621
  })
578
622
  }, {
579
623
  default: () => [(0, import_vue5.createVNode)(import_pixel3_popover2.MpPopoverList, {
580
- "class": (0, import_css2.css)({
581
- gap: "2",
582
- alignItems: "center"
583
- })
624
+ "data-pixel-rte": true
584
625
  }, {
585
626
  default: () => [(0, import_vue5.createVNode)(import_pixel3_popover2.MpPopoverListItem, {
586
- "class": {
587
- "is-active": isActiveAlignment("left"),
588
- "text-sizing": true
589
- },
627
+ "is-active": isActiveAlignment("left"),
590
628
  "onClick": () => (editor == null ? void 0 : editor.chain()).focus().setTextAlign("left").run()
591
629
  }, {
592
630
  default: () => [(0, import_vue5.createVNode)(AlignLeftIcon, null, null)]
593
631
  }), (0, import_vue5.createVNode)(import_pixel3_popover2.MpPopoverListItem, {
594
- "class": {
595
- "is-active": isActiveAlignment("center"),
596
- "text-sizing": true
597
- },
632
+ "is-active": isActiveAlignment("center"),
598
633
  "onClick": () => (editor == null ? void 0 : editor.chain()).focus().setTextAlign("center").run()
599
634
  }, {
600
635
  default: () => [(0, import_vue5.createVNode)(AlignCenterIcon, null, null)]
601
636
  }), (0, import_vue5.createVNode)(import_pixel3_popover2.MpPopoverListItem, {
602
- "class": {
603
- "is-active": isActiveAlignment("right"),
604
- "text-sizing": true
605
- },
637
+ "is-active": isActiveAlignment("right"),
606
638
  "onClick": () => (editor == null ? void 0 : editor.chain()).focus().setTextAlign("right").run()
607
639
  }, {
608
640
  default: () => [(0, import_vue5.createVNode)(AlignRightIcon, null, null)]
609
641
  }), (0, import_vue5.createVNode)(import_pixel3_popover2.MpPopoverListItem, {
610
- "class": {
611
- "is-active": isActiveAlignment("justify"),
612
- "text-sizing": true
613
- },
642
+ "is-active": isActiveAlignment("justify"),
614
643
  "onClick": () => (editor == null ? void 0 : editor.chain()).focus().setTextAlign("justify").run()
615
644
  }, {
616
645
  default: () => [(0, import_vue5.createVNode)(AlignJustifyIcon, null, null)]
@@ -656,7 +685,11 @@ var SingleExtention = (0, import_vue8.defineComponent)({
656
685
  orderedList: (0, import_vue7.createVNode)(OrderedListIcon, null, null),
657
686
  undo: (0, import_vue7.createVNode)(UndoIcon, null, null),
658
687
  redo: (0, import_vue7.createVNode)(RedoIcon, null, null),
659
- clear: (0, import_vue7.createVNode)(ClearIcon, null, null)
688
+ clear: (0, import_vue7.createVNode)(ClearIcon, null, null),
689
+ image: (0, import_vue7.createVNode)(ImageIcon, null, null),
690
+ file: (0, import_vue7.createVNode)(FileIcon, null, null),
691
+ audio: (0, import_vue7.createVNode)(AudioIcon, null, null),
692
+ mention: (0, import_vue7.createVNode)(MentionIcon, null, null)
660
693
  };
661
694
  return () => (0, import_vue7.withDirectives)((0, import_vue7.createVNode)("button", {
662
695
  "class": {
@@ -720,6 +753,7 @@ var ColorExtension = (0, import_vue10.defineComponent)({
720
753
  "preset": colorPreset,
721
754
  "variant": "basic",
722
755
  "placement": "bottom-start",
756
+ "usePortal": true,
723
757
  "isShowPreset": true,
724
758
  "isShowInput": false,
725
759
  "class": (0, import_css3.css)({
@@ -784,6 +818,7 @@ var LinkExtension = (0, import_vue12.defineComponent)({
784
818
  popperInstance.destroy();
785
819
  }
786
820
  popperInstance = (0, import_core.createPopper)(target, popoverRef.value, {
821
+ strategy: "fixed",
787
822
  onFirstUpdate: () => {
788
823
  if (popperInstance) {
789
824
  popperInstance.setOptions({
@@ -842,6 +877,14 @@ var LinkExtension = (0, import_vue12.defineComponent)({
842
877
  }
843
878
  onClosePopover();
844
879
  }, "onSetLink");
880
+ const onOpenInNewTab = /* @__PURE__ */ __name(() => {
881
+ const trimmedUrl = url.value.trim();
882
+ if (!trimmedUrl) {
883
+ return;
884
+ }
885
+ const normalizedUrl = /^(https?:)?\/\//i.test(trimmedUrl) ? trimmedUrl : `https://${trimmedUrl}`;
886
+ window.open(normalizedUrl, "_blank", "noopener,noreferrer");
887
+ }, "onOpenInNewTab");
845
888
  const onClosePopover = /* @__PURE__ */ __name(() => {
846
889
  isShowPopover.value = false;
847
890
  editor == null ? void 0 : editor.commands.setTextSelection({
@@ -885,10 +928,9 @@ var LinkExtension = (0, import_vue12.defineComponent)({
885
928
  default: () => [(0, import_vue11.createVNode)("div", {
886
929
  "ref": popoverRef,
887
930
  "data-pixel-rte": true,
888
- "style": {
889
- position: "absolute",
890
- zIndex: "var(--mp-z-index-popover)"
891
- }
931
+ "class": (0, import_css4.css)({
932
+ zIndex: "popover"
933
+ })
892
934
  }, [(0, import_vue11.createVNode)("div", {
893
935
  "class": (0, import_css4.css)({
894
936
  display: "flex",
@@ -921,6 +963,11 @@ var LinkExtension = (0, import_vue12.defineComponent)({
921
963
  }, null) : (0, import_vue11.createVNode)(import_pixel3_button.MpButton, {
922
964
  "leftIcon": "check",
923
965
  "onClick": onSetLink
966
+ }, null), isEditLink.value && (0, import_vue11.createVNode)(import_pixel3_button.MpButton, {
967
+ "leftIcon": "newtab",
968
+ "variant": "ghost",
969
+ "isDisabled": !url.value.trim(),
970
+ "onClick": onOpenInNewTab
924
971
  }, null), isEditLink.value ? (0, import_vue11.createVNode)(import_pixel3_button.MpButton, {
925
972
  "leftIcon": "delete",
926
973
  "variant": "ghost",
@@ -935,9 +982,9 @@ var LinkExtension = (0, import_vue12.defineComponent)({
935
982
  });
936
983
 
937
984
  // src/editor-toolbar.tsx
938
- var import_pixel3_divider = require("@mekari/pixel3-divider");
939
985
  var EditorToolbar = (0, import_vue14.defineComponent)({
940
986
  name: "EditorToolbar",
987
+ emits: ["clickImage", "clickFile", "clickAudio"],
941
988
  props: {
942
989
  editor: {
943
990
  type: Object
@@ -949,8 +996,10 @@ var EditorToolbar = (0, import_vue14.defineComponent)({
949
996
  setup({
950
997
  editor,
951
998
  options
999
+ }, {
1000
+ emit
952
1001
  }) {
953
- const items = ["heading", "bold", "italic", "underline", "strike", "blockquote", "bulletList", "orderedList", "textColor", "fillColor", "textLink", "align", "undo", "redo", "clear"];
1002
+ const items = ["heading", "bold", "italic", "underline", "strike", "blockquote", "bulletList", "orderedList", "textColor", "fillColor", "textLink", "align", "undo", "redo", "clear", "image", "file", "audio", "mention"];
954
1003
  const itemOptions = {
955
1004
  heading: {
956
1005
  tooltipLabel: "Text style",
@@ -1013,52 +1062,104 @@ var EditorToolbar = (0, import_vue14.defineComponent)({
1013
1062
  clear: {
1014
1063
  tooltipLabel: "Reset format",
1015
1064
  onClick: () => (editor == null ? void 0 : editor.chain()).focus().unsetAllMarks().run()
1065
+ },
1066
+ image: {
1067
+ tooltipLabel: "Add image",
1068
+ onClick: () => emit("clickImage")
1069
+ },
1070
+ file: {
1071
+ tooltipLabel: "Add file",
1072
+ onClick: () => emit("clickFile")
1073
+ },
1074
+ audio: {
1075
+ tooltipLabel: "Add audio",
1076
+ onClick: () => emit("clickAudio")
1077
+ },
1078
+ mention: {
1079
+ tooltipLabel: "Mention",
1080
+ editor,
1081
+ onClick: () => (editor == null ? void 0 : editor.chain()).focus().insertContent("@").run()
1016
1082
  }
1017
1083
  };
1018
- const renderExtension = /* @__PURE__ */ __name((item) => {
1019
- const options2 = itemOptions[item];
1020
- if (!options2)
1084
+ const getResolvedItem = /* @__PURE__ */ __name((option) => {
1085
+ if (typeof option === "string") {
1086
+ return {
1087
+ item: option
1088
+ };
1089
+ }
1090
+ return {
1091
+ item: option.value,
1092
+ tooltip: option.tooltip
1093
+ };
1094
+ }, "getResolvedItem");
1095
+ const renderExtension = /* @__PURE__ */ __name((option) => {
1096
+ const {
1097
+ item,
1098
+ tooltip
1099
+ } = getResolvedItem(option);
1100
+ if (!items.includes(item))
1101
+ return null;
1102
+ const resolvedItem = item;
1103
+ const resolvedOptions = itemOptions[resolvedItem];
1104
+ if (!resolvedOptions)
1021
1105
  return null;
1022
- switch (item) {
1106
+ const tooltipLabel = tooltip || resolvedOptions.tooltipLabel;
1107
+ switch (resolvedItem) {
1023
1108
  case "heading":
1024
1109
  return (0, import_vue13.createVNode)(HeadingExtention, {
1025
- "tooltipLabel": options2.tooltipLabel,
1110
+ "tooltipLabel": tooltipLabel,
1026
1111
  "editor": editor
1027
1112
  }, null);
1028
1113
  case "align":
1029
1114
  return (0, import_vue13.createVNode)(AlignExtention, {
1030
- "tooltipLabel": options2.tooltipLabel,
1115
+ "tooltipLabel": tooltipLabel,
1031
1116
  "editor": editor
1032
1117
  }, null);
1033
1118
  case "textColor":
1034
1119
  case "fillColor":
1035
1120
  return (0, import_vue13.createVNode)(ColorExtension, {
1036
- "tooltipLabel": options2.tooltipLabel,
1121
+ "tooltipLabel": tooltipLabel,
1037
1122
  "editor": editor,
1038
- "type": options2.type
1123
+ "type": resolvedOptions.type
1039
1124
  }, null);
1040
1125
  case "textLink":
1041
1126
  return (0, import_vue13.createVNode)(LinkExtension, {
1042
- "tooltipLabel": options2.tooltipLabel,
1127
+ "tooltipLabel": tooltipLabel,
1043
1128
  "editor": editor
1044
1129
  }, null);
1045
1130
  default:
1046
1131
  return (0, import_vue13.createVNode)(SingleExtention, {
1047
- "name": item,
1048
- "tooltipLabel": options2.tooltipLabel,
1049
- "onClick": options2.onClick,
1132
+ "name": resolvedItem,
1133
+ "tooltipLabel": tooltipLabel,
1134
+ "onClick": resolvedOptions.onClick,
1050
1135
  "editor": editor
1051
1136
  }, null);
1052
1137
  }
1053
1138
  }, "renderExtension");
1054
- return () => (0, import_vue13.createVNode)("div", null, [options == null ? void 0 : options.map((option, index) => (0, import_vue13.createVNode)(import_vue13.Fragment, null, [option.map((item) => {
1055
- if (items.includes(item)) {
1056
- return renderExtension(item);
1139
+ return () => (0, import_vue13.createVNode)(import_pixel3_scrollbar.MpScrollbar, {
1140
+ "options": {
1141
+ overflow: {
1142
+ y: "hide",
1143
+ x: "scroll"
1144
+ }
1057
1145
  }
1058
- }), index !== (options == null ? void 0 : options.length) - 1 && (0, import_vue13.createVNode)(import_pixel3_divider.MpDivider, {
1059
- "id": "divider-toolbar",
1060
- "orientation": "vertical"
1061
- }, null)]))]);
1146
+ }, {
1147
+ default: () => [(0, import_vue13.createVNode)("div", {
1148
+ "class": (0, import_css5.css)({
1149
+ display: "flex",
1150
+ alignItems: "stretch",
1151
+ gap: "1"
1152
+ })
1153
+ }, [options == null ? void 0 : options.map((option, index) => (0, import_vue13.createVNode)(import_vue13.Fragment, null, [option.map((item) => {
1154
+ const resolvedItem = typeof item === "string" ? item : item.value;
1155
+ if (items.includes(resolvedItem)) {
1156
+ return renderExtension(item);
1157
+ }
1158
+ }), index !== (options == null ? void 0 : options.length) - 1 && (0, import_vue13.createVNode)(import_pixel3_divider.MpDivider, {
1159
+ "id": "divider-toolbar",
1160
+ "orientation": "vertical"
1161
+ }, null)]))])]
1162
+ });
1062
1163
  }
1063
1164
  });
1064
1165
  // Annotate the CommonJS export names for ESM import in node:
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  EditorToolbar
3
- } from "./chunk-73N5SLQ5.mjs";
3
+ } from "./chunk-MUYPED2X.mjs";
4
4
  import "./chunk-VYCDVS5I.mjs";
5
- import "./chunk-VK7QDWXR.mjs";
6
- import "./chunk-V52XUOVW.mjs";
7
- import "./chunk-JAKI6TU2.mjs";
8
- import "./chunk-FZPMIQTC.mjs";
9
- import "./chunk-WBMECFO3.mjs";
10
- import "./chunk-RNQQ7LGC.mjs";
5
+ import "./chunk-YCSNVWMP.mjs";
6
+ import "./chunk-O33DDWRB.mjs";
7
+ import "./chunk-QG3GEBVL.mjs";
8
+ import "./chunk-2LGSTJSZ.mjs";
9
+ import "./chunk-MCGJK3E4.mjs";
10
+ import "./chunk-PQRMWB4A.mjs";
11
11
  import "./chunk-QZ7VFGWC.mjs";
12
12
  export {
13
13
  EditorToolbar
@@ -350,6 +350,74 @@ var CaretIcon = (0, import_vue2.defineComponent)({
350
350
  }, null)]);
351
351
  }
352
352
  });
353
+ var ImageIcon = (0, import_vue2.defineComponent)({
354
+ name: "ImageIcon",
355
+ setup() {
356
+ return () => (0, import_vue.createVNode)("svg", {
357
+ "xmlns": "http://www.w3.org/2000/svg",
358
+ "width": "20",
359
+ "height": "20",
360
+ "viewBox": "0 0 20 20",
361
+ "fill": "none"
362
+ }, [(0, import_vue.createVNode)("path", {
363
+ "fill-rule": "evenodd",
364
+ "clip-rule": "evenodd",
365
+ "d": "M9.13948 1.25H10.8605C12.3328 1.24998 13.5133 1.24997 14.4405 1.37376C15.4002 1.50189 16.2001 1.77481 16.8347 2.4051C17.4701 3.03609 17.7459 3.83259 17.8753 4.78811C18 5.70986 18 6.88312 18 8.34439V11.6556C18 13.1169 18 14.2901 17.8753 15.2119C17.7459 16.1674 17.4701 16.9639 16.8347 17.5949C16.2001 18.2252 15.4002 18.4981 14.4405 18.6262C13.5133 18.75 12.3328 18.75 10.8605 18.75H9.13947C7.66718 18.75 6.48666 18.75 5.55953 18.6262C4.59985 18.4981 3.79994 18.2252 3.16528 17.5949C2.58896 17.0226 2.30764 16.313 2.16398 15.4695C1.99993 14.5064 1.99996 13.2565 2 11.6731L2 8.34442C1.99998 6.88313 1.99997 5.70987 2.12475 4.78811C2.25411 3.83259 2.5299 3.03609 3.16528 2.4051C3.79994 1.77481 4.59985 1.50189 5.55953 1.37376C6.48666 1.24997 7.66719 1.24998 9.13948 1.25ZM5.75805 2.86056C4.96282 2.96674 4.53137 3.16245 4.22226 3.46942C3.91387 3.77568 3.71778 4.20206 3.61119 4.98935C3.50162 5.79875 3.5 6.87016 3.5 8.4V11.6C3.5 12.5721 3.50087 13.3576 3.52902 14.0064L6.03954 12.2878C6.94782 11.6827 8.2354 11.7423 9.0689 12.4535L9.07527 12.4589L9.33734 12.6877C9.68567 12.9822 10.2858 12.9815 10.6328 12.6855L13.984 9.82945C14.6747 9.24036 15.6655 9.09888 16.5 9.40545V8.4C16.5 6.87016 16.4984 5.79875 16.3888 4.98935C16.2822 4.20206 16.0861 3.77568 15.7777 3.46942C15.4686 3.16245 15.0372 2.96674 14.242 2.86056C13.4257 2.75157 12.3456 2.75 10.8056 2.75H9.19445C7.65442 2.75 6.57433 2.75157 5.75805 2.86056ZM16.2474 10.9638L16.5 11.1945V11.6C16.5 13.1298 16.4984 14.2013 16.3888 15.0107C16.2822 15.7979 16.0861 16.2243 15.7777 16.5306C15.4686 16.8376 15.0372 17.0333 14.242 17.1394C13.4257 17.2484 12.3456 17.25 10.8056 17.25H9.19445C7.65442 17.25 6.57433 17.2484 5.75805 17.1394C4.96282 17.0333 4.53137 16.8376 4.22226 16.5306C4.01416 16.3239 3.85786 16.0633 3.74539 15.6761L6.87456 13.534C7.23802 13.2943 7.78269 13.3303 8.09262 13.5923L8.35477 13.8211L8.36118 13.8266C9.26993 14.6019 10.6976 14.6019 11.6063 13.8266L14.9572 10.9709C15.3024 10.6764 15.8983 10.6739 16.2474 10.9638ZM5.22222 6.8C5.22222 5.49725 6.28423 4.45 7.58334 4.45C8.88244 4.45 9.94445 5.49725 9.94445 6.8C9.94445 8.10276 8.88244 9.15 7.58334 9.15C6.28423 9.15 5.22222 8.10276 5.22222 6.8Z",
366
+ "fill": "#758195"
367
+ }, null)]);
368
+ }
369
+ });
370
+ var FileIcon = (0, import_vue2.defineComponent)({
371
+ name: "FileIcon",
372
+ setup() {
373
+ return () => (0, import_vue.createVNode)("svg", {
374
+ "xmlns": "http://www.w3.org/2000/svg",
375
+ "width": "18",
376
+ "height": "17",
377
+ "viewBox": "0 0 18 17",
378
+ "fill": "none"
379
+ }, [(0, import_vue.createVNode)("path", {
380
+ "fill-rule": "evenodd",
381
+ "clip-rule": "evenodd",
382
+ "d": "M11.6901 2.47169C10.3906 1.1761 8.28282 1.1761 6.98332 2.47169L3.07076 6.37248C0.976415 8.46053 0.976415 11.845 3.07076 13.933C5.16636 16.0223 8.56492 16.0223 10.6605 13.933L16.2205 8.3898C16.5138 8.09734 16.9887 8.09806 17.2811 8.39139C17.5736 8.68473 17.5729 9.1596 17.2795 9.45205L11.7196 14.9953C9.03856 17.6682 4.69271 17.6682 2.0117 14.9953C-0.670564 12.3211 -0.670564 7.98442 2.0117 5.31022L5.92426 1.40943C7.80917 -0.469814 10.8643 -0.469812 12.7492 1.40943C14.6354 3.28992 14.6354 6.33973 12.7492 8.22022L8.83664 12.121C7.74783 13.2066 5.98345 13.2066 4.89464 12.121C3.80458 11.0342 3.80458 9.27127 4.89464 8.18449L8.8072 4.2837C9.10053 3.99125 9.5754 3.99196 9.86786 4.2853C10.1603 4.57863 10.1596 5.0535 9.86626 5.34596L5.9537 9.24675C5.45156 9.74738 5.45156 10.5581 5.9537 11.0588C6.45709 11.5606 7.27419 11.5606 7.77758 11.0588L11.6901 7.15797C12.9884 5.86363 12.9884 3.76603 11.6901 2.47169Z",
383
+ "fill": "#758195"
384
+ }, null)]);
385
+ }
386
+ });
387
+ var AudioIcon = (0, import_vue2.defineComponent)({
388
+ name: "AudioIcon",
389
+ setup() {
390
+ return () => (0, import_vue.createVNode)("svg", {
391
+ "xmlns": "http://www.w3.org/2000/svg",
392
+ "width": "20",
393
+ "height": "20",
394
+ "viewBox": "0 0 20 20",
395
+ "fill": "none"
396
+ }, [(0, import_vue.createVNode)("path", {
397
+ "fill-rule": "evenodd",
398
+ "clip-rule": "evenodd",
399
+ "d": "M6.32334 4.94737C6.32334 2.91036 7.96446 1.25 10 1.25C12.0355 1.25 13.6767 2.91036 13.6767 4.94737V10C13.6767 12.037 12.0355 13.6974 10 13.6974C7.96446 13.6974 6.32334 12.037 6.32334 10V4.94737ZM10 2.75C8.80284 2.75 7.82334 3.7288 7.82334 4.94737V10C7.82334 11.2186 8.80284 12.1974 10 12.1974C11.1972 12.1974 12.1767 11.2186 12.1767 10V4.94737C12.1767 3.7288 11.1972 2.75 10 2.75ZM14.9948 9.67107C15.409 9.66825 15.7471 10.0017 15.7499 10.4159C15.7686 13.1719 13.4277 15.3958 10.75 15.7526L10.75 17.25H11.6724C12.0866 17.25 12.4224 17.5858 12.4224 18C12.4224 18.4142 12.0866 18.75 11.6724 18.75H8.3276C7.91339 18.75 7.5776 18.4142 7.5776 18C7.5776 17.5858 7.91339 17.25 8.3276 17.25H9.24997L9.24996 15.7526C6.57163 15.3957 4.25 13.1696 4.25 10.4211C4.25 10.0068 4.58579 9.67105 5 9.67105C5.41421 9.67105 5.75 10.0068 5.75 10.4211C5.75 12.4712 7.71926 14.3026 9.99995 14.3026C12.2856 14.3026 14.2638 12.4679 14.2499 10.4262C14.2471 10.012 14.5806 9.67389 14.9948 9.67107Z",
400
+ "fill": "#758195"
401
+ }, null)]);
402
+ }
403
+ });
404
+ var MentionIcon = (0, import_vue2.defineComponent)({
405
+ name: "MentionIcon",
406
+ setup() {
407
+ return () => (0, import_vue.createVNode)("svg", {
408
+ "xmlns": "http://www.w3.org/2000/svg",
409
+ "width": "18",
410
+ "height": "18",
411
+ "viewBox": "0 0 18 18",
412
+ "fill": "none"
413
+ }, [(0, import_vue.createVNode)("path", {
414
+ "fill-rule": "evenodd",
415
+ "clip-rule": "evenodd",
416
+ "d": "M5.04155 0.82474C6.82687 -0.0106618 8.84196 -0.218789 10.7603 0.234079C12.6787 0.686946 14.388 1.77428 15.6112 3.3199C16.8345 4.86553 17.5 6.7789 17.5 8.75V9.55C17.5 10.3854 17.1681 11.1866 16.5774 11.7774C15.9866 12.3681 15.1854 12.7 14.35 12.7C13.5146 12.7 12.7134 12.3681 12.1226 11.7774C11.9824 11.6371 11.8567 11.485 11.7466 11.3234C11.0222 12.1662 9.94841 12.7 8.74991 12.7C6.56839 12.7 4.79991 10.9315 4.79991 8.74999C4.79991 6.56847 6.56839 4.79999 8.74991 4.79999C9.67546 4.79999 10.5267 5.11833 11.2 5.65148V5.55C11.2 5.13579 11.5358 4.8 11.95 4.8C12.3642 4.8 12.7 5.13579 12.7 5.55V9.55C12.7 9.98761 12.8738 10.4073 13.1833 10.7167C13.4927 11.0262 13.9124 11.2 14.35 11.2C14.7876 11.2 15.2073 11.0262 15.5167 10.7167C15.8262 10.4073 16 9.98761 16 9.55V8.75C16 7.1168 15.4486 5.53144 14.435 4.25078C13.4215 2.97012 12.0052 2.06919 10.4157 1.69395C8.8262 1.31872 7.15655 1.49117 5.67729 2.18336C4.19802 2.87555 2.9958 4.04692 2.26541 5.50771C1.53502 6.96849 1.31925 8.63309 1.65306 10.2318C1.98687 11.8305 2.85069 13.2697 4.10459 14.3162C5.35848 15.3627 6.92898 15.9551 8.56164 15.9976C10.1943 16.04 11.7934 15.5299 13.1 14.55C13.4314 14.3015 13.9015 14.3686 14.15 14.7C14.3985 15.0314 14.3314 15.5015 14 15.75C12.4231 16.9327 10.4931 17.5483 8.52266 17.497C6.55222 17.4458 4.65679 16.7308 3.14347 15.4678C1.63015 14.2048 0.587595 12.4679 0.184723 10.5384C-0.218148 8.6089 0.0422661 6.5999 0.923772 4.83689C1.80528 3.07387 3.25623 1.66014 5.04155 0.82474ZM8.74991 6.29999C7.39682 6.29999 6.29991 7.3969 6.29991 8.74999C6.29991 10.1031 7.39682 11.2 8.74991 11.2C10.103 11.2 11.1999 10.1031 11.1999 8.74999C11.1999 7.3969 10.103 6.29999 8.74991 6.29999Z",
417
+ "fill": "#758195"
418
+ }, null)]);
419
+ }
420
+ });
353
421
 
354
422
  // src/extensions/align-extension.tsx
355
423
  var AlignExtention = (0, import_vue4.defineComponent)({
@@ -372,7 +440,8 @@ var AlignExtention = (0, import_vue4.defineComponent)({
372
440
  });
373
441
  }, "isActiveAlignment");
374
442
  return () => (0, import_vue3.createVNode)(import_pixel3_popover.MpPopover, {
375
- "id": "popover-align-extention"
443
+ "id": "popover-align-extention",
444
+ "usePortal": true
376
445
  }, {
377
446
  default: () => [(0, import_vue3.createVNode)(import_pixel3_popover.MpPopoverTrigger, null, {
378
447
  default: () => [(0, import_vue3.withDirectives)((0, import_vue3.createVNode)("button", {
@@ -394,40 +463,25 @@ var AlignExtention = (0, import_vue4.defineComponent)({
394
463
  })
395
464
  }, {
396
465
  default: () => [(0, import_vue3.createVNode)(import_pixel3_popover.MpPopoverList, {
397
- "class": (0, import_css.css)({
398
- gap: "2",
399
- alignItems: "center"
400
- })
466
+ "data-pixel-rte": true
401
467
  }, {
402
468
  default: () => [(0, import_vue3.createVNode)(import_pixel3_popover.MpPopoverListItem, {
403
- "class": {
404
- "is-active": isActiveAlignment("left"),
405
- "text-sizing": true
406
- },
469
+ "is-active": isActiveAlignment("left"),
407
470
  "onClick": () => (editor == null ? void 0 : editor.chain()).focus().setTextAlign("left").run()
408
471
  }, {
409
472
  default: () => [(0, import_vue3.createVNode)(AlignLeftIcon, null, null)]
410
473
  }), (0, import_vue3.createVNode)(import_pixel3_popover.MpPopoverListItem, {
411
- "class": {
412
- "is-active": isActiveAlignment("center"),
413
- "text-sizing": true
414
- },
474
+ "is-active": isActiveAlignment("center"),
415
475
  "onClick": () => (editor == null ? void 0 : editor.chain()).focus().setTextAlign("center").run()
416
476
  }, {
417
477
  default: () => [(0, import_vue3.createVNode)(AlignCenterIcon, null, null)]
418
478
  }), (0, import_vue3.createVNode)(import_pixel3_popover.MpPopoverListItem, {
419
- "class": {
420
- "is-active": isActiveAlignment("right"),
421
- "text-sizing": true
422
- },
479
+ "is-active": isActiveAlignment("right"),
423
480
  "onClick": () => (editor == null ? void 0 : editor.chain()).focus().setTextAlign("right").run()
424
481
  }, {
425
482
  default: () => [(0, import_vue3.createVNode)(AlignRightIcon, null, null)]
426
483
  }), (0, import_vue3.createVNode)(import_pixel3_popover.MpPopoverListItem, {
427
- "class": {
428
- "is-active": isActiveAlignment("justify"),
429
- "text-sizing": true
430
- },
484
+ "is-active": isActiveAlignment("justify"),
431
485
  "onClick": () => (editor == null ? void 0 : editor.chain()).focus().setTextAlign("justify").run()
432
486
  }, {
433
487
  default: () => [(0, import_vue3.createVNode)(AlignJustifyIcon, null, null)]
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  AlignExtention
3
- } from "../chunk-JAKI6TU2.mjs";
4
- import "../chunk-RNQQ7LGC.mjs";
3
+ } from "../chunk-QG3GEBVL.mjs";
4
+ import "../chunk-PQRMWB4A.mjs";
5
5
  import "../chunk-QZ7VFGWC.mjs";
6
6
  export {
7
7
  AlignExtention