@coorpacademy/app-review 0.4.4 → 0.4.5

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.
@@ -68,7 +68,7 @@ export declare type SlidesViewProps = {
68
68
  endReview: boolean;
69
69
  };
70
70
  reviewBackgroundAriaLabel?: string;
71
- congratsProps?: {
71
+ congrats?: {
72
72
  'aria-label'?: string;
73
73
  'data-name'?: string;
74
74
  animationLottie: unknown;
@@ -202,6 +202,6 @@ export const mapStateToSlidesProps = (state, dispatch, onQuitClick) => {
202
202
  correctionPopinProps: correction && getCorrectionPopinProps(dispatch)(isCorrect, correction.correctAnswer, klf),
203
203
  endReview: false
204
204
  },
205
- congratsProps: undefined
205
+ congrats: undefined
206
206
  };
207
207
  };
@@ -68,7 +68,7 @@ export declare type SlidesViewProps = {
68
68
  endReview: boolean;
69
69
  };
70
70
  reviewBackgroundAriaLabel?: string;
71
- congratsProps?: {
71
+ congrats?: {
72
72
  'aria-label'?: string;
73
73
  'data-name'?: string;
74
74
  animationLottie: unknown;
@@ -199,6 +199,6 @@ export var mapStateToSlidesProps = function (state, dispatch, onQuitClick) {
199
199
  correctionPopinProps: correction && getCorrectionPopinProps(dispatch)(isCorrect, correction.correctAnswer, klf),
200
200
  endReview: false
201
201
  },
202
- congratsProps: undefined
202
+ congrats: undefined
203
203
  };
204
204
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coorpacademy/app-review",
3
- "version": "0.4.4",
3
+ "version": "0.4.5",
4
4
  "description": "",
5
5
  "engines": {
6
6
  "node": ">=16.15.0"
@@ -21,9 +21,10 @@
21
21
  "typecheck": "tsc --noEmit",
22
22
  "ava": "ava",
23
23
  "test:unit": "nyc npm run ava",
24
- "lint": "eslint '**/*' --cache --ext .js --ext .jsx --ext .ts --ext .tsx --ext .json",
25
- "lint:fix": "npm run lint -- --fix",
26
- "test": "npm run lint && npm run typecheck && npm run test:unit"
24
+ "eslint": "eslint '**/*' --cache --ext .js --ext .jsx --ext .ts --ext .tsx --ext .json",
25
+ "lint": "npm run eslint && npm run typecheck",
26
+ "lint:fix": "npm run eslint -- --fix",
27
+ "test": "npm run lint && npm run test:unit"
27
28
  },
28
29
  "author": "CoorpAcademy",
29
30
  "files": [
@@ -42,7 +43,7 @@
42
43
  "./package.json": "./package.json"
43
44
  },
44
45
  "dependencies": {
45
- "@coorpacademy/components": "10.23.6",
46
+ "@coorpacademy/components": "10.23.7",
46
47
  "@coorpacademy/redux-task": "^1.1.5",
47
48
  "cross-fetch": "^3.1.5",
48
49
  "jwt-decode": "^3.1.2",
@@ -77,5 +78,5 @@
77
78
  "webpack-cli": "^3.3.11",
78
79
  "webpack-dev-server": "^3.11.0"
79
80
  },
80
- "gitHead": "43e248bd7fdbfbd54f28a96cd4568044f441a343"
81
+ "gitHead": "0a46c83d80845f4c08a35cc278b7a11ccb4d8d0e"
81
82
  }
@@ -93,7 +93,7 @@ export type SlidesViewProps = {
93
93
  endReview: boolean;
94
94
  };
95
95
  reviewBackgroundAriaLabel?: string;
96
- congratsProps?: {
96
+ congrats?: {
97
97
  'aria-label'?: string;
98
98
  'data-name'?: string;
99
99
  animationLottie: unknown;
@@ -336,6 +336,6 @@ export const mapStateToSlidesProps = (
336
336
  correction && getCorrectionPopinProps(dispatch)(isCorrect, correction.correctAnswer, klf),
337
337
  endReview: false
338
338
  },
339
- congratsProps: undefined
339
+ congrats: undefined
340
340
  };
341
341
  };
@@ -45,7 +45,7 @@ test('should create initial props when fetched slide is not still received', t =
45
45
  };
46
46
 
47
47
  const props = mapStateToSlidesProps(state, identity, identity);
