@desynova-digital/components 9.2.29 → 9.2.30
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.
|
@@ -325,13 +325,16 @@ var ThumbnailV2 = function ThumbnailV2(props) {
|
|
|
325
325
|
archived_status = props.archived_status,
|
|
326
326
|
isSearchPageCard = props.isSearchPageCard;
|
|
327
327
|
var effectiveFrameRate = Number(frame_rate) || 25;
|
|
328
|
-
var
|
|
328
|
+
var fullDurationValue = full_duration === undefined || full_duration === null ? "" : String(full_duration).trim();
|
|
329
|
+
var hasFullDuration = Boolean(fullDurationValue) && (hasTimecodeFormat(fullDurationValue) || Number.isFinite(Number(fullDurationValue)));
|
|
330
|
+
var resolvedDuration = hasFullDuration ? full_duration : duration;
|
|
331
|
+
var durationValue = resolvedDuration === undefined || resolvedDuration === null ? "" : String(resolvedDuration).trim();
|
|
329
332
|
var hasDuration = Boolean(durationValue) && (hasTimecodeFormat(durationValue) || Number.isFinite(Number(durationValue)));
|
|
330
333
|
var displayDuration = hasDuration ? getDisplayTimecode(durationValue, effectiveFrameRate) : "";
|
|
331
334
|
var displayAssetType = asset_type === undefined || asset_type === null ? "" : String(asset_type).trim();
|
|
332
335
|
var actionItems = Array.isArray(actions) ? actions : [];
|
|
333
336
|
var isSegmentCard = Boolean(isSegment || is_segment);
|
|
334
|
-
var totalSeconds = getTimeInSeconds(
|
|
337
|
+
var totalSeconds = getTimeInSeconds(resolvedDuration, effectiveFrameRate);
|
|
335
338
|
var segmentStartSeconds = Math.max(0, Math.min(totalSeconds, getRelativeTimeInSeconds(in_time, in_timecode, effectiveFrameRate)));
|
|
336
339
|
var segmentEndSeconds = Math.max(0, Math.min(totalSeconds, getRelativeTimeInSeconds(out_time, out_timecode, effectiveFrameRate)));
|
|
337
340
|
var displayInTimecode = getDisplayTimecode(in_timecode, effectiveFrameRate);
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@desynova-digital/components",
|
|
3
|
-
"version": "9.2.
|
|
3
|
+
"version": "9.2.30",
|
|
4
4
|
"description": "Components for Desynova Digital",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "desynova-digital",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"repository": "desynova-digital",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@desynova-digital/tokens": "9.2.
|
|
10
|
+
"@desynova-digital/tokens": "9.2.30",
|
|
11
11
|
"prop-types": "^15.7.2",
|
|
12
12
|
"styled-components": "^4.3.2"
|
|
13
13
|
},
|