@apolitical/component-library 8.3.13 → 8.3.14

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
@@ -2243,6 +2243,7 @@ const Nv = ({
2243
2243
  const m5 = {
2244
2244
  customCard: "custom",
2245
2245
  microcourse: "course",
2246
+ courseJourney: "course",
2246
2247
  solutionArticle: "article",
2247
2248
  qaQuestion: "question",
2248
2249
  listPage: "list",
@@ -25309,8 +25310,7 @@ const pU = ({ emails: e, setEmails: t, setIsDisabled: n }) => {
25309
25310
  }
25310
25311
  )
25311
25312
  ] });
25312
- }, ym = (e) => e.map((t) => ({ condition: t }));
25313
- const Rr = {
25313
+ }, ym = (e) => e.map((t) => ({ condition: t })), Rr = {
25314
25314
  FORM_ID: "manage-account-password-change",
25315
25315
  NEW_PASSWORD: "newPassword",
25316
25316
  CONFIRMED_PASSWORD: "confirmedPassword",
@@ -61059,6 +61059,12 @@ const H9e = ({
61059
61059
  gtmEvent: "microcourse-overview"
61060
61060
  // 'overview' is needed for legacy reasons
61061
61061
  },
61062
+ courseJourney: {
61063
+ basePath: "/courses/",
61064
+ className: "course",
61065
+ gtmEvent: "microcourse-overview"
61066
+ // 'overview' is needed for legacy reasons
61067
+ },
61062
61068
  solutionArticle: {
61063
61069
  basePath: "/solution-articles/en/",
61064
61070
  className: "article",
@@ -61255,7 +61261,7 @@ const IS = ({
61255
61261
  length: C,
61256
61262
  gtmEvent: x
61257
61263
  } = Eh[E];
61258
- let P = f && v.slug ? `${_}${v.slug}` : !1;
61264
+ let P = f && v.slug ? `${v.locale || ""}${_}${v.slug}` : !1;
61259
61265
  f && v.slug && (v.slug.slice(0, 4) === "http" || v.slug.slice(0, 2) === "//" || v.slug.slice(0, 6) === "mailto" || v.slug.slice(0, 3) === "tel") && (P = v.slug);
61260
61266
  const D = (H) => {
61261
61267
  if (P) {
@@ -61376,17 +61382,23 @@ const IS = ({
61376
61382
  }
61377
61383
  );
61378
61384
  };
61379
- const ave = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__ */ g.jsx("ul", { className: ee("card-block", n), children: e.map((i, a) => {
61380
- const o = i.slug ? `${i.slug}-${t[a]}` : `${t[a]}-${a}`;
61385
+ const ave = ({
61386
+ cards: e,
61387
+ cardTypes: t,
61388
+ className: n = "",
61389
+ gtmContext: r = "",
61390
+ ...i
61391
+ }) => /* @__PURE__ */ g.jsx("ul", { className: ee("card-block", n), children: e.map((a, o) => {
61392
+ const s = a.slug ? `${a.slug}-${t[o]}` : `${t[o]}-${o}`;
61381
61393
  return /* @__PURE__ */ g.jsx(
61382
61394
  IS,
61383
61395
  {
61384
- id: o,
61385
- card: { ...i, contentType: t[a] },
61386
- meta: { setFocus: a === (r == null ? void 0 : r.focusCardIndex) },
61387
- ...r
61396
+ id: s,
61397
+ card: { ...a, contentType: t[o] },
61398
+ meta: { setFocus: o === (i == null ? void 0 : i.focusCardIndex) },
61399
+ ...i
61388
61400
  },
61389
- o
61401
+ `${s}-${r}-${a.title}`
61390
61402
  );
61391
61403
  }) }), ove = (e, t, n, r) => {
61392
61404
  const i = t * n <= e, a = e < t * (n + 1), o = r.includes(Math.floor(e / t));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apolitical/component-library",
3
- "version": "8.3.13",
3
+ "version": "8.3.14",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {