@insforge/react 0.5.4 → 0.5.5

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.cjs CHANGED
@@ -107,7 +107,10 @@ var NavigationContext = react.createContext(null);
107
107
  function useNavigationAdapter() {
108
108
  const adapter = react.useContext(NavigationContext);
109
109
  if (!adapter) {
110
- throw new Error("useNavigationAdapter must be used within NavigationProvider");
110
+ return {
111
+ useSearchParams: () => new URLSearchParams(),
112
+ Link: ({ href, children }) => /* @__PURE__ */ jsxRuntime.jsx("a", { href, children })
113
+ };
111
114
  }
112
115
  return adapter;
113
116
  }