@apolitical/component-library 1.17.1-beta.4 → 1.17.2-beta.0

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 {
@@ -1709,7 +1709,7 @@ const br = ({ children: e, user: t }) => /* @__PURE__ */ s.jsx(Se.Provider, { va
1709
1709
  o({ ...i, isLoading: !1 }), rr(5e3);
1710
1710
  }).catch(() => o({ isLoading: !1 }));
1711
1711
  }, []), /* @__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 }) }) }) }) });
1712
- }, pt = "https://storage.googleapis.com/apolitical-assets/", qe = {
1712
+ }, pt = "https://storage.googleapis.com/apolitical-assets/", Ze = {
1713
1713
  general: "hello@apolitical.co",
1714
1714
  support: "concierge@apolitical.co",
1715
1715
  "data-protection": {
@@ -2078,7 +2078,7 @@ const rn = ({
2078
2078
  }) => {
2079
2079
  const l = P(), a = Gn(t);
2080
2080
  a.name || (a.name = l.formatMessage({ id: `member_${typeof t == "string" ? t : "community"}` }));
2081
- 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) : "";
2081
+ 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) : "";
2082
2082
  return D.createElement(e, {
2083
2083
  className: E("member text-medium", i),
2084
2084
  children: /* @__PURE__ */ s.jsxs(
@@ -2171,7 +2171,7 @@ const En = {
2171
2171
  startDate: m
2172
2172
  } = t;
2173
2173
  if (e === "question") {
2174
- const d = o && Zt(o);
2174
+ const d = o && qt(o);
2175
2175
  return /* @__PURE__ */ s.jsxs("p", { className: "details answers", "data-testid": "question-answers", children: [
2176
2176
  n.formatMessage({ id: "card_answers" }, { number: r }),
2177
2177
  o && /* @__PURE__ */ s.jsxs("span", { "data-testid": "question-created-at", children: [
@@ -2203,7 +2203,7 @@ const En = {
2203
2203
  }
2204
2204
  );
2205
2205
  if (u || c) {
2206
- const d = c && Zt(c);
2206
+ const d = c && qt(c);
2207
2207
  return /* @__PURE__ */ s.jsxs("ul", { className: "details", children: [
2208
2208
  u && /* @__PURE__ */ s.jsx("li", { "data-testid": "reading-time", children: n.formatMessage({ id: "card_time_read" }, { time: u }) }),
2209
2209
  c && /* @__PURE__ */ s.jsx("li", { "data-testid": "published-date", children: n.formatMessage(
@@ -2423,7 +2423,7 @@ const Ir = {
2423
2423
  size: "small",
2424
2424
  variant: d.dateHasPassed ? "default" : "information",
2425
2425
  "data-testid": "date",
2426
- children: d.dateHasPassed ? l.formatMessage({ id: "card_ended" }) : Zs(d.startDate)
2426
+ children: d.dateHasPassed ? l.formatMessage({ id: "card_ended" }) : qs(d.startDate)
2427
2427
  }
2428
2428
  ),
2429
2429
  d.banner ? /* @__PURE__ */ s.jsxs("p", { className: "img", children: [
@@ -2455,7 +2455,7 @@ const Ir = {
2455
2455
  const $ = d[F];
2456
2456
  if (!$)
2457
2457
  return null;
2458
- const M = qs(F);
2458
+ const M = Zs(F);
2459
2459
  return /* @__PURE__ */ s.jsx("p", { className: M, "data-testid": M, children: Qe($, N[F]) }, F);
2460
2460
  }),
2461
2461
  /* @__PURE__ */ s.jsx(Ar, { type: v || "", data: d }),
@@ -2685,7 +2685,7 @@ const Qr = ({
2685
2685
  ] }, `carousel-${m}`);
2686
2686
  }
2687
2687
  );
2688
- const Ot = "joinCommunityButton", qn = ({ isMember: e = !1, isShort: t = !1, functions: { join: n, leave: r } = { join: () => {
2688
+ const Ot = "joinCommunityButton", Zn = ({ isMember: e = !1, isShort: t = !1, functions: { join: n, leave: r } = { join: () => {
2689
2689
  }, leave: () => {
2690
2690
  } } }) => {
2691
2691
  const o = P(), i = we(Se), l = i && typeof i.id == "string", [a, u] = A(e), [c, m] = A(e ? "joined" : "notJoined");
@@ -2744,7 +2744,7 @@ const Bt = "communityDetails_", go = ({
2744
2744
  }
2745
2745
  )
2746
2746
  ] }),
2747
- /* @__PURE__ */ s.jsx(qn, { isMember: t, functions: { ...l } }),
2747
+ /* @__PURE__ */ s.jsx(Zn, { isMember: t, functions: { ...l } }),
2748
2748
  t && /* @__PURE__ */ s.jsx(
2749
2749
  Q,
2750
2750
  {
@@ -2847,7 +2847,7 @@ const Ht = { en: "English", es: "Español", fr: "Français", pt: "Português" },
2847
2847
  // @ts-ignore
2848
2848
  // `values` are throwing a type error: https://github.com/formatjs/formatjs/issues/3633
2849
2849
  children: c.formatMessage({ id: `${it}disclaimer` }, {
2850
- email: qe.support,
2850
+ email: Ze.support,
2851
2851
  link: (w) => {
2852
2852
  const v = `mailto:${w}`;
2853
2853
  return /* @__PURE__ */ s.jsx("a", { href: v, children: w });
@@ -2856,7 +2856,7 @@ const Ht = { en: "English", es: "Español", fr: "Français", pt: "Português" },
2856
2856
  })
2857
2857
  ] });
2858
2858
  };
2859
- const Qt = Ms({ locale: "en", messages: sn }), Zn = ({
2859
+ const Qt = Ms({ locale: "en", messages: sn }), qn = ({
2860
2860
  hasNextPage: e = !0,
2861
2861
  loadNextPage: t = () => {
2862
2862
  },
@@ -2957,10 +2957,6 @@ const Vr = [
2957
2957
  key: "microcourses",
2958
2958
  href: "/microcourses/"
2959
2959
  },
2960
- {
2961
- key: "q-and-a",
2962
- href: "/questions-answers/"
2963
- },
2964
2960
  {
2965
2961
  key: "articles",
2966
2962
  href: "/solution-articles/"
@@ -3141,7 +3137,7 @@ const wo = ({ tabs: e, className: t = "" }) => {
3141
3137
  const Xr = {
3142
3138
  "2-1": 901,
3143
3139
  "1-3": 769
3144
- }, qr = ({
3140
+ }, Zr = ({
3145
3141
  layout: e = "2-1",
3146
3142
  hideOnMobile: t = !1,
3147
3143
  className: n = "",
@@ -3150,11 +3146,11 @@ const Xr = {
3150
3146
  const o = et(!0);
3151
3147
  let i = r;
3152
3148
  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) });
3153
- }, ko = ({ activeLink: e, ...t }) => /* @__PURE__ */ s.jsx(St, { children: /* @__PURE__ */ s.jsx(qr, { layout: "1-3", children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
3149
+ }, ko = ({ activeLink: e, ...t }) => /* @__PURE__ */ s.jsx(St, { children: /* @__PURE__ */ s.jsx(Zr, { layout: "1-3", children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
3154
3150
  /* @__PURE__ */ s.jsx(Yr, { activeLink: e }),
3155
3151
  /* @__PURE__ */ s.jsx(Mr, { ...t })
3156
3152
  ] }) }) });
3157
- 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 = () => {
3153
+ 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 = () => {
3158
3154
  const e = P(), [t, n, r] = Fs(Wt), [o, i] = A(!t["apol-cookie-banner"]), l = () => {
3159
3155
  Wt.forEach((m) => {
3160
3156
  n(m, !0, {
@@ -3202,11 +3198,10 @@ const Ut = "cookieBanner_", Wt = ["apol-cookie-banner", "apolitical-performance-
3202
3198
  ] });
3203
3199
  }, Ne = {
3204
3200
  platform: {
3205
- order: ["events", "courses", "qanda", "articles"],
3201
+ order: ["events", "courses", "articles"],
3206
3202
  // An array guarantees the right order
3207
3203
  events: { href: "/events/", gtmType: "events-click" },
3208
3204
  courses: { href: "/microcourses/", gtmType: "microcourses-click" },
3209
- qanda: { href: "/questions-answers/", gtmType: "q-and-a-click" },
3210
3205
  articles: { href: "/solution-articles/", gtmType: "articles-click" }
3211
3206
  },
3212
3207
  community: {
@@ -3265,11 +3260,11 @@ const Ut = "cookieBanner_", Wt = ["apol-cookie-banner", "apolitical-performance-
3265
3260
  text: {
3266
3261
  order: ["dataProtection", "euDataProtection"],
3267
3262
  dataProtection: {
3268
- email: qe["data-protection"].default,
3263
+ email: Ze["data-protection"].default,
3269
3264
  gtmType: "email-dpo-link"
3270
3265
  },
3271
3266
  euDataProtection: {
3272
- email: qe["data-protection"].eu,
3267
+ email: Ze["data-protection"].eu,
3273
3268
  gtmType: "email-eu-dpo-link"
3274
3269
  }
3275
3270
  }
@@ -3281,10 +3276,10 @@ const Ut = "cookieBanner_", Wt = ["apol-cookie-banner", "apolitical-performance-
3281
3276
  registered: { address: !0 },
3282
3277
  berlin: { address: !0 },
3283
3278
  support: {
3284
- email: qe.support,
3279
+ email: Ze.support,
3285
3280
  gtmType: "concierge-email-click"
3286
3281
  },
3287
- business: { email: qe.general, gtmType: "hello-email-click" }
3282
+ business: { email: Ze.general, gtmType: "hello-email-click" }
3288
3283
  }
3289
3284
  },
3290
3285
  social: {
@@ -3828,14 +3823,13 @@ const na = ({
3828
3823
  order: ["explore", "topics"],
3829
3824
  menuId: "navigation",
3830
3825
  explore: {
3831
- order: ["events", "courses", "q-and-a", "articles"],
3826
+ order: ["events", "courses", "articles"],
3832
3827
  events: { href: "/events/", className: "icon events" },
3833
3828
  courses: {
3834
3829
  href: "/microcourses/",
3835
3830
  gtmType: "microcourses-click",
3836
3831
  className: "icon courses"
3837
3832
  },
3838
- "q-and-a": { href: "/questions-answers/", className: "icon q-and-a" },
3839
3833
  articles: {
3840
3834
  href: "/solution-articles/",
3841
3835
  gtmType: "articles-click",
@@ -4300,7 +4294,7 @@ const aa = () => {
4300
4294
  ] }),
4301
4295
  v && /* @__PURE__ */ s.jsx("div", { className: "additional-content appended", children: v }),
4302
4296
  c && /* @__PURE__ */ s.jsx(es, {}),
4303
- /* @__PURE__ */ s.jsx(Zr, {})
4297
+ /* @__PURE__ */ s.jsx(qr, {})
4304
4298
  ]
4305
4299
  }
4306
4300
  ) }) });
@@ -4387,7 +4381,7 @@ const To = ({
4387
4381
  u.isAdmin && /* @__PURE__ */ s.jsx(gt, { children: a.formatMessage({ id: "membersList_admin" }) })
4388
4382
  ] }, c)) }),
4389
4383
  n && /* @__PURE__ */ s.jsx(
4390
- Zn,
4384
+ qn,
4391
4385
  {
4392
4386
  hasNextPage: n,
4393
4387
  loadNextPage: r,
@@ -4626,7 +4620,7 @@ const ge = "discussion_form_", is = ({
4626
4620
  text: l,
4627
4621
  button: {
4628
4622
  breakpoints: { mobile: !0, 901: !1 },
4629
- component: /* @__PURE__ */ s.jsx(qn, { isShort: !0, functions: { join: o, leave: i } })
4623
+ component: /* @__PURE__ */ s.jsx(Zn, { isShort: !0, functions: { join: o, leave: i } })
4630
4624
  }
4631
4625
  }
4632
4626
  ) : /* @__PURE__ */ s.jsx(
@@ -4655,9 +4649,9 @@ const ge = "discussion_form_", is = ({
4655
4649
  ...t && { answerSlug: t },
4656
4650
  ...n && { replySlug: n }
4657
4651
  }), ua = (e, t = 10) => !e || e.length === 0 ? [] : e.slice(0, t);
4658
- let Ze = !1;
4652
+ let qe = !1;
4659
4653
  const Yt = () => {
4660
- Ze !== !1 && (clearTimeout(Ze), Ze = !1);
4654
+ qe !== !1 && (clearTimeout(qe), qe = !1);
4661
4655
  }, Gt = 5, ma = ({
4662
4656
  element: e = "div",
4663
4657
  likes: t = 0,
@@ -4675,11 +4669,11 @@ const Yt = () => {
4675
4669
  h(o);
4676
4670
  }, [o]);
4677
4671
  const [m, d] = A(t), [p, h] = A(o), [g, w] = A(!1), [v, y] = A(!1), x = kt(() => ua(n, Gt), [n]), _ = (N) => {
4678
- if (N.preventDefault(), N.stopPropagation(), y(!1), Ze)
4672
+ if (N.preventDefault(), N.stopPropagation(), y(!1), qe)
4679
4673
  return Yt(), !1;
4680
4674
  if (Yt(), g || !l)
4681
4675
  return !1;
4682
- Ze = setTimeout(T, 350);
4676
+ qe = setTimeout(T, 350);
4683
4677
  }, T = async () => {
4684
4678
  if (Yt(), g || !l)
4685
4679
  return !1;
@@ -5479,7 +5473,7 @@ const Co = ({
5479
5473
  ] }, x == null ? void 0 : x.id);
5480
5474
  }),
5481
5475
  !d && /* @__PURE__ */ s.jsx(
5482
- Zn,
5476
+ qn,
5483
5477
  {
5484
5478
  hasNextPage: m,
5485
5479
  loadNextPage: () => c(),
@@ -5857,22 +5851,22 @@ const Co = ({
5857
5851
  },
5858
5852
  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,
5859
5853
  likes: ((xe = k == null ? void 0 : k.children_counts) == null ? void 0 : xe.like) || 0,
5860
- 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) => {
5854
+ 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) => {
5861
5855
  var ae, he;
5862
5856
  return {
5863
- id: Z == null ? void 0 : Z.user_id,
5864
- name: (he = (ae = Z == null ? void 0 : Z.user) == null ? void 0 : ae.data) == null ? void 0 : he.name
5857
+ id: q == null ? void 0 : q.user_id,
5858
+ name: (he = (ae = q == null ? void 0 : q.user) == null ? void 0 : ae.data) == null ? void 0 : he.name
5865
5859
  };
5866
5860
  }))
5867
5861
  },
5868
5862
  functions: {
5869
5863
  content: {
5870
5864
  createContent: () => console.log("create"),
5871
- deleteContent: (Z) => {
5872
- const { replySlug: ae, replyParentId: he } = Z;
5865
+ deleteContent: (q) => {
5866
+ const { replySlug: ae, replyParentId: he } = q;
5873
5867
  return R({ replyId: ae, replyParentId: he });
5874
5868
  },
5875
- updateContent: (Z, ae) => T({ replyInfo: Z, content: ae })
5869
+ updateContent: (q, ae) => T({ replyInfo: q, content: ae })
5876
5870
  },
5877
5871
  likes: {
5878
5872
  createLike: () => b({
@@ -5881,9 +5875,9 @@ const Co = ({
5881
5875
  }),
5882
5876
  deleteLike: () => {
5883
5877
  var ae, he, K;
5884
- 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);
5878
+ 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);
5885
5879
  return z({
5886
- replyId: Z || ""
5880
+ replyId: q || ""
5887
5881
  });
5888
5882
  }
5889
5883
  },
@@ -5956,7 +5950,7 @@ const Co = ({
5956
5950
  }
5957
5951
  ),
5958
5952
  (r == null ? void 0 : r.length) === 0 || (r == null ? void 0 : r.map((b) => {
5959
- var I, J, X, le, de, ue, G, re, oe, O, me, _e, fe, ke, xe, je, be, Z, ae, he;
5953
+ var I, J, X, le, de, ue, G, re, oe, O, me, _e, fe, ke, xe, je, be, q, ae, he;
5960
5954
  const z = ((I = b == null ? void 0 : b.user) == null ? void 0 : I.id) === (g == null ? void 0 : g.id), k = on(o, z);
5961
5955
  return /* @__PURE__ */ s.jsx(la, { children: /* @__PURE__ */ s.jsx(
5962
5956
  Ct,
@@ -5983,7 +5977,7 @@ const Co = ({
5983
5977
  },
5984
5978
  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,
5985
5979
  likes: ((je = b == null ? void 0 : b.children_counts) == null ? void 0 : je.like) || 0,
5986
- 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) => {
5980
+ 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) => {
5987
5981
  var ie, ve;
5988
5982
  return {
5989
5983
  id: K == null ? void 0 : K.user_id,
@@ -6140,7 +6134,7 @@ const No = ({
6140
6134
  leave: w
6141
6135
  }
6142
6136
  }) => {
6143
- var de, ue, G, re, oe, O, me, _e, fe, ke, xe, je, be, Z, ae, he, K, ie, ve, Pe, ze, Le, nt;
6137
+ var de, ue, G, re, oe, O, me, _e, fe, ke, xe, je, be, q, ae, he, K, ie, ve, Pe, ze, Le, nt;
6144
6138
  const v = P(), y = we(Se), x = jt(), {
6145
6139
  data: _,
6146
6140
  isLoading: T,
@@ -6218,7 +6212,7 @@ const No = ({
6218
6212
  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),
6219
6213
  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),
6220
6214
  image: {
6221
- 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
6215
+ 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
6222
6216
  }
6223
6217
  },
6224
6218
  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,
@@ -6374,11 +6368,11 @@ export {
6374
6368
  Or as CardBlock,
6375
6369
  po as Carousel,
6376
6370
  Un as CollapsibleSection,
6377
- qr as Columns,
6371
+ Zr as Columns,
6378
6372
  go as CommunityDetails,
6379
6373
  Jn as Contributors,
6380
6374
  Mt as ConversationContext,
6381
- Zr as CookieBanner,
6375
+ qr as CookieBanner,
6382
6376
  la as DiscussionConversation,
6383
6377
  is as DiscussionForm,
6384
6378
  ma as DiscussionLikes,
@@ -6386,7 +6380,7 @@ export {
6386
6380
  ha as DiscussionThread,
6387
6381
  Fe as Divider,
6388
6382
  oo as DownloadSection,
6389
- qe as EMAILS,
6383
+ Ze as EMAILS,
6390
6384
  jo as EmailHelperTextBox,
6391
6385
  Tt as EmptyStateBox,
6392
6386
  xo as Filters,
@@ -6402,10 +6396,10 @@ export {
6402
6396
  _r as IntlProvider,
6403
6397
  na as InviteForm,
6404
6398
  $o as InviteModal,
6405
- qn as JoinButton,
6399
+ Zn as JoinButton,
6406
6400
  bo as LanguageSwitcher,
6407
6401
  $t as Link,
6408
- Zn as LoadMore,
6402
+ qn as LoadMore,
6409
6403
  ho as LoadingBlock,
6410
6404
  $e as LoadingPlaceholder,
6411
6405
  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.1-beta.4",
3
+ "version": "1.17.2-beta.0",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {