wcz-test 4.5.6 → 4.6.1

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
@@ -5,17 +5,15 @@ import { DropzoneOptions } from 'react-dropzone';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
6
  import { GridValidRowModel, GridRenderCellParams, GridColumnHeaderParams, GridActionsCellItemProps } from '@mui/x-data-grid-premium';
7
7
  import { LinkComponent, ErrorComponentProps, LinkOptions } from '@tanstack/react-router';
8
- import { TFunction } from 'i18next';
9
- export { t } from 'i18next';
10
8
  export { uuidv7 } from 'uuidv7';
11
9
  import * as axios from 'axios';
12
- import * as _tanstack_start_client_core from '@tanstack/start-client-core';
13
10
  import { DateTimePickerProps, DatePickerProps } from '@mui/x-date-pickers-pro';
14
11
  import { NumericFormatProps, InputAttributes } from 'react-number-format/types/types';
15
12
  import * as _tanstack_react_form from '@tanstack/react-form';
16
13
  import * as _tanstack_form_core from '@tanstack/form-core';
17
14
  export { default as useLocalStorageState } from 'use-local-storage-state';
18
15
  export { useTranslation } from 'react-i18next';
16
+ export { t } from 'i18next';
19
17
  import * as _tanstack_react_query from '@tanstack/react-query';
20
18
  import { DefinedInitialDataOptions, UseMutationOptions } from '@tanstack/react-query';
21
19
  import { DetailedError } from 'tus-js-client';
@@ -118,21 +116,7 @@ interface RouterErrorProps {
118
116
  }
119
117
  declare const RouterError: FC<RouterErrorProps>;
120
118
 
121
- interface User {
122
- employeeId: string;
123
- name: string;
124
- department: string;
125
- email?: string;
126
- company: string;
127
- category: string;
128
- }
129
-
130
- interface NavigationParams {
131
- user: User;
132
- t: TFunction<"translation", undefined>;
133
- }
134
-
135
- interface NavigationPageItem extends Pick<LinkOptions, "to">, Partial<Pick<LinkOptions, "href" | "params" | "search">> {
119
+ interface NavigationPageItem extends Partial<Pick<LinkOptions, "to" | "href" | "params" | "search">> {
136
120
  title: string;
137
121
  icon: React.ReactNode;
138
122
  children?: Array<NavigationItem>;
@@ -151,7 +135,7 @@ type NavigationItem = NavigationPageItem | NavigationDivider | NavigationHeader;
151
135
  type Navigation = Array<NavigationItem>;
152
136
 
153
137
  interface ProvidersProps {
154
- getNavigation?: (parameters: NavigationParams) => Navigation;
138
+ navigation?: Navigation;
155
139
  theme?: Pick<CssVarsThemeOptions, "colorSchemes" | "components">;
156
140
  children: ReactNode;
157
141
  }
@@ -203,8 +187,6 @@ declare const rootRouteHead: ({ title }: RootRouteHeadProps) => () => {
203
187
  };
204
188
  declare const wczApiClient: axios.AxiosInstance;
205
189
 
206
- declare const setSSRLanguage: _tanstack_start_client_core.ServerOnlyFn<[], Promise<void>>;
207
-
208
190
  type FormSubmitButtonProps = Omit<ButtonProps, "loading" | "disabled" | "onClick" | "type">;
209
191
 
210
192
  type FormOmittedProps = "name" | "value" | "onChange" | "onBlur" | "error" | "helperText" | "renderInput" | "type" | "aria-label";
@@ -349,6 +331,15 @@ declare const useUploadFile: ({ subId, onSuccess, onError }: UseUploadFileProps)
349
331
  progress: number;
350
332
  };
351
333
 
334
+ interface User {
335
+ employeeId: string;
336
+ name: string;
337
+ department: string;
338
+ email?: string;
339
+ company: string;
340
+ category: string;
341
+ }
342
+
352
343
  interface EmailAttachment {
353
344
  appName: string;
354
345
  subId: string;
@@ -426,4 +417,4 @@ interface Department {
426
417
  manager: Employee;
427
418
  }
428
419
 
429
- export { ChipInputCell, type Department, type DialogProps, Dropzone, EditableColumnHeader, type Email, type EmailAttachment, type Employee, EmployeeCategoryGroup, EmployeeStatus, type FileMeta, FileViewer, LayoutProvider, type Navigation, type NavigationParams, PageHeader, Platform, RouterButton, RouterError, RouterGridActionsCellItem, RouterIconButton, RouterLink, RouterListItemButton, RouterNotFound, RouterTab, TableContainer, TypographyWithIcon, type User, rootRouteHead, setSSRLanguage, useDeleteFile, useDeleteFiles, useDialogs, useDownloadFile, useFieldContext, useFormContext, useGetFile, useGetFileMetas, useGetFileThumbnail, useLayoutForm, useOpenFile, useUpdateFileMeta, useUploadFile, wczApiClient, withLayoutForm };
420
+ export { ChipInputCell, type Department, type DialogProps, Dropzone, EditableColumnHeader, type Email, type EmailAttachment, type Employee, EmployeeCategoryGroup, EmployeeStatus, type FileMeta, FileViewer, LayoutProvider, type Navigation, PageHeader, Platform, RouterButton, RouterError, RouterGridActionsCellItem, RouterIconButton, RouterLink, RouterListItemButton, RouterNotFound, RouterTab, TableContainer, TypographyWithIcon, type User, rootRouteHead, useDeleteFile, useDeleteFiles, useDialogs, useDownloadFile, useFieldContext, useFormContext, useGetFile, useGetFileMetas, useGetFileThumbnail, useLayoutForm, useOpenFile, useUpdateFileMeta, useUploadFile, wczApiClient, withLayoutForm };