@epam/ai-dial-chat-hooks 1.3.0-dev.16 → 1.3.0-dev.160
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/api-error/api-error.d.ts +30 -0
- package/api-error/api-error.d.ts.map +1 -0
- package/api-error/api-error.js +2 -2
- package/api-transport/create-csrf-middleware.d.ts +15 -0
- package/api-transport/create-csrf-middleware.d.ts.map +1 -0
- package/api-transport/create-unauthorized-middleware.d.ts +40 -0
- package/api-transport/create-unauthorized-middleware.d.ts.map +1 -0
- package/api-transport/create-unauthorized-middleware.js +4 -1
- package/attachment/useAttachmentAction/useAttachmentAction.d.ts +32 -0
- package/attachment/useAttachmentAction/useAttachmentAction.d.ts.map +1 -0
- package/attachment/useAttachmentAction/useAttachmentAction.js +5 -8
- package/attachment/useAttachmentValidation/useAttachmentValidation.d.ts +50 -0
- package/attachment/useAttachmentValidation/useAttachmentValidation.d.ts.map +1 -0
- package/attachments.d.ts +2 -94
- package/catalog/catalog-derivations.d.ts +27 -0
- package/catalog/catalog-derivations.d.ts.map +1 -0
- package/catalog/catalog-derivations.js +1 -1
- package/catalog/catalog-primary-action.d.ts +47 -0
- package/catalog/catalog-primary-action.d.ts.map +1 -0
- package/catalog/create-publish-api.d.ts +34 -0
- package/catalog/create-publish-api.d.ts.map +1 -0
- package/catalog/create-publish-api.js +4 -0
- package/catalog/deployment-endpoint-url.d.ts +19 -0
- package/catalog/deployment-endpoint-url.d.ts.map +1 -0
- package/catalog/deployment-id.d.ts +42 -0
- package/catalog/deployment-id.d.ts.map +1 -0
- package/catalog/entity-details.d.ts +146 -0
- package/catalog/entity-details.d.ts.map +1 -0
- package/catalog/map-deployment-limits-to-catalog.d.ts +34 -0
- package/catalog/map-deployment-limits-to-catalog.d.ts.map +1 -0
- package/catalog/map-deployment-limits-to-input.d.ts +29 -0
- package/catalog/map-deployment-limits-to-input.d.ts.map +1 -0
- package/catalog/map-deployment-limits-to-input.js +3 -4
- package/catalog/map-deployment-to-catalog-item.d.ts +61 -0
- package/catalog/map-deployment-to-catalog-item.d.ts.map +1 -0
- package/catalog/map-entity-details-to-catalog.d.ts +81 -0
- package/catalog/map-entity-details-to-catalog.d.ts.map +1 -0
- package/catalog/map-entity-details-to-catalog.js +1 -1
- package/catalog/map-prompt-to-catalog-item.d.ts +43 -0
- package/catalog/map-prompt-to-catalog-item.d.ts.map +1 -0
- package/catalog/map-skill-to-catalog-item.d.ts +113 -0
- package/catalog/map-skill-to-catalog-item.d.ts.map +1 -0
- package/catalog/map-skill-to-catalog-item.js +1 -5
- package/catalog/mcp-endpoint-url.d.ts +18 -0
- package/catalog/mcp-endpoint-url.d.ts.map +1 -0
- package/catalog/publish.d.ts +35 -0
- package/catalog/publish.d.ts.map +1 -0
- package/catalog/useApplicationCredentials/useApplicationCredentials.d.ts +19 -0
- package/catalog/useApplicationCredentials/useApplicationCredentials.d.ts.map +1 -0
- package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.d.ts +107 -0
- package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.d.ts.map +1 -0
- package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.js +90 -71
- package/catalog/useCatalogItemDetails.d.ts +70 -0
- package/catalog/useCatalogItemDetails.d.ts.map +1 -0
- package/catalog/useCatalogToolsetCredentials/useCatalogToolsetCredentials.d.ts +76 -0
- package/catalog/useCatalogToolsetCredentials/useCatalogToolsetCredentials.d.ts.map +1 -0
- package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.d.ts +37 -0
- package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.d.ts.map +1 -0
- package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.js +1 -1
- package/catalog/usePublishFolders/usePublishFolders.d.ts +73 -0
- package/catalog/usePublishFolders/usePublishFolders.d.ts.map +1 -0
- package/catalog/usePublishFolders/usePublishFolders.js +1 -1
- package/catalog/useSkillDetailsPanelData/useSkillDetailsPanelData.d.ts +54 -0
- package/catalog/useSkillDetailsPanelData/useSkillDetailsPanelData.d.ts.map +1 -0
- package/catalog/useSkillItemDetails.d.ts +64 -0
- package/catalog/useSkillItemDetails.d.ts.map +1 -0
- package/catalog/useSkillItemDetails.js +3 -3
- package/catalog.d.ts +2 -1436
- package/conversation/announcement-message.d.ts +61 -0
- package/conversation/announcement-message.d.ts.map +1 -0
- package/conversation/conversation-draft/conversation-draft-store.d.ts +21 -0
- package/conversation/conversation-draft/conversation-draft-store.d.ts.map +1 -0
- package/conversation/conversation-draft/conversation-draft-store.js +84 -0
- package/conversation/conversation-draft/conversation-draft.d.ts +48 -0
- package/conversation/conversation-draft/conversation-draft.d.ts.map +1 -0
- package/conversation/conversation-transfer/async.d.ts +10 -0
- package/conversation/conversation-transfer/async.d.ts.map +1 -0
- package/conversation/conversation-transfer/attachment-refs.d.ts +50 -0
- package/conversation/conversation-transfer/attachment-refs.d.ts.map +1 -0
- package/conversation/conversation-transfer/attachment-refs.js +31 -9
- package/conversation/conversation-transfer/build-upload-path.d.ts +42 -0
- package/conversation/conversation-transfer/build-upload-path.d.ts.map +1 -0
- package/conversation/conversation-transfer/date.d.ts +5 -0
- package/conversation/conversation-transfer/date.d.ts.map +1 -0
- package/conversation/conversation-transfer/dial-file-resolve.d.ts +10 -0
- package/conversation/conversation-transfer/dial-file-resolve.d.ts.map +1 -0
- package/conversation/conversation-transfer/export-conversation.d.ts +14 -0
- package/conversation/conversation-transfer/export-conversation.d.ts.map +1 -0
- package/conversation/conversation-transfer/export-conversation.js +19 -18
- package/conversation/conversation-transfer/import-conversation.d.ts +111 -0
- package/conversation/conversation-transfer/import-conversation.d.ts.map +1 -0
- package/conversation/conversation-transfer/import-conversation.js +65 -69
- package/conversation/conversation-transfer/progress.d.ts +60 -0
- package/conversation/conversation-transfer/progress.d.ts.map +1 -0
- package/conversation/conversation-transfer/progress.js +1 -1
- package/conversation/conversation-transfer/queue.d.ts +54 -0
- package/conversation/conversation-transfer/queue.d.ts.map +1 -0
- package/conversation/conversation-transfer/types.d.ts +36 -0
- package/conversation/conversation-transfer/types.d.ts.map +1 -0
- package/conversation/conversation-transfer/zip-export.d.ts +31 -0
- package/conversation/conversation-transfer/zip-export.d.ts.map +1 -0
- package/conversation/conversation-transfer/zip-export.js +1 -7
- package/conversation/conversation-transfer/zip-import.d.ts +17 -0
- package/conversation/conversation-transfer/zip-import.d.ts.map +1 -0
- package/conversation/conversation-transfer/zip-import.js +1 -1
- package/conversation/create-chat-stream-api.d.ts +109 -0
- package/conversation/create-chat-stream-api.d.ts.map +1 -0
- package/conversation/create-chat-stream-api.js +57 -47
- package/conversation/deriveConversationRowActionState/deriveConversationRowActionState.d.ts +39 -0
- package/conversation/deriveConversationRowActionState/deriveConversationRowActionState.d.ts.map +1 -0
- package/conversation/display-name-watch.d.ts +4 -0
- package/conversation/display-name-watch.d.ts.map +1 -0
- package/conversation/footer-message.d.ts +10 -0
- package/conversation/footer-message.d.ts.map +1 -0
- package/conversation/get-model-id-from-conversation-id.d.ts +38 -0
- package/conversation/get-model-id-from-conversation-id.d.ts.map +1 -0
- package/conversation/get-model-id-from-conversation-id.js +1 -1
- package/conversation/greeting.d.ts +18 -0
- package/conversation/greeting.d.ts.map +1 -0
- package/conversation/message-factory.d.ts +7 -0
- package/conversation/message-factory.d.ts.map +1 -0
- package/conversation/message-utils.d.ts +67 -0
- package/conversation/message-utils.d.ts.map +1 -0
- package/conversation/overlay-messages.d.ts +5 -0
- package/conversation/overlay-messages.d.ts.map +1 -0
- package/conversation/quick-app-conversation-starters.d.ts +10 -0
- package/conversation/quick-app-conversation-starters.d.ts.map +1 -0
- package/conversation/stage.d.ts +77 -0
- package/conversation/stage.d.ts.map +1 -0
- package/conversation/starter-option.d.ts +21 -0
- package/conversation/starter-option.d.ts.map +1 -0
- package/conversation/useActiveConversationSync/useActiveConversationSync.d.ts +35 -0
- package/conversation/useActiveConversationSync/useActiveConversationSync.d.ts.map +1 -0
- package/conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.d.ts +46 -0
- package/conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.d.ts.map +1 -0
- package/conversation/useAttachmentUpload/useAttachmentUpload.d.ts +27 -0
- package/conversation/useAttachmentUpload/useAttachmentUpload.d.ts.map +1 -0
- package/conversation/useAttachmentUpload/useAttachmentUpload.js +4 -1
- package/conversation/useConversationComposerDraft/useConversationComposerDraft.d.ts +39 -0
- package/conversation/useConversationComposerDraft/useConversationComposerDraft.d.ts.map +1 -0
- package/conversation/useConversationComposerDraft/useConversationComposerDraft.js +128 -0
- package/conversation/useConversationExport/useConversationExport.d.ts +72 -0
- package/conversation/useConversationExport/useConversationExport.d.ts.map +1 -0
- package/conversation/useConversationExport/useConversationExport.js +59 -60
- package/conversation/useConversationHandlers/attachment-to-dto.d.ts +7 -0
- package/conversation/useConversationHandlers/attachment-to-dto.d.ts.map +1 -0
- package/conversation/useConversationHandlers/message-factory.d.ts +9 -0
- package/conversation/useConversationHandlers/message-factory.d.ts.map +1 -0
- package/conversation/useConversationHandlers/message-utils.d.ts +38 -0
- package/conversation/useConversationHandlers/message-utils.d.ts.map +1 -0
- package/conversation/useConversationHandlers/message-utils.js +2 -2
- package/conversation/useConversationHandlers/starter-option.d.ts +24 -0
- package/conversation/useConversationHandlers/starter-option.d.ts.map +1 -0
- package/conversation/useConversationHandlers/useConversationHandlers.d.ts +66 -0
- package/conversation/useConversationHandlers/useConversationHandlers.d.ts.map +1 -0
- package/conversation/useConversationHandlers/useConversationHandlers.js +2 -2
- package/conversation/useConversationImport/useConversationImport.d.ts +54 -0
- package/conversation/useConversationImport/useConversationImport.d.ts.map +1 -0
- package/conversation/useConversationImport/useConversationImport.js +24 -24
- package/conversation/useConversationLookupMaps/useConversationLookupMaps.d.ts +24 -0
- package/conversation/useConversationLookupMaps/useConversationLookupMaps.d.ts.map +1 -0
- package/conversation/useConversationPanelItems/useConversationPanelItems.d.ts +65 -0
- package/conversation/useConversationPanelItems/useConversationPanelItems.d.ts.map +1 -0
- package/conversation/useConversationPanelItems/useConversationPanelItems.js +31 -30
- package/conversation/useConversationScroll/useConversationScroll.d.ts +46 -0
- package/conversation/useConversationScroll/useConversationScroll.d.ts.map +1 -0
- package/conversation/useConversationScroll/useConversationScroll.js +2 -6
- package/conversation/useConversationStream/apply-chunk.d.ts +35 -0
- package/conversation/useConversationStream/apply-chunk.d.ts.map +1 -0
- package/conversation/useConversationStream/buffered-generation.d.ts +15 -0
- package/conversation/useConversationStream/buffered-generation.d.ts.map +1 -0
- package/conversation/useConversationStream/conversation-path.d.ts +7 -0
- package/conversation/useConversationStream/conversation-path.d.ts.map +1 -0
- package/conversation/useConversationStream/conversation-path.js +2 -2
- package/conversation/useConversationStream/frame-scheduler.d.ts +14 -0
- package/conversation/useConversationStream/frame-scheduler.d.ts.map +1 -0
- package/conversation/useConversationStream/frame-scheduler.js +17 -17
- package/conversation/useConversationStream/generation-resume.d.ts +98 -0
- package/conversation/useConversationStream/generation-resume.d.ts.map +1 -0
- package/conversation/useConversationStream/generation-resume.js +64 -65
- package/conversation/useConversationStream/useConversationStream.d.ts +145 -0
- package/conversation/useConversationStream/useConversationStream.d.ts.map +1 -0
- package/conversation/useConversationStream/useConversationStream.js +248 -241
- package/conversation/useImportFilePicker/useImportFilePicker.d.ts +32 -0
- package/conversation/useImportFilePicker/useImportFilePicker.d.ts.map +1 -0
- package/conversation/useMessageSelectionReply/useMessageSelectionReply.d.ts +42 -0
- package/conversation/useMessageSelectionReply/useMessageSelectionReply.d.ts.map +1 -0
- package/conversation/useMessageSelectionReply/useMessageSelectionReply.js +4 -10
- package/conversation/useTranscribeAudio/audio-transcription-error.d.ts +19 -0
- package/conversation/useTranscribeAudio/audio-transcription-error.d.ts.map +1 -0
- package/conversation/useTranscribeAudio/transcription-retry.d.ts +2 -0
- package/conversation/useTranscribeAudio/transcription-retry.d.ts.map +1 -0
- package/conversation/useTranscribeAudio/useTranscribeAudio.d.ts +43 -0
- package/conversation/useTranscribeAudio/useTranscribeAudio.d.ts.map +1 -0
- package/conversation/useTranscribeAudio/useTranscribeAudio.js +30 -27
- package/conversation-overlay.d.ts +2 -7
- package/conversation-overlay.js +1 -2
- package/conversation-sources/useConversationSources/useConversationSources.d.ts +20 -0
- package/conversation-sources/useConversationSources/useConversationSources.d.ts.map +1 -0
- package/conversation-sources.d.ts +2 -25
- package/conversation-sources.js +1 -2
- package/conversation-transfer.d.ts +2 -190
- package/conversation.d.ts +2 -1372
- package/conversation.js +34 -32
- package/entry-points/attachments.d.ts +3 -0
- package/entry-points/attachments.d.ts.map +1 -0
- package/entry-points/catalog.d.ts +25 -0
- package/entry-points/catalog.d.ts.map +1 -0
- package/entry-points/conversation-overlay.d.ts +2 -0
- package/entry-points/conversation-overlay.d.ts.map +1 -0
- package/entry-points/conversation-sources.d.ts +2 -0
- package/entry-points/conversation-sources.d.ts.map +1 -0
- package/entry-points/conversation-transfer.d.ts +7 -0
- package/entry-points/conversation-transfer.d.ts.map +1 -0
- package/entry-points/conversation.d.ts +36 -0
- package/entry-points/conversation.d.ts.map +1 -0
- package/entry-points/file-manager-canvas.d.ts +2 -0
- package/entry-points/file-manager-canvas.d.ts.map +1 -0
- package/entry-points/file-manager.d.ts +31 -0
- package/entry-points/file-manager.d.ts.map +1 -0
- package/entry-points/mcp-apps.d.ts +6 -0
- package/entry-points/mcp-apps.d.ts.map +1 -0
- package/entry-points/oauth.d.ts +10 -0
- package/entry-points/oauth.d.ts.map +1 -0
- package/entry-points/offline-credentials.d.ts +5 -0
- package/entry-points/offline-credentials.d.ts.map +1 -0
- package/entry-points/scheduled-tasks.d.ts +9 -0
- package/entry-points/scheduled-tasks.d.ts.map +1 -0
- package/entry-points/scroll-anchoring.d.ts +2 -0
- package/entry-points/scroll-anchoring.d.ts.map +1 -0
- package/entry-points/sharing.d.ts +3 -0
- package/entry-points/sharing.d.ts.map +1 -0
- package/entry-points/skill-editor.d.ts +9 -0
- package/entry-points/skill-editor.d.ts.map +1 -0
- package/entry-points/skills-state.d.ts +2 -0
- package/entry-points/skills-state.d.ts.map +1 -0
- package/entry-points/source-content.d.ts +2 -0
- package/entry-points/source-content.d.ts.map +1 -0
- package/entry-points/usage-limits.d.ts +8 -0
- package/entry-points/usage-limits.d.ts.map +1 -0
- package/entry-points/usage.d.ts +3 -0
- package/entry-points/usage.d.ts.map +1 -0
- package/entry-points/utils.d.ts +17 -0
- package/entry-points/utils.d.ts.map +1 -0
- package/entry-points/viewport-layout.d.ts +4 -0
- package/entry-points/viewport-layout.d.ts.map +1 -0
- package/file-manager-canvas.d.ts +2 -418
- package/file-manager-canvas.js +1 -2
- package/file-manager.d.ts +2 -1250
- package/file-manager.js +21 -21
- package/files/annotation.d.ts +10 -0
- package/files/annotation.d.ts.map +1 -0
- package/files/attachment-canvas.d.ts +123 -0
- package/files/attachment-canvas.d.ts.map +1 -0
- package/files/attachment-dto-to-display.d.ts +10 -0
- package/files/attachment-dto-to-display.d.ts.map +1 -0
- package/files/attachment-types.d.ts +21 -0
- package/files/attachment-types.d.ts.map +1 -0
- package/files/attachment-types.js +1 -1
- package/files/create-files-api.d.ts +52 -0
- package/files/create-files-api.d.ts.map +1 -0
- package/files/create-files-api.js +1 -1
- package/files/create-upload-file-with-progress.d.ts +27 -0
- package/files/create-upload-file-with-progress.d.ts.map +1 -0
- package/files/create-upload-file-with-progress.js +42 -34
- package/files/dial-file-manager-copy-move.util.d.ts +15 -0
- package/files/dial-file-manager-copy-move.util.d.ts.map +1 -0
- package/files/dial-file-manager-mapping.util.d.ts +55 -0
- package/files/dial-file-manager-mapping.util.d.ts.map +1 -0
- package/files/dial-file-manager-mapping.util.js +97 -69
- package/files/dial-file-manager-path.util.d.ts +48 -0
- package/files/dial-file-manager-path.util.d.ts.map +1 -0
- package/files/dial-file-manager.model.d.ts +36 -0
- package/files/dial-file-manager.model.d.ts.map +1 -0
- package/files/dial-file-manager.types.d.ts +335 -0
- package/files/dial-file-manager.types.d.ts.map +1 -0
- package/files/dial-file-to-attachment.d.ts +26 -0
- package/files/dial-file-to-attachment.d.ts.map +1 -0
- package/files/dial-file-to-attachment.js +3 -3
- package/files/dial-file.d.ts +17 -0
- package/files/dial-file.d.ts.map +1 -0
- package/files/dial-files-api.d.ts +71 -0
- package/files/dial-files-api.d.ts.map +1 -0
- package/files/download-destination.d.ts +31 -0
- package/files/download-destination.d.ts.map +1 -0
- package/files/download-progress.d.ts +33 -0
- package/files/download-progress.d.ts.map +1 -0
- package/files/download-progress.js +28 -0
- package/files/file-manager-variant.d.ts +3 -0
- package/files/file-manager-variant.d.ts.map +1 -0
- package/files/file-name.d.ts +19 -0
- package/files/file-name.d.ts.map +1 -0
- package/files/prepare-download-destination.d.ts +8 -0
- package/files/prepare-download-destination.d.ts.map +1 -0
- package/files/resolve-dial-file-api-path.d.ts +12 -0
- package/files/resolve-dial-file-api-path.d.ts.map +1 -0
- package/files/source-content.d.ts +28 -0
- package/files/source-content.d.ts.map +1 -0
- package/files/source-content.js +1 -1
- package/files/useDialFileListing/useDialFileListing.d.ts +82 -0
- package/files/useDialFileListing/useDialFileListing.d.ts.map +1 -0
- package/files/useDialFileListing/useDialFileListing.js +95 -107
- package/files/useDialFileManager/useDialFileManager.d.ts +16 -0
- package/files/useDialFileManager/useDialFileManager.d.ts.map +1 -0
- package/files/useDialFileManager/useDialFileManager.js +5 -2
- package/files/useDialFileManagerSections/useDialFileManagerSections.d.ts +25 -0
- package/files/useDialFileManagerSections/useDialFileManagerSections.d.ts.map +1 -0
- package/files/useDialFileManagerSections/useDialFileManagerSections.js +59 -68
- package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.d.ts +15 -0
- package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.d.ts.map +1 -0
- package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.js +1 -1
- package/files/useDialFileMetadata/useDialFileMetadata.d.ts +28 -0
- package/files/useDialFileMetadata/useDialFileMetadata.d.ts.map +1 -0
- package/files/useDialFileMetadata/useDialFileMetadata.js +3 -3
- package/files/useDialFileMutations/useDialFileMutations.d.ts +77 -0
- package/files/useDialFileMutations/useDialFileMutations.d.ts.map +1 -0
- package/files/useDialFileMutations/useDialFileMutations.js +230 -159
- package/files/useDialFileSharing/useDialFileSharing.d.ts +34 -0
- package/files/useDialFileSharing/useDialFileSharing.d.ts.map +1 -0
- package/files/useDialFileUploadBatch/useDialFileUploadBatch.d.ts +47 -0
- package/files/useDialFileUploadBatch/useDialFileUploadBatch.d.ts.map +1 -0
- package/files/useDialFileUploadBatch/useDialFileUploadBatch.js +105 -97
- package/files/useFileAttachmentPicker/useFileAttachmentPicker.d.ts +59 -0
- package/files/useFileAttachmentPicker/useFileAttachmentPicker.d.ts.map +1 -0
- package/files/useFileAttachmentPicker/useFileAttachmentPicker.js +2 -2
- package/index.d.ts +167 -6990
- package/index.d.ts.map +1 -0
- package/index.js +115 -101
- package/mcp-apps/mcp-apps-api-client.d.ts +28 -0
- package/mcp-apps/mcp-apps-api-client.d.ts.map +1 -0
- package/mcp-apps/mcp-apps-api-client.js +18 -17
- package/mcp-apps/useMcpAppHostAdapter/useMcpAppHostAdapter.d.ts +14 -0
- package/mcp-apps/useMcpAppHostAdapter/useMcpAppHostAdapter.d.ts.map +1 -0
- package/mcp-apps/useMcpAppHostContext/useMcpAppHostContext.d.ts +29 -0
- package/mcp-apps/useMcpAppHostContext/useMcpAppHostContext.d.ts.map +1 -0
- package/mcp-apps/useMcpAppTools/useMcpAppTools.d.ts +22 -0
- package/mcp-apps/useMcpAppTools/useMcpAppTools.d.ts.map +1 -0
- package/mcp-apps/useMcpAppTools/useMcpAppTools.js +28 -31
- package/mcp-apps/useOpenMcpAppCanvas/useOpenMcpAppCanvas.d.ts +36 -0
- package/mcp-apps/useOpenMcpAppCanvas/useOpenMcpAppCanvas.d.ts.map +1 -0
- package/mcp-apps.d.ts +2 -256
- package/oauth/authorize-url.d.ts +16 -0
- package/oauth/authorize-url.d.ts.map +1 -0
- package/oauth/authorize-url.js +1 -1
- package/oauth/handshake.d.ts +30 -0
- package/oauth/handshake.d.ts.map +1 -0
- package/oauth/handshake.js +3 -10
- package/oauth/models.d.ts +81 -0
- package/oauth/models.d.ts.map +1 -0
- package/oauth/popup.d.ts +30 -0
- package/oauth/popup.d.ts.map +1 -0
- package/oauth/popup.js +19 -17
- package/oauth/toolset-id.d.ts +53 -0
- package/oauth/toolset-id.d.ts.map +1 -0
- package/oauth/types.d.ts +84 -0
- package/oauth/types.d.ts.map +1 -0
- package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.d.ts +54 -0
- package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.d.ts.map +1 -0
- package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.js +41 -42
- package/oauth/useToolsetLogin/useToolsetLogin.d.ts +79 -0
- package/oauth/useToolsetLogin/useToolsetLogin.d.ts.map +1 -0
- package/oauth/useToolsetLogin/useToolsetLogin.js +2 -1
- package/oauth.d.ts +2 -472
- package/offline-credentials/map-offline-credentials-response.d.ts +17 -0
- package/offline-credentials/map-offline-credentials-response.d.ts.map +1 -0
- package/offline-credentials/map-offline-credentials-response.js +15 -0
- package/offline-credentials/useOfflineCredentialsAuth/useOfflineCredentialsAuth.d.ts +58 -0
- package/offline-credentials/useOfflineCredentialsAuth/useOfflineCredentialsAuth.d.ts.map +1 -0
- package/offline-credentials/useOfflineCredentialsAuth/useOfflineCredentialsAuth.js +37 -0
- package/offline-credentials/useOfflineCredentialsGate/useOfflineCredentialsGate.d.ts +57 -0
- package/offline-credentials/useOfflineCredentialsGate/useOfflineCredentialsGate.d.ts.map +1 -0
- package/offline-credentials/useOfflineCredentialsGate/useOfflineCredentialsGate.js +34 -0
- package/offline-credentials/useOfflineCredentialsLogin/useOfflineCredentialsLogin.d.ts +28 -0
- package/offline-credentials/useOfflineCredentialsLogin/useOfflineCredentialsLogin.d.ts.map +1 -0
- package/offline-credentials/useOfflineCredentialsLogin/useOfflineCredentialsLogin.js +29 -0
- package/offline-credentials.d.ts +2 -0
- package/offline-credentials.js +5 -0
- package/package.json +31 -17
- package/prompt/export-prompt.d.ts +31 -0
- package/prompt/export-prompt.d.ts.map +1 -0
- package/prompt/prompt-resource.d.ts +30 -0
- package/prompt/prompt-resource.d.ts.map +1 -0
- package/prompt/prompt.d.ts +34 -0
- package/prompt/prompt.d.ts.map +1 -0
- package/prompt/usePromptsState/usePromptsState.d.ts +34 -0
- package/prompt/usePromptsState/usePromptsState.d.ts.map +1 -0
- package/scheduled-task/check-scheduled-task-auth-session-error.d.ts +27 -0
- package/scheduled-task/check-scheduled-task-auth-session-error.d.ts.map +1 -0
- package/scheduled-task/check-scheduled-task-auth-session-error.js +17 -0
- package/scheduled-task/scheduled-task-description.d.ts +38 -0
- package/scheduled-task/scheduled-task-description.d.ts.map +1 -0
- package/scheduled-task/scheduled-task-description.js +1 -1
- package/scheduled-task/scheduled-task-mapping.d.ts +19 -0
- package/scheduled-task/scheduled-task-mapping.d.ts.map +1 -0
- package/scheduled-task/scheduled-task-preparation.d.ts +19 -0
- package/scheduled-task/scheduled-task-preparation.d.ts.map +1 -0
- package/scheduled-task/scheduled-task-trigger.d.ts +26 -0
- package/scheduled-task/scheduled-task-trigger.d.ts.map +1 -0
- package/scheduled-task/scheduled-task-trigger.js +9 -8
- package/scheduled-task/scheduled-tasks-api-client.d.ts +67 -0
- package/scheduled-task/scheduled-tasks-api-client.d.ts.map +1 -0
- package/scheduled-task/use-scheduled-task-runs.d.ts +40 -0
- package/scheduled-task/use-scheduled-task-runs.d.ts.map +1 -0
- package/scheduled-task/use-scheduled-task-runs.js +67 -79
- package/scheduled-task/use-scheduled-tasks.d.ts +28 -0
- package/scheduled-task/use-scheduled-tasks.d.ts.map +1 -0
- package/scheduled-task/use-scheduled-tasks.js +1 -1
- package/scheduled-tasks.d.ts +2 -250
- package/scheduled-tasks.js +2 -1
- package/scroll-anchoring.d.ts +2 -50
- package/scroll-anchoring.js +1 -2
- package/shared/application-schema.d.ts +16 -0
- package/shared/application-schema.d.ts.map +1 -0
- package/shared/application-schema.js +3 -3
- package/shared/browser-timezone.d.ts +7 -0
- package/shared/browser-timezone.d.ts.map +1 -0
- package/shared/cron-day-of-month.d.ts +21 -0
- package/shared/cron-day-of-month.d.ts.map +1 -0
- package/shared/cron-day-of-month.js +10 -10
- package/shared/cron-weekday.d.ts +5 -0
- package/shared/cron-weekday.d.ts.map +1 -0
- package/shared/custom-apps.d.ts +7 -0
- package/shared/custom-apps.d.ts.map +1 -0
- package/shared/external-services.d.ts +16 -0
- package/shared/external-services.d.ts.map +1 -0
- package/shared/formatting.d.ts +5 -0
- package/shared/formatting.d.ts.map +1 -0
- package/shared/locale.d.ts +45 -0
- package/shared/locale.d.ts.map +1 -0
- package/shared/locale.js +2 -2
- package/shared/string-utils.d.ts +11 -0
- package/shared/string-utils.d.ts.map +1 -0
- package/shared/toolset-login-events.d.ts +15 -0
- package/shared/toolset-login-events.d.ts.map +1 -0
- package/sharing.d.ts +2 -65
- package/skill/skill-archive.d.ts +7 -0
- package/skill/skill-archive.d.ts.map +1 -0
- package/skill/skill-file-batch-validation.d.ts +70 -0
- package/skill/skill-file-batch-validation.d.ts.map +1 -0
- package/skill/skill-file-batch-validation.js +18 -17
- package/skill/skill-file-preview.d.ts +25 -0
- package/skill/skill-file-preview.d.ts.map +1 -0
- package/skill/skill-manifest.d.ts +28 -0
- package/skill/skill-manifest.d.ts.map +1 -0
- package/skill/skill-types.d.ts +46 -0
- package/skill/skill-types.d.ts.map +1 -0
- package/skill/skill-types.js +1 -1
- package/skill/skill.d.ts +160 -0
- package/skill/skill.d.ts.map +1 -0
- package/skill/skill.js +12 -15
- package/skill/useSkillArchiveImport/useSkillArchiveImport.d.ts +65 -0
- package/skill/useSkillArchiveImport/useSkillArchiveImport.d.ts.map +1 -0
- package/skill/useSkillArchiveImport/useSkillArchiveImport.js +1 -7
- package/skill/useSkillEditorLoad.d.ts +74 -0
- package/skill/useSkillEditorLoad.d.ts.map +1 -0
- package/skill/useSkillEditorSubmit.d.ts +125 -0
- package/skill/useSkillEditorSubmit.d.ts.map +1 -0
- package/skill/useSkillEditorSubmit.js +1 -5
- package/skill/useSkillFileActions.d.ts +60 -0
- package/skill/useSkillFileActions.d.ts.map +1 -0
- package/skill/useSkillFilePreview.d.ts +38 -0
- package/skill/useSkillFilePreview.d.ts.map +1 -0
- package/skill/useSkillsState/useSkillsState.d.ts +35 -0
- package/skill/useSkillsState/useSkillsState.d.ts.map +1 -0
- package/skill-editor.d.ts +2 -655
- package/skills-state.d.ts +2 -40
- package/skills-state.js +1 -2
- package/source-content.d.ts +2 -29
- package/source-content.js +1 -2
- package/usage/map-usage-data-to-dashboard.d.ts +39 -0
- package/usage/map-usage-data-to-dashboard.d.ts.map +1 -0
- package/usage/map-user-usage-to-model-limits.d.ts +62 -0
- package/usage/map-user-usage-to-model-limits.d.ts.map +1 -0
- package/usage/usage-banner-source.d.ts +24 -0
- package/usage/usage-banner-source.d.ts.map +1 -0
- package/usage/usage-banner-source.js +60 -0
- package/usage/usage-period.d.ts +7 -0
- package/usage/usage-period.d.ts.map +1 -0
- package/usage/usage-period.js +6 -0
- package/usage/usage-reset-time.d.ts +69 -0
- package/usage/usage-reset-time.d.ts.map +1 -0
- package/usage/usage-reset-time.js +72 -0
- package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.d.ts +56 -0
- package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.d.ts.map +1 -0
- package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.js +34 -0
- package/usage/useRefreshUsageAfterGeneration/useRefreshUsageAfterGeneration.d.ts +16 -0
- package/usage/useRefreshUsageAfterGeneration/useRefreshUsageAfterGeneration.d.ts.map +1 -0
- package/usage/useRefreshUsageAfterGeneration/useRefreshUsageAfterGeneration.js +14 -0
- package/usage/useUsageData/useUsageData.d.ts +28 -0
- package/usage/useUsageData/useUsageData.d.ts.map +1 -0
- package/usage/useUsageLimitBanner/useUsageLimitBanner.d.ts +58 -0
- package/usage/useUsageLimitBanner/useUsageLimitBanner.d.ts.map +1 -0
- package/usage/useUsageLimitBanner/useUsageLimitBanner.js +70 -0
- package/usage/useUsageLimitBannerDismissal/useUsageLimitBannerDismissal.d.ts +14 -0
- package/usage/useUsageLimitBannerDismissal/useUsageLimitBannerDismissal.d.ts.map +1 -0
- package/usage/useUsageLimitBannerDismissal/useUsageLimitBannerDismissal.js +19 -0
- package/usage-limits.d.ts +2 -0
- package/usage-limits.js +8 -0
- package/usage.d.ts +2 -125
- package/useChatSettingsFormConfig/useChatSettingsFormConfig.d.ts +128 -0
- package/useChatSettingsFormConfig/useChatSettingsFormConfig.d.ts.map +1 -0
- package/usePageFileDrag/usePageFileDrag.d.ts +16 -0
- package/usePageFileDrag/usePageFileDrag.d.ts.map +1 -0
- package/usePageFileDrag/usePageFileDrag.js +3 -3
- package/usePanelMaxWidth/usePanelMaxWidth.d.ts +6 -0
- package/usePanelMaxWidth/usePanelMaxWidth.d.ts.map +1 -0
- package/useShareLink/useShareLink.d.ts +23 -0
- package/useShareLink/useShareLink.d.ts.map +1 -0
- package/useShareLink/useShareLink.js +1 -0
- package/useShareRecipientsCount/useShareRecipientsCount.d.ts +36 -0
- package/useShareRecipientsCount/useShareRecipientsCount.d.ts.map +1 -0
- package/useToolsMenu/useToolsMenu.d.ts +31 -0
- package/useToolsMenu/useToolsMenu.d.ts.map +1 -0
- package/useViewportWidth/useViewportWidth.d.ts +3 -0
- package/useViewportWidth/useViewportWidth.d.ts.map +1 -0
- package/utils.d.ts +2 -404
- package/viewport-layout.d.ts +2 -27
|
@@ -4,21 +4,22 @@ import { RESERVED_MARKER_NAME as i } from "../dial-file-manager.model.js";
|
|
|
4
4
|
import { formatOperationFolderName as a, getVirtualPathName as o, hasForbiddenNameSymbols as s, parseNewFolderVirtualPath as c, resolveOwnerCoords as l } from "../dial-file-manager-path.util.js";
|
|
5
5
|
import { resolveDialFileApiPath as u, virtualPathToApiPath as d } from "../resolve-dial-file-api-path.js";
|
|
6
6
|
import { prepareCopyItems as f, prepareMoveRenameItems as p } from "../dial-file-manager-copy-move.util.js";
|
|
7
|
-
import { findFirstSuccessfulCopyMoveItem as m } from "../dial-file-manager-mapping.util.js";
|
|
8
|
-
import { DownloadDestinationType as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
7
|
+
import { findFirstSuccessfulCopyMoveItem as m, resolveTransferFailureReason as h } from "../dial-file-manager-mapping.util.js";
|
|
8
|
+
import { DownloadDestinationType as g } from "../download-destination.js";
|
|
9
|
+
import { createDownloadResponseError as _, estimateArchiveSize as v, getContentLength as y, getDownloadPercent as b, withDownloadProgress as ee } from "../download-progress.js";
|
|
10
|
+
import { FileDownloadStatus as x, getParentFolderPath as S, isDownloadInProgress as te } from "@epam/ai-dial-chat-shared";
|
|
11
|
+
import { useCallback as C, useEffect as ne, useRef as w, useState as T } from "react";
|
|
12
|
+
import { ArchiveItemDtoNodeTypeEnum as re, CopyItemDtoNodeTypeEnum as ie, DeleteItemDtoNodeTypeEnum as E, MoveItemDtoNodeTypeEnum as ae, RenameItemDtoNodeTypeEnum as oe } from "@epam/ai-dial-chat-api-client";
|
|
13
|
+
import { NOT_ALLOWED_SYMBOLS as se, NotificationVariant as D } from "@epam/ai-dial-ui-kit";
|
|
14
|
+
import { DialFileManagerTabs as ce, DialFileNodeType as O } from "@epam/ai-dial-react-file-manager";
|
|
14
15
|
//#region src/files/useDialFileMutations/useDialFileMutations.ts
|
|
15
|
-
var
|
|
16
|
-
let [
|
|
16
|
+
var k = 0, le = () => (k += 1, `download-${Date.now()}-${k}`), A = ({ filesApi: k, bucket: A, rootLabel: j, activeTab: M, folderPath: N, currentFolder: P, sharedRootMetaRef: F, listingPermissionsCache: ue, invalidateFolders: I, bumpRetry: L, mergeCreatedFolder: de, setFolderPath: R, onNotification: z, onOperationSuccess: B, downloadDestination: V, forbiddenSymbolsRegExp: H }) => {
|
|
17
|
+
let [fe, pe] = T(!1), [me, U] = T(null), W = w(/* @__PURE__ */ new Map()), G = w(/* @__PURE__ */ new Map()), K = w(null), [he, ge] = T(!1), [q, _e] = T(!1), [J, ve] = T(!1), [Y, ye] = T(!1), X = w(null), Z = w(null), Q = C((e, t) => {
|
|
17
18
|
let r = null;
|
|
18
19
|
if (!e || e.trim() === "") r = { reason: n.Empty };
|
|
19
20
|
else if (s(e, H)) r = {
|
|
20
21
|
reason: n.ForbiddenSymbols,
|
|
21
|
-
symbols:
|
|
22
|
+
symbols: se
|
|
22
23
|
};
|
|
23
24
|
else if (e === i) r = { reason: n.ReservedName };
|
|
24
25
|
else if (e.length > 255) r = {
|
|
@@ -32,132 +33,198 @@ var D = ({ filesApi: D, bucket: O, rootLabel: k, activeTab: A, folderPath: j, cu
|
|
|
32
33
|
existingName: o.name
|
|
33
34
|
});
|
|
34
35
|
}
|
|
35
|
-
return
|
|
36
|
-
}, [H]),
|
|
37
|
-
let { parentVirtualPath: a, name: o } = c(n,
|
|
36
|
+
return Z.current = r, r;
|
|
37
|
+
}, [H]), be = C(async (e, n, i) => {
|
|
38
|
+
let { parentVirtualPath: a, name: o } = c(n, j), s = d(a, j), u = P && N === s ? P : {
|
|
38
39
|
id: s,
|
|
39
40
|
path: s,
|
|
40
41
|
name: a.split("/").filter(Boolean).pop() ?? "",
|
|
41
42
|
folderId: s,
|
|
42
|
-
nodeType:
|
|
43
|
+
nodeType: O.FOLDER,
|
|
43
44
|
items: []
|
|
44
|
-
}, f =
|
|
45
|
-
if (
|
|
46
|
-
|
|
47
|
-
let { bucket: p, path: m } =
|
|
48
|
-
bucket:
|
|
45
|
+
}, f = Z.current;
|
|
46
|
+
if (Z.current = null, Q(o, u) || f) return;
|
|
47
|
+
pe(!0);
|
|
48
|
+
let { bucket: p, path: m } = M === ce.Shared ? l(s, F.current, A) : {
|
|
49
|
+
bucket: A,
|
|
49
50
|
path: s
|
|
50
51
|
};
|
|
51
52
|
try {
|
|
52
|
-
|
|
53
|
+
de(s, await k.createFolder({
|
|
53
54
|
bucket: p,
|
|
54
55
|
parentPath: m,
|
|
55
56
|
name: o
|
|
56
|
-
}),
|
|
57
|
+
}), ue.get(s)), L(), B?.({
|
|
57
58
|
kind: r.FolderCreated,
|
|
58
59
|
name: o
|
|
59
60
|
});
|
|
60
61
|
} catch {
|
|
61
62
|
z?.({
|
|
62
|
-
variant:
|
|
63
|
+
variant: D.Error,
|
|
63
64
|
reason: t.FolderCreateFailed
|
|
64
65
|
});
|
|
65
66
|
} finally {
|
|
66
|
-
|
|
67
|
+
pe(!1);
|
|
67
68
|
}
|
|
68
69
|
}, [
|
|
69
|
-
A,
|
|
70
|
-
O,
|
|
71
70
|
M,
|
|
72
|
-
|
|
73
|
-
j,
|
|
74
|
-
$,
|
|
75
|
-
k,
|
|
71
|
+
A,
|
|
76
72
|
P,
|
|
73
|
+
k,
|
|
74
|
+
N,
|
|
75
|
+
Q,
|
|
76
|
+
j,
|
|
77
|
+
ue,
|
|
78
|
+
de,
|
|
77
79
|
L,
|
|
78
|
-
I,
|
|
79
80
|
B,
|
|
80
|
-
|
|
81
|
+
F,
|
|
81
82
|
z
|
|
82
|
-
]),
|
|
83
|
+
]), $ = C((e, t) => {
|
|
84
|
+
G.current.delete(e), U((n) => n && {
|
|
85
|
+
...n,
|
|
86
|
+
files: n.files.map((n) => n.id === e ? {
|
|
87
|
+
...n,
|
|
88
|
+
...t
|
|
89
|
+
} : n)
|
|
90
|
+
});
|
|
91
|
+
}, []), xe = C((e, t) => {
|
|
92
|
+
G.current.set(e, t), K.current ??= requestAnimationFrame(() => {
|
|
93
|
+
K.current = null;
|
|
94
|
+
let e = new Map(G.current);
|
|
95
|
+
G.current.clear(), U((t) => t && {
|
|
96
|
+
...t,
|
|
97
|
+
files: t.files.map((t) => e.has(t.id) && t.status === x.Downloading ? {
|
|
98
|
+
...t,
|
|
99
|
+
percent: e.get(t.id)
|
|
100
|
+
} : t)
|
|
101
|
+
});
|
|
102
|
+
});
|
|
103
|
+
}, []);
|
|
104
|
+
ne(() => () => {
|
|
105
|
+
K.current != null && cancelAnimationFrame(K.current);
|
|
106
|
+
}, []);
|
|
107
|
+
let Se = C((e) => {
|
|
83
108
|
(async () => {
|
|
84
|
-
|
|
109
|
+
let n = e.length === 1 && e[0].nodeType === O.ITEM, i = "files.zip";
|
|
110
|
+
n ? i = e[0].name : e.length === 1 && (i = `${e[0].name}.zip`);
|
|
111
|
+
let a = e.length === 1 ? t.DownloadFileFailed : t.DownloadFilesFailed, o;
|
|
85
112
|
try {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
113
|
+
o = await V.resolveDestination(i, n ? e[0].contentType ?? "application/octet-stream" : "application/zip");
|
|
114
|
+
} catch {
|
|
115
|
+
z?.({
|
|
116
|
+
variant: D.Error,
|
|
117
|
+
reason: a
|
|
118
|
+
});
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
if (o.type === g.Cancelled) return;
|
|
122
|
+
let s = le(), c = new AbortController();
|
|
123
|
+
W.current.set(s, c), U((e) => ({
|
|
124
|
+
isOpen: !0,
|
|
125
|
+
files: [...e?.files ?? [], {
|
|
126
|
+
id: s,
|
|
127
|
+
name: i,
|
|
128
|
+
status: x.Downloading
|
|
129
|
+
}]
|
|
130
|
+
}));
|
|
131
|
+
try {
|
|
132
|
+
let t, a, l = !1;
|
|
133
|
+
if (n) {
|
|
134
|
+
let n = e[0];
|
|
135
|
+
if (!n.bucket) throw Error("File is missing bucket");
|
|
136
|
+
let r = u(n, n.bucket, j);
|
|
137
|
+
if (t = await k.downloadFile(n.bucket, r, c.signal), !t.ok) throw _(t);
|
|
138
|
+
a = y(t);
|
|
99
139
|
} else {
|
|
100
|
-
let
|
|
101
|
-
bucket: e.bucket ??
|
|
102
|
-
path: u(e, e.bucket ??
|
|
140
|
+
let n = e.map((e) => ({
|
|
141
|
+
bucket: e.bucket ?? A,
|
|
142
|
+
path: u(e, e.bucket ?? A, j),
|
|
103
143
|
name: e.name,
|
|
104
|
-
nodeType: e.nodeType ===
|
|
105
|
-
}))
|
|
106
|
-
if (!
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
}) : B?.({
|
|
112
|
-
kind: r.FilesDownloaded,
|
|
113
|
-
count: e.length
|
|
114
|
-
});
|
|
144
|
+
nodeType: e.nodeType === O.FOLDER ? re.Folder : re.Item
|
|
145
|
+
}));
|
|
146
|
+
if (t = await k.downloadArchive(n, c.signal), !t.ok) throw _(t);
|
|
147
|
+
a = v(e.map((e) => ({
|
|
148
|
+
isFolder: e.nodeType === O.FOLDER,
|
|
149
|
+
contentLength: e.contentLength
|
|
150
|
+
}))), l = !0;
|
|
115
151
|
}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
152
|
+
let d = ee(t, (e) => xe(s, b(e, a, l))), f = await V.triggerDownload(d, i, o);
|
|
153
|
+
$(s, {
|
|
154
|
+
status: x.Completed,
|
|
155
|
+
percent: 100
|
|
156
|
+
}), n ? B?.({
|
|
157
|
+
kind: r.FileDownloaded,
|
|
158
|
+
name: f,
|
|
159
|
+
count: 1
|
|
160
|
+
}) : e.length === 1 ? B?.({
|
|
161
|
+
kind: r.FileDownloaded,
|
|
162
|
+
name: f
|
|
163
|
+
}) : B?.({
|
|
164
|
+
kind: r.FilesDownloaded,
|
|
165
|
+
count: e.length
|
|
166
|
+
});
|
|
167
|
+
} catch (e) {
|
|
168
|
+
if (c.signal.aborted) {
|
|
169
|
+
$(s, { status: x.Cancelled });
|
|
170
|
+
return;
|
|
171
|
+
}
|
|
172
|
+
let t = await h(e);
|
|
173
|
+
$(s, {
|
|
174
|
+
status: x.Failed,
|
|
175
|
+
failureReason: t
|
|
176
|
+
}), z?.({
|
|
177
|
+
variant: D.Error,
|
|
178
|
+
reason: a
|
|
120
179
|
});
|
|
121
180
|
} finally {
|
|
122
|
-
W(
|
|
181
|
+
W.current.delete(s);
|
|
123
182
|
}
|
|
124
183
|
})();
|
|
125
184
|
}, [
|
|
126
|
-
|
|
127
|
-
|
|
185
|
+
A,
|
|
186
|
+
j,
|
|
128
187
|
B,
|
|
129
188
|
z,
|
|
130
|
-
|
|
131
|
-
V
|
|
132
|
-
|
|
189
|
+
k,
|
|
190
|
+
V,
|
|
191
|
+
$,
|
|
192
|
+
xe
|
|
193
|
+
]), Ce = C((e) => {
|
|
194
|
+
W.current.get(e)?.abort();
|
|
195
|
+
}, []), we = C(() => {
|
|
196
|
+
for (let e of W.current.values()) e.abort();
|
|
197
|
+
}, []), Te = C(() => {
|
|
198
|
+
G.current.clear(), U(null);
|
|
199
|
+
}, []), Ee = te(me), De = C((e, n) => {
|
|
133
200
|
e.length !== 0 && (async () => {
|
|
134
|
-
|
|
201
|
+
ge(!0);
|
|
135
202
|
let r = [], i = e.map((e) => {
|
|
136
|
-
let t = e.nodeType ===
|
|
203
|
+
let t = e.nodeType === O.FOLDER, n = d(e.sourceUrl, j), i = t ? n : n.replace(/\/$/, "");
|
|
137
204
|
t && i !== "" && r.push(i.endsWith("/") ? i : `${i}/`);
|
|
138
|
-
let a = o(e.sourceUrl, i), { bucket: s, path: c } =
|
|
139
|
-
bucket:
|
|
205
|
+
let a = o(e.sourceUrl, i), { bucket: s, path: c } = M === ce.Shared ? l(i, F.current, A) : {
|
|
206
|
+
bucket: A,
|
|
140
207
|
path: i
|
|
141
208
|
};
|
|
142
209
|
return {
|
|
143
210
|
bucket: s,
|
|
144
211
|
path: c,
|
|
145
212
|
name: a,
|
|
146
|
-
nodeType: t ?
|
|
213
|
+
nodeType: t ? E.Folder : E.Item
|
|
147
214
|
};
|
|
148
215
|
});
|
|
149
216
|
try {
|
|
150
|
-
let { results: e } = await
|
|
217
|
+
let { results: e } = await k.deleteFiles(i), r = e.filter((e) => !e.success), a = r.length, o = e.length - a, s = e.find((e) => e.success), c = i.find((e) => e.path === s?.path) ?? i[0];
|
|
151
218
|
if (o > 0 && z?.({
|
|
152
|
-
variant:
|
|
219
|
+
variant: D.Success,
|
|
153
220
|
reason: t.FilesDeleted,
|
|
154
221
|
count: o,
|
|
155
222
|
name: c?.name,
|
|
156
|
-
folder: n ||
|
|
223
|
+
folder: n || j
|
|
157
224
|
}), a > 0) {
|
|
158
225
|
let e = r.slice(0, 3).map((e) => i.find((t) => t.path === e.path)?.name ?? e.path), n = a - e.length;
|
|
159
226
|
z?.({
|
|
160
|
-
variant:
|
|
227
|
+
variant: D.Error,
|
|
161
228
|
reason: t.FilesDeletePartiallyFailed,
|
|
162
229
|
names: e,
|
|
163
230
|
restCount: n
|
|
@@ -165,118 +232,122 @@ var D = ({ filesApi: D, bucket: O, rootLabel: k, activeTab: A, folderPath: j, cu
|
|
|
165
232
|
}
|
|
166
233
|
} catch {
|
|
167
234
|
z?.({
|
|
168
|
-
variant:
|
|
235
|
+
variant: D.Error,
|
|
169
236
|
reason: t.DeleteFailed
|
|
170
237
|
});
|
|
171
238
|
}
|
|
172
|
-
|
|
173
|
-
if (e.nodeType ===
|
|
239
|
+
I([...new Set(i.map((e) => {
|
|
240
|
+
if (e.nodeType === E.Folder) return e.path.endsWith("/") ? e.path : `${e.path}/`;
|
|
174
241
|
let t = e.path.lastIndexOf("/");
|
|
175
242
|
return t > 0 ? e.path.slice(0, t + 1) : "";
|
|
176
243
|
}))]);
|
|
177
|
-
let a = r.filter((e) =>
|
|
178
|
-
a != null && R(
|
|
244
|
+
let a = r.filter((e) => N.startsWith(e)).reduce((e, t) => e == null || t.length < e.length ? t : e, void 0);
|
|
245
|
+
a != null && R(S(a)), L(), ge(!1);
|
|
179
246
|
})();
|
|
180
247
|
}, [
|
|
248
|
+
M,
|
|
181
249
|
A,
|
|
182
|
-
O,
|
|
183
|
-
k,
|
|
184
250
|
j,
|
|
185
|
-
z,
|
|
186
|
-
D,
|
|
187
251
|
N,
|
|
252
|
+
z,
|
|
253
|
+
k,
|
|
188
254
|
F,
|
|
189
255
|
I,
|
|
256
|
+
L,
|
|
190
257
|
R
|
|
191
|
-
]),
|
|
258
|
+
]), Oe = C((t, r) => {
|
|
192
259
|
if (!t || t.trim() === "") return { reason: n.Empty };
|
|
193
|
-
let a = r.nodeType ===
|
|
260
|
+
let a = r.nodeType === O.ITEM ? e(r.name).extension : "";
|
|
194
261
|
if (t === i || a !== "" && t === `${i}${a}`) return { reason: n.ReservedName };
|
|
195
262
|
if (s(t, H)) return {
|
|
196
263
|
reason: n.ForbiddenSymbols,
|
|
197
|
-
symbols:
|
|
264
|
+
symbols: se
|
|
198
265
|
};
|
|
199
266
|
if (t.length > 255) return {
|
|
200
267
|
reason: n.TooLong,
|
|
201
268
|
maxLength: 255
|
|
202
269
|
};
|
|
203
|
-
let o =
|
|
270
|
+
let o = P?.items ?? [], c = t.toLowerCase(), l = o.find((e) => e.path !== r.path && e.name.toLowerCase() === c);
|
|
204
271
|
return l ? {
|
|
205
272
|
reason: n.DuplicateName,
|
|
206
273
|
existingName: l.name
|
|
207
274
|
} : null;
|
|
208
|
-
}, [H,
|
|
209
|
-
if (e.length === 0 || J ||
|
|
275
|
+
}, [H, P]), ke = C((e, n) => {
|
|
276
|
+
if (e.length === 0 || J || Y) return;
|
|
210
277
|
let i = new AbortController();
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
let o = f(e,
|
|
278
|
+
X.current = i, (async () => {
|
|
279
|
+
ve(!0);
|
|
280
|
+
let o = f(e, A, j), s = o.map(({ dto: e }) => e);
|
|
214
281
|
try {
|
|
215
|
-
let { results: e } = await
|
|
282
|
+
let { results: e } = await k.copyFiles(s, i.signal), c = e.filter((e) => !e.success).length, l = e.length - c;
|
|
216
283
|
if (l > 0) {
|
|
217
|
-
let t = m(o, e), i = s.every((e) =>
|
|
284
|
+
let t = m(o, e), i = s.every((e) => S(e.sourcePath) === S(e.destinationPath)), c;
|
|
218
285
|
c = i ? l === 1 ? r.FileDuplicated : r.FilesDuplicated : l === 1 ? r.FileCopied : r.FilesCopied, B?.({
|
|
219
286
|
kind: c,
|
|
220
287
|
name: t?.destinationName,
|
|
221
288
|
count: l,
|
|
222
|
-
isFolder: t?.dto.nodeType ===
|
|
223
|
-
destinationFolderName: a(n,
|
|
289
|
+
isFolder: t?.dto.nodeType === ie.Folder,
|
|
290
|
+
destinationFolderName: a(n, j)
|
|
224
291
|
});
|
|
225
292
|
}
|
|
226
293
|
c > 0 && c < e.length ? z?.({
|
|
227
|
-
variant:
|
|
294
|
+
variant: D.Error,
|
|
228
295
|
reason: t.CopyPartiallyFailed,
|
|
229
296
|
count: c
|
|
230
297
|
}) : c === e.length && z?.({
|
|
231
|
-
variant:
|
|
298
|
+
variant: D.Error,
|
|
232
299
|
reason: t.CopyFailed
|
|
233
300
|
});
|
|
234
301
|
} catch {
|
|
235
302
|
i.signal.aborted || z?.({
|
|
236
|
-
variant:
|
|
303
|
+
variant: D.Error,
|
|
237
304
|
reason: t.CopyFailed
|
|
238
305
|
});
|
|
239
306
|
} finally {
|
|
240
|
-
|
|
307
|
+
I([...new Set(s.flatMap((e) => [S(e.sourcePath), S(e.destinationPath)]))]), L(), ve(!1), X.current = null;
|
|
241
308
|
}
|
|
242
309
|
})();
|
|
243
310
|
}, [
|
|
244
|
-
|
|
245
|
-
|
|
311
|
+
A,
|
|
312
|
+
j,
|
|
246
313
|
z,
|
|
247
314
|
B,
|
|
248
|
-
|
|
315
|
+
k,
|
|
249
316
|
J,
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
]),
|
|
254
|
-
|
|
317
|
+
Y,
|
|
318
|
+
I,
|
|
319
|
+
L
|
|
320
|
+
]), Ae = C(() => {
|
|
321
|
+
X.current?.abort();
|
|
255
322
|
}, []);
|
|
256
323
|
return {
|
|
257
|
-
isCreatingFolder:
|
|
258
|
-
isDownloading:
|
|
259
|
-
isDeleting:
|
|
260
|
-
isRenaming:
|
|
324
|
+
isCreatingFolder: fe,
|
|
325
|
+
isDownloading: Ee,
|
|
326
|
+
isDeleting: he,
|
|
327
|
+
isRenaming: q,
|
|
261
328
|
isCopying: J,
|
|
262
|
-
isMoving:
|
|
263
|
-
onCreateFolder:
|
|
264
|
-
onCreateFolderValidate:
|
|
265
|
-
onDownloadFiles:
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
329
|
+
isMoving: Y,
|
|
330
|
+
onCreateFolder: be,
|
|
331
|
+
onCreateFolderValidate: Q,
|
|
332
|
+
onDownloadFiles: Se,
|
|
333
|
+
downloadBatchState: me,
|
|
334
|
+
cancelDownloadFile: Ce,
|
|
335
|
+
cancelAllDownloads: we,
|
|
336
|
+
clearDownloadBatch: Te,
|
|
337
|
+
onDeleteFiles: De,
|
|
338
|
+
onRenameValidate: Oe,
|
|
339
|
+
onMoveToFiles: C((e, n, i) => {
|
|
340
|
+
if (e.length === 0 || J || Y || q) return;
|
|
341
|
+
let { renameDtos: s, preparedMoveItems: c } = p(e, A, j), l = c.map(({ dto: e }) => e), u = new AbortController();
|
|
342
|
+
l.length > 0 && (X.current = u), (async () => {
|
|
343
|
+
s.length > 0 && _e(!0), l.length > 0 && ye(!0);
|
|
273
344
|
let [e, n] = await Promise.all([(async () => {
|
|
274
345
|
if (s.length === 0) return {
|
|
275
346
|
results: [],
|
|
276
347
|
threw: !1
|
|
277
348
|
};
|
|
278
349
|
try {
|
|
279
|
-
let { results: e } = await
|
|
350
|
+
let { results: e } = await k.renameFiles(s);
|
|
280
351
|
return {
|
|
281
352
|
results: e,
|
|
282
353
|
threw: !1
|
|
@@ -294,7 +365,7 @@ var D = ({ filesApi: D, bucket: O, rootLabel: k, activeTab: A, folderPath: j, cu
|
|
|
294
365
|
aborted: !1
|
|
295
366
|
};
|
|
296
367
|
try {
|
|
297
|
-
let { results: e } = await
|
|
368
|
+
let { results: e } = await k.moveFiles(l, u.signal);
|
|
298
369
|
return {
|
|
299
370
|
results: e,
|
|
300
371
|
threw: !1,
|
|
@@ -307,15 +378,15 @@ var D = ({ filesApi: D, bucket: O, rootLabel: k, activeTab: A, folderPath: j, cu
|
|
|
307
378
|
aborted: u.signal.aborted
|
|
308
379
|
};
|
|
309
380
|
}
|
|
310
|
-
})()]), d = e.threw ? s.length : e.results.filter((e) => !e.success).length, f = n.threw && n.aborted, p = f ? 0 : l.length, h = f ? 0 : n.threw ? l.length : n.results.filter((e) => !e.success).length,
|
|
311
|
-
if (
|
|
381
|
+
})()]), d = e.threw ? s.length : e.results.filter((e) => !e.success).length, f = n.threw && n.aborted, p = f ? 0 : l.length, h = f ? 0 : n.threw ? l.length : n.results.filter((e) => !e.success).length, g = n.threw ? 0 : n.results.filter((e) => e.success).length, _ = s.length + p, v = d + h, y = h > 0;
|
|
382
|
+
if (g > 0) {
|
|
312
383
|
let e = m(c, n.results);
|
|
313
384
|
B?.({
|
|
314
|
-
kind:
|
|
385
|
+
kind: g === 1 ? r.FileMoved : r.FilesMoved,
|
|
315
386
|
name: e?.destinationName,
|
|
316
|
-
count:
|
|
317
|
-
isFolder: e?.dto.nodeType ===
|
|
318
|
-
destinationFolderName: a(i,
|
|
387
|
+
count: g,
|
|
388
|
+
isFolder: e?.dto.nodeType === ae.Folder,
|
|
389
|
+
destinationFolderName: a(i, j)
|
|
319
390
|
});
|
|
320
391
|
}
|
|
321
392
|
if (s.length === 1 && d === 0) {
|
|
@@ -323,44 +394,44 @@ var D = ({ filesApi: D, bucket: O, rootLabel: k, activeTab: A, folderPath: j, cu
|
|
|
323
394
|
B?.({
|
|
324
395
|
kind: r.FileRenamed,
|
|
325
396
|
name: o(e.destinationPath, e.destinationPath),
|
|
326
|
-
isFolder: e.nodeType ===
|
|
397
|
+
isFolder: e.nodeType === oe.Folder
|
|
327
398
|
});
|
|
328
399
|
}
|
|
329
|
-
|
|
330
|
-
variant:
|
|
331
|
-
reason:
|
|
400
|
+
v > 0 && (v === _ ? z?.({
|
|
401
|
+
variant: D.Error,
|
|
402
|
+
reason: y ? t.MoveFailed : t.RenameFailed
|
|
332
403
|
}) : z?.({
|
|
333
|
-
variant:
|
|
334
|
-
reason:
|
|
335
|
-
count:
|
|
404
|
+
variant: D.Error,
|
|
405
|
+
reason: y ? t.MovePartiallyFailed : t.RenamePartiallyFailed,
|
|
406
|
+
count: v
|
|
336
407
|
}));
|
|
337
|
-
let
|
|
338
|
-
if (
|
|
339
|
-
let e =
|
|
340
|
-
if (
|
|
341
|
-
let t =
|
|
342
|
-
R(
|
|
408
|
+
let b = s.find((t) => t.nodeType === oe.Folder && e.results.some((e) => e.success && e.sourcePath === t.sourcePath));
|
|
409
|
+
if (b != null) {
|
|
410
|
+
let e = b.sourcePath.endsWith("/") ? b.sourcePath : `${b.sourcePath}/`;
|
|
411
|
+
if (N === e || N.startsWith(e)) {
|
|
412
|
+
let t = b.destinationPath.endsWith("/") ? b.destinationPath : `${b.destinationPath}/`;
|
|
413
|
+
R(N.replace(e, t));
|
|
343
414
|
}
|
|
344
415
|
}
|
|
345
|
-
|
|
416
|
+
I([...new Set([...s, ...l].flatMap((e) => [S(e.sourcePath), S(e.destinationPath)]))]), L(), _e(!1), ye(!1), l.length > 0 && (X.current = null);
|
|
346
417
|
})();
|
|
347
418
|
}, [
|
|
348
|
-
|
|
349
|
-
k,
|
|
419
|
+
A,
|
|
350
420
|
j,
|
|
421
|
+
N,
|
|
351
422
|
B,
|
|
352
423
|
z,
|
|
353
|
-
|
|
424
|
+
k,
|
|
354
425
|
J,
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
F,
|
|
426
|
+
Y,
|
|
427
|
+
q,
|
|
358
428
|
I,
|
|
429
|
+
L,
|
|
359
430
|
R
|
|
360
431
|
]),
|
|
361
|
-
onCopyFiles:
|
|
362
|
-
cancelCopyMove:
|
|
432
|
+
onCopyFiles: ke,
|
|
433
|
+
cancelCopyMove: Ae
|
|
363
434
|
};
|
|
364
435
|
};
|
|
365
436
|
//#endregion
|
|
366
|
-
export {
|
|
437
|
+
export { A as useDialFileMutations };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { DialFile } from '@epam/ai-dial-react-file-manager';
|
|
2
|
+
import { FileManagerNotification, FileOperationSuccessEvent } from '../dial-file-manager.types';
|
|
3
|
+
import { DialFilesApi } from '../dial-files-api';
|
|
4
|
+
/** Options accepted by `useDialFileSharing`. */
|
|
5
|
+
export interface UseDialFileSharingOptions {
|
|
6
|
+
/** Injected operation port used for every sharing network call. */
|
|
7
|
+
filesApi: DialFilesApi;
|
|
8
|
+
/** DIAL Core bucket to browse (used only for the my_files tab). */
|
|
9
|
+
bucket: string;
|
|
10
|
+
/** Display name for the root folder node. */
|
|
11
|
+
rootLabel: string;
|
|
12
|
+
/** Forces `useDialFileListing`'s fetch effect to re-run after a mutation settles. */
|
|
13
|
+
bumpRetry: () => void;
|
|
14
|
+
/** Called when a sharing mutation fails and should surface a toast notification. */
|
|
15
|
+
onNotification?: (notification: FileManagerNotification) => void;
|
|
16
|
+
/** Called with a structured event once an unshare succeeds, so the host can show its success toast. */
|
|
17
|
+
onOperationSuccess?: (event: FileOperationSuccessEvent) => void;
|
|
18
|
+
/** Removes the unshared root rows from the cached Shared listing ahead of the refetch. */
|
|
19
|
+
removeSharedRootItems?: (names: string[]) => void;
|
|
20
|
+
}
|
|
21
|
+
/** Values returned by `useDialFileSharing`. */
|
|
22
|
+
export interface UseDialFileSharingResult {
|
|
23
|
+
isUnsharing: boolean;
|
|
24
|
+
isRemovingAccess: boolean;
|
|
25
|
+
onUnshareFiles: (files: DialFile[]) => void;
|
|
26
|
+
onRemoveFilesAccess: (files: DialFile[]) => void;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Manages the unshare/remove-access mutations. Bumps `useDialFileListing`'s
|
|
30
|
+
* shared retry counter after each mutation settles rather than holding its
|
|
31
|
+
* own cache copy.
|
|
32
|
+
*/
|
|
33
|
+
export declare const useDialFileSharing: ({ filesApi, bucket, rootLabel, bumpRetry, onNotification, onOperationSuccess, removeSharedRootItems, }: UseDialFileSharingOptions) => UseDialFileSharingResult;
|
|
34
|
+
//# sourceMappingURL=useDialFileSharing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDialFileSharing.d.ts","sourceRoot":"","sources":["../../../src/files/useDialFileSharing/useDialFileSharing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAOjE,OAAO,KAAK,EACV,uBAAuB,EACvB,yBAAyB,EAC1B,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGtD,gDAAgD;AAChD,MAAM,WAAW,yBAAyB;IACxC,mEAAmE;IACnE,QAAQ,EAAE,YAAY,CAAC;IACvB,mEAAmE;IACnE,MAAM,EAAE,MAAM,CAAC;IACf,6CAA6C;IAC7C,SAAS,EAAE,MAAM,CAAC;IAClB,qFAAqF;IACrF,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,oFAAoF;IACpF,cAAc,CAAC,EAAE,CAAC,YAAY,EAAE,uBAAuB,KAAK,IAAI,CAAC;IACjE,uGAAuG;IACvG,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC;IAChE,0FAA0F;IAC1F,qBAAqB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;CACnD;AAED,+CAA+C;AAC/C,MAAM,WAAW,wBAAwB;IACvC,WAAW,EAAE,OAAO,CAAC;IACrB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,cAAc,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,IAAI,CAAC;IAC5C,mBAAmB,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,IAAI,CAAC;CAClD;AAED;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAAI,wGAQhC,yBAAyB,KAAG,wBAsF9B,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { ListFilesItemDto } from '@epam/ai-dial-chat-api-client';
|
|
2
|
+
import { FileUploadBatchState, FileUploadValidationResult } from '@epam/ai-dial-chat-shared';
|
|
3
|
+
import { DialFile, DialUploadFileItem, DialFileManagerTabs } from '@epam/ai-dial-react-file-manager';
|
|
4
|
+
import { SharedRootMeta } from '../dial-file-manager.model';
|
|
5
|
+
import { FileManagerNotification } from '../dial-file-manager.types';
|
|
6
|
+
import { DialFilesApi } from '../dial-files-api';
|
|
7
|
+
/** Options accepted by `useDialFileUploadBatch`. */
|
|
8
|
+
export interface UseDialFileUploadBatchOptions {
|
|
9
|
+
/** Injected operation port used for every upload network call. */
|
|
10
|
+
filesApi: DialFilesApi;
|
|
11
|
+
/** DIAL Core bucket to browse (used only for the my_files tab). */
|
|
12
|
+
bucket: string;
|
|
13
|
+
/** Display name for the root folder node. */
|
|
14
|
+
rootLabel: string;
|
|
15
|
+
/** Active tab — drives owner-bucket resolution for the Shared tab. */
|
|
16
|
+
activeTab: DialFileManagerTabs;
|
|
17
|
+
/** Read-only snapshot of `useDialFileListing`'s cache, used to decide overwrite vs. create-only upload mode. */
|
|
18
|
+
cache: Map<string, ListFilesItemDto[]>;
|
|
19
|
+
/** Owner-bucket resolution metadata for the Shared tab, owned by `useDialFileListing`. */
|
|
20
|
+
sharedRootMetaRef: React.RefObject<Map<string, SharedRootMeta>>;
|
|
21
|
+
/** Deletes the given API-path cache keys so the next fetch re-fetches them. */
|
|
22
|
+
invalidateFolders: (apiPaths: string[]) => void;
|
|
23
|
+
/** Forces `useDialFileListing`'s fetch effect to re-run. */
|
|
24
|
+
bumpRetry: () => void;
|
|
25
|
+
/** Called when an upload batch fails or completes and should surface a toast notification. */
|
|
26
|
+
onNotification?: (notification: FileManagerNotification) => void;
|
|
27
|
+
}
|
|
28
|
+
/** Values returned by `useDialFileUploadBatch`. */
|
|
29
|
+
export interface UseDialFileUploadBatchResult {
|
|
30
|
+
onUploadFiles: (files: DialUploadFileItem[], destinationFolder: string) => void;
|
|
31
|
+
onUploadArchive: (file: File, name: string, destinationFolder: string) => void;
|
|
32
|
+
onValidateUpload: (files: DialUploadFileItem[], existingFiles: DialFile[], destinationFolder: string) => Promise<FileUploadValidationResult>;
|
|
33
|
+
uploadBatchState: FileUploadBatchState | null;
|
|
34
|
+
cancelUpload: () => void;
|
|
35
|
+
cancelUploadFile: (id: string) => void;
|
|
36
|
+
clearUploadBatch: () => void;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Manages upload batches (single-file and ZIP-archive extraction), including
|
|
40
|
+
* concurrency-limited progress tracking and per-file abort. A batch started
|
|
41
|
+
* while another is on screen is appended to it, and settled entries stay in
|
|
42
|
+
* `uploadBatchState` until `clearUploadBatch`. Invalidates the shared listing
|
|
43
|
+
* cache for the destination folder through `invalidateFolders`/`bumpRetry`
|
|
44
|
+
* after a batch settles — it never holds its own copy of the cache.
|
|
45
|
+
*/
|
|
46
|
+
export declare const useDialFileUploadBatch: ({ filesApi, bucket, rootLabel, activeTab, cache, sharedRootMetaRef, invalidateFolders, bumpRetry, onNotification, }: UseDialFileUploadBatchOptions) => UseDialFileUploadBatchResult;
|
|
47
|
+
//# sourceMappingURL=useDialFileUploadBatch.d.ts.map
|