@teleporthq/teleport-plugin-css-modules 0.39.0-alpha.0 → 0.39.0

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.
@@ -2,6 +2,7 @@ import { createCSSModulesPlugin } from '../src'
2
2
  import { staticNode, elementNode, component } from '@teleporthq/teleport-uidl-builders'
3
3
  import { ComponentStructure } from '@teleporthq/teleport-types'
4
4
  import { createComponentChunk } from './mocks'
5
+ import { JSXElement } from '@babel/types'
5
6
 
6
7
  describe('Component Scoped Styles', () => {
7
8
  const uidl = component('MYComponent', elementNode('container', {}, [], null, {}), {}, {})
@@ -85,11 +86,11 @@ describe('Component Scoped Styles', () => {
85
86
 
86
87
  const { chunks } = await plugin(structure)
87
88
  const jsxComponent = chunks.find((chunk) => chunk.name === 'jsx-component')
88
- const jsxExpressions =
89
- jsxComponent.meta.nodesLookup.container.openingElement.attributes[0].value.expression
89
+ const jsxExpressions = (jsxComponent?.meta?.nodesLookup?.container as unknown as JSXElement)
90
+ .openingElement.attributes[0]?.value.expression
90
91
 
91
92
  expect(jsxExpressions.quasis.length).toBe(4)
92
- expect(jsxExpressions.expressions[0]?.property.name).toBe("'md-8'")
93
+ expect(jsxExpressions.expressions[0]?.value).toBe('md-8')
93
94
  expect(jsxExpressions.expressions[1].property.name).toBe("'primary-navbar'")
94
95
  expect(jsxExpressions.expressions[2].property.object.name).toBe('props.')
95
96
  expect(jsxExpressions.expressions[2].property.property.name).toBe('variant')
@@ -87,7 +87,7 @@ describe('plugin-css-modules', () => {
87
87
  expect(chunks[1].type).toBe('string')
88
88
  expect(chunks[1].fileType).toBe(FileType.CSS)
89
89
  expect(chunks[1].content).toContain('height: 100px;')
90
- expect(structure.uidl.outputOptions.styleFileName).toContain('.module')
90
+ expect(structure.uidl.outputOptions?.styleFileName).toContain('.module')
91
91
  expect(dependencies.styles.path).toContain('.module.css')
92
92
  })
93
93
 
@@ -227,12 +227,12 @@ describe('plugin-css-modules', () => {
227
227
  const jsxChunk = result.chunks.find((chunk) => chunk.fileType === 'js')
228
228
  const cssFile = result.chunks.find((file) => file.fileType === 'css')
229
229
 
230
- const nodeReference = jsxChunk.meta.nodesLookup.container
231
- const styleAttr = nodeReference.openingElement.attributes[0]
230
+ const nodeReference = jsxChunk?.meta?.nodesLookup?.container
231
+ const styleAttr = nodeReference?.openingElement?.attributes?.[0]
232
232
 
233
233
  expect(cssFile).toBeDefined()
234
234
  expect(jsxChunk).toBeDefined()
235
- expect(nodeReference.openingElement.attributes.length).toBe(1)
235
+ expect(nodeReference?.openingElement?.attributes?.length).toBe(1)
236
236
  expect(styleAttr.value.expression.quasis.length).toBe(3)
237
237
  expect(styleAttr.value.expression.expressions.length).toBe(2)
238
238
  })
@@ -13,12 +13,17 @@ export const createComponentChunk = (elementKey: string = 'container') => {
13
13
  meta: {
14
14
  nodesLookup: {
15
15
  [elementKey]: {
16
+ type: 'JSXElement',
16
17
  openingElement: {
18
+ type: 'JSXOpeningElement',
17
19
  name: {
20
+ type: 'JSXIdentifier',
18
21
  name: '',
19
22
  },
23
+ selfClosing: false,
20
24
  attributes: [],
21
25
  },
26
+ children: [],
22
27
  },
23
28
  },
24
29
  dynamicRefPrefix: {
@@ -36,12 +41,12 @@ export const createComponentChunk = (elementKey: string = 'container') => {
36
41
 
37
42
  export const setupPluginStructure = (
38
43
  elementKey: string = 'container',
39
- styleDefinition: UIDLStyleDefinitions = null
44
+ styleDefinition?: UIDLStyleDefinitions
40
45
  ) => {
41
46
  const style = styleDefinition || {
42
47
  height: staticNode('100px'),
43
48
  }
44
- const element = elementNode('container', {}, [], null, style)
49
+ const element = elementNode('container', {}, [], undefined, style)
45
50
  element.content.key = elementKey
46
51
  const uidlSample = component('CSSModules', element)
47
52
 
@@ -99,7 +99,8 @@ describe('plugin-css-modules-style-sheet', () => {
99
99
 
100
100
  const result = await plugin(structure)
101
101
 
102
- expect(result).toBe(undefined)
102
+ expect(result.chunks.length).toBe(1)
103
+ expect(structure.chunks[0]).toEqual(result.chunks[0])
103
104
  })
104
105
 
105
106
  it('Generates styles from UIDLStyleSetDefinitions', () => {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAoBA,OAAO,EACL,sBAAsB,EACtB,eAAe,EAOhB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAA;AAGtD,UAAU,gBAAgB;IACxB,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B;AAWD,eAAO,MAAM,sBAAsB,EAAE,sBAAsB,CAAC,gBAAgB,CA2S3E,CAAA;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAA;;AAEjC,wBAAuC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAoBA,OAAO,EACL,sBAAsB,EACtB,eAAe,EAShB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAA;AAItD,UAAU,gBAAgB;IACxB,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B;AAWD,eAAO,MAAM,sBAAsB,EAAE,sBAAsB,CAAC,gBAAgB,CAuT3E,CAAA;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAA;;AAEjC,wBAAuC"}
package/dist/cjs/index.js CHANGED
@@ -94,6 +94,7 @@ var teleport_types_1 = require("@teleporthq/teleport-types");
94
94
  var style_sheet_1 = require("./style-sheet");
95
95
  Object.defineProperty(exports, "createStyleSheetPlugin", { enumerable: true, get: function () { return style_sheet_1.createStyleSheetPlugin; } });
96
96
  var utils_1 = require("./utils");
97
+ var ast_utils_1 = require("@teleporthq/teleport-plugin-common/dist/cjs/utils/ast-utils");
97
98
  var defaultConfigProps = {
98
99
  componentChunkName: 'jsx-component',
99
100
  styleChunkName: 'css-modules',
@@ -106,8 +107,8 @@ var createCSSModulesPlugin = function (config) {
106
107
  if (config === void 0) { config = {}; }
107
108
  var _a = __assign(__assign({}, defaultConfigProps), config), componentChunkName = _a.componentChunkName, styleObjectImportName = _a.styleObjectImportName, styleChunkName = _a.styleChunkName, moduleExtension = _a.moduleExtension, classAttributeName = _a.classAttributeName, globalStyleSheetPrefix = _a.globalStyleSheetPrefix;
108
109
  var cssModulesPlugin = function (structure) { return __awaiter(void 0, void 0, void 0, function () {
109
- var uidl, chunks, dependencies, options, node, _a, componentStyleSheet, _b, propDefinitions, _c, projectStyleSet, _d, _e, _f, tokens, isRootComponent, _g, _h, globalStyleSheet, projectStyleSheetName, projectStyleSheetPath, _j, importFile, fileName, componentChunk, cssClasses, isProjectStyleReferred, mediaStylesMap, astNodesLookup, propsPrefix, cssFileName, fileName;
110
- return __generator(this, function (_k) {
110
+ var uidl, chunks, dependencies, options, node, _a, componentStyleSheet, _b, propDefinitions, _c, projectStyleSet, _d, _e, _f, tokens, isRootComponent, _g, _h, globalStyleSheet, projectStyleSheetName, projectStyleSheetPath, _j, importFile, fileName, componentChunk, cssClasses, isProjectStyleReferred, mediaStylesMap, astNodesLookup, propsPrefix, generateStylesForElementNode, _i, _k, prop, cssFileName, fileName;
111
+ return __generator(this, function (_l) {
111
112
  uidl = structure.uidl, chunks = structure.chunks, dependencies = structure.dependencies, options = structure.options;
112
113
  node = uidl.node, _a = uidl.styleSetDefinitions, componentStyleSheet = _a === void 0 ? {} : _a, _b = uidl.propDefinitions, propDefinitions = _b === void 0 ? {} : _b;
113
114
  _c = options || {}, projectStyleSet = _c.projectStyleSet, _d = _c.designLanguage, _e = _d === void 0 ? {} : _d, _f = _e.tokens, tokens = _f === void 0 ? {} : _f, isRootComponent = _c.isRootComponent;
@@ -134,24 +135,28 @@ var createCSSModulesPlugin = function (config) {
134
135
  mediaStylesMap = {};
135
136
  astNodesLookup = componentChunk.meta.nodesLookup || {};
136
137
  propsPrefix = componentChunk.meta.dynamicRefPrefix.prop;
137
- teleport_shared_1.UIDLUtils.traverseElements(node, function (element) {
138
- var style = element.style, key = element.key, referencedStyles = element.referencedStyles, dependency = element.dependency, _a = element.attrs, attrs = _a === void 0 ? {} : _a;
138
+ generateStylesForElementNode = function (element) {
139
+ var style = element.style, key = element.key, referencedStyles = element.referencedStyles, dependency = element.dependency, _a = element.attrs, attrs = _a === void 0 ? {} : _a, elementType = element.elementType;
139
140
  var jsxTag = astNodesLookup[key];
140
141
  var classNamesToAppend = new Set();
142
+ if (!jsxTag || !(0, ast_utils_1.isJSXElement)(jsxTag)) {
143
+ return;
144
+ }
141
145
  if ((dependency === null || dependency === void 0 ? void 0 : dependency.type) === 'local') {
142
146
  teleport_plugin_common_1.StyleBuilders.setPropValueForCompStyle({
143
147
  attrs: attrs,
144
- key: key,
145
- jsxNodesLookup: astNodesLookup,
146
- getClassName: function (styleName) { return teleport_shared_1.StringUtils.camelCaseToDashCase(styleName); },
148
+ root: jsxTag,
149
+ getClassName: function (styleName) {
150
+ return teleport_shared_1.StringUtils.camelCaseToDashCase(elementType + styleName);
151
+ },
147
152
  });
148
153
  }
149
- if (!jsxTag) {
150
- return;
151
- }
152
154
  if (!style && !referencedStyles) {
153
155
  return;
154
156
  }
157
+ if (!key) {
158
+ throw new teleport_types_1.PluginCssModules('Element node does not have a key \n' + JSON.stringify(element, null, 2));
159
+ }
155
160
  var className = teleport_shared_1.StringUtils.camelCaseToDashCase(key);
156
161
  var classReferenceIdentifier = types.memberExpression(types.identifier(styleObjectImportName), types.identifier("'".concat(className, "'")), true);
157
162
  /* Generating styles from UIDLElementNode to component style sheet */
@@ -199,7 +204,7 @@ var createCSSModulesPlugin = function (config) {
199
204
  case 'component-referenced': {
200
205
  var classContent = styleRef.content.content;
201
206
  if (classContent.type === 'static') {
202
- classNamesToAppend.add(types.memberExpression(types.identifier(styleObjectImportName), types.identifier("'".concat(getClassName(String(classContent.content)), "'")), true));
207
+ classNamesToAppend.add(types.stringLiteral(String(classContent.content)));
203
208
  return;
204
209
  }
205
210
  if (classContent.type === 'dynamic' &&
@@ -226,7 +231,7 @@ var createCSSModulesPlugin = function (config) {
226
231
  isProjectStyleReferred = true;
227
232
  var referedStyle = globalStyleSheet[content.referenceId];
228
233
  if (!referedStyle) {
229
- throw new teleport_types_1.PluginCssModules("Style used from global stylesheet is missing - ".concat(content.referenceId));
234
+ throw new teleport_types_1.PluginCssModules("Style used from global stylesheet is missing plugin css module - ".concat(content.referenceId));
230
235
  }
231
236
  classNamesToAppend.add(types.memberExpression(types.identifier(globalStyleSheetPrefix), types.identifier("'".concat(getClassName(content.referenceId), "'")), true));
232
237
  return;
@@ -238,10 +243,17 @@ var createCSSModulesPlugin = function (config) {
238
243
  });
239
244
  }
240
245
  teleport_plugin_common_1.ASTUtils.addMultipleDynamicAttributesToJSXTag(jsxTag, classAttributeName, Array.from(classNamesToAppend));
241
- });
246
+ };
247
+ teleport_shared_1.UIDLUtils.traverseElements(node, generateStylesForElementNode);
248
+ for (_i = 0, _k = Object.values(propDefinitions); _i < _k.length; _i++) {
249
+ prop = _k[_i];
250
+ if (prop.type === 'element' && prop.defaultValue) {
251
+ teleport_shared_1.UIDLUtils.traverseElements(prop.defaultValue, generateStylesForElementNode);
252
+ }
253
+ }
242
254
  /* Generating component scoped styles */
243
255
  if (Object.keys(componentStyleSheet).length > 0) {
244
- teleport_plugin_common_1.StyleBuilders.generateStylesFromStyleSetDefinitions(componentStyleSheet, cssClasses, mediaStylesMap, function (styleId) { return teleport_shared_1.StringUtils.camelCaseToDashCase(styleId); });
256
+ teleport_plugin_common_1.StyleBuilders.generateStylesFromStyleSetDefinitions(componentStyleSheet, cssClasses, mediaStylesMap, function (styleName) { return teleport_shared_1.StringUtils.camelCaseToDashCase(uidl.name + styleName); });
245
257
  }
246
258
  if (Object.keys(mediaStylesMap).length > 0) {
247
259
  cssClasses.push.apply(cssClasses, teleport_plugin_common_1.StyleBuilders.generateMediaStyle(mediaStylesMap));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;EAeE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF,+DAAoE;AACpE,6EAA4E;AAC5E,kDAAqC;AACrC,6DASmC;AACnC,6CAAsD;AAiU7C,uGAjUA,oCAAsB,OAiUA;AAhU/B,iCAAwD;AAUxD,IAAM,kBAAkB,GAAG;IACzB,kBAAkB,EAAE,eAAe;IACnC,cAAc,EAAE,aAAa;IAC7B,qBAAqB,EAAE,QAAQ;IAC/B,eAAe,EAAE,KAAK;IACtB,kBAAkB,EAAE,WAAW;IAC/B,sBAAsB,EAAE,eAAe;CACxC,CAAA;AAEM,IAAM,sBAAsB,GAA6C,UAAC,MAAW;IAAX,uBAAA,EAAA,WAAW;IACpF,IAAA,2BAQD,kBAAkB,GAClB,MAAM,CACV,EATC,kBAAkB,wBAAA,EAClB,qBAAqB,2BAAA,EACrB,cAAc,oBAAA,EACd,eAAe,qBAAA,EACf,kBAAkB,wBAAA,EAClB,sBAAsB,4BAIvB,CAAA;IAED,IAAM,gBAAgB,GAAoB,UAAO,SAAS;;;YAChD,IAAI,GAAoC,SAAS,KAA7C,EAAE,MAAM,GAA4B,SAAS,OAArC,EAAE,YAAY,GAAc,SAAS,aAAvB,EAAE,OAAO,GAAK,SAAS,QAAd,CAAc;YACjD,IAAI,GAA0E,IAAI,KAA9E,EAAE,KAAwE,IAAI,oBAA/B,EAAxB,mBAAmB,mBAAG,EAAE,KA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AAA,sBAAsB,0BAuTlC;AAID,kBAAe,IAAA,8BAAsB,GAAE,CAAA;AAEvC,IAAM,YAAY,GAAG,UAAC,GAAW;IAC/B,OAAA,6BAAW,CAAC,uBAAuB,CAAC,6BAAW,CAAC,mBAAmB,CAAC,GAAG,CAAC,CAAC;AAAzE,CAAyE,CAAA"}
@@ -2,6 +2,7 @@ import { ComponentPluginFactory } from '@teleporthq/teleport-types';
2
2
  interface StyleSheetPlugin {
3
3
  fileName?: string;
4
4
  moduleExtension?: boolean;
5
+ relativeFontPath?: boolean;
5
6
  }
6
7
  export declare const createStyleSheetPlugin: ComponentPluginFactory<StyleSheetPlugin>;
7
8
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"style-sheet.d.ts","sourceRoot":"","sources":["../../src/style-sheet.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,sBAAsB,EAGvB,MAAM,4BAA4B,CAAA;AAEnC,UAAU,gBAAgB;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B;AAOD,eAAO,MAAM,sBAAsB,EAAE,sBAAsB,CAAC,gBAAgB,CA+D3E,CAAA"}
1
+ {"version":3,"file":"style-sheet.d.ts","sourceRoot":"","sources":["../../src/style-sheet.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,sBAAsB,EAGvB,MAAM,4BAA4B,CAAA;AAInC,UAAU,gBAAgB;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B;AAQD,eAAO,MAAM,sBAAsB,EAAE,sBAAsB,CAAC,gBAAgB,CAoG3E,CAAA"}
@@ -51,23 +51,43 @@ exports.createStyleSheetPlugin = void 0;
51
51
  var teleport_plugin_common_1 = require("@teleporthq/teleport-plugin-common");
52
52
  var teleport_types_1 = require("@teleporthq/teleport-types");
53
53
  var teleport_shared_1 = require("@teleporthq/teleport-shared");
54
+ var path_1 = require("path");
54
55
  var defaultConfig = {
55
56
  fileName: 'style',
56
57
  moduleExtension: false,
58
+ relativeFontPath: false,
57
59
  };
58
60
  var createStyleSheetPlugin = function (config) {
59
- var _a = __assign(__assign({}, defaultConfig), config), fileName = _a.fileName, moduleExtension = _a.moduleExtension;
61
+ var _a = __assign(__assign({}, defaultConfig), config), fileName = _a.fileName, moduleExtension = _a.moduleExtension, relativeFontPath = _a.relativeFontPath;
60
62
  var styleSheetPlugin = function (structure) { return __awaiter(void 0, void 0, void 0, function () {
61
- var uidl, chunks, _a, styleSetDefinitions, _b, _c, _d, tokens, cssMap, mediaStylesMap;
62
- return __generator(this, function (_e) {
63
- uidl = structure.uidl, chunks = structure.chunks;
63
+ var uidl, chunks, assets, _a, styleSetDefinitions, _b, _c, _d, tokens, _e, _f, localFonts, fontsFolder, assetIdentifier, canSkipThePlugin, cssMap, mediaStylesMap;
64
+ return __generator(this, function (_g) {
65
+ uidl = structure.uidl, chunks = structure.chunks, assets = structure.options.assets;
64
66
  _a = uidl.styleSetDefinitions, styleSetDefinitions = _a === void 0 ? {} : _a, _b = uidl.designLanguage, _c = _b === void 0 ? {} : _b, _d = _c.tokens, tokens = _d === void 0 ? {} : _d;
65
- if ((!styleSetDefinitions && !tokens) ||
66
- (Object.keys(styleSetDefinitions).length === 0 && Object.keys(tokens).length === 0)) {
67
- return [2 /*return*/];
67
+ _e = assets || { localFonts: [] }, _f = _e.localFonts, localFonts = _f === void 0 ? [] : _f, fontsFolder = _e.fontsFolder, assetIdentifier = _e.identifier;
68
+ canSkipThePlugin = (localFonts === null || localFonts === void 0 ? void 0 : localFonts.length) === 0 &&
69
+ Object.keys(styleSetDefinitions).length === 0 &&
70
+ Object.keys(tokens).length === 0;
71
+ if (canSkipThePlugin) {
72
+ return [2 /*return*/, structure];
68
73
  }
74
+ uidl.outputOptions = uidl.outputOptions || {};
75
+ uidl.outputOptions.styleFileName = moduleExtension ? "".concat(fileName, ".module") : fileName;
69
76
  cssMap = [];
70
77
  mediaStylesMap = {};
78
+ if (localFonts.length > 0) {
79
+ localFonts.forEach(function (font) {
80
+ var _a;
81
+ var properties = teleport_plugin_common_1.StyleUtils.getContentOfStyleObject(font.properties);
82
+ var format = (properties === null || properties === void 0 ? void 0 : properties.format) ? "format('".concat(properties.format, "')") : '';
83
+ /* tslint:disable:no-string-literal */
84
+ delete properties['format'];
85
+ var fontPath = relativeFontPath
86
+ ? (0, path_1.join)((0, path_1.relative)(path_1.join.apply(void 0, (((_a = uidl.outputOptions) === null || _a === void 0 ? void 0 : _a.folderPath) || [])), './'), (0, path_1.join)(fontsFolder || '', font.path))
87
+ : (0, path_1.join)('/', assetIdentifier || '', 'fonts', font.path);
88
+ cssMap.push(teleport_plugin_common_1.StyleBuilders.createFontDecleration(__assign(__assign({}, properties), { src: "url(\"".concat(fontPath, "\") ").concat(format) })));
89
+ });
90
+ }
71
91
  if (Object.keys(tokens).length > 0) {
72
92
  cssMap.push(teleport_plugin_common_1.StyleBuilders.createCSSClassWithSelector('@global', ':root', teleport_plugin_common_1.StyleUtils.getTokensContentFromTokensObject(tokens)));
73
93
  }
@@ -80,8 +100,6 @@ var createStyleSheetPlugin = function (config) {
80
100
  if (cssMap.length === 0) {
81
101
  return [2 /*return*/, structure];
82
102
  }
83
- uidl.outputOptions = uidl.outputOptions || {};
84
- uidl.outputOptions.styleFileName = moduleExtension ? "".concat(fileName, ".module") : fileName;
85
103
  chunks.push({
86
104
  name: fileName,
87
105
  type: teleport_types_1.ChunkType.STRING,
@@ -1 +1 @@
1
- {"version":3,"file":"style-sheet.js","sourceRoot":"","sources":["../../src/style-sheet.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6EAA8E;AAC9E,6DAKmC;AACnC,+DAAyD;AAMzD,IAAM,aAAa,GAAG;IACpB,QAAQ,EAAE,OAAO;IACjB,eAAe,EAAE,KAAK;CACvB,CAAA;AAEM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AAC,IAAI,CAAC;gBACV,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,0BAAS,CAAC,MAAM;gBACtB,QAAQ,EAAE,yBAAQ,CAAC,GAAG;gBACtB,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC;gBAC1B,SAAS,EAAE,EAAE;aACd,CAAC,CAAA;YAEF,sBAAO,SAAS,EAAA;;SACjB,CAAA;IACD,OAAO,gBAAgB,CAAA;AACzB,CAAC,CAAA;AApGY,QAAA,sBAAsB,0BAoGlC"}
@@ -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.es2019.d.ts","../../../../node_modules/typescript/lib/lib.es2020.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.es2019.array.d.ts","../../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../teleport-types/dist/cjs/helper.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-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/utils/generic.d.ts","../../../teleport-shared/dist/cjs/index.d.ts","../../../../node_modules/@babel/types/lib/index.d.ts","../../../teleport-plugin-common/dist/cjs/builders/ast-builders.d.ts","../../../teleport-plugin-common/dist/cjs/utils/parsed-ast.d.ts","../../../teleport-plugin-common/dist/cjs/builders/style-builders.d.ts","../../../teleport-plugin-common/dist/cjs/builders/hast-builders.d.ts","../../../teleport-plugin-common/dist/cjs/utils/ast-utils.d.ts","../../../teleport-plugin-common/dist/cjs/utils/style-utils.d.ts","../../../teleport-plugin-common/dist/cjs/utils/hast-utils.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-html/types.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-html/index.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-jsx/types.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-jsx/index.d.ts","../../../teleport-plugin-common/dist/cjs/index.d.ts","../../src/style-sheet.ts","../../src/utils.ts","../../src/index.ts","../../../../node_modules/@types/node/assert.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/diagnostics_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/dom-events.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/readline/promises.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/stream/consumers.d.ts","../../../../node_modules/@types/node/stream/web.d.ts","../../../../node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/@types/node/test.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/v8.d.ts","../../../../node_modules/@types/node/vm.d.ts","../../../../node_modules/@types/node/wasi.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/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":"8730f4bf322026ff5229336391a18bcaa1f94d4f82416c8b2f3954e2ccaae2ba","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","4b421cbfb3a38a27c279dec1e9112c3d1da296f77a1a85ddadf7e7a425d45d18","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9",{"version":"3aafcb693fe5b5c3bd277bd4c3a617b53db474fe498fc5df067c5603b1eebde7","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"5f406584aef28a331c36523df688ca3650288d14f39c5d2e555c95f0d2ff8f6f","affectsGlobalScope":true},{"version":"22f230e544b35349cfb3bd9110b6ef37b41c6d6c43c3314a31bd0d9652fcec72","affectsGlobalScope":true},{"version":"7ea0b55f6b315cf9ac2ad622b0a7813315bb6e97bf4bb3fbf8f8affbca7dc695","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"eb26de841c52236d8222f87e9e6a235332e0788af8c87a71e9e210314300410a","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"5e5e095c4470c8bab227dbbc61374878ecead104c74ab9960d3adcccfee23205","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"2768ef564cfc0689a1b76106c421a2909bdff0acbe87da010785adab80efdd5c","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},"b09482535eb7d553ab0507e93616b811a3194a0339292f0e534787e4b01568bb","6eab4670a4b4a02ba43f71c8ae8e02bae88e303f837e5b2cf023a50fcadfd8f7","dc19b304f9b96efbea7359264ac17eaf4c2d3fd231df7306eddfb983039785ca","71a689048584cde03cb508408ae7c3b04ad8f10af887865e8b65c27ed9d91488","d50fe6e9eb7f4722fa789aab25bf60d0dfbcc36cc76af4a7d7af2b5886665f93","6ba1631f84ef4507073189c4ada06d6de8bac89375ea3b49e34e49006cc44a3f","afa9397f3aa80897cec3ddec1dd6f7c8741106ce96090f74df790a474b114ed6","8c08668019739abf45bfa24fb3559a4362161c438e71e3925f06bd6ea2792883","22c6f439ba8a0f6347a16d6fad503bb8a2fbfe778e5cf5c90918659c653c8a8c","2c55653d46d0d2bfa1b84b54c3a4ffa6e43de5b05c9f808e46b42adffc4e3e92","1875bde1eafbc9d923cd1624ac1fd6da0af82347c2a9c7a847a660cc4fa01a33","ac65f04c2df0218cb8e54f012745cbfcc3c0e67c1f6b1e557d88842bbb72e2db","ce5106bc15353dd05f601ecb48fd99b152362346cbbb3b398e0d5fdc36d24b0a","7d69ac79c9de7620a1bdd926fd4b20b8e968d6467a220eac2a836988ab47c933","c7b126a023fbcbe6b07edf69283b049fc3ca6958bc19934cde610a0ab5ae8ef3","7383bcf1e3b4970ec58cddeb24becd4fcd207aa518ca46270a6872b63712c29e","047e2b316cef7080f13baea9a0fcfc2f80c65c3f2c1fd98a7d892639bee26610","d4f36091f2a7fac55cac2d088d46e68f01cd5cf68e3db5770b3ba62641875e18","5a007f687f1be0ed103375930c7027eb6f10d0b826472f7f6d7a5b260502104e","64e43fe64a91d26169ee2bbc877135375b99ca4c5806b706f63e962528a3eb30","dcaef7f7c1f0cb2dba19a1a70cc8d5276faa68e50bc69d6a006d3aaaaa9f7aa7","cfbee63950fddcd052c993abe94531a3d16e5273f3f14dc493fd47f78d0cdd03","ffd67adf9464cf9bcddc3954fcd27d59b60e85acb02101fefe8b0eb642a2be2f","59b8c7576043b12356b13745811130ae5fa9c37cbd7ec5e49ecac8e88b8c9992",{"version":"f7546e17403812cbe157ecd90a5635fdd9782d54595dfad4afbed2d2d43f9d24","signature":"41eb064197443ceae7565b91f337730f931f75c0114ba9afee5331a7b919cdca"},{"version":"18043ddd83c806db9bae5b05e7d7aa4edf5c77524c640c74cdfc3ffa677816a0","signature":"0ce05e3e2c3c1a736ca900efd153182b373ddab4b966658675c2df9e01462bc4"},{"version":"ac8817dfe8b9beb42d0d82d4078e3c1b76a7fc04392d8e632600bf5fbecd16f8","signature":"53801d33d5b6842237a09976d47b68900914c99dd2b7b44c27edab42c2e29213"},"ba8691cf6bea9d53e6bf6cbc22af964a9633a21793981a1be3dce65e7a714d8b","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"bce910d9164785c9f0d4dcea4be359f5f92130c7c7833dea6138ab1db310a1f9","affectsGlobalScope":true},"7d2e3fea24c712c99c03ad8f556abedbfe105f87f1be10b95dbd409d24bc05a3",{"version":"7c387a02bf156d8d45667134d32518ac3ca1b99ca50ca9deff2c1a03eb6d1a81","affectsGlobalScope":true},"3719525a8f6ab731e3dfd585d9f87df55ec7d50d461df84f74eb4d68bb165244","f993522fd7d01ae1ead930091fe35130b8415720d6c2123dc2a7e8eb11bb3cba",{"version":"d5135ad93b33adcce80b18f8065087934cdc1730d63db58562edcf017e1aad9b","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","b787b5b54349a24f07d089b612a9fb8ff024dbbe991ff52ea2b188a6b1230644","bb9c4ffa5e6290c6980b63c815cdd1625876dadb2efaf77edbe82984be93e55e","1cdcfc1f624d6c08aa12c73935f6e13f095919cd99edf95752951796eb225729","df6d4b6ba1e64f682091862faa30104e93891f9e7202d006bf5e7a88ab4a0dbe","14b5aa23c5d0ae1907bc696ac7b6915d88f7d85799cc0dc2dcf98fbce2c5a67c","5c439dafdc09abe4d6c260a96b822fa0ba5be7203c71a63ab1f1423cd9e838ea",{"version":"6b526a5ec4a401ca7c26cfe6a48e641d8f30af76673bad3b06a1b4504594a960","affectsGlobalScope":true},{"version":"c2fcbd6fad600e96fee8c5df1a62e908d477f5b47a9374b2bab7e74f52cfcc92","affectsGlobalScope":true},"5e3f2470ce8038c4005ff1baff18a69848383f431d6817d453e70d66e037f4a2","cc68e79b99f80e4dfd01967ec96be69efb0ff5bd7f779d9a2cc09dfe590ffd28","91d3d8f536f22dcaeeace0fc6f3544d3562e266a27cf3a2fe280b8051af5d006","9503113febdd737095465792cc074d541902c82c0aea3922f940de18784812ad","8d3c583a07e0c37e876908c2d5da575019f689df8d9fa4c081d99119d53dba22","2c828a5405191d006115ab34e191b8474bc6c86ffdc401d1a9864b1b6e088a58",{"version":"e630e5528e899219ae319e83bef54bf3bcb91b01d76861ecf881e8e614b167f0","affectsGlobalScope":true},"bcebb922784739bdb34c18ee51095d25a92b560c78ccd2eaacd6bd00f7443d83","7ee6ed878c4528215c82b664fe0cfe80e8b4da6c0d4cc80869367868774db8b1","b0973c3cbcdc59b37bf477731d468696ecaf442593ec51bab497a613a580fe30",{"version":"4989e92ba5b69b182d2caaea6295af52b7dc73a4f7a2e336a676722884e7139d","affectsGlobalScope":true},{"version":"0715e4cd28ad471b2a93f3e552ff51a3ae423417a01a10aa1d3bc7c6b95059d6","affectsGlobalScope":true},"5153a2fd150e46ce57bb3f8db1318d33f6ad3261ed70ceeff92281c0608c74a3","210d54cd652ec0fec8c8916e4af59bb341065576ecda039842f9ffb2e908507c","36b03690b628eab08703d63f04eaa89c5df202e5f1edf3989f13ad389cd2c091","0effadd232a20498b11308058e334d3339cc5bf8c4c858393e38d9d4c0013dcf","25846d43937c672bab7e8195f3d881f93495df712ee901860effc109918938cc","ff1bad1849903b15fba47f3c29bdec5f97324874c93933a89b2bca28a23977fb","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","69ee23dd0d215b09907ad30d23f88b7790c93329d1faf31d7835552a10cf7cbf","44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","23b89798789dffbd437c0c423f5d02d11f9736aea73d6abf16db4f812ff36eda",{"version":"d9b4afd96c3c0ff70e90d05ef022e582b102e665e9029d34940472dc3058360e","affectsGlobalScope":true},{"version":"3c4ba1dd9b12ffa284b565063108f2f031d150ea15b8fafbdc17f5d2a07251f3","affectsGlobalScope":true},"e10177274a35a9d07c825615340b2fcde2f610f53f3fb40269fd196b4288dda6","1422cd9e705adcc09088fda85a900c2b70e3ad36ea85846f68bd1a884cdf4e2b","3c13ef48634e7b5012fcf7e8fce7496352c2d779a7201389ca96a2a81ee4314d","5d0a25ec910fa36595f85a67ac992d7a53dd4064a1ba6aea1c9f14ab73a023f2",{"version":"22d7b95cb63dead43834ae20ee492c9c8b6d90db3957d21665199f0efb1d3e26","affectsGlobalScope":true},{"version":"a9fc1469744055a3435f203123246b96c094e7ff8c4e1c3863829d9b705b7a34","affectsGlobalScope":true},"868831cab82b65dfe1d68180e898af1f2101e89ba9b754d1db6fb8cc2fac1921","0fe8985a28f82c450a04a6edf1279d7181c0893f37da7d2a27f8efd4fd5edb03","e59a892d87e72733e2a9ca21611b9beb52977be2696c7ba4b216cbbb9a48f5aa",{"version":"52120bb7e4583612225bdf08e7c12559548170f11e660d33a33623bae9bbdbba","affectsGlobalScope":true},"8a300fa9b698845a1f9c41ecbe2c5966634582a8e2020d51abcace9b55aa959e",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"d5be4343a9ace4611f04a6fffd91ceba91265fa15bfb0149306e0a6963e1a015","e222104af6cb9415238ad358488b74d76eceeff238c1268ec6e85655b05341da","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","eba230221317c985ab1953ccc3edc517f248b37db4fef7875cb2c8d08aff7be7","b83e796810e475da3564c6515bc0ae9577070596a33d89299b7d99f94ecfd921","b4439890c168d646357928431100daac5cbdee1d345a34e6bf6eca9f3abe22bc","5d72971a459517c44c1379dab9ed248e87a61ba0a1e0f25c9d67e1e640cd9a09","02d734976af36f4273d930bea88b3e62adf6b078cf120c1c63d49aa8d8427c5c",{"version":"f624e578325b8c58e55b30c998b1f4c3ec1b61a9fa66373da4250c89b7880d44","affectsGlobalScope":true},{"version":"d3002f620eab4bf6476c9da5c0efb2041d46f7df8b3032a5631bd206abef2c75","affectsGlobalScope":true}],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"declarationMap":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"module":1,"noImplicitAny":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","sourceMap":true,"target":1},"fileIdsList":[[116],[116,128,130],[116,124,125],[116,124,125,126,127],[116,129],[116,131],[70,116],[73,116],[74,79,107,116],[75,86,87,94,104,115,116],[75,76,86,94,116],[77,116],[78,79,87,95,116],[79,104,112,116],[80,82,86,94,116],[81,116],[82,83,116],[86,116],[84,86,116],[86,87,88,104,115,116],[86,87,88,101,104,107,116],[116,120],[82,86,89,94,104,115,116],[86,87,89,90,94,104,112,115,116],[89,91,104,112,115,116],[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,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122],[86,92,116],[93,115,116],[82,86,94,104,116],[95,116],[96,116],[73,97,116],[98,114,116,120],[99,116],[100,116],[86,101,102,116],[101,103,116,118],[74,86,104,105,106,107,116],[74,104,106,116],[104,105,116],[107,116],[108,116],[104,116],[86,110,111,116],[110,111,116],[79,94,104,112,116],[113,116],[94,114,116],[74,89,100,115,116],[79,116],[104,116,117],[116,118],[116,119],[74,79,86,88,97,104,115,116,118,120],[104,116,121],[48,54,116],[48,116],[48,54,56,116],[55,56,57,58,59,60,61,62,63,64,65,116],[48,62,116],[48,54,64,116],[48,53,54,66,67,68,116],[48,53,66,116],[49,50,51,52,116],[44,116],[44,45,46,47,116],[43,116],[43,44,116],[48,67],[48]],"referencedMap":[[54,1],[131,2],[124,1],[126,3],[128,4],[127,3],[125,1],[130,5],[129,1],[132,6],[70,7],[71,7],[73,8],[74,9],[75,10],[76,11],[77,12],[78,13],[79,14],[80,15],[81,16],[82,17],[83,17],[85,18],[84,19],[86,18],[87,20],[88,21],[72,22],[122,1],[89,23],[90,24],[91,25],[123,26],[92,27],[93,28],[94,29],[95,30],[96,31],[97,32],[98,33],[99,34],[100,35],[101,36],[102,36],[103,37],[104,38],[106,39],[105,40],[107,41],[108,42],[109,43],[110,44],[111,45],[112,46],[113,47],[114,48],[115,49],[116,50],[117,51],[118,52],[119,53],[120,54],[121,55],[8,1],[10,1],[9,1],[2,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[3,1],[4,1],[22,1],[19,1],[20,1],[21,1],[23,1],[24,1],[25,1],[5,1],[26,1],[27,1],[28,1],[29,1],[6,1],[33,1],[30,1],[31,1],[32,1],[34,1],[7,1],[35,1],[40,1],[41,1],[36,1],[37,1],[38,1],[39,1],[1,1],[42,1],[55,56],[58,57],[57,58],[66,59],[63,60],[62,57],[65,61],[64,56],[59,58],[61,57],[56,1],[60,57],[69,62],[67,63],[68,63],[49,57],[53,64],[52,1],[50,1],[51,57],[46,1],[45,65],[43,1],[48,66],[44,67],[47,68]],"exportedModulesMap":[[54,1],[131,2],[124,1],[126,3],[128,4],[127,3],[125,1],[130,5],[129,1],[132,6],[70,7],[71,7],[73,8],[74,9],[75,10],[76,11],[77,12],[78,13],[79,14],[80,15],[81,16],[82,17],[83,17],[85,18],[84,19],[86,18],[87,20],[88,21],[72,22],[122,1],[89,23],[90,24],[91,25],[123,26],[92,27],[93,28],[94,29],[95,30],[96,31],[97,32],[98,33],[99,34],[100,35],[101,36],[102,36],[103,37],[104,38],[106,39],[105,40],[107,41],[108,42],[109,43],[110,44],[111,45],[112,46],[113,47],[114,48],[115,49],[116,50],[117,51],[118,52],[119,53],[120,54],[121,55],[8,1],[10,1],[9,1],[2,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[3,1],[4,1],[22,1],[19,1],[20,1],[21,1],[23,1],[24,1],[25,1],[5,1],[26,1],[27,1],[28,1],[29,1],[6,1],[33,1],[30,1],[31,1],[32,1],[34,1],[7,1],[35,1],[40,1],[41,1],[36,1],[37,1],[38,1],[39,1],[1,1],[42,1],[55,56],[58,57],[57,58],[66,59],[63,60],[62,57],[65,61],[64,56],[59,58],[61,57],[56,1],[60,57],[69,69],[67,70],[68,70],[49,57],[53,64],[52,1],[50,1],[51,57],[46,1],[45,65],[43,1],[48,66],[44,67],[47,68]],"semanticDiagnosticsPerFile":[54,131,124,126,128,127,125,130,129,132,70,71,73,74,75,76,77,78,79,80,81,82,83,85,84,86,87,88,72,122,89,90,91,123,92,93,94,95,96,97,98,99,100,101,102,103,104,106,105,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,8,10,9,2,11,12,13,14,15,16,17,18,3,4,22,19,20,21,23,24,25,5,26,27,28,29,6,33,30,31,32,34,7,35,40,41,36,37,38,39,1,42,55,58,57,66,63,62,65,64,59,61,56,60,69,67,68,49,53,52,50,51,46,45,43,48,44,47]},"version":"4.9.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.es2019.d.ts","../../../../node_modules/typescript/lib/lib.es2020.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.es2019.array.d.ts","../../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../teleport-types/dist/cjs/helper.d.ts","../../../teleport-types/dist/cjs/uidl.d.ts","../../../../node_modules/@babel/types/lib/index.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-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/utils/generic.d.ts","../../../teleport-shared/dist/cjs/index.d.ts","../../../teleport-plugin-common/dist/cjs/builders/ast-builders.d.ts","../../../teleport-plugin-common/dist/cjs/utils/parsed-ast.d.ts","../../../teleport-plugin-common/dist/cjs/builders/style-builders.d.ts","../../../teleport-plugin-common/dist/cjs/builders/hast-builders.d.ts","../../../teleport-plugin-common/dist/cjs/utils/types.d.ts","../../../teleport-plugin-common/dist/cjs/utils/ast-utils.d.ts","../../../teleport-plugin-common/dist/cjs/utils/style-utils.d.ts","../../../teleport-plugin-common/dist/cjs/utils/hast-utils.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-html/types.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-html/index.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-jsx/types.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-jsx/index.d.ts","../../../teleport-plugin-common/dist/cjs/index.d.ts","../../src/style-sheet.ts","../../src/utils.ts","../../src/index.ts","../../../../node_modules/@types/node/assert.d.ts","../../../../node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/buffer/index.d.ts","../../../../node_modules/undici-types/header.d.ts","../../../../node_modules/undici-types/readable.d.ts","../../../../node_modules/undici-types/file.d.ts","../../../../node_modules/undici-types/fetch.d.ts","../../../../node_modules/undici-types/formdata.d.ts","../../../../node_modules/undici-types/connector.d.ts","../../../../node_modules/undici-types/client.d.ts","../../../../node_modules/undici-types/errors.d.ts","../../../../node_modules/undici-types/dispatcher.d.ts","../../../../node_modules/undici-types/global-dispatcher.d.ts","../../../../node_modules/undici-types/global-origin.d.ts","../../../../node_modules/undici-types/pool-stats.d.ts","../../../../node_modules/undici-types/pool.d.ts","../../../../node_modules/undici-types/handlers.d.ts","../../../../node_modules/undici-types/balanced-pool.d.ts","../../../../node_modules/undici-types/agent.d.ts","../../../../node_modules/undici-types/mock-interceptor.d.ts","../../../../node_modules/undici-types/mock-agent.d.ts","../../../../node_modules/undici-types/mock-client.d.ts","../../../../node_modules/undici-types/mock-pool.d.ts","../../../../node_modules/undici-types/mock-errors.d.ts","../../../../node_modules/undici-types/proxy-agent.d.ts","../../../../node_modules/undici-types/api.d.ts","../../../../node_modules/undici-types/cookies.d.ts","../../../../node_modules/undici-types/patch.d.ts","../../../../node_modules/undici-types/filereader.d.ts","../../../../node_modules/undici-types/diagnostics-channel.d.ts","../../../../node_modules/undici-types/websocket.d.ts","../../../../node_modules/undici-types/content-type.d.ts","../../../../node_modules/undici-types/cache.d.ts","../../../../node_modules/undici-types/interceptors.d.ts","../../../../node_modules/undici-types/index.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/diagnostics_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/dom-events.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/readline/promises.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/stream/consumers.d.ts","../../../../node_modules/@types/node/stream/web.d.ts","../../../../node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/@types/node/test.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/v8.d.ts","../../../../node_modules/@types/node/vm.d.ts","../../../../node_modules/@types/node/wasi.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/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":"8730f4bf322026ff5229336391a18bcaa1f94d4f82416c8b2f3954e2ccaae2ba","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","4b421cbfb3a38a27c279dec1e9112c3d1da296f77a1a85ddadf7e7a425d45d18","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9",{"version":"3aafcb693fe5b5c3bd277bd4c3a617b53db474fe498fc5df067c5603b1eebde7","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"5f406584aef28a331c36523df688ca3650288d14f39c5d2e555c95f0d2ff8f6f","affectsGlobalScope":true},{"version":"22f230e544b35349cfb3bd9110b6ef37b41c6d6c43c3314a31bd0d9652fcec72","affectsGlobalScope":true},{"version":"7ea0b55f6b315cf9ac2ad622b0a7813315bb6e97bf4bb3fbf8f8affbca7dc695","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"eb26de841c52236d8222f87e9e6a235332e0788af8c87a71e9e210314300410a","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"5e5e095c4470c8bab227dbbc61374878ecead104c74ab9960d3adcccfee23205","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"2768ef564cfc0689a1b76106c421a2909bdff0acbe87da010785adab80efdd5c","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},"14fc7efae8b184b18019a5906c6f6de752823b44ff1acf7924bbdc8877ded21b","c4f7e2add901536e83f79058448f366acb5ce1f0251bf9a5ae17c83ce05e0b09","55584873eae27c5607725f0a9b2123cdea9100fd47cd4bfd582b567a7c363877","6cc8ff8f1d371e5a8560481cb8c105da5fd790b604e8642b0c1cff2ab4fd8e70","71a689048584cde03cb508408ae7c3b04ad8f10af887865e8b65c27ed9d91488","f29399e10ced2ff9ecbe07448806c44dfcb87dcf281cb7ccac3061174c3cae37","6ba1631f84ef4507073189c4ada06d6de8bac89375ea3b49e34e49006cc44a3f","afa9397f3aa80897cec3ddec1dd6f7c8741106ce96090f74df790a474b114ed6","8c08668019739abf45bfa24fb3559a4362161c438e71e3925f06bd6ea2792883","242e6ce3f14c79123c25c35660899ba483f3fdc14ac8fa4a8eee5d03231c6bc3","96adbcda030ffa1952a15192edd1b852084c9bfbbd2066e5c8d567987c466e90","1875bde1eafbc9d923cd1624ac1fd6da0af82347c2a9c7a847a660cc4fa01a33","61fe981de167fe34caf4bd80a3c120747844dddb519eaf8a79549d5f78081fb7","7d69ac79c9de7620a1bdd926fd4b20b8e968d6467a220eac2a836988ab47c933","f2ad963e74d849aa62c16f4cae23b7f8f6e26844c0d61f42943086ee7e0cd896","51df45d44f1a2052bd14063736f385bfbdcfee3759fa5597c89f62b3bbdb02e5","10b2bb0a74b12ecbab5003ff91aa8b3da674f81a5d72fdd6f998bfaf664948c8","00831294201919772573dc677d0e74b73c3b828d35c7058aee3d4eb9b6941e08","d4f36091f2a7fac55cac2d088d46e68f01cd5cf68e3db5770b3ba62641875e18","6ff754e93a1ef94f7a92e7f6f9b67357f3b25836ab36d66202d1d07343186ab7","48533e135178c91d9abe0789d1c09802696a42985217396ccfcfd1034a099a0e","dcaef7f7c1f0cb2dba19a1a70cc8d5276faa68e50bc69d6a006d3aaaaa9f7aa7","954d24a996cb9a7af6dfb50f99e56cd0abfcc132dc425ea2c43a9d23a3470682","ffd67adf9464cf9bcddc3954fcd27d59b60e85acb02101fefe8b0eb642a2be2f","59b8c7576043b12356b13745811130ae5fa9c37cbd7ec5e49ecac8e88b8c9992",{"version":"3da7229c9f7a7a563354229e04509572e423c230e71770c002cacf7b70c675e1","signature":"ac92ddd458f33661d379ce921c238b95fa49bc867e34323bad3ddf18f9a2d30c"},{"version":"18043ddd83c806db9bae5b05e7d7aa4edf5c77524c640c74cdfc3ffa677816a0","signature":"0ce05e3e2c3c1a736ca900efd153182b373ddab4b966658675c2df9e01462bc4"},{"version":"cba5443be8a383e5a28f013c1ff9256a4e21534eb24c269b290656827a0da374","signature":"53801d33d5b6842237a09976d47b68900914c99dd2b7b44c27edab42c2e29213"},"0b4bc32128fda7bb0752cf284730dd3a817aae04a3d7f92e3b2d54bd61362fe1","7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","4967529644e391115ca5592184d4b63980569adf60ee685f968fd59ab1557188","5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","7180c03fd3cb6e22f911ce9ba0f8a7008b1a6ddbe88ccf16a9c8140ef9ac1686","25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","54cb85a47d760da1c13c00add10d26b5118280d44d58e6908d8e89abbd9d7725","3e4825171442666d31c845aeb47fcd34b62e14041bb353ae2b874285d78482aa","c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","a967bfe3ad4e62243eb604bf956101e4c740f5921277c60debaf325c1320bf88","e9775e97ac4877aebf963a0289c81abe76d1ec9a2a7778dbe637e5151f25c5f3","471e1da5a78350bc55ef8cef24eb3aca6174143c281b8b214ca2beda51f5e04a","cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","db3435f3525cd785bf21ec6769bf8da7e8a776be1a99e2e7efb5f244a2ef5fee","c3b170c45fc031db31f782e612adf7314b167e60439d304b49e704010e7bafe5","40383ebef22b943d503c6ce2cb2e060282936b952a01bea5f9f493d5fb487cc7","4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","3a84b7cb891141824bd00ef8a50b6a44596aded4075da937f180c90e362fe5f6","13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","33203609eba548914dc83ddf6cadbc0bcb6e8ef89f6d648ca0908ae887f9fcc5","0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","339dc5265ee5ed92e536a93a04c4ebbc2128f45eeec6ed29f379e0085283542c","9f0a92164925aa37d4a5d9dd3e0134cff8177208dba55fd2310cd74beea40ee2","8bfdb79bf1a9d435ec48d9372dc93291161f152c0865b81fc0b2694aedb4578d","2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","d32275be3546f252e3ad33976caf8c5e842c09cb87d468cb40d5f4cf092d1acc","4a0c3504813a3289f7fb1115db13967c8e004aa8e4f8a9021b95285502221bd1",{"version":"5f290ea7efbe9d8431e10df12c0d5672b67988e7c171c2d356749fac70347a55","affectsGlobalScope":true},"39b1a50d543770780b0409a4caacb87f3ff1d510aedfeb7dc06ed44188256f89",{"version":"49c89f8fa09d21c161e6a367448639e032f42d77cc2ec8ab54ecb8fa9a3ad59f","affectsGlobalScope":true},"e4b50850c2a62c7750428e452ee24b167180104d514d5e5c0ca691753365f610","304504c854c47a55ab4a89111a27a2daf8a3614740bd787cc1f2c51e5574239c",{"version":"95f9129a37dcace36e17b061a8484952586ecfe928c9c8ce526de1a2f4aaefa7","affectsGlobalScope":true},"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb","0f9061846236850a872cb44097d071631e93c8749a8b16c191fe3c2a48faede4","e46fa644658c2d6e5c85e954ea76b92c97d63f0851d3ccdab8c2a80d5962aaa9","1c611ff373ce1958aafc40b328048ac2540ba5c7f373cf2897e0d9aeaabe90a0","a307d22a0130ac94c1a17fffa6d57ac272deb5838cb966a9420911d259cdf1be","d2e415abf6cb81ac9e2700b4db5ea7be76b997e812285b8e5e1e414eb2750b6e","09d6cebdced6aa1181ac1523c8f22a133f5ed80589678b64051f0602f0518374",{"version":"ee1ee365d88c4c6c0c0a5a5701d66ebc27ccd0bcfcfaa482c6e2e7fe7b98edf7","affectsGlobalScope":true},{"version":"7c35691dc3972ff1507d8dd279d833f540973d0917bde22e191cf7a8feaac29f","affectsGlobalScope":true},"62662d7a886e5cfa870685720fd27b763743ca4d2cf29326f75d76606a64eadd","b8c670688bd228d3cc9c169690b09b687188c50ff263a94df63b207701105ad9","d8e16905907111390d5a943816306ae997dfe56476f14142166f8b13ee322eea","8068c911a1c40bc6c5ffc58c625b21d807778f6aa6d63a73e6f04f88bcac5b79","a1dbce56ad5f3a37caafb9033c9d190a199217d673f5fa099c8968d471a2fdaa","c6f77efcc19f51c8759779b6b6ee0d88046c15c15dadac8ffed729a6620daf39",{"version":"089867511b37a534ae71f3d9bc97acc0b925b7f5dbec113f98c4b49224c694eb","affectsGlobalScope":true},"269d0ea3202820c29a32c1f2a357837a4f1918426844f7e7c90af15ec40d1dc1","66432f885e30cf471573de22a5af5eca9ab46b37b122aec98beadf77e9b7df24","323506ce173f7f865f42f493885ee3dacd18db6359ea1141d57676d3781ce10c",{"version":"034e635df3c014df1d6b1110b724ca0c4d2d324b45a84974c7d6931f9cf95ea7","affectsGlobalScope":true},{"version":"87f9456115554cb0f78f098ddbd585096871c19d2d05274c1b1b4ade3151da78","affectsGlobalScope":true},"ea3ab3727cd6c222d94003ecafa30e8550c61eadcdabbf59514aee76e86211a5","d3cdd41693c5ed6bec4f1a1c399d9501372b14bd341bc46eedacf2854c5df5a7","2de7a21c92226fb8abbeed7a0a9bd8aa6d37e4c68a8c7ff7938c644267e9fcc1","6d6070c5c81ba0bfe58988c69e3ba3149fc86421fd383f253aeb071cbf29cd41","da618f0ea09d95c3b51514de43bf97dab008c85bede58aa57cf95e4984c7c957","48a35b181ecf47dbbc0a7ab4b5ba778d91eaa838ba42bf4aaaead42be77ef39a","269929a24b2816343a178008ac9ae9248304d92a8ba8e233055e0ed6dbe6ef71","93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","5195aeb0de306d1c5ca8033457fbcab5987657112fa6d4971cfeb7644493a369","c5dbf0003bc9f0f643e54cd00a3868d1afe85497fecb56be6f2373dc85102924",{"version":"ce73eb199c4bf96c015f069aac161488ed73ebeaea3d87b6d5aa9a968a7b38d4","affectsGlobalScope":true},{"version":"300f8e9de0b0c3482be3e749462b6ebc3dab8a316801f1da0def94aed0cd2018","affectsGlobalScope":true},"4e228e78c1e9b0a75c70588d59288f63a6258e8b1fe4a67b0c53fe03461421d9","962f105729d5b888c8b70e193f6020ee92c6c8144c827de40f80d65dd188ad7f","ac74e2b754fba690036f8221d978f6debb867462b87af254f24e924b677395d0","80858f6de9af22e53aff221fe3590215ea544c2aeb2cc60cf8e08a9c785c8fef",{"version":"068b8ee5c2cd90d7a50f2efadbbe353cb10196a41189a48bf4b2a867363012b4","affectsGlobalScope":true},{"version":"340659b96782f5813aad6c1f89ea1b83b2f3fa993115c7b30366375d9bae5a4e","affectsGlobalScope":true},"6f44a190351ab5e1811abebe007cf60518044772ccc08244f9f241706afa767f","fecdf44bec4ee9c5188e5f2f58c292c9689c02520900dceaaa6e76594de6da90","cf45d0510b661f1da461479851ff902f188edb111777c37055eff12fa986a23a",{"version":"895ca532c15c77cbb6a871af1870b57bcd0ca4f38a1bd69669dd0e95bb58565a","affectsGlobalScope":true},"f2b9440f98d6f94c8105883a2b65aee2fce0248f71f41beafd0a80636f3a565d",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"b510d0a18e3db42ac9765d26711083ec1e8b4e21caaca6dc4d25ae6e8623f447","e222104af6cb9415238ad358488b74d76eceeff238c1268ec6e85655b05341da","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","eba230221317c985ab1953ccc3edc517f248b37db4fef7875cb2c8d08aff7be7","b83e796810e475da3564c6515bc0ae9577070596a33d89299b7d99f94ecfd921","b4439890c168d646357928431100daac5cbdee1d345a34e6bf6eca9f3abe22bc","5d72971a459517c44c1379dab9ed248e87a61ba0a1e0f25c9d67e1e640cd9a09","02d734976af36f4273d930bea88b3e62adf6b078cf120c1c63d49aa8d8427c5c",{"version":"f624e578325b8c58e55b30c998b1f4c3ec1b61a9fa66373da4250c89b7880d44","affectsGlobalScope":true},{"version":"d3002f620eab4bf6476c9da5c0efb2041d46f7df8b3032a5631bd206abef2c75","affectsGlobalScope":true}],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"declarationMap":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"module":1,"noImplicitAny":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","sourceMap":true,"target":1},"fileIdsList":[[162,164],[158,159],[158,159,160,161],[163],[165],[71],[107],[108,113,141],[109,120,121,128,138,149],[109,110,120,128],[111,150],[112,113,121,129],[113,138,146],[114,116,120,128],[107,115],[116,117],[120],[118,120],[107,120],[120,121,122,138,149],[120,121,122,135,138,141],[105,154],[116,120,123,128,138,149],[120,121,123,124,128,138,146,149],[123,125,138,146,149],[71,72,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156],[120,126],[127,149,154],[116,120,128,138],[129],[130],[107,131],[132,148,154],[133],[134],[120,135,136],[135,137,150,152],[108,120,138,139,140,141],[108,138,140],[138,139],[141],[142],[107,138],[120,144,145],[144,145],[113,128,138,146],[147],[128,148],[108,123,134,149],[113,150],[138,151],[127,152],[153],[108,113,120,122,131,138,149,152,154],[138,155],[82,86,149],[82,138,149],[77],[79,82,146,149],[128,146],[157],[77,157],[79,82,128,149],[74,75,78,81,108,120,138,149],[74,80],[78,82,108,141,149,157],[108,157],[98,108,157],[76,77,157],[82],[76,77,78,79,80,81,82,83,84,86,87,88,89,90,91,92,93,94,95,96,97,99,100,101,102,103,104],[82,89,90],[80,82,90,91],[81],[74,77,82],[82,86,90,91],[86],[80,82,85,149],[74,79,80,82,86,89],[108,138],[77,82,98,108,154,157],[45,49],[49],[45,49,56],[55,56,57,58,60,61,62,63,64,65,66],[49,63],[45,49,65],[45,49,56,59],[45,49,54,60,67,68,69],[49,54,67,130],[49,54,67],[50,51,52,53],[44,45],[44,46,47,48],[43],[43,44],[49,68]],"referencedMap":[[165,1],[160,2],[162,3],[161,2],[164,4],[166,5],[71,6],[72,6],[107,7],[108,8],[109,9],[110,10],[111,11],[112,12],[113,13],[114,14],[115,15],[116,16],[117,16],[119,17],[118,18],[120,19],[121,20],[122,21],[106,22],[123,23],[124,24],[125,25],[157,26],[126,27],[127,28],[128,29],[129,30],[130,31],[131,32],[132,33],[133,34],[134,35],[135,36],[136,36],[137,37],[138,38],[140,39],[139,40],[141,41],[142,42],[143,43],[144,44],[145,45],[146,46],[147,47],[148,48],[149,49],[150,50],[151,51],[152,52],[153,53],[154,54],[155,55],[89,56],[96,57],[88,56],[103,58],[80,59],[79,60],[102,61],[97,62],[100,63],[82,64],[81,65],[77,66],[76,67],[99,68],[78,69],[83,70],[87,70],[105,71],[104,70],[91,72],[92,73],[94,74],[90,75],[93,76],[98,61],[85,77],[86,78],[95,79],[75,80],[101,81],[55,82],[58,83],[57,84],[67,85],[64,86],[63,83],[66,87],[65,82],[60,88],[62,82],[61,83],[70,89],[68,90],[69,91],[50,83],[54,92],[53,83],[52,83],[46,93],[49,94],[44,95],[48,96]],"exportedModulesMap":[[165,1],[160,2],[162,3],[161,2],[164,4],[166,5],[71,6],[72,6],[107,7],[108,8],[109,9],[110,10],[111,11],[112,12],[113,13],[114,14],[115,15],[116,16],[117,16],[119,17],[118,18],[120,19],[121,20],[122,21],[106,22],[123,23],[124,24],[125,25],[157,26],[126,27],[127,28],[128,29],[129,30],[130,31],[131,32],[132,33],[133,34],[134,35],[135,36],[136,36],[137,37],[138,38],[140,39],[139,40],[141,41],[142,42],[143,43],[144,44],[145,45],[146,46],[147,47],[148,48],[149,49],[150,50],[151,51],[152,52],[153,53],[154,54],[155,55],[89,56],[96,57],[88,56],[103,58],[80,59],[79,60],[102,61],[97,62],[100,63],[82,64],[81,65],[77,66],[76,67],[99,68],[78,69],[83,70],[87,70],[105,71],[104,70],[91,72],[92,73],[94,74],[90,75],[93,76],[98,61],[85,77],[86,78],[95,79],[75,80],[101,81],[55,82],[58,83],[57,84],[67,85],[64,86],[63,83],[66,87],[65,82],[60,88],[62,82],[61,83],[70,97],[68,83],[69,83],[50,83],[54,92],[53,83],[52,83],[46,93],[49,94],[44,95],[48,96]],"semanticDiagnosticsPerFile":[45,165,158,160,162,161,159,164,163,166,71,72,107,108,109,110,111,112,113,114,115,116,117,119,118,120,121,122,106,156,123,124,125,157,126,127,128,129,130,131,132,133,134,135,136,137,138,140,139,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,73,8,10,9,2,11,12,13,14,15,16,17,18,3,4,22,19,20,21,23,24,25,5,26,27,28,29,6,33,30,31,32,34,7,35,40,41,36,37,38,39,1,42,89,96,88,103,80,79,102,97,100,82,81,77,76,99,78,83,84,87,74,105,104,91,92,94,90,93,98,85,86,95,75,101,55,58,57,67,64,63,66,65,60,62,56,61,59,70,68,69,50,54,53,51,52,47,46,43,49,44,48]},"version":"4.9.5"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAoBA,OAAO,EACL,sBAAsB,EACtB,eAAe,EAOhB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAA;AAGtD,UAAU,gBAAgB;IACxB,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B;AAWD,eAAO,MAAM,sBAAsB,EAAE,sBAAsB,CAAC,gBAAgB,CA2S3E,CAAA;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAA;;AAEjC,wBAAuC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAoBA,OAAO,EACL,sBAAsB,EACtB,eAAe,EAShB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAA;AAItD,UAAU,gBAAgB;IACxB,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B;AAWD,eAAO,MAAM,sBAAsB,EAAE,sBAAsB,CAAC,gBAAgB,CAuT3E,CAAA;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAA;;AAEjC,wBAAuC"}
package/dist/esm/index.js CHANGED
@@ -67,6 +67,7 @@ import * as types from '@babel/types';
67
67
  import { FileType, ChunkType, PluginCssModules, } from '@teleporthq/teleport-types';
68
68
  import { createStyleSheetPlugin } from './style-sheet';
69
69
  import { generateStyledFromStyleContent } from './utils';
70
+ import { isJSXElement } from '@teleporthq/teleport-plugin-common/dist/cjs/utils/ast-utils';
70
71
  var defaultConfigProps = {
71
72
  componentChunkName: 'jsx-component',
72
73
  styleChunkName: 'css-modules',
@@ -79,8 +80,8 @@ export var createCSSModulesPlugin = function (config) {
79
80
  if (config === void 0) { config = {}; }
80
81
  var _a = __assign(__assign({}, defaultConfigProps), config), componentChunkName = _a.componentChunkName, styleObjectImportName = _a.styleObjectImportName, styleChunkName = _a.styleChunkName, moduleExtension = _a.moduleExtension, classAttributeName = _a.classAttributeName, globalStyleSheetPrefix = _a.globalStyleSheetPrefix;
81
82
  var cssModulesPlugin = function (structure) { return __awaiter(void 0, void 0, void 0, function () {
82
- var uidl, chunks, dependencies, options, node, _a, componentStyleSheet, _b, propDefinitions, _c, projectStyleSet, _d, _e, _f, tokens, isRootComponent, _g, _h, globalStyleSheet, projectStyleSheetName, projectStyleSheetPath, _j, importFile, fileName, componentChunk, cssClasses, isProjectStyleReferred, mediaStylesMap, astNodesLookup, propsPrefix, cssFileName, fileName;
83
- return __generator(this, function (_k) {
83
+ var uidl, chunks, dependencies, options, node, _a, componentStyleSheet, _b, propDefinitions, _c, projectStyleSet, _d, _e, _f, tokens, isRootComponent, _g, _h, globalStyleSheet, projectStyleSheetName, projectStyleSheetPath, _j, importFile, fileName, componentChunk, cssClasses, isProjectStyleReferred, mediaStylesMap, astNodesLookup, propsPrefix, generateStylesForElementNode, _i, _k, prop, cssFileName, fileName;
84
+ return __generator(this, function (_l) {
84
85
  uidl = structure.uidl, chunks = structure.chunks, dependencies = structure.dependencies, options = structure.options;
85
86
  node = uidl.node, _a = uidl.styleSetDefinitions, componentStyleSheet = _a === void 0 ? {} : _a, _b = uidl.propDefinitions, propDefinitions = _b === void 0 ? {} : _b;
86
87
  _c = options || {}, projectStyleSet = _c.projectStyleSet, _d = _c.designLanguage, _e = _d === void 0 ? {} : _d, _f = _e.tokens, tokens = _f === void 0 ? {} : _f, isRootComponent = _c.isRootComponent;
@@ -107,24 +108,28 @@ export var createCSSModulesPlugin = function (config) {
107
108
  mediaStylesMap = {};
108
109
  astNodesLookup = componentChunk.meta.nodesLookup || {};
109
110
  propsPrefix = componentChunk.meta.dynamicRefPrefix.prop;
110
- UIDLUtils.traverseElements(node, function (element) {
111
- var style = element.style, key = element.key, referencedStyles = element.referencedStyles, dependency = element.dependency, _a = element.attrs, attrs = _a === void 0 ? {} : _a;
111
+ generateStylesForElementNode = function (element) {
112
+ var style = element.style, key = element.key, referencedStyles = element.referencedStyles, dependency = element.dependency, _a = element.attrs, attrs = _a === void 0 ? {} : _a, elementType = element.elementType;
112
113
  var jsxTag = astNodesLookup[key];
113
114
  var classNamesToAppend = new Set();
115
+ if (!jsxTag || !isJSXElement(jsxTag)) {
116
+ return;
117
+ }
114
118
  if ((dependency === null || dependency === void 0 ? void 0 : dependency.type) === 'local') {
115
119
  StyleBuilders.setPropValueForCompStyle({
116
120
  attrs: attrs,
117
- key: key,
118
- jsxNodesLookup: astNodesLookup,
119
- getClassName: function (styleName) { return StringUtils.camelCaseToDashCase(styleName); },
121
+ root: jsxTag,
122
+ getClassName: function (styleName) {
123
+ return StringUtils.camelCaseToDashCase(elementType + styleName);
124
+ },
120
125
  });
121
126
  }
122
- if (!jsxTag) {
123
- return;
124
- }
125
127
  if (!style && !referencedStyles) {
126
128
  return;
127
129
  }
130
+ if (!key) {
131
+ throw new PluginCssModules('Element node does not have a key \n' + JSON.stringify(element, null, 2));
132
+ }
128
133
  var className = StringUtils.camelCaseToDashCase(key);
129
134
  var classReferenceIdentifier = types.memberExpression(types.identifier(styleObjectImportName), types.identifier("'".concat(className, "'")), true);
130
135
  /* Generating styles from UIDLElementNode to component style sheet */
@@ -172,7 +177,7 @@ export var createCSSModulesPlugin = function (config) {
172
177
  case 'component-referenced': {
173
178
  var classContent = styleRef.content.content;
174
179
  if (classContent.type === 'static') {
175
- classNamesToAppend.add(types.memberExpression(types.identifier(styleObjectImportName), types.identifier("'".concat(getClassName(String(classContent.content)), "'")), true));
180
+ classNamesToAppend.add(types.stringLiteral(String(classContent.content)));
176
181
  return;
177
182
  }
178
183
  if (classContent.type === 'dynamic' &&
@@ -199,7 +204,7 @@ export var createCSSModulesPlugin = function (config) {
199
204
  isProjectStyleReferred = true;
200
205
  var referedStyle = globalStyleSheet[content.referenceId];
201
206
  if (!referedStyle) {
202
- throw new PluginCssModules("Style used from global stylesheet is missing - ".concat(content.referenceId));
207
+ throw new PluginCssModules("Style used from global stylesheet is missing plugin css module - ".concat(content.referenceId));
203
208
  }
204
209
  classNamesToAppend.add(types.memberExpression(types.identifier(globalStyleSheetPrefix), types.identifier("'".concat(getClassName(content.referenceId), "'")), true));
205
210
  return;
@@ -211,10 +216,17 @@ export var createCSSModulesPlugin = function (config) {
211
216
  });
212
217
  }
213
218
  ASTUtils.addMultipleDynamicAttributesToJSXTag(jsxTag, classAttributeName, Array.from(classNamesToAppend));
214
- });
219
+ };
220
+ UIDLUtils.traverseElements(node, generateStylesForElementNode);
221
+ for (_i = 0, _k = Object.values(propDefinitions); _i < _k.length; _i++) {
222
+ prop = _k[_i];
223
+ if (prop.type === 'element' && prop.defaultValue) {
224
+ UIDLUtils.traverseElements(prop.defaultValue, generateStylesForElementNode);
225
+ }
226
+ }
215
227
  /* Generating component scoped styles */
216
228
  if (Object.keys(componentStyleSheet).length > 0) {
217
- StyleBuilders.generateStylesFromStyleSetDefinitions(componentStyleSheet, cssClasses, mediaStylesMap, function (styleId) { return StringUtils.camelCaseToDashCase(styleId); });
229
+ StyleBuilders.generateStylesFromStyleSetDefinitions(componentStyleSheet, cssClasses, mediaStylesMap, function (styleName) { return StringUtils.camelCaseToDashCase(uidl.name + styleName); });
218
230
  }
219
231
  if (Object.keys(mediaStylesMap).length > 0) {
220
232
  cssClasses.push.apply(cssClasses, StyleBuilders.generateMediaStyle(mediaStylesMap));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;EAeE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAA;AACpE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAA;AAC5E,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AACrC,OAAO,EAGL,QAAQ,EACR,SAAS,EAGT,gBAAgB,GAEjB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAA;AACtD,OAAO,EAAE,8BAA8B,EAAE,MAAM,SAAS,CAAA;AAUxD,IAAM,kBAAkB,GAAG;IACzB,kBAAkB,EAAE,eAAe;IACnC,cAAc,E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sB,IAAI,UAAU,EAAE;gBAClC,QAAQ,GAAG,eAAe,CAAC,CAAC,CAAC,UAAG,qBAAqB,YAAS,CAAC,CAAC,CAAC,qBAAqB,CAAA;gBAC5F,YAAY,CAAC,sBAAsB,CAAC,GAAG;oBACrC,IAAI,EAAE,OAAO;oBACb,IAAI,EAAE,UAAG,qBAAqB,SAAG,QAAQ,cAAI,QAAQ,CAAC,GAAG,CAAE;iBAC5D,CAAA;aACF;YAED,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE;gBACzB,YAAY,CAAC,qBAAqB,CAAC,GAAG;oBACpC,IAAI,EAAE,OAAO;oBACb,IAAI,EAAE,YAAK,WAAW,cAAI,QAAQ,CAAC,GAAG,CAAE;iBACzC,CAAA;aACF;YAED,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC;gBACpB,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,SAAS,CAAC,MAAM;gBACtB,QAAQ,EAAE,QAAQ,CAAC,GAAG;gBACtB,OAAO,EAAE,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC;gBAC9B,SAAS,EAAE,EAAE;aACd,CAAC,CAAA;YAEF,sBAAO,SAAS,EAAA;;SACjB,CAAA;IAED,OAAO,gBAAgB,CAAA;AACzB,CAAC,CAAA;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAA;AAEjC,eAAe,sBAAsB,EAAE,CAAA;AAEvC,IAAM,YAAY,GAAG,UAAC,GAAW;IAC/B,OAAA,WAAW,CAAC,uBAAuB,CAAC,WAAW,CAAC,mBAAmB,CAAC,GAAG,CAAC,CAAC;AAAzE,CAAyE,CAAA"}
@@ -2,6 +2,7 @@ import { ComponentPluginFactory } from '@teleporthq/teleport-types';
2
2
  interface StyleSheetPlugin {
3
3
  fileName?: string;
4
4
  moduleExtension?: boolean;
5
+ relativeFontPath?: boolean;
5
6
  }
6
7
  export declare const createStyleSheetPlugin: ComponentPluginFactory<StyleSheetPlugin>;
7
8
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"style-sheet.d.ts","sourceRoot":"","sources":["../../src/style-sheet.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,sBAAsB,EAGvB,MAAM,4BAA4B,CAAA;AAEnC,UAAU,gBAAgB;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B;AAOD,eAAO,MAAM,sBAAsB,EAAE,sBAAsB,CAAC,gBAAgB,CA+D3E,CAAA"}
1
+ {"version":3,"file":"style-sheet.d.ts","sourceRoot":"","sources":["../../src/style-sheet.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,sBAAsB,EAGvB,MAAM,4BAA4B,CAAA;AAInC,UAAU,gBAAgB;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B;AAQD,eAAO,MAAM,sBAAsB,EAAE,sBAAsB,CAAC,gBAAgB,CAoG3E,CAAA"}
@@ -48,23 +48,43 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
48
48
  import { StyleUtils, StyleBuilders } from '@teleporthq/teleport-plugin-common';
49
49
  import { ChunkType, FileType, } from '@teleporthq/teleport-types';
50
50
  import { StringUtils } from '@teleporthq/teleport-shared';
51
+ import { relative, join } from 'path';
51
52
  var defaultConfig = {
52
53
  fileName: 'style',
53
54
  moduleExtension: false,
55
+ relativeFontPath: false,
54
56
  };
55
57
  export var createStyleSheetPlugin = function (config) {
56
- var _a = __assign(__assign({}, defaultConfig), config), fileName = _a.fileName, moduleExtension = _a.moduleExtension;
58
+ var _a = __assign(__assign({}, defaultConfig), config), fileName = _a.fileName, moduleExtension = _a.moduleExtension, relativeFontPath = _a.relativeFontPath;
57
59
  var styleSheetPlugin = function (structure) { return __awaiter(void 0, void 0, void 0, function () {
58
- var uidl, chunks, _a, styleSetDefinitions, _b, _c, _d, tokens, cssMap, mediaStylesMap;
59
- return __generator(this, function (_e) {
60
- uidl = structure.uidl, chunks = structure.chunks;
60
+ var uidl, chunks, assets, _a, styleSetDefinitions, _b, _c, _d, tokens, _e, _f, localFonts, fontsFolder, assetIdentifier, canSkipThePlugin, cssMap, mediaStylesMap;
61
+ return __generator(this, function (_g) {
62
+ uidl = structure.uidl, chunks = structure.chunks, assets = structure.options.assets;
61
63
  _a = uidl.styleSetDefinitions, styleSetDefinitions = _a === void 0 ? {} : _a, _b = uidl.designLanguage, _c = _b === void 0 ? {} : _b, _d = _c.tokens, tokens = _d === void 0 ? {} : _d;
62
- if ((!styleSetDefinitions && !tokens) ||
63
- (Object.keys(styleSetDefinitions).length === 0 && Object.keys(tokens).length === 0)) {
64
- return [2 /*return*/];
64
+ _e = assets || { localFonts: [] }, _f = _e.localFonts, localFonts = _f === void 0 ? [] : _f, fontsFolder = _e.fontsFolder, assetIdentifier = _e.identifier;
65
+ canSkipThePlugin = (localFonts === null || localFonts === void 0 ? void 0 : localFonts.length) === 0 &&
66
+ Object.keys(styleSetDefinitions).length === 0 &&
67
+ Object.keys(tokens).length === 0;
68
+ if (canSkipThePlugin) {
69
+ return [2 /*return*/, structure];
65
70
  }
71
+ uidl.outputOptions = uidl.outputOptions || {};
72
+ uidl.outputOptions.styleFileName = moduleExtension ? "".concat(fileName, ".module") : fileName;
66
73
  cssMap = [];
67
74
  mediaStylesMap = {};
75
+ if (localFonts.length > 0) {
76
+ localFonts.forEach(function (font) {
77
+ var _a;
78
+ var properties = StyleUtils.getContentOfStyleObject(font.properties);
79
+ var format = (properties === null || properties === void 0 ? void 0 : properties.format) ? "format('".concat(properties.format, "')") : '';
80
+ /* tslint:disable:no-string-literal */
81
+ delete properties['format'];
82
+ var fontPath = relativeFontPath
83
+ ? join(relative(join.apply(void 0, (((_a = uidl.outputOptions) === null || _a === void 0 ? void 0 : _a.folderPath) || [])), './'), join(fontsFolder || '', font.path))
84
+ : join('/', assetIdentifier || '', 'fonts', font.path);
85
+ cssMap.push(StyleBuilders.createFontDecleration(__assign(__assign({}, properties), { src: "url(\"".concat(fontPath, "\") ").concat(format) })));
86
+ });
87
+ }
68
88
  if (Object.keys(tokens).length > 0) {
69
89
  cssMap.push(StyleBuilders.createCSSClassWithSelector('@global', ':root', StyleUtils.getTokensContentFromTokensObject(tokens)));
70
90
  }
@@ -77,8 +97,6 @@ export var createStyleSheetPlugin = function (config) {
77
97
  if (cssMap.length === 0) {
78
98
  return [2 /*return*/, structure];
79
99
  }
80
- uidl.outputOptions = uidl.outputOptions || {};
81
- uidl.outputOptions.styleFileName = moduleExtension ? "".concat(fileName, ".module") : fileName;
82
100
  chunks.push({
83
101
  name: fileName,
84
102
  type: ChunkType.STRING,
@@ -1 +1 @@
1
- {"version":3,"file":"style-sheet.js","sourceRoot":"","sources":["../../src/style-sheet.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAA;AAC9E,OAAO,EAGL,SAAS,EACT,QAAQ,GACT,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AAMzD,IAAM,aAAa,GAAG;IACpB,QAAQ,EAAE,OAAO;IACjB,eAAe,EAAE,KAAK;CACvB,CAAA;AAED,MAAM,CAAC,IAAM,sBAAsB,GAA6C,UAAC,MAAM;IAC/E,IAAA,2BACD,aAAa,GACb,MAAM,CACV,EAHO,QAAQ,cAAA,EAAE,eAAe,qBAGhC,CAAA;IAED,IAAM,gBAAgB,GAAoB,UAAO,SAAS;;;YAChD,IAAI,GAAa,SAAS,KAAtB,EAAE,MAAM,GAAK,SAAS,OAAd,CAAc;YAC1B,KAAmE,IAAI,oBAA/C,EAAxB,mBAAmB,mBAAG,EAAE,KAAA,EAAE,KAAyC,IAAI,eAAT,EAApC,qBAAkC,EAAE,KAAA,EAAlB,cAAW,EAAX,MAAM,mBAAG,EAAE,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,CAAA;AACzB,CAAC,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.es2019.d.ts","../../../../node_modules/typescript/lib/lib.es2020.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.es2019.array.d.ts","../../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../teleport-types/dist/cjs/helper.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-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/utils/generic.d.ts","../../../teleport-shared/dist/cjs/index.d.ts","../../../../node_modules/@babel/types/lib/index.d.ts","../../../teleport-plugin-common/dist/cjs/builders/ast-builders.d.ts","../../../teleport-plugin-common/dist/cjs/utils/parsed-ast.d.ts","../../../teleport-plugin-common/dist/cjs/builders/style-builders.d.ts","../../../teleport-plugin-common/dist/cjs/builders/hast-builders.d.ts","../../../teleport-plugin-common/dist/cjs/utils/ast-utils.d.ts","../../../teleport-plugin-common/dist/cjs/utils/style-utils.d.ts","../../../teleport-plugin-common/dist/cjs/utils/hast-utils.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-html/types.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-html/index.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-jsx/types.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-jsx/index.d.ts","../../../teleport-plugin-common/dist/cjs/index.d.ts","../../src/style-sheet.ts","../../src/utils.ts","../../src/index.ts","../../../../node_modules/@types/node/assert.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/diagnostics_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/dom-events.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/readline/promises.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/stream/consumers.d.ts","../../../../node_modules/@types/node/stream/web.d.ts","../../../../node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/@types/node/test.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/v8.d.ts","../../../../node_modules/@types/node/vm.d.ts","../../../../node_modules/@types/node/wasi.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/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":"8730f4bf322026ff5229336391a18bcaa1f94d4f82416c8b2f3954e2ccaae2ba","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","4b421cbfb3a38a27c279dec1e9112c3d1da296f77a1a85ddadf7e7a425d45d18","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9",{"version":"3aafcb693fe5b5c3bd277bd4c3a617b53db474fe498fc5df067c5603b1eebde7","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"5f406584aef28a331c36523df688ca3650288d14f39c5d2e555c95f0d2ff8f6f","affectsGlobalScope":true},{"version":"22f230e544b35349cfb3bd9110b6ef37b41c6d6c43c3314a31bd0d9652fcec72","affectsGlobalScope":true},{"version":"7ea0b55f6b315cf9ac2ad622b0a7813315bb6e97bf4bb3fbf8f8affbca7dc695","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"eb26de841c52236d8222f87e9e6a235332e0788af8c87a71e9e210314300410a","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"5e5e095c4470c8bab227dbbc61374878ecead104c74ab9960d3adcccfee23205","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"2768ef564cfc0689a1b76106c421a2909bdff0acbe87da010785adab80efdd5c","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},"b09482535eb7d553ab0507e93616b811a3194a0339292f0e534787e4b01568bb","6eab4670a4b4a02ba43f71c8ae8e02bae88e303f837e5b2cf023a50fcadfd8f7","dc19b304f9b96efbea7359264ac17eaf4c2d3fd231df7306eddfb983039785ca","71a689048584cde03cb508408ae7c3b04ad8f10af887865e8b65c27ed9d91488","d50fe6e9eb7f4722fa789aab25bf60d0dfbcc36cc76af4a7d7af2b5886665f93","6ba1631f84ef4507073189c4ada06d6de8bac89375ea3b49e34e49006cc44a3f","afa9397f3aa80897cec3ddec1dd6f7c8741106ce96090f74df790a474b114ed6","8c08668019739abf45bfa24fb3559a4362161c438e71e3925f06bd6ea2792883","22c6f439ba8a0f6347a16d6fad503bb8a2fbfe778e5cf5c90918659c653c8a8c","2c55653d46d0d2bfa1b84b54c3a4ffa6e43de5b05c9f808e46b42adffc4e3e92","1875bde1eafbc9d923cd1624ac1fd6da0af82347c2a9c7a847a660cc4fa01a33","ac65f04c2df0218cb8e54f012745cbfcc3c0e67c1f6b1e557d88842bbb72e2db","ce5106bc15353dd05f601ecb48fd99b152362346cbbb3b398e0d5fdc36d24b0a","7d69ac79c9de7620a1bdd926fd4b20b8e968d6467a220eac2a836988ab47c933","c7b126a023fbcbe6b07edf69283b049fc3ca6958bc19934cde610a0ab5ae8ef3","7383bcf1e3b4970ec58cddeb24becd4fcd207aa518ca46270a6872b63712c29e","047e2b316cef7080f13baea9a0fcfc2f80c65c3f2c1fd98a7d892639bee26610","d4f36091f2a7fac55cac2d088d46e68f01cd5cf68e3db5770b3ba62641875e18","5a007f687f1be0ed103375930c7027eb6f10d0b826472f7f6d7a5b260502104e","64e43fe64a91d26169ee2bbc877135375b99ca4c5806b706f63e962528a3eb30","dcaef7f7c1f0cb2dba19a1a70cc8d5276faa68e50bc69d6a006d3aaaaa9f7aa7","cfbee63950fddcd052c993abe94531a3d16e5273f3f14dc493fd47f78d0cdd03","ffd67adf9464cf9bcddc3954fcd27d59b60e85acb02101fefe8b0eb642a2be2f","59b8c7576043b12356b13745811130ae5fa9c37cbd7ec5e49ecac8e88b8c9992",{"version":"f7546e17403812cbe157ecd90a5635fdd9782d54595dfad4afbed2d2d43f9d24","signature":"41eb064197443ceae7565b91f337730f931f75c0114ba9afee5331a7b919cdca"},{"version":"18043ddd83c806db9bae5b05e7d7aa4edf5c77524c640c74cdfc3ffa677816a0","signature":"0ce05e3e2c3c1a736ca900efd153182b373ddab4b966658675c2df9e01462bc4"},{"version":"ac8817dfe8b9beb42d0d82d4078e3c1b76a7fc04392d8e632600bf5fbecd16f8","signature":"53801d33d5b6842237a09976d47b68900914c99dd2b7b44c27edab42c2e29213"},"ba8691cf6bea9d53e6bf6cbc22af964a9633a21793981a1be3dce65e7a714d8b","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"bce910d9164785c9f0d4dcea4be359f5f92130c7c7833dea6138ab1db310a1f9","affectsGlobalScope":true},"7d2e3fea24c712c99c03ad8f556abedbfe105f87f1be10b95dbd409d24bc05a3",{"version":"7c387a02bf156d8d45667134d32518ac3ca1b99ca50ca9deff2c1a03eb6d1a81","affectsGlobalScope":true},"3719525a8f6ab731e3dfd585d9f87df55ec7d50d461df84f74eb4d68bb165244","f993522fd7d01ae1ead930091fe35130b8415720d6c2123dc2a7e8eb11bb3cba",{"version":"d5135ad93b33adcce80b18f8065087934cdc1730d63db58562edcf017e1aad9b","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","b787b5b54349a24f07d089b612a9fb8ff024dbbe991ff52ea2b188a6b1230644","bb9c4ffa5e6290c6980b63c815cdd1625876dadb2efaf77edbe82984be93e55e","1cdcfc1f624d6c08aa12c73935f6e13f095919cd99edf95752951796eb225729","df6d4b6ba1e64f682091862faa30104e93891f9e7202d006bf5e7a88ab4a0dbe","14b5aa23c5d0ae1907bc696ac7b6915d88f7d85799cc0dc2dcf98fbce2c5a67c","5c439dafdc09abe4d6c260a96b822fa0ba5be7203c71a63ab1f1423cd9e838ea",{"version":"6b526a5ec4a401ca7c26cfe6a48e641d8f30af76673bad3b06a1b4504594a960","affectsGlobalScope":true},{"version":"c2fcbd6fad600e96fee8c5df1a62e908d477f5b47a9374b2bab7e74f52cfcc92","affectsGlobalScope":true},"5e3f2470ce8038c4005ff1baff18a69848383f431d6817d453e70d66e037f4a2","cc68e79b99f80e4dfd01967ec96be69efb0ff5bd7f779d9a2cc09dfe590ffd28","91d3d8f536f22dcaeeace0fc6f3544d3562e266a27cf3a2fe280b8051af5d006","9503113febdd737095465792cc074d541902c82c0aea3922f940de18784812ad","8d3c583a07e0c37e876908c2d5da575019f689df8d9fa4c081d99119d53dba22","2c828a5405191d006115ab34e191b8474bc6c86ffdc401d1a9864b1b6e088a58",{"version":"e630e5528e899219ae319e83bef54bf3bcb91b01d76861ecf881e8e614b167f0","affectsGlobalScope":true},"bcebb922784739bdb34c18ee51095d25a92b560c78ccd2eaacd6bd00f7443d83","7ee6ed878c4528215c82b664fe0cfe80e8b4da6c0d4cc80869367868774db8b1","b0973c3cbcdc59b37bf477731d468696ecaf442593ec51bab497a613a580fe30",{"version":"4989e92ba5b69b182d2caaea6295af52b7dc73a4f7a2e336a676722884e7139d","affectsGlobalScope":true},{"version":"0715e4cd28ad471b2a93f3e552ff51a3ae423417a01a10aa1d3bc7c6b95059d6","affectsGlobalScope":true},"5153a2fd150e46ce57bb3f8db1318d33f6ad3261ed70ceeff92281c0608c74a3","210d54cd652ec0fec8c8916e4af59bb341065576ecda039842f9ffb2e908507c","36b03690b628eab08703d63f04eaa89c5df202e5f1edf3989f13ad389cd2c091","0effadd232a20498b11308058e334d3339cc5bf8c4c858393e38d9d4c0013dcf","25846d43937c672bab7e8195f3d881f93495df712ee901860effc109918938cc","ff1bad1849903b15fba47f3c29bdec5f97324874c93933a89b2bca28a23977fb","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","69ee23dd0d215b09907ad30d23f88b7790c93329d1faf31d7835552a10cf7cbf","44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","23b89798789dffbd437c0c423f5d02d11f9736aea73d6abf16db4f812ff36eda",{"version":"d9b4afd96c3c0ff70e90d05ef022e582b102e665e9029d34940472dc3058360e","affectsGlobalScope":true},{"version":"3c4ba1dd9b12ffa284b565063108f2f031d150ea15b8fafbdc17f5d2a07251f3","affectsGlobalScope":true},"e10177274a35a9d07c825615340b2fcde2f610f53f3fb40269fd196b4288dda6","1422cd9e705adcc09088fda85a900c2b70e3ad36ea85846f68bd1a884cdf4e2b","3c13ef48634e7b5012fcf7e8fce7496352c2d779a7201389ca96a2a81ee4314d","5d0a25ec910fa36595f85a67ac992d7a53dd4064a1ba6aea1c9f14ab73a023f2",{"version":"22d7b95cb63dead43834ae20ee492c9c8b6d90db3957d21665199f0efb1d3e26","affectsGlobalScope":true},{"version":"a9fc1469744055a3435f203123246b96c094e7ff8c4e1c3863829d9b705b7a34","affectsGlobalScope":true},"868831cab82b65dfe1d68180e898af1f2101e89ba9b754d1db6fb8cc2fac1921","0fe8985a28f82c450a04a6edf1279d7181c0893f37da7d2a27f8efd4fd5edb03","e59a892d87e72733e2a9ca21611b9beb52977be2696c7ba4b216cbbb9a48f5aa",{"version":"52120bb7e4583612225bdf08e7c12559548170f11e660d33a33623bae9bbdbba","affectsGlobalScope":true},"8a300fa9b698845a1f9c41ecbe2c5966634582a8e2020d51abcace9b55aa959e",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"d5be4343a9ace4611f04a6fffd91ceba91265fa15bfb0149306e0a6963e1a015","e222104af6cb9415238ad358488b74d76eceeff238c1268ec6e85655b05341da","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","eba230221317c985ab1953ccc3edc517f248b37db4fef7875cb2c8d08aff7be7","b83e796810e475da3564c6515bc0ae9577070596a33d89299b7d99f94ecfd921","b4439890c168d646357928431100daac5cbdee1d345a34e6bf6eca9f3abe22bc","5d72971a459517c44c1379dab9ed248e87a61ba0a1e0f25c9d67e1e640cd9a09","02d734976af36f4273d930bea88b3e62adf6b078cf120c1c63d49aa8d8427c5c",{"version":"f624e578325b8c58e55b30c998b1f4c3ec1b61a9fa66373da4250c89b7880d44","affectsGlobalScope":true},{"version":"d3002f620eab4bf6476c9da5c0efb2041d46f7df8b3032a5631bd206abef2c75","affectsGlobalScope":true}],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"declarationMap":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"module":99,"noImplicitAny":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","sourceMap":true,"target":1},"fileIdsList":[[116],[116,128,130],[116,124,125],[116,124,125,126,127],[116,129],[116,131],[70,116],[73,116],[74,79,107,116],[75,86,87,94,104,115,116],[75,76,86,94,116],[77,116],[78,79,87,95,116],[79,104,112,116],[80,82,86,94,116],[81,116],[82,83,116],[86,116],[84,86,116],[86,87,88,104,115,116],[86,87,88,101,104,107,116],[116,120],[82,86,89,94,104,115,116],[86,87,89,90,94,104,112,115,116],[89,91,104,112,115,116],[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,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122],[86,92,116],[93,115,116],[82,86,94,104,116],[95,116],[96,116],[73,97,116],[98,114,116,120],[99,116],[100,116],[86,101,102,116],[101,103,116,118],[74,86,104,105,106,107,116],[74,104,106,116],[104,105,116],[107,116],[108,116],[104,116],[86,110,111,116],[110,111,116],[79,94,104,112,116],[113,116],[94,114,116],[74,89,100,115,116],[79,116],[104,116,117],[116,118],[116,119],[74,79,86,88,97,104,115,116,118,120],[104,116,121],[48,54,116],[48,116],[48,54,56,116],[55,56,57,58,59,60,61,62,63,64,65,116],[48,62,116],[48,54,64,116],[48,53,54,66,67,68,116],[48,53,66,116],[49,50,51,52,116],[44,116],[44,45,46,47,116],[43,116],[43,44,116],[48,67],[48]],"referencedMap":[[54,1],[131,2],[124,1],[126,3],[128,4],[127,3],[125,1],[130,5],[129,1],[132,6],[70,7],[71,7],[73,8],[74,9],[75,10],[76,11],[77,12],[78,13],[79,14],[80,15],[81,16],[82,17],[83,17],[85,18],[84,19],[86,18],[87,20],[88,21],[72,22],[122,1],[89,23],[90,24],[91,25],[123,26],[92,27],[93,28],[94,29],[95,30],[96,31],[97,32],[98,33],[99,34],[100,35],[101,36],[102,36],[103,37],[104,38],[106,39],[105,40],[107,41],[108,42],[109,43],[110,44],[111,45],[112,46],[113,47],[114,48],[115,49],[116,50],[117,51],[118,52],[119,53],[120,54],[121,55],[8,1],[10,1],[9,1],[2,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[3,1],[4,1],[22,1],[19,1],[20,1],[21,1],[23,1],[24,1],[25,1],[5,1],[26,1],[27,1],[28,1],[29,1],[6,1],[33,1],[30,1],[31,1],[32,1],[34,1],[7,1],[35,1],[40,1],[41,1],[36,1],[37,1],[38,1],[39,1],[1,1],[42,1],[55,56],[58,57],[57,58],[66,59],[63,60],[62,57],[65,61],[64,56],[59,58],[61,57],[56,1],[60,57],[69,62],[67,63],[68,63],[49,57],[53,64],[52,1],[50,1],[51,57],[46,1],[45,65],[43,1],[48,66],[44,67],[47,68]],"exportedModulesMap":[[54,1],[131,2],[124,1],[126,3],[128,4],[127,3],[125,1],[130,5],[129,1],[132,6],[70,7],[71,7],[73,8],[74,9],[75,10],[76,11],[77,12],[78,13],[79,14],[80,15],[81,16],[82,17],[83,17],[85,18],[84,19],[86,18],[87,20],[88,21],[72,22],[122,1],[89,23],[90,24],[91,25],[123,26],[92,27],[93,28],[94,29],[95,30],[96,31],[97,32],[98,33],[99,34],[100,35],[101,36],[102,36],[103,37],[104,38],[106,39],[105,40],[107,41],[108,42],[109,43],[110,44],[111,45],[112,46],[113,47],[114,48],[115,49],[116,50],[117,51],[118,52],[119,53],[120,54],[121,55],[8,1],[10,1],[9,1],[2,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[3,1],[4,1],[22,1],[19,1],[20,1],[21,1],[23,1],[24,1],[25,1],[5,1],[26,1],[27,1],[28,1],[29,1],[6,1],[33,1],[30,1],[31,1],[32,1],[34,1],[7,1],[35,1],[40,1],[41,1],[36,1],[37,1],[38,1],[39,1],[1,1],[42,1],[55,56],[58,57],[57,58],[66,59],[63,60],[62,57],[65,61],[64,56],[59,58],[61,57],[56,1],[60,57],[69,69],[67,70],[68,70],[49,57],[53,64],[52,1],[50,1],[51,57],[46,1],[45,65],[43,1],[48,66],[44,67],[47,68]],"semanticDiagnosticsPerFile":[54,131,124,126,128,127,125,130,129,132,70,71,73,74,75,76,77,78,79,80,81,82,83,85,84,86,87,88,72,122,89,90,91,123,92,93,94,95,96,97,98,99,100,101,102,103,104,106,105,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,8,10,9,2,11,12,13,14,15,16,17,18,3,4,22,19,20,21,23,24,25,5,26,27,28,29,6,33,30,31,32,34,7,35,40,41,36,37,38,39,1,42,55,58,57,66,63,62,65,64,59,61,56,60,69,67,68,49,53,52,50,51,46,45,43,48,44,47]},"version":"4.9.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.es2019.d.ts","../../../../node_modules/typescript/lib/lib.es2020.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.es2019.array.d.ts","../../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../teleport-types/dist/cjs/helper.d.ts","../../../teleport-types/dist/cjs/uidl.d.ts","../../../../node_modules/@babel/types/lib/index.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-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/utils/generic.d.ts","../../../teleport-shared/dist/cjs/index.d.ts","../../../teleport-plugin-common/dist/cjs/builders/ast-builders.d.ts","../../../teleport-plugin-common/dist/cjs/utils/parsed-ast.d.ts","../../../teleport-plugin-common/dist/cjs/builders/style-builders.d.ts","../../../teleport-plugin-common/dist/cjs/builders/hast-builders.d.ts","../../../teleport-plugin-common/dist/cjs/utils/types.d.ts","../../../teleport-plugin-common/dist/cjs/utils/ast-utils.d.ts","../../../teleport-plugin-common/dist/cjs/utils/style-utils.d.ts","../../../teleport-plugin-common/dist/cjs/utils/hast-utils.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-html/types.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-html/index.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-jsx/types.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-jsx/index.d.ts","../../../teleport-plugin-common/dist/cjs/index.d.ts","../../src/style-sheet.ts","../../src/utils.ts","../../src/index.ts","../../../../node_modules/@types/node/assert.d.ts","../../../../node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/buffer/index.d.ts","../../../../node_modules/undici-types/header.d.ts","../../../../node_modules/undici-types/readable.d.ts","../../../../node_modules/undici-types/file.d.ts","../../../../node_modules/undici-types/fetch.d.ts","../../../../node_modules/undici-types/formdata.d.ts","../../../../node_modules/undici-types/connector.d.ts","../../../../node_modules/undici-types/client.d.ts","../../../../node_modules/undici-types/errors.d.ts","../../../../node_modules/undici-types/dispatcher.d.ts","../../../../node_modules/undici-types/global-dispatcher.d.ts","../../../../node_modules/undici-types/global-origin.d.ts","../../../../node_modules/undici-types/pool-stats.d.ts","../../../../node_modules/undici-types/pool.d.ts","../../../../node_modules/undici-types/handlers.d.ts","../../../../node_modules/undici-types/balanced-pool.d.ts","../../../../node_modules/undici-types/agent.d.ts","../../../../node_modules/undici-types/mock-interceptor.d.ts","../../../../node_modules/undici-types/mock-agent.d.ts","../../../../node_modules/undici-types/mock-client.d.ts","../../../../node_modules/undici-types/mock-pool.d.ts","../../../../node_modules/undici-types/mock-errors.d.ts","../../../../node_modules/undici-types/proxy-agent.d.ts","../../../../node_modules/undici-types/api.d.ts","../../../../node_modules/undici-types/cookies.d.ts","../../../../node_modules/undici-types/patch.d.ts","../../../../node_modules/undici-types/filereader.d.ts","../../../../node_modules/undici-types/diagnostics-channel.d.ts","../../../../node_modules/undici-types/websocket.d.ts","../../../../node_modules/undici-types/content-type.d.ts","../../../../node_modules/undici-types/cache.d.ts","../../../../node_modules/undici-types/interceptors.d.ts","../../../../node_modules/undici-types/index.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/diagnostics_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/dom-events.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/readline/promises.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/stream/consumers.d.ts","../../../../node_modules/@types/node/stream/web.d.ts","../../../../node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/@types/node/test.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/v8.d.ts","../../../../node_modules/@types/node/vm.d.ts","../../../../node_modules/@types/node/wasi.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/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":"8730f4bf322026ff5229336391a18bcaa1f94d4f82416c8b2f3954e2ccaae2ba","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","4b421cbfb3a38a27c279dec1e9112c3d1da296f77a1a85ddadf7e7a425d45d18","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9",{"version":"3aafcb693fe5b5c3bd277bd4c3a617b53db474fe498fc5df067c5603b1eebde7","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"5f406584aef28a331c36523df688ca3650288d14f39c5d2e555c95f0d2ff8f6f","affectsGlobalScope":true},{"version":"22f230e544b35349cfb3bd9110b6ef37b41c6d6c43c3314a31bd0d9652fcec72","affectsGlobalScope":true},{"version":"7ea0b55f6b315cf9ac2ad622b0a7813315bb6e97bf4bb3fbf8f8affbca7dc695","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"eb26de841c52236d8222f87e9e6a235332e0788af8c87a71e9e210314300410a","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"5e5e095c4470c8bab227dbbc61374878ecead104c74ab9960d3adcccfee23205","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"2768ef564cfc0689a1b76106c421a2909bdff0acbe87da010785adab80efdd5c","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},"14fc7efae8b184b18019a5906c6f6de752823b44ff1acf7924bbdc8877ded21b","c4f7e2add901536e83f79058448f366acb5ce1f0251bf9a5ae17c83ce05e0b09","55584873eae27c5607725f0a9b2123cdea9100fd47cd4bfd582b567a7c363877","6cc8ff8f1d371e5a8560481cb8c105da5fd790b604e8642b0c1cff2ab4fd8e70","71a689048584cde03cb508408ae7c3b04ad8f10af887865e8b65c27ed9d91488","f29399e10ced2ff9ecbe07448806c44dfcb87dcf281cb7ccac3061174c3cae37","6ba1631f84ef4507073189c4ada06d6de8bac89375ea3b49e34e49006cc44a3f","afa9397f3aa80897cec3ddec1dd6f7c8741106ce96090f74df790a474b114ed6","8c08668019739abf45bfa24fb3559a4362161c438e71e3925f06bd6ea2792883","242e6ce3f14c79123c25c35660899ba483f3fdc14ac8fa4a8eee5d03231c6bc3","96adbcda030ffa1952a15192edd1b852084c9bfbbd2066e5c8d567987c466e90","1875bde1eafbc9d923cd1624ac1fd6da0af82347c2a9c7a847a660cc4fa01a33","61fe981de167fe34caf4bd80a3c120747844dddb519eaf8a79549d5f78081fb7","7d69ac79c9de7620a1bdd926fd4b20b8e968d6467a220eac2a836988ab47c933","f2ad963e74d849aa62c16f4cae23b7f8f6e26844c0d61f42943086ee7e0cd896","51df45d44f1a2052bd14063736f385bfbdcfee3759fa5597c89f62b3bbdb02e5","10b2bb0a74b12ecbab5003ff91aa8b3da674f81a5d72fdd6f998bfaf664948c8","00831294201919772573dc677d0e74b73c3b828d35c7058aee3d4eb9b6941e08","d4f36091f2a7fac55cac2d088d46e68f01cd5cf68e3db5770b3ba62641875e18","6ff754e93a1ef94f7a92e7f6f9b67357f3b25836ab36d66202d1d07343186ab7","48533e135178c91d9abe0789d1c09802696a42985217396ccfcfd1034a099a0e","dcaef7f7c1f0cb2dba19a1a70cc8d5276faa68e50bc69d6a006d3aaaaa9f7aa7","954d24a996cb9a7af6dfb50f99e56cd0abfcc132dc425ea2c43a9d23a3470682","ffd67adf9464cf9bcddc3954fcd27d59b60e85acb02101fefe8b0eb642a2be2f","59b8c7576043b12356b13745811130ae5fa9c37cbd7ec5e49ecac8e88b8c9992",{"version":"3da7229c9f7a7a563354229e04509572e423c230e71770c002cacf7b70c675e1","signature":"ac92ddd458f33661d379ce921c238b95fa49bc867e34323bad3ddf18f9a2d30c"},{"version":"18043ddd83c806db9bae5b05e7d7aa4edf5c77524c640c74cdfc3ffa677816a0","signature":"0ce05e3e2c3c1a736ca900efd153182b373ddab4b966658675c2df9e01462bc4"},{"version":"cba5443be8a383e5a28f013c1ff9256a4e21534eb24c269b290656827a0da374","signature":"53801d33d5b6842237a09976d47b68900914c99dd2b7b44c27edab42c2e29213"},"0b4bc32128fda7bb0752cf284730dd3a817aae04a3d7f92e3b2d54bd61362fe1","7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","4967529644e391115ca5592184d4b63980569adf60ee685f968fd59ab1557188","5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","7180c03fd3cb6e22f911ce9ba0f8a7008b1a6ddbe88ccf16a9c8140ef9ac1686","25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","54cb85a47d760da1c13c00add10d26b5118280d44d58e6908d8e89abbd9d7725","3e4825171442666d31c845aeb47fcd34b62e14041bb353ae2b874285d78482aa","c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","a967bfe3ad4e62243eb604bf956101e4c740f5921277c60debaf325c1320bf88","e9775e97ac4877aebf963a0289c81abe76d1ec9a2a7778dbe637e5151f25c5f3","471e1da5a78350bc55ef8cef24eb3aca6174143c281b8b214ca2beda51f5e04a","cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","db3435f3525cd785bf21ec6769bf8da7e8a776be1a99e2e7efb5f244a2ef5fee","c3b170c45fc031db31f782e612adf7314b167e60439d304b49e704010e7bafe5","40383ebef22b943d503c6ce2cb2e060282936b952a01bea5f9f493d5fb487cc7","4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","3a84b7cb891141824bd00ef8a50b6a44596aded4075da937f180c90e362fe5f6","13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","33203609eba548914dc83ddf6cadbc0bcb6e8ef89f6d648ca0908ae887f9fcc5","0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","339dc5265ee5ed92e536a93a04c4ebbc2128f45eeec6ed29f379e0085283542c","9f0a92164925aa37d4a5d9dd3e0134cff8177208dba55fd2310cd74beea40ee2","8bfdb79bf1a9d435ec48d9372dc93291161f152c0865b81fc0b2694aedb4578d","2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","d32275be3546f252e3ad33976caf8c5e842c09cb87d468cb40d5f4cf092d1acc","4a0c3504813a3289f7fb1115db13967c8e004aa8e4f8a9021b95285502221bd1",{"version":"5f290ea7efbe9d8431e10df12c0d5672b67988e7c171c2d356749fac70347a55","affectsGlobalScope":true},"39b1a50d543770780b0409a4caacb87f3ff1d510aedfeb7dc06ed44188256f89",{"version":"49c89f8fa09d21c161e6a367448639e032f42d77cc2ec8ab54ecb8fa9a3ad59f","affectsGlobalScope":true},"e4b50850c2a62c7750428e452ee24b167180104d514d5e5c0ca691753365f610","304504c854c47a55ab4a89111a27a2daf8a3614740bd787cc1f2c51e5574239c",{"version":"95f9129a37dcace36e17b061a8484952586ecfe928c9c8ce526de1a2f4aaefa7","affectsGlobalScope":true},"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb","0f9061846236850a872cb44097d071631e93c8749a8b16c191fe3c2a48faede4","e46fa644658c2d6e5c85e954ea76b92c97d63f0851d3ccdab8c2a80d5962aaa9","1c611ff373ce1958aafc40b328048ac2540ba5c7f373cf2897e0d9aeaabe90a0","a307d22a0130ac94c1a17fffa6d57ac272deb5838cb966a9420911d259cdf1be","d2e415abf6cb81ac9e2700b4db5ea7be76b997e812285b8e5e1e414eb2750b6e","09d6cebdced6aa1181ac1523c8f22a133f5ed80589678b64051f0602f0518374",{"version":"ee1ee365d88c4c6c0c0a5a5701d66ebc27ccd0bcfcfaa482c6e2e7fe7b98edf7","affectsGlobalScope":true},{"version":"7c35691dc3972ff1507d8dd279d833f540973d0917bde22e191cf7a8feaac29f","affectsGlobalScope":true},"62662d7a886e5cfa870685720fd27b763743ca4d2cf29326f75d76606a64eadd","b8c670688bd228d3cc9c169690b09b687188c50ff263a94df63b207701105ad9","d8e16905907111390d5a943816306ae997dfe56476f14142166f8b13ee322eea","8068c911a1c40bc6c5ffc58c625b21d807778f6aa6d63a73e6f04f88bcac5b79","a1dbce56ad5f3a37caafb9033c9d190a199217d673f5fa099c8968d471a2fdaa","c6f77efcc19f51c8759779b6b6ee0d88046c15c15dadac8ffed729a6620daf39",{"version":"089867511b37a534ae71f3d9bc97acc0b925b7f5dbec113f98c4b49224c694eb","affectsGlobalScope":true},"269d0ea3202820c29a32c1f2a357837a4f1918426844f7e7c90af15ec40d1dc1","66432f885e30cf471573de22a5af5eca9ab46b37b122aec98beadf77e9b7df24","323506ce173f7f865f42f493885ee3dacd18db6359ea1141d57676d3781ce10c",{"version":"034e635df3c014df1d6b1110b724ca0c4d2d324b45a84974c7d6931f9cf95ea7","affectsGlobalScope":true},{"version":"87f9456115554cb0f78f098ddbd585096871c19d2d05274c1b1b4ade3151da78","affectsGlobalScope":true},"ea3ab3727cd6c222d94003ecafa30e8550c61eadcdabbf59514aee76e86211a5","d3cdd41693c5ed6bec4f1a1c399d9501372b14bd341bc46eedacf2854c5df5a7","2de7a21c92226fb8abbeed7a0a9bd8aa6d37e4c68a8c7ff7938c644267e9fcc1","6d6070c5c81ba0bfe58988c69e3ba3149fc86421fd383f253aeb071cbf29cd41","da618f0ea09d95c3b51514de43bf97dab008c85bede58aa57cf95e4984c7c957","48a35b181ecf47dbbc0a7ab4b5ba778d91eaa838ba42bf4aaaead42be77ef39a","269929a24b2816343a178008ac9ae9248304d92a8ba8e233055e0ed6dbe6ef71","93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","5195aeb0de306d1c5ca8033457fbcab5987657112fa6d4971cfeb7644493a369","c5dbf0003bc9f0f643e54cd00a3868d1afe85497fecb56be6f2373dc85102924",{"version":"ce73eb199c4bf96c015f069aac161488ed73ebeaea3d87b6d5aa9a968a7b38d4","affectsGlobalScope":true},{"version":"300f8e9de0b0c3482be3e749462b6ebc3dab8a316801f1da0def94aed0cd2018","affectsGlobalScope":true},"4e228e78c1e9b0a75c70588d59288f63a6258e8b1fe4a67b0c53fe03461421d9","962f105729d5b888c8b70e193f6020ee92c6c8144c827de40f80d65dd188ad7f","ac74e2b754fba690036f8221d978f6debb867462b87af254f24e924b677395d0","80858f6de9af22e53aff221fe3590215ea544c2aeb2cc60cf8e08a9c785c8fef",{"version":"068b8ee5c2cd90d7a50f2efadbbe353cb10196a41189a48bf4b2a867363012b4","affectsGlobalScope":true},{"version":"340659b96782f5813aad6c1f89ea1b83b2f3fa993115c7b30366375d9bae5a4e","affectsGlobalScope":true},"6f44a190351ab5e1811abebe007cf60518044772ccc08244f9f241706afa767f","fecdf44bec4ee9c5188e5f2f58c292c9689c02520900dceaaa6e76594de6da90","cf45d0510b661f1da461479851ff902f188edb111777c37055eff12fa986a23a",{"version":"895ca532c15c77cbb6a871af1870b57bcd0ca4f38a1bd69669dd0e95bb58565a","affectsGlobalScope":true},"f2b9440f98d6f94c8105883a2b65aee2fce0248f71f41beafd0a80636f3a565d",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"b510d0a18e3db42ac9765d26711083ec1e8b4e21caaca6dc4d25ae6e8623f447","e222104af6cb9415238ad358488b74d76eceeff238c1268ec6e85655b05341da","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","eba230221317c985ab1953ccc3edc517f248b37db4fef7875cb2c8d08aff7be7","b83e796810e475da3564c6515bc0ae9577070596a33d89299b7d99f94ecfd921","b4439890c168d646357928431100daac5cbdee1d345a34e6bf6eca9f3abe22bc","5d72971a459517c44c1379dab9ed248e87a61ba0a1e0f25c9d67e1e640cd9a09","02d734976af36f4273d930bea88b3e62adf6b078cf120c1c63d49aa8d8427c5c",{"version":"f624e578325b8c58e55b30c998b1f4c3ec1b61a9fa66373da4250c89b7880d44","affectsGlobalScope":true},{"version":"d3002f620eab4bf6476c9da5c0efb2041d46f7df8b3032a5631bd206abef2c75","affectsGlobalScope":true}],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"declarationMap":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"module":99,"noImplicitAny":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","sourceMap":true,"target":1},"fileIdsList":[[162,164],[158,159],[158,159,160,161],[163],[165],[71],[107],[108,113,141],[109,120,121,128,138,149],[109,110,120,128],[111,150],[112,113,121,129],[113,138,146],[114,116,120,128],[107,115],[116,117],[120],[118,120],[107,120],[120,121,122,138,149],[120,121,122,135,138,141],[105,154],[116,120,123,128,138,149],[120,121,123,124,128,138,146,149],[123,125,138,146,149],[71,72,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156],[120,126],[127,149,154],[116,120,128,138],[129],[130],[107,131],[132,148,154],[133],[134],[120,135,136],[135,137,150,152],[108,120,138,139,140,141],[108,138,140],[138,139],[141],[142],[107,138],[120,144,145],[144,145],[113,128,138,146],[147],[128,148],[108,123,134,149],[113,150],[138,151],[127,152],[153],[108,113,120,122,131,138,149,152,154],[138,155],[82,86,149],[82,138,149],[77],[79,82,146,149],[128,146],[157],[77,157],[79,82,128,149],[74,75,78,81,108,120,138,149],[74,80],[78,82,108,141,149,157],[108,157],[98,108,157],[76,77,157],[82],[76,77,78,79,80,81,82,83,84,86,87,88,89,90,91,92,93,94,95,96,97,99,100,101,102,103,104],[82,89,90],[80,82,90,91],[81],[74,77,82],[82,86,90,91],[86],[80,82,85,149],[74,79,80,82,86,89],[108,138],[77,82,98,108,154,157],[45,49],[49],[45,49,56],[55,56,57,58,60,61,62,63,64,65,66],[49,63],[45,49,65],[45,49,56,59],[45,49,54,60,67,68,69],[49,54,67,130],[49,54,67],[50,51,52,53],[44,45],[44,46,47,48],[43],[43,44],[49,68]],"referencedMap":[[165,1],[160,2],[162,3],[161,2],[164,4],[166,5],[71,6],[72,6],[107,7],[108,8],[109,9],[110,10],[111,11],[112,12],[113,13],[114,14],[115,15],[116,16],[117,16],[119,17],[118,18],[120,19],[121,20],[122,21],[106,22],[123,23],[124,24],[125,25],[157,26],[126,27],[127,28],[128,29],[129,30],[130,31],[131,32],[132,33],[133,34],[134,35],[135,36],[136,36],[137,37],[138,38],[140,39],[139,40],[141,41],[142,42],[143,43],[144,44],[145,45],[146,46],[147,47],[148,48],[149,49],[150,50],[151,51],[152,52],[153,53],[154,54],[155,55],[89,56],[96,57],[88,56],[103,58],[80,59],[79,60],[102,61],[97,62],[100,63],[82,64],[81,65],[77,66],[76,67],[99,68],[78,69],[83,70],[87,70],[105,71],[104,70],[91,72],[92,73],[94,74],[90,75],[93,76],[98,61],[85,77],[86,78],[95,79],[75,80],[101,81],[55,82],[58,83],[57,84],[67,85],[64,86],[63,83],[66,87],[65,82],[60,88],[62,82],[61,83],[70,89],[68,90],[69,91],[50,83],[54,92],[53,83],[52,83],[46,93],[49,94],[44,95],[48,96]],"exportedModulesMap":[[165,1],[160,2],[162,3],[161,2],[164,4],[166,5],[71,6],[72,6],[107,7],[108,8],[109,9],[110,10],[111,11],[112,12],[113,13],[114,14],[115,15],[116,16],[117,16],[119,17],[118,18],[120,19],[121,20],[122,21],[106,22],[123,23],[124,24],[125,25],[157,26],[126,27],[127,28],[128,29],[129,30],[130,31],[131,32],[132,33],[133,34],[134,35],[135,36],[136,36],[137,37],[138,38],[140,39],[139,40],[141,41],[142,42],[143,43],[144,44],[145,45],[146,46],[147,47],[148,48],[149,49],[150,50],[151,51],[152,52],[153,53],[154,54],[155,55],[89,56],[96,57],[88,56],[103,58],[80,59],[79,60],[102,61],[97,62],[100,63],[82,64],[81,65],[77,66],[76,67],[99,68],[78,69],[83,70],[87,70],[105,71],[104,70],[91,72],[92,73],[94,74],[90,75],[93,76],[98,61],[85,77],[86,78],[95,79],[75,80],[101,81],[55,82],[58,83],[57,84],[67,85],[64,86],[63,83],[66,87],[65,82],[60,88],[62,82],[61,83],[70,97],[68,83],[69,83],[50,83],[54,92],[53,83],[52,83],[46,93],[49,94],[44,95],[48,96]],"semanticDiagnosticsPerFile":[45,165,158,160,162,161,159,164,163,166,71,72,107,108,109,110,111,112,113,114,115,116,117,119,118,120,121,122,106,156,123,124,125,157,126,127,128,129,130,131,132,133,134,135,136,137,138,140,139,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,73,8,10,9,2,11,12,13,14,15,16,17,18,3,4,22,19,20,21,23,24,25,5,26,27,28,29,6,33,30,31,32,34,7,35,40,41,36,37,38,39,1,42,89,96,88,103,80,79,102,97,100,82,81,77,76,99,78,83,84,87,74,105,104,91,92,94,90,93,98,85,86,95,75,101,55,58,57,67,64,63,66,65,60,62,56,61,59,70,68,69,50,54,53,51,52,47,46,43,49,44,48]},"version":"4.9.5"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teleporthq/teleport-plugin-css-modules",
3
- "version": "0.39.0-alpha.0",
3
+ "version": "0.39.0",
4
4
  "description": "A plugin for handling the styles as a separate css-module file for JSX based components",
5
5
  "author": "teleportHQ",
6
6
  "license": "MIT",
@@ -25,9 +25,9 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@babel/types": "^7.5.5",
28
- "@teleporthq/teleport-plugin-common": "^0.39.0-alpha.0",
29
- "@teleporthq/teleport-shared": "^0.39.0-alpha.0",
30
- "@teleporthq/teleport-types": "^0.39.0-alpha.0"
28
+ "@teleporthq/teleport-plugin-common": "^0.39.0",
29
+ "@teleporthq/teleport-shared": "^0.39.0",
30
+ "@teleporthq/teleport-types": "^0.39.0"
31
31
  },
32
- "gitHead": "df4d50cae0177aa1ee5bc96dbc54b8d0bb39b040"
32
+ "gitHead": "8b3672b5e265b3930b2a76678580574bf02bc96d"
33
33
  }
package/src/index.ts CHANGED
@@ -27,9 +27,12 @@ import {
27
27
  UIDLStyleMediaQueryScreenSizeCondition,
28
28
  PluginCssModules,
29
29
  HastNode,
30
+ UIDLElement,
31
+ UIDLElementNode,
30
32
  } from '@teleporthq/teleport-types'
31
33
  import { createStyleSheetPlugin } from './style-sheet'
32
34
  import { generateStyledFromStyleContent } from './utils'
35
+ import { isJSXElement } from '@teleporthq/teleport-plugin-common/dist/cjs/utils/ast-utils'
33
36
 
34
37
  interface CSSModulesConfig {
35
38
  componentChunkName?: string
@@ -104,26 +107,34 @@ export const createCSSModulesPlugin: ComponentPluginFactory<CSSModulesConfig> =
104
107
  (componentChunk.meta.nodesLookup as Record<string, HastNode | types.JSXElement>) || {}
105
108
  const propsPrefix = componentChunk.meta.dynamicRefPrefix.prop as string
106
109
 
107
- UIDLUtils.traverseElements(node, (element) => {
108
- const { style, key, referencedStyles, dependency, attrs = {} } = element
109
- const jsxTag = astNodesLookup[key] as types.JSXElement
110
- const classNamesToAppend: Set<types.MemberExpression | types.Identifier> = new Set()
110
+ const generateStylesForElementNode = (element: UIDLElement) => {
111
+ const { style, key, referencedStyles, dependency, attrs = {}, elementType } = element
112
+ const jsxTag = astNodesLookup[key]
113
+ const classNamesToAppend: Set<
114
+ types.MemberExpression | types.Identifier | types.StringLiteral
115
+ > = new Set()
116
+
117
+ if (!jsxTag || !isJSXElement(jsxTag)) {
118
+ return
119
+ }
111
120
 
112
121
  if (dependency?.type === 'local') {
113
122
  StyleBuilders.setPropValueForCompStyle({
114
123
  attrs,
115
- key,
116
- jsxNodesLookup: astNodesLookup,
117
- getClassName: (styleName: string) => StringUtils.camelCaseToDashCase(styleName),
124
+ root: jsxTag,
125
+ getClassName: (styleName: string) =>
126
+ StringUtils.camelCaseToDashCase(elementType + styleName),
118
127
  })
119
128
  }
120
129
 
121
- if (!jsxTag) {
130
+ if (!style && !referencedStyles) {
122
131
  return
123
132
  }
124
133
 
125
- if (!style && !referencedStyles) {
126
- return
134
+ if (!key) {
135
+ throw new PluginCssModules(
136
+ 'Element node does not have a key \n' + JSON.stringify(element, null, 2)
137
+ )
127
138
  }
128
139
 
129
140
  const className = StringUtils.camelCaseToDashCase(key)
@@ -150,7 +161,7 @@ export const createCSSModulesPlugin: ComponentPluginFactory<CSSModulesConfig> =
150
161
  StyleBuilders.createDynamicStyleExpression(styleValue, propsPrefix)
151
162
  )
152
163
 
153
- /* If dynamic styles are on nested-styles they are unfortunately lost,
164
+ /* If dynamic styles are on nested-styles they are unfortunately lost,
154
165
  since inline style does not support that */
155
166
  if (Object.keys(inlineStyles).length > 0) {
156
167
  ASTUtils.addAttributeToJSXTag(jsxTag, 'style', inlineStyles)
@@ -194,13 +205,7 @@ export const createCSSModulesPlugin: ComponentPluginFactory<CSSModulesConfig> =
194
205
  case 'component-referenced': {
195
206
  const classContent = styleRef.content.content
196
207
  if (classContent.type === 'static') {
197
- classNamesToAppend.add(
198
- types.memberExpression(
199
- types.identifier(styleObjectImportName),
200
- types.identifier(`'${getClassName(String(classContent.content))}'`),
201
- true
202
- )
203
- )
208
+ classNamesToAppend.add(types.stringLiteral(String(classContent.content)))
204
209
  return
205
210
  }
206
211
 
@@ -223,8 +228,8 @@ export const createCSSModulesPlugin: ComponentPluginFactory<CSSModulesConfig> =
223
228
  if (!defaultPropValue) {
224
229
  return
225
230
  }
226
- /*
227
- Changing the default value of the prop.
231
+ /*
232
+ Changing the default value of the prop.
228
233
  When forceScoping is enabled the classnames change. So, we need to change the default prop too. */
229
234
  propDefinitions[classContent.content.id].defaultValue = getClassName(
230
235
  String(defaultPropValue)
@@ -254,7 +259,7 @@ export const createCSSModulesPlugin: ComponentPluginFactory<CSSModulesConfig> =
254
259
  const referedStyle = globalStyleSheet[content.referenceId]
255
260
  if (!referedStyle) {
256
261
  throw new PluginCssModules(
257
- `Style used from global stylesheet is missing - ${content.referenceId}`
262
+ `Style used from global stylesheet is missing plugin css module - ${content.referenceId}`
258
263
  )
259
264
  }
260
265
  classNamesToAppend.add(
@@ -279,7 +284,17 @@ export const createCSSModulesPlugin: ComponentPluginFactory<CSSModulesConfig> =
279
284
  classAttributeName,
280
285
  Array.from(classNamesToAppend)
281
286
  )
282
- })
287
+ }
288
+
289
+ UIDLUtils.traverseElements(node, generateStylesForElementNode)
290
+ for (const prop of Object.values(propDefinitions)) {
291
+ if (prop.type === 'element' && prop.defaultValue) {
292
+ UIDLUtils.traverseElements(
293
+ prop.defaultValue as UIDLElementNode,
294
+ generateStylesForElementNode
295
+ )
296
+ }
297
+ }
283
298
 
284
299
  /* Generating component scoped styles */
285
300
  if (Object.keys(componentStyleSheet).length > 0) {
@@ -287,7 +302,7 @@ export const createCSSModulesPlugin: ComponentPluginFactory<CSSModulesConfig> =
287
302
  componentStyleSheet,
288
303
  cssClasses,
289
304
  mediaStylesMap,
290
- (styleId: string) => StringUtils.camelCaseToDashCase(styleId)
305
+ (styleName: string) => StringUtils.camelCaseToDashCase(uidl.name + styleName)
291
306
  )
292
307
  }
293
308
 
@@ -6,39 +6,83 @@ import {
6
6
  FileType,
7
7
  } from '@teleporthq/teleport-types'
8
8
  import { StringUtils } from '@teleporthq/teleport-shared'
9
+ import { relative, join } from 'path'
10
+
9
11
  interface StyleSheetPlugin {
10
12
  fileName?: string
11
13
  moduleExtension?: boolean
14
+ relativeFontPath?: boolean
12
15
  }
13
16
 
14
17
  const defaultConfig = {
15
18
  fileName: 'style',
16
19
  moduleExtension: false,
20
+ relativeFontPath: false,
17
21
  }
18
22
 
19
23
  export const createStyleSheetPlugin: ComponentPluginFactory<StyleSheetPlugin> = (config) => {
20
- const { fileName, moduleExtension } = {
24
+ const { fileName, moduleExtension, relativeFontPath } = {
21
25
  ...defaultConfig,
22
26
  ...config,
23
27
  }
24
28
 
25
29
  const styleSheetPlugin: ComponentPlugin = async (structure) => {
26
- const { uidl, chunks } = structure
30
+ const {
31
+ uidl,
32
+ chunks,
33
+ options: { assets },
34
+ } = structure
27
35
  const { styleSetDefinitions = {}, designLanguage: { tokens = {} } = {} } = uidl
36
+ const {
37
+ localFonts = [],
38
+ fontsFolder,
39
+ identifier: assetIdentifier,
40
+ } = assets || { localFonts: [] }
41
+
42
+ const canSkipThePlugin =
43
+ localFonts?.length === 0 &&
44
+ Object.keys(styleSetDefinitions).length === 0 &&
45
+ Object.keys(tokens).length === 0
28
46
 
29
- if (
30
- (!styleSetDefinitions && !tokens) ||
31
- (Object.keys(styleSetDefinitions).length === 0 && Object.keys(tokens).length === 0)
32
- ) {
33
- return
47
+ if (canSkipThePlugin) {
48
+ return structure
34
49
  }
35
50
 
51
+ uidl.outputOptions = uidl.outputOptions || {}
52
+ uidl.outputOptions.styleFileName = moduleExtension ? `${fileName}.module` : fileName
53
+
36
54
  const cssMap: string[] = []
37
55
  const mediaStylesMap: Record<
38
56
  string,
39
57
  Array<{ [x: string]: Record<string, string | number> }>
40
58
  > = {}
41
59
 
60
+ if (localFonts.length > 0) {
61
+ localFonts.forEach((font) => {
62
+ const properties = StyleUtils.getContentOfStyleObject(font.properties) as Record<
63
+ string,
64
+ string | number
65
+ >
66
+ const format = properties?.format ? `format('${properties.format}')` : ''
67
+ /* tslint:disable:no-string-literal */
68
+ delete properties['format']
69
+
70
+ const fontPath = relativeFontPath
71
+ ? join(
72
+ relative(join(...(uidl.outputOptions?.folderPath || [])), './'),
73
+ join(fontsFolder || '', font.path)
74
+ )
75
+ : join('/', assetIdentifier || '', 'fonts', font.path)
76
+
77
+ cssMap.push(
78
+ StyleBuilders.createFontDecleration({
79
+ ...properties,
80
+ src: `url("${fontPath}") ${format}`,
81
+ })
82
+ )
83
+ })
84
+ }
85
+
42
86
  if (Object.keys(tokens).length > 0) {
43
87
  cssMap.push(
44
88
  StyleBuilders.createCSSClassWithSelector(
@@ -65,9 +109,6 @@ export const createStyleSheetPlugin: ComponentPluginFactory<StyleSheetPlugin> =
65
109
  return structure
66
110
  }
67
111
 
68
- uidl.outputOptions = uidl.outputOptions || {}
69
- uidl.outputOptions.styleFileName = moduleExtension ? `${fileName}.module` : fileName
70
-
71
112
  chunks.push({
72
113
  name: fileName,
73
114
  type: ChunkType.STRING,