@playkit-js/transcript 2.1.4 → 2.1.5-canary.16-1ac3e09

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 (61) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/LICENSE +5 -5
  3. package/README.md +122 -24
  4. package/dist/1501adfdf5c835667ce7.svg +9 -0
  5. package/dist/301e7a199b2cd06c2edf.svg +9 -0
  6. package/dist/33bce27c0f546e80478c.svg +36 -0
  7. package/dist/6a4867d3d9170cc2a24d.svg +9 -0
  8. package/dist/73bab0af28a1c7aed29f.svg +9 -0
  9. package/dist/84087eb1cff72e5e6bd3.svg +9 -0
  10. package/dist/95d7192dc427afb678d0.svg +9 -0
  11. package/dist/cea5d6a7f050cbd199a1.svg +9 -0
  12. package/dist/d93f06ff32cdfcd016df.svg +9 -0
  13. package/dist/e5496f4c01207db44ffc.svg +9 -0
  14. package/dist/playkit-transcript.js +1 -31
  15. package/dist/playkit-transcript.js.map +1 -1
  16. package/package.json +53 -50
  17. package/src/components/a11y-wrapper/a11y-wrapper.ts +26 -0
  18. package/src/components/a11y-wrapper/index.ts +1 -0
  19. package/src/components/caption/caption.scss +1 -1
  20. package/src/components/caption/caption.tsx +118 -140
  21. package/src/components/caption/index.ts +1 -1
  22. package/src/components/caption-list/captionList.scss +8 -8
  23. package/src/components/caption-list/captionList.tsx +115 -117
  24. package/src/components/caption-list/index.ts +1 -1
  25. package/src/components/close-button/close-button.scss +11 -0
  26. package/src/components/close-button/index.tsx +23 -0
  27. package/src/components/download-print-menu/download-print-menu.scss +49 -48
  28. package/src/components/download-print-menu/download-print-menu.tsx +147 -125
  29. package/src/components/download-print-menu/index.ts +1 -1
  30. package/src/components/icons/index.ts +11 -0
  31. package/src/components/plugin-button/plugin-button.scss +26 -0
  32. package/src/components/plugin-button/plugin-button.tsx +29 -0
  33. package/src/components/popover-menu/index.ts +1 -1
  34. package/src/components/popover-menu/popover-menu.scss +3 -3
  35. package/src/components/popover-menu/popover-menu.tsx +25 -25
  36. package/src/components/search/index.ts +1 -1
  37. package/src/components/search/search.scss +1 -1
  38. package/src/components/search/search.tsx +137 -144
  39. package/src/components/spinner/index.ts +1 -1
  40. package/src/components/spinner/spinner.scss +58 -50
  41. package/src/components/spinner/spinner.tsx +9 -9
  42. package/src/components/transcript/index.ts +1 -1
  43. package/src/components/transcript/transcript.scss +9 -33
  44. package/src/components/transcript/transcript.tsx +333 -454
  45. package/src/global.d.ts +6 -6
  46. package/src/index.ts +13 -1
  47. package/src/transcript-plugin.scss +3 -3
  48. package/src/transcript-plugin.tsx +210 -391
  49. package/src/types/index.ts +3 -0
  50. package/src/types/transcript-config.ts +11 -0
  51. package/src/types/transcript-item-data.ts +29 -0
  52. package/src/types/types-ui.ts +11 -0
  53. package/src/utils/debounce.ts +36 -0
  54. package/src/utils/index.ts +4 -0
  55. package/src/utils/object-utils.ts +34 -0
  56. package/src/utils/popover/popover.scss +30 -0
  57. package/src/utils/popover/popover.tsx +178 -0
  58. package/src/utils/utils.ts +86 -0
  59. package/src/variables.scss +14 -0
  60. package/src/assets/close.svg +0 -10
  61. package/src/utils.ts +0 -192
package/src/global.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  /// <reference path="../node_modules/@playkit-js-contrib/common/global-types/index.d.ts" />
2
2
 
3
- declare module "*.scss" {
4
- const content: { [className: string]: string };
5
- export = content;
3
+ declare module '*.scss' {
4
+ const content: {[className: string]: string};
5
+ export = content;
6
6
  }
7
7
 
8
- declare module "*.svg" {
9
- const content: any;
10
- export default content;
8
+ declare module '*.svg' {
9
+ const content: any;
10
+ export default content;
11
11
  }
package/src/index.ts CHANGED
@@ -1 +1,13 @@
1
- import "./transcript-plugin";
1
+ import {TranscriptPlugin} from './transcript-plugin';
2
+
3
+ declare var __VERSION__: string;
4
+ declare var __NAME__: string;
5
+
6
+ const VERSION = __VERSION__;
7
+ const NAME = __NAME__;
8
+
9
+ export {TranscriptPlugin as Plugin};
10
+ export {VERSION, NAME};
11
+
12
+ const pluginName: string = 'transcript';
13
+ KalturaPlayer.core.registerPlugin(pluginName, TranscriptPlugin);
@@ -2,12 +2,12 @@
2
2
  top: 3px;
3
3
  left: 2px;
4
4
  position: relative;
5
- background-image: url("./assets/transcript-icon.svg");
5
+ background-image: url('./assets/transcript-icon.svg');
6
6
  background-repeat: no-repeat;
7
7
  cursor: pointer;
8
8
  :active > & {
9
9
  /* todo - find a better way that maintains one asset and fill changes by CSS */
10
- background-image: url("./assets/transcript-icon-over.svg");
10
+ background-image: url('./assets/transcript-icon-over.svg');
11
11
  }
12
12
  :disabled > & {
13
13
  opacity: 0.4;
@@ -28,4 +28,4 @@
28
28
  border-radius: 4px;
29
29
  background-color: rgba(0, 0, 0, 0.8);
30
30
  }
31
- }
31
+ }