@quoreadmin/ui 1.4.7 → 1.4.8

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 (180) hide show
  1. package/dist/index164.js +14 -14
  2. package/dist/index165.js +3 -3
  3. package/dist/index168.js +4 -4
  4. package/dist/index175.js +2 -2
  5. package/dist/index177.js +9 -9
  6. package/dist/index181.js +17 -17
  7. package/dist/index184.js +25 -25
  8. package/dist/index185.js +2 -2
  9. package/dist/index186.js +2 -2
  10. package/dist/index187.js +1 -1
  11. package/dist/index189.js +2 -2
  12. package/dist/index191.js +14 -14
  13. package/dist/index192.js +1 -1
  14. package/dist/index193.js +1 -1
  15. package/dist/index194.js +3 -3
  16. package/dist/index195.js +6 -6
  17. package/dist/index196.js +84 -29
  18. package/dist/index197.js +400 -109
  19. package/dist/index198.js +22 -36
  20. package/dist/index199.js +33 -26
  21. package/dist/index200.js +111 -31
  22. package/dist/index201.js +36 -9
  23. package/dist/index202.js +26 -19
  24. package/dist/index203.js +36 -10
  25. package/dist/index204.js +9 -10
  26. package/dist/index205.js +18 -50
  27. package/dist/index206.js +10 -43
  28. package/dist/index207.js +10 -4
  29. package/dist/index208.js +48 -36
  30. package/dist/index209.js +43 -21
  31. package/dist/index210.js +3 -87
  32. package/dist/index211.js +35 -403
  33. package/dist/index212.js +21 -22
  34. package/dist/index213.js +3 -3
  35. package/dist/index217.js +3 -3
  36. package/dist/index218.js +1 -1
  37. package/dist/index22.js +15 -14
  38. package/dist/index220.js +1 -1
  39. package/dist/index221.js +21 -126
  40. package/dist/index222.js +21 -37
  41. package/dist/index223.js +20 -80
  42. package/dist/index224.js +836 -20
  43. package/dist/index225.js +701 -19
  44. package/dist/index226.js +175 -19
  45. package/dist/index227.js +10 -10
  46. package/dist/index228.js +19 -160
  47. package/dist/index229.js +22 -228
  48. package/dist/index230.js +19 -36
  49. package/dist/index231.js +20 -10
  50. package/dist/index232.js +3 -22
  51. package/dist/index233.js +186 -21
  52. package/dist/index234.js +132 -19
  53. package/dist/index235.js +1131 -744
  54. package/dist/index236.js +104 -679
  55. package/dist/index237.js +20 -176
  56. package/dist/index238.js +11 -11
  57. package/dist/index239.js +15 -13
  58. package/dist/index240.js +37 -19
  59. package/dist/index241.js +29 -3
  60. package/dist/index242.js +19 -186
  61. package/dist/index243.js +18 -131
  62. package/dist/index244.js +2 -1223
  63. package/dist/index245.js +2 -20
  64. package/dist/index246.js +3632 -22
  65. package/dist/index247.js +55 -22
  66. package/dist/index248.js +77 -29
  67. package/dist/index249.js +52 -20
  68. package/dist/index250.js +215 -20
  69. package/dist/index251.js +10 -2
  70. package/dist/index252.js +57 -2
  71. package/dist/index253.js +46 -3617
  72. package/dist/index254.js +35 -36
  73. package/dist/index255.js +28 -30
  74. package/dist/index256.js +699 -28
  75. package/dist/index257.js +21 -197
  76. package/dist/index258.js +63 -9
  77. package/dist/index259.js +8 -54
  78. package/dist/index260.js +695 -51
  79. package/dist/index261.js +815 -49
  80. package/dist/index262.js +160 -74
  81. package/dist/index263.js +212 -707
  82. package/dist/index264.js +37 -39
  83. package/dist/index265.js +10 -64
  84. package/dist/index266.js +79 -10
  85. package/dist/index267.js +20 -705
  86. package/dist/index268.js +20 -820
  87. package/dist/index274.js +1 -1
  88. package/dist/index281.js +3 -2
  89. package/dist/index282.js +27 -3
  90. package/dist/index283.js +1515 -24
  91. package/dist/index284.js +366 -215
  92. package/dist/index285.js +2729 -4
  93. package/dist/index286.js +83 -131
  94. package/dist/index287.js +3768 -66
  95. package/dist/index288.js +56 -83
  96. package/dist/index289.js +75 -25
  97. package/dist/index290.js +21 -8
  98. package/dist/index291.js +926 -66
  99. package/dist/index292.js +21 -3
  100. package/dist/index293.js +20 -2
  101. package/dist/index294.js +19 -82
  102. package/dist/index295.js +66 -51
  103. package/dist/index296.js +19 -6
  104. package/dist/index297.js +19 -5
  105. package/dist/index298.js +21 -178
  106. package/dist/index299.js +21 -62
  107. package/dist/index300.js +62 -74
  108. package/dist/index301.js +2 -79
  109. package/dist/index302.js +15 -22
  110. package/dist/index303.js +72 -923
  111. package/dist/index304.js +202 -22
  112. package/dist/index305.js +246 -20
  113. package/dist/index306.js +234 -19
  114. package/dist/index307.js +5 -68
  115. package/dist/index308.js +133 -18
  116. package/dist/index309.js +68 -19
  117. package/dist/index310.js +85 -20
  118. package/dist/index311.js +28 -21
  119. package/dist/index312.js +8 -62
  120. package/dist/index313.js +64 -1507
  121. package/dist/index314.js +3 -385
  122. package/dist/index315.js +2 -2731
  123. package/dist/index316.js +77 -80
  124. package/dist/index317.js +53 -3769
  125. package/dist/index318.js +4 -58
  126. package/dist/index319.js +5 -15
  127. package/dist/index320.js +166 -71
  128. package/dist/index321.js +57 -196
  129. package/dist/index322.js +75 -246
  130. package/dist/index326.js +1 -1
  131. package/dist/index331.js +1 -1
  132. package/dist/index336.js +2 -2
  133. package/dist/index341.js +1 -1
  134. package/dist/index342.js +2 -2
  135. package/dist/index347.js +19 -20
  136. package/dist/index348.js +19 -55
  137. package/dist/index349.js +63 -28
  138. package/dist/index350.js +37 -7
  139. package/dist/index351.js +18 -49
  140. package/dist/index352.js +56 -6
  141. package/dist/index353.js +27 -10
  142. package/dist/index354.js +7 -7
  143. package/dist/index355.js +51 -27
  144. package/dist/index356.js +6 -2
  145. package/dist/index357.js +11 -69
  146. package/dist/index358.js +6 -166
  147. package/dist/index359.js +28 -20
  148. package/dist/index360.js +2 -20
  149. package/dist/index361.js +67 -61
  150. package/dist/index362.js +166 -36
  151. package/dist/index363.js +17 -31
  152. package/dist/index364.js +100 -10
  153. package/dist/index365.js +90 -3
  154. package/dist/index366.js +98 -4
  155. package/dist/index367.js +30 -12
  156. package/dist/index368.js +11 -7
  157. package/dist/index369.js +3 -11
  158. package/dist/index370.js +3 -4
  159. package/dist/index371.js +13 -33
  160. package/dist/index372.js +7 -31
  161. package/dist/index373.js +12 -28
  162. package/dist/index374.js +5 -61
  163. package/dist/index375.js +33 -17
  164. package/dist/index376.js +29 -99
  165. package/dist/index377.js +28 -91
  166. package/dist/index378.js +59 -96
  167. package/dist/index379.js +1 -1
  168. package/dist/index384.js +1 -1
  169. package/dist/index385.js +2 -2
  170. package/dist/index96.js +23 -19
  171. package/dist/src/components/comment/comment.d.ts +9 -0
  172. package/dist/src/components/comment/comment.stories.d.ts +9 -0
  173. package/dist/src/components/comment-section/comment-section.d.ts +18 -0
  174. package/dist/src/components/comment-section/comment-section.stories.d.ts +27 -0
  175. package/dist/src/components/file-upload/file-upload.d.ts +9 -0
  176. package/dist/src/components/file-upload/file-upload.stories.d.ts +45 -0
  177. package/dist/src/components/room-details-popover/room-details-popover.d.ts +18 -0
  178. package/dist/src/components/wysiwyg/wysiwyg.d.ts +9 -0
  179. package/dist/src/components/wysiwyg/wysiwyg.stories.d.ts +9 -0
  180. package/package.json +1 -1
