@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.
- package/dist/assets/components/action/back_link/BackLink.module-B9Ok2t4H.css +1 -0
- package/dist/assets/components/action/button/Button.module-D7nbgOES.css +1 -0
- package/dist/assets/components/action/icon_text_link/IconTextLink.module-CZKufK9Y.css +1 -0
- package/dist/assets/components/argument/argument/Argument.module-CC40BY1L.css +1 -0
- package/dist/assets/components/argument/argument/ReplyFooter.module-CoC9dY8T.css +1 -0
- package/dist/assets/components/auth/sso_form/SSOForm.module-DOw9cmCF.css +1 -0
- package/dist/assets/components/consultation/consultation_box/ConsultationBox.module-97r47y_e.css +1 -0
- package/dist/assets/components/debate/debate_box/DebateBox.module-emnqIGNF.css +1 -0
- package/dist/assets/components/dialog/dialog_box/DialogBox.module-ZoM8d2Ly.css +1 -0
- package/dist/assets/components/dialog/modal/Modal.module-Dt4SWx6U.css +1 -0
- package/dist/assets/components/dialog/toast/Toast.module-CW6j5xe7.css +1 -0
- package/dist/assets/components/dialog/tooltip/Tooltip.module-bQbmPiMf.css +1 -0
- package/dist/assets/components/embed/embed_header/EmbedHeader.module-C8RPiVBp.css +1 -0
- package/dist/assets/components/follow/follow_button/FollowButton.module-BjwLVTeb.css +1 -0
- package/dist/assets/components/gamification/badge_box/BadgeBox.module-DWqqtICw.css +1 -0
- package/dist/assets/components/gamification/point_box/{PointBox.module-BlHdQyht.css → PointBox.module-Dj6cCgSB.css} +1 -1
- package/dist/assets/components/information/information_box/InformationBox.module-DJLT957y.css +1 -0
- package/dist/assets/components/input/text_editor/TextEditor.module-KPtqT1Y6.css +1 -0
- package/dist/assets/components/input/toggle_position/TogglePosition.module-H4gGmJ0V.css +1 -0
- package/dist/assets/components/list/paginated_list/action_bar/ActionBar.module-BDMBrj2Y.css +1 -0
- package/dist/assets/components/navigation/tabs/{Tabs.module-B4sJ1pVW.css → Tabs.module-50P6bk0B.css} +1 -1
- package/dist/assets/components/notification/notification_item/NotificationItem.module-BQcDopYB.css +1 -0
- package/dist/assets/components/notification/notification_menu/NotificationMenu.module-DrCrfzVk.css +1 -0
- package/dist/assets/components/progress/progress_bar/ProgressBar.module-DoCH9Qoo.css +1 -0
- package/dist/assets/components/proposal/proposal_box/ProposalBox.module-D1ccjSLm.css +1 -0
- package/dist/assets/components/section/section_box/SectionBox.module-DF7k7Vxq.css +1 -0
- package/dist/assets/components/skeleton/user_content_skeleton/UserContentSkeleton.module-d4r3QpYe.css +1 -0
- package/dist/assets/components/source/context_source_box/ContextSourceBox.module-doiSb_NR.css +1 -0
- package/dist/assets/components/source/context_source_list/ContextSourceList.module-Df4z4DN-.css +1 -0
- package/dist/assets/components/source/source_box/SourceBox.module-CQOBgJ5n.css +1 -0
- package/dist/assets/components/suggestion/suggestion_banner/SuggestionBanner.module-P95xqaUA.css +1 -0
- package/dist/assets/components/suggestion/suggestion_box/SuggestionBox.module-CE_Wvk-K.css +1 -0
- package/dist/assets/components/suggestion/suggestion_input/SuggestionInput.module-r5N57bDp.css +1 -0
- package/dist/assets/components/summary/argument_summary_box/ArgumentSummaryBox.module-EDxcqwRa.css +1 -0
- package/dist/assets/components/summary/keyword_box/KeywordBox.module-yNHAvcRh.css +1 -0
- package/dist/assets/components/summary/summary_box/SummaryBox.module-Bu-AnMIG.css +1 -0
- package/dist/assets/components/text/read_more/ReadMore.module-Bs-YaspR.css +1 -0
- package/dist/assets/components/user/author_box/AuthorBox.module-B8Sl2v33.css +1 -0
- package/dist/assets/components/user/onboarding_modal/OnboardingModal.module-CTpt3xSh.css +1 -0
- package/dist/assets/components/user/user_box/UserBox.module-DMFhZDAH.css +1 -0
- package/dist/assets/components/user/user_box_small/UserBoxSmall.module-D4Ut5xmS.css +1 -0
- package/dist/assets/components/user_content/content_footer/ContentFooter.module-9A9E8k5l.css +1 -0
- package/dist/assets/components/user_content/content_header/ContentHeader.module-CXO2IRui.css +1 -0
- package/dist/assets/components/user_content/summary_content_box/SummaryContentBox.module-CBlL2Xii.css +1 -0
- package/dist/assets/components/user_content/use_report_content/ReportModal.module-mjFuOdmL.css +1 -0
- package/dist/assets/components/vote/suggestion_vote_box/SuggestionVoteBox.module-CKFriPV5.css +1 -0
- package/dist/assets/components/vote/vote_box/VoteBox.module-Bv7WY_vr.css +1 -0
- package/dist/assets/components/vote/vote_button/VoteButton.module-DqD79xv_.css +1 -0
- package/dist/components/action/back_link/BackLink.module.scss.js +1 -1
- package/dist/components/action/button/Button.module.scss.js +9 -9
- package/dist/components/action/icon_text_link/IconTextLink.module.scss.js +2 -2
- package/dist/components/argument/argument/Argument.module.scss.js +40 -40
- package/dist/components/argument/argument/ReplyFooter.module.scss.js +8 -8
- package/dist/components/auth/sso_form/SSOForm.module.scss.js +20 -20
- package/dist/components/consultation/consultation_box/ConsultationBox.module.scss.js +15 -15
- package/dist/components/debate/debate_box/DebateBox.module.scss.js +20 -20
- package/dist/components/dialog/dialog_box/DialogBox.module.scss.js +14 -14
- package/dist/components/dialog/modal/Modal.module.scss.js +9 -9
- package/dist/components/dialog/toast/Toast.module.scss.js +18 -18
- package/dist/components/dialog/tooltip/Tooltip.module.scss.js +8 -8
- package/dist/components/embed/embed_header/EmbedHeader.module.scss.js +18 -18
- package/dist/components/follow/follow_button/FollowButton.module.scss.js +1 -1
- package/dist/components/gamification/badge_box/BadgeBox.module.scss.js +18 -18
- package/dist/components/gamification/point_box/PointBox.module.scss.js +1 -1
- package/dist/components/information/information_box/InformationBox.module.scss.js +4 -4
- package/dist/components/input/text_editor/TextEditor.module.scss.js +28 -28
- package/dist/components/input/text_editor/plugins/ToolbarPlugin.js +136 -148
- package/dist/components/input/toggle_position/TogglePosition.module.scss.js +4 -4
- package/dist/components/list/paginated_list/action_bar/ActionBar.module.scss.js +14 -14
- package/dist/components/navigation/tabs/Tabs.module.scss.js +8 -8
- package/dist/components/notification/notification_item/NotificationItem.module.scss.js +5 -5
- package/dist/components/notification/notification_menu/NotificationMenu.module.scss.js +2 -2
- package/dist/components/progress/progress_bar/ProgressBar.module.scss.js +4 -4
- package/dist/components/proposal/proposal_box/ProposalBox.module.scss.js +11 -11
- package/dist/components/section/section_box/SectionBox.module.scss.js +12 -12
- package/dist/components/skeleton/user_content_skeleton/UserContentSkeleton.module.scss.js +4 -4
- package/dist/components/source/context_source_box/ContextSourceBox.module.scss.js +4 -4
- package/dist/components/source/context_source_list/ContextSourceList.module.scss.js +5 -5
- package/dist/components/source/source_box/SourceBox.module.scss.js +8 -8
- package/dist/components/suggestion/suggestion_banner/SuggestionBanner.module.scss.js +5 -5
- package/dist/components/suggestion/suggestion_box/SuggestionBox.module.scss.js +1 -1
- package/dist/components/suggestion/suggestion_input/SuggestionInput.module.scss.js +9 -9
- package/dist/components/summary/argument_summary_box/ArgumentSummaryBox.module.scss.js +10 -10
- package/dist/components/summary/keyword_box/KeywordBox.module.scss.js +1 -1
- package/dist/components/summary/summary_box/SummaryBox.module.scss.js +8 -8
- package/dist/components/text/read_more/ReadMore.module.scss.js +4 -4
- package/dist/components/user/author_box/AuthorBox.module.scss.js +24 -24
- package/dist/components/user/onboarding_modal/OnboardingModal.module.scss.js +16 -16
- package/dist/components/user/user_box/UserBox.module.scss.js +9 -9
- package/dist/components/user/user_box_small/UserBoxSmall.module.scss.js +6 -6
- package/dist/components/user_content/content_footer/ContentFooter.module.scss.js +11 -11
- package/dist/components/user_content/content_header/ContentHeader.module.scss.js +22 -22
- package/dist/components/user_content/summary_content_box/SummaryContentBox.module.scss.js +1 -1
- package/dist/components/user_content/use_report_content/ReportModal.module.scss.js +8 -8
- package/dist/components/vote/suggestion_vote_box/SuggestionVoteBox.module.scss.js +1 -1
- package/dist/components/vote/vote_box/VoteBox.module.scss.js +30 -30
- package/dist/components/vote/vote_button/VoteButton.module.scss.js +5 -5
- package/package.json +1 -1
- package/src/components/styles/theme/_theme.scss +5 -0
- package/src/components/styles/theme/theme.docs.mdx +7 -0
- package/dist/assets/components/action/back_link/BackLink.module-nMAM5nvb.css +0 -1
- package/dist/assets/components/action/button/Button.module-BXkLuURK.css +0 -1
- package/dist/assets/components/action/icon_text_link/IconTextLink.module-B5PF-MMK.css +0 -1
- package/dist/assets/components/argument/argument/Argument.module-QZdPjj_i.css +0 -1
- package/dist/assets/components/argument/argument/ReplyFooter.module-x9Xlkt3Z.css +0 -1
- package/dist/assets/components/auth/sso_form/SSOForm.module-D5v2TrOv.css +0 -1
- package/dist/assets/components/consultation/consultation_box/ConsultationBox.module-B96QiaNv.css +0 -1
- package/dist/assets/components/debate/debate_box/DebateBox.module-DTLafpl4.css +0 -1
- package/dist/assets/components/dialog/dialog_box/DialogBox.module-DKztqqmb.css +0 -1
- package/dist/assets/components/dialog/modal/Modal.module-CIj-xCzY.css +0 -1
- package/dist/assets/components/dialog/toast/Toast.module-DJ2wSlJT.css +0 -1
- package/dist/assets/components/dialog/tooltip/Tooltip.module-zMXumgnX.css +0 -1
- package/dist/assets/components/embed/embed_header/EmbedHeader.module-CoyRY_jw.css +0 -1
- package/dist/assets/components/follow/follow_button/FollowButton.module-C9YXM8AM.css +0 -1
- package/dist/assets/components/gamification/badge_box/BadgeBox.module-BnskGH9b.css +0 -1
- package/dist/assets/components/information/information_box/InformationBox.module-B_MiEPn7.css +0 -1
- package/dist/assets/components/input/text_editor/TextEditor.module-CxuSL3l3.css +0 -1
- package/dist/assets/components/input/toggle_position/TogglePosition.module-DDIigbfA.css +0 -1
- package/dist/assets/components/list/paginated_list/action_bar/ActionBar.module-CKkdHjXR.css +0 -1
- package/dist/assets/components/notification/notification_item/NotificationItem.module-BWdhgSy4.css +0 -1
- package/dist/assets/components/notification/notification_menu/NotificationMenu.module-BQwbvRIV.css +0 -1
- package/dist/assets/components/progress/progress_bar/ProgressBar.module-C9_77ipX.css +0 -1
- package/dist/assets/components/proposal/proposal_box/ProposalBox.module-Drb86pQi.css +0 -1
- package/dist/assets/components/section/section_box/SectionBox.module-qQs4B6bf.css +0 -1
- package/dist/assets/components/skeleton/user_content_skeleton/UserContentSkeleton.module-DhZm1xTr.css +0 -1
- package/dist/assets/components/source/context_source_box/ContextSourceBox.module-78Gxjx0w.css +0 -1
- package/dist/assets/components/source/context_source_list/ContextSourceList.module-DUPbI-wb.css +0 -1
- package/dist/assets/components/source/source_box/SourceBox.module-Cu_m3E85.css +0 -1
- package/dist/assets/components/suggestion/suggestion_banner/SuggestionBanner.module-D37NVZLS.css +0 -1
- package/dist/assets/components/suggestion/suggestion_box/SuggestionBox.module-DHxoF0oe.css +0 -1
- package/dist/assets/components/suggestion/suggestion_input/SuggestionInput.module-BsEj7sF3.css +0 -1
- package/dist/assets/components/summary/argument_summary_box/ArgumentSummaryBox.module-DLcsyMSD.css +0 -1
- package/dist/assets/components/summary/keyword_box/KeywordBox.module-DHkYfW0l.css +0 -1
- package/dist/assets/components/summary/summary_box/SummaryBox.module-Dr9PevSJ.css +0 -1
- package/dist/assets/components/text/read_more/ReadMore.module-Ni_Mm8o8.css +0 -1
- package/dist/assets/components/user/author_box/AuthorBox.module-CbH2S-MT.css +0 -1
- package/dist/assets/components/user/onboarding_modal/OnboardingModal.module-DJym6u4r.css +0 -1
- package/dist/assets/components/user/user_box/UserBox.module-DGKK1afI.css +0 -1
- package/dist/assets/components/user/user_box_small/UserBoxSmall.module-ibAw9gGE.css +0 -1
- package/dist/assets/components/user_content/content_footer/ContentFooter.module-ax3j7VNT.css +0 -1
- package/dist/assets/components/user_content/content_header/ContentHeader.module-B0VwpU-R.css +0 -1
- package/dist/assets/components/user_content/summary_content_box/SummaryContentBox.module-DdzWnPjq.css +0 -1
- package/dist/assets/components/user_content/use_report_content/ReportModal.module-BxF-D5C5.css +0 -1
- package/dist/assets/components/vote/suggestion_vote_box/SuggestionVoteBox.module-CZeQKWIw.css +0 -1
- package/dist/assets/components/vote/vote_box/VoteBox.module-uT1IZ6Ag.css +0 -1
- package/dist/assets/components/vote/vote_button/VoteButton.module-aP9ZrGSd.css +0 -1
|
@@ -1,264 +1,252 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { $isListNode as
|
|
3
|
-
import { useLexicalComposerContext as
|
|
4
|
-
import { $isHeadingNode as
|
|
5
|
-
import { $setBlocksType as
|
|
6
|
-
import { $getNearestNodeOfType as
|
|
7
|
-
import
|
|
8
|
-
import { $getSelection as
|
|
9
|
-
import { useRef as
|
|
10
|
-
import { useIntl as
|
|
11
|
-
import
|
|
12
|
-
import { Icon as
|
|
13
|
-
import { Button as
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
if (
|
|
18
|
-
const c =
|
|
19
|
-
if (l.getElementByKey(
|
|
20
|
-
if (
|
|
21
|
-
const o =
|
|
22
|
-
|
|
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 =
|
|
25
|
-
|
|
24
|
+
const o = W(s) ? s.getTag() : s.getType();
|
|
25
|
+
I(o);
|
|
26
26
|
}
|
|
27
|
-
|
|
27
|
+
R(t.hasFormat("bold")), q(t.hasFormat("italic")), F(t.hasFormat("underline"));
|
|
28
28
|
}
|
|
29
29
|
}, [l]);
|
|
30
|
-
|
|
31
|
-
l.registerUpdateListener(({ editorState:
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
ae(() => Z(
|
|
31
|
+
l.registerUpdateListener(({ editorState: t }) => {
|
|
32
|
+
t.read(() => {
|
|
33
|
+
p();
|
|
34
34
|
});
|
|
35
35
|
}),
|
|
36
36
|
l.registerCommand(
|
|
37
|
-
|
|
38
|
-
() => (
|
|
39
|
-
|
|
37
|
+
ee,
|
|
38
|
+
() => (p(), !1),
|
|
39
|
+
D
|
|
40
40
|
)
|
|
41
|
-
), [l,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
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
|
-
|
|
47
|
+
p();
|
|
60
48
|
});
|
|
61
49
|
}, 0);
|
|
62
|
-
},
|
|
63
|
-
l.dispatchCommand(
|
|
64
|
-
},
|
|
50
|
+
}, T = (t) => {
|
|
51
|
+
l.dispatchCommand(te, t);
|
|
52
|
+
}, U = () => {
|
|
65
53
|
l.update(() => {
|
|
66
|
-
const
|
|
67
|
-
if (!
|
|
54
|
+
const t = N();
|
|
55
|
+
if (!_(t))
|
|
68
56
|
return;
|
|
69
|
-
const c =
|
|
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 && !
|
|
60
|
+
for (; o !== null && !w(o); )
|
|
73
61
|
o = o.getParent();
|
|
74
|
-
|
|
62
|
+
w(o) && s.add(o);
|
|
75
63
|
}
|
|
76
|
-
const
|
|
77
|
-
for (const m of
|
|
64
|
+
const d = Array.from(s).reverse();
|
|
65
|
+
for (const m of d) {
|
|
78
66
|
const o = m.getParent();
|
|
79
|
-
if (!
|
|
67
|
+
if (!k(o))
|
|
80
68
|
continue;
|
|
81
|
-
const
|
|
82
|
-
for (const
|
|
83
|
-
|
|
84
|
-
const
|
|
85
|
-
if (o.insertAfter(
|
|
86
|
-
const
|
|
87
|
-
for (const
|
|
88
|
-
|
|
89
|
-
|
|
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
|
-
},
|
|
95
|
-
|
|
96
|
-
},
|
|
97
|
-
|
|
98
|
-
const
|
|
99
|
-
if (
|
|
100
|
-
if (
|
|
101
|
-
const
|
|
102
|
-
|
|
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
|
-
|
|
92
|
+
v(t, () => A());
|
|
105
93
|
}) : l.update(() => {
|
|
106
|
-
const
|
|
107
|
-
|
|
108
|
-
}),
|
|
94
|
+
const t = N();
|
|
95
|
+
_(t) && v(t, () => E());
|
|
96
|
+
}), x();
|
|
109
97
|
};
|
|
110
|
-
return
|
|
98
|
+
return S ? null : /* @__PURE__ */ L(
|
|
111
99
|
"div",
|
|
112
100
|
{
|
|
113
|
-
className:
|
|
114
|
-
[
|
|
101
|
+
className: a(e.toolbar, {
|
|
102
|
+
[e.toolbarIsActive]: S ? !1 : n.isActive
|
|
115
103
|
}),
|
|
116
|
-
ref:
|
|
104
|
+
ref: O,
|
|
117
105
|
children: [
|
|
118
|
-
|
|
106
|
+
n.isActive ? !n.disableRichText && /* @__PURE__ */ L(
|
|
119
107
|
"div",
|
|
120
108
|
{
|
|
121
|
-
className:
|
|
122
|
-
[
|
|
109
|
+
className: a(e.iconToolbar, {
|
|
110
|
+
[e.shortBar]: n.shortBar
|
|
123
111
|
}),
|
|
124
112
|
children: [
|
|
125
|
-
/* @__PURE__ */
|
|
113
|
+
/* @__PURE__ */ i(
|
|
126
114
|
"button",
|
|
127
115
|
{
|
|
128
|
-
onPointerDown:
|
|
129
|
-
onClick: () =>
|
|
116
|
+
onPointerDown: b,
|
|
117
|
+
onClick: () => T("bold"),
|
|
130
118
|
type: "button",
|
|
131
|
-
className:
|
|
119
|
+
className: a(e.toolbarItem, { [e.active]: B }),
|
|
132
120
|
"data-testid": "format-bold",
|
|
133
|
-
"aria-label":
|
|
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__ */
|
|
138
|
-
|
|
125
|
+
children: /* @__PURE__ */ i(
|
|
126
|
+
u,
|
|
139
127
|
{
|
|
140
128
|
name: "bold",
|
|
141
129
|
width: 24,
|
|
142
130
|
height: 24,
|
|
143
|
-
className:
|
|
131
|
+
className: a(e.format, e.bold)
|
|
144
132
|
}
|
|
145
133
|
)
|
|
146
134
|
}
|
|
147
135
|
),
|
|
148
|
-
/* @__PURE__ */
|
|
136
|
+
/* @__PURE__ */ i(
|
|
149
137
|
"button",
|
|
150
138
|
{
|
|
151
|
-
onPointerDown:
|
|
152
|
-
onClick: () =>
|
|
139
|
+
onPointerDown: b,
|
|
140
|
+
onClick: () => T("italic"),
|
|
153
141
|
type: "button",
|
|
154
|
-
className:
|
|
155
|
-
[
|
|
142
|
+
className: a(e.toolbarItem, {
|
|
143
|
+
[e.active]: $
|
|
156
144
|
}),
|
|
157
|
-
"aria-label":
|
|
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__ */
|
|
162
|
-
|
|
149
|
+
children: /* @__PURE__ */ i(
|
|
150
|
+
u,
|
|
163
151
|
{
|
|
164
152
|
name: "italic",
|
|
165
153
|
width: 24,
|
|
166
154
|
height: 24,
|
|
167
|
-
className:
|
|
155
|
+
className: a(e.format, e.italic)
|
|
168
156
|
}
|
|
169
157
|
)
|
|
170
158
|
}
|
|
171
159
|
),
|
|
172
|
-
/* @__PURE__ */
|
|
160
|
+
/* @__PURE__ */ i(
|
|
173
161
|
"button",
|
|
174
162
|
{
|
|
175
|
-
onPointerDown:
|
|
176
|
-
onClick: () =>
|
|
163
|
+
onPointerDown: b,
|
|
164
|
+
onClick: () => T("underline"),
|
|
177
165
|
type: "button",
|
|
178
|
-
className:
|
|
179
|
-
[
|
|
166
|
+
className: a(e.toolbarItem, {
|
|
167
|
+
[e.active]: K
|
|
180
168
|
}),
|
|
181
|
-
"aria-label":
|
|
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__ */
|
|
186
|
-
|
|
173
|
+
children: /* @__PURE__ */ i(
|
|
174
|
+
u,
|
|
187
175
|
{
|
|
188
176
|
name: "underline",
|
|
189
177
|
width: 24,
|
|
190
178
|
height: 24,
|
|
191
|
-
className:
|
|
179
|
+
className: a(e.format, e.underline)
|
|
192
180
|
}
|
|
193
181
|
)
|
|
194
182
|
}
|
|
195
183
|
),
|
|
196
|
-
/* @__PURE__ */
|
|
184
|
+
/* @__PURE__ */ i(
|
|
197
185
|
"button",
|
|
198
186
|
{
|
|
199
|
-
onPointerDown:
|
|
200
|
-
onClick: () =>
|
|
187
|
+
onPointerDown: b,
|
|
188
|
+
onClick: () => H(),
|
|
201
189
|
type: "button",
|
|
202
|
-
className:
|
|
203
|
-
[
|
|
190
|
+
className: a(e.toolbarItem, {
|
|
191
|
+
[e.active]: h === "quote"
|
|
204
192
|
}),
|
|
205
|
-
"aria-label":
|
|
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__ */
|
|
210
|
-
|
|
197
|
+
children: /* @__PURE__ */ i(
|
|
198
|
+
u,
|
|
211
199
|
{
|
|
212
200
|
name: "blockquote",
|
|
213
201
|
width: 24,
|
|
214
202
|
height: 24,
|
|
215
|
-
className:
|
|
203
|
+
className: a(e.format, e.quote)
|
|
216
204
|
}
|
|
217
205
|
)
|
|
218
206
|
}
|
|
219
207
|
),
|
|
220
|
-
/* @__PURE__ */
|
|
208
|
+
/* @__PURE__ */ i(
|
|
221
209
|
"button",
|
|
222
210
|
{
|
|
223
|
-
onPointerDown:
|
|
224
|
-
onClick: () =>
|
|
211
|
+
onPointerDown: b,
|
|
212
|
+
onClick: () => j(),
|
|
225
213
|
type: "button",
|
|
226
|
-
className:
|
|
227
|
-
[
|
|
214
|
+
className: a(e.toolbarItem, {
|
|
215
|
+
[e.active]: h === "ol"
|
|
228
216
|
}),
|
|
229
|
-
"aria-label":
|
|
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__ */
|
|
234
|
-
|
|
221
|
+
children: /* @__PURE__ */ i(
|
|
222
|
+
u,
|
|
235
223
|
{
|
|
236
224
|
name: "orderedList",
|
|
237
225
|
width: 24,
|
|
238
226
|
height: 24,
|
|
239
|
-
className:
|
|
227
|
+
className: a(e.format, e.numberedList)
|
|
240
228
|
}
|
|
241
229
|
)
|
|
242
230
|
}
|
|
243
231
|
),
|
|
244
|
-
!
|
|
232
|
+
!n.hideSourceAction && /* @__PURE__ */ i(
|
|
245
233
|
"button",
|
|
246
234
|
{
|
|
247
|
-
onPointerDown:
|
|
248
|
-
onClick:
|
|
235
|
+
onPointerDown: b,
|
|
236
|
+
onClick: n.onAddSource,
|
|
249
237
|
type: "button",
|
|
250
|
-
className:
|
|
251
|
-
"aria-label":
|
|
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__ */
|
|
256
|
-
|
|
243
|
+
children: /* @__PURE__ */ i(
|
|
244
|
+
u,
|
|
257
245
|
{
|
|
258
246
|
name: "link",
|
|
259
247
|
width: 20,
|
|
260
248
|
height: 20,
|
|
261
|
-
className:
|
|
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__ */
|
|
270
|
-
|
|
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:
|
|
275
|
-
className:
|
|
276
|
-
"aria-label":
|
|
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__ */
|
|
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
|
-
|
|
276
|
+
ye as ToolbarPlugin
|
|
289
277
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import '../../../assets/components/input/toggle_position/TogglePosition.module-
|
|
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:
|
|
6
|
+
secondLabelDefault: b
|
|
7
7
|
};
|
|
8
8
|
export {
|
|
9
9
|
e as container,
|
|
10
|
-
|
|
10
|
+
c as default,
|
|
11
11
|
a as firstLabelDefault,
|
|
12
12
|
l as label,
|
|
13
13
|
t as labelActive,
|
|
14
|
-
|
|
14
|
+
b as secondLabelDefault
|
|
15
15
|
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import '../../../../assets/components/list/paginated_list/action_bar/ActionBar.module-
|
|
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:
|
|
7
|
-
rightBarOneItem:
|
|
5
|
+
listSubtitle: a,
|
|
6
|
+
rightBar: _,
|
|
7
|
+
rightBarOneItem: i,
|
|
8
8
|
search: l,
|
|
9
|
-
tagList:
|
|
10
|
-
tagItem:
|
|
11
|
-
select:
|
|
9
|
+
tagList: g,
|
|
10
|
+
tagItem: r,
|
|
11
|
+
select: c
|
|
12
12
|
};
|
|
13
13
|
export {
|
|
14
|
-
|
|
14
|
+
n as default,
|
|
15
15
|
t as listHeader,
|
|
16
16
|
e as listHeaderOneItem,
|
|
17
|
-
|
|
17
|
+
a as listSubtitle,
|
|
18
18
|
s as listTitle,
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
_ as rightBar,
|
|
20
|
+
i as rightBarOneItem,
|
|
21
21
|
l as search,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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-
|
|
2
|
-
tabsWrapper:
|
|
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:
|
|
4
|
+
arrow: r,
|
|
5
5
|
arrowLeft: _,
|
|
6
6
|
arrowRight: n,
|
|
7
7
|
arrowHidden: o,
|
|
8
|
-
navItem:
|
|
8
|
+
navItem: c,
|
|
9
9
|
navLink: s,
|
|
10
10
|
active: e
|
|
11
11
|
};
|
|
12
12
|
export {
|
|
13
13
|
e as active,
|
|
14
|
-
|
|
14
|
+
r as arrow,
|
|
15
15
|
o as arrowHidden,
|
|
16
16
|
_ as arrowLeft,
|
|
17
17
|
n as arrowRight,
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
b as default,
|
|
19
|
+
c as navItem,
|
|
20
20
|
s as navLink,
|
|
21
21
|
a as navTabs,
|
|
22
|
-
|
|
22
|
+
t as tabsWrapper
|
|
23
23
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import '../../../assets/components/notification/notification_item/NotificationItem.module-
|
|
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:
|
|
7
|
-
notificationItemDate:
|
|
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
|
-
|
|
15
|
-
|
|
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-
|
|
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
|
-
|
|
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-
|
|
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:
|
|
10
|
+
progressBarContent: p
|
|
11
11
|
};
|
|
12
12
|
export {
|
|
13
13
|
_ as currentProgressBar,
|
|
14
|
-
|
|
14
|
+
i as default,
|
|
15
15
|
a as progressBar,
|
|
16
16
|
n as progressBarContainer,
|
|
17
|
-
|
|
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-
|
|
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:
|
|
7
|
-
proposalTitle:
|
|
8
|
-
proposalContent:
|
|
9
|
-
proposalSourcesList:
|
|
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
|
-
|
|
15
|
+
a as fixedHeight,
|
|
16
16
|
t as flash,
|
|
17
17
|
o as proposalBoxContainer,
|
|
18
18
|
e as proposalBoxContent,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
i as proposalContent,
|
|
20
|
+
_ as proposalSourcesList,
|
|
21
|
+
p as proposalTitle,
|
|
22
|
+
n as withMinHeight
|
|
23
23
|
};
|