@plasmicapp/loader-react 1.0.159 → 1.0.162
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 +5 -31
- 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 +5 -31
- package/dist/loader-react.esm.js.map +1 -1
- package/package.json +5 -5
|
@@ -88,36 +88,6 @@ function _setPrototypeOf(o, p) {
|
|
|
88
88
|
return _setPrototypeOf(o, p);
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
function _isNativeReflectConstruct() {
|
|
92
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
93
|
-
if (Reflect.construct.sham) return false;
|
|
94
|
-
if (typeof Proxy === "function") return true;
|
|
95
|
-
|
|
96
|
-
try {
|
|
97
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
98
|
-
return true;
|
|
99
|
-
} catch (e) {
|
|
100
|
-
return false;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
function _construct(Parent, args, Class) {
|
|
105
|
-
if (_isNativeReflectConstruct()) {
|
|
106
|
-
_construct = Reflect.construct;
|
|
107
|
-
} else {
|
|
108
|
-
_construct = function _construct(Parent, args, Class) {
|
|
109
|
-
var a = [null];
|
|
110
|
-
a.push.apply(a, args);
|
|
111
|
-
var Constructor = Function.bind.apply(Parent, a);
|
|
112
|
-
var instance = new Constructor();
|
|
113
|
-
if (Class) _setPrototypeOf(instance, Class.prototype);
|
|
114
|
-
return instance;
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
return _construct.apply(null, arguments);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
91
|
function _unsupportedIterableToArray(o, minLen) {
|
|
122
92
|
if (!o) return;
|
|
123
93
|
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
@@ -209,6 +179,10 @@ function prepComponentData(bundle) {
|
|
|
209
179
|
return x.globalContextsProviderFileName;
|
|
210
180
|
}).filter(function (x) {
|
|
211
181
|
return !!x;
|
|
182
|
+
}), bundle.components.filter(function (c) {
|
|
183
|
+
return c.isGlobalContextProvider;
|
|
184
|
+
}).map(function (c) {
|
|
185
|
+
return c.entry;
|
|
212
186
|
}), bundle.globalGroups.map(function (g) {
|
|
213
187
|
return g.contextFile;
|
|
214
188
|
})));
|
|
@@ -1180,7 +1154,7 @@ function getLookupSpecName(lookup) {
|
|
|
1180
1154
|
}
|
|
1181
1155
|
}
|
|
1182
1156
|
function uniq(elements) {
|
|
1183
|
-
return
|
|
1157
|
+
return Array.from(new Set(elements));
|
|
1184
1158
|
}
|
|
1185
1159
|
|
|
1186
1160
|
function getFirstCompMeta(metas, lookup) {
|