@coorpacademy/components 10.0.49-alpha.9 → 10.1.1
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/autocomplete/test/fixtures/error.js +1 -1
- package/es/atom/autocomplete/test/fixtures/error.js.map +1 -1
- package/es/atom/autocomplete/test/fixtures/filled.js +1 -1
- package/es/atom/autocomplete/test/fixtures/filled.js.map +1 -1
- package/es/atom/autocomplete/test/fixtures/modified.js +1 -1
- package/es/atom/autocomplete/test/fixtures/modified.js.map +1 -1
- package/es/atom/chips/index.js +36 -0
- package/es/atom/chips/index.js.map +1 -0
- package/es/atom/chips/style.css +66 -0
- package/es/atom/chips/test/fixtures/default.js +9 -0
- package/es/atom/chips/test/fixtures/default.js.map +1 -0
- package/es/atom/chips/test/fixtures/non-selected.js +9 -0
- package/es/atom/chips/test/fixtures/non-selected.js.map +1 -0
- package/es/atom/chips/test/fixtures.js +15 -0
- package/es/atom/chips/test/fixtures.js.map +1 -0
- package/es/atom/clue/index.js.map +1 -1
- package/es/atom/content-badge/index.js +21 -0
- package/es/atom/content-badge/index.js.map +1 -0
- package/es/atom/content-badge/style.css +59 -0
- package/es/atom/content-badge/test/fixtures/advanced.js +7 -0
- package/es/atom/content-badge/test/fixtures/advanced.js.map +1 -0
- package/es/atom/content-badge/test/fixtures/article.js +7 -0
- package/es/atom/content-badge/test/fixtures/article.js.map +1 -0
- package/es/atom/content-badge/test/fixtures/chapter.js +7 -0
- package/es/atom/content-badge/test/fixtures/chapter.js.map +1 -0
- package/es/atom/content-badge/test/fixtures/coach.js +7 -0
- package/es/atom/content-badge/test/fixtures/coach.js.map +1 -0
- package/es/atom/content-badge/test/fixtures/default.js +7 -0
- package/es/atom/content-badge/test/fixtures/default.js.map +1 -0
- package/es/atom/content-badge/test/fixtures/podcast.js +7 -0
- package/es/atom/content-badge/test/fixtures/podcast.js.map +1 -0
- package/es/atom/content-badge/test/fixtures/scorm.js +7 -0
- package/es/atom/content-badge/test/fixtures/scorm.js.map +1 -0
- package/es/atom/content-badge/test/fixtures/video.js +7 -0
- package/es/atom/content-badge/test/fixtures/video.js.map +1 -0
- package/es/atom/content-badge/test/fixtures.js +27 -0
- package/es/atom/content-badge/test/fixtures.js.map +1 -0
- package/es/atom/cta/test/fixtures/certification.js +1 -1
- package/es/atom/cta/test/fixtures/certification.js.map +1 -1
- package/es/atom/cta/test/fixtures/disabled.js +1 -1
- package/es/atom/cta/test/fixtures/disabled.js.map +1 -1
- package/es/atom/cta/test/fixtures/light-small.js +1 -1
- package/es/atom/cta/test/fixtures/light-small.js.map +1 -1
- package/es/atom/cta/test/fixtures/light.js +1 -1
- package/es/atom/cta/test/fixtures/light.js.map +1 -1
- package/es/atom/cta/test/fixtures/logout.js +1 -1
- package/es/atom/cta/test/fixtures/logout.js.map +1 -1
- package/es/atom/cta/test/fixtures/primary-small.js +1 -1
- package/es/atom/cta/test/fixtures/primary-small.js.map +1 -1
- package/es/atom/cta/test/fixtures/rectangular-secondary-fullwidth.js +1 -1
- package/es/atom/cta/test/fixtures/rectangular-secondary-fullwidth.js.map +1 -1
- package/es/atom/cta/test/fixtures/rectangular-secondary.js +1 -1
- package/es/atom/cta/test/fixtures/rectangular-secondary.js.map +1 -1
- package/es/atom/cta/test/fixtures/rectangular.js +1 -1
- package/es/atom/cta/test/fixtures/rectangular.js.map +1 -1
- package/es/atom/cta/test/fixtures/secondary-small.js +1 -1
- package/es/atom/cta/test/fixtures/secondary-small.js.map +1 -1
- package/es/atom/cta/test/fixtures/secondary.js +1 -1
- package/es/atom/cta/test/fixtures/secondary.js.map +1 -1
- package/es/atom/drag-and-drop/index.js +1 -1
- package/es/atom/drag-and-drop/index.js.map +1 -1
- package/es/atom/drag-and-drop/test/fixtures/loading.js +1 -1
- package/es/atom/drag-and-drop/test/fixtures/loading.js.map +1 -1
- package/es/atom/drag-and-drop/test/fixtures/with-image-reset.js +1 -1
- package/es/atom/drag-and-drop/test/fixtures/with-image-reset.js.map +1 -1
- package/es/atom/image-upload/index.js +1 -1
- package/es/atom/image-upload/index.js.map +1 -1
- package/es/atom/image-upload/test/fixtures/desktop-reset-description-multiple.js +1 -1
- package/es/atom/image-upload/test/fixtures/desktop-reset-description-multiple.js.map +1 -1
- package/es/atom/image-upload/test/fixtures/desktop-reset-description-only-png.js +1 -1
- package/es/atom/image-upload/test/fixtures/desktop-reset-description-only-png.js.map +1 -1
- package/es/atom/image-upload/test/fixtures/desktop-reset-description.js +1 -1
- package/es/atom/image-upload/test/fixtures/desktop-reset-description.js.map +1 -1
- package/es/atom/image-upload/test/fixtures/desktop-reset-no-description.js +1 -1
- package/es/atom/image-upload/test/fixtures/desktop-reset-no-description.js.map +1 -1
- package/es/atom/image-upload/test/fixtures/email.js +1 -1
- package/es/atom/image-upload/test/fixtures/email.js.map +1 -1
- package/es/atom/image-upload/test/fixtures/mobile.js +1 -1
- package/es/atom/image-upload/test/fixtures/mobile.js.map +1 -1
- package/es/atom/image-upload/test/fixtures/modified.js +1 -1
- package/es/atom/image-upload/test/fixtures/modified.js.map +1 -1
- package/es/atom/input-checkbox/index.js.map +1 -1
- package/es/atom/input-checkbox/style.css +0 -4
- package/es/atom/input-html/index.js.map +1 -1
- package/es/atom/input-switch/test/fixtures/disabled.js +1 -1
- package/es/atom/input-switch/test/fixtures/disabled.js.map +1 -1
- package/es/atom/input-text/index.js +34 -6
- package/es/atom/input-text/index.js.map +1 -1
- package/es/atom/input-text/style.css +224 -1
- package/es/atom/input-text/test/fixtures/cm-default.js +17 -0
- package/es/atom/input-text/test/fixtures/cm-default.js.map +1 -0
- package/es/atom/link/index.js +2 -3
- package/es/atom/link/index.js.map +1 -1
- package/es/atom/promo-code/index.js.map +1 -1
- package/es/atom/provider/index.js.map +1 -1
- package/es/atom/provider/test/index.js +1 -1
- package/es/atom/provider/test/index.js.map +1 -1
- package/es/atom/range/index.js +1 -1
- package/es/atom/range/index.js.map +1 -1
- package/es/atom/range/test/fixtures/multi.js +1 -1
- package/es/atom/range/test/fixtures/multi.js.map +1 -1
- package/es/atom/range/test/index.js +9 -9
- package/es/atom/range/test/index.js.map +1 -1
- package/es/atom/video-upload/index.js +1 -1
- package/es/atom/video-upload/index.js.map +1 -1
- package/es/atom/video-upload/test/fixtures/loading.js +1 -1
- package/es/atom/video-upload/test/fixtures/loading.js.map +1 -1
- package/es/atom/video-upload/test/fixtures/modified.js +1 -1
- package/es/atom/video-upload/test/fixtures/modified.js.map +1 -1
- package/es/atom/wizard-steps/index.js +38 -0
- package/es/atom/wizard-steps/index.js.map +1 -0
- package/es/atom/wizard-steps/style.css +150 -0
- package/es/atom/wizard-steps/test/fixtures/default.js +28 -0
- package/es/atom/wizard-steps/test/fixtures/default.js.map +1 -0
- package/es/atom/wizard-steps/test/fixtures/first-step.js +28 -0
- package/es/atom/wizard-steps/test/fixtures/first-step.js.map +1 -0
- package/es/atom/wizard-steps/test/fixtures/last-step.js +28 -0
- package/es/atom/wizard-steps/test/fixtures/last-step.js.map +1 -0
- package/es/atom/wizard-steps/test/fixtures.js +17 -0
- package/es/atom/wizard-steps/test/fixtures.js.map +1 -0
- package/es/hoc/animation-scheduler/index.js +3 -3
- package/es/hoc/animation-scheduler/index.js.map +1 -1
- package/es/hoc/swapper/index.js +2 -4
- package/es/hoc/swapper/index.js.map +1 -1
- package/es/hoc/transition/index.js +1 -1
- package/es/hoc/transition/index.js.map +1 -1
- package/es/molecule/add-to-my-list/index.js +1 -1
- package/es/molecule/add-to-my-list/index.js.map +1 -1
- package/es/molecule/answer/index.js +2 -3
- package/es/molecule/answer/index.js.map +1 -1
- package/es/molecule/answer/test/fixtures/audio.js +1 -1
- package/es/molecule/answer/test/fixtures/audio.js.map +1 -1
- package/es/molecule/answer/test/fixtures/default.js +1 -1
- package/es/molecule/answer/test/fixtures/default.js.map +1 -1
- package/es/molecule/answer/test/fixtures/drop-down.js +1 -1
- package/es/molecule/answer/test/fixtures/drop-down.js.map +1 -1
- package/es/molecule/answer/test/fixtures/qcm-arabic.js +1 -1
- package/es/molecule/answer/test/fixtures/qcm-arabic.js.map +1 -1
- package/es/molecule/answer/test/fixtures/qcm-drag.js +1 -1
- package/es/molecule/answer/test/fixtures/qcm-drag.js.map +1 -1
- package/es/molecule/answer/test/fixtures/qcm-graphic.js +1 -1
- package/es/molecule/answer/test/fixtures/qcm-graphic.js.map +1 -1
- package/es/molecule/answer/test/fixtures/qcm-short-audio.js +1 -1
- package/es/molecule/answer/test/fixtures/qcm-short-audio.js.map +1 -1
- package/es/molecule/answer/test/fixtures/qcm-short-video.js +1 -1
- package/es/molecule/answer/test/fixtures/qcm-short-video.js.map +1 -1
- package/es/molecule/answer/test/fixtures/qcm-short.js +1 -1
- package/es/molecule/answer/test/fixtures/qcm-short.js.map +1 -1
- package/es/molecule/answer/test/fixtures/qcm.js +1 -1
- package/es/molecule/answer/test/fixtures/qcm.js.map +1 -1
- package/es/molecule/answer/test/fixtures/range.js +1 -1
- package/es/molecule/answer/test/fixtures/range.js.map +1 -1
- package/es/molecule/answer/test/fixtures/template.js +1 -1
- package/es/molecule/answer/test/fixtures/template.js.map +1 -1
- package/es/molecule/brand-form-group/index.js +18 -18
- package/es/molecule/brand-form-group/index.js.map +1 -1
- package/es/molecule/brand-form-group/test/fixtures/analytics.js +1 -1
- package/es/molecule/brand-form-group/test/fixtures/analytics.js.map +1 -1
- package/es/molecule/brand-form-group/test/fixtures/animations.js +2 -2
- package/es/molecule/brand-form-group/test/fixtures/animations.js.map +1 -1
- package/es/molecule/brand-form-group/test/fixtures/cohort.js +1 -1
- package/es/molecule/brand-form-group/test/fixtures/cohort.js.map +1 -1
- package/es/molecule/brand-form-group/test/fixtures/dashboard.js +1 -1
- package/es/molecule/brand-form-group/test/fixtures/dashboard.js.map +1 -1
- package/es/molecule/brand-form-group/test/fixtures/images.js +3 -3
- package/es/molecule/brand-form-group/test/fixtures/images.js.map +1 -1
- package/es/molecule/brand-form-group/test/fixtures/slider.js +1 -1
- package/es/molecule/brand-form-group/test/fixtures/slider.js.map +1 -1
- package/es/molecule/card/index.js +1 -1
- package/es/molecule/card/index.js.map +1 -1
- package/es/molecule/card/test/fixtures/adaptiv-and-disabled.js +1 -1
- package/es/molecule/card/test/fixtures/adaptiv-and-disabled.js.map +1 -1
- package/es/molecule/card/test/fixtures/adaptiv.js +1 -1
- package/es/molecule/card/test/fixtures/adaptiv.js.map +1 -1
- package/es/molecule/card/test/fixtures/disabled.js +1 -1
- package/es/molecule/card/test/fixtures/disabled.js.map +1 -1
- package/es/molecule/card-content/test/fixtures/adaptiv-and-disabled.js +1 -1
- package/es/molecule/card-content/test/fixtures/adaptiv-and-disabled.js.map +1 -1
- package/es/molecule/card-content/test/fixtures/adaptiv.js +1 -1
- package/es/molecule/card-content/test/fixtures/adaptiv.js.map +1 -1
- package/es/molecule/card-content/test/fixtures/disabled.js +1 -1
- package/es/molecule/card-content/test/fixtures/disabled.js.map +1 -1
- package/es/molecule/card-with-button/index.js.map +1 -1
- package/es/molecule/coorp-manager-roles/index.js +1 -1
- package/es/molecule/coorp-manager-roles/index.js.map +1 -1
- package/es/molecule/dashboard/battle-request-list/index.js +1 -1
- package/es/molecule/dashboard/battle-request-list/index.js.map +1 -1
- package/es/molecule/dashboard/cards-list/test/fixtures/microlearning.js +1 -1
- package/es/molecule/dashboard/cards-list/test/fixtures/microlearning.js.map +1 -1
- package/es/molecule/dashboard/cards-list/test/fixtures/performance.js +1 -1
- package/es/molecule/dashboard/cards-list/test/fixtures/performance.js.map +1 -1
- package/es/molecule/dashboard/cards-list/test/index.js +1 -1
- package/es/molecule/dashboard/cards-list/test/index.js.map +1 -1
- package/es/molecule/dashboard/news-list/index.js +1 -1
- package/es/molecule/dashboard/news-list/index.js.map +1 -1
- package/es/molecule/dashboard/start-battle/index.js +1 -1
- package/es/molecule/dashboard/start-battle/index.js.map +1 -1
- package/es/molecule/discipline-header/test/fixtures/long-description.js.map +1 -1
- package/es/molecule/discipline-partners/index.js +5 -2
- package/es/molecule/discipline-partners/index.js.map +1 -1
- package/es/molecule/drag-and-drop/index.js +1 -1
- package/es/molecule/drag-and-drop/index.js.map +1 -1
- package/es/molecule/drag-and-drop/test/fixtures/error.js +1 -1
- package/es/molecule/drag-and-drop/test/fixtures/error.js.map +1 -1
- package/es/molecule/drag-and-drop/test/fixtures/loading.js +1 -1
- package/es/molecule/drag-and-drop/test/fixtures/loading.js.map +1 -1
- package/es/molecule/drag-and-drop/test/fixtures/ready-invalid.js +1 -1
- package/es/molecule/drag-and-drop/test/fixtures/ready-invalid.js.map +1 -1
- package/es/molecule/drag-and-drop/test/fixtures/ready.js +1 -1
- package/es/molecule/drag-and-drop/test/fixtures/ready.js.map +1 -1
- package/es/molecule/drag-and-drop/test/fixtures/success-video.js +1 -1
- package/es/molecule/drag-and-drop/test/fixtures/success-video.js.map +1 -1
- package/es/molecule/drag-and-drop/test/fixtures/success.js +1 -1
- package/es/molecule/drag-and-drop/test/fixtures/success.js.map +1 -1
- package/es/molecule/drag-and-drop/test/on-click.js +2 -2
- package/es/molecule/drag-and-drop/test/on-click.js.map +1 -1
- package/es/molecule/drag-and-drop/upload-report.js +1 -1
- package/es/molecule/drag-and-drop/upload-report.js.map +1 -1
- package/es/molecule/feedback/index.js +1 -1
- package/es/molecule/feedback/index.js.map +1 -1
- package/es/molecule/filters/test/fixtures/default.js +4 -4
- package/es/molecule/filters/test/fixtures/default.js.map +1 -1
- package/es/molecule/filters/test/fixtures/filters-list.js +6 -6
- package/es/molecule/filters/test/fixtures/filters-list.js.map +1 -1
- package/es/molecule/filters/test/fixtures/one.js +2 -2
- package/es/molecule/filters/test/fixtures/one.js.map +1 -1
- package/es/molecule/filters/test/fixtures/only-radio-group.js +1 -1
- package/es/molecule/filters/test/fixtures/only-radio-group.js.map +1 -1
- package/es/molecule/filters/test/fixtures/only-timer.js +1 -1
- package/es/molecule/filters/test/fixtures/only-timer.js.map +1 -1
- package/es/molecule/filters/test/fixtures/three.js +3 -3
- package/es/molecule/filters/test/fixtures/three.js.map +1 -1
- package/es/molecule/filters/test/fixtures/two.js +3 -3
- package/es/molecule/filters/test/fixtures/two.js.map +1 -1
- package/es/molecule/filters/test/fixtures/zero.js +1 -1
- package/es/molecule/filters/test/fixtures/zero.js.map +1 -1
- package/es/molecule/forum/forum-thread/test/fixtures/deep-answers.js +4 -4
- package/es/molecule/forum/forum-thread/test/fixtures/deep-answers.js.map +1 -1
- package/es/molecule/forum/forum-thread/test/fixtures/with-answers.js +1 -1
- package/es/molecule/forum/forum-thread/test/fixtures/with-answers.js.map +1 -1
- package/es/molecule/hero/test/fixtures/arabic.js +1 -1
- package/es/molecule/hero/test/fixtures/arabic.js.map +1 -1
- package/es/molecule/hero/test/fixtures/hero.js +1 -1
- package/es/molecule/hero/test/fixtures/hero.js.map +1 -1
- package/es/molecule/news/test/fixtures/long-description.js +1 -1
- package/es/molecule/news/test/fixtures/long-description.js.map +1 -1
- package/es/molecule/news/test/fixtures/long-title.js +1 -1
- package/es/molecule/news/test/fixtures/long-title.js.map +1 -1
- package/es/molecule/news/test/fixtures/small-desciption.js +1 -1
- package/es/molecule/news/test/fixtures/small-desciption.js.map +1 -1
- package/es/molecule/news/test/fixtures/small-title.js +1 -1
- package/es/molecule/news/test/fixtures/small-title.js.map +1 -1
- package/es/molecule/popin/index.js +1 -1
- package/es/molecule/popin/index.js.map +1 -1
- package/es/molecule/progress-bar/index.js +1 -1
- package/es/molecule/progress-bar/index.js.map +1 -1
- package/es/molecule/questions/drop-down/index.js +1 -1
- package/es/molecule/questions/drop-down/index.js.map +1 -1
- package/es/molecule/questions/question-range/index.js +2 -3
- package/es/molecule/questions/question-range/index.js.map +1 -1
- package/es/molecule/questions/template/index.js +2 -2
- package/es/molecule/questions/template/index.js.map +1 -1
- package/es/molecule/questions/template/test/index.js +1 -1
- package/es/molecule/questions/template/test/index.js.map +1 -1
- package/es/molecule/quick-access-card/index.js.map +1 -1
- package/es/molecule/resource-player/index.js +1 -2
- package/es/molecule/resource-player/index.js.map +1 -1
- package/es/molecule/select-multiple/index.js +1 -1
- package/es/molecule/select-multiple/index.js.map +1 -1
- package/es/molecule/select-multiple/test/index.js +3 -3
- package/es/molecule/select-multiple/test/index.js.map +1 -1
- package/es/molecule/setup-section/index.js +1 -1
- package/es/molecule/setup-section/index.js.map +1 -1
- package/es/molecule/setup-section/test/fixtures/first.js +1 -1
- package/es/molecule/setup-section/test/fixtures/first.js.map +1 -1
- package/es/molecule/setup-slide/index.js +8 -8
- package/es/molecule/setup-slide/index.js.map +1 -1
- package/es/molecule/share/index.js +1 -1
- package/es/molecule/share/index.js.map +1 -1
- package/es/molecule/vertical-tabs/index.js +51 -0
- package/es/molecule/vertical-tabs/index.js.map +1 -0
- package/es/molecule/vertical-tabs/style.css +69 -0
- package/es/molecule/vertical-tabs/test/fixtures/default.js +41 -0
- package/es/molecule/vertical-tabs/test/fixtures/default.js.map +1 -0
- package/es/molecule/vertical-tabs/test/fixtures/with-selected-item.js +81 -0
- package/es/molecule/vertical-tabs/test/fixtures/with-selected-item.js.map +1 -0
- package/es/molecule/vertical-tabs/test/fixtures.js +15 -0
- package/es/molecule/vertical-tabs/test/fixtures.js.map +1 -0
- package/es/molecule/video-iframe/index.js +1 -1
- package/es/molecule/video-iframe/index.js.map +1 -1
- package/es/molecule/video-player/index.js +1 -3
- package/es/molecule/video-player/index.js.map +1 -1
- package/es/molecule/video-player/jwplayer.js +2 -2
- package/es/molecule/video-player/jwplayer.js.map +1 -1
- package/es/molecule/video-player/test/fixtures/youtube.js +1 -1
- package/es/molecule/video-player/test/fixtures/youtube.js.map +1 -1
- package/es/molecule/video-player/vimeo.js +1 -1
- package/es/molecule/video-player/vimeo.js.map +1 -1
- package/es/molecule/wizard-summary/index.js +160 -0
- package/es/molecule/wizard-summary/index.js.map +1 -0
- package/es/molecule/wizard-summary/style.css +150 -0
- package/es/molecule/wizard-summary/test/fixtures/default.js +117 -0
- package/es/molecule/wizard-summary/test/fixtures/default.js.map +1 -0
- package/es/molecule/wizard-summary/test/fixtures/one-section.js +22 -0
- package/es/molecule/wizard-summary/test/fixtures/one-section.js.map +1 -0
- package/es/molecule/wizard-summary/test/fixtures/three-sections.js +41 -0
- package/es/molecule/wizard-summary/test/fixtures/three-sections.js.map +1 -0
- package/es/molecule/wizard-summary/test/fixtures/two-sections.js +34 -0
- package/es/molecule/wizard-summary/test/fixtures/two-sections.js.map +1 -0
- package/es/molecule/wizard-summary/test/fixtures.js +19 -0
- package/es/molecule/wizard-summary/test/fixtures.js.map +1 -0
- package/es/organism/accordion/coorp-manager/index.js +1 -1
- package/es/organism/accordion/coorp-manager/index.js.map +1 -1
- package/es/organism/accordion/toggler/index.js +1 -1
- package/es/organism/accordion/toggler/index.js.map +1 -1
- package/es/organism/accordion/toggler/test/render.js +2 -2
- package/es/organism/accordion/toggler/test/render.js.map +1 -1
- package/es/organism/brand-form/test/fixtures/manageusers-edit.js.map +1 -1
- package/es/organism/brand-form/test/fixtures/sso.js +3 -3
- package/es/organism/brand-form/test/fixtures/sso.js.map +1 -1
- package/es/organism/discussion/test/fixtures/default.js +1 -1
- package/es/organism/discussion/test/fixtures/default.js.map +1 -1
- package/es/organism/discussion/test/fixtures/loading-more.js +1 -1
- package/es/organism/discussion/test/fixtures/loading-more.js.map +1 -1
- package/es/organism/discussion/test/fixtures/new-discussion.js +1 -1
- package/es/organism/discussion/test/fixtures/new-discussion.js.map +1 -1
- package/es/organism/get-the-app/index.js +2 -2
- package/es/organism/get-the-app/index.js.map +1 -1
- package/es/organism/mooc/image-slider/test/fixtures/multiple-slides.js +2 -2
- package/es/organism/mooc/image-slider/test/fixtures/multiple-slides.js.map +1 -1
- package/es/organism/mooc-header/test/fixtures/default.js +1 -1
- package/es/organism/mooc-header/test/fixtures/default.js.map +1 -1
- package/es/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js +1 -1
- package/es/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js.map +1 -1
- package/es/organism/popin/test/fixtures/default.js.map +1 -1
- package/es/organism/resource-browser/test/fixtures/jwplayer-with-overlay.js +1 -1
- package/es/organism/resource-browser/test/fixtures/jwplayer-with-overlay.js.map +1 -1
- package/es/organism/resource-browser/test/fixtures/jwplayer.js +1 -1
- package/es/organism/resource-browser/test/fixtures/jwplayer.js.map +1 -1
- package/es/organism/resource-browser/test/fixtures/kontiki.js +1 -1
- package/es/organism/resource-browser/test/fixtures/kontiki.js.map +1 -1
- package/es/organism/resource-browser/test/fixtures/mp4.js +1 -1
- package/es/organism/resource-browser/test/fixtures/mp4.js.map +1 -1
- package/es/organism/settings/index.js +2 -3
- package/es/organism/settings/index.js.map +1 -1
- package/es/organism/sidebar/index.js +10 -11
- package/es/organism/sidebar/index.js.map +1 -1
- package/es/organism/user-preferences/index.js +2 -3
- package/es/organism/user-preferences/index.js.map +1 -1
- package/es/organism/user-preferences/style.css +1 -0
- package/es/template/activity/index.js +1 -1
- package/es/template/activity/index.js.map +1 -1
- package/es/template/activity/test/progression-item-test.js +1 -1
- package/es/template/activity/test/progression-item-test.js.map +1 -1
- package/es/template/app-player/player/slides/footer/index.js +1 -1
- package/es/template/app-player/player/slides/footer/index.js.map +1 -1
- package/es/template/app-player/player/slides/index.js +11 -14
- package/es/template/app-player/player/slides/index.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/arabic-context.js +2 -2
- package/es/template/app-player/player/slides/test/fixtures/arabic-context.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/arabic-qcm.js +1 -1
- package/es/template/app-player/player/slides/test/fixtures/arabic-qcm.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/arabic-resources.js +2 -2
- package/es/template/app-player/player/slides/test/fixtures/arabic-resources.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/arabic.js +2 -2
- package/es/template/app-player/player/slides/test/fixtures/arabic.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/clue.js +2 -2
- package/es/template/app-player/player/slides/test/fixtures/clue.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/context-with-audio.js +2 -2
- package/es/template/app-player/player/slides/test/fixtures/context-with-audio.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/context-with-image.js +2 -2
- package/es/template/app-player/player/slides/test/fixtures/context-with-image.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/context-with-pdf.js +2 -2
- package/es/template/app-player/player/slides/test/fixtures/context-with-pdf.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/context-with-video.js +2 -2
- package/es/template/app-player/player/slides/test/fixtures/context-with-video.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/context.js +2 -2
- package/es/template/app-player/player/slides/test/fixtures/context.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/default.js +2 -2
- package/es/template/app-player/player/slides/test/fixtures/default.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/drop-down.js +1 -1
- package/es/template/app-player/player/slides/test/fixtures/drop-down.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/free-text.js +1 -1
- package/es/template/app-player/player/slides/test/fixtures/free-text.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/media-h5p.js +2 -2
- package/es/template/app-player/player/slides/test/fixtures/media-h5p.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/media-omni-player.js +2 -2
- package/es/template/app-player/player/slides/test/fixtures/media-omni-player.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/media.js +2 -2
- package/es/template/app-player/player/slides/test/fixtures/media.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/no-clue.js +2 -2
- package/es/template/app-player/player/slides/test/fixtures/no-clue.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/no-question.js +2 -2
- package/es/template/app-player/player/slides/test/fixtures/no-question.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/no-total.js +1 -1
- package/es/template/app-player/player/slides/test/fixtures/no-total.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/only-clue.js +2 -2
- package/es/template/app-player/player/slides/test/fixtures/only-clue.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/qcm-drag.js +1 -1
- package/es/template/app-player/player/slides/test/fixtures/qcm-drag.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/qcm-graphic.js +1 -1
- package/es/template/app-player/player/slides/test/fixtures/qcm-graphic.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/qcm-see-lesson-no-step.js +1 -1
- package/es/template/app-player/player/slides/test/fixtures/qcm-see-lesson-no-step.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/qcm-see-lesson.js +1 -1
- package/es/template/app-player/player/slides/test/fixtures/qcm-see-lesson.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/qcm-short.js +1 -1
- package/es/template/app-player/player/slides/test/fixtures/qcm-short.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/qcm-template.js +1 -1
- package/es/template/app-player/player/slides/test/fixtures/qcm-template.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/qcm-with-review-lesson.js +1 -1
- package/es/template/app-player/player/slides/test/fixtures/qcm-with-review-lesson.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/qcm.js +1 -1
- package/es/template/app-player/player/slides/test/fixtures/qcm.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/range.js +1 -1
- package/es/template/app-player/player/slides/test/fixtures/range.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/template.js +1 -1
- package/es/template/app-player/player/slides/test/fixtures/template.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/with-min-height.js +1 -1
- package/es/template/app-player/player/slides/test/fixtures/with-min-height.js.map +1 -1
- package/es/template/app-player/player/test/fixtures/background.js +1 -1
- package/es/template/app-player/player/test/fixtures/background.js.map +1 -1
- package/es/template/app-player/popin-correction/index.js +2 -3
- package/es/template/app-player/popin-correction/index.js.map +1 -1
- package/es/template/app-player/popin-correction/test/fixtures/correct-closed-without-klf-and-tips.js +1 -1
- package/es/template/app-player/popin-correction/test/fixtures/correct-closed-without-klf-and-tips.js.map +1 -1
- package/es/template/app-player/popin-correction/test/fixtures/correct-closed.js +1 -1
- package/es/template/app-player/popin-correction/test/fixtures/correct-closed.js.map +1 -1
- package/es/template/app-player/popin-end/summary.js +7 -11
- package/es/template/app-player/popin-end/summary.js.map +1 -1
- package/es/template/app-player/popin-end/test/fixtures/adaptive.js +2 -2
- package/es/template/app-player/popin-end/test/fixtures/adaptive.js.map +1 -1
- package/es/template/app-player/popin-end/test/fixtures/infinite-lives.js +2 -2
- package/es/template/app-player/popin-end/test/fixtures/infinite-lives.js.map +1 -1
- package/es/template/app-player/popin-header/index.js +3 -4
- package/es/template/app-player/popin-header/index.js.map +1 -1
- package/es/template/back-office/brand-create/test/fixtures/default.js +1 -1
- package/es/template/back-office/brand-create/test/fixtures/default.js.map +1 -1
- package/es/template/back-office/brand-create/test/fixtures/loading.js +1 -1
- package/es/template/back-office/brand-create/test/fixtures/loading.js.map +1 -1
- package/es/template/back-office/brand-create/test/fixtures/modified.js +1 -1
- package/es/template/back-office/brand-create/test/fixtures/modified.js.map +1 -1
- package/es/template/back-office/brand-list/test/fixtures/default.js +1 -1
- package/es/template/back-office/brand-list/test/fixtures/default.js.map +1 -1
- package/es/template/back-office/brand-list/test/fixtures/rh.js +1 -1
- package/es/template/back-office/brand-list/test/fixtures/rh.js.map +1 -1
- package/es/template/back-office/brand-update/index.js +7 -7
- package/es/template/back-office/brand-update/index.js.map +1 -1
- package/es/template/back-office/brand-update/test/fixtures/manageusers-edit.js +1 -1
- package/es/template/back-office/brand-update/test/fixtures/manageusers-edit.js.map +1 -1
- package/es/template/back-office/brand-update/test/fixtures/quick-access.js +1 -1
- package/es/template/back-office/brand-update/test/fixtures/quick-access.js.map +1 -1
- package/es/template/back-office/brand-update/test/fixtures/uploadusers-loading.js +1 -1
- package/es/template/back-office/brand-update/test/fixtures/uploadusers-loading.js.map +1 -1
- package/es/template/back-office/brand-update/test/fixtures/uploadusers-successful.js +1 -1
- package/es/template/back-office/brand-update/test/fixtures/uploadusers-successful.js.map +1 -1
- package/es/template/back-office/brand-update/test/fixtures/uploadusers.js +1 -1
- package/es/template/back-office/brand-update/test/fixtures/uploadusers.js.map +1 -1
- package/es/template/cockpit/jw-uploader/index.js +1 -1
- package/es/template/cockpit/jw-uploader/index.js.map +1 -1
- package/es/template/common/dashboard/index.js +1 -1
- package/es/template/common/dashboard/index.js.map +1 -1
- package/es/template/common/dashboard/test/fixtures/empty-requests.js +1 -1
- package/es/template/common/dashboard/test/fixtures/empty-requests.js.map +1 -1
- package/es/template/common/dashboard/test/fixtures/with-hero-card.js +1 -1
- package/es/template/common/dashboard/test/fixtures/with-hero-card.js.map +1 -1
- package/es/template/common/discipline/test/fixtures/add-to-my-list.js +1 -1
- package/es/template/common/discipline/test/fixtures/add-to-my-list.js.map +1 -1
- package/es/template/common/discipline/test/fixtures/arabic.js +1 -1
- package/es/template/common/discipline/test/fixtures/arabic.js.map +1 -1
- package/es/template/common/discipline/test/fixtures/default.js +2 -2
- package/es/template/common/discipline/test/fixtures/default.js.map +1 -1
- package/es/template/common/discipline/test/fixtures/external-course-with-video.js +2 -2
- package/es/template/common/discipline/test/fixtures/external-course-with-video.js.map +1 -1
- package/es/template/common/discipline/test/fixtures/external-course-without-image.js +2 -2
- package/es/template/common/discipline/test/fixtures/external-course-without-image.js.map +1 -1
- package/es/template/common/discipline/test/fixtures/external-course.js +2 -2
- package/es/template/common/discipline/test/fixtures/external-course.js.map +1 -1
- package/es/template/common/discipline/test/fixtures/share.js +1 -1
- package/es/template/common/discipline/test/fixtures/share.js.map +1 -1
- package/es/template/teams-dashboard/test/fixtures/default.js +1 -1
- package/es/template/teams-dashboard/test/fixtures/default.js.map +1 -1
- package/es/template/teams-dashboard/test/fixtures/is-loading.js +1 -1
- package/es/template/teams-dashboard/test/fixtures/is-loading.js.map +1 -1
- package/es/template/teams-dashboard/test/fixtures/mobile.js +1 -1
- package/es/template/teams-dashboard/test/fixtures/mobile.js.map +1 -1
- package/es/util/shallow-compare.js.map +1 -1
- package/es/util/test/navigation.js +3 -4
- package/es/util/test/navigation.js.map +1 -1
- package/es/variables/colors.css +12 -0
- package/lib/atom/autocomplete/index.js +2 -2
- package/lib/atom/autocomplete/test/fixtures/error.js +1 -1
- package/lib/atom/autocomplete/test/fixtures/error.js.map +1 -1
- package/lib/atom/autocomplete/test/fixtures/filled.js +1 -1
- package/lib/atom/autocomplete/test/fixtures/filled.js.map +1 -1
- package/lib/atom/autocomplete/test/fixtures/modified.js +1 -1
- package/lib/atom/autocomplete/test/fixtures/modified.js.map +1 -1
- package/lib/atom/chips/index.js +52 -0
- package/lib/atom/chips/index.js.map +1 -0
- package/lib/atom/chips/style.css +66 -0
- package/lib/atom/chips/test/fixtures/default.js +14 -0
- package/lib/atom/chips/test/fixtures/default.js.map +1 -0
- package/lib/atom/chips/test/fixtures/non-selected.js +14 -0
- package/lib/atom/chips/test/fixtures/non-selected.js.map +1 -0
- package/lib/atom/chips/test/fixtures.js +25 -0
- package/lib/atom/chips/test/fixtures.js.map +1 -0
- package/lib/atom/clue/index.js.map +1 -1
- package/lib/atom/content-badge/index.js +32 -0
- package/lib/atom/content-badge/index.js.map +1 -0
- package/lib/atom/content-badge/style.css +59 -0
- package/lib/atom/content-badge/test/fixtures/advanced.js +12 -0
- package/lib/atom/content-badge/test/fixtures/advanced.js.map +1 -0
- package/lib/atom/content-badge/test/fixtures/article.js +12 -0
- package/lib/atom/content-badge/test/fixtures/article.js.map +1 -0
- package/lib/atom/content-badge/test/fixtures/chapter.js +12 -0
- package/lib/atom/content-badge/test/fixtures/chapter.js.map +1 -0
- package/lib/atom/content-badge/test/fixtures/coach.js +12 -0
- package/lib/atom/content-badge/test/fixtures/coach.js.map +1 -0
- package/lib/atom/content-badge/test/fixtures/default.js +12 -0
- package/lib/atom/content-badge/test/fixtures/default.js.map +1 -0
- package/lib/atom/content-badge/test/fixtures/podcast.js +12 -0
- package/lib/atom/content-badge/test/fixtures/podcast.js.map +1 -0
- package/lib/atom/content-badge/test/fixtures/scorm.js +12 -0
- package/lib/atom/content-badge/test/fixtures/scorm.js.map +1 -0
- package/lib/atom/content-badge/test/fixtures/video.js +12 -0
- package/lib/atom/content-badge/test/fixtures/video.js.map +1 -0
- package/lib/atom/content-badge/test/fixtures.js +43 -0
- package/lib/atom/content-badge/test/fixtures.js.map +1 -0
- package/lib/atom/cta/test/fixtures/certification.js +1 -1
- package/lib/atom/cta/test/fixtures/certification.js.map +1 -1
- package/lib/atom/cta/test/fixtures/disabled.js +1 -1
- package/lib/atom/cta/test/fixtures/disabled.js.map +1 -1
- package/lib/atom/cta/test/fixtures/light-small.js +1 -1
- package/lib/atom/cta/test/fixtures/light-small.js.map +1 -1
- package/lib/atom/cta/test/fixtures/light.js +1 -1
- package/lib/atom/cta/test/fixtures/light.js.map +1 -1
- package/lib/atom/cta/test/fixtures/logout.js +1 -1
- package/lib/atom/cta/test/fixtures/logout.js.map +1 -1
- package/lib/atom/cta/test/fixtures/primary-small.js +1 -1
- package/lib/atom/cta/test/fixtures/primary-small.js.map +1 -1
- package/lib/atom/cta/test/fixtures/rectangular-secondary-fullwidth.js +1 -1
- package/lib/atom/cta/test/fixtures/rectangular-secondary-fullwidth.js.map +1 -1
- package/lib/atom/cta/test/fixtures/rectangular-secondary.js +1 -1
- package/lib/atom/cta/test/fixtures/rectangular-secondary.js.map +1 -1
- package/lib/atom/cta/test/fixtures/rectangular.js +1 -1
- package/lib/atom/cta/test/fixtures/rectangular.js.map +1 -1
- package/lib/atom/cta/test/fixtures/secondary-small.js +1 -1
- package/lib/atom/cta/test/fixtures/secondary-small.js.map +1 -1
- package/lib/atom/cta/test/fixtures/secondary.js +1 -1
- package/lib/atom/cta/test/fixtures/secondary.js.map +1 -1
- package/lib/atom/drag-and-drop/index.js +1 -1
- package/lib/atom/drag-and-drop/index.js.map +1 -1
- package/lib/atom/drag-and-drop/test/fixtures/loading.js +1 -1
- package/lib/atom/drag-and-drop/test/fixtures/loading.js.map +1 -1
- package/lib/atom/drag-and-drop/test/fixtures/with-image-reset.js +1 -1
- package/lib/atom/drag-and-drop/test/fixtures/with-image-reset.js.map +1 -1
- package/lib/atom/image-upload/index.js +3 -3
- package/lib/atom/image-upload/index.js.map +1 -1
- package/lib/atom/image-upload/test/fixtures/desktop-reset-description-multiple.js +1 -1
- package/lib/atom/image-upload/test/fixtures/desktop-reset-description-multiple.js.map +1 -1
- package/lib/atom/image-upload/test/fixtures/desktop-reset-description-only-png.js +1 -1
- package/lib/atom/image-upload/test/fixtures/desktop-reset-description-only-png.js.map +1 -1
- package/lib/atom/image-upload/test/fixtures/desktop-reset-description.js +1 -1
- package/lib/atom/image-upload/test/fixtures/desktop-reset-description.js.map +1 -1
- package/lib/atom/image-upload/test/fixtures/desktop-reset-no-description.js +1 -1
- package/lib/atom/image-upload/test/fixtures/desktop-reset-no-description.js.map +1 -1
- package/lib/atom/image-upload/test/fixtures/email.js +1 -1
- package/lib/atom/image-upload/test/fixtures/email.js.map +1 -1
- package/lib/atom/image-upload/test/fixtures/mobile.js +1 -1
- package/lib/atom/image-upload/test/fixtures/mobile.js.map +1 -1
- package/lib/atom/image-upload/test/fixtures/modified.js +1 -1
- package/lib/atom/image-upload/test/fixtures/modified.js.map +1 -1
- package/lib/atom/input-checkbox/index.js +2 -2
- package/lib/atom/input-checkbox/index.js.map +1 -1
- package/lib/atom/input-checkbox/style.css +0 -4
- package/lib/atom/input-color/index.js +2 -2
- package/lib/atom/input-doublestep/index.js +2 -2
- package/lib/atom/input-html/index.js.map +1 -1
- package/lib/atom/input-switch/index.js +2 -2
- package/lib/atom/input-switch/test/fixtures/disabled.js +1 -1
- package/lib/atom/input-switch/test/fixtures/disabled.js.map +1 -1
- package/lib/atom/input-text/index.js +38 -8
- package/lib/atom/input-text/index.js.map +1 -1
- package/lib/atom/input-text/style.css +224 -1
- package/lib/atom/input-text/test/fixtures/cm-default.js +22 -0
- package/lib/atom/input-text/test/fixtures/cm-default.js.map +1 -0
- package/lib/atom/input-textarea/index.js +2 -2
- package/lib/atom/link/index.js +2 -4
- package/lib/atom/link/index.js.map +1 -1
- package/lib/atom/promo-code/index.js.map +1 -1
- package/lib/atom/provider/index.js.map +1 -1
- package/lib/atom/provider/test/index.js +1 -1
- package/lib/atom/provider/test/index.js.map +1 -1
- package/lib/atom/range/index.js +1 -1
- package/lib/atom/range/index.js.map +1 -1
- package/lib/atom/range/test/fixtures/multi.js +1 -1
- package/lib/atom/range/test/fixtures/multi.js.map +1 -1
- package/lib/atom/range/test/index.js +9 -9
- package/lib/atom/range/test/index.js.map +1 -1
- package/lib/atom/select/index.js +2 -2
- package/lib/atom/tab/index.js +2 -2
- package/lib/atom/video-upload/index.js +1 -1
- package/lib/atom/video-upload/index.js.map +1 -1
- package/lib/atom/video-upload/test/fixtures/loading.js +1 -1
- package/lib/atom/video-upload/test/fixtures/loading.js.map +1 -1
- package/lib/atom/video-upload/test/fixtures/modified.js +1 -1
- package/lib/atom/video-upload/test/fixtures/modified.js.map +1 -1
- package/lib/atom/wizard-steps/index.js +49 -0
- package/lib/atom/wizard-steps/index.js.map +1 -0
- package/lib/atom/wizard-steps/style.css +150 -0
- package/lib/atom/wizard-steps/test/fixtures/default.js +33 -0
- package/lib/atom/wizard-steps/test/fixtures/default.js.map +1 -0
- package/lib/atom/wizard-steps/test/fixtures/first-step.js +33 -0
- package/lib/atom/wizard-steps/test/fixtures/first-step.js.map +1 -0
- package/lib/atom/wizard-steps/test/fixtures/last-step.js +33 -0
- package/lib/atom/wizard-steps/test/fixtures/last-step.js.map +1 -0
- package/lib/atom/wizard-steps/test/fixtures.js +28 -0
- package/lib/atom/wizard-steps/test/fixtures.js.map +1 -0
- package/lib/hoc/animation/index.js +1 -1
- package/lib/hoc/animation/test/on-mount.js +2 -2
- package/lib/hoc/animation-scheduler/index.js +4 -4
- package/lib/hoc/animation-scheduler/index.js.map +1 -1
- package/lib/hoc/animation-scheduler/test/fixtures/parallel.js +3 -3
- package/lib/hoc/animation-scheduler/test/fixtures/series.js +2 -2
- package/lib/hoc/animation-scheduler/test/on-mount.js +2 -2
- package/lib/hoc/swapper/index.js +3 -5
- package/lib/hoc/swapper/index.js.map +1 -1
- package/lib/hoc/swapper/test/on-mount.js +2 -2
- package/lib/hoc/transition/index.js +3 -3
- package/lib/hoc/transition/index.js.map +1 -1
- package/lib/molecule/add-to-my-list/index.js +4 -4
- package/lib/molecule/add-to-my-list/index.js.map +1 -1
- package/lib/molecule/answer/index.js +3 -5
- package/lib/molecule/answer/index.js.map +1 -1
- package/lib/molecule/answer/test/fixtures/audio.js +1 -1
- package/lib/molecule/answer/test/fixtures/audio.js.map +1 -1
- package/lib/molecule/answer/test/fixtures/default.js +1 -1
- package/lib/molecule/answer/test/fixtures/default.js.map +1 -1
- package/lib/molecule/answer/test/fixtures/drop-down.js +1 -1
- package/lib/molecule/answer/test/fixtures/drop-down.js.map +1 -1
- package/lib/molecule/answer/test/fixtures/qcm-arabic.js +1 -1
- package/lib/molecule/answer/test/fixtures/qcm-arabic.js.map +1 -1
- package/lib/molecule/answer/test/fixtures/qcm-drag.js +1 -1
- package/lib/molecule/answer/test/fixtures/qcm-drag.js.map +1 -1
- package/lib/molecule/answer/test/fixtures/qcm-graphic.js +1 -1
- package/lib/molecule/answer/test/fixtures/qcm-graphic.js.map +1 -1
- package/lib/molecule/answer/test/fixtures/qcm-short-audio.js +1 -1
- package/lib/molecule/answer/test/fixtures/qcm-short-audio.js.map +1 -1
- package/lib/molecule/answer/test/fixtures/qcm-short-video.js +1 -1
- package/lib/molecule/answer/test/fixtures/qcm-short-video.js.map +1 -1
- package/lib/molecule/answer/test/fixtures/qcm-short.js +1 -1
- package/lib/molecule/answer/test/fixtures/qcm-short.js.map +1 -1
- package/lib/molecule/answer/test/fixtures/qcm.js +1 -1
- package/lib/molecule/answer/test/fixtures/qcm.js.map +1 -1
- package/lib/molecule/answer/test/fixtures/range.js +1 -1
- package/lib/molecule/answer/test/fixtures/range.js.map +1 -1
- package/lib/molecule/answer/test/fixtures/template.js +1 -1
- package/lib/molecule/answer/test/fixtures/template.js.map +1 -1
- package/lib/molecule/brand-create-form/index.js +2 -2
- package/lib/molecule/brand-form-group/index.js +18 -18
- package/lib/molecule/brand-form-group/index.js.map +1 -1
- package/lib/molecule/brand-form-group/test/fixtures/analytics.js +1 -1
- package/lib/molecule/brand-form-group/test/fixtures/analytics.js.map +1 -1
- package/lib/molecule/brand-form-group/test/fixtures/animations.js +2 -2
- package/lib/molecule/brand-form-group/test/fixtures/animations.js.map +1 -1
- package/lib/molecule/brand-form-group/test/fixtures/cohort.js +1 -1
- package/lib/molecule/brand-form-group/test/fixtures/cohort.js.map +1 -1
- package/lib/molecule/brand-form-group/test/fixtures/dashboard.js +1 -1
- package/lib/molecule/brand-form-group/test/fixtures/dashboard.js.map +1 -1
- package/lib/molecule/brand-form-group/test/fixtures/images.js +3 -3
- package/lib/molecule/brand-form-group/test/fixtures/images.js.map +1 -1
- package/lib/molecule/brand-form-group/test/fixtures/slider.js +1 -1
- package/lib/molecule/brand-form-group/test/fixtures/slider.js.map +1 -1
- package/lib/molecule/card/index.js +3 -3
- package/lib/molecule/card/index.js.map +1 -1
- package/lib/molecule/card/test/fixtures/adaptiv-and-disabled.js +1 -1
- package/lib/molecule/card/test/fixtures/adaptiv-and-disabled.js.map +1 -1
- package/lib/molecule/card/test/fixtures/adaptiv.js +1 -1
- package/lib/molecule/card/test/fixtures/adaptiv.js.map +1 -1
- package/lib/molecule/card/test/fixtures/disabled.js +1 -1
- package/lib/molecule/card/test/fixtures/disabled.js.map +1 -1
- package/lib/molecule/card-content/test/fixtures/adaptiv-and-disabled.js +1 -1
- package/lib/molecule/card-content/test/fixtures/adaptiv-and-disabled.js.map +1 -1
- package/lib/molecule/card-content/test/fixtures/adaptiv.js +1 -1
- package/lib/molecule/card-content/test/fixtures/adaptiv.js.map +1 -1
- package/lib/molecule/card-content/test/fixtures/disabled.js +1 -1
- package/lib/molecule/card-content/test/fixtures/disabled.js.map +1 -1
- package/lib/molecule/card-with-button/index.js.map +1 -1
- package/lib/molecule/coorp-manager-roles/index.js +1 -1
- package/lib/molecule/coorp-manager-roles/index.js.map +1 -1
- package/lib/molecule/dashboard/battle-request-list/index.js +1 -1
- package/lib/molecule/dashboard/battle-request-list/index.js.map +1 -1
- package/lib/molecule/dashboard/cards-list/test/fixtures/microlearning.js +1 -1
- package/lib/molecule/dashboard/cards-list/test/fixtures/microlearning.js.map +1 -1
- package/lib/molecule/dashboard/cards-list/test/fixtures/performance.js +1 -1
- package/lib/molecule/dashboard/cards-list/test/fixtures/performance.js.map +1 -1
- package/lib/molecule/dashboard/cards-list/test/index.js +1 -1
- package/lib/molecule/dashboard/cards-list/test/index.js.map +1 -1
- package/lib/molecule/dashboard/news-list/index.js +1 -1
- package/lib/molecule/dashboard/news-list/index.js.map +1 -1
- package/lib/molecule/dashboard/start-battle/index.js +1 -1
- package/lib/molecule/dashboard/start-battle/index.js.map +1 -1
- package/lib/molecule/discipline-header/test/fixtures/long-description.js.map +1 -1
- package/lib/molecule/discipline-partners/index.js +5 -2
- package/lib/molecule/discipline-partners/index.js.map +1 -1
- package/lib/molecule/drag-and-drop/index.js +3 -3
- package/lib/molecule/drag-and-drop/index.js.map +1 -1
- package/lib/molecule/drag-and-drop/test/fixtures/error.js +1 -1
- package/lib/molecule/drag-and-drop/test/fixtures/error.js.map +1 -1
- package/lib/molecule/drag-and-drop/test/fixtures/loading.js +1 -1
- package/lib/molecule/drag-and-drop/test/fixtures/loading.js.map +1 -1
- package/lib/molecule/drag-and-drop/test/fixtures/ready-invalid.js +1 -1
- package/lib/molecule/drag-and-drop/test/fixtures/ready-invalid.js.map +1 -1
- package/lib/molecule/drag-and-drop/test/fixtures/ready.js +1 -1
- package/lib/molecule/drag-and-drop/test/fixtures/ready.js.map +1 -1
- package/lib/molecule/drag-and-drop/test/fixtures/success-video.js +1 -1
- package/lib/molecule/drag-and-drop/test/fixtures/success-video.js.map +1 -1
- package/lib/molecule/drag-and-drop/test/fixtures/success.js +1 -1
- package/lib/molecule/drag-and-drop/test/fixtures/success.js.map +1 -1
- package/lib/molecule/drag-and-drop/test/on-click.js +2 -2
- package/lib/molecule/drag-and-drop/test/on-click.js.map +1 -1
- package/lib/molecule/drag-and-drop/upload-report.js +3 -3
- package/lib/molecule/drag-and-drop/upload-report.js.map +1 -1
- package/lib/molecule/feedback/index.js +3 -3
- package/lib/molecule/feedback/index.js.map +1 -1
- package/lib/molecule/filters/test/fixtures/default.js +4 -4
- package/lib/molecule/filters/test/fixtures/default.js.map +1 -1
- package/lib/molecule/filters/test/fixtures/filters-list.js +6 -6
- package/lib/molecule/filters/test/fixtures/filters-list.js.map +1 -1
- package/lib/molecule/filters/test/fixtures/one.js +2 -2
- package/lib/molecule/filters/test/fixtures/one.js.map +1 -1
- package/lib/molecule/filters/test/fixtures/only-radio-group.js +1 -1
- package/lib/molecule/filters/test/fixtures/only-radio-group.js.map +1 -1
- package/lib/molecule/filters/test/fixtures/only-timer.js +1 -1
- package/lib/molecule/filters/test/fixtures/only-timer.js.map +1 -1
- package/lib/molecule/filters/test/fixtures/three.js +3 -3
- package/lib/molecule/filters/test/fixtures/three.js.map +1 -1
- package/lib/molecule/filters/test/fixtures/two.js +3 -3
- package/lib/molecule/filters/test/fixtures/two.js.map +1 -1
- package/lib/molecule/filters/test/fixtures/zero.js +1 -1
- package/lib/molecule/filters/test/fixtures/zero.js.map +1 -1
- package/lib/molecule/forum/forum-thread/test/fixtures/deep-answers.js +4 -4
- package/lib/molecule/forum/forum-thread/test/fixtures/deep-answers.js.map +1 -1
- package/lib/molecule/forum/forum-thread/test/fixtures/with-answers.js +1 -1
- package/lib/molecule/forum/forum-thread/test/fixtures/with-answers.js.map +1 -1
- package/lib/molecule/hero/index.js +2 -2
- package/lib/molecule/hero/test/fixtures/arabic.js +1 -1
- package/lib/molecule/hero/test/fixtures/arabic.js.map +1 -1
- package/lib/molecule/hero/test/fixtures/hero.js +1 -1
- package/lib/molecule/hero/test/fixtures/hero.js.map +1 -1
- package/lib/molecule/news/test/fixtures/long-description.js +1 -1
- package/lib/molecule/news/test/fixtures/long-description.js.map +1 -1
- package/lib/molecule/news/test/fixtures/long-title.js +1 -1
- package/lib/molecule/news/test/fixtures/long-title.js.map +1 -1
- package/lib/molecule/news/test/fixtures/small-desciption.js +1 -1
- package/lib/molecule/news/test/fixtures/small-desciption.js.map +1 -1
- package/lib/molecule/news/test/fixtures/small-title.js +1 -1
- package/lib/molecule/news/test/fixtures/small-title.js.map +1 -1
- package/lib/molecule/popin/index.js +3 -3
- package/lib/molecule/popin/index.js.map +1 -1
- package/lib/molecule/progress-bar/index.js +1 -1
- package/lib/molecule/progress-bar/index.js.map +1 -1
- package/lib/molecule/questions/drop-down/index.js +3 -3
- package/lib/molecule/questions/drop-down/index.js.map +1 -1
- package/lib/molecule/questions/free-text/index.js +2 -2
- package/lib/molecule/questions/question-range/index.js +2 -4
- package/lib/molecule/questions/question-range/index.js.map +1 -1
- package/lib/molecule/questions/template/index.js +2 -2
- package/lib/molecule/questions/template/index.js.map +1 -1
- package/lib/molecule/questions/template/test/index.js +1 -1
- package/lib/molecule/questions/template/test/index.js.map +1 -1
- package/lib/molecule/quick-access-card/index.js.map +1 -1
- package/lib/molecule/resource-player/index.js +2 -4
- package/lib/molecule/resource-player/index.js.map +1 -1
- package/lib/molecule/scope-tabs/index.js +2 -2
- package/lib/molecule/search/index.js +2 -2
- package/lib/molecule/search-form/index.js +2 -2
- package/lib/molecule/select-multiple/index.js +1 -1
- package/lib/molecule/select-multiple/index.js.map +1 -1
- package/lib/molecule/select-multiple/test/index.js +3 -3
- package/lib/molecule/select-multiple/test/index.js.map +1 -1
- package/lib/molecule/setup-section/index.js +1 -1
- package/lib/molecule/setup-section/index.js.map +1 -1
- package/lib/molecule/setup-section/test/fixtures/first.js +1 -1
- package/lib/molecule/setup-section/test/fixtures/first.js.map +1 -1
- package/lib/molecule/setup-sections/index.js +2 -2
- package/lib/molecule/setup-slide/index.js +8 -8
- package/lib/molecule/setup-slide/index.js.map +1 -1
- package/lib/molecule/share/index.js +4 -4
- package/lib/molecule/share/index.js.map +1 -1
- package/lib/molecule/titled-checkbox/index.js +2 -2
- package/lib/molecule/vertical-tabs/index.js +66 -0
- package/lib/molecule/vertical-tabs/index.js.map +1 -0
- package/lib/molecule/vertical-tabs/style.css +69 -0
- package/lib/molecule/vertical-tabs/test/fixtures/default.js +46 -0
- package/lib/molecule/vertical-tabs/test/fixtures/default.js.map +1 -0
- package/lib/molecule/vertical-tabs/test/fixtures/with-selected-item.js +86 -0
- package/lib/molecule/vertical-tabs/test/fixtures/with-selected-item.js.map +1 -0
- package/lib/molecule/vertical-tabs/test/fixtures.js +25 -0
- package/lib/molecule/vertical-tabs/test/fixtures.js.map +1 -0
- package/lib/molecule/video-iframe/index.js +1 -1
- package/lib/molecule/video-iframe/index.js.map +1 -1
- package/lib/molecule/video-player/index.js +1 -3
- package/lib/molecule/video-player/index.js.map +1 -1
- package/lib/molecule/video-player/jwplayer.js +2 -2
- package/lib/molecule/video-player/jwplayer.js.map +1 -1
- package/lib/molecule/video-player/test/fixtures/youtube.js +1 -1
- package/lib/molecule/video-player/test/fixtures/youtube.js.map +1 -1
- package/lib/molecule/video-player/vimeo.js +1 -1
- package/lib/molecule/video-player/vimeo.js.map +1 -1
- package/lib/molecule/wizard-summary/index.js +177 -0
- package/lib/molecule/wizard-summary/index.js.map +1 -0
- package/lib/molecule/wizard-summary/style.css +150 -0
- package/lib/molecule/wizard-summary/test/fixtures/default.js +122 -0
- package/lib/molecule/wizard-summary/test/fixtures/default.js.map +1 -0
- package/lib/molecule/wizard-summary/test/fixtures/one-section.js +27 -0
- package/lib/molecule/wizard-summary/test/fixtures/one-section.js.map +1 -0
- package/lib/molecule/wizard-summary/test/fixtures/three-sections.js +46 -0
- package/lib/molecule/wizard-summary/test/fixtures/three-sections.js.map +1 -0
- package/lib/molecule/wizard-summary/test/fixtures/two-sections.js +39 -0
- package/lib/molecule/wizard-summary/test/fixtures/two-sections.js.map +1 -0
- package/lib/molecule/wizard-summary/test/fixtures.js +31 -0
- package/lib/molecule/wizard-summary/test/fixtures.js.map +1 -0
- package/lib/organism/accordion/container/index.js +2 -2
- package/lib/organism/accordion/coorp-manager/index.js +3 -3
- package/lib/organism/accordion/coorp-manager/index.js.map +1 -1
- package/lib/organism/accordion/toggler/index.js +1 -1
- package/lib/organism/accordion/toggler/index.js.map +1 -1
- package/lib/organism/accordion/toggler/test/render.js +2 -2
- package/lib/organism/accordion/toggler/test/render.js.map +1 -1
- package/lib/organism/brand-form/index.js +2 -2
- package/lib/organism/brand-form/test/fixtures/manageusers-edit.js.map +1 -1
- package/lib/organism/brand-form/test/fixtures/sso.js +3 -3
- package/lib/organism/brand-form/test/fixtures/sso.js.map +1 -1
- package/lib/organism/discussion/test/fixtures/default.js +1 -1
- package/lib/organism/discussion/test/fixtures/default.js.map +1 -1
- package/lib/organism/discussion/test/fixtures/loading-more.js +1 -1
- package/lib/organism/discussion/test/fixtures/loading-more.js.map +1 -1
- package/lib/organism/discussion/test/fixtures/new-discussion.js +1 -1
- package/lib/organism/discussion/test/fixtures/new-discussion.js.map +1 -1
- package/lib/organism/get-the-app/index.js +2 -2
- package/lib/organism/get-the-app/index.js.map +1 -1
- package/lib/organism/mooc/image-slider/test/fixtures/multiple-slides.js +2 -2
- package/lib/organism/mooc/image-slider/test/fixtures/multiple-slides.js.map +1 -1
- package/lib/organism/mooc-header/test/fixtures/default.js +1 -1
- package/lib/organism/mooc-header/test/fixtures/default.js.map +1 -1
- package/lib/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js +1 -1
- package/lib/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js.map +1 -1
- package/lib/organism/popin/test/fixtures/default.js.map +1 -1
- package/lib/organism/resource-browser/test/fixtures/jwplayer-with-overlay.js +1 -1
- package/lib/organism/resource-browser/test/fixtures/jwplayer-with-overlay.js.map +1 -1
- package/lib/organism/resource-browser/test/fixtures/jwplayer.js +1 -1
- package/lib/organism/resource-browser/test/fixtures/jwplayer.js.map +1 -1
- package/lib/organism/resource-browser/test/fixtures/kontiki.js +1 -1
- package/lib/organism/resource-browser/test/fixtures/kontiki.js.map +1 -1
- package/lib/organism/resource-browser/test/fixtures/mp4.js +1 -1
- package/lib/organism/resource-browser/test/fixtures/mp4.js.map +1 -1
- package/lib/organism/settings/index.js +2 -4
- package/lib/organism/settings/index.js.map +1 -1
- package/lib/organism/sidebar/index.js +13 -15
- package/lib/organism/sidebar/index.js.map +1 -1
- package/lib/organism/user-preferences/index.js +2 -4
- package/lib/organism/user-preferences/index.js.map +1 -1
- package/lib/organism/user-preferences/style.css +1 -0
- package/lib/template/activity/index.js +1 -1
- package/lib/template/activity/index.js.map +1 -1
- package/lib/template/activity/progression-item.js +2 -2
- package/lib/template/activity/test/progression-item-test.js +1 -1
- package/lib/template/activity/test/progression-item-test.js.map +1 -1
- package/lib/template/app-player/player/slides/footer/index.js +1 -1
- package/lib/template/app-player/player/slides/footer/index.js.map +1 -1
- package/lib/template/app-player/player/slides/index.js +11 -15
- package/lib/template/app-player/player/slides/index.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/arabic-context.js +2 -2
- package/lib/template/app-player/player/slides/test/fixtures/arabic-context.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/arabic-qcm.js +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/arabic-qcm.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/arabic-resources.js +2 -2
- package/lib/template/app-player/player/slides/test/fixtures/arabic-resources.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/arabic.js +2 -2
- package/lib/template/app-player/player/slides/test/fixtures/arabic.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/clue.js +2 -2
- package/lib/template/app-player/player/slides/test/fixtures/clue.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/context-with-audio.js +2 -2
- package/lib/template/app-player/player/slides/test/fixtures/context-with-audio.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/context-with-image.js +2 -2
- package/lib/template/app-player/player/slides/test/fixtures/context-with-image.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/context-with-pdf.js +2 -2
- package/lib/template/app-player/player/slides/test/fixtures/context-with-pdf.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/context-with-video.js +2 -2
- package/lib/template/app-player/player/slides/test/fixtures/context-with-video.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/context.js +2 -2
- package/lib/template/app-player/player/slides/test/fixtures/context.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/default.js +2 -2
- package/lib/template/app-player/player/slides/test/fixtures/default.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/drop-down.js +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/drop-down.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/free-text.js +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/free-text.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/media-h5p.js +2 -2
- package/lib/template/app-player/player/slides/test/fixtures/media-h5p.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/media-omni-player.js +2 -2
- package/lib/template/app-player/player/slides/test/fixtures/media-omni-player.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/media.js +2 -2
- package/lib/template/app-player/player/slides/test/fixtures/media.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/no-clue.js +2 -2
- package/lib/template/app-player/player/slides/test/fixtures/no-clue.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/no-question.js +2 -2
- package/lib/template/app-player/player/slides/test/fixtures/no-question.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/no-total.js +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/no-total.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/only-clue.js +2 -2
- package/lib/template/app-player/player/slides/test/fixtures/only-clue.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/qcm-drag.js +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/qcm-drag.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/qcm-graphic.js +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/qcm-graphic.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/qcm-see-lesson-no-step.js +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/qcm-see-lesson-no-step.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/qcm-see-lesson.js +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/qcm-see-lesson.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/qcm-short.js +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/qcm-short.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/qcm-template.js +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/qcm-template.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/qcm-with-review-lesson.js +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/qcm-with-review-lesson.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/qcm.js +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/qcm.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/range.js +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/range.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/template.js +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/template.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/with-min-height.js +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/with-min-height.js.map +1 -1
- package/lib/template/app-player/player/test/fixtures/background.js +1 -1
- package/lib/template/app-player/player/test/fixtures/background.js.map +1 -1
- package/lib/template/app-player/popin-correction/index.js +4 -6
- package/lib/template/app-player/popin-correction/index.js.map +1 -1
- package/lib/template/app-player/popin-correction/test/fixtures/correct-closed-without-klf-and-tips.js +1 -1
- package/lib/template/app-player/popin-correction/test/fixtures/correct-closed-without-klf-and-tips.js.map +1 -1
- package/lib/template/app-player/popin-correction/test/fixtures/correct-closed.js +1 -1
- package/lib/template/app-player/popin-correction/test/fixtures/correct-closed.js.map +1 -1
- package/lib/template/app-player/popin-end/summary.js +7 -12
- package/lib/template/app-player/popin-end/summary.js.map +1 -1
- package/lib/template/app-player/popin-end/test/fixtures/adaptive.js +2 -2
- package/lib/template/app-player/popin-end/test/fixtures/adaptive.js.map +1 -1
- package/lib/template/app-player/popin-end/test/fixtures/infinite-lives.js +2 -2
- package/lib/template/app-player/popin-end/test/fixtures/infinite-lives.js.map +1 -1
- package/lib/template/app-player/popin-header/index.js +5 -7
- package/lib/template/app-player/popin-header/index.js.map +1 -1
- package/lib/template/back-office/brand-create/test/fixtures/default.js +1 -1
- package/lib/template/back-office/brand-create/test/fixtures/default.js.map +1 -1
- package/lib/template/back-office/brand-create/test/fixtures/loading.js +1 -1
- package/lib/template/back-office/brand-create/test/fixtures/loading.js.map +1 -1
- package/lib/template/back-office/brand-create/test/fixtures/modified.js +1 -1
- package/lib/template/back-office/brand-create/test/fixtures/modified.js.map +1 -1
- package/lib/template/back-office/brand-list/test/fixtures/default.js +1 -1
- package/lib/template/back-office/brand-list/test/fixtures/default.js.map +1 -1
- package/lib/template/back-office/brand-list/test/fixtures/rh.js +1 -1
- package/lib/template/back-office/brand-list/test/fixtures/rh.js.map +1 -1
- package/lib/template/back-office/brand-update/index.js +7 -7
- package/lib/template/back-office/brand-update/index.js.map +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/analytics.js +2 -2
- package/lib/template/back-office/brand-update/test/fixtures/animations.js +2 -2
- package/lib/template/back-office/brand-update/test/fixtures/cohort-error.js +2 -2
- package/lib/template/back-office/brand-update/test/fixtures/cohort.js +2 -2
- package/lib/template/back-office/brand-update/test/fixtures/dashboard.js +2 -2
- package/lib/template/back-office/brand-update/test/fixtures/dashboards-analytics.js +2 -2
- package/lib/template/back-office/brand-update/test/fixtures/default.js +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/lms-error.js +2 -2
- package/lib/template/back-office/brand-update/test/fixtures/lms-modified.js +2 -2
- package/lib/template/back-office/brand-update/test/fixtures/lms-success.js +2 -2
- package/lib/template/back-office/brand-update/test/fixtures/lms.js +2 -2
- package/lib/template/back-office/brand-update/test/fixtures/lookandfeel.js +2 -2
- package/lib/template/back-office/brand-update/test/fixtures/manageusers-edit.js +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/manageusers-edit.js.map +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/manageusers.js +2 -2
- package/lib/template/back-office/brand-update/test/fixtures/quick-access.js +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/quick-access.js.map +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/sso.js +2 -2
- package/lib/template/back-office/brand-update/test/fixtures/uploadusers-loading.js +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/uploadusers-loading.js.map +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/uploadusers-successful.js +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/uploadusers-successful.js.map +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/uploadusers.js +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/uploadusers.js.map +1 -1
- package/lib/template/cockpit/jw-uploader/index.js +1 -1
- package/lib/template/cockpit/jw-uploader/index.js.map +1 -1
- package/lib/template/common/dashboard/index.js +1 -1
- package/lib/template/common/dashboard/index.js.map +1 -1
- package/lib/template/common/dashboard/test/fixtures/empty-requests.js +1 -1
- package/lib/template/common/dashboard/test/fixtures/empty-requests.js.map +1 -1
- package/lib/template/common/dashboard/test/fixtures/with-hero-card.js +1 -1
- package/lib/template/common/dashboard/test/fixtures/with-hero-card.js.map +1 -1
- package/lib/template/common/discipline/index.js +2 -2
- package/lib/template/common/discipline/test/fixtures/add-to-my-list.js +1 -1
- package/lib/template/common/discipline/test/fixtures/add-to-my-list.js.map +1 -1
- package/lib/template/common/discipline/test/fixtures/arabic.js +1 -1
- package/lib/template/common/discipline/test/fixtures/arabic.js.map +1 -1
- package/lib/template/common/discipline/test/fixtures/default.js +2 -2
- package/lib/template/common/discipline/test/fixtures/default.js.map +1 -1
- package/lib/template/common/discipline/test/fixtures/external-course-with-video.js +2 -2
- package/lib/template/common/discipline/test/fixtures/external-course-with-video.js.map +1 -1
- package/lib/template/common/discipline/test/fixtures/external-course-without-image.js +2 -2
- package/lib/template/common/discipline/test/fixtures/external-course-without-image.js.map +1 -1
- package/lib/template/common/discipline/test/fixtures/external-course.js +2 -2
- package/lib/template/common/discipline/test/fixtures/external-course.js.map +1 -1
- package/lib/template/common/discipline/test/fixtures/share.js +1 -1
- package/lib/template/common/discipline/test/fixtures/share.js.map +1 -1
- package/lib/template/teams-dashboard/index.js +2 -2
- package/lib/template/teams-dashboard/test/fixtures/default.js +2 -2
- package/lib/template/teams-dashboard/test/fixtures/default.js.map +1 -1
- package/lib/template/teams-dashboard/test/fixtures/is-loading.js +1 -1
- package/lib/template/teams-dashboard/test/fixtures/is-loading.js.map +1 -1
- package/lib/template/teams-dashboard/test/fixtures/mobile.js +1 -1
- package/lib/template/teams-dashboard/test/fixtures/mobile.js.map +1 -1
- package/lib/test/helpers/render-component.js +1 -1
- package/lib/util/external-content.js +1 -1
- package/lib/util/proptypes.js +1 -1
- package/lib/util/shallow-compare.js.map +1 -1
- package/lib/util/test/navigation.js +3 -5
- package/lib/util/test/navigation.js.map +1 -1
- package/lib/variables/colors.css +12 -0
- package/package.json +3 -3
- package/es/molecule/cockpit-popin/test/fixtures.js +0 -17
- package/es/molecule/cockpit-popin/test/fixtures.js.map +0 -1
- package/lib/molecule/cockpit-popin/test/fixtures.js +0 -28
- package/lib/molecule/cockpit-popin/test/fixtures.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/molecule/video-player/index.js"],"names":["React","PropTypes","SrcPropType","VideoIframe","JWPlayer","Vimeo","style","VideoPlayer","Component","getDerivedStateFromProps","props","state","id","played","constructor","e","onResume","onPlay","setState","mimeType","url","onPause","onEnded","width","height","wrapper","handleOnPlay","split","disableAutostart","jwpOptions","otherProps","render","renderPlayer","propTypes","string","func","onError","autoplay","bool","oneOf","isRequired"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/molecule/video-player/index.js"],"names":["React","PropTypes","SrcPropType","VideoIframe","JWPlayer","Vimeo","style","VideoPlayer","Component","getDerivedStateFromProps","props","state","id","played","constructor","e","onResume","onPlay","setState","mimeType","url","onPause","onEnded","width","height","wrapper","handleOnPlay","split","disableAutostart","jwpOptions","otherProps","render","renderPlayer","propTypes","string","func","onError","autoplay","bool","oneOf","isRequired"],"mappings":";;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,SAAQC,WAAR,QAA0B,sBAA1B;AACA,OAAOC,WAAP,MAAwB,iBAAxB;AACA,OAAOC,QAAP,MAAqB,YAArB;AACA,OAAOC,KAAP,MAAkB,SAAlB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,WAAN,SAA0BP,KAAK,CAACQ,SAAhC,CAA0C;AA0BxC,SAAOC,wBAAP,CAAgCC,KAAhC,EAAuCC,KAAvC,EAA8C;AAC5C,QAAID,KAAK,CAACE,EAAN,KAAaD,KAAK,CAACC,EAAvB,EAA2B,OAAO,IAAP;AAE3B,WAAO;AACLA,MAAAA,EAAE,EAAEF,KAAK,CAACE,EADL;AAELC,MAAAA,MAAM,EAAE;AAFH,KAAP;AAID;;AAEDC,EAAAA,WAAW,CAACJ,KAAD,EAAQ;AACjB,UAAMA,KAAN;;AADiB,0CAQJK,CAAC,IAAI;AAClB,YAAM;AAACF,QAAAA;AAAD,UAAW,KAAKF,KAAtB;AACA,YAAM;AAACK,QAAAA,QAAD;AAAWC,QAAAA;AAAX,UAAqB,KAAKP,KAAhC;;AACA,UAAIG,MAAJ,EAAY;AACV,YAAIG,QAAJ,EAAcA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T,EAAAA,UAAU,EAAEzB,QAAQ,CAAC6B,SAAT,CAAmBJ,UAZd;AAajBV,EAAAA,QAAQ,EAAElB,SAAS,CAACsC,KAAV,CAAgB,CACxB,qBADwB,EAExB,oBAFwB,EAGxB,mBAHwB,EAIxB,qBAJwB,EAKxB,sBALwB,EAMxB,wBANwB,EAOxB,iBAPwB,EAQxB,WARwB,CAAhB,EASPC;AAtBc,C;AAmHrB,eAAejC,WAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {SrcPropType} from '../../util/proptypes';\nimport VideoIframe from '../video-iframe';\nimport JWPlayer from './jwplayer';\nimport Vimeo from './vimeo';\nimport style from './style.css';\n\nclass VideoPlayer extends React.Component {\n static propTypes = {\n id: PropTypes.string,\n width: PropTypes.string,\n height: PropTypes.string,\n url: SrcPropType,\n onPlay: PropTypes.func,\n onResume: PropTypes.func,\n onPause: PropTypes.func,\n onEnded: PropTypes.func,\n onError: PropTypes.func,\n autoplay: PropTypes.bool,\n disableAutostart: PropTypes.bool,\n jwpOptions: JWPlayer.propTypes.jwpOptions,\n mimeType: PropTypes.oneOf([\n 'application/kontiki',\n 'application/uptale',\n 'application/vimeo',\n 'application/youtube',\n 'application/jwplayer',\n 'application/omniPlayer',\n 'application/h5p',\n 'video/mp4'\n ]).isRequired\n };\n\n static getDerivedStateFromProps(props, state) {\n if (props.id === state.id) return null;\n\n return {\n id: props.id,\n played: false\n };\n }\n\n constructor(props) {\n super(props);\n this.state = {\n played: false,\n id: props.id\n };\n }\n\n handleOnPlay = e => {\n const {played} = this.state;\n const {onResume, onPlay} = this.props;\n if (played) {\n if (onResume) onResume(e);\n } else if (onPlay) onPlay(e);\n this.setState({\n played: true\n });\n };\n\n renderPlayer = () => {\n const {mimeType, id, url, onPause, onEnded, width = '100%', height = '343px'} = this.props;\n switch (mimeType) {\n case 'application/vimeo':\n return (\n <Vimeo\n {...this.props}\n key={id}\n width={width}\n height={height}\n video={id}\n className={style.wrapper}\n onPlay={this.handleOnPlay}\n />\n );\n case 'application/youtube':\n case 'application/uptale':\n case 'application/h5p':\n case 'application/omniPlayer':\n return (\n <VideoIframe\n key={id}\n type={mimeType.split('application/')[1]}\n id={id}\n url={url}\n width={width}\n height={height}\n frameBorder={0}\n allowFullScreen\n onPlay={this.handleOnPlay}\n onPause={onPause}\n onEnded={onEnded}\n />\n );\n case 'application/kontiki':\n case 'application/jwplayer':\n case 'video/mp4': {\n const {disableAutostart, jwpOptions, ...otherProps} = this.props;\n\n return (\n <JWPlayer\n {...otherProps}\n disableAutostart={disableAutostart}\n jwpOptions={jwpOptions}\n onPlay={this.handleOnPlay}\n key={id}\n />\n );\n }\n }\n };\n\n render() {\n const {id} = this.props;\n return (\n <div data-name=\"video-player\" className={style.wrapper} key={id}>\n {this.renderPlayer()}\n </div>\n );\n }\n}\n\nexport default VideoPlayer;\n"],"file":"index.js"}
|
|
@@ -189,8 +189,8 @@ class JWPlayer extends React.Component {
|
|
|
189
189
|
fileUrl
|
|
190
190
|
} = this.state;
|
|
191
191
|
|
|
192
|
-
const _jwpOptions = _extends({}, jwpOptions, {
|
|
193
|
-
customProps: _extends({}, _get('customProps', jwpOptions), {
|
|
192
|
+
const _jwpOptions = _extends(_extends({}, jwpOptions), {}, {
|
|
193
|
+
customProps: _extends(_extends({}, _get('customProps', jwpOptions)), {}, {
|
|
194
194
|
autostart: !disableAutostart && _get('customProps.autostart', jwpOptions)
|
|
195
195
|
})
|
|
196
196
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/molecule/video-player/jwplayer.js"],"names":["React","PropTypes","ReactJWPlayer","SrcPropType","style","JWPlayer","Component","constructor","props","context","state","fileUrl","scriptFailedLoading","handlePlay","bind","handleResume","handlePause","handleEnded","handleError","handleSetupError","handleScriptError","handlePlayAttemptFailed","handleAutostartNotAllowed","handleWarning","componentDidMount","jwPlayerScript","document","getElementById","onerror","setFileUrl","componentDidUpdate","prevProps","changes","filter","key","current","prev","shouldStart","window","jwplayer","jwpOptions","playerId","play","file","setState","e","onPlay","onResume","onPause","onEnded","script","parentNode","removeChild","error","onSetupError","onPlayAttemptFailed","onAutostartNotAllowed","onWarning","onError","mimeType","code","videoUrl","regex","matched","match","videoId","render","disableAutostart","scriptErrorMessage","_jwpOptions","customProps","autostart","errorMessage","wrapper","propTypes","string","bool","shape","aspectratio","tracks","arrayOf","label","kind","default","boolean","oneOf","width","skin","name","licenseKey","isRequired","playerScript","func"],"mappings":";;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,aAAP,MAA0B,iBAA1B;AAEA,SAAQC,WAAR,QAA0B,sBAA1B;AACA,OAAOC,KAAP,MAAkB,gBAAlB;;AAEA,MAAMC,QAAN,SAAuBL,KAAK,CAACM,SAA7B,CAAuC;AAuCrCC,EAAAA,WAAW,CAACC,KAAD,EAAQC,OAAR,EAAiB;AAC1B,UAAMD,KAAN,EAAaC,OAAb;AACA,SAAKC,KAAL,GAAa;AACXC,MAAAA,OAAO,EAAE,EADE;AAEXC,MAAAA,mBAAmB,EAAE;AAFV,KAAb;AAKA,SAAKC,UAAL,GAAkB,KAAKA,UAAL,CAAgBC,IAAhB,CAAqB,IAArB,CAAlB;AACA,SAAKC,YAAL,GAAoB,KAAKA,YAAL,CAAkBD,IAAlB,CAAuB,IAAvB,CAApB;AACA,SAAKE,WAAL,GAAmB,KAAKA,WAAL,CAAiBF,IAAjB,CAAsB,IAAtB,CAAnB;AACA,SAAKG,WAAL,GAAmB,KAAKA,WAAL,CAAiBH,IAAjB,CAAsB,IAAtB,CAAnB;AACA,SAAKI,WAAL,GAAmB,KAAKA,WAAL,CAAiBJ,IAAjB,CAAsB,IAAtB,CAAnB;AACA,SAAKK,gBAAL,GAAwB,KAAKA,gBAAL,CAAsBL,IAAtB,CAA2B,IAA3B,CAAxB;AACA,SAAKM,iBAAL,GAAyB,KAAKA,iBAAL,CAAuBN,IAAvB,CAA4B,I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CP;AAmCjBnC,EAAAA,SAAS,EAAExD,SAAS,CAAC2F;AAnCJ,C;AAoMrB,eAAevF,QAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport ReactJWPlayer from 'react-jw-player';\nimport {get, includes, isFunction, keys} from 'lodash/fp';\nimport {SrcPropType} from '../../util/proptypes';\nimport style from './jwplayer.css';\n\nclass JWPlayer extends React.Component {\n static propTypes = {\n mimeType: PropTypes.string,\n scriptErrorMessage: PropTypes.string,\n disableAutostart: PropTypes.bool,\n // https://developer.jwplayer.com/jwplayer/docs/jw8-player-configuration-reference\n jwpOptions: PropTypes.shape({\n file: SrcPropType,\n customProps: PropTypes.shape({\n aspectratio: PropTypes.string,\n tracks: PropTypes.arrayOf(\n PropTypes.shape({\n file: SrcPropType,\n label: PropTypes.string,\n kind: PropTypes.string,\n default: PropTypes.boolean\n })\n ),\n autostart: PropTypes.oneOf(['true', 'viewable', 'false']),\n width: PropTypes.string,\n skin: PropTypes.shape({\n name: PropTypes.string\n })\n }),\n licenseKey: PropTypes.string.isRequired,\n playerScript: SrcPropType.isRequired,\n playerId: PropTypes.string.isRequired\n }),\n onPlay: PropTypes.func,\n onResume: PropTypes.func,\n onPause: PropTypes.func,\n onEnded: PropTypes.func,\n onError: PropTypes.func,\n onPlayAttemptFailed: PropTypes.func,\n onAutostartNotAllowed: PropTypes.func,\n onSetupError: PropTypes.func,\n onWarning: PropTypes.func\n };\n\n constructor(props, context) {\n super(props, context);\n this.state = {\n fileUrl: '',\n scriptFailedLoading: false\n };\n\n this.handlePlay = this.handlePlay.bind(this);\n this.handleResume = this.handleResume.bind(this);\n this.handlePause = this.handlePause.bind(this);\n this.handleEnded = this.handleEnded.bind(this);\n this.handleError = this.handleError.bind(this);\n this.handleSetupError = this.handleSetupError.bind(this);\n this.handleScriptError = this.handleScriptError.bind(this);\n this.handlePlayAttemptFailed = this.handlePlayAttemptFailed.bind(this);\n this.handleAutostartNotAllowed = this.handleAutostartNotAllowed.bind(this);\n this.handleWarning = this.handleWarning.bind(this);\n }\n\n componentDidMount() {\n const jwPlayerScript = document.getElementById('jw-player-script');\n jwPlayerScript.onerror = () => this.handleScriptError(jwPlayerScript);\n this.setFileUrl();\n }\n\n componentDidUpdate(prevProps) {\n const changes = keys(this.props).filter(key => {\n const {[key]: current} = this.props;\n const {[key]: prev} = prevProps;\n return current !== prev;\n });\n const shouldStart = includes('autoplay', changes);\n if (shouldStart) {\n if (isFunction(window.jwplayer)) {\n window.jwplayer(prevProps.jwpOptions.playerId).play();\n }\n }\n const {jwpOptions} = this.props;\n if (prevProps.jwpOptions.file !== jwpOptions.file) {\n this.setFileUrl();\n }\n }\n\n setFileUrl() {\n const {jwpOptions} = this.props;\n const {file} = jwpOptions;\n\n return this.setState({fileUrl: file});\n }\n\n handlePlay(e) {\n const {onPlay} = this.props;\n if (onPlay) onPlay(e);\n }\n\n handleResume(e) {\n const {onResume} = this.props;\n if (onResume) onResume(e);\n }\n\n handlePause(e) {\n const {onPause} = this.props;\n if (onPause) onPause(e);\n }\n\n handleEnded(e) {\n const {onEnded} = this.props;\n if (onEnded) onEnded(e);\n }\n\n handleScriptError(script) {\n this.setState({scriptFailedLoading: true});\n if (script) {\n script.parentNode.removeChild();\n }\n }\n\n handleSetupError(error) {\n const {onSetupError} = this.props;\n if (onSetupError) onSetupError(error);\n }\n\n handlePlayAttemptFailed(error) {\n const {onPlayAttemptFailed} = this.props;\n if (onPlayAttemptFailed) onPlayAttemptFailed(error);\n }\n\n handleAutostartNotAllowed(error) {\n const {onAutostartNotAllowed} = this.props;\n if (onAutostartNotAllowed) onAutostartNotAllowed(error);\n }\n\n handleWarning(error) {\n const {onWarning} = this.props;\n if (onWarning) onWarning(error);\n }\n\n handleError(error) {\n const {onError, mimeType, jwpOptions} = this.props;\n const {code} = error;\n\n onError && onError(error);\n\n if (mimeType === 'application/kontiki') {\n return;\n }\n\n // This error mostly appears on IE11 on W7\n // Since IE11 dont kinda support M3U8 sometimes,\n // We've decided to switch from M3U8 to mp4 whenever it appears\n if (code === 214000) {\n const {file: videoUrl} = jwpOptions;\n const regex = /^https:\\/\\/content.jwplatform\\.com\\/manifests\\/(\\w+).m3u8/;\n const matched = videoUrl.match(regex);\n\n if (matched) {\n const videoId = matched[1];\n return this.setState({\n fileUrl: `https://content.jwplatform.com/videos/${videoId}-1080.mp4`\n });\n }\n }\n }\n\n render() {\n const {jwpOptions, disableAutostart, scriptErrorMessage} = this.props;\n const {scriptFailedLoading, fileUrl} = this.state;\n const _jwpOptions = {\n ...jwpOptions,\n customProps: {\n ...get('customProps', jwpOptions),\n autostart: !disableAutostart && get('customProps.autostart', jwpOptions)\n }\n };\n\n return (\n <>\n {scriptFailedLoading ? <p className={style.errorMessage}>{scriptErrorMessage} </p> : null}\n <ReactJWPlayer\n {..._jwpOptions}\n className={style.wrapper}\n onAutoStart={this.handlePlay}\n onPlay={this.handlePlay}\n onResume={this.handleResume}\n onPause={this.handlePause}\n onOneHundredPercent={this.handleEnded}\n onError={this.handleError}\n onSetupError={this.handleSetupError}\n onPlayAttemptFailed={this.handlePlayAttemptFailed}\n onWarning={this.handleWarning}\n onAutostartNotAllowed={this.handleAutostartNotAllowed}\n file={fileUrl}\n />\n </>\n );\n }\n}\n\nexport default JWPlayer;\n"],"file":"jwplayer.js"}
|
|
1
|
+
{"version":3,"sources":["../../../src/molecule/video-player/jwplayer.js"],"names":["React","PropTypes","ReactJWPlayer","SrcPropType","style","JWPlayer","Component","constructor","props","context","state","fileUrl","scriptFailedLoading","handlePlay","bind","handleResume","handlePause","handleEnded","handleError","handleSetupError","handleScriptError","handlePlayAttemptFailed","handleAutostartNotAllowed","handleWarning","componentDidMount","jwPlayerScript","document","getElementById","onerror","setFileUrl","componentDidUpdate","prevProps","changes","filter","key","current","prev","shouldStart","window","jwplayer","jwpOptions","playerId","play","file","setState","e","onPlay","onResume","onPause","onEnded","script","parentNode","removeChild","error","onSetupError","onPlayAttemptFailed","onAutostartNotAllowed","onWarning","onError","mimeType","code","videoUrl","regex","matched","match","videoId","render","disableAutostart","scriptErrorMessage","_jwpOptions","customProps","autostart","errorMessage","wrapper","propTypes","string","bool","shape","aspectratio","tracks","arrayOf","label","kind","default","boolean","oneOf","width","skin","name","licenseKey","isRequired","playerScript","func"],"mappings":";;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,aAAP,MAA0B,iBAA1B;AAEA,SAAQC,WAAR,QAA0B,sBAA1B;AACA,OAAOC,KAAP,MAAkB,gBAAlB;;AAEA,MAAMC,QAAN,SAAuBL,KAAK,CAACM,SAA7B,CAAuC;AAuCrCC,EAAAA,WAAW,CAACC,KAAD,EAAQC,OAAR,EAAiB;AAC1B,UAAMD,KAAN,EAAaC,OAAb;AACA,SAAKC,KAAL,GAAa;AACXC,MAAAA,OAAO,EAAE,EADE;AAEXC,MAAAA,mBAAmB,EAAE;AAFV,KAAb;AAKA,SAAKC,UAAL,GAAkB,KAAKA,UAAL,CAAgBC,IAAhB,CAAqB,IAArB,CAAlB;AACA,SAAKC,YAAL,GAAoB,KAAKA,YAAL,CAAkBD,IAAlB,CAAuB,IAAvB,CAApB;AACA,SAAKE,WAAL,GAAmB,KAAKA,WAAL,CAAiBF,IAAjB,CAAsB,IAAtB,CAAnB;AACA,SAAKG,WAAL,GAAmB,KAAKA,WAAL,CAAiBH,IAAjB,CAAsB,IAAtB,CAAnB;AACA,SAAKI,WAAL,GAAmB,KAAKA,WAAL,CAAiBJ,IAAjB,CAAsB,IAAtB,CAAnB;AACA,SAAKK,gBAAL,GAAwB,KAAKA,gBAAL,CAAsBL,IAAtB,CAA2B,IAA3B,CAAxB;AACA,SAAKM,iBAAL,GAAyB,KAAKA,iBAAL,CAAuBN,IAAvB,CAA4B,IAA5B,CAAzB;AACA,SAAKO,uBAAL,GAA+B,KAAKA,uBAAL,CAA6BP,IAA7B,CAAkC,IAAlC,CAA/B;AACA,SAAKQ,yBAAL,GAAiC,KAAKA,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ReactJWPlayer from 'react-jw-player';\nimport {get, includes, isFunction, keys} from 'lodash/fp';\nimport {SrcPropType} from '../../util/proptypes';\nimport style from './jwplayer.css';\n\nclass JWPlayer extends React.Component {\n static propTypes = {\n mimeType: PropTypes.string,\n scriptErrorMessage: PropTypes.string,\n disableAutostart: PropTypes.bool,\n // https://developer.jwplayer.com/jwplayer/docs/jw8-player-configuration-reference\n jwpOptions: PropTypes.shape({\n file: SrcPropType,\n customProps: PropTypes.shape({\n aspectratio: PropTypes.string,\n tracks: PropTypes.arrayOf(\n PropTypes.shape({\n file: SrcPropType,\n label: PropTypes.string,\n kind: PropTypes.string,\n default: PropTypes.boolean\n })\n ),\n autostart: PropTypes.oneOf(['true', 'viewable', 'false']),\n width: PropTypes.string,\n skin: PropTypes.shape({\n name: PropTypes.string\n })\n }),\n licenseKey: PropTypes.string.isRequired,\n playerScript: SrcPropType.isRequired,\n playerId: PropTypes.string.isRequired\n }),\n onPlay: PropTypes.func,\n onResume: PropTypes.func,\n onPause: PropTypes.func,\n onEnded: PropTypes.func,\n onError: PropTypes.func,\n onPlayAttemptFailed: PropTypes.func,\n onAutostartNotAllowed: PropTypes.func,\n onSetupError: PropTypes.func,\n onWarning: PropTypes.func\n };\n\n constructor(props, context) {\n super(props, context);\n this.state = {\n fileUrl: '',\n scriptFailedLoading: false\n };\n\n this.handlePlay = this.handlePlay.bind(this);\n this.handleResume = this.handleResume.bind(this);\n this.handlePause = this.handlePause.bind(this);\n this.handleEnded = this.handleEnded.bind(this);\n this.handleError = this.handleError.bind(this);\n this.handleSetupError = this.handleSetupError.bind(this);\n this.handleScriptError = this.handleScriptError.bind(this);\n this.handlePlayAttemptFailed = this.handlePlayAttemptFailed.bind(this);\n this.handleAutostartNotAllowed = this.handleAutostartNotAllowed.bind(this);\n this.handleWarning = this.handleWarning.bind(this);\n }\n\n componentDidMount() {\n const jwPlayerScript = document.getElementById('jw-player-script');\n jwPlayerScript.onerror = () => this.handleScriptError(jwPlayerScript);\n this.setFileUrl();\n }\n\n componentDidUpdate(prevProps) {\n const changes = keys(this.props).filter(key => {\n const {[key]: current} = this.props;\n const {[key]: prev} = prevProps;\n return current !== prev;\n });\n const shouldStart = includes('autoplay', changes);\n if (shouldStart) {\n if (isFunction(window.jwplayer)) {\n window.jwplayer(prevProps.jwpOptions.playerId).play();\n }\n }\n const {jwpOptions} = this.props;\n if (prevProps.jwpOptions.file !== jwpOptions.file) {\n this.setFileUrl();\n }\n }\n\n setFileUrl() {\n const {jwpOptions} = this.props;\n const {file} = jwpOptions;\n\n return this.setState({fileUrl: file});\n }\n\n handlePlay(e) {\n const {onPlay} = this.props;\n if (onPlay) onPlay(e);\n }\n\n handleResume(e) {\n const {onResume} = this.props;\n if (onResume) onResume(e);\n }\n\n handlePause(e) {\n const {onPause} = this.props;\n if (onPause) onPause(e);\n }\n\n handleEnded(e) {\n const {onEnded} = this.props;\n if (onEnded) onEnded(e);\n }\n\n handleScriptError(script) {\n this.setState({scriptFailedLoading: true});\n if (script) {\n script.parentNode.removeChild();\n }\n }\n\n handleSetupError(error) {\n const {onSetupError} = this.props;\n if (onSetupError) onSetupError(error);\n }\n\n handlePlayAttemptFailed(error) {\n const {onPlayAttemptFailed} = this.props;\n if (onPlayAttemptFailed) onPlayAttemptFailed(error);\n }\n\n handleAutostartNotAllowed(error) {\n const {onAutostartNotAllowed} = this.props;\n if (onAutostartNotAllowed) onAutostartNotAllowed(error);\n }\n\n handleWarning(error) {\n const {onWarning} = this.props;\n if (onWarning) onWarning(error);\n }\n\n handleError(error) {\n const {onError, mimeType, jwpOptions} = this.props;\n const {code} = error;\n\n onError && onError(error);\n\n if (mimeType === 'application/kontiki') {\n return;\n }\n\n // This error mostly appears on IE11 on W7\n // Since IE11 dont kinda support M3U8 sometimes,\n // We've decided to switch from M3U8 to mp4 whenever it appears\n if (code === 214000) {\n const {file: videoUrl} = jwpOptions;\n const regex = /^https:\\/\\/content.jwplatform\\.com\\/manifests\\/(\\w+).m3u8/;\n const matched = videoUrl.match(regex);\n\n if (matched) {\n const videoId = matched[1];\n return this.setState({\n fileUrl: `https://content.jwplatform.com/videos/${videoId}-1080.mp4`\n });\n }\n }\n }\n\n render() {\n const {jwpOptions, disableAutostart, scriptErrorMessage} = this.props;\n const {scriptFailedLoading, fileUrl} = this.state;\n const _jwpOptions = {\n ...jwpOptions,\n customProps: {\n ...get('customProps', jwpOptions),\n autostart: !disableAutostart && get('customProps.autostart', jwpOptions)\n }\n };\n\n return (\n <>\n {scriptFailedLoading ? <p className={style.errorMessage}>{scriptErrorMessage} </p> : null}\n <ReactJWPlayer\n {..._jwpOptions}\n className={style.wrapper}\n onAutoStart={this.handlePlay}\n onPlay={this.handlePlay}\n onResume={this.handleResume}\n onPause={this.handlePause}\n onOneHundredPercent={this.handleEnded}\n onError={this.handleError}\n onSetupError={this.handleSetupError}\n onPlayAttemptFailed={this.handlePlayAttemptFailed}\n onWarning={this.handleWarning}\n onAutostartNotAllowed={this.handleAutostartNotAllowed}\n file={fileUrl}\n />\n </>\n );\n }\n}\n\nexport default JWPlayer;\n"],"file":"jwplayer.js"}
|
|
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
|
2
2
|
|
|
3
3
|
import Default from './vimeo';
|
|
4
4
|
export default {
|
|
5
|
-
props: _extends({}, Default.props, {
|
|
5
|
+
props: _extends(_extends({}, Default.props), {}, {
|
|
6
6
|
mimeType: 'application/youtube',
|
|
7
7
|
id: 'nLMZd05FQKc'
|
|
8
8
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/molecule/video-player/test/fixtures/youtube.js"],"names":["Default","props","mimeType","id"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,SAApB;AAEA,eAAe;AACbC,EAAAA,KAAK,
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/video-player/test/fixtures/youtube.js"],"names":["Default","props","mimeType","id"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,SAApB;AAEA,eAAe;AACbC,EAAAA,KAAK,wBACAD,OAAO,CAACC,KADR;AAEHC,IAAAA,QAAQ,EAAE,qBAFP;AAGHC,IAAAA,EAAE,EAAE;AAHD;AADQ,CAAf","sourcesContent":["import Default from './vimeo';\n\nexport default {\n props: {\n ...Default.props,\n mimeType: 'application/youtube',\n id: 'nLMZd05FQKc'\n }\n};\n"],"file":"youtube.js"}
|
|
@@ -120,7 +120,7 @@ class Vimeo extends React.Component {
|
|
|
120
120
|
const {
|
|
121
121
|
Player
|
|
122
122
|
} = V;
|
|
123
|
-
this.player = new Player(this.container, _extends({}, options, {
|
|
123
|
+
this.player = new Player(this.container, _extends(_extends({}, options), {}, {
|
|
124
124
|
width: '1',
|
|
125
125
|
height: '1'
|
|
126
126
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/molecule/video-player/vimeo.js"],"names":["React","PropTypes","Provider","Loader","eventNames","ready","play","pause","ended","timeupdate","progress","seeked","texttrackchange","cuechange","cuepoint","volumechange","error","loaded","Vimeo","Component","constructor","props","context","refContainer","bind","state","isLoading","componentDidMount","createPlayer","componentDidUpdate","prevProps","changes","filter","key","current","prev","updateProps","getInitialOptions","id","width","height","autopause","autoplay","showByline","color","loop","showPortrait","showTitle","byline","portrait","title","propNames","player","forEach","value","element","loadVideo","unload","options","V","Player","container","on","setState","dmName","reactName","e","handler","render","className","childContextTypes","propTypes","oneOfType","number","string","paused","bool","onReady","func","onError","onPlay","onPause","onEnd","onTimeUpdate","onProgress","onSeeked","onTextTrackChange","onCueChange","onCuePoint","onVolumeChange","onLoaded"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,OAAOC,QAAP,MAAqB,qBAArB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AAEA,MAAMC,UAAU,GAAG;AACjBC,EAAAA,KAAK,EAAE,SADU;AAEjBC,EAAAA,I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AACA;AACI7B,EAAAA,SAAS,EAAE9C,SAAS,CAAC2E,IA3DJ;AA6DjB;;AAEA;AACJ;AACA;AACIC,EAAAA,OAAO,EAAE5E,SAAS,CAAC6E,IAlEF;;AAmEjB;AACJ;AACA;AACIC,EAAAA,OAAO,EAAE9E,SAAS,CAAC6E,IAtEF;;AAuEjB;AACJ;AACA;AACIE,EAAAA,MAAM,EAAE/E,SAAS,CAAC6E,IA1ED;;AA2EjB;AACJ;AACA;AACIG,EAAAA,OAAO,EAAEhF,SAAS,CAAC6E,IA9EF;;AA+EjB;AACJ;AACA;AACA;AACII,EAAAA,KAAK,EAAEjF,SAAS,CAAC6E,IAnFA;;AAoFjB;AACJ;AACA;AACA;AACIK,EAAAA,YAAY,EAAElF,SAAS,CAAC6E,IAxFP;;AAyFjB;AACJ;AACA;AACA;AACIM,EAAAA,UAAU,EAAEnF,SAAS,CAAC6E,IA7FL;;AA8FjB;AACJ;AACA;AACA;AACIO,EAAAA,QAAQ,EAAEpF,SAAS,CAAC6E,IAlGH;;AAmGjB;AACJ;AACA;AACA;AACIQ,EAAAA,iBAAiB,EAAErF,SAAS,CAAC6E,IAvGZ;;AAwGjB;AACJ;AACA;AACA;AACA;AACIS,EAAAA,WAAW,EAAEtF,SAAS,CAAC6E,IA7GN;;AA8GjB;AACJ;AACA;AACIU,EAAAA,UAAU,EAAEvF,SAAS,CAAC6E,IAjHL;;AAkHjB;AACJ;AACA;AACA;AACA;AACIW,EAAAA,cAAc,EAAExF,SAAS,CAAC6E,IAvHT;;AAwHjB;AACJ;AACA;AACIY,EAAAA,QAAQ,EAAEzF,SAAS,CAAC6E;AA3HH,C;AA8PrB,eAAe5D,KAAf","sourcesContent":["/*\n from https://github.com/u-wave/react-vimeo\n adapted to use Vimeo.js from context and support width: 100%\n*/\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport {keys} from 'lodash/fp';\nimport Provider from '../../atom/provider';\nimport Loader from '../../atom/loader';\n\nconst eventNames = {\n ready: 'onReady',\n play: 'onPlay',\n pause: 'onPause',\n ended: 'onEnded',\n timeupdate: 'onTimeUpdate',\n progress: 'onProgress',\n seeked: 'onSeeked',\n texttrackchange: 'onTextTrackChange',\n cuechange: 'onCueChange',\n cuepoint: 'onCuePoint',\n volumechange: 'onVolumeChange',\n error: 'onError',\n loaded: 'onLoaded'\n};\n\nclass Vimeo extends React.Component {\n static propTypes = {\n /**\n * A Vimeo ID or URL.\n */\n id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n /**\n * CSS className for the player element.\n */\n className: PropTypes.string,\n /**\n * Width of the player element.\n */\n width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n /**\n * Height of the player element.\n */\n height: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n\n /**\n * Pause the video.\n */\n paused: PropTypes.bool,\n\n // Player parameters\n /**\n * Pause this video automatically when another one plays.\n */\n autopause: PropTypes.bool,\n\n /**\n * Automatically start playback of the video. Note that this won’t work on\n * some devices.\n */\n autoplay: PropTypes.bool,\n\n /**\n * Show the byline on the video.\n */\n showByline: PropTypes.bool,\n\n /**\n * Specify the color of the video controls. Colors may be overridden by the\n * embed settings of the video.\n */\n color: PropTypes.string,\n\n /**\n * Play the video again when it reaches the end.\n */\n loop: PropTypes.bool,\n\n /**\n * Show the portrait on the video.\n */\n showPortrait: PropTypes.bool,\n\n /**\n * Show the title on the video.\n */\n showTitle: PropTypes.bool,\n\n // Events\n\n /**\n * Sent when the Vimeo player API has loaded.\n */\n onReady: PropTypes.func,\n /**\n * Sent when the player triggers an error.\n */\n onError: PropTypes.func,\n /**\n * Triggered when the video plays.\n */\n onPlay: PropTypes.func,\n /**\n * Triggered when the video pauses.\n */\n onPause: PropTypes.func,\n /**\n * Triggered any time the video playback reaches the end.\n * Note: when `loop` is turned on, the ended event will not fire.\n */\n onEnd: PropTypes.func,\n /**\n * Triggered as the `currentTime` of the video updates. It generally fires\n * every 250ms, but it may vary depending on the browser.\n */\n onTimeUpdate: PropTypes.func,\n /**\n * Triggered as the video is loaded. Reports back the amount of the video\n * that has been buffered.\n */\n onProgress: PropTypes.func,\n /**\n * Triggered when the player seeks to a specific time. An `onTimeUpdate`\n * event will also be fired at the same time.\n */\n onSeeked: PropTypes.func,\n /**\n * Triggered when the active text track (captions/subtitles) changes. The\n * values will be `null` if text tracks are turned off.\n */\n onTextTrackChange: PropTypes.func,\n /**\n * Triggered when the active cue for the current text track changes. It also\n * fires when the active text track changes. There may be multiple cues\n * active.\n */\n onCueChange: PropTypes.func,\n /**\n * Triggered when the current time hits a registered cue point.\n */\n onCuePoint: PropTypes.func,\n /**\n * Triggered when the volume in the player changes. Some devices do not\n * support setting the volume of the video independently from the system\n * volume, so this event will never fire on those devices.\n */\n onVolumeChange: PropTypes.func,\n /**\n * Triggered when a new video is loaded in the player.\n */\n onLoaded: PropTypes.func\n };\n\n static contextTypes = {\n Vimeo: Provider.childContextTypes.Vimeo\n };\n\n static defaultProps = {\n autopause: true,\n autoplay: false,\n loop: false,\n showByline: true,\n showPortrait: true,\n showTitle: true\n };\n\n constructor(props, context) {\n super(props, context);\n this.refContainer = this.refContainer.bind(this);\n this.state = {\n isLoading: true\n };\n }\n\n componentDidMount() {\n this.createPlayer();\n }\n\n componentDidUpdate(prevProps) {\n const changes = keys(this.props).filter(key => {\n const {[key]: current} = this.props;\n const {[key]: prev} = prevProps;\n return current !== prev;\n });\n this.updateProps(changes);\n }\n\n getInitialOptions() {\n const {\n id,\n width,\n height,\n autopause,\n autoplay,\n showByline,\n color,\n loop,\n showPortrait,\n showTitle\n } = this.props;\n return {\n id,\n width,\n height,\n autopause,\n autoplay,\n byline: showByline,\n color,\n loop,\n portrait: showPortrait,\n title: showTitle\n };\n }\n\n updateProps(propNames) {\n const player = this.player;\n propNames.forEach(key => {\n const {[key]: value} = this.props;\n switch (key) {\n case 'width':\n case 'height':\n player.element[key] = value;\n break;\n case 'id':\n if (value) {\n player.loadVideo(value);\n } else {\n player.unload();\n }\n break;\n case 'autoplay':\n player.play();\n break;\n }\n });\n }\n\n createPlayer() {\n const options = this.getInitialOptions();\n const {Vimeo: V} = this.context;\n if (!V) return null;\n\n const {Player} = V;\n this.player = new Player(this.container, {\n ...options,\n width: '1',\n height: '1'\n });\n this.player.on('loaded', () => {\n this.updateProps(['width', 'height']);\n this.setState(state => ({\n isLoading: false\n }));\n });\n\n keys(eventNames).forEach(dmName => {\n const {[dmName]: reactName} = eventNames;\n this.player.on(dmName, e => {\n const {[reactName]: handler} = this.props;\n if (handler) {\n handler(e);\n }\n });\n });\n }\n\n refContainer(container) {\n this.container = container;\n }\n\n render() {\n const {className, height, width} = this.props;\n const {isLoading} = this.state;\n return (\n <div className={className} ref={this.refContainer} style={{height, width}}>\n {isLoading ? <Loader /> : null}\n </div>\n );\n }\n}\n\nexport default Vimeo;\n"],"file":"vimeo.js"}
|
|
1
|
+
{"version":3,"sources":["../../../src/molecule/video-player/vimeo.js"],"names":["React","PropTypes","Provider","Loader","eventNames","ready","play","pause","ended","timeupdate","progress","seeked","texttrackchange","cuechange","cuepoint","volumechange","error","loaded","Vimeo","Component","constructor","props","context","refContainer","bind","state","isLoading","componentDidMount","createPlayer","componentDidUpdate","prevProps","changes","filter","key","current","prev","updateProps","getInitialOptions","id","width","height","autopause","autoplay","showByline","color","loop","showPortrait","showTitle","byline","portrait","title","propNames","player","forEach","value","element","loadVideo","unload","options","V","Player","container","on","setState","dmName","reactName","e","handler","render","className","childContextTypes","propTypes","oneOfType","number","string","paused","bool","onReady","func","onError","onPlay","onPause","onEnd","onTimeUpdate","onProgress","onSeeked","onTextTrackChange","onCueChange","onCuePoint","onVolumeChange","onLoaded"],"mappings":";;;;;;AAAA;;;;AAIA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,OAAOC,QAAP,MAAqB,qBAArB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AAEA,MAAMC,UAAU,GAAG;AACjBC,EAAAA,KAAK,EAAE,SADU;AAEjBC,E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AAAA,OAAO,EAAE5E,SAAS,CAAC6E,IAlEF;;AAmEjB;;;AAGAC,EAAAA,OAAO,EAAE9E,SAAS,CAAC6E,IAtEF;;AAuEjB;;;AAGAE,EAAAA,MAAM,EAAE/E,SAAS,CAAC6E,IA1ED;;AA2EjB;;;AAGAG,EAAAA,OAAO,EAAEhF,SAAS,CAAC6E,IA9EF;;AA+EjB;;;;AAIAI,EAAAA,KAAK,EAAEjF,SAAS,CAAC6E,IAnFA;;AAoFjB;;;;AAIAK,EAAAA,YAAY,EAAElF,SAAS,CAAC6E,IAxFP;;AAyFjB;;;;AAIAM,EAAAA,UAAU,EAAEnF,SAAS,CAAC6E,IA7FL;;AA8FjB;;;;AAIAO,EAAAA,QAAQ,EAAEpF,SAAS,CAAC6E,IAlGH;;AAmGjB;;;;AAIAQ,EAAAA,iBAAiB,EAAErF,SAAS,CAAC6E,IAvGZ;;AAwGjB;;;;;AAKAS,EAAAA,WAAW,EAAEtF,SAAS,CAAC6E,IA7GN;;AA8GjB;;;AAGAU,EAAAA,UAAU,EAAEvF,SAAS,CAAC6E,IAjHL;;AAkHjB;;;;;AAKAW,EAAAA,cAAc,EAAExF,SAAS,CAAC6E,IAvHT;;AAwHjB;;;AAGAY,EAAAA,QAAQ,EAAEzF,SAAS,CAAC6E;AA3HH,C;AA8PrB,eAAe5D,KAAf","sourcesContent":["/*\n from https://github.com/u-wave/react-vimeo\n adapted to use Vimeo.js from context and support width: 100%\n*/\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport {keys} from 'lodash/fp';\nimport Provider from '../../atom/provider';\nimport Loader from '../../atom/loader';\n\nconst eventNames = {\n ready: 'onReady',\n play: 'onPlay',\n pause: 'onPause',\n ended: 'onEnded',\n timeupdate: 'onTimeUpdate',\n progress: 'onProgress',\n seeked: 'onSeeked',\n texttrackchange: 'onTextTrackChange',\n cuechange: 'onCueChange',\n cuepoint: 'onCuePoint',\n volumechange: 'onVolumeChange',\n error: 'onError',\n loaded: 'onLoaded'\n};\n\nclass Vimeo extends React.Component {\n static propTypes = {\n /**\n * A Vimeo ID or URL.\n */\n id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n /**\n * CSS className for the player element.\n */\n className: PropTypes.string,\n /**\n * Width of the player element.\n */\n width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n /**\n * Height of the player element.\n */\n height: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n\n /**\n * Pause the video.\n */\n paused: PropTypes.bool,\n\n // Player parameters\n /**\n * Pause this video automatically when another one plays.\n */\n autopause: PropTypes.bool,\n\n /**\n * Automatically start playback of the video. Note that this won’t work on\n * some devices.\n */\n autoplay: PropTypes.bool,\n\n /**\n * Show the byline on the video.\n */\n showByline: PropTypes.bool,\n\n /**\n * Specify the color of the video controls. Colors may be overridden by the\n * embed settings of the video.\n */\n color: PropTypes.string,\n\n /**\n * Play the video again when it reaches the end.\n */\n loop: PropTypes.bool,\n\n /**\n * Show the portrait on the video.\n */\n showPortrait: PropTypes.bool,\n\n /**\n * Show the title on the video.\n */\n showTitle: PropTypes.bool,\n\n // Events\n\n /**\n * Sent when the Vimeo player API has loaded.\n */\n onReady: PropTypes.func,\n /**\n * Sent when the player triggers an error.\n */\n onError: PropTypes.func,\n /**\n * Triggered when the video plays.\n */\n onPlay: PropTypes.func,\n /**\n * Triggered when the video pauses.\n */\n onPause: PropTypes.func,\n /**\n * Triggered any time the video playback reaches the end.\n * Note: when `loop` is turned on, the ended event will not fire.\n */\n onEnd: PropTypes.func,\n /**\n * Triggered as the `currentTime` of the video updates. It generally fires\n * every 250ms, but it may vary depending on the browser.\n */\n onTimeUpdate: PropTypes.func,\n /**\n * Triggered as the video is loaded. Reports back the amount of the video\n * that has been buffered.\n */\n onProgress: PropTypes.func,\n /**\n * Triggered when the player seeks to a specific time. An `onTimeUpdate`\n * event will also be fired at the same time.\n */\n onSeeked: PropTypes.func,\n /**\n * Triggered when the active text track (captions/subtitles) changes. The\n * values will be `null` if text tracks are turned off.\n */\n onTextTrackChange: PropTypes.func,\n /**\n * Triggered when the active cue for the current text track changes. It also\n * fires when the active text track changes. There may be multiple cues\n * active.\n */\n onCueChange: PropTypes.func,\n /**\n * Triggered when the current time hits a registered cue point.\n */\n onCuePoint: PropTypes.func,\n /**\n * Triggered when the volume in the player changes. Some devices do not\n * support setting the volume of the video independently from the system\n * volume, so this event will never fire on those devices.\n */\n onVolumeChange: PropTypes.func,\n /**\n * Triggered when a new video is loaded in the player.\n */\n onLoaded: PropTypes.func\n };\n\n static contextTypes = {\n Vimeo: Provider.childContextTypes.Vimeo\n };\n\n static defaultProps = {\n autopause: true,\n autoplay: false,\n loop: false,\n showByline: true,\n showPortrait: true,\n showTitle: true\n };\n\n constructor(props, context) {\n super(props, context);\n this.refContainer = this.refContainer.bind(this);\n this.state = {\n isLoading: true\n };\n }\n\n componentDidMount() {\n this.createPlayer();\n }\n\n componentDidUpdate(prevProps) {\n const changes = keys(this.props).filter(key => {\n const {[key]: current} = this.props;\n const {[key]: prev} = prevProps;\n return current !== prev;\n });\n this.updateProps(changes);\n }\n\n getInitialOptions() {\n const {\n id,\n width,\n height,\n autopause,\n autoplay,\n showByline,\n color,\n loop,\n showPortrait,\n showTitle\n } = this.props;\n return {\n id,\n width,\n height,\n autopause,\n autoplay,\n byline: showByline,\n color,\n loop,\n portrait: showPortrait,\n title: showTitle\n };\n }\n\n updateProps(propNames) {\n const player = this.player;\n propNames.forEach(key => {\n const {[key]: value} = this.props;\n switch (key) {\n case 'width':\n case 'height':\n player.element[key] = value;\n break;\n case 'id':\n if (value) {\n player.loadVideo(value);\n } else {\n player.unload();\n }\n break;\n case 'autoplay':\n player.play();\n break;\n }\n });\n }\n\n createPlayer() {\n const options = this.getInitialOptions();\n const {Vimeo: V} = this.context;\n if (!V) return null;\n\n const {Player} = V;\n this.player = new Player(this.container, {\n ...options,\n width: '1',\n height: '1'\n });\n this.player.on('loaded', () => {\n this.updateProps(['width', 'height']);\n this.setState(state => ({\n isLoading: false\n }));\n });\n\n keys(eventNames).forEach(dmName => {\n const {[dmName]: reactName} = eventNames;\n this.player.on(dmName, e => {\n const {[reactName]: handler} = this.props;\n if (handler) {\n handler(e);\n }\n });\n });\n }\n\n refContainer(container) {\n this.container = container;\n }\n\n render() {\n const {className, height, width} = this.props;\n const {isLoading} = this.state;\n return (\n <div className={className} ref={this.refContainer} style={{height, width}}>\n {isLoading ? <Loader /> : null}\n </div>\n );\n }\n}\n\nexport default Vimeo;\n"],"file":"vimeo.js"}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import React, { useMemo } from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import { NovaSolidComputersSdCard } from '@coorpacademy/nova-icons';
|
|
4
|
+
import Link from '../../atom/link';
|
|
5
|
+
import ContentBagde from '../../atom/content-badge';
|
|
6
|
+
import style from './style.css';
|
|
7
|
+
|
|
8
|
+
const buildItemsOfSection = items => {
|
|
9
|
+
return items.map((item, index) => {
|
|
10
|
+
const {
|
|
11
|
+
type
|
|
12
|
+
} = item;
|
|
13
|
+
|
|
14
|
+
switch (type) {
|
|
15
|
+
case 'mainElement':
|
|
16
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
17
|
+
key: `${item.title}-${index}`
|
|
18
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
19
|
+
className: style.title
|
|
20
|
+
}, item.title), /*#__PURE__*/React.createElement("span", {
|
|
21
|
+
className: style.value
|
|
22
|
+
}, item.value));
|
|
23
|
+
|
|
24
|
+
case 'content':
|
|
25
|
+
{
|
|
26
|
+
const {
|
|
27
|
+
category,
|
|
28
|
+
label,
|
|
29
|
+
title,
|
|
30
|
+
author
|
|
31
|
+
} = item;
|
|
32
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
33
|
+
className: style.contentWrapper,
|
|
34
|
+
key: `${title}-${index}`
|
|
35
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
36
|
+
className: style.contentCounter
|
|
37
|
+
}, index + 1), /*#__PURE__*/React.createElement("div", {
|
|
38
|
+
className: style.contentItem
|
|
39
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
40
|
+
className: style.content
|
|
41
|
+
}, /*#__PURE__*/React.createElement(ContentBagde, {
|
|
42
|
+
category: category,
|
|
43
|
+
label: label
|
|
44
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
45
|
+
className: style.contentTitle,
|
|
46
|
+
title: title // eslint-disable-next-line react/no-danger
|
|
47
|
+
,
|
|
48
|
+
dangerouslySetInnerHTML: {
|
|
49
|
+
__html: title
|
|
50
|
+
}
|
|
51
|
+
})), author ? /*#__PURE__*/React.createElement("span", {
|
|
52
|
+
className: style.author
|
|
53
|
+
}, author) : null));
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
case 'text':
|
|
57
|
+
default:
|
|
58
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
59
|
+
key: `${item.text}-${index}`
|
|
60
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
61
|
+
className: style.valueSimpleText
|
|
62
|
+
}, item.text));
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
const buildSectionHeader = section => {
|
|
68
|
+
const {
|
|
69
|
+
title,
|
|
70
|
+
counterText
|
|
71
|
+
} = section;
|
|
72
|
+
|
|
73
|
+
if (!title) {
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
78
|
+
className: style.sectionHeader
|
|
79
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
80
|
+
className: style.title
|
|
81
|
+
}, title), counterText ? /*#__PURE__*/React.createElement("span", {
|
|
82
|
+
className: style.counterText
|
|
83
|
+
}, counterText) : null);
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
const buildSections = sections => {
|
|
87
|
+
return sections.map((section, index) => {
|
|
88
|
+
const sectionHeader = buildSectionHeader(section);
|
|
89
|
+
const itemsView = buildItemsOfSection(section.items);
|
|
90
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
91
|
+
key: `summary-section-${index}`,
|
|
92
|
+
"data-step": index,
|
|
93
|
+
className: style.sectionWrapper
|
|
94
|
+
}, sectionHeader, /*#__PURE__*/React.createElement("ul", null, itemsView));
|
|
95
|
+
});
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
const buildAction = action => {
|
|
99
|
+
if (!action) return null;
|
|
100
|
+
const {
|
|
101
|
+
onClick,
|
|
102
|
+
text,
|
|
103
|
+
icon
|
|
104
|
+
} = action;
|
|
105
|
+
const handleClick = useMemo(() => () => onClick(), [onClick]);
|
|
106
|
+
return /*#__PURE__*/React.createElement(Link, {
|
|
107
|
+
className: style.actionLink,
|
|
108
|
+
onClick: handleClick
|
|
109
|
+
}, icon === 'draft' ? /*#__PURE__*/React.createElement(NovaSolidComputersSdCard, {
|
|
110
|
+
className: style.icon
|
|
111
|
+
}) : null, /*#__PURE__*/React.createElement("span", null, text));
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
const WizardSummary = props => {
|
|
115
|
+
const {
|
|
116
|
+
title,
|
|
117
|
+
sections,
|
|
118
|
+
action
|
|
119
|
+
} = props;
|
|
120
|
+
const sectionView = buildSections(sections);
|
|
121
|
+
const actionView = buildAction(action);
|
|
122
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
123
|
+
className: style.container
|
|
124
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
125
|
+
className: style.summaryTitle
|
|
126
|
+
}, title), /*#__PURE__*/React.createElement("div", {
|
|
127
|
+
className: style.summary
|
|
128
|
+
}, sectionView), /*#__PURE__*/React.createElement("div", {
|
|
129
|
+
className: style.actionZone
|
|
130
|
+
}, actionView));
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
WizardSummary.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
134
|
+
title: PropTypes.string,
|
|
135
|
+
sections: PropTypes.arrayOf(PropTypes.shape({
|
|
136
|
+
title: PropTypes.string,
|
|
137
|
+
items: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.shape({
|
|
138
|
+
type: PropTypes.string,
|
|
139
|
+
title: PropTypes.string,
|
|
140
|
+
value: PropTypes.string
|
|
141
|
+
}), PropTypes.shape({
|
|
142
|
+
type: PropTypes.string,
|
|
143
|
+
text: PropTypes.string
|
|
144
|
+
}), PropTypes.shape({
|
|
145
|
+
type: PropTypes.string,
|
|
146
|
+
category: PropTypes.oneOf(['base', 'advanced', 'coach', 'chapter', 'scorm', 'video', 'article', 'podcast']),
|
|
147
|
+
title: PropTypes.string,
|
|
148
|
+
label: PropTypes.string,
|
|
149
|
+
author: PropTypes.string
|
|
150
|
+
})])),
|
|
151
|
+
counterText: PropTypes.string
|
|
152
|
+
})),
|
|
153
|
+
action: PropTypes.shape({
|
|
154
|
+
icon: PropTypes.string,
|
|
155
|
+
text: PropTypes.string,
|
|
156
|
+
onClick: PropTypes.func
|
|
157
|
+
})
|
|
158
|
+
} : {};
|
|
159
|
+
export default WizardSummary;
|
|
160
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/molecule/wizard-summary/index.js"],"names":["React","useMemo","PropTypes","NovaSolidComputersSdCard","Link","ContentBagde","style","buildItemsOfSection","items","map","item","index","type","title","value","category","label","author","contentWrapper","contentCounter","contentItem","content","contentTitle","__html","text","valueSimpleText","buildSectionHeader","section","counterText","sectionHeader","buildSections","sections","itemsView","sectionWrapper","buildAction","action","onClick","icon","handleClick","actionLink","WizardSummary","props","sectionView","actionView","container","summaryTitle","summary","actionZone","propTypes","string","arrayOf","shape","oneOfType","oneOf","func"],"mappings":"AAAA,OAAOA,KAAP,IAAeC,OAAf,QAA6B,OAA7B;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,SAAQC,wBAAR,QAAuC,0BAAvC;AACA,OAAOC,IAAP,MAAiB,iBAAjB;AACA,OAAOC,YAAP,MAAyB,0BAAzB;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N,SAAS,CAACgD,OAAV,CACLhD,SAAS,CAACkD,SAAV,CAAoB,CAClBlD,SAAS,CAACiD,KAAV,CAAgB;AACdvC,MAAAA,IAAI,EAAEV,SAAS,CAAC+C,MADF;AAEdpC,MAAAA,KAAK,EAAEX,SAAS,CAAC+C,MAFH;AAGdnC,MAAAA,KAAK,EAAEZ,SAAS,CAAC+C;AAHH,KAAhB,CADkB,EAMlB/C,SAAS,CAACiD,KAAV,CAAgB;AACdvC,MAAAA,IAAI,EAAEV,SAAS,CAAC+C,MADF;AAEdzB,MAAAA,IAAI,EAAEtB,SAAS,CAAC+C;AAFF,KAAhB,CANkB,EAUlB/C,SAAS,CAACiD,KAAV,CAAgB;AACdvC,MAAAA,IAAI,EAAEV,SAAS,CAAC+C,MADF;AAEdlC,MAAAA,QAAQ,EAAEb,SAAS,CAACmD,KAAV,CAAgB,CACxB,MADwB,EAExB,UAFwB,EAGxB,OAHwB,EAIxB,SAJwB,EAKxB,OALwB,EAMxB,OANwB,EAOxB,SAPwB,EAQxB,SARwB,CAAhB,CAFI;AAYdxC,MAAAA,KAAK,EAAEX,SAAS,CAAC+C,MAZH;AAadjC,MAAAA,KAAK,EAAEd,SAAS,CAAC+C,MAbH;AAcdhC,MAAAA,MAAM,EAAEf,SAAS,CAAC+C;AAdJ,KAAhB,CAVkB,CAApB,CADK,CAFO;AA+BdrB,IAAAA,WAAW,EAAE1B,SAAS,CAAC+C;AA/BT,GAAhB,CADQ,CAFc;AAqCxBd,EAAAA,MAAM,EAAEjC,SAAS,CAACiD,KAAV,CAAgB;AACtBd,IAAAA,IAAI,EAAEnC,SAAS,CAAC+C,MADM;AAEtBzB,IAAAA,IAAI,EAAEtB,SAAS,CAAC+C,MAFM;AAGtBb,IAAAA,OAAO,EAAElC,SAAS,CAACoD;AAHG,GAAhB;AArCgB,CAA1B;AA4CA,eAAed,aAAf","sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport {NovaSolidComputersSdCard} from '@coorpacademy/nova-icons';\nimport Link from '../../atom/link';\nimport ContentBagde from '../../atom/content-badge';\nimport style from './style.css';\n\nconst buildItemsOfSection = items => {\n return items.map((item, index) => {\n const {type} = item;\n switch (type) {\n case 'mainElement':\n return (\n <li key={`${item.title}-${index}`}>\n <span className={style.title}>{item.title}</span>\n <span className={style.value}>{item.value}</span>\n </li>\n );\n case 'content': {\n const {category, label, title, author} = item;\n return (\n <li className={style.contentWrapper} key={`${title}-${index}`}>\n <span className={style.contentCounter}>{index + 1}</span>\n <div className={style.contentItem}>\n <div className={style.content}>\n <ContentBagde category={category} label={label} />\n <span\n className={style.contentTitle}\n title={title}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: title}}\n />\n </div>\n {author ? <span className={style.author}>{author}</span> : null}\n </div>\n </li>\n );\n }\n case 'text':\n default:\n return (\n <li key={`${item.text}-${index}`}>\n <span className={style.valueSimpleText}>{item.text}</span>\n </li>\n );\n }\n });\n};\n\nconst buildSectionHeader = section => {\n const {title, counterText} = section;\n if (!title) {\n return null;\n }\n return (\n <div className={style.sectionHeader}>\n <span className={style.title}>{title}</span>\n {counterText ? <span className={style.counterText}>{counterText}</span> : null}\n </div>\n );\n};\n\nconst buildSections = sections => {\n return sections.map((section, index) => {\n const sectionHeader = buildSectionHeader(section);\n const itemsView = buildItemsOfSection(section.items);\n return (\n <div key={`summary-section-${index}`} data-step={index} className={style.sectionWrapper}>\n {sectionHeader}\n <ul>{itemsView}</ul>\n </div>\n );\n });\n};\n\nconst buildAction = action => {\n if (!action) return null;\n\n const {onClick, text, icon} = action;\n const handleClick = useMemo(() => () => onClick(), [onClick]);\n return (\n <Link className={style.actionLink} onClick={handleClick}>\n {icon === 'draft' ? <NovaSolidComputersSdCard className={style.icon} /> : null}\n <span>{text}</span>\n </Link>\n );\n};\n\nconst WizardSummary = props => {\n const {title, sections, action} = props;\n\n const sectionView = buildSections(sections);\n const actionView = buildAction(action);\n\n return (\n <div className={style.container}>\n <span className={style.summaryTitle}>{title}</span>\n <div className={style.summary}>{sectionView}</div>\n <div className={style.actionZone}>{actionView}</div>\n </div>\n );\n};\n\nWizardSummary.propTypes = {\n title: PropTypes.string,\n sections: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string,\n items: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape({\n type: PropTypes.string,\n title: PropTypes.string,\n value: PropTypes.string\n }),\n PropTypes.shape({\n type: PropTypes.string,\n text: PropTypes.string\n }),\n PropTypes.shape({\n type: PropTypes.string,\n category: PropTypes.oneOf([\n 'base',\n 'advanced',\n 'coach',\n 'chapter',\n 'scorm',\n 'video',\n 'article',\n 'podcast'\n ]),\n title: PropTypes.string,\n label: PropTypes.string,\n author: PropTypes.string\n })\n ])\n ),\n counterText: PropTypes.string\n })\n ),\n action: PropTypes.shape({\n icon: PropTypes.string,\n text: PropTypes.string,\n onClick: PropTypes.func\n })\n};\n\nexport default WizardSummary;\n"],"file":"index.js"}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
@value colors: "../../variables/colors.css";
|
|
2
|
+
@value cm_grey_50 from colors;
|
|
3
|
+
@value cm_grey_300 from colors;
|
|
4
|
+
@value cm_grey_400 from colors;
|
|
5
|
+
@value cm_grey_900 from colors;
|
|
6
|
+
@value cm_green_200 from colors;
|
|
7
|
+
@value cm_purple_200 from colors;
|
|
8
|
+
@value cm_orange_200 from colors;
|
|
9
|
+
@value white from colors;
|
|
10
|
+
@value lightBlack from colors;
|
|
11
|
+
@value cm_yellow_scorm from colors;
|
|
12
|
+
@value cm_bleu_article from colors;
|
|
13
|
+
@value cm_red_video from colors;
|
|
14
|
+
@value cm_violet_podcast from colors;
|
|
15
|
+
|
|
16
|
+
.container {
|
|
17
|
+
font-family: Gilroy;
|
|
18
|
+
width: 245px;
|
|
19
|
+
border-radius: 7px;
|
|
20
|
+
background-color: cm_grey_50;
|
|
21
|
+
padding: 40px 37px 32px 37px;
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
position: absolute;
|
|
24
|
+
top: 0px;
|
|
25
|
+
bottom: 0px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.summary {
|
|
29
|
+
height: calc(100% - 90px);
|
|
30
|
+
overflow: hidden auto;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.actionZone {
|
|
34
|
+
margin: 24px 0px 0px 0px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.actionLink {
|
|
38
|
+
text-align: center;
|
|
39
|
+
font-size: 14px;
|
|
40
|
+
font-style: normal;
|
|
41
|
+
font-weight: bold;
|
|
42
|
+
display: flex;
|
|
43
|
+
justify-content: center;
|
|
44
|
+
align-items: center;
|
|
45
|
+
cursor: pointer;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.icon {
|
|
49
|
+
width: 14px;
|
|
50
|
+
height: 14px;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.summaryTitle {
|
|
54
|
+
font-family: 'Gilroy';
|
|
55
|
+
font-style: normal;
|
|
56
|
+
font-weight: bold;
|
|
57
|
+
font-size: 20px;
|
|
58
|
+
margin: 0px 0px 24px 0px;
|
|
59
|
+
color: cm_grey_900;
|
|
60
|
+
display: block;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.sectionWrapper {
|
|
64
|
+
margin: 32px 0px 0px 0px;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.sectionWrapper:first-child {
|
|
68
|
+
margin: 0px;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.sectionHeader {
|
|
72
|
+
display: flex;
|
|
73
|
+
justify-content: space-between;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.counterText {
|
|
77
|
+
font-style: normal;
|
|
78
|
+
font-weight: normal;
|
|
79
|
+
font-size: 14px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.title {
|
|
83
|
+
font-style: normal;
|
|
84
|
+
font-weight: bold;
|
|
85
|
+
font-size: 12px;
|
|
86
|
+
color: cm_grey_400;
|
|
87
|
+
display: block;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.value {
|
|
91
|
+
font-size: 14px;
|
|
92
|
+
font-weight: bold;
|
|
93
|
+
font-stretch: normal;
|
|
94
|
+
font-style: normal;
|
|
95
|
+
display: block;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.valueSimpleText {
|
|
99
|
+
composes: value;
|
|
100
|
+
margin: 8px 0px 0px 0px;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.contentWrapper {
|
|
104
|
+
margin: 8px 0px 0px 0px;
|
|
105
|
+
display: flex;
|
|
106
|
+
align-items: center;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.contentWrapper p {
|
|
110
|
+
margin: 0px;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.contentItem {
|
|
114
|
+
display: block;
|
|
115
|
+
max-width: calc(100% -25px);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.content {
|
|
119
|
+
display: flex;
|
|
120
|
+
align-items: center;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.contentCounter {
|
|
124
|
+
margin-right: 8px;
|
|
125
|
+
color: cm_grey_400;
|
|
126
|
+
font-size: 13px;
|
|
127
|
+
min-width: 20px;
|
|
128
|
+
text-align: center;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
ul {
|
|
132
|
+
list-style: none;
|
|
133
|
+
padding: 0px;
|
|
134
|
+
margin: 0px;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.contentTitle {
|
|
138
|
+
margin: 0px 0px 0px 4px;
|
|
139
|
+
font-size: 13px;
|
|
140
|
+
text-overflow: ellipsis;
|
|
141
|
+
white-space: nowrap;
|
|
142
|
+
overflow: hidden;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.author {
|
|
146
|
+
font-size: 11px;
|
|
147
|
+
font-weight: 500;
|
|
148
|
+
font-style: normal;
|
|
149
|
+
color: cm_grey_300;
|
|
150
|
+
}
|