@epam/ai-dial-chat-hooks 1.3.0-dev.14 → 1.3.0-dev.141

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.
Files changed (514) hide show
  1. package/api-error/api-error.d.ts +30 -0
  2. package/api-error/api-error.d.ts.map +1 -0
  3. package/api-error/api-error.js +2 -2
  4. package/api-transport/create-csrf-middleware.d.ts +15 -0
  5. package/api-transport/create-csrf-middleware.d.ts.map +1 -0
  6. package/api-transport/create-unauthorized-middleware.d.ts +40 -0
  7. package/api-transport/create-unauthorized-middleware.d.ts.map +1 -0
  8. package/api-transport/create-unauthorized-middleware.js +4 -1
  9. package/attachment/useAttachmentAction/useAttachmentAction.d.ts +32 -0
  10. package/attachment/useAttachmentAction/useAttachmentAction.d.ts.map +1 -0
  11. package/attachment/useAttachmentAction/useAttachmentAction.js +5 -8
  12. package/attachment/useAttachmentValidation/useAttachmentValidation.d.ts +50 -0
  13. package/attachment/useAttachmentValidation/useAttachmentValidation.d.ts.map +1 -0
  14. package/attachments.d.ts +2 -94
  15. package/catalog/catalog-derivations.d.ts +27 -0
  16. package/catalog/catalog-derivations.d.ts.map +1 -0
  17. package/catalog/catalog-derivations.js +1 -1
  18. package/catalog/catalog-primary-action.d.ts +47 -0
  19. package/catalog/catalog-primary-action.d.ts.map +1 -0
  20. package/catalog/create-publish-api.d.ts +34 -0
  21. package/catalog/create-publish-api.d.ts.map +1 -0
  22. package/catalog/create-publish-api.js +4 -0
  23. package/catalog/deployment-endpoint-url.d.ts +19 -0
  24. package/catalog/deployment-endpoint-url.d.ts.map +1 -0
  25. package/catalog/deployment-id.d.ts +42 -0
  26. package/catalog/deployment-id.d.ts.map +1 -0
  27. package/catalog/entity-details.d.ts +146 -0
  28. package/catalog/entity-details.d.ts.map +1 -0
  29. package/catalog/map-deployment-limits-to-catalog.d.ts +34 -0
  30. package/catalog/map-deployment-limits-to-catalog.d.ts.map +1 -0
  31. package/catalog/map-deployment-limits-to-input.d.ts +28 -0
  32. package/catalog/map-deployment-limits-to-input.d.ts.map +1 -0
  33. package/catalog/map-deployment-to-catalog-item.d.ts +61 -0
  34. package/catalog/map-deployment-to-catalog-item.d.ts.map +1 -0
  35. package/catalog/map-entity-details-to-catalog.d.ts +81 -0
  36. package/catalog/map-entity-details-to-catalog.d.ts.map +1 -0
  37. package/catalog/map-entity-details-to-catalog.js +1 -1
  38. package/catalog/map-prompt-to-catalog-item.d.ts +43 -0
  39. package/catalog/map-prompt-to-catalog-item.d.ts.map +1 -0
  40. package/catalog/map-skill-to-catalog-item.d.ts +113 -0
  41. package/catalog/map-skill-to-catalog-item.d.ts.map +1 -0
  42. package/catalog/map-skill-to-catalog-item.js +1 -5
  43. package/catalog/mcp-endpoint-url.d.ts +18 -0
  44. package/catalog/mcp-endpoint-url.d.ts.map +1 -0
  45. package/catalog/publish.d.ts +35 -0
  46. package/catalog/publish.d.ts.map +1 -0
  47. package/catalog/useApplicationCredentials/useApplicationCredentials.d.ts +19 -0
  48. package/catalog/useApplicationCredentials/useApplicationCredentials.d.ts.map +1 -0
  49. package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.d.ts +107 -0
  50. package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.d.ts.map +1 -0
  51. package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.js +90 -71
  52. package/catalog/useCatalogItemDetails.d.ts +70 -0
  53. package/catalog/useCatalogItemDetails.d.ts.map +1 -0
  54. package/catalog/useCatalogToolsetCredentials/useCatalogToolsetCredentials.d.ts +76 -0
  55. package/catalog/useCatalogToolsetCredentials/useCatalogToolsetCredentials.d.ts.map +1 -0
  56. package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.d.ts +37 -0
  57. package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.d.ts.map +1 -0
  58. package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.js +1 -1
  59. package/catalog/usePublishFolders/usePublishFolders.d.ts +73 -0
  60. package/catalog/usePublishFolders/usePublishFolders.d.ts.map +1 -0
  61. package/catalog/usePublishFolders/usePublishFolders.js +1 -1
  62. package/catalog/useSkillDetailsPanelData/useSkillDetailsPanelData.d.ts +54 -0
  63. package/catalog/useSkillDetailsPanelData/useSkillDetailsPanelData.d.ts.map +1 -0
  64. package/catalog/useSkillItemDetails.d.ts +64 -0
  65. package/catalog/useSkillItemDetails.d.ts.map +1 -0
  66. package/catalog/useSkillItemDetails.js +3 -3
  67. package/catalog.d.ts +2 -1436
  68. package/conversation/announcement-message.d.ts +61 -0
  69. package/conversation/announcement-message.d.ts.map +1 -0
  70. package/conversation/conversation-draft/conversation-draft-store.d.ts +21 -0
  71. package/conversation/conversation-draft/conversation-draft-store.d.ts.map +1 -0
  72. package/conversation/conversation-draft/conversation-draft-store.js +84 -0
  73. package/conversation/conversation-draft/conversation-draft.d.ts +48 -0
  74. package/conversation/conversation-draft/conversation-draft.d.ts.map +1 -0
  75. package/conversation/conversation-transfer/async.d.ts +10 -0
  76. package/conversation/conversation-transfer/async.d.ts.map +1 -0
  77. package/conversation/conversation-transfer/attachment-refs.d.ts +42 -0
  78. package/conversation/conversation-transfer/attachment-refs.d.ts.map +1 -0
  79. package/conversation/conversation-transfer/build-upload-path.d.ts +42 -0
  80. package/conversation/conversation-transfer/build-upload-path.d.ts.map +1 -0
  81. package/conversation/conversation-transfer/date.d.ts +5 -0
  82. package/conversation/conversation-transfer/date.d.ts.map +1 -0
  83. package/conversation/conversation-transfer/dial-file-resolve.d.ts +10 -0
  84. package/conversation/conversation-transfer/dial-file-resolve.d.ts.map +1 -0
  85. package/conversation/conversation-transfer/export-conversation.d.ts +10 -0
  86. package/conversation/conversation-transfer/export-conversation.d.ts.map +1 -0
  87. package/conversation/conversation-transfer/import-conversation.d.ts +106 -0
  88. package/conversation/conversation-transfer/import-conversation.d.ts.map +1 -0
  89. package/conversation/conversation-transfer/import-conversation.js +7 -8
  90. package/conversation/conversation-transfer/progress.d.ts +60 -0
  91. package/conversation/conversation-transfer/progress.d.ts.map +1 -0
  92. package/conversation/conversation-transfer/progress.js +1 -1
  93. package/conversation/conversation-transfer/queue.d.ts +54 -0
  94. package/conversation/conversation-transfer/queue.d.ts.map +1 -0
  95. package/conversation/conversation-transfer/types.d.ts +36 -0
  96. package/conversation/conversation-transfer/types.d.ts.map +1 -0
  97. package/conversation/conversation-transfer/zip-export.d.ts +31 -0
  98. package/conversation/conversation-transfer/zip-export.d.ts.map +1 -0
  99. package/conversation/conversation-transfer/zip-export.js +1 -7
  100. package/conversation/conversation-transfer/zip-import.d.ts +17 -0
  101. package/conversation/conversation-transfer/zip-import.d.ts.map +1 -0
  102. package/conversation/conversation-transfer/zip-import.js +1 -1
  103. package/conversation/create-chat-stream-api.d.ts +98 -0
  104. package/conversation/create-chat-stream-api.d.ts.map +1 -0
  105. package/conversation/create-chat-stream-api.js +29 -28
  106. package/conversation/deriveConversationRowActionState/deriveConversationRowActionState.d.ts +39 -0
  107. package/conversation/deriveConversationRowActionState/deriveConversationRowActionState.d.ts.map +1 -0
  108. package/conversation/display-name-watch.d.ts +4 -0
  109. package/conversation/display-name-watch.d.ts.map +1 -0
  110. package/conversation/footer-message.d.ts +10 -0
  111. package/conversation/footer-message.d.ts.map +1 -0
  112. package/conversation/get-model-id-from-conversation-id.d.ts +38 -0
  113. package/conversation/get-model-id-from-conversation-id.d.ts.map +1 -0
  114. package/conversation/get-model-id-from-conversation-id.js +1 -1
  115. package/conversation/greeting.d.ts +18 -0
  116. package/conversation/greeting.d.ts.map +1 -0
  117. package/conversation/message-factory.d.ts +7 -0
  118. package/conversation/message-factory.d.ts.map +1 -0
  119. package/conversation/message-utils.d.ts +67 -0
  120. package/conversation/message-utils.d.ts.map +1 -0
  121. package/conversation/overlay-messages.d.ts +5 -0
  122. package/conversation/overlay-messages.d.ts.map +1 -0
  123. package/conversation/quick-app-conversation-starters.d.ts +10 -0
  124. package/conversation/quick-app-conversation-starters.d.ts.map +1 -0
  125. package/conversation/stage.d.ts +77 -0
  126. package/conversation/stage.d.ts.map +1 -0
  127. package/conversation/starter-option.d.ts +21 -0
  128. package/conversation/starter-option.d.ts.map +1 -0
  129. package/conversation/useActiveConversationSync/useActiveConversationSync.d.ts +35 -0
  130. package/conversation/useActiveConversationSync/useActiveConversationSync.d.ts.map +1 -0
  131. package/conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.d.ts +46 -0
  132. package/conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.d.ts.map +1 -0
  133. package/conversation/useAttachmentUpload/useAttachmentUpload.d.ts +27 -0
  134. package/conversation/useAttachmentUpload/useAttachmentUpload.d.ts.map +1 -0
  135. package/conversation/useAttachmentUpload/useAttachmentUpload.js +4 -1
  136. package/conversation/useConversationComposerDraft/useConversationComposerDraft.d.ts +39 -0
  137. package/conversation/useConversationComposerDraft/useConversationComposerDraft.d.ts.map +1 -0
  138. package/conversation/useConversationComposerDraft/useConversationComposerDraft.js +128 -0
  139. package/conversation/useConversationExport/useConversationExport.d.ts +72 -0
  140. package/conversation/useConversationExport/useConversationExport.d.ts.map +1 -0
  141. package/conversation/useConversationExport/useConversationExport.js +11 -12
  142. package/conversation/useConversationHandlers/attachment-to-dto.d.ts +7 -0
  143. package/conversation/useConversationHandlers/attachment-to-dto.d.ts.map +1 -0
  144. package/conversation/useConversationHandlers/message-factory.d.ts +9 -0
  145. package/conversation/useConversationHandlers/message-factory.d.ts.map +1 -0
  146. package/conversation/useConversationHandlers/message-utils.d.ts +38 -0
  147. package/conversation/useConversationHandlers/message-utils.d.ts.map +1 -0
  148. package/conversation/useConversationHandlers/message-utils.js +2 -2
  149. package/conversation/useConversationHandlers/starter-option.d.ts +24 -0
  150. package/conversation/useConversationHandlers/starter-option.d.ts.map +1 -0
  151. package/conversation/useConversationHandlers/useConversationHandlers.d.ts +66 -0
  152. package/conversation/useConversationHandlers/useConversationHandlers.d.ts.map +1 -0
  153. package/conversation/useConversationHandlers/useConversationHandlers.js +2 -2
  154. package/conversation/useConversationImport/useConversationImport.d.ts +54 -0
  155. package/conversation/useConversationImport/useConversationImport.d.ts.map +1 -0
  156. package/conversation/useConversationImport/useConversationImport.js +24 -24
  157. package/conversation/useConversationLookupMaps/useConversationLookupMaps.d.ts +24 -0
  158. package/conversation/useConversationLookupMaps/useConversationLookupMaps.d.ts.map +1 -0
  159. package/conversation/useConversationPanelItems/useConversationPanelItems.d.ts +65 -0
  160. package/conversation/useConversationPanelItems/useConversationPanelItems.d.ts.map +1 -0
  161. package/conversation/useConversationPanelItems/useConversationPanelItems.js +31 -30
  162. package/conversation/useConversationScroll/useConversationScroll.d.ts +46 -0
  163. package/conversation/useConversationScroll/useConversationScroll.d.ts.map +1 -0
  164. package/conversation/useConversationScroll/useConversationScroll.js +2 -6
  165. package/conversation/useConversationStream/apply-chunk.d.ts +35 -0
  166. package/conversation/useConversationStream/apply-chunk.d.ts.map +1 -0
  167. package/conversation/useConversationStream/buffered-generation.d.ts +15 -0
  168. package/conversation/useConversationStream/buffered-generation.d.ts.map +1 -0
  169. package/conversation/useConversationStream/conversation-path.d.ts +7 -0
  170. package/conversation/useConversationStream/conversation-path.d.ts.map +1 -0
  171. package/conversation/useConversationStream/conversation-path.js +2 -2
  172. package/conversation/useConversationStream/frame-scheduler.d.ts +14 -0
  173. package/conversation/useConversationStream/frame-scheduler.d.ts.map +1 -0
  174. package/conversation/useConversationStream/frame-scheduler.js +17 -17
  175. package/conversation/useConversationStream/generation-resume.d.ts +85 -0
  176. package/conversation/useConversationStream/generation-resume.d.ts.map +1 -0
  177. package/conversation/useConversationStream/generation-resume.js +11 -21
  178. package/conversation/useConversationStream/useConversationStream.d.ts +145 -0
  179. package/conversation/useConversationStream/useConversationStream.d.ts.map +1 -0
  180. package/conversation/useConversationStream/useConversationStream.js +241 -248
  181. package/conversation/useImportFilePicker/useImportFilePicker.d.ts +32 -0
  182. package/conversation/useImportFilePicker/useImportFilePicker.d.ts.map +1 -0
  183. package/conversation/useMessageSelectionReply/useMessageSelectionReply.d.ts +42 -0
  184. package/conversation/useMessageSelectionReply/useMessageSelectionReply.d.ts.map +1 -0
  185. package/conversation/useMessageSelectionReply/useMessageSelectionReply.js +4 -10
  186. package/conversation/useTranscribeAudio/audio-transcription-error.d.ts +19 -0
  187. package/conversation/useTranscribeAudio/audio-transcription-error.d.ts.map +1 -0
  188. package/conversation/useTranscribeAudio/transcription-retry.d.ts +2 -0
  189. package/conversation/useTranscribeAudio/transcription-retry.d.ts.map +1 -0
  190. package/conversation/useTranscribeAudio/useTranscribeAudio.d.ts +43 -0
  191. package/conversation/useTranscribeAudio/useTranscribeAudio.d.ts.map +1 -0
  192. package/conversation/useTranscribeAudio/useTranscribeAudio.js +30 -27
  193. package/conversation-overlay.d.ts +2 -7
  194. package/conversation-overlay.js +1 -2
  195. package/conversation-sources/useConversationSources/useConversationSources.d.ts +20 -0
  196. package/conversation-sources/useConversationSources/useConversationSources.d.ts.map +1 -0
  197. package/conversation-sources.d.ts +2 -25
  198. package/conversation-sources.js +1 -2
  199. package/conversation-transfer.d.ts +2 -190
  200. package/conversation.d.ts +2 -1372
  201. package/conversation.js +34 -32
  202. package/entry-points/attachments.d.ts +3 -0
  203. package/entry-points/attachments.d.ts.map +1 -0
  204. package/entry-points/catalog.d.ts +25 -0
  205. package/entry-points/catalog.d.ts.map +1 -0
  206. package/entry-points/conversation-overlay.d.ts +2 -0
  207. package/entry-points/conversation-overlay.d.ts.map +1 -0
  208. package/entry-points/conversation-sources.d.ts +2 -0
  209. package/entry-points/conversation-sources.d.ts.map +1 -0
  210. package/entry-points/conversation-transfer.d.ts +7 -0
  211. package/entry-points/conversation-transfer.d.ts.map +1 -0
  212. package/entry-points/conversation.d.ts +36 -0
  213. package/entry-points/conversation.d.ts.map +1 -0
  214. package/entry-points/file-manager-canvas.d.ts +2 -0
  215. package/entry-points/file-manager-canvas.d.ts.map +1 -0
  216. package/entry-points/file-manager.d.ts +31 -0
  217. package/entry-points/file-manager.d.ts.map +1 -0
  218. package/entry-points/mcp-apps.d.ts +6 -0
  219. package/entry-points/mcp-apps.d.ts.map +1 -0
  220. package/entry-points/oauth.d.ts +10 -0
  221. package/entry-points/oauth.d.ts.map +1 -0
  222. package/entry-points/offline-credentials.d.ts +5 -0
  223. package/entry-points/offline-credentials.d.ts.map +1 -0
  224. package/entry-points/scheduled-tasks.d.ts +9 -0
  225. package/entry-points/scheduled-tasks.d.ts.map +1 -0
  226. package/entry-points/scroll-anchoring.d.ts +2 -0
  227. package/entry-points/scroll-anchoring.d.ts.map +1 -0
  228. package/entry-points/sharing.d.ts +3 -0
  229. package/entry-points/sharing.d.ts.map +1 -0
  230. package/entry-points/skill-editor.d.ts +9 -0
  231. package/entry-points/skill-editor.d.ts.map +1 -0
  232. package/entry-points/skills-state.d.ts +2 -0
  233. package/entry-points/skills-state.d.ts.map +1 -0
  234. package/entry-points/source-content.d.ts +2 -0
  235. package/entry-points/source-content.d.ts.map +1 -0
  236. package/entry-points/usage-limits.d.ts +8 -0
  237. package/entry-points/usage-limits.d.ts.map +1 -0
  238. package/entry-points/usage.d.ts +3 -0
  239. package/entry-points/usage.d.ts.map +1 -0
  240. package/entry-points/utils.d.ts +17 -0
  241. package/entry-points/utils.d.ts.map +1 -0
  242. package/entry-points/viewport-layout.d.ts +4 -0
  243. package/entry-points/viewport-layout.d.ts.map +1 -0
  244. package/file-manager-canvas.d.ts +2 -418
  245. package/file-manager-canvas.js +1 -2
  246. package/file-manager.d.ts +2 -1250
  247. package/file-manager.js +21 -21
  248. package/files/annotation.d.ts +10 -0
  249. package/files/annotation.d.ts.map +1 -0
  250. package/files/attachment-canvas.d.ts +123 -0
  251. package/files/attachment-canvas.d.ts.map +1 -0
  252. package/files/attachment-dto-to-display.d.ts +10 -0
  253. package/files/attachment-dto-to-display.d.ts.map +1 -0
  254. package/files/attachment-types.d.ts +21 -0
  255. package/files/attachment-types.d.ts.map +1 -0
  256. package/files/attachment-types.js +1 -1
  257. package/files/create-files-api.d.ts +52 -0
  258. package/files/create-files-api.d.ts.map +1 -0
  259. package/files/create-files-api.js +1 -1
  260. package/files/create-upload-file-with-progress.d.ts +27 -0
  261. package/files/create-upload-file-with-progress.d.ts.map +1 -0
  262. package/files/create-upload-file-with-progress.js +42 -34
  263. package/files/dial-file-manager-copy-move.util.d.ts +15 -0
  264. package/files/dial-file-manager-copy-move.util.d.ts.map +1 -0
  265. package/files/dial-file-manager-mapping.util.d.ts +55 -0
  266. package/files/dial-file-manager-mapping.util.d.ts.map +1 -0
  267. package/files/dial-file-manager-mapping.util.js +97 -69
  268. package/files/dial-file-manager-path.util.d.ts +48 -0
  269. package/files/dial-file-manager-path.util.d.ts.map +1 -0
  270. package/files/dial-file-manager.model.d.ts +36 -0
  271. package/files/dial-file-manager.model.d.ts.map +1 -0
  272. package/files/dial-file-manager.types.d.ts +335 -0
  273. package/files/dial-file-manager.types.d.ts.map +1 -0
  274. package/files/dial-file-to-attachment.d.ts +26 -0
  275. package/files/dial-file-to-attachment.d.ts.map +1 -0
  276. package/files/dial-file-to-attachment.js +3 -3
  277. package/files/dial-file.d.ts +17 -0
  278. package/files/dial-file.d.ts.map +1 -0
  279. package/files/dial-files-api.d.ts +71 -0
  280. package/files/dial-files-api.d.ts.map +1 -0
  281. package/files/download-destination.d.ts +31 -0
  282. package/files/download-destination.d.ts.map +1 -0
  283. package/files/download-progress.d.ts +33 -0
  284. package/files/download-progress.d.ts.map +1 -0
  285. package/files/download-progress.js +28 -0
  286. package/files/file-manager-variant.d.ts +3 -0
  287. package/files/file-manager-variant.d.ts.map +1 -0
  288. package/files/file-name.d.ts +19 -0
  289. package/files/file-name.d.ts.map +1 -0
  290. package/files/prepare-download-destination.d.ts +8 -0
  291. package/files/prepare-download-destination.d.ts.map +1 -0
  292. package/files/resolve-dial-file-api-path.d.ts +12 -0
  293. package/files/resolve-dial-file-api-path.d.ts.map +1 -0
  294. package/files/source-content.d.ts +28 -0
  295. package/files/source-content.d.ts.map +1 -0
  296. package/files/source-content.js +1 -1
  297. package/files/useDialFileListing/useDialFileListing.d.ts +82 -0
  298. package/files/useDialFileListing/useDialFileListing.d.ts.map +1 -0
  299. package/files/useDialFileListing/useDialFileListing.js +95 -107
  300. package/files/useDialFileManager/useDialFileManager.d.ts +16 -0
  301. package/files/useDialFileManager/useDialFileManager.d.ts.map +1 -0
  302. package/files/useDialFileManager/useDialFileManager.js +5 -2
  303. package/files/useDialFileManagerSections/useDialFileManagerSections.d.ts +25 -0
  304. package/files/useDialFileManagerSections/useDialFileManagerSections.d.ts.map +1 -0
  305. package/files/useDialFileManagerSections/useDialFileManagerSections.js +59 -68
  306. package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.d.ts +15 -0
  307. package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.d.ts.map +1 -0
  308. package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.js +1 -1
  309. package/files/useDialFileMetadata/useDialFileMetadata.d.ts +28 -0
  310. package/files/useDialFileMetadata/useDialFileMetadata.d.ts.map +1 -0
  311. package/files/useDialFileMetadata/useDialFileMetadata.js +3 -3
  312. package/files/useDialFileMutations/useDialFileMutations.d.ts +77 -0
  313. package/files/useDialFileMutations/useDialFileMutations.d.ts.map +1 -0
  314. package/files/useDialFileMutations/useDialFileMutations.js +230 -159
  315. package/files/useDialFileSharing/useDialFileSharing.d.ts +34 -0
  316. package/files/useDialFileSharing/useDialFileSharing.d.ts.map +1 -0
  317. package/files/useDialFileUploadBatch/useDialFileUploadBatch.d.ts +47 -0
  318. package/files/useDialFileUploadBatch/useDialFileUploadBatch.d.ts.map +1 -0
  319. package/files/useDialFileUploadBatch/useDialFileUploadBatch.js +105 -97
  320. package/files/useFileAttachmentPicker/useFileAttachmentPicker.d.ts +59 -0
  321. package/files/useFileAttachmentPicker/useFileAttachmentPicker.d.ts.map +1 -0
  322. package/files/useFileAttachmentPicker/useFileAttachmentPicker.js +2 -2
  323. package/index.d.ts +167 -6990
  324. package/index.d.ts.map +1 -0
  325. package/index.js +115 -101
  326. package/mcp-apps/mcp-apps-api-client.d.ts +28 -0
  327. package/mcp-apps/mcp-apps-api-client.d.ts.map +1 -0
  328. package/mcp-apps/mcp-apps-api-client.js +18 -17
  329. package/mcp-apps/useMcpAppHostAdapter/useMcpAppHostAdapter.d.ts +14 -0
  330. package/mcp-apps/useMcpAppHostAdapter/useMcpAppHostAdapter.d.ts.map +1 -0
  331. package/mcp-apps/useMcpAppHostContext/useMcpAppHostContext.d.ts +29 -0
  332. package/mcp-apps/useMcpAppHostContext/useMcpAppHostContext.d.ts.map +1 -0
  333. package/mcp-apps/useMcpAppTools/useMcpAppTools.d.ts +22 -0
  334. package/mcp-apps/useMcpAppTools/useMcpAppTools.d.ts.map +1 -0
  335. package/mcp-apps/useMcpAppTools/useMcpAppTools.js +28 -31
  336. package/mcp-apps/useOpenMcpAppCanvas/useOpenMcpAppCanvas.d.ts +36 -0
  337. package/mcp-apps/useOpenMcpAppCanvas/useOpenMcpAppCanvas.d.ts.map +1 -0
  338. package/mcp-apps.d.ts +2 -256
  339. package/oauth/authorize-url.d.ts +16 -0
  340. package/oauth/authorize-url.d.ts.map +1 -0
  341. package/oauth/authorize-url.js +1 -1
  342. package/oauth/handshake.d.ts +30 -0
  343. package/oauth/handshake.d.ts.map +1 -0
  344. package/oauth/handshake.js +3 -10
  345. package/oauth/models.d.ts +81 -0
  346. package/oauth/models.d.ts.map +1 -0
  347. package/oauth/popup.d.ts +30 -0
  348. package/oauth/popup.d.ts.map +1 -0
  349. package/oauth/popup.js +19 -17
  350. package/oauth/toolset-id.d.ts +53 -0
  351. package/oauth/toolset-id.d.ts.map +1 -0
  352. package/oauth/types.d.ts +84 -0
  353. package/oauth/types.d.ts.map +1 -0
  354. package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.d.ts +54 -0
  355. package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.d.ts.map +1 -0
  356. package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.js +41 -42
  357. package/oauth/useToolsetLogin/useToolsetLogin.d.ts +79 -0
  358. package/oauth/useToolsetLogin/useToolsetLogin.d.ts.map +1 -0
  359. package/oauth/useToolsetLogin/useToolsetLogin.js +2 -1
  360. package/oauth.d.ts +2 -472
  361. package/offline-credentials/map-offline-credentials-response.d.ts +17 -0
  362. package/offline-credentials/map-offline-credentials-response.d.ts.map +1 -0
  363. package/offline-credentials/map-offline-credentials-response.js +15 -0
  364. package/offline-credentials/useOfflineCredentialsAuth/useOfflineCredentialsAuth.d.ts +58 -0
  365. package/offline-credentials/useOfflineCredentialsAuth/useOfflineCredentialsAuth.d.ts.map +1 -0
  366. package/offline-credentials/useOfflineCredentialsAuth/useOfflineCredentialsAuth.js +37 -0
  367. package/offline-credentials/useOfflineCredentialsGate/useOfflineCredentialsGate.d.ts +57 -0
  368. package/offline-credentials/useOfflineCredentialsGate/useOfflineCredentialsGate.d.ts.map +1 -0
  369. package/offline-credentials/useOfflineCredentialsGate/useOfflineCredentialsGate.js +34 -0
  370. package/offline-credentials/useOfflineCredentialsLogin/useOfflineCredentialsLogin.d.ts +28 -0
  371. package/offline-credentials/useOfflineCredentialsLogin/useOfflineCredentialsLogin.d.ts.map +1 -0
  372. package/offline-credentials/useOfflineCredentialsLogin/useOfflineCredentialsLogin.js +29 -0
  373. package/offline-credentials.d.ts +2 -0
  374. package/offline-credentials.js +5 -0
  375. package/package.json +31 -17
  376. package/prompt/export-prompt.d.ts +31 -0
  377. package/prompt/export-prompt.d.ts.map +1 -0
  378. package/prompt/prompt-resource.d.ts +30 -0
  379. package/prompt/prompt-resource.d.ts.map +1 -0
  380. package/prompt/prompt.d.ts +34 -0
  381. package/prompt/prompt.d.ts.map +1 -0
  382. package/prompt/usePromptsState/usePromptsState.d.ts +34 -0
  383. package/prompt/usePromptsState/usePromptsState.d.ts.map +1 -0
  384. package/scheduled-task/check-scheduled-task-auth-session-error.d.ts +27 -0
  385. package/scheduled-task/check-scheduled-task-auth-session-error.d.ts.map +1 -0
  386. package/scheduled-task/check-scheduled-task-auth-session-error.js +17 -0
  387. package/scheduled-task/scheduled-task-description.d.ts +38 -0
  388. package/scheduled-task/scheduled-task-description.d.ts.map +1 -0
  389. package/scheduled-task/scheduled-task-description.js +1 -1
  390. package/scheduled-task/scheduled-task-mapping.d.ts +19 -0
  391. package/scheduled-task/scheduled-task-mapping.d.ts.map +1 -0
  392. package/scheduled-task/scheduled-task-preparation.d.ts +19 -0
  393. package/scheduled-task/scheduled-task-preparation.d.ts.map +1 -0
  394. package/scheduled-task/scheduled-task-trigger.d.ts +26 -0
  395. package/scheduled-task/scheduled-task-trigger.d.ts.map +1 -0
  396. package/scheduled-task/scheduled-task-trigger.js +1 -1
  397. package/scheduled-task/scheduled-tasks-api-client.d.ts +67 -0
  398. package/scheduled-task/scheduled-tasks-api-client.d.ts.map +1 -0
  399. package/scheduled-task/use-scheduled-task-runs.d.ts +40 -0
  400. package/scheduled-task/use-scheduled-task-runs.d.ts.map +1 -0
  401. package/scheduled-task/use-scheduled-task-runs.js +67 -79
  402. package/scheduled-task/use-scheduled-tasks.d.ts +28 -0
  403. package/scheduled-task/use-scheduled-tasks.d.ts.map +1 -0
  404. package/scheduled-task/use-scheduled-tasks.js +1 -1
  405. package/scheduled-tasks.d.ts +2 -250
  406. package/scheduled-tasks.js +2 -1
  407. package/scroll-anchoring.d.ts +2 -50
  408. package/scroll-anchoring.js +1 -2
  409. package/shared/application-schema.d.ts +16 -0
  410. package/shared/application-schema.d.ts.map +1 -0
  411. package/shared/application-schema.js +3 -3
  412. package/shared/browser-timezone.d.ts +7 -0
  413. package/shared/browser-timezone.d.ts.map +1 -0
  414. package/shared/cron-day-of-month.d.ts +21 -0
  415. package/shared/cron-day-of-month.d.ts.map +1 -0
  416. package/shared/cron-day-of-month.js +10 -10
  417. package/shared/cron-weekday.d.ts +5 -0
  418. package/shared/cron-weekday.d.ts.map +1 -0
  419. package/shared/custom-apps.d.ts +7 -0
  420. package/shared/custom-apps.d.ts.map +1 -0
  421. package/shared/external-services.d.ts +16 -0
  422. package/shared/external-services.d.ts.map +1 -0
  423. package/shared/formatting.d.ts +5 -0
  424. package/shared/formatting.d.ts.map +1 -0
  425. package/shared/locale.d.ts +45 -0
  426. package/shared/locale.d.ts.map +1 -0
  427. package/shared/locale.js +2 -2
  428. package/shared/string-utils.d.ts +11 -0
  429. package/shared/string-utils.d.ts.map +1 -0
  430. package/shared/toolset-login-events.d.ts +15 -0
  431. package/shared/toolset-login-events.d.ts.map +1 -0
  432. package/sharing.d.ts +2 -65
  433. package/skill/skill-archive.d.ts +7 -0
  434. package/skill/skill-archive.d.ts.map +1 -0
  435. package/skill/skill-file-batch-validation.d.ts +70 -0
  436. package/skill/skill-file-batch-validation.d.ts.map +1 -0
  437. package/skill/skill-file-batch-validation.js +18 -17
  438. package/skill/skill-file-preview.d.ts +25 -0
  439. package/skill/skill-file-preview.d.ts.map +1 -0
  440. package/skill/skill-manifest.d.ts +28 -0
  441. package/skill/skill-manifest.d.ts.map +1 -0
  442. package/skill/skill-types.d.ts +46 -0
  443. package/skill/skill-types.d.ts.map +1 -0
  444. package/skill/skill-types.js +1 -1
  445. package/skill/skill.d.ts +160 -0
  446. package/skill/skill.d.ts.map +1 -0
  447. package/skill/skill.js +12 -15
  448. package/skill/useSkillArchiveImport/useSkillArchiveImport.d.ts +65 -0
  449. package/skill/useSkillArchiveImport/useSkillArchiveImport.d.ts.map +1 -0
  450. package/skill/useSkillArchiveImport/useSkillArchiveImport.js +1 -7
  451. package/skill/useSkillEditorLoad.d.ts +74 -0
  452. package/skill/useSkillEditorLoad.d.ts.map +1 -0
  453. package/skill/useSkillEditorSubmit.d.ts +125 -0
  454. package/skill/useSkillEditorSubmit.d.ts.map +1 -0
  455. package/skill/useSkillEditorSubmit.js +1 -5
  456. package/skill/useSkillFileActions.d.ts +60 -0
  457. package/skill/useSkillFileActions.d.ts.map +1 -0
  458. package/skill/useSkillFilePreview.d.ts +38 -0
  459. package/skill/useSkillFilePreview.d.ts.map +1 -0
  460. package/skill/useSkillsState/useSkillsState.d.ts +35 -0
  461. package/skill/useSkillsState/useSkillsState.d.ts.map +1 -0
  462. package/skill-editor.d.ts +2 -655
  463. package/skills-state.d.ts +2 -40
  464. package/skills-state.js +1 -2
  465. package/source-content.d.ts +2 -29
  466. package/source-content.js +1 -2
  467. package/usage/map-usage-data-to-dashboard.d.ts +39 -0
  468. package/usage/map-usage-data-to-dashboard.d.ts.map +1 -0
  469. package/usage/map-user-usage-to-model-limits.d.ts +62 -0
  470. package/usage/map-user-usage-to-model-limits.d.ts.map +1 -0
  471. package/usage/usage-banner-source.d.ts +23 -0
  472. package/usage/usage-banner-source.d.ts.map +1 -0
  473. package/usage/usage-banner-source.js +36 -0
  474. package/usage/usage-period.d.ts +7 -0
  475. package/usage/usage-period.d.ts.map +1 -0
  476. package/usage/usage-period.js +6 -0
  477. package/usage/usage-reset-time.d.ts +69 -0
  478. package/usage/usage-reset-time.d.ts.map +1 -0
  479. package/usage/usage-reset-time.js +72 -0
  480. package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.d.ts +32 -0
  481. package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.d.ts.map +1 -0
  482. package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.js +39 -0
  483. package/usage/useRefreshUsageAfterGeneration/useRefreshUsageAfterGeneration.d.ts +16 -0
  484. package/usage/useRefreshUsageAfterGeneration/useRefreshUsageAfterGeneration.d.ts.map +1 -0
  485. package/usage/useRefreshUsageAfterGeneration/useRefreshUsageAfterGeneration.js +14 -0
  486. package/usage/useUsageData/useUsageData.d.ts +28 -0
  487. package/usage/useUsageData/useUsageData.d.ts.map +1 -0
  488. package/usage/useUsageLimitBanner/useUsageLimitBanner.d.ts +56 -0
  489. package/usage/useUsageLimitBanner/useUsageLimitBanner.d.ts.map +1 -0
  490. package/usage/useUsageLimitBanner/useUsageLimitBanner.js +67 -0
  491. package/usage/useUsageLimitBannerDismissal/useUsageLimitBannerDismissal.d.ts +14 -0
  492. package/usage/useUsageLimitBannerDismissal/useUsageLimitBannerDismissal.d.ts.map +1 -0
  493. package/usage/useUsageLimitBannerDismissal/useUsageLimitBannerDismissal.js +19 -0
  494. package/usage-limits.d.ts +2 -0
  495. package/usage-limits.js +8 -0
  496. package/usage.d.ts +2 -125
  497. package/useChatSettingsFormConfig/useChatSettingsFormConfig.d.ts +128 -0
  498. package/useChatSettingsFormConfig/useChatSettingsFormConfig.d.ts.map +1 -0
  499. package/usePageFileDrag/usePageFileDrag.d.ts +16 -0
  500. package/usePageFileDrag/usePageFileDrag.d.ts.map +1 -0
  501. package/usePageFileDrag/usePageFileDrag.js +3 -3
  502. package/usePanelMaxWidth/usePanelMaxWidth.d.ts +6 -0
  503. package/usePanelMaxWidth/usePanelMaxWidth.d.ts.map +1 -0
  504. package/useShareLink/useShareLink.d.ts +23 -0
  505. package/useShareLink/useShareLink.d.ts.map +1 -0
  506. package/useShareLink/useShareLink.js +1 -0
  507. package/useShareRecipientsCount/useShareRecipientsCount.d.ts +36 -0
  508. package/useShareRecipientsCount/useShareRecipientsCount.d.ts.map +1 -0
  509. package/useToolsMenu/useToolsMenu.d.ts +31 -0
  510. package/useToolsMenu/useToolsMenu.d.ts.map +1 -0
  511. package/useViewportWidth/useViewportWidth.d.ts +3 -0
  512. package/useViewportWidth/useViewportWidth.d.ts.map +1 -0
  513. package/utils.d.ts +2 -404
  514. package/viewport-layout.d.ts +2 -27
