@fctc/widget-logic 1.2.6 → 1.2.7
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/hooks.d.mts +1 -9
- package/dist/hooks.d.ts +1 -9
- package/dist/hooks.js +22 -44
- package/dist/hooks.mjs +39 -39
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +21 -43
- package/dist/index.mjs +26 -39
- package/package.json +2 -2
package/dist/hooks.d.mts
CHANGED
|
@@ -965,12 +965,4 @@ declare const useClickOutside: ({ handler, events, nodes, refs, }: UseClickOutsi
|
|
|
965
965
|
|
|
966
966
|
declare function useDebounce<T>(value: T, delay: number): [T];
|
|
967
967
|
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
declare const useLoginHandler: () => {};
|
|
971
|
-
|
|
972
|
-
declare const useForgotPasswordHandler: () => {};
|
|
973
|
-
|
|
974
|
-
declare const useResetPasswordHandler: () => {};
|
|
975
|
-
|
|
976
|
-
export { type ActionResultType, AppProvider, type Context, type Record, type ViewResponse, useAppProvider, useAuth, type useAuthType, useCallAction, type useCallActionType, useClickOutside, useConfig, type useConfigType, useDebounce, useDetail, useForgotPasswordHandler, useListData, type useListDataType, useLoginHandler, useMenu, type useMenuType, useProfile, useResetPasswordHandler, useSwitchLocaleHandler, useUser, type useUserType, useViewV2, type useViewV2Type };
|
|
968
|
+
export { type ActionResultType, AppProvider, type Context, type Record, type ViewResponse, useAppProvider, useAuth, type useAuthType, useCallAction, type useCallActionType, useClickOutside, useConfig, type useConfigType, useDebounce, useDetail, useListData, type useListDataType, useMenu, type useMenuType, useProfile, useUser, type useUserType, useViewV2, type useViewV2Type };
|
package/dist/hooks.d.ts
CHANGED
|
@@ -965,12 +965,4 @@ declare const useClickOutside: ({ handler, events, nodes, refs, }: UseClickOutsi
|
|
|
965
965
|
|
|
966
966
|
declare function useDebounce<T>(value: T, delay: number): [T];
|
|
967
967
|
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
declare const useLoginHandler: () => {};
|
|
971
|
-
|
|
972
|
-
declare const useForgotPasswordHandler: () => {};
|
|
973
|
-
|
|
974
|
-
declare const useResetPasswordHandler: () => {};
|
|
975
|
-
|
|
976
|
-
export { type ActionResultType, AppProvider, type Context, type Record, type ViewResponse, useAppProvider, useAuth, type useAuthType, useCallAction, type useCallActionType, useClickOutside, useConfig, type useConfigType, useDebounce, useDetail, useForgotPasswordHandler, useListData, type useListDataType, useLoginHandler, useMenu, type useMenuType, useProfile, useResetPasswordHandler, useSwitchLocaleHandler, useUser, type useUserType, useViewV2, type useViewV2Type };
|
|
968
|
+
export { type ActionResultType, AppProvider, type Context, type Record, type ViewResponse, useAppProvider, useAuth, type useAuthType, useCallAction, type useCallActionType, useClickOutside, useConfig, type useConfigType, useDebounce, useDetail, useListData, type useListDataType, useMenu, type useMenuType, useProfile, useUser, type useUserType, useViewV2, type useViewV2Type };
|
package/dist/hooks.js
CHANGED
|
@@ -15,9 +15,29 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
15
|
}
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
18
19
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
20
|
|
|
20
21
|
// src/hooks.ts
|
|
22
|
+
var hooks_exports2 = {};
|
|
23
|
+
__export(hooks_exports2, {
|
|
24
|
+
AppProvider: () => AppProvider,
|
|
25
|
+
useAppProvider: () => useAppProvider,
|
|
26
|
+
useAuth: () => useAuth,
|
|
27
|
+
useCallAction: () => useCallAction,
|
|
28
|
+
useClickOutside: () => useClickOutside,
|
|
29
|
+
useConfig: () => useConfig,
|
|
30
|
+
useDebounce: () => useDebounce,
|
|
31
|
+
useDetail: () => useDetail,
|
|
32
|
+
useListData: () => useListData,
|
|
33
|
+
useMenu: () => useMenu,
|
|
34
|
+
useProfile: () => useProfile,
|
|
35
|
+
useUser: () => useUser,
|
|
36
|
+
useViewV2: () => useViewV2
|
|
37
|
+
});
|
|
38
|
+
module.exports = __toCommonJS(hooks_exports2);
|
|
39
|
+
|
|
40
|
+
// src/hooks/index.ts
|
|
21
41
|
var hooks_exports = {};
|
|
22
42
|
__export(hooks_exports, {
|
|
23
43
|
AppProvider: () => AppProvider,
|
|
@@ -28,17 +48,12 @@ __export(hooks_exports, {
|
|
|
28
48
|
useConfig: () => useConfig,
|
|
29
49
|
useDebounce: () => useDebounce,
|
|
30
50
|
useDetail: () => useDetail,
|
|
31
|
-
useForgotPasswordHandler: () => useForgotPasswordHandler,
|
|
32
51
|
useListData: () => useListData,
|
|
33
|
-
useLoginHandler: () => useLoginHandler,
|
|
34
52
|
useMenu: () => useMenu,
|
|
35
53
|
useProfile: () => useProfile,
|
|
36
|
-
useResetPasswordHandler: () => useResetPasswordHandler,
|
|
37
|
-
useSwitchLocaleHandler: () => useSwitchLocaleHandler,
|
|
38
54
|
useUser: () => useUser,
|
|
39
55
|
useViewV2: () => useViewV2
|
|
40
56
|
});
|
|
41
|
-
module.exports = __toCommonJS(hooks_exports);
|
|
42
57
|
|
|
43
58
|
// src/hooks/core/use-call-action.ts
|
|
44
59
|
var import_interface_logic = require("@fctc/interface-logic");
|
|
@@ -716,41 +731,8 @@ function useDebounce(value, delay) {
|
|
|
716
731
|
return [debouncedValue];
|
|
717
732
|
}
|
|
718
733
|
|
|
719
|
-
// src/hooks/
|
|
720
|
-
|
|
721
|
-
return {
|
|
722
|
-
// switchLocale,
|
|
723
|
-
// isLoading: switchUserLocale.isPending,
|
|
724
|
-
// error: switchUserLocale.error,
|
|
725
|
-
};
|
|
726
|
-
};
|
|
727
|
-
|
|
728
|
-
// src/hooks/api/use-login.ts
|
|
729
|
-
var useLoginHandler = () => {
|
|
730
|
-
return {
|
|
731
|
-
// login,
|
|
732
|
-
// isLoading: loginMutate.isPending,
|
|
733
|
-
// error: loginMutate.error,
|
|
734
|
-
};
|
|
735
|
-
};
|
|
736
|
-
|
|
737
|
-
// src/hooks/api/use-forgot-password.ts
|
|
738
|
-
var useForgotPasswordHandler = () => {
|
|
739
|
-
return {
|
|
740
|
-
// sendForgotPassword,
|
|
741
|
-
// isLoading: forgotPasswordMutate.isPending,
|
|
742
|
-
// error: forgotPasswordMutate.error,
|
|
743
|
-
};
|
|
744
|
-
};
|
|
745
|
-
|
|
746
|
-
// src/hooks/api/use-reset-password.ts
|
|
747
|
-
var useResetPasswordHandler = () => {
|
|
748
|
-
return {
|
|
749
|
-
// resetPassword,
|
|
750
|
-
// isLoading: resetPasswordMutate.isPending,
|
|
751
|
-
// error: resetPasswordMutate.error,
|
|
752
|
-
};
|
|
753
|
-
};
|
|
734
|
+
// src/hooks/index.ts
|
|
735
|
+
__reExport(hooks_exports, require("@fctc/interface-logic/hook"));
|
|
754
736
|
// Annotate the CommonJS export names for ESM import in node:
|
|
755
737
|
0 && (module.exports = {
|
|
756
738
|
AppProvider,
|
|
@@ -761,13 +743,9 @@ var useResetPasswordHandler = () => {
|
|
|
761
743
|
useConfig,
|
|
762
744
|
useDebounce,
|
|
763
745
|
useDetail,
|
|
764
|
-
useForgotPasswordHandler,
|
|
765
746
|
useListData,
|
|
766
|
-
useLoginHandler,
|
|
767
747
|
useMenu,
|
|
768
748
|
useProfile,
|
|
769
|
-
useResetPasswordHandler,
|
|
770
|
-
useSwitchLocaleHandler,
|
|
771
749
|
useUser,
|
|
772
750
|
useViewV2
|
|
773
751
|
});
|
package/dist/hooks.mjs
CHANGED
|
@@ -1,3 +1,39 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
18
|
+
|
|
19
|
+
// src/hooks/index.ts
|
|
20
|
+
var hooks_exports = {};
|
|
21
|
+
__export(hooks_exports, {
|
|
22
|
+
AppProvider: () => AppProvider,
|
|
23
|
+
useAppProvider: () => useAppProvider,
|
|
24
|
+
useAuth: () => useAuth,
|
|
25
|
+
useCallAction: () => useCallAction,
|
|
26
|
+
useClickOutside: () => useClickOutside,
|
|
27
|
+
useConfig: () => useConfig,
|
|
28
|
+
useDebounce: () => useDebounce,
|
|
29
|
+
useDetail: () => useDetail,
|
|
30
|
+
useListData: () => useListData,
|
|
31
|
+
useMenu: () => useMenu,
|
|
32
|
+
useProfile: () => useProfile,
|
|
33
|
+
useUser: () => useUser,
|
|
34
|
+
useViewV2: () => useViewV2
|
|
35
|
+
});
|
|
36
|
+
|
|
1
37
|
// src/hooks/core/use-call-action.ts
|
|
2
38
|
import { getEnv, useLoadAction, useRunAction } from "@fctc/interface-logic";
|
|
3
39
|
import { useState } from "react";
|
|
@@ -701,41 +737,9 @@ function useDebounce(value, delay) {
|
|
|
701
737
|
return [debouncedValue];
|
|
702
738
|
}
|
|
703
739
|
|
|
704
|
-
// src/hooks/
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
// switchLocale,
|
|
708
|
-
// isLoading: switchUserLocale.isPending,
|
|
709
|
-
// error: switchUserLocale.error,
|
|
710
|
-
};
|
|
711
|
-
};
|
|
712
|
-
|
|
713
|
-
// src/hooks/api/use-login.ts
|
|
714
|
-
var useLoginHandler = () => {
|
|
715
|
-
return {
|
|
716
|
-
// login,
|
|
717
|
-
// isLoading: loginMutate.isPending,
|
|
718
|
-
// error: loginMutate.error,
|
|
719
|
-
};
|
|
720
|
-
};
|
|
721
|
-
|
|
722
|
-
// src/hooks/api/use-forgot-password.ts
|
|
723
|
-
var useForgotPasswordHandler = () => {
|
|
724
|
-
return {
|
|
725
|
-
// sendForgotPassword,
|
|
726
|
-
// isLoading: forgotPasswordMutate.isPending,
|
|
727
|
-
// error: forgotPasswordMutate.error,
|
|
728
|
-
};
|
|
729
|
-
};
|
|
730
|
-
|
|
731
|
-
// src/hooks/api/use-reset-password.ts
|
|
732
|
-
var useResetPasswordHandler = () => {
|
|
733
|
-
return {
|
|
734
|
-
// resetPassword,
|
|
735
|
-
// isLoading: resetPasswordMutate.isPending,
|
|
736
|
-
// error: resetPasswordMutate.error,
|
|
737
|
-
};
|
|
738
|
-
};
|
|
740
|
+
// src/hooks/index.ts
|
|
741
|
+
__reExport(hooks_exports, hook_star);
|
|
742
|
+
import * as hook_star from "@fctc/interface-logic/hook";
|
|
739
743
|
export {
|
|
740
744
|
AppProvider,
|
|
741
745
|
useAppProvider,
|
|
@@ -745,13 +749,9 @@ export {
|
|
|
745
749
|
useConfig,
|
|
746
750
|
useDebounce,
|
|
747
751
|
useDetail,
|
|
748
|
-
useForgotPasswordHandler,
|
|
749
752
|
useListData,
|
|
750
|
-
useLoginHandler,
|
|
751
753
|
useMenu,
|
|
752
754
|
useProfile,
|
|
753
|
-
useResetPasswordHandler,
|
|
754
|
-
useSwitchLocaleHandler,
|
|
755
755
|
useUser,
|
|
756
756
|
useViewV2
|
|
757
757
|
};
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ActionResultType, AppProvider, Context, Record, ViewResponse, useAppProvider, useAuth, useAuthType, useCallAction, useCallActionType, useClickOutside, useConfig, useConfigType, useDebounce, useDetail,
|
|
1
|
+
export { ActionResultType, AppProvider, Context, Record, ViewResponse, useAppProvider, useAuth, useAuthType, useCallAction, useCallActionType, useClickOutside, useConfig, useConfigType, useDebounce, useDetail, useListData, useListDataType, useMenu, useMenuType, useProfile, useUser, useUserType, useViewV2, useViewV2Type } from './hooks.mjs';
|
|
2
2
|
export { CloseIcon, EyeIcon, LoadingIcon } from './icons.mjs';
|
|
3
3
|
import { IInputFieldProps, ValuePropsType } from './types.mjs';
|
|
4
4
|
import * as react from 'react';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ActionResultType, AppProvider, Context, Record, ViewResponse, useAppProvider, useAuth, useAuthType, useCallAction, useCallActionType, useClickOutside, useConfig, useConfigType, useDebounce, useDetail,
|
|
1
|
+
export { ActionResultType, AppProvider, Context, Record, ViewResponse, useAppProvider, useAuth, useAuthType, useCallAction, useCallActionType, useClickOutside, useConfig, useConfigType, useDebounce, useDetail, useListData, useListDataType, useMenu, useMenuType, useProfile, useUser, useUserType, useViewV2, useViewV2Type } from './hooks.js';
|
|
2
2
|
export { CloseIcon, EyeIcon, LoadingIcon } from './icons.js';
|
|
3
3
|
import { IInputFieldProps, ValuePropsType } from './types.js';
|
|
4
4
|
import * as react from 'react';
|
package/dist/index.js
CHANGED
|
@@ -20,6 +20,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
20
20
|
}
|
|
21
21
|
return to;
|
|
22
22
|
};
|
|
23
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
23
24
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
24
25
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
25
26
|
// file that has been converted to a CommonJS file using a Babel-
|
|
@@ -4074,20 +4075,34 @@ __export(index_exports, {
|
|
|
4074
4075
|
useConfig: () => useConfig,
|
|
4075
4076
|
useDebounce: () => useDebounce,
|
|
4076
4077
|
useDetail: () => useDetail,
|
|
4077
|
-
useForgotPasswordHandler: () => useForgotPasswordHandler,
|
|
4078
4078
|
useGetRowIds: () => useGetRowIds,
|
|
4079
4079
|
useListData: () => useListData,
|
|
4080
|
-
useLoginHandler: () => useLoginHandler,
|
|
4081
4080
|
useMenu: () => useMenu,
|
|
4082
4081
|
useProfile: () => useProfile,
|
|
4083
|
-
useResetPasswordHandler: () => useResetPasswordHandler,
|
|
4084
4082
|
useStorageState: () => useStorageState,
|
|
4085
|
-
useSwitchLocaleHandler: () => useSwitchLocaleHandler,
|
|
4086
4083
|
useUser: () => useUser,
|
|
4087
4084
|
useViewV2: () => useViewV2
|
|
4088
4085
|
});
|
|
4089
4086
|
module.exports = __toCommonJS(index_exports);
|
|
4090
4087
|
|
|
4088
|
+
// src/hooks/index.ts
|
|
4089
|
+
var hooks_exports = {};
|
|
4090
|
+
__export(hooks_exports, {
|
|
4091
|
+
AppProvider: () => AppProvider,
|
|
4092
|
+
useAppProvider: () => useAppProvider,
|
|
4093
|
+
useAuth: () => useAuth,
|
|
4094
|
+
useCallAction: () => useCallAction,
|
|
4095
|
+
useClickOutside: () => useClickOutside,
|
|
4096
|
+
useConfig: () => useConfig,
|
|
4097
|
+
useDebounce: () => useDebounce,
|
|
4098
|
+
useDetail: () => useDetail,
|
|
4099
|
+
useListData: () => useListData,
|
|
4100
|
+
useMenu: () => useMenu,
|
|
4101
|
+
useProfile: () => useProfile,
|
|
4102
|
+
useUser: () => useUser,
|
|
4103
|
+
useViewV2: () => useViewV2
|
|
4104
|
+
});
|
|
4105
|
+
|
|
4091
4106
|
// src/hooks/core/use-call-action.ts
|
|
4092
4107
|
var import_interface_logic = require("@fctc/interface-logic");
|
|
4093
4108
|
var import_react = require("react");
|
|
@@ -4843,41 +4858,8 @@ function useDebounce(value, delay) {
|
|
|
4843
4858
|
return [debouncedValue];
|
|
4844
4859
|
}
|
|
4845
4860
|
|
|
4846
|
-
// src/hooks/
|
|
4847
|
-
|
|
4848
|
-
return {
|
|
4849
|
-
// switchLocale,
|
|
4850
|
-
// isLoading: switchUserLocale.isPending,
|
|
4851
|
-
// error: switchUserLocale.error,
|
|
4852
|
-
};
|
|
4853
|
-
};
|
|
4854
|
-
|
|
4855
|
-
// src/hooks/api/use-login.ts
|
|
4856
|
-
var useLoginHandler = () => {
|
|
4857
|
-
return {
|
|
4858
|
-
// login,
|
|
4859
|
-
// isLoading: loginMutate.isPending,
|
|
4860
|
-
// error: loginMutate.error,
|
|
4861
|
-
};
|
|
4862
|
-
};
|
|
4863
|
-
|
|
4864
|
-
// src/hooks/api/use-forgot-password.ts
|
|
4865
|
-
var useForgotPasswordHandler = () => {
|
|
4866
|
-
return {
|
|
4867
|
-
// sendForgotPassword,
|
|
4868
|
-
// isLoading: forgotPasswordMutate.isPending,
|
|
4869
|
-
// error: forgotPasswordMutate.error,
|
|
4870
|
-
};
|
|
4871
|
-
};
|
|
4872
|
-
|
|
4873
|
-
// src/hooks/api/use-reset-password.ts
|
|
4874
|
-
var useResetPasswordHandler = () => {
|
|
4875
|
-
return {
|
|
4876
|
-
// resetPassword,
|
|
4877
|
-
// isLoading: resetPasswordMutate.isPending,
|
|
4878
|
-
// error: resetPasswordMutate.error,
|
|
4879
|
-
};
|
|
4880
|
-
};
|
|
4861
|
+
// src/hooks/index.ts
|
|
4862
|
+
__reExport(hooks_exports, require("@fctc/interface-logic/hook"));
|
|
4881
4863
|
|
|
4882
4864
|
// src/icons/eye-icon.tsx
|
|
4883
4865
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
@@ -7269,15 +7251,11 @@ var binaryFieldController = (props) => {
|
|
|
7269
7251
|
useConfig,
|
|
7270
7252
|
useDebounce,
|
|
7271
7253
|
useDetail,
|
|
7272
|
-
useForgotPasswordHandler,
|
|
7273
7254
|
useGetRowIds,
|
|
7274
7255
|
useListData,
|
|
7275
|
-
useLoginHandler,
|
|
7276
7256
|
useMenu,
|
|
7277
7257
|
useProfile,
|
|
7278
|
-
useResetPasswordHandler,
|
|
7279
7258
|
useStorageState,
|
|
7280
|
-
useSwitchLocaleHandler,
|
|
7281
7259
|
useUser,
|
|
7282
7260
|
useViewV2
|
|
7283
7261
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -13,6 +13,10 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
13
13
|
var __commonJS = (cb, mod) => function __require2() {
|
|
14
14
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
15
15
|
};
|
|
16
|
+
var __export = (target, all) => {
|
|
17
|
+
for (var name in all)
|
|
18
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
19
|
+
};
|
|
16
20
|
var __copyProps = (to, from, except, desc) => {
|
|
17
21
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
18
22
|
for (let key of __getOwnPropNames(from))
|
|
@@ -21,6 +25,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
21
25
|
}
|
|
22
26
|
return to;
|
|
23
27
|
};
|
|
28
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
24
29
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
25
30
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
26
31
|
// file that has been converted to a CommonJS file using a Babel-
|
|
@@ -4031,6 +4036,24 @@ var require_moment = __commonJS({
|
|
|
4031
4036
|
}
|
|
4032
4037
|
});
|
|
4033
4038
|
|
|
4039
|
+
// src/hooks/index.ts
|
|
4040
|
+
var hooks_exports = {};
|
|
4041
|
+
__export(hooks_exports, {
|
|
4042
|
+
AppProvider: () => AppProvider,
|
|
4043
|
+
useAppProvider: () => useAppProvider,
|
|
4044
|
+
useAuth: () => useAuth,
|
|
4045
|
+
useCallAction: () => useCallAction,
|
|
4046
|
+
useClickOutside: () => useClickOutside,
|
|
4047
|
+
useConfig: () => useConfig,
|
|
4048
|
+
useDebounce: () => useDebounce,
|
|
4049
|
+
useDetail: () => useDetail,
|
|
4050
|
+
useListData: () => useListData,
|
|
4051
|
+
useMenu: () => useMenu,
|
|
4052
|
+
useProfile: () => useProfile,
|
|
4053
|
+
useUser: () => useUser,
|
|
4054
|
+
useViewV2: () => useViewV2
|
|
4055
|
+
});
|
|
4056
|
+
|
|
4034
4057
|
// src/hooks/core/use-call-action.ts
|
|
4035
4058
|
import { getEnv, useLoadAction, useRunAction } from "@fctc/interface-logic";
|
|
4036
4059
|
import { useState } from "react";
|
|
@@ -4813,41 +4836,9 @@ function useDebounce(value, delay) {
|
|
|
4813
4836
|
return [debouncedValue];
|
|
4814
4837
|
}
|
|
4815
4838
|
|
|
4816
|
-
// src/hooks/
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
// switchLocale,
|
|
4820
|
-
// isLoading: switchUserLocale.isPending,
|
|
4821
|
-
// error: switchUserLocale.error,
|
|
4822
|
-
};
|
|
4823
|
-
};
|
|
4824
|
-
|
|
4825
|
-
// src/hooks/api/use-login.ts
|
|
4826
|
-
var useLoginHandler = () => {
|
|
4827
|
-
return {
|
|
4828
|
-
// login,
|
|
4829
|
-
// isLoading: loginMutate.isPending,
|
|
4830
|
-
// error: loginMutate.error,
|
|
4831
|
-
};
|
|
4832
|
-
};
|
|
4833
|
-
|
|
4834
|
-
// src/hooks/api/use-forgot-password.ts
|
|
4835
|
-
var useForgotPasswordHandler = () => {
|
|
4836
|
-
return {
|
|
4837
|
-
// sendForgotPassword,
|
|
4838
|
-
// isLoading: forgotPasswordMutate.isPending,
|
|
4839
|
-
// error: forgotPasswordMutate.error,
|
|
4840
|
-
};
|
|
4841
|
-
};
|
|
4842
|
-
|
|
4843
|
-
// src/hooks/api/use-reset-password.ts
|
|
4844
|
-
var useResetPasswordHandler = () => {
|
|
4845
|
-
return {
|
|
4846
|
-
// resetPassword,
|
|
4847
|
-
// isLoading: resetPasswordMutate.isPending,
|
|
4848
|
-
// error: resetPasswordMutate.error,
|
|
4849
|
-
};
|
|
4850
|
-
};
|
|
4839
|
+
// src/hooks/index.ts
|
|
4840
|
+
__reExport(hooks_exports, hook_star);
|
|
4841
|
+
import * as hook_star from "@fctc/interface-logic/hook";
|
|
4851
4842
|
|
|
4852
4843
|
// src/icons/eye-icon.tsx
|
|
4853
4844
|
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
@@ -7298,15 +7289,11 @@ export {
|
|
|
7298
7289
|
useConfig,
|
|
7299
7290
|
useDebounce,
|
|
7300
7291
|
useDetail,
|
|
7301
|
-
useForgotPasswordHandler,
|
|
7302
7292
|
useGetRowIds,
|
|
7303
7293
|
useListData,
|
|
7304
|
-
useLoginHandler,
|
|
7305
7294
|
useMenu,
|
|
7306
7295
|
useProfile,
|
|
7307
|
-
useResetPasswordHandler,
|
|
7308
7296
|
useStorageState,
|
|
7309
|
-
useSwitchLocaleHandler,
|
|
7310
7297
|
useUser,
|
|
7311
7298
|
useViewV2
|
|
7312
7299
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fctc/widget-logic",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.7",
|
|
4
4
|
"types": "dist/index.d.ts",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"test": "jest"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@fctc/interface-logic": "^1.
|
|
47
|
+
"@fctc/interface-logic": "^1.2.5",
|
|
48
48
|
"@headlessui/react": "^2.2.6",
|
|
49
49
|
"@tanstack/react-query": "^5.84.0",
|
|
50
50
|
"@types/react-dom": "^19.1.7",
|