@nrwl/react 13.8.3 → 13.8.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nrwl/react",
3
- "version": "13.8.3",
3
+ "version": "13.8.5",
4
4
  "description": "React Plugin for Nx",
5
5
  "repository": {
6
6
  "type": "git",
@@ -31,20 +31,20 @@
31
31
  "dependencies": {
32
32
  "@babel/core": "^7.15.0",
33
33
  "@babel/preset-react": "^7.14.5",
34
- "@nrwl/cypress": "13.8.3",
35
- "@nrwl/devkit": "13.8.3",
36
- "@nrwl/jest": "13.8.3",
37
- "@nrwl/js": "13.8.3",
38
- "@nrwl/linter": "13.8.3",
39
- "@nrwl/storybook": "13.8.3",
40
- "@nrwl/web": "13.8.3",
41
- "@nrwl/workspace": "13.8.3",
34
+ "@nrwl/cypress": "13.8.5",
35
+ "@nrwl/devkit": "13.8.5",
36
+ "@nrwl/jest": "13.8.5",
37
+ "@nrwl/js": "13.8.5",
38
+ "@nrwl/linter": "13.8.5",
39
+ "@nrwl/storybook": "13.8.5",
40
+ "@nrwl/web": "13.8.5",
41
+ "@nrwl/workspace": "13.8.5",
42
42
  "@pmmmwh/react-refresh-webpack-plugin": "^0.5.1",
43
43
  "@svgr/webpack": "^6.1.2",
44
44
  "chalk": "4.1.0",
45
45
  "eslint-plugin-import": "^2.25.2",
46
46
  "eslint-plugin-jsx-a11y": "^6.5.1",
47
- "eslint-plugin-react": "^7.27.0",
47
+ "eslint-plugin-react": "7.28.0",
48
48
  "eslint-plugin-react-hooks": "^4.3.0",
49
49
  "react-refresh": "^0.10.0",
50
50
  "url-loader": "^4.1.1",
@@ -0,0 +1,7 @@
1
+ /*
2
+ * Replace this with your own classes
3
+ *
4
+ * e.g.
5
+ * .container {
6
+ * }
7
+ */
@@ -9,14 +9,19 @@ import { Route, Link } from 'react-router-dom';
9
9
  <% if (hasStyles) {
10
10
  if (styledModule && styledModule !== 'styled-jsx') {
11
11
  var wrapper = 'Styled' + className;
12
+ var extras = '';
12
13
  %>
13
14
  import styled from '<%= styledModule %>';
14
15
  <% } else {
15
16
  var wrapper = 'div';
17
+ var extras = globalCss ? '' : " className={styles['container']}";
16
18
  %>
17
- <%- style !== 'styled-jsx' ? globalCss ? `import './${fileName}.${style}';` : `import './${fileName}.module.${style}';`: '' %>
19
+ <%- style !== 'styled-jsx' ? globalCss ? `import './${fileName}.${style}';` : `import styles from './${fileName}.module.${style}';`: '' %>
18
20
  <% }
19
- } else { var wrapper = 'div'; } %>
21
+ } else {
22
+ var wrapper = 'div';
23
+ var extras = '';
24
+ } %>
20
25
 
21
26
  /* eslint-disable-next-line */
22
27
  export interface <%= className %>Props {
@@ -31,7 +36,7 @@ const Styled<%= className %> = styled.div`
31
36
  export class <%= className %> extends Component<<%= className %>Props> {
32
37
  render() {
33
38
  return (
34
- <<%= wrapper %>>
39
+ <<%= wrapper %><%- extras %>>
35
40
  <%= styledModule === 'styled-jsx' ? `<style jsx>{\`div { color: pink; }\`}</style>` : `` %>
36
41
  <p>Welcome to <%= className %>!</p>
37
42
  <% if (routing) { %>
@@ -47,7 +52,7 @@ export class <%= className %> extends Component<<%= className %>Props> {
47
52
  <% } else { %>
48
53
  export function <%= className %>(props: <%= className %>Props) {
49
54
  return (
50
- <<%= wrapper %>>
55
+ <<%= wrapper %><%- extras %>>
51
56
  <% if (styledModule === 'styled-jsx') { %><style jsx>{`div { color: pink; }`}</style><% } %>
52
57
  <h1>Welcome to <%= className %>!</h1>
53
58
  <% if (routing) { %>
@@ -20,6 +20,6 @@ export declare const reactReduxVersion = "7.2.5";
20
20
  export declare const reactTestRendererVersion = "17.0.2";
21
21
  export declare const eslintPluginImportVersion = "2.25.2";
22
22
  export declare const eslintPluginJsxA11yVersion = "6.5.1";
23
- export declare const eslintPluginReactVersion = "7.27.0";
23
+ export declare const eslintPluginReactVersion = "7.28.0";
24
24
  export declare const eslintPluginReactHooksVersion = "4.3.0";
25
25
  export declare const babelPluginStyledComponentsVersion = "1.10.7";
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.babelPluginStyledComponentsVersion = exports.eslintPluginReactHooksVersion = exports.eslintPluginReactVersion = exports.eslintPluginJsxA11yVersion = exports.eslintPluginImportVersion = exports.reactTestRendererVersion = exports.reactReduxVersion = exports.reduxjsToolkitVersion = exports.testingLibraryReactHooksVersion = exports.testingLibraryReactVersion = exports.typesReactRouterDomVersion = exports.reactRouterDomVersion = exports.styledJsxVersion = exports.emotionBabelPlugin = exports.emotionReactVersion = exports.emotionStyledVersion = exports.typesStyledComponentsVersion = exports.styledComponentsVersion = exports.typesReactIsVersion = exports.typesReactDomVersion = exports.typesReactVersion = exports.reactIsVersion = exports.reactDomVersion = exports.reactVersion = exports.nxVersion = void 0;
4
- exports.nxVersion = '13.8.3';
4
+ exports.nxVersion = '13.8.5';
5
5
  exports.reactVersion = '17.0.2';
6
6
  exports.reactDomVersion = '17.0.2';
7
7
  exports.reactIsVersion = '17.0.2';
@@ -23,7 +23,7 @@ exports.reactReduxVersion = '7.2.5';
23
23
  exports.reactTestRendererVersion = '17.0.2';
24
24
  exports.eslintPluginImportVersion = '2.25.2';
25
25
  exports.eslintPluginJsxA11yVersion = '6.5.1';
26
- exports.eslintPluginReactVersion = '7.27.0';
26
+ exports.eslintPluginReactVersion = '7.28.0';
27
27
  exports.eslintPluginReactHooksVersion = '4.3.0';
28
28
  exports.babelPluginStyledComponentsVersion = '1.10.7';
29
29
  //# sourceMappingURL=versions.js.map