@appquality/unguess-design-system 3.1.104-attachments → 3.1.104

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.
Files changed (42) hide show
  1. package/CHANGELOG.md +377 -0
  2. package/build/index.js +789 -579
  3. package/build/stories/avatar/InternalAvatar.d.ts +2 -0
  4. package/build/stories/buttons/button/index.stories.d.ts +0 -1
  5. package/build/stories/buttons/utils.d.ts +39 -39
  6. package/build/stories/chat/_types.d.ts +8 -6
  7. package/build/stories/chat/context/chatContext.d.ts +4 -4
  8. package/build/stories/chat/hooks/useMedia.d.ts +8 -0
  9. package/build/stories/chat/index.stories.d.ts +3 -4
  10. package/build/stories/chat/parts/MediaLightbox.d.ts +14 -0
  11. package/build/stories/chat/parts/ThumbnailContainer/Thumbnail.d.ts +11 -0
  12. package/build/stories/chat/parts/ThumbnailContainer/index.d.ts +1 -9
  13. package/build/stories/chat/parts/comment.d.ts +2 -7
  14. package/build/stories/dropdowns/select/index.stories.d.ts +0 -1
  15. package/build/stories/editor/index.stories.d.ts +0 -1
  16. package/build/stories/highlight/CreateObservationButton.d.ts +17 -0
  17. package/build/stories/highlight/_types.d.ts +9 -8
  18. package/build/stories/highlight/demo-parts/data.d.ts +55 -0
  19. package/build/stories/highlight/demo-parts/sentiment-tag.d.ts +7 -0
  20. package/build/stories/highlight/demo-parts/transcript-base.d.ts +5 -0
  21. package/build/stories/highlight/demo-parts/transcript-diarization.d.ts +5 -0
  22. package/build/stories/highlight/demo-parts/transcript-paragraph.d.ts +5 -0
  23. package/build/stories/highlight/demo-parts/transcript-sentiment.d.ts +5 -0
  24. package/build/stories/highlight/index.stories.d.ts +8 -9
  25. package/build/stories/highlight/searchable.d.ts +1 -2
  26. package/build/stories/player/_types.d.ts +21 -2
  27. package/build/stories/player/hooks/usePictureInPicture.d.ts +4 -0
  28. package/build/stories/player/index.d.ts +7 -2
  29. package/build/stories/player/index.stories.d.ts +3 -1
  30. package/build/stories/player/parts/CutStart.d.ts +4 -0
  31. package/build/stories/player/parts/controlButton.d.ts +289 -0
  32. package/build/stories/player/parts/controls.d.ts +2 -1
  33. package/build/stories/player/parts/floatingControls.d.ts +1 -0
  34. package/build/stories/tooltip/_types.d.ts +1 -0
  35. package/build/stories/tooltip/index.d.ts +1 -0
  36. package/build/stories/tooltip/index.stories.d.ts +1 -0
  37. package/package.json +2 -1
  38. package/build/stories/chat/parts/ThumbnailContainer/ImageThumbnail.d.ts +0 -11
  39. package/build/stories/chat/parts/ThumbnailContainer/VideoThumbnail.d.ts +0 -11
  40. package/yarn-error.log +0 -17994
  41. /package/build/stories/player/{parts → context}/progressContext.d.ts +0 -0
  42. /package/build/stories/player/{parts/utils.d.ts → utils.d.ts} +0 -0
