@epam/ai-dial-chat-hooks 1.3.0-dev.5 → 1.3.0-dev.55
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-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/attachment/useAttachmentAction/useAttachmentAction.d.ts +32 -0
- package/attachment/useAttachmentAction/useAttachmentAction.d.ts.map +1 -0
- 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-primary-action.d.ts +47 -0
- package/catalog/catalog-primary-action.d.ts.map +1 -0
- package/catalog/create-publish-api.d.ts +32 -0
- package/catalog/create-publish-api.d.ts.map +1 -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 +28 -0
- package/catalog/map-deployment-limits-to-input.d.ts.map +1 -0
- 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-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/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 +100 -0
- package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.d.ts.map +1 -0
- package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.js +139 -122
- 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/usePublishFolders/usePublishFolders.d.ts +73 -0
- package/catalog/usePublishFolders/usePublishFolders.d.ts.map +1 -0
- 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.d.ts +2 -1433
- package/conversation/announcement-message.d.ts +61 -0
- package/conversation/announcement-message.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 +42 -0
- package/conversation/conversation-transfer/attachment-refs.d.ts.map +1 -0
- 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 +10 -0
- package/conversation/conversation-transfer/export-conversation.d.ts.map +1 -0
- package/conversation/conversation-transfer/import-conversation.d.ts +106 -0
- package/conversation/conversation-transfer/import-conversation.d.ts.map +1 -0
- package/conversation/conversation-transfer/progress.d.ts +60 -0
- package/conversation/conversation-transfer/progress.d.ts.map +1 -0
- 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-import.d.ts +17 -0
- package/conversation/conversation-transfer/zip-import.d.ts.map +1 -0
- package/conversation/create-chat-stream-api.d.ts +92 -0
- package/conversation/create-chat-stream-api.d.ts.map +1 -0
- 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/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/useConversationExport/useConversationExport.d.ts +72 -0
- package/conversation/useConversationExport/useConversationExport.d.ts.map +1 -0
- 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/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/useConversationImport/useConversationImport.d.ts +54 -0
- package/conversation/useConversationImport/useConversationImport.d.ts.map +1 -0
- package/conversation/useConversationLookupMaps/useConversationLookupMaps.d.ts +24 -0
- package/conversation/useConversationLookupMaps/useConversationLookupMaps.d.ts.map +1 -0
- package/conversation/useConversationPanelItems/useConversationPanelItems.d.ts +64 -0
- package/conversation/useConversationPanelItems/useConversationPanelItems.d.ts.map +1 -0
- package/conversation/useConversationScroll/useConversationScroll.d.ts +46 -0
- package/conversation/useConversationScroll/useConversationScroll.d.ts.map +1 -0
- 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/frame-scheduler.d.ts +14 -0
- package/conversation/useConversationStream/frame-scheduler.d.ts.map +1 -0
- package/conversation/useConversationStream/generation-resume.d.ts +85 -0
- package/conversation/useConversationStream/generation-resume.d.ts.map +1 -0
- package/conversation/useConversationStream/useConversationStream.d.ts +145 -0
- package/conversation/useConversationStream/useConversationStream.d.ts.map +1 -0
- 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/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-overlay.d.ts +2 -7
- 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-transfer.d.ts +2 -190
- package/conversation.d.ts +2 -1372
- 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 +33 -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/scheduled-tasks.d.ts +8 -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.d.ts +2 -1237
- package/file-manager.js +25 -25
- 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/create-files-api.d.ts +52 -0
- package/files/create-files-api.d.ts.map +1 -0
- package/files/create-upload-file-with-progress.d.ts +24 -0
- package/files/create-upload-file-with-progress.d.ts.map +1 -0
- 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 +35 -0
- package/files/dial-file-manager-mapping.util.d.ts.map +1 -0
- 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.model.js +7 -3
- package/files/dial-file-manager.types.d.ts +327 -0
- package/files/dial-file-manager.types.d.ts.map +1 -0
- package/files/dial-file-manager.types.js +1 -1
- 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.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/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/useDialFileListing/useDialFileListing.d.ts +82 -0
- package/files/useDialFileListing/useDialFileListing.d.ts.map +1 -0
- package/files/useDialFileListing/useDialFileListing.js +24 -14
- package/files/useDialFileManager/useDialFileManager.d.ts +16 -0
- package/files/useDialFileManager/useDialFileManager.d.ts.map +1 -0
- package/files/useDialFileManager/useDialFileManager.js +148 -140
- package/files/useDialFileManagerSections/useDialFileManagerSections.d.ts +25 -0
- package/files/useDialFileManagerSections/useDialFileManagerSections.d.ts.map +1 -0
- package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.d.ts +15 -0
- package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.d.ts.map +1 -0
- package/files/useDialFileMetadata/useDialFileMetadata.d.ts +28 -0
- package/files/useDialFileMetadata/useDialFileMetadata.d.ts.map +1 -0
- package/files/useDialFileMutations/useDialFileMutations.d.ts +68 -0
- package/files/useDialFileMutations/useDialFileMutations.d.ts.map +1 -0
- package/files/useDialFileMutations/useDialFileMutations.js +206 -204
- package/files/useDialFileSharing/useDialFileSharing.d.ts +34 -0
- package/files/useDialFileSharing/useDialFileSharing.d.ts.map +1 -0
- package/files/useDialFileSharing/useDialFileSharing.js +45 -39
- package/files/useDialFileUploadBatch/useDialFileUploadBatch.d.ts +47 -0
- package/files/useDialFileUploadBatch/useDialFileUploadBatch.d.ts.map +1 -0
- package/files/useDialFileUploadBatch/useDialFileUploadBatch.js +8 -4
- package/files/useFileAttachmentPicker/useFileAttachmentPicker.d.ts +59 -0
- package/files/useFileAttachmentPicker/useFileAttachmentPicker.d.ts.map +1 -0
- package/index.d.ts +159 -6974
- package/index.d.ts.map +1 -0
- package/index.js +124 -117
- 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/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/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/handshake.d.ts +30 -0
- package/oauth/handshake.d.ts.map +1 -0
- 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/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/useToolsetLogin/useToolsetLogin.d.ts +79 -0
- package/oauth/useToolsetLogin/useToolsetLogin.d.ts.map +1 -0
- package/oauth.d.ts +2 -472
- package/package.json +26 -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/scheduled-task-description.d.ts +38 -0
- package/scheduled-task/scheduled-task-description.d.ts.map +1 -0
- 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-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 -67
- package/scheduled-task/use-scheduled-tasks.d.ts +28 -0
- package/scheduled-task/use-scheduled-tasks.d.ts.map +1 -0
- package/scheduled-tasks.d.ts +2 -250
- package/scroll-anchoring.d.ts +2 -50
- package/shared/application-schema.d.ts +18 -0
- package/shared/application-schema.d.ts.map +1 -0
- package/shared/application-schema.js +2 -2
- 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-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/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-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.d.ts +160 -0
- package/skill/skill.d.ts.map +1 -0
- package/skill/useSkillArchiveImport/useSkillArchiveImport.d.ts +65 -0
- package/skill/useSkillArchiveImport/useSkillArchiveImport.d.ts.map +1 -0
- 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/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/source-content.d.ts +2 -29
- 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 +23 -0
- package/usage/usage-banner-source.d.ts.map +1 -0
- package/usage/usage-banner-source.js +36 -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 +32 -0
- package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.d.ts.map +1 -0
- package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.js +39 -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 +56 -0
- package/usage/useUsageLimitBanner/useUsageLimitBanner.d.ts.map +1 -0
- package/usage/useUsageLimitBanner/useUsageLimitBanner.js +67 -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/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/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/utils.js +10 -10
- package/viewport-layout.d.ts +2 -27
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { CreateFolderResponseDto, ListFilesItemDto } from '@epam/ai-dial-chat-api-client';
|
|
2
|
+
import { DialFile, DialFileManagerTabs } from '@epam/ai-dial-react-file-manager';
|
|
3
|
+
import { SharedRootMeta } from '../dial-file-manager.model';
|
|
4
|
+
import { FileManagerNotification } from '../dial-file-manager.types';
|
|
5
|
+
import { DialFilesApi } from '../dial-files-api';
|
|
6
|
+
/** Options accepted by `useDialFileListing`. */
|
|
7
|
+
export interface UseDialFileListingOptions {
|
|
8
|
+
/** Injected operation port used for every listing/search network call. */
|
|
9
|
+
filesApi: DialFilesApi;
|
|
10
|
+
/** DIAL Core bucket to browse (used only for the my_files tab). */
|
|
11
|
+
bucket: string;
|
|
12
|
+
/** Display name for the root folder node (e.g. `'My files'`). */
|
|
13
|
+
rootLabel: string;
|
|
14
|
+
/** Active tab — drives listing source and per-tab options. */
|
|
15
|
+
activeTab: DialFileManagerTabs;
|
|
16
|
+
/** Called with a structured event when a folder-load operation fails. */
|
|
17
|
+
onNotification?: (notification: FileManagerNotification) => void;
|
|
18
|
+
/** When false, the hook issues no `DialFilesApi` call and reports `isLoading: false`. Defaults to `true`. */
|
|
19
|
+
isActive?: boolean;
|
|
20
|
+
/** Changing this value resets cache and navigation exactly like an `activeTab` change. Defaults to `undefined`. */
|
|
21
|
+
sessionKey?: string;
|
|
22
|
+
}
|
|
23
|
+
/** Values returned by `useDialFileListing`. */
|
|
24
|
+
export interface UseDialFileListingResult {
|
|
25
|
+
items: DialFile[];
|
|
26
|
+
isLoading: boolean;
|
|
27
|
+
error: string | null;
|
|
28
|
+
path: string;
|
|
29
|
+
/** Bucket-relative path of the currently browsed folder (e.g. `"reports/"`, `""` for root). */
|
|
30
|
+
folderPath: string;
|
|
31
|
+
onPathChange: (nextPath?: string) => void;
|
|
32
|
+
retry: () => void;
|
|
33
|
+
onSearchFiles: (folder: string, query: string) => void;
|
|
34
|
+
isSearching: boolean;
|
|
35
|
+
searchResults: DialFile[] | null;
|
|
36
|
+
clearSearchResults: () => void;
|
|
37
|
+
expandedPaths: Set<string>;
|
|
38
|
+
loadedPaths: Set<string>;
|
|
39
|
+
onExpandedPathsChange: (paths: Set<string>) => void;
|
|
40
|
+
onFolderPopupPathChange: (nextPath?: string) => void;
|
|
41
|
+
folderPopupLoadingPaths: Set<string>;
|
|
42
|
+
sharedWithMeIds: string[] | undefined;
|
|
43
|
+
sharedByMePaths: Set<string>;
|
|
44
|
+
currentFolder: DialFile | undefined;
|
|
45
|
+
/** Read-only snapshot of the per-folder listing cache, for `useDialFileUploadBatch`'s overwrite-mode check. */
|
|
46
|
+
cache: Map<string, ListFilesItemDto[]>;
|
|
47
|
+
/** Read-only snapshot of per-folder permissions, for `useDialFileMutations`'s create-folder inherited permissions. */
|
|
48
|
+
listingPermissionsCache: Map<string, string[] | undefined>;
|
|
49
|
+
/** Owner-bucket resolution metadata for the Shared tab, populated by the root listing fetch. */
|
|
50
|
+
sharedRootMetaRef: React.RefObject<Map<string, SharedRootMeta>>;
|
|
51
|
+
/** Imperatively navigates the current folder — used by mutations after a rename/delete of the browsed folder. */
|
|
52
|
+
setFolderPath: React.Dispatch<React.SetStateAction<string>>;
|
|
53
|
+
/**
|
|
54
|
+
* Deletes the given API-path cache keys so the next listing fetch/expand for
|
|
55
|
+
* that folder re-fetches from the server. The only way sibling sub-hooks may
|
|
56
|
+
* invalidate the shared cache (`openspec/changes/archive/2026-07-21-split-use-dial-file-manager/design.md` D1).
|
|
57
|
+
*/
|
|
58
|
+
invalidateFolders: (apiPaths: string[]) => void;
|
|
59
|
+
/** Merges a just-created folder into its parent's cache entry (optimistic display for create-folder). */
|
|
60
|
+
mergeCreatedFolder: (parentApiPath: string, created: CreateFolderResponseDto, inheritedPermissions?: string[]) => void;
|
|
61
|
+
/** Forces the listing effect to re-fetch the currently browsed folder. */
|
|
62
|
+
bumpRetry: () => void;
|
|
63
|
+
/**
|
|
64
|
+
* Drops the named root rows from the Shared tab's cached listing, so an
|
|
65
|
+
* unshared item disappears at once instead of waiting for the refetch.
|
|
66
|
+
*/
|
|
67
|
+
removeSharedRootItems: (names: string[]) => void;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Manages DIAL file-storage browsing state: folder listing/navigation, the
|
|
71
|
+
* tree's expand/collapse state, search, and the shared per-folder cache that
|
|
72
|
+
* `useDialFileUploadBatch`/`useDialFileMutations`/`useDialFileSharing` invalidate
|
|
73
|
+
* through `invalidateFolders`/`bumpRetry` after their own mutations settle
|
|
74
|
+
* (`openspec/changes/archive/2026-07-21-split-use-dial-file-manager/design.md` D1) — this hook is the sole owner/writer of that cache.
|
|
75
|
+
*
|
|
76
|
+
* Supports three listing sources via `activeTab`:
|
|
77
|
+
* - my_files: user's own bucket via `DialFilesApi.listFiles`
|
|
78
|
+
* - shared: files shared with the user via `DialFilesApi.listSharedFiles`
|
|
79
|
+
* - organization: public bucket via `DialFilesApi.listPublicFiles`
|
|
80
|
+
*/
|
|
81
|
+
export declare const useDialFileListing: ({ filesApi, bucket, rootLabel, activeTab, onNotification, isActive, sessionKey, }: UseDialFileListingOptions) => UseDialFileListingResult;
|
|
82
|
+
//# sourceMappingURL=useDialFileListing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDialFileListing.d.ts","sourceRoot":"","sources":["../../../src/files/useDialFileListing/useDialFileListing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,gBAAgB,EACjB,MAAM,+BAA+B,CAAC;AAGvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EACL,mBAAmB,EAEpB,MAAM,kCAAkC,CAAC;AAkB1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGtD,gDAAgD;AAChD,MAAM,WAAW,yBAAyB;IACxC,0EAA0E;IAC1E,QAAQ,EAAE,YAAY,CAAC;IACvB,mEAAmE;IACnE,MAAM,EAAE,MAAM,CAAC;IACf,iEAAiE;IACjE,SAAS,EAAE,MAAM,CAAC;IAClB,8DAA8D;IAC9D,SAAS,EAAE,mBAAmB,CAAC;IAC/B,yEAAyE;IACzE,cAAc,CAAC,EAAE,CAAC,YAAY,EAAE,uBAAuB,KAAK,IAAI,CAAC;IACjE,6GAA6G;IAC7G,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mHAAmH;IACnH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,+CAA+C;AAC/C,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,+FAA+F;IAC/F,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,aAAa,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvD,WAAW,EAAE,OAAO,CAAC;IACrB,aAAa,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC;IACjC,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC3B,WAAW,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACzB,qBAAqB,EAAE,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;IACpD,uBAAuB,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACrD,uBAAuB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACrC,eAAe,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IACtC,eAAe,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC7B,aAAa,EAAE,QAAQ,GAAG,SAAS,CAAC;IACpC,+GAA+G;IAC/G,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,gBAAgB,EAAE,CAAC,CAAC;IACvC,sHAAsH;IACtH,uBAAuB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC,CAAC;IAC3D,gGAAgG;IAChG,iBAAiB,EAAE,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC;IAChE,iHAAiH;IACjH,aAAa,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IAC5D;;;;OAIG;IACH,iBAAiB,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAChD,yGAAyG;IACzG,kBAAkB,EAAE,CAClB,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,uBAAuB,EAChC,oBAAoB,CAAC,EAAE,MAAM,EAAE,KAC5B,IAAI,CAAC;IACV,0EAA0E;IAC1E,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB;;;OAGG;IACH,qBAAqB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;CAClD;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,kBAAkB,GAAI,mFAQhC,yBAAyB,KAAG,wBA4qB9B,CAAC"}
|
|
@@ -27,11 +27,11 @@ var _ = ({ filesApi: _, bucket: v, rootLabel: y, activeTab: b, onNotification: x
|
|
|
27
27
|
return;
|
|
28
28
|
}
|
|
29
29
|
let t = !1;
|
|
30
|
-
return A(!0), j(null), s(_, b, v, C, L.current).then(({ items: e, permissions:
|
|
30
|
+
return A(!0), j(null), s(_, b, v, C, L.current).then(({ items: e, permissions: n }) => {
|
|
31
31
|
t || (E((t) => {
|
|
32
32
|
let n = new Map(t);
|
|
33
33
|
return n.set(C, e), n;
|
|
34
|
-
}), k((e) => new Map(e).set(C,
|
|
34
|
+
}), k((e) => new Map(e).set(C, n)), b === g.Shared && C === "" && (F(e.map((e) => e.nodeType === m.Folder ? `/${y}/${e.name}/` : `/${y}/${e.name}`)), L.current = new Map(e.map((e) => [e.name, {
|
|
35
35
|
bucket: e.bucket ?? "",
|
|
36
36
|
dialCorePath: e.path
|
|
37
37
|
}]))));
|
|
@@ -144,6 +144,15 @@ var _ = ({ filesApi: _, bucket: v, rootLabel: y, activeTab: b, onNotification: x
|
|
|
144
144
|
]), ve = l((e, t, n) => {
|
|
145
145
|
E((r) => re(r, e, t, n));
|
|
146
146
|
}, []), ye = l((e) => {
|
|
147
|
+
if (e.length === 0) return;
|
|
148
|
+
let t = new Set(e);
|
|
149
|
+
E((e) => {
|
|
150
|
+
let n = e.get("");
|
|
151
|
+
if (n == null) return e;
|
|
152
|
+
let r = new Map(e);
|
|
153
|
+
return r.set("", n.filter((e) => !t.has(e.name))), r;
|
|
154
|
+
}), F((t) => t?.filter((t) => !e.some((e) => t === `/${y}/${e}`)));
|
|
155
|
+
}, [y]), be = l((e) => {
|
|
147
156
|
if (!S) return;
|
|
148
157
|
let n = e == null ? "" : o(e, y), r = e ?? `/${y}`;
|
|
149
158
|
if (J((e) => {
|
|
@@ -185,7 +194,7 @@ var _ = ({ filesApi: _, bucket: v, rootLabel: y, activeTab: b, onNotification: x
|
|
|
185
194
|
S,
|
|
186
195
|
x,
|
|
187
196
|
y
|
|
188
|
-
]),
|
|
197
|
+
]), xe = d(() => {
|
|
189
198
|
let e = /* @__PURE__ */ new Set(), t = new Set([...W, ...q]);
|
|
190
199
|
for (let n of t) {
|
|
191
200
|
let t = o(n, y);
|
|
@@ -197,7 +206,7 @@ var _ = ({ filesApi: _, bucket: v, rootLabel: y, activeTab: b, onNotification: x
|
|
|
197
206
|
q,
|
|
198
207
|
T,
|
|
199
208
|
y
|
|
200
|
-
]),
|
|
209
|
+
]), Se = l((e) => {
|
|
201
210
|
S && (W.forEach((t) => {
|
|
202
211
|
e.has(t) || U.current.delete(o(t, y));
|
|
203
212
|
}), G(e), [...e].filter((e) => {
|
|
@@ -230,9 +239,9 @@ var _ = ({ filesApi: _, bucket: v, rootLabel: y, activeTab: b, onNotification: x
|
|
|
230
239
|
S,
|
|
231
240
|
x,
|
|
232
241
|
y
|
|
233
|
-
]),
|
|
242
|
+
]), Ce = l(() => {
|
|
234
243
|
B.current != null && (clearTimeout(B.current), B.current = null), V.current?.(), V.current = null, z(null), R(!1);
|
|
235
|
-
}, []),
|
|
244
|
+
}, []), we = l((e, t) => {
|
|
236
245
|
if (S) {
|
|
237
246
|
if (B.current != null && (clearTimeout(B.current), B.current = null), V.current?.(), V.current = null, !t.trim()) {
|
|
238
247
|
z(null), R(!1);
|
|
@@ -267,7 +276,7 @@ var _ = ({ filesApi: _, bucket: v, rootLabel: y, activeTab: b, onNotification: x
|
|
|
267
276
|
C,
|
|
268
277
|
S,
|
|
269
278
|
y
|
|
270
|
-
]), $ = C ? `/${y}/${C}` : `/${y}`,
|
|
279
|
+
]), $ = C ? `/${y}/${C}` : `/${y}`, Te = d(() => {
|
|
271
280
|
let e = Z[0];
|
|
272
281
|
if (e) return a($) === a(`/${y}`) ? e : i(e.items ?? [], $);
|
|
273
282
|
}, [
|
|
@@ -283,25 +292,26 @@ var _ = ({ filesApi: _, bucket: v, rootLabel: y, activeTab: b, onNotification: x
|
|
|
283
292
|
folderPath: C,
|
|
284
293
|
onPathChange: he,
|
|
285
294
|
retry: Q,
|
|
286
|
-
onSearchFiles:
|
|
295
|
+
onSearchFiles: we,
|
|
287
296
|
isSearching: fe,
|
|
288
297
|
searchResults: pe,
|
|
289
|
-
clearSearchResults:
|
|
298
|
+
clearSearchResults: Ce,
|
|
290
299
|
expandedPaths: W,
|
|
291
|
-
loadedPaths:
|
|
292
|
-
onExpandedPathsChange:
|
|
293
|
-
onFolderPopupPathChange:
|
|
300
|
+
loadedPaths: xe,
|
|
301
|
+
onExpandedPathsChange: Se,
|
|
302
|
+
onFolderPopupPathChange: be,
|
|
294
303
|
folderPopupLoadingPaths: me,
|
|
295
304
|
sharedWithMeIds: d(() => b === g.Shared ? P : void 0, [b, P]),
|
|
296
305
|
sharedByMePaths: de,
|
|
297
|
-
currentFolder:
|
|
306
|
+
currentFolder: Te,
|
|
298
307
|
cache: T,
|
|
299
308
|
listingPermissionsCache: O,
|
|
300
309
|
sharedRootMetaRef: L,
|
|
301
310
|
setFolderPath: w,
|
|
302
311
|
invalidateFolders: _e,
|
|
303
312
|
mergeCreatedFolder: ve,
|
|
304
|
-
bumpRetry: ge
|
|
313
|
+
bumpRetry: ge,
|
|
314
|
+
removeSharedRootItems: ye
|
|
305
315
|
};
|
|
306
316
|
};
|
|
307
317
|
//#endregion
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { UseDialFileManagerOptions, UseDialFileManagerResult } from '../dial-file-manager.types';
|
|
2
|
+
export type { UseDialFileManagerOptions, UseDialFileManagerResult, } from '../dial-file-manager.types';
|
|
3
|
+
/**
|
|
4
|
+
* Composes the five file-manager sub-hooks — listing/navigation, upload
|
|
5
|
+
* batches, CRUD mutations, sharing, and metadata — into the single flat
|
|
6
|
+
* result `DialFileManagerShell`/`DialFileManagerModal`/`DialFileManagerPage`
|
|
7
|
+
* consume. Cache ownership and cross-hook invalidation stay inside
|
|
8
|
+
* `useDialFileListing`; this composer only wires that hook's
|
|
9
|
+
* `invalidateFolders`/`bumpRetry` into its siblings and derives the handful
|
|
10
|
+
* of tab/actionProfile UI fields that read outputs from more than one
|
|
11
|
+
* sub-hook. Imports neither `react-i18next` nor any application context —
|
|
12
|
+
* every translated string reaches it through `labels`,
|
|
13
|
+
* `disabledNewButtonTooltip`, and `buildValidationErrorMessage`.
|
|
14
|
+
*/
|
|
15
|
+
export declare const useDialFileManager: ({ filesApi, bucket, rootLabel, activeTab, isActive, sessionKey, onNotification, onOperationSuccess, forbiddenSymbolsRegExp, variant, actionProfile, labels, locale, disabledNewButtonTooltip, downloadDestination, buildValidationErrorMessage, }: UseDialFileManagerOptions) => UseDialFileManagerResult;
|
|
16
|
+
//# sourceMappingURL=useDialFileManager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDialFileManager.d.ts","sourceRoot":"","sources":["../../../src/files/useDialFileManager/useDialFileManager.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EACV,yBAAyB,EACzB,wBAAwB,EACzB,MAAM,4BAA4B,CAAC;AAQpC,YAAY,EACV,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,4BAA4B,CAAC;AAEpC;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,kBAAkB,GAAI,mPAiBhC,yBAAyB,KAAG,wBAsN9B,CAAC"}
|
|
@@ -1,150 +1,158 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { hasDialFileWritePermission as
|
|
3
|
-
import { deriveActionProfile as
|
|
4
|
-
import { useDialFileListing as
|
|
5
|
-
import { useDialFileMetadata as
|
|
6
|
-
import { useDialFileMutations as
|
|
7
|
-
import { useDialFileSharing as
|
|
8
|
-
import { useDialFileUploadBatch as
|
|
9
|
-
import { DialFileManagerActionProfile as
|
|
10
|
-
import { useCallback as
|
|
11
|
-
import { DialFileManagerActions as
|
|
1
|
+
import { COLUMNS_MY_FILES as e, COLUMNS_ORGANIZATION as t, COLUMNS_SHARED as n, DATE_OPTIONS as r } from "../dial-file-manager.model.js";
|
|
2
|
+
import { hasDialFileWritePermission as i, isCopyMoveDuplicateAllowed as a, isShareActionsAllowed as o } from "../dial-file-manager-path.util.js";
|
|
3
|
+
import { deriveActionProfile as s } from "../file-manager-variant.js";
|
|
4
|
+
import { useDialFileListing as c } from "../useDialFileListing/useDialFileListing.js";
|
|
5
|
+
import { useDialFileMetadata as l } from "../useDialFileMetadata/useDialFileMetadata.js";
|
|
6
|
+
import { useDialFileMutations as u } from "../useDialFileMutations/useDialFileMutations.js";
|
|
7
|
+
import { useDialFileSharing as d } from "../useDialFileSharing/useDialFileSharing.js";
|
|
8
|
+
import { useDialFileUploadBatch as f } from "../useDialFileUploadBatch/useDialFileUploadBatch.js";
|
|
9
|
+
import { DialFileManagerActionProfile as p, DialFileManagerVariant as m, isUploadInProgress as h } from "@epam/ai-dial-chat-shared";
|
|
10
|
+
import { useCallback as g, useMemo as _ } from "react";
|
|
11
|
+
import { DialFileManagerActions as v, DialFileManagerTabs as y } from "@epam/ai-dial-react-file-manager";
|
|
12
12
|
//#region src/files/useDialFileManager/useDialFileManager.ts
|
|
13
|
-
var
|
|
14
|
-
let
|
|
15
|
-
filesApi:
|
|
16
|
-
bucket:
|
|
17
|
-
rootLabel:
|
|
18
|
-
activeTab:
|
|
19
|
-
onNotification:
|
|
20
|
-
isActive:
|
|
21
|
-
sessionKey:
|
|
22
|
-
}),
|
|
23
|
-
filesApi:
|
|
24
|
-
bucket:
|
|
25
|
-
rootLabel:
|
|
26
|
-
activeTab:
|
|
27
|
-
cache:
|
|
28
|
-
sharedRootMetaRef:
|
|
29
|
-
invalidateFolders:
|
|
30
|
-
bumpRetry:
|
|
31
|
-
onNotification:
|
|
32
|
-
}), R = l({
|
|
33
|
-
filesApi: y,
|
|
34
|
-
bucket: b,
|
|
35
|
-
rootLabel: x,
|
|
36
|
-
activeTab: S,
|
|
37
|
-
folderPath: I.folderPath,
|
|
38
|
-
currentFolder: I.currentFolder,
|
|
39
|
-
sharedRootMetaRef: I.sharedRootMetaRef,
|
|
40
|
-
listingPermissionsCache: I.listingPermissionsCache,
|
|
41
|
-
invalidateFolders: I.invalidateFolders,
|
|
42
|
-
bumpRetry: I.bumpRetry,
|
|
43
|
-
mergeCreatedFolder: I.mergeCreatedFolder,
|
|
44
|
-
setFolderPath: I.setFolderPath,
|
|
45
|
-
onNotification: T,
|
|
46
|
-
onOperationSuccess: E,
|
|
47
|
-
downloadDestination: N,
|
|
48
|
-
forbiddenSymbolsRegExp: D
|
|
13
|
+
var b = ({ filesApi: b, bucket: x, rootLabel: S = "My files", activeTab: C = y.MyFiles, isActive: w, sessionKey: T, onNotification: E, onOperationSuccess: D, forbiddenSymbolsRegExp: O, variant: k = m.Attach, actionProfile: A, labels: j, locale: M, disabledNewButtonTooltip: N, downloadDestination: P, buildValidationErrorMessage: F }) => {
|
|
14
|
+
let I = A ?? s(k), L = c({
|
|
15
|
+
filesApi: b,
|
|
16
|
+
bucket: x,
|
|
17
|
+
rootLabel: S,
|
|
18
|
+
activeTab: C,
|
|
19
|
+
onNotification: E,
|
|
20
|
+
isActive: w,
|
|
21
|
+
sessionKey: T
|
|
22
|
+
}), R = f({
|
|
23
|
+
filesApi: b,
|
|
24
|
+
bucket: x,
|
|
25
|
+
rootLabel: S,
|
|
26
|
+
activeTab: C,
|
|
27
|
+
cache: L.cache,
|
|
28
|
+
sharedRootMetaRef: L.sharedRootMetaRef,
|
|
29
|
+
invalidateFolders: L.invalidateFolders,
|
|
30
|
+
bumpRetry: L.bumpRetry,
|
|
31
|
+
onNotification: E
|
|
49
32
|
}), z = u({
|
|
50
|
-
filesApi:
|
|
51
|
-
bucket:
|
|
52
|
-
rootLabel:
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
33
|
+
filesApi: b,
|
|
34
|
+
bucket: x,
|
|
35
|
+
rootLabel: S,
|
|
36
|
+
activeTab: C,
|
|
37
|
+
folderPath: L.folderPath,
|
|
38
|
+
currentFolder: L.currentFolder,
|
|
39
|
+
sharedRootMetaRef: L.sharedRootMetaRef,
|
|
40
|
+
listingPermissionsCache: L.listingPermissionsCache,
|
|
41
|
+
invalidateFolders: L.invalidateFolders,
|
|
42
|
+
bumpRetry: L.bumpRetry,
|
|
43
|
+
mergeCreatedFolder: L.mergeCreatedFolder,
|
|
44
|
+
setFolderPath: L.setFolderPath,
|
|
45
|
+
onNotification: E,
|
|
46
|
+
onOperationSuccess: D,
|
|
47
|
+
downloadDestination: P,
|
|
48
|
+
forbiddenSymbolsRegExp: O
|
|
49
|
+
}), B = d({
|
|
50
|
+
filesApi: b,
|
|
51
|
+
bucket: x,
|
|
52
|
+
rootLabel: S,
|
|
53
|
+
bumpRetry: L.bumpRetry,
|
|
54
|
+
onNotification: E,
|
|
55
|
+
onOperationSuccess: D,
|
|
56
|
+
removeSharedRootItems: L.removeSharedRootItems
|
|
57
|
+
}), V = l({
|
|
58
|
+
filesApi: b,
|
|
59
|
+
bucket: x,
|
|
60
|
+
rootLabel: S,
|
|
61
|
+
onNotification: E
|
|
62
|
+
}), H = i(L.currentFolder), U = _(() => C === y.Organization || C === y.Shared && L.folderPath === "" ? !1 : H, [
|
|
63
|
+
C,
|
|
64
|
+
L.folderPath,
|
|
65
|
+
H
|
|
66
|
+
]), W = _(() => {
|
|
67
|
+
switch (C) {
|
|
68
|
+
case y.Shared: return n;
|
|
69
|
+
case y.Organization: return t;
|
|
70
|
+
default: return e;
|
|
71
|
+
}
|
|
72
|
+
}, [C]), G = _(() => {
|
|
65
73
|
let e = {}, t = (t) => {
|
|
66
|
-
let n =
|
|
74
|
+
let n = j[t];
|
|
67
75
|
n != null && (e[t] = n);
|
|
68
76
|
};
|
|
69
|
-
return t(
|
|
77
|
+
return t(v.Download), C === y.MyFiles ? (t(v.Delete), U && (t(v.Rename), a(I) && (t(v.Copy), t(v.Move), t(v.Duplicate))), o(I) && t(v.RemoveAccess)) : C === y.Shared && o(I) && t(v.Unshare), I === p.Full && t(v.Info), e;
|
|
70
78
|
}, [
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
]),
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
]),
|
|
86
|
-
let n =
|
|
87
|
-
return n ?
|
|
88
|
-
}, [
|
|
89
|
-
let n =
|
|
90
|
-
return n ?
|
|
91
|
-
}, [
|
|
79
|
+
C,
|
|
80
|
+
U,
|
|
81
|
+
I,
|
|
82
|
+
j
|
|
83
|
+
]), K = _(() => z.isCreatingFolder || z.isDownloading || z.isDeleting || z.isRenaming || z.isCopying || z.isMoving || B.isUnsharing || B.isRemovingAccess || h(R.uploadBatchState), [
|
|
84
|
+
z.isCreatingFolder,
|
|
85
|
+
z.isDownloading,
|
|
86
|
+
z.isDeleting,
|
|
87
|
+
z.isRenaming,
|
|
88
|
+
z.isCopying,
|
|
89
|
+
z.isMoving,
|
|
90
|
+
B.isUnsharing,
|
|
91
|
+
B.isRemovingAccess,
|
|
92
|
+
R.uploadBatchState
|
|
93
|
+
]), q = g((e, t) => {
|
|
94
|
+
let n = z.onCreateFolderValidate(e, t);
|
|
95
|
+
return n ? F(n) : null;
|
|
96
|
+
}, [z, F]), J = g((e, t) => {
|
|
97
|
+
let n = z.onRenameValidate(e, t);
|
|
98
|
+
return n ? F(n, t) : null;
|
|
99
|
+
}, [z, F]);
|
|
92
100
|
return {
|
|
93
|
-
items:
|
|
94
|
-
isLoading:
|
|
95
|
-
error:
|
|
96
|
-
path:
|
|
97
|
-
onPathChange:
|
|
98
|
-
retry:
|
|
99
|
-
onSearchFiles:
|
|
100
|
-
isSearching:
|
|
101
|
-
searchResults:
|
|
102
|
-
clearSearchResults:
|
|
103
|
-
expandedPaths:
|
|
104
|
-
loadedPaths:
|
|
105
|
-
onExpandedPathsChange:
|
|
106
|
-
onFolderPopupPathChange:
|
|
107
|
-
folderPopupLoadingPaths:
|
|
108
|
-
onUploadFiles:
|
|
109
|
-
onUploadArchive:
|
|
110
|
-
onValidateUpload:
|
|
111
|
-
uploadBatchState:
|
|
112
|
-
cancelUpload:
|
|
113
|
-
cancelUploadFile:
|
|
114
|
-
clearUploadBatch:
|
|
115
|
-
onCreateFolder:
|
|
116
|
-
onCreateFolderValidate:
|
|
117
|
-
isCreatingFolder:
|
|
118
|
-
onDownloadFiles:
|
|
119
|
-
isDownloading:
|
|
120
|
-
onDeleteFiles:
|
|
121
|
-
isDeleting:
|
|
122
|
-
onRenameValidate:
|
|
123
|
-
onMoveToFiles:
|
|
124
|
-
isRenaming:
|
|
125
|
-
onCopyFiles:
|
|
126
|
-
isCopying:
|
|
127
|
-
isMoving:
|
|
128
|
-
cancelCopyMove:
|
|
129
|
-
uploadEnabled:
|
|
130
|
-
isNewButtonDisabled: !
|
|
131
|
-
disabledNewButtonTooltip:
|
|
132
|
-
visibleColumns:
|
|
133
|
-
dateLocale:
|
|
134
|
-
dateOptions:
|
|
135
|
-
actionLabels:
|
|
136
|
-
sharedWithMeIds:
|
|
137
|
-
sharedByMePaths:
|
|
138
|
-
onUnshareFiles:
|
|
139
|
-
isUnsharing:
|
|
140
|
-
onRemoveFilesAccess:
|
|
141
|
-
isRemovingAccess:
|
|
142
|
-
fileMetadata:
|
|
143
|
-
isFileMetadataLoading:
|
|
144
|
-
onGetInfo:
|
|
145
|
-
clearMetadata:
|
|
146
|
-
isAnyOperationInProgress:
|
|
101
|
+
items: L.items,
|
|
102
|
+
isLoading: L.isLoading,
|
|
103
|
+
error: L.error,
|
|
104
|
+
path: L.path,
|
|
105
|
+
onPathChange: L.onPathChange,
|
|
106
|
+
retry: L.retry,
|
|
107
|
+
onSearchFiles: L.onSearchFiles,
|
|
108
|
+
isSearching: L.isSearching,
|
|
109
|
+
searchResults: L.searchResults,
|
|
110
|
+
clearSearchResults: L.clearSearchResults,
|
|
111
|
+
expandedPaths: L.expandedPaths,
|
|
112
|
+
loadedPaths: L.loadedPaths,
|
|
113
|
+
onExpandedPathsChange: L.onExpandedPathsChange,
|
|
114
|
+
onFolderPopupPathChange: L.onFolderPopupPathChange,
|
|
115
|
+
folderPopupLoadingPaths: L.folderPopupLoadingPaths,
|
|
116
|
+
onUploadFiles: R.onUploadFiles,
|
|
117
|
+
onUploadArchive: R.onUploadArchive,
|
|
118
|
+
onValidateUpload: R.onValidateUpload,
|
|
119
|
+
uploadBatchState: R.uploadBatchState,
|
|
120
|
+
cancelUpload: R.cancelUpload,
|
|
121
|
+
cancelUploadFile: R.cancelUploadFile,
|
|
122
|
+
clearUploadBatch: R.clearUploadBatch,
|
|
123
|
+
onCreateFolder: z.onCreateFolder,
|
|
124
|
+
onCreateFolderValidate: q,
|
|
125
|
+
isCreatingFolder: z.isCreatingFolder,
|
|
126
|
+
onDownloadFiles: z.onDownloadFiles,
|
|
127
|
+
isDownloading: z.isDownloading,
|
|
128
|
+
onDeleteFiles: z.onDeleteFiles,
|
|
129
|
+
isDeleting: z.isDeleting,
|
|
130
|
+
onRenameValidate: J,
|
|
131
|
+
onMoveToFiles: z.onMoveToFiles,
|
|
132
|
+
isRenaming: z.isRenaming,
|
|
133
|
+
onCopyFiles: z.onCopyFiles,
|
|
134
|
+
isCopying: z.isCopying,
|
|
135
|
+
isMoving: z.isMoving,
|
|
136
|
+
cancelCopyMove: z.cancelCopyMove,
|
|
137
|
+
uploadEnabled: U,
|
|
138
|
+
isNewButtonDisabled: !U,
|
|
139
|
+
disabledNewButtonTooltip: N,
|
|
140
|
+
visibleColumns: W,
|
|
141
|
+
dateLocale: M,
|
|
142
|
+
dateOptions: r,
|
|
143
|
+
actionLabels: G,
|
|
144
|
+
sharedWithMeIds: L.sharedWithMeIds,
|
|
145
|
+
sharedByMePaths: L.sharedByMePaths,
|
|
146
|
+
onUnshareFiles: B.onUnshareFiles,
|
|
147
|
+
isUnsharing: B.isUnsharing,
|
|
148
|
+
onRemoveFilesAccess: B.onRemoveFilesAccess,
|
|
149
|
+
isRemovingAccess: B.isRemovingAccess,
|
|
150
|
+
fileMetadata: V.fileMetadata,
|
|
151
|
+
isFileMetadataLoading: V.isFileMetadataLoading,
|
|
152
|
+
onGetInfo: V.onGetInfo,
|
|
153
|
+
clearMetadata: V.clearMetadata,
|
|
154
|
+
isAnyOperationInProgress: K
|
|
147
155
|
};
|
|
148
156
|
};
|
|
149
157
|
//#endregion
|
|
150
|
-
export {
|
|
158
|
+
export { b as useDialFileManager };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DialFileManagerTabs } from '@epam/ai-dial-react-file-manager';
|
|
2
|
+
import { DialFileManagerSection } from '../dial-file-manager.model';
|
|
3
|
+
import { UseDialFileManagerOptions, UseDialFileManagerResult } from '../dial-file-manager.types';
|
|
4
|
+
/** Options accepted by `useDialFileManagerSections`. */
|
|
5
|
+
export interface UseDialFileManagerSectionsOptions extends Omit<UseDialFileManagerOptions, 'activeTab' | 'rootLabel' | 'isActive' | 'sessionKey'> {
|
|
6
|
+
/** Active tab, including `DialFileManagerTabs.All`. */
|
|
7
|
+
activeTab: DialFileManagerTabs;
|
|
8
|
+
/** Enabled source tabs in display order, each with its translated top-level folder name. */
|
|
9
|
+
sections: DialFileManagerSection[];
|
|
10
|
+
}
|
|
11
|
+
/** Values returned by `useDialFileManagerSections`. */
|
|
12
|
+
export interface UseDialFileManagerSectionsResult extends UseDialFileManagerResult {
|
|
13
|
+
/** Source tab of the browsed folder; never `DialFileManagerTabs.All`. */
|
|
14
|
+
sectionTab: DialFileManagerTabs;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Composes one `useDialFileManager` per source tab (My files, Shared,
|
|
18
|
+
* Organization) so the File storage page can offer an All tab without a
|
|
19
|
+
* second copy of the per-tab rules. On a single tab it returns that section's
|
|
20
|
+
* result; on All it merges the section roots into one tree and routes every
|
|
21
|
+
* callback to the section owning the path. Section availability and names
|
|
22
|
+
* arrive through `sections` — the hook reads no config, i18n, or context.
|
|
23
|
+
*/
|
|
24
|
+
export declare const useDialFileManagerSections: ({ activeTab, sections, ...managerOptions }: UseDialFileManagerSectionsOptions) => UseDialFileManagerSectionsResult;
|
|
25
|
+
//# sourceMappingURL=useDialFileManagerSections.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDialFileManagerSections.d.ts","sourceRoot":"","sources":["../../../src/files/useDialFileManagerSections/useDialFileManagerSections.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AASvE,OAAO,EAEL,KAAK,sBAAsB,EAC5B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAEL,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC9B,MAAM,4BAA4B,CAAC;AAGpC,wDAAwD;AACxD,MAAM,WAAW,iCAAkC,SAAQ,IAAI,CAC7D,yBAAyB,EACzB,WAAW,GAAG,WAAW,GAAG,UAAU,GAAG,YAAY,CACtD;IACC,uDAAuD;IACvD,SAAS,EAAE,mBAAmB,CAAC;IAC/B,4FAA4F;IAC5F,QAAQ,EAAE,sBAAsB,EAAE,CAAC;CACpC;AAED,uDAAuD;AACvD,MAAM,WAAW,gCAAiC,SAAQ,wBAAwB;IAChF,yEAAyE;IACzE,UAAU,EAAE,mBAAmB,CAAC;CACjC;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,0BAA0B,GAAI,4CAIxC,iCAAiC,KAAG,gCAgXtC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DialFileManagerTabs, FileTreeOptions } from '@epam/ai-dial-react-file-manager';
|
|
2
|
+
import { FilterChipItem } from '@epam/ai-dial-ui-kit';
|
|
3
|
+
/** Values returned by `useDialFileManagerTabConfig`. */
|
|
4
|
+
export interface UseDialFileManagerTabConfigResult {
|
|
5
|
+
tabs: FileTreeOptions['tabs'];
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Filters the file-manager's tab list down to the host's configured set and
|
|
9
|
+
* resets `activeTab` to the highest-priority still-enabled tab when the
|
|
10
|
+
* current one becomes excluded. A `fileManagerTabs` of `undefined` means no
|
|
11
|
+
* restriction — every tab in `allTabs` stays enabled and no reset ever fires.
|
|
12
|
+
* The All tab is kept only while at least two source tabs are enabled.
|
|
13
|
+
*/
|
|
14
|
+
export declare const useDialFileManagerTabConfig: (activeTab: DialFileManagerTabs, onTabChange: (tab: DialFileManagerTabs) => void, allTabs: FilterChipItem<DialFileManagerTabs>[] | undefined, fileManagerTabs: string[] | undefined) => UseDialFileManagerTabConfigResult;
|
|
15
|
+
//# sourceMappingURL=useDialFileManagerTabConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDialFileManagerTabConfig.d.ts","sourceRoot":"","sources":["../../../src/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,KAAK,eAAe,EACrB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAI3D,wDAAwD;AACxD,MAAM,WAAW,iCAAiC;IAChD,IAAI,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;CAC/B;AAiBD;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,GACtC,WAAW,mBAAmB,EAC9B,aAAa,CAAC,GAAG,EAAE,mBAAmB,KAAK,IAAI,EAC/C,SAAS,cAAc,CAAC,mBAAmB,CAAC,EAAE,GAAG,SAAS,EAC1D,iBAAiB,MAAM,EAAE,GAAG,SAAS,KACpC,iCA+BF,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { DialFile } from '@epam/ai-dial-react-file-manager';
|
|
2
|
+
import { FileManagerNotification } from '../dial-file-manager.types';
|
|
3
|
+
import { DialFilesApi } from '../dial-files-api';
|
|
4
|
+
/** Options accepted by `useDialFileMetadata`. */
|
|
5
|
+
export interface UseDialFileMetadataOptions {
|
|
6
|
+
/** Injected operation port used for the metadata network call. */
|
|
7
|
+
filesApi: DialFilesApi;
|
|
8
|
+
/** DIAL Core bucket the current user browses (used only for my_files items). */
|
|
9
|
+
bucket: string;
|
|
10
|
+
/** Display name of the root folder node, used to resolve virtual paths back to API paths. */
|
|
11
|
+
rootLabel: string;
|
|
12
|
+
/** Called with a structured event when the metadata fetch fails. */
|
|
13
|
+
onNotification?: (notification: FileManagerNotification) => void;
|
|
14
|
+
}
|
|
15
|
+
/** Values returned by `useDialFileMetadata`. */
|
|
16
|
+
export interface UseDialFileMetadataResult {
|
|
17
|
+
fileMetadata: DialFile | undefined;
|
|
18
|
+
isFileMetadataLoading: boolean;
|
|
19
|
+
onGetInfo: (file: DialFile) => void;
|
|
20
|
+
clearMetadata: () => void;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Fetches and holds single-file metadata for `fileMetadataPopupOptions` —
|
|
24
|
+
* the only sub-hook with no interaction with the shared listing cache, since
|
|
25
|
+
* viewing metadata never mutates listing state.
|
|
26
|
+
*/
|
|
27
|
+
export declare const useDialFileMetadata: ({ filesApi, bucket, rootLabel, onNotification, }: UseDialFileMetadataOptions) => UseDialFileMetadataResult;
|
|
28
|
+
//# sourceMappingURL=useDialFileMetadata.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDialFileMetadata.d.ts","sourceRoot":"","sources":["../../../src/files/useDialFileMetadata/useDialFileMetadata.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAIjE,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGtD,iDAAiD;AACjD,MAAM,WAAW,0BAA0B;IACzC,kEAAkE;IAClE,QAAQ,EAAE,YAAY,CAAC;IACvB,gFAAgF;IAChF,MAAM,EAAE,MAAM,CAAC;IACf,6FAA6F;IAC7F,SAAS,EAAE,MAAM,CAAC;IAClB,oEAAoE;IACpE,cAAc,CAAC,EAAE,CAAC,YAAY,EAAE,uBAAuB,KAAK,IAAI,CAAC;CAClE;AAED,gDAAgD;AAChD,MAAM,WAAW,yBAAyB;IACxC,YAAY,EAAE,QAAQ,GAAG,SAAS,CAAC;IACnC,qBAAqB,EAAE,OAAO,CAAC;IAC/B,SAAS,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;IACpC,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,GAAI,kDAKjC,0BAA0B,KAAG,yBA2C/B,CAAC"}
|