@quoreadmin/ui 1.10.10 → 1.10.11

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 (226) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index105.js +1 -1
  3. package/dist/index111.js +1 -1
  4. package/dist/index115.js +1 -1
  5. package/dist/index136.js +1 -1
  6. package/dist/index138.js +146 -146
  7. package/dist/index151.js +2 -2
  8. package/dist/index162.js +1 -1
  9. package/dist/index173.js +2 -2
  10. package/dist/index180.js +228 -1151
  11. package/dist/index182.js +14 -14
  12. package/dist/index183.js +96 -266
  13. package/dist/index184.js +2 -106
  14. package/dist/index185.js +1376 -2
  15. package/dist/index187.js +20 -0
  16. package/dist/index188.js +12 -12
  17. package/dist/index189.js +10 -10
  18. package/dist/index190.js +12 -12
  19. package/dist/index191.js +21 -14
  20. package/dist/index192.js +757 -23
  21. package/dist/index193.js +1144 -759
  22. package/dist/index194.js +1234 -1144
  23. package/dist/index195.js +11248 -1205
  24. package/dist/index196.js +1135 -11213
  25. package/dist/index198.js +17 -17
  26. package/dist/index201.js +29 -29
  27. package/dist/index202.js +2 -2
  28. package/dist/index203.js +2 -2
  29. package/dist/index204.js +1 -1
  30. package/dist/index206.js +2 -2
  31. package/dist/index208.js +14 -14
  32. package/dist/index209.js +1 -1
  33. package/dist/index210.js +1 -1
  34. package/dist/index211.js +3 -3
  35. package/dist/index212.js +6 -6
  36. package/dist/index213.js +158 -30
  37. package/dist/index214.js +224 -112
  38. package/dist/index215.js +32 -31
  39. package/dist/index216.js +10 -26
  40. package/dist/index217.js +83 -31
  41. package/dist/index218.js +404 -48
  42. package/dist/index219.js +22 -43
  43. package/dist/index220.js +32 -3
  44. package/dist/index221.js +116 -9
  45. package/dist/index222.js +35 -18
  46. package/dist/index223.js +26 -10
  47. package/dist/index224.js +36 -10
  48. package/dist/index225.js +48 -36
  49. package/dist/index226.js +43 -21
  50. package/dist/index227.js +3 -87
  51. package/dist/index228.js +9 -407
  52. package/dist/index229.js +19 -22
  53. package/dist/index230.js +10 -127
  54. package/dist/index231.js +9 -37
  55. package/dist/index232.js +39 -80
  56. package/dist/index233.js +21 -20
  57. package/dist/index234.js +126 -19
  58. package/dist/index235.js +34 -16
  59. package/dist/index236.js +80 -20
  60. package/dist/index237.js +9 -9
  61. package/dist/index238.js +19 -160
  62. package/dist/index239.js +11 -11
  63. package/dist/index240.js +13 -15
  64. package/dist/index241.js +19 -198
  65. package/dist/index242.js +140 -49
  66. package/dist/index243.js +20 -34
  67. package/dist/index244.js +21 -39
  68. package/dist/index245.js +194 -156
  69. package/dist/index246.js +66 -224
  70. package/dist/index247.js +34 -37
  71. package/dist/index248.js +39 -9
  72. package/dist/index249.js +253 -22
  73. package/dist/index250.js +7 -21
  74. package/dist/index251.js +138 -20
  75. package/dist/index252.js +78 -831
  76. package/dist/index253.js +21 -701
  77. package/dist/index254.js +22 -176
  78. package/dist/index255.js +13 -15
  79. package/dist/index256.js +836 -20
  80. package/dist/index257.js +701 -19
  81. package/dist/index258.js +176 -3
  82. package/dist/index259.js +21 -186
  83. package/dist/index260.js +19 -132
  84. package/dist/index261.js +20 -1223
  85. package/dist/index262.js +3 -20
  86. package/dist/index263.js +186 -21
  87. package/dist/index264.js +132 -21
  88. package/dist/index265.js +1223 -29
  89. package/dist/index266.js +12 -12
  90. package/dist/index267.js +15 -13
  91. package/dist/index268.js +22 -2
  92. package/dist/index269.js +29 -2
  93. package/dist/index270.js +20 -3636
  94. package/dist/index271.js +20 -55
  95. package/dist/index272.js +2 -77
  96. package/dist/index273.js +2 -52
  97. package/dist/index274.js +2 -215
  98. package/dist/index275.js +79 -10
  99. package/dist/index276.js +3623 -44
  100. package/dist/index277.js +35 -41
  101. package/dist/index278.js +59 -36
  102. package/dist/index279.js +21 -44
  103. package/dist/index280.js +176 -687
  104. package/dist/index281.js +9 -41
  105. package/dist/index282.js +39 -46
  106. package/dist/index283.js +60 -10
  107. package/dist/index284.js +46 -697
  108. package/dist/index285.js +73 -818
  109. package/dist/index286.js +708 -235
  110. package/dist/index287.js +41 -7
  111. package/dist/index288.js +60 -134
  112. package/dist/index289.js +11 -83
  113. package/dist/index290.js +705 -2
  114. package/dist/index291.js +814 -73
  115. package/dist/index292.js +3 -54
  116. package/dist/index293.js +26 -25
  117. package/dist/index294.js +53 -21
  118. package/dist/index295.js +17 -13
  119. package/dist/index296.js +22 -16
  120. package/dist/index297.js +22 -17
  121. package/dist/index298.js +15 -22
  122. package/dist/index299.js +17 -3
  123. package/dist/index300.js +23 -27
  124. package/dist/index301.js +73 -256
  125. package/dist/index302.js +21 -5
  126. package/dist/index303.js +925 -130
  127. package/dist/index304.js +21 -72
  128. package/dist/index305.js +18 -85
  129. package/dist/index306.js +19 -28
  130. package/dist/index307.js +68 -15
  131. package/dist/index308.js +19 -75
  132. package/dist/index309.js +19 -4
  133. package/dist/index310.js +22 -2
  134. package/dist/index311.js +21 -82
  135. package/dist/index312.js +63 -53
  136. package/dist/index313.js +260 -4
  137. package/dist/index314.js +5 -4
  138. package/dist/index315.js +127 -166
  139. package/dist/index316.js +68 -58
  140. package/dist/index317.js +85 -73
  141. package/dist/index318.js +25 -75
  142. package/dist/index319.js +14 -20
  143. package/dist/index320.js +66 -926
  144. package/dist/index321.js +3 -21
  145. package/dist/index322.js +2 -20
  146. package/dist/index323.js +82 -19
  147. package/dist/index324.js +52 -68
  148. package/dist/index325.js +6 -19
  149. package/dist/index326.js +5 -19
  150. package/dist/index327.js +178 -21
  151. package/dist/index328.js +62 -21
  152. package/dist/index329.js +74 -62
  153. package/dist/index330.js +37 -1534
  154. package/dist/index331.js +1494 -346
  155. package/dist/index332.js +330 -2675
  156. package/dist/index333.js +2717 -72
  157. package/dist/index334.js +75 -3781
  158. package/dist/index335.js +3780 -48
  159. package/dist/index336.js +60 -15
  160. package/dist/index337.js +15 -84
  161. package/dist/index338.js +70 -188
  162. package/dist/index339.js +176 -220
  163. package/dist/index340.js +240 -31
  164. package/dist/index341.js +9 -8
  165. package/dist/index342.js +10 -13
  166. package/dist/index343.js +13 -54
  167. package/dist/index344.js +10 -12
  168. package/dist/index345.js +15 -12
  169. package/dist/index346.js +8 -57
  170. package/dist/index347.js +12 -51
  171. package/dist/index348.js +49 -25
  172. package/dist/index349.js +12 -2
  173. package/dist/index350.js +14 -5
  174. package/dist/index351.js +58 -2
  175. package/dist/index352.js +52 -23
  176. package/dist/index353.js +28 -38
  177. package/dist/index354.js +2 -2
  178. package/dist/index355.js +4 -10
  179. package/dist/index356.js +2 -20
  180. package/dist/index357.js +22 -9
  181. package/dist/index358.js +40 -9
  182. package/dist/index359.js +2 -17
  183. package/dist/index360.js +11 -2
  184. package/dist/index361.js +20 -9
  185. package/dist/index362.js +2 -10
  186. package/dist/index363.js +8 -13
  187. package/dist/index364.js +19 -18
  188. package/dist/index365.js +19 -56
  189. package/dist/index366.js +63 -28
  190. package/dist/index367.js +37 -7
  191. package/dist/index368.js +16 -49
  192. package/dist/index369.js +57 -7
  193. package/dist/index370.js +27 -10
  194. package/dist/index371.js +7 -7
  195. package/dist/index372.js +51 -27
  196. package/dist/index373.js +7 -2
  197. package/dist/index374.js +11 -69
  198. package/dist/index375.js +6 -166
  199. package/dist/index376.js +28 -20
  200. package/dist/index377.js +2 -20
  201. package/dist/index378.js +67 -61
  202. package/dist/index379.js +166 -36
  203. package/dist/index380.js +1 -1
  204. package/dist/index381.js +3 -3
  205. package/dist/index384.js +17 -13
  206. package/dist/index385.js +13 -7
  207. package/dist/index386.js +7 -12
  208. package/dist/index387.js +11 -4
  209. package/dist/index388.js +5 -33
  210. package/dist/index389.js +33 -31
  211. package/dist/index390.js +29 -26
  212. package/dist/index391.js +26 -59
  213. package/dist/index392.js +60 -16
  214. package/dist/index393.js +95 -98
  215. package/dist/index394.js +100 -90
  216. package/dist/index395.js +91 -98
  217. package/dist/index401.js +1 -1
  218. package/dist/index402.js +2 -2
  219. package/dist/index50.js +2 -2
  220. package/dist/index62.js +1 -1
  221. package/dist/index78.js +1 -1
  222. package/dist/index88.js +1 -1
  223. package/dist/index92.js +1 -1
  224. package/dist/index98.js +2 -2
  225. package/package.json +1 -1
  226. package/dist/index186.js +0 -1378
