@teambit/react 1.0.667 → 1.0.669

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 (71) hide show
  1. package/apps/web/compute-results.ts +2 -2
  2. package/apps/web/deploy-context.ts +2 -2
  3. package/apps/web/react-app-options.ts +3 -3
  4. package/apps/web/react-build-result.ts +1 -1
  5. package/apps/web/react.app-type.ts +3 -3
  6. package/apps/web/react.application.ts +7 -6
  7. package/apps/web/ssr/ssr-express.ts +2 -2
  8. package/apps/web/webpack/mutators.ts +1 -1
  9. package/artifacts/env-template/public/{252.5a48d08a4efe6ac7073d.js → 252.2828fd5e6907402cf578.js} +2 -2
  10. package/artifacts/env-template/public/{977.2dc9f009f95933831eec.js → 883.ecce899a53efa1970783.js} +1 -1
  11. package/artifacts/env-template/public/assets-manifest.json +14 -14
  12. package/artifacts/env-template/public/{compositions.28d5bbd4971932cd3263.js → compositions.a3f62162801625721f14.js} +1 -1
  13. package/artifacts/env-template/public/compositions.html +1 -1
  14. package/artifacts/env-template/public/{overview.68b2658603ed9cc99c3c.js → overview.56e0d8412b7559d93669.js} +1 -1
  15. package/artifacts/env-template/public/overview.html +1 -1
  16. package/artifacts/env-template/public/peers.a6488e3376e63ff83ae4.js +1 -0
  17. package/artifacts/env-template/public/{preview-root.05f90bb5fbdee8df22bf.js → preview-root.253a56e967670ccca698.js} +1 -1
  18. package/artifacts/env-template/public/static/css/{252.cb193a47.css → 252.608595b5.css} +1 -1
  19. package/dist/apps/web/compute-results.d.ts +2 -2
  20. package/dist/apps/web/compute-results.js.map +1 -1
  21. package/dist/apps/web/deploy-context.d.ts +2 -2
  22. package/dist/apps/web/deploy-context.js.map +1 -1
  23. package/dist/apps/web/react-app-options.d.ts +3 -3
  24. package/dist/apps/web/react-app-options.js.map +1 -1
  25. package/dist/apps/web/react-build-result.d.ts +1 -1
  26. package/dist/apps/web/react-build-result.js.map +1 -1
  27. package/dist/apps/web/react.app-type.d.ts +3 -3
  28. package/dist/apps/web/react.app-type.js.map +1 -1
  29. package/dist/apps/web/react.application.d.ts +6 -6
  30. package/dist/apps/web/react.application.js.map +1 -1
  31. package/dist/apps/web/ssr/ssr-express.d.ts +2 -2
  32. package/dist/apps/web/ssr/ssr-express.js.map +1 -1
  33. package/dist/apps/web/webpack/mutators.d.ts +1 -1
  34. package/dist/apps/web/webpack/mutators.js.map +1 -1
  35. package/dist/{preview-1753809186996.js → preview-1753848836384.js} +2 -2
  36. package/dist/react.api.transformer.d.ts +3 -2
  37. package/dist/react.api.transformer.js.map +1 -1
  38. package/dist/react.env.d.ts +20 -19
  39. package/dist/react.env.js.map +1 -1
  40. package/dist/react.graphql.d.ts +2 -2
  41. package/dist/react.graphql.js.map +1 -1
  42. package/dist/react.main.runtime.d.ts +15 -16
  43. package/dist/react.main.runtime.js.map +1 -1
  44. package/dist/react.preview.runtime.d.ts +3 -3
  45. package/dist/react.preview.runtime.js.map +1 -1
  46. package/dist/react.schema.d.ts +2 -1
  47. package/dist/react.schema.js.map +1 -1
  48. package/dist/react.templates.d.ts +2 -2
  49. package/dist/react.templates.js.map +1 -1
  50. package/dist/react.ui.runtime.d.ts +3 -3
  51. package/dist/react.ui.runtime.js.map +1 -1
  52. package/dist/webpack/webpack.config.base.d.ts +1 -1
  53. package/dist/webpack/webpack.config.base.js.map +1 -1
  54. package/dist/webpack/webpack.config.base.prod.d.ts +1 -1
  55. package/dist/webpack/webpack.config.base.prod.js.map +1 -1
  56. package/dist/webpack/webpack.config.component.dev.d.ts +1 -1
  57. package/dist/webpack/webpack.config.component.dev.js.map +1 -1
  58. package/dist/webpack/webpack.config.component.prod.d.ts +1 -1
  59. package/dist/webpack/webpack.config.component.prod.js.map +1 -1
  60. package/dist/webpack/webpack.config.env.template.d.ts +1 -1
  61. package/dist/webpack/webpack.config.env.template.js.map +1 -1
  62. package/package.json +37 -37
  63. package/react.ui.runtime.tsx +6 -3
  64. package/webpack/webpack.config.base.prod.ts +1 -1
  65. package/webpack/webpack.config.base.ts +2 -1
  66. package/webpack/webpack.config.component.dev.ts +1 -1
  67. package/webpack/webpack.config.component.prod.ts +1 -1
  68. package/webpack/webpack.config.env.template.ts +1 -1
  69. package/artifacts/env-template/public/peers.b0ca54a195877a7bb2cd.js +0 -1
  70. /package/{compositions-1753809186996.js → compositions-1753848836384.js} +0 -0
  71. /package/{overview-1753809186996.js → overview-1753848836384.js} +0 -0
