@quoreadmin/ui 1.10.10 → 1.10.12

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 (153) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index138.js +146 -146
  3. package/dist/index193.js +8 -8
  4. package/dist/index195.js +8 -8
  5. package/dist/index198.js +17 -17
  6. package/dist/index201.js +26 -26
  7. package/dist/index202.js +1 -1
  8. package/dist/index203.js +1 -1
  9. package/dist/index206.js +2 -2
  10. package/dist/index208.js +14 -14
  11. package/dist/index209.js +1 -1
  12. package/dist/index210.js +1 -1
  13. package/dist/index211.js +3 -3
  14. package/dist/index212.js +6 -6
  15. package/dist/index216.js +2 -2
  16. package/dist/index230.js +155 -121
  17. package/dist/index231.js +19 -37
  18. package/dist/index232.js +20 -80
  19. package/dist/index233.js +15 -13
  20. package/dist/index234.js +198 -19
  21. package/dist/index235.js +68 -18
  22. package/dist/index236.js +34 -20
  23. package/dist/index237.js +39 -19
  24. package/dist/index238.js +121 -155
  25. package/dist/index239.js +37 -19
  26. package/dist/index240.js +80 -22
  27. package/dist/index241.js +19 -198
  28. package/dist/index242.js +18 -68
  29. package/dist/index243.js +20 -34
  30. package/dist/index244.js +19 -39
  31. package/dist/index249.js +3636 -22
  32. package/dist/index250.js +55 -22
  33. package/dist/index251.js +77 -20
  34. package/dist/index252.js +39 -823
  35. package/dist/index253.js +198 -685
  36. package/dist/index254.js +9 -175
  37. package/dist/index255.js +57 -22
  38. package/dist/index256.js +61 -20
  39. package/dist/index257.js +54 -20
  40. package/dist/index258.js +75 -3
  41. package/dist/index259.js +709 -170
  42. package/dist/index260.js +37 -128
  43. package/dist/index261.js +55 -1214
  44. package/dist/index262.js +11 -20
  45. package/dist/index263.js +705 -22
  46. package/dist/index264.js +820 -22
  47. package/dist/index265.js +15 -22
  48. package/dist/index266.js +15 -13
  49. package/dist/index267.js +12 -12
  50. package/dist/index268.js +836 -2
  51. package/dist/index269.js +702 -2
  52. package/dist/index270.js +170 -3630
  53. package/dist/index271.js +22 -55
  54. package/dist/index272.js +20 -77
  55. package/dist/index273.js +20 -52
  56. package/dist/index274.js +3 -215
  57. package/dist/index275.js +187 -10
  58. package/dist/index276.js +128 -52
  59. package/dist/index277.js +1214 -52
  60. package/dist/index278.js +20 -54
  61. package/dist/index279.js +22 -75
  62. package/dist/index280.js +21 -725
  63. package/dist/index281.js +29 -42
  64. package/dist/index282.js +20 -64
  65. package/dist/index283.js +20 -11
  66. package/dist/index284.js +2 -705
  67. package/dist/index285.js +2 -820
  68. package/dist/index290.js +54 -2
  69. package/dist/index292.js +25 -53
  70. package/dist/index293.js +15 -19
  71. package/dist/index294.js +9 -9
  72. package/dist/index295.js +16 -22
  73. package/dist/index296.js +15 -14
  74. package/dist/index297.js +21 -15
  75. package/dist/index298.js +2 -23
  76. package/dist/index299.js +1534 -3
  77. package/dist/index300.js +382 -23
  78. package/dist/index301.js +2714 -245
  79. package/dist/index302.js +84 -4
  80. package/dist/index303.js +3785 -133
  81. package/dist/index304.js +57 -70
  82. package/dist/index305.js +14 -86
  83. package/dist/index306.js +82 -27
  84. package/dist/index307.js +199 -13
  85. package/dist/index308.js +237 -66
  86. package/dist/index309.js +3 -4
  87. package/dist/index310.js +27 -2
  88. package/dist/index311.js +74 -78
  89. package/dist/index312.js +21 -52
  90. package/dist/index313.js +934 -5
  91. package/dist/index314.js +21 -4
  92. package/dist/index315.js +19 -178
  93. package/dist/index316.js +19 -62
  94. package/dist/index317.js +68 -74
  95. package/dist/index318.js +16 -76
  96. package/dist/index319.js +19 -22
  97. package/dist/index320.js +22 -935
  98. package/dist/index321.js +11 -11
  99. package/dist/index322.js +62 -19
  100. package/dist/index323.js +261 -19
  101. package/dist/index324.js +5 -68
  102. package/dist/index325.js +139 -18
  103. package/dist/index326.js +73 -19
  104. package/dist/index327.js +85 -20
  105. package/dist/index328.js +28 -21
  106. package/dist/index329.js +16 -63
  107. package/dist/index330.js +64 -1523
  108. package/dist/index331.js +3 -385
  109. package/dist/index332.js +2 -2731
  110. package/dist/index333.js +77 -80
  111. package/dist/index334.js +53 -3792
  112. package/dist/index335.js +4 -58
  113. package/dist/index336.js +5 -15
  114. package/dist/index337.js +166 -71
  115. package/dist/index338.js +57 -196
  116. package/dist/index339.js +75 -246
  117. package/dist/index364.js +19 -18
  118. package/dist/index365.js +19 -56
  119. package/dist/index366.js +63 -28
  120. package/dist/index367.js +37 -7
  121. package/dist/index368.js +16 -49
  122. package/dist/index369.js +57 -7
  123. package/dist/index370.js +27 -10
  124. package/dist/index371.js +7 -7
  125. package/dist/index372.js +51 -27
  126. package/dist/index373.js +7 -2
  127. package/dist/index374.js +11 -69
  128. package/dist/index375.js +6 -166
  129. package/dist/index376.js +28 -20
  130. package/dist/index377.js +2 -20
  131. package/dist/index378.js +67 -61
  132. package/dist/index379.js +166 -36
  133. package/dist/index380.js +98 -28
  134. package/dist/index381.js +90 -10
  135. package/dist/index382.js +98 -4
  136. package/dist/index383.js +17 -4
  137. package/dist/index384.js +30 -12
  138. package/dist/index385.js +11 -7
  139. package/dist/index386.js +3 -11
  140. package/dist/index387.js +3 -4
  141. package/dist/index388.js +13 -33
  142. package/dist/index389.js +7 -31
  143. package/dist/index390.js +12 -28
  144. package/dist/index391.js +5 -61
  145. package/dist/index392.js +33 -17
  146. package/dist/index393.js +29 -99
  147. package/dist/index394.js +28 -91
  148. package/dist/index395.js +59 -96
  149. package/dist/index396.js +1 -1
  150. package/dist/index401.js +1 -1
  151. package/dist/index402.js +2 -2
  152. package/dist/index50.js +2 -2
  153. package/package.json +1 -1
