@quoreadmin/ui 1.10.5 → 1.10.7

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 (197) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index131.js +108 -101
  3. package/dist/index183.js +3 -3
  4. package/dist/index186.js +4 -4
  5. package/dist/index193.js +10 -10
  6. package/dist/index195.js +10 -10
  7. package/dist/index198.js +17 -17
  8. package/dist/index201.js +9 -9
  9. package/dist/index202.js +1 -1
  10. package/dist/index203.js +1 -1
  11. package/dist/index204.js +1 -1
  12. package/dist/index206.js +2 -2
  13. package/dist/index208.js +14 -14
  14. package/dist/index209.js +1 -1
  15. package/dist/index210.js +1 -1
  16. package/dist/index211.js +3 -3
  17. package/dist/index212.js +6 -6
  18. package/dist/index216.js +2 -2
  19. package/dist/index217.js +1 -1
  20. package/dist/index219.js +4 -4
  21. package/dist/index221.js +1 -1
  22. package/dist/index222.js +1 -1
  23. package/dist/index223.js +1 -1
  24. package/dist/index224.js +4 -4
  25. package/dist/index226.js +1 -1
  26. package/dist/index227.js +156 -83
  27. package/dist/index228.js +20 -407
  28. package/dist/index229.js +20 -22
  29. package/dist/index230.js +21 -160
  30. package/dist/index231.js +189 -218
  31. package/dist/index232.js +69 -36
  32. package/dist/index233.js +88 -10
  33. package/dist/index234.js +386 -106
  34. package/dist/index235.js +32 -36
  35. package/dist/index236.js +40 -80
  36. package/dist/index237.js +22 -20
  37. package/dist/index238.js +126 -19
  38. package/dist/index239.js +34 -16
  39. package/dist/index240.js +80 -20
  40. package/dist/index241.js +11 -11
  41. package/dist/index242.js +20 -3636
  42. package/dist/index243.js +20 -55
  43. package/dist/index244.js +20 -77
  44. package/dist/index245.js +160 -51
  45. package/dist/index246.js +225 -212
  46. package/dist/index247.js +37 -10
  47. package/dist/index248.js +10 -57
  48. package/dist/index249.js +3621 -46
  49. package/dist/index250.js +36 -35
  50. package/dist/index251.js +30 -28
  51. package/dist/index252.js +28 -702
  52. package/dist/index253.js +195 -22
  53. package/dist/index254.js +9 -63
  54. package/dist/index255.js +54 -8
  55. package/dist/index256.js +51 -695
  56. package/dist/index257.js +49 -815
  57. package/dist/index258.js +68 -154
  58. package/dist/index259.js +725 -19
  59. package/dist/index260.js +42 -22
  60. package/dist/index261.js +55 -190
  61. package/dist/index262.js +11 -70
  62. package/dist/index263.js +704 -33
  63. package/dist/index264.js +817 -37
  64. package/dist/index265.js +1 -1
  65. package/dist/index266.js +1 -1
  66. package/dist/index267.js +1 -1
  67. package/dist/index268.js +8 -8
  68. package/dist/index269.js +2 -2
  69. package/dist/index270.js +1 -1
  70. package/dist/index271.js +1 -1
  71. package/dist/index272.js +1 -1
  72. package/dist/index273.js +1 -1
  73. package/dist/index275.js +2 -2
  74. package/dist/index276.js +2 -2
  75. package/dist/index277.js +8 -8
  76. package/dist/index278.js +1 -1
  77. package/dist/index279.js +1 -1
  78. package/dist/index280.js +1 -1
  79. package/dist/index281.js +1 -1
  80. package/dist/index282.js +1 -1
  81. package/dist/index283.js +1 -1
  82. package/dist/index286.js +50 -249
  83. package/dist/index287.js +79 -8
  84. package/dist/index288.js +26 -138
  85. package/dist/index289.js +22 -83
  86. package/dist/index290.js +22 -3
  87. package/dist/index291.js +16 -27
  88. package/dist/index292.js +17 -2
  89. package/dist/index293.js +232 -58
  90. package/dist/index294.js +8 -1534
  91. package/dist/index295.js +118 -366
  92. package/dist/index296.js +72 -2720
  93. package/dist/index297.js +22 -85
  94. package/dist/index298.js +2 -3792
  95. package/dist/index299.js +254 -52
  96. package/dist/index300.js +6 -15
  97. package/dist/index301.js +130 -74
  98. package/dist/index302.js +66 -195
  99. package/dist/index303.js +81 -240
  100. package/dist/index304.js +25 -50
  101. package/dist/index305.js +14 -24
  102. package/dist/index306.js +74 -21
  103. package/dist/index307.js +3 -21
  104. package/dist/index308.js +2 -16
  105. package/dist/index309.js +82 -16
  106. package/dist/index310.js +52 -22
  107. package/dist/index311.js +5 -78
  108. package/dist/index312.js +4 -21
  109. package/dist/index313.js +164 -920
  110. package/dist/index314.js +62 -21
  111. package/dist/index315.js +75 -20
  112. package/dist/index316.js +1534 -20
  113. package/dist/index317.js +376 -59
  114. package/dist/index318.js +2731 -19
  115. package/dist/index319.js +86 -19
  116. package/dist/index320.js +3792 -22
  117. package/dist/index321.js +59 -21
  118. package/dist/index322.js +15 -63
  119. package/dist/index323.js +76 -254
  120. package/dist/index324.js +200 -4
  121. package/dist/index325.js +235 -129
  122. package/dist/index326.js +3 -73
  123. package/dist/index327.js +25 -85
  124. package/dist/index328.js +75 -25
  125. package/dist/index329.js +20 -14
  126. package/dist/index330.js +926 -66
  127. package/dist/index331.js +21 -3
  128. package/dist/index332.js +20 -2
  129. package/dist/index333.js +19 -82
  130. package/dist/index334.js +68 -52
  131. package/dist/index335.js +19 -6
  132. package/dist/index336.js +19 -5
  133. package/dist/index337.js +21 -178
  134. package/dist/index338.js +21 -62
  135. package/dist/index339.js +62 -74
  136. package/dist/index340.js +36 -8
  137. package/dist/index341.js +18 -12
  138. package/dist/index342.js +55 -53
  139. package/dist/index343.js +27 -10
  140. package/dist/index344.js +6 -13
  141. package/dist/index345.js +48 -54
  142. package/dist/index346.js +7 -52
  143. package/dist/index347.js +11 -30
  144. package/dist/index348.js +7 -2
  145. package/dist/index349.js +27 -4
  146. package/dist/index350.js +2 -2
  147. package/dist/index351.js +69 -22
  148. package/dist/index352.js +164 -38
  149. package/dist/index353.js +10 -2
  150. package/dist/index354.js +9 -10
  151. package/dist/index355.js +12 -18
  152. package/dist/index356.js +9 -9
  153. package/dist/index357.js +16 -9
  154. package/dist/index358.js +8 -16
  155. package/dist/index359.js +13 -2
  156. package/dist/index360.js +55 -9
  157. package/dist/index361.js +11 -9
  158. package/dist/index362.js +13 -13
  159. package/dist/index363.js +53 -32
  160. package/dist/index364.js +51 -19
  161. package/dist/index365.js +30 -19
  162. package/dist/index366.js +2 -64
  163. package/dist/index367.js +5 -37
  164. package/dist/index368.js +2 -19
  165. package/dist/index369.js +23 -57
  166. package/dist/index370.js +39 -27
  167. package/dist/index371.js +2 -7
  168. package/dist/index372.js +10 -51
  169. package/dist/index373.js +20 -7
  170. package/dist/index374.js +2 -12
  171. package/dist/index375.js +8 -6
  172. package/dist/index376.js +20 -28
  173. package/dist/index377.js +20 -2
  174. package/dist/index378.js +61 -67
  175. package/dist/index379.js +36 -166
  176. package/dist/index38.js +2 -2
  177. package/dist/index380.js +30 -97
  178. package/dist/index381.js +10 -100
  179. package/dist/index382.js +3 -90
  180. package/dist/index383.js +4 -17
  181. package/dist/index384.js +12 -30
  182. package/dist/index385.js +7 -11
  183. package/dist/index386.js +11 -3
  184. package/dist/index387.js +4 -3
  185. package/dist/index388.js +33 -13
  186. package/dist/index389.js +31 -7
  187. package/dist/index390.js +28 -12
  188. package/dist/index391.js +61 -5
  189. package/dist/index392.js +101 -33
  190. package/dist/index393.js +91 -31
  191. package/dist/index394.js +97 -27
  192. package/dist/index395.js +16 -60
  193. package/dist/index396.js +1 -1
  194. package/dist/index401.js +1 -1
  195. package/dist/index402.js +2 -2
  196. package/dist/src/components/page-layout/page-layout.vue.d.ts +2 -0
  197. package/package.json +1 -1
