@logora/debate 0.4.41 → 0.4.43
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,47 +1,46 @@
|
|
|
1
|
-
import { jsx as l, Fragment as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { useConfig as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { OnboardingModal as j } from "../../user/onboarding_modal/OnboardingModal.js";
|
|
1
|
+
import { jsx as l, Fragment as L } from "react/jsx-runtime";
|
|
2
|
+
import { useState as O, useEffect as g } from "react";
|
|
3
|
+
import { useConfig as U } from "../../data/config_provider/useConfig.js";
|
|
4
|
+
import { useAuthInterceptor as y } from "../use_auth/useAuthInterceptor.js";
|
|
5
|
+
import { authTokenHandler as _ } from "../use_auth/authTokenHandler.js";
|
|
6
|
+
import { useAuthActions as q } from "../use_auth/useAuthActions.js";
|
|
7
|
+
import { useAuthRequired as I } from "../../hooks/use_auth_required/useAuthRequired.js";
|
|
8
|
+
import { AuthProviderFactory as S } from "../providers/AuthProviderFactory.js";
|
|
9
|
+
import { OnboardingModal as T } from "../../user/onboarding_modal/OnboardingModal.js";
|
|
10
|
+
import { saveOnboardingBeforeLogin as z } from "../../user/onboarding_modal/useOnboarding.js";
|
|
12
11
|
import { httpClient as u } from "../../data/axios_client/httpClient.js";
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
const [
|
|
12
|
+
const G = ({ authUrl: r, authType: n, provider: p, assertion: w }) => {
|
|
13
|
+
const i = "logora_user_token", e = U();
|
|
14
|
+
y(u, r, i);
|
|
15
|
+
const [v, c] = O(!1), { getToken: A, removeToken: C } = _(
|
|
17
16
|
u,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
), { loginUser: m, logoutUser: b, fetchUser:
|
|
17
|
+
r,
|
|
18
|
+
i
|
|
19
|
+
), { loginUser: m, logoutUser: b, fetchUser: P } = q(
|
|
21
20
|
u,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
), h =
|
|
21
|
+
r,
|
|
22
|
+
i
|
|
23
|
+
), h = I();
|
|
25
24
|
g(() => {
|
|
26
|
-
|
|
25
|
+
s();
|
|
27
26
|
}, []), g(() => {
|
|
28
27
|
if (typeof window < "u")
|
|
29
|
-
return window.addEventListener("logora:authentication:require", h), window.addEventListener("logora:authentication:refresh",
|
|
30
|
-
window.removeEventListener("logora:authentication:require", h), window.removeEventListener("logora:authentication:refresh",
|
|
28
|
+
return window.addEventListener("logora:authentication:require", h), window.addEventListener("logora:authentication:refresh", s), () => {
|
|
29
|
+
window.removeEventListener("logora:authentication:require", h), window.removeEventListener("logora:authentication:refresh", s);
|
|
31
30
|
};
|
|
32
31
|
}, []);
|
|
33
|
-
const
|
|
34
|
-
const o = f(), t =
|
|
32
|
+
const s = () => {
|
|
33
|
+
const o = f(), t = A();
|
|
35
34
|
if (t) {
|
|
36
|
-
const
|
|
37
|
-
o.isSameUser(
|
|
35
|
+
const a = t.session_id;
|
|
36
|
+
o.isSameUser(a) ? P() : (C(), d(o));
|
|
38
37
|
} else
|
|
39
38
|
d(o);
|
|
40
39
|
}, d = (o) => {
|
|
41
40
|
if (o.shouldInitAuth()) {
|
|
42
41
|
const t = o.getAuthorizationParams();
|
|
43
42
|
if (t) {
|
|
44
|
-
if (
|
|
43
|
+
if (n !== "social" && n !== "oauth2_server" && e.auth?.showOnboardingBeforeLogin === !0) {
|
|
45
44
|
c(!0);
|
|
46
45
|
return;
|
|
47
46
|
}
|
|
@@ -49,15 +48,15 @@ const X = ({ authUrl: n, authType: i, provider: p, assertion: w }) => {
|
|
|
49
48
|
}
|
|
50
49
|
} else
|
|
51
50
|
b();
|
|
52
|
-
},
|
|
53
|
-
const
|
|
54
|
-
|
|
55
|
-
}, f = () =>
|
|
56
|
-
return /* @__PURE__ */ l(
|
|
57
|
-
|
|
51
|
+
}, k = (o, t) => {
|
|
52
|
+
const E = f().getAuthorizationParams();
|
|
53
|
+
z(e.shortname, t), c(!1), m(E);
|
|
54
|
+
}, f = () => S.create(n, p, w);
|
|
55
|
+
return /* @__PURE__ */ l(L, { children: v && /* @__PURE__ */ l(
|
|
56
|
+
T,
|
|
58
57
|
{
|
|
59
58
|
pendingAuth: !0,
|
|
60
|
-
onConsentConfirmed:
|
|
59
|
+
onConsentConfirmed: k,
|
|
61
60
|
showTerms: e.auth?.hideCgu !== !0,
|
|
62
61
|
showEmailConsent: e.auth?.showEmailConsent,
|
|
63
62
|
termsUrl: e.provider?.cguUrl || "https://www.logora.com/blog-posts/cgu",
|
|
@@ -66,5 +65,5 @@ const X = ({ authUrl: n, authType: i, provider: p, assertion: w }) => {
|
|
|
66
65
|
) });
|
|
67
66
|
};
|
|
68
67
|
export {
|
|
69
|
-
|
|
68
|
+
G as AuthInitializer
|
|
70
69
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as a, jsxs as d, Fragment as O } from "react/jsx-runtime";
|
|
2
2
|
import { useState as l } from "react";
|
|
3
3
|
import { useIntl as ee, FormattedMessage as ae } from "react-intl";
|
|
4
|
-
import
|
|
4
|
+
import s from "./OnboardingModal.module.scss.js";
|
|
5
5
|
import { useAuth as te } from "../../auth/use_auth/useAuth.js";
|
|
6
6
|
import { useDataProvider as se } from "../../data/data_provider/useDataProvider.js";
|
|
7
7
|
import { useConfig as re } from "../../data/config_provider/useConfig.js";
|
|
@@ -31,10 +31,10 @@ const Se = ({
|
|
|
31
31
|
), [_, q] = l(o.currentUser.last_name || ""), [h, E] = l(o.currentUser.language), [z, v] = l(!1), [C, x] = l(
|
|
32
32
|
o.currentUser.image_url
|
|
33
33
|
), [m, T] = l(null), [k, P] = l(!1), [V, W] = l(!1), { isMobile: w } = ie(), { errors: c, validate: G } = le(), { hideModal: I } = oe(), [b, H] = l(!1), [M, J] = l(!1), K = (e) => {
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
x(
|
|
37
|
-
},
|
|
34
|
+
const t = new FileReader();
|
|
35
|
+
t.onloadend = () => {
|
|
36
|
+
x(t.result);
|
|
37
|
+
}, t.readAsDataURL(e);
|
|
38
38
|
}, Q = [
|
|
39
39
|
{ first_name: ["required", null] },
|
|
40
40
|
{ first_name: ["minChar", 2] },
|
|
@@ -44,19 +44,19 @@ const Se = ({
|
|
|
44
44
|
...f ? [{ accepts_terms: ["enforceValue", !0] }] : []
|
|
45
45
|
], X = (e) => {
|
|
46
46
|
e.preventDefault();
|
|
47
|
-
const
|
|
48
|
-
if (p && (
|
|
47
|
+
const t = {};
|
|
48
|
+
if (p && (t.first_name = p), _ && (t.last_name = _), h && (t.language = h), m && k && (t.image = m), m && !k && (t.origin_image_url = m), g && (t.description = g), U && (t.accepts_provider_email = M), f && (t.accepts_terms = b), t.is_onboarded = !0, G(t, Q)) {
|
|
49
49
|
W(!0);
|
|
50
50
|
const N = new FormData();
|
|
51
|
-
Object.entries(
|
|
51
|
+
Object.entries(t).forEach(([u, Z]) => {
|
|
52
52
|
N.append(u, Z);
|
|
53
|
-
}), n && y ? y(N) : A.update("users", o.currentUser.slug, N).then((u) => {
|
|
53
|
+
}), n && y ? y(N, t) : A.update("users", o.currentUser.slug, N).then((u) => {
|
|
54
54
|
u.data.success && o.setCurrentUser(u.data.data.resource), I();
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
}, Y = (e) => {
|
|
58
|
-
const
|
|
59
|
-
T(e), v(!1),
|
|
58
|
+
const t = /^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/i;
|
|
59
|
+
T(e), v(!1), t.test(e) ? (x(e), P(!1)) : (P(!0), K(e));
|
|
60
60
|
};
|
|
61
61
|
return /* @__PURE__ */ a(
|
|
62
62
|
ne,
|
|
@@ -89,7 +89,7 @@ const Se = ({
|
|
|
89
89
|
/* @__PURE__ */ a(
|
|
90
90
|
"div",
|
|
91
91
|
{
|
|
92
|
-
className:
|
|
92
|
+
className: s.backButton,
|
|
93
93
|
onClick: () => v(!1),
|
|
94
94
|
children: r.formatMessage({
|
|
95
95
|
id: "user.user_edit.back",
|
|
@@ -98,19 +98,19 @@ const Se = ({
|
|
|
98
98
|
}
|
|
99
99
|
)
|
|
100
100
|
] }) : /* @__PURE__ */ d(O, { children: [
|
|
101
|
-
/* @__PURE__ */ d("div", { className:
|
|
102
|
-
/* @__PURE__ */ d("div", { className:
|
|
101
|
+
/* @__PURE__ */ d("div", { className: s.container, children: [
|
|
102
|
+
/* @__PURE__ */ d("div", { className: s.userImageContainer, children: [
|
|
103
103
|
C ? /* @__PURE__ */ a(
|
|
104
104
|
"img",
|
|
105
105
|
{
|
|
106
|
-
className:
|
|
106
|
+
className: s.userPictureUpload,
|
|
107
107
|
src: C,
|
|
108
108
|
alt: r.formatMessage({
|
|
109
109
|
id: "alt.my_profile_picture",
|
|
110
110
|
defaultMessage: "Ma photo de profil"
|
|
111
111
|
})
|
|
112
112
|
}
|
|
113
|
-
) : /* @__PURE__ */ a("div", { className:
|
|
113
|
+
) : /* @__PURE__ */ a("div", { className: s.userPictureUpload, children: /* @__PURE__ */ a(
|
|
114
114
|
me,
|
|
115
115
|
{
|
|
116
116
|
name: "camera",
|
|
@@ -136,9 +136,9 @@ const Se = ({
|
|
|
136
136
|
}
|
|
137
137
|
)
|
|
138
138
|
] }),
|
|
139
|
-
/* @__PURE__ */ d("div", { className:
|
|
140
|
-
/* @__PURE__ */ d("div", { className:
|
|
141
|
-
/* @__PURE__ */ a("div", { className:
|
|
139
|
+
/* @__PURE__ */ d("div", { className: s.inputsContainer, children: [
|
|
140
|
+
/* @__PURE__ */ d("div", { className: s.nameContainer, children: [
|
|
141
|
+
/* @__PURE__ */ a("div", { className: s.updateProfileInput, children: /* @__PURE__ */ a(
|
|
142
142
|
F,
|
|
143
143
|
{
|
|
144
144
|
type: "text",
|
|
@@ -159,7 +159,7 @@ const Se = ({
|
|
|
159
159
|
disabled: i.actions?.disableOnboardingNameUpdate === !0
|
|
160
160
|
}
|
|
161
161
|
) }),
|
|
162
|
-
/* @__PURE__ */ a("div", { className:
|
|
162
|
+
/* @__PURE__ */ a("div", { className: s.updateProfileInput, children: /* @__PURE__ */ a(
|
|
163
163
|
F,
|
|
164
164
|
{
|
|
165
165
|
type: "text",
|
|
@@ -181,14 +181,14 @@ const Se = ({
|
|
|
181
181
|
}
|
|
182
182
|
) })
|
|
183
183
|
] }),
|
|
184
|
-
i.actions?.disableNameUpdate == !0 && i.actions?.disableOnboardingNameUpdate != !0 && /* @__PURE__ */ a("div", { className:
|
|
184
|
+
i.actions?.disableNameUpdate == !0 && i.actions?.disableOnboardingNameUpdate != !0 && /* @__PURE__ */ a("div", { className: s.hint, children: r.formatMessage({
|
|
185
185
|
id: "user.user_edit.user_name_hint",
|
|
186
186
|
defaultMessage: "last name"
|
|
187
187
|
}) }),
|
|
188
188
|
!n && i.translation?.translationMethods && Object.keys(i.translation.translationMethods).length > 0 && /* @__PURE__ */ a(
|
|
189
189
|
ue,
|
|
190
190
|
{
|
|
191
|
-
selectClassName:
|
|
191
|
+
selectClassName: s.langSelect,
|
|
192
192
|
options: Object.keys(
|
|
193
193
|
i.translation.translationMethods
|
|
194
194
|
).map((e) => ({
|
|
@@ -200,10 +200,10 @@ const Se = ({
|
|
|
200
200
|
onChange: (e) => E(e.value)
|
|
201
201
|
}
|
|
202
202
|
),
|
|
203
|
-
!n && /* @__PURE__ */ a("div", { className:
|
|
203
|
+
!n && /* @__PURE__ */ a("div", { className: s.userDescription, children: /* @__PURE__ */ a(
|
|
204
204
|
"textarea",
|
|
205
205
|
{
|
|
206
|
-
className:
|
|
206
|
+
className: s.textArea,
|
|
207
207
|
placeholder: r.formatMessage({
|
|
208
208
|
id: "user.user_edit.user_description",
|
|
209
209
|
defaultMessage: "Describe yourself in a few words"
|
|
@@ -216,7 +216,7 @@ const Se = ({
|
|
|
216
216
|
) })
|
|
217
217
|
] })
|
|
218
218
|
] }),
|
|
219
|
-
f && /* @__PURE__ */ a("div", { className:
|
|
219
|
+
f && /* @__PURE__ */ a("div", { className: s.toggle, children: /* @__PURE__ */ a(
|
|
220
220
|
D,
|
|
221
221
|
{
|
|
222
222
|
type: "checkbox",
|
|
@@ -232,7 +232,7 @@ const Se = ({
|
|
|
232
232
|
var1: (e) => /* @__PURE__ */ a(
|
|
233
233
|
"a",
|
|
234
234
|
{
|
|
235
|
-
className:
|
|
235
|
+
className: s.cgu,
|
|
236
236
|
target: "_blank",
|
|
237
237
|
href: L,
|
|
238
238
|
rel: "noreferrer",
|
|
@@ -242,7 +242,7 @@ const Se = ({
|
|
|
242
242
|
var2: (e) => /* @__PURE__ */ a(
|
|
243
243
|
"a",
|
|
244
244
|
{
|
|
245
|
-
className:
|
|
245
|
+
className: s.cgu,
|
|
246
246
|
target: "_blank",
|
|
247
247
|
href: B,
|
|
248
248
|
rel: "noreferrer",
|
|
@@ -257,7 +257,7 @@ const Se = ({
|
|
|
257
257
|
"data-testid": "accepts-terms-input"
|
|
258
258
|
}
|
|
259
259
|
) }),
|
|
260
|
-
U && /* @__PURE__ */ a("div", { className:
|
|
260
|
+
U && /* @__PURE__ */ a("div", { className: s.toggle, children: /* @__PURE__ */ a(
|
|
261
261
|
D,
|
|
262
262
|
{
|
|
263
263
|
type: "checkbox",
|
|
@@ -275,7 +275,7 @@ const Se = ({
|
|
|
275
275
|
"data-testid": "accepts-email-input"
|
|
276
276
|
}
|
|
277
277
|
) }),
|
|
278
|
-
/* @__PURE__ */ a("div", { className:
|
|
278
|
+
/* @__PURE__ */ a("div", { className: s.userSaveBox, children: /* @__PURE__ */ a(
|
|
279
279
|
S,
|
|
280
280
|
{
|
|
281
281
|
"data-testid": "save-button",
|
|
@@ -1,27 +1,80 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useEffect as
|
|
3
|
-
import { OnboardingModal as
|
|
4
|
-
import { useAuth as
|
|
5
|
-
import { useModal as
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { jsx as B } from "react/jsx-runtime";
|
|
2
|
+
import { useState as w, useEffect as S } from "react";
|
|
3
|
+
import { OnboardingModal as E } from "./OnboardingModal.js";
|
|
4
|
+
import { useAuth as I } from "../../auth/use_auth/useAuth.js";
|
|
5
|
+
import { useModal as A } from "../../dialog/modal/useModal.js";
|
|
6
|
+
import { useDataProvider as U } from "../../data/data_provider/useDataProvider.js";
|
|
7
|
+
import { useConfig as C } from "../../data/config_provider/useConfig.js";
|
|
8
|
+
const i = "logora:onboardingBeforeLogin", g = (t) => t ? `${i}:${t}` : i, T = (t, r) => {
|
|
9
|
+
typeof window > "u" || !window.sessionStorage || window.sessionStorage.setItem(
|
|
10
|
+
g(t),
|
|
11
|
+
JSON.stringify(r)
|
|
12
|
+
);
|
|
13
|
+
}, x = () => {
|
|
14
|
+
const t = I(), { currentUser: r, isLoggedIn: f } = t, { showModal: b, isModalPresent: u } = A(), _ = U(), n = C(), [a, d] = w(!1), [l, O] = w(!1), h = () => {
|
|
15
|
+
b(
|
|
16
|
+
/* @__PURE__ */ B(
|
|
17
|
+
E,
|
|
12
18
|
{
|
|
13
|
-
showEmailConsent:
|
|
14
|
-
showTerms:
|
|
15
|
-
termsUrl:
|
|
16
|
-
privacyUrl:
|
|
19
|
+
showEmailConsent: n.auth?.showEmailConsent,
|
|
20
|
+
showTerms: n.auth?.hideCgu !== !0,
|
|
21
|
+
termsUrl: n.provider?.cguUrl || "https://www.logora.com/blog-posts/cgu",
|
|
22
|
+
privacyUrl: n.provider?.privacyUrl || "https://www.logora.com/blog-posts/privacy-policy"
|
|
17
23
|
}
|
|
18
24
|
)
|
|
19
25
|
);
|
|
20
26
|
};
|
|
21
|
-
|
|
22
|
-
!
|
|
23
|
-
|
|
27
|
+
S(() => {
|
|
28
|
+
if (!a && !u && f && r?.is_onboarded === !1 && n.auth?.showOnboarding === !0) {
|
|
29
|
+
if (v()) {
|
|
30
|
+
y();
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
h();
|
|
34
|
+
}
|
|
35
|
+
}, [u, f, r?.slug, r?.is_onboarded, n.auth?.showOnboarding, a, l]);
|
|
36
|
+
const p = () => {
|
|
37
|
+
if (typeof window > "u" || !window.sessionStorage)
|
|
38
|
+
return null;
|
|
39
|
+
const e = window.sessionStorage.getItem(g(n.shortname)) || window.sessionStorage.getItem(i);
|
|
40
|
+
if (!e)
|
|
41
|
+
return null;
|
|
42
|
+
try {
|
|
43
|
+
const o = JSON.parse(e);
|
|
44
|
+
return o && typeof o == "object" ? o : { accepts_terms: !0 };
|
|
45
|
+
} catch {
|
|
46
|
+
return { accepts_terms: e === "true" };
|
|
47
|
+
}
|
|
48
|
+
}, c = () => {
|
|
49
|
+
typeof window > "u" || !window.sessionStorage || (window.sessionStorage.removeItem(g(n.shortname)), window.sessionStorage.removeItem(i));
|
|
50
|
+
}, v = () => {
|
|
51
|
+
if (a || l || n.auth?.showOnboardingBeforeLogin !== !0 || !r?.slug)
|
|
52
|
+
return !1;
|
|
53
|
+
const e = p();
|
|
54
|
+
return e?.accepts_terms === !0 || e?.acceptsTerms === !0;
|
|
55
|
+
}, y = () => {
|
|
56
|
+
const e = p();
|
|
57
|
+
if (!e)
|
|
58
|
+
return;
|
|
59
|
+
const o = {
|
|
60
|
+
accepts_terms: !0,
|
|
61
|
+
is_onboarded: !0
|
|
62
|
+
};
|
|
63
|
+
e.accepts_provider_email !== void 0 ? o.accepts_provider_email = e.accepts_provider_email : e.acceptsProviderEmail !== void 0 && (o.accepts_provider_email = e.acceptsProviderEmail), e.first_name && !r.first_name && (o.first_name = e.first_name), e.last_name && !r.last_name && (o.last_name = e.last_name);
|
|
64
|
+
const m = new FormData();
|
|
65
|
+
Object.entries(o).forEach(([s, L]) => {
|
|
66
|
+
m.append(s, L);
|
|
67
|
+
}), d(!0), O(!0), _.update("users", r.slug, m).then((s) => {
|
|
68
|
+
d(!1), s.data.success ? (c(), t.setCurrentUser(s.data.data.resource)) : c();
|
|
69
|
+
}).catch(() => {
|
|
70
|
+
c(), d(!1);
|
|
71
|
+
});
|
|
72
|
+
};
|
|
73
|
+
return null;
|
|
24
74
|
};
|
|
25
75
|
export {
|
|
26
|
-
|
|
76
|
+
i as ONBOARDING_BEFORE_LOGIN_STORAGE_KEY,
|
|
77
|
+
g as getOnboardingBeforeLoginStorageKey,
|
|
78
|
+
T as saveOnboardingBeforeLogin,
|
|
79
|
+
x as useOnboarding
|
|
27
80
|
};
|
package/dist/index.js
CHANGED
|
@@ -8,22 +8,22 @@ import * as p from "./components/icons/clarin_icons/index.js";
|
|
|
8
8
|
import { ActionBar as a } from "./components/list/paginated_list/action_bar/ActionBar.js";
|
|
9
9
|
import { AdUnit as s } from "./components/ad/ad_unit/AdUnit.js";
|
|
10
10
|
import { AnnouncementDialog as d } from "./components/dialog/announcement_dialog/AnnouncementDialog.js";
|
|
11
|
-
import { Argument as
|
|
11
|
+
import { Argument as g } from "./components/argument/argument/Argument.js";
|
|
12
12
|
import { ArgumentInput as B } from "./components/input/argument_input/ArgumentInput.js";
|
|
13
13
|
import { ArgumentSummaryBox as C } from "./components/summary/argument_summary_box/ArgumentSummaryBox.js";
|
|
14
14
|
import { AuthContext as h } from "./components/auth/use_auth/AuthContext.js";
|
|
15
|
-
import { AuthInitializer as
|
|
16
|
-
import { AuthModal as
|
|
15
|
+
import { AuthInitializer as T } from "./components/auth/auth_initializer/AuthInitializer.js";
|
|
16
|
+
import { AuthModal as P } from "./components/auth/auth_modal/AuthModal.js";
|
|
17
17
|
import { AuthProvider as M, withAuth as F } from "./components/auth/use_auth/AuthProvider.js";
|
|
18
|
-
import { AuthProviderFactory as
|
|
19
|
-
import { AuthorBox as
|
|
20
|
-
import { Avatar as
|
|
21
|
-
import { AvatarSelector as
|
|
22
|
-
import { BackLink as
|
|
23
|
-
import { BadgeBox as
|
|
24
|
-
import { BoxSkeleton as
|
|
25
|
-
import { Button as
|
|
26
|
-
import { ConfigContext as
|
|
18
|
+
import { AuthProviderFactory as R } from "./components/auth/providers/AuthProviderFactory.js";
|
|
19
|
+
import { AuthorBox as O } from "./components/user/author_box/AuthorBox.js";
|
|
20
|
+
import { Avatar as k } from "./components/user/avatar/Avatar.js";
|
|
21
|
+
import { AvatarSelector as w } from "./components/user/avatar_selector/AvatarSelector.js";
|
|
22
|
+
import { BackLink as V } from "./components/action/back_link/BackLink.js";
|
|
23
|
+
import { BadgeBox as _ } from "./components/gamification/badge_box/BadgeBox.js";
|
|
24
|
+
import { BoxSkeleton as U } from "./components/skeleton/box_skeleton/BoxSkeleton.js";
|
|
25
|
+
import { Button as K } from "./components/action/button/Button.js";
|
|
26
|
+
import { ConfigContext as Y, ConfigProvider as z } from "./components/data/config_provider/ConfigProvider.js";
|
|
27
27
|
import { ConfirmModal as j } from "./components/dialog/confirm_modal/ConfirmModal.js";
|
|
28
28
|
import { ConsultationBox as Q } from "./components/consultation/consultation_box/ConsultationBox.js";
|
|
29
29
|
import { ContentFooter as Z } from "./components/user_content/content_footer/ContentFooter.js";
|
|
@@ -34,22 +34,22 @@ import { Countdown as fo } from "./components/dialog/countdown/Countdown.js";
|
|
|
34
34
|
import { DataProviderContext as ao } from "./components/data/data_provider/DataProviderContext.js";
|
|
35
35
|
import { DebateBox as so } from "./components/debate/debate_box/DebateBox.js";
|
|
36
36
|
import { DialogBox as lo } from "./components/dialog/dialog_box/DialogBox.js";
|
|
37
|
-
import { Drawer as
|
|
37
|
+
import { Drawer as co } from "./components/dialog/drawer/Drawer.js";
|
|
38
38
|
import { Dropdown as So } from "./components/dialog/dropdown/Dropdown.js";
|
|
39
39
|
import { EMAIL_CONSENT_STORAGE_KEY as Ao, useAuthActions as ho } from "./components/auth/use_auth/useAuthActions.js";
|
|
40
|
-
import { EmbedHeader as
|
|
41
|
-
import { ExpandableText as
|
|
40
|
+
import { EmbedHeader as To } from "./components/embed/embed_header/EmbedHeader.js";
|
|
41
|
+
import { ExpandableText as Po } from "./components/text/expandable_text/ExpandableText.js";
|
|
42
42
|
import { FacebookLoginButton as Mo } from "./components/auth/facebook_login_button/FacebookLoginButton.js";
|
|
43
43
|
import { FollowButton as bo } from "./components/follow/follow_button/FollowButton.js";
|
|
44
|
-
import { Form as
|
|
45
|
-
import { FormContext as
|
|
46
|
-
import { GoogleLoginButton as
|
|
47
|
-
import { HashScroll as
|
|
48
|
-
import { Icon as
|
|
49
|
-
import { IconContext as
|
|
50
|
-
import { IconTextLink as
|
|
51
|
-
import { InformationBox as
|
|
52
|
-
import { HiddenCheckbox as
|
|
44
|
+
import { Form as Eo } from "./components/forms/form/form.js";
|
|
45
|
+
import { FormContext as Do } from "./components/forms/form/form-context.js";
|
|
46
|
+
import { GoogleLoginButton as No } from "./components/auth/google_login_button/GoogleLoginButton.js";
|
|
47
|
+
import { HashScroll as yo } from "./components/tools/hash_scroll/HashScroll.js";
|
|
48
|
+
import { Icon as Go } from "./components/icons/icon/Icon.js";
|
|
49
|
+
import { IconContext as Ho, IconProvider as Uo } from "./components/icons/icon_provider/IconProvider.js";
|
|
50
|
+
import { IconTextLink as Ko } from "./components/action/icon_text_link/IconTextLink.js";
|
|
51
|
+
import { InformationBox as Yo } from "./components/information/information_box/InformationBox.js";
|
|
52
|
+
import { HiddenCheckbox as Wo } from "./components/input/checkbox/hidden/hidden-checkbox.js";
|
|
53
53
|
import { InputProvider as Jo } from "./components/input/input_provider/InputProvider.js";
|
|
54
54
|
import { IntlContext as Xo } from "./components/intl/intl_provider/IntlContext.js";
|
|
55
55
|
import { IntlProvider as or } from "./components/intl/intl_provider/IntlProvider.js";
|
|
@@ -59,131 +59,131 @@ import { LineChart as nr } from "./components/chart/line_chart/LineChart.js";
|
|
|
59
59
|
import { Link as ir } from "./components/action/link/Link.js";
|
|
60
60
|
import { ListProvider as ur } from "./components/list/list_provider/ListProvider.js";
|
|
61
61
|
import { Loader as lr } from "./components/progress/loader/Loader.js";
|
|
62
|
-
import { Location as
|
|
62
|
+
import { Location as cr } from "./components/util/location/Location.js";
|
|
63
63
|
import { LoginForm as Sr } from "./components/auth/login_form/LoginForm.js";
|
|
64
64
|
import { Message as Ar } from "./components/input/text_input/message.js";
|
|
65
|
-
import { Modal as
|
|
66
|
-
import { ModalContext as
|
|
65
|
+
import { Modal as Ir } from "./components/dialog/modal/Modal.js";
|
|
66
|
+
import { ModalContext as Lr, ModalProvider as Pr } from "./components/dialog/modal/ModalProvider.js";
|
|
67
67
|
import { NavbarButton as Mr } from "./components/navbar/navbar_button/NavbarButton.js";
|
|
68
68
|
import { NavbarModal as br } from "./components/navbar/navbar_modal/NavbarModal.js";
|
|
69
|
-
import { NotificationItem as
|
|
70
|
-
import { NotificationMenu as
|
|
71
|
-
import { OAuth2Button as
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
101
|
-
import {
|
|
102
|
-
import {
|
|
103
|
-
import {
|
|
104
|
-
import {
|
|
105
|
-
import {
|
|
106
|
-
import {
|
|
107
|
-
import {
|
|
108
|
-
import {
|
|
109
|
-
import {
|
|
110
|
-
import {
|
|
111
|
-
import {
|
|
112
|
-
import {
|
|
113
|
-
import {
|
|
114
|
-
import {
|
|
115
|
-
import {
|
|
116
|
-
import {
|
|
117
|
-
import {
|
|
118
|
-
import {
|
|
119
|
-
import {
|
|
120
|
-
import {
|
|
121
|
-
import {
|
|
122
|
-
import {
|
|
123
|
-
import {
|
|
124
|
-
import {
|
|
125
|
-
import {
|
|
126
|
-
import {
|
|
127
|
-
import {
|
|
128
|
-
import {
|
|
129
|
-
import {
|
|
130
|
-
import {
|
|
131
|
-
import {
|
|
132
|
-
import {
|
|
133
|
-
import {
|
|
134
|
-
import {
|
|
135
|
-
import {
|
|
136
|
-
import {
|
|
137
|
-
import {
|
|
138
|
-
import {
|
|
139
|
-
import {
|
|
140
|
-
import {
|
|
141
|
-
import {
|
|
142
|
-
import {
|
|
143
|
-
import {
|
|
144
|
-
import {
|
|
145
|
-
import {
|
|
146
|
-
import {
|
|
147
|
-
import {
|
|
148
|
-
import {
|
|
149
|
-
import {
|
|
150
|
-
import {
|
|
151
|
-
import {
|
|
152
|
-
import {
|
|
153
|
-
import {
|
|
154
|
-
import {
|
|
155
|
-
import {
|
|
156
|
-
import {
|
|
157
|
-
import { useRelativeTime as
|
|
158
|
-
import { useReportContent as
|
|
159
|
-
import { useResponsive as
|
|
160
|
-
import { useRichContent as
|
|
161
|
-
import { useRoutes as
|
|
162
|
-
import { useToast as
|
|
163
|
-
import { useVote as
|
|
164
|
-
import { utf8ToBase64url as
|
|
165
|
-
import { withConfig as
|
|
69
|
+
import { NotificationItem as Er } from "./components/notification/notification_item/NotificationItem.js";
|
|
70
|
+
import { NotificationMenu as Dr } from "./components/notification/notification_menu/NotificationMenu.js";
|
|
71
|
+
import { OAuth2Button as Nr } from "./components/auth/oauth2_button/OAuth2Button.js";
|
|
72
|
+
import { ONBOARDING_BEFORE_LOGIN_STORAGE_KEY as yr, getOnboardingBeforeLoginStorageKey as Vr, saveOnboardingBeforeLogin as Gr, useOnboarding as _r } from "./components/user/onboarding_modal/useOnboarding.js";
|
|
73
|
+
import { OnboardingModal as Ur } from "./components/user/onboarding_modal/OnboardingModal.js";
|
|
74
|
+
import { PaginatedList as Kr } from "./components/list/paginated_list/PaginatedList.js";
|
|
75
|
+
import { Pagination as Yr } from "./components/list/pagination/Pagination.js";
|
|
76
|
+
import { PieChart as Wr } from "./components/chart/pie_chart/PieChart.js";
|
|
77
|
+
import { PointBox as Jr } from "./components/gamification/point_box/PointBox.js";
|
|
78
|
+
import { ProgressBar as Xr } from "./components/progress/progress_bar/ProgressBar.js";
|
|
79
|
+
import { ProposalBox as oe } from "./components/proposal/proposal_box/ProposalBox.js";
|
|
80
|
+
import { ReadMore as ee } from "./components/text/read_more/ReadMore.js";
|
|
81
|
+
import { ReportBox as xe } from "./components/report/report_box/ReportBox.js";
|
|
82
|
+
import { ReportModal as pe } from "./components/user_content/use_report_content/ReportModal.js";
|
|
83
|
+
import { ResponsiveProvider as ne } from "./components/hooks/use_responsive/ResponsiveProvider.js";
|
|
84
|
+
import { SSOForm as ie } from "./components/auth/sso_form/SSOForm.js";
|
|
85
|
+
import { ScrollToTop as ue } from "./components/tools/scroll_to_top/ScrollToTop.js";
|
|
86
|
+
import { SearchInput as le } from "./components/input/search_input/SearchInput.js";
|
|
87
|
+
import { SectionBox as ce } from "./components/section/section_box/SectionBox.js";
|
|
88
|
+
import { Select as Se } from "./components/input/select/Select.js";
|
|
89
|
+
import { ShareBox as Ae } from "./components/share/share_box/ShareBox.js";
|
|
90
|
+
import { ShareButton as Ie } from "./components/share/share_button/ShareButton.js";
|
|
91
|
+
import { ShareModal as Le } from "./components/share/share_modal/ShareModal.js";
|
|
92
|
+
import { SideModal as ve } from "./components/modal/side_modal/SideModal.js";
|
|
93
|
+
import { SignupForm as Fe } from "./components/auth/signup_form/SignupForm.js";
|
|
94
|
+
import { SocialAuthForm as Re } from "./components/auth/social_auth_form/SocialAuthForm.js";
|
|
95
|
+
import { SourceBox as Oe } from "./components/source/source_box/SourceBox.js";
|
|
96
|
+
import { SourceListItem as ke } from "./components/source/source_list_item/SourceListItem.js";
|
|
97
|
+
import { SourceModal as we } from "./components/source/source_modal/SourceModal.js";
|
|
98
|
+
import { StandardErrorBoundary as Ve } from "./components/error/standard_error_boundary/StandardErrorBoundary.js";
|
|
99
|
+
import { SuggestionBanner as _e } from "./components/suggestion/suggestion_banner/SuggestionBanner.js";
|
|
100
|
+
import { SuggestionBox as Ue } from "./components/suggestion/suggestion_box/SuggestionBox.js";
|
|
101
|
+
import { SuggestionInput as Ke } from "./components/suggestion/suggestion_input/SuggestionInput.js";
|
|
102
|
+
import { SuggestionVoteBox as Ye } from "./components/vote/suggestion_vote_box/SuggestionVoteBox.js";
|
|
103
|
+
import { Summary as We } from "./components/summary/summary/Summary.js";
|
|
104
|
+
import { SummaryBox as Je } from "./components/summary/summary_box/SummaryBox.js";
|
|
105
|
+
import { SummaryContentBox as Xe } from "./components/user_content/summary_content_box/SummaryContentBox.js";
|
|
106
|
+
import { Tab as ot } from "./components/navigation/tabs/Tab.js";
|
|
107
|
+
import { TabPanel as et } from "./components/navigation/tabs/TabPanel.js";
|
|
108
|
+
import { Tabs as xt } from "./components/navigation/tabs/Tabs.js";
|
|
109
|
+
import { Tag as pt } from "./components/tag/tag/Tag.js";
|
|
110
|
+
import { TextEditor as nt } from "./components/input/text_editor/TextEditor.js";
|
|
111
|
+
import { TextInput as it } from "./components/input/text_input/TextInput.js";
|
|
112
|
+
import { Toast as ut } from "./components/dialog/toast/Toast.js";
|
|
113
|
+
import { ToastProvider as lt } from "./components/dialog/toast_provider/ToastProvider.js";
|
|
114
|
+
import { Toggle as ct } from "./components/input/toggle/Toggle.js";
|
|
115
|
+
import { TogglePosition as St } from "./components/input/toggle_position/TogglePosition.js";
|
|
116
|
+
import { Tooltip as At } from "./components/dialog/tooltip/Tooltip.js";
|
|
117
|
+
import { TopArguments as It } from "./components/argument/top_arguments/TopArguments.js";
|
|
118
|
+
import { TranslatedContent as Lt } from "./components/translation/translated_content/TranslatedContent.js";
|
|
119
|
+
import { TranslationButton as vt } from "./components/translation/translation_button/TranslationButton.js";
|
|
120
|
+
import { UpDownVoteBox as Ft } from "./components/vote/up_down_vote_box/UpDownVoteBox.js";
|
|
121
|
+
import { UserBox as Rt } from "./components/user/user_box/UserBox.js";
|
|
122
|
+
import { UserBoxSmall as Ot } from "./components/user/user_box_small/UserBoxSmall.js";
|
|
123
|
+
import { UserContentSkeleton as kt } from "./components/skeleton/user_content_skeleton/UserContentSkeleton.js";
|
|
124
|
+
import { VoteBox as wt } from "./components/vote/vote_box/VoteBox.js";
|
|
125
|
+
import { VoteButton as Vt } from "./components/vote/vote_button/VoteButton.js";
|
|
126
|
+
import { VoteContext as _t, VoteProvider as Ht } from "./components/vote/vote_provider/VoteProvider.js";
|
|
127
|
+
import { VotePaginatedList as $t } from "./components/list/paginated_list/VotePaginatedList.js";
|
|
128
|
+
import { WithAd as qt } from "./components/ad/with_ad/WithAd.js";
|
|
129
|
+
import { authTokenHandler as zt } from "./components/auth/use_auth/authTokenHandler.js";
|
|
130
|
+
import { classes as jt, getAccent as Jt } from "./components/input/text_input/color-accent.js";
|
|
131
|
+
import { dataProvider as Xt } from "./components/data/data_provider/DataProvider.js";
|
|
132
|
+
import { extractFormData as ox } from "./components/forms/form/extract-form-data.js";
|
|
133
|
+
import { getTranslatedContent as ex, useTranslatedContent as tx } from "./components/translation/translated_content/useTranslatedContent.js";
|
|
134
|
+
import { httpClient as mx } from "./components/data/axios_client/httpClient.js";
|
|
135
|
+
import { lexicalToHtml as fx } from "./components/input/text_editor/lexicalToHtml.js";
|
|
136
|
+
import { makeStorage as ax } from "./components/auth/use_auth/AuthStorage.js";
|
|
137
|
+
import { uniqueBy as sx } from "./components/util/unique_by/uniqueBy.js";
|
|
138
|
+
import { useAuth as dx } from "./components/auth/use_auth/useAuth.js";
|
|
139
|
+
import { useAuthInterceptor as gx } from "./components/auth/use_auth/useAuthInterceptor.js";
|
|
140
|
+
import { useAuthRequired as Bx } from "./components/hooks/use_auth_required/useAuthRequired.js";
|
|
141
|
+
import { useConfig as Cx } from "./components/data/config_provider/useConfig.js";
|
|
142
|
+
import { useCssTheme as hx } from "./components/hooks/use_css_theme/useCssTheme.js";
|
|
143
|
+
import { useData as Tx } from "./components/data/data_provider/useData.js";
|
|
144
|
+
import { useDataProvider as Px } from "./components/data/data_provider/useDataProvider.js";
|
|
145
|
+
import { useDeleteContent as Mx } from "./components/user_content/use_delete_content/useDeleteContent.js";
|
|
146
|
+
import { useFollow as bx } from "./components/follow/use_follow/useFollow.js";
|
|
147
|
+
import { useFontLoader as Ex } from "./components/hooks/use_font_loader/useFontLoader.js";
|
|
148
|
+
import { useForm as Dx } from "./components/forms/form/use-form.js";
|
|
149
|
+
import { useFormContext as Nx } from "./components/forms/form/use-form-context.js";
|
|
150
|
+
import { useFormValidation as yx } from "./components/forms/use_form_validation/useFormValidation.js";
|
|
151
|
+
import { useGoogleAdManager as Gx } from "./components/ad/use_google_ad_manager/useGoogleAdManager.js";
|
|
152
|
+
import { useInput as Hx } from "./components/input/input_provider/useInput.js";
|
|
153
|
+
import { useList as $x } from "./components/list/list_provider/useList.js";
|
|
154
|
+
import { useLocale as qx } from "./components/intl/intl_provider/useLocale.js";
|
|
155
|
+
import { useMatomo as zx } from "./components/hooks/use_matomo/useMatomo.js";
|
|
156
|
+
import { useModal as jx } from "./components/dialog/modal/useModal.js";
|
|
157
|
+
import { useRelativeTime as Qx } from "./components/hooks/use_relative_time/useRelativeTime.js";
|
|
158
|
+
import { useReportContent as Zx } from "./components/user_content/use_report_content/useReportContent.js";
|
|
159
|
+
import { useResponsive as rm } from "./components/hooks/use_responsive/useResponsive.js";
|
|
160
|
+
import { useRichContent as tm } from "./components/argument/argument/useRichContent.js";
|
|
161
|
+
import { useRoutes as mm } from "./components/data/config_provider/useRoutes.js";
|
|
162
|
+
import { useToast as fm } from "./components/dialog/toast_provider/useToast.js";
|
|
163
|
+
import { useVote as am } from "./components/vote/use_vote/useVote.js";
|
|
164
|
+
import { utf8ToBase64url as sm } from "./components/auth/use_auth/base64.js";
|
|
165
|
+
import { withConfig as dm } from "./components/data/config_provider/withConfig.js";
|
|
166
166
|
export {
|
|
167
167
|
a as ActionBar,
|
|
168
168
|
s as AdUnit,
|
|
169
169
|
d as AnnouncementDialog,
|
|
170
|
-
|
|
170
|
+
g as Argument,
|
|
171
171
|
B as ArgumentInput,
|
|
172
172
|
C as ArgumentSummaryBox,
|
|
173
173
|
h as AuthContext,
|
|
174
|
-
|
|
175
|
-
|
|
174
|
+
T as AuthInitializer,
|
|
175
|
+
P as AuthModal,
|
|
176
176
|
M as AuthProvider,
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
177
|
+
R as AuthProviderFactory,
|
|
178
|
+
O as AuthorBox,
|
|
179
|
+
k as Avatar,
|
|
180
|
+
w as AvatarSelector,
|
|
181
|
+
V as BackLink,
|
|
182
|
+
_ as BadgeBox,
|
|
183
|
+
U as BoxSkeleton,
|
|
184
|
+
K as Button,
|
|
185
|
+
Y as ConfigContext,
|
|
186
|
+
z as ConfigProvider,
|
|
187
187
|
j as ConfirmModal,
|
|
188
188
|
Q as ConsultationBox,
|
|
189
189
|
Z as ContentFooter,
|
|
@@ -194,23 +194,23 @@ export {
|
|
|
194
194
|
ao as DataProviderContext,
|
|
195
195
|
so as DebateBox,
|
|
196
196
|
lo as DialogBox,
|
|
197
|
-
|
|
197
|
+
co as Drawer,
|
|
198
198
|
So as Dropdown,
|
|
199
199
|
Ao as EMAIL_CONSENT_STORAGE_KEY,
|
|
200
|
-
|
|
201
|
-
|
|
200
|
+
To as EmbedHeader,
|
|
201
|
+
Po as ExpandableText,
|
|
202
202
|
Mo as FacebookLoginButton,
|
|
203
203
|
bo as FollowButton,
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
204
|
+
Eo as Form,
|
|
205
|
+
Do as FormContext,
|
|
206
|
+
No as GoogleLoginButton,
|
|
207
|
+
yo as HashScroll,
|
|
208
|
+
Go as Icon,
|
|
209
|
+
Ho as IconContext,
|
|
210
|
+
Uo as IconProvider,
|
|
211
|
+
Ko as IconTextLink,
|
|
212
|
+
Yo as InformationBox,
|
|
213
|
+
Wo as Input,
|
|
214
214
|
Jo as InputProvider,
|
|
215
215
|
Xo as IntlContext,
|
|
216
216
|
or as IntlProvider,
|
|
@@ -220,123 +220,126 @@ export {
|
|
|
220
220
|
ir as Link,
|
|
221
221
|
ur as ListProvider,
|
|
222
222
|
lr as Loader,
|
|
223
|
-
|
|
223
|
+
cr as Location,
|
|
224
224
|
Sr as LoginForm,
|
|
225
225
|
Ar as Message,
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
226
|
+
Ir as Modal,
|
|
227
|
+
Lr as ModalContext,
|
|
228
|
+
Pr as ModalProvider,
|
|
229
229
|
Mr as NavbarButton,
|
|
230
230
|
br as NavbarModal,
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
we as
|
|
260
|
-
Ve as
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
wt as
|
|
287
|
-
Vt as
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
231
|
+
Er as NotificationItem,
|
|
232
|
+
Dr as NotificationMenu,
|
|
233
|
+
Nr as OAuth2Button,
|
|
234
|
+
yr as ONBOARDING_BEFORE_LOGIN_STORAGE_KEY,
|
|
235
|
+
Ur as OnboardingModal,
|
|
236
|
+
Kr as PaginatedList,
|
|
237
|
+
Yr as Pagination,
|
|
238
|
+
Wr as PieChart,
|
|
239
|
+
Jr as PointBox,
|
|
240
|
+
Xr as ProgressBar,
|
|
241
|
+
oe as ProposalBox,
|
|
242
|
+
ee as ReadMore,
|
|
243
|
+
xe as ReportBox,
|
|
244
|
+
pe as ReportModal,
|
|
245
|
+
ne as ResponsiveProvider,
|
|
246
|
+
ie as SSOForm,
|
|
247
|
+
ue as ScrollToTop,
|
|
248
|
+
le as SearchInput,
|
|
249
|
+
ce as SectionBox,
|
|
250
|
+
Se as Select,
|
|
251
|
+
Ae as ShareBox,
|
|
252
|
+
Ie as ShareButton,
|
|
253
|
+
Le as ShareModal,
|
|
254
|
+
ve as SideModal,
|
|
255
|
+
Fe as SignupForm,
|
|
256
|
+
Re as SocialAuthForm,
|
|
257
|
+
Oe as SourceBox,
|
|
258
|
+
ke as SourceListItem,
|
|
259
|
+
we as SourceModal,
|
|
260
|
+
Ve as StandardErrorBoundary,
|
|
261
|
+
_e as SuggestionBanner,
|
|
262
|
+
Ue as SuggestionBox,
|
|
263
|
+
Ke as SuggestionInput,
|
|
264
|
+
Ye as SuggestionVoteBox,
|
|
265
|
+
We as Summary,
|
|
266
|
+
Je as SummaryBox,
|
|
267
|
+
Xe as SummaryContentBox,
|
|
268
|
+
ot as Tab,
|
|
269
|
+
et as TabPanel,
|
|
270
|
+
xt as Tabs,
|
|
271
|
+
pt as Tag,
|
|
272
|
+
nt as TextEditor,
|
|
273
|
+
it as TextInput,
|
|
274
|
+
ut as Toast,
|
|
275
|
+
lt as ToastProvider,
|
|
276
|
+
ct as Toggle,
|
|
277
|
+
St as TogglePosition,
|
|
278
|
+
At as Tooltip,
|
|
279
|
+
It as TopArguments,
|
|
280
|
+
Lt as TranslatedContent,
|
|
281
|
+
vt as TranslationButton,
|
|
282
|
+
Ft as UpDownVoteBox,
|
|
283
|
+
Rt as UserBox,
|
|
284
|
+
Ot as UserBoxSmall,
|
|
285
|
+
kt as UserContentSkeleton,
|
|
286
|
+
wt as VoteBox,
|
|
287
|
+
Vt as VoteButton,
|
|
288
|
+
_t as VoteContext,
|
|
289
|
+
$t as VotePaginatedList,
|
|
290
|
+
Ht as VoteProvider,
|
|
291
|
+
qt as WithAd,
|
|
292
|
+
zt as authTokenHandler,
|
|
292
293
|
r as bildIcons,
|
|
293
294
|
p as clarinIcons,
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
295
|
+
jt as classes,
|
|
296
|
+
Xt as dataProvider,
|
|
297
|
+
ox as extractFormData,
|
|
298
|
+
Jt as getAccent,
|
|
298
299
|
mr as getLocaleIcon,
|
|
299
300
|
pr as getLocaleName,
|
|
300
|
-
|
|
301
|
+
Vr as getOnboardingBeforeLoginStorageKey,
|
|
302
|
+
ex as getTranslatedContent,
|
|
301
303
|
t as heroIcons,
|
|
302
|
-
|
|
304
|
+
mx as httpClient,
|
|
303
305
|
x as kroneIcons,
|
|
304
|
-
|
|
305
|
-
|
|
306
|
+
fx as lexicalToHtml,
|
|
307
|
+
ax as makeStorage,
|
|
306
308
|
o as regularIcons,
|
|
309
|
+
Gr as saveOnboardingBeforeLogin,
|
|
307
310
|
e as spiegelIcons,
|
|
308
311
|
m as sternIcons,
|
|
309
|
-
|
|
310
|
-
|
|
312
|
+
sx as uniqueBy,
|
|
313
|
+
dx as useAuth,
|
|
311
314
|
ho as useAuthActions,
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
315
|
+
gx as useAuthInterceptor,
|
|
316
|
+
Bx as useAuthRequired,
|
|
317
|
+
Cx as useConfig,
|
|
318
|
+
hx as useCssTheme,
|
|
319
|
+
Tx as useData,
|
|
320
|
+
Px as useDataProvider,
|
|
321
|
+
Mx as useDeleteContent,
|
|
322
|
+
bx as useFollow,
|
|
323
|
+
Ex as useFontLoader,
|
|
324
|
+
Dx as useForm,
|
|
325
|
+
Nx as useFormContext,
|
|
326
|
+
yx as useFormValidation,
|
|
327
|
+
Gx as useGoogleAdManager,
|
|
328
|
+
Hx as useInput,
|
|
329
|
+
$x as useList,
|
|
330
|
+
qx as useLocale,
|
|
331
|
+
zx as useMatomo,
|
|
332
|
+
jx as useModal,
|
|
333
|
+
_r as useOnboarding,
|
|
334
|
+
Qx as useRelativeTime,
|
|
335
|
+
Zx as useReportContent,
|
|
336
|
+
rm as useResponsive,
|
|
337
|
+
tm as useRichContent,
|
|
338
|
+
mm as useRoutes,
|
|
339
|
+
fm as useToast,
|
|
340
|
+
tx as useTranslatedContent,
|
|
341
|
+
am as useVote,
|
|
342
|
+
sm as utf8ToBase64url,
|
|
340
343
|
F as withAuth,
|
|
341
|
-
|
|
344
|
+
dm as withConfig
|
|
342
345
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@logora/debate",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.43",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "AGPL-3.0",
|
|
6
6
|
"description": "Design system of @Logora made with React",
|
|
@@ -34,7 +34,8 @@
|
|
|
34
34
|
"check": "npx @biomejs/biome check ./src",
|
|
35
35
|
"test": "vitest run",
|
|
36
36
|
"test:watch": "vitest",
|
|
37
|
-
"test:coverage": "vitest run --coverage"
|
|
37
|
+
"test:coverage": "vitest run --coverage",
|
|
38
|
+
"prepack": "pnpm build"
|
|
38
39
|
},
|
|
39
40
|
"repository": {
|
|
40
41
|
"type": "git",
|