@insforge/react 0.5.4 → 0.5.6

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/forms.js CHANGED
@@ -105,7 +105,10 @@ var NavigationContext = createContext(null);
105
105
  function useNavigationAdapter() {
106
106
  const adapter = useContext(NavigationContext);
107
107
  if (!adapter) {
108
- throw new Error("useNavigationAdapter must be used within NavigationProvider");
108
+ return {
109
+ useSearchParams: () => new URLSearchParams(),
110
+ Link: ({ href, children }) => /* @__PURE__ */ jsx("a", { href, children })
111
+ };
109
112
  }
110
113
  return adapter;
111
114
  }
@@ -644,7 +647,8 @@ function useInsforge() {
644
647
  loginWithOAuth: async () => {
645
648
  },
646
649
  getPublicAuthConfig: async () => null,
647
- baseUrl: ""
650
+ baseUrl: "",
651
+ afterSignInUrl: "/"
648
652
  };
649
653
  }
650
654
  return context;