@apolitical/component-library 8.7.13 → 8.7.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
|
@@ -5550,6 +5550,14 @@ function Jx({ id: e, position: t, description: n }, r) {
|
|
|
5550
5550
|
kind: "poll-option",
|
|
5551
5551
|
data: {
|
|
5552
5552
|
description: n,
|
|
5553
|
+
payload: {
|
|
5554
|
+
data: {
|
|
5555
|
+
original: {
|
|
5556
|
+
body: n == null ? void 0 : n.en,
|
|
5557
|
+
locale: "en"
|
|
5558
|
+
}
|
|
5559
|
+
}
|
|
5560
|
+
},
|
|
5553
5561
|
position: t
|
|
5554
5562
|
},
|
|
5555
5563
|
parent: ""
|
|
@@ -5644,6 +5652,16 @@ function r6({ title: e, content: t, categories: n }) {
|
|
|
5644
5652
|
return n && !["no-category", ""].includes(n) && r.push(n), {
|
|
5645
5653
|
title: e,
|
|
5646
5654
|
content: t,
|
|
5655
|
+
payload: {
|
|
5656
|
+
data: {
|
|
5657
|
+
original: {
|
|
5658
|
+
title: e,
|
|
5659
|
+
body: t,
|
|
5660
|
+
locale: "en"
|
|
5661
|
+
},
|
|
5662
|
+
translations: {}
|
|
5663
|
+
}
|
|
5664
|
+
},
|
|
5647
5665
|
categories: r,
|
|
5648
5666
|
id: na,
|
|
5649
5667
|
time: (/* @__PURE__ */ new Date()).toISOString(),
|
|
@@ -5660,6 +5678,14 @@ function eg({
|
|
|
5660
5678
|
return {
|
|
5661
5679
|
title: e,
|
|
5662
5680
|
content: "",
|
|
5681
|
+
payload: {
|
|
5682
|
+
data: {
|
|
5683
|
+
original: {
|
|
5684
|
+
title: e,
|
|
5685
|
+
locale: "en"
|
|
5686
|
+
}
|
|
5687
|
+
}
|
|
5688
|
+
},
|
|
5663
5689
|
id: i || na,
|
|
5664
5690
|
time: (/* @__PURE__ */ new Date()).toISOString(),
|
|
5665
5691
|
verb: Bl.Poll
|
|
@@ -5668,6 +5694,16 @@ function eg({
|
|
|
5668
5694
|
function tg({ activity: e, user: t }) {
|
|
5669
5695
|
return {
|
|
5670
5696
|
...e,
|
|
5697
|
+
payload: {
|
|
5698
|
+
data: {
|
|
5699
|
+
original: {
|
|
5700
|
+
title: e.title,
|
|
5701
|
+
body: e.content,
|
|
5702
|
+
locale: "en"
|
|
5703
|
+
},
|
|
5704
|
+
translations: {}
|
|
5705
|
+
}
|
|
5706
|
+
},
|
|
5671
5707
|
actor: xp(t),
|
|
5672
5708
|
...e6()
|
|
5673
5709
|
};
|
|
@@ -5675,6 +5711,7 @@ function tg({ activity: e, user: t }) {
|
|
|
5675
5711
|
function ng({ activity: e, options: t, user: n }) {
|
|
5676
5712
|
return {
|
|
5677
5713
|
...e,
|
|
5714
|
+
time: (/* @__PURE__ */ new Date()).toISOString(),
|
|
5678
5715
|
actor: xp(n),
|
|
5679
5716
|
...n6(t, n)
|
|
5680
5717
|
};
|
|
@@ -6419,6 +6456,7 @@ function T6({
|
|
|
6419
6456
|
mutationFn: e,
|
|
6420
6457
|
onMutate: ({ options: s, title: l, settings: u }) => t((c) => {
|
|
6421
6458
|
const d = ng({
|
|
6459
|
+
// @ts-expect-error to check
|
|
6422
6460
|
activity: eg({ title: l, options: s, settings: u, user: a }),
|
|
6423
6461
|
options: s,
|
|
6424
6462
|
user: a
|
|
@@ -6439,6 +6477,7 @@ function T6({
|
|
|
6439
6477
|
},
|
|
6440
6478
|
onSuccess: async (s, { options: l, title: u, settings: c }, d) => {
|
|
6441
6479
|
const f = s, p = ng({
|
|
6480
|
+
// @ts-expect-error to check
|
|
6442
6481
|
activity: eg({
|
|
6443
6482
|
title: u,
|
|
6444
6483
|
options: l,
|
|
@@ -49965,7 +50004,7 @@ const e3 = ({
|
|
|
49965
50004
|
length: C,
|
|
49966
50005
|
gtmEvent: A
|
|
49967
50006
|
} = ll[b];
|
|
49968
|
-
let I = f && v.slug ? `${_}${v.slug}` : !1;
|
|
50007
|
+
let I = f && v.slug ? `${v.locale ? `/${v.locale}` : ""}${_}${v.slug}` : !1;
|
|
49969
50008
|
if (i.courseV2) {
|
|
49970
50009
|
const { basePath: H } = ll.courseJourney;
|
|
49971
50010
|
I = `${H}${v.slug}`;
|