@epam/ai-dial-chat-hooks 1.2.5 → 1.3.0-dev.102

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 (70) hide show
  1. package/catalog/catalog-derivations.d.ts +1 -1
  2. package/catalog/catalog-derivations.d.ts.map +1 -1
  3. package/catalog/catalog-derivations.js +1 -1
  4. package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.d.ts +8 -1
  5. package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.d.ts.map +1 -1
  6. package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.js +57 -38
  7. package/conversation/conversation-draft/conversation-draft-store.d.ts +21 -0
  8. package/conversation/conversation-draft/conversation-draft-store.d.ts.map +1 -0
  9. package/conversation/conversation-draft/conversation-draft-store.js +84 -0
  10. package/conversation/conversation-draft/conversation-draft.d.ts +48 -0
  11. package/conversation/conversation-draft/conversation-draft.d.ts.map +1 -0
  12. package/conversation/create-chat-stream-api.d.ts +6 -0
  13. package/conversation/create-chat-stream-api.d.ts.map +1 -1
  14. package/conversation/create-chat-stream-api.js +28 -23
  15. package/conversation/useConversationComposerDraft/useConversationComposerDraft.d.ts +39 -0
  16. package/conversation/useConversationComposerDraft/useConversationComposerDraft.d.ts.map +1 -0
  17. package/conversation/useConversationComposerDraft/useConversationComposerDraft.js +132 -0
  18. package/conversation/useConversationStream/useConversationStream.d.ts.map +1 -1
  19. package/conversation/useConversationStream/useConversationStream.js +233 -219
  20. package/conversation.js +34 -32
  21. package/entry-points/conversation.d.ts +3 -0
  22. package/entry-points/conversation.d.ts.map +1 -1
  23. package/entry-points/offline-credentials.d.ts +5 -0
  24. package/entry-points/offline-credentials.d.ts.map +1 -0
  25. package/entry-points/scheduled-tasks.d.ts +1 -0
  26. package/entry-points/scheduled-tasks.d.ts.map +1 -1
  27. package/file-manager.js +21 -21
  28. package/files/dial-file-manager-mapping.util.d.ts +17 -1
  29. package/files/dial-file-manager-mapping.util.d.ts.map +1 -1
  30. package/files/dial-file-manager-mapping.util.js +77 -62
  31. package/files/useDialFileListing/useDialFileListing.d.ts.map +1 -1
  32. package/files/useDialFileListing/useDialFileListing.js +56 -53
  33. package/files/useDialFileMutations/useDialFileMutations.d.ts.map +1 -1
  34. package/files/useDialFileMutations/useDialFileMutations.js +206 -204
  35. package/index.d.ts +8 -0
  36. package/index.d.ts.map +1 -1
  37. package/index.js +131 -124
  38. package/mcp-apps/mcp-apps-api-client.d.ts.map +1 -1
  39. package/mcp-apps/mcp-apps-api-client.js +18 -17
  40. package/mcp-apps/useMcpAppTools/useMcpAppTools.d.ts.map +1 -1
  41. package/mcp-apps/useMcpAppTools/useMcpAppTools.js +29 -29
  42. package/oauth/popup.d.ts.map +1 -1
  43. package/oauth/popup.js +19 -17
  44. package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.d.ts.map +1 -1
  45. package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.js +40 -38
  46. package/offline-credentials/map-offline-credentials-response.d.ts +17 -0
  47. package/offline-credentials/map-offline-credentials-response.d.ts.map +1 -0
  48. package/offline-credentials/map-offline-credentials-response.js +15 -0
  49. package/offline-credentials/useOfflineCredentialsAuth/useOfflineCredentialsAuth.d.ts +58 -0
  50. package/offline-credentials/useOfflineCredentialsAuth/useOfflineCredentialsAuth.d.ts.map +1 -0
  51. package/offline-credentials/useOfflineCredentialsAuth/useOfflineCredentialsAuth.js +37 -0
  52. package/offline-credentials/useOfflineCredentialsGate/useOfflineCredentialsGate.d.ts +57 -0
  53. package/offline-credentials/useOfflineCredentialsGate/useOfflineCredentialsGate.d.ts.map +1 -0
  54. package/offline-credentials/useOfflineCredentialsGate/useOfflineCredentialsGate.js +34 -0
  55. package/offline-credentials/useOfflineCredentialsLogin/useOfflineCredentialsLogin.d.ts +28 -0
  56. package/offline-credentials/useOfflineCredentialsLogin/useOfflineCredentialsLogin.d.ts.map +1 -0
  57. package/offline-credentials/useOfflineCredentialsLogin/useOfflineCredentialsLogin.js +29 -0
  58. package/offline-credentials.d.ts +2 -0
  59. package/offline-credentials.js +5 -0
  60. package/package.json +23 -18
  61. package/scheduled-task/check-scheduled-task-auth-session-error.d.ts +27 -0
  62. package/scheduled-task/check-scheduled-task-auth-session-error.d.ts.map +1 -0
  63. package/scheduled-task/check-scheduled-task-auth-session-error.js +17 -0
  64. package/scheduled-tasks.js +2 -1
  65. package/shared/application-schema.d.ts +0 -2
  66. package/shared/application-schema.d.ts.map +1 -1
  67. package/shared/application-schema.js +2 -2
  68. package/useShareLink/useShareLink.d.ts.map +1 -1
  69. package/useShareLink/useShareLink.js +1 -0
  70. package/utils.js +10 -10
