@platform-x/hcltechx-mfe-wrapper 2.0.6 → 2.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.
- package/{ArticleVodListComponent-BO6fYK6G.mjs → ArticleVodListComponent-BQ4-5d3R.mjs} +2 -2
- package/ChallengeDetailComponent-Cvbs4ESm.mjs +141 -0
- package/{ChallengeSliderComponent-DIf0rc9d.mjs → ChallengeSliderComponent-DRzdfWL_.mjs} +3 -3
- package/{CommonContentComponent-C2vOKVHX.mjs → CommonContentComponent-qzrpY_Vl.mjs} +3 -3
- package/{DailyMotion-DMSbXrjr.mjs → DailyMotion-BDmqmiKF.mjs} +2 -2
- package/{EngagementHomeComponent-CqIxkPw3.mjs → EngagementHomeComponent-Hf5EMhJ1.mjs} +3 -3
- package/{EventDetailComponent-bL2umW47.mjs → EventDetailComponent-BfT5aKKB.mjs} +3 -3
- package/{EventListComponent-DzZYAsnR.mjs → EventListComponent-Bv7_IUOu.mjs} +3 -3
- package/{ExperienceZone-Cu3ac6zL.mjs → ExperienceZone-COEKoTj9.mjs} +1 -1
- package/{ExperienceZoneComponent-CxzxqSLE.mjs → ExperienceZoneComponent-BrZl4X18.mjs} +3 -3
- package/{Facebook-B2nR3282.mjs → Facebook-DRF8IVWw.mjs} +2 -2
- package/{FilePlayer-DkuwigBM.mjs → FilePlayer-DedKJqpZ.mjs} +2 -2
- package/{IndividualChallengeComponent-CVfnktf-.mjs → IndividualChallengeComponent-CzqfmdCA.mjs} +12 -11
- package/{Kaltura-BhIetmvR.mjs → Kaltura-CUa0xc8s.mjs} +2 -2
- package/{Mixcloud-Bbdb4-zO.mjs → Mixcloud-BO4WgOhx.mjs} +2 -2
- package/{Mux-Bg6Q7vCF.mjs → Mux-Be-6AdI1.mjs} +2 -2
- package/{PageComponent-Bclp4upa.mjs → PageComponent-rK6ftzt8.mjs} +2 -2
- package/{Preview-D3KoHyFJ.mjs → Preview-BJZBw-YS.mjs} +1 -1
- package/{RecentCarousel-CN5xE8xA.mjs → RecentCarousel-w1peJJAT.mjs} +2 -2
- package/{Share-BJVZY37j.mjs → Share-DqJha0Vc.mjs} +2 -2
- package/{SoundCloud-mwl1Ab7b.mjs → SoundCloud-mDC2s7Xj.mjs} +2 -2
- package/{Streamable-BLGDWa7y.mjs → Streamable-DVPU_HtM.mjs} +2 -2
- package/{ToggleButton-EkD5p5iz.mjs → ToggleButton-DvmoKbv2.mjs} +5685 -5666
- package/{Twitch-CrVyypWk.mjs → Twitch-Buvx8KeC.mjs} +2 -2
- package/{Vidyard-qD3Srt5f.mjs → Vidyard-Bx7R1SQT.mjs} +2 -2
- package/{Vimeo-D9CrKPV-.mjs → Vimeo-CxQ3mkDw.mjs} +2 -2
- package/{Wistia--XMw5rEo.mjs → Wistia-Cu6BKPvJ.mjs} +2 -2
- package/{YouTube-BszHzurd.mjs → YouTube--yt0ZoOn.mjs} +2 -2
- package/{index-BVpO7HyU.mjs → index-Bp0KqIgF.mjs} +12 -11
- package/{index-C4qENLR0.mjs → index-Cx8EFUCS.mjs} +3 -3
- package/index.mjs +1 -1
- package/lib/services/fetchQueries.d.ts +1 -1
- package/{mutateApi-B9qVMnwc.mjs → mutateApi-C-HI_T5u.mjs} +1 -1
- package/package.json +1 -1
- package/ChallengeDetailComponent-CxpV71lg.mjs +0 -134
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as w } from "./index-
|
|
1
|
+
import { n as w } from "./index-Bp0KqIgF.mjs";
|
|
2
2
|
import D from "react";
|
|
3
|
-
import { z as C, F as N } from "./ToggleButton-
|
|
3
|
+
import { z as C, F as N } from "./ToggleButton-DvmoKbv2.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 { n as g } from "./index-
|
|
1
|
+
import { n as g } from "./index-Bp0KqIgF.mjs";
|
|
2
2
|
import v from "react";
|
|
3
|
-
import { z as b, F as O } from "./ToggleButton-
|
|
3
|
+
import { z as b, F as O } from "./ToggleButton-DvmoKbv2.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 { n as d } from "./index-
|
|
1
|
+
import { n as d } from "./index-Bp0KqIgF.mjs";
|
|
2
2
|
import f from "react";
|
|
3
|
-
import { z as m, F as _ } from "./ToggleButton-
|
|
3
|
+
import { z as m, F as _ } from "./ToggleButton-DvmoKbv2.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 { n as m } from "./index-
|
|
1
|
+
import { n as m } from "./index-Bp0KqIgF.mjs";
|
|
2
2
|
import g from "react";
|
|
3
|
-
import { z as v, F as w } from "./ToggleButton-
|
|
3
|
+
import { z as v, F as w } from "./ToggleButton-DvmoKbv2.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 { n as U } from "./index-
|
|
1
|
+
import { n as U } from "./index-Bp0KqIgF.mjs";
|
|
2
2
|
import I from "react";
|
|
3
|
-
import { z as L, F as M } from "./ToggleButton-
|
|
3
|
+
import { z as L, F as M } from "./ToggleButton-DvmoKbv2.mjs";
|
|
4
4
|
function Y(a, e) {
|
|
5
5
|
for (var t = 0; t < e.length; t++) {
|
|
6
6
|
const o = e[t];
|
|
@@ -5476,13 +5476,14 @@ const _r = async (r, i, e, o) => {
|
|
|
5476
5476
|
}
|
|
5477
5477
|
}
|
|
5478
5478
|
`, mc = `
|
|
5479
|
-
query GET_LEADER_BOARD_LIST($challenge_id: String!, $user_id: String,$challenge_type:String,$derived_challenge_id: String) {
|
|
5479
|
+
query GET_LEADER_BOARD_LIST($challenge_id: String!, $user_id: String,$challenge_type:String,$derived_challenge_id: String, $target_type: String) {
|
|
5480
5480
|
community_getLeaderBoardList(
|
|
5481
5481
|
challenge_id: $challenge_id
|
|
5482
5482
|
user_id: $user_id
|
|
5483
5483
|
pagination: { start: 0, rows: 10 }
|
|
5484
5484
|
challenge_type: $challenge_type
|
|
5485
5485
|
derived_challenge_id: $derived_challenge_id
|
|
5486
|
+
target_type: $target_type
|
|
5486
5487
|
)
|
|
5487
5488
|
}
|
|
5488
5489
|
`, Yc = `query GET_EVENT_DETAILS(
|
|
@@ -5563,23 +5564,23 @@ const _r = async (r, i, e, o) => {
|
|
|
5563
5564
|
getSentRequestList: async (r, i, e) => await _r(e, i, $c, r),
|
|
5564
5565
|
getReceivedRequestList: async (r, i, e) => await _r(e, i, hc, r)
|
|
5565
5566
|
}, Wc = Pr.lazy(
|
|
5566
|
-
() => import("./EventListComponent-
|
|
5567
|
+
() => import("./EventListComponent-Bv7_IUOu.mjs")
|
|
5567
5568
|
), kc = Pr.lazy(
|
|
5568
|
-
() => import("./ChallengeSliderComponent-
|
|
5569
|
+
() => import("./ChallengeSliderComponent-DRzdfWL_.mjs")
|
|
5569
5570
|
), zc = Pr.lazy(
|
|
5570
|
-
() => import("./EngagementHomeComponent-
|
|
5571
|
+
() => import("./EngagementHomeComponent-Hf5EMhJ1.mjs")
|
|
5571
5572
|
), Vc = Pr.lazy(
|
|
5572
|
-
() => import("./ChallengeDetailComponent-
|
|
5573
|
+
() => import("./ChallengeDetailComponent-Cvbs4ESm.mjs")
|
|
5573
5574
|
), Zc = Pr.lazy(
|
|
5574
|
-
() => import("./EventDetailComponent-
|
|
5575
|
+
() => import("./EventDetailComponent-BfT5aKKB.mjs")
|
|
5575
5576
|
), Hi = Pr.lazy(
|
|
5576
|
-
() => import("./CommonContentComponent-
|
|
5577
|
+
() => import("./CommonContentComponent-qzrpY_Vl.mjs")
|
|
5577
5578
|
), Kc = Pr.lazy(
|
|
5578
|
-
() => import("./ArticleVodListComponent-
|
|
5579
|
+
() => import("./ArticleVodListComponent-BQ4-5d3R.mjs")
|
|
5579
5580
|
), jc = Pr.lazy(
|
|
5580
|
-
() => import("./IndividualChallengeComponent-
|
|
5581
|
-
), Xc = Pr.lazy(() => import("./PageComponent-
|
|
5582
|
-
() => import("./ExperienceZoneComponent-
|
|
5581
|
+
() => import("./IndividualChallengeComponent-CzqfmdCA.mjs")
|
|
5582
|
+
), Xc = Pr.lazy(() => import("./PageComponent-rK6ftzt8.mjs")), qc = Pr.lazy(
|
|
5583
|
+
() => import("./ExperienceZoneComponent-BrZl4X18.mjs")
|
|
5583
5584
|
), ri = {
|
|
5584
5585
|
//prelems
|
|
5585
5586
|
eventList: Wc,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { K as t, G as o, A as n, L as c, M as d, N as P, b as _, C as S, O as g, R as u, S as v, a as C, c as h, E as p, U as y, W as V, X as W, Y as A, I as B, Z as E, H as x, _ as D, $ as F, Q as T, a0 as L, a1 as f, a2 as H, a3 as I, a4 as U, a5 as q, a6 as w, J as M } from "./ToggleButton-
|
|
2
|
-
import { E as Z } from "./ExperienceZone-
|
|
1
|
+
import { K as t, G as o, A as n, L as c, M as d, N as P, b as _, C as S, O as g, R as u, S as v, a as C, c as h, E as p, U as y, W as V, X as W, Y as A, I as B, Z as E, H as x, _ as D, $ as F, Q as T, a0 as L, a1 as f, a2 as H, a3 as I, a4 as U, a5 as q, a6 as w, J as M } from "./ToggleButton-DvmoKbv2.mjs";
|
|
2
|
+
import { E as Z } from "./ExperienceZone-COEKoTj9.mjs";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react";
|
|
5
|
-
import "./index-
|
|
5
|
+
import "./index-Bp0KqIgF.mjs";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
const l = {
|
|
8
8
|
Prelem_025: "Banner3",
|
package/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ export declare const FETCH_CONTENT_SCHEMA_DETAIL = "\n query FETCH_CONTENT_SCHE
|
|
|
2
2
|
export declare const GET_CONTENT_SCHEMA_LIST = "query GET_CONTENT_SCHEMA_LIST($searchTerm: String!, $filter: String!, $contentTypes: [String],\n $tags: [String], $exclude: [String], $conditionString: String) {\n publish_getContents( searchTerm: $searchTerm\n tags: $tags\n filter: $filter\n contentTypes: $contentTypes\n isSuggestive: false\n exclude: $exclude\n conditionString: $conditionString)\n }\n";
|
|
3
3
|
export declare const GET_PERSONAL_TRACKER = "query GET_PERSONAL_TRACKER($date: String!, $user_id: String) {\n community_fetchPersonalTracker(date: $date, user_id: $user_id)\n}";
|
|
4
4
|
export declare const GET_CHALLENGE_DETAILS = "query GET_CHALLENGE_DETAILS($challenge_id: String!, $user_id: String) {\n community_challengesDetail(challenge_id: $challenge_id, user_id: $user_id){\n total_participant\n is_joined\n user_steps\n duration\n total_distance_covered\n is_device_synced\n derivedChallenges\n\n }\n }\n";
|
|
5
|
-
export declare const GET_LEADER_BOARD_LIST = "\n query GET_LEADER_BOARD_LIST($challenge_id: String!, $user_id: String,$challenge_type:String,$derived_challenge_id: String) {\n community_getLeaderBoardList(\n challenge_id: $challenge_id\n user_id: $user_id\n pagination: { start: 0, rows: 10 }\n challenge_type: $challenge_type\n derived_challenge_id: $derived_challenge_id\n )\n }\n";
|
|
5
|
+
export declare const GET_LEADER_BOARD_LIST = "\n query GET_LEADER_BOARD_LIST($challenge_id: String!, $user_id: String,$challenge_type:String,$derived_challenge_id: String, $target_type: String) {\n community_getLeaderBoardList(\n challenge_id: $challenge_id\n user_id: $user_id\n pagination: { start: 0, rows: 10 }\n challenge_type: $challenge_type\n derived_challenge_id: $derived_challenge_id\n target_type: $target_type\n )\n }\n";
|
|
6
6
|
export declare const GET_EVENT_DETAILS = "query GET_EVENT_DETAILS(\n $event_id: String!\n $user_id: String\n $type: community_event_type\n $start_date: String\n $end_date: String\n ) {\n community_eventDetails(\n event_id: $event_id\n user_id: $user_id\n type: $type\n start_date: $start_date\n end_date: $end_date\n )\n }\n";
|
|
7
7
|
export declare const FETCH_CONTENT_DETAIL = "\n query FETCH_CONTENT_DETAIL($pagePath: String!, $contentType: publish_ContentTypes!) {\n publish_contentDetail(pagePath: $pagePath, contentType: $contentType)\n }\n";
|
|
8
8
|
export declare const FETCH_POLL = "\n query FETCH_POLL($title: String!) {\n users_fetchContent(title: $title) {\n title\n document_path\n options\n status\n total_vote\n start_date\n end_date\n created_by\n updated_by\n createdAt\n updatedAt\n }\n }\n";
|
package/package.json
CHANGED
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import { jsx as O } from "react/jsx-runtime";
|
|
2
|
-
import { b as Q } from "./ToggleButton-EkD5p5iz.mjs";
|
|
3
|
-
import { useState as c, useEffect as V } from "react";
|
|
4
|
-
import { s as f, f as u } from "./index-BVpO7HyU.mjs";
|
|
5
|
-
import { m as W } from "./mutateApi-B9qVMnwc.mjs";
|
|
6
|
-
import "react-dom";
|
|
7
|
-
const ee = (D) => {
|
|
8
|
-
const {
|
|
9
|
-
pageData: t = {},
|
|
10
|
-
secondaryArgs: P,
|
|
11
|
-
prelemAnalyticsProp: v,
|
|
12
|
-
prelemAuthoringHelper: E,
|
|
13
|
-
userId: y,
|
|
14
|
-
filters: C
|
|
15
|
-
} = D || {}, {
|
|
16
|
-
prelemBaseEndpoint: { language: h, site_host: m }
|
|
17
|
-
} = P, [w, a] = c(!1), [B, A] = c(!1), [T, G] = c(0), [S, j] = c(0), [U, b] = c([]), [k, I] = c(!1), [x, H] = c({}), [J, q] = c("0"), d = localStorage.getItem("userId") || y, z = async (i) => {
|
|
18
|
-
var n, s, l, o;
|
|
19
|
-
if (!d) {
|
|
20
|
-
f("User ID is not available. Please log in.");
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
try {
|
|
24
|
-
a(!0);
|
|
25
|
-
const r = {
|
|
26
|
-
input: {
|
|
27
|
-
...i,
|
|
28
|
-
userId: d
|
|
29
|
-
}
|
|
30
|
-
}, e = await W.joinChallenge(r, h, m);
|
|
31
|
-
((n = e == null ? void 0 : e.errors) == null ? void 0 : n.length) > 0 ? f((s = e == null ? void 0 : e.errors[0]) == null ? void 0 : s.message) : (o = (l = e == null ? void 0 : e.data) == null ? void 0 : l.community_joinChallenge) != null && o.id ? (A(!0), await _(), await L(), I(!0)) : console.error("Join Challenge API failed");
|
|
32
|
-
} catch (r) {
|
|
33
|
-
console.error("Error in Join Challenge API:", r);
|
|
34
|
-
} finally {
|
|
35
|
-
a(!1);
|
|
36
|
-
}
|
|
37
|
-
}, _ = async () => {
|
|
38
|
-
var i, n, s, l;
|
|
39
|
-
if (!d) {
|
|
40
|
-
f("User ID is not available. Please log in.");
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
try {
|
|
44
|
-
a(!0);
|
|
45
|
-
const o = {
|
|
46
|
-
challenge_id: t == null ? void 0 : t.page,
|
|
47
|
-
user_id: y
|
|
48
|
-
}, r = await u.getChallengeDetails(o, h, m);
|
|
49
|
-
if (((i = r == null ? void 0 : r.errors) == null ? void 0 : i.length) > 0)
|
|
50
|
-
f((n = r == null ? void 0 : r.errors[0]) == null ? void 0 : n.message);
|
|
51
|
-
else if ((s = r == null ? void 0 : r.data) != null && s.community_challengesDetail) {
|
|
52
|
-
const {
|
|
53
|
-
total_participant: e,
|
|
54
|
-
is_joined: g,
|
|
55
|
-
user_steps: M = 0,
|
|
56
|
-
total_distance_covered: N = "0"
|
|
57
|
-
} = (l = r == null ? void 0 : r.data) == null ? void 0 : l.community_challengesDetail;
|
|
58
|
-
A(g), G(e), j(M), q(N);
|
|
59
|
-
} else
|
|
60
|
-
console.error("GetEventDetails API failed");
|
|
61
|
-
} catch (o) {
|
|
62
|
-
console.error("Error in GetEventDetails API:", o);
|
|
63
|
-
} finally {
|
|
64
|
-
a(!1);
|
|
65
|
-
}
|
|
66
|
-
}, L = async () => {
|
|
67
|
-
var i, n, s, l, o;
|
|
68
|
-
try {
|
|
69
|
-
a(!0);
|
|
70
|
-
const r = {
|
|
71
|
-
challenge_id: t == null ? void 0 : t.page,
|
|
72
|
-
user_id: d
|
|
73
|
-
}, e = await u.getLeaderBoardList(r, h, m);
|
|
74
|
-
if (((i = e == null ? void 0 : e.errors) == null ? void 0 : i.length) > 0)
|
|
75
|
-
f((n = e == null ? void 0 : e.errors[0]) == null ? void 0 : n.message);
|
|
76
|
-
else if ((l = (s = e == null ? void 0 : e.data) == null ? void 0 : s.community_getLeaderBoardList) != null && l.records) {
|
|
77
|
-
const { records: g } = (o = e == null ? void 0 : e.data) == null ? void 0 : o.community_getLeaderBoardList;
|
|
78
|
-
b(g);
|
|
79
|
-
} else
|
|
80
|
-
console.error("GetLeaderBoardList API failed");
|
|
81
|
-
} catch (r) {
|
|
82
|
-
console.error("Error in GetLeaderBoardList API:", r);
|
|
83
|
-
} finally {
|
|
84
|
-
a(!1);
|
|
85
|
-
}
|
|
86
|
-
}, F = async (i = "") => {
|
|
87
|
-
var n, s, l, o;
|
|
88
|
-
try {
|
|
89
|
-
a(!0);
|
|
90
|
-
const r = {
|
|
91
|
-
date: i,
|
|
92
|
-
user_id: d
|
|
93
|
-
}, e = await u.fetchPersonalTracker(r, h, m);
|
|
94
|
-
if (((n = e == null ? void 0 : e.errors) == null ? void 0 : n.length) > 0)
|
|
95
|
-
f((s = e == null ? void 0 : e.errors[0]) == null ? void 0 : s.message);
|
|
96
|
-
else if ((l = e == null ? void 0 : e.data) != null && l.community_fetchPersonalTracker) {
|
|
97
|
-
const { device_info: g } = (o = e == null ? void 0 : e.data) == null ? void 0 : o.community_fetchPersonalTracker;
|
|
98
|
-
H(g);
|
|
99
|
-
} else
|
|
100
|
-
console.error("GetPersonalData API failed"), f("GetPersonalData API failed");
|
|
101
|
-
} catch (r) {
|
|
102
|
-
console.error("Error in GetPersonalData API:", r);
|
|
103
|
-
} finally {
|
|
104
|
-
a(!1);
|
|
105
|
-
}
|
|
106
|
-
}, K = {
|
|
107
|
-
joinChallenge: z,
|
|
108
|
-
loading: w,
|
|
109
|
-
isEnrolled: B,
|
|
110
|
-
enrolledParticipants: T,
|
|
111
|
-
userAchieved: S,
|
|
112
|
-
leaderBoardList: U,
|
|
113
|
-
showPopup: k,
|
|
114
|
-
setShowPopup: I,
|
|
115
|
-
deviceInfo: x,
|
|
116
|
-
userAchievedDistance: J
|
|
117
|
-
};
|
|
118
|
-
return V(() => {
|
|
119
|
-
t != null && t.page && (_(), L(), F());
|
|
120
|
-
}, [t]), /* @__PURE__ */ O(
|
|
121
|
-
Q,
|
|
122
|
-
{
|
|
123
|
-
content: t,
|
|
124
|
-
analytics: v,
|
|
125
|
-
authoringHelper: E,
|
|
126
|
-
secondaryArgs: P,
|
|
127
|
-
challengeDetails: K,
|
|
128
|
-
filters: C
|
|
129
|
-
}
|
|
130
|
-
);
|
|
131
|
-
};
|
|
132
|
-
export {
|
|
133
|
-
ee as default
|
|
134
|
-
};
|