@stacksjs/image 0.75.183 → 0.75.184

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.
Files changed (2) hide show
  1. package/README.md +4 -0
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -56,6 +56,8 @@ if (!verifyImageTransform(requestPath, expires, signature, secret))
56
56
 
57
57
  ## STX component and art direction
58
58
 
59
+ `<Image>` is supplied by `@stacksjs/components`, automatically loaded by Stacks.
60
+
59
61
  ```stx
60
62
  <Image
61
63
  src="{{ fallback.url }}"
@@ -72,3 +74,5 @@ if (!verifyImageTransform(requestPath, expires, signature, secret))
72
74
  ```
73
75
 
74
76
  Use `decorative` instead of empty alt text for decorative images. The component renders responsive, layout-stable HTML without requiring client JavaScript.
77
+
78
+ The library accepts `srcset` / `srcSet`, `fit` / `objectFit`, `position` / `objectPosition`, and `class` / `className`. `loading` sets the native loading hint; `priority` takes precedence and loads eagerly. `placeholder` supports `blur`, `thumbhash`, `color`, `empty`, `none`, or a CSS background; `placeholderColor` supplies the fallback color.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacksjs/image",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.75.183",
5
+ "version": "0.75.184",
6
6
  "description": "Native responsive image delivery for Stacks.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@stacksjs/ts-svg": "^0.1.5",
35
- "@stacksjs/types": "0.75.183",
35
+ "@stacksjs/types": "0.75.184",
36
36
  "ts-images": "^0.2.23"
37
37
  },
38
38
  "devDependencies": {