img-upload-kit 0.0.0-stage → 2.0.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.
- package/CHANGELOG.md +89 -0
- package/LICENSE +21 -0
- package/MIGRATION.md +192 -0
- package/README.md +242 -2
- package/dist/bin.js +1186 -0
- package/dist/bin.js.map +1 -0
- package/dist/blur.cjs +41 -0
- package/dist/blur.cjs.map +1 -0
- package/dist/blur.d.cts +17 -0
- package/dist/blur.d.ts +17 -0
- package/dist/blur.js +41 -0
- package/dist/blur.js.map +1 -0
- package/dist/blurDataUtils-DveBRtqE.d.cts +43 -0
- package/dist/blurDataUtils-yx9Q6HlU.d.ts +43 -0
- package/dist/blurService-D5TpMNji.d.ts +83 -0
- package/dist/blurService-DacwylJx.d.cts +83 -0
- package/dist/chunk-2OVNXHTN.cjs +514 -0
- package/dist/chunk-2OVNXHTN.cjs.map +1 -0
- package/dist/chunk-3ICG2SLL.cjs +135 -0
- package/dist/chunk-3ICG2SLL.cjs.map +1 -0
- package/dist/chunk-4ASFG3KB.js +514 -0
- package/dist/chunk-4ASFG3KB.js.map +1 -0
- package/dist/chunk-AI3JJLSA.js +2370 -0
- package/dist/chunk-AI3JJLSA.js.map +1 -0
- package/dist/chunk-CV23O4YU.js +145 -0
- package/dist/chunk-CV23O4YU.js.map +1 -0
- package/dist/chunk-G7LLSKBV.js +158 -0
- package/dist/chunk-G7LLSKBV.js.map +1 -0
- package/dist/chunk-IB3TEDLR.js +294 -0
- package/dist/chunk-IB3TEDLR.js.map +1 -0
- package/dist/chunk-KJVYWKIG.cjs +158 -0
- package/dist/chunk-KJVYWKIG.cjs.map +1 -0
- package/dist/chunk-NEDBIIE3.cjs +226 -0
- package/dist/chunk-NEDBIIE3.cjs.map +1 -0
- package/dist/chunk-QHU7FUO4.cjs +37 -0
- package/dist/chunk-QHU7FUO4.cjs.map +1 -0
- package/dist/chunk-QQHZJKNA.js +135 -0
- package/dist/chunk-QQHZJKNA.js.map +1 -0
- package/dist/chunk-S2IFAWJK.js +37 -0
- package/dist/chunk-S2IFAWJK.js.map +1 -0
- package/dist/chunk-TT5C7K3Q.js +226 -0
- package/dist/chunk-TT5C7K3Q.js.map +1 -0
- package/dist/chunk-U2TWTEBY.cjs +2370 -0
- package/dist/chunk-U2TWTEBY.cjs.map +1 -0
- package/dist/chunk-WISG74VL.cjs +294 -0
- package/dist/chunk-WISG74VL.cjs.map +1 -0
- package/dist/chunk-YRXXQUDE.cjs +145 -0
- package/dist/chunk-YRXXQUDE.cjs.map +1 -0
- package/dist/cli.cjs +1241 -0
- package/dist/cli.cjs.map +1 -0
- package/dist/cli.d.cts +99 -0
- package/dist/cli.d.ts +99 -0
- package/dist/cli.js +1194 -0
- package/dist/cli.js.map +1 -0
- package/dist/headless.cjs +27 -0
- package/dist/headless.cjs.map +1 -0
- package/dist/headless.d.cts +4 -0
- package/dist/headless.d.ts +4 -0
- package/dist/headless.js +27 -0
- package/dist/headless.js.map +1 -0
- package/dist/index-BIdnqtW8.d.ts +234 -0
- package/dist/index-Brk_uHs6.d.cts +234 -0
- package/dist/index-CPMlaQsC.d.ts +635 -0
- package/dist/index-DHINe-rA.d.cts +635 -0
- package/dist/index.cjs +65 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +43 -0
- package/dist/index.d.ts +43 -0
- package/dist/index.js +65 -0
- package/dist/index.js.map +1 -0
- package/dist/memoryAdapter-Ck0ccZbF.d.cts +25 -0
- package/dist/memoryAdapter-DxEKaG0b.d.ts +25 -0
- package/dist/placeholders-C4ftwaII.d.ts +5 -0
- package/dist/placeholders-x_3rt65M.d.cts +5 -0
- package/dist/react.cjs +3779 -0
- package/dist/react.cjs.map +1 -0
- package/dist/react.d.cts +476 -0
- package/dist/react.d.ts +476 -0
- package/dist/react.js +3779 -0
- package/dist/react.js.map +1 -0
- package/dist/server-handler.cjs +14 -0
- package/dist/server-handler.cjs.map +1 -0
- package/dist/server-handler.d.cts +3 -0
- package/dist/server-handler.d.ts +3 -0
- package/dist/server-handler.js +14 -0
- package/dist/server-handler.js.map +1 -0
- package/dist/server.cjs +1801 -0
- package/dist/server.cjs.map +1 -0
- package/dist/server.d.cts +142 -0
- package/dist/server.d.ts +142 -0
- package/dist/server.js +1801 -0
- package/dist/server.js.map +1 -0
- package/dist/storage.cjs +447 -0
- package/dist/storage.cjs.map +1 -0
- package/dist/storage.d.cts +163 -0
- package/dist/storage.d.ts +163 -0
- package/dist/storage.js +447 -0
- package/dist/storage.js.map +1 -0
- package/dist/styles/animated-image.css +112 -0
- package/dist/styles/dropzone-and-tiles.css +247 -0
- package/dist/styles/modals-and-dock.css +248 -0
- package/dist/styles/primitives.css +197 -0
- package/dist/styles/quality-and-inputs.css +184 -0
- package/dist/styles/tokens.css +123 -0
- package/dist/styles.css +1122 -0
- package/dist/types-BrP-o9nd.d.cts +85 -0
- package/dist/types-sZ3KoFQY.d.ts +85 -0
- package/dist/types-yShGNQnW.d.cts +61 -0
- package/dist/types-yShGNQnW.d.ts +61 -0
- package/dist/upload-C5Trd6Dh.d.cts +154 -0
- package/dist/upload-C5Trd6Dh.d.ts +154 -0
- package/package.json +198 -4
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkYRXXQUDEcjs = require('./chunk-YRXXQUDE.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
var _chunk3ICG2SLLcjs = require('./chunk-3ICG2SLL.cjs');
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
var _chunkKJVYWKIGcjs = require('./chunk-KJVYWKIG.cjs');
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
var _chunkNEDBIIE3cjs = require('./chunk-NEDBIIE3.cjs');
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
exports.DEFAULT_ALLOWED_FORMATS = _chunkNEDBIIE3cjs.DEFAULT_ALLOWED_FORMATS; exports.DEFAULT_BLUR_COLOR = _chunkNEDBIIE3cjs.DEFAULT_BLUR_COLOR; exports.DEFAULT_IMAGE_DIMENSIONS = _chunkNEDBIIE3cjs.DEFAULT_IMAGE_DIMENSIONS; exports.QUALITY_PRESETS = _chunkKJVYWKIGcjs.QUALITY_PRESETS; exports.RASTER_ALLOWED_FORMATS = _chunkNEDBIIE3cjs.RASTER_ALLOWED_FORMATS; exports.STANDARD_PRESETS = _chunkNEDBIIE3cjs.STANDARD_PRESETS; exports.SVG_MIME_TYPE = _chunkNEDBIIE3cjs.SVG_MIME_TYPE; exports.calculateReduction = _chunkKJVYWKIGcjs.calculateReduction; exports.createMemoryStorageAdapter = _chunkYRXXQUDEcjs.createMemoryStorageAdapter; exports.createSuccessMessage = _chunkKJVYWKIGcjs.createSuccessMessage; exports.decodeBlurHashToDataURL = _chunk3ICG2SLLcjs.decodeBlurHashToDataURL; exports.defineUploadPresets = _chunkNEDBIIE3cjs.defineUploadPresets; exports.estimateOutputSize = _chunkKJVYWKIGcjs.estimateOutputSize; exports.formatFileSize = _chunkKJVYWKIGcjs.formatFileSize; exports.generateColorSvgDataURL = _chunkNEDBIIE3cjs.generateColorSvgDataURL; exports.getBackgroundPropsWithBlur = _chunk3ICG2SLLcjs.getBackgroundPropsWithBlur; exports.getBlurData = _chunk3ICG2SLLcjs.getBlurData; exports.getFriendlyErrorMessage = _chunkKJVYWKIGcjs.getFriendlyErrorMessage; exports.getImagePropsWithBlur = _chunk3ICG2SLLcjs.getImagePropsWithBlur; exports.getStatusMessage = _chunkKJVYWKIGcjs.getStatusMessage; exports.hexToRgb = _chunkNEDBIIE3cjs.hexToRgb; exports.normalizeColorInput = _chunkNEDBIIE3cjs.normalizeColorInput; exports.rgbToHex = _chunkNEDBIIE3cjs.rgbToHex; exports.validateImageFile = _chunkNEDBIIE3cjs.validateImageFile; exports.validateImageFileStrict = _chunkNEDBIIE3cjs.validateImageFileStrict; exports.validateImageFileWithName = _chunkNEDBIIE3cjs.validateImageFileWithName; exports.validateMultipleFiles = _chunkNEDBIIE3cjs.validateMultipleFiles;
|
|
65
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/image-upload-kit/image-upload-kit/dist/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,g0DAAC","file":"/home/runner/work/image-upload-kit/image-upload-kit/dist/index.cjs"}
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { U as UploadLocale, Q as QualityLevel } from './upload-C5Trd6Dh.cjs';
|
|
2
|
+
export { D as DEFAULT_ALLOWED_FORMATS, a as DEFAULT_IMAGE_DIMENSIONS, E as ExplicitOutputFormat, b as ImageDimensions, c as ImageOutputFormat, d as ImageUploadOptions, I as ImageUploadRecord, e as ImageVariant, f as QUALITY_PRESETS, g as QualityPreset, R as RASTER_ALLOWED_FORMATS, S as STANDARD_PRESETS, h as SVG_MIME_TYPE, i as StandardPresetName, j as UploadKitRegister, k as UploadPresetConfig, l as UploadPresetName, m as UploadedImageData, n as defineUploadPresets } from './upload-C5Trd6Dh.cjs';
|
|
3
|
+
export { S as StorageAdapter, c as StorageFileEntry, d as StorageFileMetadata, e as StorageListResult, f as StorageUploadOptions, g as StorageUploadParams, h as StorageUploadResult } from './types-BrP-o9nd.cjs';
|
|
4
|
+
export { c as createMemoryStorageAdapter } from './memoryAdapter-Ck0ccZbF.cjs';
|
|
5
|
+
export { a as BlurData, c as BlurImageSource, f as BlurPlaceholderType, g as BlurServiceConfig } from './types-yShGNQnW.cjs';
|
|
6
|
+
export { a as BlurServiceOptions } from './blurService-DacwylJx.cjs';
|
|
7
|
+
export { d as decodeBlurHashToDataURL, g as getBackgroundPropsWithBlur, a as getBlurData, h as getImagePropsWithBlur } from './blurDataUtils-DveBRtqE.cjs';
|
|
8
|
+
|
|
9
|
+
declare const DEFAULT_BLUR_COLOR = "#F5F5F5";
|
|
10
|
+
declare function normalizeColorInput(value?: string | null): string | null;
|
|
11
|
+
declare function hexToRgb(hex: string): {
|
|
12
|
+
r: number;
|
|
13
|
+
g: number;
|
|
14
|
+
b: number;
|
|
15
|
+
};
|
|
16
|
+
declare function rgbToHex(r: number, g: number, b: number): string;
|
|
17
|
+
declare function generateColorSvgDataURL(color?: string): string;
|
|
18
|
+
|
|
19
|
+
declare function formatFileSize(bytes: number): string;
|
|
20
|
+
declare function calculateReduction(original: number, optimized: number): number;
|
|
21
|
+
declare function estimateOutputSize(originalBytes: number, level: QualityLevel): number;
|
|
22
|
+
declare function getStatusMessage(progress: number, locale?: UploadLocale): string;
|
|
23
|
+
declare function createSuccessMessage(originalSize: number, optimizedSize: number, compact?: boolean, locale?: UploadLocale): string;
|
|
24
|
+
declare function getFriendlyErrorMessage(error: string, locale?: UploadLocale): string;
|
|
25
|
+
|
|
26
|
+
interface FileLike {
|
|
27
|
+
name?: string;
|
|
28
|
+
size: number;
|
|
29
|
+
type: string;
|
|
30
|
+
}
|
|
31
|
+
declare function validateImageFileStrict(file: FileLike, maxSizeMB: number, allowedFormats: string[]): {
|
|
32
|
+
valid: boolean;
|
|
33
|
+
error?: string;
|
|
34
|
+
};
|
|
35
|
+
declare function validateImageFile(file: FileLike, maxSizeMB: number, locale?: UploadLocale, allowedFormats?: string[]): string | null;
|
|
36
|
+
declare function validateImageFileWithName(file: FileLike & {
|
|
37
|
+
name: string;
|
|
38
|
+
}, maxSizeMB: number, locale?: UploadLocale): string | null;
|
|
39
|
+
declare function validateMultipleFiles(files: Array<FileLike & {
|
|
40
|
+
name: string;
|
|
41
|
+
}>, maxSizeMB: number, currentCount: number, maxImages: number, locale?: UploadLocale): string | null;
|
|
42
|
+
|
|
43
|
+
export { DEFAULT_BLUR_COLOR, type FileLike, QualityLevel, UploadLocale, calculateReduction, createSuccessMessage, estimateOutputSize, formatFileSize, generateColorSvgDataURL, getFriendlyErrorMessage, getStatusMessage, hexToRgb, normalizeColorInput, rgbToHex, validateImageFile, validateImageFileStrict, validateImageFileWithName, validateMultipleFiles };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { U as UploadLocale, Q as QualityLevel } from './upload-C5Trd6Dh.js';
|
|
2
|
+
export { D as DEFAULT_ALLOWED_FORMATS, a as DEFAULT_IMAGE_DIMENSIONS, E as ExplicitOutputFormat, b as ImageDimensions, c as ImageOutputFormat, d as ImageUploadOptions, I as ImageUploadRecord, e as ImageVariant, f as QUALITY_PRESETS, g as QualityPreset, R as RASTER_ALLOWED_FORMATS, S as STANDARD_PRESETS, h as SVG_MIME_TYPE, i as StandardPresetName, j as UploadKitRegister, k as UploadPresetConfig, l as UploadPresetName, m as UploadedImageData, n as defineUploadPresets } from './upload-C5Trd6Dh.js';
|
|
3
|
+
export { S as StorageAdapter, c as StorageFileEntry, d as StorageFileMetadata, e as StorageListResult, f as StorageUploadOptions, g as StorageUploadParams, h as StorageUploadResult } from './types-sZ3KoFQY.js';
|
|
4
|
+
export { c as createMemoryStorageAdapter } from './memoryAdapter-DxEKaG0b.js';
|
|
5
|
+
export { a as BlurData, c as BlurImageSource, f as BlurPlaceholderType, g as BlurServiceConfig } from './types-yShGNQnW.js';
|
|
6
|
+
export { a as BlurServiceOptions } from './blurService-D5TpMNji.js';
|
|
7
|
+
export { d as decodeBlurHashToDataURL, g as getBackgroundPropsWithBlur, a as getBlurData, h as getImagePropsWithBlur } from './blurDataUtils-yx9Q6HlU.js';
|
|
8
|
+
|
|
9
|
+
declare const DEFAULT_BLUR_COLOR = "#F5F5F5";
|
|
10
|
+
declare function normalizeColorInput(value?: string | null): string | null;
|
|
11
|
+
declare function hexToRgb(hex: string): {
|
|
12
|
+
r: number;
|
|
13
|
+
g: number;
|
|
14
|
+
b: number;
|
|
15
|
+
};
|
|
16
|
+
declare function rgbToHex(r: number, g: number, b: number): string;
|
|
17
|
+
declare function generateColorSvgDataURL(color?: string): string;
|
|
18
|
+
|
|
19
|
+
declare function formatFileSize(bytes: number): string;
|
|
20
|
+
declare function calculateReduction(original: number, optimized: number): number;
|
|
21
|
+
declare function estimateOutputSize(originalBytes: number, level: QualityLevel): number;
|
|
22
|
+
declare function getStatusMessage(progress: number, locale?: UploadLocale): string;
|
|
23
|
+
declare function createSuccessMessage(originalSize: number, optimizedSize: number, compact?: boolean, locale?: UploadLocale): string;
|
|
24
|
+
declare function getFriendlyErrorMessage(error: string, locale?: UploadLocale): string;
|
|
25
|
+
|
|
26
|
+
interface FileLike {
|
|
27
|
+
name?: string;
|
|
28
|
+
size: number;
|
|
29
|
+
type: string;
|
|
30
|
+
}
|
|
31
|
+
declare function validateImageFileStrict(file: FileLike, maxSizeMB: number, allowedFormats: string[]): {
|
|
32
|
+
valid: boolean;
|
|
33
|
+
error?: string;
|
|
34
|
+
};
|
|
35
|
+
declare function validateImageFile(file: FileLike, maxSizeMB: number, locale?: UploadLocale, allowedFormats?: string[]): string | null;
|
|
36
|
+
declare function validateImageFileWithName(file: FileLike & {
|
|
37
|
+
name: string;
|
|
38
|
+
}, maxSizeMB: number, locale?: UploadLocale): string | null;
|
|
39
|
+
declare function validateMultipleFiles(files: Array<FileLike & {
|
|
40
|
+
name: string;
|
|
41
|
+
}>, maxSizeMB: number, currentCount: number, maxImages: number, locale?: UploadLocale): string | null;
|
|
42
|
+
|
|
43
|
+
export { DEFAULT_BLUR_COLOR, type FileLike, QualityLevel, UploadLocale, calculateReduction, createSuccessMessage, estimateOutputSize, formatFileSize, generateColorSvgDataURL, getFriendlyErrorMessage, getStatusMessage, hexToRgb, normalizeColorInput, rgbToHex, validateImageFile, validateImageFileStrict, validateImageFileWithName, validateMultipleFiles };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createMemoryStorageAdapter
|
|
3
|
+
} from "./chunk-CV23O4YU.js";
|
|
4
|
+
import {
|
|
5
|
+
decodeBlurHashToDataURL,
|
|
6
|
+
getBackgroundPropsWithBlur,
|
|
7
|
+
getBlurData,
|
|
8
|
+
getImagePropsWithBlur
|
|
9
|
+
} from "./chunk-QQHZJKNA.js";
|
|
10
|
+
import {
|
|
11
|
+
QUALITY_PRESETS,
|
|
12
|
+
calculateReduction,
|
|
13
|
+
createSuccessMessage,
|
|
14
|
+
estimateOutputSize,
|
|
15
|
+
formatFileSize,
|
|
16
|
+
getFriendlyErrorMessage,
|
|
17
|
+
getStatusMessage
|
|
18
|
+
} from "./chunk-G7LLSKBV.js";
|
|
19
|
+
import {
|
|
20
|
+
DEFAULT_ALLOWED_FORMATS,
|
|
21
|
+
DEFAULT_BLUR_COLOR,
|
|
22
|
+
DEFAULT_IMAGE_DIMENSIONS,
|
|
23
|
+
RASTER_ALLOWED_FORMATS,
|
|
24
|
+
STANDARD_PRESETS,
|
|
25
|
+
SVG_MIME_TYPE,
|
|
26
|
+
defineUploadPresets,
|
|
27
|
+
generateColorSvgDataURL,
|
|
28
|
+
hexToRgb,
|
|
29
|
+
normalizeColorInput,
|
|
30
|
+
rgbToHex,
|
|
31
|
+
validateImageFile,
|
|
32
|
+
validateImageFileStrict,
|
|
33
|
+
validateImageFileWithName,
|
|
34
|
+
validateMultipleFiles
|
|
35
|
+
} from "./chunk-TT5C7K3Q.js";
|
|
36
|
+
export {
|
|
37
|
+
DEFAULT_ALLOWED_FORMATS,
|
|
38
|
+
DEFAULT_BLUR_COLOR,
|
|
39
|
+
DEFAULT_IMAGE_DIMENSIONS,
|
|
40
|
+
QUALITY_PRESETS,
|
|
41
|
+
RASTER_ALLOWED_FORMATS,
|
|
42
|
+
STANDARD_PRESETS,
|
|
43
|
+
SVG_MIME_TYPE,
|
|
44
|
+
calculateReduction,
|
|
45
|
+
createMemoryStorageAdapter,
|
|
46
|
+
createSuccessMessage,
|
|
47
|
+
decodeBlurHashToDataURL,
|
|
48
|
+
defineUploadPresets,
|
|
49
|
+
estimateOutputSize,
|
|
50
|
+
formatFileSize,
|
|
51
|
+
generateColorSvgDataURL,
|
|
52
|
+
getBackgroundPropsWithBlur,
|
|
53
|
+
getBlurData,
|
|
54
|
+
getFriendlyErrorMessage,
|
|
55
|
+
getImagePropsWithBlur,
|
|
56
|
+
getStatusMessage,
|
|
57
|
+
hexToRgb,
|
|
58
|
+
normalizeColorInput,
|
|
59
|
+
rgbToHex,
|
|
60
|
+
validateImageFile,
|
|
61
|
+
validateImageFileStrict,
|
|
62
|
+
validateImageFileWithName,
|
|
63
|
+
validateMultipleFiles
|
|
64
|
+
};
|
|
65
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { S as StorageAdapter, a as StorageListOptions, b as StoragePaginatedListResult } from './types-BrP-o9nd.cjs';
|
|
2
|
+
|
|
3
|
+
interface StoredMemoryObject {
|
|
4
|
+
bucket: string;
|
|
5
|
+
path: string;
|
|
6
|
+
data: Uint8Array;
|
|
7
|
+
contentType: string;
|
|
8
|
+
createdAt: string;
|
|
9
|
+
metadata?: Record<string, string>;
|
|
10
|
+
}
|
|
11
|
+
interface MemoryStorageAdapter extends StorageAdapter {
|
|
12
|
+
exists(bucket: string, path: string): Promise<boolean>;
|
|
13
|
+
getPublicUrl(bucket: string, path: string): string;
|
|
14
|
+
list(bucket: string, folder?: string, options?: StorageListOptions): Promise<StoragePaginatedListResult>;
|
|
15
|
+
deleteByUrl(url: string): Promise<boolean>;
|
|
16
|
+
getObject(bucket: string, path: string): StoredMemoryObject | undefined;
|
|
17
|
+
clear(): void;
|
|
18
|
+
readonly size: number;
|
|
19
|
+
}
|
|
20
|
+
interface MemoryStorageOptions {
|
|
21
|
+
baseUrl?: string;
|
|
22
|
+
}
|
|
23
|
+
declare function createMemoryStorageAdapter(options?: MemoryStorageOptions): MemoryStorageAdapter;
|
|
24
|
+
|
|
25
|
+
export { type MemoryStorageAdapter as M, type StoredMemoryObject as S, type MemoryStorageOptions as a, createMemoryStorageAdapter as c };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { S as StorageAdapter, a as StorageListOptions, b as StoragePaginatedListResult } from './types-sZ3KoFQY.js';
|
|
2
|
+
|
|
3
|
+
interface StoredMemoryObject {
|
|
4
|
+
bucket: string;
|
|
5
|
+
path: string;
|
|
6
|
+
data: Uint8Array;
|
|
7
|
+
contentType: string;
|
|
8
|
+
createdAt: string;
|
|
9
|
+
metadata?: Record<string, string>;
|
|
10
|
+
}
|
|
11
|
+
interface MemoryStorageAdapter extends StorageAdapter {
|
|
12
|
+
exists(bucket: string, path: string): Promise<boolean>;
|
|
13
|
+
getPublicUrl(bucket: string, path: string): string;
|
|
14
|
+
list(bucket: string, folder?: string, options?: StorageListOptions): Promise<StoragePaginatedListResult>;
|
|
15
|
+
deleteByUrl(url: string): Promise<boolean>;
|
|
16
|
+
getObject(bucket: string, path: string): StoredMemoryObject | undefined;
|
|
17
|
+
clear(): void;
|
|
18
|
+
readonly size: number;
|
|
19
|
+
}
|
|
20
|
+
interface MemoryStorageOptions {
|
|
21
|
+
baseUrl?: string;
|
|
22
|
+
}
|
|
23
|
+
declare function createMemoryStorageAdapter(options?: MemoryStorageOptions): MemoryStorageAdapter;
|
|
24
|
+
|
|
25
|
+
export { type MemoryStorageAdapter as M, type StoredMemoryObject as S, type MemoryStorageOptions as a, createMemoryStorageAdapter as c };
|