@micromag/element-audio 0.4.40 → 0.4.42

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
@@ -1,7 +1,10 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { Color } from '@micromag/core';
3
3
 
4
- declare const _default: any;
4
+ declare const _default: ({ ref, ...props }: {
5
+ [x: string]: any;
6
+ ref: any;
7
+ }) => react_jsx_runtime.JSX.Element;
5
8
 
6
9
  interface AudioWaveProps {
7
10
  currentTime?: number | null;
package/es/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
1
2
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
2
3
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
3
4
  import classNames from 'classnames';
@@ -161,6 +162,7 @@ function AudioBars(_ref) {
161
162
 
162
163
  var styles$1 = {"container":"micromag-element-audio-container","wave":"micromag-element-audio-wave","withAutoHeight":"micromag-element-audio-withAutoHeight"};
163
164
 
165
+ var _excluded = ["ref"];
164
166
  function Audio(_ref) {
165
167
  var _ref$media = _ref.media,
166
168
  media = _ref$media === void 0 ? null : _ref$media,
@@ -352,7 +354,9 @@ function Audio(_ref) {
352
354
  play: onWavePlay
353
355
  }) : null);
354
356
  }
355
- var Audio_default = /*#__PURE__*/React.forwardRef(function (props, ref) {
357
+ var Audio_default = (function (_ref9) {
358
+ var ref = _ref9.ref,
359
+ props = _objectWithoutProperties(_ref9, _excluded);
356
360
  return /*#__PURE__*/React.createElement(Audio, Object.assign({
357
361
  mediaRef: ref
358
362
  }, props));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/element-audio",
3
- "version": "0.4.40",
3
+ "version": "0.4.42",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -61,8 +61,8 @@
61
61
  },
62
62
  "dependencies": {
63
63
  "@babel/runtime": "^7.28.6",
64
- "@micromag/core": "^0.4.40",
65
- "@micromag/element-closed-captions": "^0.4.40",
64
+ "@micromag/core": "^0.4.42",
65
+ "@micromag/element-closed-captions": "^0.4.42",
66
66
  "@react-spring/core": "^10.0.3",
67
67
  "@react-spring/web": "^10.0.3",
68
68
  "@use-gesture/react": "^10.3.0",
@@ -75,5 +75,5 @@
75
75
  "access": "public",
76
76
  "registry": "https://registry.npmjs.org/"
77
77
  },
78
- "gitHead": "6a9ff6e196a972abfd617f49353862cf445b0e83"
78
+ "gitHead": "6fd96aeb9ef1857c731917d8b7cde23d31b39574"
79
79
  }