@appquality/unguess-design-system 3.1.41 → 3.1.42-player
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 +0 -13
- package/build/index.js +15 -1
- package/build/stories/buttons/button/index.stories.d.ts +1 -0
- package/build/stories/dropdowns/select/index.stories.d.ts +1 -0
- package/build/stories/editor/index.stories.d.ts +1 -0
- package/build/stories/theme/index.d.ts +9 -4
- package/build/stories/tooltip/index.stories.d.ts +1 -0
- package/build/stories/typography/typescale/anchortag/index.stories.d.ts +1 -0
- package/build/stories/typography/typescale/index.stories.d.ts +1 -0
- package/package.json +1 -1
- package/yarn-error.log +13958 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
# v3.1.4 (Wed Aug 23 2023)
|
|
2
|
-
|
|
3
|
-
#### 🐛 Bug Fix
|
|
4
|
-
|
|
5
|
-
- Add streaming support to player component [#261](https://github.com/AppQuality/unguess-design-system/pull/261) ([@cannarocks](https://github.com/cannarocks))
|
|
6
|
-
- New-player-with-old-skin [#260](https://github.com/AppQuality/unguess-design-system/pull/260) ([@cannarocks](https://github.com/cannarocks))
|
|
7
|
-
|
|
8
|
-
#### Authors: 1
|
|
9
|
-
|
|
10
|
-
- Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
|
|
11
|
-
|
|
12
|
-
---
|
|
13
|
-
|
|
14
1
|
# v3.1.3 (Wed Aug 16 2023)
|
|
15
2
|
|
|
16
3
|
#### 🐛 Bug Fix
|
package/build/index.js
CHANGED
|
@@ -4604,11 +4604,25 @@ const Player = React.forwardRef((props, forwardRef) => {
|
|
|
4604
4604
|
});
|
|
4605
4605
|
const PlayerCore = React.forwardRef((props, forwardRef) => {
|
|
4606
4606
|
var _a;
|
|
4607
|
-
const { context, togglePlay } = Video.useVideoContext();
|
|
4607
|
+
const { context, togglePlay, setIsPlaying } = Video.useVideoContext();
|
|
4608
4608
|
const videoRef = (_a = context.player) === null || _a === void 0 ? void 0 : _a.ref.current;
|
|
4609
4609
|
const isLoaded = !!videoRef;
|
|
4610
4610
|
const containerRef = React.useRef(null);
|
|
4611
4611
|
React.useImperativeHandle(forwardRef, () => videoRef);
|
|
4612
|
+
React.useEffect(() => {
|
|
4613
|
+
if (videoRef) {
|
|
4614
|
+
videoRef.addEventListener("pause", () => {
|
|
4615
|
+
setIsPlaying(false);
|
|
4616
|
+
});
|
|
4617
|
+
}
|
|
4618
|
+
return () => {
|
|
4619
|
+
if (videoRef) {
|
|
4620
|
+
videoRef.removeEventListener("pause", () => {
|
|
4621
|
+
setIsPlaying(false);
|
|
4622
|
+
});
|
|
4623
|
+
}
|
|
4624
|
+
};
|
|
4625
|
+
}, [videoRef]);
|
|
4612
4626
|
return (jsxRuntime.jsxs(Container, Object.assign({ isLoaded: isLoaded, isPlaying: context.isPlaying, ref: containerRef }, { children: [!isLoaded ? (jsxRuntime.jsx(VideoSpinner, {})) : (jsxRuntime.jsx(FloatingControls, { isPlaying: context.isPlaying, onClick: togglePlay })), jsxRuntime.jsx(Video__default["default"].Player, { className: "player-container" }), jsxRuntime.jsx(Controls, { container: containerRef.current })] })));
|
|
4613
4627
|
});
|
|
4614
4628
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ButtonArgs } from "./_types";
|
|
2
3
|
export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, ButtonArgs>;
|
|
3
4
|
export declare const Basic: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, ButtonArgs>;
|
|
@@ -300,13 +300,18 @@ declare const theme: {
|
|
|
300
300
|
"&:hover"?: {
|
|
301
301
|
borderColor: string | undefined;
|
|
302
302
|
color: string | undefined;
|
|
303
|
-
backgroundColor: string
|
|
303
|
+
backgroundColor: string;
|
|
304
304
|
"& svg"?: undefined;
|
|
305
305
|
} | {
|
|
306
|
-
backgroundColor: string
|
|
306
|
+
backgroundColor: string;
|
|
307
307
|
color: string | undefined;
|
|
308
308
|
borderColor?: undefined;
|
|
309
309
|
"& svg"?: undefined;
|
|
310
|
+
} | {
|
|
311
|
+
backgroundColor: string | undefined;
|
|
312
|
+
color: string;
|
|
313
|
+
borderColor?: undefined;
|
|
314
|
+
"& svg"?: undefined;
|
|
310
315
|
} | {
|
|
311
316
|
backgroundColor: string;
|
|
312
317
|
color: string;
|
|
@@ -347,13 +352,13 @@ declare const theme: {
|
|
|
347
352
|
"&:hover"?: {
|
|
348
353
|
borderColor: string | undefined;
|
|
349
354
|
color: string | undefined;
|
|
350
|
-
backgroundColor: string
|
|
355
|
+
backgroundColor: string;
|
|
351
356
|
} | {
|
|
352
357
|
backgroundColor: string | undefined;
|
|
353
358
|
borderColor?: undefined;
|
|
354
359
|
color?: undefined;
|
|
355
360
|
} | {
|
|
356
|
-
backgroundColor: string
|
|
361
|
+
backgroundColor: string;
|
|
357
362
|
color: string | undefined;
|
|
358
363
|
borderColor?: undefined;
|
|
359
364
|
} | {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { TooltipArgs } from "./_types";
|
|
2
3
|
export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, TooltipArgs>;
|
|
3
4
|
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export declare const AnchorTag: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
|
|
2
3
|
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, {
|
|
3
4
|
[x: string]: any;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
|
|
2
3
|
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, {
|
|
3
4
|
[x: string]: any;
|