simple-photo-gallery 2.1.9 → 2.2.1
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
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# simple-photo-gallery
|
|
2
2
|
|
|
3
|
+
## 2.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fix bundled theme resolution when the CLI is invoked through a global npm binary symlink.
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @simple-photo-gallery/common@2.2.1
|
|
10
|
+
- @simple-photo-gallery/theme-modern@2.2.1
|
|
11
|
+
|
|
12
|
+
## 2.2.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- 2d5f072: Add media-level `srcset` support for responsive lightbox images.
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies [2d5f072]
|
|
21
|
+
- @simple-photo-gallery/common@2.2.0
|
|
22
|
+
- @simple-photo-gallery/theme-modern@2.2.0
|
|
23
|
+
|
|
3
24
|
## 2.1.9
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -18,6 +18,7 @@ const captionHtml = parsedCaption ? `<div class="image-caption markdown-content"
|
|
|
18
18
|
class="gallery-section__item"
|
|
19
19
|
href={image.imagePath}
|
|
20
20
|
data-pswp-src={image.imagePath}
|
|
21
|
+
data-pswp-srcset={image.srcset}
|
|
21
22
|
data-pswp-width={image.width}
|
|
22
23
|
data-pswp-height={image.height}
|
|
23
24
|
data-pswp-type={image.type}
|
package/dist/index.cjs
CHANGED
|
@@ -1318,7 +1318,9 @@ function isLocalThemePath(theme) {
|
|
|
1318
1318
|
return theme.startsWith("./") || theme.startsWith("../") || theme.startsWith("/");
|
|
1319
1319
|
}
|
|
1320
1320
|
function resolvePackageJsonPath(packageName) {
|
|
1321
|
-
const
|
|
1321
|
+
const cliPath = process8__default.default.argv[1];
|
|
1322
|
+
const installedCliPath = cliPath && fs10__default.default.existsSync(cliPath) ? fs10__default.default.realpathSync(cliPath) : void 0;
|
|
1323
|
+
const candidates = [path7__default.default.join(process8__default.default.cwd(), "package.json"), cliPath, installedCliPath].filter(Boolean);
|
|
1322
1324
|
for (const candidate of candidates) {
|
|
1323
1325
|
try {
|
|
1324
1326
|
return module$1.createRequire(candidate).resolve(`${packageName}/package.json`);
|
|
@@ -1907,7 +1909,7 @@ async function waitForUpdateCheck(checkPromise) {
|
|
|
1907
1909
|
// package.json
|
|
1908
1910
|
var package_default = {
|
|
1909
1911
|
name: "simple-photo-gallery",
|
|
1910
|
-
version: "2.1
|
|
1912
|
+
version: "2.2.1"};
|
|
1911
1913
|
|
|
1912
1914
|
// src/index.ts
|
|
1913
1915
|
var program = new commander.Command();
|