@appquality/unguess-design-system 3.1.45 → 3.1.46

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/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # v3.1.46 (Tue Aug 29 2023)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - Develop [#264](https://github.com/AppQuality/unguess-design-system/pull/264) ([@cannarocks](https://github.com/cannarocks))
6
+
7
+ #### Authors: 1
8
+
9
+ - Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
10
+
11
+ ---
12
+
1
13
  # v3.1.42 (Thu Aug 24 2023)
2
14
 
3
15
  #### 🐛 Bug Fix
package/build/index.js CHANGED
@@ -4447,14 +4447,16 @@ const StyledDiv$2 = styled__default["default"].div `
4447
4447
  align-items: center;
4448
4448
  `;
4449
4449
  const Controls = ({ container, }) => {
4450
- var _a, _b;
4450
+ var _a, _b, _c;
4451
4451
  const [progress, setProgress] = React.useState(0);
4452
4452
  const [tooltipMargin, setTooltipMargin] = React.useState(0);
4453
4453
  const [tooltipLabel, setTooltipLabel] = React.useState("00:00");
4454
4454
  const progressRef = React.useRef(null);
4455
4455
  const { context, setCurrentTime } = Video.useVideoContext();
4456
- const relCurrentTime = (((_a = context.player) === null || _a === void 0 ? void 0 : _a.currentTime) || 0) - context.part.start;
4457
- const duration = context.part.end - context.part.start || ((_b = context.player) === null || _b === void 0 ? void 0 : _b.totalTime) || 0; //relative
4456
+ const relCurrentTime = ((_a = context.player) === null || _a === void 0 ? void 0 : _a.currentTime)
4457
+ ? ((_b = context.player) === null || _b === void 0 ? void 0 : _b.currentTime) - context.part.start
4458
+ : 0;
4459
+ const duration = context.part.end - context.part.start || ((_c = context.player) === null || _c === void 0 ? void 0 : _c.totalTime) || 0; //relative
4458
4460
  const getVideoPositionFromEvent = (clientX) => {
4459
4461
  if (progressRef && progressRef.current && duration) {
4460
4462
  const bounds = progressRef.current.getBoundingClientRect();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appquality/unguess-design-system",
3
- "version": "3.1.45",
3
+ "version": "3.1.46",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",