react-a11y-auto-caption 1.1.0 → 1.1.2

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 +1 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -105,6 +105,7 @@ Both `<SmartImage>` and `<SmartNextImage>` inherit all standard HTML `<img>` (or
105
105
  | `apiEndpoint` | `string` | `undefined` | The URL of your AI backend API. Overrides the `SmartImageProvider` endpoint if provided. |
106
106
  | `alt` | `string` | `undefined` | Manual alt text. If provided, AI generation is completely bypassed. |
107
107
  | `fallbackAlt` | `string` | `"Image loading or caption unavailable"` | Text used when the AI request fails or times out. |
108
+ | `lazyGenerate` | `boolean` | `true` | Delays AI API calls until the image enters the viewport using `IntersectionObserver`.|
108
109
  | `disableAI` | `boolean` | `false` | Disables AI generation and uses a mock caption. Recommended for testing. |
109
110
  | `announceLive` | `boolean` | `false` | Enables `aria-live` region to announce generation status to screen readers. |
110
111
  | `onCaptionGenerated` | `(caption: string) => void` | `undefined` | Callback fired when a caption is successfully generated. |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-a11y-auto-caption",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "Smart React component that automatically generates alt text for images using AI.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",