@coorpacademy/app-review 0.5.6 → 0.6.0
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/sandbox/index.d.ts +9 -0
- package/es/sandbox/index.js +41 -0
- package/es/{actions → src/actions}/api/fetch-correction.d.ts +2 -2
- package/{lib → es/src}/actions/api/fetch-rank.d.ts +3 -3
- package/{lib → es/src}/actions/api/fetch-skills.d.ts +2 -2
- package/{lib → es/src}/actions/api/fetch-slide.d.ts +2 -2
- package/{lib → es/src}/actions/api/post-answer.d.ts +2 -2
- package/es/{actions → src/actions}/api/post-progression.d.ts +2 -2
- package/es/{actions → src/actions}/test/create-test-store.d.ts +2 -2
- package/es/{actions → src/actions}/test/create-test-store.js +2 -2
- package/es/src/actions/ui/navigation.d.ts +19 -0
- package/es/src/actions/ui/navigation.js +26 -0
- package/{lib → es/src}/common/index.d.ts +0 -5
- package/es/{common → src/common}/index.js +0 -5
- package/es/{configure-store.js → src/configure-store.js} +5 -1
- package/{lib → es/src}/index.d.ts +0 -1
- package/es/{index.js → src/index.js} +3 -3
- package/{lib → es/src}/reducers/index.d.ts +1 -1
- package/es/{reducers → src/reducers}/ui/index.d.ts +1 -1
- package/{lib → es/src}/reducers/ui/navigation.d.ts +2 -2
- package/es/{reducers → src/reducers}/ui/navigation.js +1 -1
- package/{lib → es/src}/types/common.d.ts +7 -4
- package/{lib → es/src}/views/skills/index.d.ts +1 -3
- package/es/{views → src/views}/skills/index.js +0 -2
- package/es/src/views/slides/index.d.ts +34 -0
- package/es/{views → src/views}/slides/index.js +6 -4
- package/lib/sandbox/index.d.ts +9 -0
- package/lib/sandbox/index.js +43 -0
- package/lib/{actions → src/actions}/api/fetch-correction.d.ts +2 -2
- package/{es → lib/src}/actions/api/fetch-rank.d.ts +3 -3
- package/{es → lib/src}/actions/api/fetch-skills.d.ts +2 -2
- package/{es → lib/src}/actions/api/fetch-slide.d.ts +2 -2
- package/{es → lib/src}/actions/api/post-answer.d.ts +2 -2
- package/lib/{actions → src/actions}/api/post-progression.d.ts +2 -2
- package/lib/{actions → src/actions}/test/create-test-store.d.ts +2 -2
- package/lib/{actions → src/actions}/test/create-test-store.js +2 -2
- package/lib/src/actions/ui/navigation.d.ts +19 -0
- package/lib/src/actions/ui/navigation.js +86 -0
- package/{es → lib/src}/common/index.d.ts +0 -5
- package/lib/{common → src/common}/index.js +0 -5
- package/lib/{configure-store.js → src/configure-store.js} +5 -1
- package/{es → lib/src}/index.d.ts +0 -1
- package/lib/{index.js → src/index.js} +3 -3
- package/{es → lib/src}/reducers/index.d.ts +1 -1
- package/lib/{reducers → src/reducers}/ui/index.d.ts +1 -1
- package/{es → lib/src}/reducers/ui/navigation.d.ts +2 -2
- package/lib/{reducers → src/reducers}/ui/navigation.js +1 -1
- package/{es → lib/src}/types/common.d.ts +7 -4
- package/{es → lib/src}/views/skills/index.d.ts +1 -3
- package/lib/{views → src/views}/skills/index.js +0 -2
- package/lib/src/views/slides/index.d.ts +34 -0
- package/lib/{views → src/views}/slides/index.js +6 -4
- package/package.json +3 -3
- package/src/actions/api/fetch-correction.ts +2 -2
- package/src/actions/api/fetch-rank.ts +3 -3
- package/src/actions/api/fetch-skills.ts +2 -2
- package/src/actions/api/fetch-slide.ts +6 -2
- package/src/actions/api/post-answer.ts +2 -2
- package/src/actions/api/post-progression.ts +6 -2
- package/src/actions/api/test/fetch-correction.test.ts +2 -2
- package/src/actions/api/test/fetch-rank.test.ts +4 -4
- package/src/actions/api/test/fetch-skills.test.ts +2 -2
- package/src/actions/api/test/fetch-slide.test.ts +2 -2
- package/src/actions/api/test/post-answer.test.ts +11 -7
- package/src/actions/api/test/post-progression.test.ts +2 -2
- package/src/actions/data/test/token.test.ts +1 -1
- package/src/actions/test/create-test-store.ts +3 -3
- package/src/actions/ui/navigation.ts +49 -17
- package/src/actions/ui/test/answers.test.ts +8 -8
- package/src/actions/ui/test/navigation.test.ts +95 -0
- package/src/actions/ui/test/next-slide.test.ts +2 -2
- package/src/actions/ui/test/quit-popin.test.ts +2 -2
- package/src/actions/ui/test/slides.test.ts +1 -1
- package/src/common/index.ts +0 -10
- package/src/configure-store.ts +8 -2
- package/src/index.tsx +8 -6
- package/src/reducers/ui/navigation.ts +5 -5
- package/src/reducers/ui/test/navigation.test.ts +5 -5
- package/src/types/common.ts +9 -5
- package/src/views/skills/index.ts +1 -5
- package/src/views/skills/test/skills.test.ts +0 -4
- package/src/views/slides/index.ts +20 -132
- package/src/views/slides/test/header.on-click.test.ts +1 -1
- package/src/views/slides/test/index.test.ts +21 -6
- package/src/views/slides/test/on-quit-popin.on-click.test.ts +6 -5
- package/src/views/slides/test/slide.free-text.on-change.test.ts +3 -4
- package/src/views/slides/test/slide.next-slide.on-click.test.ts +7 -5
- package/src/views/slides/test/slide.qcm-drag.on-click.test.ts +1 -1
- package/src/views/slides/test/slide.qcm-graphic.on-click.test.ts +1 -1
- package/src/views/slides/test/slide.qcm.on-click.test.ts +1 -1
- package/src/views/slides/test/slide.slider.on-change.test.ts +1 -1
- package/src/views/slides/test/slide.slider.on-slider-change.test.ts +1 -1
- package/src/views/slides/test/slide.template.on-change.test.ts +2 -2
- package/es/actions/index.d.ts +0 -5
- package/es/actions/index.js +0 -1
- package/es/actions/ui/navigation.d.ts +0 -18
- package/es/actions/ui/navigation.js +0 -10
- package/es/views/slides/index.d.ts +0 -142
- package/lib/actions/index.d.ts +0 -5
- package/lib/actions/index.js +0 -1
- package/lib/actions/ui/navigation.d.ts +0 -18
- package/lib/actions/ui/navigation.js +0 -10
- package/lib/views/slides/index.d.ts +0 -142
- package/src/actions/index.ts +0 -6
- /package/es/{actions → src/actions}/api/fetch-correction.js +0 -0
- /package/es/{actions → src/actions}/api/fetch-rank.js +0 -0
- /package/es/{actions → src/actions}/api/fetch-skills.js +0 -0
- /package/es/{actions → src/actions}/api/fetch-slide.js +0 -0
- /package/es/{actions → src/actions}/api/post-answer.js +0 -0
- /package/es/{actions → src/actions}/api/post-progression.js +0 -0
- /package/es/{actions → src/actions}/data/token.d.ts +0 -0
- /package/es/{actions → src/actions}/data/token.js +0 -0
- /package/es/{actions → src/actions}/ui/answers.d.ts +0 -0
- /package/es/{actions → src/actions}/ui/answers.js +0 -0
- /package/es/{actions → src/actions}/ui/next-slide.d.ts +0 -0
- /package/es/{actions → src/actions}/ui/next-slide.js +0 -0
- /package/es/{actions → src/actions}/ui/quit-popin.d.ts +0 -0
- /package/es/{actions → src/actions}/ui/quit-popin.js +0 -0
- /package/es/{actions → src/actions}/ui/slides.d.ts +0 -0
- /package/es/{actions → src/actions}/ui/slides.js +0 -0
- /package/es/{configure-store.d.ts → src/configure-store.d.ts} +0 -0
- /package/es/{helpers → src/helpers}/css-register.d.ts +0 -0
- /package/es/{helpers → src/helpers}/css-register.js +0 -0
- /package/es/{reducers → src/reducers}/data/corrections.d.ts +0 -0
- /package/es/{reducers → src/reducers}/data/corrections.js +0 -0
- /package/es/{reducers → src/reducers}/data/index.d.ts +0 -0
- /package/es/{reducers → src/reducers}/data/index.js +0 -0
- /package/es/{reducers → src/reducers}/data/progression.d.ts +0 -0
- /package/es/{reducers → src/reducers}/data/progression.js +0 -0
- /package/es/{reducers → src/reducers}/data/rank.d.ts +0 -0
- /package/es/{reducers → src/reducers}/data/rank.js +0 -0
- /package/es/{reducers → src/reducers}/data/skills.d.ts +0 -0
- /package/es/{reducers → src/reducers}/data/skills.js +0 -0
- /package/es/{reducers → src/reducers}/data/slides.d.ts +0 -0
- /package/es/{reducers → src/reducers}/data/slides.js +0 -0
- /package/es/{reducers → src/reducers}/data/token.d.ts +0 -0
- /package/es/{reducers → src/reducers}/data/token.js +0 -0
- /package/es/{reducers → src/reducers}/index.js +0 -0
- /package/es/{reducers → src/reducers}/ui/answers.d.ts +0 -0
- /package/es/{reducers → src/reducers}/ui/answers.js +0 -0
- /package/es/{reducers → src/reducers}/ui/current-slide-ref.d.ts +0 -0
- /package/es/{reducers → src/reducers}/ui/current-slide-ref.js +0 -0
- /package/es/{reducers → src/reducers}/ui/index.js +0 -0
- /package/es/{reducers → src/reducers}/ui/positions.d.ts +0 -0
- /package/es/{reducers → src/reducers}/ui/positions.js +0 -0
- /package/es/{reducers → src/reducers}/ui/quit-popin.d.ts +0 -0
- /package/es/{reducers → src/reducers}/ui/quit-popin.js +0 -0
- /package/es/{reducers → src/reducers}/ui/show-congrats.d.ts +0 -0
- /package/es/{reducers → src/reducers}/ui/show-congrats.js +0 -0
- /package/es/{reducers → src/reducers}/ui/slide.d.ts +0 -0
- /package/es/{reducers → src/reducers}/ui/slide.js +0 -0
- /package/es/{services → src/services}/fetch-correction.d.ts +0 -0
- /package/es/{services → src/services}/fetch-correction.js +0 -0
- /package/es/{services → src/services}/fetch-rank.d.ts +0 -0
- /package/es/{services → src/services}/fetch-rank.js +0 -0
- /package/es/{services → src/services}/fetch-skills.d.ts +0 -0
- /package/es/{services → src/services}/fetch-skills.js +0 -0
- /package/es/{services → src/services}/fetch-slide.d.ts +0 -0
- /package/es/{services → src/services}/fetch-slide.js +0 -0
- /package/es/{services → src/services}/fetch-slides-to-review-by-skill-ref.d.ts +0 -0
- /package/es/{services → src/services}/fetch-slides-to-review-by-skill-ref.js +0 -0
- /package/es/{services → src/services}/index.d.ts +0 -0
- /package/es/{services → src/services}/index.js +0 -0
- /package/es/{services → src/services}/post-answer.d.ts +0 -0
- /package/es/{services → src/services}/post-answer.js +0 -0
- /package/es/{services → src/services}/post-progression.d.ts +0 -0
- /package/es/{services → src/services}/post-progression.js +0 -0
- /package/es/{services → src/services}/tools/fetch-responses.d.ts +0 -0
- /package/es/{services → src/services}/tools/fetch-responses.js +0 -0
- /package/es/{services → src/services}/tools/sleep.d.ts +0 -0
- /package/es/{services → src/services}/tools/sleep.js +0 -0
- /package/es/{test → src/test}/index.test.d.ts +0 -0
- /package/es/{test → src/test}/index.test.js +0 -0
- /package/es/{test → src/test}/util/services.mock.d.ts +0 -0
- /package/es/{test → src/test}/util/services.mock.js +0 -0
- /package/es/{types → src/types}/common.js +0 -0
- /package/es/{types → src/types}/slides.d.ts +0 -0
- /package/es/{types → src/types}/slides.js +0 -0
- /package/es/{views → src/views}/slides/map-api-slide-to-ui.d.ts +0 -0
- /package/es/{views → src/views}/slides/map-api-slide-to-ui.js +0 -0
- /package/es/{views → src/views}/slides/test/fixtures/free-text.d.ts +0 -0
- /package/es/{views → src/views}/slides/test/fixtures/free-text.js +0 -0
- /package/es/{views → src/views}/slides/test/fixtures/qcm-drag.d.ts +0 -0
- /package/es/{views → src/views}/slides/test/fixtures/qcm-drag.js +0 -0
- /package/es/{views → src/views}/slides/test/fixtures/qcm-graphic.d.ts +0 -0
- /package/es/{views → src/views}/slides/test/fixtures/qcm-graphic.js +0 -0
- /package/es/{views → src/views}/slides/test/fixtures/qcm.d.ts +0 -0
- /package/es/{views → src/views}/slides/test/fixtures/qcm.js +0 -0
- /package/es/{views → src/views}/slides/test/fixtures/slider.d.ts +0 -0
- /package/es/{views → src/views}/slides/test/fixtures/slider.js +0 -0
- /package/es/{views → src/views}/slides/test/fixtures/template.d.ts +0 -0
- /package/es/{views → src/views}/slides/test/fixtures/template.js +0 -0
- /package/lib/{actions → src/actions}/api/fetch-correction.js +0 -0
- /package/lib/{actions → src/actions}/api/fetch-rank.js +0 -0
- /package/lib/{actions → src/actions}/api/fetch-skills.js +0 -0
- /package/lib/{actions → src/actions}/api/fetch-slide.js +0 -0
- /package/lib/{actions → src/actions}/api/post-answer.js +0 -0
- /package/lib/{actions → src/actions}/api/post-progression.js +0 -0
- /package/lib/{actions → src/actions}/data/token.d.ts +0 -0
- /package/lib/{actions → src/actions}/data/token.js +0 -0
- /package/lib/{actions → src/actions}/ui/answers.d.ts +0 -0
- /package/lib/{actions → src/actions}/ui/answers.js +0 -0
- /package/lib/{actions → src/actions}/ui/next-slide.d.ts +0 -0
- /package/lib/{actions → src/actions}/ui/next-slide.js +0 -0
- /package/lib/{actions → src/actions}/ui/quit-popin.d.ts +0 -0
- /package/lib/{actions → src/actions}/ui/quit-popin.js +0 -0
- /package/lib/{actions → src/actions}/ui/slides.d.ts +0 -0
- /package/lib/{actions → src/actions}/ui/slides.js +0 -0
- /package/lib/{configure-store.d.ts → src/configure-store.d.ts} +0 -0
- /package/lib/{helpers → src/helpers}/css-register.d.ts +0 -0
- /package/lib/{helpers → src/helpers}/css-register.js +0 -0
- /package/lib/{reducers → src/reducers}/data/corrections.d.ts +0 -0
- /package/lib/{reducers → src/reducers}/data/corrections.js +0 -0
- /package/lib/{reducers → src/reducers}/data/index.d.ts +0 -0
- /package/lib/{reducers → src/reducers}/data/index.js +0 -0
- /package/lib/{reducers → src/reducers}/data/progression.d.ts +0 -0
- /package/lib/{reducers → src/reducers}/data/progression.js +0 -0
- /package/lib/{reducers → src/reducers}/data/rank.d.ts +0 -0
- /package/lib/{reducers → src/reducers}/data/rank.js +0 -0
- /package/lib/{reducers → src/reducers}/data/skills.d.ts +0 -0
- /package/lib/{reducers → src/reducers}/data/skills.js +0 -0
- /package/lib/{reducers → src/reducers}/data/slides.d.ts +0 -0
- /package/lib/{reducers → src/reducers}/data/slides.js +0 -0
- /package/lib/{reducers → src/reducers}/data/token.d.ts +0 -0
- /package/lib/{reducers → src/reducers}/data/token.js +0 -0
- /package/lib/{reducers → src/reducers}/index.js +0 -0
- /package/lib/{reducers → src/reducers}/ui/answers.d.ts +0 -0
- /package/lib/{reducers → src/reducers}/ui/answers.js +0 -0
- /package/lib/{reducers → src/reducers}/ui/current-slide-ref.d.ts +0 -0
- /package/lib/{reducers → src/reducers}/ui/current-slide-ref.js +0 -0
- /package/lib/{reducers → src/reducers}/ui/index.js +0 -0
- /package/lib/{reducers → src/reducers}/ui/positions.d.ts +0 -0
- /package/lib/{reducers → src/reducers}/ui/positions.js +0 -0
- /package/lib/{reducers → src/reducers}/ui/quit-popin.d.ts +0 -0
- /package/lib/{reducers → src/reducers}/ui/quit-popin.js +0 -0
- /package/lib/{reducers → src/reducers}/ui/show-congrats.d.ts +0 -0
- /package/lib/{reducers → src/reducers}/ui/show-congrats.js +0 -0
- /package/lib/{reducers → src/reducers}/ui/slide.d.ts +0 -0
- /package/lib/{reducers → src/reducers}/ui/slide.js +0 -0
- /package/lib/{services → src/services}/fetch-correction.d.ts +0 -0
- /package/lib/{services → src/services}/fetch-correction.js +0 -0
- /package/lib/{services → src/services}/fetch-rank.d.ts +0 -0
- /package/lib/{services → src/services}/fetch-rank.js +0 -0
- /package/lib/{services → src/services}/fetch-skills.d.ts +0 -0
- /package/lib/{services → src/services}/fetch-skills.js +0 -0
- /package/lib/{services → src/services}/fetch-slide.d.ts +0 -0
- /package/lib/{services → src/services}/fetch-slide.js +0 -0
- /package/lib/{services → src/services}/fetch-slides-to-review-by-skill-ref.d.ts +0 -0
- /package/lib/{services → src/services}/fetch-slides-to-review-by-skill-ref.js +0 -0
- /package/lib/{services → src/services}/index.d.ts +0 -0
- /package/lib/{services → src/services}/index.js +0 -0
- /package/lib/{services → src/services}/post-answer.d.ts +0 -0
- /package/lib/{services → src/services}/post-answer.js +0 -0
- /package/lib/{services → src/services}/post-progression.d.ts +0 -0
- /package/lib/{services → src/services}/post-progression.js +0 -0
- /package/lib/{services → src/services}/tools/fetch-responses.d.ts +0 -0
- /package/lib/{services → src/services}/tools/fetch-responses.js +0 -0
- /package/lib/{services → src/services}/tools/sleep.d.ts +0 -0
- /package/lib/{services → src/services}/tools/sleep.js +0 -0
- /package/lib/{test → src/test}/index.test.d.ts +0 -0
- /package/lib/{test → src/test}/index.test.js +0 -0
- /package/lib/{test → src/test}/util/services.mock.d.ts +0 -0
- /package/lib/{test → src/test}/util/services.mock.js +0 -0
- /package/lib/{types → src/types}/common.js +0 -0
- /package/lib/{types → src/types}/slides.d.ts +0 -0
- /package/lib/{types → src/types}/slides.js +0 -0
- /package/lib/{views → src/views}/slides/map-api-slide-to-ui.d.ts +0 -0
- /package/lib/{views → src/views}/slides/map-api-slide-to-ui.js +0 -0
- /package/lib/{views → src/views}/slides/test/fixtures/free-text.d.ts +0 -0
- /package/lib/{views → src/views}/slides/test/fixtures/free-text.js +0 -0
- /package/lib/{views → src/views}/slides/test/fixtures/qcm-drag.d.ts +0 -0
- /package/lib/{views → src/views}/slides/test/fixtures/qcm-drag.js +0 -0
- /package/lib/{views → src/views}/slides/test/fixtures/qcm-graphic.d.ts +0 -0
- /package/lib/{views → src/views}/slides/test/fixtures/qcm-graphic.js +0 -0
- /package/lib/{views → src/views}/slides/test/fixtures/qcm.d.ts +0 -0
- /package/lib/{views → src/views}/slides/test/fixtures/qcm.js +0 -0
- /package/lib/{views → src/views}/slides/test/fixtures/slider.d.ts +0 -0
- /package/lib/{views → src/views}/slides/test/fixtures/slider.js +0 -0
- /package/lib/{views → src/views}/slides/test/fixtures/template.d.ts +0 -0
- /package/lib/{views → src/views}/slides/test/fixtures/template.js +0 -0
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import type { Dispatch } from 'redux';
|
|
2
|
-
import { type SlideIndexes } from '../../common';
|
|
3
|
-
import type { StoreState } from '../../reducers';
|
|
4
|
-
import type { AnswerUI } from '../../types/slides';
|
|
5
|
-
declare const ICON_VALUES: {
|
|
6
|
-
readonly right: "right";
|
|
7
|
-
readonly wrong: "wrong";
|
|
8
|
-
readonly 'no-answer': "no-answer";
|
|
9
|
-
};
|
|
10
|
-
declare type IconValue = keyof typeof ICON_VALUES;
|
|
11
|
-
declare type StepItem = {
|
|
12
|
-
current: boolean;
|
|
13
|
-
icon: IconValue;
|
|
14
|
-
value: string;
|
|
15
|
-
};
|
|
16
|
-
declare type SlideUIAnimations = 'unstack' | 'restack';
|
|
17
|
-
export declare type ReviewSlide = {
|
|
18
|
-
position: number;
|
|
19
|
-
loading: boolean;
|
|
20
|
-
showCorrectionPopin?: boolean;
|
|
21
|
-
animateCorrectionPopin?: boolean;
|
|
22
|
-
parentContentTitle?: string;
|
|
23
|
-
questionText?: string;
|
|
24
|
-
answerUI?: AnswerUI;
|
|
25
|
-
animationType?: SlideUIAnimations;
|
|
26
|
-
};
|
|
27
|
-
declare type SlidesStack = {
|
|
28
|
-
[key in SlideIndexes]: ReviewSlide;
|
|
29
|
-
};
|
|
30
|
-
declare type CorrectionPopinInformation = {
|
|
31
|
-
label: string;
|
|
32
|
-
message: string;
|
|
33
|
-
};
|
|
34
|
-
declare type CorrectionPopinKlf = {
|
|
35
|
-
label: string;
|
|
36
|
-
tooltip: string;
|
|
37
|
-
};
|
|
38
|
-
declare type CorrectionPopinNext = {
|
|
39
|
-
label: string;
|
|
40
|
-
ariaLabel: string;
|
|
41
|
-
onClick: Function;
|
|
42
|
-
};
|
|
43
|
-
declare type QuitPopinButton = {
|
|
44
|
-
label: string;
|
|
45
|
-
type: string;
|
|
46
|
-
customStyle?: {
|
|
47
|
-
color: string;
|
|
48
|
-
};
|
|
49
|
-
handleOnclick: Function;
|
|
50
|
-
ariaLabel: string;
|
|
51
|
-
};
|
|
52
|
-
export declare type CorrectionPopinProps = {
|
|
53
|
-
klf?: CorrectionPopinKlf;
|
|
54
|
-
information: CorrectionPopinInformation;
|
|
55
|
-
next: CorrectionPopinNext;
|
|
56
|
-
resultLabel: string;
|
|
57
|
-
type: 'right' | 'wrong';
|
|
58
|
-
};
|
|
59
|
-
export declare type QuitPopinProps = {
|
|
60
|
-
content: string;
|
|
61
|
-
icon: string;
|
|
62
|
-
mode: string;
|
|
63
|
-
descriptionText: string;
|
|
64
|
-
firstButton: QuitPopinButton;
|
|
65
|
-
secondButton: QuitPopinButton;
|
|
66
|
-
};
|
|
67
|
-
export declare type SlidesViewProps = {
|
|
68
|
-
header: {
|
|
69
|
-
mode: string;
|
|
70
|
-
skillName: string;
|
|
71
|
-
onQuitClick: Function;
|
|
72
|
-
'aria-label'?: string;
|
|
73
|
-
closeButtonAriaLabel: string;
|
|
74
|
-
steps: StepItem[];
|
|
75
|
-
};
|
|
76
|
-
stack: {
|
|
77
|
-
slides: SlidesStack;
|
|
78
|
-
validateButton: {
|
|
79
|
-
label: string;
|
|
80
|
-
disabled: boolean;
|
|
81
|
-
onClick: Function;
|
|
82
|
-
};
|
|
83
|
-
correctionPopinProps?: CorrectionPopinProps;
|
|
84
|
-
endReview: boolean;
|
|
85
|
-
};
|
|
86
|
-
reviewBackgroundAriaLabel?: string;
|
|
87
|
-
congrats?: CongratsProps;
|
|
88
|
-
quitPopin?: QuitPopinProps;
|
|
89
|
-
};
|
|
90
|
-
declare type LottieAnimationProps = {
|
|
91
|
-
'aria-label': string;
|
|
92
|
-
'data-name'?: string;
|
|
93
|
-
animationSrc: string;
|
|
94
|
-
loop?: boolean;
|
|
95
|
-
rendererSettings?: {
|
|
96
|
-
hideOnTransparent?: boolean;
|
|
97
|
-
className?: string;
|
|
98
|
-
};
|
|
99
|
-
height?: number;
|
|
100
|
-
width?: number;
|
|
101
|
-
className?: number;
|
|
102
|
-
ie11ImageBackup: string;
|
|
103
|
-
backupImageClassName?: string;
|
|
104
|
-
autoplay?: boolean;
|
|
105
|
-
animationControl?: 'play' | 'pause' | 'stop' | 'loading';
|
|
106
|
-
};
|
|
107
|
-
export declare type CongratsCardProps = {
|
|
108
|
-
'aria-label': string;
|
|
109
|
-
'data-name': string;
|
|
110
|
-
animationLottie: LottieAnimationProps;
|
|
111
|
-
iconAriaLabel: string;
|
|
112
|
-
className?: string;
|
|
113
|
-
cardType: string;
|
|
114
|
-
reviewCardTitle: string;
|
|
115
|
-
reviewCardValue: string;
|
|
116
|
-
rankSuffix?: string;
|
|
117
|
-
timerAnimation: number;
|
|
118
|
-
};
|
|
119
|
-
export declare type CongratsProps = {
|
|
120
|
-
'aria-label': string;
|
|
121
|
-
'data-name': 'review-congrats';
|
|
122
|
-
animationLottie: LottieAnimationProps;
|
|
123
|
-
title: string;
|
|
124
|
-
cardCongratsStar: CongratsCardProps;
|
|
125
|
-
cardCongratsRank?: CongratsCardProps;
|
|
126
|
-
buttonRevising?: {
|
|
127
|
-
'aria-label': string;
|
|
128
|
-
label: string;
|
|
129
|
-
onClick: Function;
|
|
130
|
-
type: string;
|
|
131
|
-
};
|
|
132
|
-
buttonRevisingSkill?: {
|
|
133
|
-
label: string;
|
|
134
|
-
'aria-label': string;
|
|
135
|
-
onClick: Function;
|
|
136
|
-
type: string;
|
|
137
|
-
};
|
|
138
|
-
};
|
|
139
|
-
export declare const initialState: SlidesStack;
|
|
140
|
-
export declare const buildStepItems: (state: StoreState) => StepItem[];
|
|
141
|
-
export declare const mapStateToSlidesProps: (state: StoreState, dispatch: Dispatch, onQuitClick: Function) => SlidesViewProps;
|
|
142
|
-
export {};
|
package/lib/actions/index.d.ts
DELETED
package/lib/actions/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { AppOptions } from '../../types/common';
|
|
2
|
-
export declare const NAVIGATE_TO = "@@navigation/NAVIGATE_TO";
|
|
3
|
-
export declare const NAVIGATE_BACK = "@@navigation/NAVIGATE_BACK";
|
|
4
|
-
export declare const START_APP = "@@navigation/START_APP";
|
|
5
|
-
export declare type ViewPath = 'skills' | 'onboarding' | 'slides' | 'loader';
|
|
6
|
-
export declare type NavigateTo = {
|
|
7
|
-
type: '@@navigation/NAVIGATE_TO';
|
|
8
|
-
payload: ViewPath;
|
|
9
|
-
};
|
|
10
|
-
export declare type NavigateBack = {
|
|
11
|
-
type: '@@navigation/NAVIGATE_BACK';
|
|
12
|
-
};
|
|
13
|
-
export declare type StartApp = {
|
|
14
|
-
type: '@@navigation/START_APP';
|
|
15
|
-
payload: AppOptions;
|
|
16
|
-
};
|
|
17
|
-
export declare const navigateTo: (newPath: ViewPath) => NavigateTo;
|
|
18
|
-
export declare const navigateBack: () => NavigateBack;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export var NAVIGATE_TO = '@@navigation/NAVIGATE_TO';
|
|
2
|
-
export var NAVIGATE_BACK = '@@navigation/NAVIGATE_BACK';
|
|
3
|
-
export var START_APP = '@@navigation/START_APP';
|
|
4
|
-
export var navigateTo = function (newPath) { return ({
|
|
5
|
-
type: NAVIGATE_TO,
|
|
6
|
-
payload: newPath
|
|
7
|
-
}); };
|
|
8
|
-
export var navigateBack = function () { return ({
|
|
9
|
-
type: NAVIGATE_BACK
|
|
10
|
-
}); };
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import type { Dispatch } from 'redux';
|
|
2
|
-
import { type SlideIndexes } from '../../common';
|
|
3
|
-
import type { StoreState } from '../../reducers';
|
|
4
|
-
import type { AnswerUI } from '../../types/slides';
|
|
5
|
-
declare const ICON_VALUES: {
|
|
6
|
-
readonly right: "right";
|
|
7
|
-
readonly wrong: "wrong";
|
|
8
|
-
readonly 'no-answer': "no-answer";
|
|
9
|
-
};
|
|
10
|
-
declare type IconValue = keyof typeof ICON_VALUES;
|
|
11
|
-
declare type StepItem = {
|
|
12
|
-
current: boolean;
|
|
13
|
-
icon: IconValue;
|
|
14
|
-
value: string;
|
|
15
|
-
};
|
|
16
|
-
declare type SlideUIAnimations = 'unstack' | 'restack';
|
|
17
|
-
export declare type ReviewSlide = {
|
|
18
|
-
position: number;
|
|
19
|
-
loading: boolean;
|
|
20
|
-
showCorrectionPopin?: boolean;
|
|
21
|
-
animateCorrectionPopin?: boolean;
|
|
22
|
-
parentContentTitle?: string;
|
|
23
|
-
questionText?: string;
|
|
24
|
-
answerUI?: AnswerUI;
|
|
25
|
-
animationType?: SlideUIAnimations;
|
|
26
|
-
};
|
|
27
|
-
declare type SlidesStack = {
|
|
28
|
-
[key in SlideIndexes]: ReviewSlide;
|
|
29
|
-
};
|
|
30
|
-
declare type CorrectionPopinInformation = {
|
|
31
|
-
label: string;
|
|
32
|
-
message: string;
|
|
33
|
-
};
|
|
34
|
-
declare type CorrectionPopinKlf = {
|
|
35
|
-
label: string;
|
|
36
|
-
tooltip: string;
|
|
37
|
-
};
|
|
38
|
-
declare type CorrectionPopinNext = {
|
|
39
|
-
label: string;
|
|
40
|
-
ariaLabel: string;
|
|
41
|
-
onClick: Function;
|
|
42
|
-
};
|
|
43
|
-
declare type QuitPopinButton = {
|
|
44
|
-
label: string;
|
|
45
|
-
type: string;
|
|
46
|
-
customStyle?: {
|
|
47
|
-
color: string;
|
|
48
|
-
};
|
|
49
|
-
handleOnclick: Function;
|
|
50
|
-
ariaLabel: string;
|
|
51
|
-
};
|
|
52
|
-
export declare type CorrectionPopinProps = {
|
|
53
|
-
klf?: CorrectionPopinKlf;
|
|
54
|
-
information: CorrectionPopinInformation;
|
|
55
|
-
next: CorrectionPopinNext;
|
|
56
|
-
resultLabel: string;
|
|
57
|
-
type: 'right' | 'wrong';
|
|
58
|
-
};
|
|
59
|
-
export declare type QuitPopinProps = {
|
|
60
|
-
content: string;
|
|
61
|
-
icon: string;
|
|
62
|
-
mode: string;
|
|
63
|
-
descriptionText: string;
|
|
64
|
-
firstButton: QuitPopinButton;
|
|
65
|
-
secondButton: QuitPopinButton;
|
|
66
|
-
};
|
|
67
|
-
export declare type SlidesViewProps = {
|
|
68
|
-
header: {
|
|
69
|
-
mode: string;
|
|
70
|
-
skillName: string;
|
|
71
|
-
onQuitClick: Function;
|
|
72
|
-
'aria-label'?: string;
|
|
73
|
-
closeButtonAriaLabel: string;
|
|
74
|
-
steps: StepItem[];
|
|
75
|
-
};
|
|
76
|
-
stack: {
|
|
77
|
-
slides: SlidesStack;
|
|
78
|
-
validateButton: {
|
|
79
|
-
label: string;
|
|
80
|
-
disabled: boolean;
|
|
81
|
-
onClick: Function;
|
|
82
|
-
};
|
|
83
|
-
correctionPopinProps?: CorrectionPopinProps;
|
|
84
|
-
endReview: boolean;
|
|
85
|
-
};
|
|
86
|
-
reviewBackgroundAriaLabel?: string;
|
|
87
|
-
congrats?: CongratsProps;
|
|
88
|
-
quitPopin?: QuitPopinProps;
|
|
89
|
-
};
|
|
90
|
-
declare type LottieAnimationProps = {
|
|
91
|
-
'aria-label': string;
|
|
92
|
-
'data-name'?: string;
|
|
93
|
-
animationSrc: string;
|
|
94
|
-
loop?: boolean;
|
|
95
|
-
rendererSettings?: {
|
|
96
|
-
hideOnTransparent?: boolean;
|
|
97
|
-
className?: string;
|
|
98
|
-
};
|
|
99
|
-
height?: number;
|
|
100
|
-
width?: number;
|
|
101
|
-
className?: number;
|
|
102
|
-
ie11ImageBackup: string;
|
|
103
|
-
backupImageClassName?: string;
|
|
104
|
-
autoplay?: boolean;
|
|
105
|
-
animationControl?: 'play' | 'pause' | 'stop' | 'loading';
|
|
106
|
-
};
|
|
107
|
-
export declare type CongratsCardProps = {
|
|
108
|
-
'aria-label': string;
|
|
109
|
-
'data-name': string;
|
|
110
|
-
animationLottie: LottieAnimationProps;
|
|
111
|
-
iconAriaLabel: string;
|
|
112
|
-
className?: string;
|
|
113
|
-
cardType: string;
|
|
114
|
-
reviewCardTitle: string;
|
|
115
|
-
reviewCardValue: string;
|
|
116
|
-
rankSuffix?: string;
|
|
117
|
-
timerAnimation: number;
|
|
118
|
-
};
|
|
119
|
-
export declare type CongratsProps = {
|
|
120
|
-
'aria-label': string;
|
|
121
|
-
'data-name': 'review-congrats';
|
|
122
|
-
animationLottie: LottieAnimationProps;
|
|
123
|
-
title: string;
|
|
124
|
-
cardCongratsStar: CongratsCardProps;
|
|
125
|
-
cardCongratsRank?: CongratsCardProps;
|
|
126
|
-
buttonRevising?: {
|
|
127
|
-
'aria-label': string;
|
|
128
|
-
label: string;
|
|
129
|
-
onClick: Function;
|
|
130
|
-
type: string;
|
|
131
|
-
};
|
|
132
|
-
buttonRevisingSkill?: {
|
|
133
|
-
label: string;
|
|
134
|
-
'aria-label': string;
|
|
135
|
-
onClick: Function;
|
|
136
|
-
type: string;
|
|
137
|
-
};
|
|
138
|
-
};
|
|
139
|
-
export declare const initialState: SlidesStack;
|
|
140
|
-
export declare const buildStepItems: (state: StoreState) => StepItem[];
|
|
141
|
-
export declare const mapStateToSlidesProps: (state: StoreState, dispatch: Dispatch, onQuitClick: Function) => SlidesViewProps;
|
|
142
|
-
export {};
|
package/src/actions/index.ts
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|