@coorpacademy/app-review 0.2.3 → 0.2.4

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/index.js CHANGED
@@ -1,7 +1,6 @@
1
1
  import React, { useEffect, useState } from 'react';
2
2
  import { useSelector, useDispatch, Provider } from 'react-redux';
3
3
  import AppReviewTemplate from '@coorpacademy/components/es/template/app-review';
4
- import { TemplateContext } from '@coorpacademy/components/es/template/app-review/template-context';
5
4
  import isEmpty from 'lodash/fp/isEmpty';
6
5
  import get from 'lodash/fp/get';
7
6
  import configureStore from './configure-store';
@@ -66,9 +65,7 @@ const AppReview = ({ options }) => {
66
65
  }, [isProgressionCreated, options, store]);
67
66
  if (!store)
68
67
  return null;
69
- const { templateContext: values } = options;
70
68
  return (React.createElement(Provider, { store: store },
71
- React.createElement(TemplateContext, { values: values },
72
- React.createElement(ConnectedApp, null))));
69
+ React.createElement(ConnectedApp, null)));
73
70
  };
74
71
  export default AppReview;
@@ -1,4 +1,5 @@
1
1
  import get from 'lodash/fp/get';
2
+ import { qcmDragSlide } from '../../views/slides/test/fixtures/qcm-drag';
2
3
  import { qcmSlide } from '../../views/slides/test/fixtures/qcm';
3
4
  import { qcmGraphicSlide } from '../../views/slides/test/fixtures/qcm-graphic';
4
5
  import { freeTextSlide } from '../../views/slides/test/fixtures/free-text';
@@ -21,6 +22,8 @@ const getSlideFixture = (ref) => {
21
22
  return freeTextSlide;
22
23
  case templateSlide.universalRef:
23
24
  return templateSlide;
25
+ case qcmDragSlide.universalRef:
26
+ return qcmDragSlide;
24
27
  default:
25
28
  return sliderSlide;
26
29
  }
package/lib/index.js CHANGED
@@ -12,7 +12,6 @@ var __assign = (this && this.__assign) || function () {
12
12
  import React, { useEffect, useState } from 'react';
13
13
  import { useSelector, useDispatch, Provider } from 'react-redux';
14
14
  import AppReviewTemplate from '@coorpacademy/components/es/template/app-review';
15
- import { TemplateContext } from '@coorpacademy/components/es/template/app-review/template-context';
16
15
  import isEmpty from 'lodash/fp/isEmpty';
17
16
  import get from 'lodash/fp/get';
18
17
  import configureStore from './configure-store';
@@ -78,9 +77,7 @@ var AppReview = function (_a) {
78
77
  }, [isProgressionCreated, options, store]);
79
78
  if (!store)
80
79
  return null;
81
- var values = options.templateContext;
82
80
  return (React.createElement(Provider, { store: store },
83
- React.createElement(TemplateContext, { values: values },
84
- React.createElement(ConnectedApp, null))));
81
+ React.createElement(ConnectedApp, null)));
85
82
  };
86
83
  export default AppReview;
@@ -11,6 +11,7 @@ var __assign = (this && this.__assign) || function () {
11
11
  };
12
12
  var _a;
13
13
  import get from 'lodash/fp/get';
14
+ import { qcmDragSlide } from '../../views/slides/test/fixtures/qcm-drag';
14
15
  import { qcmSlide } from '../../views/slides/test/fixtures/qcm';
15
16
  import { qcmGraphicSlide } from '../../views/slides/test/fixtures/qcm-graphic';
16
17
  import { freeTextSlide } from '../../views/slides/test/fixtures/free-text';
@@ -33,6 +34,8 @@ var getSlideFixture = function (ref) {
33
34
  return freeTextSlide;
34
35
  case templateSlide.universalRef:
35
36
  return templateSlide;
37
+ case qcmDragSlide.universalRef:
38
+ return qcmDragSlide;
36
39
  default:
37
40
  return sliderSlide;
38
41
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coorpacademy/app-review",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "",
5
5
  "engines": {
6
6
  "node": ">=16.15.0"
@@ -41,7 +41,7 @@
41
41
  "./package.json": "./package.json"
42
42
  },
43
43
  "dependencies": {
44
- "@coorpacademy/components": "10.22.18",
44
+ "@coorpacademy/components": "10.22.19",
45
45
  "@coorpacademy/redux-task": "^1.1.5",
46
46
  "cross-fetch": "^3.1.5",
47
47
  "jwt-decode": "^3.1.2",
@@ -78,5 +78,5 @@
78
78
  "ts-node": "^10.9.1",
79
79
  "typescript": "^4.7.4"
80
80
  },
81
- "gitHead": "ffc4cc9e97985294bff9a1d363fc3951dce66c21"
81
+ "gitHead": "0a46b77df8a358538d52121666f2dc3a8f1e22c5"
82
82
  }
package/src/index.tsx CHANGED
@@ -3,7 +3,6 @@ import type {} from 'redux-thunk/extend-redux'; // https://github.com/reduxjs/re
3
3
  import {AnyAction, Store} from 'redux';
4
4
  import {useSelector, useDispatch, Provider} from 'react-redux';
5
5
  import AppReviewTemplate from '@coorpacademy/components/es/template/app-review';
6
- import {TemplateContext} from '@coorpacademy/components/es/template/app-review/template-context';
7
6
 
8
7
  import isEmpty from 'lodash/fp/isEmpty';
9
8
  import get from 'lodash/fp/get';
@@ -87,13 +86,9 @@ const AppReview = ({options}: {options: AppOptions}): JSX.Element | null => {
87
86
 
88
87
  if (!store) return null;
89
88
 
90
- const {templateContext: values} = options;
91
-
92
89
  return (
93
90
  <Provider store={store}>
94
- <TemplateContext values={values}>
95
- <ConnectedApp />
96
- </TemplateContext>
91
+ <ConnectedApp />
97
92
  </Provider>
98
93
  );
99
94
  };
@@ -1,4 +1,5 @@
1
1
  import get from 'lodash/fp/get';
2
+ import {qcmDragSlide} from '../../views/slides/test/fixtures/qcm-drag';
2
3
  import {qcmSlide} from '../../views/slides/test/fixtures/qcm';
3
4
  import {qcmGraphicSlide} from '../../views/slides/test/fixtures/qcm-graphic';
4
5
  import {freeTextSlide} from '../../views/slides/test/fixtures/free-text';
@@ -32,6 +33,8 @@ const getSlideFixture = (ref: string): SlideFromAPI => {
32
33
  return freeTextSlide;
33
34
  case templateSlide.universalRef:
34
35
  return templateSlide;
36
+ case qcmDragSlide.universalRef:
37
+ return qcmDragSlide;
35
38
  default:
36
39
  return sliderSlide;
37
40
  }