@appquality/unguess-design-system 3.1.88-beta-attachments → 3.1.88

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 (28) hide show
  1. package/CHANGELOG.md +266 -0
  2. package/build/index.d.ts +1 -0
  3. package/build/index.js +976 -564
  4. package/build/stories/buttons/utils.d.ts +36 -36
  5. package/build/stories/chat/_types.d.ts +4 -2
  6. package/build/stories/chat/context/chatContext.d.ts +10 -5
  7. package/build/stories/chat/index.stories.d.ts +3 -2
  8. package/build/stories/chat/parts/ThumbnailContainer/DeleteThumbnailX.d.ts +1 -2
  9. package/build/stories/chat/parts/ThumbnailContainer/ImageThumbnail.d.ts +11 -0
  10. package/build/stories/chat/parts/ThumbnailContainer/VideoThumbnail.d.ts +11 -0
  11. package/build/stories/chat/parts/ThumbnailContainer/index.d.ts +2 -1
  12. package/build/stories/highlight/_types.d.ts +38 -0
  13. package/build/stories/highlight/highlightContext.d.ts +10 -0
  14. package/build/stories/highlight/index.d.ts +10 -0
  15. package/build/stories/highlight/index.stories.d.ts +18 -0
  16. package/build/stories/highlight/searchable.d.ts +4 -0
  17. package/build/stories/player/_types.d.ts +18 -0
  18. package/build/stories/player/index.stories.d.ts +1 -1
  19. package/build/stories/player/parts/bookmark.d.ts +2 -0
  20. package/build/stories/player/parts/controls.d.ts +7 -2
  21. package/build/stories/player/parts/controlsCenterGroup.d.ts +2 -1
  22. package/build/stories/player/parts/cutterButton.d.ts +6 -0
  23. package/build/stories/player/parts/progress.d.ts +11 -0
  24. package/build/stories/player/parts/progressContext.d.ts +16 -0
  25. package/build/stories/player/parts/timeLabel.d.ts +2 -2
  26. package/package.json +4 -2
  27. package/build/stories/chat/parts/ThumbnailContainer/Thumbnail.d.ts +0 -14
  28. package/yarn-error.log +0 -17994
@@ -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?: "center" | "start" | "end" | "baseline" | "stretch" | undefined;
12
+ alignItemsXs?: "center" | "start" | "end" | "baseline" | "stretch" | undefined;
13
+ alignItemsSm?: "center" | "start" | "end" | "baseline" | "stretch" | undefined;
14
+ alignItemsMd?: "center" | "start" | "end" | "baseline" | "stretch" | undefined;
15
+ alignItemsLg?: "center" | "start" | "end" | "baseline" | "stretch" | undefined;
16
+ alignItemsXl?: "center" | "start" | "end" | "baseline" | "stretch" | undefined;
17
+ justifyContent?: "center" | "start" | "end" | "between" | "around" | undefined;
18
+ justifyContentXs?: "center" | "start" | "end" | "between" | "around" | undefined;
19
+ justifyContentSm?: "center" | "start" | "end" | "between" | "around" | undefined;
20
+ justifyContentMd?: "center" | "start" | "end" | "between" | "around" | undefined;
21
+ justifyContentLg?: "center" | "start" | "end" | "between" | "around" | undefined;
22
+ justifyContentXl?: "center" | "start" | "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?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
76
+ inputMode?: "search" | "text" | "email" | "tel" | "url" | "none" | "numeric" | "decimal" | undefined;
77
77
  is?: string | undefined;
78
78
  "aria-activedescendant"?: string | undefined;
79
79
  "aria-atomic"?: (boolean | "true" | "false") | undefined;
@@ -84,11 +84,11 @@ 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 | "time" | "date" | "true" | "false" | "page" | "step" | "location" | undefined;
88
88
  "aria-describedby"?: string | undefined;
89
89
  "aria-details"?: string | undefined;
90
90
  "aria-disabled"?: (boolean | "true" | "false") | undefined;
91
- "aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
91
+ "aria-dropeffect"?: "link" | "copy" | "none" | "execute" | "move" | "popup" | undefined;
92
92
  "aria-errormessage"?: string | undefined;
