@quoreadmin/ui 1.10.30 → 1.10.31

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 (192) hide show
  1. package/dist/index186.js +4 -4
  2. package/dist/index193.js +8 -8
  3. package/dist/index195.js +1 -1
  4. package/dist/index198.js +17 -17
  5. package/dist/index201.js +22 -22
  6. package/dist/index202.js +1 -1
  7. package/dist/index203.js +1 -1
  8. package/dist/index206.js +2 -2
  9. package/dist/index208.js +14 -14
  10. package/dist/index209.js +1 -1
  11. package/dist/index210.js +1 -1
  12. package/dist/index211.js +3 -3
  13. package/dist/index212.js +6 -6
  14. package/dist/index216.js +2 -2
  15. package/dist/index217.js +1 -1
  16. package/dist/index219.js +4 -4
  17. package/dist/index221.js +1 -1
  18. package/dist/index222.js +1 -1
  19. package/dist/index223.js +1 -1
  20. package/dist/index224.js +4 -4
  21. package/dist/index226.js +1 -1
  22. package/dist/index227.js +2 -2
  23. package/dist/index228.js +2 -2
  24. package/dist/index229.js +1 -1
  25. package/dist/index230.js +159 -159
  26. package/dist/index231.js +20 -228
  27. package/dist/index232.js +19 -36
  28. package/dist/index233.js +22 -10
  29. package/dist/index234.js +167 -129
  30. package/dist/index235.js +69 -19
  31. package/dist/index236.js +34 -20
  32. package/dist/index237.js +39 -21
  33. package/dist/index238.js +156 -194
  34. package/dist/index239.js +224 -66
  35. package/dist/index240.js +37 -34
  36. package/dist/index241.js +9 -39
  37. package/dist/index242.js +1 -1
  38. package/dist/index244.js +1 -1
  39. package/dist/index245.js +1 -1
  40. package/dist/index246.js +1 -1
  41. package/dist/index247.js +1 -1
  42. package/dist/index248.js +1 -1
  43. package/dist/index249.js +217 -3673
  44. package/dist/index250.js +7 -59
  45. package/dist/index251.js +133 -78
  46. package/dist/index252.js +82 -51
  47. package/dist/index253.js +22 -215
  48. package/dist/index254.js +22 -10
  49. package/dist/index255.js +20 -57
  50. package/dist/index256.js +822 -47
  51. package/dist/index257.js +692 -44
  52. package/dist/index258.js +167 -72
  53. package/dist/index259.js +21 -727
  54. package/dist/index260.js +20 -47
  55. package/dist/index261.js +20 -64
  56. package/dist/index262.js +3 -11
  57. package/dist/index263.js +173 -691
  58. package/dist/index264.js +123 -810
  59. package/dist/index265.js +1223 -22
  60. package/dist/index266.js +11 -13
  61. package/dist/index267.js +13 -11
  62. package/dist/index268.js +22 -836
  63. package/dist/index269.js +28 -701
  64. package/dist/index270.js +20 -176
  65. package/dist/index271.js +12 -14
  66. package/dist/index272.js +2 -20
  67. package/dist/index273.js +2 -20
  68. package/dist/index274.js +54 -3
  69. package/dist/index275.js +65 -173
  70. package/dist/index276.js +25 -132
  71. package/dist/index277.js +22 -1223
  72. package/dist/index278.js +15 -13
  73. package/dist/index279.js +16 -22
  74. package/dist/index280.js +17 -22
  75. package/dist/index281.js +22 -28
  76. package/dist/index282.js +3709 -20
  77. package/dist/index283.js +60 -20
  78. package/dist/index284.js +83 -2
  79. package/dist/index285.js +52 -2
  80. package/dist/index286.js +198 -236
  81. package/dist/index287.js +9 -7
  82. package/dist/index288.js +54 -135
  83. package/dist/index289.js +60 -82
  84. package/dist/index290.js +54 -3
  85. package/dist/index291.js +79 -25
  86. package/dist/index292.js +724 -50
  87. package/dist/index293.js +44 -76
  88. package/dist/index294.js +64 -26
  89. package/dist/index295.js +11 -22
  90. package/dist/index296.js +705 -22
  91. package/dist/index297.js +819 -15
  92. package/dist/index298.js +3 -17
  93. package/dist/index299.js +27 -23
  94. package/dist/index301.js +221 -1520
  95. package/dist/index302.js +4 -384
  96. package/dist/index303.js +119 -2716
  97. package/dist/index304.js +65 -83
  98. package/dist/index305.js +85 -3796
  99. package/dist/index306.js +26 -57
  100. package/dist/index307.js +9 -15
  101. package/dist/index308.js +65 -74
  102. package/dist/index309.js +3 -201
  103. package/dist/index310.js +2 -246
  104. package/dist/index311.js +78 -74
  105. package/dist/index312.js +53 -21
  106. package/dist/index313.js +5 -934
  107. package/dist/index314.js +4 -21
  108. package/dist/index315.js +178 -19
  109. package/dist/index316.js +62 -19
  110. package/dist/index317.js +74 -68
  111. package/dist/index318.js +76 -16
  112. package/dist/index319.js +22 -19
  113. package/dist/index320.js +935 -22
  114. package/dist/index321.js +11 -11
  115. package/dist/index322.js +19 -62
  116. package/dist/index323.js +19 -234
  117. package/dist/index324.js +68 -5
  118. package/dist/index325.js +18 -133
  119. package/dist/index326.js +19 -68
  120. package/dist/index327.js +20 -85
  121. package/dist/index328.js +21 -28
  122. package/dist/index329.js +62 -8
  123. package/dist/index330.js +35 -73
  124. package/dist/index331.js +1533 -3
  125. package/dist/index332.js +386 -2
  126. package/dist/index333.js +2730 -82
  127. package/dist/index334.js +84 -52
  128. package/dist/index335.js +3796 -4
  129. package/dist/index336.js +59 -4
  130. package/dist/index337.js +15 -179
  131. package/dist/index338.js +78 -57
  132. package/dist/index339.js +201 -74
  133. package/dist/index340.js +245 -9
  134. package/dist/index341.js +9 -10
  135. package/dist/index342.js +13 -14
  136. package/dist/index343.js +55 -10
  137. package/dist/index344.js +11 -16
  138. package/dist/index345.js +13 -8
  139. package/dist/index346.js +57 -12
  140. package/dist/index347.js +48 -51
  141. package/dist/index348.js +28 -9
  142. package/dist/index349.js +2 -14
  143. package/dist/index350.js +5 -58
  144. package/dist/index351.js +2 -52
  145. package/dist/index352.js +22 -30
  146. package/dist/index353.js +41 -2
  147. package/dist/index354.js +2 -5
  148. package/dist/index355.js +11 -2
  149. package/dist/index356.js +19 -22
  150. package/dist/index357.js +9 -40
  151. package/dist/index358.js +10 -2
  152. package/dist/index359.js +16 -10
  153. package/dist/index360.js +2 -20
  154. package/dist/index361.js +9 -2
  155. package/dist/index362.js +10 -9
  156. package/dist/index363.js +14 -37
  157. package/dist/index364.js +20 -19
  158. package/dist/index365.js +55 -19
  159. package/dist/index366.js +28 -63
  160. package/dist/index367.js +7 -37
  161. package/dist/index368.js +49 -18
  162. package/dist/index369.js +6 -56
  163. package/dist/index370.js +10 -27
  164. package/dist/index371.js +7 -7
  165. package/dist/index372.js +27 -51
  166. package/dist/index373.js +2 -6
  167. package/dist/index374.js +69 -11
  168. package/dist/index375.js +166 -6
  169. package/dist/index376.js +20 -28
  170. package/dist/index377.js +20 -2
  171. package/dist/index378.js +61 -67
  172. package/dist/index379.js +36 -166
  173. package/dist/index380.js +28 -98
  174. package/dist/index381.js +10 -90
  175. package/dist/index382.js +4 -98
  176. package/dist/index383.js +4 -17
  177. package/dist/index384.js +12 -30
  178. package/dist/index385.js +7 -11
  179. package/dist/index386.js +11 -3
  180. package/dist/index387.js +4 -3
  181. package/dist/index388.js +33 -13
  182. package/dist/index389.js +31 -7
  183. package/dist/index390.js +28 -12
  184. package/dist/index391.js +61 -5
  185. package/dist/index392.js +17 -33
  186. package/dist/index393.js +99 -29
  187. package/dist/index394.js +91 -28
  188. package/dist/index395.js +96 -59
  189. package/dist/index396.js +1 -1
  190. package/dist/index401.js +1 -1
  191. package/dist/index402.js +2 -2
  192. package/package.json +1 -1
