@appquality/unguess-design-system 3.1.91 → 3.1.92
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 +18 -0
- package/build/index.js +9 -4
- package/build/stories/player/_types.d.ts +2 -1
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
# v3.1.92 (Fri May 17 2024)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- Update auto version to 11.x.x [#356](https://github.com/AppQuality/unguess-design-system/pull/356) ([@marcbon](https://github.com/marcbon))
|
|
6
|
+
- ⬆️ chore(package.json): update auto dependency to version 11.1.1 [#355](https://github.com/AppQuality/unguess-design-system/pull/355) ([@marcbon](https://github.com/marcbon))
|
|
7
|
+
- Update auto version [#354](https://github.com/AppQuality/unguess-design-system/pull/354) ([@marcbon](https://github.com/marcbon))
|
|
8
|
+
- ⬆️ chore(package.json): update auto package to version 10.29.2 [#353](https://github.com/AppQuality/unguess-design-system/pull/353) ([@marcbon](https://github.com/marcbon))
|
|
9
|
+
- bookmark-tooltip-fix [#352](https://github.com/AppQuality/unguess-design-system/pull/352) ([@iDome89](https://github.com/iDome89) [@marcbon](https://github.com/marcbon))
|
|
10
|
+
- Bookmark tooltip changes [#351](https://github.com/AppQuality/unguess-design-system/pull/351) ([@iDome89](https://github.com/iDome89))
|
|
11
|
+
|
|
12
|
+
#### Authors: 2
|
|
13
|
+
|
|
14
|
+
- [@iDome89](https://github.com/iDome89)
|
|
15
|
+
- Marco Bonomo ([@marcbon](https://github.com/marcbon))
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
1
19
|
# v3.1.91 (Fri May 17 2024)
|
|
2
20
|
|
|
3
21
|
#### 🐛 Bug Fix
|
package/build/index.js
CHANGED
|
@@ -4057,6 +4057,11 @@ const Rect = styled.styled.div `
|
|
|
4057
4057
|
|
|
4058
4058
|
transition: width 0.1s ease;
|
|
4059
4059
|
`;
|
|
4060
|
+
const StyledTooltip$1 = styled.styled(Tooltip) `
|
|
4061
|
+
margin-bottom: ${({ theme }) => theme.space.sm};
|
|
4062
|
+
color: ${({ tooltipColor }) => tooltipColor};
|
|
4063
|
+
|
|
4064
|
+
`;
|
|
4060
4065
|
const Grabber = (props) => {
|
|
4061
4066
|
const { observation } = props;
|
|
4062
4067
|
const { setIsGrabbing, setactiveBookmark, setFromEnd } = useProgressContext();
|
|
@@ -4071,7 +4076,7 @@ const Grabber = (props) => {
|
|
|
4071
4076
|
};
|
|
4072
4077
|
const Bookmark = (props) => {
|
|
4073
4078
|
var _a, _b;
|
|
4074
|
-
const { start, end, hue,
|
|
4079
|
+
const { start, end, hue, tooltipContent } = props;
|
|
4075
4080
|
const { context } = Video.useVideoContext();
|
|
4076
4081
|
const videoStart = context.part.start || 0;
|
|
4077
4082
|
const videoEnd = context.part.end || ((_a = context.player) === null || _a === void 0 ? void 0 : _a.totalTime) || 0;
|
|
@@ -4082,7 +4087,7 @@ const Bookmark = (props) => {
|
|
|
4082
4087
|
}
|
|
4083
4088
|
if (start > videoEnd || start < videoStart)
|
|
4084
4089
|
return null;
|
|
4085
|
-
return (jsxRuntime.jsx(
|
|
4090
|
+
return (jsxRuntime.jsx(StyledTooltip$1, Object.assign({ content: tooltipContent, type: "light", size: "large", isTransparent: true }, { children: jsxRuntime.jsxs(Rect, Object.assign({ isActive: activeBookmark && activeBookmark.id === props.id, hue: hue, style: {
|
|
4086
4091
|
left: `${((start - videoStart) / duration) * 100}%`,
|
|
4087
4092
|
width: `${((end - start) / duration) * 100}%`,
|
|
4088
4093
|
}, onClick: props.onClick }, { children: [jsxRuntime.jsx(Grabber, { observation: props }), jsxRuntime.jsx(Grabber, { isEnd: true, observation: props })] })) })));
|
|
@@ -4434,9 +4439,10 @@ const Content$1 = styled__default["default"].div `
|
|
|
4434
4439
|
padding: 2px 4px;
|
|
4435
4440
|
display: inline-flex;
|
|
4436
4441
|
color: white;
|
|
4442
|
+
font-size: ${({ theme }) => theme.fontSizes.sm};
|
|
4437
4443
|
align-items: center;
|
|
4438
4444
|
justify-content: center;
|
|
4439
|
-
min-height:
|
|
4445
|
+
min-height: 14px;
|
|
4440
4446
|
`;
|
|
4441
4447
|
const PlayerTooltip = (_a) => {
|
|
4442
4448
|
var { children } = _a, props = __rest(_a, ["children"]);
|
|
@@ -5574,7 +5580,6 @@ const StyledWord = styled__default["default"](reactTypography.Span) `
|
|
|
5574
5580
|
var _a, _b;
|
|
5575
5581
|
return observation &&
|
|
5576
5582
|
` user-select: none;
|
|
5577
|
-
padding: 0;
|
|
5578
5583
|
background-color: ${(_a = observation.hue) !== null && _a !== void 0 ? _a : getColor(theme.palette.azure, 700, undefined, 0.5)};
|
|
5579
5584
|
color: ${(_b = observation.color) !== null && _b !== void 0 ? _b : "white"};
|
|
5580
5585
|
box-sizing: border-box;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HTMLAttributes } from "react";
|
|
1
|
+
import { HTMLAttributes, ReactNode } from "react";
|
|
2
2
|
export interface PlayerArgs extends HTMLAttributes<HTMLVideoElement> {
|
|
3
3
|
url: string;
|
|
4
4
|
start?: number;
|
|
@@ -20,6 +20,7 @@ export interface IBookmark {
|
|
|
20
20
|
end: number;
|
|
21
21
|
hue?: string;
|
|
22
22
|
label?: string;
|
|
23
|
+
tooltipContent?: ReactNode;
|
|
23
24
|
onClick?: () => void;
|
|
24
25
|
}
|
|
25
26
|
export interface WrapperProps {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appquality/unguess-design-system",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.92",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -98,6 +98,7 @@
|
|
|
98
98
|
"@zendeskgarden/react-forms": "^8.49.0",
|
|
99
99
|
"@zendeskgarden/react-theming": "^8.48.2",
|
|
100
100
|
"@zendeskgarden/svg-icons": "^6.31.1",
|
|
101
|
+
"auto": "^11.1.1",
|
|
101
102
|
"formik": "^2.2.9",
|
|
102
103
|
"prop-types": "^15.8.1",
|
|
103
104
|
"react": "^18.2.0",
|