@nx/react 23.0.0-beta.1 → 23.0.0-beta.3

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.
Files changed (87) hide show
  1. package/generators.json +0 -7
  2. package/index.d.ts +0 -2
  3. package/index.d.ts.map +1 -1
  4. package/index.js +1 -5
  5. package/package.json +17 -22
  6. package/src/generators/application/application.d.ts.map +1 -1
  7. package/src/generators/application/application.js +0 -15
  8. package/src/generators/application/files/base-rsbuild/tsconfig.app.json__tmpl__ +0 -2
  9. package/src/generators/application/files/base-rspack/tsconfig.app.json__tmpl__ +0 -2
  10. package/src/generators/application/files/base-vite/index.html__tmpl__ +1 -1
  11. package/src/generators/application/files/base-vite/tsconfig.app.json__tmpl__ +0 -2
  12. package/src/generators/application/files/base-webpack/tsconfig.app.json__tmpl__ +0 -2
  13. package/src/generators/application/lib/add-project.js +4 -4
  14. package/src/generators/application/lib/bundlers/add-rsbuild.d.ts.map +1 -1
  15. package/src/generators/application/lib/bundlers/add-rsbuild.js +2 -21
  16. package/src/generators/application/lib/bundlers/add-rspack.d.ts +0 -1
  17. package/src/generators/application/lib/bundlers/add-rspack.d.ts.map +1 -1
  18. package/src/generators/application/lib/bundlers/add-rspack.js +0 -25
  19. package/src/generators/application/lib/create-application-files.d.ts +1 -2
  20. package/src/generators/application/lib/create-application-files.d.ts.map +1 -1
  21. package/src/generators/application/lib/create-application-files.js +8 -60
  22. package/src/generators/application/lib/install-common-dependencies.d.ts.map +1 -1
  23. package/src/generators/application/lib/install-common-dependencies.js +2 -7
  24. package/src/generators/application/lib/normalize-options.d.ts.map +1 -1
  25. package/src/generators/application/lib/normalize-options.js +0 -4
  26. package/src/generators/application/lib/update-jest-config.d.ts.map +1 -1
  27. package/src/generators/application/lib/update-jest-config.js +0 -3
  28. package/src/generators/application/schema.d.ts +0 -1
  29. package/src/generators/application/schema.json +2 -21
  30. package/src/generators/component/component.d.ts.map +1 -1
  31. package/src/generators/component/component.js +2 -5
  32. package/src/generators/component/files/__fileName__.__ext__ +3 -18
  33. package/src/generators/component/lib/normalize-options.d.ts.map +1 -1
  34. package/src/generators/component/lib/normalize-options.js +0 -4
  35. package/src/generators/component/schema.d.ts +0 -1
  36. package/src/generators/component/schema.json +2 -21
  37. package/src/generators/host/schema.json +2 -21
  38. package/src/generators/library/files/common/tsconfig.lib.json__tmpl__ +0 -1
  39. package/src/generators/library/files/vite/tsconfig.lib.json__tmpl__ +0 -1
  40. package/src/generators/library/lib/add-rollup-build-target.d.ts.map +1 -1
  41. package/src/generators/library/lib/add-rollup-build-target.js +1 -6
  42. package/src/generators/library/lib/create-files.d.ts.map +1 -1
  43. package/src/generators/library/lib/create-files.js +1 -12
  44. package/src/generators/library/lib/install-common-dependencies.d.ts.map +1 -1
  45. package/src/generators/library/lib/install-common-dependencies.js +2 -7
  46. package/src/generators/library/schema.json +2 -21
  47. package/src/generators/remote/schema.json +2 -21
  48. package/src/migrations/update-22-0-0/add-svgr-to-webpack-config.d.ts.map +1 -1
  49. package/src/migrations/update-22-0-0/add-svgr-to-webpack-config.js +32 -5
  50. package/src/utils/assertion.d.ts.map +1 -1
  51. package/src/utils/assertion.js +1 -10
  52. package/src/utils/create-ts-config.js +0 -7
  53. package/src/utils/versions.d.ts +1 -14
  54. package/src/utils/versions.d.ts.map +1 -1
  55. package/src/utils/versions.js +2 -17
  56. package/tailwind.d.ts +2 -3
  57. package/tailwind.d.ts.map +1 -1
  58. package/tailwind.js +11 -5
  59. package/typings/style.d.ts +1 -9
  60. package/src/generators/application/files/style-styled-jsx/src/app/__fileName__.tsx__tmpl__ +0 -46
  61. package/src/generators/application/files/style-styled-module/src/app/__fileName__.tsx__tmpl__ +0 -49
  62. package/src/generators/application/files/style-tailwind/src/app/__fileName__.tsx__tmpl__ +0 -45
  63. package/src/generators/application/files/style-tailwind/src/styles.css +0 -1
  64. package/src/generators/application/lib/show-possible-warnings.d.ts +0 -4
  65. package/src/generators/application/lib/show-possible-warnings.d.ts.map +0 -1
  66. package/src/generators/application/lib/show-possible-warnings.js +0 -11
  67. package/src/generators/setup-tailwind/files/postcss.config.js__tmpl__ +0 -15
  68. package/src/generators/setup-tailwind/files/tailwind.config.js__tmpl__ +0 -17
  69. package/src/generators/setup-tailwind/lib/add-tailwind-style-imports.d.ts +0 -4
  70. package/src/generators/setup-tailwind/lib/add-tailwind-style-imports.d.ts.map +0 -1
  71. package/src/generators/setup-tailwind/lib/add-tailwind-style-imports.js +0 -27
  72. package/src/generators/setup-tailwind/lib/update-project.d.ts +0 -4
  73. package/src/generators/setup-tailwind/lib/update-project.d.ts.map +0 -1
  74. package/src/generators/setup-tailwind/lib/update-project.js +0 -11
  75. package/src/generators/setup-tailwind/schema.d.ts +0 -7
  76. package/src/generators/setup-tailwind/schema.d.ts.map +0 -1
  77. package/src/generators/setup-tailwind/schema.js +0 -2
  78. package/src/generators/setup-tailwind/schema.json +0 -47
  79. package/src/generators/setup-tailwind/setup-tailwind.d.ts +0 -5
  80. package/src/generators/setup-tailwind/setup-tailwind.d.ts.map +0 -1
  81. package/src/generators/setup-tailwind/setup-tailwind.js +0 -35
  82. package/src/rules/add-styled-dependencies.d.ts +0 -6
  83. package/src/rules/add-styled-dependencies.d.ts.map +0 -1
  84. package/src/rules/add-styled-dependencies.js +0 -16
  85. package/src/utils/styled.d.ts +0 -4
  86. package/src/utils/styled.d.ts.map +0 -1
  87. package/src/utils/styled.js +0 -62
