Skip to content

Commit db5f335

Browse files
authored
Merge pull request #140 from SimplePhotoGallery/feature/theme-styles-overide
chore: update dependencies to version 2.1.3 for common and theme-modern
2 parents 65f7d72 + adf6204 commit db5f335

5 files changed

Lines changed: 22 additions & 15 deletions

File tree

docs/themes.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

132134
export default defineConfig({
133135
output: "static",
@@ -401,7 +403,9 @@ const gallery = loadGalleryData("./gallery.json", { validate: true });
401403
```typescript
402404
import { 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
407411
resolved.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
460467
setCSSVar("--primary-color", "#007bff");

gallery/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "simple-photo-gallery",
3-
"version": "2.1.2",
3+
"version": "2.1.3",
44
"description": "Simple Photo Gallery CLI",
55
"license": "MIT",
66
"author": "Vladimir Haltakov, Tomasz Rusin",
@@ -47,8 +47,8 @@
4747
"prepublish": "yarn build"
4848
},
4949
"dependencies": {
50-
"@simple-photo-gallery/common": "2.1.2",
51-
"@simple-photo-gallery/theme-modern": "2.1.2",
50+
"@simple-photo-gallery/common": "2.1.3",
51+
"@simple-photo-gallery/theme-modern": "2.1.3",
5252
"axios": "^1.12.2",
5353
"blurhash": "^2.0.5",
5454
"commander": "^12.0.0",

gallery/src/modules/create-theme/templates/base/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"photoswipe": "^5.4.4"
2828
},
2929
"peerDependencies": {
30-
"@simple-photo-gallery/common": "^2.1.2"
30+
"@simple-photo-gallery/common": "^2.1.3"
3131
},
3232
"devDependencies": {
3333
"@eslint/eslintrc": "^3.3.1",

themes/modern/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@simple-photo-gallery/theme-modern",
3-
"version": "2.1.2",
3+
"version": "2.1.3",
44
"description": "Modern theme for Simple Photo Gallery",
55
"license": "MIT",
66
"author": "Vladimir Haltakov, Tomasz Rusin",
@@ -36,7 +36,7 @@
3636
"devDependencies": {
3737
"@eslint/eslintrc": "^3.3.1",
3838
"@eslint/js": "^9.30.1",
39-
"@simple-photo-gallery/common": "2.1.2",
39+
"@simple-photo-gallery/common": "2.1.3",
4040
"@types/photoswipe": "^4.1.6",
4141
"@typescript-eslint/eslint-plugin": "^8.35.1",
4242
"@typescript-eslint/parser": "^8.35.1",

yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1652,7 +1652,7 @@ __metadata:
16521652
languageName: node
16531653
linkType: hard
16541654

1655-
"@simple-photo-gallery/common@npm:2.1.2, @simple-photo-gallery/common@workspace:common":
1655+
"@simple-photo-gallery/common@npm:2.1.3, @simple-photo-gallery/common@workspace:common":
16561656
version: 0.0.0-use.local
16571657
resolution: "@simple-photo-gallery/common@workspace:common"
16581658
dependencies:
@@ -1687,13 +1687,13 @@ __metadata:
16871687
languageName: unknown
16881688
linkType: soft
16891689

1690-
"@simple-photo-gallery/theme-modern@npm:2.1.2, @simple-photo-gallery/theme-modern@workspace:themes/modern":
1690+
"@simple-photo-gallery/theme-modern@npm:2.1.3, @simple-photo-gallery/theme-modern@workspace:themes/modern":
16911691
version: 0.0.0-use.local
16921692
resolution: "@simple-photo-gallery/theme-modern@workspace:themes/modern"
16931693
dependencies:
16941694
"@eslint/eslintrc": "npm:^3.3.1"
16951695
"@eslint/js": "npm:^9.30.1"
1696-
"@simple-photo-gallery/common": "npm:2.1.2"
1696+
"@simple-photo-gallery/common": "npm:2.1.3"
16971697
"@types/photoswipe": "npm:^4.1.6"
16981698
"@typescript-eslint/eslint-plugin": "npm:^8.35.1"
16991699
"@typescript-eslint/parser": "npm:^8.35.1"
@@ -8570,8 +8570,8 @@ __metadata:
85708570
dependencies:
85718571
"@eslint/eslintrc": "npm:^3.3.1"
85728572
"@eslint/js": "npm:^9.30.1"
8573-
"@simple-photo-gallery/common": "npm:2.1.2"
8574-
"@simple-photo-gallery/theme-modern": "npm:2.1.2"
8573+
"@simple-photo-gallery/common": "npm:2.1.3"
8574+
"@simple-photo-gallery/theme-modern": "npm:2.1.3"
85758575
"@types/fs-extra": "npm:^11.0.4"
85768576
"@types/jest": "npm:^30.0.0"
85778577
"@types/node": "npm:^24.0.10"

0 commit comments

Comments
 (0)