fastapi-rtk 0.2.24 → 0.2.26

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.
@@ -15,6 +15,6 @@ function useProvideInfo(baseUrl, auth, info = defaultInfo) {
15
15
  query.refetch();
16
16
  }
17
17
  }, [auth.user, query]);
18
- return { baseUrl, info: query.data, loading: query.isFetching, error: query.error };
18
+ return { baseUrl, info: query.data, loading: query.isFetching, error: query.error, fab: info.fab };
19
19
  }
20
20
  exports.useProvideInfo = useProvideInfo;
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const authFetch = require("../utils/authFetch.cjs");
4
- const defaultInfo = { getInfo: authFetch.authInfo };
4
+ const defaultInfo = { getInfo: authFetch.authInfo, fab: true };
5
5
  exports.defaultInfo = defaultInfo;
@@ -13,7 +13,7 @@ function useProvideInfo(baseUrl, auth, info = defaultInfo) {
13
13
  query.refetch();
14
14
  }
15
15
  }, [auth.user, query]);
16
- return { baseUrl, info: query.data, loading: query.isFetching, error: query.error };
16
+ return { baseUrl, info: query.data, loading: query.isFetching, error: query.error, fab: info.fab };
17
17
  }
18
18
  export {
19
19
  useProvideInfo
@@ -1,5 +1,5 @@
1
1
  import { authInfo } from "../utils/authFetch.mjs";
2
- const defaultInfo = { getInfo: authInfo };
2
+ const defaultInfo = { getInfo: authInfo, fab: true };
3
3
  export {
4
4
  defaultInfo
5
5
  };
@@ -6,4 +6,5 @@ export function useProvideInfo(baseUrl: any, auth: any, info?: {
6
6
  info: Record<string, any>;
7
7
  loading: boolean;
8
8
  error: Error;
9
+ fab: any;
9
10
  };
@@ -1,4 +1,5 @@
1
1
  import { authInfo } from '../utils/authFetch';
2
2
  export namespace defaultInfo {
3
3
  export { authInfo as getInfo };
4
+ export let fab: boolean;
4
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fastapi-rtk",
3
- "version": "0.2.24",
3
+ "version": "0.2.26",
4
4
  "private": false,
5
5
  "description": "A React component library for FastAPI in combination with FastAPI React Toolkit backend, built with Mantine, JsonForms, and Zustand.",
6
6
  "license": "MIT",