@@ -45,6 +45,7 @@
45
45
  "type": "string",
46
46
  "default": "css",
47
47
  "alias": "s",
48
+ "enum": ["css", "scss", "none"],
48
49
  "x-prompt": {
49
50
  "message": "Which stylesheet format would you like to use?",
50
51
  "type": "list",
@@ -55,27 +56,7 @@
55
56
  },
56
57
  {
57
58
  "value": "scss",
58
- "label": "SASS(.scss) [ https://sass-lang.com ]"
59
- },
60
- {
61
- "value": "less",
62
- "label": "LESS [ https://lesscss.org ]"
63
- },
64
- {
65
- "value": "tailwind",
66
- "label": "tailwind [ https://tailwindcss.com/ ]"
67
- },
68
- {
69
- "value": "styled-components",
70
- "label": "styled-components [ https://styled-components.com ]"
71
- },
72
- {
73
- "value": "@emotion/styled",
74
- "label": "emotion [ https://emotion.sh ]"
75
- },
76
- {
77
- "value": "styled-jsx",
78
- "label": "styled-jsx [ https://www.npmjs.com/package/styled-jsx ]"
59
+ "label": "SASS(.scss) [ https://sass-lang.com ]"
79
60
  },
80
61
  {
81
62
  "value": "none",
@@ -1 +1 @@
1
- {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../../../../packages/react/src/generators/component/component.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,iBAAiB,EAIjB,IAAI,EACL,MAAM,YAAY,CAAC;AASpB,OAAO,EAAoB,MAAM,EAAE,MAAM,UAAU,CAAC;AAGpD,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,8BAyBlE;AAiFD,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../../../../packages/react/src/generators/component/component.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,iBAAiB,EAIjB,IAAI,EACL,MAAM,YAAY,CAAC;AAQpB,OAAO,EAAoB,MAAM,EAAE,MAAM,UAAU,CAAC;AAGpD,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,8BAsBlE;AAiFD,eAAe,kBAAkB,CAAC"}
@@ -4,7 +4,6 @@ exports.componentGenerator = componentGenerator;
4
4
  const devkit_1 = require("@nx/devkit");
5
5
  const ensure_typescript_1 = require("@nx/js/src/utils/typescript/ensure-typescript");
6
6
  const path_1 = require("path");
7
- const add_styled_dependencies_1 = require("../../rules/add-styled-dependencies");
8
7
  const ast_utils_1 = require("../../utils/ast-utils");
9
8
  const get_in_source_vitest_tests_template_1 = require("../../utils/get-in-source-vitest-tests-template");
10
9
  const versions_1 = require("../../utils/versions");
@@ -14,8 +13,6 @@ async function componentGenerator(host, schema) {
14
13
  const options = await (0, normalize_options_1.normalizeOptions)(host, schema);
15
14
  createComponentFiles(host, options);
16
15
  const tasks = [];
17
- const styledTask = (0, add_styled_dependencies_1.addStyledModuleDependencies)(host, options);
18
- tasks.push(styledTask);
19
16
  addExportsToBarrel(host, options);
20
17
  if (options.routing) {
21
18
  const routingTask = (0, devkit_1.addDependenciesToPackageJson)(host, { 'react-router-dom': versions_1.reactRouterDomVersion }, {});
@@ -38,10 +35,10 @@ function createComponentFiles(host, options) {
38
35
  if (options.skipTests || options.inSourceTests) {
39
36
  host.delete((0, devkit_1.joinPathFragments)(options.directory, `${options.fileName}.spec.${options.fileExtension}`));
40
37
  }
41
- if (options.styledModule || !options.hasStyles || !options.globalCss) {
38
+ if (!options.hasStyles || !options.globalCss) {
42
39
  host.delete((0, path_1.join)(options.directory, `${options.fileName}.${options.style}`));
43
40
  }
44
- if (options.styledModule || !options.hasStyles || options.globalCss) {
41
+ if (!options.hasStyles || options.globalCss) {
45
42
  host.delete((0, path_1.join)(options.directory, `${options.fileName}.module.${options.style}`));
46
43
  }
47
44
  }
@@ -6,34 +6,21 @@ import { Route, Link } from 'react-router-dom';
6
6
  <%_ } _%>
7
7
 
8
8
  <%_ if (hasStyles) {
9
- if (styledModule && styledModule !== 'styled-jsx' && styledModule !== 'tailwind') {
10
- var wrapper = 'Styled' + className;
11
- var extras = '';
12
- _%>
13
- import styled from '<%= styledModule %>';
14
- <%_ } else {
15
9
  var wrapper = 'div';
16
- var extras = globalCss || styledModule === 'styled-jsx' || styledModule === 'tailwind' ? '' : " className={styles['container']}";
10
+ var extras = globalCss ? '' : " className={styles['container']}";
17
11
  _%>
18
- <%- style !== 'styled-jsx' && style!== 'tailwind' ? globalCss ? `import './${fileName}.${style}';` : `import styles from './${fileName}.module.${style}';`: '' %>
19
- <%_ }
20
- } else {
12
+ <%- globalCss ? `import './${fileName}.${style}';` : `import styles from './${fileName}.module.${style}';` %>
13
+ <%_ } else {
21
14
  var wrapper = 'div';
22
15
  var extras = '';
23
16
  } _%>
24
17
 
25
- <%_ if (styledModule && styledModule !== 'styled-jsx' && styledModule !== 'tailwind') { _%>
26
- const Styled<%= className %> = styled.div`
27
- color: pink;
28
- `;
29
- <%_ } _%>
30
18
  <%_ if(!isNextPage) { _%>
31
19
  <%_ if (classComponent) { _%>
32
20
  export class <%= className %> extends Component<% if (isTs) { %><{}><% } %> {
33
21
  <% if (isTs) { %>override<% } %> render() {
34
22
  return (
35
23
  <<%= wrapper %><%- extras %>>
36
- <%= styledModule === 'styled-jsx' ? `<style jsx>{\`div { color: pink; }\`}</style>` : `` %>
37
24
  <p>Welcome to <%= className %>!</p>
38
25
  <%_ if (routing) { _%>
39
26
  <ul>
@@ -49,7 +36,6 @@ export class <%= className %> extends Component<% if (isTs) { %><{}><% } %> {
49
36
  export function <%= className %>() {
50
37
  return (
51
38
  <<%= wrapper %><%- extras %>>
52
- <%_ if (styledModule === 'styled-jsx') { _%><style jsx>{`div { color: pink; }`}</style><%_ } _%>
53
39
  <h1>Welcome to <%= className %>!</h1>
54
40
  <%_ if (routing) { _%>
55
41
  <ul>
@@ -67,7 +53,6 @@ export default <%= className %>;
67
53
  export default function <%= className %>() {
68
54
  return (
69
55
  <<%= wrapper %><%- extras %>>
70
- <%_ if (styledModule === 'styled-jsx') { _%><style jsx>{`div { color: pink; }`}</style><%_ } _%>
71
56
  <h1>Welcome to <%= className %>!</h1>
72
57
  <% if (routing) { %>
73
58
  <ul>
@@ -1 +1 @@
1
- {"version":3,"file":"normalize-options.d.ts","sourceRoot":"","sources":["../../../../../../../packages/react/src/generators/component/lib/normalize-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2C,IAAI,EAAE,MAAM,YAAY,CAAC;AAK3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAGrD,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,gBAAgB,CAAC,CAgE3B"}
1
+ {"version":3,"file":"normalize-options.d.ts","sourceRoot":"","sources":["../../../../../../../packages/react/src/generators/component/lib/normalize-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2C,IAAI,EAAE,MAAM,YAAY,CAAC;AAK3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAGrD,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,gBAAgB,CAAC,CA2D3B"}
@@ -17,9 +17,6 @@ async function normalizeOptions(tree, options) {
17
17
  const project = (0, devkit_1.readProjectConfiguration)(tree, projectName);
18
18
  const { className } = (0, devkit_1.names)(name);
19
19
  const { sourceRoot: projectSourceRoot, root: projectRoot, projectType, } = project;
20
- const styledModule = /^(css|scss|less|none)$/.test(options.style)
21
- ? null
22
- : options.style;
23
20
  if (options.export &&
24
21
  (0, ts_solution_setup_1.getProjectType)(tree, projectRoot, projectType) === 'application') {
25
22
  devkit_1.logger.warn(`The "--export" option should not be used with applications and will do nothing.`);
@@ -34,7 +31,6 @@ async function normalizeOptions(tree, options) {
34
31
  ...options,
35
32
  directory,
36
33
  projectName,
37
- styledModule,
38
34
  hasStyles: options.style !== 'none',
39
35
  className,
40
36
  fileName,
@@ -31,6 +31,5 @@ export interface NormalizedSchema extends Omit<Schema, 'js'> {
31
31
  fileExtension: string;
32
32
  fileExtensionType: FileExtensionType;
33
33
  className: string;
34
- styledModule: null | string;
35
34
  hasStyles: boolean;
36
35
  }
@@ -25,6 +25,7 @@
25
25
  "type": "string",
26
26
  "alias": "s",
27
27
  "default": "css",
28
+ "enum": ["css", "scss", "none"],
28
29
  "x-prompt": {
29
30
  "message": "Which stylesheet format would you like to use?",
30
31
  "type": "list",
@@ -35,27 +36,7 @@
35
36
  },
36
37
  {
37
38
  "value": "scss",
38
- "label": "SASS(.scss) [ https://sass-lang.com ]"
39
- },
40
- {
41
- "value": "less",
42
- "label": "LESS [ https://lesscss.org ]"
43
- },
44
- {
45
- "value": "tailwind",
46
- "label": "tailwind [ https://tailwindcss.com/ ]"
47
- },
48
- {
49
- "value": "styled-components",
50
- "label": "styled-components [ https://styled-components.com ]"
51
- },
52
- {
53
- "value": "@emotion/styled",
54
- "label": "emotion [ https://emotion.sh ]"
55
- },
56
- {
57
- "value": "styled-jsx",
58
- "label": "styled-jsx [ https://www.npmjs.com/package/styled-jsx ]"
39
+ "label": "SASS(.scss) [ https://sass-lang.com ]"
59
40
  },
60
41
  {
61
42
  "value": "none",
@@ -27,6 +27,7 @@
27
27
  "type": "string",
28
28
  "default": "css",
29
29
  "alias": "s",
30
+ "enum": ["css", "scss", "none"],
30
31
  "x-prompt": {
31
32
  "message": "Which stylesheet format would you like to use?",
32
33
  "type": "list",
@@ -37,27 +38,7 @@
37
38
  },
38
39
  {
39
40
  "value": "scss",
40
- "label": "SASS(.scss) [ https://sass-lang.com ]"
41
- },
42
- {
43
- "value": "less",
44
- "label": "LESS [ https://lesscss.org ]"
45
- },
46
- {
47
- "value": "tailwind",
48
- "label": "tailwind [ https://tailwindcss.com/ ]"
49
- },
50
- {
51
- "value": "styled-components",
52
- "label": "styled-components [ https://styled-components.com ]"
53
- },
54
- {
55
- "value": "@emotion/styled",
56
- "label": "emotion [ https://emotion.sh ]"
57
- },
58
- {
59
- "value": "styled-jsx",
60
- "label": "styled-jsx [ https://www.npmjs.com/package/styled-jsx ]"
41
+ "label": "SASS(.scss) [ https://sass-lang.com ]"
61
42
  },
62
43
  {
63
44
  "value": "none",
@@ -4,7 +4,6 @@
4
4
  "outDir": "<%= offsetFromRoot %>dist/out-tsc",
5
5
  "types": [
6
6
  "node",
7
- <%_ if (style === 'styled-jsx') { %>"@nx/react/typings/styled-jsx.d.ts",<% } _%>
8
7
  "@nx/react/typings/cssmodule.d.ts",
9
8
  "@nx/react/typings/image.d.ts"
10
9
  ]
@@ -4,7 +4,6 @@
4
4
  "outDir": "<%= offsetFromRoot %>dist/out-tsc",
5
5
  "types": [
6
6
  "node",
7
- <%_ if (style === 'styled-jsx') { _%>"@nx/react/typings/styled-jsx.d.ts",<%_ } _%>
8
7
  "@nx/react/typings/cssmodule.d.ts",
9
8
  "@nx/react/typings/image.d.ts"
10
9
  ]
@@ -1 +1 @@
1
- {"version":3,"file":"add-rollup-build-target.d.ts","sourceRoot":"","sources":["../../../../../../../packages/react/src/generators/library/lib/add-rollup-build-target.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAGL,iBAAiB,EAOlB,MAAM,YAAY,CAAC;AAQpB,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAE7C,wBAAsB,oBAAoB,CACxC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,gBAAgB,GAAG;IAAE,MAAM,CAAC,EAAE,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC,CAAA;CAAE,EAC7D,QAAQ,GAAE,GAAG,CAAC,MAAM,CAAmC,8BAqHxD"}
1
+ {"version":3,"file":"add-rollup-build-target.d.ts","sourceRoot":"","sources":["../../../../../../../packages/react/src/generators/library/lib/add-rollup-build-target.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAGL,iBAAiB,EAOlB,MAAM,YAAY,CAAC;AAQpB,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAE7C,wBAAsB,oBAAoB,CACxC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,gBAAgB,GAAG;IAAE,MAAM,CAAC,EAAE,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC,CAAA;CAAE,EAC7D,QAAQ,GAAE,GAAG,CAAC,MAAM,CAAmC,8BAiHxD"}
@@ -19,12 +19,7 @@ async function addRollupBuildTarget(host, options, external = new Set(['react',
19
19
  '@svgr/rollup': versions_1.svgrRollupVersion,
20
20
  }));
21
21
  }
22
- if (options.style === '@emotion/styled') {
23
- external.add('@emotion/react/jsx-runtime');
24
- }
25
- else {
26
- external.add('react/jsx-runtime');
27
- }
22
+ external.add('react/jsx-runtime');
28
23
  const nxJson = (0, devkit_1.readNxJson)(host);
29
24
  const hasRollupPlugin = !!nxJson.plugins?.some((p) => typeof p === 'string'
30
25
  ? p === '@nx/rollup/plugin'
@@ -1 +1 @@
1
- {"version":3,"file":"create-files.d.ts","sourceRoot":"","sources":["../../../../../../../packages/react/src/generators/library/lib/create-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,IAAI,EAEL,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAI7C,wBAAgB,WAAW,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,gBAAgB,QA6FhE"}
1
+ {"version":3,"file":"create-files.d.ts","sourceRoot":"","sources":["../../../../../../../packages/react/src/generators/library/lib/create-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,IAAI,EAEL,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAI7C,wBAAgB,WAAW,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,gBAAgB,QAiFhE"}
@@ -26,21 +26,10 @@ function createFiles(host, options) {
26
26
  {
27
27
  runtime: 'automatic',
28
28
  useBuiltIns: 'usage',
29
- importSource: options.style === '@emotion/styled'
30
- ? '@emotion/react'
31
- : undefined,
32
29
  },
33
30
  ],
34
31
  ],
35
- plugins: [
36
- options.style === 'styled-components'
37
- ? ['styled-components', { pure: true, ssr: true }]
38
- : undefined,
39
- options.style === 'styled-jsx' ? 'styled-jsx/babel' : undefined,
40
- options.style === '@emotion/styled'
41
- ? '@emotion/babel-plugin'
42
- : undefined,
43
- ].filter(Boolean),
32
+ plugins: [],
44
33
  });
45
34
  }
46
35
  if ((options.publishable || options.buildable) &&
@@ -1 +1 @@
1
- {"version":3,"file":"install-common-dependencies.d.ts","sourceRoot":"","sources":["../../../../../../../packages/react/src/generators/library/lib/install-common-dependencies.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,iBAAiB,EAEjB,IAAI,EACL,MAAM,YAAY,CAAC;AAapB,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAE7C,wBAAsB,yBAAyB,CAC7C,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,gBAAgB,8BA2D1B"}
1
+ {"version":3,"file":"install-common-dependencies.d.ts","sourceRoot":"","sources":["../../../../../../../packages/react/src/generators/library/lib/install-common-dependencies.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,iBAAiB,EAEjB,IAAI,EACL,MAAM,YAAY,CAAC;AAYpB,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAE7C,wBAAsB,yBAAyB,CAC7C,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,gBAAgB,8BAsD1B"}
@@ -21,13 +21,8 @@ async function installCommonDependencies(host, options) {
21
21
  // `@nx/webpack` installs them automatically for now.
22
22
  // TODO(jack): Once we clean up webpack we can remove this check
23
23
  if (options.bundler === 'vite' || options.unitTestRunner === 'vitest') {
24
- switch (options.style) {
25
- case 'scss':
26
- devDependencies['sass'] = versions_1.sassVersion;
27
- break;
28
- case 'less':
29
- devDependencies['less'] = versions_1.lessVersion;
30
- break;
24
+ if (options.style === 'scss') {
25
+ devDependencies['sass'] = versions_1.sassVersion;
31
26
  }
32
27
  }
33
28
  if (options.unitTestRunner && options.unitTestRunner !== 'none') {
@@ -36,6 +36,7 @@
36
36
  "type": "string",
37
37
  "default": "css",
38
38
  "alias": "s",
39
+ "enum": ["css", "scss", "none"],
39
40
  "x-prompt": {
40
41
  "message": "Which stylesheet format would you like to use?",
41
42
  "type": "list",
@@ -46,27 +47,7 @@
46
47
  },
47
48
  {
48
49
  "value": "scss",
49
- "label": "SASS(.scss) [ https://sass-lang.com ]"
50
- },
51
- {
52
- "value": "less",
53
- "label": "LESS [ https://lesscss.org ]"
54
- },
55
- {
56
- "value": "tailwind",
57
- "label": "tailwind [ https://tailwindcss.com/ ]"
58
- },
59
- {
60
- "value": "styled-components",
61
- "label": "styled-components [ https://styled-components.com ]"
62
- },
63
- {
64
- "value": "@emotion/styled",
65
- "label": "emotion [ https://emotion.sh ]"
66
- },
67
- {
68
- "value": "styled-jsx",
69
- "label": "styled-jsx [ https://www.npmjs.com/package/styled-jsx ]"
50
+ "label": "SASS(.scss) [ https://sass-lang.com ]"
70
51
  },
71
52
  {
72
53
  "value": "none",
@@ -33,6 +33,7 @@
33
33
  "type": "string",
34
34
  "default": "css",
35
35
  "alias": "s",
36
+ "enum": ["css", "scss", "none"],
36
37
  "x-prompt": {
37
38
  "message": "Which stylesheet format would you like to use?",
38
39
  "type": "list",
@@ -43,27 +44,7 @@
43
44
  },
44
45
  {
45
46
  "value": "scss",
46
- "label": "SASS(.scss) [ https://sass-lang.com ]"
47
- },
48
- {
49
- "value": "less",
50
- "label": "LESS [ https://lesscss.org ]"
51
- },
52
- {
53
- "value": "tailwind",
54
- "label": "tailwind [ https://tailwindcss.com/ ]"
55
- },
56
- {
57
- "value": "styled-components",
58
- "label": "styled-components [ https://styled-components.com ]"
59
- },
60
- {
61
- "value": "@emotion/styled",
62
- "label": "emotion [ https://emotion.sh ]"
63
- },
64
- {
65
- "value": "styled-jsx",
66
- "label": "styled-jsx [ https://www.npmjs.com/package/styled-jsx ]"
47
+ "label": "SASS(.scss) [ https://sass-lang.com ]"
67
48
  },
68
49
  {
69
50
  "value": "none",
@@ -1 +1 @@
1
- {"version":3,"file":"add-svgr-to-webpack-config.d.ts","sourceRoot":"","sources":["../../../../../../packages/react/src/migrations/update-22-0-0/add-svgr-to-webpack-config.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EAKV,MAAM,YAAY,CAAC;AAiHpB,wBAA8B,sBAAsB,CAAC,IAAI,EAAE,IAAI,iBAsX9D"}
1
+ {"version":3,"file":"add-svgr-to-webpack-config.d.ts","sourceRoot":"","sources":["../../../../../../packages/react/src/migrations/update-22-0-0/add-svgr-to-webpack-config.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EAKV,MAAM,YAAY,CAAC;AAiHpB,wBAA8B,sBAAsB,CAAC,IAAI,EAAE,IAAI,iBAsZ9D"}
@@ -271,11 +271,38 @@ async function addSvgrToWebpackConfig(tree) {
271
271
  ts.isIdentifier(prop.name) &&
272
272
  prop.name.text === 'svgr');
273
273
  if (svgrProp) {
274
- changes.push({
275
- type: devkit_1.ChangeType.Delete,
276
- start: arg.getStart(),
277
- length: arg.getEnd() - arg.getStart(),
278
- });
274
+ const hasOnlySvgrProperty = arg.properties.length === 1;
275
+ if (hasOnlySvgrProperty) {
276
+ changes.push({
277
+ type: devkit_1.ChangeType.Delete,
278
+ start: arg.getStart(),
279
+ length: arg.getEnd() - arg.getStart(),
280
+ });
281
+ }
282
+ else {
283
+ const propIndex = arg.properties.indexOf(svgrProp);
284
+ const isLastProp = propIndex === arg.properties.length - 1;
285
+ const isFirstProp = propIndex === 0;
286
+ let removeStart = svgrProp.getFullStart();
287
+ let removeEnd = svgrProp.getEnd();
288
+ if (!isLastProp) {
289
+ const nextProp = arg.properties[propIndex + 1];
290
+ removeEnd = nextProp.getFullStart();
291
+ }
292
+ else if (!isFirstProp) {
293
+ const prevProp = arg.properties[propIndex - 1];
294
+ const textBetween = content.substring(prevProp.getEnd(), svgrProp.getFullStart());
295
+ const commaIndex = textBetween.indexOf(',');
296
+ if (commaIndex !== -1) {
297
+ removeStart = prevProp.getEnd() + commaIndex;
298
+ }
299
+ }
300
+ changes.push({
301
+ type: devkit_1.ChangeType.Delete,
302
+ start: removeStart,
303
+ length: removeEnd - removeStart,
304
+ });
305
+ }
279
306
  if (config.svgrOptions) {
280
307
  const composePluginsCalls = (0, tsquery_1.query)(sourceFile, 'CallExpression[expression.name=composePlugins]');
281
308
  if (composePluginsCalls.length > 0) {
@@ -1 +1 @@
1
- {"version":3,"file":"assertion.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/utils/assertion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAa/D,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAQpD;AAED,wBAAgB,sBAAsB,CACpC,WAAW,EAAE,OAAO,EACpB,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC,GACzB,IAAI,CAMN"}
1
+ {"version":3,"file":"assertion.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/utils/assertion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAI/D,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAQpD;AAED,wBAAgB,sBAAsB,CACpC,WAAW,EAAE,OAAO,EACpB,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC,GACzB,IAAI,CAMN"}
@@ -2,16 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.assertValidStyle = assertValidStyle;
4
4
  exports.assertValidReactRouter = assertValidReactRouter;
5
- const VALID_STYLES = [
6
- 'css',
7
- 'scss',
8
- 'less',
9
- 'tailwind',
10
- 'styled-components',
11
- '@emotion/styled',
12
- 'styled-jsx',
13
- 'none',
14
- ];
5
+ const VALID_STYLES = ['css', 'scss', 'none'];
15
6
  function assertValidStyle(style) {
16
7
  if (VALID_STYLES.indexOf(style) === -1) {
17
8
  throw new Error(`Unsupported style option found: ${style}. Valid values are: "${VALID_STYLES.join('", "')}"`);
@@ -54,10 +54,6 @@ function createTsConfigForTsSolution(host, projectRoot, type, options, relativeP
54
54
  types.add('vite/client');
55
55
  json.compilerOptions.types = Array.from(types);
56
56
  }
57
- if (options.style === '@emotion/styled') {
58
- json.compilerOptions ??= {};
59
- json.compilerOptions.jsxImportSource = '@emotion/react';
60
- }
61
57
  return json;
62
58
  });
63
59
  }
@@ -79,9 +75,6 @@ function createTsConfigForNonTsSolution(host, projectRoot, type, options, relati
79
75
  },
80
76
  ],
81
77
  };
82
- if (options.style === '@emotion/styled') {
83
- json.compilerOptions.jsxImportSource = '@emotion/react';
84
- }
85
78
  if (options.bundler === 'vite') {
86
79
  json.compilerOptions.types =
87
80
  options.unitTestRunner === 'vitest'
@@ -6,7 +6,6 @@ export declare const reactDomV18Version = "18.3.1";
6
6
  export declare const reactIsVersion = "^19.0.0";
7
7
  export declare const reactIsV18Version = "18.3.1";
8
8
  export declare const swcLoaderVersion = "0.1.15";
9
- export declare const babelLoaderVersion = "^9.1.2";
10
9
  export declare const typesReactV18Version = "18.3.1";
11
10
  export declare const typesReactVersion = "^19.0.0";
12
11
  export declare const typesReactDomV18Version = "18.3.0";
@@ -17,12 +16,6 @@ export declare const reactViteVersion = "^4.2.0";
17
16
  export declare const typesNodeVersion = "^20.0.0";
18
17
  export declare const babelPresetReactVersion = "^7.14.5";
19
18
  export declare const babelCoreVersion = "^7.14.5";
20
- export declare const styledComponentsVersion = "5.3.6";
21
- export declare const typesStyledComponentsVersion = "5.1.26";
22
- export declare const emotionStyledVersion = "11.14.1";
23
- export declare const emotionReactVersion = "11.14.0";
24
- export declare const emotionBabelPlugin = "11.13.5";
25
- export declare const styledJsxVersion = "5.1.2";
26
19
  export declare const reactRouterDomVersion = "6.30.3";
27
20
  export declare const reactRouterVersion = "^7.14.2";
28
21
  export declare const reactRouterIsBotVersion = "^4.4.0";
@@ -34,10 +27,8 @@ export declare const eslintPluginImportVersion = "2.31.0";
34
27
  export declare const eslintPluginJsxA11yVersion = "6.10.1";
35
28
  export declare const eslintPluginReactVersion = "7.35.0";
36
29
  export declare const eslintPluginReactHooksVersion = "5.0.0";
37
- export declare const babelPluginStyledComponentsVersion = "1.10.7";
38
30
  export declare const tsLibVersion = "^2.3.0";
39
31
  export declare const postcssVersion = "8.4.38";
40
- export declare const tailwindcssVersion = "3.4.3";
41
32
  export declare const autoprefixerVersion = "10.4.13";
42
33
  export declare const expressVersion = "^4.21.2";
43
34
  export declare const typesExpressVersion = "^4.17.21";
@@ -46,11 +37,7 @@ export declare const corsVersion = "~2.8.5";
46
37
  export declare const typesCorsVersion = "~2.8.12";
47
38
  export declare const moduleFederationNodeVersion = "^2.7.21";
48
39
  export declare const moduleFederationEnhancedVersion = "^2.1.0";
49
- export declare const lessVersion = "3.12.2";
50
- export declare const sassVersion = "^1.55.0";
40
+ export declare const sassVersion = "^1.97.2";
51
41
  export declare const rollupPluginUrlVersion = "^8.0.2";
52
42
  export declare const svgrRollupVersion = "^8.1.0";
53
- export declare const swcPluginStyledJsxVersion = "^1.5.67";
54
- export declare const swcPluginEmotionVersion = "^2.5.67";
55
- export declare const swcPluginStyledComponentsVersion = "^1.5.67";
56
43
  //# sourceMappingURL=versions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/utils/versions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,KAAwC,CAAC;AAE/D,eAAO,MAAM,YAAY,YAAY,CAAC;AACtC,eAAO,MAAM,eAAe,WAAW,CAAC;AACxC,eAAO,MAAM,eAAe,YAAY,CAAC;AACzC,eAAO,MAAM,kBAAkB,WAAW,CAAC;AAC3C,eAAO,MAAM,cAAc,YAAY,CAAC;AACxC,eAAO,MAAM,iBAAiB,WAAW,CAAC;AAC1C,eAAO,MAAM,gBAAgB,WAAW,CAAC;AACzC,eAAO,MAAM,kBAAkB,WAAW,CAAC;AAC3C,eAAO,MAAM,oBAAoB,WAAW,CAAC;AAC7C,eAAO,MAAM,iBAAiB,YAAY,CAAC;AAC3C,eAAO,MAAM,uBAAuB,WAAW,CAAC;AAChD,eAAO,MAAM,oBAAoB,YAAY,CAAC;AAC9C,eAAO,MAAM,sBAAsB,WAAW,CAAC;AAC/C,eAAO,MAAM,mBAAmB,YAAY,CAAC;AAC7C,eAAO,MAAM,gBAAgB,WAAW,CAAC;AAGzC,eAAO,MAAM,gBAAgB,YAAY,CAAC;AAE1C,eAAO,MAAM,uBAAuB,YAAY,CAAC;AACjD,eAAO,MAAM,gBAAgB,YAAY,CAAC;AAE1C,eAAO,MAAM,uBAAuB,UAAU,CAAC;AAC/C,eAAO,MAAM,4BAA4B,WAAW,CAAC;AAErD,eAAO,MAAM,oBAAoB,YAAY,CAAC;AAC9C,eAAO,MAAM,mBAAmB,YAAY,CAAC;AAC7C,eAAO,MAAM,kBAAkB,YAAY,CAAC;AAG5C,eAAO,MAAM,gBAAgB,UAAU,CAAC;AAExC,eAAO,MAAM,qBAAqB,WAAW,CAAC;AAC9C,eAAO,MAAM,kBAAkB,YAAY,CAAC;AAC5C,eAAO,MAAM,uBAAuB,WAAW,CAAC;AAEhD,eAAO,MAAM,0BAA0B,WAAW,CAAC;AACnD,eAAO,MAAM,wBAAwB,WAAW,CAAC;AAEjD,eAAO,MAAM,qBAAqB,UAAU,CAAC;AAC7C,eAAO,MAAM,iBAAiB,UAAU,CAAC;AAEzC,eAAO,MAAM,yBAAyB,WAAW,CAAC;AAClD,eAAO,MAAM,0BAA0B,WAAW,CAAC;AACnD,eAAO,MAAM,wBAAwB,WAAW,CAAC;AACjD,eAAO,MAAM,6BAA6B,UAAU,CAAC;AAErD,eAAO,MAAM,kCAAkC,WAAW,CAAC;AAE3D,eAAO,MAAM,YAAY,WAAW,CAAC;AAErC,eAAO,MAAM,cAAc,WAAW,CAAC;AACvC,eAAO,MAAM,kBAAkB,UAAU,CAAC;AAC1C,eAAO,MAAM,mBAAmB,YAAY,CAAC;AAG7C,eAAO,MAAM,cAAc,YAAY,CAAC;AACxC,eAAO,MAAM,mBAAmB,aAAa,CAAC;AAC9C,eAAO,MAAM,YAAY,WAAW,CAAC;AACrC,eAAO,MAAM,WAAW,WAAW,CAAC;AACpC,eAAO,MAAM,gBAAgB,YAAY,CAAC;AAC1C,eAAO,MAAM,2BAA2B,YAAY,CAAC;AACrD,eAAO,MAAM,+BAA+B,WAAW,CAAC;AAGxD,eAAO,MAAM,WAAW,WAAW,CAAC;AACpC,eAAO,MAAM,WAAW,YAAY,CAAC;AAGrC,eAAO,MAAM,sBAAsB,WAAW,CAAC;AAC/C,eAAO,MAAM,iBAAiB,WAAW,CAAC;AAE1C,eAAO,MAAM,yBAAyB,YAAY,CAAC;AACnD,eAAO,MAAM,uBAAuB,YAAY,CAAC;AACjD,eAAO,MAAM,gCAAgC,YAAY,CAAC"}
1
+ {"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/utils/versions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,KAAwC,CAAC;AAE/D,eAAO,MAAM,YAAY,YAAY,CAAC;AACtC,eAAO,MAAM,eAAe,WAAW,CAAC;AACxC,eAAO,MAAM,eAAe,YAAY,CAAC;AACzC,eAAO,MAAM,kBAAkB,WAAW,CAAC;AAC3C,eAAO,MAAM,cAAc,YAAY,CAAC;AACxC,eAAO,MAAM,iBAAiB,WAAW,CAAC;AAC1C,eAAO,MAAM,gBAAgB,WAAW,CAAC;AACzC,eAAO,MAAM,oBAAoB,WAAW,CAAC;AAC7C,eAAO,MAAM,iBAAiB,YAAY,CAAC;AAC3C,eAAO,MAAM,uBAAuB,WAAW,CAAC;AAChD,eAAO,MAAM,oBAAoB,YAAY,CAAC;AAC9C,eAAO,MAAM,sBAAsB,WAAW,CAAC;AAC/C,eAAO,MAAM,mBAAmB,YAAY,CAAC;AAC7C,eAAO,MAAM,gBAAgB,WAAW,CAAC;AAGzC,eAAO,MAAM,gBAAgB,YAAY,CAAC;AAE1C,eAAO,MAAM,uBAAuB,YAAY,CAAC;AACjD,eAAO,MAAM,gBAAgB,YAAY,CAAC;AAE1C,eAAO,MAAM,qBAAqB,WAAW,CAAC;AAC9C,eAAO,MAAM,kBAAkB,YAAY,CAAC;AAC5C,eAAO,MAAM,uBAAuB,WAAW,CAAC;AAEhD,eAAO,MAAM,0BAA0B,WAAW,CAAC;AACnD,eAAO,MAAM,wBAAwB,WAAW,CAAC;AAEjD,eAAO,MAAM,qBAAqB,UAAU,CAAC;AAC7C,eAAO,MAAM,iBAAiB,UAAU,CAAC;AAEzC,eAAO,MAAM,yBAAyB,WAAW,CAAC;AAClD,eAAO,MAAM,0BAA0B,WAAW,CAAC;AACnD,eAAO,MAAM,wBAAwB,WAAW,CAAC;AACjD,eAAO,MAAM,6BAA6B,UAAU,CAAC;AAErD,eAAO,MAAM,YAAY,WAAW,CAAC;AAErC,eAAO,MAAM,cAAc,WAAW,CAAC;AACvC,eAAO,MAAM,mBAAmB,YAAY,CAAC;AAG7C,eAAO,MAAM,cAAc,YAAY,CAAC;AACxC,eAAO,MAAM,mBAAmB,aAAa,CAAC;AAC9C,eAAO,MAAM,YAAY,WAAW,CAAC;AACrC,eAAO,MAAM,WAAW,WAAW,CAAC;AACpC,eAAO,MAAM,gBAAgB,YAAY,CAAC;AAC1C,eAAO,MAAM,2BAA2B,YAAY,CAAC;AACrD,eAAO,MAAM,+BAA+B,WAAW,CAAC;AAGxD,eAAO,MAAM,WAAW,YAAY,CAAC;AAGrC,eAAO,MAAM,sBAAsB,WAAW,CAAC;AAC/C,eAAO,MAAM,iBAAiB,WAAW,CAAC"}
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.sassVersion = exports.lessVersion = exports.moduleFederationEnhancedVersion = exports.moduleFederationNodeVersion = exports.typesCorsVersion = exports.corsVersion = exports.isbotVersion = exports.typesExpressVersion = exports.expressVersion = exports.autoprefixerVersion = exports.tailwindcssVersion = exports.postcssVersion = exports.tsLibVersion = exports.babelPluginStyledComponentsVersion = exports.eslintPluginReactHooksVersion = exports.eslintPluginReactVersion = exports.eslintPluginJsxA11yVersion = exports.eslintPluginImportVersion = exports.reactReduxVersion = exports.reduxjsToolkitVersion = exports.testingLibraryDomVersion = exports.testingLibraryReactVersion = exports.reactRouterIsBotVersion = exports.reactRouterVersion = exports.reactRouterDomVersion = exports.styledJsxVersion = exports.emotionBabelPlugin = exports.emotionReactVersion = exports.emotionStyledVersion = exports.typesStyledComponentsVersion = exports.styledComponentsVersion = exports.babelCoreVersion = exports.babelPresetReactVersion = exports.typesNodeVersion = exports.reactViteVersion = exports.typesReactIsVersion = exports.typesReactIsV18Version = exports.typesReactDomVersion = exports.typesReactDomV18Version = exports.typesReactVersion = exports.typesReactV18Version = exports.babelLoaderVersion = exports.swcLoaderVersion = exports.reactIsV18Version = exports.reactIsVersion = exports.reactDomV18Version = exports.reactDomVersion = exports.reactV18Version = exports.reactVersion = exports.nxVersion = void 0;
4
- exports.swcPluginStyledComponentsVersion = exports.swcPluginEmotionVersion = exports.swcPluginStyledJsxVersion = exports.svgrRollupVersion = exports.rollupPluginUrlVersion = void 0;
3
+ exports.svgrRollupVersion = exports.rollupPluginUrlVersion = exports.sassVersion = exports.moduleFederationEnhancedVersion = exports.moduleFederationNodeVersion = exports.typesCorsVersion = exports.corsVersion = exports.isbotVersion = exports.typesExpressVersion = exports.expressVersion = exports.autoprefixerVersion = exports.postcssVersion = exports.tsLibVersion = exports.eslintPluginReactHooksVersion = exports.eslintPluginReactVersion = exports.eslintPluginJsxA11yVersion = exports.eslintPluginImportVersion = exports.reactReduxVersion = exports.reduxjsToolkitVersion = exports.testingLibraryDomVersion = exports.testingLibraryReactVersion = exports.reactRouterIsBotVersion = exports.reactRouterVersion = exports.reactRouterDomVersion = exports.babelCoreVersion = exports.babelPresetReactVersion = exports.typesNodeVersion = exports.reactViteVersion = exports.typesReactIsVersion = exports.typesReactIsV18Version = exports.typesReactDomVersion = exports.typesReactDomV18Version = exports.typesReactVersion = exports.typesReactV18Version = exports.swcLoaderVersion = exports.reactIsV18Version = exports.reactIsVersion = exports.reactDomV18Version = exports.reactDomVersion = exports.reactV18Version = exports.reactVersion = exports.nxVersion = void 0;
5
4
  exports.nxVersion = require('../../package.json').version;
6
5
  exports.reactVersion = '^19.0.0';
7
6
  exports.reactV18Version = '18.3.1';
@@ -10,7 +9,6 @@ exports.reactDomV18Version = '18.3.1';
10
9
  exports.reactIsVersion = '^19.0.0';
11
10
  exports.reactIsV18Version = '18.3.1';
12
11
  exports.swcLoaderVersion = '0.1.15';
13
- exports.babelLoaderVersion = '^9.1.2';
14
12
  exports.typesReactV18Version = '18.3.1';
15
13
  exports.typesReactVersion = '^19.0.0';
16
14
  exports.typesReactDomV18Version = '18.3.0';
@@ -22,13 +20,6 @@ exports.reactViteVersion = '^4.2.0';
22
20
  exports.typesNodeVersion = '^20.0.0';
23
21
  exports.babelPresetReactVersion = '^7.14.5';
24
22
  exports.babelCoreVersion = '^7.14.5';
25
- exports.styledComponentsVersion = '5.3.6';
26
- exports.typesStyledComponentsVersion = '5.1.26';
27
- exports.emotionStyledVersion = '11.14.1';
28
- exports.emotionReactVersion = '11.14.0';
29
- exports.emotionBabelPlugin = '11.13.5';
30
- // WARNING: This needs to be in sync with Next.js' dependency or else there might be issues.
31
- exports.styledJsxVersion = '5.1.2';
32
23
  exports.reactRouterDomVersion = '6.30.3';
33
24
  exports.reactRouterVersion = '^7.14.2';
34
25
  exports.reactRouterIsBotVersion = '^4.4.0';
@@ -40,10 +31,8 @@ exports.eslintPluginImportVersion = '2.31.0';
40
31
  exports.eslintPluginJsxA11yVersion = '6.10.1';
41
32
  exports.eslintPluginReactVersion = '7.35.0';
42
33
  exports.eslintPluginReactHooksVersion = '5.0.0';
43
- exports.babelPluginStyledComponentsVersion = '1.10.7';
44
34
  exports.tsLibVersion = '^2.3.0';
45
35
  exports.postcssVersion = '8.4.38';
46
- exports.tailwindcssVersion = '3.4.3';
47
36
  exports.autoprefixerVersion = '10.4.13';
48
37
  // SSR and Module Federation
49
38
  exports.expressVersion = '^4.21.2';
@@ -54,11 +43,7 @@ exports.typesCorsVersion = '~2.8.12';
54
43
  exports.moduleFederationNodeVersion = '^2.7.21';
55
44
  exports.moduleFederationEnhancedVersion = '^2.1.0';
56
45
  // style preprocessors
57
- exports.lessVersion = '3.12.2';
58
- exports.sassVersion = '^1.55.0';
46
+ exports.sassVersion = '^1.97.2';
59
47
  // rollup plugins (if needed)
60
48
  exports.rollupPluginUrlVersion = '^8.0.2';
61
49
  exports.svgrRollupVersion = '^8.1.0';
62
- exports.swcPluginStyledJsxVersion = '^1.5.67';
63
- exports.swcPluginEmotionVersion = '^2.5.67';
64
- exports.swcPluginStyledComponentsVersion = '^1.5.67';
package/tailwind.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  /**
2
- * Generates a set of glob patterns based off the source root of the app and its dependencies
3
- * @param dirPath workspace relative directory path that will be used to infer the parent project and dependencies
4
- * @param fileGlobPattern pass a custom glob pattern to be used
2
+ * @deprecated `@nx/react/tailwind` will be removed in Nx 24. Migrate to Tailwind CSS v4 which no longer needs glob patterns.
3
+ * See: https://nx.dev/docs/technologies/react/guides/using-tailwind-css-in-react
5
4
  */
6
5
  export declare function createGlobPatternsForDependencies(dirPath: string, fileGlobPattern?: string): string[];
7
6
  //# sourceMappingURL=tailwind.d.ts.map
package/tailwind.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"tailwind.d.ts","sourceRoot":"","sources":["../../../packages/react/tailwind.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,wBAAgB,iCAAiC,CAC/C,OAAO,EAAE,MAAM,EACf,eAAe,GAAE,MAAwD,YAoB1E"}
1
+ {"version":3,"file":"tailwind.d.ts","sourceRoot":"","sources":["../../../packages/react/tailwind.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,wBAAgB,iCAAiC,CAC/C,OAAO,EAAE,MAAM,EACf,eAAe,GAAE,MAAuD,YA4BzE"}