@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.
- package/CHANGELOG.md +9 -0
- package/LICENSE +5 -5
- package/README.md +122 -24
- package/dist/1501adfdf5c835667ce7.svg +9 -0
- package/dist/301e7a199b2cd06c2edf.svg +9 -0
- package/dist/33bce27c0f546e80478c.svg +36 -0
- package/dist/6a4867d3d9170cc2a24d.svg +9 -0
- package/dist/73bab0af28a1c7aed29f.svg +9 -0
- package/dist/84087eb1cff72e5e6bd3.svg +9 -0
- package/dist/95d7192dc427afb678d0.svg +9 -0
- package/dist/cea5d6a7f050cbd199a1.svg +9 -0
- package/dist/d93f06ff32cdfcd016df.svg +9 -0
- package/dist/e5496f4c01207db44ffc.svg +9 -0
- package/dist/playkit-transcript.js +1 -31
- package/dist/playkit-transcript.js.map +1 -1
- package/package.json +53 -50
- package/src/components/a11y-wrapper/a11y-wrapper.ts +26 -0
- package/src/components/a11y-wrapper/index.ts +1 -0
- package/src/components/caption/caption.scss +1 -1
- package/src/components/caption/caption.tsx +118 -140
- package/src/components/caption/index.ts +1 -1
- package/src/components/caption-list/captionList.scss +8 -8
- package/src/components/caption-list/captionList.tsx +115 -117
- package/src/components/caption-list/index.ts +1 -1
- package/src/components/close-button/close-button.scss +11 -0
- package/src/components/close-button/index.tsx +23 -0
- package/src/components/download-print-menu/download-print-menu.scss +49 -48
- package/src/components/download-print-menu/download-print-menu.tsx +147 -125
- package/src/components/download-print-menu/index.ts +1 -1
- package/src/components/icons/index.ts +11 -0
- package/src/components/plugin-button/plugin-button.scss +26 -0
- package/src/components/plugin-button/plugin-button.tsx +29 -0
- package/src/components/popover-menu/index.ts +1 -1
- package/src/components/popover-menu/popover-menu.scss +3 -3
- package/src/components/popover-menu/popover-menu.tsx +25 -25
- package/src/components/search/index.ts +1 -1
- package/src/components/search/search.scss +1 -1
- package/src/components/search/search.tsx +137 -144
- package/src/components/spinner/index.ts +1 -1
- package/src/components/spinner/spinner.scss +58 -50
- package/src/components/spinner/spinner.tsx +9 -9
- package/src/components/transcript/index.ts +1 -1
- package/src/components/transcript/transcript.scss +9 -33
- package/src/components/transcript/transcript.tsx +333 -454
- package/src/global.d.ts +6 -6
- package/src/index.ts +13 -1
- package/src/transcript-plugin.scss +3 -3
- package/src/transcript-plugin.tsx +210 -391
- package/src/types/index.ts +3 -0
- package/src/types/transcript-config.ts +11 -0
- package/src/types/transcript-item-data.ts +29 -0
- package/src/types/types-ui.ts +11 -0
- package/src/utils/debounce.ts +36 -0
- package/src/utils/index.ts +4 -0
- package/src/utils/object-utils.ts +34 -0
- package/src/utils/popover/popover.scss +30 -0
- package/src/utils/popover/popover.tsx +178 -0
- package/src/utils/utils.ts +86 -0
- package/src/variables.scss +14 -0
- package/src/assets/close.svg +0 -10
- 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
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
declare module '*.scss' {
|
|
4
|
+
const content: {[className: string]: string};
|
|
5
|
+
export = content;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
declare module
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
declare module '*.svg' {
|
|
9
|
+
const content: any;
|
|
10
|
+
export default content;
|
|
11
11
|
}
|
package/src/index.ts
CHANGED
|
@@ -1 +1,13 @@
|
|
|
1
|
-
import
|
|
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(
|
|
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(
|
|
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
|
+
}
|