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

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)
@@ -93,7 +93,10 @@ const buildStackSlides = (state, dispatch) => {
93
93
  loading: false,
94
94
  questionText,
95
95
  answerUI,
96
- parentContentTitle: `From "${parentContentTitle}" ${parentContentType}`,
96
+ parentContentTitle: translate('Content Parent Title', {
97
+ contentTitle: parentContentTitle,
98
+ contentType: parentContentType
99
+ }),
97
100
  animationType
98
101
  };
99
102
  return set(index, updatedUiSlide, acc);
@@ -320,7 +323,7 @@ export const mapStateToSlidesProps = (state, dispatch, options) => {
320
323
  hiddenSteps: showCongrats
321
324
  },
322
325
  stack: {
323
- slides: buildStackSlides(state, dispatch),
326
+ slides: buildStackSlides(state, dispatch, translate),
324
327
  validateButton: {
325
328
  label: translate('Validate'),
326
329
  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)
@@ -99,7 +99,10 @@ const buildStackSlides = (state, dispatch) => {
99
99
  loading: false,
100
100
  questionText,
101
101
  answerUI,
102
- parentContentTitle: `From "${parentContentTitle}" ${parentContentType}`,
102
+ parentContentTitle: translate('Content Parent Title', {
103
+ contentTitle: parentContentTitle,
104
+ contentType: parentContentType
105
+ }),
103
106
  animationType
104
107
  };
105
108
  return (0, set_1.default)(index, updatedUiSlide, acc);
@@ -327,7 +330,7 @@ const mapStateToSlidesProps = (state, dispatch, options) => {
327
330
  hiddenSteps: showCongrats
328
331
  },
329
332
  stack: {
330
- slides: buildStackSlides(state, dispatch),
333
+ slides: buildStackSlides(state, dispatch, translate),
331
334
  validateButton: {
332
335
  label: translate('Validate'),
333
336
  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.29+3dbf64aa4",
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": "3dbf64aa4b76ef3311e0d5f5181f31d102c40e0e"
75
75
  }