@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.esm.js
CHANGED
|
@@ -54,7 +54,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
54
54
|
import "server-only";
|
|
55
55
|
|
|
56
56
|
// src/loader-server.tsx
|
|
57
|
-
import { PlasmicModulesFetcher as PlasmicModulesFetcher2
|
|
57
|
+
import { PlasmicModulesFetcher as PlasmicModulesFetcher2 } from "@plasmicapp/loader-core";
|
|
58
58
|
import React2 from "react";
|
|
59
59
|
import ReactDOM from "react-dom";
|
|
60
60
|
import * as jsxDevRuntime from "react/jsx-dev-runtime";
|
|
@@ -507,7 +507,6 @@ var BaseInternalPlasmicComponentLoader = class {
|
|
|
507
507
|
};
|
|
508
508
|
this.opts = args.opts;
|
|
509
509
|
this.fetcher = args.fetcher;
|
|
510
|
-
this.tracker = args.tracker;
|
|
511
510
|
this.onBundleMerged = args.onBundleMerged;
|
|
512
511
|
this.onBundleFetched = args.onBundleFetched;
|
|
513
512
|
this.registerModules(args.builtinModules);
|
|
@@ -607,7 +606,6 @@ var BaseInternalPlasmicComponentLoader = class {
|
|
|
607
606
|
return __async(this, null, function* () {
|
|
608
607
|
var _a2;
|
|
609
608
|
const bundle = yield this.fetcher.fetchAllData();
|
|
610
|
-
this.tracker.trackFetch();
|
|
611
609
|
this.mergeBundle(bundle);
|
|
612
610
|
(_a2 = this.onBundleFetched) == null ? void 0 : _a2.call(this);
|
|
613
611
|
return bundle;
|
|
@@ -710,8 +708,7 @@ ${this.bundle.bundleKey}`
|
|
|
710
708
|
getLookup() {
|
|
711
709
|
return new ComponentLookup(this.getBundle(), this.registry);
|
|
712
710
|
}
|
|
713
|
-
trackConversion(
|
|
714
|
-
this.tracker.trackConversion(value);
|
|
711
|
+
trackConversion(_value = 0) {
|
|
715
712
|
}
|
|
716
713
|
getActiveVariation(opts) {
|
|
717
714
|
return __async(this, null, function* () {
|
|
@@ -735,8 +732,7 @@ ${this.bundle.bundleKey}`
|
|
|
735
732
|
)
|
|
736
733
|
);
|
|
737
734
|
}
|
|
738
|
-
trackRender(
|
|
739
|
-
this.tracker.trackRender(opts);
|
|
735
|
+
trackRender(_opts) {
|
|
740
736
|
}
|
|
741
737
|
loadServerQueriesModule(fileName) {
|
|
742
738
|
return this.registry.load(fileName);
|
|
@@ -1079,12 +1075,6 @@ var InternalPrepassPlasmicLoader = class extends BaseInternalPlasmicComponentLoa
|
|
|
1079
1075
|
constructor(opts) {
|
|
1080
1076
|
super({
|
|
1081
1077
|
opts,
|
|
1082
|
-
tracker: new PlasmicTracker2({
|
|
1083
|
-
projectIds: opts.projects.map((p) => p.id),
|
|
1084
|
-
platform: opts.platform,
|
|
1085
|
-
preview: opts.preview,
|
|
1086
|
-
nativeFetch: opts.nativeFetch
|
|
1087
|
-
}),
|
|
1088
1078
|
onBundleMerged: () => {
|
|
1089
1079
|
this.refreshRegistry();
|
|
1090
1080
|
},
|