@teambit/preview 1.0.700 → 1.0.702
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/dist/env-template.route.js +0 -1
- package/dist/env-template.route.js.map +1 -1
- package/dist/{preview-1755031953960.js → preview-1755111245890.js} +2 -2
- package/dist/webpack/webpack.config.js +0 -4
- package/dist/webpack/webpack.config.js.map +1 -1
- package/package.json +24 -24
- package/webpack/webpack.config.ts +0 -2
@@ -46,7 +46,6 @@ class EnvTemplateRoute {
|
|
46
46
|
// @ts-ignore
|
47
47
|
_defineProperty(this, "middlewares", [async (req, res, next) => {
|
48
48
|
try {
|
49
|
-
// @ts-ignore TODO: @guy please fix.
|
50
49
|
// const component = req.component as Component | undefined;
|
51
50
|
// if (!component) return res.status(404).send(noPreview());
|
52
51
|
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_uiFoundationUiPages","data","require","_artifactFileMiddleware","_defineProperty","e","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","CACHE_MAX_AGE","getCacheControl","_filePath","_contents","mimeType","undefined","EnvTemplateRoute","constructor","preview","logger","req","res","next","artifact","componentId","envId","params","getEnvTemplateByEnvId","error","status","send","noPreview","isLegacyPath","serverError","getArtifactFileMiddleware","exports"],"sources":["env-template.route.ts"],"sourcesContent":["import type { NextFunction, Request, Response } from '@teambit/express';\nimport type { ComponentUrlParams, RegisteredComponentRoute } from '@teambit/component';\nimport { noPreview, serverError } from '@teambit/ui-foundation.ui.pages.static-error';\nimport type { Logger } from '@teambit/logger';\n\nimport type { PreviewMain } from './preview.main.runtime';\nimport type { PreviewArtifact } from './preview-artifact';\nimport type { GetCacheControlFunc } from './artifact-file-middleware';\nimport { getArtifactFileMiddleware } from './artifact-file-middleware';\n\ntype UrlParams = ComponentUrlParams & {\n filePath?: string;\n};\n\n// Week for now\nconst CACHE_MAX_AGE = 60 * 60 * 24 * 7;\n\nconst getCacheControl: GetCacheControlFunc = (_filePath: string, _contents: string, mimeType?: string | null) => {\n // Do not cache the html files\n if (mimeType && mimeType === 'text/html') {\n return undefined;\n }\n return `private, max-age=${CACHE_MAX_AGE}`;\n};\n\nexport class EnvTemplateRoute implements RegisteredComponentRoute {\n constructor(\n /**\n * preview extension.\n */\n private preview: PreviewMain,\n private logger: Logger\n ) {}\n\n route = `/env-template/:previewName/:filePath(*)`;\n method = 'get';\n\n // Since we might give it a core env id\n // Then in the component route when we do host.get(id) it will fail, as we don't have the core envs in the scope/workspace\n resolveComponent = false;\n\n // @ts-ignore\n middlewares = [\n async (req: Request<UrlParams>, res: Response, next: NextFunction) => {\n try {\n //
|
1
|
+
{"version":3,"names":["_uiFoundationUiPages","data","require","_artifactFileMiddleware","_defineProperty","e","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","CACHE_MAX_AGE","getCacheControl","_filePath","_contents","mimeType","undefined","EnvTemplateRoute","constructor","preview","logger","req","res","next","artifact","componentId","envId","params","getEnvTemplateByEnvId","error","status","send","noPreview","isLegacyPath","serverError","getArtifactFileMiddleware","exports"],"sources":["env-template.route.ts"],"sourcesContent":["import type { NextFunction, Request, Response } from '@teambit/express';\nimport type { ComponentUrlParams, RegisteredComponentRoute } from '@teambit/component';\nimport { noPreview, serverError } from '@teambit/ui-foundation.ui.pages.static-error';\nimport type { Logger } from '@teambit/logger';\n\nimport type { PreviewMain } from './preview.main.runtime';\nimport type { PreviewArtifact } from './preview-artifact';\nimport type { GetCacheControlFunc } from './artifact-file-middleware';\nimport { getArtifactFileMiddleware } from './artifact-file-middleware';\n\ntype UrlParams = ComponentUrlParams & {\n filePath?: string;\n};\n\n// Week for now\nconst CACHE_MAX_AGE = 60 * 60 * 24 * 7;\n\nconst getCacheControl: GetCacheControlFunc = (_filePath: string, _contents: string, mimeType?: string | null) => {\n // Do not cache the html files\n if (mimeType && mimeType === 'text/html') {\n return undefined;\n }\n return `private, max-age=${CACHE_MAX_AGE}`;\n};\n\nexport class EnvTemplateRoute implements RegisteredComponentRoute {\n constructor(\n /**\n * preview extension.\n */\n private preview: PreviewMain,\n private logger: Logger\n ) {}\n\n route = `/env-template/:previewName/:filePath(*)`;\n method = 'get';\n\n // Since we might give it a core env id\n // Then in the component route when we do host.get(id) it will fail, as we don't have the core envs in the scope/workspace\n resolveComponent = false;\n\n // @ts-ignore\n middlewares = [\n async (req: Request<UrlParams>, res: Response, next: NextFunction) => {\n try {\n // const component = req.component as Component | undefined;\n // if (!component) return res.status(404).send(noPreview());\n\n let artifact: PreviewArtifact | undefined;\n // TODO - prevent error `getVinylsAndImportIfMissing is not a function` #4680\n try {\n const { componentId: envId } = req.params;\n artifact = await this.preview.getEnvTemplateByEnvId(envId);\n } catch (e: any) {\n this.logger.error(`getEnvTemplateByEnvId has failed`, e);\n return res.status(404).send(noPreview());\n }\n\n // @ts-ignore\n req.artifact = artifact;\n // @ts-ignore\n req.isLegacyPath = false;\n\n return next();\n } catch (e: any) {\n this.logger.error('failed getting preview', e);\n return res.status(500).send(serverError());\n }\n },\n getArtifactFileMiddleware(this.logger, getCacheControl),\n ];\n}\n"],"mappings":";;;;;;AAEA,SAAAA,qBAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,oBAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAMA,SAAAE,wBAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,uBAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAuE,SAAAG,gBAAAC,CAAA,EAAAC,CAAA,EAAAC,CAAA,YAAAD,CAAA,GAAAE,cAAA,CAAAF,CAAA,MAAAD,CAAA,GAAAI,MAAA,CAAAC,cAAA,CAAAL,CAAA,EAAAC,CAAA,IAAAK,KAAA,EAAAJ,CAAA,EAAAK,U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AAG,CAACM,MAAM;UACzCH,QAAQ,GAAG,MAAM,IAAI,CAACL,OAAO,CAACS,qBAAqB,CAACF,KAAK,CAAC;QAC5D,CAAC,CAAC,OAAOjC,CAAM,EAAE;UACf,IAAI,CAAC2B,MAAM,CAACS,KAAK,CAAC,kCAAkC,EAAEpC,CAAC,CAAC;UACxD,OAAO6B,GAAG,CAACQ,MAAM,CAAC,GAAG,CAAC,CAACC,IAAI,CAAC,IAAAC,gCAAS,EAAC,CAAC,CAAC;QAC1C;;QAEA;QACAX,GAAG,CAACG,QAAQ,GAAGA,QAAQ;QACvB;QACAH,GAAG,CAACY,YAAY,GAAG,KAAK;QAExB,OAAOV,IAAI,CAAC,CAAC;MACf,CAAC,CAAC,OAAO9B,CAAM,EAAE;QACf,IAAI,CAAC2B,MAAM,CAACS,KAAK,CAAC,wBAAwB,EAAEpC,CAAC,CAAC;QAC9C,OAAO6B,GAAG,CAACQ,MAAM,CAAC,GAAG,CAAC,CAACC,IAAI,CAAC,IAAAG,kCAAW,EAAC,CAAC,CAAC;MAC5C;IACF,CAAC,EACD,IAAAC,mDAAyB,EAAC,IAAI,CAACf,MAAM,EAAER,eAAe,CAAC,CACxD;EAtCE;AAuCL;AAACwB,OAAA,CAAAnB,gBAAA,GAAAA,gBAAA","ignoreList":[]}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.preview_preview@1.0.
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.preview_preview@1.0.
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.preview_preview@1.0.702/dist/preview.composition.js';
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.preview_preview@1.0.702/dist/preview.docs.mdx';
|
3
3
|
|
4
4
|
export const compositions = [compositions_0];
|
5
5
|
export const overview = [overview_0];
|
@@ -42,11 +42,7 @@ function _webpackManifestPlugin() {
|
|
42
42
|
function createWebpackConfig(outputDir, entryFile) {
|
43
43
|
const baseConfig = (0, _reactWebpack().configBaseFactory)(true);
|
44
44
|
const preBundleConfig = createPreBundleConfig(outputDir, entryFile);
|
45
|
-
|
46
|
-
// @ts-ignore that's an issue because of different types/webpack version
|
47
45
|
const combined = (0, _webpackMerge().merge)(baseConfig, preBundleConfig);
|
48
|
-
|
49
|
-
// @ts-ignore that's an issue because of different types/webpack version
|
50
46
|
return combined;
|
51
47
|
}
|
52
48
|
function createPreBundleConfig(outputDir, entryFile) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_reactWebpack","data","require","_webpack","_webpackMerge","_webpack2","_webpackManifestPlugin","createWebpackConfig","outputDir","entryFile","baseConfig","configBaseFactory","preBundleConfig","createPreBundleConfig","combined","merge","mode","process","env","BIT_DEBUG_PREVIEW_BUNDLE","stats","children","errorDetails","entry","main","resolve","alias","react","fallback","module","path","fallbacks","dgram","dns","fs","stream","http2","net","tls","child_process","output","publicPath","chunkFilename","filename","library","type","externalsType","externals","plugins","WebpackManifestPlugin","fileName","generate","seed","files","entrypoints","manifestFiles","reduce","manifest","file","name","entrypointFiles","filter","endsWith","ProvidePlugin","fallbacksProvidePluginConfig"],"sources":["webpack.config.ts"],"sourcesContent":["import { configBaseFactory } from '@teambit/react.webpack.react-webpack';\n\nimport type { Configuration } from 'webpack';\nimport { ProvidePlugin } from 'webpack';\nimport { merge } from 'webpack-merge';\nimport { fallbacksProvidePluginConfig, fallbacks } from '@teambit/webpack';\nimport { WebpackManifestPlugin } from 'webpack-manifest-plugin';\n\nexport function createWebpackConfig(outputDir: string, entryFile: string): Configuration {\n const baseConfig = configBaseFactory(true);\n const preBundleConfig = createPreBundleConfig(outputDir, entryFile);\n\n
|
1
|
+
{"version":3,"names":["_reactWebpack","data","require","_webpack","_webpackMerge","_webpack2","_webpackManifestPlugin","createWebpackConfig","outputDir","entryFile","baseConfig","configBaseFactory","preBundleConfig","createPreBundleConfig","combined","merge","mode","process","env","BIT_DEBUG_PREVIEW_BUNDLE","stats","children","errorDetails","entry","main","resolve","alias","react","fallback","module","path","fallbacks","dgram","dns","fs","stream","http2","net","tls","child_process","output","publicPath","chunkFilename","filename","library","type","externalsType","externals","plugins","WebpackManifestPlugin","fileName","generate","seed","files","entrypoints","manifestFiles","reduce","manifest","file","name","entrypointFiles","filter","endsWith","ProvidePlugin","fallbacksProvidePluginConfig"],"sources":["webpack.config.ts"],"sourcesContent":["import { configBaseFactory } from '@teambit/react.webpack.react-webpack';\n\nimport type { Configuration } from 'webpack';\nimport { ProvidePlugin } from 'webpack';\nimport { merge } from 'webpack-merge';\nimport { fallbacksProvidePluginConfig, fallbacks } from '@teambit/webpack';\nimport { WebpackManifestPlugin } from 'webpack-manifest-plugin';\n\nexport function createWebpackConfig(outputDir: string, entryFile: string): Configuration {\n const baseConfig = configBaseFactory(true);\n const preBundleConfig = createPreBundleConfig(outputDir, entryFile);\n\n const combined = merge(baseConfig, preBundleConfig);\n\n return combined;\n}\n\nfunction createPreBundleConfig(outputDir: string, entryFile: string) {\n const mode = process.env.BIT_DEBUG_PREVIEW_BUNDLE ? 'development' : 'production';\n const preBundleConfig: Configuration = {\n stats: {\n children: true,\n errorDetails: true,\n },\n mode,\n entry: {\n main: entryFile,\n },\n resolve: {\n alias: {\n 'react/jsx-runtime': require.resolve('react/jsx-runtime'),\n react: require.resolve('react'),\n 'react-dom': require.resolve('react-dom'),\n },\n fallback: {\n module: false,\n path: fallbacks.path,\n dgram: false,\n dns: false,\n fs: false,\n stream: false,\n http2: false,\n net: false,\n tls: false,\n child_process: false,\n process: fallbacks.process,\n },\n },\n output: {\n path: outputDir,\n publicPath: '/',\n chunkFilename: 'static/js/[name].[contenthash:8].chunk.cjs',\n filename: 'static/js/[name].[contenthash:8].cjs',\n library: {\n type: 'commonjs-static',\n },\n },\n externalsType: 'commonjs',\n externals: ['react', 'react-dom', '@mdx-js/react', '@teambit/mdx.ui.mdx-scope-context'],\n plugins: [\n // Generate an asset manifest file with the following content:\n // - \"files\" key: Mapping of all asset filenames to their corresponding\n // output file so that tools can pick it up without having to parse\n // `index.html`\n // can be used to reconstruct the HTML if necessary\n new WebpackManifestPlugin({\n fileName: 'asset-manifest.json',\n generate: (seed, files, entrypoints) => {\n const manifestFiles = files.reduce((manifest, file) => {\n manifest[file.name] = file.path;\n return manifest;\n }, seed);\n const entrypointFiles = entrypoints.main.filter((fileName) => !fileName.endsWith('.map'));\n\n // @ts-ignore - https://github.com/shellscape/webpack-manifest-plugin/issues/276\n return {\n files: manifestFiles,\n entrypoints: entrypointFiles,\n } as Record<string, string>;\n },\n }),\n\n new ProvidePlugin({ process: fallbacksProvidePluginConfig.process }),\n ],\n };\n\n return preBundleConfig;\n}\n"],"mappings":";;;;;;AAAA,SAAAA,cAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,aAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAGA,SAAAE,SAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,QAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,cAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,aAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,UAAA;EAAA,MAAAJ,IAAA,GAAAC,OAAA;EAAAG,SAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,uBAAA;EAAA,MAAAL,IAAA,GAAAC,OAAA;EAAAI,sBAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEO,SAASM,mBAAmBA,CAACC,SAAiB,EAAEC,SAAiB,EAAiB;EACvF,MAAMC,UAAU,GAA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AC;IACDC,aAAa,EAAE,UAAU;IACzBC,SAAS,EAAE,CAAC,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,mCAAmC,CAAC;IACvFC,OAAO,EAAE;IACP;IACA;IACA;IACA;IACA;IACA,KAAIC,8CAAqB,EAAC;MACxBC,QAAQ,EAAE,qBAAqB;MAC/BC,QAAQ,EAAEA,CAACC,IAAI,EAAEC,KAAK,EAAEC,WAAW,KAAK;QACtC,MAAMC,aAAa,GAAGF,KAAK,CAACG,MAAM,CAAC,CAACC,QAAQ,EAAEC,IAAI,KAAK;UACrDD,QAAQ,CAACC,IAAI,CAACC,IAAI,CAAC,GAAGD,IAAI,CAAC5B,IAAI;UAC/B,OAAO2B,QAAQ;QACjB,CAAC,EAAEL,IAAI,CAAC;QACR,MAAMQ,eAAe,GAAGN,WAAW,CAAC9B,IAAI,CAACqC,MAAM,CAAEX,QAAQ,IAAK,CAACA,QAAQ,CAACY,QAAQ,CAAC,MAAM,CAAC,CAAC;;QAEzF;QACA,OAAO;UACLT,KAAK,EAAEE,aAAa;UACpBD,WAAW,EAAEM;QACf,CAAC;MACH;IACF,CAAC,CAAC,EAEF,KAAIG,wBAAa,EAAC;MAAE9C,OAAO,EAAE+C,wCAA4B,CAAC/C;IAAQ,CAAC,CAAC;EAExE,CAAC;EAED,OAAOL,eAAe;AACxB","ignoreList":[]}
|
package/package.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/preview",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.702",
|
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.
|
9
|
+
"version": "1.0.702"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"mime": "2.5.2",
|
@@ -21,8 +21,8 @@
|
|
21
21
|
"webpack": "5.97.1",
|
22
22
|
"graphql-tag": "2.12.1",
|
23
23
|
"filenamify": "4.2.0",
|
24
|
-
"lodash.compact": "3.0.1",
|
25
24
|
"graphql-request": "6.1.0",
|
25
|
+
"lodash.compact": "3.0.1",
|
26
26
|
"webpack-manifest-plugin": "5.0.0",
|
27
27
|
"webpack-merge": "5.8.0",
|
28
28
|
"@teambit/ui-foundation.ui.pages.static-error": "0.0.109",
|
@@ -40,27 +40,27 @@
|
|
40
40
|
"@teambit/preview.cli.dev-server-events-listener": "0.0.1",
|
41
41
|
"@teambit/preview.cli.webpack-events-listener": "0.0.178",
|
42
42
|
"@teambit/react.webpack.react-webpack": "1.0.42",
|
43
|
-
"@teambit/express": "0.0.
|
44
|
-
"@teambit/logger": "0.0.
|
45
|
-
"@teambit/builder": "1.0.
|
46
|
-
"@teambit/bundler": "1.0.
|
47
|
-
"@teambit/component": "1.0.
|
48
|
-
"@teambit/aspect-loader": "1.0.
|
49
|
-
"@teambit/cli": "0.0.
|
50
|
-
"@teambit/dependency-resolver": "1.0.
|
51
|
-
"@teambit/envs": "1.0.
|
52
|
-
"@teambit/ui": "1.0.
|
53
|
-
"@teambit/isolator": "1.0.
|
54
|
-
"@teambit/component.sources": "0.0.
|
55
|
-
"@teambit/cache": "0.0.
|
56
|
-
"@teambit/graphql": "1.0.
|
57
|
-
"@teambit/pkg": "1.0.
|
58
|
-
"@teambit/pubsub": "1.0.
|
59
|
-
"@teambit/scope": "1.0.
|
60
|
-
"@teambit/watcher": "1.0.
|
61
|
-
"@teambit/workspace": "1.0.
|
62
|
-
"@teambit/compiler": "1.0.
|
63
|
-
"@teambit/webpack": "1.0.
|
43
|
+
"@teambit/express": "0.0.1360",
|
44
|
+
"@teambit/logger": "0.0.1354",
|
45
|
+
"@teambit/builder": "1.0.702",
|
46
|
+
"@teambit/bundler": "1.0.702",
|
47
|
+
"@teambit/component": "1.0.702",
|
48
|
+
"@teambit/aspect-loader": "1.0.702",
|
49
|
+
"@teambit/cli": "0.0.1261",
|
50
|
+
"@teambit/dependency-resolver": "1.0.702",
|
51
|
+
"@teambit/envs": "1.0.702",
|
52
|
+
"@teambit/ui": "1.0.702",
|
53
|
+
"@teambit/isolator": "1.0.702",
|
54
|
+
"@teambit/component.sources": "0.0.120",
|
55
|
+
"@teambit/cache": "0.0.1354",
|
56
|
+
"@teambit/graphql": "1.0.702",
|
57
|
+
"@teambit/pkg": "1.0.702",
|
58
|
+
"@teambit/pubsub": "1.0.702",
|
59
|
+
"@teambit/scope": "1.0.702",
|
60
|
+
"@teambit/watcher": "1.0.702",
|
61
|
+
"@teambit/workspace": "1.0.702",
|
62
|
+
"@teambit/compiler": "1.0.702",
|
63
|
+
"@teambit/webpack": "1.0.702"
|
64
64
|
},
|
65
65
|
"devDependencies": {
|
66
66
|
"@types/mime": "2.0.3",
|
@@ -10,10 +10,8 @@ export function createWebpackConfig(outputDir: string, entryFile: string): Confi
|
|
10
10
|
const baseConfig = configBaseFactory(true);
|
11
11
|
const preBundleConfig = createPreBundleConfig(outputDir, entryFile);
|
12
12
|
|
13
|
-
// @ts-ignore that's an issue because of different types/webpack version
|
14
13
|
const combined = merge(baseConfig, preBundleConfig);
|
15
14
|
|
16
|
-
// @ts-ignore that's an issue because of different types/webpack version
|
17
15
|
return combined;
|
18
16
|
}
|
19
17
|
|