@quoreadmin/ui 1.10.31 → 1.10.32

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 (136) hide show
  1. package/dist/index186.js +4 -4
  2. package/dist/index193.js +8 -8
  3. package/dist/index194.js +7 -0
  4. package/dist/index195.js +8 -8
  5. package/dist/index201.js +7 -7
  6. package/dist/index206.js +2 -2
  7. package/dist/index208.js +14 -14
  8. package/dist/index209.js +1 -1
  9. package/dist/index210.js +1 -1
  10. package/dist/index211.js +3 -3
  11. package/dist/index212.js +6 -6
  12. package/dist/index216.js +2 -2
  13. package/dist/index217.js +1 -1
  14. package/dist/index219.js +4 -4
  15. package/dist/index221.js +1 -1
  16. package/dist/index222.js +1 -1
  17. package/dist/index223.js +1 -1
  18. package/dist/index224.js +4 -4
  19. package/dist/index226.js +1 -1
  20. package/dist/index230.js +121 -155
  21. package/dist/index231.js +37 -19
  22. package/dist/index232.js +80 -20
  23. package/dist/index233.js +13 -15
  24. package/dist/index234.js +19 -198
  25. package/dist/index235.js +18 -68
  26. package/dist/index236.js +20 -34
  27. package/dist/index237.js +19 -39
  28. package/dist/index238.js +159 -159
  29. package/dist/index239.js +20 -228
  30. package/dist/index240.js +21 -36
  31. package/dist/index241.js +198 -9
  32. package/dist/index242.js +64 -121
  33. package/dist/index243.js +32 -36
  34. package/dist/index244.js +40 -80
  35. package/dist/index245.js +160 -19
  36. package/dist/index246.js +228 -20
  37. package/dist/index247.js +36 -19
  38. package/dist/index248.js +10 -20
  39. package/dist/index253.js +1 -1
  40. package/dist/index254.js +1 -1
  41. package/dist/index255.js +1 -1
  42. package/dist/index256.js +6 -6
  43. package/dist/index257.js +1 -1
  44. package/dist/index259.js +1 -1
  45. package/dist/index260.js +1 -1
  46. package/dist/index261.js +1 -1
  47. package/dist/index263.js +1 -1
  48. package/dist/index264.js +1 -1
  49. package/dist/index265.js +6 -6
  50. package/dist/index266.js +1 -1
  51. package/dist/index267.js +1 -1
  52. package/dist/index268.js +1 -1
  53. package/dist/index269.js +1 -1
  54. package/dist/index270.js +1 -1
  55. package/dist/index271.js +1 -1
  56. package/dist/index274.js +3706 -51
  57. package/dist/index275.js +58 -77
  58. package/dist/index276.js +83 -26
  59. package/dist/index277.js +52 -22
  60. package/dist/index278.js +215 -22
  61. package/dist/index279.js +9 -15
  62. package/dist/index280.js +55 -15
  63. package/dist/index281.js +59 -21
  64. package/dist/index282.js +39 -3694
  65. package/dist/index283.js +58 -37
  66. package/dist/index284.js +692 -47
  67. package/dist/index285.js +29 -34
  68. package/dist/index286.js +34 -185
  69. package/dist/index287.js +10 -9
  70. package/dist/index288.js +697 -49
  71. package/dist/index289.js +816 -57
  72. package/dist/index290.js +2 -54
  73. package/dist/index291.js +76 -78
  74. package/dist/index292.js +50 -724
  75. package/dist/index293.js +26 -47
  76. package/dist/index294.js +22 -64
  77. package/dist/index295.js +22 -11
  78. package/dist/index296.js +15 -704
  79. package/dist/index297.js +16 -819
  80. package/dist/index298.js +23 -3
  81. package/dist/index299.js +3 -27
  82. package/dist/index300.js +27 -2
  83. package/dist/index318.js +1534 -79
  84. package/dist/index319.js +386 -22
  85. package/dist/index320.js +2698 -902
  86. package/dist/index321.js +85 -21
  87. package/dist/index322.js +3798 -20
  88. package/dist/index323.js +59 -19
  89. package/dist/index324.js +15 -69
  90. package/dist/index325.js +84 -19
  91. package/dist/index326.js +201 -18
  92. package/dist/index327.js +246 -22
  93. package/dist/index328.js +78 -21
  94. package/dist/index329.js +22 -63
  95. package/dist/index330.js +930 -32
  96. package/dist/index331.js +22 -1534
  97. package/dist/index332.js +20 -386
  98. package/dist/index333.js +20 -2731
  99. package/dist/index334.js +67 -84
  100. package/dist/index335.js +19 -3798
  101. package/dist/index336.js +19 -60
  102. package/dist/index337.js +22 -15
  103. package/dist/index338.js +21 -83
  104. package/dist/index339.js +62 -201
  105. package/dist/index340.js +31 -240
  106. package/dist/index341.js +9 -8
  107. package/dist/index342.js +10 -13
  108. package/dist/index343.js +13 -54
  109. package/dist/index344.js +10 -12
  110. package/dist/index345.js +15 -12
  111. package/dist/index346.js +8 -57
  112. package/dist/index347.js +12 -51
  113. package/dist/index348.js +49 -25
  114. package/dist/index349.js +12 -2
  115. package/dist/index350.js +14 -5
  116. package/dist/index351.js +58 -2
  117. package/dist/index352.js +52 -23
  118. package/dist/index353.js +28 -38
  119. package/dist/index354.js +2 -2
  120. package/dist/index355.js +4 -10
  121. package/dist/index356.js +2 -20
  122. package/dist/index357.js +22 -9
  123. package/dist/index358.js +40 -9
  124. package/dist/index359.js +2 -17
  125. package/dist/index360.js +11 -2
  126. package/dist/index361.js +20 -9
  127. package/dist/index362.js +2 -10
  128. package/dist/index363.js +8 -13
  129. package/dist/index376.js +1 -1
  130. package/dist/index377.js +1 -1
  131. package/dist/index378.js +1 -1
  132. package/dist/index392.js +100 -16
  133. package/dist/index393.js +90 -100
  134. package/dist/index394.js +98 -91
  135. package/dist/index395.js +16 -97
  136. package/package.json +1 -1
