@tap-payments/os-micro-frontend-shared 0.1.8 → 0.1.9-test.1-test.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.
Files changed (76) hide show
  1. package/build/components/ActionMenu/style.d.ts +1 -1
  2. package/build/components/Chip/style.d.ts +1 -1
  3. package/build/components/CountBadge/style.d.ts +1 -1
  4. package/build/components/Dialog/style.d.ts +1 -1
  5. package/build/components/FlippingCard/style.d.ts +1 -1
  6. package/build/components/ImageWrapper/ImageWrapper.d.ts +1 -1
  7. package/build/components/JSONViewer/style.d.ts +2 -2
  8. package/build/components/SearchButton/styles.d.ts +3 -3
  9. package/build/components/StatusIcons/AuthIcons/style.d.ts +2 -2
  10. package/build/components/StatusIcons/AuthorizationAutoIcons/style.d.ts +1 -1
  11. package/build/components/StatusIcons/ChargeStatusIcon/style.d.ts +6 -6
  12. package/build/components/StatusIcons/SourceIcons/style.d.ts +1 -1
  13. package/build/components/TableCells/CustomCells/ActionCell/hooks/useActionCell.d.ts +1 -1
  14. package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +2 -2
  15. package/build/components/TableCells/CustomCells/ApplicationStatusCell/style.d.ts +1 -1
  16. package/build/components/TableCells/CustomCells/AuthenticationCell/style.d.ts +2 -2
  17. package/build/components/TableCells/CustomCells/AuthenticationStatusCell/style.d.ts +5 -5
  18. package/build/components/TableCells/CustomCells/AuthenticationTypeCell/style.d.ts +5 -5
  19. package/build/components/TableCells/CustomCells/BalanceCell/style.d.ts +1 -1
  20. package/build/components/TableCells/CustomCells/ChannelsCell/style.d.ts +1 -1
  21. package/build/components/TableCells/CustomCells/CheckoutStatusCell/style.d.ts +1 -1
  22. package/build/components/TableCells/CustomCells/DestinationStatusCell/style.d.ts +5 -5
  23. package/build/components/TableCells/CustomCells/DueDateCell/style.d.ts +1 -1
  24. package/build/components/TableCells/CustomCells/IDButton/style.d.ts +2 -2
  25. package/build/components/TableCells/CustomCells/IntentsStatusCell/style.d.ts +1 -1
  26. package/build/components/TableCells/CustomCells/InvoiceStatusCell/style.d.ts +1 -1
  27. package/build/components/TableCells/CustomCells/PayoutStatusCell/style.d.ts +5 -5
  28. package/build/components/TableCells/CustomCells/ProductsCell/style.d.ts +1 -1
  29. package/build/components/TableCells/CustomCells/ReferenceCell/style.d.ts +1 -1
  30. package/build/components/TableCells/CustomCells/RefundChargeCell/style.d.ts +2 -2
  31. package/build/components/TableCells/CustomCells/RefundStatusCell/style.d.ts +1 -1
  32. package/build/components/TableCells/CustomCells/SalesChannelCell/style.d.ts +1 -1
  33. package/build/components/TableCells/CustomCells/SegmentsCell/style.d.ts +1 -1
  34. package/build/components/TableCells/CustomCells/SourceCell/style.d.ts +1 -1
  35. package/build/components/TableCells/CustomCells/SourceMergedCell/style.d.ts +6 -6
  36. package/build/components/TableCells/CustomCells/StatusCell/style.d.ts +6 -6
  37. package/build/components/TableCells/CustomCells/TokenStatusCell/style.d.ts +5 -5
  38. package/build/components/TableCells/CustomCells/style.d.ts +1 -1
  39. package/build/components/VirtualTables/SheetViewVirtualTable/SheetViewVirtualTable.js +34 -174
  40. package/build/components/VirtualTables/SheetViewVirtualTable/components/NoDataSection.d.ts +32 -0
  41. package/build/components/VirtualTables/SheetViewVirtualTable/components/NoDataSection.js +30 -0
  42. package/build/components/VirtualTables/SheetViewVirtualTable/components/PinnedColumnSection.d.ts +51 -0
  43. package/build/components/VirtualTables/SheetViewVirtualTable/components/PinnedColumnSection.js +20 -0
  44. package/build/components/VirtualTables/SheetViewVirtualTable/components/SheetViewTableHeader/SheetViewTableHeader.js +1 -1
  45. package/build/components/VirtualTables/SheetViewVirtualTable/components/SheetViewTableHeader/TableCell.js +1 -1
  46. package/build/components/VirtualTables/SheetViewVirtualTable/components/SheetViewTableLoading.js +1 -1
  47. package/build/components/VirtualTables/SheetViewVirtualTable/components/SheetViewTableNoData.js +1 -1
  48. package/build/components/VirtualTables/SheetViewVirtualTable/components/VirtualListSection.d.ts +34 -0
  49. package/build/components/VirtualTables/SheetViewVirtualTable/components/VirtualListSection.js +76 -0
  50. package/build/components/VirtualTables/SheetViewVirtualTable/components/index.d.ts +3 -0
  51. package/build/components/VirtualTables/SheetViewVirtualTable/components/index.js +3 -0
  52. package/build/components/VirtualTables/SheetViewVirtualTable/hooks/usePinnedWidths.d.ts +5 -0
  53. package/build/components/VirtualTables/SheetViewVirtualTable/hooks/usePinnedWidths.js +12 -0
  54. package/build/components/VirtualTables/SheetViewVirtualTable/hooks/useSelection.d.ts +6 -0
  55. package/build/components/VirtualTables/SheetViewVirtualTable/hooks/useSelection.js +17 -0
  56. package/build/components/VirtualTables/SheetViewVirtualTable/hooks/useSharedItemSize.d.ts +10 -0
  57. package/build/components/VirtualTables/SheetViewVirtualTable/hooks/useSharedItemSize.js +21 -0
  58. package/build/components/VirtualTables/SheetViewVirtualTable/hooks/useSheetViewStates.d.ts +14 -0
  59. package/build/components/VirtualTables/SheetViewVirtualTable/hooks/useSheetViewStates.js +20 -0
  60. package/build/components/VirtualTables/SheetViewVirtualTable/style.d.ts +0 -2
  61. package/build/components/VirtualTables/SheetViewVirtualTable/style.js +0 -10
  62. package/build/components/VirtualTables/VirtualTable/VirtualTable.d.ts +1 -1
  63. package/build/components/VirtualTables/VirtualTable/VirtualTable.js +19 -79
  64. package/build/components/VirtualTables/VirtualTable/VirtualTableList.d.ts +19 -0
  65. package/build/components/VirtualTables/VirtualTable/VirtualTableList.js +27 -0
  66. package/build/components/VirtualTables/VirtualTable/useVirtualTable.d.ts +31 -0
  67. package/build/components/VirtualTables/VirtualTable/useVirtualTable.js +70 -0
  68. package/build/components/VirtualTables/components/TableRow.js +1 -1
  69. package/build/components/VirtualTables/components/style.d.ts +1 -1
  70. package/build/components/Window/style.d.ts +2 -2
  71. package/build/constants/assets.d.ts +1 -0
  72. package/build/constants/assets.js +1 -0
  73. package/build/types/table.d.ts +0 -1
  74. package/package.json +134 -134
  75. /package/build/components/VirtualTables/{utils/getSelectionStyles.d.ts → components/utils.d.ts} +0 -0
  76. /package/build/components/VirtualTables/{utils/getSelectionStyles.js → components/utils.js} +0 -0
