@doyourjob/gravity-ui-page-constructor 5.31.177 → 5.31.178

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.
@@ -179,7 +179,7 @@ const Audio = ({ url }) => {
179
179
  return 'M3 9h4l5-5v16l-5-5H3V9zm13.5 3a4.5 4.5 0 0 0-2.5-4v8a4.5 4.5 0 0 0 2.5-4zm-2.5-7a7 7 0 0 1 0 14V14a5 5 0 0 0 0-10V5z';
180
180
  }, [isMuted, volume]);
181
181
  return (react_1.default.createElement("div", { className: b() },
182
- react_1.default.createElement("audio", { ref: audioRef, src: url, preload: "metadata" }),
182
+ react_1.default.createElement("audio", { ref: audioRef, src: url, preload: "auto" }),
183
183
  react_1.default.createElement("button", { className: b('play-btn', { loading: isLoading }), onClick: togglePlay, "aria-label": isPlaying ? 'Pause' : 'Play', type: "button" },
184
184
  isLoading && react_1.default.createElement("span", { className: b('spinner') }),
185
185
  !isLoading &&
@@ -176,7 +176,7 @@ export const Audio = ({ url }) => {
176
176
  return 'M3 9h4l5-5v16l-5-5H3V9zm13.5 3a4.5 4.5 0 0 0-2.5-4v8a4.5 4.5 0 0 0 2.5-4zm-2.5-7a7 7 0 0 1 0 14V14a5 5 0 0 0 0-10V5z';
177
177
  }, [isMuted, volume]);
178
178
  return (React.createElement("div", { className: b() },
179
- React.createElement("audio", { ref: audioRef, src: url, preload: "metadata" }),
179
+ React.createElement("audio", { ref: audioRef, src: url, preload: "auto" }),
180
180
  React.createElement("button", { className: b('play-btn', { loading: isLoading }), onClick: togglePlay, "aria-label": isPlaying ? 'Pause' : 'Play', type: "button" },
181
181
  isLoading && React.createElement("span", { className: b('spinner') }),
182
182
  !isLoading &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doyourjob/gravity-ui-page-constructor",
3
- "version": "5.31.177",
3
+ "version": "5.31.178",
4
4
  "description": "Gravity UI Page Constructor",
5
5
  "license": "MIT",
6
6
  "repository": {