@logora/debate 0.4.102 → 0.4.103
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as C, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as
|
|
2
|
+
import { useRef as ke, useState as u, useEffect as p, Suspense as je, lazy as ze } from "react";
|
|
3
3
|
import { useIntl as Oe, FormattedMessage as he } from "react-intl";
|
|
4
4
|
import { useLocation as Je } from "react-router";
|
|
5
5
|
import x from "classnames";
|
|
@@ -11,16 +11,17 @@ import { useInput as He } from "../input_provider/useInput.js";
|
|
|
11
11
|
import { useAuth as Qe } from "../../auth/use_auth/useAuth.js";
|
|
12
12
|
import { useFormValidation as Xe } from "../../forms/use_form_validation/useFormValidation.js";
|
|
13
13
|
import { useResponsive as Ze } from "../../hooks/use_responsive/useResponsive.js";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
|
|
14
|
+
import { useScrollToEditor as et } from "../use_scroll_to_editor/useScrollToEditor.js";
|
|
15
|
+
import { useSessionStorageState as tt } from "../../hooks/use_session_storage_state/useSessionStorageState.js";
|
|
16
|
+
import { useAuthRequired as nt } from "../../hooks/use_auth_required/useAuthRequired.js";
|
|
17
|
+
import { useModal as at } from "../../dialog/modal/useModal.js";
|
|
18
|
+
import { useToast as st } from "../../dialog/toast_provider/useToast.js";
|
|
19
|
+
import { TogglePosition as it } from "../toggle_position/TogglePosition.js";
|
|
20
|
+
import { Avatar as ot } from "../../user/avatar/Avatar.js";
|
|
21
|
+
import { AuthorBox as rt } from "../../user/author_box/AuthorBox.js";
|
|
22
|
+
import { TextEditor as ut } from "../text_editor/TextEditor.js";
|
|
23
|
+
import { Icon as dt } from "../../icons/icon/Icon.js";
|
|
24
|
+
const lt = ze(() => import("../../modal/side_modal/index.js").then((N) => ({ default: N.SideModal }))), Et = ({
|
|
24
25
|
argumentListId: N,
|
|
25
26
|
avatarSize: pe = 48,
|
|
26
27
|
disabled: J = !1,
|
|
@@ -50,12 +51,12 @@ const dt = ze(() => import("../../modal/side_modal/index.js").then((N) => ({ def
|
|
|
50
51
|
inputContent: B,
|
|
51
52
|
setInputContent: te,
|
|
52
53
|
setInputRichContent: Se
|
|
53
|
-
} = He(), { isLoggedIn: S, currentUser: d } = Qe(), { errors: E, validate: $ } = Xe(), { isMobile: m } = Ze(), Ie = Je(), ne =
|
|
54
|
+
} = He(), { isLoggedIn: S, currentUser: d } = Qe(), { errors: E, validate: $ } = Xe(), { isMobile: m } = Ze(), Ie = Je(), ne = ke(null), y = et(ne), [V, q] = u([]), [D, U] = u(""), [ae, W] = u(null), [l, b] = u(null), [se, ie] = u(null), [oe, re] = u(!1), [I, ue] = u(!1), [A, de] = u({}), [xe, Y] = u(!1), [Ne, Te] = u(0), [f, Le] = tt(
|
|
54
55
|
"userSide",
|
|
55
56
|
{}
|
|
56
57
|
), [g, ye] = u(
|
|
57
58
|
!S && v?.actions?.disableInputForVisitor
|
|
58
|
-
),
|
|
59
|
+
), k = nt(), { showModal: Fe } = at(), { toast: j } = st() || {}, le = new URLSearchParams(
|
|
59
60
|
typeof window < "u" ? window.location.search : Ie.search
|
|
60
61
|
);
|
|
61
62
|
p(() => {
|
|
@@ -68,13 +69,13 @@ const dt = ze(() => import("../../modal/side_modal/index.js").then((N) => ({ def
|
|
|
68
69
|
let e = null;
|
|
69
70
|
typeof window < "u" && (e = le.get("positionId")), w && w != a[2]?.id && a?.find((t) => t.id === w) ? b(w) : e && e != a[2]?.id ? b(e) : f && f.groupId == _ && f.positionId != a[2]?.id && b(f.positionId);
|
|
70
71
|
}, [w]), p(() => {
|
|
71
|
-
Q &&
|
|
72
|
+
Q && Y(!0);
|
|
72
73
|
}, [Q]), p(() => {
|
|
73
|
-
P && (O(),
|
|
74
|
+
P && (O(), Y(!0), y());
|
|
74
75
|
}, [P]), p(() => {
|
|
75
76
|
if (typeof window < "u") {
|
|
76
77
|
const e = be || le.get("initArgument");
|
|
77
|
-
(e === !0 || e === "true") && (
|
|
78
|
+
(e === !0 || e === "true") && (Y(!0), y(), Ue());
|
|
78
79
|
}
|
|
79
80
|
}, []), p(() => {
|
|
80
81
|
Z && !i && (y(), ee(!1));
|
|
@@ -82,17 +83,15 @@ const dt = ze(() => import("../../modal/side_modal/index.js").then((N) => ({ def
|
|
|
82
83
|
B?.id && !i && (Pe(B), ee(!0));
|
|
83
84
|
}, [B]);
|
|
84
85
|
const Pe = (e) => {
|
|
85
|
-
de(e), ue(!0),
|
|
86
|
-
}, y = () => {
|
|
87
|
-
ne.current.scrollIntoView({ behavior: "smooth", block: "center" });
|
|
86
|
+
de(e), ue(!0), q(e.sources), U(e.content), W(e.rich_content), ie(e.id), y(), b(e.position?.id), JSON.parse(e.rich_content).hasOwnProperty("root") ? Se(e.rich_content) : te(e.content);
|
|
88
87
|
}, me = () => {
|
|
89
|
-
|
|
88
|
+
U(""), W(null), de({}), ie(null), q([]), Te((e) => e + 1), te(null);
|
|
90
89
|
}, Be = (e) => {
|
|
91
90
|
b(e), ge(e);
|
|
92
91
|
}, Ee = () => {
|
|
93
92
|
Fe(
|
|
94
93
|
/* @__PURE__ */ s(je, { fallback: null, children: /* @__PURE__ */ s(
|
|
95
|
-
|
|
94
|
+
lt,
|
|
96
95
|
{
|
|
97
96
|
modalTitle: r.formatMessage({
|
|
98
97
|
id: "modal.side_modal.modal_title",
|
|
@@ -107,11 +106,11 @@ const dt = ze(() => import("../../modal/side_modal/index.js").then((N) => ({ def
|
|
|
107
106
|
) })
|
|
108
107
|
);
|
|
109
108
|
}, $e = () => {
|
|
110
|
-
S ? se ?
|
|
109
|
+
S ? se ? De() : !a || a?.length === 0 || !T?.find((e) => e?.id === l) && l || z && i ? ge(i && z && a[0]?.id) : Ee() : k({ loginAction: "argument" });
|
|
111
110
|
}, Ve = (e, t) => {
|
|
112
|
-
g ?
|
|
113
|
-
},
|
|
114
|
-
|
|
111
|
+
g ? k({ loginAction: "argument" }) : (U(e), W(t), $({ content: e }, [{ content: ["url", null] }]));
|
|
112
|
+
}, qe = (e) => {
|
|
113
|
+
q(e);
|
|
115
114
|
}, fe = [
|
|
116
115
|
{ content: ["length", 3] },
|
|
117
116
|
{ content: ["required", null] },
|
|
@@ -119,7 +118,7 @@ const dt = ze(() => import("../../modal/side_modal/index.js").then((N) => ({ def
|
|
|
119
118
|
...!a || a?.length === 0 ? [] : [{ position_id: ["required", null] }]
|
|
120
119
|
], ge = (e) => {
|
|
121
120
|
const t = e || l, c = {
|
|
122
|
-
content:
|
|
121
|
+
content: D,
|
|
123
122
|
rich_content: ae,
|
|
124
123
|
group_id: _,
|
|
125
124
|
...K && { group_type: K },
|
|
@@ -151,8 +150,8 @@ const dt = ze(() => import("../../modal/side_modal/index.js").then((N) => ({ def
|
|
|
151
150
|
const h = o.data.data.resource;
|
|
152
151
|
let F = N;
|
|
153
152
|
t && !m && (F = `argumentList${h.position.id}`), R?.(
|
|
154
|
-
|
|
155
|
-
a.find((
|
|
153
|
+
D,
|
|
154
|
+
a.find((Ye) => Ye.id === t) || null
|
|
156
155
|
), L.add(F, [h]), j(
|
|
157
156
|
r.formatMessage({
|
|
158
157
|
id: "alert.argument_create",
|
|
@@ -178,9 +177,9 @@ const dt = ze(() => import("../../modal/side_modal/index.js").then((N) => ({ def
|
|
|
178
177
|
);
|
|
179
178
|
}
|
|
180
179
|
}));
|
|
181
|
-
},
|
|
180
|
+
}, De = () => {
|
|
182
181
|
const e = {
|
|
183
|
-
content:
|
|
182
|
+
content: D,
|
|
184
183
|
rich_content: ae,
|
|
185
184
|
source_ids: V?.map((t) => t.id),
|
|
186
185
|
...l && { position_id: l }
|
|
@@ -203,7 +202,7 @@ const dt = ze(() => import("../../modal/side_modal/index.js").then((N) => ({ def
|
|
|
203
202
|
}), me();
|
|
204
203
|
}
|
|
205
204
|
});
|
|
206
|
-
},
|
|
205
|
+
}, Ue = () => {
|
|
207
206
|
if (!oe) {
|
|
208
207
|
re(!0);
|
|
209
208
|
const e = setTimeout(() => {
|
|
@@ -212,8 +211,8 @@ const dt = ze(() => import("../../modal/side_modal/index.js").then((N) => ({ def
|
|
|
212
211
|
return () => clearTimeout(e);
|
|
213
212
|
}
|
|
214
213
|
}, O = () => {
|
|
215
|
-
g ?
|
|
216
|
-
},
|
|
214
|
+
g ? k({ loginAction: "argument" }) : ue(!0);
|
|
215
|
+
}, We = () => {
|
|
217
216
|
const e = T.find(
|
|
218
217
|
(t) => t.id === l
|
|
219
218
|
);
|
|
@@ -248,7 +247,7 @@ const dt = ze(() => import("../../modal/side_modal/index.js").then((N) => ({ def
|
|
|
248
247
|
defaultMessage: "Your position"
|
|
249
248
|
}) }),
|
|
250
249
|
/* @__PURE__ */ s(
|
|
251
|
-
|
|
250
|
+
it,
|
|
252
251
|
{
|
|
253
252
|
activeLabel: l === a[0].id ? 0 : l === a[1].id ? 1 : null,
|
|
254
253
|
firstLabel: a[0],
|
|
@@ -273,14 +272,14 @@ const dt = ze(() => import("../../modal/side_modal/index.js").then((N) => ({ def
|
|
|
273
272
|
[n.argumentAuthorContainerActivated]: !m && I || i
|
|
274
273
|
}),
|
|
275
274
|
children: !m && I || i ? /* @__PURE__ */ s(
|
|
276
|
-
|
|
275
|
+
ot,
|
|
277
276
|
{
|
|
278
277
|
avatarUrl: d.image_url,
|
|
279
278
|
userName: d.full_name,
|
|
280
279
|
size: pe
|
|
281
280
|
}
|
|
282
281
|
) : /* @__PURE__ */ s(
|
|
283
|
-
|
|
282
|
+
rt,
|
|
284
283
|
{
|
|
285
284
|
fullName: d?.full_name || r.formatMessage({ id: "default_author.full_name" }),
|
|
286
285
|
avatarUrl: d?.image_url,
|
|
@@ -300,13 +299,13 @@ const dt = ze(() => import("../../modal/side_modal/index.js").then((N) => ({ def
|
|
|
300
299
|
}),
|
|
301
300
|
children: [
|
|
302
301
|
/* @__PURE__ */ s(
|
|
303
|
-
|
|
302
|
+
ut,
|
|
304
303
|
{
|
|
305
304
|
handleChange: (e, t) => {
|
|
306
305
|
Ve(e, t);
|
|
307
306
|
},
|
|
308
307
|
handleSourcesChange: (e) => {
|
|
309
|
-
|
|
308
|
+
qe(e);
|
|
310
309
|
},
|
|
311
310
|
placeholder: ve,
|
|
312
311
|
"aria-label": r.formatMessage({
|
|
@@ -345,7 +344,7 @@ const dt = ze(() => import("../../modal/side_modal/index.js").then((N) => ({ def
|
|
|
345
344
|
),
|
|
346
345
|
children: [
|
|
347
346
|
/* @__PURE__ */ s(
|
|
348
|
-
|
|
347
|
+
dt,
|
|
349
348
|
{
|
|
350
349
|
name: "announcement",
|
|
351
350
|
className: n.warningIcon,
|
|
@@ -353,7 +352,7 @@ const dt = ze(() => import("../../modal/side_modal/index.js").then((N) => ({ def
|
|
|
353
352
|
width: 20
|
|
354
353
|
}
|
|
355
354
|
),
|
|
356
|
-
/* @__PURE__ */ s("div", { className: n.argumentInputWarningText, children:
|
|
355
|
+
/* @__PURE__ */ s("div", { className: n.argumentInputWarningText, children: We() })
|
|
357
356
|
]
|
|
358
357
|
}
|
|
359
358
|
),
|
|
@@ -394,5 +393,5 @@ const dt = ze(() => import("../../modal/side_modal/index.js").then((N) => ({ def
|
|
|
394
393
|
] });
|
|
395
394
|
};
|
|
396
395
|
export {
|
|
397
|
-
|
|
396
|
+
Et as ArgumentInput
|
|
398
397
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { useRef as t, useCallback as c, useEffect as i } from "react";
|
|
2
|
+
const u = (e) => {
|
|
3
|
+
const r = t(null), o = c(() => {
|
|
4
|
+
window.cancelAnimationFrame(r.current), r.current = window.requestAnimationFrame(() => {
|
|
5
|
+
r.current = window.requestAnimationFrame(() => {
|
|
6
|
+
const n = e?.current;
|
|
7
|
+
n && n.scrollIntoView({ behavior: "smooth", block: "center" });
|
|
8
|
+
});
|
|
9
|
+
});
|
|
10
|
+
}, [e]);
|
|
11
|
+
return i(
|
|
12
|
+
() => () => {
|
|
13
|
+
window.cancelAnimationFrame(r.current);
|
|
14
|
+
},
|
|
15
|
+
[]
|
|
16
|
+
), o;
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
u as useScrollToEditor
|
|
20
|
+
};
|
package/dist/index.js
CHANGED
|
@@ -11,11 +11,11 @@ import { AdUnit as g } from "./components/ad/ad_unit/AdUnit.js";
|
|
|
11
11
|
import { AnnouncementDialog as B } from "./components/dialog/announcement_dialog/AnnouncementDialog.js";
|
|
12
12
|
import { Argument as A } from "./components/argument/argument/Argument.js";
|
|
13
13
|
import { ArgumentInput as h } from "./components/input/argument_input/ArgumentInput.js";
|
|
14
|
-
import { ArgumentSummaryBox as
|
|
14
|
+
import { ArgumentSummaryBox as I } from "./components/summary/argument_summary_box/ArgumentSummaryBox.js";
|
|
15
15
|
import { AuthContext as P } from "./components/auth/use_auth/AuthContext.js";
|
|
16
16
|
import { AuthInitializer as M } from "./components/auth/auth_initializer/AuthInitializer.js";
|
|
17
17
|
import { AuthModal as b } from "./components/auth/auth_modal/AuthModal.js";
|
|
18
|
-
import { AuthProvider as
|
|
18
|
+
import { AuthProvider as D, withAuth as R } from "./components/auth/use_auth/AuthProvider.js";
|
|
19
19
|
import { AuthProviderFactory as k } from "./components/auth/providers/AuthProviderFactory.js";
|
|
20
20
|
import { AuthorBox as w } from "./components/user/author_box/AuthorBox.js";
|
|
21
21
|
import { Avatar as V } from "./components/user/avatar/Avatar.js";
|
|
@@ -36,11 +36,11 @@ import { DataProviderContext as lo } from "./components/data/data_provider/DataP
|
|
|
36
36
|
import { DebateBox as co } from "./components/debate/debate_box/DebateBox.js";
|
|
37
37
|
import { DialogBox as So } from "./components/dialog/dialog_box/DialogBox.js";
|
|
38
38
|
import { Drawer as Co } from "./components/dialog/drawer/Drawer.js";
|
|
39
|
-
import { Dropdown as
|
|
39
|
+
import { Dropdown as To } from "./components/dialog/dropdown/Dropdown.js";
|
|
40
40
|
import { EMAIL_CONSENT_STORAGE_KEY as Lo, useAuthActions as Po } from "./components/auth/use_auth/useAuthActions.js";
|
|
41
41
|
import { EmbedHeader as Mo } from "./components/embed/embed_header/EmbedHeader.js";
|
|
42
42
|
import { ExpandableText as bo } from "./components/text/expandable_text/ExpandableText.js";
|
|
43
|
-
import { FacebookLoginButton as
|
|
43
|
+
import { FacebookLoginButton as Do } from "./components/auth/facebook_login_button/FacebookLoginButton.js";
|
|
44
44
|
import { FollowButton as Oo } from "./components/follow/follow_button/FollowButton.js";
|
|
45
45
|
import { Form as No } from "./components/forms/form/form.js";
|
|
46
46
|
import { FormContext as yo } from "./components/forms/form/form-context.js";
|
|
@@ -61,11 +61,11 @@ import { Link as lr } from "./components/action/link/Link.js";
|
|
|
61
61
|
import { ListProvider as cr } from "./components/list/list_provider/ListProvider.js";
|
|
62
62
|
import { Loader as Sr } from "./components/progress/loader/Loader.js";
|
|
63
63
|
import { Location as Cr } from "./components/util/location/Location.js";
|
|
64
|
-
import { LoginForm as
|
|
64
|
+
import { LoginForm as Tr } from "./components/auth/login_form/LoginForm.js";
|
|
65
65
|
import { Message as Lr } from "./components/input/text_input/message.js";
|
|
66
66
|
import { Modal as vr } from "./components/dialog/modal/Modal.js";
|
|
67
67
|
import { ModalContext as Fr, ModalProvider as br } from "./components/dialog/modal/ModalProvider.js";
|
|
68
|
-
import { NavbarButton as
|
|
68
|
+
import { NavbarButton as Dr } from "./components/navbar/navbar_button/NavbarButton.js";
|
|
69
69
|
import { NavbarModal as Or } from "./components/navbar/navbar_modal/NavbarModal.js";
|
|
70
70
|
import { NotificationItem as Nr } from "./components/notification/notification_item/NotificationItem.js";
|
|
71
71
|
import { NotificationMenu as yr } from "./components/notification/notification_menu/NotificationMenu.js";
|
|
@@ -86,11 +86,11 @@ import { ResponsiveProvider as le } from "./components/hooks/use_responsive/Resp
|
|
|
86
86
|
import { SSOForm as ce } from "./components/auth/sso_form/SSOForm.js";
|
|
87
87
|
import { ScrollToTop as Se } from "./components/tools/scroll_to_top/ScrollToTop.js";
|
|
88
88
|
import { SearchInput as Ce } from "./components/input/search_input/SearchInput.js";
|
|
89
|
-
import { SectionBox as
|
|
89
|
+
import { SectionBox as Te } from "./components/section/section_box/SectionBox.js";
|
|
90
90
|
import { Select as Le } from "./components/input/select/Select.js";
|
|
91
91
|
import { ShareBox as ve } from "./components/share/share_box/ShareBox.js";
|
|
92
92
|
import { ShareButton as Fe } from "./components/share/share_button/ShareButton.js";
|
|
93
|
-
import { ShareModal as
|
|
93
|
+
import { ShareModal as Ee } from "./components/share/share_modal/ShareModal.js";
|
|
94
94
|
import { SideModal as Re } from "./components/modal/side_modal/SideModal.js";
|
|
95
95
|
import { SignupForm as ke } from "./components/auth/signup_form/SignupForm.js";
|
|
96
96
|
import { SocialAuthForm as we } from "./components/auth/social_auth_form/SocialAuthForm.js";
|
|
@@ -113,11 +113,11 @@ import { TextEditor as lt } from "./components/input/text_editor/TextEditor.js";
|
|
|
113
113
|
import { TextInput as ct } from "./components/input/text_input/TextInput.js";
|
|
114
114
|
import { Toast as St } from "./components/dialog/toast/Toast.js";
|
|
115
115
|
import { ToastProvider as Ct } from "./components/dialog/toast_provider/ToastProvider.js";
|
|
116
|
-
import { Toggle as
|
|
116
|
+
import { Toggle as Tt } from "./components/input/toggle/Toggle.js";
|
|
117
117
|
import { TogglePosition as Lt } from "./components/input/toggle_position/TogglePosition.js";
|
|
118
118
|
import { Tooltip as vt } from "./components/dialog/tooltip/Tooltip.js";
|
|
119
119
|
import { TopArguments as Ft } from "./components/argument/top_arguments/TopArguments.js";
|
|
120
|
-
import { TranslatedContent as
|
|
120
|
+
import { TranslatedContent as Et } from "./components/translation/translated_content/TranslatedContent.js";
|
|
121
121
|
import { TranslationButton as Rt } from "./components/translation/translation_button/TranslationButton.js";
|
|
122
122
|
import { UpDownVoteBox as kt } from "./components/vote/up_down_vote_box/UpDownVoteBox.js";
|
|
123
123
|
import { UserBox as wt } from "./components/user/user_box/UserBox.js";
|
|
@@ -139,11 +139,11 @@ import { makeStorage as gx } from "./components/auth/use_auth/AuthStorage.js";
|
|
|
139
139
|
import { uniqueBy as Bx } from "./components/util/unique_by/uniqueBy.js";
|
|
140
140
|
import { useAuth as Ax } from "./components/auth/use_auth/useAuth.js";
|
|
141
141
|
import { useAuthInterceptor as hx } from "./components/auth/use_auth/useAuthInterceptor.js";
|
|
142
|
-
import { useAuthRequired as
|
|
142
|
+
import { useAuthRequired as Ix } from "./components/hooks/use_auth_required/useAuthRequired.js";
|
|
143
143
|
import { useConfig as Px } from "./components/data/config_provider/useConfig.js";
|
|
144
144
|
import { useCssTheme as Mx } from "./components/hooks/use_css_theme/useCssTheme.js";
|
|
145
145
|
import { useData as bx } from "./components/data/data_provider/useData.js";
|
|
146
|
-
import { useDataProvider as
|
|
146
|
+
import { useDataProvider as Dx } from "./components/data/data_provider/useDataProvider.js";
|
|
147
147
|
import { useDeleteContent as Ox } from "./components/user_content/use_delete_content/useDeleteContent.js";
|
|
148
148
|
import { useFollow as Nx } from "./components/follow/use_follow/useFollow.js";
|
|
149
149
|
import { useFontLoader as yx } from "./components/hooks/use_font_loader/useFontLoader.js";
|
|
@@ -161,22 +161,23 @@ import { useReportContent as mm } from "./components/user_content/use_report_con
|
|
|
161
161
|
import { useResponsive as fm } from "./components/hooks/use_responsive/useResponsive.js";
|
|
162
162
|
import { useRichContent as am } from "./components/argument/argument/useRichContent.js";
|
|
163
163
|
import { useRoutes as sm } from "./components/data/config_provider/useRoutes.js";
|
|
164
|
-
import {
|
|
165
|
-
import {
|
|
166
|
-
import {
|
|
167
|
-
import {
|
|
168
|
-
import {
|
|
164
|
+
import { useScrollToEditor as dm } from "./components/input/use_scroll_to_editor/useScrollToEditor.js";
|
|
165
|
+
import { useSessionStorageState as gm } from "./components/hooks/use_session_storage_state/useSessionStorageState.js";
|
|
166
|
+
import { useToast as Bm } from "./components/dialog/toast_provider/useToast.js";
|
|
167
|
+
import { useVote as Am } from "./components/vote/use_vote/useVote.js";
|
|
168
|
+
import { utf8ToBase64url as hm } from "./components/auth/use_auth/base64.js";
|
|
169
|
+
import { withConfig as Im } from "./components/data/config_provider/withConfig.js";
|
|
169
170
|
export {
|
|
170
171
|
d as ActionBar,
|
|
171
172
|
g as AdUnit,
|
|
172
173
|
B as AnnouncementDialog,
|
|
173
174
|
A as Argument,
|
|
174
175
|
h as ArgumentInput,
|
|
175
|
-
|
|
176
|
+
I as ArgumentSummaryBox,
|
|
176
177
|
P as AuthContext,
|
|
177
178
|
M as AuthInitializer,
|
|
178
179
|
b as AuthModal,
|
|
179
|
-
|
|
180
|
+
D as AuthProvider,
|
|
180
181
|
k as AuthProviderFactory,
|
|
181
182
|
w as AuthorBox,
|
|
182
183
|
V as Avatar,
|
|
@@ -199,11 +200,11 @@ export {
|
|
|
199
200
|
co as DebateBox,
|
|
200
201
|
So as DialogBox,
|
|
201
202
|
Co as Drawer,
|
|
202
|
-
|
|
203
|
+
To as Dropdown,
|
|
203
204
|
Lo as EMAIL_CONSENT_STORAGE_KEY,
|
|
204
205
|
Mo as EmbedHeader,
|
|
205
206
|
bo as ExpandableText,
|
|
206
|
-
|
|
207
|
+
Do as FacebookLoginButton,
|
|
207
208
|
Oo as FollowButton,
|
|
208
209
|
No as Form,
|
|
209
210
|
yo as FormContext,
|
|
@@ -225,12 +226,12 @@ export {
|
|
|
225
226
|
cr as ListProvider,
|
|
226
227
|
Sr as Loader,
|
|
227
228
|
Cr as Location,
|
|
228
|
-
|
|
229
|
+
Tr as LoginForm,
|
|
229
230
|
Lr as Message,
|
|
230
231
|
vr as Modal,
|
|
231
232
|
Fr as ModalContext,
|
|
232
233
|
br as ModalProvider,
|
|
233
|
-
|
|
234
|
+
Dr as NavbarButton,
|
|
234
235
|
Or as NavbarModal,
|
|
235
236
|
Nr as NotificationItem,
|
|
236
237
|
yr as NotificationMenu,
|
|
@@ -251,11 +252,11 @@ export {
|
|
|
251
252
|
ce as SSOForm,
|
|
252
253
|
Se as ScrollToTop,
|
|
253
254
|
Ce as SearchInput,
|
|
254
|
-
|
|
255
|
+
Te as SectionBox,
|
|
255
256
|
Le as Select,
|
|
256
257
|
ve as ShareBox,
|
|
257
258
|
Fe as ShareButton,
|
|
258
|
-
|
|
259
|
+
Ee as ShareModal,
|
|
259
260
|
Re as SideModal,
|
|
260
261
|
ke as SignupForm,
|
|
261
262
|
we as SocialAuthForm,
|
|
@@ -278,11 +279,11 @@ export {
|
|
|
278
279
|
ct as TextInput,
|
|
279
280
|
St as Toast,
|
|
280
281
|
Ct as ToastProvider,
|
|
281
|
-
|
|
282
|
+
Tt as Toggle,
|
|
282
283
|
Lt as TogglePosition,
|
|
283
284
|
vt as Tooltip,
|
|
284
285
|
Ft as TopArguments,
|
|
285
|
-
|
|
286
|
+
Et as TranslatedContent,
|
|
286
287
|
Rt as TranslationButton,
|
|
287
288
|
kt as UpDownVoteBox,
|
|
288
289
|
wt as UserBox,
|
|
@@ -320,11 +321,11 @@ export {
|
|
|
320
321
|
Ax as useAuth,
|
|
321
322
|
Po as useAuthActions,
|
|
322
323
|
hx as useAuthInterceptor,
|
|
323
|
-
|
|
324
|
+
Ix as useAuthRequired,
|
|
324
325
|
Px as useConfig,
|
|
325
326
|
Mx as useCssTheme,
|
|
326
327
|
bx as useData,
|
|
327
|
-
|
|
328
|
+
Dx as useDataProvider,
|
|
328
329
|
Ox as useDeleteContent,
|
|
329
330
|
Nx as useFollow,
|
|
330
331
|
yx as useFontLoader,
|
|
@@ -343,11 +344,12 @@ export {
|
|
|
343
344
|
fm as useResponsive,
|
|
344
345
|
am as useRichContent,
|
|
345
346
|
sm as useRoutes,
|
|
346
|
-
dm as
|
|
347
|
-
gm as
|
|
347
|
+
dm as useScrollToEditor,
|
|
348
|
+
gm as useSessionStorageState,
|
|
349
|
+
Bm as useToast,
|
|
348
350
|
ax as useTranslatedContent,
|
|
349
|
-
|
|
350
|
-
|
|
351
|
+
Am as useVote,
|
|
352
|
+
hm as utf8ToBase64url,
|
|
351
353
|
R as withAuth,
|
|
352
|
-
|
|
354
|
+
Im as withConfig
|
|
353
355
|
};
|