@fctc/widget-logic 4.2.2 → 4.2.4
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 -5
- package/dist/hooks.mjs +4 -5
- package/dist/index.js +7 -7
- package/dist/index.mjs +7 -7
- package/dist/widget.js +7 -7
- package/dist/widget.mjs +7 -7
- package/package.json +94 -94
package/dist/hooks.d.mts
CHANGED
|
@@ -781,7 +781,7 @@ declare const useGetSpecification: ({ model, viewData, fields, }: {
|
|
|
781
781
|
specification: Record<string, any> | null;
|
|
782
782
|
};
|
|
783
783
|
|
|
784
|
-
declare const useListData: ({ action, context, viewData, model, service, xNode, mode,
|
|
784
|
+
declare const useListData: ({ action, context, viewData, model, service, xNode, mode, }: {
|
|
785
785
|
action: ActionResultType;
|
|
786
786
|
context: any;
|
|
787
787
|
viewData?: ViewResponse;
|
|
@@ -789,7 +789,6 @@ declare const useListData: ({ action, context, viewData, model, service, xNode,
|
|
|
789
789
|
service?: string;
|
|
790
790
|
xNode?: string;
|
|
791
791
|
mode?: string;
|
|
792
|
-
limit?: number;
|
|
793
792
|
}) => {
|
|
794
793
|
state: {
|
|
795
794
|
specification: Record<string, any> | null;
|
package/dist/hooks.d.ts
CHANGED
|
@@ -781,7 +781,7 @@ declare const useGetSpecification: ({ model, viewData, fields, }: {
|
|
|
781
781
|
specification: Record<string, any> | null;
|
|
782
782
|
};
|
|
783
783
|
|
|
784
|
-
declare const useListData: ({ action, context, viewData, model, service, xNode, mode,
|
|
784
|
+
declare const useListData: ({ action, context, viewData, model, service, xNode, mode, }: {
|
|
785
785
|
action: ActionResultType;
|
|
786
786
|
context: any;
|
|
787
787
|
viewData?: ViewResponse;
|
|
@@ -789,7 +789,6 @@ declare const useListData: ({ action, context, viewData, model, service, xNode,
|
|
|
789
789
|
service?: string;
|
|
790
790
|
xNode?: string;
|
|
791
791
|
mode?: string;
|
|
792
|
-
limit?: number;
|
|
793
792
|
}) => {
|
|
794
793
|
state: {
|
|
795
794
|
specification: Record<string, any> | null;
|
package/dist/hooks.js
CHANGED
|
@@ -902,12 +902,11 @@ var useListData = ({
|
|
|
902
902
|
model,
|
|
903
903
|
service,
|
|
904
904
|
xNode,
|
|
905
|
-
mode
|
|
906
|
-
limit = 10
|
|
905
|
+
mode
|
|
907
906
|
}) => {
|
|
908
907
|
const { useGetListData: useGetListData2 } = (0, provider_exports.useService)();
|
|
909
908
|
const [page, setPage] = (0, import_react14.useState)(0);
|
|
910
|
-
const [pageLimit, setPageLimit] = (0, import_react14.useState)(
|
|
909
|
+
const [pageLimit, setPageLimit] = (0, import_react14.useState)(10);
|
|
911
910
|
const [groupByList, setGroupByList] = (0, import_react14.useState)(null);
|
|
912
911
|
const [domain, setDomain] = (0, import_react14.useState)(null);
|
|
913
912
|
const [order, setOrder] = (0, import_react14.useState)("");
|
|
@@ -924,7 +923,7 @@ var useListData = ({
|
|
|
924
923
|
return null;
|
|
925
924
|
}
|
|
926
925
|
const domainParse = domain ? [...domain] : action?.domain ? Array.isArray(action?.domain) ? [...action?.domain] : (0, import_utils5.evalJSONDomain)(action?.domain, context) : [];
|
|
927
|
-
const
|
|
926
|
+
const limit = pageLimit;
|
|
928
927
|
const offset = debouncedPage * pageLimit;
|
|
929
928
|
const fields = typeof groupByList === "object" ? groupByList?.fields : void 0;
|
|
930
929
|
const groupby = typeof groupByList === "object" ? [groupByList?.contexts?.[0]?.group_by] : [];
|
|
@@ -935,7 +934,7 @@ var useListData = ({
|
|
|
935
934
|
model: action?.res_model,
|
|
936
935
|
specification,
|
|
937
936
|
domain: domainParse,
|
|
938
|
-
limit
|
|
937
|
+
limit,
|
|
939
938
|
offset,
|
|
940
939
|
fields,
|
|
941
940
|
groupby,
|
package/dist/hooks.mjs
CHANGED
|
@@ -887,12 +887,11 @@ var useListData = ({
|
|
|
887
887
|
model,
|
|
888
888
|
service,
|
|
889
889
|
xNode,
|
|
890
|
-
mode
|
|
891
|
-
limit = 10
|
|
890
|
+
mode
|
|
892
891
|
}) => {
|
|
893
892
|
const { useGetListData: useGetListData2 } = (0, provider_exports.useService)();
|
|
894
893
|
const [page, setPage] = useState5(0);
|
|
895
|
-
const [pageLimit, setPageLimit] = useState5(
|
|
894
|
+
const [pageLimit, setPageLimit] = useState5(10);
|
|
896
895
|
const [groupByList, setGroupByList] = useState5(null);
|
|
897
896
|
const [domain, setDomain] = useState5(null);
|
|
898
897
|
const [order, setOrder] = useState5("");
|
|
@@ -909,7 +908,7 @@ var useListData = ({
|
|
|
909
908
|
return null;
|
|
910
909
|
}
|
|
911
910
|
const domainParse = domain ? [...domain] : action?.domain ? Array.isArray(action?.domain) ? [...action?.domain] : evalJSONDomain(action?.domain, context) : [];
|
|
912
|
-
const
|
|
911
|
+
const limit = pageLimit;
|
|
913
912
|
const offset = debouncedPage * pageLimit;
|
|
914
913
|
const fields = typeof groupByList === "object" ? groupByList?.fields : void 0;
|
|
915
914
|
const groupby = typeof groupByList === "object" ? [groupByList?.contexts?.[0]?.group_by] : [];
|
|
@@ -920,7 +919,7 @@ var useListData = ({
|
|
|
920
919
|
model: action?.res_model,
|
|
921
920
|
specification,
|
|
922
921
|
domain: domainParse,
|
|
923
|
-
limit
|
|
922
|
+
limit,
|
|
924
923
|
offset,
|
|
925
924
|
fields,
|
|
926
925
|
groupby,
|
package/dist/index.js
CHANGED
|
@@ -4952,12 +4952,11 @@ var useListData = ({
|
|
|
4952
4952
|
model,
|
|
4953
4953
|
service,
|
|
4954
4954
|
xNode,
|
|
4955
|
-
mode
|
|
4956
|
-
limit = 10
|
|
4955
|
+
mode
|
|
4957
4956
|
}) => {
|
|
4958
4957
|
const { useGetListData: useGetListData2 } = (0, provider_exports.useService)();
|
|
4959
4958
|
const [page, setPage] = (0, import_react14.useState)(0);
|
|
4960
|
-
const [pageLimit, setPageLimit] = (0, import_react14.useState)(
|
|
4959
|
+
const [pageLimit, setPageLimit] = (0, import_react14.useState)(10);
|
|
4961
4960
|
const [groupByList, setGroupByList] = (0, import_react14.useState)(null);
|
|
4962
4961
|
const [domain, setDomain] = (0, import_react14.useState)(null);
|
|
4963
4962
|
const [order, setOrder] = (0, import_react14.useState)("");
|
|
@@ -4974,7 +4973,7 @@ var useListData = ({
|
|
|
4974
4973
|
return null;
|
|
4975
4974
|
}
|
|
4976
4975
|
const domainParse = domain ? [...domain] : action?.domain ? Array.isArray(action?.domain) ? [...action?.domain] : (0, import_utils5.evalJSONDomain)(action?.domain, context) : [];
|
|
4977
|
-
const
|
|
4976
|
+
const limit = pageLimit;
|
|
4978
4977
|
const offset = debouncedPage * pageLimit;
|
|
4979
4978
|
const fields = typeof groupByList === "object" ? groupByList?.fields : void 0;
|
|
4980
4979
|
const groupby = typeof groupByList === "object" ? [groupByList?.contexts?.[0]?.group_by] : [];
|
|
@@ -4985,7 +4984,7 @@ var useListData = ({
|
|
|
4985
4984
|
model: action?.res_model,
|
|
4986
4985
|
specification,
|
|
4987
4986
|
domain: domainParse,
|
|
4988
|
-
limit
|
|
4987
|
+
limit,
|
|
4989
4988
|
offset,
|
|
4990
4989
|
fields,
|
|
4991
4990
|
groupby,
|
|
@@ -6233,6 +6232,7 @@ var binaryFieldController = (props) => {
|
|
|
6233
6232
|
const [selectedFile, setSelectedFile] = (0, import_react22.useState)(null);
|
|
6234
6233
|
const [selectedPreview, setSelectedPreview] = (0, import_react22.useState)(null);
|
|
6235
6234
|
const [initialFile, setInitialFile] = (0, import_react22.useState)(value || null);
|
|
6235
|
+
const { setValue } = methods;
|
|
6236
6236
|
const binaryRef = (0, import_react22.useRef)(null);
|
|
6237
6237
|
const convertUrlToBase64 = async (url) => {
|
|
6238
6238
|
try {
|
|
@@ -6283,11 +6283,11 @@ var binaryFieldController = (props) => {
|
|
|
6283
6283
|
setSelectedPreview(fileUrl);
|
|
6284
6284
|
const base64 = await convertUrlToBase64(fileUrl);
|
|
6285
6285
|
const base64Data = extractBase64Data(base64);
|
|
6286
|
-
|
|
6286
|
+
setValue(name, base64Data, { shouldDirty: true });
|
|
6287
6287
|
onChange(base64Data);
|
|
6288
6288
|
handleOnchange && handleOnchange(name ?? "", base64Data);
|
|
6289
6289
|
if (filename) {
|
|
6290
|
-
|
|
6290
|
+
setValue(
|
|
6291
6291
|
rootField ? `${rootField?.name}.${index}.${filename}` : filename,
|
|
6292
6292
|
file?.name,
|
|
6293
6293
|
{ shouldDirty: true }
|
package/dist/index.mjs
CHANGED
|
@@ -5046,12 +5046,11 @@ var useListData = ({
|
|
|
5046
5046
|
model,
|
|
5047
5047
|
service,
|
|
5048
5048
|
xNode,
|
|
5049
|
-
mode
|
|
5050
|
-
limit = 10
|
|
5049
|
+
mode
|
|
5051
5050
|
}) => {
|
|
5052
5051
|
const { useGetListData: useGetListData2 } = (0, provider_exports.useService)();
|
|
5053
5052
|
const [page, setPage] = useState5(0);
|
|
5054
|
-
const [pageLimit, setPageLimit] = useState5(
|
|
5053
|
+
const [pageLimit, setPageLimit] = useState5(10);
|
|
5055
5054
|
const [groupByList, setGroupByList] = useState5(null);
|
|
5056
5055
|
const [domain, setDomain] = useState5(null);
|
|
5057
5056
|
const [order, setOrder] = useState5("");
|
|
@@ -5068,7 +5067,7 @@ var useListData = ({
|
|
|
5068
5067
|
return null;
|
|
5069
5068
|
}
|
|
5070
5069
|
const domainParse = domain ? [...domain] : action?.domain ? Array.isArray(action?.domain) ? [...action?.domain] : evalJSONDomain(action?.domain, context) : [];
|
|
5071
|
-
const
|
|
5070
|
+
const limit = pageLimit;
|
|
5072
5071
|
const offset = debouncedPage * pageLimit;
|
|
5073
5072
|
const fields = typeof groupByList === "object" ? groupByList?.fields : void 0;
|
|
5074
5073
|
const groupby = typeof groupByList === "object" ? [groupByList?.contexts?.[0]?.group_by] : [];
|
|
@@ -5079,7 +5078,7 @@ var useListData = ({
|
|
|
5079
5078
|
model: action?.res_model,
|
|
5080
5079
|
specification,
|
|
5081
5080
|
domain: domainParse,
|
|
5082
|
-
limit
|
|
5081
|
+
limit,
|
|
5083
5082
|
offset,
|
|
5084
5083
|
fields,
|
|
5085
5084
|
groupby,
|
|
@@ -6328,6 +6327,7 @@ var binaryFieldController = (props) => {
|
|
|
6328
6327
|
const [selectedFile, setSelectedFile] = useState12(null);
|
|
6329
6328
|
const [selectedPreview, setSelectedPreview] = useState12(null);
|
|
6330
6329
|
const [initialFile, setInitialFile] = useState12(value || null);
|
|
6330
|
+
const { setValue } = methods;
|
|
6331
6331
|
const binaryRef = useRef4(null);
|
|
6332
6332
|
const convertUrlToBase64 = async (url) => {
|
|
6333
6333
|
try {
|
|
@@ -6378,11 +6378,11 @@ var binaryFieldController = (props) => {
|
|
|
6378
6378
|
setSelectedPreview(fileUrl);
|
|
6379
6379
|
const base64 = await convertUrlToBase64(fileUrl);
|
|
6380
6380
|
const base64Data = extractBase64Data(base64);
|
|
6381
|
-
|
|
6381
|
+
setValue(name, base64Data, { shouldDirty: true });
|
|
6382
6382
|
onChange(base64Data);
|
|
6383
6383
|
handleOnchange && handleOnchange(name ?? "", base64Data);
|
|
6384
6384
|
if (filename) {
|
|
6385
|
-
|
|
6385
|
+
setValue(
|
|
6386
6386
|
rootField ? `${rootField?.name}.${index}.${filename}` : filename,
|
|
6387
6387
|
file?.name,
|
|
6388
6388
|
{ shouldDirty: true }
|
package/dist/widget.js
CHANGED
|
@@ -4470,12 +4470,11 @@ var useListData = ({
|
|
|
4470
4470
|
model,
|
|
4471
4471
|
service,
|
|
4472
4472
|
xNode,
|
|
4473
|
-
mode
|
|
4474
|
-
limit = 10
|
|
4473
|
+
mode
|
|
4475
4474
|
}) => {
|
|
4476
4475
|
const { useGetListData: useGetListData2 } = (0, provider_exports.useService)();
|
|
4477
4476
|
const [page, setPage] = (0, import_react15.useState)(0);
|
|
4478
|
-
const [pageLimit, setPageLimit] = (0, import_react15.useState)(
|
|
4477
|
+
const [pageLimit, setPageLimit] = (0, import_react15.useState)(10);
|
|
4479
4478
|
const [groupByList, setGroupByList] = (0, import_react15.useState)(null);
|
|
4480
4479
|
const [domain, setDomain] = (0, import_react15.useState)(null);
|
|
4481
4480
|
const [order, setOrder] = (0, import_react15.useState)("");
|
|
@@ -4492,7 +4491,7 @@ var useListData = ({
|
|
|
4492
4491
|
return null;
|
|
4493
4492
|
}
|
|
4494
4493
|
const domainParse = domain ? [...domain] : action?.domain ? Array.isArray(action?.domain) ? [...action?.domain] : (0, import_utils5.evalJSONDomain)(action?.domain, context) : [];
|
|
4495
|
-
const
|
|
4494
|
+
const limit = pageLimit;
|
|
4496
4495
|
const offset = debouncedPage * pageLimit;
|
|
4497
4496
|
const fields = typeof groupByList === "object" ? groupByList?.fields : void 0;
|
|
4498
4497
|
const groupby = typeof groupByList === "object" ? [groupByList?.contexts?.[0]?.group_by] : [];
|
|
@@ -4503,7 +4502,7 @@ var useListData = ({
|
|
|
4503
4502
|
model: action?.res_model,
|
|
4504
4503
|
specification,
|
|
4505
4504
|
domain: domainParse,
|
|
4506
|
-
limit
|
|
4505
|
+
limit,
|
|
4507
4506
|
offset,
|
|
4508
4507
|
fields,
|
|
4509
4508
|
groupby,
|
|
@@ -5459,6 +5458,7 @@ var binaryFieldController = (props) => {
|
|
|
5459
5458
|
const [selectedFile, setSelectedFile] = (0, import_react22.useState)(null);
|
|
5460
5459
|
const [selectedPreview, setSelectedPreview] = (0, import_react22.useState)(null);
|
|
5461
5460
|
const [initialFile, setInitialFile] = (0, import_react22.useState)(value || null);
|
|
5461
|
+
const { setValue } = methods;
|
|
5462
5462
|
const binaryRef = (0, import_react22.useRef)(null);
|
|
5463
5463
|
const convertUrlToBase64 = async (url) => {
|
|
5464
5464
|
try {
|
|
@@ -5509,11 +5509,11 @@ var binaryFieldController = (props) => {
|
|
|
5509
5509
|
setSelectedPreview(fileUrl);
|
|
5510
5510
|
const base64 = await convertUrlToBase64(fileUrl);
|
|
5511
5511
|
const base64Data = extractBase64Data(base64);
|
|
5512
|
-
|
|
5512
|
+
setValue(name, base64Data, { shouldDirty: true });
|
|
5513
5513
|
onChange(base64Data);
|
|
5514
5514
|
handleOnchange && handleOnchange(name ?? "", base64Data);
|
|
5515
5515
|
if (filename) {
|
|
5516
|
-
|
|
5516
|
+
setValue(
|
|
5517
5517
|
rootField ? `${rootField?.name}.${index}.${filename}` : filename,
|
|
5518
5518
|
file?.name,
|
|
5519
5519
|
{ shouldDirty: true }
|
package/dist/widget.mjs
CHANGED
|
@@ -4542,12 +4542,11 @@ var useListData = ({
|
|
|
4542
4542
|
model,
|
|
4543
4543
|
service,
|
|
4544
4544
|
xNode,
|
|
4545
|
-
mode
|
|
4546
|
-
limit = 10
|
|
4545
|
+
mode
|
|
4547
4546
|
}) => {
|
|
4548
4547
|
const { useGetListData: useGetListData2 } = (0, provider_exports.useService)();
|
|
4549
4548
|
const [page, setPage] = useState6(0);
|
|
4550
|
-
const [pageLimit, setPageLimit] = useState6(
|
|
4549
|
+
const [pageLimit, setPageLimit] = useState6(10);
|
|
4551
4550
|
const [groupByList, setGroupByList] = useState6(null);
|
|
4552
4551
|
const [domain, setDomain] = useState6(null);
|
|
4553
4552
|
const [order, setOrder] = useState6("");
|
|
@@ -4564,7 +4563,7 @@ var useListData = ({
|
|
|
4564
4563
|
return null;
|
|
4565
4564
|
}
|
|
4566
4565
|
const domainParse = domain ? [...domain] : action?.domain ? Array.isArray(action?.domain) ? [...action?.domain] : evalJSONDomain(action?.domain, context) : [];
|
|
4567
|
-
const
|
|
4566
|
+
const limit = pageLimit;
|
|
4568
4567
|
const offset = debouncedPage * pageLimit;
|
|
4569
4568
|
const fields = typeof groupByList === "object" ? groupByList?.fields : void 0;
|
|
4570
4569
|
const groupby = typeof groupByList === "object" ? [groupByList?.contexts?.[0]?.group_by] : [];
|
|
@@ -4575,7 +4574,7 @@ var useListData = ({
|
|
|
4575
4574
|
model: action?.res_model,
|
|
4576
4575
|
specification,
|
|
4577
4576
|
domain: domainParse,
|
|
4578
|
-
limit
|
|
4577
|
+
limit,
|
|
4579
4578
|
offset,
|
|
4580
4579
|
fields,
|
|
4581
4580
|
groupby,
|
|
@@ -5531,6 +5530,7 @@ var binaryFieldController = (props) => {
|
|
|
5531
5530
|
const [selectedFile, setSelectedFile] = useState12(null);
|
|
5532
5531
|
const [selectedPreview, setSelectedPreview] = useState12(null);
|
|
5533
5532
|
const [initialFile, setInitialFile] = useState12(value || null);
|
|
5533
|
+
const { setValue } = methods;
|
|
5534
5534
|
const binaryRef = useRef4(null);
|
|
5535
5535
|
const convertUrlToBase64 = async (url) => {
|
|
5536
5536
|
try {
|
|
@@ -5581,11 +5581,11 @@ var binaryFieldController = (props) => {
|
|
|
5581
5581
|
setSelectedPreview(fileUrl);
|
|
5582
5582
|
const base64 = await convertUrlToBase64(fileUrl);
|
|
5583
5583
|
const base64Data = extractBase64Data(base64);
|
|
5584
|
-
|
|
5584
|
+
setValue(name, base64Data, { shouldDirty: true });
|
|
5585
5585
|
onChange(base64Data);
|
|
5586
5586
|
handleOnchange && handleOnchange(name ?? "", base64Data);
|
|
5587
5587
|
if (filename) {
|
|
5588
|
-
|
|
5588
|
+
setValue(
|
|
5589
5589
|
rootField ? `${rootField?.name}.${index}.${filename}` : filename,
|
|
5590
5590
|
file?.name,
|
|
5591
5591
|
{ shouldDirty: true }
|
package/package.json
CHANGED
|
@@ -1,94 +1,94 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@fctc/widget-logic",
|
|
3
|
-
"version": "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.
|
|
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": "4.2.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.7.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
|
+
}
|