@@ -1,5 +1,5 @@
1
- import { BundlerResult } from '@teambit/bundler';
2
- import { ReactAppBuildResult } from './react-build-result';
1
+ import type { BundlerResult } from '@teambit/bundler';
2
+ import type { ReactAppBuildResult } from './react-build-result';
3
3
 
4
4
  type ResultsOptions = {
5
5
  publicDir: string;
@@ -1,4 +1,4 @@
1
- import { AppDeployContext } from '@teambit/application';
2
- import { ReactAppBuildResult } from './react-build-result';
1
+ import type { AppDeployContext } from '@teambit/application';
2
+ import type { ReactAppBuildResult } from './react-build-result';
3
3
 
4
4
  export type ReactDeployContext = ReactAppBuildResult & AppDeployContext;
@@ -1,7 +1,7 @@
1
- import { Bundler, DevServer } from '@teambit/bundler';
2
- import { WebpackConfigTransformer } from '@teambit/webpack';
1
+ import type { Bundler, DevServer } from '@teambit/bundler';
2
+ import type { WebpackConfigTransformer } from '@teambit/webpack';
3
3
 
4
- import { ReactDeployContext } from './deploy-context';
4
+ import type { ReactDeployContext } from './deploy-context';
5
5
 
6
6
  export type ReactAppOptions = {
7
7
  /**
@@ -1,4 +1,4 @@
1
- import { AppBuildResult } from '@teambit/application';
1
+ import type { AppBuildResult } from '@teambit/application';
2
2
 
3
3
  export type ReactAppBuildResult = {
4
4
  /**
@@ -1,9 +1,9 @@
1
1
  import type { Logger } from '@teambit/logger';
2
2
  import type { DependencyResolverMain } from '@teambit/dependency-resolver';
3
- import { ApplicationType } from '@teambit/application';
4
- import { ReactAppOptions } from './react-app-options';
3
+ import type { ApplicationType } from '@teambit/application';
4
+ import type { ReactAppOptions } from './react-app-options';
5
5
  import { ReactApp } from './react.application';
6
- import { ReactEnv } from '../../react.env';
6
+ import type { ReactEnv } from '../../react.env';
7
7
 
8
8
  export class ReactAppType implements ApplicationType<ReactAppOptions> {
9
9
  constructor(
@@ -1,18 +1,19 @@
1
1
  import { readFileSync } from 'fs';
2
2
  import { join, resolve, basename } from 'path';
3
- import { Application, AppContext, AppBuildContext, AppResult, ApplicationInstance } from '@teambit/application';
3
+ import type { Application, AppContext, AppBuildContext, AppResult, ApplicationInstance } from '@teambit/application';
4
4
  import type { Bundler, DevServer, BundlerContext, DevServerContext, BundlerHtmlConfig } from '@teambit/bundler';
5
5
  import { Port } from '@teambit/toolbox.network.get-port';
6
6
  import { ComponentMap } from '@teambit/component';
7
7
  import type { Logger } from '@teambit/logger';
8
- import { DependencyResolverMain, WorkspacePolicy } from '@teambit/dependency-resolver';
8
+ import type { DependencyResolverMain } from '@teambit/dependency-resolver';
9
+ import { WorkspacePolicy } from '@teambit/dependency-resolver';
9
10
  import compact from 'lodash.compact';
10
- import { WebpackConfigTransformer } from '@teambit/webpack';
11
+ import type { WebpackConfigTransformer } from '@teambit/webpack';
11
12
  import { BitError } from '@teambit/bit-error';
12
- import { ReactEnv } from '../../react.env';
13
- import { ReactAppBuildResult } from './react-build-result';
13
+ import type { ReactEnv } from '../../react.env';
14
+ import type { ReactAppBuildResult } from './react-build-result';
14
15
  import { html } from '../../webpack';
15
- import { ReactDeployContext } from './deploy-context';
16
+ import type { ReactDeployContext } from './deploy-context';
16
17
  import { computeResults } from './compute-results';
17
18
  import { clientConfig, ssrConfig, calcOutputPath, ssrBuildConfig, buildConfig } from './webpack/webpack.app.ssr.config';
18
19
  import { addDevServer, setOutput, replaceTerserPlugin, setDevServerClient } from './webpack/mutators';
@@ -1,5 +1,5 @@
1
- import { Asset } from '@teambit/bundler';
2
- import { Logger } from '@teambit/logger';
1
+ import type { Asset } from '@teambit/bundler';
2
+ import type { Logger } from '@teambit/logger';
3
3
  import { serverError } from '@teambit/ui-foundation.ui.pages.static-error';
4
4
  import { browserFromExpress } from '@teambit/react.rendering.ssr';
5
5
  import type { HtmlAssets, SsrSession } from '@teambit/react.rendering.ssr';
@@ -1,4 +1,4 @@
1
- import { WebpackConfigMutator } from '@teambit/webpack';
1
+ import type { WebpackConfigMutator } from '@teambit/webpack';
2
2
  import { remove } from 'lodash';
3
3
  import TerserPlugin from 'terser-webpack-plugin';
4
4