@appquality/unguess-design-system 3.1.93 → 3.1.94
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 +16 -0
- package/build/index.js +8 -7
- package/build/stories/highlight/searchable.d.ts +1 -2
- package/build/stories/player/_types.d.ts +14 -0
- package/package.json +1 -1
- /package/build/stories/player/{parts → context}/progressContext.d.ts +0 -0
- /package/build/stories/player/{parts/utils.d.ts → utils.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
# v3.1.94 (Tue May 21 2024)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- Fix player types [#365](https://github.com/AppQuality/unguess-design-system/pull/365) ([@marcbon](https://github.com/marcbon))
|
|
6
|
+
- 🔨 refactor(player): make tags property optional in IBookmark interface [#364](https://github.com/AppQuality/unguess-design-system/pull/364) ([@marcbon](https://github.com/marcbon))
|
|
7
|
+
- Update observation severity colors [#363](https://github.com/AppQuality/unguess-design-system/pull/363) ([@marcbon](https://github.com/marcbon) [@cannarocks](https://github.com/cannarocks))
|
|
8
|
+
- Player-colors [#362](https://github.com/AppQuality/unguess-design-system/pull/362) ([@marcbon](https://github.com/marcbon))
|
|
9
|
+
|
|
10
|
+
#### Authors: 2
|
|
11
|
+
|
|
12
|
+
- Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
|
|
13
|
+
- Marco Bonomo ([@marcbon](https://github.com/marcbon))
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
1
17
|
# v3.1.93 (Tue May 21 2024)
|
|
2
18
|
|
|
3
19
|
#### 🐛 Bug Fix
|
package/build/index.js
CHANGED
|
@@ -4422,7 +4422,7 @@ const Progress = React.forwardRef((props, ref) => (jsxRuntime.jsx(UgProgress, Ob
|
|
|
4422
4422
|
const StyledProgress = styled.styled(Progress) `
|
|
4423
4423
|
width: 100%;
|
|
4424
4424
|
border-radius: 0;
|
|
4425
|
-
color: ${({ theme }) => theme.palette.grey[
|
|
4425
|
+
color: ${({ theme }) => theme.palette.grey[400]};
|
|
4426
4426
|
cursor: pointer;
|
|
4427
4427
|
> div {
|
|
4428
4428
|
border-radius: 0;
|
|
@@ -5585,9 +5585,10 @@ const useHighlightContext = () => {
|
|
|
5585
5585
|
};
|
|
5586
5586
|
|
|
5587
5587
|
const StyledSearchWord = styled__default["default"].span `
|
|
5588
|
-
background-color: ${({ theme }) => theme.palette.product.talk};
|
|
5589
|
-
color: ${({ theme }) => theme.palette.grey[700]}
|
|
5590
|
-
|
|
5588
|
+
background-color: ${({ theme }) => theme.palette.product.talk};
|
|
5589
|
+
color: ${({ theme }) => theme.palette.grey[700]};
|
|
5590
|
+
`;
|
|
5591
|
+
const Searchable = ({ text, }) => {
|
|
5591
5592
|
const { searchTerm } = useHighlightContext();
|
|
5592
5593
|
if (searchTerm) {
|
|
5593
5594
|
const parts = text.split(new RegExp(`(${searchTerm})`, "gi"));
|
|
@@ -5618,7 +5619,7 @@ const StyledWord = styled__default["default"](reactTypography.Span) `
|
|
|
5618
5619
|
}}
|
|
5619
5620
|
`;
|
|
5620
5621
|
const ActiveWord = styled__default["default"].span `
|
|
5621
|
-
background-color: ${({ theme }) => getColor(theme.palette.fuschia,
|
|
5622
|
+
background-color: ${({ theme }) => getColor(theme.palette.fuschia, 400, undefined, 0.4)};
|
|
5622
5623
|
padding: 0 2px;
|
|
5623
5624
|
`;
|
|
5624
5625
|
const WordsContainer = styled__default["default"].div `
|
|
@@ -5673,9 +5674,9 @@ const Word = (props) => {
|
|
|
5673
5674
|
// Is there an observation that contains this word?
|
|
5674
5675
|
const observation = (_a = props.observations) === null || _a === void 0 ? void 0 : _a.find((obs) => props.start >= obs.start && props.end <= obs.end);
|
|
5675
5676
|
if (props.tooltipContent !== undefined && !!observation) {
|
|
5676
|
-
return (jsxRuntime.jsx(Tooltip, Object.assign({ content: props.tooltipContent(observation), isTransparent: true }, { children: jsxRuntime.jsxs(StyledWord, Object.assign({}, props, { observation: observation, "data-start": props.start, "data-end": props.end, className: !!observation ? "highlighted" : "" }, (!!observation ? { tag: "observation" } : {}), { children: [isActive ? (jsxRuntime.jsx(ActiveWord, { children: jsxRuntime.jsx(Searchable, {
|
|
5677
|
+
return (jsxRuntime.jsx(Tooltip, Object.assign({ content: props.tooltipContent(observation), isTransparent: true }, { children: jsxRuntime.jsxs(StyledWord, Object.assign({}, props, { observation: observation, "data-start": props.start, "data-end": props.end, className: !!observation ? "highlighted" : "" }, (!!observation ? { tag: "observation" } : {}), { children: [isActive ? (jsxRuntime.jsx(ActiveWord, { children: jsxRuntime.jsx(Searchable, { text: props.text }) })) : (jsxRuntime.jsx(Searchable, { text: props.text })), " "] })) })));
|
|
5677
5678
|
}
|
|
5678
|
-
return (jsxRuntime.jsxs(StyledWord, Object.assign({}, props, { observation: observation, "data-start": props.start, "data-end": props.end, className: !!observation ? "highlighted" : "" }, (!!observation ? { tag: "observation" } : {}), { children: [isActive ? (jsxRuntime.jsx(ActiveWord, { children: jsxRuntime.jsx(Searchable, {
|
|
5679
|
+
return (jsxRuntime.jsxs(StyledWord, Object.assign({}, props, { observation: observation, "data-start": props.start, "data-end": props.end, className: !!observation ? "highlighted" : "" }, (!!observation ? { tag: "observation" } : {}), { children: [isActive ? (jsxRuntime.jsx(ActiveWord, { children: jsxRuntime.jsx(Searchable, { text: props.text }) })) : (jsxRuntime.jsx(Searchable, { text: props.text })), " "] })));
|
|
5679
5680
|
};
|
|
5680
5681
|
Highlight.Word = Word;
|
|
5681
5682
|
|
|
@@ -22,8 +22,22 @@ export interface IBookmark {
|
|
|
22
22
|
label?: string;
|
|
23
23
|
tooltipContent?: ReactNode;
|
|
24
24
|
onClick?: () => void;
|
|
25
|
+
tags?: VideoTag[];
|
|
25
26
|
}
|
|
26
27
|
export interface WrapperProps {
|
|
27
28
|
isPlaying?: boolean;
|
|
28
29
|
isLoaded?: boolean;
|
|
29
30
|
}
|
|
31
|
+
type VideoTag = {
|
|
32
|
+
group: {
|
|
33
|
+
id: number;
|
|
34
|
+
name: string;
|
|
35
|
+
};
|
|
36
|
+
tag: {
|
|
37
|
+
id: number;
|
|
38
|
+
name: string;
|
|
39
|
+
style: string;
|
|
40
|
+
usageNumber: number;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
export {};
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|