@micromag/screen-contribution 0.4.69 → 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 +16 -16
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 { HeadingElement, InputElement, TextElement, TextStyle, ButtonElement, BackgroundElement, Header, Footer, Transitions } from '@micromag/core';
|
|
3
4
|
|
|
4
5
|
interface ContributionScreenProps {
|
|
@@ -25,9 +26,10 @@ interface ContributionScreenProps {
|
|
|
25
26
|
transitionStagger?: number;
|
|
26
27
|
resizeTransitionDuration?: number;
|
|
27
28
|
type?: string | null;
|
|
29
|
+
mediaRef?: ForwardedRef<HTMLMediaElement> | null;
|
|
28
30
|
className?: string | null;
|
|
29
31
|
}
|
|
30
|
-
declare function ContributionScreen({ id, layout, title, name, message, submit, nameStyle, messageStyle, settings, spacing, background, header, footer, current, preload, transitions, transitionStagger, resizeTransitionDuration, type, className, }: ContributionScreenProps): react_jsx_runtime.JSX.Element;
|
|
32
|
+
declare function ContributionScreen({ id, layout, title, name, message, submit, nameStyle, messageStyle, settings, spacing, background, header, footer, current, preload, transitions, transitionStagger, resizeTransitionDuration, type, mediaRef: customMediaRef, className, }: ContributionScreenProps): react_jsx_runtime.JSX.Element;
|
|
31
33
|
|
|
32
34
|
declare const _default: {
|
|
33
35
|
id: string;
|
package/es/index.js
CHANGED
|
@@ -12,7 +12,7 @@ import { useRef, useState, useCallback, useEffect } from 'react';
|
|
|
12
12
|
import { ScreenElement, Transitions } from '@micromag/core/components';
|
|
13
13
|
import { useScreenSize, useViewerContext, useScreenRenderContext, useViewerWebView, usePlaybackContext, usePlaybackMediaRef } from '@micromag/core/contexts';
|
|
14
14
|
import { useTrackScreenEvent, useDimensionObserver } from '@micromag/core/hooks';
|
|
15
|
-
import { isHeaderFilled, isFooterFilled, getFooterProps, isTextFilled, isLabelFilled, getStyleFromColor } from '@micromag/core/utils';
|
|
15
|
+
import { isHeaderFilled, isFooterFilled, getFooterProps, isTextFilled, isLabelFilled, getStyleFromColor, mergeRefs } from '@micromag/core/utils';
|
|
16
16
|
import { useContributionCreate, useContributions } from '@micromag/data';
|
|
17
17
|
import Background from '@micromag/element-background';
|
|
18
18
|
import Button from '@micromag/element-button';
|
|
@@ -67,6 +67,8 @@ function ContributionScreen(_ref) {
|
|
|
67
67
|
resizeTransitionDuration = _ref$resizeTransition === void 0 ? 750 : _ref$resizeTransition,
|
|
68
68
|
_ref$type = _ref.type,
|
|
69
69
|
type = _ref$type === void 0 ? null : _ref$type,
|
|
70
|
+
_ref$mediaRef = _ref.mediaRef,
|
|
71
|
+
customMediaRef = _ref$mediaRef === void 0 ? null : _ref$mediaRef,
|
|
70
72
|
_ref$className = _ref.className,
|
|
71
73
|
className = _ref$className === void 0 ? null : _ref$className;
|
|
72
74
|
var intl = useIntl();
|
|
@@ -550,7 +552,7 @@ function ContributionScreen(_ref) {
|
|
|
550
552
|
playing: backgroundPlaying,
|
|
551
553
|
muted: muted,
|
|
552
554
|
shouldLoad: mediaShouldLoad,
|
|
553
|
-
mediaRef: mediaRef,
|
|
555
|
+
mediaRef: mergeRefs(mediaRef, customMediaRef),
|
|
554
556
|
withoutVideo: isPreview,
|
|
555
557
|
className: styles.background
|
|
556
558
|
}) : null]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-contribution",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.71",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -64,20 +64,20 @@
|
|
|
64
64
|
"@fortawesome/fontawesome-svg-core": "^7.2.0",
|
|
65
65
|
"@fortawesome/free-solid-svg-icons": "^7.2.0",
|
|
66
66
|
"@fortawesome/react-fontawesome": "^3.2.0",
|
|
67
|
-
"@micromag/core": "^0.4.
|
|
68
|
-
"@micromag/data": "^0.4.
|
|
69
|
-
"@micromag/element-background": "^0.4.
|
|
70
|
-
"@micromag/element-button": "^0.4.
|
|
71
|
-
"@micromag/element-container": "^0.4.
|
|
72
|
-
"@micromag/element-footer": "^0.4.
|
|
73
|
-
"@micromag/element-header": "^0.4.
|
|
74
|
-
"@micromag/element-heading": "^0.4.
|
|
75
|
-
"@micromag/element-layout": "^0.4.
|
|
76
|
-
"@micromag/element-scroll": "^0.4.
|
|
77
|
-
"@micromag/element-share-incentive": "^0.4.
|
|
78
|
-
"@micromag/element-text": "^0.4.
|
|
79
|
-
"@micromag/element-text-input": "^0.4.
|
|
80
|
-
"@micromag/transforms": "^0.4.
|
|
67
|
+
"@micromag/core": "^0.4.71",
|
|
68
|
+
"@micromag/data": "^0.4.71",
|
|
69
|
+
"@micromag/element-background": "^0.4.71",
|
|
70
|
+
"@micromag/element-button": "^0.4.71",
|
|
71
|
+
"@micromag/element-container": "^0.4.71",
|
|
72
|
+
"@micromag/element-footer": "^0.4.71",
|
|
73
|
+
"@micromag/element-header": "^0.4.71",
|
|
74
|
+
"@micromag/element-heading": "^0.4.71",
|
|
75
|
+
"@micromag/element-layout": "^0.4.71",
|
|
76
|
+
"@micromag/element-scroll": "^0.4.71",
|
|
77
|
+
"@micromag/element-share-incentive": "^0.4.71",
|
|
78
|
+
"@micromag/element-text": "^0.4.71",
|
|
79
|
+
"@micromag/element-text-input": "^0.4.71",
|
|
80
|
+
"@micromag/transforms": "^0.4.71",
|
|
81
81
|
"classnames": "^2.2.6",
|
|
82
82
|
"dompurify": "^3.2.6",
|
|
83
83
|
"lodash": "^4.17.23",
|
|
@@ -88,6 +88,6 @@
|
|
|
88
88
|
"access": "public",
|
|
89
89
|
"registry": "https://registry.npmjs.org/"
|
|
90
90
|
},
|
|
91
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "9101554bc5761e32b4a002a10d26800608c69773",
|
|
92
92
|
"types": "es/index.d.ts"
|
|
93
93
|
}
|