@appquality/unguess-design-system 3.1.87-beta-attachments → 3.1.88-beta-attachments
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/build/index.js +17 -18
- package/build/stories/buttons/button/index.stories.d.ts +1 -0
- package/build/stories/buttons/utils.d.ts +39 -39
- package/build/stories/chat/_types.d.ts +4 -0
- package/build/stories/chat/context/chatContext.d.ts +4 -10
- package/build/stories/chat/parts/ThumbnailContainer/Thumbnail.d.ts +2 -1
- package/build/stories/dropdowns/select/index.stories.d.ts +1 -0
- package/build/stories/editor/index.stories.d.ts +1 -0
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -2358,20 +2358,20 @@ const ChatContextProvider = ({ onSave, onFileUpload, setMentionableUsers, childr
|
|
|
2358
2358
|
onFileUpload(files).then((data) => {
|
|
2359
2359
|
var _a;
|
|
2360
2360
|
const failed = (_a = data.failed) === null || _a === void 0 ? void 0 : _a.map(f => f.name);
|
|
2361
|
-
setThumbnails(
|
|
2362
|
-
file
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2361
|
+
setThumbnails((prev) => {
|
|
2362
|
+
return prev.map((file) => {
|
|
2363
|
+
file.isLoadingMedia = false;
|
|
2364
|
+
if ((failed === null || failed === void 0 ? void 0 : failed.length) && failed.includes(file.name)) {
|
|
2365
|
+
file.isError = true;
|
|
2366
|
+
}
|
|
2367
|
+
else {
|
|
2368
|
+
file.isError = false;
|
|
2369
|
+
}
|
|
2370
|
+
return file;
|
|
2371
|
+
});
|
|
2372
|
+
});
|
|
2366
2373
|
});
|
|
2367
2374
|
}
|
|
2368
|
-
/* const media = files.map((file) => ({
|
|
2369
|
-
...file,
|
|
2370
|
-
isLoadingMedia: false,
|
|
2371
|
-
}));
|
|
2372
|
-
media[0].isLoadingMedia = false;*/
|
|
2373
|
-
//setIsMediaUploading(true);
|
|
2374
|
-
//setIsMediaUploading(false);
|
|
2375
2375
|
},
|
|
2376
2376
|
removeThumbnail: (index) => setThumbnails(thumbnails.filter((_, i) => i !== index)),
|
|
2377
2377
|
triggerSave: () => {
|
|
@@ -2389,11 +2389,8 @@ const ChatContextProvider = ({ onSave, onFileUpload, setMentionableUsers, childr
|
|
|
2389
2389
|
setMentionableUsers,
|
|
2390
2390
|
thumbnails,
|
|
2391
2391
|
setThumbnails,
|
|
2392
|
-
onFileUpload
|
|
2393
|
-
//setIsMediaUploading,
|
|
2394
|
-
//isMediaUploading,
|
|
2392
|
+
onFileUpload
|
|
2395
2393
|
]);
|
|
2396
|
-
console.log("thumbnails: ", thumbnails);
|
|
2397
2394
|
return (jsxRuntime.jsx(ChatContext.Provider, Object.assign({ value: chatContextValue }, { children: children })));
|
|
2398
2395
|
};
|
|
2399
2396
|
const useChatContext = () => {
|
|
@@ -3336,14 +3333,16 @@ const StyledThumbnail = styled__default["default"].div `
|
|
|
3336
3333
|
font-weight: 100;
|
|
3337
3334
|
}
|
|
3338
3335
|
`;
|
|
3339
|
-
const Thumbnail = ({ clickThumbnail, src, label, index = 0, removeThumbnail, showX = true, showLabel = false, mediaType, isLoadingMedia = false, }) => {
|
|
3336
|
+
const Thumbnail = ({ clickThumbnail, src, label, index = 0, removeThumbnail, showX = true, showLabel = false, mediaType, isLoadingMedia = false, isError = false, }) => {
|
|
3340
3337
|
//const { isMediaUploading, setIsMediaUploading } = useChatContext();
|
|
3341
3338
|
const handleCancel = (e) => {
|
|
3342
3339
|
e.stopPropagation();
|
|
3343
3340
|
if (removeThumbnail)
|
|
3344
3341
|
removeThumbnail(index);
|
|
3345
3342
|
};
|
|
3346
|
-
return (jsxRuntime.jsxs(StyledThumbnail, Object.assign({ className: "singleThumbnail", onClick: clickThumbnail }, { children: [showX && (jsxRuntime.jsx(DeleteThumbnailX, { content: "╳", deleteThumbnail: (e) => handleCancel(e) })), isLoadingMedia && (jsxRuntime.jsx(reactLoaders.Spinner, { style: { position: "absolute", top: "39%", left: "37%" }, size: "large" })),
|
|
3343
|
+
return (jsxRuntime.jsxs(StyledThumbnail, Object.assign({ className: "singleThumbnail", onClick: clickThumbnail }, { children: [showX && (jsxRuntime.jsx(DeleteThumbnailX, { content: "╳", deleteThumbnail: (e) => handleCancel(e) })), isLoadingMedia && (jsxRuntime.jsx(reactLoaders.Spinner, { style: { position: "absolute", top: "39%", left: "37%" }, size: "large" })), isError && (
|
|
3344
|
+
// todo: add error icon
|
|
3345
|
+
jsxRuntime.jsx("span", { children: "error uploading media" })), !isLoadingMedia && mediaType.includes("image") && (jsxRuntime.jsx("img", { src: src, alt: label })), !isLoadingMedia && mediaType.includes("video") && (jsxRuntime.jsxs("span", Object.assign({ style: {
|
|
3347
3346
|
width: "100%",
|
|
3348
3347
|
height: "100%",
|
|
3349
3348
|
backgroundColor: "gray",
|
|
@@ -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" | "
|
|
12
|
-
alignItemsXs?: "start" | "
|
|
13
|
-
alignItemsSm?: "start" | "
|
|
14
|
-
alignItemsMd?: "start" | "
|
|
15
|
-
alignItemsLg?: "start" | "
|
|
16
|
-
alignItemsXl?: "start" | "
|
|
17
|
-
justifyContent?: "start" | "
|
|
18
|
-
justifyContentXs?: "start" | "
|
|
19
|
-
justifyContentSm?: "start" | "
|
|
20
|
-
justifyContentMd?: "start" | "
|
|
21
|
-
justifyContentLg?: "start" | "
|
|
22
|
-
justifyContentXl?: "start" | "
|
|
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;
|
|
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?: (boolean | "true" | "false") |
|
|
36
|
+
contentEditable?: "inherit" | (boolean | "true" | "false") | 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?: "
|
|
76
|
+
inputMode?: "text" | "search" | "none" | "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;
|
|
@@ -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 | "
|
|
87
|
+
"aria-current"?: boolean | "time" | "step" | "true" | "false" | "page" | "location" | "date" | 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 | "
|
|
96
|
+
"aria-haspopup"?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "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" | "
|
|
113
|
+
"aria-relevant"?: "text" | "all" | "additions" | "additions removals" | "additions text" | "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" | "
|
|
303
|
-
alignSelfXs?: "start" | "
|
|
304
|
-
alignSelfSm?: "start" | "
|
|
305
|
-
alignSelfMd?: "start" | "
|
|
306
|
-
alignSelfLg?: "start" | "
|
|
307
|
-
alignSelfXl?: "start" | "
|
|
308
|
-
textAlign?: "start" | "
|
|
309
|
-
textAlignXs?: "start" | "
|
|
310
|
-
textAlignSm?: "start" | "
|
|
311
|
-
textAlignMd?: "start" | "
|
|
312
|
-
textAlignLg?: "start" | "
|
|
313
|
-
textAlignXl?: "start" | "
|
|
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;
|
|
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?: (boolean | "true" | "false") |
|
|
333
|
+
contentEditable?: "inherit" | (boolean | "true" | "false") | 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?: "
|
|
373
|
+
inputMode?: "text" | "search" | "none" | "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;
|
|
@@ -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 | "
|
|
384
|
+
"aria-current"?: boolean | "time" | "step" | "true" | "false" | "page" | "location" | "date" | 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 | "
|
|
393
|
+
"aria-haspopup"?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "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" | "
|
|
410
|
+
"aria-relevant"?: "text" | "all" | "additions" | "additions removals" | "additions text" | "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?: (boolean | "true" | "false") |
|
|
603
|
+
contentEditable?: "inherit" | (boolean | "true" | "false") | 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?: "
|
|
643
|
+
inputMode?: "text" | "search" | "none" | "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;
|
|
@@ -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 | "
|
|
654
|
+
"aria-current"?: boolean | "time" | "step" | "true" | "false" | "page" | "location" | "date" | 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 | "
|
|
663
|
+
"aria-haspopup"?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "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" | "
|
|
680
|
+
"aria-relevant"?: "text" | "all" | "additions" | "additions removals" | "additions text" | "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;
|
|
@@ -37,6 +37,10 @@ export interface EditorHeaderArgs {
|
|
|
37
37
|
title?: string;
|
|
38
38
|
validation?: validationStatus;
|
|
39
39
|
}
|
|
40
|
+
export interface FileItem extends File {
|
|
41
|
+
isLoadingMedia?: boolean;
|
|
42
|
+
isError?: boolean;
|
|
43
|
+
}
|
|
40
44
|
export interface FloatingMenuArgs extends Partial<BubbleMenuProps> {
|
|
41
45
|
}
|
|
42
46
|
export {};
|
|
@@ -1,19 +1,15 @@
|
|
|
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
8
|
addThumbnails: (props: {
|
|
9
|
-
files: (
|
|
10
|
-
isLoadingMedia: boolean;
|
|
11
|
-
})[];
|
|
9
|
+
files: (FileItem)[];
|
|
12
10
|
}) => void;
|
|
13
11
|
removeThumbnail: (index: number) => void;
|
|
14
|
-
thumbnails: (
|
|
15
|
-
isLoadingMedia: boolean;
|
|
16
|
-
})[];
|
|
12
|
+
thumbnails: (FileItem)[];
|
|
17
13
|
mentionableUsers: (props: {
|
|
18
14
|
query: string;
|
|
19
15
|
}) => SuggestedUser[];
|
|
@@ -29,9 +25,7 @@ export interface Data {
|
|
|
29
25
|
}
|
|
30
26
|
export declare const ChatContextProvider: ({ onSave, onFileUpload, setMentionableUsers, children, }: {
|
|
31
27
|
onSave?: ((editor: Editor, mentions: SuggestedUser[]) => void) | undefined;
|
|
32
|
-
onFileUpload?: ((files: (
|
|
33
|
-
isLoadingMedia: boolean;
|
|
34
|
-
})[]) => Promise<Data>) | undefined;
|
|
28
|
+
onFileUpload?: ((files: (FileItem)[]) => Promise<Data>) | undefined;
|
|
35
29
|
children: React.ReactNode;
|
|
36
30
|
setMentionableUsers: (props: {
|
|
37
31
|
query: string;
|
|
@@ -8,6 +8,7 @@ interface Props {
|
|
|
8
8
|
showLabel?: boolean;
|
|
9
9
|
mediaType: string;
|
|
10
10
|
isLoadingMedia: boolean;
|
|
11
|
+
isError?: boolean;
|
|
11
12
|
}
|
|
12
|
-
declare const Thumbnail: ({ clickThumbnail, src, label, index, removeThumbnail, showX, showLabel, mediaType, isLoadingMedia, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare const Thumbnail: ({ clickThumbnail, src, label, index, removeThumbnail, showX, showLabel, mediaType, isLoadingMedia, isError, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
13
14
|
export default Thumbnail;
|