@apolitical/component-library 4.5.7-beta.0 → 4.5.7
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/components/post/post.mock.d.ts +1 -0
- package/index.js +2 -2
- package/index.mjs +14 -6
- package/package.json +1 -1
- package/style.css +1 -1
package/index.mjs
CHANGED
|
@@ -21671,7 +21671,7 @@ const _w = vc(
|
|
|
21671
21671
|
kw,
|
|
21672
21672
|
c.mentions
|
|
21673
21673
|
);
|
|
21674
|
-
h({ ...
|
|
21674
|
+
h((f) => ({ ...f, prettifiedText: g }));
|
|
21675
21675
|
})();
|
|
21676
21676
|
}, [c.showCachedText, c.title, c.body]);
|
|
21677
21677
|
let p = r.formatMessage({ id: "discussionFormCard_placeholder" });
|
|
@@ -21689,7 +21689,7 @@ const _w = vc(
|
|
|
21689
21689
|
/* @__PURE__ */ d.jsx(
|
|
21690
21690
|
Jn,
|
|
21691
21691
|
{
|
|
21692
|
-
className: "input",
|
|
21692
|
+
className: Z("input", { placeholder: !c.showCachedText }),
|
|
21693
21693
|
element: "span",
|
|
21694
21694
|
options: {
|
|
21695
21695
|
forceInline: !0,
|
|
@@ -25389,7 +25389,13 @@ const Ur = ({
|
|
|
25389
25389
|
window.removeEventListener("keyup", E);
|
|
25390
25390
|
}));
|
|
25391
25391
|
const k = (w) => {
|
|
25392
|
-
y(w), w
|
|
25392
|
+
if (y(w), w)
|
|
25393
|
+
a(), m(e);
|
|
25394
|
+
else {
|
|
25395
|
+
if (f === w)
|
|
25396
|
+
return;
|
|
25397
|
+
i(), g(e);
|
|
25398
|
+
}
|
|
25393
25399
|
};
|
|
25394
25400
|
he(() => (k(t), () => {
|
|
25395
25401
|
f && g(e);
|
|
@@ -25466,7 +25472,7 @@ const fE = ({
|
|
|
25466
25472
|
isOpen: e,
|
|
25467
25473
|
functions: {
|
|
25468
25474
|
onClose: () => {
|
|
25469
|
-
l({ ...
|
|
25475
|
+
l((y) => ({ ...y, showCachedText: !0 })), o();
|
|
25470
25476
|
}
|
|
25471
25477
|
},
|
|
25472
25478
|
className: Z("discussion-form-modal", a),
|
|
@@ -25490,7 +25496,7 @@ const fE = ({
|
|
|
25490
25496
|
functions: {
|
|
25491
25497
|
...h,
|
|
25492
25498
|
onChange: (y) => {
|
|
25493
|
-
l({ ...
|
|
25499
|
+
l((v) => ({ ...v, ...y }));
|
|
25494
25500
|
},
|
|
25495
25501
|
onMention: ({ id: y, name: v } = {}) => {
|
|
25496
25502
|
if (!y || !v)
|
|
@@ -25501,7 +25507,9 @@ const fE = ({
|
|
|
25501
25507
|
updated_at: "",
|
|
25502
25508
|
id: y,
|
|
25503
25509
|
data: { name: v }
|
|
25504
|
-
}, l(
|
|
25510
|
+
}, l(
|
|
25511
|
+
(k) => ({ ...k, mentions: E })
|
|
25512
|
+
);
|
|
25505
25513
|
},
|
|
25506
25514
|
create: async (y) => {
|
|
25507
25515
|
o(), h.create && await h.create(y), l({
|