fastapi-rtk 0.1.24 → 0.1.25

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.
@@ -5,7 +5,6 @@ const index_esm = require("../../../../../../.external/cjs/mantine-react-table@2
5
5
  const Add = require("../../../../ActionIcons/Add/Add.cjs");
6
6
  const Download = require("../../../../ActionIcons/Download/Download.cjs");
7
7
  const Refresh = require("../../../../ActionIcons/Refresh/Refresh.cjs");
8
- const Upload = require("../../../../ActionIcons/Upload/Upload.cjs");
9
8
  function getBasicToolbars(table, rules) {
10
9
  return {
11
10
  toggleGlobalFilter: /* @__PURE__ */ jsxRuntime.jsx(index_esm.MRT_ToggleGlobalFilterButton, { table, disabled: false }, "basic-toggleGlobalFilter"),
@@ -13,7 +12,7 @@ function getBasicToolbars(table, rules) {
13
12
  refresh: /* @__PURE__ */ jsxRuntime.jsx(Refresh.Refresh, { tooltipProps: { label: table.options.localization.refresh } }, "basic-refresh"),
14
13
  add: (rules == null ? void 0 : rules.add) && /* @__PURE__ */ jsxRuntime.jsx(Add.Add, { tooltipProps: { label: table.options.localization.add } }, "basic-add"),
15
14
  download: (rules == null ? void 0 : rules.download) && /* @__PURE__ */ jsxRuntime.jsx(Download.Download, { tooltipProps: { label: table.options.localization.download } }, "basic-download"),
16
- upload: (rules == null ? void 0 : rules.upload) && /* @__PURE__ */ jsxRuntime.jsx(Upload.Upload, { tooltipProps: { label: table.options.localization.upload } }, "basic-upload"),
15
+ // upload: rules?.upload && <Upload key="basic-upload" tooltipProps={{ label: table.options.localization.upload }} />, //! Disabled until further notice
17
16
  showHideColumns: /* @__PURE__ */ jsxRuntime.jsx(index_esm.MRT_ShowHideColumnsButton, { table }, "basic-showHideColumns"),
18
17
  toggleDensePadding: /* @__PURE__ */ jsxRuntime.jsx(index_esm.MRT_ToggleDensePaddingButton, { table }, "basic-toggleDensePadding"),
19
18
  toggleFullScreen: /* @__PURE__ */ jsxRuntime.jsx(index_esm.MRT_ToggleFullScreenButton, { table }, "basic-toggleFullScreen")
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const constants = require("fastapi-rtk/constants");
4
4
  const React = require("react");
5
- const react = require("../../../../../.external/cjs/zustand@5.0.5_@types_react@18.3.22_react@18.3.1/zustand/esm/react.cjs");
5
+ const react = require("../../../../../.external/cjs/zustand@5.0.5_@types_react@18.3.23_react@18.3.1/zustand/esm/react.cjs");
6
6
  const useProvideForm = () => {
7
7
  const [storeAdd] = React.useState(
8
8
  () => react.create((set, get) => ({
@@ -3,7 +3,6 @@ import { MRT_ToggleFullScreenButton, MRT_ToggleDensePaddingButton, MRT_ShowHideC
3
3
  import { Add } from "../../../../ActionIcons/Add/Add.mjs";
4
4
  import { Download } from "../../../../ActionIcons/Download/Download.mjs";
5
5
  import { Refresh } from "../../../../ActionIcons/Refresh/Refresh.mjs";
6
- import { Upload } from "../../../../ActionIcons/Upload/Upload.mjs";
7
6
  function getBasicToolbars(table, rules) {
8
7
  return {
9
8
  toggleGlobalFilter: /* @__PURE__ */ jsx(MRT_ToggleGlobalFilterButton, { table, disabled: false }, "basic-toggleGlobalFilter"),
@@ -11,7 +10,7 @@ function getBasicToolbars(table, rules) {
11
10
  refresh: /* @__PURE__ */ jsx(Refresh, { tooltipProps: { label: table.options.localization.refresh } }, "basic-refresh"),
12
11
  add: (rules == null ? void 0 : rules.add) && /* @__PURE__ */ jsx(Add, { tooltipProps: { label: table.options.localization.add } }, "basic-add"),
13
12
  download: (rules == null ? void 0 : rules.download) && /* @__PURE__ */ jsx(Download, { tooltipProps: { label: table.options.localization.download } }, "basic-download"),
14
- upload: (rules == null ? void 0 : rules.upload) && /* @__PURE__ */ jsx(Upload, { tooltipProps: { label: table.options.localization.upload } }, "basic-upload"),
13
+ // upload: rules?.upload && <Upload key="basic-upload" tooltipProps={{ label: table.options.localization.upload }} />, //! Disabled until further notice
15
14
  showHideColumns: /* @__PURE__ */ jsx(MRT_ShowHideColumnsButton, { table }, "basic-showHideColumns"),
16
15
  toggleDensePadding: /* @__PURE__ */ jsx(MRT_ToggleDensePaddingButton, { table }, "basic-toggleDensePadding"),
17
16
  toggleFullScreen: /* @__PURE__ */ jsx(MRT_ToggleFullScreenButton, { table }, "basic-toggleFullScreen")
@@ -1,6 +1,6 @@
1
1
  import { initialState, VIEW_MODE } from "fastapi-rtk/constants";
2
2
  import { useState } from "react";
3
- import { create } from "../../../../../.external/esm/zustand@5.0.5_@types_react@18.3.22_react@18.3.1/zustand/esm/react.mjs";
3
+ import { create } from "../../../../../.external/esm/zustand@5.0.5_@types_react@18.3.23_react@18.3.1/zustand/esm/react.mjs";
4
4
  const useProvideForm = () => {
5
5
  const [storeAdd] = useState(
6
6
  () => create((set, get) => ({
@@ -10,7 +10,6 @@ export function getBasicToolbars(table: any, rules?: Record<string, boolean>): {
10
10
  refresh: import("react").JSX.Element;
11
11
  add: import("react").JSX.Element;
12
12
  download: import("react").JSX.Element;
13
- upload: import("react").JSX.Element;
14
13
  showHideColumns: import("react").JSX.Element;
15
14
  toggleDensePadding: import("react").JSX.Element;
16
15
  toggleFullScreen: import("react").JSX.Element;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const React = require("react");
4
4
  const compareStateWithStore = require("../utils/compareStateWithStore.cjs");
5
5
  const createProxy = require("../utils/createProxy.cjs");
6
- const react = require("../../../.external/cjs/zustand@5.0.5_@types_react@18.3.22_react@18.3.1/zustand/esm/react.cjs");
6
+ const react = require("../../../.external/cjs/zustand@5.0.5_@types_react@18.3.23_react@18.3.1/zustand/esm/react.cjs");
7
7
  function useProxy(obj) {
8
8
  const [store] = React.useState(() => react.create(() => ({ ...obj })));
9
9
  const [proxy] = React.useState(() => createProxy.createProxy(store, ["getState", "setState"]));
@@ -1,7 +1,7 @@
1
1
  import { useState, useEffect } from "react";
2
2
  import { compareStateWithStore } from "../utils/compareStateWithStore.mjs";
3
3
  import { createProxy } from "../utils/createProxy.mjs";
4
- import { create } from "../../../.external/esm/zustand@5.0.5_@types_react@18.3.22_react@18.3.1/zustand/esm/react.mjs";
4
+ import { create } from "../../../.external/esm/zustand@5.0.5_@types_react@18.3.23_react@18.3.1/zustand/esm/react.mjs";
5
5
  function useProxy(obj) {
6
6
  const [store] = useState(() => create(() => ({ ...obj })));
7
7
  const [proxy] = useState(() => createProxy(store, ["getState", "setState"]));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fastapi-rtk",
3
- "version": "0.1.24",
3
+ "version": "0.1.25",
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",