@apolitical/component-library 1.17.2-beta.0 → 1.17.2-rc.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 Zt = { exports: {} }, Ye = {};
57
+ var qt = { 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 q = typeof WeakMap == "function" ? WeakMap : Map;
266
- be = new q();
265
+ var Z = typeof WeakMap == "function" ? WeakMap : Map;
266
+ be = new Z();
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
- `), Z = L.length - 1, te = pe.length - 1; Z >= 1 && te >= 0 && L[Z] !== pe[te]; )
318
+ `), q = L.length - 1, te = pe.length - 1; q >= 1 && te >= 0 && L[q] !== pe[te]; )
319
319
  te--;
320
- for (; Z >= 1 && te >= 0; Z--, te--)
321
- if (L[Z] !== pe[te]) {
322
- if (Z !== 1 || te !== 1)
320
+ for (; q >= 1 && te >= 0; q--, te--)
321
+ if (L[q] !== pe[te]) {
322
+ if (q !== 1 || te !== 1)
323
323
  do
324
- if (Z--, te--, te < 0 || L[Z] !== pe[te]) {
324
+ if (q--, te--, te < 0 || L[q] !== pe[te]) {
325
325
  var ye = `
326
- ` + L[Z].replace(" at new ", " at ");
326
+ ` + L[q].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 (Z >= 1 && te >= 0);
329
+ while (q >= 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 (Z) {
396
- L = Z;
395
+ } catch (q) {
396
+ L = q;
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 Z = f.defaultProps;
514
- for (W in Z)
515
- B[W] === void 0 && (B[W] = Z[W]);
513
+ var q = f.defaultProps;
514
+ for (W in q)
515
+ B[W] === void 0 && (B[W] = q[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 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);
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);
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" ? Zt.exports = zs() : Zt.exports = Vs();
683
- var s = Zt.exports;
682
+ process.env.NODE_ENV === "production" ? qt.exports = zs() : qt.exports = Vs();
683
+ var s = qt.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
- }, 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, {
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, {
838
838
  weekday: "long",
839
839
  day: "numeric",
840
840
  month: "short",
841
841
  year: "numeric"
842
- }), qt = (e) => {
842
+ }), Zt = (e) => {
843
843
  let i;
844
844
  const l = vn(), a = vn(new Date(e));
845
845
  try {
@@ -1681,8 +1681,9 @@ const gr = ({ children: e, user: t }) => t.isLoading ? null : process.env.REACT_
1681
1681
  apiKey: atob(process.env.REACT_APP_PUBLIC_POSTHOG_KEY),
1682
1682
  options: {
1683
1683
  api_host: "/ph",
1684
- ui_host: "eu.posthog.com",
1685
1684
  autocapture: !1,
1685
+ disable_session_recording: !0,
1686
+ ui_host: "eu.posthog.com",
1686
1687
  secure_cookie: !0,
1687
1688
  bootstrap: {
1688
1689
  // The distinct ID is the user's ID if they are logged in, or a random ID otherwise
@@ -1709,7 +1710,7 @@ const br = ({ children: e, user: t }) => /* @__PURE__ */ s.jsx(Se.Provider, { va
1709
1710
  o({ ...i, isLoading: !1 }), rr(5e3);
1710
1711
  }).catch(() => o({ isLoading: !1 }));
1711
1712
  }, []), /* @__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/", Ze = {
1713
+ }, pt = "https://storage.googleapis.com/apolitical-assets/", qe = {
1713
1714
  general: "hello@apolitical.co",
1714
1715
  support: "concierge@apolitical.co",
1715
1716
  "data-protection": {
@@ -2078,7 +2079,7 @@ const rn = ({
2078
2079
  }) => {
2079
2080
  const l = P(), a = Gn(t);
2080
2081
  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 ? qt(n.createdAt) : !1, h = n && n.createdAt ? Bn(n.createdAt) : "";
2082
+ 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) : "";
2082
2083
  return D.createElement(e, {
2083
2084
  className: E("member text-medium", i),
2084
2085
  children: /* @__PURE__ */ s.jsxs(
@@ -2171,7 +2172,7 @@ const En = {
2171
2172
  startDate: m
2172
2173
  } = t;
2173
2174
  if (e === "question") {
2174
- const d = o && qt(o);
2175
+ const d = o && Zt(o);
2175
2176
  return /* @__PURE__ */ s.jsxs("p", { className: "details answers", "data-testid": "question-answers", children: [
2176
2177
  n.formatMessage({ id: "card_answers" }, { number: r }),
2177
2178
  o && /* @__PURE__ */ s.jsxs("span", { "data-testid": "question-created-at", children: [
@@ -2203,7 +2204,7 @@ const En = {
2203
2204
  }
2204
2205
  );
2205
2206
  if (u || c) {
2206
- const d = c && qt(c);
2207
+ const d = c && Zt(c);
2207
2208
  return /* @__PURE__ */ s.jsxs("ul", { className: "details", children: [
2208
2209
  u && /* @__PURE__ */ s.jsx("li", { "data-testid": "reading-time", children: n.formatMessage({ id: "card_time_read" }, { time: u }) }),
2209
2210
  c && /* @__PURE__ */ s.jsx("li", { "data-testid": "published-date", children: n.formatMessage(
@@ -2423,7 +2424,7 @@ const Ir = {
2423
2424
  size: "small",
2424
2425
  variant: d.dateHasPassed ? "default" : "information",
2425
2426
  "data-testid": "date",
2426
- children: d.dateHasPassed ? l.formatMessage({ id: "card_ended" }) : qs(d.startDate)
2427
+ children: d.dateHasPassed ? l.formatMessage({ id: "card_ended" }) : Zs(d.startDate)
2427
2428
  }
2428
2429
  ),
2429
2430
  d.banner ? /* @__PURE__ */ s.jsxs("p", { className: "img", children: [
@@ -2455,7 +2456,7 @@ const Ir = {
2455
2456
  const $ = d[F];
2456
2457
  if (!$)
2457
2458
  return null;
2458
- const M = Zs(F);
2459
+ const M = qs(F);
2459
2460
  return /* @__PURE__ */ s.jsx("p", { className: M, "data-testid": M, children: Qe($, N[F]) }, F);
2460
2461
  }),
2461
2462
  /* @__PURE__ */ s.jsx(Ar, { type: v || "", data: d }),
@@ -2685,7 +2686,7 @@ const Qr = ({
2685
2686
  ] }, `carousel-${m}`);
2686
2687
  }
2687
2688
  );
2688
- const Ot = "joinCommunityButton", Zn = ({ isMember: e = !1, isShort: t = !1, functions: { join: n, leave: r } = { join: () => {
2689
+ const Ot = "joinCommunityButton", qn = ({ isMember: e = !1, isShort: t = !1, functions: { join: n, leave: r } = { join: () => {
2689
2690
  }, leave: () => {
2690
2691
  } } }) => {
2691
2692
  const o = P(), i = we(Se), l = i && typeof i.id == "string", [a, u] = A(e), [c, m] = A(e ? "joined" : "notJoined");
@@ -2744,7 +2745,7 @@ const Bt = "communityDetails_", go = ({
2744
2745
  }
2745
2746
  )
2746
2747
  ] }),
2747
- /* @__PURE__ */ s.jsx(Zn, { isMember: t, functions: { ...l } }),
2748
+ /* @__PURE__ */ s.jsx(qn, { isMember: t, functions: { ...l } }),
2748
2749
  t && /* @__PURE__ */ s.jsx(
2749
2750
  Q,
2750
2751
  {
@@ -2847,7 +2848,7 @@ const Ht = { en: "English", es: "Español", fr: "Français", pt: "Português" },
2847
2848
  // @ts-ignore
2848
2849
  // `values` are throwing a type error: https://github.com/formatjs/formatjs/issues/3633
2849
2850
  children: c.formatMessage({ id: `${it}disclaimer` }, {
2850
- email: Ze.support,
2851
+ email: qe.support,
2851
2852
  link: (w) => {
2852
2853
  const v = `mailto:${w}`;
2853
2854
  return /* @__PURE__ */ s.jsx("a", { href: v, children: w });
@@ -2856,7 +2857,7 @@ const Ht = { en: "English", es: "Español", fr: "Français", pt: "Português" },
2856
2857
  })
2857
2858
  ] });
2858
2859
  };
2859
- const Qt = Ms({ locale: "en", messages: sn }), qn = ({
2860
+ const Qt = Ms({ locale: "en", messages: sn }), Zn = ({
2860
2861
  hasNextPage: e = !0,
2861
2862
  loadNextPage: t = () => {
2862
2863
  },
@@ -2957,6 +2958,10 @@ const Vr = [
2957
2958
  key: "microcourses",
2958
2959
  href: "/microcourses/"
2959
2960
  },
2961
+ {
2962
+ key: "q-and-a",
2963
+ href: "/questions-answers/"
2964
+ },
2960
2965
  {
2961
2966
  key: "articles",
2962
2967
  href: "/solution-articles/"
@@ -3137,7 +3142,7 @@ const wo = ({ tabs: e, className: t = "" }) => {
3137
3142
  const Xr = {
3138
3143
  "2-1": 901,
3139
3144
  "1-3": 769
3140
- }, Zr = ({
3145
+ }, qr = ({
3141
3146
  layout: e = "2-1",
3142
3147
  hideOnMobile: t = !1,
3143
3148
  className: n = "",
@@ -3146,11 +3151,11 @@ const Xr = {
3146
3151
  const o = et(!0);
3147
3152
  let i = r;
3148
3153
  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) });
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
+ }, ko = ({ activeLink: e, ...t }) => /* @__PURE__ */ s.jsx(St, { children: /* @__PURE__ */ s.jsx(qr, { layout: "1-3", children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
3150
3155
  /* @__PURE__ */ s.jsx(Yr, { activeLink: e }),
3151
3156
  /* @__PURE__ */ s.jsx(Mr, { ...t })
3152
3157
  ] }) }) });
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
+ 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 = () => {
3154
3159
  const e = P(), [t, n, r] = Fs(Wt), [o, i] = A(!t["apol-cookie-banner"]), l = () => {
3155
3160
  Wt.forEach((m) => {
3156
3161
  n(m, !0, {
@@ -3198,10 +3203,11 @@ const Ut = "cookieBanner_", Wt = ["apol-cookie-banner", "apolitical-performance-
3198
3203
  ] });
3199
3204
  }, Ne = {
3200
3205
  platform: {
3201
- order: ["events", "courses", "articles"],
3206
+ order: ["events", "courses", "qanda", "articles"],
3202
3207
  // An array guarantees the right order
3203
3208
  events: { href: "/events/", gtmType: "events-click" },
3204
3209
  courses: { href: "/microcourses/", gtmType: "microcourses-click" },
3210
+ qanda: { href: "/questions-answers/", gtmType: "q-and-a-click" },
3205
3211
  articles: { href: "/solution-articles/", gtmType: "articles-click" }
3206
3212
  },
3207
3213
  community: {
@@ -3260,11 +3266,11 @@ const Ut = "cookieBanner_", Wt = ["apol-cookie-banner", "apolitical-performance-
3260
3266
  text: {
3261
3267
  order: ["dataProtection", "euDataProtection"],
3262
3268
  dataProtection: {
3263
- email: Ze["data-protection"].default,
3269
+ email: qe["data-protection"].default,
3264
3270
  gtmType: "email-dpo-link"
3265
3271
  },
3266
3272
  euDataProtection: {
3267
- email: Ze["data-protection"].eu,
3273
+ email: qe["data-protection"].eu,
3268
3274
  gtmType: "email-eu-dpo-link"
3269
3275
  }
3270
3276
  }
@@ -3276,10 +3282,10 @@ const Ut = "cookieBanner_", Wt = ["apol-cookie-banner", "apolitical-performance-
3276
3282
  registered: { address: !0 },
3277
3283
  berlin: { address: !0 },
3278
3284
  support: {
3279
- email: Ze.support,
3285
+ email: qe.support,
3280
3286
  gtmType: "concierge-email-click"
3281
3287
  },
3282
- business: { email: Ze.general, gtmType: "hello-email-click" }
3288
+ business: { email: qe.general, gtmType: "hello-email-click" }
3283
3289
  }
3284
3290
  },
3285
3291
  social: {
@@ -3823,13 +3829,14 @@ const na = ({
3823
3829
  order: ["explore", "topics"],
3824
3830
  menuId: "navigation",
3825
3831
  explore: {
3826
- order: ["events", "courses", "articles"],
3832
+ order: ["events", "courses", "q-and-a", "articles"],
3827
3833
  events: { href: "/events/", className: "icon events" },
3828
3834
  courses: {
3829
3835
  href: "/microcourses/",
3830
3836
  gtmType: "microcourses-click",
3831
3837
  className: "icon courses"
3832
3838
  },
3839
+ "q-and-a": { href: "/questions-answers/", className: "icon q-and-a" },
3833
3840
  articles: {
3834
3841
  href: "/solution-articles/",
3835
3842
  gtmType: "articles-click",
@@ -4294,7 +4301,7 @@ const aa = () => {
4294
4301
  ] }),
4295
4302
  v && /* @__PURE__ */ s.jsx("div", { className: "additional-content appended", children: v }),
4296
4303
  c && /* @__PURE__ */ s.jsx(es, {}),
4297
- /* @__PURE__ */ s.jsx(qr, {})
4304
+ /* @__PURE__ */ s.jsx(Zr, {})
4298
4305
  ]
4299
4306
  }
4300
4307
  ) }) });
@@ -4381,7 +4388,7 @@ const To = ({
4381
4388
  u.isAdmin && /* @__PURE__ */ s.jsx(gt, { children: a.formatMessage({ id: "membersList_admin" }) })
4382
4389
  ] }, c)) }),
4383
4390
  n && /* @__PURE__ */ s.jsx(
4384
- qn,
4391
+ Zn,
4385
4392
  {
4386
4393
  hasNextPage: n,
4387
4394
  loadNextPage: r,
@@ -4620,7 +4627,7 @@ const ge = "discussion_form_", is = ({
4620
4627
  text: l,
4621
4628
  button: {
4622
4629
  breakpoints: { mobile: !0, 901: !1 },
4623
- component: /* @__PURE__ */ s.jsx(Zn, { isShort: !0, functions: { join: o, leave: i } })
4630
+ component: /* @__PURE__ */ s.jsx(qn, { isShort: !0, functions: { join: o, leave: i } })
4624
4631
  }
4625
4632
  }
4626
4633
  ) : /* @__PURE__ */ s.jsx(
@@ -4649,9 +4656,9 @@ const ge = "discussion_form_", is = ({
4649
4656
  ...t && { answerSlug: t },
4650
4657
  ...n && { replySlug: n }
4651
4658
  }), ua = (e, t = 10) => !e || e.length === 0 ? [] : e.slice(0, t);
4652
- let qe = !1;
4659
+ let Ze = !1;
4653
4660
  const Yt = () => {
4654
- qe !== !1 && (clearTimeout(qe), qe = !1);
4661
+ Ze !== !1 && (clearTimeout(Ze), Ze = !1);
4655
4662
  }, Gt = 5, ma = ({
4656
4663
  element: e = "div",
4657
4664
  likes: t = 0,
@@ -4669,11 +4676,11 @@ const Yt = () => {
4669
4676
  h(o);
4670
4677
  }, [o]);
4671
4678
  const [m, d] = A(t), [p, h] = A(o), [g, w] = A(!1), [v, y] = A(!1), x = kt(() => ua(n, Gt), [n]), _ = (N) => {
4672
- if (N.preventDefault(), N.stopPropagation(), y(!1), qe)
4679
+ if (N.preventDefault(), N.stopPropagation(), y(!1), Ze)
4673
4680
  return Yt(), !1;
4674
4681
  if (Yt(), g || !l)
4675
4682
  return !1;
4676
- qe = setTimeout(T, 350);
4683
+ Ze = setTimeout(T, 350);
4677
4684
  }, T = async () => {
4678
4685
  if (Yt(), g || !l)
4679
4686
  return !1;
@@ -5473,7 +5480,7 @@ const Co = ({
5473
5480
  ] }, x == null ? void 0 : x.id);
5474
5481
  }),
5475
5482
  !d && /* @__PURE__ */ s.jsx(
5476
- qn,
5483
+ Zn,
5477
5484
  {
5478
5485
  hasNextPage: m,
5479
5486
  loadNextPage: () => c(),
@@ -5851,22 +5858,22 @@ const Co = ({
5851
5858
  },
5852
5859
  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,
5853
5860
  likes: ((xe = k == null ? void 0 : k.children_counts) == null ? void 0 : xe.like) || 0,
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
+ 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) => {
5855
5862
  var ae, he;
5856
5863
  return {
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
5864
+ id: Z == null ? void 0 : Z.user_id,
5865
+ name: (he = (ae = Z == null ? void 0 : Z.user) == null ? void 0 : ae.data) == null ? void 0 : he.name
5859
5866
  };
5860
5867
  }))
5861
5868
  },
5862
5869
  functions: {
5863
5870
  content: {
5864
5871
  createContent: () => console.log("create"),
5865
- deleteContent: (q) => {
5866
- const { replySlug: ae, replyParentId: he } = q;
5872
+ deleteContent: (Z) => {
5873
+ const { replySlug: ae, replyParentId: he } = Z;
5867
5874
  return R({ replyId: ae, replyParentId: he });
5868
5875
  },
5869
- updateContent: (q, ae) => T({ replyInfo: q, content: ae })
5876
+ updateContent: (Z, ae) => T({ replyInfo: Z, content: ae })
5870
5877
  },
5871
5878
  likes: {
5872
5879
  createLike: () => b({
@@ -5875,9 +5882,9 @@ const Co = ({
5875
5882
  }),
5876
5883
  deleteLike: () => {
5877
5884
  var ae, he, K;
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
+ 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);
5879
5886
  return z({
5880
- replyId: q || ""
5887
+ replyId: Z || ""
5881
5888
  });
5882
5889
  }
5883
5890
  },
@@ -5950,7 +5957,7 @@ const Co = ({
5950
5957
  }
5951
5958
  ),
5952
5959
  (r == null ? void 0 : r.length) === 0 || (r == null ? void 0 : r.map((b) => {
5953
- var I, J, X, le, de, ue, G, re, oe, O, me, _e, fe, ke, xe, je, be, q, ae, he;
5960
+ var I, J, X, le, de, ue, G, re, oe, O, me, _e, fe, ke, xe, je, be, Z, ae, he;
5954
5961
  const z = ((I = b == null ? void 0 : b.user) == null ? void 0 : I.id) === (g == null ? void 0 : g.id), k = on(o, z);
5955
5962
  return /* @__PURE__ */ s.jsx(la, { children: /* @__PURE__ */ s.jsx(
5956
5963
  Ct,
@@ -5977,7 +5984,7 @@ const Co = ({
5977
5984
  },
5978
5985
  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,
5979
5986
  likes: ((je = b == null ? void 0 : b.children_counts) == null ? void 0 : je.like) || 0,
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
+ 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) => {
5981
5988
  var ie, ve;
5982
5989
  return {
5983
5990
  id: K == null ? void 0 : K.user_id,
@@ -6134,7 +6141,7 @@ const No = ({
6134
6141
  leave: w
6135
6142
  }
6136
6143
  }) => {
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
+ var de, ue, G, re, oe, O, me, _e, fe, ke, xe, je, be, Z, ae, he, K, ie, ve, Pe, ze, Le, nt;
6138
6145
  const v = P(), y = we(Se), x = jt(), {
6139
6146
  data: _,
6140
6147
  isLoading: T,
@@ -6212,7 +6219,7 @@ const No = ({
6212
6219
  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),
6213
6220
  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),
6214
6221
  image: {
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
+ 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
6216
6223
  }
6217
6224
  },
6218
6225
  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,
@@ -6368,11 +6375,11 @@ export {
6368
6375
  Or as CardBlock,
6369
6376
  po as Carousel,
6370
6377
  Un as CollapsibleSection,
6371
- Zr as Columns,
6378
+ qr as Columns,
6372
6379
  go as CommunityDetails,
6373
6380
  Jn as Contributors,
6374
6381
  Mt as ConversationContext,
6375
- qr as CookieBanner,
6382
+ Zr as CookieBanner,
6376
6383
  la as DiscussionConversation,
6377
6384
  is as DiscussionForm,
6378
6385
  ma as DiscussionLikes,
@@ -6380,7 +6387,7 @@ export {
6380
6387
  ha as DiscussionThread,
6381
6388
  Fe as Divider,
6382
6389
  oo as DownloadSection,
6383
- Ze as EMAILS,
6390
+ qe as EMAILS,
6384
6391
  jo as EmailHelperTextBox,
6385
6392
  Tt as EmptyStateBox,
6386
6393
  xo as Filters,
@@ -6396,10 +6403,10 @@ export {
6396
6403
  _r as IntlProvider,
6397
6404
  na as InviteForm,
6398
6405
  $o as InviteModal,
6399
- Zn as JoinButton,
6406
+ qn as JoinButton,
6400
6407
  bo as LanguageSwitcher,
6401
6408
  $t as Link,
6402
- qn as LoadMore,
6409
+ Zn as LoadMore,
6403
6410
  ho as LoadingBlock,
6404
6411
  $e as LoadingPlaceholder,
6405
6412
  Vn as LoadingState,
@@ -9,31 +9,27 @@ declare namespace _default {
9
9
  let order_1: string[];
10
10
  export { order_1 as order };
11
11
  export let menuId: string;
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
- }
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
+ };
37
33
  let topics_1: {
38
34
  order: string[];
39
35
  className: string;
@@ -77,8 +73,8 @@ declare namespace _default {
77
73
  export { topics_1 as topics };
78
74
  }
79
75
  namespace partners {
80
- let href_4: string;
81
- export { href_4 as href };
76
+ let href_1: string;
77
+ export { href_1 as href };
82
78
  export let onlyShow: string;
83
79
  }
84
80
  let account: {
@@ -98,15 +94,15 @@ declare namespace _default {
98
94
  };
99
95
  };
100
96
  namespace buttons {
101
- let order_3: string[];
102
- export { order_3 as order };
97
+ let order_2: string[];
98
+ export { order_2 as order };
103
99
  export namespace login {
104
- let href_5: string;
105
- export { href_5 as href };
100
+ let href_2: string;
101
+ export { href_2 as href };
106
102
  }
107
103
  export namespace signup {
108
- let href_6: string;
109
- export { href_6 as href };
104
+ let href_3: string;
105
+ export { href_3 as href };
110
106
  export namespace props {
111
107
  let variant: string;
112
108
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apolitical/component-library",
3
- "version": "1.17.2-beta.0",
3
+ "version": "1.17.2-rc.1",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {