react-native-theoplayer 9.3.0 → 9.5.0

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 (448) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +3 -2
  3. package/android/build.gradle +2 -2
  4. package/android/src/main/java/com/theoplayer/media/MediaPlaybackService.kt +7 -11
  5. package/android/src/main/java/com/theoplayer/presentation/PipConfig.kt +7 -0
  6. package/android/src/main/java/com/theoplayer/presentation/PipConfigAdapter.kt +7 -1
  7. package/android/src/main/java/com/theoplayer/presentation/PresentationManager.kt +2 -5
  8. package/android/src/main/java/com/theoplayer/track/TextTrackStyleAdapter.kt +8 -0
  9. package/app.plugin.js +2 -46
  10. package/lib/commonjs/api/abr/ABRConfiguration.js +5 -0
  11. package/lib/commonjs/api/abr/ABRConfiguration.js.map +1 -1
  12. package/lib/commonjs/api/ads/Omid.js +15 -0
  13. package/lib/commonjs/api/ads/Omid.js.map +1 -1
  14. package/lib/commonjs/api/backgroundAudio/BackgroundAudioConfiguration.js.map +1 -1
  15. package/lib/commonjs/api/cache/CachingTask.js +2 -0
  16. package/lib/commonjs/api/cache/CachingTask.js.map +1 -1
  17. package/lib/commonjs/api/cache/CachingTaskParameters.js +4 -2
  18. package/lib/commonjs/api/cache/CachingTaskParameters.js.map +1 -1
  19. package/lib/commonjs/api/cache/MediaCacheAPI.js +2 -0
  20. package/lib/commonjs/api/cache/MediaCacheAPI.js.map +1 -1
  21. package/lib/commonjs/api/cache/events/CacheEvent.js +19 -2
  22. package/lib/commonjs/api/cache/events/CacheEvent.js.map +1 -1
  23. package/lib/commonjs/api/cache/events/CachingTaskEvent.js +23 -0
  24. package/lib/commonjs/api/cache/events/CachingTaskEvent.js.map +1 -1
  25. package/lib/commonjs/api/cache/hooks/useCachingTaskList.js +6 -0
  26. package/lib/commonjs/api/cache/hooks/useCachingTaskList.js.map +1 -1
  27. package/lib/commonjs/api/cache/hooks/useCachingTaskProgress.js +6 -0
  28. package/lib/commonjs/api/cache/hooks/useCachingTaskProgress.js.map +1 -1
  29. package/lib/commonjs/api/cache/hooks/useCachingTaskStatus.js +6 -0
  30. package/lib/commonjs/api/cache/hooks/useCachingTaskStatus.js.map +1 -1
  31. package/lib/commonjs/api/cast/CastState.js +1 -0
  32. package/lib/commonjs/api/cast/CastState.js.map +1 -1
  33. package/lib/commonjs/api/event/AdEvent.js +14 -0
  34. package/lib/commonjs/api/event/AdEvent.js.map +1 -1
  35. package/lib/commonjs/api/event/CastEvent.js +35 -0
  36. package/lib/commonjs/api/event/CastEvent.js.map +1 -1
  37. package/lib/commonjs/api/event/PlayerEvent.js +106 -0
  38. package/lib/commonjs/api/event/PlayerEvent.js.map +1 -1
  39. package/lib/commonjs/api/event/TheoAdsEvent.js +14 -0
  40. package/lib/commonjs/api/event/TheoAdsEvent.js.map +1 -1
  41. package/lib/commonjs/api/event/TrackEvent.js +56 -0
  42. package/lib/commonjs/api/event/TrackEvent.js.map +1 -1
  43. package/lib/commonjs/api/player/PlayerEventMap.js +10 -0
  44. package/lib/commonjs/api/player/PlayerEventMap.js.map +1 -1
  45. package/lib/commonjs/api/player/THEOplayer.js +5 -0
  46. package/lib/commonjs/api/player/THEOplayer.js.map +1 -1
  47. package/lib/commonjs/api/presentation/PresentationMode.js.map +1 -1
  48. package/lib/commonjs/api/source/SourceDescription.js +18 -2
  49. package/lib/commonjs/api/source/SourceDescription.js.map +1 -1
  50. package/lib/commonjs/api/source/ads/Ads.js +8 -0
  51. package/lib/commonjs/api/source/ads/Ads.js.map +1 -1
  52. package/lib/commonjs/api/source/ads/TheoAdDescription.js +1 -0
  53. package/lib/commonjs/api/source/ads/TheoAdDescription.js.map +1 -1
  54. package/lib/commonjs/api/source/cmcd/CmcdConfiguration.js +9 -0
  55. package/lib/commonjs/api/source/cmcd/CmcdConfiguration.js.map +1 -1
  56. package/lib/commonjs/api/track/DateRangeCue.js +4 -0
  57. package/lib/commonjs/api/track/DateRangeCue.js.map +1 -1
  58. package/lib/commonjs/api/track/MediaTrack.js +28 -0
  59. package/lib/commonjs/api/track/MediaTrack.js.map +1 -1
  60. package/lib/commonjs/api/track/TextTrack.js +82 -0
  61. package/lib/commonjs/api/track/TextTrack.js.map +1 -1
  62. package/lib/commonjs/api/track/TextTrackStyle.js +2 -0
  63. package/lib/commonjs/api/track/TextTrackStyle.js.map +1 -1
  64. package/lib/commonjs/api/track/Track.js +28 -0
  65. package/lib/commonjs/api/track/Track.js.map +1 -1
  66. package/lib/commonjs/internal/adapter/DefaultNativePlayerState.js +1 -0
  67. package/lib/commonjs/internal/adapter/DefaultNativePlayerState.js.map +1 -1
  68. package/lib/commonjs/internal/adapter/THEOplayerAdapter.js +4 -0
  69. package/lib/commonjs/internal/adapter/THEOplayerAdapter.js.map +1 -1
  70. package/lib/commonjs/internal/adapter/THEOplayerWebAdapter.js +3 -0
  71. package/lib/commonjs/internal/adapter/THEOplayerWebAdapter.js.map +1 -1
  72. package/lib/commonjs/internal/cache/MediaCache.js +7 -0
  73. package/lib/commonjs/internal/cache/MediaCache.js.map +1 -1
  74. package/lib/commonjs/internal/drm/ContentProtectionRegistry.js +7 -0
  75. package/lib/commonjs/internal/drm/ContentProtectionRegistry.js.map +1 -1
  76. package/lib/commonjs/manifest.json +1 -1
  77. package/lib/commonjs/plugins/expo/Common.js +2 -0
  78. package/lib/commonjs/plugins/expo/Common.js.map +1 -0
  79. package/lib/commonjs/plugins/expo/withCustomPod.js +32 -0
  80. package/lib/commonjs/plugins/expo/withCustomPod.js.map +1 -0
  81. package/lib/commonjs/plugins/expo/withTHEOplayer.js +15 -0
  82. package/lib/commonjs/plugins/expo/withTHEOplayer.js.map +1 -0
  83. package/lib/commonjs/plugins/expo/withTHEOplayerAndroid.js +58 -0
  84. package/lib/commonjs/plugins/expo/withTHEOplayerAndroid.js.map +1 -0
  85. package/lib/commonjs/plugins/expo/withTHEOplayerIOS.js +47 -0
  86. package/lib/commonjs/plugins/expo/withTHEOplayerIOS.js.map +1 -0
  87. package/lib/commonjs/plugins/typedoc-platform-icons/package-lock.json +237 -0
  88. package/lib/commonjs/plugins/typedoc-platform-icons/package.json +20 -0
  89. package/lib/commonjs/plugins/typedoc-platform-icons/src/index.js +96 -0
  90. package/lib/commonjs/plugins/typedoc-platform-icons/src/index.js.map +1 -0
  91. package/lib/commonjs/plugins/typedoc-platform-icons/tsconfig.json +24 -0
  92. package/lib/module/api/abr/ABRConfiguration.js +5 -0
  93. package/lib/module/api/abr/ABRConfiguration.js.map +1 -1
  94. package/lib/module/api/ads/Omid.js +16 -0
  95. package/lib/module/api/ads/Omid.js.map +1 -1
  96. package/lib/module/api/backgroundAudio/BackgroundAudioConfiguration.js.map +1 -1
  97. package/lib/module/api/cache/CachingTask.js +2 -0
  98. package/lib/module/api/cache/CachingTask.js.map +1 -1
  99. package/lib/module/api/cache/CachingTaskParameters.js +4 -2
  100. package/lib/module/api/cache/CachingTaskParameters.js.map +1 -1
  101. package/lib/module/api/cache/MediaCacheAPI.js +2 -0
  102. package/lib/module/api/cache/MediaCacheAPI.js.map +1 -1
  103. package/lib/module/api/cache/events/CacheEvent.js +20 -2
  104. package/lib/module/api/cache/events/CacheEvent.js.map +1 -1
  105. package/lib/module/api/cache/events/CachingTaskEvent.js +25 -0
  106. package/lib/module/api/cache/events/CachingTaskEvent.js.map +1 -1
  107. package/lib/module/api/cache/hooks/useCachingTaskList.js +7 -0
  108. package/lib/module/api/cache/hooks/useCachingTaskList.js.map +1 -1
  109. package/lib/module/api/cache/hooks/useCachingTaskProgress.js +7 -0
  110. package/lib/module/api/cache/hooks/useCachingTaskProgress.js.map +1 -1
  111. package/lib/module/api/cache/hooks/useCachingTaskStatus.js +7 -0
  112. package/lib/module/api/cache/hooks/useCachingTaskStatus.js.map +1 -1
  113. package/lib/module/api/cast/CastState.js +1 -0
  114. package/lib/module/api/cast/CastState.js.map +1 -1
  115. package/lib/module/api/event/AdEvent.js +15 -0
  116. package/lib/module/api/event/AdEvent.js.map +1 -1
  117. package/lib/module/api/event/CastEvent.js +39 -0
  118. package/lib/module/api/event/CastEvent.js.map +1 -1
  119. package/lib/module/api/event/PlayerEvent.js +120 -0
  120. package/lib/module/api/event/PlayerEvent.js.map +1 -1
  121. package/lib/module/api/event/TheoAdsEvent.js +15 -0
  122. package/lib/module/api/event/TheoAdsEvent.js.map +1 -1
  123. package/lib/module/api/event/TrackEvent.js +63 -0
  124. package/lib/module/api/event/TrackEvent.js.map +1 -1
  125. package/lib/module/api/player/PlayerEventMap.js +10 -0
  126. package/lib/module/api/player/PlayerEventMap.js.map +1 -1
  127. package/lib/module/api/player/THEOplayer.js +5 -0
  128. package/lib/module/api/player/THEOplayer.js.map +1 -1
  129. package/lib/module/api/presentation/PresentationMode.js +0 -1
  130. package/lib/module/api/presentation/PresentationMode.js.map +1 -1
  131. package/lib/module/api/source/SourceDescription.js +19 -2
  132. package/lib/module/api/source/SourceDescription.js.map +1 -1
  133. package/lib/module/api/source/ads/Ads.js +8 -0
  134. package/lib/module/api/source/ads/Ads.js.map +1 -1
  135. package/lib/module/api/source/ads/TheoAdDescription.js +1 -0
  136. package/lib/module/api/source/ads/TheoAdDescription.js.map +1 -1
  137. package/lib/module/api/source/cmcd/CmcdConfiguration.js +9 -0
  138. package/lib/module/api/source/cmcd/CmcdConfiguration.js.map +1 -1
  139. package/lib/module/api/track/DateRangeCue.js +4 -0
  140. package/lib/module/api/track/DateRangeCue.js.map +1 -1
  141. package/lib/module/api/track/MediaTrack.js +28 -0
  142. package/lib/module/api/track/MediaTrack.js.map +1 -1
  143. package/lib/module/api/track/TextTrack.js +86 -0
  144. package/lib/module/api/track/TextTrack.js.map +1 -1
  145. package/lib/module/api/track/TextTrackStyle.js +2 -0
  146. package/lib/module/api/track/TextTrackStyle.js.map +1 -1
  147. package/lib/module/api/track/Track.js +28 -0
  148. package/lib/module/api/track/Track.js.map +1 -1
  149. package/lib/module/internal/adapter/DefaultNativePlayerState.js +1 -0
  150. package/lib/module/internal/adapter/DefaultNativePlayerState.js.map +1 -1
  151. package/lib/module/internal/adapter/THEOplayerAdapter.js +4 -0
  152. package/lib/module/internal/adapter/THEOplayerAdapter.js.map +1 -1
  153. package/lib/module/internal/adapter/THEOplayerWebAdapter.js +3 -0
  154. package/lib/module/internal/adapter/THEOplayerWebAdapter.js.map +1 -1
  155. package/lib/module/internal/cache/MediaCache.js +7 -0
  156. package/lib/module/internal/cache/MediaCache.js.map +1 -1
  157. package/lib/module/internal/drm/ContentProtectionRegistry.js +7 -0
  158. package/lib/module/internal/drm/ContentProtectionRegistry.js.map +1 -1
  159. package/lib/module/manifest.json +1 -1
  160. package/lib/module/plugins/expo/Common.js +2 -0
  161. package/lib/module/plugins/expo/Common.js.map +1 -0
  162. package/lib/module/plugins/expo/withCustomPod.js +27 -0
  163. package/lib/module/plugins/expo/withCustomPod.js.map +1 -0
  164. package/lib/module/plugins/expo/withTHEOplayer.js +11 -0
  165. package/lib/module/plugins/expo/withTHEOplayer.js.map +1 -0
  166. package/lib/module/plugins/expo/withTHEOplayerAndroid.js +53 -0
  167. package/lib/module/plugins/expo/withTHEOplayerAndroid.js.map +1 -0
  168. package/lib/module/plugins/expo/withTHEOplayerIOS.js +42 -0
  169. package/lib/module/plugins/expo/withTHEOplayerIOS.js.map +1 -0
  170. package/lib/module/plugins/typedoc-platform-icons/package-lock.json +237 -0
  171. package/lib/module/plugins/typedoc-platform-icons/package.json +20 -0
  172. package/lib/module/plugins/typedoc-platform-icons/src/index.js +92 -0
  173. package/lib/module/plugins/typedoc-platform-icons/src/index.js.map +1 -0
  174. package/lib/module/plugins/typedoc-platform-icons/tsconfig.json +24 -0
  175. package/lib/typescript/api/THEOplayerView.d.ts +1 -2
  176. package/lib/typescript/api/THEOplayerView.d.ts.map +1 -1
  177. package/lib/typescript/api/abr/ABRConfiguration.d.ts +13 -12
  178. package/lib/typescript/api/abr/ABRConfiguration.d.ts.map +1 -1
  179. package/lib/typescript/api/ads/Ad.d.ts +9 -2
  180. package/lib/typescript/api/ads/Ad.d.ts.map +1 -1
  181. package/lib/typescript/api/ads/AdBreak.d.ts +7 -0
  182. package/lib/typescript/api/ads/AdBreak.d.ts.map +1 -1
  183. package/lib/typescript/api/ads/AdsAPI.d.ts +6 -3
  184. package/lib/typescript/api/ads/AdsAPI.d.ts.map +1 -1
  185. package/lib/typescript/api/ads/AdsConfiguration.d.ts +14 -5
  186. package/lib/typescript/api/ads/AdsConfiguration.d.ts.map +1 -1
  187. package/lib/typescript/api/ads/CompanionAd.d.ts +1 -0
  188. package/lib/typescript/api/ads/CompanionAd.d.ts.map +1 -1
  189. package/lib/typescript/api/ads/GoogleDai.d.ts +1 -0
  190. package/lib/typescript/api/ads/GoogleDai.d.ts.map +1 -1
  191. package/lib/typescript/api/ads/GoogleImaAd.d.ts +3 -4
  192. package/lib/typescript/api/ads/GoogleImaAd.d.ts.map +1 -1
  193. package/lib/typescript/api/ads/GoogleImaConfiguration.d.ts +5 -1
  194. package/lib/typescript/api/ads/GoogleImaConfiguration.d.ts.map +1 -1
  195. package/lib/typescript/api/ads/Omid.d.ts +16 -0
  196. package/lib/typescript/api/ads/Omid.d.ts.map +1 -1
  197. package/lib/typescript/api/backgroundAudio/BackgroundAudioConfiguration.d.ts +4 -2
  198. package/lib/typescript/api/backgroundAudio/BackgroundAudioConfiguration.d.ts.map +1 -1
  199. package/lib/typescript/api/broadcast/EventBroadcastAPI.d.ts +1 -0
  200. package/lib/typescript/api/broadcast/EventBroadcastAPI.d.ts.map +1 -1
  201. package/lib/typescript/api/cache/CachingPreferredTrackSelection.d.ts +1 -0
  202. package/lib/typescript/api/cache/CachingPreferredTrackSelection.d.ts.map +1 -1
  203. package/lib/typescript/api/cache/CachingTask.d.ts +4 -1
  204. package/lib/typescript/api/cache/CachingTask.d.ts.map +1 -1
  205. package/lib/typescript/api/cache/CachingTaskLicense.d.ts +7 -0
  206. package/lib/typescript/api/cache/CachingTaskLicense.d.ts.map +1 -1
  207. package/lib/typescript/api/cache/CachingTaskList.d.ts +7 -0
  208. package/lib/typescript/api/cache/CachingTaskList.d.ts.map +1 -1
  209. package/lib/typescript/api/cache/CachingTaskParameters.d.ts +13 -9
  210. package/lib/typescript/api/cache/CachingTaskParameters.d.ts.map +1 -1
  211. package/lib/typescript/api/cache/MediaCacheAPI.d.ts +2 -0
  212. package/lib/typescript/api/cache/MediaCacheAPI.d.ts.map +1 -1
  213. package/lib/typescript/api/cache/events/CacheEvent.d.ts +19 -2
  214. package/lib/typescript/api/cache/events/CacheEvent.d.ts.map +1 -1
  215. package/lib/typescript/api/cache/events/CachingTaskEvent.d.ts +23 -0
  216. package/lib/typescript/api/cache/events/CachingTaskEvent.d.ts.map +1 -1
  217. package/lib/typescript/api/cache/hooks/useCachingTaskList.d.ts +6 -0
  218. package/lib/typescript/api/cache/hooks/useCachingTaskList.d.ts.map +1 -1
  219. package/lib/typescript/api/cache/hooks/useCachingTaskProgress.d.ts +6 -0
  220. package/lib/typescript/api/cache/hooks/useCachingTaskProgress.d.ts.map +1 -1
  221. package/lib/typescript/api/cache/hooks/useCachingTaskStatus.d.ts +6 -0
  222. package/lib/typescript/api/cache/hooks/useCachingTaskStatus.d.ts.map +1 -1
  223. package/lib/typescript/api/cast/Airplay.d.ts +2 -1
  224. package/lib/typescript/api/cast/Airplay.d.ts.map +1 -1
  225. package/lib/typescript/api/cast/CastAPI.d.ts +3 -0
  226. package/lib/typescript/api/cast/CastAPI.d.ts.map +1 -1
  227. package/lib/typescript/api/cast/CastConfiguration.d.ts +3 -0
  228. package/lib/typescript/api/cast/CastConfiguration.d.ts.map +1 -1
  229. package/lib/typescript/api/cast/CastState.d.ts +1 -0
  230. package/lib/typescript/api/cast/CastState.d.ts.map +1 -1
  231. package/lib/typescript/api/cast/Chromecast.d.ts +7 -0
  232. package/lib/typescript/api/cast/Chromecast.d.ts.map +1 -1
  233. package/lib/typescript/api/config/PlayerConfiguration.d.ts +15 -11
  234. package/lib/typescript/api/config/PlayerConfiguration.d.ts.map +1 -1
  235. package/lib/typescript/api/drm/ContentProtectionAPI.d.ts +9 -0
  236. package/lib/typescript/api/drm/ContentProtectionAPI.d.ts.map +1 -1
  237. package/lib/typescript/api/drm/ContentProtectionIntegration.d.ts +2 -1
  238. package/lib/typescript/api/drm/ContentProtectionIntegration.d.ts.map +1 -1
  239. package/lib/typescript/api/drm/ContentProtectionIntegrationFactory.d.ts +1 -0
  240. package/lib/typescript/api/drm/ContentProtectionIntegrationFactory.d.ts.map +1 -1
  241. package/lib/typescript/api/drm/ContentProtectionRequest.d.ts +5 -0
  242. package/lib/typescript/api/drm/ContentProtectionRequest.d.ts.map +1 -1
  243. package/lib/typescript/api/drm/ContentProtectionResponse.d.ts +6 -0
  244. package/lib/typescript/api/drm/ContentProtectionResponse.d.ts.map +1 -1
  245. package/lib/typescript/api/error/ChromecastError.d.ts +4 -0
  246. package/lib/typescript/api/error/ChromecastError.d.ts.map +1 -1
  247. package/lib/typescript/api/error/PlayerError.d.ts +7 -0
  248. package/lib/typescript/api/error/PlayerError.d.ts.map +1 -1
  249. package/lib/typescript/api/event/AdEvent.d.ts +18 -8
  250. package/lib/typescript/api/event/AdEvent.d.ts.map +1 -1
  251. package/lib/typescript/api/event/CastEvent.d.ts +35 -0
  252. package/lib/typescript/api/event/CastEvent.d.ts.map +1 -1
  253. package/lib/typescript/api/event/Event.d.ts +2 -1
  254. package/lib/typescript/api/event/Event.d.ts.map +1 -1
  255. package/lib/typescript/api/event/EventDispatcher.d.ts +3 -1
  256. package/lib/typescript/api/event/EventDispatcher.d.ts.map +1 -1
  257. package/lib/typescript/api/event/EventListener.d.ts +1 -0
  258. package/lib/typescript/api/event/EventListener.d.ts.map +1 -1
  259. package/lib/typescript/api/event/PlayerEvent.d.ts +107 -2
  260. package/lib/typescript/api/event/PlayerEvent.d.ts.map +1 -1
  261. package/lib/typescript/api/event/TheoAdsEvent.d.ts +14 -0
  262. package/lib/typescript/api/event/TheoAdsEvent.d.ts.map +1 -1
  263. package/lib/typescript/api/event/TrackEvent.d.ts +56 -0
  264. package/lib/typescript/api/event/TrackEvent.d.ts.map +1 -1
  265. package/lib/typescript/api/media/MediaControlConfiguration.d.ts +2 -4
  266. package/lib/typescript/api/media/MediaControlConfiguration.d.ts.map +1 -1
  267. package/lib/typescript/api/millicast/MillicastConnectOptions.d.ts +4 -0
  268. package/lib/typescript/api/millicast/MillicastConnectOptions.d.ts.map +1 -1
  269. package/lib/typescript/api/pip/PiPConfiguration.d.ts +10 -1
  270. package/lib/typescript/api/pip/PiPConfiguration.d.ts.map +1 -1
  271. package/lib/typescript/api/playback/PlaybackSettingsAPI.d.ts +3 -6
  272. package/lib/typescript/api/playback/PlaybackSettingsAPI.d.ts.map +1 -1
  273. package/lib/typescript/api/player/PlayerEventMap.d.ts +10 -0
  274. package/lib/typescript/api/player/PlayerEventMap.d.ts.map +1 -1
  275. package/lib/typescript/api/player/PlayerVersion.d.ts +6 -0
  276. package/lib/typescript/api/player/PlayerVersion.d.ts.map +1 -1
  277. package/lib/typescript/api/player/THEOplayer.d.ts +14 -9
  278. package/lib/typescript/api/player/THEOplayer.d.ts.map +1 -1
  279. package/lib/typescript/api/presentation/PresentationMode.d.ts.map +1 -1
  280. package/lib/typescript/api/source/SourceDescription.d.ts +29 -27
  281. package/lib/typescript/api/source/SourceDescription.d.ts.map +1 -1
  282. package/lib/typescript/api/source/ads/Ads.d.ts +8 -1
  283. package/lib/typescript/api/source/ads/Ads.d.ts.map +1 -1
  284. package/lib/typescript/api/source/ads/IMAAdDescription.d.ts +1 -0
  285. package/lib/typescript/api/source/ads/IMAAdDescription.d.ts.map +1 -1
  286. package/lib/typescript/api/source/ads/THEOplayerAdDescription.d.ts +1 -0
  287. package/lib/typescript/api/source/ads/THEOplayerAdDescription.d.ts.map +1 -1
  288. package/lib/typescript/api/source/ads/TheoAdDescription.d.ts +4 -3
  289. package/lib/typescript/api/source/ads/TheoAdDescription.d.ts.map +1 -1
  290. package/lib/typescript/api/source/ads/ssai/GoogleDAIConfiguration.d.ts +20 -1
  291. package/lib/typescript/api/source/ads/ssai/GoogleDAIConfiguration.d.ts.map +1 -1
  292. package/lib/typescript/api/source/ads/ssai/ServerSideAdInsertionConfiguration.d.ts +11 -0
  293. package/lib/typescript/api/source/ads/ssai/ServerSideAdInsertionConfiguration.d.ts.map +1 -1
  294. package/lib/typescript/api/source/analytics/AnalyticsDescription.d.ts +2 -0
  295. package/lib/typescript/api/source/analytics/AnalyticsDescription.d.ts.map +1 -1
  296. package/lib/typescript/api/source/cmcd/CmcdConfiguration.d.ts +14 -10
  297. package/lib/typescript/api/source/cmcd/CmcdConfiguration.d.ts.map +1 -1
  298. package/lib/typescript/api/source/dash/DashPlaybackConfiguration.d.ts +12 -16
  299. package/lib/typescript/api/source/dash/DashPlaybackConfiguration.d.ts.map +1 -1
  300. package/lib/typescript/api/source/drm/DRMConfiguration.d.ts +20 -0
  301. package/lib/typescript/api/source/drm/DRMConfiguration.d.ts.map +1 -1
  302. package/lib/typescript/api/source/hls/HlsPlaybackConfiguration.d.ts +2 -3
  303. package/lib/typescript/api/source/hls/HlsPlaybackConfiguration.d.ts.map +1 -1
  304. package/lib/typescript/api/source/metadata/MetadataDescription.d.ts +1 -0
  305. package/lib/typescript/api/source/metadata/MetadataDescription.d.ts.map +1 -1
  306. package/lib/typescript/api/theoads/TheoAdsAPI.d.ts +2 -2
  307. package/lib/typescript/api/theoads/interstitial/AdBreakInterstitial.d.ts +5 -0
  308. package/lib/typescript/api/theoads/interstitial/AdBreakInterstitial.d.ts.map +1 -1
  309. package/lib/typescript/api/theoads/interstitial/Interstitial.d.ts +2 -0
  310. package/lib/typescript/api/theoads/interstitial/Interstitial.d.ts.map +1 -1
  311. package/lib/typescript/api/theoads/interstitial/OverlayInterstitial.d.ts +3 -0
  312. package/lib/typescript/api/theoads/interstitial/OverlayInterstitial.d.ts.map +1 -1
  313. package/lib/typescript/api/theolive/TheoLiveConfiguration.d.ts +4 -8
  314. package/lib/typescript/api/theolive/TheoLiveConfiguration.d.ts.map +1 -1
  315. package/lib/typescript/api/track/DateRangeCue.d.ts +4 -0
  316. package/lib/typescript/api/track/DateRangeCue.d.ts.map +1 -1
  317. package/lib/typescript/api/track/MediaTrack.d.ts +25 -0
  318. package/lib/typescript/api/track/MediaTrack.d.ts.map +1 -1
  319. package/lib/typescript/api/track/Quality.d.ts +3 -0
  320. package/lib/typescript/api/track/Quality.d.ts.map +1 -1
  321. package/lib/typescript/api/track/TextTrack.d.ts +79 -0
  322. package/lib/typescript/api/track/TextTrack.d.ts.map +1 -1
  323. package/lib/typescript/api/track/TextTrackCue.d.ts +1 -0
  324. package/lib/typescript/api/track/TextTrackCue.d.ts.map +1 -1
  325. package/lib/typescript/api/track/TextTrackStyle.d.ts +13 -9
  326. package/lib/typescript/api/track/TextTrackStyle.d.ts.map +1 -1
  327. package/lib/typescript/api/track/Track.d.ts +25 -0
  328. package/lib/typescript/api/track/Track.d.ts.map +1 -1
  329. package/lib/typescript/api/ui/UIConfiguration.d.ts +1 -0
  330. package/lib/typescript/api/ui/UIConfiguration.d.ts.map +1 -1
  331. package/lib/typescript/internal/adapter/DefaultNativePlayerState.d.ts +1 -0
  332. package/lib/typescript/internal/adapter/DefaultNativePlayerState.d.ts.map +1 -1
  333. package/lib/typescript/internal/adapter/THEOplayerAdapter.d.ts +1 -0
  334. package/lib/typescript/internal/adapter/THEOplayerAdapter.d.ts.map +1 -1
  335. package/lib/typescript/internal/adapter/THEOplayerWebAdapter.d.ts +1 -0
  336. package/lib/typescript/internal/adapter/THEOplayerWebAdapter.d.ts.map +1 -1
  337. package/lib/typescript/internal/cache/MediaCache.d.ts +6 -0
  338. package/lib/typescript/internal/cache/MediaCache.d.ts.map +1 -1
  339. package/lib/typescript/internal/drm/ContentProtectionRegistry.d.ts +6 -0
  340. package/lib/typescript/internal/drm/ContentProtectionRegistry.d.ts.map +1 -1
  341. package/lib/typescript/plugins/expo/Common.d.ts +13 -0
  342. package/lib/typescript/plugins/expo/Common.d.ts.map +1 -0
  343. package/lib/typescript/plugins/expo/withCustomPod.d.ts +2 -0
  344. package/lib/typescript/plugins/expo/withCustomPod.d.ts.map +1 -0
  345. package/lib/typescript/plugins/expo/withTHEOplayer.d.ts +4 -0
  346. package/lib/typescript/plugins/expo/withTHEOplayer.d.ts.map +1 -0
  347. package/lib/typescript/plugins/expo/withTHEOplayerAndroid.d.ts +4 -0
  348. package/lib/typescript/plugins/expo/withTHEOplayerAndroid.d.ts.map +1 -0
  349. package/lib/typescript/plugins/expo/withTHEOplayerIOS.d.ts +4 -0
  350. package/lib/typescript/plugins/expo/withTHEOplayerIOS.d.ts.map +1 -0
  351. package/lib/typescript/plugins/typedoc-platform-icons/src/index.d.ts +3 -0
  352. package/lib/typescript/plugins/typedoc-platform-icons/src/index.d.ts.map +1 -0
  353. package/package.json +3 -3
  354. package/react-native-theoplayer.podspec +18 -8
  355. package/src/api/THEOplayerView.ts +1 -2
  356. package/src/api/abr/ABRConfiguration.ts +13 -12
  357. package/src/api/ads/Ad.ts +10 -3
  358. package/src/api/ads/AdBreak.ts +7 -0
  359. package/src/api/ads/AdsAPI.ts +6 -3
  360. package/src/api/ads/AdsConfiguration.ts +14 -5
  361. package/src/api/ads/CompanionAd.ts +1 -0
  362. package/src/api/ads/GoogleDai.ts +1 -0
  363. package/src/api/ads/GoogleImaAd.ts +3 -4
  364. package/src/api/ads/GoogleImaConfiguration.ts +7 -3
  365. package/src/api/ads/Omid.ts +16 -0
  366. package/src/api/backgroundAudio/BackgroundAudioConfiguration.ts +4 -2
  367. package/src/api/broadcast/EventBroadcastAPI.ts +1 -0
  368. package/src/api/cache/CachingPreferredTrackSelection.ts +1 -0
  369. package/src/api/cache/CachingTask.ts +5 -1
  370. package/src/api/cache/CachingTaskLicense.ts +7 -0
  371. package/src/api/cache/CachingTaskList.ts +7 -0
  372. package/src/api/cache/CachingTaskParameters.ts +13 -9
  373. package/src/api/cache/MediaCacheAPI.ts +2 -0
  374. package/src/api/cache/events/CacheEvent.ts +19 -2
  375. package/src/api/cache/events/CachingTaskEvent.ts +23 -0
  376. package/src/api/cache/hooks/useCachingTaskList.ts +6 -0
  377. package/src/api/cache/hooks/useCachingTaskProgress.ts +6 -0
  378. package/src/api/cache/hooks/useCachingTaskStatus.ts +6 -0
  379. package/src/api/cast/Airplay.ts +3 -2
  380. package/src/api/cast/CastAPI.ts +3 -1
  381. package/src/api/cast/CastConfiguration.ts +3 -0
  382. package/src/api/cast/CastState.ts +1 -0
  383. package/src/api/cast/Chromecast.ts +7 -0
  384. package/src/api/config/PlayerConfiguration.ts +15 -11
  385. package/src/api/drm/ContentProtectionAPI.ts +10 -0
  386. package/src/api/drm/ContentProtectionIntegration.ts +2 -1
  387. package/src/api/drm/ContentProtectionIntegrationFactory.ts +1 -0
  388. package/src/api/drm/ContentProtectionRequest.ts +5 -0
  389. package/src/api/drm/ContentProtectionResponse.ts +6 -0
  390. package/src/api/error/ChromecastError.ts +4 -0
  391. package/src/api/error/PlayerError.ts +7 -0
  392. package/src/api/event/AdEvent.ts +18 -8
  393. package/src/api/event/CastEvent.ts +35 -0
  394. package/src/api/event/Event.ts +2 -1
  395. package/src/api/event/EventDispatcher.ts +3 -1
  396. package/src/api/event/EventListener.ts +1 -0
  397. package/src/api/event/PlayerEvent.ts +107 -2
  398. package/src/api/event/TheoAdsEvent.ts +14 -0
  399. package/src/api/event/TrackEvent.ts +56 -0
  400. package/src/api/media/MediaControlConfiguration.ts +2 -4
  401. package/src/api/millicast/MillicastConnectOptions.ts +5 -1
  402. package/src/api/pip/PiPConfiguration.ts +11 -1
  403. package/src/api/playback/PlaybackSettingsAPI.ts +3 -6
  404. package/src/api/player/PlayerEventMap.ts +10 -0
  405. package/src/api/player/PlayerVersion.ts +6 -0
  406. package/src/api/player/THEOplayer.ts +15 -9
  407. package/src/api/presentation/PresentationMode.ts +0 -1
  408. package/src/api/source/SourceDescription.ts +29 -27
  409. package/src/api/source/ads/Ads.ts +8 -1
  410. package/src/api/source/ads/IMAAdDescription.ts +1 -0
  411. package/src/api/source/ads/THEOplayerAdDescription.ts +1 -0
  412. package/src/api/source/ads/TheoAdDescription.ts +4 -3
  413. package/src/api/source/ads/ssai/GoogleDAIConfiguration.ts +20 -1
  414. package/src/api/source/ads/ssai/ServerSideAdInsertionConfiguration.ts +12 -0
  415. package/src/api/source/analytics/AnalyticsDescription.ts +2 -0
  416. package/src/api/source/cmcd/CmcdConfiguration.ts +14 -10
  417. package/src/api/source/dash/DashPlaybackConfiguration.ts +12 -16
  418. package/src/api/source/drm/DRMConfiguration.ts +20 -0
  419. package/src/api/source/hls/HlsPlaybackConfiguration.ts +2 -3
  420. package/src/api/source/metadata/MetadataDescription.ts +1 -0
  421. package/src/api/theoads/TheoAdsAPI.ts +2 -2
  422. package/src/api/theoads/interstitial/AdBreakInterstitial.ts +5 -0
  423. package/src/api/theoads/interstitial/Interstitial.ts +2 -0
  424. package/src/api/theoads/interstitial/OverlayInterstitial.ts +3 -0
  425. package/src/api/theolive/TheoLiveConfiguration.ts +4 -8
  426. package/src/api/track/DateRangeCue.ts +4 -0
  427. package/src/api/track/MediaTrack.ts +25 -0
  428. package/src/api/track/Quality.ts +3 -0
  429. package/src/api/track/TextTrack.ts +79 -1
  430. package/src/api/track/TextTrackCue.ts +1 -0
  431. package/src/api/track/TextTrackStyle.ts +13 -9
  432. package/src/api/track/Track.ts +25 -0
  433. package/src/api/ui/UIConfiguration.ts +1 -0
  434. package/src/internal/adapter/DefaultNativePlayerState.ts +1 -0
  435. package/src/internal/adapter/THEOplayerAdapter.ts +5 -0
  436. package/src/internal/adapter/THEOplayerWebAdapter.ts +4 -0
  437. package/src/internal/cache/MediaCache.ts +6 -0
  438. package/src/internal/drm/ContentProtectionRegistry.ts +6 -0
  439. package/src/manifest.json +1 -1
  440. package/src/plugins/expo/Common.ts +20 -0
  441. package/src/plugins/expo/withCustomPod.ts +28 -0
  442. package/src/plugins/expo/withTHEOplayer.ts +11 -0
  443. package/src/plugins/expo/withTHEOplayerAndroid.ts +53 -0
  444. package/src/plugins/expo/withTHEOplayerIOS.ts +44 -0
  445. package/src/plugins/typedoc-platform-icons/package-lock.json +237 -0
  446. package/src/plugins/typedoc-platform-icons/package.json +20 -0
  447. package/src/plugins/typedoc-platform-icons/src/index.tsx +90 -0
  448. package/src/plugins/typedoc-platform-icons/tsconfig.json +24 -0