93
93
  "aria-expanded"?: (boolean | "true" | "false") | undefined;
94
94
  "aria-flowto"?: 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?: "center" | "auto" | "start" | "end" | "baseline" | "stretch" | undefined;
303
+ alignSelfXs?: "center" | "auto" | "start" | "end" | "baseline" | "stretch" | undefined;
304
+ alignSelfSm?: "center" | "auto" | "start" | "end" | "baseline" | "stretch" | undefined;
305
+ alignSelfMd?: "center" | "auto" | "start" | "end" | "baseline" | "stretch" | undefined;
306
+ alignSelfLg?: "center" | "auto" | "start" | "end" | "baseline" | "stretch" | undefined;
307
+ alignSelfXl?: "center" | "auto" | "start" | "end" | "baseline" | "stretch" | undefined;
308
+ textAlign?: "center" | "start" | "end" | "justify" | undefined;
309
+ textAlignXs?: "center" | "start" | "end" | "justify" | undefined;
310
+ textAlignSm?: "center" | "start" | "end" | "justify" | undefined;
311
+ textAlignMd?: "center" | "start" | "end" | "justify" | undefined;
312
+ textAlignLg?: "center" | "start" | "end" | "justify" | undefined;
313
+ textAlignXl?: "center" | "start" | "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?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
373
+ inputMode?: "search" | "text" | "email" | "tel" | "url" | "none" | "numeric" | "decimal" | undefined;
374
374
  is?: string | undefined;
375
375
  "aria-activedescendant"?: string | undefined;
376
376
  "aria-atomic"?: (boolean | "true" | "false") | undefined;
@@ -381,11 +381,11 @@ 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 | "time" | "date" | "true" | "false" | "page" | "step" | "location" | undefined;
385
385
  "aria-describedby"?: string | undefined;
386
386
  "aria-details"?: string | undefined;
387
387
  "aria-disabled"?: (boolean | "true" | "false") | undefined;
388
- "aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
388
+ "aria-dropeffect"?: "link" | "copy" | "none" | "execute" | "move" | "popup" | undefined;
389
389
  "aria-errormessage"?: string | undefined;
390
390
  "aria-expanded"?: (boolean | "true" | "false") | undefined;
391
391
  "aria-flowto"?: 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;
@@ -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?: "search" | "text" | "email" | "tel" | "url" | "none" | "numeric" | "decimal" | undefined;
644
644
  is?: string | undefined;
645
645
  "aria-activedescendant"?: string | undefined;
646
646
  "aria-atomic"?: (boolean | "true" | "false") | undefined;
@@ -651,11 +651,11 @@ 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 | "time" | "date" | "true" | "false" | "page" | "step" | "location" | undefined;
655
655
  "aria-describedby"?: string | undefined;
656
656
  "aria-details"?: string | undefined;
657
657
  "aria-disabled"?: (boolean | "true" | "false") | undefined;
658
- "aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
658
+ "aria-dropeffect"?: "link" | "copy" | "none" | "execute" | "move" | "popup" | undefined;
659
659
  "aria-errormessage"?: string | undefined;
660
660
  "aria-expanded"?: (boolean | "true" | "false") | undefined;
661
661
  "aria-flowto"?: 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;
@@ -8,11 +8,12 @@ export type SuggestedUser = {
8
8
  email: string;
9
9
  };
