@logora/debate 0.3.15 → 0.3.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/components/action/button/Button.module-BXkLuURK.css +1 -0
- package/dist/assets/components/dialog/dropdown/Dropdown.module-FG2Sqrqs.css +1 -0
- package/dist/assets/components/user_content/content_footer/ContentFooter.module-ax3j7VNT.css +1 -0
- package/dist/assets/components/vote/vote_button/VoteButton.module-aP9ZrGSd.css +1 -0
- package/dist/components/action/button/Button.module.scss.js +9 -9
- package/dist/components/dialog/dropdown/Dropdown.module.scss.js +5 -5
- package/dist/components/input/text_editor/TextEditor.js +111 -115
- package/dist/components/user_content/content_footer/ContentFooter.module.scss.js +10 -10
- package/dist/components/vote/vote_button/VoteButton.module.scss.js +5 -5
- package/package.json +1 -1
- package/dist/assets/components/action/button/Button.module-BDXB-NbU.css +0 -1
- package/dist/assets/components/dialog/dropdown/Dropdown.module-B6DdHxbY.css +0 -1
- package/dist/assets/components/user_content/content_footer/ContentFooter.module-B9R3dZFl.css +0 -1
- package/dist/assets/components/vote/vote_button/VoteButton.module-BdTTr7vk.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
button._primaryButton_15hn7_3,a._primaryButton_15hn7_3{padding-right:var(--space-unit, 1em)!important;padding-left:var(--space-unit, 1em)!important;padding-top:var(--spacer-md, calc(var(--space-unit, 1em) * .75))!important;padding-bottom:var(--spacer-md, calc(var(--space-unit, 1em) * .75))!important;display:flex;align-items:center;justify-content:center;border-radius:var(--button-border-radius, var(--box-border-radius, 6px))!important;transition:background-color .3s ease-in-out;background-color:var(--call-primary-color, #434343)!important;border:1px solid;border-color:var(--call-primary-color, #434343)!important;color:var(--text-light, white)!important;font-size:var(--font-size-normal, 16px);font-weight:var(--font-weight-bold, 700);cursor:pointer;-webkit-appearance:initial!important;text-decoration:none!important;gap:var(--spacer-sm, calc(var(--space-unit, 1em) * .5));touch-action:manipulation;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none}button._primaryButton_15hn7_3._iconOnly_15hn7_28,a._primaryButton_15hn7_3._iconOnly_15hn7_28{padding:.6em .8em}button._primaryButton_15hn7_3._iconOnly_15hn7_28>svg,a._primaryButton_15hn7_3._iconOnly_15hn7_28>svg{margin:0!important}button._primaryButton_15hn7_3>svg,a._primaryButton_15hn7_3>svg{fill:var(--text-light, white);fill-rule:evenodd;color:inherit}button._primaryButton_15hn7_3._danger_15hn7_39,a._primaryButton_15hn7_3._danger_15hn7_39{background-color:var(--cancel-primary, #c73c49)!important;border-color:var(--cancel-primary, #c73c49)!important}button._primaryButton_15hn7_3._success_15hn7_43,a._primaryButton_15hn7_3._success_15hn7_43{background-color:var(--success-primary, #4d9e33)!important;border-color:var(--success-primary, #4d9e33)!important}button._primaryButton_15hn7_3._active_15hn7_47,a._primaryButton_15hn7_3._active_15hn7_47{background-color:var(--background-color-primary, white)!important;color:var(--call-primary-color, #434343)!important}button._primaryButton_15hn7_3._active_15hn7_47._active_15hn7_47>svg,a._primaryButton_15hn7_3._active_15hn7_47._active_15hn7_47>svg{fill:var(--call-primary-color, #434343);fill-rule:evenodd}button._primaryButton_15hn7_3._active_15hn7_47._danger_15hn7_39,a._primaryButton_15hn7_3._active_15hn7_47._danger_15hn7_39{color:var(--cancel-primary, #c73c49)!important;border-color:var(--cancel-primary, #c73c49)!important}button._primaryButton_15hn7_3._active_15hn7_47._success_15hn7_43,a._primaryButton_15hn7_3._active_15hn7_47._success_15hn7_43{color:var(--success-primary, #4d9e33)!important;border-color:var(--success-primary, #4d9e33)!important}button._primaryButton_15hn7_3:hover:not(:disabled),a._primaryButton_15hn7_3:hover:not(:disabled){cursor:pointer;opacity:.9;color:var(--text-light, white)!important;background-color:var(--call-primary-color, #434343)!important;text-decoration:none!important}button._primaryButton_15hn7_3:hover:not(:disabled)._danger_15hn7_39,a._primaryButton_15hn7_3:hover:not(:disabled)._danger_15hn7_39{background-color:var(--cancel-primary, #c73c49)!important}button._primaryButton_15hn7_3:hover:not(:disabled)._success_15hn7_43,a._primaryButton_15hn7_3:hover:not(:disabled)._success_15hn7_43{background-color:var(--success-primary, #4d9e33)!important}button._primaryButton_15hn7_3:hover:not(:disabled)._active_15hn7_47,a._primaryButton_15hn7_3:hover:not(:disabled)._active_15hn7_47{background-color:var(--background-color-primary, white)!important;color:var(--call-primary-color, #434343)!important}button._primaryButton_15hn7_3:hover:not(:disabled)._active_15hn7_47._danger_15hn7_39,a._primaryButton_15hn7_3:hover:not(:disabled)._active_15hn7_47._danger_15hn7_39{color:var(--cancel-primary, #c73c49)!important}button._primaryButton_15hn7_3:hover:not(:disabled)._active_15hn7_47._success_15hn7_43,a._primaryButton_15hn7_3:hover:not(:disabled)._active_15hn7_47._success_15hn7_43{color:var(--success-primary, #4d9e33)!important}button._primaryButton_15hn7_3:disabled,a._primaryButton_15hn7_3:disabled{opacity:.5;background-color:var(--background-color-secondary, #E8E8E8);color:var(--text-secondary, #5F5F5F);cursor:not-allowed}button._primaryButton_15hn7_3:focus:not(:focus-visible),a._primaryButton_15hn7_3:focus:not(:focus-visible){outline:none;box-shadow:none}button._primaryButton_15hn7_3._withoutBorder_15hn7_96,a._primaryButton_15hn7_3._withoutBorder_15hn7_96{border:1px solid transparent!important;box-shadow:none!important}button._primaryButton_15hn7_3::-moz-focus-inner,a._primaryButton_15hn7_3::-moz-focus-inner{border:0}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._dropdownWrapper_zrxfa_3{position:relative;display:inline-block}._dropdownHeader_zrxfa_8{border:none;padding:0!important;cursor:pointer;background-color:var(--background-color-primary, white)}._dropdownHeader_zrxfa_8:focus:not(:focus-visible){outline:none;box-shadow:none}._dropdownList_zrxfa_19{position:absolute;top:calc(100% + 2px);z-index:3;background:var(--background-color-primary, white);box-shadow:var(--box-shadow, 0px 2px 5px rgba(7, 42, 68, .1));border:var(--box-border, 1px solid rgba(7, 42, 68, .1));border-radius:var(--box-border-radius, 6px);overscroll-behavior-y:contain;width:max-content}._left_zrxfa_31{left:0!important}._right_zrxfa_35{right:0!important}._center_zrxfa_39{left:50%;transform:translate(-50%)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._container_7ddri_3{font-size:var(--font-size-normal, 16px);font-weight:var(--font-weight-normal, 400);display:flex;align-items:center;justify-content:space-between;gap:var(--spacer-lg, calc(var(--space-unit, 1em) * 1.5))}@container (max-width: 767.98px){._container_7ddri_3{font-size:var(--font-size-normal, 16px)}}._container_7ddri_3[max-width~="1280px"] ._replyAction_7ddri_17{font-size:var(--font-size-extra-small, 14px)}._voteAction_7ddri_21{padding:0!important}._moreAction_7ddri_25{display:flex;align-items:center!important;justify-content:center!important;cursor:pointer;text-align:right}._moreActionDropdown_7ddri_33{display:flex!important}._replyAction_7ddri_17{display:flex!important;align-items:center!important;justify-content:center!important;cursor:pointer;background:none;border:none;padding:0;font:inherit;touch-action:manipulation;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none}._replyAction_7ddri_17:focus:not(:focus-visible){outline:none;box-shadow:none}._replyAction_7ddri_17 ._replyText_7ddri_55{margin-left:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important}._dropdownItem_7ddri_59{display:block;width:100%;clear:both;text-align:inherit;white-space:nowrap;background-color:transparent;border:0;text-align:left;font-size:var(--font-size-small, 16px);padding:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;padding-right:var(--space-unit, 1em)!important;padding-left:var(--space-unit, 1em)!important}._dropdownItem_7ddri_59:hover{background-color:#00000008}._dropdownItem_7ddri_59:focus:not(:focus-visible){outline:none;box-shadow:none}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._voteButton_1kbho_3{background:none;border:0;padding:0;margin:0;font:inherit;color:inherit;cursor:pointer;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))}._voteButton_1kbho_3:focus:not(:focus-visible){outline:none;box-shadow:none}._active_1kbho_22{font-weight:var(--font-weight-bold, 700);color:inherit}._active_1kbho_22 svg{fill:currentColor!important;fill-rule:evenodd}._disabled_1kbho_31{cursor:not-allowed;opacity:.6}._disabled_1kbho_31 svg{fill:var(--text-secondary, #5F5F5F);fill-rule:evenodd}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import '../../../assets/components/action/button/Button.module-
|
|
2
|
-
primaryButton:
|
|
3
|
-
iconOnly:
|
|
4
|
-
danger:
|
|
5
|
-
success:
|
|
1
|
+
import '../../../assets/components/action/button/Button.module-BXkLuURK.css';const n = "_primaryButton_15hn7_3", t = "_iconOnly_15hn7_28", o = "_danger_15hn7_39", c = "_success_15hn7_43", s = "_active_15hn7_47", _ = "_withoutBorder_15hn7_96", r = {
|
|
2
|
+
primaryButton: n,
|
|
3
|
+
iconOnly: t,
|
|
4
|
+
danger: o,
|
|
5
|
+
success: c,
|
|
6
6
|
active: s,
|
|
7
7
|
withoutBorder: _
|
|
8
8
|
};
|
|
9
9
|
export {
|
|
10
10
|
s as active,
|
|
11
|
-
|
|
11
|
+
o as danger,
|
|
12
12
|
r as default,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
t as iconOnly,
|
|
14
|
+
n as primaryButton,
|
|
15
|
+
c as success,
|
|
16
16
|
_ as withoutBorder
|
|
17
17
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import '../../../assets/components/dialog/dropdown/Dropdown.module-
|
|
2
|
-
dropdownWrapper:
|
|
3
|
-
dropdownHeader:
|
|
1
|
+
import '../../../assets/components/dialog/dropdown/Dropdown.module-FG2Sqrqs.css';const r = "_dropdownWrapper_zrxfa_3", o = "_dropdownHeader_zrxfa_8", d = "_dropdownList_zrxfa_19", t = "_left_zrxfa_31", e = "_right_zrxfa_35", n = "_center_zrxfa_39", _ = {
|
|
2
|
+
dropdownWrapper: r,
|
|
3
|
+
dropdownHeader: o,
|
|
4
4
|
dropdownList: d,
|
|
5
5
|
left: t,
|
|
6
6
|
right: e,
|
|
@@ -9,9 +9,9 @@ import '../../../assets/components/dialog/dropdown/Dropdown.module-B6DdHxbY.css'
|
|
|
9
9
|
export {
|
|
10
10
|
n as center,
|
|
11
11
|
_ as default,
|
|
12
|
-
|
|
12
|
+
o as dropdownHeader,
|
|
13
13
|
d as dropdownList,
|
|
14
|
-
|
|
14
|
+
r as dropdownWrapper,
|
|
15
15
|
t as left,
|
|
16
16
|
e as right
|
|
17
17
|
};
|
|
@@ -1,175 +1,171 @@
|
|
|
1
|
-
import { jsxs as u, Fragment as
|
|
2
|
-
import { ListNode as
|
|
3
|
-
import { OverflowNode as
|
|
4
|
-
import { CharacterLimitPlugin as
|
|
5
|
-
import { LexicalComposer as
|
|
6
|
-
import { ContentEditable as
|
|
7
|
-
import { EditorRefPlugin as
|
|
8
|
-
import { LexicalErrorBoundary as
|
|
9
|
-
import { HistoryPlugin as
|
|
10
|
-
import { ListPlugin as
|
|
11
|
-
import { OnChangePlugin as
|
|
1
|
+
import { jsxs as u, Fragment as X, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { ListNode as Y, ListItemNode as Z } from "@lexical/list";
|
|
3
|
+
import { OverflowNode as tt } from "@lexical/overflow";
|
|
4
|
+
import { CharacterLimitPlugin as ot } from "@lexical/react/LexicalCharacterLimitPlugin";
|
|
5
|
+
import { LexicalComposer as et } from "@lexical/react/LexicalComposer";
|
|
6
|
+
import { ContentEditable as rt } from "@lexical/react/LexicalContentEditable";
|
|
7
|
+
import { EditorRefPlugin as it } from "@lexical/react/LexicalEditorRefPlugin";
|
|
8
|
+
import { LexicalErrorBoundary as nt } from "@lexical/react/LexicalErrorBoundary";
|
|
9
|
+
import { HistoryPlugin as st } from "@lexical/react/LexicalHistoryPlugin";
|
|
10
|
+
import { ListPlugin as lt } from "@lexical/react/LexicalListPlugin";
|
|
11
|
+
import { OnChangePlugin as ct } from "@lexical/react/LexicalOnChangePlugin";
|
|
12
12
|
import { RichTextPlugin as mt } from "@lexical/react/LexicalRichTextPlugin";
|
|
13
|
-
import { QuoteNode as
|
|
14
|
-
import
|
|
15
|
-
import { $getRoot as
|
|
16
|
-
import { useState as
|
|
17
|
-
import { useIntl as
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import { AutoSavePlugin as
|
|
21
|
-
import { FocusPlugin as
|
|
22
|
-
import { MaxLengthPlugin as
|
|
23
|
-
import { ResetPlugin as
|
|
24
|
-
import { SetContentPlugin as
|
|
13
|
+
import { QuoteNode as at } from "@lexical/rich-text";
|
|
14
|
+
import I from "classnames";
|
|
15
|
+
import { $getRoot as dt } from "lexical";
|
|
16
|
+
import { useState as a, useId as ft, useEffect as b } from "react";
|
|
17
|
+
import { useIntl as ut } from "react-intl";
|
|
18
|
+
import pt from "./EditorTheme.js";
|
|
19
|
+
import e from "./TextEditor.module.scss.js";
|
|
20
|
+
import { AutoSavePlugin as ht } from "./plugins/AutoSavePlugin.js";
|
|
21
|
+
import { FocusPlugin as gt } from "./plugins/FocusPlugin.js";
|
|
22
|
+
import { MaxLengthPlugin as xt } from "./plugins/MaxLengthPlugin.js";
|
|
23
|
+
import { ResetPlugin as St } from "./plugins/ResetPlugin.js";
|
|
24
|
+
import { SetContentPlugin as Ct } from "./plugins/SetContentPlugin.js";
|
|
25
25
|
import { SetRichContentPlugin as Pt } from "./plugins/SetRichContentPlugin.js";
|
|
26
|
-
import { ToolbarPlugin as
|
|
26
|
+
import { ToolbarPlugin as Tt } from "./plugins/ToolbarPlugin.js";
|
|
27
27
|
import { useModal as vt } from "../../dialog/modal/useModal.js";
|
|
28
|
-
import { SourceModal as
|
|
29
|
-
import { SourceListItem as
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
}, oo = ({
|
|
33
|
-
placeholder: o,
|
|
28
|
+
import { SourceModal as Nt } from "../../source/source_modal/SourceModal.js";
|
|
29
|
+
import { SourceListItem as Et } from "../../source/source_list_item/SourceListItem.js";
|
|
30
|
+
const M = (l) => l?.replace(/ /g, " "), to = ({
|
|
31
|
+
placeholder: l,
|
|
34
32
|
onSubmit: p,
|
|
35
|
-
sources:
|
|
36
|
-
hideSubmit:
|
|
37
|
-
hideSourceAction:
|
|
33
|
+
sources: r,
|
|
34
|
+
hideSubmit: y = !1,
|
|
35
|
+
hideSourceAction: R = !1,
|
|
38
36
|
onActivation: h,
|
|
39
|
-
disabled:
|
|
37
|
+
disabled: w = !1,
|
|
40
38
|
handleChange: g,
|
|
41
39
|
handleSourcesChange: x,
|
|
42
|
-
shortBar:
|
|
40
|
+
shortBar: A = !1,
|
|
43
41
|
active: S = !1,
|
|
44
42
|
maxLength: c,
|
|
45
|
-
disableRichText:
|
|
43
|
+
disableRichText: L = !1,
|
|
46
44
|
editorRef: _,
|
|
47
45
|
uid: C,
|
|
48
|
-
allowedDomains:
|
|
49
|
-
hideCharCount:
|
|
50
|
-
disableAutoActivate:
|
|
51
|
-
...
|
|
46
|
+
allowedDomains: P = [],
|
|
47
|
+
hideCharCount: B = !1,
|
|
48
|
+
disableAutoActivate: F = !1,
|
|
49
|
+
...O
|
|
52
50
|
}) => {
|
|
53
|
-
const [
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}, [
|
|
57
|
-
x &&
|
|
58
|
-
}, [
|
|
59
|
-
const
|
|
60
|
-
|
|
61
|
-
},
|
|
62
|
-
editable: !
|
|
63
|
-
theme:
|
|
64
|
-
onError(
|
|
65
|
-
console.error("TextEditor error:",
|
|
51
|
+
const [n, U] = a(!1), [j, k] = a(""), [z, H] = a(""), [s, d] = a([]), { showModal: J } = vt(), T = ut(), v = ft();
|
|
52
|
+
b(() => {
|
|
53
|
+
r && r.length > 0 && d(r);
|
|
54
|
+
}, [r]), b(() => {
|
|
55
|
+
x && s.length > 0 && x(s);
|
|
56
|
+
}, [s]);
|
|
57
|
+
const N = () => {
|
|
58
|
+
n || (U(!0), h && h());
|
|
59
|
+
}, Q = {
|
|
60
|
+
editable: !w,
|
|
61
|
+
theme: pt,
|
|
62
|
+
onError(o) {
|
|
63
|
+
console.error("TextEditor error:", o);
|
|
66
64
|
},
|
|
67
|
-
nodes: [
|
|
68
|
-
},
|
|
69
|
-
|
|
70
|
-
},
|
|
71
|
-
|
|
72
|
-
const
|
|
73
|
-
|
|
74
|
-
const T = JSON.stringify(m);
|
|
75
|
-
z(a), H(T), g && g(a, T);
|
|
65
|
+
nodes: [Y, Z, at, tt]
|
|
66
|
+
}, W = () => {
|
|
67
|
+
N();
|
|
68
|
+
}, $ = (o) => {
|
|
69
|
+
o.read(() => {
|
|
70
|
+
const i = dt().getTextContent(), m = M(i), f = JSON.stringify(o), E = M(f);
|
|
71
|
+
k(m), H(E), g && g(m, E);
|
|
76
72
|
});
|
|
77
|
-
},
|
|
78
|
-
const
|
|
79
|
-
p && (
|
|
80
|
-
},
|
|
81
|
-
|
|
73
|
+
}, q = (o) => {
|
|
74
|
+
const i = j, m = z, f = s;
|
|
75
|
+
p && (o.preventDefault(), p(i, m, f)), d([]);
|
|
76
|
+
}, D = () => {
|
|
77
|
+
J(
|
|
82
78
|
/* @__PURE__ */ t(
|
|
83
|
-
|
|
79
|
+
Nt,
|
|
84
80
|
{
|
|
85
|
-
onAddSource:
|
|
86
|
-
allowedSources:
|
|
81
|
+
onAddSource: G,
|
|
82
|
+
allowedSources: P
|
|
87
83
|
}
|
|
88
84
|
)
|
|
89
85
|
);
|
|
90
|
-
},
|
|
91
|
-
|
|
92
|
-
},
|
|
93
|
-
|
|
86
|
+
}, G = (o) => {
|
|
87
|
+
d([...s, o]);
|
|
88
|
+
}, K = (o, i) => /* @__PURE__ */ t(
|
|
89
|
+
Et,
|
|
94
90
|
{
|
|
95
|
-
publisher:
|
|
96
|
-
url:
|
|
97
|
-
title:
|
|
98
|
-
index:
|
|
91
|
+
publisher: o.publisher,
|
|
92
|
+
url: o.source_url,
|
|
93
|
+
title: o.title,
|
|
94
|
+
index: i
|
|
99
95
|
},
|
|
100
|
-
|
|
101
|
-
),
|
|
102
|
-
return /* @__PURE__ */ u(
|
|
103
|
-
/* @__PURE__ */ t(
|
|
96
|
+
i
|
|
97
|
+
), V = () => /* @__PURE__ */ t("div", { className: e.editorPlaceholder, children: l });
|
|
98
|
+
return /* @__PURE__ */ u(X, { children: [
|
|
99
|
+
/* @__PURE__ */ t(et, { initialConfig: Q, children: /* @__PURE__ */ t("div", { className: e.editorContainer, onClick: W, children: /* @__PURE__ */ u(
|
|
104
100
|
"div",
|
|
105
101
|
{
|
|
106
|
-
className:
|
|
107
|
-
[
|
|
102
|
+
className: I(e.editorInner, {
|
|
103
|
+
[e.editorInnerInactive]: !n && !S
|
|
108
104
|
}),
|
|
109
105
|
children: [
|
|
110
106
|
/* @__PURE__ */ t(
|
|
111
107
|
mt,
|
|
112
108
|
{
|
|
113
109
|
contentEditable: /* @__PURE__ */ t(
|
|
114
|
-
|
|
110
|
+
rt,
|
|
115
111
|
{
|
|
116
|
-
className:
|
|
117
|
-
[
|
|
112
|
+
className: I(e.editorInput, {
|
|
113
|
+
[e.editorInputInactive]: !n
|
|
118
114
|
}),
|
|
119
|
-
...
|
|
115
|
+
...O
|
|
120
116
|
}
|
|
121
117
|
),
|
|
122
|
-
placeholder:
|
|
123
|
-
ErrorBoundary:
|
|
118
|
+
placeholder: l && /* @__PURE__ */ t(V, {}),
|
|
119
|
+
ErrorBoundary: nt
|
|
124
120
|
}
|
|
125
121
|
),
|
|
126
122
|
/* @__PURE__ */ t(
|
|
127
|
-
|
|
123
|
+
Tt,
|
|
128
124
|
{
|
|
129
|
-
hideSourceAction:
|
|
130
|
-
hideSubmit:
|
|
131
|
-
disableRichText:
|
|
132
|
-
shortBar:
|
|
133
|
-
onSubmit:
|
|
134
|
-
onAddSource:
|
|
135
|
-
isActive:
|
|
136
|
-
sourceTooltip:
|
|
125
|
+
hideSourceAction: R,
|
|
126
|
+
hideSubmit: y,
|
|
127
|
+
disableRichText: L,
|
|
128
|
+
shortBar: A,
|
|
129
|
+
onSubmit: q,
|
|
130
|
+
onAddSource: D,
|
|
131
|
+
isActive: n || S,
|
|
132
|
+
sourceTooltip: P?.length > 0 && T.formatMessage({
|
|
137
133
|
id: "input.allowed_domains_tooltip",
|
|
138
134
|
defaultMessage: "With the new source function, you can add links to your article."
|
|
139
135
|
})
|
|
140
136
|
}
|
|
141
137
|
),
|
|
142
|
-
|
|
143
|
-
/* @__PURE__ */ t(
|
|
138
|
+
n && c && !B && /* @__PURE__ */ u("div", { className: e.charactersCount, children: [
|
|
139
|
+
/* @__PURE__ */ t(ot, { maxLength: c }),
|
|
144
140
|
" ",
|
|
145
|
-
|
|
141
|
+
T.formatMessage({
|
|
146
142
|
id: "input.remaining_chars",
|
|
147
143
|
defaultMessage: "remaining characters"
|
|
148
144
|
})
|
|
149
145
|
] }),
|
|
150
|
-
/* @__PURE__ */ t(ct, {}),
|
|
151
146
|
/* @__PURE__ */ t(lt, {}),
|
|
152
|
-
/* @__PURE__ */ t(
|
|
147
|
+
/* @__PURE__ */ t(st, {}),
|
|
148
|
+
/* @__PURE__ */ t(ct, { onChange: $, ignoreSelectionChange: !0 }),
|
|
153
149
|
/* @__PURE__ */ t(
|
|
154
|
-
|
|
150
|
+
ht,
|
|
155
151
|
{
|
|
156
|
-
onSetContent:
|
|
157
|
-
} :
|
|
158
|
-
storageUid: C ||
|
|
152
|
+
onSetContent: F ? () => {
|
|
153
|
+
} : N,
|
|
154
|
+
storageUid: C || v
|
|
159
155
|
}
|
|
160
156
|
),
|
|
161
|
-
/* @__PURE__ */ t(
|
|
157
|
+
/* @__PURE__ */ t(Ct, {}),
|
|
162
158
|
/* @__PURE__ */ t(Pt, {}),
|
|
163
|
-
/* @__PURE__ */ t(
|
|
164
|
-
c && /* @__PURE__ */ t(
|
|
165
|
-
/* @__PURE__ */ t(
|
|
166
|
-
/* @__PURE__ */ t(
|
|
159
|
+
/* @__PURE__ */ t(gt, {}),
|
|
160
|
+
c && /* @__PURE__ */ t(xt, { maxLength: c }),
|
|
161
|
+
/* @__PURE__ */ t(St, { storageUid: C || v }),
|
|
162
|
+
/* @__PURE__ */ t(it, { editorRef: _ })
|
|
167
163
|
]
|
|
168
164
|
}
|
|
169
165
|
) }) }),
|
|
170
|
-
|
|
166
|
+
r && r.length !== 0 ? /* @__PURE__ */ t("div", { className: e.sourcesBox, children: /* @__PURE__ */ t("div", { className: e.sourceList, children: r.map(K) }) }) : null
|
|
171
167
|
] });
|
|
172
168
|
};
|
|
173
169
|
export {
|
|
174
|
-
|
|
170
|
+
to as TextEditor
|
|
175
171
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import '../../../assets/components/user_content/content_footer/ContentFooter.module-
|
|
1
|
+
import '../../../assets/components/user_content/content_footer/ContentFooter.module-ax3j7VNT.css';const o = "_container_7ddri_3", t = "_replyAction_7ddri_17", n = "_voteAction_7ddri_21", r = "_moreAction_7ddri_25", e = "_moreActionDropdown_7ddri_33", d = "_replyText_7ddri_55", c = "_dropdownItem_7ddri_59", i = {
|
|
2
2
|
container: o,
|
|
3
3
|
replyAction: t,
|
|
4
4
|
voteAction: n,
|
|
5
|
-
moreAction:
|
|
6
|
-
moreActionDropdown:
|
|
7
|
-
replyText:
|
|
8
|
-
dropdownItem:
|
|
5
|
+
moreAction: r,
|
|
6
|
+
moreActionDropdown: e,
|
|
7
|
+
replyText: d,
|
|
8
|
+
dropdownItem: c
|
|
9
9
|
};
|
|
10
10
|
export {
|
|
11
11
|
o as container,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
i as default,
|
|
13
|
+
c as dropdownItem,
|
|
14
|
+
r as moreAction,
|
|
15
|
+
e as moreActionDropdown,
|
|
16
16
|
t as replyAction,
|
|
17
|
-
|
|
17
|
+
d as replyText,
|
|
18
18
|
n as voteAction
|
|
19
19
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import '../../../assets/components/vote/vote_button/VoteButton.module-
|
|
1
|
+
import '../../../assets/components/vote/vote_button/VoteButton.module-aP9ZrGSd.css';const t = "_voteButton_1kbho_3", o = "_active_1kbho_22", e = "_disabled_1kbho_31", s = {
|
|
2
2
|
voteButton: t,
|
|
3
|
-
active:
|
|
4
|
-
disabled:
|
|
3
|
+
active: o,
|
|
4
|
+
disabled: e
|
|
5
5
|
};
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
o as active,
|
|
8
8
|
s as default,
|
|
9
|
-
|
|
9
|
+
e as disabled,
|
|
10
10
|
t as voteButton
|
|
11
11
|
};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
button._primaryButton_2f3tf_3,a._primaryButton_2f3tf_3{padding-right:var(--space-unit, 1em)!important;padding-left:var(--space-unit, 1em)!important;padding-top:var(--spacer-md, calc(var(--space-unit, 1em) * .75))!important;padding-bottom:var(--spacer-md, calc(var(--space-unit, 1em) * .75))!important;display:flex;align-items:center;justify-content:center;border-radius:var(--button-border-radius, var(--box-border-radius, 6px))!important;transition:background-color .3s ease-in-out;background-color:var(--call-primary-color, #434343)!important;border:1px solid;border-color:var(--call-primary-color, #434343)!important;color:var(--text-light, white)!important;font-size:var(--font-size-normal, 16px);font-weight:var(--font-weight-bold, 700);cursor:pointer;-webkit-appearance:initial!important;text-decoration:none!important;gap:var(--spacer-sm, calc(var(--space-unit, 1em) * .5));touch-action:manipulation;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none}button._primaryButton_2f3tf_3._iconOnly_2f3tf_28,a._primaryButton_2f3tf_3._iconOnly_2f3tf_28{padding:.6em .8em}button._primaryButton_2f3tf_3._iconOnly_2f3tf_28>svg,a._primaryButton_2f3tf_3._iconOnly_2f3tf_28>svg{margin:0!important}button._primaryButton_2f3tf_3>svg,a._primaryButton_2f3tf_3>svg{fill:var(--text-light, white);fill-rule:evenodd;color:inherit}button._primaryButton_2f3tf_3._danger_2f3tf_39,a._primaryButton_2f3tf_3._danger_2f3tf_39{background-color:var(--cancel-primary, #c73c49)!important;border-color:var(--cancel-primary, #c73c49)!important}button._primaryButton_2f3tf_3._success_2f3tf_43,a._primaryButton_2f3tf_3._success_2f3tf_43{background-color:var(--success-primary, #4d9e33)!important;border-color:var(--success-primary, #4d9e33)!important}button._primaryButton_2f3tf_3._active_2f3tf_47,a._primaryButton_2f3tf_3._active_2f3tf_47{background-color:var(--background-color-primary, white)!important;color:var(--call-primary-color, #434343)!important}button._primaryButton_2f3tf_3._active_2f3tf_47._active_2f3tf_47>svg,a._primaryButton_2f3tf_3._active_2f3tf_47._active_2f3tf_47>svg{fill:var(--call-primary-color, #434343);fill-rule:evenodd}button._primaryButton_2f3tf_3._active_2f3tf_47._danger_2f3tf_39,a._primaryButton_2f3tf_3._active_2f3tf_47._danger_2f3tf_39{color:var(--cancel-primary, #c73c49)!important;border-color:var(--cancel-primary, #c73c49)!important}button._primaryButton_2f3tf_3._active_2f3tf_47._success_2f3tf_43,a._primaryButton_2f3tf_3._active_2f3tf_47._success_2f3tf_43{color:var(--success-primary, #4d9e33)!important;border-color:var(--success-primary, #4d9e33)!important}button._primaryButton_2f3tf_3:hover:not(:disabled),a._primaryButton_2f3tf_3:hover:not(:disabled){cursor:pointer;opacity:.9;color:var(--text-light, white)!important;background-color:var(--call-primary-color, #434343)!important;text-decoration:none!important}button._primaryButton_2f3tf_3:hover:not(:disabled)._danger_2f3tf_39,a._primaryButton_2f3tf_3:hover:not(:disabled)._danger_2f3tf_39{background-color:var(--cancel-primary, #c73c49)!important}button._primaryButton_2f3tf_3:hover:not(:disabled)._success_2f3tf_43,a._primaryButton_2f3tf_3:hover:not(:disabled)._success_2f3tf_43{background-color:var(--success-primary, #4d9e33)!important}button._primaryButton_2f3tf_3:hover:not(:disabled)._active_2f3tf_47,a._primaryButton_2f3tf_3:hover:not(:disabled)._active_2f3tf_47{background-color:var(--background-color-primary, white)!important;color:var(--call-primary-color, #434343)!important}button._primaryButton_2f3tf_3:hover:not(:disabled)._active_2f3tf_47._danger_2f3tf_39,a._primaryButton_2f3tf_3:hover:not(:disabled)._active_2f3tf_47._danger_2f3tf_39{color:var(--cancel-primary, #c73c49)!important}button._primaryButton_2f3tf_3:hover:not(:disabled)._active_2f3tf_47._success_2f3tf_43,a._primaryButton_2f3tf_3:hover:not(:disabled)._active_2f3tf_47._success_2f3tf_43{color:var(--success-primary, #4d9e33)!important}button._primaryButton_2f3tf_3:disabled,a._primaryButton_2f3tf_3:disabled{opacity:.5;background-color:var(--background-color-secondary, #E8E8E8);color:var(--text-secondary, #5F5F5F);cursor:not-allowed}button._primaryButton_2f3tf_3:focus,a._primaryButton_2f3tf_3:focus{box-shadow:none}button._primaryButton_2f3tf_3:focus-visible,a._primaryButton_2f3tf_3:focus-visible{outline:revert}button._primaryButton_2f3tf_3._withoutBorder_2f3tf_98,a._primaryButton_2f3tf_3._withoutBorder_2f3tf_98{border:1px solid transparent!important;box-shadow:none!important}button._primaryButton_2f3tf_3::-moz-focus-inner,a._primaryButton_2f3tf_3::-moz-focus-inner{border:0}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._dropdownWrapper_7fyzh_3{position:relative;display:inline-block}._dropdownHeader_7fyzh_8{border:none;padding:0!important;cursor:pointer;background-color:var(--background-color-primary, white)}._dropdownHeader_7fyzh_8:focus-visible{outline:revert}._dropdownList_7fyzh_18{position:absolute;top:calc(100% + 2px);z-index:3;background:var(--background-color-primary, white);box-shadow:var(--box-shadow, 0px 2px 5px rgba(7, 42, 68, .1));border:var(--box-border, 1px solid rgba(7, 42, 68, .1));border-radius:var(--box-border-radius, 6px);overscroll-behavior-y:contain;width:max-content}._left_7fyzh_30{left:0!important}._right_7fyzh_34{right:0!important}._center_7fyzh_38{left:50%;transform:translate(-50%)}
|
package/dist/assets/components/user_content/content_footer/ContentFooter.module-B9R3dZFl.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._container_173pi_3{font-size:var(--font-size-normal, 16px);font-weight:var(--font-weight-normal, 400);display:flex;align-items:center;justify-content:space-between;gap:var(--spacer-lg, calc(var(--space-unit, 1em) * 1.5))}@container (max-width: 767.98px){._container_173pi_3{font-size:var(--font-size-normal, 16px)}}._container_173pi_3[max-width~="1280px"] ._replyAction_173pi_17{font-size:var(--font-size-extra-small, 14px)}._voteAction_173pi_21{padding:0!important}._moreAction_173pi_25{display:flex;align-items:center!important;justify-content:center!important;cursor:pointer;text-align:right}._moreActionDropdown_173pi_33{display:flex!important}._replyAction_173pi_17{display:flex!important;align-items:center!important;justify-content:center!important;cursor:pointer;background:none;border:none;padding:0;font:inherit;touch-action:manipulation;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none}._replyAction_173pi_17 ._replyAction_173pi_17:focus-visible{outline:revert}._replyAction_173pi_17 ._replyText_173pi_54{margin-left:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important}._dropdownItem_173pi_58{display:block;width:100%;clear:both;text-align:inherit;white-space:nowrap;background-color:transparent;border:0;text-align:left;font-size:var(--font-size-small, 16px);padding:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;padding-right:var(--space-unit, 1em)!important;padding-left:var(--space-unit, 1em)!important}._dropdownItem_173pi_58:hover{background-color:#00000008}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._voteButton_1q78e_3{background:none;border:0;padding:0;margin:0;font:inherit;color:inherit;cursor:pointer;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))}._active_1q78e_18{font-weight:var(--font-weight-bold, 700);color:inherit}._active_1q78e_18 svg{fill:currentColor!important;fill-rule:evenodd}._disabled_1q78e_27{cursor:not-allowed;opacity:.6}._disabled_1q78e_27 svg{fill:var(--text-secondary, #5F5F5F);fill-rule:evenodd}
|