@apolitical/component-library 1.17.2-rc.3 → 1.17.3-4339.1

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
@@ -54,7 +54,7 @@ var An = { exports: {} };
54
54
  })(An);
55
55
  var Qs = An.exports;
56
56
  const E = /* @__PURE__ */ Hs(Qs), Us = ({ element: e = "span", showOnFocus: t = !0, children: n, ...r }) => D.createElement(e, { ...r, className: E("hidden", { "show-on-focus": t }), children: n }), ce = We(Us), Ws = ({ element: e = "span", children: t = null, ...n }) => D.createElement(e, { ...n, "aria-hidden": !0 }, t), Fn = We(Ws);
57
- var qt = { exports: {} }, Ye = {};
57
+ var Zt = { exports: {} }, Ye = {};
58
58
  /**
59
59
  * @license React
60
60
  * react-jsx-runtime.production.min.js
@@ -262,8 +262,8 @@ function Vs() {
262
262
  }
263
263
  var je = !1, be;
264
264
  {
265
- var Z = typeof WeakMap == "function" ? WeakMap : Map;
266
- be = new Z();
265
+ var q = typeof WeakMap == "function" ? WeakMap : Map;
266
+ be = new q();
267
267
  }
268
268
  function ae(f, j) {
269
269
  if (!f || je)
@@ -315,18 +315,18 @@ function Vs() {
315
315
  if (Me && C && typeof Me.stack == "string") {
316
316
  for (var L = Me.stack.split(`
317
317
  `), pe = C.stack.split(`
318
- `), q = L.length - 1, te = pe.length - 1; q >= 1 && te >= 0 && L[q] !== pe[te]; )
318
+ `), Z = L.length - 1, te = pe.length - 1; Z >= 1 && te >= 0 && L[Z] !== pe[te]; )
319
319
  te--;
320
- for (; q >= 1 && te >= 0; q--, te--)
321
- if (L[q] !== pe[te]) {
322
- if (q !== 1 || te !== 1)
320
+ for (; Z >= 1 && te >= 0; Z--, te--)
321
+ if (L[Z] !== pe[te]) {
322
+ if (Z !== 1 || te !== 1)
323
323
  do
324
- if (q--, te--, te < 0 || L[q] !== pe[te]) {
324
+ if (Z--, te--, te < 0 || L[Z] !== pe[te]) {
325
325
  var ye = `
326
- ` + L[q].replace(" at new ", " at ");
326
+ ` + L[Z].replace(" at new ", " at ");
327
327
  return f.displayName && ye.includes("<anonymous>") && (ye = ye.replace("<anonymous>", f.displayName)), typeof f == "function" && be.set(f, ye), ye;
328
328
  }
329
- while (q >= 1 && te >= 0);
329
+ while (Z >= 1 && te >= 0);
330
330
  break;
331
331
  }
332
332
  }
@@ -392,8 +392,8 @@ function Vs() {
392
392
  throw pe.name = "Invariant Violation", pe;
393
393
  }
394
394
  L = f[B](j, B, C, S, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
395
- } catch (q) {
396
- L = q;
395
+ } catch (Z) {
396
+ L = Z;
397
397
  }
398
398
  L && !(L instanceof Error) && (Le(H), x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", C || "React class", S, B, typeof L), Le(null)), L instanceof Error && !(L.message in Pe) && (Pe[L.message] = !0, Le(H), x("Failed %s type: %s", S, L.message), Le(null));
399
399
  }
@@ -510,9 +510,9 @@ function Vs() {
510
510
  for (W in j)
511
511
  ve.call(j, W) && !cs.hasOwnProperty(W) && (B[W] = j[W]);
512
512
  if (f && f.defaultProps) {
513
- var q = f.defaultProps;
514
- for (W in q)
515
- B[W] === void 0 && (B[W] = q[W]);
513
+ var Z = f.defaultProps;
514
+ for (W in Z)
515
+ B[W] === void 0 && (B[W] = Z[W]);
516
516
  }
517
517
  if (L || pe) {
518
518
  var te = typeof f == "function" ? f.displayName || f.name || "Unknown" : f;
@@ -647,8 +647,8 @@ Check the top-level render call using <` + S + ">.");
647
647
  (f === void 0 || typeof f == "object" && f !== null && Object.keys(f).length === 0) && (L += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
648
648
  var pe = gs(H);
649
649
  pe ? L += pe : L += mn();
650
- var q;
651
- f === null ? q = "null" : Ee(f) ? q = "array" : f !== void 0 && f.$$typeof === t ? (q = "<" + (k(f.type) || "Unknown") + " />", L = " Did you accidentally export a JSX literal instead of a component?") : q = typeof f, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", q, L);
650
+ var Z;
651
+ f === null ? Z = "null" : Ee(f) ? Z = "array" : f !== void 0 && f.$$typeof === t ? (Z = "<" + (k(f.type) || "Unknown") + " />", L = " Did you accidentally export a JSX literal instead of a component?") : Z = typeof f, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Z, L);
652
652
  }
653
653
  var te = ps(f, j, S, H, W);
654
654
  if (te == null)
@@ -679,8 +679,8 @@ Check the top-level render call using <` + S + ">.");
679
679
  Ge.Fragment = r, Ge.jsx = ks, Ge.jsxs = js;
680
680
  }()), Ge;
681
681
  }
682
- process.env.NODE_ENV === "production" ? qt.exports = zs() : qt.exports = Vs();
683
- var s = qt.exports;
682
+ process.env.NODE_ENV === "production" ? Zt.exports = zs() : Zt.exports = Vs();
683
+ var s = Zt.exports;
684
684
  const Ys = () => {
685
685
  const [e, t] = A(window.location.pathname), n = () => {
686
686
  const r = window.location.pathname;
@@ -834,12 +834,12 @@ const et = (e = !0, t = !1, n = "window") => {
834
834
  break;
835
835
  }
836
836
  return r;
837
- }, qs = (e) => e.replace(/[A-Z]/g, (t) => `-${t.toLowerCase()}`), Zs = (e, t = "en") => new Date(e).toLocaleString(t, { day: "numeric", month: "short" }), Bn = (e, t = "en") => new Date(e).toLocaleString(t, {
837
+ }, Zs = (e) => e.replace(/[A-Z]/g, (t) => `-${t.toLowerCase()}`), qs = (e, t = "en") => new Date(e).toLocaleString(t, { day: "numeric", month: "short" }), Bn = (e, t = "en") => new Date(e).toLocaleString(t, {
838
838
  weekday: "long",
839
839
  day: "numeric",
840
840
  month: "short",
841
841
  year: "numeric"
842
- }), Zt = (e) => {
842
+ }), qt = (e) => {
843
843
  let i;
844
844
  const l = vn(), a = vn(new Date(e));
845
845
  try {
@@ -1711,7 +1711,7 @@ const br = ({ children: e, user: t }) => /* @__PURE__ */ s.jsx(Se.Provider, { va
1711
1711
  o({ ...i, isLoading: !1 }), rr(5e3);
1712
1712
  }).catch(() => o({ isLoading: !1 }));