@@ -0,0 +1,237 @@
1
+ {
2
+ "name": "typedoc-platform-icons",
3
+ "version": "1.0.0",
4
+ "lockfileVersion": 3,
5
+ "requires": true,
6
+ "packages": {
7
+ "": {
8
+ "name": "typedoc-platform-icons",
9
+ "version": "1.0.0",
10
+ "devDependencies": {
11
+ "typedoc": "^0.28.1",
12
+ "typescript": "^5.1.6"
13
+ }
14
+ },
15
+ "node_modules/@gerrit0/mini-shiki": {
16
+ "version": "3.2.1",
17
+ "resolved": "https://registry.npmjs.org/@gerrit0/mini-shiki/-/mini-shiki-3.2.1.tgz",
18
+ "integrity": "sha512-HbzRC6MKB6U8kQhczz0APKPIzFHTrcqhaC7es2EXInq1SpjPVnpVSIsBe6hNoLWqqCx1n5VKiPXq6PfXnHZKOQ==",
19
+ "dev": true,
20
+ "license": "MIT",
21
+ "dependencies": {
22
+ "@shikijs/engine-oniguruma": "^3.2.1",
23
+ "@shikijs/types": "^3.2.1",
24
+ "@shikijs/vscode-textmate": "^10.0.2"
25
+ }
26
+ },
27
+ "node_modules/@shikijs/engine-oniguruma": {
28
+ "version": "3.2.1",
29
+ "resolved": "https://registry.npmjs.org/@shikijs/engine-oniguruma/-/engine-oniguruma-3.2.1.tgz",
30
+ "integrity": "sha512-wZZAkayEn6qu2+YjenEoFqj0OyQI64EWsNR6/71d1EkG4sxEOFooowKivsWPpaWNBu3sxAG+zPz5kzBL/SsreQ==",
31
+ "dev": true,
32
+ "license": "MIT",
33
+ "dependencies": {
34
+ "@shikijs/types": "3.2.1",
35
+ "@shikijs/vscode-textmate": "^10.0.2"
36
+ }
37
+ },
38
+ "node_modules/@shikijs/types": {
39
+ "version": "3.2.1",
40
+ "resolved": "https://registry.npmjs.org/@shikijs/types/-/types-3.2.1.tgz",
41
+ "integrity": "sha512-/NTWAk4KE2M8uac0RhOsIhYQf4pdU0OywQuYDGIGAJ6Mjunxl2cGiuLkvu4HLCMn+OTTLRWkjZITp+aYJv60yA==",
42
+ "dev": true,
43
+ "license": "MIT",
44
+ "dependencies": {
45
+ "@shikijs/vscode-textmate": "^10.0.2",
46
+ "@types/hast": "^3.0.4"
47
+ }
48
+ },
49
+ "node_modules/@shikijs/vscode-textmate": {
50
+ "version": "10.0.2",
51
+ "resolved": "https://registry.npmjs.org/@shikijs/vscode-textmate/-/vscode-textmate-10.0.2.tgz",
52
+ "integrity": "sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg==",
53
+ "dev": true,
54
+ "license": "MIT"
55
+ },
56
+ "node_modules/@types/hast": {
57
+ "version": "3.0.4",
58
+ "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.4.tgz",
59
+ "integrity": "sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==",
60
+ "dev": true,
61
+ "license": "MIT",
62
+ "dependencies": {
63
+ "@types/unist": "*"
64
+ }
65
+ },
66
+ "node_modules/@types/unist": {
67
+ "version": "3.0.3",
68
+ "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz",
69
+ "integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==",
70
+ "dev": true,
71
+ "license": "MIT"
72
+ },
73
+ "node_modules/argparse": {
74
+ "version": "2.0.1",
75
+ "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
76
+ "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
77
+ "dev": true,
78
+ "license": "Python-2.0"
79
+ },
80
+ "node_modules/balanced-match": {
81
+ "version": "1.0.2",
82
+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
83
+ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
84
+ "dev": true,
85
+ "license": "MIT"
86
+ },
87
+ "node_modules/brace-expansion": {
88
+ "version": "2.0.1",
89
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
90
+ "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
91
+ "dev": true,
92
+ "license": "MIT",
93
+ "dependencies": {
94
+ "balanced-match": "^1.0.0"
95
+ }
96
+ },
97
+ "node_modules/entities": {
98
+ "version": "4.5.0",
99
+ "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz",
100
+ "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==",
101
+ "dev": true,
102
+ "license": "BSD-2-Clause",
103
+ "engines": {
104
+ "node": ">=0.12"
105
+ },
106
+ "funding": {
107
+ "url": "https://github.com/fb55/entities?sponsor=1"
108
+ }
109
+ },
110
+ "node_modules/linkify-it": {
111
+ "version": "5.0.0",
112
+ "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-5.0.0.tgz",
113
+ "integrity": "sha512-5aHCbzQRADcdP+ATqnDuhhJ/MRIqDkZX5pyjFHRRysS8vZ5AbqGEoFIb6pYHPZ+L/OC2Lc+xT8uHVVR5CAK/wQ==",
114
+ "dev": true,
115
+ "license": "MIT",
116
+ "dependencies": {
117
+ "uc.micro": "^2.0.0"
118
+ }
119
+ },
120
+ "node_modules/lunr": {
121
+ "version": "2.3.9",
122
+ "resolved": "https://registry.npmjs.org/lunr/-/lunr-2.3.9.tgz",
123
+ "integrity": "sha512-zTU3DaZaF3Rt9rhN3uBMGQD3dD2/vFQqnvZCDv4dl5iOzq2IZQqTxu90r4E5J+nP70J3ilqVCrbho2eWaeW8Ow==",
124
+ "dev": true,
125
+ "license": "MIT"
126
+ },
127
+ "node_modules/markdown-it": {
128
+ "version": "14.1.0",
129
+ "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-14.1.0.tgz",
130
+ "integrity": "sha512-a54IwgWPaeBCAAsv13YgmALOF1elABB08FxO9i+r4VFk5Vl4pKokRPeX8u5TCgSsPi6ec1otfLjdOpVcgbpshg==",
131
+ "dev": true,
132
+ "license": "MIT",
133
+ "dependencies": {
134
+ "argparse": "^2.0.1",
135
+ "entities": "^4.4.0",
136
+ "linkify-it": "^5.0.0",
137
+ "mdurl": "^2.0.0",
138
+ "punycode.js": "^2.3.1",
139
+ "uc.micro": "^2.1.0"
140
+ },
141
+ "bin": {
142
+ "markdown-it": "bin/markdown-it.mjs"
143
+ }
144
+ },
145
+ "node_modules/mdurl": {
146
+ "version": "2.0.0",
147
+ "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-2.0.0.tgz",
148
+ "integrity": "sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w==",
149
+ "dev": true,
150
+ "license": "MIT"
151
+ },
152
+ "node_modules/minimatch": {
153
+ "version": "9.0.5",
154
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz",
155
+ "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==",
156
+ "dev": true,
157
+ "license": "ISC",
158
+ "dependencies": {
159
+ "brace-expansion": "^2.0.1"
160
+ },
161
+ "engines": {
162
+ "node": ">=16 || 14 >=14.17"
163
+ },
164
+ "funding": {
165
+ "url": "https://github.com/sponsors/isaacs"
166
+ }
167
+ },
168
+ "node_modules/punycode.js": {
169
+ "version": "2.3.1",
170
+ "resolved": "https://registry.npmjs.org/punycode.js/-/punycode.js-2.3.1.tgz",
171
+ "integrity": "sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==",
172
+ "dev": true,
173
+ "license": "MIT",
174
+ "engines": {
175
+ "node": ">=6"
176
+ }
177
+ },
178
+ "node_modules/typedoc": {
179
+ "version": "0.28.1",
180
+ "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.28.1.tgz",
181
+ "integrity": "sha512-Mn2VPNMaxoe/hlBiLriG4U55oyAa3Xo+8HbtEwV7F5WEOPXqtxzGuMZhJYHaqFJpajeQ6ZDUC2c990NAtTbdgw==",
182
+ "dev": true,
183
+ "license": "Apache-2.0",
184
+ "dependencies": {
185
+ "@gerrit0/mini-shiki": "^3.2.1",
186
+ "lunr": "^2.3.9",
187
+ "markdown-it": "^14.1.0",
188
+ "minimatch": "^9.0.5",
189
+ "yaml": "^2.7.0 "
190
+ },
191
+ "bin": {
192
+ "typedoc": "bin/typedoc"
193
+ },
194
+ "engines": {
195
+ "node": ">= 18",
196
+ "pnpm": ">= 10"
197
+ },
198
+ "peerDependencies": {
199
+ "typescript": "5.0.x || 5.1.x || 5.2.x || 5.3.x || 5.4.x || 5.5.x || 5.6.x || 5.7.x || 5.8.x"
200
+ }
201
+ },
202
+ "node_modules/typescript": {
203
+ "version": "5.8.2",
204
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.2.tgz",
205
+ "integrity": "sha512-aJn6wq13/afZp/jT9QZmwEjDqqvSGp1VT5GVg+f/t6/oVyrgXM6BY1h9BRh/O5p3PlUPAe+WuiEZOmb/49RqoQ==",
206
+ "dev": true,
207
+ "license": "Apache-2.0",
208
+ "bin": {
209
+ "tsc": "bin/tsc",
210
+ "tsserver": "bin/tsserver"
211
+ },
212
+ "engines": {
213
+ "node": ">=14.17"
214
+ }
215
+ },
216
+ "node_modules/uc.micro": {
217
+ "version": "2.1.0",
218
+ "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-2.1.0.tgz",
219
+ "integrity": "sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==",
220
+ "dev": true,
221
+ "license": "MIT"
222
+ },
223
+ "node_modules/yaml": {
224
+ "version": "2.7.0",
225
+ "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.7.0.tgz",
226
+ "integrity": "sha512-+hSoy/QHluxmC9kCIJyL/uyFmLmc+e5CFR5Wa+bpIhIj85LVb9ZH2nVnqrHoSvKogwODv0ClqZkmiSSaIH5LTA==",
227
+ "dev": true,
228
+ "license": "ISC",
229
+ "bin": {
230
+ "yaml": "bin.mjs"
231
+ },
232
+ "engines": {
233
+ "node": ">= 14"
234
+ }
235
+ }
236
+ }
237
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "typedoc-platform-icons",
3
+ "version": "1.0.0",
4
+ "description": "TypeDoc plugin which renders icon tags for iOS, Android and Web",
5
+ "main": "dist/index.js",
6
+ "type": "module",
7
+ "scripts": {
8
+ "build": "tsc"
9
+ },
10
+ "devDependencies": {
11
+ "typedoc": "^0.25.13",
12
+ "typescript": "^5.1.6"
13
+ },
14
+ "files": [
15
+ "dist/plugin.js"
16
+ ],
17
+ "peerDependencies": {
18
+ "typedoc": "0.23.x || 0.24.x || 0.25.x || 0.26.x || 0.27.x || 0.28.x"
19
+ }
20
+ }
@@ -0,0 +1,90 @@
1
+ import { Application, Context, Converter, PageEvent, ReflectionKind } from 'typedoc';
2
+
3
+ const style = String.raw`
4
+ <style>
5
+ .platform-tag {
6
+ display: inline-flex;
7
+ align-items: center;
8
+ border-radius: 20px;
9
+ padding: 2px 4px;
10
+ font-size: small;
11
+ margin-left: 4px;
12
+ font-weight: bold;
13
+ }
14
+
15
+ .platform-tag-ios {
16
+ border: purple 2px solid;
17
+ background-color: #ffceff;
18
+ color: purple;
19
+ }
20
+
21
+ .platform-tag-android {
22
+ border: green 2px solid;
23
+ background-color: #ceffce;
24
+ color: green;
25
+ }
26
+
27
+ .platform-tag-web {
28
+ border: dodgerblue 2px solid;
29
+ background-color: #e7ecff;
30
+ color: dodgerblue;
31
+ }
32
+
33
+ .margin-left-xs {
34
+ margin-left: 4px;
35
+ }
36
+ </style>
37
+ `;
38
+
39
+ export function load(app: Application): void {
40
+ app.renderer.on(PageEvent.END, (event: PageEvent) => {
41
+ if (event.contents === undefined) {
42
+ return;
43
+ }
44
+ const html = event.contents;
45
+ const headEndIndex = html.indexOf('</head>');
46
+ event.contents = html.slice(0, headEndIndex) + style + html.slice(headEndIndex);
47
+ });
48
+
49
+ app.converter.on(Converter.EVENT_RESOLVE_BEGIN, (ctx: Context) => {
50
+ for (const reflection of ctx.project.getReflectionsByKind(ReflectionKind.All)) {
51
+ const { comment } = reflection;
52
+ if (comment) {
53
+ comment.getTags('@platform').forEach((part) => {
54
+ const tags = part.content[0];
55
+ if (!tags) {
56
+ return;
57
+ }
58
+ part.content = [];
59
+ if (tags.text.indexOf('ios') >= 0) {
60
+ part.content.push({
61
+ kind: 'text',
62
+ text: `<div class="platform-tag platform-tag-ios">
63
+ <svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" width="14" height="14" viewBox="0 0 20 20"><path fill="purple" d="M17.85 14.227c-.106.307-.217.6-.335.881a10.338 10.338 0 0 1-1.022 1.836c-.536.766-.976 1.296-1.315 1.59-.525.483-1.088.731-1.691.744-.433 0-.954-.123-1.562-.372-.609-.249-1.169-.372-1.681-.372-.537 0-1.113.123-1.729.372-.617.249-1.114.38-1.494.392-.578.025-1.154-.229-1.729-.764-.367-.32-.826-.869-1.376-1.646-.59-.83-1.075-1.793-1.455-2.891-.407-1.185-.611-2.333-.611-3.444 0-1.273.275-2.371.826-3.291a4.846 4.846 0 0 1 1.73-1.75 4.654 4.654 0 0 1 2.339-.66c.459 0 1.061.142 1.809.421.746.28 1.225.422 1.435.422.157 0 .689-.166 1.591-.497.853-.307 1.573-.434 2.163-.384 1.598.129 2.798.759 3.597 1.894-1.429.866-2.136 2.079-2.122 3.635.013 1.212.452 2.221 1.316 3.022.392.371.83.658 1.316.862zM13.83.305c.013.127.019.254.019.38 0 .95-.347 1.837-1.038 2.658-.835.976-1.845 1.54-2.94 1.451a2.95 2.95 0 0 1-.022-.36c0-.912.397-1.888 1.102-2.686.352-.404.8-.74 1.342-1.008.542-.264 1.055-.41 1.537-.435z"/></svg>
64
+ <span class="margin-left-xs">iOS</span>
65
+ </div>`,
66
+ });
67
+ }
68
+ if (tags.text.indexOf('android') >= 0) {
69
+ part.content.push({
70
+ kind: 'text',
71
+ text: `<div class="platform-tag platform-tag-android">
72
+ <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 675 675"><path fill="green" d="M672.38 514.23c-.22-1.378-.43-2.74-.66-4.102a335.112 335.112 0 0 0-5.13-25.041 337.18 337.18 0 0 0-28.51-75.63 341.207 341.207 0 0 0-24.56-40.072 338.6 338.6 0 0 0-37.1-43.697 334.176 334.176 0 0 0-17.66-16.361 339.62 339.62 0 0 0-42.06-30.98c.13-.214.24-.443.37-.657 6.79-11.732 13.6-23.449 20.39-35.181l19.92-34.361a10427.4 10427.4 0 0 0 14.3-24.68 31.28 31.28 0 0 0 2.69-6.038 30.96 30.96 0 0 0 .45-17.444 31.743 31.743 0 0 0-3.35-7.959c-2.54-4.266-6.17-7.974-10.73-10.682a31.15 31.15 0 0 0-13.16-4.233 31.455 31.455 0 0 0-5.83.05c-1.6.163-3.19.459-4.77.869a30.865 30.865 0 0 0-14.9 9.041 31.106 31.106 0 0 0-3.91 5.333c-4.77 8.221-9.54 16.459-14.3 24.68l-19.92 34.361c-6.79 11.733-13.6 23.449-20.39 35.182-.74 1.279-1.49 2.559-2.23 3.856-1.03-.411-2.05-.821-3.08-1.215-37.44-14.276-78.06-22.087-120.52-22.087-1.16 0-2.31 0-3.48.017-37.75.377-74.02 6.941-107.86 18.723a314.032 314.032 0 0 0-11.62 4.316c-.69-1.198-1.4-2.396-2.08-3.594-6.79-11.733-13.6-23.449-20.39-35.182l-19.92-34.36c-4.78-8.222-9.55-16.46-14.3-24.68a31.643 31.643 0 0 0-3.91-5.333 30.865 30.865 0 0 0-14.9-9.042c-1.58-.41-3.17-.705-4.78-.87a31.34 31.34 0 0 0-5.82-.049 30.784 30.784 0 0 0-13.17 4.234 30.809 30.809 0 0 0-10.72 10.682 30.373 30.373 0 0 0-1.95 3.873 29.589 29.589 0 0 0-1.4 4.086 31.048 31.048 0 0 0 .44 17.443 31.905 31.905 0 0 0 2.69 6.039c4.78 8.22 9.55 16.458 14.3 24.68 6.65 11.453 13.29 22.907 19.93 34.36 6.79 11.733 13.59 23.449 20.38 35.182.05.098.12.197.17.295a339.667 339.667 0 0 0-39.03 28.273 337.741 337.741 0 0 0-21.27 19.445 341.007 341.007 0 0 0-37.1 43.698 335.863 335.863 0 0 0-24.56 40.072 337.18 337.18 0 0 0-28.51 75.63 343.767 343.767 0 0 0-5.13 25.041c-.23 1.362-.44 2.74-.65 4.102a328.42 328.42 0 0 0-1.94 14.818h673.11c-.54-4.972-1.18-9.912-1.93-14.818l.05-.033Z"/><path fill="#202124" d="M512.79 435.987c13.47-8.966 15.43-29.71 4.37-46.331-11.05-16.622-30.93-22.827-44.39-13.861-13.47 8.967-15.43 29.71-4.37 46.331 11.05 16.622 30.93 22.828 44.39 13.861ZM207.6 422.184c11.06-16.622 9.1-37.365-4.37-46.331-13.47-8.967-33.34-2.761-44.4 13.86-11.05 16.622-9.09 37.365 4.37 46.331 13.47 8.967 33.35 2.761 44.4-13.86Z"/></svg>
73
+ <span class="margin-left-xs">Android</span>
74
+ </div>`,
75
+ });
76
+ }
77
+ if (tags.text.indexOf('web') >= 0) {
78
+ part.content.push({
79
+ kind: 'text',
80
+ text: `<div class="platform-tag platform-tag-web">
81
+ <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path fill="dodgerblue" d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95a15.65 15.65 0 0 0-1.38-3.56A8.03 8.03 0 0 1 18.92 8zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2s.06 1.34.14 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56A7.987 7.987 0 0 1 5.08 16zm2.95-8H5.08a7.987 7.987 0 0 1 4.33-3.56A15.65 15.65 0 0 0 8.03 8zM12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.34 14H9.66c-.09-.66-.16-1.32-.16-2s.07-1.35.16-2h4.68c.09.65.16 1.32.16 2s-.07 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95a8.03 8.03 0 0 1-4.33 3.56zM16.36 14c.08-.66.14-1.32.14-2s-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38z"/></svg>
82
+ <span class="margin-left-xs">Web</span>
83
+ </div>`,
84
+ });
85
+ }
86
+ });
87
+ }
88
+ }
89
+ });
90
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "compilerOptions": {
3
+ "outDir": "./dist",
4
+ "declaration": true,
5
+ "esModuleInterop": true,
6
+ "experimentalDecorators": true,
7
+ "forceConsistentCasingInFileNames": true,
8
+ "lib": ["es2018", "dom"],
9
+ "moduleResolution": "node",
10
+ "noImplicitAny": false,
11
+ "noUnusedLocals": true,
12
+ "removeComments": true,
13
+ "sourceMap": false,
14
+ "strictNullChecks": true,
15
+ "target": "es2018",
16
+ "jsx": "react",
17
+ "jsxFactory": "JSX.createElement",
18
+ "jsxFragmentFactory": "JSX.Fragment",
19
+ "skipLibCheck": true
20
+ },
21
+ "include": [
22
+ "./src"
23
+ ]
24
+ }