@epam/ai-dial-chat-hooks 1.1.0-dev.290 → 1.1.0-dev.293

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 (30) hide show
  1. package/catalog/map-deployment-limits-to-catalog.d.ts +38 -0
  2. package/catalog/map-deployment-limits-to-catalog.d.ts.map +1 -0
  3. package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.d.ts +37 -0
  4. package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.d.ts.map +1 -0
  5. package/conversation/conversation-transfer/queue.d.ts +1 -1
  6. package/conversation/conversation-transfer/queue.d.ts.map +1 -1
  7. package/conversation/conversation-transfer/types.d.ts +1 -27
  8. package/conversation/conversation-transfer/types.d.ts.map +1 -1
  9. package/conversation/deriveConversationRowActionState/deriveConversationRowActionState.d.ts +39 -0
  10. package/conversation/deriveConversationRowActionState/deriveConversationRowActionState.d.ts.map +1 -0
  11. package/conversation/useActiveConversationSync/useActiveConversationSync.d.ts +34 -0
  12. package/conversation/useActiveConversationSync/useActiveConversationSync.d.ts.map +1 -0
  13. package/conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.d.ts +37 -0
  14. package/conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.d.ts.map +1 -0
  15. package/conversation/useConversationLookupMaps/useConversationLookupMaps.d.ts +24 -0
  16. package/conversation/useConversationLookupMaps/useConversationLookupMaps.d.ts.map +1 -0
  17. package/conversation/useConversationPanelItems/useConversationPanelItems.d.ts +58 -0
  18. package/conversation/useConversationPanelItems/useConversationPanelItems.d.ts.map +1 -0
  19. package/conversation/useImportFilePicker/useImportFilePicker.d.ts +32 -0
  20. package/conversation/useImportFilePicker/useImportFilePicker.d.ts.map +1 -0
  21. package/index.d.ts +10 -0
  22. package/index.d.ts.map +1 -1
  23. package/index.js +2518 -2223
  24. package/package.json +14 -14
  25. package/prompt/usePromptsState/usePromptsState.d.ts +34 -0
  26. package/prompt/usePromptsState/usePromptsState.d.ts.map +1 -0
  27. package/shared/string-utils.d.ts +1 -8
  28. package/shared/string-utils.d.ts.map +1 -1
  29. package/skill/useSkillsState/useSkillsState.d.ts +35 -0
  30. package/skill/useSkillsState/useSkillsState.d.ts.map +1 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-chat-hooks",
3
3
  "description": "Framework-level React hooks extracted from AI DIAL Chat for building custom chat interfaces",
4
- "version": "1.1.0-dev.290",
4
+ "version": "1.1.0-dev.293",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -23,20 +23,20 @@
23
23
  },
