fastapi-rtk 0.2.21 → 0.2.23
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/.external/cjs/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/query.cjs +65 -62
- package/dist/.external/cjs/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/queryObserver.cjs +7 -5
- package/dist/.external/cjs/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/retryer.cjs +9 -18
- package/dist/.external/cjs/{@tanstack_react-query@5.84.1_react@18.3.1 → @tanstack_react-query@5.85.5_react@18.3.1}/@tanstack/react-query/build/modern/errorBoundaryUtils.cjs +1 -1
- package/dist/.external/cjs/{@tanstack_react-query@5.84.1_react@18.3.1 → @tanstack_react-query@5.85.5_react@18.3.1}/@tanstack/react-query/build/modern/useBaseQuery.cjs +2 -2
- package/dist/.external/cjs/{@tanstack_react-query@5.84.1_react@18.3.1 → @tanstack_react-query@5.85.5_react@18.3.1}/@tanstack/react-query/build/modern/useQuery.cjs +1 -1
- package/dist/.external/cjs/lodash@4.17.21/lodash/_baseCreate.cjs +2 -2
- package/dist/.external/cjs/lodash@4.17.21/lodash/_defineProperty.cjs +2 -2
- package/dist/.external/cjs/lodash@4.17.21/lodash/_isMasked.cjs +2 -2
- package/dist/.external/cjs/lodash@4.17.21/lodash/_nodeUtil.cjs +2 -2
- package/dist/.external/cjs/lodash@4.17.21/lodash/fp/_mapping.cjs +2 -2
- package/dist/.external/cjs/lodash@4.17.21/lodash/isArguments.cjs +2 -2
- package/dist/.external/cjs/lodash@4.17.21/lodash/lodash.cjs +14 -14
- package/dist/.external/cjs/{zustand@5.0.7_@types_react@18.3.23_react@18.3.1 → zustand@5.0.8_@types_react@18.3.24_react@18.3.1}/zustand/esm/react.cjs +1 -1
- package/dist/.external/cjs/{zustand@5.0.7_@types_react@18.3.23_react@18.3.1 → zustand@5.0.8_@types_react@18.3.24_react@18.3.1}/zustand/esm/vanilla.cjs +1 -1
- package/dist/.external/esm/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/query.mjs +66 -63
- package/dist/.external/esm/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/queryObserver.mjs +7 -5
- package/dist/.external/esm/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/retryer.mjs +10 -19
- package/dist/.external/esm/{@tanstack_react-query@5.84.1_react@18.3.1 → @tanstack_react-query@5.85.5_react@18.3.1}/@tanstack/react-query/build/modern/errorBoundaryUtils.mjs +1 -1
- package/dist/.external/esm/{@tanstack_react-query@5.84.1_react@18.3.1 → @tanstack_react-query@5.85.5_react@18.3.1}/@tanstack/react-query/build/modern/useBaseQuery.mjs +2 -2
- package/dist/.external/esm/{@tanstack_react-query@5.84.1_react@18.3.1 → @tanstack_react-query@5.85.5_react@18.3.1}/@tanstack/react-query/build/modern/useQuery.mjs +1 -1
- package/dist/.external/esm/lodash@4.17.21/lodash/_baseCreate.mjs +2 -2
- package/dist/.external/esm/lodash@4.17.21/lodash/_defineProperty.mjs +2 -2
- package/dist/.external/esm/lodash@4.17.21/lodash/_isMasked.mjs +2 -2
- package/dist/.external/esm/lodash@4.17.21/lodash/_nodeUtil.mjs +2 -2
- package/dist/.external/esm/lodash@4.17.21/lodash/fp/_mapping.mjs +2 -2
- package/dist/.external/esm/lodash@4.17.21/lodash/isArguments.mjs +2 -2
- package/dist/.external/esm/lodash@4.17.21/lodash/lodash.mjs +14 -14
- package/dist/.external/esm/{zustand@5.0.7_@types_react@18.3.23_react@18.3.1 → zustand@5.0.8_@types_react@18.3.24_react@18.3.1}/zustand/esm/react.mjs +1 -1
- package/dist/.external/esm/{zustand@5.0.7_@types_react@18.3.23_react@18.3.1 → zustand@5.0.8_@types_react@18.3.24_react@18.3.1}/zustand/esm/vanilla.mjs +1 -1
- package/dist/core/cjs/ActionIcons/Modals/CommonModal.cjs +12 -4
- package/dist/core/cjs/Tables/DataGrid/Toolbar/Filter/FilterMenu.cjs +1 -1
- package/dist/core/cjs/Wrappers/ApiProvider/hooks/useProvideApi.cjs +2 -2
- package/dist/core/cjs/Wrappers/ApiProvider/hooks/useProvideForm.cjs +1 -1
- package/dist/core/cjs/Wrappers/Provider/Provider.cjs +2 -2
- package/dist/core/cjs/Wrappers/Provider/hooks/useProvideAuth.cjs +2 -2
- package/dist/core/cjs/Wrappers/Provider/hooks/useProvideInfo.cjs +1 -1
- package/dist/core/esm/ActionIcons/Modals/CommonModal.mjs +12 -4
- package/dist/core/esm/Tables/DataGrid/Toolbar/Filter/FilterMenu.mjs +1 -1
- package/dist/core/esm/Wrappers/ApiProvider/hooks/useProvideApi.mjs +2 -2
- package/dist/core/esm/Wrappers/ApiProvider/hooks/useProvideForm.mjs +1 -1
- package/dist/core/esm/Wrappers/Provider/Provider.mjs +2 -2
- package/dist/core/esm/Wrappers/Provider/hooks/useProvideAuth.mjs +2 -2
- package/dist/core/esm/Wrappers/Provider/hooks/useProvideInfo.mjs +1 -1
- package/dist/core/lib/ActionIcons/Add/AddDialog.d.ts +16 -0
- package/dist/core/lib/ActionIcons/Edit/EditDialog.d.ts +16 -0
- package/dist/core/lib/ActionIcons/Modals/CommonModal.d.ts +16 -0
- package/dist/zustand/cjs/useProxy/useProxy.cjs +1 -1
- package/dist/zustand/esm/useProxy/useProxy.mjs +1 -1
- package/package.json +1 -1
- /package/dist/.external/cjs/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/focusManager.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/infiniteQueryBehavior.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/mutation.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/mutationCache.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/notifyManager.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/onlineManager.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/queryCache.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/queryClient.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/removable.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/subscribable.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/thenable.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/utils.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.84.1_react@18.3.1 → @tanstack_react-query@5.85.5_react@18.3.1}/@tanstack/react-query/build/modern/IsRestoringProvider.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.84.1_react@18.3.1 → @tanstack_react-query@5.85.5_react@18.3.1}/@tanstack/react-query/build/modern/QueryClientProvider.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.84.1_react@18.3.1 → @tanstack_react-query@5.85.5_react@18.3.1}/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.84.1_react@18.3.1 → @tanstack_react-query@5.85.5_react@18.3.1}/@tanstack/react-query/build/modern/suspense.cjs +0 -0
- /package/dist/.external/cjs/{mantine-form-yup-resolver@2.0.0_@mantine_form@8.2.4_yup@1.7.0 → mantine-form-yup-resolver@2.0.0_@mantine_form@8.2.7_yup@1.7.0}/mantine-form-yup-resolver/dist/esm/index.cjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/focusManager.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/infiniteQueryBehavior.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/mutation.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/mutationCache.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/notifyManager.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/onlineManager.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/queryCache.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/queryClient.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/removable.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/subscribable.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/thenable.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/utils.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.84.1_react@18.3.1 → @tanstack_react-query@5.85.5_react@18.3.1}/@tanstack/react-query/build/modern/IsRestoringProvider.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.84.1_react@18.3.1 → @tanstack_react-query@5.85.5_react@18.3.1}/@tanstack/react-query/build/modern/QueryClientProvider.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.84.1_react@18.3.1 → @tanstack_react-query@5.85.5_react@18.3.1}/@tanstack/react-query/build/modern/QueryErrorResetBoundary.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.84.1_react@18.3.1 → @tanstack_react-query@5.85.5_react@18.3.1}/@tanstack/react-query/build/modern/suspense.mjs +0 -0
- /package/dist/.external/esm/{mantine-form-yup-resolver@2.0.0_@mantine_form@8.2.4_yup@1.7.0 → mantine-form-yup-resolver@2.0.0_@mantine_form@8.2.7_yup@1.7.0}/mantine-form-yup-resolver/dist/esm/index.mjs +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const useQuery = require("../../../../../.external/cjs/@tanstack_react-query@5.
|
|
4
|
-
const QueryClientProvider = require("../../../../../.external/cjs/@tanstack_react-query@5.
|
|
3
|
+
const useQuery = require("../../../../../.external/cjs/@tanstack_react-query@5.85.5_react@18.3.1/@tanstack/react-query/build/modern/useQuery.cjs");
|
|
4
|
+
const QueryClientProvider = require("../../../../../.external/cjs/@tanstack_react-query@5.85.5_react@18.3.1/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
|
|
5
5
|
const React = require("react");
|
|
6
6
|
const authFetch = require("../utils/authFetch.cjs");
|
|
7
7
|
const userCRUD = require("../utils/userCRUD.cjs");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const useQuery = require("../../../../../.external/cjs/@tanstack_react-query@5.
|
|
3
|
+
const useQuery = require("../../../../../.external/cjs/@tanstack_react-query@5.85.5_react@18.3.1/@tanstack/react-query/build/modern/useQuery.cjs");
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const authFetch = require("../utils/authFetch.cjs");
|
|
6
6
|
const defaultInfo = { getInfo: authFetch.authInfo };
|
|
@@ -63,7 +63,10 @@ function CommonModal({
|
|
|
63
63
|
!(titleOptions == null ? void 0 : titleOptions.hideOverlay) && /* @__PURE__ */ jsx(
|
|
64
64
|
CloseButton,
|
|
65
65
|
{
|
|
66
|
-
onClick: () =>
|
|
66
|
+
onClick: (e) => {
|
|
67
|
+
e == null ? void 0 : e.stopPropagation();
|
|
68
|
+
setView(view !== VIEW_MODE.OVERLAY ? VIEW_MODE.OVERLAY : VIEW_MODE.NORMAL);
|
|
69
|
+
},
|
|
67
70
|
title: view !== VIEW_MODE.OVERLAY ? "Overlay" : "Exit overlay",
|
|
68
71
|
icon: /* @__PURE__ */ jsx(
|
|
69
72
|
Icon,
|
|
@@ -71,13 +74,17 @@ function CommonModal({
|
|
|
71
74
|
icon: view !== VIEW_MODE.OVERLAY ? "tabler:stack-forward" : "tabler:stack",
|
|
72
75
|
fontSize: "1.25rem"
|
|
73
76
|
}
|
|
74
|
-
)
|
|
77
|
+
),
|
|
78
|
+
...parseFromValuesOrFunc(titleOptions == null ? void 0 : titleOptions.overlayButtonProps, { view, setView })
|
|
75
79
|
}
|
|
76
80
|
),
|
|
77
81
|
!(titleOptions == null ? void 0 : titleOptions.hideFullScreen) && /* @__PURE__ */ jsx(
|
|
78
82
|
CloseButton,
|
|
79
83
|
{
|
|
80
|
-
onClick: () =>
|
|
84
|
+
onClick: (e) => {
|
|
85
|
+
e == null ? void 0 : e.stopPropagation();
|
|
86
|
+
setView(view !== VIEW_MODE.FULL_SCREEN ? VIEW_MODE.FULL_SCREEN : VIEW_MODE.NORMAL);
|
|
87
|
+
},
|
|
81
88
|
title: view !== VIEW_MODE.FULL_SCREEN ? "Full screen" : "Exit full screen",
|
|
82
89
|
icon: /* @__PURE__ */ jsx(
|
|
83
90
|
Icon,
|
|
@@ -85,7 +92,8 @@ function CommonModal({
|
|
|
85
92
|
icon: view !== VIEW_MODE.FULL_SCREEN ? "tabler:maximize" : "tabler:minimize",
|
|
86
93
|
fontSize: "1.25rem"
|
|
87
94
|
}
|
|
88
|
-
)
|
|
95
|
+
),
|
|
96
|
+
...parseFromValuesOrFunc(titleOptions == null ? void 0 : titleOptions.fullScreenButtonProps, { view, setView })
|
|
89
97
|
}
|
|
90
98
|
),
|
|
91
99
|
parseFromValuesOrFunc(titleOptions == null ? void 0 : titleOptions.right, { view, setView })
|
|
@@ -2,7 +2,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useProps, Box, Flex, ActionIcon, Divider, Text, ScrollArea, Button, Group } from "@mantine/core";
|
|
3
3
|
import { useForm } from "@mantine/form";
|
|
4
4
|
import { randomId } from "@mantine/hooks";
|
|
5
|
-
import { yupResolver } from "../../../../../../.external/esm/mantine-form-yup-resolver@2.0.0_@mantine_form@8.2.
|
|
5
|
+
import { yupResolver } from "../../../../../../.external/esm/mantine-form-yup-resolver@2.0.0_@mantine_form@8.2.7_yup@1.7.0/mantine-form-yup-resolver/dist/esm/index.mjs";
|
|
6
6
|
import { useEffect } from "react";
|
|
7
7
|
import { object as create$3, array as create$2, mixed as create$8, string as create$6 } from "../../../../../../.external/esm/yup@1.7.0/yup/index.esm.mjs";
|
|
8
8
|
import { useApi } from "../../../../hooks/api/useApi.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useState, useRef, useEffect, useMemo, useCallback } from "react";
|
|
2
2
|
import { convertId, getItemId, urlJoin } from "fastapi-rtk/utils";
|
|
3
3
|
import { useDidUpdate, useSetState } from "@mantine/hooks";
|
|
4
|
-
import { keepPreviousData } from "../../../../../.external/esm/@tanstack_query-core@5.
|
|
5
|
-
import { useQuery } from "../../../../../.external/esm/@tanstack_react-query@5.
|
|
4
|
+
import { keepPreviousData } from "../../../../../.external/esm/@tanstack_query-core@5.85.5/@tanstack/query-core/build/modern/utils.mjs";
|
|
5
|
+
import { useQuery } from "../../../../../.external/esm/@tanstack_react-query@5.85.5_react@18.3.1/@tanstack/react-query/build/modern/useQuery.mjs";
|
|
6
6
|
import { createItem } from "../utils/api/createItem.mjs";
|
|
7
7
|
import { deleteItem } from "../utils/api/deleteItem.mjs";
|
|
8
8
|
import { downloadItems } from "../utils/api/downloadItems.mjs";
|
|
@@ -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.
|
|
3
|
+
import { create } from "../../../../../.external/esm/zustand@5.0.8_@types_react@18.3.24_react@18.3.1/zustand/esm/react.mjs";
|
|
4
4
|
const useProvideForm = () => {
|
|
5
5
|
const [storeAdd] = useState(
|
|
6
6
|
() => create((set, get) => ({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useProxy } from "fastapi-rtk/zustand";
|
|
3
|
-
import { QueryClient } from "../../../../.external/esm/@tanstack_query-core@5.
|
|
4
|
-
import { QueryClientProvider } from "../../../../.external/esm/@tanstack_react-query@5.
|
|
3
|
+
import { QueryClient } from "../../../../.external/esm/@tanstack_query-core@5.85.5/@tanstack/query-core/build/modern/queryClient.mjs";
|
|
4
|
+
import { QueryClientProvider } from "../../../../.external/esm/@tanstack_react-query@5.85.5_react@18.3.1/@tanstack/react-query/build/modern/QueryClientProvider.mjs";
|
|
5
5
|
import { useState, useMemo } from "react";
|
|
6
6
|
import { defaultAuth } from "../../fab-react-toolkit-patch/auth/hooks/useProvideAuth.mjs";
|
|
7
7
|
import { defaultInfo } from "../../fab-react-toolkit-patch/auth/hooks/useProvideInfo.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useQuery } from "../../../../../.external/esm/@tanstack_react-query@5.
|
|
2
|
-
import { useQueryClient } from "../../../../../.external/esm/@tanstack_react-query@5.
|
|
1
|
+
import { useQuery } from "../../../../../.external/esm/@tanstack_react-query@5.85.5_react@18.3.1/@tanstack/react-query/build/modern/useQuery.mjs";
|
|
2
|
+
import { useQueryClient } from "../../../../../.external/esm/@tanstack_react-query@5.85.5_react@18.3.1/@tanstack/react-query/build/modern/QueryClientProvider.mjs";
|
|
3
3
|
import { useState, useCallback, useMemo } from "react";
|
|
4
4
|
import { authOAuthSignin, authResetPassword, authSignout, authSignin } from "../utils/authFetch.mjs";
|
|
5
5
|
import { updateUser, getUser } from "../utils/userCRUD.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useQuery } from "../../../../../.external/esm/@tanstack_react-query@5.
|
|
1
|
+
import { useQuery } from "../../../../../.external/esm/@tanstack_react-query@5.85.5_react@18.3.1/@tanstack/react-query/build/modern/useQuery.mjs";
|
|
2
2
|
import { useEffect } from "react";
|
|
3
3
|
import { authInfo } from "../utils/authFetch.mjs";
|
|
4
4
|
const defaultInfo = { getInfo: authInfo };
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
* @property {React.ReactNode | ((props: { view: string; setView: (view: string) => void }) => React.ReactNode)} right - Content or function to render on the right side of the title.
|
|
5
5
|
* @property {boolean} [hideOverlay=false] - If true, hides the overlay toggle button.
|
|
6
6
|
* @property {boolean} [hideFullScreen=false] - If true, hides the full screen toggle button.
|
|
7
|
+
* @property {Record<string, any> | ((props: { view: string; setView: (view: string) => void }) => Record<string, any>)} [overlayButtonProps] - Additional props to be passed to the overlay toggle button.
|
|
8
|
+
* @property {Record<string, any> | ((props: { view: string; setView: (view: string) => void }) => Record<string, any>)} [fullScreenButtonProps] - Additional props to be passed to the full screen toggle button.
|
|
7
9
|
*/
|
|
8
10
|
/**
|
|
9
11
|
* @typedef {Object} CommonModalProps
|
|
@@ -57,6 +59,20 @@ export type CommonModalTitleOptionsProps = {
|
|
|
57
59
|
* - If true, hides the full screen toggle button.
|
|
58
60
|
*/
|
|
59
61
|
hideFullScreen?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* - Additional props to be passed to the overlay toggle button.
|
|
64
|
+
*/
|
|
65
|
+
overlayButtonProps?: Record<string, any> | ((props: {
|
|
66
|
+
view: string;
|
|
67
|
+
setView: (view: string) => void;
|
|
68
|
+
}) => Record<string, any>);
|
|
69
|
+
/**
|
|
70
|
+
* - Additional props to be passed to the full screen toggle button.
|
|
71
|
+
*/
|
|
72
|
+
fullScreenButtonProps?: Record<string, any> | ((props: {
|
|
73
|
+
view: string;
|
|
74
|
+
setView: (view: string) => void;
|
|
75
|
+
}) => Record<string, any>);
|
|
60
76
|
};
|
|
61
77
|
export type CommonModalProps = {
|
|
62
78
|
/**
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
* @property {React.ReactNode | ((props: { view: string; setView: (view: string) => void }) => React.ReactNode)} right - Content or function to render on the right side of the title.
|
|
5
5
|
* @property {boolean} [hideOverlay=false] - If true, hides the overlay toggle button.
|
|
6
6
|
* @property {boolean} [hideFullScreen=false] - If true, hides the full screen toggle button.
|
|
7
|
+
* @property {Record<string, any> | ((props: { view: string; setView: (view: string) => void }) => Record<string, any>)} [overlayButtonProps] - Additional props to be passed to the overlay toggle button.
|
|
8
|
+
* @property {Record<string, any> | ((props: { view: string; setView: (view: string) => void }) => Record<string, any>)} [fullScreenButtonProps] - Additional props to be passed to the full screen toggle button.
|
|
7
9
|
*/
|
|
8
10
|
/**
|
|
9
11
|
* @typedef {Object} CommonModalProps
|
|
@@ -59,6 +61,20 @@ export type CommonModalTitleOptionsProps = {
|
|
|
59
61
|
* - If true, hides the full screen toggle button.
|
|
60
62
|
*/
|
|
61
63
|
hideFullScreen?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* - Additional props to be passed to the overlay toggle button.
|
|
66
|
+
*/
|
|
67
|
+
overlayButtonProps?: Record<string, any> | ((props: {
|
|
68
|
+
view: string;
|
|
69
|
+
setView: (view: string) => void;
|
|
70
|
+
}) => Record<string, any>);
|
|
71
|
+
/**
|
|
72
|
+
* - Additional props to be passed to the full screen toggle button.
|
|
73
|
+
*/
|
|
74
|
+
fullScreenButtonProps?: Record<string, any> | ((props: {
|
|
75
|
+
view: string;
|
|
76
|
+
setView: (view: string) => void;
|
|
77
|
+
}) => Record<string, any>);
|
|
62
78
|
};
|
|
63
79
|
export type CommonModalProps = {
|
|
64
80
|
/**
|
|
@@ -5,6 +5,8 @@ import { Modal } from '@mantine/core';
|
|
|
5
5
|
* @property {React.ReactNode | ((props: { view: string; setView: (view: string) => void }) => React.ReactNode)} right - Content or function to render on the right side of the title.
|
|
6
6
|
* @property {boolean} [hideOverlay=false] - If true, hides the overlay toggle button.
|
|
7
7
|
* @property {boolean} [hideFullScreen=false] - If true, hides the full screen toggle button.
|
|
8
|
+
* @property {Record<string, any> | ((props: { view: string; setView: (view: string) => void }) => Record<string, any>)} [overlayButtonProps] - Additional props to be passed to the overlay toggle button.
|
|
9
|
+
* @property {Record<string, any> | ((props: { view: string; setView: (view: string) => void }) => Record<string, any>)} [fullScreenButtonProps] - Additional props to be passed to the full screen toggle button.
|
|
8
10
|
*/
|
|
9
11
|
/**
|
|
10
12
|
* @typedef {Object} CommonModalProps
|
|
@@ -56,6 +58,20 @@ export type CommonModalTitleOptionsProps = {
|
|
|
56
58
|
* - If true, hides the full screen toggle button.
|
|
57
59
|
*/
|
|
58
60
|
hideFullScreen?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* - Additional props to be passed to the overlay toggle button.
|
|
63
|
+
*/
|
|
64
|
+
overlayButtonProps?: Record<string, any> | ((props: {
|
|
65
|
+
view: string;
|
|
66
|
+
setView: (view: string) => void;
|
|
67
|
+
}) => Record<string, any>);
|
|
68
|
+
/**
|
|
69
|
+
* - Additional props to be passed to the full screen toggle button.
|
|
70
|
+
*/
|
|
71
|
+
fullScreenButtonProps?: Record<string, any> | ((props: {
|
|
72
|
+
view: string;
|
|
73
|
+
setView: (view: string) => void;
|
|
74
|
+
}) => Record<string, any>);
|
|
59
75
|
};
|
|
60
76
|
export type CommonModalProps = {
|
|
61
77
|
/**
|
|
@@ -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.
|
|
6
|
+
const react = require("../../../.external/cjs/zustand@5.0.8_@types_react@18.3.24_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.
|
|
4
|
+
import { create } from "../../../.external/esm/zustand@5.0.8_@types_react@18.3.24_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
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|