@platform-x/hcltechx-mfe-wrapper 1.0.9 → 1.0.10

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 (35) hide show
  1. package/{ArticleVodListComponent-Dx9kz089.mjs → ArticleVodListComponent-CGYPjtbz.mjs} +2 -2
  2. package/{ChallengeDetailComponent-CDYW67Kx.mjs → ChallengeDetailComponent-wFgexfRN.mjs} +3 -3
  3. package/ChallengeSliderComponent-DlJLxu-W.mjs +85 -0
  4. package/{CommonContentComponent-BoHOhCUz.mjs → CommonContentComponent-D0ibizlD.mjs} +3 -3
  5. package/{DailyMotion-BIA7SEEW.mjs → DailyMotion-BymA5jjr.mjs} +2 -2
  6. package/EngagementHomeComponent-BBfNZ_oS.mjs +100 -0
  7. package/{EventDetailComponent-BE6pxr9g.mjs → EventDetailComponent-BJZsXaXF.mjs} +3 -3
  8. package/EventList-hs_1aiMc.mjs +219733 -0
  9. package/{EventListComponent-COx6Zawh.mjs → EventListComponent-CgBi-ggY.mjs} +9 -9
  10. package/{Facebook-CqEtMlPA.mjs → Facebook-CRS16Qk1.mjs} +2 -2
  11. package/{FilePlayer-CjXiDXa3.mjs → FilePlayer-DboirD-Q.mjs} +2 -2
  12. package/{IndividualChallengeComponent-Bfm95wog.mjs → IndividualChallengeComponent-DdVYn_-J.mjs} +3 -3
  13. package/{Kaltura-Cg97C5rG.mjs → Kaltura-D7rHQXnb.mjs} +2 -2
  14. package/{Mixcloud-DAVEJXxZ.mjs → Mixcloud-Ex-zINDP.mjs} +2 -2
  15. package/{Mux-BiP0byEL.mjs → Mux-CYUdZreh.mjs} +2 -2
  16. package/{Preview-I1Ruptf5.mjs → Preview-Cd53GjOM.mjs} +1 -1
  17. package/{RecentCarousel-mJDu3ayE.mjs → RecentCarousel-Fhcmu629.mjs} +48 -48
  18. package/{Share-B5_YqtYZ.mjs → Share-D2-0qFxQ.mjs} +78 -82
  19. package/{SoundCloud-D8kg6Ps6.mjs → SoundCloud-1dVdVRXj.mjs} +2 -2
  20. package/{Streamable-BuTsGK-o.mjs → Streamable-CJdBYsFW.mjs} +2 -2
  21. package/{Twitch-BjkSTgPl.mjs → Twitch-B29GH4XF.mjs} +2 -2
  22. package/{Vidyard-DXwWx_I_.mjs → Vidyard-DcVp_Ejt.mjs} +2 -2
  23. package/{Vimeo-Dwl4LnJ3.mjs → Vimeo-CAhSSPHl.mjs} +2 -2
  24. package/{Wistia-adA1p0Vn.mjs → Wistia-cBv27QfD.mjs} +2 -2
  25. package/{YouTube-QRUCVNDZ.mjs → YouTube-pCMBQQyx.mjs} +2 -2
  26. package/{index-D-3VZIx9.mjs → index-Bv4QVvQA.mjs} +1771 -1717
  27. package/index-CXyS7w1_.mjs +19 -0
  28. package/index.mjs +1 -1
  29. package/lib/prelems/Components/ChallengeSliderComponent.d.ts +2 -0
  30. package/lib/utils/componentMapping.d.ts +1 -0
  31. package/{mutateApi-xRWUHOcL.mjs → mutateApi-PTHF0lvY.mjs} +1 -1
  32. package/package.json +1 -1
  33. package/EngagementHomeComponent-D3hT_Mb4.mjs +0 -97
  34. package/EventList-D2yqGf8I.mjs +0 -37751
  35. package/index-CsJ4J_3O.mjs +0 -18
@@ -0,0 +1,19 @@
1
+ import { a as o, A as n, b as r, C as m, c as d, d as g, E as p, e as E, I as v, P as A, Q as C, V as c } from "./EventList-hs_1aiMc.mjs";
2
+ import "react/jsx-runtime";
3
+ import "react";
4
+ import "./index-Bv4QVvQA.mjs";
5
+ import "react-dom";
6
+ export {
7
+ o as AllEvent,
8
+ n as Article,
9
+ r as ArticleVodList,
10
+ m as ChallengeDetail,
11
+ d as ChallengeSlider,
12
+ g as EngagementHome,
13
+ p as EventDetail,
14
+ E as EventList,
15
+ v as IndividualChallenge,
16
+ A as Poll,
17
+ C as Quiz,
18
+ c as Vod
19
+ };
package/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { a6 as t, a7 as m } from "./index-D-3VZIx9.mjs";
1
+ import { a7 as t, a8 as m } from "./index-Bv4QVvQA.mjs";
2
2
  import "react/jsx-runtime";
3
3
  import "react";
4
4
  import "react-dom";
