@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.
- package/BrightcovePlayer-B2Rrij5a.mjs +177 -0
- package/ChallengeDetailComponent-QSflL_pe.mjs +89 -0
- package/CommonContentComponent-D8PuLEle.mjs +78 -0
- package/DailyMotion-Pq0OS_nv.mjs +136 -0
- package/EngagementHomeComponent-CO2rSsxl.mjs +91 -0
- package/EventDetailComponent-DMKfvnfx.mjs +84 -0
- package/EventList-BM7sWeX5.mjs +22503 -0
- package/EventListComponent-SpgarpPb.mjs +82 -0
- package/Facebook-DVoDyq2n.mjs +121 -0
- package/FilePlayer-TBmUK03G.mjs +202 -0
- package/Kaltura-CLaSL9Gw.mjs +121 -0
- package/Mixcloud-BIUEG_vf.mjs +113 -0
- package/Mux-D2H0Zcnl.mjs +165 -0
- package/Preview-CqNeXEJq.mjs +127 -0
- package/RecentCarousel-DsRr-cur.mjs +243 -0
- package/Share-BTinEfR4.mjs +2243 -0
- package/SoundCloud-CL3-ElQD.mjs +123 -0
- package/Streamable-B6PCkCf3.mjs +115 -0
- package/Twitch-T-goXjKL.mjs +117 -0
- package/Vidyard-D8-XmjAR.mjs +113 -0
- package/Vimeo-jej0FY4O.mjs +146 -0
- package/Wistia-CPzm8ZXT.mjs +124 -0
- package/YouTube-VNohNZKu.mjs +176 -0
- package/index-BTIxC-e5.mjs +20 -0
- package/index-Dluh6sv-.mjs +7333 -0
- package/index.d.ts +2 -0
- package/index.mjs +10 -0
- package/lib/Components/EventDetails/EventDetailComponent.d.ts +1 -0
- package/lib/Components/EventDetails/index.d.ts +2 -0
- package/lib/Components/EventList/EventListComponent.d.ts +2 -0
- package/lib/Components/EventList/index.d.ts +2 -0
- package/lib/Components/FallBackPage/FallBackPage.d.ts +2 -0
- package/lib/Components/Loader/Loader.d.ts +2 -0
- package/lib/contentType-wrapper.d.ts +12 -0
- package/lib/contentTypes/Components/ChallengeDetailComponent.d.ts +2 -0
- package/lib/contentTypes/Components/CommonContentComponent.d.ts +4 -0
- package/lib/contentTypes/Components/EventDetailComponent.d.ts +2 -0
- package/lib/contentTypes/index.d.ts +2 -0
- package/lib/prelems/Components/EngagementHomeComponent.d.ts +2 -0
- package/lib/prelems/Components/EventListComponent.d.ts +10 -0
- package/lib/prelems/index.d.ts +2 -0
- package/lib/prelems-wrapper.d.ts +9 -0
- package/lib/services/ApiConfig.d.ts +1 -0
- package/lib/services/fetchApi.d.ts +11 -0
- package/lib/services/fetchQueries.d.ts +7 -0
- package/lib/services/mutateApi.d.ts +7 -0
- package/lib/services/mutateQueries.d.ts +4 -0
- package/lib/utils/Mapping.d.ts +7 -0
- package/lib/utils/componentMapping.d.ts +11 -0
- package/lib/utils/constants.d.ts +10 -0
- package/lib/utils/types.d.ts +32 -0
- package/mutateApi-DOEWbC_3.mjs +37 -0
- package/package.json +25 -0
- package/style.css +1 -0
package/index.d.ts
ADDED
package/index.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const EventDetailComponent: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -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,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,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,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
|
+
}
|