@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,7 +1,7 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- import { b as p } from "./EventList-D2yqGf8I.mjs";
2
+ import { b as p } from "./EventList-BgAnQPsa.mjs";
3
3
  import "react";
4
- import "./index-D-3VZIx9.mjs";
4
+ import "./index-CIVj8pjz.mjs";
5
5
  import "react-dom";
6
6
  const f = ({
7
7
  data: t,
@@ -1,8 +1,8 @@
1
1
  import { jsx as H } from "react/jsx-runtime";
2
- import { C as J } from "./EventList-D2yqGf8I.mjs";
2
+ import { C as J } from "./EventList-BgAnQPsa.mjs";
3
3
  import { useState as m, useEffect as k } from "react";
4
- import { s as d, f as A, a as p } from "./index-D-3VZIx9.mjs";
5
- import { m as q } from "./mutateApi-xRWUHOcL.mjs";
4
+ import { s as d, m as p, a as q } from "./mutateApi-dFWYRnAs.mjs";
5
+ import { f as A } from "./index-CIVj8pjz.mjs";
6
6
  import "react-dom";
7
7
  const Q = (C) => {
8
8
  const {
@@ -26,8 +26,8 @@ const Q = (C) => {
26
26
  ...a,
27
27
  userId: h
28
28
  }
29
- }, o = await q.joinChallenge(c, u, f);
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");
29
+ }, o = await p.joinChallenge(c, u, f);
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 ? (q((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");
31
31
  } catch (c) {
32
32
  console.error("Error in Join Challenge API:", c);
33
33
  } finally {
@@ -0,0 +1,85 @@
1
+ import { jsx as z } from "react/jsx-runtime";
2
+ import { f as D, c as F } from "./EventList-BgAnQPsa.mjs";
3
+ import { useState as d, useEffect as J } from "react";
4
+ import { s as a, m as K, a as N } from "./mutateApi-dFWYRnAs.mjs";
5
+ import { f as p } from "./index-CIVj8pjz.mjs";
6
+ import "react-dom";
7
+ const Z = (I) => {
8
+ var S, P, A;
9
+ const { pageData: s = {}, secondaryArgs: f, userId: T, filters: _ } = I || {}, [k, u] = d(!1), [E, y] = d({}), [G, b] = d(0), [L, v] = d([]), w = localStorage.getItem("userId") || T, {
10
+ prelemBaseEndpoint: { site_host: g, language: h }
11
+ } = f, x = {
12
+ pageId: s == null ? void 0 : s.page,
13
+ pageTitle: s == null ? void 0 : s.title,
14
+ pageDesc: s == null ? void 0 : s.description,
15
+ pageTags: (P = (S = s == null ? void 0 : s.settings) == null ? void 0 : S.keywords) == null ? void 0 : P.join(", "),
16
+ isAuthoring: !1,
17
+ isSeoEnabled: (A = s == null ? void 0 : s.settings) == null ? void 0 : A.seo_blockIndexing,
18
+ isAnalyticsEnabled: s == null ? void 0 : s.analytics_enable
19
+ }, j = {
20
+ isAuthoring: !1
21
+ }, H = async (l, r, c, n = "", o = "wellnessevent") => {
22
+ var e, i, m, C;
23
+ const t = await p.getContentSchemaList(
24
+ {
25
+ searchTerm: n,
26
+ filter: (o == null ? void 0 : o.toLocaleLowerCase()) === "events" ? "wellnessevent" : o == null ? void 0 : o.toLocaleLowerCase()
27
+ },
28
+ l || "en",
29
+ r
30
+ );
31
+ (i = (e = t == null ? void 0 : t.data) == null ? void 0 : e.publish_getContents) != null && i.records ? c((C = (m = t == null ? void 0 : t.data) == null ? void 0 : m.publish_getContents) == null ? void 0 : C.records) : a("Something went wrong !");
32
+ }, M = async (l, r, c) => {
33
+ var n, o;
34
+ try {
35
+ const t = {
36
+ input: { activity_type: c, target: l.toString(), action: r },
37
+ user_id: w
38
+ }, e = await K.setPersonalGoal(t, h, g);
39
+ ((o = (n = e == null ? void 0 : e.data) == null ? void 0 : n.community_setPersonalGoal) == null ? void 0 : o.message) === "Created Successfully!!!" && r === "goal" ? N("Goal updated successfully!") : r !== "entry" && a("Something went wrong, please try after sometime !");
40
+ } catch (t) {
41
+ console.error("Error in update goal API:", t), a("Something went wrong, please try after sometime !");
42
+ }
43
+ }, B = async (l = "") => {
44
+ var r, c, n, o;
45
+ try {
46
+ u(!0);
47
+ const t = {
48
+ date: l,
49
+ user_id: w
50
+ }, e = await p.fetchPersonalTracker(t, h, g);
51
+ if (((r = e == null ? void 0 : e.errors) == null ? void 0 : r.length) > 0)
52
+ a((c = e == null ? void 0 : e.errors[0]) == null ? void 0 : c.message);
53
+ else if ((n = e == null ? void 0 : e.data) != null && n.community_fetchPersonalTracker) {
54
+ const { steps: i, streak_count: m } = (o = e == null ? void 0 : e.data) == null ? void 0 : o.community_fetchPersonalTracker;
55
+ y(i), b(m);
56
+ } else
57
+ console.error("GetPersonalData API failed"), a("GetPersonalData API failed");
58
+ } catch (t) {
59
+ a("Something went wrong !"), console.error("Error in GetPersonalData API:", t), a("Error in GetPersonalData API"), y({});
60
+ } finally {
61
+ u(!1);
62
+ }
63
+ }, q = {
64
+ stepsData: E,
65
+ loading: k,
66
+ updateGoals: M
67
+ };
68
+ return J(() => {
69
+ B(D(/* @__PURE__ */ new Date(), "yyyy-MM-dd")), H(h, g, v, "", "challenges");
70
+ }, []), /* @__PURE__ */ z(
71
+ F,
72
+ {
73
+ analytics: x,
74
+ authoringHelper: j,
75
+ secondaryArgs: f,
76
+ stepsDetails: q,
77
+ streaksCount: G,
78
+ data: L,
79
+ filters: _
80
+ }
81
+ );
82
+ };
83
+ export {
84
+ Z as default
85
+ };
@@ -1,7 +1,7 @@
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-D-3VZIx9.mjs";
4
- import { m as $ } from "./mutateApi-xRWUHOcL.mjs";
3
+ import { F as J, f as N } from "./index-CIVj8pjz.mjs";
4
+ import { s as w, m as $ } from "./mutateApi-dFWYRnAs.mjs";
5
5
  import "react-dom";
6
6
  const A = {
7
7
  Article: "Article",
@@ -11,7 +11,7 @@ const A = {
11
11
  Vod: "Vod"
12
12
  }, c = {};
13
13
  Object.keys(A).forEach((l) => (c[l] = j.lazy(
14
- () => import("./index-CsJ4J_3O.mjs").then((t) => ({
14
+ () => import("./index-AEiKTTFl.mjs").then((t) => ({
15
15
  default: t[A[l]]
16
16
  }))
17
17
  ), c));
@@ -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 v from "react";
3
- import { u as D, p as O } from "./EventList-D2yqGf8I.mjs";
3
+ import { u as D, p as O } from "./EventList-BgAnQPsa.mjs";
4
4
  function b(t, e) {
5
5
  for (var r = 0; r < e.length; r++) {
6
6
  const o = e[r];
@@ -0,0 +1,100 @@
1
+ import { jsx as z } from "react/jsx-runtime";
2
+ import { f as F, d as J } from "./EventList-BgAnQPsa.mjs";
3
+ import { useState as l, useEffect as K } from "react";
4
+ import { s, m as N, a as O } from "./mutateApi-dFWYRnAs.mjs";
5
+ import { f as E } from "./index-CIVj8pjz.mjs";
6
+ import "react-dom";
7
+ const v = async (w, g, y, D = "", t = "wellnessevent") => {
8
+ var f, d, o, r;
9
+ const a = await E.getContentSchemaList(
10
+ {
11
+ searchTerm: D,
12
+ filter: (t == null ? void 0 : t.toLocaleLowerCase()) === "events" ? "wellnessevent" : t == null ? void 0 : t.toLocaleLowerCase()
13
+ },
14
+ w || "en",
15
+ g
16
+ );
17
+ (d = (f = a == null ? void 0 : a.data) == null ? void 0 : f.publish_getContents) != null && d.records ? y((r = (o = a == null ? void 0 : a.data) == null ? void 0 : o.publish_getContents) == null ? void 0 : r.records) : s("Something went wrong !");
18
+ }, R = (w) => {
19
+ const {
20
+ secondaryArgs: g,
21
+ prelemAnalyticsProp: y,
22
+ prelemAuthoringHelper: D,
23
+ userId: t,
24
+ filters: a,
25
+ relativePath: f = "",
26
+ articleData: d
27
+ } = w || {}, {
28
+ prelemBaseEndpoint: { language: o, site_host: r }
29
+ } = g, [p, S] = l(!1), [_, I] = l({}), [G, k] = l({}), [T, L] = l(0), h = localStorage.getItem("userId") || t, [b, H] = l([]), [x, M] = l([]), A = async (P, c, u) => {
30
+ var i, m;
31
+ if (!h) {
32
+ s("User ID is not available. Please log in.");
33
+ return;
34
+ }
35
+ try {
36
+ const n = {
37
+ input: { activity_type: u, target: P.toString(), action: c },
38
+ user_id: h
39
+ }, e = await N.setPersonalGoal(n, o, r);
40
+ ((m = (i = e == null ? void 0 : e.data) == null ? void 0 : i.community_setPersonalGoal) == null ? void 0 : m.message) === "Created Successfully!!!" && c === "goal" ? O("Goal updated successfully!") : c !== "entry" && s("Something went wrong, please try after sometime !");
41
+ } catch (n) {
42
+ console.error("Error in update goal API:", n), s("Something went wrong, please try after sometime !");
43
+ }
44
+ }, C = async (P = "") => {
45
+ var c, u, i, m;
46
+ if (!h) {
47
+ s("User ID is not available. Please log in.");
48
+ return;
49
+ }
50
+ try {
51
+ S(!0);
52
+ const n = {
53
+ date: P,
54
+ user_id: h
55
+ }, e = await E.fetchPersonalTracker(n, o, r);
56
+ if (((c = e == null ? void 0 : e.errors) == null ? void 0 : c.length) > 0)
57
+ s((u = e == null ? void 0 : e.errors[0]) == null ? void 0 : u.message);
58
+ else if ((i = e == null ? void 0 : e.data) != null && i.community_fetchPersonalTracker) {
59
+ const { water_intake: B, steps: W, streak_count: q } = (m = e == null ? void 0 : e.data) == null ? void 0 : m.community_fetchPersonalTracker;
60
+ I(B), k(W), L(q);
61
+ } else
62
+ console.error("GetPersonalData API failed"), s("GetPersonalData API failed");
63
+ } catch (n) {
64
+ console.error("Error in GetPersonalData API:", n), s("Error in GetPersonalData API"), I({}), k({});
65
+ } finally {
66
+ S(!1);
67
+ }
68
+ }, U = {
69
+ waterIntakeData: _,
70
+ loading: p,
71
+ fetchPersonalData: C,
72
+ updateGoals: A
73
+ }, j = {
74
+ stepsData: G,
75
+ loading: p,
76
+ updateGoals: A
77
+ };
78
+ return K(() => {
79
+ C(F(/* @__PURE__ */ new Date(), "yyyy-MM-dd")), v(o, r, H, "", "challenges"), v(o, r, M, "", "wellnessevent");
80
+ }, []), /* @__PURE__ */ z(
81
+ J,
82
+ {
83
+ analytics: y,
84
+ authoringHelper: D,
85
+ secondaryArgs: g,
86
+ waterIntakeDetails: U,
87
+ stepsDetails: j,
88
+ streaksCount: T,
89
+ data: b,
90
+ eventData: x,
91
+ articleVodData: d,
92
+ filters: a,
93
+ relativePath: f
94
+ }
95
+ );
96
+ };
97
+ export {
98
+ R as EngagementHomeComponent,
99
+ R as default
100
+ };
@@ -1,8 +1,8 @@
1
1
  import { jsx as U } from "react/jsx-runtime";
2
- import { E as V } from "./EventList-D2yqGf8I.mjs";
2
+ import { E as V } from "./EventList-BgAnQPsa.mjs";
3
3
  import { useState as a, useEffect as p } from "react";
4
- import { f as q, s as d, a as I } from "./index-D-3VZIx9.mjs";
5
- import { m as z } from "./mutateApi-xRWUHOcL.mjs";
4
+ import { s as d, a as I, m as q } from "./mutateApi-dFWYRnAs.mjs";
5
+ import { f as z } from "./index-CIVj8pjz.mjs";
6
6
  import "react-dom";
7
7
  const Z = (h) => {
8
8
  const {
@@ -29,7 +29,7 @@ const Z = (h) => {
29
29
  ...u,
30
30
  userId: f
31
31
  }
32
- }, e = await z.joinEvent(n, v, _);
32
+ }, e = await q.joinEvent(n, v, _);
33
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
34
  } catch (n) {
35
35
  console.error("Error in Join Event API:", n);
@@ -57,7 +57,7 @@ const Z = (h) => {
57
57
  } : {
58
58
  event_id: t == null ? void 0 : t.page,
59
59
  user_id: f
60
- }, e = await q.getEventDetails(n, v, _);
60
+ }, e = await z.getEventDetails(n, v, _);
61
61
  if (((r = e == null ? void 0 : e.errors) == null ? void 0 : r.length) > 0)
62
62
  d((s = e == null ? void 0 : e.errors[0]) == null ? void 0 : s.message);
63
63
  else if ((i = e == null ? void 0 : e.data) != null && i.community_eventDetails) {