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