@teambit/preview 1.0.227 → 1.0.229

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 +1 -1
  2. package/artifacts/preview/teambit_preview_preview-preview.js +1 -1
  3. package/artifacts/schema.json +891 -207
  4. package/dist/artifact-file-middleware.d.ts +12 -0
  5. package/dist/bundler/chunks.d.ts +17 -0
  6. package/dist/bundler/create-peer-link.spec.d.ts +1 -0
  7. package/dist/bundler/create-peers-link.d.ts +2 -0
  8. package/dist/bundler/html-plugin.d.ts +5 -0
  9. package/dist/bundler/html-template.d.ts +2 -0
  10. package/dist/bundling-strategy.d.ts +23 -0
  11. package/dist/component-preview.d.ts +2 -0
  12. package/dist/component-preview.route.d.ts +20 -0
  13. package/dist/env-preview-template.task.d.ts +45 -0
  14. package/dist/env-template.route.d.ts +25 -0
  15. package/dist/events/click-inside-an-iframe.d.ts +12 -0
  16. package/dist/events/index.d.ts +1 -0
  17. package/dist/exceptions/bundling-strategy-not-found.d.ts +4 -0
  18. package/dist/exceptions/index.d.ts +4 -0
  19. package/dist/exceptions/preview-artifact-not-found.d.ts +5 -0
  20. package/dist/exceptions/preview-not-found.d.ts +3 -0
  21. package/dist/exceptions/preview-output-file-not-found.d.ts +5 -0
  22. package/dist/execution-ref.d.ts +11 -0
  23. package/dist/generate-link.d.ts +9 -0
  24. package/dist/gql/fetch-component-aspects.d.ts +1 -0
  25. package/dist/html-utils.d.ts +6 -0
  26. package/dist/index.d.ts +9 -0
  27. package/dist/mk-temp-dir.d.ts +1 -0
  28. package/dist/pre-bundle-utils.d.ts +12 -0
  29. package/dist/pre-bundle.d.ts +8 -0
  30. package/dist/pre-bundle.task.d.ts +15 -0
  31. package/dist/{preview-1712719054377.js → preview-1712822929999.js} +2 -2
  32. package/dist/preview-artifact.d.ts +8 -0
  33. package/dist/preview-assets.route.d.ts +19 -0
  34. package/dist/preview-context.d.ts +4 -0
  35. package/dist/preview-definition.d.ts +34 -0
  36. package/dist/preview-env.d.ts +39 -0
  37. package/dist/preview-modules.d.ts +1 -0
  38. package/dist/preview-type.d.ts +25 -0
  39. package/dist/preview.aspect.d.ts +4 -0
  40. package/dist/preview.composition.d.ts +1 -0
  41. package/dist/preview.d.ts +11 -0
  42. package/dist/preview.graphql.d.ts +32 -0
  43. package/dist/preview.main.runtime.d.ts +343 -0
  44. package/dist/preview.preview.runtime.d.ts +77 -0
  45. package/dist/preview.route.d.ts +20 -0
  46. package/dist/preview.service.d.ts +29 -0
  47. package/dist/preview.start-plugin.d.ts +35 -0
  48. package/dist/preview.task.d.ts +39 -0
  49. package/dist/rendering-context.d.ts +18 -0
  50. package/dist/size-event.d.ts +9 -0
  51. package/dist/strategies/component-strategy.d.ts +54 -0
  52. package/dist/strategies/env-strategy.d.ts +41 -0
  53. package/dist/strategies/generate-component-link.d.ts +6 -0
  54. package/dist/strategies/index.d.ts +3 -0
  55. package/dist/strategies/strategies-names.d.ts +2 -0
  56. package/dist/types/preview-module.d.ts +1 -0
  57. package/dist/webpack/webpack.config.d.ts +2 -0
  58. package/package.json +23 -23
  59. package/tsconfig.json +1 -61
@@ -0,0 +1,3 @@
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';
@@ -0,0 +1,2 @@
1
+ export declare const ENV_PREVIEW_STRATEGY_NAME = "env";
2
+ export declare const COMPONENT_PREVIEW_STRATEGY_NAME = "component";
@@ -0,0 +1 @@
1
+ export type { PreviewModule, ModuleFile } from '@teambit/preview.modules.preview-modules';
@@ -0,0 +1,2 @@
1
+ import { Configuration } from 'webpack';
2
+ export declare function createWebpackConfig(outputDir: string, entryFile: string): Configuration;
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/preview",
3
- "version": "1.0.227",
3
+ "version": "1.0.229",
4
4
  "homepage": "https://bit.cloud/teambit/preview/preview",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.preview",
8
8
  "name": "preview",
9
- "version": "1.0.227"
9
+ "version": "1.0.229"
10
10
  },
