@platform-x/hcltechx-mfe-wrapper 1.0.9 → 1.0.11

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.
Files changed (39) hide show
  1. package/{ArticleVodListComponent-Dx9kz089.mjs → ArticleVodListComponent-55Amw117.mjs} +2 -2
  2. package/{ChallengeDetailComponent-CDYW67Kx.mjs → ChallengeDetailComponent-CFgNIy40.mjs} +5 -5
  3. package/ChallengeSliderComponent-DxywQ1Yw.mjs +85 -0
  4. package/{CommonContentComponent-BoHOhCUz.mjs → CommonContentComponent-CZ4R-bl5.mjs} +3 -3
  5. package/{DailyMotion-BIA7SEEW.mjs → DailyMotion-SSHst39J.mjs} +2 -2
  6. package/EngagementHomeComponent-DV2T5lXk.mjs +100 -0
  7. package/{EventDetailComponent-BE6pxr9g.mjs → EventDetailComponent--tfRa3kB.mjs} +5 -5
  8. package/EventList-BgAnQPsa.mjs +38484 -0
  9. package/{EventListComponent-COx6Zawh.mjs → EventListComponent-DafPg6Gl.mjs} +11 -11
  10. package/{Facebook-CqEtMlPA.mjs → Facebook-BW-swjny.mjs} +2 -2
  11. package/{FilePlayer-CjXiDXa3.mjs → FilePlayer-F1fTGtr4.mjs} +2 -2
  12. package/{IndividualChallengeComponent-Bfm95wog.mjs → IndividualChallengeComponent-DtonJm0x.mjs} +7 -7
  13. package/{Kaltura-Cg97C5rG.mjs → Kaltura-DFDmKzKV.mjs} +2 -2
  14. package/{Mixcloud-DAVEJXxZ.mjs → Mixcloud-C26C0LJN.mjs} +2 -2
  15. package/{Mux-BiP0byEL.mjs → Mux-D4AN7rCD.mjs} +2 -2
  16. package/{Preview-I1Ruptf5.mjs → Preview-J16z8kBH.mjs} +1 -1
  17. package/{RecentCarousel-mJDu3ayE.mjs → RecentCarousel-091dBxgP.mjs} +55 -61
  18. package/{Share-B5_YqtYZ.mjs → Share-CpUL9IEm.mjs} +484 -484
  19. package/{SoundCloud-D8kg6Ps6.mjs → SoundCloud-NgtcEElL.mjs} +2 -2
  20. package/{Streamable-BuTsGK-o.mjs → Streamable-BcHnyLZJ.mjs} +2 -2
  21. package/{Twitch-BjkSTgPl.mjs → Twitch-9_6JM-Q5.mjs} +2 -2
  22. package/{Vidyard-DXwWx_I_.mjs → Vidyard-DBy4Ixeu.mjs} +2 -2
  23. package/{Vimeo-Dwl4LnJ3.mjs → Vimeo-DFCi-vSX.mjs} +2 -2
  24. package/{Wistia-adA1p0Vn.mjs → Wistia-emX1iUcE.mjs} +2 -2
  25. package/{YouTube-QRUCVNDZ.mjs → YouTube-DIq2uWeq.mjs} +2 -2
  26. package/index-AEiKTTFl.mjs +19 -0
  27. package/{index-D-3VZIx9.mjs → index-CIVj8pjz.mjs} +3435 -5207
  28. package/index.d.ts +0 -1
  29. package/index.mjs +2 -3
  30. package/lib/prelems/Components/ChallengeSliderComponent.d.ts +2 -0
  31. package/lib/utils/SsoLogin.d.ts +2 -0
  32. package/lib/utils/componentMapping.d.ts +1 -0
  33. package/lib/utils/iframeKeycloak.d.ts +5 -0
  34. package/{mutateApi-xRWUHOcL.mjs → mutateApi-dFWYRnAs.mjs} +18 -12
  35. package/package.json +1 -1
  36. package/EngagementHomeComponent-D3hT_Mb4.mjs +0 -97
  37. package/EventList-D2yqGf8I.mjs +0 -37751
  38. package/index-CsJ4J_3O.mjs +0 -18
  39. /package/lib/utils/{MfeLogin.d.ts → old-SsoLogin.d.ts} +0 -0
