@builder.io/mitosis 0.0.56-19 → 0.0.56-21
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/src/jsx-types.d.ts
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
declare type CSS = Partial<CSSStyleDeclaration> & {
|
|
2
|
-
[key: string]: Partial<CSSStyleDeclaration> | string;
|
|
3
|
-
};
|
|
4
1
|
/**
|
|
5
2
|
* Based on JSX types for Solid, Inferno, Surplus, and React
|
|
6
3
|
*
|
|
@@ -10,6 +7,9 @@ declare type CSS = Partial<CSSStyleDeclaration> & {
|
|
|
10
7
|
* https://github.com/adamhaile/surplus/blob/master/index.d.ts
|
|
11
8
|
*/
|
|
12
9
|
export declare namespace JSX {
|
|
10
|
+
type CSS = Partial<CSSStyleDeclaration> & {
|
|
11
|
+
[key: string]: Partial<CSSStyleDeclaration> | string;
|
|
12
|
+
};
|
|
13
13
|
type Element = Node | ArrayElement | FunctionElement | string | number | boolean | null | undefined;
|
|
14
14
|
interface ArrayElement extends Array<Element> {
|
|
15
15
|
}
|
|
@@ -38,6 +38,7 @@ export declare namespace JSX {
|
|
|
38
38
|
}
|
|
39
39
|
type EventHandlerUnion<T, E extends Event> = EventHandler<T, E> | BoundEventHandler<T, E>;
|
|
40
40
|
interface IntrinsicAttributes {
|
|
41
|
+
key?: string | number;
|
|
41
42
|
ref?: HTMLElement | ((e: HTMLElement) => void);
|
|
42
43
|
}
|
|
43
44
|
interface CustomAttributes<T> {
|
|
@@ -56,7 +57,7 @@ export declare namespace JSX {
|
|
|
56
57
|
$id?: string;
|
|
57
58
|
}
|
|
58
59
|
interface DOMAttributes<T> extends CustomAttributes<T> {
|
|
59
|
-
children?: Element;
|
|
60
|
+
children?: Element | Element[] | string | undefined | false;
|
|
60
61
|
innerHTML?: string;
|
|
61
62
|
innerText?: string;
|
|
62
63
|
textContent?: string;
|
|
@@ -311,6 +312,8 @@ export declare namespace JSX {
|
|
|
311
312
|
referrerPolicy?: HTMLReferrerPolicy;
|
|
312
313
|
}
|
|
313
314
|
interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
315
|
+
loading?: string;
|
|
316
|
+
role?: string;
|
|
314
317
|
alt?: string;
|
|
315
318
|
crossorigin?: HTMLCrossorigin;
|
|
316
319
|
decoding?: 'sync' | 'async' | 'auto';
|
package/dist/src/jsx-types.js
CHANGED
|
@@ -1,2 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Based on JSX types for Solid, Inferno, Surplus, and React
|
|
4
|
+
*
|
|
5
|
+
* https://github.com/ryansolid/solid/blob/master/packages/solid/src/rendering/jsx.ts
|
|
6
|
+
* https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react/index.d.ts
|
|
7
|
+
* https://github.com/infernojs/inferno/blob/master/packages/inferno/src/core/types.ts
|
|
8
|
+
* https://github.com/adamhaile/surplus/blob/master/index.d.ts
|
|
9
|
+
*/
|
|
2
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|