@xsolla/xui-primitives-core 0.148.2 → 0.149.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.
package/index.d.mts CHANGED
@@ -102,6 +102,10 @@ interface BoxProps {
102
102
  as?: keyof JSX.IntrinsicElements;
103
103
  src?: string;
104
104
  alt?: string;
105
+ /** Image load error handler. Only used when as="img". */
106
+ onError?: (e: any) => void;
107
+ /** Image load success handler. Only used when as="img". */
108
+ onLoad?: (e: any) => void;
105
109
  /** HTML id attribute */
106
110
  id?: string;
107
111
  /** Button type attribute (only used when as="button") */
package/index.d.ts CHANGED
@@ -102,6 +102,10 @@ interface BoxProps {
102
102
  as?: keyof JSX.IntrinsicElements;
103
103
  src?: string;
104
104
  alt?: string;
105
+ /** Image load error handler. Only used when as="img". */
106
+ onError?: (e: any) => void;
107
+ /** Image load success handler. Only used when as="img". */
108
+ onLoad?: (e: any) => void;
105
109
  /** HTML id attribute */
106
110
  id?: string;
107
111
  /** Button type attribute (only used when as="button") */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xsolla/xui-primitives-core",
3
- "version": "0.148.2",
3
+ "version": "0.149.0",
4
4
  "description": "Core type definitions for XUI primitives",
5
5
  "main": "./index.js",
6
6
  "module": "./index.mjs",