@fctc/widget-logic 2.3.9 → 2.4.1
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 -2
- package/dist/hooks.d.ts +1 -2
- package/dist/hooks.js +4 -3
- package/dist/hooks.mjs +3 -3
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -3
- package/dist/index.mjs +5 -3
- package/dist/widget.js +3 -3
- package/dist/widget.mjs +3 -3
- package/package.json +96 -96
package/dist/hooks.d.mts
CHANGED
|
@@ -927,7 +927,6 @@ declare const useCompany: (accessToken: string | null) => {
|
|
|
927
927
|
allowed_company_ids: (number | undefined)[];
|
|
928
928
|
};
|
|
929
929
|
};
|
|
930
|
-
|
|
931
930
|
interface CompanyTuple extends Array<number | string> {
|
|
932
931
|
0: number;
|
|
933
932
|
1: string;
|
|
@@ -983,4 +982,4 @@ declare const useClickOutside: ({ handler, events, nodes, refs, }: UseClickOutsi
|
|
|
983
982
|
|
|
984
983
|
declare function useDebounce<T>(value: T, delay: number): [T];
|
|
985
984
|
|
|
986
|
-
export { type ActionResultType, AppProvider, type ContextProfile, type Record, type ViewResponse, useAppProvider, useAuth, type useAuthType, useCallAction, type useCallActionType, useClickOutside, useConfig, type useConfigType, useDebounce, useDetail, useGetRowIds, useListData, type useListDataType, useMenu, useMenuItem, type useMenuType, useProfile, useUser, type useUserType, useViewV2, type useViewV2Type };
|
|
985
|
+
export { type ActionResultType, AppProvider, type ContextProfile, type Record, type ViewResponse, useAppProvider, useAuth, type useAuthType, useCallAction, type useCallActionType, useClickOutside, useCompany, type useCompanyType, useConfig, type useConfigType, useDebounce, useDetail, useGetRowIds, useListData, type useListDataType, useMenu, useMenuItem, type useMenuType, useProfile, useUser, type useUserType, useViewV2, type useViewV2Type };
|
package/dist/hooks.d.ts
CHANGED
|
@@ -927,7 +927,6 @@ declare const useCompany: (accessToken: string | null) => {
|
|
|
927
927
|
allowed_company_ids: (number | undefined)[];
|
|
928
928
|
};
|
|
929
929
|
};
|
|
930
|
-
|
|
931
930
|
interface CompanyTuple extends Array<number | string> {
|
|
932
931
|
0: number;
|
|
933
932
|
1: string;
|
|
@@ -983,4 +982,4 @@ declare const useClickOutside: ({ handler, events, nodes, refs, }: UseClickOutsi
|
|
|
983
982
|
|
|
984
983
|
declare function useDebounce<T>(value: T, delay: number): [T];
|
|
985
984
|
|
|
986
|
-
export { type ActionResultType, AppProvider, type ContextProfile, type Record, type ViewResponse, useAppProvider, useAuth, type useAuthType, useCallAction, type useCallActionType, useClickOutside, useConfig, type useConfigType, useDebounce, useDetail, useGetRowIds, useListData, type useListDataType, useMenu, useMenuItem, type useMenuType, useProfile, useUser, type useUserType, useViewV2, type useViewV2Type };
|
|
985
|
+
export { type ActionResultType, AppProvider, type ContextProfile, type Record, type ViewResponse, useAppProvider, useAuth, type useAuthType, useCallAction, type useCallActionType, useClickOutside, useCompany, type useCompanyType, useConfig, type useConfigType, useDebounce, useDetail, useGetRowIds, useListData, type useListDataType, useMenu, useMenuItem, type useMenuType, useProfile, useUser, type useUserType, useViewV2, type useViewV2Type };
|
package/dist/hooks.js
CHANGED
|
@@ -26,6 +26,7 @@ __export(hooks_exports, {
|
|
|
26
26
|
useAuth: () => useAuth,
|
|
27
27
|
useCallAction: () => useCallAction,
|
|
28
28
|
useClickOutside: () => useClickOutside,
|
|
29
|
+
useCompany: () => useCompany,
|
|
29
30
|
useConfig: () => useConfig,
|
|
30
31
|
useDebounce: () => useDebounce,
|
|
31
32
|
useDetail: () => useDetail,
|
|
@@ -586,6 +587,7 @@ var useAuth = () => {
|
|
|
586
587
|
|
|
587
588
|
// src/hooks/core/use-app-provider.tsx
|
|
588
589
|
var import_react10 = require("react");
|
|
590
|
+
var import_utils2 = require("@fctc/interface-logic/utils");
|
|
589
591
|
|
|
590
592
|
// src/hooks/core/use-company.ts
|
|
591
593
|
var import_react_query3 = require("@tanstack/react-query");
|
|
@@ -634,10 +636,8 @@ var useCompany = (accessToken) => {
|
|
|
634
636
|
context: { allowed_company_ids: [current_company_id] }
|
|
635
637
|
};
|
|
636
638
|
};
|
|
637
|
-
var use_company_default = useCompany;
|
|
638
639
|
|
|
639
640
|
// src/hooks/core/use-app-provider.tsx
|
|
640
|
-
var import_utils2 = require("@fctc/interface-logic/utils");
|
|
641
641
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
642
642
|
var AppProviderInitialValue = {
|
|
643
643
|
config: {},
|
|
@@ -654,7 +654,7 @@ var AppProvider = ({ children }) => {
|
|
|
654
654
|
const config = useConfig({});
|
|
655
655
|
const auth = useAuth();
|
|
656
656
|
const user = useUser(auth.accessToken);
|
|
657
|
-
const company =
|
|
657
|
+
const company = useCompany(auth.accessToken);
|
|
658
658
|
const menuContext = (0, import_react10.useMemo)(() => {
|
|
659
659
|
return combineContexts([user.context, company.context]);
|
|
660
660
|
}, [user.context, company.context]);
|
|
@@ -882,6 +882,7 @@ __reExport(hooks_exports, require("@fctc/interface-logic/hooks"), module.exports
|
|
|
882
882
|
useAuth,
|
|
883
883
|
useCallAction,
|
|
884
884
|
useClickOutside,
|
|
885
|
+
useCompany,
|
|
885
886
|
useConfig,
|
|
886
887
|
useDebounce,
|
|
887
888
|
useDetail,
|
package/dist/hooks.mjs
CHANGED
|
@@ -575,6 +575,7 @@ var useAuth = () => {
|
|
|
575
575
|
|
|
576
576
|
// src/hooks/core/use-app-provider.tsx
|
|
577
577
|
import { createContext, useContext, useMemo as useMemo7 } from "react";
|
|
578
|
+
import { evalJSONContext } from "@fctc/interface-logic/utils";
|
|
578
579
|
|
|
579
580
|
// src/hooks/core/use-company.ts
|
|
580
581
|
import { useQuery as useQuery3 } from "@tanstack/react-query";
|
|
@@ -626,10 +627,8 @@ var useCompany = (accessToken) => {
|
|
|
626
627
|
context: { allowed_company_ids: [current_company_id] }
|
|
627
628
|
};
|
|
628
629
|
};
|
|
629
|
-
var use_company_default = useCompany;
|
|
630
630
|
|
|
631
631
|
// src/hooks/core/use-app-provider.tsx
|
|
632
|
-
import { evalJSONContext } from "@fctc/interface-logic/utils";
|
|
633
632
|
import { jsx } from "react/jsx-runtime";
|
|
634
633
|
var AppProviderInitialValue = {
|
|
635
634
|
config: {},
|
|
@@ -646,7 +645,7 @@ var AppProvider = ({ children }) => {
|
|
|
646
645
|
const config = useConfig({});
|
|
647
646
|
const auth = useAuth();
|
|
648
647
|
const user = useUser(auth.accessToken);
|
|
649
|
-
const company =
|
|
648
|
+
const company = useCompany(auth.accessToken);
|
|
650
649
|
const menuContext = useMemo7(() => {
|
|
651
650
|
return combineContexts([user.context, company.context]);
|
|
652
651
|
}, [user.context, company.context]);
|
|
@@ -874,6 +873,7 @@ export {
|
|
|
874
873
|
useAuth,
|
|
875
874
|
useCallAction,
|
|
876
875
|
useClickOutside,
|
|
876
|
+
useCompany,
|
|
877
877
|
useConfig,
|
|
878
878
|
useDebounce,
|
|
879
879
|
useDetail,
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ActionResultType, AppProvider, ContextProfile, Record, ViewResponse, useAppProvider, useAuth, useAuthType, useCallAction, useCallActionType, useClickOutside, useConfig, useConfigType, useDebounce, useDetail, useGetRowIds, useListData, useListDataType, useMenu, useMenuItem, useMenuType, useProfile, useUser, useUserType, useViewV2, useViewV2Type } from './hooks.mjs';
|
|
1
|
+
export { ActionResultType, AppProvider, ContextProfile, Record, ViewResponse, useAppProvider, useAuth, useAuthType, useCallAction, useCallActionType, useClickOutside, useCompany, useCompanyType, useConfig, useConfigType, useDebounce, useDetail, useGetRowIds, useListData, useListDataType, useMenu, useMenuItem, useMenuType, useProfile, useUser, useUserType, useViewV2, useViewV2Type } from './hooks.mjs';
|
|
2
2
|
export * from '@fctc/interface-logic/hooks';
|
|
3
3
|
export * from '@fctc/interface-logic/configs';
|
|
4
4
|
export { CheckIcon, ChevronBottomIcon, CloseIcon, EyeIcon, FilterIcon, GroupByIcon, LoadingIcon, SearchIcon } from './icons.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ActionResultType, AppProvider, ContextProfile, Record, ViewResponse, useAppProvider, useAuth, useAuthType, useCallAction, useCallActionType, useClickOutside, useConfig, useConfigType, useDebounce, useDetail, useGetRowIds, useListData, useListDataType, useMenu, useMenuItem, useMenuType, useProfile, useUser, useUserType, useViewV2, useViewV2Type } from './hooks.js';
|
|
1
|
+
export { ActionResultType, AppProvider, ContextProfile, Record, ViewResponse, useAppProvider, useAuth, useAuthType, useCallAction, useCallActionType, useClickOutside, useCompany, useCompanyType, useConfig, useConfigType, useDebounce, useDetail, useGetRowIds, useListData, useListDataType, useMenu, useMenuItem, useMenuType, useProfile, useUser, useUserType, useViewV2, useViewV2Type } from './hooks.js';
|
|
2
2
|
export * from '@fctc/interface-logic/hooks';
|
|
3
3
|
export * from '@fctc/interface-logic/configs';
|
|
4
4
|
export { CheckIcon, ChevronBottomIcon, CloseIcon, EyeIcon, FilterIcon, GroupByIcon, LoadingIcon, SearchIcon } from './icons.js';
|
package/dist/index.js
CHANGED
|
@@ -4075,6 +4075,7 @@ __export(index_exports, {
|
|
|
4075
4075
|
useAuth: () => useAuth,
|
|
4076
4076
|
useCallAction: () => useCallAction,
|
|
4077
4077
|
useClickOutside: () => useClickOutside,
|
|
4078
|
+
useCompany: () => useCompany,
|
|
4078
4079
|
useConfig: () => useConfig,
|
|
4079
4080
|
useDebounce: () => useDebounce,
|
|
4080
4081
|
useDetail: () => useDetail,
|
|
@@ -4097,6 +4098,7 @@ __export(hooks_exports, {
|
|
|
4097
4098
|
useAuth: () => useAuth,
|
|
4098
4099
|
useCallAction: () => useCallAction,
|
|
4099
4100
|
useClickOutside: () => useClickOutside,
|
|
4101
|
+
useCompany: () => useCompany,
|
|
4100
4102
|
useConfig: () => useConfig,
|
|
4101
4103
|
useDebounce: () => useDebounce,
|
|
4102
4104
|
useDetail: () => useDetail,
|
|
@@ -4656,6 +4658,7 @@ var useAuth = () => {
|
|
|
4656
4658
|
|
|
4657
4659
|
// src/hooks/core/use-app-provider.tsx
|
|
4658
4660
|
var import_react10 = require("react");
|
|
4661
|
+
var import_utils2 = require("@fctc/interface-logic/utils");
|
|
4659
4662
|
|
|
4660
4663
|
// src/hooks/core/use-company.ts
|
|
4661
4664
|
var import_react_query3 = require("@tanstack/react-query");
|
|
@@ -4704,10 +4707,8 @@ var useCompany = (accessToken) => {
|
|
|
4704
4707
|
context: { allowed_company_ids: [current_company_id] }
|
|
4705
4708
|
};
|
|
4706
4709
|
};
|
|
4707
|
-
var use_company_default = useCompany;
|
|
4708
4710
|
|
|
4709
4711
|
// src/hooks/core/use-app-provider.tsx
|
|
4710
|
-
var import_utils2 = require("@fctc/interface-logic/utils");
|
|
4711
4712
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
4712
4713
|
var AppProviderInitialValue = {
|
|
4713
4714
|
config: {},
|
|
@@ -4724,7 +4725,7 @@ var AppProvider = ({ children }) => {
|
|
|
4724
4725
|
const config = useConfig({});
|
|
4725
4726
|
const auth = useAuth();
|
|
4726
4727
|
const user = useUser(auth.accessToken);
|
|
4727
|
-
const company =
|
|
4728
|
+
const company = useCompany(auth.accessToken);
|
|
4728
4729
|
const menuContext = (0, import_react10.useMemo)(() => {
|
|
4729
4730
|
return combineContexts([user.context, company.context]);
|
|
4730
4731
|
}, [user.context, company.context]);
|
|
@@ -7467,6 +7468,7 @@ __reExport(index_exports, types_exports, module.exports);
|
|
|
7467
7468
|
useAuth,
|
|
7468
7469
|
useCallAction,
|
|
7469
7470
|
useClickOutside,
|
|
7471
|
+
useCompany,
|
|
7470
7472
|
useConfig,
|
|
7471
7473
|
useDebounce,
|
|
7472
7474
|
useDetail,
|
package/dist/index.mjs
CHANGED
|
@@ -4079,6 +4079,7 @@ __export(index_exports, {
|
|
|
4079
4079
|
useAuth: () => useAuth,
|
|
4080
4080
|
useCallAction: () => useCallAction,
|
|
4081
4081
|
useClickOutside: () => useClickOutside,
|
|
4082
|
+
useCompany: () => useCompany,
|
|
4082
4083
|
useConfig: () => useConfig,
|
|
4083
4084
|
useDebounce: () => useDebounce,
|
|
4084
4085
|
useDetail: () => useDetail,
|
|
@@ -4100,6 +4101,7 @@ __export(hooks_exports, {
|
|
|
4100
4101
|
useAuth: () => useAuth,
|
|
4101
4102
|
useCallAction: () => useCallAction,
|
|
4102
4103
|
useClickOutside: () => useClickOutside,
|
|
4104
|
+
useCompany: () => useCompany,
|
|
4103
4105
|
useConfig: () => useConfig,
|
|
4104
4106
|
useDebounce: () => useDebounce,
|
|
4105
4107
|
useDetail: () => useDetail,
|
|
@@ -4671,6 +4673,7 @@ var useAuth = () => {
|
|
|
4671
4673
|
|
|
4672
4674
|
// src/hooks/core/use-app-provider.tsx
|
|
4673
4675
|
import { createContext, useContext, useMemo as useMemo7 } from "react";
|
|
4676
|
+
import { evalJSONContext } from "@fctc/interface-logic/utils";
|
|
4674
4677
|
|
|
4675
4678
|
// src/hooks/core/use-company.ts
|
|
4676
4679
|
import { useQuery as useQuery3 } from "@tanstack/react-query";
|
|
@@ -4722,10 +4725,8 @@ var useCompany = (accessToken) => {
|
|
|
4722
4725
|
context: { allowed_company_ids: [current_company_id] }
|
|
4723
4726
|
};
|
|
4724
4727
|
};
|
|
4725
|
-
var use_company_default = useCompany;
|
|
4726
4728
|
|
|
4727
4729
|
// src/hooks/core/use-app-provider.tsx
|
|
4728
|
-
import { evalJSONContext } from "@fctc/interface-logic/utils";
|
|
4729
4730
|
import { jsx } from "react/jsx-runtime";
|
|
4730
4731
|
var AppProviderInitialValue = {
|
|
4731
4732
|
config: {},
|
|
@@ -4742,7 +4743,7 @@ var AppProvider = ({ children }) => {
|
|
|
4742
4743
|
const config = useConfig({});
|
|
4743
4744
|
const auth = useAuth();
|
|
4744
4745
|
const user = useUser(auth.accessToken);
|
|
4745
|
-
const company =
|
|
4746
|
+
const company = useCompany(auth.accessToken);
|
|
4746
4747
|
const menuContext = useMemo7(() => {
|
|
4747
4748
|
return combineContexts([user.context, company.context]);
|
|
4748
4749
|
}, [user.context, company.context]);
|
|
@@ -7505,6 +7506,7 @@ export {
|
|
|
7505
7506
|
useAuth,
|
|
7506
7507
|
useCallAction,
|
|
7507
7508
|
useClickOutside,
|
|
7509
|
+
useCompany,
|
|
7508
7510
|
useConfig,
|
|
7509
7511
|
useDebounce,
|
|
7510
7512
|
useDetail,
|
package/dist/widget.js
CHANGED
|
@@ -4120,6 +4120,7 @@ __export(hooks_exports, {
|
|
|
4120
4120
|
useAuth: () => useAuth,
|
|
4121
4121
|
useCallAction: () => useCallAction,
|
|
4122
4122
|
useClickOutside: () => useClickOutside,
|
|
4123
|
+
useCompany: () => useCompany,
|
|
4123
4124
|
useConfig: () => useConfig,
|
|
4124
4125
|
useDebounce: () => useDebounce,
|
|
4125
4126
|
useDetail: () => useDetail,
|
|
@@ -4679,6 +4680,7 @@ var useAuth = () => {
|
|
|
4679
4680
|
|
|
4680
4681
|
// src/hooks/core/use-app-provider.tsx
|
|
4681
4682
|
var import_react11 = require("react");
|
|
4683
|
+
var import_utils2 = require("@fctc/interface-logic/utils");
|
|
4682
4684
|
|
|
4683
4685
|
// src/hooks/core/use-company.ts
|
|
4684
4686
|
var import_react_query3 = require("@tanstack/react-query");
|
|
@@ -4727,10 +4729,8 @@ var useCompany = (accessToken) => {
|
|
|
4727
4729
|
context: { allowed_company_ids: [current_company_id] }
|
|
4728
4730
|
};
|
|
4729
4731
|
};
|
|
4730
|
-
var use_company_default = useCompany;
|
|
4731
4732
|
|
|
4732
4733
|
// src/hooks/core/use-app-provider.tsx
|
|
4733
|
-
var import_utils2 = require("@fctc/interface-logic/utils");
|
|
4734
4734
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
4735
4735
|
var AppProviderInitialValue = {
|
|
4736
4736
|
config: {},
|
|
@@ -4747,7 +4747,7 @@ var AppProvider = ({ children }) => {
|
|
|
4747
4747
|
const config = useConfig({});
|
|
4748
4748
|
const auth = useAuth();
|
|
4749
4749
|
const user = useUser(auth.accessToken);
|
|
4750
|
-
const company =
|
|
4750
|
+
const company = useCompany(auth.accessToken);
|
|
4751
4751
|
const menuContext = (0, import_react11.useMemo)(() => {
|
|
4752
4752
|
return combineContexts([user.context, company.context]);
|
|
4753
4753
|
}, [user.context, company.context]);
|
package/dist/widget.mjs
CHANGED
|
@@ -4101,6 +4101,7 @@ __export(hooks_exports, {
|
|
|
4101
4101
|
useAuth: () => useAuth,
|
|
4102
4102
|
useCallAction: () => useCallAction,
|
|
4103
4103
|
useClickOutside: () => useClickOutside,
|
|
4104
|
+
useCompany: () => useCompany,
|
|
4104
4105
|
useConfig: () => useConfig,
|
|
4105
4106
|
useDebounce: () => useDebounce,
|
|
4106
4107
|
useDetail: () => useDetail,
|
|
@@ -4672,6 +4673,7 @@ var useAuth = () => {
|
|
|
4672
4673
|
|
|
4673
4674
|
// src/hooks/core/use-app-provider.tsx
|
|
4674
4675
|
import { createContext, useContext, useMemo as useMemo7 } from "react";
|
|
4676
|
+
import { evalJSONContext } from "@fctc/interface-logic/utils";
|
|
4675
4677
|
|
|
4676
4678
|
// src/hooks/core/use-company.ts
|
|
4677
4679
|
import { useQuery as useQuery3 } from "@tanstack/react-query";
|
|
@@ -4723,10 +4725,8 @@ var useCompany = (accessToken) => {
|
|
|
4723
4725
|
context: { allowed_company_ids: [current_company_id] }
|
|
4724
4726
|
};
|
|
4725
4727
|
};
|
|
4726
|
-
var use_company_default = useCompany;
|
|
4727
4728
|
|
|
4728
4729
|
// src/hooks/core/use-app-provider.tsx
|
|
4729
|
-
import { evalJSONContext } from "@fctc/interface-logic/utils";
|
|
4730
4730
|
import { jsx } from "react/jsx-runtime";
|
|
4731
4731
|
var AppProviderInitialValue = {
|
|
4732
4732
|
config: {},
|
|
@@ -4743,7 +4743,7 @@ var AppProvider = ({ children }) => {
|
|
|
4743
4743
|
const config = useConfig({});
|
|
4744
4744
|
const auth = useAuth();
|
|
4745
4745
|
const user = useUser(auth.accessToken);
|
|
4746
|
-
const company =
|
|
4746
|
+
const company = useCompany(auth.accessToken);
|
|
4747
4747
|
const menuContext = useMemo7(() => {
|
|
4748
4748
|
return combineContexts([user.context, company.context]);
|
|
4749
4749
|
}, [user.context, company.context]);
|
package/package.json
CHANGED
|
@@ -1,96 +1,96 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@fctc/widget-logic",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"types": "dist/index.d.ts",
|
|
5
|
-
"main": "dist/index.cjs",
|
|
6
|
-
"module": "dist/index.mjs",
|
|
7
|
-
"exports": {
|
|
8
|
-
".": {
|
|
9
|
-
"types": "./dist/index.d.ts",
|
|
10
|
-
"import": "./dist/index.mjs",
|
|
11
|
-
"require": "./dist/index.cjs"
|
|
12
|
-
},
|
|
13
|
-
"./hooks": {
|
|
14
|
-
"types": "./dist/hooks.d.ts",
|
|
15
|
-
"import": "./dist/hooks.mjs",
|
|
16
|
-
"require": "./dist/hooks.cjs"
|
|
17
|
-
},
|
|
18
|
-
"./widget": {
|
|
19
|
-
"types": "./dist/widget.d.ts",
|
|
20
|
-
"import": "./dist/widget.mjs",
|
|
21
|
-
"require": "./dist/widget.cjs"
|
|
22
|
-
},
|
|
23
|
-
"./icons": {
|
|
24
|
-
"types": "./dist/icons.d.ts",
|
|
25
|
-
"import": "./dist/icons.mjs",
|
|
26
|
-
"require": "./dist/icons.cjs"
|
|
27
|
-
},
|
|
28
|
-
"./utils": {
|
|
29
|
-
"types": "./dist/utils.d.ts",
|
|
30
|
-
"import": "./dist/utils.mjs",
|
|
31
|
-
"require": "./dist/utils.cjs"
|
|
32
|
-
},
|
|
33
|
-
"./store": {
|
|
34
|
-
"types": "./dist/store.d.ts",
|
|
35
|
-
"import": "./dist/store.mjs",
|
|
36
|
-
"require": "./dist/store.cjs"
|
|
37
|
-
},
|
|
38
|
-
"./config": {
|
|
39
|
-
"types": "./dist/config.d.ts",
|
|
40
|
-
"import": "./dist/config.mjs",
|
|
41
|
-
"require": "./dist/config.cjs"
|
|
42
|
-
},
|
|
43
|
-
"./constants": {
|
|
44
|
-
"types": "./dist/constants.d.ts",
|
|
45
|
-
"import": "./dist/constants.mjs",
|
|
46
|
-
"require": "./dist/constants.cjs"
|
|
47
|
-
},
|
|
48
|
-
"./environment": {
|
|
49
|
-
"types": "./dist/environment.d.ts",
|
|
50
|
-
"import": "./dist/environment.mjs",
|
|
51
|
-
"require": "./dist/environment.cjs"
|
|
52
|
-
},
|
|
53
|
-
"./provider": {
|
|
54
|
-
"types": "./dist/provider.d.ts",
|
|
55
|
-
"import": "./dist/provider.mjs",
|
|
56
|
-
"require": "./dist/provider.cjs"
|
|
57
|
-
},
|
|
58
|
-
"./services": {
|
|
59
|
-
"types": "./dist/services.d.ts",
|
|
60
|
-
"import": "./dist/services.mjs",
|
|
61
|
-
"require": "./dist/services.cjs"
|
|
62
|
-
},
|
|
63
|
-
"./types": {
|
|
64
|
-
"types": "./dist/types.d.ts",
|
|
65
|
-
"import": "./dist/types.mjs",
|
|
66
|
-
"require": "./dist/types.cjs"
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
"files": [
|
|
70
|
-
"dist"
|
|
71
|
-
],
|
|
72
|
-
"scripts": {
|
|
73
|
-
"build": "tsup",
|
|
74
|
-
"test": "jest"
|
|
75
|
-
},
|
|
76
|
-
"dependencies": {
|
|
77
|
-
"@fctc/interface-logic": "^2.
|
|
78
|
-
"@headlessui/react": "^2.2.6",
|
|
79
|
-
"@tanstack/react-query": "^5.84.0",
|
|
80
|
-
"i18next": "^25.3.2",
|
|
81
|
-
"i18next-browser-languagedetector": "^8.2.0",
|
|
82
|
-
"react-i18next": "^15.6.1",
|
|
83
|
-
"react-tooltip": "^5.29.1"
|
|
84
|
-
},
|
|
85
|
-
"devDependencies": {
|
|
86
|
-
"@types/react": "^18.3.1",
|
|
87
|
-
"jest": "^29.7.0",
|
|
88
|
-
"react": "18.0.0",
|
|
89
|
-
"tsup": "^8.0.0",
|
|
90
|
-
"typescript": "^5.8.2"
|
|
91
|
-
},
|
|
92
|
-
"packageManager": "yarn@1.22.0",
|
|
93
|
-
"peerDependencies": {
|
|
94
|
-
"@fctc/interface-logic": "^1.6.9"
|
|
95
|
-
}
|
|
96
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@fctc/widget-logic",
|
|
3
|
+
"version": "2.4.1",
|
|
4
|
+
"types": "dist/index.d.ts",
|
|
5
|
+
"main": "dist/index.cjs",
|
|
6
|
+
"module": "dist/index.mjs",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"import": "./dist/index.mjs",
|
|
11
|
+
"require": "./dist/index.cjs"
|
|
12
|
+
},
|
|
13
|
+
"./hooks": {
|
|
14
|
+
"types": "./dist/hooks.d.ts",
|
|
15
|
+
"import": "./dist/hooks.mjs",
|
|
16
|
+
"require": "./dist/hooks.cjs"
|
|
17
|
+
},
|
|
18
|
+
"./widget": {
|
|
19
|
+
"types": "./dist/widget.d.ts",
|
|
20
|
+
"import": "./dist/widget.mjs",
|
|
21
|
+
"require": "./dist/widget.cjs"
|
|
22
|
+
},
|
|
23
|
+
"./icons": {
|
|
24
|
+
"types": "./dist/icons.d.ts",
|
|
25
|
+
"import": "./dist/icons.mjs",
|
|
26
|
+
"require": "./dist/icons.cjs"
|
|
27
|
+
},
|
|
28
|
+
"./utils": {
|
|
29
|
+
"types": "./dist/utils.d.ts",
|
|
30
|
+
"import": "./dist/utils.mjs",
|
|
31
|
+
"require": "./dist/utils.cjs"
|
|
32
|
+
},
|
|
33
|
+
"./store": {
|
|
34
|
+
"types": "./dist/store.d.ts",
|
|
35
|
+
"import": "./dist/store.mjs",
|
|
36
|
+
"require": "./dist/store.cjs"
|
|
37
|
+
},
|
|
38
|
+
"./config": {
|
|
39
|
+
"types": "./dist/config.d.ts",
|
|
40
|
+
"import": "./dist/config.mjs",
|
|
41
|
+
"require": "./dist/config.cjs"
|
|
42
|
+
},
|
|
43
|
+
"./constants": {
|
|
44
|
+
"types": "./dist/constants.d.ts",
|
|
45
|
+
"import": "./dist/constants.mjs",
|
|
46
|
+
"require": "./dist/constants.cjs"
|
|
47
|
+
},
|
|
48
|
+
"./environment": {
|
|
49
|
+
"types": "./dist/environment.d.ts",
|
|
50
|
+
"import": "./dist/environment.mjs",
|
|
51
|
+
"require": "./dist/environment.cjs"
|
|
52
|
+
},
|
|
53
|
+
"./provider": {
|
|
54
|
+
"types": "./dist/provider.d.ts",
|
|
55
|
+
"import": "./dist/provider.mjs",
|
|
56
|
+
"require": "./dist/provider.cjs"
|
|
57
|
+
},
|
|
58
|
+
"./services": {
|
|
59
|
+
"types": "./dist/services.d.ts",
|
|
60
|
+
"import": "./dist/services.mjs",
|
|
61
|
+
"require": "./dist/services.cjs"
|
|
62
|
+
},
|
|
63
|
+
"./types": {
|
|
64
|
+
"types": "./dist/types.d.ts",
|
|
65
|
+
"import": "./dist/types.mjs",
|
|
66
|
+
"require": "./dist/types.cjs"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"files": [
|
|
70
|
+
"dist"
|
|
71
|
+
],
|
|
72
|
+
"scripts": {
|
|
73
|
+
"build": "tsup",
|
|
74
|
+
"test": "jest"
|
|
75
|
+
},
|
|
76
|
+
"dependencies": {
|
|
77
|
+
"@fctc/interface-logic": "^2.4.0",
|
|
78
|
+
"@headlessui/react": "^2.2.6",
|
|
79
|
+
"@tanstack/react-query": "^5.84.0",
|
|
80
|
+
"i18next": "^25.3.2",
|
|
81
|
+
"i18next-browser-languagedetector": "^8.2.0",
|
|
82
|
+
"react-i18next": "^15.6.1",
|
|
83
|
+
"react-tooltip": "^5.29.1"
|
|
84
|
+
},
|
|
85
|
+
"devDependencies": {
|
|
86
|
+
"@types/react": "^18.3.1",
|
|
87
|
+
"jest": "^29.7.0",
|
|
88
|
+
"react": "18.0.0",
|
|
89
|
+
"tsup": "^8.0.0",
|
|
90
|
+
"typescript": "^5.8.2"
|
|
91
|
+
},
|
|
92
|
+
"packageManager": "yarn@1.22.0",
|
|
93
|
+
"peerDependencies": {
|
|
94
|
+
"@fctc/interface-logic": "^1.6.9"
|
|
95
|
+
}
|
|
96
|
+
}
|