lynkow 1.31.10 → 1.31.11
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.mts +14 -6
- package/dist/index.d.ts +14 -6
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1940,12 +1940,18 @@ interface LynkowClient {
|
|
|
1940
1940
|
*/
|
|
1941
1941
|
interface ImageVariants {
|
|
1942
1942
|
/**
|
|
1943
|
-
*
|
|
1943
|
+
* 400px wide, scaled down proportionally (no crop), with sharpening.
|
|
1944
|
+
* The source aspect ratio is preserved, so a portrait source returns a
|
|
1945
|
+
* portrait variant. Compose with `aspect-ratio` and `object-fit` CSS to
|
|
1946
|
+
* constrain the display ratio in your layout.
|
|
1944
1947
|
* Use case: list views, grid thumbnails, small cards.
|
|
1945
1948
|
*/
|
|
1946
1949
|
thumbnail?: string;
|
|
1947
1950
|
/**
|
|
1948
|
-
*
|
|
1951
|
+
* 600px wide, scaled down proportionally (no crop). The source aspect
|
|
1952
|
+
* ratio is preserved, so a portrait source returns a portrait variant.
|
|
1953
|
+
* Compose with `aspect-ratio` and `object-fit` CSS to constrain the
|
|
1954
|
+
* display ratio in your layout.
|
|
1949
1955
|
* Use case: card layouts, blog post previews, medium-sized list items.
|
|
1950
1956
|
*/
|
|
1951
1957
|
card?: string;
|
|
@@ -2380,8 +2386,9 @@ interface CategoryWithCount extends Category {
|
|
|
2380
2386
|
* CDN-optimized image variants of the category image at multiple preset sizes.
|
|
2381
2387
|
* `undefined` when no image is set or the site has no image transformations configured.
|
|
2382
2388
|
*
|
|
2383
|
-
* Available presets: `thumbnail` (
|
|
2384
|
-
* `
|
|
2389
|
+
* Available presets: `thumbnail` (400w), `card` (600w), `medium` (960w),
|
|
2390
|
+
* `content` (1200w), `hero` (1920w), `full` (2560w), all width-only and
|
|
2391
|
+
* aspect-ratio-preserving, plus `og` (1200x630, social-share ratio).
|
|
2385
2392
|
*/
|
|
2386
2393
|
imageVariants?: ImageVariants;
|
|
2387
2394
|
/**
|
|
@@ -2821,8 +2828,9 @@ interface ContentSummary {
|
|
|
2821
2828
|
* CDN-optimized image variants of the featured image at multiple preset sizes.
|
|
2822
2829
|
* `undefined` when no featured image is set or the site has no image transformations configured.
|
|
2823
2830
|
*
|
|
2824
|
-
* Available presets: `thumbnail` (
|
|
2825
|
-
* `
|
|
2831
|
+
* Available presets: `thumbnail` (400w), `card` (600w), `medium` (960w),
|
|
2832
|
+
* `content` (1200w), `hero` (1920w), `full` (2560w), all width-only and
|
|
2833
|
+
* aspect-ratio-preserving, plus `og` (1200x630, social-share ratio).
|
|
2826
2834
|
*
|
|
2827
2835
|
* Use these instead of `featuredImage` for better performance and responsive layouts.
|
|
2828
2836
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -1940,12 +1940,18 @@ interface LynkowClient {
|
|
|
1940
1940
|
*/
|
|
1941
1941
|
interface ImageVariants {
|
|
1942
1942
|
/**
|
|
1943
|
-
*
|
|
1943
|
+
* 400px wide, scaled down proportionally (no crop), with sharpening.
|
|
1944
|
+
* The source aspect ratio is preserved, so a portrait source returns a
|
|
1945
|
+
* portrait variant. Compose with `aspect-ratio` and `object-fit` CSS to
|
|
1946
|
+
* constrain the display ratio in your layout.
|
|
1944
1947
|
* Use case: list views, grid thumbnails, small cards.
|
|
1945
1948
|
*/
|
|
1946
1949
|
thumbnail?: string;
|
|
1947
1950
|
/**
|
|
1948
|
-
*
|
|
1951
|
+
* 600px wide, scaled down proportionally (no crop). The source aspect
|
|
1952
|
+
* ratio is preserved, so a portrait source returns a portrait variant.
|
|
1953
|
+
* Compose with `aspect-ratio` and `object-fit` CSS to constrain the
|
|
1954
|
+
* display ratio in your layout.
|
|
1949
1955
|
* Use case: card layouts, blog post previews, medium-sized list items.
|
|
1950
1956
|
*/
|
|
1951
1957
|
card?: string;
|
|
@@ -2380,8 +2386,9 @@ interface CategoryWithCount extends Category {
|
|
|
2380
2386
|
* CDN-optimized image variants of the category image at multiple preset sizes.
|
|
2381
2387
|
* `undefined` when no image is set or the site has no image transformations configured.
|
|
2382
2388
|
*
|
|
2383
|
-
* Available presets: `thumbnail` (
|
|
2384
|
-
* `
|
|
2389
|
+
* Available presets: `thumbnail` (400w), `card` (600w), `medium` (960w),
|
|
2390
|
+
* `content` (1200w), `hero` (1920w), `full` (2560w), all width-only and
|
|
2391
|
+
* aspect-ratio-preserving, plus `og` (1200x630, social-share ratio).
|
|
2385
2392
|
*/
|
|
2386
2393
|
imageVariants?: ImageVariants;
|
|
2387
2394
|
/**
|
|
@@ -2821,8 +2828,9 @@ interface ContentSummary {
|
|
|
2821
2828
|
* CDN-optimized image variants of the featured image at multiple preset sizes.
|
|
2822
2829
|
* `undefined` when no featured image is set or the site has no image transformations configured.
|
|
2823
2830
|
*
|
|
2824
|
-
* Available presets: `thumbnail` (
|
|
2825
|
-
* `
|
|
2831
|
+
* Available presets: `thumbnail` (400w), `card` (600w), `medium` (960w),
|
|
2832
|
+
* `content` (1200w), `hero` (1920w), `full` (2560w), all width-only and
|
|
2833
|
+
* aspect-ratio-preserving, plus `og` (1200x630, social-share ratio).
|
|
2826
2834
|
*
|
|
2827
2835
|
* Use these instead of `featuredImage` for better performance and responsive layouts.
|
|
2828
2836
|
*/
|