@zimyo/manage 0.2.9 → 0.2.11

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.
Files changed (48) hide show
  1. package/dist/.vite/manifest.json +12 -0
  2. package/dist/{types/App.d.ts → App.d.ts} +1 -1
  3. package/dist/{types/components → components}/ui/Alert/Alert.d.ts +1 -2
  4. package/dist/{types/components → components}/ui/DatePicker/DatePicker.d.ts +0 -1
  5. package/dist/{types/components → components}/ui/Loader/Loader.d.ts +1 -1
  6. package/dist/index.d.ts +1 -0
  7. package/dist/main.cjs +3141 -0
  8. package/dist/main.d.ts +9 -0
  9. package/dist/main.js +83243 -0
  10. package/dist/{types/shared → shared}/hooks/useFetch.d.ts +8 -9
  11. package/dist/{types/shared → shared}/providers/AppProvider.d.ts +2 -3
  12. package/dist/{types/shared → shared}/providers/AuthProvider.d.ts +1 -2
  13. package/dist/{types/shared → shared}/services/http.d.ts +4 -4
  14. package/dist/{types/shared → shared}/types/backend.types.d.ts +1 -2
  15. package/dist/{types/shared → shared}/zustand/alert.store.d.ts +1 -2
  16. package/dist/{types/shared → shared}/zustand/session.store.d.ts +1 -1
  17. package/package.json +29 -24
  18. package/dist/main.cjs.js +0 -74
  19. package/dist/main.es.js +0 -18831
  20. package/dist/types/index.d.ts +0 -1
  21. package/dist/types/main.d.ts +0 -9
  22. /package/dist/{types/components → components}/manage/Subscription/Consumption/Consumption.d.ts +0 -0
  23. /package/dist/{types/components → components}/manage/Subscription/Invoices/Invoices.d.ts +0 -0
  24. /package/dist/{types/components → components}/manage/Subscription/Invoices/constant.d.ts +0 -0
  25. /package/dist/{types/components → components}/manage/Subscription/Overview/Overview.d.ts +0 -0
  26. /package/dist/{types/components → components}/manage/Subscription/PaymentMethod/PaymentMethod.d.ts +0 -0
  27. /package/dist/{types/components → components}/manage/Subscription/PlansOverview/PlansOverview.d.ts +0 -0
  28. /package/dist/{types/components → components}/manage/Subscription/PlansOverview/constant.d.ts +0 -0
  29. /package/dist/{types/components → components}/manage/Subscription/SubscribedPlan/SubscribedPlan.d.ts +0 -0
  30. /package/dist/{types/components → components}/manage/Subscription/Wallet/Wallet.d.ts +0 -0
  31. /package/dist/{types/components → components}/manage/Subscription/Wallet/constant.d.ts +0 -0
  32. /package/dist/{types/components → components}/ui/NoDataFound/NoDataFound.d.ts +0 -0
  33. /package/dist/{types/components → components}/ui/OrgDetailsCard/OrgDetailsCard.d.ts +0 -0
  34. /package/dist/{types/components → components}/ui/OverviewCard/OverviewCard.d.ts +0 -0
  35. /package/dist/{types/components → components}/ui/TextReducingTooltipComponent/TextReducingTooltipComponent.d.ts +0 -0
  36. /package/dist/{types/components → components}/ui/TopUpWalletModal/TopUpWalletModal.d.ts +0 -0
  37. /package/dist/{types/shared → shared}/constants/constant.d.ts +0 -0
  38. /package/dist/{types/shared → shared}/constants/endpoints.d.ts +0 -0
  39. /package/dist/{types/shared → shared}/constants/form-types.d.ts +0 -0
  40. /package/dist/{types/shared → shared}/constants/status.d.ts +0 -0
  41. /package/dist/{types/shared → shared}/constants/time.d.ts +0 -0
  42. /package/dist/{types/shared → shared}/hooks/useConstants.d.ts +0 -0
  43. /package/dist/{types/shared → shared}/hooks/useErrorAlert.d.ts +0 -0
  44. /package/dist/{types/shared → shared}/hooks/useLoading.d.ts +0 -0
  45. /package/dist/{types/shared → shared}/hooks/useMutation.d.ts +0 -0
  46. /package/dist/{types/shared → shared}/hooks/useSuccessAlert.d.ts +0 -0
  47. /package/dist/{types/shared → shared}/services/cashfree-payments.d.ts +0 -0
  48. /package/dist/{types/shared → shared}/utils/utils.d.ts +0 -0
