@cyberskill/cyber-editor 3.0.0 → 3.1.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.
@@ -1,25 +1,25 @@
1
1
  import _e, { forwardRef as br, createElement as yt, useState as he, useRef as sn, useEffect as hr } from "react";
2
- import { NodeViewWrapper as yr, NodeViewContent as ln, ReactNodeViewRenderer as vr, useCurrentEditor as cn, useEditor as un, EditorContent as dn } from "@tiptap/react";
3
- import { ColorPicker as fn, Tooltip as vt, Dropdown as Ct, Menu as Ft, Modal as mn } from "antd";
4
- import pn from "@tiptap/extension-list-item";
5
- import { Color as bn } from "@tiptap/extension-color";
2
+ import { NodeViewWrapper as yr, NodeViewContent as ln, ReactNodeViewRenderer as vr, useEditor as cn, EditorContent as un } from "@tiptap/react";
3
+ import { ColorPicker as dn, Tooltip as vt, Dropdown as Ct, Menu as Ft, Modal as fn } from "antd";
4
+ import mn from "@tiptap/extension-list-item";
5
+ import { Color as pn } from "@tiptap/extension-color";
6
6
  import Ut from "@tiptap/extension-text-style";
7
- import hn from "@tiptap/starter-kit";
8
- import yn from "@tiptap/extension-highlight";
9
- import vn from "@tiptap/extension-underline";
10
- import gn from "@tiptap/extension-subscript";
11
- import xn from "@tiptap/extension-superscript";
12
- import Nn from "@tiptap/extension-text-align";
13
- import En from "@tiptap/extension-task-list";
14
- import Sn from "@tiptap/extension-task-item";
15
- import wn from "@tiptap/extension-table";
16
- import Cn from "@tiptap/extension-table-row";
17
- import kn from "@tiptap/extension-table-header";
18
- import Dn from "@tiptap/extension-table-cell";
7
+ import bn from "@tiptap/starter-kit";
8
+ import hn from "@tiptap/extension-highlight";
9
+ import yn from "@tiptap/extension-underline";
10
+ import vn from "@tiptap/extension-subscript";
11
+ import gn from "@tiptap/extension-superscript";
12
+ import xn from "@tiptap/extension-text-align";
13
+ import Nn from "@tiptap/extension-task-list";
14
+ import En from "@tiptap/extension-task-item";
15
+ import Sn from "@tiptap/extension-table";
16
+ import wn from "@tiptap/extension-table-row";
17
+ import Cn from "@tiptap/extension-table-header";
18
+ import kn from "@tiptap/extension-table-cell";
19
19
  import { Node as gr, mergeAttributes as xr } from "@tiptap/core";
20
- import _n from "@tiptap/extension-image";
20
+ import Dn from "@tiptap/extension-image";
21
21
  import Nr from "react-dom";
