@muhgholy/next-drive 4.23.6 → 4.23.7
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/{chunk-TA6L5FYG.cjs → chunk-HQTC3554.cjs} +47 -2
- package/dist/chunk-HQTC3554.cjs.map +1 -0
- package/dist/{chunk-VIB7R4JN.cjs → chunk-LAKT7IJJ.cjs} +84 -84
- package/dist/chunk-LAKT7IJJ.cjs.map +1 -0
- package/dist/{chunk-GV4HB2G6.js → chunk-MVYNW56R.js} +84 -84
- package/dist/chunk-MVYNW56R.js.map +1 -0
- package/dist/{chunk-TMSG5WJZ.js → chunk-OSYRIHH4.js} +47 -3
- package/dist/chunk-OSYRIHH4.js.map +1 -0
- package/dist/client/file-chooser.d.ts.map +1 -1
- package/dist/client/index.cjs +126 -117
- package/dist/client/index.cjs.map +1 -1
- package/dist/client/index.css +1 -1
- package/dist/client/index.js +20 -11
- package/dist/client/index.js.map +1 -1
- package/dist/client/utils.d.ts +1 -0
- package/dist/client/utils.d.ts.map +1 -1
- package/dist/server/express.cjs +12 -12
- package/dist/server/express.js +3 -3
- package/dist/server/hono.cjs +12 -12
- package/dist/server/hono.js +3 -3
- package/dist/server/index.cjs +18 -18
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-GV4HB2G6.js.map +0 -1
- package/dist/chunk-TA6L5FYG.cjs.map +0 -1
- package/dist/chunk-TMSG5WJZ.js.map +0 -1
- package/dist/chunk-VIB7R4JN.cjs.map +0 -1
package/dist/client/utils.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type ClassValue } from "clsx";
|
|
2
2
|
export declare function cn(...inputs: ClassValue[]): string;
|
|
3
3
|
export declare const formatBytes: (bytes: number, decimals?: number) => string;
|
|
4
|
+
export declare const getFileFormat: (mime?: string) => string;
|
|
4
5
|
import type { ReactNode } from 'react';
|
|
5
6
|
export declare const getFileIcon: (mime: string, isFolder: boolean, className?: string) => ReactNode;
|
|
6
7
|
export declare const matchesMimeFilter: (mime: string, isFolder: boolean, filter?: string) => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/client/utils.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,UAAU,EAAQ,MAAM,MAAM,CAAC;AAG7C,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC;AAGD,eAAO,MAAM,WAAW,GAAI,OAAO,MAAM,EAAE,iBAAY,KAAG,MAOzD,CAAC;AAEF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,EAAE,UAAU,OAAO,EAAE,kBAA2B,KAAG,SAU1F,CAAC;AAIF,eAAO,MAAM,iBAAiB,GAAI,MAAM,MAAM,EAAE,UAAU,OAAO,EAAE,SAAS,MAAM,KAAG,OA4EpF,CAAC;AAGF,eAAO,MAAM,eAAe,GAAI,SAAS,MAAM,KAAG,MAAM,GAAG,SAI1D,CAAC;AAEF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAGjD,eAAO,MAAM,cAAc,GAAI,WAAW,UAAU,EAAE,aAAa,MAAM,KAAG,MAO3E,CAAC"}
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/client/utils.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,UAAU,EAAQ,MAAM,MAAM,CAAC;AAG7C,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC;AAGD,eAAO,MAAM,WAAW,GAAI,OAAO,MAAM,EAAE,iBAAY,KAAG,MAOzD,CAAC;AA2CF,eAAO,MAAM,aAAa,GAAI,OAAO,MAAM,KAAG,MAM7C,CAAC;AAEF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,EAAE,UAAU,OAAO,EAAE,kBAA2B,KAAG,SAU1F,CAAC;AAIF,eAAO,MAAM,iBAAiB,GAAI,MAAM,MAAM,EAAE,UAAU,OAAO,EAAE,SAAS,MAAM,KAAG,OA4EpF,CAAC;AAGF,eAAO,MAAM,eAAe,GAAI,SAAS,MAAM,KAAG,MAAM,GAAG,SAI1D,CAAC;AAEF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAGjD,eAAO,MAAM,cAAc,GAAI,WAAW,UAAU,EAAE,aAAa,MAAM,KAAG,MAO3E,CAAC"}
|
package/dist/server/express.cjs
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var chunkLAKT7IJJ_cjs = require('../chunk-LAKT7IJJ.cjs');
|
|
4
|
+
require('../chunk-HQTC3554.cjs');
|
|
5
5
|
|
|
6
6
|
// src/server/express.ts
|
|
7
|
-
var driveAPIHandlerExpress =
|
|
8
|
-
var driveConfigurationExpress =
|
|
7
|
+
var driveAPIHandlerExpress = chunkLAKT7IJJ_cjs.driveAPIHandler;
|
|
8
|
+
var driveConfigurationExpress = chunkLAKT7IJJ_cjs.driveConfiguration;
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "driveDelete", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkLAKT7IJJ_cjs.driveDelete; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "driveFilePath", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkLAKT7IJJ_cjs.driveFilePath; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "driveFileSchemaZod", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkLAKT7IJJ_cjs.driveFileSchemaZod; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "driveGetUrl", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkLAKT7IJJ_cjs.driveGetUrl; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "driveList", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkLAKT7IJJ_cjs.driveList; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "driveReadFile", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkLAKT7IJJ_cjs.driveReadFile; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "driveUpload", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkLAKT7IJJ_cjs.driveUpload; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "getDriveConfig", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkLAKT7IJJ_cjs.getDriveConfig; }
|
|
41
41
|
});
|
|
42
42
|
exports.driveAPIHandlerExpress = driveAPIHandlerExpress;
|
|
43
43
|
exports.driveConfigurationExpress = driveConfigurationExpress;
|
package/dist/server/express.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { driveAPIHandler, driveConfiguration } from '../chunk-
|
|
2
|
-
export { driveDelete, driveFilePath, driveFileSchemaZod, driveGetUrl, driveList, driveReadFile, driveUpload, getDriveConfig } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
import { driveAPIHandler, driveConfiguration } from '../chunk-MVYNW56R.js';
|
|
2
|
+
export { driveDelete, driveFilePath, driveFileSchemaZod, driveGetUrl, driveList, driveReadFile, driveUpload, getDriveConfig } from '../chunk-MVYNW56R.js';
|
|
3
|
+
import '../chunk-OSYRIHH4.js';
|
|
4
4
|
|
|
5
5
|
// src/server/express.ts
|
|
6
6
|
var driveAPIHandlerExpress = driveAPIHandler;
|
package/dist/server/hono.cjs
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var chunkLAKT7IJJ_cjs = require('../chunk-LAKT7IJJ.cjs');
|
|
4
|
+
require('../chunk-HQTC3554.cjs');
|
|
5
5
|
|
|
6
6
|
// src/server/hono.ts
|
|
7
|
-
var driveAPIHandlerHono =
|
|
8
|
-
var driveConfigurationHono =
|
|
7
|
+
var driveAPIHandlerHono = chunkLAKT7IJJ_cjs.driveAPIHandler;
|
|
8
|
+
var driveConfigurationHono = chunkLAKT7IJJ_cjs.driveConfiguration;
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "driveDelete", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkLAKT7IJJ_cjs.driveDelete; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "driveFilePath", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkLAKT7IJJ_cjs.driveFilePath; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "driveFileSchemaZod", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkLAKT7IJJ_cjs.driveFileSchemaZod; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "driveGetUrl", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkLAKT7IJJ_cjs.driveGetUrl; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "driveList", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkLAKT7IJJ_cjs.driveList; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "driveReadFile", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkLAKT7IJJ_cjs.driveReadFile; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "driveUpload", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkLAKT7IJJ_cjs.driveUpload; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "getDriveConfig", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkLAKT7IJJ_cjs.getDriveConfig; }
|
|
41
41
|
});
|
|
42
42
|
exports.driveAPIHandlerHono = driveAPIHandlerHono;
|
|
43
43
|
exports.driveConfigurationHono = driveConfigurationHono;
|
package/dist/server/hono.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { driveAPIHandler, driveConfiguration } from '../chunk-
|
|
2
|
-
export { driveDelete, driveFilePath, driveFileSchemaZod, driveGetUrl, driveList, driveReadFile, driveUpload, getDriveConfig } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
import { driveAPIHandler, driveConfiguration } from '../chunk-MVYNW56R.js';
|
|
2
|
+
export { driveDelete, driveFilePath, driveFileSchemaZod, driveGetUrl, driveList, driveReadFile, driveUpload, getDriveConfig } from '../chunk-MVYNW56R.js';
|
|
3
|
+
import '../chunk-OSYRIHH4.js';
|
|
4
4
|
|
|
5
5
|
// src/server/hono.ts
|
|
6
6
|
var driveAPIHandlerHono = driveAPIHandler;
|
package/dist/server/index.cjs
CHANGED
|
@@ -1,73 +1,73 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkLAKT7IJJ_cjs = require('../chunk-LAKT7IJJ.cjs');
|
|
4
|
+
var chunkHQTC3554_cjs = require('../chunk-HQTC3554.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "DatabaseMongoDrive", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkLAKT7IJJ_cjs.drive_default; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "driveAPIHandler", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkLAKT7IJJ_cjs.driveAPIHandler; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "driveCleanup", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkLAKT7IJJ_cjs.driveCleanup; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "driveConfiguration", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkLAKT7IJJ_cjs.driveConfiguration; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "driveDelete", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkLAKT7IJJ_cjs.driveDelete; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "driveFilePath", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkLAKT7IJJ_cjs.driveFilePath; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "driveFileSchemaZod", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkLAKT7IJJ_cjs.driveFileSchemaZod; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "driveGetUrl", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkLAKT7IJJ_cjs.driveGetUrl; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "driveInfo", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkLAKT7IJJ_cjs.driveInfo; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "driveList", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkLAKT7IJJ_cjs.driveList; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "driveListFiles", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkLAKT7IJJ_cjs.driveListFiles; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "driveReadFile", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkLAKT7IJJ_cjs.driveReadFile; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "driveUpload", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkLAKT7IJJ_cjs.driveUpload; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "getDriveConfig", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkLAKT7IJJ_cjs.getDriveConfig; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "getDriveInformation", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkLAKT7IJJ_cjs.getDriveInformation; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "driveCreateUrl", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkHQTC3554_cjs.driveCreateUrl; }
|
|
71
71
|
});
|
|
72
72
|
//# sourceMappingURL=index.cjs.map
|
|
73
73
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/server/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAQ5D,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AA0G1F,eAAO,MAAM,eAAe,GAAU,KAAK,cAAc,EAAE,KAAK,eAAe,KAAG,OAAO,CAAC,IAAI,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/server/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAQ5D,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AA0G1F,eAAO,MAAM,eAAe,GAAU,KAAK,cAAc,EAAE,KAAK,eAAe,KAAG,OAAO,CAAC,IAAI,CA83B7F,CAAC;AAGF,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,mBAAmB,EAAE,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AACrK,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AACxF,YAAY,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,YAAY,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACpE,mBAAmB,gBAAgB,CAAC"}
|
package/dist/server/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { drive_default as DatabaseMongoDrive, driveAPIHandler, driveCleanup, driveConfiguration, driveDelete, driveFilePath, driveFileSchemaZod, driveGetUrl, driveInfo, driveList, driveListFiles, driveReadFile, driveUpload, getDriveConfig, getDriveInformation } from '../chunk-
|
|
2
|
-
export { driveCreateUrl } from '../chunk-
|
|
1
|
+
export { drive_default as DatabaseMongoDrive, driveAPIHandler, driveCleanup, driveConfiguration, driveDelete, driveFilePath, driveFileSchemaZod, driveGetUrl, driveInfo, driveList, driveListFiles, driveReadFile, driveUpload, getDriveConfig, getDriveInformation } from '../chunk-MVYNW56R.js';
|
|
2
|
+
export { driveCreateUrl } from '../chunk-OSYRIHH4.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|