@clickview/lite 0.0.18-dev.2 → 0.0.18-rc.1

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 (418) hide show
  1. package/dist/css/0.chunk.css.map +1 -0
  2. package/dist/css/1.chunk.css +144 -2
  3. package/dist/css/1.chunk.css.map +1 -0
  4. package/dist/css/10.chunk.css +10 -12
  5. package/dist/css/10.chunk.css.map +1 -0
  6. package/dist/css/11.chunk.css +5 -9
  7. package/dist/css/11.chunk.css.map +1 -0
  8. package/dist/css/12.chunk.css.map +1 -0
  9. package/dist/css/13.chunk.css.map +1 -0
  10. package/dist/css/14.chunk.css.map +1 -0
  11. package/dist/css/16.chunk.css.map +1 -0
  12. package/dist/css/18.chunk.css.map +1 -0
  13. package/dist/css/19.chunk.css +6 -2
  14. package/dist/css/19.chunk.css.map +1 -0
  15. package/dist/css/2.chunk.css +14 -0
  16. package/dist/css/20.chunk.css +2 -6
  17. package/dist/css/21.chunk.css +1 -3
  18. package/dist/css/21.chunk.css.map +1 -0
  19. package/dist/css/22.chunk.css +2 -2
  20. package/dist/css/22.chunk.css.map +1 -0
  21. package/dist/css/23.chunk.css +3 -1
  22. package/dist/css/23.chunk.css.map +1 -0
  23. package/dist/css/24.chunk.css +1 -3
  24. package/dist/css/24.chunk.css.map +1 -0
  25. package/dist/css/25.chunk.css +2 -2
  26. package/dist/css/25.chunk.css.map +1 -0
  27. package/dist/css/26.chunk.css +3 -1
  28. package/dist/css/26.chunk.css.map +1 -0
  29. package/dist/css/27.chunk.css +66 -2
  30. package/dist/css/27.chunk.css.map +1 -0
  31. package/dist/css/28.chunk.css +48 -2
  32. package/dist/css/28.chunk.css.map +1 -0
  33. package/dist/css/29.chunk.css +43 -4
  34. package/dist/css/29.chunk.css.map +1 -0
  35. package/dist/css/3.chunk.css +13 -7
  36. package/dist/css/3.chunk.css.map +1 -0
  37. package/dist/css/30.chunk.css +1 -3
  38. package/dist/css/30.chunk.css.map +1 -0
  39. package/dist/css/31.chunk.css +5 -2
  40. package/dist/css/31.chunk.css.map +1 -0
  41. package/dist/css/32.chunk.css +4 -1
  42. package/dist/css/32.chunk.css.map +1 -0
  43. package/dist/css/34.chunk.css +4 -2
  44. package/dist/css/34.chunk.css.map +1 -0
  45. package/dist/css/35.chunk.css +7 -0
  46. package/dist/css/35.chunk.css.map +1 -0
  47. package/dist/css/36.chunk.css +4 -0
  48. package/dist/css/36.chunk.css.map +1 -0
  49. package/dist/css/37.chunk.css +3 -1
  50. package/dist/css/37.chunk.css.map +1 -0
  51. package/dist/css/38.chunk.css +36 -2
  52. package/dist/css/38.chunk.css.map +1 -0
  53. package/dist/css/4.chunk.css +5 -13
  54. package/dist/css/4.chunk.css.map +1 -0
  55. package/dist/css/44.chunk.css +1 -1
  56. package/dist/css/45.chunk.css +9 -0
  57. package/dist/css/45.chunk.css.map +1 -0
  58. package/dist/css/5.chunk.css +2 -8
  59. package/dist/css/5.chunk.css.map +1 -0
  60. package/dist/css/9.chunk.css +15 -7
  61. package/dist/css/lite-app.css.map +1 -0
  62. package/dist/libs/analytics/src/AnalyticsService.d.ts +52 -0
  63. package/dist/libs/analytics/src/clients/BaseAnalyticsClient.d.ts +24 -0
  64. package/dist/libs/analytics/src/clients/CollectionApiClient.d.ts +48 -0
  65. package/dist/libs/analytics/src/clients/DebuggerClient.d.ts +7 -0
  66. package/dist/libs/analytics/src/constants/ApplicationOptionsKey.d.ts +1 -0
  67. package/dist/libs/analytics/src/constants/CountryRegionMapping.d.ts +7 -0
  68. package/dist/libs/analytics/src/constants/Regions.d.ts +6 -0
  69. package/dist/libs/analytics/src/enrichers/BaseAnalyticsEnricher.d.ts +19 -0
  70. package/dist/libs/analytics/src/enrichers/CoreContextEnricher.d.ts +22 -0
  71. package/dist/libs/analytics/src/enrichers/UserDataEnricher.d.ts +10 -0
  72. package/dist/libs/analytics/src/enums/CountryCode.d.ts +5 -0
  73. package/dist/libs/analytics/src/interfaces/AnalyticsTypes.d.ts +49 -5
  74. package/dist/libs/analytics/src/interfaces/VersionData.d.ts +4 -0
  75. package/dist/libs/analytics/src/models/CollectionEvent.d.ts +55 -0
  76. package/dist/libs/analytics/src/transport/EventTransport.d.ts +39 -0
  77. package/dist/libs/analytics/src/utils/CollectionApiClientHelper.d.ts +6 -0
  78. package/dist/libs/analytics/src/utils/DataFormatHelper.d.ts +14 -0
  79. package/dist/libs/analytics/src/utils/EventWhitelistHelper.d.ts +19 -0
  80. package/dist/libs/analytics/src/utils/TypeHelper.d.ts +4 -0
  81. package/dist/libs/analytics/src/utils/UploadDataFormatHelper.d.ts +10 -0
  82. package/dist/libs/analytics/src/utils/UserAgentHelper.d.ts +10 -0
  83. package/dist/libs/analytics/src/utils/VideoDataFormatHelper.d.ts +42 -0
  84. package/dist/libs/common/src/backbone/core/BaseAppRouter.d.ts +5 -1
  85. package/dist/libs/common/src/react/constants/ViewModelActions.d.ts +3 -0
  86. package/dist/libs/common/src/react/hooks/useViewModel.d.ts +4 -0
  87. package/dist/libs/common/src/react/interfaces/ApplicationState.d.ts +3 -1
  88. package/dist/libs/common/src/react/interfaces/ViewModelAction.d.ts +5 -0
  89. package/dist/libs/common/src/react/interfaces/ViewModelPayload.d.ts +5 -0
  90. package/dist/libs/common/src/react/reducers/ViewModelReducer.d.ts +3 -0
  91. package/dist/libs/common/src/react/utils/ArrayHelper.d.ts +1 -1
  92. package/dist/libs/shared/src/apps/content-updates/interfaces/VideoClassificationMapping.d.ts +2 -1
  93. package/dist/libs/shared/src/apps/upload/services/UploadService.d.ts +3 -2
  94. package/dist/libs/shared/src/components/lazy-image/LazyImage.d.ts +1 -1
  95. package/dist/libs/shared/src/components/search-bar/SearchBar.d.ts +5 -0
  96. package/dist/libs/shared/src/components/widgets/fixed-widget/FixedWidget.d.ts +4 -2
  97. package/dist/libs/shared/src/components/widgets/items/subject-widget-item/SubjectWidgetItem.d.ts +4 -3
  98. package/dist/libs/shared/src/constants/BootstrapKeys.d.ts +1 -0
  99. package/dist/libs/shared/src/constants/WithStatements.d.ts +1 -1
  100. package/dist/libs/shared/src/enums/CountryCode.d.ts +5 -0
  101. package/dist/libs/shared/src/enums/SubtitleExtractionOptions.d.ts +4 -0
  102. package/dist/libs/shared/src/enums/WidgetContents.d.ts +2 -1
  103. package/dist/libs/shared/src/flight-requests/FavouriteVideoRequests.d.ts +1 -1
  104. package/dist/libs/shared/src/flight-requests/PreferenceRequests.d.ts +4 -4
  105. package/dist/libs/shared/src/hooks/UseReorderedItems.d.ts +9 -0
  106. package/dist/libs/shared/src/interfaces/models/Config.d.ts +3 -1
  107. package/dist/libs/shared/src/interfaces/models/Group.d.ts +3 -0
  108. package/dist/libs/shared/src/interfaces/models/User.d.ts +2 -1
  109. package/dist/libs/shared/src/interfaces/models/UserChannel.d.ts +7 -0
  110. package/dist/libs/shared/src/interfaces/models/index.d.ts +2 -0
  111. package/dist/libs/shared/src/services/ConfigDataService.d.ts +1 -0
  112. package/dist/libs/shared/src/utils/AudienceHelper.d.ts +5 -1
  113. package/dist/projects/lite/src/apps/classrooms/components/classroom-group-dropdown/ClassroomGroupDropdown.d.ts +3 -2
  114. package/dist/projects/lite/src/apps/classrooms/components/tile-actions/TileActions.d.ts +1 -0
  115. package/dist/projects/lite/src/apps/classrooms/flight-requests/ClassroomRequests.d.ts +1 -1
  116. package/dist/projects/lite/src/apps/classrooms/views/add-students-to-classroom/AddStudentsToClassroomView.d.ts +3 -3
  117. package/dist/projects/lite/src/apps/classrooms/views/create-classroom/CreateClassroomView.d.ts +3 -4
  118. package/dist/projects/lite/src/apps/classrooms/views/create-classroom-group/CreateClassroomGroupView.d.ts +3 -3
  119. package/dist/projects/lite/src/apps/classrooms/views/delete-classroom/DeleteClassroomView.d.ts +4 -4
  120. package/dist/projects/lite/src/apps/classrooms/views/delete-classroom-group/DeleteClassroomGroupView.d.ts +3 -3
  121. package/dist/projects/lite/src/apps/classrooms/views/edit-classroom/EditClassroomView.d.ts +3 -3
  122. package/dist/projects/lite/src/apps/classrooms/views/edit-classroom-group/EditClassroomGroupView.d.ts +3 -3
  123. package/dist/projects/lite/src/apps/classrooms/views/remove-students-from-classroom/RemoveStudentsFromClassroomView.d.ts +3 -3
  124. package/dist/projects/lite/src/apps/content-updates/LiteContentUpdatesApplication.d.ts +1 -1
  125. package/dist/projects/lite/src/apps/default/LiteDefaultApplication.d.ts +2 -2
  126. package/dist/projects/lite/src/apps/playlists/LitePlaylistsApplication.d.ts +2 -1
  127. package/dist/projects/lite/src/apps/playlists/views/delete-playlist/DeletePlaylistView.d.ts +2 -2
  128. package/dist/projects/lite/src/apps/playlists/views/edit-playlist/EditPlaylistView.d.ts +2 -2
  129. package/dist/projects/lite/src/apps/playlists/views/new-playlist/NewPlaylistView.d.ts +2 -2
  130. package/dist/projects/lite/src/apps/playlists/views/playlist/PlaylistViewUtils.d.ts +0 -8
  131. package/dist/projects/lite/src/apps/playlists/views/remove-video-from-playlist/RemoveVideoFromPlaylistView.d.ts +2 -2
  132. package/dist/projects/lite/src/apps/search/components/filter-actions/FilterActions.d.ts +3 -2
  133. package/dist/projects/lite/src/apps/search/components/filter-button/FilterButton.d.ts +3 -2
  134. package/dist/projects/lite/src/apps/search/components/filter-types/checkbox-filter/CheckboxFilter.d.ts +3 -2
  135. package/dist/projects/lite/src/apps/search/components/filter-types/dropdown-filter/DropdownFilter.d.ts +3 -2
  136. package/dist/projects/lite/src/apps/search/components/filter-types/radio-filter/RadioFilter.d.ts +3 -2
  137. package/dist/projects/lite/src/apps/search/components/filter-types/radio-filter/year-level/YearLevelRadioFilter.d.ts +3 -2
  138. package/dist/projects/lite/src/apps/search/components/reset-button/ResetButton.d.ts +3 -2
  139. package/dist/projects/lite/src/apps/search/components/search-filters/SearchFilters.d.ts +3 -2
  140. package/dist/projects/lite/src/apps/search/interfaces/FilterProps.d.ts +3 -2
  141. package/dist/projects/lite/src/apps/search/utils/FilterHelper.d.ts +4 -2
  142. package/dist/projects/lite/src/apps/subjects/LiteSubjectApplication.d.ts +2 -2
  143. package/dist/projects/lite/src/apps/upload/services/FlightVideoUploadDataService.d.ts +5 -0
  144. package/dist/projects/lite/src/apps/user-manager/components/delete-uploaded-student-popup/DeleteUploadedStudentPopup.d.ts +4 -4
  145. package/dist/projects/lite/src/apps/user-manager/components/delete-uploaded-teacher-popup/DeleteUploadedTeacherPopup.d.ts +4 -4
  146. package/dist/projects/lite/src/apps/user-manager/components/edit-uploaded-user-popup/EditUploadedUserPopup.d.ts +4 -4
  147. package/dist/projects/lite/src/apps/user-manager/components/manage-users-list/ManageUsersList.d.ts +3 -2
  148. package/dist/projects/lite/src/apps/user-manager/flight-requests/SchoolUserRequests.d.ts +3 -3
  149. package/dist/projects/lite/src/apps/user-manager/views/create-student/CreateStudentView.d.ts +3 -4
  150. package/dist/projects/lite/src/apps/user-manager/views/create-teacher/CreateTeacherView.d.ts +3 -4
  151. package/dist/projects/lite/src/apps/user-manager/views/edit-student/EditStudentView.d.ts +4 -4
  152. package/dist/projects/lite/src/apps/user-manager/views/edit-teacher/EditTeacherView.d.ts +4 -4
  153. package/dist/projects/lite/src/apps/user-manager/views/remove-user/RemoveUserView.d.ts +4 -4
  154. package/dist/projects/lite/src/apps/user-manager/views/student-upload-review/StudentUploadReviewView.d.ts +4 -2
  155. package/dist/projects/lite/src/apps/user-manager/views/teacher-upload-review/TeacherUploadReviewView.d.ts +4 -2
  156. package/dist/projects/lite/src/shared/components/immersive-reader/ImmersiveReader.d.ts +7 -2
  157. package/dist/projects/lite/src/shared/components/share/copy-embed-html/CopyEmbedHtml.d.ts +4 -2
  158. package/dist/projects/lite/src/shared/constants/LiteViewModels.d.ts +6 -0
  159. package/dist/projects/lite/src/shared/{contexts/player/PlayerContext.d.ts → hooks/useInitPlayerContext.d.ts} +4 -10
  160. package/dist/projects/lite/src/shared/hooks/useNavLock.d.ts +1 -0
  161. package/dist/projects/lite/src/shared/views/share/main-view/MainShareView.d.ts +3 -3
  162. package/dist/projects/lite/src/shared/views/share/settings-view/ShareSettingsView.d.ts +4 -3
  163. package/dist/projects/lite/src/startup/RegisterAnalytics.d.ts +3 -0
  164. package/dist/projects/lite/src/startup/index.d.ts +1 -0
  165. package/dist/scripts/0-525bd75473.chunk.js +1 -0
  166. package/dist/scripts/0.chunk.js +478 -1
  167. package/dist/scripts/0.chunk.js.map +1 -0
  168. package/dist/scripts/1-f6fa17226d.chunk.js +17 -0
  169. package/dist/scripts/1.chunk.js +621 -17
  170. package/dist/scripts/1.chunk.js.map +1 -0
  171. package/dist/scripts/10-f3b34b2d35.chunk.js +1 -0
  172. package/dist/scripts/10.chunk.js +400 -7
  173. package/dist/scripts/10.chunk.js.map +1 -0
  174. package/dist/scripts/11-a698af3f1c.chunk.js +1 -0
  175. package/dist/scripts/11.chunk.js +1289 -7
  176. package/dist/scripts/11.chunk.js.map +1 -0
  177. package/dist/scripts/12-9ace90fcbc.chunk.js +1 -0
  178. package/dist/scripts/12.chunk.js +1059 -7
  179. package/dist/scripts/12.chunk.js.map +1 -0
  180. package/dist/scripts/13-3a4f103546.chunk.js +1 -0
  181. package/dist/scripts/13.chunk.js +751 -7
  182. package/dist/scripts/13.chunk.js.map +1 -0
  183. package/dist/scripts/14-11868e2868.chunk.js +1 -0
  184. package/dist/scripts/14.chunk.js +425 -7
  185. package/dist/scripts/14.chunk.js.map +1 -0
  186. package/dist/scripts/15-78ff5e8be2.chunk.js +1 -0
  187. package/dist/scripts/15.chunk.js +609 -7
  188. package/dist/scripts/15.chunk.js.map +1 -0
  189. package/dist/scripts/16-22f6224811.chunk.js +1 -0
  190. package/dist/scripts/16.chunk.js +648 -7
  191. package/dist/scripts/16.chunk.js.map +1 -0
  192. package/dist/scripts/17-afe6281dd5.chunk.js +1 -0
  193. package/dist/scripts/17.chunk.js +541 -7
  194. package/dist/scripts/17.chunk.js.map +1 -0
  195. package/dist/scripts/18-47be31c0b6.chunk.js +1 -0
  196. package/dist/scripts/18.chunk.js +766 -7
  197. package/dist/scripts/18.chunk.js.map +1 -0
  198. package/dist/scripts/19-89c0b2c20e.chunk.js +1 -0
  199. package/dist/scripts/19.chunk.js +647 -7
  200. package/dist/scripts/19.chunk.js.map +1 -0
  201. package/dist/scripts/2-3b37480a80.chunk.js +7 -0
  202. package/dist/scripts/2.chunk.js +8259 -1
  203. package/dist/scripts/2.chunk.js.map +1 -0
  204. package/dist/scripts/20-32ac3fe0b9.chunk.js +1 -0
  205. package/dist/scripts/20.chunk.js +122 -7
  206. package/dist/scripts/20.chunk.js.map +1 -0
  207. package/dist/scripts/21-891207049a.chunk.js +1 -0
  208. package/dist/scripts/21.chunk.js +1571 -1
  209. package/dist/scripts/21.chunk.js.map +1 -0
  210. package/dist/scripts/22-24236e6723.chunk.js +1 -0
  211. package/dist/scripts/22.chunk.js +1387 -1
  212. package/dist/scripts/22.chunk.js.map +1 -0
  213. package/dist/scripts/23-7b425169bc.chunk.js +1 -0
  214. package/dist/scripts/23.chunk.js +1121 -1
  215. package/dist/scripts/23.chunk.js.map +1 -0
  216. package/dist/scripts/24-40edd30087.chunk.js +1 -0
  217. package/dist/scripts/24.chunk.js +1348 -1
  218. package/dist/scripts/24.chunk.js.map +1 -0
  219. package/dist/scripts/25-887b9ef587.chunk.js +1 -0
  220. package/dist/scripts/25.chunk.js +1137 -1
  221. package/dist/scripts/25.chunk.js.map +1 -0
  222. package/dist/scripts/26-cbe0ff0f77.chunk.js +1 -0
  223. package/dist/scripts/26.chunk.js +906 -1
  224. package/dist/scripts/26.chunk.js.map +1 -0
  225. package/dist/scripts/27-f26afdae78.chunk.js +1 -0
  226. package/dist/scripts/27.chunk.js +1143 -1
  227. package/dist/scripts/27.chunk.js.map +1 -0
  228. package/dist/scripts/28-70414fd373.chunk.js +1 -0
  229. package/dist/scripts/28.chunk.js +656 -1
  230. package/dist/scripts/28.chunk.js.map +1 -0
  231. package/dist/scripts/29-944b5c01a7.chunk.js +1 -0
  232. package/dist/scripts/29.chunk.js +616 -1
  233. package/dist/scripts/29.chunk.js.map +1 -0
  234. package/dist/scripts/3-233f573a92.chunk.js +1 -0
  235. package/dist/scripts/3.chunk.js +585 -1
  236. package/dist/scripts/3.chunk.js.map +1 -0
  237. package/dist/scripts/30-3a229887e9.chunk.js +1 -0
  238. package/dist/scripts/30.chunk.js +557 -1
  239. package/dist/scripts/30.chunk.js.map +1 -0
  240. package/dist/scripts/31-ab038bfc0c.chunk.js +1 -0
  241. package/dist/scripts/31.chunk.js +731 -1
  242. package/dist/scripts/31.chunk.js.map +1 -0
  243. package/dist/scripts/32-8bd6703eef.chunk.js +1 -0
  244. package/dist/scripts/32.chunk.js +957 -1
  245. package/dist/scripts/32.chunk.js.map +1 -0
  246. package/dist/scripts/{35-8b4ce9fc27.chunk.js → 33-4579af9cf9.chunk.js} +1 -1
  247. package/dist/scripts/33.chunk.js +938 -1
  248. package/dist/scripts/33.chunk.js.map +1 -0
  249. package/dist/scripts/{36-cbd8837f89.chunk.js → 34-d8b96d9f9f.chunk.js} +1 -1
  250. package/dist/scripts/34.chunk.js +523 -1
  251. package/dist/scripts/34.chunk.js.map +1 -0
  252. package/dist/scripts/35-666d815525.chunk.js +1 -0
  253. package/dist/scripts/35.chunk.js +414 -1
  254. package/dist/scripts/35.chunk.js.map +1 -0
  255. package/dist/scripts/36-02ce5f3538.chunk.js +1 -0
  256. package/dist/scripts/36.chunk.js +404 -1
  257. package/dist/scripts/36.chunk.js.map +1 -0
  258. package/dist/scripts/37-afd3d321e3.chunk.js +1 -0
  259. package/dist/scripts/37.chunk.js +245 -1
  260. package/dist/scripts/37.chunk.js.map +1 -0
  261. package/dist/scripts/{39-e2aa1689e2.chunk.js → 38-6ad53aa15b.chunk.js} +1 -1
  262. package/dist/scripts/38.chunk.js +343 -1
  263. package/dist/scripts/38.chunk.js.map +1 -0
  264. package/dist/scripts/{40-53d132e3b4.chunk.js → 39-46c747b1d9.chunk.js} +1 -1
  265. package/dist/scripts/39.chunk.js +318 -1
  266. package/dist/scripts/39.chunk.js.map +1 -0
  267. package/dist/scripts/4-6942fee782.chunk.js +1 -0
  268. package/dist/scripts/4.chunk.js +1030 -1
  269. package/dist/scripts/4.chunk.js.map +1 -0
  270. package/dist/scripts/{41-023d613070.chunk.js → 40-c1b8806b1c.chunk.js} +1 -1
  271. package/dist/scripts/40.chunk.js +236 -1
  272. package/dist/scripts/40.chunk.js.map +1 -0
  273. package/dist/scripts/{42-ba3779218d.chunk.js → 41-f4c23477e3.chunk.js} +1 -1
  274. package/dist/scripts/41.chunk.js +231 -1
  275. package/dist/scripts/41.chunk.js.map +1 -0
  276. package/dist/scripts/42-7a5b92d70b.chunk.js +1 -0
  277. package/dist/scripts/42.chunk.js +350 -1
  278. package/dist/scripts/42.chunk.js.map +1 -0
  279. package/dist/scripts/43-97193a87df.chunk.js +1 -0
  280. package/dist/scripts/43.chunk.js +225 -1
  281. package/dist/scripts/43.chunk.js.map +1 -0
  282. package/dist/scripts/{46-6501968ace.chunk.js → 44-7f92272274.chunk.js} +1 -1
  283. package/dist/scripts/44.chunk.js +318 -1
  284. package/dist/scripts/44.chunk.js.map +1 -0
  285. package/dist/scripts/45-265f1a7a42.chunk.js +1 -0
  286. package/dist/scripts/45.chunk.js +64 -1
  287. package/dist/scripts/45.chunk.js.map +1 -0
  288. package/dist/scripts/46-a594ad7eba.chunk.js +1 -0
  289. package/dist/scripts/46.chunk.js +108 -1
  290. package/dist/scripts/46.chunk.js.map +1 -0
  291. package/dist/scripts/47-99777c20cf.chunk.js +1 -0
  292. package/dist/scripts/47.chunk.js +110 -1
  293. package/dist/scripts/47.chunk.js.map +1 -0
  294. package/dist/scripts/48-9880523c82.chunk.js +1 -0
  295. package/dist/scripts/48.chunk.js +148 -1
  296. package/dist/scripts/48.chunk.js.map +1 -0
  297. package/dist/scripts/{50-00ffd5d7c6.chunk.js → 49-5e718594e5.chunk.js} +1 -1
  298. package/dist/scripts/49.chunk.js +142 -1
  299. package/dist/scripts/49.chunk.js.map +1 -0
  300. package/dist/scripts/5-2f631dcd74.chunk.js +1 -0
  301. package/dist/scripts/5.chunk.js +3262 -1
  302. package/dist/scripts/5.chunk.js.map +1 -0
  303. package/dist/scripts/50-8cb0d9cd7d.chunk.js +1 -0
  304. package/dist/scripts/50.chunk.js +145 -1
  305. package/dist/scripts/50.chunk.js.map +1 -0
  306. package/dist/scripts/{52-e5dfa5a640.chunk.js → 51-211b643ca5.chunk.js} +1 -1
  307. package/dist/scripts/51.chunk.js +176 -1
  308. package/dist/scripts/51.chunk.js.map +1 -0
  309. package/dist/scripts/{53-79d5905fc6.chunk.js → 52-bfb2683b5d.chunk.js} +1 -1
  310. package/dist/scripts/52.chunk.js +160 -1
  311. package/dist/scripts/52.chunk.js.map +1 -0
  312. package/dist/scripts/{54-4950ec1d52.chunk.js → 53-3cf5cd5f69.chunk.js} +1 -1
  313. package/dist/scripts/53.chunk.js +98 -1
  314. package/dist/scripts/53.chunk.js.map +1 -0
  315. package/dist/scripts/{55-accb81090d.chunk.js → 54-26807e3e49.chunk.js} +1 -1
  316. package/dist/scripts/54.chunk.js +48 -1
  317. package/dist/scripts/54.chunk.js.map +1 -0
  318. package/dist/scripts/55-d38be4860b.chunk.js +1 -0
  319. package/dist/scripts/55.chunk.js +99 -1
  320. package/dist/scripts/55.chunk.js.map +1 -0
  321. package/dist/scripts/56-d4abc25ec3.chunk.js +1 -0
  322. package/dist/scripts/56.chunk.js +64 -1
  323. package/dist/scripts/56.chunk.js.map +1 -0
  324. package/dist/scripts/57.chunk.js +72 -0
  325. package/dist/scripts/57.chunk.js.map +1 -0
  326. package/dist/scripts/58.chunk.js +73 -0
  327. package/dist/scripts/58.chunk.js.map +1 -0
  328. package/dist/scripts/59.chunk.js +70 -0
  329. package/dist/scripts/59.chunk.js.map +1 -0
  330. package/dist/scripts/6-4d72a3c3fc.chunk.js +1 -0
  331. package/dist/scripts/6.chunk.js +24 -1
  332. package/dist/scripts/6.chunk.js.map +1 -0
  333. package/dist/scripts/60.chunk.js +32 -0
  334. package/dist/scripts/60.chunk.js.map +1 -0
  335. package/dist/scripts/61.chunk.js +29 -0
  336. package/dist/scripts/61.chunk.js.map +1 -0
  337. package/dist/scripts/62.chunk.js +27 -0
  338. package/dist/scripts/62.chunk.js.map +1 -0
  339. package/dist/scripts/63.chunk.js +67 -0
  340. package/dist/scripts/63.chunk.js.map +1 -0
  341. package/dist/scripts/64.chunk.js +80 -0
  342. package/dist/scripts/64.chunk.js.map +1 -0
  343. package/dist/scripts/65.chunk.js +65 -0
  344. package/dist/scripts/65.chunk.js.map +1 -0
  345. package/dist/scripts/66.chunk.js +67 -0
  346. package/dist/scripts/66.chunk.js.map +1 -0
  347. package/dist/scripts/67.chunk.js +104 -0
  348. package/dist/scripts/67.chunk.js.map +1 -0
  349. package/dist/scripts/68.chunk.js +69 -0
  350. package/dist/scripts/68.chunk.js.map +1 -0
  351. package/dist/scripts/69.chunk.js +89 -0
  352. package/dist/scripts/69.chunk.js.map +1 -0
  353. package/dist/scripts/7-90ad392b55.chunk.js +1 -0
  354. package/dist/scripts/7.chunk.js +327 -1
  355. package/dist/scripts/7.chunk.js.map +1 -0
  356. package/dist/scripts/70.chunk.js +36 -0
  357. package/dist/scripts/70.chunk.js.map +1 -0
  358. package/dist/scripts/8.chunk.js +470 -0
  359. package/dist/scripts/8.chunk.js.map +1 -0
  360. package/dist/scripts/9-52877087ef.chunk.js +1 -0
  361. package/dist/scripts/9.chunk.js +471 -7
  362. package/dist/scripts/9.chunk.js.map +1 -0
  363. package/dist/scripts/bundle-99976c17a2.min.js +1 -0
  364. package/dist/scripts/bundle-9f5ad50596.min.js +1 -0
  365. package/dist/scripts/bundle.js +34769 -1
  366. package/dist/scripts/bundle.js.map +1 -0
  367. package/dist/scripts/bundles.json +1 -1
  368. package/package.json +50 -49
  369. package/typings/libs/Trackers.d.ts +10 -0
  370. package/dist/css/33.chunk.css +0 -4
  371. package/dist/css/41.chunk.css +0 -4
  372. package/dist/css/46.chunk.css +0 -2
  373. package/dist/libs/shared/src/context/SearchAppContext.d.ts +0 -9
  374. package/dist/scripts/0-7ab5925809.chunk.js +0 -1
  375. package/dist/scripts/1-08c7a79a47.chunk.js +0 -1
  376. package/dist/scripts/10-20d3430ce2.chunk.js +0 -1
  377. package/dist/scripts/11-7a25650335.chunk.js +0 -1
  378. package/dist/scripts/12-6609af3add.chunk.js +0 -1
  379. package/dist/scripts/13-5adebd80b3.chunk.js +0 -1
  380. package/dist/scripts/14-dbd27fa3a5.chunk.js +0 -1
  381. package/dist/scripts/15-5a0e1ed526.chunk.js +0 -1
  382. package/dist/scripts/16-3adc733311.chunk.js +0 -1
  383. package/dist/scripts/17-a942a8ff32.chunk.js +0 -1
  384. package/dist/scripts/18-ab78fe1ad4.chunk.js +0 -1
  385. package/dist/scripts/19-04ba4906ea.chunk.js +0 -1
  386. package/dist/scripts/2-41fe2d7e77.chunk.js +0 -1
  387. package/dist/scripts/20-f0dcfc47a9.chunk.js +0 -1
  388. package/dist/scripts/21-33e50c0d6b.chunk.js +0 -1
  389. package/dist/scripts/22-d85dfba692.chunk.js +0 -1
  390. package/dist/scripts/23-90201310df.chunk.js +0 -1
  391. package/dist/scripts/24-bc8f0f5709.chunk.js +0 -1
  392. package/dist/scripts/25-317106a5da.chunk.js +0 -1
  393. package/dist/scripts/26-4a3372406a.chunk.js +0 -1
  394. package/dist/scripts/27-074f7ed617.chunk.js +0 -1
  395. package/dist/scripts/28-3f552efb1d.chunk.js +0 -1
  396. package/dist/scripts/29-3b0fed6546.chunk.js +0 -1
  397. package/dist/scripts/3-4c7cdc97d7.chunk.js +0 -7
  398. package/dist/scripts/30-efc1720b45.chunk.js +0 -1
  399. package/dist/scripts/31-fd10b2d2e3.chunk.js +0 -1
  400. package/dist/scripts/32-77df1d4c39.chunk.js +0 -1
  401. package/dist/scripts/33-7c092bbe19.chunk.js +0 -1
  402. package/dist/scripts/34-3c94a6fffe.chunk.js +0 -1
  403. package/dist/scripts/37-ecd001861c.chunk.js +0 -1
  404. package/dist/scripts/38-a42dc5fd6c.chunk.js +0 -1
  405. package/dist/scripts/4-9b843edce7.chunk.js +0 -1
  406. package/dist/scripts/43-9b84379d80.chunk.js +0 -1
  407. package/dist/scripts/44-1bedb97d4b.chunk.js +0 -1
  408. package/dist/scripts/45-b004111b2b.chunk.js +0 -1
  409. package/dist/scripts/47-cece788594.chunk.js +0 -1
  410. package/dist/scripts/48-722f37b837.chunk.js +0 -1
  411. package/dist/scripts/49-cb04b28057.chunk.js +0 -1
  412. package/dist/scripts/5-841e3d083b.chunk.js +0 -1
  413. package/dist/scripts/51-ed260ddadd.chunk.js +0 -1
  414. package/dist/scripts/56-83e51af2a6.chunk.js +0 -1
  415. package/dist/scripts/6-c429467dba.chunk.js +0 -1
  416. package/dist/scripts/7-3c52b41cbf.chunk.js +0 -1
  417. package/dist/scripts/9-fef5ef0698.chunk.js +0 -1
  418. package/dist/scripts/bundle-7782a79aa5.min.js +0 -1
