@micromag/screen-map 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 +14 -14
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 { Marker, MarkerWithImage, TextElement, GeoPosition, BackgroundElement } from '@micromag/core';
|
|
3
4
|
|
|
4
5
|
interface MapScreenProps {
|
|
@@ -17,9 +18,10 @@ interface MapScreenProps {
|
|
|
17
18
|
current?: boolean;
|
|
18
19
|
active?: boolean;
|
|
19
20
|
type?: string | null;
|
|
21
|
+
mediaRef?: ForwardedRef<HTMLMediaElement> | null;
|
|
20
22
|
className?: string | null;
|
|
21
23
|
}
|
|
22
|
-
declare function MapScreen({ layout, draggable, markers, title, description, button, openedMarkerSpacerHeight, withMarkerImages, zoom, center, fitBounds, background, current, active, type, className, }: MapScreenProps): react_jsx_runtime.JSX.Element;
|
|
24
|
+
declare function MapScreen({ layout, draggable, markers, title, description, button, openedMarkerSpacerHeight, withMarkerImages, zoom, center, fitBounds, background, current, active, type, mediaRef: customMediaRef, className, }: MapScreenProps): react_jsx_runtime.JSX.Element;
|
|
23
25
|
|
|
24
26
|
declare function MapImagesScreen({ ...props }: {
|
|
25
27
|
[x: string]: any;
|
package/es/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { useState, useRef, useCallback, useMemo, useEffect } from 'react';
|
|
|
7
7
|
import { PlaceholderMap, Button, ScreenElement } from '@micromag/core/components';
|
|
8
8
|
import { useGoogleKeys, useScreenSize, usePlaybackContext, usePlaybackMediaRef, useScreenRenderContext, useScreenState, useViewerInteraction } from '@micromag/core/contexts';
|
|
9
9
|
import { useTrackScreenEvent, useDimensionObserver } from '@micromag/core/hooks';
|
|
10
|
-
import { getStyleFromColor, isTextFilled } from '@micromag/core/utils';
|
|
10
|
+
import { getStyleFromColor, isTextFilled, mergeRefs } from '@micromag/core/utils';
|
|
11
11
|
import { Background } from '@micromag/element-background';
|
|
12
12
|
import ButtonElement from '@micromag/element-button';
|
|
13
13
|
import Container from '@micromag/element-container';
|
|
@@ -79,6 +79,8 @@ function MapScreen(_ref) {
|
|
|
79
79
|
active = _ref$active === void 0 ? true : _ref$active,
|
|
80
80
|
_ref$type = _ref.type,
|
|
81
81
|
type = _ref$type === void 0 ? null : _ref$type,
|
|
82
|
+
_ref$mediaRef = _ref.mediaRef,
|
|
83
|
+
customMediaRef = _ref$mediaRef === void 0 ? null : _ref$mediaRef,
|
|
82
84
|
_ref$className = _ref.className,
|
|
83
85
|
className = _ref$className === void 0 ? null : _ref$className;
|
|
84
86
|
var _useIntl = useIntl(),
|
|
@@ -479,7 +481,7 @@ function MapScreen(_ref) {
|
|
|
479
481
|
playing: backgroundPlaying,
|
|
480
482
|
muted: muted,
|
|
481
483
|
shouldLoad: backgroundShouldLoad,
|
|
482
|
-
mediaRef: mediaRef,
|
|
484
|
+
mediaRef: mergeRefs(mediaRef, customMediaRef),
|
|
483
485
|
withoutVideo: isPreview,
|
|
484
486
|
className: styles.background
|
|
485
487
|
}) : null]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-map",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.71",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -61,18 +61,18 @@
|
|
|
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-button": "^0.4.
|
|
67
|
-
"@micromag/element-container": "^0.4.
|
|
68
|
-
"@micromag/element-footer": "^0.4.
|
|
69
|
-
"@micromag/element-header": "^0.4.
|
|
70
|
-
"@micromag/element-heading": "^0.4.
|
|
71
|
-
"@micromag/element-image": "^0.4.
|
|
72
|
-
"@micromag/element-map": "^0.4.
|
|
73
|
-
"@micromag/element-scroll": "^0.4.
|
|
74
|
-
"@micromag/element-text": "^0.4.
|
|
75
|
-
"@micromag/transforms": "^0.4.
|
|
64
|
+
"@micromag/core": "^0.4.71",
|
|
65
|
+
"@micromag/element-background": "^0.4.71",
|
|
66
|
+
"@micromag/element-button": "^0.4.71",
|
|
67
|
+
"@micromag/element-container": "^0.4.71",
|
|
68
|
+
"@micromag/element-footer": "^0.4.71",
|
|
69
|
+
"@micromag/element-header": "^0.4.71",
|
|
70
|
+
"@micromag/element-heading": "^0.4.71",
|
|
71
|
+
"@micromag/element-image": "^0.4.71",
|
|
72
|
+
"@micromag/element-map": "^0.4.71",
|
|
73
|
+
"@micromag/element-scroll": "^0.4.71",
|
|
74
|
+
"@micromag/element-text": "^0.4.71",
|
|
75
|
+
"@micromag/transforms": "^0.4.71",
|
|
76
76
|
"classnames": "^2.2.6",
|
|
77
77
|
"lodash": "^4.17.23",
|
|
78
78
|
"react-intl": "^8.1.3 || ^10.0.0",
|
|
@@ -82,6 +82,6 @@
|
|
|
82
82
|
"access": "public",
|
|
83
83
|
"registry": "https://registry.npmjs.org/"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "9101554bc5761e32b4a002a10d26800608c69773",
|
|
86
86
|
"types": "es/index.d.ts"
|
|
87
87
|
}
|