@stackable-labs/embeddables 2.7.1 → 2.9.0

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.
@@ -0,0 +1,19 @@
1
+ import { type ImgHTMLAttributes } from "react";
2
+ /**
3
+ * Image primitive — accepts every native `<img>` attribute via
4
+ * `ImgHTMLAttributes` so the component reflects what the platform supports.
5
+ *
6
+ * Extension surface is narrowed at the contract layer (UI_TAG_DEFINITIONS
7
+ * `ui-image` allows only src/alt/loading/className). Internal/admin-dashboard
8
+ * surfaces consuming the primitive directly get the full native API —
9
+ * width/height (CLS prevention), fetchPriority (LCP), decoding,
10
+ * srcSet/sizes (responsive), crossOrigin, referrerPolicy, onLoad/onError,
11
+ * style, etc.
12
+ */
13
+ export interface ImageProps extends ImgHTMLAttributes<HTMLImageElement> {
14
+ /** Alt text for screen readers. Defaults to '' (decorative) per HTML/a11y convention. */
15
+ alt?: string;
16
+ /** Browser load strategy. Default: 'lazy'. Use 'eager' for above-the-fold/LCP images. */
17
+ loading?: "lazy" | "eager";
18
+ }
19
+ export declare function Image({ src, alt, loading, className, ...rest }: ImageProps): import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackable-labs/embeddables",
3
- "version": "2.7.1",
3
+ "version": "2.9.0",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "main": "./dist/stackable-widget.js",