@plasmicapp/loader-react 1.0.120 → 1.0.123
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/index.d.ts +1 -1
- package/dist/loader-react.cjs.development.js +55 -20
- 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 -21
- package/dist/loader-react.esm.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { PlasmicCanvasContext, PlasmicCanvasHost, PrimitiveType, PropType, repeatedElement, usePlasmicCanvasContext, } from '@plasmicapp/host';
|
|
1
|
+
export { DataCtxReader, DataProvider, PageParamsProvider, PlasmicCanvasContext, PlasmicCanvasHost, PrimitiveType, PropType, repeatedElement, useDataEnv, usePlasmicCanvasContext, useSelector, useSelectors, } from '@plasmicapp/host';
|
|
2
2
|
export { ComponentMeta, PageMeta, PageMetadata } from '@plasmicapp/loader-core';
|
|
3
3
|
export { usePlasmicQueryData } from '@plasmicapp/query';
|
|
4
4
|
export { convertBundlesToComponentRenderData } from './bundles';
|
|
@@ -7,7 +7,6 @@ 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');
|
|
11
10
|
var loaderSplits = require('@plasmicapp/loader-splits');
|
|
12
11
|
var React = require('react');
|
|
13
12
|
var React__default = _interopDefault(React);
|
|
@@ -397,11 +396,9 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
|
|
|
397
396
|
|
|
398
397
|
|
|
399
398
|
var IteratorPrototype = {};
|
|
400
|
-
|
|
401
|
-
IteratorPrototype[iteratorSymbol] = function () {
|
|
399
|
+
define(IteratorPrototype, iteratorSymbol, function () {
|
|
402
400
|
return this;
|
|
403
|
-
};
|
|
404
|
-
|
|
401
|
+
});
|
|
405
402
|
var getProto = Object.getPrototypeOf;
|
|
406
403
|
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
407
404
|
|
|
@@ -412,8 +409,9 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
|
|
|
412
409
|
}
|
|
413
410
|
|
|
414
411
|
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
415
|
-
GeneratorFunction.prototype =
|
|
416
|
-
|
|
412
|
+
GeneratorFunction.prototype = GeneratorFunctionPrototype;
|
|
413
|
+
define(Gp, "constructor", GeneratorFunctionPrototype);
|
|
414
|
+
define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
|
|
417
415
|
GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"); // Helper for defining the .next, .throw, and .return methods of the
|
|
418
416
|
// Iterator interface in terms of a single ._invoke method.
|
|
419
417
|
|
|
@@ -518,11 +516,9 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
|
|
|
518
516
|
}
|
|
519
517
|
|
|
520
518
|
defineIteratorMethods(AsyncIterator.prototype);
|
|
521
|
-
|
|
522
|
-
AsyncIterator.prototype[asyncIteratorSymbol] = function () {
|
|
519
|
+
define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
523
520
|
return this;
|
|
524
|
-
};
|
|
525
|
-
|
|
521
|
+
});
|
|
526
522
|
exports.AsyncIterator = AsyncIterator; // Note that simple async functions are implemented on top of
|
|
527
523
|
// AsyncIterator objects; they just return a Promise for the value of
|
|
528
524
|
// the final result produced by the iterator.
|
|
@@ -699,13 +695,12 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
|
|
|
699
695
|
// object to not be returned from this call. This ensures that doesn't happen.
|
|
700
696
|
// See https://github.com/facebook/regenerator/issues/274 for more details.
|
|
701
697
|
|
|
702
|
-
Gp
|
|
698
|
+
define(Gp, iteratorSymbol, function () {
|
|
703
699
|
return this;
|
|
704
|
-
};
|
|
705
|
-
|
|
706
|
-
Gp.toString = function () {
|
|
700
|
+
});
|
|
701
|
+
define(Gp, "toString", function () {
|
|
707
702
|
return "[object Generator]";
|
|
708
|
-
};
|
|
703
|
+
});
|
|
709
704
|
|
|
710
705
|
function pushTryEntry(locs) {
|
|
711
706
|
var entry = {
|
|
@@ -1017,14 +1012,19 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
|
|
|
1017
1012
|
} catch (accidentalStrictMode) {
|
|
1018
1013
|
// This module should not be running in strict mode, so the above
|
|
1019
1014
|
// assignment should always work unless something is misconfigured. Just
|
|
1020
|
-
// in case runtime.js accidentally runs in strict mode,
|
|
1015
|
+
// in case runtime.js accidentally runs in strict mode, in modern engines
|
|
1016
|
+
// we can explicitly access globalThis. In older engines we can escape
|
|
1021
1017
|
// strict mode using a global Function call. This could conceivably fail
|
|
1022
1018
|
// if a Content Security Policy forbids using Function, but in that case
|
|
1023
1019
|
// the proper solution is to fix the accidental strict mode problem. If
|
|
1024
1020
|
// you've misconfigured your bundler to force strict mode and applied a
|
|
1025
1021
|
// CSP to forbid Function, and you're not willing to fix either of those
|
|
1026
1022
|
// problems, please detail your unique predicament in a GitHub issue.
|
|
1027
|
-
|
|
1023
|
+
if (typeof globalThis === "object") {
|
|
1024
|
+
globalThis.regeneratorRuntime = runtime;
|
|
1025
|
+
} else {
|
|
1026
|
+
Function("r", "regeneratorRuntime = r")(runtime);
|
|
1027
|
+
}
|
|
1028
1028
|
}
|
|
1029
1029
|
});
|
|
1030
1030
|
|
|
@@ -1505,8 +1505,7 @@ 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
|
|
1509
|
-
'@plasmicapp/host/registerComponent': plasmicHostRegisterComponent
|
|
1508
|
+
'@plasmicapp/host': PlasmicHost
|
|
1510
1509
|
});
|
|
1511
1510
|
}
|
|
1512
1511
|
|
|
@@ -2719,6 +2718,24 @@ function makeElement(loader, lookup, opts) {
|
|
|
2719
2718
|
}));
|
|
2720
2719
|
}
|
|
2721
2720
|
|
|
2721
|
+
Object.defineProperty(exports, 'DataCtxReader', {
|
|
2722
|
+
enumerable: true,
|
|
2723
|
+
get: function () {
|
|
2724
|
+
return PlasmicHost.DataCtxReader;
|
|
2725
|
+
}
|
|
2726
|
+
});
|
|
2727
|
+
Object.defineProperty(exports, 'DataProvider', {
|
|
2728
|
+
enumerable: true,
|
|
2729
|
+
get: function () {
|
|
2730
|
+
return PlasmicHost.DataProvider;
|
|
2731
|
+
}
|
|
2732
|
+
});
|
|
2733
|
+
Object.defineProperty(exports, 'PageParamsProvider', {
|
|
2734
|
+
enumerable: true,
|
|
2735
|
+
get: function () {
|
|
2736
|
+
return PlasmicHost.PageParamsProvider;
|
|
2737
|
+
}
|
|
2738
|
+
});
|
|
2722
2739
|
Object.defineProperty(exports, 'PlasmicCanvasContext', {
|
|
2723
2740
|
enumerable: true,
|
|
2724
2741
|
get: function () {
|
|
@@ -2737,12 +2754,30 @@ Object.defineProperty(exports, 'repeatedElement', {
|
|
|
2737
2754
|
return PlasmicHost.repeatedElement;
|
|
2738
2755
|
}
|
|
2739
2756
|
});
|
|
2757
|
+
Object.defineProperty(exports, 'useDataEnv', {
|
|
2758
|
+
enumerable: true,
|
|
2759
|
+
get: function () {
|
|
2760
|
+
return PlasmicHost.useDataEnv;
|
|
2761
|
+
}
|
|
2762
|
+
});
|
|
2740
2763
|
Object.defineProperty(exports, 'usePlasmicCanvasContext', {
|
|
2741
2764
|
enumerable: true,
|
|
2742
2765
|
get: function () {
|
|
2743
2766
|
return PlasmicHost.usePlasmicCanvasContext;
|
|
2744
2767
|
}
|
|
2745
2768
|
});
|
|
2769
|
+
Object.defineProperty(exports, 'useSelector', {
|
|
2770
|
+
enumerable: true,
|
|
2771
|
+
get: function () {
|
|
2772
|
+
return PlasmicHost.useSelector;
|
|
2773
|
+
}
|
|
2774
|
+
});
|
|
2775
|
+
Object.defineProperty(exports, 'useSelectors', {
|
|
2776
|
+
enumerable: true,
|
|
2777
|
+
get: function () {
|
|
2778
|
+
return PlasmicHost.useSelectors;
|
|
2779
|
+
}
|
|
2780
|
+
});
|
|
2746
2781
|
Object.defineProperty(exports, 'usePlasmicQueryData', {
|
|
2747
2782
|
enumerable: true,
|
|
2748
2783
|
get: function () {
|