24
24
  "peerDependencies": {
25
25
  "react": "^19.2.6",
26
- "@epam/ai-dial-attachment-canvas": "1.1.0-dev.290",
27
- "@epam/ai-dial-attachment-input": "1.1.0-dev.290",
28
- "@epam/ai-dial-catalog": "1.1.0-dev.290",
29
- "@epam/ai-dial-chat-api-client": "1.1.0-dev.290",
30
- "@epam/ai-dial-chat-overlay": "1.1.0-dev.290",
31
- "@epam/ai-dial-chat-shared": "1.1.0-dev.290",
32
- "@epam/ai-dial-deployment-creation-form": "1.1.0-dev.290",
33
- "@epam/ai-dial-publish-panel": "1.1.0-dev.290",
34
- "@epam/ai-dial-quotations": "1.1.0-dev.290",
26
+ "@epam/ai-dial-attachment-canvas": "1.1.0-dev.293",
27
+ "@epam/ai-dial-attachment-input": "1.1.0-dev.293",
28
+ "@epam/ai-dial-catalog": "1.1.0-dev.293",
29
+ "@epam/ai-dial-chat-api-client": "1.1.0-dev.293",
30
+ "@epam/ai-dial-chat-overlay": "1.1.0-dev.293",
31
+ "@epam/ai-dial-chat-shared": "1.1.0-dev.293",
32
+ "@epam/ai-dial-deployment-creation-form": "1.1.0-dev.293",
33
+ "@epam/ai-dial-publish-panel": "1.1.0-dev.293",
34
+ "@epam/ai-dial-quotations": "1.1.0-dev.293",
35
35
  "@epam/ai-dial-react-file-manager": "*",
36
- "@epam/ai-dial-scheduled-tasks": "1.1.0-dev.290",
37
- "@epam/ai-dial-share": "1.1.0-dev.290",
38
- "@epam/ai-dial-skill-editor": "1.1.0-dev.290",
39
- "@epam/ai-dial-source-panel": "1.1.0-dev.290",
36
+ "@epam/ai-dial-scheduled-tasks": "1.1.0-dev.293",
37
+ "@epam/ai-dial-share": "1.1.0-dev.293",
38
+ "@epam/ai-dial-skill-editor": "1.1.0-dev.293",
39
+ "@epam/ai-dial-source-panel": "1.1.0-dev.293",
40
40
  "@epam/ai-dial-ui-kit": "*",
41
41
  "ag-grid-community": "^35.3.0",
42
42
  "fflate": "^0.8.3"
@@ -0,0 +1,34 @@
1
+ import { PromptFolderResponseDto, PromptListResponseDto, PromptResponseDto } from '@epam/ai-dial-chat-api-client';
2
+ /** Parameters for {@link usePromptsState}. */
3
+ export interface UsePromptsStateParams {
4
+ /** Fetches the aggregate prompt listing from the server. */
5
+ listPrompts: () => Promise<PromptListResponseDto>;
6
+ }
7
+ /** Result returned by {@link usePromptsState}. */
8
+ export interface UsePromptsStateResult {
9
+ /** The caller's own prompts. */
10
+ prompts: PromptResponseDto[];
11
+ /** Folders in the caller's own prompt namespace. */
12
+ folders: PromptFolderResponseDto[];
13
+ /** Prompts other users have shared with the caller. */
14
+ sharedWithMe: PromptResponseDto[];
15
+ /** Organisation-wide (public) prompts, read-only for every user. */
16
+ publicPrompts: PromptResponseDto[];
17
+ /** Folders in the organisation prompt namespace. */
18
+ publicFolders: PromptFolderResponseDto[];
19
+ /** True until the aggregate prompt listing has settled. */
20
+ isLoading: boolean;
21
+ /** Rejection reason of the most recent failed list request, or `null`. */
22
+ error: unknown;
23
+ /** Re-reads personal, shared-with-me, and organisation prompts. */
24
+ refetch: () => Promise<void>;
25
+ /** Compatibility alias for the aggregate refetch — same function reference as `refetch`. */
26
+ refetchPublicPrompts: () => Promise<void>;
27
+ }
28
+ /**
29
+ * Fetches all prompt namespaces (personal, shared, public) with a single
30
+ * aggregate request. Exposes `refetch` / `refetchPublicPrompts` for
31
+ * manual refresh. Does not import any app context, routing, or i18n.
32
+ */
33
+ export declare const usePromptsState: ({ listPrompts, }: UsePromptsStateParams) => UsePromptsStateResult;
34
+ //# sourceMappingURL=usePromptsState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePromptsState.d.ts","sourceRoot":"","sources":["../../../src/prompt/usePromptsState/usePromptsState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,qBAAqB,EACrB,iBAAiB,EAClB,MAAM,+BAA+B,CAAC;AAGvC,8CAA8C;AAC9C,MAAM,WAAW,qBAAqB;IACpC,4DAA4D;IAC5D,WAAW,EAAE,MAAM,OAAO,CAAC,qBAAqB,CAAC,CAAC;CACnD;AAED,kDAAkD;AAClD,MAAM,WAAW,qBAAqB;IACpC,gCAAgC;IAChC,OAAO,EAAE,iBAAiB,EAAE,CAAC;IAC7B,oDAAoD;IACpD,OAAO,EAAE,uBAAuB,EAAE,CAAC;IACnC,uDAAuD;IACvD,YAAY,EAAE,iBAAiB,EAAE,CAAC;IAClC,oEAAoE;IACpE,aAAa,EAAE,iBAAiB,EAAE,CAAC;IACnC,oDAAoD;IACpD,aAAa,EAAE,uBAAuB,EAAE,CAAC;IACzC,2DAA2D;IAC3D,SAAS,EAAE,OAAO,CAAC;IACnB,0EAA0E;IAC1E,KAAK,EAAE,OAAO,CAAC;IACf,mEAAmE;IACnE,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7B,4FAA4F;IAC5F,oBAAoB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3C;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAAI,kBAE7B,qBAAqB,KAAG,qBA6E1B,CAAC"}
@@ -1,11 +1,4 @@
1
- /** Characters prohibited in conversation names: tab, ", :, ;, /, \, ,, =, {, }, %, & */
2
- export declare const PROHIBITED_CONVERSATION_NAME_CHARS_RE: RegExp;
3
- /** Strips characters DIAL Core rejects in a conversation name. */
4
- export declare const sanitizeConversationName: (name: string) => string;
5
- /** Strips trailing `.` characters from a name. */
6
- export declare const stripTrailingDots: (name: string) => string;
7
- /** Returns the UTF-8 byte length of a string (may exceed its character/code-unit length). */
8
- export declare const getUtf8ByteLength: (str: string) => number;
1
+ export { getUtf8ByteLength, sanitizeConversationName, stripTrailingDots, PROHIBITED_CONVERSATION_NAME_CHARS_RE, } from '@epam/ai-dial-chat-shared';
9
2
  /** Case-insensitive substring match. */
10
3
  export declare const includesIgnoreCase: (str: string, query: string) => boolean;
11
4
  /** Decodes a URI-encoded path segment, returning the original string if decoding fails. */
@@ -1 +1 @@
1
- {"version":3,"file":"string-utils.d.ts","sourceRoot":"","sources":["../../src/shared/string-utils.ts"],"names":[],"mappings":"AAAA,wFAAwF;AACxF,eAAO,MAAM,qCAAqC,QAAsB,CAAC;AAEzE,kEAAkE;AAClE,eAAO,MAAM,wBAAwB,GAAI,MAAM,MAAM,KAAG,MACC,CAAC;AAE1D,kDAAkD;AAClD,eAAO,MAAM,iBAAiB,GAAI,MAAM,MAAM,KAAG,MACvB,CAAC;AAE3B,6FAA6F;AAC7F,eAAO,MAAM,iBAAiB,GAAI,KAAK,MAAM,KAAG,MACN,CAAC;AAE3C,wCAAwC;AACxC,eAAO,MAAM,kBAAkB,GAAI,KAAK,MAAM,EAAE,OAAO,MAAM,KAAG,OACf,CAAC;AAElD,2FAA2F;AAC3F,eAAO,MAAM,aAAa,GAAI,MAAM,MAAM,KAAG,MAM5C,CAAC;AAEF,iGAAiG;AACjG,eAAO,MAAM,sBAAsB,SATC,MAAM,KAAG,MASM,CAAC;AAEpD,+DAA+D;AAC/D,eAAO,MAAM,uBAAuB,GAAI,MAAM,MAAM,KAAG,MACvB,CAAC"}
1
+ {"version":3,"file":"string-utils.d.ts","sourceRoot":"","sources":["../../src/shared/string-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,wBAAwB,EACxB,iBAAiB,EACjB,qCAAqC,GACtC,MAAM,2BAA2B,CAAC;AAEnC,wCAAwC;AACxC,eAAO,MAAM,kBAAkB,GAAI,KAAK,MAAM,EAAE,OAAO,MAAM,KAAG,OACf,CAAC;AAElD,2FAA2F;AAC3F,eAAO,MAAM,aAAa,GAAI,MAAM,MAAM,KAAG,MAM5C,CAAC;AAEF,iGAAiG;AACjG,eAAO,MAAM,sBAAsB,SATC,MAAM,KAAG,MASM,CAAC;AAEpD,+DAA+D;AAC/D,eAAO,MAAM,uBAAuB,GAAI,MAAM,MAAM,KAAG,MACvB,CAAC"}
@@ -0,0 +1,35 @@
1
+ import { SkillCatalogListResponseDto, SkillMetadataItemDto } from '@epam/ai-dial-chat-api-client';
2
+ /** Parameters for {@link useSkillsState}. */
3
+ export interface UseSkillsStateParams {
4
+ /** Fetches the aggregate skill listing from the server. */
5
+ listSkills: () => Promise<SkillCatalogListResponseDto>;
6
+ /** Whether the Skills feature is enabled in the current overlay/tenant config. */
7
+ enabled: boolean;
8
+ /** Whether the user session is ready for API calls (auth has settled). */
9
+ ready: boolean;
10
+ }
11
+ /** Result returned by {@link useSkillsState}. */
12
+ export interface UseSkillsStateResult {
13
+ /** Skills in the caller's own bucket. */
14
+ skills: SkillMetadataItemDto[];
15
+ /** Skills in the organisation bucket. */
16
+ publicSkills: SkillMetadataItemDto[];
17
+ /** Skills other users shared with the caller. */
18
+ sharedWithMe: SkillMetadataItemDto[];
19
+ /** True until the aggregate listing has settled. */
20
+ isLoading: boolean;
21
+ /** Rejection reason of the most recent failed listing, or `null`. */
22
+ error: unknown;
23
+ /** Re-reads personal, shared, and organisation skills. */
24
+ refetch: () => Promise<void>;
25
+ /** Upserts a single skill into the shared-with-me list by URL identity. */
26
+ mergeSharedSkill: (item: SkillMetadataItemDto) => void;
27
+ }
28
+ /**
29
+ * Fetches all skill namespaces with a gated single request: clears state
30
+ * immediately when `enabled` is false, defers the fetch until `ready` is true,
31
+ * and exposes `refetch` / `mergeSharedSkill` for manual updates.
32
+ * Does not import any feature-flag hook, auth enum, or app context.
33
+ */
34
+ export declare const useSkillsState: ({ listSkills, enabled, ready, }: UseSkillsStateParams) => UseSkillsStateResult;
35
+ //# sourceMappingURL=useSkillsState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSkillsState.d.ts","sourceRoot":"","sources":["../../../src/skill/useSkillsState/useSkillsState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,2BAA2B,EAC3B,oBAAoB,EACrB,MAAM,+BAA+B,CAAC;AAGvC,6CAA6C;AAC7C,MAAM,WAAW,oBAAoB;IACnC,2DAA2D;IAC3D,UAAU,EAAE,MAAM,OAAO,CAAC,2BAA2B,CAAC,CAAC;IACvD,kFAAkF;IAClF,OAAO,EAAE,OAAO,CAAC;IACjB,0EAA0E;IAC1E,KAAK,EAAE,OAAO,CAAC;CAChB;AAED,iDAAiD;AACjD,MAAM,WAAW,oBAAoB;IACnC,yCAAyC;IACzC,MAAM,EAAE,oBAAoB,EAAE,CAAC;IAC/B,yCAAyC;IACzC,YAAY,EAAE,oBAAoB,EAAE,CAAC;IACrC,iDAAiD;IACjD,YAAY,EAAE,oBAAoB,EAAE,CAAC;IACrC,oDAAoD;IACpD,SAAS,EAAE,OAAO,CAAC;IACnB,qEAAqE;IACrE,KAAK,EAAE,OAAO,CAAC;IACf,0DAA0D;IAC1D,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7B,2EAA2E;IAC3E,gBAAgB,EAAE,CAAC,IAAI,EAAE,oBAAoB,KAAK,IAAI,CAAC;CACxD;AAED;;;;;GAKG;AACH,eAAO,MAAM,cAAc,GAAI,iCAI5B,oBAAoB,KAAG,oBAqFzB,CAAC"}