11
11
  "dependencies": {
12
12
  "mime": "2.5.2",
@@ -28,30 +28,30 @@
28
28
  "@teambit/component-id": "1.2.0",
29
29
  "@teambit/bit-error": "0.0.404",
30
30
  "@teambit/react.webpack.react-webpack": "1.0.25",
31
- "@teambit/express": "0.0.959",
32
- "@teambit/logger": "0.0.953",
33
- "@teambit/builder": "1.0.227",
34
- "@teambit/bundler": "1.0.227",
35
- "@teambit/component": "1.0.227",
31
+ "@teambit/express": "0.0.961",
32
+ "@teambit/logger": "0.0.955",
33
+ "@teambit/builder": "1.0.229",
34
+ "@teambit/bundler": "1.0.229",
35
+ "@teambit/component": "1.0.229",
36
36
  "@teambit/preview.ui.component-preview": "1.0.5",
37
- "@teambit/aspect-loader": "1.0.227",
38
- "@teambit/cli": "0.0.860",
39
- "@teambit/dependency-resolver": "1.0.227",
40
- "@teambit/envs": "1.0.227",
37
+ "@teambit/aspect-loader": "1.0.229",
38
+ "@teambit/cli": "0.0.862",
39
+ "@teambit/dependency-resolver": "1.0.229",
40
+ "@teambit/envs": "1.0.229",
41
41
  "@teambit/toolbox.path.to-windows-compatible-path": "0.0.496",
42
- "@teambit/ui": "1.0.227",
43
- "@teambit/isolator": "1.0.227",
42
+ "@teambit/ui": "1.0.229",
43
+ "@teambit/isolator": "1.0.229",
44
44
  "@teambit/harmony.modules.harmony-root-generator": "0.0.4",
45
- "@teambit/cache": "0.0.953",
46
- "@teambit/graphql": "1.0.227",
47
- "@teambit/pkg": "1.0.227",
48
- "@teambit/pubsub": "1.0.227",
49
- "@teambit/scope": "1.0.227",
50
- "@teambit/watcher": "1.0.227",
51
- "@teambit/workspace": "1.0.227",
52
- "@teambit/compiler": "1.0.227",
45
+ "@teambit/cache": "0.0.955",
46
+ "@teambit/graphql": "1.0.229",
47
+ "@teambit/pkg": "1.0.229",
48
+ "@teambit/pubsub": "1.0.229",
49
+ "@teambit/scope": "1.0.229",
50
+ "@teambit/watcher": "1.0.229",
51
+ "@teambit/workspace": "1.0.229",
52
+ "@teambit/compiler": "1.0.229",
53
53
  "@teambit/preview.cli.webpack-events-listener": "0.0.175",
54
- "@teambit/webpack": "1.0.227"
54
+ "@teambit/webpack": "1.0.229"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@types/mime": "2.0.3",
@@ -66,7 +66,7 @@
66
66
  "chai": "4.3.0",
67
67
  "@types/lodash.compact": "3.0.6",
68
68
  "@types/mocha": "9.1.0",
69
- "@teambit/harmony.envs.core-aspect-env": "0.0.30",
69
+ "@teambit/harmony.envs.core-aspect-env": "0.0.33",
70
70
  "@teambit/preview.aspect-docs.preview": "0.0.167"
71
71
  },
72
72
  "peerDependencies": {
package/tsconfig.json CHANGED
@@ -20,8 +20,7 @@
20
20
  "emitDeclarationOnly": true,
21
21
  "strict": true,
22
22
  "strictPropertyInitialization": false,
23
- "noImplicitAny": false,
24
- "composite": true
23
+ "noImplicitAny": false
25
24
  },
26
25
  "exclude": [
27
26
  "artifacts",
@@ -36,64 +35,5 @@
36
35
  "include": [
37
36
  "**/*",
38
37
  "**/*.json"
39
- ],
40
- "references": [
41
- {
42
- "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_express@0.0.959"
43
- },
44
- {
45
- "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_logger@0.0.953"
46
- },
47
- {
48
- "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.pipelines_builder@1.0.227"
49
- },
50
- {
51
- "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compilation_bundler@1.0.227"
52
- },
53
- {
54
- "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@1.0.227"
55
- },
56
- {
57
- "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_aspect-loader@1.0.227"
58
- },
59
- {
60
- "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_cli@0.0.860"
61
- },
62
- {
63
- "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.envs_envs@1.0.227"
64
- },
65
- {
66
- "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.ui-foundation_ui@1.0.227"
67
- },
68
- {
69
- "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_isolator@1.0.227"
70
- },
71
- {
72
- "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_cache@0.0.953"
73
- },
74
- {
75
- "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_graphql@1.0.227"
76
- },
77
- {
78
- "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.pkg_pkg@1.0.227"
79
- },
80
- {
81
- "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_pubsub@1.0.227"
82
- },
83
- {
84
- "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.scope_scope@1.0.227"
85
- },
86
- {
87
- "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_watcher@1.0.227"
88
- },
89
- {
90
- "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_workspace@1.0.227"
91
- },
92
- {
93
- "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compilation_compiler@1.0.227"
94
- },
95
- {
96
- "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.webpack_webpack@1.0.227"
97
- }
98
38
  ]
99
39
  }