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