@gamelearn/arcade-components 2.16.0 → 2.17.2
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/dist/components/auto-evaluation-component/components/AutoEvaluation.js +35 -16
- package/dist/components/auto-evaluation-component/components/EndScreen.js +10 -4
- package/dist/components/auto-evaluation-component/components/StartScreen.js +14 -5
- package/dist/components/cards-selector-puzzle-component/components/Card/index.js +3 -0
- package/dist/components/decision-component/components/Options.js +11 -3
- package/dist/components/frame-click-puzzle-component/components/FrameClickPuzzleComponent.js +3 -0
- package/dist/components/hacker-puzzle-component/components/HackerPuzzleComponent.js +3 -2
- package/dist/components/hanged-puzzle-component/components/HangedPuzzleComponent.js +6 -0
- package/dist/components/inventory-item/components/InventoryItem.js +4 -0
- package/dist/components/keyboard-puzzle-component/components/KeyboardPuzzleComponent.js +3 -0
- package/dist/components/lectures-component/components/LecturesComponent.js +26 -2
- package/dist/components/media-visor/components/MediaVisor.js +8 -2
- package/dist/components/referral-component/components/EmailPill.js +3 -1
- package/dist/components/referral-component/components/StepOne.js +4 -0
- package/dist/components/rewards-component/components/RewardsComponent.js +8 -0
- package/dist/components/survey-component/components/ApplicableBox.js +3 -0
- package/dist/components/survey-component/components/OpinionBox.js +10 -5
- package/dist/components/terminal-puzzle-component/components/FilesGroup/Item.js +4 -0
- package/dist/components/terminal-puzzle-component/components/FilesGroup/index.js +8 -0
- package/dist/components/test-component/components/Questions.js +3 -0
- package/dist/components/url-component/components/UrlComponent.js +4 -0
- package/dist/components/video-visor/components/VideoControllers/ControlButtons.js +4 -0
- package/dist/components/video-visor/components/VideoControllers/FinishedVideoButtons.js +4 -0
- package/dist/components/video-visor/components/VideoControllers/PlayInitButton.js +4 -0
- package/dist/components/video-visor/components/VideoControllers/SkipButton.js +4 -0
- package/dist/components/video-visor/components/VideoVisor.js +7 -1
- package/dist/components/web-builder-puzzle-component/Popups/PopupImageComponent/index.js +4 -1
- package/dist/components/web-builder-puzzle-component/Popups/PopupTextComponent/index.js +8 -1
- package/dist/components/web-builder-puzzle-component/components/EditButton/index.js +4 -0
- package/dist/components/web-builder-puzzle-component/components/PublishButton/index.js +4 -0
- package/package.json +1 -1
|
@@ -48,7 +48,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
48
48
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
49
49
|
|
|
50
50
|
var AutoEvaluation = function AutoEvaluation(_ref) {
|
|
51
|
-
var _questions$currentQue, _surveyData$current$q3
|
|
51
|
+
var _questions$currentQue, _surveyData$current$q3;
|
|
52
52
|
|
|
53
53
|
var description = _ref.description,
|
|
54
54
|
questions = _ref.questions,
|
|
@@ -157,10 +157,12 @@ var AutoEvaluation = function AutoEvaluation(_ref) {
|
|
|
157
157
|
};
|
|
158
158
|
|
|
159
159
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
160
|
-
className: "test--container__overlay"
|
|
160
|
+
className: "test--container__overlay",
|
|
161
|
+
"aria-label": "test container overlay"
|
|
161
162
|
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
162
163
|
className: "test--container",
|
|
163
|
-
dir: "auto"
|
|
164
|
+
dir: "auto",
|
|
165
|
+
"aria-label": "test container"
|
|
164
166
|
}, phase === 'start' && /*#__PURE__*/_react.default.createElement(_StartScreen.default, {
|
|
165
167
|
description: description,
|
|
166
168
|
onNext: function onNext() {
|
|
@@ -169,24 +171,34 @@ var AutoEvaluation = function AutoEvaluation(_ref) {
|
|
|
169
171
|
},
|
|
170
172
|
translate: translate
|
|
171
173
|
}), phase === 'questions' && /*#__PURE__*/_react.default.createElement("div", {
|
|
172
|
-
className: "survey--questions"
|
|
174
|
+
className: "survey--questions",
|
|
175
|
+
"aria-label": "survey questions"
|
|
173
176
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
174
|
-
className: "survey--questions__container"
|
|
177
|
+
className: "survey--questions__container",
|
|
178
|
+
"aria-label": "survey questions container"
|
|
175
179
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
176
|
-
className: "survey--questions__count"
|
|
180
|
+
className: "survey--questions__count",
|
|
181
|
+
"aria-label": "survey questions count"
|
|
177
182
|
}, /*#__PURE__*/_react.default.createElement("span", null, translate('auto-evaluation.question'), "\xA0", currentQuestion + 1, " ", translate('storylines.misc.of'), " ", questions.length), /*#__PURE__*/_react.default.createElement("span", null, translate('auto-evaluation.allQuestionsMandatory'))), /*#__PURE__*/_react.default.createElement("div", {
|
|
178
183
|
key: "".concat(questions[currentQuestion])
|
|
179
184
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
180
|
-
className: "survey--questions__item"
|
|
185
|
+
className: "survey--questions__item",
|
|
186
|
+
"aria-label": "survey questions item"
|
|
181
187
|
}, (_questions$currentQue = questions[currentQuestion]) === null || _questions$currentQue === void 0 ? void 0 : _questions$currentQue.text), /*#__PURE__*/_react.default.createElement("div", {
|
|
182
|
-
className: "survey--page__item"
|
|
183
|
-
|
|
184
|
-
|
|
188
|
+
className: "survey--page__item",
|
|
189
|
+
"aria-label": "survey page item"
|
|
190
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
191
|
+
className: "survey--points",
|
|
192
|
+
"aria-label": "survey points"
|
|
185
193
|
}, Array(11).fill(0).map(function (_, i) {
|
|
186
194
|
var _surveyData$current$q2;
|
|
187
195
|
|
|
188
|
-
return /*#__PURE__*/_react.default.createElement("
|
|
196
|
+
return /*#__PURE__*/_react.default.createElement("span", {
|
|
189
197
|
key: "".concat(0 + i),
|
|
198
|
+
"aria-label": "".concat(i, " points btn"),
|
|
199
|
+
role: "button",
|
|
200
|
+
tabIndex: 0,
|
|
201
|
+
onKeyUp: function onKeyUp() {},
|
|
190
202
|
onTouchStart: function onTouchStart() {
|
|
191
203
|
setPointIsBeingTouched(i);
|
|
192
204
|
},
|
|
@@ -199,32 +211,39 @@ var AutoEvaluation = function AutoEvaluation(_ref) {
|
|
|
199
211
|
className: "survey--points__item ".concat(((_surveyData$current$q2 = surveyData.current.questions[currentQuestion]) === null || _surveyData$current$q2 === void 0 ? void 0 : _surveyData$current$q2.answer) === i || pointIsBeingTouched === i ? 'selected' : '')
|
|
200
212
|
}, i);
|
|
201
213
|
}))))), /*#__PURE__*/_react.default.createElement("div", {
|
|
202
|
-
className: "test--buttons next"
|
|
214
|
+
className: "test--buttons next",
|
|
215
|
+
"aria-label": "test buttons"
|
|
203
216
|
}, /*#__PURE__*/_react.default.createElement("button", {
|
|
204
217
|
type: "button",
|
|
205
218
|
disabled: currentQuestion === 0,
|
|
206
219
|
onClick: function onClick() {
|
|
207
220
|
return handleNextQuestion(null, true);
|
|
208
221
|
},
|
|
222
|
+
"aria-label": "next question button",
|
|
209
223
|
className: "gat--btn__navigation ".concat(currentQuestion === 0 ? 'disabled' : '')
|
|
210
224
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
211
|
-
className: (0, _LangIsRtl.default)() ? 'icon-next' : 'icon-back'
|
|
225
|
+
className: (0, _LangIsRtl.default)() ? 'icon-next' : 'icon-back',
|
|
226
|
+
"aria-label": "icon button"
|
|
212
227
|
})), finish ? /*#__PURE__*/_react.default.createElement("button", {
|
|
213
228
|
type: "button",
|
|
214
229
|
onClick: function onClick() {
|
|
215
230
|
setPhase('end');
|
|
216
231
|
play('click-ui');
|
|
217
232
|
},
|
|
218
|
-
|
|
233
|
+
"aria-label": "finish button",
|
|
234
|
+
className: "gat--btn gat--btn__primary auto-evaluation__button not-transition "
|
|
219
235
|
}, /*#__PURE__*/_react.default.createElement("span", null, translate('auto-evaluation.end'))) : /*#__PURE__*/_react.default.createElement("button", {
|
|
220
236
|
type: "button",
|
|
221
237
|
onClick: function onClick() {
|
|
222
238
|
return handleNextQuestion(null, false);
|
|
223
239
|
},
|
|
224
240
|
disabled: ((_surveyData$current$q3 = surveyData.current.questions[currentQuestion]) === null || _surveyData$current$q3 === void 0 ? void 0 : _surveyData$current$q3.answer) === undefined,
|
|
225
|
-
|
|
241
|
+
"aria-label": "navigation button",
|
|
242
|
+
className: "gat--btn__navigation $\n {\n surveyData.current.questions[currentQuestion]?.answer === undefined ? 'disabled' : ''\n }"
|
|
226
243
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
227
|
-
className: (0, _LangIsRtl.default)() ? 'icon-back' : 'icon-next'
|
|
244
|
+
className: (0, _LangIsRtl.default)() ? 'icon-back' : 'icon-next',
|
|
245
|
+
"aria-label": "navigation icon",
|
|
246
|
+
role: "img"
|
|
228
247
|
})))), phase === 'end' && /*#__PURE__*/_react.default.createElement(_EndScreen.default, {
|
|
229
248
|
onFinish: close,
|
|
230
249
|
translate: translate
|
|
@@ -31,13 +31,19 @@ var EndScreen = function EndScreen(_ref) {
|
|
|
31
31
|
};
|
|
32
32
|
}, [onFinish]);
|
|
33
33
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
34
|
-
className: "auto-evaluation__endscreen"
|
|
34
|
+
className: "auto-evaluation__endscreen",
|
|
35
|
+
"aria-label": "auto evaluation endscreen"
|
|
35
36
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
36
|
-
className: "auto-evaluation__finishband"
|
|
37
|
+
className: "auto-evaluation__finishband",
|
|
38
|
+
"aria-label": "auto evaluation finishband"
|
|
37
39
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
38
|
-
className: "icon-check-laptop auto-evaluation__iconendscreen"
|
|
40
|
+
className: "icon-check-laptop auto-evaluation__iconendscreen",
|
|
41
|
+
"aria-label": "icon-check",
|
|
42
|
+
role: "img"
|
|
39
43
|
}), /*#__PURE__*/_react.default.createElement("span", {
|
|
40
|
-
className: "auto-evaluation__thanks"
|
|
44
|
+
className: "auto-evaluation__thanks",
|
|
45
|
+
"aria-label": "auto evaluation thanks",
|
|
46
|
+
role: "contentinfo"
|
|
41
47
|
}, translate('auto-evaluation.thanks'))));
|
|
42
48
|
};
|
|
43
49
|
|
|
@@ -14,16 +14,25 @@ var StartScreen = function StartScreen(_ref) {
|
|
|
14
14
|
description = _ref.description,
|
|
15
15
|
translate = _ref.translate;
|
|
16
16
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
17
|
-
className: "auto-evaluation__startscreen"
|
|
17
|
+
className: "auto-evaluation__startscreen",
|
|
18
|
+
role: "alertdialog",
|
|
19
|
+
"aria-modal": "true",
|
|
20
|
+
"aria-label": "ae start screen"
|
|
18
21
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
19
|
-
className: "icon-happy-laptop auto-evaluation__starticon"
|
|
22
|
+
className: "icon-happy-laptop auto-evaluation__starticon",
|
|
23
|
+
"aria-label": "icon laptop",
|
|
24
|
+
role: "img"
|
|
20
25
|
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
21
|
-
className: "auto-evaluation__starttext"
|
|
26
|
+
className: "auto-evaluation__starttext",
|
|
27
|
+
"aria-label": "desciption"
|
|
22
28
|
}, /*#__PURE__*/_react.default.createElement("span", null, description)), /*#__PURE__*/_react.default.createElement("button", {
|
|
23
29
|
type: "button",
|
|
24
30
|
className: "gat--btn gat--btn__primary auto-evaluation__button auto-evaluation__button--start",
|
|
25
|
-
onClick: onNext
|
|
26
|
-
|
|
31
|
+
onClick: onNext,
|
|
32
|
+
"aria-label": "start button"
|
|
33
|
+
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
34
|
+
"aria-label": "start text"
|
|
35
|
+
}, translate('auto-evaluation.start'))));
|
|
27
36
|
};
|
|
28
37
|
|
|
29
38
|
var _default = StartScreen;
|
|
@@ -96,7 +96,10 @@ var Card = function Card(_ref) {
|
|
|
96
96
|
};
|
|
97
97
|
|
|
98
98
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
99
|
+
role: "button",
|
|
100
|
+
tabIndex: 0,
|
|
99
101
|
order: card.order,
|
|
102
|
+
onKeyUp: function onKeyUp() {},
|
|
100
103
|
onClick: function onClick() {
|
|
101
104
|
if (!isEmpty() && canBeClicked()) {
|
|
102
105
|
handleClick(cardIndex);
|
|
@@ -61,15 +61,23 @@ var Options = function Options(_ref) {
|
|
|
61
61
|
defaultChecked: selectedChoice.id === option.id
|
|
62
62
|
}), showingResults ? /*#__PURE__*/_react.default.createElement("label", {
|
|
63
63
|
className: "".concat(option.right ? 'radio-text-success' : 'radio-text-fail'),
|
|
64
|
-
htmlFor: option.id,
|
|
65
64
|
onClick: function onClick() {
|
|
66
65
|
selectChoice(option);
|
|
67
|
-
}
|
|
66
|
+
},
|
|
67
|
+
role: "button",
|
|
68
|
+
"aria-label": option.text,
|
|
69
|
+
tabIndex: 0,
|
|
70
|
+
onKeyUp: function onKeyUp() {},
|
|
71
|
+
htmlFor: option.id
|
|
68
72
|
}, option.text) : /*#__PURE__*/_react.default.createElement("label", {
|
|
69
73
|
htmlFor: option.id,
|
|
70
74
|
onClick: function onClick() {
|
|
71
75
|
selectChoiceFirstTime(option);
|
|
72
|
-
}
|
|
76
|
+
},
|
|
77
|
+
role: "button",
|
|
78
|
+
"aria-label": option.text,
|
|
79
|
+
tabIndex: 0,
|
|
80
|
+
onKeyUp: function onKeyUp() {}
|
|
73
81
|
}, option.text));
|
|
74
82
|
}));
|
|
75
83
|
};
|
package/dist/components/frame-click-puzzle-component/components/FrameClickPuzzleComponent.js
CHANGED
|
@@ -190,6 +190,9 @@ var FrameImageClickComponent = function FrameImageClickComponent(_ref) {
|
|
|
190
190
|
className: "puzzle-frame__progress--handle"
|
|
191
191
|
}))), showFrames ? /*#__PURE__*/_react.default.createElement("div", {
|
|
192
192
|
className: "puzzle-frame__info",
|
|
193
|
+
role: "button",
|
|
194
|
+
tabIndex: 0,
|
|
195
|
+
onKeyUp: function onKeyUp() {},
|
|
193
196
|
onClick: onClickCounter
|
|
194
197
|
}, /*#__PURE__*/_react.default.createElement(_Counter.default, {
|
|
195
198
|
current: selected,
|
|
@@ -248,10 +248,11 @@ var HackerPuzzleComponent = function HackerPuzzleComponent(_ref) {
|
|
|
248
248
|
};
|
|
249
249
|
|
|
250
250
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
251
|
-
|
|
251
|
+
role: "button",
|
|
252
|
+
tabIndex: 0,
|
|
252
253
|
"data-testid": "hacker",
|
|
253
254
|
ref: el,
|
|
254
|
-
|
|
255
|
+
onKeyDown: handleKeyPress,
|
|
255
256
|
onTouchStart: handleKeyPress,
|
|
256
257
|
className: "puzzle--hacker__container background-hacker-".concat(currentTheme.bg)
|
|
257
258
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -524,6 +524,9 @@ var HangedPuzzleComponent = function HangedPuzzleComponent(_ref4) {
|
|
|
524
524
|
return /*#__PURE__*/_react.default.createElement("span", {
|
|
525
525
|
key: "".concat(letter + index),
|
|
526
526
|
"data-testid": "key-".concat(letter.char),
|
|
527
|
+
role: "button",
|
|
528
|
+
tabIndex: 0,
|
|
529
|
+
onKeyUp: function onKeyUp() {},
|
|
527
530
|
onClick: function onClick() {
|
|
528
531
|
if (!letter.deleted && !resolvedClass && !disabled) {
|
|
529
532
|
addCharacter(letter.char, index);
|
|
@@ -536,6 +539,9 @@ var HangedPuzzleComponent = function HangedPuzzleComponent(_ref4) {
|
|
|
536
539
|
onClick: disabled ? null : function () {
|
|
537
540
|
return removeCharacter();
|
|
538
541
|
},
|
|
542
|
+
role: "button",
|
|
543
|
+
tabIndex: 0,
|
|
544
|
+
onKeyUp: function onKeyUp() {},
|
|
539
545
|
className: "puzzle--hanged__keyboard--item delete\n ".concat(disabled ? 'disabled' : '')
|
|
540
546
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
541
547
|
className: "icon-delete-keyboard"
|
|
@@ -85,6 +85,10 @@ var InventoryItem = function InventoryItem(_ref) {
|
|
|
85
85
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
86
86
|
className: "inventory-popup fadeIn--animation ".concat(description ? 'inventory-popup--withdescription' : '')
|
|
87
87
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
88
|
+
role: "button",
|
|
89
|
+
tabIndex: 0,
|
|
90
|
+
onKeyUp: function onKeyUp() {},
|
|
91
|
+
"aria-label": "close inventory popup",
|
|
88
92
|
className: "inventory-popup__close",
|
|
89
93
|
onClick: function onClick() {
|
|
90
94
|
close();
|
|
@@ -265,6 +265,9 @@ var KeyboardPuzzleComponent = function KeyboardPuzzleComponent(_ref) {
|
|
|
265
265
|
}, (Array.isArray(row) ? row : Object.values(row)).map(function (col, colNumb) {
|
|
266
266
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
267
267
|
className: "puzzle--keyboard__character",
|
|
268
|
+
role: "button",
|
|
269
|
+
onKeyUp: function onKeyUp() {},
|
|
270
|
+
tabIndex: 0,
|
|
268
271
|
onClick: function onClick() {
|
|
269
272
|
return handleNumbClick(rowNumb, colNumb);
|
|
270
273
|
},
|
|
@@ -13,6 +13,8 @@ var _htmlReactParser = _interopRequireDefault(require("html-react-parser"));
|
|
|
13
13
|
|
|
14
14
|
var _LectureButtons = _interopRequireDefault(require("./LectureButtons"));
|
|
15
15
|
|
|
16
|
+
var _useEkho = _interopRequireDefault(require("../../../helpers/useEkho"));
|
|
17
|
+
|
|
16
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
19
|
|
|
18
20
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -45,7 +47,12 @@ var LecturesComponent = function LecturesComponent(_ref) {
|
|
|
45
47
|
viewed = _ref.viewed,
|
|
46
48
|
soundActions = _ref.soundActions,
|
|
47
49
|
backgroundImage = _ref.backgroundImage,
|
|
48
|
-
keyboardControl = _ref.keyboardControl
|
|
50
|
+
keyboardControl = _ref.keyboardControl,
|
|
51
|
+
audio = _ref.audio,
|
|
52
|
+
audioType = _ref.audioType,
|
|
53
|
+
audioVolume = _ref.audioVolume,
|
|
54
|
+
voice = _ref.voice,
|
|
55
|
+
pause = _ref.pause;
|
|
49
56
|
|
|
50
57
|
var _useState = (0, _react.useState)(),
|
|
51
58
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -67,7 +74,24 @@ var LecturesComponent = function LecturesComponent(_ref) {
|
|
|
67
74
|
var goToLecture = !required || required && time >= limit || required && !visible;
|
|
68
75
|
|
|
69
76
|
var _soundActions = _slicedToArray(soundActions, 1),
|
|
70
|
-
playSound = _soundActions[0];
|
|
77
|
+
playSound = _soundActions[0]; // Formateo de la prop 'text' para que Azure haga pausas después de cada tag que se requiera y para evitar que Azure lea los tags htmls
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
var regexForClosingTags = /<\/p>|<\/h1>|<\/h2>|<\/h3>|<\/h4>|<\/h5>|<\/h6>|<\/li>/gi;
|
|
81
|
+
var stringsToDelete = /"|'/gi;
|
|
82
|
+
var textWithDotsBeforeClosingTags = text.replace(regexForClosingTags, '. </p>');
|
|
83
|
+
var textWithoutStringsToDelete = textWithDotsBeforeClosingTags.replace(stringsToDelete, '');
|
|
84
|
+
var textParsedForTTSwithoutHtmlTags = textWithoutStringsToDelete.replace(/(<([^>]+)>)/gi, '');
|
|
85
|
+
(0, _useEkho.default)({
|
|
86
|
+
audioType: audioType,
|
|
87
|
+
voice: voice,
|
|
88
|
+
text: textParsedForTTSwithoutHtmlTags,
|
|
89
|
+
audio: audio,
|
|
90
|
+
soundActions: soundActions,
|
|
91
|
+
emitEvent: emitEvent,
|
|
92
|
+
volume: audioVolume,
|
|
93
|
+
pauseTTS: pause
|
|
94
|
+
});
|
|
71
95
|
|
|
72
96
|
var translate = function translate(id) {
|
|
73
97
|
return emitEvent({
|
|
@@ -104,17 +104,23 @@ var VideoVisor = function VideoVisor(_ref) {
|
|
|
104
104
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
105
105
|
className: "video media-visor",
|
|
106
106
|
style: isAudio ? configForAudio : null
|
|
107
|
-
}, !isEmbeddedVideo ? /*#__PURE__*/_react.default.createElement("video", _extends({
|
|
107
|
+
}, !isEmbeddedVideo ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("video", _extends({
|
|
108
108
|
onEnded: onEnded,
|
|
109
109
|
onError: onError
|
|
110
110
|
}, videoProps, {
|
|
111
111
|
controls: true,
|
|
112
112
|
disablePictureInPicture: true,
|
|
113
113
|
controlsList: "nofullscreen nodownload noremoteplayback"
|
|
114
|
-
})
|
|
114
|
+
}), /*#__PURE__*/_react.default.createElement("track", {
|
|
115
|
+
kind: "captions"
|
|
116
|
+
}))) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
115
117
|
className: "position--absolute right top z-index1"
|
|
116
118
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
117
119
|
className: "gat--btn__round gat--btn__close",
|
|
120
|
+
role: "button",
|
|
121
|
+
tabIndex: 0,
|
|
122
|
+
onKeyUp: function onKeyUp() {},
|
|
123
|
+
"aria-label": "close button",
|
|
118
124
|
onClick: endVideo
|
|
119
125
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
120
126
|
className: "icon-close"
|
|
@@ -21,8 +21,10 @@ var EmailPill = function EmailPill(_ref) {
|
|
|
21
21
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
22
22
|
tabIndex: "0",
|
|
23
23
|
role: "button",
|
|
24
|
+
onKeyUp: function onKeyUp() {},
|
|
24
25
|
onClick: handleClick,
|
|
25
|
-
className: "icon-close"
|
|
26
|
+
className: "icon-close",
|
|
27
|
+
"aria-label": "icon click"
|
|
26
28
|
})));
|
|
27
29
|
};
|
|
28
30
|
|
|
@@ -145,6 +145,9 @@ var StepOne = function StepOne(_ref) {
|
|
|
145
145
|
dir: "auto"
|
|
146
146
|
}, translate('puzzles.referrals.inviter.limit'))), /*#__PURE__*/_react.default.createElement("div", {
|
|
147
147
|
className: "referrals-piece__faketextarea",
|
|
148
|
+
onKeyUp: function onKeyUp() {},
|
|
149
|
+
role: "button",
|
|
150
|
+
tabIndex: 0,
|
|
148
151
|
onClick: focusInInput
|
|
149
152
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
150
153
|
className: "referrals-piece__scrollarea"
|
|
@@ -176,6 +179,7 @@ var StepOne = function StepOne(_ref) {
|
|
|
176
179
|
}, emailsPills.length, "/10")))), /*#__PURE__*/_react.default.createElement("div", {
|
|
177
180
|
className: "referrals-piece__buttons"
|
|
178
181
|
}, /*#__PURE__*/_react.default.createElement("button", {
|
|
182
|
+
"data-testid": "cancelButton",
|
|
179
183
|
className: "gat--btn gat--btn__secondary",
|
|
180
184
|
type: "button",
|
|
181
185
|
onClick: handleCancel
|
|
@@ -137,6 +137,10 @@ var RewardsComponent = function RewardsComponent(_ref) {
|
|
|
137
137
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
138
138
|
className: "test--results__rewards"
|
|
139
139
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
140
|
+
role: "button",
|
|
141
|
+
tabIndex: 0,
|
|
142
|
+
"aria-label": "back button",
|
|
143
|
+
onKeyUp: function onKeyUp() {},
|
|
140
144
|
onClick: onClickPrev,
|
|
141
145
|
className: "icon-back ".concat(rewardsUnified.length <= displayingItems ? 'visibility--hidden' : '', " ").concat(offset <= 0 ? 'disabled' : '')
|
|
142
146
|
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -175,6 +179,10 @@ var RewardsComponent = function RewardsComponent(_ref) {
|
|
|
175
179
|
}
|
|
176
180
|
});
|
|
177
181
|
})))), /*#__PURE__*/_react.default.createElement("span", {
|
|
182
|
+
onKeyUp: function onKeyUp() {},
|
|
183
|
+
role: "button",
|
|
184
|
+
tabIndex: 0,
|
|
185
|
+
"aria-label": "next",
|
|
178
186
|
onClick: onClickNext,
|
|
179
187
|
className: "icon-next ".concat(rewardsUnified.length <= displayingItems ? 'visibility--hidden' : '', " ").concat(offset + displayingItems >= totalItems ? 'disabled' : '')
|
|
180
188
|
}));
|
|
@@ -38,6 +38,9 @@ var ApplicableBox = function ApplicableBox(_ref) {
|
|
|
38
38
|
onClick: function onClick() {
|
|
39
39
|
return select(option);
|
|
40
40
|
},
|
|
41
|
+
role: "button",
|
|
42
|
+
tabIndex: 0,
|
|
43
|
+
onKeyUp: function onKeyUp() {},
|
|
41
44
|
className: "survey--response__item ".concat(survey[id] === option ? 'selected' : '')
|
|
42
45
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
43
46
|
className: "survey--response__index"
|
|
@@ -30,16 +30,21 @@ var OpinionBox = function OpinionBox(_ref) {
|
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
33
|
-
className: "survey--page__item"
|
|
34
|
-
|
|
33
|
+
className: "survey--page__item",
|
|
34
|
+
"aria-label": "opinion box"
|
|
35
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
35
36
|
className: "survey--points"
|
|
36
37
|
}, OPINION_OPTIONS.map(function (option) {
|
|
37
|
-
return /*#__PURE__*/_react.default.createElement("
|
|
38
|
+
return /*#__PURE__*/_react.default.createElement("span", {
|
|
38
39
|
key: option,
|
|
40
|
+
className: "survey--points__item ".concat(survey[id] === option ? 'selected' : ''),
|
|
41
|
+
role: "button",
|
|
42
|
+
onKeyUp: function onKeyUp() {},
|
|
43
|
+
tabIndex: 0,
|
|
44
|
+
"aria-label": option,
|
|
39
45
|
onClick: function onClick() {
|
|
40
46
|
return select(option);
|
|
41
|
-
}
|
|
42
|
-
className: "survey--points__item ".concat(survey[id] === option ? 'selected' : '')
|
|
47
|
+
}
|
|
43
48
|
}, option);
|
|
44
49
|
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
45
50
|
className: "survey--points__labels"
|
|
@@ -19,6 +19,10 @@ var Item = function Item(_ref) {
|
|
|
19
19
|
className: "puzzle--terminal__folder__list--item"
|
|
20
20
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
21
21
|
title: filename,
|
|
22
|
+
role: "button",
|
|
23
|
+
onKeyUp: function onKeyUp() {},
|
|
24
|
+
"aria-label": "file",
|
|
25
|
+
tabIndex: 0,
|
|
22
26
|
className: "puzzle--terminal__item id-".concat(item.id),
|
|
23
27
|
onClick: function onClick() {
|
|
24
28
|
return !item.fixed ? selectItem(item) : null;
|
|
@@ -40,6 +40,10 @@ var FilesGroup = function FilesGroup(_ref) {
|
|
|
40
40
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
41
41
|
className: "puzzle--terminal__folder--head"
|
|
42
42
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
43
|
+
role: "button",
|
|
44
|
+
onKeyUp: function onKeyUp() {},
|
|
45
|
+
"aria-label": "back file",
|
|
46
|
+
tabIndex: 0,
|
|
43
47
|
onClick: function onClick() {
|
|
44
48
|
return backFile();
|
|
45
49
|
},
|
|
@@ -51,6 +55,10 @@ var FilesGroup = function FilesGroup(_ref) {
|
|
|
51
55
|
}), /*#__PURE__*/_react.default.createElement("span", {
|
|
52
56
|
className: "text"
|
|
53
57
|
}, file.name), /*#__PURE__*/_react.default.createElement("span", {
|
|
58
|
+
role: "button",
|
|
59
|
+
tabIndex: 0,
|
|
60
|
+
"aria-label": "close folder",
|
|
61
|
+
onKeyUp: function onKeyUp() {},
|
|
54
62
|
onClick: function onClick() {
|
|
55
63
|
return closeFolder();
|
|
56
64
|
},
|
|
@@ -63,7 +63,10 @@ var Questions = function Questions(_ref) {
|
|
|
63
63
|
onClick: function onClick() {
|
|
64
64
|
return !disabled ? updateForm(answer, question.id, index) : null;
|
|
65
65
|
},
|
|
66
|
+
onKeyUp: function onKeyUp() {},
|
|
66
67
|
key: answer.text,
|
|
68
|
+
role: "button",
|
|
69
|
+
tabIndex: 0,
|
|
67
70
|
className: "test--response__item ".concat(disabled ? 'review' : '', " ").concat(getClass(answer))
|
|
68
71
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
69
72
|
className: "test--response__index"
|
|
@@ -70,6 +70,10 @@ var UrlComponent = function UrlComponent(_ref) {
|
|
|
70
70
|
}, !viewed && clicked ? /*#__PURE__*/_react.default.createElement("div", {
|
|
71
71
|
className: "popup--close",
|
|
72
72
|
"data-testid": "close",
|
|
73
|
+
role: "button",
|
|
74
|
+
tabIndex: 0,
|
|
75
|
+
onKeyUp: function onKeyUp() {},
|
|
76
|
+
"aria-label": "link",
|
|
73
77
|
onClick: function onClick() {
|
|
74
78
|
return close();
|
|
75
79
|
}
|
|
@@ -15,7 +15,11 @@ var ControlButtons = function ControlButtons(_ref) {
|
|
|
15
15
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
16
16
|
className: "video--controls__buttons"
|
|
17
17
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
18
|
+
"aria-label": "play and pause button",
|
|
19
|
+
onKeyUp: function onKeyUp() {},
|
|
18
20
|
className: !paused ? 'icon-pause' : 'icon-play',
|
|
21
|
+
role: "button",
|
|
22
|
+
tabIndex: 0,
|
|
19
23
|
onClick: function onClick() {
|
|
20
24
|
pauseVideo();
|
|
21
25
|
}
|
|
@@ -20,6 +20,10 @@ var FinishedVideoButtons = function FinishedVideoButtons(_ref) {
|
|
|
20
20
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
21
21
|
className: "video--extra__actions video--extra__actions--widthTransparencyLayer position--absolute z-index1"
|
|
22
22
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
23
|
+
role: "button",
|
|
24
|
+
"aria-label": "rewind video",
|
|
25
|
+
tabIndex: 0,
|
|
26
|
+
onKeyUp: function onKeyUp() {},
|
|
23
27
|
onClick: function onClick() {
|
|
24
28
|
restart();
|
|
25
29
|
},
|
|
@@ -21,6 +21,10 @@ var PlayInitButton = function PlayInitButton(_ref) {
|
|
|
21
21
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
22
22
|
className: "video--extra__actions position--absolute z-index1"
|
|
23
23
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
24
|
+
role: "button",
|
|
25
|
+
tabIndex: 0,
|
|
26
|
+
"aria-label": "play video",
|
|
27
|
+
onKeyUp: function onKeyUp() {},
|
|
24
28
|
onClick: function onClick() {
|
|
25
29
|
play();
|
|
26
30
|
},
|
|
@@ -19,6 +19,10 @@ var skipButton = function skipButton(_ref) {
|
|
|
19
19
|
className: "position--absolute right top z-index1"
|
|
20
20
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
21
21
|
className: "gat--btn__round gat--btn__close",
|
|
22
|
+
role: "button",
|
|
23
|
+
tabIndex: 0,
|
|
24
|
+
"aria-label": "close",
|
|
25
|
+
onKeyUp: function onKeyUp() {},
|
|
22
26
|
onClick: function onClick() {
|
|
23
27
|
skip();
|
|
24
28
|
}
|
|
@@ -274,7 +274,9 @@ var VideoVisor = function VideoVisor(_ref) {
|
|
|
274
274
|
onEnded: onEnded,
|
|
275
275
|
onError: onError,
|
|
276
276
|
onPlaying: onPlaying
|
|
277
|
-
}, videoProps)
|
|
277
|
+
}, videoProps), /*#__PURE__*/_react.default.createElement("track", {
|
|
278
|
+
kind: "captions"
|
|
279
|
+
})), loading ? /*#__PURE__*/_react.default.createElement("div", {
|
|
278
280
|
className: "video-loading-container",
|
|
279
281
|
style: {
|
|
280
282
|
top: 0,
|
|
@@ -289,6 +291,10 @@ var VideoVisor = function VideoVisor(_ref) {
|
|
|
289
291
|
}, /*#__PURE__*/_react.default.createElement("p", null, Math.floor(loadedPercentage))))) : null) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
290
292
|
className: "position--absolute right top z-index1"
|
|
291
293
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
294
|
+
role: "button",
|
|
295
|
+
tabIndex: 0,
|
|
296
|
+
onKeyUp: function onKeyUp() {},
|
|
297
|
+
"aria-label": "end video",
|
|
292
298
|
className: "gat--btn__round gat--btn__close",
|
|
293
299
|
onClick: function onClick() {
|
|
294
300
|
playSound('click-ui');
|
|
@@ -75,7 +75,10 @@ var PopupImageComponent = function PopupImageComponent(_ref) {
|
|
|
75
75
|
className: "folder-item-file__imagewrap",
|
|
76
76
|
onClick: function onClick() {
|
|
77
77
|
return select(image);
|
|
78
|
-
}
|
|
78
|
+
},
|
|
79
|
+
onKeyUp: function onKeyUp() {},
|
|
80
|
+
role: "button",
|
|
81
|
+
tabIndex: 0
|
|
79
82
|
}, /*#__PURE__*/_react.default.createElement("img", {
|
|
80
83
|
alt: image.src,
|
|
81
84
|
src: _resourcePath.default + image.src
|
|
@@ -82,7 +82,8 @@ var PopupTextComponent = function PopupTextComponent(_ref) {
|
|
|
82
82
|
className: classDropDown,
|
|
83
83
|
onClick: function onClick() {
|
|
84
84
|
return toggleDropdown();
|
|
85
|
-
}
|
|
85
|
+
},
|
|
86
|
+
role: "presentation"
|
|
86
87
|
}, /*#__PURE__*/_react.default.createElement(Selected, {
|
|
87
88
|
item: selected
|
|
88
89
|
}), /*#__PURE__*/_react.default.createElement("span", {
|
|
@@ -93,6 +94,9 @@ var PopupTextComponent = function PopupTextComponent(_ref) {
|
|
|
93
94
|
if (option instanceof Object) {
|
|
94
95
|
return /*#__PURE__*/_react.default.createElement("span", {
|
|
95
96
|
key: option.title,
|
|
97
|
+
role: "button",
|
|
98
|
+
tabIndex: 0,
|
|
99
|
+
onKeyUp: function onKeyUp() {},
|
|
96
100
|
className: "puzzle--webBuilder__dropdown--option",
|
|
97
101
|
onClick: function onClick() {
|
|
98
102
|
select(option);
|
|
@@ -104,6 +108,9 @@ var PopupTextComponent = function PopupTextComponent(_ref) {
|
|
|
104
108
|
|
|
105
109
|
return /*#__PURE__*/_react.default.createElement("span", {
|
|
106
110
|
key: option,
|
|
111
|
+
role: "button",
|
|
112
|
+
tabIndex: 0,
|
|
113
|
+
onKeyUp: function onKeyUp() {},
|
|
107
114
|
className: "puzzle--webBuilder__dropdown--option",
|
|
108
115
|
onClick: function onClick() {
|
|
109
116
|
select(option);
|
|
@@ -13,6 +13,10 @@ var EditButton = function EditButton(_ref) {
|
|
|
13
13
|
var action = _ref.action,
|
|
14
14
|
className = _ref.className;
|
|
15
15
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
16
|
+
role: "button",
|
|
17
|
+
tabIndex: 0,
|
|
18
|
+
"aria-label": "".concat(action, " edit button"),
|
|
19
|
+
onKeyUp: function onKeyUp() {},
|
|
16
20
|
className: "puzzle--webBuilder__edit ".concat(className),
|
|
17
21
|
onClick: action
|
|
18
22
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
@@ -13,6 +13,10 @@ var PublishButton = function PublishButton(_ref) {
|
|
|
13
13
|
var onPublish = _ref.onPublish,
|
|
14
14
|
translate = _ref.translate;
|
|
15
15
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
16
|
+
role: "button",
|
|
17
|
+
tabIndex: 0,
|
|
18
|
+
onKeyUp: function onKeyUp() {},
|
|
19
|
+
"aria-label": "publish",
|
|
16
20
|
className: "position--absolute bottom center",
|
|
17
21
|
onClick: onPublish
|
|
18
22
|
}, /*#__PURE__*/_react.default.createElement("div", {
|