@nrwl/react 15.9.0-beta.0 → 15.9.0-beta.2

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": "15.9.0-beta.0",
3
+ "version": "15.9.0-beta.2",
4
4
  "private": false,
5
5
  "description": "The React plugin for Nx contains executors and generators for managing React applications and libraries within an Nx workspace. It provides:\n\n\n- Integration with libraries such as Jest, Cypress, and Storybook.\n\n- Generators for applications, libraries, components, hooks, and more.\n\n- Library build support for publishing packages to npm or other registries.\n\n- Utilities for automatic workspace refactoring.",
6
6
  "repository": {
@@ -31,10 +31,10 @@
31
31
  "migrations": "./migrations.json"
32
32
  },
33
33
  "dependencies": {
34
- "@nrwl/devkit": "15.9.0-beta.0",
35
- "@nrwl/js": "15.9.0-beta.0",
36
- "@nrwl/linter": "15.9.0-beta.0",
37
- "@nrwl/workspace": "15.9.0-beta.0",
34
+ "@nrwl/devkit": "15.9.0-beta.2",
35
+ "@nrwl/js": "15.9.0-beta.2",
36
+ "@nrwl/linter": "15.9.0-beta.2",
37
+ "@nrwl/workspace": "15.9.0-beta.2",
38
38
  "@phenomnomnominal/tsquery": "4.1.1",
39
39
  "chalk": "^4.1.0",
40
40
  "minimatch": "3.0.5"
@@ -43,5 +43,5 @@
43
43
  "access": "public"
44
44
  },
45
45
  "types": "./index.d.ts",
46
- "gitHead": "e3e87f57fd740bf78945a4907745d03f18d057c3"
46
+ "gitHead": "567024e107950016a72ec7806e02ce81eb8269b9"
47
47
  }
@@ -238,6 +238,7 @@ export function NxWelcome({ title }: { title: string }) {
238
238
  #other-links {}
239
239
  .button-pill {
240
240
  padding: 1.5rem 2rem;
241
+ margin-bottom: 2rem;
241
242
  transition-duration: 300ms;
242
243
  transition-property: background-color, border-color, color, fill, stroke,
243
244
  opacity, box-shadow, transform, filter, backdrop-filter,
@@ -273,10 +274,10 @@ export function NxWelcome({ title }: { title: string }) {
273
274
  .button-pill:hover {
274
275
  color: rgba(255, 255, 255, 1) !important;
275
276
  }
276
- #nx-console:hover {
277
+ .nx-console:hover {
277
278
  background-color: rgba(0, 122, 204, 1);
278
279
  }
279
- #nx-console svg {
280
+ .nx-console svg {
280
281
  color: rgba(0, 122, 204, 1);
281
282
  }
282
283
  #nx-repo:hover {
@@ -643,8 +644,7 @@ export function NxWelcome({ title }: { title: string }) {
643
644
  </div>
644
645
  <div id="other-links">
645
646
  <a
646
- id="nx-console"
647
- className="button-pill rounded shadow"
647
+ className="button-pill nx-console rounded shadow"
648
648
  href="https://marketplace.visualstudio.com/items?itemName=nrwl.angular-console&utm_source=nx-project"
649
649
  target="_blank"
650
650
  rel="noreferrer"
@@ -659,8 +659,30 @@ export function NxWelcome({ title }: { title: string }) {
659
659
  <path d="M23.15 2.587L18.21.21a1.494 1.494 0 0 0-1.705.29l-9.46 8.63-4.12-3.128a.999.999 0 0 0-1.276.057L.327 7.261A1 1 0 0 0 .326 8.74L3.899 12 .326 15.26a1 1 0 0 0 .001 1.479L1.65 17.94a.999.999 0 0 0 1.276.057l4.12-3.128 9.46 8.63a1.492 1.492 0 0 0 1.704.29l4.942-2.377A1.5 1.5 0 0 0 24 20.06V3.939a1.5 1.5 0 0 0-.85-1.352zm-5.146 14.861L10.826 12l7.178-5.448v10.896z" />
660
660
  </svg>
661
661
  <span>
662
- Install Nx Console
663
- <span>Plugin for VSCode</span>
662
+ Install Nx Console for VSCode
663
+ <span>The official VSCode plugin for Nx.</span>
664
+ </span>
665
+ </a>
666
+ <a
667
+ className="button-pill nx-console rounded shadow"
668
+ href="https://plugins.jetbrains.com/plugin/21060-nx-console"
669
+ target="_blank"
670
+ rel="noreferrer"
671
+ >
672
+ <svg
673
+ fill="currentColor"
674
+ role="img"
675
+ viewBox="0 0 24 24"
676
+ xmlns="http://www.w3.org/2000/svg"
677
+ >
678
+ <title>IntelliJ</title>
679
+ <path d="M0 0v24h24V0zm3.723 3.111h5v1.834h-1.39v6.277h1.39v1.834h-5v-1.834h1.444V4.945H3.723zm11.055 0H17v6.5c0 .612-.055 1.111-.222 1.556-.167.444-.39.777-.723 1.11-.277.279-.666.557-1.11.668a3.933 3.933 0 0 1-1.445.278c-.778 0-1.444-.167-1.944-.445a4.81 4.81 0 0 1-1.279-1.056l1.39-1.555c.277.334.555.555.833.722.277.167.611.278.945.278.389 0 .721-.111 1-.389.221-.278.333-.667.333-1.278zM2.222 19.5h9V21h-9z"></path>
680
+ </svg>
681
+ <span>
682
+ Install Nx Console for JetBrains
683
+ <span>
684
+ Available for WebStorm, Intellij IDEA Ultimate and more!
685
+ </span>
664
686
  </span>
665
687
  </a>
666
688
  <div id="nx-cloud" className="rounded shadow">
@@ -93,7 +93,8 @@
93
93
  "description": "Configure your workspace using Storybook version 7.",
94
94
  "type": "boolean",
95
95
  "default": false,
96
- "hidden": true
96
+ "hidden": true,
97
+ "aliases": ["storybook7betaConfiguration"]
97
98
  }
98
99
  },
99
100
  "required": ["name"],
@@ -18,6 +18,10 @@ function getModuleFederationConfig(mfConfig, determineRemoteUrl, options = { isS
18
18
  throw Error(`Cannot find project "${mfConfig.name}". Check that the name is correct in module-federation.config.js`);
19
19
  }
20
20
  const dependencies = (0, devkit_1.getDependentPackagesForProject)(projectGraph, mfConfig.name);
21
+ if (mfConfig.shared) {
22
+ dependencies.workspaceLibraries = dependencies.workspaceLibraries.filter((lib) => mfConfig.shared(lib.name, {}));
23
+ dependencies.npmPackages = dependencies.npmPackages.filter((pkg) => mfConfig.shared(pkg, {}));
24
+ }
21
25
  const sharedLibraries = (0, devkit_1.shareWorkspaceLibraries)(dependencies.workspaceLibraries);
22
26
  const npmPackages = (0, devkit_1.sharePackages)(dependencies.npmPackages);
23
27
  const sharedDependencies = Object.assign(Object.assign({}, sharedLibraries.getLibraries()), npmPackages);
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../packages/react/src/module-federation/utils.ts"],"names":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