@gamelearn/arcade-components 0.24.0 → 0.24.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.
Files changed (38) hide show
  1. package/dist/components/arcade-render/mocks/index.js +20 -2
  2. package/dist/components/auto-evaluation-component/mocks/mockForStory.js +3 -12
  3. package/dist/components/cards-selector-puzzle-component/mocks/mockForStory.js +13 -17
  4. package/dist/components/chained-image-click-puzzle-component/mocks/mockForStory.js +7 -18
  5. package/dist/components/comic-component/mocks/mockForStory.js +6 -0
  6. package/dist/components/conversational-pro-component/mocks/mockForStory.js +21 -0
  7. package/dist/components/cracker-puzzle-component/mocks/mockForStory.js +16 -19
  8. package/dist/components/decision-component/mocks/mockForStory.js +10 -70
  9. package/dist/components/dialog-component/mocks/mockForStory.js +294 -6
  10. package/dist/components/drag-item-puzzle-component/mocks/mockForStory.js +3 -12
  11. package/dist/components/feedback-component/mocks/mockForStory.js +11 -16
  12. package/dist/components/frame-click-puzzle-component/mocks/mockForStory.js +10 -17
  13. package/dist/components/hacker-puzzle-component/mocks/mockForStory.js +10 -15
  14. package/dist/components/hanged-puzzle-component/mocks/mockForStory.js +16 -17
  15. package/dist/components/image-click-puzzle-component/mocks/mockForStory.js +13 -20
  16. package/dist/components/image-click-wrapper-component/mocks/mockForStory.js +14 -28
  17. package/dist/components/image-component/mocks/mockForStory.js +7 -15
  18. package/dist/components/inventory-item/mocks/mockForStory.js +6 -4
  19. package/dist/components/keyboard-puzzle-component/mocks/mockForStory.js +4 -11
  20. package/dist/components/lectures-component/mocks/mockForStory.js +3 -11
  21. package/dist/components/login-puzzle-component/mocks/mockForStory.js +4 -11
  22. package/dist/components/notice-component/mocks/mockForStory.js +3 -5
  23. package/dist/components/pattern-component/mocks/mockForStory.js +5 -5
  24. package/dist/components/pdf-component/mocks/mockForProps.js +5 -11
  25. package/dist/components/rewards-component/mocks/mockForStory.js +11 -76
  26. package/dist/components/survey-component/mocks/mockForStory.js +3 -12
  27. package/dist/components/terminal-puzzle-component/components/TerminalPuzzleComponent.js +3 -1
  28. package/dist/components/terminal-puzzle-component/mocks/mockForStory.js +10 -14
  29. package/dist/components/test-component/mocks/mockForStory.js +5 -72
  30. package/dist/components/text-click-puzzle-component/mocks/mockForStory.js +7 -18
  31. package/dist/components/url-component/mocks/mockForProps.js +19 -1
  32. package/dist/components/video-component/mocks/mockForStory.js +13 -9
  33. package/dist/components/video-visor/mocks/mockForStory.js +13 -4
  34. package/dist/components/web-builder-puzzle-component/mocks/mockForStory.js +4 -9
  35. package/dist/components/writer-puzzle-component/components/WriterPuzzleComponent.js +4 -4
  36. package/dist/components/writer-puzzle-component/mocks/mockForStory.js +28 -48
  37. package/dist/helpers/mocker.js +121 -0
  38. package/package.json +4 -2
@@ -5,19 +5,11 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.mockWithImageNotViewed = exports.mockWithNotVisible = exports.mockProps = void 0;
7
7
 
8
- var emitEvent = function emitEvent(_ref) {
9
- var type = _ref.type,
10
- payload = _ref.payload;
11
- console.log('Emit Event');
12
-
13
- if (type === 'translate') {
14
- return payload;
15
- }
16
- };
8
+ var _mocker = require("helpers/mocker");
17
9
 
