@gallop.software/studio 0.1.92 → 0.1.94
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/{StudioUI-7VQHCHFQ.mjs → StudioUI-GKE5ZWKW.mjs} +1155 -585
- package/dist/StudioUI-GKE5ZWKW.mjs.map +1 -0
- package/dist/{StudioUI-VRSG32E3.js → StudioUI-QBIGDYYL.js} +811 -241
- package/dist/StudioUI-QBIGDYYL.js.map +1 -0
- package/dist/{chunk-DTVEVFQ2.mjs → chunk-IHXG2EE4.mjs} +1 -1
- package/dist/chunk-IHXG2EE4.mjs.map +1 -0
- package/dist/{chunk-L36EH3PM.js → chunk-MCJNUXQ6.js} +1 -1
- package/dist/chunk-MCJNUXQ6.js.map +1 -0
- package/dist/handlers/index.d.mts +1 -15
- package/dist/handlers/index.d.ts +1 -15
- package/dist/handlers/index.js +222 -42
- package/dist/handlers/index.js.map +1 -1
- package/dist/handlers/index.mjs +209 -29
- package/dist/handlers/index.mjs.map +1 -1
- package/dist/index.d.mts +62 -2
- package/dist/index.d.ts +62 -2
- package/dist/index.js +3 -3
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/StudioUI-7VQHCHFQ.mjs.map +0 -1
- package/dist/StudioUI-VRSG32E3.js.map +0 -1
- package/dist/chunk-DTVEVFQ2.mjs.map +0 -1
- package/dist/chunk-L36EH3PM.js.map +0 -1
- package/dist/types-C4hCz2w8.d.mts +0 -62
- package/dist/types-C4hCz2w8.d.ts +0 -62
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Meta entry - works for images and non-images
|
|
3
|
-
* Images have w, h, b (after processing)
|
|
4
|
-
* Non-images just have c (if pushed to CDN)
|
|
5
|
-
*/
|
|
6
|
-
interface MetaEntry {
|
|
7
|
-
w?: number;
|
|
8
|
-
h?: number;
|
|
9
|
-
b?: string;
|
|
10
|
-
p?: 1;
|
|
11
|
-
c?: 1;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Meta schema - keyed by path from public folder
|
|
15
|
-
* Example: { "/portfolio/photo.jpg": { w: 2400, h: 1600, blur: "..." } }
|
|
16
|
-
*/
|
|
17
|
-
type LeanMeta = Record<string, MetaEntry>;
|
|
18
|
-
type LeanImageEntry = MetaEntry;
|
|
19
|
-
/**
|
|
20
|
-
* File/folder item for browser
|
|
21
|
-
*/
|
|
22
|
-
interface FileItem {
|
|
23
|
-
name: string;
|
|
24
|
-
path: string;
|
|
25
|
-
type: 'file' | 'folder';
|
|
26
|
-
size?: number;
|
|
27
|
-
dimensions?: {
|
|
28
|
-
width: number;
|
|
29
|
-
height: number;
|
|
30
|
-
};
|
|
31
|
-
isProcessed?: boolean;
|
|
32
|
-
cdnPushed?: boolean;
|
|
33
|
-
fileCount?: number;
|
|
34
|
-
totalSize?: number;
|
|
35
|
-
thumbnail?: string;
|
|
36
|
-
hasThumbnail?: boolean;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Studio configuration
|
|
40
|
-
*/
|
|
41
|
-
interface StudioConfig {
|
|
42
|
-
r2AccountId?: string;
|
|
43
|
-
r2AccessKeyId?: string;
|
|
44
|
-
r2SecretAccessKey?: string;
|
|
45
|
-
r2BucketName?: string;
|
|
46
|
-
r2PublicUrl?: string;
|
|
47
|
-
thumbnailSizes?: {
|
|
48
|
-
small: number;
|
|
49
|
-
medium: number;
|
|
50
|
-
large: number;
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Get thumbnail path from original image path
|
|
55
|
-
*/
|
|
56
|
-
declare function getThumbnailPath(originalPath: string, size: 'sm' | 'md' | 'lg' | 'full'): string;
|
|
57
|
-
/**
|
|
58
|
-
* Get all thumbnail paths for an image
|
|
59
|
-
*/
|
|
60
|
-
declare function getAllThumbnailPaths(originalPath: string): string[];
|
|
61
|
-
|
|
62
|
-
export { type FileItem as F, type LeanImageEntry as L, type StudioConfig as S, type LeanMeta as a, getThumbnailPath as b, getAllThumbnailPaths as g };
|
package/dist/types-C4hCz2w8.d.ts
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Meta entry - works for images and non-images
|
|
3
|
-
* Images have w, h, b (after processing)
|
|
4
|
-
* Non-images just have c (if pushed to CDN)
|
|
5
|
-
*/
|
|
6
|
-
interface MetaEntry {
|
|
7
|
-
w?: number;
|
|
8
|
-
h?: number;
|
|
9
|
-
b?: string;
|
|
10
|
-
p?: 1;
|
|
11
|
-
c?: 1;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Meta schema - keyed by path from public folder
|
|
15
|
-
* Example: { "/portfolio/photo.jpg": { w: 2400, h: 1600, blur: "..." } }
|
|
16
|
-
*/
|
|
17
|
-
type LeanMeta = Record<string, MetaEntry>;
|
|
18
|
-
type LeanImageEntry = MetaEntry;
|
|
19
|
-
/**
|
|
20
|
-
* File/folder item for browser
|
|
21
|
-
*/
|
|
22
|
-
interface FileItem {
|
|
23
|
-
name: string;
|
|
24
|
-
path: string;
|
|
25
|
-
type: 'file' | 'folder';
|
|
26
|
-
size?: number;
|
|
27
|
-
dimensions?: {
|
|
28
|
-
width: number;
|
|
29
|
-
height: number;
|
|
30
|
-
};
|
|
31
|
-
isProcessed?: boolean;
|
|
32
|
-
cdnPushed?: boolean;
|
|
33
|
-
fileCount?: number;
|
|
34
|
-
totalSize?: number;
|
|
35
|
-
thumbnail?: string;
|
|
36
|
-
hasThumbnail?: boolean;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Studio configuration
|
|
40
|
-
*/
|
|
41
|
-
interface StudioConfig {
|
|
42
|
-
r2AccountId?: string;
|
|
43
|
-
r2AccessKeyId?: string;
|
|
44
|
-
r2SecretAccessKey?: string;
|
|
45
|
-
r2BucketName?: string;
|
|
46
|
-
r2PublicUrl?: string;
|
|
47
|
-
thumbnailSizes?: {
|
|
48
|
-
small: number;
|
|
49
|
-
medium: number;
|
|
50
|
-
large: number;
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Get thumbnail path from original image path
|
|
55
|
-
*/
|
|
56
|
-
declare function getThumbnailPath(originalPath: string, size: 'sm' | 'md' | 'lg' | 'full'): string;
|
|
57
|
-
/**
|
|
58
|
-
* Get all thumbnail paths for an image
|
|
59
|
-
*/
|
|
60
|
-
declare function getAllThumbnailPaths(originalPath: string): string[];
|
|
61
|
-
|
|
62
|
-
export { type FileItem as F, type LeanImageEntry as L, type StudioConfig as S, type LeanMeta as a, getThumbnailPath as b, getAllThumbnailPaths as g };
|