@teleporthq/teleport-project-generator-html 0.19.4 → 0.19.12
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/__tests__/end2end/index.ts +11 -13
- package/__tests__/index.ts +2 -2
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/plugin-clone-globals.js +28 -11
- package/dist/cjs/plugin-clone-globals.js.map +1 -1
- package/dist/cjs/plugin-image-resolution.d.ts +2 -2
- package/dist/cjs/plugin-image-resolution.js +7 -7
- package/dist/cjs/plugin-image-resolution.js.map +1 -1
- package/dist/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/esm/index.js +5 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/plugin-clone-globals.js +28 -11
- package/dist/esm/plugin-clone-globals.js.map +1 -1
- package/dist/esm/plugin-image-resolution.d.ts +2 -2
- package/dist/esm/plugin-image-resolution.js +6 -6
- package/dist/esm/plugin-image-resolution.js.map +1 -1
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -7
- package/src/index.ts +5 -5
- package/src/plugin-clone-globals.ts +31 -7
- package/src/plugin-image-resolution.ts +2 -2
|
@@ -9,24 +9,23 @@ describe('Html Project Generator', () => {
|
|
|
9
9
|
|
|
10
10
|
it('runs without crasing', async () => {
|
|
11
11
|
const { name, files, subFolders } = await generator.generateProject(uidlSample, HTMLTemplate)
|
|
12
|
-
const
|
|
13
|
-
const aboutPage = pages.files.find(
|
|
12
|
+
const aboutPage = subFolders[0]?.files.find(
|
|
14
13
|
(page) => page.name === 'about' && page.fileType === FileType.HTML
|
|
15
14
|
)
|
|
16
|
-
const homePage =
|
|
15
|
+
const homePage = subFolders[0]?.files.find(
|
|
17
16
|
(page) => page.name === 'landing-page' && page.fileType === FileType.HTML
|
|
18
17
|
)
|
|
19
|
-
const homeCSS =
|
|
18
|
+
const homeCSS = subFolders[0]?.files.find(
|
|
20
19
|
(page) => page.name === 'landing-page' && page.fileType === FileType.CSS
|
|
21
20
|
)
|
|
22
21
|
|
|
23
22
|
expect(name).toBe('teleport-project-html')
|
|
24
23
|
expect(files.length).toBe(1)
|
|
25
|
-
expect(subFolders.length).toBe(
|
|
24
|
+
expect(subFolders.length).toBe(2)
|
|
26
25
|
expect(aboutPage.content).toContain('head')
|
|
27
26
|
expect(aboutPage.content).toContain('html')
|
|
28
|
-
expect(homePage.content).toContain('
|
|
29
|
-
expect(homeCSS.content).toContain('
|
|
27
|
+
expect(homePage.content).toContain('public/playground_assets/kitten.png')
|
|
28
|
+
expect(homeCSS.content).toContain('public/playground_assets/kitten.png')
|
|
30
29
|
})
|
|
31
30
|
|
|
32
31
|
it('run withut crashing and appends entry things into single index.html', async () => {
|
|
@@ -35,14 +34,13 @@ describe('Html Project Generator', () => {
|
|
|
35
34
|
uidlSample,
|
|
36
35
|
HTMLTemplate
|
|
37
36
|
)
|
|
38
|
-
const
|
|
39
|
-
const aboutPage = pages.files.find(
|
|
37
|
+
const aboutPage = subFolders[0]?.files.find(
|
|
40
38
|
(page) => page.name === 'about' && page.fileType === FileType.HTML
|
|
41
39
|
)
|
|
42
|
-
const homePage =
|
|
40
|
+
const homePage = subFolders[0]?.files.find(
|
|
43
41
|
(page) => page.name === 'landing-page' && page.fileType === FileType.HTML
|
|
44
42
|
)
|
|
45
|
-
const homeCSS =
|
|
43
|
+
const homeCSS = subFolders[0]?.files.find(
|
|
46
44
|
(page) => page.name === 'landing-page' && page.fileType === FileType.CSS
|
|
47
45
|
)
|
|
48
46
|
|
|
@@ -51,8 +49,8 @@ describe('Html Project Generator', () => {
|
|
|
51
49
|
expect(subFolders.length).toBe(2)
|
|
52
50
|
expect(aboutPage.content).not.toContain('head')
|
|
53
51
|
expect(aboutPage.content).not.toContain('html')
|
|
54
|
-
expect(homePage.content).toContain('
|
|
55
|
-
expect(homeCSS.content).toContain('
|
|
52
|
+
expect(homePage.content).toContain('public/playground_assets/kitten.png')
|
|
53
|
+
expect(homeCSS.content).toContain('public/playground_assets/kitten.png')
|
|
56
54
|
})
|
|
57
55
|
|
|
58
56
|
it('throws error when invalid UIDL sample is used', async () => {
|
package/__tests__/index.ts
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
import { element, elementNode, staticNode } from '@teleporthq/teleport-uidl-builders'
|
|
10
10
|
import { UIDLUtils } from '@teleporthq/teleport-shared'
|
|
11
11
|
import ProjectTemplate from '../src/project-template'
|
|
12
|
-
import {
|
|
12
|
+
import { pluginImageResolver } from '../src/plugin-image-resolution'
|
|
13
13
|
|
|
14
14
|
describe('Image Resolution project-plugin', () => {
|
|
15
15
|
const files = new Map<string, InMemoryFileRecord>()
|
|
@@ -105,7 +105,7 @@ describe('Image Resolution project-plugin', () => {
|
|
|
105
105
|
rootFolder: UIDLUtils.cloneObject(ProjectTemplate),
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
const result = await
|
|
108
|
+
const result = await pluginImageResolver.runBefore(structrue)
|
|
109
109
|
const { uidl } = result
|
|
110
110
|
const rootNode = uidl.root.node.content
|
|
111
111
|
|
package/dist/cjs/index.js
CHANGED
|
@@ -19,11 +19,11 @@ var createHTMLProjectGenerator = function (config) {
|
|
|
19
19
|
id: 'teleport-project-html',
|
|
20
20
|
components: {
|
|
21
21
|
generator: teleport_component_generator_html_1.createHTMLComponentGenerator,
|
|
22
|
-
path: ['
|
|
22
|
+
path: ['components'],
|
|
23
23
|
},
|
|
24
24
|
pages: {
|
|
25
25
|
generator: teleport_component_generator_html_1.createHTMLComponentGenerator,
|
|
26
|
-
path: ['
|
|
26
|
+
path: [''],
|
|
27
27
|
},
|
|
28
28
|
static: {
|
|
29
29
|
prefix: '',
|
|
@@ -33,7 +33,7 @@ var createHTMLProjectGenerator = function (config) {
|
|
|
33
33
|
generator: teleport_component_generator_1.createComponentGenerator,
|
|
34
34
|
plugins: [teleport_plugin_css_1.createStyleSheetPlugin()],
|
|
35
35
|
fileName: 'style',
|
|
36
|
-
path: ['
|
|
36
|
+
path: [''],
|
|
37
37
|
importFile: true,
|
|
38
38
|
},
|
|
39
39
|
entry: {
|
|
@@ -42,7 +42,7 @@ var createHTMLProjectGenerator = function (config) {
|
|
|
42
42
|
path: [''],
|
|
43
43
|
},
|
|
44
44
|
});
|
|
45
|
-
generator.addPlugin(plugin_image_resolution_1.
|
|
45
|
+
generator.addPlugin(plugin_image_resolution_1.pluginImageResolver);
|
|
46
46
|
if (individualEntyFile) {
|
|
47
47
|
generator.addPlugin(plugin_clone_globals_1.pluginCloneGlobals);
|
|
48
48
|
}
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,qFAA+E;AAC/E,mGAA4F;AAC5F,yFAAmF;AACnF,uEAAwE;AACxE,0HAA2E;AAC3E,wEAA6C;AA2CR,uBA3C9B,0BAAY,CA2C8B;AA1CjD,+DAA2D;AAC3D,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,qFAA+E;AAC/E,mGAA4F;AAC5F,yFAAmF;AACnF,uEAAwE;AACxE,0HAA2E;AAC3E,wEAA6C;AA2CR,uBA3C9B,0BAAY,CA2C8B;AA1CjD,+DAA2D;AAC3D,qEAA+D;AAE/D,IAAM,0BAA0B,GAAG,UAAC,MAAwC;IAClE,IAAA,kBAAkB,GAAK,CAAA,MAAM,IAAI,EAAE,kBAAkB,EAAE,IAAI,EAAE,CAAA,mBAA3C,CAA2C;IAErE,IAAM,SAAS,GAAG,mDAAsB,CAAC;QACvC,EAAE,EAAE,uBAAuB;QAC3B,UAAU,EAAE;YACV,SAAS,EAAE,gEAA4B;YACvC,IAAI,EAAE,CAAC,YAAY,CAAC;SACrB;QACD,KAAK,EAAE;YACL,SAAS,EAAE,gEAA4B;YACvC,IAAI,EAAE,CAAC,EAAE,CAAC;SACX;QACD,MAAM,EAAE;YACN,MAAM,EAAE,EAAE;YACV,IAAI,EAAE,CAAC,QAAQ,CAAC;SACjB;QACD,iBAAiB,EAAE;YACjB,SAAS,EAAE,uDAAwB;YACnC,OAAO,EAAE,CAAC,4CAAsB,EAAE,CAAC;YACnC,QAAQ,EAAE,OAAO;YACjB,IAAI,EAAE,CAAC,EAAE,CAAC;YACV,UAAU,EAAE,IAAI;SACjB;QACD,KAAK,EAAE;YACL,cAAc,EAAE,CAAC,8CAAY,CAAC;YAC9B,QAAQ,EAAE,OAAO;YACjB,IAAI,EAAE,CAAC,EAAE,CAAC;SACX;KACF,CAAC,CAAA;IAEF,SAAS,CAAC,SAAS,CAAC,6CAAmB,CAAC,CAAA;IACxC,IAAI,kBAAkB,EAAE;QACtB,SAAS,CAAC,SAAS,CAAC,yCAAkB,CAAC,CAAA;KACxC;IAED,OAAO,SAAS,CAAA;AAClB,CAAC,CAAA;AAEQ,gEAA0B"}
|
|
@@ -56,30 +56,47 @@ var ProjectPluginCloneGlobals = /** @class */ (function () {
|
|
|
56
56
|
ProjectPluginCloneGlobals.prototype.runAfter = function (structure) {
|
|
57
57
|
var _a;
|
|
58
58
|
return __awaiter(this, void 0, void 0, function () {
|
|
59
|
-
var files, uidl, entryFile,
|
|
59
|
+
var files, uidl, entryFile, parsedEntryFile, body, head, scriptTags;
|
|
60
60
|
return __generator(this, function (_b) {
|
|
61
61
|
files = structure.files, uidl = structure.uidl;
|
|
62
62
|
entryFile = files.get('entry');
|
|
63
63
|
if (!entryFile) {
|
|
64
64
|
return [2 /*return*/, structure];
|
|
65
65
|
}
|
|
66
|
-
|
|
67
|
-
body =
|
|
66
|
+
parsedEntryFile = node_html_parser_1.parse(entryFile.files[0].content);
|
|
67
|
+
body = parsedEntryFile.querySelector('body');
|
|
68
|
+
head = parsedEntryFile.querySelector('head');
|
|
69
|
+
scriptTags = body.querySelectorAll('script');
|
|
68
70
|
body.childNodes = [];
|
|
69
71
|
if (Object.values(((_a = uidl.root) === null || _a === void 0 ? void 0 : _a.styleSetDefinitions) || {}).length > 0) {
|
|
70
|
-
head =
|
|
71
|
-
head.appendChild(new node_html_parser_1.HTMLElement('link', {}, 'rel="stylesheet" href="../style.css"', result));
|
|
72
|
+
head.appendChild(new node_html_parser_1.HTMLElement('link', {}, 'rel="stylesheet" href="./style.css"', parsedEntryFile));
|
|
72
73
|
}
|
|
73
74
|
files.forEach(function (fileId, key) {
|
|
74
75
|
var path = fileId.path;
|
|
75
|
-
if (path
|
|
76
|
+
if (path[0] === '') {
|
|
76
77
|
var newFiles = fileId.files.map(function (file) {
|
|
77
|
-
var _a;
|
|
78
|
+
var _a, _b;
|
|
78
79
|
if (file.fileType === teleport_types_1.FileType.HTML) {
|
|
79
|
-
|
|
80
|
-
var
|
|
81
|
-
|
|
82
|
-
|
|
80
|
+
var parsedIndividualFile = node_html_parser_1.parse(file.content);
|
|
81
|
+
var metaTags = parsedIndividualFile.getElementsByTagName('meta');
|
|
82
|
+
var titleTags = parsedIndividualFile.getElementsByTagName('title');
|
|
83
|
+
metaTags.forEach(function (metaTag) {
|
|
84
|
+
head.childNodes.unshift(metaTag);
|
|
85
|
+
metaTag.remove();
|
|
86
|
+
});
|
|
87
|
+
titleTags.forEach(function (titleTag) {
|
|
88
|
+
var inheritedHeadTags = head.getElementsByTagName('title');
|
|
89
|
+
if (inheritedHeadTags.length > 0) {
|
|
90
|
+
head.removeChild(head.getElementsByTagName('title')[0]);
|
|
91
|
+
}
|
|
92
|
+
head.childNodes.unshift(titleTag);
|
|
93
|
+
titleTag.remove();
|
|
94
|
+
});
|
|
95
|
+
body.innerHTML = parsedIndividualFile.toString();
|
|
96
|
+
(_a = body.childNodes).push.apply(_a, scriptTags);
|
|
97
|
+
var prettyFile = teleport_postprocessor_prettier_html_1.default((_b = {},
|
|
98
|
+
_b[teleport_types_1.FileType.HTML] = parsedEntryFile.toString(),
|
|
99
|
+
_b));
|
|
83
100
|
return { name: file.name, content: prettyFile[teleport_types_1.FileType.HTML], fileType: teleport_types_1.FileType.HTML };
|
|
84
101
|
}
|
|
85
102
|
return file;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-clone-globals.js","sourceRoot":"","sources":["../../src/plugin-clone-globals.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6DAKmC;AACnC,qDAAqD;AACrD,0HAA2E;AAE3E;IAAA;
|
|
1
|
+
{"version":3,"file":"plugin-clone-globals.js","sourceRoot":"","sources":["../../src/plugin-clone-globals.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6DAKmC;AACnC,qDAAqD;AACrD,0HAA2E;AAE3E;IAAA;IAkEA,CAAC;IAjEO,6CAAS,GAAf,UAAgB,SAAiC;;;gBAC/C,sBAAO,SAAS,EAAA;;;KACjB;IAEK,4CAAQ,GAAd,UAAe,SAAiC;;;;;gBACtC,KAAK,GAAW,SAAS,MAApB,EAAE,IAAI,GAAK,SAAS,KAAd,CAAc;gBAC3B,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;gBACpC,IAAI,CAAC,SAAS,EAAE;oBACd,sBAAO,SAAS,EAAA;iBACjB;gBAEK,eAAe,GAAG,wBAAK,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;gBACnD,IAAI,GAAG,eAAe,CAAC,aAAa,CAAC,MAAM,CAAC,CAAA;gBAC5C,IAAI,GAAG,eAAe,CAAC,aAAa,CAAC,MAAM,CAAC,CAAA;gBAE5C,UAAU,GAAG,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAA;gBAElD,IAAI,CAAC,UAAU,GAAG,EAAE,CAAA;gBAEpB,IAAI,MAAM,CAAC,MAAM,CAAC,CAAA,MAAA,IAAI,CAAC,IAAI,0CAAE,mBAAmB,KAAI,EAAE,CAAC,CAAC,MAAM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CAAC,SAAS,GAAG,oBAAoB,CAAC,QAAQ,EAAE,CAAA;gCAChD,CAAA,KAAA,IAAI,CAAC,UAAU,CAAA,CAAC,IAAI,WAAI,UAAU,EAAC;gCAEnC,IAAM,UAAU,GAAG,8CAAY;oCAC7B,GAAC,yBAAQ,CAAC,IAAI,IAAG,eAAe,CAAC,QAAQ,EAAE;wCAC3C,CAAA;gCAEF,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,UAAU,CAAC,yBAAQ,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,yBAAQ,CAAC,IAAI,EAAE,CAAA;6BACxF;4BACD,OAAO,IAAI,CAAA;wBACb,CAAC,CAAC,CAAA;wBACF,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,EAAE,IAAI,MAAA,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAA;qBAC1C;gBACH,CAAC,CAAC,CAAA;gBAEF,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;gBACrB,sBAAO,SAAS,EAAA;;;KACjB;IACH,gCAAC;AAAD,CAAC,AAlED,IAkEC;AAEY,QAAA,kBAAkB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,yBAAyB,EAAE,CAAC,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ProjectPlugin, ProjectPluginStructure } from '@teleporthq/teleport-types';
|
|
2
|
-
declare class
|
|
2
|
+
declare class ProjectPluginImageResolver implements ProjectPlugin {
|
|
3
3
|
private relativePath;
|
|
4
4
|
runBefore(structure: ProjectPluginStructure): Promise<ProjectPluginStructure>;
|
|
5
5
|
runAfter(structure: ProjectPluginStructure): Promise<ProjectPluginStructure>;
|
|
@@ -7,5 +7,5 @@ declare class ProjectPluginImageResolution implements ProjectPlugin {
|
|
|
7
7
|
private resolveFromStyles;
|
|
8
8
|
private imageResolver;
|
|
9
9
|
}
|
|
10
|
-
export declare const
|
|
10
|
+
export declare const pluginImageResolver: ProjectPluginImageResolver;
|
|
11
11
|
export {};
|
|
@@ -50,12 +50,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
50
50
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
51
51
|
};
|
|
52
52
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
|
-
exports.
|
|
53
|
+
exports.pluginImageResolver = void 0;
|
|
54
54
|
var teleport_shared_1 = require("@teleporthq/teleport-shared");
|
|
55
55
|
var path_browserify_1 = __importDefault(require("path-browserify"));
|
|
56
56
|
var parse = path_browserify_1.default.parse, join = path_browserify_1.default.join, relative = path_browserify_1.default.relative, isAbsolute = path_browserify_1.default.isAbsolute;
|
|
57
|
-
var
|
|
58
|
-
function
|
|
57
|
+
var ProjectPluginImageResolver = /** @class */ (function () {
|
|
58
|
+
function ProjectPluginImageResolver() {
|
|
59
59
|
var _this = this;
|
|
60
60
|
this.resolvePropsAndStates = function (defs) {
|
|
61
61
|
Object.keys(defs || {}).forEach(function (propKey) {
|
|
@@ -112,7 +112,7 @@ var ProjectPluginImageResolution = /** @class */ (function () {
|
|
|
112
112
|
}
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
|
-
|
|
115
|
+
ProjectPluginImageResolver.prototype.runBefore = function (structure) {
|
|
116
116
|
var _a;
|
|
117
117
|
return __awaiter(this, void 0, void 0, function () {
|
|
118
118
|
var uidl, strategy, assetsPath, pagesPath;
|
|
@@ -139,14 +139,14 @@ var ProjectPluginImageResolution = /** @class */ (function () {
|
|
|
139
139
|
});
|
|
140
140
|
});
|
|
141
141
|
};
|
|
142
|
-
|
|
142
|
+
ProjectPluginImageResolver.prototype.runAfter = function (structure) {
|
|
143
143
|
return __awaiter(this, void 0, void 0, function () {
|
|
144
144
|
return __generator(this, function (_a) {
|
|
145
145
|
return [2 /*return*/, structure];
|
|
146
146
|
});
|
|
147
147
|
});
|
|
148
148
|
};
|
|
149
|
-
return
|
|
149
|
+
return ProjectPluginImageResolver;
|
|
150
150
|
}());
|
|
151
|
-
exports.
|
|
151
|
+
exports.pluginImageResolver = new ProjectPluginImageResolver();
|
|
152
152
|
//# sourceMappingURL=plugin-image-resolution.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-image-resolution.js","sourceRoot":"","sources":["../../src/plugin-image-resolution.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,oEAA0C;AASlC,IAAA,KAAK,GAAiC,yBAAY,MAA7C,EAAE,IAAI,GAA2B,yBAAY,KAAvC,EAAE,QAAQ,GAAiB,yBAAY,SAA7B,EAAE,UAAU,GAAK,yBAAY,WAAjB,CAAiB;AAE1D;IAAA;QAAA,iBAyGC;QAzES,0BAAqB,GAAG,UAC9B,IAA8E;YAE9E,MAAM,CAAC,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,UAAC,OAAO;gBACtC,IAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,CAAA;gBAE/B,IACE,SAAS,CAAC,IAAI,KAAK,QAAQ;oBAC3B,OAAO,CAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,YAAY,CAAA,KAAK,QAAQ;oBAC3C,KAAK,CAAC,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,YAAsB,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,EAC5D;oBACA,IAAI,CAAC,OAAO,CAAC,yBACR,IAAI,CAAC,OAAO,CAAC,KAChB,YAAY,EAAE,IAAI,CAAC,KAAI,CAAC,YAAY,EAAE,SAAS,CAAC,YAAY,CAAC,GAC9D,CAAA;iBACF;YACH,CAAC,CAAC,CAAA;QACJ,CAAC,CAAA;QAEO,sBAAiB,GAAG,UAAC,KAA2B;;YACtD,IACE,CAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,eAAe,0CAAE,IAAI,MAA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AAS,CAAC,eAAe,CAAC,CAAA;gBACvD,CAAC,CAAC,CAAA;gBAEF,sBAAO,SAAS,EAAA;;;KACjB;IAEK,6CAAQ,GAAd,UAAe,SAAiC;;;gBAC9C,sBAAO,SAAS,EAAA;;;KACjB;IA2EH,iCAAC;AAAD,CAAC,AAzGD,IAyGC;AAEY,QAAA,mBAAmB,GAAG,IAAI,0BAA0B,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"program":{"fileNames":["../../../../node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/typescript/lib/lib.dom.d.ts","../../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../teleport-types/dist/cjs/uidl.d.ts","../../../teleport-types/dist/cjs/generators.d.ts","../../../teleport-types/dist/cjs/errors.d.ts","../../../teleport-types/dist/cjs/vuidl.d.ts","../../../teleport-types/dist/cjs/index.d.ts","../../../teleport-project-generator/dist/cjs/index.d.ts","../../../teleport-component-generator-html/dist/cjs/plain-html-mapping.d.ts","../../../teleport-component-generator-html/dist/cjs/index.d.ts","../../../teleport-component-generator/dist/cjs/index.d.ts","../../../teleport-plugin-css/dist/cjs/style-sheet.d.ts","../../../teleport-plugin-css/dist/cjs/index.d.ts","../../../teleport-postprocessor-prettier-html/dist/cjs/index.d.ts","../../src/project-template.ts","../../../../node_modules/node-html-parser/dist/nodes/type.d.ts","../../../../node_modules/node-html-parser/dist/nodes/html.d.ts","../../../../node_modules/node-html-parser/dist/nodes/node.d.ts","../../../../node_modules/node-html-parser/dist/nodes/comment.d.ts","../../../../node_modules/node-html-parser/dist/parse.d.ts","../../../../node_modules/node-html-parser/dist/valid.d.ts","../../../../node_modules/node-html-parser/dist/nodes/text.d.ts","../../../../node_modules/node-html-parser/dist/index.d.ts","../../src/plugin-clone-globals.ts","../../../teleport-shared/dist/cjs/constants/index.d.ts","../../../teleport-shared/dist/cjs/utils/string-utils.d.ts","../../../teleport-shared/dist/cjs/utils/uidl-utils.d.ts","../../../teleport-shared/dist/cjs/index.d.ts","../../src/plugin-image-resolution.ts","../../src/index.ts","../../src/path-browserisify.d.ts","../../../../node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/@types/node/globals.d.ts","../../../../node_modules/@types/node/async_hooks.d.ts","../../../../node_modules/@types/node/buffer.d.ts","../../../../node_modules/@types/node/child_process.d.ts","../../../../node_modules/@types/node/cluster.d.ts","../../../../node_modules/@types/node/console.d.ts","../../../../node_modules/@types/node/constants.d.ts","../../../../node_modules/@types/node/crypto.d.ts","../../../../node_modules/@types/node/dgram.d.ts","../../../../node_modules/@types/node/diagnostic_channel.d.ts","../../../../node_modules/@types/node/dns.d.ts","../../../../node_modules/@types/node/dns/promises.d.ts","../../../../node_modules/@types/node/domain.d.ts","../../../../node_modules/@types/node/events.d.ts","../../../../node_modules/@types/node/fs.d.ts","../../../../node_modules/@types/node/fs/promises.d.ts","../../../../node_modules/@types/node/http.d.ts","../../../../node_modules/@types/node/http2.d.ts","../../../../node_modules/@types/node/https.d.ts","../../../../node_modules/@types/node/inspector.d.ts","../../../../node_modules/@types/node/module.d.ts","../../../../node_modules/@types/node/net.d.ts","../../../../node_modules/@types/node/os.d.ts","../../../../node_modules/@types/node/path.d.ts","../../../../node_modules/@types/node/perf_hooks.d.ts","../../../../node_modules/@types/node/process.d.ts","../../../../node_modules/@types/node/punycode.d.ts","../../../../node_modules/@types/node/querystring.d.ts","../../../../node_modules/@types/node/readline.d.ts","../../../../node_modules/@types/node/repl.d.ts","../../../../node_modules/@types/node/stream.d.ts","../../../../node_modules/@types/node/stream/promises.d.ts","../../../../node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/@types/node/timers.d.ts","../../../../node_modules/@types/node/timers/promises.d.ts","../../../../node_modules/@types/node/tls.d.ts","../../../../node_modules/@types/node/trace_events.d.ts","../../../../node_modules/@types/node/tty.d.ts","../../../../node_modules/@types/node/url.d.ts","../../../../node_modules/@types/node/util.d.ts","../../../../node_modules/@types/node/util/types.d.ts","../../../../node_modules/@types/node/v8.d.ts","../../../../node_modules/@types/node/vm.d.ts","../../../../node_modules/@types/node/worker_threads.d.ts","../../../../node_modules/@types/node/zlib.d.ts","../../../../node_modules/@types/node/globals.global.d.ts","../../../../node_modules/@types/node/wasi.d.ts","../../../../node_modules/@types/node/ts3.6/base.d.ts","../../../../node_modules/@types/node/assert.d.ts","../../../../node_modules/@types/node/base.d.ts","../../../../node_modules/@types/node/index.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/cleanupSemantic.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/types.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/diffLines.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/printDiffs.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/index.d.ts","../../../../node_modules/@types/jest/node_modules/pretty-format/build/types.d.ts","../../../../node_modules/@types/jest/node_modules/pretty-format/build/index.d.ts","../../../../node_modules/@types/jest/index.d.ts","../../../../node_modules/@types/jest/ts3.2/index.d.ts"],"fileInfos":[{"version":"ac3a8c4040e183ce38da69d23b96939112457d1936198e6542672b7963cf0fce","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06",{"version":"1dad4fe1561d99dfd6709127608b99a76e5c2643626c800434f99c48038567ee","affectsGlobalScope":true},{"version":"cce43d02223f8049864f8568bed322c39424013275cd3bcc3f51492d8b546cb3","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"8dff1b4c2df638fcd976cbb0e636f23ab5968e836cd45084cc31d47d1ab19c49","affectsGlobalScope":true},{"version":"2bb4b3927299434052b37851a47bf5c39764f2ba88a888a107b32262e9292b7c","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"8f4c9f651c8294a2eb1cbd12581fe25bfb901ab1d474bb93cd38c7e2f4be7a30","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"60761e6ea886034af0f294f025a7199360ce4e2c8ba4ec6408bc049cf9b89799","affectsGlobalScope":true},{"version":"506b80b9951c9381dc5f11897b31fca5e2a65731d96ddefa19687fbc26b23c6e","affectsGlobalScope":true},"d1e076bd03d792a96993f458172927e0c5ac3cb8e1b566f54f925e6ef19bbebb","32d1441a2c9ffecd085a6fc87001ec1cf6a4be8ed12ea49ed188f0f47f2dc402","d49a625c30294f92976c954fffb2bcc2faeb81957148a363969ee742a43e2913","75ecadee387dde7be130c85ed277fdfcee3923e452260ffaf217ebaefe7bd305","cd619820771edb23926bb084906215ab9c491255fa707488d15748b38909b747","26de024c2ce80ff168f7194c32f845cadd9f7aced3949360d6084e6e342c343c","ed35cdde5c9a70e9252fbd21ced68037e629e4da3127eb126a5708245e8d8364","fca97f765dd627960cf684925f23925b4545b0b6af3497fcda42d3bd08a59942","df523941bde95bfd71391d3ed998c090242390d0e3e84de5d9a4cc0621b0bef0","e9de97322c064a7a0eddec5e49417049ff39f4097bdb9970d60469a88dc73c44","3271bc1d67f50e530f1c0bb3c3d745448536087a33d225dd8ff863668ee86954","4baa255974c1ce42bb55535d493cf2d80e9e2c41773a4391466340e8f9944bb6","159bd0fa1a78d6a8ea1813ce437c72f3fbf67264187ec830b0f292fe1dea3288","59a50afa27798d65c7a71e987ee0d9ce9e114bb06bac138a73f3c49c12b63487","f09a6024954b2a4f30409a6b816a54727a65f6187048cdd33c339570ee905939","2bd900a49184706dbce410f42b47409fe5a16696a1a414154ab7757715163795","0687837b7303cc18abaf3dad4a0c74605a30e162e799bcd76d1db2db579fd835","a27830571004b47d0dbdb8a23ef6c634716735bde15c49c5c687a5d2ea1a988c","56170e6aa335d7d939d2f0d3f5664aa451f27fdeaf04e6daca73ddcd2191a9a5","c1214108f55b3eebe95c4ce7ae0f7fecd535d0b24a9ef7368a4d3a6354ca641c","42f89918592edc388f99a2a18aaf92b9e9be279485329b44919a706e32897515","722709a107adac15fbc37f62df7801f65ae5b0aac6f700d908f5de7988b834f5","28b22326000119f53de35f67ce3096ef475a2224274162b1283ef8718e1efdb5","18aecf77d74ed15ae1e875a0d43f2aa85387794fc447b2bc3c8ab7e2224d0ac6","fcd80368105181b1be66006da7c16a58ed993845e7b37d33302387f18e889001","d2ff55204dd4868d11a163c207d4fbe8d99cbf8cb36fa90d2a2f0bfc802b4d38","abe0e6e659f86a52665fa0e854c3a3dc9b38887973e011a8877c57c7f29c0df0","ad2604b3fb08d0cb303b17345d73b5a961d5ee0b73164a40937be7f116e8c7a9","a543a3dc6a07db81e43c3a883194c2e0ef68318fcdf850c0daf6895d5d9d580d","c7bdc99177a2a94d25fb13722adaaf5b3291bf70b4d1b27584ba189dd3889ba3",{"version":"d1c92b66c4105659fcad4eb76a1481f7311033e117d0678a1ec545e8ddb8d4c6","affectsGlobalScope":true},"e23424b97418eca3226fd24de079f1203eb70360622e4e093af2aff14d4be6ec","dee93c07b4df5e26010dc9ec4cdf4d6e4076bb4474d2a8371529217c8b2740a4","d55bc773f71c50f55decb39b64a5d8b9889a7c9e94305b36656ebf30e4f47469","04eaa93bd75f937f9184dcb95a7983800c5770cf8ddd8ac0f3734dc02f5b20ef",{"version":"c8155caf28fc7b0a564156a5df28ad8a844a3bd32d331d148d8f3ce88025c870","affectsGlobalScope":true},"45ac321f2e15d268fd74a90ddaa6467dcaaff2c5b13f95b4b85831520fb7a491","dfc747ab8dd5f623055a4c26fd35e8cceca869fd3f1cf09701c941ca3679665a","c9f5f2920ff61d7158417b8440d5181ddc34a3dfef811a5677dd8a9fb91471e9","5cc0a492da3602510b8f5ed1852b1e0390002780d8758fbc8c0cd023ca7085f8","ec7dafafe751a5121f8f1c80201ebe7e7238c47e6329280a73c4d1ca4bb7fa28","64debeb10e4b7ae4ec9e89bfb4e04c6101ab98c3cc806d14e5488607cfec2753",{"version":"2866a528b2708aa272ec3eaafd3c980abb23aec1ef831cfc5eb2186b98c37ce5","affectsGlobalScope":true},{"version":"a5782d6cea81fe43d2db7ed41e789458c933ab3ab60602f7b5b14c4da3370496","affectsGlobalScope":true},"b86b7ff709a82ef3cba2184136c025989958bad483ffb13e4ca35d720245adf4","6194335ee3353f7226ba31f31d6301d0c6be87228419c0a08976ccd9d4f1213e","5a173b7da4e6d073f9c18a02f387816a934614e7af306193995935fbb95f10b8","b447e123210c68f205f67b20c996c04a1eb64b0e591c5e06e164cd3d3a869b28","13257840c0850d4ebd7c2b17604a9e006f752de76c2400ebc752bc465c330452","42176966283d3835c34278b9b5c0f470d484c0c0c6a55c20a2c916a1ce69b6e8","0cff7901aedfe78e314f7d44088f07e2afa1b6e4f0473a4169b8456ca2fb245d","c55776aa1db2b963a5fb820c0650362e721cba51ebf83b069696f2501378c0f3","e2236264a811ed1d09a2487a433e8f5216ae62378cf233954ae220cf886f6717","3ec1e108d587a5661ec790db607f482605ba9f3830e118ce578e3ffa3c42e22b","100b3bb9d39d2b1b5340f1bf45a52e94ef1692b45232b4ba00fac5c3cc56d331",{"version":"ec1a29ddaecb683aa360df0bd98ab5d4171d2d549554f7c5ab2a5c183a3dcb67","affectsGlobalScope":true},"7f77304372efe3c9967e5f9ea2061f1b4bf41dc3cda3c83cdd676f2e5af6b7e6","992c6f6be16c0a1d2eec13ece33adeea2c747ba27fcd078353a8f4bb5b4fea58","2597718d91e306949d89e285bf34c44192014ef541c3bd7cbb825c022749e974","a6b0abdb67d63ebe964ba5fee31bc3daf10c12eecd46b24d778426010c04c67e","ac4801ebc2355ba32329070123b1cd15891bf71b41dcaf9e75b4744832126a59","fd2298fba0640e7295e7bd545e2dfbfcccbb00c27019e501c87965a02bbdebf6","4fd3c4debadce3e9ab9dec3eb45f7f5e2e3d4ad65cf975a6d938d883cfb25a50","71ddd49185b68f27bfac127ef5d22cb2672c278e53e5370d9020ef50ca9c377d","b1ea7a6eaa7608e0e0529aebd323b526a79c6c05a4e519ae5c779675004dcdf1","9fcb033a6208485d8f3fadde31eb5cbcaf99149cff3e40c0dc53ebc6d0dff4e9","7df562288f949945cf69c21cd912100c2afedeeb7cdb219085f7f4b46cb7dde4","9d16690485ff1eb4f6fc57aebe237728fd8e03130c460919da3a35f4d9bd97f5","dcc6910d95a3625fd2b0487fda055988e46ab46c357a1b3618c27b4a8dd739c9","f4149f1aa299474c7040a35fe8f8ac2ad078cc1b190415adc1fff3ed52d490ea","3730099ed008776216268a97771de31753ef71e0a7d0ec650f588cba2a06ce44","8d649dbc429d7139a1d9a14ea2bf8af1dc089e0a879447539587463d4b6c248c","60c9e27816ec8ac8df7240598bb086e95b47edfb454c5cbf4003c812e0ed6e39","e361aecf17fc4034b4c122a1564471cdcd22ef3a51407803cb5a5fc020c04d02","4926467de88a92a4fc9971d8c6f21b91eca1c0e7fc2a46cc4638ab9440c73875",{"version":"2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1","affectsGlobalScope":true},"fc0ae4a8ad3c762b96f9d2c3700cb879a373458cb0bf3175478e3b4f85f7ef2f","fabbec378e1ddd86fcf2662e716c2b8318acedb664ee3a4cba6f9e8ee8269cf1","b3593bd345ebea5e4d0a894c03251a3774b34df3d6db57075c18e089a599ba76","e61a21e9418f279bc480394a94d1581b2dee73747adcbdef999b6737e34d721b","efd55e8ca79171bf26c0d0e30221cb8ee1f5a31dd0c791ec4b2e886f42bab124","e222104af6cb9415238ad358488b74d76eceeff238c1268ec6e85655b05341da","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","eba230221317c985ab1953ccc3edc517f248b37db4fef7875cb2c8d08aff7be7","b83e796810e475da3564c6515bc0ae9577070596a33d89299b7d99f94ecfd921","b4439890c168d646357928431100daac5cbdee1d345a34e6bf6eca9f3abe22bc","5d72971a459517c44c1379dab9ed248e87a61ba0a1e0f25c9d67e1e640cd9a09","02d734976af36f4273d930bea88b3e62adf6b078cf120c1c63d49aa8d8427c5c",{"version":"f624e578325b8c58e55b30c998b1f4c3ec1b61a9fa66373da4250c89b7880d44","affectsGlobalScope":true},{"version":"d3002f620eab4bf6476c9da5c0efb2041d46f7df8b3032a5631bd206abef2c75","affectsGlobalScope":true}],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"module":1,"noImplicitAny":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","sourceMap":true,"target":1},"fileIdsList":[[114,116],[110,111],[110,111,112,113],[115],[117],[107],[106,107],[61,66],[72,73,80,89],[62,72,80],[98],[66,73,81],[89,94],[69,72,80],[70],[69],[72],[72,74,89,97],[72,73,89],[80,89,97],[72,73,75,80,89,94,97],[75,94,97],[108],[97],[69,72,89],[82],[60],[96],[87,98,101],[72,90],[89],[92],[66,80],[58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105],[80],[86],[99],[61,66,72,74,83,89,97,101],[42,43,44,45,46,47,48],[42,43,44],[42,44],[42,43],[43],[33,35],[33],[33,38],[34,36,37,39,40,41,50,55],[33,40,49],[33,54,57],[51,52,53],[29],[29,30,31,32]],"referencedMap":[[117,1],[112,2],[114,3],[113,2],[116,4],[118,5],[58,6],[108,7],[61,8],[62,9],[63,10],[64,11],[65,12],[66,13],[67,14],[69,15],[70,16],[71,17],[72,17],[73,18],[74,19],[75,20],[76,21],[77,22],[109,23],[78,17],[79,24],[80,25],[82,26],[83,27],[84,28],[87,17],[88,29],[89,30],[90,31],[92,17],[93,32],[94,33],[106,34],[96,35],[97,36],[98,37],[100,31],[102,38],[103,31],[49,39],[45,40],[43,41],[44,42],[48,40],[46,43],[47,43],[36,44],[35,45],[37,45],[39,46],[38,45],[40,45],[56,47],[57,26],[50,48],[55,49],[34,45],[51,45],[54,50],[53,45],[30,51],[33,52],[32,51]],"exportedModulesMap":[[117,1],[112,2],[114,3],[113,2],[116,4],[118,5],[58,6],[108,7],[61,8],[62,9],[63,10],[64,11],[65,12],[66,13],[67,14],[69,15],[70,16],[71,17],[72,17],[73,18],[74,19],[75,20],[76,21],[77,22],[109,23],[78,17],[79,24],[80,25],[82,26],[83,27],[84,28],[87,17],[88,29],[89,30],[90,31],[92,17],[93,32],[94,33],[106,34],[96,35],[97,36],[98,37],[100,31],[102,38],[103,31],[49,39],[45,40],[43,41],[44,42],[48,40],[46,43],[47,43],[36,44],[35,45],[37,45],[39,46],[38,45],[40,45],[56,47],[57,26],[50,48],[55,49],[34,45],[51,45],[54,50],[53,45],[30,51],[33,52],[32,51]],"semanticDiagnosticsPerFile":[117,110,112,114,113,111,116,115,118,107,58,60,108,61,62,63,64,65,66,67,68,69,70,71,72,73,74,59,104,75,76,77,109,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,106,96,97,98,99,100,101,105,102,103,49,45,43,44,48,42,46,47,6,8,7,2,9,10,11,12,13,14,15,16,3,4,20,17,18,19,21,22,23,5,24,25,26,27,1,28,36,35,37,39,38,40,56,57,50,55,41,34,51,54,52,53,31,30,33,29,32]},"version":"4.3.5"}
|
|
1
|
+
{"program":{"fileNames":["../../../../node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/typescript/lib/lib.dom.d.ts","../../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../teleport-types/dist/cjs/uidl.d.ts","../../../teleport-types/dist/cjs/generators.d.ts","../../../teleport-types/dist/cjs/errors.d.ts","../../../teleport-types/dist/cjs/vuidl.d.ts","../../../teleport-types/dist/cjs/index.d.ts","../../../teleport-project-generator/dist/cjs/index.d.ts","../../../teleport-component-generator-html/dist/cjs/plain-html-mapping.d.ts","../../../teleport-component-generator-html/dist/cjs/index.d.ts","../../../teleport-component-generator/dist/cjs/index.d.ts","../../../teleport-plugin-css/dist/cjs/style-sheet.d.ts","../../../teleport-plugin-css/dist/cjs/index.d.ts","../../../teleport-postprocessor-prettier-html/dist/cjs/index.d.ts","../../src/project-template.ts","../../../../node_modules/node-html-parser/dist/nodes/type.d.ts","../../../../node_modules/node-html-parser/dist/nodes/html.d.ts","../../../../node_modules/node-html-parser/dist/nodes/node.d.ts","../../../../node_modules/node-html-parser/dist/nodes/comment.d.ts","../../../../node_modules/node-html-parser/dist/parse.d.ts","../../../../node_modules/node-html-parser/dist/valid.d.ts","../../../../node_modules/node-html-parser/dist/nodes/text.d.ts","../../../../node_modules/node-html-parser/dist/index.d.ts","../../src/plugin-clone-globals.ts","../../../teleport-shared/dist/cjs/constants/index.d.ts","../../../teleport-shared/dist/cjs/utils/string-utils.d.ts","../../../teleport-shared/dist/cjs/utils/uidl-utils.d.ts","../../../teleport-shared/dist/cjs/index.d.ts","../../src/plugin-image-resolution.ts","../../src/index.ts","../../src/path-browserisify.d.ts","../../../../node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/@types/node/globals.d.ts","../../../../node_modules/@types/node/async_hooks.d.ts","../../../../node_modules/@types/node/buffer.d.ts","../../../../node_modules/@types/node/child_process.d.ts","../../../../node_modules/@types/node/cluster.d.ts","../../../../node_modules/@types/node/console.d.ts","../../../../node_modules/@types/node/constants.d.ts","../../../../node_modules/@types/node/crypto.d.ts","../../../../node_modules/@types/node/dgram.d.ts","../../../../node_modules/@types/node/diagnostic_channel.d.ts","../../../../node_modules/@types/node/dns.d.ts","../../../../node_modules/@types/node/dns/promises.d.ts","../../../../node_modules/@types/node/domain.d.ts","../../../../node_modules/@types/node/events.d.ts","../../../../node_modules/@types/node/fs.d.ts","../../../../node_modules/@types/node/fs/promises.d.ts","../../../../node_modules/@types/node/http.d.ts","../../../../node_modules/@types/node/http2.d.ts","../../../../node_modules/@types/node/https.d.ts","../../../../node_modules/@types/node/inspector.d.ts","../../../../node_modules/@types/node/module.d.ts","../../../../node_modules/@types/node/net.d.ts","../../../../node_modules/@types/node/os.d.ts","../../../../node_modules/@types/node/path.d.ts","../../../../node_modules/@types/node/perf_hooks.d.ts","../../../../node_modules/@types/node/process.d.ts","../../../../node_modules/@types/node/punycode.d.ts","../../../../node_modules/@types/node/querystring.d.ts","../../../../node_modules/@types/node/readline.d.ts","../../../../node_modules/@types/node/repl.d.ts","../../../../node_modules/@types/node/stream.d.ts","../../../../node_modules/@types/node/stream/promises.d.ts","../../../../node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/@types/node/timers.d.ts","../../../../node_modules/@types/node/timers/promises.d.ts","../../../../node_modules/@types/node/tls.d.ts","../../../../node_modules/@types/node/trace_events.d.ts","../../../../node_modules/@types/node/tty.d.ts","../../../../node_modules/@types/node/url.d.ts","../../../../node_modules/@types/node/util.d.ts","../../../../node_modules/@types/node/util/types.d.ts","../../../../node_modules/@types/node/v8.d.ts","../../../../node_modules/@types/node/vm.d.ts","../../../../node_modules/@types/node/worker_threads.d.ts","../../../../node_modules/@types/node/zlib.d.ts","../../../../node_modules/@types/node/globals.global.d.ts","../../../../node_modules/@types/node/wasi.d.ts","../../../../node_modules/@types/node/ts3.6/base.d.ts","../../../../node_modules/@types/node/assert.d.ts","../../../../node_modules/@types/node/base.d.ts","../../../../node_modules/@types/node/index.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/cleanupSemantic.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/types.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/diffLines.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/printDiffs.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/index.d.ts","../../../../node_modules/@types/jest/node_modules/pretty-format/build/types.d.ts","../../../../node_modules/@types/jest/node_modules/pretty-format/build/index.d.ts","../../../../node_modules/@types/jest/index.d.ts","../../../../node_modules/@types/jest/ts3.2/index.d.ts"],"fileInfos":[{"version":"ac3a8c4040e183ce38da69d23b96939112457d1936198e6542672b7963cf0fce","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06",{"version":"1dad4fe1561d99dfd6709127608b99a76e5c2643626c800434f99c48038567ee","affectsGlobalScope":true},{"version":"cce43d02223f8049864f8568bed322c39424013275cd3bcc3f51492d8b546cb3","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"8dff1b4c2df638fcd976cbb0e636f23ab5968e836cd45084cc31d47d1ab19c49","affectsGlobalScope":true},{"version":"2bb4b3927299434052b37851a47bf5c39764f2ba88a888a107b32262e9292b7c","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"8f4c9f651c8294a2eb1cbd12581fe25bfb901ab1d474bb93cd38c7e2f4be7a30","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"60761e6ea886034af0f294f025a7199360ce4e2c8ba4ec6408bc049cf9b89799","affectsGlobalScope":true},{"version":"506b80b9951c9381dc5f11897b31fca5e2a65731d96ddefa19687fbc26b23c6e","affectsGlobalScope":true},"d1e076bd03d792a96993f458172927e0c5ac3cb8e1b566f54f925e6ef19bbebb","a163038908c6bfe2f8aaf9d1febce33fba0bd85863c0f56439cc196c962be918","d49a625c30294f92976c954fffb2bcc2faeb81957148a363969ee742a43e2913","75ecadee387dde7be130c85ed277fdfcee3923e452260ffaf217ebaefe7bd305","cd619820771edb23926bb084906215ab9c491255fa707488d15748b38909b747","26de024c2ce80ff168f7194c32f845cadd9f7aced3949360d6084e6e342c343c","ed35cdde5c9a70e9252fbd21ced68037e629e4da3127eb126a5708245e8d8364","fca97f765dd627960cf684925f23925b4545b0b6af3497fcda42d3bd08a59942","df523941bde95bfd71391d3ed998c090242390d0e3e84de5d9a4cc0621b0bef0","e9de97322c064a7a0eddec5e49417049ff39f4097bdb9970d60469a88dc73c44","3271bc1d67f50e530f1c0bb3c3d745448536087a33d225dd8ff863668ee86954","4baa255974c1ce42bb55535d493cf2d80e9e2c41773a4391466340e8f9944bb6","159bd0fa1a78d6a8ea1813ce437c72f3fbf67264187ec830b0f292fe1dea3288","59a50afa27798d65c7a71e987ee0d9ce9e114bb06bac138a73f3c49c12b63487","f09a6024954b2a4f30409a6b816a54727a65f6187048cdd33c339570ee905939","2bd900a49184706dbce410f42b47409fe5a16696a1a414154ab7757715163795","0687837b7303cc18abaf3dad4a0c74605a30e162e799bcd76d1db2db579fd835","a27830571004b47d0dbdb8a23ef6c634716735bde15c49c5c687a5d2ea1a988c","56170e6aa335d7d939d2f0d3f5664aa451f27fdeaf04e6daca73ddcd2191a9a5","c1214108f55b3eebe95c4ce7ae0f7fecd535d0b24a9ef7368a4d3a6354ca641c","42f89918592edc388f99a2a18aaf92b9e9be279485329b44919a706e32897515","da55c3d5dab124240de9fa913a6556da00063c14a6cb3b1899e3d5b09d672c6d","28b22326000119f53de35f67ce3096ef475a2224274162b1283ef8718e1efdb5","18aecf77d74ed15ae1e875a0d43f2aa85387794fc447b2bc3c8ab7e2224d0ac6","fcd80368105181b1be66006da7c16a58ed993845e7b37d33302387f18e889001","d2ff55204dd4868d11a163c207d4fbe8d99cbf8cb36fa90d2a2f0bfc802b4d38","30e6439447775a3d80116a6e5322b55c439c2e6cd0cdaeb1101c9254d560dbb6","a3ba4527c2c90d219850a9d495b6a1495c8ecd3a1a3ba6d196bd9b858cb2ccb8","a543a3dc6a07db81e43c3a883194c2e0ef68318fcdf850c0daf6895d5d9d580d","c7bdc99177a2a94d25fb13722adaaf5b3291bf70b4d1b27584ba189dd3889ba3",{"version":"d1c92b66c4105659fcad4eb76a1481f7311033e117d0678a1ec545e8ddb8d4c6","affectsGlobalScope":true},"e23424b97418eca3226fd24de079f1203eb70360622e4e093af2aff14d4be6ec","dee93c07b4df5e26010dc9ec4cdf4d6e4076bb4474d2a8371529217c8b2740a4","d55bc773f71c50f55decb39b64a5d8b9889a7c9e94305b36656ebf30e4f47469","04eaa93bd75f937f9184dcb95a7983800c5770cf8ddd8ac0f3734dc02f5b20ef",{"version":"c8155caf28fc7b0a564156a5df28ad8a844a3bd32d331d148d8f3ce88025c870","affectsGlobalScope":true},"45ac321f2e15d268fd74a90ddaa6467dcaaff2c5b13f95b4b85831520fb7a491","dfc747ab8dd5f623055a4c26fd35e8cceca869fd3f1cf09701c941ca3679665a","c9f5f2920ff61d7158417b8440d5181ddc34a3dfef811a5677dd8a9fb91471e9","5cc0a492da3602510b8f5ed1852b1e0390002780d8758fbc8c0cd023ca7085f8","ec7dafafe751a5121f8f1c80201ebe7e7238c47e6329280a73c4d1ca4bb7fa28","64debeb10e4b7ae4ec9e89bfb4e04c6101ab98c3cc806d14e5488607cfec2753",{"version":"2866a528b2708aa272ec3eaafd3c980abb23aec1ef831cfc5eb2186b98c37ce5","affectsGlobalScope":true},{"version":"a5782d6cea81fe43d2db7ed41e789458c933ab3ab60602f7b5b14c4da3370496","affectsGlobalScope":true},"b86b7ff709a82ef3cba2184136c025989958bad483ffb13e4ca35d720245adf4","6194335ee3353f7226ba31f31d6301d0c6be87228419c0a08976ccd9d4f1213e","5a173b7da4e6d073f9c18a02f387816a934614e7af306193995935fbb95f10b8","b447e123210c68f205f67b20c996c04a1eb64b0e591c5e06e164cd3d3a869b28","13257840c0850d4ebd7c2b17604a9e006f752de76c2400ebc752bc465c330452","42176966283d3835c34278b9b5c0f470d484c0c0c6a55c20a2c916a1ce69b6e8","0cff7901aedfe78e314f7d44088f07e2afa1b6e4f0473a4169b8456ca2fb245d","c55776aa1db2b963a5fb820c0650362e721cba51ebf83b069696f2501378c0f3","e2236264a811ed1d09a2487a433e8f5216ae62378cf233954ae220cf886f6717","3ec1e108d587a5661ec790db607f482605ba9f3830e118ce578e3ffa3c42e22b","100b3bb9d39d2b1b5340f1bf45a52e94ef1692b45232b4ba00fac5c3cc56d331",{"version":"ec1a29ddaecb683aa360df0bd98ab5d4171d2d549554f7c5ab2a5c183a3dcb67","affectsGlobalScope":true},"7f77304372efe3c9967e5f9ea2061f1b4bf41dc3cda3c83cdd676f2e5af6b7e6","992c6f6be16c0a1d2eec13ece33adeea2c747ba27fcd078353a8f4bb5b4fea58","2597718d91e306949d89e285bf34c44192014ef541c3bd7cbb825c022749e974","a6b0abdb67d63ebe964ba5fee31bc3daf10c12eecd46b24d778426010c04c67e","ac4801ebc2355ba32329070123b1cd15891bf71b41dcaf9e75b4744832126a59","fd2298fba0640e7295e7bd545e2dfbfcccbb00c27019e501c87965a02bbdebf6","4fd3c4debadce3e9ab9dec3eb45f7f5e2e3d4ad65cf975a6d938d883cfb25a50","71ddd49185b68f27bfac127ef5d22cb2672c278e53e5370d9020ef50ca9c377d","b1ea7a6eaa7608e0e0529aebd323b526a79c6c05a4e519ae5c779675004dcdf1","9fcb033a6208485d8f3fadde31eb5cbcaf99149cff3e40c0dc53ebc6d0dff4e9","7df562288f949945cf69c21cd912100c2afedeeb7cdb219085f7f4b46cb7dde4","9d16690485ff1eb4f6fc57aebe237728fd8e03130c460919da3a35f4d9bd97f5","dcc6910d95a3625fd2b0487fda055988e46ab46c357a1b3618c27b4a8dd739c9","f4149f1aa299474c7040a35fe8f8ac2ad078cc1b190415adc1fff3ed52d490ea","3730099ed008776216268a97771de31753ef71e0a7d0ec650f588cba2a06ce44","8d649dbc429d7139a1d9a14ea2bf8af1dc089e0a879447539587463d4b6c248c","60c9e27816ec8ac8df7240598bb086e95b47edfb454c5cbf4003c812e0ed6e39","e361aecf17fc4034b4c122a1564471cdcd22ef3a51407803cb5a5fc020c04d02","4926467de88a92a4fc9971d8c6f21b91eca1c0e7fc2a46cc4638ab9440c73875",{"version":"2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1","affectsGlobalScope":true},"fc0ae4a8ad3c762b96f9d2c3700cb879a373458cb0bf3175478e3b4f85f7ef2f","fabbec378e1ddd86fcf2662e716c2b8318acedb664ee3a4cba6f9e8ee8269cf1","b3593bd345ebea5e4d0a894c03251a3774b34df3d6db57075c18e089a599ba76","e61a21e9418f279bc480394a94d1581b2dee73747adcbdef999b6737e34d721b","efd55e8ca79171bf26c0d0e30221cb8ee1f5a31dd0c791ec4b2e886f42bab124","e222104af6cb9415238ad358488b74d76eceeff238c1268ec6e85655b05341da","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","eba230221317c985ab1953ccc3edc517f248b37db4fef7875cb2c8d08aff7be7","b83e796810e475da3564c6515bc0ae9577070596a33d89299b7d99f94ecfd921","b4439890c168d646357928431100daac5cbdee1d345a34e6bf6eca9f3abe22bc","5d72971a459517c44c1379dab9ed248e87a61ba0a1e0f25c9d67e1e640cd9a09","02d734976af36f4273d930bea88b3e62adf6b078cf120c1c63d49aa8d8427c5c",{"version":"f624e578325b8c58e55b30c998b1f4c3ec1b61a9fa66373da4250c89b7880d44","affectsGlobalScope":true},{"version":"d3002f620eab4bf6476c9da5c0efb2041d46f7df8b3032a5631bd206abef2c75","affectsGlobalScope":true}],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"module":1,"noImplicitAny":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","sourceMap":true,"target":1},"fileIdsList":[[114,116],[110,111],[110,111,112,113],[115],[117],[107],[106,107],[61,66],[72,73,80,89],[62,72,80],[98],[66,73,81],[89,94],[69,72,80],[70],[69],[72],[72,74,89,97],[72,73,89],[80,89,97],[72,73,75,80,89,94,97],[75,94,97],[108],[97],[69,72,89],[82],[60],[96],[87,98,101],[72,90],[89],[92],[66,80],[58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105],[80],[86],[99],[61,66,72,74,83,89,97,101],[42,43,44,45,46,47,48],[42,43,44],[42,44],[42,43],[43],[33,35],[33],[33,38],[34,36,37,39,40,41,50,55],[33,40,49],[33,54,57],[51,52,53],[29],[29,30,31,32]],"referencedMap":[[117,1],[112,2],[114,3],[113,2],[116,4],[118,5],[58,6],[108,7],[61,8],[62,9],[63,10],[64,11],[65,12],[66,13],[67,14],[69,15],[70,16],[71,17],[72,17],[73,18],[74,19],[75,20],[76,21],[77,22],[109,23],[78,17],[79,24],[80,25],[82,26],[83,27],[84,28],[87,17],[88,29],[89,30],[90,31],[92,17],[93,32],[94,33],[106,34],[96,35],[97,36],[98,37],[100,31],[102,38],[103,31],[49,39],[45,40],[43,41],[44,42],[48,40],[46,43],[47,43],[36,44],[35,45],[37,45],[39,46],[38,45],[40,45],[56,47],[57,26],[50,48],[55,49],[34,45],[51,45],[54,50],[53,45],[30,51],[33,52],[32,51]],"exportedModulesMap":[[117,1],[112,2],[114,3],[113,2],[116,4],[118,5],[58,6],[108,7],[61,8],[62,9],[63,10],[64,11],[65,12],[66,13],[67,14],[69,15],[70,16],[71,17],[72,17],[73,18],[74,19],[75,20],[76,21],[77,22],[109,23],[78,17],[79,24],[80,25],[82,26],[83,27],[84,28],[87,17],[88,29],[89,30],[90,31],[92,17],[93,32],[94,33],[106,34],[96,35],[97,36],[98,37],[100,31],[102,38],[103,31],[49,39],[45,40],[43,41],[44,42],[48,40],[46,43],[47,43],[36,44],[35,45],[37,45],[39,46],[38,45],[40,45],[56,47],[57,26],[50,48],[55,49],[34,45],[51,45],[54,50],[53,45],[30,51],[33,52],[32,51]],"semanticDiagnosticsPerFile":[117,110,112,114,113,111,116,115,118,107,58,60,108,61,62,63,64,65,66,67,68,69,70,71,72,73,74,59,104,75,76,77,109,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,106,96,97,98,99,100,101,105,102,103,49,45,43,44,48,42,46,47,6,8,7,2,9,10,11,12,13,14,15,16,3,4,20,17,18,19,21,22,23,5,24,25,26,27,1,28,36,35,37,39,38,40,56,57,50,55,41,34,51,54,52,53,31,30,33,29,32]},"version":"4.3.5"}
|
package/dist/esm/index.js
CHANGED
|
@@ -5,18 +5,18 @@ import { createStyleSheetPlugin } from '@teleporthq/teleport-plugin-css';
|
|
|
5
5
|
import prettierHTML from '@teleporthq/teleport-postprocessor-prettier-html';
|
|
6
6
|
import HTMLTemplate from './project-template';
|
|
7
7
|
import { pluginCloneGlobals } from './plugin-clone-globals';
|
|
8
|
-
import {
|
|
8
|
+
import { pluginImageResolver } from './plugin-image-resolution';
|
|
9
9
|
var createHTMLProjectGenerator = function (config) {
|
|
10
10
|
var individualEntyFile = (config || { individualEntyFile: true }).individualEntyFile;
|
|
11
11
|
var generator = createProjectGenerator({
|
|
12
12
|
id: 'teleport-project-html',
|
|
13
13
|
components: {
|
|
14
14
|
generator: createHTMLComponentGenerator,
|
|
15
|
-
path: ['
|
|
15
|
+
path: ['components'],
|
|
16
16
|
},
|
|
17
17
|
pages: {
|
|
18
18
|
generator: createHTMLComponentGenerator,
|
|
19
|
-
path: ['
|
|
19
|
+
path: [''],
|
|
20
20
|
},
|
|
21
21
|
static: {
|
|
22
22
|
prefix: '',
|
|
@@ -26,7 +26,7 @@ var createHTMLProjectGenerator = function (config) {
|
|
|
26
26
|
generator: createComponentGenerator,
|
|
27
27
|
plugins: [createStyleSheetPlugin()],
|
|
28
28
|
fileName: 'style',
|
|
29
|
-
path: ['
|
|
29
|
+
path: [''],
|
|
30
30
|
importFile: true,
|
|
31
31
|
},
|
|
32
32
|
entry: {
|
|
@@ -35,7 +35,7 @@ var createHTMLProjectGenerator = function (config) {
|
|
|
35
35
|
path: [''],
|
|
36
36
|
},
|
|
37
37
|
});
|
|
38
|
-
generator.addPlugin(
|
|
38
|
+
generator.addPlugin(pluginImageResolver);
|
|
39
39
|
if (individualEntyFile) {
|
|
40
40
|
generator.addPlugin(pluginCloneGlobals);
|
|
41
41
|
}
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAA;AAC/E,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAA;AAC5F,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAA;AACnF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAA;AACxE,OAAO,YAAY,MAAM,kDAAkD,CAAA;AAC3E,OAAO,YAAY,MAAM,oBAAoB,CAAA;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAC3D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAA;AAC/E,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAA;AAC5F,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAA;AACnF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAA;AACxE,OAAO,YAAY,MAAM,kDAAkD,CAAA;AAC3E,OAAO,YAAY,MAAM,oBAAoB,CAAA;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAE/D,IAAM,0BAA0B,GAAG,UAAC,MAAwC;IAClE,IAAA,kBAAkB,GAAK,CAAA,MAAM,IAAI,EAAE,kBAAkB,EAAE,IAAI,EAAE,CAAA,mBAA3C,CAA2C;IAErE,IAAM,SAAS,GAAG,sBAAsB,CAAC;QACvC,EAAE,EAAE,uBAAuB;QAC3B,UAAU,EAAE;YACV,SAAS,EAAE,4BAA4B;YACvC,IAAI,EAAE,CAAC,YAAY,CAAC;SACrB;QACD,KAAK,EAAE;YACL,SAAS,EAAE,4BAA4B;YACvC,IAAI,EAAE,CAAC,EAAE,CAAC;SACX;QACD,MAAM,EAAE;YACN,MAAM,EAAE,EAAE;YACV,IAAI,EAAE,CAAC,QAAQ,CAAC;SACjB;QACD,iBAAiB,EAAE;YACjB,SAAS,EAAE,wBAAwB;YACnC,OAAO,EAAE,CAAC,sBAAsB,EAAE,CAAC;YACnC,QAAQ,EAAE,OAAO;YACjB,IAAI,EAAE,CAAC,EAAE,CAAC;YACV,UAAU,EAAE,IAAI;SACjB;QACD,KAAK,EAAE;YACL,cAAc,EAAE,CAAC,YAAY,CAAC;YAC9B,QAAQ,EAAE,OAAO;YACjB,IAAI,EAAE,CAAC,EAAE,CAAC;SACX;KACF,CAAC,CAAA;IAEF,SAAS,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAA;IACxC,IAAI,kBAAkB,EAAE;QACtB,SAAS,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAA;KACxC;IAED,OAAO,SAAS,CAAA;AAClB,CAAC,CAAA;AAED,OAAO,EAAE,0BAA0B,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -50,30 +50,47 @@ var ProjectPluginCloneGlobals = /** @class */ (function () {
|
|
|
50
50
|
ProjectPluginCloneGlobals.prototype.runAfter = function (structure) {
|
|
51
51
|
var _a;
|
|
52
52
|
return __awaiter(this, void 0, void 0, function () {
|
|
53
|
-
var files, uidl, entryFile,
|
|
53
|
+
var files, uidl, entryFile, parsedEntryFile, body, head, scriptTags;
|
|
54
54
|
return __generator(this, function (_b) {
|
|
55
55
|
files = structure.files, uidl = structure.uidl;
|
|
56
56
|
entryFile = files.get('entry');
|
|
57
57
|
if (!entryFile) {
|
|
58
58
|
return [2 /*return*/, structure];
|
|
59
59
|
}
|
|
60
|
-
|
|
61
|
-
body =
|
|
60
|
+
parsedEntryFile = parse(entryFile.files[0].content);
|
|
61
|
+
body = parsedEntryFile.querySelector('body');
|
|
62
|
+
head = parsedEntryFile.querySelector('head');
|
|
63
|
+
scriptTags = body.querySelectorAll('script');
|
|
62
64
|
body.childNodes = [];
|
|
63
65
|
if (Object.values(((_a = uidl.root) === null || _a === void 0 ? void 0 : _a.styleSetDefinitions) || {}).length > 0) {
|
|
64
|
-
head =
|
|
65
|
-
head.appendChild(new HTMLElement('link', {}, 'rel="stylesheet" href="../style.css"', result));
|
|
66
|
+
head.appendChild(new HTMLElement('link', {}, 'rel="stylesheet" href="./style.css"', parsedEntryFile));
|
|
66
67
|
}
|
|
67
68
|
files.forEach(function (fileId, key) {
|
|
68
69
|
var path = fileId.path;
|
|
69
|
-
if (path
|
|
70
|
+
if (path[0] === '') {
|
|
70
71
|
var newFiles = fileId.files.map(function (file) {
|
|
71
|
-
var _a;
|
|
72
|
+
var _a, _b;
|
|
72
73
|
if (file.fileType === FileType.HTML) {
|
|
73
|
-
|
|
74
|
-
var
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
var parsedIndividualFile = parse(file.content);
|
|
75
|
+
var metaTags = parsedIndividualFile.getElementsByTagName('meta');
|
|
76
|
+
var titleTags = parsedIndividualFile.getElementsByTagName('title');
|
|
77
|
+
metaTags.forEach(function (metaTag) {
|
|
78
|
+
head.childNodes.unshift(metaTag);
|
|
79
|
+
metaTag.remove();
|
|
80
|
+
});
|
|
81
|
+
titleTags.forEach(function (titleTag) {
|
|
82
|
+
var inheritedHeadTags = head.getElementsByTagName('title');
|
|
83
|
+
if (inheritedHeadTags.length > 0) {
|
|
84
|
+
head.removeChild(head.getElementsByTagName('title')[0]);
|
|
85
|
+
}
|
|
86
|
+
head.childNodes.unshift(titleTag);
|
|
87
|
+
titleTag.remove();
|
|
88
|
+
});
|
|
89
|
+
body.innerHTML = parsedIndividualFile.toString();
|
|
90
|
+
(_a = body.childNodes).push.apply(_a, scriptTags);
|
|
91
|
+
var prettyFile = prettierHTML((_b = {},
|
|
92
|
+
_b[FileType.HTML] = parsedEntryFile.toString(),
|
|
93
|
+
_b));
|
|
77
94
|
return { name: file.name, content: prettyFile[FileType.HTML], fileType: FileType.HTML };
|
|
78
95
|
}
|
|
79
96
|
return file;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-clone-globals.js","sourceRoot":"","sources":["../../src/plugin-clone-globals.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EACL,QAAQ,GAIT,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AACrD,OAAO,YAAY,MAAM,kDAAkD,CAAA;AAE3E;IAAA;
|
|
1
|
+
{"version":3,"file":"plugin-clone-globals.js","sourceRoot":"","sources":["../../src/plugin-clone-globals.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EACL,QAAQ,GAIT,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AACrD,OAAO,YAAY,MAAM,kDAAkD,CAAA;AAE3E;IAAA;IAkEA,CAAC;IAjEO,6CAAS,GAAf,UAAgB,SAAiC;;;gBAC/C,sBAAO,SAAS,EAAA;;;KACjB;IAEK,4CAAQ,GAAd,UAAe,SAAiC;;;;;gBACtC,KAAK,GAAW,SAAS,MAApB,EAAE,IAAI,GAAK,SAAS,KAAd,CAAc;gBAC3B,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;gBACpC,IAAI,CAAC,SAAS,EAAE;oBACd,sBAAO,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B,EAAE,CAAC,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ProjectPlugin, ProjectPluginStructure } from '@teleporthq/teleport-types';
|
|
2
|
-
declare class
|
|
2
|
+
declare class ProjectPluginImageResolver implements ProjectPlugin {
|
|
3
3
|
private relativePath;
|
|
4
4
|
runBefore(structure: ProjectPluginStructure): Promise<ProjectPluginStructure>;
|
|
5
5
|
runAfter(structure: ProjectPluginStructure): Promise<ProjectPluginStructure>;
|
|
@@ -7,5 +7,5 @@ declare class ProjectPluginImageResolution implements ProjectPlugin {
|
|
|
7
7
|
private resolveFromStyles;
|
|
8
8
|
private imageResolver;
|
|
9
9
|
}
|
|
10
|
-
export declare const
|
|
10
|
+
export declare const pluginImageResolver: ProjectPluginImageResolver;
|
|
11
11
|
export {};
|
|
@@ -48,8 +48,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
48
48
|
import { UIDLUtils } from '@teleporthq/teleport-shared';
|
|
49
49
|
import PathResolver from 'path-browserify';
|
|
50
50
|
var parse = PathResolver.parse, join = PathResolver.join, relative = PathResolver.relative, isAbsolute = PathResolver.isAbsolute;
|
|
51
|
-
var
|
|
52
|
-
function
|
|
51
|
+
var ProjectPluginImageResolver = /** @class */ (function () {
|
|
52
|
+
function ProjectPluginImageResolver() {
|
|
53
53
|
var _this = this;
|
|
54
54
|
this.resolvePropsAndStates = function (defs) {
|
|
55
55
|
Object.keys(defs || {}).forEach(function (propKey) {
|
|
@@ -106,7 +106,7 @@ var ProjectPluginImageResolution = /** @class */ (function () {
|
|
|
106
106
|
}
|
|
107
107
|
};
|
|
108
108
|
}
|
|
109
|
-
|
|
109
|
+
ProjectPluginImageResolver.prototype.runBefore = function (structure) {
|
|
110
110
|
var _a;
|
|
111
111
|
return __awaiter(this, void 0, void 0, function () {
|
|
112
112
|
var uidl, strategy, assetsPath, pagesPath;
|
|
@@ -133,14 +133,14 @@ var ProjectPluginImageResolution = /** @class */ (function () {
|
|
|
133
133
|
});
|
|
134
134
|
});
|
|
135
135
|
};
|
|
136
|
-
|
|
136
|
+
ProjectPluginImageResolver.prototype.runAfter = function (structure) {
|
|
137
137
|
return __awaiter(this, void 0, void 0, function () {
|
|
138
138
|
return __generator(this, function (_a) {
|
|
139
139
|
return [2 /*return*/, structure];
|
|
140
140
|
});
|
|
141
141
|
});
|
|
142
142
|
};
|
|
143
|
-
return
|
|
143
|
+
return ProjectPluginImageResolver;
|
|
144
144
|
}());
|
|
145
|
-
export var
|
|
145
|
+
export var pluginImageResolver = new ProjectPluginImageResolver();
|
|
146
146
|
//# sourceMappingURL=plugin-image-resolution.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-image-resolution.js","sourceRoot":"","sources":["../../src/plugin-image-resolution.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAA;AACvD,OAAO,YAAY,MAAM,iBAAiB,CAAA;AASlC,IAAA,KAAK,GAAiC,YAAY,MAA7C,EAAE,IAAI,GAA2B,YAAY,KAAvC,EAAE,QAAQ,GAAiB,YAAY,SAA7B,EAAE,UAAU,GAAK,YAAY,WAAjB,CAAiB;AAE1D;IAAA;QAAA,iBAyGC;QAzES,0BAAqB,GAAG,UAC9B,IAA8E;YAE9E,MAAM,CAAC,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,UAAC,OAAO;gBACtC,IAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,CAAA;gBAE/B,IACE,SAAS,CAAC,IAAI,KAAK,QAAQ;oBAC3B,OAAO,CAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,YAAY,CAAA,KAAK,QAAQ;oBAC3C,KAAK,CAAC,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,YAAsB,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC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AC,IAAI,EAAE,KAAI,CAAC,aAAa,CAAC,CAAA;oBAC9D,MAAM,CAAC,MAAM,CAAC,CAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,mBAAmB,KAAI,EAAE,CAAC,CAAC,OAAO,CAAC,UAAC,QAAQ;wBACnE,KAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAA;oBAC1C,CAAC,CAAC,CAAA;oBACF,KAAI,CAAC,qBAAqB,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAA;oBACtD,KAAI,CAAC,qBAAqB,CAAC,SAAS,CAAC,eAAe,CAAC,CAAA;gBACvD,CAAC,CAAC,CAAA;gBAEF,sBAAO,SAAS,EAAA;;;KACjB;IAEK,6CAAQ,GAAd,UAAe,SAAiC;;;gBAC9C,sBAAO,SAAS,EAAA;;;KACjB;IA2EH,iCAAC;AAAD,CAAC,AAzGD,IAyGC;AAED,MAAM,CAAC,IAAM,mBAAmB,GAAG,IAAI,0BAA0B,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"program":{"fileNames":["../../../../node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/typescript/lib/lib.dom.d.ts","../../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../teleport-types/dist/cjs/uidl.d.ts","../../../teleport-types/dist/cjs/generators.d.ts","../../../teleport-types/dist/cjs/errors.d.ts","../../../teleport-types/dist/cjs/vuidl.d.ts","../../../teleport-types/dist/cjs/index.d.ts","../../../teleport-project-generator/dist/cjs/index.d.ts","../../../teleport-component-generator-html/dist/cjs/plain-html-mapping.d.ts","../../../teleport-component-generator-html/dist/cjs/index.d.ts","../../../teleport-component-generator/dist/cjs/index.d.ts","../../../teleport-plugin-css/dist/cjs/style-sheet.d.ts","../../../teleport-plugin-css/dist/cjs/index.d.ts","../../../teleport-postprocessor-prettier-html/dist/cjs/index.d.ts","../../src/project-template.ts","../../../../node_modules/node-html-parser/dist/nodes/type.d.ts","../../../../node_modules/node-html-parser/dist/nodes/html.d.ts","../../../../node_modules/node-html-parser/dist/nodes/node.d.ts","../../../../node_modules/node-html-parser/dist/nodes/comment.d.ts","../../../../node_modules/node-html-parser/dist/parse.d.ts","../../../../node_modules/node-html-parser/dist/valid.d.ts","../../../../node_modules/node-html-parser/dist/nodes/text.d.ts","../../../../node_modules/node-html-parser/dist/index.d.ts","../../src/plugin-clone-globals.ts","../../../teleport-shared/dist/cjs/constants/index.d.ts","../../../teleport-shared/dist/cjs/utils/string-utils.d.ts","../../../teleport-shared/dist/cjs/utils/uidl-utils.d.ts","../../../teleport-shared/dist/cjs/index.d.ts","../../src/plugin-image-resolution.ts","../../src/index.ts","../../src/path-browserisify.d.ts","../../../../node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/@types/node/globals.d.ts","../../../../node_modules/@types/node/async_hooks.d.ts","../../../../node_modules/@types/node/buffer.d.ts","../../../../node_modules/@types/node/child_process.d.ts","../../../../node_modules/@types/node/cluster.d.ts","../../../../node_modules/@types/node/console.d.ts","../../../../node_modules/@types/node/constants.d.ts","../../../../node_modules/@types/node/crypto.d.ts","../../../../node_modules/@types/node/dgram.d.ts","../../../../node_modules/@types/node/diagnostic_channel.d.ts","../../../../node_modules/@types/node/dns.d.ts","../../../../node_modules/@types/node/dns/promises.d.ts","../../../../node_modules/@types/node/domain.d.ts","../../../../node_modules/@types/node/events.d.ts","../../../../node_modules/@types/node/fs.d.ts","../../../../node_modules/@types/node/fs/promises.d.ts","../../../../node_modules/@types/node/http.d.ts","../../../../node_modules/@types/node/http2.d.ts","../../../../node_modules/@types/node/https.d.ts","../../../../node_modules/@types/node/inspector.d.ts","../../../../node_modules/@types/node/module.d.ts","../../../../node_modules/@types/node/net.d.ts","../../../../node_modules/@types/node/os.d.ts","../../../../node_modules/@types/node/path.d.ts","../../../../node_modules/@types/node/perf_hooks.d.ts","../../../../node_modules/@types/node/process.d.ts","../../../../node_modules/@types/node/punycode.d.ts","../../../../node_modules/@types/node/querystring.d.ts","../../../../node_modules/@types/node/readline.d.ts","../../../../node_modules/@types/node/repl.d.ts","../../../../node_modules/@types/node/stream.d.ts","../../../../node_modules/@types/node/stream/promises.d.ts","../../../../node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/@types/node/timers.d.ts","../../../../node_modules/@types/node/timers/promises.d.ts","../../../../node_modules/@types/node/tls.d.ts","../../../../node_modules/@types/node/trace_events.d.ts","../../../../node_modules/@types/node/tty.d.ts","../../../../node_modules/@types/node/url.d.ts","../../../../node_modules/@types/node/util.d.ts","../../../../node_modules/@types/node/util/types.d.ts","../../../../node_modules/@types/node/v8.d.ts","../../../../node_modules/@types/node/vm.d.ts","../../../../node_modules/@types/node/worker_threads.d.ts","../../../../node_modules/@types/node/zlib.d.ts","../../../../node_modules/@types/node/globals.global.d.ts","../../../../node_modules/@types/node/wasi.d.ts","../../../../node_modules/@types/node/ts3.6/base.d.ts","../../../../node_modules/@types/node/assert.d.ts","../../../../node_modules/@types/node/base.d.ts","../../../../node_modules/@types/node/index.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/cleanupSemantic.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/types.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/diffLines.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/printDiffs.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/index.d.ts","../../../../node_modules/@types/jest/node_modules/pretty-format/build/types.d.ts","../../../../node_modules/@types/jest/node_modules/pretty-format/build/index.d.ts","../../../../node_modules/@types/jest/index.d.ts","../../../../node_modules/@types/jest/ts3.2/index.d.ts"],"fileInfos":[{"version":"ac3a8c4040e183ce38da69d23b96939112457d1936198e6542672b7963cf0fce","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06",{"version":"1dad4fe1561d99dfd6709127608b99a76e5c2643626c800434f99c48038567ee","affectsGlobalScope":true},{"version":"cce43d02223f8049864f8568bed322c39424013275cd3bcc3f51492d8b546cb3","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"8dff1b4c2df638fcd976cbb0e636f23ab5968e836cd45084cc31d47d1ab19c49","affectsGlobalScope":true},{"version":"2bb4b3927299434052b37851a47bf5c39764f2ba88a888a107b32262e9292b7c","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"8f4c9f651c8294a2eb1cbd12581fe25bfb901ab1d474bb93cd38c7e2f4be7a30","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"60761e6ea886034af0f294f025a7199360ce4e2c8ba4ec6408bc049cf9b89799","affectsGlobalScope":true},{"version":"506b80b9951c9381dc5f11897b31fca5e2a65731d96ddefa19687fbc26b23c6e","affectsGlobalScope":true},"d1e076bd03d792a96993f458172927e0c5ac3cb8e1b566f54f925e6ef19bbebb","32d1441a2c9ffecd085a6fc87001ec1cf6a4be8ed12ea49ed188f0f47f2dc402","d49a625c30294f92976c954fffb2bcc2faeb81957148a363969ee742a43e2913","75ecadee387dde7be130c85ed277fdfcee3923e452260ffaf217ebaefe7bd305","cd619820771edb23926bb084906215ab9c491255fa707488d15748b38909b747","26de024c2ce80ff168f7194c32f845cadd9f7aced3949360d6084e6e342c343c","ed35cdde5c9a70e9252fbd21ced68037e629e4da3127eb126a5708245e8d8364","fca97f765dd627960cf684925f23925b4545b0b6af3497fcda42d3bd08a59942","df523941bde95bfd71391d3ed998c090242390d0e3e84de5d9a4cc0621b0bef0","e9de97322c064a7a0eddec5e49417049ff39f4097bdb9970d60469a88dc73c44","3271bc1d67f50e530f1c0bb3c3d745448536087a33d225dd8ff863668ee86954","4baa255974c1ce42bb55535d493cf2d80e9e2c41773a4391466340e8f9944bb6","159bd0fa1a78d6a8ea1813ce437c72f3fbf67264187ec830b0f292fe1dea3288","59a50afa27798d65c7a71e987ee0d9ce9e114bb06bac138a73f3c49c12b63487","f09a6024954b2a4f30409a6b816a54727a65f6187048cdd33c339570ee905939","2bd900a49184706dbce410f42b47409fe5a16696a1a414154ab7757715163795","0687837b7303cc18abaf3dad4a0c74605a30e162e799bcd76d1db2db579fd835","a27830571004b47d0dbdb8a23ef6c634716735bde15c49c5c687a5d2ea1a988c","56170e6aa335d7d939d2f0d3f5664aa451f27fdeaf04e6daca73ddcd2191a9a5","c1214108f55b3eebe95c4ce7ae0f7fecd535d0b24a9ef7368a4d3a6354ca641c","42f89918592edc388f99a2a18aaf92b9e9be279485329b44919a706e32897515","722709a107adac15fbc37f62df7801f65ae5b0aac6f700d908f5de7988b834f5","28b22326000119f53de35f67ce3096ef475a2224274162b1283ef8718e1efdb5","18aecf77d74ed15ae1e875a0d43f2aa85387794fc447b2bc3c8ab7e2224d0ac6","fcd80368105181b1be66006da7c16a58ed993845e7b37d33302387f18e889001","d2ff55204dd4868d11a163c207d4fbe8d99cbf8cb36fa90d2a2f0bfc802b4d38","abe0e6e659f86a52665fa0e854c3a3dc9b38887973e011a8877c57c7f29c0df0","ad2604b3fb08d0cb303b17345d73b5a961d5ee0b73164a40937be7f116e8c7a9","a543a3dc6a07db81e43c3a883194c2e0ef68318fcdf850c0daf6895d5d9d580d","c7bdc99177a2a94d25fb13722adaaf5b3291bf70b4d1b27584ba189dd3889ba3",{"version":"d1c92b66c4105659fcad4eb76a1481f7311033e117d0678a1ec545e8ddb8d4c6","affectsGlobalScope":true},"e23424b97418eca3226fd24de079f1203eb70360622e4e093af2aff14d4be6ec","dee93c07b4df5e26010dc9ec4cdf4d6e4076bb4474d2a8371529217c8b2740a4","d55bc773f71c50f55decb39b64a5d8b9889a7c9e94305b36656ebf30e4f47469","04eaa93bd75f937f9184dcb95a7983800c5770cf8ddd8ac0f3734dc02f5b20ef",{"version":"c8155caf28fc7b0a564156a5df28ad8a844a3bd32d331d148d8f3ce88025c870","affectsGlobalScope":true},"45ac321f2e15d268fd74a90ddaa6467dcaaff2c5b13f95b4b85831520fb7a491","dfc747ab8dd5f623055a4c26fd35e8cceca869fd3f1cf09701c941ca3679665a","c9f5f2920ff61d7158417b8440d5181ddc34a3dfef811a5677dd8a9fb91471e9","5cc0a492da3602510b8f5ed1852b1e0390002780d8758fbc8c0cd023ca7085f8","ec7dafafe751a5121f8f1c80201ebe7e7238c47e6329280a73c4d1ca4bb7fa28","64debeb10e4b7ae4ec9e89bfb4e04c6101ab98c3cc806d14e5488607cfec2753",{"version":"2866a528b2708aa272ec3eaafd3c980abb23aec1ef831cfc5eb2186b98c37ce5","affectsGlobalScope":true},{"version":"a5782d6cea81fe43d2db7ed41e789458c933ab3ab60602f7b5b14c4da3370496","affectsGlobalScope":true},"b86b7ff709a82ef3cba2184136c025989958bad483ffb13e4ca35d720245adf4","6194335ee3353f7226ba31f31d6301d0c6be87228419c0a08976ccd9d4f1213e","5a173b7da4e6d073f9c18a02f387816a934614e7af306193995935fbb95f10b8","b447e123210c68f205f67b20c996c04a1eb64b0e591c5e06e164cd3d3a869b28","13257840c0850d4ebd7c2b17604a9e006f752de76c2400ebc752bc465c330452","42176966283d3835c34278b9b5c0f470d484c0c0c6a55c20a2c916a1ce69b6e8","0cff7901aedfe78e314f7d44088f07e2afa1b6e4f0473a4169b8456ca2fb245d","c55776aa1db2b963a5fb820c0650362e721cba51ebf83b069696f2501378c0f3","e2236264a811ed1d09a2487a433e8f5216ae62378cf233954ae220cf886f6717","3ec1e108d587a5661ec790db607f482605ba9f3830e118ce578e3ffa3c42e22b","100b3bb9d39d2b1b5340f1bf45a52e94ef1692b45232b4ba00fac5c3cc56d331",{"version":"ec1a29ddaecb683aa360df0bd98ab5d4171d2d549554f7c5ab2a5c183a3dcb67","affectsGlobalScope":true},"7f77304372efe3c9967e5f9ea2061f1b4bf41dc3cda3c83cdd676f2e5af6b7e6","992c6f6be16c0a1d2eec13ece33adeea2c747ba27fcd078353a8f4bb5b4fea58","2597718d91e306949d89e285bf34c44192014ef541c3bd7cbb825c022749e974","a6b0abdb67d63ebe964ba5fee31bc3daf10c12eecd46b24d778426010c04c67e","ac4801ebc2355ba32329070123b1cd15891bf71b41dcaf9e75b4744832126a59","fd2298fba0640e7295e7bd545e2dfbfcccbb00c27019e501c87965a02bbdebf6","4fd3c4debadce3e9ab9dec3eb45f7f5e2e3d4ad65cf975a6d938d883cfb25a50","71ddd49185b68f27bfac127ef5d22cb2672c278e53e5370d9020ef50ca9c377d","b1ea7a6eaa7608e0e0529aebd323b526a79c6c05a4e519ae5c779675004dcdf1","9fcb033a6208485d8f3fadde31eb5cbcaf99149cff3e40c0dc53ebc6d0dff4e9","7df562288f949945cf69c21cd912100c2afedeeb7cdb219085f7f4b46cb7dde4","9d16690485ff1eb4f6fc57aebe237728fd8e03130c460919da3a35f4d9bd97f5","dcc6910d95a3625fd2b0487fda055988e46ab46c357a1b3618c27b4a8dd739c9","f4149f1aa299474c7040a35fe8f8ac2ad078cc1b190415adc1fff3ed52d490ea","3730099ed008776216268a97771de31753ef71e0a7d0ec650f588cba2a06ce44","8d649dbc429d7139a1d9a14ea2bf8af1dc089e0a879447539587463d4b6c248c","60c9e27816ec8ac8df7240598bb086e95b47edfb454c5cbf4003c812e0ed6e39","e361aecf17fc4034b4c122a1564471cdcd22ef3a51407803cb5a5fc020c04d02","4926467de88a92a4fc9971d8c6f21b91eca1c0e7fc2a46cc4638ab9440c73875",{"version":"2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1","affectsGlobalScope":true},"fc0ae4a8ad3c762b96f9d2c3700cb879a373458cb0bf3175478e3b4f85f7ef2f","fabbec378e1ddd86fcf2662e716c2b8318acedb664ee3a4cba6f9e8ee8269cf1","b3593bd345ebea5e4d0a894c03251a3774b34df3d6db57075c18e089a599ba76","e61a21e9418f279bc480394a94d1581b2dee73747adcbdef999b6737e34d721b","efd55e8ca79171bf26c0d0e30221cb8ee1f5a31dd0c791ec4b2e886f42bab124","e222104af6cb9415238ad358488b74d76eceeff238c1268ec6e85655b05341da","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","eba230221317c985ab1953ccc3edc517f248b37db4fef7875cb2c8d08aff7be7","b83e796810e475da3564c6515bc0ae9577070596a33d89299b7d99f94ecfd921","b4439890c168d646357928431100daac5cbdee1d345a34e6bf6eca9f3abe22bc","5d72971a459517c44c1379dab9ed248e87a61ba0a1e0f25c9d67e1e640cd9a09","02d734976af36f4273d930bea88b3e62adf6b078cf120c1c63d49aa8d8427c5c",{"version":"f624e578325b8c58e55b30c998b1f4c3ec1b61a9fa66373da4250c89b7880d44","affectsGlobalScope":true},{"version":"d3002f620eab4bf6476c9da5c0efb2041d46f7df8b3032a5631bd206abef2c75","affectsGlobalScope":true}],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"module":99,"noImplicitAny":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","sourceMap":true,"target":1},"fileIdsList":[[114,116],[110,111],[110,111,112,113],[115],[117],[107],[106,107],[61,66],[72,73,80,89],[62,72,80],[98],[66,73,81],[89,94],[69,72,80],[70],[69],[72],[72,74,89,97],[72,73,89],[80,89,97],[72,73,75,80,89,94,97],[75,94,97],[108],[97],[69,72,89],[82],[60],[96],[87,98,101],[72,90],[89],[92],[66,80],[58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105],[80],[86],[99],[61,66,72,74,83,89,97,101],[42,43,44,45,46,47,48],[42,43,44],[42,44],[42,43],[43],[33,35],[33],[33,38],[34,36,37,39,40,41,50,55],[33,40,49],[33,54,57],[51,52,53],[29],[29,30,31,32]],"referencedMap":[[117,1],[112,2],[114,3],[113,2],[116,4],[118,5],[58,6],[108,7],[61,8],[62,9],[63,10],[64,11],[65,12],[66,13],[67,14],[69,15],[70,16],[71,17],[72,17],[73,18],[74,19],[75,20],[76,21],[77,22],[109,23],[78,17],[79,24],[80,25],[82,26],[83,27],[84,28],[87,17],[88,29],[89,30],[90,31],[92,17],[93,32],[94,33],[106,34],[96,35],[97,36],[98,37],[100,31],[102,38],[103,31],[49,39],[45,40],[43,41],[44,42],[48,40],[46,43],[47,43],[36,44],[35,45],[37,45],[39,46],[38,45],[40,45],[56,47],[57,26],[50,48],[55,49],[34,45],[51,45],[54,50],[53,45],[30,51],[33,52],[32,51]],"exportedModulesMap":[[117,1],[112,2],[114,3],[113,2],[116,4],[118,5],[58,6],[108,7],[61,8],[62,9],[63,10],[64,11],[65,12],[66,13],[67,14],[69,15],[70,16],[71,17],[72,17],[73,18],[74,19],[75,20],[76,21],[77,22],[109,23],[78,17],[79,24],[80,25],[82,26],[83,27],[84,28],[87,17],[88,29],[89,30],[90,31],[92,17],[93,32],[94,33],[106,34],[96,35],[97,36],[98,37],[100,31],[102,38],[103,31],[49,39],[45,40],[43,41],[44,42],[48,40],[46,43],[47,43],[36,44],[35,45],[37,45],[39,46],[38,45],[40,45],[56,47],[57,26],[50,48],[55,49],[34,45],[51,45],[54,50],[53,45],[30,51],[33,52],[32,51]],"semanticDiagnosticsPerFile":[117,110,112,114,113,111,116,115,118,107,58,60,108,61,62,63,64,65,66,67,68,69,70,71,72,73,74,59,104,75,76,77,109,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,106,96,97,98,99,100,101,105,102,103,49,45,43,44,48,42,46,47,6,8,7,2,9,10,11,12,13,14,15,16,3,4,20,17,18,19,21,22,23,5,24,25,26,27,1,28,36,35,37,39,38,40,56,57,50,55,41,34,51,54,52,53,31,30,33,29,32]},"version":"4.3.5"}
|
|
1
|
+
{"program":{"fileNames":["../../../../node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/typescript/lib/lib.dom.d.ts","../../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../teleport-types/dist/cjs/uidl.d.ts","../../../teleport-types/dist/cjs/generators.d.ts","../../../teleport-types/dist/cjs/errors.d.ts","../../../teleport-types/dist/cjs/vuidl.d.ts","../../../teleport-types/dist/cjs/index.d.ts","../../../teleport-project-generator/dist/cjs/index.d.ts","../../../teleport-component-generator-html/dist/cjs/plain-html-mapping.d.ts","../../../teleport-component-generator-html/dist/cjs/index.d.ts","../../../teleport-component-generator/dist/cjs/index.d.ts","../../../teleport-plugin-css/dist/cjs/style-sheet.d.ts","../../../teleport-plugin-css/dist/cjs/index.d.ts","../../../teleport-postprocessor-prettier-html/dist/cjs/index.d.ts","../../src/project-template.ts","../../../../node_modules/node-html-parser/dist/nodes/type.d.ts","../../../../node_modules/node-html-parser/dist/nodes/html.d.ts","../../../../node_modules/node-html-parser/dist/nodes/node.d.ts","../../../../node_modules/node-html-parser/dist/nodes/comment.d.ts","../../../../node_modules/node-html-parser/dist/parse.d.ts","../../../../node_modules/node-html-parser/dist/valid.d.ts","../../../../node_modules/node-html-parser/dist/nodes/text.d.ts","../../../../node_modules/node-html-parser/dist/index.d.ts","../../src/plugin-clone-globals.ts","../../../teleport-shared/dist/cjs/constants/index.d.ts","../../../teleport-shared/dist/cjs/utils/string-utils.d.ts","../../../teleport-shared/dist/cjs/utils/uidl-utils.d.ts","../../../teleport-shared/dist/cjs/index.d.ts","../../src/plugin-image-resolution.ts","../../src/index.ts","../../src/path-browserisify.d.ts","../../../../node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/@types/node/globals.d.ts","../../../../node_modules/@types/node/async_hooks.d.ts","../../../../node_modules/@types/node/buffer.d.ts","../../../../node_modules/@types/node/child_process.d.ts","../../../../node_modules/@types/node/cluster.d.ts","../../../../node_modules/@types/node/console.d.ts","../../../../node_modules/@types/node/constants.d.ts","../../../../node_modules/@types/node/crypto.d.ts","../../../../node_modules/@types/node/dgram.d.ts","../../../../node_modules/@types/node/diagnostic_channel.d.ts","../../../../node_modules/@types/node/dns.d.ts","../../../../node_modules/@types/node/dns/promises.d.ts","../../../../node_modules/@types/node/domain.d.ts","../../../../node_modules/@types/node/events.d.ts","../../../../node_modules/@types/node/fs.d.ts","../../../../node_modules/@types/node/fs/promises.d.ts","../../../../node_modules/@types/node/http.d.ts","../../../../node_modules/@types/node/http2.d.ts","../../../../node_modules/@types/node/https.d.ts","../../../../node_modules/@types/node/inspector.d.ts","../../../../node_modules/@types/node/module.d.ts","../../../../node_modules/@types/node/net.d.ts","../../../../node_modules/@types/node/os.d.ts","../../../../node_modules/@types/node/path.d.ts","../../../../node_modules/@types/node/perf_hooks.d.ts","../../../../node_modules/@types/node/process.d.ts","../../../../node_modules/@types/node/punycode.d.ts","../../../../node_modules/@types/node/querystring.d.ts","../../../../node_modules/@types/node/readline.d.ts","../../../../node_modules/@types/node/repl.d.ts","../../../../node_modules/@types/node/stream.d.ts","../../../../node_modules/@types/node/stream/promises.d.ts","../../../../node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/@types/node/timers.d.ts","../../../../node_modules/@types/node/timers/promises.d.ts","../../../../node_modules/@types/node/tls.d.ts","../../../../node_modules/@types/node/trace_events.d.ts","../../../../node_modules/@types/node/tty.d.ts","../../../../node_modules/@types/node/url.d.ts","../../../../node_modules/@types/node/util.d.ts","../../../../node_modules/@types/node/util/types.d.ts","../../../../node_modules/@types/node/v8.d.ts","../../../../node_modules/@types/node/vm.d.ts","../../../../node_modules/@types/node/worker_threads.d.ts","../../../../node_modules/@types/node/zlib.d.ts","../../../../node_modules/@types/node/globals.global.d.ts","../../../../node_modules/@types/node/wasi.d.ts","../../../../node_modules/@types/node/ts3.6/base.d.ts","../../../../node_modules/@types/node/assert.d.ts","../../../../node_modules/@types/node/base.d.ts","../../../../node_modules/@types/node/index.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/cleanupSemantic.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/types.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/diffLines.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/printDiffs.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/index.d.ts","../../../../node_modules/@types/jest/node_modules/pretty-format/build/types.d.ts","../../../../node_modules/@types/jest/node_modules/pretty-format/build/index.d.ts","../../../../node_modules/@types/jest/index.d.ts","../../../../node_modules/@types/jest/ts3.2/index.d.ts"],"fileInfos":[{"version":"ac3a8c4040e183ce38da69d23b96939112457d1936198e6542672b7963cf0fce","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06",{"version":"1dad4fe1561d99dfd6709127608b99a76e5c2643626c800434f99c48038567ee","affectsGlobalScope":true},{"version":"cce43d02223f8049864f8568bed322c39424013275cd3bcc3f51492d8b546cb3","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"8dff1b4c2df638fcd976cbb0e636f23ab5968e836cd45084cc31d47d1ab19c49","affectsGlobalScope":true},{"version":"2bb4b3927299434052b37851a47bf5c39764f2ba88a888a107b32262e9292b7c","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"8f4c9f651c8294a2eb1cbd12581fe25bfb901ab1d474bb93cd38c7e2f4be7a30","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"60761e6ea886034af0f294f025a7199360ce4e2c8ba4ec6408bc049cf9b89799","affectsGlobalScope":true},{"version":"506b80b9951c9381dc5f11897b31fca5e2a65731d96ddefa19687fbc26b23c6e","affectsGlobalScope":true},"d1e076bd03d792a96993f458172927e0c5ac3cb8e1b566f54f925e6ef19bbebb","a163038908c6bfe2f8aaf9d1febce33fba0bd85863c0f56439cc196c962be918","d49a625c30294f92976c954fffb2bcc2faeb81957148a363969ee742a43e2913","75ecadee387dde7be130c85ed277fdfcee3923e452260ffaf217ebaefe7bd305","cd619820771edb23926bb084906215ab9c491255fa707488d15748b38909b747","26de024c2ce80ff168f7194c32f845cadd9f7aced3949360d6084e6e342c343c","ed35cdde5c9a70e9252fbd21ced68037e629e4da3127eb126a5708245e8d8364","fca97f765dd627960cf684925f23925b4545b0b6af3497fcda42d3bd08a59942","df523941bde95bfd71391d3ed998c090242390d0e3e84de5d9a4cc0621b0bef0","e9de97322c064a7a0eddec5e49417049ff39f4097bdb9970d60469a88dc73c44","3271bc1d67f50e530f1c0bb3c3d745448536087a33d225dd8ff863668ee86954","4baa255974c1ce42bb55535d493cf2d80e9e2c41773a4391466340e8f9944bb6","159bd0fa1a78d6a8ea1813ce437c72f3fbf67264187ec830b0f292fe1dea3288","59a50afa27798d65c7a71e987ee0d9ce9e114bb06bac138a73f3c49c12b63487","f09a6024954b2a4f30409a6b816a54727a65f6187048cdd33c339570ee905939","2bd900a49184706dbce410f42b47409fe5a16696a1a414154ab7757715163795","0687837b7303cc18abaf3dad4a0c74605a30e162e799bcd76d1db2db579fd835","a27830571004b47d0dbdb8a23ef6c634716735bde15c49c5c687a5d2ea1a988c","56170e6aa335d7d939d2f0d3f5664aa451f27fdeaf04e6daca73ddcd2191a9a5","c1214108f55b3eebe95c4ce7ae0f7fecd535d0b24a9ef7368a4d3a6354ca641c","42f89918592edc388f99a2a18aaf92b9e9be279485329b44919a706e32897515","da55c3d5dab124240de9fa913a6556da00063c14a6cb3b1899e3d5b09d672c6d","28b22326000119f53de35f67ce3096ef475a2224274162b1283ef8718e1efdb5","18aecf77d74ed15ae1e875a0d43f2aa85387794fc447b2bc3c8ab7e2224d0ac6","fcd80368105181b1be66006da7c16a58ed993845e7b37d33302387f18e889001","d2ff55204dd4868d11a163c207d4fbe8d99cbf8cb36fa90d2a2f0bfc802b4d38","30e6439447775a3d80116a6e5322b55c439c2e6cd0cdaeb1101c9254d560dbb6","a3ba4527c2c90d219850a9d495b6a1495c8ecd3a1a3ba6d196bd9b858cb2ccb8","a543a3dc6a07db81e43c3a883194c2e0ef68318fcdf850c0daf6895d5d9d580d","c7bdc99177a2a94d25fb13722adaaf5b3291bf70b4d1b27584ba189dd3889ba3",{"version":"d1c92b66c4105659fcad4eb76a1481f7311033e117d0678a1ec545e8ddb8d4c6","affectsGlobalScope":true},"e23424b97418eca3226fd24de079f1203eb70360622e4e093af2aff14d4be6ec","dee93c07b4df5e26010dc9ec4cdf4d6e4076bb4474d2a8371529217c8b2740a4","d55bc773f71c50f55decb39b64a5d8b9889a7c9e94305b36656ebf30e4f47469","04eaa93bd75f937f9184dcb95a7983800c5770cf8ddd8ac0f3734dc02f5b20ef",{"version":"c8155caf28fc7b0a564156a5df28ad8a844a3bd32d331d148d8f3ce88025c870","affectsGlobalScope":true},"45ac321f2e15d268fd74a90ddaa6467dcaaff2c5b13f95b4b85831520fb7a491","dfc747ab8dd5f623055a4c26fd35e8cceca869fd3f1cf09701c941ca3679665a","c9f5f2920ff61d7158417b8440d5181ddc34a3dfef811a5677dd8a9fb91471e9","5cc0a492da3602510b8f5ed1852b1e0390002780d8758fbc8c0cd023ca7085f8","ec7dafafe751a5121f8f1c80201ebe7e7238c47e6329280a73c4d1ca4bb7fa28","64debeb10e4b7ae4ec9e89bfb4e04c6101ab98c3cc806d14e5488607cfec2753",{"version":"2866a528b2708aa272ec3eaafd3c980abb23aec1ef831cfc5eb2186b98c37ce5","affectsGlobalScope":true},{"version":"a5782d6cea81fe43d2db7ed41e789458c933ab3ab60602f7b5b14c4da3370496","affectsGlobalScope":true},"b86b7ff709a82ef3cba2184136c025989958bad483ffb13e4ca35d720245adf4","6194335ee3353f7226ba31f31d6301d0c6be87228419c0a08976ccd9d4f1213e","5a173b7da4e6d073f9c18a02f387816a934614e7af306193995935fbb95f10b8","b447e123210c68f205f67b20c996c04a1eb64b0e591c5e06e164cd3d3a869b28","13257840c0850d4ebd7c2b17604a9e006f752de76c2400ebc752bc465c330452","42176966283d3835c34278b9b5c0f470d484c0c0c6a55c20a2c916a1ce69b6e8","0cff7901aedfe78e314f7d44088f07e2afa1b6e4f0473a4169b8456ca2fb245d","c55776aa1db2b963a5fb820c0650362e721cba51ebf83b069696f2501378c0f3","e2236264a811ed1d09a2487a433e8f5216ae62378cf233954ae220cf886f6717","3ec1e108d587a5661ec790db607f482605ba9f3830e118ce578e3ffa3c42e22b","100b3bb9d39d2b1b5340f1bf45a52e94ef1692b45232b4ba00fac5c3cc56d331",{"version":"ec1a29ddaecb683aa360df0bd98ab5d4171d2d549554f7c5ab2a5c183a3dcb67","affectsGlobalScope":true},"7f77304372efe3c9967e5f9ea2061f1b4bf41dc3cda3c83cdd676f2e5af6b7e6","992c6f6be16c0a1d2eec13ece33adeea2c747ba27fcd078353a8f4bb5b4fea58","2597718d91e306949d89e285bf34c44192014ef541c3bd7cbb825c022749e974","a6b0abdb67d63ebe964ba5fee31bc3daf10c12eecd46b24d778426010c04c67e","ac4801ebc2355ba32329070123b1cd15891bf71b41dcaf9e75b4744832126a59","fd2298fba0640e7295e7bd545e2dfbfcccbb00c27019e501c87965a02bbdebf6","4fd3c4debadce3e9ab9dec3eb45f7f5e2e3d4ad65cf975a6d938d883cfb25a50","71ddd49185b68f27bfac127ef5d22cb2672c278e53e5370d9020ef50ca9c377d","b1ea7a6eaa7608e0e0529aebd323b526a79c6c05a4e519ae5c779675004dcdf1","9fcb033a6208485d8f3fadde31eb5cbcaf99149cff3e40c0dc53ebc6d0dff4e9","7df562288f949945cf69c21cd912100c2afedeeb7cdb219085f7f4b46cb7dde4","9d16690485ff1eb4f6fc57aebe237728fd8e03130c460919da3a35f4d9bd97f5","dcc6910d95a3625fd2b0487fda055988e46ab46c357a1b3618c27b4a8dd739c9","f4149f1aa299474c7040a35fe8f8ac2ad078cc1b190415adc1fff3ed52d490ea","3730099ed008776216268a97771de31753ef71e0a7d0ec650f588cba2a06ce44","8d649dbc429d7139a1d9a14ea2bf8af1dc089e0a879447539587463d4b6c248c","60c9e27816ec8ac8df7240598bb086e95b47edfb454c5cbf4003c812e0ed6e39","e361aecf17fc4034b4c122a1564471cdcd22ef3a51407803cb5a5fc020c04d02","4926467de88a92a4fc9971d8c6f21b91eca1c0e7fc2a46cc4638ab9440c73875",{"version":"2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1","affectsGlobalScope":true},"fc0ae4a8ad3c762b96f9d2c3700cb879a373458cb0bf3175478e3b4f85f7ef2f","fabbec378e1ddd86fcf2662e716c2b8318acedb664ee3a4cba6f9e8ee8269cf1","b3593bd345ebea5e4d0a894c03251a3774b34df3d6db57075c18e089a599ba76","e61a21e9418f279bc480394a94d1581b2dee73747adcbdef999b6737e34d721b","efd55e8ca79171bf26c0d0e30221cb8ee1f5a31dd0c791ec4b2e886f42bab124","e222104af6cb9415238ad358488b74d76eceeff238c1268ec6e85655b05341da","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","eba230221317c985ab1953ccc3edc517f248b37db4fef7875cb2c8d08aff7be7","b83e796810e475da3564c6515bc0ae9577070596a33d89299b7d99f94ecfd921","b4439890c168d646357928431100daac5cbdee1d345a34e6bf6eca9f3abe22bc","5d72971a459517c44c1379dab9ed248e87a61ba0a1e0f25c9d67e1e640cd9a09","02d734976af36f4273d930bea88b3e62adf6b078cf120c1c63d49aa8d8427c5c",{"version":"f624e578325b8c58e55b30c998b1f4c3ec1b61a9fa66373da4250c89b7880d44","affectsGlobalScope":true},{"version":"d3002f620eab4bf6476c9da5c0efb2041d46f7df8b3032a5631bd206abef2c75","affectsGlobalScope":true}],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"module":99,"noImplicitAny":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","sourceMap":true,"target":1},"fileIdsList":[[114,116],[110,111],[110,111,112,113],[115],[117],[107],[106,107],[61,66],[72,73,80,89],[62,72,80],[98],[66,73,81],[89,94],[69,72,80],[70],[69],[72],[72,74,89,97],[72,73,89],[80,89,97],[72,73,75,80,89,94,97],[75,94,97],[108],[97],[69,72,89],[82],[60],[96],[87,98,101],[72,90],[89],[92],[66,80],[58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105],[80],[86],[99],[61,66,72,74,83,89,97,101],[42,43,44,45,46,47,48],[42,43,44],[42,44],[42,43],[43],[33,35],[33],[33,38],[34,36,37,39,40,41,50,55],[33,40,49],[33,54,57],[51,52,53],[29],[29,30,31,32]],"referencedMap":[[117,1],[112,2],[114,3],[113,2],[116,4],[118,5],[58,6],[108,7],[61,8],[62,9],[63,10],[64,11],[65,12],[66,13],[67,14],[69,15],[70,16],[71,17],[72,17],[73,18],[74,19],[75,20],[76,21],[77,22],[109,23],[78,17],[79,24],[80,25],[82,26],[83,27],[84,28],[87,17],[88,29],[89,30],[90,31],[92,17],[93,32],[94,33],[106,34],[96,35],[97,36],[98,37],[100,31],[102,38],[103,31],[49,39],[45,40],[43,41],[44,42],[48,40],[46,43],[47,43],[36,44],[35,45],[37,45],[39,46],[38,45],[40,45],[56,47],[57,26],[50,48],[55,49],[34,45],[51,45],[54,50],[53,45],[30,51],[33,52],[32,51]],"exportedModulesMap":[[117,1],[112,2],[114,3],[113,2],[116,4],[118,5],[58,6],[108,7],[61,8],[62,9],[63,10],[64,11],[65,12],[66,13],[67,14],[69,15],[70,16],[71,17],[72,17],[73,18],[74,19],[75,20],[76,21],[77,22],[109,23],[78,17],[79,24],[80,25],[82,26],[83,27],[84,28],[87,17],[88,29],[89,30],[90,31],[92,17],[93,32],[94,33],[106,34],[96,35],[97,36],[98,37],[100,31],[102,38],[103,31],[49,39],[45,40],[43,41],[44,42],[48,40],[46,43],[47,43],[36,44],[35,45],[37,45],[39,46],[38,45],[40,45],[56,47],[57,26],[50,48],[55,49],[34,45],[51,45],[54,50],[53,45],[30,51],[33,52],[32,51]],"semanticDiagnosticsPerFile":[117,110,112,114,113,111,116,115,118,107,58,60,108,61,62,63,64,65,66,67,68,69,70,71,72,73,74,59,104,75,76,77,109,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,106,96,97,98,99,100,101,105,102,103,49,45,43,44,48,42,46,47,6,8,7,2,9,10,11,12,13,14,15,16,3,4,20,17,18,19,21,22,23,5,24,25,26,27,1,28,36,35,37,39,38,40,56,57,50,55,41,34,51,54,52,53,31,30,33,29,32]},"version":"4.3.5"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teleporthq/teleport-project-generator-html",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.12",
|
|
4
4
|
"description": "Project generator for generate plain html files",
|
|
5
5
|
"author": "teleportHQ",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
"build": "tsc -p tsconfig.json && tsc -p tsconfig.json --module commonjs --outDir dist/cjs"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@teleporthq/teleport-component-generator": "^0.19.
|
|
28
|
-
"@teleporthq/teleport-component-generator-html": "^0.19.
|
|
29
|
-
"@teleporthq/teleport-plugin-css": "^0.19.
|
|
30
|
-
"@teleporthq/teleport-postprocessor-prettier-html": "^0.19.
|
|
31
|
-
"@teleporthq/teleport-project-generator": "^0.19.
|
|
27
|
+
"@teleporthq/teleport-component-generator": "^0.19.8",
|
|
28
|
+
"@teleporthq/teleport-component-generator-html": "^0.19.8",
|
|
29
|
+
"@teleporthq/teleport-plugin-css": "^0.19.8",
|
|
30
|
+
"@teleporthq/teleport-postprocessor-prettier-html": "^0.19.8",
|
|
31
|
+
"@teleporthq/teleport-project-generator": "^0.19.8",
|
|
32
32
|
"node-html-parser": "^5.0.0",
|
|
33
33
|
"path-browserify": "^1.0.1"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "f9439c0b6cce651e1dd2dc4b989c91d3b6d630a7"
|
|
36
36
|
}
|
package/src/index.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { createStyleSheetPlugin } from '@teleporthq/teleport-plugin-css'
|
|
|
5
5
|
import prettierHTML from '@teleporthq/teleport-postprocessor-prettier-html'
|
|
6
6
|
import HTMLTemplate from './project-template'
|
|
7
7
|
import { pluginCloneGlobals } from './plugin-clone-globals'
|
|
8
|
-
import {
|
|
8
|
+
import { pluginImageResolver } from './plugin-image-resolution'
|
|
9
9
|
|
|
10
10
|
const createHTMLProjectGenerator = (config?: { individualEntyFile: boolean }) => {
|
|
11
11
|
const { individualEntyFile } = config || { individualEntyFile: true }
|
|
@@ -14,11 +14,11 @@ const createHTMLProjectGenerator = (config?: { individualEntyFile: boolean }) =>
|
|
|
14
14
|
id: 'teleport-project-html',
|
|
15
15
|
components: {
|
|
16
16
|
generator: createHTMLComponentGenerator,
|
|
17
|
-
path: ['
|
|
17
|
+
path: ['components'],
|
|
18
18
|
},
|
|
19
19
|
pages: {
|
|
20
20
|
generator: createHTMLComponentGenerator,
|
|
21
|
-
path: ['
|
|
21
|
+
path: [''],
|
|
22
22
|
},
|
|
23
23
|
static: {
|
|
24
24
|
prefix: '',
|
|
@@ -28,7 +28,7 @@ const createHTMLProjectGenerator = (config?: { individualEntyFile: boolean }) =>
|
|
|
28
28
|
generator: createComponentGenerator,
|
|
29
29
|
plugins: [createStyleSheetPlugin()],
|
|
30
30
|
fileName: 'style',
|
|
31
|
-
path: ['
|
|
31
|
+
path: [''],
|
|
32
32
|
importFile: true,
|
|
33
33
|
},
|
|
34
34
|
entry: {
|
|
@@ -38,7 +38,7 @@ const createHTMLProjectGenerator = (config?: { individualEntyFile: boolean }) =>
|
|
|
38
38
|
},
|
|
39
39
|
})
|
|
40
40
|
|
|
41
|
-
generator.addPlugin(
|
|
41
|
+
generator.addPlugin(pluginImageResolver)
|
|
42
42
|
if (individualEntyFile) {
|
|
43
43
|
generator.addPlugin(pluginCloneGlobals)
|
|
44
44
|
}
|
|
@@ -19,23 +19,47 @@ class ProjectPluginCloneGlobals implements ProjectPlugin {
|
|
|
19
19
|
return structure
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
const
|
|
23
|
-
const body =
|
|
22
|
+
const parsedEntryFile = parse(entryFile.files[0].content)
|
|
23
|
+
const body = parsedEntryFile.querySelector('body')
|
|
24
|
+
const head = parsedEntryFile.querySelector('head')
|
|
25
|
+
/* script tags are injected using customCode field of UIDL */
|
|
26
|
+
const scriptTags = body.querySelectorAll('script')
|
|
27
|
+
|
|
24
28
|
body.childNodes = []
|
|
25
29
|
|
|
26
30
|
if (Object.values(uidl.root?.styleSetDefinitions || {}).length > 0) {
|
|
27
|
-
|
|
28
|
-
|
|
31
|
+
head.appendChild(
|
|
32
|
+
new HTMLElement('link', {}, 'rel="stylesheet" href="./style.css"', parsedEntryFile)
|
|
33
|
+
)
|
|
29
34
|
}
|
|
30
35
|
|
|
31
36
|
files.forEach((fileId, key) => {
|
|
32
37
|
const { path } = fileId
|
|
33
|
-
if (path
|
|
38
|
+
if (path[0] === '') {
|
|
34
39
|
const newFiles: GeneratedFile[] = fileId.files.map((file) => {
|
|
35
40
|
if (file.fileType === FileType.HTML) {
|
|
36
|
-
|
|
41
|
+
const parsedIndividualFile = parse(file.content)
|
|
42
|
+
const metaTags = parsedIndividualFile.getElementsByTagName('meta')
|
|
43
|
+
const titleTags = parsedIndividualFile.getElementsByTagName('title')
|
|
44
|
+
|
|
45
|
+
metaTags.forEach((metaTag) => {
|
|
46
|
+
head.childNodes.unshift(metaTag)
|
|
47
|
+
metaTag.remove()
|
|
48
|
+
})
|
|
49
|
+
titleTags.forEach((titleTag) => {
|
|
50
|
+
const inheritedHeadTags = head.getElementsByTagName('title')
|
|
51
|
+
if (inheritedHeadTags.length > 0) {
|
|
52
|
+
head.removeChild(head.getElementsByTagName('title')[0])
|
|
53
|
+
}
|
|
54
|
+
head.childNodes.unshift(titleTag)
|
|
55
|
+
titleTag.remove()
|
|
56
|
+
})
|
|
57
|
+
|
|
58
|
+
body.innerHTML = parsedIndividualFile.toString()
|
|
59
|
+
body.childNodes.push(...scriptTags)
|
|
60
|
+
|
|
37
61
|
const prettyFile = prettierHTML({
|
|
38
|
-
[FileType.HTML]:
|
|
62
|
+
[FileType.HTML]: parsedEntryFile.toString(),
|
|
39
63
|
})
|
|
40
64
|
|
|
41
65
|
return { name: file.name, content: prettyFile[FileType.HTML], fileType: FileType.HTML }
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from '@teleporthq/teleport-types'
|
|
11
11
|
const { parse, join, relative, isAbsolute } = PathResolver
|
|
12
12
|
|
|
13
|
-
class
|
|
13
|
+
class ProjectPluginImageResolver implements ProjectPlugin {
|
|
14
14
|
private relativePath: string
|
|
15
15
|
|
|
16
16
|
async runBefore(structure: ProjectPluginStructure) {
|
|
@@ -117,4 +117,4 @@ class ProjectPluginImageResolution implements ProjectPlugin {
|
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
export const
|
|
120
|
+
export const pluginImageResolver = new ProjectPluginImageResolver()
|