@@ -0,0 +1,70 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
11
+ import memoize from 'memoize-one';
12
+ import { useDelayToSetValue } from '../../../hooks/index.js';
13
+ import { hasError, isHeightNotFullyFilledByRows, isNotFoundError, isTimeoutError } from '../../../utils/index.js';
14
+ const createItemData = memoize((columns, isLoading, rows, rowProps, scrollToIndex, lastItemIndex, totalCount, isError, areAllRowsLoaded) => ({
15
+ columns,
16
+ isLoading,
17
+ rows,
18
+ rowProps,
19
+ scrollToIndex,
20
+ totalCount,
21
+ lastItemIndex,
22
+ isError,
23
+ areAllRowsLoaded,
24
+ }));
25
+ export function useVirtualTable({ columns, rows, rowProps, footerProps, isLoading, error, isFetchingNextPage, scrollToIndex, areAllRowsLoaded = false, loadMoreItems, }) {
26
+ var _a;
27
+ const isDelayedFetchingNextPage = !!useDelayToSetValue({ value: isFetchingNextPage, delay: 1000 });
28
+ const [showBackDrop, setShowBackdrop] = useState(false);
29
+ const isError = hasError(error);
30
+ const tableLoading = isLoading !== null && isLoading !== void 0 ? isLoading : true;
31
+ const tableError = !isLoading && rows.length === 0 && isError && !isNotFoundError(error);
32
+ const tableEmpty = !isLoading && rows.length === 0;
33
+ const hasTimeoutError = isTimeoutError(error);
34
+ const lastItemIndex = rows.length - 1;
35
+ const shownColumns = useMemo(() => columns.filter((column) => !column.hidden), [columns]);
36
+ const orderedColumns = useMemo(() => shownColumns.slice().sort((a, b) => { var _a, _b; return ((_a = a === null || a === void 0 ? void 0 : a.order) !== null && _a !== void 0 ? _a : 1000000) - ((_b = b === null || b === void 0 ? void 0 : b.order) !== null && _b !== void 0 ? _b : 1000000); }), [shownColumns]);
37
+ const areTotalRowsNotFillingHeight = isHeightNotFullyFilledByRows(rows.length) && !tableLoading;
38
+ const itemsCount = isDelayedFetchingNextPage || (areAllRowsLoaded && !areTotalRowsNotFillingHeight) ? rows.length + 1 : rows.length;
39
+ const itemData = createItemData(orderedColumns, isDelayedFetchingNextPage, rows, rowProps, scrollToIndex, lastItemIndex, (_a = footerProps === null || footerProps === void 0 ? void 0 : footerProps.totalCount) !== null && _a !== void 0 ? _a : 0, isError, areAllRowsLoaded && !areTotalRowsNotFillingHeight);
40
+ const listRef = useRef(null);
41
+ useEffect(() => {
42
+ if (listRef.current && typeof listRef.current.resetAfterIndex === 'function') {
43
+ listRef.current.resetAfterIndex(0, true);
44
+ }
45
+ }, []);
46
+ const setBackdropVisibility = useCallback((isVisible) => {
47
+ setShowBackdrop(isVisible);
48
+ }, []);
49
+ const loadMoreItemsSafe = useCallback(() => __awaiter(this, void 0, void 0, function* () {
50
+ yield (loadMoreItems === null || loadMoreItems === void 0 ? void 0 : loadMoreItems());
51
+ }), [loadMoreItems]);
52
+ const showNoDataView = tableLoading || tableError || tableEmpty || hasTimeoutError;
53
+ return {
54
+ isDelayedFetchingNextPage,
55
+ isError,
56
+ tableLoading,
57
+ tableError,
58
+ tableEmpty,
59
+ hasTimeoutError,
60
+ showNoDataView,
61
+ orderedColumns,
62
+ areTotalRowsNotFillingHeight,
63
+ itemsCount,
64
+ itemData,
65
+ listRef,
66
+ showBackDrop,
67
+ setBackdropVisibility,
68
+ loadMoreItemsSafe,
69
+ };
70
+ }
@@ -3,7 +3,7 @@ import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
3
3
  import { memo, useMemo } from 'react';