package/dist/index283.js CHANGED
@@ -1,62 +1,83 @@
1
- import { Node as c, wrappingInputRule as p, mergeAttributes as k } from "./index282.js";
2
- import { createElement as s } from "./index337.js";
3
- var m = /^\s*>\s$/, q = c.create({
4
- name: "blockquote",
1
+ import { Mark as s, markPasteRule as r, markInputRule as a, mergeAttributes as n } from "./index274.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",
5
4
  addOptions() {
6
5
  return {
7
6
  HTMLAttributes: {}
8
7
  };
9
8
  },
10
- content: "block+",
11
- group: "block",
12
- defining: !0,
13
9
  parseHTML() {
14
- return [{ tag: "blockquote" }];
15
- },
16
- renderHTML({ HTMLAttributes: t }) {
17
- return /* @__PURE__ */ s("blockquote", { ...k(this.options.HTMLAttributes, t), children: /* @__PURE__ */ s("slot", {}) });
18
- },
19
- parseMarkdown: (t, e) => {
20
- var r;
21
- const n = (r = e.parseBlockChildren) != null ? r : e.parseChildren;
22
- return e.createNode("blockquote", void 0, n(t.tokens || []));
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"
24
+ }
25
+ ];
23
26
  },
24
- renderMarkdown: (t, e) => {
25
- if (!t.content)
26
- return "";
27
- const r = ">", n = [];
28
- return t.content.forEach((o, a) => {
29
- var i, u;
30
- const d = ((u = (i = e.renderChild) == null ? void 0 : i.call(e, o, a)) != null ? u : e.renderChildren([o])).split(`
31
- `).map((l) => l.trim() === "" ? r : `${r} ${l}`);
32
- n.push(d.join(`
33
- `));
34
- }), n.join(`
35
- ${r}
36
- `);
27
+ renderHTML({ HTMLAttributes: e }) {
28
+ return ["em", n(this.options.HTMLAttributes, e), 0];
37
29
  },
38
30
  addCommands() {
39
31
  return {
40
- setBlockquote: () => ({ commands: t }) => t.wrapIn(this.name),
41
- toggleBlockquote: () => ({ commands: t }) => t.toggleWrap(this.name),
42
- unsetBlockquote: () => ({ commands: t }) => t.lift(this.name)
32
+ setItalic: () => ({ commands: e }) => e.setMark(this.name),
33
+ toggleItalic: () => ({ commands: e }) => e.toggleMark(this.name),
34
+ unsetItalic: () => ({ commands: e }) => e.unsetMark(this.name)
43
35
  };
44
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>"
43
+ }
44
+ },
45
+ renderMarkdown: (e, t) => `*${t.renderChildren(e)}*`,
45
46
  addKeyboardShortcuts() {
46
47
  return {
47
- "Mod-Shift-b": () => this.editor.commands.toggleBlockquote()
48
+ "Mod-i": () => this.editor.commands.toggleItalic(),
49
+ "Mod-I": () => this.editor.commands.toggleItalic()
48
50
  };
49
51
  },
50
52
  addInputRules() {
51
53
  return [
52
- p({
53
- find: m,
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,
54
72
  type: this.type
55
73
  })
56
74
  ];
57
75
  }
58
76
  });
59
77
  export {
60
- q as Blockquote,
61
- m as inputRegex
78
+ m as Italic,
79
+ i as starInputRegex,
80
+ o as starPasteRegex,
81
+ d as underscoreInputRegex,
82
+ l as underscorePasteRegex
62
83
  };