@acvl/frontend-components 0.0.117 → 0.0.119

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/index.d.ts CHANGED
@@ -24,6 +24,8 @@ import { UseFormReturn } from 'react-hook-form';
24
24
  import { DebouncedFunc } from 'lodash';
25
25
  import { Breadcrumb, PageHeaderProps, Navigation, Branding, Session, Authentication, DashboardHeaderProps } from '@toolpad/core';
26
26
  import { SidebarFooterProps } from '@toolpad/core/DashboardLayout';
27
+ import { Mutex } from 'async-mutex';
28
+ import ReconnectingWebSocket from 'reconnecting-websocket';
27
29
 
28
30
  interface NormalOrIconProps {
29
31
  buttonProps: ButtonProps;
@@ -1440,6 +1442,7 @@ declare const es: {
1440
1442
  siguiente: string;
1441
1443
  leerTodas: string;
1442
1444
  borrarTodas: string;
1445
+ ver: string;
1443
1446
  borrarTodasAria: string;
1444
1447
  };
1445
1448
  cuenta: {
@@ -5347,7 +5350,17 @@ declare const NotificationItem: (props: NotificationItemProps) => react_jsx_runt
5347
5350
  * Los datos no los pide la librería: el proyecto pasa sus hooks de RTK Query en
5348
5351
  * `api` y arma los argumentos de la consulta en `buildQueryArgs`, porque el
5349
5352
  * endpoint de notificaciones no tiene la misma firma en todos los portales.
5353
+ *
5354
+ * Lo que llega en vivo (`liveNotification`) sale además como **aviso emergente**, en el
5355
+ * snackbar del cascarón, con «Ver» si trae a dónde ir. Sin él, quien tiene la página abierta
5356
+ * sólo se entera si mira el número de la campana.
5350
5357
  **/
5358
+ /** Lo que el aviso emergente necesita de una notificación recién llegada. */
5359
+ interface LiveNotification {
5360
+ id: number;
5361
+ mensaje: string;
5362
+ url?: string | null;
5363
+ }
5351
5364
  interface NotificationsApi {
5352
5365
  /** `useGetNotificacionesQuery` — recibe lo que devuelva `buildQueryArgs`. */
5353
5366
  useGetNotificaciones: any;
@@ -5377,6 +5390,13 @@ interface NotificationsBellProps {
5377
5390
  * significa "ya me encargué" y la fila no navega a `notification.url`.
5378
5391
  */
5379
5392
  onOpenNotification?: (notification: any) => boolean | void;
5393
+ /**
5394
+ * La última notificación que llegó **en vivo** (por el socket del proyecto), o `null`. Cada
5395
+ * `id` nuevo sale una vez como aviso emergente; «Ver» la marca leída y la abre igual que
5396
+ * su fila —`onOpenNotification` primero—. Lo que se reconcilia al reconectar no debe
5397
+ * pasar por aquí: ya no es "acaba de pasar".
5398
+ */
5399
+ liveNotification?: LiveNotification | null;
5380
5400
  /** Título del panel. */
5381
5401
  title?: string;
5382
5402
  /** Ancho del panel abierto, mientras el usuario no lo arrastre a otra cosa. */
@@ -5396,7 +5416,7 @@ interface NotificationsBellProps {
5396
5416
  item?: ElementType<NotificationItemProps>;
5397
5417
  };
5398
5418
  }
5399
- declare const NotificationsBell: ({ api, buildQueryArgs, renderIcon, onOpenNotification, title, width, widthStorageKey, slots, }: NotificationsBellProps) => react_jsx_runtime.JSX.Element;
5419
+ declare const NotificationsBell: ({ api, buildQueryArgs, renderIcon, onOpenNotification, liveNotification, title, width, widthStorageKey, slots, }: NotificationsBellProps) => react_jsx_runtime.JSX.Element;
5400
5420
 
5401
5421
  /**
5402
5422
  * Contenido del popover de la cuenta (slot `popoverContent` del `Account` de
@@ -5524,5 +5544,51 @@ declare const mutationParams: (arg: any) => {
5524
5544
  */
5525
5545
  declare const mutationId: (arg: any) => any;
5526
5546
 
5527
- export { APIContext, APIProvider, AccountMenuContent, ActiveCell, ActiveIcon, Base, ButtonWithDrawer, COLOR_SCHEME_SELECTOR, CSVUpload, CatalogoItem, CatalogoList, ChipCell, ConfirmDialog, ContentBorderRadiusContext, ContentLayout, ControlledAddressAutocomplete, ControlledAmountWithCurrency, ControlledAutocomplete, ControlledColor, ControlledDate$1 as ControlledDate, ControlledDate as ControlledDate_v2, ControlledDropdown, ControlledFileField$1 as ControlledFileField, ControlledFileField as ControlledFileField_v2, FileUploadBox as ControlledFileUploadBox, ControlledNumber, ControlledPhoneNumber, ControlledSelect$1 as ControlledSelect, ControlledSelect as ControlledSelect_v2, ControlledSlider as ControlledSimpleSlider, ControlledSlider$1 as ControlledSlider, ControlledSwitch, ControlledText, ControlledTimePicker, ControlledToggleButtons, CoverPage, CreateButtonBase, CreateButtonWithMenuOptions, CrudDropdown, CustomNoRows, DEFAULT_CONTENT_BORDER_RADIUS, DEFAULT_FORM_BREAKPOINTS, DEFAULT_PAGINATION, DRAWER_Z_INDEX, Dato, DeleteButton, DeleteConfirmationDialog, DetailFormDialog as DetailFormDialog_v2, DetailFormDrawer as DetailFormDrawer_v2, DetailForm as DetailForm_v2, DetailPage$1 as DetailPage, DetailPage as DetailPage_v2, Documento, DrawerGrid as DrawerGrid_v2, EditButton, ExportCSV$1 as ExportCSV, ExportCSV as ExportCSV_v2, ExtraButtons, FILTERS_DRAWER_GAP, FORM_CONTAINER_NAME, GlobalSearch, GrillaHastaElFondo, HEADER_CONTAINER, HEADER_NARROW, HiddenPageHeaderContext, HistorialDrawer, KpiCard, LAYER_ORDER, ListPage, Lista, Loadable, LoadingComponent, LocaleContext, LocaleProvider, Logo, MainDrawer, MainDrawer$1 as MainDrawer_v2, MainLayout, MenuItemWithLoading, ModuleCard, MoreOptions, MyGridEditSingleSelect, NavigationContext, NavigationProvider, NormalOrIcon, NotAllowed, NotFound, NotificationItem, NotificationsBell, ObjectProgressStack, OverModalContext, OverModalProvider, PageActionsHostContext, PageBadgeHostContext, PageInfo, PageInfoHostContext, PaginaLegal, Panel, Parrafo, PollingCountdownChip, PulseDot, RESPONSIVE_ACTION_MODES, ResponsiveActions, SIDE_PANEL_WIDTH_VAR, SaveCancelButton, Seccion, ServerGrid as ServerGrid_v2, SidePanelHostContext, StatusBadge, StickyPageHeaderContext, StyledMenu, StyledToggleButtonGroup, Subtitulo, TEXTOS, TabCounter, Tabs, Titulo, Transitions, TrueFalse, UncontrolledText, aplicarLocaleDeDayjs, buildEstadoTabs, changeTitle, closeProgressSnack, columnasDeCatalogo, composeGridProps, crearFabricaDeCatalogos, deleteColumn$1 as deleteColumn, deleteColumn as deleteColumn_v2, drawerZIndex, editColumn, filterQuery, filtersPanelFrameSx, formContainerSx, formGridSx, formParser, headerContainerSx, _default as headerReducer, llaveDeFiltrosCompartidos, localeDeNumeros, localeTextDeMUI, localeTextDeToolpad, manualCacheRefresh, mergeSettings, mutationData, mutationId, mutationParams, openProgressSnack, pageSizeOptions, query, renderChipCell, renderEditCellWithErrorTooltip, resolveChipOption, resolveInitialState, resolveStatusColor, setErrors, singularizarPalabra, singularizarTitulo, _default$1 as snackProgressReducer, statusColors, tags, theme, togglableFields, updateProgressSnackData, useAPI, useColorMode, useContentBorderRadius, useDetailForm, useHasPermission, useHasPermission_v2, useHiddenPageHeader, useHiddenPageHeaderHost, useKeyboardShortcut, useLocale, useMutationHandler, useNavigation, useOverModal, usePageActionsHost, usePageBadgeHost, usePageInfoHost, useRememberedTab, useServerGrid, useSharedFilters, useSidePanelHost, useStickyPageHeader, useStickyPageHeaderHost, useTextos, valueLabel };
5528
- export type { APIcontextProps, AccountMenuContentProps, AccountMenuItem, AddressValue, AppTheme, AutocompleteOption, BuildEstadoTabsOptions, CSVMenuOptionProps, CatalogoAPI, CatalogoItemProps, CatalogoListProps, ChipCellProps, ChipColor, ChipOption, ColorMode, ComoOpcionesProps, ConfirmDialogProps, ControlledAutocompleteProps, ControlledInput, CrearCatalogoAPI, CustomFilterDef, CustomToolbarProps, DefinicionDeCatalogo, DeleteGridColumnsProps$1 as DeleteGridColumnsProps, DetachedPage, DetailExtraButton, DetailFormApi, DetailFormConfig, DetailFormController, DetailFormDialogProps, DetailFormDrawerNavigation, DetailFormDrawerProps, DetailFormProps, DetailFormStatus, DetailPageV2Props, DetailRenderProps, DrawerGridDrawerConfig, DrawerGridEditConfig, DrawerGridProps, EditGridColumnsProps, EditReadOnlyFields, EstadoDeFiltro, EstadoTabConfig, ExportCSVProps as ExportCSVProps_v2, ExtraButtonContext, ExtraCreateOptionProps, FieldFilter, FieldProps$1 as FieldProps, FieldValidationProps, FilterInput, FormBreakpoint, FormGridSxOptions, GlobalSearchOption, GlobalSearchProps, GridArgs, GridColDefPropsOverrides, GridLayerContribution, GridLayerId, GridLayerMap, GrillaHastaElFondoProps, HiddenPageHeaderHost, InsigniaDeCatalogo, JSONFormProps, JSONParserProps, KeyboardShortcut, KpiCardProps, ListaProps, Locale, LocaleContextProps, LocaleProviderProps, MainDrawerV2Props, MainLayoutFooterConfig, MainLayoutPageHeaderProps, MainLayoutProps, MainLayoutSidebarFooterProps, MutationArgs, MyDataGridProps, MyGridFilterModel, MyTab, MyTabProps, NotificationItemProps, NotificationsApi, NotificationsBellProps, PageActionsHost, PageBadgeHost, PageInfoHost, PageInfoProps, PageType, PaginaLegalProps, PanelProps, PollingCountdownChipProps, ProgressStatusProps, PulseDotProps, ResponsiveAction, ResponsiveActionsMode, ResponsiveActionsProps, RowsSnapshot, RutasDePaginaLegal, SeccionProps, ServerGridArgs, ServerGridCreateApi, ServerGridDataApi, ServerGridDeleteApi, ServerGridEditApi, ServerGridEditToggleApi, ServerGridHandle, ServerGridProps, ServerGridSnapshot, ServerGridState, SharedFiltersConfig, SidePanelHost, StatusColor, StickyPageHeaderHost, TabCounterProps, Textos, TextosDePaginaLegal, UseColorModeResult, UseServerGridOptions };
5547
+ /**
5548
+ * WebSockets that stay connected for as long as a screen is mounted (a chat thread, the
5549
+ * notifications bell), authenticated with the JWT access token in `?token=`.
5550
+ *
5551
+ * The problem this solves: HTTP calls refresh the token by themselves when they get a 401, but a
5552
+ * socket never sees a 401. With an expired token the consumer just closes it as anonymous, and
5553
+ * someone who leaves the screen open without touching anything makes no request that would
5554
+ * renew it. The access token lives 5 minutes and the socket drops several times a day (gunicorn
5555
+ * recycles its workers, Cloud Run cuts connections at the hour, deploys, a laptop going to
5556
+ * sleep): every reconnection presented the stale token, and after `maxRetries` the socket gave
5557
+ * up for good — nothing arrived until a page reload.
5558
+ *
5559
+ * Where the session lives is the portal's business (its `localStorage` key, its Redux actions),
5560
+ * so it comes in through {@link LiveSocketSessionOptions}. The `mutex` must be **the same one**
5561
+ * the portal's `baseQueryWithReauth` uses: the backend rotates the refresh token and blacklists
5562
+ * the old one, so an HTTP call and a socket refreshing at the same time log the second one out.
5563
+ */
5564
+ interface SessionTokens {
5565
+ access?: string;
5566
+ refresh?: string;
5567
+ }
5568
+ interface LiveSocketSessionOptions {
5569
+ /** The lock shared with the portal's `baseQueryWithReauth`. */
5570
+ mutex: Mutex;
5571
+ /** Absolute URL of the refresh endpoint (`…/auth/token/refresh/`). */
5572
+ refreshUrl: string;
5573
+ /** The stored tokens, read fresh on every call. */
5574
+ readTokens: () => SessionTokens | undefined;
5575
+ /** Action to dispatch with the refresh response (it stores the new pair). */
5576
+ refreshed: (tokens: {
5577
+ access: string;
5578
+ refresh?: string;
5579
+ }) => unknown;
5580
+ /** Action to dispatch when the backend rejects the refresh token: the session is over. */
5581
+ expired: () => unknown;
5582
+ }
5583
+ type LiveSocketDispatch = (action: any) => unknown;
5584
+ declare function createLiveSocketSession(options: LiveSocketSessionOptions): {
5585
+ validAccessToken: (dispatch: LiveSocketDispatch) => Promise<string | undefined>;
5586
+ openLiveSocket: (dispatch: LiveSocketDispatch, url: (token: string | undefined) => string) => {
5587
+ socket: ReconnectingWebSocket;
5588
+ close: () => void;
5589
+ };
5590
+ };
5591
+ type LiveSocketSession = ReturnType<typeof createLiveSocketSession>;
5592
+
5593
+ export { APIContext, APIProvider, AccountMenuContent, ActiveCell, ActiveIcon, Base, ButtonWithDrawer, COLOR_SCHEME_SELECTOR, CSVUpload, CatalogoItem, CatalogoList, ChipCell, ConfirmDialog, ContentBorderRadiusContext, ContentLayout, ControlledAddressAutocomplete, ControlledAmountWithCurrency, ControlledAutocomplete, ControlledColor, ControlledDate$1 as ControlledDate, ControlledDate as ControlledDate_v2, ControlledDropdown, ControlledFileField$1 as ControlledFileField, ControlledFileField as ControlledFileField_v2, FileUploadBox as ControlledFileUploadBox, ControlledNumber, ControlledPhoneNumber, ControlledSelect$1 as ControlledSelect, ControlledSelect as ControlledSelect_v2, ControlledSlider as ControlledSimpleSlider, ControlledSlider$1 as ControlledSlider, ControlledSwitch, ControlledText, ControlledTimePicker, ControlledToggleButtons, CoverPage, CreateButtonBase, CreateButtonWithMenuOptions, CrudDropdown, CustomNoRows, DEFAULT_CONTENT_BORDER_RADIUS, DEFAULT_FORM_BREAKPOINTS, DEFAULT_PAGINATION, DRAWER_Z_INDEX, Dato, DeleteButton, DeleteConfirmationDialog, DetailFormDialog as DetailFormDialog_v2, DetailFormDrawer as DetailFormDrawer_v2, DetailForm as DetailForm_v2, DetailPage$1 as DetailPage, DetailPage as DetailPage_v2, Documento, DrawerGrid as DrawerGrid_v2, EditButton, ExportCSV$1 as ExportCSV, ExportCSV as ExportCSV_v2, ExtraButtons, FILTERS_DRAWER_GAP, FORM_CONTAINER_NAME, GlobalSearch, GrillaHastaElFondo, HEADER_CONTAINER, HEADER_NARROW, HiddenPageHeaderContext, HistorialDrawer, KpiCard, LAYER_ORDER, ListPage, Lista, Loadable, LoadingComponent, LocaleContext, LocaleProvider, Logo, MainDrawer, MainDrawer$1 as MainDrawer_v2, MainLayout, MenuItemWithLoading, ModuleCard, MoreOptions, MyGridEditSingleSelect, NavigationContext, NavigationProvider, NormalOrIcon, NotAllowed, NotFound, NotificationItem, NotificationsBell, ObjectProgressStack, OverModalContext, OverModalProvider, PageActionsHostContext, PageBadgeHostContext, PageInfo, PageInfoHostContext, PaginaLegal, Panel, Parrafo, PollingCountdownChip, PulseDot, RESPONSIVE_ACTION_MODES, ResponsiveActions, SIDE_PANEL_WIDTH_VAR, SaveCancelButton, Seccion, ServerGrid as ServerGrid_v2, SidePanelHostContext, StatusBadge, StickyPageHeaderContext, StyledMenu, StyledToggleButtonGroup, Subtitulo, TEXTOS, TabCounter, Tabs, Titulo, Transitions, TrueFalse, UncontrolledText, aplicarLocaleDeDayjs, buildEstadoTabs, changeTitle, closeProgressSnack, columnasDeCatalogo, composeGridProps, crearFabricaDeCatalogos, createLiveSocketSession, deleteColumn$1 as deleteColumn, deleteColumn as deleteColumn_v2, drawerZIndex, editColumn, filterQuery, filtersPanelFrameSx, formContainerSx, formGridSx, formParser, headerContainerSx, _default as headerReducer, llaveDeFiltrosCompartidos, localeDeNumeros, localeTextDeMUI, localeTextDeToolpad, manualCacheRefresh, mergeSettings, mutationData, mutationId, mutationParams, openProgressSnack, pageSizeOptions, query, renderChipCell, renderEditCellWithErrorTooltip, resolveChipOption, resolveInitialState, resolveStatusColor, setErrors, singularizarPalabra, singularizarTitulo, _default$1 as snackProgressReducer, statusColors, tags, theme, togglableFields, updateProgressSnackData, useAPI, useColorMode, useContentBorderRadius, useDetailForm, useHasPermission, useHasPermission_v2, useHiddenPageHeader, useHiddenPageHeaderHost, useKeyboardShortcut, useLocale, useMutationHandler, useNavigation, useOverModal, usePageActionsHost, usePageBadgeHost, usePageInfoHost, useRememberedTab, useServerGrid, useSharedFilters, useSidePanelHost, useStickyPageHeader, useStickyPageHeaderHost, useTextos, valueLabel };
5594
+ export type { APIcontextProps, AccountMenuContentProps, AccountMenuItem, AddressValue, AppTheme, AutocompleteOption, BuildEstadoTabsOptions, CSVMenuOptionProps, CatalogoAPI, CatalogoItemProps, CatalogoListProps, ChipCellProps, ChipColor, ChipOption, ColorMode, ComoOpcionesProps, ConfirmDialogProps, ControlledAutocompleteProps, ControlledInput, CrearCatalogoAPI, CustomFilterDef, CustomToolbarProps, DefinicionDeCatalogo, DeleteGridColumnsProps$1 as DeleteGridColumnsProps, DetachedPage, DetailExtraButton, DetailFormApi, DetailFormConfig, DetailFormController, DetailFormDialogProps, DetailFormDrawerNavigation, DetailFormDrawerProps, DetailFormProps, DetailFormStatus, DetailPageV2Props, DetailRenderProps, DrawerGridDrawerConfig, DrawerGridEditConfig, DrawerGridProps, EditGridColumnsProps, EditReadOnlyFields, EstadoDeFiltro, EstadoTabConfig, ExportCSVProps as ExportCSVProps_v2, ExtraButtonContext, ExtraCreateOptionProps, FieldFilter, FieldProps$1 as FieldProps, FieldValidationProps, FilterInput, FormBreakpoint, FormGridSxOptions, GlobalSearchOption, GlobalSearchProps, GridArgs, GridColDefPropsOverrides, GridLayerContribution, GridLayerId, GridLayerMap, GrillaHastaElFondoProps, HiddenPageHeaderHost, InsigniaDeCatalogo, JSONFormProps, JSONParserProps, KeyboardShortcut, KpiCardProps, ListaProps, LiveNotification, LiveSocketDispatch, LiveSocketSession, LiveSocketSessionOptions, Locale, LocaleContextProps, LocaleProviderProps, MainDrawerV2Props, MainLayoutFooterConfig, MainLayoutPageHeaderProps, MainLayoutProps, MainLayoutSidebarFooterProps, MutationArgs, MyDataGridProps, MyGridFilterModel, MyTab, MyTabProps, NotificationItemProps, NotificationsApi, NotificationsBellProps, PageActionsHost, PageBadgeHost, PageInfoHost, PageInfoProps, PageType, PaginaLegalProps, PanelProps, PollingCountdownChipProps, ProgressStatusProps, PulseDotProps, ResponsiveAction, ResponsiveActionsMode, ResponsiveActionsProps, RowsSnapshot, RutasDePaginaLegal, SeccionProps, ServerGridArgs, ServerGridCreateApi, ServerGridDataApi, ServerGridDeleteApi, ServerGridEditApi, ServerGridEditToggleApi, ServerGridHandle, ServerGridProps, ServerGridSnapshot, ServerGridState, SessionTokens, SharedFiltersConfig, SidePanelHost, StatusColor, StickyPageHeaderHost, TabCounterProps, Textos, TextosDePaginaLegal, UseColorModeResult, UseServerGridOptions };
package/package.json CHANGED
@@ -1,111 +1,113 @@
1
- {
2
- "name": "@acvl/frontend-components",
3
- "version": "0.0.117",
4
- "description": "Component library for ACV frontend projects.",
5
- "homepage": "https://github.com/ACV-Logistics/acv-frontend-components#readme",
6
- "access": "public",
7
- "bugs": {
8
- "url": "https://github.com/ACV-Logistics/acv-frontend-components/issues"
9
- },
10
- "repository": {
11
- "type": "git",
12
- "url": "git+https://github.com/ACV-Logistics/acv-frontend-components.git"
13
- },
14
- "license": "MIT",
15
- "author": "mario.aftimos",
16
- "main": "dist/cjs/index.js",
17
- "module": "dist/esm/index.js",
18
- "types": "dist/index.d.ts",
19
- "files": [
20
- "dist"
21
- ],
22
- "scripts": {
23
- "dev": "rollup --config rollup.config.ts --configPlugin @rollup/plugin-typescript --watch",
24
- "build": "rimraf dist && rollup --config rollup.config.ts --configPlugin @rollup/plugin-typescript && rimraf dist/esm/types",
25
- "test": "vitest run",
26
- "format": "prettier --write .",
27
- "format:check": "prettier --check ."
28
- },
29
- "devDependencies": {
30
- "@babel/core": "^7.29.0",
31
- "@babel/preset-env": "^7.29.2",
32
- "@babel/preset-react": "^7.28.5",
33
- "@babel/preset-typescript": "^7.28.5",
34
- "@rollup/plugin-commonjs": "^29.0.2",
35
- "@rollup/plugin-image": "^3.0.3",
36
- "@rollup/plugin-node-resolve": "^16.0.3",
37
- "@rollup/plugin-terser": "^1.0.0",
38
- "@rollup/plugin-typescript": "^12.3.0",
39
- "@types/lodash": "^4.17.24",
40
- "@types/node": "^25.6.0",
41
- "@types/react": "^19.2.14",
42
- "@types/rollup-plugin-peer-deps-external": "^2.2.6",
43
- "postcss": "^8.5.8",
44
- "prettier": "3.9.6",
45
- "react": "^19.2.5",
46
- "react-dom": "^19.2.4",
47
- "rimraf": "^6.1.3",
48
- "rollup": "^4.60.1",
49
- "rollup-plugin-dts": "^6.4.1",
50
- "rollup-plugin-peer-deps-external": "^2.2.4",
51
- "rollup-plugin-postcss": "^4.0.2",
52
- "rollup-plugin-preserve-directives": "^0.4.0",
53
- "rollup-plugin-preserve-use-client": "^3.0.1",
54
- "rollup-plugin-typescript2": "^0.37.0",
55
- "tslib": "^2.8.1",
56
- "typescript": "^5.9.3",
57
- "vitest": "^4.1.10"
58
- },
59
- "peerDependencies": {
60
- "@dnd-kit/modifiers": "^9.0.0",
61
- "@dnd-kit/sortable": "^10.0.0",
62
- "@dnd-kit/utilities": "^3.2.2",
63
- "@emotion/react": "^11.14.0",
64
- "@emotion/styled": "^11.14.0",
65
- "@hookform/resolvers": "^5.2.2",
66
- "@mui/icons-material": "^7.3.9",
67
- "@mui/lab": "^7.0.1-beta.23",
68
- "@mui/material": "^7.3.9",
69
- "@mui/styled-engine-sc": "^7.3.9",
70
- "@mui/x-data-grid": "^8.28.2",
71
- "@mui/x-date-pickers": "^8.0.0",
72
- "@reduxjs/toolkit": "^2.11.2",
73
- "@toolpad/core": "^0.16.0",
74
- "async-mutex": "^0.5.0",
75
- "dayjs": "^1.11.0",
76
- "immer": "^11.1.4",
77
- "lodash": "^4.18.1",
78
- "mui-tel-input": "^10.0.0",
79
- "react": "^17.0.0 || ^18.0.0 || ^19.0.0",
80
- "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0",
81
- "react-dropzone": "^15.0.0",
82
- "react-hook-form": "^7.72.1",
83
- "react-number-format": "^5.4.5",
84
- "react-redux": "^9.2.0",
85
- "react-router-dom": "^7.14.1",
86
- "styled-components": "^6.3.12",
87
- "zod": "^4.3.6"
88
- },
89
- "babel": {
90
- "sourceType": "unambiguous",
91
- "presets": [
92
- [
93
- "@babel/preset-env",
94
- {
95
- "targets": {
96
- "chrome": 100,
97
- "safari": 15,
98
- "firefox": 91
99
- }
100
- }
101
- ],
102
- [
103
- "@babel/preset-react",
104
- {
105
- "runtime": "automatic"
106
- }
107
- ],
108
- "@babel/preset-typescript"
109
- ]
110
- }
111
- }
1
+ {
2
+ "name": "@acvl/frontend-components",
3
+ "version": "0.0.119",
4
+ "description": "Component library for ACV frontend projects.",
5
+ "homepage": "https://github.com/ACV-Logistics/acv-frontend-components#readme",
6
+ "access": "public",
7
+ "bugs": {
8
+ "url": "https://github.com/ACV-Logistics/acv-frontend-components/issues"
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/ACV-Logistics/acv-frontend-components.git"
13
+ },
14
+ "license": "MIT",
15
+ "author": "mario.aftimos",
16
+ "main": "dist/cjs/index.js",
17
+ "module": "dist/esm/index.js",
18
+ "types": "dist/index.d.ts",
19
+ "files": [
20
+ "dist"
21
+ ],
22
+ "scripts": {
23
+ "dev": "rollup --config rollup.config.ts --configPlugin @rollup/plugin-typescript --watch",
24
+ "build": "rimraf dist && rollup --config rollup.config.ts --configPlugin @rollup/plugin-typescript && rimraf dist/esm/types",
25
+ "test": "vitest run",
26
+ "format": "prettier --write .",
27
+ "format:check": "prettier --check ."
28
+ },
29
+ "devDependencies": {
30
+ "@babel/core": "^7.29.0",
31
+ "@babel/preset-env": "^7.29.2",
32
+ "@babel/preset-react": "^7.28.5",
33
+ "@babel/preset-typescript": "^7.28.5",
34
+ "@rollup/plugin-commonjs": "^29.0.2",
35
+ "@rollup/plugin-image": "^3.0.3",
36
+ "@rollup/plugin-node-resolve": "^16.0.3",
37
+ "@rollup/plugin-terser": "^1.0.0",
38
+ "@rollup/plugin-typescript": "^12.3.0",
39
+ "@types/lodash": "^4.17.24",
40
+ "@types/node": "^25.6.0",
41
+ "@types/react": "^19.2.14",
42
+ "@types/rollup-plugin-peer-deps-external": "^2.2.6",
43
+ "postcss": "^8.5.8",
44
+ "prettier": "3.9.6",
45
+ "react": "^19.2.5",
46
+ "react-dom": "^19.2.4",
47
+ "reconnecting-websocket": "^4.4.0",
48
+ "rimraf": "^6.1.3",
49
+ "rollup": "^4.60.1",
50
+ "rollup-plugin-dts": "^6.4.1",
51
+ "rollup-plugin-peer-deps-external": "^2.2.4",
52
+ "rollup-plugin-postcss": "^4.0.2",
53
+ "rollup-plugin-preserve-directives": "^0.4.0",
54
+ "rollup-plugin-preserve-use-client": "^3.0.1",
55
+ "rollup-plugin-typescript2": "^0.37.0",
56
+ "tslib": "^2.8.1",
57
+ "typescript": "^5.9.3",
58
+ "vitest": "^4.1.10"
59
+ },
60
+ "peerDependencies": {
61
+ "@dnd-kit/modifiers": "^9.0.0",
62
+ "@dnd-kit/sortable": "^10.0.0",
63
+ "@dnd-kit/utilities": "^3.2.2",
64
+ "@emotion/react": "^11.14.0",
65
+ "@emotion/styled": "^11.14.0",
66
+ "@hookform/resolvers": "^5.2.2",
67
+ "@mui/icons-material": "^7.3.9",
68
+ "@mui/lab": "^7.0.1-beta.23",
69
+ "@mui/material": "^7.3.9",
70
+ "@mui/styled-engine-sc": "^7.3.9",
71
+ "@mui/x-data-grid": "^8.28.2",
72
+ "@mui/x-date-pickers": "^8.0.0",
73
+ "@reduxjs/toolkit": "^2.11.2",
74
+ "@toolpad/core": "^0.16.0",
75
+ "async-mutex": "^0.5.0",
76
+ "dayjs": "^1.11.0",
77
+ "immer": "^11.1.4",
78
+ "lodash": "^4.18.1",
79
+ "mui-tel-input": "^10.0.0",
80
+ "react": "^17.0.0 || ^18.0.0 || ^19.0.0",
81
+ "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0",
82
+ "react-dropzone": "^15.0.0",
83
+ "react-hook-form": "^7.72.1",
84
+ "react-number-format": "^5.4.5",
85
+ "reconnecting-websocket": "^4.4.0",
86
+ "react-redux": "^9.2.0",
87
+ "react-router-dom": "^7.14.1",
88
+ "styled-components": "^6.3.12",
89
+ "zod": "^4.3.6"
90
+ },
91
+ "babel": {
92
+ "sourceType": "unambiguous",
93
+ "presets": [
94
+ [
95
+ "@babel/preset-env",
96
+ {
97
+ "targets": {
98
+ "chrome": 100,
99
+ "safari": 15,
100
+ "firefox": 91
101
+ }
102
+ }
103
+ ],
104
+ [
105
+ "@babel/preset-react",
106
+ {
107
+ "runtime": "automatic"
108
+ }
109
+ ],
110
+ "@babel/preset-typescript"
111
+ ]
112
+ }
113
+ }