@coorpacademy/components 11.2.9 → 11.2.11-alpha.10
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/clue/index.d.ts +1 -1
- 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/promo-code/index.d.ts +1 -1
- package/es/atom/provider/index.d.ts +1 -1
- package/es/atom/provider/index.js +1 -1
- package/es/atom/provider/index.js.map +1 -1
- package/es/atom/review-presentation/index.d.ts.map +1 -1
- package/es/atom/review-presentation/index.js +82 -20
- package/es/atom/review-presentation/index.js.map +1 -1
- package/es/atom/review-presentation/prop-types.d.ts +12 -0
- package/es/atom/review-presentation/prop-types.d.ts.map +1 -1
- package/es/atom/review-presentation/prop-types.js +3 -1
- package/es/atom/review-presentation/prop-types.js.map +1 -1
- package/es/atom/review-presentation/style.css +3 -14
- package/es/atom/select/index.d.ts +16 -17
- package/es/atom/select/index.d.ts.map +1 -1
- package/es/atom/select/index.js +7 -6
- package/es/atom/select/index.js.map +1 -1
- package/es/atom/tab-content/index.d.ts +1 -1
- package/es/molecule/answer/index.d.ts.map +1 -1
- package/es/molecule/answer/index.js +9 -1
- package/es/molecule/answer/index.js.map +1 -1
- package/es/molecule/battle-request/index.d.ts +1 -1
- package/es/molecule/brand-create-form/index.d.ts +1 -1
- package/es/molecule/brand-form-group/index.d.ts +2 -2
- package/es/molecule/card-with-button/index.d.ts +1 -1
- package/es/molecule/cookie-banner/index.d.ts +1 -1
- package/es/molecule/dashboard/cards-list/index.d.ts +1 -1
- package/es/molecule/discipline-partners/index.d.ts +1 -1
- package/es/molecule/external-content-button/index.d.ts +1 -1
- package/es/molecule/filters/index.d.ts +1 -1
- package/es/molecule/forum/forum-comment/index.d.ts +1 -1
- package/es/molecule/forum/forum-post/index.d.ts +1 -1
- package/es/molecule/payment-form/index.d.ts +1 -1
- package/es/molecule/pdf/index.d.ts +1 -1
- package/es/molecule/product-card/index.d.ts +1 -1
- package/es/molecule/questions/drop-down/index.d.ts +6 -5
- package/es/molecule/questions/drop-down/index.js +5 -2
- package/es/molecule/questions/drop-down/index.js.map +1 -1
- package/es/molecule/questions/template/index.d.ts +3 -1
- package/es/molecule/review-card-congrats/prop-types.d.ts +1 -1
- package/es/molecule/scope-content/index.d.ts +1 -1
- package/es/molecule/setup-section/index.d.ts +1 -1
- package/es/molecule/setup-slide/index.d.ts +1 -1
- package/es/molecule/setup-slider/index.d.ts +1 -1
- package/es/molecule/subscription-freemium/index.d.ts +1 -1
- package/es/molecule/subscription-premium/index.d.ts +1 -1
- package/es/molecule/table/index.d.ts +1 -1
- package/es/molecule/unsubscribe/index.d.ts +1 -1
- package/es/organism/brand-analytics/index.d.ts +1 -1
- package/es/organism/brand-form/index.d.ts +2 -2
- package/es/organism/cart/index.d.ts +1 -1
- package/es/organism/mooc-header/index.d.ts +1 -1
- package/es/organism/mooc-header/index.js +1 -1
- package/es/organism/mooc-header/index.js.map +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/settings/index.d.ts +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/organism/wizard-contents/index.d.ts +2 -2
- 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-player/player/slides/index.d.ts +2 -2
- package/es/template/app-player/player/slides/index.js +1 -1
- package/es/template/app-player/player/slides/index.js.map +1 -1
- package/es/template/app-review/index.d.ts +11 -3
- package/es/template/app-review/index.d.ts.map +1 -1
- package/es/template/app-review/player/prop-types.d.ts +3 -3
- package/es/template/app-review/prop-types.d.ts +11 -3
- package/es/template/app-review/prop-types.d.ts.map +1 -1
- package/es/template/app-review/template-context.d.ts +1 -0
- package/es/template/app-review/template-context.d.ts.map +1 -1
- package/es/template/app-review/template-context.js +2 -1
- package/es/template/app-review/template-context.js.map +1 -1
- package/es/template/back-office/brand-update/index.d.ts +4 -4
- package/es/template/battle-requests/index.d.ts +1 -1
- package/es/template/common/authors/index.d.ts +1 -1
- package/es/template/common/search-page/index.d.ts +1 -1
- package/es/template/review-dashboard-skills/index.d.ts +8 -0
- package/es/util/render-with-context.d.ts +1 -4
- package/es/util/render-with-context.d.ts.map +1 -1
- package/es/util/render-with-context.js +6 -6
- package/es/util/render-with-context.js.map +1 -1
- package/lib/atom/clue/index.d.ts +1 -1
- 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/promo-code/index.d.ts +1 -1
- package/lib/atom/provider/index.d.ts +1 -1
- package/lib/atom/provider/index.js +1 -1
- package/lib/atom/provider/index.js.map +1 -1
- package/lib/atom/review-presentation/index.d.ts.map +1 -1
- package/lib/atom/review-presentation/index.js +86 -20
- package/lib/atom/review-presentation/index.js.map +1 -1
- package/lib/atom/review-presentation/prop-types.d.ts +12 -0
- package/lib/atom/review-presentation/prop-types.d.ts.map +1 -1
- package/lib/atom/review-presentation/prop-types.js +3 -1
- package/lib/atom/review-presentation/prop-types.js.map +1 -1
- package/lib/atom/review-presentation/style.css +3 -14
- package/lib/atom/select/index.d.ts +16 -17
- package/lib/atom/select/index.d.ts.map +1 -1
- package/lib/atom/select/index.js +7 -6
- package/lib/atom/select/index.js.map +1 -1
- package/lib/atom/tab-content/index.d.ts +1 -1
- package/lib/molecule/answer/index.d.ts.map +1 -1
- package/lib/molecule/answer/index.js +10 -1
- package/lib/molecule/answer/index.js.map +1 -1
- package/lib/molecule/battle-request/index.d.ts +1 -1
- package/lib/molecule/brand-create-form/index.d.ts +1 -1
- package/lib/molecule/brand-form-group/index.d.ts +2 -2
- package/lib/molecule/card-with-button/index.d.ts +1 -1
- package/lib/molecule/cookie-banner/index.d.ts +1 -1
- package/lib/molecule/dashboard/cards-list/index.d.ts +1 -1
- package/lib/molecule/discipline-partners/index.d.ts +1 -1
- package/lib/molecule/external-content-button/index.d.ts +1 -1
- package/lib/molecule/filters/index.d.ts +1 -1
- package/lib/molecule/forum/forum-comment/index.d.ts +1 -1
- package/lib/molecule/forum/forum-post/index.d.ts +1 -1
- package/lib/molecule/payment-form/index.d.ts +1 -1
- package/lib/molecule/pdf/index.d.ts +1 -1
- package/lib/molecule/product-card/index.d.ts +1 -1
- package/lib/molecule/questions/drop-down/index.d.ts +6 -5
- package/lib/molecule/questions/drop-down/index.js +5 -2
- package/lib/molecule/questions/drop-down/index.js.map +1 -1
- package/lib/molecule/questions/template/index.d.ts +3 -1
- package/lib/molecule/review-card-congrats/prop-types.d.ts +1 -1
- package/lib/molecule/scope-content/index.d.ts +1 -1
- package/lib/molecule/setup-section/index.d.ts +1 -1
- package/lib/molecule/setup-slide/index.d.ts +1 -1
- package/lib/molecule/setup-slider/index.d.ts +1 -1
- package/lib/molecule/subscription-freemium/index.d.ts +1 -1
- package/lib/molecule/subscription-premium/index.d.ts +1 -1
- package/lib/molecule/table/index.d.ts +1 -1
- package/lib/molecule/unsubscribe/index.d.ts +1 -1
- package/lib/organism/brand-analytics/index.d.ts +1 -1
- package/lib/organism/brand-form/index.d.ts +2 -2
- package/lib/organism/cart/index.d.ts +1 -1
- package/lib/organism/mooc-header/index.d.ts +1 -1
- package/lib/organism/mooc-header/index.js +1 -1
- package/lib/organism/mooc-header/index.js.map +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/settings/index.d.ts +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/organism/wizard-contents/index.d.ts +2 -2
- 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-player/player/slides/index.d.ts +2 -2
- package/lib/template/app-player/player/slides/index.js +1 -1
- package/lib/template/app-player/player/slides/index.js.map +1 -1
- package/lib/template/app-review/index.d.ts +11 -3
- package/lib/template/app-review/index.d.ts.map +1 -1
- package/lib/template/app-review/player/prop-types.d.ts +3 -3
- package/lib/template/app-review/prop-types.d.ts +11 -3
- package/lib/template/app-review/prop-types.d.ts.map +1 -1
- package/lib/template/app-review/template-context.d.ts +1 -0
- package/lib/template/app-review/template-context.d.ts.map +1 -1
- package/lib/template/app-review/template-context.js +2 -1
- package/lib/template/app-review/template-context.js.map +1 -1
- package/lib/template/back-office/brand-update/index.d.ts +4 -4
- package/lib/template/battle-requests/index.d.ts +1 -1
- package/lib/template/common/authors/index.d.ts +1 -1
- package/lib/template/common/search-page/index.d.ts +1 -1
- package/lib/template/review-dashboard-skills/index.d.ts +8 -0
- package/lib/util/render-with-context.d.ts +1 -4
- package/lib/util/render-with-context.d.ts.map +1 -1
- package/lib/util/render-with-context.js +6 -6
- package/lib/util/render-with-context.js.map +1 -1
- package/locales/en/global.json +1 -0
- package/package.json +2 -2
- package/locales/.mtslconfig.json +0 -1
|
@@ -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"],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B5C,IAAI,EAAE6C,iBAAA,CAASC,iBAAT,CAA2B9C;AADJ,CAA/B;eAIeH,e"}
|
|
@@ -3,7 +3,7 @@ declare function SlidesPlayer(props: any, context: any): JSX.Element;
|
|
|
3
3
|
declare namespace SlidesPlayer {
|
|
4
4
|
export { CONTENT_TYPE as TYPE };
|
|
5
5
|
export namespace contextTypes {
|
|
6
|
-
const translate: PropTypes.
|
|
6
|
+
const translate: PropTypes.Requireable<(...args: any[]) => any>;
|
|
7
7
|
const skin: PropTypes.Requireable<PropTypes.InferProps<{
|
|
8
8
|
common: PropTypes.Requireable<{
|
|
9
9
|
[x: string]: any;
|
|
@@ -321,7 +321,7 @@ declare namespace MediaContent {
|
|
|
321
321
|
}
|
|
322
322
|
export { propTypes_6 as propTypes };
|
|
323
323
|
export namespace contextTypes_1 {
|
|
324
|
-
const translate_1: PropTypes.
|
|
324
|
+
const translate_1: PropTypes.Requireable<(...args: any[]) => any>;
|
|
325
325
|
export { translate_1 as translate };
|
|
326
326
|
}
|
|
327
327
|
export { contextTypes_1 as contextTypes };
|
|
@@ -439,7 +439,7 @@ const LoadingLayout = ({
|
|
|
439
439
|
}, popinError ? /*#__PURE__*/_react.default.createElement(_cmPopin.default, popinError) : /*#__PURE__*/_react.default.createElement(_loader.default, null));
|
|
440
440
|
|
|
441
441
|
LoadingLayout.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
442
|
-
popinError: _cmPopin.default.propTypes
|
|
442
|
+
popinError: _propTypes.default.shape(_cmPopin.default.propTypes)
|
|
443
443
|
} : {};
|
|
444
444
|
|
|
445
445
|
const LoadedLayout = _ref2 => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["MediaView","media","style","contextMedia","propTypes","Picture","src","ClueContent","props","context","text","starsDiff","onClickSeeClue","clueWrapper","PropTypes","string","number","func","Bar","total","color","current","_current","stepWidth","stepBar","backgroundColor","width","isRequired","ColorPropType","Step","step","stepCount","stepWrapper","shape","NewMedia","translate","onClick","guideWrapper","newMedia","contextTypes","Provider","childContextTypes","ReviewLesson","reviewLesson","AnswerContent","answerType","help","Answer","MediaContent","resources","starsToWin","count","Math","abs","resourcesWrapper","stars","ResourceBrowser","ContextImage","images","map","url","_id","arrayOf","ContextVideo","videos","videoId","childProps","VideoPlayer","CONTEXT_MEDIA","img","pdf","PDF","audio","Audio","video","ContextMedia","ContentType","type","classnames","contextWrapper","contextPdfWrapper","contextAudioWrapper","oneOfType","oneOf","ContextContent","slideContext","descriptionParagraphs","paragraphs","paragraph","index","contextDescription","innerHTML","__html","title","description","CONTENT_TYPE","answer","clue","Help","helpView","ValidateButton","cta","ctaWrapper","Cta","ContentLayout","typeClue","selectedTab","model","question","noPaddingRessources","contentWrapperNoPadding","contentWrapper","contextTitle","skin","LoadingLayout","popinError","loading","CMPopin","LoadedLayout","ErrorMessage","errorMsg","error","Content","bool","SlidesPlayer","header","buttons","showNewMedia","showReviewLesson","stepColor","mediaButton","wrapper","contentProgression","TYPE","Footer","Header","backgroundUrl","SrcPropType"],"sources":["../../../../../src/template/app-player/player/slides/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {compact, find, get, getOr, keys, omit, identity, max, pipe, split} from 'lodash/fp';\nimport {ColorPropType, SrcPropType} from '../../../../util/proptypes';\nimport Cta from '../../../../atom/cta';\nimport Picture from '../../../../atom/picture';\nimport Provider from '../../../../atom/provider';\nimport Clue from '../../../../atom/clue';\nimport Answer from '../../../../molecule/answer';\nimport Loader from '../../../../atom/loader';\nimport Swapper from '../../../../hoc/swapper';\nimport VideoPlayer from '../../../../molecule/video-player';\nimport PDF from '../../../../molecule/pdf';\nimport Audio from '../../../../molecule/audio';\nimport ResourceBrowser from '../../../../organism/resource-browser';\nimport CMPopin from '../../../../molecule/cm-popin';\nimport Footer from './footer';\nimport Header from './header';\nimport style from './style.css';\n\nconst MediaView = ({media}) => {\n return (\n <div className={style.contextMedia}>\n <Picture src={media} />\n </div>\n );\n};\n\nMediaView.propTypes = {\n media: Picture.propTypes.src\n};\n\n/*\n * Content types\n */\n\nconst ClueContent = (props, context) => {\n const {text, starsDiff, onClickSeeClue} = props;\n\n return (\n <div className={style.clueWrapper}>\n <Clue text={text} starsDiff={starsDiff} onClick={onClickSeeClue} />\n </div>\n );\n};\n\nClueContent.propTypes = {\n text: PropTypes.string,\n starsDiff: PropTypes.number,\n onClickSeeClue: PropTypes.func\n};\n\nconst Bar = ({total, color, current}) => {\n const _current = max([current, 0]);\n\n if (!total) {\n return null;\n }\n\n const stepWidth = (_current / total) * 100;\n\n return (\n <div\n className={style.stepBar}\n style={{\n backgroundColor: color,\n width: `${stepWidth}%`\n }}\n />\n );\n};\n\nBar.propTypes = {\n current: PropTypes.number.isRequired,\n total: PropTypes.number,\n color: ColorPropType\n};\n\nconst Step = ({step, color}) => {\n return (\n <div data-name=\"step\">\n <div data-name=\"counter\" className={style.stepCount}>\n <span style={{color}}>{step.current}</span>/{step.total}\n </div>\n <div className={style.stepWrapper}>\n <Swapper {...step} color={color} current={step.current - 1}>\n <Bar {...step} color={color} />\n </Swapper>\n </div>\n </div>\n );\n};\n\nStep.propTypes = {\n step: PropTypes.shape({\n current: Bar.propTypes.current,\n total: Bar.propTypes.total\n }),\n color: ColorPropType\n};\n\nconst NewMedia = (props, context) => {\n const {translate} = context;\n const {onClick, step} = props;\n const current = get('current', step);\n return (\n <div\n className={`${style.guideWrapper} ${style.newMedia}`}\n onClick={onClick}\n data-name=\"newMedia\"\n >\n <span>{translate(step === null || current === 1 ? 'See lesson' : 'New media')}</span>\n </div>\n );\n};\n\nNewMedia.propTypes = {\n onClick: PropTypes.func,\n step: Step.propTypes.step\n};\n\nNewMedia.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nconst ReviewLesson = (props, context) => {\n const {translate} = context;\n const {onClick} = props;\n\n return (\n <div\n className={`${style.guideWrapper} ${style.reviewLesson}`}\n onClick={onClick}\n data-name=\"reviewLesson\"\n >\n <span>{translate('Review lesson')}</span>\n </div>\n );\n};\n\nReviewLesson.propTypes = {\n onClick: PropTypes.func\n};\n\nReviewLesson.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nconst AnswerContent = ({answerType, help}) => <Answer {...answerType} help={help} />;\n\nAnswerContent.propTypes = {\n answerType: PropTypes.shape(Answer.propTypes),\n help: PropTypes.string\n};\n\nconst MediaContent = (props, context) => {\n const {resources, starsDiff} = props;\n const {translate} = context;\n const starsToWin = translate('media_stars_to_win', {\n count: Math.abs(starsDiff)\n });\n\n return (\n <div className={style.resourcesWrapper}>\n <ResourceBrowser resources={resources} />\n <div className={style.stars}>{starsToWin}</div>\n </div>\n );\n};\n\nMediaContent.propTypes = {\n resources: ResourceBrowser.propTypes.resources,\n starsDiff: PropTypes.number\n};\n\nMediaContent.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nconst ContextImage = ({src}) => {\n const images = src.map(({url, _id}) => <MediaView key={_id} media={url} />);\n return <div>{images}</div>;\n};\n\nContextImage.propTypes = {\n src: PropTypes.arrayOf(\n PropTypes.shape({\n _id: PropTypes.string,\n url: PropTypes.string\n })\n )\n};\n\nconst ContextVideo = props => {\n const {src} = props;\n const videos = src.map(({videoId, ...childProps}) => (\n <VideoPlayer {...omit('id', childProps)} id={videoId} key={videoId} autoplay={false} />\n ));\n return <div>{videos}</div>;\n};\n\nContextVideo.propTypes = {\n src: PropTypes.arrayOf(PropTypes.shape(VideoPlayer.propTypes))\n};\n\nconst CONTEXT_MEDIA = {\n img: ContextImage,\n pdf: PDF,\n audio: Audio,\n video: ContextVideo\n};\n\nconst ContextMedia = ({media}) => {\n const ContentType = CONTEXT_MEDIA[media.type];\n return (\n <div\n data-name=\"contextMedia\"\n className={classnames(\n style.contextWrapper,\n media.type === 'pdf' ? style.contextPdfWrapper : null,\n media.type === 'audio' ? style.contextAudioWrapper : null\n )}\n >\n <ContentType {...media} />\n </div>\n );\n};\n\nContextMedia.propTypes = {\n media: PropTypes.oneOfType([\n PropTypes.shape({\n ...ContextImage.propTypes,\n type: PropTypes.oneOf(['img'])\n }),\n PropTypes.shape({\n ...PDF.propTypes,\n type: PropTypes.oneOf(['pdf'])\n }),\n PropTypes.shape({\n ...Audio.propTypes,\n type: PropTypes.oneOf(['audio'])\n }),\n PropTypes.shape({\n ...ContextVideo.propTypes,\n type: PropTypes.oneOf(['video'])\n })\n ])\n};\n\nconst ContextContent = ({slideContext}) => {\n const descriptionParagraphs = pipe(getOr('', 'description'), split('\\n'), compact)(slideContext);\n const paragraphs = descriptionParagraphs.map((paragraph, index) => (\n <p\n key={index}\n data-name=\"contextDescription\"\n className={classnames(style.contextDescription, style.innerHTML)}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: paragraph}}\n />\n ));\n return (\n <div className={style.context}>\n {get('media.type', slideContext) ? <ContextMedia media={slideContext.media} /> : null}\n {paragraphs}\n </div>\n );\n};\n\nContextContent.propTypes = {\n slideContext: PropTypes.shape({\n title: PropTypes.string,\n description: PropTypes.string,\n media: PropTypes.shape(ContextMedia.propTypes)\n })\n};\n\nconst CONTENT_TYPE = {\n answer: AnswerContent,\n clue: ClueContent,\n context: ContextContent,\n media: MediaContent\n};\n\nconst Help = ({help}) => (\n <div\n className={classnames(style.helpView, style.innerHTML)}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: help}}\n />\n);\n\nHelp.propTypes = {\n help: PropTypes.string\n};\n\nconst ValidateButton = ({cta}) => {\n if (!cta) {\n return null;\n }\n\n return (\n <div className={style.ctaWrapper}>\n <Cta {...cta} className={style.cta} />\n </div>\n );\n};\n\nValidateButton.propTypes = {\n cta: PropTypes.shape(Cta.propTypes)\n};\n\nconst ContentLayout = (props, context) => {\n const {\n typeClue: selectedTab,\n answerType: {model: {type} = {}} = {},\n question,\n help,\n slideContext\n } = props;\n const ContentType = CONTENT_TYPE[selectedTab];\n const noPaddingRessources =\n ContentType === MediaContent ? `${style.contentWrapperNoPadding}` : `${style.contentWrapper}`;\n\n return (\n <div className={noPaddingRessources} style={{backgroundColor: 'white'}}>\n <div\n data-name=\"question\"\n className={classnames(\n selectedTab === 'context' ? style.contextTitle : style.question,\n style.innerHTML\n )}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{\n __html: selectedTab === 'context' ? slideContext.title : question\n }}\n />\n {help && selectedTab === 'answer' && type !== 'qcmDrag' ? <Help help={help} /> : null}\n <ContentType {...props} />\n <ValidateButton {...props} />\n </div>\n );\n};\n\nContentLayout.contextTypes = {\n translate: Provider.childContextTypes.translate,\n skin: Provider.childContextTypes.skin\n};\n\nContentLayout.propTypes = {\n typeClue: PropTypes.oneOf(keys(CONTENT_TYPE)),\n question: PropTypes.string,\n ...ValidateButton.propTypes\n};\n\n/*\n * Loading\n */\n\nconst LoadingLayout = ({popinError}) => (\n <div className={style.loading}>{popinError ? <CMPopin {...popinError} /> : <Loader />}</div>\n);\n\nLoadingLayout.propTypes = {\n popinError: CMPopin.propTypes\n};\n\nconst LoadedLayout = ({question, step, ...props}) =>\n question ? <ContentLayout {...props} question={question} /> : <LoadingLayout {...props} />;\n\nLoadedLayout.propTypes = {\n ...ContentLayout.propTypes,\n question: ContentLayout.propTypes.question\n};\n\n/*\n * Errors\n */\n\nconst ErrorMessage = ({errorMsg}) => (\n <div className={style.contentWrapper}>\n <div className={style.error}>{errorMsg}</div>\n </div>\n);\n\nErrorMessage.propTypes = {\n errorMsg: PropTypes.string\n};\n\nconst Content = ({error, ...props}) =>\n error ? <ErrorMessage {...props} /> : <LoadedLayout {...props} />;\n\nContent.propTypes = {\n error: PropTypes.bool\n};\n\n/*\n * SlidesPlayer\n */\n\nconst SlidesPlayer = (props, context) => {\n const {header, step, buttons, showNewMedia = false, showReviewLesson = false} = props;\n const {skin} = context;\n const stepColor = get('common.primary', skin);\n const mediaButton = find({type: 'media'}, buttons) || {};\n const {onClick = identity} = mediaButton;\n return (\n <div className={style.wrapper} data-name=\"slidesPlayer\">\n {header ? <Header {...header} /> : null}\n <div className={style.contentProgression}>\n {step ? <Step step={step} color={stepColor} /> : null}\n {showNewMedia && !showReviewLesson ? <NewMedia onClick={onClick} step={step} /> : null}\n {showReviewLesson && !showNewMedia ? <ReviewLesson onClick={onClick} /> : null}\n <Content {...props} />\n </div>\n <Footer buttons={buttons} />\n </div>\n );\n};\n\nSlidesPlayer.TYPE = CONTENT_TYPE;\n\nSlidesPlayer.contextTypes = {\n translate: Provider.childContextTypes.translate,\n skin: Provider.childContextTypes.skin\n};\n\nSlidesPlayer.propTypes = {\n cta: ValidateButton.propTypes.cta,\n step: Step.propTypes.step,\n buttons: Footer.propTypes.buttons,\n header: PropTypes.shape(Header.propTypes),\n showNewMedia: PropTypes.bool,\n showReviewLesson: PropTypes.bool,\n backgroundUrl: SrcPropType,\n popinError: PropTypes.shape(CMPopin.propTypes)\n};\n\nexport default SlidesPlayer;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;AAEA,MAAMA,SAAS,GAAG,CAAC;EAACC;AAAD,CAAD,KAAa;EAC7B,oBACE;IAAK,SAAS,EAAEC,cAAA,CAAMC;EAAtB,gBACE,6BAAC,gBAAD;IAAS,GAAG,EAAEF;EAAd,EADF,CADF;AAKD,CAND;;AAQAD,SAAS,CAACI,SAAV,2CAAsB;EACpBH,KAAK,EAAEI,gBAAA,CAAQD,SAAR,CAAkBE;AADL,CAAtB;AAIA;AACA;AACA;;AAEA,MAAMC,WAAW,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;EACtC,MAAM;IAACC,IAAD;IAAOC,SAAP;IAAkBC;EAAlB,IAAoCJ,KAA1C;EAEA,oBACE;IAAK,SAAS,EAAEN,cAAA,CAAMW;EAAtB,gBACE,6BAAC,aAAD;IAAM,IAAI,EAAEH,IAAZ;IAAkB,SA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;EAOvBa,aAAa,EAAEC,sBAPQ;EAQvBtB,UAAU,EAAErG,kBAAA,CAAUmB,KAAV,CAAgBoF,gBAAA,CAAQjH,SAAxB;AARW,CAAzB;eAWewH,Y"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["MediaView","media","style","contextMedia","propTypes","Picture","src","ClueContent","props","context","text","starsDiff","onClickSeeClue","clueWrapper","PropTypes","string","number","func","Bar","total","color","current","_current","stepWidth","stepBar","backgroundColor","width","isRequired","ColorPropType","Step","step","stepCount","stepWrapper","shape","NewMedia","translate","onClick","guideWrapper","newMedia","contextTypes","Provider","childContextTypes","ReviewLesson","reviewLesson","AnswerContent","answerType","help","Answer","MediaContent","resources","starsToWin","count","Math","abs","resourcesWrapper","stars","ResourceBrowser","ContextImage","images","map","url","_id","arrayOf","ContextVideo","videos","videoId","childProps","VideoPlayer","CONTEXT_MEDIA","img","pdf","PDF","audio","Audio","video","ContextMedia","ContentType","type","classnames","contextWrapper","contextPdfWrapper","contextAudioWrapper","oneOfType","oneOf","ContextContent","slideContext","descriptionParagraphs","paragraphs","paragraph","index","contextDescription","innerHTML","__html","title","description","CONTENT_TYPE","answer","clue","Help","helpView","ValidateButton","cta","ctaWrapper","Cta","ContentLayout","typeClue","selectedTab","model","question","noPaddingRessources","contentWrapperNoPadding","contentWrapper","contextTitle","skin","LoadingLayout","popinError","loading","CMPopin","LoadedLayout","ErrorMessage","errorMsg","error","Content","bool","SlidesPlayer","header","buttons","showNewMedia","showReviewLesson","stepColor","mediaButton","wrapper","contentProgression","TYPE","Footer","Header","backgroundUrl","SrcPropType"],"sources":["../../../../../src/template/app-player/player/slides/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {compact, find, get, getOr, keys, omit, identity, max, pipe, split} from 'lodash/fp';\nimport {ColorPropType, SrcPropType} from '../../../../util/proptypes';\nimport Cta from '../../../../atom/cta';\nimport Picture from '../../../../atom/picture';\nimport Provider from '../../../../atom/provider';\nimport Clue from '../../../../atom/clue';\nimport Answer from '../../../../molecule/answer';\nimport Loader from '../../../../atom/loader';\nimport Swapper from '../../../../hoc/swapper';\nimport VideoPlayer from '../../../../molecule/video-player';\nimport PDF from '../../../../molecule/pdf';\nimport Audio from '../../../../molecule/audio';\nimport ResourceBrowser from '../../../../organism/resource-browser';\nimport CMPopin from '../../../../molecule/cm-popin';\nimport Footer from './footer';\nimport Header from './header';\nimport style from './style.css';\n\nconst MediaView = ({media}) => {\n return (\n <div className={style.contextMedia}>\n <Picture src={media} />\n </div>\n );\n};\n\nMediaView.propTypes = {\n media: Picture.propTypes.src\n};\n\n/*\n * Content types\n */\n\nconst ClueContent = (props, context) => {\n const {text, starsDiff, onClickSeeClue} = props;\n\n return (\n <div className={style.clueWrapper}>\n <Clue text={text} starsDiff={starsDiff} onClick={onClickSeeClue} />\n </div>\n );\n};\n\nClueContent.propTypes = {\n text: PropTypes.string,\n starsDiff: PropTypes.number,\n onClickSeeClue: PropTypes.func\n};\n\nconst Bar = ({total, color, current}) => {\n const _current = max([current, 0]);\n\n if (!total) {\n return null;\n }\n\n const stepWidth = (_current / total) * 100;\n\n return (\n <div\n className={style.stepBar}\n style={{\n backgroundColor: color,\n width: `${stepWidth}%`\n }}\n />\n );\n};\n\nBar.propTypes = {\n current: PropTypes.number.isRequired,\n total: PropTypes.number,\n color: ColorPropType\n};\n\nconst Step = ({step, color}) => {\n return (\n <div data-name=\"step\">\n <div data-name=\"counter\" className={style.stepCount}>\n <span style={{color}}>{step.current}</span>/{step.total}\n </div>\n <div className={style.stepWrapper}>\n <Swapper {...step} color={color} current={step.current - 1}>\n <Bar {...step} color={color} />\n </Swapper>\n </div>\n </div>\n );\n};\n\nStep.propTypes = {\n step: PropTypes.shape({\n current: Bar.propTypes.current,\n total: Bar.propTypes.total\n }),\n color: ColorPropType\n};\n\nconst NewMedia = (props, context) => {\n const {translate} = context;\n const {onClick, step} = props;\n const current = get('current', step);\n return (\n <div\n className={`${style.guideWrapper} ${style.newMedia}`}\n onClick={onClick}\n data-name=\"newMedia\"\n >\n <span>{translate(step === null || current === 1 ? 'See lesson' : 'New media')}</span>\n </div>\n );\n};\n\nNewMedia.propTypes = {\n onClick: PropTypes.func,\n step: Step.propTypes.step\n};\n\nNewMedia.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nconst ReviewLesson = (props, context) => {\n const {translate} = context;\n const {onClick} = props;\n\n return (\n <div\n className={`${style.guideWrapper} ${style.reviewLesson}`}\n onClick={onClick}\n data-name=\"reviewLesson\"\n >\n <span>{translate('Review lesson')}</span>\n </div>\n );\n};\n\nReviewLesson.propTypes = {\n onClick: PropTypes.func\n};\n\nReviewLesson.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nconst AnswerContent = ({answerType, help}) => <Answer {...answerType} help={help} />;\n\nAnswerContent.propTypes = {\n answerType: PropTypes.shape(Answer.propTypes),\n help: PropTypes.string\n};\n\nconst MediaContent = (props, context) => {\n const {resources, starsDiff} = props;\n const {translate} = context;\n const starsToWin = translate('media_stars_to_win', {\n count: Math.abs(starsDiff)\n });\n\n return (\n <div className={style.resourcesWrapper}>\n <ResourceBrowser resources={resources} />\n <div className={style.stars}>{starsToWin}</div>\n </div>\n );\n};\n\nMediaContent.propTypes = {\n resources: ResourceBrowser.propTypes.resources,\n starsDiff: PropTypes.number\n};\n\nMediaContent.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nconst ContextImage = ({src}) => {\n const images = src.map(({url, _id}) => <MediaView key={_id} media={url} />);\n return <div>{images}</div>;\n};\n\nContextImage.propTypes = {\n src: PropTypes.arrayOf(\n PropTypes.shape({\n _id: PropTypes.string,\n url: PropTypes.string\n })\n )\n};\n\nconst ContextVideo = props => {\n const {src} = props;\n const videos = src.map(({videoId, ...childProps}) => (\n <VideoPlayer {...omit('id', childProps)} id={videoId} key={videoId} autoplay={false} />\n ));\n return <div>{videos}</div>;\n};\n\nContextVideo.propTypes = {\n src: PropTypes.arrayOf(PropTypes.shape(VideoPlayer.propTypes))\n};\n\nconst CONTEXT_MEDIA = {\n img: ContextImage,\n pdf: PDF,\n audio: Audio,\n video: ContextVideo\n};\n\nconst ContextMedia = ({media}) => {\n const ContentType = CONTEXT_MEDIA[media.type];\n return (\n <div\n data-name=\"contextMedia\"\n className={classnames(\n style.contextWrapper,\n media.type === 'pdf' ? style.contextPdfWrapper : null,\n media.type === 'audio' ? style.contextAudioWrapper : null\n )}\n >\n <ContentType {...media} />\n </div>\n );\n};\n\nContextMedia.propTypes = {\n media: PropTypes.oneOfType([\n PropTypes.shape({\n ...ContextImage.propTypes,\n type: PropTypes.oneOf(['img'])\n }),\n PropTypes.shape({\n ...PDF.propTypes,\n type: PropTypes.oneOf(['pdf'])\n }),\n PropTypes.shape({\n ...Audio.propTypes,\n type: PropTypes.oneOf(['audio'])\n }),\n PropTypes.shape({\n ...ContextVideo.propTypes,\n type: PropTypes.oneOf(['video'])\n })\n ])\n};\n\nconst ContextContent = ({slideContext}) => {\n const descriptionParagraphs = pipe(getOr('', 'description'), split('\\n'), compact)(slideContext);\n const paragraphs = descriptionParagraphs.map((paragraph, index) => (\n <p\n key={index}\n data-name=\"contextDescription\"\n className={classnames(style.contextDescription, style.innerHTML)}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: paragraph}}\n />\n ));\n return (\n <div className={style.context}>\n {get('media.type', slideContext) ? <ContextMedia media={slideContext.media} /> : null}\n {paragraphs}\n </div>\n );\n};\n\nContextContent.propTypes = {\n slideContext: PropTypes.shape({\n title: PropTypes.string,\n description: PropTypes.string,\n media: PropTypes.shape(ContextMedia.propTypes)\n })\n};\n\nconst CONTENT_TYPE = {\n answer: AnswerContent,\n clue: ClueContent,\n context: ContextContent,\n media: MediaContent\n};\n\nconst Help = ({help}) => (\n <div\n className={classnames(style.helpView, style.innerHTML)}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: help}}\n />\n);\n\nHelp.propTypes = {\n help: PropTypes.string\n};\n\nconst ValidateButton = ({cta}) => {\n if (!cta) {\n return null;\n }\n\n return (\n <div className={style.ctaWrapper}>\n <Cta {...cta} className={style.cta} />\n </div>\n );\n};\n\nValidateButton.propTypes = {\n cta: PropTypes.shape(Cta.propTypes)\n};\n\nconst ContentLayout = (props, context) => {\n const {\n typeClue: selectedTab,\n answerType: {model: {type} = {}} = {},\n question,\n help,\n slideContext\n } = props;\n const ContentType = CONTENT_TYPE[selectedTab];\n const noPaddingRessources =\n ContentType === MediaContent ? `${style.contentWrapperNoPadding}` : `${style.contentWrapper}`;\n\n return (\n <div className={noPaddingRessources} style={{backgroundColor: 'white'}}>\n <div\n data-name=\"question\"\n className={classnames(\n selectedTab === 'context' ? style.contextTitle : style.question,\n style.innerHTML\n )}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{\n __html: selectedTab === 'context' ? slideContext.title : question\n }}\n />\n {help && selectedTab === 'answer' && type !== 'qcmDrag' ? <Help help={help} /> : null}\n <ContentType {...props} />\n <ValidateButton {...props} />\n </div>\n );\n};\n\nContentLayout.contextTypes = {\n translate: Provider.childContextTypes.translate,\n skin: Provider.childContextTypes.skin\n};\n\nContentLayout.propTypes = {\n typeClue: PropTypes.oneOf(keys(CONTENT_TYPE)),\n question: PropTypes.string,\n ...ValidateButton.propTypes\n};\n\n/*\n * Loading\n */\n\nconst LoadingLayout = ({popinError}) => (\n <div className={style.loading}>{popinError ? <CMPopin {...popinError} /> : <Loader />}</div>\n);\n\nLoadingLayout.propTypes = {\n popinError: PropTypes.shape(CMPopin.propTypes)\n};\n\nconst LoadedLayout = ({question, step, ...props}) =>\n question ? <ContentLayout {...props} question={question} /> : <LoadingLayout {...props} />;\n\nLoadedLayout.propTypes = {\n ...ContentLayout.propTypes,\n question: ContentLayout.propTypes.question\n};\n\n/*\n * Errors\n */\n\nconst ErrorMessage = ({errorMsg}) => (\n <div className={style.contentWrapper}>\n <div className={style.error}>{errorMsg}</div>\n </div>\n);\n\nErrorMessage.propTypes = {\n errorMsg: PropTypes.string\n};\n\nconst Content = ({error, ...props}) =>\n error ? <ErrorMessage {...props} /> : <LoadedLayout {...props} />;\n\nContent.propTypes = {\n error: PropTypes.bool\n};\n\n/*\n * SlidesPlayer\n */\n\nconst SlidesPlayer = (props, context) => {\n const {header, step, buttons, showNewMedia = false, showReviewLesson = false} = props;\n const {skin} = context;\n const stepColor = get('common.primary', skin);\n const mediaButton = find({type: 'media'}, buttons) || {};\n const {onClick = identity} = mediaButton;\n return (\n <div className={style.wrapper} data-name=\"slidesPlayer\">\n {header ? <Header {...header} /> : null}\n <div className={style.contentProgression}>\n {step ? <Step step={step} color={stepColor} /> : null}\n {showNewMedia && !showReviewLesson ? <NewMedia onClick={onClick} step={step} /> : null}\n {showReviewLesson && !showNewMedia ? <ReviewLesson onClick={onClick} /> : null}\n <Content {...props} />\n </div>\n <Footer buttons={buttons} />\n </div>\n );\n};\n\nSlidesPlayer.TYPE = CONTENT_TYPE;\n\nSlidesPlayer.contextTypes = {\n translate: Provider.childContextTypes.translate,\n skin: Provider.childContextTypes.skin\n};\n\nSlidesPlayer.propTypes = {\n cta: ValidateButton.propTypes.cta,\n step: Step.propTypes.step,\n buttons: Footer.propTypes.buttons,\n header: PropTypes.shape(Header.propTypes),\n showNewMedia: PropTypes.bool,\n showReviewLesson: PropTypes.bool,\n backgroundUrl: SrcPropType,\n popinError: PropTypes.shape(CMPopin.propTypes)\n};\n\nexport default SlidesPlayer;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;AAEA,MAAMA,SAAS,GAAG,CAAC;EAACC;AAAD,CAAD,KAAa;EAC7B,oBACE;IAAK,SAAS,EAAEC,cAAA,CAAMC;EAAtB,gBACE,6BAAC,gBAAD;IAAS,GAAG,EAAEF;EAAd,EADF,CADF;AAKD,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wE;AAFP,CAA5B;AAKAW,YAAY,CAACxH,SAAb,2CAAyB;EACvBiG,GAAG,EAAED,cAAc,CAAChG,SAAf,CAAyBiG,GADP;EAEvBvE,IAAI,EAAED,IAAI,CAACzB,SAAL,CAAe0B,IAFE;EAGvBgG,OAAO,EAAEQ,eAAA,CAAOlI,SAAP,CAAiB0H,OAHH;EAIvBD,MAAM,EAAE/G,kBAAA,CAAUmB,KAAV,CAAgBsG,eAAA,CAAOnI,SAAvB,CAJe;EAKvB2H,YAAY,EAAEjH,kBAAA,CAAU6G,IALD;EAMvBK,gBAAgB,EAAElH,kBAAA,CAAU6G,IANL;EAOvBa,aAAa,EAAEC,sBAPQ;EAQvBtB,UAAU,EAAErG,kBAAA,CAAUmB,KAAV,CAAgBoF,gBAAA,CAAQjH,SAAxB;AARW,CAAzB;eAWewH,Y"}
|
|
@@ -12,18 +12,26 @@ declare const AppReview: {
|
|
|
12
12
|
skills: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
13
13
|
text: import("prop-types").Requireable<string>;
|
|
14
14
|
tooltipText: import("prop-types").Requireable<string>;
|
|
15
|
+
moreDetailsAreaLabel: import("prop-types").Requireable<string>;
|
|
16
|
+
closeToolTipInformationTextAriaLabel: import("prop-types").Requireable<string>;
|
|
15
17
|
}>>;
|
|
16
18
|
questions: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
17
19
|
text: import("prop-types").Requireable<string>;
|
|
18
20
|
tooltipText: import("prop-types").Requireable<string>;
|
|
21
|
+
moreDetailsAreaLabel: import("prop-types").Requireable<string>;
|
|
22
|
+
closeToolTipInformationTextAriaLabel: import("prop-types").Requireable<string>;
|
|
19
23
|
}>>;
|
|
20
24
|
lifes: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
21
25
|
text: import("prop-types").Requireable<string>;
|
|
22
26
|
tooltipText: import("prop-types").Requireable<string>;
|
|
27
|
+
moreDetailsAreaLabel: import("prop-types").Requireable<string>;
|
|
28
|
+
closeToolTipInformationTextAriaLabel: import("prop-types").Requireable<string>;
|
|
23
29
|
}>>;
|
|
24
30
|
allright: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
25
31
|
text: import("prop-types").Requireable<string>;
|
|
26
32
|
tooltipText: import("prop-types").Requireable<string>;
|
|
33
|
+
moreDetailsAreaLabel: import("prop-types").Requireable<string>;
|
|
34
|
+
closeToolTipInformationTextAriaLabel: import("prop-types").Requireable<string>;
|
|
27
35
|
}>>;
|
|
28
36
|
}>>;
|
|
29
37
|
}>>;
|
|
@@ -467,7 +475,7 @@ declare const AppReview: {
|
|
|
467
475
|
'aria-label': import("prop-types").Requireable<string>;
|
|
468
476
|
'data-name': import("prop-types").Requireable<string>;
|
|
469
477
|
animationLottie: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
470
|
-
'aria-label': import("prop-types").
|
|
478
|
+
'aria-label': import("prop-types").Requireable<string>;
|
|
471
479
|
'data-name': import("prop-types").Requireable<string>;
|
|
472
480
|
animationSrc: import("prop-types").Validator<string>;
|
|
473
481
|
loop: import("prop-types").Requireable<boolean>;
|
|
@@ -488,7 +496,7 @@ declare const AppReview: {
|
|
|
488
496
|
'aria-label': import("prop-types").Requireable<string>;
|
|
489
497
|
'data-name': import("prop-types").Requireable<string>;
|
|
490
498
|
animationLottie: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
491
|
-
'aria-label': import("prop-types").
|
|
499
|
+
'aria-label': import("prop-types").Requireable<string>;
|
|
492
500
|
'data-name': import("prop-types").Requireable<string>;
|
|
493
501
|
animationSrc: import("prop-types").Validator<string>;
|
|
494
502
|
loop: import("prop-types").Requireable<boolean>;
|
|
@@ -516,7 +524,7 @@ declare const AppReview: {
|
|
|
516
524
|
'aria-label': import("prop-types").Requireable<string>;
|
|
517
525
|
'data-name': import("prop-types").Requireable<string>;
|
|
518
526
|
animationLottie: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
519
|
-
'aria-label': import("prop-types").
|
|
527
|
+
'aria-label': import("prop-types").Requireable<string>;
|
|
520
528
|
'data-name': import("prop-types").Requireable<string>;
|
|
521
529
|
animationSrc: import("prop-types").Validator<string>;
|
|
522
530
|
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":";AAKA,OAAkB,EAAC,cAAc,EAAC,MAAM,cAAc,CAAC;AAEvD,QAAA,MAAM,SAAS;+CAA4C,cAAc
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/app-review/index.tsx"],"names":[],"mappings":";AAKA,OAAkB,EAAC,cAAc,EAAC,MAAM,cAAc,CAAC;AAEvD,QAAA,MAAM,SAAS;+CAA4C,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWxE,CAAC;AAIF,eAAe,SAAS,CAAC"}
|
|
@@ -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>;
|
|
@@ -20,18 +20,26 @@ declare const propTypes: {
|
|
|
20
20
|
skills: PropTypes.Requireable<PropTypes.InferProps<{
|
|
21
21
|
text: PropTypes.Requireable<string>;
|
|
22
22
|
tooltipText: PropTypes.Requireable<string>;
|
|
23
|
+
moreDetailsAreaLabel: PropTypes.Requireable<string>;
|
|
24
|
+
closeToolTipInformationTextAriaLabel: PropTypes.Requireable<string>;
|
|
23
25
|
}>>;
|
|
24
26
|
questions: PropTypes.Requireable<PropTypes.InferProps<{
|
|
25
27
|
text: PropTypes.Requireable<string>;
|
|
26
28
|
tooltipText: PropTypes.Requireable<string>;
|
|
29
|
+
moreDetailsAreaLabel: PropTypes.Requireable<string>;
|
|
30
|
+
closeToolTipInformationTextAriaLabel: PropTypes.Requireable<string>;
|
|
27
31
|
}>>;
|
|
28
32
|
lifes: PropTypes.Requireable<PropTypes.InferProps<{
|
|
29
33
|
text: PropTypes.Requireable<string>;
|
|
30
34
|
tooltipText: PropTypes.Requireable<string>;
|
|
35
|
+
moreDetailsAreaLabel: PropTypes.Requireable<string>;
|
|
36
|
+
closeToolTipInformationTextAriaLabel: PropTypes.Requireable<string>;
|
|
31
37
|
}>>;
|
|
32
38
|
allright: PropTypes.Requireable<PropTypes.InferProps<{
|
|
33
39
|
text: PropTypes.Requireable<string>;
|
|
34
40
|
tooltipText: PropTypes.Requireable<string>;
|
|
41
|
+
moreDetailsAreaLabel: PropTypes.Requireable<string>;
|
|
42
|
+
closeToolTipInformationTextAriaLabel: PropTypes.Requireable<string>;
|
|
35
43
|
}>>;
|
|
36
44
|
}>>;
|
|
37
45
|
}>>;
|
|
@@ -475,7 +483,7 @@ declare const propTypes: {
|
|
|
475
483
|
'aria-label': PropTypes.Requireable<string>;
|
|
476
484
|
'data-name': PropTypes.Requireable<string>;
|
|
477
485
|
animationLottie: PropTypes.Requireable<PropTypes.InferProps<{
|
|
478
|
-
'aria-label': PropTypes.
|
|
486
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
479
487
|
'data-name': PropTypes.Requireable<string>;
|
|
480
488
|
animationSrc: PropTypes.Validator<string>;
|
|
481
489
|
loop: PropTypes.Requireable<boolean>;
|
|
@@ -496,7 +504,7 @@ declare const propTypes: {
|
|
|
496
504
|
'aria-label': PropTypes.Requireable<string>;
|
|
497
505
|
'data-name': PropTypes.Requireable<string>;
|
|
498
506
|
animationLottie: PropTypes.Requireable<PropTypes.InferProps<{
|
|
499
|
-
'aria-label': PropTypes.
|
|
507
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
500
508
|
'data-name': PropTypes.Requireable<string>;
|
|
501
509
|
animationSrc: PropTypes.Validator<string>;
|
|
502
510
|
loop: PropTypes.Requireable<boolean>;
|
|
@@ -524,7 +532,7 @@ declare const propTypes: {
|
|
|
524
532
|
'aria-label': PropTypes.Requireable<string>;
|
|
525
533
|
'data-name': PropTypes.Requireable<string>;
|
|
526
534
|
animationLottie: PropTypes.Requireable<PropTypes.InferProps<{
|
|
527
|
-
'aria-label': PropTypes.
|
|
535
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
528
536
|
'data-name': PropTypes.Requireable<string>;
|
|
529
537
|
animationSrc: PropTypes.Validator<string>;
|
|
530
538
|
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;AACnC,OAAO,UAAU,MAAM,cAAc,CAAC;AAGtC,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAEtD,oBAAY,QAAQ,GAAG,QAAQ,GAAG,YAAY,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAErE,oBAAY,cAAc,GAAG;IAC3B,QAAQ,EAAE,QAAQ,CAAC;IACnB,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,UAAU,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC,SAAS,CAAC,CAAC;IAC/D,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B,CAAC;AAEF,QAAA,MAAM,SAAS
|
|
1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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKd,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-context.d.ts","sourceRoot":"","sources":["../../../src/template/app-review/template-context.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAgB,SAAS,EAAa,MAAM,OAAO,CAAC;AAClE,OAAO,EAAC,SAAS,EAAC,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAC,KAAK,EAAoB,MAAM,8BAA8B,CAAC;AACtE,OAAqB,EAAC,KAAK,EAAC,MAAM,8BAA8B,CAAC;AACjE,OAAkC,EAAC,YAAY,EAAC,MAAM,6CAA6C,CAAC;AACpG,OAAO,EAAC,SAAS,EAAC,MAAM,2BAA2B,CAAC;AAEpD,oBAAY,UAAU,GAAG,MAAM,IAAI,CAAC;AACpC,oBAAY,WAAW,GAAG,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,IAAI,CAAC;AACrD,oBAAY,eAAe,GAAG,MAAM,GAAG,IAAI,CAAC;AAE5C,oBAAY,qBAAqB,GAAG;IAClC,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,UAAU,EAAE,KAAK,CAAC;IAClB,KAAK,EAAE,KAAK,CAAC;IACb,YAAY,EAAE,YAAY,CAAC;IAC3B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,OAAO,EAAE;QACP,YAAY,EAAE,MAAM,CAAC;QACrB,eAAe,EAAE,MAAM,CAAC;KACzB,CAAC;IACF,KAAK,EAAE;QACL,eAAe,CAAC,EAAE,eAAe,CAAC;QAClC,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,WAAW,CAAC,EAAE,WAAW,CAAC;KAC3B,CAAC;
|
|
1
|
+
{"version":3,"file":"template-context.d.ts","sourceRoot":"","sources":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AAkB,EAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-context.js","names":["Context","createContext","theme","defaultTheme","brandTheme","defaultBrandTheme","translations","defaultMobileTranslations","display","headerHeight","statusBarHeight","store","useTemplateContext","context","useContext","Error","TemplateContext","values","children"],"sources":["../../../src/template/app-review/template-context.tsx"],"sourcesContent":["import React, {createContext, ReactNode, useContext} from 'react';\nimport {Analytics} from '../../variables/analytics';\nimport {Brand, defaultBrandTheme} from '../../variables/brand.native';\nimport defaultTheme, {Theme} from '../../variables/theme.native';\nimport defaultMobileTranslations, {Translations} from '../../variables/default-mobile-translations';\nimport {Vibration} from '../../variables/vibration';\n\nexport type HandleBlur = () => void;\nexport type HandleFocus = (id: string) => () => void;\nexport type FocusedSelectId = string | null;\n\nexport type TemplateContextValues = {\n analytics?: Analytics;\n brandTheme: Brand;\n theme: Theme;\n translations: Translations;\n vibration?: Vibration;\n display: {\n headerHeight: number;\n statusBarHeight: number;\n };\n store: {\n focusedSelectId?: FocusedSelectId;\n handleBlur?: HandleBlur;\n handleFocus?: HandleFocus;\n };\n};\n\ntype Props = {values: TemplateContextValues; children: ReactNode};\n\nconst Context = createContext({\n theme: defaultTheme,\n brandTheme: defaultBrandTheme,\n translations: defaultMobileTranslations,\n display: {\n headerHeight: 67,\n statusBarHeight: 42\n },\n store: {}\n});\n\nconst useTemplateContext = (): TemplateContextValues => {\n const context = useContext(Context);\n\n if (!context) {\n throw new Error(\n `❌ [TemplateContext] useTemplateContext must be used within a provider <TemplateContext>`\n );\n }\n\n return context;\n};\n\nconst TemplateContext = ({values, children}: Props) => {\n return <Context.Provider value={values}>{children}</Context.Provider>;\n};\n\nexport {TemplateContext, useTemplateContext};\n"],"mappings":";;;;;AAAA;;AAEA;;AACA;;AACA;;;;;;;;
|
|
1
|
+
{"version":3,"file":"template-context.js","names":["Context","createContext","theme","defaultTheme","brandTheme","defaultBrandTheme","translations","defaultMobileTranslations","display","headerHeight","statusBarHeight","store","translate","arg","useTemplateContext","context","useContext","Error","TemplateContext","values","children"],"sources":["../../../src/template/app-review/template-context.tsx"],"sourcesContent":["import React, {createContext, ReactNode, useContext} from 'react';\nimport {Analytics} from '../../variables/analytics';\nimport {Brand, defaultBrandTheme} from '../../variables/brand.native';\nimport defaultTheme, {Theme} from '../../variables/theme.native';\nimport defaultMobileTranslations, {Translations} from '../../variables/default-mobile-translations';\nimport {Vibration} from '../../variables/vibration';\n\nexport type HandleBlur = () => void;\nexport type HandleFocus = (id: string) => () => void;\nexport type FocusedSelectId = string | null;\n\nexport type TemplateContextValues = {\n analytics?: Analytics;\n brandTheme: Brand;\n theme: Theme;\n translations: Translations;\n vibration?: Vibration;\n display: {\n headerHeight: number;\n statusBarHeight: number;\n };\n store: {\n focusedSelectId?: FocusedSelectId;\n handleBlur?: HandleBlur;\n handleFocus?: HandleFocus;\n };\n translate: (arg: string) => string;\n};\n\ntype Props = {values: TemplateContextValues; children: ReactNode};\n\nconst Context = createContext({\n theme: defaultTheme,\n brandTheme: defaultBrandTheme,\n translations: defaultMobileTranslations,\n display: {\n headerHeight: 67,\n statusBarHeight: 42\n },\n store: {},\n translate: (arg: string) => arg\n});\n\nconst useTemplateContext = (): TemplateContextValues => {\n const context = useContext(Context);\n\n if (!context) {\n throw new Error(\n `❌ [TemplateContext] useTemplateContext must be used within a provider <TemplateContext>`\n );\n }\n\n return context;\n};\n\nconst TemplateContext = ({values, children}: Props) => {\n return <Context.Provider value={values}>{children}</Context.Provider>;\n};\n\nexport {TemplateContext, useTemplateContext};\n"],"mappings":";;;;;AAAA;;AAEA;;AACA;;AACA;;;;;;;;AA2BA,MAAMA,OAAO,gBAAG,IAAAC,oBAAA,EAAc;EAC5BC,KAAK,EAAEC,cADqB;EAE5BC,UAAU,EAAEC,wBAFgB;EAG5BC,YAAY,EAAEC,kCAHc;EAI5BC,OAAO,EAAE;IACPC,YAAY,EAAE,EADP;IAEPC,eAAe,EAAE;EAFV,CAJmB;EAQ5BC,KAAK,EAAE,EARqB;EAS5BC,SAAS,EAAGC,GAAD,IAAiBA;AATA,CAAd,CAAhB;;AAYA,MAAMC,kBAAkB,GAAG,MAA6B;EACtD,MAAMC,OAAO,GAAG,IAAAC,iBAAA,EAAWhB,OAAX,CAAhB;;EAEA,IAAI,CAACe,OAAL,EAAc;IACZ,MAAM,IAAIE,KAAJ,CACH,yFADG,CAAN;EAGD;;EAED,OAAOF,OAAP;AACD,CAVD;;;;AAYA,MAAMG,eAAe,GAAG,CAAC;EAACC,MAAD;EAASC;AAAT,CAAD,KAA+B;EACrD,oBAAO,6BAAC,OAAD,CAAS,QAAT;IAAkB,KAAK,EAAED;EAAzB,GAAkCC,QAAlC,CAAP;AACD,CAFD"}
|
|
@@ -213,7 +213,6 @@ declare namespace BrandUpdate {
|
|
|
213
213
|
type: PropTypes.Requireable<string>;
|
|
214
214
|
size: PropTypes.Requireable<string>;
|
|
215
215
|
title: PropTypes.Requireable<string>;
|
|
216
|
-
moreAriaLabel: PropTypes.Requireable<string>;
|
|
217
216
|
name: PropTypes.Requireable<string>;
|
|
218
217
|
className: PropTypes.Requireable<string>;
|
|
219
218
|
borderClassName: PropTypes.Requireable<string>;
|
|
@@ -231,6 +230,7 @@ declare namespace BrandUpdate {
|
|
|
231
230
|
}> | null | undefined)[]>;
|
|
232
231
|
modified: PropTypes.Requireable<boolean>;
|
|
233
232
|
error: PropTypes.Requireable<boolean>;
|
|
233
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
234
234
|
}> | PropTypes.InferProps<{
|
|
235
235
|
type: PropTypes.Requireable<string>;
|
|
236
236
|
title: PropTypes.Validator<string>;
|
|
@@ -317,7 +317,6 @@ declare namespace BrandUpdate {
|
|
|
317
317
|
}> | PropTypes.InferProps<{
|
|
318
318
|
type: PropTypes.Requireable<string>;
|
|
319
319
|
title: PropTypes.Requireable<string>;
|
|
320
|
-
moreAriaLabel: PropTypes.Requireable<string>;
|
|
321
320
|
name: PropTypes.Requireable<string>;
|
|
322
321
|
className: PropTypes.Requireable<string>;
|
|
323
322
|
borderClassName: PropTypes.Requireable<string>;
|
|
@@ -335,6 +334,7 @@ declare namespace BrandUpdate {
|
|
|
335
334
|
}> | null | undefined)[]>;
|
|
336
335
|
modified: PropTypes.Requireable<boolean>;
|
|
337
336
|
error: PropTypes.Requireable<boolean>;
|
|
337
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
338
338
|
}> | PropTypes.InferProps<{
|
|
339
339
|
type: PropTypes.Requireable<string>;
|
|
340
340
|
title: PropTypes.Validator<string>;
|
|
@@ -836,7 +836,6 @@ declare namespace BrandUpdate {
|
|
|
836
836
|
type: PropTypes.Requireable<string>;
|
|
837
837
|
size: PropTypes.Requireable<string>;
|
|
838
838
|
title: PropTypes.Requireable<string>;
|
|
839
|
-
moreAriaLabel: PropTypes.Requireable<string>;
|
|
840
839
|
name: PropTypes.Requireable<string>;
|
|
841
840
|
className: PropTypes.Requireable<string>;
|
|
842
841
|
borderClassName: PropTypes.Requireable<string>;
|
|
@@ -854,6 +853,7 @@ declare namespace BrandUpdate {
|
|
|
854
853
|
}> | null | undefined)[]>;
|
|
855
854
|
modified: PropTypes.Requireable<boolean>;
|
|
856
855
|
error: PropTypes.Requireable<boolean>;
|
|
856
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
857
857
|
}> | PropTypes.InferProps<{
|
|
858
858
|
type: PropTypes.Requireable<string>;
|
|
859
859
|
title: PropTypes.Validator<string>;
|
|
@@ -940,7 +940,6 @@ declare namespace BrandUpdate {
|
|
|
940
940
|
}> | PropTypes.InferProps<{
|
|
941
941
|
type: PropTypes.Requireable<string>;
|
|
942
942
|
title: PropTypes.Requireable<string>;
|
|
943
|
-
moreAriaLabel: PropTypes.Requireable<string>;
|
|
944
943
|
name: PropTypes.Requireable<string>;
|
|
945
944
|
className: PropTypes.Requireable<string>;
|
|
946
945
|
borderClassName: PropTypes.Requireable<string>;
|
|
@@ -958,6 +957,7 @@ declare namespace BrandUpdate {
|
|
|
958
957
|
}> | null | undefined)[]>;
|
|
959
958
|
modified: PropTypes.Requireable<boolean>;
|
|
960
959
|
error: PropTypes.Requireable<boolean>;
|
|
960
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
961
961
|
}> | PropTypes.InferProps<{
|
|
962
962
|
type: PropTypes.Requireable<string>;
|
|
963
963
|
title: PropTypes.Validator<string>;
|
|
@@ -2,7 +2,7 @@ export default Battles;
|
|
|
2
2
|
declare function Battles(props: any, context: any): JSX.Element;
|
|
3
3
|
declare namespace Battles {
|
|
4
4
|
namespace contextTypes {
|
|
5
|
-
const translate: PropTypes.
|
|
5
|
+
const translate: PropTypes.Requireable<(...args: any[]) => any>;
|
|
6
6
|
}
|
|
7
7
|
namespace propTypes {
|
|
8
8
|
const battles: PropTypes.Validator<(PropTypes.InferProps<{
|
|
@@ -19,7 +19,7 @@ declare class Authors extends React.Component<any, any, any> {
|
|
|
19
19
|
}> | null | undefined)[]>;
|
|
20
20
|
};
|
|
21
21
|
static contextTypes: {
|
|
22
|
-
translate: PropTypes.
|
|
22
|
+
translate: PropTypes.Requireable<(...args: any[]) => any>;
|
|
23
23
|
skin: PropTypes.Requireable<PropTypes.InferProps<{
|
|
24
24
|
common: PropTypes.Requireable<{
|
|
25
25
|
[x: string]: any;
|
|
@@ -40,7 +40,6 @@ declare namespace SearchPage {
|
|
|
40
40
|
}> | null | undefined)[]>;
|
|
41
41
|
sorting: PropTypes.Requireable<PropTypes.InferProps<{
|
|
42
42
|
title: PropTypes.Requireable<string>;
|
|
43
|
-
moreAriaLabel: PropTypes.Requireable<string>;
|
|
44
43
|
name: PropTypes.Requireable<string>;
|
|
45
44
|
className: PropTypes.Requireable<string>;
|
|
46
45
|
borderClassName: PropTypes.Requireable<string>;
|
|
@@ -58,6 +57,7 @@ declare namespace SearchPage {
|
|
|
58
57
|
}> | null | undefined)[]>;
|
|
59
58
|
modified: PropTypes.Requireable<boolean>;
|
|
60
59
|
error: PropTypes.Requireable<boolean>;
|
|
60
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
61
61
|
}>>;
|
|
62
62
|
onSearch: PropTypes.Requireable<(...args: any[]) => any>;
|
|
63
63
|
onToggleFilters: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -11,18 +11,26 @@ 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>;
|
|
15
|
+
closeToolTipInformationTextAriaLabel: PropTypes.Requireable<string>;
|
|
14
16
|
}>>;
|
|
15
17
|
questions: PropTypes.Requireable<PropTypes.InferProps<{
|
|
16
18
|
text: PropTypes.Requireable<string>;
|
|
17
19
|
tooltipText: PropTypes.Requireable<string>;
|
|
20
|
+
moreDetailsAreaLabel: PropTypes.Requireable<string>;
|
|
21
|
+
closeToolTipInformationTextAriaLabel: PropTypes.Requireable<string>;
|
|
18
22
|
}>>;
|
|
19
23
|
lifes: PropTypes.Requireable<PropTypes.InferProps<{
|
|
20
24
|
text: PropTypes.Requireable<string>;
|
|
21
25
|
tooltipText: PropTypes.Requireable<string>;
|
|
26
|
+
moreDetailsAreaLabel: PropTypes.Requireable<string>;
|
|
27
|
+
closeToolTipInformationTextAriaLabel: PropTypes.Requireable<string>;
|
|
22
28
|
}>>;
|
|
23
29
|
allright: PropTypes.Requireable<PropTypes.InferProps<{
|
|
24
30
|
text: PropTypes.Requireable<string>;
|
|
25
31
|
tooltipText: PropTypes.Requireable<string>;
|
|
32
|
+
moreDetailsAreaLabel: PropTypes.Requireable<string>;
|
|
33
|
+
closeToolTipInformationTextAriaLabel: PropTypes.Requireable<string>;
|
|
26
34
|
}>>;
|
|
27
35
|
}>>;
|
|
28
36
|
}>>;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
export function renderWithContext(component: any, {
|
|
2
|
-
[x: string]: any;
|
|
3
|
-
context: any;
|
|
4
|
-
}): import("@testing-library/react").RenderResult<typeof import("@testing-library/dom/types/queries"), HTMLElement, HTMLElement>;
|
|
1
|
+
export function renderWithContext(component: any, options?: {}): import("@testing-library/react").RenderResult<typeof import("@testing-library/dom/types/queries"), HTMLElement, HTMLElement>;
|
|
5
2
|
//# sourceMappingURL=render-with-context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render-with-context.d.ts","sourceRoot":"","sources":["../../src/util/render-with-context.js"],"names":[],"mappings":"AAMO
|
|
1
|
+
{"version":3,"file":"render-with-context.d.ts","sourceRoot":"","sources":["../../src/util/render-with-context.js"],"names":[],"mappings":"AAMO,8LAmBN"}
|
|
@@ -22,13 +22,13 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
22
22
|
|
|
23
23
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
24
24
|
|
|
25
|
-
const renderWithContext = (component,
|
|
26
|
-
|
|
27
|
-
context
|
|
28
|
-
} =
|
|
29
|
-
|
|
25
|
+
const renderWithContext = (component, options = {}) => {
|
|
26
|
+
const {
|
|
27
|
+
context = {}
|
|
28
|
+
} = options,
|
|
29
|
+
renderOptions = _objectWithoutPropertiesLoose(options, _excluded); // uses mockTranslate as a default translate function
|
|
30
|
+
|
|
30
31
|
|
|
31
|
-
// uses mockTranslate as a default translate function
|
|
32
32
|
const {
|
|
33
33
|
translate = _translate.mockTranslate
|
|
34
34
|
} = context,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render-with-context.js","names":["renderWithContext","component","context","renderOptions","translate","mockTranslate","rest","wrapper","children","propTypes","PropTypes","node","render"],"sources":["../../src/util/render-with-context.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {render} from '@testing-library/react';\nimport {mockTranslate} from '@coorpacademy/translate';\nimport Provider from '../atom/provider';\n\nexport const renderWithContext = (component, {context, ...renderOptions}
|
|
1
|
+
{"version":3,"file":"render-with-context.js","names":["renderWithContext","component","options","context","renderOptions","translate","mockTranslate","rest","wrapper","children","propTypes","PropTypes","node","render"],"sources":["../../src/util/render-with-context.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {render} from '@testing-library/react';\nimport {mockTranslate} from '@coorpacademy/translate';\nimport Provider from '../atom/provider';\n\nexport const renderWithContext = (component, options = {}) => {\n const {context = {}, ...renderOptions} = options;\n // uses mockTranslate as a default translate function\n const {translate = mockTranslate, ...rest} = context;\n\n const wrapper = ({children}) => (\n <Provider {...rest} translate={translate}>\n {children}\n </Provider>\n );\n\n wrapper.propTypes = {\n children: PropTypes.node\n };\n\n return render(component, {\n ...renderOptions,\n wrapper\n });\n};\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;AAEO,MAAMA,iBAAiB,GAAG,CAACC,SAAD,EAAYC,OAAO,GAAG,EAAtB,KAA6B;EAC5D,MAAM;IAACC,OAAO,GAAG;EAAX,IAAmCD,OAAzC;EAAA,MAAwBE,aAAxB,iCAAyCF,OAAzC,aAD4D,CAE5D;;;EACA,MAAM;IAACG,SAAS,GAAGC;EAAb,IAAuCH,OAA7C;EAAA,MAAqCI,IAArC,iCAA6CJ,OAA7C;;EAEA,MAAMK,OAAO,GAAG,CAAC;IAACC;EAAD,CAAD,kBACd,6BAAC,iBAAD,eAAcF,IAAd;IAAoB,SAAS,EAAEF;EAA/B,IACGI,QADH,CADF;;EAMAD,OAAO,CAACE,SAAR,2CAAoB;IAClBD,QAAQ,EAAEE,kBAAA,CAAUC;EADF,CAApB;EAIA,OAAO,IAAAC,cAAA,EAAOZ,SAAP,eACFG,aADE;IAELI;EAFK,GAAP;AAID,CAnBM"}
|
package/locales/en/global.json
CHANGED
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"Create a new cohort": "Create a new cohort",
|
|
21
21
|
"Delete": "Delete",
|
|
22
22
|
"Draft": "Draft",
|
|
23
|
+
"drop_down_icon": "Dropdown to open the list of available answers",
|
|
23
24
|
"Edit": "Edit",
|
|
24
25
|
"external_content_article": "DOCUMENTS",
|
|
25
26
|
"external_content_scorm": "ANIMATED RESOURCES",
|