package/dist/index302.js CHANGED
@@ -1,8 +1,88 @@
1
- function u(n, r) {
2
- return function() {
3
- return n.apply(r, arguments);
1
+ import { ReplaceAroundStep as h, liftTarget as w, canJoin as C, findWrapping as L, canSplit as R } from "./index299.js";
2
+ import { Fragment as s, Slice as I, NodeRange as x } from "./index301.js";
3
+ function O(r, t = null) {
4
+ return function(e, l) {
5
+ let { $from: o, $to: n } = e.selection, f = o.blockRange(n);
6
+ if (!f)
7
+ return !1;
8
+ let i = l ? e.tr : null;
9
+ return S(i, f, r, t) ? (l && l(i.scrollIntoView()), !0) : !1;
10
+ };
11
+ }
12
+ function S(r, t, e, l = null) {
13
+ let o = !1, n = t, f = t.$from.doc;
14
+ if (t.depth >= 2 && t.$from.node(t.depth - 1).type.compatibleContent(e) && t.startIndex == 0) {
15
+ if (t.$from.index(t.depth - 1) == 0)
16
+ return !1;
17
+ let d = f.resolve(t.start - 2);
18
+ n = new x(d, d, t.depth), t.endIndex < t.parent.childCount && (t = new x(t.$from, f.resolve(t.$to.end(t.depth)), t.depth)), o = !0;
19
+ }
20
+ let i = L(n, e, l, t);
21
+ return i ? (r && v(r, t, i, o, e), !0) : !1;
22
+ }
23
+ function v(r, t, e, l, o) {
24
+ let n = s.empty;
25
+ for (let u = e.length - 1; u >= 0; u--)
26
+ n = s.from(e[u].type.create(e[u].attrs, n));
27
+ r.step(new h(t.start - (l ? 2 : 0), t.end, t.start, t.end, new I(n, 0, 0), e.length, !0));
28
+ let f = 0;
29
+ for (let u = 0; u < e.length; u++)
30
+ e[u].type == o && (f = u + 1);
31
+ let i = e.length - f, d = t.start + e.length - (l ? 2 : 0), c = t.parent;
32
+ for (let u = t.startIndex, m = t.endIndex, p = !0; u < m; u++, p = !1)
33
+ !p && R(r.doc, d, i) && (r.split(d, i), d += 2 * i), d += c.child(u).nodeSize;
34
+ return r;
35
+ }
36
+ function V(r) {
37
+ return function(t, e) {
38
+ let { $from: l, $to: o } = t.selection, n = l.blockRange(o, (f) => f.childCount > 0 && f.firstChild.type == r);
39
+ return n ? e ? l.node(n.depth - 1).type == r ? b(t, e, r, n) : k(t, e, n) : !0 : !1;
40
+ };
41
+ }
42
+ function b(r, t, e, l) {
43
+ let o = r.tr, n = l.end, f = l.$to.end(l.depth);
44
+ n < f && (o.step(new h(n - 1, f, n, f, new I(s.from(e.create(null, l.parent.copy())), 1, 0), 1, !0)), l = new x(o.doc.resolve(l.$from.pos), o.doc.resolve(f), l.depth));
45
+ const i = w(l);
46
+ if (i == null)
47
+ return !1;
48
+ o.lift(l, i);
49
+ let d = o.doc.resolve(o.mapping.map(n, -1) - 1);
50
+ return C(o.doc, d.pos) && d.nodeBefore.type == d.nodeAfter.type && o.join(d.pos), t(o.scrollIntoView()), !0;
51
+ }
52
+ function k(r, t, e) {
53
+ let l = r.tr, o = e.parent;
54
+ for (let a = e.end, $ = e.endIndex - 1, y = e.startIndex; $ > y; $--)
55
+ a -= o.child($).nodeSize, l.delete(a - 1, a + 1);
56
+ let n = l.doc.resolve(e.start), f = n.nodeAfter;
57
+ if (l.mapping.map(e.end) != e.start + n.nodeAfter.nodeSize)
58
+ return !1;
59
+ let i = e.startIndex == 0, d = e.endIndex == o.childCount, c = n.node(-1), u = n.index(-1);
60
+ if (!c.canReplace(u + (i ? 0 : 1), u + 1, f.content.append(d ? s.empty : s.from(o))))
61
+ return !1;
62
+ let m = n.pos, p = m + f.nodeSize;
63
+ return l.step(new h(m - (i ? 1 : 0), p + (d ? 1 : 0), m + 1, p - 1, new I((i ? s.empty : s.from(o.copy(s.empty))).append(d ? s.empty : s.from(o.copy(s.empty))), i ? 0 : 1, d ? 0 : 1), i ? 0 : 1)), t(l.scrollIntoView()), !0;
64
+ }
65
+ function B(r) {
66
+ return function(t, e) {
67
+ let { $from: l, $to: o } = t.selection, n = l.blockRange(o, (c) => c.childCount > 0 && c.firstChild.type == r);
68
+ if (!n)
69
+ return !1;
70
+ let f = n.startIndex;
71
+ if (f == 0)
72
+ return !1;
73
+ let i = n.parent, d = i.child(f - 1);
74
+ if (d.type != r)
75
+ return !1;
76
+ if (e) {
77
+ let c = d.lastChild && d.lastChild.type == i.type, u = s.from(c ? r.create() : null), m = new I(s.from(r.create(null, s.from(i.type.create(null, u)))), c ? 3 : 1, 0), p = n.start, a = n.end;
78
+ e(t.tr.step(new h(p - (c ? 3 : 1), a, p, a, m, 1, !0)).scrollIntoView());
79
+ }
80
+ return !0;
4
81
  };
5
82
  }
6
83
  export {
7
- u as default
84
+ V as liftListItem,
85
+ B as sinkListItem,
86
+ O as wrapInList,
87
+ S as wrapRangeInList
8
88
  };