@appquality/unguess-design-system 3.1.76 → 3.1.78-alpha-attachment
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 -124
- package/build/index.js +2420 -2141
- package/build/stories/chat/_types.d.ts +1 -0
- package/build/stories/chat/index.stories.d.ts +1 -0
- package/build/stories/chat/parts/ThumbnailContainer/DeleteThumbnailX.d.ts +6 -0
- package/build/stories/chat/parts/ThumbnailContainer/Thumbnail.d.ts +12 -0
- package/build/stories/chat/parts/ThumbnailContainer/index.d.ts +13 -0
- package/build/stories/chat/parts/bar.d.ts +8 -1
- package/build/stories/chat/parts/comment.d.ts +2 -1
- package/build/stories/chat/parts/commentBox.d.ts +7 -0
- package/build/stories/chat/parts/extensions.d.ts +1 -1
- package/package.json +3 -1
- package/yarn-error.log +0 -13958
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
}
|
|
11
|
+
declare const Thumbnail: ({ clickThumbnail, src, label, index, removeThumbnail, showX, showLabel, mediaType, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default Thumbnail;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
mediaFiles: File[];
|
|
3
|
+
openLightbox: (file: File, index: number) => void;
|
|
4
|
+
updateThumbnails: (payload: {
|
|
5
|
+
type: string;
|
|
6
|
+
payload: {
|
|
7
|
+
file: File[];
|
|
8
|
+
index?: number;
|
|
9
|
+
};
|
|
10
|
+
}) => void;
|
|
11
|
+
}
|
|
12
|
+
declare const ThumbnailContainer: ({ mediaFiles, openLightbox, updateThumbnails, }: Props) => import("react/jsx-runtime").JSX.Element | null;
|
|
13
|
+
export default ThumbnailContainer;
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { ChatEditorArgs } from "../_types";
|
|
2
2
|
import { Editor } from "@tiptap/react";
|
|
3
|
-
declare const CommentBar: ({ editor, i18n, }: Partial<ChatEditorArgs> & {
|
|
3
|
+
declare const CommentBar: ({ editor, i18n, addFilesToThumbnail, }: Partial<ChatEditorArgs> & {
|
|
4
|
+
addFilesToThumbnail: (payload: {
|
|
5
|
+
type: string;
|
|
6
|
+
payload: {
|
|
7
|
+
file: File[];
|
|
8
|
+
index?: number;
|
|
9
|
+
};
|
|
10
|
+
}) => void;
|
|
4
11
|
editor?: Editor | undefined;
|
|
5
12
|
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
6
13
|
export { CommentBar };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { PropsWithChildren } from "react";
|
|
2
2
|
import { Author } from "../_types";
|
|
3
|
-
export declare const Comment: ({ author, message, children, date, }: PropsWithChildren<{
|
|
3
|
+
export declare const Comment: ({ author, message, children, date, media, }: PropsWithChildren<{
|
|
4
4
|
author: Author;
|
|
5
5
|
message: string;
|
|
6
6
|
date: string;
|
|
7
|
+
media?: File[] | undefined;
|
|
7
8
|
}>) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { ChatEditorArgs } from "../_types";
|
|
2
2
|
import { PropsWithChildren } from "react";
|
|
3
|
+
export declare function thumbnailReducer(state: File[], action: {
|
|
4
|
+
type: string;
|
|
5
|
+
payload?: {
|
|
6
|
+
file: File[];
|
|
7
|
+
index?: number;
|
|
8
|
+
};
|
|
9
|
+
}): File[];
|
|
3
10
|
/**
|
|
4
11
|
* CommentBox is a wrapper around Editor component
|
|
5
12
|
* <br>
|
|
@@ -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.78-alpha-attachment",
|
|
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",
|