@clickview/player 0.0.8-dev.1 → 0.0.8-dev.3

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 (57) hide show
  1. package/dist/en.json +1 -1
  2. package/dist/libs/shared/src/apps/search/interfaces/SearchFilter.d.ts +1 -0
  3. package/dist/libs/shared/src/components/actions/Actions.d.ts +1 -0
  4. package/dist/libs/shared/src/components/avatar/Avatar.d.ts +1 -0
  5. package/dist/libs/shared/src/components/feedback-tooltip/FeedbackTooltip.d.ts +1 -0
  6. package/dist/libs/shared/src/components/image-cropper/SimpleCropper.d.ts +1 -0
  7. package/dist/libs/shared/src/components/immersive-reader/ImmersiveReader.d.ts +1 -0
  8. package/dist/libs/shared/src/components/interaction-answers/multiple-choice/MultipleChoiceInteractionAnswers.d.ts +1 -0
  9. package/dist/libs/shared/src/components/interaction-answers/true-or-false/TrueOrFalseInteractionAnswers.d.ts +1 -0
  10. package/dist/libs/shared/src/components/interactive-questions/InteractionLabel.d.ts +1 -0
  11. package/dist/libs/shared/src/components/svg-container/SvgContainer.d.ts +1 -0
  12. package/dist/libs/shared/src/hooks/UseLazyLoad.d.ts +10 -1
  13. package/dist/libs/shared/src/images/svg/ImportedSvgs.d.ts +1 -0
  14. package/dist/libs/shared/src/images/svg/objects/index.d.ts +2 -1
  15. package/dist/libs/shared/src/interfaces/models/Video.d.ts +2 -0
  16. package/dist/libs/shared/src/interfaces/models/VideoHistory.d.ts +3 -1
  17. package/dist/libs/shared/src/interfaces/responses/UnionWrapper.d.ts +4 -0
  18. package/dist/libs/shared/src/interfaces/responses/index.d.ts +1 -0
  19. package/dist/libs/shared/src/utils/UserHelper.d.ts +2 -0
  20. package/dist/player-app.js +4 -4
  21. package/dist/projects/player/src/plugins/engagement-overlay-plugin/components/timepoint-interactions/timepoint-interactions.d.ts +1 -0
  22. package/dist/projects/player/src/plugins/interactive-plugin/components/create-components/create-annotation/create-annotation-link.d.ts +1 -0
  23. package/dist/projects/player/src/plugins/interactive-plugin/components/create-components/create-image/create-image-cropper.d.ts +1 -0
  24. package/dist/projects/player/src/plugins/interactive-plugin/components/create-components/create-image/upload-image-icon.d.ts +1 -0
  25. package/dist/projects/player/src/plugins/interactive-plugin/components/create-components/create-missing-word/create-missing-word.d.ts +1 -0
  26. package/dist/projects/player/src/plugins/interactive-plugin/components/create-components/create-multiple-choice/create-multiple-choice.d.ts +1 -0
  27. package/dist/projects/player/src/plugins/interactive-plugin/components/create-components/create-multiple-choice/multiple-choice-answer.d.ts +1 -0
  28. package/package.json +3 -3
  29. package/.storybook/main.js +0 -23
  30. package/.storybook/preview-head.html +0 -4
  31. package/.storybook/stories/Base.stories.tsx +0 -133
  32. package/.storybook/stories/Clips.stories.tsx +0 -80
  33. package/.storybook/stories/Interactives.stories.tsx +0 -64
  34. package/.storybook/stories/Resources.stories.tsx +0 -15
  35. package/.storybook/stories/Subtitles.stories.tsx +0 -22
  36. package/.storybook/stories/assets/chapters.vtt +0 -19
  37. package/.storybook/stories/assets/en.vtt +0 -8
  38. package/.storybook/stories/assets/es.vtt +0 -8
  39. package/.storybook/stories/assets/fr.vtt +0 -8
  40. package/.storybook/stories/assets/interactive.json +0 -451
  41. package/.storybook/stories/assets/sample_1280x720.mp4.jpg +0 -0
  42. package/.storybook/stories/assets/sample_1280x720.mp4.vtx +0 -0
  43. package/.storybook/stories/assets/thumbnails.vtt +0 -62
  44. package/.storybook/stories/assets/vertical.mp4 +0 -0
  45. package/.storybook/stories/utils/Wrap.tsx +0 -18
  46. package/.storybook/stories/utils/mock-playerapi.ts +0 -361
  47. package/.storybook/stories/utils/mock-setup.ts +0 -16
  48. package/dist/libs/analytics/src/utils/VideoDataFormatHelper.d.ts +0 -42
  49. package/dist/libs/shared/src/components/thumbnails/base/BaseThumbnail.d.ts +0 -26
  50. package/dist/libs/shared/src/images/svg/player/index.d.ts +0 -14
  51. package/dist/libs/shared/src/interfaces/FavouriteVideoFunc.d.ts +0 -2
  52. package/dist/libs/shared/src/interfaces/requests/CreateViewKeyRequest.d.ts +0 -3
  53. package/dist/projects/player/src/plugins/engagement-overlay-plugin/components/engagement-overlay.d.ts +0 -1
  54. package/dist/projects/player/src/plugins/example-plugin/components/example-button/example-button.d.ts +0 -1
  55. package/dist/projects/player/src/plugins/example-plugin/components/example-react-button/example-react-button.d.ts +0 -1
  56. package/dist/projects/player/src/plugins/example-plugin/example-plugin.d.ts +0 -2
  57. package/dist/projects/player/src/utils/scrollbar-helper.d.ts +0 -6
