@platform-x/hcltechx-mfe-wrapper 1.0.21 → 1.0.22

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-BQoHiiKQ.mjs → ArticleVodListComponent-DnI80nGq.mjs} +2 -2
  2. package/{ChallengeDetailComponent-CTXOkTDi.mjs → ChallengeDetailComponent-BQOqyQe4.mjs} +3 -3
  3. package/{ChallengeSliderComponent-CAcMNlqM.mjs → ChallengeSliderComponent-DVyhqNVQ.mjs} +3 -3
  4. package/{CommonContentComponent-GDoe3quI.mjs → CommonContentComponent-Hnb8Xr5I.mjs} +3 -3
  5. package/{DailyMotion-DooEv23f.mjs → DailyMotion-BttO0I0C.mjs} +2 -2
  6. package/EngagementHomeComponent-LYRrGICV.mjs +112 -0
  7. package/{EventDetailComponent-B2ce5Inr.mjs → EventDetailComponent-BlbyfC5O.mjs} +3 -3
  8. package/{EventListComponent-B9ESwYEK.mjs → EventListComponent-B39xrxgu.mjs} +17 -17
  9. package/ExperienceZone-Bhkjbth9.mjs +89 -0
  10. package/ExperienceZoneComponent-F16DcM9H.mjs +48 -0
  11. package/{Facebook-Ddts7n8c.mjs → Facebook-BhbZsSMB.mjs} +2 -2
  12. package/{FilePlayer-N6K4OsOh.mjs → FilePlayer-DBOphwby.mjs} +2 -2
  13. package/{IndividualChallengeComponent-o7jJX3FB.mjs → IndividualChallengeComponent-BJ5RfzMH.mjs} +3 -3
  14. package/{Kaltura-DGdbSKVx.mjs → Kaltura-DkAlATL_.mjs} +2 -2
  15. package/{Mixcloud-MVWAMQDg.mjs → Mixcloud-CguOqMm8.mjs} +2 -2
  16. package/{Mux-BnTfpN-K.mjs → Mux-D6PeF7j6.mjs} +2 -2
  17. package/{PageComponent-CKrjcuSx.mjs → PageComponent-CLrj-Wc_.mjs} +2 -2
  18. package/{Preview-DzLPSp_r.mjs → Preview-9xbWxXDK.mjs} +1 -1
  19. package/{RecentCarousel-Cl86PKoA.mjs → RecentCarousel-D6dx6TIr.mjs} +23 -23
  20. package/{Share-D0aSQ9zk.mjs → Share-DQnAo1oF.mjs} +2 -2
  21. package/{SoundCloud-CyoxvKoN.mjs → SoundCloud-CZ-yrJeU.mjs} +2 -2
  22. package/{Streamable-mIh-PEmg.mjs → Streamable-CnJYyZu0.mjs} +2 -2
  23. package/{ToggleButton-DCe4d9MJ.mjs → ToggleButton-8IOlYjrU.mjs} +12367 -12145
  24. package/{Twitch-BOWa3Tr1.mjs → Twitch-DvDm30_Y.mjs} +2 -2
  25. package/{Vidyard-qNmM07ku.mjs → Vidyard-CxuW7iGh.mjs} +2 -2
  26. package/{Vimeo-CCvDAdIG.mjs → Vimeo-BkQKIRE4.mjs} +2 -2
  27. package/{Wistia-shaJ3dVi.mjs → Wistia-CQeoZyhr.mjs} +2 -2
  28. package/{YouTube-B-4Esa0L.mjs → YouTube-DOOQlFVu.mjs} +2 -2
  29. package/{index-CeTmWGyC.mjs → index-BPqB2yy1.mjs} +686 -683
  30. package/{index-Di95Ywjp.mjs → index-BQE4JEea.mjs} +17 -15
  31. package/index.mjs +1 -1
  32. package/lib/prelems/Components/ExperienceZoneComponent.d.ts +2 -0
  33. package/lib/utils/componentMapping.d.ts +1 -0
  34. package/{mutateApi-CRYclteK.mjs → mutateApi-BcmEMqEd.mjs} +1 -1
  35. package/package.json +1 -1
  36. package/style.css +1 -1
  37. package/EngagementHomeComponent-0FR59glv.mjs +0 -101
@@ -1,101 +0,0 @@
1
- import { jsx as z } from "react/jsx-runtime";
2
- import { f as F, a as J } from "./ToggleButton-DCe4d9MJ.mjs";
3
- import { useState as l, useEffect as K } from "react";
4
- import { f as E, s, a as N } from "./index-CeTmWGyC.mjs";
5
- import { m as O } from "./mutateApi-CRYclteK.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 O.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" ? N("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
- userId: t
95
- }
96
- );
97
- };
98
- export {
99
- R as EngagementHomeComponent,
100
- R as default
101
- };