@@ -0,0 +1,22 @@
1
+ import { CoreAnalyticsType } from "../models/AnalyticsEvent";
2
+ import { BaseAnalyticsEnricher, AnalyticsEnricherOptions } from './BaseAnalyticsEnricher';
3
+ export interface CoreContextEnricherOptions extends AnalyticsEnricherOptions {
4
+ productName: string;
5
+ productVersion: string;
6
+ }
7
+ export declare class CoreContextEnricher extends BaseAnalyticsEnricher {
8
+ private productName;
9
+ private productVersion;
10
+ constructor(options: CoreContextEnricherOptions);
11
+ get name(): string;
12
+ private shouldEnrich;
13
+ enrich(event: CoreAnalyticsType, next: any): void;
14
+ private getCoreContext;
15
+ /**
16
+ * Get current timestamp in UTC
17
+ */
18
+ private getTimestamp;
19
+ private getProductInfo;
20
+ private getRequestInfo;
21
+ private getClientInfo;
22
+ }
@@ -0,0 +1,10 @@
1
+ import { CoreAnalyticsType } from "../models/AnalyticsEvent";
2
+ import { BaseAnalyticsEnricher } from './BaseAnalyticsEnricher';
3
+ export declare class UserDataEnricher extends BaseAnalyticsEnricher {
4
+ private user;
5
+ get name(): string;
6
+ initialize(): void;
7
+ private shouldEnrich;
8
+ enrich(event: CoreAnalyticsType, next: Function): void;
9
+ private getUser;
10
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum CountryCode {
2
+ AU = "au",
3
+ NZ = "nz",
4
+ UK = "uk"
5
+ }
@@ -55,6 +55,9 @@ export declare enum UserAction {
55
55
  Suggest = "cv_product_suggest",
56
56
  EditAssoc = "cv_product_edit_assoc",
57
57
  Play = "cv_product_play",
58
+ Favourite = "cv_product_favourite",
59
+ Follow = "cv_product_follow",
60
+ Prefer = "cv_product_prefer",
58
61
  SetAccess = "cv_product_set_access",
59
62
  AddToLocalCache = "cv_product_add_to_lc",
60
63
  /**
@@ -88,7 +91,20 @@ export declare enum EntityType {
88
91
  Link = "link",
89
92
  Playlist = "playlist",
90
93
  Person = "person",
91
- Company = "company"
94
+ Company = "company",
95
+ Classroom = "classroom",
96
+ ClassroomGroup = "classroom_group",
97
+ Classification = "classification",
98
+ ShareLink = "share_link",
99
+ Upload = "upload",
100
+ SearchResults = "search_results",
101
+ Audience = "audience",
102
+ /**
103
+ * `user` cannot be the value here because when we log these events to Snowflake, the event object
104
+ * puts the current user's data under the `user` key. If we were to log events with `user` as the entity
105
+ * name, this data would be overwritten and lost.
106
+ */
107
+ User = "target_user"
92
108
  }
93
109
  export declare enum LocationContext {
94
110
  TopNav = "top_nav",
@@ -98,6 +114,7 @@ export declare enum LocationContext {
98
114
  VideoList = "video_list",
99
115
  VideoListItem = "video_list_item",
100
116
  VideoListHeader = "video_header",
117
+ VideoThumbnail = "video_thumbnail",
101
118
  VideoItemPreview = "video_item_preview",
102
119
  VideoDetails = "video_details",
103
120
  VideoDetailsHeader = "video_details_header",
@@ -119,7 +136,24 @@ export declare enum LocationContext {
119
136
  PastReleasesHeader = "past_releases_header",
120
137
  MigrationWarnings = "migration_warnings",
121
138
  PlaylistListHeader = "playlist_list_header",
122
- PlaylistListItem = "playlist_list_item"
139
+ PlaylistListItem = "playlist_list_item",
140
+ TeacherManager = "teacher_manager",
141
+ TeacherManagerListItem = "teacher_manager_list_item",
142
+ StudentManager = "student_manager",
143
+ StudentManagerListItem = "student_manager_list_item",
144
+ ClassroomsList = "classrooms_list",
145
+ ClassroomsListItem = "classrooms_list_item",
146
+ ClassroomOverview = "classroom_overview",
147
+ ClassroomOverviewStudentListItem = "classroom_overview_student_list_item",
148
+ ManageClassroomStudents = "manage_classroom_students",
149
+ ManageClassroomStudentListItem = "manage_classroom_student_list_item",
150
+ ManageClassroomGroups = "manage_classroom_groups",
151
+ ManageClassroomGroupListItem = "manage_classroom_group_list_item",
152
+ PlayPage = "play_page",
153
+ FloatingPlayer = "floating_player",
154
+ ContentUpdatesClassificationBanner = "content_updates_classification_banner",
155
+ PreferencesSettings = "preferences_settings",
156
+ MyUploads = "my_uploads"
123
157
  }
124
158
  export declare enum WorkflowPhase {
125
159
  Start = "start",
@@ -171,7 +205,12 @@ export declare enum ClickDescriptor {
171
205
  NavigateHome = "navigate_home",
172
206
  OpenInStaffView = "open_in_staff_view",
173
207
  Thumbnail = "thumbnail",
174
- Title = "title"
208
+ Title = "title",
209
+ ToggleHideValidListings = "toggle_hide_valid_listings",
210
+ LaunchImmersiveReader = "launch_immersive_reader",
211
+ CopyEmbedHtml = "copy_embed_html",
212
+ Close = "close",
213
+ Open = "open"
175
214
  }
176
215
  export declare enum CustomerSettingDescriptor {
177
216
  LibraryReview = "library_review"
@@ -184,12 +223,17 @@ export declare enum SuggestionDescriptor {
184
223
  Edit = "edit"
185
224
  }
186
225
  export declare enum AssocDescriptor {
187
- Image = "image"
226
+ Image = "image",
227
+ User = "user"
228
+ }
229
+ export declare enum ToggleDescriptor {
230
+ On = "on",
231
+ Off = "off"
188
232
  }
189
233
  /**
190
234
  * Action descriptors give further context to UserActions
191
235
  */
192
- export declare type ActionDescriptor = OperationDescriptor | SortDescriptor | FilterDescriptor | DirectSearchDescriptor | PageDescriptor | PlaybackDescriptor | CustomerSettingDescriptor | SuggestionDescriptor | InteractionTypeDescriptor | AssocDescriptor | ClickDescriptor;
236
+ export declare type ActionDescriptor = OperationDescriptor | SortDescriptor | FilterDescriptor | DirectSearchDescriptor | PageDescriptor | PlaybackDescriptor | CustomerSettingDescriptor | SuggestionDescriptor | InteractionTypeDescriptor | AssocDescriptor | ClickDescriptor | ToggleDescriptor;
193
237
  /**
194
238
  * Placeholder values to be used in circumstances where we need
195
239
  * to simply signify that a change has occurred. Particularly if it is
@@ -0,0 +1,4 @@
1
+ export interface VersionData {
2
+ name: string;
3
+ version: string;
4
+ }
@@ -0,0 +1,55 @@
1
+ import { HashObject } from "../interfaces/HashObject";
2
+ import { VersionData } from "../interfaces/VersionData";
3
+ import { UserAction, EventVersion, ActionContext } from "../interfaces/AnalyticsTypes";
4
+ import { Region } from "../interfaces/Region";
5
+ import { CountryCode } from "../enums/CountryCode";
6
+ export interface IncomingEvent {
7
+ type: CollectionEventType;
8
+ data: HashObject;
9
+ actionContext: ActionContext;
10
+ eventVersion: EventVersion;
11
+ }
12
+ export interface RequestData {
13
+ url: string;
14
+ referrer: string;
15
+ }
16
+ export interface PlatformData {
17
+ browser: VersionData;
18
+ os: VersionData;
19
+ request: RequestData;
20
+ screenResolution: string;
21
+ }
22
+ export interface CollectionEventUserData {
23
+ id: string;
24
+ role: string;
25
+ customer: {
26
+ id: string;
27
+ country: CountryCode;
28
+ region: Region;
29
+ };
30
+ }
31
+ export interface CollectionEventData {
32
+ [entity: string]: HashObject;
33
+ action: HashObject;
34
+ user: CollectionEventUserData;
35
+ platform: PlatformData;
36
+ product: VersionData;
37
+ }
38
+ export interface CollectionEventMetadata {
39
+ timestamp: string;
40
+ client: {
41
+ name: string;
42
+ version: string;
43
+ region: Region;
44
+ };
45
+ eventVersion: EventVersion;
46
+ }
47
+ export declare type CollectionEventType = UserAction;
48
+ /**
49
+ * Model to be sent to CollectionApi.
50
+ */
51
+ export interface CollectionEvent {
52
+ type: CollectionEventType;
53
+ data: CollectionEventData;
54
+ metadata: CollectionEventMetadata;
55
+ }
@@ -0,0 +1,39 @@
1
+ import * as Marionette from 'backbone.marionette';
2
+ import { CoreAnalyticsType } from "../models/AnalyticsEvent";
3
+ import { BaseAnalyticsClient } from "../clients/BaseAnalyticsClient";
4
+ import { CollectionApiClient } from "../clients/CollectionApiClient";
5
+ declare type AnalyticsClient = BaseAnalyticsClient | CollectionApiClient;
6
+ /**
7
+ * TransportLayer is responsible for communicating outgoing events from the
8
+ * AnalyticsService to registered AnalyticsClients.
9
+ */
10
+ interface TransportLayer {
11
+ publish(event: CoreAnalyticsType): void;
12
+ subscribe<TClient extends AnalyticsClient>(client: TClient): void;
13
+ }
14
+ export declare abstract class BaseAnalyticsTransport extends Marionette.Object implements TransportLayer {
15
+ abstract publish(event: CoreAnalyticsType): void;
16
+ abstract subscribe(client: AnalyticsClient): void;
17
+ }
18
+ /**
19
+ * EventTransport will utilise Backbone.Radio to emit events.
20
+ */
21
+ export declare class EventTransport extends BaseAnalyticsTransport {
22
+ get name(): string;
23
+ get channelName(): string;
24
+ /**
25
+ * Publish an event to all AnalyticsClients
26
+ *
27
+ * @param event Outgoing event object
28
+ */
29
+ publish(event: CoreAnalyticsType): void;
30
+ /**
31
+ * Subscribe the client to all outgoing events emitted from the AnalyticsService.
32
+ * All events will be recieved via the client's exposed eventHandler. Any specific
33
+ * event filtering or custom enrichment should occur within a client.
34
+ *
35
+ * @param client AnalyticsClient
36
+ */
37
+ subscribe(client: AnalyticsClient): void;
38
+ }
39
+ export {};
@@ -0,0 +1,6 @@
1
+ import { IncomingEvent } from "../models/CollectionEvent";
2
+ import { HashObject } from "../interfaces";
3
+ export declare const CollectionApiClientHelper: {
4
+ shouldLog(event: IncomingEvent): boolean;
5
+ formatData(event: IncomingEvent): HashObject<any>;
6
+ };
@@ -0,0 +1,14 @@
1
+ import { CoreAnalyticsType } from "../models/AnalyticsEvent";
2
+ import { HashObject } from "../interfaces";
3
+ declare type DataFormatter = (data: HashObject, event: CoreAnalyticsType) => HashObject;
4
+ export interface DataFormatterHash {
5
+ [eventType: string]: DataFormatter;
6
+ }
7
+ export declare const DataFormatHelper: {
8
+ /**
9
+ * Object will be logged to sink as is
10
+ */
11
+ passthrough(data: HashObject<any>): HashObject<any>;
12
+ getEditData(data: HashObject<any>, event: CoreAnalyticsType): HashObject<any>;
13
+ };
14
+ export {};
@@ -0,0 +1,19 @@
1
+ import { CoreAnalyticsType } from "../models/AnalyticsEvent";
2
+ /**
3
+ * Manage which events we want to log
4
+ *
5
+ * @description
6
+ * All events have a UserAction type, however, that same type can be used to represent
7
+ * different types of actions. For example, `UserAction.Rename` is used for events involving
8
+ * the renaming of folders, libraries and videos (from different parts of the product).
9
+ *
10
+ * So if a situation arises where we only want to collect events for a certain entity or from a
11
+ * certain part of the product. We can add a custom callback below and filter based on the event's actionContext.
12
+ */
13
+ export declare const EventWhitelistHelper: {
14
+ allow: () => boolean;
15
+ restrict: () => boolean;
16
+ };
17
+ export interface EventWhitelistHash {
18
+ [eventType: string]: (event: CoreAnalyticsType) => boolean;
19
+ }
@@ -0,0 +1,4 @@
1
+ export declare const TypeHelper: {
2
+ isObject(obj: any): boolean;
3
+ isFunction(fn: Function): fn is Function;
4
+ };
@@ -0,0 +1,10 @@
1
+ import { HashObject, Subtitle, Resource } from "../interfaces";
2
+ import { CoreAnalyticsType } from "../models/AnalyticsEvent";
3
+ export declare const UploadDataFormatHelper: {
4
+ getUploadData(data: any, event: CoreAnalyticsType): HashObject<any>;
5
+ formatVideoUpload(data: any, event: CoreAnalyticsType): HashObject<any>[];
6
+ getStartVideoUploadData(files: File[]): HashObject<any>[];
7
+ getDiscardVideoUploadData(uploads: HashObject<any> | HashObject<any>[]): HashObject<any>[];
8
+ getCompleteUploadData(videos: HashObject<any>[]): HashObject<any>[];
9
+ formatResourceUpload(item: Resource | Subtitle): HashObject<any>;
10
+ };
@@ -0,0 +1,10 @@
1
+ import { VersionData } from "../interfaces/VersionData";
2
+ /**
3
+ * Test order is important for all UARegex tests. Reordering them will break functionality.
4
+ */
5
+ export declare const UserAgentHelper: {
6
+ getDeviceType(): string;
7
+ getOperatingSystem(): VersionData;
8
+ getBrowser(): VersionData;
9
+ isTouchScreen(): boolean;
10
+ };
@@ -0,0 +1,42 @@
1
+ import { HashObject, Video } from "../interfaces";
2
+ export interface VideoWatchAnalyticsEvent {
3
+ model: Video;
4
+ playbackStatus: PlaybackStatus;
5
+ }
6
+ export interface PlaybackStatus {
7
+ position: number;
8
+ chapter: number;
9
+ totalDuration: number;
10
+ totalWatched: number;
11
+ hasStarted?: boolean;
12
+ }
13
+ interface BaseVideoData {
14
+ id: string;
15
+ title: string;
16
+ trackingCode: string;
17
+ duration: number;
18
+ }
19
+ interface BaseAssocData {
20
+ id: string;
21
+ title?: string;
22
+ }
23
+ export interface VideoAnalyticsPayload {
24
+ video: BaseVideoData;
25
+ rating?: string;
26
+ series?: BaseAssocData;
27
+ folder?: BaseAssocData;
28
+ owner?: BaseAssocData;
29
+ playlist?: BaseAssocData;
30
+ playbackStatus?: PlaybackStatus;
31
+ }
32
+ export declare const VideoDataFormatHelper: {
33
+ getVideoData(options: VideoWatchAnalyticsEvent): VideoAnalyticsPayload;
34
+ /**
35
+ * Map to the same properties recorded in Online.
36
+ * @see _toLogMasterVideo() in AnalyticsService in Online
37
+ *
38
+ * TODO: Video origin and user channel logging - both of these need to be re-worked properly.
39
+ */
40
+ getLegacyVideoData(options: VideoWatchAnalyticsEvent): HashObject<any>;
41
+ };
42
+ export {};
@@ -32,6 +32,7 @@ export declare class BaseAppRouter extends Marionette.AppRouter {
32
32
  */
33
33
  protected appRoutes?: Marionette.AppRoutes;
34
34
  protected appLinks?: string[];
35
+ protected externalRoutes?: Marionette.AppRoutes;
35
36
  /**
36
37
  * The channelName used to trigger the appLinks
37
38
  * on backbone.radio. This will match the Application's
@@ -52,11 +53,14 @@ export declare class BaseAppRouter extends Marionette.AppRouter {
52
53
  protected options?: BaseAppRouterOptions;
53
54
  constructor(options?: BaseAppRouterOptions);
54
55
  private bindDisposal;
56
+ private addRouteLookup;
55
57
  /**
56
58
  * Creates all the reverse route lookups
57
59
  * and binds all the appLinks to the radio channel
58
60
  */
59
- private processAppEvents;
61
+ private processInternalRoutes;
62
+ private processExternalRoutes;
63
+ private processAppLinks;
60
64
  /**
61
65
  * This is the heart of the AppRouter. Every single route both page loads
62
66
  * and appLinks will go through this method.
@@ -0,0 +1,3 @@
1
+ export declare const ViewModelActions: {
2
+ UPDATE: string;
3
+ };
@@ -0,0 +1,4 @@
1
+ declare type IUseViewModel<T> = [T, // State
2
+ (dataOrKey: T | keyof T, keyData?: any) => void];
3
+ export declare const useViewModel: <T = any>(viewModelKey: string, initialState?: T) => IUseViewModel<T>;
4
+ export {};
@@ -1,6 +1,8 @@
1
1
  import { ApplicationData } from "./ApplicationData";
2
- import { FlightState } from '../flight/interfaces/FlightState';
2
+ import { FlightState } from "../flight/interfaces/FlightState";
3
+ import { HashObject } from "./HashObject";
3
4
  export interface ApplicationState {
4
5
  readonly flightData: FlightState;
5
6
  readonly applicationData: ApplicationData;
7
+ readonly viewModelData: HashObject;
6
8
  }
@@ -0,0 +1,5 @@
1
+ import { ViewModelPayload } from "./ViewModelPayload";
2
+ export interface ViewModelAction {
3
+ type: string;
4
+ payload: ViewModelPayload;
5
+ }
@@ -0,0 +1,5 @@
1
+ export interface ViewModelPayload {
2
+ viewModelKey: string;
3
+ dataOrKey: any;
4
+ keyData?: any;
5
+ }
@@ -0,0 +1,3 @@
1
+ import { HashObject } from "../interfaces/HashObject";
2
+ import { ViewModelAction } from "../interfaces/ViewModelAction";
3
+ export declare function ViewModelReducer(state: HashObject, action: ViewModelAction): HashObject;
@@ -23,7 +23,7 @@ export declare const ArrayHelper: {
23
23
  * @param arr array of values
24
24
  * @param value value to be added or removed.
25
25
  */
26
- addOrRemove<T_13 = import("react").Key>(arr: T_13[], value: T_13): T_13[];
26
+ addOrRemove<T_13 = import("react").ReactText>(arr: T_13[], value: T_13): T_13[];
27
27
  addOrRemoveImmutable<T_14>(arr: T_14[], value: T_14): T_14[];
28
28
  /**
29
29
  * Returns a (stably) sorted copy of list, ranked in ascending order
@@ -1,4 +1,5 @@
1
+ import { Video } from "../../../interfaces";
1
2
  export interface VideoClassificationMapping {
2
3
  classificationId: string;
3
- videoId: string;
4
+ video: Video;
4
5
  }
@@ -1,6 +1,7 @@
1
1
  import { Core } from "../../../../../common/src/backbone";
2
2
  import { FileLifestyle } from "../enums/FileLifestyle";
3
3
  import { UploadApiWrapper } from './DropzoneWrapper';
4
+ import { AnalyticsOptions } from "../../../../../analytics/src/interfaces";
4
5
  export interface UploadItem extends Core.Model {
5
6
  file: File;
6
7
  name: string;
@@ -39,9 +40,9 @@ declare class UploadService extends Core.Service {
39
40
  * @param files Array of browser File objects
40
41
  * @returns Returns false if any of the files did not match the accepted file list.
41
42
  */
42
- addFiles(files: File[]): void;
43
+ addFiles(files: File[], analyticsOptions?: AnalyticsOptions): void;
43
44
  private requestUploads;
44
- addFile(file: File): void;
45
+ addFile(file: File, analyticsOptions: AnalyticsOptions): void;
45
46
  cancelUpload(id: string): void;
46
47
  protected onSuccess(file: File, response: any): void;
47
48
  cancelAllUploads(): void;
@@ -2,5 +2,5 @@ import * as React from 'react';
2
2
  interface LazyImageProps extends React.ImgHTMLAttributes<HTMLImageElement> {
3
3
  forceLoad?: boolean;
4
4
  }
5
- export declare function LazyImage({ forceLoad, ...propsWithSrc }: LazyImageProps): React.ReactElement;
5
+ export declare const LazyImage: React.NamedExoticComponent<LazyImageProps>;
6
6
  export {};
@@ -3,6 +3,11 @@ import * as Autosuggest from 'react-autosuggest';
3
3
  import { HashObject } from "../../../../common/src/react/interfaces/HashObject";
4
4
  import * as SearchUtils from './SearchUtils';
5
5
  export interface SearchBarProps<T extends HashObject> {
6
+ /**
7
+ * Optional initial query. Useful for populating the search bar
8
+ * on a search results page.
9
+ */
10
+ initialQuery?: string;
6
11
  /**
7
12
  * Callback function for when a suggestion is selected.
8
13
  */
@@ -19,9 +19,11 @@ export interface FixedWidgetProps {
19
19
  appLink?: Core.AppLink;
20
20
  settingsAppLink?: Core.AppLink;
21
21
  }
22
- export declare function FixedWidget(props: FixedWidgetProps): JSX.Element;
23
- export declare namespace FixedWidget {
22
+ declare function FixedWidget(props: FixedWidgetProps): JSX.Element;
23
+ declare namespace FixedWidget {
24
24
  var defaultProps: {
25
25
  type: WidgetType;
26
26
  };
27
27
  }
28
+ declare const Memoized: React.MemoExoticComponent<typeof FixedWidget>;
29
+ export { Memoized as FixedWidget };
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { Core } from "../../../../../../common/src/backbone";
3
3
  import { Classification } from "../../../../interfaces";
4
4
  interface SubjectWidgetItemProps {
@@ -6,5 +6,6 @@ interface SubjectWidgetItemProps {
6
6
  appLink: Core.AppLink;
7
7
  isLarge?: boolean;
8
8
  }
9
- export declare function SubjectWidgetItem(props: SubjectWidgetItemProps): JSX.Element;
10
- export {};
9
+ declare function SubjectWidgetItem(props: SubjectWidgetItemProps): JSX.Element;
10
+ declare const Memoized: React.MemoExoticComponent<typeof SubjectWidgetItem>;
11
+ export { Memoized as SubjectWidgetItem };
@@ -1,5 +1,6 @@
1
1
  declare const BootstrapKeys: {
2
2
  LOCALE: string;
3
3
  PHRASES: string;
4
+ VERSION: string;
4
5
  };
5
6
  export { BootstrapKeys };
@@ -9,5 +9,5 @@ export declare const SharedWithStatements: {
9
9
  export declare const WithStatementHelper: {
10
10
  SubjectPresentationActiveAudienceFilter(ids: string[]): string;
11
11
  SubjectPresentationAudienceFilter(id: string): string;
12
- ClassificationWithFollowers(currentUserId: string): string;
12
+ ClassificationWithFollowersAndMemberCount(currentUserId: string): string;
13
13
  };
@@ -0,0 +1,5 @@
1
+ export declare enum CountryCode {
2
+ AU = "au",
3
+ NZ = "nz",
4
+ UK = "uk"
5
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum SubtitleExtractionOptions {
2
+ ExternalOnly = 0,
3
+ EmbeddedOnly = 1
4
+ }
@@ -2,5 +2,6 @@ export declare enum WidgetContents {
2
2
  Videos = "videos",
3
3
  Series = "series",
4
4
  Subjects = "subjects",
5
- Playlists = "playlists"
5
+ Playlists = "playlists",
6
+ UserChannels = "user channels"
6
7
  }
@@ -2,6 +2,6 @@ import { Flight } from "../../../common/src/react";
2
2
  import { Xhr } from "../../../common/src/backbone/interfaces";
3
3
  export declare const FavouriteVideoRequests: {
4
4
  favouriteVideos(userId: string, cursor?: string): Flight.Request;
5
- updateIsVideoFavourited(videoId: string, userId: string, shouldFavourite: boolean, error?: (Xhr: Xhr) => void): Flight.Request;
5
+ updateIsVideoFavourited(videoId: string, userId: string, shouldFavourite: boolean, success?: () => void, error?: (Xhr: Xhr) => void): Flight.Request;
6
6
  isFavourited(userId: string, ids: string[]): Flight.Request;
7
7
  };
@@ -5,13 +5,13 @@ export declare const PreferenceRequests: {
5
5
  */
6
6
  allSubjectPreferences(): Flight.Request;
7
7
  mySubjectPreferences(): Flight.Request;
8
- followSubjects(subjectIds: string[], always: () => void): Flight.Request;
9
- unfollowSubjects(subjectIds: string[], always: () => void): Flight.Request;
8
+ followSubjects(subjectIds: string[], success: () => void, always: () => void): Flight.Request;
9
+ unfollowSubjects(subjectIds: string[], success: () => void, always: () => void): Flight.Request;
10
10
  /**
11
11
  * Levels
12
12
  */
13
13
  allLevelPreferences(): Flight.Request;
14
14
  myLevelPreferences(): Flight.Request;
15
- followLevels(levelIds: string[], always: () => void): Flight.Request;
16
- unfollowLevels(levelIds: string[], always: () => void): Flight.Request;
15
+ followLevels(levelIds: string[], success: () => void, always: () => void): Flight.Request;
16
+ unfollowLevels(levelIds: string[], success: () => void, always: () => void): Flight.Request;
17
17
  };
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { BaseObject } from "../interfaces";
3
+ /**
4
+ * This function can be used to temporarily store an array of reordered objects
5
+ * until the array obtained from the application store updates to the new order.
6
+ *
7
+ * @param items array of objects from application store.
8
+ */
9
+ export declare function useReorderedItems<T extends BaseObject>(items: T[]): [T[], React.Dispatch<React.SetStateAction<T[]>>];
@@ -1,9 +1,11 @@
1
1
  import { BaseObject, RegionalUrl } from "./..";
2
+ import { CountryCode } from "../../enums/CountryCode";
2
3
  export interface Config extends BaseObject {
3
4
  supportSiteUrl: string;
4
5
  imageCdnUrl: string;
5
- countryCode: string;
6
+ countryCode: CountryCode;
6
7
  webPlayerUrl: string;
7
8
  notificationServiceUrl?: string;
8
9
  collectionApiUrls?: RegionalUrl;
10
+ collectionApiClientId?: string;
9
11
  }
@@ -0,0 +1,3 @@
1
+ import { BaseObject } from "./..";
2
+ export interface Group extends BaseObject {
3
+ }
@@ -1,4 +1,4 @@
1
- import { BaseObject } from "./..";
1
+ import { BaseObject, Group } from "./..";
2
2
  import { UserRole } from "../../enums/UserRole";
3
3
  import { CustomerType } from "../../enums/CustomerType";
4
4
  import { OnlineUserRole } from "../../enums/UserRole";
@@ -21,6 +21,7 @@ export interface CuratorUser extends User {
21
21
  userId: string;
22
22
  firstName: string;
23
23
  countryCode: string;
24
+ groups: Group[];
24
25
  }
25
26
  /**
26
27
  * Current User for Lite/Cloud
@@ -0,0 +1,7 @@
1
+ import { BaseObject } from './primitives';
2
+ import { Thumbnail } from './Thumbnail';
3
+ export interface UserChannel extends BaseObject {
4
+ thumbnail: Thumbnail;
5
+ description: string;
6
+ verified: boolean;
7
+ }
@@ -40,3 +40,5 @@ export * from './Share';
40
40
  export * from './Restriction';
41
41
  export * from './VideoWithRestrictions';
42
42
  export * from './Following';
43
+ export * from './UserChannel';
44
+ export * from './Group';