@coorpacademy/components 11.40.18 → 11.40.19
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/template/app-player/player/index.d.ts +8 -2
- package/es/template/app-player/player/index.d.ts.map +1 -1
- package/es/template/app-player/player/index.js +6 -1
- package/es/template/app-player/player/index.js.map +1 -1
- package/es/template/app-player/player/slides/header/index.d.ts +4 -0
- package/es/template/app-player/player/slides/header/index.d.ts.map +1 -1
- package/es/template/app-player/player/slides/header/index.js +23 -3
- package/es/template/app-player/player/slides/header/index.js.map +1 -1
- package/es/template/app-player/player/slides/header/style.css +18 -1
- package/es/template/app-player/player/slides/index.d.ts +4 -0
- package/es/template/app-player/player/slides/index.d.ts.map +1 -1
- package/es/template/app-player/player/slides/index.js +1 -0
- package/es/template/app-player/player/slides/index.js.map +1 -1
- package/es/template/app-player/player/tourguide/index.d.ts +158 -0
- package/es/template/app-player/player/tourguide/index.d.ts.map +1 -0
- package/es/template/app-player/player/tourguide/index.js +289 -0
- package/es/template/app-player/player/tourguide/index.js.map +1 -0
- package/es/template/app-player/player/tourguide/style.css +385 -0
- package/es/template/app-player/popin-end/index.d.ts +4 -0
- package/es/template/app-player/popin-end/summary.js +2 -2
- package/es/template/app-player/popin-end/summary.js.map +1 -1
- package/es/template/common/search-page/index.js +1 -1
- package/es/template/common/search-page/index.js.map +1 -1
- package/es/template/my-learning/index.d.ts.map +1 -1
- package/es/template/my-learning/index.js +1 -0
- package/es/template/my-learning/index.js.map +1 -1
- package/es/types/tourguidejs.d.js +2 -0
- package/es/types/tourguidejs.d.js.map +1 -0
- package/lib/template/app-player/player/index.d.ts +8 -2
- package/lib/template/app-player/player/index.d.ts.map +1 -1
- package/lib/template/app-player/player/index.js +8 -1
- package/lib/template/app-player/player/index.js.map +1 -1
- package/lib/template/app-player/player/slides/header/index.d.ts +4 -0
- package/lib/template/app-player/player/slides/header/index.d.ts.map +1 -1
- package/lib/template/app-player/player/slides/header/index.js +23 -3
- package/lib/template/app-player/player/slides/header/index.js.map +1 -1
- package/lib/template/app-player/player/slides/header/style.css +18 -1
- package/lib/template/app-player/player/slides/index.d.ts +4 -0
- package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
- package/lib/template/app-player/player/slides/index.js +1 -0
- package/lib/template/app-player/player/slides/index.js.map +1 -1
- package/lib/template/app-player/player/tourguide/index.d.ts +158 -0
- package/lib/template/app-player/player/tourguide/index.d.ts.map +1 -0
- package/lib/template/app-player/player/tourguide/index.js +294 -0
- package/lib/template/app-player/player/tourguide/index.js.map +1 -0
- package/lib/template/app-player/player/tourguide/style.css +385 -0
- package/lib/template/app-player/popin-end/index.d.ts +4 -0
- package/lib/template/app-player/popin-end/summary.js +4 -2
- package/lib/template/app-player/popin-end/summary.js.map +1 -1
- package/lib/template/common/search-page/index.js +1 -1
- package/lib/template/common/search-page/index.js.map +1 -1
- package/lib/template/my-learning/index.d.ts.map +1 -1
- package/lib/template/my-learning/index.js +1 -0
- package/lib/template/my-learning/index.js.map +1 -1
- package/lib/types/tourguidejs.d.js +2 -0
- package/lib/types/tourguidejs.d.js.map +1 -0
- package/package.json +3 -2
|
@@ -2,7 +2,7 @@ export default SlidePlayer;
|
|
|
2
2
|
declare function SlidePlayer(props: any): JSX.Element;
|
|
3
3
|
declare namespace SlidePlayer {
|
|
4
4
|
namespace propTypes {
|
|
5
|
-
const player: PropTypes.Requireable<PropTypes.InferProps<{
|
|
5
|
+
export const player: PropTypes.Requireable<PropTypes.InferProps<{
|
|
6
6
|
cta: PropTypes.Requireable<PropTypes.InferProps<{
|
|
7
7
|
'aria-label': PropTypes.Requireable<string>;
|
|
8
8
|
submitValue: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
@@ -59,6 +59,10 @@ declare namespace SlidePlayer {
|
|
|
59
59
|
label: PropTypes.Validator<string>;
|
|
60
60
|
}> | null | undefined)[]>;
|
|
61
61
|
}>>;
|
|
62
|
+
help: PropTypes.Requireable<PropTypes.InferProps<{
|
|
63
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
64
|
+
title: PropTypes.Requireable<string>;
|
|
65
|
+
}>>;
|
|
62
66
|
}>>;
|
|
63
67
|
showNewMedia: PropTypes.Requireable<boolean>;
|
|
64
68
|
showReviewLesson: PropTypes.Requireable<boolean>;
|
|
@@ -923,7 +927,8 @@ declare namespace SlidePlayer {
|
|
|
923
927
|
}>>;
|
|
924
928
|
}>>;
|
|
925
929
|
}>>;
|
|
926
|
-
|
|
930
|
+
export { TourGuideConfigPropType as tourguide };
|
|
931
|
+
export const popin: PropTypes.Requireable<PropTypes.InferProps<{
|
|
927
932
|
content: PropTypes.Requireable<string>;
|
|
928
933
|
mode: PropTypes.Requireable<string>;
|
|
929
934
|
header: PropTypes.Requireable<PropTypes.InferProps<{
|
|
@@ -1786,4 +1791,5 @@ declare namespace SlidePlayer {
|
|
|
1786
1791
|
}
|
|
1787
1792
|
import PropTypes from "prop-types";
|
|
1788
1793
|
import React from "react";
|
|
1794
|
+
import { TourGuideConfigPropType } from "./tourguide";
|
|
1789
1795
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/app-player/player/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/app-player/player/index.js"],"names":[],"mappings":";AAQA,sDAgBC"}
|
|
@@ -1,15 +1,19 @@
|
|
|
1
|
+
import _size from "lodash/fp/size";
|
|
1
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
3
|
import React from 'react';
|
|
3
4
|
import PropTypes from 'prop-types';
|
|
4
5
|
import CMPopin from '../../../molecule/cm-popin';
|
|
5
6
|
import SlidesPlayer from './slides';
|
|
7
|
+
import TourGuideManager, { TourGuideConfigPropType } from './tourguide';
|
|
6
8
|
import style from './style.css';
|
|
7
9
|
const SlidePlayer = props => {
|
|
8
10
|
const {
|
|
9
11
|
player,
|
|
12
|
+
tourguide,
|
|
10
13
|
popin
|
|
11
14
|
} = props;
|
|
12
15
|
const backgroundImage = player.backgroundUrl ? `url(${player.backgroundUrl})` : null;
|
|
16
|
+
const hasTourguide = tourguide && _size(tourguide.steps) > 0;
|
|
13
17
|
return /*#__PURE__*/React.createElement("div", {
|
|
14
18
|
"data-name": "slidePlayer",
|
|
15
19
|
className: style.wrapper
|
|
@@ -22,10 +26,11 @@ const SlidePlayer = props => {
|
|
|
22
26
|
}
|
|
23
27
|
}), /*#__PURE__*/React.createElement(SlidesPlayer, _extends({}, player, {
|
|
24
28
|
popinError: popin
|
|
25
|
-
})), popin ? /*#__PURE__*/React.createElement(CMPopin, popin) : null));
|
|
29
|
+
})), popin ? /*#__PURE__*/React.createElement(CMPopin, popin) : null), hasTourguide ? /*#__PURE__*/React.createElement(TourGuideManager, tourguide) : null);
|
|
26
30
|
};
|
|
27
31
|
SlidePlayer.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
28
32
|
player: PropTypes.shape(SlidesPlayer.propTypes),
|
|
33
|
+
tourguide: TourGuideConfigPropType,
|
|
29
34
|
popin: PropTypes.shape(CMPopin.propTypes)
|
|
30
35
|
} : {};
|
|
31
36
|
export default SlidePlayer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","PropTypes","CMPopin","SlidesPlayer","style","SlidePlayer","props","player","popin","backgroundImage","backgroundUrl","createElement","className","wrapper","playerWrapper","playerBackground","_extends","popinError","propTypes","process","env","NODE_ENV","shape"],"sources":["../../../../src/template/app-player/player/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport CMPopin from '../../../molecule/cm-popin';\nimport SlidesPlayer from './slides';\nimport style from './style.css';\n\nconst SlidePlayer = props => {\n const {player, popin} = props;\n const backgroundImage = player.backgroundUrl ? `url(${player.backgroundUrl})` : null;\n return (\n <div data-name=\"slidePlayer\" className={style.wrapper}>\n <div className={style.playerWrapper}>\n <div className={style.playerBackground} style={{backgroundImage}} />\n <SlidesPlayer {...player} popinError={popin} />\n {popin ? <CMPopin {...popin} /> : null}\n </div>\n </div>\n );\n};\n\nSlidePlayer.propTypes = {\n player: PropTypes.shape(SlidesPlayer.propTypes),\n popin: PropTypes.shape(CMPopin.propTypes)\n};\n\nexport default SlidePlayer;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","PropTypes","CMPopin","SlidesPlayer","TourGuideManager","TourGuideConfigPropType","style","SlidePlayer","props","player","tourguide","popin","backgroundImage","backgroundUrl","hasTourguide","_size","steps","createElement","className","wrapper","playerWrapper","playerBackground","_extends","popinError","propTypes","process","env","NODE_ENV","shape"],"sources":["../../../../src/template/app-player/player/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {size} from 'lodash/fp';\nimport CMPopin from '../../../molecule/cm-popin';\nimport SlidesPlayer from './slides';\nimport TourGuideManager, {TourGuideConfigPropType} from './tourguide';\nimport style from './style.css';\n\nconst SlidePlayer = props => {\n const {player, tourguide, popin} = props;\n const backgroundImage = player.backgroundUrl ? `url(${player.backgroundUrl})` : null;\n\n const hasTourguide = tourguide && size(tourguide.steps) > 0;\n\n return (\n <div data-name=\"slidePlayer\" className={style.wrapper}>\n <div className={style.playerWrapper}>\n <div className={style.playerBackground} style={{backgroundImage}} />\n <SlidesPlayer {...player} popinError={popin} />\n {popin ? <CMPopin {...popin} /> : null}\n </div>\n {hasTourguide ? <TourGuideManager {...tourguide} /> : null}\n </div>\n );\n};\n\nSlidePlayer.propTypes = {\n player: PropTypes.shape(SlidesPlayer.propTypes),\n tourguide: TourGuideConfigPropType,\n popin: PropTypes.shape(CMPopin.propTypes)\n};\n\nexport default SlidePlayer;\n"],"mappings":";;AAAA,OAAO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;EAC/Cd,SAAS,EAAEL,uBAAuB;EAClCM,KAAK,EAAEV,SAAS,CAAC2B,KAAK,CAAC1B,OAAO,CAACsB,SAAS;AAC1C,CAAC;AAED,eAAejB,WAAW","ignoreList":[]}
|
|
@@ -24,6 +24,10 @@ declare namespace SlidesHeader {
|
|
|
24
24
|
label: PropTypes.Validator<string>;
|
|
25
25
|
}> | null | undefined)[]>;
|
|
26
26
|
}>>;
|
|
27
|
+
const help: PropTypes.Requireable<PropTypes.InferProps<{
|
|
28
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
29
|
+
title: PropTypes.Requireable<string>;
|
|
30
|
+
}>>;
|
|
27
31
|
}
|
|
28
32
|
}
|
|
29
33
|
import PropTypes from "prop-types";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/template/app-player/player/slides/header/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/template/app-player/player/slides/header/index.js"],"names":[],"mappings":";AAqFA,4EA8BC"}
|
|
@@ -6,6 +6,7 @@ import _map from "lodash/fp/map";
|
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import Link from '../../../../../atom/link';
|
|
9
|
+
import Icon from '../../../../../atom/icon';
|
|
9
10
|
import ButtonMenuAction from '../../../../../molecule/button-menu-action';
|
|
10
11
|
import { COLORS } from '../../../../../variables/colors';
|
|
11
12
|
import Learner from './learner';
|
|
@@ -98,8 +99,10 @@ const SlidesHeader = (props = {}, context = undefined) => {
|
|
|
98
99
|
subcontent,
|
|
99
100
|
lives,
|
|
100
101
|
mode,
|
|
101
|
-
multiLang
|
|
102
|
+
multiLang,
|
|
103
|
+
help
|
|
102
104
|
} = props;
|
|
105
|
+
const handleHelpClick = help?.onClick ?? null;
|
|
103
106
|
return /*#__PURE__*/React.createElement("div", {
|
|
104
107
|
"data-name": "slidesHeader",
|
|
105
108
|
className: style.wrapper
|
|
@@ -110,9 +113,22 @@ const SlidesHeader = (props = {}, context = undefined) => {
|
|
|
110
113
|
}) : null, type === HEADER_TYPE.MICROLEARNING ? /*#__PURE__*/React.createElement(Microlearning, {
|
|
111
114
|
content: content,
|
|
112
115
|
mode: mode
|
|
113
|
-
}) : null,
|
|
116
|
+
}) : null, /*#__PURE__*/React.createElement("div", {
|
|
117
|
+
className: style.actions
|
|
118
|
+
}, _pipe(_getOr([], 'supportedLangs'), _size)(multiLang) <= 1 ? null : /*#__PURE__*/React.createElement(ButtonMenuAction, buttonMenuActionProps(multiLang)), help && help.onClick ? /*#__PURE__*/React.createElement("button", {
|
|
119
|
+
type: "button",
|
|
120
|
+
title: help.title,
|
|
121
|
+
className: style.helpButton,
|
|
122
|
+
onClick: handleHelpClick,
|
|
123
|
+
"aria-label": help.title,
|
|
124
|
+
"data-name": "help-button"
|
|
125
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
126
|
+
iconName: "circle-question",
|
|
127
|
+
iconColor: COLORS.cm_primary_blue,
|
|
128
|
+
preset: "xl"
|
|
129
|
+
})) : null, lives ? /*#__PURE__*/React.createElement(Lives, {
|
|
114
130
|
count: lives.count
|
|
115
|
-
}) : null);
|
|
131
|
+
}) : null));
|
|
116
132
|
};
|
|
117
133
|
SlidesHeader.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
118
134
|
type: PropTypes.oneOf([HEADER_TYPE.LEARNER, HEADER_TYPE.MICROLEARNING]),
|
|
@@ -134,6 +150,10 @@ SlidesHeader.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
134
150
|
code: PropTypes.string.isRequired,
|
|
135
151
|
label: PropTypes.string.isRequired
|
|
136
152
|
}))
|
|
153
|
+
}),
|
|
154
|
+
help: PropTypes.shape({
|
|
155
|
+
onClick: PropTypes.func,
|
|
156
|
+
title: PropTypes.string
|
|
137
157
|
})
|
|
138
158
|
} : {};
|
|
139
159
|
export default SlidesHeader;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","PropTypes","Link","ButtonMenuAction","COLORS","Learner","Microlearning","Lives","style","HEADER_TYPE","LEARNER","MICROLEARNING","STYLE_CHECKED","icon","position","faIcon","name","color","white","backgroundColor","cm_primary_blue","size","customStyle","padding","height","width","cm_blue_50","contentCustomStyle","justifyContent","buttonMenuActionProps","multiLangOptions","currentLang","supportedLangs","onClick","button","type","label","_upperCase","neutral_700","neutral_500","fontWeight","withChevron","menu","buttons","_map","code","disabled","menuWrapper","maxHeight","SlidesHeader","props","context","undefined","content","subcontent","lives","mode","multiLang","createElement","className","wrapper","_pipe","_getOr","_size","count","propTypes","process","env","NODE_ENV","oneOf","shape","href","
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","PropTypes","Link","Icon","ButtonMenuAction","COLORS","Learner","Microlearning","Lives","style","HEADER_TYPE","LEARNER","MICROLEARNING","STYLE_CHECKED","icon","position","faIcon","name","color","white","backgroundColor","cm_primary_blue","size","customStyle","padding","height","width","cm_blue_50","contentCustomStyle","justifyContent","buttonMenuActionProps","multiLangOptions","currentLang","supportedLangs","onClick","button","type","label","_upperCase","neutral_700","neutral_500","fontWeight","withChevron","menu","buttons","_map","code","disabled","menuWrapper","maxHeight","SlidesHeader","props","context","undefined","content","subcontent","lives","mode","multiLang","help","handleHelpClick","createElement","className","wrapper","actions","_pipe","_getOr","_size","title","helpButton","iconName","iconColor","preset","count","propTypes","process","env","NODE_ENV","oneOf","shape","href","string","isRequired","details","func","arrayOf"],"sources":["../../../../../../src/template/app-player/player/slides/header/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {map, upperCase, size, pipe, getOr} from 'lodash/fp';\nimport Link from '../../../../../atom/link';\nimport Icon from '../../../../../atom/icon';\nimport ButtonMenuAction from '../../../../../molecule/button-menu-action';\nimport {COLORS} from '../../../../../variables/colors';\nimport Learner from './learner';\nimport Microlearning from './microlearning';\nimport Lives from './lives';\nimport style from './style.css'; // eslint-disable-line css-modules/no-unused-class\n\nconst HEADER_TYPE = {\n LEARNER: 'learner',\n MICROLEARNING: 'microlearning'\n};\n\nconst STYLE_CHECKED = {\n icon: {\n position: 'right',\n faIcon: {\n name: 'check',\n color: COLORS.white,\n backgroundColor: COLORS.cm_primary_blue,\n size: 10,\n customStyle: {\n padding: '0px',\n height: '16px',\n width: '16px'\n }\n }\n },\n customStyle: {backgroundColor: COLORS.cm_blue_50},\n contentCustomStyle: {\n width: '100%',\n justifyContent: 'space-between'\n }\n};\n\nconst buttonMenuActionProps = multiLangOptions => {\n const {currentLang = 'en', supportedLangs = [], onClick} = multiLangOptions;\n\n return {\n button: {\n type: 'text',\n label: upperCase(currentLang),\n 'aria-label': `${currentLang}-button`,\n 'data-name': 'button-multi-lang',\n // no need specific function on click\n // (visibility) open/close menu is handle in the component ButtonMenuAction itself\n onClick: () => null,\n icon: {\n position: 'left',\n faIcon: {\n name: 'globe',\n color: COLORS.neutral_700,\n size: 14\n }\n },\n customStyle: {\n width: 'fit-content',\n color: COLORS.neutral_500,\n fontWeight: 600\n },\n withChevron: true\n },\n menu: {\n buttons: map(\n ({code, label}) => ({\n ...(currentLang === code ? STYLE_CHECKED : {}),\n type: 'defaultLeft',\n onClick: () => onClick(code),\n label,\n 'data-name': `${code}-button`,\n disabled: false\n }),\n supportedLangs\n )\n },\n menuWrapper: {\n customStyle: {maxHeight: '248px', width: '209px'}\n }\n };\n};\n\nconst SlidesHeader = (props = {}, context = undefined) => {\n const {type, content, subcontent, lives, mode, multiLang, help} = props;\n const handleHelpClick = help?.onClick ?? null;\n\n return (\n <div data-name=\"slidesHeader\" className={style.wrapper}>\n {type === HEADER_TYPE.LEARNER ? (\n <Learner content={content} subcontent={subcontent} mode={mode} />\n ) : null}\n {type === HEADER_TYPE.MICROLEARNING ? <Microlearning content={content} mode={mode} /> : null}\n <div className={style.actions}>\n {pipe(getOr([], 'supportedLangs'), size)(multiLang) <= 1 ? null : (\n <ButtonMenuAction {...buttonMenuActionProps(multiLang)} />\n )}\n {help && help.onClick ? (\n <button\n type=\"button\"\n title={help.title}\n className={style.helpButton}\n onClick={handleHelpClick}\n aria-label={help.title}\n data-name=\"help-button\"\n >\n <Icon iconName=\"circle-question\" iconColor={COLORS.cm_primary_blue} preset=\"xl\" />\n </button>\n ) : null}\n {lives ? <Lives count={lives.count} /> : null}\n </div>\n </div>\n );\n};\n\nSlidesHeader.propTypes = {\n type: PropTypes.oneOf([HEADER_TYPE.LEARNER, HEADER_TYPE.MICROLEARNING]),\n content: PropTypes.shape({\n href: Link.propTypes.href,\n title: PropTypes.string.isRequired,\n details: PropTypes.string\n }),\n subcontent: PropTypes.shape({\n title: PropTypes.string,\n details: PropTypes.string\n }),\n lives: PropTypes.shape(Lives.propTypes),\n mode: PropTypes.string,\n multiLang: PropTypes.shape({\n onClick: PropTypes.func,\n currentLang: PropTypes.string,\n supportedLangs: PropTypes.arrayOf(\n PropTypes.shape({\n code: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired\n })\n )\n }),\n help: PropTypes.shape({\n onClick: PropTypes.func,\n title: PropTypes.string\n })\n};\n\nexport default SlidesHeader;\n"],"mappings":";;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAElC,OAAOC,IAAI,MAAM,0BAA0B;AAC3C,OAAOC,IAAI,MAAM,0BAA0B;AAC3C,OAAOC,gBAAgB,MAAM,4CAA4C;AACzE,SAAQC,MAAM,QAAO,iCAAiC;AACtD,OAAOC,OAAO,MAAM,WAAW;AAC/B,OAAOC,aAAa,MAAM,iBAAiB;AAC3C,OAAOC,KAAK,MAAM,SAAS;AAC3B,OAAOC,KAAK,MAAM,aAAa,CAAC,CAAC;;AAEjC,MAAMC,WAAW,GAAG;EAClBC,OAAO,EAAE,SAAS;EAClBC,aAAa,EAAE;AACjB,CAAC;AAED,MAAMC,aAAa,GAAG;EACpBC,IAAI,EAAE;IACJC,QAAQ,EAAE,OA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AS,CAAC;EACvCjB,IAAI,EAAExD,SAAS,CAACgF,MAAM;EACtBvB,SAAS,EAAEzD,SAAS,CAAC8E,KAAK,CAAC;IACzB7C,OAAO,EAAEjC,SAAS,CAACmF,IAAI;IACvBpD,WAAW,EAAE/B,SAAS,CAACgF,MAAM;IAC7BhD,cAAc,EAAEhC,SAAS,CAACoF,OAAO,CAC/BpF,SAAS,CAAC8E,KAAK,CAAC;MACdjC,IAAI,EAAE7C,SAAS,CAACgF,MAAM,CAACC,UAAU;MACjC7C,KAAK,EAAEpC,SAAS,CAACgF,MAAM,CAACC;IAC1B,CAAC,CACH;EACF,CAAC,CAAC;EACFvB,IAAI,EAAE1D,SAAS,CAAC8E,KAAK,CAAC;IACpB7C,OAAO,EAAEjC,SAAS,CAACmF,IAAI;IACvBhB,KAAK,EAAEnE,SAAS,CAACgF;EACnB,CAAC;AACH,CAAC;AAED,eAAe/B,YAAY","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@value colors: "../../../../../variables/colors.css";
|
|
2
|
-
@value light from colors;
|
|
2
|
+
@value light, cm_primary_blue from colors;
|
|
3
3
|
|
|
4
4
|
.wrapper {
|
|
5
5
|
width: 100%;
|
|
@@ -11,6 +11,23 @@
|
|
|
11
11
|
align-items: center;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
.actions {
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
gap: 0px;
|
|
18
|
+
margin: 0px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.helpButton {
|
|
22
|
+
background: transparent;
|
|
23
|
+
border: none;
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
padding: 10px;
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
color: cm_primary_blue;
|
|
29
|
+
}
|
|
30
|
+
|
|
14
31
|
.backIcon {
|
|
15
32
|
width: 16px;
|
|
16
33
|
height: 16px;
|
|
@@ -65,6 +65,10 @@ declare namespace SlidesPlayer {
|
|
|
65
65
|
label: PropTypes.Validator<string>;
|
|
66
66
|
}> | null | undefined)[]>;
|
|
67
67
|
}>>;
|
|
68
|
+
help: PropTypes.Requireable<PropTypes.InferProps<{
|
|
69
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
70
|
+
title: PropTypes.Requireable<string>;
|
|
71
|
+
}>>;
|
|
68
72
|
}>>;
|
|
69
73
|
export const showNewMedia: PropTypes.Requireable<boolean>;
|
|
70
74
|
export const showReviewLesson: PropTypes.Requireable<boolean>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/template/app-player/player/slides/index.js"],"names":[],"mappings":";AA+aA,qEAkBC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/template/app-player/player/slides/index.js"],"names":[],"mappings":";AA+aA,qEAkBC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA1ID;;uBAyBC;;;;;;;;;;;;;;;;;;;;;;;;;AArPD;;;gBAaC;;;;;;;;;;;;;;AAyDD;;;;gBAEC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAlHD,oEAQC;;;;;;;;;AAgND;;gBAiBC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA/GD,qEAaC"}
|
|
@@ -354,6 +354,7 @@ const ContentLayout = (props, context) => {
|
|
|
354
354
|
const noPaddingRessources = ContentType === MediaContent ? `${style.contentWrapperNoPadding}` : `${style.contentWrapper}`;
|
|
355
355
|
return /*#__PURE__*/React.createElement("div", {
|
|
356
356
|
className: noPaddingRessources,
|
|
357
|
+
"data-name": "slide",
|
|
357
358
|
style: {
|
|
358
359
|
backgroundColor: 'white'
|
|
359
360
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","useEffect","PropTypes","classnames","ColorPropType","SrcPropType","Cta","Picture","Provider","Clue","Answer","Loader","Swapper","VideoPlayer","PDF","Audio","ResourceBrowser","CMPopin","Footer","Header","style","MediaView","media","createElement","className","contextMedia","src","propTypes","process","env","NODE_ENV","ClueContent","props","context","text","starsDiff","onClickSeeClue","clueWrapper","onClick","string","number","func","Bar","total","color","current","_current","_max","stepWidth","stepBar","backgroundColor","width","isRequired","Step","step","stepCount","stepWrapper","_extends","shape","NewMedia","translate","_get","guideWrapper","newMedia","contextTypes","childContextTypes","ReviewLesson","reviewLesson","AnswerContent","answerType","help","question","MediaContent","resources","starsToWin","count","Math","abs","resourcesWrapper","stars","ContextImage","images","map","url","_id","key","arrayOf","ContextVideo","videos","videoId","childProps","_omit","id","autoplay","CONTEXT_MEDIA","img","pdf","audio","video","ContextMedia","ContentType","type","contextWrapper","contextPdfWrapper","contextAudioWrapper","oneOfType","oneOf","ContextContent","slideContext","descriptionParagraphs","_pipe","_getOr","_split","_compact","paragraphs","paragraph","index","contextDescription","innerHTML","dangerouslySetInnerHTML","__html","title","description","CONTENT_TYPE","answer","clue","Help","helpView","ValidateButton","cta","disabled","_isEmpty","keyDownHandler","event","preventDefault","document","addEventListener","removeEventListener","ctaWrapper","ContentLayout","typeClue","selectedTab","model","noPaddingRessources","contentWrapperNoPadding","contentWrapper","contextTitle","skin","_keys","LoadingLayout","popinError","loading","LoadedLayout","ErrorMessage","errorMsg","error","Content","bool","SlidesPlayer","header","buttons","showNewMedia","showReviewLesson","stepColor","mediaButton","_find","_identity","wrapper","contentProgression","TYPE","backgroundUrl"],"sources":["../../../../../src/template/app-player/player/slides/index.js"],"sourcesContent":["import React, {useEffect} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {\n compact,\n find,\n get,\n getOr,\n keys,\n omit,\n identity,\n max,\n pipe,\n split,\n isEmpty\n} from 'lodash/fp';\nimport {ColorPropType, SrcPropType} from '../../../../util/proptypes';\nimport Cta from '../../../../atom/cta';\nimport Picture from '../../../../atom/picture';\nimport Provider from '../../../../atom/provider';\nimport Clue from '../../../../atom/clue';\nimport Answer from '../../../../molecule/answer';\nimport Loader from '../../../../atom/loader';\nimport Swapper from '../../../../hoc/swapper';\nimport VideoPlayer from '../../../../molecule/video-player';\nimport PDF from '../../../../molecule/pdf';\nimport Audio from '../../../../molecule/audio';\nimport ResourceBrowser from '../../../../organism/resource-browser';\nimport CMPopin from '../../../../molecule/cm-popin';\nimport Footer from './footer';\nimport Header from './header';\nimport style from './style.css';\n\nconst MediaView = ({media}) => {\n return (\n <div className={style.contextMedia}>\n <Picture src={media} />\n </div>\n );\n};\n\nMediaView.propTypes = {\n media: Picture.propTypes.src\n};\n\n/*\n * Content types\n */\n\nconst ClueContent = (props, context) => {\n const {text, starsDiff, onClickSeeClue} = props;\n\n return (\n <div className={style.clueWrapper}>\n <Clue text={text} starsDiff={starsDiff} onClick={onClickSeeClue} />\n </div>\n );\n};\n\nClueContent.propTypes = {\n text: PropTypes.string,\n starsDiff: PropTypes.number,\n onClickSeeClue: PropTypes.func\n};\n\nconst Bar = ({total, color, current}) => {\n const _current = max([current, 0]);\n\n if (!total) {\n return null;\n }\n\n const stepWidth = (_current / total) * 100;\n\n return (\n <div\n className={style.stepBar}\n style={{\n backgroundColor: color,\n width: `${stepWidth}%`\n }}\n />\n );\n};\n\nBar.propTypes = {\n current: PropTypes.number.isRequired,\n total: PropTypes.number,\n color: ColorPropType\n};\n\nconst Step = ({step, color}) => {\n return (\n <div data-name=\"step\">\n <div data-name=\"counter\" className={style.stepCount}>\n <span style={{color}}>{step.current}</span>/{step.total}\n </div>\n <div className={style.stepWrapper}>\n <Swapper {...step} color={color} current={step.current - 1}>\n <Bar {...step} color={color} />\n </Swapper>\n </div>\n </div>\n );\n};\n\nStep.propTypes = {\n step: PropTypes.shape({\n current: Bar.propTypes.current,\n total: Bar.propTypes.total\n }),\n color: ColorPropType\n};\n\nconst NewMedia = (props, context) => {\n const {translate} = context;\n const {onClick, step} = props;\n const current = get('current', step);\n return (\n <div\n className={`${style.guideWrapper} ${style.newMedia}`}\n onClick={onClick}\n data-name=\"newMedia\"\n >\n <span>{translate(step === null || current === 1 ? 'See lesson' : 'New media')}</span>\n </div>\n );\n};\n\nNewMedia.propTypes = {\n onClick: PropTypes.func,\n step: Step.propTypes.step\n};\n\nNewMedia.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nconst ReviewLesson = (props, context) => {\n const {translate} = context;\n const {onClick} = props;\n\n return (\n <div\n className={`${style.guideWrapper} ${style.reviewLesson}`}\n onClick={onClick}\n data-name=\"reviewLesson\"\n >\n <span>{translate('Review lesson')}</span>\n </div>\n );\n};\n\nReviewLesson.propTypes = {\n onClick: PropTypes.func\n};\n\nReviewLesson.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nconst AnswerContent = ({answerType, help, question}) => (\n <Answer {...answerType} question={question} help={help} />\n);\n\nAnswerContent.propTypes = {\n answerType: PropTypes.shape(Answer.propTypes),\n help: PropTypes.string,\n question: PropTypes.string\n};\n\nconst MediaContent = (props, context) => {\n const {resources, starsDiff} = props;\n const {translate} = context;\n const starsToWin = translate('media_stars_to_win', {\n count: Math.abs(starsDiff)\n });\n\n return (\n <div className={style.resourcesWrapper}>\n <ResourceBrowser resources={resources} />\n <div className={style.stars}>{starsToWin}</div>\n </div>\n );\n};\n\nMediaContent.propTypes = {\n resources: ResourceBrowser.propTypes.resources,\n starsDiff: PropTypes.number\n};\n\nMediaContent.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nconst ContextImage = ({src}) => {\n const images = src.map(({url, _id}) => <MediaView key={_id} media={url} />);\n return <div>{images}</div>;\n};\n\nContextImage.propTypes = {\n src: PropTypes.arrayOf(\n PropTypes.shape({\n _id: PropTypes.string,\n url: PropTypes.string\n })\n )\n};\n\nconst ContextVideo = props => {\n const {src} = props;\n const videos = src.map(({videoId, ...childProps}) => (\n <VideoPlayer {...omit('id', childProps)} id={videoId} key={videoId} autoplay={false} />\n ));\n return <div>{videos}</div>;\n};\n\nContextVideo.propTypes = {\n src: PropTypes.arrayOf(PropTypes.shape(VideoPlayer.propTypes))\n};\n\nconst CONTEXT_MEDIA = {\n img: ContextImage,\n pdf: PDF,\n audio: Audio,\n video: ContextVideo\n};\n\nconst ContextMedia = ({media}) => {\n const ContentType = CONTEXT_MEDIA[media.type];\n return (\n <div\n data-name=\"contextMedia\"\n className={classnames(\n style.contextWrapper,\n media.type === 'pdf' ? style.contextPdfWrapper : null,\n media.type === 'audio' ? style.contextAudioWrapper : null\n )}\n >\n <ContentType {...media} />\n </div>\n );\n};\n\nContextMedia.propTypes = {\n media: PropTypes.oneOfType([\n PropTypes.shape({\n ...ContextImage.propTypes,\n type: PropTypes.oneOf(['img'])\n }),\n PropTypes.shape({\n ...PDF.propTypes,\n type: PropTypes.oneOf(['pdf'])\n }),\n PropTypes.shape({\n ...Audio.propTypes,\n type: PropTypes.oneOf(['audio'])\n }),\n PropTypes.shape({\n ...ContextVideo.propTypes,\n type: PropTypes.oneOf(['video'])\n })\n ])\n};\n\nconst ContextContent = ({slideContext}) => {\n const descriptionParagraphs = pipe(getOr('', 'description'), split('\\n'), compact)(slideContext);\n const paragraphs = descriptionParagraphs.map((paragraph, index) => (\n <p\n key={index}\n data-name=\"contextDescription\"\n className={classnames(style.contextDescription, style.innerHTML)}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: paragraph}}\n />\n ));\n return (\n <div className={style.context}>\n {get('media.type', slideContext) ? <ContextMedia media={slideContext.media} /> : null}\n {paragraphs}\n </div>\n );\n};\n\nContextContent.propTypes = {\n slideContext: PropTypes.shape({\n title: PropTypes.string,\n description: PropTypes.string,\n media: PropTypes.shape(ContextMedia.propTypes)\n })\n};\n\nconst CONTENT_TYPE = {\n answer: AnswerContent,\n clue: ClueContent,\n context: ContextContent,\n media: MediaContent\n};\n\nconst Help = ({help}) => (\n <div\n className={classnames(style.helpView, style.innerHTML)}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: help}}\n />\n);\n\nHelp.propTypes = {\n help: PropTypes.string\n};\n\nconst ValidateButton = ({cta = {}}) => {\n const {disabled} = cta;\n\n useEffect(() => {\n if (isEmpty(cta)) return;\n\n const keyDownHandler = event => {\n if (event.key === 'Enter' || (event.key === ' ' && disabled)) {\n event.preventDefault();\n }\n };\n document.addEventListener('keydown', keyDownHandler);\n return () => {\n document.removeEventListener('keydown', keyDownHandler);\n };\n }, [disabled, cta]);\n\n if (isEmpty(cta)) {\n return null;\n }\n return (\n <div className={style.ctaWrapper}>\n <Cta {...cta} className={style.cta} />\n </div>\n );\n};\n\nValidateButton.propTypes = {\n cta: PropTypes.shape(Cta.propTypes)\n};\n\nconst ContentLayout = (props, context) => {\n const {\n typeClue: selectedTab,\n answerType: {model: {type} = {}} = {},\n question,\n help,\n slideContext\n } = props;\n const ContentType = CONTENT_TYPE[selectedTab];\n const noPaddingRessources =\n ContentType === MediaContent ? `${style.contentWrapperNoPadding}` : `${style.contentWrapper}`;\n\n return (\n <div className={noPaddingRessources} style={{backgroundColor: 'white'}}>\n <div\n data-name=\"question\"\n className={classnames(\n selectedTab === 'context' ? style.contextTitle : style.question,\n style.innerHTML\n )}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{\n __html: selectedTab === 'context' ? slideContext.title : question\n }}\n />\n {help && selectedTab === 'answer' && type !== 'qcmDrag' ? <Help help={help} /> : null}\n <ContentType {...props} />\n <ValidateButton {...props} />\n </div>\n );\n};\n\nContentLayout.contextTypes = {\n translate: Provider.childContextTypes.translate,\n skin: Provider.childContextTypes.skin\n};\n\nContentLayout.propTypes = {\n typeClue: PropTypes.oneOf(keys(CONTENT_TYPE)),\n question: PropTypes.string,\n ...ValidateButton.propTypes\n};\n\n/*\n * Loading\n */\n\nconst LoadingLayout = ({popinError}) => (\n <div className={style.loading}>{popinError ? <CMPopin {...popinError} /> : <Loader />}</div>\n);\n\nLoadingLayout.propTypes = {\n popinError: PropTypes.shape(CMPopin.propTypes)\n};\n\nconst LoadedLayout = ({question, step, ...props}) => {\n return question ? <ContentLayout {...props} question={question} /> : <LoadingLayout {...props} />;\n};\n\nLoadedLayout.propTypes = {\n ...ContentLayout.propTypes,\n question: ContentLayout.propTypes.question\n};\n\n/*\n * Errors\n */\n\nconst ErrorMessage = ({errorMsg}) => (\n <div className={style.contentWrapper}>\n <div className={style.error}>{errorMsg}</div>\n </div>\n);\n\nErrorMessage.propTypes = {\n errorMsg: PropTypes.string\n};\n\nconst Content = ({error, ...props}) =>\n error ? <ErrorMessage {...props} /> : <LoadedLayout {...props} />;\n\nContent.propTypes = {\n error: PropTypes.bool\n};\n\n/*\n * SlidesPlayer\n */\n\nconst SlidesPlayer = (props, context) => {\n const {header, step, buttons, showNewMedia = false, showReviewLesson = false} = props;\n const {skin} = context;\n const stepColor = get('common.primary', skin);\n const mediaButton = find({type: 'media'}, buttons) || {};\n const {onClick = identity} = mediaButton;\n return (\n <div className={style.wrapper} data-name=\"slidesPlayer\">\n {header ? <Header {...header} /> : null}\n <div className={style.contentProgression}>\n {step ? <Step step={step} color={stepColor} /> : null}\n {showNewMedia && !showReviewLesson ? <NewMedia onClick={onClick} step={step} /> : null}\n {showReviewLesson && !showNewMedia ? <ReviewLesson onClick={onClick} /> : null}\n <Content {...props} />\n </div>\n <Footer buttons={buttons} />\n </div>\n );\n};\n\nSlidesPlayer.TYPE = CONTENT_TYPE;\n\nSlidesPlayer.contextTypes = {\n translate: Provider.childContextTypes.translate,\n skin: Provider.childContextTypes.skin\n};\n\nSlidesPlayer.propTypes = {\n cta: ValidateButton.propTypes.cta,\n step: Step.propTypes.step,\n buttons: Footer.propTypes.buttons,\n header: PropTypes.shape(Header.propTypes),\n showNewMedia: PropTypes.bool,\n showReviewLesson: PropTypes.bool,\n backgroundUrl: SrcPropType,\n popinError: PropTypes.shape(CMPopin.propTypes)\n};\n\nexport default SlidesPlayer;\n"],"mappings":";;;;;;;;;;;;AAAA,OAAOA,KAAK,IAAGC,SAAS,QAAO,OAAO;AACtC,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,UAAU,MAAM,YAAY;AAcnC,SAAQC,aAAa,EAAEC,W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,CAACS,SAAS,CAACqI,OAAO;EACjCD,MAAM,EAAE7J,SAAS,CAACwD,KAAK,CAACvC,MAAM,CAACQ,SAAS,CAAC;EACzCsI,YAAY,EAAE/J,SAAS,CAAC2J,IAAI;EAC5BK,gBAAgB,EAAEhK,SAAS,CAAC2J,IAAI;EAChCa,aAAa,EAAErK,WAAW;EAC1BiJ,UAAU,EAAEpJ,SAAS,CAACwD,KAAK,CAACzC,OAAO,CAACU,SAAS;AAC/C,CAAC;AAED,eAAemI,YAAY","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","useEffect","PropTypes","classnames","ColorPropType","SrcPropType","Cta","Picture","Provider","Clue","Answer","Loader","Swapper","VideoPlayer","PDF","Audio","ResourceBrowser","CMPopin","Footer","Header","style","MediaView","media","createElement","className","contextMedia","src","propTypes","process","env","NODE_ENV","ClueContent","props","context","text","starsDiff","onClickSeeClue","clueWrapper","onClick","string","number","func","Bar","total","color","current","_current","_max","stepWidth","stepBar","backgroundColor","width","isRequired","Step","step","stepCount","stepWrapper","_extends","shape","NewMedia","translate","_get","guideWrapper","newMedia","contextTypes","childContextTypes","ReviewLesson","reviewLesson","AnswerContent","answerType","help","question","MediaContent","resources","starsToWin","count","Math","abs","resourcesWrapper","stars","ContextImage","images","map","url","_id","key","arrayOf","ContextVideo","videos","videoId","childProps","_omit","id","autoplay","CONTEXT_MEDIA","img","pdf","audio","video","ContextMedia","ContentType","type","contextWrapper","contextPdfWrapper","contextAudioWrapper","oneOfType","oneOf","ContextContent","slideContext","descriptionParagraphs","_pipe","_getOr","_split","_compact","paragraphs","paragraph","index","contextDescription","innerHTML","dangerouslySetInnerHTML","__html","title","description","CONTENT_TYPE","answer","clue","Help","helpView","ValidateButton","cta","disabled","_isEmpty","keyDownHandler","event","preventDefault","document","addEventListener","removeEventListener","ctaWrapper","ContentLayout","typeClue","selectedTab","model","noPaddingRessources","contentWrapperNoPadding","contentWrapper","contextTitle","skin","_keys","LoadingLayout","popinError","loading","LoadedLayout","ErrorMessage","errorMsg","error","Content","bool","SlidesPlayer","header","buttons","showNewMedia","showReviewLesson","stepColor","mediaButton","_find","_identity","wrapper","contentProgression","TYPE","backgroundUrl"],"sources":["../../../../../src/template/app-player/player/slides/index.js"],"sourcesContent":["import React, {useEffect} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {\n compact,\n find,\n get,\n getOr,\n keys,\n omit,\n identity,\n max,\n pipe,\n split,\n isEmpty\n} from 'lodash/fp';\nimport {ColorPropType, SrcPropType} from '../../../../util/proptypes';\nimport Cta from '../../../../atom/cta';\nimport Picture from '../../../../atom/picture';\nimport Provider from '../../../../atom/provider';\nimport Clue from '../../../../atom/clue';\nimport Answer from '../../../../molecule/answer';\nimport Loader from '../../../../atom/loader';\nimport Swapper from '../../../../hoc/swapper';\nimport VideoPlayer from '../../../../molecule/video-player';\nimport PDF from '../../../../molecule/pdf';\nimport Audio from '../../../../molecule/audio';\nimport ResourceBrowser from '../../../../organism/resource-browser';\nimport CMPopin from '../../../../molecule/cm-popin';\nimport Footer from './footer';\nimport Header from './header';\nimport style from './style.css';\n\nconst MediaView = ({media}) => {\n return (\n <div className={style.contextMedia}>\n <Picture src={media} />\n </div>\n );\n};\n\nMediaView.propTypes = {\n media: Picture.propTypes.src\n};\n\n/*\n * Content types\n */\n\nconst ClueContent = (props, context) => {\n const {text, starsDiff, onClickSeeClue} = props;\n\n return (\n <div className={style.clueWrapper}>\n <Clue text={text} starsDiff={starsDiff} onClick={onClickSeeClue} />\n </div>\n );\n};\n\nClueContent.propTypes = {\n text: PropTypes.string,\n starsDiff: PropTypes.number,\n onClickSeeClue: PropTypes.func\n};\n\nconst Bar = ({total, color, current}) => {\n const _current = max([current, 0]);\n\n if (!total) {\n return null;\n }\n\n const stepWidth = (_current / total) * 100;\n\n return (\n <div\n className={style.stepBar}\n style={{\n backgroundColor: color,\n width: `${stepWidth}%`\n }}\n />\n );\n};\n\nBar.propTypes = {\n current: PropTypes.number.isRequired,\n total: PropTypes.number,\n color: ColorPropType\n};\n\nconst Step = ({step, color}) => {\n return (\n <div data-name=\"step\">\n <div data-name=\"counter\" className={style.stepCount}>\n <span style={{color}}>{step.current}</span>/{step.total}\n </div>\n <div className={style.stepWrapper}>\n <Swapper {...step} color={color} current={step.current - 1}>\n <Bar {...step} color={color} />\n </Swapper>\n </div>\n </div>\n );\n};\n\nStep.propTypes = {\n step: PropTypes.shape({\n current: Bar.propTypes.current,\n total: Bar.propTypes.total\n }),\n color: ColorPropType\n};\n\nconst NewMedia = (props, context) => {\n const {translate} = context;\n const {onClick, step} = props;\n const current = get('current', step);\n return (\n <div\n className={`${style.guideWrapper} ${style.newMedia}`}\n onClick={onClick}\n data-name=\"newMedia\"\n >\n <span>{translate(step === null || current === 1 ? 'See lesson' : 'New media')}</span>\n </div>\n );\n};\n\nNewMedia.propTypes = {\n onClick: PropTypes.func,\n step: Step.propTypes.step\n};\n\nNewMedia.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nconst ReviewLesson = (props, context) => {\n const {translate} = context;\n const {onClick} = props;\n\n return (\n <div\n className={`${style.guideWrapper} ${style.reviewLesson}`}\n onClick={onClick}\n data-name=\"reviewLesson\"\n >\n <span>{translate('Review lesson')}</span>\n </div>\n );\n};\n\nReviewLesson.propTypes = {\n onClick: PropTypes.func\n};\n\nReviewLesson.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nconst AnswerContent = ({answerType, help, question}) => (\n <Answer {...answerType} question={question} help={help} />\n);\n\nAnswerContent.propTypes = {\n answerType: PropTypes.shape(Answer.propTypes),\n help: PropTypes.string,\n question: PropTypes.string\n};\n\nconst MediaContent = (props, context) => {\n const {resources, starsDiff} = props;\n const {translate} = context;\n const starsToWin = translate('media_stars_to_win', {\n count: Math.abs(starsDiff)\n });\n\n return (\n <div className={style.resourcesWrapper}>\n <ResourceBrowser resources={resources} />\n <div className={style.stars}>{starsToWin}</div>\n </div>\n );\n};\n\nMediaContent.propTypes = {\n resources: ResourceBrowser.propTypes.resources,\n starsDiff: PropTypes.number\n};\n\nMediaContent.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nconst ContextImage = ({src}) => {\n const images = src.map(({url, _id}) => <MediaView key={_id} media={url} />);\n return <div>{images}</div>;\n};\n\nContextImage.propTypes = {\n src: PropTypes.arrayOf(\n PropTypes.shape({\n _id: PropTypes.string,\n url: PropTypes.string\n })\n )\n};\n\nconst ContextVideo = props => {\n const {src} = props;\n const videos = src.map(({videoId, ...childProps}) => (\n <VideoPlayer {...omit('id', childProps)} id={videoId} key={videoId} autoplay={false} />\n ));\n return <div>{videos}</div>;\n};\n\nContextVideo.propTypes = {\n src: PropTypes.arrayOf(PropTypes.shape(VideoPlayer.propTypes))\n};\n\nconst CONTEXT_MEDIA = {\n img: ContextImage,\n pdf: PDF,\n audio: Audio,\n video: ContextVideo\n};\n\nconst ContextMedia = ({media}) => {\n const ContentType = CONTEXT_MEDIA[media.type];\n return (\n <div\n data-name=\"contextMedia\"\n className={classnames(\n style.contextWrapper,\n media.type === 'pdf' ? style.contextPdfWrapper : null,\n media.type === 'audio' ? style.contextAudioWrapper : null\n )}\n >\n <ContentType {...media} />\n </div>\n );\n};\n\nContextMedia.propTypes = {\n media: PropTypes.oneOfType([\n PropTypes.shape({\n ...ContextImage.propTypes,\n type: PropTypes.oneOf(['img'])\n }),\n PropTypes.shape({\n ...PDF.propTypes,\n type: PropTypes.oneOf(['pdf'])\n }),\n PropTypes.shape({\n ...Audio.propTypes,\n type: PropTypes.oneOf(['audio'])\n }),\n PropTypes.shape({\n ...ContextVideo.propTypes,\n type: PropTypes.oneOf(['video'])\n })\n ])\n};\n\nconst ContextContent = ({slideContext}) => {\n const descriptionParagraphs = pipe(getOr('', 'description'), split('\\n'), compact)(slideContext);\n const paragraphs = descriptionParagraphs.map((paragraph, index) => (\n <p\n key={index}\n data-name=\"contextDescription\"\n className={classnames(style.contextDescription, style.innerHTML)}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: paragraph}}\n />\n ));\n return (\n <div className={style.context}>\n {get('media.type', slideContext) ? <ContextMedia media={slideContext.media} /> : null}\n {paragraphs}\n </div>\n );\n};\n\nContextContent.propTypes = {\n slideContext: PropTypes.shape({\n title: PropTypes.string,\n description: PropTypes.string,\n media: PropTypes.shape(ContextMedia.propTypes)\n })\n};\n\nconst CONTENT_TYPE = {\n answer: AnswerContent,\n clue: ClueContent,\n context: ContextContent,\n media: MediaContent\n};\n\nconst Help = ({help}) => (\n <div\n className={classnames(style.helpView, style.innerHTML)}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: help}}\n />\n);\n\nHelp.propTypes = {\n help: PropTypes.string\n};\n\nconst ValidateButton = ({cta = {}}) => {\n const {disabled} = cta;\n\n useEffect(() => {\n if (isEmpty(cta)) return;\n\n const keyDownHandler = event => {\n if (event.key === 'Enter' || (event.key === ' ' && disabled)) {\n event.preventDefault();\n }\n };\n document.addEventListener('keydown', keyDownHandler);\n return () => {\n document.removeEventListener('keydown', keyDownHandler);\n };\n }, [disabled, cta]);\n\n if (isEmpty(cta)) {\n return null;\n }\n return (\n <div className={style.ctaWrapper}>\n <Cta {...cta} className={style.cta} />\n </div>\n );\n};\n\nValidateButton.propTypes = {\n cta: PropTypes.shape(Cta.propTypes)\n};\n\nconst ContentLayout = (props, context) => {\n const {\n typeClue: selectedTab,\n answerType: {model: {type} = {}} = {},\n question,\n help,\n slideContext\n } = props;\n const ContentType = CONTENT_TYPE[selectedTab];\n const noPaddingRessources =\n ContentType === MediaContent ? `${style.contentWrapperNoPadding}` : `${style.contentWrapper}`;\n\n return (\n <div className={noPaddingRessources} data-name=\"slide\" style={{backgroundColor: 'white'}}>\n <div\n data-name=\"question\"\n className={classnames(\n selectedTab === 'context' ? style.contextTitle : style.question,\n style.innerHTML\n )}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{\n __html: selectedTab === 'context' ? slideContext.title : question\n }}\n />\n {help && selectedTab === 'answer' && type !== 'qcmDrag' ? <Help help={help} /> : null}\n <ContentType {...props} />\n <ValidateButton {...props} />\n </div>\n );\n};\n\nContentLayout.contextTypes = {\n translate: Provider.childContextTypes.translate,\n skin: Provider.childContextTypes.skin\n};\n\nContentLayout.propTypes = {\n typeClue: PropTypes.oneOf(keys(CONTENT_TYPE)),\n question: PropTypes.string,\n ...ValidateButton.propTypes\n};\n\n/*\n * Loading\n */\n\nconst LoadingLayout = ({popinError}) => (\n <div className={style.loading}>{popinError ? <CMPopin {...popinError} /> : <Loader />}</div>\n);\n\nLoadingLayout.propTypes = {\n popinError: PropTypes.shape(CMPopin.propTypes)\n};\n\nconst LoadedLayout = ({question, step, ...props}) => {\n return question ? <ContentLayout {...props} question={question} /> : <LoadingLayout {...props} />;\n};\n\nLoadedLayout.propTypes = {\n ...ContentLayout.propTypes,\n question: ContentLayout.propTypes.question\n};\n\n/*\n * Errors\n */\n\nconst ErrorMessage = ({errorMsg}) => (\n <div className={style.contentWrapper}>\n <div className={style.error}>{errorMsg}</div>\n </div>\n);\n\nErrorMessage.propTypes = {\n errorMsg: PropTypes.string\n};\n\nconst Content = ({error, ...props}) =>\n error ? <ErrorMessage {...props} /> : <LoadedLayout {...props} />;\n\nContent.propTypes = {\n error: PropTypes.bool\n};\n\n/*\n * SlidesPlayer\n */\n\nconst SlidesPlayer = (props, context) => {\n const {header, step, buttons, showNewMedia = false, showReviewLesson = false} = props;\n const {skin} = context;\n const stepColor = get('common.primary', skin);\n const mediaButton = find({type: 'media'}, buttons) || {};\n const {onClick = identity} = mediaButton;\n return (\n <div className={style.wrapper} data-name=\"slidesPlayer\">\n {header ? <Header {...header} /> : null}\n <div className={style.contentProgression}>\n {step ? <Step step={step} color={stepColor} /> : null}\n {showNewMedia && !showReviewLesson ? <NewMedia onClick={onClick} step={step} /> : null}\n {showReviewLesson && !showNewMedia ? <ReviewLesson onClick={onClick} /> : null}\n <Content {...props} />\n </div>\n <Footer buttons={buttons} />\n </div>\n );\n};\n\nSlidesPlayer.TYPE = CONTENT_TYPE;\n\nSlidesPlayer.contextTypes = {\n translate: Provider.childContextTypes.translate,\n skin: Provider.childContextTypes.skin\n};\n\nSlidesPlayer.propTypes = {\n cta: ValidateButton.propTypes.cta,\n step: Step.propTypes.step,\n buttons: Footer.propTypes.buttons,\n header: PropTypes.shape(Header.propTypes),\n showNewMedia: PropTypes.bool,\n showReviewLesson: PropTypes.bool,\n backgroundUrl: SrcPropType,\n popinError: PropTypes.shape(CMPopin.propTypes)\n};\n\nexport default SlidesPlayer;\n"],"mappings":";;;;;;;;;;;;AAAA,OAAOA,KAAK,IAAGC,SAAS,QAAO,OAAO;AACtC,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,UAAU,MAAM,YAAY;AAcnC,SAAQC,aAAa,EAAEC,WAAW,QAAO,4BAA4B;AACrE,OAAOC,GAAG,MAAM,sBAAsB;AACtC,OAAOC,OAAO,MAAM,0BAA0B;AAC9C,OAAOC,QAAQ,MAAM,2BAA2B;AAChD,OAAOC,IAAI,MAAM,uBAAuB;AACxC,OAAOC,MAAM,MAAM,6BAA6B;AAChD,OAAOC,MAAM,MAAM,yBAAyB;AAC5C,OAAOC,OAAO,MAAM,yBAAyB;AAC7C,OAAOC,WAAW,MAAM,mCAAmC;AAC3D,OAAOC,GAAG,MAAM,0BAA0B;AAC1C,OAAOC,KAAK,MAAM,4BAA4B;AAC9C,OAAOC,eAAe,MAAM,uCAAuC;AACnE,OAAOC,OAAO,MAAM,+BAA+B;AACnD,OAAOC,MAAM,MAAM,UAAU;AAC7B,OAAOC,MAAM,MAAM,UAAU;AAC7B,OAAOC,KAAK,MAAM,aAAa;AAE/B,MAAMC,SAAS,GAAGA,CAAC;EAACC;AAAK,CAAC,KAAK;EAC7B,oBACEtB,KAAA,CAAAuB,aAAA;IAAKC,SAAS,EAAEJ,KAAK,CAACK;EAAa,gBACjCzB,KAAA,CAAAuB,aAAA,CAAChB,OAAO;IAACmB,GAAG,EAAEJ;EAAM,CA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,CAAC,eACNhC,KAAA,CAAAuB,aAAA,CAACL,MAAM;IAAC8I,OAAO,EAAEA;EAAQ,CAAE,CACxB,CAAC;AAEV,CAAC;AAEDF,YAAY,CAACW,IAAI,GAAG9C,YAAY;AAEhCmC,YAAY,CAAC9F,YAAY,GAAG;EAC1BJ,SAAS,EAAEpD,QAAQ,CAACyD,iBAAiB,CAACL,SAAS;EAC/CuF,IAAI,EAAE3I,QAAQ,CAACyD,iBAAiB,CAACkF;AACnC,CAAC;AAEDW,YAAY,CAACnI,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAG;EACvBmG,GAAG,EAAED,cAAc,CAACrG,SAAS,CAACsG,GAAG;EACjC3E,IAAI,EAAED,IAAI,CAAC1B,SAAS,CAAC2B,IAAI;EACzB0G,OAAO,EAAE9I,MAAM,CAACS,SAAS,CAACqI,OAAO;EACjCD,MAAM,EAAE7J,SAAS,CAACwD,KAAK,CAACvC,MAAM,CAACQ,SAAS,CAAC;EACzCsI,YAAY,EAAE/J,SAAS,CAAC2J,IAAI;EAC5BK,gBAAgB,EAAEhK,SAAS,CAAC2J,IAAI;EAChCa,aAAa,EAAErK,WAAW;EAC1BiJ,UAAU,EAAEpJ,SAAS,CAACwD,KAAK,CAACzC,OAAO,CAACU,SAAS;AAC/C,CAAC;AAED,eAAemI,YAAY","ignoreList":[]}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
export function shouldStartTour(autoStart: any, group: any, client: any): any;
|
|
2
|
+
export namespace __test__ {
|
|
3
|
+
export { normalizeStepContent };
|
|
4
|
+
export { serializeSteps };
|
|
5
|
+
export { serializeOptions };
|
|
6
|
+
export { TOURGUIDE_DIALOG_CLASS };
|
|
7
|
+
export { shouldStartTour };
|
|
8
|
+
}
|
|
9
|
+
export const TourGuideStepPropType: PropTypes.Requireable<PropTypes.InferProps<{
|
|
10
|
+
title: PropTypes.Requireable<string>;
|
|
11
|
+
content: PropTypes.Validator<NonNullable<NonNullable<PropTypes.ReactNodeLike>>>;
|
|
12
|
+
target: PropTypes.Validator<NonNullable<NonNullable<string | object | null | undefined>>>;
|
|
13
|
+
order: PropTypes.Requireable<number>;
|
|
14
|
+
group: PropTypes.Requireable<string>;
|
|
15
|
+
position: PropTypes.Requireable<string>;
|
|
16
|
+
fixed: PropTypes.Requireable<boolean>;
|
|
17
|
+
buttons: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
18
|
+
text: PropTypes.Requireable<string>;
|
|
19
|
+
type: PropTypes.Requireable<string>;
|
|
20
|
+
}> | null | undefined)[]>;
|
|
21
|
+
}>>;
|
|
22
|
+
export const TourGuideOptionsPropType: PropTypes.Requireable<PropTypes.InferProps<{
|
|
23
|
+
autoScroll: PropTypes.Requireable<boolean>;
|
|
24
|
+
autoScrollSmooth: PropTypes.Requireable<boolean>;
|
|
25
|
+
autoScrollOffset: PropTypes.Requireable<number>;
|
|
26
|
+
backdropAnimate: PropTypes.Requireable<boolean>;
|
|
27
|
+
backdropClass: PropTypes.Requireable<string>;
|
|
28
|
+
backdropColor: PropTypes.Requireable<string>;
|
|
29
|
+
dialogAnimate: PropTypes.Requireable<string>;
|
|
30
|
+
dialogZ: PropTypes.Requireable<number>;
|
|
31
|
+
dialogWidth: PropTypes.Requireable<number>;
|
|
32
|
+
dialogMaxWidth: PropTypes.Requireable<number>;
|
|
33
|
+
dialogPlacement: PropTypes.Requireable<string>;
|
|
34
|
+
targetPadding: PropTypes.Requireable<number>;
|
|
35
|
+
hideNext: PropTypes.Requireable<boolean>;
|
|
36
|
+
hidePrev: PropTypes.Requireable<boolean>;
|
|
37
|
+
nextLabel: PropTypes.Requireable<string>;
|
|
38
|
+
prevLabel: PropTypes.Requireable<string>;
|
|
39
|
+
finishLabel: PropTypes.Requireable<string>;
|
|
40
|
+
completeOnFinish: PropTypes.Requireable<boolean>;
|
|
41
|
+
exitOnEscape: PropTypes.Requireable<boolean>;
|
|
42
|
+
exitOnClickOutside: PropTypes.Requireable<boolean>;
|
|
43
|
+
keyboardControls: PropTypes.Requireable<boolean>;
|
|
44
|
+
showStepDots: PropTypes.Requireable<boolean>;
|
|
45
|
+
stepDotsPlacement: PropTypes.Requireable<string>;
|
|
46
|
+
showButtons: PropTypes.Requireable<boolean>;
|
|
47
|
+
showStepProgress: PropTypes.Requireable<boolean>;
|
|
48
|
+
progressBar: PropTypes.Requireable<string>;
|
|
49
|
+
closeButton: PropTypes.Requireable<boolean>;
|
|
50
|
+
rememberStep: PropTypes.Requireable<boolean>;
|
|
51
|
+
propagateEvents: PropTypes.Requireable<boolean>;
|
|
52
|
+
debug: PropTypes.Requireable<boolean>;
|
|
53
|
+
}>>;
|
|
54
|
+
export const TourGuideConfigPropType: PropTypes.Requireable<PropTypes.InferProps<{
|
|
55
|
+
steps: PropTypes.Validator<(PropTypes.InferProps<{
|
|
56
|
+
title: PropTypes.Requireable<string>;
|
|
57
|
+
content: PropTypes.Validator<NonNullable<NonNullable<PropTypes.ReactNodeLike>>>;
|
|
58
|
+
target: PropTypes.Validator<NonNullable<NonNullable<string | object | null | undefined>>>;
|
|
59
|
+
order: PropTypes.Requireable<number>;
|
|
60
|
+
group: PropTypes.Requireable<string>;
|
|
61
|
+
position: PropTypes.Requireable<string>;
|
|
62
|
+
fixed: PropTypes.Requireable<boolean>;
|
|
63
|
+
buttons: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
64
|
+
text: PropTypes.Requireable<string>;
|
|
65
|
+
type: PropTypes.Requireable<string>;
|
|
66
|
+
}> | null | undefined)[]>;
|
|
67
|
+
}> | null | undefined)[]>;
|
|
68
|
+
options: PropTypes.Requireable<PropTypes.InferProps<{
|
|
69
|
+
autoScroll: PropTypes.Requireable<boolean>;
|
|
70
|
+
autoScrollSmooth: PropTypes.Requireable<boolean>;
|
|
71
|
+
autoScrollOffset: PropTypes.Requireable<number>;
|
|
72
|
+
backdropAnimate: PropTypes.Requireable<boolean>;
|
|
73
|
+
backdropClass: PropTypes.Requireable<string>;
|
|
74
|
+
backdropColor: PropTypes.Requireable<string>;
|
|
75
|
+
dialogAnimate: PropTypes.Requireable<string>;
|
|
76
|
+
dialogZ: PropTypes.Requireable<number>;
|
|
77
|
+
dialogWidth: PropTypes.Requireable<number>;
|
|
78
|
+
dialogMaxWidth: PropTypes.Requireable<number>;
|
|
79
|
+
dialogPlacement: PropTypes.Requireable<string>;
|
|
80
|
+
targetPadding: PropTypes.Requireable<number>;
|
|
81
|
+
hideNext: PropTypes.Requireable<boolean>;
|
|
82
|
+
hidePrev: PropTypes.Requireable<boolean>;
|
|
83
|
+
nextLabel: PropTypes.Requireable<string>;
|
|
84
|
+
prevLabel: PropTypes.Requireable<string>;
|
|
85
|
+
finishLabel: PropTypes.Requireable<string>;
|
|
86
|
+
completeOnFinish: PropTypes.Requireable<boolean>;
|
|
87
|
+
exitOnEscape: PropTypes.Requireable<boolean>;
|
|
88
|
+
exitOnClickOutside: PropTypes.Requireable<boolean>;
|
|
89
|
+
keyboardControls: PropTypes.Requireable<boolean>;
|
|
90
|
+
showStepDots: PropTypes.Requireable<boolean>;
|
|
91
|
+
stepDotsPlacement: PropTypes.Requireable<string>;
|
|
92
|
+
showButtons: PropTypes.Requireable<boolean>;
|
|
93
|
+
showStepProgress: PropTypes.Requireable<boolean>;
|
|
94
|
+
progressBar: PropTypes.Requireable<string>;
|
|
95
|
+
closeButton: PropTypes.Requireable<boolean>;
|
|
96
|
+
rememberStep: PropTypes.Requireable<boolean>;
|
|
97
|
+
propagateEvents: PropTypes.Requireable<boolean>;
|
|
98
|
+
debug: PropTypes.Requireable<boolean>;
|
|
99
|
+
}>>;
|
|
100
|
+
group: PropTypes.Requireable<string>;
|
|
101
|
+
autoStart: PropTypes.Requireable<boolean>;
|
|
102
|
+
forceStart: PropTypes.Requireable<boolean>;
|
|
103
|
+
startStep: PropTypes.Requireable<number>;
|
|
104
|
+
onStepChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
105
|
+
onStart: PropTypes.Requireable<(...args: any[]) => any>;
|
|
106
|
+
onExit: PropTypes.Requireable<(...args: any[]) => any>;
|
|
107
|
+
onFinish: PropTypes.Requireable<(...args: any[]) => any>;
|
|
108
|
+
testMode: PropTypes.Requireable<boolean>;
|
|
109
|
+
}>>;
|
|
110
|
+
export default TourGuideManager;
|
|
111
|
+
declare function normalizeStepContent(content: any): string;
|
|
112
|
+
declare function serializeSteps(steps: any): string;
|
|
113
|
+
declare function serializeOptions(options: any): string;
|
|
114
|
+
declare const TOURGUIDE_DIALOG_CLASS: "coorp-tourguide-dialog";
|
|
115
|
+
import PropTypes from "prop-types";
|
|
116
|
+
declare function TourGuideManager({ steps, options, group, autoStart, forceStart, startStep, onStepChange, onStart, onExit, onFinish, testClientFactory, testMode }: {
|
|
117
|
+
steps?: any[] | undefined;
|
|
118
|
+
options?: {} | undefined;
|
|
119
|
+
group: any;
|
|
120
|
+
autoStart?: boolean | undefined;
|
|
121
|
+
forceStart?: boolean | undefined;
|
|
122
|
+
startStep: any;
|
|
123
|
+
onStepChange: any;
|
|
124
|
+
onStart: any;
|
|
125
|
+
onExit: any;
|
|
126
|
+
onFinish: any;
|
|
127
|
+
testClientFactory: any;
|
|
128
|
+
testMode?: boolean | undefined;
|
|
129
|
+
}): null;
|
|
130
|
+
declare namespace TourGuideManager {
|
|
131
|
+
namespace propTypes {
|
|
132
|
+
export const steps: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
133
|
+
title: PropTypes.Requireable<string>;
|
|
134
|
+
content: PropTypes.Validator<NonNullable<NonNullable<PropTypes.ReactNodeLike>>>;
|
|
135
|
+
target: PropTypes.Validator<NonNullable<NonNullable<string | object | null | undefined>>>;
|
|
136
|
+
order: PropTypes.Requireable<number>;
|
|
137
|
+
group: PropTypes.Requireable<string>;
|
|
138
|
+
position: PropTypes.Requireable<string>;
|
|
139
|
+
fixed: PropTypes.Requireable<boolean>;
|
|
140
|
+
buttons: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
141
|
+
text: PropTypes.Requireable<string>;
|
|
142
|
+
type: PropTypes.Requireable<string>;
|
|
143
|
+
}> | null | undefined)[]>;
|
|
144
|
+
}> | null | undefined)[]>;
|
|
145
|
+
export { TourGuideOptionsPropType as options };
|
|
146
|
+
export const group: PropTypes.Requireable<string>;
|
|
147
|
+
export const autoStart: PropTypes.Requireable<boolean>;
|
|
148
|
+
export const forceStart: PropTypes.Requireable<boolean>;
|
|
149
|
+
export const startStep: PropTypes.Requireable<number>;
|
|
150
|
+
export const onStepChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
151
|
+
export const onStart: PropTypes.Requireable<(...args: any[]) => any>;
|
|
152
|
+
export const onExit: PropTypes.Requireable<(...args: any[]) => any>;
|
|
153
|
+
export const onFinish: PropTypes.Requireable<(...args: any[]) => any>;
|
|
154
|
+
export const testClientFactory: PropTypes.Requireable<(...args: any[]) => any>;
|
|
155
|
+
export const testMode: PropTypes.Requireable<boolean>;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/template/app-player/player/tourguide/index.js"],"names":[],"mappings":"AAmDO,8EAA4F;;;;;;;;AAWnG;;;;;;;;;;;;IAcG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA+BG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAYG;;AA9GH,4DAaC;AAID,oDASgB;AAIhB,wDAMkB;AA1ClB,+DAAwD;;AA0HxD;;;;;;;;;;;;;SAwJC"}
|