@@ -0,0 +1,2 @@
1
+ declare const ChallengeSliderComponent: (props: any) => import("react/jsx-runtime").JSX.Element;
2
+ export default ChallengeSliderComponent;
@@ -1,6 +1,7 @@
1
1
  declare const Components: {
2
2
  eventList: any;
3
3
  engagementHome: any;
4
+ dashboard: any;
4
5
  challenges: any;
5
6
  wellnessevent: any;
6
7
  quiz: any;
@@ -1,4 +1,4 @@
1
- import { b as s } from "./index-D-3VZIx9.mjs";
1
+ import { b as s } from "./index-Bv4QVvQA.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": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -1,97 +0,0 @@
1
- import { jsx as j } from "react/jsx-runtime";
2
- import { f as B, c as W } from "./EventList-D2yqGf8I.mjs";
3
- import { useState as g, useEffect as q } from "react";
4
- import { f as C, s, a as z } from "./index-D-3VZIx9.mjs";
5
- import { m as F } from "./mutateApi-xRWUHOcL.mjs";
6
- import "react-dom";
7
- const J = async (w, f, y, P = "", t = "wellnessevent") => {
8
- var h, r, n, l;
9
- const a = await C.getContentSchemaList(
10
- {
11
- searchTerm: P,
12
- filter: (t == null ? void 0 : t.toLocaleLowerCase()) === "events" ? "wellnessevent" : t == null ? void 0 : t.toLocaleLowerCase()
13
- },
14
- w || "en",
15
- f
16
- );
17
- (r = (h = a == null ? void 0 : a.data) == null ? void 0 : h.publish_getContents) != null && r.records ? y((l = (n = a == null ? void 0 : a.data) == null ? void 0 : n.publish_getContents) == null ? void 0 : l.records) : s("Something went wrong !");
18
- }, Z = (w) => {
19
- const {
20
- secondaryArgs: f,
21
- prelemAnalyticsProp: y,
22
- prelemAuthoringHelper: P,
23
- userId: t,
24
- filters: a,
25
- relativePath: h = ""
26
- } = w || {}, {
27
- prelemBaseEndpoint: { language: r, site_host: n }
28
- } = f, [l, D] = g(!1), [_, S] = g({}), [E, I] = g({}), [G, T] = g(0), d = localStorage.getItem("userId") || t, [v, L] = g([]), k = async (p, c, u) => {
29
- var i, m;
30
- if (!d) {
31
- s("User ID is not available. Please log in.");
32
- return;
33
- }
34
- try {
35
- const o = {
36
- input: { activity_type: u, target: p.toString(), action: c },
37
- user_id: d
38
- }, e = await F.setPersonalGoal(o, r, n);
39
- ((m = (i = e == null ? void 0 : e.data) == null ? void 0 : i.community_setPersonalGoal) == null ? void 0 : m.message) === "Created Successfully!!!" && c === "goal" ? z("Goal updated successfully!") : c !== "entry" && s("Something went wrong, please try after sometime !");
40
- } catch (o) {
41
- console.error("Error in update goal API:", o), s("Something went wrong, please try after sometime !");
42
- }
43
- }, A = async (p = "") => {
44
- var c, u, i, m;
45
- if (!d) {
46
- s("User ID is not available. Please log in.");
47
- return;
48
- }
49
- try {
50
- D(!0);
51
- const o = {
52
- date: p,
53
- user_id: d
54
- }, e = await C.fetchPersonalTracker(o, r, n);
55
- if (((c = e == null ? void 0 : e.errors) == null ? void 0 : c.length) > 0)
56
- s((u = e == null ? void 0 : e.errors[0]) == null ? void 0 : u.message);
57
- else if ((i = e == null ? void 0 : e.data) != null && i.community_fetchPersonalTracker) {
58
- const { water_intake: x, steps: M, streak_count: U } = (m = e == null ? void 0 : e.data) == null ? void 0 : m.community_fetchPersonalTracker;
59
- S(x), I(M), T(U);
60
- } else
61
- console.error("GetPersonalData API failed"), s("GetPersonalData API failed");
62
- } catch (o) {
63
- console.error("Error in GetPersonalData API:", o), s("Error in GetPersonalData API"), S({}), I({});
64
- } finally {
65
- D(!1);
66
- }
67
- }, b = {
68
- waterIntakeData: _,
69
- loading: l,
70
- fetchPersonalData: A,
71
- updateGoals: k
72
- }, H = {
73
- stepsData: E,
74
- loading: l,
75
- updateGoals: k
76
- };
77
- return q(() => {
78
- A(B(/* @__PURE__ */ new Date(), "yyyy-MM-dd")), J(r, n, L, "", "challenges");
79
- }, []), /* @__PURE__ */ j(
80
- W,
81
- {
82
- analytics: y,
83
- authoringHelper: P,
84
- secondaryArgs: f,
85
- waterIntakeDetails: b,
86
- stepsDetails: H,
87
- streaksCount: G,
88
- data: v,
89
- filters: a,
90
- relativePath: h
91
- }
92
- );
93
- };
94
- export {
95
- Z as EngagementHomeComponent,
96
- Z as default
97
- };