@builder.io/mitosis 0.3.7 → 0.3.9

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.
@@ -9,3 +9,24 @@ export interface ToVueOptions extends BaseTranspilerOptions {
9
9
  convertClassStringToObject?: boolean;
10
10
  casing?: 'pascal' | 'kebab';
11
11
  }
12
+ export type Prop<T> = {
13
+ (): T;
14
+ } | {
15
+ new (...args: never[]): T & object;
16
+ } | {
17
+ new (...args: string[]): Function;
18
+ };
19
+ export type PropType<T> = Prop<T> | Prop<T>[];
20
+ export type PropValidator<T> = PropOptions<T> | PropType<T>;
21
+ export interface PropOptions<T = any> {
22
+ type?: PropType<T>;
23
+ required?: boolean;
24
+ default?: T | null | undefined | (() => T | null | undefined);
25
+ validator?(value: T): boolean;
26
+ }
27
+ export type DefaultProps = Record<string, any>;
28
+ export type RecordPropsDefinition<T> = {
29
+ [K in keyof T]: PropValidator<T[K]>;
30
+ };
31
+ export type ArrayPropsDefinition<T> = (keyof T)[];
32
+ export type PropsDefinition<T> = ArrayPropsDefinition<T> | RecordPropsDefinition<T>;
package/jsx-runtime.d.ts CHANGED
@@ -446,6 +446,7 @@ export declare namespace JSX {
446
446
 
447
447
  interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
448
448
  loading?: string;
449
+ fetchpriority?: string;
449
450
  role?: string;
450
451
  alt?: string;
451
452
  crossorigin?: HTMLCrossorigin;
package/package.json CHANGED
@@ -22,7 +22,7 @@
22
22
  "name": "Builder.io",
23
23
  "url": "https://www.builder.io"
24
24
  },
25
- "version": "0.3.7",
25
+ "version": "0.3.9",
26
26
  "homepage": "https://github.com/BuilderIO/mitosis",
27
27
  "main": "./dist/src/index.js",
28
28
  "exports": {
@@ -57,7 +57,6 @@
57
57
  "@angular/compiler": "^11.2.11",
58
58
  "@babel/core": "7.14.5",
59
59
  "@babel/generator": "^7.14.3",
60
- "@babel/plugin-proposal-class-properties": "^7.13.0",
61
60
  "@babel/plugin-syntax-decorators": "^7.12.1",
62
61
  "@babel/plugin-syntax-typescript": "^7.20.0",
63
62
  "@babel/plugin-transform-react-jsx": "^7.13.12",
@@ -107,7 +106,6 @@
107
106
  "typescript": "^5.3.2",
108
107
  "vite": "^4.5.0",
109
108
  "vite-tsconfig-paths": "^3.5.0",
110
- "vitest": "^0.34.6",
111
- "vue": "~2.6"
109
+ "vitest": "^0.34.6"
112
110
  }
113
111
  }