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

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 (31) hide show
  1. package/CHANGELOG.md +211 -0
  2. package/build/index.d.ts +1 -0
  3. package/build/index.js +2505 -2516
  4. package/build/stories/buttons/button/index.stories.d.ts +1 -0
  5. package/build/stories/buttons/utils.d.ts +27 -27
  6. package/build/stories/chat/_types.d.ts +0 -3
  7. package/build/stories/chat/context/chatContext.d.ts +1 -16
  8. package/build/stories/chat/index.stories.d.ts +1 -3
  9. package/build/stories/chat/parts/comment.d.ts +1 -11
  10. package/build/stories/chat/parts/extensions.d.ts +1 -1
  11. package/build/stories/dropdowns/select/index.stories.d.ts +1 -0
  12. package/build/stories/editor/index.stories.d.ts +1 -0
  13. package/build/stories/highlight/_types.d.ts +38 -0
  14. package/build/stories/highlight/highlightContext.d.ts +10 -0
  15. package/build/stories/highlight/index.d.ts +10 -0
  16. package/build/stories/highlight/index.stories.d.ts +19 -0
  17. package/build/stories/highlight/searchable.d.ts +4 -0
  18. package/build/stories/player/_types.d.ts +18 -0
  19. package/build/stories/player/index.stories.d.ts +1 -1
  20. package/build/stories/player/parts/bookmark.d.ts +2 -0
  21. package/build/stories/player/parts/controls.d.ts +7 -2
  22. package/build/stories/player/parts/controlsCenterGroup.d.ts +2 -1
  23. package/build/stories/player/parts/cutterButton.d.ts +6 -0
  24. package/build/stories/player/parts/progress.d.ts +11 -0
  25. package/build/stories/player/parts/progressContext.d.ts +16 -0
  26. package/build/stories/player/parts/timeLabel.d.ts +2 -2
  27. package/package.json +1 -3
  28. package/build/stories/chat/parts/ThumbnailContainer/DeleteThumbnailX.d.ts +0 -6
  29. package/build/stories/chat/parts/ThumbnailContainer/Thumbnail.d.ts +0 -13
  30. package/build/stories/chat/parts/ThumbnailContainer/index.d.ts +0 -12
  31. package/yarn-error.log +0 -17994
@@ -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" | "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;
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?: "decimal" | "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | undefined;
76
+ inputMode?: "none" | "search" | "text" | "tel" | "url" | "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" | "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;
302
+ alignSelf?: "center" | "start" | "end" | "baseline" | "stretch" | "auto" | undefined;
303
+ alignSelfXs?: "center" | "start" | "end" | "baseline" | "stretch" | "auto" | undefined;
304
+ alignSelfSm?: "center" | "start" | "end" | "baseline" | "stretch" | "auto" | undefined;
305
+ alignSelfMd?: "center" | "start" | "end" | "baseline" | "stretch" | "auto" | undefined;
306
+ alignSelfLg?: "center" | "start" | "end" | "baseline" | "stretch" | "auto" | undefined;
307
+ alignSelfXl?: "center" | "start" | "end" | "baseline" | "stretch" | "auto" | 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?: "decimal" | "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | undefined;
373
+ inputMode?: "none" | "search" | "text" | "tel" | "url" | "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?: "decimal" | "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | undefined;
643
+ inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
644
644
  is?: string | undefined;
645
645
  "aria-activedescendant"?: string | undefined;
646
646
  "aria-atomic"?: (boolean | "true" | "false") | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PlaceholderOptions } from "@tiptap/extension-placeholder";
3
2
  import { BubbleMenuProps, EditorOptions } from "@tiptap/react";
4
3
  type validationStatus = "success" | "warning" | "error";