10
10
  export interface ChatEditorArgs extends Partial<EditorOptions> {
11
+ author: Author;
12
+ messageBadFileFormat: string;
11
13
  placeholderOptions?: Partial<PlaceholderOptions>;
12
14
  hasFloatingMenu?: boolean;
13
15
  hasButtonsMenu?: boolean;
14
16
  bubbleOptions?: any;
15
- author: Author;
16
17
  i18n?: {
17
18
  menu?: {
18
19
  bold?: string;
@@ -38,8 +39,9 @@ export interface EditorHeaderArgs {
38
39
  validation?: validationStatus;
39
40
  }
40
41
  export interface FileItem extends File {
41
- isLoadingMedia?: boolean;
42
+ isLoadingMedia: boolean;
42
43
  isError?: boolean;
44
+ internal_id: string;
43
45
  }
44
46
  export interface FloatingMenuArgs extends Partial<BubbleMenuProps> {
45
47
  }
@@ -6,26 +6,31 @@ export type ChatContextType = {
6
6
  editor?: Editor;
7
7
  setEditor: React.Dispatch<React.SetStateAction<Editor | undefined>>;
8
8
  addThumbnails: (props: {
9
- files: (FileItem)[];
9
+ files: FileItem[];
10
10
  }) => void;
11
11
  removeThumbnail: (index: number) => void;
12
- thumbnails: (FileItem)[];
12
+ thumbnails: FileItem[];
13
13
  mentionableUsers: (props: {
14
14
  query: string;
15
15
  }) => SuggestedUser[];
16
16
  afterUploadCallback: (failed: string[]) => void;
17
+ clearInput: () => void;
18
+ onDeleteThumbnail: (id: string) => void;
17
19
  };
18
20
  export declare const ChatContext: React.Context<ChatContextType | null>;
19
21
  export interface Data {
20
- uploaded_ids?: number[];
22
+ uploaded_ids?: {
23
+ id: number;
24
+ }[];
21
25
  failed?: {
22
26
  name: string;
23
27
  errorCode: string;
24
28
  }[];
25
29
  }
26
- export declare const ChatContextProvider: ({ onSave, onFileUpload, setMentionableUsers, children, }: {
30
+ export declare const ChatContextProvider: ({ onSave, onFileUpload, onDeleteThumbnail, setMentionableUsers, children, }: {
27
31
  onSave?: ((editor: Editor, mentions: SuggestedUser[]) => void) | undefined;
28
- onFileUpload?: ((files: (FileItem)[]) => Promise<Data>) | undefined;
32
+ onFileUpload?: ((files: FileItem[]) => Promise<Data>) | undefined;
33
+ onDeleteThumbnail: (id: string) => void;
29
34
  children: React.ReactNode;
30
35
  setMentionableUsers: (props: {
31
36
  query: string;
@@ -1,6 +1,7 @@
1
+ /// <reference types="react" />
1
2
  import { PlaceholderOptions } from "@tiptap/extension-placeholder";
2
3
  import { Editor as TipTapEditor } from "@tiptap/react";
3
- import { ChatEditorArgs, SuggestedUser } from "./_types";
4
+ import { ChatEditorArgs, FileItem, SuggestedUser } from "./_types";
4
5
  import { MediaType } from "./parts/comment";
5
6
  import { Data } from "./context/chatContext";
6
7
  interface EditorStoryArgs extends ChatEditorArgs {
@@ -18,7 +19,7 @@ interface EditorStoryArgs extends ChatEditorArgs {
18
19
  editorText?: string;
19
20
  background?: string;
20
21
  onSave: (editor: TipTapEditor, mentions: SuggestedUser[]) => void;
21
- onFileUpload?: (files: File[]) => Promise<Data>;
22
+ onFileUpload?: (files: FileItem[]) => Promise<Data>;
22
23
  placeholderOptions?: Partial<PlaceholderOptions>;
23
24
  }
24
25
  export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, EditorStoryArgs>;
@@ -1,6 +1,5 @@
1
1
  interface Props {
2
- content: string;
3
2
  deleteThumbnail: (e: any) => void;
4
3
  }
5
- declare const DeleteThumbnailX: ({ content, deleteThumbnail }: Props) => import("react/jsx-runtime").JSX.Element;
4
+ declare const DeleteThumbnailX: ({ deleteThumbnail }: Props) => import("react/jsx-runtime").JSX.Element;
6
5
  export default DeleteThumbnailX;
@@ -0,0 +1,11 @@
1
+ interface Props {
2
+ src: string;
3
+ index?: number;
4
+ removeThumbnail?: (index: number) => void;
5
+ clickThumbnail: () => void;
6
+ showX?: boolean;
7
+ isLoadingMedia: boolean;
8
+ isError?: boolean;
9
+ }
10
+ declare const ImageThumbnail: ({ src, index, removeThumbnail, clickThumbnail, showX, isLoadingMedia, isError, }: Props) => import("react/jsx-runtime").JSX.Element;
11
+ export default ImageThumbnail;
@@ -0,0 +1,11 @@
1
+ interface Props {
2
+ src: string;
3
+ index?: number;
4
+ removeThumbnail?: (index: number) => void;
5
+ clickThumbnail: () => void;
6
+ showX?: boolean;
7
+ isLoadingMedia: boolean;
8
+ isError?: boolean;
9
+ }
10
+ declare const VideoThumbnail: ({ src, index, removeThumbnail, clickThumbnail, showX, isLoadingMedia, isError, }: Props) => import("react/jsx-runtime").JSX.Element;
11
+ export default VideoThumbnail;
@@ -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,38 @@
1
+ import { ISpanProps } from "@zendeskgarden/react-typography";
2
+ export interface HighlightArgs {
3
+ /**
4
+ * Applies a font color. Use [PALETTE](/components/palette#palette) colors
5
+ * when possible. Accepts all hex values.
6
+ */
7
+ hue?: string;
8
+ /** Updates the element's HTML tag */
9
+ tag?: any;
10
+ /** Applies bold font style. Font weight is inherited by default. */
11
+ isBold?: boolean;
12
+ /** Renders with monospace font */
13
+ isMonospace?: boolean;
14
+ /** Adjusts the font size. By default font size is medium */
15
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | "xxxl";
16
+ handleSelection?: (part: {
17
+ from: number;
18
+ to: number;
19
+ text: string;
20
+ }) => void;
21
+ search?: string;
22
+ }
23
+ export interface Observation {
24
+ id: number;
25
+ start: number;
26
+ end: number;
27
+ backgroundColor?: string;
28
+ color?: string;
29
+ }
30
+ export interface WordProps extends ISpanProps {
31
+ start: number;
32
+ end: number;
33
+ currentTime?: number;
34
+ observations?: Observation[];
35
+ text: string;
36
+ /** Adjusts the font size. By default font size is medium */
37
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | "xxxl";
38
+ }
@@ -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,18 @@
1
+ import { HighlightArgs } from "./_types";
2
+ interface StoryArgs extends HighlightArgs {
3
+ words: {
4
+ start: number;
5
+ end: number;
6
+ word: string;
7
+ speaker: number;
8
+ }[];
9
+ currentTime: number;
10
+ includeSearch?: boolean;
11
+ }
12
+ export declare const Default: 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 WithSearch: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, StoryArgs>;
15
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, HighlightArgs & {
16
+ children?: import("react").ReactNode;
17
+ }>;
18
+ export default _default;
@@ -0,0 +1,4 @@
1
+ export declare const Searchable: ({ start, text, }: {
2
+ start: number;
3
+ text: string;
4
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -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,9 @@
1
1
  /// <reference types="react" />
2
2
  import { PlayerArgs } from "./_types";
3
3
  interface PlayerStoryArgs extends PlayerArgs {
4
- url: string;
5
4
  }
6
5
  export declare const Basic: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, PlayerStoryArgs>;
7
6
  export declare const Streaming: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, PlayerStoryArgs>;
7
+ export declare const WithBookmarks: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, PlayerStoryArgs>;
8
8
  declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, PlayerArgs & import("react").RefAttributes<HTMLVideoElement>>;
9
9
  export default _default;
@@ -0,0 +1,2 @@
1
+ import { IBookmark } from "../_types";
2
+ export declare const Bookmark: (props: IBookmark) => import("react/jsx-runtime").JSX.Element | null;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { WrapperProps } from "../_types";
2
+ import { IBookmark, PlayerI18n, WrapperProps } from "../_types";
3
3
  export declare const ControlsWrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, WrapperProps>>;
4
4
  export declare const ControlsBar: import("styled-components").IStyledComponent<"web", {
5
5
  ref?: import("react").LegacyRef<HTMLDivElement> | undefined;
@@ -268,6 +268,11 @@ export declare const ControlsBar: import("styled-components").IStyledComponent<"
268
268
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
269
269
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
270
270
  }>;
271
- export declare const Controls: ({ container, }: {
271
+ export declare const Controls: ({ container, onCutHandler, bookmarks, isCutting, onBookMarkUpdated, i18n, }: {
272
272
  container: HTMLDivElement | null;
273
+ onCutHandler?: ((time: number) => void) | undefined;
274
+ bookmarks?: IBookmark[] | undefined;
275
+ isCutting?: boolean | undefined;
276
+ onBookMarkUpdated?: ((bookmark: IBookmark) => void) | undefined;
277
+ i18n?: PlayerI18n | undefined;
273
278
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1 +1,2 @@
1
- export declare const ControlsGroupCenter: () => import("react/jsx-runtime").JSX.Element;
1
+ import { HTMLAttributes } from "react";
2
+ export declare const ControlsGroupCenter: (props: HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { PlayerI18n } from "../_types";
2
+ export declare const Cutter: ({ onCutHandler, isCutting, i18n, }: {
3
+ onCutHandler?: ((time: number) => void) | undefined;
4
+ isCutting?: boolean | undefined;
5
+ i18n?: PlayerI18n | undefined;
6
+ }) => import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ interface ProgressProps {
3
+ /**
4
+ * The current progress of the player
5
+ */
6
+ progress: number;
7
+ handleSkipAhead: (pageX: number) => void;
8
+ duration: number;
9
+ }
10
+ export declare const ProgressBar: import("react").ForwardRefExoticComponent<ProgressProps & import("react").RefAttributes<HTMLDivElement>>;
11
+ export {};
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ import { IBookmark } from "../_types";
3
+ export type ProgressContextType = {
4
+ reset: () => void;
5
+ isGrabbing: boolean;
6
+ setIsGrabbing: React.Dispatch<React.SetStateAction<boolean>>;
7
+ fromEnd: boolean;
8
+ setFromEnd: React.Dispatch<React.SetStateAction<boolean>>;
9
+ activeBookmark?: IBookmark;
10
+ setactiveBookmark: React.Dispatch<React.SetStateAction<IBookmark | undefined>>;
11
+ };
12
+ export declare const ProgressContext: React.Context<ProgressContextType | null>;
13
+ export declare const ProgressContextProvider: ({ children, }: {
14
+ children: React.ReactNode;
15
+ }) => import("react/jsx-runtime").JSX.Element;
16
+ export declare const useProgressContext: () => ProgressContextType;
@@ -1,4 +1,4 @@
1
1
  export declare const TimeLabel: ({ current, duration, }: {
2
- current: string;
3
- duration: string;
2
+ current: number;
3
+ duration: number;
4
4
  }) => import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appquality/unguess-design-system",
3
- "version": "3.1.88-beta-attachments",
3
+ "version": "3.1.88",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -68,7 +68,8 @@
68
68
  "react-slick": "^0.29.0",
69
69
  "react-window": "^1.8.6",
70
70
  "tippy.js": "^6.3.7",
71
- "ua-parser-js": "^1.0.2"
71
+ "ua-parser-js": "^1.0.2",
72
+ "uuid": "^9.0.1"
72
73
  },
73
74
  "devDependencies": {
74
75
  "@babel/preset-env": "^7.21.5",
@@ -92,6 +93,7 @@
92
93
  "@types/react-window": "^1.8.5",
93
94
  "@types/styled-components": "^5.1.23",
94
95
  "@types/ua-parser-js": "^0.7.36",
96
+ "@types/uuid": "^9.0.8",
95
97
  "@zendeskgarden/react-dropdowns": "^8.49.0",
96
98
  "@zendeskgarden/react-forms": "^8.49.0",
97
99
  "@zendeskgarden/react-theming": "^8.48.2",
@@ -1,14 +0,0 @@
1
- interface Props {
2
- src: string;
3
- label: string;
4
- index?: number;
5
- removeThumbnail?: (index: number) => void;
6
- clickThumbnail: () => void;
7
- showX?: boolean;
8
- showLabel?: boolean;
9
- mediaType: string;
10
- isLoadingMedia: boolean;
11
- isError?: boolean;
12
- }
13
- declare const Thumbnail: ({ clickThumbnail, src, label, index, removeThumbnail, showX, showLabel, mediaType, isLoadingMedia, isError, }: Props) => import("react/jsx-runtime").JSX.Element;
14
- export default Thumbnail;