@platform-x/hcltechx-mfe-wrapper 1.0.4 → 1.0.8

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 (41) hide show
  1. package/ArticleVodListComponent-BvG7HDYH.mjs +28 -0
  2. package/{ChallengeDetailComponent-OIc_qbQ7.mjs → ChallengeDetailComponent-CPLD6qTT.mjs} +17 -20
  3. package/{CommonContentComponent-Dw7qN2UY.mjs → CommonContentComponent-Dkc8ecm8.mjs} +5 -7
  4. package/{DailyMotion-usIiQTBI.mjs → DailyMotion-6zDhMMgD.mjs} +2 -2
  5. package/{EngagementHomeComponent-DlxSKhZn.mjs → EngagementHomeComponent-DxQ50FY8.mjs} +26 -29
  6. package/{EventDetailComponent-DyMc9Jpn.mjs → EventDetailComponent-Dsadtp-3.mjs} +38 -41
  7. package/EventList-DlHDYUR5.mjs +37751 -0
  8. package/{EventListComponent-BeSBR1e4.mjs → EventListComponent-Cvz8RtZS.mjs} +11 -14
  9. package/{Facebook-TD2Ez4MH.mjs → Facebook-DKoF29ND.mjs} +2 -2
  10. package/{FilePlayer-Cvjl83nF.mjs → FilePlayer-Fjd_Z9UU.mjs} +2 -2
  11. package/IndividualChallengeComponent-fIqwP2bn.mjs +175 -0
  12. package/{Kaltura-afUVGHPF.mjs → Kaltura-DuyO59Kb.mjs} +2 -2
  13. package/{Mixcloud-BTCM6aDR.mjs → Mixcloud-9i-39rwx.mjs} +2 -2
  14. package/{Mux-eEaw5K6o.mjs → Mux-DsGaA37I.mjs} +2 -2
  15. package/{Preview-C7exPUsb.mjs → Preview-CiGhPvfR.mjs} +1 -1
  16. package/{RecentCarousel-DQUR6FRm.mjs → RecentCarousel-BBMHRLyu.mjs} +57 -60
  17. package/Share-CDrNLk2X.mjs +1905 -0
  18. package/{SoundCloud-DXK23jJ4.mjs → SoundCloud-BbfWgBQ5.mjs} +2 -2
  19. package/{Streamable-DnGSi_Rr.mjs → Streamable-CqfHazZq.mjs} +2 -2
  20. package/{Twitch-DXFvLORO.mjs → Twitch-BtOGB2Im.mjs} +2 -2
  21. package/{Vidyard-DOxjZyIR.mjs → Vidyard-D4jNAL5v.mjs} +2 -2
  22. package/{Vimeo-BVqFzd-a.mjs → Vimeo-WzocafKt.mjs} +2 -2
  23. package/{Wistia-C5MonHzH.mjs → Wistia-Ba5fmEM7.mjs} +2 -2
  24. package/{YouTube-DI16ACXR.mjs → YouTube-DOp63wrf.mjs} +2 -2
  25. package/index-CsZlaFxy.mjs +12078 -0
  26. package/index-DeykmZCh.mjs +18 -0
  27. package/index.mjs +3 -5
  28. package/lib/contentTypes/Components/IndividualChallengeComponent.d.ts +2 -0
  29. package/lib/services/fetchApi.d.ts +2 -0
  30. package/lib/services/fetchQueries.d.ts +2 -0
  31. package/lib/services/mutateApi.d.ts +1 -0
  32. package/lib/services/mutateQueries.d.ts +1 -0
  33. package/lib/utils/MfeLogin.d.ts +1 -1
  34. package/lib/utils/componentMapping.d.ts +1 -0
  35. package/{mutateApi-DzPMKCtv.mjs → mutateApi-BQthCwMO.mjs} +16 -8
  36. package/package.json +1 -14
  37. package/ArticleVodListComponent-BgaqfZOW.mjs +0 -31
  38. package/EventList-sMbbb46c.mjs +0 -206513
  39. package/Share-CEf4pdOM.mjs +0 -2243
  40. package/index-BF0Ks43y.mjs +0 -7443
  41. package/index-DyyetrI2.mjs +0 -21
