@coorpacademy/components 11.2.10 → 11.2.12
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/lottie-wrapper/index.d.ts.map +1 -1
- package/es/atom/lottie-wrapper/index.js +9 -3
- package/es/atom/lottie-wrapper/index.js.map +1 -1
- package/es/atom/lottie-wrapper/prop-types.d.ts +2 -2
- package/es/atom/lottie-wrapper/prop-types.d.ts.map +1 -1
- package/es/atom/lottie-wrapper/prop-types.js +1 -1
- package/es/atom/lottie-wrapper/prop-types.js.map +1 -1
- package/es/atom/review-presentation/index.d.ts.map +1 -1
- package/es/atom/review-presentation/index.js +9 -5
- package/es/atom/review-presentation/index.js.map +1 -1
- package/es/atom/review-presentation/prop-types.d.ts +8 -0
- package/es/atom/review-presentation/prop-types.d.ts.map +1 -1
- package/es/atom/review-presentation/prop-types.js +2 -1
- package/es/atom/review-presentation/prop-types.js.map +1 -1
- package/es/molecule/review-card-congrats/prop-types.d.ts +1 -1
- package/es/organism/review-congrats/index.d.ts.map +1 -1
- package/es/organism/review-congrats/index.js +8 -6
- package/es/organism/review-congrats/index.js.map +1 -1
- package/es/organism/review-congrats/prop-types.d.ts +3 -3
- package/es/organism/review-stacked-slides/index.native.js +1 -1
- package/es/organism/review-stacked-slides/index.native.js.map +1 -1
- package/es/organism/user-preferences/index.d.ts +1 -0
- package/es/organism/user-preferences/index.d.ts.map +1 -1
- package/es/organism/user-preferences/index.js +11 -6
- package/es/organism/user-preferences/index.js.map +1 -1
- package/es/template/activity/index.d.ts +2 -0
- package/es/template/activity/index.d.ts.map +1 -1
- package/es/template/activity/index.js +4 -1
- package/es/template/activity/index.js.map +1 -1
- package/es/template/activity/progression-item.d.ts +1 -0
- package/es/template/activity/progression-item.d.ts.map +1 -1
- package/es/template/activity/progression-item.js +5 -2
- package/es/template/activity/progression-item.js.map +1 -1
- package/es/template/app-review/index.d.ts +4 -47
- package/es/template/app-review/index.d.ts.map +1 -1
- package/es/template/app-review/index.js +0 -10
- package/es/template/app-review/index.js.map +1 -1
- package/es/template/app-review/index.native.d.ts.map +1 -1
- package/es/template/app-review/index.native.js +0 -8
- package/es/template/app-review/index.native.js.map +1 -1
- package/es/template/app-review/player/prop-types.d.ts +3 -3
- package/es/template/app-review/prop-types.d.ts +4 -51
- package/es/template/app-review/prop-types.d.ts.map +1 -1
- package/es/template/app-review/prop-types.js +1 -5
- package/es/template/app-review/prop-types.js.map +1 -1
- package/es/template/review-dashboard-skills/index.d.ts +4 -0
- package/lib/atom/lottie-wrapper/index.d.ts.map +1 -1
- package/lib/atom/lottie-wrapper/index.js +9 -3
- package/lib/atom/lottie-wrapper/index.js.map +1 -1
- package/lib/atom/lottie-wrapper/prop-types.d.ts +2 -2
- package/lib/atom/lottie-wrapper/prop-types.d.ts.map +1 -1
- package/lib/atom/lottie-wrapper/prop-types.js +1 -1
- package/lib/atom/lottie-wrapper/prop-types.js.map +1 -1
- package/lib/atom/review-presentation/index.d.ts.map +1 -1
- package/lib/atom/review-presentation/index.js +9 -5
- package/lib/atom/review-presentation/index.js.map +1 -1
- package/lib/atom/review-presentation/prop-types.d.ts +8 -0
- package/lib/atom/review-presentation/prop-types.d.ts.map +1 -1
- package/lib/atom/review-presentation/prop-types.js +2 -1
- package/lib/atom/review-presentation/prop-types.js.map +1 -1
- package/lib/molecule/review-card-congrats/prop-types.d.ts +1 -1
- package/lib/organism/review-congrats/index.d.ts.map +1 -1
- package/lib/organism/review-congrats/index.js +3 -1
- package/lib/organism/review-congrats/index.js.map +1 -1
- package/lib/organism/review-congrats/prop-types.d.ts +3 -3
- package/lib/organism/review-stacked-slides/index.native.js +1 -1
- package/lib/organism/review-stacked-slides/index.native.js.map +1 -1
- package/lib/organism/user-preferences/index.d.ts +1 -0
- package/lib/organism/user-preferences/index.d.ts.map +1 -1
- package/lib/organism/user-preferences/index.js +11 -6
- package/lib/organism/user-preferences/index.js.map +1 -1
- package/lib/template/activity/index.d.ts +2 -0
- package/lib/template/activity/index.d.ts.map +1 -1
- package/lib/template/activity/index.js +4 -1
- package/lib/template/activity/index.js.map +1 -1
- package/lib/template/activity/progression-item.d.ts +1 -0
- package/lib/template/activity/progression-item.d.ts.map +1 -1
- package/lib/template/activity/progression-item.js +5 -2
- package/lib/template/activity/progression-item.js.map +1 -1
- package/lib/template/app-review/index.d.ts +4 -47
- package/lib/template/app-review/index.d.ts.map +1 -1
- package/lib/template/app-review/index.js +0 -12
- package/lib/template/app-review/index.js.map +1 -1
- package/lib/template/app-review/index.native.d.ts.map +1 -1
- package/lib/template/app-review/index.native.js +0 -9
- package/lib/template/app-review/index.native.js.map +1 -1
- package/lib/template/app-review/player/prop-types.d.ts +3 -3
- package/lib/template/app-review/prop-types.d.ts +4 -51
- package/lib/template/app-review/prop-types.d.ts.map +1 -1
- package/lib/template/app-review/prop-types.js +1 -7
- package/lib/template/app-review/prop-types.js.map +1 -1
- package/lib/template/review-dashboard-skills/index.d.ts +4 -0
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["Progression","React","Component","constructor","props","context","handleClick","e","recommendation","stopPropagation","preventDefault","onClick","handleSelectTheme","themeFilter","onChange","bind","render","mainTitle","mainSubtitle","progressions","total","engines","loading","skin","primary","loader","style","allProgressions","map","progression","ref","coreProgression","core","themeSelect","options","selectBorder","select","recommendationSection","recommendationWrapper","title","subtitle","classnames","course","innerHTML","__html","courseTitle","cta","backgroundColor","default","headerProgression","wrapperCta","wrapperProgression","contextTypes","Provider","childContextTypes","propTypes","PropTypes","string","isRequired","shape","label","stars","number","arrayOf","EngineStars","bool","ProgressionItem","Select","func"],"sources":["../../../src/template/activity/index.js"],"sourcesContent":["import React from 'react';\nimport {get, omit, isEmpty} from 'lodash/fp';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport Provider from '../../atom/provider';\nimport Button from '../../atom/button';\nimport Select from '../../atom/select';\nimport Loader from '../../atom/loader';\nimport ProgressionItem from './progression-item';\nimport EngineStars from './engine-stars';\nimport StarsSummary from './stars-summary';\nimport style from './style.css';\n\nclass Progression extends React.Component {\n static propTypes = {\n mainTitle: PropTypes.string.isRequired,\n mainSubtitle: PropTypes.string.isRequired,\n total: PropTypes.shape({\n label: PropTypes.string.isRequired,\n stars: PropTypes.number.isRequired\n }).isRequired,\n engines: PropTypes.arrayOf(PropTypes.shape(EngineStars.propTypes)),\n loading: PropTypes.bool.isRequired,\n progressions: PropTypes.arrayOf(\n PropTypes.shape({...ProgressionItem.propTypes, ref: PropTypes.string.isRequired})\n ),\n themeFilter: PropTypes.shape({\n options: Select.propTypes.options.isRequired,\n onChange: Select.propTypes.onChange\n }),\n recommendation: PropTypes.shape({\n cta: PropTypes.string.isRequired,\n title: PropTypes.string.isRequired,\n subtitle: PropTypes.string.isRequired,\n courseTitle: PropTypes.string.isRequired,\n onClick: PropTypes.func\n })\n };\n\n static contextTypes = {\n skin: Provider.childContextTypes.skin\n };\n\n constructor(props, context) {\n super(props, context);\n this.handleClick = this.handleClick.bind(this);\n this.handleSelectTheme = this.handleSelectTheme.bind(this);\n }\n\n handleClick = e => {\n const {recommendation} = this.props;\n e.stopPropagation();\n e.preventDefault();\n const {onClick} = recommendation;\n onClick && onClick(e);\n };\n\n handleSelectTheme = e => {\n const {\n themeFilter: {onChange}\n } = this.props;\n onChange && onChange(e);\n };\n\n render() {\n const {\n mainTitle,\n mainSubtitle,\n recommendation = {},\n progressions = [],\n total,\n engines = [],\n themeFilter = {},\n loading\n } = this.props;\n const {skin} = this.context;\n\n const primary = get('common.primary', skin);\n const loader = loading ? (\n <div className={style.loader}>\n <Loader />\n </div>\n ) : null;\n const allProgressions = progressions.map(progression => (\n <ProgressionItem
|
|
1
|
+
{"version":3,"file":"index.js","names":["Progression","React","Component","constructor","props","context","handleClick","e","recommendation","stopPropagation","preventDefault","onClick","handleSelectTheme","themeFilter","onChange","bind","render","mainTitle","mainSubtitle","progressions","adaptiveAriaLabel","total","engines","loading","skin","primary","loader","style","allProgressions","map","progression","ref","coreProgression","core","themeSelect","options","selectBorder","select","recommendationSection","recommendationWrapper","title","subtitle","classnames","course","innerHTML","__html","courseTitle","cta","backgroundColor","default","headerProgression","wrapperCta","wrapperProgression","contextTypes","Provider","childContextTypes","propTypes","PropTypes","string","isRequired","shape","label","stars","number","arrayOf","EngineStars","bool","ProgressionItem","Select","func"],"sources":["../../../src/template/activity/index.js"],"sourcesContent":["import React from 'react';\nimport {get, omit, isEmpty} from 'lodash/fp';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport Provider from '../../atom/provider';\nimport Button from '../../atom/button';\nimport Select from '../../atom/select';\nimport Loader from '../../atom/loader';\nimport ProgressionItem from './progression-item';\nimport EngineStars from './engine-stars';\nimport StarsSummary from './stars-summary';\nimport style from './style.css';\n\nclass Progression extends React.Component {\n static propTypes = {\n mainTitle: PropTypes.string.isRequired,\n mainSubtitle: PropTypes.string.isRequired,\n adaptiveAriaLabel: PropTypes.string,\n total: PropTypes.shape({\n label: PropTypes.string.isRequired,\n stars: PropTypes.number.isRequired\n }).isRequired,\n engines: PropTypes.arrayOf(PropTypes.shape(EngineStars.propTypes)),\n loading: PropTypes.bool.isRequired,\n progressions: PropTypes.arrayOf(\n PropTypes.shape({...ProgressionItem.propTypes, ref: PropTypes.string.isRequired})\n ),\n themeFilter: PropTypes.shape({\n options: Select.propTypes.options.isRequired,\n onChange: Select.propTypes.onChange\n }),\n recommendation: PropTypes.shape({\n cta: PropTypes.string.isRequired,\n title: PropTypes.string.isRequired,\n subtitle: PropTypes.string.isRequired,\n courseTitle: PropTypes.string.isRequired,\n onClick: PropTypes.func\n })\n };\n\n static contextTypes = {\n skin: Provider.childContextTypes.skin\n };\n\n constructor(props, context) {\n super(props, context);\n this.handleClick = this.handleClick.bind(this);\n this.handleSelectTheme = this.handleSelectTheme.bind(this);\n }\n\n handleClick = e => {\n const {recommendation} = this.props;\n e.stopPropagation();\n e.preventDefault();\n const {onClick} = recommendation;\n onClick && onClick(e);\n };\n\n handleSelectTheme = e => {\n const {\n themeFilter: {onChange}\n } = this.props;\n onChange && onChange(e);\n };\n\n render() {\n const {\n mainTitle,\n mainSubtitle,\n recommendation = {},\n progressions = [],\n adaptiveAriaLabel,\n total,\n engines = [],\n themeFilter = {},\n loading\n } = this.props;\n const {skin} = this.context;\n\n const primary = get('common.primary', skin);\n const loader = loading ? (\n <div className={style.loader}>\n <Loader />\n </div>\n ) : null;\n const allProgressions = progressions.map(progression => (\n <ProgressionItem\n {...omit(['ref'], progression)}\n key={progression.ref}\n adaptiveAriaLabel={adaptiveAriaLabel}\n />\n ));\n\n const coreProgression = (\n <div data-name=\"activityCore\" className={style.core}>\n {allProgressions}\n </div>\n );\n const themeSelect = !isEmpty(themeFilter.options) ? (\n <Select\n borderClassName={style.selectBorder}\n className={style.select}\n theme=\"thematiques\"\n options={themeFilter.options}\n onChange={this.handleSelectTheme}\n />\n ) : null;\n const recommendationSection = !isEmpty(recommendation) ? (\n <div className={style.recommendationWrapper}>\n <p className={style.recommendationSection}>{recommendation.title} </p>\n <p className={style.recommendationSection}>\n <span>{recommendation.subtitle} </span>\n <span\n className={classnames(style.course, style.innerHTML)}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: recommendation.courseTitle}}\n />\n </p>\n <Button\n type=\"link\"\n onClick={this.handleClick}\n submitValue={recommendation.cta}\n style={{\n backgroundColor: primary\n }}\n className={style.cta}\n />\n </div>\n ) : null;\n return (\n <div className={style.default}>\n <div data-name=\"activity-header\">\n <div className={style.mainTitle}>\n <span>{mainTitle}</span> {mainSubtitle}\n </div>\n <div className={style.headerProgression}>\n <div className={style.wrapperCta}>\n {themeSelect}\n {recommendationSection}\n </div>\n <StarsSummary engines={engines} total={total} />\n </div>\n </div>\n <div className={style.wrapperProgression} data-name=\"activityList\">\n {coreProgression}\n {loader}\n </div>\n </div>\n );\n }\n}\n\nexport default Progression;\n"],"mappings":";;;;;;;;;;;AAAA;;AAEA;;AACA;;AACA;;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UG,KAAV,cAAoBO,wBAAA,CAAgBX,SAApC;IAA+CzB,GAAG,EAAE0B,kBAAA,CAAUC,MAAV,CAAiBC;EAArE,GADY,CAVG;EAajB9C,WAAW,EAAE4C,kBAAA,CAAUG,KAAV,CAAgB;IAC3BzB,OAAO,EAAEiC,eAAA,CAAOZ,SAAP,CAAiBrB,OAAjB,CAAyBwB,UADP;IAE3B7C,QAAQ,EAAEsD,eAAA,CAAOZ,SAAP,CAAiB1C;EAFA,CAAhB,CAbI;EAiBjBN,cAAc,EAAEiD,kBAAA,CAAUG,KAAV,CAAgB;IAC9Bb,GAAG,EAAEU,kBAAA,CAAUC,MAAV,CAAiBC,UADQ;IAE9BnB,KAAK,EAAEiB,kBAAA,CAAUC,MAAV,CAAiBC,UAFM;IAG9BlB,QAAQ,EAAEgB,kBAAA,CAAUC,MAAV,CAAiBC,UAHG;IAI9Bb,WAAW,EAAEW,kBAAA,CAAUC,MAAV,CAAiBC,UAJA;IAK9BhD,OAAO,EAAE8C,kBAAA,CAAUY;EALW,CAAhB;AAjBC,C;eA0INrE,W"}
|
|
@@ -10,6 +10,7 @@ declare namespace ProgressionItem {
|
|
|
10
10
|
const label: PropTypes.Validator<string>;
|
|
11
11
|
const level: PropTypes.Validator<string>;
|
|
12
12
|
const state: PropTypes.Validator<string>;
|
|
13
|
+
const adaptiveAriaLabel: PropTypes.Requireable<string>;
|
|
13
14
|
const type: PropTypes.Validator<string>;
|
|
14
15
|
const adaptive: PropTypes.Validator<boolean>;
|
|
15
16
|
const onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progression-item.d.ts","sourceRoot":"","sources":["../../../src/template/activity/progression-item.js"],"names":[],"mappings":";AAmCA,
|
|
1
|
+
{"version":3,"file":"progression-item.d.ts","sourceRoot":"","sources":["../../../src/template/activity/progression-item.js"],"names":[],"mappings":";AAmCA,wEAyFC"}
|
|
@@ -56,7 +56,8 @@ const ProgressionItem = (props, context) => {
|
|
|
56
56
|
maxStars,
|
|
57
57
|
state,
|
|
58
58
|
type,
|
|
59
|
-
steps = 0
|
|
59
|
+
steps = 0,
|
|
60
|
+
adaptiveAriaLabel
|
|
60
61
|
} = props;
|
|
61
62
|
const dark = (0, _get2.default)('common.dark', skin);
|
|
62
63
|
const primary = (0, _get2.default)('common.primary', skin);
|
|
@@ -69,7 +70,8 @@ const ProgressionItem = (props, context) => {
|
|
|
69
70
|
}
|
|
70
71
|
}, /*#__PURE__*/_react.default.createElement(_novaIcons.NovaCompositionCoorpacademyAdaptive, {
|
|
71
72
|
color: white,
|
|
72
|
-
height: 14
|
|
73
|
+
height: 14,
|
|
74
|
+
"aria-label": adaptiveAriaLabel
|
|
73
75
|
})) : null;
|
|
74
76
|
const handleCTAClick = (0, _react.useMemo)(() => e => {
|
|
75
77
|
e.stopPropagation();
|
|
@@ -142,6 +144,7 @@ ProgressionItem.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
142
144
|
label: _propTypes.default.string.isRequired,
|
|
143
145
|
level: _propTypes.default.string.isRequired,
|
|
144
146
|
state: _propTypes.default.string.isRequired,
|
|
147
|
+
adaptiveAriaLabel: _propTypes.default.string,
|
|
145
148
|
type: _propTypes.default.string.isRequired,
|
|
146
149
|
adaptive: _propTypes.default.bool.isRequired,
|
|
147
150
|
onClick: _propTypes.default.func
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progression-item.js","names":["ICONS","chapter","TimerIcon","course","LearnerIcon","battle","BoltIcon","certification","CertificationIcon","article","ArticleIcon","scorm","ScormIcon","video","VideoIcon","podcast","PodcastIcon","review","RevisionIcon","ProgressionItem","props","context","skin","disabled","adaptive","completion","label","level","onClick","stars","maxStars","state","type","steps","dark","primary","white","IconType","adaptiveIcon","style","backgroundColor","handleCTAClick","useMemo","e","stopPropagation","preventDefault","link","color","cta","classnames","progressionItem","wrapperTitle","iconType","innerHTML","__html","smallStars","iconStar","borderRadius","propTypes","PropTypes","number","isRequired","bool","string","func","contextTypes","Provider","childContextTypes"],"sources":["../../../src/template/activity/progression-item.js"],"sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {get, noop} from 'lodash/fp';\nimport {\n NovaCompositionNavigationArrowRight as ArrowRightIcon,\n NovaCompositionCoorpacademyStar as StarIcon,\n NovaCompositionCoorpacademyTimer as TimerIcon,\n NovaCompositionCoorpacademyBolt as BoltIcon,\n NovaSolidSchoolScienceGraduationHat as CertificationIcon,\n NovaCompositionCoorpacademyAdaptive as AdaptiveIcon,\n NovaSolidContentContentBook1 as LearnerIcon,\n NovaCompositionCoorpacademyScorm as ScormIcon,\n NovaCompositionCoorpacademyArticle as ArticleIcon,\n NovaCompositionCoorpacademyVideo as VideoIcon,\n NovaCompositionCoorpacademyMicrophone as PodcastIcon,\n NovaCompositionCoorpacademyRevision as RevisionIcon\n} from '@coorpacademy/nova-icons';\nimport Provider from '../../atom/provider';\nimport ProgressBar from '../../molecule/progress-bar';\nimport Link from '../../atom/link';\nimport style from './progression-item.css';\n\nconst ICONS = {\n chapter: TimerIcon,\n course: LearnerIcon,\n battle: BoltIcon,\n certification: CertificationIcon,\n article: ArticleIcon,\n scorm: ScormIcon,\n video: VideoIcon,\n podcast: PodcastIcon,\n review: RevisionIcon\n};\n\nconst ProgressionItem = (props, context) => {\n const {skin} = context;\n const {\n disabled = false,\n adaptive,\n completion,\n label,\n level,\n onClick = noop,\n stars,\n maxStars,\n state,\n type,\n steps = 0\n } = props;\n\n const dark = get('common.dark', skin);\n const primary = get('common.primary', skin);\n const white = get('common.white', skin);\n const IconType = ICONS[type];\n\n const adaptiveIcon = adaptive ? (\n <div\n className={style.adaptiveIcon}\n style={{\n backgroundColor: primary\n }}\n >\n <AdaptiveIcon color={white} height={14} />\n </div>\n ) : null;\n\n const handleCTAClick = useMemo(\n () => e => {\n e.stopPropagation();\n e.preventDefault();\n onClick && onClick(e);\n },\n [onClick]\n );\n\n const link = disabled ? null : (\n <Link style={{color: primary}} onClick={handleCTAClick} data-progression-state={state}>\n <span className={style.cta}>\n {state} <ArrowRightIcon color={primary} height={12} width={20} />\n </span>\n </Link>\n );\n\n return (\n <div className={classnames(style.progressionItem, disabled ? style.disabled : '')}>\n <div className={style.wrapperTitle}>\n <IconType className={style.iconType} color={dark} />\n <div data-name=\"activityLabel\" className={style.label} title={label}>\n <div\n className={style.innerHTML}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: label}}\n />\n {adaptiveIcon}\n </div>\n\n <div\n data-name=\"activityStars\"\n className={style.stars}\n style={{\n color: primary\n }}\n >\n {stars}\n {maxStars ? ' /' : null}\n {maxStars ? <span className={style.smallStars}>{maxStars}</span> : null}{' '}\n <StarIcon className={style.iconStar} color={primary} />\n </div>\n </div>\n <ProgressBar\n className={style.completion}\n value={completion * 100}\n max={100}\n steps={steps}\n style={{backgroundColor: primary, borderRadius: 0}}\n />\n <div className={style.state}>\n {link}\n <span className={style.level}>{level}</span>\n </div>\n </div>\n );\n};\n\nProgressionItem.propTypes = {\n completion: PropTypes.number.isRequired,\n stars: PropTypes.number.isRequired,\n maxStars: PropTypes.number,\n steps: PropTypes.number,\n disabled: PropTypes.bool,\n label: PropTypes.string.isRequired,\n level: PropTypes.string.isRequired,\n state: PropTypes.string.isRequired,\n type: PropTypes.string.isRequired,\n adaptive: PropTypes.bool.isRequired,\n onClick: PropTypes.func\n};\n\nProgressionItem.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nexport default ProgressionItem;\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AAcA;;AACA;;AACA;;AACA;;;;;;;;AAEA,MAAMA,KAAK,GAAG;EACZC,OAAO,EAAEC,2CADG;EAEZC,MAAM,EAAEC,uCAFI;EAGZC,MAAM,EAAEC,0CAHI;EAIZC,aAAa,EAAEC,8CAJH;EAKZC,OAAO,EAAEC,6CALG;EAMZC,KAAK,EAAEC,2CANK;EAOZC,KAAK,EAAEC,2CAPK;EAQZC,OAAO,EAAEC,gDARG;EASZC,MAAM,EAAEC;AATI,CAAd;;AAYA,MAAMC,eAAe,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;EAC1C,MAAM;IAACC;EAAD,IAASD,OAAf;EACA,MAAM;IACJE,QAAQ,GAAG,KADP;IAEJC,QAFI;IAGJC,UAHI;IAIJC,KAJI;IAKJC,KALI;IAMJC,OAAO,iBANH;IAOJC,KAPI;IAQJC,QARI;IASJC,KATI;IAUJC,IAVI;IAWJC,KAAK,GAAG;
|
|
1
|
+
{"version":3,"file":"progression-item.js","names":["ICONS","chapter","TimerIcon","course","LearnerIcon","battle","BoltIcon","certification","CertificationIcon","article","ArticleIcon","scorm","ScormIcon","video","VideoIcon","podcast","PodcastIcon","review","RevisionIcon","ProgressionItem","props","context","skin","disabled","adaptive","completion","label","level","onClick","stars","maxStars","state","type","steps","adaptiveAriaLabel","dark","primary","white","IconType","adaptiveIcon","style","backgroundColor","handleCTAClick","useMemo","e","stopPropagation","preventDefault","link","color","cta","classnames","progressionItem","wrapperTitle","iconType","innerHTML","__html","smallStars","iconStar","borderRadius","propTypes","PropTypes","number","isRequired","bool","string","func","contextTypes","Provider","childContextTypes"],"sources":["../../../src/template/activity/progression-item.js"],"sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {get, noop} from 'lodash/fp';\nimport {\n NovaCompositionNavigationArrowRight as ArrowRightIcon,\n NovaCompositionCoorpacademyStar as StarIcon,\n NovaCompositionCoorpacademyTimer as TimerIcon,\n NovaCompositionCoorpacademyBolt as BoltIcon,\n NovaSolidSchoolScienceGraduationHat as CertificationIcon,\n NovaCompositionCoorpacademyAdaptive as AdaptiveIcon,\n NovaSolidContentContentBook1 as LearnerIcon,\n NovaCompositionCoorpacademyScorm as ScormIcon,\n NovaCompositionCoorpacademyArticle as ArticleIcon,\n NovaCompositionCoorpacademyVideo as VideoIcon,\n NovaCompositionCoorpacademyMicrophone as PodcastIcon,\n NovaCompositionCoorpacademyRevision as RevisionIcon\n} from '@coorpacademy/nova-icons';\nimport Provider from '../../atom/provider';\nimport ProgressBar from '../../molecule/progress-bar';\nimport Link from '../../atom/link';\nimport style from './progression-item.css';\n\nconst ICONS = {\n chapter: TimerIcon,\n course: LearnerIcon,\n battle: BoltIcon,\n certification: CertificationIcon,\n article: ArticleIcon,\n scorm: ScormIcon,\n video: VideoIcon,\n podcast: PodcastIcon,\n review: RevisionIcon\n};\n\nconst ProgressionItem = (props, context) => {\n const {skin} = context;\n const {\n disabled = false,\n adaptive,\n completion,\n label,\n level,\n onClick = noop,\n stars,\n maxStars,\n state,\n type,\n steps = 0,\n adaptiveAriaLabel\n } = props;\n\n const dark = get('common.dark', skin);\n const primary = get('common.primary', skin);\n const white = get('common.white', skin);\n const IconType = ICONS[type];\n\n const adaptiveIcon = adaptive ? (\n <div\n className={style.adaptiveIcon}\n style={{\n backgroundColor: primary\n }}\n >\n <AdaptiveIcon color={white} height={14} aria-label={adaptiveAriaLabel} />\n </div>\n ) : null;\n\n const handleCTAClick = useMemo(\n () => e => {\n e.stopPropagation();\n e.preventDefault();\n onClick && onClick(e);\n },\n [onClick]\n );\n\n const link = disabled ? null : (\n <Link style={{color: primary}} onClick={handleCTAClick} data-progression-state={state}>\n <span className={style.cta}>\n {state} <ArrowRightIcon color={primary} height={12} width={20} />\n </span>\n </Link>\n );\n\n return (\n <div className={classnames(style.progressionItem, disabled ? style.disabled : '')}>\n <div className={style.wrapperTitle}>\n <IconType className={style.iconType} color={dark} />\n <div data-name=\"activityLabel\" className={style.label} title={label}>\n <div\n className={style.innerHTML}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: label}}\n />\n {adaptiveIcon}\n </div>\n\n <div\n data-name=\"activityStars\"\n className={style.stars}\n style={{\n color: primary\n }}\n >\n {stars}\n {maxStars ? ' /' : null}\n {maxStars ? <span className={style.smallStars}>{maxStars}</span> : null}{' '}\n <StarIcon className={style.iconStar} color={primary} />\n </div>\n </div>\n <ProgressBar\n className={style.completion}\n value={completion * 100}\n max={100}\n steps={steps}\n style={{backgroundColor: primary, borderRadius: 0}}\n />\n <div className={style.state}>\n {link}\n <span className={style.level}>{level}</span>\n </div>\n </div>\n );\n};\n\nProgressionItem.propTypes = {\n completion: PropTypes.number.isRequired,\n stars: PropTypes.number.isRequired,\n maxStars: PropTypes.number,\n steps: PropTypes.number,\n disabled: PropTypes.bool,\n label: PropTypes.string.isRequired,\n level: PropTypes.string.isRequired,\n state: PropTypes.string.isRequired,\n adaptiveAriaLabel: PropTypes.string,\n type: PropTypes.string.isRequired,\n adaptive: PropTypes.bool.isRequired,\n onClick: PropTypes.func\n};\n\nProgressionItem.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nexport default ProgressionItem;\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AAcA;;AACA;;AACA;;AACA;;;;;;;;AAEA,MAAMA,KAAK,GAAG;EACZC,OAAO,EAAEC,2CADG;EAEZC,MAAM,EAAEC,uCAFI;EAGZC,MAAM,EAAEC,0CAHI;EAIZC,aAAa,EAAEC,8CAJH;EAKZC,OAAO,EAAEC,6CALG;EAMZC,KAAK,EAAEC,2CANK;EAOZC,KAAK,EAAEC,2CAPK;EAQZC,OAAO,EAAEC,gDARG;EASZC,MAAM,EAAEC;AATI,CAAd;;AAYA,MAAMC,eAAe,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;EAC1C,MAAM;IAACC;EAAD,IAASD,OAAf;EACA,MAAM;IACJE,QAAQ,GAAG,KADP;IAEJC,QAFI;IAGJC,UAHI;IAIJC,KAJI;IAKJC,KALI;IAMJC,OAAO,iBANH;IAOJC,KAPI;IAQJC,QARI;IASJC,KATI;IAUJC,IAVI;IAWJC,KAAK,GAAG,CAXJ;IAYJC;EAZI,IAaFd,KAbJ;EAeA,MAAMe,IAAI,GAAG,mBAAI,aAAJ,EAAmBb,IAAnB,CAAb;EACA,M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KAAK,EAAE2B,kBAAA,CAAUC,MAJS;EAK1BtC,QAAQ,EAAEqC,kBAAA,CAAUG,IALM;EAM1BrC,KAAK,EAAEkC,kBAAA,CAAUI,MAAV,CAAiBF,UANE;EAO1BnC,KAAK,EAAEiC,kBAAA,CAAUI,MAAV,CAAiBF,UAPE;EAQ1B/B,KAAK,EAAE6B,kBAAA,CAAUI,MAAV,CAAiBF,UARE;EAS1B5B,iBAAiB,EAAE0B,kBAAA,CAAUI,MATH;EAU1BhC,IAAI,EAAE4B,kBAAA,CAAUI,MAAV,CAAiBF,UAVG;EAW1BtC,QAAQ,EAAEoC,kBAAA,CAAUG,IAAV,CAAeD,UAXC;EAY1BlC,OAAO,EAAEgC,kBAAA,CAAUK;AAZO,CAA5B;AAeA9C,eAAe,CAAC+C,YAAhB,GAA+B;EAC7B5C,IAAI,EAAE6C,iBAAA,CAASC,iBAAT,CAA2B9C;AADJ,CAA/B;eAIeH,e"}
|
|
@@ -1,52 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { AppReviewProps } from './prop-types';
|
|
3
3
|
declare const AppReview: {
|
|
4
|
-
({ viewName,
|
|
4
|
+
({ viewName, slides }: AppReviewProps): JSX.Element;
|
|
5
5
|
propTypes: {
|
|
6
6
|
viewName: import("prop-types").Requireable<string>;
|
|
7
|
-
onboarding: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
8
|
-
'aria-label': import("prop-types").Requireable<string>;
|
|
9
|
-
reviewTitle: import("prop-types").Requireable<string>;
|
|
10
|
-
reviewText: import("prop-types").Requireable<string>;
|
|
11
|
-
labelsList: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
12
|
-
skills: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
13
|
-
text: import("prop-types").Requireable<string>;
|
|
14
|
-
tooltipText: import("prop-types").Requireable<string>;
|
|
15
|
-
}>>;
|
|
16
|
-
questions: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
17
|
-
text: import("prop-types").Requireable<string>;
|
|
18
|
-
tooltipText: import("prop-types").Requireable<string>;
|
|
19
|
-
}>>;
|
|
20
|
-
lifes: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
21
|
-
text: import("prop-types").Requireable<string>;
|
|
22
|
-
tooltipText: import("prop-types").Requireable<string>;
|
|
23
|
-
}>>;
|
|
24
|
-
allright: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
25
|
-
text: import("prop-types").Requireable<string>;
|
|
26
|
-
tooltipText: import("prop-types").Requireable<string>;
|
|
27
|
-
}>>;
|
|
28
|
-
}>>;
|
|
29
|
-
}>>;
|
|
30
|
-
skills: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
31
|
-
'aria-label': import("prop-types").Requireable<string>;
|
|
32
|
-
title: import("prop-types").Requireable<string>;
|
|
33
|
-
isLoading: import("prop-types").Requireable<boolean>;
|
|
34
|
-
isLoadingAriaLabel: import("prop-types").Requireable<string>;
|
|
35
|
-
listSkills: import("prop-types").Requireable<(import("prop-types").InferProps<{
|
|
36
|
-
'aria-label': import("prop-types").Requireable<string>;
|
|
37
|
-
skillTitle: import("prop-types").Requireable<string>;
|
|
38
|
-
skillAriaLabel: import("prop-types").Requireable<string>;
|
|
39
|
-
buttonLabel: import("prop-types").Requireable<string>;
|
|
40
|
-
buttonAriaLabel: import("prop-types").Requireable<string>;
|
|
41
|
-
reviseLabel: import("prop-types").Requireable<string>;
|
|
42
|
-
reviseAriaLabel: import("prop-types").Requireable<string>;
|
|
43
|
-
isCustom: import("prop-types").Requireable<boolean>;
|
|
44
|
-
onClick: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
45
|
-
}> | null | undefined)[]>;
|
|
46
|
-
titleNoSkills: import("prop-types").Requireable<string>;
|
|
47
|
-
textNoSkills: import("prop-types").Requireable<string>;
|
|
48
|
-
iconSkillAriaLabel: import("prop-types").Requireable<string>;
|
|
49
|
-
}>>;
|
|
50
7
|
slides: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
51
8
|
header: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
52
9
|
steps: import("prop-types").Requireable<(import("prop-types").InferProps<{
|
|
@@ -467,7 +424,7 @@ declare const AppReview: {
|
|
|
467
424
|
'aria-label': import("prop-types").Requireable<string>;
|
|
468
425
|
'data-name': import("prop-types").Requireable<string>;
|
|
469
426
|
animationLottie: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
470
|
-
'aria-label': import("prop-types").
|
|
427
|
+
'aria-label': import("prop-types").Requireable<string>;
|
|
471
428
|
'data-name': import("prop-types").Requireable<string>;
|
|
472
429
|
animationSrc: import("prop-types").Validator<string>;
|
|
473
430
|
loop: import("prop-types").Requireable<boolean>;
|
|
@@ -488,7 +445,7 @@ declare const AppReview: {
|
|
|
488
445
|
'aria-label': import("prop-types").Requireable<string>;
|
|
489
446
|
'data-name': import("prop-types").Requireable<string>;
|
|
490
447
|
animationLottie: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
491
|
-
'aria-label': import("prop-types").
|
|
448
|
+
'aria-label': import("prop-types").Requireable<string>;
|
|
492
449
|
'data-name': import("prop-types").Requireable<string>;
|
|
493
450
|
animationSrc: import("prop-types").Validator<string>;
|
|
494
451
|
loop: import("prop-types").Requireable<boolean>;
|
|
@@ -516,7 +473,7 @@ declare const AppReview: {
|
|
|
516
473
|
'aria-label': import("prop-types").Requireable<string>;
|
|
517
474
|
'data-name': import("prop-types").Requireable<string>;
|
|
518
475
|
animationLottie: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
519
|
-
'aria-label': import("prop-types").
|
|
476
|
+
'aria-label': import("prop-types").Requireable<string>;
|
|
520
477
|
'data-name': import("prop-types").Requireable<string>;
|
|
521
478
|
animationSrc: import("prop-types").Validator<string>;
|
|
522
479
|
loop: import("prop-types").Requireable<boolean>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/app-review/index.tsx"],"names":[],"mappings":";
|
|
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"}
|
|
@@ -7,10 +7,6 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
7
7
|
|
|
8
8
|
var _loader = _interopRequireDefault(require("../../atom/loader"));
|
|
9
9
|
|
|
10
|
-
var _onboarding = _interopRequireDefault(require("./onboarding"));
|
|
11
|
-
|
|
12
|
-
var _skills = _interopRequireDefault(require("./skills"));
|
|
13
|
-
|
|
14
10
|
var _player = _interopRequireDefault(require("./player"));
|
|
15
11
|
|
|
16
12
|
var _propTypes = _interopRequireDefault(require("./prop-types"));
|
|
@@ -19,17 +15,9 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
19
15
|
|
|
20
16
|
const AppReview = ({
|
|
21
17
|
viewName,
|
|
22
|
-
onboarding,
|
|
23
|
-
skills,
|
|
24
18
|
slides
|
|
25
19
|
}) => {
|
|
26
20
|
switch (viewName) {
|
|
27
|
-
case 'skills':
|
|
28
|
-
return /*#__PURE__*/_react.default.createElement(_skills.default, skills);
|
|
29
|
-
|
|
30
|
-
case 'onboarding':
|
|
31
|
-
return /*#__PURE__*/_react.default.createElement(_onboarding.default, onboarding);
|
|
32
|
-
|
|
33
21
|
case 'slides':
|
|
34
22
|
return /*#__PURE__*/_react.default.createElement(_player.default, slides);
|
|
35
23
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["AppReview","viewName","
|
|
1
|
+
{"version":3,"file":"index.js","names":["AppReview","viewName","slides","propTypes"],"sources":["../../../src/template/app-review/index.tsx"],"sourcesContent":["import React from 'react';\nimport Loader from '../../atom/loader';\nimport Player from './player';\nimport propTypes, {AppReviewProps} from './prop-types';\n\nconst AppReview = ({viewName, slides}: AppReviewProps) => {\n switch (viewName) {\n case 'slides':\n return <Player {...slides} />;\n default:\n return <Loader />;\n }\n};\n\nAppReview.propTypes = propTypes;\n\nexport default AppReview;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;;;AAEA,MAAMA,SAAS,GAAG,CAAC;EAACC,QAAD;EAAWC;AAAX,CAAD,KAAwC;EACxD,QAAQD,QAAR;IACE,KAAK,QAAL;MACE,oBAAO,6BAAC,eAAD,EAAYC,MAAZ,CAAP;;IACF;MACE,oBAAO,6BAAC,eAAD,OAAP;EAJJ;AAMD,CAPD;;AASAF,SAAS,CAACG,SAAV,2CAAsBA,kBAAtB;eAEeH,S"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../src/template/app-review/index.native.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAC,cAAc,EAAC,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../src/template/app-review/index.native.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAC,cAAc,EAAC,MAAM,cAAc,CAAC;AAsB5C,QAAA,MAAM,SAAS,UAAW,cAAc,gBAsBvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -9,8 +9,6 @@ var _reactNative = require("react-native");
|
|
|
9
9
|
|
|
10
10
|
var _player = _interopRequireDefault(require("./player"));
|
|
11
11
|
|
|
12
|
-
var _skills = _interopRequireDefault(require("./skills"));
|
|
13
|
-
|
|
14
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
13
|
|
|
16
14
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -27,16 +25,9 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
27
25
|
|
|
28
26
|
const Switch = ({
|
|
29
27
|
viewName,
|
|
30
|
-
skills,
|
|
31
28
|
slides
|
|
32
29
|
}) => {
|
|
33
30
|
switch (viewName) {
|
|
34
|
-
case 'onboarding':
|
|
35
|
-
return /*#__PURE__*/_react.default.createElement(_reactNative.Text, null, "@todo view onboarding");
|
|
36
|
-
|
|
37
|
-
case 'skills':
|
|
38
|
-
return /*#__PURE__*/_react.default.createElement(_skills.default, skills);
|
|
39
|
-
|
|
40
31
|
case 'slides':
|
|
41
32
|
return /*#__PURE__*/_react.default.createElement(_player.default, slides);
|
|
42
33
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.js","names":["styles","StyleSheet","create","rootView","flex","alignItems","justifyContent","Switch","viewName","
|
|
1
|
+
{"version":3,"file":"index.native.js","names":["styles","StyleSheet","create","rootView","flex","alignItems","justifyContent","Switch","viewName","slides","AppReview","props","navigateBack","useEffect","backAction","backHandler","BackHandler","addEventListener","remove"],"sources":["../../../src/template/app-review/index.native.tsx"],"sourcesContent":["import React, {useEffect} from 'react';\nimport {Text, StyleSheet, View, BackHandler} from 'react-native';\nimport {AppReviewProps} from './prop-types';\nimport Player from './player';\n\nconst styles = StyleSheet.create({\n rootView: {\n flex: 1,\n alignItems: 'center',\n justifyContent: 'center'\n }\n});\n\nconst Switch = ({viewName, slides}: AppReviewProps) => {\n switch (viewName) {\n case 'slides':\n return <Player {...slides} />;\n case 'loader':\n return <Text>@todo loader</Text>;\n default:\n return <Text>unknown viewname: {viewName}</Text>;\n }\n};\n\nconst AppReview = (props: AppReviewProps) => {\n const {navigateBack} = props;\n\n useEffect(() => {\n const backAction = () => {\n if (navigateBack) {\n navigateBack();\n return true;\n }\n };\n\n // https://reactnative.dev/docs/backhandler\n const backHandler = BackHandler.addEventListener('hardwareBackPress', backAction);\n\n return () => backHandler.remove();\n }, [navigateBack]);\n\n return (\n <View style={styles.rootView}>\n <Switch {...props} />\n </View>\n );\n};\n\nexport default AppReview;\n"],"mappings":";;;;;AAAA;;AACA;;AAEA;;;;;;;;AAEA,MAAMA,MAAM,GAAGC,uBAAA,CAAWC,MAAX,CAAkB;EAC/BC,QAAQ,EAAE;IACRC,IAAI,EAAE,CADE;IAERC,UAAU,EAAE,QAFJ;IAGRC,cAAc,EAAE;EAHR;AADqB,CAAlB,CAAf;;AAQA,MAAMC,MAAM,GAAG,CAAC;EAACC,QAAD;EAAWC;AAAX,CAAD,KAAwC;EACrD,QAAQD,QAAR;IACE,KAAK,QAAL;MACE,oBAAO,6BAAC,eAAD,EAAYC,MAAZ,CAAP;;IACF,KAAK,QAAL;MACE,oBAAO,6BAAC,iBAAD,uBAAP;;IACF;MACE,oBAAO,6BAAC,iBAAD,8BAAyBD,QAAzB,CAAP;EANJ;AAQD,CATD;;AAWA,MAAME,SAAS,GAAIC,KAAD,IAA2B;EAC3C,MAAM;IAACC;EAAD,IAAiBD,KAAvB;EAEA,IAAAE,gBAAA,EAAU,MAAM;IACd,MAAMC,UAAU,GAAG,MAAM;MACvB,IAAIF,YAAJ,EAAkB;QAChBA,YAAY;QACZ,OAAO,IAAP;MACD;IACF,CALD,CADc,CAQd;;;IACA,MAAMG,WAAW,GAAGC,wBAAA,CAAYC,gBAAZ,CAA6B,mBAA7B,EAAkDH,UAAlD,CAApB;;IAEA,OAAO,MAAMC,WAAW,CAACG,MAAZ,EAAb;EACD,CAZD,EAYG,CAACN,YAAD,CAZH;EAcA,oBACE,6BAAC,iBAAD;IAAM,KAAK,EAAEZ,MAAM,CAACG;EAApB,gBACE,6BAAC,MAAD,EAAYQ,KAAZ,CADF,CADF;AAKD,CAtBD;;eAwBeD,S"}
|
|
@@ -423,7 +423,7 @@ declare const propTypes: {
|
|
|
423
423
|
'aria-label': PropTypes.Requireable<string>;
|
|
424
424
|
'data-name': PropTypes.Requireable<string>;
|
|
425
425
|
animationLottie: PropTypes.Requireable<PropTypes.InferProps<{
|
|
426
|
-
'aria-label': PropTypes.
|
|
426
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
427
427
|
'data-name': PropTypes.Requireable<string>;
|
|
428
428
|
animationSrc: PropTypes.Validator<string>;
|
|
429
429
|
loop: PropTypes.Requireable<boolean>;
|
|
@@ -444,7 +444,7 @@ declare const propTypes: {
|
|
|
444
444
|
'aria-label': PropTypes.Requireable<string>;
|
|
445
445
|
'data-name': PropTypes.Requireable<string>;
|
|
446
446
|
animationLottie: PropTypes.Requireable<PropTypes.InferProps<{
|
|
447
|
-
'aria-label': PropTypes.
|
|
447
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
448
448
|
'data-name': PropTypes.Requireable<string>;
|
|
449
449
|
animationSrc: PropTypes.Validator<string>;
|
|
450
450
|
loop: PropTypes.Requireable<boolean>;
|
|
@@ -472,7 +472,7 @@ declare const propTypes: {
|
|
|
472
472
|
'aria-label': PropTypes.Requireable<string>;
|
|
473
473
|
'data-name': PropTypes.Requireable<string>;
|
|
474
474
|
animationLottie: PropTypes.Requireable<PropTypes.InferProps<{
|
|
475
|
-
'aria-label': PropTypes.
|
|
475
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
476
476
|
'data-name': PropTypes.Requireable<string>;
|
|
477
477
|
animationSrc: PropTypes.Validator<string>;
|
|
478
478
|
loop: PropTypes.Requireable<boolean>;
|
|
@@ -1,60 +1,13 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
|
-
import Onboarding from './onboarding';
|
|
3
|
-
import { ReviewSkillsProps } from './skills/prop-types';
|
|
4
2
|
import { ReviewPlayerProps } from './player/prop-types';
|
|
5
|
-
export declare type ViewName = '
|
|
3
|
+
export declare type ViewName = 'slides' | 'loader';
|
|
6
4
|
export declare type AppReviewProps = {
|
|
7
5
|
viewName: ViewName;
|
|
8
6
|
slides?: ReviewPlayerProps;
|
|
9
|
-
skills?: ReviewSkillsProps;
|
|
10
|
-
onboarding?: PropTypes.InferProps<typeof Onboarding.propTypes>;
|
|
11
7
|
navigateBack?: () => void;
|
|
12
8
|
};
|
|
13
9
|
declare const propTypes: {
|
|
14
10
|
viewName: PropTypes.Requireable<string>;
|
|
15
|
-
onboarding: PropTypes.Requireable<PropTypes.InferProps<{
|
|
16
|
-
'aria-label': PropTypes.Requireable<string>;
|
|
17
|
-
reviewTitle: PropTypes.Requireable<string>;
|
|
18
|
-
reviewText: PropTypes.Requireable<string>;
|
|
19
|
-
labelsList: PropTypes.Requireable<PropTypes.InferProps<{
|
|
20
|
-
skills: PropTypes.Requireable<PropTypes.InferProps<{
|
|
21
|
-
text: PropTypes.Requireable<string>;
|
|
22
|
-
tooltipText: PropTypes.Requireable<string>;
|
|
23
|
-
}>>;
|
|
24
|
-
questions: PropTypes.Requireable<PropTypes.InferProps<{
|
|
25
|
-
text: PropTypes.Requireable<string>;
|
|
26
|
-
tooltipText: PropTypes.Requireable<string>;
|
|
27
|
-
}>>;
|
|
28
|
-
lifes: PropTypes.Requireable<PropTypes.InferProps<{
|
|
29
|
-
text: PropTypes.Requireable<string>;
|
|
30
|
-
tooltipText: PropTypes.Requireable<string>;
|
|
31
|
-
}>>;
|
|
32
|
-
allright: PropTypes.Requireable<PropTypes.InferProps<{
|
|
33
|
-
text: PropTypes.Requireable<string>;
|
|
34
|
-
tooltipText: PropTypes.Requireable<string>;
|
|
35
|
-
}>>;
|
|
36
|
-
}>>;
|
|
37
|
-
}>>;
|
|
38
|
-
skills: PropTypes.Requireable<PropTypes.InferProps<{
|
|
39
|
-
'aria-label': PropTypes.Requireable<string>;
|
|
40
|
-
title: PropTypes.Requireable<string>;
|
|
41
|
-
isLoading: PropTypes.Requireable<boolean>;
|
|
42
|
-
isLoadingAriaLabel: PropTypes.Requireable<string>;
|
|
43
|
-
listSkills: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
44
|
-
'aria-label': PropTypes.Requireable<string>;
|
|
45
|
-
skillTitle: PropTypes.Requireable<string>;
|
|
46
|
-
skillAriaLabel: PropTypes.Requireable<string>;
|
|
47
|
-
buttonLabel: PropTypes.Requireable<string>;
|
|
48
|
-
buttonAriaLabel: PropTypes.Requireable<string>;
|
|
49
|
-
reviseLabel: PropTypes.Requireable<string>;
|
|
50
|
-
reviseAriaLabel: PropTypes.Requireable<string>;
|
|
51
|
-
isCustom: PropTypes.Requireable<boolean>;
|
|
52
|
-
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
53
|
-
}> | null | undefined)[]>;
|
|
54
|
-
titleNoSkills: PropTypes.Requireable<string>;
|
|
55
|
-
textNoSkills: PropTypes.Requireable<string>;
|
|
56
|
-
iconSkillAriaLabel: PropTypes.Requireable<string>;
|
|
57
|
-
}>>;
|
|
58
11
|
slides: PropTypes.Requireable<PropTypes.InferProps<{
|
|
59
12
|
header: PropTypes.Requireable<PropTypes.InferProps<{
|
|
60
13
|
steps: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
@@ -475,7 +428,7 @@ declare const propTypes: {
|
|
|
475
428
|
'aria-label': PropTypes.Requireable<string>;
|
|
476
429
|
'data-name': PropTypes.Requireable<string>;
|
|
477
430
|
animationLottie: PropTypes.Requireable<PropTypes.InferProps<{
|
|
478
|
-
'aria-label': PropTypes.
|
|
431
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
479
432
|
'data-name': PropTypes.Requireable<string>;
|
|
480
433
|
animationSrc: PropTypes.Validator<string>;
|
|
481
434
|
loop: PropTypes.Requireable<boolean>;
|
|
@@ -496,7 +449,7 @@ declare const propTypes: {
|
|
|
496
449
|
'aria-label': PropTypes.Requireable<string>;
|
|
497
450
|
'data-name': PropTypes.Requireable<string>;
|
|
498
451
|
animationLottie: PropTypes.Requireable<PropTypes.InferProps<{
|
|
499
|
-
'aria-label': PropTypes.
|
|
452
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
500
453
|
'data-name': PropTypes.Requireable<string>;
|
|
501
454
|
animationSrc: PropTypes.Validator<string>;
|
|
502
455
|
loop: PropTypes.Requireable<boolean>;
|
|
@@ -524,7 +477,7 @@ declare const propTypes: {
|
|
|
524
477
|
'aria-label': PropTypes.Requireable<string>;
|
|
525
478
|
'data-name': PropTypes.Requireable<string>;
|
|
526
479
|
animationLottie: PropTypes.Requireable<PropTypes.InferProps<{
|
|
527
|
-
'aria-label': PropTypes.
|
|
480
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
528
481
|
'data-name': PropTypes.Requireable<string>;
|
|
529
482
|
animationSrc: PropTypes.Validator<string>;
|
|
530
483
|
loop: PropTypes.Requireable<boolean>;
|
|
@@ -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;
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGd,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -5,10 +5,6 @@ exports.default = void 0;
|
|
|
5
5
|
|
|
6
6
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
7
7
|
|
|
8
|
-
var _onboarding = _interopRequireDefault(require("./onboarding"));
|
|
9
|
-
|
|
10
|
-
var _skills = _interopRequireDefault(require("./skills"));
|
|
11
|
-
|
|
12
8
|
var _player = _interopRequireDefault(require("./player"));
|
|
13
9
|
|
|
14
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -16,9 +12,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
16
12
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
17
13
|
|
|
18
14
|
const propTypes = {
|
|
19
|
-
viewName: _propTypes.default.oneOf(['
|
|
20
|
-
onboarding: _propTypes.default.shape(_extends({}, _onboarding.default.propTypes)),
|
|
21
|
-
skills: _propTypes.default.shape(_extends({}, _skills.default.propTypes)),
|
|
15
|
+
viewName: _propTypes.default.oneOf(['slides', 'loader']),
|
|
22
16
|
slides: _propTypes.default.shape(_extends({}, _player.default.propTypes))
|
|
23
17
|
};
|
|
24
18
|
var _default = propTypes;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prop-types.js","names":["propTypes","viewName","PropTypes","oneOf","
|
|
1
|
+
{"version":3,"file":"prop-types.js","names":["propTypes","viewName","PropTypes","oneOf","slides","shape","Player"],"sources":["../../../src/template/app-review/prop-types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport Player from './player';\nimport {ReviewPlayerProps} from './player/prop-types';\n\nexport type ViewName = 'slides' | 'loader';\n\nexport type AppReviewProps = {\n viewName: ViewName;\n slides?: ReviewPlayerProps;\n navigateBack?: () => void;\n};\n\nconst propTypes = {\n viewName: PropTypes.oneOf(['slides', 'loader']),\n slides: PropTypes.shape({...Player.propTypes})\n};\n\nexport default propTypes;\n"],"mappings":";;;;;AAAA;;AACA;;;;;;AAWA,MAAMA,SAAS,GAAG;EAChBC,QAAQ,EAAEC,kBAAA,CAAUC,KAAV,CAAgB,CAAC,QAAD,EAAW,QAAX,CAAhB,CADM;EAEhBC,MAAM,EAAEF,kBAAA,CAAUG,KAAV,cAAoBC,eAAA,CAAON,SAA3B;AAFQ,CAAlB;eAKeA,S"}
|
|
@@ -11,18 +11,22 @@ declare namespace ReviewDashboardSkills {
|
|
|
11
11
|
skills: PropTypes.Requireable<PropTypes.InferProps<{
|
|
12
12
|
text: PropTypes.Requireable<string>;
|
|
13
13
|
tooltipText: PropTypes.Requireable<string>;
|
|
14
|
+
moreDetailsAreaLabel: PropTypes.Requireable<string>;
|
|
14
15
|
}>>;
|
|
15
16
|
questions: PropTypes.Requireable<PropTypes.InferProps<{
|
|
16
17
|
text: PropTypes.Requireable<string>;
|
|
17
18
|
tooltipText: PropTypes.Requireable<string>;
|
|
19
|
+
moreDetailsAreaLabel: PropTypes.Requireable<string>;
|
|
18
20
|
}>>;
|
|
19
21
|
lifes: PropTypes.Requireable<PropTypes.InferProps<{
|
|
20
22
|
text: PropTypes.Requireable<string>;
|
|
21
23
|
tooltipText: PropTypes.Requireable<string>;
|
|
24
|
+
moreDetailsAreaLabel: PropTypes.Requireable<string>;
|
|
22
25
|
}>>;
|
|
23
26
|
allright: PropTypes.Requireable<PropTypes.InferProps<{
|
|
24
27
|
text: PropTypes.Requireable<string>;
|
|
25
28
|
tooltipText: PropTypes.Requireable<string>;
|
|
29
|
+
moreDetailsAreaLabel: PropTypes.Requireable<string>;
|
|
26
30
|
}>>;
|
|
27
31
|
}>>;
|
|
28
32
|
}>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coorpacademy/components",
|
|
3
|
-
"version": "11.2.
|
|
3
|
+
"version": "11.2.12",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -159,5 +159,5 @@
|
|
|
159
159
|
"last 2 versions",
|
|
160
160
|
"IE 11"
|
|
161
161
|
],
|
|
162
|
-
"gitHead": "
|
|
162
|
+
"gitHead": "b866ea9957d6381e453f6676aafb3346ececce1d"
|
|
163
163
|
}
|