@appquality/unguess-design-system 3.1.82 → 3.1.83
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 +16 -23
- package/build/stories/buttons/button/index.stories.d.ts +1 -0
- package/build/stories/buttons/utils.d.ts +27 -27
- package/build/stories/chat/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/highlight/index.stories.d.ts +1 -0
- package/build/stories/player/parts/controlsCenterGroup.d.ts +2 -1
- package/build/stories/player/parts/timeLabel.d.ts +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
# v3.1.82 (Mon May 13 2024)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- Player improvements and trans fix [#339](https://github.com/AppQuality/unguess-design-system/pull/339) ([@iDome89](https://github.com/iDome89) [@cannarocks](https://github.com/cannarocks))
|
|
6
|
+
- Update-controls-layout [#338](https://github.com/AppQuality/unguess-design-system/pull/338) ([@cannarocks](https://github.com/cannarocks))
|
|
7
|
+
- fixed obs breaking text [#334](https://github.com/AppQuality/unguess-design-system/pull/334) ([@iDome89](https://github.com/iDome89))
|
|
8
|
+
- removed ; from component tree [#337](https://github.com/AppQuality/unguess-design-system/pull/337) ([@iDome89](https://github.com/iDome89) [@cannarocks](https://github.com/cannarocks))
|
|
9
|
+
- Player controls updated [#336](https://github.com/AppQuality/unguess-design-system/pull/336) ([@cannarocks](https://github.com/cannarocks))
|
|
10
|
+
- Improve-player-bookmarks-usability [#335](https://github.com/AppQuality/unguess-design-system/pull/335) ([@cannarocks](https://github.com/cannarocks))
|
|
11
|
+
|
|
12
|
+
#### Authors: 2
|
|
13
|
+
|
|
14
|
+
- [@iDome89](https://github.com/iDome89)
|
|
15
|
+
- Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
1
19
|
# v3.1.82 (Fri May 10 2024)
|
|
2
20
|
|
|
3
21
|
#### 🐛 Bug Fix
|
package/build/index.js
CHANGED
|
@@ -3949,12 +3949,11 @@ const StyledWord = styled__default["default"](reactTypography.Span) `
|
|
|
3949
3949
|
${({ observation, theme }) => {
|
|
3950
3950
|
var _a, _b;
|
|
3951
3951
|
return observation &&
|
|
3952
|
-
`
|
|
3953
|
-
|
|
3952
|
+
` user-select: none;
|
|
3953
|
+
padding: 0;
|
|
3954
3954
|
background-color: ${(_a = observation.backgroundColor) !== null && _a !== void 0 ? _a : getColor(theme.palette.azure, 700, undefined, 0.5)};
|
|
3955
3955
|
color: ${(_b = observation.color) !== null && _b !== void 0 ? _b : "white"};
|
|
3956
|
-
|
|
3957
|
-
|
|
3956
|
+
box-sizing: border-box;
|
|
3958
3957
|
&:focus {
|
|
3959
3958
|
outline: none;
|
|
3960
3959
|
}
|
|
@@ -3970,7 +3969,7 @@ const ActiveWord = styled__default["default"].span `
|
|
|
3970
3969
|
padding: 0 2px;
|
|
3971
3970
|
`;
|
|
3972
3971
|
const WordsContainer = styled__default["default"].div `
|
|
3973
|
-
|
|
3972
|
+
box-sizing: border-box;
|
|
3974
3973
|
${StyledWord}, span {
|
|
3975
3974
|
&::selection {
|
|
3976
3975
|
background-color: ${({ theme }) => getColor(theme.palette.kale, 700, undefined, 0.5)};
|
|
@@ -4011,7 +4010,7 @@ const Highlight = (props) => {
|
|
|
4011
4010
|
document.removeEventListener("selectionchange", handleSelectionChange);
|
|
4012
4011
|
};
|
|
4013
4012
|
}, [ref, props, handleSelectionChange]);
|
|
4014
|
-
return (jsxRuntime.
|
|
4013
|
+
return (jsxRuntime.jsx(HighlightContextProvider, Object.assign({ term: props.search }, { children: jsxRuntime.jsx(WordsContainer, Object.assign({ ref: ref }, { children: props.children })) })));
|
|
4015
4014
|
};
|
|
4016
4015
|
const Word = (props) => {
|
|
4017
4016
|
var _a;
|
|
@@ -4020,7 +4019,7 @@ const Word = (props) => {
|
|
|
4020
4019
|
props.currentTime < props.end;
|
|
4021
4020
|
// Is there an observation that contains this word?
|
|
4022
4021
|
const observation = (_a = props.observations) === null || _a === void 0 ? void 0 : _a.find((obs) => props.start >= obs.start && props.end <= obs.end);
|
|
4023
|
-
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, { start: props.start, text: props.text }) })) : (jsxRuntime.jsx(Searchable, { start: props.start, text: props.text })),
|
|
4022
|
+
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, { start: props.start, text: props.text }) })) : (jsxRuntime.jsx(Searchable, { start: props.start, text: props.text })), " "] })));
|
|
4024
4023
|
};
|
|
4025
4024
|
Highlight.Word = Word;
|
|
4026
4025
|
|
|
@@ -5085,7 +5084,7 @@ const Bookmark = (props) => {
|
|
|
5085
5084
|
return (jsxRuntime.jsx(Tooltip, Object.assign({ content: label, type: "light", size: "large" }, { children: jsxRuntime.jsxs(Rect, Object.assign({ isActive: activeBookmark && activeBookmark.id === props.id, hue: hue, style: {
|
|
5086
5085
|
left: `${((start - videoStart) / duration) * 100}%`,
|
|
5087
5086
|
width: `${((end - start) / duration) * 100}%`,
|
|
5088
|
-
} }, { children: [jsxRuntime.jsx(Grabber, { observation: props }), jsxRuntime.jsx(Grabber, { isEnd: true, observation: props })] })) })));
|
|
5087
|
+
}, onClick: props.onClick }, { children: [jsxRuntime.jsx(Grabber, { observation: props }), jsxRuntime.jsx(Grabber, { isEnd: true, observation: props })] })) })));
|
|
5089
5088
|
};
|
|
5090
5089
|
|
|
5091
5090
|
var _path$f, _path2$3, _path3$1;
|
|
@@ -5210,8 +5209,9 @@ const getNextPlaybackRate = (rate = 1) => {
|
|
|
5210
5209
|
const StyledDiv$4 = styled__default["default"].div `
|
|
5211
5210
|
display: flex;
|
|
5212
5211
|
align-items: center;
|
|
5212
|
+
justify-content: center;
|
|
5213
5213
|
`;
|
|
5214
|
-
const ControlsGroupCenter = () => {
|
|
5214
|
+
const ControlsGroupCenter = (props) => {
|
|
5215
5215
|
var _a;
|
|
5216
5216
|
const [playBackRate, setPlayBackRate] = React.useState(1);
|
|
5217
5217
|
const { context, togglePlay } = Video.useVideoContext();
|
|
@@ -5234,7 +5234,7 @@ const ControlsGroupCenter = () => {
|
|
|
5234
5234
|
const nextTime = videoRef.currentTime + 10;
|
|
5235
5235
|
videoRef.currentTime = nextTime;
|
|
5236
5236
|
};
|
|
5237
|
-
return (jsxRuntime.jsxs(StyledDiv$4, { children: [jsxRuntime.jsx(IconButton, Object.assign({ isBright: true, onClick: (e) => {
|
|
5237
|
+
return (jsxRuntime.jsxs(StyledDiv$4, Object.assign({}, props, { children: [jsxRuntime.jsx(IconButton, Object.assign({ isBright: true, onClick: (e) => {
|
|
5238
5238
|
if (videoRef) {
|
|
5239
5239
|
videoRef.currentTime = 0;
|
|
5240
5240
|
}
|
|
@@ -5252,7 +5252,7 @@ const ControlsGroupCenter = () => {
|
|
|
5252
5252
|
videoRef.playbackRate = newSpeed;
|
|
5253
5253
|
}
|
|
5254
5254
|
e.stopPropagation();
|
|
5255
|
-
} }, { children: jsxRuntime.jsxs(SM, Object.assign({ isBold: true, style: { lineHeight: "16px" } }, { children: [playBackRate, "x"] })) }))] }));
|
|
5255
|
+
} }, { children: jsxRuntime.jsxs(SM, Object.assign({ isBold: true, style: { lineHeight: "16px" } }, { children: [playBackRate, "x"] })) }))] })));
|
|
5256
5256
|
};
|
|
5257
5257
|
|
|
5258
5258
|
var _path$b;
|
|
@@ -5367,17 +5367,10 @@ const ProgressBar = React.forwardRef((props, ref) => {
|
|
|
5367
5367
|
});
|
|
5368
5368
|
|
|
5369
5369
|
const StyledDiv$3 = styled__default["default"].div `
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
right: 0;
|
|
5373
|
-
|
|
5374
|
-
padding: 0 ${({ theme }) => theme.space.xs};
|
|
5375
|
-
|
|
5376
|
-
span {
|
|
5377
|
-
color: ${({ theme }) => theme.palette.grey[300]};
|
|
5378
|
-
}
|
|
5370
|
+
display: flex;
|
|
5371
|
+
color: ${({ theme }) => theme.palette.grey[300]};
|
|
5379
5372
|
`;
|
|
5380
|
-
const TimeLabel = ({ current, duration, }) => (jsxRuntime.jsx(StyledDiv$3, { children: jsxRuntime.jsxs(SM, Object.assign({ tag: "span" }, { children: [current, "/", duration] })) }));
|
|
5373
|
+
const TimeLabel = ({ current, duration, }) => (jsxRuntime.jsx(StyledDiv$3, { children: jsxRuntime.jsxs(SM, Object.assign({ tag: "span" }, { children: [formatDuration(current), "/", formatDuration(duration)] })) }));
|
|
5381
5374
|
|
|
5382
5375
|
const Wrapper = styled__default["default"].div `
|
|
5383
5376
|
position: absolute;
|
|
@@ -5549,8 +5542,8 @@ const Controls = ({ container, onCutHandler, bookmarks, isCutting, onBookMarkUpd
|
|
|
5549
5542
|
document.removeEventListener("mouseup", reset);
|
|
5550
5543
|
};
|
|
5551
5544
|
}, [reset, marks]);
|
|
5552
|
-
return (jsxRuntime.jsxs(ControlsWrapper, Object.assign({ isPlaying: context.isPlaying }, { children: [jsxRuntime.jsxs(ProgressContainer, Object.assign({ onMouseEnter: onMouseEvent, onMouseMove: onMouseEvent, onMouseLeave: onMouseEvent }, { children: [jsxRuntime.jsx(StyledTooltip, Object.assign({ style: { marginLeft: `${tooltipMargin}px` } }, { children: tooltipLabel })),
|
|
5553
|
-
(marks === null || marks === void 0 ? void 0 : marks.map((bookmark, index) => (jsxRuntime.jsx(Bookmark, Object.assign({}, bookmark), `${index}${bookmark.start}`)))), jsxRuntime.jsx(ProgressBar, { ref: progressRef, progress: progress, handleSkipAhead: handleSkipAhead, duration: duration })] })), jsxRuntime.jsxs(ControlsBar, { children: [jsxRuntime.
|
|
5545
|
+
return (jsxRuntime.jsxs(ControlsWrapper, Object.assign({ isPlaying: context.isPlaying }, { children: [jsxRuntime.jsxs(ProgressContainer, Object.assign({ onMouseEnter: onMouseEvent, onMouseMove: onMouseEvent, onMouseLeave: onMouseEvent }, { children: [jsxRuntime.jsx(StyledTooltip, Object.assign({ style: { marginLeft: `${tooltipMargin}px` } }, { children: tooltipLabel })), !!duration &&
|
|
5546
|
+
(marks === null || marks === void 0 ? void 0 : marks.map((bookmark, index) => (jsxRuntime.jsx(Bookmark, Object.assign({}, bookmark), `${index}${bookmark.start}`)))), jsxRuntime.jsx(ProgressBar, { ref: progressRef, progress: progress, handleSkipAhead: handleSkipAhead, duration: duration })] })), jsxRuntime.jsxs(ControlsBar, { children: [jsxRuntime.jsxs(StyledDiv$2, Object.assign({ style: { width: "20%", justifyContent: "start" } }, { children: [jsxRuntime.jsx(AudioButton, {}), jsxRuntime.jsx(TimeLabel, { current: relCurrentTime, duration: duration })] })), jsxRuntime.jsx(ControlsGroupCenter, { style: { width: "60%" } }), jsxRuntime.jsxs(StyledDiv$2, Object.assign({ style: { width: "20%", justifyContent: "end" } }, { children: [jsxRuntime.jsx(Cutter, { onCutHandler: onCutHandler, isCutting: isCutting, i18n: i18n }), jsxRuntime.jsx(FullScreenButton, { container: container })] }))] })] })));
|
|
5554
5547
|
};
|
|
5555
5548
|
|
|
5556
5549
|
var _path$8;
|
|
@@ -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>;
|
|
@@ -8,18 +8,18 @@ export declare const variants: readonly [{}, {
|
|
|
8
8
|
readonly disabled: true;
|
|
9
9
|
}];
|
|
10
10
|
export declare const Row: import("styled-components").IStyledComponent<"web", {
|
|
11
|
-
alignItems?: "start" | "
|
|
12
|
-
alignItemsXs?: "start" | "
|
|
13
|
-
alignItemsSm?: "start" | "
|
|
14
|
-
alignItemsMd?: "start" | "
|
|
15
|
-
alignItemsLg?: "start" | "
|
|
16
|
-
alignItemsXl?: "start" | "
|
|
17
|
-
justifyContent?: "start" | "
|
|
18
|
-
justifyContentXs?: "start" | "
|
|
19
|
-
justifyContentSm?: "start" | "
|
|
20
|
-
justifyContentMd?: "start" | "
|
|
21
|
-
justifyContentLg?: "start" | "
|
|
22
|
-
justifyContentXl?: "start" | "
|
|
11
|
+
alignItems?: "start" | "end" | "center" | "baseline" | "stretch" | undefined;
|
|
12
|
+
alignItemsXs?: "start" | "end" | "center" | "baseline" | "stretch" | undefined;
|
|
13
|
+
alignItemsSm?: "start" | "end" | "center" | "baseline" | "stretch" | undefined;
|
|
14
|
+
alignItemsMd?: "start" | "end" | "center" | "baseline" | "stretch" | undefined;
|
|
15
|
+
alignItemsLg?: "start" | "end" | "center" | "baseline" | "stretch" | undefined;
|
|
16
|
+
alignItemsXl?: "start" | "end" | "center" | "baseline" | "stretch" | undefined;
|
|
17
|
+
justifyContent?: "start" | "end" | "center" | "between" | "around" | undefined;
|
|
18
|
+
justifyContentXs?: "start" | "end" | "center" | "between" | "around" | undefined;
|
|
19
|
+
justifyContentSm?: "start" | "end" | "center" | "between" | "around" | undefined;
|
|
20
|
+
justifyContentMd?: "start" | "end" | "center" | "between" | "around" | undefined;
|
|
21
|
+
justifyContentLg?: "start" | "end" | "center" | "between" | "around" | undefined;
|
|
22
|
+
justifyContentXl?: "start" | "end" | "center" | "between" | "around" | undefined;
|
|
23
23
|
wrap?: "wrap" | "nowrap" | "wrap-reverse" | undefined;
|
|
24
24
|
wrapXs?: "wrap" | "nowrap" | "wrap-reverse" | undefined;
|
|
25
25
|
wrapSm?: "wrap" | "nowrap" | "wrap-reverse" | undefined;
|
|
@@ -73,7 +73,7 @@ export declare const Row: import("styled-components").IStyledComponent<"web", {
|
|
|
73
73
|
results?: number | undefined;
|
|
74
74
|
security?: string | undefined;
|
|
75
75
|
unselectable?: "on" | "off" | undefined;
|
|
76
|
-
inputMode?: "
|
|
76
|
+
inputMode?: "url" | "none" | "search" | "text" | "tel" | "email" | "numeric" | "decimal" | undefined;
|
|
77
77
|
is?: string | undefined;
|
|
78
78
|
"aria-activedescendant"?: string | undefined;
|
|
79
79
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
@@ -299,18 +299,18 @@ export declare const Col: import("styled-components").IStyledComponent<"web", {
|
|
|
299
299
|
md?: string | number | boolean | undefined;
|
|
300
300
|
lg?: string | number | boolean | undefined;
|
|
301
301
|
xl?: string | number | boolean | undefined;
|
|
302
|
-
alignSelf?: "start" | "
|
|
303
|
-
alignSelfXs?: "start" | "
|
|
304
|
-
alignSelfSm?: "start" | "
|
|
305
|
-
alignSelfMd?: "start" | "
|
|
306
|
-
alignSelfLg?: "start" | "
|
|
307
|
-
alignSelfXl?: "start" | "
|
|
308
|
-
textAlign?: "start" | "
|
|
309
|
-
textAlignXs?: "start" | "
|
|
310
|
-
textAlignSm?: "start" | "
|
|
311
|
-
textAlignMd?: "start" | "
|
|
312
|
-
textAlignLg?: "start" | "
|
|
313
|
-
textAlignXl?: "start" | "
|
|
302
|
+
alignSelf?: "start" | "end" | "center" | "baseline" | "stretch" | "auto" | undefined;
|
|
303
|
+
alignSelfXs?: "start" | "end" | "center" | "baseline" | "stretch" | "auto" | undefined;
|
|
304
|
+
alignSelfSm?: "start" | "end" | "center" | "baseline" | "stretch" | "auto" | undefined;
|
|
305
|
+
alignSelfMd?: "start" | "end" | "center" | "baseline" | "stretch" | "auto" | undefined;
|
|
306
|
+
alignSelfLg?: "start" | "end" | "center" | "baseline" | "stretch" | "auto" | undefined;
|
|
307
|
+
alignSelfXl?: "start" | "end" | "center" | "baseline" | "stretch" | "auto" | undefined;
|
|
308
|
+
textAlign?: "start" | "end" | "center" | "justify" | undefined;
|
|
309
|
+
textAlignXs?: "start" | "end" | "center" | "justify" | undefined;
|
|
310
|
+
textAlignSm?: "start" | "end" | "center" | "justify" | undefined;
|
|
311
|
+
textAlignMd?: "start" | "end" | "center" | "justify" | undefined;
|
|
312
|
+
textAlignLg?: "start" | "end" | "center" | "justify" | undefined;
|
|
313
|
+
textAlignXl?: "start" | "end" | "center" | "justify" | undefined;
|
|
314
314
|
offset?: string | number | undefined;
|
|
315
315
|
offsetXs?: string | number | undefined;
|
|
316
316
|
offsetSm?: string | number | undefined;
|
|
@@ -370,7 +370,7 @@ export declare const Col: import("styled-components").IStyledComponent<"web", {
|
|
|
370
370
|
results?: number | undefined;
|
|
371
371
|
security?: string | undefined;
|
|
372
372
|
unselectable?: "on" | "off" | undefined;
|
|
373
|
-
inputMode?: "
|
|
373
|
+
inputMode?: "url" | "none" | "search" | "text" | "tel" | "email" | "numeric" | "decimal" | undefined;
|
|
374
374
|
is?: string | undefined;
|
|
375
375
|
"aria-activedescendant"?: string | undefined;
|
|
376
376
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
@@ -640,7 +640,7 @@ export declare const MD: import("styled-components").IStyledComponent<"web", {
|
|
|
640
640
|
results?: number | undefined;
|
|
641
641
|
security?: string | undefined;
|
|
642
642
|
unselectable?: "on" | "off" | undefined;
|
|
643
|
-
inputMode?: "
|
|
643
|
+
inputMode?: "url" | "none" | "search" | "text" | "tel" | "email" | "numeric" | "decimal" | undefined;
|
|
644
644
|
is?: string | undefined;
|
|
645
645
|
"aria-activedescendant"?: string | undefined;
|
|
646
646
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { HTMLAttributes } from "react";
|
|
2
|
+
export declare const ControlsGroupCenter: (props: HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|