@@ -102,7 +102,7 @@ Your theme package must be a valid npm package with:
102102 "files" : [" public" , " src" , " astro.config.ts" , " tsconfig.json" ],
103103 "dependencies" : {
104104 "astro" : " ^5.11.0" ,
105- "@simple-photo-gallery/common" : " ^2.1.2 "
105+ "@simple-photo-gallery/common" : " ^2.1.3 "
106106 }
107107}
108108```
@@ -127,7 +127,9 @@ if (!sourceGalleryPath) {
127127 throw new Error (" GALLERY_JSON_PATH environment variable is not set" );
128128}
129129
130- const outputDir = process .env .GALLERY_OUTPUT_DIR || sourceGalleryPath .replace (" gallery.json" , " " );
130+ const outputDir =
131+ process .env .GALLERY_OUTPUT_DIR ||
132+ sourceGalleryPath .replace (" gallery.json" , " " );
131133
132134export default defineConfig ({
133135 output: " static" ,
@@ -401,7 +403,9 @@ const gallery = loadGalleryData("./gallery.json", { validate: true });
401403``` typescript
402404import { resolveGalleryData } from " @simple-photo-gallery/common/theme" ;
403405
404- const resolved = await resolveGalleryData (gallery , { galleryJsonPath: " ./gallery.json" });
406+ const resolved = await resolveGalleryData (gallery , {
407+ galleryJsonPath: " ./gallery.json" ,
408+ });
405409
406410// Access pre-computed data
407411resolved .hero .src ; // Computed hero image path
@@ -454,7 +458,10 @@ initHeroImageFallback();
454458** CSS Utilities:**
455459
456460``` typescript
457- import { setCSSVar , deriveOpacityColor } from " @simple-photo-gallery/common/client" ;
461+ import {
462+ setCSSVar ,
463+ deriveOpacityColor ,
464+ } from " @simple-photo-gallery/common/client" ;
458465
459466// Set CSS custom properties dynamically
460467setCSSVar (" --primary-color" , " #007bff" );
0 commit comments