package/dist/index254.js CHANGED
@@ -1,57 +1,56 @@
1
- import { Node as a, wrappingInputRule as c, mergeAttributes as d } from "./index253.js";
2
- import { createElement as i } from "./index319.js";
3
- var l = /^\s*>\s$/, g = a.create({
4
- name: "blockquote",
1
+ import { Node as m, nodeInputRule as f, canInsertNode as h, isNodeSelection as T, mergeAttributes as y } from "./index246.js";
2
+ import { TextSelection as s, NodeSelection as N } from "./index261.js";
3
+ var M = m.create({
4
+ name: "horizontalRule",
5
5
  addOptions() {
6
6
  return {
7
- HTMLAttributes: {}
7
+ HTMLAttributes: {},
8
+ nextNodeType: "paragraph"
8
9
  };
9
10
  },
10
- content: "block+",
11
11
  group: "block",
12
- defining: !0,
13
12
  parseHTML() {
14
- return [{ tag: "blockquote" }];
13
+ return [{ tag: "hr" }];
15
14
  },
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
- `);
15
+ renderHTML({ HTMLAttributes: n }) {
16
+ return ["hr", y(this.options.HTMLAttributes, n)];
32
17
  },
18
+ markdownTokenName: "hr",
19
+ parseMarkdown: (n, o) => o.createNode("horizontalRule"),
20
+ renderMarkdown: () => "---",
33
21
  addCommands() {
34
22
  return {
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()
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
43
  };
44
44
  },
45
45
  addInputRules() {
46
46
  return [
47
- c({
48
- find: l,
47
+ f({
48
+ find: /^(?:---|—-|___\s|\*\*\*\s)$/,
49
49
  type: this.type
50
50
  })
51
51
  ];
52
52
  }
53
53
  });
54
54
  export {
55
- g as Blockquote,
56
- l as inputRegex
55
+ M as HorizontalRule
57
56
  };
package/dist/index255.js CHANGED
@@ -1,7 +1,6 @@
1
- import { Mark as a, markPasteRule as r, markInputRule as s, mergeAttributes as o } from "./index253.js";
2
- import { createElement as n } from "./index319.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",
1
+ import { Mark as s, markPasteRule as r, markInputRule as a, mergeAttributes as n } from "./index246.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",
5
4
  addOptions() {
6
5
  return {
7
6
  HTMLAttributes: {}
@@ -10,49 +9,48 @@ var d = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, l = /(?:^|\s)(\*
10
9
  parseHTML() {
11
10
  return [
12
11
  {
13
- tag: "strong"
12
+ tag: "em"
14
13
  },
15
14
  {
16
- tag: "b",
17
- getAttrs: (t) => t.style.fontWeight !== "normal" && null
15
+ tag: "i",
16
+ getAttrs: (t) => t.style.fontStyle !== "normal" && null
18
17
  },
19
18
  {
20
- style: "font-weight=400",
19
+ style: "font-style=normal",
21
20
  clearMark: (t) => t.type.name === this.name
22
21
  },
23
22
  {
24
- style: "font-weight",
25
- getAttrs: (t) => /^(bold(er)?|[5-9]\d{2,})$/.test(t) && null
23
+ style: "font-style=italic"
26
24
  }
27
25
  ];
28
26
  },
29
27
  renderHTML({ HTMLAttributes: t }) {
30
- return /* @__PURE__ */ n("strong", { ...o(this.options.HTMLAttributes, t), children: /* @__PURE__ */ n("slot", {}) });
28
+ return ["em", n(this.options.HTMLAttributes, t), 0];
31
29
  },
32
- markdownTokenName: "strong",
33
- parseMarkdown: (t, e) => e.applyMark("bold", e.parseInline(t.tokens || [])),
34
- renderMarkdown: (t, e) => `**${e.renderChildren(t)}**`,
35
30
  addCommands() {
36
31
  return {
37
- setBold: () => ({ commands: t }) => t.setMark(this.name),
38
- toggleBold: () => ({ commands: t }) => t.toggleMark(this.name),
39
- unsetBold: () => ({ commands: t }) => t.unsetMark(this.name)
32
+ setItalic: () => ({ commands: t }) => t.setMark(this.name),
33
+ toggleItalic: () => ({ commands: t }) => t.toggleMark(this.name),
34
+ unsetItalic: () => ({ commands: t }) => t.unsetMark(this.name)
40
35
  };
41
36
  },
37
+ markdownTokenName: "em",
38
+ parseMarkdown: (t, e) => e.applyMark("italic", e.parseInline(t.tokens || [])),
39
+ renderMarkdown: (t, e) => `*${e.renderChildren(t)}*`,
42
40
  addKeyboardShortcuts() {
43
41
  return {
44
- "Mod-b": () => this.editor.commands.toggleBold(),
45
- "Mod-B": () => this.editor.commands.toggleBold()
42
+ "Mod-i": () => this.editor.commands.toggleItalic(),
43
+ "Mod-I": () => this.editor.commands.toggleItalic()
46
44
  };
47
45
  },
48
46
  addInputRules() {
49
47
  return [
50
- s({
51
- find: d,
48
+ a({
49
+ find: i,
52
50
  type: this.type
53
51
  }),
54
- s({
55
- find: i,
52
+ a({
53
+ find: o,
56
54
  type: this.type
57
55
  })
58
56
  ];
@@ -60,20 +58,20 @@ var d = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, l = /(?:^|\s)(\*
60
58
  addPasteRules() {
61
59
  return [
62
60
  r({
63
- find: l,
61
+ find: d,
64
62
  type: this.type
65
63
  }),
66
64
  r({
67
- find: u,
65
+ find: l,
68
66
  type: this.type
69
67
  })
70
68
  ];
71
69
  }
72
70
  });
73
71
  export {
74
- p as Bold,
75
- d as starInputRegex,
76
- l as starPasteRegex,
77
- i as underscoreInputRegex,
78
- u as underscorePasteRegex
72
+ m as Italic,
73
+ i as starInputRegex,
74
+ d as starPasteRegex,
75
+ o as underscoreInputRegex,
76
+ l as underscorePasteRegex
79
77
  };