@coorpacademy/app-review 0.7.6-alpha.26 → 0.7.6-alpha.28

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.
@@ -60,7 +60,7 @@ const getCurrentSlideRef = (state) => {
60
60
  const content = progression.state.content;
61
61
  return content.ref;
62
62
  };
63
- const buildStackSlides = (state, dispatch) => {
63
+ const buildStackSlides = (state, dispatch, translate) => {
64
64
  const currentSlideRef = getCurrentSlideRef(state);
65
65
  const progression = state.data.progression;
66
66
  if (!currentSlideRef || !progression)
@@ -79,7 +79,7 @@ const buildStackSlides = (state, dispatch) => {
79
79
  return set(index, { ...uiSlide, position }, acc);
80
80
  const answers = getOr([], ['ui', 'answers', slideRef], state);
81
81
  const { questionText, answerUI } = mapApiSlideToUi(dispatch)(slideFromAPI, answers);
82
- const { title: parentContentTitle, type: parentContentType } = slideFromAPI.parentContentTitle;
82
+ // const {title: parentContentTitle, type: parentContentType} = slideFromAPI.parentContentTitle;
83
83
  const isCurrentSlideRef = currentSlideRef === slideRef;
84
84
  const slideUI = get(['ui', 'slide', slideRef], state);
85
85
  const animateCorrectionPopin = isCurrentSlideRef && slideUI.animateCorrectionPopin;
@@ -93,7 +93,8 @@ const buildStackSlides = (state, dispatch) => {
93
93
  loading: false,
94
94
  questionText,
95
95
  answerUI,
96
- parentContentTitle: `From "${parentContentTitle}" ${parentContentType}`,
96
+ // parentContentTitle: `From "${parentContentTitle}" ${parentContentType}`,
97
+ parentContentTitle: translate('Content Parent Title'),
97
98
  animationType
98
99
  };
99
100
  return set(index, updatedUiSlide, acc);
@@ -320,7 +321,7 @@ export const mapStateToSlidesProps = (state, dispatch, options) => {
320
321
  hiddenSteps: showCongrats
321
322
  },
322
323
  stack: {
323
- slides: buildStackSlides(state, dispatch),
324
+ slides: buildStackSlides(state, dispatch, translate),
324
325
  validateButton: {
325
326
  label: translate('Validate'),
326
327
  disabled: !get(['ui', 'slide', currentSlideRef, 'validateButton'], state),
@@ -66,7 +66,7 @@ const getCurrentSlideRef = (state) => {
66
66
  const content = progression.state.content;
67
67
  return content.ref;
68
68
  };
69
- const buildStackSlides = (state, dispatch) => {
69
+ const buildStackSlides = (state, dispatch, translate) => {
70
70
  const currentSlideRef = getCurrentSlideRef(state);
71
71
  const progression = state.data.progression;
72
72
  if (!currentSlideRef || !progression)
@@ -85,7 +85,7 @@ const buildStackSlides = (state, dispatch) => {
85
85
  return (0, set_1.default)(index, { ...uiSlide, position }, acc);
86
86
  const answers = (0, getOr_1.default)([], ['ui', 'answers', slideRef], state);
87
87
  const { questionText, answerUI } = (0, map_api_slide_to_ui_1.mapApiSlideToUi)(dispatch)(slideFromAPI, answers);
88
- const { title: parentContentTitle, type: parentContentType } = slideFromAPI.parentContentTitle;
88
+ // const {title: parentContentTitle, type: parentContentType} = slideFromAPI.parentContentTitle;
89
89
  const isCurrentSlideRef = currentSlideRef === slideRef;
90
90
  const slideUI = (0, get_1.default)(['ui', 'slide', slideRef], state);
91
91
  const animateCorrectionPopin = isCurrentSlideRef && slideUI.animateCorrectionPopin;
@@ -99,7 +99,8 @@ const buildStackSlides = (state, dispatch) => {
99
99
  loading: false,
100
100
  questionText,
101
101
  answerUI,
102
- parentContentTitle: `From "${parentContentTitle}" ${parentContentType}`,
102
+ // parentContentTitle: `From "${parentContentTitle}" ${parentContentType}`,
103
+ parentContentTitle: translate('Content Parent Title'),
103
104
  animationType
104
105
  };
105
106
  return (0, set_1.default)(index, updatedUiSlide, acc);
@@ -327,7 +328,7 @@ const mapStateToSlidesProps = (state, dispatch, options) => {
327
328
  hiddenSteps: showCongrats
328
329
  },
329
330
  stack: {
330
- slides: buildStackSlides(state, dispatch),
331
+ slides: buildStackSlides(state, dispatch, translate),
331
332
  validateButton: {
332
333
  label: translate('Validate'),
333
334
  disabled: !(0, get_1.default)(['ui', 'slide', currentSlideRef, 'validateButton'], state),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coorpacademy/app-review",
3
- "version": "0.7.6-alpha.26+4709f4e75",
3
+ "version": "0.7.6-alpha.28+dfc3f3468",
4
4
  "description": "",
5
5
  "engines": {
6
6
  "node": ">=16.15.0"
@@ -71,5 +71,5 @@
71
71
  "webpack-cli": "^4.10.0",
72
72
  "webpack-dev-server": "^4.11.1"
73
73
  },
74
- "gitHead": "4709f4e75d13150f87add8b363314a8058e3ddb5"
74
+ "gitHead": "dfc3f3468a563a69e4055c0a05a4e3c2b411e0ac"
75
75
  }