@quoreadmin/ui 1.10.11 → 1.10.13

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 (242) 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 +1 -1
  7. package/dist/index147.js +2 -2
  8. package/dist/index149.js +1 -1
  9. package/dist/index151.js +6 -6
  10. package/dist/index157.js +172 -163
  11. package/dist/index162.js +1 -1
  12. package/dist/index165.js +1 -1
  13. package/dist/index169.js +7 -7
  14. package/dist/index173.js +2 -2
  15. package/dist/index180.js +1151 -228
  16. package/dist/index182.js +14 -14
  17. package/dist/index183.js +266 -96
  18. package/dist/index184.js +106 -2
  19. package/dist/index185.js +2 -1376
  20. package/dist/index186.js +1378 -0
  21. package/dist/index188.js +12 -12
  22. package/dist/index189.js +10 -10
  23. package/dist/index190.js +12 -12
  24. package/dist/index191.js +14 -21
  25. package/dist/index192.js +23 -757
  26. package/dist/index193.js +759 -1144
  27. package/dist/index194.js +1155 -1234
  28. package/dist/index195.js +1205 -11248
  29. package/dist/index196.js +11212 -1134
  30. package/dist/index197.js +1228 -36
  31. package/dist/index199.js +5816 -1106
  32. package/dist/index200.js +209 -0
  33. package/dist/index201.js +19 -5922
  34. package/dist/index202.js +10 -199
  35. package/dist/index203.js +76 -33
  36. package/dist/index204.js +249 -14
  37. package/dist/index205.js +13678 -72
  38. package/dist/index206.js +27 -253
  39. package/dist/index207.js +48 -13669
  40. package/dist/index208.js +236 -25
  41. package/dist/index209.js +293 -45
  42. package/dist/index210.js +236 -179
  43. package/dist/index211.js +36 -311
  44. package/dist/index212.js +43 -294
  45. package/dist/index213.js +30 -158
  46. package/dist/index214.js +112 -224
  47. package/dist/index215.js +31 -32
  48. package/dist/index216.js +26 -10
  49. package/dist/index217.js +31 -83
  50. package/dist/index218.js +48 -404
  51. package/dist/index219.js +43 -22
  52. package/dist/index220.js +3 -32
  53. package/dist/index221.js +9 -116
  54. package/dist/index222.js +18 -35
  55. package/dist/index223.js +10 -26
  56. package/dist/index224.js +10 -36
  57. package/dist/index225.js +36 -48
  58. package/dist/index226.js +21 -43
  59. package/dist/index227.js +87 -3
  60. package/dist/index228.js +407 -9
  61. package/dist/index229.js +22 -19
  62. package/dist/index230.js +161 -10
  63. package/dist/index231.js +227 -9
  64. package/dist/index232.js +34 -36
  65. package/dist/index233.js +10 -21
  66. package/dist/index234.js +3618 -109
  67. package/dist/index235.js +49 -32
  68. package/dist/index236.js +70 -73
  69. package/dist/index237.js +52 -20
  70. package/dist/index238.js +215 -20
  71. package/dist/index239.js +10 -20
  72. package/dist/index240.js +57 -20
  73. package/dist/index241.js +61 -20
  74. package/dist/index242.js +48 -155
  75. package/dist/index243.js +75 -20
  76. package/dist/index244.js +725 -21
  77. package/dist/index245.js +33 -190
  78. package/dist/index246.js +60 -66
  79. package/dist/index247.js +10 -33
  80. package/dist/index248.js +699 -34
  81. package/dist/index249.js +801 -234
  82. package/dist/index250.js +161 -8
  83. package/dist/index251.js +20 -138
  84. package/dist/index252.js +20 -83
  85. package/dist/index253.js +12 -12
  86. package/dist/index254.js +198 -21
  87. package/dist/index255.js +69 -19
  88. package/dist/index256.js +34 -836
  89. package/dist/index257.js +24 -686
  90. package/dist/index258.js +22 -176
  91. package/dist/index259.js +6 -6
  92. package/dist/index260.js +7 -7
  93. package/dist/index261.js +836 -20
  94. package/dist/index262.js +702 -3
  95. package/dist/index263.js +172 -183
  96. package/dist/index264.js +18 -131
  97. package/dist/index265.js +20 -1223
  98. package/dist/index266.js +13 -11
  99. package/dist/index267.js +13 -15
  100. package/dist/index268.js +13 -15
  101. package/dist/index269.js +3 -29
  102. package/dist/index270.js +186 -19
  103. package/dist/index271.js +131 -18
  104. package/dist/index272.js +1223 -2
  105. package/dist/index273.js +127 -2
  106. package/dist/index274.js +20 -2
  107. package/dist/index275.js +21 -78
  108. package/dist/index276.js +22 -3636
  109. package/dist/index277.js +32 -49
  110. package/dist/index278.js +29 -77
  111. package/dist/index279.js +20 -52
  112. package/dist/index280.js +20 -215
  113. package/dist/index281.js +2 -10
  114. package/dist/index282.js +2 -57
  115. package/dist/index283.js +79 -60
  116. package/dist/index284.js +20 -54
  117. package/dist/index285.js +20 -75
  118. package/dist/index286.js +235 -708
  119. package/dist/index287.js +7 -41
  120. package/dist/index288.js +134 -60
  121. package/dist/index289.js +83 -11
  122. package/dist/index290.js +3 -705
  123. package/dist/index291.js +21 -814
  124. package/dist/index292.js +1534 -3
  125. package/dist/index293.js +382 -23
  126. package/dist/index294.js +2731 -54
  127. package/dist/index295.js +85 -25
  128. package/dist/index296.js +3792 -22
  129. package/dist/index297.js +59 -21
  130. package/dist/index298.js +15 -16
  131. package/dist/index299.js +84 -17
  132. package/dist/index3.js +2 -2
  133. package/dist/index300.js +201 -22
  134. package/dist/index301.js +241 -74
  135. package/dist/index302.js +53 -21
  136. package/dist/index303.js +54 -910
  137. package/dist/index304.js +17 -13
  138. package/dist/index305.js +13 -11
  139. package/dist/index306.js +15 -13
  140. package/dist/index307.js +14 -67
  141. package/dist/index308.js +14 -16
  142. package/dist/index309.js +21 -17
  143. package/dist/index310.js +261 -21
  144. package/dist/index311.js +5 -21
  145. package/dist/index312.js +139 -62
  146. package/dist/index313.js +67 -256
  147. package/dist/index314.js +86 -5
  148. package/dist/index315.js +26 -137
  149. package/dist/index316.js +14 -71
  150. package/dist/index317.js +71 -83
  151. package/dist/index318.js +3 -28
  152. package/dist/index319.js +2 -16
  153. package/dist/index320.js +78 -70
  154. package/dist/index321.js +52 -3
  155. package/dist/index322.js +6 -2
  156. package/dist/index323.js +4 -82
  157. package/dist/index324.js +177 -51
  158. package/dist/index325.js +62 -5
  159. package/dist/index326.js +75 -5
  160. package/dist/index327.js +74 -174
  161. package/dist/index328.js +21 -62
  162. package/dist/index329.js +934 -74
  163. package/dist/index330.js +21 -36
  164. package/dist/index331.js +20 -1534
  165. package/dist/index332.js +20 -386
  166. package/dist/index333.js +69 -2731
  167. package/dist/index334.js +19 -86
  168. package/dist/index335.js +19 -3792
  169. package/dist/index336.js +21 -59
  170. package/dist/index337.js +22 -15
  171. package/dist/index338.js +63 -84
  172. package/dist/index339.js +2 -202
  173. package/dist/index340.js +8 -245
  174. package/dist/index341.js +12 -9
  175. package/dist/index342.js +55 -10
  176. package/dist/index343.js +12 -14
  177. package/dist/index344.js +14 -10
  178. package/dist/index345.js +56 -15
  179. package/dist/index346.js +51 -8
  180. package/dist/index347.js +30 -12
  181. package/dist/index348.js +2 -55
  182. package/dist/index349.js +5 -12
  183. package/dist/index350.js +2 -14
  184. package/dist/index351.js +22 -57
  185. package/dist/index352.js +39 -50
  186. package/dist/index353.js +2 -31
  187. package/dist/index354.js +11 -2
  188. package/dist/index355.js +20 -5
  189. package/dist/index356.js +10 -2
  190. package/dist/index357.js +9 -22
  191. package/dist/index358.js +14 -38
  192. package/dist/index359.js +2 -2
  193. package/dist/index360.js +8 -10
  194. package/dist/index361.js +9 -19
  195. package/dist/index362.js +14 -2
  196. package/dist/index363.js +37 -9
  197. package/dist/index364.js +18 -19
  198. package/dist/index365.js +56 -19
  199. package/dist/index366.js +27 -62
  200. package/dist/index367.js +7 -37
  201. package/dist/index368.js +49 -16
  202. package/dist/index369.js +7 -57
  203. package/dist/index370.js +10 -27
  204. package/dist/index371.js +7 -7
  205. package/dist/index372.js +27 -51
  206. package/dist/index373.js +2 -7
  207. package/dist/index374.js +69 -11
  208. package/dist/index375.js +166 -6
  209. package/dist/index376.js +20 -28
  210. package/dist/index377.js +20 -2
  211. package/dist/index378.js +61 -67
  212. package/dist/index379.js +36 -166
  213. package/dist/index380.js +98 -28
  214. package/dist/index381.js +90 -10
  215. package/dist/index382.js +98 -4
  216. package/dist/index383.js +30 -3
  217. package/dist/index384.js +11 -17
  218. package/dist/index385.js +4 -13
  219. package/dist/index386.js +4 -7
  220. package/dist/index387.js +13 -12
  221. package/dist/index388.js +7 -5
  222. package/dist/index389.js +12 -33
  223. package/dist/index390.js +5 -31
  224. package/dist/index391.js +32 -27
  225. package/dist/index392.js +28 -58
  226. package/dist/index393.js +27 -97
  227. package/dist/index394.js +59 -99
  228. package/dist/index395.js +17 -91
  229. package/dist/index396.js +1 -1
  230. package/dist/index401.js +1 -1
  231. package/dist/index402.js +2 -2
  232. package/dist/index50.js +1 -1
  233. package/dist/index62.js +1 -1
  234. package/dist/index66.js +17 -17
  235. package/dist/index78.js +1 -1
  236. package/dist/index88.js +1 -1
  237. package/dist/index92.js +1 -1
  238. package/dist/index98.js +2 -2
  239. package/dist/src/components/room-details-popover/room-details-popover.d.ts +1 -1
  240. package/package.json +1 -1
  241. package/dist/index187.js +0 -20
  242. package/dist/index198.js +0 -46