48
- t.is(props.congratsProps, undefined);
48
+ t.is(props.congrats, undefined);
49
49
  t.deepEqual(omit(['onQuitClick'], props.header), {
50
50
  'aria-label': 'aria-header-wrapper',
51
51
  closeButtonAriaLabel: 'aria-close-button',
@@ -140,7 +140,7 @@ test('should create props when first slide is on the state', t => {
140
140
  };
141
141
 
142
142
  const props = mapStateToSlidesProps(state, identity, identity);
143
- t.is(props.congratsProps, undefined);
143
+ t.is(props.congrats, undefined);
144
144
  t.deepEqual(omit(['onQuitClick'], props.header), {
145
145
  'aria-label': 'aria-header-wrapper',
146
146
  closeButtonAriaLabel: 'aria-close-button',
@@ -250,7 +250,7 @@ test('should create props when slide is on the state and user has selected answe
250
250
  };
251
251
 
252
252
  const props = mapStateToSlidesProps(state, identity, identity);
253
- t.is(props.congratsProps, undefined);
253
+ t.is(props.congrats, undefined);
254
254
  t.deepEqual(omit(['onQuitClick'], props.header), {
255
255
  'aria-label': 'aria-header-wrapper',
256
256
  closeButtonAriaLabel: 'aria-close-button',
@@ -366,7 +366,7 @@ test('should verify props when first slide was answered correctly and next slide
366
366
  };
367
367
 
368
368
  const props = mapStateToSlidesProps(state, identity, identity);
369
- t.is(props.congratsProps, undefined);
369
+ t.is(props.congrats, undefined);
370
370
  t.deepEqual(omit(['onQuitClick'], props.header), {
371
371
  'aria-label': 'aria-header-wrapper',
372
372
  closeButtonAriaLabel: 'aria-close-button',
@@ -486,7 +486,7 @@ test('should verify props when first slide was answered with error and next slid
486
486
  };
487
487
 
488
488
  const props = mapStateToSlidesProps(state, identity, identity);
489
- t.is(props.congratsProps, undefined);
489
+ t.is(props.congrats, undefined);
490
490
  t.deepEqual(omit(['onQuitClick'], props.header), {
491
491
  'aria-label': 'aria-header-wrapper',
492
492
  closeButtonAriaLabel: 'aria-close-button',
@@ -558,7 +558,7 @@ test('should verify props when first slide was answered, next slide is fetched &
558
558
  };
559
559
 
560
560
  const props = mapStateToSlidesProps(state, identity, identity);
561
- t.is(props.congratsProps, undefined);
561
+ t.is(props.congrats, undefined);
562
562
  t.deepEqual(omit(['onQuitClick'], props.header), {
563
563
  'aria-label': 'aria-header-wrapper',
564
564
  closeButtonAriaLabel: 'aria-close-button',
@@ -692,7 +692,7 @@ test('should verify props when first slide was answered incorrectly, next slide
692
692
  };
693
693
 
694
694
  const props = mapStateToSlidesProps(state, identity, identity);
695
- t.is(props.congratsProps, undefined);
695
+ t.is(props.congrats, undefined);
696
696
  t.deepEqual(omit(['onQuitClick'], props.header), {
697
697
  'aria-label': 'aria-header-wrapper',
698
698
  closeButtonAriaLabel: 'aria-close-button',
@@ -833,7 +833,7 @@ test('should verify props when currentSlideRef has changed to nextContent of pro
833
833
  };
834
834
 
835
835
  const props = mapStateToSlidesProps(state, identity, identity);
836
- t.is(props.congratsProps, undefined);
836
+ t.is(props.congrats, undefined);
837
837
  t.deepEqual(omit(['onQuitClick'], props.header), {
838
838
  'aria-label': 'aria-header-wrapper',
839
839
  closeButtonAriaLabel: 'aria-close-button',
@@ -939,7 +939,7 @@ test('should verify props when progression is in success', t => {
939
939
  };
940
940
 
941
941
  const props = mapStateToSlidesProps(state, identity, identity);
942
- t.is(props.congratsProps, undefined);
942
+ t.is(props.congrats, undefined);
943
943
  t.deepEqual(omit(['onQuitClick'], props.header), {
944
944
  'aria-label': 'aria-header-wrapper',
945
945
  closeButtonAriaLabel: 'aria-close-button',