@teleporthq/teleport-plugin-react-styled-components 0.20.0 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +35 -10
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/cjs/utils.js +12 -5
- package/dist/cjs/utils.js.map +1 -1
- package/dist/esm/index.js +36 -11
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/dist/esm/utils.js +12 -5
- package/dist/esm/utils.js.map +1 -1
- package/package.json +5 -5
- package/src/index.ts +46 -9
- package/src/utils.ts +15 -9
package/dist/cjs/index.js
CHANGED
|
@@ -82,10 +82,10 @@ var constants_1 = require("./constants");
|
|
|
82
82
|
var createReactStyledComponentsPlugin = function (config) {
|
|
83
83
|
var _a = config || {}, _b = _a.componentChunkName, componentChunkName = _b === void 0 ? 'jsx-component' : _b, _c = _a.importChunkName, importChunkName = _c === void 0 ? 'import-local' : _c, _d = _a.componentLibrary, componentLibrary = _d === void 0 ? 'react' : _d, _e = _a.illegalComponentNames, illegalComponentNames = _e === void 0 ? [] : _e;
|
|
84
84
|
var reactStyledComponentsPlugin = function (structure) { return __awaiter(void 0, void 0, void 0, function () {
|
|
85
|
-
var uidl, chunks, dependencies, options, node, name, _a, componentStyleSheet, projectStyleSet, componentChunk, jsxNodesLookup, propsPrefix, cssMap, tokensReferred, variants;
|
|
86
|
-
return __generator(this, function (
|
|
85
|
+
var uidl, chunks, dependencies, options, node, name, _a, componentStyleSheet, _b, propDefinitions, projectStyleSet, componentChunk, jsxNodesLookup, propsPrefix, cssMap, tokensReferred, variants;
|
|
86
|
+
return __generator(this, function (_c) {
|
|
87
87
|
uidl = structure.uidl, chunks = structure.chunks, dependencies = structure.dependencies, options = structure.options;
|
|
88
|
-
node = uidl.node, name = uidl.name, _a = uidl.styleSetDefinitions, componentStyleSheet = _a === void 0 ? {} : _a;
|
|
88
|
+
node = uidl.node, name = uidl.name, _a = uidl.styleSetDefinitions, componentStyleSheet = _a === void 0 ? {} : _a, _b = uidl.propDefinitions, propDefinitions = _b === void 0 ? {} : _b;
|
|
89
89
|
projectStyleSet = options.projectStyleSet;
|
|
90
90
|
componentChunk = chunks.find(function (chunk) { return chunk.name === componentChunkName; });
|
|
91
91
|
if (!componentChunk) {
|
|
@@ -108,12 +108,20 @@ var createReactStyledComponentsPlugin = function (config) {
|
|
|
108
108
|
}
|
|
109
109
|
teleport_shared_1.UIDLUtils.traverseElements(node, function (element) {
|
|
110
110
|
var _a;
|
|
111
|
-
var
|
|
112
|
-
var key = element.key, elementType = element.elementType, _c = element.referencedStyles, referencedStyles = _c === void 0 ? {} : _c;
|
|
111
|
+
var key = element.key, elementType = element.elementType, referencedStyles = element.referencedStyles, dependency = element.dependency, style = element.style, _b = element.attrs, attrs = _b === void 0 ? {} : _b;
|
|
113
112
|
var propsReferred = new Set();
|
|
114
113
|
var componentStyleReferences = new Set();
|
|
115
114
|
var projectStyleReferences = new Set();
|
|
116
|
-
if (
|
|
115
|
+
if ((dependency === null || dependency === void 0 ? void 0 : dependency.type) === 'local') {
|
|
116
|
+
teleport_plugin_common_1.StyleBuilders.setPropValueForCompStyle({
|
|
117
|
+
attrs: attrs,
|
|
118
|
+
key: key,
|
|
119
|
+
jsxNodesLookup: jsxNodesLookup,
|
|
120
|
+
getClassName: getClassName,
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
if (Object.keys(style || {}).length === 0 &&
|
|
124
|
+
Object.keys(referencedStyles || {}).length === 0) {
|
|
117
125
|
return;
|
|
118
126
|
}
|
|
119
127
|
var root = jsxNodesLookup[key];
|
|
@@ -197,12 +205,28 @@ var createReactStyledComponentsPlugin = function (config) {
|
|
|
197
205
|
}
|
|
198
206
|
if (styleRef.content.content.type === 'dynamic' &&
|
|
199
207
|
styleRef.content.content.content.referenceType === 'comp') {
|
|
200
|
-
|
|
201
|
-
|
|
208
|
+
var usedCompStyle = componentStyleSheet[styleRef.content.content.content.id];
|
|
209
|
+
if (!usedCompStyle) {
|
|
210
|
+
throw new Error("".concat(styleRef.content.content.content.id, " is missing from props"));
|
|
211
|
+
}
|
|
212
|
+
componentStyleReferences.add(usedCompStyle.type);
|
|
213
|
+
teleport_plugin_common_1.ASTUtils.addAttributeToJSXTag(root, constants_1.componentVariantPropKey, getClassName(styleRef.content.content.content.id));
|
|
202
214
|
}
|
|
203
215
|
if (styleRef.content.content.type === 'dynamic' &&
|
|
204
216
|
styleRef.content.content.content.referenceType === 'prop') {
|
|
205
|
-
|
|
217
|
+
var prop = propDefinitions[styleRef.content.content.content.id];
|
|
218
|
+
if (prop === null || prop === void 0 ? void 0 : prop.defaultValue) {
|
|
219
|
+
var usedCompStyle = componentStyleSheet[String(prop.defaultValue)];
|
|
220
|
+
componentStyleReferences.add(usedCompStyle.type);
|
|
221
|
+
/*
|
|
222
|
+
Changing the default value of the prop.
|
|
223
|
+
When forceScoping is enabled the classnames change. So, we need to change the default prop too.
|
|
224
|
+
*/
|
|
225
|
+
propDefinitions[styleRef.content.content.content.id].defaultValue = getClassName(String(prop.defaultValue));
|
|
226
|
+
}
|
|
227
|
+
else {
|
|
228
|
+
componentStyleReferences.add(constants_1.componentVariantPropPrefix);
|
|
229
|
+
}
|
|
206
230
|
teleport_plugin_common_1.ASTUtils.addDynamicAttributeToJSXTag(root, constants_1.componentVariantPropKey, "".concat(propsPrefix, ".").concat(styleRef.content.content.content.id));
|
|
207
231
|
}
|
|
208
232
|
return;
|
|
@@ -224,7 +248,7 @@ var createReactStyledComponentsPlugin = function (config) {
|
|
|
224
248
|
},
|
|
225
249
|
};
|
|
226
250
|
projectStyleReferences.add(constants_1.projectVariantPropPrefix);
|
|
227
|
-
teleport_plugin_common_1.ASTUtils.addAttributeToJSXTag(root, constants_1.projectVariantPropKey, content.referenceId);
|
|
251
|
+
teleport_plugin_common_1.ASTUtils.addAttributeToJSXTag(root, constants_1.projectVariantPropKey, getClassName(content.referenceId));
|
|
228
252
|
return;
|
|
229
253
|
}
|
|
230
254
|
default: {
|
|
@@ -282,4 +306,5 @@ var createReactStyledComponentsPlugin = function (config) {
|
|
|
282
306
|
};
|
|
283
307
|
exports.createReactStyledComponentsPlugin = createReactStyledComponentsPlugin;
|
|
284
308
|
exports.default = (0, exports.createReactStyledComponentsPlugin)();
|
|
309
|
+
var getClassName = function (str) { return teleport_shared_1.StringUtils.dashCaseToCamelCase(str); };
|
|
285
310
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAqC;AACrC,6DAMmC;AACnC,+DAAoE;AACpE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAqC;AACrC,6DAMmC;AACnC,+DAAoE;AACpE,6EAA4E;AAC5E,iCAKgB;AAChB,6CAAsD;AA0U7C,uGA1UA,oCAAsB,OA0UA;AAzU/B,yCAMoB;AAUb,IAAM,iCAAiC,GAAmD,UAC/F,MAAM;IAEA,IAAA,KAKF,MAAM,IAAI,EAAE,EAJd,0BAAoC,EAApC,kBAAkB,mBAAG,eAAe,KAAA,EACpC,uBAAgC,EAAhC,eAAe,mBAAG,cAAc,KAAA,EAChC,wBAA0B,EAA1B,gBAAgB,mBAAG,OAAO,KAAA,EAC1B,6BAA0B,EAA1B,qBAAqB,mBAAG,EAAE,KACZ,CAAA;IAEhB,IAAM,2BAA2B,GAAoB,UAAO,SAAS;;;YAC3D,IAAI,GAAoC,SAAS,KA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,CAAC,MAAM,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE;gBACpC,sBAAO,SAAS,EAAA;aACjB;YAED,IAAI,cAAc,CAAC,IAAI,GAAG,CAAC,EAAE;gBAC3B,YAAY,CAAC,MAAM,GAAG;oBACpB,IAAI,EAAE,OAAO;oBACb,IAAI,EAAE,UAAG,eAAe,CAAC,IAAI,SAAG,eAAe,CAAC,QAAQ,CAAE;oBAC1D,IAAI,EAAE;wBACJ,WAAW,EAAE,IAAI;qBAClB;iBACF,CAAA;aACF;YAED,YAAY,CAAC,MAAM,GAAG;gBACpB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,gBAAgB,KAAK,OAAO,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,0BAA0B;gBACrF,OAAO,EAAE,QAAQ;aAClB,CAAA;YAED;gEACoD;YAEpD,IAAI,gBAAgB,KAAK,aAAa,EAAE;gBACtC,IAAA,gCAAwB,EAAC,YAAY,EAAE,cAAc,CAAC,CAAA;aACvD;YAED,sBAAO,SAAS,EAAA;;SACjB,CAAA;IAED,OAAO,2BAA2B,CAAA;AACpC,CAAC,CAAA;AAvTY,QAAA,iCAAiC,qCAuT7C;AAID,kBAAe,IAAA,yCAAiC,GAAE,CAAA;AAElD,IAAM,YAAY,GAAG,UAAC,GAAW,IAAK,OAAA,6BAAW,CAAC,mBAAmB,CAAC,GAAG,CAAC,EAApC,CAAoC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"program":{"fileNames":["../../../../node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/typescript/lib/lib.dom.d.ts","../../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../teleport-types/dist/cjs/uidl.d.ts","../../../teleport-types/dist/cjs/generators.d.ts","../../../teleport-types/dist/cjs/errors.d.ts","../../../teleport-types/dist/cjs/vuidl.d.ts","../../../teleport-types/dist/cjs/index.d.ts","../../src/constants.ts","../../../../node_modules/@babel/types/lib/index.d.ts","../../../teleport-shared/dist/cjs/constants/index.d.ts","../../../teleport-shared/dist/cjs/utils/string-utils.d.ts","../../../teleport-shared/dist/cjs/utils/uidl-utils.d.ts","../../../teleport-shared/dist/cjs/index.d.ts","../../../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/style-sheet.ts","../../src/index.ts","../../../../node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/@types/node/globals.d.ts","../../../../node_modules/@types/node/async_hooks.d.ts","../../../../node_modules/@types/node/buffer.d.ts","../../../../node_modules/@types/node/child_process.d.ts","../../../../node_modules/@types/node/cluster.d.ts","../../../../node_modules/@types/node/console.d.ts","../../../../node_modules/@types/node/constants.d.ts","../../../../node_modules/@types/node/crypto.d.ts","../../../../node_modules/@types/node/dgram.d.ts","../../../../node_modules/@types/node/diagnostic_channel.d.ts","../../../../node_modules/@types/node/dns.d.ts","../../../../node_modules/@types/node/dns/promises.d.ts","../../../../node_modules/@types/node/domain.d.ts","../../../../node_modules/@types/node/events.d.ts","../../../../node_modules/@types/node/fs.d.ts","../../../../node_modules/@types/node/fs/promises.d.ts","../../../../node_modules/@types/node/http.d.ts","../../../../node_modules/@types/node/http2.d.ts","../../../../node_modules/@types/node/https.d.ts","../../../../node_modules/@types/node/inspector.d.ts","../../../../node_modules/@types/node/module.d.ts","../../../../node_modules/@types/node/net.d.ts","../../../../node_modules/@types/node/os.d.ts","../../../../node_modules/@types/node/path.d.ts","../../../../node_modules/@types/node/perf_hooks.d.ts","../../../../node_modules/@types/node/process.d.ts","../../../../node_modules/@types/node/punycode.d.ts","../../../../node_modules/@types/node/querystring.d.ts","../../../../node_modules/@types/node/readline.d.ts","../../../../node_modules/@types/node/repl.d.ts","../../../../node_modules/@types/node/stream.d.ts","../../../../node_modules/@types/node/stream/promises.d.ts","../../../../node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/@types/node/timers.d.ts","../../../../node_modules/@types/node/timers/promises.d.ts","../../../../node_modules/@types/node/tls.d.ts","../../../../node_modules/@types/node/trace_events.d.ts","../../../../node_modules/@types/node/tty.d.ts","../../../../node_modules/@types/node/url.d.ts","../../../../node_modules/@types/node/util.d.ts","../../../../node_modules/@types/node/util/types.d.ts","../../../../node_modules/@types/node/v8.d.ts","../../../../node_modules/@types/node/vm.d.ts","../../../../node_modules/@types/node/worker_threads.d.ts","../../../../node_modules/@types/node/zlib.d.ts","../../../../node_modules/@types/node/globals.global.d.ts","../../../../node_modules/@types/node/wasi.d.ts","../../../../node_modules/@types/node/ts3.6/base.d.ts","../../../../node_modules/@types/node/assert.d.ts","../../../../node_modules/@types/node/base.d.ts","../../../../node_modules/@types/node/index.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/cleanupSemantic.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/types.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/diffLines.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/printDiffs.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/index.d.ts","../../../../node_modules/@types/jest/node_modules/pretty-format/build/types.d.ts","../../../../node_modules/@types/jest/node_modules/pretty-format/build/index.d.ts","../../../../node_modules/@types/jest/index.d.ts","../../../../node_modules/@types/jest/ts3.2/index.d.ts"],"fileInfos":[{"version":"3ac1b83264055b28c0165688fda6dfcc39001e9e7828f649299101c23ad0a0c3","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06",{"version":"72704b10d97777e15f1a581b73f88273037ef752d2e50b72287bd0a90af64fe6","affectsGlobalScope":true},{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true},"42bf51402b690782aa9e6e437a2fb56a4de94c6f53fbb1728acff2dfd12df74a","ea413f16d37b1c222daffa48087c4b9ec79144baef2bc1cc1ddfdd7a3d4581c0","d49a625c30294f92976c954fffb2bcc2faeb81957148a363969ee742a43e2913","c4a042f3df0f5855fbd2ba352d7b0a581a478737b60f306fbb253dceaaa981d2","cd619820771edb23926bb084906215ab9c491255fa707488d15748b38909b747","7fe9bcb6812e04ba1b6680bd44720eefe2a1b6ca566758408f9b6fa04090cf82","2ff9995137f3e5d68971388ec58af0c79721626323884513f9f5e2e996ac1fdd","28b22326000119f53de35f67ce3096ef475a2224274162b1283ef8718e1efdb5","18aecf77d74ed15ae1e875a0d43f2aa85387794fc447b2bc3c8ab7e2224d0ac6","0dab32de48eb8cf6149f776ef25cae2e68580fb8a55419dba27f022381fdd87a","d2ff55204dd4868d11a163c207d4fbe8d99cbf8cb36fa90d2a2f0bfc802b4d38","b0900ff47d065c568038fc21d06685e58b7932750f22c49bb5cc4c18bdd35aa3","634d90459c22c0d82376bd48246b99b4a33fe56bc94c15874d1dac1e8a577d75","f735cc9f46bef33ef3c3e45308fbe6e5c9c1b917d6724d989c046bed3db5c3ed","cb33f5a5c73598b92f9aa13a0cf4d0df2dc38f05da11e4ad2fd8f0a735b3b09e","cd7c7f7b87c5e6ddb24a061393d5df9dbb0a926f3499e6f1a7f3d1da0ced3fcb","cf4ba36b05e7a6194696ffcace1710d29bb681b77a20b9b09460707ea3fcecd5","79fb51af7dc378dfaa66da7791d2c91560a151fa74da9f466d9fb60f5f9ccb39","c84d0840044a735055b7911998976dab071cde1ee160f551f2d845aea5630e2e","3465b9608c725b6a4c35b154f636011da24525a137d73976f1222c624cd9ce40","3594cd8018f215116e41c6f05c6fc9e6845a60c74753cdd1a9521d52f9ac0f2a","50ffd0c3b71cdca0f2c5004b39d876a494648c953079f07d257d679a7b95d40a","0772ec3b64f51bbe952d514e28b9aa3355a5322d1c242d93b3e67292dc7bae7c","4a8ad17ca903cd873c489c0851ba33b1cc96b24fc6a95cda488142628122ed06","b9e4af2328513bf11e1a296b5cc0a4fa4626019370537d542622a6c84f902f13","8d708033ce1c0070ee9a4fa550c3557ffb04f25f7d9d9901bf49022d9e548cb3","c7bdc99177a2a94d25fb13722adaaf5b3291bf70b4d1b27584ba189dd3889ba3",{"version":"d1c92b66c4105659fcad4eb76a1481f7311033e117d0678a1ec545e8ddb8d4c6","affectsGlobalScope":true},"e23424b97418eca3226fd24de079f1203eb70360622e4e093af2aff14d4be6ec","dee93c07b4df5e26010dc9ec4cdf4d6e4076bb4474d2a8371529217c8b2740a4","ed40f2f184db052dc8df62d1f199823c8bbccc487c0a2a7c54eeea0badcf4378","04eaa93bd75f937f9184dcb95a7983800c5770cf8ddd8ac0f3734dc02f5b20ef",{"version":"c8155caf28fc7b0a564156a5df28ad8a844a3bd32d331d148d8f3ce88025c870","affectsGlobalScope":true},"45ac321f2e15d268fd74a90ddaa6467dcaaff2c5b13f95b4b85831520fb7a491","dfc747ab8dd5f623055a4c26fd35e8cceca869fd3f1cf09701c941ca3679665a","c9f5f2920ff61d7158417b8440d5181ddc34a3dfef811a5677dd8a9fb91471e9","5cc0a492da3602510b8f5ed1852b1e0390002780d8758fbc8c0cd023ca7085f8","ec7dafafe751a5121f8f1c80201ebe7e7238c47e6329280a73c4d1ca4bb7fa28","64debeb10e4b7ae4ec9e89bfb4e04c6101ab98c3cc806d14e5488607cfec2753",{"version":"2866a528b2708aa272ec3eaafd3c980abb23aec1ef831cfc5eb2186b98c37ce5","affectsGlobalScope":true},{"version":"a5782d6cea81fe43d2db7ed41e789458c933ab3ab60602f7b5b14c4da3370496","affectsGlobalScope":true},"f258ba66915f0196ec344bc53afe1888240bbcc855ebd151b6cc072275533319","6194335ee3353f7226ba31f31d6301d0c6be87228419c0a08976ccd9d4f1213e","3ac12a54cfaa84683506db8d4cf779135a271d9f0ec18930cf53e61fbeea0c5d","cf3d3b087d1a8a3355eec47d206162c75e912315b9b5c1cd49fda93e948fb80a","36f316c066c4a72dd6f19fec49a074f935744fc9ccbe75c87ebc07fb2feb9062","42176966283d3835c34278b9b5c0f470d484c0c0c6a55c20a2c916a1ce69b6e8","0cff7901aedfe78e314f7d44088f07e2afa1b6e4f0473a4169b8456ca2fb245d","ec70fd6f8a9a83f850dab2960a6789e93d5b034b354a16814cad5daabf62a360","e2236264a811ed1d09a2487a433e8f5216ae62378cf233954ae220cf886f6717","3ec1e108d587a5661ec790db607f482605ba9f3830e118ce578e3ffa3c42e22b","100b3bb9d39d2b1b5340f1bf45a52e94ef1692b45232b4ba00fac5c3cc56d331",{"version":"04fe7e7d8008887943260af1fde2bfd4877e0dc57bf634e0f0b2f3d1794dfd11","affectsGlobalScope":true},"7f77304372efe3c9967e5f9ea2061f1b4bf41dc3cda3c83cdd676f2e5af6b7e6","992c6f6be16c0a1d2eec13ece33adeea2c747ba27fcd078353a8f4bb5b4fea58","2597718d91e306949d89e285bf34c44192014ef541c3bd7cbb825c022749e974","a6b0abdb67d63ebe964ba5fee31bc3daf10c12eecd46b24d778426010c04c67e","ac4801ebc2355ba32329070123b1cd15891bf71b41dcaf9e75b4744832126a59","fd2298fba0640e7295e7bd545e2dfbfcccbb00c27019e501c87965a02bbdebf6","4fd3c4debadce3e9ab9dec3eb45f7f5e2e3d4ad65cf975a6d938d883cfb25a50","71ddd49185b68f27bfac127ef5d22cb2672c278e53e5370d9020ef50ca9c377d","b1ea7a6eaa7608e0e0529aebd323b526a79c6c05a4e519ae5c779675004dcdf1","9fcb033a6208485d8f3fadde31eb5cbcaf99149cff3e40c0dc53ebc6d0dff4e9","7df562288f949945cf69c21cd912100c2afedeeb7cdb219085f7f4b46cb7dde4","9d16690485ff1eb4f6fc57aebe237728fd8e03130c460919da3a35f4d9bd97f5","dcc6910d95a3625fd2b0487fda055988e46ab46c357a1b3618c27b4a8dd739c9","f4149f1aa299474c7040a35fe8f8ac2ad078cc1b190415adc1fff3ed52d490ea","3730099ed008776216268a97771de31753ef71e0a7d0ec650f588cba2a06ce44","8d649dbc429d7139a1d9a14ea2bf8af1dc089e0a879447539587463d4b6c248c","60c9e27816ec8ac8df7240598bb086e95b47edfb454c5cbf4003c812e0ed6e39","e361aecf17fc4034b4c122a1564471cdcd22ef3a51407803cb5a5fc020c04d02","4926467de88a92a4fc9971d8c6f21b91eca1c0e7fc2a46cc4638ab9440c73875",{"version":"2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1","affectsGlobalScope":true},"fc0ae4a8ad3c762b96f9d2c3700cb879a373458cb0bf3175478e3b4f85f7ef2f","fabbec378e1ddd86fcf2662e716c2b8318acedb664ee3a4cba6f9e8ee8269cf1","b3593bd345ebea5e4d0a894c03251a3774b34df3d6db57075c18e089a599ba76","e61a21e9418f279bc480394a94d1581b2dee73747adcbdef999b6737e34d721b","efd55e8ca79171bf26c0d0e30221cb8ee1f5a31dd0c791ec4b2e886f42bab124","e222104af6cb9415238ad358488b74d76eceeff238c1268ec6e85655b05341da","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","eba230221317c985ab1953ccc3edc517f248b37db4fef7875cb2c8d08aff7be7","b83e796810e475da3564c6515bc0ae9577070596a33d89299b7d99f94ecfd921","b4439890c168d646357928431100daac5cbdee1d345a34e6bf6eca9f3abe22bc","5d72971a459517c44c1379dab9ed248e87a61ba0a1e0f25c9d67e1e640cd9a09","02d734976af36f4273d930bea88b3e62adf6b078cf120c1c63d49aa8d8427c5c",{"version":"f624e578325b8c58e55b30c998b1f4c3ec1b61a9fa66373da4250c89b7880d44","affectsGlobalScope":true},{"version":"d3002f620eab4bf6476c9da5c0efb2041d46f7df8b3032a5631bd206abef2c75","affectsGlobalScope":true}],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"module":1,"noImplicitAny":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","sourceMap":true,"target":1},"fileIdsList":[[111,113],[107,108],[107,108,109,110],[112],[114],[104],[103,104],[58,63],[69,70,77,86],[59,69,77],[95],[63,70,78],[86,91],[66,69,77],[67],[66],[69],[69,71,86,94],[69,70,86],[77,86,94],[69,70,72,77,86,91,94],[72,86,91,94],[105],[94],[66,69,86],[79],[57],[93],[84,95,98],[69,87],[86],[89],[63,77],[55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102],[77],[83],[96],[58,63,69,71,80,86,94,98],[33,35],[33],[33,35,41],[40,41,42,43,44,45,46,47,48,49,50],[33,47],[33,35,49],[33,34,35,39,51,52,53],[33,34,35,39,52],[33,35,39],[36,37,38],[29],[29,30,31,32]],"referencedMap":[[114,1],[109,2],[111,3],[110,2],[113,4],[115,5],[55,6],[105,7],[58,8],[59,9],[60,10],[61,11],[62,12],[63,13],[64,14],[66,15],[67,16],[68,17],[69,17],[70,18],[71,19],[72,20],[73,21],[74,22],[106,23],[75,17],[76,24],[77,25],[79,26],[80,27],[81,28],[84,17],[85,29],[86,30],[87,31],[89,17],[90,32],[91,33],[103,34],[93,35],[94,36],[95,37],[97,31],[99,38],[100,31],[40,39],[43,40],[42,41],[51,42],[48,43],[47,40],[50,44],[49,39],[44,41],[46,40],[45,40],[34,40],[54,45],[53,46],[52,47],[36,40],[39,48],[38,40],[30,49],[33,50],[32,49]],"exportedModulesMap":[[114,1],[109,2],[111,3],[110,2],[113,4],[115,5],[55,6],[105,7],[58,8],[59,9],[60,10],[61,11],[62,12],[63,13],[64,14],[66,15],[67,16],[68,17],[69,17],[70,18],[71,19],[72,20],[73,21],[74,22],[106,23],[75,17],[76,24],[77,25],[79,26],[80,27],[81,28],[84,17],[85,29],[86,30],[87,31],[89,17],[90,32],[91,33],[103,34],[93,35],[94,36],[95,37],[97,31],[99,38],[100,31],[40,39],[43,40],[42,41],[51,42],[48,43],[47,40],[50,44],[49,39],[44,41],[46,40],[45,40],[34,40],[54,45],[53,46],[52,47],[36,40],[39,48],[38,40],[30,49],[33,50],[32,49]],"semanticDiagnosticsPerFile":[35,114,107,109,111,110,108,113,112,115,104,55,57,105,58,59,60,61,62,63,64,65,66,67,68,69,70,71,56,101,72,73,74,106,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,103,93,94,95,96,97,98,102,99,100,6,8,7,2,9,10,11,12,13,14,15,16,3,4,20,17,18,19,21,22,23,5,24,25,26,27,1,28,40,43,42,51,48,47,50,49,44,46,41,45,34,54,53,52,36,39,37,38,31,30,33,29,32]},"version":"4.6.2"}
|
|
1
|
+
{"program":{"fileNames":["../../../../node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/typescript/lib/lib.dom.d.ts","../../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../teleport-types/dist/cjs/uidl.d.ts","../../../teleport-types/dist/cjs/generators.d.ts","../../../teleport-types/dist/cjs/errors.d.ts","../../../teleport-types/dist/cjs/vuidl.d.ts","../../../teleport-types/dist/cjs/index.d.ts","../../src/constants.ts","../../../../node_modules/@babel/types/lib/index.d.ts","../../../teleport-shared/dist/cjs/constants/index.d.ts","../../../teleport-shared/dist/cjs/utils/string-utils.d.ts","../../../teleport-shared/dist/cjs/utils/uidl-utils.d.ts","../../../teleport-shared/dist/cjs/index.d.ts","../../../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/style-sheet.ts","../../src/index.ts","../../../../node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/@types/node/globals.d.ts","../../../../node_modules/@types/node/async_hooks.d.ts","../../../../node_modules/@types/node/buffer.d.ts","../../../../node_modules/@types/node/child_process.d.ts","../../../../node_modules/@types/node/cluster.d.ts","../../../../node_modules/@types/node/console.d.ts","../../../../node_modules/@types/node/constants.d.ts","../../../../node_modules/@types/node/crypto.d.ts","../../../../node_modules/@types/node/dgram.d.ts","../../../../node_modules/@types/node/diagnostic_channel.d.ts","../../../../node_modules/@types/node/dns.d.ts","../../../../node_modules/@types/node/dns/promises.d.ts","../../../../node_modules/@types/node/domain.d.ts","../../../../node_modules/@types/node/events.d.ts","../../../../node_modules/@types/node/fs.d.ts","../../../../node_modules/@types/node/fs/promises.d.ts","../../../../node_modules/@types/node/http.d.ts","../../../../node_modules/@types/node/http2.d.ts","../../../../node_modules/@types/node/https.d.ts","../../../../node_modules/@types/node/inspector.d.ts","../../../../node_modules/@types/node/module.d.ts","../../../../node_modules/@types/node/net.d.ts","../../../../node_modules/@types/node/os.d.ts","../../../../node_modules/@types/node/path.d.ts","../../../../node_modules/@types/node/perf_hooks.d.ts","../../../../node_modules/@types/node/process.d.ts","../../../../node_modules/@types/node/punycode.d.ts","../../../../node_modules/@types/node/querystring.d.ts","../../../../node_modules/@types/node/readline.d.ts","../../../../node_modules/@types/node/repl.d.ts","../../../../node_modules/@types/node/stream.d.ts","../../../../node_modules/@types/node/stream/promises.d.ts","../../../../node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/@types/node/timers.d.ts","../../../../node_modules/@types/node/timers/promises.d.ts","../../../../node_modules/@types/node/tls.d.ts","../../../../node_modules/@types/node/trace_events.d.ts","../../../../node_modules/@types/node/tty.d.ts","../../../../node_modules/@types/node/url.d.ts","../../../../node_modules/@types/node/util.d.ts","../../../../node_modules/@types/node/util/types.d.ts","../../../../node_modules/@types/node/v8.d.ts","../../../../node_modules/@types/node/vm.d.ts","../../../../node_modules/@types/node/worker_threads.d.ts","../../../../node_modules/@types/node/zlib.d.ts","../../../../node_modules/@types/node/globals.global.d.ts","../../../../node_modules/@types/node/wasi.d.ts","../../../../node_modules/@types/node/ts3.6/base.d.ts","../../../../node_modules/@types/node/assert.d.ts","../../../../node_modules/@types/node/base.d.ts","../../../../node_modules/@types/node/index.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/cleanupSemantic.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/types.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/diffLines.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/printDiffs.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/index.d.ts","../../../../node_modules/@types/jest/node_modules/pretty-format/build/types.d.ts","../../../../node_modules/@types/jest/node_modules/pretty-format/build/index.d.ts","../../../../node_modules/@types/jest/index.d.ts","../../../../node_modules/@types/jest/ts3.2/index.d.ts"],"fileInfos":[{"version":"3ac1b83264055b28c0165688fda6dfcc39001e9e7828f649299101c23ad0a0c3","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06",{"version":"72704b10d97777e15f1a581b73f88273037ef752d2e50b72287bd0a90af64fe6","affectsGlobalScope":true},{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true},"d58cb8e3308641cdc84644105bd3d594045b356af29fd10d5a74f42c1a8396ad","18d176af12d389165c4ce64a4f3c365448f1a1beaccbef9a05793992160c89f4","d49a625c30294f92976c954fffb2bcc2faeb81957148a363969ee742a43e2913","c4a042f3df0f5855fbd2ba352d7b0a581a478737b60f306fbb253dceaaa981d2","cd619820771edb23926bb084906215ab9c491255fa707488d15748b38909b747","7fe9bcb6812e04ba1b6680bd44720eefe2a1b6ca566758408f9b6fa04090cf82","2ff9995137f3e5d68971388ec58af0c79721626323884513f9f5e2e996ac1fdd","28b22326000119f53de35f67ce3096ef475a2224274162b1283ef8718e1efdb5","18aecf77d74ed15ae1e875a0d43f2aa85387794fc447b2bc3c8ab7e2224d0ac6","0dab32de48eb8cf6149f776ef25cae2e68580fb8a55419dba27f022381fdd87a","d2ff55204dd4868d11a163c207d4fbe8d99cbf8cb36fa90d2a2f0bfc802b4d38","b0900ff47d065c568038fc21d06685e58b7932750f22c49bb5cc4c18bdd35aa3","634d90459c22c0d82376bd48246b99b4a33fe56bc94c15874d1dac1e8a577d75","b179b68aed28f107ab90bc0b15cecee4388c612203e5b848df805c8dae3e3071","cb33f5a5c73598b92f9aa13a0cf4d0df2dc38f05da11e4ad2fd8f0a735b3b09e","cd7c7f7b87c5e6ddb24a061393d5df9dbb0a926f3499e6f1a7f3d1da0ced3fcb","cf4ba36b05e7a6194696ffcace1710d29bb681b77a20b9b09460707ea3fcecd5","79fb51af7dc378dfaa66da7791d2c91560a151fa74da9f466d9fb60f5f9ccb39","c84d0840044a735055b7911998976dab071cde1ee160f551f2d845aea5630e2e","3465b9608c725b6a4c35b154f636011da24525a137d73976f1222c624cd9ce40","3594cd8018f215116e41c6f05c6fc9e6845a60c74753cdd1a9521d52f9ac0f2a","50ffd0c3b71cdca0f2c5004b39d876a494648c953079f07d257d679a7b95d40a","0772ec3b64f51bbe952d514e28b9aa3355a5322d1c242d93b3e67292dc7bae7c","699d442d5211a3520e82c9e06993c0b2ed538ab460dd99c0618ac435f08d8661","b9e4af2328513bf11e1a296b5cc0a4fa4626019370537d542622a6c84f902f13","2e799783d8968be8fd3fa7859ecc5e565f213fcfceaf4d8c8df63a9e04dc3601","c7bdc99177a2a94d25fb13722adaaf5b3291bf70b4d1b27584ba189dd3889ba3",{"version":"d1c92b66c4105659fcad4eb76a1481f7311033e117d0678a1ec545e8ddb8d4c6","affectsGlobalScope":true},"e23424b97418eca3226fd24de079f1203eb70360622e4e093af2aff14d4be6ec","dee93c07b4df5e26010dc9ec4cdf4d6e4076bb4474d2a8371529217c8b2740a4","ed40f2f184db052dc8df62d1f199823c8bbccc487c0a2a7c54eeea0badcf4378","04eaa93bd75f937f9184dcb95a7983800c5770cf8ddd8ac0f3734dc02f5b20ef",{"version":"c8155caf28fc7b0a564156a5df28ad8a844a3bd32d331d148d8f3ce88025c870","affectsGlobalScope":true},"45ac321f2e15d268fd74a90ddaa6467dcaaff2c5b13f95b4b85831520fb7a491","dfc747ab8dd5f623055a4c26fd35e8cceca869fd3f1cf09701c941ca3679665a","c9f5f2920ff61d7158417b8440d5181ddc34a3dfef811a5677dd8a9fb91471e9","5cc0a492da3602510b8f5ed1852b1e0390002780d8758fbc8c0cd023ca7085f8","ec7dafafe751a5121f8f1c80201ebe7e7238c47e6329280a73c4d1ca4bb7fa28","64debeb10e4b7ae4ec9e89bfb4e04c6101ab98c3cc806d14e5488607cfec2753",{"version":"2866a528b2708aa272ec3eaafd3c980abb23aec1ef831cfc5eb2186b98c37ce5","affectsGlobalScope":true},{"version":"a5782d6cea81fe43d2db7ed41e789458c933ab3ab60602f7b5b14c4da3370496","affectsGlobalScope":true},"f258ba66915f0196ec344bc53afe1888240bbcc855ebd151b6cc072275533319","6194335ee3353f7226ba31f31d6301d0c6be87228419c0a08976ccd9d4f1213e","3ac12a54cfaa84683506db8d4cf779135a271d9f0ec18930cf53e61fbeea0c5d","cf3d3b087d1a8a3355eec47d206162c75e912315b9b5c1cd49fda93e948fb80a","36f316c066c4a72dd6f19fec49a074f935744fc9ccbe75c87ebc07fb2feb9062","42176966283d3835c34278b9b5c0f470d484c0c0c6a55c20a2c916a1ce69b6e8","0cff7901aedfe78e314f7d44088f07e2afa1b6e4f0473a4169b8456ca2fb245d","ec70fd6f8a9a83f850dab2960a6789e93d5b034b354a16814cad5daabf62a360","e2236264a811ed1d09a2487a433e8f5216ae62378cf233954ae220cf886f6717","3ec1e108d587a5661ec790db607f482605ba9f3830e118ce578e3ffa3c42e22b","100b3bb9d39d2b1b5340f1bf45a52e94ef1692b45232b4ba00fac5c3cc56d331",{"version":"04fe7e7d8008887943260af1fde2bfd4877e0dc57bf634e0f0b2f3d1794dfd11","affectsGlobalScope":true},"7f77304372efe3c9967e5f9ea2061f1b4bf41dc3cda3c83cdd676f2e5af6b7e6","992c6f6be16c0a1d2eec13ece33adeea2c747ba27fcd078353a8f4bb5b4fea58","2597718d91e306949d89e285bf34c44192014ef541c3bd7cbb825c022749e974","a6b0abdb67d63ebe964ba5fee31bc3daf10c12eecd46b24d778426010c04c67e","ac4801ebc2355ba32329070123b1cd15891bf71b41dcaf9e75b4744832126a59","fd2298fba0640e7295e7bd545e2dfbfcccbb00c27019e501c87965a02bbdebf6","4fd3c4debadce3e9ab9dec3eb45f7f5e2e3d4ad65cf975a6d938d883cfb25a50","71ddd49185b68f27bfac127ef5d22cb2672c278e53e5370d9020ef50ca9c377d","b1ea7a6eaa7608e0e0529aebd323b526a79c6c05a4e519ae5c779675004dcdf1","9fcb033a6208485d8f3fadde31eb5cbcaf99149cff3e40c0dc53ebc6d0dff4e9","7df562288f949945cf69c21cd912100c2afedeeb7cdb219085f7f4b46cb7dde4","9d16690485ff1eb4f6fc57aebe237728fd8e03130c460919da3a35f4d9bd97f5","dcc6910d95a3625fd2b0487fda055988e46ab46c357a1b3618c27b4a8dd739c9","f4149f1aa299474c7040a35fe8f8ac2ad078cc1b190415adc1fff3ed52d490ea","3730099ed008776216268a97771de31753ef71e0a7d0ec650f588cba2a06ce44","8d649dbc429d7139a1d9a14ea2bf8af1dc089e0a879447539587463d4b6c248c","60c9e27816ec8ac8df7240598bb086e95b47edfb454c5cbf4003c812e0ed6e39","e361aecf17fc4034b4c122a1564471cdcd22ef3a51407803cb5a5fc020c04d02","4926467de88a92a4fc9971d8c6f21b91eca1c0e7fc2a46cc4638ab9440c73875",{"version":"2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1","affectsGlobalScope":true},"fc0ae4a8ad3c762b96f9d2c3700cb879a373458cb0bf3175478e3b4f85f7ef2f","fabbec378e1ddd86fcf2662e716c2b8318acedb664ee3a4cba6f9e8ee8269cf1","b3593bd345ebea5e4d0a894c03251a3774b34df3d6db57075c18e089a599ba76","e61a21e9418f279bc480394a94d1581b2dee73747adcbdef999b6737e34d721b","efd55e8ca79171bf26c0d0e30221cb8ee1f5a31dd0c791ec4b2e886f42bab124","e222104af6cb9415238ad358488b74d76eceeff238c1268ec6e85655b05341da","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","eba230221317c985ab1953ccc3edc517f248b37db4fef7875cb2c8d08aff7be7","b83e796810e475da3564c6515bc0ae9577070596a33d89299b7d99f94ecfd921","b4439890c168d646357928431100daac5cbdee1d345a34e6bf6eca9f3abe22bc","5d72971a459517c44c1379dab9ed248e87a61ba0a1e0f25c9d67e1e640cd9a09","02d734976af36f4273d930bea88b3e62adf6b078cf120c1c63d49aa8d8427c5c",{"version":"f624e578325b8c58e55b30c998b1f4c3ec1b61a9fa66373da4250c89b7880d44","affectsGlobalScope":true},{"version":"d3002f620eab4bf6476c9da5c0efb2041d46f7df8b3032a5631bd206abef2c75","affectsGlobalScope":true}],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"module":1,"noImplicitAny":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","sourceMap":true,"target":1},"fileIdsList":[[111,113],[107,108],[107,108,109,110],[112],[114],[104],[103,104],[58,63],[69,70,77,86],[59,69,77],[95],[63,70,78],[86,91],[66,69,77],[67],[66],[69],[69,71,86,94],[69,70,86],[77,86,94],[69,70,72,77,86,91,94],[72,86,91,94],[105],[94],[66,69,86],[79],[57],[93],[84,95,98],[69,87],[86],[89],[63,77],[55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102],[77],[83],[96],[58,63,69,71,80,86,94,98],[33,35],[33],[33,35,41],[40,41,42,43,44,45,46,47,48,49,50],[33,47],[33,35,49],[33,34,35,39,51,52,53],[33,34,35,39,52],[33,34,35,39],[36,37,38],[29],[29,30,31,32]],"referencedMap":[[114,1],[109,2],[111,3],[110,2],[113,4],[115,5],[55,6],[105,7],[58,8],[59,9],[60,10],[61,11],[62,12],[63,13],[64,14],[66,15],[67,16],[68,17],[69,17],[70,18],[71,19],[72,20],[73,21],[74,22],[106,23],[75,17],[76,24],[77,25],[79,26],[80,27],[81,28],[84,17],[85,29],[86,30],[87,31],[89,17],[90,32],[91,33],[103,34],[93,35],[94,36],[95,37],[97,31],[99,38],[100,31],[40,39],[43,40],[42,41],[51,42],[48,43],[47,40],[50,44],[49,39],[44,41],[46,40],[45,40],[34,40],[54,45],[53,46],[52,47],[36,40],[39,48],[38,40],[30,49],[33,50],[32,49]],"exportedModulesMap":[[114,1],[109,2],[111,3],[110,2],[113,4],[115,5],[55,6],[105,7],[58,8],[59,9],[60,10],[61,11],[62,12],[63,13],[64,14],[66,15],[67,16],[68,17],[69,17],[70,18],[71,19],[72,20],[73,21],[74,22],[106,23],[75,17],[76,24],[77,25],[79,26],[80,27],[81,28],[84,17],[85,29],[86,30],[87,31],[89,17],[90,32],[91,33],[103,34],[93,35],[94,36],[95,37],[97,31],[99,38],[100,31],[40,39],[43,40],[42,41],[51,42],[48,43],[47,40],[50,44],[49,39],[44,41],[46,40],[45,40],[34,40],[54,45],[53,46],[52,47],[36,40],[39,48],[38,40],[30,49],[33,50],[32,49]],"semanticDiagnosticsPerFile":[35,114,107,109,111,110,108,113,112,115,104,55,57,105,58,59,60,61,62,63,64,65,66,67,68,69,70,71,56,101,72,73,74,106,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,103,93,94,95,96,97,98,102,99,100,6,8,7,2,9,10,11,12,13,14,15,16,3,4,20,17,18,19,21,22,23,5,24,25,26,27,1,28,40,43,42,51,48,47,50,49,44,46,41,45,34,54,53,52,36,39,37,38,31,30,33,29,32]},"version":"4.6.2"}
|
package/dist/cjs/utils.js
CHANGED
|
@@ -38,6 +38,7 @@ exports.generateVariantsfromStyleSet = exports.generateStyledComponentStyles = e
|
|
|
38
38
|
var types = __importStar(require("@babel/types"));
|
|
39
39
|
var teleport_shared_1 = require("@teleporthq/teleport-shared");
|
|
40
40
|
var teleport_types_1 = require("@teleporthq/teleport-types");
|
|
41
|
+
var constants_1 = require("./constants");
|
|
41
42
|
var generateStyledComponent = function (params) {
|
|
42
43
|
var name = params.name, elementType = params.elementType, styles = params.styles, propsReferred = params.propsReferred, componentStyleReferences = params.componentStyleReferences, projectStyleReferences = params.projectStyleReferences;
|
|
43
44
|
var styleExpressions = styles;
|
|
@@ -45,14 +46,20 @@ var generateStyledComponent = function (params) {
|
|
|
45
46
|
if (propsReferred.size > 0) {
|
|
46
47
|
styleExpressions = types.arrowFunctionExpression([types.identifier('props')], styles);
|
|
47
48
|
}
|
|
48
|
-
if (projectStyleReferences.size > 0) {
|
|
49
|
-
expressionArguments.push.apply(expressionArguments, Array.from(projectStyleReferences).map(function (ref) { return types.identifier(ref); }));
|
|
50
|
-
}
|
|
51
49
|
if (styles && styles.properties.length > 0) {
|
|
52
50
|
expressionArguments.push(styleExpressions);
|
|
53
51
|
}
|
|
54
52
|
if (componentStyleReferences.size > 0) {
|
|
55
|
-
|
|
53
|
+
var isOverride = Array.from(componentStyleReferences).some(function (ref) { return ref === 'reusable-component-style-override'; });
|
|
54
|
+
if (isOverride) {
|
|
55
|
+
expressionArguments.push(types.identifier(constants_1.componentVariantPropPrefix));
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
expressionArguments.unshift(types.identifier(constants_1.componentVariantPropPrefix));
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
if (projectStyleReferences.size > 0) {
|
|
62
|
+
expressionArguments.unshift.apply(expressionArguments, Array.from(projectStyleReferences).map(function (ref) { return types.identifier(ref); }));
|
|
56
63
|
}
|
|
57
64
|
return types.variableDeclaration('const', [
|
|
58
65
|
types.variableDeclarator(types.identifier(name), types.callExpression(types.callExpression(types.identifier('styled'), [types.stringLiteral(elementType)]), expressionArguments)),
|
|
@@ -109,7 +116,7 @@ var generateVariantsfromStyleSet = function (styleSets, variantPropPrefix, varia
|
|
|
109
116
|
var variantExpressions = types.objectExpression(Object.keys(styleSets).reduce(function (acc, styleId) {
|
|
110
117
|
var style = styleSets[styleId];
|
|
111
118
|
var _a = style.content, content = _a === void 0 ? {} : _a, _b = style.conditions, conditions = _b === void 0 ? [] : _b;
|
|
112
|
-
var property = types.objectProperty(types.stringLiteral(styleId), (0, exports.generateStyledComponentStyles)(__assign({ styles: content }, (tokensReferred && { tokensReferred: tokensReferred }))));
|
|
119
|
+
var property = types.objectProperty(types.stringLiteral(teleport_shared_1.StringUtils.dashCaseToCamelCase(styleId)), (0, exports.generateStyledComponentStyles)(__assign({ styles: content }, (tokensReferred && { tokensReferred: tokensReferred }))));
|
|
113
120
|
conditions.forEach(function (cond) {
|
|
114
121
|
var mediaProperty = types.objectProperty(cond.type === 'screen-size'
|
|
115
122
|
? types.stringLiteral("@media(max-width: ".concat(cond.meta.maxWidth, "px)"))
|
package/dist/cjs/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAqC;AACrC,+DAAyD;AACzD,6DAKmC;
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAqC;AACrC,+DAAyD;AACzD,6DAKmC;AACnC,yCAAwD;AAEjD,IAAM,uBAAuB,GAAG,UAAC,MAOvC;IAEG,IAAA,IAAI,GAMF,MAAM,KANJ,EACJ,WAAW,GAKT,MAAM,YALG,EACX,MAAM,GAIJ,MAAM,OAJF,EACN,aAAa,GAGX,MAAM,cAHK,EACb,wBAAwB,GAEtB,MAAM,yBAFgB,EACxB,sBAAsB,GACpB,MAAM,uBADc,CACd;IACV,IAAI,gBAAgB,GAA2D,MAAM,CAAA;IACrF,IAAM,mBAAmB,GAErB,EAAE,CAAA;IAEN,IAAI,aAAa,CAAC,IAAI,GAAG,CAAC,EAAE;QAC1B,gBAAgB,GAAG,KAAK,CAAC,uBAAuB,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,EAAE,MAAM,CAAC,CAAA;KACtF;IAED,IAAI,MAAM,IAAI,MAAM,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE;QAC1C,mBAAmB,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAA;KAC3C;IAED,IAAI,wBAAwB,CAAC,IAAI,GAAG,CAAC,EAAE;QACrC,IAAM,UAA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AE,CAAC,EAC/C,IAAA,qCAA6B,aAC3B,MAAM,EAAE,IAAI,CAAC,OAAO,IACjB,CAAC,cAAc,IAAI,EAAE,cAAc,gBAAA,EAAE,CAAC,EACzC,CACH,CAAA;YAED,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,kBAAkB,EAAE;gBAC9C,QAAQ,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA;aAC9C;QACH,CAAC,CAAC,CAAA;QAEF,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;QAClB,OAAO,GAAG,CAAA;IACZ,CAAC,EAAE,EAAE,CAAC,CACP,CAAA;IAED,OAAO,KAAK,CAAC,mBAAmB,CAAC,OAAO,EAAE;QACxC,KAAK,CAAC,kBAAkB,CACtB,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,EACnC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE;YAChD,KAAK,CAAC,gBAAgB,CAAC;gBACrB,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,cAAc,CAAC,CAAC;gBACnF,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,kBAAkB,CAAC;aACvE,CAAC;SACH,CAAC,CACH;KACF,CAAC,CAAA;AACJ,CAAC,CAAA;AAnDY,QAAA,4BAA4B,gCAmDxC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -48,17 +48,17 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
48
48
|
import * as types from '@babel/types';
|
|
49
49
|
import { ChunkType, FileType, PluginStyledComponent, } from '@teleporthq/teleport-types';
|
|
50
50
|
import { UIDLUtils, StringUtils } from '@teleporthq/teleport-shared';
|
|
51
|
-
import { ASTUtils } from '@teleporthq/teleport-plugin-common';
|
|
51
|
+
import { ASTUtils, StyleBuilders } from '@teleporthq/teleport-plugin-common';
|
|
52
52
|
import { generateStyledComponent, removeUnusedDependencies, generateVariantsfromStyleSet, generateStyledComponentStyles, } from './utils';
|
|
53
53
|
import { createStyleSheetPlugin } from './style-sheet';
|
|
54
54
|
import { componentVariantPropKey, componentVariantPropPrefix, projectVariantPropKey, projectVariantPropPrefix, VARIANT_DEPENDENCY, } from './constants';
|
|
55
55
|
export var createReactStyledComponentsPlugin = function (config) {
|
|
56
56
|
var _a = config || {}, _b = _a.componentChunkName, componentChunkName = _b === void 0 ? 'jsx-component' : _b, _c = _a.importChunkName, importChunkName = _c === void 0 ? 'import-local' : _c, _d = _a.componentLibrary, componentLibrary = _d === void 0 ? 'react' : _d, _e = _a.illegalComponentNames, illegalComponentNames = _e === void 0 ? [] : _e;
|
|
57
57
|
var reactStyledComponentsPlugin = function (structure) { return __awaiter(void 0, void 0, void 0, function () {
|
|
58
|
-
var uidl, chunks, dependencies, options, node, name, _a, componentStyleSheet, projectStyleSet, componentChunk, jsxNodesLookup, propsPrefix, cssMap, tokensReferred, variants;
|
|
59
|
-
return __generator(this, function (
|
|
58
|
+
var uidl, chunks, dependencies, options, node, name, _a, componentStyleSheet, _b, propDefinitions, projectStyleSet, componentChunk, jsxNodesLookup, propsPrefix, cssMap, tokensReferred, variants;
|
|
59
|
+
return __generator(this, function (_c) {
|
|
60
60
|
uidl = structure.uidl, chunks = structure.chunks, dependencies = structure.dependencies, options = structure.options;
|
|
61
|
-
node = uidl.node, name = uidl.name, _a = uidl.styleSetDefinitions, componentStyleSheet = _a === void 0 ? {} : _a;
|
|
61
|
+
node = uidl.node, name = uidl.name, _a = uidl.styleSetDefinitions, componentStyleSheet = _a === void 0 ? {} : _a, _b = uidl.propDefinitions, propDefinitions = _b === void 0 ? {} : _b;
|
|
62
62
|
projectStyleSet = options.projectStyleSet;
|
|
63
63
|
componentChunk = chunks.find(function (chunk) { return chunk.name === componentChunkName; });
|
|
64
64
|
if (!componentChunk) {
|
|
@@ -81,12 +81,20 @@ export var createReactStyledComponentsPlugin = function (config) {
|
|
|
81
81
|
}
|
|
82
82
|
UIDLUtils.traverseElements(node, function (element) {
|
|
83
83
|
var _a;
|
|
84
|
-
var
|
|
85
|
-
var key = element.key, elementType = element.elementType, _c = element.referencedStyles, referencedStyles = _c === void 0 ? {} : _c;
|
|
84
|
+
var key = element.key, elementType = element.elementType, referencedStyles = element.referencedStyles, dependency = element.dependency, style = element.style, _b = element.attrs, attrs = _b === void 0 ? {} : _b;
|
|
86
85
|
var propsReferred = new Set();
|
|
87
86
|
var componentStyleReferences = new Set();
|
|
88
87
|
var projectStyleReferences = new Set();
|
|
89
|
-
if (
|
|
88
|
+
if ((dependency === null || dependency === void 0 ? void 0 : dependency.type) === 'local') {
|
|
89
|
+
StyleBuilders.setPropValueForCompStyle({
|
|
90
|
+
attrs: attrs,
|
|
91
|
+
key: key,
|
|
92
|
+
jsxNodesLookup: jsxNodesLookup,
|
|
93
|
+
getClassName: getClassName,
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
if (Object.keys(style || {}).length === 0 &&
|
|
97
|
+
Object.keys(referencedStyles || {}).length === 0) {
|
|
90
98
|
return;
|
|
91
99
|
}
|
|
92
100
|
var root = jsxNodesLookup[key];
|
|
@@ -170,12 +178,28 @@ export var createReactStyledComponentsPlugin = function (config) {
|
|
|
170
178
|
}
|
|
171
179
|
if (styleRef.content.content.type === 'dynamic' &&
|
|
172
180
|
styleRef.content.content.content.referenceType === 'comp') {
|
|
173
|
-
|
|
174
|
-
|
|
181
|
+
var usedCompStyle = componentStyleSheet[styleRef.content.content.content.id];
|
|
182
|
+
if (!usedCompStyle) {
|
|
183
|
+
throw new Error("".concat(styleRef.content.content.content.id, " is missing from props"));
|
|
184
|
+
}
|
|
185
|
+
componentStyleReferences.add(usedCompStyle.type);
|
|
186
|
+
ASTUtils.addAttributeToJSXTag(root, componentVariantPropKey, getClassName(styleRef.content.content.content.id));
|
|
175
187
|
}
|
|
176
188
|
if (styleRef.content.content.type === 'dynamic' &&
|
|
177
189
|
styleRef.content.content.content.referenceType === 'prop') {
|
|
178
|
-
|
|
190
|
+
var prop = propDefinitions[styleRef.content.content.content.id];
|
|
191
|
+
if (prop === null || prop === void 0 ? void 0 : prop.defaultValue) {
|
|
192
|
+
var usedCompStyle = componentStyleSheet[String(prop.defaultValue)];
|
|
193
|
+
componentStyleReferences.add(usedCompStyle.type);
|
|
194
|
+
/*
|
|
195
|
+
Changing the default value of the prop.
|
|
196
|
+
When forceScoping is enabled the classnames change. So, we need to change the default prop too.
|
|
197
|
+
*/
|
|
198
|
+
propDefinitions[styleRef.content.content.content.id].defaultValue = getClassName(String(prop.defaultValue));
|
|
199
|
+
}
|
|
200
|
+
else {
|
|
201
|
+
componentStyleReferences.add(componentVariantPropPrefix);
|
|
202
|
+
}
|
|
179
203
|
ASTUtils.addDynamicAttributeToJSXTag(root, componentVariantPropKey, "".concat(propsPrefix, ".").concat(styleRef.content.content.content.id));
|
|
180
204
|
}
|
|
181
205
|
return;
|
|
@@ -197,7 +221,7 @@ export var createReactStyledComponentsPlugin = function (config) {
|
|
|
197
221
|
},
|
|
198
222
|
};
|
|
199
223
|
projectStyleReferences.add(projectVariantPropPrefix);
|
|
200
|
-
ASTUtils.addAttributeToJSXTag(root, projectVariantPropKey, content.referenceId);
|
|
224
|
+
ASTUtils.addAttributeToJSXTag(root, projectVariantPropKey, getClassName(content.referenceId));
|
|
201
225
|
return;
|
|
202
226
|
}
|
|
203
227
|
default: {
|
|
@@ -255,4 +279,5 @@ export var createReactStyledComponentsPlugin = function (config) {
|
|
|
255
279
|
};
|
|
256
280
|
export { createStyleSheetPlugin };
|
|
257
281
|
export default createReactStyledComponentsPlugin();
|
|
282
|
+
var getClassName = function (str) { return StringUtils.dashCaseToCamelCase(str); };
|
|
258
283
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AACrC,OAAO,EAGL,SAAS,EACT,QAAQ,EACR,qBAAqB,GACtB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AACrC,OAAO,EAGL,SAAS,EACT,QAAQ,EACR,qBAAqB,GACtB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AACpE,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAA;AAC5E,OAAO,EACL,uBAAuB,EACvB,wBAAwB,EACxB,4BAA4B,EAC5B,6BAA6B,GAC9B,MAAM,SAAS,CAAA;AAChB,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAA;AACtD,OAAO,EACL,uBAAuB,EACvB,0BAA0B,EAC1B,qBAAqB,EACrB,wBAAwB,EACxB,kBAAkB,GACnB,MAAM,aAAa,CAAA;AAUpB,MAAM,CAAC,IAAM,iCAAiC,GAAmD,UAC/F,MAAM;IAEA,IAAA,KAKF,MAAM,IAAI,EAAE,EAJd,0BAAoC,EAApC,kBAAkB,mBAAG,eAAe,KAAA,EACpC,uBAAgC,EAAhC,eAAe,mBAAG,cAAc,KAAA,EAChC,wBAA0B,EAA1B,gBAAgB,mBAAG,OAAO,KAAA,EAC1B,6BAA0B,EAA1B,qBAAqB,mBAAG,EAAE,KACZ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;YAEF,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE;gBACpC,sBAAO,SAAS,EAAA;aACjB;YAED,IAAI,cAAc,CAAC,IAAI,GAAG,CAAC,EAAE;gBAC3B,YAAY,CAAC,MAAM,GAAG;oBACpB,IAAI,EAAE,OAAO;oBACb,IAAI,EAAE,UAAG,eAAe,CAAC,IAAI,SAAG,eAAe,CAAC,QAAQ,CAAE;oBAC1D,IAAI,EAAE;wBACJ,WAAW,EAAE,IAAI;qBAClB;iBACF,CAAA;aACF;YAED,YAAY,CAAC,MAAM,GAAG;gBACpB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,gBAAgB,KAAK,OAAO,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,0BAA0B;gBACrF,OAAO,EAAE,QAAQ;aAClB,CAAA;YAED;gEACoD;YAEpD,IAAI,gBAAgB,KAAK,aAAa,EAAE;gBACtC,wBAAwB,CAAC,YAAY,EAAE,cAAc,CAAC,CAAA;aACvD;YAED,sBAAO,SAAS,EAAA;;SACjB,CAAA;IAED,OAAO,2BAA2B,CAAA;AACpC,CAAC,CAAA;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAA;AAEjC,eAAe,iCAAiC,EAAE,CAAA;AAElD,IAAM,YAAY,GAAG,UAAC,GAAW,IAAK,OAAA,WAAW,CAAC,mBAAmB,CAAC,GAAG,CAAC,EAApC,CAAoC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"program":{"fileNames":["../../../../node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/typescript/lib/lib.dom.d.ts","../../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../teleport-types/dist/cjs/uidl.d.ts","../../../teleport-types/dist/cjs/generators.d.ts","../../../teleport-types/dist/cjs/errors.d.ts","../../../teleport-types/dist/cjs/vuidl.d.ts","../../../teleport-types/dist/cjs/index.d.ts","../../src/constants.ts","../../../../node_modules/@babel/types/lib/index.d.ts","../../../teleport-shared/dist/cjs/constants/index.d.ts","../../../teleport-shared/dist/cjs/utils/string-utils.d.ts","../../../teleport-shared/dist/cjs/utils/uidl-utils.d.ts","../../../teleport-shared/dist/cjs/index.d.ts","../../../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/style-sheet.ts","../../src/index.ts","../../../../node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/@types/node/globals.d.ts","../../../../node_modules/@types/node/async_hooks.d.ts","../../../../node_modules/@types/node/buffer.d.ts","../../../../node_modules/@types/node/child_process.d.ts","../../../../node_modules/@types/node/cluster.d.ts","../../../../node_modules/@types/node/console.d.ts","../../../../node_modules/@types/node/constants.d.ts","../../../../node_modules/@types/node/crypto.d.ts","../../../../node_modules/@types/node/dgram.d.ts","../../../../node_modules/@types/node/diagnostic_channel.d.ts","../../../../node_modules/@types/node/dns.d.ts","../../../../node_modules/@types/node/dns/promises.d.ts","../../../../node_modules/@types/node/domain.d.ts","../../../../node_modules/@types/node/events.d.ts","../../../../node_modules/@types/node/fs.d.ts","../../../../node_modules/@types/node/fs/promises.d.ts","../../../../node_modules/@types/node/http.d.ts","../../../../node_modules/@types/node/http2.d.ts","../../../../node_modules/@types/node/https.d.ts","../../../../node_modules/@types/node/inspector.d.ts","../../../../node_modules/@types/node/module.d.ts","../../../../node_modules/@types/node/net.d.ts","../../../../node_modules/@types/node/os.d.ts","../../../../node_modules/@types/node/path.d.ts","../../../../node_modules/@types/node/perf_hooks.d.ts","../../../../node_modules/@types/node/process.d.ts","../../../../node_modules/@types/node/punycode.d.ts","../../../../node_modules/@types/node/querystring.d.ts","../../../../node_modules/@types/node/readline.d.ts","../../../../node_modules/@types/node/repl.d.ts","../../../../node_modules/@types/node/stream.d.ts","../../../../node_modules/@types/node/stream/promises.d.ts","../../../../node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/@types/node/timers.d.ts","../../../../node_modules/@types/node/timers/promises.d.ts","../../../../node_modules/@types/node/tls.d.ts","../../../../node_modules/@types/node/trace_events.d.ts","../../../../node_modules/@types/node/tty.d.ts","../../../../node_modules/@types/node/url.d.ts","../../../../node_modules/@types/node/util.d.ts","../../../../node_modules/@types/node/util/types.d.ts","../../../../node_modules/@types/node/v8.d.ts","../../../../node_modules/@types/node/vm.d.ts","../../../../node_modules/@types/node/worker_threads.d.ts","../../../../node_modules/@types/node/zlib.d.ts","../../../../node_modules/@types/node/globals.global.d.ts","../../../../node_modules/@types/node/wasi.d.ts","../../../../node_modules/@types/node/ts3.6/base.d.ts","../../../../node_modules/@types/node/assert.d.ts","../../../../node_modules/@types/node/base.d.ts","../../../../node_modules/@types/node/index.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/cleanupSemantic.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/types.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/diffLines.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/printDiffs.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/index.d.ts","../../../../node_modules/@types/jest/node_modules/pretty-format/build/types.d.ts","../../../../node_modules/@types/jest/node_modules/pretty-format/build/index.d.ts","../../../../node_modules/@types/jest/index.d.ts","../../../../node_modules/@types/jest/ts3.2/index.d.ts"],"fileInfos":[{"version":"3ac1b83264055b28c0165688fda6dfcc39001e9e7828f649299101c23ad0a0c3","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06",{"version":"72704b10d97777e15f1a581b73f88273037ef752d2e50b72287bd0a90af64fe6","affectsGlobalScope":true},{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true},"42bf51402b690782aa9e6e437a2fb56a4de94c6f53fbb1728acff2dfd12df74a","ea413f16d37b1c222daffa48087c4b9ec79144baef2bc1cc1ddfdd7a3d4581c0","d49a625c30294f92976c954fffb2bcc2faeb81957148a363969ee742a43e2913","c4a042f3df0f5855fbd2ba352d7b0a581a478737b60f306fbb253dceaaa981d2","cd619820771edb23926bb084906215ab9c491255fa707488d15748b38909b747","7fe9bcb6812e04ba1b6680bd44720eefe2a1b6ca566758408f9b6fa04090cf82","2ff9995137f3e5d68971388ec58af0c79721626323884513f9f5e2e996ac1fdd","28b22326000119f53de35f67ce3096ef475a2224274162b1283ef8718e1efdb5","18aecf77d74ed15ae1e875a0d43f2aa85387794fc447b2bc3c8ab7e2224d0ac6","0dab32de48eb8cf6149f776ef25cae2e68580fb8a55419dba27f022381fdd87a","d2ff55204dd4868d11a163c207d4fbe8d99cbf8cb36fa90d2a2f0bfc802b4d38","b0900ff47d065c568038fc21d06685e58b7932750f22c49bb5cc4c18bdd35aa3","634d90459c22c0d82376bd48246b99b4a33fe56bc94c15874d1dac1e8a577d75","f735cc9f46bef33ef3c3e45308fbe6e5c9c1b917d6724d989c046bed3db5c3ed","cb33f5a5c73598b92f9aa13a0cf4d0df2dc38f05da11e4ad2fd8f0a735b3b09e","cd7c7f7b87c5e6ddb24a061393d5df9dbb0a926f3499e6f1a7f3d1da0ced3fcb","cf4ba36b05e7a6194696ffcace1710d29bb681b77a20b9b09460707ea3fcecd5","79fb51af7dc378dfaa66da7791d2c91560a151fa74da9f466d9fb60f5f9ccb39","c84d0840044a735055b7911998976dab071cde1ee160f551f2d845aea5630e2e","3465b9608c725b6a4c35b154f636011da24525a137d73976f1222c624cd9ce40","3594cd8018f215116e41c6f05c6fc9e6845a60c74753cdd1a9521d52f9ac0f2a","50ffd0c3b71cdca0f2c5004b39d876a494648c953079f07d257d679a7b95d40a","0772ec3b64f51bbe952d514e28b9aa3355a5322d1c242d93b3e67292dc7bae7c","4a8ad17ca903cd873c489c0851ba33b1cc96b24fc6a95cda488142628122ed06","b9e4af2328513bf11e1a296b5cc0a4fa4626019370537d542622a6c84f902f13","8d708033ce1c0070ee9a4fa550c3557ffb04f25f7d9d9901bf49022d9e548cb3","c7bdc99177a2a94d25fb13722adaaf5b3291bf70b4d1b27584ba189dd3889ba3",{"version":"d1c92b66c4105659fcad4eb76a1481f7311033e117d0678a1ec545e8ddb8d4c6","affectsGlobalScope":true},"e23424b97418eca3226fd24de079f1203eb70360622e4e093af2aff14d4be6ec","dee93c07b4df5e26010dc9ec4cdf4d6e4076bb4474d2a8371529217c8b2740a4","ed40f2f184db052dc8df62d1f199823c8bbccc487c0a2a7c54eeea0badcf4378","04eaa93bd75f937f9184dcb95a7983800c5770cf8ddd8ac0f3734dc02f5b20ef",{"version":"c8155caf28fc7b0a564156a5df28ad8a844a3bd32d331d148d8f3ce88025c870","affectsGlobalScope":true},"45ac321f2e15d268fd74a90ddaa6467dcaaff2c5b13f95b4b85831520fb7a491","dfc747ab8dd5f623055a4c26fd35e8cceca869fd3f1cf09701c941ca3679665a","c9f5f2920ff61d7158417b8440d5181ddc34a3dfef811a5677dd8a9fb91471e9","5cc0a492da3602510b8f5ed1852b1e0390002780d8758fbc8c0cd023ca7085f8","ec7dafafe751a5121f8f1c80201ebe7e7238c47e6329280a73c4d1ca4bb7fa28","64debeb10e4b7ae4ec9e89bfb4e04c6101ab98c3cc806d14e5488607cfec2753",{"version":"2866a528b2708aa272ec3eaafd3c980abb23aec1ef831cfc5eb2186b98c37ce5","affectsGlobalScope":true},{"version":"a5782d6cea81fe43d2db7ed41e789458c933ab3ab60602f7b5b14c4da3370496","affectsGlobalScope":true},"f258ba66915f0196ec344bc53afe1888240bbcc855ebd151b6cc072275533319","6194335ee3353f7226ba31f31d6301d0c6be87228419c0a08976ccd9d4f1213e","3ac12a54cfaa84683506db8d4cf779135a271d9f0ec18930cf53e61fbeea0c5d","cf3d3b087d1a8a3355eec47d206162c75e912315b9b5c1cd49fda93e948fb80a","36f316c066c4a72dd6f19fec49a074f935744fc9ccbe75c87ebc07fb2feb9062","42176966283d3835c34278b9b5c0f470d484c0c0c6a55c20a2c916a1ce69b6e8","0cff7901aedfe78e314f7d44088f07e2afa1b6e4f0473a4169b8456ca2fb245d","ec70fd6f8a9a83f850dab2960a6789e93d5b034b354a16814cad5daabf62a360","e2236264a811ed1d09a2487a433e8f5216ae62378cf233954ae220cf886f6717","3ec1e108d587a5661ec790db607f482605ba9f3830e118ce578e3ffa3c42e22b","100b3bb9d39d2b1b5340f1bf45a52e94ef1692b45232b4ba00fac5c3cc56d331",{"version":"04fe7e7d8008887943260af1fde2bfd4877e0dc57bf634e0f0b2f3d1794dfd11","affectsGlobalScope":true},"7f77304372efe3c9967e5f9ea2061f1b4bf41dc3cda3c83cdd676f2e5af6b7e6","992c6f6be16c0a1d2eec13ece33adeea2c747ba27fcd078353a8f4bb5b4fea58","2597718d91e306949d89e285bf34c44192014ef541c3bd7cbb825c022749e974","a6b0abdb67d63ebe964ba5fee31bc3daf10c12eecd46b24d778426010c04c67e","ac4801ebc2355ba32329070123b1cd15891bf71b41dcaf9e75b4744832126a59","fd2298fba0640e7295e7bd545e2dfbfcccbb00c27019e501c87965a02bbdebf6","4fd3c4debadce3e9ab9dec3eb45f7f5e2e3d4ad65cf975a6d938d883cfb25a50","71ddd49185b68f27bfac127ef5d22cb2672c278e53e5370d9020ef50ca9c377d","b1ea7a6eaa7608e0e0529aebd323b526a79c6c05a4e519ae5c779675004dcdf1","9fcb033a6208485d8f3fadde31eb5cbcaf99149cff3e40c0dc53ebc6d0dff4e9","7df562288f949945cf69c21cd912100c2afedeeb7cdb219085f7f4b46cb7dde4","9d16690485ff1eb4f6fc57aebe237728fd8e03130c460919da3a35f4d9bd97f5","dcc6910d95a3625fd2b0487fda055988e46ab46c357a1b3618c27b4a8dd739c9","f4149f1aa299474c7040a35fe8f8ac2ad078cc1b190415adc1fff3ed52d490ea","3730099ed008776216268a97771de31753ef71e0a7d0ec650f588cba2a06ce44","8d649dbc429d7139a1d9a14ea2bf8af1dc089e0a879447539587463d4b6c248c","60c9e27816ec8ac8df7240598bb086e95b47edfb454c5cbf4003c812e0ed6e39","e361aecf17fc4034b4c122a1564471cdcd22ef3a51407803cb5a5fc020c04d02","4926467de88a92a4fc9971d8c6f21b91eca1c0e7fc2a46cc4638ab9440c73875",{"version":"2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1","affectsGlobalScope":true},"fc0ae4a8ad3c762b96f9d2c3700cb879a373458cb0bf3175478e3b4f85f7ef2f","fabbec378e1ddd86fcf2662e716c2b8318acedb664ee3a4cba6f9e8ee8269cf1","b3593bd345ebea5e4d0a894c03251a3774b34df3d6db57075c18e089a599ba76","e61a21e9418f279bc480394a94d1581b2dee73747adcbdef999b6737e34d721b","efd55e8ca79171bf26c0d0e30221cb8ee1f5a31dd0c791ec4b2e886f42bab124","e222104af6cb9415238ad358488b74d76eceeff238c1268ec6e85655b05341da","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","eba230221317c985ab1953ccc3edc517f248b37db4fef7875cb2c8d08aff7be7","b83e796810e475da3564c6515bc0ae9577070596a33d89299b7d99f94ecfd921","b4439890c168d646357928431100daac5cbdee1d345a34e6bf6eca9f3abe22bc","5d72971a459517c44c1379dab9ed248e87a61ba0a1e0f25c9d67e1e640cd9a09","02d734976af36f4273d930bea88b3e62adf6b078cf120c1c63d49aa8d8427c5c",{"version":"f624e578325b8c58e55b30c998b1f4c3ec1b61a9fa66373da4250c89b7880d44","affectsGlobalScope":true},{"version":"d3002f620eab4bf6476c9da5c0efb2041d46f7df8b3032a5631bd206abef2c75","affectsGlobalScope":true}],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"module":99,"noImplicitAny":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","sourceMap":true,"target":1},"fileIdsList":[[111,113],[107,108],[107,108,109,110],[112],[114],[104],[103,104],[58,63],[69,70,77,86],[59,69,77],[95],[63,70,78],[86,91],[66,69,77],[67],[66],[69],[69,71,86,94],[69,70,86],[77,86,94],[69,70,72,77,86,91,94],[72,86,91,94],[105],[94],[66,69,86],[79],[57],[93],[84,95,98],[69,87],[86],[89],[63,77],[55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102],[77],[83],[96],[58,63,69,71,80,86,94,98],[33,35],[33],[33,35,41],[40,41,42,43,44,45,46,47,48,49,50],[33,47],[33,35,49],[33,34,35,39,51,52,53],[33,34,35,39,52],[33,35,39],[36,37,38],[29],[29,30,31,32]],"referencedMap":[[114,1],[109,2],[111,3],[110,2],[113,4],[115,5],[55,6],[105,7],[58,8],[59,9],[60,10],[61,11],[62,12],[63,13],[64,14],[66,15],[67,16],[68,17],[69,17],[70,18],[71,19],[72,20],[73,21],[74,22],[106,23],[75,17],[76,24],[77,25],[79,26],[80,27],[81,28],[84,17],[85,29],[86,30],[87,31],[89,17],[90,32],[91,33],[103,34],[93,35],[94,36],[95,37],[97,31],[99,38],[100,31],[40,39],[43,40],[42,41],[51,42],[48,43],[47,40],[50,44],[49,39],[44,41],[46,40],[45,40],[34,40],[54,45],[53,46],[52,47],[36,40],[39,48],[38,40],[30,49],[33,50],[32,49]],"exportedModulesMap":[[114,1],[109,2],[111,3],[110,2],[113,4],[115,5],[55,6],[105,7],[58,8],[59,9],[60,10],[61,11],[62,12],[63,13],[64,14],[66,15],[67,16],[68,17],[69,17],[70,18],[71,19],[72,20],[73,21],[74,22],[106,23],[75,17],[76,24],[77,25],[79,26],[80,27],[81,28],[84,17],[85,29],[86,30],[87,31],[89,17],[90,32],[91,33],[103,34],[93,35],[94,36],[95,37],[97,31],[99,38],[100,31],[40,39],[43,40],[42,41],[51,42],[48,43],[47,40],[50,44],[49,39],[44,41],[46,40],[45,40],[34,40],[54,45],[53,46],[52,47],[36,40],[39,48],[38,40],[30,49],[33,50],[32,49]],"semanticDiagnosticsPerFile":[35,114,107,109,111,110,108,113,112,115,104,55,57,105,58,59,60,61,62,63,64,65,66,67,68,69,70,71,56,101,72,73,74,106,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,103,93,94,95,96,97,98,102,99,100,6,8,7,2,9,10,11,12,13,14,15,16,3,4,20,17,18,19,21,22,23,5,24,25,26,27,1,28,40,43,42,51,48,47,50,49,44,46,41,45,34,54,53,52,36,39,37,38,31,30,33,29,32]},"version":"4.6.2"}
|
|
1
|
+
{"program":{"fileNames":["../../../../node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/typescript/lib/lib.dom.d.ts","../../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../teleport-types/dist/cjs/uidl.d.ts","../../../teleport-types/dist/cjs/generators.d.ts","../../../teleport-types/dist/cjs/errors.d.ts","../../../teleport-types/dist/cjs/vuidl.d.ts","../../../teleport-types/dist/cjs/index.d.ts","../../src/constants.ts","../../../../node_modules/@babel/types/lib/index.d.ts","../../../teleport-shared/dist/cjs/constants/index.d.ts","../../../teleport-shared/dist/cjs/utils/string-utils.d.ts","../../../teleport-shared/dist/cjs/utils/uidl-utils.d.ts","../../../teleport-shared/dist/cjs/index.d.ts","../../../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/style-sheet.ts","../../src/index.ts","../../../../node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/@types/node/globals.d.ts","../../../../node_modules/@types/node/async_hooks.d.ts","../../../../node_modules/@types/node/buffer.d.ts","../../../../node_modules/@types/node/child_process.d.ts","../../../../node_modules/@types/node/cluster.d.ts","../../../../node_modules/@types/node/console.d.ts","../../../../node_modules/@types/node/constants.d.ts","../../../../node_modules/@types/node/crypto.d.ts","../../../../node_modules/@types/node/dgram.d.ts","../../../../node_modules/@types/node/diagnostic_channel.d.ts","../../../../node_modules/@types/node/dns.d.ts","../../../../node_modules/@types/node/dns/promises.d.ts","../../../../node_modules/@types/node/domain.d.ts","../../../../node_modules/@types/node/events.d.ts","../../../../node_modules/@types/node/fs.d.ts","../../../../node_modules/@types/node/fs/promises.d.ts","../../../../node_modules/@types/node/http.d.ts","../../../../node_modules/@types/node/http2.d.ts","../../../../node_modules/@types/node/https.d.ts","../../../../node_modules/@types/node/inspector.d.ts","../../../../node_modules/@types/node/module.d.ts","../../../../node_modules/@types/node/net.d.ts","../../../../node_modules/@types/node/os.d.ts","../../../../node_modules/@types/node/path.d.ts","../../../../node_modules/@types/node/perf_hooks.d.ts","../../../../node_modules/@types/node/process.d.ts","../../../../node_modules/@types/node/punycode.d.ts","../../../../node_modules/@types/node/querystring.d.ts","../../../../node_modules/@types/node/readline.d.ts","../../../../node_modules/@types/node/repl.d.ts","../../../../node_modules/@types/node/stream.d.ts","../../../../node_modules/@types/node/stream/promises.d.ts","../../../../node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/@types/node/timers.d.ts","../../../../node_modules/@types/node/timers/promises.d.ts","../../../../node_modules/@types/node/tls.d.ts","../../../../node_modules/@types/node/trace_events.d.ts","../../../../node_modules/@types/node/tty.d.ts","../../../../node_modules/@types/node/url.d.ts","../../../../node_modules/@types/node/util.d.ts","../../../../node_modules/@types/node/util/types.d.ts","../../../../node_modules/@types/node/v8.d.ts","../../../../node_modules/@types/node/vm.d.ts","../../../../node_modules/@types/node/worker_threads.d.ts","../../../../node_modules/@types/node/zlib.d.ts","../../../../node_modules/@types/node/globals.global.d.ts","../../../../node_modules/@types/node/wasi.d.ts","../../../../node_modules/@types/node/ts3.6/base.d.ts","../../../../node_modules/@types/node/assert.d.ts","../../../../node_modules/@types/node/base.d.ts","../../../../node_modules/@types/node/index.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/cleanupSemantic.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/types.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/diffLines.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/printDiffs.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/index.d.ts","../../../../node_modules/@types/jest/node_modules/pretty-format/build/types.d.ts","../../../../node_modules/@types/jest/node_modules/pretty-format/build/index.d.ts","../../../../node_modules/@types/jest/index.d.ts","../../../../node_modules/@types/jest/ts3.2/index.d.ts"],"fileInfos":[{"version":"3ac1b83264055b28c0165688fda6dfcc39001e9e7828f649299101c23ad0a0c3","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06",{"version":"72704b10d97777e15f1a581b73f88273037ef752d2e50b72287bd0a90af64fe6","affectsGlobalScope":true},{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true},"d58cb8e3308641cdc84644105bd3d594045b356af29fd10d5a74f42c1a8396ad","18d176af12d389165c4ce64a4f3c365448f1a1beaccbef9a05793992160c89f4","d49a625c30294f92976c954fffb2bcc2faeb81957148a363969ee742a43e2913","c4a042f3df0f5855fbd2ba352d7b0a581a478737b60f306fbb253dceaaa981d2","cd619820771edb23926bb084906215ab9c491255fa707488d15748b38909b747","7fe9bcb6812e04ba1b6680bd44720eefe2a1b6ca566758408f9b6fa04090cf82","2ff9995137f3e5d68971388ec58af0c79721626323884513f9f5e2e996ac1fdd","28b22326000119f53de35f67ce3096ef475a2224274162b1283ef8718e1efdb5","18aecf77d74ed15ae1e875a0d43f2aa85387794fc447b2bc3c8ab7e2224d0ac6","0dab32de48eb8cf6149f776ef25cae2e68580fb8a55419dba27f022381fdd87a","d2ff55204dd4868d11a163c207d4fbe8d99cbf8cb36fa90d2a2f0bfc802b4d38","b0900ff47d065c568038fc21d06685e58b7932750f22c49bb5cc4c18bdd35aa3","634d90459c22c0d82376bd48246b99b4a33fe56bc94c15874d1dac1e8a577d75","b179b68aed28f107ab90bc0b15cecee4388c612203e5b848df805c8dae3e3071","cb33f5a5c73598b92f9aa13a0cf4d0df2dc38f05da11e4ad2fd8f0a735b3b09e","cd7c7f7b87c5e6ddb24a061393d5df9dbb0a926f3499e6f1a7f3d1da0ced3fcb","cf4ba36b05e7a6194696ffcace1710d29bb681b77a20b9b09460707ea3fcecd5","79fb51af7dc378dfaa66da7791d2c91560a151fa74da9f466d9fb60f5f9ccb39","c84d0840044a735055b7911998976dab071cde1ee160f551f2d845aea5630e2e","3465b9608c725b6a4c35b154f636011da24525a137d73976f1222c624cd9ce40","3594cd8018f215116e41c6f05c6fc9e6845a60c74753cdd1a9521d52f9ac0f2a","50ffd0c3b71cdca0f2c5004b39d876a494648c953079f07d257d679a7b95d40a","0772ec3b64f51bbe952d514e28b9aa3355a5322d1c242d93b3e67292dc7bae7c","699d442d5211a3520e82c9e06993c0b2ed538ab460dd99c0618ac435f08d8661","b9e4af2328513bf11e1a296b5cc0a4fa4626019370537d542622a6c84f902f13","2e799783d8968be8fd3fa7859ecc5e565f213fcfceaf4d8c8df63a9e04dc3601","c7bdc99177a2a94d25fb13722adaaf5b3291bf70b4d1b27584ba189dd3889ba3",{"version":"d1c92b66c4105659fcad4eb76a1481f7311033e117d0678a1ec545e8ddb8d4c6","affectsGlobalScope":true},"e23424b97418eca3226fd24de079f1203eb70360622e4e093af2aff14d4be6ec","dee93c07b4df5e26010dc9ec4cdf4d6e4076bb4474d2a8371529217c8b2740a4","ed40f2f184db052dc8df62d1f199823c8bbccc487c0a2a7c54eeea0badcf4378","04eaa93bd75f937f9184dcb95a7983800c5770cf8ddd8ac0f3734dc02f5b20ef",{"version":"c8155caf28fc7b0a564156a5df28ad8a844a3bd32d331d148d8f3ce88025c870","affectsGlobalScope":true},"45ac321f2e15d268fd74a90ddaa6467dcaaff2c5b13f95b4b85831520fb7a491","dfc747ab8dd5f623055a4c26fd35e8cceca869fd3f1cf09701c941ca3679665a","c9f5f2920ff61d7158417b8440d5181ddc34a3dfef811a5677dd8a9fb91471e9","5cc0a492da3602510b8f5ed1852b1e0390002780d8758fbc8c0cd023ca7085f8","ec7dafafe751a5121f8f1c80201ebe7e7238c47e6329280a73c4d1ca4bb7fa28","64debeb10e4b7ae4ec9e89bfb4e04c6101ab98c3cc806d14e5488607cfec2753",{"version":"2866a528b2708aa272ec3eaafd3c980abb23aec1ef831cfc5eb2186b98c37ce5","affectsGlobalScope":true},{"version":"a5782d6cea81fe43d2db7ed41e789458c933ab3ab60602f7b5b14c4da3370496","affectsGlobalScope":true},"f258ba66915f0196ec344bc53afe1888240bbcc855ebd151b6cc072275533319","6194335ee3353f7226ba31f31d6301d0c6be87228419c0a08976ccd9d4f1213e","3ac12a54cfaa84683506db8d4cf779135a271d9f0ec18930cf53e61fbeea0c5d","cf3d3b087d1a8a3355eec47d206162c75e912315b9b5c1cd49fda93e948fb80a","36f316c066c4a72dd6f19fec49a074f935744fc9ccbe75c87ebc07fb2feb9062","42176966283d3835c34278b9b5c0f470d484c0c0c6a55c20a2c916a1ce69b6e8","0cff7901aedfe78e314f7d44088f07e2afa1b6e4f0473a4169b8456ca2fb245d","ec70fd6f8a9a83f850dab2960a6789e93d5b034b354a16814cad5daabf62a360","e2236264a811ed1d09a2487a433e8f5216ae62378cf233954ae220cf886f6717","3ec1e108d587a5661ec790db607f482605ba9f3830e118ce578e3ffa3c42e22b","100b3bb9d39d2b1b5340f1bf45a52e94ef1692b45232b4ba00fac5c3cc56d331",{"version":"04fe7e7d8008887943260af1fde2bfd4877e0dc57bf634e0f0b2f3d1794dfd11","affectsGlobalScope":true},"7f77304372efe3c9967e5f9ea2061f1b4bf41dc3cda3c83cdd676f2e5af6b7e6","992c6f6be16c0a1d2eec13ece33adeea2c747ba27fcd078353a8f4bb5b4fea58","2597718d91e306949d89e285bf34c44192014ef541c3bd7cbb825c022749e974","a6b0abdb67d63ebe964ba5fee31bc3daf10c12eecd46b24d778426010c04c67e","ac4801ebc2355ba32329070123b1cd15891bf71b41dcaf9e75b4744832126a59","fd2298fba0640e7295e7bd545e2dfbfcccbb00c27019e501c87965a02bbdebf6","4fd3c4debadce3e9ab9dec3eb45f7f5e2e3d4ad65cf975a6d938d883cfb25a50","71ddd49185b68f27bfac127ef5d22cb2672c278e53e5370d9020ef50ca9c377d","b1ea7a6eaa7608e0e0529aebd323b526a79c6c05a4e519ae5c779675004dcdf1","9fcb033a6208485d8f3fadde31eb5cbcaf99149cff3e40c0dc53ebc6d0dff4e9","7df562288f949945cf69c21cd912100c2afedeeb7cdb219085f7f4b46cb7dde4","9d16690485ff1eb4f6fc57aebe237728fd8e03130c460919da3a35f4d9bd97f5","dcc6910d95a3625fd2b0487fda055988e46ab46c357a1b3618c27b4a8dd739c9","f4149f1aa299474c7040a35fe8f8ac2ad078cc1b190415adc1fff3ed52d490ea","3730099ed008776216268a97771de31753ef71e0a7d0ec650f588cba2a06ce44","8d649dbc429d7139a1d9a14ea2bf8af1dc089e0a879447539587463d4b6c248c","60c9e27816ec8ac8df7240598bb086e95b47edfb454c5cbf4003c812e0ed6e39","e361aecf17fc4034b4c122a1564471cdcd22ef3a51407803cb5a5fc020c04d02","4926467de88a92a4fc9971d8c6f21b91eca1c0e7fc2a46cc4638ab9440c73875",{"version":"2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1","affectsGlobalScope":true},"fc0ae4a8ad3c762b96f9d2c3700cb879a373458cb0bf3175478e3b4f85f7ef2f","fabbec378e1ddd86fcf2662e716c2b8318acedb664ee3a4cba6f9e8ee8269cf1","b3593bd345ebea5e4d0a894c03251a3774b34df3d6db57075c18e089a599ba76","e61a21e9418f279bc480394a94d1581b2dee73747adcbdef999b6737e34d721b","efd55e8ca79171bf26c0d0e30221cb8ee1f5a31dd0c791ec4b2e886f42bab124","e222104af6cb9415238ad358488b74d76eceeff238c1268ec6e85655b05341da","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","eba230221317c985ab1953ccc3edc517f248b37db4fef7875cb2c8d08aff7be7","b83e796810e475da3564c6515bc0ae9577070596a33d89299b7d99f94ecfd921","b4439890c168d646357928431100daac5cbdee1d345a34e6bf6eca9f3abe22bc","5d72971a459517c44c1379dab9ed248e87a61ba0a1e0f25c9d67e1e640cd9a09","02d734976af36f4273d930bea88b3e62adf6b078cf120c1c63d49aa8d8427c5c",{"version":"f624e578325b8c58e55b30c998b1f4c3ec1b61a9fa66373da4250c89b7880d44","affectsGlobalScope":true},{"version":"d3002f620eab4bf6476c9da5c0efb2041d46f7df8b3032a5631bd206abef2c75","affectsGlobalScope":true}],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"module":99,"noImplicitAny":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","sourceMap":true,"target":1},"fileIdsList":[[111,113],[107,108],[107,108,109,110],[112],[114],[104],[103,104],[58,63],[69,70,77,86],[59,69,77],[95],[63,70,78],[86,91],[66,69,77],[67],[66],[69],[69,71,86,94],[69,70,86],[77,86,94],[69,70,72,77,86,91,94],[72,86,91,94],[105],[94],[66,69,86],[79],[57],[93],[84,95,98],[69,87],[86],[89],[63,77],[55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102],[77],[83],[96],[58,63,69,71,80,86,94,98],[33,35],[33],[33,35,41],[40,41,42,43,44,45,46,47,48,49,50],[33,47],[33,35,49],[33,34,35,39,51,52,53],[33,34,35,39,52],[33,34,35,39],[36,37,38],[29],[29,30,31,32]],"referencedMap":[[114,1],[109,2],[111,3],[110,2],[113,4],[115,5],[55,6],[105,7],[58,8],[59,9],[60,10],[61,11],[62,12],[63,13],[64,14],[66,15],[67,16],[68,17],[69,17],[70,18],[71,19],[72,20],[73,21],[74,22],[106,23],[75,17],[76,24],[77,25],[79,26],[80,27],[81,28],[84,17],[85,29],[86,30],[87,31],[89,17],[90,32],[91,33],[103,34],[93,35],[94,36],[95,37],[97,31],[99,38],[100,31],[40,39],[43,40],[42,41],[51,42],[48,43],[47,40],[50,44],[49,39],[44,41],[46,40],[45,40],[34,40],[54,45],[53,46],[52,47],[36,40],[39,48],[38,40],[30,49],[33,50],[32,49]],"exportedModulesMap":[[114,1],[109,2],[111,3],[110,2],[113,4],[115,5],[55,6],[105,7],[58,8],[59,9],[60,10],[61,11],[62,12],[63,13],[64,14],[66,15],[67,16],[68,17],[69,17],[70,18],[71,19],[72,20],[73,21],[74,22],[106,23],[75,17],[76,24],[77,25],[79,26],[80,27],[81,28],[84,17],[85,29],[86,30],[87,31],[89,17],[90,32],[91,33],[103,34],[93,35],[94,36],[95,37],[97,31],[99,38],[100,31],[40,39],[43,40],[42,41],[51,42],[48,43],[47,40],[50,44],[49,39],[44,41],[46,40],[45,40],[34,40],[54,45],[53,46],[52,47],[36,40],[39,48],[38,40],[30,49],[33,50],[32,49]],"semanticDiagnosticsPerFile":[35,114,107,109,111,110,108,113,112,115,104,55,57,105,58,59,60,61,62,63,64,65,66,67,68,69,70,71,56,101,72,73,74,106,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,103,93,94,95,96,97,98,102,99,100,6,8,7,2,9,10,11,12,13,14,15,16,3,4,20,17,18,19,21,22,23,5,24,25,26,27,1,28,40,43,42,51,48,47,50,49,44,46,41,45,34,54,53,52,36,39,37,38,31,30,33,29,32]},"version":"4.6.2"}
|
package/dist/esm/utils.js
CHANGED
|
@@ -12,6 +12,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
12
|
import * as types from '@babel/types';
|
|
13
13
|
import { StringUtils } from '@teleporthq/teleport-shared';
|
|
14
14
|
import { PluginStyledComponent, } from '@teleporthq/teleport-types';
|
|
15
|
+
import { componentVariantPropPrefix } from './constants';
|
|
15
16
|
export var generateStyledComponent = function (params) {
|
|
16
17
|
var name = params.name, elementType = params.elementType, styles = params.styles, propsReferred = params.propsReferred, componentStyleReferences = params.componentStyleReferences, projectStyleReferences = params.projectStyleReferences;
|
|
17
18
|
var styleExpressions = styles;
|
|
@@ -19,14 +20,20 @@ export var generateStyledComponent = function (params) {
|
|
|
19
20
|
if (propsReferred.size > 0) {
|
|
20
21
|
styleExpressions = types.arrowFunctionExpression([types.identifier('props')], styles);
|
|
21
22
|
}
|
|
22
|
-
if (projectStyleReferences.size > 0) {
|
|
23
|
-
expressionArguments.push.apply(expressionArguments, Array.from(projectStyleReferences).map(function (ref) { return types.identifier(ref); }));
|
|
24
|
-
}
|
|
25
23
|
if (styles && styles.properties.length > 0) {
|
|
26
24
|
expressionArguments.push(styleExpressions);
|
|
27
25
|
}
|
|
28
26
|
if (componentStyleReferences.size > 0) {
|
|
29
|
-
|
|
27
|
+
var isOverride = Array.from(componentStyleReferences).some(function (ref) { return ref === 'reusable-component-style-override'; });
|
|
28
|
+
if (isOverride) {
|
|
29
|
+
expressionArguments.push(types.identifier(componentVariantPropPrefix));
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
expressionArguments.unshift(types.identifier(componentVariantPropPrefix));
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
if (projectStyleReferences.size > 0) {
|
|
36
|
+
expressionArguments.unshift.apply(expressionArguments, Array.from(projectStyleReferences).map(function (ref) { return types.identifier(ref); }));
|
|
30
37
|
}
|
|
31
38
|
return types.variableDeclaration('const', [
|
|
32
39
|
types.variableDeclarator(types.identifier(name), types.callExpression(types.callExpression(types.identifier('styled'), [types.stringLiteral(elementType)]), expressionArguments)),
|
|
@@ -80,7 +87,7 @@ export var generateVariantsfromStyleSet = function (styleSets, variantPropPrefix
|
|
|
80
87
|
var variantExpressions = types.objectExpression(Object.keys(styleSets).reduce(function (acc, styleId) {
|
|
81
88
|
var style = styleSets[styleId];
|
|
82
89
|
var _a = style.content, content = _a === void 0 ? {} : _a, _b = style.conditions, conditions = _b === void 0 ? [] : _b;
|
|
83
|
-
var property = types.objectProperty(types.stringLiteral(styleId), generateStyledComponentStyles(__assign({ styles: content }, (tokensReferred && { tokensReferred: tokensReferred }))));
|
|
90
|
+
var property = types.objectProperty(types.stringLiteral(StringUtils.dashCaseToCamelCase(styleId)), generateStyledComponentStyles(__assign({ styles: content }, (tokensReferred && { tokensReferred: tokensReferred }))));
|
|
84
91
|
conditions.forEach(function (cond) {
|
|
85
92
|
var mediaProperty = types.objectProperty(cond.type === 'screen-size'
|
|
86
93
|
? types.stringLiteral("@media(max-width: ".concat(cond.meta.maxWidth, "px)"))
|
package/dist/esm/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AACzD,OAAO,EAIL,qBAAqB,GACtB,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AACzD,OAAO,EAIL,qBAAqB,GACtB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAA;AAExD,MAAM,CAAC,IAAM,uBAAuB,GAAG,UAAC,MAOvC;IAEG,IAAA,IAAI,GAMF,MAAM,KANJ,EACJ,WAAW,GAKT,MAAM,YALG,EACX,MAAM,GAIJ,MAAM,OAJF,EACN,aAAa,GAGX,MAAM,cAHK,EACb,wBAAwB,GAEtB,MAAM,yBAFgB,EACxB,sBAAsB,GACpB,MAAM,uBADc,CACd;IACV,IAAI,gBAAgB,GAA2D,MAAM,CAAA;IACrF,IAAM,mBAAmB,GAErB,EAAE,CAAA;IAEN,IAAI,aAAa,CAAC,IAAI,GAAG,CAAC,EAAE;QAC1B,gBAAgB,GAAG,KAAK,CAAC,uBAAuB,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,EAAE,MAAM,CAAC,CAAA;KACtF;IAED,IAAI,MAAM,IAAI,MAAM,CAAC,UAAU,CA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gBACnE,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,YAAK,IAAI,CAAC,IAAI,CAAC,KAAK,CAAE,CAAC,EAC/C,6BAA6B,YAC3B,MAAM,EAAE,IAAI,CAAC,OAAO,IACjB,CAAC,cAAc,IAAI,EAAE,cAAc,gBAAA,EAAE,CAAC,EACzC,CACH,CAAA;YAED,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,kBAAkB,EAAE;gBAC9C,QAAQ,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA;aAC9C;QACH,CAAC,CAAC,CAAA;QAEF,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;QAClB,OAAO,GAAG,CAAA;IACZ,CAAC,EAAE,EAAE,CAAC,CACP,CAAA;IAED,OAAO,KAAK,CAAC,mBAAmB,CAAC,OAAO,EAAE;QACxC,KAAK,CAAC,kBAAkB,CACtB,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,EACnC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE;YAChD,KAAK,CAAC,gBAAgB,CAAC;gBACrB,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,cAAc,CAAC,CAAC;gBACnF,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,kBAAkB,CAAC;aACvE,CAAC;SACH,CAAC,CACH;KACF,CAAC,CAAA;AACJ,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teleporthq/teleport-plugin-react-styled-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"description": "A plugin for injecting the styles through styled-components 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.
|
|
29
|
-
"@teleporthq/teleport-shared": "^0.
|
|
30
|
-
"@teleporthq/teleport-types": "^0.
|
|
28
|
+
"@teleporthq/teleport-plugin-common": "^0.21.0",
|
|
29
|
+
"@teleporthq/teleport-shared": "^0.21.0",
|
|
30
|
+
"@teleporthq/teleport-types": "^0.21.0"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "dd790cfb393fbdb560646eded5a9d6111e43b6ad"
|
|
33
33
|
}
|
package/src/index.ts
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
PluginStyledComponent,
|
|
8
8
|
} from '@teleporthq/teleport-types'
|
|
9
9
|
import { UIDLUtils, StringUtils } from '@teleporthq/teleport-shared'
|
|
10
|
-
import { ASTUtils } from '@teleporthq/teleport-plugin-common'
|
|
10
|
+
import { ASTUtils, StyleBuilders } from '@teleporthq/teleport-plugin-common'
|
|
11
11
|
import {
|
|
12
12
|
generateStyledComponent,
|
|
13
13
|
removeUnusedDependencies,
|
|
@@ -43,7 +43,7 @@ export const createReactStyledComponentsPlugin: ComponentPluginFactory<StyledCom
|
|
|
43
43
|
|
|
44
44
|
const reactStyledComponentsPlugin: ComponentPlugin = async (structure) => {
|
|
45
45
|
const { uidl, chunks, dependencies, options } = structure
|
|
46
|
-
const { node, name, styleSetDefinitions: componentStyleSheet = {} } = uidl
|
|
46
|
+
const { node, name, styleSetDefinitions: componentStyleSheet = {}, propDefinitions = {} } = uidl
|
|
47
47
|
const { projectStyleSet } = options
|
|
48
48
|
const componentChunk = chunks.find((chunk) => chunk.name === componentChunkName)
|
|
49
49
|
if (!componentChunk) {
|
|
@@ -73,13 +73,24 @@ export const createReactStyledComponentsPlugin: ComponentPluginFactory<StyledCom
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
UIDLUtils.traverseElements(node, (element) => {
|
|
76
|
-
const { style = {} } = element
|
|
77
|
-
const { key, elementType, referencedStyles = {} } = element
|
|
76
|
+
const { key, elementType, referencedStyles, dependency, style, attrs = {} } = element
|
|
78
77
|
const propsReferred: Set<string> = new Set()
|
|
79
78
|
const componentStyleReferences: Set<string> = new Set()
|
|
80
79
|
const projectStyleReferences: Set<string> = new Set()
|
|
81
80
|
|
|
82
|
-
if (
|
|
81
|
+
if (dependency?.type === 'local') {
|
|
82
|
+
StyleBuilders.setPropValueForCompStyle({
|
|
83
|
+
attrs,
|
|
84
|
+
key,
|
|
85
|
+
jsxNodesLookup,
|
|
86
|
+
getClassName,
|
|
87
|
+
})
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
if (
|
|
91
|
+
Object.keys(style || {}).length === 0 &&
|
|
92
|
+
Object.keys(referencedStyles || {}).length === 0
|
|
93
|
+
) {
|
|
83
94
|
return
|
|
84
95
|
}
|
|
85
96
|
|
|
@@ -114,6 +125,7 @@ export const createReactStyledComponentsPlugin: ComponentPluginFactory<StyledCom
|
|
|
114
125
|
})
|
|
115
126
|
}
|
|
116
127
|
}
|
|
128
|
+
|
|
117
129
|
cssMap[className] = generateStyledComponentStyles({
|
|
118
130
|
styles: style,
|
|
119
131
|
propsReferred,
|
|
@@ -192,11 +204,16 @@ export const createReactStyledComponentsPlugin: ComponentPluginFactory<StyledCom
|
|
|
192
204
|
styleRef.content.content.type === 'dynamic' &&
|
|
193
205
|
styleRef.content.content.content.referenceType === 'comp'
|
|
194
206
|
) {
|
|
195
|
-
|
|
207
|
+
const usedCompStyle = componentStyleSheet[styleRef.content.content.content.id]
|
|
208
|
+
if (!usedCompStyle) {
|
|
209
|
+
throw new Error(`${styleRef.content.content.content.id} is missing from props`)
|
|
210
|
+
}
|
|
211
|
+
componentStyleReferences.add(usedCompStyle.type)
|
|
212
|
+
|
|
196
213
|
ASTUtils.addAttributeToJSXTag(
|
|
197
214
|
root,
|
|
198
215
|
componentVariantPropKey,
|
|
199
|
-
styleRef.content.content.content.id
|
|
216
|
+
getClassName(styleRef.content.content.content.id)
|
|
200
217
|
)
|
|
201
218
|
}
|
|
202
219
|
|
|
@@ -204,7 +221,21 @@ export const createReactStyledComponentsPlugin: ComponentPluginFactory<StyledCom
|
|
|
204
221
|
styleRef.content.content.type === 'dynamic' &&
|
|
205
222
|
styleRef.content.content.content.referenceType === 'prop'
|
|
206
223
|
) {
|
|
207
|
-
|
|
224
|
+
const prop = propDefinitions[styleRef.content.content.content.id]
|
|
225
|
+
if (prop?.defaultValue) {
|
|
226
|
+
const usedCompStyle = componentStyleSheet[String(prop.defaultValue)]
|
|
227
|
+
componentStyleReferences.add(usedCompStyle.type)
|
|
228
|
+
/*
|
|
229
|
+
Changing the default value of the prop.
|
|
230
|
+
When forceScoping is enabled the classnames change. So, we need to change the default prop too.
|
|
231
|
+
*/
|
|
232
|
+
propDefinitions[styleRef.content.content.content.id].defaultValue = getClassName(
|
|
233
|
+
String(prop.defaultValue)
|
|
234
|
+
)
|
|
235
|
+
} else {
|
|
236
|
+
componentStyleReferences.add(componentVariantPropPrefix)
|
|
237
|
+
}
|
|
238
|
+
|
|
208
239
|
ASTUtils.addDynamicAttributeToJSXTag(
|
|
209
240
|
root,
|
|
210
241
|
componentVariantPropKey,
|
|
@@ -237,7 +268,11 @@ export const createReactStyledComponentsPlugin: ComponentPluginFactory<StyledCom
|
|
|
237
268
|
}
|
|
238
269
|
projectStyleReferences.add(projectVariantPropPrefix)
|
|
239
270
|
|
|
240
|
-
ASTUtils.addAttributeToJSXTag(
|
|
271
|
+
ASTUtils.addAttributeToJSXTag(
|
|
272
|
+
root,
|
|
273
|
+
projectVariantPropKey,
|
|
274
|
+
getClassName(content.referenceId)
|
|
275
|
+
)
|
|
241
276
|
return
|
|
242
277
|
}
|
|
243
278
|
default: {
|
|
@@ -312,3 +347,5 @@ export const createReactStyledComponentsPlugin: ComponentPluginFactory<StyledCom
|
|
|
312
347
|
export { createStyleSheetPlugin }
|
|
313
348
|
|
|
314
349
|
export default createReactStyledComponentsPlugin()
|
|
350
|
+
|
|
351
|
+
const getClassName = (str: string) => StringUtils.dashCaseToCamelCase(str)
|
package/src/utils.ts
CHANGED
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
UIDLStyleSetDefinition,
|
|
7
7
|
PluginStyledComponent,
|
|
8
8
|
} from '@teleporthq/teleport-types'
|
|
9
|
+
import { componentVariantPropPrefix } from './constants'
|
|
9
10
|
|
|
10
11
|
export const generateStyledComponent = (params: {
|
|
11
12
|
name: string
|
|
@@ -32,19 +33,24 @@ export const generateStyledComponent = (params: {
|
|
|
32
33
|
styleExpressions = types.arrowFunctionExpression([types.identifier('props')], styles)
|
|
33
34
|
}
|
|
34
35
|
|
|
35
|
-
if (projectStyleReferences.size > 0) {
|
|
36
|
-
expressionArguments.push(
|
|
37
|
-
...Array.from(projectStyleReferences).map((ref) => types.identifier(ref))
|
|
38
|
-
)
|
|
39
|
-
}
|
|
40
|
-
|
|
41
36
|
if (styles && styles.properties.length > 0) {
|
|
42
37
|
expressionArguments.push(styleExpressions)
|
|
43
38
|
}
|
|
44
39
|
|
|
45
40
|
if (componentStyleReferences.size > 0) {
|
|
46
|
-
|
|
47
|
-
|
|
41
|
+
const isOverride = Array.from(componentStyleReferences).some(
|
|
42
|
+
(ref) => ref === 'reusable-component-style-override'
|
|
43
|
+
)
|
|
44
|
+
if (isOverride) {
|
|
45
|
+
expressionArguments.push(types.identifier(componentVariantPropPrefix))
|
|
46
|
+
} else {
|
|
47
|
+
expressionArguments.unshift(types.identifier(componentVariantPropPrefix))
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
if (projectStyleReferences.size > 0) {
|
|
52
|
+
expressionArguments.unshift(
|
|
53
|
+
...Array.from(projectStyleReferences).map((ref) => types.identifier(ref))
|
|
48
54
|
)
|
|
49
55
|
}
|
|
50
56
|
|
|
@@ -158,7 +164,7 @@ export const generateVariantsfromStyleSet = (
|
|
|
158
164
|
const { content = {}, conditions = [] } = style
|
|
159
165
|
|
|
160
166
|
const property = types.objectProperty(
|
|
161
|
-
types.stringLiteral(styleId),
|
|
167
|
+
types.stringLiteral(StringUtils.dashCaseToCamelCase(styleId)),
|
|
162
168
|
generateStyledComponentStyles({
|
|
163
169
|
styles: content,
|
|
164
170
|
...(tokensReferred && { tokensReferred }),
|