@firecms/media_manager 3.2.0 → 3.3.0-canary.7e3431b
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/dist/MediaManagerProvider.d.ts +2 -2
- package/dist/components/MediaAssetCard.d.ts +2 -1
- package/dist/components/MediaAssetDetails.d.ts +2 -1
- package/dist/components/MediaLibraryCard.d.ts +2 -1
- package/dist/components/MediaLibraryView.d.ts +2 -1
- package/dist/components/MediaUploadDialog.d.ts +2 -1
- package/package.json +59 -55
- package/LICENSE +0 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropsWithChildren } from "react";
|
|
1
|
+
import React, { PropsWithChildren } from "react";
|
|
2
2
|
import { MediaManagerController } from "./types";
|
|
3
3
|
/**
|
|
4
4
|
* Hook to access the MediaManagerController from context.
|
|
@@ -11,4 +11,4 @@ export interface MediaManagerProviderProps {
|
|
|
11
11
|
/**
|
|
12
12
|
* Provider component that makes the MediaManagerController available to all children.
|
|
13
13
|
*/
|
|
14
|
-
export declare function MediaManagerProvider({ controller, children }: PropsWithChildren<MediaManagerProviderProps>):
|
|
14
|
+
export declare function MediaManagerProvider({ controller, children }: PropsWithChildren<MediaManagerProviderProps>): React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { MediaAsset } from "../types";
|
|
2
3
|
export interface MediaAssetCardProps {
|
|
3
4
|
asset: MediaAsset;
|
|
@@ -10,4 +11,4 @@ export interface MediaAssetCardProps {
|
|
|
10
11
|
/**
|
|
11
12
|
* Card component for displaying a media asset in the grid or list.
|
|
12
13
|
*/
|
|
13
|
-
export declare function MediaAssetCard({ asset, viewMode, onClick, selected, thumbnailSize }: MediaAssetCardProps):
|
|
14
|
+
export declare function MediaAssetCard({ asset, viewMode, onClick, selected, thumbnailSize }: MediaAssetCardProps): React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { MediaAsset } from "../types";
|
|
2
3
|
export interface MediaAssetDetailsProps {
|
|
3
4
|
asset: MediaAsset;
|
|
@@ -8,4 +9,4 @@ export interface MediaAssetDetailsProps {
|
|
|
8
9
|
/**
|
|
9
10
|
* Side panel component for viewing and editing media asset details.
|
|
10
11
|
*/
|
|
11
|
-
export declare function MediaAssetDetails({ asset, onClose, onUpdate, onDelete }: MediaAssetDetailsProps):
|
|
12
|
+
export declare function MediaAssetDetails({ asset, onClose, onUpdate, onDelete }: MediaAssetDetailsProps): React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
export interface MediaLibraryCardProps {
|
|
2
3
|
group?: string;
|
|
3
4
|
context?: unknown;
|
|
@@ -5,4 +6,4 @@ export interface MediaLibraryCardProps {
|
|
|
5
6
|
/**
|
|
6
7
|
* Card component displayed on the home page that links to the Media Library.
|
|
7
8
|
*/
|
|
8
|
-
export declare function MediaLibraryCard({ group }: MediaLibraryCardProps):
|
|
9
|
+
export declare function MediaLibraryCard({ group }: MediaLibraryCardProps): React.JSX.Element | null;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
export interface MediaLibraryViewProps {
|
|
2
3
|
maxFileSize?: number;
|
|
3
4
|
acceptedMimeTypes?: string[];
|
|
@@ -6,4 +7,4 @@ export interface MediaLibraryViewProps {
|
|
|
6
7
|
* Main view component for the Media Library.
|
|
7
8
|
* Displays a grid of assets with search, upload, and management capabilities.
|
|
8
9
|
*/
|
|
9
|
-
export declare function MediaLibraryView({ maxFileSize, acceptedMimeTypes }: MediaLibraryViewProps):
|
|
10
|
+
export declare function MediaLibraryView({ maxFileSize, acceptedMimeTypes }: MediaLibraryViewProps): React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
export interface MediaUploadDialogProps {
|
|
2
3
|
open: boolean;
|
|
3
4
|
onClose: () => void;
|
|
@@ -10,4 +11,4 @@ export interface MediaUploadDialogProps {
|
|
|
10
11
|
* Supports drag-and-drop and file browser selection.
|
|
11
12
|
*/
|
|
12
13
|
export declare function MediaUploadDialog({ open, onClose, onUpload, maxFileSize, // 50MB default
|
|
13
|
-
acceptedMimeTypes }: MediaUploadDialogProps):
|
|
14
|
+
acceptedMimeTypes }: MediaUploadDialogProps): React.JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,58 +1,62 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
"name": "@firecms/media_manager",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "3.3.0-canary.7e3431b",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public"
|
|
7
|
+
},
|
|
8
|
+
"keywords": [
|
|
9
|
+
"firebase",
|
|
10
|
+
"cms",
|
|
11
|
+
"media",
|
|
12
|
+
"media manager",
|
|
13
|
+
"asset manager",
|
|
14
|
+
"firecms",
|
|
15
|
+
"storage"
|
|
16
|
+
],
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"import": "./dist/index.es.js",
|
|
21
|
+
"require": "./dist/index.umd.js"
|
|
7
22
|
},
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
},
|
|
48
|
-
"scripts": {
|
|
49
|
-
"dev": "vite",
|
|
50
|
-
"build": "vite build && tsc --emitDeclarationOnly -p tsconfig.prod.json",
|
|
51
|
-
"clean": "rm -rf dist && find ./src -name '*.js' -type f | xargs rm -f"
|
|
52
|
-
},
|
|
53
|
-
"files": [
|
|
54
|
-
"dist",
|
|
55
|
-
"src"
|
|
56
|
-
],
|
|
57
|
-
"gitHead": "4c3b8f2c16265fcdd6bf443cf5b420a7a7332d9d"
|
|
23
|
+
"./package.json": "./package.json"
|
|
24
|
+
},
|
|
25
|
+
"main": "./dist/index.umd.js",
|
|
26
|
+
"module": "./dist/index.es.js",
|
|
27
|
+
"types": "./dist/index.d.ts",
|
|
28
|
+
"source": "src/index.ts",
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"@firecms/core": "^3.3.0-canary.7e3431b",
|
|
31
|
+
"@firecms/formex": "^3.3.0-canary.7e3431b",
|
|
32
|
+
"@firecms/ui": "^3.3.0-canary.7e3431b"
|
|
33
|
+
},
|
|
34
|
+
"peerDependencies": {
|
|
35
|
+
"react": ">=18.3.1 || >=19.0.0",
|
|
36
|
+
"react-dom": ">=18.3.1 || >=19.0.0"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@types/node": "^20.19.17",
|
|
40
|
+
"@types/react": "^19.2.3",
|
|
41
|
+
"@types/react-dom": "^19.2.3",
|
|
42
|
+
"@vitejs/plugin-react": "^4.7.0",
|
|
43
|
+
"babel-plugin-react-compiler": "^19.0.0-beta-af1b7da-20250417",
|
|
44
|
+
"eslint-plugin-react-compiler": "^19.1.0-rc.2",
|
|
45
|
+
"typescript": "^5.9.3",
|
|
46
|
+
"vite": "^7.2.4"
|
|
47
|
+
},
|
|
48
|
+
"scripts": {
|
|
49
|
+
"dev": "vite",
|
|
50
|
+
"build": "vite build && tsc --emitDeclarationOnly -p tsconfig.prod.json",
|
|
51
|
+
"clean": "rm -rf dist && find ./src -name '*.js' -type f | xargs rm -f"
|
|
52
|
+
},
|
|
53
|
+
"files": [
|
|
54
|
+
"dist",
|
|
55
|
+
"src"
|
|
56
|
+
],
|
|
57
|
+
"repository": {
|
|
58
|
+
"type": "git",
|
|
59
|
+
"url": "https://github.com/FireCMSco/firecms.git",
|
|
60
|
+
"directory": "packages/media_manager"
|
|
61
|
+
}
|
|
58
62
|
}
|
package/LICENSE
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
Source code in this repository is variously licensed under the Business Source
|
|
2
|
-
License 1.1 (BSL), Apache version 2.0 and the MIT license. A copy of each
|
|
3
|
-
license can be found in each one of the packages under the folder packages
|
|
4
|
-
under a file called License. Source code in a given file is licensed under the
|
|
5
|
-
BSL and the copyright belongs to Firecms Authors unless otherwise noted at the
|
|
6
|
-
beginning of the file.
|