@appquality/unguess-design-system 3.1.90-beta-attachments → 3.1.90
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 +293 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +728 -370
- package/build/stories/buttons/button/index.stories.d.ts +0 -1
- package/build/stories/buttons/utils.d.ts +27 -27
- package/build/stories/chat/_types.d.ts +2 -1
- package/build/stories/chat/context/chatContext.d.ts +4 -2
- package/build/stories/chat/index.stories.d.ts +2 -3
- package/build/stories/chat/parts/ThumbnailContainer/index.d.ts +2 -1
- package/build/stories/dropdowns/select/index.stories.d.ts +0 -1
- package/build/stories/editor/index.stories.d.ts +0 -1
- package/build/stories/highlight/_types.d.ts +37 -0
- package/build/stories/highlight/demo-parts/data.d.ts +49 -0
- package/build/stories/highlight/demo-parts/transcript-base.d.ts +5 -0
- package/build/stories/highlight/demo-parts/transcript-diarization.d.ts +5 -0
- package/build/stories/highlight/demo-parts/transcript-paragraph.d.ts +5 -0
- package/build/stories/highlight/highlightContext.d.ts +10 -0
- package/build/stories/highlight/index.d.ts +10 -0
- package/build/stories/highlight/index.stories.d.ts +17 -0
- package/build/stories/highlight/searchable.d.ts +4 -0
- package/build/stories/player/_types.d.ts +18 -0
- package/build/stories/player/index.stories.d.ts +1 -2
- package/build/stories/player/parts/bookmark.d.ts +2 -0
- package/build/stories/player/parts/controlButton.d.ts +289 -0
- package/build/stories/player/parts/controls.d.ts +7 -2
- package/build/stories/player/parts/controlsCenterGroup.d.ts +2 -1
- package/build/stories/player/parts/cutterButton.d.ts +6 -0
- package/build/stories/player/parts/progress.d.ts +11 -0
- package/build/stories/player/parts/progressContext.d.ts +16 -0
- package/build/stories/player/parts/timeLabel.d.ts +2 -2
- package/build/stories/tooltip/_types.d.ts +1 -0
- package/build/stories/tooltip/index.d.ts +1 -0
- package/build/stories/tooltip/index.stories.d.ts +1 -0
- package/package.json +4 -2
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ButtonArgs } from "./_types";
|
|
3
2
|
export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, ButtonArgs>;
|
|
4
3
|
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?: "
|
|
12
|
-
alignItemsXs?: "
|
|
13
|
-
alignItemsSm?: "
|
|
14
|
-
alignItemsMd?: "
|
|
15
|
-
alignItemsLg?: "
|
|
16
|
-
alignItemsXl?: "
|
|
17
|
-
justifyContent?: "
|
|
18
|
-
justifyContentXs?: "
|
|
19
|
-
justifyContentSm?: "
|
|
20
|
-
justifyContentMd?: "
|
|
21
|
-
justifyContentLg?: "
|
|
22
|
-
justifyContentXl?: "
|
|
11
|
+
alignItems?: "start" | "center" | "end" | "baseline" | "stretch" | undefined;
|
|
12
|
+
alignItemsXs?: "start" | "center" | "end" | "baseline" | "stretch" | undefined;
|
|
13
|
+
alignItemsSm?: "start" | "center" | "end" | "baseline" | "stretch" | undefined;
|
|
14
|
+
alignItemsMd?: "start" | "center" | "end" | "baseline" | "stretch" | undefined;
|
|
15
|
+
alignItemsLg?: "start" | "center" | "end" | "baseline" | "stretch" | undefined;
|
|
16
|
+
alignItemsXl?: "start" | "center" | "end" | "baseline" | "stretch" | undefined;
|
|
17
|
+
justifyContent?: "start" | "center" | "end" | "between" | "around" | undefined;
|
|
18
|
+
justifyContentXs?: "start" | "center" | "end" | "between" | "around" | undefined;
|
|
19
|
+
justifyContentSm?: "start" | "center" | "end" | "between" | "around" | undefined;
|
|
20
|
+
justifyContentMd?: "start" | "center" | "end" | "between" | "around" | undefined;
|
|
21
|
+
justifyContentLg?: "start" | "center" | "end" | "between" | "around" | undefined;
|
|
22
|
+
justifyContentXl?: "start" | "center" | "end" | "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?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" |
|
|
76
|
+
inputMode?: "decimal" | "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | 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?: "
|
|
303
|
-
alignSelfXs?: "
|
|
304
|
-
alignSelfSm?: "
|
|
305
|
-
alignSelfMd?: "
|
|
306
|
-
alignSelfLg?: "
|
|
307
|
-
alignSelfXl?: "
|
|
308
|
-
textAlign?: "
|
|
309
|
-
textAlignXs?: "
|
|
310
|
-
textAlignSm?: "
|
|
311
|
-
textAlignMd?: "
|
|
312
|
-
textAlignLg?: "
|
|
313
|
-
textAlignXl?: "
|
|
302
|
+
alignSelf?: "start" | "center" | "end" | "baseline" | "stretch" | "auto" | undefined;
|
|
303
|
+
alignSelfXs?: "start" | "center" | "end" | "baseline" | "stretch" | "auto" | undefined;
|
|
304
|
+
alignSelfSm?: "start" | "center" | "end" | "baseline" | "stretch" | "auto" | undefined;
|
|
305
|
+
alignSelfMd?: "start" | "center" | "end" | "baseline" | "stretch" | "auto" | undefined;
|
|
306
|
+
alignSelfLg?: "start" | "center" | "end" | "baseline" | "stretch" | "auto" | undefined;
|
|
307
|
+
alignSelfXl?: "start" | "center" | "end" | "baseline" | "stretch" | "auto" | undefined;
|
|
308
|
+
textAlign?: "start" | "center" | "end" | "justify" | undefined;
|
|
309
|
+
textAlignXs?: "start" | "center" | "end" | "justify" | undefined;
|
|
310
|
+
textAlignSm?: "start" | "center" | "end" | "justify" | undefined;
|
|
311
|
+
textAlignMd?: "start" | "center" | "end" | "justify" | undefined;
|
|
312
|
+
textAlignLg?: "start" | "center" | "end" | "justify" | undefined;
|
|
313
|
+
textAlignXl?: "start" | "center" | "end" | "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?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" |
|
|
373
|
+
inputMode?: "decimal" | "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | 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?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" |
|
|
643
|
+
inputMode?: "decimal" | "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | undefined;
|
|
644
644
|
is?: string | undefined;
|
|
645
645
|
"aria-activedescendant"?: string | undefined;
|
|
646
646
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
@@ -39,8 +39,9 @@ export interface EditorHeaderArgs {
|
|
|
39
39
|
validation?: validationStatus;
|
|
40
40
|
}
|
|
41
41
|
export interface FileItem extends File {
|
|
42
|
-
isLoadingMedia
|
|
42
|
+
isLoadingMedia: boolean;
|
|
43
43
|
isError?: boolean;
|
|
44
|
+
internal_id: string;
|
|
44
45
|
}
|
|
45
46
|
export interface FloatingMenuArgs extends Partial<BubbleMenuProps> {
|
|
46
47
|
}
|
|
@@ -14,7 +14,8 @@ export type ChatContextType = {
|
|
|
14
14
|
query: string;
|
|
15
15
|
}) => SuggestedUser[];
|
|
16
16
|
afterUploadCallback: (failed: string[]) => void;
|
|
17
|
-
|
|
17
|
+
clearInput: () => void;
|
|
18
|
+
onDeleteThumbnail: (id: string) => void;
|
|
18
19
|
};
|
|
19
20
|
export declare const ChatContext: React.Context<ChatContextType | null>;
|
|
20
21
|
export interface Data {
|
|
@@ -26,9 +27,10 @@ export interface Data {
|
|
|
26
27
|
errorCode: string;
|
|
27
28
|
}[];
|
|
28
29
|
}
|
|
29
|
-
export declare const ChatContextProvider: ({ onSave, onFileUpload, setMentionableUsers, children, }: {
|
|
30
|
+
export declare const ChatContextProvider: ({ onSave, onFileUpload, onDeleteThumbnail, setMentionableUsers, children, }: {
|
|
30
31
|
onSave?: ((editor: Editor, mentions: SuggestedUser[]) => void) | undefined;
|
|
31
32
|
onFileUpload?: ((files: FileItem[]) => Promise<Data>) | undefined;
|
|
33
|
+
onDeleteThumbnail: (id: string) => void;
|
|
32
34
|
children: React.ReactNode;
|
|
33
35
|
setMentionableUsers: (props: {
|
|
34
36
|
query: string;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { PlaceholderOptions } from "@tiptap/extension-placeholder";
|
|
3
2
|
import { Editor as TipTapEditor } from "@tiptap/react";
|
|
4
|
-
import { ChatEditorArgs, SuggestedUser } from "./_types";
|
|
3
|
+
import { ChatEditorArgs, FileItem, SuggestedUser } from "./_types";
|
|
5
4
|
import { MediaType } from "./parts/comment";
|
|
6
5
|
import { Data } from "./context/chatContext";
|
|
7
6
|
interface EditorStoryArgs extends ChatEditorArgs {
|
|
@@ -19,7 +18,7 @@ interface EditorStoryArgs extends ChatEditorArgs {
|
|
|
19
18
|
editorText?: string;
|
|
20
19
|
background?: string;
|
|
21
20
|
onSave: (editor: TipTapEditor, mentions: SuggestedUser[]) => void;
|
|
22
|
-
onFileUpload?: (files:
|
|
21
|
+
onFileUpload?: (files: FileItem[]) => Promise<Data>;
|
|
23
22
|
placeholderOptions?: Partial<PlaceholderOptions>;
|
|
24
23
|
}
|
|
25
24
|
export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, EditorStoryArgs>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export interface FileElement {
|
|
2
2
|
fileName: string;
|
|
3
3
|
fileType: string;
|
|
4
|
-
status: "success" | "failed" | "uploading";
|
|
5
4
|
errorCode?: "FILE_TOO_BIG" | "INVALID_FILE_EXTENSION" | "GENERIC_ERROR";
|
|
6
5
|
previewUrl: string;
|
|
6
|
+
internal_id: string;
|
|
7
|
+
isLoadingMedia: boolean;
|
|
7
8
|
}
|
|
8
9
|
interface Props {
|
|
9
10
|
openLightbox: (file: File, index: number) => void;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ISpanProps } from "@zendeskgarden/react-typography";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
import { IBookmark } from "../player/_types";
|
|
4
|
+
export interface HighlightArgs {
|
|
5
|
+
/**
|
|
6
|
+
* Applies a font color. Use [PALETTE](/components/palette#palette) colors
|
|
7
|
+
* when possible. Accepts all hex values.
|
|
8
|
+
*/
|
|
9
|
+
hue?: string;
|
|
10
|
+
/** Updates the element's HTML tag */
|
|
11
|
+
tag?: any;
|
|
12
|
+
/** Applies bold font style. Font weight is inherited by default. */
|
|
13
|
+
isBold?: boolean;
|
|
14
|
+
/** Renders with monospace font */
|
|
15
|
+
isMonospace?: boolean;
|
|
16
|
+
/** Adjusts the font size. By default font size is medium */
|
|
17
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | "xxxl";
|
|
18
|
+
handleSelection?: (part: {
|
|
19
|
+
from: number;
|
|
20
|
+
to: number;
|
|
21
|
+
text: string;
|
|
22
|
+
}) => void;
|
|
23
|
+
search?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface Observation extends Omit<IBookmark, "onClick"> {
|
|
26
|
+
color?: string;
|
|
27
|
+
}
|
|
28
|
+
export interface WordProps extends ISpanProps {
|
|
29
|
+
start: number;
|
|
30
|
+
end: number;
|
|
31
|
+
currentTime?: number;
|
|
32
|
+
observations?: Observation[];
|
|
33
|
+
text: string;
|
|
34
|
+
/** Adjusts the font size. By default font size is medium */
|
|
35
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | "xxxl";
|
|
36
|
+
tooltipContent?: (observation: Observation) => ReactNode;
|
|
37
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export declare const DemoTranscript: {
|
|
2
|
+
metadata: {
|
|
3
|
+
transaction_key: string;
|
|
4
|
+
request_id: string;
|
|
5
|
+
sha256: string;
|
|
6
|
+
created: string;
|
|
7
|
+
duration: number;
|
|
8
|
+
channels: number;
|
|
9
|
+
models: string[];
|
|
10
|
+
model_info: {
|
|
11
|
+
"4accafca-a091-473d-8241-f5a847cb5766": {
|
|
12
|
+
name: string;
|
|
13
|
+
version: string;
|
|
14
|
+
arch: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
results: {
|
|
19
|
+
channels: {
|
|
20
|
+
alternatives: {
|
|
21
|
+
transcript: string;
|
|
22
|
+
confidence: number;
|
|
23
|
+
words: {
|
|
24
|
+
word: string;
|
|
25
|
+
start: number;
|
|
26
|
+
end: number;
|
|
27
|
+
confidence: number;
|
|
28
|
+
speaker: number;
|
|
29
|
+
speaker_confidence: number;
|
|
30
|
+
punctuated_word: string;
|
|
31
|
+
}[];
|
|
32
|
+
paragraphs: {
|
|
33
|
+
transcript: string;
|
|
34
|
+
paragraphs: {
|
|
35
|
+
sentences: {
|
|
36
|
+
text: string;
|
|
37
|
+
start: number;
|
|
38
|
+
end: number;
|
|
39
|
+
}[];
|
|
40
|
+
speaker: number;
|
|
41
|
+
num_words: number;
|
|
42
|
+
start: number;
|
|
43
|
+
end: number;
|
|
44
|
+
}[];
|
|
45
|
+
};
|
|
46
|
+
}[];
|
|
47
|
+
}[];
|
|
48
|
+
};
|
|
49
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type HighlightContextType = {
|
|
3
|
+
searchTerm: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const HighlightContext: React.Context<HighlightContextType | null>;
|
|
6
|
+
export declare const HighlightContextProvider: ({ term, children, }: {
|
|
7
|
+
term?: string | undefined;
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const useHighlightContext: () => HighlightContextType;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PropsWithChildren } from "react";
|
|
2
|
+
import { HighlightArgs, WordProps } from "./_types";
|
|
3
|
+
/**
|
|
4
|
+
* Use Highlight to use highlight interation on any text element
|
|
5
|
+
*/
|
|
6
|
+
declare const Highlight: {
|
|
7
|
+
(props: PropsWithChildren<HighlightArgs>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
Word: (props: WordProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
};
|
|
10
|
+
export { Highlight };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { HighlightArgs, WordProps } from "./_types";
|
|
2
|
+
export interface StoryArgs extends HighlightArgs {
|
|
3
|
+
words: Array<WordProps & {
|
|
4
|
+
speaker: number;
|
|
5
|
+
}>;
|
|
6
|
+
currentTime: number;
|
|
7
|
+
includeSearch?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, StoryArgs>;
|
|
10
|
+
export declare const VideoSync: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, StoryArgs>;
|
|
11
|
+
export declare const WithSearch: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, StoryArgs>;
|
|
12
|
+
export declare const WithTooltip: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, StoryArgs>;
|
|
13
|
+
export declare const Demo: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, StoryArgs>;
|
|
14
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, HighlightArgs & {
|
|
15
|
+
children?: import("react").ReactNode;
|
|
16
|
+
}>;
|
|
17
|
+
export default _default;
|
|
@@ -3,6 +3,24 @@ export interface PlayerArgs extends HTMLAttributes<HTMLVideoElement> {
|
|
|
3
3
|
url: string;
|
|
4
4
|
start?: number;
|
|
5
5
|
end?: number;
|
|
6
|
+
enablePipOnScroll?: boolean;
|
|
7
|
+
onCutHandler?: (time: number) => void;
|
|
8
|
+
isCutting?: boolean;
|
|
9
|
+
bookmarks?: IBookmark[];
|
|
10
|
+
handleBookmarkUpdate?: (bookmark: IBookmark) => void;
|
|
11
|
+
i18n?: PlayerI18n;
|
|
12
|
+
}
|
|
13
|
+
export interface PlayerI18n {
|
|
14
|
+
beforeHighlight?: string;
|
|
15
|
+
onHighlight?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface IBookmark {
|
|
18
|
+
id: number;
|
|
19
|
+
start: number;
|
|
20
|
+
end: number;
|
|
21
|
+
hue?: string;
|
|
22
|
+
label?: string;
|
|
23
|
+
onClick?: () => void;
|
|
6
24
|
}
|
|
7
25
|
export interface WrapperProps {
|
|
8
26
|
isPlaying?: boolean;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { PlayerArgs } from "./_types";
|
|
3
2
|
interface PlayerStoryArgs extends PlayerArgs {
|
|
4
|
-
url: string;
|
|
5
3
|
}
|
|
6
4
|
export declare const Basic: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, PlayerStoryArgs>;
|
|
7
5
|
export declare const Streaming: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, PlayerStoryArgs>;
|
|
6
|
+
export declare const WithBookmarks: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, PlayerStoryArgs>;
|
|
8
7
|
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, PlayerArgs & import("react").RefAttributes<HTMLVideoElement>>;
|
|
9
8
|
export default _default;
|