@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 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 _useKratosContext = useKratosContext(), baseComponents = _useKratosContext.components, baseUseHandleFlowError = _useKratosContext.useHandleFlowError, baseExcludeScripts = _useKratosContext.excludeScripts;
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 _useKratosContext = useKratosContext(), baseComponents = _useKratosContext.components, baseUseHandleFlowError = _useKratosContext.useHandleFlowError, baseExcludeScripts = _useKratosContext.excludeScripts;
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),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leancodepl/kratos",
3
- "version": "7.3.1",
3
+ "version": "7.3.3",
4
4
  "license": "Apache-2.0",
5
5
  "dependencies": {
6
6
  "@ory/client": ">=1.4.3",