@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.
@@ -85,36 +85,6 @@ function _setPrototypeOf(o, p) {
85
85
  return _setPrototypeOf(o, p);
86
86
  }
87
87
 
88
- function _isNativeReflectConstruct() {
89
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
90
- if (Reflect.construct.sham) return false;
91
- if (typeof Proxy === "function") return true;
92
-
93
- try {
94
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
95
- return true;
96
- } catch (e) {
97
- return false;
98
- }
99
- }
100
-
101
- function _construct(Parent, args, Class) {
102
- if (_isNativeReflectConstruct()) {
103
- _construct = Reflect.construct;
104
- } else {
105
- _construct = function _construct(Parent, args, Class) {
106
- var a = [null];
107
- a.push.apply(a, args);
108
- var Constructor = Function.bind.apply(Parent, a);
109
- var instance = new Constructor();
110
- if (Class) _setPrototypeOf(instance, Class.prototype);
111
- return instance;
112
- };
113
- }
114
-
115
- return _construct.apply(null, arguments);
116
- }
117
-
118
88
  function _unsupportedIterableToArray(o, minLen) {
119
89
  if (!o) return;
120
90
  if (typeof o === "string") return _arrayLikeToArray(o, minLen);
@@ -206,6 +176,10 @@ function prepComponentData(bundle) {
206
176
  return x.globalContextsProviderFileName;
207
177
  }).filter(function (x) {
208
178
  return !!x;
179
+ }), bundle.components.filter(function (c) {
180
+ return c.isGlobalContextProvider;
181
+ }).map(function (c) {
182
+ return c.entry;
209
183
  }), bundle.globalGroups.map(function (g) {
210
184
  return g.contextFile;
211
185
  })));
@@ -1177,7 +1151,7 @@ function getLookupSpecName(lookup) {
1177
1151
  }
1178
1152
  }
1179
1153
  function uniq(elements) {
1180
- return _construct(Array, new Set(elements));
1154
+ return Array.from(new Set(elements));
1181
1155
  }
1182
1156
 
1183
1157
  function getFirstCompMeta(metas, lookup) {