@dentira/dentira-bulk-upload-widget 0.0.6 → 0.0.70-2.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/components/DialogContent/screens/CheckingStatusScreen.d.ts +1 -0
- package/dist/components/DialogContent/screens/DownloadingTemplateScreen.d.ts +1 -0
- package/dist/components/DialogContent/screens/ExitWarningScreen.d.ts +1 -0
- package/dist/components/DialogContent/screens/FileUploadingScreen.d.ts +1 -0
- package/dist/components/DialogContent/screens/GeneralErrorScreen.d.ts +1 -0
- package/dist/components/DialogContent/screens/LoadingJobsScreen.d.ts +1 -0
- package/dist/components/DialogContent/screens/MainScreenContent.d.ts +1 -0
- package/dist/components/DialogContent/screens/UploadCompleteScreen.d.ts +1 -0
- package/dist/components/DialogContent/screens/UploadErrorScreen.d.ts +1 -0
- package/dist/hooks/useAcknowledgeJob.d.ts +6 -0
- package/dist/hooks/useCheckStatusIntervally.d.ts +7 -0
- package/dist/hooks/useDownloadTemplate.d.ts +6 -0
- package/dist/{src/hooks → hooks}/useQuery.d.ts +1 -1
- package/dist/hooks/useScreen.d.ts +6 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.es.js +14018 -47239
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +107 -165
- package/dist/index.umd.js.map +1 -1
- package/dist/theme.d.ts +31 -0
- package/dist/{src/types.d.ts → types.d.ts} +25 -8
- package/dist/{src/utils → utils}/constants.d.ts +6 -0
- package/dist/{src/utils → utils}/fetcher.d.ts +1 -3
- package/dist/{src/utils → utils}/styles.d.ts +6 -5
- package/dist/{src/utils → utils}/utils.d.ts +1 -0
- package/package.json +31 -13
- package/dist/UI-test/App.d.ts +0 -2
- package/dist/src/assets/UplaodingAnimation.json.d.ts +0 -3
- package/dist/src/assets/UploadFailedAnimation.json.d.ts +0 -3
- package/dist/src/assets/UploadProcessingAnimation.json.d.ts +0 -3
- package/dist/src/assets/getingStatusAnimation.json.d.ts +0 -3
- package/dist/src/hooks/useCheckStatusIntervally.d.ts +0 -7
- package/dist/src/hooks/useDownloadTemplate.d.ts +0 -6
- package/dist/src/hooks/useScreen.d.ts +0 -19
- package/dist/src/theme.d.ts +0 -2
- /package/dist/{src/backend → backend}/api-config.d.ts +0 -0
- /package/dist/{src/components → components}/ActionsContent.d.ts +0 -0
- /package/dist/{src/components → components}/BulkUploadDialog.d.ts +0 -0
- /package/dist/{src/components/DialogContent.d.ts → components/DialogContent/Index.d.ts} +0 -0
- /package/dist/{src/components → components}/FileIcon.d.ts +0 -0
- /package/dist/{src/components → components}/FileUpload.d.ts +0 -0
- /package/dist/{src/components → components}/LoadingIcon.d.ts +0 -0
- /package/dist/{src/components → components}/Rules.d.ts +0 -0
- /package/dist/{src/components → components}/TitleContent.d.ts +0 -0
- /package/dist/{src/dialogContext → dialogContext}/DialogContext.d.ts +0 -0
- /package/dist/{src/dialogContext → dialogContext}/DialogProvider.d.ts +0 -0
- /package/dist/{src/dialogContext → dialogContext}/useDialogContext.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/useDialog.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/useDownloadFromS3.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CheckingStatusScreen: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DownloadingTemplateScreen: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ExitWarningScreen: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const FileUploadingScreen: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const GeneralErrorScreen: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const LoadingJobsScreen: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MainScreenContent: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const UploadCompleteScreen: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const UploadErrorScreen: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BulkUploadConfig, JobType } from '../types';
|
|
2
|
+
export declare const useAcknowledgeJob: (config: BulkUploadConfig, setSelectedJob?: React.Dispatch<React.SetStateAction<JobType | null>>) => {
|
|
3
|
+
acknowledgeJob: (id: string | undefined) => Promise<void>;
|
|
4
|
+
acknowledgingJob: boolean;
|
|
5
|
+
acknowledgeJobApiError: Error | null;
|
|
6
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { JobType, sessionType } from '../types';
|
|
2
|
+
export declare const useCheckStatusIntervally: (session: sessionType, selectedJob: JobType | null, setSelectedJob: React.Dispatch<React.SetStateAction<JobType | null>>) => {
|
|
3
|
+
startChecking: () => void;
|
|
4
|
+
stopChecking: () => void;
|
|
5
|
+
checkingStatus: boolean;
|
|
6
|
+
getStatusApiError: any;
|
|
7
|
+
};
|
|
@@ -7,7 +7,7 @@ export declare function useLazyQuery<Data>(key: string, { sessionToken, APIKey }
|
|
|
7
7
|
export declare function usePostFormQuery<Data>(key: string, { sessionToken, APIKey }: sessionType, config?: SWRMutationConfiguration<Data, Error, string, unknown> | null): import('swr/mutation').SWRMutationResponse<Data, any, string, unknown>;
|
|
8
8
|
export declare function usePostQuery<Data>(key: string, { sessionToken, APIKey }: sessionType, config?: SWRMutationConfiguration<Data, Error, string, unknown> | null): import('swr/mutation').SWRMutationResponse<Data, any, string, unknown>;
|
|
9
9
|
export declare function usePutQuery<Data>(key: string, { sessionToken, APIKey }: sessionType, config?: SWRMutationConfiguration<Data, Error, string, unknown> | null): import('swr/mutation').SWRMutationResponse<Data, any, string, unknown>;
|
|
10
|
-
export declare const useCustomQuery: ({ sessionToken, APIKey }: sessionType) => {
|
|
10
|
+
export declare const useCustomQuery: ({ sessionToken, APIKey }: sessionType, method?: string | undefined) => {
|
|
11
11
|
trigger: (url: string) => Promise<any>;
|
|
12
12
|
isMutating: boolean;
|
|
13
13
|
error: Error | null;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Screen, ScreenProps } from '../types';
|
|
2
|
+
export declare const useScreen: ({ downloadingTemplate, uploadingFile, checkingStatus, loadingJobs, selectedJob, uploadApiError, downloadTemplateApiError, getJobsApiError, acknowledgeJobApiError, getStatusApiError, }: ScreenProps) => {
|
|
3
|
+
screen: Screen;
|
|
4
|
+
showExitWarning: () => void;
|
|
5
|
+
cancelExit: () => void;
|
|
6
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { BulkUploadDialog } from './
|
|
2
|
-
export { useDialog } from './
|
|
3
|
-
export type { BulkUploadConfig } from './
|
|
1
|
+
export { BulkUploadDialog } from './components/BulkUploadDialog';
|
|
2
|
+
export { useDialog } from './hooks/useDialog';
|
|
3
|
+
export type { BulkUploadConfig } from './types';
|