@gamelearn/arcade-components 0.2.0 → 0.4.1-beta-terminal

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 (90) hide show
  1. package/dist/components/arcade-render/background/scene-elements/index.js +4 -2
  2. package/dist/components/arcade-render/element/AnimateElement.js +7 -9
  3. package/dist/components/arcade-render/element/index.js +7 -5
  4. package/dist/components/arcade-render/elements-list/index.js +4 -2
  5. package/dist/components/arcade-render/light/useLight.js +1 -0
  6. package/dist/components/arcade-render/loading/Loading.js +3 -4
  7. package/dist/components/arcade-render/loading/LoadingLogic.js +4 -4
  8. package/dist/components/arcade-render/mocks/index.js +3 -3
  9. package/dist/components/arcade-render/scene/index.js +8 -8
  10. package/dist/components/chained-image-click-puzzle-component/components/ChainedImageClickPuzzleComponent.js +73 -0
  11. package/dist/components/chained-image-click-puzzle-component/components/CurrentImagePuzzle.js +155 -0
  12. package/dist/components/chained-image-click-puzzle-component/index.js +13 -0
  13. package/dist/components/chained-image-click-puzzle-component/mocks/mockForStory.js +163 -0
  14. package/dist/components/comic-component/mocks/mockForStory.js +4 -4
  15. package/dist/components/conversational-pro-component/components/scene/Panel.js +1 -6
  16. package/dist/components/conversational-pro-component/mocks/mockForStory.js +20 -20
  17. package/dist/components/drag-item-puzzle-component/components/DragItemPuzzleComponent.js +329 -0
  18. package/dist/components/drag-item-puzzle-component/components/Messages.js +55 -0
  19. package/dist/components/drag-item-puzzle-component/index.js +13 -0
  20. package/dist/components/drag-item-puzzle-component/mocks/mockForStory.js +79 -0
  21. package/dist/components/hacker-puzzle-component/components/Area/index.js +150 -0
  22. package/dist/components/hacker-puzzle-component/components/Feedback/index.js +72 -0
  23. package/dist/components/hacker-puzzle-component/components/KonvaMapper/index.js +230 -0
  24. package/dist/components/hanged-puzzle-component/components/HangedPuzzleComponent.js +429 -0
  25. package/dist/components/{pikachu-component → hanged-puzzle-component}/index.js +2 -2
  26. package/dist/components/hanged-puzzle-component/mocks/mockForStory.js +54 -0
  27. package/dist/components/hanged-puzzle-component/utils.js +36 -0
  28. package/dist/components/image-click-puzzle-component/components/ImageClickPuzzleComponent.js +23 -0
  29. package/dist/components/image-click-puzzle-component/index.js +13 -0
  30. package/dist/components/image-click-puzzle-component/mocks/mockForStory.js +423 -0
  31. package/dist/components/image-click-wrapper-component/components/Area/index.js +150 -0
  32. package/dist/components/image-click-wrapper-component/components/Feedback/index.js +50 -0
  33. package/dist/components/image-click-wrapper-component/components/ImageClickWrapperComponent.js +365 -0
  34. package/dist/components/image-click-wrapper-component/components/KonvaMapper/index.js +230 -0
  35. package/dist/components/image-click-wrapper-component/index.js +13 -0
  36. package/dist/components/image-click-wrapper-component/mocks/mockForStory.js +307 -0
  37. package/dist/components/image-component/mocks/mockForStory.js +3 -3
  38. package/dist/components/index.js +56 -0
  39. package/dist/components/inventory-item/components/InventoryItem.js +2 -1
  40. package/dist/components/keyboard-puzzle-component/mocks/mockForStory.js +1 -1
  41. package/dist/components/login-puzzle-component/mocks/mockForStory.js +3 -3
  42. package/dist/components/pdf-component/components/PdfComponent.js +40 -7
  43. package/dist/components/pdf-component/components/PdfVisor.js +86 -33
  44. package/dist/components/pdf-component/mocks/mockForProps.js +21 -5
  45. package/dist/components/terminal-puzzle-component/components/FilesGroup/Item.js +32 -0
  46. package/dist/components/terminal-puzzle-component/components/FilesGroup/index.js +74 -0
  47. package/dist/components/terminal-puzzle-component/components/Image/index.js +26 -0
  48. package/dist/components/terminal-puzzle-component/components/TerminalPuzzleComponent.js +163 -0
  49. package/dist/components/terminal-puzzle-component/components/Visor/index.js +133 -0
  50. package/dist/components/terminal-puzzle-component/components/utils/index.js +29 -0
  51. package/dist/components/terminal-puzzle-component/index.js +13 -0
  52. package/dist/components/terminal-puzzle-component/mocks/mockForStory.js +190 -0
  53. package/dist/components/video-component/mocks/mockForStory.js +5 -5
  54. package/dist/components/video-visor/mocks/mockForStory.js +4 -4
  55. package/dist/components/web-builder-puzzle-component/Popups/PopupColorComponent/index.js +99 -0
  56. package/dist/components/web-builder-puzzle-component/Popups/PopupImageComponent/index.js +113 -0
  57. package/dist/components/web-builder-puzzle-component/Popups/PopupTextComponent/index.js +122 -0
  58. package/dist/components/web-builder-puzzle-component/Popups/index.js +31 -0
  59. package/dist/components/web-builder-puzzle-component/Templates/Bank.js +98 -0
  60. package/dist/components/web-builder-puzzle-component/Templates/Facebook.js +39 -0
  61. package/dist/components/web-builder-puzzle-component/Templates/resourcePath.js +9 -0
  62. package/dist/components/web-builder-puzzle-component/components/EditButton/index.js +28 -0
  63. package/dist/components/web-builder-puzzle-component/components/Feedback/index.js +38 -0
  64. package/dist/components/web-builder-puzzle-component/components/PublishButton/index.js +29 -0
  65. package/dist/components/web-builder-puzzle-component/components/WebBuilderBody/BankBody.js +124 -0
  66. package/dist/components/web-builder-puzzle-component/components/WebBuilderBody/FacebookBody.js +154 -0
  67. package/dist/components/web-builder-puzzle-component/components/WebBuilderBody/index.js +32 -0
  68. package/dist/components/web-builder-puzzle-component/components/WebBuilderFront/index.js +98 -0
  69. package/dist/components/web-builder-puzzle-component/components/WebBuilderHeader/BankHeader.js +92 -0
  70. package/dist/components/web-builder-puzzle-component/components/WebBuilderHeader/FacebookHeader.js +50 -0
  71. package/dist/components/web-builder-puzzle-component/components/WebBuilderHeader/index.js +47 -0
  72. package/dist/components/web-builder-puzzle-component/components/WebBuilderPuzzleComponent.js +337 -0
  73. package/dist/components/web-builder-puzzle-component/components/WebBuilderTopBar/index.js +36 -0
  74. package/dist/components/web-builder-puzzle-component/index.js +13 -0
  75. package/dist/components/web-builder-puzzle-component/mocks/mockForStory.js +29 -0
  76. package/dist/components/writer-puzzle-component/components/ElectionComponent.js +89 -0
  77. package/dist/components/writer-puzzle-component/components/FeedbackComponent.js +138 -0
  78. package/dist/components/writer-puzzle-component/components/FeedbackElement.js +40 -0
  79. package/dist/components/writer-puzzle-component/components/FinishedTextComponent.js +36 -0
  80. package/dist/components/writer-puzzle-component/components/FixedComponent.js +166 -0
  81. package/dist/components/writer-puzzle-component/components/Rewards.js +203 -0
  82. package/dist/components/writer-puzzle-component/components/SingleElection.js +141 -0
  83. package/dist/components/writer-puzzle-component/components/WriterPuzzleComponent.js +552 -0
  84. package/dist/components/writer-puzzle-component/index.js +13 -0
  85. package/dist/components/writer-puzzle-component/mocks/mockForStory.js +861 -0
  86. package/dist/helpers/drawLOD.js +35 -47
  87. package/dist/helpers/useGLB.js +2 -1
  88. package/package.json +9 -4
  89. package/dist/components/pikachu-component/components/PikachuComponent.js +0 -24
  90. package/dist/components/pikachu-component/mocks/mockForStory.js +0 -15
