libbitsub 1.12.0 → 1.12.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 (64) hide show
  1. package/README.md +1 -1
  2. package/dist/index.d.ts +5 -2
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +5 -2
  5. package/dist/index.js.map +1 -1
  6. package/dist/integrations/hlsjs.d.ts +6 -0
  7. package/dist/integrations/hlsjs.d.ts.map +1 -1
  8. package/dist/integrations/hlsjs.js +3 -0
  9. package/dist/integrations/hlsjs.js.map +1 -1
  10. package/dist/integrations/index.d.ts +10 -2
  11. package/dist/integrations/index.d.ts.map +1 -1
  12. package/dist/integrations/index.js +10 -2
  13. package/dist/integrations/index.js.map +1 -1
  14. package/dist/integrations/react.d.ts +10 -1
  15. package/dist/integrations/react.d.ts.map +1 -1
  16. package/dist/integrations/react.js +4 -1
  17. package/dist/integrations/react.js.map +1 -1
  18. package/dist/integrations/shaka.d.ts +6 -0
  19. package/dist/integrations/shaka.d.ts.map +1 -1
  20. package/dist/integrations/shaka.js +3 -0
  21. package/dist/integrations/shaka.js.map +1 -1
  22. package/dist/integrations/shared.d.ts +2 -0
  23. package/dist/integrations/shared.d.ts.map +1 -1
  24. package/dist/integrations/shared.js.map +1 -1
  25. package/dist/integrations/videojs.d.ts +9 -0
  26. package/dist/integrations/videojs.d.ts.map +1 -1
  27. package/dist/integrations/videojs.js +3 -0
  28. package/dist/integrations/videojs.js.map +1 -1
  29. package/dist/ts/capabilities.d.ts +6 -0
  30. package/dist/ts/capabilities.d.ts.map +1 -1
  31. package/dist/ts/capabilities.js +6 -0
  32. package/dist/ts/capabilities.js.map +1 -1
  33. package/dist/ts/diagnostics.d.ts +6 -0
  34. package/dist/ts/diagnostics.d.ts.map +1 -1
  35. package/dist/ts/diagnostics.js +6 -0
  36. package/dist/ts/diagnostics.js.map +1 -1
  37. package/dist/ts/frame-export.d.ts +4 -0
  38. package/dist/ts/frame-export.d.ts.map +1 -1
  39. package/dist/ts/frame-export.js +4 -0
  40. package/dist/ts/frame-export.js.map +1 -1
  41. package/dist/ts/range-loader.d.ts +6 -0
  42. package/dist/ts/range-loader.d.ts.map +1 -1
  43. package/dist/ts/range-loader.js +3 -0
  44. package/dist/ts/range-loader.js.map +1 -1
  45. package/dist/ts/renderers.d.ts +1 -0
  46. package/dist/ts/renderers.d.ts.map +1 -1
  47. package/dist/ts/renderers.js +1 -0
  48. package/dist/ts/renderers.js.map +1 -1
  49. package/dist/ts/types.d.ts +37 -0
  50. package/dist/ts/types.d.ts.map +1 -1
  51. package/dist/ts/utils.d.ts +2 -0
  52. package/dist/ts/utils.d.ts.map +1 -1
  53. package/dist/ts/utils.js +2 -0
  54. package/dist/ts/utils.js.map +1 -1
  55. package/package.json +5 -1
  56. package/pkg/README.md +1 -1
  57. package/pkg/libbitsub_bg.wasm +0 -0
  58. package/pkg/package.json +1 -1
  59. package/src/integrations/hlsjs.ts +6 -0
  60. package/src/integrations/index.ts +10 -2
  61. package/src/integrations/react.tsx +10 -1
  62. package/src/integrations/shaka.ts +6 -0
  63. package/src/integrations/shared.ts +2 -0
  64. package/src/integrations/videojs.ts +9 -0
@@ -1,6 +1,8 @@
1
1
  /**
2
2
  * Optional Video.js plugin for libbitsub bitmap subtitles.
3
3
  *
4
+ * @module
5
+ *
4
6
  * @example
5
7
  * ```ts
6
8
  * import videojs from 'video.js'
@@ -26,24 +28,29 @@ export interface VideoJsPlayerLike {
26
28
  trigger?(event: string, data?: unknown): void
27
29
  }
28
30
 
31
+ /** Minimal Video.js plugin instance surface. */
29
32
  export interface VideoJsPluginBase {
30
33
  player: VideoJsPlayerLike
31
34
  options_: unknown
32
35
  dispose(): void
33
36
  }
34
37
 
38
+ /** Minimal Video.js plugin constructor surface. */
35
39
  export interface VideoJsPluginConstructor {
36
40
  new (player: VideoJsPlayerLike, options?: unknown): VideoJsPluginBase
37
41
  prototype: VideoJsPluginBase
38
42
  }
39
43
 
44
+ /** Minimal video.js factory used by the plugin. */
40
45
  export interface VideoJsLike {
41
46
  getPlugin(name: string): VideoJsPluginConstructor
42
47
  registerPlugin(name: string, plugin: unknown): void
43
48
  }
44
49
 
50
+ /** Options for player.bitsub(). */
45
51
  export type BitSubVideoJsOptions = AttachBitSubOptions
46
52
 
53
+ /** Video.js player.bitsub() API. */
47
54
  export interface BitSubVideoJsApi {
48
55
  /** Active controller, if any. */
49
56
  controller(): BitSubController | null
@@ -196,5 +203,7 @@ export type VideoJsBitSubPlayer = VideoJsPlayerLike & {
196
203
  bitsub(options?: BitSubVideoJsOptions): BitSubVideoJsApi
197
204
  }
198
205
 
206
+ /** Shared attach options and controller types. */
199
207
  export type { AttachBitSubOptions, BitSubController, BitSubSourceOptions, BitSubRenderer } from './shared'
208
+ /** Attach or construct a libbitsub controller. */
200
209
  export { attachBitSub, createBitSubRenderer } from './shared'