@platform-x/hcltechx-mfe-wrapper 2.0.38 → 2.0.40
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/{ArticleVodList-DoqC-hKQ.mjs → ArticleVodList-B1FrYi8r.mjs} +3 -3
- package/{ArticleVodListComponent-XWeJoouQ.mjs → ArticleVodListComponent-CX0lN3SV.mjs} +4 -4
- package/{ChallengeDetailComponent-Dp1IeVmi.mjs → ChallengeDetailComponent-l-cOONG7.mjs} +3 -3
- package/{ChallengeSliderComponent-CULzA1dG.mjs → ChallengeSliderComponent-DEfHpqm6.mjs} +3 -3
- package/{CommonContentComponent-CWfY8kJG.mjs → CommonContentComponent-BUEqF5_f.mjs} +3 -3
- package/{DailyMotion-BsHSX8vI.mjs → DailyMotion-BC1QhZnO.mjs} +2 -2
- package/EngagementHomeComponent-BS4qRq4_.mjs +127 -0
- package/{EventDetailComponent-Dp0VlSVB.mjs → EventDetailComponent-BtjgER8J.mjs} +3 -3
- package/{EventList-DAlWzTK-.mjs → EventList-pLn7lZF0.mjs} +3 -3
- package/{EventListComponent-BB3FhsF4.mjs → EventListComponent-C9j-K3GY.mjs} +5 -5
- package/{ExperienceZone-CZVYBgbm.mjs → ExperienceZone-J1u18q_2.mjs} +30 -30
- package/ExperienceZoneComponent-Ck8f-Tfh.mjs +50 -0
- package/{Facebook-DM2nxZ6X.mjs → Facebook-CqrHCF4E.mjs} +2 -2
- package/{FilePlayer-D4Gl4oHv.mjs → FilePlayer-TREl9Y5L.mjs} +2 -2
- package/{FilterModal-CYqRg5A_.mjs → FilterModal-CocqCjZy.mjs} +2 -2
- package/{IndividualChallengeComponent-nKDekzrn.mjs → IndividualChallengeComponent-pD60Iviq.mjs} +3 -3
- package/{Kaltura-Csov5YFP.mjs → Kaltura-C2HJrJgW.mjs} +2 -2
- package/{Mixcloud-DqiNM5oV.mjs → Mixcloud-D287b-yZ.mjs} +2 -2
- package/{Mux-DYFWwY03.mjs → Mux-DxKfpO7f.mjs} +2 -2
- package/{PageComponent-CWDF-f36.mjs → PageComponent-CF8UGYJc.mjs} +2 -2
- package/{Preview-CLaNzqg9.mjs → Preview-BBNhJKE-.mjs} +1 -1
- package/{RecentCarousel-OzYrI9pF.mjs → RecentCarousel-BzViiz2d.mjs} +2 -2
- package/{Share-Dn0hvoEA.mjs → Share-DiXvjKD0.mjs} +2 -2
- package/{SoundCloud-DSCUt6eS.mjs → SoundCloud-CcgxNpmH.mjs} +2 -2
- package/{Streamable-Cojf5IZE.mjs → Streamable-D2fkrwcD.mjs} +2 -2
- package/{ToggleButton-BRgZQG5s.mjs → ToggleButton-B03Ns6G2.mjs} +84794 -84721
- package/{Twitch-DJHuAKar.mjs → Twitch-CVXAALjQ.mjs} +2 -2
- package/{Vidyard-BQz9Qrom.mjs → Vidyard-BBUKcgbP.mjs} +2 -2
- package/{Vimeo-D0-IbWLW.mjs → Vimeo-4E4rSljW.mjs} +2 -2
- package/{Wistia-BGAmR-h4.mjs → Wistia-MXt6KeWG.mjs} +2 -2
- package/{YouTube-Du2bW-pZ.mjs → YouTube-DjzlCAfr.mjs} +2 -2
- package/{index-6enEfAZn.mjs → index-Ck6QWiov.mjs} +513 -495
- package/{index-YMGEM_XZ.mjs → index-Dd6HvXc8.mjs} +7 -7
- package/index.mjs +1 -1
- package/lib/services/fetchApi.d.ts +1 -0
- package/lib/services/fetchQueries.d.ts +1 -0
- package/{mutateApi-odTRQfs9.mjs → mutateApi-CkVxxIzM.mjs} +1 -1
- package/package.json +1 -1
- package/EngagementHomeComponent-BsFRLMqz.mjs +0 -115
- package/ExperienceZoneComponent-gJQUSzwO.mjs +0 -50
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { x as K, y as g, z as E, A as W, B as R, F as D, G as U, H as L, J as G, K as P, S as y, L as F, M as X, N as j, O as Y, c as I, d as O, Q as $, R as v, e as Q, T as u, U as A, W as H } from "./ToggleButton-
|
|
2
|
-
import { $ as _i, X as Ci, a0 as ki, a1 as bi, a2 as Si, a as Bi, C as Ni, a3 as wi, a4 as Ti, a5 as Pi, E as gi, b as Ei, a6 as Wi, a7 as Ri, a8 as yi, I as Vi, a9 as Li, Y as Fi, aa as ji, ab as $i, Z as Mi, ac as qi, ad as zi, ae as Di, af as Ui, _ as Gi } from "./ToggleButton-
|
|
3
|
-
import { A as Oi } from "./ArticleVodList-
|
|
4
|
-
import { E as Zi } from "./EventList-
|
|
5
|
-
import { E as Ki } from "./ExperienceZone-
|
|
1
|
+
import { x as K, y as g, z as E, A as W, B as R, F as D, G as U, H as L, J as G, K as P, S as y, L as F, M as X, N as j, O as Y, c as I, d as O, Q as $, R as v, e as Q, T as u, U as A, W as H } from "./ToggleButton-B03Ns6G2.mjs";
|
|
2
|
+
import { $ as _i, X as Ci, a0 as ki, a1 as bi, a2 as Si, a as Bi, C as Ni, a3 as wi, a4 as Ti, a5 as Pi, E as gi, b as Ei, a6 as Wi, a7 as Ri, a8 as yi, I as Vi, a9 as Li, Y as Fi, aa as ji, ab as $i, Z as Mi, ac as qi, ad as zi, ae as Di, af as Ui, _ as Gi } from "./ToggleButton-B03Ns6G2.mjs";
|
|
3
|
+
import { A as Oi } from "./ArticleVodList-B1FrYi8r.mjs";
|
|
4
|
+
import { E as Zi } from "./EventList-pLn7lZF0.mjs";
|
|
5
|
+
import { E as Ki } from "./ExperienceZone-J1u18q_2.mjs";
|
|
6
6
|
import { jsx as i, jsxs as m, Fragment as Z } from "react/jsx-runtime";
|
|
7
7
|
import { useState as J } from "react";
|
|
8
|
-
import { q as V, T as n, G as N, B as d, r as ii, o as ei } from "./index-
|
|
8
|
+
import { q as V, T as n, G as N, B as d, r as ii, o as ei } from "./index-Ck6QWiov.mjs";
|
|
9
9
|
import "react-dom";
|
|
10
|
-
import "./FilterModal-
|
|
10
|
+
import "./FilterModal-CocqCjZy.mjs";
|
|
11
11
|
const oi = ({ content: e, analytics: o, authoringHelper: s, secondaryArgs: l }) => {
|
|
12
12
|
var p;
|
|
13
13
|
const [h, k] = J(!1), b = K(), _ = g(), { ref: C, inView: S } = E({
|
package/index.mjs
CHANGED
|
@@ -2,6 +2,7 @@ declare const fetchApi: {
|
|
|
2
2
|
fetchContentSchemaDetail: <T>(input: T, lang: any, host: any) => Promise<any>;
|
|
3
3
|
getContentSchemaEventList: <T>(input: T, lang: any, host: any) => Promise<any>;
|
|
4
4
|
getContentSchemaList: <T>(input: T, lang: any, host: any) => Promise<any>;
|
|
5
|
+
getContentSchemaListPagination: <T>(input: T, lang: any, host: any) => Promise<any>;
|
|
5
6
|
fetchPersonalTracker: <T>(input: T, lang: any, host: any) => Promise<any>;
|
|
6
7
|
getChallengeDetails: <T>(input: T, lang: any, host: any) => Promise<any>;
|
|
7
8
|
getLeaderBoardList: <T>(input: T, lang: any, host: any) => Promise<any>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const FETCH_CONTENT_SCHEMA_DETAIL = "\n query FETCH_CONTENT_SCHEMA_DETAIL($contentType: String!, $pagePath: String!) {\n publish_fetchSchemaContent(contentType: $contentType, pagePath: $pagePath)\n }\n";
|
|
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
|
+
export declare const GET_CONTENT_SCHEMA_LIST_PAGINATION = "query GET_CONTENT_SCHEMA_LIST($searchTerm: String!, $filter: String!, $contentTypes: [String],\n$tags: [String], $exclude: [String], $conditionString: String, $pagination: publish_Paginate) {\npublish_getContents( searchTerm: $searchTerm\n tags: $tags\n filter: $filter\n contentTypes: $contentTypes\n isSuggestive: false\n exclude: $exclude\n conditionString: $conditionString\n pagination: $pagination)\n}\n";
|
|
3
4
|
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
5
|
export declare const GET_CHALLENGE_DETAILS = "query GET_CHALLENGE_DETAILS($challenge_id: String!, $user_id: String, $derived_challenge_id: String) {\n community_challengesDetail(challenge_id: $challenge_id, user_id: $user_id, derived_challenge_id: $derived_challenge_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
6
|
export declare const GET_LEADER_BOARD_LIST = "\n query GET_LEADER_BOARD_LIST($challenge_id: String!, $user_id: String, $pagination: community_Paginate!, $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: $pagination\n challenge_type: $challenge_type\n derived_challenge_id: $derived_challenge_id\n target_type: $target_type\n )\n }\n";
|
package/package.json
CHANGED
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { jsx as te } from "react/jsx-runtime";
|
|
2
|
-
import { f as oe, E as ae } from "./ToggleButton-BRgZQG5s.mjs";
|
|
3
|
-
import { useState as o, useEffect as ne } from "react";
|
|
4
|
-
import { C as se, f as A, s as i, a as re } from "./index-6enEfAZn.mjs";
|
|
5
|
-
import { m as ce } from "./mutateApi-odTRQfs9.mjs";
|
|
6
|
-
import "react-dom";
|
|
7
|
-
const k = async (C, m, u, r = "", t = "wellnessevent") => {
|
|
8
|
-
var g, h, w, n;
|
|
9
|
-
const a = await A.getContentSchemaList(
|
|
10
|
-
{
|
|
11
|
-
searchTerm: r,
|
|
12
|
-
filter: (t == null ? void 0 : t.toLocaleLowerCase()) === "events" ? "wellnessevent" : t == null ? void 0 : t.toLocaleLowerCase(),
|
|
13
|
-
conditionString: (t == null ? void 0 : t.toLocaleLowerCase()) === "wellnessevent" || (t == null ? void 0 : t.toLocaleLowerCase()) === "events" ? "hclplatformx_public_listing:true" : ""
|
|
14
|
-
},
|
|
15
|
-
C || "en",
|
|
16
|
-
m
|
|
17
|
-
);
|
|
18
|
-
(h = (g = a == null ? void 0 : a.data) == null ? void 0 : g.publish_getContents) != null && h.records ? u((n = (w = a == null ? void 0 : a.data) == null ? void 0 : w.publish_getContents) == null ? void 0 : n.records) : console.error("Something went wrong !");
|
|
19
|
-
}, we = (C) => {
|
|
20
|
-
const {
|
|
21
|
-
secondaryArgs: m,
|
|
22
|
-
prelemAnalyticsProp: u,
|
|
23
|
-
prelemAuthoringHelper: r,
|
|
24
|
-
userId: t,
|
|
25
|
-
filters: a,
|
|
26
|
-
relativePath: g = "",
|
|
27
|
-
articleData: h,
|
|
28
|
-
loader: w
|
|
29
|
-
} = C || {}, {
|
|
30
|
-
prelemBaseEndpoint: { language: n, site_host: f }
|
|
31
|
-
} = m, [y, D] = o(w), [E, S] = o({}), [T, _] = o({}), [G, b] = o(0), I = localStorage.getItem("userId") || t, [x, B] = o([]), [H, M] = o([]), [N, U] = o({}), [j, O] = o({}), [W, q] = o({}), [z, F] = o({}), p = async (P, c, v) => {
|
|
32
|
-
var l, d;
|
|
33
|
-
if (!I) {
|
|
34
|
-
i("User ID is not available. Please log in.");
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
try {
|
|
38
|
-
const s = {
|
|
39
|
-
input: { activity_type: v, target: P.toString(), action: c },
|
|
40
|
-
user_id: I
|
|
41
|
-
}, e = await ce.setPersonalGoal(s, n, f);
|
|
42
|
-
((d = (l = e == null ? void 0 : e.data) == null ? void 0 : l.community_setPersonalGoal) == null ? void 0 : d.message) === "Created Successfully!!!" && c === "goal" ? re("Goal updated successfully!") : c !== "entry" && console.error("Something went wrong !");
|
|
43
|
-
} catch (s) {
|
|
44
|
-
console.error("Error in update goal API:", s), i("Something went wrong, please try after sometime !");
|
|
45
|
-
}
|
|
46
|
-
}, L = async (P = "") => {
|
|
47
|
-
var c, v, l, d;
|
|
48
|
-
if (!I) {
|
|
49
|
-
i("User ID is not available. Please log in.");
|
|
50
|
-
return;
|
|
51
|
-
}
|
|
52
|
-
try {
|
|
53
|
-
D(!0);
|
|
54
|
-
const s = {
|
|
55
|
-
date: P,
|
|
56
|
-
user_id: I
|
|
57
|
-
}, e = await A.fetchPersonalTracker(s, n, f);
|
|
58
|
-
if (((c = e == null ? void 0 : e.errors) == null ? void 0 : c.length) > 0)
|
|
59
|
-
i((v = e == null ? void 0 : e.errors[0]) == null ? void 0 : v.message);
|
|
60
|
-
else if ((l = e == null ? void 0 : e.data) != null && l.community_fetchPersonalTracker) {
|
|
61
|
-
const {
|
|
62
|
-
water_intake: Q,
|
|
63
|
-
steps: X,
|
|
64
|
-
streak_count: Y,
|
|
65
|
-
individual_challenge_info: Z,
|
|
66
|
-
calories: $,
|
|
67
|
-
distance: R,
|
|
68
|
-
device_info: V,
|
|
69
|
-
individual_challenge_detail: ee
|
|
70
|
-
} = (d = e == null ? void 0 : e.data) == null ? void 0 : d.community_fetchPersonalTracker;
|
|
71
|
-
S(Q), _(X), b(Y), U(Z), O({ calories: $, distance: R }), q(V), F(ee), D(!1);
|
|
72
|
-
} else
|
|
73
|
-
console.error("GetPersonalData API failed"), i("GetPersonalData API failed");
|
|
74
|
-
} catch (s) {
|
|
75
|
-
console.error("Error in GetPersonalData API:", s), i("Error in GetPersonalData API"), S({}), _({}), D(!1);
|
|
76
|
-
}
|
|
77
|
-
}, J = {
|
|
78
|
-
waterIntakeData: E,
|
|
79
|
-
loading: y,
|
|
80
|
-
fetchPersonalData: L,
|
|
81
|
-
updateGoals: p
|
|
82
|
-
}, K = {
|
|
83
|
-
stepsData: T,
|
|
84
|
-
loading: y,
|
|
85
|
-
updateGoals: p
|
|
86
|
-
};
|
|
87
|
-
return ne(() => {
|
|
88
|
-
L(oe(/* @__PURE__ */ new Date(), "yyyy-MM-dd")), k(n, f, B, "", "challenges"), k(n, f, M, "", "wellnessevent"), r == null || r.handleCallBack("", "ALL", [], ["Vod", "Article"]), D(!0);
|
|
89
|
-
}, []), /* @__PURE__ */ te(
|
|
90
|
-
ae,
|
|
91
|
-
{
|
|
92
|
-
analytics: u,
|
|
93
|
-
authoringHelper: r,
|
|
94
|
-
secondaryArgs: m,
|
|
95
|
-
waterIntakeDetails: J,
|
|
96
|
-
stepsDetails: K,
|
|
97
|
-
streaksCount: G,
|
|
98
|
-
data: x,
|
|
99
|
-
eventData: H,
|
|
100
|
-
articleVodData: h,
|
|
101
|
-
filters: a,
|
|
102
|
-
relativePath: g,
|
|
103
|
-
userId: t,
|
|
104
|
-
deviceInfo: W,
|
|
105
|
-
individualChallengeInfo: N,
|
|
106
|
-
commonInfo: j,
|
|
107
|
-
individualChallengeDetail: z,
|
|
108
|
-
constants: se
|
|
109
|
-
}
|
|
110
|
-
);
|
|
111
|
-
};
|
|
112
|
-
export {
|
|
113
|
-
we as EngagementHomeComponent,
|
|
114
|
-
we as default
|
|
115
|
-
};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import "./ToggleButton-BRgZQG5s.mjs";
|
|
3
|
-
import { useState as T, useEffect as j } from "react";
|
|
4
|
-
import { f as k } from "./index-6enEfAZn.mjs";
|
|
5
|
-
import { E as H } from "./ExperienceZone-CZVYBgbm.mjs";
|
|
6
|
-
import "react-dom";
|
|
7
|
-
const z = (g) => {
|
|
8
|
-
var t, c, r;
|
|
9
|
-
const { pageData: s = {}, secondaryArgs: e, filters: h, isLoading: w } = g || {}, [L, C] = T([]), {
|
|
10
|
-
prelemBaseEndpoint: { site_host: v, language: E }
|
|
11
|
-
} = e, b = {
|
|
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: (c = (t = s == null ? void 0 : s.settings) == null ? void 0 : t.keywords) == null ? void 0 : c.join(", "),
|
|
16
|
-
isAuthoring: !1,
|
|
17
|
-
isSeoEnabled: (r = s == null ? void 0 : s.settings) == null ? void 0 : r.seo_blockIndexing,
|
|
18
|
-
isAnalyticsEnabled: s == null ? void 0 : s.analytics_enable
|
|
19
|
-
}, y = {
|
|
20
|
-
isAuthoring: !1
|
|
21
|
-
}, A = async (_, x, S = "", n = "wellnessevent") => {
|
|
22
|
-
var i, m, d, p;
|
|
23
|
-
const o = await k.getContentSchemaList(
|
|
24
|
-
{
|
|
25
|
-
searchTerm: S,
|
|
26
|
-
filter: (n == null ? void 0 : n.toLocaleLowerCase()) === "events" ? "wellnessevent" : n == null ? void 0 : n.toLocaleLowerCase(),
|
|
27
|
-
conditionString: (n == null ? void 0 : n.toLocaleLowerCase()) === "wellnessevent" || (n == null ? void 0 : n.toLocaleLowerCase()) === "events" ? "hclplatformx_public_listing:true" : ""
|
|
28
|
-
},
|
|
29
|
-
_ || "en",
|
|
30
|
-
v
|
|
31
|
-
);
|
|
32
|
-
(m = (i = o == null ? void 0 : o.data) == null ? void 0 : i.publish_getContents) != null && m.records ? x((p = (d = o == null ? void 0 : o.data) == null ? void 0 : d.publish_getContents) == null ? void 0 : p.records) : console.error("Something went wrong !");
|
|
33
|
-
};
|
|
34
|
-
return j(() => {
|
|
35
|
-
A(E, C, "", "wellnessevent");
|
|
36
|
-
}, []), /* @__PURE__ */ l(
|
|
37
|
-
H,
|
|
38
|
-
{
|
|
39
|
-
analytics: b,
|
|
40
|
-
authoringHelper: y,
|
|
41
|
-
secondaryArgs: e,
|
|
42
|
-
eventData: L,
|
|
43
|
-
filters: h,
|
|
44
|
-
isLoading: w
|
|
45
|
-
}
|
|
46
|
-
);
|
|
47
|
-
};
|
|
48
|
-
export {
|
|
49
|
-
z as default
|
|
50
|
-
};
|