@@ -10,7 +9,6 @@ export type SuggestedUser = {
10
9
  export interface ChatEditorArgs extends Partial<EditorOptions> {
11
10
  placeholderOptions?: Partial<PlaceholderOptions>;
12
11
  hasFloatingMenu?: boolean;
13
- isNewMedia: boolean;
14
12
  hasButtonsMenu?: boolean;
15
13
  bubbleOptions?: any;
16
14
  author: Author;
@@ -19,7 +17,6 @@ export interface ChatEditorArgs extends Partial<EditorOptions> {
19
17
  bold?: string;
20
18
  italic?: string;
21
19
  mention?: string;
22
- attachment?: string | React.ReactNode;
23
20
  };
24
21
  mention?: {
25
22
  noResults?: string;
@@ -5,28 +5,13 @@ export type ChatContextType = {
5
5
  triggerSave: () => void;
6
6
  editor?: Editor;
7
7
  setEditor: React.Dispatch<React.SetStateAction<Editor | undefined>>;
8
- addThumbnails: (props: {
9
- files: (File & {
10
- isLoadingMedia: boolean;
11
- })[];
12
- }) => void;
13
- removeThumbnail: (index: number) => void;
14
- thumbnails: (File & {
15
- isLoadingMedia: boolean;
16
- })[];
17
8
  mentionableUsers: (props: {
18
9
  query: string;
19
10
  }) => SuggestedUser[];
20
- setMediaStatus: (files: (File & {
21
- isLoadingMedia: boolean;
22
- })[], index: number) => void;
23
11
  };
24
12
  export declare const ChatContext: React.Context<ChatContextType | null>;
25
- export declare const ChatContextProvider: ({ onSave, onFileUpload, setMentionableUsers, children, }: {
13
+ export declare const ChatContextProvider: ({ onSave, setMentionableUsers, children, }: {
26
14
  onSave?: ((editor: Editor, mentions: SuggestedUser[]) => void) | undefined;
27
- onFileUpload?: ((files: (File & {
28
- isLoadingMedia: boolean;
29
- })[]) => Promise<void>) | undefined;
30
15
  children: React.ReactNode;
31
16
  setMentionableUsers: (props: {
32
17
  query: string;
@@ -1,7 +1,7 @@
1
+ /// <reference types="react" />
1
2
  import { PlaceholderOptions } from "@tiptap/extension-placeholder";
2
3
  import { Editor as TipTapEditor } from "@tiptap/react";
3
4
  import { ChatEditorArgs, SuggestedUser } from "./_types";
4
- import { MediaType } from "./parts/comment";
5
5
  interface EditorStoryArgs extends ChatEditorArgs {
6
6
  children?: any;
7
7
  comments?: {
@@ -12,12 +12,10 @@ interface EditorStoryArgs extends ChatEditorArgs {
12
12
  };
13
13
  message: string;
14
14
  date: string;
15
- media?: MediaType[];
16
15
  }[];
17
16
  editorText?: string;
18
17
  background?: string;
19
18
  onSave: (editor: TipTapEditor, mentions: SuggestedUser[]) => void;
20
- onFileUpload?: (files: File[]) => Promise<void>;
21
19
  placeholderOptions?: Partial<PlaceholderOptions>;
22
20
  }
23
21
  export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, EditorStoryArgs>;
@@ -1,17 +1,7 @@
1
1
  import { PropsWithChildren } from "react";
2
2
  import { Author } from "../_types";
3
- export type MediaType = {
4
- url: string;
5
- id: number;
6
- type: "image" | "video";
7
- };
8
- export declare const Comment: ({ author, message, children, date, media, header, }: PropsWithChildren<{
3
+ export declare const Comment: ({ author, message, children, date, }: PropsWithChildren<{
9
4
  author: Author;
10
5
  message: string;
11
6
  date: string;
12
- media?: MediaType[] | undefined;
13
- header: {
14
- title: string;
15
- message?: string | undefined;
16
- };
17
7
  }>) => import("react/jsx-runtime").JSX.Element | null;
@@ -5,4 +5,4 @@ export declare const editorExtensions: ({ placeholderOptions, mentionableUsers,
5
5
  query: string;
6
6
  }) => SuggestedUser[];
7
7
  placeholderOptions?: Partial<PlaceholderOptions> | undefined;
8
- }) => (import("@tiptap/react").Extension<import("@tiptap/extension-typography").TypographyOptions, any> | import("@tiptap/react").Mark<import("@tiptap/extension-link").LinkOptions, any> | import("@tiptap/react").Extension<import("@tiptap/starter-kit").StarterKitOptions, any> | import("@tiptap/react").Node<import("@tiptap/extension-image").ImageOptions, any> | import("@tiptap/react").Extension<import("@tiptap/extension-dropcursor").DropcursorOptions, any> | import("@tiptap/react").Extension<PlaceholderOptions, any> | import("@tiptap/react").Extension<import("@tiptap/extension-character-count").CharacterCountOptions, import("@tiptap/extension-character-count").CharacterCountStorage> | import("@tiptap/react").Node<import("@tiptap/extension-mention").MentionOptions, any>)[];
8
+ }) => (import("@tiptap/react").Extension<import("@tiptap/extension-typography").TypographyOptions, any> | import("@tiptap/react").Mark<import("@tiptap/extension-link").LinkOptions, any> | import("@tiptap/react").Extension<import("@tiptap/starter-kit").StarterKitOptions, any> | import("@tiptap/react").Extension<PlaceholderOptions, any> | import("@tiptap/react").Extension<import("@tiptap/extension-character-count").CharacterCountOptions, import("@tiptap/extension-character-count").CharacterCountStorage> | import("@tiptap/react").Node<import("@tiptap/extension-mention").MentionOptions, any>)[];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DropdownArgs, SelectArgs } from "./_types";
2
3
  import { MenuArgs } from "../menu/_types";
3
4
  interface IItem {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { EditorArgs } from "./_types";
2
3
  interface EditorStoryArgs extends EditorArgs {
3
4
  children?: any;
@@ -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,19 @@
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;
8
+ speaker: number;
9
+ }[];
10
+ currentTime: number;
11
+ includeSearch?: boolean;
12
+ }
13
+ 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>;
15
+ export declare const WithSearch: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, StoryArgs>;
16
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, HighlightArgs & {
17
+ children?: import("react").ReactNode;
18
+ }>;
19
+ 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.85-beta-attachments",
3
+ "version": "3.1.85",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -37,8 +37,6 @@
37
37
  "@nivo/waffle": "^0.80.0",
38
38
  "@tiptap/extension-bubble-menu": "2.1.16",
39
39
  "@tiptap/extension-character-count": "2.1.16",
40
- "@tiptap/extension-dropcursor": "^2.2.4",
41
- "@tiptap/extension-image": "^2.2.4",
42
40
  "@tiptap/extension-link": "2.1.16",
43
41
  "@tiptap/extension-mention": "2.1.16",
44
42
  "@tiptap/extension-placeholder": "2.1.16",
@@ -1,6 +0,0 @@
1
- interface Props {
2
- content: string;
3
- deleteThumbnail: (e: any) => void;
4
- }
5
- declare const DeleteThumbnailX: ({ content, deleteThumbnail }: Props) => import("react/jsx-runtime").JSX.Element;
6
- export default DeleteThumbnailX;
@@ -1,13 +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
- }
12
- declare const Thumbnail: ({ clickThumbnail, src, label, index, removeThumbnail, showX, showLabel, mediaType, isLoadingMedia, }: Props) => import("react/jsx-runtime").JSX.Element;
13
- export default Thumbnail;
@@ -1,12 +0,0 @@
1
- export interface FileElement {
2
- fileName: string;
3
- fileType: string;
4
- status: "success" | "failed" | "uploading";
5
- errorCode?: "FILE_TOO_BIG" | "INVALID_FILE_EXTENSION" | "GENERIC_ERROR";
6
- previewUrl: string;
7
- }
8
- interface Props {
9
- openLightbox: (file: File, index: number) => void;
10
- }
11
- declare const ThumbnailContainer: ({ openLightbox }: Props) => import("react/jsx-runtime").JSX.Element | null;
12
- export default ThumbnailContainer;