@appquality/unguess-design-system 3.1.85 → 3.1.86-player-ref
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 +0 -75
- package/build/index.js +2975 -2524
- 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 +9 -1
- package/build/stories/chat/context/chatContext.d.ts +21 -2
- package/build/stories/chat/index.stories.d.ts +5 -2
- package/build/stories/chat/parts/ThumbnailContainer/DeleteThumbnailX.d.ts +5 -0
- package/build/stories/chat/parts/ThumbnailContainer/ImageThumbnail.d.ts +11 -0
- package/build/stories/chat/parts/ThumbnailContainer/VideoThumbnail.d.ts +11 -0
- package/build/stories/chat/parts/ThumbnailContainer/index.d.ts +13 -0
- package/build/stories/chat/parts/comment.d.ts +11 -1
- package/build/stories/chat/parts/extensions.d.ts +1 -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/index.stories.d.ts +0 -1
- package/build/stories/player/index.stories.d.ts +0 -1
- package/package.json +6 -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;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { PlaceholderOptions } from "@tiptap/extension-placeholder";
|
|
2
3
|
import { BubbleMenuProps, EditorOptions } from "@tiptap/react";
|
|
3
4
|
type validationStatus = "success" | "warning" | "error";
|
|
@@ -7,16 +8,18 @@ export type SuggestedUser = {
|
|
|
7
8
|
email: string;
|
|
8
9
|
};
|
|
9
10
|
export interface ChatEditorArgs extends Partial<EditorOptions> {
|
|
11
|
+
author: Author;
|
|
12
|
+
messageBadFileFormat: string;
|
|
10
13
|
placeholderOptions?: Partial<PlaceholderOptions>;
|
|
11
14
|
hasFloatingMenu?: boolean;
|
|
12
15
|
hasButtonsMenu?: boolean;
|
|
13
16
|
bubbleOptions?: any;
|
|
14
|
-
author: Author;
|
|
15
17
|
i18n?: {
|
|
16
18
|
menu?: {
|
|
17
19
|
bold?: string;
|
|
18
20
|
italic?: string;
|
|
19
21
|
mention?: string;
|
|
22
|
+
attachment?: string | React.ReactNode;
|
|
20
23
|
};
|
|
21
24
|
mention?: {
|
|
22
25
|
noResults?: string;
|
|
@@ -35,6 +38,11 @@ export interface EditorHeaderArgs {
|
|
|
35
38
|
title?: string;
|
|
36
39
|
validation?: validationStatus;
|
|
37
40
|
}
|
|
41
|
+
export interface FileItem extends File {
|
|
42
|
+
isLoadingMedia: boolean;
|
|
43
|
+
isError?: boolean;
|
|
44
|
+
internal_id: string;
|
|
45
|
+
}
|
|
38
46
|
export interface FloatingMenuArgs extends Partial<BubbleMenuProps> {
|
|
39
47
|
}
|
|
40
48
|
export {};
|
|
@@ -1,17 +1,36 @@
|
|
|
1
1
|
import { Editor } from "@tiptap/react";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { SuggestedUser } from "../_types";
|
|
3
|
+
import { FileItem, 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
|
+
addThumbnails: (props: {
|
|
9
|
+
files: FileItem[];
|
|
10
|
+
}) => void;
|
|
11
|
+
removeThumbnail: (index: number) => void;
|
|
12
|
+
thumbnails: FileItem[];
|
|
8
13
|
mentionableUsers: (props: {
|
|
9
14
|
query: string;
|
|
10
15
|
}) => SuggestedUser[];
|
|
16
|
+
afterUploadCallback: (failed: string[]) => void;
|
|
17
|
+
clearInput: () => void;
|
|
18
|
+
onDeleteThumbnail: (id: string) => void;
|
|
11
19
|
};
|
|
12
20
|
export declare const ChatContext: React.Context<ChatContextType | null>;
|
|
13
|
-
export
|
|
21
|
+
export interface Data {
|
|
22
|
+
uploaded_ids?: {
|
|
23
|
+
id: number;
|
|
24
|
+
}[];
|
|
25
|
+
failed?: {
|
|
26
|
+
name: string;
|
|
27
|
+
errorCode: string;
|
|
28
|
+
}[];
|
|
29
|
+
}
|
|
30
|
+
export declare const ChatContextProvider: ({ onSave, onFileUpload, onDeleteThumbnail, setMentionableUsers, children, }: {
|
|
14
31
|
onSave?: ((editor: Editor, mentions: SuggestedUser[]) => void) | undefined;
|
|
32
|
+
onFileUpload?: ((files: FileItem[]) => Promise<Data>) | undefined;
|
|
33
|
+
onDeleteThumbnail: (id: string) => void;
|
|
15
34
|
children: React.ReactNode;
|
|
16
35
|
setMentionableUsers: (props: {
|
|
17
36
|
query: string;
|
|
@@ -1,7 +1,8 @@
|
|
|
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";
|
|
4
|
+
import { MediaType } from "./parts/comment";
|
|
5
|
+
import { Data } from "./context/chatContext";
|
|
5
6
|
interface EditorStoryArgs extends ChatEditorArgs {
|
|
6
7
|
children?: any;
|
|
7
8
|
comments?: {
|
|
@@ -12,10 +13,12 @@ interface EditorStoryArgs extends ChatEditorArgs {
|
|
|
12
13
|
};
|
|
13
14
|
message: string;
|
|
14
15
|
date: string;
|
|
16
|
+
media?: MediaType[];
|
|
15
17
|
}[];
|
|
16
18
|
editorText?: string;
|
|
17
19
|
background?: string;
|
|
18
20
|
onSave: (editor: TipTapEditor, mentions: SuggestedUser[]) => void;
|
|
21
|
+
onFileUpload?: (files: FileItem[]) => Promise<Data>;
|
|
19
22
|
placeholderOptions?: Partial<PlaceholderOptions>;
|
|
20
23
|
}
|
|
21
24
|
export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, EditorStoryArgs>;
|
|
@@ -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;
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
interface Props {
|
|
10
|
+
openLightbox: (file: File, index: number) => void;
|
|
11
|
+
}
|
|
12
|
+
declare const ThumbnailContainer: ({ openLightbox }: Props) => import("react/jsx-runtime").JSX.Element | null;
|
|
13
|
+
export default ThumbnailContainer;
|
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
import { PropsWithChildren } from "react";
|
|
2
2
|
import { Author } from "../_types";
|
|
3
|
-
export
|
|
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<{
|
|
4
9
|
author: Author;
|
|
5
10
|
message: string;
|
|
6
11
|
date: string;
|
|
12
|
+
media?: MediaType[] | undefined;
|
|
13
|
+
header: {
|
|
14
|
+
title: string;
|
|
15
|
+
message?: string | undefined;
|
|
16
|
+
};
|
|
7
17
|
}>) => 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").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").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>)[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appquality/unguess-design-system",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.86-player-ref",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -37,6 +37,8 @@
|
|
|
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",
|
|
40
42
|
"@tiptap/extension-link": "2.1.16",
|
|
41
43
|
"@tiptap/extension-mention": "2.1.16",
|
|
42
44
|
"@tiptap/extension-placeholder": "2.1.16",
|
|
@@ -66,7 +68,8 @@
|
|
|
66
68
|
"react-slick": "^0.29.0",
|
|
67
69
|
"react-window": "^1.8.6",
|
|
68
70
|
"tippy.js": "^6.3.7",
|
|
69
|
-
"ua-parser-js": "^1.0.2"
|
|
71
|
+
"ua-parser-js": "^1.0.2",
|
|
72
|
+
"uuid": "^9.0.1"
|
|
70
73
|
},
|
|
71
74
|
"devDependencies": {
|
|
72
75
|
"@babel/preset-env": "^7.21.5",
|
|
@@ -90,6 +93,7 @@
|
|
|
90
93
|
"@types/react-window": "^1.8.5",
|
|
91
94
|
"@types/styled-components": "^5.1.23",
|
|
92
95
|
"@types/ua-parser-js": "^0.7.36",
|
|
96
|
+
"@types/uuid": "^9.0.8",
|
|
93
97
|
"@zendeskgarden/react-dropdowns": "^8.49.0",
|
|
94
98
|
"@zendeskgarden/react-forms": "^8.49.0",
|
|
95
99
|
"@zendeskgarden/react-theming": "^8.48.2",
|