@plasmicapp/loader-react 1.0.44 → 1.0.48
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/loader-react.cjs.development.js +8 -4
- package/dist/loader-react.cjs.development.js.map +1 -1
- package/dist/loader-react.cjs.production.min.js +1 -1
- package/dist/loader-react.cjs.production.min.js.map +1 -1
- package/dist/loader-react.esm.js +8 -4
- package/dist/loader-react.esm.js.map +1 -1
- package/package.json +4 -4
|
@@ -2267,18 +2267,22 @@ function processComponentProps(props) {
|
|
|
2267
2267
|
return props;
|
|
2268
2268
|
}
|
|
2269
2269
|
|
|
2270
|
-
var processValue = function processValue(value) {
|
|
2270
|
+
var processValue = function processValue(value, depth) {
|
|
2271
|
+
if (depth > 2) {
|
|
2272
|
+
return value;
|
|
2273
|
+
}
|
|
2274
|
+
|
|
2271
2275
|
if (React__default.isValidElement(value)) {
|
|
2272
2276
|
return processReactElement(value);
|
|
2273
2277
|
} else if (Array.isArray(value)) {
|
|
2274
2278
|
return value.map(function (v) {
|
|
2275
|
-
return processValue(v);
|
|
2279
|
+
return processValue(v, depth + 1);
|
|
2276
2280
|
});
|
|
2277
2281
|
} else if (isLiteralObject(value)) {
|
|
2278
2282
|
return Object.fromEntries(Object.entries(value).map(function (_ref) {
|
|
2279
2283
|
var k = _ref[0],
|
|
2280
2284
|
v = _ref[1];
|
|
2281
|
-
return [k, processValue(v)];
|
|
2285
|
+
return [k, processValue(v, depth + 1)];
|
|
2282
2286
|
}));
|
|
2283
2287
|
} else {
|
|
2284
2288
|
return value;
|
|
@@ -2288,7 +2292,7 @@ function processComponentProps(props) {
|
|
|
2288
2292
|
return Object.fromEntries(Object.entries(props).map(function (_ref2) {
|
|
2289
2293
|
var k = _ref2[0],
|
|
2290
2294
|
v = _ref2[1];
|
|
2291
|
-
return [k, processValue(v)];
|
|
2295
|
+
return [k, processValue(v, 1)];
|
|
2292
2296
|
}));
|
|
2293
2297
|
}
|
|
2294
2298
|
|