@appquality/unguess-design-system 3.1.97-beta-attachments → 3.1.98-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 CHANGED
@@ -3544,6 +3544,7 @@ const ThumbnailContainer = ({ openLightbox }) => {
3544
3544
  fileType: file.type,
3545
3545
  previewUrl: URL.createObjectURL(file),
3546
3546
  internal_id: file.internal_id,
3547
+ isLoadingMedia: file.isLoadingMedia,
3547
3548
  });
3548
3549
  });
3549
3550
  if (!mediaFiles || mediaFiles.length === 0) {
@@ -3552,14 +3553,14 @@ const ThumbnailContainer = ({ openLightbox }) => {
3552
3553
  return (jsxRuntime.jsx(Grid, { children: jsxRuntime.jsx(Row$1, Object.assign({ className: "responsive-container" }, { children: mediaFiles.map((file, index) => {
3553
3554
  // Check if item is an image or a video
3554
3555
  if (file.fileType.includes("image"))
3555
- return (jsxRuntime.jsx(Col, Object.assign({ xs: 12, sm: 3, xl: 3, lg: 3, className: "flex-3-sm" }, { children: jsxRuntime.jsx(ImageThumbnail, { src: file.previewUrl, index: index, showX: true, isLoadingMedia: true, removeThumbnail: () => {
3556
+ return (jsxRuntime.jsx(Col, Object.assign({ xs: 12, sm: 3, xl: 3, lg: 3, className: "flex-3-sm" }, { children: jsxRuntime.jsx(ImageThumbnail, { src: file.previewUrl, index: index, showX: true, isLoadingMedia: file.isLoadingMedia, removeThumbnail: () => {
3556
3557
  removeThumbnail(index);
3557
3558
  onDeleteThumbnail(file.internal_id);
3558
3559
  }, clickThumbnail: () => {
3559
3560
  openLightbox(thumbnails[index], index);
3560
3561
  } }, index) })));
3561
3562
  if (file.fileType.includes("video"))
3562
- return (jsxRuntime.jsx(Col, Object.assign({ xs: 12, sm: 3, className: "flex-3-sm" }, { children: jsxRuntime.jsx(VideoThumbnail, { src: file.previewUrl, index: index, showX: true, isLoadingMedia: true, removeThumbnail: () => {
3563
+ return (jsxRuntime.jsx(Col, Object.assign({ xs: 12, sm: 3, className: "flex-3-sm" }, { children: jsxRuntime.jsx(VideoThumbnail, { src: file.previewUrl, index: index, showX: true, isLoadingMedia: file.isLoadingMedia, removeThumbnail: () => {
3563
3564
  removeThumbnail(index);
3564
3565
  onDeleteThumbnail(file.internal_id);
3565
3566
  }, clickThumbnail: () => {
@@ -4554,7 +4555,7 @@ const CommentBox = (_a) => {
4554
4555
  }
4555
4556
  return false;
4556
4557
  },
4557
- handleDrop: function (view, event) {
4558
+ handleDrop: function (view, event, slice, moved) {
4558
4559
  if (!event.dataTransfer || !event.dataTransfer.files)
4559
4560
  return false;
4560
4561
  event.preventDefault();
@@ -4576,7 +4577,7 @@ const CommentBox = (_a) => {
4576
4577
  addThumbnails({ files: mediaFiles });
4577
4578
  return false;
4578
4579
  },
4579
- handlePaste: (view, event) => {
4580
+ handlePaste: (view, event, slice) => {
4580
4581
  if (!event.clipboardData || !event.clipboardData.items)
4581
4582
  return false;
4582
4583
  event.preventDefault();
@@ -39,7 +39,7 @@ export interface EditorHeaderArgs {
39
39
  validation?: validationStatus;
40
40
  }
41
41
  export interface FileItem extends File {
42
- isLoadingMedia?: boolean;
42
+ isLoadingMedia: boolean;
43
43
  isError?: boolean;
44
44
  internal_id: string;
45
45
  }
@@ -4,6 +4,7 @@ export interface FileElement {
4
4
  errorCode?: "FILE_TOO_BIG" | "INVALID_FILE_EXTENSION" | "GENERIC_ERROR";
5
5
  previewUrl: string;
6
6
  internal_id: string;
7
+ isLoadingMedia: boolean;
7
8
  }
8
9
  interface Props {
9
10
  openLightbox: (file: File, index: number) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appquality/unguess-design-system",
3
- "version": "3.1.97-beta-attachments",
3
+ "version": "3.1.98-beta-attachments",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",