@vidispine/vdt-react 22.3.0-pre.5 → 22.3.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.
- package/dist/index.es.js +3 -3
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +21 -21
package/dist/index.es.js
CHANGED
|
@@ -5,8 +5,8 @@ import { utils, search, vsimport, collection, ChunkedUpload, access, metadatafie
|
|
|
5
5
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
6
6
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
7
7
|
import _typeof from '@babel/runtime/helpers/typeof';
|
|
8
|
-
import { createMetadataType,
|
|
9
|
-
import {
|
|
8
|
+
import { createMetadataType, formatTimeCodeSeconds, formatTimeCodeText, parseMetadataType, roles } from '@vidispine/vdt-js';
|
|
9
|
+
import { compressToEncodedURIComponent, decompressFromEncodedURIComponent } from 'lz-string';
|
|
10
10
|
import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
|
|
11
11
|
import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
12
12
|
import useDeepCompareEffect from 'use-deep-compare-effect';
|
|
@@ -3094,7 +3094,7 @@ function useHoverScrub() {
|
|
|
3094
3094
|
}
|
|
3095
3095
|
|
|
3096
3096
|
var mouseTimecodePosition = mouseElementPosition / (e.currentTarget.offsetWidth / +durationSeconds);
|
|
3097
|
-
setThumbnailTimeCode(
|
|
3097
|
+
setThumbnailTimeCode(formatTimeCodeSeconds(mouseTimecodePosition));
|
|
3098
3098
|
var newIndex = indexOfPrecededTimeCode(mouseTimecodePosition, thumbnailTimeCodeArray.map(function (tc) {
|
|
3099
3099
|
return tc.toSeconds().toFixed(0);
|
|
3100
3100
|
}));
|