@umituz/react-native-design-system 2.9.42 → 2.9.43
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/package.json +1 -1
- package/src/media/infrastructure/services/CardMediaValidationService.ts +2 -2
- package/src/media/infrastructure/services/MediaValidationService.ts +1 -1
- package/src/media/presentation/hooks/useCardMediaValidation.ts +1 -1
- package/src/media/presentation/hooks/useCardMultimediaFlashcard.ts +1 -4
- package/src/media/presentation/hooks/useMediaValidation.ts +1 -1
- package/src/media/presentation/hooks/useMultimediaFlashcard.ts +1 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/react-native-design-system",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.43",
|
|
4
4
|
"description": "Universal design system for React Native apps - Consolidated package with atoms, molecules, organisms, theme, typography, responsive, safe area, exception, infinite scroll, UUID, image, timezone, offline, onboarding, and loading utilities",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* Handles media file validation before upload
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { formatFileSize } from "../utils/
|
|
6
|
+
import { formatFileSize } from "../utils/media-collection-utils";
|
|
7
|
+
import { getMediaDuration } from "../utils/file-media-utils";
|
|
7
8
|
import type { CardMediaValidation } from "../../domain/entities/CardMultimedia.types";
|
|
8
|
-
import { getMediaDuration } from "../utils/mediaHelpers";
|
|
9
9
|
|
|
10
10
|
export class CardMediaValidationService {
|
|
11
11
|
/**
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Handles media file validation before upload
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { formatFileSize } from "../utils/
|
|
6
|
+
import { formatFileSize } from "../utils/media-collection-utils";
|
|
7
7
|
import type { MediaValidation } from "../../domain/entities/MultimediaFlashcardTypes";
|
|
8
8
|
|
|
9
9
|
export class MediaValidationService {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import React from "react";
|
|
7
|
-
import { formatFileSize } from "../../infrastructure/utils/
|
|
7
|
+
import { formatFileSize } from "../../infrastructure/utils/media-collection-utils";
|
|
8
8
|
import type { UseCardMediaValidationResult } from "./card-multimedia.types";
|
|
9
9
|
import type { CardMediaValidation } from "../../domain/entities/CardMultimedia.types";
|
|
10
10
|
|
|
@@ -4,10 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import React from "react";
|
|
7
|
-
import {
|
|
8
|
-
calculateTotalSize,
|
|
9
|
-
extractMediaTypes,
|
|
10
|
-
} from "../../infrastructure/utils/mediaHelpers";
|
|
7
|
+
import { calculateTotalSize, extractMediaTypes } from "../../infrastructure/utils/media-collection-utils";
|
|
11
8
|
import type { UseCardMultimediaFlashcardResult } from "./card-multimedia.types";
|
|
12
9
|
import type {
|
|
13
10
|
CardMediaAttachment,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import React from "react";
|
|
7
|
-
import { formatFileSize } from "../../infrastructure/utils/
|
|
7
|
+
import { formatFileSize } from "../../infrastructure/utils/media-collection-utils";
|
|
8
8
|
import type { UseMediaValidationResult } from "./multimedia.types";
|
|
9
9
|
import type { MediaValidation } from "../../domain/entities/MultimediaFlashcardTypes";
|
|
10
10
|
|
|
@@ -4,10 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import React from "react";
|
|
7
|
-
import {
|
|
8
|
-
calculateTotalSize,
|
|
9
|
-
extractMediaTypes,
|
|
10
|
-
} from "../../infrastructure/utils/mediaHelpers";
|
|
7
|
+
import { calculateTotalSize, extractMediaTypes } from "../../infrastructure/utils/media-collection-utils";
|
|
11
8
|
import type { UseMultimediaFlashcardResult } from "./multimedia.types";
|
|
12
9
|
import type {
|
|
13
10
|
MediaAttachment,
|