package/utils.js CHANGED
@@ -5,13 +5,13 @@ import { includesIgnoreCase as o, safeDecodeURI as s, safeDecodeURIComponent as
5
5
  import { appendLocaleCode as d, buildAdditionalLocaleOptions as f, composeLocalePayload as p, decomposeLocalizedFields as m, resolveLocalizedText as h, toBaseLocale as g } from "./shared/locale.js";
6
6
  import { formatCalendarDate as _, padTwoDigits as v } from "./shared/formatting.js";
7
7
  import { PromptSource as y, parsePromptResourceUrl as b } from "./prompt/prompt-resource.js";
8
- import { getRunnerSchemas as x, isCustomAppSchema as S, isMindMapSchema as C, isQuickAppSchema as w } from "./shared/application-schema.js";
9
- import { buildPromptExportEnvelope as T, buildPromptExportFileName as E, serializePromptExport as D } from "./prompt/export-prompt.js";
10
- import { PROMPT_CONTENT_MAX_LENGTH as O, PROMPT_COUNTER_ANNOUNCE_THRESHOLD as k, PROMPT_DESCRIPTION_MAX_LENGTH as A, PROMPT_NAME_MAX_LENGTH as j, PromptFieldError as M, buildPromptPath as N, getRemainingCharacters as P, validatePromptContent as F, validatePromptDescription as I, validatePromptName as L } from "./prompt/prompt.js";
11
- import { usePromptsState as R } from "./prompt/usePromptsState/usePromptsState.js";
12
- import { apSchedulerDayToJsDay as z, jsDayToApSchedulerDay as B } from "./shared/cron-weekday.js";
13
- import { getBrowserTimezone as V } from "./shared/browser-timezone.js";
14
- import { isValidAbsoluteUrl as H, isValidFeaturesData as U, parseFeaturesData as W } from "./shared/custom-apps.js";
15
- import { buildExternalServiceScopeId as G, getExternalServiceFallbackName as K, parseExternalServiceUrl as q } from "./shared/external-services.js";
16
- import { useUsageData as J } from "./usage/useUsageData/useUsageData.js";
17
- export { O as PROMPT_CONTENT_MAX_LENGTH, k as PROMPT_COUNTER_ANNOUNCE_THRESHOLD, A as PROMPT_DESCRIPTION_MAX_LENGTH, j as PROMPT_NAME_MAX_LENGTH, M as PromptFieldError, y as PromptSource, z as apSchedulerDayToJsDay, d as appendLocaleCode, f as buildAdditionalLocaleOptions, G as buildExternalServiceScopeId, T as buildPromptExportEnvelope, E as buildPromptExportFileName, N as buildPromptPath, p as composeLocalePayload, i as createCsrfMiddleware, a as createUnauthorizedMiddleware, m as decomposeLocalizedFields, _ as formatCalendarDate, e as getApiErrorDetails, t as getApiErrorMessage, n as getApiErrorStatus, V as getBrowserTimezone, K as getExternalServiceFallbackName, P as getRemainingCharacters, x as getRunnerSchemas, o as includesIgnoreCase, r as isConversationNotFoundError, S as isCustomAppSchema, C as isMindMapSchema, w as isQuickAppSchema, H as isValidAbsoluteUrl, U as isValidFeaturesData, B as jsDayToApSchedulerDay, v as padTwoDigits, q as parseExternalServiceUrl, W as parseFeaturesData, b as parsePromptResourceUrl, h as resolveLocalizedText, s as safeDecodeURI, c as safeDecodeURIComponent, D as serializePromptExport, l as stripSurroundingSlashes, u as stripTrailingSlashes, g as toBaseLocale, R as usePromptsState, J as useUsageData, F as validatePromptContent, I as validatePromptDescription, L as validatePromptName };
8
+ import { getRunnerSchemas as x, isCustomAppSchema as S, isQuickAppSchema as C } from "./shared/application-schema.js";
9
+ import { buildPromptExportEnvelope as w, buildPromptExportFileName as T, serializePromptExport as E } from "./prompt/export-prompt.js";
10
+ import { PROMPT_CONTENT_MAX_LENGTH as D, PROMPT_COUNTER_ANNOUNCE_THRESHOLD as O, PROMPT_DESCRIPTION_MAX_LENGTH as k, PROMPT_NAME_MAX_LENGTH as A, PromptFieldError as j, buildPromptPath as M, getRemainingCharacters as N, validatePromptContent as P, validatePromptDescription as F, validatePromptName as I } from "./prompt/prompt.js";
11
+ import { usePromptsState as L } from "./prompt/usePromptsState/usePromptsState.js";
12
+ import { apSchedulerDayToJsDay as R, jsDayToApSchedulerDay as z } from "./shared/cron-weekday.js";
13
+ import { getBrowserTimezone as B } from "./shared/browser-timezone.js";
14
+ import { isValidAbsoluteUrl as V, isValidFeaturesData as H, parseFeaturesData as U } from "./shared/custom-apps.js";
15
+ import { buildExternalServiceScopeId as W, getExternalServiceFallbackName as G, parseExternalServiceUrl as K } from "./shared/external-services.js";
16
+ import { useUsageData as q } from "./usage/useUsageData/useUsageData.js";
17
+ export { D as PROMPT_CONTENT_MAX_LENGTH, O as PROMPT_COUNTER_ANNOUNCE_THRESHOLD, k as PROMPT_DESCRIPTION_MAX_LENGTH, A as PROMPT_NAME_MAX_LENGTH, j as PromptFieldError, y as PromptSource, R as apSchedulerDayToJsDay, d as appendLocaleCode, f as buildAdditionalLocaleOptions, W as buildExternalServiceScopeId, w as buildPromptExportEnvelope, T as buildPromptExportFileName, M as buildPromptPath, p as composeLocalePayload, i as createCsrfMiddleware, a as createUnauthorizedMiddleware, m as decomposeLocalizedFields, _ as formatCalendarDate, e as getApiErrorDetails, t as getApiErrorMessage, n as getApiErrorStatus, B as getBrowserTimezone, G as getExternalServiceFallbackName, N as getRemainingCharacters, x as getRunnerSchemas, o as includesIgnoreCase, r as isConversationNotFoundError, S as isCustomAppSchema, C as isQuickAppSchema, V as isValidAbsoluteUrl, H as isValidFeaturesData, z as jsDayToApSchedulerDay, v as padTwoDigits, K as parseExternalServiceUrl, U as parseFeaturesData, b as parsePromptResourceUrl, h as resolveLocalizedText, s as safeDecodeURI, c as safeDecodeURIComponent, E as serializePromptExport, l as stripSurroundingSlashes, u as stripTrailingSlashes, g as toBaseLocale, L as usePromptsState, q as useUsageData, P as validatePromptContent, F as validatePromptDescription, I as validatePromptName };