@platform-x/hcltechx-mfe-wrapper 1.0.0

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 (54) hide show
  1. package/BrightcovePlayer-B2Rrij5a.mjs +177 -0
  2. package/ChallengeDetailComponent-QSflL_pe.mjs +89 -0
  3. package/CommonContentComponent-D8PuLEle.mjs +78 -0
  4. package/DailyMotion-Pq0OS_nv.mjs +136 -0
  5. package/EngagementHomeComponent-CO2rSsxl.mjs +91 -0
  6. package/EventDetailComponent-DMKfvnfx.mjs +84 -0
  7. package/EventList-BM7sWeX5.mjs +22503 -0
  8. package/EventListComponent-SpgarpPb.mjs +82 -0
  9. package/Facebook-DVoDyq2n.mjs +121 -0
  10. package/FilePlayer-TBmUK03G.mjs +202 -0
  11. package/Kaltura-CLaSL9Gw.mjs +121 -0
  12. package/Mixcloud-BIUEG_vf.mjs +113 -0
  13. package/Mux-D2H0Zcnl.mjs +165 -0
  14. package/Preview-CqNeXEJq.mjs +127 -0
  15. package/RecentCarousel-DsRr-cur.mjs +243 -0
  16. package/Share-BTinEfR4.mjs +2243 -0
  17. package/SoundCloud-CL3-ElQD.mjs +123 -0
  18. package/Streamable-B6PCkCf3.mjs +115 -0
  19. package/Twitch-T-goXjKL.mjs +117 -0
  20. package/Vidyard-D8-XmjAR.mjs +113 -0
  21. package/Vimeo-jej0FY4O.mjs +146 -0
  22. package/Wistia-CPzm8ZXT.mjs +124 -0
  23. package/YouTube-VNohNZKu.mjs +176 -0
  24. package/index-BTIxC-e5.mjs +20 -0
  25. package/index-Dluh6sv-.mjs +7333 -0
  26. package/index.d.ts +2 -0
  27. package/index.mjs +10 -0
  28. package/lib/Components/EventDetails/EventDetailComponent.d.ts +1 -0
  29. package/lib/Components/EventDetails/index.d.ts +2 -0
  30. package/lib/Components/EventList/EventListComponent.d.ts +2 -0
  31. package/lib/Components/EventList/index.d.ts +2 -0
  32. package/lib/Components/FallBackPage/FallBackPage.d.ts +2 -0
  33. package/lib/Components/Loader/Loader.d.ts +2 -0
  34. package/lib/contentType-wrapper.d.ts +12 -0
  35. package/lib/contentTypes/Components/ChallengeDetailComponent.d.ts +2 -0
  36. package/lib/contentTypes/Components/CommonContentComponent.d.ts +4 -0
  37. package/lib/contentTypes/Components/EventDetailComponent.d.ts +2 -0
  38. package/lib/contentTypes/index.d.ts +2 -0
  39. package/lib/prelems/Components/EngagementHomeComponent.d.ts +2 -0
  40. package/lib/prelems/Components/EventListComponent.d.ts +10 -0
  41. package/lib/prelems/index.d.ts +2 -0
  42. package/lib/prelems-wrapper.d.ts +9 -0
  43. package/lib/services/ApiConfig.d.ts +1 -0
  44. package/lib/services/fetchApi.d.ts +11 -0
  45. package/lib/services/fetchQueries.d.ts +7 -0
  46. package/lib/services/mutateApi.d.ts +7 -0
  47. package/lib/services/mutateQueries.d.ts +4 -0
  48. package/lib/utils/Mapping.d.ts +7 -0
  49. package/lib/utils/componentMapping.d.ts +11 -0
  50. package/lib/utils/constants.d.ts +10 -0
  51. package/lib/utils/types.d.ts +32 -0
  52. package/mutateApi-DOEWbC_3.mjs +37 -0
  53. package/package.json +25 -0
  54. package/style.css +1 -0
