@fctc/widget-logic 3.4.0 → 3.4.2
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 +9 -3
- package/dist/hooks.d.ts +9 -3
- package/dist/hooks.js +10 -8
- package/dist/hooks.mjs +10 -8
- package/dist/index.js +10 -8
- package/dist/index.mjs +10 -8
- package/package.json +94 -94
package/dist/hooks.d.mts
CHANGED
|
@@ -95,7 +95,9 @@ interface UseMenuReturn {
|
|
|
95
95
|
xNode?: string;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
declare const useUser: (
|
|
98
|
+
declare const useUser: ({ service }: {
|
|
99
|
+
service?: string;
|
|
100
|
+
}) => any;
|
|
99
101
|
type useUserType = ReturnType<typeof useUser>;
|
|
100
102
|
|
|
101
103
|
declare const useViewV2: ({ action, context, aid, service, xNode, }: {
|
|
@@ -283,7 +285,9 @@ type ViewResponse = {
|
|
|
283
285
|
};
|
|
284
286
|
};
|
|
285
287
|
|
|
286
|
-
declare const useCompany: (
|
|
288
|
+
declare const useCompany: ({ service }: {
|
|
289
|
+
service?: string;
|
|
290
|
+
}) => {
|
|
287
291
|
currentCompany: {
|
|
288
292
|
data: CurrentCompany | undefined;
|
|
289
293
|
error: Error;
|
|
@@ -1041,7 +1045,9 @@ declare const useListData: ({ action, context, viewData, model, service, xNode,
|
|
|
1041
1045
|
};
|
|
1042
1046
|
type useListDataType = ReturnType<typeof useListData>;
|
|
1043
1047
|
|
|
1044
|
-
declare const useProfile: (
|
|
1048
|
+
declare const useProfile: ({ service }: {
|
|
1049
|
+
service?: string;
|
|
1050
|
+
}) => {
|
|
1045
1051
|
context: ContextProfile | undefined;
|
|
1046
1052
|
data: UserInfo | undefined;
|
|
1047
1053
|
error: Error;
|
package/dist/hooks.d.ts
CHANGED
|
@@ -95,7 +95,9 @@ interface UseMenuReturn {
|
|
|
95
95
|
xNode?: string;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
declare const useUser: (
|
|
98
|
+
declare const useUser: ({ service }: {
|
|
99
|
+
service?: string;
|
|
100
|
+
}) => any;
|
|
99
101
|
type useUserType = ReturnType<typeof useUser>;
|
|
100
102
|
|
|
101
103
|
declare const useViewV2: ({ action, context, aid, service, xNode, }: {
|
|
@@ -283,7 +285,9 @@ type ViewResponse = {
|
|
|
283
285
|
};
|
|
284
286
|
};
|
|
285
287
|
|
|
286
|
-
declare const useCompany: (
|
|
288
|
+
declare const useCompany: ({ service }: {
|
|
289
|
+
service?: string;
|
|
290
|
+
}) => {
|
|
287
291
|
currentCompany: {
|
|
288
292
|
data: CurrentCompany | undefined;
|
|
289
293
|
error: Error;
|
|
@@ -1041,7 +1045,9 @@ declare const useListData: ({ action, context, viewData, model, service, xNode,
|
|
|
1041
1045
|
};
|
|
1042
1046
|
type useListDataType = ReturnType<typeof useListData>;
|
|
1043
1047
|
|
|
1044
|
-
declare const useProfile: (
|
|
1048
|
+
declare const useProfile: ({ service }: {
|
|
1049
|
+
service?: string;
|
|
1050
|
+
}) => {
|
|
1045
1051
|
context: ContextProfile | undefined;
|
|
1046
1052
|
data: UserInfo | undefined;
|
|
1047
1053
|
error: Error;
|
package/dist/hooks.js
CHANGED
|
@@ -455,10 +455,10 @@ var useDetail = (sub) => {
|
|
|
455
455
|
var import_react_query2 = require("@tanstack/react-query");
|
|
456
456
|
var import_react5 = require("react");
|
|
457
457
|
var import_react_i18next = require("react-i18next");
|
|
458
|
-
var useProfile = () => {
|
|
458
|
+
var useProfile = ({ service }) => {
|
|
459
459
|
const { setUid, setLang, setUserInfo, env } = (0, provider_exports.useEnv)();
|
|
460
460
|
const { useGetProfile: useGetProfile2 } = (0, provider_exports.useService)();
|
|
461
|
-
const getProfile = useGetProfile2();
|
|
461
|
+
const getProfile = useGetProfile2("service", service);
|
|
462
462
|
const { i18n } = (0, import_react_i18next.useTranslation)();
|
|
463
463
|
const userInfoQuery = (0, import_react_query2.useQuery)({
|
|
464
464
|
queryKey: ["userInfo"],
|
|
@@ -493,8 +493,8 @@ var useProfile = () => {
|
|
|
493
493
|
};
|
|
494
494
|
|
|
495
495
|
// src/hooks/core/use-user.ts
|
|
496
|
-
var useUser = () => {
|
|
497
|
-
const userProfile = useProfile();
|
|
496
|
+
var useUser = ({ service }) => {
|
|
497
|
+
const userProfile = useProfile({ service });
|
|
498
498
|
const userDetail = useDetail(userProfile?.data?.sub);
|
|
499
499
|
return { userProfile, userDetail, context: userProfile?.context };
|
|
500
500
|
};
|
|
@@ -544,10 +544,12 @@ var useViewV2 = ({
|
|
|
544
544
|
// src/hooks/core/use-company.ts
|
|
545
545
|
var import_react_query3 = require("@tanstack/react-query");
|
|
546
546
|
var import_react7 = require("react");
|
|
547
|
-
var useCompany = () => {
|
|
547
|
+
var useCompany = ({ service }) => {
|
|
548
548
|
const { setAllowCompanies, setCompanies, setDefaultCompany, env } = (0, provider_exports.useEnv)();
|
|
549
549
|
const { useGetCurrentCompany: useGetCurrentCompany2, useGetCompanyInfo: useGetCompanyInfo2 } = (0, provider_exports.useService)();
|
|
550
|
-
const getCurrentCompany = useGetCurrentCompany2(
|
|
550
|
+
const getCurrentCompany = useGetCurrentCompany2({
|
|
551
|
+
service
|
|
552
|
+
});
|
|
551
553
|
const fetchCurrentCompany = async () => {
|
|
552
554
|
return await getCurrentCompany.mutateAsync();
|
|
553
555
|
};
|
|
@@ -604,8 +606,8 @@ var AppProvider = ({
|
|
|
604
606
|
aid
|
|
605
607
|
}) => {
|
|
606
608
|
const { env } = (0, provider_exports.useEnv)();
|
|
607
|
-
const user = useUser();
|
|
608
|
-
const company = useCompany();
|
|
609
|
+
const user = useUser({ service: env.default_service });
|
|
610
|
+
const company = useCompany({ service: env.default_service });
|
|
609
611
|
const menuContext = (0, import_react8.useMemo)(() => {
|
|
610
612
|
return combineContexts([
|
|
611
613
|
{
|
package/dist/hooks.mjs
CHANGED
|
@@ -436,10 +436,10 @@ var useDetail = (sub) => {
|
|
|
436
436
|
import { useQuery as useQuery2 } from "@tanstack/react-query";
|
|
437
437
|
import { useEffect as useEffect3, useMemo as useMemo2 } from "react";
|
|
438
438
|
import { useTranslation } from "react-i18next";
|
|
439
|
-
var useProfile = () => {
|
|
439
|
+
var useProfile = ({ service }) => {
|
|
440
440
|
const { setUid, setLang, setUserInfo, env } = (0, provider_exports.useEnv)();
|
|
441
441
|
const { useGetProfile: useGetProfile2 } = (0, provider_exports.useService)();
|
|
442
|
-
const getProfile = useGetProfile2();
|
|
442
|
+
const getProfile = useGetProfile2("service", service);
|
|
443
443
|
const { i18n } = useTranslation();
|
|
444
444
|
const userInfoQuery = useQuery2({
|
|
445
445
|
queryKey: ["userInfo"],
|
|
@@ -474,8 +474,8 @@ var useProfile = () => {
|
|
|
474
474
|
};
|
|
475
475
|
|
|
476
476
|
// src/hooks/core/use-user.ts
|
|
477
|
-
var useUser = () => {
|
|
478
|
-
const userProfile = useProfile();
|
|
477
|
+
var useUser = ({ service }) => {
|
|
478
|
+
const userProfile = useProfile({ service });
|
|
479
479
|
const userDetail = useDetail(userProfile?.data?.sub);
|
|
480
480
|
return { userProfile, userDetail, context: userProfile?.context };
|
|
481
481
|
};
|
|
@@ -525,10 +525,12 @@ var useViewV2 = ({
|
|
|
525
525
|
// src/hooks/core/use-company.ts
|
|
526
526
|
import { useQuery as useQuery3 } from "@tanstack/react-query";
|
|
527
527
|
import { useEffect as useEffect4, useMemo as useMemo4 } from "react";
|
|
528
|
-
var useCompany = () => {
|
|
528
|
+
var useCompany = ({ service }) => {
|
|
529
529
|
const { setAllowCompanies, setCompanies, setDefaultCompany, env } = (0, provider_exports.useEnv)();
|
|
530
530
|
const { useGetCurrentCompany: useGetCurrentCompany2, useGetCompanyInfo: useGetCompanyInfo2 } = (0, provider_exports.useService)();
|
|
531
|
-
const getCurrentCompany = useGetCurrentCompany2(
|
|
531
|
+
const getCurrentCompany = useGetCurrentCompany2({
|
|
532
|
+
service
|
|
533
|
+
});
|
|
532
534
|
const fetchCurrentCompany = async () => {
|
|
533
535
|
return await getCurrentCompany.mutateAsync();
|
|
534
536
|
};
|
|
@@ -585,8 +587,8 @@ var AppProvider = ({
|
|
|
585
587
|
aid
|
|
586
588
|
}) => {
|
|
587
589
|
const { env } = (0, provider_exports.useEnv)();
|
|
588
|
-
const user = useUser();
|
|
589
|
-
const company = useCompany();
|
|
590
|
+
const user = useUser({ service: env.default_service });
|
|
591
|
+
const company = useCompany({ service: env.default_service });
|
|
590
592
|
const menuContext = useMemo5(() => {
|
|
591
593
|
return combineContexts([
|
|
592
594
|
{
|
package/dist/index.js
CHANGED
|
@@ -4505,10 +4505,10 @@ var useDetail = (sub) => {
|
|
|
4505
4505
|
var import_react_query2 = require("@tanstack/react-query");
|
|
4506
4506
|
var import_react5 = require("react");
|
|
4507
4507
|
var import_react_i18next = require("react-i18next");
|
|
4508
|
-
var useProfile = () => {
|
|
4508
|
+
var useProfile = ({ service }) => {
|
|
4509
4509
|
const { setUid, setLang, setUserInfo, env } = (0, provider_exports.useEnv)();
|
|
4510
4510
|
const { useGetProfile: useGetProfile2 } = (0, provider_exports.useService)();
|
|
4511
|
-
const getProfile = useGetProfile2();
|
|
4511
|
+
const getProfile = useGetProfile2("service", service);
|
|
4512
4512
|
const { i18n: i18n2 } = (0, import_react_i18next.useTranslation)();
|
|
4513
4513
|
const userInfoQuery = (0, import_react_query2.useQuery)({
|
|
4514
4514
|
queryKey: ["userInfo"],
|
|
@@ -4543,8 +4543,8 @@ var useProfile = () => {
|
|
|
4543
4543
|
};
|
|
4544
4544
|
|
|
4545
4545
|
// src/hooks/core/use-user.ts
|
|
4546
|
-
var useUser = () => {
|
|
4547
|
-
const userProfile = useProfile();
|
|
4546
|
+
var useUser = ({ service }) => {
|
|
4547
|
+
const userProfile = useProfile({ service });
|
|
4548
4548
|
const userDetail = useDetail(userProfile?.data?.sub);
|
|
4549
4549
|
return { userProfile, userDetail, context: userProfile?.context };
|
|
4550
4550
|
};
|
|
@@ -4594,10 +4594,12 @@ var useViewV2 = ({
|
|
|
4594
4594
|
// src/hooks/core/use-company.ts
|
|
4595
4595
|
var import_react_query3 = require("@tanstack/react-query");
|
|
4596
4596
|
var import_react7 = require("react");
|
|
4597
|
-
var useCompany = () => {
|
|
4597
|
+
var useCompany = ({ service }) => {
|
|
4598
4598
|
const { setAllowCompanies, setCompanies, setDefaultCompany, env } = (0, provider_exports.useEnv)();
|
|
4599
4599
|
const { useGetCurrentCompany: useGetCurrentCompany2, useGetCompanyInfo: useGetCompanyInfo2 } = (0, provider_exports.useService)();
|
|
4600
|
-
const getCurrentCompany = useGetCurrentCompany2(
|
|
4600
|
+
const getCurrentCompany = useGetCurrentCompany2({
|
|
4601
|
+
service
|
|
4602
|
+
});
|
|
4601
4603
|
const fetchCurrentCompany = async () => {
|
|
4602
4604
|
return await getCurrentCompany.mutateAsync();
|
|
4603
4605
|
};
|
|
@@ -4654,8 +4656,8 @@ var AppProvider = ({
|
|
|
4654
4656
|
aid
|
|
4655
4657
|
}) => {
|
|
4656
4658
|
const { env } = (0, provider_exports.useEnv)();
|
|
4657
|
-
const user = useUser();
|
|
4658
|
-
const company = useCompany();
|
|
4659
|
+
const user = useUser({ service: env.default_service });
|
|
4660
|
+
const company = useCompany({ service: env.default_service });
|
|
4659
4661
|
const menuContext = (0, import_react8.useMemo)(() => {
|
|
4660
4662
|
return combineContexts([
|
|
4661
4663
|
{
|
package/dist/index.mjs
CHANGED
|
@@ -4580,10 +4580,10 @@ var useDetail = (sub) => {
|
|
|
4580
4580
|
import { useQuery as useQuery2 } from "@tanstack/react-query";
|
|
4581
4581
|
import { useEffect as useEffect3, useMemo as useMemo2 } from "react";
|
|
4582
4582
|
import { useTranslation } from "react-i18next";
|
|
4583
|
-
var useProfile = () => {
|
|
4583
|
+
var useProfile = ({ service }) => {
|
|
4584
4584
|
const { setUid, setLang, setUserInfo, env } = (0, provider_exports.useEnv)();
|
|
4585
4585
|
const { useGetProfile: useGetProfile2 } = (0, provider_exports.useService)();
|
|
4586
|
-
const getProfile = useGetProfile2();
|
|
4586
|
+
const getProfile = useGetProfile2("service", service);
|
|
4587
4587
|
const { i18n: i18n2 } = useTranslation();
|
|
4588
4588
|
const userInfoQuery = useQuery2({
|
|
4589
4589
|
queryKey: ["userInfo"],
|
|
@@ -4618,8 +4618,8 @@ var useProfile = () => {
|
|
|
4618
4618
|
};
|
|
4619
4619
|
|
|
4620
4620
|
// src/hooks/core/use-user.ts
|
|
4621
|
-
var useUser = () => {
|
|
4622
|
-
const userProfile = useProfile();
|
|
4621
|
+
var useUser = ({ service }) => {
|
|
4622
|
+
const userProfile = useProfile({ service });
|
|
4623
4623
|
const userDetail = useDetail(userProfile?.data?.sub);
|
|
4624
4624
|
return { userProfile, userDetail, context: userProfile?.context };
|
|
4625
4625
|
};
|
|
@@ -4669,10 +4669,12 @@ var useViewV2 = ({
|
|
|
4669
4669
|
// src/hooks/core/use-company.ts
|
|
4670
4670
|
import { useQuery as useQuery3 } from "@tanstack/react-query";
|
|
4671
4671
|
import { useEffect as useEffect4, useMemo as useMemo4 } from "react";
|
|
4672
|
-
var useCompany = () => {
|
|
4672
|
+
var useCompany = ({ service }) => {
|
|
4673
4673
|
const { setAllowCompanies, setCompanies, setDefaultCompany, env } = (0, provider_exports.useEnv)();
|
|
4674
4674
|
const { useGetCurrentCompany: useGetCurrentCompany2, useGetCompanyInfo: useGetCompanyInfo2 } = (0, provider_exports.useService)();
|
|
4675
|
-
const getCurrentCompany = useGetCurrentCompany2(
|
|
4675
|
+
const getCurrentCompany = useGetCurrentCompany2({
|
|
4676
|
+
service
|
|
4677
|
+
});
|
|
4676
4678
|
const fetchCurrentCompany = async () => {
|
|
4677
4679
|
return await getCurrentCompany.mutateAsync();
|
|
4678
4680
|
};
|
|
@@ -4729,8 +4731,8 @@ var AppProvider = ({
|
|
|
4729
4731
|
aid
|
|
4730
4732
|
}) => {
|
|
4731
4733
|
const { env } = (0, provider_exports.useEnv)();
|
|
4732
|
-
const user = useUser();
|
|
4733
|
-
const company = useCompany();
|
|
4734
|
+
const user = useUser({ service: env.default_service });
|
|
4735
|
+
const company = useCompany({ service: env.default_service });
|
|
4734
4736
|
const menuContext = useMemo5(() => {
|
|
4735
4737
|
return combineContexts([
|
|
4736
4738
|
{
|
package/package.json
CHANGED
|
@@ -1,94 +1,94 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@fctc/widget-logic",
|
|
3
|
-
"version": "3.4.
|
|
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": "^3.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
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@fctc/widget-logic",
|
|
3
|
+
"version": "3.4.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": "^3.0.4",
|
|
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
|
+
}
|