@logora/debate 0.3.74 → 0.3.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/components/argument/argument/Argument.module-QZdPjj_i.css +1 -0
- package/dist/assets/components/consultation/consultation_box/ConsultationBox.module-DjNiVt-p.css +1 -0
- package/dist/assets/components/input/text_editor/{TextEditor.module-DePSfOvG.css → TextEditor.module-CxuSL3l3.css} +1 -1
- package/dist/assets/components/section/section_box/SectionBox.module-qQs4B6bf.css +1 -0
- package/dist/assets/components/source/context_source_list/ContextSourceList.module-DUPbI-wb.css +1 -0
- package/dist/assets/components/source/source_list_item/SourceListItem.module-fm_uHuY4.css +1 -0
- package/dist/assets/components/summary/summary/Summary.module-2bnx3egy.css +1 -0
- package/dist/assets/components/summary/summary_box/SummaryBox.module-Dr9PevSJ.css +1 -0
- package/dist/assets/components/vote/vote_box/VoteBox.module-C9Q6gBw3.css +1 -0
- package/dist/components/argument/argument/Argument.js +112 -108
- package/dist/components/argument/argument/Argument.module.scss.js +31 -31
- package/dist/components/consultation/consultation_box/ConsultationBox.js +80 -111
- package/dist/components/consultation/consultation_box/ConsultationBox.module.scss.js +31 -29
- package/dist/components/dialog/dropdown/Dropdown.js +35 -28
- package/dist/components/icons/spiegel_icons/Downvote.js +6 -0
- package/dist/components/icons/spiegel_icons/Upvote.js +6 -0
- package/dist/components/icons/spiegel_icons/index.js +46 -46
- package/dist/components/icons/stern_icons/index.js +100 -70
- package/dist/components/input/argument_input/ArgumentInput.js +142 -142
- package/dist/components/input/select/Select.js +19 -19
- package/dist/components/input/text_editor/TextEditor.js +135 -124
- package/dist/components/input/text_editor/TextEditor.module.scss.js +5 -5
- package/dist/components/input/text_editor/plugins/SetContentPlugin.js +13 -13
- package/dist/components/input/text_editor/plugins/SetRichContentPlugin.js +10 -10
- package/dist/components/list/paginated_list/PaginatedList.js +112 -110
- package/dist/components/notification/notification_menu/NotificationMenu.js +23 -22
- package/dist/components/proposal/proposal_box/ProposalBox.js +8 -10
- package/dist/components/section/section_box/SectionBox.js +10 -10
- package/dist/components/section/section_box/SectionBox.module.scss.js +9 -9
- package/dist/components/source/context_source_list/ContextSourceList.js +8 -7
- package/dist/components/source/context_source_list/ContextSourceList.module.scss.js +14 -12
- package/dist/components/source/source_list_item/SourceListItem.js +42 -28
- package/dist/components/source/source_list_item/SourceListItem.module.scss.js +8 -6
- package/dist/components/summary/summary/Summary.js +41 -63
- package/dist/components/summary/summary/Summary.module.scss.js +10 -6
- package/dist/components/summary/summary_box/SummaryBox.module.scss.js +9 -9
- package/dist/components/vote/vote_box/VoteBox.js +123 -145
- package/dist/components/vote/vote_box/VoteBox.module.scss.js +50 -50
- package/package.json +1 -1
- package/dist/assets/components/argument/argument/Argument.module-gLfNRLks.css +0 -1
- package/dist/assets/components/consultation/consultation_box/ConsultationBox.module-BnTr5IaF.css +0 -1
- package/dist/assets/components/section/section_box/SectionBox.module-DUeUtdWr.css +0 -1
- package/dist/assets/components/source/context_source_list/ContextSourceList.module-D6X_0dB7.css +0 -1
- package/dist/assets/components/source/source_list_item/SourceListItem.module-mTxHhXPV.css +0 -1
- package/dist/assets/components/summary/summary/Summary.module-DjfmUlkW.css +0 -1
- package/dist/assets/components/summary/summary_box/SummaryBox.module-DQVkA8l7.css +0 -1
- package/dist/assets/components/vote/vote_box/VoteBox.module-CDrqb2SZ.css +0 -1
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import '../../../assets/components/source/context_source_list/ContextSourceList.module-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import '../../../assets/components/source/context_source_list/ContextSourceList.module-DUPbI-wb.css';const t = "_sectionBox_15pa0_3", n = "_content_15pa0_14", o = "_contentMobile_15pa0_18", e = "_contentTablet_15pa0_21", c = "_contentDesktop_15pa0_24", s = "_listItem_15pa0_28", _ = {
|
|
2
|
+
sectionBox: t,
|
|
3
|
+
content: n,
|
|
4
|
+
contentMobile: o,
|
|
5
|
+
contentTablet: e,
|
|
6
|
+
contentDesktop: c,
|
|
7
|
+
listItem: s
|
|
7
8
|
};
|
|
8
9
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
n as content,
|
|
11
|
+
c as contentDesktop,
|
|
12
|
+
o as contentMobile,
|
|
13
|
+
e as contentTablet,
|
|
14
|
+
_ as default,
|
|
15
|
+
s as listItem,
|
|
16
|
+
t as sectionBox
|
|
15
17
|
};
|
|
@@ -1,34 +1,48 @@
|
|
|
1
|
-
import { jsxs as e, jsx as
|
|
1
|
+
import { jsxs as e, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import t from "./SourceListItem.module.scss.js";
|
|
4
4
|
import { Link as m } from "../../action/link/Link.js";
|
|
5
|
-
import { Icon as
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
/* @__PURE__ */ e("
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
5
|
+
import { Icon as s } from "../../icons/icon/Icon.js";
|
|
6
|
+
const k = ({ index: a = 0, url: l, title: c, publisher: o, onRemove: i }) => /* @__PURE__ */ e("div", { className: t.sourceListItemContainer, children: [
|
|
7
|
+
/* @__PURE__ */ e(
|
|
8
|
+
m,
|
|
9
|
+
{
|
|
10
|
+
className: t.sourceListItem,
|
|
11
|
+
to: l,
|
|
12
|
+
external: !0,
|
|
13
|
+
target: "_blank",
|
|
14
|
+
rel: "nofollow noreferrer noopener",
|
|
15
|
+
"data-tid": "link_view_source",
|
|
16
|
+
children: [
|
|
17
|
+
/* @__PURE__ */ r(s, { name: "link", width: 16, height: 16 }),
|
|
18
|
+
/* @__PURE__ */ e("div", { className: t.sourceListItemLink, children: [
|
|
19
|
+
/* @__PURE__ */ e("span", { children: [
|
|
20
|
+
"[ ",
|
|
21
|
+
a + 1,
|
|
22
|
+
" ] "
|
|
23
|
+
] }),
|
|
24
|
+
/* @__PURE__ */ e("span", { children: [
|
|
25
|
+
o && `${o} – `,
|
|
26
|
+
" ",
|
|
27
|
+
c
|
|
28
|
+
] })
|
|
27
29
|
] })
|
|
28
|
-
]
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
),
|
|
33
|
+
i && /* @__PURE__ */ r(
|
|
34
|
+
"button",
|
|
35
|
+
{
|
|
36
|
+
type: "button",
|
|
37
|
+
className: t.removeSourceButton,
|
|
38
|
+
onClick: (n) => {
|
|
39
|
+
n.preventDefault(), n.stopPropagation(), i();
|
|
40
|
+
},
|
|
41
|
+
"aria-label": "Remove source",
|
|
42
|
+
children: /* @__PURE__ */ r(s, { name: "close", width: 10, height: 10 })
|
|
43
|
+
}
|
|
44
|
+
)
|
|
45
|
+
] });
|
|
32
46
|
export {
|
|
33
|
-
|
|
47
|
+
k as SourceListItem
|
|
34
48
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import '../../../assets/components/source/source_list_item/SourceListItem.module-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import '../../../assets/components/source/source_list_item/SourceListItem.module-fm_uHuY4.css';const t = "_sourceListItemContainer_as5dp_3", e = "_sourceListItem_as5dp_3", o = "_removeSourceButton_as5dp_33", s = {
|
|
2
|
+
sourceListItemContainer: t,
|
|
3
|
+
sourceListItem: e,
|
|
4
|
+
removeSourceButton: o
|
|
4
5
|
};
|
|
5
6
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
s as default,
|
|
8
|
+
o as removeSourceButton,
|
|
9
|
+
e as sourceListItem,
|
|
10
|
+
t as sourceListItemContainer
|
|
9
11
|
};
|
|
@@ -1,88 +1,66 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { useIntl as
|
|
4
|
-
import
|
|
5
|
-
import { SectionBox as
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
title: y,
|
|
14
|
-
subtitle: g
|
|
1
|
+
import { jsx as r, jsxs as p } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { useIntl as h } from "react-intl";
|
|
4
|
+
import m from "./Summary.module.scss.js";
|
|
5
|
+
import { SectionBox as y } from "../../section/section_box/SectionBox.js";
|
|
6
|
+
import { SummaryBox as n } from "../summary_box/SummaryBox.js";
|
|
7
|
+
const M = ({
|
|
8
|
+
summary: t,
|
|
9
|
+
tags: i = [],
|
|
10
|
+
tagClassNames: l = [],
|
|
11
|
+
title: c,
|
|
12
|
+
subtitle: d
|
|
15
13
|
}) => {
|
|
16
|
-
const
|
|
14
|
+
const a = h(), f = () => {
|
|
15
|
+
if (!t) return {};
|
|
16
|
+
if (typeof t == "object") return t;
|
|
17
17
|
try {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
return (await m.json()).data?.content?.arguments || [];
|
|
22
|
-
} catch (o) {
|
|
23
|
-
console.error(o);
|
|
18
|
+
return JSON.parse(t);
|
|
19
|
+
} catch {
|
|
20
|
+
return { global: t };
|
|
24
21
|
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
const r = {};
|
|
30
|
-
if (t.length === 0)
|
|
31
|
-
r["no-position"] = await u(a);
|
|
32
|
-
else {
|
|
33
|
-
const o = await Promise.all(
|
|
34
|
-
t.map((m) => u(a, m.id))
|
|
35
|
-
);
|
|
36
|
-
t.forEach((m, c) => {
|
|
37
|
-
r[m.id] = o[c];
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
x(r);
|
|
41
|
-
} catch (r) {
|
|
42
|
-
console.error(r);
|
|
43
|
-
}
|
|
44
|
-
})();
|
|
45
|
-
}, [a, t]), /* @__PURE__ */ S(
|
|
46
|
-
B,
|
|
22
|
+
}, u = (e) => e ? e.split(`
|
|
23
|
+
`).map((o) => o.trim()).filter(Boolean) : [], s = f();
|
|
24
|
+
return /* @__PURE__ */ r(
|
|
25
|
+
y,
|
|
47
26
|
{
|
|
27
|
+
className: m.sectionBox,
|
|
48
28
|
isCollapsible: !0,
|
|
49
29
|
isCollapsedByDefault: !0,
|
|
50
|
-
title:
|
|
51
|
-
subtitle:
|
|
52
|
-
children: [
|
|
53
|
-
/* @__PURE__ */
|
|
30
|
+
title: c,
|
|
31
|
+
subtitle: d,
|
|
32
|
+
children: /* @__PURE__ */ p("div", { className: m.content, children: [
|
|
33
|
+
/* @__PURE__ */ r("div", { className: m.description, children: a.formatMessage({
|
|
54
34
|
id: "summary.description.argument_summary",
|
|
55
35
|
defaultMessage: "Our algorithm produces comprehensive, well-structured summaries of the most recurrent arguments. Each published argument influences the content of this summary. The better structured the argument, the more weight it carries."
|
|
56
36
|
}) }),
|
|
57
|
-
/* @__PURE__ */
|
|
58
|
-
|
|
37
|
+
/* @__PURE__ */ r("div", { className: m.summaryContainer, children: i.length > 0 ? i.map((e, o) => /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(
|
|
38
|
+
n,
|
|
59
39
|
{
|
|
60
|
-
summaryItems: (
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
emptySummaryText:
|
|
40
|
+
summaryItems: u(s[e.id]),
|
|
41
|
+
tag: e.name,
|
|
42
|
+
tagClassName: l[o],
|
|
43
|
+
emptySummaryText: a.formatMessage({
|
|
64
44
|
id: "info.emptysummary",
|
|
65
45
|
defaultMessage: "No resume found."
|
|
66
46
|
})
|
|
67
47
|
}
|
|
68
|
-
) }
|
|
69
|
-
|
|
48
|
+
) }, e.id)) : /* @__PURE__ */ r(
|
|
49
|
+
n,
|
|
70
50
|
{
|
|
71
|
-
summaryItems: (
|
|
72
|
-
|
|
51
|
+
summaryItems: u(
|
|
52
|
+
s.global || s.untagged || Object.values(s)[0]
|
|
73
53
|
),
|
|
74
|
-
|
|
75
|
-
tagClassName: p[r],
|
|
76
|
-
emptySummaryText: i.formatMessage({
|
|
54
|
+
emptySummaryText: a.formatMessage({
|
|
77
55
|
id: "info.emptysummary",
|
|
78
56
|
defaultMessage: "No resume found."
|
|
79
57
|
})
|
|
80
58
|
}
|
|
81
|
-
) }
|
|
82
|
-
]
|
|
59
|
+
) })
|
|
60
|
+
] })
|
|
83
61
|
}
|
|
84
62
|
);
|
|
85
63
|
};
|
|
86
64
|
export {
|
|
87
|
-
|
|
65
|
+
M as Summary
|
|
88
66
|
};
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import '../../../assets/components/summary/summary/Summary.module-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import '../../../assets/components/summary/summary/Summary.module-2bnx3egy.css';const t = "_sectionBox_tui97_3", n = "_content_tui97_7", o = "_summaryContainer_tui97_11", s = "_description_tui97_35", i = {
|
|
2
|
+
sectionBox: t,
|
|
3
|
+
content: n,
|
|
4
|
+
summaryContainer: o,
|
|
5
|
+
description: s
|
|
4
6
|
};
|
|
5
7
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
n as content,
|
|
9
|
+
i as default,
|
|
10
|
+
s as description,
|
|
11
|
+
t as sectionBox,
|
|
12
|
+
o as summaryContainer
|
|
9
13
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import '../../../assets/components/summary/summary_box/SummaryBox.module-
|
|
1
|
+
import '../../../assets/components/summary/summary_box/SummaryBox.module-Dr9PevSJ.css';const t = "_box_f4my1_3", m = "_stats_f4my1_17", s = "_withTag_f4my1_24", _ = "_tag_f4my1_28", a = "_summaryItem_f4my1_47", y = "_emptySummaryText_f4my1_57", e = {
|
|
2
2
|
box: t,
|
|
3
|
-
stats:
|
|
3
|
+
stats: m,
|
|
4
4
|
withTag: s,
|
|
5
|
-
tag:
|
|
6
|
-
summaryItem:
|
|
7
|
-
emptySummaryText:
|
|
5
|
+
tag: _,
|
|
6
|
+
summaryItem: a,
|
|
7
|
+
emptySummaryText: y
|
|
8
8
|
};
|
|
9
9
|
export {
|
|
10
10
|
t as box,
|
|
11
11
|
e as default,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
y as emptySummaryText,
|
|
13
|
+
m as stats,
|
|
14
|
+
a as summaryItem,
|
|
15
|
+
_ as tag,
|
|
16
16
|
s as withTag
|
|
17
17
|
};
|