package/dist/index241.js CHANGED
@@ -1,22 +1,63 @@
1
- import r from "./index275.js";
2
- import { openBlock as t, createElementBlock as o, mergeProps as n, createElementVNode as p } from "vue";
3
- var i = {
4
- name: "ChevronUpIcon",
5
- extends: r
6
- }, l = /* @__PURE__ */ p("path", {
7
- d: "M12.2097 10.4113C12.1057 10.4118 12.0027 10.3915 11.9067 10.3516C11.8107 10.3118 11.7237 10.2532 11.6506 10.1792L6.93602 5.46461L2.22139 10.1476C2.07272 10.244 1.89599 10.2877 1.71953 10.2717C1.54307 10.2556 1.3771 10.1808 1.24822 10.0593C1.11933 9.93766 1.035 9.77633 1.00874 9.6011C0.982477 9.42587 1.0158 9.2469 1.10338 9.09287L6.37701 3.81923C6.52533 3.6711 6.72639 3.58789 6.93602 3.58789C7.14565 3.58789 7.3467 3.6711 7.49502 3.81923L12.7687 9.09287C12.9168 9.24119 13 9.44225 13 9.65187C13 9.8615 12.9168 10.0626 12.7687 10.2109C12.616 10.3487 12.4151 10.4207 12.2097 10.4113Z",
8
- fill: "currentColor"
9
- }, null, -1), s = [l];
10
- function C(e, a, c, d, h, m) {
11
- return t(), o("svg", n({
12
- width: "14",
13
- height: "14",
14
- viewBox: "0 0 14 14",
15
- fill: "none",
16
- xmlns: "http://www.w3.org/2000/svg"
17
- }, e.pti()), s, 16);
18
- }
19
- i.render = C;
1
+ import { Node as l, textblockTypeInputRule as i, mergeAttributes as a } from "./index234.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
+ }
60
+ });
20
61
  export {
21
- i as default
62
+ d as Heading
22
63
  };