18
10
  var mockProps = {
19
- soundActions: [],
20
- emitEvent: emitEvent,
11
+ soundActions: _mocker.soundActions,
12
+ emitEvent: _mocker.emitEvent,
21
13
  img: {
22
14
  imgId: 'alfalfa',
23
15
  url: 'https://min.int.gamelearn.io/cooked.gl-lms-storage/clients/58dccfba26561500117caf53/image/603fb8b1901f3e001238e297/gif.gif',
@@ -30,8 +22,8 @@ var mockProps = {
30
22
  };
31
23
  exports.mockProps = mockProps;
32
24
  var mockWithNotVisible = {
33
- soundActions: [],
34
- emitEvent: emitEvent,
25
+ soundActions: _mocker.soundActions,
26
+ emitEvent: _mocker.emitEvent,
35
27
  img: {
36
28
  imgId: 'alfalfa2',
37
29
  url: 'https://min.int.gamelearn.io/cooked.gl-lms-storage/clients/58dccfba26561500117caf53/image/603fb8b1901f3e001238e297/gif.gif',
@@ -44,8 +36,8 @@ var mockWithNotVisible = {
44
36
  };
45
37
  exports.mockWithNotVisible = mockWithNotVisible;
46
38
  var mockWithImageNotViewed = {
47
- soundActions: [],
48
- emitEvent: emitEvent,
39
+ soundActions: _mocker.soundActions,
40
+ emitEvent: _mocker.emitEvent,
49
41
  img: {
50
42
  imgId: 'alfalfa2',
51
43
  url: 'https://min.int.gamelearn.io/cooked.gl-lms-storage/clients/58dccfba26561500117caf53/image/603fb8b1901f3e001238e297/gif.gif',
@@ -7,12 +7,14 @@ exports.mockProps = void 0;
7
7
 
8
8
  var _mocks = require("../../arcade-render/mocks");
9
9
 
10
- var emitEvent = function emitEvent() {
11
- console.log('Emit event called');
12
- };
10
+ var _mocker = require("helpers/mocker");
13
11
 
14
12
  var mockProps = {
15
- emitEvent: emitEvent,
13
+ emitEvent: _mocker.emitEvent,
14
+ soundActions: _mocker.soundActions,
15
+ onFinish: function onFinish() {
16
+ return (0, _mocker.onFinish)("inventory-item");
17
+ },
16
18
  name: 'Avocado',
17
19
  description: 'El que tengo aqui condimentado',
18
20
  element: {
@@ -5,21 +5,14 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.mockProps = void 0;
7
7
 
8
- var emitEvent = function emitEvent(_ref) {
9
- var type = _ref.type,
10
- payload = _ref.payload;
11
- console.log('Emit event called');
12
-
13
- if (type === "translate") {
14
- return payload;
15
- }
16
- };
8
+ var _mocker = require("helpers/mocker");
17
9
 
18
10
  var mockProps = {
19
- emitEvent: emitEvent,
11
+ emitEvent: _mocker.emitEvent,
20
12
  disableExit: function disableExit() {},
21
13
  setResolveAction: function setResolveAction() {},
22
- soundActions: [function () {}, function () {}],
14
+ soundActions: _mocker.soundActions,
15
+ setShowPoints: _mocker.setShowPoints,
23
16
  password: '1234',
24
17
  keyboard: [['1', '2', '3'], ['4', '5', '6'], ['7', '8', '9'], ['*', '0', '#']],
25
18
  image: {
@@ -5,19 +5,11 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.mockProps = void 0;
7
7
 
8
- var emitEvent = function emitEvent(_ref) {
9
- var type = _ref.type,
10
- payload = _ref.payload;
11
- console.log('Emit event called', type, payload);
12
-
13
- if (type === 'translate') {
14
- return mockProps.messages[payload];
15
- }
16
- };
8
+ var _mocker = require("helpers/mocker");
17
9
 
18
10
  var mockProps = {
19
- soundActions: [],
20
- emitEvent: emitEvent,
11
+ emitEvent: _mocker.emitEvent,
12
+ soundActions: _mocker.soundActions,
21
13
  name: 'lecture',
22
14
  required: true,
23
15
  text: "<p>hola</p><div>soy un hermoso trozo de hmtl</div><div>y yo otro</div>",
@@ -5,20 +5,13 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.mockProps = void 0;
7
7
 
8
- var emitEvent = function emitEvent(_ref) {
9
- var type = _ref.type,
10
- payload = _ref.payload;
11
-
12
- if (type === 'translate') {
13
- return payload;
14
- }
15
- };
8
+ var _mocker = require("helpers/mocker");
16
9
 
17
10
  var mockProps = {
18
- emitEvent: emitEvent,
11
+ emitEvent: _mocker.emitEvent,
19
12
  setResolveAction: function setResolveAction() {},
20
- setShowPoints: function setShowPoints() {},
21
- soundActions: [function () {}, function () {}],
13
+ setShowPoints: _mocker.setShowPoints,
14
+ soundActions: _mocker.soundActions,
22
15
  user: 'pepe',
23
16
  password: '1234',
24
17
  login: true,
@@ -5,17 +5,15 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.mockProps = void 0;
7
7
 
8
- var emitEvent = function emitEvent() {
9
- console.log('Emit event called');
10
- };
8
+ var _mocker = require("helpers/mocker");
11
9
 
12
10
  var mockProps = {
13
- soundActions: [],
11
+ soundActions: _mocker.soundActions,
14
12
  title: 'title',
15
13
  text: 'text',
16
14
  buttonText: 'click',
17
15
  buttonColor: '#00ff75',
18
16
  nodeId: 'dasdaa',
19
- emitEvent: emitEvent
17
+ emitEvent: _mocker.emitEvent
20
18
  };
21
19
  exports.mockProps = mockProps;
@@ -5,12 +5,11 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.mockProps2 = exports.mockProps = void 0;
7
7
 
8
- var emitEvent = function emitEvent() {
9
- console.log('Emit event called');
10
- };
8
+ var _mocker = require("helpers/mocker");
11
9
 
12
10
  var mockProps = {
13
- emitEvent: emitEvent,
11
+ emitEvent: _mocker.emitEvent,
12
+ soundActions: _mocker.soundActions,
14
13
  img: {
15
14
  imgId: 'alfalfa',
16
15
  url: 'https://min.int.gamelearn.io/cooked.gl-lms-storage/clients/58dccfba26561500117caf53/image/603fb8b1901f3e001238e297/gif.gif',
@@ -22,7 +21,8 @@ var mockProps = {
22
21
  };
23
22
  exports.mockProps = mockProps;
24
23
  var mockProps2 = {
25
- emitEvent: emitEvent,
24
+ emitEvent: _mocker.emitEvent,
25
+ soundActions: _mocker.soundActions,
26
26
  img: {
27
27
  imgId: 'space',
28
28
  url: 'https://min.gamelearn.io/css-resources/gamelearn/resources/cosmos-bg.jpg',
@@ -5,18 +5,12 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.mockPropsNotMandatory = exports.mockPropsMandatory = void 0;
7
7
 
8
- var emitEvent = function emitEvent(action) {
9
- console.log('Emit event called');
10
-
11
- if (action.type === 'translate') {
12
- return action.payload;
13
- }
14
- };
8
+ var _mocker = require("helpers/mocker");
15
9
 
16
10
  var mockPropsMandatory = {
17
- emitEvent: emitEvent,
11
+ emitEvent: _mocker.emitEvent,
18
12
  documentType: 'lesson',
19
- soundActions: [function () {}, function () {}],
13
+ soundActions: _mocker.soundActions,
20
14
  name: 'pdf',
21
15
  required: true,
22
16
  document: {
@@ -28,9 +22,9 @@ var mockPropsMandatory = {
28
22
  };
29
23
  exports.mockPropsMandatory = mockPropsMandatory;
30
24
  var mockPropsNotMandatory = {
31
- emitEvent: emitEvent,
25
+ emitEvent: _mocker.emitEvent,
32
26
  documentType: 'lesson',
33
- soundActions: [function () {}, function () {}],
27
+ soundActions: _mocker.soundActions,
34
28
  name: 'pdf',
35
29
  required: true,
36
30
  document: {
@@ -5,76 +5,11 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.mockProps5 = exports.mockProps4 = exports.mockProps3 = exports.mockProps2 = exports.mockProps1 = void 0;
7
7
 
8
- var emitEvent = function emitEvent(_ref) {
9
- var type = _ref.type,
10
- payload = _ref.payload;
11
-
12
- if (type === 'translate') {
13
- return payload;
14
- }
15
-
16
- if (type === 'loadIndicators') {
17
- return {
18
- score: [{
19
- color: '#4e469e',
20
- description: 'description_0_dY5ms0vf',
21
- description_labelId: 'description_0_dY5ms0vf',
22
- icon: 'font-indicator-bolsa',
23
- id: 'ki4qrkam',
24
- name: 'Indicator1',
25
- name_labelId: 'name_0_dY5ms9T1',
26
- points: 295,
27
- type: 'score'
28
- }, {
29
- color: '#4e469e',
30
- description: 'description_0_dY5ms0vf',
31
- description_labelId: 'description_0_dY5ms0vf',
32
- icon: 'font-indicator-bolsa',
33
- id: 'ki4qrop',
34
- name: 'Indicator1',
35
- name_labelId: 'name_0_dY5ms9T1',
36
- points: 300,
37
- type: 'score'
38
- }, {
39
- color: '#4e469e',
40
- description: 'description_0_dY5ms0vf',
41
- description_labelId: 'description_0_dY5ms0vf',
42
- icon: 'font-indicator-bolsa',
43
- id: 'ki4qiuyi',
44
- name: 'Indicator1',
45
- name_labelId: 'name_0_dY5ms9T1',
46
- points: 300,
47
- type: 'score'
48
- }],
49
- skill: [{
50
- color: '#559cac',
51
- description: 'description_0_dY5msi7o',
52
- description_labelId: 'description_0_dY5msi7o',
53
- icon: 'font-indicator-microfono-2',
54
- id: 'ki4qrkas',
55
- name: 'competency2',
56
- name_labelId: 'name_0_dY5mslgV',
57
- points: 295,
58
- type: 'skill'
59
- }, {
60
- color: '#559cac',
61
- description: 'description_0_dY5msi7o',
62
- description_labelId: 'description_0_dY5msi7o',
63
- icon: 'font-indicator-microfono-2',
64
- id: 'ki4qropi',
65
- name: 'competency2',
66
- name_labelId: 'name_0_dY5mslgV',
67
- points: 295,
68
- type: 'skill'
69
- }],
70
- grade: undefined
71
- };
72
- }
73
- };
8
+ var _mocker = require("helpers/mocker");
74
9
 
75
10
  var mockProps1 = {
76
- soundActions: [],
77
- emitEvent: emitEvent,
11
+ soundActions: _mocker.soundActions,
12
+ emitEvent: _mocker.emitEvent,
78
13
  rewards: [{
79
14
  id: 'ki4qrkam',
80
15
  name: 'Power',
@@ -84,8 +19,8 @@ var mockProps1 = {
84
19
  };
85
20
  exports.mockProps1 = mockProps1;
86
21
  var mockProps2 = {
87
- soundActions: [],
88
- emitEvent: emitEvent,
22
+ soundActions: _mocker.soundActions,
23
+ emitEvent: _mocker.emitEvent,
89
24
  rewards: [{
90
25
  id: 'ki4qrkam',
91
26
  name: 'Power',
@@ -100,8 +35,8 @@ var mockProps2 = {
100
35
  };
101
36
  exports.mockProps2 = mockProps2;
102
37
  var mockProps3 = {
103
- soundActions: [],
104
- emitEvent: emitEvent,
38
+ soundActions: _mocker.soundActions,
39
+ emitEvent: _mocker.emitEvent,
105
40
  rewards: [{
106
41
  id: 'ki4qrkam',
107
42
  name: 'Power',
@@ -121,8 +56,8 @@ var mockProps3 = {
121
56
  };
122
57
  exports.mockProps3 = mockProps3;
123
58
  var mockProps4 = {
124
- soundActions: [],
125
- emitEvent: emitEvent,
59
+ soundActions: _mocker.soundActions,
60
+ emitEvent: _mocker.emitEvent,
126
61
  rewards: [{
127
62
  id: 'ki4qrkam',
128
63
  name: 'Power',
@@ -192,8 +127,8 @@ var mockProps4 = {
192
127
  };
193
128
  exports.mockProps4 = mockProps4;
194
129
  var mockProps5 = {
195
- soundActions: [],
196
- emitEvent: emitEvent,
130
+ soundActions: _mocker.soundActions,
131
+ emitEvent: _mocker.emitEvent,
197
132
  rewards: [{
198
133
  id: 'ki4qrkam',
199
134
  name: 'Power',
@@ -5,19 +5,10 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.mockProps = void 0;
7
7
 
8
- var emitEvent = function emitEvent(_ref) {
9
- var type = _ref.type,
10
- payload = _ref.payload;
11
-
12
- if (type === 'translate') {
13
- return payload;
14
- }
15
-
16
- console.log('Event emitted');
17
- };
8
+ var _mocker = require("helpers/mocker");
18
9
 
19
10
  var mockProps = {
20
- emitEvent: emitEvent,
21
- soundActions: []
11
+ emitEvent: _mocker.emitEvent,
12
+ soundActions: _mocker.soundActions
22
13
  };
23
14
  exports.mockProps = mockProps;
@@ -173,6 +173,8 @@ var TerminalPuzzleComponent = function TerminalPuzzleComponent(_ref) {
173
173
  var resolvePuzzle = function resolvePuzzle() {
174
174
  accRewards.current = [].concat(_toConsumableArray(accRewards.current), _toConsumableArray(info.solution.right.rewards));
175
175
  var rewards = accRewards.current.map(function (reward) {
176
+ var _reward$document;
177
+
176
178
  var name = reward.name,
177
179
  points = reward.points,
178
180
  type = reward.type;
@@ -182,7 +184,7 @@ var TerminalPuzzleComponent = function TerminalPuzzleComponent(_ref) {
182
184
  type: type
183
185
  };
184
186
 
185
- if (reward.document.resourceId) {
187
+ if (reward !== null && reward !== void 0 && (_reward$document = reward.document) !== null && _reward$document !== void 0 && _reward$document.resourceId) {
186
188
  parsedReward.id = reward.document.resourceId;
187
189
  }
188
190
 
@@ -5,20 +5,14 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.realMockProps = exports.mockProps = void 0;
7
7
 
8
- var emitEvent = function emitEvent() {
9
- console.log('Emit event called');
10
- return 'translated';
11
- };
12
-
13
- var disableExit = function disableExit(p) {
14
- console.log('disable exit', p);
15
- };
8
+ var _mocker = require("helpers/mocker");
16
9
 
17
10
  var mockProps = {
18
- emitEvent: emitEvent,
19
- disableExit: disableExit,
11
+ emitEvent: _mocker.emitEvent,
12
+ disableExit: function disableExit() {},
20
13
  setResolveAction: function setResolveAction() {},
21
- soundActions: [function () {}, function () {}],
14
+ setShowPoints: _mocker.setShowPoints,
15
+ soundActions: _mocker.soundActions,
22
16
  items: [{
23
17
  children: [{
24
18
  children: [{
@@ -114,9 +108,11 @@ var mockProps = {
114
108
  };
115
109
  exports.mockProps = mockProps;
116
110
  var realMockProps = {
117
- emitEvent: emitEvent,
118
- disableExit: disableExit,
119
- soundActions: [function () {}, function () {}],
111
+ emitEvent: _mocker.emitEvent,
112
+ disableExit: function disableExit() {},
113
+ setResolveAction: function setResolveAction() {},
114
+ setShowPoints: _mocker.setShowPoints,
115
+ soundActions: _mocker.soundActions,
120
116
  backgroundImage: {
121
117
  url: "https://min.gamelearn.io/css-resources/gamelearn/resources/cosmos-bg-min.jpg"
122
118
  },
@@ -5,78 +5,11 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.mockProps = void 0;
7
7
 
8
- var emitEvent = function emitEvent(_ref) {
9
- var type = _ref.type,
10
- payload = _ref.payload;
11
- console.log('Emit event called');
8
+ var _mocker = require("helpers/mocker");
12
9
 
13
- if (type === 'translate') {
14
- return payload;
15
- }
16
-
17
- if (type === 'loadIndicators') {
18
- return {
19
- score: [{
20
- color: '#4e469e',
21
- description: 'description_0_dY5ms0vf',
22
- description_labelId: 'description_0_dY5ms0vf',
23
- icon: 'font-indicator-bolsa',
24
- id: 'ki4qrkam',
25
- name: 'Indicator1',
26
- name_labelId: 'name_0_dY5ms9T1',
27
- points: 295,
28
- type: 'score'
29
- }, {
30
- color: '#4e469e',
31
- description: 'description_0_dY5ms0vf',
32
- description_labelId: 'description_0_dY5ms0vf',
33
- icon: 'font-indicator-bolsa',
34
- id: 'ki4qrop',
35
- name: 'Indicator1',
36
- name_labelId: 'name_0_dY5ms9T1',
37
- points: 300,
38
- type: 'score'
39
- }, {
40
- color: '#4e469e',
41
- description: 'description_0_dY5ms0vf',
42
- description_labelId: 'description_0_dY5ms0vf',
43
- icon: 'font-indicator-bolsa',
44
- id: 'ki4qiuyi',
45
- name: 'Indicator1',
46
- name_labelId: 'name_0_dY5ms9T1',
47
- points: 300,
48
- type: 'score'
49
- }],
50
- skill: [{
51
- color: '#559cac',
52
- description: 'description_0_dY5msi7o',
53
- description_labelId: 'description_0_dY5msi7o',
54
- icon: 'font-indicator-microfono-2',
55
- id: 'ki4qrkas',
56
- name: 'competency2',
57
- name_labelId: 'name_0_dY5mslgV',
58
- points: 295,
59
- type: 'skill'
60
- }, {
61
- color: '#559cac',
62
- description: 'description_0_dY5msi7o',
63
- description_labelId: 'description_0_dY5msi7o',
64
- icon: 'font-indicator-microfono-2',
65
- id: 'ki4qropi',
66
- name: 'competency2',
67
- name_labelId: 'name_0_dY5mslgV',
68
- points: 295,
69
- type: 'skill'
70
- }],
71
- grade: undefined
72
- };
73
- }
74
- };
75
-
76
- var soundActions = [function () {}, function () {}];
77
10
  var mockProps = {
78
- emitEvent: emitEvent,
79
- soundActions: soundActions,
11
+ emitEvent: _mocker.emitEvent,
12
+ soundActions: _mocker.soundActions,
80
13
  audio: {
81
14
  url: 'https://min.int.gamelearn.io/cooked.gl-lms-storage/clients/58dccfba26561500117caf53/documents/Cat-sound.mp3'
82
15
  },
@@ -124,7 +57,7 @@ var mockProps = {
124
57
  text: 'q2',
125
58
  answers: [{
126
59
  id: 'q2a1',
127
- text: 'q2text',
60
+ text: 'cebolla en tortilla',
128
61
  rewards: [{
129
62
  id: 'id010001',
130
63
  name: 'love',
@@ -146,7 +79,7 @@ var mockProps = {
146
79
  isCorrect: false
147
80
  }, {
148
81
  id: 'q2a3',
149
- text: 'love',
82
+ text: 'hate',
150
83
  rewards: [{
151
84
  id: 'id010001',
152
85
  name: 'love',
@@ -5,16 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.mockPropsOnce = exports.mockProps = exports.messages = void 0;
7
7
 
8
- var emitEvent = function emitEvent(_ref) {
9
- var type = _ref.type,
10
- payload = _ref.payload;
11
-
12
- if (type === 'translate') {
13
- return payload;
14
- }
15
-
16
- console.log('Emit event called:', type, 'payload:', payload);
17
- };
8
+ var _mocker = require("helpers/mocker");
18
9
 
19
10
  var messages = {
20
11
  fullText1: '<div><p><span></span><strong>Texto de prueba:</strong></p><p>Con <span data-text-id="text-click-0">un texto correcto normal</span></p><p>Con <span data-text-id="text-click-2">un texto incorrecto normal</span></p><p>Con un texto <span data-text-id="text-click-1">corr</span></p><p><span data-text-id="text-click-1">ecto partido</span></p></div>',
@@ -23,11 +14,11 @@ var messages = {
23
14
  };
24
15
  exports.messages = messages;
25
16
  var mockProps = {
26
- emitEvent: emitEvent,
17
+ emitEvent: _mocker.emitEvent,
27
18
  setResolveAction: function setResolveAction() {},
28
- setShowPoints: function setShowPoints() {},
19
+ setShowPoints: _mocker.setShowPoints,
29
20
  showFrames: true,
30
- soundActions: [function () {}, function () {}],
21
+ soundActions: _mocker.soundActions,
31
22
  styles: 'chalkboard',
32
23
  list: [{
33
24
  allWrong: true,
@@ -258,13 +249,11 @@ var mockProps = {
258
249
  };
259
250
  exports.mockProps = mockProps;
260
251
  var mockPropsOnce = {
261
- emitEvent: emitEvent,
252
+ emitEvent: _mocker.emitEvent,
262
253
  setResolveAction: function setResolveAction() {},
263
- setShowPoints: function setShowPoints(points) {
264
- console.log('points', points);
265
- },
254
+ setShowPoints: _mocker.setShowPoints,
266
255
  showFrames: true,
267
- soundActions: [function () {}, function () {}],
256
+ soundActions: _mocker.soundActions,
268
257
  styles: 'chalkboard',
269
258
  list: [{
270
259
  allWrong: true,
@@ -1 +1,19 @@
1
- "use strict";
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.mockProps = void 0;
7
+
8
+ var _mocker = require("helpers/mocker");
9
+
10
+ var mockProps = {
11
+ emitEvent: _mocker.emitEvent,
12
+ soundActions: _mocker.soundActions,
13
+ name: "un link",
14
+ link: "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
15
+ text: "yea",
16
+ viewed: false,
17
+ documentType: "lesson"
18
+ };
19
+ exports.mockProps = mockProps;
@@ -5,12 +5,11 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.mockProps = void 0;
7
7
 
8
- var emitEvent = function emitEvent() {
9
- console.log('tu ta close');
10
- };
8
+ var _mocker = require("helpers/mocker");
11
9
 
12
10
  var mockProps = [{
13
- emitEvent: emitEvent,
11
+ emitEvent: _mocker.emitEvent,
12
+ soundActions: _mocker.soundActions,
14
13
  name: 'video',
15
14
  required: true,
16
15
  isLesson: true,
@@ -22,7 +21,8 @@ var mockProps = [{
22
21
  },
23
22
  viewed: false
24
23
  }, {
25
- emitEvent: emitEvent,
24
+ emitEvent: _mocker.emitEvent,
25
+ soundActions: _mocker.soundActions,
26
26
  name: 'video2',
27
27
  required: true,
28
28
  isLesson: true,
@@ -33,7 +33,8 @@ var mockProps = [{
33
33
  resourceId: '1234'
34
34
  }
35
35
  }, {
36
- emitEvent: emitEvent,
36
+ emitEvent: _mocker.emitEvent,
37
+ soundActions: _mocker.soundActions,
37
38
  name: 'video3',
38
39
  required: true,
39
40
  isLesson: true,
@@ -44,7 +45,8 @@ var mockProps = [{
44
45
  resourceId: '1234'
45
46
  }
46
47
  }, {
47
- emitEvent: emitEvent,
48
+ emitEvent: _mocker.emitEvent,
49
+ soundActions: _mocker.soundActions,
48
50
  name: 'video4',
49
51
  required: true,
50
52
  isLesson: true,
@@ -55,7 +57,8 @@ var mockProps = [{
55
57
  resourceId: '1234'
56
58
  }
57
59
  }, {
58
- emitEvent: emitEvent,
60
+ emitEvent: _mocker.emitEvent,
61
+ soundActions: _mocker.soundActions,
59
62
  name: 'video5',
60
63
  required: true,
61
64
  isLesson: true,
@@ -66,7 +69,8 @@ var mockProps = [{
66
69
  resourceId: '1234'
67
70
  }
68
71
  }, {
69
- emitEvent: emitEvent,
72
+ emitEvent: _mocker.emitEvent,
73
+ soundActions: _mocker.soundActions,
70
74
  name: 'video6',
71
75
  required: true,
72
76
  isLesson: true,