@platform-x/hcltechx-mfe-wrapper 1.0.5 → 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 (37) hide show
  1. package/{ArticleVodListComponent-YtUMKTV-.mjs → ArticleVodListComponent-BvG7HDYH.mjs} +2 -2
  2. package/{ChallengeDetailComponent-j278rJJS.mjs → ChallengeDetailComponent-CPLD6qTT.mjs} +3 -3
  3. package/{CommonContentComponent-_hdjGmme.mjs → CommonContentComponent-Dkc8ecm8.mjs} +3 -3
  4. package/{DailyMotion-k0P9b2sC.mjs → DailyMotion-6zDhMMgD.mjs} +2 -2
  5. package/{EngagementHomeComponent-DQFLt6If.mjs → EngagementHomeComponent-DxQ50FY8.mjs} +3 -3
  6. package/{EventDetailComponent-BnDu80CK.mjs → EventDetailComponent-Dsadtp-3.mjs} +3 -3
  7. package/EventList-DlHDYUR5.mjs +37751 -0
  8. package/{EventListComponent-Dy6XnpUL.mjs → EventListComponent-Cvz8RtZS.mjs} +3 -3
  9. package/{Facebook-VoE7NiL8.mjs → Facebook-DKoF29ND.mjs} +2 -2
  10. package/{FilePlayer-DfU88hmO.mjs → FilePlayer-Fjd_Z9UU.mjs} +2 -2
  11. package/IndividualChallengeComponent-fIqwP2bn.mjs +175 -0
  12. package/{Kaltura-Bu9eMAN_.mjs → Kaltura-DuyO59Kb.mjs} +2 -2
  13. package/{Mixcloud-Co8pBsFF.mjs → Mixcloud-9i-39rwx.mjs} +2 -2
  14. package/{Mux-CQDLL49m.mjs → Mux-DsGaA37I.mjs} +2 -2
  15. package/{Preview-BchOEyWT.mjs → Preview-CiGhPvfR.mjs} +1 -1
  16. package/{RecentCarousel-B2MDJzK3.mjs → RecentCarousel-BBMHRLyu.mjs} +2 -2
  17. package/{Share-BQzXwAtU.mjs → Share-CDrNLk2X.mjs} +2 -2
  18. package/{SoundCloud-D29HmRwe.mjs → SoundCloud-BbfWgBQ5.mjs} +2 -2
  19. package/{Streamable-QMtcUAgf.mjs → Streamable-CqfHazZq.mjs} +2 -2
  20. package/{Twitch-B4LsE3Lz.mjs → Twitch-BtOGB2Im.mjs} +2 -2
  21. package/{Vidyard-Cl-t0hI0.mjs → Vidyard-D4jNAL5v.mjs} +2 -2
  22. package/{Vimeo-BqWIdDq5.mjs → Vimeo-WzocafKt.mjs} +2 -2
  23. package/{Wistia-BHdOPrcK.mjs → Wistia-Ba5fmEM7.mjs} +2 -2
  24. package/{YouTube-Dlusrv1H.mjs → YouTube-DOp63wrf.mjs} +2 -2
  25. package/{index-CuGbAy3z.mjs → index-CsZlaFxy.mjs} +4757 -3039
  26. package/{index-BNSG2Kzk.mjs → index-DeykmZCh.mjs} +2 -2
  27. package/index.mjs +1 -1
  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-DN4k_whx.mjs → mutateApi-BQthCwMO.mjs} +16 -8
  36. package/package.json +1 -1
  37. package/EventList-ql-92dgs.mjs +0 -37721
@@ -1,8 +1,8 @@
1
1
  import { jsx as _ } from "react/jsx-runtime";
2
- import { d as v } from "./EventList-ql-92dgs.mjs";
2
+ import { d as v } from "./EventList-DlHDYUR5.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-CuGbAy3z.mjs";
5
- import { m as b } from "./mutateApi-DN4k_whx.mjs";
4
+ import { s as r, f as k, a as L } from "./index-CsZlaFxy.mjs";
5
+ import { m as b } from "./mutateApi-BQthCwMO.mjs";
6
6
  import "react-dom";