@@ -0,0 +1,861 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.mock6 = exports.mock5 = exports.mock4 = exports.mock3 = exports.mock2 = exports.mock = exports.messages = void 0;
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
+
17
+ var messages = {
18
+ 'puzzles.reference': 'Información de referencia',
19
+ title: '<b>Titulo de prueba</b>',
20
+ hint: 'Texto de pista',
21
+ instructions: 'Texto de informacion',
22
+ description: 'Texto genérico de explicación',
23
+ correctSolution: 'Texto de solucion correcta!',
24
+ wrongSolution: 'Texto de solucion incorrecta!',
25
+ confirm: 'Estas seguro que quieres continuar?',
26
+ continue: 'Continuar',
27
+ cancel: 'Cancelar',
28
+ 'puzzles.skip': 'Saltar',
29
+ fullText1: '<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit</p>',
30
+ fullText2: '<p>Lorem ipsbibendum indis Cras nibh mi, luctus in augue vel</p>',
31
+ fullText3: ' <p>Tercer Párrafo Lorem ipsbibendum indis</p>',
32
+ fullText4: ' <p>Cuarto Párrafo </p>',
33
+ fullText5: ' <p>Quinto Párrafo</p>',
34
+ fullText6: ' <p>ipsum dolor Lorem sit amet, consectetur adipisicing </p>',
35
+ fullText7: ' <p>Mucho Texto aqui a desglosar bla bla bla bla</p>',
36
+ fullText8: ' <p>Mucho Texto aqui a desglosar bla bla bla bla</p>',
37
+ fullText9: ' <p>Cuarto Párrafo jasndjkasbndfajksb,dfakjsbhjksabkjasbgjdsfbgsdfasfgsdgsd </p>',
38
+ fullText10: ' <p>Mucho Texto aqui a desglosar bla bla bla bla</p>',
39
+ fullText11: '<p>sdfsdfsdf</p>',
40
+ fullText12: ' <p>Mucho Texto aqui a desglosar bla bla bla bla</p>',
41
+ fullText13: ' <p>Mucho Texto aqui a desglosar bla bla bla bla</p>',
42
+ previewText1: 'Preview Text 1',
43
+ previewText2: 'Preview Text 2',
44
+ previewText3: 'Preview Text 3',
45
+ previewText4: 'Preview Text 4',
46
+ previewText5: 'Preview Text 5',
47
+ previewText6: 'Preview Text 6',
48
+ previewText7: 'Preview Text 7',
49
+ previewText8: 'Preview Text 7',
50
+ feedbackTitle1: 'Has fallado!',
51
+ feedbackTitle2: 'Has Acertado!',
52
+ feedbackTitle3: 'Has fallado!',
53
+ feedbackBody1: 'NOOOOO fatal de los fatales no cojas esto',
54
+ feedbackBody2: 'BIEN Elegiste Bien',
55
+ feedbackBody3: 'NOOOOO fatal de los fatales no cojas esto',
56
+ documentTitle1: 'Las Clases Del Señor X',
57
+ documentTitle2: 'La Odisea una aventura extrema',
58
+ documentTitle3: 'Estimado Señor de las pastillas azules',
59
+ documentTitle4: 'La noticia del siglo',
60
+ documentTitle5: 'Comparte es importante'
61
+ };
62
+ exports.messages = messages;
63
+ var mock = {
64
+ emitEvent: emitEvent,
65
+ texts: [{
66
+ type: 'fixed',
67
+ fullText: messages.fullText1
68
+ }, {
69
+ type: 'election',
70
+ electionTexts: [{
71
+ previewText: messages.previewText3,
72
+ correct: false,
73
+ fullText: messages.fullText6,
74
+ feedback: {
75
+ title: null,
76
+ body: null,
77
+ rewards: [{
78
+ id: 'k49zf40n',
79
+ name: 'asd',
80
+ points: 1,
81
+ type: 'score'
82
+ }]
83
+ }
84
+ }, {
85
+ previewText: messages.previewText4,
86
+ correct: false,
87
+ fullText: messages.fullText7,
88
+ feedback: {
89
+ title: null,
90
+ body: null,
91
+ rewards: [{
92
+ id: 'k49zf40n',
93
+ name: 'asd',
94
+ points: 1,
95
+ type: 'score'
96
+ }]
97
+ }
98
+ }, {
99
+ previewText: messages.previewText5,
100
+ correct: false,
101
+ fullText: messages.fullText8,
102
+ feedback: {
103
+ title: null,
104
+ body: null,
105
+ rewards: [{
106
+ id: 'k49zf40n',
107
+ name: 'asd',
108
+ points: 1,
109
+ type: 'score'
110
+ }]
111
+ }
112
+ }]
113
+ }],
114
+ info: {
115
+ solution: {
116
+ right: {
117
+ desc: 'Great!!',
118
+ rewards: [{
119
+ id: 'k49zf40n',
120
+ name: 'asd',
121
+ points: 4,
122
+ type: 'score'
123
+ }],
124
+ desc_labelId: 'desc_bEo7Tp88'
125
+ },
126
+ wrong: {
127
+ desc: 'Boooo',
128
+ rewards: [{
129
+ id: 'k49zf40n',
130
+ name: 'asd',
131
+ points: -1,
132
+ type: 'score'
133
+ }],
134
+ desc_labelId: 'desc_bEo7TrDd'
135
+ }
136
+ },
137
+ hint: {
138
+ active: true,
139
+ desc: 'Just choose',
140
+ rewards: [{
141
+ id: 'k49zf40n',
142
+ name: 'asd',
143
+ points: -1,
144
+ type: 'score'
145
+ }],
146
+ desc_labelId: 'desc_bEo7TTUl'
147
+ },
148
+ resolve: {
149
+ rewards: [{
150
+ id: 'k49zf40n',
151
+ name: 'asd',
152
+ points: -4,
153
+ type: 'score'
154
+ }]
155
+ },
156
+ title: 'Writter Title',
157
+ instructions: 'Instructions for doing this Puzzle',
158
+ description: 'This is a puzzle about writting',
159
+ title_labelId: 'title_bEo7SRDk',
160
+ instructions_labelId: 'instructions_bEo7TDEq'
161
+ },
162
+ styles: 'chalkboard',
163
+ type: 'document',
164
+ visible: true,
165
+ retry: true,
166
+ skip: true,
167
+ documentTitle: messages.documentTitle1
168
+ };
169
+ exports.mock = mock;
170
+ var mock2 = {
171
+ emitEvent: emitEvent,
172
+ texts: [{
173
+ type: 'fixed',
174
+ fullText: messages.fullText1
175
+ }, {
176
+ type: 'fixed',
177
+ fullText: messages.fullText2
178
+ }, {
179
+ type: 'election',
180
+ electionTexts: [{
181
+ previewText: messages.previewText1,
182
+ correct: false,
183
+ fullText: messages.fullText3,
184
+ feedback: {
185
+ title: null,
186
+ body: null,
187
+ rewards: []
188
+ }
189
+ }, {
190
+ previewText: messages.previewText2,
191
+ correct: true,
192
+ fullText: messages.fullText4,
193
+ feedback: {
194
+ title: null,
195
+ body: null,
196
+ rewards: []
197
+ }
198
+ }, {
199
+ previewText: '',
200
+ correct: false,
201
+ fullText: messages.fullText5,
202
+ feedback: {
203
+ title: null,
204
+ body: null,
205
+ rewards: []
206
+ }
207
+ }]
208
+ }, {
209
+ type: 'fixed',
210
+ fullText: messages.fullText6
211
+ }, {
212
+ type: 'election',
213
+ electionTexts: [{
214
+ previewText: messages.previewText3,
215
+ correct: true,
216
+ fullText: messages.fullText6,
217
+ feedback: {
218
+ title: null,
219
+ body: null,
220
+ rewards: []
221
+ }
222
+ }, {
223
+ previewText: messages.previewText4,
224
+ correct: false,
225
+ fullText: messages.fullText7,
226
+ feedback: {
227
+ title: null,
228
+ body: null,
229
+ rewards: []
230
+ }
231
+ }, {
232
+ previewText: messages.previewText5,
233
+ correct: false,
234
+ fullText: messages.fullText8,
235
+ feedback: {
236
+ title: null,
237
+ body: null,
238
+ rewards: []
239
+ }
240
+ }]
241
+ }, {
242
+ type: 'fixed',
243
+ fullText: messages.fullText9
244
+ }, {
245
+ type: 'election',
246
+ electionTexts: [{
247
+ previewText: messages.previewText6,
248
+ correct: false,
249
+ fullText: messages.fullText10,
250
+ feedback: {
251
+ title: messages.feedbackTitle1,
252
+ body: messages.feedbackBody1,
253
+ rewards: [{
254
+ id: 'k843nns2',
255
+ name: 'Power',
256
+ points: -22,
257
+ type: 'score'
258
+ }, {
259
+ id: 'k843nns2',
260
+ name: 'Power',
261
+ points: -2,
262
+ type: 'score'
263
+ }]
264
+ }
265
+ }, {
266
+ previewText: messages.previewText7,
267
+ correct: true,
268
+ fullText: messages.fullText11,
269
+ feedback: {
270
+ title: messages.feedbackTitle2,
271
+ body: messages.feedbackBody2,
272
+ rewards: [{
273
+ id: 'k843nns2',
274
+ name: 'Power',
275
+ points: 22,
276
+ type: 'score'
277
+ }, {
278
+ id: 'k843nns2',
279
+ name: 'Power',
280
+ points: 2,
281
+ type: 'score'
282
+ }]
283
+ }
284
+ }, {
285
+ previewText: messages.previewText8,
286
+ correct: false,
287
+ fullText: messages.fullText12,
288
+ feedback: {
289
+ title: messages.feedbackTitle3,
290
+ body: messages.feedbackBody3,
291
+ rewards: [{
292
+ id: 'k843nns2',
293
+ name: 'Power',
294
+ points: -22,
295
+ type: 'score'
296
+ }, {
297
+ id: 'k843nns2',
298
+ name: 'Power',
299
+ points: -2,
300
+ type: 'score'
301
+ }]
302
+ }
303
+ }]
304
+ }, {
305
+ type: 'fixed',
306
+ fullText: messages.fullText13
307
+ }],
308
+ info: {
309
+ solution: {
310
+ right: {
311
+ desc: 'Great!!',
312
+ rewards: [],
313
+ desc_labelId: 'desc_bEo7Tp88'
314
+ },
315
+ wrong: {
316
+ desc: 'Boooo',
317
+ rewards: [],
318
+ desc_labelId: 'desc_bEo7TrDd'
319
+ }
320
+ },
321
+ hint: {
322
+ active: true,
323
+ desc: 'Just choose',
324
+ rewards: [{
325
+ id: 'k7d3gq9i',
326
+ name: 'asdasd',
327
+ rewards: -10,
328
+ type: 'score'
329
+ }],
330
+ desc_labelId: 'desc_bEo7TTUl'
331
+ },
332
+ resolve: {
333
+ rewards: [{
334
+ id: 'k7d3gq9i',
335
+ name: 'asdasd',
336
+ rewards: 100,
337
+ type: 'score'
338
+ }]
339
+ },
340
+ title: 'Writter Title',
341
+ instructions: 'Instructions for doing this Puzzle',
342
+ description: 'This is a puzzle about writting',
343
+ title_labelId: 'title_bEo7SRDk',
344
+ instructions_labelId: 'instructions_bEo7TDEq'
345
+ },
346
+ styles: 'handwrittenDocument',
347
+ type: 'view',
348
+ visible: true,
349
+ retry: true,
350
+ skip: true,
351
+ documentTitle: messages.documentTitle2
352
+ };
353
+ exports.mock2 = mock2;
354
+ var mock3 = {
355
+ emitEvent: emitEvent,
356
+ texts: [{
357
+ type: 'fixed',
358
+ fullText: messages.fullText1
359
+ }, {
360
+ type: 'fixed',
361
+ fullText: messages.fullText2
362
+ }, {
363
+ type: 'election',
364
+ electionTexts: [{
365
+ previewText: messages.previewText1,
366
+ correct: false,
367
+ fullText: messages.fullText3,
368
+ feedback: {
369
+ title: null,
370
+ body: null,
371
+ rewards: []
372
+ }
373
+ }, {
374
+ previewText: messages.previewText2,
375
+ correct: true,
376
+ fullText: messages.fullText4,
377
+ feedback: {
378
+ title: null,
379
+ body: null,
380
+ rewards: []
381
+ }
382
+ }, {
383
+ previewText: '',
384
+ correct: false,
385
+ fullText: messages.fullText5,
386
+ feedback: {
387
+ title: null,
388
+ body: null,
389
+ rewards: []
390
+ }
391
+ }]
392
+ }, {
393
+ type: 'fixed',
394
+ fullText: messages.fullText6
395
+ }, {
396
+ type: 'election',
397
+ electionTexts: [{
398
+ previewText: messages.previewText3,
399
+ correct: true,
400
+ fullText: messages.fullText6,
401
+ feedback: {
402
+ title: null,
403
+ body: null,
404
+ rewards: []
405
+ }
406
+ }, {
407
+ previewText: messages.previewText4,
408
+ correct: false,
409
+ fullText: messages.fullText7,
410
+ feedback: {
411
+ title: null,
412
+ body: null,
413
+ rewards: []
414
+ }
415
+ }, {
416
+ previewText: messages.previewText5,
417
+ correct: false,
418
+ fullText: messages.fullText8,
419
+ feedback: {
420
+ title: null,
421
+ body: null,
422
+ rewards: []
423
+ }
424
+ }]
425
+ }, {
426
+ type: 'fixed',
427
+ fullText: messages.fullText9
428
+ }, {
429
+ type: 'election',
430
+ electionTexts: [{
431
+ previewText: messages.previewText6,
432
+ correct: false,
433
+ fullText: messages.fullText10,
434
+ feedback: {
435
+ title: messages.feedbackTitle1,
436
+ body: messages.feedbackBody1,
437
+ rewards: []
438
+ }
439
+ }, {
440
+ previewText: messages.previewText7,
441
+ correct: true,
442
+ fullText: messages.fullText11,
443
+ feedback: {
444
+ title: messages.feedbackTitle2,
445
+ body: messages.feedbackBody2,
446
+ rewards: []
447
+ }
448
+ }, {
449
+ previewText: messages.previewText8,
450
+ correct: false,
451
+ fullText: messages.fullText12,
452
+ feedback: {
453
+ title: messages.feedbackTitle3,
454
+ body: messages.feedbackBody3,
455
+ rewards: []
456
+ }
457
+ }]
458
+ }, {
459
+ type: 'fixed',
460
+ fullText: messages.fullText13
461
+ }],
462
+ info: {
463
+ solution: {
464
+ right: {
465
+ desc: 'Great!!',
466
+ rewards: [],
467
+ desc_labelId: 'desc_bEo7Tp88'
468
+ },
469
+ wrong: {
470
+ desc: 'Boooo',
471
+ rewards: [],
472
+ desc_labelId: 'desc_bEo7TrDd'
473
+ }
474
+ },
475
+ hint: {
476
+ active: true,
477
+ desc: 'Just choose',
478
+ rewards: [{
479
+ id: 'k7d3gq9i',
480
+ name: 'asdasd',
481
+ rewards: -10,
482
+ type: 'score'
483
+ }],
484
+ desc_labelId: 'desc_bEo7TTUl'
485
+ },
486
+ resolve: {
487
+ rewards: [{
488
+ id: 'k7d3gq9i',
489
+ name: 'asdasd',
490
+ rewards: 100,
491
+ type: 'score'
492
+ }]
493
+ },
494
+ title: 'Writter Title',
495
+ instructions: 'Instructions for doing this Puzzle',
496
+ description: 'This is a puzzle about writting',
497
+ title_labelId: 'title_bEo7SRDk',
498
+ instructions_labelId: 'instructions_bEo7TDEq'
499
+ },
500
+ styles: 'email',
501
+ type: 'document',
502
+ visible: true,
503
+ retry: true,
504
+ skip: true,
505
+ documentTitle: messages.documentTitle3
506
+ };
507
+ exports.mock3 = mock3;
508
+ var mock4 = {
509
+ emitEvent: emitEvent,
510
+ texts: [{
511
+ type: 'fixed',
512
+ fullText: messages.fullText1
513
+ }, {
514
+ type: 'fixed',
515
+ fullText: messages.fullText2
516
+ }, {
517
+ type: 'election',
518
+ electionTexts: [{
519
+ previewText: messages.previewText1,
520
+ correct: false,
521
+ fullText: messages.fullText3,
522
+ feedback: {
523
+ title: null,
524
+ body: null,
525
+ rewards: []
526
+ }
527
+ }, {
528
+ previewText: messages.previewText2,
529
+ correct: true,
530
+ fullText: messages.fullText4,
531
+ feedback: {
532
+ title: null,
533
+ body: null,
534
+ rewards: []
535
+ }
536
+ }, {
537
+ previewText: '',
538
+ correct: false,
539
+ fullText: messages.fullText5,
540
+ feedback: {
541
+ title: null,
542
+ body: null,
543
+ rewards: []
544
+ }
545
+ }]
546
+ }, {
547
+ type: 'fixed',
548
+ fullText: messages.fullText6
549
+ }, {
550
+ type: 'election',
551
+ electionTexts: [{
552
+ previewText: messages.previewText3,
553
+ correct: true,
554
+ fullText: messages.fullText6,
555
+ feedback: {
556
+ title: null,
557
+ body: null,
558
+ rewards: []
559
+ }
560
+ }, {
561
+ previewText: messages.previewText4,
562
+ correct: false,
563
+ fullText: messages.fullText7,
564
+ feedback: {
565
+ title: null,
566
+ body: null,
567
+ rewards: []
568
+ }
569
+ }, {
570
+ previewText: messages.previewText5,
571
+ correct: false,
572
+ fullText: messages.fullText8,
573
+ feedback: {
574
+ title: null,
575
+ body: null,
576
+ rewards: []
577
+ }
578
+ }]
579
+ }, {
580
+ type: 'fixed',
581
+ fullText: messages.fullText9
582
+ }, {
583
+ type: 'election',
584
+ electionTexts: [{
585
+ previewText: messages.previewText6,
586
+ correct: false,
587
+ fullText: messages.fullText10,
588
+ feedback: {
589
+ title: messages.feedbackTitle1,
590
+ body: messages.feedbackBody1,
591
+ rewards: [{
592
+ id: 'k843nns2',
593
+ name: 'Power',
594
+ points: -22,
595
+ type: 'score'
596
+ }, {
597
+ id: 'k843nns2',
598
+ name: 'Power',
599
+ points: -2,
600
+ type: 'score'
601
+ }]
602
+ }
603
+ }, {
604
+ previewText: messages.previewText7,
605
+ correct: true,
606
+ fullText: messages.fullText11,
607
+ feedback: {
608
+ title: messages.feedbackTitle2,
609
+ body: messages.feedbackBody2,
610
+ rewards: [{
611
+ id: 'k843nns2',
612
+ name: 'Power',
613
+ points: 22,
614
+ type: 'score'
615
+ }, {
616
+ id: 'k843nns2',
617
+ name: 'Power',
618
+ points: 2,
619
+ type: 'score'
620
+ }]
621
+ }
622
+ }, {
623
+ previewText: messages.previewText8,
624
+ correct: false,
625
+ fullText: messages.fullText12,
626
+ feedback: {
627
+ title: messages.feedbackTitle3,
628
+ body: messages.feedbackBody3,
629
+ rewards: [{
630
+ id: 'k843nns2',
631
+ name: 'Power',
632
+ points: -22,
633
+ type: 'score'
634
+ }, {
635
+ id: 'k843nns2',
636
+ name: 'Power',
637
+ points: -2,
638
+ type: 'score'
639
+ }]
640
+ }
641
+ }]
642
+ }, {
643
+ type: 'fixed',
644
+ fullText: messages.fullText13
645
+ }],
646
+ info: {
647
+ solution: {
648
+ right: {
649
+ desc: 'Great!!',
650
+ rewards: [],
651
+ desc_labelId: 'desc_bEo7Tp88'
652
+ },
653
+ wrong: {
654
+ desc: 'Boooo',
655
+ rewards: [],
656
+ desc_labelId: 'desc_bEo7TrDd'
657
+ }
658
+ },
659
+ hint: {
660
+ active: true,
661
+ desc: 'Just choose',
662
+ rewards: [{
663
+ id: 'k7d3gq9i',
664
+ name: 'asdasd',
665
+ rewards: -10,
666
+ type: 'score'
667
+ }],
668
+ desc_labelId: 'desc_bEo7TTUl'
669
+ },
670
+ resolve: {
671
+ rewards: [{
672
+ id: 'k7d3gq9i',
673
+ name: 'asdasd',
674
+ rewards: 100,
675
+ type: 'score'
676
+ }]
677
+ },
678
+ title: 'Writter Title',
679
+ instructions: 'Instructions for doing this Puzzle',
680
+ description: 'This is a puzzle about writting',
681
+ title_labelId: 'title_bEo7SRDk',
682
+ instructions_labelId: 'instructions_bEo7TDEq'
683
+ },
684
+ styles: 'typeWriter',
685
+ type: 'document',
686
+ visible: true,
687
+ retry: true,
688
+ skip: true,
689
+ documentTitle: messages.documentTitle4
690
+ };
691
+ exports.mock4 = mock4;
692
+ var mock5 = {
693
+ emitEvent: emitEvent,
694
+ texts: [{
695
+ type: 'fixed',
696
+ fullText: messages.fullText11
697
+ }, {
698
+ type: 'election',
699
+ electionTexts: [{
700
+ previewText: messages.previewText1,
701
+ correct: false,
702
+ fullText: messages.fullText3,
703
+ feedback: {
704
+ title: null,
705
+ body: null,
706
+ rewards: []
707
+ }
708
+ }, {
709
+ previewText: messages.previewText2,
710
+ correct: false,
711
+ fullText: messages.fullText4,
712
+ feedback: {
713
+ title: null,
714
+ body: null,
715
+ rewards: []
716
+ }
717
+ }, {
718
+ previewText: '',
719
+ correct: false,
720
+ fullText: messages.fullText5,
721
+ feedback: {
722
+ title: null,
723
+ body: null,
724
+ rewards: []
725
+ }
726
+ }]
727
+ }, {
728
+ type: 'fixed',
729
+ fullText: messages.fullText6
730
+ }],
731
+ info: {
732
+ solution: {
733
+ right: {
734
+ desc: 'Great!!',
735
+ rewards: [],
736
+ desc_labelId: 'desc_bEo7Tp88'
737
+ },
738
+ wrong: {
739
+ desc: 'Boooo',
740
+ rewards: [],
741
+ desc_labelId: 'desc_bEo7TrDd'
742
+ }
743
+ },
744
+ hint: {
745
+ active: true,
746
+ desc: 'Just choose',
747
+ rewards: [{
748
+ id: 'k7d3gq9i',
749
+ name: 'asdasd',
750
+ rewards: -10,
751
+ type: 'score'
752
+ }],
753
+ desc_labelId: 'desc_bEo7TTUl'
754
+ },
755
+ resolve: {
756
+ rewards: [{
757
+ id: 'k7d3gq9i',
758
+ name: 'asdasd',
759
+ rewards: 100,
760
+ type: 'score'
761
+ }]
762
+ },
763
+ title: 'Writter Title',
764
+ instructions: 'Instructions for doing this Puzzle',
765
+ description: 'This is a puzzle about writting',
766
+ title_labelId: 'title_bEo7SRDk',
767
+ instructions_labelId: 'instructions_bEo7TDEq'
768
+ },
769
+ styles: 'pacebook',
770
+ type: 'view',
771
+ visible: true,
772
+ retry: false,
773
+ skip: false,
774
+ documentTitle: messages.documentTitle5
775
+ };
776
+ exports.mock5 = mock5;
777
+ var mock6 = {
778
+ emitEvent: emitEvent,
779
+ texts: [{
780
+ type: 'fixed',
781
+ fullText: messages.fullText11
782
+ }, {
783
+ type: 'election',
784
+ electionTexts: [{
785
+ previewText: messages.previewText1,
786
+ correct: false,
787
+ fullText: messages.fullText3,
788
+ feedback: {
789
+ title: null,
790
+ body: null,
791
+ rewards: []
792
+ }
793
+ }, {
794
+ previewText: messages.previewText2,
795
+ correct: false,
796
+ fullText: messages.fullText4,
797
+ feedback: {
798
+ title: null,
799
+ body: null,
800
+ rewards: []
801
+ }
802
+ }, {
803
+ previewText: '',
804
+ correct: false,
805
+ fullText: messages.fullText5,
806
+ feedback: {
807
+ title: null,
808
+ body: null,
809
+ rewards: []
810
+ }
811
+ }]
812
+ }, {
813
+ type: 'fixed',
814
+ fullText: messages.fullText6
815
+ }],
816
+ info: {
817
+ solution: {
818
+ right: {
819
+ desc: 'Great!!',
820
+ rewards: [],
821
+ desc_labelId: 'desc_bEo7Tp88'
822
+ },
823
+ wrong: {
824
+ desc: 'Boooo',
825
+ rewards: [],
826
+ desc_labelId: 'desc_bEo7TrDd'
827
+ }
828
+ },
829
+ hint: {
830
+ active: true,
831
+ desc: 'Just choose',
832
+ rewards: [{
833
+ id: 'k7d3gq9i',
834
+ name: 'asdasd',
835
+ rewards: -10,
836
+ type: 'score'
837
+ }],
838
+ desc_labelId: 'desc_bEo7TTUl'
839
+ },
840
+ resolve: {
841
+ rewards: [{
842
+ id: 'k7d3gq9i',
843
+ name: 'asdasd',
844
+ rewards: 100,
845
+ type: 'score'
846
+ }]
847
+ },
848
+ title: 'Writter Title',
849
+ instructions: 'Instructions for doing this Puzzle',
850
+ description: 'This is a puzzle about writting',
851
+ title_labelId: 'title_bEo7SRDk',
852
+ instructions_labelId: 'instructions_bEo7TDEq'
853
+ },
854
+ styles: 'document',
855
+ type: 'view',
856
+ visible: true,
857
+ retry: false,
858
+ skip: false,
859
+ documentTitle: messages.documentTitle6
860
+ };
861
+ exports.mock6 = mock6;