@ttt-productions/file-input 0.5.5 → 0.7.0

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.
@@ -1,3 +1,3 @@
1
1
  import type { FileInputProps } from "../../types.js";
2
- export declare function AudioInput(props: Omit<FileInputProps, "acceptTypes">): import("react/jsx-runtime").JSX.Element;
2
+ export declare function AudioInput(props: Omit<FileInputProps, "acceptTypes">): import("react").JSX.Element;
3
3
  //# sourceMappingURL=audio-input.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"audio-input.d.ts","sourceRoot":"","sources":["../../../src/react/components/audio-input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGrD,wBAAgB,UAAU,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,aAAa,CAAC,2CAEpE"}
1
+ {"version":3,"file":"audio-input.d.ts","sourceRoot":"","sources":["../../../src/react/components/audio-input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGrD,wBAAgB,UAAU,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,aAAa,CAAC,+BAEpE"}
@@ -1,3 +1,3 @@
1
1
  import type { FileInputProps } from "../../types.js";
2
- export declare function FileInput(props: FileInputProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function FileInput(props: FileInputProps): import("react").JSX.Element;
3
3
  //# sourceMappingURL=file-input.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"file-input.d.ts","sourceRoot":"","sources":["../../../src/react/components/file-input.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAkB,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAerE,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,2CA2R9C"}
1
+ {"version":3,"file":"file-input.d.ts","sourceRoot":"","sources":["../../../src/react/components/file-input.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAkB,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAerE,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,+BA2R9C"}
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  export interface ImageCropperModalProps {
2
3
  isOpen: boolean;
3
4
  onClose: () => void;
@@ -8,5 +9,5 @@ export interface ImageCropperModalProps {
8
9
  outputHeight: number;
9
10
  onCropComplete: (croppedBlob: Blob | null) => void;
10
11
  }
11
- export declare function ImageCropperModal(props: ImageCropperModalProps): import("react/jsx-runtime").JSX.Element | null;
12
+ export declare function ImageCropperModal(props: ImageCropperModalProps): React.JSX.Element | null;
12
13
  //# sourceMappingURL=image-cropper-modal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"image-cropper-modal.d.ts","sourceRoot":"","sources":["../../../src/react/components/image-cropper-modal.tsx"],"names":[],"mappings":"AASA,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,CAAC,WAAW,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAC;CACpD;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,kDA0D9D"}
1
+ {"version":3,"file":"image-cropper-modal.d.ts","sourceRoot":"","sources":["../../../src/react/components/image-cropper-modal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAOrD,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,CAAC,WAAW,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAC;CACpD;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,4BA0D9D"}
@@ -1,3 +1,3 @@
1
1
  import type { FileInputProps } from "../../types.js";
2
- export declare function ImageInput(props: Omit<FileInputProps, "acceptTypes">): import("react/jsx-runtime").JSX.Element;
2
+ export declare function ImageInput(props: Omit<FileInputProps, "acceptTypes">): import("react").JSX.Element;
3
3
  //# sourceMappingURL=image-input.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"image-input.d.ts","sourceRoot":"","sources":["../../../src/react/components/image-input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGrD,wBAAgB,UAAU,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,aAAa,CAAC,2CAEpE"}
1
+ {"version":3,"file":"image-input.d.ts","sourceRoot":"","sources":["../../../src/react/components/image-input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGrD,wBAAgB,UAAU,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,aAAa,CAAC,+BAEpE"}
@@ -4,5 +4,5 @@ export interface MediaConstraintsHintProps {
4
4
  className?: string;
5
5
  title?: string;
6
6
  }
7
- export declare function MediaConstraintsHint(props: MediaConstraintsHintProps): import("react/jsx-runtime").JSX.Element | null;
7
+ export declare function MediaConstraintsHint(props: MediaConstraintsHintProps): import("react").JSX.Element | null;
8
8
  //# sourceMappingURL=media-constraints-hint.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"media-constraints-hint.d.ts","sourceRoot":"","sources":["../../../src/react/components/media-constraints-hint.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAItE,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,eAAe,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AA0BD,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,yBAAyB,kDAyEpE"}
1
+ {"version":3,"file":"media-constraints-hint.d.ts","sourceRoot":"","sources":["../../../src/react/components/media-constraints-hint.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAItE,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,eAAe,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AA0BD,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,yBAAyB,sCAyEpE"}
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import type { MediaInputProps } from "../../types.js";
2
- export declare function MediaInput(props: MediaInputProps): import("react/jsx-runtime").JSX.Element;
3
+ export declare function MediaInput(props: MediaInputProps): React.JSX.Element;
3
4
  //# sourceMappingURL=media-input.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"media-input.d.ts","sourceRoot":"","sources":["../../../src/react/components/media-input.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAkB,eAAe,EAAqB,MAAM,gBAAgB,CAAC;AAyGzF,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,2CAiiBhD"}
1
+ {"version":3,"file":"media-input.d.ts","sourceRoot":"","sources":["../../../src/react/components/media-input.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmE,MAAM,OAAO,CAAC;AAoBxF,OAAO,KAAK,EAAkB,eAAe,EAAqB,MAAM,gBAAgB,CAAC;AAyGzF,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,qBAiiBhD"}
@@ -4,5 +4,5 @@ export interface PhotoCaptureModalProps {
4
4
  onCapture: (file: File) => void;
5
5
  onClose: () => void;
6
6
  }
7
- export declare function PhotoCaptureModal(props: PhotoCaptureModalProps): import("react/jsx-runtime").JSX.Element;
7
+ export declare function PhotoCaptureModal(props: PhotoCaptureModalProps): import("react").JSX.Element;
8
8
  //# sourceMappingURL=photo-capture-modal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"photo-capture-modal.d.ts","sourceRoot":"","sources":["../../../src/react/components/photo-capture-modal.tsx"],"names":[],"mappings":"AAcA,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,OAAO,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,GAAG,aAAa,CAAC;IACpC,SAAS,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IAChC,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,2CAyI9D"}
1
+ {"version":3,"file":"photo-capture-modal.d.ts","sourceRoot":"","sources":["../../../src/react/components/photo-capture-modal.tsx"],"names":[],"mappings":"AAcA,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,OAAO,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,GAAG,aAAa,CAAC;IACpC,SAAS,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IAChC,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,+BAyI9D"}
@@ -12,6 +12,6 @@ interface RecordDialogProps {
12
12
  onRecorded: (file: File, previewUrl: string) => void | Promise<void>;
13
13
  onRequestPhoto?: () => void;
14
14
  }
15
- export declare function RecordDialog({ open, onOpenChange, initialKind, canPhoto, canRecVideo, canRecAudio, cameraFacingMode, maxRecordDurationSec, disabled, isLoading, onRecorded, onRequestPhoto, }: RecordDialogProps): import("react/jsx-runtime").JSX.Element;
15
+ export declare function RecordDialog({ open, onOpenChange, initialKind, canPhoto, canRecVideo, canRecAudio, cameraFacingMode, maxRecordDurationSec, disabled, isLoading, onRecorded, onRequestPhoto, }: RecordDialogProps): import("react").JSX.Element;
16
16
  export {};
17
17
  //# sourceMappingURL=record-dialog.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"record-dialog.d.ts","sourceRoot":"","sources":["../../../src/react/components/record-dialog.tsx"],"names":[],"mappings":"AAyBA,UAAU,iBAAiB;IACzB,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,WAAW,EAAE,OAAO,GAAG,OAAO,CAAC;IAC/B,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,GAAG,aAAa,CAAC;IAC1C,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACrE,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;CAC7B;AASD,wBAAgB,YAAY,CAAC,EAC3B,IAAI,EACJ,YAAY,EACZ,WAAW,EACX,QAAQ,EACR,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,oBAAoB,EACpB,QAAgB,EAChB,SAAiB,EACjB,UAAU,EACV,cAAc,GACf,EAAE,iBAAiB,2CAyiBnB"}
1
+ {"version":3,"file":"record-dialog.d.ts","sourceRoot":"","sources":["../../../src/react/components/record-dialog.tsx"],"names":[],"mappings":"AAyBA,UAAU,iBAAiB;IACzB,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,WAAW,EAAE,OAAO,GAAG,OAAO,CAAC;IAC/B,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,GAAG,aAAa,CAAC;IAC1C,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACrE,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;CAC7B;AASD,wBAAgB,YAAY,CAAC,EAC3B,IAAI,EACJ,YAAY,EACZ,WAAW,EACX,QAAQ,EACR,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,oBAAoB,EACpB,QAAgB,EAChB,SAAiB,EACjB,UAAU,EACV,cAAc,GACf,EAAE,iBAAiB,+BAyiBnB"}
@@ -1,3 +1,3 @@
1
1
  import type { FileInputProps } from "../../types.js";
2
- export declare function VideoInput(props: Omit<FileInputProps, "acceptTypes">): import("react/jsx-runtime").JSX.Element;
2
+ export declare function VideoInput(props: Omit<FileInputProps, "acceptTypes">): import("react").JSX.Element;
3
3
  //# sourceMappingURL=video-input.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"video-input.d.ts","sourceRoot":"","sources":["../../../src/react/components/video-input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGrD,wBAAgB,UAAU,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,aAAa,CAAC,2CAEpE"}
1
+ {"version":3,"file":"video-input.d.ts","sourceRoot":"","sources":["../../../src/react/components/video-input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGrD,wBAAgB,UAAU,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,aAAa,CAAC,+BAEpE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttt-productions/file-input",
3
- "version": "0.5.5",
3
+ "version": "0.7.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/ttt-productions/ttt-packages.git",
@@ -31,14 +31,14 @@
31
31
  "prepublishOnly": "npm run clean && npm run build"
32
32
  },
33
33
  "dependencies": {
34
- "@ttt-productions/ui-core": "^0.6.4",
35
- "@ttt-productions/media-schemas": "^0.6.4",
36
- "@ttt-productions/media-viewer": "^0.4.5",
34
+ "@ttt-productions/ui-core": "^0.9.0",
35
+ "@ttt-productions/media-schemas": "^0.9.0",
36
+ "@ttt-productions/media-viewer": "^0.6.0",
37
37
  "react-easy-crop": "^5.5.0"
38
38
  },
39
39
  "peerDependencies": {
40
- "react": ">=18.0.0",
41
- "react-dom": ">=18.0.0",
40
+ "react": ">=19.0.0",
41
+ "react-dom": ">=19.0.0",
42
42
  "lucide-react": ">=0.0.0"
43
43
  },
44
44
  "peerDependenciesMeta": {