7
7
  const q = ({
8
8
  data: h,
@@ -1,6 +1,6 @@
1
- import { g as _ } from "./index-CuGbAy3z.mjs";
1
+ import { g as _ } from "./index-CsZlaFxy.mjs";
2
2
  import g from "react";
3
- import { u as P, p as m } from "./EventList-ql-92dgs.mjs";
3
+ import { u as P, p as m } from "./EventList-DlHDYUR5.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-CuGbAy3z.mjs";
1
+ import { g as b } from "./index-CsZlaFxy.mjs";
2
2
  import _ from "react";
3
- import { u as O, p as A } from "./EventList-ql-92dgs.mjs";
3
+ import { u as O, p as A } from "./EventList-DlHDYUR5.mjs";
4
4
  function R(s, e) {
5
5
  for (var t = 0; t < e.length; t++) {
6
6
  const i = e[t];
@@ -0,0 +1,175 @@
1
+ import { jsx as W } from "react/jsx-runtime";
2
+ import { I as X } from "./EventList-DlHDYUR5.mjs";
3
+ import { useState as m, useEffect as Y } from "react";
4
+ import { f as y, s as g, a as S } from "./index-CsZlaFxy.mjs";
5
+ import { m as C } from "./mutateApi-BQthCwMO.mjs";
6
+ import "react-dom";
7
+ const te = (q) => {
8
+ const {
9
+ pageData: l = {},
10
+ secondaryArgs: L,
11
+ prelemAnalyticsProp: w,
12
+ prelemAuthoringHelper: E,
13
+ userId: v
14
+ } = q || {}, {
15
+ prelemBaseEndpoint: { site_host: h, language: f }
16
+ } = L, d = localStorage.getItem("userId") || v, [G, u] = m(!1), [T, P] = m(!1), [B, j] = m(0), [D, U] = m(0), [k, b] = m([]), [x, H] = m([]), [J, z] = m([]), [F, I] = m({}), K = async (i) => {
17
+ var o, n, s, t, r, e;
18
+ try {
19
+ u(!0);
20
+ const a = {
21
+ input: {
22
+ ...i,
23
+ userId: d
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");
27
+ } catch (a) {
28
+ console.error("Error in Join Challenge API:", a);
29
+ } finally {
30
+ u(!1);
31
+ }
32
+ }, A = async () => {
33
+ var i, o, n, s;
34
+ try {
35
+ u(!0);
36
+ const t = {
37
+ challenge_id: l == null ? void 0 : l.page,
38
+ user_id: d
39
+ }, r = await y.getChallengeDetails(t, f, h);
40
+ if (((i = r == null ? void 0 : r.errors) == null ? void 0 : i.length) > 0)
41
+ g((o = r == null ? void 0 : r.errors[0]) == null ? void 0 : o.message);
42
+ else if ((n = r == null ? void 0 : r.data) != null && n.community_challengesDetail) {
43
+ const {
44
+ total_participant: e,
45
+ is_joined: a,
46
+ user_steps: c = 0
47
+ } = (s = r == null ? void 0 : r.data) == null ? void 0 : s.community_challengesDetail;
48
+ P(a), j(e), U(c);
49
+ } else
50
+ console.error("GetChallengeDetails API failed");
51
+ } catch (t) {
52
+ console.error("Error in GetChallengeDetails API:", t);
53
+ } finally {
54
+ u(!1);
55
+ }
56
+ }, M = async (i = "") => {
57
+ var o, n, s, t;
58
+ try {
59
+ u(!0);
60
+ const r = {
61
+ date: i,
62
+ user_id: d
63
+ }, e = await y.fetchPersonalTracker(r, f, h);
64
+ if (((o = e == null ? void 0 : e.errors) == null ? void 0 : o.length) > 0)
65
+ g((n = e == null ? void 0 : e.errors[0]) == null ? void 0 : n.message);
66
+ else if ((s = e == null ? void 0 : e.data) != null && s.community_fetchPersonalTracker) {
67
+ const { steps: a } = (t = e == null ? void 0 : e.data) == null ? void 0 : t.community_fetchPersonalTracker;
68
+ I(a);
69
+ } else
70
+ console.error("GetPersonalData API failed"), g("GetPersonalData API failed");
71
+ } catch (r) {
72
+ g("Something went wrong !"), console.error("Error in GetPersonalData API:", r), g("Error in GetPersonalData API"), I({});
73
+ } finally {
74
+ u(!1);
75
+ }
76
+ }, N = async () => {
77
+ var i, o, n, s, t;
78
+ try {
79
+ u(!0);
80
+ const r = {
81
+ challenge_id: l == null ? void 0 : l.page,
82
+ user_id: d
83
+ }, e = await y.getLeaderBoardList(r, f, h);
84
+ if (((i = e == null ? void 0 : e.errors) == null ? void 0 : i.length) > 0)
85
+ g((o = e == null ? void 0 : e.errors[0]) == null ? void 0 : o.message);
86
+ else if ((s = (n = e == null ? void 0 : e.data) == null ? void 0 : n.community_getLeaderBoardList) != null && s.records) {
87
+ const { records: a } = (t = e == null ? void 0 : e.data) == null ? void 0 : t.community_getLeaderBoardList;
88
+ b(a);
89
+ } else
90
+ console.error("GetLeaderBoardList API failed");
91
+ } catch (r) {
92
+ console.error("Error in GetLeaderBoardList API:", r);
93
+ } finally {
94
+ u(!1);
95
+ }
96
+ }, O = async (i) => {
97
+ var o, n;
98
+ try {
99
+ const s = {
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 !");
103
+ } catch (s) {
104
+ console.error("Error in update goal API:", s), g("Something went wrong, please try after sometime !");
105
+ }
106
+ }, Q = async () => {
107
+ var i, o, n, s, t;
108
+ try {
109
+ u(!0);
110
+ const r = {
111
+ challenge_id: l == null ? void 0 : l.page,
112
+ user_id: d
113
+ }, e = await y.getSentRequestList(r, f, h);
114
+ if (((i = e == null ? void 0 : e.errors) == null ? void 0 : i.length) > 0)
115
+ g((o = e == null ? void 0 : e.errors[0]) == null ? void 0 : o.message);
116
+ else if ((s = (n = e == null ? void 0 : e.data) == null ? void 0 : n.community_sentRequests) != null && s.records) {
117
+ const { records: a } = (t = e == null ? void 0 : e.data) == null ? void 0 : t.community_sentRequests;
118
+ H(a);
119
+ } else
120
+ console.error("GetSentRequestList API failed");
121
+ } catch (r) {
122
+ console.error("Error in GetSentRequestList API:", r);
123
+ } finally {
124
+ u(!1);
125
+ }
126
+ }, _ = async () => {
127
+ var i, o, n, s, t;
128
+ try {
129
+ u(!0);
130
+ const r = {
131
+ challenge_id: l == null ? void 0 : l.page,
132
+ user_id: d
133
+ }, e = await y.getReceivedRequestList(r, f, h);
134
+ if (((i = e == null ? void 0 : e.errors) == null ? void 0 : i.length) > 0)
135
+ g((o = e == null ? void 0 : e.errors[0]) == null ? void 0 : o.message);
136
+ else if ((s = (n = e == null ? void 0 : e.data) == null ? void 0 : n.community_receivedRequests) != null && s.records) {
137
+ const { records: a } = (t = e == null ? void 0 : e.data) == null ? void 0 : t.community_receivedRequests;
138
+ z(a);
139
+ } else
140
+ console.error("GetReceivedRequestList API failed");
141
+ } catch (r) {
142
+ console.error("Error in GetReceivedRequestList API:", r);
143
+ } finally {
144
+ u(!1);
145
+ }
146
+ }, V = {
147
+ joinChallenge: K,
148
+ loading: G,
149
+ isEnrolled: T,
150
+ enrolledParticipants: B,
151
+ userAchieved: D,
152
+ leaderBoardList: k,
153
+ stepsData: F,
154
+ setUpChallenge: O,
155
+ sentRequestList: x,
156
+ receivedRequestList: J,
157
+ getSentRequestList: Q,
158
+ getReceivedRequestList: _
159
+ };
160
+ return Y(() => {
161
+ l != null && l.page && (A(), N(), M(), _());
162
+ }, [l]), /* @__PURE__ */ W(
163
+ X,
164
+ {
165
+ content: l,
166
+ analytics: w,
167
+ authoringHelper: E,
168
+ secondaryArgs: L,
169
+ challengeDetails: V
170
+ }
171
+ );
172
+ };
173
+ export {
174
+ te as default
175
+ };
@@ -1,6 +1,6 @@
1
- import { g as f } from "./index-CuGbAy3z.mjs";
1
+ import { g as f } from "./index-CsZlaFxy.mjs";
2
2
  import y from "react";
3
- import { u as _, p as m } from "./EventList-ql-92dgs.mjs";
3
+ import { u as _, p as m } from "./EventList-DlHDYUR5.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-CuGbAy3z.mjs";
1
+ import { g as f } from "./index-CsZlaFxy.mjs";
2
2
  import y from "react";
3
- import { u as m, p as g } from "./EventList-ql-92dgs.mjs";
3
+ import { u as m, p as g } from "./EventList-DlHDYUR5.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-CuGbAy3z.mjs";
1
+ import { g as P } from "./index-CsZlaFxy.mjs";
2
2
  import g from "react";
3
- import { p as E } from "./EventList-ql-92dgs.mjs";
3
+ import { p as E } from "./EventList-DlHDYUR5.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-CuGbAy3z.mjs";
1
+ import { g as y } from "./index-CsZlaFxy.mjs";
2
2
  import v from "react";
3
3
  function w(r, e) {
4
4
  for (var t = 0; t < e.length; t++) {
@@ -1,7 +1,7 @@
1
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-ql-92dgs.mjs";
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-DlHDYUR5.mjs";
3
3
  import K, { useState as Q, useEffect as Z } from "react";
4
- import { u as A } from "./index-CuGbAy3z.mjs";
4
+ import { u as A } from "./index-CsZlaFxy.mjs";
5
5
  import "react-dom";
6
6
  const ee = H(() => {
7
7
  const r = A();
@@ -1,8 +1,8 @@
1
1
  import Oe, { jsx as d, jsxs as C, Fragment as Re } from "react/jsx-runtime";
2
2
  import * as F from "react";
3
3
  import Ee, { forwardRef as Pe, useState as U, useEffect as be, useRef as Be, useCallback as De } from "react";
4
- import { t as Me, v as ve, w as We, x as He, m as $e, y as Ue, B as b, i as Ve, T, l as ze, e as xe, z as se, D as Fe, F as Ke, G as Ge, H as le } from "./EventList-ql-92dgs.mjs";
5
- import { c as K, d as G, e as X, h as q, _ as Q, i as S, j as Y, P as r, k as Xe, l as Z, m as ye, n as qe, o as de, g as Qe, G as O, t as ke, u as Ye } from "./index-CuGbAy3z.mjs";
4
+ import { t as Me, v as ve, w as We, x as He, m as $e, y as Ue, B as b, i as Ve, T, l as ze, e as xe, z as se, D as Fe, F as Ke, G as Ge, H as le } from "./EventList-DlHDYUR5.mjs";
5
+ import { c as K, d as G, e as X, h as q, _ as Q, i as S, j as Y, P as r, k as Xe, l as Z, m as ye, n as qe, o as de, g as Qe, G as O, t as ke, u as Ye } from "./index-CsZlaFxy.mjs";
6
6
  import "react-dom";
7
7
  function Ze(e) {
8
8
  return String(e).match(/[\d.\-+]*\s*(.*)/)[1] || "";
@@ -1,6 +1,6 @@
1
- import { g as P } from "./index-CuGbAy3z.mjs";
1
+ import { g as P } from "./index-CsZlaFxy.mjs";
2
2
  import g from "react";
3
- import { u as b, p as v } from "./EventList-ql-92dgs.mjs";
3
+ import { u as b, p as v } from "./EventList-DlHDYUR5.mjs";
4
4
  function O(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 m } from "./index-CuGbAy3z.mjs";
1
+ import { g as m } from "./index-CsZlaFxy.mjs";
2
2
  import f from "react";
3
- import { u as _, p as b } from "./EventList-ql-92dgs.mjs";
3
+ import { u as _, p as b } from "./EventList-DlHDYUR5.mjs";
4
4
  function P(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 w } from "./index-CuGbAy3z.mjs";
1
+ import { g as w } from "./index-CsZlaFxy.mjs";
2
2
  import D from "react";
3
- import { u as C, p as N } from "./EventList-ql-92dgs.mjs";
3
+ import { u as C, p as N } from "./EventList-DlHDYUR5.mjs";
4
4
  function I(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 } from "./index-CuGbAy3z.mjs";
1
+ import { g } from "./index-CsZlaFxy.mjs";
2
2
  import v from "react";
3
- import { u as b, p as O } from "./EventList-ql-92dgs.mjs";
3
+ import { u as b, p as O } from "./EventList-DlHDYUR5.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 d } from "./index-CuGbAy3z.mjs";
1
+ import { g as d } from "./index-CsZlaFxy.mjs";
2
2
  import f from "react";
3
- import { u as m, p as _ } from "./EventList-ql-92dgs.mjs";
3
+ import { u as m, p as _ } from "./EventList-DlHDYUR5.mjs";
4
4
  function P(t, e) {
5
5
  for (var r = 0; r < e.length; r++) {
6
6
  const a = e[r];
@@ -1,6 +1,6 @@
1
- import { g as m } from "./index-CuGbAy3z.mjs";
1
+ import { g as m } from "./index-CsZlaFxy.mjs";
2
2
  import g from "react";
3
- import { u as v, p as w } from "./EventList-ql-92dgs.mjs";
3
+ import { u as v, p as w } from "./EventList-DlHDYUR5.mjs";
4
4
  function O(t, e) {
5
5
  for (var a = 0; a < e.length; a++) {
6
6
  const s = e[a];
@@ -1,6 +1,6 @@
1
- import { g as U } from "./index-CuGbAy3z.mjs";
1
+ import { g as U } from "./index-CsZlaFxy.mjs";
2
2
  import I from "react";
3
- import { u as L, p as M } from "./EventList-ql-92dgs.mjs";
3
+ import { u as L, p as M } from "./EventList-DlHDYUR5.mjs";
4
4
  function Y(a, e) {
5
5
  for (var t = 0; t < e.length; t++) {
6
6
  const o = e[t];