@teambit/preview 1.0.225 → 1.0.227

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 (59) hide show
  1. package/artifacts/__bit_junit.xml +2 -2
  2. package/artifacts/preview/teambit_preview_preview-preview.js +1 -1
  3. package/artifacts/schema.json +207 -891
  4. package/dist/{preview-1712546198033.js → preview-1712719054377.js} +2 -2
  5. package/package.json +23 -23
  6. package/tsconfig.json +61 -1
  7. package/dist/artifact-file-middleware.d.ts +0 -12
  8. package/dist/bundler/chunks.d.ts +0 -17
  9. package/dist/bundler/create-peer-link.spec.d.ts +0 -1
  10. package/dist/bundler/create-peers-link.d.ts +0 -2
  11. package/dist/bundler/html-plugin.d.ts +0 -5
  12. package/dist/bundler/html-template.d.ts +0 -2
  13. package/dist/bundling-strategy.d.ts +0 -23
  14. package/dist/component-preview.d.ts +0 -2
  15. package/dist/component-preview.route.d.ts +0 -20
  16. package/dist/env-preview-template.task.d.ts +0 -45
  17. package/dist/env-template.route.d.ts +0 -25
  18. package/dist/events/click-inside-an-iframe.d.ts +0 -12
  19. package/dist/events/index.d.ts +0 -1
  20. package/dist/exceptions/bundling-strategy-not-found.d.ts +0 -4
  21. package/dist/exceptions/index.d.ts +0 -4
  22. package/dist/exceptions/preview-artifact-not-found.d.ts +0 -5
  23. package/dist/exceptions/preview-not-found.d.ts +0 -3
  24. package/dist/exceptions/preview-output-file-not-found.d.ts +0 -5
  25. package/dist/execution-ref.d.ts +0 -11
  26. package/dist/generate-link.d.ts +0 -9
  27. package/dist/gql/fetch-component-aspects.d.ts +0 -1
  28. package/dist/html-utils.d.ts +0 -6
  29. package/dist/index.d.ts +0 -9
  30. package/dist/mk-temp-dir.d.ts +0 -1
  31. package/dist/pre-bundle-utils.d.ts +0 -12
  32. package/dist/pre-bundle.d.ts +0 -8
  33. package/dist/pre-bundle.task.d.ts +0 -15
  34. package/dist/preview-artifact.d.ts +0 -8
  35. package/dist/preview-assets.route.d.ts +0 -19
  36. package/dist/preview-context.d.ts +0 -4
  37. package/dist/preview-definition.d.ts +0 -34
  38. package/dist/preview-env.d.ts +0 -39
  39. package/dist/preview-modules.d.ts +0 -1
  40. package/dist/preview-type.d.ts +0 -25
  41. package/dist/preview.aspect.d.ts +0 -4
  42. package/dist/preview.composition.d.ts +0 -1
  43. package/dist/preview.d.ts +0 -11
  44. package/dist/preview.graphql.d.ts +0 -32
  45. package/dist/preview.main.runtime.d.ts +0 -343
  46. package/dist/preview.preview.runtime.d.ts +0 -77
  47. package/dist/preview.route.d.ts +0 -20
  48. package/dist/preview.service.d.ts +0 -29
  49. package/dist/preview.start-plugin.d.ts +0 -35
  50. package/dist/preview.task.d.ts +0 -39
  51. package/dist/rendering-context.d.ts +0 -18
  52. package/dist/size-event.d.ts +0 -9
  53. package/dist/strategies/component-strategy.d.ts +0 -54
  54. package/dist/strategies/env-strategy.d.ts +0 -41
  55. package/dist/strategies/generate-component-link.d.ts +0 -6
  56. package/dist/strategies/index.d.ts +0 -3
  57. package/dist/strategies/strategies-names.d.ts +0 -2
  58. package/dist/types/preview-module.d.ts +0 -1
  59. 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,6 +0,0 @@
1
- export type ModuleVar = {
2
- prefix: string;
3
- paths: string[];
4
- metadata?: unknown;
5
- };
6
- export declare function generateComponentLink(modules: ModuleVar[]): string;
@@ -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,2 +0,0 @@
1
- export declare const ENV_PREVIEW_STRATEGY_NAME = "env";
2
- export declare const COMPONENT_PREVIEW_STRATEGY_NAME = "component";
@@ -1 +0,0 @@
1
- export type { PreviewModule, ModuleFile } from '@teambit/preview.modules.preview-modules';
@@ -1,2 +0,0 @@
1
- import { Configuration } from 'webpack';
2
- export declare function createWebpackConfig(outputDir: string, entryFile: string): Configuration;