@plasmicapp/loader-react 1.0.46 → 1.0.50
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 +21 -8
- 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 +22 -9
- package/dist/loader-react.esm.js.map +1 -1
- package/dist/loader.d.ts +2 -1
- package/dist/prepass.d.ts +2 -1
- package/package.json +4 -4
|
@@ -1428,6 +1428,19 @@ var InternalPlasmicComponentLoader = /*#__PURE__*/function () {
|
|
|
1428
1428
|
}));
|
|
1429
1429
|
};
|
|
1430
1430
|
|
|
1431
|
+
_proto.registerContext = function registerContext(context, meta) {
|
|
1432
|
+
var _meta$importPath2;
|
|
1433
|
+
|
|
1434
|
+
this.substituteComponent(context, {
|
|
1435
|
+
name: meta.name,
|
|
1436
|
+
isCode: true
|
|
1437
|
+
}); // Import path is not used as we will use component substitution
|
|
1438
|
+
|
|
1439
|
+
host.registerContext(context, _extends({}, meta, {
|
|
1440
|
+
importPath: (_meta$importPath2 = meta.importPath) != null ? _meta$importPath2 : ''
|
|
1441
|
+
}));
|
|
1442
|
+
};
|
|
1443
|
+
|
|
1431
1444
|
_proto.registerPrefetchedBundle = function registerPrefetchedBundle(bundle) {
|
|
1432
1445
|
this.mergeBundle(bundle);
|
|
1433
1446
|
};
|
|
@@ -2186,11 +2199,7 @@ function _extractPlasmicQueryData() {
|
|
|
2186
2199
|
cache = {};
|
|
2187
2200
|
_context.prev = 1;
|
|
2188
2201
|
_context.next = 4;
|
|
2189
|
-
return plasmicPrepass(
|
|
2190
|
-
value: {
|
|
2191
|
-
cache: cache
|
|
2192
|
-
}
|
|
2193
|
-
}, element));
|
|
2202
|
+
return plasmicPrepass(element, cache);
|
|
2194
2203
|
|
|
2195
2204
|
case 4:
|
|
2196
2205
|
_context.next = 9;
|
|
@@ -2221,7 +2230,7 @@ function _extractPlasmicQueryData() {
|
|
|
2221
2230
|
return _extractPlasmicQueryData.apply(this, arguments);
|
|
2222
2231
|
}
|
|
2223
2232
|
|
|
2224
|
-
function plasmicPrepass(_x2) {
|
|
2233
|
+
function plasmicPrepass(_x2, _x3) {
|
|
2225
2234
|
return _plasmicPrepass.apply(this, arguments);
|
|
2226
2235
|
}
|
|
2227
2236
|
/**
|
|
@@ -2232,13 +2241,17 @@ function plasmicPrepass(_x2) {
|
|
|
2232
2241
|
*/
|
|
2233
2242
|
|
|
2234
2243
|
function _plasmicPrepass() {
|
|
2235
|
-
_plasmicPrepass = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2(element) {
|
|
2244
|
+
_plasmicPrepass = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2(element, plasmicCache) {
|
|
2236
2245
|
return runtime_1.wrap(function _callee2$(_context2) {
|
|
2237
2246
|
while (1) {
|
|
2238
2247
|
switch (_context2.prev = _context2.next) {
|
|
2239
2248
|
case 0:
|
|
2240
2249
|
_context2.next = 2;
|
|
2241
|
-
return prepass(
|
|
2250
|
+
return prepass(React__default.createElement(query.PrepassContext.Provider, {
|
|
2251
|
+
value: {
|
|
2252
|
+
cache: plasmicCache != null ? plasmicCache : {}
|
|
2253
|
+
}
|
|
2254
|
+
}, buildPlasmicPrepassElement(element)));
|
|
2242
2255
|
|
|
2243
2256
|
case 2:
|
|
2244
2257
|
case "end":
|