@gamelearn/arcade-components 0.22.7 → 0.22.9
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/chained-image-click-puzzle-component/components/CurrentImagePuzzle.js +41 -9
- package/dist/components/chained-image-click-puzzle-component/mocks/mockForStory.js +264 -3
- package/dist/components/conversational-pro-component/components/Message.js +1 -3
- package/dist/components/frame-click-puzzle-component/components/CurrentFramePuzzle.js +46 -11
- package/dist/components/frame-click-puzzle-component/components/FrameClickPuzzleComponent.js +8 -1
- package/dist/components/frame-click-puzzle-component/mocks/mockForStory.js +417 -6
- package/dist/components/image-click-puzzle-component/mocks/mockForStory.js +1 -1
- package/dist/components/image-click-wrapper-component/components/ImageClickWrapperComponent.js +120 -83
- package/dist/components/image-click-wrapper-component/mocks/mockForStory.js +77 -2
- package/dist/components/konva-components/Area/index.js +1 -1
- package/dist/components/konva-components/KonvaMapper.js +1 -1
- package/dist/components/text-click-puzzle-component/components/TextClickPuzzleComponent.js +19 -9
- package/dist/components/text-click-puzzle-component/mocks/mockForStory.js +245 -6
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.mockProps = exports.messages = void 0;
|
|
6
|
+
exports.mockPropsOnce = exports.mockProps = exports.messages = void 0;
|
|
7
7
|
|
|
8
8
|
var emitEvent = function emitEvent(_ref) {
|
|
9
9
|
var type = _ref.type,
|
|
@@ -25,6 +25,7 @@ exports.messages = messages;
|
|
|
25
25
|
var mockProps = {
|
|
26
26
|
emitEvent: emitEvent,
|
|
27
27
|
setResolveAction: function setResolveAction() {},
|
|
28
|
+
setShowPoints: function setShowPoints() {},
|
|
28
29
|
showFrames: true,
|
|
29
30
|
soundActions: [function () {}, function () {}],
|
|
30
31
|
styles: 'chalkboard',
|
|
@@ -39,6 +40,7 @@ var mockProps = {
|
|
|
39
40
|
}],
|
|
40
41
|
hasClickOrder: false,
|
|
41
42
|
hasHighlights: true,
|
|
43
|
+
hasClickOnce: false,
|
|
42
44
|
info: {
|
|
43
45
|
solution: {
|
|
44
46
|
right: {
|
|
@@ -103,8 +105,8 @@ var mockProps = {
|
|
|
103
105
|
},
|
|
104
106
|
text: messages.fullText1,
|
|
105
107
|
wrongTexts: [{
|
|
106
|
-
id:
|
|
107
|
-
value:
|
|
108
|
+
id: 'text-click-2',
|
|
109
|
+
value: 'este value no le hace falta a arcade'
|
|
108
110
|
}]
|
|
109
111
|
}, {
|
|
110
112
|
allWrong: false,
|
|
@@ -117,6 +119,7 @@ var mockProps = {
|
|
|
117
119
|
}],
|
|
118
120
|
hasClickOrder: false,
|
|
119
121
|
hasHighlights: true,
|
|
122
|
+
hasClickOnce: false,
|
|
120
123
|
info: {
|
|
121
124
|
solution: {
|
|
122
125
|
right: {
|
|
@@ -191,10 +194,245 @@ var mockProps = {
|
|
|
191
194
|
text: messages.fullText2,
|
|
192
195
|
wrongTexts: [{
|
|
193
196
|
id: 'text-click-5',
|
|
194
|
-
value:
|
|
197
|
+
value: 'este value no le hace falta a arcade'
|
|
195
198
|
}, {
|
|
196
199
|
id: 'text-click-6',
|
|
197
|
-
value:
|
|
200
|
+
value: 'este value no le hace falta a arcade'
|
|
201
|
+
}]
|
|
202
|
+
}, {
|
|
203
|
+
allWrong: true,
|
|
204
|
+
correctTexts: [{
|
|
205
|
+
id: 'text-click-8',
|
|
206
|
+
value: 'este value no le hace falta a arcade'
|
|
207
|
+
}],
|
|
208
|
+
hasClickOrder: false,
|
|
209
|
+
hasHighlights: false,
|
|
210
|
+
hasClickOnce: false,
|
|
211
|
+
info: {
|
|
212
|
+
solution: {
|
|
213
|
+
right: {
|
|
214
|
+
desc: '',
|
|
215
|
+
rewards: [{
|
|
216
|
+
id: 'k2koxnkq',
|
|
217
|
+
name: 'Power',
|
|
218
|
+
points: 10,
|
|
219
|
+
type: 'score'
|
|
220
|
+
}]
|
|
221
|
+
},
|
|
222
|
+
wrong: {
|
|
223
|
+
desc: '',
|
|
224
|
+
rewards: [{
|
|
225
|
+
id: 'k2koxnkq',
|
|
226
|
+
name: 'Power',
|
|
227
|
+
points: -10,
|
|
228
|
+
type: 'score'
|
|
229
|
+
}]
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
hint: {
|
|
233
|
+
active: false,
|
|
234
|
+
desc: '',
|
|
235
|
+
rewards: []
|
|
236
|
+
},
|
|
237
|
+
resolve: {
|
|
238
|
+
rewards: []
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
itemOrder: 3,
|
|
242
|
+
specificFeedbacks: {
|
|
243
|
+
correctFeedbacks: [{
|
|
244
|
+
id: 'text-click-8',
|
|
245
|
+
desc: 'text-click-8',
|
|
246
|
+
rewards: [{
|
|
247
|
+
id: 'k2koxnkq',
|
|
248
|
+
name: 'Power',
|
|
249
|
+
points: 10,
|
|
250
|
+
type: 'score'
|
|
251
|
+
}]
|
|
252
|
+
}],
|
|
253
|
+
wrongFeedbacks: []
|
|
254
|
+
},
|
|
255
|
+
text: messages.fullText3,
|
|
256
|
+
wrongTexts: []
|
|
257
|
+
}]
|
|
258
|
+
};
|
|
259
|
+
exports.mockProps = mockProps;
|
|
260
|
+
var mockPropsOnce = {
|
|
261
|
+
emitEvent: emitEvent,
|
|
262
|
+
setResolveAction: function setResolveAction() {},
|
|
263
|
+
setShowPoints: function setShowPoints() {},
|
|
264
|
+
showFrames: true,
|
|
265
|
+
soundActions: [function () {}, function () {}],
|
|
266
|
+
styles: 'chalkboard',
|
|
267
|
+
list: [{
|
|
268
|
+
allWrong: true,
|
|
269
|
+
correctTexts: [{
|
|
270
|
+
id: 'text-click-0',
|
|
271
|
+
value: 'este value no le hace falta a arcade'
|
|
272
|
+
}, {
|
|
273
|
+
id: 'text-click-1',
|
|
274
|
+
value: 'este value no le hace falta a arcade'
|
|
275
|
+
}],
|
|
276
|
+
hasClickOrder: false,
|
|
277
|
+
hasHighlights: true,
|
|
278
|
+
hasClickOnce: true,
|
|
279
|
+
info: {
|
|
280
|
+
solution: {
|
|
281
|
+
right: {
|
|
282
|
+
desc: '',
|
|
283
|
+
rewards: [{
|
|
284
|
+
id: 'k2koxnkq',
|
|
285
|
+
name: 'Power',
|
|
286
|
+
points: 10,
|
|
287
|
+
type: 'score'
|
|
288
|
+
}]
|
|
289
|
+
},
|
|
290
|
+
wrong: {
|
|
291
|
+
desc: '',
|
|
292
|
+
rewards: [{
|
|
293
|
+
id: 'k2koxnkq',
|
|
294
|
+
name: 'Power',
|
|
295
|
+
points: -10,
|
|
296
|
+
type: 'score'
|
|
297
|
+
}]
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
hint: {
|
|
301
|
+
active: false,
|
|
302
|
+
desc: '',
|
|
303
|
+
rewards: []
|
|
304
|
+
},
|
|
305
|
+
resolve: {
|
|
306
|
+
rewards: []
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
itemOrder: 1,
|
|
310
|
+
specificFeedbacks: {
|
|
311
|
+
correctFeedbacks: [{
|
|
312
|
+
id: 'text-click-0',
|
|
313
|
+
desc: '',
|
|
314
|
+
rewards: [{
|
|
315
|
+
id: 'k2koxnkq',
|
|
316
|
+
name: 'Power',
|
|
317
|
+
points: 10,
|
|
318
|
+
type: 'score'
|
|
319
|
+
}]
|
|
320
|
+
}, {
|
|
321
|
+
id: 'text-click-1',
|
|
322
|
+
desc: 'specificFeedbacks text-click-1 correcto',
|
|
323
|
+
rewards: [{
|
|
324
|
+
id: 'k2koxnkq',
|
|
325
|
+
name: 'Power',
|
|
326
|
+
points: 10,
|
|
327
|
+
type: 'score'
|
|
328
|
+
}]
|
|
329
|
+
}],
|
|
330
|
+
wrongFeedbacks: [{
|
|
331
|
+
id: 'text-click-2',
|
|
332
|
+
desc: 'specificFeedbacks text-click-2 incorrecto',
|
|
333
|
+
rewards: [{
|
|
334
|
+
id: 'k2koxnkq',
|
|
335
|
+
name: 'Power',
|
|
336
|
+
points: -10,
|
|
337
|
+
type: 'score'
|
|
338
|
+
}]
|
|
339
|
+
}]
|
|
340
|
+
},
|
|
341
|
+
text: messages.fullText1,
|
|
342
|
+
wrongTexts: [{
|
|
343
|
+
id: 'text-click-2',
|
|
344
|
+
value: 'este value no le hace falta a arcade'
|
|
345
|
+
}]
|
|
346
|
+
}, {
|
|
347
|
+
allWrong: false,
|
|
348
|
+
correctTexts: [{
|
|
349
|
+
id: 'text-click-4',
|
|
350
|
+
value: 'este value no le hace falta a arcade'
|
|
351
|
+
}, {
|
|
352
|
+
id: 'text-click-7',
|
|
353
|
+
value: 'este value no le hace falta a arcade'
|
|
354
|
+
}],
|
|
355
|
+
hasClickOrder: false,
|
|
356
|
+
hasHighlights: true,
|
|
357
|
+
hasClickOnce: true,
|
|
358
|
+
info: {
|
|
359
|
+
solution: {
|
|
360
|
+
right: {
|
|
361
|
+
desc: '',
|
|
362
|
+
rewards: [{
|
|
363
|
+
id: 'k2koxnkq',
|
|
364
|
+
name: 'Power',
|
|
365
|
+
points: 10,
|
|
366
|
+
type: 'score'
|
|
367
|
+
}]
|
|
368
|
+
},
|
|
369
|
+
wrong: {
|
|
370
|
+
desc: '',
|
|
371
|
+
rewards: [{
|
|
372
|
+
id: 'k2koxnkq',
|
|
373
|
+
name: 'Power',
|
|
374
|
+
points: 10,
|
|
375
|
+
type: 'score'
|
|
376
|
+
}]
|
|
377
|
+
}
|
|
378
|
+
},
|
|
379
|
+
hint: {
|
|
380
|
+
active: false,
|
|
381
|
+
desc: '',
|
|
382
|
+
rewards: []
|
|
383
|
+
},
|
|
384
|
+
resolve: {
|
|
385
|
+
rewards: []
|
|
386
|
+
}
|
|
387
|
+
},
|
|
388
|
+
itemOrder: 2,
|
|
389
|
+
specificFeedbacks: {
|
|
390
|
+
correctFeedbacks: [{
|
|
391
|
+
id: 'text-click-4',
|
|
392
|
+
desc: 'item 2 specificFeedbacks correctFeedbacks 4 (1)',
|
|
393
|
+
rewards: [{
|
|
394
|
+
id: 'k2koxnkq',
|
|
395
|
+
name: 'Power',
|
|
396
|
+
points: 10,
|
|
397
|
+
type: 'score'
|
|
398
|
+
}]
|
|
399
|
+
}, {
|
|
400
|
+
id: 'text-click-7',
|
|
401
|
+
desc: '',
|
|
402
|
+
rewards: [{
|
|
403
|
+
id: 'k2koxnkq',
|
|
404
|
+
name: 'Power',
|
|
405
|
+
points: -10,
|
|
406
|
+
type: 'score'
|
|
407
|
+
}]
|
|
408
|
+
}],
|
|
409
|
+
wrongFeedbacks: [{
|
|
410
|
+
id: 'text-click-6',
|
|
411
|
+
desc: 'item 6 specificFeedbacks wrongFeedbacks 6 (1)',
|
|
412
|
+
rewards: [{
|
|
413
|
+
id: 'k2koxnkq',
|
|
414
|
+
name: 'Power',
|
|
415
|
+
points: -10,
|
|
416
|
+
type: 'score'
|
|
417
|
+
}]
|
|
418
|
+
}, {
|
|
419
|
+
id: 'text-click-5',
|
|
420
|
+
desc: 'item 5 specificFeedbacks wrongFeedbacks 5 (1)',
|
|
421
|
+
rewards: [{
|
|
422
|
+
id: 'k2koxnkq',
|
|
423
|
+
name: 'Power',
|
|
424
|
+
points: -10,
|
|
425
|
+
type: 'score'
|
|
426
|
+
}]
|
|
427
|
+
}]
|
|
428
|
+
},
|
|
429
|
+
text: messages.fullText2,
|
|
430
|
+
wrongTexts: [{
|
|
431
|
+
id: 'text-click-5',
|
|
432
|
+
value: 'este value no le hace falta a arcade'
|
|
433
|
+
}, {
|
|
434
|
+
id: 'text-click-6',
|
|
435
|
+
value: 'este value no le hace falta a arcade'
|
|
198
436
|
}]
|
|
199
437
|
}, {
|
|
200
438
|
allWrong: true,
|
|
@@ -204,6 +442,7 @@ var mockProps = {
|
|
|
204
442
|
}],
|
|
205
443
|
hasClickOrder: false,
|
|
206
444
|
hasHighlights: false,
|
|
445
|
+
hasClickOnce: true,
|
|
207
446
|
info: {
|
|
208
447
|
solution: {
|
|
209
448
|
right: {
|
|
@@ -252,4 +491,4 @@ var mockProps = {
|
|
|
252
491
|
wrongTexts: []
|
|
253
492
|
}]
|
|
254
493
|
};
|
|
255
|
-
exports.
|
|
494
|
+
exports.mockPropsOnce = mockPropsOnce;
|