fui-material 1.15.9 → 1.15.10

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.
@@ -1,10 +1,10 @@
1
1
  import { AxiosRequestConfig } from 'axios';
2
- type UseApiResponse<T> = {
2
+ export type IUseFApi<T> = {
3
3
  data: T | null;
4
4
  loading: boolean;
5
5
  error: string | null;
6
6
  execute: (config: AxiosRequestConfig) => Promise<T | null>;
7
7
  reset: (newData: T | null) => void;
8
8
  };
9
- declare const useFApi: <T>() => UseApiResponse<T>;
9
+ declare const useFApi: <T>() => IUseFApi<T>;
10
10
  export default useFApi;
@@ -1,10 +1,10 @@
1
1
  import { AxiosRequestConfig } from 'axios';
2
- type UseApiResponse<T> = {
2
+ export type IUseFApi<T> = {
3
3
  data: T | null;
4
4
  loading: boolean;
5
5
  error: string | null;
6
6
  execute: (config: AxiosRequestConfig) => Promise<T | null>;
7
7
  reset: (newData: T | null) => void;
8
8
  };
9
- declare const useFApi: <T>() => UseApiResponse<T>;
9
+ declare const useFApi: <T>() => IUseFApi<T>;
10
10
  export default useFApi;
package/dist/index.d.ts CHANGED
@@ -718,13 +718,13 @@ declare const fNotification: ({ title, body, variant, timeSecClose, buttonClose,
718
718
 
719
719
  declare const fNotificationDelete: (id: string) => void;
720
720
 
721
- type UseApiResponse<T> = {
721
+ type IUseFApi<T> = {
722
722
  data: T | null;
723
723
  loading: boolean;
724
724
  error: string | null;
725
725
  execute: (config: AxiosRequestConfig) => Promise<T | null>;
726
726
  reset: (newData: T | null) => void;
727
727
  };
728
- declare const useFApi: <T>() => UseApiResponse<T>;
728
+ declare const useFApi: <T>() => IUseFApi<T>;
729
729
 
730
730
  export { FAccordion, FAlert, FArrowIcon, FButton, FButtonFile, FCarousel, FCarouselItem, FCheckIcon, FCheckbox, FCloseIcon, FContainer, FCopyAddIcon, FDialog, FDialogBody, FDialogFooter, FDialogHeader, FDocumentIcon, FDownloadIcon, FDropdown, FDropdownItem, FFile, FFilterIcon, FFullDateField, FGrid, FInputFileForm, FListIcon, FLoadIcon, FNative, FOpenImgFull, FPagination, FPaper, FPenIcon, FPlusIcon, FPreloader, FProgress, FRadioButton, FSearchBox, FSelect, FSelectItem, FSelectSearchDb, FSkeleton, FStack, FTab, FTable, FTableBody, FTableDataCell, FTableFooter, FTableHead, FTableHeaderCell, FTableRow, FTabs, FTextArea, FTextField, FTimeline, FTimelineCard, FTrashIcon, FUnlinkIcon, fAlert, fConfirm, fExportHtmlOrJsxToWord, fExportTableToExcel, fNotification, fNotificationDelete, fPrompt, useFApi };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fui-material",
3
- "version": "1.15.9",
3
+ "version": "1.15.10",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org/"
@@ -19,8 +19,7 @@
19
19
  "react-dom": "^18.2.0",
20
20
  "react-scripts": "5.0.1",
21
21
  "rollup-plugin-polyfill-node": "^0.12.0",
22
- "typescript": "^4.9.3",
23
- "axios": "1.7.4"
22
+ "typescript": "^4.9.3"
24
23
  },
25
24
  "scripts": {
26
25
  "build": "rollup -c",
@@ -50,6 +49,7 @@
50
49
  "devDependencies": {
51
50
  "@rollup/plugin-commonjs": "^21.0.1",
52
51
  "@rollup/plugin-image": "^3.0.2",
52
+ "@rollup/plugin-json": "^6.1.0",
53
53
  "@rollup/plugin-node-resolve": "^13.0.6",
54
54
  "@rollup/plugin-typescript": "^11.1.5",
55
55
  "bootstrap": "^5.2.2",