@teleporthq/teleport-plugin-react-styled-jsx 0.20.0 → 0.21.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.
@@ -38,7 +38,7 @@ describe('Component Scoped Styles', () => {
38
38
 
39
39
  expect(chunks.length).toBe(1)
40
40
  expect(styles).toContain('primary-navbar')
41
- expect(styles).toContain('.secondaryNavbar')
41
+ expect(styles).toContain('.secondary-navbar')
42
42
  })
43
43
 
44
44
  it('Generates style sheet and adds them to the node with JSX template', async () => {
package/dist/cjs/index.js CHANGED
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
3
  if (k2 === undefined) k2 = k;
15
4
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -79,11 +68,11 @@ var types = __importStar(require("@babel/types"));
79
68
  var createReactStyledJSXPlugin = function (config) {
80
69
  var _a = config || {}, _b = _a.componentChunkName, componentChunkName = _b === void 0 ? 'jsx-component' : _b, _c = _a.forceScoping, forceScoping = _c === void 0 ? false : _c;
81
70
  var reactStyledJSXPlugin = function (structure) { return __awaiter(void 0, void 0, void 0, function () {
82
- var uidl, chunks, options, projectStyleSet, node, _a, componentStyleSheet, componentChunk, jsxNodesLookup, propsPrefix, mediaStylesMap, classMap, transformStyle, jsxASTNodeReference, rootJSXNode, originalRootNode, componentAST, arrowFnExpr, bodyStatement, returnStatement;
83
- return __generator(this, function (_b) {
71
+ var uidl, chunks, options, projectStyleSet, node, _a, componentStyleSheet, _b, propDefinitions, componentChunk, jsxNodesLookup, propsPrefix, mediaStylesMap, classMap, transformStyle, jsxASTNodeReference, rootJSXNode, originalRootNode, componentAST, arrowFnExpr, bodyStatement, returnStatement;
72
+ return __generator(this, function (_c) {
84
73
  uidl = structure.uidl, chunks = structure.chunks, options = structure.options;
85
74
  projectStyleSet = options.projectStyleSet;
86
- node = uidl.node, _a = uidl.styleSetDefinitions, componentStyleSheet = _a === void 0 ? {} : _a;
75
+ node = uidl.node, _a = uidl.styleSetDefinitions, componentStyleSheet = _a === void 0 ? {} : _a, _b = uidl.propDefinitions, propDefinitions = _b === void 0 ? {} : _b;
87
76
  componentChunk = chunks.find(function (chunk) { return chunk.name === componentChunkName; });
88
77
  if (!componentChunk) {
89
78
  return [2 /*return*/, structure];
@@ -100,18 +89,26 @@ var createReactStyledJSXPlugin = function (config) {
100
89
  case 'prop':
101
90
  return "${".concat(propsPrefix, ".").concat(styleValue.content.id, "}");
102
91
  default:
103
- throw new teleport_types_1.PluginStyledJSX("Error running transformDynamicStyles in reactStyledJSXChunkPlugin. Unsupported styleValue.content.referenceType value ".concat(styleValue.content.referenceType));
92
+ throw new teleport_types_1.PluginStyledJSX("Error running transformDynamicStyles in reactStyledJSXChunkPlugin.\n\n Unsupported styleValue.content.referenceType value ".concat(styleValue.content.referenceType));
104
93
  }
105
94
  });
106
95
  };
107
96
  teleport_shared_1.UIDLUtils.traverseElements(node, function (element) {
108
97
  var classNamesToAppend = new Set();
109
98
  var dynamicVariantsToAppend = new Set();
110
- var _a = element.style, style = _a === void 0 ? {} : _a, key = element.key, _b = element.referencedStyles, referencedStyles = _b === void 0 ? {} : _b;
99
+ var _a = element.style, style = _a === void 0 ? {} : _a, key = element.key, _b = element.referencedStyles, referencedStyles = _b === void 0 ? {} : _b, _c = element.attrs, attrs = _c === void 0 ? {} : _c, dependency = element.dependency, elementType = element.elementType;
111
100
  var elementClassName = teleport_shared_1.StringUtils.camelCaseToDashCase(key);
112
- var className = forceScoping
113
- ? "".concat(teleport_shared_1.StringUtils.camelCaseToDashCase(teleport_shared_1.UIDLUtils.getComponentClassName(uidl)), "-").concat(elementClassName)
114
- : elementClassName;
101
+ var className = getClassName(forceScoping, uidl.name, elementClassName);
102
+ if (forceScoping && (dependency === null || dependency === void 0 ? void 0 : dependency.type) === 'local') {
103
+ teleport_plugin_common_1.StyleBuilders.setPropValueForCompStyle({
104
+ key: key,
105
+ jsxNodesLookup: jsxNodesLookup,
106
+ attrs: attrs,
107
+ getClassName: function (str) {
108
+ return getClassName(forceScoping, teleport_shared_1.StringUtils.camelCaseToDashCase(elementType), str);
109
+ },
110
+ });
111
+ }
115
112
  if (Object.keys(style).length === 0 && Object.keys(referencedStyles).length === 0) {
116
113
  return;
117
114
  }
@@ -124,14 +121,21 @@ var createReactStyledJSXPlugin = function (config) {
124
121
  }
125
122
  Object.values(referencedStyles).forEach(function (styleRef) {
126
123
  var _a;
124
+ var _b;
127
125
  switch (styleRef.content.mapType) {
128
126
  case 'inlined': {
129
- var conditions = styleRef.content.conditions;
130
- if (conditions[0].conditionType === 'screen-size') {
131
- mediaStylesMap[conditions[0].maxWidth] = __assign(__assign({}, mediaStylesMap[conditions[0].maxWidth]), (_a = {}, _a[className] = transformStyle(styleRef.content.styles), _a));
127
+ var condition = styleRef.content.conditions[0];
128
+ if (condition.conditionType === 'screen-size') {
129
+ var maxWidth = condition.maxWidth;
130
+ if (!mediaStylesMap[String(maxWidth)]) {
131
+ mediaStylesMap[String(maxWidth)] = [];
132
+ }
133
+ mediaStylesMap[String(maxWidth)].push((_a = {},
134
+ _a[className] = transformStyle(styleRef.content.styles),
135
+ _a));
132
136
  }
133
- if (conditions[0].conditionType === 'element-state') {
134
- classMap.push(teleport_plugin_common_1.StyleBuilders.createCSSClassWithSelector(className, "&:".concat(conditions[0].content), transformStyle(styleRef.content.styles)));
137
+ if (condition.conditionType === 'element-state') {
138
+ classMap.push(teleport_plugin_common_1.StyleBuilders.createCSSClassWithSelector(className, "&:".concat(condition.content), transformStyle(styleRef.content.styles)));
135
139
  }
136
140
  classNamesToAppend.add(className);
137
141
  return;
@@ -143,27 +147,29 @@ var createReactStyledJSXPlugin = function (config) {
143
147
  if (styleRef.content.content.type === 'dynamic' &&
144
148
  styleRef.content.content.content.referenceType === 'prop') {
145
149
  dynamicVariantsToAppend.add(types.memberExpression(types.identifier(propsPrefix), types.identifier(styleRef.content.content.content.id)));
150
+ var defaultPropValue = (_b = propDefinitions[styleRef.content.content.content.id]) === null || _b === void 0 ? void 0 : _b.defaultValue;
151
+ if (!defaultPropValue) {
152
+ return;
153
+ }
154
+ propDefinitions[styleRef.content.content.content.id].defaultValue = getClassName(forceScoping, uidl.name, String(defaultPropValue));
146
155
  }
147
156
  if (styleRef.content.content.type === 'dynamic' &&
148
157
  styleRef.content.content.content.referenceType === 'comp') {
149
- classNamesToAppend.add(styleRef.content.content.content.id);
158
+ classNamesToAppend.add(getClassName(forceScoping, uidl.name, styleRef.content.content.content.id));
150
159
  }
151
160
  return;
152
161
  }
153
162
  case 'project-referenced': {
154
- if (!projectStyleSet) {
155
- throw new teleport_types_1.PluginStyledJSX("Project Style Sheet is missing, but the node is referring to it ".concat(element));
156
- }
157
163
  var content = styleRef.content;
158
164
  var referedStyle = projectStyleSet.styleSetDefinitions[content.referenceId];
159
165
  if (!referedStyle) {
160
- throw new teleport_types_1.PluginStyledJSX("Style that is being used for reference is missing - ".concat(content.referenceId));
166
+ throw new teleport_types_1.PluginStyledJSX("Project style - ".concat(content.referenceId, " is missing"));
161
167
  }
162
168
  classNamesToAppend.add(content.referenceId);
163
169
  return;
164
170
  }
165
171
  default: {
166
- throw new teleport_types_1.PluginStyledJSX('We support only project-referneced and inlined for now.');
172
+ throw new teleport_types_1.PluginStyledJSX("Un-supported style reference ".concat(JSON.stringify(styleRef.content, null, 2)));
167
173
  }
168
174
  }
169
175
  });
@@ -171,17 +177,12 @@ var createReactStyledJSXPlugin = function (config) {
171
177
  });
172
178
  /* Generating component scoped styles */
173
179
  if (Object.keys(componentStyleSheet).length > 0) {
174
- teleport_plugin_common_1.StyleBuilders.generateStylesFromStyleSetDefinitions(componentStyleSheet, classMap, mediaStylesMap, teleport_shared_1.UIDLUtils.getComponentClassName(uidl));
180
+ teleport_plugin_common_1.StyleBuilders.generateStylesFromStyleSetDefinitions(componentStyleSheet, classMap, mediaStylesMap, function (styleName) { return getClassName(forceScoping, uidl.name, styleName); });
175
181
  }
176
182
  if (Object.keys(mediaStylesMap).length > 0) {
177
- Object.keys(mediaStylesMap)
178
- .sort(function (a, b) { return Number(a) - Number(b); })
179
- .reverse()
180
- .forEach(function (mediaOffset) {
181
- classMap.push(teleport_plugin_common_1.StyleBuilders.createCSSClassWithMediaQuery("max-width: ".concat(mediaOffset, "px"), mediaStylesMap[mediaOffset]));
182
- });
183
+ classMap.push.apply(classMap, teleport_plugin_common_1.StyleBuilders.generateMediaStyle(mediaStylesMap));
183
184
  }
184
- if (!classMap || !classMap.length) {
185
+ if (classMap.length === 0) {
185
186
  return [2 /*return*/, structure];
186
187
  }
187
188
  jsxASTNodeReference = (0, utils_1.generateStyledJSXTag)(classMap.join('\n'));
@@ -202,4 +203,9 @@ var createReactStyledJSXPlugin = function (config) {
202
203
  };
203
204
  exports.createReactStyledJSXPlugin = createReactStyledJSXPlugin;
204
205
  exports.default = (0, exports.createReactStyledJSXPlugin)();
206
+ var getClassName = function (scoping, uidlName, nodeStyleName) {
207
+ return scoping
208
+ ? teleport_shared_1.StringUtils.camelCaseToDashCase("".concat(uidlName, "-").concat(nodeStyleName))
209
+ : teleport_shared_1.StringUtils.camelCaseToDashCase(nodeStyleName);
210
+ };
205
211
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+DAAoE;AACpE,6EAAyF;AACzF,6DAKmC;AACnC,iCAA8C;AAC9C,kDAAqC;AAO9B,IAAM,0BAA0B,G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AG,WAAW,CAAC,IAA4B,CAAA;YACxD,eAAe,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC,CAA0B,CAAA;YACtE,eAAe,CAAC,QAAQ,GAAG,WAAW,CAAA;YAEtC,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAA;YAC9C,sBAAO,SAAS,EAAA;;SACjB,CAAA;IAED,OAAO,oBAAoB,CAAA;AAC7B,CAAC,CAAA;AAnNY,QAAA,0BAA0B,8BAmNtC;AAED,kBAAe,IAAA,kCAA0B,GAAE,CAAA;AAE3C,IAAM,YAAY,GAAG,UAAC,OAAgB,EAAE,QAAgB,EAAE,aAAqB;IAC7E,OAAO,OAAO;QACZ,CAAC,CAAC,6BAAW,CAAC,mBAAmB,CAAC,UAAG,QAAQ,cAAI,aAAa,CAAE,CAAC;QACjE,CAAC,CAAC,6BAAW,CAAC,mBAAmB,CAAC,aAAa,CAAC,CAAA;AACpD,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.dom.d.ts","../../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../teleport-types/dist/cjs/uidl.d.ts","../../../teleport-types/dist/cjs/generators.d.ts","../../../teleport-types/dist/cjs/errors.d.ts","../../../teleport-types/dist/cjs/vuidl.d.ts","../../../teleport-types/dist/cjs/index.d.ts","../../../teleport-shared/dist/cjs/constants/index.d.ts","../../../teleport-shared/dist/cjs/utils/string-utils.d.ts","../../../teleport-shared/dist/cjs/utils/uidl-utils.d.ts","../../../teleport-shared/dist/cjs/index.d.ts","../../../../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/utils.ts","../../src/index.ts","../../../../node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/@types/node/globals.d.ts","../../../../node_modules/@types/node/async_hooks.d.ts","../../../../node_modules/@types/node/buffer.d.ts","../../../../node_modules/@types/node/child_process.d.ts","../../../../node_modules/@types/node/cluster.d.ts","../../../../node_modules/@types/node/console.d.ts","../../../../node_modules/@types/node/constants.d.ts","../../../../node_modules/@types/node/crypto.d.ts","../../../../node_modules/@types/node/dgram.d.ts","../../../../node_modules/@types/node/diagnostic_channel.d.ts","../../../../node_modules/@types/node/dns.d.ts","../../../../node_modules/@types/node/dns/promises.d.ts","../../../../node_modules/@types/node/domain.d.ts","../../../../node_modules/@types/node/events.d.ts","../../../../node_modules/@types/node/fs.d.ts","../../../../node_modules/@types/node/fs/promises.d.ts","../../../../node_modules/@types/node/http.d.ts","../../../../node_modules/@types/node/http2.d.ts","../../../../node_modules/@types/node/https.d.ts","../../../../node_modules/@types/node/inspector.d.ts","../../../../node_modules/@types/node/module.d.ts","../../../../node_modules/@types/node/net.d.ts","../../../../node_modules/@types/node/os.d.ts","../../../../node_modules/@types/node/path.d.ts","../../../../node_modules/@types/node/perf_hooks.d.ts","../../../../node_modules/@types/node/process.d.ts","../../../../node_modules/@types/node/punycode.d.ts","../../../../node_modules/@types/node/querystring.d.ts","../../../../node_modules/@types/node/readline.d.ts","../../../../node_modules/@types/node/repl.d.ts","../../../../node_modules/@types/node/stream.d.ts","../../../../node_modules/@types/node/stream/promises.d.ts","../../../../node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/@types/node/timers.d.ts","../../../../node_modules/@types/node/timers/promises.d.ts","../../../../node_modules/@types/node/tls.d.ts","../../../../node_modules/@types/node/trace_events.d.ts","../../../../node_modules/@types/node/tty.d.ts","../../../../node_modules/@types/node/url.d.ts","../../../../node_modules/@types/node/util.d.ts","../../../../node_modules/@types/node/util/types.d.ts","../../../../node_modules/@types/node/v8.d.ts","../../../../node_modules/@types/node/vm.d.ts","../../../../node_modules/@types/node/worker_threads.d.ts","../../../../node_modules/@types/node/zlib.d.ts","../../../../node_modules/@types/node/globals.global.d.ts","../../../../node_modules/@types/node/wasi.d.ts","../../../../node_modules/@types/node/ts3.6/base.d.ts","../../../../node_modules/@types/node/assert.d.ts","../../../../node_modules/@types/node/base.d.ts","../../../../node_modules/@types/node/index.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/cleanupSemantic.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/types.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/diffLines.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/printDiffs.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/index.d.ts","../../../../node_modules/@types/jest/node_modules/pretty-format/build/types.d.ts","../../../../node_modules/@types/jest/node_modules/pretty-format/build/index.d.ts","../../../../node_modules/@types/jest/index.d.ts","../../../../node_modules/@types/jest/ts3.2/index.d.ts"],"fileInfos":[{"version":"3ac1b83264055b28c0165688fda6dfcc39001e9e7828f649299101c23ad0a0c3","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06",{"version":"72704b10d97777e15f1a581b73f88273037ef752d2e50b72287bd0a90af64fe6","affectsGlobalScope":true},{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true},"42bf51402b690782aa9e6e437a2fb56a4de94c6f53fbb1728acff2dfd12df74a","ea413f16d37b1c222daffa48087c4b9ec79144baef2bc1cc1ddfdd7a3d4581c0","d49a625c30294f92976c954fffb2bcc2faeb81957148a363969ee742a43e2913","c4a042f3df0f5855fbd2ba352d7b0a581a478737b60f306fbb253dceaaa981d2","cd619820771edb23926bb084906215ab9c491255fa707488d15748b38909b747","28b22326000119f53de35f67ce3096ef475a2224274162b1283ef8718e1efdb5","18aecf77d74ed15ae1e875a0d43f2aa85387794fc447b2bc3c8ab7e2224d0ac6","0dab32de48eb8cf6149f776ef25cae2e68580fb8a55419dba27f022381fdd87a","d2ff55204dd4868d11a163c207d4fbe8d99cbf8cb36fa90d2a2f0bfc802b4d38","2ff9995137f3e5d68971388ec58af0c79721626323884513f9f5e2e996ac1fdd","b0900ff47d065c568038fc21d06685e58b7932750f22c49bb5cc4c18bdd35aa3","634d90459c22c0d82376bd48246b99b4a33fe56bc94c15874d1dac1e8a577d75","f735cc9f46bef33ef3c3e45308fbe6e5c9c1b917d6724d989c046bed3db5c3ed","cb33f5a5c73598b92f9aa13a0cf4d0df2dc38f05da11e4ad2fd8f0a735b3b09e","cd7c7f7b87c5e6ddb24a061393d5df9dbb0a926f3499e6f1a7f3d1da0ced3fcb","cf4ba36b05e7a6194696ffcace1710d29bb681b77a20b9b09460707ea3fcecd5","79fb51af7dc378dfaa66da7791d2c91560a151fa74da9f466d9fb60f5f9ccb39","c84d0840044a735055b7911998976dab071cde1ee160f551f2d845aea5630e2e","3465b9608c725b6a4c35b154f636011da24525a137d73976f1222c624cd9ce40","3594cd8018f215116e41c6f05c6fc9e6845a60c74753cdd1a9521d52f9ac0f2a","50ffd0c3b71cdca0f2c5004b39d876a494648c953079f07d257d679a7b95d40a","0772ec3b64f51bbe952d514e28b9aa3355a5322d1c242d93b3e67292dc7bae7c","54039b4d16b943ac81a3e239d8db01c3f1e6585778aa304fcabafe0714661e46","3563648df695b4d0e2237c87bf6a4df2c3278184f57827338606662c90b287d8","c7bdc99177a2a94d25fb13722adaaf5b3291bf70b4d1b27584ba189dd3889ba3",{"version":"d1c92b66c4105659fcad4eb76a1481f7311033e117d0678a1ec545e8ddb8d4c6","affectsGlobalScope":true},"e23424b97418eca3226fd24de079f1203eb70360622e4e093af2aff14d4be6ec","dee93c07b4df5e26010dc9ec4cdf4d6e4076bb4474d2a8371529217c8b2740a4","ed40f2f184db052dc8df62d1f199823c8bbccc487c0a2a7c54eeea0badcf4378","04eaa93bd75f937f9184dcb95a7983800c5770cf8ddd8ac0f3734dc02f5b20ef",{"version":"c8155caf28fc7b0a564156a5df28ad8a844a3bd32d331d148d8f3ce88025c870","affectsGlobalScope":true},"45ac321f2e15d268fd74a90ddaa6467dcaaff2c5b13f95b4b85831520fb7a491","dfc747ab8dd5f623055a4c26fd35e8cceca869fd3f1cf09701c941ca3679665a","c9f5f2920ff61d7158417b8440d5181ddc34a3dfef811a5677dd8a9fb91471e9","5cc0a492da3602510b8f5ed1852b1e0390002780d8758fbc8c0cd023ca7085f8","ec7dafafe751a5121f8f1c80201ebe7e7238c47e6329280a73c4d1ca4bb7fa28","64debeb10e4b7ae4ec9e89bfb4e04c6101ab98c3cc806d14e5488607cfec2753",{"version":"2866a528b2708aa272ec3eaafd3c980abb23aec1ef831cfc5eb2186b98c37ce5","affectsGlobalScope":true},{"version":"a5782d6cea81fe43d2db7ed41e789458c933ab3ab60602f7b5b14c4da3370496","affectsGlobalScope":true},"f258ba66915f0196ec344bc53afe1888240bbcc855ebd151b6cc072275533319","6194335ee3353f7226ba31f31d6301d0c6be87228419c0a08976ccd9d4f1213e","3ac12a54cfaa84683506db8d4cf779135a271d9f0ec18930cf53e61fbeea0c5d","cf3d3b087d1a8a3355eec47d206162c75e912315b9b5c1cd49fda93e948fb80a","36f316c066c4a72dd6f19fec49a074f935744fc9ccbe75c87ebc07fb2feb9062","42176966283d3835c34278b9b5c0f470d484c0c0c6a55c20a2c916a1ce69b6e8","0cff7901aedfe78e314f7d44088f07e2afa1b6e4f0473a4169b8456ca2fb245d","ec70fd6f8a9a83f850dab2960a6789e93d5b034b354a16814cad5daabf62a360","e2236264a811ed1d09a2487a433e8f5216ae62378cf233954ae220cf886f6717","3ec1e108d587a5661ec790db607f482605ba9f3830e118ce578e3ffa3c42e22b","100b3bb9d39d2b1b5340f1bf45a52e94ef1692b45232b4ba00fac5c3cc56d331",{"version":"04fe7e7d8008887943260af1fde2bfd4877e0dc57bf634e0f0b2f3d1794dfd11","affectsGlobalScope":true},"7f77304372efe3c9967e5f9ea2061f1b4bf41dc3cda3c83cdd676f2e5af6b7e6","992c6f6be16c0a1d2eec13ece33adeea2c747ba27fcd078353a8f4bb5b4fea58","2597718d91e306949d89e285bf34c44192014ef541c3bd7cbb825c022749e974","a6b0abdb67d63ebe964ba5fee31bc3daf10c12eecd46b24d778426010c04c67e","ac4801ebc2355ba32329070123b1cd15891bf71b41dcaf9e75b4744832126a59","fd2298fba0640e7295e7bd545e2dfbfcccbb00c27019e501c87965a02bbdebf6","4fd3c4debadce3e9ab9dec3eb45f7f5e2e3d4ad65cf975a6d938d883cfb25a50","71ddd49185b68f27bfac127ef5d22cb2672c278e53e5370d9020ef50ca9c377d","b1ea7a6eaa7608e0e0529aebd323b526a79c6c05a4e519ae5c779675004dcdf1","9fcb033a6208485d8f3fadde31eb5cbcaf99149cff3e40c0dc53ebc6d0dff4e9","7df562288f949945cf69c21cd912100c2afedeeb7cdb219085f7f4b46cb7dde4","9d16690485ff1eb4f6fc57aebe237728fd8e03130c460919da3a35f4d9bd97f5","dcc6910d95a3625fd2b0487fda055988e46ab46c357a1b3618c27b4a8dd739c9","f4149f1aa299474c7040a35fe8f8ac2ad078cc1b190415adc1fff3ed52d490ea","3730099ed008776216268a97771de31753ef71e0a7d0ec650f588cba2a06ce44","8d649dbc429d7139a1d9a14ea2bf8af1dc089e0a879447539587463d4b6c248c","60c9e27816ec8ac8df7240598bb086e95b47edfb454c5cbf4003c812e0ed6e39","e361aecf17fc4034b4c122a1564471cdcd22ef3a51407803cb5a5fc020c04d02","4926467de88a92a4fc9971d8c6f21b91eca1c0e7fc2a46cc4638ab9440c73875",{"version":"2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1","affectsGlobalScope":true},"fc0ae4a8ad3c762b96f9d2c3700cb879a373458cb0bf3175478e3b4f85f7ef2f","fabbec378e1ddd86fcf2662e716c2b8318acedb664ee3a4cba6f9e8ee8269cf1","b3593bd345ebea5e4d0a894c03251a3774b34df3d6db57075c18e089a599ba76","e61a21e9418f279bc480394a94d1581b2dee73747adcbdef999b6737e34d721b","efd55e8ca79171bf26c0d0e30221cb8ee1f5a31dd0c791ec4b2e886f42bab124","e222104af6cb9415238ad358488b74d76eceeff238c1268ec6e85655b05341da","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","eba230221317c985ab1953ccc3edc517f248b37db4fef7875cb2c8d08aff7be7","b83e796810e475da3564c6515bc0ae9577070596a33d89299b7d99f94ecfd921","b4439890c168d646357928431100daac5cbdee1d345a34e6bf6eca9f3abe22bc","5d72971a459517c44c1379dab9ed248e87a61ba0a1e0f25c9d67e1e640cd9a09","02d734976af36f4273d930bea88b3e62adf6b078cf120c1c63d49aa8d8427c5c",{"version":"f624e578325b8c58e55b30c998b1f4c3ec1b61a9fa66373da4250c89b7880d44","affectsGlobalScope":true},{"version":"d3002f620eab4bf6476c9da5c0efb2041d46f7df8b3032a5631bd206abef2c75","affectsGlobalScope":true}],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"module":1,"noImplicitAny":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","sourceMap":true,"target":1},"fileIdsList":[[109,111],[105,106],[105,106,107,108],[110],[112],[102],[101,102],[56,61],[67,68,75,84],[57,67,75],[93],[61,68,76],[84,89],[64,67,75],[65],[64],[67],[67,69,84,92],[67,68,84],[75,84,92],[67,68,70,75,84,89,92],[70,84,89,92],[103],[92],[64,67,84],[77],[55],[91],[82,93,96],[67,85],[84],[87],[61,75],[53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100],[75],[81],[94],[56,61,67,69,78,84,92,96],[33,38],[33],[33,38,40],[39,40,41,42,43,44,45,46,47,48,49],[33,46],[33,38,48],[33,37,38,50,51],[38,50],[34,35,36],[29],[29,30,31,32]],"referencedMap":[[112,1],[107,2],[109,3],[108,2],[111,4],[113,5],[53,6],[103,7],[56,8],[57,9],[58,10],[59,11],[60,12],[61,13],[62,14],[64,15],[65,16],[66,17],[67,17],[68,18],[69,19],[70,20],[71,21],[72,22],[104,23],[73,17],[74,24],[75,25],[77,26],[78,27],[79,28],[82,17],[83,29],[84,30],[85,31],[87,17],[88,32],[89,33],[101,34],[91,35],[92,36],[93,37],[95,31],[97,38],[98,31],[39,39],[42,40],[41,41],[50,42],[47,43],[46,40],[49,44],[48,39],[43,41],[45,40],[44,40],[52,45],[51,46],[34,40],[37,47],[36,40],[30,48],[33,49],[32,48]],"exportedModulesMap":[[112,1],[107,2],[109,3],[108,2],[111,4],[113,5],[53,6],[103,7],[56,8],[57,9],[58,10],[59,11],[60,12],[61,13],[62,14],[64,15],[65,16],[66,17],[67,17],[68,18],[69,19],[70,20],[71,21],[72,22],[104,23],[73,17],[74,24],[75,25],[77,26],[78,27],[79,28],[82,17],[83,29],[84,30],[85,31],[87,17],[88,32],[89,33],[101,34],[91,35],[92,36],[93,37],[95,31],[97,38],[98,31],[39,39],[42,40],[41,41],[50,42],[47,43],[46,40],[49,44],[48,39],[43,41],[45,40],[44,40],[52,45],[51,46],[34,40],[37,47],[36,40],[30,48],[33,49],[32,48]],"semanticDiagnosticsPerFile":[38,112,105,107,109,108,106,111,110,113,102,53,55,103,56,57,58,59,60,61,62,63,64,65,66,67,68,69,54,99,70,71,72,104,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,101,91,92,93,94,95,96,100,97,98,6,8,7,2,9,10,11,12,13,14,15,16,3,4,20,17,18,19,21,22,23,5,24,25,26,27,1,28,39,42,41,50,47,46,49,48,43,45,40,44,52,51,34,37,35,36,31,30,33,29,32]},"version":"4.6.2"}
1
+ {"program":{"fileNames":["../../../../node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/typescript/lib/lib.dom.d.ts","../../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../teleport-types/dist/cjs/uidl.d.ts","../../../teleport-types/dist/cjs/generators.d.ts","../../../teleport-types/dist/cjs/errors.d.ts","../../../teleport-types/dist/cjs/vuidl.d.ts","../../../teleport-types/dist/cjs/index.d.ts","../../../teleport-shared/dist/cjs/constants/index.d.ts","../../../teleport-shared/dist/cjs/utils/string-utils.d.ts","../../../teleport-shared/dist/cjs/utils/uidl-utils.d.ts","../../../teleport-shared/dist/cjs/index.d.ts","../../../../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/utils.ts","../../src/index.ts","../../../../node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/@types/node/globals.d.ts","../../../../node_modules/@types/node/async_hooks.d.ts","../../../../node_modules/@types/node/buffer.d.ts","../../../../node_modules/@types/node/child_process.d.ts","../../../../node_modules/@types/node/cluster.d.ts","../../../../node_modules/@types/node/console.d.ts","../../../../node_modules/@types/node/constants.d.ts","../../../../node_modules/@types/node/crypto.d.ts","../../../../node_modules/@types/node/dgram.d.ts","../../../../node_modules/@types/node/diagnostic_channel.d.ts","../../../../node_modules/@types/node/dns.d.ts","../../../../node_modules/@types/node/dns/promises.d.ts","../../../../node_modules/@types/node/domain.d.ts","../../../../node_modules/@types/node/events.d.ts","../../../../node_modules/@types/node/fs.d.ts","../../../../node_modules/@types/node/fs/promises.d.ts","../../../../node_modules/@types/node/http.d.ts","../../../../node_modules/@types/node/http2.d.ts","../../../../node_modules/@types/node/https.d.ts","../../../../node_modules/@types/node/inspector.d.ts","../../../../node_modules/@types/node/module.d.ts","../../../../node_modules/@types/node/net.d.ts","../../../../node_modules/@types/node/os.d.ts","../../../../node_modules/@types/node/path.d.ts","../../../../node_modules/@types/node/perf_hooks.d.ts","../../../../node_modules/@types/node/process.d.ts","../../../../node_modules/@types/node/punycode.d.ts","../../../../node_modules/@types/node/querystring.d.ts","../../../../node_modules/@types/node/readline.d.ts","../../../../node_modules/@types/node/repl.d.ts","../../../../node_modules/@types/node/stream.d.ts","../../../../node_modules/@types/node/stream/promises.d.ts","../../../../node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/@types/node/timers.d.ts","../../../../node_modules/@types/node/timers/promises.d.ts","../../../../node_modules/@types/node/tls.d.ts","../../../../node_modules/@types/node/trace_events.d.ts","../../../../node_modules/@types/node/tty.d.ts","../../../../node_modules/@types/node/url.d.ts","../../../../node_modules/@types/node/util.d.ts","../../../../node_modules/@types/node/util/types.d.ts","../../../../node_modules/@types/node/v8.d.ts","../../../../node_modules/@types/node/vm.d.ts","../../../../node_modules/@types/node/worker_threads.d.ts","../../../../node_modules/@types/node/zlib.d.ts","../../../../node_modules/@types/node/globals.global.d.ts","../../../../node_modules/@types/node/wasi.d.ts","../../../../node_modules/@types/node/ts3.6/base.d.ts","../../../../node_modules/@types/node/assert.d.ts","../../../../node_modules/@types/node/base.d.ts","../../../../node_modules/@types/node/index.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/cleanupSemantic.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/types.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/diffLines.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/printDiffs.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/index.d.ts","../../../../node_modules/@types/jest/node_modules/pretty-format/build/types.d.ts","../../../../node_modules/@types/jest/node_modules/pretty-format/build/index.d.ts","../../../../node_modules/@types/jest/index.d.ts","../../../../node_modules/@types/jest/ts3.2/index.d.ts"],"fileInfos":[{"version":"3ac1b83264055b28c0165688fda6dfcc39001e9e7828f649299101c23ad0a0c3","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06",{"version":"72704b10d97777e15f1a581b73f88273037ef752d2e50b72287bd0a90af64fe6","affectsGlobalScope":true},{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true},"d58cb8e3308641cdc84644105bd3d594045b356af29fd10d5a74f42c1a8396ad","18d176af12d389165c4ce64a4f3c365448f1a1beaccbef9a05793992160c89f4","d49a625c30294f92976c954fffb2bcc2faeb81957148a363969ee742a43e2913","c4a042f3df0f5855fbd2ba352d7b0a581a478737b60f306fbb253dceaaa981d2","cd619820771edb23926bb084906215ab9c491255fa707488d15748b38909b747","28b22326000119f53de35f67ce3096ef475a2224274162b1283ef8718e1efdb5","18aecf77d74ed15ae1e875a0d43f2aa85387794fc447b2bc3c8ab7e2224d0ac6","0dab32de48eb8cf6149f776ef25cae2e68580fb8a55419dba27f022381fdd87a","d2ff55204dd4868d11a163c207d4fbe8d99cbf8cb36fa90d2a2f0bfc802b4d38","2ff9995137f3e5d68971388ec58af0c79721626323884513f9f5e2e996ac1fdd","b0900ff47d065c568038fc21d06685e58b7932750f22c49bb5cc4c18bdd35aa3","634d90459c22c0d82376bd48246b99b4a33fe56bc94c15874d1dac1e8a577d75","b179b68aed28f107ab90bc0b15cecee4388c612203e5b848df805c8dae3e3071","cb33f5a5c73598b92f9aa13a0cf4d0df2dc38f05da11e4ad2fd8f0a735b3b09e","cd7c7f7b87c5e6ddb24a061393d5df9dbb0a926f3499e6f1a7f3d1da0ced3fcb","cf4ba36b05e7a6194696ffcace1710d29bb681b77a20b9b09460707ea3fcecd5","79fb51af7dc378dfaa66da7791d2c91560a151fa74da9f466d9fb60f5f9ccb39","c84d0840044a735055b7911998976dab071cde1ee160f551f2d845aea5630e2e","3465b9608c725b6a4c35b154f636011da24525a137d73976f1222c624cd9ce40","3594cd8018f215116e41c6f05c6fc9e6845a60c74753cdd1a9521d52f9ac0f2a","50ffd0c3b71cdca0f2c5004b39d876a494648c953079f07d257d679a7b95d40a","0772ec3b64f51bbe952d514e28b9aa3355a5322d1c242d93b3e67292dc7bae7c","54039b4d16b943ac81a3e239d8db01c3f1e6585778aa304fcabafe0714661e46","f3418518d15914c6f971928857e8b62c0ab9ecfbe7bcc5b946e015645a6532b9","c7bdc99177a2a94d25fb13722adaaf5b3291bf70b4d1b27584ba189dd3889ba3",{"version":"d1c92b66c4105659fcad4eb76a1481f7311033e117d0678a1ec545e8ddb8d4c6","affectsGlobalScope":true},"e23424b97418eca3226fd24de079f1203eb70360622e4e093af2aff14d4be6ec","dee93c07b4df5e26010dc9ec4cdf4d6e4076bb4474d2a8371529217c8b2740a4","ed40f2f184db052dc8df62d1f199823c8bbccc487c0a2a7c54eeea0badcf4378","04eaa93bd75f937f9184dcb95a7983800c5770cf8ddd8ac0f3734dc02f5b20ef",{"version":"c8155caf28fc7b0a564156a5df28ad8a844a3bd32d331d148d8f3ce88025c870","affectsGlobalScope":true},"45ac321f2e15d268fd74a90ddaa6467dcaaff2c5b13f95b4b85831520fb7a491","dfc747ab8dd5f623055a4c26fd35e8cceca869fd3f1cf09701c941ca3679665a","c9f5f2920ff61d7158417b8440d5181ddc34a3dfef811a5677dd8a9fb91471e9","5cc0a492da3602510b8f5ed1852b1e0390002780d8758fbc8c0cd023ca7085f8","ec7dafafe751a5121f8f1c80201ebe7e7238c47e6329280a73c4d1ca4bb7fa28","64debeb10e4b7ae4ec9e89bfb4e04c6101ab98c3cc806d14e5488607cfec2753",{"version":"2866a528b2708aa272ec3eaafd3c980abb23aec1ef831cfc5eb2186b98c37ce5","affectsGlobalScope":true},{"version":"a5782d6cea81fe43d2db7ed41e789458c933ab3ab60602f7b5b14c4da3370496","affectsGlobalScope":true},"f258ba66915f0196ec344bc53afe1888240bbcc855ebd151b6cc072275533319","6194335ee3353f7226ba31f31d6301d0c6be87228419c0a08976ccd9d4f1213e","3ac12a54cfaa84683506db8d4cf779135a271d9f0ec18930cf53e61fbeea0c5d","cf3d3b087d1a8a3355eec47d206162c75e912315b9b5c1cd49fda93e948fb80a","36f316c066c4a72dd6f19fec49a074f935744fc9ccbe75c87ebc07fb2feb9062","42176966283d3835c34278b9b5c0f470d484c0c0c6a55c20a2c916a1ce69b6e8","0cff7901aedfe78e314f7d44088f07e2afa1b6e4f0473a4169b8456ca2fb245d","ec70fd6f8a9a83f850dab2960a6789e93d5b034b354a16814cad5daabf62a360","e2236264a811ed1d09a2487a433e8f5216ae62378cf233954ae220cf886f6717","3ec1e108d587a5661ec790db607f482605ba9f3830e118ce578e3ffa3c42e22b","100b3bb9d39d2b1b5340f1bf45a52e94ef1692b45232b4ba00fac5c3cc56d331",{"version":"04fe7e7d8008887943260af1fde2bfd4877e0dc57bf634e0f0b2f3d1794dfd11","affectsGlobalScope":true},"7f77304372efe3c9967e5f9ea2061f1b4bf41dc3cda3c83cdd676f2e5af6b7e6","992c6f6be16c0a1d2eec13ece33adeea2c747ba27fcd078353a8f4bb5b4fea58","2597718d91e306949d89e285bf34c44192014ef541c3bd7cbb825c022749e974","a6b0abdb67d63ebe964ba5fee31bc3daf10c12eecd46b24d778426010c04c67e","ac4801ebc2355ba32329070123b1cd15891bf71b41dcaf9e75b4744832126a59","fd2298fba0640e7295e7bd545e2dfbfcccbb00c27019e501c87965a02bbdebf6","4fd3c4debadce3e9ab9dec3eb45f7f5e2e3d4ad65cf975a6d938d883cfb25a50","71ddd49185b68f27bfac127ef5d22cb2672c278e53e5370d9020ef50ca9c377d","b1ea7a6eaa7608e0e0529aebd323b526a79c6c05a4e519ae5c779675004dcdf1","9fcb033a6208485d8f3fadde31eb5cbcaf99149cff3e40c0dc53ebc6d0dff4e9","7df562288f949945cf69c21cd912100c2afedeeb7cdb219085f7f4b46cb7dde4","9d16690485ff1eb4f6fc57aebe237728fd8e03130c460919da3a35f4d9bd97f5","dcc6910d95a3625fd2b0487fda055988e46ab46c357a1b3618c27b4a8dd739c9","f4149f1aa299474c7040a35fe8f8ac2ad078cc1b190415adc1fff3ed52d490ea","3730099ed008776216268a97771de31753ef71e0a7d0ec650f588cba2a06ce44","8d649dbc429d7139a1d9a14ea2bf8af1dc089e0a879447539587463d4b6c248c","60c9e27816ec8ac8df7240598bb086e95b47edfb454c5cbf4003c812e0ed6e39","e361aecf17fc4034b4c122a1564471cdcd22ef3a51407803cb5a5fc020c04d02","4926467de88a92a4fc9971d8c6f21b91eca1c0e7fc2a46cc4638ab9440c73875",{"version":"2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1","affectsGlobalScope":true},"fc0ae4a8ad3c762b96f9d2c3700cb879a373458cb0bf3175478e3b4f85f7ef2f","fabbec378e1ddd86fcf2662e716c2b8318acedb664ee3a4cba6f9e8ee8269cf1","b3593bd345ebea5e4d0a894c03251a3774b34df3d6db57075c18e089a599ba76","e61a21e9418f279bc480394a94d1581b2dee73747adcbdef999b6737e34d721b","efd55e8ca79171bf26c0d0e30221cb8ee1f5a31dd0c791ec4b2e886f42bab124","e222104af6cb9415238ad358488b74d76eceeff238c1268ec6e85655b05341da","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","eba230221317c985ab1953ccc3edc517f248b37db4fef7875cb2c8d08aff7be7","b83e796810e475da3564c6515bc0ae9577070596a33d89299b7d99f94ecfd921","b4439890c168d646357928431100daac5cbdee1d345a34e6bf6eca9f3abe22bc","5d72971a459517c44c1379dab9ed248e87a61ba0a1e0f25c9d67e1e640cd9a09","02d734976af36f4273d930bea88b3e62adf6b078cf120c1c63d49aa8d8427c5c",{"version":"f624e578325b8c58e55b30c998b1f4c3ec1b61a9fa66373da4250c89b7880d44","affectsGlobalScope":true},{"version":"d3002f620eab4bf6476c9da5c0efb2041d46f7df8b3032a5631bd206abef2c75","affectsGlobalScope":true}],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"module":1,"noImplicitAny":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","sourceMap":true,"target":1},"fileIdsList":[[109,111],[105,106],[105,106,107,108],[110],[112],[102],[101,102],[56,61],[67,68,75,84],[57,67,75],[93],[61,68,76],[84,89],[64,67,75],[65],[64],[67],[67,69,84,92],[67,68,84],[75,84,92],[67,68,70,75,84,89,92],[70,84,89,92],[103],[92],[64,67,84],[77],[55],[91],[82,93,96],[67,85],[84],[87],[61,75],[53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100],[75],[81],[94],[56,61,67,69,78,84,92,96],[33,38],[33],[33,38,40],[39,40,41,42,43,44,45,46,47,48,49],[33,46],[33,38,48],[33,37,38,50,51],[38,50],[34,35,36],[29],[29,30,31,32]],"referencedMap":[[112,1],[107,2],[109,3],[108,2],[111,4],[113,5],[53,6],[103,7],[56,8],[57,9],[58,10],[59,11],[60,12],[61,13],[62,14],[64,15],[65,16],[66,17],[67,17],[68,18],[69,19],[70,20],[71,21],[72,22],[104,23],[73,17],[74,24],[75,25],[77,26],[78,27],[79,28],[82,17],[83,29],[84,30],[85,31],[87,17],[88,32],[89,33],[101,34],[91,35],[92,36],[93,37],[95,31],[97,38],[98,31],[39,39],[42,40],[41,41],[50,42],[47,43],[46,40],[49,44],[48,39],[43,41],[45,40],[44,40],[52,45],[51,46],[34,40],[37,47],[36,40],[30,48],[33,49],[32,48]],"exportedModulesMap":[[112,1],[107,2],[109,3],[108,2],[111,4],[113,5],[53,6],[103,7],[56,8],[57,9],[58,10],[59,11],[60,12],[61,13],[62,14],[64,15],[65,16],[66,17],[67,17],[68,18],[69,19],[70,20],[71,21],[72,22],[104,23],[73,17],[74,24],[75,25],[77,26],[78,27],[79,28],[82,17],[83,29],[84,30],[85,31],[87,17],[88,32],[89,33],[101,34],[91,35],[92,36],[93,37],[95,31],[97,38],[98,31],[39,39],[42,40],[41,41],[50,42],[47,43],[46,40],[49,44],[48,39],[43,41],[45,40],[44,40],[52,45],[51,46],[34,40],[37,47],[36,40],[30,48],[33,49],[32,48]],"semanticDiagnosticsPerFile":[38,112,105,107,109,108,106,111,110,113,102,53,55,103,56,57,58,59,60,61,62,63,64,65,66,67,68,69,54,99,70,71,72,104,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,101,91,92,93,94,95,96,100,97,98,6,8,7,2,9,10,11,12,13,14,15,16,3,4,20,17,18,19,21,22,23,5,24,25,26,27,1,28,39,42,41,50,47,46,49,48,43,45,40,44,52,51,34,37,35,36,31,30,33,29,32]},"version":"4.6.2"}
package/dist/esm/index.js CHANGED
@@ -1,14 +1,3 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
13
2
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
14
3
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -53,11 +42,11 @@ import * as types from '@babel/types';
53
42
  export var createReactStyledJSXPlugin = function (config) {
54
43
  var _a = config || {}, _b = _a.componentChunkName, componentChunkName = _b === void 0 ? 'jsx-component' : _b, _c = _a.forceScoping, forceScoping = _c === void 0 ? false : _c;
55
44
  var reactStyledJSXPlugin = function (structure) { return __awaiter(void 0, void 0, void 0, function () {
56
- var uidl, chunks, options, projectStyleSet, node, _a, componentStyleSheet, componentChunk, jsxNodesLookup, propsPrefix, mediaStylesMap, classMap, transformStyle, jsxASTNodeReference, rootJSXNode, originalRootNode, componentAST, arrowFnExpr, bodyStatement, returnStatement;
57
- return __generator(this, function (_b) {
45
+ var uidl, chunks, options, projectStyleSet, node, _a, componentStyleSheet, _b, propDefinitions, componentChunk, jsxNodesLookup, propsPrefix, mediaStylesMap, classMap, transformStyle, jsxASTNodeReference, rootJSXNode, originalRootNode, componentAST, arrowFnExpr, bodyStatement, returnStatement;
46
+ return __generator(this, function (_c) {
58
47
  uidl = structure.uidl, chunks = structure.chunks, options = structure.options;
59
48
  projectStyleSet = options.projectStyleSet;
60
- node = uidl.node, _a = uidl.styleSetDefinitions, componentStyleSheet = _a === void 0 ? {} : _a;
49
+ node = uidl.node, _a = uidl.styleSetDefinitions, componentStyleSheet = _a === void 0 ? {} : _a, _b = uidl.propDefinitions, propDefinitions = _b === void 0 ? {} : _b;
61
50
  componentChunk = chunks.find(function (chunk) { return chunk.name === componentChunkName; });
62
51
  if (!componentChunk) {
63
52
  return [2 /*return*/, structure];
@@ -74,18 +63,26 @@ export var createReactStyledJSXPlugin = function (config) {
74
63
  case 'prop':
75
64
  return "${".concat(propsPrefix, ".").concat(styleValue.content.id, "}");
76
65
  default:
77
- throw new PluginStyledJSX("Error running transformDynamicStyles in reactStyledJSXChunkPlugin. Unsupported styleValue.content.referenceType value ".concat(styleValue.content.referenceType));
66
+ throw new PluginStyledJSX("Error running transformDynamicStyles in reactStyledJSXChunkPlugin.\n\n Unsupported styleValue.content.referenceType value ".concat(styleValue.content.referenceType));
78
67
  }
79
68
  });
80
69
  };
81
70
  UIDLUtils.traverseElements(node, function (element) {
82
71
  var classNamesToAppend = new Set();
83
72
  var dynamicVariantsToAppend = new Set();
84
- var _a = element.style, style = _a === void 0 ? {} : _a, key = element.key, _b = element.referencedStyles, referencedStyles = _b === void 0 ? {} : _b;
73
+ var _a = element.style, style = _a === void 0 ? {} : _a, key = element.key, _b = element.referencedStyles, referencedStyles = _b === void 0 ? {} : _b, _c = element.attrs, attrs = _c === void 0 ? {} : _c, dependency = element.dependency, elementType = element.elementType;
85
74
  var elementClassName = StringUtils.camelCaseToDashCase(key);
86
- var className = forceScoping
87
- ? "".concat(StringUtils.camelCaseToDashCase(UIDLUtils.getComponentClassName(uidl)), "-").concat(elementClassName)
88
- : elementClassName;
75
+ var className = getClassName(forceScoping, uidl.name, elementClassName);
76
+ if (forceScoping && (dependency === null || dependency === void 0 ? void 0 : dependency.type) === 'local') {
77
+ StyleBuilders.setPropValueForCompStyle({
78
+ key: key,
79
+ jsxNodesLookup: jsxNodesLookup,
80
+ attrs: attrs,
81
+ getClassName: function (str) {
82
+ return getClassName(forceScoping, StringUtils.camelCaseToDashCase(elementType), str);
83
+ },
84
+ });
85
+ }
89
86
  if (Object.keys(style).length === 0 && Object.keys(referencedStyles).length === 0) {
90
87
  return;
91
88
  }
@@ -98,14 +95,21 @@ export var createReactStyledJSXPlugin = function (config) {
98
95
  }
99
96
  Object.values(referencedStyles).forEach(function (styleRef) {
100
97
  var _a;
98
+ var _b;
101
99
  switch (styleRef.content.mapType) {
102
100
  case 'inlined': {
103
- var conditions = styleRef.content.conditions;
104
- if (conditions[0].conditionType === 'screen-size') {
105
- mediaStylesMap[conditions[0].maxWidth] = __assign(__assign({}, mediaStylesMap[conditions[0].maxWidth]), (_a = {}, _a[className] = transformStyle(styleRef.content.styles), _a));
101
+ var condition = styleRef.content.conditions[0];
102
+ if (condition.conditionType === 'screen-size') {
103
+ var maxWidth = condition.maxWidth;
104
+ if (!mediaStylesMap[String(maxWidth)]) {
105
+ mediaStylesMap[String(maxWidth)] = [];
106
+ }
107
+ mediaStylesMap[String(maxWidth)].push((_a = {},
108
+ _a[className] = transformStyle(styleRef.content.styles),
109
+ _a));
106
110
  }
107
- if (conditions[0].conditionType === 'element-state') {
108
- classMap.push(StyleBuilders.createCSSClassWithSelector(className, "&:".concat(conditions[0].content), transformStyle(styleRef.content.styles)));
111
+ if (condition.conditionType === 'element-state') {
112
+ classMap.push(StyleBuilders.createCSSClassWithSelector(className, "&:".concat(condition.content), transformStyle(styleRef.content.styles)));
109
113
  }
110
114
  classNamesToAppend.add(className);
111
115
  return;
@@ -117,27 +121,29 @@ export var createReactStyledJSXPlugin = function (config) {
117
121
  if (styleRef.content.content.type === 'dynamic' &&
118
122
  styleRef.content.content.content.referenceType === 'prop') {
119
123
  dynamicVariantsToAppend.add(types.memberExpression(types.identifier(propsPrefix), types.identifier(styleRef.content.content.content.id)));
124
+ var defaultPropValue = (_b = propDefinitions[styleRef.content.content.content.id]) === null || _b === void 0 ? void 0 : _b.defaultValue;
125
+ if (!defaultPropValue) {
126
+ return;
127
+ }
128
+ propDefinitions[styleRef.content.content.content.id].defaultValue = getClassName(forceScoping, uidl.name, String(defaultPropValue));
120
129
  }
121
130
  if (styleRef.content.content.type === 'dynamic' &&
122
131
  styleRef.content.content.content.referenceType === 'comp') {
123
- classNamesToAppend.add(styleRef.content.content.content.id);
132
+ classNamesToAppend.add(getClassName(forceScoping, uidl.name, styleRef.content.content.content.id));
124
133
  }
125
134
  return;
126
135
  }
127
136
  case 'project-referenced': {
128
- if (!projectStyleSet) {
129
- throw new PluginStyledJSX("Project Style Sheet is missing, but the node is referring to it ".concat(element));
130
- }
131
137
  var content = styleRef.content;
132
138
  var referedStyle = projectStyleSet.styleSetDefinitions[content.referenceId];
133
139
  if (!referedStyle) {
134
- throw new PluginStyledJSX("Style that is being used for reference is missing - ".concat(content.referenceId));
140
+ throw new PluginStyledJSX("Project style - ".concat(content.referenceId, " is missing"));
135
141
  }
136
142
  classNamesToAppend.add(content.referenceId);
137
143
  return;
138
144
  }
139
145
  default: {
140
- throw new PluginStyledJSX('We support only project-referneced and inlined for now.');
146
+ throw new PluginStyledJSX("Un-supported style reference ".concat(JSON.stringify(styleRef.content, null, 2)));
141
147
  }
142
148
  }
143
149
  });
@@ -145,17 +151,12 @@ export var createReactStyledJSXPlugin = function (config) {
145
151
  });
146
152
  /* Generating component scoped styles */
147
153
  if (Object.keys(componentStyleSheet).length > 0) {
148
- StyleBuilders.generateStylesFromStyleSetDefinitions(componentStyleSheet, classMap, mediaStylesMap, UIDLUtils.getComponentClassName(uidl));
154
+ StyleBuilders.generateStylesFromStyleSetDefinitions(componentStyleSheet, classMap, mediaStylesMap, function (styleName) { return getClassName(forceScoping, uidl.name, styleName); });
149
155
  }
150
156
  if (Object.keys(mediaStylesMap).length > 0) {
151
- Object.keys(mediaStylesMap)
152
- .sort(function (a, b) { return Number(a) - Number(b); })
153
- .reverse()
154
- .forEach(function (mediaOffset) {
155
- classMap.push(StyleBuilders.createCSSClassWithMediaQuery("max-width: ".concat(mediaOffset, "px"), mediaStylesMap[mediaOffset]));
156
- });
157
+ classMap.push.apply(classMap, StyleBuilders.generateMediaStyle(mediaStylesMap));
157
158
  }
158
- if (!classMap || !classMap.length) {
159
+ if (classMap.length === 0) {
159
160
  return [2 /*return*/, structure];
160
161
  }
161
162
  jsxASTNodeReference = generateStyledJSXTag(classMap.join('\n'));
@@ -175,4 +176,9 @@ export var createReactStyledJSXPlugin = function (config) {
175
176
  return reactStyledJSXPlugin;
176
177
  };
177
178
  export default createReactStyledJSXPlugin();
179
+ var getClassName = function (scoping, uidlName, nodeStyleName) {
180
+ return scoping
181
+ ? StringUtils.camelCaseToDashCase("".concat(uidlName, "-").concat(nodeStyleName))
182
+ : StringUtils.camelCaseToDashCase(nodeStyleName);
183
+ };
178
184
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAA;AACpE,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAA;AACzF,OAAO,EAIL,eAAe,GAChB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAC9C,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AAOrC,MAAM,CAAC,IAAM,0BAA0B,GAA4C,UAAC,MAAM;IAClF,IAAA,KAAiE,MAAM,IAAI,EAAE,EAA3E,0BAAoC,EAApC,kBAAkB,mBAAG,eAAe,KAAA,EAAE,oBAAoB,EAApB,YAAY,mBAAG,KAAK,KAAiB,CAAA;IAEnF,IAAM,oBAAoB,GAAoB,UAAO,SAAS;;;YACpD,IAAI,GAAsB,SAAS,KAA/B,EAAE,MAAM,GAAc,SAAS,OAAvB,EAAE,OAAO,GAAK,SAAS,QAAd,CAAc;YACnC,eAAe,GAAK,OAAO,gBAAZ,CAAY;YAC3B,IAAI,GAAoD,IAAI,KAAxD,EAAE,KAAkD,IAAI,oBAAT,EAAxB,mBAAmB,mBAAG,EAAE,KA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AY,GAAG,UAAC,OAAgB,EAAE,QAAgB,EAAE,aAAqB;IAC7E,OAAO,OAAO;QACZ,CAAC,CAAC,WAAW,CAAC,mBAAmB,CAAC,UAAG,QAAQ,cAAI,aAAa,CAAE,CAAC;QACjE,CAAC,CAAC,WAAW,CAAC,mBAAmB,CAAC,aAAa,CAAC,CAAA;AACpD,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.dom.d.ts","../../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../teleport-types/dist/cjs/uidl.d.ts","../../../teleport-types/dist/cjs/generators.d.ts","../../../teleport-types/dist/cjs/errors.d.ts","../../../teleport-types/dist/cjs/vuidl.d.ts","../../../teleport-types/dist/cjs/index.d.ts","../../../teleport-shared/dist/cjs/constants/index.d.ts","../../../teleport-shared/dist/cjs/utils/string-utils.d.ts","../../../teleport-shared/dist/cjs/utils/uidl-utils.d.ts","../../../teleport-shared/dist/cjs/index.d.ts","../../../../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/utils.ts","../../src/index.ts","../../../../node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/@types/node/globals.d.ts","../../../../node_modules/@types/node/async_hooks.d.ts","../../../../node_modules/@types/node/buffer.d.ts","../../../../node_modules/@types/node/child_process.d.ts","../../../../node_modules/@types/node/cluster.d.ts","../../../../node_modules/@types/node/console.d.ts","../../../../node_modules/@types/node/constants.d.ts","../../../../node_modules/@types/node/crypto.d.ts","../../../../node_modules/@types/node/dgram.d.ts","../../../../node_modules/@types/node/diagnostic_channel.d.ts","../../../../node_modules/@types/node/dns.d.ts","../../../../node_modules/@types/node/dns/promises.d.ts","../../../../node_modules/@types/node/domain.d.ts","../../../../node_modules/@types/node/events.d.ts","../../../../node_modules/@types/node/fs.d.ts","../../../../node_modules/@types/node/fs/promises.d.ts","../../../../node_modules/@types/node/http.d.ts","../../../../node_modules/@types/node/http2.d.ts","../../../../node_modules/@types/node/https.d.ts","../../../../node_modules/@types/node/inspector.d.ts","../../../../node_modules/@types/node/module.d.ts","../../../../node_modules/@types/node/net.d.ts","../../../../node_modules/@types/node/os.d.ts","../../../../node_modules/@types/node/path.d.ts","../../../../node_modules/@types/node/perf_hooks.d.ts","../../../../node_modules/@types/node/process.d.ts","../../../../node_modules/@types/node/punycode.d.ts","../../../../node_modules/@types/node/querystring.d.ts","../../../../node_modules/@types/node/readline.d.ts","../../../../node_modules/@types/node/repl.d.ts","../../../../node_modules/@types/node/stream.d.ts","../../../../node_modules/@types/node/stream/promises.d.ts","../../../../node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/@types/node/timers.d.ts","../../../../node_modules/@types/node/timers/promises.d.ts","../../../../node_modules/@types/node/tls.d.ts","../../../../node_modules/@types/node/trace_events.d.ts","../../../../node_modules/@types/node/tty.d.ts","../../../../node_modules/@types/node/url.d.ts","../../../../node_modules/@types/node/util.d.ts","../../../../node_modules/@types/node/util/types.d.ts","../../../../node_modules/@types/node/v8.d.ts","../../../../node_modules/@types/node/vm.d.ts","../../../../node_modules/@types/node/worker_threads.d.ts","../../../../node_modules/@types/node/zlib.d.ts","../../../../node_modules/@types/node/globals.global.d.ts","../../../../node_modules/@types/node/wasi.d.ts","../../../../node_modules/@types/node/ts3.6/base.d.ts","../../../../node_modules/@types/node/assert.d.ts","../../../../node_modules/@types/node/base.d.ts","../../../../node_modules/@types/node/index.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/cleanupSemantic.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/types.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/diffLines.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/printDiffs.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/index.d.ts","../../../../node_modules/@types/jest/node_modules/pretty-format/build/types.d.ts","../../../../node_modules/@types/jest/node_modules/pretty-format/build/index.d.ts","../../../../node_modules/@types/jest/index.d.ts","../../../../node_modules/@types/jest/ts3.2/index.d.ts"],"fileInfos":[{"version":"3ac1b83264055b28c0165688fda6dfcc39001e9e7828f649299101c23ad0a0c3","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06",{"version":"72704b10d97777e15f1a581b73f88273037ef752d2e50b72287bd0a90af64fe6","affectsGlobalScope":true},{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true},"42bf51402b690782aa9e6e437a2fb56a4de94c6f53fbb1728acff2dfd12df74a","ea413f16d37b1c222daffa48087c4b9ec79144baef2bc1cc1ddfdd7a3d4581c0","d49a625c30294f92976c954fffb2bcc2faeb81957148a363969ee742a43e2913","c4a042f3df0f5855fbd2ba352d7b0a581a478737b60f306fbb253dceaaa981d2","cd619820771edb23926bb084906215ab9c491255fa707488d15748b38909b747","28b22326000119f53de35f67ce3096ef475a2224274162b1283ef8718e1efdb5","18aecf77d74ed15ae1e875a0d43f2aa85387794fc447b2bc3c8ab7e2224d0ac6","0dab32de48eb8cf6149f776ef25cae2e68580fb8a55419dba27f022381fdd87a","d2ff55204dd4868d11a163c207d4fbe8d99cbf8cb36fa90d2a2f0bfc802b4d38","2ff9995137f3e5d68971388ec58af0c79721626323884513f9f5e2e996ac1fdd","b0900ff47d065c568038fc21d06685e58b7932750f22c49bb5cc4c18bdd35aa3","634d90459c22c0d82376bd48246b99b4a33fe56bc94c15874d1dac1e8a577d75","f735cc9f46bef33ef3c3e45308fbe6e5c9c1b917d6724d989c046bed3db5c3ed","cb33f5a5c73598b92f9aa13a0cf4d0df2dc38f05da11e4ad2fd8f0a735b3b09e","cd7c7f7b87c5e6ddb24a061393d5df9dbb0a926f3499e6f1a7f3d1da0ced3fcb","cf4ba36b05e7a6194696ffcace1710d29bb681b77a20b9b09460707ea3fcecd5","79fb51af7dc378dfaa66da7791d2c91560a151fa74da9f466d9fb60f5f9ccb39","c84d0840044a735055b7911998976dab071cde1ee160f551f2d845aea5630e2e","3465b9608c725b6a4c35b154f636011da24525a137d73976f1222c624cd9ce40","3594cd8018f215116e41c6f05c6fc9e6845a60c74753cdd1a9521d52f9ac0f2a","50ffd0c3b71cdca0f2c5004b39d876a494648c953079f07d257d679a7b95d40a","0772ec3b64f51bbe952d514e28b9aa3355a5322d1c242d93b3e67292dc7bae7c","54039b4d16b943ac81a3e239d8db01c3f1e6585778aa304fcabafe0714661e46","3563648df695b4d0e2237c87bf6a4df2c3278184f57827338606662c90b287d8","c7bdc99177a2a94d25fb13722adaaf5b3291bf70b4d1b27584ba189dd3889ba3",{"version":"d1c92b66c4105659fcad4eb76a1481f7311033e117d0678a1ec545e8ddb8d4c6","affectsGlobalScope":true},"e23424b97418eca3226fd24de079f1203eb70360622e4e093af2aff14d4be6ec","dee93c07b4df5e26010dc9ec4cdf4d6e4076bb4474d2a8371529217c8b2740a4","ed40f2f184db052dc8df62d1f199823c8bbccc487c0a2a7c54eeea0badcf4378","04eaa93bd75f937f9184dcb95a7983800c5770cf8ddd8ac0f3734dc02f5b20ef",{"version":"c8155caf28fc7b0a564156a5df28ad8a844a3bd32d331d148d8f3ce88025c870","affectsGlobalScope":true},"45ac321f2e15d268fd74a90ddaa6467dcaaff2c5b13f95b4b85831520fb7a491","dfc747ab8dd5f623055a4c26fd35e8cceca869fd3f1cf09701c941ca3679665a","c9f5f2920ff61d7158417b8440d5181ddc34a3dfef811a5677dd8a9fb91471e9","5cc0a492da3602510b8f5ed1852b1e0390002780d8758fbc8c0cd023ca7085f8","ec7dafafe751a5121f8f1c80201ebe7e7238c47e6329280a73c4d1ca4bb7fa28","64debeb10e4b7ae4ec9e89bfb4e04c6101ab98c3cc806d14e5488607cfec2753",{"version":"2866a528b2708aa272ec3eaafd3c980abb23aec1ef831cfc5eb2186b98c37ce5","affectsGlobalScope":true},{"version":"a5782d6cea81fe43d2db7ed41e789458c933ab3ab60602f7b5b14c4da3370496","affectsGlobalScope":true},"f258ba66915f0196ec344bc53afe1888240bbcc855ebd151b6cc072275533319","6194335ee3353f7226ba31f31d6301d0c6be87228419c0a08976ccd9d4f1213e","3ac12a54cfaa84683506db8d4cf779135a271d9f0ec18930cf53e61fbeea0c5d","cf3d3b087d1a8a3355eec47d206162c75e912315b9b5c1cd49fda93e948fb80a","36f316c066c4a72dd6f19fec49a074f935744fc9ccbe75c87ebc07fb2feb9062","42176966283d3835c34278b9b5c0f470d484c0c0c6a55c20a2c916a1ce69b6e8","0cff7901aedfe78e314f7d44088f07e2afa1b6e4f0473a4169b8456ca2fb245d","ec70fd6f8a9a83f850dab2960a6789e93d5b034b354a16814cad5daabf62a360","e2236264a811ed1d09a2487a433e8f5216ae62378cf233954ae220cf886f6717","3ec1e108d587a5661ec790db607f482605ba9f3830e118ce578e3ffa3c42e22b","100b3bb9d39d2b1b5340f1bf45a52e94ef1692b45232b4ba00fac5c3cc56d331",{"version":"04fe7e7d8008887943260af1fde2bfd4877e0dc57bf634e0f0b2f3d1794dfd11","affectsGlobalScope":true},"7f77304372efe3c9967e5f9ea2061f1b4bf41dc3cda3c83cdd676f2e5af6b7e6","992c6f6be16c0a1d2eec13ece33adeea2c747ba27fcd078353a8f4bb5b4fea58","2597718d91e306949d89e285bf34c44192014ef541c3bd7cbb825c022749e974","a6b0abdb67d63ebe964ba5fee31bc3daf10c12eecd46b24d778426010c04c67e","ac4801ebc2355ba32329070123b1cd15891bf71b41dcaf9e75b4744832126a59","fd2298fba0640e7295e7bd545e2dfbfcccbb00c27019e501c87965a02bbdebf6","4fd3c4debadce3e9ab9dec3eb45f7f5e2e3d4ad65cf975a6d938d883cfb25a50","71ddd49185b68f27bfac127ef5d22cb2672c278e53e5370d9020ef50ca9c377d","b1ea7a6eaa7608e0e0529aebd323b526a79c6c05a4e519ae5c779675004dcdf1","9fcb033a6208485d8f3fadde31eb5cbcaf99149cff3e40c0dc53ebc6d0dff4e9","7df562288f949945cf69c21cd912100c2afedeeb7cdb219085f7f4b46cb7dde4","9d16690485ff1eb4f6fc57aebe237728fd8e03130c460919da3a35f4d9bd97f5","dcc6910d95a3625fd2b0487fda055988e46ab46c357a1b3618c27b4a8dd739c9","f4149f1aa299474c7040a35fe8f8ac2ad078cc1b190415adc1fff3ed52d490ea","3730099ed008776216268a97771de31753ef71e0a7d0ec650f588cba2a06ce44","8d649dbc429d7139a1d9a14ea2bf8af1dc089e0a879447539587463d4b6c248c","60c9e27816ec8ac8df7240598bb086e95b47edfb454c5cbf4003c812e0ed6e39","e361aecf17fc4034b4c122a1564471cdcd22ef3a51407803cb5a5fc020c04d02","4926467de88a92a4fc9971d8c6f21b91eca1c0e7fc2a46cc4638ab9440c73875",{"version":"2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1","affectsGlobalScope":true},"fc0ae4a8ad3c762b96f9d2c3700cb879a373458cb0bf3175478e3b4f85f7ef2f","fabbec378e1ddd86fcf2662e716c2b8318acedb664ee3a4cba6f9e8ee8269cf1","b3593bd345ebea5e4d0a894c03251a3774b34df3d6db57075c18e089a599ba76","e61a21e9418f279bc480394a94d1581b2dee73747adcbdef999b6737e34d721b","efd55e8ca79171bf26c0d0e30221cb8ee1f5a31dd0c791ec4b2e886f42bab124","e222104af6cb9415238ad358488b74d76eceeff238c1268ec6e85655b05341da","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","eba230221317c985ab1953ccc3edc517f248b37db4fef7875cb2c8d08aff7be7","b83e796810e475da3564c6515bc0ae9577070596a33d89299b7d99f94ecfd921","b4439890c168d646357928431100daac5cbdee1d345a34e6bf6eca9f3abe22bc","5d72971a459517c44c1379dab9ed248e87a61ba0a1e0f25c9d67e1e640cd9a09","02d734976af36f4273d930bea88b3e62adf6b078cf120c1c63d49aa8d8427c5c",{"version":"f624e578325b8c58e55b30c998b1f4c3ec1b61a9fa66373da4250c89b7880d44","affectsGlobalScope":true},{"version":"d3002f620eab4bf6476c9da5c0efb2041d46f7df8b3032a5631bd206abef2c75","affectsGlobalScope":true}],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"module":99,"noImplicitAny":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","sourceMap":true,"target":1},"fileIdsList":[[109,111],[105,106],[105,106,107,108],[110],[112],[102],[101,102],[56,61],[67,68,75,84],[57,67,75],[93],[61,68,76],[84,89],[64,67,75],[65],[64],[67],[67,69,84,92],[67,68,84],[75,84,92],[67,68,70,75,84,89,92],[70,84,89,92],[103],[92],[64,67,84],[77],[55],[91],[82,93,96],[67,85],[84],[87],[61,75],[53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100],[75],[81],[94],[56,61,67,69,78,84,92,96],[33,38],[33],[33,38,40],[39,40,41,42,43,44,45,46,47,48,49],[33,46],[33,38,48],[33,37,38,50,51],[38,50],[34,35,36],[29],[29,30,31,32]],"referencedMap":[[112,1],[107,2],[109,3],[108,2],[111,4],[113,5],[53,6],[103,7],[56,8],[57,9],[58,10],[59,11],[60,12],[61,13],[62,14],[64,15],[65,16],[66,17],[67,17],[68,18],[69,19],[70,20],[71,21],[72,22],[104,23],[73,17],[74,24],[75,25],[77,26],[78,27],[79,28],[82,17],[83,29],[84,30],[85,31],[87,17],[88,32],[89,33],[101,34],[91,35],[92,36],[93,37],[95,31],[97,38],[98,31],[39,39],[42,40],[41,41],[50,42],[47,43],[46,40],[49,44],[48,39],[43,41],[45,40],[44,40],[52,45],[51,46],[34,40],[37,47],[36,40],[30,48],[33,49],[32,48]],"exportedModulesMap":[[112,1],[107,2],[109,3],[108,2],[111,4],[113,5],[53,6],[103,7],[56,8],[57,9],[58,10],[59,11],[60,12],[61,13],[62,14],[64,15],[65,16],[66,17],[67,17],[68,18],[69,19],[70,20],[71,21],[72,22],[104,23],[73,17],[74,24],[75,25],[77,26],[78,27],[79,28],[82,17],[83,29],[84,30],[85,31],[87,17],[88,32],[89,33],[101,34],[91,35],[92,36],[93,37],[95,31],[97,38],[98,31],[39,39],[42,40],[41,41],[50,42],[47,43],[46,40],[49,44],[48,39],[43,41],[45,40],[44,40],[52,45],[51,46],[34,40],[37,47],[36,40],[30,48],[33,49],[32,48]],"semanticDiagnosticsPerFile":[38,112,105,107,109,108,106,111,110,113,102,53,55,103,56,57,58,59,60,61,62,63,64,65,66,67,68,69,54,99,70,71,72,104,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,101,91,92,93,94,95,96,100,97,98,6,8,7,2,9,10,11,12,13,14,15,16,3,4,20,17,18,19,21,22,23,5,24,25,26,27,1,28,39,42,41,50,47,46,49,48,43,45,40,44,52,51,34,37,35,36,31,30,33,29,32]},"version":"4.6.2"}
1
+ {"program":{"fileNames":["../../../../node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/typescript/lib/lib.dom.d.ts","../../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../teleport-types/dist/cjs/uidl.d.ts","../../../teleport-types/dist/cjs/generators.d.ts","../../../teleport-types/dist/cjs/errors.d.ts","../../../teleport-types/dist/cjs/vuidl.d.ts","../../../teleport-types/dist/cjs/index.d.ts","../../../teleport-shared/dist/cjs/constants/index.d.ts","../../../teleport-shared/dist/cjs/utils/string-utils.d.ts","../../../teleport-shared/dist/cjs/utils/uidl-utils.d.ts","../../../teleport-shared/dist/cjs/index.d.ts","../../../../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/utils.ts","../../src/index.ts","../../../../node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/@types/node/globals.d.ts","../../../../node_modules/@types/node/async_hooks.d.ts","../../../../node_modules/@types/node/buffer.d.ts","../../../../node_modules/@types/node/child_process.d.ts","../../../../node_modules/@types/node/cluster.d.ts","../../../../node_modules/@types/node/console.d.ts","../../../../node_modules/@types/node/constants.d.ts","../../../../node_modules/@types/node/crypto.d.ts","../../../../node_modules/@types/node/dgram.d.ts","../../../../node_modules/@types/node/diagnostic_channel.d.ts","../../../../node_modules/@types/node/dns.d.ts","../../../../node_modules/@types/node/dns/promises.d.ts","../../../../node_modules/@types/node/domain.d.ts","../../../../node_modules/@types/node/events.d.ts","../../../../node_modules/@types/node/fs.d.ts","../../../../node_modules/@types/node/fs/promises.d.ts","../../../../node_modules/@types/node/http.d.ts","../../../../node_modules/@types/node/http2.d.ts","../../../../node_modules/@types/node/https.d.ts","../../../../node_modules/@types/node/inspector.d.ts","../../../../node_modules/@types/node/module.d.ts","../../../../node_modules/@types/node/net.d.ts","../../../../node_modules/@types/node/os.d.ts","../../../../node_modules/@types/node/path.d.ts","../../../../node_modules/@types/node/perf_hooks.d.ts","../../../../node_modules/@types/node/process.d.ts","../../../../node_modules/@types/node/punycode.d.ts","../../../../node_modules/@types/node/querystring.d.ts","../../../../node_modules/@types/node/readline.d.ts","../../../../node_modules/@types/node/repl.d.ts","../../../../node_modules/@types/node/stream.d.ts","../../../../node_modules/@types/node/stream/promises.d.ts","../../../../node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/@types/node/timers.d.ts","../../../../node_modules/@types/node/timers/promises.d.ts","../../../../node_modules/@types/node/tls.d.ts","../../../../node_modules/@types/node/trace_events.d.ts","../../../../node_modules/@types/node/tty.d.ts","../../../../node_modules/@types/node/url.d.ts","../../../../node_modules/@types/node/util.d.ts","../../../../node_modules/@types/node/util/types.d.ts","../../../../node_modules/@types/node/v8.d.ts","../../../../node_modules/@types/node/vm.d.ts","../../../../node_modules/@types/node/worker_threads.d.ts","../../../../node_modules/@types/node/zlib.d.ts","../../../../node_modules/@types/node/globals.global.d.ts","../../../../node_modules/@types/node/wasi.d.ts","../../../../node_modules/@types/node/ts3.6/base.d.ts","../../../../node_modules/@types/node/assert.d.ts","../../../../node_modules/@types/node/base.d.ts","../../../../node_modules/@types/node/index.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/cleanupSemantic.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/types.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/diffLines.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/printDiffs.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/index.d.ts","../../../../node_modules/@types/jest/node_modules/pretty-format/build/types.d.ts","../../../../node_modules/@types/jest/node_modules/pretty-format/build/index.d.ts","../../../../node_modules/@types/jest/index.d.ts","../../../../node_modules/@types/jest/ts3.2/index.d.ts"],"fileInfos":[{"version":"3ac1b83264055b28c0165688fda6dfcc39001e9e7828f649299101c23ad0a0c3","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06",{"version":"72704b10d97777e15f1a581b73f88273037ef752d2e50b72287bd0a90af64fe6","affectsGlobalScope":true},{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true},"d58cb8e3308641cdc84644105bd3d594045b356af29fd10d5a74f42c1a8396ad","18d176af12d389165c4ce64a4f3c365448f1a1beaccbef9a05793992160c89f4","d49a625c30294f92976c954fffb2bcc2faeb81957148a363969ee742a43e2913","c4a042f3df0f5855fbd2ba352d7b0a581a478737b60f306fbb253dceaaa981d2","cd619820771edb23926bb084906215ab9c491255fa707488d15748b38909b747","28b22326000119f53de35f67ce3096ef475a2224274162b1283ef8718e1efdb5","18aecf77d74ed15ae1e875a0d43f2aa85387794fc447b2bc3c8ab7e2224d0ac6","0dab32de48eb8cf6149f776ef25cae2e68580fb8a55419dba27f022381fdd87a","d2ff55204dd4868d11a163c207d4fbe8d99cbf8cb36fa90d2a2f0bfc802b4d38","2ff9995137f3e5d68971388ec58af0c79721626323884513f9f5e2e996ac1fdd","b0900ff47d065c568038fc21d06685e58b7932750f22c49bb5cc4c18bdd35aa3","634d90459c22c0d82376bd48246b99b4a33fe56bc94c15874d1dac1e8a577d75","b179b68aed28f107ab90bc0b15cecee4388c612203e5b848df805c8dae3e3071","cb33f5a5c73598b92f9aa13a0cf4d0df2dc38f05da11e4ad2fd8f0a735b3b09e","cd7c7f7b87c5e6ddb24a061393d5df9dbb0a926f3499e6f1a7f3d1da0ced3fcb","cf4ba36b05e7a6194696ffcace1710d29bb681b77a20b9b09460707ea3fcecd5","79fb51af7dc378dfaa66da7791d2c91560a151fa74da9f466d9fb60f5f9ccb39","c84d0840044a735055b7911998976dab071cde1ee160f551f2d845aea5630e2e","3465b9608c725b6a4c35b154f636011da24525a137d73976f1222c624cd9ce40","3594cd8018f215116e41c6f05c6fc9e6845a60c74753cdd1a9521d52f9ac0f2a","50ffd0c3b71cdca0f2c5004b39d876a494648c953079f07d257d679a7b95d40a","0772ec3b64f51bbe952d514e28b9aa3355a5322d1c242d93b3e67292dc7bae7c","54039b4d16b943ac81a3e239d8db01c3f1e6585778aa304fcabafe0714661e46","f3418518d15914c6f971928857e8b62c0ab9ecfbe7bcc5b946e015645a6532b9","c7bdc99177a2a94d25fb13722adaaf5b3291bf70b4d1b27584ba189dd3889ba3",{"version":"d1c92b66c4105659fcad4eb76a1481f7311033e117d0678a1ec545e8ddb8d4c6","affectsGlobalScope":true},"e23424b97418eca3226fd24de079f1203eb70360622e4e093af2aff14d4be6ec","dee93c07b4df5e26010dc9ec4cdf4d6e4076bb4474d2a8371529217c8b2740a4","ed40f2f184db052dc8df62d1f199823c8bbccc487c0a2a7c54eeea0badcf4378","04eaa93bd75f937f9184dcb95a7983800c5770cf8ddd8ac0f3734dc02f5b20ef",{"version":"c8155caf28fc7b0a564156a5df28ad8a844a3bd32d331d148d8f3ce88025c870","affectsGlobalScope":true},"45ac321f2e15d268fd74a90ddaa6467dcaaff2c5b13f95b4b85831520fb7a491","dfc747ab8dd5f623055a4c26fd35e8cceca869fd3f1cf09701c941ca3679665a","c9f5f2920ff61d7158417b8440d5181ddc34a3dfef811a5677dd8a9fb91471e9","5cc0a492da3602510b8f5ed1852b1e0390002780d8758fbc8c0cd023ca7085f8","ec7dafafe751a5121f8f1c80201ebe7e7238c47e6329280a73c4d1ca4bb7fa28","64debeb10e4b7ae4ec9e89bfb4e04c6101ab98c3cc806d14e5488607cfec2753",{"version":"2866a528b2708aa272ec3eaafd3c980abb23aec1ef831cfc5eb2186b98c37ce5","affectsGlobalScope":true},{"version":"a5782d6cea81fe43d2db7ed41e789458c933ab3ab60602f7b5b14c4da3370496","affectsGlobalScope":true},"f258ba66915f0196ec344bc53afe1888240bbcc855ebd151b6cc072275533319","6194335ee3353f7226ba31f31d6301d0c6be87228419c0a08976ccd9d4f1213e","3ac12a54cfaa84683506db8d4cf779135a271d9f0ec18930cf53e61fbeea0c5d","cf3d3b087d1a8a3355eec47d206162c75e912315b9b5c1cd49fda93e948fb80a","36f316c066c4a72dd6f19fec49a074f935744fc9ccbe75c87ebc07fb2feb9062","42176966283d3835c34278b9b5c0f470d484c0c0c6a55c20a2c916a1ce69b6e8","0cff7901aedfe78e314f7d44088f07e2afa1b6e4f0473a4169b8456ca2fb245d","ec70fd6f8a9a83f850dab2960a6789e93d5b034b354a16814cad5daabf62a360","e2236264a811ed1d09a2487a433e8f5216ae62378cf233954ae220cf886f6717","3ec1e108d587a5661ec790db607f482605ba9f3830e118ce578e3ffa3c42e22b","100b3bb9d39d2b1b5340f1bf45a52e94ef1692b45232b4ba00fac5c3cc56d331",{"version":"04fe7e7d8008887943260af1fde2bfd4877e0dc57bf634e0f0b2f3d1794dfd11","affectsGlobalScope":true},"7f77304372efe3c9967e5f9ea2061f1b4bf41dc3cda3c83cdd676f2e5af6b7e6","992c6f6be16c0a1d2eec13ece33adeea2c747ba27fcd078353a8f4bb5b4fea58","2597718d91e306949d89e285bf34c44192014ef541c3bd7cbb825c022749e974","a6b0abdb67d63ebe964ba5fee31bc3daf10c12eecd46b24d778426010c04c67e","ac4801ebc2355ba32329070123b1cd15891bf71b41dcaf9e75b4744832126a59","fd2298fba0640e7295e7bd545e2dfbfcccbb00c27019e501c87965a02bbdebf6","4fd3c4debadce3e9ab9dec3eb45f7f5e2e3d4ad65cf975a6d938d883cfb25a50","71ddd49185b68f27bfac127ef5d22cb2672c278e53e5370d9020ef50ca9c377d","b1ea7a6eaa7608e0e0529aebd323b526a79c6c05a4e519ae5c779675004dcdf1","9fcb033a6208485d8f3fadde31eb5cbcaf99149cff3e40c0dc53ebc6d0dff4e9","7df562288f949945cf69c21cd912100c2afedeeb7cdb219085f7f4b46cb7dde4","9d16690485ff1eb4f6fc57aebe237728fd8e03130c460919da3a35f4d9bd97f5","dcc6910d95a3625fd2b0487fda055988e46ab46c357a1b3618c27b4a8dd739c9","f4149f1aa299474c7040a35fe8f8ac2ad078cc1b190415adc1fff3ed52d490ea","3730099ed008776216268a97771de31753ef71e0a7d0ec650f588cba2a06ce44","8d649dbc429d7139a1d9a14ea2bf8af1dc089e0a879447539587463d4b6c248c","60c9e27816ec8ac8df7240598bb086e95b47edfb454c5cbf4003c812e0ed6e39","e361aecf17fc4034b4c122a1564471cdcd22ef3a51407803cb5a5fc020c04d02","4926467de88a92a4fc9971d8c6f21b91eca1c0e7fc2a46cc4638ab9440c73875",{"version":"2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1","affectsGlobalScope":true},"fc0ae4a8ad3c762b96f9d2c3700cb879a373458cb0bf3175478e3b4f85f7ef2f","fabbec378e1ddd86fcf2662e716c2b8318acedb664ee3a4cba6f9e8ee8269cf1","b3593bd345ebea5e4d0a894c03251a3774b34df3d6db57075c18e089a599ba76","e61a21e9418f279bc480394a94d1581b2dee73747adcbdef999b6737e34d721b","efd55e8ca79171bf26c0d0e30221cb8ee1f5a31dd0c791ec4b2e886f42bab124","e222104af6cb9415238ad358488b74d76eceeff238c1268ec6e85655b05341da","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","eba230221317c985ab1953ccc3edc517f248b37db4fef7875cb2c8d08aff7be7","b83e796810e475da3564c6515bc0ae9577070596a33d89299b7d99f94ecfd921","b4439890c168d646357928431100daac5cbdee1d345a34e6bf6eca9f3abe22bc","5d72971a459517c44c1379dab9ed248e87a61ba0a1e0f25c9d67e1e640cd9a09","02d734976af36f4273d930bea88b3e62adf6b078cf120c1c63d49aa8d8427c5c",{"version":"f624e578325b8c58e55b30c998b1f4c3ec1b61a9fa66373da4250c89b7880d44","affectsGlobalScope":true},{"version":"d3002f620eab4bf6476c9da5c0efb2041d46f7df8b3032a5631bd206abef2c75","affectsGlobalScope":true}],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"module":99,"noImplicitAny":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","sourceMap":true,"target":1},"fileIdsList":[[109,111],[105,106],[105,106,107,108],[110],[112],[102],[101,102],[56,61],[67,68,75,84],[57,67,75],[93],[61,68,76],[84,89],[64,67,75],[65],[64],[67],[67,69,84,92],[67,68,84],[75,84,92],[67,68,70,75,84,89,92],[70,84,89,92],[103],[92],[64,67,84],[77],[55],[91],[82,93,96],[67,85],[84],[87],[61,75],[53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100],[75],[81],[94],[56,61,67,69,78,84,92,96],[33,38],[33],[33,38,40],[39,40,41,42,43,44,45,46,47,48,49],[33,46],[33,38,48],[33,37,38,50,51],[38,50],[34,35,36],[29],[29,30,31,32]],"referencedMap":[[112,1],[107,2],[109,3],[108,2],[111,4],[113,5],[53,6],[103,7],[56,8],[57,9],[58,10],[59,11],[60,12],[61,13],[62,14],[64,15],[65,16],[66,17],[67,17],[68,18],[69,19],[70,20],[71,21],[72,22],[104,23],[73,17],[74,24],[75,25],[77,26],[78,27],[79,28],[82,17],[83,29],[84,30],[85,31],[87,17],[88,32],[89,33],[101,34],[91,35],[92,36],[93,37],[95,31],[97,38],[98,31],[39,39],[42,40],[41,41],[50,42],[47,43],[46,40],[49,44],[48,39],[43,41],[45,40],[44,40],[52,45],[51,46],[34,40],[37,47],[36,40],[30,48],[33,49],[32,48]],"exportedModulesMap":[[112,1],[107,2],[109,3],[108,2],[111,4],[113,5],[53,6],[103,7],[56,8],[57,9],[58,10],[59,11],[60,12],[61,13],[62,14],[64,15],[65,16],[66,17],[67,17],[68,18],[69,19],[70,20],[71,21],[72,22],[104,23],[73,17],[74,24],[75,25],[77,26],[78,27],[79,28],[82,17],[83,29],[84,30],[85,31],[87,17],[88,32],[89,33],[101,34],[91,35],[92,36],[93,37],[95,31],[97,38],[98,31],[39,39],[42,40],[41,41],[50,42],[47,43],[46,40],[49,44],[48,39],[43,41],[45,40],[44,40],[52,45],[51,46],[34,40],[37,47],[36,40],[30,48],[33,49],[32,48]],"semanticDiagnosticsPerFile":[38,112,105,107,109,108,106,111,110,113,102,53,55,103,56,57,58,59,60,61,62,63,64,65,66,67,68,69,54,99,70,71,72,104,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,101,91,92,93,94,95,96,100,97,98,6,8,7,2,9,10,11,12,13,14,15,16,3,4,20,17,18,19,21,22,23,5,24,25,26,27,1,28,39,42,41,50,47,46,49,48,43,45,40,44,52,51,34,37,35,36,31,30,33,29,32]},"version":"4.6.2"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teleporthq/teleport-plugin-react-styled-jsx",
3
- "version": "0.20.0",
3
+ "version": "0.21.0",
4
4
  "description": "A plugin for injecting the styles as a styled-jsx tag inside React 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.20.0",
29
- "@teleporthq/teleport-shared": "^0.20.0",
30
- "@teleporthq/teleport-types": "^0.20.0"
28
+ "@teleporthq/teleport-plugin-common": "^0.21.0",
29
+ "@teleporthq/teleport-shared": "^0.21.0",
30
+ "@teleporthq/teleport-types": "^0.21.0"
31
31
  },
32
- "gitHead": "5af5121b8341165b79f3ebd8111811dfb8540397"
32
+ "gitHead": "dd790cfb393fbdb560646eded5a9d6111e43b6ad"
33
33
  }
package/src/index.ts CHANGED
@@ -20,7 +20,7 @@ export const createReactStyledJSXPlugin: ComponentPluginFactory<StyledJSXConfig>
20
20
  const reactStyledJSXPlugin: ComponentPlugin = async (structure) => {
21
21
  const { uidl, chunks, options } = structure
22
22
  const { projectStyleSet } = options
23
- const { node, styleSetDefinitions: componentStyleSheet = {} } = uidl
23
+ const { node, styleSetDefinitions: componentStyleSheet = {}, propDefinitions = {} } = uidl
24
24
 
25
25
  const componentChunk = chunks.find((chunk) => chunk.name === componentChunkName)
26
26
  if (!componentChunk) {
@@ -29,7 +29,10 @@ export const createReactStyledJSXPlugin: ComponentPluginFactory<StyledJSXConfig>
29
29
 
30
30
  const jsxNodesLookup = componentChunk.meta.nodesLookup as Record<string, types.JSXElement>
31
31
  const propsPrefix = componentChunk.meta.dynamicRefPrefix.prop as string
32
- const mediaStylesMap: Record<string, Record<string, unknown>> = {}
32
+ const mediaStylesMap: Record<
33
+ string,
34
+ Array<{ [x: string]: Record<string, string | number> }>
35
+ > = {}
33
36
  const classMap: string[] = []
34
37
 
35
38
  const transformStyle = (style: Record<string, UIDLStyleValue>) =>
@@ -41,7 +44,8 @@ export const createReactStyledJSXPlugin: ComponentPluginFactory<StyledJSXConfig>
41
44
  return `\$\{${propsPrefix}.${styleValue.content.id}\}`
42
45
  default:
43
46
  throw new PluginStyledJSX(
44
- `Error running transformDynamicStyles in reactStyledJSXChunkPlugin. Unsupported styleValue.content.referenceType value ${styleValue.content.referenceType}`
47
+ `Error running transformDynamicStyles in reactStyledJSXChunkPlugin.\n
48
+ Unsupported styleValue.content.referenceType value ${styleValue.content.referenceType}`
45
49
  )
46
50
  }
47
51
  })
@@ -49,13 +53,26 @@ export const createReactStyledJSXPlugin: ComponentPluginFactory<StyledJSXConfig>
49
53
  UIDLUtils.traverseElements(node, (element) => {
50
54
  const classNamesToAppend: Set<string> = new Set()
51
55
  const dynamicVariantsToAppend: Set<types.Identifier | types.MemberExpression> = new Set()
52
- const { style = {}, key, referencedStyles = {} } = element
56
+ const {
57
+ style = {},
58
+ key,
59
+ referencedStyles = {},
60
+ attrs = {},
61
+ dependency,
62
+ elementType,
63
+ } = element
53
64
  const elementClassName = StringUtils.camelCaseToDashCase(key)
54
- const className = forceScoping
55
- ? `${StringUtils.camelCaseToDashCase(
56
- UIDLUtils.getComponentClassName(uidl)
57
- )}-${elementClassName}`
58
- : elementClassName
65
+ const className = getClassName(forceScoping, uidl.name, elementClassName)
66
+
67
+ if (forceScoping && dependency?.type === 'local') {
68
+ StyleBuilders.setPropValueForCompStyle({
69
+ key,
70
+ jsxNodesLookup,
71
+ attrs,
72
+ getClassName: (str: string) =>
73
+ getClassName(forceScoping, StringUtils.camelCaseToDashCase(elementType), str),
74
+ })
75
+ }
59
76
 
60
77
  if (Object.keys(style).length === 0 && Object.keys(referencedStyles).length === 0) {
61
78
  return
@@ -73,26 +90,29 @@ export const createReactStyledJSXPlugin: ComponentPluginFactory<StyledJSXConfig>
73
90
  Object.values(referencedStyles).forEach((styleRef) => {
74
91
  switch (styleRef.content.mapType) {
75
92
  case 'inlined': {
76
- const { conditions } = styleRef.content
77
- if (conditions[0].conditionType === 'screen-size') {
78
- mediaStylesMap[conditions[0].maxWidth] = {
79
- ...mediaStylesMap[conditions[0].maxWidth],
80
- [className]: transformStyle(styleRef.content.styles),
93
+ const condition = styleRef.content.conditions[0]
94
+ if (condition.conditionType === 'screen-size') {
95
+ const { maxWidth } = condition
96
+ if (!mediaStylesMap[String(maxWidth)]) {
97
+ mediaStylesMap[String(maxWidth)] = []
81
98
  }
99
+
100
+ mediaStylesMap[String(maxWidth)].push({
101
+ [className]: transformStyle(styleRef.content.styles),
102
+ })
82
103
  }
83
104
 
84
- if (conditions[0].conditionType === 'element-state') {
105
+ if (condition.conditionType === 'element-state') {
85
106
  classMap.push(
86
107
  StyleBuilders.createCSSClassWithSelector(
87
108
  className,
88
- `&:${conditions[0].content}`,
109
+ `&:${condition.content}`,
89
110
  transformStyle(styleRef.content.styles)
90
111
  )
91
112
  )
92
113
  }
93
114
 
94
115
  classNamesToAppend.add(className)
95
-
96
116
  return
97
117
  }
98
118
 
@@ -111,31 +131,36 @@ export const createReactStyledJSXPlugin: ComponentPluginFactory<StyledJSXConfig>
111
131
  types.identifier(styleRef.content.content.content.id)
112
132
  )
113
133
  )
134
+ const defaultPropValue =
135
+ propDefinitions[styleRef.content.content.content.id]?.defaultValue
136
+ if (!defaultPropValue) {
137
+ return
138
+ }
139
+
140
+ propDefinitions[styleRef.content.content.content.id].defaultValue = getClassName(
141
+ forceScoping,
142
+ uidl.name,
143
+ String(defaultPropValue)
144
+ )
114
145
  }
115
146
 
116
147
  if (
117
148
  styleRef.content.content.type === 'dynamic' &&
118
149
  styleRef.content.content.content.referenceType === 'comp'
119
150
  ) {
120
- classNamesToAppend.add(styleRef.content.content.content.id)
151
+ classNamesToAppend.add(
152
+ getClassName(forceScoping, uidl.name, styleRef.content.content.content.id)
153
+ )
121
154
  }
122
155
 
123
156
  return
124
157
  }
125
158
 
126
159
  case 'project-referenced': {
127
- if (!projectStyleSet) {
128
- throw new PluginStyledJSX(
129
- `Project Style Sheet is missing, but the node is referring to it ${element}`
130
- )
131
- }
132
-
133
160
  const { content } = styleRef
134
161
  const referedStyle = projectStyleSet.styleSetDefinitions[content.referenceId]
135
162
  if (!referedStyle) {
136
- throw new PluginStyledJSX(
137
- `Style that is being used for reference is missing - ${content.referenceId}`
138
- )
163
+ throw new PluginStyledJSX(`Project style - ${content.referenceId} is missing`)
139
164
  }
140
165
 
141
166
  classNamesToAppend.add(content.referenceId)
@@ -143,7 +168,9 @@ export const createReactStyledJSXPlugin: ComponentPluginFactory<StyledJSXConfig>
143
168
  }
144
169
 
145
170
  default: {
146
- throw new PluginStyledJSX('We support only project-referneced and inlined for now.')
171
+ throw new PluginStyledJSX(
172
+ `Un-supported style reference ${JSON.stringify(styleRef.content, null, 2)}`
173
+ )
147
174
  }
148
175
  }
149
176
  })
@@ -162,25 +189,15 @@ export const createReactStyledJSXPlugin: ComponentPluginFactory<StyledJSXConfig>
162
189
  componentStyleSheet,
163
190
  classMap,
164
191
  mediaStylesMap,
165
- UIDLUtils.getComponentClassName(uidl)
192
+ (styleName: string) => getClassName(forceScoping, uidl.name, styleName)
166
193
  )
167
194
  }
168
195
 
169
196
  if (Object.keys(mediaStylesMap).length > 0) {
170
- Object.keys(mediaStylesMap)
171
- .sort((a: string, b: string) => Number(a) - Number(b))
172
- .reverse()
173
- .forEach((mediaOffset: string) => {
174
- classMap.push(
175
- StyleBuilders.createCSSClassWithMediaQuery(
176
- `max-width: ${mediaOffset}px`,
177
- mediaStylesMap[mediaOffset] as Record<string, string | number>
178
- )
179
- )
180
- })
197
+ classMap.push(...StyleBuilders.generateMediaStyle(mediaStylesMap))
181
198
  }
182
199
 
183
- if (!classMap || !classMap.length) {
200
+ if (classMap.length === 0) {
184
201
  return structure
185
202
  }
186
203
 
@@ -211,3 +228,9 @@ export const createReactStyledJSXPlugin: ComponentPluginFactory<StyledJSXConfig>
211
228
  }
212
229
 
213
230
  export default createReactStyledJSXPlugin()
231
+
232
+ const getClassName = (scoping: boolean, uidlName: string, nodeStyleName: string) => {
233
+ return scoping
234
+ ? StringUtils.camelCaseToDashCase(`${uidlName}-${nodeStyleName}`)
235
+ : StringUtils.camelCaseToDashCase(nodeStyleName)
236
+ }