@platform-x/hcltechx-mfe-wrapper 2.0.24 → 2.0.26

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-5gQ7rM06.mjs +232 -0
  2. package/{ArticleVodListComponent-KJLwQeNn.mjs → ArticleVodListComponent-HdtTTveS.mjs} +9 -7
  3. package/{ChallengeDetailComponent-BdNfeoYu.mjs → ChallengeDetailComponent-C8SVL59u.mjs} +7 -7
  4. package/{ChallengeSliderComponent-QKacG4P3.mjs → ChallengeSliderComponent-CpVJwnQB.mjs} +24 -24
  5. package/{CommonContentComponent-eOsD5rsV.mjs → CommonContentComponent-Bc_dndZE.mjs} +3 -3
  6. package/{DailyMotion-5et-YDe4.mjs → DailyMotion-B_p-K_pC.mjs} +4 -4
  7. package/EngagementHomeComponent-BYn8j9dV.mjs +115 -0
  8. package/{EventDetailComponent-CuM3PIlm.mjs → EventDetailComponent-wH8YolRp.mjs} +7 -7
  9. package/EventList-XrEw9vjE.mjs +798 -0
  10. package/{EventListComponent-5qN3pJO0.mjs → EventListComponent-RquJUzmf.mjs} +41 -38
  11. package/ExperienceZone-DL66953J.mjs +151 -0
  12. package/{ExperienceZoneComponent-DNXj5_84.mjs → ExperienceZoneComponent-BpMPaCen.mjs} +22 -21
  13. package/{Facebook-DMw3YLYg.mjs → Facebook-pGR2O4G4.mjs} +7 -7
  14. package/{FilePlayer-Dmbh4i62.mjs → FilePlayer-m37GIuz9.mjs} +5 -5
  15. package/FilterModal-OlKd6xsx.mjs +175 -0
  16. package/{IndividualChallengeComponent-BKWmspmj.mjs → IndividualChallengeComponent-CjuYQx9h.mjs} +3 -3
  17. package/{Kaltura-BMoxEwdo.mjs → Kaltura--1WMSsQ4.mjs} +5 -5
  18. package/{Mixcloud-BSxhcY_p.mjs → Mixcloud-BDSHFA2c.mjs} +5 -5
  19. package/{Mux-DjGQNi70.mjs → Mux-C1zNcmt4.mjs} +2 -2
  20. package/{PageComponent-LnkM71jR.mjs → PageComponent-c9sz3vWl.mjs} +2 -2
  21. package/{Preview-B6tVQzVM.mjs → Preview-CFUgwSmK.mjs} +1 -1
  22. package/{RecentCarousel-C-rH3VJI.mjs → RecentCarousel-BnlqAIIf.mjs} +2 -2
  23. package/{Share-BfUlzUYM.mjs → Share-Bt-ieU7W.mjs} +2 -2
  24. package/{SoundCloud-BSQ-LvsC.mjs → SoundCloud-BdDrCmjd.mjs} +4 -4
  25. package/{Streamable-tZtI9KeR.mjs → Streamable-BRjdv982.mjs} +7 -7
  26. package/{ToggleButton-wI9eTvi7.mjs → ToggleButton-mnzNUTXI.mjs} +67445 -68282
  27. package/{Twitch-C8jXISjV.mjs → Twitch-Bp8_il-u.mjs} +6 -6
  28. package/{Vidyard-CfhT9bYd.mjs → Vidyard-1Y7pF_Hp.mjs} +11 -11
  29. package/{Vimeo-CvIzKfKx.mjs → Vimeo-BHrwk_Is.mjs} +2 -2
  30. package/{Wistia-Bz8jHnQA.mjs → Wistia-BV0cywtK.mjs} +2 -2
  31. package/{YouTube-Bf5SdCNc.mjs → YouTube-DSwL7w6j.mjs} +7 -7
  32. package/{index-CVc7TBbR.mjs → index-Cuv-gW_C.mjs} +38 -35
  33. package/{index-DzGdr2yi.mjs → index-DkY5Qyna.mjs} +487 -491
  34. package/index.mjs +1 -1
  35. package/lib/prelems/Components/EventListComponent.d.ts +2 -1
  36. package/lib/prelems-wrapper.d.ts +0 -5
  37. package/{mutateApi-BC1fHetq.mjs → mutateApi-OqLf0bkL.mjs} +1 -1
  38. package/package.json +1 -1
  39. package/EngagementHomeComponent-HFo-BBmN.mjs +0 -116
  40. package/ExperienceZone-EIO637tY.mjs +0 -86
package/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { ab as t, ac as m } from "./index-DzGdr2yi.mjs";
1
+ import { ab as t, ac as m } from "./index-DkY5Qyna.mjs";
2
2
  import "react/jsx-runtime";