22
- function On(e) {
22
+ function _n(e) {
23
23
  if (e.__esModule) return e;
24
24
  var t = e.default;
25
25
  if (typeof t == "function") {
@@ -49,7 +49,7 @@ var gt = { exports: {} }, Le = {};
49
49
  * LICENSE file in the root directory of this source tree.
50
50
  */
51
51
  var Bt;
52
- function Rn() {
52
+ function On() {
53
53
  if (Bt) return Le;
54
54
  Bt = 1;
55
55
  var e = Symbol.for("react.fragment");
@@ -66,7 +66,7 @@ var We = {};
66
66
  * LICENSE file in the root directory of this source tree.
67
67
  */
68
68
  var Xt;
69
- function Tn() {
69
+ function Rn() {
70
70
  return Xt || (Xt = 1, process.env.NODE_ENV !== "production" && function() {
71
71
  var e = _e, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), u = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), A = Symbol.iterator, $ = "@@iterator";
72
72
  function B(i) {
@@ -661,7 +661,7 @@ React keys must be passed directly to JSX without using spread:
661
661
  We.Fragment = n, We.jsxDEV = nn;
662
662
  }()), We;
663
663
  }
664
- process.env.NODE_ENV === "production" ? gt.exports = Rn() : gt.exports = Tn();
664
+ process.env.NODE_ENV === "production" ? gt.exports = On() : gt.exports = Rn();
665
665
  var l = gt.exports;
666
666
  /**
667
667
  * @license lucide-react v0.474.0 - ISC
@@ -669,14 +669,14 @@ var l = gt.exports;
669
669
  * This source code is licensed under the ISC license.
670
670
  * See the LICENSE file in the root directory of this source tree.
671
671
  */
672
- const Pn = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Er = (...e) => e.filter((t, r, n) => !!t && t.trim() !== "" && n.indexOf(t) === r).join(" ").trim();
672
+ const Tn = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Er = (...e) => e.filter((t, r, n) => !!t && t.trim() !== "" && n.indexOf(t) === r).join(" ").trim();
673
673
  /**
674
674
  * @license lucide-react v0.474.0 - ISC
675
675
  *
676
676
  * This source code is licensed under the ISC license.
677
677
  * See the LICENSE file in the root directory of this source tree.
678
678
  */
679
- var jn = {
679
+ var Pn = {
680
680
  xmlns: "http://www.w3.org/2000/svg",
681
681
  width: 24,
682
682
  height: 24,
@@ -693,7 +693,7 @@ var jn = {
693
693
  * This source code is licensed under the ISC license.
694
694
  * See the LICENSE file in the root directory of this source tree.
695
695
  */
696
- const Mn = br(
696
+ const jn = br(
697
697
  ({
698
698
  color: e = "currentColor",
699
699
  size: t = 24,
@@ -707,7 +707,7 @@ const Mn = br(
707
707
  "svg",
708
708
  {
709
709
  ref: m,
710
- ...jn,
710
+ ...Pn,
711
711
  width: t,
712
712
  height: t,
713
713
  stroke: e,
@@ -729,10 +729,10 @@ const Mn = br(
729
729
  */
730
730
  const L = (e, t) => {
731
731
  const r = br(
732
- ({ className: n, ...o }, a) => yt(Mn, {
732
+ ({ className: n, ...o }, a) => yt(jn, {
733
733
  ref: a,
734
734
  iconNode: t,
735
- className: Er(`lucide-${Pn(e)}`, n),
735
+ className: Er(`lucide-${Tn(e)}`, n),
736
736
  ...o
737
737
  })
738
738
  );
@@ -744,140 +744,140 @@ const L = (e, t) => {
744
744
  * This source code is licensed under the ISC license.
745
745
  * See the LICENSE file in the root directory of this source tree.
746
746
  */
747
- const Vn = [
747
+ const Mn = [
748
748
  ["path", { d: "M17 12H7", key: "16if0g" }],
749
749
  ["path", { d: "M19 18H5", key: "18s9l3" }],
750
750
  ["path", { d: "M21 6H3", key: "1jwq7v" }]
751
- ], An = L("AlignCenter", Vn);
751
+ ], Vn = L("AlignCenter", Mn);
752
752
  /**
753
753
  * @license lucide-react v0.474.0 - ISC
754
754
  *
755
755
  * This source code is licensed under the ISC license.
756
756
  * See the LICENSE file in the root directory of this source tree.
757
757
  */
758
- const $n = [
758
+ const An = [
759
759
  ["path", { d: "M3 12h18", key: "1i2n21" }],
760
760
  ["path", { d: "M3 18h18", key: "1h113x" }],
761
761
  ["path", { d: "M3 6h18", key: "d0wm0j" }]
762
- ], zn = L("AlignJustify", $n);
762
+ ], $n = L("AlignJustify", An);
763
763
  /**
764
764
  * @license lucide-react v0.474.0 - ISC
765
765
  *
766
766
  * This source code is licensed under the ISC license.
767
767
  * See the LICENSE file in the root directory of this source tree.
768
768
  */
769
- const In = [
769
+ const zn = [
770
770
  ["path", { d: "M15 12H3", key: "6jk70r" }],
771
771
  ["path", { d: "M17 18H3", key: "1amg6g" }],
772
772
  ["path", { d: "M21 6H3", key: "1jwq7v" }]
773
- ], Hn = L("AlignLeft", In);
773
+ ], In = L("AlignLeft", zn);
774
774
  /**
775
775
  * @license lucide-react v0.474.0 - ISC
776
776
  *
777
777
  * This source code is licensed under the ISC license.
778
778
  * See the LICENSE file in the root directory of this source tree.
779
779
  */
780
- const Ln = [
780
+ const Hn = [
781
781
  ["path", { d: "M21 12H9", key: "dn1m92" }],
782
782
  ["path", { d: "M21 18H7", key: "1ygte8" }],
783
783
  ["path", { d: "M21 6H3", key: "1jwq7v" }]
784
- ], Wn = L("AlignRight", Ln);
784
+ ], Ln = L("AlignRight", Hn);
785
785
  /**
786
786
  * @license lucide-react v0.474.0 - ISC
787
787
  *
788
788
  * This source code is licensed under the ISC license.
789
789
  * See the LICENSE file in the root directory of this source tree.
790
790
  */
791
- const qn = [
791
+ const Wn = [
792
792
  [
793
793
  "path",
794
794
  { d: "M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8", key: "mg9rjx" }
795
795
  ]
796
- ], Yn = L("Bold", qn);
796
+ ], qn = L("Bold", Wn);
797
797
  /**
798
798
  * @license lucide-react v0.474.0 - ISC
799
799
  *
800
800
  * This source code is licensed under the ISC license.
801
801
  * See the LICENSE file in the root directory of this source tree.
802
802
  */
803
- const Fn = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Un = L("ChevronDown", Fn);
803
+ const Yn = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Fn = L("ChevronDown", Yn);
804
804
  /**
805
805
  * @license lucide-react v0.474.0 - ISC
806
806
  *
807
807
  * This source code is licensed under the ISC license.
808
808
  * See the LICENSE file in the root directory of this source tree.
809
809
  */
810
- const Bn = [
810
+ const Un = [
811
811
  ["polyline", { points: "16 18 22 12 16 6", key: "z7tu5w" }],
812
812
  ["polyline", { points: "8 6 2 12 8 18", key: "1eg1df" }]
813
- ], Xn = L("Code", Bn);
813
+ ], Bn = L("Code", Un);
814
814
  /**
815
815
  * @license lucide-react v0.474.0 - ISC
816
816
  *
817
817
  * This source code is licensed under the ISC license.
818
818
  * See the LICENSE file in the root directory of this source tree.
819
819
  */
820
- const Kn = [
820
+ const Xn = [
821
821
  ["polyline", { points: "15 10 20 15 15 20", key: "1q7qjw" }],
822
822
  ["path", { d: "M4 4v7a4 4 0 0 0 4 4h12", key: "z08zvw" }]
823
- ], Gn = L("CornerDownRight", Kn);
823
+ ], Kn = L("CornerDownRight", Xn);
824
824
  /**
825
825
  * @license lucide-react v0.474.0 - ISC
826
826
  *
827
827
  * This source code is licensed under the ISC license.
828
828
  * See the LICENSE file in the root directory of this source tree.
829
829
  */
830
- const Jn = [
830
+ const Gn = [
831
831
  ["path", { d: "M4 12h8", key: "17cfdx" }],
832
832
  ["path", { d: "M4 18V6", key: "1rz3zl" }],
833
833
  ["path", { d: "M12 18V6", key: "zqpxq5" }],
834
834
  ["path", { d: "m17 12 3-2v8", key: "1hhhft" }]
835
- ], ot = L("Heading1", Jn);
835
+ ], ot = L("Heading1", Gn);
836
836
  /**
837
837
  * @license lucide-react v0.474.0 - ISC
838
838
  *
839
839
  * This source code is licensed under the ISC license.
840
840
  * See the LICENSE file in the root directory of this source tree.
841
841
  */
842
- const Zn = [
842
+ const Jn = [
843
843
  ["path", { d: "M4 12h8", key: "17cfdx" }],
844
844
  ["path", { d: "M4 18V6", key: "1rz3zl" }],
845
845
  ["path", { d: "M12 18V6", key: "zqpxq5" }],
846
846
  ["path", { d: "M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1", key: "9jr5yi" }]
847
- ], Kt = L("Heading2", Zn);
847
+ ], Kt = L("Heading2", Jn);
848
848
  /**
849
849
  * @license lucide-react v0.474.0 - ISC
850
850
  *
851
851
  * This source code is licensed under the ISC license.
852
852
  * See the LICENSE file in the root directory of this source tree.
853
853
  */
854
- const Qn = [
854
+ const Zn = [
855
855
  ["path", { d: "M4 12h8", key: "17cfdx" }],
856
856
  ["path", { d: "M4 18V6", key: "1rz3zl" }],
857
857
  ["path", { d: "M12 18V6", key: "zqpxq5" }],
858
858
  ["path", { d: "M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2", key: "68ncm8" }],
859
859
  ["path", { d: "M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2", key: "1ejuhz" }]
860
- ], Gt = L("Heading3", Qn);
860
+ ], Gt = L("Heading3", Zn);
861
861
  /**
862
862
  * @license lucide-react v0.474.0 - ISC
863
863
  *
864
864
  * This source code is licensed under the ISC license.
865
865
  * See the LICENSE file in the root directory of this source tree.
866
866
  */
867
- const ei = [
867
+ const Qn = [
868
868
  ["path", { d: "M12 18V6", key: "zqpxq5" }],
869
869
  ["path", { d: "M17 10v3a1 1 0 0 0 1 1h3", key: "tj5zdr" }],
870
870
  ["path", { d: "M21 10v8", key: "1kdml4" }],
871
871
  ["path", { d: "M4 12h8", key: "17cfdx" }],
872
872
  ["path", { d: "M4 18V6", key: "1rz3zl" }]
873
- ], Jt = L("Heading4", ei);
873
+ ], Jt = L("Heading4", Qn);
874
874
  /**
875
875
  * @license lucide-react v0.474.0 - ISC
876
876
  *
877
877
  * This source code is licensed under the ISC license.
878
878
  * See the LICENSE file in the root directory of this source tree.
879
879
  */
880
- const ti = [
880
+ const ei = [
881
881
  ["path", { d: "M4 12h8", key: "17cfdx" }],
882
882
  ["path", { d: "M4 18V6", key: "1rz3zl" }],
883
883
  ["path", { d: "M12 18V6", key: "zqpxq5" }],
@@ -886,49 +886,49 @@ const ti = [
886
886
  "path",
887
887
  { d: "M17 17.7c.4.2.8.3 1.3.3 1.5 0 2.7-1.1 2.7-2.5S19.8 13 18.3 13H17", key: "2nebdn" }
888
888
  ]
889
- ], Zt = L("Heading5", ti);
889
+ ], Zt = L("Heading5", ei);
890
890
  /**
891
891
  * @license lucide-react v0.474.0 - ISC
892
892
  *
893
893
  * This source code is licensed under the ISC license.
894
894
  * See the LICENSE file in the root directory of this source tree.
895
895
  */
896
- const ri = [
896
+ const ti = [
897
897
  ["path", { d: "M4 12h8", key: "17cfdx" }],
898
898
  ["path", { d: "M4 18V6", key: "1rz3zl" }],
899
899
  ["path", { d: "M12 18V6", key: "zqpxq5" }],
900
900
  ["circle", { cx: "19", cy: "16", r: "2", key: "15mx69" }],
901
901
  ["path", { d: "M20 10c-2 2-3 3.5-3 6", key: "f35dl0" }]
902
- ], Qt = L("Heading6", ri);
902
+ ], Qt = L("Heading6", ti);
903
903
  /**
904
904
  * @license lucide-react v0.474.0 - ISC
905
905
  *
906
906
  * This source code is licensed under the ISC license.
907
907
  * See the LICENSE file in the root directory of this source tree.
908
908
  */
909
- const ni = [
909
+ const ri = [
910
910
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
911
911
  ["circle", { cx: "9", cy: "9", r: "2", key: "af1f0g" }],
912
912
  ["path", { d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21", key: "1xmnt7" }]
913
- ], ii = L("Image", ni);
913
+ ], ni = L("Image", ri);
914
914
  /**
915
915
  * @license lucide-react v0.474.0 - ISC
916
916
  *
917
917
  * This source code is licensed under the ISC license.
918
918
  * See the LICENSE file in the root directory of this source tree.
919
919
  */
920
- const oi = [
920
+ const ii = [
921
921
  ["line", { x1: "19", x2: "10", y1: "4", y2: "4", key: "15jd3p" }],
922
922
  ["line", { x1: "14", x2: "5", y1: "20", y2: "20", key: "bu0au3" }],
923
923
  ["line", { x1: "15", x2: "9", y1: "4", y2: "20", key: "uljnxc" }]
924
- ], ai = L("Italic", oi);
924
+ ], oi = L("Italic", ii);
925
925
  /**
926
926
  * @license lucide-react v0.474.0 - ISC
927
927
  *
928
928
  * This source code is licensed under the ISC license.
929
929
  * See the LICENSE file in the root directory of this source tree.
930
930
  */
931
- const si = [
931
+ const ai = [
932
932
  [
933
933
  "path",
934
934
  {
@@ -950,49 +950,49 @@ const si = [
950
950
  key: "kqbvx6"
951
951
  }
952
952
  ]
953
- ], li = L("Layers", si);
953
+ ], si = L("Layers", ai);
954
954
  /**
955
955
  * @license lucide-react v0.474.0 - ISC
956
956
  *
957
957
  * This source code is licensed under the ISC license.
958
958
  * See the LICENSE file in the root directory of this source tree.
959
959
  */
960
- const ci = [
960
+ const li = [
961
961
  ["path", { d: "M10 12h11", key: "6m4ad9" }],
962
962
  ["path", { d: "M10 18h11", key: "11hvi2" }],
963
963
  ["path", { d: "M10 6h11", key: "c7qv1k" }],
964
964
  ["path", { d: "M4 10h2", key: "16xx2s" }],
965
965
  ["path", { d: "M4 6h1v4", key: "cnovpq" }],
966
966
  ["path", { d: "M6 18H4c0-1 2-2 2-3s-1-1.5-2-1", key: "m9a95d" }]
967
- ], ui = L("ListOrdered", ci);
967
+ ], ci = L("ListOrdered", li);
968
968
  /**
969
969
  * @license lucide-react v0.474.0 - ISC
970
970
  *
971
971
  * This source code is licensed under the ISC license.
972
972
  * See the LICENSE file in the root directory of this source tree.
973
973
  */
974
- const di = [
974
+ const ui = [
975
975
  ["path", { d: "M3 12h.01", key: "nlz23k" }],
976
976
  ["path", { d: "M3 18h.01", key: "1tta3j" }],
977
977
  ["path", { d: "M3 6h.01", key: "1rqtza" }],
978
978
  ["path", { d: "M8 12h13", key: "1za7za" }],
979
979
  ["path", { d: "M8 18h13", key: "1lx6n3" }],
980
980
  ["path", { d: "M8 6h13", key: "ik3vkj" }]
981
- ], fi = L("List", di);
981
+ ], di = L("List", ui);
982
982
  /**
983
983
  * @license lucide-react v0.474.0 - ISC
984
984
  *
985
985
  * This source code is licensed under the ISC license.
986
986
  * See the LICENSE file in the root directory of this source tree.
987
987
  */
988
- const mi = [["path", { d: "M5 12h14", key: "1ays0h" }]], pi = L("Minus", mi);
988
+ const fi = [["path", { d: "M5 12h14", key: "1ays0h" }]], mi = L("Minus", fi);
989
989
  /**
990
990
  * @license lucide-react v0.474.0 - ISC
991
991
  *
992
992
  * This source code is licensed under the ISC license.
993
993
  * See the LICENSE file in the root directory of this source tree.
994
994
  */
995
- const bi = [
995
+ const pi = [
996
996
  [
997
997
  "path",
998
998
  { d: "m19 11-8-8-8.6 8.6a2 2 0 0 0 0 2.8l5.2 5.2c.8.8 2 .8 2.8 0L19 11Z", key: "irua1i" }
@@ -1000,24 +1000,24 @@ const bi = [
1000
1000
  ["path", { d: "m5 2 5 5", key: "1lls2c" }],
1001
1001
  ["path", { d: "M2 13h15", key: "1hkzvu" }],
1002
1002
  ["path", { d: "M22 20a2 2 0 1 1-4 0c0-1.6 1.7-2.4 2-4 .3 1.6 2 2.4 2 4Z", key: "xk76lq" }]
1003
- ], hi = L("PaintBucket", bi);
1003
+ ], bi = L("PaintBucket", pi);
1004
1004
  /**
1005
1005
  * @license lucide-react v0.474.0 - ISC
1006
1006
  *
1007
1007
  * This source code is licensed under the ISC license.
1008
1008
  * See the LICENSE file in the root directory of this source tree.
1009
1009
  */
1010
- const yi = [
1010
+ const hi = [
1011
1011
  ["path", { d: "M5 12h14", key: "1ays0h" }],
1012
1012
  ["path", { d: "M12 5v14", key: "s699le" }]
1013
- ], vi = L("Plus", yi);
1013
+ ], yi = L("Plus", hi);
1014
1014
  /**
1015
1015
  * @license lucide-react v0.474.0 - ISC
1016
1016
  *
1017
1017
  * This source code is licensed under the ISC license.
1018
1018
  * See the LICENSE file in the root directory of this source tree.
1019
1019
  */
1020
- const gi = [
1020
+ const vi = [
1021
1021
  [
1022
1022
  "path",
1023
1023
  {
@@ -1032,45 +1032,45 @@ const gi = [
1032
1032
  key: "1ymkrd"
1033
1033
  }
1034
1034
  ]
1035
- ], xi = L("Quote", gi);
1035
+ ], gi = L("Quote", vi);
1036
1036
  /**
1037
1037
  * @license lucide-react v0.474.0 - ISC
1038
1038
  *
1039
1039
  * This source code is licensed under the ISC license.
1040
1040
  * See the LICENSE file in the root directory of this source tree.
1041
1041
  */
1042
- const Ni = [
1042
+ const xi = [
1043
1043
  ["path", { d: "M21 7v6h-6", key: "3ptur4" }],
1044
1044
  ["path", { d: "M3 17a9 9 0 0 1 9-9 9 9 0 0 1 6 2.3l3 2.7", key: "1kgawr" }]
1045
- ], Ei = L("Redo", Ni);
1045
+ ], Ni = L("Redo", xi);
1046
1046
  /**
1047
1047
  * @license lucide-react v0.474.0 - ISC
1048
1048
  *
1049
1049
  * This source code is licensed under the ISC license.
1050
1050
  * See the LICENSE file in the root directory of this source tree.
1051
1051
  */
1052
- const Si = [
1052
+ const Ei = [
1053
1053
  ["path", { d: "M21 10.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.5", key: "1uzm8b" }],
1054
1054
  ["path", { d: "m9 11 3 3L22 4", key: "1pflzl" }]
1055
- ], wi = L("SquareCheckBig", Si);
1055
+ ], Si = L("SquareCheckBig", Ei);
1056
1056
  /**
1057
1057
  * @license lucide-react v0.474.0 - ISC
1058
1058
  *
1059
1059
  * This source code is licensed under the ISC license.
1060
1060
  * See the LICENSE file in the root directory of this source tree.
1061
1061
  */
1062
- const Ci = [
1062
+ const wi = [
1063
1063
  ["path", { d: "M16 4H9a3 3 0 0 0-2.83 4", key: "43sutm" }],
1064
1064
  ["path", { d: "M14 12a4 4 0 0 1 0 8H6", key: "nlfj13" }],
1065
1065
  ["line", { x1: "4", x2: "20", y1: "12", y2: "12", key: "1e0a9i" }]
1066
- ], ki = L("Strikethrough", Ci);
1066
+ ], Ci = L("Strikethrough", wi);
1067
1067
  /**
1068
1068
  * @license lucide-react v0.474.0 - ISC
1069
1069
  *
1070
1070
  * This source code is licensed under the ISC license.
1071
1071
  * See the LICENSE file in the root directory of this source tree.
1072
1072
  */
1073
- const Di = [
1073
+ const ki = [
1074
1074
  ["path", { d: "m4 5 8 8", key: "1eunvl" }],
1075
1075
  ["path", { d: "m12 5-8 8", key: "1ah0jp" }],
1076
1076
  [
@@ -1080,14 +1080,14 @@ const Di = [
1080
1080
  key: "e8ta8j"
1081
1081
  }
1082
1082
  ]
1083
- ], _i = L("Subscript", Di);
1083
+ ], Di = L("Subscript", ki);
1084
1084
  /**
1085
1085
  * @license lucide-react v0.474.0 - ISC
1086
1086
  *
1087
1087
  * This source code is licensed under the ISC license.
1088
1088
  * See the LICENSE file in the root directory of this source tree.
1089
1089
  */
1090
- const Oi = [
1090
+ const _i = [
1091
1091
  ["path", { d: "m4 19 8-8", key: "hr47gm" }],
1092
1092
  ["path", { d: "m12 19-8-8", key: "1dhhmo" }],
1093
1093
  [
@@ -1097,61 +1097,61 @@ const Oi = [
1097
1097
  key: "1dfcux"
1098
1098
  }
1099
1099
  ]
1100
- ], Ri = L("Superscript", Oi);
1100
+ ], Oi = L("Superscript", _i);
1101
1101
  /**
1102
1102
  * @license lucide-react v0.474.0 - ISC
1103
1103
  *
1104
1104
  * This source code is licensed under the ISC license.
1105
1105
  * See the LICENSE file in the root directory of this source tree.
1106
1106
  */
1107
- const Ti = [
1107
+ const Ri = [
1108
1108
  ["path", { d: "M12 3v18", key: "108xh3" }],
1109
1109
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
1110
1110
  ["path", { d: "M3 9h18", key: "1pudct" }],
1111
1111
  ["path", { d: "M3 15h18", key: "5xshup" }]
1112
- ], Pi = L("Table", Ti);
1112
+ ], Ti = L("Table", Ri);
1113
1113
  /**
1114
1114
  * @license lucide-react v0.474.0 - ISC
1115
1115
  *
1116
1116
  * This source code is licensed under the ISC license.
1117
1117
  * See the LICENSE file in the root directory of this source tree.
1118
1118
  */
1119
- const ji = [
1119
+ const Pi = [
1120
1120
  ["path", { d: "M17 22h-1a4 4 0 0 1-4-4V6a4 4 0 0 1 4-4h1", key: "uvaxm9" }],
1121
1121
  ["path", { d: "M7 22h1a4 4 0 0 0 4-4v-1", key: "11xy8d" }],
1122
1122
  ["path", { d: "M7 2h1a4 4 0 0 1 4 4v1", key: "1uw06m" }]
1123
- ], Mi = L("TextCursor", ji);
1123
+ ], ji = L("TextCursor", Pi);
1124
1124
  /**
1125
1125
  * @license lucide-react v0.474.0 - ISC
1126
1126
  *
1127
1127
  * This source code is licensed under the ISC license.
1128
1128
  * See the LICENSE file in the root directory of this source tree.
1129
1129
  */
1130
- const Vi = [
1130
+ const Mi = [
1131
1131
  ["path", { d: "M6 4v6a6 6 0 0 0 12 0V4", key: "9kb039" }],
1132
1132
  ["line", { x1: "4", x2: "20", y1: "20", y2: "20", key: "nun2al" }]
1133
- ], Ai = L("Underline", Vi);
1133
+ ], Vi = L("Underline", Mi);
1134
1134
  /**
1135
1135
  * @license lucide-react v0.474.0 - ISC
1136
1136
  *
1137
1137
  * This source code is licensed under the ISC license.
1138
1138
  * See the LICENSE file in the root directory of this source tree.
1139
1139
  */
1140
- const $i = [
1140
+ const Ai = [
1141
1141
  ["path", { d: "M3 7v6h6", key: "1v2h90" }],
1142
1142
  ["path", { d: "M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13", key: "1r6uu6" }]
1143
- ], zi = L("Undo", $i);
1143
+ ], $i = L("Undo", Ai);
1144
1144
  /**
1145
1145
  * @license lucide-react v0.474.0 - ISC
1146
1146
  *
1147
1147
  * This source code is licensed under the ISC license.
1148
1148
  * See the LICENSE file in the root directory of this source tree.
1149
1149
  */
1150
- const Ii = [
1150
+ const zi = [
1151
1151
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
1152
1152
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
1153
- ], Hi = L("X", Ii);
1154
- function Li({ editor: e }) {
1153
+ ], Ii = L("X", zi);
1154
+ function Hi({ editor: e }) {
1155
1155
  const [t, r] = he(!1);
1156
1156
  return /* @__PURE__ */ l.jsxDEV("div", { className: "relative", children: [
1157
1157
  /* @__PURE__ */ l.jsxDEV(
@@ -1159,11 +1159,11 @@ function Li({ editor: e }) {
1159
1159
  {
1160
1160
  className: `p-1 text-black transition-all duration-300 rounded-md shadow-lg hover:bg-blue-100 hover:text-blue-600 ${t ? "bg-blue-100 text-blue-600" : ""}`,
1161
1161
  onClick: () => r(!t),
1162
- children: t ? /* @__PURE__ */ l.jsxDEV(Hi, { size: 24 }, void 0, !1, {
1162
+ children: t ? /* @__PURE__ */ l.jsxDEV(Ii, { size: 24 }, void 0, !1, {
1163
1163
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/cyber-extensions.tsx",
1164
1164
  lineNumber: 13,
1165
1165
  columnNumber: 25
1166
- }, this) : /* @__PURE__ */ l.jsxDEV(li, { size: 24 }, void 0, !1, {
1166
+ }, this) : /* @__PURE__ */ l.jsxDEV(si, { size: 24 }, void 0, !1, {
1167
1167
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/cyber-extensions.tsx",
1168
1168
  lineNumber: 13,
1169
1169
  columnNumber: 43
@@ -1200,7 +1200,7 @@ function Li({ editor: e }) {
1200
1200
  },
1201
1201
  className: "flex items-center justify-center w-full gap-2 px-3 py-1 text-blue-600 duration-300 rounded-md bg-blue-50 hover:bg-blue-100 hover:text-blue-700",
1202
1202
  children: [
1203
- /* @__PURE__ */ l.jsxDEV(vi, { size: 16 }, void 0, !1, {
1203
+ /* @__PURE__ */ l.jsxDEV(yi, { size: 16 }, void 0, !1, {
1204
1204
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/cyber-extensions.tsx",
1205
1205
  lineNumber: 33,
1206
1206
  columnNumber: 29
@@ -1239,7 +1239,7 @@ function Li({ editor: e }) {
1239
1239
  }, this);
1240
1240
  }
1241
1241
  const Fe = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
1242
- fn,
1242
+ dn,
1243
1243
  {
1244
1244
  value: e,
1245
1245
  onChange: t,
@@ -1267,7 +1267,7 @@ const Fe = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
1267
1267
  columnNumber: 9
1268
1268
  },
1269
1269
  void 0
1270
- ), Wi = ({ editor: e }) => {
1270
+ ), Li = ({ editor: e }) => {
1271
1271
  const [t, r] = he("#1677ff"), [n, o] = he("#ffffff"), a = (m) => {
1272
1272
  const p = m.toHexString();
1273
1273
  r(p), e.chain().focus().setColor(p).run();
@@ -1279,7 +1279,7 @@ const Fe = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
1279
1279
  };
1280
1280
  return /* @__PURE__ */ l.jsxDEV("div", { className: "flex items-center gap-4", children: [
1281
1281
  /* @__PURE__ */ l.jsxDEV(vt, { title: "Text Color", children: /* @__PURE__ */ l.jsxDEV("div", { className: "flex items-center gap-2", onMouseDown: u, children: [
1282
- /* @__PURE__ */ l.jsxDEV(Mi, { size: 20, color: "black" }, void 0, !1, {
1282
+ /* @__PURE__ */ l.jsxDEV(ji, { size: 20, color: "black" }, void 0, !1, {
1283
1283
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/color/color-picker.tsx",
1284
1284
  lineNumber: 33,
1285
1285
  columnNumber: 21
@@ -1299,7 +1299,7 @@ const Fe = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
1299
1299
  columnNumber: 13
1300
1300
  }, void 0),
1301
1301
  /* @__PURE__ */ l.jsxDEV(vt, { title: "Highlight Color", children: /* @__PURE__ */ l.jsxDEV("div", { className: "flex items-center gap-2", onMouseDown: u, children: [
1302
- /* @__PURE__ */ l.jsxDEV(hi, { size: 20, color: "black" }, void 0, !1, {
1302
+ /* @__PURE__ */ l.jsxDEV(bi, { size: 20, color: "black" }, void 0, !1, {
1303
1303
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/color/color-picker.tsx",
1304
1304
  lineNumber: 41,
1305
1305
  columnNumber: 21
@@ -1323,7 +1323,7 @@ const Fe = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
1323
1323
  lineNumber: 29,
1324
1324
  columnNumber: 9
1325
1325
  }, void 0);
1326
- }, qi = ({ editor: e }) => {
1326
+ }, Wi = ({ editor: e }) => {
1327
1327
  if (!e) return null;
1328
1328
  const t = () => {
1329
1329
  for (let n = 1; n <= 6; n++)
@@ -1401,7 +1401,7 @@ const Fe = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
1401
1401
  lineNumber: 41,
1402
1402
  columnNumber: 9
1403
1403
  }, void 0);
1404
- }, Yi = 8, Fi = 8, Ui = ({
1404
+ }, qi = 8, Yi = 8, Fi = ({
1405
1405
  editor: e,
1406
1406
  buttonClass: t,
1407
1407
  activeClass: r
@@ -1416,8 +1416,8 @@ const Fe = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
1416
1416
  onOpenChange: s,
1417
1417
  trigger: ["hover"],
1418
1418
  overlay: /* @__PURE__ */ l.jsxDEV("div", { className: "w-56 p-4 bg-white border border-gray-300 rounded-lg shadow-xl", children: [
1419
- /* @__PURE__ */ l.jsxDEV("div", { className: "grid grid-cols-8 gap-1", children: Array.from({ length: Yi }).map(
1420
- (m, p) => Array.from({ length: Fi }).map((y, v) => {
1419
+ /* @__PURE__ */ l.jsxDEV("div", { className: "grid grid-cols-8 gap-1", children: Array.from({ length: qi }).map(
1420
+ (m, p) => Array.from({ length: Yi }).map((y, v) => {
1421
1421
  const O = p < n.rows && v < n.cols;
1422
1422
  return /* @__PURE__ */ l.jsxDEV(
1423
1423
  "div",
@@ -1455,7 +1455,7 @@ const Fe = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
1455
1455
  "button",
1456
1456
  {
1457
1457
  className: `${t} ${a ? r : ""} transition-all`,
1458
- children: /* @__PURE__ */ l.jsxDEV(Pi, { className: "w-5 h-5" }, void 0, !1, {
1458
+ children: /* @__PURE__ */ l.jsxDEV(Ti, { className: "w-5 h-5" }, void 0, !1, {
1459
1459
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/table/table-selector.tsx",
1460
1460
  lineNumber: 65,
1461
1461
  columnNumber: 17
@@ -1481,7 +1481,7 @@ const Fe = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
1481
1481
  void 0
1482
1482
  );
1483
1483
  };
1484
- function Bi({ editor: e }) {
1484
+ function Ui({ editor: e }) {
1485
1485
  if (!e) return null;
1486
1486
  const t = "p-2 rounded-md transition-all duration-200 hover:bg-blue-100 hover:text-blue-600", r = "bg-blue-100 text-blue-600", n = (o, a, s, u, m) => /* @__PURE__ */ l.jsxDEV(vt, { title: m, children: /* @__PURE__ */ l.jsxDEV(
1487
1487
  "button",
@@ -1512,7 +1512,7 @@ function Bi({ editor: e }) {
1512
1512
  return /* @__PURE__ */ l.jsxDEV("div", { className: "flex flex-wrap items-center gap-2 p-2 border-b border-gray-200 rounded-t-lg bg-gray-50", children: [
1513
1513
  /* @__PURE__ */ l.jsxDEV("div", { className: "flex items-center gap-1", children: [
1514
1514
  n(
1515
- /* @__PURE__ */ l.jsxDEV(Yn, { size: 16 }, void 0, !1, {
1515
+ /* @__PURE__ */ l.jsxDEV(qn, { size: 16 }, void 0, !1, {
1516
1516
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1517
1517
  lineNumber: 52,
1518
1518
  columnNumber: 21
@@ -1523,7 +1523,7 @@ function Bi({ editor: e }) {
1523
1523
  "Bold"
1524
1524
  ),
1525
1525
  n(
1526
- /* @__PURE__ */ l.jsxDEV(ai, { size: 16 }, void 0, !1, {
1526
+ /* @__PURE__ */ l.jsxDEV(oi, { size: 16 }, void 0, !1, {
1527
1527
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1528
1528
  lineNumber: 59,
1529
1529
  columnNumber: 21
@@ -1534,7 +1534,7 @@ function Bi({ editor: e }) {
1534
1534
  "Italic"
1535
1535
  ),
1536
1536
  n(
1537
- /* @__PURE__ */ l.jsxDEV(Ai, { size: 16 }, void 0, !1, {
1537
+ /* @__PURE__ */ l.jsxDEV(Vi, { size: 16 }, void 0, !1, {
1538
1538
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1539
1539
  lineNumber: 66,
1540
1540
  columnNumber: 21
@@ -1545,7 +1545,7 @@ function Bi({ editor: e }) {
1545
1545
  "Underline"
1546
1546
  ),
1547
1547
  n(
1548
- /* @__PURE__ */ l.jsxDEV(ki, { size: 16 }, void 0, !1, {
1548
+ /* @__PURE__ */ l.jsxDEV(Ci, { size: 16 }, void 0, !1, {
1549
1549
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1550
1550
  lineNumber: 73,
1551
1551
  columnNumber: 21
@@ -1556,7 +1556,7 @@ function Bi({ editor: e }) {
1556
1556
  "Strikethrough"
1557
1557
  ),
1558
1558
  n(
1559
- /* @__PURE__ */ l.jsxDEV(Xn, { size: 16 }, void 0, !1, {
1559
+ /* @__PURE__ */ l.jsxDEV(Bn, { size: 16 }, void 0, !1, {
1560
1560
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1561
1561
  lineNumber: 80,
1562
1562
  columnNumber: 21
@@ -1567,7 +1567,7 @@ function Bi({ editor: e }) {
1567
1567
  "Code"
1568
1568
  ),
1569
1569
  n(
1570
- /* @__PURE__ */ l.jsxDEV(_i, { size: 16 }, void 0, !1, {
1570
+ /* @__PURE__ */ l.jsxDEV(Di, { size: 16 }, void 0, !1, {
1571
1571
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1572
1572
  lineNumber: 87,
1573
1573
  columnNumber: 21
@@ -1578,7 +1578,7 @@ function Bi({ editor: e }) {
1578
1578
  "Subscript"
1579
1579
  ),
1580
1580
  n(
1581
- /* @__PURE__ */ l.jsxDEV(Ri, { size: 16 }, void 0, !1, {
1581
+ /* @__PURE__ */ l.jsxDEV(Oi, { size: 16 }, void 0, !1, {
1582
1582
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1583
1583
  lineNumber: 94,
1584
1584
  columnNumber: 21
@@ -1598,7 +1598,7 @@ function Bi({ editor: e }) {
1598
1598
  lineNumber: 102,
1599
1599
  columnNumber: 13
1600
1600
  }, this),
1601
- /* @__PURE__ */ l.jsxDEV(qi, { editor: e }, void 0, !1, {
1601
+ /* @__PURE__ */ l.jsxDEV(Wi, { editor: e }, void 0, !1, {
1602
1602
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1603
1603
  lineNumber: 105,
1604
1604
  columnNumber: 13
@@ -1610,7 +1610,7 @@ function Bi({ editor: e }) {
1610
1610
  }, this),
1611
1611
  /* @__PURE__ */ l.jsxDEV("div", { className: "flex items-center gap-1", children: [
1612
1612
  n(
1613
- /* @__PURE__ */ l.jsxDEV(Hn, { size: 16 }, void 0, !1, {
1613
+ /* @__PURE__ */ l.jsxDEV(In, { size: 16 }, void 0, !1, {
1614
1614
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1615
1615
  lineNumber: 112,
1616
1616
  columnNumber: 21
@@ -1621,7 +1621,7 @@ function Bi({ editor: e }) {
1621
1621
  "Align Left"
1622
1622
  ),
1623
1623
  n(
1624
- /* @__PURE__ */ l.jsxDEV(An, { size: 16 }, void 0, !1, {
1624
+ /* @__PURE__ */ l.jsxDEV(Vn, { size: 16 }, void 0, !1, {
1625
1625
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1626
1626
  lineNumber: 119,
1627
1627
  columnNumber: 21
@@ -1632,7 +1632,7 @@ function Bi({ editor: e }) {
1632
1632
  "Align Center"
1633
1633
  ),
1634
1634
  n(
1635
- /* @__PURE__ */ l.jsxDEV(Wn, { size: 16 }, void 0, !1, {
1635
+ /* @__PURE__ */ l.jsxDEV(Ln, { size: 16 }, void 0, !1, {
1636
1636
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1637
1637
  lineNumber: 124,
1638
1638
  columnNumber: 21
@@ -1643,7 +1643,7 @@ function Bi({ editor: e }) {
1643
1643
  "Align Right"
1644
1644
  ),
1645
1645
  n(
1646
- /* @__PURE__ */ l.jsxDEV(zn, { size: 16 }, void 0, !1, {
1646
+ /* @__PURE__ */ l.jsxDEV($n, { size: 16 }, void 0, !1, {
1647
1647
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1648
1648
  lineNumber: 129,
1649
1649
  columnNumber: 21
@@ -1665,7 +1665,7 @@ function Bi({ editor: e }) {
1665
1665
  }, this),
1666
1666
  /* @__PURE__ */ l.jsxDEV("div", { className: "flex items-center gap-1", children: [
1667
1667
  n(
1668
- /* @__PURE__ */ l.jsxDEV(fi, { size: 16 }, void 0, !1, {
1668
+ /* @__PURE__ */ l.jsxDEV(di, { size: 16 }, void 0, !1, {
1669
1669
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1670
1670
  lineNumber: 140,
1671
1671
  columnNumber: 21
@@ -1676,7 +1676,7 @@ function Bi({ editor: e }) {
1676
1676
  "Bullet List"
1677
1677
  ),
1678
1678
  n(
1679
- /* @__PURE__ */ l.jsxDEV(ui, { size: 16 }, void 0, !1, {
1679
+ /* @__PURE__ */ l.jsxDEV(ci, { size: 16 }, void 0, !1, {
1680
1680
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1681
1681
  lineNumber: 145,
1682
1682
  columnNumber: 21
@@ -1687,7 +1687,7 @@ function Bi({ editor: e }) {
1687
1687
  "Ordered List"
1688
1688
  ),
1689
1689
  n(
1690
- /* @__PURE__ */ l.jsxDEV(wi, { size: 16 }, void 0, !1, {
1690
+ /* @__PURE__ */ l.jsxDEV(Si, { size: 16 }, void 0, !1, {
1691
1691
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1692
1692
  lineNumber: 150,
1693
1693
  columnNumber: 21
@@ -1709,7 +1709,7 @@ function Bi({ editor: e }) {
1709
1709
  }, this),
1710
1710
  /* @__PURE__ */ l.jsxDEV("div", { className: "flex items-center gap-1", children: [
1711
1711
  n(
1712
- /* @__PURE__ */ l.jsxDEV(xi, { size: 16 }, void 0, !1, {
1712
+ /* @__PURE__ */ l.jsxDEV(gi, { size: 16 }, void 0, !1, {
1713
1713
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1714
1714
  lineNumber: 161,
1715
1715
  columnNumber: 21
@@ -1719,13 +1719,13 @@ function Bi({ editor: e }) {
1719
1719
  !1,
1720
1720
  "Blockquote"
1721
1721
  ),
1722
- /* @__PURE__ */ l.jsxDEV(Ui, { editor: e, buttonClass: t, activeClass: r }, void 0, !1, {
1722
+ /* @__PURE__ */ l.jsxDEV(Fi, { editor: e, buttonClass: t, activeClass: r }, void 0, !1, {
1723
1723
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1724
1724
  lineNumber: 165,
1725
1725
  columnNumber: 17
1726
1726
  }, this),
1727
1727
  n(
1728
- /* @__PURE__ */ l.jsxDEV(pi, { size: 16 }, void 0, !1, {
1728
+ /* @__PURE__ */ l.jsxDEV(mi, { size: 16 }, void 0, !1, {
1729
1729
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1730
1730
  lineNumber: 167,
1731
1731
  columnNumber: 21
@@ -1736,7 +1736,7 @@ function Bi({ editor: e }) {
1736
1736
  "Horizontal Rule"
1737
1737
  ),
1738
1738
  n(
1739
- /* @__PURE__ */ l.jsxDEV(Gn, { size: 16 }, void 0, !1, {
1739
+ /* @__PURE__ */ l.jsxDEV(Kn, { size: 16 }, void 0, !1, {
1740
1740
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1741
1741
  lineNumber: 171,
1742
1742
  columnNumber: 21
@@ -1758,7 +1758,7 @@ function Bi({ editor: e }) {
1758
1758
  }, this),
1759
1759
  /* @__PURE__ */ l.jsxDEV("div", { className: "flex items-center gap-1", children: [
1760
1760
  n(
1761
- /* @__PURE__ */ l.jsxDEV(zi, { size: 16 }, void 0, !1, {
1761
+ /* @__PURE__ */ l.jsxDEV($i, { size: 16 }, void 0, !1, {
1762
1762
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1763
1763
  lineNumber: 181,
1764
1764
  columnNumber: 21
@@ -1768,7 +1768,7 @@ function Bi({ editor: e }) {
1768
1768
  !e.can().chain().focus().undo().run()
1769
1769
  ),
1770
1770
  n(
1771
- /* @__PURE__ */ l.jsxDEV(Ei, { size: 16 }, void 0, !1, {
1771
+ /* @__PURE__ */ l.jsxDEV(Ni, { size: 16 }, void 0, !1, {
1772
1772
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1773
1773
  lineNumber: 187,
1774
1774
  columnNumber: 21
@@ -1788,19 +1788,21 @@ function Bi({ editor: e }) {
1788
1788
  columnNumber: 13
1789
1789
  }, this),
1790
1790
  n(
1791
- /* @__PURE__ */ l.jsxDEV(ii, { size: 16 }, void 0, !1, {
1791
+ /* @__PURE__ */ l.jsxDEV(ni, { size: 16 }, void 0, !1, {
1792
1792
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1793
1793
  lineNumber: 197,
1794
1794
  columnNumber: 17
1795
1795
  }, this),
1796
1796
  () => {
1797
1797
  const o = prompt("Enter the image URL");
1798
- e.chain().focus().insertContent({
1798
+ o && e.chain().focus().insertContent({
1799
1799
  type: "image",
1800
1800
  attrs: {
1801
1801
  src: o,
1802
1802
  width: 300,
1803
- height: 300
1803
+ height: 300,
1804
+ marginLeft: 0,
1805
+ marginRight: 0
1804
1806
  }
1805
1807
  }).run();
1806
1808
  },
@@ -1810,22 +1812,22 @@ function Bi({ editor: e }) {
1810
1812
  ),
1811
1813
  /* @__PURE__ */ l.jsxDEV("div", { className: "h-5 w-[1px] bg-gray-300 mx-2" }, void 0, !1, {
1812
1814
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1813
- lineNumber: 215,
1815
+ lineNumber: 218,
1814
1816
  columnNumber: 13
1815
1817
  }, this),
1816
- /* @__PURE__ */ l.jsxDEV(Wi, { editor: e }, void 0, !1, {
1818
+ /* @__PURE__ */ l.jsxDEV(Li, { editor: e }, void 0, !1, {
1817
1819
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1818
- lineNumber: 218,
1820
+ lineNumber: 221,
1819
1821
  columnNumber: 13
1820
1822
  }, this),
1821
1823
  /* @__PURE__ */ l.jsxDEV("div", { className: "h-5 w-[1px] bg-gray-300 mx-2" }, void 0, !1, {
1822
1824
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1823
- lineNumber: 220,
1825
+ lineNumber: 223,
1824
1826
  columnNumber: 13
1825
1827
  }, this),
1826
- /* @__PURE__ */ l.jsxDEV(Li, { editor: e }, void 0, !1, {
1828
+ /* @__PURE__ */ l.jsxDEV(Hi, { editor: e }, void 0, !1, {
1827
1829
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1828
- lineNumber: 221,
1830
+ lineNumber: 224,
1829
1831
  columnNumber: 13
1830
1832
  }, this)
1831
1833
  ] }, void 0, !0, {
@@ -1856,7 +1858,7 @@ const Sr = ({
1856
1858
  columnNumber: 17
1857
1859
  }, void 0) : t,
1858
1860
  /* @__PURE__ */ l.jsxDEV(
1859
- mn,
1861
+ fn,
1860
1862
  {
1861
1863
  title: `Edit ${e}`,
1862
1864
  open: o,
@@ -1878,7 +1880,7 @@ const Sr = ({
1878
1880
  lineNumber: 26,
1879
1881
  columnNumber: 9
1880
1882
  }, void 0);
1881
- }, Xi = ({ node: e, editor: t }) => {
1883
+ }, Bi = ({ node: e, editor: t }) => {
1882
1884
  const [r, n] = he(!1), [o, a] = he(e.attrs.bgColor || "#f3f4f6"), [s, u] = he(e.attrs.titleColor || "#000000"), m = (v) => {
1883
1885
  v.preventDefault();
1884
1886
  }, p = (v) => {
@@ -1924,7 +1926,7 @@ const Sr = ({
1924
1926
  void 0
1925
1927
  ),
1926
1928
  /* @__PURE__ */ l.jsxDEV(
1927
- Un,
1929
+ Fn,
1928
1930
  {
1929
1931
  className: `transition-transform duration-300 ${r ? "rotate-180" : ""}`,
1930
1932
  size: 20
@@ -2117,7 +2119,7 @@ const Sr = ({
2117
2119
  lineNumber: 25,
2118
2120
  columnNumber: 9
2119
2121
  }, void 0);
2120
- }, Ki = gr.create({
2122
+ }, Xi = gr.create({
2121
2123
  name: "accordion",
2122
2124
  group: "block",
2123
2125
  content: "block+",
@@ -2150,7 +2152,7 @@ const Sr = ({
2150
2152
  return ["accordion", xr(e)];
2151
2153
  },
2152
2154
  addNodeView() {
2153
- return vr(Xi);
2155
+ return vr(Bi);
2154
2156
  },
2155
2157
  addCommands() {
2156
2158
  return {
@@ -2177,7 +2179,7 @@ var kt = { exports: {} }, ze = {}, Be = { exports: {} }, wr = {}, xt = { exports
2177
2179
  * LICENSE file in the root directory of this source tree.
2178
2180
  */
2179
2181
  var er;
2180
- function Gi() {
2182
+ function Ki() {
2181
2183
  if (er) return F;
2182
2184
  er = 1;
2183
2185
  var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, m = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, y = e ? Symbol.for("react.forward_ref") : 60112, v = e ? Symbol.for("react.suspense") : 60113, O = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, A = e ? Symbol.for("react.lazy") : 60116, $ = e ? Symbol.for("react.block") : 60121, B = e ? Symbol.for("react.fundamental") : 60117, W = e ? Symbol.for("react.responder") : 60118, g = e ? Symbol.for("react.scope") : 60119;
@@ -2252,7 +2254,7 @@ var U = {};
2252
2254
  * LICENSE file in the root directory of this source tree.
2253
2255
  */
2254
2256
  var tr;
2255
- function Ji() {
2257
+ function Gi() {
2256
2258
  return tr || (tr = 1, process.env.NODE_ENV !== "production" && function() {
2257
2259
  var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, m = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, y = e ? Symbol.for("react.forward_ref") : 60112, v = e ? Symbol.for("react.suspense") : 60113, O = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, A = e ? Symbol.for("react.lazy") : 60116, $ = e ? Symbol.for("react.block") : 60121, B = e ? Symbol.for("react.fundamental") : 60117, W = e ? Symbol.for("react.responder") : 60118, g = e ? Symbol.for("react.scope") : 60119;
2258
2260
  function N(b) {
@@ -2336,7 +2338,7 @@ function Ji() {
2336
2338
  }
2337
2339
  var rr;
2338
2340
  function Cr() {
2339
- return rr || (rr = 1, process.env.NODE_ENV === "production" ? qe.exports = Gi() : qe.exports = Ji()), qe.exports;
2341
+ return rr || (rr = 1, process.env.NODE_ENV === "production" ? qe.exports = Ki() : qe.exports = Gi()), qe.exports;
2340
2342
  }
2341
2343
  /*
2342
2344
  object-assign
@@ -2344,7 +2346,7 @@ object-assign
2344
2346
  @license MIT
2345
2347
  */
2346
2348
  var at, nr;
2347
- function Zi() {
2349
+ function Ji() {
2348
2350
  if (nr) return at;
2349
2351
  nr = 1;
2350
2352
  var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
@@ -2401,7 +2403,7 @@ function kr() {
2401
2403
  return or || (or = 1, lt = Function.call.bind(Object.prototype.hasOwnProperty)), lt;
2402
2404
  }
2403
2405
  var ct, ar;
2404
- function Qi() {
2406
+ function Zi() {
2405
2407
  if (ar) return ct;
2406
2408
  ar = 1;
2407
2409
  var e = function() {
@@ -2450,10 +2452,10 @@ function Qi() {
2450
2452
  }, ct = o, ct;
2451
2453
  }
2452
2454
  var ut, sr;
2453
- function eo() {
2455
+ function Qi() {
2454
2456
  if (sr) return ut;
2455
2457
  sr = 1;
2456
- var e = Cr(), t = Zi(), r = Dt(), n = kr(), o = Qi(), a = function() {
2458
+ var e = Cr(), t = Ji(), r = Dt(), n = kr(), o = Zi(), a = function() {
2457
2459
  };
2458
2460
  process.env.NODE_ENV !== "production" && (a = function(u) {
2459
2461
  var m = "Warning: " + u;
@@ -2771,7 +2773,7 @@ Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
2771
2773
  }, ut;
2772
2774
  }
2773
2775
  var dt, lr;
2774
- function to() {
2776
+ function eo() {
2775
2777
  if (lr) return dt;
2776
2778
  lr = 1;
2777
2779
  var e = Dt();
@@ -2819,10 +2821,10 @@ function to() {
2819
2821
  }, dt;
2820
2822
  }
2821
2823
  if (process.env.NODE_ENV !== "production") {
2822
- var ro = Cr(), no = !0;
2823
- xt.exports = eo()(ro.isElement, no);
2824
+ var to = Cr(), ro = !0;
2825
+ xt.exports = Qi()(to.isElement, ro);
2824
2826
  } else
2825
- xt.exports = to()();
2827
+ xt.exports = eo()();
2826
2828
  var Xe = xt.exports;
2827
2829
  function Dr(e) {
2828
2830
  var t, r, n = "";
@@ -2835,34 +2837,34 @@ function cr() {
2835
2837
  for (var e, t, r = 0, n = ""; r < arguments.length; ) (e = arguments[r++]) && (t = Dr(e)) && (n && (n += " "), n += t);
2836
2838
  return n;
2837
2839
  }
2838
- const io = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2840
+ const no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2839
2841
  __proto__: null,
2840
2842
  clsx: cr,
2841
2843
  default: cr
2842
- }, Symbol.toStringTag, { value: "Module" })), oo = /* @__PURE__ */ On(io);
2844
+ }, Symbol.toStringTag, { value: "Module" })), io = /* @__PURE__ */ _n(no);
2843
2845
  var K = {}, xe = {};
2844
2846
  Object.defineProperty(xe, "__esModule", {
2845
2847
  value: !0
2846
2848
  });
2847
- xe.dontSetMe = uo;
2848
- xe.findInArray = ao;
2849
- xe.int = co;
2850
- xe.isFunction = so;
2851
- xe.isNum = lo;
2852
- function ao(e, t) {
2849
+ xe.dontSetMe = co;
2850
+ xe.findInArray = oo;
2851
+ xe.int = lo;
2852
+ xe.isFunction = ao;
2853
+ xe.isNum = so;
2854
+ function oo(e, t) {
2853
2855
  for (let r = 0, n = e.length; r < n; r++)
2854
2856
  if (t.apply(t, [e[r], r, e])) return e[r];
2855
2857
  }
2856
- function so(e) {
2858
+ function ao(e) {
2857
2859
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Function]";
2858
2860
  }
2859
- function lo(e) {
2861
+ function so(e) {
2860
2862
  return typeof e == "number" && !isNaN(e);
2861
2863
  }
2862
- function co(e) {
2864
+ function lo(e) {
2863
2865
  return parseInt(e, 10);
2864
2866
  }
2865
- function uo(e, t, r) {
2867
+ function co(e, t, r) {
2866
2868
  if (e[t])
2867
2869
  return new Error("Invalid prop ".concat(t, " passed to ").concat(r, " - do not set this, set it on the child."));
2868
2870
  }
@@ -2871,7 +2873,7 @@ Object.defineProperty(Oe, "__esModule", {
2871
2873
  value: !0
2872
2874
  });
2873
2875
  Oe.browserPrefixToKey = Or;
2874
- Oe.browserPrefixToStyle = fo;
2876
+ Oe.browserPrefixToStyle = uo;
2875
2877
  Oe.default = void 0;
2876
2878
  Oe.getPrefix = _r;
2877
2879
  const ft = ["Moz", "Webkit", "O", "ms"];
@@ -2886,12 +2888,12 @@ function _r() {
2886
2888
  return "";
2887
2889
  }
2888
2890
  function Or(e, t) {
2889
- return t ? "".concat(t).concat(mo(e)) : e;
2891
+ return t ? "".concat(t).concat(fo(e)) : e;
2890
2892
  }
2891
- function fo(e, t) {
2893
+ function uo(e, t) {
2892
2894
  return t ? "-".concat(t.toLowerCase(), "-").concat(e) : e;
2893
2895
  }
2894
- function mo(e) {
2896
+ function fo(e) {
2895
2897
  let t = "", r = !0;
2896
2898
  for (let n = 0; n < e.length; n++)
2897
2899
  r ? (t += e[n].toUpperCase(), r = !1) : e[n] === "-" ? r = !0 : t += e[n];
@@ -2902,24 +2904,24 @@ Object.defineProperty(K, "__esModule", {
2902
2904
  value: !0
2903
2905
  });
2904
2906
  K.addClassName = Pr;
2905
- K.addEvent = ho;
2906
- K.addUserSelectStyles = Do;
2907
- K.createCSSTransform = So;
2908
- K.createSVGTransform = wo;
2909
- K.getTouch = Co;
2910
- K.getTouchIdentifier = ko;
2907
+ K.addEvent = bo;
2908
+ K.addUserSelectStyles = ko;
2909
+ K.createCSSTransform = Eo;
2910
+ K.createSVGTransform = So;
2911
+ K.getTouch = wo;
2912
+ K.getTouchIdentifier = Co;
2911
2913
  K.getTranslation = _t;
2912
- K.innerHeight = xo;
2913
- K.innerWidth = No;
2914
+ K.innerHeight = go;
2915
+ K.innerWidth = xo;
2914
2916
  K.matchesSelector = Tr;
2915
- K.matchesSelectorAndParentsTo = bo;
2916
- K.offsetXYFromParent = Eo;
2917
- K.outerHeight = vo;
2918
- K.outerWidth = go;
2917
+ K.matchesSelectorAndParentsTo = po;
2918
+ K.offsetXYFromParent = No;
2919
+ K.outerHeight = yo;
2920
+ K.outerWidth = vo;
2919
2921
  K.removeClassName = jr;
2920
- K.removeEvent = yo;
2921
- K.removeUserSelectStyles = _o;
2922
- var ue = xe, ur = po(Oe);
2922
+ K.removeEvent = ho;
2923
+ K.removeUserSelectStyles = Do;
2924
+ var ue = xe, ur = mo(Oe);
2923
2925
  function Rr(e) {
2924
2926
  if (typeof WeakMap != "function") return null;
2925
2927
  var t = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new WeakMap();
@@ -2927,7 +2929,7 @@ function Rr(e) {
2927
2929
  return n ? r : t;
2928
2930
  })(e);
2929
2931
  }
2930
- function po(e, t) {
2932
+ function mo(e, t) {
2931
2933
  if (e && e.__esModule)
2932
2934
  return e;
2933
2935
  if (e === null || typeof e != "object" && typeof e != "function")
@@ -2949,7 +2951,7 @@ function Tr(e, t) {
2949
2951
  return (0, ue.isFunction)(e[r]);
2950
2952
  })), (0, ue.isFunction)(e[Ye]) ? e[Ye](t) : !1;
2951
2953
  }
2952
- function bo(e, t, r) {
2954
+ function po(e, t, r) {
2953
2955
  let n = e;
2954
2956
  do {
2955
2957
  if (Tr(n, t)) return !0;
@@ -2958,7 +2960,7 @@ function bo(e, t, r) {
2958
2960
  } while (n);
2959
2961
  return !1;
2960
2962
  }
2961
- function ho(e, t, r, n) {
2963
+ function bo(e, t, r, n) {
2962
2964
  if (!e) return;
2963
2965
  const o = {
2964
2966
  capture: !0,
@@ -2966,7 +2968,7 @@ function ho(e, t, r, n) {
2966
2968
  };
2967
2969
  e.addEventListener ? e.addEventListener(t, r, o) : e.attachEvent ? e.attachEvent("on" + t, r) : e["on" + t] = r;
2968
2970
  }
2969
- function yo(e, t, r, n) {
2971
+ function ho(e, t, r, n) {
2970
2972
  if (!e) return;
2971
2973
  const o = {
2972
2974
  capture: !0,
@@ -2974,27 +2976,27 @@ function yo(e, t, r, n) {
2974
2976
  };
2975
2977
  e.removeEventListener ? e.removeEventListener(t, r, o) : e.detachEvent ? e.detachEvent("on" + t, r) : e["on" + t] = null;
2976
2978
  }
2977
- function vo(e) {
2979
+ function yo(e) {
2978
2980
  let t = e.clientHeight;
2979
2981
  const r = e.ownerDocument.defaultView.getComputedStyle(e);
2980
2982
  return t += (0, ue.int)(r.borderTopWidth), t += (0, ue.int)(r.borderBottomWidth), t;
2981
2983
  }
2982
- function go(e) {
2984
+ function vo(e) {
2983
2985
  let t = e.clientWidth;
2984
2986
  const r = e.ownerDocument.defaultView.getComputedStyle(e);
2985
2987
  return t += (0, ue.int)(r.borderLeftWidth), t += (0, ue.int)(r.borderRightWidth), t;
2986
2988
  }
2987
- function xo(e) {
2989
+ function go(e) {
2988
2990
  let t = e.clientHeight;
2989
2991
  const r = e.ownerDocument.defaultView.getComputedStyle(e);
2990
2992
  return t -= (0, ue.int)(r.paddingTop), t -= (0, ue.int)(r.paddingBottom), t;
2991
2993
  }
2992
- function No(e) {
2994
+ function xo(e) {
2993
2995
  let t = e.clientWidth;
2994
2996
  const r = e.ownerDocument.defaultView.getComputedStyle(e);
2995
2997
  return t -= (0, ue.int)(r.paddingLeft), t -= (0, ue.int)(r.paddingRight), t;
2996
2998
  }
2997
- function Eo(e, t, r) {
2999
+ function No(e, t, r) {
2998
3000
  const o = t === t.ownerDocument.body ? {
2999
3001
  left: 0,
3000
3002
  top: 0
@@ -3004,13 +3006,13 @@ function Eo(e, t, r) {
3004
3006
  y: s
3005
3007
  };
3006
3008
  }
3007
- function So(e, t) {
3009
+ function Eo(e, t) {
3008
3010
  const r = _t(e, t, "px");
3009
3011
  return {
3010
3012
  [(0, ur.browserPrefixToKey)("transform", ur.default)]: r
3011
3013
  };
3012
3014
  }
3013
- function wo(e, t) {
3015
+ function So(e, t) {
3014
3016
  return _t(e, t, "");
3015
3017
  }
3016
3018
  function _t(e, t, r) {
@@ -3024,21 +3026,21 @@ function _t(e, t, r) {
3024
3026
  }
3025
3027
  return a;
3026
3028
  }
3027
- function Co(e, t) {
3029
+ function wo(e, t) {
3028
3030
  return e.targetTouches && (0, ue.findInArray)(e.targetTouches, (r) => t === r.identifier) || e.changedTouches && (0, ue.findInArray)(e.changedTouches, (r) => t === r.identifier);
3029
3031
  }
3030
- function ko(e) {
3032
+ function Co(e) {
3031
3033
  if (e.targetTouches && e.targetTouches[0]) return e.targetTouches[0].identifier;
3032
3034
  if (e.changedTouches && e.changedTouches[0]) return e.changedTouches[0].identifier;
3033
3035
  }
3034
- function Do(e) {
3036
+ function ko(e) {
3035
3037
  if (!e) return;
3036
3038
  let t = e.getElementById("react-draggable-style-el");
3037
3039
  t || (t = e.createElement("style"), t.type = "text/css", t.id = "react-draggable-style-el", t.innerHTML = `.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
3038
3040
  `, t.innerHTML += `.react-draggable-transparent-selection *::selection {all: inherit;}
3039
3041
  `, e.getElementsByTagName("head")[0].appendChild(t)), e.body && Pr(e.body, "react-draggable-transparent-selection");
3040
3042
  }
3041
- function _o(e) {
3043
+ function Do(e) {
3042
3044
  if (e)
3043
3045
  try {
3044
3046
  if (e.body && jr(e.body, "react-draggable-transparent-selection"), e.selection)
@@ -3060,20 +3062,20 @@ var Ne = {};
3060
3062
  Object.defineProperty(Ne, "__esModule", {
3061
3063
  value: !0
3062
3064
  });
3063
- Ne.canDragX = To;
3064
- Ne.canDragY = Po;
3065
- Ne.createCoreData = Mo;
3066
- Ne.createDraggableData = Vo;
3067
- Ne.getBoundPosition = Oo;
3068
- Ne.getControlPosition = jo;
3069
- Ne.snapToGrid = Ro;
3065
+ Ne.canDragX = Ro;
3066
+ Ne.canDragY = To;
3067
+ Ne.createCoreData = jo;
3068
+ Ne.createDraggableData = Mo;
3069
+ Ne.getBoundPosition = _o;
3070
+ Ne.getControlPosition = Po;
3071
+ Ne.snapToGrid = Oo;
3070
3072
  var ce = xe, je = K;
3071
- function Oo(e, t, r) {
3073
+ function _o(e, t, r) {
3072
3074
  if (!e.props.bounds) return [t, r];
3073
3075
  let {
3074
3076
  bounds: n
3075
3077
  } = e.props;
3076
- n = typeof n == "string" ? n : Ao(n);
3078
+ n = typeof n == "string" ? n : Vo(n);
3077
3079
  const o = Ot(e);
3078
3080
  if (typeof n == "string") {
3079
3081
  const {
@@ -3092,23 +3094,23 @@ function Oo(e, t, r) {
3092
3094
  }
3093
3095
  return (0, ce.isNum)(n.right) && (t = Math.min(t, n.right)), (0, ce.isNum)(n.bottom) && (r = Math.min(r, n.bottom)), (0, ce.isNum)(n.left) && (t = Math.max(t, n.left)), (0, ce.isNum)(n.top) && (r = Math.max(r, n.top)), [t, r];
3094
3096
  }
3095
- function Ro(e, t, r) {
3097
+ function Oo(e, t, r) {
3096
3098
  const n = Math.round(t / e[0]) * e[0], o = Math.round(r / e[1]) * e[1];
3097
3099
  return [n, o];
3098
3100
  }
3099
- function To(e) {
3101
+ function Ro(e) {
3100
3102
  return e.props.axis === "both" || e.props.axis === "x";
3101
3103
  }
3102
- function Po(e) {
3104
+ function To(e) {
3103
3105
  return e.props.axis === "both" || e.props.axis === "y";
3104
3106
  }
3105
- function jo(e, t, r) {
3107
+ function Po(e, t, r) {
3106
3108
  const n = typeof t == "number" ? (0, je.getTouch)(e, t) : null;
3107
3109
  if (typeof t == "number" && !n) return null;
3108
3110
  const o = Ot(r), a = r.props.offsetParent || o.offsetParent || o.ownerDocument.body;
3109
3111
  return (0, je.offsetXYFromParent)(n || e, a, r.props.scale);
3110
3112
  }
3111
- function Mo(e, t, r) {
3113
+ function jo(e, t, r) {
3112
3114
  const n = !(0, ce.isNum)(e.lastX), o = Ot(e);
3113
3115
  return n ? {
3114
3116
  node: o,
@@ -3128,7 +3130,7 @@ function Mo(e, t, r) {
3128
3130
  y: r
3129
3131
  };
3130
3132
  }
3131
- function Vo(e, t) {
3133
+ function Mo(e, t) {
3132
3134
  const r = e.props.scale;
3133
3135
  return {
3134
3136
  node: t.node,
@@ -3140,7 +3142,7 @@ function Vo(e, t) {
3140
3142
  lastY: e.state.y
3141
3143
  };
3142
3144
  }
3143
- function Ao(e) {
3145
+ function Vo(e) {
3144
3146
  return {
3145
3147
  left: e.left,
3146
3148
  top: e.top,
@@ -3158,14 +3160,14 @@ var Ke = {}, Ge = {};
3158
3160
  Object.defineProperty(Ge, "__esModule", {
3159
3161
  value: !0
3160
3162
  });
3161
- Ge.default = $o;
3162
- function $o() {
3163
+ Ge.default = Ao;
3164
+ function Ao() {
3163
3165
  }
3164
3166
  Object.defineProperty(Ke, "__esModule", {
3165
3167
  value: !0
3166
3168
  });
3167
3169
  Ke.default = void 0;
3168
- var mt = Io(_e), se = Rt(Xe), zo = Rt(Nr), re = K, we = Ne, pt = xe, Ae = Rt(Ge);
3170
+ var mt = zo(_e), se = Rt(Xe), $o = Rt(Nr), re = K, we = Ne, pt = xe, Ae = Rt(Ge);
3169
3171
  function Rt(e) {
3170
3172
  return e && e.__esModule ? e : { default: e };
3171
3173
  }
@@ -3176,7 +3178,7 @@ function Mr(e) {
3176
3178
  return n ? r : t;
3177
3179
  })(e);
3178
3180
  }
3179
- function Io(e, t) {
3181
+ function zo(e, t) {
3180
3182
  if (e && e.__esModule)
3181
3183
  return e;
3182
3184
  if (e === null || typeof e != "object" && typeof e != "function")
@@ -3193,13 +3195,13 @@ function Io(e, t) {
3193
3195
  return n.default = e, r && r.set(e, n), n;
3194
3196
  }
3195
3197
  function ie(e, t, r) {
3196
- return t = Ho(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
3198
+ return t = Io(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
3197
3199
  }
3198
- function Ho(e) {
3199
- var t = Lo(e, "string");
3200
+ function Io(e) {
3201
+ var t = Ho(e, "string");
3200
3202
  return typeof t == "symbol" ? t : String(t);
3201
3203
  }
3202
- function Lo(e, t) {
3204
+ function Ho(e, t) {
3203
3205
  if (typeof e != "object" || e === null) return e;
3204
3206
  var r = e[Symbol.toPrimitive];
3205
3207
  if (r !== void 0) {
@@ -3307,7 +3309,7 @@ let Ce = ve.mouse, Je = class extends mt.Component {
3307
3309
  // the underlying DOM node ourselves. See the README for more information.
3308
3310
  findDOMNode() {
3309
3311
  var t, r;
3310
- return (t = this.props) !== null && t !== void 0 && t.nodeRef ? (r = this.props) === null || r === void 0 || (r = r.nodeRef) === null || r === void 0 ? void 0 : r.current : zo.default.findDOMNode(this);
3312
+ return (t = this.props) !== null && t !== void 0 && t.nodeRef ? (r = this.props) === null || r === void 0 || (r = r.nodeRef) === null || r === void 0 ? void 0 : r.current : $o.default.findDOMNode(this);
3311
3313
  }
3312
3314
  render() {
3313
3315
  return /* @__PURE__ */ mt.cloneElement(mt.Children.only(this.props.children), {
@@ -3471,7 +3473,7 @@ ie(Je, "defaultProps", {
3471
3473
  return m.default;
3472
3474
  }
3473
3475
  }), e.default = void 0;
3474
- var t = O(_e), r = y(Xe), n = y(Nr), o = y(oo), a = K, s = Ne, u = xe, m = y(Ke), p = y(Ge);
3476
+ var t = O(_e), r = y(Xe), n = y(Nr), o = y(io), a = K, s = Ne, u = xe, m = y(Ke), p = y(Ge);
3475
3477
  function y(g) {
3476
3478
  return g && g.__esModule ? g : { default: g };
3477
3479
  }
@@ -3785,16 +3787,16 @@ ie(Je, "defaultProps", {
3785
3787
  })(wr);
3786
3788
  const {
3787
3789
  default: Vr,
3788
- DraggableCore: Wo
3790
+ DraggableCore: Lo
3789
3791
  } = wr;
3790
3792
  Be.exports = Vr;
3791
3793
  Be.exports.default = Vr;
3792
- Be.exports.DraggableCore = Wo;
3793
- var qo = Be.exports, Tt = {};
3794
+ Be.exports.DraggableCore = Lo;
3795
+ var Wo = Be.exports, Tt = {};
3794
3796
  Tt.__esModule = !0;
3795
- Tt.cloneElement = Ko;
3796
- var Yo = Fo(_e);
3797
- function Fo(e) {
3797
+ Tt.cloneElement = Xo;
3798
+ var qo = Yo(_e);
3799
+ function Yo(e) {
3798
3800
  return e && e.__esModule ? e : { default: e };
3799
3801
  }
3800
3802
  function dr(e, t) {
@@ -3811,21 +3813,21 @@ function fr(e) {
3811
3813
  for (var t = 1; t < arguments.length; t++) {
3812
3814
  var r = arguments[t] != null ? arguments[t] : {};
3813
3815
  t % 2 ? dr(Object(r), !0).forEach(function(n) {
3814
- Uo(e, n, r[n]);
3816
+ Fo(e, n, r[n]);
3815
3817
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : dr(Object(r)).forEach(function(n) {
3816
3818
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
3817
3819
  });
3818
3820
  }
3819
3821
  return e;
3820
3822
  }
3821
- function Uo(e, t, r) {
3822
- return t = Bo(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
3823
+ function Fo(e, t, r) {
3824
+ return t = Uo(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
3823
3825
  }
3824
- function Bo(e) {
3825
- var t = Xo(e, "string");
3826
+ function Uo(e) {
3827
+ var t = Bo(e, "string");
3826
3828
  return typeof t == "symbol" ? t : String(t);
3827
3829
  }
3828
- function Xo(e, t) {
3830
+ function Bo(e, t) {
3829
3831
  if (typeof e != "object" || e === null) return e;
3830
3832
  var r = e[Symbol.toPrimitive];
3831
3833
  if (r !== void 0) {
@@ -3835,17 +3837,17 @@ function Xo(e, t) {
3835
3837
  }
3836
3838
  return (t === "string" ? String : Number)(e);
3837
3839
  }
3838
- function Ko(e, t) {
3839
- return t.style && e.props.style && (t.style = fr(fr({}, e.props.style), t.style)), t.className && e.props.className && (t.className = e.props.className + " " + t.className), /* @__PURE__ */ Yo.default.cloneElement(e, t);
3840
+ function Xo(e, t) {
3841
+ return t.style && e.props.style && (t.style = fr(fr({}, e.props.style), t.style)), t.className && e.props.className && (t.className = e.props.className + " " + t.className), /* @__PURE__ */ qo.default.cloneElement(e, t);
3840
3842
  }
3841
3843
  var Ie = {};
3842
3844
  Ie.__esModule = !0;
3843
3845
  Ie.resizableProps = void 0;
3844
- var D = Go(Xe);
3845
- function Go(e) {
3846
+ var D = Ko(Xe);
3847
+ function Ko(e) {
3846
3848
  return e && e.__esModule ? e : { default: e };
3847
3849
  }
3848
- var Jo = {
3850
+ var Go = {
3849
3851
  /*
3850
3852
  * Restricts resizing to a particular axis (default: 'both')
3851
3853
  * 'both' - allows resizing by width or height
@@ -3950,10 +3952,10 @@ var Jo = {
3950
3952
  return D.default.number.apply(D.default, r);
3951
3953
  }
3952
3954
  };
3953
- Ie.resizableProps = Jo;
3955
+ Ie.resizableProps = Go;
3954
3956
  ze.__esModule = !0;
3955
3957
  ze.default = void 0;
3956
- var $e = ra(_e), Zo = qo, Qo = Tt, ea = Ie, ta = ["children", "className", "draggableOpts", "width", "height", "handle", "handleSize", "lockAspectRatio", "axis", "minConstraints", "maxConstraints", "onResize", "onResizeStop", "onResizeStart", "resizeHandles", "transformScale"];
3958
+ var $e = ta(_e), Jo = Wo, Zo = Tt, Qo = Ie, ea = ["children", "className", "draggableOpts", "width", "height", "handle", "handleSize", "lockAspectRatio", "axis", "minConstraints", "maxConstraints", "onResize", "onResizeStop", "onResizeStart", "resizeHandles", "transformScale"];
3957
3959
  function Ar(e) {
3958
3960
  if (typeof WeakMap != "function") return null;
3959
3961
  var t = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new WeakMap();
@@ -3961,7 +3963,7 @@ function Ar(e) {
3961
3963
  return o ? r : t;
3962
3964
  })(e);
3963
3965
  }
3964
- function ra(e, t) {
3966
+ function ta(e, t) {
3965
3967
  if (e && e.__esModule)
3966
3968
  return e;
3967
3969
  if (e === null || typeof e != "object" && typeof e != "function")
@@ -3987,7 +3989,7 @@ function Nt() {
3987
3989
  return e;
3988
3990
  }, Nt.apply(this, arguments);
3989
3991
  }
3990
- function na(e, t) {
3992
+ function ra(e, t) {
3991
3993
  if (e == null) return {};
3992
3994
  var r = {}, n = Object.keys(e), o, a;
3993
3995
  for (a = 0; a < n.length; a++)
@@ -4008,21 +4010,21 @@ function bt(e) {
4008
4010
  for (var t = 1; t < arguments.length; t++) {
4009
4011
  var r = arguments[t] != null ? arguments[t] : {};
4010
4012
  t % 2 ? mr(Object(r), !0).forEach(function(n) {
4011
- ia(e, n, r[n]);
4013
+ na(e, n, r[n]);
4012
4014
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : mr(Object(r)).forEach(function(n) {
4013
4015
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
4014
4016
  });
4015
4017
  }
4016
4018
  return e;
4017
4019
  }
4018
- function ia(e, t, r) {
4019
- return t = oa(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
4020
+ function na(e, t, r) {
4021
+ return t = ia(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
4020
4022
  }
4021
- function oa(e) {
4022
- var t = aa(e, "string");
4023
+ function ia(e) {
4024
+ var t = oa(e, "string");
4023
4025
  return typeof t == "symbol" ? t : String(t);
4024
4026
  }
4025
- function aa(e, t) {
4027
+ function oa(e, t) {
4026
4028
  if (typeof e != "object" || e === null) return e;
4027
4029
  var r = e[Symbol.toPrimitive];
4028
4030
  if (r !== void 0) {
@@ -4032,7 +4034,7 @@ function aa(e, t) {
4032
4034
  }
4033
4035
  return (t === "string" ? String : Number)(e);
4034
4036
  }
4035
- function sa(e, t) {
4037
+ function aa(e, t) {
4036
4038
  e.prototype = Object.create(t.prototype), e.prototype.constructor = e, Et(e, t);
4037
4039
  }
4038
4040
  function Et(e, t) {
@@ -4041,7 +4043,7 @@ function Et(e, t) {
4041
4043
  }, Et(e, t);
4042
4044
  }
4043
4045
  var Pt = /* @__PURE__ */ function(e) {
4044
- sa(t, e);
4046
+ aa(t, e);
4045
4047
  function t() {
4046
4048
  for (var n, o = arguments.length, a = new Array(o), s = 0; s < o; s++)
4047
4049
  a[s] = arguments[s];
@@ -4113,12 +4115,12 @@ var Pt = /* @__PURE__ */ function(e) {
4113
4115
  a.width, a.height, a.handle, a.handleSize, a.lockAspectRatio, a.axis, a.minConstraints, a.maxConstraints, a.onResize, a.onResizeStop, a.onResizeStart;
4114
4116
  var p = a.resizeHandles;
4115
4117
  a.transformScale;
4116
- var y = na(a, ta);
4117
- return (0, Qo.cloneElement)(s, bt(bt({}, y), {}, {
4118
+ var y = ra(a, ea);
4119
+ return (0, Zo.cloneElement)(s, bt(bt({}, y), {}, {
4118
4120
  className: (u ? u + " " : "") + "react-resizable",
4119
4121
  children: [].concat(s.props.children, p.map(function(v) {
4120
4122
  var O, S = (O = o.handleRefs[v]) != null ? O : o.handleRefs[v] = /* @__PURE__ */ $e.createRef();
4121
- return /* @__PURE__ */ $e.createElement(Zo.DraggableCore, Nt({}, m, {
4123
+ return /* @__PURE__ */ $e.createElement(Jo.DraggableCore, Nt({}, m, {
4122
4124
  nodeRef: S,
4123
4125
  key: "resizableHandle-" + v,
4124
4126
  onStop: o.resizeHandler("onResizeStop", v),
@@ -4130,7 +4132,7 @@ var Pt = /* @__PURE__ */ function(e) {
4130
4132
  }, t;
4131
4133
  }($e.Component);
4132
4134
  ze.default = Pt;
4133
- Pt.propTypes = ea.resizableProps;
4135
+ Pt.propTypes = Qo.resizableProps;
4134
4136
  Pt.defaultProps = {
4135
4137
  axis: "both",
4136
4138
  handleSize: [20, 20],
@@ -4143,7 +4145,7 @@ Pt.defaultProps = {
4143
4145
  var Ze = {};
4144
4146
  Ze.__esModule = !0;
4145
4147
  Ze.default = void 0;
4146
- var ht = fa(_e), la = $r(Xe), ca = $r(ze), ua = Ie, da = ["handle", "handleSize", "onResize", "onResizeStart", "onResizeStop", "draggableOpts", "minConstraints", "maxConstraints", "lockAspectRatio", "axis", "width", "height", "resizeHandles", "style", "transformScale"];
4148
+ var ht = da(_e), sa = $r(Xe), la = $r(ze), ca = Ie, ua = ["handle", "handleSize", "onResize", "onResizeStart", "onResizeStop", "draggableOpts", "minConstraints", "maxConstraints", "lockAspectRatio", "axis", "width", "height", "resizeHandles", "style", "transformScale"];
4147
4149
  function $r(e) {
4148
4150
  return e && e.__esModule ? e : { default: e };
4149
4151
  }
@@ -4154,7 +4156,7 @@ function zr(e) {
4154
4156
  return o ? r : t;
4155
4157
  })(e);
4156
4158
  }
4157
- function fa(e, t) {
4159
+ function da(e, t) {
4158
4160
  if (e && e.__esModule)
4159
4161
  return e;
4160
4162
  if (e === null || typeof e != "object" && typeof e != "function")
@@ -4194,21 +4196,21 @@ function Ue(e) {
4194
4196
  for (var t = 1; t < arguments.length; t++) {
4195
4197
  var r = arguments[t] != null ? arguments[t] : {};
4196
4198
  t % 2 ? pr(Object(r), !0).forEach(function(n) {
4197
- ma(e, n, r[n]);
4199
+ fa(e, n, r[n]);
4198
4200
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : pr(Object(r)).forEach(function(n) {
4199
4201
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
4200
4202
  });
4201
4203
  }
4202
4204
  return e;
4203
4205
  }
4204
- function ma(e, t, r) {
4205
- return t = pa(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
4206
+ function fa(e, t, r) {
4207
+ return t = ma(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
4206
4208
  }
4207
- function pa(e) {
4208
- var t = ba(e, "string");
4209
+ function ma(e) {
4210
+ var t = pa(e, "string");
4209
4211
  return typeof t == "symbol" ? t : String(t);
4210
4212
  }
4211
- function ba(e, t) {
4213
+ function pa(e, t) {
4212
4214
  if (typeof e != "object" || e === null) return e;
4213
4215
  var r = e[Symbol.toPrimitive];
4214
4216
  if (r !== void 0) {
@@ -4218,14 +4220,14 @@ function ba(e, t) {
4218
4220
  }
4219
4221
  return (t === "string" ? String : Number)(e);
4220
4222
  }
4221
- function ha(e, t) {
4223
+ function ba(e, t) {
4222
4224
  if (e == null) return {};
4223
4225
  var r = {}, n = Object.keys(e), o, a;
4224
4226
  for (a = 0; a < n.length; a++)
4225
4227
  o = n[a], !(t.indexOf(o) >= 0) && (r[o] = e[o]);
4226
4228
  return r;
4227
4229
  }
4228
- function ya(e, t) {
4230
+ function ha(e, t) {
4229
4231
  e.prototype = Object.create(t.prototype), e.prototype.constructor = e, wt(e, t);
4230
4232
  }
4231
4233
  function wt(e, t) {
@@ -4234,7 +4236,7 @@ function wt(e, t) {
4234
4236
  }, wt(e, t);
4235
4237
  }
4236
4238
  var Ir = /* @__PURE__ */ function(e) {
4237
- ya(t, e);
4239
+ ha(t, e);
4238
4240
  function t() {
4239
4241
  for (var n, o = arguments.length, a = new Array(o), s = 0; s < o; s++)
4240
4242
  a[s] = arguments[s];
@@ -4264,8 +4266,8 @@ var Ir = /* @__PURE__ */ function(e) {
4264
4266
  o.onResize;
4265
4267
  var u = o.onResizeStart, m = o.onResizeStop, p = o.draggableOpts, y = o.minConstraints, v = o.maxConstraints, O = o.lockAspectRatio, S = o.axis;
4266
4268
  o.width, o.height;
4267
- var A = o.resizeHandles, $ = o.style, B = o.transformScale, W = ha(o, da);
4268
- return /* @__PURE__ */ ht.createElement(ca.default, {
4269
+ var A = o.resizeHandles, $ = o.style, B = o.transformScale, W = ba(o, ua);
4270
+ return /* @__PURE__ */ ht.createElement(la.default, {
4269
4271
  axis: S,
4270
4272
  draggableOpts: p,
4271
4273
  handle: a,
@@ -4289,51 +4291,51 @@ var Ir = /* @__PURE__ */ function(e) {
4289
4291
  }, t;
4290
4292
  }(ht.Component);
4291
4293
  Ze.default = Ir;
4292
- Ir.propTypes = Ue(Ue({}, ua.resizableProps), {}, {
4293
- children: la.default.element
4294
+ Ir.propTypes = Ue(Ue({}, ca.resizableProps), {}, {
4295
+ children: sa.default.element
4294
4296
  });
4295
4297
  kt.exports = function() {
4296
4298
  throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable");
4297
4299
  };
4298
4300
  kt.exports.Resizable = ze.default;
4299
- var va = kt.exports.ResizableBox = Ze.default;
4300
- const ga = (e) => {
4301
- const { editor: t } = cn();
4302
- if (!t) return null;
4303
- const { node: r, updateAttributes: n } = e, [o, a] = he({
4304
- width: r.attrs.width || 300,
4305
- height: r.attrs.height || 300
4306
- }), [s, u] = he({
4307
- left: r.attrs.marginLeft || 0,
4308
- right: r.attrs.marginRight || 0
4309
- }), [m, p] = he(r.attrs.src || ""), y = sn(null);
4301
+ var ya = kt.exports.ResizableBox = Ze.default;
4302
+ const va = ({ node: e, updateAttributes: t, editor: r }) => {
4303
+ const [n, o] = he({
4304
+ width: e.attrs.width || 300,
4305
+ height: e.attrs.height || 300
4306
+ }), [a, s] = he({
4307
+ left: e.attrs.marginLeft || 0,
4308
+ right: e.attrs.marginRight || 0
4309
+ }), [u, m] = he(e.attrs.src || ""), p = sn(null);
4310
4310
  hr(() => {
4311
- if (r.attrs.src && y.current) {
4311
+ if (e.attrs.src && p.current) {
4312
4312
  const S = new Image();
4313
4313
  S.onload = () => {
4314
- (!r.attrs.width || !r.attrs.height) && a({
4314
+ (!e.attrs.width || !e.attrs.height) && o({
4315
4315
  width: S.width > 600 ? 600 : S.width,
4316
4316
  height: S.width > 600 ? 600 / S.width * S.height : S.height
4317
4317
  });
4318
- }, S.src = r.attrs.src;
4318
+ }, S.src = e.attrs.src;
4319
4319
  }
4320
- }, [r.attrs.src]);
4321
- const v = (S, { size: A }) => {
4322
- a({
4320
+ }, [e.attrs.src]);
4321
+ const y = (S, { size: A }) => {
4322
+ o({
4323
4323
  width: A.width,
4324
4324
  height: A.height
4325
- }), n({
4325
+ }), t({
4326
4326
  width: A.width,
4327
4327
  height: A.height
4328
4328
  });
4329
- }, O = () => {
4330
- n({
4331
- src: m,
4332
- width: o.width,
4333
- height: o.height,
4334
- marginLeft: s.left,
4335
- marginRight: s.right
4329
+ }, v = () => {
4330
+ t({
4331
+ src: u,
4332
+ width: n.width,
4333
+ height: n.height,
4334
+ marginLeft: a.left,
4335
+ marginRight: a.right
4336
4336
  });
4337
+ }, O = (S) => {
4338
+ S.preventDefault();
4337
4339
  };
4338
4340
  return /* @__PURE__ */ l.jsxDEV(yr, { className: "image-wrapper", children: /* @__PURE__ */ l.jsxDEV(
4339
4341
  Sr,
@@ -4344,15 +4346,16 @@ const ga = (e) => {
4344
4346
  {
4345
4347
  className: "relative",
4346
4348
  style: {
4347
- marginLeft: s.left,
4348
- marginRight: s.right
4349
+ marginLeft: a.left,
4350
+ marginRight: a.right
4349
4351
  },
4350
- children: t.isEditable ? /* @__PURE__ */ l.jsxDEV(
4351
- va,
4352
+ onContextMenu: O,
4353
+ children: r.isEditable ? /* @__PURE__ */ l.jsxDEV(
4354
+ ya,
4352
4355
  {
4353
- width: o.width,
4354
- height: o.height,
4355
- onResize: v,
4356
+ width: n.width,
4357
+ height: n.height,
4358
+ onResize: y,
4356
4359
  minConstraints: [100, 100],
4357
4360
  maxConstraints: [800, 800],
4358
4361
  lockAspectRatio: !0,
@@ -4360,8 +4363,8 @@ const ga = (e) => {
4360
4363
  children: /* @__PURE__ */ l.jsxDEV(
4361
4364
  "img",
4362
4365
  {
4363
- ref: y,
4364
- src: r.attrs.src,
4366
+ ref: p,
4367
+ src: e.attrs.src,
4365
4368
  alt: "Uploaded",
4366
4369
  className: "object-contain w-full h-full",
4367
4370
  draggable: !1
@@ -4370,7 +4373,7 @@ const ga = (e) => {
4370
4373
  !1,
4371
4374
  {
4372
4375
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
4373
- lineNumber: 87,
4376
+ lineNumber: 89,
4374
4377
  columnNumber: 33
4375
4378
  },
4376
4379
  void 0
@@ -4380,19 +4383,19 @@ const ga = (e) => {
4380
4383
  !1,
4381
4384
  {
4382
4385
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
4383
- lineNumber: 78,
4386
+ lineNumber: 80,
4384
4387
  columnNumber: 29
4385
4388
  },
4386
4389
  void 0
4387
4390
  ) : /* @__PURE__ */ l.jsxDEV(
4388
4391
  "img",
4389
4392
  {
4390
- ref: y,
4391
- src: r.attrs.src,
4393
+ ref: p,
4394
+ src: e.attrs.src,
4392
4395
  alt: "Uploaded",
4393
4396
  style: {
4394
- width: o.width,
4395
- height: o.height
4397
+ width: n.width,
4398
+ height: n.height
4396
4399
  },
4397
4400
  className: "object-contain",
4398
4401
  draggable: !1
@@ -4401,7 +4404,7 @@ const ga = (e) => {
4401
4404
  !1,
4402
4405
  {
4403
4406
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
4404
- lineNumber: 96,
4407
+ lineNumber: 98,
4405
4408
  columnNumber: 29
4406
4409
  },
4407
4410
  void 0
@@ -4411,184 +4414,190 @@ const ga = (e) => {
4411
4414
  !1,
4412
4415
  {
4413
4416
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
4414
- lineNumber: 70,
4417
+ lineNumber: 71,
4415
4418
  columnNumber: 21
4416
4419
  },
4417
4420
  void 0
4418
4421
  ),
4419
- editable: t.isEditable,
4422
+ editable: r.isEditable,
4420
4423
  childrenEdit: /* @__PURE__ */ l.jsxDEV("div", { className: "space-y-4", children: [
4421
4424
  /* @__PURE__ */ l.jsxDEV("div", { children: [
4422
4425
  /* @__PURE__ */ l.jsxDEV("label", { className: "block text-sm font-medium", children: "Image URL" }, void 0, !1, {
4423
4426
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
4424
- lineNumber: 114,
4427
+ lineNumber: 116,
4425
4428
  columnNumber: 29
4426
4429
  }, void 0),
4427
4430
  /* @__PURE__ */ l.jsxDEV(
4428
4431
  "input",
4429
4432
  {
4430
4433
  type: "text",
4431
- value: m,
4432
- onChange: (S) => p(S.target.value),
4433
- className: "w-full p-2 border rounded"
4434
+ value: u,
4435
+ onChange: (S) => m(S.target.value),
4436
+ className: "w-full p-2 border rounded",
4437
+ disabled: !r.isEditable
4434
4438
  },
4435
4439
  void 0,
4436
4440
  !1,
4437
4441
  {
4438
4442
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
4439
- lineNumber: 115,
4443
+ lineNumber: 117,
4440
4444
  columnNumber: 29
4441
4445
  },
4442
4446
  void 0
4443
4447
  )
4444
4448
  ] }, void 0, !0, {
4445
4449
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
4446
- lineNumber: 113,
4450
+ lineNumber: 115,
4447
4451
  columnNumber: 25
4448
4452
  }, void 0),
4449
4453
  /* @__PURE__ */ l.jsxDEV("div", { className: "flex gap-2", children: [
4450
4454
  /* @__PURE__ */ l.jsxDEV("div", { children: [
4451
4455
  /* @__PURE__ */ l.jsxDEV("label", { className: "block text-sm font-medium", children: "Width" }, void 0, !1, {
4452
4456
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
4453
- lineNumber: 125,
4457
+ lineNumber: 128,
4454
4458
  columnNumber: 33
4455
4459
  }, void 0),
4456
4460
  /* @__PURE__ */ l.jsxDEV(
4457
4461
  "input",
4458
4462
  {
4459
4463
  type: "number",
4460
- value: o.width,
4461
- onChange: (S) => a({ ...o, width: Number(S.target.value) }),
4462
- className: "w-full p-2 border rounded"
4464
+ value: n.width,
4465
+ onChange: (S) => o({ ...n, width: Number(S.target.value) }),
4466
+ className: "w-full p-2 border rounded",
4467
+ disabled: !r.isEditable
4463
4468
  },
4464
4469
  void 0,
4465
4470
  !1,
4466
4471
  {
4467
4472
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
4468
- lineNumber: 126,
4473
+ lineNumber: 129,
4469
4474
  columnNumber: 33
4470
4475
  },
4471
4476
  void 0
4472
4477
  )
4473
4478
  ] }, void 0, !0, {
4474
4479
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
4475
- lineNumber: 124,
4480
+ lineNumber: 127,
4476
4481
  columnNumber: 29
4477
4482
  }, void 0),
4478
4483
  /* @__PURE__ */ l.jsxDEV("div", { children: [
4479
4484
  /* @__PURE__ */ l.jsxDEV("label", { className: "block text-sm font-medium", children: "Height" }, void 0, !1, {
4480
4485
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
4481
- lineNumber: 134,
4486
+ lineNumber: 138,
4482
4487
  columnNumber: 33
4483
4488
  }, void 0),
4484
4489
  /* @__PURE__ */ l.jsxDEV(
4485
4490
  "input",
4486
4491
  {
4487
4492
  type: "number",
4488
- value: o.height,
4489
- onChange: (S) => a({ ...o, height: Number(S.target.value) }),
4490
- className: "w-full p-2 border rounded"
4493
+ value: n.height,
4494
+ onChange: (S) => o({ ...n, height: Number(S.target.value) }),
4495
+ className: "w-full p-2 border rounded",
4496
+ disabled: !r.isEditable
4491
4497
  },
4492
4498
  void 0,
4493
4499
  !1,
4494
4500
  {
4495
4501
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
4496
- lineNumber: 135,
4502
+ lineNumber: 139,
4497
4503
  columnNumber: 33
4498
4504
  },
4499
4505
  void 0
4500
4506
  )
4501
4507
  ] }, void 0, !0, {
4502
4508
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
4503
- lineNumber: 133,
4509
+ lineNumber: 137,
4504
4510
  columnNumber: 29
4505
4511
  }, void 0)
4506
4512
  ] }, void 0, !0, {
4507
4513
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
4508
- lineNumber: 123,
4514
+ lineNumber: 126,
4509
4515
  columnNumber: 25
4510
4516
  }, void 0),
4511
4517
  /* @__PURE__ */ l.jsxDEV("div", { className: "flex gap-2", children: [
4512
4518
  /* @__PURE__ */ l.jsxDEV("div", { children: [
4513
4519
  /* @__PURE__ */ l.jsxDEV("label", { className: "block text-sm font-medium", children: "Margin Left" }, void 0, !1, {
4514
4520
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
4515
- lineNumber: 146,
4521
+ lineNumber: 151,
4516
4522
  columnNumber: 33
4517
4523
  }, void 0),
4518
4524
  /* @__PURE__ */ l.jsxDEV(
4519
4525
  "input",
4520
4526
  {
4521
4527
  type: "number",
4522
- value: s.left,
4523
- onChange: (S) => u({ ...s, left: Number(S.target.value) }),
4524
- className: "w-full p-2 border rounded"
4528
+ value: a.left,
4529
+ onChange: (S) => s({ ...a, left: Number(S.target.value) }),
4530
+ className: "w-full p-2 border rounded",
4531
+ disabled: !r.isEditable
4525
4532
  },
4526
4533
  void 0,
4527
4534
  !1,
4528
4535
  {
4529
4536
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
4530
- lineNumber: 147,
4537
+ lineNumber: 152,
4531
4538
  columnNumber: 33
4532
4539
  },
4533
4540
  void 0
4534
4541
  )
4535
4542
  ] }, void 0, !0, {
4536
4543
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
4537
- lineNumber: 145,
4544
+ lineNumber: 150,
4538
4545
  columnNumber: 29
4539
4546
  }, void 0),
4540
4547
  /* @__PURE__ */ l.jsxDEV("div", { children: [
4541
4548
  /* @__PURE__ */ l.jsxDEV("label", { className: "block text-sm font-medium", children: "Margin Right" }, void 0, !1, {
4542
4549
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
4543
- lineNumber: 155,
4550
+ lineNumber: 161,
4544
4551
  columnNumber: 33
4545
4552
  }, void 0),
4546
4553
  /* @__PURE__ */ l.jsxDEV(
4547
4554
  "input",
4548
4555
  {
4549
4556
  type: "number",
4550
- value: s.right,
4551
- onChange: (S) => u({ ...s, right: Number(S.target.value) }),
4552
- className: "w-full p-2 border rounded"
4557
+ value: a.right,
4558
+ onChange: (S) => s({ ...a, right: Number(S.target.value) }),
4559
+ className: "w-full p-2 border rounded",
4560
+ disabled: !r.isEditable
4553
4561
  },
4554
4562
  void 0,
4555
4563
  !1,
4556
4564
  {
4557
4565
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
4558
- lineNumber: 156,
4566
+ lineNumber: 162,
4559
4567
  columnNumber: 33
4560
4568
  },
4561
4569
  void 0
4562
4570
  )
4563
4571
  ] }, void 0, !0, {
4564
4572
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
4565
- lineNumber: 154,
4573
+ lineNumber: 160,
4566
4574
  columnNumber: 29
4567
4575
  }, void 0)
4568
4576
  ] }, void 0, !0, {
4569
4577
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
4570
- lineNumber: 144,
4578
+ lineNumber: 149,
4571
4579
  columnNumber: 25
4572
4580
  }, void 0),
4573
4581
  /* @__PURE__ */ l.jsxDEV(
4574
4582
  "button",
4575
4583
  {
4576
- onClick: O,
4584
+ onClick: v,
4577
4585
  className: "w-full p-2 text-white bg-blue-500 rounded hover:bg-blue-600",
4586
+ disabled: !r.isEditable,
4578
4587
  children: "Update Image"
4579
4588
  },
4580
4589
  void 0,
4581
4590
  !1,
4582
4591
  {
4583
4592
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
4584
- lineNumber: 165,
4593
+ lineNumber: 172,
4585
4594
  columnNumber: 25
4586
4595
  },
4587
4596
  void 0
4588
4597
  )
4589
4598
  ] }, void 0, !0, {
4590
4599
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
4591
- lineNumber: 112,
4600
+ lineNumber: 114,
4592
4601
  columnNumber: 21
4593
4602
  }, void 0)
4594
4603
  },
@@ -4596,16 +4605,16 @@ const ga = (e) => {
4596
4605
  !1,
4597
4606
  {
4598
4607
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
4599
- lineNumber: 67,
4608
+ lineNumber: 68,
4600
4609
  columnNumber: 13
4601
4610
  },
4602
4611
  void 0
4603
4612
  ) }, void 0, !1, {
4604
4613
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
4605
- lineNumber: 66,
4614
+ lineNumber: 67,
4606
4615
  columnNumber: 9
4607
4616
  }, void 0);
4608
- }, xa = gr.create({
4617
+ }, ga = gr.create({
4609
4618
  name: "image",
4610
4619
  group: "block",
4611
4620
  content: "inline*",
@@ -4616,17 +4625,30 @@ const ga = (e) => {
4616
4625
  return {
4617
4626
  src: { default: null },
4618
4627
  width: { default: 300 },
4619
- height: { default: 300 }
4628
+ height: { default: 300 },
4629
+ marginLeft: { default: 0 },
4630
+ marginRight: { default: 0 }
4620
4631
  };
4621
4632
  },
4622
4633
  parseHTML() {
4623
- return [{ tag: "image" }];
4634
+ return [
4635
+ {
4636
+ tag: "img",
4637
+ getAttrs: (e) => e instanceof HTMLElement ? {
4638
+ src: e.getAttribute("src"),
4639
+ width: Number(e.getAttribute("width")) || 300,
4640
+ height: Number(e.getAttribute("height")) || 300,
4641
+ marginLeft: Number(e.getAttribute("marginleft")) || 0,
4642
+ marginRight: Number(e.getAttribute("marginright")) || 0
4643
+ } : null
4644
+ }
4645
+ ];
4624
4646
  },
4625
4647
  renderHTML({ HTMLAttributes: e }) {
4626
- return ["image", xr(e)];
4648
+ return ["img", xr(e)];
4627
4649
  },
4628
4650
  addNodeView() {
4629
- return vr(ga);
4651
+ return vr(va);
4630
4652
  },
4631
4653
  addCommands() {
4632
4654
  return {
@@ -4636,13 +4658,13 @@ const ga = (e) => {
4636
4658
  }).run()
4637
4659
  };
4638
4660
  }
4639
- }), Na = [
4640
- bn.configure({
4641
- types: [Ut.name, pn.name]
4661
+ }), xa = [
4662
+ pn.configure({
4663
+ types: [Ut.name, mn.name]
4642
4664
  }),
4643
4665
  Ut,
4644
- yn.configure({ multicolor: !0 }),
4645
- hn.configure({
4666
+ hn.configure({ multicolor: !0 }),
4667
+ bn.configure({
4646
4668
  bulletList: {
4647
4669
  keepMarks: !0,
4648
4670
  keepAttributes: !1
@@ -4652,16 +4674,16 @@ const ga = (e) => {
4652
4674
  keepAttributes: !1
4653
4675
  }
4654
4676
  }),
4655
- Ki,
4677
+ Xi,
4678
+ yn,
4656
4679
  vn,
4657
4680
  gn,
4658
- xn,
4659
- Nn.configure({
4681
+ xn.configure({
4660
4682
  types: ["heading", "paragraph"]
4661
4683
  }),
4684
+ Nn,
4662
4685
  En,
4663
- Sn,
4664
- wn.configure({
4686
+ Sn.configure({
4665
4687
  resizable: !0,
4666
4688
  lastColumnResizable: !0,
4667
4689
  allowTableNodeSelection: !0,
@@ -4669,16 +4691,16 @@ const ga = (e) => {
4669
4691
  class: "table-wrapper"
4670
4692
  }
4671
4693
  }),
4694
+ wn,
4672
4695
  Cn,
4673
- kn,
4674
- Dn.configure({
4696
+ kn.configure({
4675
4697
  HTMLAttributes: {
4676
4698
  class: "table-cell"
4677
4699
  }
4678
4700
  }),
4679
- _n,
4680
- xa
4681
- ], Ya = ({
4701
+ Dn,
4702
+ ga
4703
+ ], qa = ({
4682
4704
  content: e = "",
4683
4705
  slotBefore: t = !1,
4684
4706
  className: r = "",
@@ -4686,8 +4708,8 @@ const ga = (e) => {
4686
4708
  editable: o = !0,
4687
4709
  onChange: a
4688
4710
  }) => {
4689
- const s = un({
4690
- extensions: Na,
4711
+ const s = cn({
4712
+ extensions: xa,
4691
4713
  content: e,
4692
4714
  editable: o,
4693
4715
  onUpdate: ({ editor: u }) => {
@@ -4697,12 +4719,12 @@ const ga = (e) => {
4697
4719
  return hr(() => {
4698
4720
  s && e !== s.getHTML() && s.commands.setContent(e, !1);
4699
4721
  }, [s, e]), s ? /* @__PURE__ */ l.jsxDEV("div", { className: `cyber-editor-container ${r}`, children: [
4700
- t && /* @__PURE__ */ l.jsxDEV(Bi, { editor: s }, void 0, !1, {
4722
+ t && /* @__PURE__ */ l.jsxDEV(Ui, { editor: s }, void 0, !1, {
4701
4723
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/editor-provider.tsx",
4702
4724
  lineNumber: 36,
4703
4725
  columnNumber: 28
4704
4726
  }, void 0),
4705
- /* @__PURE__ */ l.jsxDEV(dn, { editor: s, className: n }, void 0, !1, {
4727
+ /* @__PURE__ */ l.jsxDEV(un, { editor: s, className: n }, void 0, !1, {
4706
4728
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/editor-provider.tsx",
4707
4729
  lineNumber: 37,
4708
4730
  columnNumber: 13
@@ -4714,5 +4736,5 @@ const ga = (e) => {
4714
4736
  }, void 0) : null;
4715
4737
  };
4716
4738
  export {
4717
- Ya as CyberEditorProvider
4739
+ qa as CyberEditorProvider
4718
4740
  };