@@ -25,80 +25,64 @@ var l = ({ activeTab: l, sections: u, ...d }) => {
25
25
  }
26
26
  }, [v, y] = o(null), [b, x] = o(null), [S, C] = o(l);
27
27
  S !== l && (C(l), y(null), x(null));
28
- let w = (e) => f.some((t) => t.tab === e), ae = f[0]?.tab ?? c.MyFiles, T = v != null && w(v) ? v : ae, oe = b != null && w(b) ? b : T, E = (e) => e == null ? void 0 : r(e, f)?.tab, D = (e) => _(E(e) ?? T), O = (e, t) => {
28
+ let w = (e) => f.some((t) => t.tab === e), T = f[0]?.tab ?? c.MyFiles, E = v != null && w(v) ? v : T, ae = b != null && w(b) ? b : E, D = (e) => e == null ? void 0 : r(e, f)?.tab, O = (e) => _(D(e) ?? E), k = (e, t) => {
29
29
  let n = /* @__PURE__ */ new Map();
30
30
  return e.forEach((e) => {
31
- let r = E(t(e)) ?? T;
31
+ let r = D(t(e)) ?? E;
32
32
  n.set(r, [...n.get(r) ?? [], e]);
33
33
  }), [...n];
34
- }, { onNotification: k } = d, A = re(/* @__PURE__ */ new Set());
34
+ }, { onNotification: A } = d, j = re(/* @__PURE__ */ new Set()), M = f.map(({ tab: e }) => `${e}:${_(e).error ?? ""}`).join("|");
35
35
  te(() => {
36
- let t = A.current;
37
- if (!p) {
38
- t.clear();
39
- return;
40
- }
41
- f.forEach(({ tab: n }) => {
42
- if (_(n).error == null) {
43
- t.delete(n);
44
- return;
45
- }
46
- t.has(n) || (t.add(n), n !== T && k?.({
36
+ let t = j.current;
37
+ p ? f.forEach(({ tab: n }) => {
38
+ _(n).error == null ? t.delete(n) : t.has(n) || (t.add(n), n !== E && A?.({
47
39
  variant: s.Error,
48
40
  reason: e.FolderLoadFailed
49
41
  }));
50
- });
42
+ }) : t.clear();
51
43
  }, [
52
- f.map(({ tab: e }) => `${e}:${_(e).error ?? ""}`).join("|"),
44
+ M,
53
45
  p,
54
- T,
55
- k
46
+ E,
47
+ A
56
48
  ]);
57
- let j = () => {
58
- k?.({
49
+ let N = () => {
50
+ A?.({
59
51
  variant: s.Warning,
60
52
  reason: e.CrossSectionTransferUnsupported
61
53
  });
62
- }, M = (e, t) => {
63
- let n = new Set(e.map(E));
54
+ }, P = (e, t) => {
55
+ let n = new Set(e.map(D));
64
56
  if (n.size !== 1) return;
65
57
  let [r] = n;
66
- if (r != null) return (t ? E(t) : r) === r ? r : void 0;
67
- }, N = (e) => {
58
+ if (r != null) return (t ? D(t) : r) === r ? r : void 0;
59
+ }, F = (e) => {
68
60
  if (e == null) {
69
- _(T).onPathChange();
61
+ _(E).onPathChange();
70
62
  return;
71
63
  }
72
- let t = E(e);
64
+ let t = D(e);
73
65
  t != null && (y(t), _(t).onPathChange(e));
74
- }, P = (e) => {
66
+ }, I = (e) => {
75
67
  f.forEach(({ tab: t }) => {
76
- let r = _(t), i = new Set([...e].filter((e) => E(e) === t));
68
+ let r = _(t), i = new Set([...e].filter((e) => D(e) === t));
77
69
  n(i, r.expandedPaths) || r.onExpandedPathsChange(i);
78
70
  });
79
- }, F = (e) => D(e).onFolderPopupPathChange(e), I = (e, t) => D(t).onUploadFiles(e, t), L = (e, t, n) => D(n).onUploadArchive(e, t, n), R = (e, t, n) => D(n).onValidateUpload(e, t, n), z = (e, t, n) => D(t).onCreateFolder(e, t, n), B = (e, t) => D(t.path).onCreateFolderValidate(e, t), V = (e) => O(e, (e) => e.path).forEach(([e, t]) => _(e).onDownloadFiles(t)), H = (e, t) => {
80
- let n = E(t);
81
- O(e, (e) => e.sourceUrl ?? t).forEach(([e, r]) => _(e).onDeleteFiles(r, e === n ? t : ""));
82
- }, U = (e, t) => D(t.path).onRenameValidate(e, t), W = (e) => O(e, (e) => e.path).forEach(([e, t]) => _(e).onUnshareFiles(t)), G = (e) => O(e, (e) => e.path).forEach(([e, t]) => _(e).onRemoveFilesAccess(t)), K = (e) => {
83
- let t = E(e.path) ?? T;
71
+ }, L = (e) => O(e).onFolderPopupPathChange(e), R = (e, t) => O(t).onUploadFiles(e, t), z = (e, t, n) => O(n).onUploadArchive(e, t, n), B = (e, t, n) => O(n).onValidateUpload(e, t, n), V = (e, t, n) => O(t).onCreateFolder(e, t, n), H = (e, t) => O(t.path).onCreateFolderValidate(e, t), U = (e) => k(e, (e) => e.path).forEach(([e, t]) => _(e).onDownloadFiles(t)), W = (e, t) => {
72
+ let n = D(t);
73
+ k(e, (e) => e.sourceUrl ?? t).forEach(([e, r]) => _(e).onDeleteFiles(r, e === n ? t : ""));
74
+ }, G = (e, t) => O(t.path).onRenameValidate(e, t), K = (e) => k(e, (e) => e.path).forEach(([e, t]) => _(e).onUnshareFiles(t)), q = (e) => k(e, (e) => e.path).forEach(([e, t]) => _(e).onRemoveFilesAccess(t)), oe = (e) => {
75
+ let t = D(e.path) ?? E;
84
76
  x(t), _(t).onGetInfo(e);
85
- }, q = (e, t) => {
77
+ }, se = (e, t) => {
86
78
  if (e.length === 0) return;
87
- let n = M(e.map((e) => e.sourceUrl), t);
88
- if (n == null) {
89
- j();
90
- return;
91
- }
92
- _(n).onCopyFiles(e, t);
93
- }, se = (e, t, n) => {
79
+ let n = P(e.map((e) => e.sourceUrl), t);
80
+ n == null ? N() : _(n).onCopyFiles(e, t);
81
+ }, ce = (e, t, n) => {
94
82
  if (e.length === 0) return;
95
- let r = M(e.map((e) => e.sourceUrl ?? t), n);
96
- if (r == null) {
97
- j();
98
- return;
99
- }
100
- _(r).onMoveToFiles(e, t, n);
101
- }, ce = () => f.forEach(({ tab: e }) => _(e).cancelCopyMove());
83
+ let r = P(e.map((e) => e.sourceUrl ?? t), n);
84
+ r == null ? N() : _(r).onMoveToFiles(e, t, n);
85
+ }, le = () => f.forEach(({ tab: e }) => _(e).cancelCopyMove());
102
86
  if (!p) {
103
87
  let e = t.includes(l) ? l : c.MyFiles;
104
88
  return {
@@ -106,49 +90,56 @@ var l = ({ activeTab: l, sections: u, ...d }) => {
106
90
  sectionTab: e
107
91
  };
108
92
  }
109
- let J = f.map(({ tab: e }) => _(e)), Y = _(T), X = _(oe), Z = [Y, ...J].find((e) => e.uploadBatchState != null) ?? Y, Q = (e) => J.some(e), $ = J.map((e) => e.sharedWithMeIds).filter((e) => e != null), le = new Set(f.filter(({ tab: e }) => e !== T && _(e).isLoading).map(({ tab: e }) => _(e).path));
93
+ let J = f.map(({ tab: e }) => _(e)), Y = _(E), X = _(ae), Z = [Y, ...J].find((e) => e.uploadBatchState != null) ?? Y, ue = J.flatMap((e) => e.downloadBatchState?.files ?? []), de = J.some((e) => e.downloadBatchState?.isOpen) ? {
94
+ isOpen: !0,
95
+ files: ue
96
+ } : null, Q = (e) => J.some(e), $ = J.map((e) => e.sharedWithMeIds).filter((e) => e != null), fe = new Set(f.filter(({ tab: e }) => e !== E && _(e).isLoading).map(({ tab: e }) => _(e).path));
110
97
  return {
111
98
  ...Y,
112
99
  items: J.map((e) => e.items[0]).filter((e) => e != null),
113
- onPathChange: N,
100
+ onPathChange: F,
114
101
  expandedPaths: i(J.map((e) => e.expandedPaths)),
115
102
  loadedPaths: i(J.map((e) => e.loadedPaths)),
116
- onExpandedPathsChange: P,
117
- onFolderPopupPathChange: F,
118
- folderPopupLoadingPaths: i([...J.map((e) => e.folderPopupLoadingPaths), le]),
119
- onUploadFiles: I,
120
- onUploadArchive: L,
121
- onValidateUpload: R,
103
+ onExpandedPathsChange: I,
104
+ onFolderPopupPathChange: L,
105
+ folderPopupLoadingPaths: i([...J.map((e) => e.folderPopupLoadingPaths), fe]),
106
+ onUploadFiles: R,
107
+ onUploadArchive: z,
108
+ onValidateUpload: B,
122
109
  uploadBatchState: Z.uploadBatchState,
123
110
  cancelUpload: Z.cancelUpload,
124
111
  cancelUploadFile: Z.cancelUploadFile,
125
112
  clearUploadBatch: Z.clearUploadBatch,
126
- onCreateFolder: z,
127
- onCreateFolderValidate: B,
113
+ onCreateFolder: V,
114
+ onCreateFolderValidate: H,
128
115
  isCreatingFolder: Q((e) => e.isCreatingFolder),
129
- onDownloadFiles: V,
116
+ onDownloadFiles: U,
130
117
  isDownloading: Q((e) => e.isDownloading),
131
- onDeleteFiles: H,
118
+ downloadBatchState: de,
119
+ cancelDownloadFile: (e) => J.forEach((t) => t.cancelDownloadFile(e)),
120
+ cancelAllDownloads: () => J.forEach((e) => e.cancelAllDownloads()),
121
+ clearDownloadBatch: () => J.forEach((e) => e.clearDownloadBatch()),
122
+ onDeleteFiles: W,
132
123
  isDeleting: Q((e) => e.isDeleting),
133
- onRenameValidate: U,
134
- onMoveToFiles: se,
124
+ onRenameValidate: G,
125
+ onMoveToFiles: ce,
135
126
  isRenaming: Q((e) => e.isRenaming),
136
- onCopyFiles: q,
127
+ onCopyFiles: se,
137
128
  isCopying: Q((e) => e.isCopying),
138
129
  isMoving: Q((e) => e.isMoving),
139
- cancelCopyMove: ce,
130
+ cancelCopyMove: le,
140
131
  sharedWithMeIds: $.length > 0 ? $.flat() : void 0,
141
132
  sharedByMePaths: i(J.map((e) => e.sharedByMePaths)),
142
- onUnshareFiles: W,
133
+ onUnshareFiles: K,
143
134
  isUnsharing: Q((e) => e.isUnsharing),
144
- onRemoveFilesAccess: G,
135
+ onRemoveFilesAccess: q,
145
136
  isRemovingAccess: Q((e) => e.isRemovingAccess),
146
137
  fileMetadata: X.fileMetadata,
147
138
  isFileMetadataLoading: X.isFileMetadataLoading,
148
- onGetInfo: K,
139
+ onGetInfo: oe,
149
140
  clearMetadata: X.clearMetadata,
150
141
  isAnyOperationInProgress: Q((e) => e.isAnyOperationInProgress),
151
- sectionTab: T
142
+ sectionTab: E
152
143
  };
153
144
  };
154
145
  //#endregion
@@ -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"}
@@ -10,7 +10,7 @@ var a = [
10
10
  ], o = 2, s = (s, c, l, u) => {
11
11
  let d = t((t) => {
12
12
  let n = (e) => u == null || u.includes(e);
13
- return n(t) ? t === i.All ? e.filter((e) => n(e)).length >= o : !0 : !1;
13
+ return n(t) ? t !== i.All || e.filter((e) => n(e)).length >= o : !1;
14
14
  }, [u]), f = r(() => l?.filter((e) => d(e.value)), [l, d]);
15
15
  return n(() => {
16
16
  d(s) || c(a.find((e) => d(e)) ?? i.MyFiles);
@@ -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"}
@@ -13,11 +13,11 @@ var o = ({ filesApi: o, bucket: s, rootLabel: c, onNotification: l }) => {
13
13
  (async () => {
14
14
  p(!0);
15
15
  try {
16
- let e = r.bucket ?? s, i = t(r, e, c);
17
- d(n(await o.getFileMetadata({
16
+ let e = r.bucket ?? s, i = t(r, e, c), a = await o.getFileMetadata({
18
17
  bucket: e,
19
18
  path: i
20
- }), r));
19
+ });
20
+ d(n(a, r));
21
21
  } catch {
22
22
  l?.({
23
23
  variant: a.Error,
@@ -0,0 +1,77 @@
1
+ import { CreateFolderResponseDto } from '@epam/ai-dial-chat-api-client';
2
+ import { FileDownloadBatchState } from '@epam/ai-dial-chat-shared';
3
+ import { DialCopiedItem, DialDeletedItem, DialFile, DialUploadFileItem, DialFileManagerTabs } from '@epam/ai-dial-react-file-manager';
4
+ import { SharedRootMeta } from '../dial-file-manager.model';
5
+ import { FileManagerNotification, FileNameValidationError, FileOperationSuccessEvent } from '../dial-file-manager.types';
6
+ import { DialFilesApi } from '../dial-files-api';
7
+ import { DownloadDestinationHandlers } from '../download-destination';
8
+ /** Options accepted by `useDialFileMutations`. */
9
+ export interface UseDialFileMutationsOptions {
10
+ /** Injected operation port used for every mutation network call. */
11
+ filesApi: DialFilesApi;
12
+ /** DIAL Core bucket to browse (used only for the my_files tab). */
13
+ bucket: string;
14
+ /** Display name for the root folder node. */
15
+ rootLabel: string;
16
+ /** Active tab — drives owner-bucket resolution for the Shared tab. */
17
+ activeTab: DialFileManagerTabs;
18
+ /** Bucket-relative path of the currently browsed folder, owned by `useDialFileListing`. */
19
+ folderPath: string;
20
+ /** Currently browsed folder node, owned by `useDialFileListing`. */
21
+ currentFolder: DialFile | undefined;
22
+ /** Owner-bucket resolution metadata for the Shared tab, owned by `useDialFileListing`. */
23
+ sharedRootMetaRef: React.RefObject<Map<string, SharedRootMeta>>;
24
+ /** Read-only snapshot of `useDialFileListing`'s per-folder permissions cache. */
25
+ listingPermissionsCache: Map<string, string[] | undefined>;
26
+ /** Deletes the given API-path cache keys so the next fetch re-fetches them. */
27
+ invalidateFolders: (apiPaths: string[]) => void;
28
+ /** Forces `useDialFileListing`'s fetch effect to re-run. */
29
+ bumpRetry: () => void;
30
+ /** Merges a newly created folder into its parent's cache entry, owned by `useDialFileListing`. */
31
+ mergeCreatedFolder: (parentApiPath: string, created: CreateFolderResponseDto, inheritedPermissions?: string[]) => void;
32
+ /** Imperatively navigates the current folder after a rename/delete of the browsed folder. */
33
+ setFolderPath: React.Dispatch<React.SetStateAction<string>>;
34
+ /** Called when a mutation should surface a toast notification. */
35
+ onNotification?: (notification: FileManagerNotification) => void;
36
+ /** Called when a mutation succeeds, instead of invoking an application notification service directly. */
37
+ onOperationSuccess?: (event: FileOperationSuccessEvent) => void;
38
+ /** Host-injected browser "Save As"/auto-download seam for `onDownloadFiles`. */
39
+ downloadDestination: DownloadDestinationHandlers;
40
+ /** Regexp of characters forbidden in file/folder names beyond the path separator. */
41
+ forbiddenSymbolsRegExp?: RegExp;
42
+ }
43
+ /** Values returned by `useDialFileMutations`. */
44
+ export interface UseDialFileMutationsResult {
45
+ isCreatingFolder: boolean;
46
+ isDownloading: boolean;
47
+ isDeleting: boolean;
48
+ isRenaming: boolean;
49
+ isCopying: boolean;
50
+ isMoving: boolean;
51
+ onCreateFolder: (file: DialUploadFileItem, folderPath: string, fileId: string) => Promise<void>;
52
+ onCreateFolderValidate: (name: string, parentFolder: DialFile) => FileNameValidationError | null;
53
+ onDownloadFiles: (dialFiles: DialFile[]) => void;
54
+ /** Every download since the batch was last cleared; `null` when idle. */
55
+ downloadBatchState: FileDownloadBatchState | null;
56
+ /** Aborts one in-flight download by its entry id. */
57
+ cancelDownloadFile: (id: string) => void;
58
+ /** Aborts every in-flight download. */
59
+ cancelAllDownloads: () => void;
60
+ /** Empties the download batch. */
61
+ clearDownloadBatch: () => void;
62
+ onDeleteFiles: (items: DialDeletedItem[], sourceFolder: string) => void;
63
+ onRenameValidate: (value: string, item: DialFile) => FileNameValidationError | null;
64
+ onMoveToFiles: (items: DialCopiedItem[], sourceFolder: string, destinationFolder: string) => void;
65
+ onCopyFiles: (items: DialCopiedItem[], destinationFolder: string) => void;
66
+ cancelCopyMove: () => void;
67
+ }
68
+ /**
69
+ * Manages create-folder, download, delete, rename, copy, and move mutations.
70
+ * Every mutation invalidates the shared listing cache for its affected
71
+ * folders through `invalidateFolders`/`bumpRetry` rather than holding its own
72
+ * cache copy; create-folder additionally uses `mergeCreatedFolder` so a newly
73
+ * created folder appears immediately even when created from a
74
+ * destination-folder popup browsing a different folder than the outer grid.
75
+ */
76
+ export declare const useDialFileMutations: ({ filesApi, bucket, rootLabel, activeTab, folderPath, currentFolder, sharedRootMetaRef, listingPermissionsCache, invalidateFolders, bumpRetry, mergeCreatedFolder, setFolderPath, onNotification, onOperationSuccess, downloadDestination, forbiddenSymbolsRegExp, }: UseDialFileMutationsOptions) => UseDialFileMutationsResult;
77
+ //# sourceMappingURL=useDialFileMutations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDialFileMutations.d.ts","sourceRoot":"","sources":["../../../src/files/useDialFileMutations/useDialFileMutations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,uBAAuB,EAExB,MAAM,+BAA+B,CAAC;AAQvC,OAAO,EACL,KAAK,sBAAsB,EAK5B,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EACV,cAAc,EACd,eAAe,EACf,QAAQ,EACR,kBAAkB,EACnB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,mBAAmB,EAEpB,MAAM,kCAAkC,CAAC;AAkB1C,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EACV,uBAAuB,EACvB,uBAAuB,EACvB,yBAAyB,EAC1B,MAAM,4BAA4B,CAAC;AAMpC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AAc3E,kDAAkD;AAClD,MAAM,WAAW,2BAA2B;IAC1C,oEAAoE;IACpE,QAAQ,EAAE,YAAY,CAAC;IACvB,mEAAmE;IACnE,MAAM,EAAE,MAAM,CAAC;IACf,6CAA6C;IAC7C,SAAS,EAAE,MAAM,CAAC;IAClB,sEAAsE;IACtE,SAAS,EAAE,mBAAmB,CAAC;IAC/B,2FAA2F;IAC3F,UAAU,EAAE,MAAM,CAAC;IACnB,oEAAoE;IACpE,aAAa,EAAE,QAAQ,GAAG,SAAS,CAAC;IACpC,0FAA0F;IAC1F,iBAAiB,EAAE,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC;IAChE,iFAAiF;IACjF,uBAAuB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC,CAAC;IAC3D,+EAA+E;IAC/E,iBAAiB,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAChD,4DAA4D;IAC5D,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,kGAAkG;IAClG,kBAAkB,EAAE,CAClB,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,uBAAuB,EAChC,oBAAoB,CAAC,EAAE,MAAM,EAAE,KAC5B,IAAI,CAAC;IACV,6FAA6F;IAC7F,aAAa,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IAC5D,kEAAkE;IAClE,cAAc,CAAC,EAAE,CAAC,YAAY,EAAE,uBAAuB,KAAK,IAAI,CAAC;IACjE,yGAAyG;IACzG,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC;IAChE,gFAAgF;IAChF,mBAAmB,EAAE,2BAA2B,CAAC;IACjD,qFAAqF;IACrF,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC;AAUD,iDAAiD;AACjD,MAAM,WAAW,0BAA0B;IACzC,gBAAgB,EAAE,OAAO,CAAC;IAC1B,aAAa,EAAE,OAAO,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,cAAc,EAAE,CACd,IAAI,EAAE,kBAAkB,EACxB,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,MAAM,KACX,OAAO,CAAC,IAAI,CAAC,CAAC;IACnB,sBAAsB,EAAE,CACtB,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,QAAQ,KACnB,uBAAuB,GAAG,IAAI,CAAC;IACpC,eAAe,EAAE,CAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,IAAI,CAAC;IACjD,yEAAyE;IACzE,kBAAkB,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAClD,qDAAqD;IACrD,kBAAkB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,uCAAuC;IACvC,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,kCAAkC;IAClC,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,aAAa,EAAE,CAAC,KAAK,EAAE,eAAe,EAAE,EAAE,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IACxE,gBAAgB,EAAE,CAChB,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,QAAQ,KACX,uBAAuB,GAAG,IAAI,CAAC;IACpC,aAAa,EAAE,CACb,KAAK,EAAE,cAAc,EAAE,EACvB,YAAY,EAAE,MAAM,EACpB,iBAAiB,EAAE,MAAM,KACtB,IAAI,CAAC;IACV,WAAW,EAAE,CAAC,KAAK,EAAE,cAAc,EAAE,EAAE,iBAAiB,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1E,cAAc,EAAE,MAAM,IAAI,CAAC;CAC5B;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,GAAI,sQAiBlC,2BAA2B,KAAG,0BAy3BhC,CAAC"}