package/dist/index281.js CHANGED
@@ -1,44 +1,12 @@
1
- import { Node as o, mergeAttributes as i } from "./index270.js";
2
- var a = " ", d = " ", p = o.create({
3
- name: "paragraph",
4
- priority: 1e3,
5
- addOptions() {
6
- return {
7
- HTMLAttributes: {}
8
- };
9
- },
10
- group: "block",
11
- content: "inline*",
12
- parseHTML() {
13
- return [{ tag: "p" }];
14
- },
15
- renderHTML({ HTMLAttributes: r }) {
16
- return ["p", i(this.options.HTMLAttributes, r), 0];
17
- },
18
- parseMarkdown: (r, e) => {
19
- const t = r.tokens || [];
20
- if (t.length === 1 && t[0].type === "image")
21
- return e.parseChildren([t[0]]);
22
- const n = e.parseInline(t);
23
- return n.length === 1 && n[0].type === "text" && (n[0].text === a || n[0].text === d) ? e.createNode("paragraph", void 0, []) : e.createNode("paragraph", void 0, n);
24
- },
25
- renderMarkdown: (r, e) => {
26
- if (!r)
27
- return "";
28
- const t = Array.isArray(r.content) ? r.content : [];
29
- return t.length === 0 ? a : e.renderChildren(t);
30
- },
31
- addCommands() {
32
- return {
33
- setParagraph: () => ({ commands: r }) => r.setNode(this.name)
34
- };
35
- },
36
- addKeyboardShortcuts() {
37
- return {
38
- "Mod-Alt-0": () => this.editor.commands.setParagraph()
39
- };
40
- }
1
+ import { Node as n } from "./index276.js";
2
+ var o = n.create({
3
+ name: "doc",
4
+ topNode: !0,
5
+ content: "block+",
6
+ renderMarkdown: (e, r) => e.content ? r.renderChildren(e.content, `
7
+
8
+ `) : ""
41
9
  });
42
10
  export {
43
- p as Paragraph
11
+ o as Document
44
12
  };
package/dist/index282.js CHANGED
@@ -1,66 +1,59 @@
1
- import { Mark as r, markPasteRule as s, markInputRule as n, mergeAttributes as a } from "./index270.js";
2
- var i = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, d = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, o = r.create({
3
- name: "strike",
1
+ import { Node as l, mergeAttributes as c } from "./index276.js";
2
+ var f = l.create({
3
+ name: "hardBreak",
4
+ markdownTokenName: "br",
4
5
  addOptions() {
5
6
  return {
7
+ keepMarks: !0,
6
8
  HTMLAttributes: {}
7
9
  };
8
10
  },
11
+ inline: !0,
12
+ group: "inline",
13
+ selectable: !1,
14
+ linebreakReplacement: !0,
9
15
  parseHTML() {
10
- return [
11
- {
12
- tag: "s"
13
- },
14
- {
15
- tag: "del"
16
- },
17
- {
18
- tag: "strike"
19
- },
20
- {
21
- style: "text-decoration",
22
- consuming: !1,
23
- getAttrs: (e) => e.includes("line-through") ? {} : !1
24
- }
25
- ];
16
+ return [{ tag: "br" }];
26
17
  },
27
18
  renderHTML({ HTMLAttributes: e }) {
28
- return ["s", a(this.options.HTMLAttributes, e), 0];
19
+ return ["br", c(this.options.HTMLAttributes, e)];
29
20
  },
30
- markdownTokenName: "del",
31
- parseMarkdown: (e, t) => t.applyMark("strike", t.parseInline(e.tokens || [])),
32
- renderMarkdown: (e, t) => `~~${t.renderChildren(e)}~~`,
21
+ renderText() {
22
+ return `
23
+ `;
24
+ },
25
+ renderMarkdown: () => `
26
+ `,
27
+ parseMarkdown: () => ({
28
+ type: "hardBreak"
29
+ }),
33
30
  addCommands() {
34
31
  return {
35
- setStrike: () => ({ commands: e }) => e.setMark(this.name),
36
- toggleStrike: () => ({ commands: e }) => e.toggleMark(this.name),
37
- unsetStrike: () => ({ commands: e }) => e.unsetMark(this.name)
32
+ setHardBreak: () => ({ commands: e, chain: n, state: a, editor: s }) => e.first([
33
+ () => e.exitCode(),
34
+ () => e.command(() => {
35
+ const { selection: r, storedMarks: o } = a;
36
+ if (r.$from.parent.type.spec.isolating)
37
+ return !1;
38
+ const { keepMarks: i } = this.options, { splittableMarks: d } = s.extensionManager, t = o || r.$to.parentOffset && r.$from.marks();
39
+ return n().insertContent({ type: this.name }).command(({ tr: u, dispatch: k }) => {
40
+ if (k && t && i) {
41
+ const m = t.filter((p) => d.includes(p.type.name));
42
+ u.ensureMarks(m);
43
+ }
44
+ return !0;
45
+ }).run();
46
+ })
47
+ ])
38
48
  };
39
49
  },
40
50
  addKeyboardShortcuts() {
41
51
  return {
42
- "Mod-Shift-s": () => this.editor.commands.toggleStrike()
52
+ "Mod-Enter": () => this.editor.commands.setHardBreak(),
53
+ "Shift-Enter": () => this.editor.commands.setHardBreak()
43
54
  };
44
- },
45
- addInputRules() {
46
- return [
47
- n({
48
- find: i,
49
- type: this.type
50
- })
51
- ];
52
- },
53
- addPasteRules() {
54
- return [
55
- s({
56
- find: d,
57
- type: this.type
58
- })
59
- ];
60
55
  }
61
56
  });
62
57
  export {
63
- o as Strike,
64
- i as inputRegex,
65
- d as pasteRegex
58
+ f as HardBreak
66
59
  };
package/dist/index283.js CHANGED
@@ -1,13 +1,63 @@
1
- import { Node as t } from "./index270.js";
2
- var o = t.create({
3
- name: "text",
4
- group: "inline",
5
- parseMarkdown: (e) => ({
6
- type: "text",
7
- text: e.text || ""
8
- }),
9
- renderMarkdown: (e) => e.text || ""
1
+ import { Node as l, textblockTypeInputRule as i, mergeAttributes as a } from "./index276.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
+ }));
59
+ }
10
60
  });
11
61
  export {
12
- o as Text
62
+ d as Heading
13
63
  };