package/dist/index289.js CHANGED
@@ -1,85 +1,63 @@
1
- import { DomHandler as u } from "./index180.js";
2
- import { ref as d, readonly as q, getCurrentInstance as B, onMounted as H, nextTick as N, watch as z } from "vue";
3
- function a(t) {
4
- "@babel/helpers - typeof";
5
- return a = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
6
- return typeof e;
7
- } : function(e) {
8
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
9
- }, a(t);
10
- }
11
- function S(t, e) {
12
- var n = Object.keys(t);
13
- if (Object.getOwnPropertySymbols) {
14
- var r = Object.getOwnPropertySymbols(t);
15
- e && (r = r.filter(function(o) {
16
- return Object.getOwnPropertyDescriptor(t, o).enumerable;
17
- })), n.push.apply(n, r);
1
+ import { Node as l, textblockTypeInputRule as i, mergeAttributes as a } from "./index282.js";
2
+ var d = l.create({
3
+ name: "heading",
4
+ addOptions() {
5
+ return {
6
+ levels: [1, 2, 3, 4, 5, 6],
7
+ HTMLAttributes: {}
8
+ };
9
+ },
10
+ content: "inline*",
11
+ group: "block",
12
+ defining: !0,
13
+ addAttributes() {
14
+ return {
15
+ level: {
16
+ default: 1,
17
+ rendered: !1
18
+ }
19
+ };
20
+ },
21
+ parseHTML() {
22
+ return this.options.levels.map((e) => ({
23
+ tag: `h${e}`,
24
+ attrs: { level: e }
25
+ }));
26
+ },
27
+ renderHTML({ node: e, HTMLAttributes: t }) {
28
+ return [`h${this.options.levels.includes(e.attrs.level) ? e.attrs.level : this.options.levels[0]}`, a(this.options.HTMLAttributes, t), 0];
29
+ },
30
+ parseMarkdown: (e, t) => t.createNode("heading", { level: e.depth || 1 }, t.parseInline(e.tokens || [])),
31
+ renderMarkdown: (e, t) => {
32
+ var r;
33
+ const n = (r = e.attrs) != null && r.level ? parseInt(e.attrs.level, 10) : 1, s = "#".repeat(n);
34
+ return e.content ? `${s} ${t.renderChildren(e.content)}` : "";
35
+ },
36
+ addCommands() {
37
+ return {
38
+ setHeading: (e) => ({ commands: t }) => this.options.levels.includes(e.level) ? t.setNode(this.name, e) : !1,
39
+ toggleHeading: (e) => ({ commands: t }) => this.options.levels.includes(e.level) ? t.toggleNode(this.name, "paragraph", e) : !1
40
+ };
41
+ },
42
+ addKeyboardShortcuts() {
43
+ return this.options.levels.reduce(
44
+ (e, t) => ({
45
+ ...e,
46
+ [`Mod-Alt-${t}`]: () => this.editor.commands.toggleHeading({ level: t })
47
+ }),
48
+ {}
49
+ );
50
+ },
51
+ addInputRules() {
52
+ return this.options.levels.map((e) => i({
53
+ find: new RegExp(`^(#{${Math.min(...this.options.levels)},${e}})\\s$`),
54
+ type: this.type,
55
+ getAttributes: {
56
+ level: e
57
+ }
58
+ }));
18
59
  }
19
- return n;
20
- }
21
- function j(t) {
22
- for (var e = 1; e < arguments.length; e++) {
23
- var n = arguments[e] != null ? arguments[e] : {};
24
- e % 2 ? S(Object(n), !0).forEach(function(r) {
25
- F(t, r, n[r]);
26
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : S(Object(n)).forEach(function(r) {
27
- Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r));
28
- });
29
- }
30
- return t;
31
- }
32
- function F(t, e, n) {
33
- return e = G(e), e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
34
- }
35
- function G(t) {
36
- var e = J(t, "string");
37
- return a(e) == "symbol" ? e : String(e);
38
- }
39
- function J(t, e) {
40
- if (a(t) != "object" || !t) return t;
41
- var n = t[Symbol.toPrimitive];
42
- if (n !== void 0) {
43
- var r = n.call(t, e);
44
- if (a(r) != "object") return r;
45
- throw new TypeError("@@toPrimitive must return a primitive value.");
46
- }
47
- return (e === "string" ? String : Number)(t);
48
- }
49
- function Q(t) {
50
- var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
51
- B() ? H(t) : e ? t() : N(t);
52
- }
53
- var U = 0;
54
- function X(t) {
55
- var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = d(!1), r = d(t), o = d(null), $ = u.isClient() ? window.document : void 0, c = e.document, i = c === void 0 ? $ : c, m = e.immediate, C = m === void 0 ? !0 : m, f = e.manual, D = f === void 0 ? !1 : f, p = e.name, l = p === void 0 ? "style_".concat(++U) : p, v = e.id, y = v === void 0 ? void 0 : v, b = e.media, E = b === void 0 ? void 0 : b, g = e.nonce, x = g === void 0 ? void 0 : g, _ = e.props, A = _ === void 0 ? {} : _, O = function() {
56
- }, P = function(K) {
57
- var L = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
58
- if (i) {
59
- var s = j(j({}, A), L), M = s.name || l, w = s.id || y, R = s.nonce || x;
60
- o.value = i.querySelector('style[data-primevue-style-id="'.concat(M, '"]')) || i.getElementById(w) || i.createElement("style"), o.value.isConnected || (r.value = K || t, u.setAttributes(o.value, {
61
- type: "text/css",
62
- id: w,
63
- media: E,
64
- nonce: R
65
- }), i.head.appendChild(o.value), u.setAttribute(o.value, "data-primevue-style-id", l), u.setAttributes(o.value, s)), !n.value && (O = z(r, function(T) {
66
- o.value.textContent = T;
67
- }, {
68
- immediate: !0
69
- }), n.value = !0);
70
- }
71
- }, I = function() {
72
- !i || !n.value || (O(), u.isExist(o.value) && i.head.removeChild(o.value), n.value = !1);
73
- };
74
- return C && !D && Q(P), {
75
- id: y,
76
- name: l,
77
- css: r,
78
- unload: I,
79
- load: P,
80
- isLoaded: q(n)
81
- };
82
- }
60
+ });
83
61
  export {
84
- X as useStyle
62
+ d as Heading
85
63
  };
package/dist/index290.js CHANGED
@@ -1,5 +1,56 @@
1
- const n = 16.666666666666668, t = typeof performance < "u" ? () => performance.now() : () => Date.now(), o = typeof window < "u" ? (e) => window.requestAnimationFrame(e) : (e) => setTimeout(() => e(t()), n);
1
+ import { Node as m, nodeInputRule as f, canInsertNode as h, isNodeSelection as T, mergeAttributes as y } from "./index282.js";
2
+ import { TextSelection as s, NodeSelection as N } from "./index297.js";
3
+ var M = m.create({
4
+ name: "horizontalRule",
5
+ addOptions() {
6
+ return {
7
+ HTMLAttributes: {},
8
+ nextNodeType: "paragraph"
9
+ };
10
+ },
11
+ group: "block",
12
+ parseHTML() {
13
+ return [{ tag: "hr" }];
14
+ },
15
+ renderHTML({ HTMLAttributes: n }) {
16
+ return ["hr", y(this.options.HTMLAttributes, n)];
17
+ },
18
+ markdownTokenName: "hr",
19
+ parseMarkdown: (n, o) => o.createNode("horizontalRule"),
20
+ renderMarkdown: () => "---",
21
+ addCommands() {
22
+ return {
23
+ setHorizontalRule: () => ({ chain: n, state: o }) => {
24
+ if (!h(o, o.schema.nodes[this.name]))
25
+ return !1;
26
+ const { selection: i } = o, { $to: l } = i, r = n();
27
+ return T(i) ? r.insertContentAt(l.pos, {
28
+ type: this.name
29
+ }) : r.insertContent({ type: this.name }), r.command(({ state: p, tr: e, dispatch: u }) => {
30
+ if (u) {
31
+ const { $to: t } = e.selection, a = t.end();
32
+ if (t.nodeAfter)
33
+ t.nodeAfter.isTextblock ? e.setSelection(s.create(e.doc, t.pos + 1)) : t.nodeAfter.isBlock ? e.setSelection(N.create(e.doc, t.pos)) : e.setSelection(s.create(e.doc, t.pos));
34
+ else {
35
+ const c = p.schema.nodes[this.options.nextNodeType] || t.parent.type.contentMatch.defaultType, d = c?.create();
36
+ d && (e.insert(a, d), e.setSelection(s.create(e.doc, a + 1)));
37
+ }
38
+ e.scrollIntoView();
39
+ }
40
+ return !0;
41
+ }).run();
42
+ }
43
+ };
44
+ },
45
+ addInputRules() {
46
+ return [
47
+ f({
48
+ find: /^(?:---|—-|___\s|\*\*\*\s)$/,
49
+ type: this.type
50
+ })
51
+ ];
52
+ }
53
+ });
2
54
  export {
3
- n as defaultTimestep,
4
- o as onNextFrame
55
+ M as HorizontalRule
5
56
  };
package/dist/index291.js CHANGED
@@ -1,29 +1,83 @@
1
- function p(h) {
2
- let n = [], s = [], i = 0, f = !1, o = !1;
3
- const l = /* @__PURE__ */ new WeakSet(), u = {
4
- schedule: (e, t = !1, r = !1) => {
5
- const d = r && f, c = d ? n : s;
6
- return t && l.add(e), c.indexOf(e) === -1 && (c.push(e), d && f && (i = n.length)), e;
7
- },
8
- cancel: (e) => {
9
- const t = s.indexOf(e);
10
- t !== -1 && s.splice(t, 1), l.delete(e);
11
- },
12
- process: (e) => {
13
- if (f) {
14
- o = !0;
15
- return;
1
+ import { Mark as s, markPasteRule as r, markInputRule as a, mergeAttributes as n } from "./index282.js";
2
+ var i = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, o = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, d = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, l = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, m = s.create({
3
+ name: "italic",
4
+ addOptions() {
5
+ return {
6
+ HTMLAttributes: {}
7
+ };
8
+ },
9
+ parseHTML() {
10
+ return [
11
+ {
12
+ tag: "em"
13
+ },
14
+ {
15
+ tag: "i",
16
+ getAttrs: (e) => e.style.fontStyle !== "normal" && null
17
+ },
18
+ {
19
+ style: "font-style=normal",
20
+ clearMark: (e) => e.type.name === this.name
21
+ },
22
+ {
23
+ style: "font-style=italic"
16
24
  }
17
- if (f = !0, [n, s] = [s, n], s.length = 0, i = n.length, i)
18
- for (let t = 0; t < i; t++) {
19
- const r = n[t];
20
- r(e), l.has(r) && (u.schedule(r), h());
21
- }
22
- f = !1, o && (o = !1, u.process(e));
25
+ ];
26
+ },
27
+ renderHTML({ HTMLAttributes: e }) {
28
+ return ["em", n(this.options.HTMLAttributes, e), 0];
29
+ },
30
+ addCommands() {
31
+ return {
32
+ setItalic: () => ({ commands: e }) => e.setMark(this.name),
33
+ toggleItalic: () => ({ commands: e }) => e.toggleMark(this.name),
34
+ unsetItalic: () => ({ commands: e }) => e.unsetMark(this.name)
35
+ };
36
+ },
37
+ markdownTokenName: "em",
38
+ parseMarkdown: (e, t) => t.applyMark("italic", t.parseInline(e.tokens || [])),
39
+ markdownOptions: {
40
+ htmlReopen: {
41
+ open: "<em>",
42
+ close: "</em>"
23
43
  }
24
- };
25
- return u;
26
- }
44
+ },
45
+ renderMarkdown: (e, t) => `*${t.renderChildren(e)}*`,
46
+ addKeyboardShortcuts() {
47
+ return {
48
+ "Mod-i": () => this.editor.commands.toggleItalic(),
49
+ "Mod-I": () => this.editor.commands.toggleItalic()
50
+ };
51
+ },
52
+ addInputRules() {
53
+ return [
54
+ a({
55
+ find: i,
56
+ type: this.type
57
+ }),
58
+ a({
59
+ find: d,
60
+ type: this.type
61
+ })
62
+ ];
63
+ },
64
+ addPasteRules() {
65
+ return [
66
+ r({
67
+ find: o,
68
+ type: this.type
69
+ }),
70
+ r({
71
+ find: l,
72
+ type: this.type
73
+ })
74
+ ];
75
+ }
76
+ });
27
77
  export {
28
- p as createRenderStep
78
+ m as Italic,
79
+ i as starInputRegex,
80
+ o as starPasteRegex,
81
+ d as underscoreInputRegex,
82
+ l as underscorePasteRegex
29
83
  };