@builder.io/mitosis 0.0.50-6 → 0.0.50
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/__tests__/angular.test.js +6 -0
- package/dist/src/__tests__/builder.test.js +5 -1
- package/dist/src/__tests__/data/blocks/multiple-onUpdate.raw.d.ts +1 -0
- package/dist/src/__tests__/data/blocks/multiple-onUpdate.raw.jsx +13 -0
- package/dist/src/__tests__/data/blocks/multiple-onUpdateWithDeps.raw.d.ts +1 -0
- package/dist/src/__tests__/data/blocks/multiple-onUpdateWithDeps.raw.jsx +19 -0
- package/dist/src/__tests__/data/blocks/onUpdateWithDeps.raw.jsx +6 -3
- package/dist/src/__tests__/data/blocks/self-referencing-component-with-children.raw.d.ts +1 -0
- package/dist/src/__tests__/data/blocks/self-referencing-component-with-children.raw.jsx +15 -0
- package/dist/src/__tests__/data/blocks/self-referencing-component.raw.d.ts +1 -0
- package/dist/src/__tests__/data/blocks/self-referencing-component.raw.jsx +12 -0
- package/dist/src/__tests__/data/blocks/shadow-dom.raw.d.ts +6 -0
- package/dist/src/__tests__/data/blocks/shadow-dom.raw.jsx +54 -0
- package/dist/src/__tests__/data/blocks/slot.raw.d.ts +5 -0
- package/dist/src/__tests__/data/blocks/slot.raw.jsx +6 -0
- package/dist/src/__tests__/data/blocks/stamped-io.raw.jsx +8 -0
- package/dist/src/__tests__/data/blocks/styles.raw.d.ts +1 -0
- package/dist/src/__tests__/data/blocks/styles.raw.jsx +10 -0
- package/dist/src/__tests__/data/context/simple.context.lite.d.ts +8 -1
- package/dist/src/__tests__/html.test.js +6 -0
- package/dist/src/__tests__/qwik.directive.test.d.ts +1 -0
- package/dist/src/__tests__/qwik.directive.test.js +107 -0
- package/dist/src/__tests__/qwik.test.js +256 -128
- package/dist/src/__tests__/react-native.test.js +12 -0
- package/dist/src/__tests__/react.test.js +12 -0
- package/dist/src/__tests__/svelte.test.js +24 -0
- package/dist/src/__tests__/vue.test.js +12 -0
- package/dist/src/__tests__/webcomponent.test.d.ts +1 -0
- package/dist/src/__tests__/webcomponent.test.js +12 -0
- package/dist/src/constants/html_tags.d.ts +1 -0
- package/dist/src/constants/html_tags.js +119 -0
- package/dist/src/generators/angular.js +7 -4
- package/dist/src/generators/context/react copy.d.ts +8 -0
- package/dist/src/generators/context/react copy.js +28 -0
- package/dist/src/generators/context/solid.d.ts +8 -0
- package/dist/src/generators/context/solid.js +28 -0
- package/dist/src/generators/context/svelte.d.ts +8 -0
- package/dist/src/generators/context/svelte.js +28 -0
- package/dist/src/generators/helpers/context.d.ts +2 -0
- package/dist/src/generators/helpers/context.js +8 -0
- package/dist/src/generators/html.js +20 -14
- package/dist/src/generators/mitosis.js +4 -3
- package/dist/src/generators/qwik/component.js +26 -5
- package/dist/src/generators/qwik/directives.d.ts +14 -5
- package/dist/src/generators/qwik/directives.js +32 -25
- package/dist/src/generators/qwik/handlers.js +3 -4
- package/dist/src/generators/qwik/jsx.js +17 -5
- package/dist/src/generators/qwik/src-generator.d.ts +0 -9
- package/dist/src/generators/qwik/src-generator.js +93 -101
- package/dist/src/generators/qwik/styles.js +8 -11
- package/dist/src/generators/react.js +9 -8
- package/dist/src/generators/solid.js +82 -8
- package/dist/src/generators/stencil/generate.js +5 -3
- package/dist/src/generators/stencil/index.js +5 -1
- package/dist/src/generators/svelte.d.ts +9 -1
- package/dist/src/generators/svelte.js +175 -76
- package/dist/src/generators/vue.d.ts +1 -1
- package/dist/src/generators/vue.js +86 -10
- package/dist/src/helpers/babel-transform copy.d.ts +8 -0
- package/dist/src/helpers/babel-transform copy.js +138 -0
- package/dist/src/helpers/babel-transform.d.ts +4 -7
- package/dist/src/helpers/babel-transform.js +18 -2
- package/dist/src/helpers/babel-transform.test.d.ts +1 -0
- package/dist/src/helpers/babel-transform.test.js +7 -0
- package/dist/src/helpers/create-mitosis-component.js +1 -1
- package/dist/src/helpers/get-state-object-string.js +2 -1
- package/dist/src/helpers/map-refs.js +22 -9
- package/dist/src/helpers/parsers.d.ts +8 -0
- package/dist/src/helpers/parsers.js +66 -0
- package/dist/src/helpers/render-imports.d.ts +2 -4
- package/dist/src/helpers/render-imports.js +32 -14
- package/dist/src/index.d.ts +10 -5
- package/dist/src/index.js +11 -5
- package/dist/src/parsers/builder.d.ts +16 -50
- package/dist/src/parsers/builder.js +22 -40
- package/dist/src/parsers/context.js +5 -1
- package/dist/src/parsers/jsx.d.ts +7 -0
- package/dist/src/parsers/jsx.js +27 -5
- package/dist/src/parsers/liquid.js +5 -1
- package/dist/src/plugins/compile-away-builder-components.js +5 -1
- package/dist/src/symbols/symbol-processor.js +3 -3
- package/dist/src/targets.d.ts +1 -1
- package/dist/src/types/mitosis-component.d.ts +8 -3
- package/dist/test/qwik/Accordion/high.jsx +0 -1
- package/dist/test/qwik/Accordion/low.jsx +171 -65
- package/dist/test/qwik/Accordion/med.jsx +9 -10
- package/dist/test/qwik/For/high.jsx +0 -1
- package/dist/test/qwik/For/low.jsx +25 -58
- package/dist/test/qwik/For/med.jsx +9 -10
- package/dist/test/qwik/Image/high.js +9 -1
- package/dist/test/qwik/Image/low.js +0 -42
- package/dist/test/qwik/Image/med.js +149 -12
- package/dist/test/qwik/Image.slow/high.js +9 -1
- package/dist/test/qwik/Image.slow/low.js +0 -42
- package/dist/test/qwik/Image.slow/med.js +149 -12
- package/dist/{src/types/generators.d.ts → test/qwik/bindings/high.cjs} +0 -0
- package/dist/test/qwik/bindings/low.cjs +33 -0
- package/dist/test/qwik/bindings/med.cjs +12 -0
- package/dist/test/qwik/button/high.js +1 -13
- package/dist/test/qwik/button/low.js +8 -40
- package/dist/test/qwik/button/med.js +36 -11
- package/dist/test/qwik/component/bindings/high.jsx +0 -1
- package/dist/test/qwik/component/bindings/low.jsx +26 -71
- package/dist/test/qwik/component/bindings/med.jsx +48 -39
- package/dist/test/qwik/component/component/inputs/high.cjsx +9 -0
- package/dist/test/qwik/component/component/inputs/low.cjsx +0 -0
- package/dist/test/qwik/component/component/inputs/med.cjsx +65 -0
- package/dist/test/qwik/hello_world/stylesheet/high.jsx +0 -1
- package/dist/test/qwik/hello_world/stylesheet/low.jsx +6 -27
- package/dist/test/qwik/hello_world/stylesheet/med.jsx +9 -10
- package/dist/test/qwik/page-with-symbol/high.js +0 -1
- package/dist/test/qwik/page-with-symbol/low.js +15 -52
- package/dist/test/qwik/page-with-symbol/med.js +9 -10
- package/dist/test/qwik/show-hide/high.jsx +9 -0
- package/dist/test/qwik/show-hide/low.jsx +0 -0
- package/dist/test/qwik/show-hide/med.jsx +174 -0
- package/dist/test/qwik/svg/high.js +0 -1
- package/dist/test/qwik/svg/low.js +9 -35
- package/dist/test/qwik/svg/med.js +9 -10
- package/dist/test/qwik/todo/Todo.cjs/high.cjs +4 -39
- package/dist/test/qwik/todo/Todo.cjs/low.cjs +0 -1
- package/dist/test/qwik/todo/Todo.cjs/med.cjs +38 -61
- package/dist/test/qwik/todo/Todo.js/high.js +22 -5
- package/dist/test/qwik/todo/Todo.js/med.js +45 -1
- package/dist/test/qwik/todo/Todo.tsx/high.tsx +4 -39
- package/dist/test/qwik/todo/Todo.tsx/low.tsx +0 -1
- package/dist/test/qwik/todo/Todo.tsx/med.tsx +31 -34
- package/dist/test/qwik/todos/Todo.tsx/high.tsx +0 -12
- package/dist/test/qwik/todos/Todo.tsx/low.tsx +18 -25
- package/dist/test/qwik/todos/Todo.tsx/med.tsx +8 -10
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +22 -22
- package/dist/src/__tests__/data/blocks/onMount-onUnMount.d.ts +0 -1
- package/dist/src/__tests__/data/blocks/onMount-onUnMount.jsx +0 -13
- package/dist/src/__tests__/data/blocks/onMount.d.ts +0 -1
- package/dist/src/__tests__/data/blocks/onMount.jsx +0 -13
- package/dist/src/types/generators.js +0 -1
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.50
|
|
25
|
+
"version": "0.0.50",
|
|
26
26
|
"homepage": "https://github.com/BuilderIO/mitosis",
|
|
27
27
|
"main": "./dist/src/index.js",
|
|
28
28
|
"exports": {
|
|
@@ -37,57 +37,53 @@
|
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"test": "jest",
|
|
40
|
-
"build": "tsc --build",
|
|
41
|
-
"clean": "tsc --build --clean",
|
|
42
|
-
"
|
|
43
|
-
"release:
|
|
40
|
+
"build": "tsc --build tsconfig.build.json",
|
|
41
|
+
"clean": "tsc --build --clean tsconfig.build.json",
|
|
42
|
+
"remove-stableVersion": "./scripts/remove-stableVersion.sh",
|
|
43
|
+
"release:dev": "yarn build && yarn run remove-stableVersion && yarn version prerelease && ALLOW_PUBLISH=true yarn npm publish --tag dev",
|
|
44
|
+
"release:patch": "yarn build && yarn run remove-stableVersion && yarn version patch && ALLOW_PUBLISH=true yarn npm publish",
|
|
44
45
|
"mitosis-save-artifacts": "node -r esbuild-register ../../scripts/mitosis-save-artifacts.ts",
|
|
45
|
-
"start": "
|
|
46
|
+
"start": "yarn build --watch",
|
|
46
47
|
"script": "ts-node -O '{\"module\": \"commonjs\"}'"
|
|
47
48
|
},
|
|
48
49
|
"files": [
|
|
49
|
-
"dist"
|
|
50
|
+
"dist",
|
|
51
|
+
"!**/*.tsbuildinfo"
|
|
50
52
|
],
|
|
51
53
|
"dependencies": {
|
|
52
54
|
"@angular/compiler": "^11.2.11",
|
|
53
|
-
"@babel/core": "
|
|
55
|
+
"@babel/core": "7.14.5",
|
|
54
56
|
"@babel/generator": "^7.14.3",
|
|
55
57
|
"@babel/plugin-proposal-class-properties": "^7.13.0",
|
|
56
58
|
"@babel/plugin-syntax-decorators": "^7.12.1",
|
|
57
59
|
"@babel/plugin-syntax-jsx": "^7.12.1",
|
|
58
60
|
"@babel/plugin-transform-react-jsx": "^7.13.12",
|
|
59
61
|
"@babel/preset-typescript": "^7.13.0",
|
|
60
|
-
"@builder.io/react": "^1.1.
|
|
61
|
-
"@rollup/plugin-node-resolve": "^11.2.1",
|
|
62
|
-
"@rollup/plugin-virtual": "^2.0.3",
|
|
63
|
-
"@types/fs-extra-promise": "^1.0.9",
|
|
64
|
-
"acorn": "^8.3.0",
|
|
62
|
+
"@builder.io/react": "^1.1.50",
|
|
65
63
|
"axios": "^0.21.0",
|
|
66
64
|
"axios-cache-adapter": "^2.5.0",
|
|
67
|
-
"chalk": "^4.1.0",
|
|
68
65
|
"csstype": "^3.0.4",
|
|
69
66
|
"dedent": "^0.7.0",
|
|
70
|
-
"
|
|
67
|
+
"fp-ts": "^2.11.10",
|
|
71
68
|
"globby": "^11.0.2",
|
|
72
|
-
"json-6": "^1.1.2",
|
|
73
69
|
"json5": "^2.1.3",
|
|
74
70
|
"liquidjs": "9.6.0",
|
|
75
71
|
"lodash": "^4.17.20",
|
|
76
72
|
"object-hash": "^2.0.3",
|
|
77
73
|
"prettier-plugin-svelte": "^1.4.1",
|
|
78
|
-
"rollup": "^2.45.2",
|
|
79
74
|
"svelte": "^3.30.0",
|
|
80
75
|
"traverse": "^0.6.6",
|
|
81
|
-
"ts-node": "^9.0.0",
|
|
82
|
-
"typescript": "^4.5.4",
|
|
83
76
|
"vue-template-compiler": "^2.6.12"
|
|
84
77
|
},
|
|
85
78
|
"devDependencies": {
|
|
86
|
-
"@builder.io/sdk": "^1.1.
|
|
79
|
+
"@builder.io/sdk": "^1.1.26",
|
|
80
|
+
"@rollup/plugin-node-resolve": "^11.2.1",
|
|
81
|
+
"@rollup/plugin-virtual": "^2.1.0",
|
|
87
82
|
"@testing-library/jest-dom": "^5.11.5",
|
|
88
83
|
"@tootallnate/once": "^1.1.2",
|
|
89
|
-
"@types/babel__core": "
|
|
84
|
+
"@types/babel__core": "7.1.14",
|
|
90
85
|
"@types/dedent": "^0.7.0",
|
|
86
|
+
"@types/fs-extra-promise": "^1.0.10",
|
|
91
87
|
"@types/jest": "^26.0.15",
|
|
92
88
|
"@types/json5": "0.0.30",
|
|
93
89
|
"@types/lodash": "^4.14.165",
|
|
@@ -96,10 +92,14 @@
|
|
|
96
92
|
"@types/prettier": "^2.1.5",
|
|
97
93
|
"@types/rollup__plugin-virtual": "^2.0.1",
|
|
98
94
|
"@types/traverse": "^0.6.32",
|
|
95
|
+
"fs-extra-promise": "^1.0.1",
|
|
99
96
|
"jest": "^26.6.3",
|
|
100
97
|
"jest-raw-loader": "^1.0.1",
|
|
101
98
|
"lru-cache": "^6.0.0",
|
|
99
|
+
"rollup": "^2.70.1",
|
|
102
100
|
"ts-jest": "^26.4.4",
|
|
101
|
+
"ts-node": "^9.1.1",
|
|
102
|
+
"typescript": "4.7.0-dev.20220325",
|
|
103
103
|
"universalify": "^2.0.0"
|
|
104
104
|
}
|
|
105
|
-
}
|
|
105
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function Comp(): JSX.Element;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var mitosis_1 = require("@builder.io/mitosis");
|
|
4
|
-
function Comp() {
|
|
5
|
-
(0, mitosis_1.onMount)(function () {
|
|
6
|
-
console.log('Runs on mount');
|
|
7
|
-
});
|
|
8
|
-
(0, mitosis_1.onUnMount)(function () {
|
|
9
|
-
console.log('Runs on unMount');
|
|
10
|
-
});
|
|
11
|
-
return <div />;
|
|
12
|
-
}
|
|
13
|
-
exports.default = Comp;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function Comp(): JSX.Element;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var mitosis_1 = require("@builder.io/mitosis");
|
|
4
|
-
function Comp() {
|
|
5
|
-
(0, mitosis_1.onMount)(function () {
|
|
6
|
-
console.log('Runs on mount');
|
|
7
|
-
});
|
|
8
|
-
(0, mitosis_1.onUnMount)(function () {
|
|
9
|
-
console.log('Runs on unMount');
|
|
10
|
-
});
|
|
11
|
-
return <div />;
|
|
12
|
-
}
|
|
13
|
-
exports.default = Comp;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|