@@ -1,7 +1,6 @@
1
- import { AxiosResponse } from 'axios';
2
- import { UseQueryOptions } from 'react-query';
3
- import { HttpServiceType } from '../services/http';
4
-
1
+ import { AxiosResponse } from "axios";
2
+ import { UseQueryOptions } from "react-query";
3
+ import { HttpServiceType } from "@services/http";
5
4
  export declare const useFetch: (apiPromise: (options: HttpServiceType, signal: AbortSignal | undefined) => Promise<AxiosResponse<any, any>>, apiPromiseArgs: HttpServiceType, key: any, queryOptions?: Omit<UseQueryOptions<any, any, any, any>, "queryKey" | "queryFn">) => {
6
5
  data: undefined;
7
6
  error: null;
@@ -23,7 +22,7 @@ export declare const useFetch: (apiPromise: (options: HttpServiceType, signal: A
23
22
  isPreviousData: boolean;
24
23
  isRefetching: boolean;
25
24
  isStale: boolean;
26
- refetch: <TPageData>(options?: (import('react-query').RefetchOptions & import('react-query').RefetchQueryFilters<TPageData>) | undefined) => Promise<import('react-query').QueryObserverResult<any, any>>;
25
+ refetch: <TPageData>(options?: (import("react-query").RefetchOptions & import("react-query").RefetchQueryFilters<TPageData>) | undefined) => Promise<import("react-query").QueryObserverResult<any, any>>;
27
26
  remove: () => void;
28
27
  rq_data: any;
29
28
  } | {
@@ -47,7 +46,7 @@ export declare const useFetch: (apiPromise: (options: HttpServiceType, signal: A
47
46
  isPreviousData: boolean;
48
47
  isRefetching: boolean;
49
48
  isStale: boolean;
50
- refetch: <TPageData>(options?: (import('react-query').RefetchOptions & import('react-query').RefetchQueryFilters<TPageData>) | undefined) => Promise<import('react-query').QueryObserverResult<any, any>>;
49
+ refetch: <TPageData>(options?: (import("react-query").RefetchOptions & import("react-query").RefetchQueryFilters<TPageData>) | undefined) => Promise<import("react-query").QueryObserverResult<any, any>>;
51
50
  remove: () => void;
52
51
  rq_data: any;
53
52
  } | {
@@ -71,7 +70,7 @@ export declare const useFetch: (apiPromise: (options: HttpServiceType, signal: A
71
70
  isPreviousData: boolean;
72
71
  isRefetching: boolean;
73
72
  isStale: boolean;
74
- refetch: <TPageData>(options?: (import('react-query').RefetchOptions & import('react-query').RefetchQueryFilters<TPageData>) | undefined) => Promise<import('react-query').QueryObserverResult<any, any>>;
73
+ refetch: <TPageData>(options?: (import("react-query").RefetchOptions & import("react-query").RefetchQueryFilters<TPageData>) | undefined) => Promise<import("react-query").QueryObserverResult<any, any>>;
75
74
  remove: () => void;
76
75
  rq_data: any;
77
76
  } | {
@@ -95,7 +94,7 @@ export declare const useFetch: (apiPromise: (options: HttpServiceType, signal: A
95
94
  isPreviousData: boolean;
96
95
  isRefetching: boolean;
97
96
  isStale: boolean;
98
- refetch: <TPageData>(options?: (import('react-query').RefetchOptions & import('react-query').RefetchQueryFilters<TPageData>) | undefined) => Promise<import('react-query').QueryObserverResult<any, any>>;
97
+ refetch: <TPageData>(options?: (import("react-query").RefetchOptions & import("react-query").RefetchQueryFilters<TPageData>) | undefined) => Promise<import("react-query").QueryObserverResult<any, any>>;
99
98
  remove: () => void;
100
99
  rq_data: any;
101
100
  } | {
@@ -119,7 +118,7 @@ export declare const useFetch: (apiPromise: (options: HttpServiceType, signal: A
119
118
  isPreviousData: boolean;
120
119
  isRefetching: boolean;
121
120
  isStale: boolean;
122
- refetch: <TPageData>(options?: (import('react-query').RefetchOptions & import('react-query').RefetchQueryFilters<TPageData>) | undefined) => Promise<import('react-query').QueryObserverResult<any, any>>;
121
+ refetch: <TPageData>(options?: (import("react-query").RefetchOptions & import("react-query").RefetchQueryFilters<TPageData>) | undefined) => Promise<import("react-query").QueryObserverResult<any, any>>;
123
122
  remove: () => void;
124
123
  rq_data: any;
125
124
  };
@@ -1,6 +1,5 @@
1
- import { ReactNode } from 'react';
2
- import { QueryClient } from 'react-query';
3
-
1
+ import { ReactNode } from "react";
2
+ import { QueryClient } from "react-query";
4
3
  interface AuthProviderProps {
5
4
  queryClient: QueryClient;
6
5
  token: string;
@@ -1,5 +1,4 @@
1
- import { ReactNode } from 'react';
2
-
1
+ import { ReactNode } from "react";
3
2
  declare const AuthProvider: ({ children, token, API_BASE_URL, ASSETS_BASE_URL, HRMS_BASE_URL, mode, }: {
4
3
  token: string;
5
4
  API_BASE_URL: string;
@@ -5,7 +5,7 @@ export type HttpServiceType = {
5
5
  params?: any;
6
6
  isNativeEndpoint?: boolean;
7
7
  };
8
- export declare const getService: ({ url, token, params }: HttpServiceType) => Promise<import('axios').AxiosResponse<any, any>>;
9
- export declare const postService: ({ url, token, data, params }: HttpServiceType) => Promise<import('axios').AxiosResponse<any, any>>;
10
- export declare const patchService: ({ url, token, data, params }: HttpServiceType) => Promise<import('axios').AxiosResponse<any, any>>;
11
- export declare const deleteService: ({ url, token, data, params }: HttpServiceType) => Promise<import('axios').AxiosResponse<any, any>>;
8
+ export declare const getService: ({ url, token, params }: HttpServiceType) => Promise<import("axios").AxiosResponse<any, any>>;
9
+ export declare const postService: ({ url, token, data, params }: HttpServiceType) => Promise<import("axios").AxiosResponse<any, any>>;
10
+ export declare const patchService: ({ url, token, data, params }: HttpServiceType) => Promise<import("axios").AxiosResponse<any, any>>;
11
+ export declare const deleteService: ({ url, token, data, params }: HttpServiceType) => Promise<import("axios").AxiosResponse<any, any>>;
@@ -1,5 +1,4 @@
1
- import { AxiosError, AxiosResponse } from 'axios';
2
-
1
+ import { AxiosError, AxiosResponse } from "axios";
3
2
  export type UserType = any;
4
3
  export type BackendResponseType<T> = AxiosResponse<{
5
4
  error: boolean;
@@ -1,5 +1,4 @@
1
1
  import { AlertColor } from '@mui/material';
2
-
3
2
  type State = {
4
3
  alert: {
5
4
  isLoading: boolean;
@@ -17,5 +16,5 @@ type Actions = {
17
16
  }) => void;
18
17
  clearAlert: () => void;
19
18
  };
20
- export declare const useAlertStore: import('zustand').UseBoundStore<import('zustand').StoreApi<State & Actions>>;
19
+ export declare const useAlertStore: import("zustand").UseBoundStore<import("zustand").StoreApi<State & Actions>>;
21
20
  export {};
@@ -18,5 +18,5 @@ type Actions = {
18
18
  }) => void;
19
19
  clearSession: () => void;
20
20
  };
21
- export declare const useSessionStore: import('zustand').UseBoundStore<import('zustand').StoreApi<State & Actions>>;
21
+ export declare const useSessionStore: import("zustand").UseBoundStore<import("zustand").StoreApi<State & Actions>>;
22
22
  export {};
package/package.json CHANGED
@@ -1,45 +1,55 @@
1
1
  {
2
2
  "name": "@zimyo/manage",
3
3
  "private": false,
4
- "version": "0.2.9",
4
+ "version": "0.2.11",
5
+ "type": "module",
5
6
  "publishConfig": {
6
7
  "access": "public"
7
8
  },
8
- "main": "dist/main.cjs.js",
9
- "module": "dist/main.es.js",
10
- "types": "dist/types/main.d.ts",
11
- "style": "dist/style.css",
12
- "files": [
13
- "dist"
14
- ],
15
9
  "scripts": {
16
10
  "dev": "vite",
17
- "build": "vite build --mode production",
11
+ "build": "tsc -b && vite build",
18
12
  "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
19
13
  "preview": "vite preview"
20
14
  },
15
+ "exports": {
16
+ ".": {
17
+ "import": "./dist/main.js",
18
+ "require": "./dist/main.cjs",
19
+ "types": "./dist/index.d.ts"
20
+ },
21
+ "./style.css": {
22
+ "import": "./dist/style.css",
23
+ "require": "./dist/style.css"
24
+ }
25
+ },
26
+ "main": "./dist/main.cjs",
27
+ "style": "./dist/style.css",
28
+ "module": "./dist/main.js",
29
+ "typings": "./dist/main.d.ts",
30
+ "files": [
31
+ "dist"
32
+ ],
21
33
  "dependencies": {
22
34
  "@cashfreepayments/cashfree-js": "^1.0.5",
23
35
  "@mui/icons-material": "^5.16.5",
24
36
  "@mui/x-date-pickers": "^7.9.0",
37
+ "@zimyo/components": "^4.2.5",
38
+ "@zimyo/design-system": "^4.0.0",
25
39
  "axios": "^1.7.2",
26
40
  "dayjs": "^1.11.11",
27
- "lodash-es": "^4.17.21",
28
- "react-icons": "^5.5.0",
41
+ "lodash": "^4.17.21",
42
+ "react": "^18.3.1",
43
+ "react-dom": "^18.3.1",
44
+ "react-icons": "^5.2.1",
45
+ "react-if": "^4.1.5",
29
46
  "react-query": "^3.39.3",
30
47
  "tinycolor2": "^1.6.0",
31
48
  "zustand": "^4.5.4"
32
49
  },
33
- "peerDependencies": {
34
- "@mui/material": "^5.0.0",
35
- "@zimyo/components": "^4.2.5",
36
- "react": ">=17.0.0 <19.0.0",
37
- "react-dom": ">=17.0.0 <19.0.0"
38
- },
39
50
  "devDependencies": {
40
- "@mui/material": "^5.16.5",
41
51
  "@rollup/plugin-typescript": "^11.1.6",
42
- "@types/lodash-es": "^4.17.12",
52
+ "@types/lodash": "^4.17.6",
43
53
  "@types/node": "^20.14.9",
44
54
  "@types/react": "^18.3.3",
45
55
  "@types/react-dom": "^18.3.0",
@@ -47,17 +57,12 @@
47
57
  "@typescript-eslint/eslint-plugin": "^7.13.1",
48
58
  "@typescript-eslint/parser": "^7.13.1",
49
59
  "@vitejs/plugin-react": "^4.3.1",
50
- "@zimyo/components": "^4.2.5",
51
60
  "eslint": "^8.57.0",
52
61
  "eslint-plugin-react-hooks": "^4.6.2",
53
62
  "eslint-plugin-react-refresh": "^0.4.7",
54
- "react": "^17.0.1",
55
- "react-dom": "^17.0.1",
56
63
  "rollup-plugin-typescript-paths": "^1.5.0",
57
- "terser": "^5.39.2",
58
64
  "typescript": "^5.2.2",
59
65
  "vite": "^5.3.1",
60
- "vite-bundle-analyzer": "^0.21.0",
61
66
  "vite-plugin-dts": "^3.9.1"
62
67
  }
63
68
  }