@plasmicapp/loader-react 1.0.122 → 1.0.125
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 +1 -1
- package/dist/loader-react.cjs.development.js +40 -0
- 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 +6 -2
- package/dist/loader-react.esm.js.map +1 -1
- package/dist/loader.d.ts +4 -3
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { PlasmicCanvasContext, PlasmicCanvasHost, PrimitiveType, PropType, repeatedElement, usePlasmicCanvasContext, } from '@plasmicapp/host';
|
|
1
|
+
export { DataCtxReader, DataProvider, PageParamsProvider, PlasmicCanvasContext, PlasmicCanvasHost, PrimitiveType, PropType, repeatedElement, useDataEnv, usePlasmicCanvasContext, useSelector, useSelectors, } from '@plasmicapp/host';
|
|
2
2
|
export { ComponentMeta, PageMeta, PageMetadata } from '@plasmicapp/loader-core';
|
|
3
3
|
export { usePlasmicQueryData } from '@plasmicapp/query';
|
|
4
4
|
export { convertBundlesToComponentRenderData } from './bundles';
|
|
@@ -2284,6 +2284,10 @@ var PlasmicComponentLoader = /*#__PURE__*/function () {
|
|
|
2284
2284
|
return getActiveVariation;
|
|
2285
2285
|
}();
|
|
2286
2286
|
|
|
2287
|
+
_proto2.getExternalVariation = function getExternalVariation(variation) {
|
|
2288
|
+
return loaderSplits.getExternalIds(this.getActiveSplits(), variation);
|
|
2289
|
+
};
|
|
2290
|
+
|
|
2287
2291
|
_proto2.getActiveSplits = function getActiveSplits() {
|
|
2288
2292
|
return this.__internal.getActiveSplits();
|
|
2289
2293
|
};
|
|
@@ -2718,6 +2722,24 @@ function makeElement(loader, lookup, opts) {
|
|
|
2718
2722
|
}));
|
|
2719
2723
|
}
|
|
2720
2724
|
|
|
2725
|
+
Object.defineProperty(exports, 'DataCtxReader', {
|
|
2726
|
+
enumerable: true,
|
|
2727
|
+
get: function () {
|
|
2728
|
+
return PlasmicHost.DataCtxReader;
|
|
2729
|
+
}
|
|
2730
|
+
});
|
|
2731
|
+
Object.defineProperty(exports, 'DataProvider', {
|
|
2732
|
+
enumerable: true,
|
|
2733
|
+
get: function () {
|
|
2734
|
+
return PlasmicHost.DataProvider;
|
|
2735
|
+
}
|
|
2736
|
+
});
|
|
2737
|
+
Object.defineProperty(exports, 'PageParamsProvider', {
|
|
2738
|
+
enumerable: true,
|
|
2739
|
+
get: function () {
|
|
2740
|
+
return PlasmicHost.PageParamsProvider;
|
|
2741
|
+
}
|
|
2742
|
+
});
|
|
2721
2743
|
Object.defineProperty(exports, 'PlasmicCanvasContext', {
|
|
2722
2744
|
enumerable: true,
|
|
2723
2745
|
get: function () {
|
|
@@ -2736,12 +2758,30 @@ Object.defineProperty(exports, 'repeatedElement', {
|
|
|
2736
2758
|
return PlasmicHost.repeatedElement;
|
|
2737
2759
|
}
|
|
2738
2760
|
});
|
|
2761
|
+
Object.defineProperty(exports, 'useDataEnv', {
|
|
2762
|
+
enumerable: true,
|
|
2763
|
+
get: function () {
|
|
2764
|
+
return PlasmicHost.useDataEnv;
|
|
2765
|
+
}
|
|
2766
|
+
});
|
|
2739
2767
|
Object.defineProperty(exports, 'usePlasmicCanvasContext', {
|
|
2740
2768
|
enumerable: true,
|
|
2741
2769
|
get: function () {
|
|
2742
2770
|
return PlasmicHost.usePlasmicCanvasContext;
|
|
2743
2771
|
}
|
|
2744
2772
|
});
|
|
2773
|
+
Object.defineProperty(exports, 'useSelector', {
|
|
2774
|
+
enumerable: true,
|
|
2775
|
+
get: function () {
|
|
2776
|
+
return PlasmicHost.useSelector;
|
|
2777
|
+
}
|
|
2778
|
+
});
|
|
2779
|
+
Object.defineProperty(exports, 'useSelectors', {
|
|
2780
|
+
enumerable: true,
|
|
2781
|
+
get: function () {
|
|
2782
|
+
return PlasmicHost.useSelectors;
|
|
2783
|
+
}
|
|
2784
|
+
});
|
|
2745
2785
|
Object.defineProperty(exports, 'usePlasmicQueryData', {
|
|
2746
2786
|
enumerable: true,
|
|
2747
2787
|
get: function () {
|