@gallop.software/studio 2.0.6 → 2.1.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/dist/index.d.ts DELETED
@@ -1,90 +0,0 @@
1
- /**
2
- * Dimensions object {w, h}
3
- */
4
- interface Dimensions {
5
- w: number;
6
- h: number;
7
- }
8
- /**
9
- * Meta entry - works for images and non-images
10
- * o: original dimensions, b: blurhash, c: CDN index
11
- * sm/md/lg/f: thumbnail dimensions (presence implies processed)
12
- */
13
- interface MetaEntry {
14
- o?: Dimensions;
15
- b?: string;
16
- sm?: Dimensions;
17
- md?: Dimensions;
18
- lg?: Dimensions;
19
- f?: Dimensions;
20
- c?: number;
21
- }
22
- /**
23
- * Full meta schema including special keys
24
- * _cdns: Array of CDN base URLs
25
- * Other keys: file paths from public folder
26
- */
27
- interface FullMeta {
28
- _cdns?: string[];
29
- [key: string]: MetaEntry | string[] | undefined;
30
- }
31
- /**
32
- * Meta schema - keyed by path from public folder
33
- * Example: { "/portfolio/photo.jpg": { o: {w:2400,h:1600}, b: "...", sm: {w:300,h:200}, ... } }
34
- */
35
- type LeanMeta = Record<string, MetaEntry>;
36
- type LeanImageEntry = MetaEntry;
37
- /**
38
- * File/folder item for browser
39
- */
40
- interface FileItem {
41
- name: string;
42
- path: string;
43
- type: 'file' | 'folder';
44
- size?: number;
45
- dimensions?: {
46
- width: number;
47
- height: number;
48
- };
49
- isProcessed?: boolean;
50
- cdnPushed?: boolean;
51
- cdnBaseUrl?: string;
52
- isRemote?: boolean;
53
- isProtected?: boolean;
54
- fileCount?: number;
55
- totalSize?: number;
56
- cloudCount?: number;
57
- remoteCount?: number;
58
- localCount?: number;
59
- thumbnail?: string;
60
- hasThumbnail?: boolean;
61
- }
62
- /**
63
- * Studio configuration
64
- */
65
- interface StudioConfig {
66
- r2AccountId?: string;
67
- r2AccessKeyId?: string;
68
- r2SecretAccessKey?: string;
69
- r2BucketName?: string;
70
- r2PublicUrl?: string;
71
- thumbnailSizes?: {
72
- small: number;
73
- medium: number;
74
- large: number;
75
- };
76
- }
77
- /**
78
- * Get thumbnail path from original image path
79
- */
80
- declare function getThumbnailPath(originalPath: string, size: 'sm' | 'md' | 'lg' | 'full'): string;
81
- /**
82
- * Get all thumbnail paths for an image
83
- */
84
- declare function getAllThumbnailPaths(originalPath: string): string[];
85
- /**
86
- * Check if an image entry is processed (has any thumbnail dimensions)
87
- */
88
- declare function isProcessed(entry: MetaEntry | undefined): boolean;
89
-
90
- export { type Dimensions, type FileItem, type FullMeta, type LeanImageEntry, type LeanMeta, type MetaEntry, type StudioConfig, getAllThumbnailPaths, getThumbnailPath, isProcessed };
package/dist/index.js DELETED
@@ -1,11 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
-
5
- var _chunkVI6QG6WTjs = require('./chunk-VI6QG6WT.js');
6
-
7
-
8
-
9
-
10
- exports.getAllThumbnailPaths = _chunkVI6QG6WTjs.getAllThumbnailPaths; exports.getThumbnailPath = _chunkVI6QG6WTjs.getThumbnailPath; exports.isProcessed = _chunkVI6QG6WTjs.isProcessed;
11
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/Users/chrisb/Sites/studio/dist/index.js"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACF,sDAA4B;AAC5B;AACE;AACA;AACA;AACF,uLAAC","file":"/Users/chrisb/Sites/studio/dist/index.js"}
package/dist/index.mjs DELETED
@@ -1,11 +0,0 @@
1
- import {
2
- getAllThumbnailPaths,
3
- getThumbnailPath,
4
- isProcessed
5
- } from "./chunk-TRYWHLJ2.mjs";
6
- export {
7
- getAllThumbnailPaths,
8
- getThumbnailPath,
9
- isProcessed
10
- };
11
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
package/next.config.mjs DELETED
@@ -1,20 +0,0 @@
1
- /** @type {import('next').NextConfig} */
2
- const nextConfig = {
3
- // Enable standalone output for better CLI experience
4
- output: 'standalone',
5
-
6
- // Emotion requires this for the css prop to work
7
- compiler: {
8
- emotion: true,
9
- },
10
-
11
- // Environment variables to expose to the client
12
- env: {
13
- NEXT_PUBLIC_STUDIO_WORKSPACE: process.env.STUDIO_WORKSPACE || process.cwd(),
14
- },
15
-
16
- // Transpile the src folder (not needed since we use compiled dist)
17
- // transpilePackages: ['./src'],
18
- }
19
-
20
- export default nextConfig