4
4
  import { areEqual } from 'react-window';
5
5
  import { StyledCell, StyledTableRow } from './style';
6
- import { getSelectionStyles } from '../utils/getSelectionStyles';
6
+ import { getSelectionStyles } from './utils';
7
7
  function TableRow({ row, columns, index, rowProps, isSheetView, selectedCell = null, selectedColumn = null, onCellClick, isLastRow = false, }) {
8
8
  const renderCell = (column) => {
9
9
  const { render, format, selector } = column;
@@ -114,7 +114,7 @@ export declare const ActionIcon: import("@emotion/styled").StyledComponent<{
114
114
  "aria-description"?: string | undefined;
115
115
  "aria-details"?: string | undefined;
116
116
  "aria-disabled"?: (boolean | "false" | "true") | undefined;
117
- "aria-dropeffect"?: "none" | "copy" | "link" | "move" | "execute" | "popup" | undefined;
117
+ "aria-dropeffect"?: "none" | "link" | "copy" | "move" | "execute" | "popup" | undefined;
118
118
  "aria-errormessage"?: string | undefined;
119
119
  "aria-expanded"?: (boolean | "false" | "true") | undefined;
120
120
  "aria-flowto"?: string | undefined;
@@ -70,7 +70,7 @@ export declare const ContentWrapper: import("@emotion/styled").StyledComponent<{
70
70
  "aria-description"?: string | undefined;
71
71
  "aria-details"?: string | undefined;
72
72
  "aria-disabled"?: (boolean | "false" | "true") | undefined;
73
- "aria-dropeffect"?: "none" | "copy" | "link" | "move" | "execute" | "popup" | undefined;
73
+ "aria-dropeffect"?: "none" | "link" | "copy" | "move" | "execute" | "popup" | undefined;
74
74
  "aria-errormessage"?: string | undefined;
75
75
  "aria-expanded"?: (boolean | "false" | "true") | undefined;
76
76
  "aria-flowto"?: string | undefined;
@@ -337,7 +337,7 @@ export declare const AppContainerContainer: import("@emotion/styled").StyledComp
337
337
  "aria-description"?: string | undefined;
338
338
  "aria-details"?: string | undefined;
339
339
  "aria-disabled"?: (boolean | "false" | "true") | undefined;
340
- "aria-dropeffect"?: "none" | "copy" | "link" | "move" | "execute" | "popup" | undefined;
340
+ "aria-dropeffect"?: "none" | "link" | "copy" | "move" | "execute" | "popup" | undefined;
341
341
  "aria-errormessage"?: string | undefined;
342
342
  "aria-expanded"?: (boolean | "false" | "true") | undefined;
343
343
  "aria-flowto"?: string | undefined;
@@ -361,6 +361,7 @@ export declare const usersIcon: string;
361
361
  export declare const clipboardIcon: string;
362
362
  export declare const noAgreementIcon: string;
363
363
  export declare const getPaymentMethodsIcon: (source: string) => string;
364
+ export declare const getPaymentIssuersIcon: (source: string) => string;
364
365
  export declare const getCountriesIcon: (source: string) => string;
365
366
  export declare const getCurrenciesIcon: (currency: string) => string;
366
367
  export declare const getAuthorityIcon: (authority: string) => string;
@@ -362,6 +362,7 @@ export const usersIcon = `${lightUrl}/users-icons.svg`;
362
362
  export const clipboardIcon = `${lightUrl}/Board-Icons.svg`;
363
363
  export const noAgreementIcon = `${appBaseUrl}/No Agreement.svg`;
364
364
  export const getPaymentMethodsIcon = (source) => `${lightUrl}/payment-method/v2/${source}.svg`;
365
+ export const getPaymentIssuersIcon = (source) => `${lightUrl}/payment-issuer/${source}.svg`;
365
366
  export const getCountriesIcon = (source) => `${lightUrl}/country/${source}.svg`;
366
367
  export const getCurrenciesIcon = (currency) => `${cdnUrl}/currency/v2/light/${currency}.svg`;
367
368
  export const getAuthorityIcon = (authority) => {
@@ -126,7 +126,6 @@ export interface IVirtualTable<R = any> {
126
126
  width: string | number;
127
127
  };
128
128
  dragControls?: DragControls;
129
- isSheetView?: boolean;
130
129
  }
131
130
  export type ColumnFilterValues = Record<string, string | string[] | Record<string, boolean> | {
132
131
  phone: string;
package/package.json CHANGED
@@ -1,134 +1,134 @@
1
- {
2
- "name": "@tap-payments/os-micro-frontend-shared",
3
- "description": "Shared components and utilities for Tap Payments micro frontends",
4
- "version": "0.1.8",
5
- "testVersion": 0,
6
- "type": "module",
7
- "main": "build/index.js",
8
- "module": "build/index.js",
9
- "types": "build/index.d.ts",
10
- "exports": {
11
- ".": {
12
- "types": "./build/index.d.ts",
13
- "import": "./build/index.js",
14
- "require": "./build/index.js"
15
- },
16
- "./constants": {
17
- "types": "./build/constants/index.d.ts",
18
- "import": "./build/constants/index.js",
19
- "require": "./build/constants/index.js"
20
- },
21
- "./components": {
22
- "types": "./build/components/index.d.ts",
23
- "import": "./build/components/index.js",
24
- "require": "./build/components/index.js"
25
- },
26
- "./components/*": {
27
- "types": "./build/components/*/index.d.ts",
28
- "import": "./build/components/*/index.js",
29
- "require": "./build/components/*/index.js"
30
- },
31
- "./hooks": {
32
- "types": "./build/hooks/index.d.ts",
33
- "import": "./build/hooks/index.js",
34
- "require": "./build/hooks/index.js"
35
- },
36
- "./utils": {
37
- "types": "./build/utils/index.d.ts",
38
- "import": "./build/utils/index.js",
39
- "require": "./build/utils/index.js"
40
- },
41
- "./theme": {
42
- "types": "./build/theme/index.d.ts",
43
- "import": "./build/theme/index.js",
44
- "require": "./build/theme/index.js"
45
- },
46
- "./types": {
47
- "types": "./build/types/index.d.ts",
48
- "import": "./build/types/index.js",
49
- "require": "./build/types/index.js"
50
- }
51
- },
52
- "license": "MIT",
53
- "author": {
54
- "name": "Ahmed Sharkawy",
55
- "email": "a.elsharkawy@tap.company"
56
- },
57
- "files": [
58
- "build",
59
- "readme.md"
60
- ],
61
- "scripts": {
62
- "ts:build": "rm -rf build && tsc -p tsconfig.npm.json && tsc-alias -p tsconfig.npm.json",
63
- "push": "npm run ts:build && npm publish --access public",
64
- "push:test": "node scripts/increment-test-version.cjs && npm run ts:build && npm publish --access public --tag test && node scripts/restore-version.cjs",
65
- "dev": "vite",
66
- "build": "tsc -b && vite build ",
67
- "prettier": "prettier --list-different \"src/**/*.{md,mdx,ts,js,tsx,jsx,json}\"",
68
- "prettier:fix": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,md,css,json}\"",
69
- "lint": "eslint . --color",
70
- "lint:fix": "eslint src --fix --color",
71
- "preview": "vite preview",
72
- "prepare": "husky"
73
- },
74
- "dependencies": {
75
- "@emotion/react": "^11.11.0",
76
- "@emotion/styled": "^11.11.0",
77
- "@hookform/resolvers": "^3.3.1",
78
- "@mui/material": "^5.12.3",
79
- "@uiw/react-json-view": "^2.0.0-alpha.16",
80
- "axios": "^1.4.0",
81
- "dayjs": "^1.11.8",
82
- "framer-motion": "10.11.0",
83
- "i18next": "^22.4.15",
84
- "memoize-one": "^6.0.0",
85
- "re-resizable": "^6.9.9",
86
- "react": "^18.2.0",
87
- "react-currency-input-field": "^3.6.11",
88
- "react-dom": "^18.2.0",
89
- "react-draggable": "^4.4.6",
90
- "react-dropzone": "^14.2.3",
91
- "react-hook-form": "^7.45.4",
92
- "react-hot-toast": "^2.4.1",
93
- "react-i18next": "^12.2.2",
94
- "react-multi-date-picker": "^4.1.2",
95
- "react-router-dom": "^7.7.0",
96
- "react-virtualized-auto-sizer": "^1.0.20",
97
- "react-window": "^1.8.9",
98
- "react-window-infinite-loader": "^1.0.9",
99
- "react18-input-otp": "^1.1.4",
100
- "recharts": "^2.15.1"
101
- },
102
- "devDependencies": {
103
- "@eslint/js": "^9.17.0",
104
- "@testing-library/jest-dom": "^5.16.5",
105
- "@types/lodash": "^4.17.15",
106
- "@types/react": "^18.2.6",
107
- "@types/react-dom": "^18.3.5",
108
- "@types/react-virtualized-auto-sizer": "^1.0.8",
109
- "@types/react-window": "^1.8.5",
110
- "@types/react-window-infinite-loader": "^1.0.6",
111
- "@vitejs/plugin-react": "^4.3.4",
112
- "eslint": "^9.17.0",
113
- "eslint-plugin-react-hooks": "^5.0.0",
114
- "eslint-plugin-react-refresh": "^0.4.16",
115
- "globals": "^15.14.0",
116
- "husky": "^8.0.3",
117
- "lint-staged": "^13.2.2",
118
- "prettier": "^2.8.8",
119
- "tsc-alias": "^1.8.16",
120
- "typescript": "5.0.2",
121
- "typescript-eslint": "^8.18.2",
122
- "vite": "6.0.5",
123
- "vite-tsconfig-paths": "^4.2.0"
124
- },
125
- "lint-staged": {
126
- "src/**/*.{ts,tsx,json,js,jsx}": [
127
- "yarn run prettier:fix",
128
- "yarn run lint"
129
- ]
130
- },
131
- "publishConfig": {
132
- "registry": "https://registry.npmjs.org/"
133
- }
134
- }
1
+ {
2
+ "name": "@tap-payments/os-micro-frontend-shared",
3
+ "description": "Shared components and utilities for Tap Payments micro frontends",
4
+ "version": "0.1.9-test.1-test.2",
5
+ "testVersion": 2,
6
+ "type": "module",
7
+ "main": "build/index.js",
8
+ "module": "build/index.js",
9
+ "types": "build/index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./build/index.d.ts",
13
+ "import": "./build/index.js",
14
+ "require": "./build/index.js"
15
+ },
16
+ "./constants": {
17
+ "types": "./build/constants/index.d.ts",
18
+ "import": "./build/constants/index.js",
19
+ "require": "./build/constants/index.js"
20
+ },
21
+ "./components": {
22
+ "types": "./build/components/index.d.ts",
23
+ "import": "./build/components/index.js",
24
+ "require": "./build/components/index.js"
25
+ },
26
+ "./components/*": {
27
+ "types": "./build/components/*/index.d.ts",
28
+ "import": "./build/components/*/index.js",
29
+ "require": "./build/components/*/index.js"
30
+ },
31
+ "./hooks": {
32
+ "types": "./build/hooks/index.d.ts",
33
+ "import": "./build/hooks/index.js",
34
+ "require": "./build/hooks/index.js"
35
+ },
36
+ "./utils": {
37
+ "types": "./build/utils/index.d.ts",
38
+ "import": "./build/utils/index.js",
39
+ "require": "./build/utils/index.js"
40
+ },
41
+ "./theme": {
42
+ "types": "./build/theme/index.d.ts",
43
+ "import": "./build/theme/index.js",
44
+ "require": "./build/theme/index.js"
45
+ },
46
+ "./types": {
47
+ "types": "./build/types/index.d.ts",
48
+ "import": "./build/types/index.js",
49
+ "require": "./build/types/index.js"
50
+ }
51
+ },
52
+ "license": "MIT",
53
+ "author": {
54
+ "name": "Ahmed Sharkawy",
55
+ "email": "a.elsharkawy@tap.company"
56
+ },
57
+ "files": [
58
+ "build",
59
+ "readme.md"
60
+ ],
61
+ "scripts": {
62
+ "ts:build": "rm -rf build && tsc -p tsconfig.npm.json && tsc-alias -p tsconfig.npm.json",
63
+ "push": "npm run ts:build && npm publish --access public",
64
+ "push:test": "node scripts/increment-test-version.cjs && npm run ts:build && npm publish --access public --tag test && node scripts/restore-version.cjs",
65
+ "dev": "vite",
66
+ "build": "tsc -b && vite build ",
67
+ "prettier": "prettier --list-different \"src/**/*.{md,mdx,ts,js,tsx,jsx,json}\"",
68
+ "prettier:fix": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,md,css,json}\"",
69
+ "lint": "eslint . --color",
70
+ "lint:fix": "eslint src --fix --color",
71
+ "preview": "vite preview",
72
+ "prepare": "husky"
73
+ },
74
+ "dependencies": {
75
+ "@emotion/react": "^11.11.0",
76
+ "@emotion/styled": "^11.11.0",
77
+ "@hookform/resolvers": "^3.3.1",
78
+ "@mui/material": "^5.12.3",
79
+ "@uiw/react-json-view": "^2.0.0-alpha.16",
80
+ "axios": "^1.4.0",
81
+ "dayjs": "^1.11.8",
82
+ "framer-motion": "10.11.0",
83
+ "i18next": "^22.4.15",
84
+ "memoize-one": "^6.0.0",
85
+ "re-resizable": "^6.9.9",
86
+ "react": "^18.2.0",
87
+ "react-currency-input-field": "^3.6.11",
88
+ "react-dom": "^18.2.0",
89
+ "react-draggable": "^4.4.6",
90
+ "react-dropzone": "^14.2.3",
91
+ "react-hook-form": "^7.45.4",
92
+ "react-hot-toast": "^2.4.1",
93
+ "react-i18next": "^12.2.2",
94
+ "react-multi-date-picker": "^4.1.2",
95
+ "react-router-dom": "^7.7.0",
96
+ "react-virtualized-auto-sizer": "^1.0.20",
97
+ "react-window": "^1.8.9",
98
+ "react-window-infinite-loader": "^1.0.9",
99
+ "react18-input-otp": "^1.1.4",
100
+ "recharts": "^2.15.1"
101
+ },
102
+ "devDependencies": {
103
+ "@eslint/js": "^9.17.0",
104
+ "@testing-library/jest-dom": "^5.16.5",
105
+ "@types/lodash": "^4.17.15",
106
+ "@types/react": "^18.2.6",
107
+ "@types/react-dom": "^18.3.5",
108
+ "@types/react-virtualized-auto-sizer": "^1.0.8",
109
+ "@types/react-window": "^1.8.5",
110
+ "@types/react-window-infinite-loader": "^1.0.6",
111
+ "@vitejs/plugin-react": "^4.3.4",
112
+ "eslint": "^9.17.0",
113
+ "eslint-plugin-react-hooks": "^5.0.0",
114
+ "eslint-plugin-react-refresh": "^0.4.16",
115
+ "globals": "^15.14.0",
116
+ "husky": "^8.0.3",
117
+ "lint-staged": "^13.2.2",
118
+ "prettier": "^2.8.8",
119
+ "tsc-alias": "^1.8.16",
120
+ "typescript": "5.0.2",
121
+ "typescript-eslint": "^8.18.2",
122
+ "vite": "6.0.5",
123
+ "vite-tsconfig-paths": "^4.2.0"
124
+ },
125
+ "lint-staged": {
126
+ "src/**/*.{ts,tsx,json,js,jsx}": [
127
+ "yarn run prettier:fix",
128
+ "yarn run lint"
129
+ ]
130
+ },
131
+ "publishConfig": {
132
+ "registry": "https://registry.npmjs.org/"
133
+ }
134
+ }