3
3
  import "react";
4
4
  import "react-dom";
@@ -1,4 +1,4 @@
1
- declare const EventListComponent: ({ data, prelemAnalyticsProp, prelemAuthoringHelper, secondaryArgs, userId, filters, relativePath, }: {
1
+ declare const EventListComponent: ({ data, prelemAnalyticsProp, prelemAuthoringHelper, secondaryArgs, userId, filters, relativePath, isLoading, }: {
2
2
  data: any;
3
3
  prelemAnalyticsProp: any;
4
4
  prelemAuthoringHelper: any;
@@ -6,5 +6,6 @@ declare const EventListComponent: ({ data, prelemAnalyticsProp, prelemAuthoringH
6
6
  userId: any;
7
7
  filters: any;
8
8
  relativePath: any;
9
+ isLoading: any;
9
10
  }) => import("react/jsx-runtime").JSX.Element;
10
11
  export default EventListComponent;
@@ -1,9 +1,4 @@
1
1
  import { PrelemsWrapperProps } from './utils/types';
2
2
 
3
3
  export declare function PrelemsWrapper(props: PrelemsWrapperProps): import("react/jsx-runtime").JSX.Element;
4
- export declare namespace PrelemsWrapper {
5
- var defaultProps: {
6
- langCode: string;
7
- };
8
- }
9
4
  export default PrelemsWrapper;
@@ -1,4 +1,4 @@
1
- import { b as s } from "./index-DzGdr2yi.mjs";
1
+ import { b as s } from "./index-DkY5Qyna.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.24",
3
+ "version": "2.0.26",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -1,116 +0,0 @@
1
- import { jsx as ee } from "react/jsx-runtime";
2
- import { f as te, a as oe } from "./ToggleButton-wI9eTvi7.mjs";
3
- import { useState as o, useEffect as ae } from "react";
4
- import { C as ne, f as k, s as i, a as se } from "./index-DzGdr2yi.mjs";
5
- import { m as re } from "./mutateApi-BC1fHetq.mjs";
6
- import "react-dom";
7
- const A = async (D, d, I, u = "", t = "wellnessevent") => {
8
- var g, h, n, s;
9
- const a = await k.getContentSchemaList(
10
- {
11
- searchTerm: u,
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
- D || "en",
16
- d
17
- );
18
- (h = (g = a == null ? void 0 : a.data) == null ? void 0 : g.publish_getContents) != null && h.records ? I((s = (n = a == null ? void 0 : a.data) == null ? void 0 : n.publish_getContents) == null ? void 0 : s.records) : console.error("Something went wrong !");
19
- }, he = (D) => {
20
- const {
21
- secondaryArgs: d,
22
- prelemAnalyticsProp: I,
23
- prelemAuthoringHelper: u,
24
- userId: t,
25
- filters: a,
26
- relativePath: g = "",
27
- articleData: h
28
- } = D || {}, {
29
- prelemBaseEndpoint: { language: n, site_host: s }
30
- } = d, [C, P] = o(!1), [L, y] = o({}), [T, p] = o({}), [E, G] = o(0), f = localStorage.getItem("userId") || t, [b, H] = o([]), [x, M] = o([]), [N, U] = o({}), [j, B] = o({}), [O, W] = o({}), [q, z] = o({}), S = async (v, c, w) => {
31
- var l, m;
32
- if (!f) {
33
- i("User ID is not available. Please log in.");
34
- return;
35
- }
36
- try {
37
- const r = {
38
- input: { activity_type: w, target: v.toString(), action: c },
39
- user_id: f
40
- }, e = await re.setPersonalGoal(r, n, s);
41
- ((m = (l = e == null ? void 0 : e.data) == null ? void 0 : l.community_setPersonalGoal) == null ? void 0 : m.message) === "Created Successfully!!!" && c === "goal" ? se("Goal updated successfully!") : c !== "entry" && console.error("Something went wrong !");
42
- } catch (r) {
43
- console.error("Error in update goal API:", r), i("Something went wrong, please try after sometime !");
44
- }
45
- }, _ = async (v = "") => {
46
- var c, w, l, m;
47
- if (!f) {
48
- i("User ID is not available. Please log in.");
49
- return;
50
- }
51
- try {
52
- P(!0);
53
- const r = {
54
- date: v,
55
- user_id: f
56
- }, e = await k.fetchPersonalTracker(r, n, s);
57
- if (((c = e == null ? void 0 : e.errors) == null ? void 0 : c.length) > 0)
58
- i((w = e == null ? void 0 : e.errors[0]) == null ? void 0 : w.message);
59
- else if ((l = e == null ? void 0 : e.data) != null && l.community_fetchPersonalTracker) {
60
- const {
61
- water_intake: K,
62
- steps: Q,
63
- streak_count: X,
64
- individual_challenge_info: Y,
65
- calories: Z,
66
- distance: $,
67
- device_info: R,
68
- individual_challenge_detail: V
69
- } = (m = e == null ? void 0 : e.data) == null ? void 0 : m.community_fetchPersonalTracker;
70
- y(K), p(Q), G(X), U(Y), B({ calories: Z, distance: $ }), W(R), z(V);
71
- } else
72
- console.error("GetPersonalData API failed"), i("GetPersonalData API failed");
73
- } catch (r) {
74
- console.error("Error in GetPersonalData API:", r), i("Error in GetPersonalData API"), y({}), p({});
75
- } finally {
76
- P(!1);
77
- }
78
- }, F = {
79
- waterIntakeData: L,
80
- loading: C,
81
- fetchPersonalData: _,
82
- updateGoals: S
83
- }, J = {
84
- stepsData: T,
85
- loading: C,
86
- updateGoals: S
87
- };
88
- return ae(() => {
89
- _(te(/* @__PURE__ */ new Date(), "yyyy-MM-dd")), A(n, s, H, "", "challenges"), A(n, s, M, "", "wellnessevent");
90
- }, []), /* @__PURE__ */ ee(
91
- oe,
92
- {
93
- analytics: I,
94
- authoringHelper: u,
95
- secondaryArgs: d,
96
- waterIntakeDetails: F,
97
- stepsDetails: J,
98
- streaksCount: E,
99
- data: b,
100
- eventData: x,
101
- articleVodData: h,
102
- filters: a,
103
- relativePath: g,
104
- userId: t,
105
- deviceInfo: O,
106
- individualChallengeInfo: N,
107
- commonInfo: j,
108
- individualChallengeDetail: q,
109
- constants: ne
110
- }
111
- );
112
- };
113
- export {
114
- he as EngagementHomeComponent,
115
- he as default
116
- };
@@ -1,86 +0,0 @@
1
- import { jsx as s, jsxs as i } from "react/jsx-runtime";
2
- import { aq as S, ar as m, M as C, B as l, T, k as f, $ as k, as as v, at as x, v as B, au as N } from "./ToggleButton-wI9eTvi7.mjs";
3
- const E = ({
4
- content: r,
5
- analytics: c,
6
- authoringHelper: a,
7
- secondaryArgs: o,
8
- filters: n,
9
- eventData: d
10
- }) => {
11
- var t;
12
- S(c, r, o);
13
- const p = m(), w = (e) => {
14
- B(e, n, o);
15
- }, h = (e) => {
16
- N(n, e, o);
17
- }, u = { ...{
18
- slidesToShow: 4,
19
- slidesToScroll: 4,
20
- autoPlay: !0,
21
- dots: !1,
22
- arrow: !0,
23
- infinite: !1,
24
- touchMove: !1,
25
- responsive: [
26
- {
27
- breakpoint: 1024,
28
- settings: {
29
- slidesToShow: 3,
30
- slidesToScroll: 3
31
- }
32
- },
33
- {
34
- breakpoint: 900,
35
- settings: {
36
- slidesToShow: 3,
37
- slidesToScroll: 3
38
- }
39
- },
40
- {
41
- breakpoint: 600,
42
- settings: {
43
- slidesToShow: 2,
44
- slidesToScroll: 2,
45
- infinite: !0,
46
- dots: !0,
47
- arrow: !1,
48
- touchMove: !0
49
- }
50
- }
51
- ]
52
- } };
53
- return /* @__PURE__ */ s(
54
- "div",
55
- {
56
- ref: a == null ? void 0 : a.innerRef,
57
- className: `${p.ExperienceZoneWrapper} PX-ExperienceZoneBox`,
58
- children: /* @__PURE__ */ s(C, { className: "prelem-py", children: /* @__PURE__ */ i(l, { children: [
59
- /* @__PURE__ */ i(l, { className: "PX-headerWrapper", children: [
60
- /* @__PURE__ */ s(T, { variant: "h3bold", children: "The Zen Zone" }),
61
- /* @__PURE__ */ s(
62
- f,
63
- {
64
- variant: "secondaryButton3",
65
- className: "viewAllCta",
66
- onClick: () => h("eventList"),
67
- children: "View All"
68
- }
69
- )
70
- ] }),
71
- /* @__PURE__ */ s(k, { ...u, className: "PX-arrowDotSlider", children: (t = v(d, "start_date", "end_date", !1)) == null ? void 0 : t.map((e) => /* @__PURE__ */ s(
72
- x,
73
- {
74
- content: e,
75
- secondaryArgs: o,
76
- onCardClick: w
77
- },
78
- e
79
- )) })
80
- ] }) })
81
- }
82
- );
83
- };
84
- export {
85
- E
86
- };