@plasmicapp/loader-react 1.0.145 → 1.0.148
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/loader-react.cjs.development.js +4 -4
- package/dist/loader-react.cjs.development.js.map +1 -1
- package/dist/loader-react.cjs.production.min.js +1 -1
- package/dist/loader-react.cjs.production.min.js.map +1 -1
- package/dist/loader-react.esm.js +4 -4
- package/dist/loader-react.esm.js.map +1 -1
- package/dist/loader.d.ts +1 -0
- package/package.json +5 -5
|
@@ -1496,6 +1496,7 @@ var InternalPlasmicComponentLoader = /*#__PURE__*/function () {
|
|
|
1496
1496
|
activeSplits: []
|
|
1497
1497
|
};
|
|
1498
1498
|
this.substitutedComponents = {};
|
|
1499
|
+
this.substitutedGlobalVariantHooks = {};
|
|
1499
1500
|
this.registry = loaderCore.Registry.getInstance();
|
|
1500
1501
|
this.fetcher = new loaderCore.PlasmicModulesFetcher(opts);
|
|
1501
1502
|
this.registerModules({
|
|
@@ -1508,7 +1509,8 @@ var InternalPlasmicComponentLoader = /*#__PURE__*/function () {
|
|
|
1508
1509
|
'@plasmicapp/query': PlasmicQuery,
|
|
1509
1510
|
'@plasmicapp/host': PlasmicHost,
|
|
1510
1511
|
'@plasmicapp/loader-runtime-registry': {
|
|
1511
|
-
components: this.substitutedComponents
|
|
1512
|
+
components: this.substitutedComponents,
|
|
1513
|
+
globalVariantHooks: this.substitutedGlobalVariantHooks
|
|
1512
1514
|
}
|
|
1513
1515
|
});
|
|
1514
1516
|
}
|
|
@@ -1983,9 +1985,7 @@ var InternalPlasmicComponentLoader = /*#__PURE__*/function () {
|
|
|
1983
1985
|
var globalGroup = _step2.value;
|
|
1984
1986
|
|
|
1985
1987
|
if (globalGroup.type !== 'global-screen') {
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
this.registry.register(globalGroup.contextFile, (_this$registry$regist = {}, _this$registry$regist[globalGroup.useName] = createUseGlobalVariant(globalGroup.name, globalGroup.projectId), _this$registry$regist));
|
|
1988
|
+
this.substitutedGlobalVariantHooks[globalGroup.id] = createUseGlobalVariant(globalGroup.name, globalGroup.projectId);
|
|
1989
1989
|
}
|
|
1990
1990
|
}
|
|
1991
1991
|
|