@plasmicapp/loader-react 1.0.213 → 1.0.215

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.
@@ -1735,6 +1735,8 @@ function parseFetchComponentDataArgs() {
1735
1735
  };
1736
1736
  }
1737
1737
 
1738
+ var SUBSTITUTED_COMPONENTS = {};
1739
+ var SUBSTITUTED_GLOBAL_VARIANT_HOOKS = {};
1738
1740
  var InternalPlasmicComponentLoader = /*#__PURE__*/function () {
1739
1741
  function InternalPlasmicComponentLoader(opts) {
1740
1742
  var _this = this;
@@ -1743,8 +1745,6 @@ var InternalPlasmicComponentLoader = /*#__PURE__*/function () {
1743
1745
  this.subs = [];
1744
1746
  this.roots = [];
1745
1747
  this.globalVariants = [];
1746
- this.substitutedComponents = {};
1747
- this.substitutedGlobalVariantHooks = {};
1748
1748
  this.tracker = new PlasmicTracker({
1749
1749
  projectIds: opts.projects.map(function (p) {
1750
1750
  return p.id;
@@ -1776,8 +1776,8 @@ var InternalPlasmicComponentLoader = /*#__PURE__*/function () {
1776
1776
  '@plasmicapp/data-sources-context': PlasmicDataSourcesContext,
1777
1777
  '@plasmicapp/host': PlasmicHost,
1778
1778
  '@plasmicapp/loader-runtime-registry': {
1779
- components: this.substitutedComponents,
1780
- globalVariantHooks: this.substitutedGlobalVariantHooks
1779
+ components: SUBSTITUTED_COMPONENTS,
1780
+ globalVariantHooks: SUBSTITUTED_GLOBAL_VARIANT_HOOKS
1781
1781
  }
1782
1782
  });
1783
1783
  }
@@ -1948,7 +1948,7 @@ var InternalPlasmicComponentLoader = /*#__PURE__*/function () {
1948
1948
  var sub = _step.value;
1949
1949
  var metas = getCompMetas(_this3.getBundle().components, sub.lookup);
1950
1950
  metas.forEach(function (meta) {
1951
- _this3.substitutedComponents[meta.id] = sub.component;
1951
+ SUBSTITUTED_COMPONENTS[meta.id] = sub.component;
1952
1952
  });
1953
1953
  };
1954
1954
  // Once we have received data, we register components to
@@ -1967,7 +1967,7 @@ var InternalPlasmicComponentLoader = /*#__PURE__*/function () {
1967
1967
  for (var _iterator2 = _createForOfIteratorHelperLoose(this.getBundle().globalGroups), _step2; !(_step2 = _iterator2()).done;) {
1968
1968
  var globalGroup = _step2.value;
1969
1969
  if (globalGroup.type !== 'global-screen') {
1970
- this.substitutedGlobalVariantHooks[globalGroup.id] = createUseGlobalVariant(globalGroup.name, globalGroup.projectId);
1970
+ SUBSTITUTED_GLOBAL_VARIANT_HOOKS[globalGroup.id] = createUseGlobalVariant(globalGroup.name, globalGroup.projectId);
1971
1971
  }
1972
1972
  }
1973
1973
  this.registry.updateModules(this.getBundle());