@apolitical/component-library 8.9.1 → 8.9.2-re.2

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/index.mjs CHANGED
@@ -6111,10 +6111,11 @@ const Kp = (e, t) => {
6111
6111
  return ((r = (n = e == null ? void 0 : e.translations) == null ? void 0 : n[t]) == null ? void 0 : r.body) || ((i = e == null ? void 0 : e.original) == null ? void 0 : i.body) || "";
6112
6112
  }, _6 = ({
6113
6113
  payload: e,
6114
- locale: t
6114
+ currentLocale: t,
6115
+ originalLocale: n
6115
6116
  }) => {
6116
- var n, r, i;
6117
- return ((r = (n = e == null ? void 0 : e.translations) == null ? void 0 : n[t]) == null ? void 0 : r.body) || ((i = e == null ? void 0 : e.original) == null ? void 0 : i.body) || "";
6117
+ var r, i, a, o, s;
6118
+ return ((i = (r = e == null ? void 0 : e.translations) == null ? void 0 : r[t]) == null ? void 0 : i.body) || ((o = (a = e == null ? void 0 : e.translations) == null ? void 0 : a[n]) == null ? void 0 : o.body) || ((s = e == null ? void 0 : e.original) == null ? void 0 : s.body) || "";
6118
6119
  };
6119
6120
  let _g, bd = 0;
6120
6121
  const Z4 = () => {
@@ -25420,7 +25421,7 @@ function WR({
25420
25421
  replyType: n,
25421
25422
  currentLocale: r
25422
25423
  }) {
25423
- return !e || !(t != null && t.id) ? [] : e.map(
25424
+ return !e || !(t != null && t.id) ? [] : (console.log("🚀 ~ parseReplies ~ replies:", e), console.log("🚀 ~ parseReplies ~ replyType:", n), console.log("🚀 ~ parseReplies ~ currentLocale:", r), e.map(
25424
25425
  ({
25425
25426
  id: i,
25426
25427
  own_children: a,
@@ -25446,7 +25447,8 @@ function WR({
25446
25447
  user: d == null ? void 0 : d.user,
25447
25448
  body: n === tn.Courses ? _6({
25448
25449
  payload: (z = l == null ? void 0 : l.payload) == null ? void 0 : z.data,
25449
- locale: l == null ? void 0 : l.locale
25450
+ currentLocale: r,
25451
+ originalLocale: l == null ? void 0 : l.locale
25450
25452
  }) : T || "",
25451
25453
  locale: l == null ? void 0 : l.locale,
25452
25454
  createdAt: u,
@@ -25472,7 +25474,7 @@ function WR({
25472
25474
  payloadCollection: (te = l == null ? void 0 : l.payload) == null ? void 0 : te.collection
25473
25475
  };
25474
25476
  }
25475
- );
25477
+ ));
25476
25478
  }
25477
25479
  function VR(e) {
25478
25480
  if (!e || !e.mentioned_users)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apolitical/component-library",
3
- "version": "8.9.1",
3
+ "version": "8.9.2-re.2",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -49,4 +49,4 @@
49
49
  "turndown": "7.1.3",
50
50
  "unified": "11.0.4"
51
51
  }
52
- }
52
+ }