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

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 (39) hide show
  1. package/{ArticleVodListComponent-Dx9kz089.mjs → ArticleVodListComponent-55Amw117.mjs} +2 -2
  2. package/{ChallengeDetailComponent-CDYW67Kx.mjs → ChallengeDetailComponent-CFgNIy40.mjs} +5 -5
  3. package/ChallengeSliderComponent-DxywQ1Yw.mjs +85 -0
  4. package/{CommonContentComponent-BoHOhCUz.mjs → CommonContentComponent-CZ4R-bl5.mjs} +3 -3
  5. package/{DailyMotion-BIA7SEEW.mjs → DailyMotion-SSHst39J.mjs} +2 -2
  6. package/EngagementHomeComponent-DV2T5lXk.mjs +100 -0
  7. package/{EventDetailComponent-BE6pxr9g.mjs → EventDetailComponent--tfRa3kB.mjs} +5 -5
  8. package/EventList-BgAnQPsa.mjs +38484 -0
  9. package/{EventListComponent-COx6Zawh.mjs → EventListComponent-DafPg6Gl.mjs} +11 -11
  10. package/{Facebook-CqEtMlPA.mjs → Facebook-BW-swjny.mjs} +2 -2
  11. package/{FilePlayer-CjXiDXa3.mjs → FilePlayer-F1fTGtr4.mjs} +2 -2
  12. package/{IndividualChallengeComponent-Bfm95wog.mjs → IndividualChallengeComponent-DtonJm0x.mjs} +7 -7
  13. package/{Kaltura-Cg97C5rG.mjs → Kaltura-DFDmKzKV.mjs} +2 -2
  14. package/{Mixcloud-DAVEJXxZ.mjs → Mixcloud-C26C0LJN.mjs} +2 -2
  15. package/{Mux-BiP0byEL.mjs → Mux-D4AN7rCD.mjs} +2 -2
  16. package/{Preview-I1Ruptf5.mjs → Preview-J16z8kBH.mjs} +1 -1
  17. package/{RecentCarousel-mJDu3ayE.mjs → RecentCarousel-091dBxgP.mjs} +55 -61
  18. package/{Share-B5_YqtYZ.mjs → Share-CpUL9IEm.mjs} +484 -484
  19. package/{SoundCloud-D8kg6Ps6.mjs → SoundCloud-NgtcEElL.mjs} +2 -2
  20. package/{Streamable-BuTsGK-o.mjs → Streamable-BcHnyLZJ.mjs} +2 -2
  21. package/{Twitch-BjkSTgPl.mjs → Twitch-9_6JM-Q5.mjs} +2 -2
  22. package/{Vidyard-DXwWx_I_.mjs → Vidyard-DBy4Ixeu.mjs} +2 -2
  23. package/{Vimeo-Dwl4LnJ3.mjs → Vimeo-DFCi-vSX.mjs} +2 -2
  24. package/{Wistia-adA1p0Vn.mjs → Wistia-emX1iUcE.mjs} +2 -2
  25. package/{YouTube-QRUCVNDZ.mjs → YouTube-DIq2uWeq.mjs} +2 -2
  26. package/index-AEiKTTFl.mjs +19 -0
  27. package/{index-D-3VZIx9.mjs → index-CIVj8pjz.mjs} +3435 -5207
  28. package/index.d.ts +0 -1
  29. package/index.mjs +2 -3
  30. package/lib/prelems/Components/ChallengeSliderComponent.d.ts +2 -0
  31. package/lib/utils/SsoLogin.d.ts +2 -0
  32. package/lib/utils/componentMapping.d.ts +1 -0
  33. package/lib/utils/iframeKeycloak.d.ts +5 -0
  34. package/{mutateApi-xRWUHOcL.mjs → mutateApi-dFWYRnAs.mjs} +18 -12
  35. package/package.json +1 -1
  36. package/EngagementHomeComponent-D3hT_Mb4.mjs +0 -97
  37. package/EventList-D2yqGf8I.mjs +0 -37751
  38. package/index-CsJ4J_3O.mjs +0 -18
  39. /package/lib/utils/{MfeLogin.d.ts → old-SsoLogin.d.ts} +0 -0
