@micromag/element-closed-captions 0.3.618 → 0.3.628
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/es/index.js +8 -8
- package/package.json +4 -4
package/es/index.js
CHANGED
|
@@ -2,23 +2,23 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
|
2
2
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import parseSRT from 'parse-srt';
|
|
5
|
-
import PropTypes
|
|
5
|
+
import PropTypes from 'prop-types';
|
|
6
6
|
import React, { useState, useEffect, useCallback } from 'react';
|
|
7
|
-
import { PropTypes } from '@micromag/core';
|
|
7
|
+
import { PropTypes as PropTypes$1 } from '@micromag/core';
|
|
8
8
|
import { getSecondsFromTime, getStyleFromBox } from '@micromag/core/utils';
|
|
9
9
|
import TextElement from '@micromag/element-text';
|
|
10
10
|
|
|
11
11
|
var styles = {"container":"micromag-element-closed-captions-container","captions":"micromag-element-closed-captions-captions"};
|
|
12
12
|
|
|
13
13
|
var propTypes = {
|
|
14
|
-
media: PropTypes.closedCaptionsMedia,
|
|
15
|
-
currentTime: PropTypes
|
|
14
|
+
media: PropTypes$1.closedCaptionsMedia,
|
|
15
|
+
currentTime: PropTypes.number,
|
|
16
16
|
// in seconds
|
|
17
|
-
timeOffset: PropTypes
|
|
17
|
+
timeOffset: PropTypes.string,
|
|
18
18
|
// in srt time format (10:00:01,034)
|
|
19
|
-
textStyle: PropTypes.textStyle,
|
|
20
|
-
boxStyle: PropTypes.boxStyle,
|
|
21
|
-
className: PropTypes
|
|
19
|
+
textStyle: PropTypes$1.textStyle,
|
|
20
|
+
boxStyle: PropTypes$1.boxStyle,
|
|
21
|
+
className: PropTypes.string
|
|
22
22
|
};
|
|
23
23
|
var defaultProps = {
|
|
24
24
|
media: null,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/element-closed-captions",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.628",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@babel/runtime": "^7.13.10",
|
|
62
|
-
"@micromag/core": "^0.3.
|
|
63
|
-
"@micromag/element-text": "^0.3.
|
|
62
|
+
"@micromag/core": "^0.3.628",
|
|
63
|
+
"@micromag/element-text": "^0.3.628",
|
|
64
64
|
"classnames": "^2.2.6",
|
|
65
65
|
"parse-srt": "^1.0.0-alpha",
|
|
66
66
|
"prop-types": "^15.7.2",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"access": "public",
|
|
72
72
|
"registry": "https://registry.npmjs.org/"
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "6f1230244a2966c16e85b7d44583276421a38cca"
|
|
75
75
|
}
|