package/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from './lib/contentType-wrapper';
2
+ export * from './lib/prelems-wrapper';
package/index.mjs ADDED
@@ -0,0 +1,10 @@
1
+ import { x as a, y as s } from "./index-Dluh6sv-.mjs";
2
+ import "react/jsx-runtime";
3
+ import "react";
4
+ import "react-dom";
5
+ import "@mui/material";
6
+ import "@mui/system";
7
+ export {
8
+ a as ContentTypeWrapper,
9
+ s as PrelemsWrapper
10
+ };
@@ -0,0 +1 @@
1
+ export declare const EventDetailComponent: (props: any) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ declare const EventDetail: (props: any) => import("react/jsx-runtime").JSX.Element;
2
+ export default EventDetail;
@@ -0,0 +1,2 @@
1
+ export declare function EventListComponent(props: any): import("react/jsx-runtime").JSX.Element;
2
+ export default EventListComponent;
@@ -0,0 +1,2 @@
1
+ declare const EventList: (props: any) => import("react/jsx-runtime").JSX.Element;
2
+ export default EventList;
@@ -0,0 +1,2 @@
1
+ declare const FallBackPage: () => import("react/jsx-runtime").JSX.Element;
2
+ export default FallBackPage;
@@ -0,0 +1,2 @@
1
+ declare const Loader: () => import("react/jsx-runtime").JSX.Element;
2
+ export default Loader;
@@ -0,0 +1,12 @@
1
+ import { ContentTypeBaseProps } from './utils/types';
2
+
3
+ export declare function ContentTypeWrapper(props: ContentTypeBaseProps): import("react/jsx-runtime").JSX.Element;
4
+ export declare namespace ContentTypeWrapper {
5
+ var defaultProps: {
6
+ langCode: string;
7
+ filters: {};
8
+ relativePath: string;
9
+ widgetId: string;
10
+ };
11
+ }
12
+ export default ContentTypeWrapper;
@@ -0,0 +1,2 @@
1
+ declare const ChallengeDetailComponent: (props: any) => import("react/jsx-runtime").JSX.Element;
2
+ export default ChallengeDetailComponent;
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+
3
+ declare const _default: React.MemoExoticComponent<(props: any) => import("react/jsx-runtime").JSX.Element>;
4
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const EventDetailComponent: (props: any) => import("react/jsx-runtime").JSX.Element;
2
+ export default EventDetailComponent;
@@ -0,0 +1,2 @@
1
+ declare const ContentType: (props: any) => import("react/jsx-runtime").JSX.Element;
2
+ export default ContentType;
@@ -0,0 +1,2 @@
1
+ export declare const EngagementHomeComponent: (props: any) => import("react/jsx-runtime").JSX.Element;
2
+ export default EngagementHomeComponent;
@@ -0,0 +1,10 @@
1
+ declare const EventListComponent: ({ data, prelemAnalyticsProp, prelemAuthoringHelper, secondaryArgs, userId, filters, relativePath, }: {
2
+ data: any;
3
+ prelemAnalyticsProp: any;
4
+ prelemAuthoringHelper: any;
5
+ secondaryArgs: any;
6
+ userId: any;
7
+ filters: any;
8
+ relativePath: any;
9
+ }) => import("react/jsx-runtime").JSX.Element;
10
+ export default EventListComponent;
@@ -0,0 +1,2 @@
1
+ declare const Prelem: (props: any) => import("react/jsx-runtime").JSX.Element;
2
+ export default Prelem;
@@ -0,0 +1,9 @@
1
+ import { PrelemsWrapperProps } from './utils/types';
2
+
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
+ export default PrelemsWrapper;
@@ -0,0 +1 @@
1
+ export declare const apiConfig: (host: any, lang: any, query: any, variables: any) => Promise<any>;
@@ -0,0 +1,11 @@
1
+ declare const fetchApi: {
2
+ fetchContentSchemaDetail: <T>(input: T, lang: any, host: any) => Promise<any>;
3
+ getContentSchemaEventList: <T_1>(input: T_1, lang: any, host: any) => Promise<any>;
4
+ getContentSchemaList: <T_2>(input: T_2, lang: any, host: any) => Promise<any>;
5
+ fetchPersonalTracker: <T_3>(input: T_3, lang: any, host: any) => Promise<any>;
6
+ getChallengeDetails: <T_4>(input: T_4, lang: any, host: any) => Promise<any>;
7
+ getEventDetails: <T_5>(input: T_5, lang: any, host: any) => Promise<any>;
8
+ getContentTypeDetails: <T_6>(input: T_6, lang: any, host: any) => Promise<any>;
9
+ fetchPoll: <T_7>(input: T_7, lang: any, host: any) => Promise<any>;
10
+ };
11
+ export default fetchApi;
@@ -0,0 +1,7 @@
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
+ export declare const GET_CONTENT_SCHEMA_LIST = "query GET_CONTENT_SCHEMA_LIST($searchTerm: String!, $filter: String!) {\n publish_getContents(searchTerm: $searchTerm, tags: [], filter: $filter, isSuggestive: false)\n }\n";
3
+ 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
+ export declare const GET_CHALLENGE_DETAILS = "query GET_CHALLENGE_DETAILS($challenge_id: String!, $user_id: String) {\n community_challengesDetail(challenge_id: $challenge_id, user_id: $user_id){\n total_participant\n is_joined\n user_steps\n is_device_synced\n }\n }\n";
5
+ export declare const GET_EVENT_DETAILS = "query GET_EVENT_DETAILS($event_id: String!, $user_id: String) {\n community_eventDetails(event_id: $event_id, user_id: $user_id)\n }\n";
6
+ export declare const FETCH_CONTENT_DETAIL = "\n query FETCH_CONTENT_DETAIL($pagePath: String!, $contentType: publish_ContentTypes!) {\n publish_contentDetail(pagePath: $pagePath, contentType: $contentType)\n }\n";
7
+ export declare const FETCH_POLL = "\n query FETCH_POLL($title: String!) {\n users_fetchContent(title: $title) {\n title\n document_path\n options\n status\n total_vote\n start_date\n end_date\n created_by\n updated_by\n createdAt\n updatedAt\n }\n }\n";
@@ -0,0 +1,7 @@
1
+ declare const mutateApi: {
2
+ joinEvent: <T>(input: T, lang: any, host: any) => Promise<any>;
3
+ joinChallenge: <T_1>(input: T_1, lang: any, host: any) => Promise<any>;
4
+ setPersonalGoal: <T_2>(input: T_2, lang: any, host: any) => Promise<any>;
5
+ savePoll: <T_3>(input: T_3, lang: any, host: any) => Promise<any>;
6
+ };
7
+ export default mutateApi;
@@ -0,0 +1,4 @@
1
+ export declare const JOIN_EVENT = "mutation ($input: community_userRegistrationInput) {\n community_userRegistration(input: $input) {\n id\n event_id\n message\n }\n }";
2
+ export declare const JOIN_CHALLENGE = "\n mutation ($input: community_joinChallengeInput) {\n community_joinChallenge(input: $input) {\n id\n user_id\n challenge_id\n message\n }\n }\n";
3
+ export declare const SET_PERSONAL_GOAL = "\n mutation ($input: community_GoalsInput, $user_id: String) {\n community_setPersonalGoal(input: $input, user_id: $user_id) {\n message\n }\n }\n";
4
+ export declare const SAVE_POLL = "\n mutation ($input: users_contentRequestModel) {\n users_saveContent(input: $input) {\n message\n }\n }\n";
@@ -0,0 +1,7 @@
1
+ export declare const Mapping: {
2
+ Article: string;
3
+ Quiz: string;
4
+ Poll: string;
5
+ Event: string;
6
+ Vod: string;
7
+ };
@@ -0,0 +1,11 @@
1
+ declare const Components: {
2
+ eventList: any;
3
+ engagementHome: any;
4
+ challenges: any;
5
+ wellnessevent: any;
6
+ Quiz: any;
7
+ Poll: any;
8
+ Article: any;
9
+ VOD: any;
10
+ };
11
+ export default Components;
@@ -0,0 +1,10 @@
1
+ export declare const CONSTANTS: {
2
+ eventList: string;
3
+ challenge: string;
4
+ wellnessevent: string;
5
+ gcpUrl: string;
6
+ bucketName: string;
7
+ engagementHome: string;
8
+ host: string;
9
+ graphqlEndpoint: string;
10
+ };
@@ -0,0 +1,32 @@
1
+ type PrelemsWrapperBaseProps = {
2
+ cugId: string;
3
+ uhId: string;
4
+ langCode?: string;
5
+ };
6
+ type PrelemsWrapperWithRelativePath = PrelemsWrapperBaseProps & {
7
+ contentType: string;
8
+ relativePath: string;
9
+ filters?: never;
10
+ };
11
+ type PrelemsWrapperWithFilters = PrelemsWrapperBaseProps & {
12
+ contentType: string;
13
+ filters: any;
14
+ relativePath?: never;
15
+ };
16
+ type PrelemsWithOutWidgetId = PrelemsWrapperBaseProps & {
17
+ contentType: string;
18
+ widgetId?: never;
19
+ relativePath?: never;
20
+ filters?: never;
21
+ };
22
+ export type PrelemsWrapperProps = PrelemsWrapperWithRelativePath | PrelemsWrapperWithFilters | PrelemsWithOutWidgetId;
23
+ export type ContentTypeBaseProps = {
24
+ cugId: string;
25
+ uhId: string;
26
+ relativePath?: string;
27
+ langCode?: string;
28
+ filters?: any;
29
+ contentType: string;
30
+ widgetId: string;
31
+ };
32
+ export {};
@@ -0,0 +1,37 @@
1
+ import { b as s } from "./index-Dluh6sv-.mjs";
2
+ const u = `mutation ($input: community_userRegistrationInput) {
3
+ community_userRegistration(input: $input) {
4
+ id
5
+ event_id
6
+ message
7
+ }
8
+ }`, o = `
9
+ mutation ($input: community_joinChallengeInput) {
10
+ community_joinChallenge(input: $input) {
11
+ id
12
+ user_id
13
+ challenge_id
14
+ message
15
+ }
16
+ }
17
+ `, a = `
18
+ mutation ($input: community_GoalsInput, $user_id: String) {
19
+ community_setPersonalGoal(input: $input, user_id: $user_id) {
20
+ message
21
+ }
22
+ }
23
+ `, r = `
24
+ mutation ($input: users_contentRequestModel) {
25
+ users_saveContent(input: $input) {
26
+ message
27
+ }
28
+ }
29
+ `, c = {
30
+ joinEvent: async (t, n, e) => await s(e, n, u, t),
31
+ joinChallenge: async (t, n, e) => await s(e, n, o, t),
32
+ setPersonalGoal: async (t, n, e) => await s(e, n, a, t),
33
+ savePoll: async (t, n, e) => await s(e, n, r, t)
34
+ };
35
+ export {
36
+ c as m
37
+ };
package/package.json ADDED
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "@platform-x/hcltechx-mfe-wrapper",
3
+ "version": "1.0.0",
4
+ "main": "./index.js",
5
+ "types": "./index.d.ts",
6
+ "exports": {
7
+ ".": {
8
+ "import": "./index.mjs",
9
+ "require": "./index.js"
10
+ }
11
+ },
12
+ "peerDependencies": {
13
+ "react": "^18.0.0",
14
+ "react-dom": "^18.0.0",
15
+ "@emotion/react": "^11.11.1",
16
+ "@emotion/styled": "^11.11.0",
17
+ "@mui/material": "5.9.2",
18
+ "@mui/styles": "5.9.2",
19
+ "@mui/system": "5.9.2"
20
+ },
21
+ "devDependencies": {
22
+ "@types/react": "^18.3.1",
23
+ "@types/react-dom": "^18.13.1"
24
+ }
25
+ }