@@ -0,0 +1,28 @@
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { b as p } from "./EventList-DlHDYUR5.mjs";
3
+ import "react";
4
+ import "./index-CsZlaFxy.mjs";
5
+ import "react-dom";
6
+ const f = ({
7
+ data: t,
8
+ prelemAnalyticsProp: o,
9
+ prelemAuthoringHelper: r,
10
+ secondaryArgs: i,
11
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
12
+ userId: s,
13
+ filters: e,
14
+ relativePath: m
15
+ }) => /* @__PURE__ */ n(
16
+ p,
17
+ {
18
+ content: t,
19
+ analytics: o,
20
+ authoringHelper: r,
21
+ secondaryArgs: i,
22
+ filters: e,
23
+ relativePath: m
24
+ }
25
+ );
26
+ export {
27
+ f as default
28
+ };
@@ -1,13 +1,10 @@
1
- import { jsx as x } from "react/jsx-runtime";
2
- import { C as H } from "./EventList-sMbbb46c.mjs";
3
- import { useState as m, useEffect as J } from "react";
4
- import { s as d, f as A, a as k } from "./index-BF0Ks43y.mjs";
5
- import { m as q } from "./mutateApi-DzPMKCtv.mjs";
6
- import "@mui/material";
7
- import "@mui/styles";
8
- import "@mui/system";
1
+ import { jsx as H } from "react/jsx-runtime";
2
+ import { C as J } from "./EventList-DlHDYUR5.mjs";
3
+ import { useState as m, useEffect as k } from "react";
4
+ import { s as d, f as A, a as p } from "./index-CsZlaFxy.mjs";
5
+ import { m as q } from "./mutateApi-BQthCwMO.mjs";
9
6
  import "react-dom";
