@zimyo/manage 0.2.6 → 0.2.8

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