@logora/debate 0.4.30 → 0.4.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 (146) hide show
  1. package/dist/assets/components/action/back_link/BackLink.module-B9Ok2t4H.css +1 -0
  2. package/dist/assets/components/action/button/Button.module-D7nbgOES.css +1 -0
  3. package/dist/assets/components/action/icon_text_link/IconTextLink.module-CZKufK9Y.css +1 -0
  4. package/dist/assets/components/argument/argument/Argument.module-CC40BY1L.css +1 -0
  5. package/dist/assets/components/argument/argument/ReplyFooter.module-CoC9dY8T.css +1 -0
  6. package/dist/assets/components/auth/sso_form/SSOForm.module-DOw9cmCF.css +1 -0
  7. package/dist/assets/components/consultation/consultation_box/ConsultationBox.module-97r47y_e.css +1 -0
  8. package/dist/assets/components/debate/debate_box/DebateBox.module-emnqIGNF.css +1 -0
  9. package/dist/assets/components/dialog/dialog_box/DialogBox.module-ZoM8d2Ly.css +1 -0
  10. package/dist/assets/components/dialog/modal/Modal.module-Dt4SWx6U.css +1 -0
  11. package/dist/assets/components/dialog/toast/Toast.module-CW6j5xe7.css +1 -0
  12. package/dist/assets/components/dialog/tooltip/Tooltip.module-bQbmPiMf.css +1 -0
  13. package/dist/assets/components/embed/embed_header/EmbedHeader.module-C8RPiVBp.css +1 -0
  14. package/dist/assets/components/follow/follow_button/FollowButton.module-BjwLVTeb.css +1 -0
  15. package/dist/assets/components/gamification/badge_box/BadgeBox.module-DWqqtICw.css +1 -0
  16. package/dist/assets/components/gamification/point_box/{PointBox.module-BlHdQyht.css → PointBox.module-Dj6cCgSB.css} +1 -1
  17. package/dist/assets/components/information/information_box/InformationBox.module-DJLT957y.css +1 -0
  18. package/dist/assets/components/input/text_editor/TextEditor.module-KPtqT1Y6.css +1 -0
  19. package/dist/assets/components/input/toggle_position/TogglePosition.module-H4gGmJ0V.css +1 -0
  20. package/dist/assets/components/list/paginated_list/action_bar/ActionBar.module-BDMBrj2Y.css +1 -0
  21. package/dist/assets/components/navigation/tabs/{Tabs.module-B4sJ1pVW.css → Tabs.module-50P6bk0B.css} +1 -1
  22. package/dist/assets/components/notification/notification_item/NotificationItem.module-BQcDopYB.css +1 -0
  23. package/dist/assets/components/notification/notification_menu/NotificationMenu.module-DrCrfzVk.css +1 -0
  24. package/dist/assets/components/progress/progress_bar/ProgressBar.module-DoCH9Qoo.css +1 -0
  25. package/dist/assets/components/proposal/proposal_box/ProposalBox.module-D1ccjSLm.css +1 -0
  26. package/dist/assets/components/section/section_box/SectionBox.module-DF7k7Vxq.css +1 -0
  27. package/dist/assets/components/skeleton/user_content_skeleton/UserContentSkeleton.module-d4r3QpYe.css +1 -0
  28. package/dist/assets/components/source/context_source_box/ContextSourceBox.module-doiSb_NR.css +1 -0
  29. package/dist/assets/components/source/context_source_list/ContextSourceList.module-Df4z4DN-.css +1 -0
  30. package/dist/assets/components/source/source_box/SourceBox.module-CQOBgJ5n.css +1 -0
  31. package/dist/assets/components/suggestion/suggestion_banner/SuggestionBanner.module-P95xqaUA.css +1 -0
  32. package/dist/assets/components/suggestion/suggestion_box/SuggestionBox.module-CE_Wvk-K.css +1 -0
  33. package/dist/assets/components/suggestion/suggestion_input/SuggestionInput.module-r5N57bDp.css +1 -0
  34. package/dist/assets/components/summary/argument_summary_box/ArgumentSummaryBox.module-EDxcqwRa.css +1 -0
  35. package/dist/assets/components/summary/keyword_box/KeywordBox.module-yNHAvcRh.css +1 -0
  36. package/dist/assets/components/summary/summary_box/SummaryBox.module-Bu-AnMIG.css +1 -0
  37. package/dist/assets/components/text/read_more/ReadMore.module-Bs-YaspR.css +1 -0
  38. package/dist/assets/components/user/author_box/AuthorBox.module-B8Sl2v33.css +1 -0
  39. package/dist/assets/components/user/onboarding_modal/OnboardingModal.module-CTpt3xSh.css +1 -0
  40. package/dist/assets/components/user/user_box/UserBox.module-DMFhZDAH.css +1 -0
  41. package/dist/assets/components/user/user_box_small/UserBoxSmall.module-D4Ut5xmS.css +1 -0
  42. package/dist/assets/components/user_content/content_footer/ContentFooter.module-9A9E8k5l.css +1 -0
  43. package/dist/assets/components/user_content/content_header/ContentHeader.module-CXO2IRui.css +1 -0
  44. package/dist/assets/components/user_content/summary_content_box/SummaryContentBox.module-CBlL2Xii.css +1 -0
  45. package/dist/assets/components/user_content/use_report_content/ReportModal.module-mjFuOdmL.css +1 -0
  46. package/dist/assets/components/vote/suggestion_vote_box/SuggestionVoteBox.module-CKFriPV5.css +1 -0
  47. package/dist/assets/components/vote/vote_box/VoteBox.module-Bv7WY_vr.css +1 -0
  48. package/dist/assets/components/vote/vote_button/VoteButton.module-DqD79xv_.css +1 -0
  49. package/dist/components/action/back_link/BackLink.module.scss.js +1 -1
  50. package/dist/components/action/button/Button.module.scss.js +9 -9
  51. package/dist/components/action/icon_text_link/IconTextLink.module.scss.js +2 -2
  52. package/dist/components/argument/argument/Argument.module.scss.js +40 -40
  53. package/dist/components/argument/argument/ReplyFooter.module.scss.js +8 -8
  54. package/dist/components/auth/sso_form/SSOForm.module.scss.js +20 -20
  55. package/dist/components/consultation/consultation_box/ConsultationBox.module.scss.js +15 -15
  56. package/dist/components/debate/debate_box/DebateBox.module.scss.js +20 -20
  57. package/dist/components/dialog/dialog_box/DialogBox.module.scss.js +14 -14
  58. package/dist/components/dialog/modal/Modal.module.scss.js +9 -9
  59. package/dist/components/dialog/toast/Toast.module.scss.js +18 -18
  60. package/dist/components/dialog/tooltip/Tooltip.module.scss.js +8 -8
  61. package/dist/components/embed/embed_header/EmbedHeader.module.scss.js +18 -18
  62. package/dist/components/follow/follow_button/FollowButton.module.scss.js +1 -1
  63. package/dist/components/gamification/badge_box/BadgeBox.module.scss.js +18 -18
  64. package/dist/components/gamification/point_box/PointBox.module.scss.js +1 -1
  65. package/dist/components/information/information_box/InformationBox.module.scss.js +4 -4
  66. package/dist/components/input/text_editor/TextEditor.module.scss.js +28 -28
  67. package/dist/components/input/text_editor/plugins/ToolbarPlugin.js +136 -148
  68. package/dist/components/input/toggle_position/TogglePosition.module.scss.js +4 -4
  69. package/dist/components/list/paginated_list/action_bar/ActionBar.module.scss.js +14 -14
  70. package/dist/components/navigation/tabs/Tabs.module.scss.js +8 -8
  71. package/dist/components/notification/notification_item/NotificationItem.module.scss.js +5 -5
  72. package/dist/components/notification/notification_menu/NotificationMenu.module.scss.js +2 -2
  73. package/dist/components/progress/progress_bar/ProgressBar.module.scss.js +4 -4
  74. package/dist/components/proposal/proposal_box/ProposalBox.module.scss.js +11 -11
  75. package/dist/components/section/section_box/SectionBox.module.scss.js +12 -12
  76. package/dist/components/skeleton/user_content_skeleton/UserContentSkeleton.module.scss.js +4 -4
  77. package/dist/components/source/context_source_box/ContextSourceBox.module.scss.js +4 -4
  78. package/dist/components/source/context_source_list/ContextSourceList.module.scss.js +5 -5
  79. package/dist/components/source/source_box/SourceBox.module.scss.js +8 -8
  80. package/dist/components/suggestion/suggestion_banner/SuggestionBanner.module.scss.js +5 -5
  81. package/dist/components/suggestion/suggestion_box/SuggestionBox.module.scss.js +1 -1
  82. package/dist/components/suggestion/suggestion_input/SuggestionInput.module.scss.js +9 -9
  83. package/dist/components/summary/argument_summary_box/ArgumentSummaryBox.module.scss.js +10 -10
  84. package/dist/components/summary/keyword_box/KeywordBox.module.scss.js +1 -1
  85. package/dist/components/summary/summary_box/SummaryBox.module.scss.js +8 -8
  86. package/dist/components/text/read_more/ReadMore.module.scss.js +4 -4
  87. package/dist/components/user/author_box/AuthorBox.module.scss.js +24 -24
  88. package/dist/components/user/onboarding_modal/OnboardingModal.module.scss.js +16 -16
  89. package/dist/components/user/user_box/UserBox.module.scss.js +9 -9
  90. package/dist/components/user/user_box_small/UserBoxSmall.module.scss.js +6 -6
  91. package/dist/components/user_content/content_footer/ContentFooter.module.scss.js +11 -11
  92. package/dist/components/user_content/content_header/ContentHeader.module.scss.js +22 -22
  93. package/dist/components/user_content/summary_content_box/SummaryContentBox.module.scss.js +1 -1
  94. package/dist/components/user_content/use_report_content/ReportModal.module.scss.js +8 -8
  95. package/dist/components/vote/suggestion_vote_box/SuggestionVoteBox.module.scss.js +1 -1
  96. package/dist/components/vote/vote_box/VoteBox.module.scss.js +30 -30
  97. package/dist/components/vote/vote_button/VoteButton.module.scss.js +5 -5
  98. package/package.json +1 -1
  99. package/src/components/styles/theme/_theme.scss +5 -0
  100. package/src/components/styles/theme/theme.docs.mdx +7 -0
  101. package/dist/assets/components/action/back_link/BackLink.module-nMAM5nvb.css +0 -1
  102. package/dist/assets/components/action/button/Button.module-BXkLuURK.css +0 -1
  103. package/dist/assets/components/action/icon_text_link/IconTextLink.module-B5PF-MMK.css +0 -1
  104. package/dist/assets/components/argument/argument/Argument.module-QZdPjj_i.css +0 -1
  105. package/dist/assets/components/argument/argument/ReplyFooter.module-x9Xlkt3Z.css +0 -1
  106. package/dist/assets/components/auth/sso_form/SSOForm.module-D5v2TrOv.css +0 -1
  107. package/dist/assets/components/consultation/consultation_box/ConsultationBox.module-B96QiaNv.css +0 -1
  108. package/dist/assets/components/debate/debate_box/DebateBox.module-DTLafpl4.css +0 -1
  109. package/dist/assets/components/dialog/dialog_box/DialogBox.module-DKztqqmb.css +0 -1
  110. package/dist/assets/components/dialog/modal/Modal.module-CIj-xCzY.css +0 -1
  111. package/dist/assets/components/dialog/toast/Toast.module-DJ2wSlJT.css +0 -1
  112. package/dist/assets/components/dialog/tooltip/Tooltip.module-zMXumgnX.css +0 -1
  113. package/dist/assets/components/embed/embed_header/EmbedHeader.module-CoyRY_jw.css +0 -1
  114. package/dist/assets/components/follow/follow_button/FollowButton.module-C9YXM8AM.css +0 -1
  115. package/dist/assets/components/gamification/badge_box/BadgeBox.module-BnskGH9b.css +0 -1
  116. package/dist/assets/components/information/information_box/InformationBox.module-B_MiEPn7.css +0 -1
  117. package/dist/assets/components/input/text_editor/TextEditor.module-CxuSL3l3.css +0 -1
  118. package/dist/assets/components/input/toggle_position/TogglePosition.module-DDIigbfA.css +0 -1
  119. package/dist/assets/components/list/paginated_list/action_bar/ActionBar.module-CKkdHjXR.css +0 -1
  120. package/dist/assets/components/notification/notification_item/NotificationItem.module-BWdhgSy4.css +0 -1
  121. package/dist/assets/components/notification/notification_menu/NotificationMenu.module-BQwbvRIV.css +0 -1
  122. package/dist/assets/components/progress/progress_bar/ProgressBar.module-C9_77ipX.css +0 -1
  123. package/dist/assets/components/proposal/proposal_box/ProposalBox.module-Drb86pQi.css +0 -1
  124. package/dist/assets/components/section/section_box/SectionBox.module-qQs4B6bf.css +0 -1
  125. package/dist/assets/components/skeleton/user_content_skeleton/UserContentSkeleton.module-DhZm1xTr.css +0 -1
  126. package/dist/assets/components/source/context_source_box/ContextSourceBox.module-78Gxjx0w.css +0 -1
  127. package/dist/assets/components/source/context_source_list/ContextSourceList.module-DUPbI-wb.css +0 -1
  128. package/dist/assets/components/source/source_box/SourceBox.module-Cu_m3E85.css +0 -1
  129. package/dist/assets/components/suggestion/suggestion_banner/SuggestionBanner.module-D37NVZLS.css +0 -1
  130. package/dist/assets/components/suggestion/suggestion_box/SuggestionBox.module-DHxoF0oe.css +0 -1
  131. package/dist/assets/components/suggestion/suggestion_input/SuggestionInput.module-BsEj7sF3.css +0 -1
  132. package/dist/assets/components/summary/argument_summary_box/ArgumentSummaryBox.module-DLcsyMSD.css +0 -1
  133. package/dist/assets/components/summary/keyword_box/KeywordBox.module-DHkYfW0l.css +0 -1
  134. package/dist/assets/components/summary/summary_box/SummaryBox.module-Dr9PevSJ.css +0 -1
  135. package/dist/assets/components/text/read_more/ReadMore.module-Ni_Mm8o8.css +0 -1
  136. package/dist/assets/components/user/author_box/AuthorBox.module-CbH2S-MT.css +0 -1
  137. package/dist/assets/components/user/onboarding_modal/OnboardingModal.module-DJym6u4r.css +0 -1
  138. package/dist/assets/components/user/user_box/UserBox.module-DGKK1afI.css +0 -1
  139. package/dist/assets/components/user/user_box_small/UserBoxSmall.module-ibAw9gGE.css +0 -1
  140. package/dist/assets/components/user_content/content_footer/ContentFooter.module-ax3j7VNT.css +0 -1
  141. package/dist/assets/components/user_content/content_header/ContentHeader.module-B0VwpU-R.css +0 -1
  142. package/dist/assets/components/user_content/summary_content_box/SummaryContentBox.module-DdzWnPjq.css +0 -1
  143. package/dist/assets/components/user_content/use_report_content/ReportModal.module-BxF-D5C5.css +0 -1
  144. package/dist/assets/components/vote/suggestion_vote_box/SuggestionVoteBox.module-CZeQKWIw.css +0 -1
  145. package/dist/assets/components/vote/vote_box/VoteBox.module-uT1IZ6Ag.css +0 -1
  146. package/dist/assets/components/vote/vote_button/VoteButton.module-aP9ZrGSd.css +0 -1
