@coorpacademy/app-review 0.15.7-alpha.3 → 0.15.7

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.
@@ -1,7 +1,6 @@
1
1
  import { applyMiddleware, compose, createStore } from 'redux';
2
2
  import thunk from 'redux-thunk';
3
3
  import { getServices } from '@coorpacademy/review-services';
4
- import { identity } from 'lodash/fp';
5
4
  import rootReducer from './reducers';
6
5
  export default function configureStore(options) {
7
6
  const _compose = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__
@@ -13,10 +12,7 @@ export default function configureStore(options) {
13
12
  : compose;
14
13
  const thunkOptions = {
15
14
  services: options.services || getServices(),
16
- callbackOnViewChanged: options.callbackOnViewChanged,
17
- appendVideoOptions: options.appendVideoOptions || identity
18
- // this identity is temporary added to avoir errors on mobile application,
19
- // while the function to compute the props is made
15
+ callbackOnViewChanged: options.callbackOnViewChanged
20
16
  };
21
17
  const thunkMiddleware = thunk.withExtraArgument(thunkOptions);
22
18
  const enhancer = _compose(applyMiddleware(thunkMiddleware));
@@ -1,4 +1,4 @@
1
- import type { Services, VideoMedia, VideoPropsForPlayer } from '@coorpacademy/review-services';
1
+ import type { Services } from '@coorpacademy/review-services';
2
2
  export declare type WithRequired<T, K extends keyof T> = T & {
3
3
  [P in K]-?: T[P];
4
4
  };
@@ -21,12 +21,10 @@ export declare type AppOptions = ConnectedOptions & {
21
21
  skillRef?: string;
22
22
  services?: Services;
23
23
  callbackOnViewChanged?: (viewName: ViewName) => void;
24
- appendVideoOptions?: (media: VideoMedia) => Promise<VideoPropsForPlayer>;
25
24
  };
26
25
  export declare type ThunkOptions = {
27
26
  callbackOnViewChanged?: AppOptions['callbackOnViewChanged'];
28
27
  services: Services;
29
- appendVideoOptions: (media: VideoMedia) => Promise<VideoPropsForPlayer>;
30
28
  };
31
29
  export declare type Options = {
32
30
  services: Services;
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const redux_1 = require("redux");
7
7
  const redux_thunk_1 = __importDefault(require("redux-thunk"));
8
8
  const review_services_1 = require("@coorpacademy/review-services");
9
- const fp_1 = require("lodash/fp");
10
9
  const reducers_1 = __importDefault(require("./reducers"));
11
10
  function configureStore(options) {
12
11
  const _compose = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__
@@ -18,10 +17,7 @@ function configureStore(options) {
18
17
  : redux_1.compose;
19
18
  const thunkOptions = {
20
19
  services: options.services || (0, review_services_1.getServices)(),
21
- callbackOnViewChanged: options.callbackOnViewChanged,
22
- appendVideoOptions: options.appendVideoOptions || fp_1.identity
23
- // this identity is temporary added to avoir errors on mobile application,
24
- // while the function to compute the props is made
20
+ callbackOnViewChanged: options.callbackOnViewChanged
25
21
  };
26
22
  const thunkMiddleware = redux_thunk_1.default.withExtraArgument(thunkOptions);
27
23
  const enhancer = _compose((0, redux_1.applyMiddleware)(thunkMiddleware));
@@ -1,4 +1,4 @@
1
- import type { Services, VideoMedia, VideoPropsForPlayer } from '@coorpacademy/review-services';
1
+ import type { Services } from '@coorpacademy/review-services';
2
2
  export declare type WithRequired<T, K extends keyof T> = T & {
3
3
  [P in K]-?: T[P];
4
4
  };
@@ -21,12 +21,10 @@ export declare type AppOptions = ConnectedOptions & {
21
21
  skillRef?: string;
22
22
  services?: Services;
23
23
  callbackOnViewChanged?: (viewName: ViewName) => void;
24
- appendVideoOptions?: (media: VideoMedia) => Promise<VideoPropsForPlayer>;
25
24
  };
26
25
  export declare type ThunkOptions = {
27
26
  callbackOnViewChanged?: AppOptions['callbackOnViewChanged'];
28
27
  services: Services;
29
- appendVideoOptions: (media: VideoMedia) => Promise<VideoPropsForPlayer>;
30
28
  };
31
29
  export declare type Options = {
32
30
  services: Services;
@@ -0,0 +1 @@
1
+ {"ignore_dirs":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coorpacademy/app-review",
3
- "version": "0.15.7-alpha.3+5df239188",
3
+ "version": "0.15.7",
4
4
  "description": "",
5
5
  "engines": {
6
6
  "node": ">=16.15.0"
@@ -35,7 +35,7 @@
35
35
  "main": "lib/index.js",
36
36
  "module": "es/index.js",
37
37
  "dependencies": {
38
- "@coorpacademy/components": "11.5.2",
38
+ "@coorpacademy/components": "11.5.3",
39
39
  "@coorpacademy/progression-engine": "11.5.3",
40
40
  "@coorpacademy/redux-task": "1.1.6",
41
41
  "@coorpacademy/review-services": "1.3.0",
@@ -74,5 +74,5 @@
74
74
  "webpack-cli": "^4.10.0",
75
75
  "webpack-dev-server": "^4.11.1"
76
76
  },
77
- "gitHead": "5df2391882705926e8317b2036c3b5c7bb28a9a6"
77
+ "gitHead": "478c010d5560460f45d060463c4525620e3a9cf1"
78
78
  }