package/index.d.ts CHANGED
@@ -1,2 +1 @@
1
- export * from './lib/contentType-wrapper';
2
1
  export * from './lib/prelems-wrapper';
package/index.mjs CHANGED
@@ -1,8 +1,7 @@
1
- import { a6 as t, a7 as m } from "./index-D-3VZIx9.mjs";
1
+ import { a4 as t } from "./index-CIVj8pjz.mjs";
2
2
  import "react/jsx-runtime";
3
3
  import "react";
4
4
  import "react-dom";
5
5
  export {
6
- t as ContentTypeWrapper,
7
- m as PrelemsWrapper
6
+ t as PrelemsWrapper
8
7
  };
@@ -0,0 +1,2 @@
1
+ declare const ChallengeSliderComponent: (props: any) => import("react/jsx-runtime").JSX.Element;
2
+ export default ChallengeSliderComponent;
@@ -0,0 +1,2 @@
1
+ declare const SsoLogin: () => string;
2
+ export default SsoLogin;
@@ -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;
@@ -0,0 +1,5 @@
1
+ declare function KeycloakRender({ apiUrl, onIframeLoad }: {
2
+ apiUrl: any;
3
+ onIframeLoad: any;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ export default KeycloakRender;
@@ -1,11 +1,15 @@
1
- import { b as s } from "./index-D-3VZIx9.mjs";
2
- const u = `mutation ($input: community_userRegistrationInput) {
1
+ import { t as a, a as e } from "./index-CIVj8pjz.mjs";
2
+ const l = (t) => {
3
+ a.success(t);
4
+ }, p = (t) => {
5
+ a.error(t);
6
+ }, o = `mutation ($input: community_userRegistrationInput) {
3
7
  community_userRegistration(input: $input) {
4
8
  id
5
9
  event_id
6
10
  message
7
11
  }
8
- }`, a = `
12
+ }`, u = `
9
13
  mutation ($input: community_joinChallengeInput) {
10
14
  community_joinChallenge(input: $input) {
11
15
  id
@@ -14,13 +18,13 @@ const u = `mutation ($input: community_userRegistrationInput) {
14
18
  message
15
19
  }
16
20
  }
17
- `, o = `
21
+ `, r = `
18
22
  mutation ($input: community_GoalsInput, $user_id: String) {
19
23
  community_setPersonalGoal(input: $input, user_id: $user_id) {
20
24
  message
21
25
  }
22
26
  }
23
- `, r = `
27
+ `, c = `
24
28
  mutation ($input: users_contentRequestModel) {
25
29
  users_saveContent(input: $input) {
26
30
  message
@@ -33,13 +37,15 @@ const u = `mutation ($input: community_userRegistrationInput) {
33
37
  derived_challenge_id
34
38
  }
35
39
  }
36
- `, _ = {
37
- joinEvent: async (t, n, e) => await s(e, n, u, t),
38
- joinChallenge: async (t, n, e) => await s(e, n, a, t),
39
- setPersonalGoal: async (t, n, e) => await s(e, n, o, t),
40
- savePoll: async (t, n, e) => await s(e, n, r, t),
41
- setUpChallenge: async (t, n, e) => await s(e, n, m, t)
40
+ `, g = {
41
+ joinEvent: async (t, n, s) => await e(s, n, o, t),
42
+ joinChallenge: async (t, n, s) => await e(s, n, u, t),
43
+ setPersonalGoal: async (t, n, s) => await e(s, n, r, t),
44
+ savePoll: async (t, n, s) => await e(s, n, c, t),
45
+ setUpChallenge: async (t, n, s) => await e(s, n, m, t)
42
46
  };
43
47
  export {
44
- _ as m
48
+ l as a,
49
+ g as m,
50
+ p as s
45
51
  };
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.11",
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
- };