@logora/debate 0.4.87 → 0.4.88
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,26 +1,27 @@
|
|
|
1
1
|
import { jsx as o, jsxs as l, Fragment as f } from "react/jsx-runtime";
|
|
2
|
+
import { buildShareUrl as le } from "../../tools/share_url/index.js";
|
|
2
3
|
import E from "classnames";
|
|
3
|
-
import { useState as y, useEffect as
|
|
4
|
-
import { useIntl as
|
|
4
|
+
import { useState as y, useEffect as ne, useCallback as de, Suspense as ce, lazy as pe } from "react";
|
|
5
|
+
import { useIntl as me } from "react-intl";
|
|
5
6
|
import s from "./Argument.module.scss.js";
|
|
6
|
-
import { ReplyFooter as
|
|
7
|
-
import { useRichContent as
|
|
8
|
-
import { useAuth as
|
|
9
|
-
import { useConfig as
|
|
10
|
-
import { useList as
|
|
7
|
+
import { ReplyFooter as ue } from "./ReplyFooter.js";
|
|
8
|
+
import { useRichContent as he } from "./useRichContent.js";
|
|
9
|
+
import { useAuth as fe } from "../../auth/use_auth/useAuth.js";
|
|
10
|
+
import { useConfig as ye } from "../../data/config_provider/useConfig.js";
|
|
11
|
+
import { useList as _e } from "../../list/list_provider/useList.js";
|
|
11
12
|
import { useTranslatedContent as D } from "../../translation/translated_content/useTranslatedContent.js";
|
|
12
|
-
import { SourceListItem as
|
|
13
|
-
import { HashScroll as
|
|
14
|
-
import { ContentHeader as
|
|
13
|
+
import { SourceListItem as ge } from "../../source/source_list_item/SourceListItem.js";
|
|
14
|
+
import { HashScroll as be } from "../../tools/hash_scroll/HashScroll.js";
|
|
15
|
+
import { ContentHeader as Me } from "../../user_content/content_header/ContentHeader.js";
|
|
15
16
|
import { Icon as F } from "../../icons/icon/Icon.js";
|
|
16
|
-
import { ReadMore as
|
|
17
|
-
import { TranslationButton as
|
|
18
|
-
import { ContentFooter as
|
|
19
|
-
import { VoteButton as
|
|
20
|
-
import { VotePaginatedList as
|
|
21
|
-
import { UserContentSkeleton as
|
|
22
|
-
import { Button as
|
|
23
|
-
const
|
|
17
|
+
import { ReadMore as Ie } from "../../text/read_more/ReadMore.js";
|
|
18
|
+
import { TranslationButton as ve } from "../../translation/translation_button/TranslationButton.js";
|
|
19
|
+
import { ContentFooter as Ce } from "../../user_content/content_footer/ContentFooter.js";
|
|
20
|
+
import { VoteButton as Se } from "../../vote/vote_button/VoteButton.js";
|
|
21
|
+
import { VotePaginatedList as Re } from "../../list/paginated_list/VotePaginatedList.js";
|
|
22
|
+
import { UserContentSkeleton as Te } from "../../skeleton/user_content_skeleton/UserContentSkeleton.js";
|
|
23
|
+
import { Button as Ne } from "../../action/button/Button.js";
|
|
24
|
+
const we = pe(() => import("../../input/argument_input/index.js").then((e) => ({ default: e.ArgumentInput }))), P = (e) => e?.replace(/ /g, " "), Ae = ({
|
|
24
25
|
argument: e,
|
|
25
26
|
argumentReplies: n,
|
|
26
27
|
nestingLevel: _ = 0,
|
|
@@ -45,7 +46,7 @@ const Ne = ce(() => import("../../input/argument_input/index.js").then((e) => ({
|
|
|
45
46
|
replyRedirectUrl: Q,
|
|
46
47
|
hideContent: W = !1
|
|
47
48
|
}) => {
|
|
48
|
-
const a =
|
|
49
|
+
const a = me(), { isLoggedIn: x, currentUser: p } = fe(), M = p?.moderation_status === "banned", r = ye(), X = _e(), [m, I] = y(!1), [Z, L] = y(!1), [ee, te] = y(!1), U = he(e), [u, v] = y(), h = D(
|
|
49
50
|
e.content,
|
|
50
51
|
e.language,
|
|
51
52
|
"content",
|
|
@@ -56,7 +57,7 @@ const Ne = ce(() => import("../../input/argument_input/index.js").then((e) => ({
|
|
|
56
57
|
"name",
|
|
57
58
|
e.position?.translation_entries
|
|
58
59
|
), C = `argument_${e.id}`, S = e.position && g?.map((t) => t.id).indexOf(e.position.id) + 1;
|
|
59
|
-
|
|
60
|
+
ne(() => {
|
|
60
61
|
n !== void 0 && ae();
|
|
61
62
|
}, [n]);
|
|
62
63
|
const se = (t) => {
|
|
@@ -66,13 +67,13 @@ const Ne = ce(() => import("../../input/argument_input/index.js").then((e) => ({
|
|
|
66
67
|
}
|
|
67
68
|
}, k = () => {
|
|
68
69
|
te((t) => !t);
|
|
69
|
-
},
|
|
70
|
+
}, B = () => {
|
|
70
71
|
I((t) => !t), v([]);
|
|
71
72
|
}, re = (t) => {
|
|
72
73
|
if (!u?.find((i) => i.id === t.id))
|
|
73
74
|
return t;
|
|
74
|
-
}, ie =
|
|
75
|
-
|
|
75
|
+
}, ie = de((t, i) => /* @__PURE__ */ o(
|
|
76
|
+
ge,
|
|
76
77
|
{
|
|
77
78
|
publisher: t.publisher,
|
|
78
79
|
url: t.source_url,
|
|
@@ -87,8 +88,8 @@ const Ne = ce(() => import("../../input/argument_input/index.js").then((e) => ({
|
|
|
87
88
|
);
|
|
88
89
|
t.length > 0 && (v(t), I(!0));
|
|
89
90
|
}
|
|
90
|
-
},
|
|
91
|
-
|
|
91
|
+
}, $ = (t = null) => /* @__PURE__ */ o(
|
|
92
|
+
xe,
|
|
92
93
|
{
|
|
93
94
|
...t ? { argument: t } : {},
|
|
94
95
|
nestingLevel: _ + 1,
|
|
@@ -102,7 +103,7 @@ const Ne = ce(() => import("../../input/argument_input/index.js").then((e) => ({
|
|
|
102
103
|
flashParent: (i) => se(`argument_${i}`)
|
|
103
104
|
}
|
|
104
105
|
);
|
|
105
|
-
return /* @__PURE__ */ l(
|
|
106
|
+
return /* @__PURE__ */ l(be, { elementId: C, onScroll: () => L(!0), children: [
|
|
106
107
|
/* @__PURE__ */ l(
|
|
107
108
|
"div",
|
|
108
109
|
{
|
|
@@ -118,7 +119,7 @@ const Ne = ce(() => import("../../input/argument_input/index.js").then((e) => ({
|
|
|
118
119
|
id: C,
|
|
119
120
|
children: [
|
|
120
121
|
/* @__PURE__ */ o(
|
|
121
|
-
|
|
122
|
+
Me,
|
|
122
123
|
{
|
|
123
124
|
selectedContent: e.is_selected,
|
|
124
125
|
author: e.author,
|
|
@@ -168,7 +169,7 @@ const Ne = ce(() => import("../../input/argument_input/index.js").then((e) => ({
|
|
|
168
169
|
}
|
|
169
170
|
),
|
|
170
171
|
/* @__PURE__ */ o(
|
|
171
|
-
|
|
172
|
+
Ie,
|
|
172
173
|
{
|
|
173
174
|
content: /* @__PURE__ */ l(f, { children: [
|
|
174
175
|
e.is_edited && /* @__PURE__ */ o("div", { className: s.edited, children: a.formatMessage({
|
|
@@ -183,7 +184,7 @@ const Ne = ce(() => import("../../input/argument_input/index.js").then((e) => ({
|
|
|
183
184
|
}
|
|
184
185
|
) : /* @__PURE__ */ o("div", { className: s.argumentContent, children: P(h.translatedContent) }),
|
|
185
186
|
h.isTranslated && /* @__PURE__ */ o(
|
|
186
|
-
|
|
187
|
+
ve,
|
|
187
188
|
{
|
|
188
189
|
language: e.language,
|
|
189
190
|
callback: () => h.toggleContent()
|
|
@@ -209,7 +210,7 @@ const Ne = ce(() => import("../../input/argument_input/index.js").then((e) => ({
|
|
|
209
210
|
e.sources?.length > 0 && /* @__PURE__ */ o("div", { className: s.argumentSourcesList, children: e.sources.map(ie) })
|
|
210
211
|
] }),
|
|
211
212
|
!w && !e.is_deleted && /* @__PURE__ */ o(
|
|
212
|
-
|
|
213
|
+
Ce,
|
|
213
214
|
{
|
|
214
215
|
resource: e,
|
|
215
216
|
disabled: b || e.status === "rejected" || e.status === "pending" || !x && r?.actions?.disableInputForVisitor === !0 || M,
|
|
@@ -221,7 +222,7 @@ const Ne = ce(() => import("../../input/argument_input/index.js").then((e) => ({
|
|
|
221
222
|
enableReply: _ <= R || p.role === "editor" || p.role === "moderator",
|
|
222
223
|
handleReplyTo: k,
|
|
223
224
|
replyRedirectUrl: Q,
|
|
224
|
-
shareUrl:
|
|
225
|
+
shareUrl: le(r, "a", e.id),
|
|
225
226
|
shareTitle: a.formatMessage({
|
|
226
227
|
id: "share.argument.title",
|
|
227
228
|
defaultMessage: "Share a debate"
|
|
@@ -238,7 +239,7 @@ const Ne = ce(() => import("../../input/argument_input/index.js").then((e) => ({
|
|
|
238
239
|
enableEdition: O,
|
|
239
240
|
enableDeletion: Y,
|
|
240
241
|
children: /* @__PURE__ */ o(
|
|
241
|
-
|
|
242
|
+
Se,
|
|
242
243
|
{
|
|
243
244
|
voteableType: "Message",
|
|
244
245
|
voteableId: e.id,
|
|
@@ -251,12 +252,12 @@ const Ne = ce(() => import("../../input/argument_input/index.js").then((e) => ({
|
|
|
251
252
|
}
|
|
252
253
|
),
|
|
253
254
|
!w && !A && /* @__PURE__ */ o(
|
|
254
|
-
|
|
255
|
+
ue,
|
|
255
256
|
{
|
|
256
257
|
numberReplies: e.number_replies,
|
|
257
258
|
repliesAuthors: e.replies_authors,
|
|
258
259
|
expandReplies: m,
|
|
259
|
-
onToggleReplies:
|
|
260
|
+
onToggleReplies: B,
|
|
260
261
|
isReply: e.is_reply
|
|
261
262
|
}
|
|
262
263
|
)
|
|
@@ -264,8 +265,8 @@ const Ne = ce(() => import("../../input/argument_input/index.js").then((e) => ({
|
|
|
264
265
|
}
|
|
265
266
|
),
|
|
266
267
|
!A && /* @__PURE__ */ l(f, { children: [
|
|
267
|
-
ee && /* @__PURE__ */ o(
|
|
268
|
-
|
|
268
|
+
ee && /* @__PURE__ */ o(ce, { fallback: null, children: /* @__PURE__ */ o(
|
|
269
|
+
we,
|
|
269
270
|
{
|
|
270
271
|
groupId: e.group_id,
|
|
271
272
|
groupType: T,
|
|
@@ -298,13 +299,13 @@ const Ne = ce(() => import("../../input/argument_input/index.js").then((e) => ({
|
|
|
298
299
|
},
|
|
299
300
|
`Reply${e.id}`
|
|
300
301
|
) }),
|
|
301
|
-
u?.length > 0 && m && /* @__PURE__ */ o("div", { className: s.repliesList, children: u.map((t) =>
|
|
302
|
+
u?.length > 0 && m && /* @__PURE__ */ o("div", { className: s.repliesList, children: u.map((t) => $(t)) }),
|
|
302
303
|
m && /* @__PURE__ */ o("div", { className: s.repliesList, children: /* @__PURE__ */ o(
|
|
303
|
-
|
|
304
|
+
Re,
|
|
304
305
|
{
|
|
305
306
|
voteableType: "Message",
|
|
306
307
|
currentListId: `argument_${e.id}_reply_list`,
|
|
307
|
-
loadingComponent: /* @__PURE__ */ o(
|
|
308
|
+
loadingComponent: /* @__PURE__ */ o(Te, {}),
|
|
308
309
|
resource: "messages",
|
|
309
310
|
sort: "+created_at",
|
|
310
311
|
filters: {
|
|
@@ -317,15 +318,15 @@ const Ne = ce(() => import("../../input/argument_input/index.js").then((e) => ({
|
|
|
317
318
|
resourcePropName: "argument",
|
|
318
319
|
emptyListComponent: /* @__PURE__ */ o(f, {}),
|
|
319
320
|
transformData: (t) => re(t),
|
|
320
|
-
children:
|
|
321
|
+
children: $(e)
|
|
321
322
|
}
|
|
322
323
|
) }),
|
|
323
324
|
u?.length > 0 && !m && /* @__PURE__ */ o("div", { className: s.repliesList, children: e.number_replies > 1 && /* @__PURE__ */ o("div", { className: s.readMoreLink, children: /* @__PURE__ */ o(
|
|
324
|
-
|
|
325
|
+
Ne,
|
|
325
326
|
{
|
|
326
327
|
role: "link",
|
|
327
328
|
rightIcon: /* @__PURE__ */ o(F, { name: "lightArrow", height: 10, width: 10 }),
|
|
328
|
-
handleClick:
|
|
329
|
+
handleClick: B,
|
|
329
330
|
children: a.formatMessage({
|
|
330
331
|
id: "argument.argument.see_more",
|
|
331
332
|
defaultMessage: "See more"
|
|
@@ -334,8 +335,8 @@ const Ne = ce(() => import("../../input/argument_input/index.js").then((e) => ({
|
|
|
334
335
|
) }) })
|
|
335
336
|
] })
|
|
336
337
|
] });
|
|
337
|
-
},
|
|
338
|
+
}, xe = Ae;
|
|
338
339
|
export {
|
|
339
|
-
|
|
340
|
-
|
|
340
|
+
Ae as Argument,
|
|
341
|
+
xe as ArgumentContainer
|
|
341
342
|
};
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { jsx as t, jsxs as d, Fragment as I } from "react/jsx-runtime";
|
|
2
2
|
import { useState as p, useEffect as N } from "react";
|
|
3
|
+
import { buildShareUrl as y } from "../../tools/share_url/index.js";
|
|
3
4
|
import C from "classnames";
|
|
4
|
-
import { useIntl as
|
|
5
|
+
import { useIntl as L } from "react-intl";
|
|
5
6
|
import o from "./ProposalBox.module.scss.js";
|
|
6
|
-
import { useConfig as
|
|
7
|
-
import { useAuth as
|
|
7
|
+
import { useConfig as B } from "../../data/config_provider/useConfig.js";
|
|
8
|
+
import { useAuth as U } from "../../auth/use_auth/useAuth.js";
|
|
8
9
|
import { useTranslatedContent as _ } from "../../translation/translated_content/useTranslatedContent.js";
|
|
9
10
|
import { lexicalToHtml as H } from "../../input/text_editor/lexicalToHtml.js";
|
|
10
|
-
import { HashScroll as
|
|
11
|
-
import { ContentHeader as
|
|
12
|
-
import { ReadMore as
|
|
13
|
-
import { TranslationButton as
|
|
11
|
+
import { HashScroll as D } from "../../tools/hash_scroll/HashScroll.js";
|
|
12
|
+
import { ContentHeader as P } from "../../user_content/content_header/ContentHeader.js";
|
|
13
|
+
import { ReadMore as R } from "../../text/read_more/ReadMore.js";
|
|
14
|
+
import { TranslationButton as F } from "../../translation/translation_button/TranslationButton.js";
|
|
14
15
|
import { SourceListItem as $ } from "../../source/source_list_item/SourceListItem.js";
|
|
15
|
-
import { ContentFooter as
|
|
16
|
-
import { UpDownVoteBox as
|
|
17
|
-
const
|
|
16
|
+
import { ContentFooter as j } from "../../user_content/content_footer/ContentFooter.js";
|
|
17
|
+
import { UpDownVoteBox as A } from "../../vote/up_down_vote_box/UpDownVoteBox.js";
|
|
18
|
+
const re = ({
|
|
18
19
|
proposal: e,
|
|
19
20
|
disabled: c = !1,
|
|
20
21
|
fixedContentHeight: m,
|
|
@@ -22,12 +23,12 @@ const te = ({
|
|
|
22
23
|
enableEdition: v = !0,
|
|
23
24
|
hideFooter: x = !1
|
|
24
25
|
}) => {
|
|
25
|
-
const [h, M] = p(null), [w, b] = p(!1),
|
|
26
|
+
const [h, M] = p(null), [w, b] = p(!1), s = L(), a = B(), { currentUser: f } = U(), u = f?.moderation_status === "banned", g = `proposal_${e.id}`, i = _(
|
|
26
27
|
e.title,
|
|
27
28
|
e.language,
|
|
28
29
|
"title",
|
|
29
30
|
e.translation_entries
|
|
30
|
-
),
|
|
31
|
+
), n = _(
|
|
31
32
|
e.content,
|
|
32
33
|
e.language,
|
|
33
34
|
"content",
|
|
@@ -35,24 +36,24 @@ const te = ({
|
|
|
35
36
|
);
|
|
36
37
|
N(() => {
|
|
37
38
|
if (e.rich_content) {
|
|
38
|
-
const
|
|
39
|
-
if (
|
|
40
|
-
const l = H(
|
|
39
|
+
const r = JSON.parse(e.rich_content);
|
|
40
|
+
if (r.hasOwnProperty("root")) {
|
|
41
|
+
const l = H(r);
|
|
41
42
|
M(l);
|
|
42
43
|
}
|
|
43
44
|
}
|
|
44
45
|
}, [e.rich_content]);
|
|
45
46
|
const S = () => {
|
|
46
|
-
i.toggleContent(),
|
|
47
|
+
i.toggleContent(), n.toggleContent();
|
|
47
48
|
};
|
|
48
|
-
return /* @__PURE__ */ t(
|
|
49
|
+
return /* @__PURE__ */ t(D, { elementId: g, onScroll: () => b(!0), children: /* @__PURE__ */ d(
|
|
49
50
|
"div",
|
|
50
51
|
{
|
|
51
52
|
className: C(o.proposalBoxContainer, { [o.flash]: w }),
|
|
52
53
|
id: g,
|
|
53
54
|
children: [
|
|
54
55
|
/* @__PURE__ */ t(
|
|
55
|
-
|
|
56
|
+
P,
|
|
56
57
|
{
|
|
57
58
|
author: e.author,
|
|
58
59
|
tag: e.tag?.display_name,
|
|
@@ -69,23 +70,23 @@ const te = ({
|
|
|
69
70
|
}),
|
|
70
71
|
children: [
|
|
71
72
|
/* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
|
|
72
|
-
|
|
73
|
+
R,
|
|
73
74
|
{
|
|
74
75
|
content: /* @__PURE__ */ d(I, { children: [
|
|
75
|
-
e.is_edited && /* @__PURE__ */ t("div", { className: o.edited, children:
|
|
76
|
+
e.is_edited && /* @__PURE__ */ t("div", { className: o.edited, children: s.formatMessage({
|
|
76
77
|
id: "proposal.updated",
|
|
77
78
|
defaultMessage: "Updated proposal"
|
|
78
79
|
}) }),
|
|
79
80
|
/* @__PURE__ */ t("div", { className: o.proposalTitle, children: i.translatedContent }),
|
|
80
|
-
h && !
|
|
81
|
+
h && !n.isTranslated ? /* @__PURE__ */ t(
|
|
81
82
|
"div",
|
|
82
83
|
{
|
|
83
84
|
className: o.proposalContent,
|
|
84
85
|
dangerouslySetInnerHTML: { __html: h }
|
|
85
86
|
}
|
|
86
|
-
) : /* @__PURE__ */ t("div", { className: o.proposalContent, children:
|
|
87
|
-
(
|
|
88
|
-
|
|
87
|
+
) : /* @__PURE__ */ t("div", { className: o.proposalContent, children: n.translatedContent }),
|
|
88
|
+
(n.isTranslated || i.isTranslated) && /* @__PURE__ */ t(
|
|
89
|
+
F,
|
|
89
90
|
{
|
|
90
91
|
language: e.language,
|
|
91
92
|
callback: () => S()
|
|
@@ -93,54 +94,54 @@ const te = ({
|
|
|
93
94
|
)
|
|
94
95
|
] }),
|
|
95
96
|
lineCount: 7,
|
|
96
|
-
readMoreText:
|
|
97
|
+
readMoreText: s.formatMessage({
|
|
97
98
|
id: "action.read_more",
|
|
98
99
|
defaultMessage: "Read more"
|
|
99
100
|
}),
|
|
100
|
-
readLessText:
|
|
101
|
+
readLessText: s.formatMessage({
|
|
101
102
|
id: "action.read_less",
|
|
102
103
|
defaultMessage: "Read less"
|
|
103
104
|
})
|
|
104
105
|
}
|
|
105
106
|
) }),
|
|
106
|
-
e.sources?.length > 0 && /* @__PURE__ */ t("div", { className: o.proposalSourcesList, children: e.sources.map((
|
|
107
|
+
e.sources?.length > 0 && /* @__PURE__ */ t("div", { className: o.proposalSourcesList, children: e.sources.map((r, l) => /* @__PURE__ */ t(
|
|
107
108
|
$,
|
|
108
109
|
{
|
|
109
|
-
publisher:
|
|
110
|
-
url:
|
|
111
|
-
title:
|
|
110
|
+
publisher: r.publisher,
|
|
111
|
+
url: r.source_url,
|
|
112
|
+
title: r.title,
|
|
112
113
|
index: l
|
|
113
114
|
},
|
|
114
|
-
|
|
115
|
+
r.id
|
|
115
116
|
)) })
|
|
116
117
|
]
|
|
117
118
|
}
|
|
118
119
|
),
|
|
119
120
|
!x && /* @__PURE__ */ t(
|
|
120
|
-
|
|
121
|
+
j,
|
|
121
122
|
{
|
|
122
123
|
resource: e,
|
|
123
124
|
disabled: c || u,
|
|
124
125
|
reportType: "Proposal",
|
|
125
126
|
deleteType: "proposals",
|
|
126
127
|
deleteListId: "proposalsList",
|
|
127
|
-
shareModalTitle:
|
|
128
|
-
shareUrl:
|
|
129
|
-
shareTitle:
|
|
130
|
-
shareText:
|
|
131
|
-
shareCode: `<iframe src="https://cdn.logora.com/embed.html?shortname=${
|
|
132
|
-
showShareCode:
|
|
128
|
+
shareModalTitle: s.formatMessage({ id: "share.proposal" }),
|
|
129
|
+
shareUrl: y(a, "p", e.id),
|
|
130
|
+
shareTitle: s.formatMessage({ id: "share.proposal.title" }),
|
|
131
|
+
shareText: s.formatMessage({ id: "share.proposal.text" }),
|
|
132
|
+
shareCode: `<iframe src="https://cdn.logora.com/embed.html?shortname=${a.shortname}&id=${e.id}&resource=proposal" frameborder="0" width="100%" height="335px" scrolling="no"></iframe>`,
|
|
133
|
+
showShareCode: a?.actions?.hideCodeShare !== !0,
|
|
133
134
|
showActions: !e.author.consultation_id,
|
|
134
135
|
enableEdition: v,
|
|
135
136
|
children: /* @__PURE__ */ t(
|
|
136
|
-
|
|
137
|
+
A,
|
|
137
138
|
{
|
|
138
139
|
voteableType: "Proposal",
|
|
139
140
|
voteableId: e.id,
|
|
140
141
|
totalUpvote: e.total_upvotes,
|
|
141
142
|
totalDownvote: e.total_downvotes,
|
|
142
143
|
disabled: c || f?.id === e?.author?.id || u,
|
|
143
|
-
hideDownvotes:
|
|
144
|
+
hideDownvotes: a?.actions?.hideDownvotes
|
|
144
145
|
}
|
|
145
146
|
)
|
|
146
147
|
}
|
|
@@ -150,5 +151,5 @@ const te = ({
|
|
|
150
151
|
) });
|
|
151
152
|
};
|
|
152
153
|
export {
|
|
153
|
-
|
|
154
|
+
re as ProposalBox
|
|
154
155
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const o = "app.logora.fr", s = (t) => {
|
|
2
|
+
if (typeof t != "string" || t.trim() === "")
|
|
3
|
+
return null;
|
|
4
|
+
const r = t.trim();
|
|
5
|
+
try {
|
|
6
|
+
const { host: n } = new URL(
|
|
7
|
+
/^https?:\/\//i.test(r) ? r : `https://${r}`
|
|
8
|
+
);
|
|
9
|
+
return n || null;
|
|
10
|
+
} catch {
|
|
11
|
+
return null;
|
|
12
|
+
}
|
|
13
|
+
}, e = (t) => s(t?.provider?.shareDomain) ?? o, h = (t, r, n) => `https://${e(t)}/share/${r}/${n}`;
|
|
14
|
+
export {
|
|
15
|
+
o as DEFAULT_SHARE_DOMAIN,
|
|
16
|
+
h as buildShareUrl,
|
|
17
|
+
e as shareDomain
|
|
18
|
+
};
|
package/dist/index.js
CHANGED
|
@@ -5,345 +5,349 @@ import * as t from "./components/icons/hero_icons/index.js";
|
|
|
5
5
|
import * as x from "./components/icons/krone_icons/index.js";
|
|
6
6
|
import * as m from "./components/icons/stern_icons/index.js";
|
|
7
7
|
import * as p from "./components/icons/clarin_icons/index.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
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 {
|
|
158
|
-
import {
|
|
159
|
-
import {
|
|
160
|
-
import {
|
|
161
|
-
import {
|
|
162
|
-
import {
|
|
163
|
-
import {
|
|
164
|
-
import {
|
|
165
|
-
import {
|
|
166
|
-
import {
|
|
167
|
-
import {
|
|
8
|
+
import { DEFAULT_SHARE_DOMAIN as a, buildShareUrl as i, shareDomain as s } from "./components/tools/share_url/index.js";
|
|
9
|
+
import { ActionBar as d } from "./components/list/paginated_list/action_bar/ActionBar.js";
|
|
10
|
+
import { AdUnit as g } from "./components/ad/ad_unit/AdUnit.js";
|
|
11
|
+
import { AnnouncementDialog as B } from "./components/dialog/announcement_dialog/AnnouncementDialog.js";
|
|
12
|
+
import { Argument as A } from "./components/argument/argument/Argument.js";
|
|
13
|
+
import { ArgumentInput as h } from "./components/input/argument_input/ArgumentInput.js";
|
|
14
|
+
import { ArgumentSummaryBox as T } from "./components/summary/argument_summary_box/ArgumentSummaryBox.js";
|
|
15
|
+
import { AuthContext as P } from "./components/auth/use_auth/AuthContext.js";
|
|
16
|
+
import { AuthInitializer as M } from "./components/auth/auth_initializer/AuthInitializer.js";
|
|
17
|
+
import { AuthModal as b } from "./components/auth/auth_modal/AuthModal.js";
|
|
18
|
+
import { AuthProvider as E, withAuth as R } from "./components/auth/use_auth/AuthProvider.js";
|
|
19
|
+
import { AuthProviderFactory as k } from "./components/auth/providers/AuthProviderFactory.js";
|
|
20
|
+
import { AuthorBox as w } from "./components/user/author_box/AuthorBox.js";
|
|
21
|
+
import { Avatar as V } from "./components/user/avatar/Avatar.js";
|
|
22
|
+
import { AvatarSelector as G } from "./components/user/avatar_selector/AvatarSelector.js";
|
|
23
|
+
import { BackLink as H } from "./components/action/back_link/BackLink.js";
|
|
24
|
+
import { BadgeBox as K } from "./components/gamification/badge_box/BadgeBox.js";
|
|
25
|
+
import { BoxSkeleton as Y } from "./components/skeleton/box_skeleton/BoxSkeleton.js";
|
|
26
|
+
import { Button as W } from "./components/action/button/Button.js";
|
|
27
|
+
import { ConfigContext as J, ConfigProvider as Q } from "./components/data/config_provider/ConfigProvider.js";
|
|
28
|
+
import { ConfirmModal as Z } from "./components/dialog/confirm_modal/ConfirmModal.js";
|
|
29
|
+
import { ConsultationBox as ro } from "./components/consultation/consultation_box/ConsultationBox.js";
|
|
30
|
+
import { ContentFooter as to } from "./components/user_content/content_footer/ContentFooter.js";
|
|
31
|
+
import { ContentHeader as mo } from "./components/user_content/content_header/ContentHeader.js";
|
|
32
|
+
import { ContextSourceBox as fo } from "./components/source/context_source_box/ContextSourceBox.js";
|
|
33
|
+
import { ContextSourceList as ao } from "./components/source/context_source_list/ContextSourceList.js";
|
|
34
|
+
import { Countdown as so } from "./components/dialog/countdown/Countdown.js";
|
|
35
|
+
import { DataProviderContext as lo } from "./components/data/data_provider/DataProviderContext.js";
|
|
36
|
+
import { DebateBox as co } from "./components/debate/debate_box/DebateBox.js";
|
|
37
|
+
import { DialogBox as So } from "./components/dialog/dialog_box/DialogBox.js";
|
|
38
|
+
import { Drawer as Co } from "./components/dialog/drawer/Drawer.js";
|
|
39
|
+
import { Dropdown as Io } from "./components/dialog/dropdown/Dropdown.js";
|
|
40
|
+
import { EMAIL_CONSENT_STORAGE_KEY as Lo, useAuthActions as Po } from "./components/auth/use_auth/useAuthActions.js";
|
|
41
|
+
import { EmbedHeader as Mo } from "./components/embed/embed_header/EmbedHeader.js";
|
|
42
|
+
import { ExpandableText as bo } from "./components/text/expandable_text/ExpandableText.js";
|
|
43
|
+
import { FacebookLoginButton as Eo } from "./components/auth/facebook_login_button/FacebookLoginButton.js";
|
|
44
|
+
import { FollowButton as Oo } from "./components/follow/follow_button/FollowButton.js";
|
|
45
|
+
import { Form as No } from "./components/forms/form/form.js";
|
|
46
|
+
import { FormContext as yo } from "./components/forms/form/form-context.js";
|
|
47
|
+
import { GoogleLoginButton as _o } from "./components/auth/google_login_button/GoogleLoginButton.js";
|
|
48
|
+
import { HashScroll as Uo } from "./components/tools/hash_scroll/HashScroll.js";
|
|
49
|
+
import { Icon as $o } from "./components/icons/icon/Icon.js";
|
|
50
|
+
import { IconContext as qo, IconProvider as Yo } from "./components/icons/icon_provider/IconProvider.js";
|
|
51
|
+
import { IconTextLink as Wo } from "./components/action/icon_text_link/IconTextLink.js";
|
|
52
|
+
import { InformationBox as Jo } from "./components/information/information_box/InformationBox.js";
|
|
53
|
+
import { HiddenCheckbox as Xo } from "./components/input/checkbox/hidden/hidden-checkbox.js";
|
|
54
|
+
import { InputProvider as or } from "./components/input/input_provider/InputProvider.js";
|
|
55
|
+
import { IntlContext as er } from "./components/intl/intl_provider/IntlContext.js";
|
|
56
|
+
import { IntlProvider as xr } from "./components/intl/intl_provider/IntlProvider.js";
|
|
57
|
+
import { KeywordBox as pr } from "./components/summary/keyword_box/KeywordBox.js";
|
|
58
|
+
import { LANGUAGES as nr, getLocaleIcon as ar, getLocaleName as ir } from "./components/util/lang_emojis/langEmojis.js";
|
|
59
|
+
import { LineChart as ur } from "./components/chart/line_chart/LineChart.js";
|
|
60
|
+
import { Link as lr } from "./components/action/link/Link.js";
|
|
61
|
+
import { ListProvider as cr } from "./components/list/list_provider/ListProvider.js";
|
|
62
|
+
import { Loader as Sr } from "./components/progress/loader/Loader.js";
|
|
63
|
+
import { Location as Cr } from "./components/util/location/Location.js";
|
|
64
|
+
import { LoginForm as Ir } from "./components/auth/login_form/LoginForm.js";
|
|
65
|
+
import { Message as Lr } from "./components/input/text_input/message.js";
|
|
66
|
+
import { Modal as vr } from "./components/dialog/modal/Modal.js";
|
|
67
|
+
import { ModalContext as Fr, ModalProvider as br } from "./components/dialog/modal/ModalProvider.js";
|
|
68
|
+
import { NavbarButton as Er } from "./components/navbar/navbar_button/NavbarButton.js";
|
|
69
|
+
import { NavbarModal as Or } from "./components/navbar/navbar_modal/NavbarModal.js";
|
|
70
|
+
import { NotificationItem as Nr } from "./components/notification/notification_item/NotificationItem.js";
|
|
71
|
+
import { NotificationMenu as yr } from "./components/notification/notification_menu/NotificationMenu.js";
|
|
72
|
+
import { OAuth2Button as _r } from "./components/auth/oauth2_button/OAuth2Button.js";
|
|
73
|
+
import { ONBOARDING_BEFORE_LOGIN_STORAGE_KEY as Ur, getOnboardingBeforeLoginStorageKey as Hr, saveOnboardingBeforeLogin as $r, useOnboarding as Kr } from "./components/user/onboarding_modal/useOnboarding.js";
|
|
74
|
+
import { OnboardingModal as Yr } from "./components/user/onboarding_modal/OnboardingModal.js";
|
|
75
|
+
import { PageSkeleton as Wr } from "./components/skeleton/page_skeleton/PageSkeleton.js";
|
|
76
|
+
import { PaginatedList as Jr } from "./components/list/paginated_list/PaginatedList.js";
|
|
77
|
+
import { Pagination as Xr } from "./components/list/pagination/Pagination.js";
|
|
78
|
+
import { PieChart as oe } from "./components/chart/pie_chart/PieChart.js";
|
|
79
|
+
import { PointBox as ee } from "./components/gamification/point_box/PointBox.js";
|
|
80
|
+
import { ProgressBar as xe } from "./components/progress/progress_bar/ProgressBar.js";
|
|
81
|
+
import { ProposalBox as pe } from "./components/proposal/proposal_box/ProposalBox.js";
|
|
82
|
+
import { ReadMore as ne } from "./components/text/read_more/ReadMore.js";
|
|
83
|
+
import { ReportBox as ie } from "./components/report/report_box/ReportBox.js";
|
|
84
|
+
import { ReportModal as ue } from "./components/user_content/use_report_content/ReportModal.js";
|
|
85
|
+
import { ResponsiveProvider as le } from "./components/hooks/use_responsive/ResponsiveProvider.js";
|
|
86
|
+
import { SSOForm as ce } from "./components/auth/sso_form/SSOForm.js";
|
|
87
|
+
import { ScrollToTop as Se } from "./components/tools/scroll_to_top/ScrollToTop.js";
|
|
88
|
+
import { SearchInput as Ce } from "./components/input/search_input/SearchInput.js";
|
|
89
|
+
import { SectionBox as Ie } from "./components/section/section_box/SectionBox.js";
|
|
90
|
+
import { Select as Le } from "./components/input/select/Select.js";
|
|
91
|
+
import { ShareBox as ve } from "./components/share/share_box/ShareBox.js";
|
|
92
|
+
import { ShareButton as Fe } from "./components/share/share_button/ShareButton.js";
|
|
93
|
+
import { ShareModal as De } from "./components/share/share_modal/ShareModal.js";
|
|
94
|
+
import { SideModal as Re } from "./components/modal/side_modal/SideModal.js";
|
|
95
|
+
import { SignupForm as ke } from "./components/auth/signup_form/SignupForm.js";
|
|
96
|
+
import { SocialAuthForm as we } from "./components/auth/social_auth_form/SocialAuthForm.js";
|
|
97
|
+
import { SourceBox as Ve } from "./components/source/source_box/SourceBox.js";
|
|
98
|
+
import { SourceListItem as Ge } from "./components/source/source_list_item/SourceListItem.js";
|
|
99
|
+
import { SourceModal as He } from "./components/source/source_modal/SourceModal.js";
|
|
100
|
+
import { StandardErrorBoundary as Ke } from "./components/error/standard_error_boundary/StandardErrorBoundary.js";
|
|
101
|
+
import { SuggestionBanner as Ye } from "./components/suggestion/suggestion_banner/SuggestionBanner.js";
|
|
102
|
+
import { SuggestionBox as We } from "./components/suggestion/suggestion_box/SuggestionBox.js";
|
|
103
|
+
import { SuggestionInput as Je } from "./components/suggestion/suggestion_input/SuggestionInput.js";
|
|
104
|
+
import { SuggestionVoteBox as Xe } from "./components/vote/suggestion_vote_box/SuggestionVoteBox.js";
|
|
105
|
+
import { Summary as ot } from "./components/summary/summary/Summary.js";
|
|
106
|
+
import { SummaryBox as et } from "./components/summary/summary_box/SummaryBox.js";
|
|
107
|
+
import { SummaryContentBox as xt } from "./components/user_content/summary_content_box/SummaryContentBox.js";
|
|
108
|
+
import { Tab as pt } from "./components/navigation/tabs/Tab.js";
|
|
109
|
+
import { TabPanel as nt } from "./components/navigation/tabs/TabPanel.js";
|
|
110
|
+
import { Tabs as it } from "./components/navigation/tabs/Tabs.js";
|
|
111
|
+
import { Tag as ut } from "./components/tag/tag/Tag.js";
|
|
112
|
+
import { TextEditor as lt } from "./components/input/text_editor/TextEditor.js";
|
|
113
|
+
import { TextInput as ct } from "./components/input/text_input/TextInput.js";
|
|
114
|
+
import { Toast as St } from "./components/dialog/toast/Toast.js";
|
|
115
|
+
import { ToastProvider as Ct } from "./components/dialog/toast_provider/ToastProvider.js";
|
|
116
|
+
import { Toggle as It } from "./components/input/toggle/Toggle.js";
|
|
117
|
+
import { TogglePosition as Lt } from "./components/input/toggle_position/TogglePosition.js";
|
|
118
|
+
import { Tooltip as vt } from "./components/dialog/tooltip/Tooltip.js";
|
|
119
|
+
import { TopArguments as Ft } from "./components/argument/top_arguments/TopArguments.js";
|
|
120
|
+
import { TranslatedContent as Dt } from "./components/translation/translated_content/TranslatedContent.js";
|
|
121
|
+
import { TranslationButton as Rt } from "./components/translation/translation_button/TranslationButton.js";
|
|
122
|
+
import { UpDownVoteBox as kt } from "./components/vote/up_down_vote_box/UpDownVoteBox.js";
|
|
123
|
+
import { UserBox as wt } from "./components/user/user_box/UserBox.js";
|
|
124
|
+
import { UserBoxSmall as Vt } from "./components/user/user_box_small/UserBoxSmall.js";
|
|
125
|
+
import { UserContentSkeleton as Gt } from "./components/skeleton/user_content_skeleton/UserContentSkeleton.js";
|
|
126
|
+
import { VoteBox as Ht } from "./components/vote/vote_box/VoteBox.js";
|
|
127
|
+
import { VoteButton as Kt } from "./components/vote/vote_button/VoteButton.js";
|
|
128
|
+
import { VoteContext as Yt, VoteProvider as zt } from "./components/vote/vote_provider/VoteProvider.js";
|
|
129
|
+
import { VotePaginatedList as jt } from "./components/list/paginated_list/VotePaginatedList.js";
|
|
130
|
+
import { WithAd as Qt } from "./components/ad/with_ad/WithAd.js";
|
|
131
|
+
import { authTokenHandler as Zt } from "./components/auth/use_auth/authTokenHandler.js";
|
|
132
|
+
import { classes as rx, getAccent as ex } from "./components/input/text_input/color-accent.js";
|
|
133
|
+
import { dataProvider as xx } from "./components/data/data_provider/DataProvider.js";
|
|
134
|
+
import { extractFormData as px } from "./components/forms/form/extract-form-data.js";
|
|
135
|
+
import { getTranslatedContent as nx, useTranslatedContent as ax } from "./components/translation/translated_content/useTranslatedContent.js";
|
|
136
|
+
import { httpClient as sx } from "./components/data/axios_client/httpClient.js";
|
|
137
|
+
import { lexicalToHtml as dx } from "./components/input/text_editor/lexicalToHtml.js";
|
|
138
|
+
import { makeStorage as gx } from "./components/auth/use_auth/AuthStorage.js";
|
|
139
|
+
import { uniqueBy as Bx } from "./components/util/unique_by/uniqueBy.js";
|
|
140
|
+
import { useAuth as Ax } from "./components/auth/use_auth/useAuth.js";
|
|
141
|
+
import { useAuthInterceptor as hx } from "./components/auth/use_auth/useAuthInterceptor.js";
|
|
142
|
+
import { useAuthRequired as Tx } from "./components/hooks/use_auth_required/useAuthRequired.js";
|
|
143
|
+
import { useConfig as Px } from "./components/data/config_provider/useConfig.js";
|
|
144
|
+
import { useCssTheme as Mx } from "./components/hooks/use_css_theme/useCssTheme.js";
|
|
145
|
+
import { useData as bx } from "./components/data/data_provider/useData.js";
|
|
146
|
+
import { useDataProvider as Ex } from "./components/data/data_provider/useDataProvider.js";
|
|
147
|
+
import { useDeleteContent as Ox } from "./components/user_content/use_delete_content/useDeleteContent.js";
|
|
148
|
+
import { useFollow as Nx } from "./components/follow/use_follow/useFollow.js";
|
|
149
|
+
import { useFontLoader as yx } from "./components/hooks/use_font_loader/useFontLoader.js";
|
|
150
|
+
import { useForm as _x } from "./components/forms/form/use-form.js";
|
|
151
|
+
import { useFormContext as Ux } from "./components/forms/form/use-form-context.js";
|
|
152
|
+
import { useFormValidation as $x } from "./components/forms/use_form_validation/useFormValidation.js";
|
|
153
|
+
import { useGoogleAdManager as qx } from "./components/ad/use_google_ad_manager/useGoogleAdManager.js";
|
|
154
|
+
import { useInput as zx } from "./components/input/input_provider/useInput.js";
|
|
155
|
+
import { useList as jx } from "./components/list/list_provider/useList.js";
|
|
156
|
+
import { useLocale as Qx } from "./components/intl/intl_provider/useLocale.js";
|
|
157
|
+
import { useMatomo as Zx } from "./components/hooks/use_matomo/useMatomo.js";
|
|
158
|
+
import { useModal as rm } from "./components/dialog/modal/useModal.js";
|
|
159
|
+
import { useRelativeTime as tm } from "./components/hooks/use_relative_time/useRelativeTime.js";
|
|
160
|
+
import { useReportContent as mm } from "./components/user_content/use_report_content/useReportContent.js";
|
|
161
|
+
import { useResponsive as fm } from "./components/hooks/use_responsive/useResponsive.js";
|
|
162
|
+
import { useRichContent as am } from "./components/argument/argument/useRichContent.js";
|
|
163
|
+
import { useRoutes as sm } from "./components/data/config_provider/useRoutes.js";
|
|
164
|
+
import { useSessionStorageState as dm } from "./components/hooks/use_session_storage_state/useSessionStorageState.js";
|
|
165
|
+
import { useToast as gm } from "./components/dialog/toast_provider/useToast.js";
|
|
166
|
+
import { useVote as Bm } from "./components/vote/use_vote/useVote.js";
|
|
167
|
+
import { utf8ToBase64url as Am } from "./components/auth/use_auth/base64.js";
|
|
168
|
+
import { withConfig as hm } from "./components/data/config_provider/withConfig.js";
|
|
168
169
|
export {
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
nr as
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
Ur as
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
Re as
|
|
259
|
-
|
|
260
|
-
|
|
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
|
-
Rt as
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
zt as
|
|
295
|
-
|
|
170
|
+
d as ActionBar,
|
|
171
|
+
g as AdUnit,
|
|
172
|
+
B as AnnouncementDialog,
|
|
173
|
+
A as Argument,
|
|
174
|
+
h as ArgumentInput,
|
|
175
|
+
T as ArgumentSummaryBox,
|
|
176
|
+
P as AuthContext,
|
|
177
|
+
M as AuthInitializer,
|
|
178
|
+
b as AuthModal,
|
|
179
|
+
E as AuthProvider,
|
|
180
|
+
k as AuthProviderFactory,
|
|
181
|
+
w as AuthorBox,
|
|
182
|
+
V as Avatar,
|
|
183
|
+
G as AvatarSelector,
|
|
184
|
+
H as BackLink,
|
|
185
|
+
K as BadgeBox,
|
|
186
|
+
Y as BoxSkeleton,
|
|
187
|
+
W as Button,
|
|
188
|
+
J as ConfigContext,
|
|
189
|
+
Q as ConfigProvider,
|
|
190
|
+
Z as ConfirmModal,
|
|
191
|
+
ro as ConsultationBox,
|
|
192
|
+
to as ContentFooter,
|
|
193
|
+
mo as ContentHeader,
|
|
194
|
+
fo as ContextSourceBox,
|
|
195
|
+
ao as ContextSourceList,
|
|
196
|
+
so as Countdown,
|
|
197
|
+
a as DEFAULT_SHARE_DOMAIN,
|
|
198
|
+
lo as DataProviderContext,
|
|
199
|
+
co as DebateBox,
|
|
200
|
+
So as DialogBox,
|
|
201
|
+
Co as Drawer,
|
|
202
|
+
Io as Dropdown,
|
|
203
|
+
Lo as EMAIL_CONSENT_STORAGE_KEY,
|
|
204
|
+
Mo as EmbedHeader,
|
|
205
|
+
bo as ExpandableText,
|
|
206
|
+
Eo as FacebookLoginButton,
|
|
207
|
+
Oo as FollowButton,
|
|
208
|
+
No as Form,
|
|
209
|
+
yo as FormContext,
|
|
210
|
+
_o as GoogleLoginButton,
|
|
211
|
+
Uo as HashScroll,
|
|
212
|
+
$o as Icon,
|
|
213
|
+
qo as IconContext,
|
|
214
|
+
Yo as IconProvider,
|
|
215
|
+
Wo as IconTextLink,
|
|
216
|
+
Jo as InformationBox,
|
|
217
|
+
Xo as Input,
|
|
218
|
+
or as InputProvider,
|
|
219
|
+
er as IntlContext,
|
|
220
|
+
xr as IntlProvider,
|
|
221
|
+
pr as KeywordBox,
|
|
222
|
+
nr as LANGUAGES,
|
|
223
|
+
ur as LineChart,
|
|
224
|
+
lr as Link,
|
|
225
|
+
cr as ListProvider,
|
|
226
|
+
Sr as Loader,
|
|
227
|
+
Cr as Location,
|
|
228
|
+
Ir as LoginForm,
|
|
229
|
+
Lr as Message,
|
|
230
|
+
vr as Modal,
|
|
231
|
+
Fr as ModalContext,
|
|
232
|
+
br as ModalProvider,
|
|
233
|
+
Er as NavbarButton,
|
|
234
|
+
Or as NavbarModal,
|
|
235
|
+
Nr as NotificationItem,
|
|
236
|
+
yr as NotificationMenu,
|
|
237
|
+
_r as OAuth2Button,
|
|
238
|
+
Ur as ONBOARDING_BEFORE_LOGIN_STORAGE_KEY,
|
|
239
|
+
Yr as OnboardingModal,
|
|
240
|
+
Wr as PageSkeleton,
|
|
241
|
+
Jr as PaginatedList,
|
|
242
|
+
Xr as Pagination,
|
|
243
|
+
oe as PieChart,
|
|
244
|
+
ee as PointBox,
|
|
245
|
+
xe as ProgressBar,
|
|
246
|
+
pe as ProposalBox,
|
|
247
|
+
ne as ReadMore,
|
|
248
|
+
ie as ReportBox,
|
|
249
|
+
ue as ReportModal,
|
|
250
|
+
le as ResponsiveProvider,
|
|
251
|
+
ce as SSOForm,
|
|
252
|
+
Se as ScrollToTop,
|
|
253
|
+
Ce as SearchInput,
|
|
254
|
+
Ie as SectionBox,
|
|
255
|
+
Le as Select,
|
|
256
|
+
ve as ShareBox,
|
|
257
|
+
Fe as ShareButton,
|
|
258
|
+
De as ShareModal,
|
|
259
|
+
Re as SideModal,
|
|
260
|
+
ke as SignupForm,
|
|
261
|
+
we as SocialAuthForm,
|
|
262
|
+
Ve as SourceBox,
|
|
263
|
+
Ge as SourceListItem,
|
|
264
|
+
He as SourceModal,
|
|
265
|
+
Ke as StandardErrorBoundary,
|
|
266
|
+
Ye as SuggestionBanner,
|
|
267
|
+
We as SuggestionBox,
|
|
268
|
+
Je as SuggestionInput,
|
|
269
|
+
Xe as SuggestionVoteBox,
|
|
270
|
+
ot as Summary,
|
|
271
|
+
et as SummaryBox,
|
|
272
|
+
xt as SummaryContentBox,
|
|
273
|
+
pt as Tab,
|
|
274
|
+
nt as TabPanel,
|
|
275
|
+
it as Tabs,
|
|
276
|
+
ut as Tag,
|
|
277
|
+
lt as TextEditor,
|
|
278
|
+
ct as TextInput,
|
|
279
|
+
St as Toast,
|
|
280
|
+
Ct as ToastProvider,
|
|
281
|
+
It as Toggle,
|
|
282
|
+
Lt as TogglePosition,
|
|
283
|
+
vt as Tooltip,
|
|
284
|
+
Ft as TopArguments,
|
|
285
|
+
Dt as TranslatedContent,
|
|
286
|
+
Rt as TranslationButton,
|
|
287
|
+
kt as UpDownVoteBox,
|
|
288
|
+
wt as UserBox,
|
|
289
|
+
Vt as UserBoxSmall,
|
|
290
|
+
Gt as UserContentSkeleton,
|
|
291
|
+
Ht as VoteBox,
|
|
292
|
+
Kt as VoteButton,
|
|
293
|
+
Yt as VoteContext,
|
|
294
|
+
jt as VotePaginatedList,
|
|
295
|
+
zt as VoteProvider,
|
|
296
|
+
Qt as WithAd,
|
|
297
|
+
Zt as authTokenHandler,
|
|
296
298
|
r as bildIcons,
|
|
299
|
+
i as buildShareUrl,
|
|
297
300
|
p as clarinIcons,
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
301
|
+
rx as classes,
|
|
302
|
+
xx as dataProvider,
|
|
303
|
+
px as extractFormData,
|
|
304
|
+
ex as getAccent,
|
|
305
|
+
ar as getLocaleIcon,
|
|
306
|
+
ir as getLocaleName,
|
|
307
|
+
Hr as getOnboardingBeforeLoginStorageKey,
|
|
308
|
+
nx as getTranslatedContent,
|
|
306
309
|
t as heroIcons,
|
|
307
|
-
|
|
310
|
+
sx as httpClient,
|
|
308
311
|
x as kroneIcons,
|
|
309
|
-
|
|
310
|
-
|
|
312
|
+
dx as lexicalToHtml,
|
|
313
|
+
gx as makeStorage,
|
|
311
314
|
o as regularIcons,
|
|
312
|
-
|
|
315
|
+
$r as saveOnboardingBeforeLogin,
|
|
316
|
+
s as shareDomain,
|
|
313
317
|
e as spiegelIcons,
|
|
314
318
|
m as sternIcons,
|
|
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
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
319
|
+
Bx as uniqueBy,
|
|
320
|
+
Ax as useAuth,
|
|
321
|
+
Po as useAuthActions,
|
|
322
|
+
hx as useAuthInterceptor,
|
|
323
|
+
Tx as useAuthRequired,
|
|
324
|
+
Px as useConfig,
|
|
325
|
+
Mx as useCssTheme,
|
|
326
|
+
bx as useData,
|
|
327
|
+
Ex as useDataProvider,
|
|
328
|
+
Ox as useDeleteContent,
|
|
329
|
+
Nx as useFollow,
|
|
330
|
+
yx as useFontLoader,
|
|
331
|
+
_x as useForm,
|
|
332
|
+
Ux as useFormContext,
|
|
333
|
+
$x as useFormValidation,
|
|
334
|
+
qx as useGoogleAdManager,
|
|
335
|
+
zx as useInput,
|
|
336
|
+
jx as useList,
|
|
337
|
+
Qx as useLocale,
|
|
338
|
+
Zx as useMatomo,
|
|
339
|
+
rm as useModal,
|
|
340
|
+
Kr as useOnboarding,
|
|
341
|
+
tm as useRelativeTime,
|
|
342
|
+
mm as useReportContent,
|
|
343
|
+
fm as useResponsive,
|
|
344
|
+
am as useRichContent,
|
|
345
|
+
sm as useRoutes,
|
|
346
|
+
dm as useSessionStorageState,
|
|
347
|
+
gm as useToast,
|
|
348
|
+
ax as useTranslatedContent,
|
|
349
|
+
Bm as useVote,
|
|
350
|
+
Am as utf8ToBase64url,
|
|
351
|
+
R as withAuth,
|
|
352
|
+
hm as withConfig
|
|
349
353
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@logora/debate",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.88",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "AGPL-3.0",
|
|
6
6
|
"description": "Design system of @Logora made with React",
|
|
@@ -24,19 +24,6 @@
|
|
|
24
24
|
"./package.json": "./package.json"
|
|
25
25
|
},
|
|
26
26
|
"author": "Logora <contact@logora.fr>",
|
|
27
|
-
"scripts": {
|
|
28
|
-
"build": "vite build --config vite.lib.config.mjs",
|
|
29
|
-
"dev": "storybook dev -p 6006",
|
|
30
|
-
"storybook": "storybook dev -p 6006",
|
|
31
|
-
"build-storybook": "storybook build",
|
|
32
|
-
"format": "npx @biomejs/biome format --write ./src",
|
|
33
|
-
"lint": "npx @biomejs/biome lint ./src",
|
|
34
|
-
"check": "npx @biomejs/biome check ./src",
|
|
35
|
-
"test": "vitest run",
|
|
36
|
-
"test:watch": "vitest",
|
|
37
|
-
"test:coverage": "vitest run --coverage",
|
|
38
|
-
"prepack": "pnpm build"
|
|
39
|
-
},
|
|
40
27
|
"repository": {
|
|
41
28
|
"type": "git",
|
|
42
29
|
"url": "git+https://github.com/Logora/interface.git"
|
|
@@ -111,5 +98,17 @@
|
|
|
111
98
|
"react-dom": "^17.0.0 || ^18.0.0",
|
|
112
99
|
"react-router": "^6.29.0",
|
|
113
100
|
"react-router-dom": "^6.29.0"
|
|
101
|
+
},
|
|
102
|
+
"scripts": {
|
|
103
|
+
"build": "vite build --config vite.lib.config.mjs",
|
|
104
|
+
"dev": "storybook dev -p 6006",
|
|
105
|
+
"storybook": "storybook dev -p 6006",
|
|
106
|
+
"build-storybook": "storybook build",
|
|
107
|
+
"format": "npx @biomejs/biome format --write ./src",
|
|
108
|
+
"lint": "npx @biomejs/biome lint ./src",
|
|
109
|
+
"check": "npx @biomejs/biome check ./src",
|
|
110
|
+
"test": "vitest run",
|
|
111
|
+
"test:watch": "vitest",
|
|
112
|
+
"test:coverage": "vitest run --coverage"
|
|
114
113
|
}
|
|
115
|
-
}
|
|
114
|
+
}
|