@coorpacademy/components 11.32.13 → 11.32.15-alpha.13
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/es/atom/button-link/style.css +1 -0
- package/es/atom/select/index.d.ts.map +1 -1
- package/es/atom/select/index.js +2 -1
- package/es/atom/select/index.js.map +1 -1
- package/es/atom/select/style.css +23 -0
- package/es/molecule/cm-popin/types.d.ts +3 -0
- package/es/molecule/cm-popin/types.d.ts.map +1 -1
- package/es/molecule/dashboard/cards-list/index.d.ts +4 -1
- package/es/molecule/dashboard/cards-list/index.d.ts.map +1 -1
- package/es/molecule/dashboard/cards-list/index.js +8 -3
- package/es/molecule/dashboard/cards-list/index.js.map +1 -1
- package/es/molecule/dashboard/cards-list/prop-types.d.ts +3 -1
- package/es/molecule/dashboard/cards-list/prop-types.d.ts.map +1 -1
- package/es/molecule/dashboard/cards-list/prop-types.js.map +1 -1
- package/es/molecule/dashboard/cards-list/style.css +4 -0
- package/es/molecule/discipline-associated-skills/index.d.ts +1 -0
- package/es/molecule/discipline-associated-skills/index.js +2 -1
- package/es/molecule/discipline-associated-skills/index.js.map +1 -1
- package/es/molecule/discipline-associated-skills/style.css +16 -3
- package/es/molecule/learner-skill-card/index.js +2 -2
- package/es/molecule/learner-skill-card/index.js.map +1 -1
- package/es/organism/cards-grid/index.d.ts +3 -0
- package/es/organism/cards-grid/index.js +4 -1
- package/es/organism/cards-grid/index.js.map +1 -1
- package/es/organism/cards-grid/style.css +0 -1
- package/es/template/app-player/loading/index.d.ts +3 -0
- package/es/template/app-player/player/index.d.ts +6 -0
- package/es/template/app-player/player/slides/index.d.ts +3 -0
- package/es/template/app-player/player/slides/index.d.ts.map +1 -1
- package/es/template/app-player/popin-correction/index.d.ts +3 -0
- package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/es/template/app-player/popin-end/index.d.ts +7 -1
- package/es/template/app-player/popin-end/summary.d.ts +4 -1
- package/es/template/app-review/index.d.ts +3 -0
- package/es/template/app-review/index.d.ts.map +1 -1
- package/es/template/app-review/player/prop-types.d.ts +3 -0
- package/es/template/app-review/player/prop-types.d.ts.map +1 -1
- package/es/template/app-review/prop-types.d.ts +3 -0
- package/es/template/app-review/prop-types.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.d.ts +3 -0
- package/es/template/common/authors/index.d.ts +3 -0
- package/es/template/common/authors/index.d.ts.map +1 -1
- package/es/template/common/dashboard/index.d.ts +6 -0
- package/es/template/common/discipline/index.d.ts +1 -0
- package/es/template/common/discipline/index.js +1 -0
- package/es/template/common/discipline/index.js.map +1 -1
- package/es/template/common/search-page/index.d.ts +10 -1
- package/es/template/external-course/index.d.ts +3 -0
- package/es/template/my-learning/index.d.ts +3 -0
- package/es/template/my-learning/index.d.ts.map +1 -1
- package/es/template/my-learning/index.js +25 -8
- package/es/template/my-learning/index.js.map +1 -1
- package/es/template/skill-detail/all-courses.css +128 -0
- package/es/template/skill-detail/all-courses.d.ts +80 -0
- package/es/template/skill-detail/all-courses.d.ts.map +1 -0
- package/es/template/skill-detail/all-courses.js +195 -0
- package/es/template/skill-detail/all-courses.js.map +1 -0
- package/es/template/skill-detail/continue-learning.css +16 -0
- package/es/template/skill-detail/continue-learning.d.ts +39 -0
- package/es/template/skill-detail/continue-learning.d.ts.map +1 -0
- package/es/template/skill-detail/continue-learning.js +42 -0
- package/es/template/skill-detail/continue-learning.js.map +1 -0
- package/es/template/skill-detail/index.d.ts +101 -0
- package/es/template/skill-detail/index.d.ts.map +1 -0
- package/es/template/skill-detail/index.js +228 -0
- package/es/template/skill-detail/index.js.map +1 -0
- package/es/template/skill-detail/style.css +174 -0
- package/es/template/teams-dashboard/index.d.ts +4 -1
- package/lib/atom/button-link/style.css +1 -0
- package/lib/atom/select/index.d.ts.map +1 -1
- package/lib/atom/select/index.js +2 -1
- package/lib/atom/select/index.js.map +1 -1
- package/lib/atom/select/style.css +23 -0
- package/lib/molecule/cm-popin/types.d.ts +3 -0
- package/lib/molecule/cm-popin/types.d.ts.map +1 -1
- package/lib/molecule/dashboard/cards-list/index.d.ts +4 -1
- package/lib/molecule/dashboard/cards-list/index.d.ts.map +1 -1
- package/lib/molecule/dashboard/cards-list/index.js +8 -4
- package/lib/molecule/dashboard/cards-list/index.js.map +1 -1
- package/lib/molecule/dashboard/cards-list/prop-types.d.ts +3 -1
- package/lib/molecule/dashboard/cards-list/prop-types.d.ts.map +1 -1
- package/lib/molecule/dashboard/cards-list/prop-types.js.map +1 -1
- package/lib/molecule/dashboard/cards-list/style.css +4 -0
- package/lib/molecule/discipline-associated-skills/index.d.ts +1 -0
- package/lib/molecule/discipline-associated-skills/index.js +2 -1
- package/lib/molecule/discipline-associated-skills/index.js.map +1 -1
- package/lib/molecule/discipline-associated-skills/style.css +16 -3
- package/lib/molecule/learner-skill-card/index.js +2 -2
- package/lib/molecule/learner-skill-card/index.js.map +1 -1
- package/lib/organism/cards-grid/index.d.ts +3 -0
- package/lib/organism/cards-grid/index.js +4 -1
- package/lib/organism/cards-grid/index.js.map +1 -1
- package/lib/organism/cards-grid/style.css +0 -1
- package/lib/template/app-player/loading/index.d.ts +3 -0
- package/lib/template/app-player/player/index.d.ts +6 -0
- package/lib/template/app-player/player/slides/index.d.ts +3 -0
- package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-correction/index.d.ts +3 -0
- package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-end/index.d.ts +7 -1
- package/lib/template/app-player/popin-end/summary.d.ts +4 -1
- package/lib/template/app-review/index.d.ts +3 -0
- package/lib/template/app-review/index.d.ts.map +1 -1
- package/lib/template/app-review/player/prop-types.d.ts +3 -0
- package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
- package/lib/template/app-review/prop-types.d.ts +3 -0
- package/lib/template/app-review/prop-types.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.d.ts +3 -0
- package/lib/template/common/authors/index.d.ts +3 -0
- package/lib/template/common/authors/index.d.ts.map +1 -1
- package/lib/template/common/dashboard/index.d.ts +6 -0
- package/lib/template/common/discipline/index.d.ts +1 -0
- package/lib/template/common/discipline/index.js +1 -0
- package/lib/template/common/discipline/index.js.map +1 -1
- package/lib/template/common/search-page/index.d.ts +10 -1
- package/lib/template/external-course/index.d.ts +3 -0
- package/lib/template/my-learning/index.d.ts +3 -0
- package/lib/template/my-learning/index.d.ts.map +1 -1
- package/lib/template/my-learning/index.js +25 -8
- package/lib/template/my-learning/index.js.map +1 -1
- package/lib/template/skill-detail/all-courses.css +128 -0
- package/lib/template/skill-detail/all-courses.d.ts +80 -0
- package/lib/template/skill-detail/all-courses.d.ts.map +1 -0
- package/lib/template/skill-detail/all-courses.js +214 -0
- package/lib/template/skill-detail/all-courses.js.map +1 -0
- package/lib/template/skill-detail/continue-learning.css +16 -0
- package/lib/template/skill-detail/continue-learning.d.ts +39 -0
- package/lib/template/skill-detail/continue-learning.d.ts.map +1 -0
- package/lib/template/skill-detail/continue-learning.js +59 -0
- package/lib/template/skill-detail/continue-learning.js.map +1 -0
- package/lib/template/skill-detail/index.d.ts +101 -0
- package/lib/template/skill-detail/index.d.ts.map +1 -0
- package/lib/template/skill-detail/index.js +250 -0
- package/lib/template/skill-detail/index.js.map +1 -0
- package/lib/template/skill-detail/style.css +174 -0
- package/lib/template/teams-dashboard/index.d.ts +4 -1
- package/locales/en/global.json +8 -0
- package/package.json +2 -2
|
@@ -8,6 +8,7 @@ import style from './style.css';
|
|
|
8
8
|
function CardsGrid(props) {
|
|
9
9
|
const {
|
|
10
10
|
list = [],
|
|
11
|
+
customStyle = {},
|
|
11
12
|
loading = false
|
|
12
13
|
} = props;
|
|
13
14
|
const loader = loading ? /*#__PURE__*/React.createElement("div", {
|
|
@@ -23,12 +24,14 @@ function CardsGrid(props) {
|
|
|
23
24
|
}, list);
|
|
24
25
|
|
|
25
26
|
return /*#__PURE__*/React.createElement("div", {
|
|
26
|
-
className: style.default
|
|
27
|
+
className: style.default,
|
|
28
|
+
style: customStyle
|
|
27
29
|
}, cards, loader);
|
|
28
30
|
}
|
|
29
31
|
|
|
30
32
|
CardsGrid.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
31
33
|
list: PropTypes.arrayOf(PropTypes.shape(Card.propTypes)),
|
|
34
|
+
customStyle: PropTypes.objectOf(PropTypes.string),
|
|
32
35
|
loading: PropTypes.bool
|
|
33
36
|
} : {};
|
|
34
37
|
export default CardsGrid;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","PropTypes","Card","Loader","style","CardsGrid","props","list","loading","loader","cards","cardProps","card","key","default","propTypes","arrayOf","shape","bool"],"sources":["../../../src/organism/cards-grid/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {map} from 'lodash/fp';\nimport Card from '../../molecule/card';\nimport Loader from '../../atom/loader';\nimport style from './style.css';\n\nfunction CardsGrid(props) {\n const {list = [], loading = false} = props;\n\n const loader = loading ? (\n <div className={style.loader}>\n <Loader />\n </div>\n ) : null;\n\n const cards = map(cardProps => {\n return (\n <div data-name=\"cardGrid\" className={style.card} key={cardProps.key}>\n <Card {...cardProps} />\n </div>\n );\n }, list);\n\n return (\n <div className={style.default}>\n {cards}\n {loader}\n </div>\n );\n}\n\nCardsGrid.propTypes = {\n list: PropTypes.arrayOf(PropTypes.shape(Card.propTypes)),\n loading: PropTypes.bool\n};\n\nexport default CardsGrid;\n"],"mappings":";AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,OAAOC,IAAP,MAAiB,qBAAjB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,SAASC,SAAT,CAAmBC,KAAnB,EAA0B;EACxB,MAAM;IAACC,IAAI,GAAG,EAAR;IAAYC,OAAO,GAAG;
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","PropTypes","Card","Loader","style","CardsGrid","props","list","customStyle","loading","loader","cards","cardProps","card","key","default","propTypes","arrayOf","shape","objectOf","string","bool"],"sources":["../../../src/organism/cards-grid/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {map} from 'lodash/fp';\nimport Card from '../../molecule/card';\nimport Loader from '../../atom/loader';\nimport style from './style.css';\n\nfunction CardsGrid(props) {\n const {list = [], customStyle = {}, loading = false} = props;\n\n const loader = loading ? (\n <div className={style.loader}>\n <Loader />\n </div>\n ) : null;\n\n const cards = map(cardProps => {\n return (\n <div data-name=\"cardGrid\" className={style.card} key={cardProps.key}>\n <Card {...cardProps} />\n </div>\n );\n }, list);\n\n return (\n <div className={style.default} style={customStyle}>\n {cards}\n {loader}\n </div>\n );\n}\n\nCardsGrid.propTypes = {\n list: PropTypes.arrayOf(PropTypes.shape(Card.propTypes)),\n customStyle: PropTypes.objectOf(PropTypes.string),\n loading: PropTypes.bool\n};\n\nexport default CardsGrid;\n"],"mappings":";AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,OAAOC,IAAP,MAAiB,qBAAjB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,SAASC,SAAT,CAAmBC,KAAnB,EAA0B;EACxB,MAAM;IAACC,IAAI,GAAG,EAAR;IAAYC,WAAW,GAAG,EAA1B;IAA8BC,OAAO,GAAG;EAAxC,IAAiDH,KAAvD;EAEA,MAAMI,MAAM,GAAGD,OAAO,gBACpB;IAAK,SAAS,EAAEL,KAAK,CAACM;EAAtB,gBACE,oBAAC,MAAD,OADF,CADoB,GAIlB,IAJJ;;EAMA,MAAMC,KAAK,GAAG,KAAIC,SAAS,IAAI;IAC7B,oBACE;MAAK,aAAU,UAAf;MAA0B,SAAS,EAAER,KAAK,CAACS,IAA3C;MAAiD,GAAG,EAAED,SAAS,CAACE;IAAhE,gBACE,oBAAC,IAAD,EAAUF,SAAV,CADF,CADF;EAKD,CANa,EAMXL,IANW,CAAd;;EAQA,oBACE;IAAK,SAAS,EAAEH,KAAK,CAACW,OAAtB;IAA+B,KAAK,EAAEP;EAAtC,GACGG,KADH,EAEGD,MAFH,CADF;AAMD;;AAEDL,SAAS,CAACW,SAAV,2CAAsB;EACpBT,IAAI,EAAEN,SAAS,CAACgB,OAAV,CAAkBhB,SAAS,CAACiB,KAAV,CAAgBhB,IAAI,CAACc,SAArB,CAAlB,CADc;EAEpBR,WAAW,EAAEP,SAAS,CAACkB,QAAV,CAAmBlB,SAAS,CAACmB,MAA7B,CAFO;EAGpBX,OAAO,EAAER,SAAS,CAACoB;AAHC,CAAtB;AAMA,eAAehB,SAAf"}
|
|
@@ -75,6 +75,9 @@ declare namespace PlayerLoading {
|
|
|
75
75
|
type: PropTypes.Requireable<string>;
|
|
76
76
|
list: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
77
77
|
list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
|
|
78
|
+
customStyle: PropTypes.Requireable<{
|
|
79
|
+
[x: string]: string | null | undefined;
|
|
80
|
+
}>;
|
|
78
81
|
loading: PropTypes.Requireable<boolean>;
|
|
79
82
|
}> | PropTypes.InferProps<{
|
|
80
83
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -126,6 +126,9 @@ declare namespace SlidePlayer {
|
|
|
126
126
|
type: PropTypes.Requireable<string>;
|
|
127
127
|
list: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
128
128
|
list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
|
|
129
|
+
customStyle: PropTypes.Requireable<{
|
|
130
|
+
[x: string]: string | null | undefined;
|
|
131
|
+
}>;
|
|
129
132
|
loading: PropTypes.Requireable<boolean>;
|
|
130
133
|
}> | PropTypes.InferProps<{
|
|
131
134
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -395,6 +398,9 @@ declare namespace SlidePlayer {
|
|
|
395
398
|
type: PropTypes.Requireable<string>;
|
|
396
399
|
list: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
397
400
|
list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
|
|
401
|
+
customStyle: PropTypes.Requireable<{
|
|
402
|
+
[x: string]: string | null | undefined;
|
|
403
|
+
}>;
|
|
398
404
|
loading: PropTypes.Requireable<boolean>;
|
|
399
405
|
}> | PropTypes.InferProps<{
|
|
400
406
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -132,6 +132,9 @@ declare namespace SlidesPlayer {
|
|
|
132
132
|
type: PropTypes.Requireable<string>;
|
|
133
133
|
list: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
134
134
|
list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
|
|
135
|
+
customStyle: PropTypes.Requireable<{
|
|
136
|
+
[x: string]: string | null | undefined;
|
|
137
|
+
}>;
|
|
135
138
|
loading: PropTypes.Requireable<boolean>;
|
|
136
139
|
}> | PropTypes.InferProps<{
|
|
137
140
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/template/app-player/player/slides/index.js"],"names":[],"mappings":";AA+aA,qEAkBC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/template/app-player/player/slides/index.js"],"names":[],"mappings":";AA+aA,qEAkBC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA1ID;;uBAyBC;;;;;;;;;;;;;;;;;;;;;;;;;AArPD;;;gBAaC;;;;;;;;;;;;;AAyDD;;;;gBAEC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAlHD,oEAQC;;;;;;;;;AAgND;;gBAiBC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA/GD,qEAaC"}
|
|
@@ -160,6 +160,9 @@ declare class PopinCorrection extends React.Component<any, any, any> {
|
|
|
160
160
|
type: PropTypes.Requireable<string>;
|
|
161
161
|
list: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
162
162
|
list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
|
|
163
|
+
customStyle: PropTypes.Requireable<{
|
|
164
|
+
[x: string]: string | null | undefined;
|
|
165
|
+
}>;
|
|
163
166
|
loading: PropTypes.Requireable<boolean>;
|
|
164
167
|
}> | PropTypes.InferProps<{
|
|
165
168
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/app-player/popin-correction/index.js"],"names":[],"mappings":";AAmGA;IACE
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/app-player/popin-correction/index.js"],"names":[],"mappings":";AAmGA;IACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAmBE;IAEF;;;;;;;;;;;;;;;;;;;;;;MAEE;IAEF,wBAIC;IAFC;;MAA0B;IAkB5B,gCAEC;IAhBD,0BAEC;IAED,kBAQC;IALC,gCAIE;IAIF,aAAsB;IAGxB,sBAsEC;CACF"}
|
|
@@ -107,7 +107,7 @@ declare namespace PopinEnd {
|
|
|
107
107
|
recommendation: PropTypes.Requireable<PropTypes.InferProps<{
|
|
108
108
|
contentType: PropTypes.Requireable<string>;
|
|
109
109
|
dataName: PropTypes.Requireable<string>;
|
|
110
|
-
title: PropTypes.Requireable<
|
|
110
|
+
title: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
111
111
|
showMore: PropTypes.Requireable<string>;
|
|
112
112
|
cards: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
113
113
|
badge: PropTypes.Requireable<string>;
|
|
@@ -161,6 +161,9 @@ declare namespace PopinEnd {
|
|
|
161
161
|
adaptive: PropTypes.Requireable<string>;
|
|
162
162
|
}>>;
|
|
163
163
|
}> | null | undefined)[]>;
|
|
164
|
+
customStyle: PropTypes.Requireable<{
|
|
165
|
+
[x: string]: string | null | undefined;
|
|
166
|
+
}>;
|
|
164
167
|
onScroll: PropTypes.Requireable<(...args: any[]) => any>;
|
|
165
168
|
onShowMore: PropTypes.Requireable<(...args: any[]) => any>;
|
|
166
169
|
'arrows-aria-label': PropTypes.Requireable<PropTypes.InferProps<{
|
|
@@ -252,6 +255,9 @@ declare namespace PopinEnd {
|
|
|
252
255
|
type: PropTypes.Requireable<string>;
|
|
253
256
|
list: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
254
257
|
list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
|
|
258
|
+
customStyle: PropTypes.Requireable<{
|
|
259
|
+
[x: string]: string | null | undefined;
|
|
260
|
+
}>;
|
|
255
261
|
loading: PropTypes.Requireable<boolean>;
|
|
256
262
|
}> | PropTypes.InferProps<{
|
|
257
263
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -113,7 +113,7 @@ declare namespace Summary {
|
|
|
113
113
|
const recommendation: PropTypes.Requireable<PropTypes.InferProps<{
|
|
114
114
|
contentType: PropTypes.Requireable<string>;
|
|
115
115
|
dataName: PropTypes.Requireable<string>;
|
|
116
|
-
title: PropTypes.Requireable<
|
|
116
|
+
title: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
117
117
|
showMore: PropTypes.Requireable<string>;
|
|
118
118
|
cards: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
119
119
|
badge: PropTypes.Requireable<string>;
|
|
@@ -167,6 +167,9 @@ declare namespace Summary {
|
|
|
167
167
|
adaptive: PropTypes.Requireable<string>;
|
|
168
168
|
}>>;
|
|
169
169
|
}> | null | undefined)[]>;
|
|
170
|
+
customStyle: PropTypes.Requireable<{
|
|
171
|
+
[x: string]: string | null | undefined;
|
|
172
|
+
}>;
|
|
170
173
|
onScroll: PropTypes.Requireable<(...args: any[]) => any>;
|
|
171
174
|
onShowMore: PropTypes.Requireable<(...args: any[]) => any>;
|
|
172
175
|
'arrows-aria-label': PropTypes.Requireable<PropTypes.InferProps<{
|
|
@@ -583,6 +583,9 @@ declare const AppReview: {
|
|
|
583
583
|
type: import("prop-types").Requireable<string>;
|
|
584
584
|
list: import("prop-types").Requireable<NonNullable<import("prop-types").InferProps<{
|
|
585
585
|
list: import("prop-types").Requireable<(import("prop-types").InferProps<any> | null | undefined)[]>;
|
|
586
|
+
customStyle: import("prop-types").Requireable<{
|
|
587
|
+
[x: string]: string | null | undefined;
|
|
588
|
+
}>;
|
|
586
589
|
loading: import("prop-types").Requireable<boolean>;
|
|
587
590
|
}> | import("prop-types").InferProps<{
|
|
588
591
|
'aria-label': import("prop-types").Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/app-review/index.tsx"],"names":[],"mappings":";AAGA,OAAkB,EAAC,cAAc,EAAC,MAAM,cAAc,CAAC;AAEvD,QAAA,MAAM,SAAS;2BAAwB,cAAc
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/app-review/index.tsx"],"names":[],"mappings":";AAGA,OAAkB,EAAC,cAAc,EAAC,MAAM,cAAc,CAAC;AAEvD,QAAA,MAAM,SAAS;2BAAwB,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOpD,CAAC;AAIF,eAAe,SAAS,CAAC"}
|
|
@@ -583,6 +583,9 @@ declare const propTypes: {
|
|
|
583
583
|
type: PropTypes.Requireable<string>;
|
|
584
584
|
list: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
585
585
|
list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
|
|
586
|
+
customStyle: PropTypes.Requireable<{
|
|
587
|
+
[x: string]: string | null | undefined;
|
|
588
|
+
}>;
|
|
586
589
|
loading: PropTypes.Requireable<boolean>;
|
|
587
590
|
}> | PropTypes.InferProps<{
|
|
588
591
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../../src/template/app-review/player/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,cAAc,CAAC;AACtD,OAAO,EAAC,YAAY,EAAC,MAAM,kCAAkC,CAAC;AAC9D,OAAgC,EAC9B,mBAAmB,EACpB,MAAM,8CAA8C,CAAC;AAEtD,OAA8B,EAAC,WAAW,EAAC,MAAM,uCAAuC,CAAC;AAEzF,OAA+B,EAC7B,gBAAgB,EACjB,MAAM,oDAAoD,CAAC;AAE5D,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../../src/template/app-review/player/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,cAAc,CAAC;AACtD,OAAO,EAAC,YAAY,EAAC,MAAM,kC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AC;IACpB,KAAK,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC/B,eAAe,CAAC,EAAE,mBAAmB,CAAC;IACtC,QAAQ,CAAC,EAAE,mBAAmB,CAAC;IAC/B,SAAS,CAAC,EAAE,YAAY,CAAC;CAC1B,CAAC"}
|
|
@@ -587,6 +587,9 @@ declare const propTypes: {
|
|
|
587
587
|
type: PropTypes.Requireable<string>;
|
|
588
588
|
list: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
589
589
|
list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
|
|
590
|
+
customStyle: PropTypes.Requireable<{
|
|
591
|
+
[x: string]: string | null | undefined;
|
|
592
|
+
}>;
|
|
590
593
|
loading: PropTypes.Requireable<boolean>;
|
|
591
594
|
}> | PropTypes.InferProps<{
|
|
592
595
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/template/app-review/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAEtD,oBAAY,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE3C,oBAAY,cAAc,GAAG;IAC3B,QAAQ,EAAE,QAAQ,CAAC;IACnB,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B,CAAC;AAEF,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/template/app-review/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAEtD,oBAAY,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE3C,oBAAY,cAA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Types.Requireable<NonNullable<PropTypes.InferProps<{
|
|
790
790
|
list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
|
|
791
|
+
customStyle: PropTypes.Requireable<{
|
|
792
|
+
[x: string]: string | null | undefined;
|
|
793
|
+
}>;
|
|
791
794
|
loading: PropTypes.Requireable<boolean>;
|
|
792
795
|
}> | PropTypes.InferProps<{
|
|
793
796
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -3,6 +3,9 @@ declare class Authors extends React.Component<any, any, any> {
|
|
|
3
3
|
static propTypes: {
|
|
4
4
|
cards: PropTypes.Requireable<PropTypes.InferProps<{
|
|
5
5
|
list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
|
|
6
|
+
customStyle: PropTypes.Requireable<{
|
|
7
|
+
[x: string]: string | null | undefined;
|
|
8
|
+
}>;
|
|
6
9
|
loading: PropTypes.Requireable<boolean>;
|
|
7
10
|
}>>;
|
|
8
11
|
cardsTitle: PropTypes.Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/authors/index.js"],"names":[],"mappings":";AASA;IACE
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/authors/index.js"],"names":[],"mappings":";AASA;IACE;;;;;;;;;;;;;;;;;;;;MAgBE;IAEF;;;;;;;;;;;;;;;;;;;;;;;MAGE;IAEF,sCAMC;IAJC;;MAEC;IAIH,4BAIC;IAED,sBA+EC;CACF"}
|
|
@@ -76,6 +76,9 @@ declare namespace Dashboard {
|
|
|
76
76
|
type: PropTypes.Requireable<string>;
|
|
77
77
|
list: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
78
78
|
list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
|
|
79
|
+
customStyle: PropTypes.Requireable<{
|
|
80
|
+
[x: string]: string | null | undefined;
|
|
81
|
+
}>;
|
|
79
82
|
loading: PropTypes.Requireable<boolean>;
|
|
80
83
|
}> | PropTypes.InferProps<{
|
|
81
84
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -348,6 +351,9 @@ declare namespace Dashboard {
|
|
|
348
351
|
type: PropTypes.Requireable<string>;
|
|
349
352
|
list: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
350
353
|
list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
|
|
354
|
+
customStyle: PropTypes.Requireable<{
|
|
355
|
+
[x: string]: string | null | undefined;
|
|
356
|
+
}>;
|
|
351
357
|
loading: PropTypes.Requireable<boolean>;
|
|
352
358
|
}> | PropTypes.InferProps<{
|
|
353
359
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -118,6 +118,7 @@ declare namespace Discipline {
|
|
|
118
118
|
const shareSuccessWording: PropTypes.Requireable<string>;
|
|
119
119
|
const shareErrorWording: PropTypes.Requireable<string>;
|
|
120
120
|
const skills: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
121
|
+
id: PropTypes.Requireable<string>;
|
|
121
122
|
ref: PropTypes.Requireable<string>;
|
|
122
123
|
locale: PropTypes.Requireable<string>;
|
|
123
124
|
focused: PropTypes.Requireable<boolean>;
|
|
@@ -152,6 +152,7 @@ Discipline.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
152
152
|
shareSuccessWording: ShareFeedback.propTypes.successWording,
|
|
153
153
|
shareErrorWording: ShareFeedback.propTypes.errorWording,
|
|
154
154
|
skills: PropTypes.arrayOf(PropTypes.shape({
|
|
155
|
+
id: PropTypes.string,
|
|
155
156
|
ref: PropTypes.string,
|
|
156
157
|
locale: PropTypes.string,
|
|
157
158
|
focused: PropTypes.bool
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","isEmpty","PropTypes","DisciplineCTA","DisciplineHeader","DisciplinePartners","DisciplineScope","DisciplineAssociatedSkills","Share","ShareFeedback","ShareStatusProvider","AddToMyList","AddToMyListFeedback","AddToMyListStatusProvider","style","Discipline","props","context","selected","level","levels","changeLevel","image","title","video","authors","description","start","buy","startLabel","skills","onSkillClick","buyLabel","shareWording","shareText","shareSuccessWording","shareErrorWording","addToMyListButton","favorite","onFavoriteClick","addToMyListText","removeFromMyListText","disableShare","disableAddToMyList","lastUpdated","authorSection","partners","disciplineCTA","disciplineContent","content","disciplineHeader","header","discipline","container","leftSection","mobileAuthorCtaSection","columnReverse","cta","addToMyListBtn","shareBtn","rightSection","stickySection","buttons","shareFeedBack","addToMyListFeedback","addToMyListProviderWrap","shareProviderWrap","propTypes","onClick","wording","text","successWording","errorWording","arrayOf","shape","ref","string","locale","focused","bool","func","contextTypes","translate"],"sources":["../../../../src/template/common/discipline/index.js"],"sourcesContent":["import React from 'react';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport PropTypes from 'prop-types';\nimport DisciplineCTA from '../../../molecule/discipline-cta';\nimport DisciplineHeader from '../../../molecule/discipline-header';\nimport DisciplinePartners from '../../../molecule/discipline-partners';\nimport DisciplineScope from '../../../molecule/discipline-scope';\nimport DisciplineAssociatedSkills from '../../../molecule/discipline-associated-skills';\nimport Share, {ShareFeedback, ShareStatusProvider} from '../../../molecule/share';\nimport AddToMyList, {\n AddToMyListFeedback,\n AddToMyListStatusProvider\n} from '../../../molecule/add-to-my-list';\nimport style from './style.css';\n\nconst Discipline = (props, context) => {\n const {\n selected = 0,\n level,\n levels,\n changeLevel,\n image,\n title = '',\n video,\n authors = [],\n description = '',\n start,\n buy,\n startLabel,\n skills = [],\n onSkillClick,\n buyLabel,\n shareWording,\n shareText,\n shareSuccessWording,\n shareErrorWording,\n addToMyListButton,\n favorite,\n onFavoriteClick,\n addToMyListText,\n removeFromMyListText,\n disableShare = false,\n disableAddToMyList = false,\n lastUpdated\n } = props;\n\n const authorSection = isEmpty(authors) ? null : (\n <div className={style.partners}>\n <DisciplinePartners authors={authors} />\n </div>\n );\n\n const disciplineCTA = (\n <DisciplineCTA\n type={'discipline'}\n start={start}\n buy={buy}\n startLabel={startLabel}\n buyLabel={buyLabel}\n />\n );\n\n const disciplineContent = (\n <div className={style.content}>\n <DisciplineScope content={level} levels={levels} selected={selected} onClick={changeLevel} />\n </div>\n );\n\n const disciplineHeader = (\n <div className={style.header}>\n <DisciplineHeader\n image={image}\n video={video}\n title={title}\n description={description}\n lastUpdated={lastUpdated}\n />\n </div>\n );\n\n const discipline = (\n <div data-name=\"discipline\" className={style.container} key=\"discipline\">\n <div className={style.leftSection}>\n {disciplineHeader}\n <div className={style.mobileAuthorCtaSection}>\n <div className={style.columnReverse}>\n <div className={style.cta}>{disciplineCTA}</div>\n {disableAddToMyList ? null : (\n <AddToMyList\n style={style.addToMyListBtn}\n addToMyListButton={addToMyListButton}\n favorite={favorite}\n onFavoriteClick={onFavoriteClick}\n key={'addToMyListTablet'}\n />\n )}\n {disableShare ? null : (\n <Share\n style={style.shareBtn}\n wording={shareWording}\n text={shareText}\n key={'shareTablet'}\n />\n )}\n </div>\n <DisciplineAssociatedSkills skills={skills} onSkillClick={onSkillClick} />\n {authorSection}\n </div>\n {disciplineContent}\n </div>\n <div className={style.rightSection}>\n <div className={style.stickySection}>\n <div className={style.cta}>\n {disciplineCTA}\n {disableShare && disableAddToMyList ? null : (\n <div className={style.buttons}>\n {disableShare ? null : (\n <Share\n style={style.shareBtn}\n wording={shareWording}\n text={shareText}\n key={'shareDesktop'}\n />\n )}\n {disableAddToMyList ? null : (\n <AddToMyList\n style={style.addToMyListBtn}\n addToMyListButton={addToMyListButton}\n favorite={favorite}\n onFavoriteClick={onFavoriteClick}\n key={'addToMyListDesktop'}\n />\n )}\n </div>\n )}\n </div>\n <DisciplineAssociatedSkills skills={skills} onSkillClick={onSkillClick} />\n {authorSection}\n </div>\n </div>\n </div>\n );\n\n const shareFeedBack = disableShare ? null : (\n <ShareFeedback\n errorWording={shareErrorWording}\n successWording={shareSuccessWording}\n key=\"shareFeedBack\"\n />\n );\n\n const addToMyListFeedback = disableAddToMyList ? null : (\n <AddToMyListFeedback\n addToMyListText={addToMyListText}\n removeFromMyListText={removeFromMyListText}\n favorite={favorite}\n />\n );\n\n const addToMyListProviderWrap = disableAddToMyList ? (\n <>\n {shareFeedBack}\n {discipline}\n </>\n ) : (\n <AddToMyListStatusProvider>\n {shareFeedBack}\n {addToMyListFeedback}\n {discipline}\n </AddToMyListStatusProvider>\n );\n const shareProviderWrap = disableShare ? (\n addToMyListProviderWrap\n ) : (\n <ShareStatusProvider>{addToMyListProviderWrap}</ShareStatusProvider>\n );\n\n return shareProviderWrap;\n};\n\nDiscipline.propTypes = {\n image: DisciplineHeader.propTypes.image,\n video: DisciplineHeader.propTypes.video,\n title: DisciplineHeader.propTypes.title,\n description: DisciplineHeader.propTypes.description,\n start: DisciplineCTA.propTypes.start,\n buy: DisciplineCTA.propTypes.buy,\n startLabel: DisciplineCTA.propTypes.startLabel,\n buyLabel: DisciplineCTA.propTypes.buyLabel,\n authors: DisciplinePartners.propTypes.authors,\n level: DisciplineScope.propTypes.content,\n levels: DisciplineScope.propTypes.levels,\n selected: DisciplineScope.propTypes.selected,\n changeLevel: DisciplineScope.propTypes.onClick,\n shareWording: Share.propTypes.wording,\n shareText: Share.propTypes.text,\n shareSuccessWording: ShareFeedback.propTypes.successWording,\n shareErrorWording: ShareFeedback.propTypes.errorWording,\n skills: PropTypes.arrayOf(\n PropTypes.shape({\n ref: PropTypes.string,\n locale: PropTypes.string,\n focused: PropTypes.bool\n })\n ),\n onSkillClick: PropTypes.func,\n addToMyListText: AddToMyListFeedback.propTypes.addToMyListText,\n removeFromMyListText: AddToMyListFeedback.propTypes.removeFromMyListText,\n addToMyListButton: AddToMyList.propTypes.addToMyListButton,\n onFavoriteClick: AddToMyList.propTypes.onFavoriteClick,\n favorite: AddToMyList.propTypes.favorite,\n disableShare: PropTypes.bool,\n disableAddToMyList: PropTypes.bool\n};\n\nDiscipline.contextTypes = {\n translate: PropTypes.func\n};\n\nexport default Discipline;\n"],"mappings":"AAAA,O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AAiB,EAAE3B,aAAa,CAAC0D,SAAd,CAAwBK,YAjBtB;EAkBrB1C,MAAM,EAAE5B,SAAS,CAACuE,OAAV,CACNvE,SAAS,CAACwE,KAAV,CAAgB;IACdC,GAAG,EAAEzE,SAAS,CAAC0E,MADD;IAEdC,MAAM,EAAE3E,SAAS,CAAC0E,MAFJ;IAGdE,OAAO,EAAE5E,SAAS,CAAC6E;EAHL,CAAhB,CADM,CAlBa;EAyBrBhD,YAAY,EAAE7B,SAAS,CAAC8E,IAzBH;EA0BrBxC,eAAe,EAAE5B,mBAAmB,CAACuD,SAApB,CAA8B3B,eA1B1B;EA2BrBC,oBAAoB,EAAE7B,mBAAmB,CAACuD,SAApB,CAA8B1B,oBA3B/B;EA4BrBJ,iBAAiB,EAAE1B,WAAW,CAACwD,SAAZ,CAAsB9B,iBA5BpB;EA6BrBE,eAAe,EAAE5B,WAAW,CAACwD,SAAZ,CAAsB5B,eA7BlB;EA8BrBD,QAAQ,EAAE3B,WAAW,CAACwD,SAAZ,CAAsB7B,QA9BX;EA+BrBI,YAAY,EAAExC,SAAS,CAAC6E,IA/BH;EAgCrBpC,kBAAkB,EAAEzC,SAAS,CAAC6E;AAhCT,CAAvB;AAmCAhE,UAAU,CAACkE,YAAX,GAA0B;EACxBC,SAAS,EAAEhF,SAAS,CAAC8E;AADG,CAA1B;AAIA,eAAejE,UAAf"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","isEmpty","PropTypes","DisciplineCTA","DisciplineHeader","DisciplinePartners","DisciplineScope","DisciplineAssociatedSkills","Share","ShareFeedback","ShareStatusProvider","AddToMyList","AddToMyListFeedback","AddToMyListStatusProvider","style","Discipline","props","context","selected","level","levels","changeLevel","image","title","video","authors","description","start","buy","startLabel","skills","onSkillClick","buyLabel","shareWording","shareText","shareSuccessWording","shareErrorWording","addToMyListButton","favorite","onFavoriteClick","addToMyListText","removeFromMyListText","disableShare","disableAddToMyList","lastUpdated","authorSection","partners","disciplineCTA","disciplineContent","content","disciplineHeader","header","discipline","container","leftSection","mobileAuthorCtaSection","columnReverse","cta","addToMyListBtn","shareBtn","rightSection","stickySection","buttons","shareFeedBack","addToMyListFeedback","addToMyListProviderWrap","shareProviderWrap","propTypes","onClick","wording","text","successWording","errorWording","arrayOf","shape","id","string","ref","locale","focused","bool","func","contextTypes","translate"],"sources":["../../../../src/template/common/discipline/index.js"],"sourcesContent":["import React from 'react';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport PropTypes from 'prop-types';\nimport DisciplineCTA from '../../../molecule/discipline-cta';\nimport DisciplineHeader from '../../../molecule/discipline-header';\nimport DisciplinePartners from '../../../molecule/discipline-partners';\nimport DisciplineScope from '../../../molecule/discipline-scope';\nimport DisciplineAssociatedSkills from '../../../molecule/discipline-associated-skills';\nimport Share, {ShareFeedback, ShareStatusProvider} from '../../../molecule/share';\nimport AddToMyList, {\n AddToMyListFeedback,\n AddToMyListStatusProvider\n} from '../../../molecule/add-to-my-list';\nimport style from './style.css';\n\nconst Discipline = (props, context) => {\n const {\n selected = 0,\n level,\n levels,\n changeLevel,\n image,\n title = '',\n video,\n authors = [],\n description = '',\n start,\n buy,\n startLabel,\n skills = [],\n onSkillClick,\n buyLabel,\n shareWording,\n shareText,\n shareSuccessWording,\n shareErrorWording,\n addToMyListButton,\n favorite,\n onFavoriteClick,\n addToMyListText,\n removeFromMyListText,\n disableShare = false,\n disableAddToMyList = false,\n lastUpdated\n } = props;\n\n const authorSection = isEmpty(authors) ? null : (\n <div className={style.partners}>\n <DisciplinePartners authors={authors} />\n </div>\n );\n\n const disciplineCTA = (\n <DisciplineCTA\n type={'discipline'}\n start={start}\n buy={buy}\n startLabel={startLabel}\n buyLabel={buyLabel}\n />\n );\n\n const disciplineContent = (\n <div className={style.content}>\n <DisciplineScope content={level} levels={levels} selected={selected} onClick={changeLevel} />\n </div>\n );\n\n const disciplineHeader = (\n <div className={style.header}>\n <DisciplineHeader\n image={image}\n video={video}\n title={title}\n description={description}\n lastUpdated={lastUpdated}\n />\n </div>\n );\n\n const discipline = (\n <div data-name=\"discipline\" className={style.container} key=\"discipline\">\n <div className={style.leftSection}>\n {disciplineHeader}\n <div className={style.mobileAuthorCtaSection}>\n <div className={style.columnReverse}>\n <div className={style.cta}>{disciplineCTA}</div>\n {disableAddToMyList ? null : (\n <AddToMyList\n style={style.addToMyListBtn}\n addToMyListButton={addToMyListButton}\n favorite={favorite}\n onFavoriteClick={onFavoriteClick}\n key={'addToMyListTablet'}\n />\n )}\n {disableShare ? null : (\n <Share\n style={style.shareBtn}\n wording={shareWording}\n text={shareText}\n key={'shareTablet'}\n />\n )}\n </div>\n <DisciplineAssociatedSkills skills={skills} onSkillClick={onSkillClick} />\n {authorSection}\n </div>\n {disciplineContent}\n </div>\n <div className={style.rightSection}>\n <div className={style.stickySection}>\n <div className={style.cta}>\n {disciplineCTA}\n {disableShare && disableAddToMyList ? null : (\n <div className={style.buttons}>\n {disableShare ? null : (\n <Share\n style={style.shareBtn}\n wording={shareWording}\n text={shareText}\n key={'shareDesktop'}\n />\n )}\n {disableAddToMyList ? null : (\n <AddToMyList\n style={style.addToMyListBtn}\n addToMyListButton={addToMyListButton}\n favorite={favorite}\n onFavoriteClick={onFavoriteClick}\n key={'addToMyListDesktop'}\n />\n )}\n </div>\n )}\n </div>\n <DisciplineAssociatedSkills skills={skills} onSkillClick={onSkillClick} />\n {authorSection}\n </div>\n </div>\n </div>\n );\n\n const shareFeedBack = disableShare ? null : (\n <ShareFeedback\n errorWording={shareErrorWording}\n successWording={shareSuccessWording}\n key=\"shareFeedBack\"\n />\n );\n\n const addToMyListFeedback = disableAddToMyList ? null : (\n <AddToMyListFeedback\n addToMyListText={addToMyListText}\n removeFromMyListText={removeFromMyListText}\n favorite={favorite}\n />\n );\n\n const addToMyListProviderWrap = disableAddToMyList ? (\n <>\n {shareFeedBack}\n {discipline}\n </>\n ) : (\n <AddToMyListStatusProvider>\n {shareFeedBack}\n {addToMyListFeedback}\n {discipline}\n </AddToMyListStatusProvider>\n );\n const shareProviderWrap = disableShare ? (\n addToMyListProviderWrap\n ) : (\n <ShareStatusProvider>{addToMyListProviderWrap}</ShareStatusProvider>\n );\n\n return shareProviderWrap;\n};\n\nDiscipline.propTypes = {\n image: DisciplineHeader.propTypes.image,\n video: DisciplineHeader.propTypes.video,\n title: DisciplineHeader.propTypes.title,\n description: DisciplineHeader.propTypes.description,\n start: DisciplineCTA.propTypes.start,\n buy: DisciplineCTA.propTypes.buy,\n startLabel: DisciplineCTA.propTypes.startLabel,\n buyLabel: DisciplineCTA.propTypes.buyLabel,\n authors: DisciplinePartners.propTypes.authors,\n level: DisciplineScope.propTypes.content,\n levels: DisciplineScope.propTypes.levels,\n selected: DisciplineScope.propTypes.selected,\n changeLevel: DisciplineScope.propTypes.onClick,\n shareWording: Share.propTypes.wording,\n shareText: Share.propTypes.text,\n shareSuccessWording: ShareFeedback.propTypes.successWording,\n shareErrorWording: ShareFeedback.propTypes.errorWording,\n skills: PropTypes.arrayOf(\n PropTypes.shape({\n id: PropTypes.string,\n ref: PropTypes.string,\n locale: PropTypes.string,\n focused: PropTypes.bool\n })\n ),\n onSkillClick: PropTypes.func,\n addToMyListText: AddToMyListFeedback.propTypes.addToMyListText,\n removeFromMyListText: AddToMyListFeedback.propTypes.removeFromMyListText,\n addToMyListButton: AddToMyList.propTypes.addToMyListButton,\n onFavoriteClick: AddToMyList.propTypes.onFavoriteClick,\n favorite: AddToMyList.propTypes.favorite,\n disableShare: PropTypes.bool,\n disableAddToMyList: PropTypes.bool\n};\n\nDiscipline.contextTypes = {\n translate: PropTypes.func\n};\n\nexport default Discipline;\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,OAAP,MAAoB,mBAApB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,aAAP,MAA0B,kCAA1B;AACA,OAAOC,gBAAP,MAA6B,qCAA7B;AACA,OAAOC,kBAAP,MAA+B,uCAA/B;AACA,OAAOC,eAAP,MAA4B,oCA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,EAAE5E,SAAS,CAAC0E,MAHJ;IAIdG,OAAO,EAAE7E,SAAS,CAAC8E;EAJL,CAAhB,CADM,CAlBa;EA0BrBjD,YAAY,EAAE7B,SAAS,CAAC+E,IA1BH;EA2BrBzC,eAAe,EAAE5B,mBAAmB,CAACuD,SAApB,CAA8B3B,eA3B1B;EA4BrBC,oBAAoB,EAAE7B,mBAAmB,CAACuD,SAApB,CAA8B1B,oBA5B/B;EA6BrBJ,iBAAiB,EAAE1B,WAAW,CAACwD,SAAZ,CAAsB9B,iBA7BpB;EA8BrBE,eAAe,EAAE5B,WAAW,CAACwD,SAAZ,CAAsB5B,eA9BlB;EA+BrBD,QAAQ,EAAE3B,WAAW,CAACwD,SAAZ,CAAsB7B,QA/BX;EAgCrBI,YAAY,EAAExC,SAAS,CAAC8E,IAhCH;EAiCrBrC,kBAAkB,EAAEzC,SAAS,CAAC8E;AAjCT,CAAvB;AAoCAjE,UAAU,CAACmE,YAAX,GAA0B;EACxBC,SAAS,EAAEjF,SAAS,CAAC+E;AADG,CAA1B;AAIA,eAAelE,UAAf"}
|
|
@@ -79,6 +79,9 @@ declare namespace SearchPage {
|
|
|
79
79
|
}>>;
|
|
80
80
|
const cards: PropTypes.Requireable<PropTypes.InferProps<{
|
|
81
81
|
list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
|
|
82
|
+
customStyle: PropTypes.Requireable<{
|
|
83
|
+
[x: string]: string | null | undefined;
|
|
84
|
+
}>;
|
|
82
85
|
loading: PropTypes.Requireable<boolean>;
|
|
83
86
|
}>>;
|
|
84
87
|
const clearFilters: PropTypes.Requireable<PropTypes.InferProps<{
|
|
@@ -111,7 +114,7 @@ declare namespace SearchPage {
|
|
|
111
114
|
const recommendations: PropTypes.Requireable<PropTypes.InferProps<{
|
|
112
115
|
contentType: PropTypes.Requireable<string>;
|
|
113
116
|
dataName: PropTypes.Requireable<string>;
|
|
114
|
-
title: PropTypes.Requireable<
|
|
117
|
+
title: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
115
118
|
showMore: PropTypes.Requireable<string>;
|
|
116
119
|
cards: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
117
120
|
badge: PropTypes.Requireable<string>;
|
|
@@ -165,6 +168,9 @@ declare namespace SearchPage {
|
|
|
165
168
|
adaptive: PropTypes.Requireable<string>;
|
|
166
169
|
}>>;
|
|
167
170
|
}> | null | undefined)[]>;
|
|
171
|
+
customStyle: PropTypes.Requireable<{
|
|
172
|
+
[x: string]: string | null | undefined;
|
|
173
|
+
}>;
|
|
168
174
|
onScroll: PropTypes.Requireable<(...args: any[]) => any>;
|
|
169
175
|
onShowMore: PropTypes.Requireable<(...args: any[]) => any>;
|
|
170
176
|
'arrows-aria-label': PropTypes.Requireable<PropTypes.InferProps<{
|
|
@@ -248,6 +254,9 @@ declare namespace SearchPage {
|
|
|
248
254
|
type: PropTypes.Requireable<string>;
|
|
249
255
|
list: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
250
256
|
list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
|
|
257
|
+
customStyle: PropTypes.Requireable<{
|
|
258
|
+
[x: string]: string | null | undefined;
|
|
259
|
+
}>;
|
|
251
260
|
loading: PropTypes.Requireable<boolean>;
|
|
252
261
|
}> | PropTypes.InferProps<{
|
|
253
262
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -93,6 +93,9 @@ declare namespace ExternalCourse {
|
|
|
93
93
|
type: PropTypes.Requireable<string>;
|
|
94
94
|
list: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
95
95
|
list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
|
|
96
|
+
customStyle: PropTypes.Requireable<{
|
|
97
|
+
[x: string]: string | null | undefined;
|
|
98
|
+
}>;
|
|
96
99
|
loading: PropTypes.Requireable<boolean>;
|
|
97
100
|
}> | PropTypes.InferProps<{
|
|
98
101
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -43,6 +43,9 @@ declare namespace MyLearning {
|
|
|
43
43
|
const skillsLocales: PropTypes.Requireable<{
|
|
44
44
|
[x: string]: string | null | undefined;
|
|
45
45
|
}>;
|
|
46
|
+
const skillIds: PropTypes.Requireable<{
|
|
47
|
+
[x: string]: string | null | undefined;
|
|
48
|
+
}>;
|
|
46
49
|
const learnerFeature: PropTypes.Requireable<boolean>;
|
|
47
50
|
const isLoading: PropTypes.Requireable<boolean>;
|
|
48
51
|
const onSkillFocusConfirm: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/my-learning/index.js"],"names":[],"mappings":";AAyHA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/my-learning/index.js"],"names":[],"mappings":";AAyHA,mEAwYC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _sortBy from "lodash/fp/sortBy";
|
|
1
2
|
import _getOr from "lodash/fp/getOr";
|
|
2
3
|
import _sumBy from "lodash/fp/sumBy";
|
|
3
4
|
import _pipe from "lodash/fp/pipe";
|
|
@@ -89,7 +90,7 @@ const FilterButton = (props, context) => {
|
|
|
89
90
|
backgroundColor: active ? convert(`color(${primarySkinColor} a(0.07))`) : '#EAEAEB',
|
|
90
91
|
color: active ? primarySkinColor : '#515161'
|
|
91
92
|
}
|
|
92
|
-
}, skillTotal)), [filter, skillTotal, active]);
|
|
93
|
+
}, skillTotal)), [filter, skillTotal, active, primarySkinColor]);
|
|
93
94
|
const buttonProps = {
|
|
94
95
|
customStyle: {
|
|
95
96
|
backgroundColor: active ? convert(`color(${primarySkinColor} a(0.07))`) : '#FFFFFF',
|
|
@@ -121,6 +122,7 @@ const MyLearning = (props, context) => {
|
|
|
121
122
|
selectedSkills = [],
|
|
122
123
|
skillsInformation,
|
|
123
124
|
skillsLocales,
|
|
125
|
+
skillIds,
|
|
124
126
|
learnerFeature = true,
|
|
125
127
|
isLoading,
|
|
126
128
|
onSkillFocusConfirm,
|
|
@@ -138,13 +140,13 @@ const MyLearning = (props, context) => {
|
|
|
138
140
|
const [selectedSkillsList, setSelectedSkillsList] = useState(selectedSkills);
|
|
139
141
|
const [skillFocusSelectedOnChart, setSkillFocusSelectedOnChart] = useState(undefined);
|
|
140
142
|
const [searchValue, setSearchValue] = useState('');
|
|
141
|
-
const [searchResults, setSearchResults] = useState(
|
|
143
|
+
const [searchResults, setSearchResults] = useState(_sortBy(skillRef => -_getOr(0, [skillRef, 'stats', 'score'], skillsInformation), skills));
|
|
142
144
|
const [activeFilter, setActiveFilter] = useState('all');
|
|
143
145
|
const [hovered, setHovered] = useState(false);
|
|
144
146
|
const handleMouseOver = useCallback(() => setHovered(true), [setHovered]);
|
|
145
147
|
const handleMouseLeave = useCallback(() => setHovered(false), [setHovered]);
|
|
146
148
|
const skillsReviewReady = useMemo(() => {
|
|
147
|
-
return searchResults.filter(skill => skillsInformation[skill].availableForReview);
|
|
149
|
+
return searchResults.filter(skill => skillsInformation[skill] ? skillsInformation[skill].availableForReview : false);
|
|
148
150
|
}, [searchResults, skillsInformation]);
|
|
149
151
|
const graphDatas = useMemo(() => _pipe(_map(skill => [skill, _getOr(0, [skill, 'stats', 'score'], skillsInformation).toFixed(1)]), _fromPairs)(selectedSkillsList), [selectedSkillsList, skillsInformation]);
|
|
150
152
|
const graphLegends = useMemo(() => _pipe(_map(skill => [skill, skillsLocales[skill]]), _fromPairs)(selectedSkillsList), [selectedSkillsList, skillsLocales]);
|
|
@@ -154,7 +156,11 @@ const MyLearning = (props, context) => {
|
|
|
154
156
|
review: skillsReviewReady
|
|
155
157
|
};
|
|
156
158
|
}, [searchResults, skillsReviewReady]);
|
|
157
|
-
const sumKpi = useCallback(kpi =>
|
|
159
|
+
const sumKpi = useCallback(kpi => {
|
|
160
|
+
const skillFocusSelectedOnChartScore = _getOr(0, [skillFocusSelectedOnChart, 'stats', `${kpi}`], skillsInformation);
|
|
161
|
+
|
|
162
|
+
return skillFocusSelectedOnChart ? skillFocusSelectedOnChartScore : _sumBy(skill => skillsInformation[skill] ? skillsInformation[skill].stats[kpi] : 0, selectedSkillsList);
|
|
163
|
+
}, [skillFocusSelectedOnChart, skillsInformation, selectedSkillsList]);
|
|
158
164
|
const coursedCompletedData = useMemo(() => sumKpi('contentCompleted'), [sumKpi]);
|
|
159
165
|
const questionsToReviewData = useMemo(() => sumKpi('questionsToReview'), [sumKpi]);
|
|
160
166
|
const learningTimeData = useMemo(() => sumKpi('learningTime'), [sumKpi]);
|
|
@@ -204,6 +210,9 @@ const MyLearning = (props, context) => {
|
|
|
204
210
|
setSearchValue('');
|
|
205
211
|
setSearchResults(skills);
|
|
206
212
|
}, [skills, setSearchValue, setSearchResults]);
|
|
213
|
+
const handleExploreClick = useCallback(skillRef => {
|
|
214
|
+
onExploreSkill(skillIds[skillRef]);
|
|
215
|
+
}, [skillIds, onExploreSkill]);
|
|
207
216
|
const ReviewTooltipContent = useCallback(() => /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("b", null, translate('review_mode_tooltip_header'))), /*#__PURE__*/React.createElement("p", null, translate('review_mode_tooltip_content')), /*#__PURE__*/React.createElement("ol", null, /*#__PURE__*/React.createElement("li", null, translate('review_mode_tooltip_content_part1')), /*#__PURE__*/React.createElement("li", null, translate('review_mode_tooltip_content_part2')), /*#__PURE__*/React.createElement("li", null, translate('review_mode_tooltip_content_part3')), /*#__PURE__*/React.createElement("li", null, translate('review_mode_tooltip_content_part4')))), [translate]);
|
|
208
217
|
return /*#__PURE__*/React.createElement("div", {
|
|
209
218
|
className: style.backgroundContainer
|
|
@@ -256,7 +265,7 @@ const MyLearning = (props, context) => {
|
|
|
256
265
|
data: graphDatas,
|
|
257
266
|
legend: graphLegends,
|
|
258
267
|
onClick: handleOnDotClick,
|
|
259
|
-
onExploreClick:
|
|
268
|
+
onExploreClick: handleExploreClick,
|
|
260
269
|
colors: [{
|
|
261
270
|
gradient: {
|
|
262
271
|
fill: ['#0062ffff', '#8000ff85'],
|
|
@@ -363,12 +372,19 @@ const MyLearning = (props, context) => {
|
|
|
363
372
|
iconSkillAriaLabel: translate('review_skill_empty'),
|
|
364
373
|
imagePosition: "top"
|
|
365
374
|
})) : filters[activeFilter].map((skill, index) => {
|
|
375
|
+
const defaultStats = {
|
|
376
|
+
score: 0,
|
|
377
|
+
content: 0,
|
|
378
|
+
contentCompleted: 0,
|
|
379
|
+
questionsToReview: 0
|
|
380
|
+
};
|
|
381
|
+
|
|
366
382
|
function handleReviewSkill() {
|
|
367
383
|
onReviewSkill(skill);
|
|
368
384
|
}
|
|
369
385
|
|
|
370
386
|
function handleExploreSkill() {
|
|
371
|
-
onExploreSkill(skill);
|
|
387
|
+
onExploreSkill(skillIds[skill]);
|
|
372
388
|
}
|
|
373
389
|
|
|
374
390
|
const {
|
|
@@ -376,7 +392,7 @@ const MyLearning = (props, context) => {
|
|
|
376
392
|
content,
|
|
377
393
|
questionsToReview,
|
|
378
394
|
contentCompleted
|
|
379
|
-
} = skillsInformation[skill].stats;
|
|
395
|
+
} = skillsInformation[skill] ? skillsInformation[skill].stats : defaultStats;
|
|
380
396
|
return /*#__PURE__*/React.createElement("div", {
|
|
381
397
|
key: index
|
|
382
398
|
}, /*#__PURE__*/React.createElement(LearnerSkillCard, {
|
|
@@ -388,7 +404,7 @@ const MyLearning = (props, context) => {
|
|
|
388
404
|
questionsToReview,
|
|
389
405
|
contentCompleted
|
|
390
406
|
},
|
|
391
|
-
review: skillsInformation[skill].availableForReview,
|
|
407
|
+
review: skillsInformation[skill] ? skillsInformation[skill].availableForReview : false,
|
|
392
408
|
onReviewClick: handleReviewSkill,
|
|
393
409
|
onExploreClick: handleExploreSkill
|
|
394
410
|
}));
|
|
@@ -413,6 +429,7 @@ MyLearning.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
413
429
|
})
|
|
414
430
|
})),
|
|
415
431
|
skillsLocales: PropTypes.objectOf(PropTypes.string),
|
|
432
|
+
skillIds: PropTypes.objectOf(PropTypes.string),
|
|
416
433
|
learnerFeature: PropTypes.bool,
|
|
417
434
|
isLoading: PropTypes.bool,
|
|
418
435
|
onSkillFocusConfirm: PropTypes.func,
|