@builder.io/mitosis 0.0.92 → 0.0.94
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/context/qwik.js +1 -1
- package/dist/src/generators/mitosis.js +2 -1
- package/dist/src/generators/qwik/component-generator.js +93 -150
- package/dist/src/generators/qwik/component.js +9 -3
- package/dist/src/generators/qwik/{add-prevent-default.d.ts → helpers/add-prevent-default.d.ts} +1 -1
- package/dist/src/generators/qwik/{add-prevent-default.js → helpers/add-prevent-default.js} +1 -1
- package/dist/src/generators/qwik/helpers/convert-method-to-function.d.ts +2 -0
- package/dist/src/generators/qwik/helpers/handlers.d.ts +3 -0
- package/dist/src/generators/qwik/{handlers.js → helpers/handlers.js} +3 -4
- package/dist/src/generators/qwik/helpers/state.d.ts +27 -0
- package/dist/src/generators/qwik/helpers/state.js +118 -0
- package/dist/src/generators/qwik/{styles.d.ts → helpers/styles.d.ts} +2 -2
- package/dist/src/generators/qwik/{styles.js → helpers/styles.js} +1 -1
- package/dist/src/generators/qwik/helpers/transform-code.d.ts +1 -0
- package/dist/src/generators/qwik/helpers/transform-code.js +8 -0
- package/dist/src/generators/qwik/jsx.d.ts +1 -1
- package/dist/src/generators/qwik/jsx.js +3 -1
- package/dist/src/generators/qwik/src-generator.d.ts +1 -4
- package/dist/src/generators/qwik/src-generator.js +34 -16
- package/dist/src/generators/react/generator.js +4 -3
- package/dist/src/generators/{react-native.d.ts → react-native/index.d.ts} +3 -3
- package/dist/src/generators/{react-native.js → react-native/index.js} +48 -34
- package/dist/src/generators/react-native/sanitize-react-native-block-styles.d.ts +3 -0
- package/dist/src/generators/react-native/sanitize-react-native-block-styles.js +63 -0
- package/dist/src/generators/solid/index.js +4 -1
- package/dist/src/generators/svelte/blocks.js +9 -3
- package/dist/src/generators/svelte/helpers.js +8 -1
- package/dist/src/generators/vue/blocks.js +10 -4
- package/dist/src/generators/vue/helpers.d.ts +2 -1
- package/dist/src/generators/vue/helpers.js +51 -12
- package/dist/src/generators/vue/vue.js +6 -3
- package/dist/src/helpers/babel-transform.js +13 -10
- package/dist/src/helpers/is-root-text-node.d.ts +4 -0
- package/dist/src/helpers/is-root-text-node.js +12 -0
- package/dist/src/helpers/map-refs.js +2 -26
- package/dist/src/helpers/parsers.js +11 -5
- package/dist/src/helpers/patterns.d.ts +1 -0
- package/dist/src/helpers/patterns.js +3 -1
- package/dist/src/helpers/plugins/process-code.d.ts +1 -1
- package/dist/src/helpers/plugins/process-code.js +9 -9
- package/dist/src/helpers/render-imports.js +1 -0
- package/dist/src/helpers/replace-identifiers.js +2 -2
- package/dist/src/helpers/slots.d.ts +2 -2
- package/dist/src/helpers/slots.js +7 -3
- package/dist/src/parsers/jsx/component-types.d.ts +2 -2
- package/dist/src/parsers/jsx/component-types.js +7 -16
- package/dist/src/parsers/jsx/index.d.ts +1 -1
- package/dist/src/parsers/jsx/index.js +3 -16
- package/dist/src/parsers/jsx/jsx.js +17 -22
- package/dist/src/plugins/compile-away-builder-components.js +22 -4
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +6 -3
- package/dist/src/generators/qwik/convert-method-to-function.d.ts +0 -1
- package/dist/src/generators/qwik/handlers.d.ts +0 -4
- /package/dist/src/generators/qwik/{convert-method-to-function.js → helpers/convert-method-to-function.js} +0 -0
- /package/dist/src/generators/qwik/{stable-inject.d.ts → helpers/stable-inject.d.ts} +0 -0
- /package/dist/src/generators/qwik/{stable-inject.js → helpers/stable-inject.js} +0 -0
- /package/dist/src/generators/qwik/{stable-serialize.d.ts → helpers/stable-serialize.d.ts} +0 -0
- /package/dist/src/generators/qwik/{stable-serialize.js → helpers/stable-serialize.js} +0 -0
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.0.
|
|
25
|
+
"version": "0.0.94",
|
|
26
26
|
"homepage": "https://github.com/BuilderIO/mitosis",
|
|
27
27
|
"main": "./dist/src/index.js",
|
|
28
28
|
"exports": {
|
|
@@ -38,7 +38,8 @@
|
|
|
38
38
|
"url": "https://github.com/BuilderIO/mitosis"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
|
-
"test": "vitest",
|
|
41
|
+
"test": "vitest run",
|
|
42
|
+
"test:watch": "vitest",
|
|
42
43
|
"snapupdate": "vitest --update",
|
|
43
44
|
"coverage": "vitest run --coverage",
|
|
44
45
|
"tsc": "tsc --build tsconfig.build.json",
|
|
@@ -62,7 +63,7 @@
|
|
|
62
63
|
"@babel/generator": "^7.14.3",
|
|
63
64
|
"@babel/plugin-proposal-class-properties": "^7.13.0",
|
|
64
65
|
"@babel/plugin-syntax-decorators": "^7.12.1",
|
|
65
|
-
"@babel/plugin-syntax-
|
|
66
|
+
"@babel/plugin-syntax-typescript": "^7.20.0",
|
|
66
67
|
"@babel/plugin-transform-react-jsx": "^7.13.12",
|
|
67
68
|
"@babel/preset-typescript": "^7.13.0",
|
|
68
69
|
"@builder.io/react": "^1.1.50",
|
|
@@ -86,6 +87,7 @@
|
|
|
86
87
|
"object-hash": "^2.0.3",
|
|
87
88
|
"postcss-load-config": "^4.0.1",
|
|
88
89
|
"prettier-plugin-marko": "^1.2.2",
|
|
90
|
+
"prettier-plugin-organize-imports": "2.3.4",
|
|
89
91
|
"prettier-plugin-svelte": "^2.7.0",
|
|
90
92
|
"sass": "^1.56.1",
|
|
91
93
|
"svelte": "^3.30.0",
|
|
@@ -118,6 +120,7 @@
|
|
|
118
120
|
"postcss": "^8.4.19",
|
|
119
121
|
"pug": "^3.0.2",
|
|
120
122
|
"rollup": "^2.70.1",
|
|
123
|
+
"strip-ansi": "^6.0.1",
|
|
121
124
|
"stylus": "^0.59.0",
|
|
122
125
|
"sugarss": "^4.0.1",
|
|
123
126
|
"ts-node": "^9.1.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function convertMethodToFunction(code: string, properties: Record<string, 'method' | 'getter'>, lexicalArgs: string[]): string;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { MitosisNode } from '../../types/mitosis-node';
|
|
2
|
-
import { File } from './src-generator';
|
|
3
|
-
export declare function extractJSBlock(binding: any): string | null;
|
|
4
|
-
export declare function renderHandlers(file: File, componentName: string, children: MitosisNode[]): Map<string, string>;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|