@builder.io/react 2.0.14 → 2.0.15-1
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/CHANGELOG.md +3 -0
- package/dist/builder-react-lite.cjs.js +1 -1
- package/dist/builder-react-lite.cjs.js.map +1 -1
- package/dist/builder-react-lite.esm.js +1 -1
- package/dist/builder-react-lite.esm.js.map +1 -1
- package/dist/builder-react.browser.js +6 -1
- package/dist/builder-react.browser.js.map +1 -1
- package/dist/builder-react.cjs.js +1 -1
- package/dist/builder-react.cjs.js.map +1 -1
- package/dist/builder-react.es5.js +1 -1
- package/dist/builder-react.es5.js.map +1 -1
- package/dist/builder-react.unpkg.js +6 -1
- package/dist/builder-react.unpkg.js.map +1 -1
- package/dist/lib/package.json +14 -13
- package/dist/lib/src/functions/no-wrap.js +2 -0
- package/dist/lib/src/functions/no-wrap.js.map +1 -1
- package/dist/lib/src/functions/with-children.js +4 -1
- package/dist/lib/src/functions/with-children.js.map +1 -1
- package/dist/types/src/blocks/Mutation.d.ts +0 -1
- package/dist/types/src/blocks/Slot.d.ts +0 -1
- package/dist/types/src/blocks/raw/RawText.d.ts +0 -1
- package/dist/types/src/functions/safe-dynamic-require.d.ts +1 -0
- package/package.json +14 -13
- package/src/functions/no-wrap.tsx +2 -0
- package/src/functions/with-children.tsx +2 -0
- package/tsconfig.json +0 -1
package/dist/lib/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@builder.io/react",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.15-0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"main": "dist/builder-react.cjs.js",
|
|
@@ -21,8 +21,6 @@
|
|
|
21
21
|
"builder.io"
|
|
22
22
|
],
|
|
23
23
|
"scripts": {
|
|
24
|
-
"_unlink": "npm unlink *",
|
|
25
|
-
"_install": "npm install",
|
|
26
24
|
"docs": "typedoc",
|
|
27
25
|
"lint": "tslint -t codeFrame '../**/*.ts' 'test/**/*.ts'",
|
|
28
26
|
"prebuild": "rimraf dist",
|
|
@@ -31,20 +29,20 @@
|
|
|
31
29
|
"start": "rollup -c rollup.config.ts -w",
|
|
32
30
|
"test": "jest",
|
|
33
31
|
"test:watch": "jest --watch",
|
|
34
|
-
"test:prod": "
|
|
32
|
+
"test:prod": "yarn lint && yarn test -- --coverage --no-cache",
|
|
35
33
|
"deploy-docs": "ts-node tools/gh-pages-publish",
|
|
36
34
|
"report-coverage": "cat ./coverage/lcov.info≈ | coveralls",
|
|
37
35
|
"commit": "git-cz",
|
|
38
|
-
"release": "
|
|
39
|
-
"release:major": "
|
|
40
|
-
"release:patch": "
|
|
41
|
-
"release:nightly": "
|
|
42
|
-
"release:dev": "
|
|
36
|
+
"release": "yarn build && npm publish",
|
|
37
|
+
"release:major": "yarn build && npm version major && npm publish",
|
|
38
|
+
"release:patch": "yarn build && npm version patch && npm publish",
|
|
39
|
+
"release:nightly": "yarn build && npm version prerelease && npm publish --tag nightly",
|
|
40
|
+
"release:dev": "yarn build && npm version prerelease && npm publish --tag dev",
|
|
43
41
|
"semantic-release": "semantic-release",
|
|
44
42
|
"semantic-release-prepare": "ts-node tools/semantic-release-prepare",
|
|
45
43
|
"precommit": "lint-staged",
|
|
46
|
-
"ci:test": "
|
|
47
|
-
"ci:build": "
|
|
44
|
+
"ci:test": "yarn test",
|
|
45
|
+
"ci:build": "yarn build"
|
|
48
46
|
},
|
|
49
47
|
"lint-staged": {
|
|
50
48
|
"**/*.{js,jsx,ts,tsx,md,json}": [
|
|
@@ -58,7 +56,7 @@
|
|
|
58
56
|
},
|
|
59
57
|
"validate-commit-msg": {
|
|
60
58
|
"types": "conventional-commit-types",
|
|
61
|
-
"helpMessage": "Use \"
|
|
59
|
+
"helpMessage": "Use \"yarn commit\" instead, we use conventional-changelog format :) (https://github.com/commitizen/cz-cli)"
|
|
62
60
|
}
|
|
63
61
|
},
|
|
64
62
|
"devDependencies": {
|
|
@@ -123,11 +121,14 @@
|
|
|
123
121
|
"react-dom": ">=16.8.0"
|
|
124
122
|
},
|
|
125
123
|
"dependencies": {
|
|
126
|
-
"@builder.io/sdk": "^1.1.
|
|
124
|
+
"@builder.io/sdk": "^1.1.33",
|
|
127
125
|
"@emotion/core": "^10.0.17",
|
|
128
126
|
"hash-sum": "^2.0.0",
|
|
129
127
|
"preact": "^10.1.0",
|
|
130
128
|
"vm2": "^3.9.10"
|
|
131
129
|
},
|
|
130
|
+
"installConfig": {
|
|
131
|
+
"hoistingLimits": "workspaces"
|
|
132
|
+
},
|
|
132
133
|
"gitHead": "4d96fbc32864698afbb355ab991c6d90be991951"
|
|
133
134
|
}
|
|
@@ -46,6 +46,8 @@ var react_1 = __importDefault(require("react"));
|
|
|
46
46
|
var noWrap = function (Component) {
|
|
47
47
|
var HOC = react_1.default.forwardRef(function (props, ref) {
|
|
48
48
|
var finalProps = __assign(__assign({}, props), props.attributes);
|
|
49
|
+
// getting type errors due to `@types/react` version mismatches. Can safely ignore.
|
|
50
|
+
// @ts-ignore
|
|
49
51
|
return react_1.default.createElement(Component, __assign({}, finalProps, { ref: ref }));
|
|
50
52
|
});
|
|
51
53
|
HOC.builderOptions = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"no-wrap.js","sourceRoot":"","sources":["../../../../src/functions/no-wrap.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,gDAA0B;AAI1B;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACI,IAAM,MAAM,GAAG,UAAmB,SAAiC;IACxE,IAAM,GAAG,GAAG,eAAK,CAAC,UAAU,CAAC,UAAC,KAAwD,EAAE,GAAG;QACzF,IAAM,UAAU,yBACX,KAAK,GACL,KAAK,CAAC,UAAU,CACpB,CAAC;QACF,OAAO,8BAAC,SAAS,eAAK,UAAU,IAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IACjD,CAAC,CAAC,CAAC;IACF,GAAW,CAAC,cAAc,GAAG;QAC5B,MAAM,EAAE,IAAI;KACb,CAAC;IAEF,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"no-wrap.js","sourceRoot":"","sources":["../../../../src/functions/no-wrap.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,gDAA0B;AAI1B;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACI,IAAM,MAAM,GAAG,UAAmB,SAAiC;IACxE,IAAM,GAAG,GAAG,eAAK,CAAC,UAAU,CAAC,UAAC,KAAwD,EAAE,GAAG;QACzF,IAAM,UAAU,yBACX,KAAK,GACL,KAAK,CAAC,UAAU,CACpB,CAAC;QACF,mFAAmF;QACnF,aAAa;QACb,OAAO,8BAAC,SAAS,eAAK,UAAU,IAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IACjD,CAAC,CAAC,CAAC;IACF,GAAW,CAAC,cAAc,GAAG;QAC5B,MAAM,EAAE,IAAI;KACb,CAAC;IAEF,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AAfW,QAAA,MAAM,UAejB"}
|
|
@@ -45,7 +45,10 @@ var withChildren = function (Component) {
|
|
|
45
45
|
(props.builderBlock &&
|
|
46
46
|
props.builderBlock.children &&
|
|
47
47
|
props.builderBlock.children.map(function (child) { return react_1.default.createElement(builder_block_component_1.BuilderBlock, { key: child.id, block: child }); }));
|
|
48
|
-
return (
|
|
48
|
+
return (
|
|
49
|
+
// getting type errors due to `@types/react` version mismatches. Can safely ignore.
|
|
50
|
+
// @ts-ignore
|
|
51
|
+
react_1.default.createElement(Component, __assign({}, props, { ref: ref }), children));
|
|
49
52
|
});
|
|
50
53
|
HOC.builderOptions = {
|
|
51
54
|
canHaveChildren: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"with-children.js","sourceRoot":"","sources":["../../../../src/functions/with-children.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,gDAA0B;AAE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Ac,GAAG;QAC5B,eAAe,EAAE,IAAI;KACtB,CAAC;IAEF,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AAxBW,QAAA,YAAY,gBAwBvB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@builder.io/react",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.15-1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"main": "dist/builder-react.cjs.js",
|
|
@@ -21,8 +21,6 @@
|
|
|
21
21
|
"builder.io"
|
|
22
22
|
],
|
|
23
23
|
"scripts": {
|
|
24
|
-
"_unlink": "npm unlink *",
|
|
25
|
-
"_install": "npm install",
|
|
26
24
|
"docs": "typedoc",
|
|
27
25
|
"lint": "tslint -t codeFrame '../**/*.ts' 'test/**/*.ts'",
|
|
28
26
|
"prebuild": "rimraf dist",
|
|
@@ -31,20 +29,20 @@
|
|
|
31
29
|
"start": "rollup -c rollup.config.ts -w",
|
|
32
30
|
"test": "jest",
|
|
33
31
|
"test:watch": "jest --watch",
|
|
34
|
-
"test:prod": "
|
|
32
|
+
"test:prod": "yarn lint && yarn test -- --coverage --no-cache",
|
|
35
33
|
"deploy-docs": "ts-node tools/gh-pages-publish",
|
|
36
34
|
"report-coverage": "cat ./coverage/lcov.info≈ | coveralls",
|
|
37
35
|
"commit": "git-cz",
|
|
38
|
-
"release": "
|
|
39
|
-
"release:major": "
|
|
40
|
-
"release:patch": "
|
|
41
|
-
"release:nightly": "
|
|
42
|
-
"release:dev": "
|
|
36
|
+
"release": "yarn build && npm publish",
|
|
37
|
+
"release:major": "yarn build && npm version major && npm publish",
|
|
38
|
+
"release:patch": "yarn build && npm version patch && npm publish",
|
|
39
|
+
"release:nightly": "yarn build && npm version prerelease && npm publish --tag nightly",
|
|
40
|
+
"release:dev": "yarn build && npm version prerelease && npm publish --tag dev",
|
|
43
41
|
"semantic-release": "semantic-release",
|
|
44
42
|
"semantic-release-prepare": "ts-node tools/semantic-release-prepare",
|
|
45
43
|
"precommit": "lint-staged",
|
|
46
|
-
"ci:test": "
|
|
47
|
-
"ci:build": "
|
|
44
|
+
"ci:test": "yarn test",
|
|
45
|
+
"ci:build": "yarn build"
|
|
48
46
|
},
|
|
49
47
|
"lint-staged": {
|
|
50
48
|
"**/*.{js,jsx,ts,tsx,md,json}": [
|
|
@@ -58,7 +56,7 @@
|
|
|
58
56
|
},
|
|
59
57
|
"validate-commit-msg": {
|
|
60
58
|
"types": "conventional-commit-types",
|
|
61
|
-
"helpMessage": "Use \"
|
|
59
|
+
"helpMessage": "Use \"yarn commit\" instead, we use conventional-changelog format :) (https://github.com/commitizen/cz-cli)"
|
|
62
60
|
}
|
|
63
61
|
},
|
|
64
62
|
"devDependencies": {
|
|
@@ -123,11 +121,14 @@
|
|
|
123
121
|
"react-dom": ">=16.8.0"
|
|
124
122
|
},
|
|
125
123
|
"dependencies": {
|
|
126
|
-
"@builder.io/sdk": "^1.1.
|
|
124
|
+
"@builder.io/sdk": "^1.1.33",
|
|
127
125
|
"@emotion/core": "^10.0.17",
|
|
128
126
|
"hash-sum": "^2.0.0",
|
|
129
127
|
"preact": "^10.1.0",
|
|
130
128
|
"vm2": "^3.9.10"
|
|
131
129
|
},
|
|
130
|
+
"installConfig": {
|
|
131
|
+
"hoistingLimits": "workspaces"
|
|
132
|
+
},
|
|
132
133
|
"gitHead": "4d96fbc32864698afbb355ab991c6d90be991951"
|
|
133
134
|
}
|
|
@@ -35,6 +35,8 @@ export const noWrap = <P extends object>(Component: React.ComponentType<P>) => {
|
|
|
35
35
|
...props,
|
|
36
36
|
...props.attributes,
|
|
37
37
|
};
|
|
38
|
+
// getting type errors due to `@types/react` version mismatches. Can safely ignore.
|
|
39
|
+
// @ts-ignore
|
|
38
40
|
return <Component {...finalProps} ref={ref} />;
|
|
39
41
|
});
|
|
40
42
|
(HOC as any).builderOptions = {
|
|
@@ -34,6 +34,8 @@ export const withChildren = <P extends object>(Component: React.ComponentType<P>
|
|
|
34
34
|
props.builderBlock.children.map(child => <BuilderBlock key={child.id} block={child} />));
|
|
35
35
|
|
|
36
36
|
return (
|
|
37
|
+
// getting type errors due to `@types/react` version mismatches. Can safely ignore.
|
|
38
|
+
// @ts-ignore
|
|
37
39
|
<Component {...props} ref={ref}>
|
|
38
40
|
{children}
|
|
39
41
|
</Component>
|