@micromag/element-background 0.4.52 → 0.4.54

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 CHANGED
@@ -33,6 +33,7 @@ interface BackgroundProps {
33
33
  horizontalAlign?: string;
34
34
  verticalAlign?: string;
35
35
  repeat?: boolean;
36
+ loop?: boolean;
36
37
  color?: Color | null;
37
38
  media?: ImageMedia | VideoMedia | null;
38
39
  mediaRef?: ((...args: unknown[]) => void | {
@@ -50,6 +51,6 @@ interface BackgroundProps {
50
51
  qualityStartLevel?: number | null;
51
52
  onQualityLevelChange?: ((...args: unknown[]) => void) | null;
52
53
  }
53
- declare function Background({ width, height, resolution, fit, horizontalAlign, verticalAlign, repeat, color, media, mediaRef, className, playing, muted, children, loadingMode, shouldLoad, onPlayError, withoutVideo, forceMuted, qualityStartLevel, onQualityLevelChange, }: BackgroundProps): react_jsx_runtime.JSX.Element;
54
+ declare function Background({ width, height, resolution, fit, horizontalAlign, verticalAlign, repeat, loop, color, media, mediaRef, className, playing, muted, children, loadingMode, shouldLoad, onPlayError, withoutVideo, forceMuted, qualityStartLevel, onQualityLevelChange, }: BackgroundProps): react_jsx_runtime.JSX.Element;
54
55
 
55
56
  export { Background, BackgroundLayers, BackgroundLayers as default };
package/es/index.js CHANGED
@@ -26,6 +26,8 @@ function Background(_ref) {
26
26
  verticalAlign = _ref$verticalAlign === void 0 ? 'center' : _ref$verticalAlign,
27
27
  _ref$repeat = _ref.repeat,
28
28
  repeat = _ref$repeat === void 0 ? false : _ref$repeat,
29
+ _ref$loop = _ref.loop,
30
+ loop = _ref$loop === void 0 ? true : _ref$loop,
29
31
  _ref$color = _ref.color,
30
32
  color = _ref$color === void 0 ? null : _ref$color,
31
33
  _ref$media = _ref.media,
@@ -137,7 +139,7 @@ function Background(_ref) {
137
139
  onPlayError: onPlayError,
138
140
  disablePictureInPicture: true,
139
141
  autoPlay: true,
140
- loop: true,
142
+ loop: loop,
141
143
  withPoster: true,
142
144
  focusable: false,
143
145
  qualityStartLevel: qualityStartLevel,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/element-background",
3
- "version": "0.4.52",
3
+ "version": "0.4.54",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -60,8 +60,8 @@
60
60
  "dependencies": {
61
61
  "@babel/runtime": "^7.28.6",
62
62
  "@folklore/size": "^0.1.20",
63
- "@micromag/core": "^0.4.52",
64
- "@micromag/element-video": "^0.4.52",
63
+ "@micromag/core": "^0.4.54",
64
+ "@micromag/element-video": "^0.4.54",
65
65
  "classnames": "^2.2.6",
66
66
  "lodash": "^4.17.23",
67
67
  "react-intl": "^8.1.3 || ^10.0.0",
@@ -71,5 +71,5 @@
71
71
  "access": "public",
72
72
  "registry": "https://registry.npmjs.org/"
73
73
  },
74
- "gitHead": "7e9283049e6904a73ed2c8ac47b2e45465823656"
74
+ "gitHead": "b7aacdebb4a5c2179a58d21ab2aaea5bcdc43d69"
75
75
  }