@leancodepl/kratos 7.3.1 → 7.3.3
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/index.cjs.js +1 -1
- package/index.esm.js +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -862,7 +862,7 @@ function _object_spread$c(target) {
|
|
|
862
862
|
}
|
|
863
863
|
function KratosContextProvider(param) {
|
|
864
864
|
var _param_components = param.components, components = _param_components === void 0 ? {} : _param_components, useHandleFlowError = param.useHandleFlowError, excludeScripts = param.excludeScripts, children = param.children;
|
|
865
|
-
var
|
|
865
|
+
var _useContext = react.useContext(kratosContext), baseComponents = _useContext.components, baseUseHandleFlowError = _useContext.useHandleFlowError, baseExcludeScripts = _useContext.excludeScripts;
|
|
866
866
|
var value = react.useMemo(function() {
|
|
867
867
|
return {
|
|
868
868
|
components: _object_spread$c({}, baseComponents !== null && baseComponents !== void 0 ? baseComponents : defaultComponents, components),
|
package/index.esm.js
CHANGED
|
@@ -853,7 +853,7 @@ function _object_spread$c(target) {
|
|
|
853
853
|
}
|
|
854
854
|
function KratosContextProvider(param) {
|
|
855
855
|
var _param_components = param.components, components = _param_components === void 0 ? {} : _param_components, useHandleFlowError = param.useHandleFlowError, excludeScripts = param.excludeScripts, children = param.children;
|
|
856
|
-
var
|
|
856
|
+
var _useContext = useContext(kratosContext), baseComponents = _useContext.components, baseUseHandleFlowError = _useContext.useHandleFlowError, baseExcludeScripts = _useContext.excludeScripts;
|
|
857
857
|
var value = useMemo(function() {
|
|
858
858
|
return {
|
|
859
859
|
components: _object_spread$c({}, baseComponents !== null && baseComponents !== void 0 ? baseComponents : defaultComponents, components),
|