@teleporthq/teleport-plugin-react-styled-jsx 0.41.0 → 0.42.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('.secondary-navbar')
41
+ expect(styles).toContain('.my-componentsecondary-navbar')
42
42
  })
43
43
 
44
44
  it('Generates style sheet and adds them to the node with JSX template', async () => {
@@ -1,7 +1,6 @@
1
1
  import { ComponentPluginFactory, ComponentPlugin } from '@teleporthq/teleport-types';
2
2
  interface StyledJSXConfig {
3
3
  componentChunkName: string;
4
- forceScoping: boolean;
5
4
  }
6
5
  export declare const createReactStyledJSXPlugin: ComponentPluginFactory<StyledJSXConfig>;
7
6
  declare const _default: ComponentPlugin;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,sBAAsB,EACtB,eAAe,EAGhB,MAAM,4BAA4B,CAAA;AAInC,UAAU,eAAe;IACvB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,YAAY,EAAE,OAAO,CAAA;CACtB;AAED,eAAO,MAAM,0BAA0B,EAAE,sBAAsB,CAAC,eAAe,CAyN9E,CAAA;;AAED,wBAA2C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,sBAAsB,EACtB,eAAe,EAKhB,MAAM,4BAA4B,CAAA;AAInC,UAAU,eAAe;IACvB,kBAAkB,EAAE,MAAM,CAAA;CAC3B;AAiBD,eAAO,MAAM,0BAA0B,EAAE,sBAAsB,CAAC,eAAe,CA+Q9E,CAAA;;AAED,wBAA2C"}
package/dist/cjs/index.js CHANGED
@@ -65,14 +65,27 @@ var teleport_plugin_common_1 = require("@teleporthq/teleport-plugin-common");
65
65
  var teleport_types_1 = require("@teleporthq/teleport-types");
66
66
  var utils_1 = require("./utils");
67
67
  var types = __importStar(require("@babel/types"));
68
+ var transformStyle = function (style, propsPrefix) {
69
+ return teleport_shared_1.UIDLUtils.transformDynamicStyles(style, function (styleValue) {
70
+ switch (styleValue.content.referenceType) {
71
+ case 'token':
72
+ return "var(".concat(teleport_shared_1.StringUtils.generateCSSVariableName(styleValue.content.id), ")");
73
+ case 'prop':
74
+ return "${".concat(propsPrefix, ".").concat(styleValue.content.id, "}");
75
+ default:
76
+ throw new teleport_types_1.PluginStyledJSX("Error running transformDynamicStyles in reactStyledJSXChunkPlugin.\n\n Unsupported styleValue.content.referenceType value ".concat(styleValue.content.referenceType));
77
+ }
78
+ });
79
+ };
68
80
  var createReactStyledJSXPlugin = function (config) {
69
- var _a = config || {}, _b = _a.componentChunkName, componentChunkName = _b === void 0 ? 'jsx-component' : _b, _c = _a.forceScoping, forceScoping = _c === void 0 ? false : _c;
81
+ var _a = (config || {}).componentChunkName, componentChunkName = _a === void 0 ? 'jsx-component' : _a;
70
82
  var reactStyledJSXPlugin = function (structure) { return __awaiter(void 0, void 0, void 0, function () {
71
- var uidl, chunks, options, projectStyleSet, node, _a, componentStyleSheet, _b, propDefinitions, componentChunk, jsxNodesLookup, propsPrefix, mediaStylesMap, classMap, transformStyle, styleJSXAST, rootJSXNode, originalRootNode, componentAST, arrowFnExpr, bodyStatement, returnStatement;
72
- return __generator(this, function (_c) {
83
+ var uidl, chunks, options, projectStyleSet, node, _a, componentStyleSheet, _b, propDefinitions, _c, stateDefinitions, componentChunk, jsxNodesLookup, propsPrefix, mediaStylesMap, classMap, generateStylesForElementNode, _i, _d, prop, styleJSXAST, rootJSXNode, originalRootNode, componentAST, arrowFnExpr, bodyStatement, returnStatement;
84
+ var _e, _f;
85
+ return __generator(this, function (_g) {
73
86
  uidl = structure.uidl, chunks = structure.chunks, options = structure.options;
74
87
  projectStyleSet = options.projectStyleSet;
75
- node = uidl.node, _a = uidl.styleSetDefinitions, componentStyleSheet = _a === void 0 ? {} : _a, _b = uidl.propDefinitions, propDefinitions = _b === void 0 ? {} : _b;
88
+ node = uidl.node, _a = uidl.styleSetDefinitions, componentStyleSheet = _a === void 0 ? {} : _a, _b = uidl.propDefinitions, propDefinitions = _b === void 0 ? {} : _b, _c = uidl.stateDefinitions, stateDefinitions = _c === void 0 ? {} : _c;
76
89
  componentChunk = chunks.find(function (chunk) { return chunk.name === componentChunkName; });
77
90
  if (!componentChunk) {
78
91
  return [2 /*return*/, structure];
@@ -81,41 +94,31 @@ var createReactStyledJSXPlugin = function (config) {
81
94
  propsPrefix = componentChunk.meta.dynamicRefPrefix.prop;
82
95
  mediaStylesMap = {};
83
96
  classMap = [];
84
- transformStyle = function (style) {
85
- return teleport_shared_1.UIDLUtils.transformDynamicStyles(style, function (styleValue) {
86
- switch (styleValue.content.referenceType) {
87
- case 'token':
88
- return "var(".concat(teleport_shared_1.StringUtils.generateCSSVariableName(styleValue.content.id), ")");
89
- case 'prop':
90
- return "${".concat(propsPrefix, ".").concat(styleValue.content.id, "}");
91
- default:
92
- throw new teleport_types_1.PluginStyledJSX("Error running transformDynamicStyles in reactStyledJSXChunkPlugin.\n\n Unsupported styleValue.content.referenceType value ".concat(styleValue.content.referenceType));
93
- }
94
- });
95
- };
96
- teleport_shared_1.UIDLUtils.traverseElements(node, function (element) {
97
+ generateStylesForElementNode = function (element) {
97
98
  var classNamesToAppend = new Set();
98
99
  var dynamicVariantsToAppend = new Set();
99
100
  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;
100
- var elementClassName = teleport_shared_1.StringUtils.camelCaseToDashCase(key);
101
- var className = getClassName(forceScoping, uidl.name, elementClassName);
102
- if (forceScoping && (dependency === null || dependency === void 0 ? void 0 : dependency.type) === 'local') {
101
+ if (key === undefined) {
102
+ throw new Error("Key is missing for element \n ".concat(JSON.stringify(element, null, 2)));
103
+ }
104
+ var className = teleport_shared_1.StringUtils.camelCaseToDashCase(key);
105
+ var root = jsxNodesLookup[key];
106
+ if (!root) {
107
+ throw new teleport_types_1.PluginStyledJSX("Element \n ".concat(JSON.stringify(element, null, 2), " \n with key ").concat(key, " is missing from the template chunk of component ").concat(uidl.name));
108
+ }
109
+ if ((dependency === null || dependency === void 0 ? void 0 : dependency.type) === 'local') {
103
110
  teleport_plugin_common_1.StyleBuilders.setPropValueForCompStyle({
104
- key: key,
105
- jsxNodesLookup: jsxNodesLookup,
111
+ root: root,
106
112
  attrs: attrs,
107
- getClassName: function (str) {
108
- return getClassName(forceScoping, teleport_shared_1.StringUtils.camelCaseToDashCase(elementType), str);
109
- },
113
+ getClassName: function (str) { return teleport_shared_1.StringUtils.camelCaseToDashCase(elementType + str); },
110
114
  });
111
115
  }
112
116
  if (Object.keys(style).length === 0 && Object.keys(referencedStyles).length === 0) {
113
117
  return;
114
118
  }
115
- var root = jsxNodesLookup[key];
116
119
  // Generating the string templates for the dynamic styles
117
120
  if (Object.keys(style).length > 0) {
118
- var styleRules = transformStyle(style);
121
+ var styleRules = transformStyle(style, propsPrefix);
119
122
  classMap.push(teleport_plugin_common_1.StyleBuilders.createCSSClass(className, styleRules));
120
123
  classNamesToAppend.add(className);
121
124
  }
@@ -131,11 +134,11 @@ var createReactStyledJSXPlugin = function (config) {
131
134
  mediaStylesMap[String(maxWidth)] = [];
132
135
  }
133
136
  mediaStylesMap[String(maxWidth)].push((_a = {},
134
- _a[className] = transformStyle(styleRef.content.styles),
137
+ _a[className] = transformStyle(styleRef.content.styles, propsPrefix),
135
138
  _a));
136
139
  }
137
140
  if (condition.conditionType === 'element-state') {
138
- classMap.push(teleport_plugin_common_1.StyleBuilders.createCSSClassWithSelector(className, "&:".concat(condition.content), transformStyle(styleRef.content.styles)));
141
+ classMap.push(teleport_plugin_common_1.StyleBuilders.createCSSClassWithSelector(className, "&:".concat(condition.content), transformStyle(styleRef.content.styles, propsPrefix)));
139
142
  }
140
143
  classNamesToAppend.add(className);
141
144
  return;
@@ -151,11 +154,12 @@ var createReactStyledJSXPlugin = function (config) {
151
154
  if (!defaultPropValue) {
152
155
  return;
153
156
  }
154
- propDefinitions[styleRef.content.content.content.id].defaultValue = getClassName(forceScoping, uidl.name, String(defaultPropValue));
157
+ propDefinitions[styleRef.content.content.content.id].defaultValue =
158
+ teleport_shared_1.StringUtils.camelCaseToDashCase(String(defaultPropValue));
155
159
  }
156
160
  if (styleRef.content.content.type === 'dynamic' &&
157
161
  styleRef.content.content.content.referenceType === 'comp') {
158
- classNamesToAppend.add(getClassName(forceScoping, uidl.name, styleRef.content.content.content.id));
162
+ classNamesToAppend.add(teleport_shared_1.StringUtils.camelCaseToDashCase(styleRef.content.content.content.id));
159
163
  }
160
164
  return;
161
165
  }
@@ -165,7 +169,36 @@ var createReactStyledJSXPlugin = function (config) {
165
169
  if (!referedStyle) {
166
170
  throw new teleport_types_1.PluginStyledJSX("Project style - ".concat(content.referenceId, " is missing"));
167
171
  }
168
- classNamesToAppend.add(content.referenceId);
172
+ if (styleRef.content.condition) {
173
+ var nameToAppend = styleRef.content.condition.reference.content.id;
174
+ var conditions = styleRef.content.condition.expression.conditions;
175
+ var operator = conditions[0].operation;
176
+ var right = conditions[0].operand;
177
+ var referenceType = styleRef.content.condition.reference.content.referenceType;
178
+ var binaryExpressionType = '';
179
+ switch (referenceType) {
180
+ case 'prop': {
181
+ binaryExpressionType = propDefinitions[nameToAppend].type;
182
+ break;
183
+ }
184
+ case 'state': {
185
+ binaryExpressionType = stateDefinitions[nameToAppend].type;
186
+ break;
187
+ }
188
+ default: {
189
+ throw new teleport_types_1.PluginStyledJSX("Un-supported reference type ".concat(referenceType, " for style reference ").concat(JSON.stringify(styleRef.content, null, 2)));
190
+ }
191
+ }
192
+ var binaryExpression = (0, teleport_plugin_common_1.createBinaryExpression)({ operation: operator, operand: right }, {
193
+ key: (referenceType === 'prop' ? 'props?.' : '') + nameToAppend,
194
+ type: binaryExpressionType,
195
+ });
196
+ var conditionalExpression = types.conditionalExpression(binaryExpression, types.stringLiteral(content.referenceId), types.stringLiteral(''));
197
+ dynamicVariantsToAppend.add(conditionalExpression);
198
+ }
199
+ else {
200
+ classNamesToAppend.add(content.referenceId);
201
+ }
169
202
  return;
170
203
  }
171
204
  default: {
@@ -174,10 +207,17 @@ var createReactStyledJSXPlugin = function (config) {
174
207
  }
175
208
  });
176
209
  teleport_plugin_common_1.ASTUtils.addClassStringOnJSXTag(root, Array.from(classNamesToAppend).join(' '), 'className', Array.from(dynamicVariantsToAppend));
177
- });
210
+ };
211
+ teleport_shared_1.UIDLUtils.traverseElements(node, generateStylesForElementNode);
212
+ for (_i = 0, _d = Object.values(propDefinitions); _i < _d.length; _i++) {
213
+ prop = _d[_i];
214
+ if (prop.type === 'element' && prop.defaultValue) {
215
+ teleport_shared_1.UIDLUtils.traverseElements(prop.defaultValue, generateStylesForElementNode);
216
+ }
217
+ }
178
218
  /* Generating component scoped styles */
179
219
  if (Object.keys(componentStyleSheet).length > 0) {
180
- teleport_plugin_common_1.StyleBuilders.generateStylesFromStyleSetDefinitions(componentStyleSheet, classMap, mediaStylesMap, function (styleName) { return getClassName(forceScoping, uidl.name, styleName); });
220
+ teleport_plugin_common_1.StyleBuilders.generateStylesFromStyleSetDefinitions(componentStyleSheet, classMap, mediaStylesMap, function (styleName) { return teleport_shared_1.StringUtils.camelCaseToDashCase(uidl.name + styleName); });
181
221
  }
182
222
  if (Object.keys(mediaStylesMap).length > 0) {
183
223
  classMap.push.apply(classMap, teleport_plugin_common_1.StyleBuilders.generateMediaStyle(mediaStylesMap));
@@ -191,7 +231,7 @@ var createReactStyledJSXPlugin = function (config) {
191
231
  rootJSXNode = teleport_plugin_common_1.ASTBuilders.createJSXTag('');
192
232
  rootJSXNode.children.push(originalRootNode);
193
233
  componentAST = componentChunk.content;
194
- arrowFnExpr = componentAST.declarations[0].init;
234
+ arrowFnExpr = (_f = (_e = componentAST.declarations) === null || _e === void 0 ? void 0 : _e[0]) === null || _f === void 0 ? void 0 : _f.init;
195
235
  bodyStatement = arrowFnExpr.body;
196
236
  returnStatement = bodyStatement.body.find(function (statement) { return statement.type === 'ReturnStatement'; });
197
237
  if (!returnStatement) {
@@ -207,9 +247,4 @@ var createReactStyledJSXPlugin = function (config) {
207
247
  };
208
248
  exports.createReactStyledJSXPlugin = createReactStyledJSXPlugin;
209
249
  exports.default = (0, exports.createReactStyledJSXPlugin)();
210
- var getClassName = function (scoping, uidlName, nodeStyleName) {
211
- return scoping
212
- ? teleport_shared_1.StringUtils.camelCaseToDashCase("".concat(uidlName, "-").concat(nodeStyleName))
213
- : teleport_shared_1.StringUtils.camelCaseToDashCase(nodeStyleName);
214
- };
215
250
  //# 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,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,GAA0E,IAAI,KAA9E,EAAE,KAAwE,IAAI,oBAA/B,EAAxB,mBAAmB,mBAAG,EAAE,KAAA,EAAE,KAAyB,IAAI,gBAAT,EAApB,eAAe,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,YAAY,GAAG,cAAc,CAAC,OAAoC,CAAA;YAClE,WAAW,GAAG,MAAA,MAAA,YAAY,CAAC,YAAY,0CAAG,CAAC,CAAC,0CAAE,IAAqC,CAAA;YACnF,aAAa,GAAG,WAAW,CAAC,IAA4B,CAAA;YACxD,eAAe,GAAG,aAAa,CAAC,IAAI,CAAC,IAAI,CAC7C,UAAC,SAAS,IAAK,OAAA,SAAS,CAAC,IAAI,KAAK,iBAAiB,EAApC,CAAoC,CACpD,CAAA;YAED,IAAI,CAAC,eAAe,EAAE;gBACpB,MAAM,IAAI,gCAAe,CAAC,oDAAoD,CAAC,CAAA;aAChF;YACD,CAAC;YAAC,eAAyC,CAAC,QAAQ,GAAG,WAAW,CAAA;YAElE,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;YACtC,sBAAO,SAAS,EAAA;;SACjB,CAAA;IAED,OAAO,oBAAoB,CAAA;AAC7B,CAAC,CAAA;AA/QY,QAAA,0BAA0B,8BA+QtC;AAED,kBAAe,IAAA,kCAA0B,GAAE,CAAA"}
@@ -1 +1 @@
1
- {"program":{"fileNames":["../../../../node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../../node_modules/typescript/lib/lib.dom.d.ts","../../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../teleport-types/dist/cjs/helper.d.ts","../../../teleport-types/dist/cjs/uidl.d.ts","../../../teleport-types/dist/cjs/generators.d.ts","../../../teleport-types/dist/cjs/errors.d.ts","../../../teleport-types/dist/cjs/vuidl.d.ts","../../../teleport-types/dist/cjs/index.d.ts","../../../teleport-shared/dist/cjs/constants/index.d.ts","../../../teleport-shared/dist/cjs/utils/string-utils.d.ts","../../../teleport-shared/dist/cjs/utils/uidl-utils.d.ts","../../../teleport-shared/dist/cjs/utils/generic.d.ts","../../../teleport-shared/dist/cjs/index.d.ts","../../../../node_modules/@babel/types/lib/index.d.ts","../../../teleport-plugin-common/dist/cjs/builders/ast-builders.d.ts","../../../teleport-plugin-common/dist/cjs/utils/parsed-ast.d.ts","../../../teleport-plugin-common/dist/cjs/builders/style-builders.d.ts","../../../teleport-plugin-common/dist/cjs/builders/hast-builders.d.ts","../../../teleport-plugin-common/dist/cjs/utils/ast-utils.d.ts","../../../teleport-plugin-common/dist/cjs/utils/style-utils.d.ts","../../../teleport-plugin-common/dist/cjs/utils/hast-utils.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-html/types.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-html/index.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-jsx/types.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-jsx/index.d.ts","../../../teleport-plugin-common/dist/cjs/index.d.ts","../../src/utils.ts","../../src/index.ts","../../../../node_modules/@types/node/assert.d.ts","../../../../node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/@types/node/globals.d.ts","../../../../node_modules/@types/node/async_hooks.d.ts","../../../../node_modules/@types/node/buffer.d.ts","../../../../node_modules/@types/node/child_process.d.ts","../../../../node_modules/@types/node/cluster.d.ts","../../../../node_modules/@types/node/console.d.ts","../../../../node_modules/@types/node/constants.d.ts","../../../../node_modules/@types/node/crypto.d.ts","../../../../node_modules/@types/node/dgram.d.ts","../../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../../node_modules/@types/node/dns.d.ts","../../../../node_modules/@types/node/dns/promises.d.ts","../../../../node_modules/@types/node/domain.d.ts","../../../../node_modules/@types/node/dom-events.d.ts","../../../../node_modules/@types/node/events.d.ts","../../../../node_modules/@types/node/fs.d.ts","../../../../node_modules/@types/node/fs/promises.d.ts","../../../../node_modules/@types/node/http.d.ts","../../../../node_modules/@types/node/http2.d.ts","../../../../node_modules/@types/node/https.d.ts","../../../../node_modules/@types/node/inspector.d.ts","../../../../node_modules/@types/node/module.d.ts","../../../../node_modules/@types/node/net.d.ts","../../../../node_modules/@types/node/os.d.ts","../../../../node_modules/@types/node/path.d.ts","../../../../node_modules/@types/node/perf_hooks.d.ts","../../../../node_modules/@types/node/process.d.ts","../../../../node_modules/@types/node/punycode.d.ts","../../../../node_modules/@types/node/querystring.d.ts","../../../../node_modules/@types/node/readline.d.ts","../../../../node_modules/@types/node/readline/promises.d.ts","../../../../node_modules/@types/node/repl.d.ts","../../../../node_modules/@types/node/stream.d.ts","../../../../node_modules/@types/node/stream/promises.d.ts","../../../../node_modules/@types/node/stream/consumers.d.ts","../../../../node_modules/@types/node/stream/web.d.ts","../../../../node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/@types/node/test.d.ts","../../../../node_modules/@types/node/timers.d.ts","../../../../node_modules/@types/node/timers/promises.d.ts","../../../../node_modules/@types/node/tls.d.ts","../../../../node_modules/@types/node/trace_events.d.ts","../../../../node_modules/@types/node/tty.d.ts","../../../../node_modules/@types/node/url.d.ts","../../../../node_modules/@types/node/util.d.ts","../../../../node_modules/@types/node/v8.d.ts","../../../../node_modules/@types/node/vm.d.ts","../../../../node_modules/@types/node/wasi.d.ts","../../../../node_modules/@types/node/worker_threads.d.ts","../../../../node_modules/@types/node/zlib.d.ts","../../../../node_modules/@types/node/globals.global.d.ts","../../../../node_modules/@types/node/index.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/cleanupSemantic.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/types.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/diffLines.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/printDiffs.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/index.d.ts","../../../../node_modules/@types/jest/node_modules/pretty-format/build/types.d.ts","../../../../node_modules/@types/jest/node_modules/pretty-format/build/index.d.ts","../../../../node_modules/@types/jest/index.d.ts","../../../../node_modules/@types/jest/ts3.2/index.d.ts"],"fileInfos":[{"version":"8730f4bf322026ff5229336391a18bcaa1f94d4f82416c8b2f3954e2ccaae2ba","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","4b421cbfb3a38a27c279dec1e9112c3d1da296f77a1a85ddadf7e7a425d45d18","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9",{"version":"3aafcb693fe5b5c3bd277bd4c3a617b53db474fe498fc5df067c5603b1eebde7","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"5f406584aef28a331c36523df688ca3650288d14f39c5d2e555c95f0d2ff8f6f","affectsGlobalScope":true},{"version":"22f230e544b35349cfb3bd9110b6ef37b41c6d6c43c3314a31bd0d9652fcec72","affectsGlobalScope":true},{"version":"7ea0b55f6b315cf9ac2ad622b0a7813315bb6e97bf4bb3fbf8f8affbca7dc695","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"eb26de841c52236d8222f87e9e6a235332e0788af8c87a71e9e210314300410a","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"5e5e095c4470c8bab227dbbc61374878ecead104c74ab9960d3adcccfee23205","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"2768ef564cfc0689a1b76106c421a2909bdff0acbe87da010785adab80efdd5c","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},"b09482535eb7d553ab0507e93616b811a3194a0339292f0e534787e4b01568bb","71da47b249a28585b6edb3d5a5d89b468f75c70e7696da7c978c276625683442","dc19b304f9b96efbea7359264ac17eaf4c2d3fd231df7306eddfb983039785ca","71a689048584cde03cb508408ae7c3b04ad8f10af887865e8b65c27ed9d91488","d50fe6e9eb7f4722fa789aab25bf60d0dfbcc36cc76af4a7d7af2b5886665f93","6ba1631f84ef4507073189c4ada06d6de8bac89375ea3b49e34e49006cc44a3f","afa9397f3aa80897cec3ddec1dd6f7c8741106ce96090f74df790a474b114ed6","8c08668019739abf45bfa24fb3559a4362161c438e71e3925f06bd6ea2792883","22c6f439ba8a0f6347a16d6fad503bb8a2fbfe778e5cf5c90918659c653c8a8c","2c55653d46d0d2bfa1b84b54c3a4ffa6e43de5b05c9f808e46b42adffc4e3e92","1875bde1eafbc9d923cd1624ac1fd6da0af82347c2a9c7a847a660cc4fa01a33","1905eab6570faf3010802b4c00196eda6285b028f0b41bdfa7f7a29427502b62","ce5106bc15353dd05f601ecb48fd99b152362346cbbb3b398e0d5fdc36d24b0a","7d69ac79c9de7620a1bdd926fd4b20b8e968d6467a220eac2a836988ab47c933","c7b126a023fbcbe6b07edf69283b049fc3ca6958bc19934cde610a0ab5ae8ef3","7383bcf1e3b4970ec58cddeb24becd4fcd207aa518ca46270a6872b63712c29e","8ac46882cbdc97428a25eecc68402898730ed74cd4e58152bb3252fbb3cab775","d4f36091f2a7fac55cac2d088d46e68f01cd5cf68e3db5770b3ba62641875e18","5a007f687f1be0ed103375930c7027eb6f10d0b826472f7f6d7a5b260502104e","64e43fe64a91d26169ee2bbc877135375b99ca4c5806b706f63e962528a3eb30","dcaef7f7c1f0cb2dba19a1a70cc8d5276faa68e50bc69d6a006d3aaaaa9f7aa7","cfbee63950fddcd052c993abe94531a3d16e5273f3f14dc493fd47f78d0cdd03","ffd67adf9464cf9bcddc3954fcd27d59b60e85acb02101fefe8b0eb642a2be2f","59b8c7576043b12356b13745811130ae5fa9c37cbd7ec5e49ecac8e88b8c9992",{"version":"54039b4d16b943ac81a3e239d8db01c3f1e6585778aa304fcabafe0714661e46","signature":"3dbf093ae95fa4d10b4461747a3b7ffb7fec3e95beb702c08588e4d483220f8d"},{"version":"98a8112faa02f09f7cd891a239616c6b53cc9b135e52567b04bf67a6d530303e","signature":"31e2b2bb67a3eec6c7cc4be15f5ecdf22c8bb0d260a1c47782b92b4b1393505c"},"ba8691cf6bea9d53e6bf6cbc22af964a9633a21793981a1be3dce65e7a714d8b","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"bce910d9164785c9f0d4dcea4be359f5f92130c7c7833dea6138ab1db310a1f9","affectsGlobalScope":true},"7d2e3fea24c712c99c03ad8f556abedbfe105f87f1be10b95dbd409d24bc05a3",{"version":"7c387a02bf156d8d45667134d32518ac3ca1b99ca50ca9deff2c1a03eb6d1a81","affectsGlobalScope":true},"3719525a8f6ab731e3dfd585d9f87df55ec7d50d461df84f74eb4d68bb165244","f993522fd7d01ae1ead930091fe35130b8415720d6c2123dc2a7e8eb11bb3cba",{"version":"d5135ad93b33adcce80b18f8065087934cdc1730d63db58562edcf017e1aad9b","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","b787b5b54349a24f07d089b612a9fb8ff024dbbe991ff52ea2b188a6b1230644","bb9c4ffa5e6290c6980b63c815cdd1625876dadb2efaf77edbe82984be93e55e","1cdcfc1f624d6c08aa12c73935f6e13f095919cd99edf95752951796eb225729","df6d4b6ba1e64f682091862faa30104e93891f9e7202d006bf5e7a88ab4a0dbe","14b5aa23c5d0ae1907bc696ac7b6915d88f7d85799cc0dc2dcf98fbce2c5a67c","5c439dafdc09abe4d6c260a96b822fa0ba5be7203c71a63ab1f1423cd9e838ea",{"version":"6b526a5ec4a401ca7c26cfe6a48e641d8f30af76673bad3b06a1b4504594a960","affectsGlobalScope":true},{"version":"c2fcbd6fad600e96fee8c5df1a62e908d477f5b47a9374b2bab7e74f52cfcc92","affectsGlobalScope":true},"0391eb2e0cf2a8d329ba6958f20f2d3d24e53787d65e667f636cc97a5365c046","cc68e79b99f80e4dfd01967ec96be69efb0ff5bd7f779d9a2cc09dfe590ffd28","91d3d8f536f22dcaeeace0fc6f3544d3562e266a27cf3a2fe280b8051af5d006","9503113febdd737095465792cc074d541902c82c0aea3922f940de18784812ad","8d3c583a07e0c37e876908c2d5da575019f689df8d9fa4c081d99119d53dba22","2c828a5405191d006115ab34e191b8474bc6c86ffdc401d1a9864b1b6e088a58",{"version":"6d7ef36605d74efa08b42b40cd31b1844702a72a9e410945da8f40809097f82c","affectsGlobalScope":true},"bcebb922784739bdb34c18ee51095d25a92b560c78ccd2eaacd6bd00f7443d83","7ee6ed878c4528215c82b664fe0cfe80e8b4da6c0d4cc80869367868774db8b1","b0973c3cbcdc59b37bf477731d468696ecaf442593ec51bab497a613a580fe30",{"version":"69e93290f59948789d5fce61cb0b89dde93747a4576744d0d6fae41ee3991646","affectsGlobalScope":true},{"version":"0715e4cd28ad471b2a93f3e552ff51a3ae423417a01a10aa1d3bc7c6b95059d6","affectsGlobalScope":true},"5153a2fd150e46ce57bb3f8db1318d33f6ad3261ed70ceeff92281c0608c74a3","210d54cd652ec0fec8c8916e4af59bb341065576ecda039842f9ffb2e908507c","36b03690b628eab08703d63f04eaa89c5df202e5f1edf3989f13ad389cd2c091","0effadd232a20498b11308058e334d3339cc5bf8c4c858393e38d9d4c0013dcf","25846d43937c672bab7e8195f3d881f93495df712ee901860effc109918938cc","ff1bad1849903b15fba47f3c29bdec5f97324874c93933a89b2bca28a23977fb","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","69ee23dd0d215b09907ad30d23f88b7790c93329d1faf31d7835552a10cf7cbf","44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","23b89798789dffbd437c0c423f5d02d11f9736aea73d6abf16db4f812ff36eda",{"version":"fddc2fac1bf6896d9c16acab1e5e44164a9b631b4812a3dd805058f188dac75e","affectsGlobalScope":true},{"version":"3c4ba1dd9b12ffa284b565063108f2f031d150ea15b8fafbdc17f5d2a07251f3","affectsGlobalScope":true},"e10177274a35a9d07c825615340b2fcde2f610f53f3fb40269fd196b4288dda6","1422cd9e705adcc09088fda85a900c2b70e3ad36ea85846f68bd1a884cdf4e2b","3c13ef48634e7b5012fcf7e8fce7496352c2d779a7201389ca96a2a81ee4314d","5d0a25ec910fa36595f85a67ac992d7a53dd4064a1ba6aea1c9f14ab73a023f2",{"version":"22d7b95cb63dead43834ae20ee492c9c8b6d90db3957d21665199f0efb1d3e26","affectsGlobalScope":true},{"version":"a9fc1469744055a3435f203123246b96c094e7ff8c4e1c3863829d9b705b7a34","affectsGlobalScope":true},"868831cab82b65dfe1d68180e898af1f2101e89ba9b754d1db6fb8cc2fac1921","0fe8985a28f82c450a04a6edf1279d7181c0893f37da7d2a27f8efd4fd5edb03","e59a892d87e72733e2a9ca21611b9beb52977be2696c7ba4b216cbbb9a48f5aa",{"version":"52120bb7e4583612225bdf08e7c12559548170f11e660d33a33623bae9bbdbba","affectsGlobalScope":true},"8a300fa9b698845a1f9c41ecbe2c5966634582a8e2020d51abcace9b55aa959e",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"d5be4343a9ace4611f04a6fffd91ceba91265fa15bfb0149306e0a6963e1a015","e222104af6cb9415238ad358488b74d76eceeff238c1268ec6e85655b05341da","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","eba230221317c985ab1953ccc3edc517f248b37db4fef7875cb2c8d08aff7be7","b83e796810e475da3564c6515bc0ae9577070596a33d89299b7d99f94ecfd921","b4439890c168d646357928431100daac5cbdee1d345a34e6bf6eca9f3abe22bc","5d72971a459517c44c1379dab9ed248e87a61ba0a1e0f25c9d67e1e640cd9a09","02d734976af36f4273d930bea88b3e62adf6b078cf120c1c63d49aa8d8427c5c",{"version":"f624e578325b8c58e55b30c998b1f4c3ec1b61a9fa66373da4250c89b7880d44","affectsGlobalScope":true},{"version":"d3002f620eab4bf6476c9da5c0efb2041d46f7df8b3032a5631bd206abef2c75","affectsGlobalScope":true}],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"declarationMap":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"module":1,"noImplicitAny":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","sourceMap":true,"target":1},"fileIdsList":[[115],[115,127,129],[115,123,124],[115,123,124,125,126],[115,128],[115,130],[69,115],[72,115],[73,78,106,115],[74,85,86,93,103,114,115],[74,75,85,93,115],[76,115],[77,78,86,94,115],[78,103,111,115],[79,81,85,93,115],[80,115],[81,82,115],[85,115],[83,85,115],[85,86,87,103,114,115],[85,86,87,100,103,106,115],[115,119],[81,85,88,93,103,114,115],[85,86,88,89,93,103,111,114,115],[88,90,103,111,114,115],[69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121],[85,91,115],[92,114,115,119],[81,85,93,103,115],[94,115],[95,115],[72,96,115],[97,113,115,119],[98,115],[99,115],[85,100,101,115],[100,102,115,117],[73,85,103,104,105,106,115],[73,103,105,115],[103,104,115],[106,115],[107,115],[72,103,115],[85,109,110,115],[109,110,115],[78,93,103,111,115],[112,115],[93,113,115],[73,88,99,114,115],[78,115],[103,115,116],[115,117],[115,118],[73,78,85,87,96,103,114,115,117,119],[103,115,120],[48,54,115],[48,115],[48,54,56,115],[55,56,57,58,59,60,61,62,63,64,65,115],[48,62,115],[48,54,64,115],[48,53,54,66,67,115],[54,66,115],[49,50,51,52,115],[44,115],[44,45,46,47,115],[43,115],[43,44,115],[48],[54]],"referencedMap":[[54,1],[130,2],[123,1],[125,3],[127,4],[126,3],[124,1],[129,5],[128,1],[131,6],[69,7],[70,7],[72,8],[73,9],[74,10],[75,11],[76,12],[77,13],[78,14],[79,15],[80,16],[81,17],[82,17],[84,18],[83,19],[85,18],[86,20],[87,21],[71,22],[121,1],[88,23],[89,24],[90,25],[122,26],[91,27],[92,28],[93,29],[94,30],[95,31],[96,32],[97,33],[98,34],[99,35],[100,36],[101,36],[102,37],[103,38],[105,39],[104,40],[106,41],[107,42],[108,43],[109,44],[110,45],[111,46],[112,47],[113,48],[114,49],[115,50],[116,51],[117,52],[118,53],[119,54],[120,55],[8,1],[10,1],[9,1],[2,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[3,1],[4,1],[22,1],[19,1],[20,1],[21,1],[23,1],[24,1],[25,1],[5,1],[26,1],[27,1],[28,1],[29,1],[6,1],[33,1],[30,1],[31,1],[32,1],[34,1],[7,1],[35,1],[40,1],[41,1],[36,1],[37,1],[38,1],[39,1],[1,1],[42,1],[55,56],[58,57],[57,58],[66,59],[63,60],[62,57],[65,61],[64,56],[59,58],[61,57],[56,1],[60,57],[68,62],[67,63],[49,57],[53,64],[52,1],[50,1],[51,57],[46,1],[45,65],[43,1],[48,66],[44,67],[47,68]],"exportedModulesMap":[[54,1],[130,2],[123,1],[125,3],[127,4],[126,3],[124,1],[129,5],[128,1],[131,6],[69,7],[70,7],[72,8],[73,9],[74,10],[75,11],[76,12],[77,13],[78,14],[79,15],[80,16],[81,17],[82,17],[84,18],[83,19],[85,18],[86,20],[87,21],[71,22],[121,1],[88,23],[89,24],[90,25],[122,26],[91,27],[92,28],[93,29],[94,30],[95,31],[96,32],[97,33],[98,34],[99,35],[100,36],[101,36],[102,37],[103,38],[105,39],[104,40],[106,41],[107,42],[108,43],[109,44],[110,45],[111,46],[112,47],[113,48],[114,49],[115,50],[116,51],[117,52],[118,53],[119,54],[120,55],[8,1],[10,1],[9,1],[2,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[3,1],[4,1],[22,1],[19,1],[20,1],[21,1],[23,1],[24,1],[25,1],[5,1],[26,1],[27,1],[28,1],[29,1],[6,1],[33,1],[30,1],[31,1],[32,1],[34,1],[7,1],[35,1],[40,1],[41,1],[36,1],[37,1],[38,1],[39,1],[1,1],[42,1],[55,56],[58,57],[57,58],[66,59],[63,60],[62,57],[65,61],[64,56],[59,58],[61,57],[56,1],[60,57],[68,69],[67,70],[49,57],[53,64],[52,1],[50,1],[51,57],[46,1],[45,65],[43,1],[48,66],[44,67],[47,68]],"semanticDiagnosticsPerFile":[54,130,123,125,127,126,124,129,128,131,69,70,72,73,74,75,76,77,78,79,80,81,82,84,83,85,86,87,71,121,88,89,90,122,91,92,93,94,95,96,97,98,99,100,101,102,103,105,104,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,8,10,9,2,11,12,13,14,15,16,17,18,3,4,22,19,20,21,23,24,25,5,26,27,28,29,6,33,30,31,32,34,7,35,40,41,36,37,38,39,1,42,55,58,57,66,63,62,65,64,59,61,56,60,68,67,49,53,52,50,51,46,45,43,48,44,47]},"version":"4.9.5"}
1
+ {"program":{"fileNames":["../../../../node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../../node_modules/typescript/lib/lib.dom.d.ts","../../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../teleport-types/dist/cjs/helper.d.ts","../../../teleport-types/dist/cjs/uidl.d.ts","../../../../node_modules/@babel/types/lib/index.d.ts","../../../teleport-types/dist/cjs/generators.d.ts","../../../teleport-types/dist/cjs/errors.d.ts","../../../teleport-types/dist/cjs/vuidl.d.ts","../../../teleport-types/dist/cjs/index.d.ts","../../../teleport-shared/dist/cjs/constants/index.d.ts","../../../teleport-shared/dist/cjs/utils/string-utils.d.ts","../../../teleport-shared/dist/cjs/utils/uidl-utils.d.ts","../../../teleport-shared/dist/cjs/utils/generic.d.ts","../../../teleport-shared/dist/cjs/index.d.ts","../../../teleport-plugin-common/dist/cjs/builders/ast-builders.d.ts","../../../teleport-plugin-common/dist/cjs/utils/parsed-ast.d.ts","../../../teleport-plugin-common/dist/cjs/builders/style-builders.d.ts","../../../teleport-plugin-common/dist/cjs/builders/hast-builders.d.ts","../../../teleport-plugin-common/dist/cjs/utils/types.d.ts","../../../teleport-plugin-common/dist/cjs/utils/ast-utils.d.ts","../../../teleport-plugin-common/dist/cjs/utils/style-utils.d.ts","../../../teleport-plugin-common/dist/cjs/utils/hast-utils.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-jsx/types.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-jsx/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/index.d.ts","../../../teleport-plugin-common/dist/cjs/index.d.ts","../../src/utils.ts","../../src/index.ts","../../../../node_modules/@types/node/assert.d.ts","../../../../node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/buffer/index.d.ts","../../../../node_modules/undici-types/header.d.ts","../../../../node_modules/undici-types/readable.d.ts","../../../../node_modules/undici-types/file.d.ts","../../../../node_modules/undici-types/fetch.d.ts","../../../../node_modules/undici-types/formdata.d.ts","../../../../node_modules/undici-types/connector.d.ts","../../../../node_modules/undici-types/client.d.ts","../../../../node_modules/undici-types/errors.d.ts","../../../../node_modules/undici-types/dispatcher.d.ts","../../../../node_modules/undici-types/global-dispatcher.d.ts","../../../../node_modules/undici-types/global-origin.d.ts","../../../../node_modules/undici-types/pool-stats.d.ts","../../../../node_modules/undici-types/pool.d.ts","../../../../node_modules/undici-types/handlers.d.ts","../../../../node_modules/undici-types/balanced-pool.d.ts","../../../../node_modules/undici-types/agent.d.ts","../../../../node_modules/undici-types/mock-interceptor.d.ts","../../../../node_modules/undici-types/mock-agent.d.ts","../../../../node_modules/undici-types/mock-client.d.ts","../../../../node_modules/undici-types/mock-pool.d.ts","../../../../node_modules/undici-types/mock-errors.d.ts","../../../../node_modules/undici-types/proxy-agent.d.ts","../../../../node_modules/undici-types/api.d.ts","../../../../node_modules/undici-types/cookies.d.ts","../../../../node_modules/undici-types/patch.d.ts","../../../../node_modules/undici-types/filereader.d.ts","../../../../node_modules/undici-types/diagnostics-channel.d.ts","../../../../node_modules/undici-types/websocket.d.ts","../../../../node_modules/undici-types/content-type.d.ts","../../../../node_modules/undici-types/cache.d.ts","../../../../node_modules/undici-types/interceptors.d.ts","../../../../node_modules/undici-types/index.d.ts","../../../../node_modules/@types/node/globals.d.ts","../../../../node_modules/@types/node/async_hooks.d.ts","../../../../node_modules/@types/node/buffer.d.ts","../../../../node_modules/@types/node/child_process.d.ts","../../../../node_modules/@types/node/cluster.d.ts","../../../../node_modules/@types/node/console.d.ts","../../../../node_modules/@types/node/constants.d.ts","../../../../node_modules/@types/node/crypto.d.ts","../../../../node_modules/@types/node/dgram.d.ts","../../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../../node_modules/@types/node/dns.d.ts","../../../../node_modules/@types/node/dns/promises.d.ts","../../../../node_modules/@types/node/domain.d.ts","../../../../node_modules/@types/node/dom-events.d.ts","../../../../node_modules/@types/node/events.d.ts","../../../../node_modules/@types/node/fs.d.ts","../../../../node_modules/@types/node/fs/promises.d.ts","../../../../node_modules/@types/node/http.d.ts","../../../../node_modules/@types/node/http2.d.ts","../../../../node_modules/@types/node/https.d.ts","../../../../node_modules/@types/node/inspector.d.ts","../../../../node_modules/@types/node/module.d.ts","../../../../node_modules/@types/node/net.d.ts","../../../../node_modules/@types/node/os.d.ts","../../../../node_modules/@types/node/path.d.ts","../../../../node_modules/@types/node/perf_hooks.d.ts","../../../../node_modules/@types/node/process.d.ts","../../../../node_modules/@types/node/punycode.d.ts","../../../../node_modules/@types/node/querystring.d.ts","../../../../node_modules/@types/node/readline.d.ts","../../../../node_modules/@types/node/readline/promises.d.ts","../../../../node_modules/@types/node/repl.d.ts","../../../../node_modules/@types/node/stream.d.ts","../../../../node_modules/@types/node/stream/promises.d.ts","../../../../node_modules/@types/node/stream/consumers.d.ts","../../../../node_modules/@types/node/stream/web.d.ts","../../../../node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/@types/node/test.d.ts","../../../../node_modules/@types/node/timers.d.ts","../../../../node_modules/@types/node/timers/promises.d.ts","../../../../node_modules/@types/node/tls.d.ts","../../../../node_modules/@types/node/trace_events.d.ts","../../../../node_modules/@types/node/tty.d.ts","../../../../node_modules/@types/node/url.d.ts","../../../../node_modules/@types/node/util.d.ts","../../../../node_modules/@types/node/v8.d.ts","../../../../node_modules/@types/node/vm.d.ts","../../../../node_modules/@types/node/wasi.d.ts","../../../../node_modules/@types/node/worker_threads.d.ts","../../../../node_modules/@types/node/zlib.d.ts","../../../../node_modules/@types/node/globals.global.d.ts","../../../../node_modules/@types/node/index.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/cleanupSemantic.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/types.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/diffLines.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/printDiffs.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/index.d.ts","../../../../node_modules/@types/jest/node_modules/pretty-format/build/types.d.ts","../../../../node_modules/@types/jest/node_modules/pretty-format/build/index.d.ts","../../../../node_modules/@types/jest/index.d.ts","../../../../node_modules/@types/jest/ts3.2/index.d.ts"],"fileInfos":[{"version":"8730f4bf322026ff5229336391a18bcaa1f94d4f82416c8b2f3954e2ccaae2ba","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","4b421cbfb3a38a27c279dec1e9112c3d1da296f77a1a85ddadf7e7a425d45d18","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9",{"version":"3aafcb693fe5b5c3bd277bd4c3a617b53db474fe498fc5df067c5603b1eebde7","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"5f406584aef28a331c36523df688ca3650288d14f39c5d2e555c95f0d2ff8f6f","affectsGlobalScope":true},{"version":"22f230e544b35349cfb3bd9110b6ef37b41c6d6c43c3314a31bd0d9652fcec72","affectsGlobalScope":true},{"version":"7ea0b55f6b315cf9ac2ad622b0a7813315bb6e97bf4bb3fbf8f8affbca7dc695","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"eb26de841c52236d8222f87e9e6a235332e0788af8c87a71e9e210314300410a","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"5e5e095c4470c8bab227dbbc61374878ecead104c74ab9960d3adcccfee23205","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"2768ef564cfc0689a1b76106c421a2909bdff0acbe87da010785adab80efdd5c","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},"14fc7efae8b184b18019a5906c6f6de752823b44ff1acf7924bbdc8877ded21b","3672d09e745eebdc77fbd27500be83d5f728ce49d736e48df8e40564a220082a","55584873eae27c5607725f0a9b2123cdea9100fd47cd4bfd582b567a7c363877","ef57158596c4ca7aaba95ec2c8a59a7e0b95eefec3b624fb23f13e82674ea3da","71a689048584cde03cb508408ae7c3b04ad8f10af887865e8b65c27ed9d91488","a82567a810267bac7bcd324917fde10195b9839e6bf86e6c1b1bade67b3ce600","6ba1631f84ef4507073189c4ada06d6de8bac89375ea3b49e34e49006cc44a3f","afa9397f3aa80897cec3ddec1dd6f7c8741106ce96090f74df790a474b114ed6","8c08668019739abf45bfa24fb3559a4362161c438e71e3925f06bd6ea2792883","242e6ce3f14c79123c25c35660899ba483f3fdc14ac8fa4a8eee5d03231c6bc3","96adbcda030ffa1952a15192edd1b852084c9bfbbd2066e5c8d567987c466e90","1875bde1eafbc9d923cd1624ac1fd6da0af82347c2a9c7a847a660cc4fa01a33","61fe981de167fe34caf4bd80a3c120747844dddb519eaf8a79549d5f78081fb7","7d69ac79c9de7620a1bdd926fd4b20b8e968d6467a220eac2a836988ab47c933","f2ad963e74d849aa62c16f4cae23b7f8f6e26844c0d61f42943086ee7e0cd896","51df45d44f1a2052bd14063736f385bfbdcfee3759fa5597c89f62b3bbdb02e5","10b2bb0a74b12ecbab5003ff91aa8b3da674f81a5d72fdd6f998bfaf664948c8","50d2610b1f4e78be730aa015115f5148686285f9e42af9100b6775ea6b97ec7f","d4f36091f2a7fac55cac2d088d46e68f01cd5cf68e3db5770b3ba62641875e18","6ff754e93a1ef94f7a92e7f6f9b67357f3b25836ab36d66202d1d07343186ab7","60fe3fa5573cd5d5c49966401678064cd81191fbd1c448856cb1c218e7e4434c","ac1916691af1f2cf58ea8229c620c3a16abe197ae70a9987065bd571cb559c39","48533e135178c91d9abe0789d1c09802696a42985217396ccfcfd1034a099a0e","dcaef7f7c1f0cb2dba19a1a70cc8d5276faa68e50bc69d6a006d3aaaaa9f7aa7","ffd67adf9464cf9bcddc3954fcd27d59b60e85acb02101fefe8b0eb642a2be2f","801c2cb432d4fcc1b3a60c02e591f60146fafefa5d019eb2da1f77e0ce748529",{"version":"54039b4d16b943ac81a3e239d8db01c3f1e6585778aa304fcabafe0714661e46","signature":"3dbf093ae95fa4d10b4461747a3b7ffb7fec3e95beb702c08588e4d483220f8d"},{"version":"b4bebc14b1d9b23b1ffd03cad4e82a5ad9a0209bffd592c7f263bfe0e7f239d8","signature":"ec2f9b45cff09f076d1d9fff1f0e2bea9994ce0951863d55e39af18b90de91f6"},"0b4bc32128fda7bb0752cf284730dd3a817aae04a3d7f92e3b2d54bd61362fe1","7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","4967529644e391115ca5592184d4b63980569adf60ee685f968fd59ab1557188","5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","7180c03fd3cb6e22f911ce9ba0f8a7008b1a6ddbe88ccf16a9c8140ef9ac1686","25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","54cb85a47d760da1c13c00add10d26b5118280d44d58e6908d8e89abbd9d7725","3e4825171442666d31c845aeb47fcd34b62e14041bb353ae2b874285d78482aa","c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","a967bfe3ad4e62243eb604bf956101e4c740f5921277c60debaf325c1320bf88","e9775e97ac4877aebf963a0289c81abe76d1ec9a2a7778dbe637e5151f25c5f3","471e1da5a78350bc55ef8cef24eb3aca6174143c281b8b214ca2beda51f5e04a","cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","db3435f3525cd785bf21ec6769bf8da7e8a776be1a99e2e7efb5f244a2ef5fee","c3b170c45fc031db31f782e612adf7314b167e60439d304b49e704010e7bafe5","40383ebef22b943d503c6ce2cb2e060282936b952a01bea5f9f493d5fb487cc7","4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","3a84b7cb891141824bd00ef8a50b6a44596aded4075da937f180c90e362fe5f6","13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","33203609eba548914dc83ddf6cadbc0bcb6e8ef89f6d648ca0908ae887f9fcc5","0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","339dc5265ee5ed92e536a93a04c4ebbc2128f45eeec6ed29f379e0085283542c","9f0a92164925aa37d4a5d9dd3e0134cff8177208dba55fd2310cd74beea40ee2","8bfdb79bf1a9d435ec48d9372dc93291161f152c0865b81fc0b2694aedb4578d","2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","d32275be3546f252e3ad33976caf8c5e842c09cb87d468cb40d5f4cf092d1acc","4a0c3504813a3289f7fb1115db13967c8e004aa8e4f8a9021b95285502221bd1",{"version":"5f290ea7efbe9d8431e10df12c0d5672b67988e7c171c2d356749fac70347a55","affectsGlobalScope":true},"39b1a50d543770780b0409a4caacb87f3ff1d510aedfeb7dc06ed44188256f89",{"version":"49c89f8fa09d21c161e6a367448639e032f42d77cc2ec8ab54ecb8fa9a3ad59f","affectsGlobalScope":true},"e4b50850c2a62c7750428e452ee24b167180104d514d5e5c0ca691753365f610","304504c854c47a55ab4a89111a27a2daf8a3614740bd787cc1f2c51e5574239c",{"version":"95f9129a37dcace36e17b061a8484952586ecfe928c9c8ce526de1a2f4aaefa7","affectsGlobalScope":true},"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb","0f9061846236850a872cb44097d071631e93c8749a8b16c191fe3c2a48faede4","e46fa644658c2d6e5c85e954ea76b92c97d63f0851d3ccdab8c2a80d5962aaa9","1c611ff373ce1958aafc40b328048ac2540ba5c7f373cf2897e0d9aeaabe90a0","a307d22a0130ac94c1a17fffa6d57ac272deb5838cb966a9420911d259cdf1be","d2e415abf6cb81ac9e2700b4db5ea7be76b997e812285b8e5e1e414eb2750b6e","09d6cebdced6aa1181ac1523c8f22a133f5ed80589678b64051f0602f0518374",{"version":"ee1ee365d88c4c6c0c0a5a5701d66ebc27ccd0bcfcfaa482c6e2e7fe7b98edf7","affectsGlobalScope":true},{"version":"7c35691dc3972ff1507d8dd279d833f540973d0917bde22e191cf7a8feaac29f","affectsGlobalScope":true},"62662d7a886e5cfa870685720fd27b763743ca4d2cf29326f75d76606a64eadd","b8c670688bd228d3cc9c169690b09b687188c50ff263a94df63b207701105ad9","d8e16905907111390d5a943816306ae997dfe56476f14142166f8b13ee322eea","8068c911a1c40bc6c5ffc58c625b21d807778f6aa6d63a73e6f04f88bcac5b79","a1dbce56ad5f3a37caafb9033c9d190a199217d673f5fa099c8968d471a2fdaa","c6f77efcc19f51c8759779b6b6ee0d88046c15c15dadac8ffed729a6620daf39",{"version":"089867511b37a534ae71f3d9bc97acc0b925b7f5dbec113f98c4b49224c694eb","affectsGlobalScope":true},"269d0ea3202820c29a32c1f2a357837a4f1918426844f7e7c90af15ec40d1dc1","66432f885e30cf471573de22a5af5eca9ab46b37b122aec98beadf77e9b7df24","323506ce173f7f865f42f493885ee3dacd18db6359ea1141d57676d3781ce10c",{"version":"034e635df3c014df1d6b1110b724ca0c4d2d324b45a84974c7d6931f9cf95ea7","affectsGlobalScope":true},{"version":"87f9456115554cb0f78f098ddbd585096871c19d2d05274c1b1b4ade3151da78","affectsGlobalScope":true},"ea3ab3727cd6c222d94003ecafa30e8550c61eadcdabbf59514aee76e86211a5","d3cdd41693c5ed6bec4f1a1c399d9501372b14bd341bc46eedacf2854c5df5a7","2de7a21c92226fb8abbeed7a0a9bd8aa6d37e4c68a8c7ff7938c644267e9fcc1","6d6070c5c81ba0bfe58988c69e3ba3149fc86421fd383f253aeb071cbf29cd41","da618f0ea09d95c3b51514de43bf97dab008c85bede58aa57cf95e4984c7c957","48a35b181ecf47dbbc0a7ab4b5ba778d91eaa838ba42bf4aaaead42be77ef39a","269929a24b2816343a178008ac9ae9248304d92a8ba8e233055e0ed6dbe6ef71","93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","5195aeb0de306d1c5ca8033457fbcab5987657112fa6d4971cfeb7644493a369","c5dbf0003bc9f0f643e54cd00a3868d1afe85497fecb56be6f2373dc85102924",{"version":"ce73eb199c4bf96c015f069aac161488ed73ebeaea3d87b6d5aa9a968a7b38d4","affectsGlobalScope":true},{"version":"300f8e9de0b0c3482be3e749462b6ebc3dab8a316801f1da0def94aed0cd2018","affectsGlobalScope":true},"4e228e78c1e9b0a75c70588d59288f63a6258e8b1fe4a67b0c53fe03461421d9","962f105729d5b888c8b70e193f6020ee92c6c8144c827de40f80d65dd188ad7f","ac74e2b754fba690036f8221d978f6debb867462b87af254f24e924b677395d0","80858f6de9af22e53aff221fe3590215ea544c2aeb2cc60cf8e08a9c785c8fef",{"version":"068b8ee5c2cd90d7a50f2efadbbe353cb10196a41189a48bf4b2a867363012b4","affectsGlobalScope":true},{"version":"340659b96782f5813aad6c1f89ea1b83b2f3fa993115c7b30366375d9bae5a4e","affectsGlobalScope":true},"6f44a190351ab5e1811abebe007cf60518044772ccc08244f9f241706afa767f","fecdf44bec4ee9c5188e5f2f58c292c9689c02520900dceaaa6e76594de6da90","cf45d0510b661f1da461479851ff902f188edb111777c37055eff12fa986a23a",{"version":"895ca532c15c77cbb6a871af1870b57bcd0ca4f38a1bd69669dd0e95bb58565a","affectsGlobalScope":true},"f2b9440f98d6f94c8105883a2b65aee2fce0248f71f41beafd0a80636f3a565d",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"b510d0a18e3db42ac9765d26711083ec1e8b4e21caaca6dc4d25ae6e8623f447","e222104af6cb9415238ad358488b74d76eceeff238c1268ec6e85655b05341da","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","eba230221317c985ab1953ccc3edc517f248b37db4fef7875cb2c8d08aff7be7","b83e796810e475da3564c6515bc0ae9577070596a33d89299b7d99f94ecfd921","b4439890c168d646357928431100daac5cbdee1d345a34e6bf6eca9f3abe22bc","5d72971a459517c44c1379dab9ed248e87a61ba0a1e0f25c9d67e1e640cd9a09","02d734976af36f4273d930bea88b3e62adf6b078cf120c1c63d49aa8d8427c5c",{"version":"f624e578325b8c58e55b30c998b1f4c3ec1b61a9fa66373da4250c89b7880d44","affectsGlobalScope":true},{"version":"d3002f620eab4bf6476c9da5c0efb2041d46f7df8b3032a5631bd206abef2c75","affectsGlobalScope":true}],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"declarationMap":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"module":1,"noImplicitAny":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","sourceMap":true,"target":1},"fileIdsList":[[162,164],[158,159],[158,159,160,161],[163],[165],[71],[107],[108,113,141],[109,120,121,128,138,149],[109,110,120,128],[111,150],[112,113,121,129],[113,138,146],[114,116,120,128],[107,115],[116,117],[120],[118,120],[107,120],[120,121,122,138,149],[120,121,122,135,138,141],[105,154],[116,120,123,128,138,149],[120,121,123,124,128,138,146,149],[123,125,138,146,149],[71,72,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156],[120,126],[127,149,154],[116,120,128,138],[129],[130],[107,131],[132,148,154],[133],[134],[120,135,136],[135,137,150,152],[108,120,138,139,140,141],[108,138,140],[138,139],[141],[142],[107,138],[120,144,145],[144,145],[113,128,138,146],[147],[128,148],[108,123,134,149],[113,150],[138,151],[127,152],[153],[108,113,120,122,131,138,149,152,154],[138,155],[82,86,149],[82,138,149],[77],[79,82,146,149],[128,146],[157],[77,157],[79,82,128,149],[74,75,78,81,108,120,138,149],[74,80],[78,82,108,141,149,157],[108,157],[98,108,157],[76,77,157],[82],[76,77,78,79,80,81,82,83,84,86,87,88,89,90,91,92,93,94,95,96,97,99,100,101,102,103,104],[82,89,90],[80,82,90,91],[81],[74,77,82],[82,86,90,91],[86],[80,82,85,149],[74,79,80,82,86,89],[108,138],[77,82,98,108,154,157],[45,49],[49],[45,49,56],[55,56,57,58,60,61,62,63,64,65,66,67],[49,65],[45,49,63],[45,49,56,59],[45,49,54,68,69],[45,68],[50,51,52,53],[44,45],[44,46,47,48],[43],[43,44],[45]],"referencedMap":[[165,1],[160,2],[162,3],[161,2],[164,4],[166,5],[71,6],[72,6],[107,7],[108,8],[109,9],[110,10],[111,11],[112,12],[113,13],[114,14],[115,15],[116,16],[117,16],[119,17],[118,18],[120,19],[121,20],[122,21],[106,22],[123,23],[124,24],[125,25],[157,26],[126,27],[127,28],[128,29],[129,30],[130,31],[131,32],[132,33],[133,34],[134,35],[135,36],[136,36],[137,37],[138,38],[140,39],[139,40],[141,41],[142,42],[143,43],[144,44],[145,45],[146,46],[147,47],[148,48],[149,49],[150,50],[151,51],[152,52],[153,53],[154,54],[155,55],[89,56],[96,57],[88,56],[103,58],[80,59],[79,60],[102,61],[97,62],[100,63],[82,64],[81,65],[77,66],[76,67],[99,68],[78,69],[83,70],[87,70],[105,71],[104,70],[91,72],[92,73],[94,74],[90,75],[93,76],[98,61],[85,77],[86,78],[95,79],[75,80],[101,81],[55,82],[58,83],[57,84],[68,85],[66,86],[65,83],[67,87],[63,82],[64,87],[60,88],[62,82],[61,83],[70,89],[69,90],[50,83],[54,91],[53,83],[52,83],[46,92],[49,93],[44,94],[48,95]],"exportedModulesMap":[[165,1],[160,2],[162,3],[161,2],[164,4],[166,5],[71,6],[72,6],[107,7],[108,8],[109,9],[110,10],[111,11],[112,12],[113,13],[114,14],[115,15],[116,16],[117,16],[119,17],[118,18],[120,19],[121,20],[122,21],[106,22],[123,23],[124,24],[125,25],[157,26],[126,27],[127,28],[128,29],[129,30],[130,31],[131,32],[132,33],[133,34],[134,35],[135,36],[136,36],[137,37],[138,38],[140,39],[139,40],[141,41],[142,42],[143,43],[144,44],[145,45],[146,46],[147,47],[148,48],[149,49],[150,50],[151,51],[152,52],[153,53],[154,54],[155,55],[89,56],[96,57],[88,56],[103,58],[80,59],[79,60],[102,61],[97,62],[100,63],[82,64],[81,65],[77,66],[76,67],[99,68],[78,69],[83,70],[87,70],[105,71],[104,70],[91,72],[92,73],[94,74],[90,75],[93,76],[98,61],[85,77],[86,78],[95,79],[75,80],[101,81],[55,82],[58,83],[57,84],[68,85],[66,86],[65,83],[67,87],[63,82],[64,87],[60,88],[62,82],[61,83],[70,83],[69,96],[50,83],[54,91],[53,83],[52,83],[46,92],[49,93],[44,94],[48,95]],"semanticDiagnosticsPerFile":[45,165,158,160,162,161,159,164,163,166,71,72,107,108,109,110,111,112,113,114,115,116,117,119,118,120,121,122,106,156,123,124,125,157,126,127,128,129,130,131,132,133,134,135,136,137,138,140,139,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,73,8,10,9,2,11,12,13,14,15,16,17,18,3,4,22,19,20,21,23,24,25,5,26,27,28,29,6,33,30,31,32,34,7,35,40,41,36,37,38,39,1,42,89,96,88,103,80,79,102,97,100,82,81,77,76,99,78,83,84,87,74,105,104,91,92,94,90,93,98,85,86,95,75,101,55,58,57,68,66,65,67,63,64,60,62,56,61,59,70,69,50,54,53,51,52,47,46,43,49,44,48]},"version":"4.9.5"}
@@ -1,7 +1,6 @@
1
1
  import { ComponentPluginFactory, ComponentPlugin } from '@teleporthq/teleport-types';
2
2
  interface StyledJSXConfig {
3
3
  componentChunkName: string;
4
- forceScoping: boolean;
5
4
  }
6
5
  export declare const createReactStyledJSXPlugin: ComponentPluginFactory<StyledJSXConfig>;
7
6
  declare const _default: ComponentPlugin;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,sBAAsB,EACtB,eAAe,EAGhB,MAAM,4BAA4B,CAAA;AAInC,UAAU,eAAe;IACvB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,YAAY,EAAE,OAAO,CAAA;CACtB;AAED,eAAO,MAAM,0BAA0B,EAAE,sBAAsB,CAAC,eAAe,CAyN9E,CAAA;;AAED,wBAA2C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,sBAAsB,EACtB,eAAe,EAKhB,MAAM,4BAA4B,CAAA;AAInC,UAAU,eAAe;IACvB,kBAAkB,EAAE,MAAM,CAAA;CAC3B;AAiBD,eAAO,MAAM,0BAA0B,EAAE,sBAAsB,CAAC,eAAe,CA+Q9E,CAAA;;AAED,wBAA2C"}
package/dist/esm/index.js CHANGED
@@ -35,18 +35,31 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
35
35
  }
36
36
  };
37
37
  import { StringUtils, UIDLUtils } from '@teleporthq/teleport-shared';
38
- import { ASTUtils, StyleBuilders, ASTBuilders } from '@teleporthq/teleport-plugin-common';
38
+ import { ASTUtils, StyleBuilders, ASTBuilders, createBinaryExpression, } from '@teleporthq/teleport-plugin-common';
39
39
  import { PluginStyledJSX, } from '@teleporthq/teleport-types';
40
40
  import { generateStyledJSXTag } from './utils';
41
41
  import * as types from '@babel/types';
42
+ var transformStyle = function (style, propsPrefix) {
43
+ return UIDLUtils.transformDynamicStyles(style, function (styleValue) {
44
+ switch (styleValue.content.referenceType) {
45
+ case 'token':
46
+ return "var(".concat(StringUtils.generateCSSVariableName(styleValue.content.id), ")");
47
+ case 'prop':
48
+ return "${".concat(propsPrefix, ".").concat(styleValue.content.id, "}");
49
+ default:
50
+ throw new PluginStyledJSX("Error running transformDynamicStyles in reactStyledJSXChunkPlugin.\n\n Unsupported styleValue.content.referenceType value ".concat(styleValue.content.referenceType));
51
+ }
52
+ });
53
+ };
42
54
  export var createReactStyledJSXPlugin = function (config) {
43
- var _a = config || {}, _b = _a.componentChunkName, componentChunkName = _b === void 0 ? 'jsx-component' : _b, _c = _a.forceScoping, forceScoping = _c === void 0 ? false : _c;
55
+ var _a = (config || {}).componentChunkName, componentChunkName = _a === void 0 ? 'jsx-component' : _a;
44
56
  var reactStyledJSXPlugin = function (structure) { return __awaiter(void 0, void 0, void 0, function () {
45
- var uidl, chunks, options, projectStyleSet, node, _a, componentStyleSheet, _b, propDefinitions, componentChunk, jsxNodesLookup, propsPrefix, mediaStylesMap, classMap, transformStyle, styleJSXAST, rootJSXNode, originalRootNode, componentAST, arrowFnExpr, bodyStatement, returnStatement;
46
- return __generator(this, function (_c) {
57
+ var uidl, chunks, options, projectStyleSet, node, _a, componentStyleSheet, _b, propDefinitions, _c, stateDefinitions, componentChunk, jsxNodesLookup, propsPrefix, mediaStylesMap, classMap, generateStylesForElementNode, _i, _d, prop, styleJSXAST, rootJSXNode, originalRootNode, componentAST, arrowFnExpr, bodyStatement, returnStatement;
58
+ var _e, _f;
59
+ return __generator(this, function (_g) {
47
60
  uidl = structure.uidl, chunks = structure.chunks, options = structure.options;
48
61
  projectStyleSet = options.projectStyleSet;
49
- node = uidl.node, _a = uidl.styleSetDefinitions, componentStyleSheet = _a === void 0 ? {} : _a, _b = uidl.propDefinitions, propDefinitions = _b === void 0 ? {} : _b;
62
+ node = uidl.node, _a = uidl.styleSetDefinitions, componentStyleSheet = _a === void 0 ? {} : _a, _b = uidl.propDefinitions, propDefinitions = _b === void 0 ? {} : _b, _c = uidl.stateDefinitions, stateDefinitions = _c === void 0 ? {} : _c;
50
63
  componentChunk = chunks.find(function (chunk) { return chunk.name === componentChunkName; });
51
64
  if (!componentChunk) {
52
65
  return [2 /*return*/, structure];
@@ -55,41 +68,31 @@ export var createReactStyledJSXPlugin = function (config) {
55
68
  propsPrefix = componentChunk.meta.dynamicRefPrefix.prop;
56
69
  mediaStylesMap = {};
57
70
  classMap = [];
58
- transformStyle = function (style) {
59
- return UIDLUtils.transformDynamicStyles(style, function (styleValue) {
60
- switch (styleValue.content.referenceType) {
61
- case 'token':
62
- return "var(".concat(StringUtils.generateCSSVariableName(styleValue.content.id), ")");
63
- case 'prop':
64
- return "${".concat(propsPrefix, ".").concat(styleValue.content.id, "}");
65
- default:
66
- throw new PluginStyledJSX("Error running transformDynamicStyles in reactStyledJSXChunkPlugin.\n\n Unsupported styleValue.content.referenceType value ".concat(styleValue.content.referenceType));
67
- }
68
- });
69
- };
70
- UIDLUtils.traverseElements(node, function (element) {
71
+ generateStylesForElementNode = function (element) {
71
72
  var classNamesToAppend = new Set();
72
73
  var dynamicVariantsToAppend = new Set();
73
74
  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;
74
- var elementClassName = StringUtils.camelCaseToDashCase(key);
75
- var className = getClassName(forceScoping, uidl.name, elementClassName);
76
- if (forceScoping && (dependency === null || dependency === void 0 ? void 0 : dependency.type) === 'local') {
75
+ if (key === undefined) {
76
+ throw new Error("Key is missing for element \n ".concat(JSON.stringify(element, null, 2)));
77
+ }
78
+ var className = StringUtils.camelCaseToDashCase(key);
79
+ var root = jsxNodesLookup[key];
80
+ if (!root) {
81
+ throw new PluginStyledJSX("Element \n ".concat(JSON.stringify(element, null, 2), " \n with key ").concat(key, " is missing from the template chunk of component ").concat(uidl.name));
82
+ }
83
+ if ((dependency === null || dependency === void 0 ? void 0 : dependency.type) === 'local') {
77
84
  StyleBuilders.setPropValueForCompStyle({
78
- key: key,
79
- jsxNodesLookup: jsxNodesLookup,
85
+ root: root,
80
86
  attrs: attrs,
81
- getClassName: function (str) {
82
- return getClassName(forceScoping, StringUtils.camelCaseToDashCase(elementType), str);
83
- },
87
+ getClassName: function (str) { return StringUtils.camelCaseToDashCase(elementType + str); },
84
88
  });
85
89
  }
86
90
  if (Object.keys(style).length === 0 && Object.keys(referencedStyles).length === 0) {
87
91
  return;
88
92
  }
89
- var root = jsxNodesLookup[key];
90
93
  // Generating the string templates for the dynamic styles
91
94
  if (Object.keys(style).length > 0) {
92
- var styleRules = transformStyle(style);
95
+ var styleRules = transformStyle(style, propsPrefix);
93
96
  classMap.push(StyleBuilders.createCSSClass(className, styleRules));
94
97
  classNamesToAppend.add(className);
95
98
  }
@@ -105,11 +108,11 @@ export var createReactStyledJSXPlugin = function (config) {
105
108
  mediaStylesMap[String(maxWidth)] = [];
106
109
  }
107
110
  mediaStylesMap[String(maxWidth)].push((_a = {},
108
- _a[className] = transformStyle(styleRef.content.styles),
111
+ _a[className] = transformStyle(styleRef.content.styles, propsPrefix),
109
112
  _a));
110
113
  }
111
114
  if (condition.conditionType === 'element-state') {
112
- classMap.push(StyleBuilders.createCSSClassWithSelector(className, "&:".concat(condition.content), transformStyle(styleRef.content.styles)));
115
+ classMap.push(StyleBuilders.createCSSClassWithSelector(className, "&:".concat(condition.content), transformStyle(styleRef.content.styles, propsPrefix)));
113
116
  }
114
117
  classNamesToAppend.add(className);
115
118
  return;
@@ -125,11 +128,12 @@ export var createReactStyledJSXPlugin = function (config) {
125
128
  if (!defaultPropValue) {
126
129
  return;
127
130
  }
128
- propDefinitions[styleRef.content.content.content.id].defaultValue = getClassName(forceScoping, uidl.name, String(defaultPropValue));
131
+ propDefinitions[styleRef.content.content.content.id].defaultValue =
132
+ StringUtils.camelCaseToDashCase(String(defaultPropValue));
129
133
  }
130
134
  if (styleRef.content.content.type === 'dynamic' &&
131
135
  styleRef.content.content.content.referenceType === 'comp') {
132
- classNamesToAppend.add(getClassName(forceScoping, uidl.name, styleRef.content.content.content.id));
136
+ classNamesToAppend.add(StringUtils.camelCaseToDashCase(styleRef.content.content.content.id));
133
137
  }
134
138
  return;
135
139
  }
@@ -139,7 +143,36 @@ export var createReactStyledJSXPlugin = function (config) {
139
143
  if (!referedStyle) {
140
144
  throw new PluginStyledJSX("Project style - ".concat(content.referenceId, " is missing"));
141
145
  }
142
- classNamesToAppend.add(content.referenceId);
146
+ if (styleRef.content.condition) {
147
+ var nameToAppend = styleRef.content.condition.reference.content.id;
148
+ var conditions = styleRef.content.condition.expression.conditions;
149
+ var operator = conditions[0].operation;
150
+ var right = conditions[0].operand;
151
+ var referenceType = styleRef.content.condition.reference.content.referenceType;
152
+ var binaryExpressionType = '';
153
+ switch (referenceType) {
154
+ case 'prop': {
155
+ binaryExpressionType = propDefinitions[nameToAppend].type;
156
+ break;
157
+ }
158
+ case 'state': {
159
+ binaryExpressionType = stateDefinitions[nameToAppend].type;
160
+ break;
161
+ }
162
+ default: {
163
+ throw new PluginStyledJSX("Un-supported reference type ".concat(referenceType, " for style reference ").concat(JSON.stringify(styleRef.content, null, 2)));
164
+ }
165
+ }
166
+ var binaryExpression = createBinaryExpression({ operation: operator, operand: right }, {
167
+ key: (referenceType === 'prop' ? 'props?.' : '') + nameToAppend,
168
+ type: binaryExpressionType,
169
+ });
170
+ var conditionalExpression = types.conditionalExpression(binaryExpression, types.stringLiteral(content.referenceId), types.stringLiteral(''));
171
+ dynamicVariantsToAppend.add(conditionalExpression);
172
+ }
173
+ else {
174
+ classNamesToAppend.add(content.referenceId);
175
+ }
143
176
  return;
144
177
  }
145
178
  default: {
@@ -148,10 +181,17 @@ export var createReactStyledJSXPlugin = function (config) {
148
181
  }
149
182
  });
150
183
  ASTUtils.addClassStringOnJSXTag(root, Array.from(classNamesToAppend).join(' '), 'className', Array.from(dynamicVariantsToAppend));
151
- });
184
+ };
185
+ UIDLUtils.traverseElements(node, generateStylesForElementNode);
186
+ for (_i = 0, _d = Object.values(propDefinitions); _i < _d.length; _i++) {
187
+ prop = _d[_i];
188
+ if (prop.type === 'element' && prop.defaultValue) {
189
+ UIDLUtils.traverseElements(prop.defaultValue, generateStylesForElementNode);
190
+ }
191
+ }
152
192
  /* Generating component scoped styles */
153
193
  if (Object.keys(componentStyleSheet).length > 0) {
154
- StyleBuilders.generateStylesFromStyleSetDefinitions(componentStyleSheet, classMap, mediaStylesMap, function (styleName) { return getClassName(forceScoping, uidl.name, styleName); });
194
+ StyleBuilders.generateStylesFromStyleSetDefinitions(componentStyleSheet, classMap, mediaStylesMap, function (styleName) { return StringUtils.camelCaseToDashCase(uidl.name + styleName); });
155
195
  }
156
196
  if (Object.keys(mediaStylesMap).length > 0) {
157
197
  classMap.push.apply(classMap, StyleBuilders.generateMediaStyle(mediaStylesMap));
@@ -165,7 +205,7 @@ export var createReactStyledJSXPlugin = function (config) {
165
205
  rootJSXNode = ASTBuilders.createJSXTag('');
166
206
  rootJSXNode.children.push(originalRootNode);
167
207
  componentAST = componentChunk.content;
168
- arrowFnExpr = componentAST.declarations[0].init;
208
+ arrowFnExpr = (_f = (_e = componentAST.declarations) === null || _e === void 0 ? void 0 : _e[0]) === null || _f === void 0 ? void 0 : _f.init;
169
209
  bodyStatement = arrowFnExpr.body;
170
210
  returnStatement = bodyStatement.body.find(function (statement) { return statement.type === 'ReturnStatement'; });
171
211
  if (!returnStatement) {
@@ -180,9 +220,4 @@ export var createReactStyledJSXPlugin = function (config) {
180
220
  return reactStyledJSXPlugin;
181
221
  };
182
222
  export default createReactStyledJSXPlugin();
183
- var getClassName = function (scoping, uidlName, nodeStyleName) {
184
- return scoping
185
- ? StringUtils.camelCaseToDashCase("".concat(uidlName, "-").concat(nodeStyleName))
186
- : StringUtils.camelCaseToDashCase(nodeStyleName);
187
- };
188
223
  //# 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;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}
@@ -1 +1 @@
1
- {"program":{"fileNames":["../../../../node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../../node_modules/typescript/lib/lib.dom.d.ts","../../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../teleport-types/dist/cjs/helper.d.ts","../../../teleport-types/dist/cjs/uidl.d.ts","../../../teleport-types/dist/cjs/generators.d.ts","../../../teleport-types/dist/cjs/errors.d.ts","../../../teleport-types/dist/cjs/vuidl.d.ts","../../../teleport-types/dist/cjs/index.d.ts","../../../teleport-shared/dist/cjs/constants/index.d.ts","../../../teleport-shared/dist/cjs/utils/string-utils.d.ts","../../../teleport-shared/dist/cjs/utils/uidl-utils.d.ts","../../../teleport-shared/dist/cjs/utils/generic.d.ts","../../../teleport-shared/dist/cjs/index.d.ts","../../../../node_modules/@babel/types/lib/index.d.ts","../../../teleport-plugin-common/dist/cjs/builders/ast-builders.d.ts","../../../teleport-plugin-common/dist/cjs/utils/parsed-ast.d.ts","../../../teleport-plugin-common/dist/cjs/builders/style-builders.d.ts","../../../teleport-plugin-common/dist/cjs/builders/hast-builders.d.ts","../../../teleport-plugin-common/dist/cjs/utils/ast-utils.d.ts","../../../teleport-plugin-common/dist/cjs/utils/style-utils.d.ts","../../../teleport-plugin-common/dist/cjs/utils/hast-utils.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-html/types.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-html/index.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-jsx/types.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-jsx/index.d.ts","../../../teleport-plugin-common/dist/cjs/index.d.ts","../../src/utils.ts","../../src/index.ts","../../../../node_modules/@types/node/assert.d.ts","../../../../node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/@types/node/globals.d.ts","../../../../node_modules/@types/node/async_hooks.d.ts","../../../../node_modules/@types/node/buffer.d.ts","../../../../node_modules/@types/node/child_process.d.ts","../../../../node_modules/@types/node/cluster.d.ts","../../../../node_modules/@types/node/console.d.ts","../../../../node_modules/@types/node/constants.d.ts","../../../../node_modules/@types/node/crypto.d.ts","../../../../node_modules/@types/node/dgram.d.ts","../../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../../node_modules/@types/node/dns.d.ts","../../../../node_modules/@types/node/dns/promises.d.ts","../../../../node_modules/@types/node/domain.d.ts","../../../../node_modules/@types/node/dom-events.d.ts","../../../../node_modules/@types/node/events.d.ts","../../../../node_modules/@types/node/fs.d.ts","../../../../node_modules/@types/node/fs/promises.d.ts","../../../../node_modules/@types/node/http.d.ts","../../../../node_modules/@types/node/http2.d.ts","../../../../node_modules/@types/node/https.d.ts","../../../../node_modules/@types/node/inspector.d.ts","../../../../node_modules/@types/node/module.d.ts","../../../../node_modules/@types/node/net.d.ts","../../../../node_modules/@types/node/os.d.ts","../../../../node_modules/@types/node/path.d.ts","../../../../node_modules/@types/node/perf_hooks.d.ts","../../../../node_modules/@types/node/process.d.ts","../../../../node_modules/@types/node/punycode.d.ts","../../../../node_modules/@types/node/querystring.d.ts","../../../../node_modules/@types/node/readline.d.ts","../../../../node_modules/@types/node/readline/promises.d.ts","../../../../node_modules/@types/node/repl.d.ts","../../../../node_modules/@types/node/stream.d.ts","../../../../node_modules/@types/node/stream/promises.d.ts","../../../../node_modules/@types/node/stream/consumers.d.ts","../../../../node_modules/@types/node/stream/web.d.ts","../../../../node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/@types/node/test.d.ts","../../../../node_modules/@types/node/timers.d.ts","../../../../node_modules/@types/node/timers/promises.d.ts","../../../../node_modules/@types/node/tls.d.ts","../../../../node_modules/@types/node/trace_events.d.ts","../../../../node_modules/@types/node/tty.d.ts","../../../../node_modules/@types/node/url.d.ts","../../../../node_modules/@types/node/util.d.ts","../../../../node_modules/@types/node/v8.d.ts","../../../../node_modules/@types/node/vm.d.ts","../../../../node_modules/@types/node/wasi.d.ts","../../../../node_modules/@types/node/worker_threads.d.ts","../../../../node_modules/@types/node/zlib.d.ts","../../../../node_modules/@types/node/globals.global.d.ts","../../../../node_modules/@types/node/index.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/cleanupSemantic.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/types.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/diffLines.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/printDiffs.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/index.d.ts","../../../../node_modules/@types/jest/node_modules/pretty-format/build/types.d.ts","../../../../node_modules/@types/jest/node_modules/pretty-format/build/index.d.ts","../../../../node_modules/@types/jest/index.d.ts","../../../../node_modules/@types/jest/ts3.2/index.d.ts"],"fileInfos":[{"version":"8730f4bf322026ff5229336391a18bcaa1f94d4f82416c8b2f3954e2ccaae2ba","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","4b421cbfb3a38a27c279dec1e9112c3d1da296f77a1a85ddadf7e7a425d45d18","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9",{"version":"3aafcb693fe5b5c3bd277bd4c3a617b53db474fe498fc5df067c5603b1eebde7","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"5f406584aef28a331c36523df688ca3650288d14f39c5d2e555c95f0d2ff8f6f","affectsGlobalScope":true},{"version":"22f230e544b35349cfb3bd9110b6ef37b41c6d6c43c3314a31bd0d9652fcec72","affectsGlobalScope":true},{"version":"7ea0b55f6b315cf9ac2ad622b0a7813315bb6e97bf4bb3fbf8f8affbca7dc695","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"eb26de841c52236d8222f87e9e6a235332e0788af8c87a71e9e210314300410a","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"5e5e095c4470c8bab227dbbc61374878ecead104c74ab9960d3adcccfee23205","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"2768ef564cfc0689a1b76106c421a2909bdff0acbe87da010785adab80efdd5c","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},"b09482535eb7d553ab0507e93616b811a3194a0339292f0e534787e4b01568bb","71da47b249a28585b6edb3d5a5d89b468f75c70e7696da7c978c276625683442","dc19b304f9b96efbea7359264ac17eaf4c2d3fd231df7306eddfb983039785ca","71a689048584cde03cb508408ae7c3b04ad8f10af887865e8b65c27ed9d91488","d50fe6e9eb7f4722fa789aab25bf60d0dfbcc36cc76af4a7d7af2b5886665f93","6ba1631f84ef4507073189c4ada06d6de8bac89375ea3b49e34e49006cc44a3f","afa9397f3aa80897cec3ddec1dd6f7c8741106ce96090f74df790a474b114ed6","8c08668019739abf45bfa24fb3559a4362161c438e71e3925f06bd6ea2792883","22c6f439ba8a0f6347a16d6fad503bb8a2fbfe778e5cf5c90918659c653c8a8c","2c55653d46d0d2bfa1b84b54c3a4ffa6e43de5b05c9f808e46b42adffc4e3e92","1875bde1eafbc9d923cd1624ac1fd6da0af82347c2a9c7a847a660cc4fa01a33","1905eab6570faf3010802b4c00196eda6285b028f0b41bdfa7f7a29427502b62","ce5106bc15353dd05f601ecb48fd99b152362346cbbb3b398e0d5fdc36d24b0a","7d69ac79c9de7620a1bdd926fd4b20b8e968d6467a220eac2a836988ab47c933","c7b126a023fbcbe6b07edf69283b049fc3ca6958bc19934cde610a0ab5ae8ef3","7383bcf1e3b4970ec58cddeb24becd4fcd207aa518ca46270a6872b63712c29e","8ac46882cbdc97428a25eecc68402898730ed74cd4e58152bb3252fbb3cab775","d4f36091f2a7fac55cac2d088d46e68f01cd5cf68e3db5770b3ba62641875e18","5a007f687f1be0ed103375930c7027eb6f10d0b826472f7f6d7a5b260502104e","64e43fe64a91d26169ee2bbc877135375b99ca4c5806b706f63e962528a3eb30","dcaef7f7c1f0cb2dba19a1a70cc8d5276faa68e50bc69d6a006d3aaaaa9f7aa7","cfbee63950fddcd052c993abe94531a3d16e5273f3f14dc493fd47f78d0cdd03","ffd67adf9464cf9bcddc3954fcd27d59b60e85acb02101fefe8b0eb642a2be2f","59b8c7576043b12356b13745811130ae5fa9c37cbd7ec5e49ecac8e88b8c9992",{"version":"54039b4d16b943ac81a3e239d8db01c3f1e6585778aa304fcabafe0714661e46","signature":"3dbf093ae95fa4d10b4461747a3b7ffb7fec3e95beb702c08588e4d483220f8d"},{"version":"98a8112faa02f09f7cd891a239616c6b53cc9b135e52567b04bf67a6d530303e","signature":"31e2b2bb67a3eec6c7cc4be15f5ecdf22c8bb0d260a1c47782b92b4b1393505c"},"ba8691cf6bea9d53e6bf6cbc22af964a9633a21793981a1be3dce65e7a714d8b","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"bce910d9164785c9f0d4dcea4be359f5f92130c7c7833dea6138ab1db310a1f9","affectsGlobalScope":true},"7d2e3fea24c712c99c03ad8f556abedbfe105f87f1be10b95dbd409d24bc05a3",{"version":"7c387a02bf156d8d45667134d32518ac3ca1b99ca50ca9deff2c1a03eb6d1a81","affectsGlobalScope":true},"3719525a8f6ab731e3dfd585d9f87df55ec7d50d461df84f74eb4d68bb165244","f993522fd7d01ae1ead930091fe35130b8415720d6c2123dc2a7e8eb11bb3cba",{"version":"d5135ad93b33adcce80b18f8065087934cdc1730d63db58562edcf017e1aad9b","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","b787b5b54349a24f07d089b612a9fb8ff024dbbe991ff52ea2b188a6b1230644","bb9c4ffa5e6290c6980b63c815cdd1625876dadb2efaf77edbe82984be93e55e","1cdcfc1f624d6c08aa12c73935f6e13f095919cd99edf95752951796eb225729","df6d4b6ba1e64f682091862faa30104e93891f9e7202d006bf5e7a88ab4a0dbe","14b5aa23c5d0ae1907bc696ac7b6915d88f7d85799cc0dc2dcf98fbce2c5a67c","5c439dafdc09abe4d6c260a96b822fa0ba5be7203c71a63ab1f1423cd9e838ea",{"version":"6b526a5ec4a401ca7c26cfe6a48e641d8f30af76673bad3b06a1b4504594a960","affectsGlobalScope":true},{"version":"c2fcbd6fad600e96fee8c5df1a62e908d477f5b47a9374b2bab7e74f52cfcc92","affectsGlobalScope":true},"0391eb2e0cf2a8d329ba6958f20f2d3d24e53787d65e667f636cc97a5365c046","cc68e79b99f80e4dfd01967ec96be69efb0ff5bd7f779d9a2cc09dfe590ffd28","91d3d8f536f22dcaeeace0fc6f3544d3562e266a27cf3a2fe280b8051af5d006","9503113febdd737095465792cc074d541902c82c0aea3922f940de18784812ad","8d3c583a07e0c37e876908c2d5da575019f689df8d9fa4c081d99119d53dba22","2c828a5405191d006115ab34e191b8474bc6c86ffdc401d1a9864b1b6e088a58",{"version":"6d7ef36605d74efa08b42b40cd31b1844702a72a9e410945da8f40809097f82c","affectsGlobalScope":true},"bcebb922784739bdb34c18ee51095d25a92b560c78ccd2eaacd6bd00f7443d83","7ee6ed878c4528215c82b664fe0cfe80e8b4da6c0d4cc80869367868774db8b1","b0973c3cbcdc59b37bf477731d468696ecaf442593ec51bab497a613a580fe30",{"version":"69e93290f59948789d5fce61cb0b89dde93747a4576744d0d6fae41ee3991646","affectsGlobalScope":true},{"version":"0715e4cd28ad471b2a93f3e552ff51a3ae423417a01a10aa1d3bc7c6b95059d6","affectsGlobalScope":true},"5153a2fd150e46ce57bb3f8db1318d33f6ad3261ed70ceeff92281c0608c74a3","210d54cd652ec0fec8c8916e4af59bb341065576ecda039842f9ffb2e908507c","36b03690b628eab08703d63f04eaa89c5df202e5f1edf3989f13ad389cd2c091","0effadd232a20498b11308058e334d3339cc5bf8c4c858393e38d9d4c0013dcf","25846d43937c672bab7e8195f3d881f93495df712ee901860effc109918938cc","ff1bad1849903b15fba47f3c29bdec5f97324874c93933a89b2bca28a23977fb","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","69ee23dd0d215b09907ad30d23f88b7790c93329d1faf31d7835552a10cf7cbf","44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","23b89798789dffbd437c0c423f5d02d11f9736aea73d6abf16db4f812ff36eda",{"version":"fddc2fac1bf6896d9c16acab1e5e44164a9b631b4812a3dd805058f188dac75e","affectsGlobalScope":true},{"version":"3c4ba1dd9b12ffa284b565063108f2f031d150ea15b8fafbdc17f5d2a07251f3","affectsGlobalScope":true},"e10177274a35a9d07c825615340b2fcde2f610f53f3fb40269fd196b4288dda6","1422cd9e705adcc09088fda85a900c2b70e3ad36ea85846f68bd1a884cdf4e2b","3c13ef48634e7b5012fcf7e8fce7496352c2d779a7201389ca96a2a81ee4314d","5d0a25ec910fa36595f85a67ac992d7a53dd4064a1ba6aea1c9f14ab73a023f2",{"version":"22d7b95cb63dead43834ae20ee492c9c8b6d90db3957d21665199f0efb1d3e26","affectsGlobalScope":true},{"version":"a9fc1469744055a3435f203123246b96c094e7ff8c4e1c3863829d9b705b7a34","affectsGlobalScope":true},"868831cab82b65dfe1d68180e898af1f2101e89ba9b754d1db6fb8cc2fac1921","0fe8985a28f82c450a04a6edf1279d7181c0893f37da7d2a27f8efd4fd5edb03","e59a892d87e72733e2a9ca21611b9beb52977be2696c7ba4b216cbbb9a48f5aa",{"version":"52120bb7e4583612225bdf08e7c12559548170f11e660d33a33623bae9bbdbba","affectsGlobalScope":true},"8a300fa9b698845a1f9c41ecbe2c5966634582a8e2020d51abcace9b55aa959e",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"d5be4343a9ace4611f04a6fffd91ceba91265fa15bfb0149306e0a6963e1a015","e222104af6cb9415238ad358488b74d76eceeff238c1268ec6e85655b05341da","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","eba230221317c985ab1953ccc3edc517f248b37db4fef7875cb2c8d08aff7be7","b83e796810e475da3564c6515bc0ae9577070596a33d89299b7d99f94ecfd921","b4439890c168d646357928431100daac5cbdee1d345a34e6bf6eca9f3abe22bc","5d72971a459517c44c1379dab9ed248e87a61ba0a1e0f25c9d67e1e640cd9a09","02d734976af36f4273d930bea88b3e62adf6b078cf120c1c63d49aa8d8427c5c",{"version":"f624e578325b8c58e55b30c998b1f4c3ec1b61a9fa66373da4250c89b7880d44","affectsGlobalScope":true},{"version":"d3002f620eab4bf6476c9da5c0efb2041d46f7df8b3032a5631bd206abef2c75","affectsGlobalScope":true}],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"declarationMap":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"module":99,"noImplicitAny":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","sourceMap":true,"target":1},"fileIdsList":[[115],[115,127,129],[115,123,124],[115,123,124,125,126],[115,128],[115,130],[69,115],[72,115],[73,78,106,115],[74,85,86,93,103,114,115],[74,75,85,93,115],[76,115],[77,78,86,94,115],[78,103,111,115],[79,81,85,93,115],[80,115],[81,82,115],[85,115],[83,85,115],[85,86,87,103,114,115],[85,86,87,100,103,106,115],[115,119],[81,85,88,93,103,114,115],[85,86,88,89,93,103,111,114,115],[88,90,103,111,114,115],[69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121],[85,91,115],[92,114,115,119],[81,85,93,103,115],[94,115],[95,115],[72,96,115],[97,113,115,119],[98,115],[99,115],[85,100,101,115],[100,102,115,117],[73,85,103,104,105,106,115],[73,103,105,115],[103,104,115],[106,115],[107,115],[72,103,115],[85,109,110,115],[109,110,115],[78,93,103,111,115],[112,115],[93,113,115],[73,88,99,114,115],[78,115],[103,115,116],[115,117],[115,118],[73,78,85,87,96,103,114,115,117,119],[103,115,120],[48,54,115],[48,115],[48,54,56,115],[55,56,57,58,59,60,61,62,63,64,65,115],[48,62,115],[48,54,64,115],[48,53,54,66,67,115],[54,66,115],[49,50,51,52,115],[44,115],[44,45,46,47,115],[43,115],[43,44,115],[48],[54]],"referencedMap":[[54,1],[130,2],[123,1],[125,3],[127,4],[126,3],[124,1],[129,5],[128,1],[131,6],[69,7],[70,7],[72,8],[73,9],[74,10],[75,11],[76,12],[77,13],[78,14],[79,15],[80,16],[81,17],[82,17],[84,18],[83,19],[85,18],[86,20],[87,21],[71,22],[121,1],[88,23],[89,24],[90,25],[122,26],[91,27],[92,28],[93,29],[94,30],[95,31],[96,32],[97,33],[98,34],[99,35],[100,36],[101,36],[102,37],[103,38],[105,39],[104,40],[106,41],[107,42],[108,43],[109,44],[110,45],[111,46],[112,47],[113,48],[114,49],[115,50],[116,51],[117,52],[118,53],[119,54],[120,55],[8,1],[10,1],[9,1],[2,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[3,1],[4,1],[22,1],[19,1],[20,1],[21,1],[23,1],[24,1],[25,1],[5,1],[26,1],[27,1],[28,1],[29,1],[6,1],[33,1],[30,1],[31,1],[32,1],[34,1],[7,1],[35,1],[40,1],[41,1],[36,1],[37,1],[38,1],[39,1],[1,1],[42,1],[55,56],[58,57],[57,58],[66,59],[63,60],[62,57],[65,61],[64,56],[59,58],[61,57],[56,1],[60,57],[68,62],[67,63],[49,57],[53,64],[52,1],[50,1],[51,57],[46,1],[45,65],[43,1],[48,66],[44,67],[47,68]],"exportedModulesMap":[[54,1],[130,2],[123,1],[125,3],[127,4],[126,3],[124,1],[129,5],[128,1],[131,6],[69,7],[70,7],[72,8],[73,9],[74,10],[75,11],[76,12],[77,13],[78,14],[79,15],[80,16],[81,17],[82,17],[84,18],[83,19],[85,18],[86,20],[87,21],[71,22],[121,1],[88,23],[89,24],[90,25],[122,26],[91,27],[92,28],[93,29],[94,30],[95,31],[96,32],[97,33],[98,34],[99,35],[100,36],[101,36],[102,37],[103,38],[105,39],[104,40],[106,41],[107,42],[108,43],[109,44],[110,45],[111,46],[112,47],[113,48],[114,49],[115,50],[116,51],[117,52],[118,53],[119,54],[120,55],[8,1],[10,1],[9,1],[2,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[3,1],[4,1],[22,1],[19,1],[20,1],[21,1],[23,1],[24,1],[25,1],[5,1],[26,1],[27,1],[28,1],[29,1],[6,1],[33,1],[30,1],[31,1],[32,1],[34,1],[7,1],[35,1],[40,1],[41,1],[36,1],[37,1],[38,1],[39,1],[1,1],[42,1],[55,56],[58,57],[57,58],[66,59],[63,60],[62,57],[65,61],[64,56],[59,58],[61,57],[56,1],[60,57],[68,69],[67,70],[49,57],[53,64],[52,1],[50,1],[51,57],[46,1],[45,65],[43,1],[48,66],[44,67],[47,68]],"semanticDiagnosticsPerFile":[54,130,123,125,127,126,124,129,128,131,69,70,72,73,74,75,76,77,78,79,80,81,82,84,83,85,86,87,71,121,88,89,90,122,91,92,93,94,95,96,97,98,99,100,101,102,103,105,104,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,8,10,9,2,11,12,13,14,15,16,17,18,3,4,22,19,20,21,23,24,25,5,26,27,28,29,6,33,30,31,32,34,7,35,40,41,36,37,38,39,1,42,55,58,57,66,63,62,65,64,59,61,56,60,68,67,49,53,52,50,51,46,45,43,48,44,47]},"version":"4.9.5"}
1
+ {"program":{"fileNames":["../../../../node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../../node_modules/typescript/lib/lib.dom.d.ts","../../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../teleport-types/dist/cjs/helper.d.ts","../../../teleport-types/dist/cjs/uidl.d.ts","../../../../node_modules/@babel/types/lib/index.d.ts","../../../teleport-types/dist/cjs/generators.d.ts","../../../teleport-types/dist/cjs/errors.d.ts","../../../teleport-types/dist/cjs/vuidl.d.ts","../../../teleport-types/dist/cjs/index.d.ts","../../../teleport-shared/dist/cjs/constants/index.d.ts","../../../teleport-shared/dist/cjs/utils/string-utils.d.ts","../../../teleport-shared/dist/cjs/utils/uidl-utils.d.ts","../../../teleport-shared/dist/cjs/utils/generic.d.ts","../../../teleport-shared/dist/cjs/index.d.ts","../../../teleport-plugin-common/dist/cjs/builders/ast-builders.d.ts","../../../teleport-plugin-common/dist/cjs/utils/parsed-ast.d.ts","../../../teleport-plugin-common/dist/cjs/builders/style-builders.d.ts","../../../teleport-plugin-common/dist/cjs/builders/hast-builders.d.ts","../../../teleport-plugin-common/dist/cjs/utils/types.d.ts","../../../teleport-plugin-common/dist/cjs/utils/ast-utils.d.ts","../../../teleport-plugin-common/dist/cjs/utils/style-utils.d.ts","../../../teleport-plugin-common/dist/cjs/utils/hast-utils.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-jsx/types.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-jsx/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/index.d.ts","../../../teleport-plugin-common/dist/cjs/index.d.ts","../../src/utils.ts","../../src/index.ts","../../../../node_modules/@types/node/assert.d.ts","../../../../node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/buffer/index.d.ts","../../../../node_modules/undici-types/header.d.ts","../../../../node_modules/undici-types/readable.d.ts","../../../../node_modules/undici-types/file.d.ts","../../../../node_modules/undici-types/fetch.d.ts","../../../../node_modules/undici-types/formdata.d.ts","../../../../node_modules/undici-types/connector.d.ts","../../../../node_modules/undici-types/client.d.ts","../../../../node_modules/undici-types/errors.d.ts","../../../../node_modules/undici-types/dispatcher.d.ts","../../../../node_modules/undici-types/global-dispatcher.d.ts","../../../../node_modules/undici-types/global-origin.d.ts","../../../../node_modules/undici-types/pool-stats.d.ts","../../../../node_modules/undici-types/pool.d.ts","../../../../node_modules/undici-types/handlers.d.ts","../../../../node_modules/undici-types/balanced-pool.d.ts","../../../../node_modules/undici-types/agent.d.ts","../../../../node_modules/undici-types/mock-interceptor.d.ts","../../../../node_modules/undici-types/mock-agent.d.ts","../../../../node_modules/undici-types/mock-client.d.ts","../../../../node_modules/undici-types/mock-pool.d.ts","../../../../node_modules/undici-types/mock-errors.d.ts","../../../../node_modules/undici-types/proxy-agent.d.ts","../../../../node_modules/undici-types/api.d.ts","../../../../node_modules/undici-types/cookies.d.ts","../../../../node_modules/undici-types/patch.d.ts","../../../../node_modules/undici-types/filereader.d.ts","../../../../node_modules/undici-types/diagnostics-channel.d.ts","../../../../node_modules/undici-types/websocket.d.ts","../../../../node_modules/undici-types/content-type.d.ts","../../../../node_modules/undici-types/cache.d.ts","../../../../node_modules/undici-types/interceptors.d.ts","../../../../node_modules/undici-types/index.d.ts","../../../../node_modules/@types/node/globals.d.ts","../../../../node_modules/@types/node/async_hooks.d.ts","../../../../node_modules/@types/node/buffer.d.ts","../../../../node_modules/@types/node/child_process.d.ts","../../../../node_modules/@types/node/cluster.d.ts","../../../../node_modules/@types/node/console.d.ts","../../../../node_modules/@types/node/constants.d.ts","../../../../node_modules/@types/node/crypto.d.ts","../../../../node_modules/@types/node/dgram.d.ts","../../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../../node_modules/@types/node/dns.d.ts","../../../../node_modules/@types/node/dns/promises.d.ts","../../../../node_modules/@types/node/domain.d.ts","../../../../node_modules/@types/node/dom-events.d.ts","../../../../node_modules/@types/node/events.d.ts","../../../../node_modules/@types/node/fs.d.ts","../../../../node_modules/@types/node/fs/promises.d.ts","../../../../node_modules/@types/node/http.d.ts","../../../../node_modules/@types/node/http2.d.ts","../../../../node_modules/@types/node/https.d.ts","../../../../node_modules/@types/node/inspector.d.ts","../../../../node_modules/@types/node/module.d.ts","../../../../node_modules/@types/node/net.d.ts","../../../../node_modules/@types/node/os.d.ts","../../../../node_modules/@types/node/path.d.ts","../../../../node_modules/@types/node/perf_hooks.d.ts","../../../../node_modules/@types/node/process.d.ts","../../../../node_modules/@types/node/punycode.d.ts","../../../../node_modules/@types/node/querystring.d.ts","../../../../node_modules/@types/node/readline.d.ts","../../../../node_modules/@types/node/readline/promises.d.ts","../../../../node_modules/@types/node/repl.d.ts","../../../../node_modules/@types/node/stream.d.ts","../../../../node_modules/@types/node/stream/promises.d.ts","../../../../node_modules/@types/node/stream/consumers.d.ts","../../../../node_modules/@types/node/stream/web.d.ts","../../../../node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/@types/node/test.d.ts","../../../../node_modules/@types/node/timers.d.ts","../../../../node_modules/@types/node/timers/promises.d.ts","../../../../node_modules/@types/node/tls.d.ts","../../../../node_modules/@types/node/trace_events.d.ts","../../../../node_modules/@types/node/tty.d.ts","../../../../node_modules/@types/node/url.d.ts","../../../../node_modules/@types/node/util.d.ts","../../../../node_modules/@types/node/v8.d.ts","../../../../node_modules/@types/node/vm.d.ts","../../../../node_modules/@types/node/wasi.d.ts","../../../../node_modules/@types/node/worker_threads.d.ts","../../../../node_modules/@types/node/zlib.d.ts","../../../../node_modules/@types/node/globals.global.d.ts","../../../../node_modules/@types/node/index.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/cleanupSemantic.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/types.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/diffLines.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/printDiffs.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/index.d.ts","../../../../node_modules/@types/jest/node_modules/pretty-format/build/types.d.ts","../../../../node_modules/@types/jest/node_modules/pretty-format/build/index.d.ts","../../../../node_modules/@types/jest/index.d.ts","../../../../node_modules/@types/jest/ts3.2/index.d.ts"],"fileInfos":[{"version":"8730f4bf322026ff5229336391a18bcaa1f94d4f82416c8b2f3954e2ccaae2ba","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","4b421cbfb3a38a27c279dec1e9112c3d1da296f77a1a85ddadf7e7a425d45d18","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9",{"version":"3aafcb693fe5b5c3bd277bd4c3a617b53db474fe498fc5df067c5603b1eebde7","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"5f406584aef28a331c36523df688ca3650288d14f39c5d2e555c95f0d2ff8f6f","affectsGlobalScope":true},{"version":"22f230e544b35349cfb3bd9110b6ef37b41c6d6c43c3314a31bd0d9652fcec72","affectsGlobalScope":true},{"version":"7ea0b55f6b315cf9ac2ad622b0a7813315bb6e97bf4bb3fbf8f8affbca7dc695","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"eb26de841c52236d8222f87e9e6a235332e0788af8c87a71e9e210314300410a","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"5e5e095c4470c8bab227dbbc61374878ecead104c74ab9960d3adcccfee23205","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"2768ef564cfc0689a1b76106c421a2909bdff0acbe87da010785adab80efdd5c","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},"14fc7efae8b184b18019a5906c6f6de752823b44ff1acf7924bbdc8877ded21b","3672d09e745eebdc77fbd27500be83d5f728ce49d736e48df8e40564a220082a","55584873eae27c5607725f0a9b2123cdea9100fd47cd4bfd582b567a7c363877","ef57158596c4ca7aaba95ec2c8a59a7e0b95eefec3b624fb23f13e82674ea3da","71a689048584cde03cb508408ae7c3b04ad8f10af887865e8b65c27ed9d91488","a82567a810267bac7bcd324917fde10195b9839e6bf86e6c1b1bade67b3ce600","6ba1631f84ef4507073189c4ada06d6de8bac89375ea3b49e34e49006cc44a3f","afa9397f3aa80897cec3ddec1dd6f7c8741106ce96090f74df790a474b114ed6","8c08668019739abf45bfa24fb3559a4362161c438e71e3925f06bd6ea2792883","242e6ce3f14c79123c25c35660899ba483f3fdc14ac8fa4a8eee5d03231c6bc3","96adbcda030ffa1952a15192edd1b852084c9bfbbd2066e5c8d567987c466e90","1875bde1eafbc9d923cd1624ac1fd6da0af82347c2a9c7a847a660cc4fa01a33","61fe981de167fe34caf4bd80a3c120747844dddb519eaf8a79549d5f78081fb7","7d69ac79c9de7620a1bdd926fd4b20b8e968d6467a220eac2a836988ab47c933","f2ad963e74d849aa62c16f4cae23b7f8f6e26844c0d61f42943086ee7e0cd896","51df45d44f1a2052bd14063736f385bfbdcfee3759fa5597c89f62b3bbdb02e5","10b2bb0a74b12ecbab5003ff91aa8b3da674f81a5d72fdd6f998bfaf664948c8","50d2610b1f4e78be730aa015115f5148686285f9e42af9100b6775ea6b97ec7f","d4f36091f2a7fac55cac2d088d46e68f01cd5cf68e3db5770b3ba62641875e18","6ff754e93a1ef94f7a92e7f6f9b67357f3b25836ab36d66202d1d07343186ab7","60fe3fa5573cd5d5c49966401678064cd81191fbd1c448856cb1c218e7e4434c","ac1916691af1f2cf58ea8229c620c3a16abe197ae70a9987065bd571cb559c39","48533e135178c91d9abe0789d1c09802696a42985217396ccfcfd1034a099a0e","dcaef7f7c1f0cb2dba19a1a70cc8d5276faa68e50bc69d6a006d3aaaaa9f7aa7","ffd67adf9464cf9bcddc3954fcd27d59b60e85acb02101fefe8b0eb642a2be2f","801c2cb432d4fcc1b3a60c02e591f60146fafefa5d019eb2da1f77e0ce748529",{"version":"54039b4d16b943ac81a3e239d8db01c3f1e6585778aa304fcabafe0714661e46","signature":"3dbf093ae95fa4d10b4461747a3b7ffb7fec3e95beb702c08588e4d483220f8d"},{"version":"b4bebc14b1d9b23b1ffd03cad4e82a5ad9a0209bffd592c7f263bfe0e7f239d8","signature":"ec2f9b45cff09f076d1d9fff1f0e2bea9994ce0951863d55e39af18b90de91f6"},"0b4bc32128fda7bb0752cf284730dd3a817aae04a3d7f92e3b2d54bd61362fe1","7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","4967529644e391115ca5592184d4b63980569adf60ee685f968fd59ab1557188","5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","7180c03fd3cb6e22f911ce9ba0f8a7008b1a6ddbe88ccf16a9c8140ef9ac1686","25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","54cb85a47d760da1c13c00add10d26b5118280d44d58e6908d8e89abbd9d7725","3e4825171442666d31c845aeb47fcd34b62e14041bb353ae2b874285d78482aa","c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","a967bfe3ad4e62243eb604bf956101e4c740f5921277c60debaf325c1320bf88","e9775e97ac4877aebf963a0289c81abe76d1ec9a2a7778dbe637e5151f25c5f3","471e1da5a78350bc55ef8cef24eb3aca6174143c281b8b214ca2beda51f5e04a","cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","db3435f3525cd785bf21ec6769bf8da7e8a776be1a99e2e7efb5f244a2ef5fee","c3b170c45fc031db31f782e612adf7314b167e60439d304b49e704010e7bafe5","40383ebef22b943d503c6ce2cb2e060282936b952a01bea5f9f493d5fb487cc7","4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","3a84b7cb891141824bd00ef8a50b6a44596aded4075da937f180c90e362fe5f6","13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","33203609eba548914dc83ddf6cadbc0bcb6e8ef89f6d648ca0908ae887f9fcc5","0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","339dc5265ee5ed92e536a93a04c4ebbc2128f45eeec6ed29f379e0085283542c","9f0a92164925aa37d4a5d9dd3e0134cff8177208dba55fd2310cd74beea40ee2","8bfdb79bf1a9d435ec48d9372dc93291161f152c0865b81fc0b2694aedb4578d","2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","d32275be3546f252e3ad33976caf8c5e842c09cb87d468cb40d5f4cf092d1acc","4a0c3504813a3289f7fb1115db13967c8e004aa8e4f8a9021b95285502221bd1",{"version":"5f290ea7efbe9d8431e10df12c0d5672b67988e7c171c2d356749fac70347a55","affectsGlobalScope":true},"39b1a50d543770780b0409a4caacb87f3ff1d510aedfeb7dc06ed44188256f89",{"version":"49c89f8fa09d21c161e6a367448639e032f42d77cc2ec8ab54ecb8fa9a3ad59f","affectsGlobalScope":true},"e4b50850c2a62c7750428e452ee24b167180104d514d5e5c0ca691753365f610","304504c854c47a55ab4a89111a27a2daf8a3614740bd787cc1f2c51e5574239c",{"version":"95f9129a37dcace36e17b061a8484952586ecfe928c9c8ce526de1a2f4aaefa7","affectsGlobalScope":true},"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb","0f9061846236850a872cb44097d071631e93c8749a8b16c191fe3c2a48faede4","e46fa644658c2d6e5c85e954ea76b92c97d63f0851d3ccdab8c2a80d5962aaa9","1c611ff373ce1958aafc40b328048ac2540ba5c7f373cf2897e0d9aeaabe90a0","a307d22a0130ac94c1a17fffa6d57ac272deb5838cb966a9420911d259cdf1be","d2e415abf6cb81ac9e2700b4db5ea7be76b997e812285b8e5e1e414eb2750b6e","09d6cebdced6aa1181ac1523c8f22a133f5ed80589678b64051f0602f0518374",{"version":"ee1ee365d88c4c6c0c0a5a5701d66ebc27ccd0bcfcfaa482c6e2e7fe7b98edf7","affectsGlobalScope":true},{"version":"7c35691dc3972ff1507d8dd279d833f540973d0917bde22e191cf7a8feaac29f","affectsGlobalScope":true},"62662d7a886e5cfa870685720fd27b763743ca4d2cf29326f75d76606a64eadd","b8c670688bd228d3cc9c169690b09b687188c50ff263a94df63b207701105ad9","d8e16905907111390d5a943816306ae997dfe56476f14142166f8b13ee322eea","8068c911a1c40bc6c5ffc58c625b21d807778f6aa6d63a73e6f04f88bcac5b79","a1dbce56ad5f3a37caafb9033c9d190a199217d673f5fa099c8968d471a2fdaa","c6f77efcc19f51c8759779b6b6ee0d88046c15c15dadac8ffed729a6620daf39",{"version":"089867511b37a534ae71f3d9bc97acc0b925b7f5dbec113f98c4b49224c694eb","affectsGlobalScope":true},"269d0ea3202820c29a32c1f2a357837a4f1918426844f7e7c90af15ec40d1dc1","66432f885e30cf471573de22a5af5eca9ab46b37b122aec98beadf77e9b7df24","323506ce173f7f865f42f493885ee3dacd18db6359ea1141d57676d3781ce10c",{"version":"034e635df3c014df1d6b1110b724ca0c4d2d324b45a84974c7d6931f9cf95ea7","affectsGlobalScope":true},{"version":"87f9456115554cb0f78f098ddbd585096871c19d2d05274c1b1b4ade3151da78","affectsGlobalScope":true},"ea3ab3727cd6c222d94003ecafa30e8550c61eadcdabbf59514aee76e86211a5","d3cdd41693c5ed6bec4f1a1c399d9501372b14bd341bc46eedacf2854c5df5a7","2de7a21c92226fb8abbeed7a0a9bd8aa6d37e4c68a8c7ff7938c644267e9fcc1","6d6070c5c81ba0bfe58988c69e3ba3149fc86421fd383f253aeb071cbf29cd41","da618f0ea09d95c3b51514de43bf97dab008c85bede58aa57cf95e4984c7c957","48a35b181ecf47dbbc0a7ab4b5ba778d91eaa838ba42bf4aaaead42be77ef39a","269929a24b2816343a178008ac9ae9248304d92a8ba8e233055e0ed6dbe6ef71","93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","5195aeb0de306d1c5ca8033457fbcab5987657112fa6d4971cfeb7644493a369","c5dbf0003bc9f0f643e54cd00a3868d1afe85497fecb56be6f2373dc85102924",{"version":"ce73eb199c4bf96c015f069aac161488ed73ebeaea3d87b6d5aa9a968a7b38d4","affectsGlobalScope":true},{"version":"300f8e9de0b0c3482be3e749462b6ebc3dab8a316801f1da0def94aed0cd2018","affectsGlobalScope":true},"4e228e78c1e9b0a75c70588d59288f63a6258e8b1fe4a67b0c53fe03461421d9","962f105729d5b888c8b70e193f6020ee92c6c8144c827de40f80d65dd188ad7f","ac74e2b754fba690036f8221d978f6debb867462b87af254f24e924b677395d0","80858f6de9af22e53aff221fe3590215ea544c2aeb2cc60cf8e08a9c785c8fef",{"version":"068b8ee5c2cd90d7a50f2efadbbe353cb10196a41189a48bf4b2a867363012b4","affectsGlobalScope":true},{"version":"340659b96782f5813aad6c1f89ea1b83b2f3fa993115c7b30366375d9bae5a4e","affectsGlobalScope":true},"6f44a190351ab5e1811abebe007cf60518044772ccc08244f9f241706afa767f","fecdf44bec4ee9c5188e5f2f58c292c9689c02520900dceaaa6e76594de6da90","cf45d0510b661f1da461479851ff902f188edb111777c37055eff12fa986a23a",{"version":"895ca532c15c77cbb6a871af1870b57bcd0ca4f38a1bd69669dd0e95bb58565a","affectsGlobalScope":true},"f2b9440f98d6f94c8105883a2b65aee2fce0248f71f41beafd0a80636f3a565d",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"b510d0a18e3db42ac9765d26711083ec1e8b4e21caaca6dc4d25ae6e8623f447","e222104af6cb9415238ad358488b74d76eceeff238c1268ec6e85655b05341da","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","eba230221317c985ab1953ccc3edc517f248b37db4fef7875cb2c8d08aff7be7","b83e796810e475da3564c6515bc0ae9577070596a33d89299b7d99f94ecfd921","b4439890c168d646357928431100daac5cbdee1d345a34e6bf6eca9f3abe22bc","5d72971a459517c44c1379dab9ed248e87a61ba0a1e0f25c9d67e1e640cd9a09","02d734976af36f4273d930bea88b3e62adf6b078cf120c1c63d49aa8d8427c5c",{"version":"f624e578325b8c58e55b30c998b1f4c3ec1b61a9fa66373da4250c89b7880d44","affectsGlobalScope":true},{"version":"d3002f620eab4bf6476c9da5c0efb2041d46f7df8b3032a5631bd206abef2c75","affectsGlobalScope":true}],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"declarationMap":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"module":99,"noImplicitAny":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","sourceMap":true,"target":1},"fileIdsList":[[162,164],[158,159],[158,159,160,161],[163],[165],[71],[107],[108,113,141],[109,120,121,128,138,149],[109,110,120,128],[111,150],[112,113,121,129],[113,138,146],[114,116,120,128],[107,115],[116,117],[120],[118,120],[107,120],[120,121,122,138,149],[120,121,122,135,138,141],[105,154],[116,120,123,128,138,149],[120,121,123,124,128,138,146,149],[123,125,138,146,149],[71,72,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156],[120,126],[127,149,154],[116,120,128,138],[129],[130],[107,131],[132,148,154],[133],[134],[120,135,136],[135,137,150,152],[108,120,138,139,140,141],[108,138,140],[138,139],[141],[142],[107,138],[120,144,145],[144,145],[113,128,138,146],[147],[128,148],[108,123,134,149],[113,150],[138,151],[127,152],[153],[108,113,120,122,131,138,149,152,154],[138,155],[82,86,149],[82,138,149],[77],[79,82,146,149],[128,146],[157],[77,157],[79,82,128,149],[74,75,78,81,108,120,138,149],[74,80],[78,82,108,141,149,157],[108,157],[98,108,157],[76,77,157],[82],[76,77,78,79,80,81,82,83,84,86,87,88,89,90,91,92,93,94,95,96,97,99,100,101,102,103,104],[82,89,90],[80,82,90,91],[81],[74,77,82],[82,86,90,91],[86],[80,82,85,149],[74,79,80,82,86,89],[108,138],[77,82,98,108,154,157],[45,49],[49],[45,49,56],[55,56,57,58,60,61,62,63,64,65,66,67],[49,65],[45,49,63],[45,49,56,59],[45,49,54,68,69],[45,68],[50,51,52,53],[44,45],[44,46,47,48],[43],[43,44],[45]],"referencedMap":[[165,1],[160,2],[162,3],[161,2],[164,4],[166,5],[71,6],[72,6],[107,7],[108,8],[109,9],[110,10],[111,11],[112,12],[113,13],[114,14],[115,15],[116,16],[117,16],[119,17],[118,18],[120,19],[121,20],[122,21],[106,22],[123,23],[124,24],[125,25],[157,26],[126,27],[127,28],[128,29],[129,30],[130,31],[131,32],[132,33],[133,34],[134,35],[135,36],[136,36],[137,37],[138,38],[140,39],[139,40],[141,41],[142,42],[143,43],[144,44],[145,45],[146,46],[147,47],[148,48],[149,49],[150,50],[151,51],[152,52],[153,53],[154,54],[155,55],[89,56],[96,57],[88,56],[103,58],[80,59],[79,60],[102,61],[97,62],[100,63],[82,64],[81,65],[77,66],[76,67],[99,68],[78,69],[83,70],[87,70],[105,71],[104,70],[91,72],[92,73],[94,74],[90,75],[93,76],[98,61],[85,77],[86,78],[95,79],[75,80],[101,81],[55,82],[58,83],[57,84],[68,85],[66,86],[65,83],[67,87],[63,82],[64,87],[60,88],[62,82],[61,83],[70,89],[69,90],[50,83],[54,91],[53,83],[52,83],[46,92],[49,93],[44,94],[48,95]],"exportedModulesMap":[[165,1],[160,2],[162,3],[161,2],[164,4],[166,5],[71,6],[72,6],[107,7],[108,8],[109,9],[110,10],[111,11],[112,12],[113,13],[114,14],[115,15],[116,16],[117,16],[119,17],[118,18],[120,19],[121,20],[122,21],[106,22],[123,23],[124,24],[125,25],[157,26],[126,27],[127,28],[128,29],[129,30],[130,31],[131,32],[132,33],[133,34],[134,35],[135,36],[136,36],[137,37],[138,38],[140,39],[139,40],[141,41],[142,42],[143,43],[144,44],[145,45],[146,46],[147,47],[148,48],[149,49],[150,50],[151,51],[152,52],[153,53],[154,54],[155,55],[89,56],[96,57],[88,56],[103,58],[80,59],[79,60],[102,61],[97,62],[100,63],[82,64],[81,65],[77,66],[76,67],[99,68],[78,69],[83,70],[87,70],[105,71],[104,70],[91,72],[92,73],[94,74],[90,75],[93,76],[98,61],[85,77],[86,78],[95,79],[75,80],[101,81],[55,82],[58,83],[57,84],[68,85],[66,86],[65,83],[67,87],[63,82],[64,87],[60,88],[62,82],[61,83],[70,83],[69,96],[50,83],[54,91],[53,83],[52,83],[46,92],[49,93],[44,94],[48,95]],"semanticDiagnosticsPerFile":[45,165,158,160,162,161,159,164,163,166,71,72,107,108,109,110,111,112,113,114,115,116,117,119,118,120,121,122,106,156,123,124,125,157,126,127,128,129,130,131,132,133,134,135,136,137,138,140,139,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,73,8,10,9,2,11,12,13,14,15,16,17,18,3,4,22,19,20,21,23,24,25,5,26,27,28,29,6,33,30,31,32,34,7,35,40,41,36,37,38,39,1,42,89,96,88,103,80,79,102,97,100,82,81,77,76,99,78,83,84,87,74,105,104,91,92,94,90,93,98,85,86,95,75,101,55,58,57,68,66,65,67,63,64,60,62,56,61,59,70,69,50,54,53,51,52,47,46,43,49,44,48]},"version":"4.9.5"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teleporthq/teleport-plugin-react-styled-jsx",
3
- "version": "0.41.0",
3
+ "version": "0.42.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.41.0",
29
- "@teleporthq/teleport-shared": "^0.41.0",
30
- "@teleporthq/teleport-types": "^0.41.0"
28
+ "@teleporthq/teleport-plugin-common": "^0.42.0",
29
+ "@teleporthq/teleport-shared": "^0.42.0",
30
+ "@teleporthq/teleport-types": "^0.42.0"
31
31
  },
32
- "gitHead": "e27d8195d1be04c1991e23cad87bcf65d87ab2f3"
32
+ "gitHead": "5460b740bf90a0a320f7a6b56119e3aa03fc3609"
33
33
  }
package/src/index.ts CHANGED
@@ -1,27 +1,52 @@
1
1
  import { StringUtils, UIDLUtils } from '@teleporthq/teleport-shared'
2
- import { ASTUtils, StyleBuilders, ASTBuilders } from '@teleporthq/teleport-plugin-common'
2
+ import {
3
+ ASTUtils,
4
+ StyleBuilders,
5
+ ASTBuilders,
6
+ createBinaryExpression,
7
+ } from '@teleporthq/teleport-plugin-common'
3
8
  import {
4
9
  ComponentPluginFactory,
5
10
  ComponentPlugin,
6
11
  UIDLStyleValue,
7
12
  PluginStyledJSX,
13
+ UIDLElement,
14
+ UIDLElementNode,
8
15
  } from '@teleporthq/teleport-types'
9
16
  import { generateStyledJSXTag } from './utils'
10
17
  import * as types from '@babel/types'
11
18
 
12
19
  interface StyledJSXConfig {
13
20
  componentChunkName: string
14
- forceScoping: boolean
15
21
  }
16
22
 
23
+ const transformStyle = (style: Record<string, UIDLStyleValue>, propsPrefix: string) =>
24
+ UIDLUtils.transformDynamicStyles(style, (styleValue) => {
25
+ switch (styleValue.content.referenceType) {
26
+ case 'token':
27
+ return `var(${StringUtils.generateCSSVariableName(styleValue.content.id)})`
28
+ case 'prop':
29
+ return `\$\{${propsPrefix}.${styleValue.content.id}\}`
30
+ default:
31
+ throw new PluginStyledJSX(
32
+ `Error running transformDynamicStyles in reactStyledJSXChunkPlugin.\n
33
+ Unsupported styleValue.content.referenceType value ${styleValue.content.referenceType}`
34
+ )
35
+ }
36
+ })
37
+
17
38
  export const createReactStyledJSXPlugin: ComponentPluginFactory<StyledJSXConfig> = (config) => {
18
- const { componentChunkName = 'jsx-component', forceScoping = false } = config || {}
39
+ const { componentChunkName = 'jsx-component' } = config || {}
19
40
 
20
41
  const reactStyledJSXPlugin: ComponentPlugin = async (structure) => {
21
42
  const { uidl, chunks, options } = structure
22
43
  const { projectStyleSet } = options
23
- const { node, styleSetDefinitions: componentStyleSheet = {}, propDefinitions = {} } = uidl
24
-
44
+ const {
45
+ node,
46
+ styleSetDefinitions: componentStyleSheet = {},
47
+ propDefinitions = {},
48
+ stateDefinitions = {},
49
+ } = uidl
25
50
  const componentChunk = chunks.find((chunk) => chunk.name === componentChunkName)
26
51
  if (!componentChunk) {
27
52
  return structure
@@ -35,24 +60,11 @@ export const createReactStyledJSXPlugin: ComponentPluginFactory<StyledJSXConfig>
35
60
  > = {}
36
61
  const classMap: string[] = []
37
62
 
38
- const transformStyle = (style: Record<string, UIDLStyleValue>) =>
39
- UIDLUtils.transformDynamicStyles(style, (styleValue) => {
40
- switch (styleValue.content.referenceType) {
41
- case 'token':
42
- return `var(${StringUtils.generateCSSVariableName(styleValue.content.id)})`
43
- case 'prop':
44
- return `\$\{${propsPrefix}.${styleValue.content.id}\}`
45
- default:
46
- throw new PluginStyledJSX(
47
- `Error running transformDynamicStyles in reactStyledJSXChunkPlugin.\n
48
- Unsupported styleValue.content.referenceType value ${styleValue.content.referenceType}`
49
- )
50
- }
51
- })
52
-
53
- UIDLUtils.traverseElements(node, (element) => {
63
+ const generateStylesForElementNode = (element: UIDLElement) => {
54
64
  const classNamesToAppend: Set<string> = new Set()
55
- const dynamicVariantsToAppend: Set<types.Identifier | types.MemberExpression> = new Set()
65
+ const dynamicVariantsToAppend: Set<
66
+ types.Identifier | types.MemberExpression | types.ConditionalExpression
67
+ > = new Set()
56
68
  const {
57
69
  style = {},
58
70
  key,
@@ -61,16 +73,28 @@ export const createReactStyledJSXPlugin: ComponentPluginFactory<StyledJSXConfig>
61
73
  dependency,
62
74
  elementType,
63
75
  } = element
64
- const elementClassName = StringUtils.camelCaseToDashCase(key)
65
- const className = getClassName(forceScoping, uidl.name, elementClassName)
66
76
 
67
- if (forceScoping && dependency?.type === 'local') {
77
+ if (key === undefined) {
78
+ throw new Error(`Key is missing for element \n ${JSON.stringify(element, null, 2)}`)
79
+ }
80
+
81
+ const className = StringUtils.camelCaseToDashCase(key)
82
+ const root = jsxNodesLookup[key]
83
+ if (!root) {
84
+ throw new PluginStyledJSX(
85
+ `Element \n ${JSON.stringify(
86
+ element,
87
+ null,
88
+ 2
89
+ )} \n with key ${key} is missing from the template chunk of component ${uidl.name}`
90
+ )
91
+ }
92
+
93
+ if (dependency?.type === 'local') {
68
94
  StyleBuilders.setPropValueForCompStyle({
69
- key,
70
- jsxNodesLookup,
95
+ root,
71
96
  attrs,
72
- getClassName: (str: string) =>
73
- getClassName(forceScoping, StringUtils.camelCaseToDashCase(elementType), str),
97
+ getClassName: (str: string) => StringUtils.camelCaseToDashCase(elementType + str),
74
98
  })
75
99
  }
76
100
 
@@ -78,11 +102,9 @@ export const createReactStyledJSXPlugin: ComponentPluginFactory<StyledJSXConfig>
78
102
  return
79
103
  }
80
104
 
81
- const root = jsxNodesLookup[key]
82
-
83
105
  // Generating the string templates for the dynamic styles
84
106
  if (Object.keys(style).length > 0) {
85
- const styleRules = transformStyle(style)
107
+ const styleRules = transformStyle(style, propsPrefix)
86
108
  classMap.push(StyleBuilders.createCSSClass(className, styleRules))
87
109
  classNamesToAppend.add(className)
88
110
  }
@@ -96,9 +118,8 @@ export const createReactStyledJSXPlugin: ComponentPluginFactory<StyledJSXConfig>
96
118
  if (!mediaStylesMap[String(maxWidth)]) {
97
119
  mediaStylesMap[String(maxWidth)] = []
98
120
  }
99
-
100
121
  mediaStylesMap[String(maxWidth)].push({
101
- [className]: transformStyle(styleRef.content.styles),
122
+ [className]: transformStyle(styleRef.content.styles, propsPrefix),
102
123
  })
103
124
  }
104
125
 
@@ -107,7 +128,7 @@ export const createReactStyledJSXPlugin: ComponentPluginFactory<StyledJSXConfig>
107
128
  StyleBuilders.createCSSClassWithSelector(
108
129
  className,
109
130
  `&:${condition.content}`,
110
- transformStyle(styleRef.content.styles)
131
+ transformStyle(styleRef.content.styles, propsPrefix)
111
132
  )
112
133
  )
113
134
  }
@@ -133,15 +154,13 @@ export const createReactStyledJSXPlugin: ComponentPluginFactory<StyledJSXConfig>
133
154
  )
134
155
  const defaultPropValue =
135
156
  propDefinitions[styleRef.content.content.content.id]?.defaultValue
157
+
136
158
  if (!defaultPropValue) {
137
159
  return
138
160
  }
139
161
 
140
- propDefinitions[styleRef.content.content.content.id].defaultValue = getClassName(
141
- forceScoping,
142
- uidl.name,
143
- String(defaultPropValue)
144
- )
162
+ propDefinitions[styleRef.content.content.content.id].defaultValue =
163
+ StringUtils.camelCaseToDashCase(String(defaultPropValue))
145
164
  }
146
165
 
147
166
  if (
@@ -149,7 +168,7 @@ export const createReactStyledJSXPlugin: ComponentPluginFactory<StyledJSXConfig>
149
168
  styleRef.content.content.content.referenceType === 'comp'
150
169
  ) {
151
170
  classNamesToAppend.add(
152
- getClassName(forceScoping, uidl.name, styleRef.content.content.content.id)
171
+ StringUtils.camelCaseToDashCase(styleRef.content.content.content.id)
153
172
  )
154
173
  }
155
174
 
@@ -163,7 +182,53 @@ export const createReactStyledJSXPlugin: ComponentPluginFactory<StyledJSXConfig>
163
182
  throw new PluginStyledJSX(`Project style - ${content.referenceId} is missing`)
164
183
  }
165
184
 
166
- classNamesToAppend.add(content.referenceId)
185
+ if (styleRef.content.condition) {
186
+ const nameToAppend = styleRef.content.condition.reference.content.id
187
+
188
+ const { conditions } = styleRef.content.condition.expression
189
+
190
+ const operator = conditions[0].operation as '===' | '!==' | '<' | '<=' | '>' | '>='
191
+ const right = conditions[0].operand
192
+ const referenceType = styleRef.content.condition.reference.content.referenceType
193
+
194
+ let binaryExpressionType = ''
195
+ switch (referenceType) {
196
+ case 'prop': {
197
+ binaryExpressionType = propDefinitions[nameToAppend].type
198
+ break
199
+ }
200
+ case 'state': {
201
+ binaryExpressionType = stateDefinitions[nameToAppend].type
202
+ break
203
+ }
204
+ default: {
205
+ throw new PluginStyledJSX(
206
+ `Un-supported reference type ${referenceType} for style reference ${JSON.stringify(
207
+ styleRef.content,
208
+ null,
209
+ 2
210
+ )}`
211
+ )
212
+ }
213
+ }
214
+ const binaryExpression = createBinaryExpression(
215
+ { operation: operator, operand: right },
216
+ {
217
+ key: (referenceType === 'prop' ? 'props?.' : '') + nameToAppend,
218
+ type: binaryExpressionType,
219
+ }
220
+ )
221
+
222
+ const conditionalExpression = types.conditionalExpression(
223
+ binaryExpression,
224
+ types.stringLiteral(content.referenceId),
225
+ types.stringLiteral('')
226
+ )
227
+
228
+ dynamicVariantsToAppend.add(conditionalExpression)
229
+ } else {
230
+ classNamesToAppend.add(content.referenceId)
231
+ }
167
232
  return
168
233
  }
169
234
 
@@ -181,7 +246,17 @@ export const createReactStyledJSXPlugin: ComponentPluginFactory<StyledJSXConfig>
181
246
  'className',
182
247
  Array.from(dynamicVariantsToAppend)
183
248
  )
184
- })
249
+ }
250
+
251
+ UIDLUtils.traverseElements(node, generateStylesForElementNode)
252
+ for (const prop of Object.values(propDefinitions)) {
253
+ if (prop.type === 'element' && prop.defaultValue) {
254
+ UIDLUtils.traverseElements(
255
+ prop.defaultValue as UIDLElementNode,
256
+ generateStylesForElementNode
257
+ )
258
+ }
259
+ }
185
260
 
186
261
  /* Generating component scoped styles */
187
262
  if (Object.keys(componentStyleSheet).length > 0) {
@@ -189,7 +264,7 @@ export const createReactStyledJSXPlugin: ComponentPluginFactory<StyledJSXConfig>
189
264
  componentStyleSheet,
190
265
  classMap,
191
266
  mediaStylesMap,
192
- (styleName: string) => getClassName(forceScoping, uidl.name, styleName)
267
+ (styleName: string) => StringUtils.camelCaseToDashCase(uidl.name + styleName)
193
268
  )
194
269
  }
195
270
 
@@ -215,7 +290,7 @@ export const createReactStyledJSXPlugin: ComponentPluginFactory<StyledJSXConfig>
215
290
  // We need to replace the root node with a fragment <>
216
291
  // The fragment will be the parent of both the old root JSXNode and the style tag
217
292
  const componentAST = componentChunk.content as types.VariableDeclaration
218
- const arrowFnExpr = componentAST.declarations[0].init as types.ArrowFunctionExpression
293
+ const arrowFnExpr = componentAST.declarations?.[0]?.init as types.ArrowFunctionExpression
219
294
  const bodyStatement = arrowFnExpr.body as types.BlockStatement
220
295
  const returnStatement = bodyStatement.body.find(
221
296
  (statement) => statement.type === 'ReturnStatement'
@@ -234,9 +309,3 @@ export const createReactStyledJSXPlugin: ComponentPluginFactory<StyledJSXConfig>
234
309
  }
235
310
 
236
311
  export default createReactStyledJSXPlugin()
237
-
238
- const getClassName = (scoping: boolean, uidlName: string, nodeStyleName: string) => {
239
- return scoping
240
- ? StringUtils.camelCaseToDashCase(`${uidlName}-${nodeStyleName}`)
241
- : StringUtils.camelCaseToDashCase(nodeStyleName)
242
- }