@micromag/screen-quote 0.4.70 → 0.4.71
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.d.ts +3 -1
- package/es/index.js +4 -2
- package/package.json +11 -11
package/es/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ForwardedRef } from 'react';
|
|
2
3
|
import { TextElement, BackgroundElement, Header, Footer } from '@micromag/core';
|
|
3
4
|
|
|
4
5
|
interface QuoteScreenProps {
|
|
@@ -11,9 +12,10 @@ interface QuoteScreenProps {
|
|
|
11
12
|
footer?: Footer | null;
|
|
12
13
|
current?: boolean;
|
|
13
14
|
preload?: boolean;
|
|
15
|
+
mediaRef?: ForwardedRef<HTMLMediaElement> | null;
|
|
14
16
|
className?: string | null;
|
|
15
17
|
}
|
|
16
|
-
declare function QuoteScreen({ layout, quote, author, spacing, background, header, footer, current, preload, className, }: QuoteScreenProps): react_jsx_runtime.JSX.Element;
|
|
18
|
+
declare function QuoteScreen({ layout, quote, author, spacing, background, header, footer, current, preload, mediaRef: customMediaRef, className, }: QuoteScreenProps): react_jsx_runtime.JSX.Element;
|
|
17
19
|
|
|
18
20
|
declare const _default: {
|
|
19
21
|
id: string;
|
package/es/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import { ScreenElement } from '@micromag/core/components';
|
|
6
6
|
import { useScreenSize, useScreenRenderContext, useViewerContext, useViewerWebView, usePlaybackContext, usePlaybackMediaRef } from '@micromag/core/contexts';
|
|
7
|
-
import { isHeaderFilled, isFooterFilled, getFooterProps, isTextFilled } from '@micromag/core/utils';
|
|
7
|
+
import { isHeaderFilled, isFooterFilled, getFooterProps, isTextFilled, mergeRefs } from '@micromag/core/utils';
|
|
8
8
|
import Background from '@micromag/element-background';
|
|
9
9
|
import Container from '@micromag/element-container';
|
|
10
10
|
import Footer from '@micromag/element-footer';
|
|
@@ -35,6 +35,8 @@ function QuoteScreen(_ref) {
|
|
|
35
35
|
current = _ref$current === void 0 ? true : _ref$current,
|
|
36
36
|
_ref$preload = _ref.preload,
|
|
37
37
|
preload = _ref$preload === void 0 ? true : _ref$preload,
|
|
38
|
+
_ref$mediaRef = _ref.mediaRef,
|
|
39
|
+
customMediaRef = _ref$mediaRef === void 0 ? null : _ref$mediaRef,
|
|
38
40
|
_ref$className = _ref.className,
|
|
39
41
|
className = _ref$className === void 0 ? null : _ref$className;
|
|
40
42
|
var _useScreenSize = useScreenSize(),
|
|
@@ -143,7 +145,7 @@ function QuoteScreen(_ref) {
|
|
|
143
145
|
playing: backgroundPlaying,
|
|
144
146
|
muted: muted,
|
|
145
147
|
shouldLoad: mediaShouldLoad,
|
|
146
|
-
mediaRef: mediaRef,
|
|
148
|
+
mediaRef: mergeRefs(mediaRef, customMediaRef),
|
|
147
149
|
withoutVideo: isPreview,
|
|
148
150
|
className: styles.background
|
|
149
151
|
}) : null]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-quote",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.71",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -61,15 +61,15 @@
|
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"@babel/runtime": "^7.28.6",
|
|
64
|
-
"@micromag/core": "^0.4.
|
|
65
|
-
"@micromag/element-background": "^0.4.
|
|
66
|
-
"@micromag/element-container": "^0.4.
|
|
67
|
-
"@micromag/element-footer": "^0.4.
|
|
68
|
-
"@micromag/element-header": "^0.4.
|
|
69
|
-
"@micromag/element-layout": "^0.4.
|
|
70
|
-
"@micromag/element-quote": "^0.4.
|
|
71
|
-
"@micromag/element-text": "^0.4.
|
|
72
|
-
"@micromag/transforms": "^0.4.
|
|
64
|
+
"@micromag/core": "^0.4.71",
|
|
65
|
+
"@micromag/element-background": "^0.4.71",
|
|
66
|
+
"@micromag/element-container": "^0.4.71",
|
|
67
|
+
"@micromag/element-footer": "^0.4.71",
|
|
68
|
+
"@micromag/element-header": "^0.4.71",
|
|
69
|
+
"@micromag/element-layout": "^0.4.71",
|
|
70
|
+
"@micromag/element-quote": "^0.4.71",
|
|
71
|
+
"@micromag/element-text": "^0.4.71",
|
|
72
|
+
"@micromag/transforms": "^0.4.71",
|
|
73
73
|
"classnames": "^2.2.6",
|
|
74
74
|
"lodash": "^4.17.23",
|
|
75
75
|
"react-intl": "^8.1.3 || ^10.0.0",
|
|
@@ -79,6 +79,6 @@
|
|
|
79
79
|
"access": "public",
|
|
80
80
|
"registry": "https://registry.npmjs.org/"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "9101554bc5761e32b4a002a10d26800608c69773",
|
|
83
83
|
"types": "es/index.d.ts"
|
|
84
84
|
}
|