10
- const X = (C) => {
7
+ const Q = (C) => {
11
8
  const {
12
9
  pageData: t = {},
13
10
  secondaryArgs: y,
@@ -16,7 +13,7 @@ const X = (C) => {
16
13
  userId: L
17
14
  } = C || {}, {
18
15
  prelemBaseEndpoint: { language: u, site_host: f }
19
- } = y, [B, g] = m(!1), [S, I] = m(!1), [j, v] = m(0), [D, w] = m(0), [T, G] = m([]), h = localStorage.getItem("userId") || L, p = async (a) => {
16
+ } = y, [B, g] = m(!1), [S, I] = m(!1), [j, v] = m(0), [D, w] = m(0), [T, G] = m([]), h = localStorage.getItem("userId") || L, U = async (a) => {
20
17
  var n, l, i, s, e, r;
21
18
  if (!h) {
22
19
  d("User ID is not available. Please log in.");
@@ -30,7 +27,7 @@ const X = (C) => {
30
27
  userId: h
31
28
  }
32
29
  }, o = await q.joinChallenge(c, u, f);
33
- ((n = o == null ? void 0 : o.errors) == null ? void 0 : n.length) > 0 ? d((l = o == null ? void 0 : o.errors[0]) == null ? void 0 : l.message) : (s = (i = o == null ? void 0 : o.data) == null ? void 0 : i.community_joinChallenge) != null && s.id ? (k((r = (e = o == null ? void 0 : o.data) == null ? void 0 : e.community_joinChallenge) == null ? void 0 : r.message), I(!0), _()) : console.error("Join Challenge API failed");
30
+ ((n = o == null ? void 0 : o.errors) == null ? void 0 : n.length) > 0 ? d((l = o == null ? void 0 : o.errors[0]) == null ? void 0 : l.message) : (s = (i = o == null ? void 0 : o.data) == null ? void 0 : i.community_joinChallenge) != null && s.id ? (p((r = (e = o == null ? void 0 : o.data) == null ? void 0 : e.community_joinChallenge) == null ? void 0 : r.message), I(!0), _()) : console.error("Join Challenge API failed");
34
31
  } catch (c) {
35
32
  console.error("Error in Join Challenge API:", c);
36
33
  } finally {
@@ -64,7 +61,7 @@ const X = (C) => {
64
61
  } finally {
65
62
  g(!1);
66
63
  }
67
- }, U = async () => {
64
+ }, b = async () => {
68
65
  var a, n, l, i, s;
69
66
  try {
70
67
  g(!0);
@@ -84,27 +81,27 @@ const X = (C) => {
84
81
  } finally {
85
82
  g(!1);
86
83
  }
87
- }, b = {
88
- joinChallenge: p,
84
+ }, x = {
85
+ joinChallenge: U,
89
86
  loading: B,
90
87
  isEnrolled: S,
91
88
  enrolledParticipants: j,
92
89
  userAchieved: D,
93
90
  leaderBoardList: T
94
91
  };
95
- return J(() => {
96
- t != null && t.page && (_(), U());
97
- }, [t]), /* @__PURE__ */ x(
98
- H,
92
+ return k(() => {
93
+ t != null && t.page && (_(), b());
94
+ }, [t]), /* @__PURE__ */ H(
95
+ J,
99
96
  {
100
97
  content: t,
101
98
  analytics: E,
102
99
  authoringHelper: P,
103
100
  secondaryArgs: y,
104
- challengeDetails: b
101
+ challengeDetails: x
105
102
  }
106
103
  );
107
104
  };
108
105
  export {
109
- X as default
106
+ Q as default
110
107
  };
@@ -1,10 +1,8 @@
1
1
  import { jsx as O } from "react/jsx-runtime";
2
2
  import j, { memo as x, useState as g, useEffect as z } from "react";
3
- import { F as J, f as N, s as w } from "./index-BF0Ks43y.mjs";
4
- import { m as $ } from "./mutateApi-DzPMKCtv.mjs";
3
+ import { F as J, f as N, s as w } from "./index-CsZlaFxy.mjs";
4
+ import { m as $ } from "./mutateApi-BQthCwMO.mjs";
5
5
  import "react-dom";
6
- import "@mui/material";
7
- import "@mui/system";
8
6
  const A = {
9
7
  Article: "Article",
10
8
  Quiz: "Quiz",
@@ -13,7 +11,7 @@ const A = {
13
11
  Vod: "Vod"
14
12
  }, c = {};
15
13
  Object.keys(A).forEach((l) => (c[l] = j.lazy(
16
- () => import("./index-DyyetrI2.mjs").then((t) => ({
14
+ () => import("./index-DeykmZCh.mjs").then((t) => ({
17
15
  default: t[A[l]]
18
16
  }))
19
17
  ), c));
@@ -74,7 +72,7 @@ const B = (l) => {
74
72
  relativePath: v
75
73
  }
76
74
  );
77
- }, G = x(B);
75
+ }, R = x(B);
78
76
  export {
79
- G as default
77
+ R as default
80
78
  };
@@ -1,6 +1,6 @@
1
- import { g as P } from "./index-BF0Ks43y.mjs";
1
+ import { g as P } from "./index-CsZlaFxy.mjs";
2
2
  import v from "react";
3
- import { u as D, p as O } from "./EventList-sMbbb46c.mjs";
3
+ import { u as D, p as O } from "./EventList-DlHDYUR5.mjs";
4
4
  function b(t, e) {
5
5
  for (var r = 0; r < e.length; r++) {
6
6
  const o = e[r];
@@ -1,50 +1,47 @@
1
1
  import { jsx as j } from "react/jsx-runtime";
2
- import { f as B, c as W } from "./EventList-sMbbb46c.mjs";
2
+ import { f as B, c as W } from "./EventList-DlHDYUR5.mjs";
3
3
  import { useState as g, useEffect as q } from "react";
4
- import { f as C, s, a as z } from "./index-BF0Ks43y.mjs";
5
- import { m as F } from "./mutateApi-DzPMKCtv.mjs";
6
- import "@mui/material";
7
- import "@mui/styles";
8
- import "@mui/system";
4
+ import { f as C, s, a as z } from "./index-CsZlaFxy.mjs";
5
+ import { m as F } from "./mutateApi-BQthCwMO.mjs";
9
6
  import "react-dom";
10
- const J = async (p, f, w, y = "", t = "wellnessevent") => {
11
- var h, r, n, i;
7
+ const J = async (w, f, y, P = "", t = "wellnessevent") => {
8
+ var h, r, n, l;
12
9
  const a = await C.getContentSchemaList(
13
10
  {
14
- searchTerm: y,
11
+ searchTerm: P,
15
12
  filter: (t == null ? void 0 : t.toLocaleLowerCase()) === "events" ? "wellnessevent" : t == null ? void 0 : t.toLocaleLowerCase()
16
13
  },
17
- p || "en",
14
+ w || "en",
18
15
  f
19
16
  );
20
- (r = (h = a == null ? void 0 : a.data) == null ? void 0 : h.publish_getContents) != null && r.records ? w((i = (n = a == null ? void 0 : a.data) == null ? void 0 : n.publish_getContents) == null ? void 0 : i.records) : s("Something went wrong !");
21
- }, R = (p) => {
17
+ (r = (h = a == null ? void 0 : a.data) == null ? void 0 : h.publish_getContents) != null && r.records ? y((l = (n = a == null ? void 0 : a.data) == null ? void 0 : n.publish_getContents) == null ? void 0 : l.records) : s("Something went wrong !");
18
+ }, Z = (w) => {
22
19
  const {
23
20
  secondaryArgs: f,
24
- prelemAnalyticsProp: w,
25
- prelemAuthoringHelper: y,
21
+ prelemAnalyticsProp: y,
22
+ prelemAuthoringHelper: P,
26
23
  userId: t,
27
24
  filters: a,
28
25
  relativePath: h = ""
29
- } = p || {}, {
26
+ } = w || {}, {
30
27
  prelemBaseEndpoint: { language: r, site_host: n }
31
- } = f, [i, D] = g(!1), [_, S] = g({}), [E, I] = g({}), [G, T] = g(0), d = localStorage.getItem("userId") || t, [v, L] = g([]), k = async (P, c, u) => {
32
- var l, m;
28
+ } = f, [l, D] = g(!1), [_, S] = g({}), [E, I] = g({}), [G, T] = g(0), d = localStorage.getItem("userId") || t, [v, L] = g([]), k = async (p, c, u) => {
29
+ var i, m;
33
30
  if (!d) {
34
31
  s("User ID is not available. Please log in.");
35
32
  return;
36
33
  }
37
34
  try {
38
35
  const o = {
39
- input: { activity_type: u, target: P.toString(), action: c },
36
+ input: { activity_type: u, target: p.toString(), action: c },
40
37
  user_id: d
41
38
  }, e = await F.setPersonalGoal(o, r, n);
42
- ((m = (l = e == null ? void 0 : e.data) == null ? void 0 : l.community_setPersonalGoal) == null ? void 0 : m.message) === "Created Successfully!!!" && c === "goal" ? z("Goal updated successfully!") : c !== "entry" && s("Something went wrong, please try after sometime !");
39
+ ((m = (i = e == null ? void 0 : e.data) == null ? void 0 : i.community_setPersonalGoal) == null ? void 0 : m.message) === "Created Successfully!!!" && c === "goal" ? z("Goal updated successfully!") : c !== "entry" && s("Something went wrong, please try after sometime !");
43
40
  } catch (o) {
44
41
  console.error("Error in update goal API:", o), s("Something went wrong, please try after sometime !");
45
42
  }
46
- }, A = async (P = "") => {
47
- var c, u, l, m;
43
+ }, A = async (p = "") => {
44
+ var c, u, i, m;
48
45
  if (!d) {
49
46
  s("User ID is not available. Please log in.");
50
47
  return;
@@ -52,12 +49,12 @@ const J = async (p, f, w, y = "", t = "wellnessevent") => {
52
49
  try {
53
50
  D(!0);
54
51
  const o = {
55
- date: P,
52
+ date: p,
56
53
  user_id: d
57
54
  }, e = await C.fetchPersonalTracker(o, r, n);
58
55
  if (((c = e == null ? void 0 : e.errors) == null ? void 0 : c.length) > 0)
59
56
  s((u = e == null ? void 0 : e.errors[0]) == null ? void 0 : u.message);
60
- else if ((l = e == null ? void 0 : e.data) != null && l.community_fetchPersonalTracker) {
57
+ else if ((i = e == null ? void 0 : e.data) != null && i.community_fetchPersonalTracker) {
61
58
  const { water_intake: x, steps: M, streak_count: U } = (m = e == null ? void 0 : e.data) == null ? void 0 : m.community_fetchPersonalTracker;
62
59
  S(x), I(M), T(U);
63
60
  } else
@@ -69,12 +66,12 @@ const J = async (p, f, w, y = "", t = "wellnessevent") => {
69
66
  }
70
67
  }, b = {
71
68
  waterIntakeData: _,
72
- loading: i,
69
+ loading: l,
73
70
  fetchPersonalData: A,
74
71
  updateGoals: k
75
72
  }, H = {
76
73
  stepsData: E,
77
- loading: i,
74
+ loading: l,
78
75
  updateGoals: k
79
76
  };
80
77
  return q(() => {
@@ -82,8 +79,8 @@ const J = async (p, f, w, y = "", t = "wellnessevent") => {
82
79
  }, []), /* @__PURE__ */ j(
83
80
  W,
84
81
  {
85
- analytics: w,
86
- authoringHelper: y,
82
+ analytics: y,
83
+ authoringHelper: P,
87
84
  secondaryArgs: f,
88
85
  waterIntakeDetails: b,
89
86
  stepsDetails: H,
@@ -95,6 +92,6 @@ const J = async (p, f, w, y = "", t = "wellnessevent") => {
95
92
  );
96
93
  };
97
94
  export {
98
- R as EngagementHomeComponent,
99
- R as default
95
+ Z as EngagementHomeComponent,
96
+ Z as default
100
97
  };
@@ -1,13 +1,10 @@
1
- import { jsx as M } from "react/jsx-runtime";
2
- import { E as U } from "./EventList-sMbbb46c.mjs";
3
- import { useState as m, useEffect as V } from "react";
4
- import { f as q, s as d, a as I } from "./index-BF0Ks43y.mjs";
5
- import { m as z } from "./mutateApi-DzPMKCtv.mjs";
6
- import "@mui/material";
7
- import "@mui/styles";
8
- import "@mui/system";
1
+ import { jsx as U } from "react/jsx-runtime";
2
+ import { E as V } from "./EventList-DlHDYUR5.mjs";
3
+ import { useState as a, useEffect as p } from "react";
4
+ import { f as q, s as d, a as I } from "./index-CsZlaFxy.mjs";
5
+ import { m as z } from "./mutateApi-BQthCwMO.mjs";
9
6
  import "react-dom";
10
- const ee = (h) => {
7
+ const Z = (h) => {
11
8
  const {
12
9
  pageData: t = {},
13
10
  secondaryArgs: g,
@@ -18,38 +15,38 @@ const ee = (h) => {
18
15
  relativePath: j = ""
19
16
  } = h || {}, {
20
17
  prelemBaseEndpoint: { language: v, site_host: _ }
21
- } = g, [T, a] = m(!1), [k, E] = m(!1), [p, L] = m(0), f = localStorage.getItem("userId") || P, [b, x] = m(""), [D, G] = m(!1), H = {
18
+ } = g, [T, m] = a(!1), [k, E] = a(!1), [L, b] = a(0), f = localStorage.getItem("userId") || P, [x, D] = a(""), [G, H] = a(!1), J = {
22
19
  joinEvent: async (u) => {
23
- var n, i, s, o, l, c;
20
+ var r, s, i, o, l, c;
24
21
  if (!f) {
25
22
  d("User ID is not available. Please log in.");
26
23
  return;
27
24
  }
28
25
  try {
29
- a(!0);
30
- const r = {
26
+ m(!0);
27
+ const n = {
31
28
  input: {
32
29
  ...u,
33
30
  userId: f
34
31
  }
35
- }, e = await z.joinEvent(r, v, _);
36
- ((n = e == null ? void 0 : e.errors) == null ? void 0 : n.length) > 0 ? d((i = e == null ? void 0 : e.errors[0]) == null ? void 0 : i.message) : (o = (s = e == null ? void 0 : e.data) == null ? void 0 : s.community_userRegistration) != null && o.id ? (I((c = (l = e == null ? void 0 : e.data) == null ? void 0 : l.community_userRegistration) == null ? void 0 : c.message), E(!0), y()) : console.error("Join Event API failed");
37
- } catch (r) {
38
- console.error("Error in Join Event API:", r);
32
+ }, e = await z.joinEvent(n, v, _);
33
+ ((r = e == null ? void 0 : e.errors) == null ? void 0 : r.length) > 0 ? d((s = e == null ? void 0 : e.errors[0]) == null ? void 0 : s.message) : (o = (i = e == null ? void 0 : e.data) == null ? void 0 : i.community_userRegistration) != null && o.id ? (I((c = (l = e == null ? void 0 : e.data) == null ? void 0 : l.community_userRegistration) == null ? void 0 : c.message), E(!0), y()) : console.error("Join Event API failed");
34
+ } catch (n) {
35
+ console.error("Error in Join Event API:", n);
39
36
  } finally {
40
- a(!1);
37
+ m(!1);
41
38
  }
42
39
  },
43
40
  loading: T,
44
41
  isRegistered: k,
45
- registeredParticipants: p,
46
- meetingLink: b,
47
- isStarted: D
42
+ registeredParticipants: L,
43
+ meetingLink: x,
44
+ isStarted: G
48
45
  }, y = async () => {
49
- var u, n, i, s, o, l, c;
46
+ var u, r, s, i, o, l, c;
50
47
  try {
51
- a(!0);
52
- const r = (u = t == null ? void 0 : t.event_type) != null && u.includes("Virtual") ? {
48
+ m(!0);
49
+ const n = (u = t == null ? void 0 : t.event_type) != null && u.includes("Virtual") ? {
53
50
  event_id: t == null ? void 0 : t.page,
54
51
  user_id: f,
55
52
  type: "webinar",
@@ -60,40 +57,40 @@ const ee = (h) => {
60
57
  } : {
61
58
  event_id: t == null ? void 0 : t.page,
62
59
  user_id: f
63
- }, e = await q.getEventDetails(r, v, _);
64
- if (((n = e == null ? void 0 : e.errors) == null ? void 0 : n.length) > 0)
65
- d((i = e == null ? void 0 : e.errors[0]) == null ? void 0 : i.message);
66
- else if ((s = e == null ? void 0 : e.data) != null && s.community_eventDetails) {
60
+ }, e = await q.getEventDetails(n, v, _);
61
+ if (((r = e == null ? void 0 : e.errors) == null ? void 0 : r.length) > 0)
62
+ d((s = e == null ? void 0 : e.errors[0]) == null ? void 0 : s.message);
63
+ else if ((i = e == null ? void 0 : e.data) != null && i.community_eventDetails) {
67
64
  const {
68
- total_participant: J,
69
- is_joined: O,
70
- meeting_link: B = "",
71
- is_started: C = !1
65
+ total_participant: O,
66
+ is_joined: B,
67
+ meeting_link: C = "",
68
+ is_started: M = !1
72
69
  } = (o = e == null ? void 0 : e.data) == null ? void 0 : o.community_eventDetails;
73
- I((c = (l = e == null ? void 0 : e.data) == null ? void 0 : l.community_eventDetails) == null ? void 0 : c.message), E(O), L(J), x(B), G(C);
70
+ I((c = (l = e == null ? void 0 : e.data) == null ? void 0 : l.community_eventDetails) == null ? void 0 : c.message), E(B), b(O), D(C), H(M);
74
71
  } else
75
72
  console.error("GetEventDetails API failed");
76
- } catch (r) {
77
- console.error("Error in GetEventDetails API:", r);
73
+ } catch (n) {
74
+ console.error("Error in GetEventDetails API:", n);
78
75
  } finally {
79
- a(!1);
76
+ m(!1);
80
77
  }
81
78
  };
82
- return V(() => {
79
+ return p(() => {
83
80
  t != null && t.page && y();
84
- }, [t]), /* @__PURE__ */ M(
85
- U,
81
+ }, [t]), /* @__PURE__ */ U(
82
+ V,
86
83
  {
87
84
  content: t,
88
85
  analytics: S,
89
86
  authoringHelper: A,
90
87
  secondaryArgs: g,
91
- eventDetails: H,
88
+ eventDetails: J,
92
89
  filters: w,
93
90
  relativePath: j
94
91
  }
95
92
  );
96
93
  };
97
94
  export {
98
- ee as default
95
+ Z as default
99
96
  };