package/dist/index250.js CHANGED
@@ -1,56 +1,57 @@
1
- import { Node as m, nodeInputRule as f, canInsertNode as h, isNodeSelection as T, mergeAttributes as y } from "./index242.js";
2
- import { TextSelection as s, NodeSelection as N } from "./index257.js";
3
- var M = m.create({
4
- name: "horizontalRule",
1
+ import { Node as a, wrappingInputRule as c, mergeAttributes as d } from "./index249.js";
2
+ import { createElement as i } from "./index322.js";
3
+ var l = /^\s*>\s$/, g = a.create({
4
+ name: "blockquote",
5
5
  addOptions() {
6
6
  return {
7
- HTMLAttributes: {},
8
- nextNodeType: "paragraph"
7
+ HTMLAttributes: {}
9
8
  };
10
9
  },
10
+ content: "block+",
11
11
  group: "block",
12
+ defining: !0,
12
13
  parseHTML() {
13
- return [{ tag: "hr" }];
14
+ return [{ tag: "blockquote" }];
14
15
  },
15
- renderHTML({ HTMLAttributes: n }) {
16
- return ["hr", y(this.options.HTMLAttributes, n)];
16
+ renderHTML({ HTMLAttributes: t }) {
17
+ return /* @__PURE__ */ i("blockquote", { ...d(this.options.HTMLAttributes, t), children: /* @__PURE__ */ i("slot", {}) });
18
+ },
19
+ parseMarkdown: (t, e) => e.createNode("blockquote", void 0, e.parseChildren(t.tokens || [])),
20
+ renderMarkdown: (t, e) => {
21
+ if (!t.content)
22
+ return "";
23
+ const r = ">", n = [];
24
+ return t.content.forEach((u) => {
25
+ const s = e.renderChildren([u]).split(`
26
+ `).map((o) => o.trim() === "" ? r : `${r} ${o}`);
27
+ n.push(s.join(`
28
+ `));
29
+ }), n.join(`
30
+ ${r}
31
+ `);
17
32
  },
18
- markdownTokenName: "hr",
19
- parseMarkdown: (n, o) => o.createNode("horizontalRule"),
20
- renderMarkdown: () => "---",
21
33
  addCommands() {
22
34
  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
- }
35
+ setBlockquote: () => ({ commands: t }) => t.wrapIn(this.name),
36
+ toggleBlockquote: () => ({ commands: t }) => t.toggleWrap(this.name),
37
+ unsetBlockquote: () => ({ commands: t }) => t.lift(this.name)
38
+ };
39
+ },
40
+ addKeyboardShortcuts() {
41
+ return {
42
+ "Mod-Shift-b": () => this.editor.commands.toggleBlockquote()
43
43
  };
44
44
  },
45
45
  addInputRules() {
46
46
  return [
47
- f({
48
- find: /^(?:---|—-|___\s|\*\*\*\s)$/,
47
+ c({
48
+ find: l,
49
49
  type: this.type
50
50
  })
51
51
  ];
52
52
  }
53
53
  });
54
54
  export {
55
- M as HorizontalRule
55
+ g as Blockquote,
56
+ l as inputRegex
56
57
  };
package/dist/index251.js CHANGED
@@ -1,6 +1,7 @@
1
- import { Mark as s, markPasteRule as r, markInputRule as a, mergeAttributes as n } from "./index242.js";
2
- var i = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, d = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, o = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, l = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, m = s.create({
3
- name: "italic",
1
+ import { Mark as a, markPasteRule as r, markInputRule as s, mergeAttributes as o } from "./index249.js";
2
+ import { createElement as n } from "./index322.js";
3
+ var d = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, l = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, i = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, u = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, p = a.create({
4
+ name: "bold",
4
5
  addOptions() {
5
6
  return {
6
7
  HTMLAttributes: {}
@@ -9,48 +10,49 @@ var i = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, d = /(?:^|\s)(\*(?!\s+\*
9
10
  parseHTML() {
10
11
  return [
11
12
  {
12
- tag: "em"
13
+ tag: "strong"
13
14
  },
14
15
  {
15
- tag: "i",
16
- getAttrs: (t) => t.style.fontStyle !== "normal" && null
16
+ tag: "b",
17
+ getAttrs: (t) => t.style.fontWeight !== "normal" && null
17
18
  },
18
19
  {
19
- style: "font-style=normal",
20
+ style: "font-weight=400",
20
21
  clearMark: (t) => t.type.name === this.name
21
22
  },
22
23
  {
23
- style: "font-style=italic"
24
+ style: "font-weight",
25
+ getAttrs: (t) => /^(bold(er)?|[5-9]\d{2,})$/.test(t) && null
24
26
  }
25
27
  ];
26
28
  },
27
29
  renderHTML({ HTMLAttributes: t }) {
28
- return ["em", n(this.options.HTMLAttributes, t), 0];
30
+ return /* @__PURE__ */ n("strong", { ...o(this.options.HTMLAttributes, t), children: /* @__PURE__ */ n("slot", {}) });
29
31
  },
32
+ markdownTokenName: "strong",
33
+ parseMarkdown: (t, e) => e.applyMark("bold", e.parseInline(t.tokens || [])),
34
+ renderMarkdown: (t, e) => `**${e.renderChildren(t)}**`,
30
35
  addCommands() {
31
36
  return {
32
- setItalic: () => ({ commands: t }) => t.setMark(this.name),
33
- toggleItalic: () => ({ commands: t }) => t.toggleMark(this.name),
34
- unsetItalic: () => ({ commands: t }) => t.unsetMark(this.name)
37
+ setBold: () => ({ commands: t }) => t.setMark(this.name),
38
+ toggleBold: () => ({ commands: t }) => t.toggleMark(this.name),
39
+ unsetBold: () => ({ commands: t }) => t.unsetMark(this.name)
35
40
  };
36
41
  },
37
- markdownTokenName: "em",
38
- parseMarkdown: (t, e) => e.applyMark("italic", e.parseInline(t.tokens || [])),
39
- renderMarkdown: (t, e) => `*${e.renderChildren(t)}*`,
40
42
  addKeyboardShortcuts() {
41
43
  return {
42
- "Mod-i": () => this.editor.commands.toggleItalic(),
43
- "Mod-I": () => this.editor.commands.toggleItalic()
44
+ "Mod-b": () => this.editor.commands.toggleBold(),
45
+ "Mod-B": () => this.editor.commands.toggleBold()
44
46
  };
45
47
  },
46
48
  addInputRules() {
47
49
  return [
48
- a({
49
- find: i,
50
+ s({
51
+ find: d,
50
52
  type: this.type
51
53
  }),
52
- a({
53
- find: o,
54
+ s({
55
+ find: i,
54
56
  type: this.type
55
57
  })
56
58
  ];
@@ -58,20 +60,20 @@ var i = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, d = /(?:^|\s)(\*(?!\s+\*
58
60
  addPasteRules() {
59
61
  return [
60
62
  r({
61
- find: d,
63
+ find: l,
62
64
  type: this.type
63
65
  }),
64
66
  r({
65
- find: l,
67
+ find: u,
66
68
  type: this.type
67
69
  })
68
70
  ];
69
71
  }
70
72
  });
71
73
  export {
72
- m as Italic,
73
- i as starInputRegex,
74
- d as starPasteRegex,
75
- o as underscoreInputRegex,
76
- l as underscorePasteRegex
74
+ p as Bold,
75
+ d as starInputRegex,
76
+ l as starPasteRegex,
77
+ i as underscoreInputRegex,
78
+ u as underscorePasteRegex
77
79
  };