package/dist/index242.js CHANGED
@@ -1,163 +1,56 @@
1
- import y from "./index248.js";
2
- import m from "./index255.js";
3
- import b from "./index217.js";
4
- import v from "./index218.js";
5
- import h from "./index294.js";
6
- import { resolveComponent as r, resolveDirective as S, withDirectives as B, openBlock as n, createElementBlock as i, mergeProps as t, renderSlot as o, normalizeClass as d, createBlock as p, createCommentVNode as u, createElementVNode as I, toDisplayString as $ } from "vue";
7
- var k = {
8
- name: "BaseButton",
9
- extends: v,
10
- props: {
11
- label: {
12
- type: String,
13
- default: null
14
- },
15
- icon: {
16
- type: String,
17
- default: null
18
- },
19
- iconPos: {
20
- type: String,
21
- default: "left"
22
- },
23
- iconClass: {
24
- type: String,
25
- default: null
26
- },
27
- badge: {
28
- type: String,
29
- default: null
30
- },
31
- badgeClass: {
32
- type: String,
33
- default: null
34
- },
35
- badgeSeverity: {
36
- type: String,
37
- default: null
38
- },
39
- loading: {
40
- type: Boolean,
41
- default: !1
42
- },
43
- loadingIcon: {
44
- type: String,
45
- default: void 0
46
- },
47
- link: {
48
- type: Boolean,
49
- default: !1
50
- },
51
- severity: {
52
- type: String,
53
- default: null
54
- },
55
- raised: {
56
- type: Boolean,
57
- default: !1
58
- },
59
- rounded: {
60
- type: Boolean,
61
- default: !1
62
- },
63
- text: {
64
- type: Boolean,
65
- default: !1
66
- },
67
- outlined: {
68
- type: Boolean,
69
- default: !1
70
- },
71
- size: {
72
- type: String,
73
- default: null
74
- },
75
- plain: {
76
- type: Boolean,
77
- default: !1
78
- }
79
- },
80
- style: h,
81
- provide: function() {
1
+ import { Node as m, nodeInputRule as f, canInsertNode as h, isNodeSelection as T, mergeAttributes as y } from "./index234.js";
2
+ import { TextSelection as s, NodeSelection as N } from "./index249.js";
3
+ var M = m.create({
4
+ name: "horizontalRule",
5
+ addOptions() {
82
6
  return {
83
- $parentInstance: this
7
+ HTMLAttributes: {},
8
+ nextNodeType: "paragraph"
84
9
  };
85
- }
86
- }, C = {
87
- name: "Button",
88
- extends: k,
89
- inheritAttrs: !1,
90
- methods: {
91
- getPTOptions: function(l) {
92
- var s = l === "root" ? this.ptmi : this.ptm;
93
- return s(l, {
94
- context: {
95
- disabled: this.disabled
96
- }
97
- });
98
- }
99
10
  },
100
- computed: {
101
- disabled: function() {
102
- return this.$attrs.disabled || this.$attrs.disabled === "" || this.loading;
103
- },
104
- defaultAriaLabel: function() {
105
- return this.label ? this.label + (this.badge ? " " + this.badge : "") : this.$attrs.ariaLabel;
106
- },
107
- hasIcon: function() {
108
- return this.icon || this.$slots.icon;
109
- }
11
+ group: "block",
12
+ parseHTML() {
13
+ return [{ tag: "hr" }];
14
+ },
15
+ renderHTML({ HTMLAttributes: n }) {
16
+ return ["hr", y(this.options.HTMLAttributes, n)];
110
17
  },
111
- components: {
112
- SpinnerIcon: m,
113
- Badge: y
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
+ };
114
44
  },
115
- directives: {
116
- ripple: b
45
+ addInputRules() {
46
+ return [
47
+ f({
48
+ find: /^(?:---|—-|___\s|\*\*\*\s)$/,
49
+ type: this.type
50
+ })
51
+ ];
117
52
  }
118
- }, P = ["aria-label", "disabled", "data-p-severity"];
119
- function A(e, l, s, L, D, a) {
120
- var c = r("SpinnerIcon"), f = r("Badge"), g = S("ripple");
121
- return B((n(), i("button", t({
122
- class: e.cx("root"),
123
- type: "button",
124
- "aria-label": a.defaultAriaLabel,
125
- disabled: a.disabled
126
- }, a.getPTOptions("root"), {
127
- "data-p-severity": e.severity
128
- }), [o(e.$slots, "default", {}, function() {
129
- return [e.loading ? o(e.$slots, "loadingicon", {
130
- key: 0,
131
- class: d([e.cx("loadingIcon"), e.cx("icon")])
132
- }, function() {
133
- return [e.loadingIcon ? (n(), i("span", t({
134
- key: 0,
135
- class: [e.cx("loadingIcon"), e.cx("icon"), e.loadingIcon]
136
- }, e.ptm("loadingIcon")), null, 16)) : (n(), p(c, t({
137
- key: 1,
138
- class: [e.cx("loadingIcon"), e.cx("icon")],
139
- spin: ""
140
- }, e.ptm("loadingIcon")), null, 16, ["class"]))];
141
- }) : o(e.$slots, "icon", {
142
- key: 1,
143
- class: d([e.cx("icon")])
144
- }, function() {
145
- return [e.icon ? (n(), i("span", t({
146
- key: 0,
147
- class: [e.cx("icon"), e.icon, e.iconClass]
148
- }, e.ptm("icon")), null, 16)) : u("", !0)];
149
- }), I("span", t({
150
- class: e.cx("label")
151
- }, e.ptm("label")), $(e.label || " "), 17), e.badge ? (n(), p(f, t({
152
- key: 2,
153
- value: e.badge,
154
- class: e.badgeClass,
155
- severity: e.badgeSeverity,
156
- unstyled: e.unstyled
157
- }, e.ptm("badge")), null, 16, ["value", "class", "severity", "unstyled"])) : u("", !0)];
158
- })], 16, P)), [[g]]);
159
- }
160
- C.render = A;
53
+ });
161
54
  export {
162
- C as default
55
+ M as HorizontalRule
163
56
  };
package/dist/index243.js CHANGED
@@ -1,22 +1,77 @@
1
- import r from "./index275.js";
2
- import { openBlock as t, createElementBlock as o, mergeProps as n, createElementVNode as C } from "vue";
3
- var i = {
4
- name: "PlusIcon",
5
- extends: r
6
- }, l = /* @__PURE__ */ C("path", {
7
- d: "M7.67742 6.32258V0.677419C7.67742 0.497757 7.60605 0.325452 7.47901 0.198411C7.35197 0.0713707 7.17966 0 7 0C6.82034 0 6.64803 0.0713707 6.52099 0.198411C6.39395 0.325452 6.32258 0.497757 6.32258 0.677419V6.32258H0.677419C0.497757 6.32258 0.325452 6.39395 0.198411 6.52099C0.0713707 6.64803 0 6.82034 0 7C0 7.17966 0.0713707 7.35197 0.198411 7.47901C0.325452 7.60605 0.497757 7.67742 0.677419 7.67742H6.32258V13.3226C6.32492 13.5015 6.39704 13.6725 6.52358 13.799C6.65012 13.9255 6.82106 13.9977 7 14C7.17966 14 7.35197 13.9286 7.47901 13.8016C7.60605 13.6745 7.67742 13.5022 7.67742 13.3226V7.67742H13.3226C13.5022 7.67742 13.6745 7.60605 13.8016 7.47901C13.9286 7.35197 14 7.17966 14 7C13.9977 6.82106 13.9255 6.65012 13.799 6.52358C13.6725 6.39704 13.5015 6.32492 13.3226 6.32258H7.67742Z",
8
- fill: "currentColor"
9
- }, null, -1), p = [l];
10
- function s(e, a, c, d, m, h) {
11
- return t(), o("svg", n({
12
- width: "14",
13
- height: "14",
14
- viewBox: "0 0 14 14",
15
- fill: "none",
16
- xmlns: "http://www.w3.org/2000/svg"
17
- }, e.pti()), p, 16);
18
- }
19
- i.render = s;
1
+ import { Mark as s, markPasteRule as r, markInputRule as a, mergeAttributes as n } from "./index234.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",
4
+ addOptions() {
5
+ return {
6
+ HTMLAttributes: {}
7
+ };
8
+ },
9
+ parseHTML() {
10
+ return [
11
+ {
12
+ tag: "em"
13
+ },
14
+ {
15
+ tag: "i",
16
+ getAttrs: (t) => t.style.fontStyle !== "normal" && null
17
+ },
18
+ {
19
+ style: "font-style=normal",
20
+ clearMark: (t) => t.type.name === this.name
21
+ },
22
+ {
23
+ style: "font-style=italic"
24
+ }
25
+ ];
26
+ },
27
+ renderHTML({ HTMLAttributes: t }) {
28
+ return ["em", n(this.options.HTMLAttributes, t), 0];
29
+ },
30
+ addCommands() {
31
+ 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)
35
+ };
36
+ },
37
+ markdownTokenName: "em",
38
+ parseMarkdown: (t, e) => e.applyMark("italic", e.parseInline(t.tokens || [])),
39
+ renderMarkdown: (t, e) => `*${e.renderChildren(t)}*`,
40
+ addKeyboardShortcuts() {
41
+ return {
42
+ "Mod-i": () => this.editor.commands.toggleItalic(),
43
+ "Mod-I": () => this.editor.commands.toggleItalic()
44
+ };
45
+ },
46
+ addInputRules() {
47
+ return [
48
+ a({
49
+ find: i,
50
+ type: this.type
51
+ }),
52
+ a({
53
+ find: o,
54
+ type: this.type
55
+ })
56
+ ];
57
+ },
58
+ addPasteRules() {
59
+ return [
60
+ r({
61
+ find: d,
62
+ type: this.type
63
+ }),
64
+ r({
65
+ find: l,
66
+ type: this.type
67
+ })
68
+ ];
69
+ }
70
+ });
20
71
  export {
21
- i as default
72
+ m as Italic,
73
+ i as starInputRegex,
74
+ d as starPasteRegex,
75
+ o as underscoreInputRegex,
76
+ l as underscorePasteRegex
22
77
  };