@@ -1,264 +1,252 @@
1
- import { jsxs as E, jsx as n } from "react/jsx-runtime";
2
- import { $isListNode as P, ListNode as Z, INSERT_ORDERED_LIST_COMMAND as ee, $isListItemNode as R, $createListNode as te } from "@lexical/list";
3
- import { useLexicalComposerContext as oe } from "@lexical/react/LexicalComposerContext";
4
- import { $isHeadingNode as ne, $createQuoteNode as O } from "@lexical/rich-text";
5
- import { $setBlocksType as B } from "@lexical/selection";
6
- import { $getNearestNodeOfType as ie, mergeRegister as ae } from "@lexical/utils";
7
- import i from "classnames";
8
- import { $getSelection as M, $isRangeSelection as w, SELECTION_CHANGE_COMMAND as le, FORMAT_TEXT_COMMAND as re, $createParagraphNode as $ } from "lexical";
9
- import { useRef as S, useState as N, useCallback as se, useEffect as q } from "react";
10
- import { useIntl as ce } from "react-intl";
11
- import t from "./ToolbarPlugin.module.scss.js";
12
- import { Icon as f } from "../../../icons/icon/Icon.js";
13
- import { Button as de } from "../../../action/button/Button.js";
14
- const Ae = (a) => {
15
- const d = ce(), K = 1, [l] = oe(), F = S(null), [T, k] = N("paragraph"), [ue, U] = N(null), [H, j] = N(!1), [Q, V] = N(!1), [z, G] = N(!1), _ = S(!1), s = S(null), x = a.hideSubmit && a.hideSourceAction && a.disableRichText, y = se(() => {
16
- const e = M();
17
- if (w(e)) {
18
- const c = e.anchor.getNode(), r = c.getKey() === "root" ? c : c.getTopLevelElementOrThrow(), u = r.getKey();
19
- if (l.getElementByKey(u) !== null)
20
- if (U(u), P(r)) {
21
- const o = ie(c, Z), p = o ? o.getTag() : r.getTag();
22
- k(p);
1
+ import { jsxs as L, jsx as i } from "react/jsx-runtime";
2
+ import { $isListNode as k, ListNode as z, INSERT_ORDERED_LIST_COMMAND as G, $isListItemNode as w, $createListNode as X } from "@lexical/list";
3
+ import { useLexicalComposerContext as J } from "@lexical/react/LexicalComposerContext";
4
+ import { $isHeadingNode as W, $createQuoteNode as A } from "@lexical/rich-text";
5
+ import { $setBlocksType as v } from "@lexical/selection";
6
+ import { $getNearestNodeOfType as Y, mergeRegister as Z } from "@lexical/utils";
7
+ import a from "classnames";
8
+ import { $getSelection as N, $isRangeSelection as _, SELECTION_CHANGE_COMMAND as ee, FORMAT_TEXT_COMMAND as te, $createParagraphNode as E } from "lexical";
9
+ import { useRef as oe, useState as g, useCallback as ie, useEffect as ae } from "react";
10
+ import { useIntl as ne } from "react-intl";
11
+ import e from "./ToolbarPlugin.module.scss.js";
12
+ import { Icon as u } from "../../../icons/icon/Icon.js";
13
+ import { Button as le } from "../../../action/button/Button.js";
14
+ const ye = (n) => {
15
+ const r = ne(), D = 1, [l] = J(), O = oe(null), [h, I] = g("paragraph"), [se, P] = g(null), [B, R] = g(!1), [$, q] = g(!1), [K, F] = g(!1), S = n.hideSubmit && n.hideSourceAction && n.disableRichText, p = ie(() => {
16
+ const t = N();
17
+ if (_(t)) {
18
+ const c = t.anchor.getNode(), s = c.getKey() === "root" ? c : c.getTopLevelElementOrThrow(), d = s.getKey();
19
+ if (l.getElementByKey(d) !== null)
20
+ if (P(d), k(s)) {
21
+ const o = Y(c, z), f = o ? o.getTag() : s.getTag();
22
+ I(f);
23
23
  } else {
24
- const o = ne(r) ? r.getTag() : r.getType();
25
- k(o);
24
+ const o = W(s) ? s.getTag() : s.getType();
25
+ I(o);
26
26
  }
27
- j(e.hasFormat("bold")), V(e.hasFormat("italic")), G(e.hasFormat("underline"));
27
+ R(t.hasFormat("bold")), q(t.hasFormat("italic")), F(t.hasFormat("underline"));
28
28
  }
29
29
  }, [l]);
30
- q(() => ae(
31
- l.registerUpdateListener(({ editorState: e }) => {
32
- e.read(() => {
33
- y();
30
+ ae(() => Z(
31
+ l.registerUpdateListener(({ editorState: t }) => {
32
+ t.read(() => {
33
+ p();
34
34
  });
35
35
  }),
36
36
  l.registerCommand(
37
- le,
38
- () => (y(), !1),
39
- K
37
+ ee,
38
+ () => (p(), !1),
39
+ D
40
40
  )
41
- ), [l, y]), q(() => () => {
42
- s.current && clearTimeout(s.current);
43
- }, []);
44
- const X = () => {
45
- _.current = !1, s.current && (clearTimeout(s.current), s.current = null);
46
- }, b = (e, c) => {
47
- e.preventDefault(), (e.pointerType === "touch" || e.pointerType === "pen") && (_.current = !0, c?.(), s.current && clearTimeout(s.current), s.current = setTimeout(() => {
48
- _.current = !1, s.current = null;
49
- }, 500));
50
- }, g = (e) => {
51
- if (_.current) {
52
- X();
53
- return;
54
- }
55
- e?.();
56
- }, I = () => {
41
+ ), [l, p]);
42
+ const b = (t) => {
43
+ t.pointerType !== "touch" && t.pointerType !== "pen" && t.preventDefault();
44
+ }, x = () => {
57
45
  setTimeout(() => {
58
46
  l.getEditorState().read(() => {
59
- y();
47
+ p();
60
48
  });
61
49
  }, 0);
62
- }, h = (e) => {
63
- l.dispatchCommand(re, e), I();
64
- }, J = () => {
50
+ }, T = (t) => {
51
+ l.dispatchCommand(te, t);
52
+ }, U = () => {
65
53
  l.update(() => {
66
- const e = M();
67
- if (!w(e))
54
+ const t = N();
55
+ if (!_(t))
68
56
  return;
69
- const c = e.getNodes(), r = /* @__PURE__ */ new Set();
57
+ const c = t.getNodes(), s = /* @__PURE__ */ new Set();
70
58
  for (const m of c) {
71
59
  let o = m;
72
- for (; o !== null && !R(o); )
60
+ for (; o !== null && !w(o); )
73
61
  o = o.getParent();
74
- R(o) && r.add(o);
62
+ w(o) && s.add(o);
75
63
  }
76
- const u = Array.from(r).reverse();
77
- for (const m of u) {
64
+ const d = Array.from(s).reverse();
65
+ for (const m of d) {
78
66
  const o = m.getParent();
79
- if (!P(o))
67
+ if (!k(o))
80
68
  continue;
81
- const p = $(), W = m.getChildren();
82
- for (const C of W)
83
- p.append(C);
84
- const A = m.getNextSiblings();
85
- if (o.insertAfter(p), A.length > 0) {
86
- const C = A[0].getValue(), v = te(o.getListType(), C);
87
- for (const Y of A)
88
- v.append(Y);
89
- p.insertAfter(v);
69
+ const f = E(), Q = m.getChildren();
70
+ for (const M of Q)
71
+ f.append(M);
72
+ const y = m.getNextSiblings();
73
+ if (o.insertAfter(f), y.length > 0) {
74
+ const M = y[0].getValue(), C = X(o.getListType(), M);
75
+ for (const V of y)
76
+ C.append(V);
77
+ f.insertAfter(C);
90
78
  }
91
79
  m.remove(), o.getChildrenSize() === 0 && o.remove();
92
80
  }
93
81
  });
94
- }, L = () => {
95
- T !== "ol" ? l.dispatchCommand(ee) : J(), I();
96
- }, D = () => {
97
- T !== "quote" ? l.update(() => {
98
- const e = M();
99
- if (w(e))
100
- if (e.isCollapsed()) {
101
- const r = e.anchor.getNode().getTopLevelElementOrThrow(), u = O();
102
- r.insertAfter(u), u.selectEnd();
82
+ }, j = () => {
83
+ h !== "ol" ? l.dispatchCommand(G) : U(), x();
84
+ }, H = () => {
85
+ h !== "quote" ? l.update(() => {
86
+ const t = N();
87
+ if (_(t))
88
+ if (t.isCollapsed()) {
89
+ const s = t.anchor.getNode().getTopLevelElementOrThrow(), d = A();
90
+ s.insertAfter(d), d.selectEnd();
103
91
  } else
104
- B(e, () => O());
92
+ v(t, () => A());
105
93
  }) : l.update(() => {
106
- const e = M();
107
- w(e) && B(e, () => $());
108
- }), I();
94
+ const t = N();
95
+ _(t) && v(t, () => E());
96
+ }), x();
109
97
  };
110
- return x ? null : /* @__PURE__ */ E(
98
+ return S ? null : /* @__PURE__ */ L(
111
99
  "div",
112
100
  {
113
- className: i(t.toolbar, {
114
- [t.toolbarIsActive]: x ? !1 : a.isActive
101
+ className: a(e.toolbar, {
102
+ [e.toolbarIsActive]: S ? !1 : n.isActive
115
103
  }),
116
- ref: F,
104
+ ref: O,
117
105
  children: [
118
- a.isActive ? !a.disableRichText && /* @__PURE__ */ E(
106
+ n.isActive ? !n.disableRichText && /* @__PURE__ */ L(
119
107
  "div",
120
108
  {
121
- className: i(t.iconToolbar, {
122
- [t.shortBar]: a.shortBar
109
+ className: a(e.iconToolbar, {
110
+ [e.shortBar]: n.shortBar
123
111
  }),
124
112
  children: [
125
- /* @__PURE__ */ n(
113
+ /* @__PURE__ */ i(
126
114
  "button",
127
115
  {
128
- onPointerDown: (e) => b(e, () => h("bold")),
129
- onClick: () => g(() => h("bold")),
116
+ onPointerDown: b,
117
+ onClick: () => T("bold"),
130
118
  type: "button",
131
- className: i(t.toolbarItem, { [t.active]: H }),
119
+ className: a(e.toolbarItem, { [e.active]: B }),
132
120
  "data-testid": "format-bold",
133
- "aria-label": d.formatMessage({
121
+ "aria-label": r.formatMessage({
134
122
  id: "input.text_editor.plugins.toolbar_plugin.bold.aria_label",
135
123
  defaultMessage: "Make text bold"
136
124
  }),
137
- children: /* @__PURE__ */ n(
138
- f,
125
+ children: /* @__PURE__ */ i(
126
+ u,
139
127
  {
140
128
  name: "bold",
141
129
  width: 24,
142
130
  height: 24,
143
- className: i(t.format, t.bold)
131
+ className: a(e.format, e.bold)
144
132
  }
145
133
  )
146
134
  }
147
135
  ),
148
- /* @__PURE__ */ n(
136
+ /* @__PURE__ */ i(
149
137
  "button",
150
138
  {
151
- onPointerDown: (e) => b(e, () => h("italic")),
152
- onClick: () => g(() => h("italic")),
139
+ onPointerDown: b,
140
+ onClick: () => T("italic"),
153
141
  type: "button",
154
- className: i(t.toolbarItem, {
155
- [t.active]: Q
142
+ className: a(e.toolbarItem, {
143
+ [e.active]: $
156
144
  }),
157
- "aria-label": d.formatMessage({
145
+ "aria-label": r.formatMessage({
158
146
  id: "input.text_editor.plugins.toolbar_plugin.italic.aria_label",
159
147
  defaultMessage: "Make text italic"
160
148
  }),
161
- children: /* @__PURE__ */ n(
162
- f,
149
+ children: /* @__PURE__ */ i(
150
+ u,
163
151
  {
164
152
  name: "italic",
165
153
  width: 24,
166
154
  height: 24,
167
- className: i(t.format, t.italic)
155
+ className: a(e.format, e.italic)
168
156
  }
169
157
  )
170
158
  }
171
159
  ),
172
- /* @__PURE__ */ n(
160
+ /* @__PURE__ */ i(
173
161
  "button",
174
162
  {
175
- onPointerDown: (e) => b(e, () => h("underline")),
176
- onClick: () => g(() => h("underline")),
163
+ onPointerDown: b,
164
+ onClick: () => T("underline"),
177
165
  type: "button",
178
- className: i(t.toolbarItem, {
179
- [t.active]: z
166
+ className: a(e.toolbarItem, {
167
+ [e.active]: K
180
168
  }),
181
- "aria-label": d.formatMessage({
169
+ "aria-label": r.formatMessage({
182
170
  id: "input.text_editor.plugins.toolbar_plugin.underline.aria_label",
183
171
  defaultMessage: "Underline text"
184
172
  }),
185
- children: /* @__PURE__ */ n(
186
- f,
173
+ children: /* @__PURE__ */ i(
174
+ u,
187
175
  {
188
176
  name: "underline",
189
177
  width: 24,
190
178
  height: 24,
191
- className: i(t.format, t.underline)
179
+ className: a(e.format, e.underline)
192
180
  }
193
181
  )
194
182
  }
195
183
  ),
196
- /* @__PURE__ */ n(
184
+ /* @__PURE__ */ i(
197
185
  "button",
198
186
  {
199
- onPointerDown: (e) => b(e, D),
200
- onClick: () => g(D),
187
+ onPointerDown: b,
188
+ onClick: () => H(),
201
189
  type: "button",
202
- className: i(t.toolbarItem, {
203
- [t.active]: T === "quote"
190
+ className: a(e.toolbarItem, {
191
+ [e.active]: h === "quote"
204
192
  }),
205
- "aria-label": d.formatMessage({
193
+ "aria-label": r.formatMessage({
206
194
  id: "input.text_editor.plugins.toolbar_plugin.blockquote.aria_label",
207
195
  defaultMessage: "Add a blockquote"
208
196
  }),
209
- children: /* @__PURE__ */ n(
210
- f,
197
+ children: /* @__PURE__ */ i(
198
+ u,
211
199
  {
212
200
  name: "blockquote",
213
201
  width: 24,
214
202
  height: 24,
215
- className: i(t.format, t.quote)
203
+ className: a(e.format, e.quote)
216
204
  }
217
205
  )
218
206
  }
219
207
  ),
220
- /* @__PURE__ */ n(
208
+ /* @__PURE__ */ i(
221
209
  "button",
222
210
  {
223
- onPointerDown: (e) => b(e, L),
224
- onClick: () => g(L),
211
+ onPointerDown: b,
212
+ onClick: () => j(),
225
213
  type: "button",
226
- className: i(t.toolbarItem, {
227
- [t.active]: T === "ol"
214
+ className: a(e.toolbarItem, {
215
+ [e.active]: h === "ol"
228
216
  }),
229
- "aria-label": d.formatMessage({
217
+ "aria-label": r.formatMessage({
230
218
  id: "input.text_editor.plugins.toolbar_plugin.numbered_list.aria_label",
231
219
  defaultMessage: "Insert a numbered list"
232
220
  }),
233
- children: /* @__PURE__ */ n(
234
- f,
221
+ children: /* @__PURE__ */ i(
222
+ u,
235
223
  {
236
224
  name: "orderedList",
237
225
  width: 24,
238
226
  height: 24,
239
- className: i(t.format, t.numberedList)
227
+ className: a(e.format, e.numberedList)
240
228
  }
241
229
  )
242
230
  }
243
231
  ),
244
- !a.hideSourceAction && /* @__PURE__ */ n(
232
+ !n.hideSourceAction && /* @__PURE__ */ i(
245
233
  "button",
246
234
  {
247
- onPointerDown: (e) => b(e, a.onAddSource),
248
- onClick: () => g(a.onAddSource),
235
+ onPointerDown: b,
236
+ onClick: n.onAddSource,
249
237
  type: "button",
250
- className: t.toolbarItem,
251
- "aria-label": d.formatMessage({
238
+ className: e.toolbarItem,
239
+ "aria-label": r.formatMessage({
252
240
  id: "input.text_editor.plugins.toolbar_plugin.add_link.aria_label",
253
241
  defaultMessage: "Add hyperlink"
254
242
  }),
255
- children: /* @__PURE__ */ n(
256
- f,
243
+ children: /* @__PURE__ */ i(
244
+ u,
257
245
  {
258
246
  name: "link",
259
247
  width: 20,
260
248
  height: 20,
261
- className: i(t.format, t.link)
249
+ className: a(e.format, e.link)
262
250
  }
263
251
  )
264
252
  }
@@ -266,18 +254,18 @@ const Ae = (a) => {
266
254
  ]
267
255
  }
268
256
  ) : null,
269
- /* @__PURE__ */ n("div", { className: t.actionButton, children: a.hideSubmit ? null : /* @__PURE__ */ n(
270
- de,
257
+ /* @__PURE__ */ i("div", { className: e.actionButton, children: n.hideSubmit ? null : /* @__PURE__ */ i(
258
+ le,
271
259
  {
272
260
  type: "button",
273
261
  "data-testid": "submit-button",
274
- handleClick: a.onSubmit,
275
- className: i(t.inputSubmitActionButton, t.submitAction),
276
- "aria-label": d.formatMessage({
262
+ handleClick: n.onSubmit,
263
+ className: a(e.inputSubmitActionButton, e.submitAction),
264
+ "aria-label": r.formatMessage({
277
265
  id: "input.text_editor.plugins.toolbar_plugin.submit_button.aria_label",
278
266
  defaultMessage: "Send message"
279
267
  }),
280
- children: /* @__PURE__ */ n(f, { name: "send", width: 20, height: 20 })
268
+ children: /* @__PURE__ */ i(u, { name: "send", width: 20, height: 20 })
281
269
  }
282
270
  ) })
283
271
  ]
@@ -285,5 +273,5 @@ const Ae = (a) => {
285
273
  );
286
274
  };
287
275
  export {
288
- Ae as ToolbarPlugin
276
+ ye as ToolbarPlugin
289
277
  };
@@ -1,15 +1,15 @@
1
- import '../../../assets/components/input/toggle_position/TogglePosition.module-DDIigbfA.css';const e = "_container_re8y3_3", l = "_label_re8y3_11", t = "_labelActive_re8y3_25", a = "_firstLabelDefault_re8y3_35", c = "_secondLabelDefault_re8y3_42", n = {
1
+ import '../../../assets/components/input/toggle_position/TogglePosition.module-H4gGmJ0V.css';const e = "_container_xpu2b_3", l = "_label_xpu2b_11", t = "_labelActive_xpu2b_26", a = "_firstLabelDefault_xpu2b_36", b = "_secondLabelDefault_xpu2b_43", c = {
2
2
  container: e,
3
3
  label: l,
4
4
  labelActive: t,
5
5
  firstLabelDefault: a,
6
- secondLabelDefault: c
6
+ secondLabelDefault: b
7
7
  };
8
8
  export {
9
9
  e as container,
10
- n as default,
10
+ c as default,
11
11
  a as firstLabelDefault,
12
12
  l as label,
13
13
  t as labelActive,
14
- c as secondLabelDefault
14
+ b as secondLabelDefault
15
15
  };
@@ -1,25 +1,25 @@
1
- import '../../../../assets/components/list/paginated_list/action_bar/ActionBar.module-CKkdHjXR.css';const t = "_listHeader_2wxq4_3", e = "_listHeaderOneItem_2wxq4_16", s = "_listTitle_2wxq4_23", _ = "_listSubtitle_2wxq4_30", i = "_rightBar_2wxq4_37", a = "_rightBarOneItem_2wxq4_47", l = "_search_2wxq4_58", r = "_tagList_2wxq4_68", c = "_tagItem_2wxq4_83", n = "_select_2wxq4_90", g = {
1
+ import '../../../../assets/components/list/paginated_list/action_bar/ActionBar.module-BDMBrj2Y.css';const t = "_listHeader_fga2s_3", e = "_listHeaderOneItem_fga2s_16", s = "_listTitle_fga2s_23", a = "_listSubtitle_fga2s_31", _ = "_rightBar_fga2s_39", i = "_rightBarOneItem_fga2s_49", l = "_search_fga2s_60", g = "_tagList_fga2s_70", r = "_tagItem_fga2s_85", c = "_select_fga2s_92", n = {
2
2
  listHeader: t,
3
3
  listHeaderOneItem: e,
4
4
  listTitle: s,
5
- listSubtitle: _,
6
- rightBar: i,
7
- rightBarOneItem: a,
5
+ listSubtitle: a,
6
+ rightBar: _,
7
+ rightBarOneItem: i,
8
8
  search: l,
9
- tagList: r,
10
- tagItem: c,
11
- select: n
9
+ tagList: g,
10
+ tagItem: r,
11
+ select: c
12
12
  };
13
13
  export {
14
- g as default,
14
+ n as default,
15
15
  t as listHeader,
16
16
  e as listHeaderOneItem,
17
- _ as listSubtitle,
17
+ a as listSubtitle,
18
18
  s as listTitle,
19
- i as rightBar,
20
- a as rightBarOneItem,
19
+ _ as rightBar,
20
+ i as rightBarOneItem,
21
21
  l as search,
22
- n as select,
23
- c as tagItem,
24
- r as tagList
22
+ c as select,
23
+ r as tagItem,
24
+ g as tagList
25
25
  };
@@ -1,23 +1,23 @@
1
- import '../../../assets/components/navigation/tabs/Tabs.module-B4sJ1pVW.css';const r = "_tabsWrapper_1ur7i_3", a = "_navTabs_1ur7i_11", t = "_arrow_1ur7i_39", _ = "_arrowLeft_1ur7i_63", n = "_arrowRight_1ur7i_72", o = "_arrowHidden_1ur7i_81", i = "_navItem_1ur7i_86", s = "_navLink_1ur7i_90", e = "_active_1ur7i_120", c = {
2
- tabsWrapper: r,
1
+ import '../../../assets/components/navigation/tabs/Tabs.module-50P6bk0B.css';const t = "_tabsWrapper_bctj1_3", a = "_navTabs_bctj1_11", r = "_arrow_bctj1_39", _ = "_arrowLeft_bctj1_63", n = "_arrowRight_bctj1_72", o = "_arrowHidden_bctj1_81", c = "_navItem_bctj1_86", s = "_navLink_bctj1_90", e = "_active_bctj1_120", b = {
2
+ tabsWrapper: t,
3
3
  navTabs: a,
4
- arrow: t,
4
+ arrow: r,
5
5
  arrowLeft: _,
6
6
  arrowRight: n,
7
7
  arrowHidden: o,
8
- navItem: i,
8
+ navItem: c,
9
9
  navLink: s,
10
10
  active: e
11
11
  };
12
12
  export {
13
13
  e as active,
14
- t as arrow,
14
+ r as arrow,
15
15
  o as arrowHidden,
16
16
  _ as arrowLeft,
17
17
  n as arrowRight,
18
- c as default,
19
- i as navItem,
18
+ b as default,
19
+ c as navItem,
20
20
  s as navLink,
21
21
  a as navTabs,
22
- r as tabsWrapper
22
+ t as tabsWrapper
23
23
  };
@@ -1,17 +1,17 @@
1
- import '../../../assets/components/notification/notification_item/NotificationItem.module-BWdhgSy4.css';const t = "_notificationItem_1rrmp_3", n = "_notificationItemBody_1rrmp_13", i = "_read_1rrmp_24", o = "_notificationImageContainer_1rrmp_31", e = "_notificationItemContent_1rrmp_40", a = "_notificationItemDate_1rrmp_45", c = {
1
+ import '../../../assets/components/notification/notification_item/NotificationItem.module-BQcDopYB.css';const t = "_notificationItem_1aa1l_3", n = "_notificationItemBody_1aa1l_13", i = "_read_1aa1l_24", o = "_notificationImageContainer_1aa1l_31", a = "_notificationItemContent_1aa1l_40", e = "_notificationItemDate_1aa1l_45", c = {
2
2
  notificationItem: t,
3
3
  notificationItemBody: n,
4
4
  read: i,
5
5
  notificationImageContainer: o,
6
- notificationItemContent: e,
7
- notificationItemDate: a
6
+ notificationItemContent: a,
7
+ notificationItemDate: e
8
8
  };
9
9
  export {
10
10
  c as default,
11
11
  o as notificationImageContainer,
12
12
  t as notificationItem,
13
13
  n as notificationItemBody,
14
- e as notificationItemContent,
15
- a as notificationItemDate,
14
+ a as notificationItemContent,
15
+ e as notificationItemDate,
16
16
  i as read
17
17
  };
@@ -1,11 +1,11 @@
1
- import '../../../assets/components/notification/notification_menu/NotificationMenu.module-BQwbvRIV.css';const t = "_notificationMenuHeader_it4r1_3", i = "_notificationMenuHeaderText_it4r1_20", n = "_readNotificationsButton_it4r1_26", o = "_notificationList_it4r1_38", e = {
1
+ import '../../../assets/components/notification/notification_menu/NotificationMenu.module-DrCrfzVk.css';const t = "_notificationMenuHeader_1azbp_3", i = "_notificationMenuHeaderText_1azbp_20", n = "_readNotificationsButton_1azbp_27", o = "_notificationList_1azbp_39", a = {
2
2
  notificationMenuHeader: t,
3
3
  notificationMenuHeaderText: i,
4
4
  readNotificationsButton: n,
5
5
  notificationList: o
6
6
  };
7
7
  export {
8
- e as default,
8
+ a as default,
9
9
  o as notificationList,
10
10
  t as notificationMenuHeader,
11
11
  i as notificationMenuHeaderText,
@@ -1,4 +1,4 @@
1
- import '../../../assets/components/progress/progress_bar/ProgressBar.module-C9_77ipX.css';const r = "_progressContainer_w34dy_3", t = "_titleContainer_w34dy_9", s = "_title_w34dy_9", e = "_subtitleContainer_w34dy_24", o = "_progressSubtitle_w34dy_29", n = "_progressBarContainer_w34dy_35", _ = "_currentProgressBar_w34dy_47", a = "_progressBar_w34dy_35", i = "_progressBarContent_w34dy_77", g = {
1
+ import '../../../assets/components/progress/progress_bar/ProgressBar.module-DoCH9Qoo.css';const r = "_progressContainer_7pzbd_3", t = "_titleContainer_7pzbd_9", s = "_title_7pzbd_9", e = "_subtitleContainer_7pzbd_25", o = "_progressSubtitle_7pzbd_30", n = "_progressBarContainer_7pzbd_36", _ = "_currentProgressBar_7pzbd_48", a = "_progressBar_7pzbd_36", p = "_progressBarContent_7pzbd_78", i = {
2
2
  progressContainer: r,
3
3
  titleContainer: t,
4
4
  title: s,
@@ -7,14 +7,14 @@ import '../../../assets/components/progress/progress_bar/ProgressBar.module-C9_7
7
7
  progressBarContainer: n,
8
8
  currentProgressBar: _,
9
9
  progressBar: a,
10
- progressBarContent: i
10
+ progressBarContent: p
11
11
  };
12
12
  export {
13
13
  _ as currentProgressBar,
14
- g as default,
14
+ i as default,
15
15
  a as progressBar,
16
16
  n as progressBarContainer,
17
- i as progressBarContent,
17
+ p as progressBarContent,
18
18
  r as progressContainer,
19
19
  o as progressSubtitle,
20
20
  e as subtitleContainer,
@@ -1,23 +1,23 @@
1
- import '../../../assets/components/proposal/proposal_box/ProposalBox.module-Drb86pQi.css';const o = "_proposalBoxContainer_1ayf7_3", t = "_flash_1ayf7_19", s = "_edited_1ayf7_27", e = "_proposalBoxContent_1ayf7_34", a = "_withMinHeight_1ayf7_44", n = "_proposalTitle_1ayf7_48", p = "_proposalContent_1ayf7_56", i = "_proposalSourcesList_1ayf7_60", _ = "_fixedHeight_1ayf7_73", l = {
1
+ import '../../../assets/components/proposal/proposal_box/ProposalBox.module-D1ccjSLm.css';const o = "_proposalBoxContainer_513bm_3", t = "_flash_513bm_19", s = "_edited_513bm_27", e = "_proposalBoxContent_513bm_34", n = "_withMinHeight_513bm_44", p = "_proposalTitle_513bm_48", i = "_proposalContent_513bm_57", _ = "_proposalSourcesList_513bm_61", a = "_fixedHeight_513bm_75", l = {
2
2
  proposalBoxContainer: o,
3
3
  flash: t,
4
4
  edited: s,
5
5
  proposalBoxContent: e,
6
- withMinHeight: a,
7
- proposalTitle: n,
8
- proposalContent: p,
9
- proposalSourcesList: i,
10
- fixedHeight: _
6
+ withMinHeight: n,
7
+ proposalTitle: p,
8
+ proposalContent: i,
9
+ proposalSourcesList: _,
10
+ fixedHeight: a
11
11
  };
12
12
  export {
13
13
  l as default,
14
14
  s as edited,
15
- _ as fixedHeight,
15
+ a as fixedHeight,
16
16
  t as flash,
17
17
  o as proposalBoxContainer,
18
18
  e as proposalBoxContent,
19
- p as proposalContent,
20
- i as proposalSourcesList,
21
- n as proposalTitle,
22
- a as withMinHeight
19
+ i as proposalContent,
20
+ _ as proposalSourcesList,
21
+ p as proposalTitle,
22
+ n as withMinHeight
23
23
  };