@apolitical/component-library 4.1.8-beta.0 → 4.1.8
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/discussion/discussion.mock.d.ts +2 -2
- package/index.js +1 -1
- package/index.mjs +8 -2
- package/package.json +1 -1
- package/style.css +1 -1
package/index.mjs
CHANGED
|
@@ -23362,7 +23362,7 @@ const lw = ({
|
|
|
23362
23362
|
let r = t ? Zn(e, dw) : e;
|
|
23363
23363
|
return r = r.trim(), n && (r = r.replace(cw, (a, i) => {
|
|
23364
23364
|
const s = n[i];
|
|
23365
|
-
return s ? `<
|
|
23365
|
+
return s ? `<a href="/profiles/${s.id}" class="mentioned-user">@${s.data.name}</a>` : a;
|
|
23366
23366
|
})), r;
|
|
23367
23367
|
};
|
|
23368
23368
|
const Vt = "discussion_", hw = 195, ei = ({
|
|
@@ -25319,7 +25319,13 @@ const Kw = ({
|
|
|
25319
25319
|
),
|
|
25320
25320
|
l == null ? void 0 : l.map((B) => {
|
|
25321
25321
|
var ne, D, q, X, _, T, L, $, U, te, ee, ie;
|
|
25322
|
-
const {
|
|
25322
|
+
const {
|
|
25323
|
+
id: E,
|
|
25324
|
+
own_children: w,
|
|
25325
|
+
latest_children: A,
|
|
25326
|
+
children_counts: j,
|
|
25327
|
+
mentioned_users: I
|
|
25328
|
+
} = B, F = (((ne = w == null ? void 0 : w.like) == null ? void 0 : ne.length) || 0) > 0 ? (D = w == null ? void 0 : w.like) == null ? void 0 : D.find((ae) => {
|
|
25323
25329
|
var V;
|
|
25324
25330
|
return ((V = ae == null ? void 0 : ae.user) == null ? void 0 : V.id) === (x == null ? void 0 : x.id);
|
|
25325
25331
|
}) : !1, S = F ? F == null ? void 0 : F.id : "", C = !!F, R = (((q = A == null ? void 0 : A.like) == null ? void 0 : q.length) || 0) > 0 ? (X = A == null ? void 0 : A.like) == null ? void 0 : X.map((ae) => {
|