@@ -1,451 +0,0 @@
1
- {
2
- "timepoints": [{
3
- "interactions": [{
4
- "data": {
5
- "sentence": "A news website keeping track of the number of clicks stories receive is an example of a {17} tool used to gather information."
6
- },
7
- "actionableItems": [{
8
- "name": "digital",
9
- "order": 17,
10
- "isCorrect": true,
11
- "interactionId": 704598,
12
- "id": 1560253,
13
- "deleted": false,
14
- "dateCreated": "2020-11-04T23:27:03",
15
- "dateDeleted": null,
16
- "dateModified": null
17
- }],
18
- "name": "A news website keeping track of the number of clicks stories receive is an example of a _______ tool used to gather information.",
19
- "order": 0,
20
- "description": null,
21
- "errorMessage": null,
22
- "isRequired": false,
23
- "interactiveId": 190303,
24
- "timepointId": 709577,
25
- "typeId": 6,
26
- "type": {
27
- "name": "Missing word",
28
- "icon": "//static.clickview.com.au/cv-online/images/interactions/icons/missing-word-v2.png",
29
- "colour": "51ada3",
30
- "id": 6,
31
- "deleted": false,
32
- "dateCreated": "2015-10-19T09:01:50",
33
- "dateDeleted": null,
34
- "dateModified": null
35
- },
36
- "id": 704598,
37
- "deleted": false,
38
- "dateCreated": "0001-01-01T00:00:00",
39
- "dateDeleted": null,
40
- "dateModified": null
41
- }],
42
- "visibleAt": 2500,
43
- "visibleFor": null,
44
- "shouldPause": 1,
45
- "interactiveId": 190303,
46
- "id": 709577,
47
- "deleted": false,
48
- "dateCreated": "0001-01-01T00:00:00",
49
- "dateDeleted": null,
50
- "dateModified": null
51
- }, {
52
- "interactions": [{
53
- "data": {},
54
- "actionableItems": [{
55
- "name": "True",
56
- "order": 0,
57
- "isCorrect": false,
58
- "interactionId": 704603,
59
- "id": 1560263,
60
- "deleted": false,
61
- "dateCreated": "2020-11-04T23:27:41",
62
- "dateDeleted": null,
63
- "dateModified": null
64
- }, {
65
- "name": "False",
66
- "order": 1,
67
- "isCorrect": true,
68
- "interactionId": 704603,
69
- "id": 1560262,
70
- "deleted": false,
71
- "dateCreated": "2020-11-04T23:27:41",
72
- "dateDeleted": null,
73
- "dateModified": null
74
- }],
75
- "name": "A 'cookie' is term used to describe personalised, targeted advertisements.",
76
- "order": 0,
77
- "description": null,
78
- "errorMessage": null,
79
- "isRequired": false,
80
- "interactiveId": 190303,
81
- "timepointId": 709582,
82
- "typeId": 3,
83
- "type": {
84
- "name": "True or False",
85
- "icon": "//static.clickview.com.au/cv-online/images/interactions/icons/true-or-false-v2.png",
86
- "colour": "b18cbb",
87
- "id": 3,
88
- "deleted": false,
89
- "dateCreated": "2015-10-19T09:01:50",
90
- "dateDeleted": null,
91
- "dateModified": null
92
- },
93
- "id": 704603,
94
- "deleted": false,
95
- "dateCreated": "0001-01-01T00:00:00",
96
- "dateDeleted": null,
97
- "dateModified": null
98
- }],
99
- "visibleAt": 4500,
100
- "visibleFor": null,
101
- "shouldPause": 1,
102
- "interactiveId": 190303,
103
- "id": 709582,
104
- "deleted": false,
105
- "dateCreated": "0001-01-01T00:00:00",
106
- "dateDeleted": null,
107
- "dateModified": null
108
- }, {
109
- "interactions": [{
110
- "data": {},
111
- "actionableItems": [{
112
- "name": "Advertising",
113
- "order": 0,
114
- "isCorrect": true,
115
- "interactionId": 704604,
116
- "id": 1560270,
117
- "deleted": false,
118
- "dateCreated": "2020-11-04T23:28:33",
119
- "dateDeleted": null,
120
- "dateModified": null
121
- }, {
122
- "name": "Social media",
123
- "order": 1,
124
- "isCorrect": true,
125
- "interactionId": 704604,
126
- "id": 1560269,
127
- "deleted": false,
128
- "dateCreated": "2020-11-04T23:28:33",
129
- "dateDeleted": null,
130
- "dateModified": null
131
- }, {
132
- "name": "News and 'fake news'",
133
- "order": 2,
134
- "isCorrect": true,
135
- "interactionId": 704604,
136
- "id": 1560271,
137
- "deleted": false,
138
- "dateCreated": "2020-11-04T23:28:33",
139
- "dateDeleted": null,
140
- "dateModified": null
141
- }, {
142
- "name": "Election campaigns",
143
- "order": 3,
144
- "isCorrect": true,
145
- "interactionId": 704604,
146
- "id": 1560268,
147
- "deleted": false,
148
- "dateCreated": "2020-11-04T23:28:33",
149
- "dateDeleted": null,
150
- "dateModified": null
151
- }],
152
- "name": "Select all that apply. In what contexts might 'hyper-nudging' occur?",
153
- "order": 0,
154
- "description": null,
155
- "errorMessage": null,
156
- "isRequired": false,
157
- "interactiveId": 190303,
158
- "timepointId": 709583,
159
- "typeId": 1,
160
- "type": {
161
- "name": "Multiple Choice",
162
- "icon": "//static.clickview.com.au/cv-online/images/interactions/icons/multiple-choice-v2.png",
163
- "colour": "629fc9",
164
- "id": 1,
165
- "deleted": false,
166
- "dateCreated": "2015-10-19T09:01:50",
167
- "dateDeleted": null,
168
- "dateModified": null
169
- },
170
- "id": 704604,
171
- "deleted": false,
172
- "dateCreated": "0001-01-01T00:00:00",
173
- "dateDeleted": null,
174
- "dateModified": null
175
- }],
176
- "visibleAt": 6500,
177
- "visibleFor": null,
178
- "shouldPause": 1,
179
- "interactiveId": 190303,
180
- "id": 709583,
181
- "deleted": false,
182
- "dateCreated": "0001-01-01T00:00:00",
183
- "dateDeleted": null,
184
- "dateModified": null
185
- }, {
186
- "interactions": [{
187
- "data": {
188
- "sentence": "Cambridge Analytica had access not only to their own data, but also data made available to them by {18}."
189
- },
190
- "actionableItems": [{
191
- "name": "Facebook",
192
- "order": 18,
193
- "isCorrect": true,
194
- "interactionId": 704608,
195
- "id": 1560286,
196
- "deleted": false,
197
- "dateCreated": "2020-11-04T23:29:22",
198
- "dateDeleted": null,
199
- "dateModified": null
200
- }],
201
- "name": "Cambridge Analytica had access not only to their own data, but also data made available to them by _________.",
202
- "order": 0,
203
- "description": null,
204
- "errorMessage": null,
205
- "isRequired": false,
206
- "interactiveId": 190303,
207
- "timepointId": 709587,
208
- "typeId": 6,
209
- "type": {
210
- "name": "Missing word",
211
- "icon": "//static.clickview.com.au/cv-online/images/interactions/icons/missing-word-v2.png",
212
- "colour": "51ada3",
213
- "id": 6,
214
- "deleted": false,
215
- "dateCreated": "2015-10-19T09:01:50",
216
- "dateDeleted": null,
217
- "dateModified": null
218
- },
219
- "id": 704608,
220
- "deleted": false,
221
- "dateCreated": "0001-01-01T00:00:00",
222
- "dateDeleted": null,
223
- "dateModified": null
224
- }],
225
- "visibleAt": 8500,
226
- "visibleFor": null,
227
- "shouldPause": 1,
228
- "interactiveId": 190303,
229
- "id": 709587,
230
- "deleted": false,
231
- "dateCreated": "0001-01-01T00:00:00",
232
- "dateDeleted": null,
233
- "dateModified": null
234
- }, {
235
- "interactions": [{
236
- "data": {},
237
- "actionableItems": [{
238
- "name": "True",
239
- "order": 0,
240
- "isCorrect": true,
241
- "interactionId": 704613,
242
- "id": 1560300,
243
- "deleted": false,
244
- "dateCreated": "2020-11-04T23:30:27",
245
- "dateDeleted": null,
246
- "dateModified": null
247
- }, {
248
- "name": "False",
249
- "order": 1,
250
- "isCorrect": false,
251
- "interactionId": 704613,
252
- "id": 1560301,
253
- "deleted": false,
254
- "dateCreated": "2020-11-04T23:30:27",
255
- "dateDeleted": null,
256
- "dateModified": null
257
- }],
258
- "name": "Companies can combine information from multiple different digital sources to draw conclusions about people's behaviour.",
259
- "order": 0,
260
- "description": null,
261
- "errorMessage": null,
262
- "isRequired": false,
263
- "interactiveId": 190303,
264
- "timepointId": 709592,
265
- "typeId": 3,
266
- "type": {
267
- "name": "True or False",
268
- "icon": "//static.clickview.com.au/cv-online/images/interactions/icons/true-or-false-v2.png",
269
- "colour": "b18cbb",
270
- "id": 3,
271
- "deleted": false,
272
- "dateCreated": "2015-10-19T09:01:50",
273
- "dateDeleted": null,
274
- "dateModified": null
275
- },
276
- "id": 704613,
277
- "deleted": false,
278
- "dateCreated": "0001-01-01T00:00:00",
279
- "dateDeleted": null,
280
- "dateModified": null
281
- }],
282
- "visibleAt": 10500,
283
- "visibleFor": null,
284
- "shouldPause": 1,
285
- "interactiveId": 190303,
286
- "id": 709592,
287
- "deleted": false,
288
- "dateCreated": "0001-01-01T00:00:00",
289
- "dateDeleted": null,
290
- "dateModified": null
291
- }, {
292
- "interactions": [{
293
- "data": {},
294
- "actionableItems": [{
295
- "name": "Answer",
296
- "order": 0,
297
- "isCorrect": null,
298
- "interactionId": 704616,
299
- "id": 1560311,
300
- "deleted": false,
301
- "dateCreated": "2020-11-04T23:32:59",
302
- "dateDeleted": null,
303
- "dateModified": null
304
- }],
305
- "name": "Think of a form of social media or an app that you use regularly. What personal details or other data do you think it has about you?",
306
- "order": 0,
307
- "description": null,
308
- "errorMessage": null,
309
- "isRequired": false,
310
- "interactiveId": 190303,
311
- "timepointId": 709595,
312
- "typeId": 2,
313
- "type": {
314
- "name": "Short Answer",
315
- "icon": "//static.clickview.com.au/cv-online/images/interactions/icons/short-answer-v2.png",
316
- "colour": "73b18c",
317
- "id": 2,
318
- "deleted": false,
319
- "dateCreated": "2015-10-19T09:01:50",
320
- "dateDeleted": null,
321
- "dateModified": null
322
- },
323
- "id": 704616,
324
- "deleted": false,
325
- "dateCreated": "0001-01-01T00:00:00",
326
- "dateDeleted": null,
327
- "dateModified": null
328
- }],
329
- "visibleAt": 12500,
330
- "visibleFor": null,
331
- "shouldPause": 1,
332
- "interactiveId": 190303,
333
- "id": 709595,
334
- "deleted": false,
335
- "dateCreated": "0001-01-01T00:00:00",
336
- "dateDeleted": null,
337
- "dateModified": null
338
- },{
339
- "interactions": [{
340
- "data": {
341
- "annotation": "\n Discussion Time!<br><br>Can you think of a choice you have made that felt like the RIGHT thing to do?&nbsp;<br><br>What were the consequences?<br><br>"
342
- },
343
- "actionableItems": [{
344
- "name": "Answer",
345
- "order": 0,
346
- "isCorrect": null,
347
- "interactionId": 702581,
348
- "id": 1556100,
349
- "deleted": false,
350
- "dateCreated": "2020-11-03T21:34:21",
351
- "dateDeleted": null,
352
- "dateModified": null
353
- }],
354
- "name": "Annotation",
355
- "order": 0,
356
- "description": null,
357
- "errorMessage": null,
358
- "isRequired": false,
359
- "interactiveId": 189978,
360
- "timepointId": 707559,
361
- "typeId": 4,
362
- "type": {
363
- "name": "Annotation",
364
- "icon": "//static.clickview.com.au/cv-online/images/interactions/icons/annotation-v2.png",
365
- "colour": "f07e7e",
366
- "id": 4,
367
- "deleted": false,
368
- "dateCreated": "2015-10-19T09:01:50",
369
- "dateDeleted": null,
370
- "dateModified": null
371
- },
372
- "id": 702581,
373
- "deleted": false,
374
- "dateCreated": "0001-01-01T00:00:00",
375
- "dateDeleted": null,
376
- "dateModified": null
377
- }],
378
- "visibleAt": 14500,
379
- "visibleFor": null,
380
- "shouldPause": 1,
381
- "interactiveId": 189978,
382
- "id": 707559,
383
- "deleted": false,
384
- "dateCreated": "0001-01-01T00:00:00",
385
- "dateDeleted": null,
386
- "dateModified": null
387
- },{
388
- "interactions":[
389
- {
390
- "data":{
391
- "url":"https://api-image.clickviewapp.com/v1/thumbnails/5920179",
392
- "caption":"The dark green area on this map shows how large the Murray-Darling Basin is. This area alone is responsible for growing one third of Australia's entire food supply!"
393
- },
394
- "actionableItems":[
395
- {
396
- "name":"Viewed",
397
- "order":0,
398
- "isCorrect":true,
399
- "interactionId":664721,
400
- "id":1476619,
401
- "deleted":false,
402
- "dateCreated":"2020-09-24T05:31:04",
403
- "dateDeleted":null,
404
- "dateModified":null
405
- }
406
- ],
407
- "name":"The dark green area on this map shows how large the Murray-Darling Basin is. This area alone is responsible for growing one third of Australia's entire food supply!",
408
- "order":0,
409
- "description":null,
410
- "errorMessage":null,
411
- "isRequired":false,
412
- "interactiveId":183569,
413
- "timepointId":669510,
414
- "typeId":5,
415
- "type":{
416
- "name":"Image",
417
- "icon":"//static.clickview.com.au/cv-online/images/interactions/icons/image-v2.png",
418
- "colour":"f8981d",
419
- "id":5,
420
- "deleted":false,
421
- "dateCreated":"2015-10-19T09:01:50",
422
- "dateDeleted":null,
423
- "dateModified":null
424
- },
425
- "id":664721,
426
- "deleted":false,
427
- "dateCreated":"0001-01-01T00:00:00",
428
- "dateDeleted":null,
429
- "dateModified":null
430
- }
431
- ],
432
- "visibleAt":16500,
433
- "visibleFor":null,
434
- "shouldPause":1,
435
- "interactiveId":183569,
436
- "id":669510,
437
- "deleted":false,
438
- "dateCreated":"0001-01-01T00:00:00",
439
- "dateDeleted":null,
440
- "dateModified":null
441
- }],
442
- "immediateFeedback": true,
443
- "id": 190303,
444
- "name": "How Your Online Data is Used",
445
- "duration": 0,
446
- "posterImage": null,
447
- "dateCreated": "2020-11-04T23:25:34",
448
- "dateModified": null,
449
- "dateDeleted": null,
450
- "deleted": false
451
- }
@@ -1,62 +0,0 @@
1
- WEBVTT
2
-
3
- 00:00:00.000 --> 00:00:01.000
4
- /sample_1280x720.mp4.vtx#xywh=6,77,160,90
5
-
6
- 00:00:01.000 --> 00:00:02.000
7
- /sample_1280x720.mp4.vtx#xywh=171,77,160,90
8
-
9
- 00:00:02.000 --> 00:00:04.000
10
- /sample_1280x720.mp4.vtx#xywh=336,77,160,90
11
-
12
- 00:00:04.000 --> 00:00:05.000
13
- /sample_1280x720.mp4.vtx#xywh=501,77,160,90
14
-
15
- 00:00:05.000 --> 00:00:06.000
16
- /sample_1280x720.mp4.vtx#xywh=666,77,160,90
17
-
18
- 00:00:06.000 --> 00:00:08.000
19
- /sample_1280x720.mp4.vtx#xywh=6,172,160,90
20
-
21
- 00:00:08.000 --> 00:00:09.000
22
- /sample_1280x720.mp4.vtx#xywh=171,172,160,90
23
-
24
- 00:00:09.000 --> 00:00:10.000
25
- /sample_1280x720.mp4.vtx#xywh=336,172,160,90
26
-
27
- 00:00:10.000 --> 00:00:12.000
28
- /sample_1280x720.mp4.vtx#xywh=501,172,160,90
29
-
30
- 00:00:12.000 --> 00:00:13.000
31
- /sample_1280x720.mp4.vtx#xywh=666,172,160,90
32
-
33
- 00:00:13.000 --> 00:00:14.000
34
- /sample_1280x720.mp4.vtx#xywh=6,267,160,90
35
-
36
- 00:00:14.000 --> 00:00:16.000
37
- /sample_1280x720.mp4.vtx#xywh=171,267,160,90
38
-
39
- 00:00:16.000 --> 00:00:17.000
40
- /sample_1280x720.mp4.vtx#xywh=336,267,160,90
41
-
42
- 00:00:17.000 --> 00:00:18.000
43
- /sample_1280x720.mp4.vtx#xywh=501,267,160,90
44
-
45
- 00:00:18.000 --> 00:00:20.000
46
- /sample_1280x720.mp4.vtx#xywh=666,267,160,90
47
-
48
- 00:00:20.000 --> 00:00:21.000
49
- /sample_1280x720.mp4.vtx#xywh=6,362,160,90
50
-
51
- 00:00:21.000 --> 00:00:22.000
52
- /sample_1280x720.mp4.vtx#xywh=171,362,160,90
53
-
54
- 00:00:22.000 --> 00:00:24.000
55
- /sample_1280x720.mp4.vtx#xywh=336,362,160,90
56
-
57
- 00:00:24.000 --> 00:00:25.000
58
- /sample_1280x720.mp4.vtx#xywh=501,362,160,90
59
-
60
- 00:00:25.000 --> 00:00:29.000
61
- /sample_1280x720.mp4.vtx#xywh=666,362,160,90
62
-
@@ -1,18 +0,0 @@
1
- import React from 'react';
2
-
3
- interface WrapProps {
4
- el: HTMLElement;
5
- }
6
-
7
- export function Wrap(props: WrapProps): React.ReactElement {
8
- const ref = React.useRef<HTMLDivElement>();
9
-
10
- React.useEffect(() => {
11
- if (ref.current)
12
- ref.current.appendChild(props.el);
13
- }, []);
14
-
15
- return (
16
- <div ref={ref}></div>
17
- );
18
- }