@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.
- package/apps/web/compute-results.ts +2 -2
- package/apps/web/deploy-context.ts +2 -2
- package/apps/web/react-app-options.ts +3 -3
- package/apps/web/react-build-result.ts +1 -1
- package/apps/web/react.app-type.ts +3 -3
- package/apps/web/react.application.ts +7 -6
- package/apps/web/ssr/ssr-express.ts +2 -2
- package/apps/web/webpack/mutators.ts +1 -1
- package/artifacts/env-template/public/{252.5a48d08a4efe6ac7073d.js → 252.2828fd5e6907402cf578.js} +2 -2
- package/artifacts/env-template/public/{977.2dc9f009f95933831eec.js → 883.ecce899a53efa1970783.js} +1 -1
- package/artifacts/env-template/public/assets-manifest.json +14 -14
- package/artifacts/env-template/public/{compositions.28d5bbd4971932cd3263.js → compositions.a3f62162801625721f14.js} +1 -1
- package/artifacts/env-template/public/compositions.html +1 -1
- package/artifacts/env-template/public/{overview.68b2658603ed9cc99c3c.js → overview.56e0d8412b7559d93669.js} +1 -1
- package/artifacts/env-template/public/overview.html +1 -1
- package/artifacts/env-template/public/peers.a6488e3376e63ff83ae4.js +1 -0
- package/artifacts/env-template/public/{preview-root.05f90bb5fbdee8df22bf.js → preview-root.253a56e967670ccca698.js} +1 -1
- package/artifacts/env-template/public/static/css/{252.cb193a47.css → 252.608595b5.css} +1 -1
- package/dist/apps/web/compute-results.d.ts +2 -2
- package/dist/apps/web/compute-results.js.map +1 -1
- package/dist/apps/web/deploy-context.d.ts +2 -2
- package/dist/apps/web/deploy-context.js.map +1 -1
- package/dist/apps/web/react-app-options.d.ts +3 -3
- package/dist/apps/web/react-app-options.js.map +1 -1
- package/dist/apps/web/react-build-result.d.ts +1 -1
- package/dist/apps/web/react-build-result.js.map +1 -1
- package/dist/apps/web/react.app-type.d.ts +3 -3
- package/dist/apps/web/react.app-type.js.map +1 -1
- package/dist/apps/web/react.application.d.ts +6 -6
- package/dist/apps/web/react.application.js.map +1 -1
- package/dist/apps/web/ssr/ssr-express.d.ts +2 -2
- package/dist/apps/web/ssr/ssr-express.js.map +1 -1
- package/dist/apps/web/webpack/mutators.d.ts +1 -1
- package/dist/apps/web/webpack/mutators.js.map +1 -1
- package/dist/{preview-1753809186996.js → preview-1753848836384.js} +2 -2
- package/dist/react.api.transformer.d.ts +3 -2
- package/dist/react.api.transformer.js.map +1 -1
- package/dist/react.env.d.ts +20 -19
- package/dist/react.env.js.map +1 -1
- package/dist/react.graphql.d.ts +2 -2
- package/dist/react.graphql.js.map +1 -1
- package/dist/react.main.runtime.d.ts +15 -16
- package/dist/react.main.runtime.js.map +1 -1
- package/dist/react.preview.runtime.d.ts +3 -3
- package/dist/react.preview.runtime.js.map +1 -1
- package/dist/react.schema.d.ts +2 -1
- package/dist/react.schema.js.map +1 -1
- package/dist/react.templates.d.ts +2 -2
- package/dist/react.templates.js.map +1 -1
- package/dist/react.ui.runtime.d.ts +3 -3
- package/dist/react.ui.runtime.js.map +1 -1
- package/dist/webpack/webpack.config.base.d.ts +1 -1
- package/dist/webpack/webpack.config.base.js.map +1 -1
- package/dist/webpack/webpack.config.base.prod.d.ts +1 -1
- package/dist/webpack/webpack.config.base.prod.js.map +1 -1
- package/dist/webpack/webpack.config.component.dev.d.ts +1 -1
- package/dist/webpack/webpack.config.component.dev.js.map +1 -1
- package/dist/webpack/webpack.config.component.prod.d.ts +1 -1
- package/dist/webpack/webpack.config.component.prod.js.map +1 -1
- package/dist/webpack/webpack.config.env.template.d.ts +1 -1
- package/dist/webpack/webpack.config.env.template.js.map +1 -1
- package/package.json +37 -37
- package/react.ui.runtime.tsx +6 -3
- package/webpack/webpack.config.base.prod.ts +1 -1
- package/webpack/webpack.config.base.ts +2 -1
- package/webpack/webpack.config.component.dev.ts +1 -1
- package/webpack/webpack.config.component.prod.ts +1 -1
- package/webpack/webpack.config.env.template.ts +1 -1
- package/artifacts/env-template/public/peers.b0ca54a195877a7bb2cd.js +0 -1
- /package/{compositions-1753809186996.js → compositions-1753848836384.js} +0 -0
- /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,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
|
|
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';
|