@plasmicapp/loader-react 1.0.119 → 1.0.120
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 +20 -19
- 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 +20 -19
- package/dist/loader-react.esm.js.map +1 -1
- package/package.json +2 -2
|
@@ -7,6 +7,7 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
|
|
|
7
7
|
var PlasmicHost = require('@plasmicapp/host');
|
|
8
8
|
var PlasmicQuery = require('@plasmicapp/query');
|
|
9
9
|
var loaderCore = require('@plasmicapp/loader-core');
|
|
10
|
+
var plasmicHostRegisterComponent = require('@plasmicapp/host/registerComponent');
|
|
10
11
|
var loaderSplits = require('@plasmicapp/loader-splits');
|
|
11
12
|
var React = require('react');
|
|
12
13
|
var React__default = _interopDefault(React);
|
|
@@ -396,9 +397,11 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
|
|
|
396
397
|
|
|
397
398
|
|
|
398
399
|
var IteratorPrototype = {};
|
|
399
|
-
|
|
400
|
+
|
|
401
|
+
IteratorPrototype[iteratorSymbol] = function () {
|
|
400
402
|
return this;
|
|
401
|
-
}
|
|
403
|
+
};
|
|
404
|
+
|
|
402
405
|
var getProto = Object.getPrototypeOf;
|
|
403
406
|
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
404
407
|
|
|
@@ -409,9 +412,8 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
|
|
|
409
412
|
}
|
|
410
413
|
|
|
411
414
|
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
412
|
-
GeneratorFunction.prototype = GeneratorFunctionPrototype;
|
|
413
|
-
|
|
414
|
-
define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
|
|
415
|
+
GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
|
|
416
|
+
GeneratorFunctionPrototype.constructor = GeneratorFunction;
|
|
415
417
|
GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"); // Helper for defining the .next, .throw, and .return methods of the
|
|
416
418
|
// Iterator interface in terms of a single ._invoke method.
|
|
417
419
|
|
|
@@ -516,9 +518,11 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
|
|
|
516
518
|
}
|
|
517
519
|
|
|
518
520
|
defineIteratorMethods(AsyncIterator.prototype);
|
|
519
|
-
|
|
521
|
+
|
|
522
|
+
AsyncIterator.prototype[asyncIteratorSymbol] = function () {
|
|
520
523
|
return this;
|
|
521
|
-
}
|
|
524
|
+
};
|
|
525
|
+
|
|
522
526
|
exports.AsyncIterator = AsyncIterator; // Note that simple async functions are implemented on top of
|
|
523
527
|
// AsyncIterator objects; they just return a Promise for the value of
|
|
524
528
|
// the final result produced by the iterator.
|
|
@@ -695,12 +699,13 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
|
|
|
695
699
|
// object to not be returned from this call. This ensures that doesn't happen.
|
|
696
700
|
// See https://github.com/facebook/regenerator/issues/274 for more details.
|
|
697
701
|
|
|
698
|
-
|
|
702
|
+
Gp[iteratorSymbol] = function () {
|
|
699
703
|
return this;
|
|
700
|
-
}
|
|
701
|
-
|
|
704
|
+
};
|
|
705
|
+
|
|
706
|
+
Gp.toString = function () {
|
|
702
707
|
return "[object Generator]";
|
|
703
|
-
}
|
|
708
|
+
};
|
|
704
709
|
|
|
705
710
|
function pushTryEntry(locs) {
|
|
706
711
|
var entry = {
|
|
@@ -1012,19 +1017,14 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
|
|
|
1012
1017
|
} catch (accidentalStrictMode) {
|
|
1013
1018
|
// This module should not be running in strict mode, so the above
|
|
1014
1019
|
// assignment should always work unless something is misconfigured. Just
|
|
1015
|
-
// in case runtime.js accidentally runs in strict mode,
|
|
1016
|
-
// we can explicitly access globalThis. In older engines we can escape
|
|
1020
|
+
// in case runtime.js accidentally runs in strict mode, we can escape
|
|
1017
1021
|
// strict mode using a global Function call. This could conceivably fail
|
|
1018
1022
|
// if a Content Security Policy forbids using Function, but in that case
|
|
1019
1023
|
// the proper solution is to fix the accidental strict mode problem. If
|
|
1020
1024
|
// you've misconfigured your bundler to force strict mode and applied a
|
|
1021
1025
|
// CSP to forbid Function, and you're not willing to fix either of those
|
|
1022
1026
|
// problems, please detail your unique predicament in a GitHub issue.
|
|
1023
|
-
|
|
1024
|
-
globalThis.regeneratorRuntime = runtime;
|
|
1025
|
-
} else {
|
|
1026
|
-
Function("r", "regeneratorRuntime = r")(runtime);
|
|
1027
|
-
}
|
|
1027
|
+
Function("r", "regeneratorRuntime = r")(runtime);
|
|
1028
1028
|
}
|
|
1029
1029
|
});
|
|
1030
1030
|
|
|
@@ -1505,7 +1505,8 @@ var InternalPlasmicComponentLoader = /*#__PURE__*/function () {
|
|
|
1505
1505
|
// Also inject @plasmicapp/query and @plasmicapp/host to use the
|
|
1506
1506
|
// same contexts here and in loader-downloaded code.
|
|
1507
1507
|
'@plasmicapp/query': PlasmicQuery,
|
|
1508
|
-
'@plasmicapp/host': PlasmicHost
|
|
1508
|
+
'@plasmicapp/host': PlasmicHost,
|
|
1509
|
+
'@plasmicapp/host/registerComponent': plasmicHostRegisterComponent
|
|
1509
1510
|
});
|
|
1510
1511
|
}
|
|
1511
1512
|
|