@plasmicapp/loader-react 1.0.396-beta.0 → 1.0.397

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.
@@ -248,7 +248,6 @@ function prepComponentData(bundle, compMetas, opts) {
248
248
  "entrypoint.css",
249
249
  ...compPaths,
250
250
  "root-provider.js",
251
- ...bundle.projects.map((x) => x.styleTokensProviderFileName).filter((x) => !!x),
252
251
  ...bundle.projects.map((x) => x.globalContextsProviderFileName).filter((x) => !!x),
253
252
  // We need to explicitly include global context provider components
254
253
  // to make sure they are kept in bundle.components. That's because
@@ -416,16 +415,6 @@ var ComponentLookup = class {
416
415
  context: this.registry.load(meta.contextFile).default
417
416
  }));
418
417
  }
419
- /** Returns StyleTokensProvider if the project has style token overrides. */
420
- maybeGetStyleTokensProvider(spec) {
421
- const compMeta = getFirstCompMeta(this.bundle.components, spec);
422
- const projectMeta = compMeta ? this.bundle.projects.find((x) => x.id === compMeta.projectId) : void 0;
423
- if (!projectMeta || !projectMeta.styleTokensProviderFileName || !this.registry.hasModule(projectMeta.styleTokensProviderFileName) || !projectMeta.hasStyleTokenOverrides) {
424
- return void 0;
425
- }
426
- const entry = this.registry.load(projectMeta.styleTokensProviderFileName);
427
- return entry.StyleTokensProvider;
428
- }
429
418
  getGlobalContextsProvider(spec) {
430
419
  const compMeta = getFirstCompMeta(this.bundle.components, spec);
431
420
  const projectMeta = compMeta ? this.bundle.projects.find((x) => x.id === compMeta.projectId) : void 0;
@@ -548,7 +537,6 @@ var BaseInternalPlasmicComponentLoader = class {
548
537
  };
549
538
  this.opts = args.opts;
550
539
  this.fetcher = args.fetcher;
551
- this.tracker = args.tracker;
552
540
  this.onBundleMerged = args.onBundleMerged;
553
541
  this.onBundleFetched = args.onBundleFetched;
554
542
  this.registerModules(args.builtinModules);
@@ -648,7 +636,6 @@ var BaseInternalPlasmicComponentLoader = class {
648
636
  return __async(this, null, function* () {
649
637
  var _a2;
650
638
  const bundle = yield this.fetcher.fetchAllData();
651
- this.tracker.trackFetch();
652
639
  this.mergeBundle(bundle);
653
640
  (_a2 = this.onBundleFetched) == null ? void 0 : _a2.call(this);
654
641
  return bundle;
@@ -751,8 +738,7 @@ ${this.bundle.bundleKey}`
751
738
  getLookup() {
752
739
  return new ComponentLookup(this.getBundle(), this.registry);
753
740
  }
754
- trackConversion(value = 0) {
755
- this.tracker.trackConversion(value);
741
+ trackConversion(_value = 0) {
756
742
  }
757
743
  getActiveVariation(opts) {
758
744
  return __async(this, null, function* () {
@@ -776,8 +762,7 @@ ${this.bundle.bundleKey}`
776
762
  )
777
763
  );
778
764
  }
779
- trackRender(opts) {
780
- this.tracker.trackRender(opts);
765
+ trackRender(_opts) {
781
766
  }
782
767
  loadServerQueriesModule(fileName) {
783
768
  return this.registry.load(fileName);
@@ -1120,12 +1105,6 @@ var InternalPrepassPlasmicLoader = class extends BaseInternalPlasmicComponentLoa
1120
1105
  constructor(opts) {
1121
1106
  super({
1122
1107
  opts,
1123
- tracker: new import_loader_core3.PlasmicTracker({
1124
- projectIds: opts.projects.map((p) => p.id),
1125
- platform: opts.platform,
1126
- preview: opts.preview,
1127
- nativeFetch: opts.nativeFetch
1128
- }),
1129
1108
  onBundleMerged: () => {
1130
1109
  this.refreshRegistry();
1131
1110
  },