@@ -1,21 +1,21 @@
1
1
  import { jsx as _ } from "react/jsx-runtime";
2
- import { d as v } from "./EventList-D2yqGf8I.mjs";
2
+ import { e as v } from "./EventList-BgAnQPsa.mjs";
3
3
  import { useState as g, useEffect as A } from "react";
4
- import { s as r, f as k, a as L } from "./index-D-3VZIx9.mjs";
5
- import { m as b } from "./mutateApi-xRWUHOcL.mjs";
4
+ import { s as r, m as k, a as L } from "./mutateApi-dFWYRnAs.mjs";
5
+ import { f as b } from "./index-CIVj8pjz.mjs";
6
6
  import "react-dom";
7
7
  const q = ({
8
8
  data: h,
9
- prelemAnalyticsProp: d,
10
- prelemAuthoringHelper: p,
9
+ prelemAnalyticsProp: p,
10
+ prelemAuthoringHelper: P,
11
11
  secondaryArgs: c,
12
- userId: P,
12
+ userId: d,
13
13
  filters: y,
14
14
  relativePath: S
15
15
  }) => {
16
16
  const [w, D] = g({}), [E, m] = g(!1), {
17
17
  prelemBaseEndpoint: { language: f, site_host: u }
18
- } = c, n = localStorage.getItem("userId") || P, I = async (l, t, i) => {
18
+ } = c, n = localStorage.getItem("userId") || d, I = async (l, t, i) => {
19
19
  var s, o;
20
20
  if (!n) {
21
21
  r("User ID is not available. Please log in.");
@@ -25,7 +25,7 @@ const q = ({
25
25
  const e = {
26
26
  input: { activity_type: i, target: l.toString(), action: t },
27
27
  user_id: n
28
- }, a = await b.setPersonalGoal(e, f, u);
28
+ }, a = await k.setPersonalGoal(e, f, u);
29
29
  ((o = (s = a == null ? void 0 : a.data) == null ? void 0 : s.community_setPersonalGoal) == null ? void 0 : o.message) === "Created Successfully!!!" && t === "goal" ? L("Goal updated successfully!") : t !== "entry" && r("Something went wrong, please try after sometime !");
30
30
  } catch (e) {
31
31
  console.error("Error in update goal API:", e), r("Something went wrong, please try after sometime !");
@@ -41,7 +41,7 @@ const q = ({
41
41
  const o = {
42
42
  date: "",
43
43
  user_id: n
44
- }, e = await k.fetchPersonalTracker(o, f, u);
44
+ }, e = await b.fetchPersonalTracker(o, f, u);
45
45
  if (((l = e == null ? void 0 : e.errors) == null ? void 0 : l.length) > 0)
46
46
  r((t = e == null ? void 0 : e.errors[0]) == null ? void 0 : t.message);
47
47
  else if ((i = e == null ? void 0 : e.data) != null && i.community_fetchPersonalTracker) {
@@ -65,8 +65,8 @@ const q = ({
65
65
  v,
66
66
  {
67
67
  content: h,
68
- analytics: d,
69
- authoringHelper: p,
68
+ analytics: p,
69
+ authoringHelper: P,
70
70
  secondaryArgs: c,
71
71
  stepsDetails: G,
72
72
  filters: y,
@@ -1,6 +1,6 @@
1
- import { g as _ } from "./index-D-3VZIx9.mjs";
1
+ import { g as _ } from "./index-CIVj8pjz.mjs";
2
2
  import g from "react";
3
- import { u as P, p as m } from "./EventList-D2yqGf8I.mjs";
3
+ import { u as P, p as m } from "./EventList-BgAnQPsa.mjs";
4
4
  function v(t, e) {
5
5
  for (var r = 0; r < e.length; r++) {
6
6
  const o = e[r];
@@ -1,6 +1,6 @@
1
- import { g as b } from "./index-D-3VZIx9.mjs";
1
+ import { g as b } from "./index-CIVj8pjz.mjs";
2
2
  import _ from "react";
3
- import { u as O, p as A } from "./EventList-D2yqGf8I.mjs";
3
+ import { u as O, p as A } from "./EventList-BgAnQPsa.mjs";
4
4
  function R(s, e) {
5
5
  for (var t = 0; t < e.length; t++) {
6
6
  const i = e[t];
@@ -1,8 +1,8 @@
1
1
  import { jsx as W } from "react/jsx-runtime";
2
- import { I as X } from "./EventList-D2yqGf8I.mjs";
2
+ import { I as X } from "./EventList-BgAnQPsa.mjs";
3
3
  import { useState as m, useEffect as Y } from "react";
4
- import { f as y, s as g, a as S } from "./index-D-3VZIx9.mjs";
5
- import { m as C } from "./mutateApi-xRWUHOcL.mjs";
4
+ import { s as g, m as S, a as C } from "./mutateApi-dFWYRnAs.mjs";
5
+ import { f as y } from "./index-CIVj8pjz.mjs";
6
6
  import "react-dom";
7
7
  const te = (q) => {
8
8
  const {
@@ -22,8 +22,8 @@ const te = (q) => {
22
22
  ...i,
23
23
  userId: d
24
24
  }
25
- }, c = await C.joinChallenge(a, f, h);
26
- ((o = c == null ? void 0 : c.errors) == null ? void 0 : o.length) > 0 ? g((n = c == null ? void 0 : c.errors[0]) == null ? void 0 : n.message) : (t = (s = c == null ? void 0 : c.data) == null ? void 0 : s.community_joinChallenge) != null && t.id ? (S((e = (r = c == null ? void 0 : c.data) == null ? void 0 : r.community_joinChallenge) == null ? void 0 : e.message), P(!0), A()) : console.error("Join Challenge API failed");
25
+ }, c = await S.joinChallenge(a, f, h);
26
+ ((o = c == null ? void 0 : c.errors) == null ? void 0 : o.length) > 0 ? g((n = c == null ? void 0 : c.errors[0]) == null ? void 0 : n.message) : (t = (s = c == null ? void 0 : c.data) == null ? void 0 : s.community_joinChallenge) != null && t.id ? (C((e = (r = c == null ? void 0 : c.data) == null ? void 0 : r.community_joinChallenge) == null ? void 0 : e.message), P(!0), A()) : console.error("Join Challenge API failed");
27
27
  } catch (a) {
28
28
  console.error("Error in Join Challenge API:", a);
29
29
  } finally {
@@ -98,8 +98,8 @@ const te = (q) => {
98
98
  try {
99
99
  const s = {
100
100
  input: i
101
- }, t = await C.setUpChallenge(s, f, h);
102
- ((n = (o = t == null ? void 0 : t.data) == null ? void 0 : o.community_setupChallenge) == null ? void 0 : n.message) === "challenge has been setUp successfully" ? S("Challenge has been setup successfully!") : g("Something went wrong, please try after sometime !");
101
+ }, t = await S.setUpChallenge(s, f, h);
102
+ ((n = (o = t == null ? void 0 : t.data) == null ? void 0 : o.community_setupChallenge) == null ? void 0 : n.message) === "challenge has been setUp successfully" ? C("Challenge has been setup successfully!") : g("Something went wrong, please try after sometime !");
103
103
  } catch (s) {
104
104
  console.error("Error in update goal API:", s), g("Something went wrong, please try after sometime !");
105
105
  }
@@ -1,6 +1,6 @@
1
- import { g as f } from "./index-D-3VZIx9.mjs";
1
+ import { g as f } from "./index-CIVj8pjz.mjs";
2
2
  import y from "react";
3
- import { u as _, p as m } from "./EventList-D2yqGf8I.mjs";
3
+ import { u as _, p as m } from "./EventList-BgAnQPsa.mjs";
4
4
  function P(r, e) {
5
5
  for (var t = 0; t < e.length; t++) {
6
6
  const o = e[t];
@@ -1,6 +1,6 @@
1
- import { g as f } from "./index-D-3VZIx9.mjs";
1
+ import { g as f } from "./index-CIVj8pjz.mjs";
2
2
  import y from "react";
3
- import { u as m, p as g } from "./EventList-D2yqGf8I.mjs";
3
+ import { u as m, p as g } from "./EventList-BgAnQPsa.mjs";
4
4
  function v(t, e) {
5
5
  for (var r = 0; r < e.length; r++) {
6
6
  const s = e[r];
@@ -1,6 +1,6 @@
1
- import { g as P } from "./index-D-3VZIx9.mjs";
1
+ import { g as P } from "./index-CIVj8pjz.mjs";
2
2
  import g from "react";
3
- import { p as E } from "./EventList-D2yqGf8I.mjs";
3
+ import { p as E } from "./EventList-BgAnQPsa.mjs";
4
4
  function b(r, e) {
5
5
  for (var t = 0; t < e.length; t++) {
6
6
  const i = e[t];
@@ -1,4 +1,4 @@
1
- import { g as y } from "./index-D-3VZIx9.mjs";
1
+ import { g as y } from "./index-CIVj8pjz.mjs";
2
2
  import v from "react";
3
3
  function w(r, e) {
4
4
  for (var t = 0; t < e.length; t++) {
@@ -1,10 +1,10 @@
1
- import { jsxs as i, jsx as o } from "react/jsx-runtime";
2
- import { m as H, e as M, B as n, T as x, g as W, r as U, h as k, i as j, j as F, k as V, l as q, L as O, n as Y, o as G, q as L, s as J } from "./EventList-D2yqGf8I.mjs";
3
- import K, { useState as Q, useEffect as Z } from "react";
4
- import { u as A } from "./index-D-3VZIx9.mjs";
1
+ import { jsxs as n, jsx as o } from "react/jsx-runtime";
2
+ import { m as y, B as i, T as x, g as B, r as z, h as T, i as H, j as M, k as U, l as j, L as F, n as V, o as q, q as W, s as O } from "./EventList-BgAnQPsa.mjs";
3
+ import Y, { useState as G, useEffect as J } from "react";
4
+ import { u as K } from "./index-CIVj8pjz.mjs";
5
5
  import "react-dom";
6
- const ee = H(() => {
7
- const r = A();
6
+ const Q = y(() => {
7
+ const r = K();
8
8
  return {
9
9
  recentCardsWrapper: {
10
10
  "&.recentCardsBg": {
@@ -123,20 +123,14 @@ const ee = H(() => {
123
123
  }
124
124
  }
125
125
  };
126
- }), ie = ({
127
- isVideoLandingPage: r,
128
- data: w,
129
- secondaryArgs: t,
130
- filters: d,
131
- relativePath: f
132
- }) => {
133
- const X = t == null ? void 0 : t.platform, E = ee(), { t: v } = M(), { gcpUrl: c, bucketName: h } = t, [_, I] = Q([]), N = (e) => {
134
- var u, l, s;
135
- const a = (e == null ? void 0 : e.CurrentPageURL) || (e == null ? void 0 : e.current_page_url), p = ((u = e == null ? void 0 : e.content_type) == null ? void 0 : u.toLowerCase()) === "vod" ? "video" : "article";
136
- typeof window < "u" && (d != null && d.onCardClick ? d == null || d.onCardClick({ id: a, type: p }) : f !== "" ? window.open(`/${f}/${p}${a}`) : (l = t == null ? void 0 : t.prelemBaseEndpoint) != null && l.language ? window.open(`/${(s = t == null ? void 0 : t.prelemBaseEndpoint) == null ? void 0 : s.language}/${p}${a}`) : window.open(`/${p}${a}`));
137
- }, S = (e) => {
138
- X !== "isAuthoring" && N(e);
139
- }, $ = {
126
+ }), oe = ({ isVideoLandingPage: r, data: f, secondaryArgs: t, filters: d }) => {
127
+ const k = t == null ? void 0 : t.platform, L = Q(), { gcpUrl: c, bucketName: h } = t, [X, E] = G([]), I = (e) => {
128
+ var m, p, s;
129
+ const a = (e == null ? void 0 : e.CurrentPageURL) || e.current_page_url, l = ((m = e == null ? void 0 : e.content_type) == null ? void 0 : m.toLowerCase()) === "vod" ? "video" : "article";
130
+ typeof window < "u" && (d != null && d.onCardClick ? d == null || d.onCardClick({ id: a, type: l }) : (p = t == null ? void 0 : t.prelemBaseEndpoint) != null && p.language ? window.open(`/${(s = t == null ? void 0 : t.prelemBaseEndpoint) == null ? void 0 : s.language}/${l}${a}`) : window.open(`/${l}${a}`));
131
+ }, N = (e) => {
132
+ k !== "isAuthoring" && I(e);
133
+ }, _ = {
140
134
  dotPosition: "outside",
141
135
  arrows: !1,
142
136
  animationType: "slideIn",
@@ -146,76 +140,76 @@ const ee = H(() => {
146
140
  sm: 2,
147
141
  xs: 1
148
142
  }
149
- }, P = () => {
150
- const e = G(w, $.itemsPerRow);
151
- e && I(e);
152
- }, D = J(P, 100);
153
- Z(() => {
154
- P();
143
+ }, w = () => {
144
+ const e = q(f, _.itemsPerRow);
145
+ e && E(e);
146
+ }, S = O(w, 100);
147
+ J(() => {
148
+ w();
155
149
  const e = () => {
156
- D();
150
+ S();
157
151
  };
158
152
  return window.addEventListener("resize", e), () => {
159
153
  window.removeEventListener("resize", e);
160
154
  };
161
- }, [w]);
155
+ }, [f]);
162
156
  const b = (e) => {
163
- e.target.src !== L && (e.target.onerror = null, e.target.src = L);
157
+ e.target.src !== W && (e.target.onerror = null, e.target.src = W);
164
158
  };
165
- return /* @__PURE__ */ i(n, { className: `${E.recentCardsWrapper} recentCardsBg`, children: [
166
- /* @__PURE__ */ o(n, { className: "PX-TopHeading", children: /* @__PURE__ */ o(x, { variant: "h5medium", children: v(r ? "related_videos" : "related_articles") }) }),
167
- /* @__PURE__ */ o(n, { className: "PX-CardBox", children: /* @__PURE__ */ o(n, { className: "PX-InnerBox", children: _.map(
168
- (e) => e == null ? void 0 : e.map((a, p) => {
169
- var T, B;
170
- const { original_image: u = {}, thumbnail: l } = a, { original_image_relative_path: s, ext: y } = u;
171
- let C, m;
172
- return ((T = a == null ? void 0 : a.content_type) == null ? void 0 : T.toLowerCase()) === "vod" ? (C = W(c, h, U(l)), m = W(c, h, l)) : (C = k(
159
+ return /* @__PURE__ */ n(i, { className: `${L.recentCardsWrapper} recentCardsBg`, children: [
160
+ /* @__PURE__ */ o(i, { className: "PX-TopHeading", children: /* @__PURE__ */ o(x, { variant: "h5medium", children: r ? "Related Videos" : "Related Articles" }) }),
161
+ /* @__PURE__ */ o(i, { className: "PX-CardBox", children: /* @__PURE__ */ o(i, { className: "PX-InnerBox", children: X.map(
162
+ (e) => e == null ? void 0 : e.map((a, l) => {
163
+ var v, P;
164
+ const { original_image: m = {}, thumbnail: p } = a, { original_image_relative_path: s, ext: D } = m;
165
+ let R, u;
166
+ return ((v = a == null ? void 0 : a.content_type) == null ? void 0 : v.toLowerCase()) === "vod" ? (R = B(c, h, z(p)), u = B(c, h, p)) : (R = T(
173
167
  c,
174
168
  h,
175
169
  s,
176
170
  "webp"
177
- ), m = k(
171
+ ), u = T(
178
172
  c,
179
173
  h,
180
- s || l,
181
- y
182
- )), /* @__PURE__ */ i(
183
- n,
174
+ s || p,
175
+ D
176
+ )), /* @__PURE__ */ n(
177
+ i,
184
178
  {
185
- onClick: () => S(a),
179
+ onClick: () => N(a),
186
180
  className: "PX-CardWp",
187
181
  "data-testid": "enable-vod-play",
188
182
  children: [
189
- /* @__PURE__ */ i(n, { className: "PX-MediaWp", children: [
190
- /* @__PURE__ */ i(j, { component: "picture", children: [
191
- F.map(({ breakpoint: g }, z) => /* @__PURE__ */ i(K.Fragment, { children: [
183
+ /* @__PURE__ */ n(i, { className: "PX-MediaWp", children: [
184
+ /* @__PURE__ */ n(H, { component: "picture", children: [
185
+ M.map(({ breakpoint: g }, $) => /* @__PURE__ */ n(Y.Fragment, { children: [
192
186
  /* @__PURE__ */ o(
193
187
  "source",
194
188
  {
195
- onError: (R) => {
196
- b(R);
189
+ onError: (C) => {
190
+ b(C);
197
191
  },
198
192
  media: `(min-width:${g}px)`,
199
- srcSet: C
193
+ srcSet: R
200
194
  }
201
195
  ),
202
196
  /* @__PURE__ */ o(
203
197
  "source",
204
198
  {
205
- onError: (R) => {
206
- b(R);
199
+ onError: (C) => {
200
+ b(C);
207
201
  },
208
202
  media: `(min-width:${g}px)`,
209
- srcSet: m
203
+ srcSet: u
210
204
  }
211
205
  )
212
- ] }, z)),
206
+ ] }, $)),
213
207
  /* @__PURE__ */ o(
214
208
  "img",
215
209
  {
216
210
  loading: "lazy",
217
211
  alt: "cropped-img",
218
- src: m,
212
+ src: u,
219
213
  onError: (g) => {
220
214
  b(g);
221
215
  },
@@ -223,29 +217,29 @@ const ee = H(() => {
223
217
  }
224
218
  )
225
219
  ] }),
226
- ((B = a == null ? void 0 : a.content_type) == null ? void 0 : B.toLowerCase()) === "vod" ? /* @__PURE__ */ o(n, { className: "PX-MidIcon", children: /* @__PURE__ */ o("img", { alt: "", src: V }) }) : (
220
+ ((P = a == null ? void 0 : a.content_type) == null ? void 0 : P.toLowerCase()) === "vod" ? /* @__PURE__ */ o(i, { className: "PX-MidIcon", children: /* @__PURE__ */ o("img", { alt: "", src: U }) }) : (
227
221
  // <Box className='PX-MidIcon'>
228
222
  // <img alt='' src={ArticleIcon} />
229
223
  // </Box>
230
224
  null
231
225
  )
232
226
  ] }),
233
- /* @__PURE__ */ i(n, { className: "PX-CardRightContent", children: [
234
- /* @__PURE__ */ o(x, { variant: "h7regular", children: q((a == null ? void 0 : a.publishedDate) || (a == null ? void 0 : a.published_date)) }),
227
+ /* @__PURE__ */ n(i, { className: "PX-CardRightContent", children: [
228
+ /* @__PURE__ */ o(x, { variant: "h7regular", children: j((a == null ? void 0 : a.publishedDate) || (a == null ? void 0 : a.published_date)) }),
235
229
  /* @__PURE__ */ o(x, { variant: "h6medium", className: "title", children: a == null ? void 0 : a.title }),
236
- /* @__PURE__ */ i(O, { href: "", className: "readmoreCta", children: [
230
+ /* @__PURE__ */ n(F, { href: "", className: "readmoreCta", children: [
237
231
  /* @__PURE__ */ o(x, { variant: "h6regular", children: "Read more" }),
238
- /* @__PURE__ */ o(Y, {})
232
+ /* @__PURE__ */ o(V, {})
239
233
  ] })
240
234
  ] })
241
235
  ]
242
236
  },
243
- p
237
+ l
244
238
  );
245
239
  })
246
240
  ) }) })
247
241
  ] });
248
242
  };
249
243
  export {
250
- ie as default
244
+ oe as default
251
245
  };