@platform-x/hcltechx-mfe-wrapper 2.0.38 → 2.0.39

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 (40) hide show
  1. package/{ArticleVodList-DoqC-hKQ.mjs → ArticleVodList-PWnj9mrs.mjs} +3 -3
  2. package/{ArticleVodListComponent-XWeJoouQ.mjs → ArticleVodListComponent-BZvQRa3e.mjs} +4 -4
  3. package/{ChallengeDetailComponent-Dp1IeVmi.mjs → ChallengeDetailComponent-ClBxLJtd.mjs} +3 -3
  4. package/{ChallengeSliderComponent-CULzA1dG.mjs → ChallengeSliderComponent-B24elman.mjs} +3 -3
  5. package/{CommonContentComponent-CWfY8kJG.mjs → CommonContentComponent-DpHSoexT.mjs} +3 -3
  6. package/{DailyMotion-BsHSX8vI.mjs → DailyMotion-CXKZe616.mjs} +2 -2
  7. package/EngagementHomeComponent-B7kzfe40.mjs +127 -0
  8. package/{EventDetailComponent-Dp0VlSVB.mjs → EventDetailComponent-ggZHTwME.mjs} +3 -3
  9. package/{EventList-DAlWzTK-.mjs → EventList-BriF6SN5.mjs} +3 -3
  10. package/{EventListComponent-BB3FhsF4.mjs → EventListComponent-DcsELjWM.mjs} +5 -5
  11. package/{ExperienceZone-CZVYBgbm.mjs → ExperienceZone-DgiA-TjC.mjs} +30 -30
  12. package/ExperienceZoneComponent-DRdh2EVR.mjs +50 -0
  13. package/{Facebook-DM2nxZ6X.mjs → Facebook-C_aJtgcI.mjs} +2 -2
  14. package/{FilePlayer-D4Gl4oHv.mjs → FilePlayer-BY4quBAT.mjs} +2 -2
  15. package/{FilterModal-CYqRg5A_.mjs → FilterModal-Dl8QSspi.mjs} +2 -2
  16. package/{IndividualChallengeComponent-nKDekzrn.mjs → IndividualChallengeComponent-DW3Ab9JB.mjs} +3 -3
  17. package/{Kaltura-Csov5YFP.mjs → Kaltura-DxNJm1cq.mjs} +2 -2
  18. package/{Mixcloud-DqiNM5oV.mjs → Mixcloud-CDFIGvB7.mjs} +2 -2
  19. package/{Mux-DYFWwY03.mjs → Mux-wkdkiO43.mjs} +2 -2
  20. package/{PageComponent-CWDF-f36.mjs → PageComponent-BNjkGlpF.mjs} +2 -2
  21. package/{Preview-CLaNzqg9.mjs → Preview-Cpiam-mX.mjs} +1 -1
  22. package/{RecentCarousel-OzYrI9pF.mjs → RecentCarousel-DAbxHbiv.mjs} +2 -2
  23. package/{Share-Dn0hvoEA.mjs → Share-GH5zrayK.mjs} +2 -2
  24. package/{SoundCloud-DSCUt6eS.mjs → SoundCloud-gju3X17a.mjs} +2 -2
  25. package/{Streamable-Cojf5IZE.mjs → Streamable-BEjDVgwU.mjs} +2 -2
  26. package/{ToggleButton-BRgZQG5s.mjs → ToggleButton-c4cox6ya.mjs} +19388 -19411
  27. package/{Twitch-DJHuAKar.mjs → Twitch-fqL5t4eH.mjs} +2 -2
  28. package/{Vidyard-BQz9Qrom.mjs → Vidyard-CJWmAxRf.mjs} +2 -2
  29. package/{Vimeo-D0-IbWLW.mjs → Vimeo-BqyFC_XE.mjs} +2 -2
  30. package/{Wistia-BGAmR-h4.mjs → Wistia-CyGEJxJ0.mjs} +2 -2
  31. package/{YouTube-Du2bW-pZ.mjs → YouTube-DLYnLXmm.mjs} +2 -2
  32. package/{index-YMGEM_XZ.mjs → index-B7rVh3PV.mjs} +7 -7
  33. package/{index-6enEfAZn.mjs → index-BfnjMF_J.mjs} +513 -495
  34. package/index.mjs +1 -1
  35. package/lib/services/fetchApi.d.ts +1 -0
  36. package/lib/services/fetchQueries.d.ts +1 -0
  37. package/{mutateApi-odTRQfs9.mjs → mutateApi-DUP-4jBH.mjs} +1 -1
  38. package/package.json +1 -1
  39. package/EngagementHomeComponent-BsFRLMqz.mjs +0 -115
  40. package/ExperienceZoneComponent-gJQUSzwO.mjs +0 -50
package/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { aG as t, aH as m } from "./index-6enEfAZn.mjs";
1
+ import { aG as t, aH as m } from "./index-BfnjMF_J.mjs";
2
2
  import "react/jsx-runtime";
3
3
  import "react";
4
4
  import "react-dom";
@@ -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";
@@ -1,4 +1,4 @@
1
- import { b as s } from "./index-6enEfAZn.mjs";
1
+ import { b as s } from "./index-BfnjMF_J.mjs";
2
2
  const u = `mutation ($input: community_userRegistrationInput) {
3
3
  community_userRegistration(input: $input) {
4
4
  id
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-x/hcltechx-mfe-wrapper",
3
- "version": "2.0.38",
3
+ "version": "2.0.39",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -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
- };