@@ -0,0 +1,2 @@
1
+ declare const InternalAvatar: () => import("react/jsx-runtime").JSX.Element;
2
+ export default InternalAvatar;
@@ -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?: "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;
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;
@@ -33,7 +33,7 @@ export declare const Row: import("styled-components").IStyledComponent<"web", {
33
33
  accessKey?: string | undefined;
34
34
  autoFocus?: boolean | undefined;
35
35
  className?: string | undefined;
36
- contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
36
+ contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
37
37
  contextMenu?: string | undefined;
38
38
  dir?: string | undefined;
39
39
  draggable?: (boolean | "true" | "false") | 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?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
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;
@@ -84,7 +84,7 @@ export declare const Row: import("styled-components").IStyledComponent<"web", {
84
84
  "aria-colindex"?: number | undefined;
85
85
  "aria-colspan"?: number | undefined;
86
86
  "aria-controls"?: string | undefined;
87
- "aria-current"?: boolean | "time" | "step" | "true" | "false" | "page" | "location" | "date" | undefined;
87
+ "aria-current"?: boolean | "true" | "false" | "page" | "step" | "location" | "date" | "time" | undefined;
88
88
  "aria-describedby"?: string | undefined;
89
89
  "aria-details"?: string | undefined;
90
90
  "aria-disabled"?: (boolean | "true" | "false") | undefined;
@@ -93,7 +93,7 @@ export declare const Row: import("styled-components").IStyledComponent<"web", {
93
93
  "aria-expanded"?: (boolean | "true" | "false") | undefined;
94
94
  "aria-flowto"?: string | undefined;
95
95
  "aria-grabbed"?: (boolean | "true" | "false") | undefined;
96
- "aria-haspopup"?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
96
+ "aria-haspopup"?: boolean | "true" | "false" | "dialog" | "grid" | "listbox" | "menu" | "tree" | undefined;
97
97
  "aria-hidden"?: (boolean | "true" | "false") | undefined;
98
98
  "aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
99
99
  "aria-keyshortcuts"?: string | undefined;
@@ -110,7 +110,7 @@ export declare const Row: import("styled-components").IStyledComponent<"web", {
110
110
  "aria-posinset"?: number | undefined;
111
111
  "aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
112
112
  "aria-readonly"?: (boolean | "true" | "false") | undefined;
113
- "aria-relevant"?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
113
+ "aria-relevant"?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
114
114
  "aria-required"?: (boolean | "true" | "false") | undefined;
115
115
  "aria-roledescription"?: string | undefined;
116
116
  "aria-rowcount"?: number | 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" | "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;
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;
@@ -330,7 +330,7 @@ export declare const Col: import("styled-components").IStyledComponent<"web", {
330
330
  accessKey?: string | undefined;
331
331
  autoFocus?: boolean | undefined;
332
332
  className?: string | undefined;
333
- contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
333
+ contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
334
334
  contextMenu?: string | undefined;
335
335
  dir?: string | undefined;
336
336
  draggable?: (boolean | "true" | "false") | 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?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
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;
@@ -381,7 +381,7 @@ export declare const Col: import("styled-components").IStyledComponent<"web", {
381
381
  "aria-colindex"?: number | undefined;
382
382
  "aria-colspan"?: number | undefined;
383
383
  "aria-controls"?: string | undefined;
384
- "aria-current"?: boolean | "time" | "step" | "true" | "false" | "page" | "location" | "date" | undefined;
384
+ "aria-current"?: boolean | "true" | "false" | "page" | "step" | "location" | "date" | "time" | undefined;
385
385
  "aria-describedby"?: string | undefined;
386
386
  "aria-details"?: string | undefined;
387
387
  "aria-disabled"?: (boolean | "true" | "false") | undefined;
@@ -390,7 +390,7 @@ export declare const Col: import("styled-components").IStyledComponent<"web", {
390
390
  "aria-expanded"?: (boolean | "true" | "false") | undefined;
391
391
  "aria-flowto"?: string | undefined;
392
392
  "aria-grabbed"?: (boolean | "true" | "false") | undefined;
393
- "aria-haspopup"?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
393
+ "aria-haspopup"?: boolean | "true" | "false" | "dialog" | "grid" | "listbox" | "menu" | "tree" | undefined;
394
394
  "aria-hidden"?: (boolean | "true" | "false") | undefined;
395
395
  "aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
396
396
  "aria-keyshortcuts"?: string | undefined;
@@ -407,7 +407,7 @@ export declare const Col: import("styled-components").IStyledComponent<"web", {
407
407
  "aria-posinset"?: number | undefined;
408
408
  "aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
409
409
  "aria-readonly"?: (boolean | "true" | "false") | undefined;
410
- "aria-relevant"?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
410
+ "aria-relevant"?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
411
411
  "aria-required"?: (boolean | "true" | "false") | undefined;
412
412
  "aria-roledescription"?: string | undefined;
413
413
  "aria-rowcount"?: number | undefined;
@@ -600,7 +600,7 @@ export declare const MD: import("styled-components").IStyledComponent<"web", {
600
600
  accessKey?: string | undefined;
601
601
  autoFocus?: boolean | undefined;
602
602
  className?: string | undefined;
603
- contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
603
+ contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
604
604
  contextMenu?: string | undefined;
605
605
  dir?: string | undefined;
606
606
  draggable?: (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?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
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;
@@ -651,7 +651,7 @@ export declare const MD: import("styled-components").IStyledComponent<"web", {
651
651
  "aria-colindex"?: number | undefined;
652
652
  "aria-colspan"?: number | undefined;
653
653
  "aria-controls"?: string | undefined;
654
- "aria-current"?: boolean | "time" | "step" | "true" | "false" | "page" | "location" | "date" | undefined;
654
+ "aria-current"?: boolean | "true" | "false" | "page" | "step" | "location" | "date" | "time" | undefined;
655
655
  "aria-describedby"?: string | undefined;
656
656
  "aria-details"?: string | undefined;
657
657
  "aria-disabled"?: (boolean | "true" | "false") | undefined;
@@ -660,7 +660,7 @@ export declare const MD: import("styled-components").IStyledComponent<"web", {
660
660
  "aria-expanded"?: (boolean | "true" | "false") | undefined;
661
661
  "aria-flowto"?: string | undefined;
662
662
  "aria-grabbed"?: (boolean | "true" | "false") | undefined;
663
- "aria-haspopup"?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
663
+ "aria-haspopup"?: boolean | "true" | "false" | "dialog" | "grid" | "listbox" | "menu" | "tree" | undefined;
664
664
  "aria-hidden"?: (boolean | "true" | "false") | undefined;
665
665
  "aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
666
666
  "aria-keyshortcuts"?: string | undefined;
@@ -677,7 +677,7 @@ export declare const MD: import("styled-components").IStyledComponent<"web", {
677
677
  "aria-posinset"?: number | undefined;
678
678
  "aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
679
679
  "aria-readonly"?: (boolean | "true" | "false") | undefined;
680
- "aria-relevant"?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
680
+ "aria-relevant"?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
681
681
  "aria-required"?: (boolean | "true" | "false") | undefined;
682
682
  "aria-roledescription"?: string | undefined;
683
683
  "aria-rowcount"?: number | undefined;
@@ -9,7 +9,6 @@ export type SuggestedUser = {
9
9
  };
10
10
  export interface ChatEditorArgs extends Partial<EditorOptions> {
11
11
  author: Author;
12
- messageBadFileFormat: string;
13
12
  placeholderOptions?: Partial<PlaceholderOptions>;
14
13
  hasFloatingMenu?: boolean;
15
14
  hasButtonsMenu?: boolean;
@@ -19,7 +18,7 @@ export interface ChatEditorArgs extends Partial<EditorOptions> {
19
18
  bold?: string;
20
19
  italic?: string;
21
20
  mention?: string;
22
- attachment?: string | React.ReactNode;
21
+ attachment?: React.ReactNode;
23
22
  };
24
23
  mention?: {
25
24
  noResults?: string;
@@ -38,10 +37,13 @@ export interface EditorHeaderArgs {
38
37
  title?: string;
39
38
  validation?: validationStatus;
40
39
  }
41
- export interface FileItem extends File {
42
- isLoadingMedia: boolean;
43
- isError?: boolean;
44
- internal_id: string;
40
+ export interface CommentMedia {
41
+ id: string;
42
+ type: string;
43
+ name?: string;
44
+ isLoadingMedia?: boolean;
45
+ error?: string;
46
+ url?: string;
45
47
  }
46
48
  export interface FloatingMenuArgs extends Partial<BubbleMenuProps> {
47
49
  }
@@ -1,15 +1,15 @@
1
1
  import { Editor } from "@tiptap/react";
2
2
  import React from "react";
3
- import { FileItem, SuggestedUser } from "../_types";
3
+ import { CommentMedia, SuggestedUser } from "../_types";
4
4
  export type ChatContextType = {
5
5
  triggerSave: () => void;
6
6
  editor?: Editor;
7
7
  setEditor: React.Dispatch<React.SetStateAction<Editor | undefined>>;
8
8
  addThumbnails: (props: {
9
- files: FileItem[];
9
+ files: (File & CommentMedia)[];
10
10
  }) => void;
11
11
  removeThumbnail: (index: number) => void;
12
- thumbnails: FileItem[];
12
+ thumbnails: CommentMedia[];
13
13
  mentionableUsers: (props: {
14
14
  query: string;
15
15
  }) => SuggestedUser[];
@@ -29,7 +29,7 @@ export interface Data {
29
29
  }
30
30
  export declare const ChatContextProvider: ({ onSave, onFileUpload, onDeleteThumbnail, setMentionableUsers, children, }: {
31
31
  onSave?: ((editor: Editor, mentions: SuggestedUser[]) => void) | undefined;
32
- onFileUpload?: ((files: FileItem[]) => Promise<Data>) | undefined;
32
+ onFileUpload?: ((files: (File & CommentMedia)[]) => Promise<Data>) | undefined;
33
33
  onDeleteThumbnail: (id: string) => void;
34
34
  children: React.ReactNode;
35
35
  setMentionableUsers: (props: {
@@ -0,0 +1,8 @@
1
+ export declare const acceptedMediaTypes: RegExp;
2
+ export declare function useMedia(): {
3
+ getMedia: (data: FileList) => (File & {
4
+ url: string;
5
+ isLoadingMedia: boolean;
6
+ id: string;
7
+ })[];
8
+ };
@@ -1,7 +1,6 @@
1
1
  import { PlaceholderOptions } from "@tiptap/extension-placeholder";
2
2
  import { Editor as TipTapEditor } from "@tiptap/react";
3
- import { ChatEditorArgs, FileItem, SuggestedUser } from "./_types";
4
- import { MediaType } from "./parts/comment";
3
+ import { ChatEditorArgs, CommentMedia, SuggestedUser } from "./_types";
5
4
  import { Data } from "./context/chatContext";
6
5
  interface EditorStoryArgs extends ChatEditorArgs {
7
6
  children?: any;
@@ -13,12 +12,12 @@ interface EditorStoryArgs extends ChatEditorArgs {
13
12
  };
14
13
  message: string;
15
14
  date: string;
16
- media?: MediaType[];
15
+ media?: CommentMedia[];
17
16
  }[];
18
17
  editorText?: string;
19
18
  background?: string;
20
19
  onSave: (editor: TipTapEditor, mentions: SuggestedUser[]) => void;
21
- onFileUpload?: (files: FileItem[]) => Promise<Data>;
20
+ onFileUpload?: (files: (File & CommentMedia)[]) => Promise<Data>;
22
21
  placeholderOptions?: Partial<PlaceholderOptions>;
23
22
  }
24
23
  export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, EditorStoryArgs>;
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { CommentMedia } from "../_types";
3
+ interface MediaLightBoxProps {
4
+ isOpen: boolean;
5
+ header: React.ReactNode;
6
+ onClose: () => void;
7
+ slideChange: (index: number) => void;
8
+ selectedImageIndex: number;
9
+ thumbnails: CommentMedia[];
10
+ videoRefs: React.MutableRefObject<Array<HTMLVideoElement | null>>;
11
+ details?: React.ReactNode;
12
+ }
13
+ declare const MediaLightBox: ({ header, onClose, slideChange, selectedImageIndex, thumbnails, videoRefs, isOpen, details }: MediaLightBoxProps) => import("react/jsx-runtime").JSX.Element | null;
14
+ export default MediaLightBox;
@@ -0,0 +1,11 @@
1
+ interface Props {
2
+ src?: string;
3
+ type: string;
4
+ clickThumbnail?: () => void;
5
+ isLoadingMedia?: boolean;
6
+ removeThumbnail?: () => void;
7
+ showX?: boolean;
8
+ error?: string;
9
+ }
10
+ declare const Thumbnail: ({ src, type, removeThumbnail, clickThumbnail, showX, isLoadingMedia, error, }: Props) => import("react/jsx-runtime").JSX.Element;
11
+ export default Thumbnail;
@@ -1,13 +1,5 @@
1
- export interface FileElement {
2
- fileName: string;
3
- fileType: string;
4
- errorCode?: "FILE_TOO_BIG" | "INVALID_FILE_EXTENSION" | "GENERIC_ERROR";
5
- previewUrl: string;
6
- internal_id: string;
7
- isLoadingMedia: boolean;
8
- }
9
1
  interface Props {
10
- openLightbox: (file: File, index: number) => void;
2
+ openLightbox: (index: number) => void;
11
3
  }
12
4
  declare const ThumbnailContainer: ({ openLightbox }: Props) => import("react/jsx-runtime").JSX.Element | null;
13
5
  export default ThumbnailContainer;
@@ -1,15 +1,10 @@
1
1
  import { PropsWithChildren } from "react";
2
- import { Author } from "../_types";
3
- export type MediaType = {
4
- url: string;
5
- id: number;
6
- type: "image" | "video";
7
- };
2
+ import { Author, CommentMedia } from "../_types";
8
3
  export declare const Comment: ({ author, message, children, date, media, header, }: PropsWithChildren<{
9
4
  author: Author;
10
5
  message: string;
11
6
  date: string;
12
- media?: MediaType[] | undefined;
7
+ media?: CommentMedia[] | undefined;
13
8
  header: {
14
9
  title: string;
15
10
  message?: string | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DropdownArgs, SelectArgs } from "./_types";
3
2
  import { MenuArgs } from "../menu/_types";
4
3
  interface IItem {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { EditorArgs } from "./_types";
3
2
  interface EditorStoryArgs extends EditorArgs {
4
3
  children?: any;
@@ -0,0 +1,17 @@
1
+ /// <reference types="react" />
2
+ declare const CreateObservationButton: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("../buttons/button/_types").ButtonArgs & import("react").RefAttributes<HTMLButtonElement>, {
3
+ position: {
4
+ x: number;
5
+ y: number;
6
+ };
7
+ }>> & import("react").ForwardRefExoticComponent<import("../buttons/button/_types").ButtonArgs & import("react").RefAttributes<HTMLButtonElement>> & {
8
+ EndIcon: {
9
+ (props: import("@zendeskgarden/react-buttons").IButtonEndIconProps): JSX.Element;
10
+ displayName: string;
11
+ };
12
+ StartIcon: {
13
+ (props: import("@zendeskgarden/react-buttons").IButtonEndIconProps): JSX.Element;
14
+ displayName: string;
15
+ };
16
+ };
17
+ export { CreateObservationButton };
@@ -1,4 +1,6 @@
1
1
  import { ISpanProps } from "@zendeskgarden/react-typography";
2
+ import { ReactNode } from "react";
3
+ import { IBookmark } from "../player/_types";
2
4
  export interface HighlightArgs {
3
5
  /**
4
6
  * Applies a font color. Use [PALETTE](/components/palette#palette) colors
@@ -13,18 +15,17 @@ export interface HighlightArgs {
13
15
  isMonospace?: boolean;
14
16
  /** Adjusts the font size. By default font size is medium */
15
17
  size?: "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | "xxxl";
16
- handleSelection?: (part: {
18
+ search?: string;
19
+ onSelectionButtonClick?: (part: {
17
20
  from: number;
18
21
  to: number;
19
22
  text: string;
20
23
  }) => void;
21
- search?: string;
24
+ i18n?: {
25
+ selectionButtonLabel: string;
26
+ };
22
27
  }
23
- export interface Observation {
24
- id: number;
25
- start: number;
26
- end: number;
27
- backgroundColor?: string;
28
+ export interface Observation extends Omit<IBookmark, "onClick"> {
28
29
  color?: string;
29
30
  }
30
31
  export interface WordProps extends ISpanProps {
@@ -33,6 +34,6 @@ export interface WordProps extends ISpanProps {
33
34
  currentTime?: number;
34
35
  observations?: Observation[];
35
36
  text: string;
36
- /** Adjusts the font size. By default font size is medium */
37
37
  size?: "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | "xxxl";
38
+ tooltipContent?: (observations: Observation[]) => ReactNode;
38
39
  }
@@ -0,0 +1,55 @@
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
+ sentiment: number;
45
+ }[];
46
+ };
47
+ }[];
48
+ }[];
49
+ };
50
+ };
51
+ export declare const DemoSentiment: {
52
+ role: string;
53
+ rate: number;
54
+ content: string;
55
+ };
@@ -0,0 +1,7 @@
1
+ export declare const getSentiment: (value: number) => {
2
+ color: string;
3
+ text: import("react/jsx-runtime").JSX.Element;
4
+ } | {
5
+ color: string;
6
+ text: string;
7
+ };
@@ -0,0 +1,5 @@
1
+ import { StoryArgs } from "../index.stories";
2
+ export declare const Transcript: (args: StoryArgs & {
3
+ currentTime: number;
4
+ offset: number;
5
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { StoryArgs } from "../index.stories";
2
+ export declare const TDiarization: (args: StoryArgs & {
3
+ currentTime: number;
4
+ offset: number;
5
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { StoryArgs } from "../index.stories";
2
+ export declare const TParagraph: (args: StoryArgs & {
3
+ currentTime: number;
4
+ offset: number;
5
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { StoryArgs } from "../index.stories";
2
+ export declare const TSentiment: (args: StoryArgs & {
3
+ currentTime: number;
4
+ offset: number;
5
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,18 +1,17 @@
1
- /// <reference types="react" />
2
- import { HighlightArgs } from "./_types";
3
- interface StoryArgs extends HighlightArgs {
4
- words: {
5
- start: number;
6
- end: number;
7
- word: string;
1
+ import { HighlightArgs, WordProps } from "./_types";
2
+ export interface StoryArgs extends HighlightArgs {
3
+ words: Array<WordProps & {
8
4
  speaker: number;
9
- }[];
5
+ }>;
10
6
  currentTime: number;
11
7
  includeSearch?: boolean;
12
8
  }
13
9
  export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, StoryArgs>;
14
- export declare const VideoSync: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, StoryArgs>;
10
+ export declare const WithSelectionButton: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, StoryArgs>;
11
+ export declare const WithTooltip: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, StoryArgs>;
15
12
  export declare const WithSearch: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, StoryArgs>;
13
+ export declare const VideoSync: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, StoryArgs>;
14
+ export declare const Demo: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, StoryArgs>;
16
15
  declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, HighlightArgs & {
17
16
  children?: import("react").ReactNode;
18
17
  }>;
@@ -1,4 +1,3 @@
1
- export declare const Searchable: ({ start, text, }: {
2
- start: number;
1
+ export declare const Searchable: ({ text, }: {
3
2
  text: string;
4
3
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,14 +1,16 @@
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;
5
5
  end?: number;
6
- enablePipOnScroll?: boolean;
6
+ pipMode?: "auto" | (() => boolean) | boolean;
7
+ onPipChange?: (isPip: boolean) => void;
7
8
  onCutHandler?: (time: number) => void;
8
9
  isCutting?: boolean;
9
10
  bookmarks?: IBookmark[];
10
11
  handleBookmarkUpdate?: (bookmark: IBookmark) => void;
11
12
  i18n?: PlayerI18n;
13
+ showControls?: boolean;
12
14
  }
13
15
  export interface PlayerI18n {
14
16
  beforeHighlight?: string;
@@ -20,9 +22,26 @@ export interface IBookmark {
20
22
  end: number;
21
23
  hue?: string;
22
24
  label?: string;
25
+ tooltipContent?: ReactNode;
26
+ isFocused?: boolean;
23
27
  onClick?: () => void;
28
+ tags?: VideoTag[];
24
29
  }
25
30
  export interface WrapperProps {
26
31
  isPlaying?: boolean;
27
32
  isLoaded?: boolean;
33
+ showControls?: boolean;
28
34
  }
35
+ type VideoTag = {
36
+ group: {
37
+ id: number;
38
+ name: string;
39
+ };
40
+ tag: {
41
+ id: number;
42
+ name: string;
43
+ style: string;
44
+ usageNumber: number;
45
+ };
46
+ };
47
+ export {};
@@ -0,0 +1,4 @@
1
+ import { PlayerArgs } from "../_types";
2
+ type PictureInPictureHook = (videoRef?: HTMLVideoElement | null, pipMode?: PlayerArgs["pipMode"], onPipChange?: PlayerArgs["onPipChange"]) => void;
3
+ export declare const usePictureInPicture: PictureInPictureHook;
4
+ export {};