1713
1713
  }, []), /* @__PURE__ */ s.jsx(_r, { locale: n == null ? void 0 : n.locale, messages: n == null ? void 0 : n.messages, children: /* @__PURE__ */ s.jsx(As, { children: /* @__PURE__ */ s.jsx(br, { user: r, children: /* @__PURE__ */ s.jsx(fr, { children: /* @__PURE__ */ s.jsx(gr, { user: r, children: t }) }) }) }) });
1714
- }, pt = "https://storage.googleapis.com/apolitical-assets/", qe = {
1714
+ }, pt = "https://storage.googleapis.com/apolitical-assets/", Ze = {
1715
1715
  general: "hello@apolitical.co",
1716
1716
  support: "concierge@apolitical.co",
1717
1717
  "data-protection": {
@@ -2080,7 +2080,7 @@ const rn = ({
2080
2080
  }) => {
2081
2081
  const l = P(), a = Gn(t);
2082
2082
  a.name || (a.name = l.formatMessage({ id: `member_${typeof t == "string" ? t : "community"}` }));
2083
- const { name: u, url: c, image: m } = a, d = Rr(a), p = n && n.createdAt ? Zt(n.createdAt) : !1, h = n && n.createdAt ? Bn(n.createdAt) : "";
2083
+ const { name: u, url: c, image: m } = a, d = Rr(a), p = n && n.createdAt ? qt(n.createdAt) : !1, h = n && n.createdAt ? Bn(n.createdAt) : "";
2084
2084
  return D.createElement(e, {
2085
2085
  className: E("member text-medium", i),
2086
2086
  children: /* @__PURE__ */ s.jsxs(
@@ -2173,7 +2173,7 @@ const En = {
2173
2173
  startDate: m
2174
2174
  } = t;
2175
2175
  if (e === "question") {
2176
- const d = o && Zt(o);
2176
+ const d = o && qt(o);
2177
2177
  return /* @__PURE__ */ s.jsxs("p", { className: "details answers", "data-testid": "question-answers", children: [
2178
2178
  n.formatMessage({ id: "card_answers" }, { number: r }),
2179
2179
  o && /* @__PURE__ */ s.jsxs("span", { "data-testid": "question-created-at", children: [
@@ -2205,7 +2205,7 @@ const En = {
2205
2205
  }
2206
2206
  );
2207
2207
  if (u || c) {
2208
- const d = c && Zt(c);
2208
+ const d = c && qt(c);
2209
2209
  return /* @__PURE__ */ s.jsxs("ul", { className: "details", children: [
2210
2210
  u && /* @__PURE__ */ s.jsx("li", { "data-testid": "reading-time", children: n.formatMessage({ id: "card_time_read" }, { time: u }) }),
2211
2211
  c && /* @__PURE__ */ s.jsx("li", { "data-testid": "published-date", children: n.formatMessage(
@@ -2425,7 +2425,7 @@ const Ir = {
2425
2425
  size: "small",
2426
2426
  variant: d.dateHasPassed ? "default" : "information",
2427
2427
  "data-testid": "date",
2428
- children: d.dateHasPassed ? l.formatMessage({ id: "card_ended" }) : Zs(d.startDate)
2428
+ children: d.dateHasPassed ? l.formatMessage({ id: "card_ended" }) : qs(d.startDate)
2429
2429
  }
2430
2430
  ),
2431
2431
  d.banner ? /* @__PURE__ */ s.jsxs("p", { className: "img", children: [
@@ -2457,7 +2457,7 @@ const Ir = {
2457
2457
  const $ = d[F];
2458
2458
  if (!$)
2459
2459
  return null;
2460
- const M = qs(F);
2460
+ const M = Zs(F);
2461
2461
  return /* @__PURE__ */ s.jsx("p", { className: M, "data-testid": M, children: Qe($, N[F]) }, F);
2462
2462
  }),
2463
2463
  /* @__PURE__ */ s.jsx(Ar, { type: v || "", data: d }),
@@ -2687,7 +2687,7 @@ const Qr = ({
2687
2687
  ] }, `carousel-${m}`);
2688
2688
  }
2689
2689
  );
2690
- const Ot = "joinCommunityButton", qn = ({ isMember: e = !1, isShort: t = !1, functions: { join: n, leave: r } = { join: () => {
2690
+ const Ot = "joinCommunityButton", Zn = ({ isMember: e = !1, isShort: t = !1, functions: { join: n, leave: r } = { join: () => {
2691
2691
  }, leave: () => {
2692
2692
  } } }) => {
2693
2693
  const o = P(), i = we(Se), l = i && typeof i.id == "string", [a, u] = A(e), [c, m] = A(e ? "joined" : "notJoined");
@@ -2746,7 +2746,7 @@ const Bt = "communityDetails_", go = ({
2746
2746
  }
2747
2747
  )
2748
2748
  ] }),
2749
- /* @__PURE__ */ s.jsx(qn, { isMember: t, functions: { ...l } }),
2749
+ /* @__PURE__ */ s.jsx(Zn, { isMember: t, functions: { ...l } }),
2750
2750
  t && /* @__PURE__ */ s.jsx(
2751
2751
  Q,
2752
2752
  {
@@ -2849,7 +2849,7 @@ const Ht = { en: "English", es: "Español", fr: "Français", pt: "Português" },
2849
2849
  // @ts-ignore
2850
2850
  // `values` are throwing a type error: https://github.com/formatjs/formatjs/issues/3633
2851
2851
  children: c.formatMessage({ id: `${it}disclaimer` }, {
2852
- email: qe.support,
2852
+ email: Ze.support,
2853
2853
  link: (w) => {
2854
2854
  const v = `mailto:${w}`;
2855
2855
  return /* @__PURE__ */ s.jsx("a", { href: v, children: w });
@@ -2858,7 +2858,7 @@ const Ht = { en: "English", es: "Español", fr: "Français", pt: "Português" },
2858
2858
  })
2859
2859
  ] });
2860
2860
  };
2861
- const Qt = Ms({ locale: "en", messages: sn }), Zn = ({
2861
+ const Qt = Ms({ locale: "en", messages: sn }), qn = ({
2862
2862
  hasNextPage: e = !0,
2863
2863
  loadNextPage: t = () => {
2864
2864
  },
@@ -2959,10 +2959,6 @@ const Vr = [
2959
2959
  key: "microcourses",
2960
2960
  href: "/microcourses/"
2961
2961
  },
2962
- {
2963
- key: "q-and-a",
2964
- href: "/questions-answers/"
2965
- },
2966
2962
  {
2967
2963
  key: "articles",
2968
2964
  href: "/solution-articles/"
@@ -3143,7 +3139,7 @@ const wo = ({ tabs: e, className: t = "" }) => {
3143
3139
  const Xr = {
3144
3140
  "2-1": 901,
3145
3141
  "1-3": 769
3146
- }, qr = ({
3142
+ }, Zr = ({
3147
3143
  layout: e = "2-1",
3148
3144
  hideOnMobile: t = !1,
3149
3145
  className: n = "",
@@ -3152,11 +3148,11 @@ const Xr = {
3152
3148
  const o = et(!0);
3153
3149
  let i = r;
3154
3150
  return D.Children.count(r) === 1 && (i = D.Children.toArray(r)[0], i.props && (i = i.props.children)), /* @__PURE__ */ s.jsx("section", { className: E("columns", `layout-${e}`, n), children: D.Children.map(i, (l, a) => t !== !1 && a === t && o && o < Xr[e] ? null : l) });
3155
- }, ko = ({ activeLink: e, ...t }) => /* @__PURE__ */ s.jsx(St, { children: /* @__PURE__ */ s.jsx(qr, { layout: "1-3", children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
3151
+ }, ko = ({ activeLink: e, ...t }) => /* @__PURE__ */ s.jsx(St, { children: /* @__PURE__ */ s.jsx(Zr, { layout: "1-3", children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
3156
3152
  /* @__PURE__ */ s.jsx(Yr, { activeLink: e }),
3157
3153
  /* @__PURE__ */ s.jsx(Mr, { ...t })
3158
3154
  ] }) }) });
3159
- const Ut = "cookieBanner_", Wt = ["apol-cookie-banner", "apolitical-performance-cookie-consent", "functional-cookie-consent"], zt = new Date(Date.now() + 12 * 30 * 24 * 60 * 60 * 1e3), Zr = () => {
3155
+ const Ut = "cookieBanner_", Wt = ["apol-cookie-banner", "apolitical-performance-cookie-consent", "functional-cookie-consent"], zt = new Date(Date.now() + 12 * 30 * 24 * 60 * 60 * 1e3), qr = () => {
3160
3156
  const e = P(), [t, n, r] = Fs(Wt), [o, i] = A(!t["apol-cookie-banner"]), l = () => {
3161
3157
  Wt.forEach((m) => {
3162
3158
  n(m, !0, {
@@ -3204,11 +3200,10 @@ const Ut = "cookieBanner_", Wt = ["apol-cookie-banner", "apolitical-performance-
3204
3200
  ] });
3205
3201
  }, Ne = {
3206
3202
  platform: {
3207
- order: ["events", "courses", "qanda", "articles"],
3203
+ order: ["events", "courses", "articles"],
3208
3204
  // An array guarantees the right order
3209
3205
  events: { href: "/events/", gtmType: "events-click" },
3210
3206
  courses: { href: "/microcourses/", gtmType: "microcourses-click" },
3211
- qanda: { href: "/questions-answers/", gtmType: "q-and-a-click" },
3212
3207
  articles: { href: "/solution-articles/", gtmType: "articles-click" }
3213
3208
  },
3214
3209
  community: {
@@ -3267,11 +3262,11 @@ const Ut = "cookieBanner_", Wt = ["apol-cookie-banner", "apolitical-performance-
3267
3262
  text: {
3268
3263
  order: ["dataProtection", "euDataProtection"],
3269
3264
  dataProtection: {
3270
- email: qe["data-protection"].default,
3265
+ email: Ze["data-protection"].default,
3271
3266
  gtmType: "email-dpo-link"
3272
3267
  },
3273
3268
  euDataProtection: {
3274
- email: qe["data-protection"].eu,
3269
+ email: Ze["data-protection"].eu,
3275
3270
  gtmType: "email-eu-dpo-link"
3276
3271
  }
3277
3272
  }
@@ -3283,10 +3278,10 @@ const Ut = "cookieBanner_", Wt = ["apol-cookie-banner", "apolitical-performance-
3283
3278
  registered: { address: !0 },
3284
3279
  berlin: { address: !0 },
3285
3280
  support: {
3286
- email: qe.support,
3281
+ email: Ze.support,
3287
3282
  gtmType: "concierge-email-click"
3288
3283
  },
3289
- business: { email: qe.general, gtmType: "hello-email-click" }
3284
+ business: { email: Ze.general, gtmType: "hello-email-click" }
3290
3285
  }
3291
3286
  },
3292
3287
  social: {
@@ -3830,14 +3825,13 @@ const na = ({
3830
3825
  order: ["explore", "topics"],
3831
3826
  menuId: "navigation",
3832
3827
  explore: {
3833
- order: ["events", "courses", "q-and-a", "articles"],
3828
+ order: ["events", "courses", "articles"],
3834
3829
  events: { href: "/events/", className: "icon events" },
3835
3830
  courses: {
3836
3831
  href: "/microcourses/",
3837
3832
  gtmType: "microcourses-click",
3838
3833
  className: "icon courses"
3839
3834
  },
3840
- "q-and-a": { href: "/questions-answers/", className: "icon q-and-a" },
3841
3835
  articles: {
3842
3836
  href: "/solution-articles/",
3843
3837
  gtmType: "articles-click",
@@ -4302,7 +4296,7 @@ const aa = () => {
4302
4296
  ] }),
4303
4297
  v && /* @__PURE__ */ s.jsx("div", { className: "additional-content appended", children: v }),
4304
4298
  c && /* @__PURE__ */ s.jsx(es, {}),
4305
- /* @__PURE__ */ s.jsx(Zr, {})
4299
+ /* @__PURE__ */ s.jsx(qr, {})
4306
4300
  ]
4307
4301
  }
4308
4302
  ) }) });
@@ -4389,7 +4383,7 @@ const To = ({
4389
4383
  u.isAdmin && /* @__PURE__ */ s.jsx(gt, { children: a.formatMessage({ id: "membersList_admin" }) })
4390
4384
  ] }, c)) }),
4391
4385
  n && /* @__PURE__ */ s.jsx(
4392
- Zn,
4386
+ qn,
4393
4387
  {
4394
4388
  hasNextPage: n,
4395
4389
  loadNextPage: r,
@@ -4628,7 +4622,7 @@ const ge = "discussion_form_", is = ({
4628
4622
  text: l,
4629
4623
  button: {
4630
4624
  breakpoints: { mobile: !0, 901: !1 },
4631
- component: /* @__PURE__ */ s.jsx(qn, { isShort: !0, functions: { join: o, leave: i } })
4625
+ component: /* @__PURE__ */ s.jsx(Zn, { isShort: !0, functions: { join: o, leave: i } })
4632
4626
  }
4633
4627
  }
4634
4628
  ) : /* @__PURE__ */ s.jsx(
@@ -4657,9 +4651,9 @@ const ge = "discussion_form_", is = ({
4657
4651
  ...t && { answerSlug: t },
4658
4652
  ...n && { replySlug: n }
4659
4653
  }), ua = (e, t = 10) => !e || e.length === 0 ? [] : e.slice(0, t);
4660
- let Ze = !1;
4654
+ let qe = !1;
4661
4655
  const Yt = () => {
4662
- Ze !== !1 && (clearTimeout(Ze), Ze = !1);
4656
+ qe !== !1 && (clearTimeout(qe), qe = !1);
4663
4657
  }, Gt = 5, ma = ({
4664
4658
  element: e = "div",
4665
4659
  likes: t = 0,
@@ -4677,11 +4671,11 @@ const Yt = () => {
4677
4671
  h(o);
4678
4672
  }, [o]);
4679
4673
  const [m, d] = A(t), [p, h] = A(o), [g, w] = A(!1), [v, y] = A(!1), x = kt(() => ua(n, Gt), [n]), _ = (N) => {
4680
- if (N.preventDefault(), N.stopPropagation(), y(!1), Ze)
4674
+ if (N.preventDefault(), N.stopPropagation(), y(!1), qe)
4681
4675
  return Yt(), !1;
4682
4676
  if (Yt(), g || !l)
4683
4677
  return !1;
4684
- Ze = setTimeout(T, 350);
4678
+ qe = setTimeout(T, 350);
4685
4679
  }, T = async () => {
4686
4680
  if (Yt(), g || !l)
4687
4681
  return !1;
@@ -5481,7 +5475,7 @@ const Co = ({
5481
5475
  ] }, x == null ? void 0 : x.id);
5482
5476
  }),
5483
5477
  !d && /* @__PURE__ */ s.jsx(
5484
- Zn,
5478
+ qn,
5485
5479
  {
5486
5480
  hasNextPage: m,
5487
5481
  loadNextPage: () => c(),
@@ -5859,22 +5853,22 @@ const Co = ({
5859
5853
  },
5860
5854
  userLiked: ((fe = k == null ? void 0 : k.own_children) == null ? void 0 : fe.like) && ((ke = k == null ? void 0 : k.own_children) == null ? void 0 : ke.like.length) > 0,
5861
5855
  likes: ((xe = k == null ? void 0 : k.children_counts) == null ? void 0 : xe.like) || 0,
5862
- peopleWhoLiked: ((je = k == null ? void 0 : k.latest_children) == null ? void 0 : je.like) && ((be = k == null ? void 0 : k.latest_children) == null ? void 0 : be.like.map((Z) => {
5856
+ peopleWhoLiked: ((je = k == null ? void 0 : k.latest_children) == null ? void 0 : je.like) && ((be = k == null ? void 0 : k.latest_children) == null ? void 0 : be.like.map((q) => {
5863
5857
  var ae, he;
5864
5858
  return {
5865
- id: Z == null ? void 0 : Z.user_id,
5866
- name: (he = (ae = Z == null ? void 0 : Z.user) == null ? void 0 : ae.data) == null ? void 0 : he.name
5859
+ id: q == null ? void 0 : q.user_id,
5860
+ name: (he = (ae = q == null ? void 0 : q.user) == null ? void 0 : ae.data) == null ? void 0 : he.name
5867
5861
  };
5868
5862
  }))
5869
5863
  },
5870
5864
  functions: {
5871
5865
  content: {
5872
5866
  createContent: () => console.log("create"),
5873
- deleteContent: (Z) => {
5874
- const { replySlug: ae, replyParentId: he } = Z;
5867
+ deleteContent: (q) => {
5868
+ const { replySlug: ae, replyParentId: he } = q;
5875
5869
  return R({ replyId: ae, replyParentId: he });
5876
5870
  },
5877
- updateContent: (Z, ae) => T({ replyInfo: Z, content: ae })
5871
+ updateContent: (q, ae) => T({ replyInfo: q, content: ae })
5878
5872
  },
5879
5873
  likes: {
5880
5874
  createLike: () => b({
@@ -5883,9 +5877,9 @@ const Co = ({
5883
5877
  }),
5884
5878
  deleteLike: () => {
5885
5879
  var ae, he, K;
5886
- const Z = ((ae = k == null ? void 0 : k.own_children) == null ? void 0 : ae.like) && ((K = (he = k == null ? void 0 : k.own_children) == null ? void 0 : he.like[0]) == null ? void 0 : K.id);
5880
+ const q = ((ae = k == null ? void 0 : k.own_children) == null ? void 0 : ae.like) && ((K = (he = k == null ? void 0 : k.own_children) == null ? void 0 : he.like[0]) == null ? void 0 : K.id);
5887
5881
  return z({
5888
- replyId: Z || ""
5882
+ replyId: q || ""
5889
5883
  });
5890
5884
  }
5891
5885
  },
@@ -5958,7 +5952,7 @@ const Co = ({
5958
5952
  }
5959
5953
  ),
5960
5954
  (r == null ? void 0 : r.length) === 0 || (r == null ? void 0 : r.map((b) => {
5961
- var I, J, X, le, de, ue, G, re, oe, O, me, _e, fe, ke, xe, je, be, Z, ae, he;
5955
+ var I, J, X, le, de, ue, G, re, oe, O, me, _e, fe, ke, xe, je, be, q, ae, he;
5962
5956
  const z = ((I = b == null ? void 0 : b.user) == null ? void 0 : I.id) === (g == null ? void 0 : g.id), k = on(o, z);
5963
5957
  return /* @__PURE__ */ s.jsx(la, { children: /* @__PURE__ */ s.jsx(
5964
5958
  Ct,
@@ -5985,7 +5979,7 @@ const Co = ({
5985
5979
  },
5986
5980
  userLiked: ((ke = b == null ? void 0 : b.own_children) == null ? void 0 : ke.like) && ((xe = b == null ? void 0 : b.own_children) == null ? void 0 : xe.like.length) > 0,
5987
5981
  likes: ((je = b == null ? void 0 : b.children_counts) == null ? void 0 : je.like) || 0,
5988
- peopleWhoLiked: ((be = b == null ? void 0 : b.latest_children) == null ? void 0 : be.like) && ((Z = b == null ? void 0 : b.latest_children) == null ? void 0 : Z.like.map((K) => {
5982
+ peopleWhoLiked: ((be = b == null ? void 0 : b.latest_children) == null ? void 0 : be.like) && ((q = b == null ? void 0 : b.latest_children) == null ? void 0 : q.like.map((K) => {
5989
5983
  var ie, ve;
5990
5984
  return {
5991
5985
  id: K == null ? void 0 : K.user_id,
@@ -6142,7 +6136,7 @@ const No = ({
6142
6136
  leave: w
6143
6137
  }
6144
6138
  }) => {
6145
- var de, ue, G, re, oe, O, me, _e, fe, ke, xe, je, be, Z, ae, he, K, ie, ve, Pe, ze, Le, nt;
6139
+ var de, ue, G, re, oe, O, me, _e, fe, ke, xe, je, be, q, ae, he, K, ie, ve, Pe, ze, Le, nt;
6146
6140
  const v = P(), y = we(Se), x = jt(), {
6147
6141
  data: _,
6148
6142
  isLoading: T,
@@ -6220,7 +6214,7 @@ const No = ({
6220
6214
  organization: ((O = _ == null ? void 0 : _.actor) == null ? void 0 : O.data) && ((_e = (me = _ == null ? void 0 : _.actor) == null ? void 0 : me.data) == null ? void 0 : _e.organization),
6221
6215
  jobTitle: ((fe = _ == null ? void 0 : _.actor) == null ? void 0 : fe.data) && ((xe = (ke = _ == null ? void 0 : _.actor) == null ? void 0 : ke.data) == null ? void 0 : xe.jobTitle),
6222
6216
  image: {
6223
- thumbnail: ((je = _ == null ? void 0 : _.actor) == null ? void 0 : je.data) && ((Z = (be = _ == null ? void 0 : _.actor) == null ? void 0 : be.data) == null ? void 0 : Z.thumbnail) || void 0
6217
+ thumbnail: ((je = _ == null ? void 0 : _.actor) == null ? void 0 : je.data) && ((q = (be = _ == null ? void 0 : _.actor) == null ? void 0 : be.data) == null ? void 0 : q.thumbnail) || void 0
6224
6218
  }
6225
6219
  },
6226
6220
  userLiked: ((ae = _ == null ? void 0 : _.own_reactions) == null ? void 0 : ae.like) && ((he = _ == null ? void 0 : _.own_reactions) == null ? void 0 : he.like.length) > 0,
@@ -6376,11 +6370,11 @@ export {
6376
6370
  Or as CardBlock,
6377
6371
  po as Carousel,
6378
6372
  Un as CollapsibleSection,
6379
- qr as Columns,
6373
+ Zr as Columns,
6380
6374
  go as CommunityDetails,
6381
6375
  Jn as Contributors,
6382
6376
  Mt as ConversationContext,
6383
- Zr as CookieBanner,
6377
+ qr as CookieBanner,
6384
6378
  la as DiscussionConversation,
6385
6379
  is as DiscussionForm,
6386
6380
  ma as DiscussionLikes,
@@ -6388,7 +6382,7 @@ export {
6388
6382
  ha as DiscussionThread,
6389
6383
  Fe as Divider,
6390
6384
  oo as DownloadSection,
6391
- qe as EMAILS,
6385
+ Ze as EMAILS,
6392
6386
  jo as EmailHelperTextBox,
6393
6387
  Tt as EmptyStateBox,
6394
6388
  xo as Filters,
@@ -6404,10 +6398,10 @@ export {
6404
6398
  _r as IntlProvider,
6405
6399
  na as InviteForm,
6406
6400
  $o as InviteModal,
6407
- qn as JoinButton,
6401
+ Zn as JoinButton,
6408
6402
  bo as LanguageSwitcher,
6409
6403
  $t as Link,
6410
- Zn as LoadMore,
6404
+ qn as LoadMore,
6411
6405
  ho as LoadingBlock,
6412
6406
  $e as LoadingPlaceholder,
6413
6407
  Vn as LoadingState,
@@ -9,27 +9,31 @@ declare namespace _default {
9
9
  let order_1: string[];
10
10
  export { order_1 as order };
11
11
  export let menuId: string;
12
- export let explore: {
13
- order: string[];
14
- events: {
15
- href: string;
16
- className: string;
17
- };
18
- courses: {
19
- href: string;
20
- gtmType: string;
21
- className: string;
22
- };
23
- 'q-and-a': {
24
- href: string;
25
- className: string;
26
- };
27
- articles: {
28
- href: string;
29
- gtmType: string;
30
- className: string;
31
- };
32
- };
12
+ export namespace explore {
13
+ let order_2: string[];
14
+ export { order_2 as order };
15
+ export namespace events {
16
+ let href_1: string;
17
+ export { href_1 as href };
18
+ export let className: string;
19
+ }
20
+ export namespace courses {
21
+ let href_2: string;
22
+ export { href_2 as href };
23
+ let gtmType_1: string;
24
+ export { gtmType_1 as gtmType };
25
+ let className_1: string;
26
+ export { className_1 as className };
27
+ }
28
+ export namespace articles {
29
+ let href_3: string;
30
+ export { href_3 as href };
31
+ let gtmType_2: string;
32
+ export { gtmType_2 as gtmType };
33
+ let className_2: string;
34
+ export { className_2 as className };
35
+ }
36
+ }
33
37
  let topics_1: {
34
38
  order: string[];
35
39
  className: string;
@@ -73,8 +77,8 @@ declare namespace _default {
73
77
  export { topics_1 as topics };
74
78
  }
75
79
  namespace partners {
76
- let href_1: string;
77
- export { href_1 as href };
80
+ let href_4: string;
81
+ export { href_4 as href };
78
82
  export let onlyShow: string;
79
83
  }
80
84
  let account: {
@@ -94,15 +98,15 @@ declare namespace _default {
94
98
  };
95
99
  };
96
100
  namespace buttons {
97
- let order_2: string[];
98
- export { order_2 as order };
101
+ let order_3: string[];
102
+ export { order_3 as order };
99
103
  export namespace login {
100
- let href_2: string;
101
- export { href_2 as href };
104
+ let href_5: string;
105
+ export { href_5 as href };
102
106
  }
103
107
  export namespace signup {
104
- let href_3: string;
105
- export { href_3 as href };
108
+ let href_6: string;
109
+ export { href_6 as href };
106
110
  export namespace props {
107
111
  let variant: string;
108
112
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apolitical/component-library",
3
- "version": "1.17.2-rc.3",
3
+ "version": "1.17.3-4339.1",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {