@teambit/preview 1.0.226 → 1.0.228
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/artifacts/__bit_junit.xml +1 -1
- package/artifacts/preview/teambit_preview_preview-preview.js +1 -1
- package/artifacts/schema.json +205 -889
- package/dist/{preview-1712632644937.js → preview-1712805335812.js} +2 -2
- package/package.json +23 -23
- package/tsconfig.json +61 -1
- package/dist/artifact-file-middleware.d.ts +0 -12
- package/dist/bundler/chunks.d.ts +0 -17
- package/dist/bundler/create-peer-link.spec.d.ts +0 -1
- package/dist/bundler/create-peers-link.d.ts +0 -2
- package/dist/bundler/html-plugin.d.ts +0 -5
- package/dist/bundler/html-template.d.ts +0 -2
- package/dist/bundling-strategy.d.ts +0 -23
- package/dist/component-preview.d.ts +0 -2
- package/dist/component-preview.route.d.ts +0 -20
- package/dist/env-preview-template.task.d.ts +0 -45
- package/dist/env-template.route.d.ts +0 -25
- package/dist/events/click-inside-an-iframe.d.ts +0 -12
- package/dist/events/index.d.ts +0 -1
- package/dist/exceptions/bundling-strategy-not-found.d.ts +0 -4
- package/dist/exceptions/index.d.ts +0 -4
- package/dist/exceptions/preview-artifact-not-found.d.ts +0 -5
- package/dist/exceptions/preview-not-found.d.ts +0 -3
- package/dist/exceptions/preview-output-file-not-found.d.ts +0 -5
- package/dist/execution-ref.d.ts +0 -11
- package/dist/generate-link.d.ts +0 -9
- package/dist/gql/fetch-component-aspects.d.ts +0 -1
- package/dist/html-utils.d.ts +0 -6
- package/dist/index.d.ts +0 -9
- package/dist/mk-temp-dir.d.ts +0 -1
- package/dist/pre-bundle-utils.d.ts +0 -12
- package/dist/pre-bundle.d.ts +0 -8
- package/dist/pre-bundle.task.d.ts +0 -15
- package/dist/preview-artifact.d.ts +0 -8
- package/dist/preview-assets.route.d.ts +0 -19
- package/dist/preview-context.d.ts +0 -4
- package/dist/preview-definition.d.ts +0 -34
- package/dist/preview-env.d.ts +0 -39
- package/dist/preview-modules.d.ts +0 -1
- package/dist/preview-type.d.ts +0 -25
- package/dist/preview.aspect.d.ts +0 -4
- package/dist/preview.composition.d.ts +0 -1
- package/dist/preview.d.ts +0 -11
- package/dist/preview.graphql.d.ts +0 -32
- package/dist/preview.main.runtime.d.ts +0 -343
- package/dist/preview.preview.runtime.d.ts +0 -77
- package/dist/preview.route.d.ts +0 -20
- package/dist/preview.service.d.ts +0 -29
- package/dist/preview.start-plugin.d.ts +0 -35
- package/dist/preview.task.d.ts +0 -39
- package/dist/rendering-context.d.ts +0 -18
- package/dist/size-event.d.ts +0 -9
- package/dist/strategies/component-strategy.d.ts +0 -54
- package/dist/strategies/env-strategy.d.ts +0 -41
- package/dist/strategies/generate-component-link.d.ts +0 -6
- package/dist/strategies/index.d.ts +0 -3
- package/dist/strategies/strategies-names.d.ts +0 -2
- package/dist/types/preview-module.d.ts +0 -1
- package/dist/webpack/webpack.config.d.ts +0 -2
@@ -1,41 +0,0 @@
|
|
1
|
-
import { ComponentResult } from '@teambit/builder';
|
2
|
-
import { BundlerContext, BundlerHtmlConfig, BundlerResult } from '@teambit/bundler';
|
3
|
-
import { DependencyResolverMain } from '@teambit/dependency-resolver';
|
4
|
-
import { PkgMain } from '@teambit/pkg';
|
5
|
-
import type { BundlingStrategy, ComputeTargetsContext } from '../bundling-strategy';
|
6
|
-
import { PreviewDefinition } from '../preview-definition';
|
7
|
-
import { PreviewMain } from '../preview.main.runtime';
|
8
|
-
export declare const ENV_STRATEGY_ARTIFACT_NAME = "preview";
|
9
|
-
/**
|
10
|
-
* bundles all components in a given env into the same bundle.
|
11
|
-
*/
|
12
|
-
export declare class EnvBundlingStrategy implements BundlingStrategy {
|
13
|
-
private preview;
|
14
|
-
private pkg;
|
15
|
-
private dependencyResolver;
|
16
|
-
name: string;
|
17
|
-
constructor(preview: PreviewMain, pkg: PkgMain, dependencyResolver: DependencyResolverMain);
|
18
|
-
computeTargets(context: ComputeTargetsContext, previewDefs: PreviewDefinition[]): Promise<{
|
19
|
-
entries: string[];
|
20
|
-
html: BundlerHtmlConfig[];
|
21
|
-
components: import("@teambit/component").Component[];
|
22
|
-
outputPath: string;
|
23
|
-
hostDependencies: string[];
|
24
|
-
aliasHostDependencies: boolean;
|
25
|
-
}[]>;
|
26
|
-
private generateHtmlConfig;
|
27
|
-
computeResults(context: BundlerContext, results: BundlerResult[]): Promise<{
|
28
|
-
componentsResults: ComponentResult[];
|
29
|
-
artifacts: {
|
30
|
-
name: string;
|
31
|
-
globPatterns: string[];
|
32
|
-
rootDir: string;
|
33
|
-
context: "env";
|
34
|
-
}[];
|
35
|
-
}>;
|
36
|
-
private getArtifactDef;
|
37
|
-
getDirName(context: ComputeTargetsContext): string;
|
38
|
-
private getOutputPath;
|
39
|
-
private getPaths;
|
40
|
-
private computePaths;
|
41
|
-
}
|
@@ -1,3 +0,0 @@
|
|
1
|
-
export { EnvBundlingStrategy, ENV_STRATEGY_ARTIFACT_NAME } from './env-strategy';
|
2
|
-
export { ComponentBundlingStrategy, COMPONENT_STRATEGY_ARTIFACT_NAME, COMPONENT_STRATEGY_SIZE_KEY_NAME, } from './component-strategy';
|
3
|
-
export { ENV_PREVIEW_STRATEGY_NAME, COMPONENT_PREVIEW_STRATEGY_NAME } from './strategies-names';
|
@@ -1 +0,0 @@
|
|
1
|
-
export type { PreviewModule, ModuleFile } from '@teambit/preview.modules.preview-modules';
|