@micromag/screen-urbania-trivia 0.3.583 → 0.3.586
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 +10 -6
- package/package.json +11 -11
package/es/index.js
CHANGED
|
@@ -3,6 +3,10 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
|
3
3
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
4
4
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
5
5
|
import { getSizeWithinBounds } from '@folklore/size';
|
|
6
|
+
import classNames from 'classnames';
|
|
7
|
+
import isArray from 'lodash/isArray';
|
|
8
|
+
import PropTypes from 'prop-types';
|
|
9
|
+
import React, { useEffect, useState, useCallback, useMemo } from 'react';
|
|
6
10
|
import { PropTypes as PropTypes$1 } from '@micromag/core';
|
|
7
11
|
import { ScreenElement, PlaceholderTitle, Empty, PlaceholderVideo } from '@micromag/core/components';
|
|
8
12
|
import { useScreenSize, useScreenRenderContext, useViewerContext, useViewerNavigation, usePlaybackContext, usePlaybackMediaRef, useViewerContainer } from '@micromag/core/contexts';
|
|
@@ -14,10 +18,6 @@ import Container from '@micromag/element-container';
|
|
|
14
18
|
import Heading from '@micromag/element-heading';
|
|
15
19
|
import Image from '@micromag/element-image';
|
|
16
20
|
import Video from '@micromag/element-video';
|
|
17
|
-
import classNames from 'classnames';
|
|
18
|
-
import isArray from 'lodash/isArray';
|
|
19
|
-
import PropTypes from 'prop-types';
|
|
20
|
-
import React, { useEffect, useState, useCallback, useMemo } from 'react';
|
|
21
21
|
|
|
22
22
|
var styles = {"container":"micromag-screen-urbania-trivia-container","fullscreen":"micromag-screen-urbania-trivia-fullscreen","image":"micromag-screen-urbania-trivia-image","placeholder":"micromag-screen-urbania-trivia-placeholder","coinnerntent":"micromag-screen-urbania-trivia-coinnerntent","background":"micromag-screen-urbania-trivia-background","disabled":"micromag-screen-urbania-trivia-disabled","hidden":"micromag-screen-urbania-trivia-hidden","content":"micromag-screen-urbania-trivia-content","empty":"micromag-screen-urbania-trivia-empty","itemsContainer":"micromag-screen-urbania-trivia-itemsContainer","videoContainer":"micromag-screen-urbania-trivia-videoContainer","video":"micromag-screen-urbania-trivia-video","isCustomBackground":"micromag-screen-urbania-trivia-isCustomBackground","isAnimated":"micromag-screen-urbania-trivia-isAnimated","spin":"micromag-screen-urbania-trivia-spin","heading":"micromag-screen-urbania-trivia-heading","hideHeading":"micromag-screen-urbania-trivia-hideHeading","callToAction":"micromag-screen-urbania-trivia-callToAction","bottom":"micromag-screen-urbania-trivia-bottom","visible":"micromag-screen-urbania-trivia-visible","withGradient":"micromag-screen-urbania-trivia-withGradient","mediaControls":"micromag-screen-urbania-trivia-mediaControls","videoPlaceholder":"micromag-screen-urbania-trivia-videoPlaceholder","bottomContent":"micromag-screen-urbania-trivia-bottomContent","emptyContainer":"micromag-screen-urbania-trivia-emptyContainer"};
|
|
23
23
|
|
|
@@ -125,7 +125,9 @@ var UrbaniaTrivia = function UrbaniaTrivia(_ref) {
|
|
|
125
125
|
setControlsTheme = _usePlaybackContext.setControlsTheme,
|
|
126
126
|
setPlaying = _usePlaybackContext.setPlaying,
|
|
127
127
|
showControls = _usePlaybackContext.showControls,
|
|
128
|
-
hideControls = _usePlaybackContext.hideControls
|
|
128
|
+
hideControls = _usePlaybackContext.hideControls,
|
|
129
|
+
currentQualityLevel = _usePlaybackContext.currentQualityLevel,
|
|
130
|
+
setCurrentQualityLevel = _usePlaybackContext.setCurrentQualityLevel;
|
|
129
131
|
var mediaRef = usePlaybackMediaRef(current);
|
|
130
132
|
useEffect(function () {
|
|
131
133
|
if (!current) {
|
|
@@ -369,7 +371,9 @@ var UrbaniaTrivia = function UrbaniaTrivia(_ref) {
|
|
|
369
371
|
onSeeked: onSeeked,
|
|
370
372
|
onEnded: onEnded,
|
|
371
373
|
focusable: current && isView,
|
|
372
|
-
shouldLoad: mediaShouldLoad
|
|
374
|
+
shouldLoad: mediaShouldLoad,
|
|
375
|
+
qualityStartLevel: currentQualityLevel,
|
|
376
|
+
onQualityLevelChange: setCurrentQualityLevel
|
|
373
377
|
})), current && !isPlaceholder ? /*#__PURE__*/React.createElement("div", {
|
|
374
378
|
key: "bottom-content",
|
|
375
379
|
className: styles.bottomContent,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-urbania-trivia",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.586",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -62,15 +62,15 @@
|
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"@babel/runtime": "^7.13.10",
|
|
64
64
|
"@folklore/size": "^0.1.20",
|
|
65
|
-
"@micromag/core": "^0.3.
|
|
66
|
-
"@micromag/element-background": "^0.3.
|
|
67
|
-
"@micromag/element-call-to-action": "^0.3.
|
|
68
|
-
"@micromag/element-closed-captions": "^0.3.
|
|
69
|
-
"@micromag/element-container": "^0.3.
|
|
70
|
-
"@micromag/element-heading": "^0.3.
|
|
71
|
-
"@micromag/element-image": "^0.3.
|
|
72
|
-
"@micromag/element-video": "^0.3.
|
|
73
|
-
"@micromag/transforms": "^0.3.
|
|
65
|
+
"@micromag/core": "^0.3.585",
|
|
66
|
+
"@micromag/element-background": "^0.3.586",
|
|
67
|
+
"@micromag/element-call-to-action": "^0.3.585",
|
|
68
|
+
"@micromag/element-closed-captions": "^0.3.585",
|
|
69
|
+
"@micromag/element-container": "^0.3.585",
|
|
70
|
+
"@micromag/element-heading": "^0.3.585",
|
|
71
|
+
"@micromag/element-image": "^0.3.585",
|
|
72
|
+
"@micromag/element-video": "^0.3.586",
|
|
73
|
+
"@micromag/transforms": "^0.3.585",
|
|
74
74
|
"classnames": "^2.2.6",
|
|
75
75
|
"lodash": "^4.17.21",
|
|
76
76
|
"prop-types": "^15.7.2",
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"access": "public",
|
|
82
82
|
"registry": "https://registry.npmjs.org/"
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "01ad8835ef5788321e2c2a0f2d6400731de0fe45"
|
|
85
85
|
}
|