@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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/react",
3
- "version": "2.0.14-2",
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": "npm run lint && npm run test -- --coverage --no-cache",
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": "npm run build && ALLOW_PUBLISH=true npm publish",
39
- "release:major": "npm run build && npm version major && ALLOW_PUBLISH=true npm publish",
40
- "release:patch": "npm run build && npm version patch && ALLOW_PUBLISH=true npm publish",
41
- "release:nightly": "npm run build && npm version prerelease --no-git-tag-version && ALLOW_PUBLISH=true npm publish --tag nightly",
42
- "release:dev": "npm run build && npm version prerelease --no-git-tag-version && ALLOW_PUBLISH=true npm publish --tag 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": "npm run test",
47
- "ci:build": "npm run 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 \"npm run commit\" instead, we use conventional-changelog format :) (https://github.com/commitizen/cz-cli)"
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.30",
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;AAbW,QAAA,MAAM,UAajB"}
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 (react_1.default.createElement(Component, __assign({}, props, { ref: ref }), children));
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;AAE1B,iFAAqE;AAErE;;;;;;;;;;;;;;;;;;;;;GAqBG;AACI,IAAM,YAAY,GAAG,UAAmB,SAAiC;IAC9E,IAAM,GAAG,GAAG,eAAK,CAAC,UAAU,CAC1B,UAAC,KAAK,EAAE,GAAG;QACT,IAAM,QAAQ,GACZ,KAAK,CAAC,QAAQ;YACd,CAAC,KAAK,CAAC,YAAY;gBACjB,KAAK,CAAC,YAAY,CAAC,QAAQ;gBAC3B,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,UAAA,KAAK,IAAI,OAAA,8BAAC,sCAAY,IAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,KAAK,EAAE,KAAK,GAAI,EAA7C,CAA6C,CAAC,CAAC,CAAC;QAE7F,OAAO,CACL,8BAAC,SAAS,eAAK,KAAK,IAAE,GAAG,EAAE,GAAG,KAC3B,QAAQ,CACC,CACb,CAAC;IACJ,CAAC,CACF,CAAC;IAED,GAAW,CAAC,cAAc,GAAG;QAC5B,eAAe,EAAE,IAAI;KACtB,CAAC;IAEF,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AAtBW,QAAA,YAAY,gBAsBvB"}
1
+ {"version":3,"file":"with-children.js","sourceRoot":"","sources":["../../../../src/functions/with-children.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,gDAA0B;AAE1B,iFAAqE;AAErE;;;;;;;;;;;;;;;;;;;;;GAqBG;AACI,IAAM,YAAY,GAAG,UAAmB,SAAiC;IAC9E,IAAM,GAAG,GAAG,eAAK,CAAC,UAAU,CAC1B,UAAC,KAAK,EAAE,GAAG;QACT,IAAM,QAAQ,GACZ,KAAK,CAAC,QAAQ;YACd,CAAC,KAAK,CAAC,YAAY;gBACjB,KAAK,CAAC,YAAY,CAAC,QAAQ;gBAC3B,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,UAAA,KAAK,IAAI,OAAA,8BAAC,sCAAY,IAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,KAAK,EAAE,KAAK,GAAI,EAA7C,CAA6C,CAAC,CAAC,CAAC;QAE7F,OAAO;QACL,mFAAmF;QACnF,aAAa;QACb,8BAAC,SAAS,eAAK,KAAK,IAAE,GAAG,EAAE,GAAG,KAC3B,QAAQ,CACC,CACb,CAAC;IACJ,CAAC,CACF,CAAC;IAED,GAAW,CAAC,cAAc,GAAG;QAC5B,eAAe,EAAE,IAAI;KACtB,CAAC;IAEF,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AAxBW,QAAA,YAAY,gBAwBvB"}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { BuilderElement } from '@builder.io/sdk';
3
2
  declare type MutationProps = {
4
3
  selector: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare type DropzoneProps = {
3
2
  name: string;
4
3
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { BuilderElement } from '@builder.io/sdk';
3
2
  export interface RawTextProps {
4
3
  attributes?: any;
@@ -1,2 +1,3 @@
1
1
  /// <reference types="@types/node" />
2
+ /// <reference types="react-native" />
2
3
  export declare let safeDynamicRequire: typeof require;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/react",
3
- "version": "2.0.14",
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": "npm run lint && npm run test -- --coverage --no-cache",
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": "npm run build && ALLOW_PUBLISH=true npm publish",
39
- "release:major": "npm run build && npm version major && ALLOW_PUBLISH=true npm publish",
40
- "release:patch": "npm run build && npm version patch && ALLOW_PUBLISH=true npm publish",
41
- "release:nightly": "npm run build && npm version prerelease --no-git-tag-version && ALLOW_PUBLISH=true npm publish --tag nightly",
42
- "release:dev": "npm run build && npm version prerelease --no-git-tag-version && ALLOW_PUBLISH=true npm publish --tag 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": "npm run test",
47
- "ci:build": "npm run 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 \"npm run commit\" instead, we use conventional-changelog format :) (https://github.com/commitizen/cz-cli)"
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.30",
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>
package/tsconfig.json CHANGED
@@ -18,7 +18,6 @@
18
18
  "emitDecoratorMetadata": true,
19
19
  "declarationDir": "dist/types",
20
20
  "outDir": "dist/lib",
21
- "typeRoots": ["node_modules/@types"],
22
21
  "paths": {
23
22
  "lib": ["./lib"]
24
23
  }