@plasmicapp/loader-react 1.0.395 → 1.0.396
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/index.d.ts +2 -5
- package/dist/index.esm.js +3 -11
- package/dist/index.esm.js.map +3 -3
- package/dist/index.js +2 -10
- package/dist/index.js.map +2 -2
- package/dist/react-server.d.ts +2 -5
- package/dist/react-server.esm.js +3 -13
- package/dist/react-server.esm.js.map +3 -3
- package/dist/react-server.js +2 -12
- package/dist/react-server.js.map +2 -2
- package/package.json +3 -3
package/dist/react-server.js
CHANGED
|
@@ -537,7 +537,6 @@ var BaseInternalPlasmicComponentLoader = class {
|
|
|
537
537
|
};
|
|
538
538
|
this.opts = args.opts;
|
|
539
539
|
this.fetcher = args.fetcher;
|
|
540
|
-
this.tracker = args.tracker;
|
|
541
540
|
this.onBundleMerged = args.onBundleMerged;
|
|
542
541
|
this.onBundleFetched = args.onBundleFetched;
|
|
543
542
|
this.registerModules(args.builtinModules);
|
|
@@ -637,7 +636,6 @@ var BaseInternalPlasmicComponentLoader = class {
|
|
|
637
636
|
return __async(this, null, function* () {
|
|
638
637
|
var _a2;
|
|
639
638
|
const bundle = yield this.fetcher.fetchAllData();
|
|
640
|
-
this.tracker.trackFetch();
|
|
641
639
|
this.mergeBundle(bundle);
|
|
642
640
|
(_a2 = this.onBundleFetched) == null ? void 0 : _a2.call(this);
|
|
643
641
|
return bundle;
|
|
@@ -740,8 +738,7 @@ ${this.bundle.bundleKey}`
|
|
|
740
738
|
getLookup() {
|
|
741
739
|
return new ComponentLookup(this.getBundle(), this.registry);
|
|
742
740
|
}
|
|
743
|
-
trackConversion(
|
|
744
|
-
this.tracker.trackConversion(value);
|
|
741
|
+
trackConversion(_value = 0) {
|
|
745
742
|
}
|
|
746
743
|
getActiveVariation(opts) {
|
|
747
744
|
return __async(this, null, function* () {
|
|
@@ -765,8 +762,7 @@ ${this.bundle.bundleKey}`
|
|
|
765
762
|
)
|
|
766
763
|
);
|
|
767
764
|
}
|
|
768
|
-
trackRender(
|
|
769
|
-
this.tracker.trackRender(opts);
|
|
765
|
+
trackRender(_opts) {
|
|
770
766
|
}
|
|
771
767
|
loadServerQueriesModule(fileName) {
|
|
772
768
|
return this.registry.load(fileName);
|
|
@@ -1109,12 +1105,6 @@ var InternalPrepassPlasmicLoader = class extends BaseInternalPlasmicComponentLoa
|
|
|
1109
1105
|
constructor(opts) {
|
|
1110
1106
|
super({
|
|
1111
1107
|
opts,
|
|
1112
|
-
tracker: new import_loader_core3.PlasmicTracker({
|
|
1113
|
-
projectIds: opts.projects.map((p) => p.id),
|
|
1114
|
-
platform: opts.platform,
|
|
1115
|
-
preview: opts.preview,
|
|
1116
|
-
nativeFetch: opts.nativeFetch
|
|
1117
|
-
}),
|
|
1118
1108
|
onBundleMerged: () => {
|
|
1119
1109
|
this.refreshRegistry();
|
|
1120
1110
|
},
|