@builder.io/mitosis 0.0.76 → 0.0.77
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/generators/alpine/generate.d.ts +20 -0
- package/dist/src/generators/alpine/generate.js +207 -0
- package/dist/src/generators/alpine/index.d.ts +1 -0
- package/dist/src/generators/alpine/index.js +17 -0
- package/dist/src/generators/alpine/render-mount-hook.d.ts +2 -0
- package/dist/src/generators/alpine/render-mount-hook.js +14 -0
- package/dist/src/generators/alpine/render-update-hooks.d.ts +5 -0
- package/dist/src/generators/alpine/render-update-hooks.js +44 -0
- package/dist/src/generators/angular.d.ts +0 -3
- package/dist/src/generators/angular.js +79 -95
- package/dist/src/generators/helpers/functions.js +2 -1
- package/dist/src/generators/html.js +1 -1
- package/dist/src/generators/qwik/component-generator.js +8 -1
- package/dist/src/generators/svelte/blocks.js +19 -21
- package/dist/src/generators/svelte/helpers.d.ts +5 -1
- package/dist/src/generators/svelte/helpers.js +8 -5
- package/dist/src/generators/svelte/svelte.js +34 -31
- package/dist/src/generators/swift-ui.js +1 -1
- package/dist/src/generators/vue/blocks.js +4 -2
- package/dist/src/generators/vue/compositionApi.js +3 -1
- package/dist/src/generators/vue/helpers.d.ts +2 -2
- package/dist/src/generators/vue/helpers.js +13 -5
- package/dist/src/generators/vue/optionsApi.js +0 -5
- package/dist/src/generators/vue/vue.js +4 -26
- package/dist/src/helpers/babel-transform.d.ts +2 -1
- package/dist/src/helpers/babel-transform.js +16 -19
- package/dist/src/helpers/get-state-object-string.d.ts +1 -1
- package/dist/src/helpers/get-state-object-string.js +5 -5
- package/dist/src/helpers/has-bindings-text.js +1 -1
- package/dist/src/helpers/is-children.d.ts +4 -1
- package/dist/src/helpers/is-children.js +5 -4
- package/dist/src/helpers/patterns.d.ts +1 -0
- package/dist/src/helpers/patterns.js +3 -1
- package/dist/src/helpers/plugins/process-code.js +1 -1
- package/dist/src/helpers/styles/helpers.d.ts +0 -1
- package/dist/src/helpers/traverse-nodes.d.ts +1 -1
- package/dist/src/helpers/traverse-nodes.js +3 -3
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.js +2 -3
- package/dist/src/parsers/builder.d.ts +4 -4
- package/dist/src/parsers/jsx/function-parser.js +8 -0
- package/dist/src/parsers/jsx/metadata.js +17 -1
- package/dist/src/parsers/jsx/state.js +6 -1
- package/dist/src/plugins/map-styles.js +1 -1
- package/dist/src/targets.d.ts +1 -0
- package/dist/src/targets.js +2 -0
- package/dist/src/types/mitosis-component.d.ts +4 -8
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/jsx-runtime.d.ts +2 -0
- package/package.json +7 -9
package/jsx-runtime.d.ts
CHANGED
|
@@ -1006,6 +1006,7 @@ export declare namespace JSX {
|
|
|
1006
1006
|
|
|
1007
1007
|
interface ContainerElementSVGAttributes<T>
|
|
1008
1008
|
extends CoreSVGAttributes<T>,
|
|
1009
|
+
ShapeElementSVGAttributes<T>,
|
|
1009
1010
|
Pick<
|
|
1010
1011
|
PresentationSVGAttributes,
|
|
1011
1012
|
| 'clip-path'
|
|
@@ -1078,6 +1079,7 @@ export declare namespace JSX {
|
|
|
1078
1079
|
|
|
1079
1080
|
interface ShapeElementSVGAttributes<T>
|
|
1080
1081
|
extends CoreSVGAttributes<T>,
|
|
1082
|
+
ShapeElementSVGAttributes<T>,
|
|
1081
1083
|
Pick<
|
|
1082
1084
|
PresentationSVGAttributes,
|
|
1083
1085
|
| 'color'
|
package/package.json
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"engines": {
|
|
26
26
|
"npm": "99999999.9.9"
|
|
27
27
|
},
|
|
28
|
-
"version": "0.0.
|
|
28
|
+
"version": "0.0.77",
|
|
29
29
|
"homepage": "https://github.com/BuilderIO/mitosis",
|
|
30
30
|
"main": "./dist/src/index.js",
|
|
31
31
|
"exports": {
|
|
@@ -41,8 +41,9 @@
|
|
|
41
41
|
"url": "https://github.com/BuilderIO/mitosis"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
|
-
"test": "
|
|
45
|
-
"snapupdate": "
|
|
44
|
+
"test": "vitest",
|
|
45
|
+
"snapupdate": "vitest --update",
|
|
46
|
+
"coverage": "vitest run --coverage",
|
|
46
47
|
"tsc": "tsc --build tsconfig.build.json",
|
|
47
48
|
"rmrf": "rm -rf ./dist",
|
|
48
49
|
"build": "yarn rmrf && yarn tsc",
|
|
@@ -94,13 +95,11 @@
|
|
|
94
95
|
"@builder.io/sdk": "^1.1.26",
|
|
95
96
|
"@rollup/plugin-node-resolve": "^11.2.1",
|
|
96
97
|
"@rollup/plugin-virtual": "^2.1.0",
|
|
97
|
-
"@testing-library/jest-dom": "^5.11.5",
|
|
98
98
|
"@tootallnate/once": "^1.1.2",
|
|
99
99
|
"@types/babel__core": "7.1.14",
|
|
100
100
|
"@types/dedent": "^0.7.0",
|
|
101
101
|
"@types/fs-extra-promise": "^1.0.10",
|
|
102
102
|
"@types/hash-sum": "^1.0.0",
|
|
103
|
-
"@types/jest": "^26.0.15",
|
|
104
103
|
"@types/json5": "0.0.30",
|
|
105
104
|
"@types/lodash": "^4.14.165",
|
|
106
105
|
"@types/node": "^15.12.0",
|
|
@@ -109,13 +108,12 @@
|
|
|
109
108
|
"@types/rollup__plugin-virtual": "^2.0.1",
|
|
110
109
|
"@types/traverse": "^0.6.32",
|
|
111
110
|
"fs-extra-promise": "^1.0.1",
|
|
112
|
-
"jest": "^26.6.3",
|
|
113
|
-
"jest-raw-loader": "^1.0.1",
|
|
114
111
|
"lru-cache": "^6.0.0",
|
|
115
112
|
"rollup": "^2.70.1",
|
|
116
|
-
"ts-jest": "^26.4.4",
|
|
117
113
|
"ts-node": "^9.1.1",
|
|
118
114
|
"typescript": "^4.8.4",
|
|
119
|
-
"universalify": "^2.0.0"
|
|
115
|
+
"universalify": "^2.0.0",
|
|
116
|
+
"vite": "^3.2.2",
|
|
117
|
+
"vitest": "^0.24.5"
|
|
120
118
|
}
|
|
121
119
|
}
|