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

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 (32) 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 +2552 -2252
  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
  31. package/useToolsMenu/useToolsMenu.d.ts +7 -16
  32. package/useToolsMenu/useToolsMenu.d.ts.map +1 -1
@@ -0,0 +1,38 @@
1
+ import { CatalogItemLimits } from '@epam/ai-dial-catalog';
2
+ import { DeploymentLimitsResponseDto } from '@epam/ai-dial-chat-api-client';
3
+ /** Labels and formatter callbacks for the deployment-limits mapping utility. */
4
+ export interface DeploymentLimitsLabels {
5
+ /** Label for the requests-per-hour stat row. */
6
+ requestsPerHour: string;
7
+ /** Label for the requests-per-day stat row. */
8
+ requestsPerDay: string;
9
+ /** Label for the tokens-per-minute stat row. */
10
+ tokensPerMinute: string;
11
+ /** Label for the tokens-per-day stat row. */
12
+ tokensPerDay: string;
13
+ /** Label for the tokens-per-week stat row. */
14
+ tokensPerWeek: string;
15
+ /** Label for the tokens-per-month stat row. */
16
+ tokensPerMonth: string;
17
+ /** Label for the cost-per-minute stat row. */
18
+ costPerMinute: string;
19
+ /** Label for the cost-per-day stat row. */
20
+ costPerDay: string;
21
+ /** Label for the cost-per-week stat row. */
22
+ costPerWeek: string;
23
+ /** Label for the cost-per-month stat row. */
24
+ costPerMonth: string;
25
+ /** Display value shown when a stat's total is unlimited. */
26
+ unlimitedValue: string;
27
+ /** Formats the combined used/total display value for a non-unlimited row. */
28
+ formatValueLabel: (used: string, total: string) => string;
29
+ /** Formats the ARIA label for a progress row. */
30
+ formatProgressAriaLabel: (params: {
31
+ label: string;
32
+ used: string;
33
+ total: string;
34
+ }) => string;
35
+ }
36
+ /** Maps a deployment limits DTO to display-ready catalog limits, or `undefined` when no qualifying stats exist. */
37
+ export declare const mapDeploymentLimitsDtoToCatalogLimits: (dto: DeploymentLimitsResponseDto | undefined, labels: DeploymentLimitsLabels) => CatalogItemLimits | undefined;
38
+ //# sourceMappingURL=map-deployment-limits-to-catalog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"map-deployment-limits-to-catalog.d.ts","sourceRoot":"","sources":["../../src/catalog/map-deployment-limits-to-catalog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EAElB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EACV,2BAA2B,EAE5B,MAAM,+BAA+B,CAAC;AAEvC,gFAAgF;AAChF,MAAM,WAAW,sBAAsB;IACrC,gDAAgD;IAChD,eAAe,EAAE,MAAM,CAAC;IACxB,+CAA+C;IAC/C,cAAc,EAAE,MAAM,CAAC;IACvB,gDAAgD;IAChD,eAAe,EAAE,MAAM,CAAC;IACxB,6CAA6C;IAC7C,YAAY,EAAE,MAAM,CAAC;IACrB,8CAA8C;IAC9C,aAAa,EAAE,MAAM,CAAC;IACtB,+CAA+C;IAC/C,cAAc,EAAE,MAAM,CAAC;IACvB,8CAA8C;IAC9C,aAAa,EAAE,MAAM,CAAC;IACtB,2CAA2C;IAC3C,UAAU,EAAE,MAAM,CAAC;IACnB,4CAA4C;IAC5C,WAAW,EAAE,MAAM,CAAC;IACpB,6CAA6C;IAC7C,YAAY,EAAE,MAAM,CAAC;IACrB,4DAA4D;IAC5D,cAAc,EAAE,MAAM,CAAC;IACvB,6EAA6E;IAC7E,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAC1D,iDAAiD;IACjD,uBAAuB,EAAE,CAAC,MAAM,EAAE;QAChC,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;KACf,KAAK,MAAM,CAAC;CACd;AAmFD,mHAAmH;AACnH,eAAO,MAAM,qCAAqC,GAChD,KAAK,2BAA2B,GAAG,SAAS,EAC5C,QAAQ,sBAAsB,KAC7B,iBAAiB,GAAG,SAsBtB,CAAC"}
@@ -0,0 +1,37 @@
1
+ /** Entity kind used to route a favorite toggle to the correct backend section. */
2
+ export declare enum FavoriteEntityType {
3
+ Deployment = "deployment",
4
+ Toolset = "toolset",
5
+ Prompt = "prompt",
6
+ Skill = "skill"
7
+ }
8
+ /** Raw favorites payload returned by `loadFavorites`. */
9
+ export interface FavoritesPayload {
10
+ deployments: string[];
11
+ toolsets: string[];
12
+ prompts: string[];
13
+ skills: string[];
14
+ }
15
+ /** Parameters for {@link useFavoriteEntitiesState}. */
16
+ export interface UseFavoriteEntitiesStateParams {
17
+ /** Fetches the initial set of favorite ids from the server. */
18
+ loadFavorites: () => Promise<FavoritesPayload>;
19
+ /** Persists a single favorite toggle for the given entity type. */
20
+ updateFavorite: (id: string, isFavorite: boolean, entityType: FavoriteEntityType) => Promise<void>;
21
+ }
22
+ /** Result returned by {@link useFavoriteEntitiesState}. */
23
+ export interface UseFavoriteEntitiesStateResult {
24
+ /** Union of all installed entity ids across every category. */
25
+ favoriteIds: ReadonlySet<string>;
26
+ /** True until the initial load has settled. */
27
+ isLoading: boolean;
28
+ /** Optimistically toggles a favorite and rolls back on persistence failure. */
29
+ toggleFavorite: (id: string, isFavorite: boolean, entityType?: FavoriteEntityType) => Promise<void>;
30
+ }
31
+ /**
32
+ * Manages the set of favorited entity ids: loads on mount, applies optimistic
33
+ * toggle with exact-inverse rollback on failure, and re-throws persistence
34
+ * errors so callers can react. Does not import any app context or server-api.
35
+ */
36
+ export declare const useFavoriteEntitiesState: ({ loadFavorites, updateFavorite, }: UseFavoriteEntitiesStateParams) => UseFavoriteEntitiesStateResult;
37
+ //# sourceMappingURL=useFavoriteEntitiesState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFavoriteEntitiesState.d.ts","sourceRoot":"","sources":["../../../src/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.ts"],"names":[],"mappings":"AAEA,kFAAkF;AAClF,oBAAY,kBAAkB;IAC5B,UAAU,eAAe;IACzB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,KAAK,UAAU;CAChB;AAED,yDAAyD;AACzD,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,uDAAuD;AACvD,MAAM,WAAW,8BAA8B;IAC7C,+DAA+D;IAC/D,aAAa,EAAE,MAAM,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC/C,mEAAmE;IACnE,cAAc,EAAE,CACd,EAAE,EAAE,MAAM,EACV,UAAU,EAAE,OAAO,EACnB,UAAU,EAAE,kBAAkB,KAC3B,OAAO,CAAC,IAAI,CAAC,CAAC;CACpB;AAED,2DAA2D;AAC3D,MAAM,WAAW,8BAA8B;IAC7C,+DAA+D;IAC/D,WAAW,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACjC,+CAA+C;IAC/C,SAAS,EAAE,OAAO,CAAC;IACnB,+EAA+E;IAC/E,cAAc,EAAE,CACd,EAAE,EAAE,MAAM,EACV,UAAU,EAAE,OAAO,EACnB,UAAU,CAAC,EAAE,kBAAkB,KAC5B,OAAO,CAAC,IAAI,CAAC,CAAC;CACpB;AAED;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,GAAI,oCAGtC,8BAA8B,KAAG,8BA4EnC,CAAC"}
@@ -1,4 +1,4 @@
1
- import { ConversationTransferJob, ConversationTransferSubject } from './types';
1
+ import { ConversationTransferJob, ConversationTransferSubject } from '@epam/ai-dial-chat-shared';
2
2
  /** Shared job-queue primitive underlying both `useConversationExport` and `useConversationImport`. */
3
3
  export interface ConversationTransferQueue {
4
4
  /** Queued jobs, most recently added last. */
@@ -1 +1 @@
1
- {"version":3,"file":"queue.d.ts","sourceRoot":"","sources":["../../../src/conversation/conversation-transfer/queue.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,uBAA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CAAC;IAC5E,8EAA8E;IAC9E,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,oFAAoF;IACpF,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,uDAAuD;IACvD,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB;;;;OAIG;IACH,QAAQ,EAAE,CACR,KAAK,EAAE,MAAM,EACb,GAAG,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,KACxC,OAAO,CAAC,IAAI,CAAC,CAAC;CACpB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,QAAO,yBAgF/C,CAAC"}
@@ -1,3 +1,4 @@
1
+ export { ConversationTransferJobStatus, ConversationTransferSubjectKind, type ConversationTransferSubject, type ConversationTransferJob, } from '@epam/ai-dial-chat-shared';
1
2
  /** Whether an export includes the conversation's attachments. */
2
3
  export declare enum ConversationExportMode {
3
4
  WithAttachments = "withAttachments",
@@ -9,33 +10,6 @@ export declare enum ExportFileNameKind {
9
10
  SingleConversationWithAttachments = "chat_with_attachments",
10
11
  AllConversationsHistory = "chat_conversations_history"
11
12
  }
12
- /** Lifecycle status of a queued export/import job. */
13
- export declare enum ConversationTransferJobStatus {
14
- InProgress = "inProgress",
15
- Success = "success",
16
- Failed = "failed"
17
- }
18
- /** Whether a transfer job's subject is a single named conversation or the whole history. */
19
- export declare enum ConversationTransferSubjectKind {
20
- Single = "single",
21
- All = "all"
22
- }
23
- /** What a transfer job operates on — structured data, never pre-rendered translated text. */
24
- export type ConversationTransferSubject = {
25
- kind: ConversationTransferSubjectKind.Single;
26
- /** The conversation's own name. */
27
- title: string;
28
- /** Folder breadcrumb the conversation originated from, if nested. */
29
- sourceBreadcrumb?: string;
30
- } | {
31
- kind: ConversationTransferSubjectKind.All;
32
- };
33
- /** A queued export or import job. */
34
- export interface ConversationTransferJob {
35
- id: string;
36
- subject: ConversationTransferSubject;
37
- status: ConversationTransferJobStatus;
38
- }
39
13
  /** Library-owned reason a transfer job failed. */
40
14
  export declare enum ConversationTransferErrorCode {
41
15
  Unauthorized = "unauthorized",
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/conversation/conversation-transfer/types.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,oBAAY,sBAAsB;IAChC,eAAe,oBAAoB;IACnC,kBAAkB,uBAAuB;CAC1C;AAED,8EAA8E;AAC9E,oBAAY,kBAAkB;IAC5B,kBAAkB,sBAAsB;IACxC,iCAAiC,0BAA0B;IAC3D,uBAAuB,+BAA+B;CACvD;AAED,sDAAsD;AACtD,oBAAY,6BAA6B;IACvC,UAAU,eAAe;IACzB,OAAO,YAAY;IACnB,MAAM,WAAW;CAClB;AAED,4FAA4F;AAC5F,oBAAY,+BAA+B;IACzC,MAAM,WAAW;IACjB,GAAG,QAAQ;CACZ;AAED,6FAA6F;AAC7F,MAAM,MAAM,2BAA2B,GACnC;IACE,IAAI,EAAE,+BAA+B,CAAC,MAAM,CAAC;IAC7C,mCAAmC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,qEAAqE;IACrE,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,GACD;IAAE,IAAI,EAAE,+BAA+B,CAAC,GAAG,CAAA;CAAE,CAAC;AAElD,qCAAqC;AACrC,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,2BAA2B,CAAC;IACrC,MAAM,EAAE,6BAA6B,CAAC;CACvC;AAED,kDAAkD;AAClD,oBAAY,6BAA6B;IACvC,YAAY,iBAAiB;IAC7B,QAAQ,aAAa;IACrB,iBAAiB,sBAAsB;IACvC,aAAa,kBAAkB;IAC/B,OAAO,YAAY;CACpB;AAED,oEAAoE;AACpE,MAAM,WAAW,8BAA8B;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,6BAA6B,CAAC;IACpC,oEAAoE;IACpE,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,qGAAqG;IACrG,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,uEAAuE;AACvE,oBAAY,+BAA+B;IACzC,iBAAiB,sBAAsB;CACxC;AAED,sEAAsE;AACtE,MAAM,WAAW,gCAAgC;IAC/C,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,+BAA+B,CAAC;IACtC,0EAA0E;IAC1E,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,sEAAsE;AACtE,MAAM,WAAW,gCAAgC;IAC/C,KAAK,EAAE,MAAM,CAAC;IACd,uDAAuD;IACvD,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/conversation/conversation-transfer/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,6BAA6B,EAC7B,+BAA+B,EAC/B,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,GAC7B,MAAM,2BAA2B,CAAC;AAEnC,iEAAiE;AACjE,oBAAY,sBAAsB;IAChC,eAAe,oBAAoB;IACnC,kBAAkB,uBAAuB;CAC1C;AAED,8EAA8E;AAC9E,oBAAY,kBAAkB;IAC5B,kBAAkB,sBAAsB;IACxC,iCAAiC,0BAA0B;IAC3D,uBAAuB,+BAA+B;CACvD;AAED,kDAAkD;AAClD,oBAAY,6BAA6B;IACvC,YAAY,iBAAiB;IAC7B,QAAQ,aAAa;IACrB,iBAAiB,sBAAsB;IACvC,aAAa,kBAAkB;IAC/B,OAAO,YAAY;CACpB;AAED,oEAAoE;AACpE,MAAM,WAAW,8BAA8B;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,6BAA6B,CAAC;IACpC,oEAAoE;IACpE,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,qGAAqG;IACrG,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,uEAAuE;AACvE,oBAAY,+BAA+B;IACzC,iBAAiB,sBAAsB;CACxC;AAED,sEAAsE;AACtE,MAAM,WAAW,gCAAgC;IAC/C,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,+BAA+B,CAAC;IACtC,0EAA0E;IAC1E,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,sEAAsE;AACtE,MAAM,WAAW,gCAAgC;IAC/C,KAAK,EAAE,MAAM,CAAC;IACd,uDAAuD;IACvD,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB"}
@@ -0,0 +1,39 @@
1
+ import { ConversationListItemDto } from '@epam/ai-dial-chat-api-client';
2
+ import { PublishHistoryEntry } from '@epam/ai-dial-publish-panel';
3
+ import { RecipientsCountEntry } from '../../useShareRecipientsCount/useShareRecipientsCount';
4
+ /** Distilled row-action state for a single conversation item. */
5
+ export interface ConversationRowActionState {
6
+ /** `true` when the item is read-only (shared-with-me, published-with-me, or explicitly readonly). */
7
+ isReadonly: boolean;
8
+ /**
9
+ * Deduplicated list of folder paths (as joined slash-delimited strings)
10
+ * to which this conversation has been published. Empty when the conversation
11
+ * is unowned, readonly, or publish history is unavailable.
12
+ */
13
+ publishedFolders: string[];
14
+ /**
15
+ * `true` when the revoke-access action should be shown: either the
16
+ * recipient count is unknown (lookup pending/failed) or at least one
17
+ * recipient exists.
18
+ */
19
+ isRevokeVisible: boolean;
20
+ /** `true` when publish is applicable (no published folders yet). */
21
+ isPublishApplicable: boolean;
22
+ /** `true` when unpublish is applicable (at least one published folder exists). */
23
+ isUnpublishApplicable: boolean;
24
+ }
25
+ /**
26
+ * Derives the row-action visibility state for a single conversation item.
27
+ *
28
+ * Extracted from `getActions` in `ConversationPanelView` to isolate the
29
+ * readonly / publish / unpublish / revoke decision logic from the
30
+ * `DropdownItem` construction and `t()` calls that remain in the app.
31
+ *
32
+ * @param item - Conversation DTO fields relevant to ownership classification.
33
+ * @param publishHistory - Resolved publish-history entries, or `undefined`
34
+ * when history is unavailable or should be treated as empty (e.g. while
35
+ * loading or when the item is readonly).
36
+ * @param recipients - Current share-recipients count entry for this item.
37
+ */
38
+ export declare const deriveConversationRowActionState: (item: Pick<ConversationListItemDto, "sharedWithMe" | "publishedWithMe" | "isReadonly">, publishHistory: PublishHistoryEntry[] | undefined, recipients: RecipientsCountEntry) => ConversationRowActionState;
39
+ //# sourceMappingURL=deriveConversationRowActionState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deriveConversationRowActionState.d.ts","sourceRoot":"","sources":["../../../src/conversation/deriveConversationRowActionState/deriveConversationRowActionState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAC7E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAEL,KAAK,oBAAoB,EAC1B,MAAM,uDAAuD,CAAC;AAE/D,iEAAiE;AACjE,MAAM,WAAW,0BAA0B;IACzC,qGAAqG;IACrG,UAAU,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B;;;;OAIG;IACH,eAAe,EAAE,OAAO,CAAC;IACzB,oEAAoE;IACpE,mBAAmB,EAAE,OAAO,CAAC;IAC7B,kFAAkF;IAClF,qBAAqB,EAAE,OAAO,CAAC;CAChC;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,gCAAgC,GAC3C,MAAM,IAAI,CACR,uBAAuB,EACvB,cAAc,GAAG,iBAAiB,GAAG,YAAY,CAClD,EACD,gBAAgB,mBAAmB,EAAE,GAAG,SAAS,EACjD,YAAY,oBAAoB,KAC/B,0BA6BF,CAAC"}
@@ -0,0 +1,34 @@
1
+ import { ConversationListItemDto } from '@epam/ai-dial-chat-api-client';
2
+ /** Parameters for `useActiveConversationSync`. */
3
+ export interface UseActiveConversationSyncParams {
4
+ /**
5
+ * The raw context id of the currently active conversation, as tracked by
6
+ * the host app. `undefined` when no conversation is active.
7
+ */
8
+ activeConversationId: string | undefined;
9
+ /** Raw conversation list from the API. */
10
+ items: ConversationListItemDto[];
11
+ /** Refetches the full conversation list. */
12
+ refreshConversations: () => Promise<void>;
13
+ /** Marks a scheduler-created conversation as viewed by raw context id. */
14
+ markConversationViewed: (id: string) => Promise<void>;
15
+ /**
16
+ * Returns `true` when two ids refer to the same conversation despite
17
+ * possible encoding differences. App-specific.
18
+ */
19
+ conversationIdsMatch: (a: string, b: string) => boolean;
20
+ /** Converts a raw context id to the panel-space id. App-specific. */
21
+ toPanelConversationId: (id: string) => string;
22
+ }
23
+ /**
24
+ * Synchronises the active conversation with the conversation list and returns
25
+ * the panel-space id of the active conversation, or `undefined` when none is active.
26
+ *
27
+ * Side effects:
28
+ * 1. If the active conversation is not present in the list, requests a
29
+ * refresh. The list and refresh callback are intentionally excluded from
30
+ * the dependency array to avoid a refresh-loop on every list update.
31
+ * 2. Marks the active conversation as viewed whenever it or the list changes.
32
+ */
33
+ export declare const useActiveConversationSync: ({ activeConversationId, items, refreshConversations, markConversationViewed, conversationIdsMatch, toPanelConversationId, }: UseActiveConversationSyncParams) => string | undefined;
34
+ //# sourceMappingURL=useActiveConversationSync.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useActiveConversationSync.d.ts","sourceRoot":"","sources":["../../../src/conversation/useActiveConversationSync/useActiveConversationSync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAG7E,kDAAkD;AAClD,MAAM,WAAW,+BAA+B;IAC9C;;;OAGG;IACH,oBAAoB,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,0CAA0C;IAC1C,KAAK,EAAE,uBAAuB,EAAE,CAAC;IACjC,4CAA4C;IAC5C,oBAAoB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1C,0EAA0E;IAC1E,sBAAsB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACtD;;;OAGG;IACH,oBAAoB,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC;IACxD,qEAAqE;IACrE,qBAAqB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,CAAC;CAC/C;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,yBAAyB,GAAI,6HAOvC,+BAA+B,KAAG,MAAM,GAAG,SAyC7C,CAAC"}
@@ -0,0 +1,37 @@
1
+ /** State and controls returned by `useAsyncConfirmDialog`. */
2
+ export interface AsyncConfirmDialogControls<T> {
3
+ /**
4
+ * The value currently awaiting confirmation, or `null` when no dialog is
5
+ * open.
6
+ */
7
+ pending: T | null;
8
+ /** `true` when `pending` is not `null`. */
9
+ isPending: boolean;
10
+ /** `true` while the async operation started by `confirm` is in-flight. */
11
+ isRunning: boolean;
12
+ /** Error message set when the last `confirm` run threw, or `null` otherwise. */
13
+ error: string | null;
14
+ /** Opens the dialog by setting `pending` to `value` and clearing any prior error. */
15
+ open: (value: T) => void;
16
+ /** Closes the dialog by resetting `pending`, `error`, and `isRunning` to their initial values. */
17
+ close: () => void;
18
+ /**
19
+ * Runs `run(pending)` while enforcing a re-entry guard.
20
+ *
21
+ * - No-op when `isRunning` is already `true` or `pending` is `null`.
22
+ * - On success: calls `close()` to reset all state.
23
+ * - On failure: sets `error` to `onError(caughtError)` and leaves `pending`
24
+ * set so the caller may retry.
25
+ */
26
+ confirm: (run: (value: T) => Promise<void>, onError: (error: unknown) => string) => Promise<void>;
27
+ }
28
+ /**
29
+ * Generic single-slot pending / loading / error state machine for
30
+ * confirmation dialogs that trigger an async operation.
31
+ *
32
+ * Replaces the `[pendingXxx, setXxx] / [isXxxing, setIsXxxing] / [xxxError,
33
+ * setXxxError]` triads that previously appeared inline at each call site in
34
+ * `ConversationPanelView` and `ConversationPanelMenu`.
35
+ */
36
+ export declare const useAsyncConfirmDialog: <T>() => AsyncConfirmDialogControls<T>;
37
+ //# sourceMappingURL=useAsyncConfirmDialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAsyncConfirmDialog.d.ts","sourceRoot":"","sources":["../../../src/conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.ts"],"names":[],"mappings":"AAEA,8DAA8D;AAC9D,MAAM,WAAW,0BAA0B,CAAC,CAAC;IAC3C;;;OAGG;IACH,OAAO,EAAE,CAAC,GAAG,IAAI,CAAC;IAClB,2CAA2C;IAC3C,SAAS,EAAE,OAAO,CAAC;IACnB,0EAA0E;IAC1E,SAAS,EAAE,OAAO,CAAC;IACnB,gFAAgF;IAChF,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,qFAAqF;IACrF,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IACzB,kGAAkG;IAClG,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB;;;;;;;OAOG;IACH,OAAO,EAAE,CACP,GAAG,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,EAChC,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,MAAM,KAChC,OAAO,CAAC,IAAI,CAAC,CAAC;CACpB;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,GAAI,CAAC,OAAK,0BAA0B,CAAC,CAAC,CAgEvE,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { ConversationListItemDto } from '@epam/ai-dial-chat-api-client';
2
+ /** Parameters for `useConversationLookupMaps`. */
3
+ export interface UseConversationLookupMapsParams {
4
+ /** Raw conversation list from the API. */
5
+ items: ConversationListItemDto[];
6
+ /** Converts a raw conversation id to the panel-space id. App-specific. */
7
+ toPanelConversationId: (id: string) => string;
8
+ }
9
+ /** Stable reverse-lookup maps returned by `useConversationLookupMaps`. */
10
+ export interface ConversationLookupMaps {
11
+ /** Returns the raw context id for a panel-space conversation id, or `undefined` when not found. */
12
+ toContextId: (panelId: string) => string | undefined;
13
+ /** Returns the raw `ConversationListItemDto` for a panel-space conversation id, or `undefined` when not found. */
14
+ getRawItem: (panelId: string) => ConversationListItemDto | undefined;
15
+ }
16
+ /**
17
+ * Builds two memoised reverse-lookup maps from the raw conversation list:
18
+ * panel-space id → context id and panel-space id → raw DTO.
19
+ *
20
+ * Replaces the inlined `panelToContextId` map and `items.find` calls that
21
+ * previously appeared at each row-action call site in `ConversationPanelView`.
22
+ */
23
+ export declare const useConversationLookupMaps: ({ items, toPanelConversationId, }: UseConversationLookupMapsParams) => ConversationLookupMaps;
24
+ //# sourceMappingURL=useConversationLookupMaps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useConversationLookupMaps.d.ts","sourceRoot":"","sources":["../../../src/conversation/useConversationLookupMaps/useConversationLookupMaps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAG7E,kDAAkD;AAClD,MAAM,WAAW,+BAA+B;IAC9C,0CAA0C;IAC1C,KAAK,EAAE,uBAAuB,EAAE,CAAC;IACjC,0EAA0E;IAC1E,qBAAqB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,CAAC;CAC/C;AAED,0EAA0E;AAC1E,MAAM,WAAW,sBAAsB;IACrC,mGAAmG;IACnG,WAAW,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;IACrD,kHAAkH;IAClH,UAAU,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,uBAAuB,GAAG,SAAS,CAAC;CACtE;AAED;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB,GAAI,mCAGvC,+BAA+B,KAAG,sBAaD,CAAC"}
@@ -0,0 +1,58 @@
1
+ import { ConversationListItemDto, DeploymentItemDto } from '@epam/ai-dial-chat-api-client';
2
+ import { FilterTab } from '@epam/ai-dial-chat-shared';
3
+ /**
4
+ * Classifies a conversation's ownership using the shared filter-tab contract.
5
+ */
6
+ export declare const getConversationSource: (item: Pick<ConversationListItemDto, "sharedWithMe" | "publishedWithMe">) => FilterTab;
7
+ /** Resolver callbacks injected by the host app into `useConversationPanelItems`. */
8
+ export interface UseConversationPanelItemsResolvers {
9
+ /** Converts a raw conversation id to the panel-space id. App-specific. */
10
+ toPanelConversationId: (id: string) => string;
11
+ /** Resolves the icon URL for a deployment. Returns `undefined` when not available. */
12
+ resolveIconUrl: (deployment: DeploymentItemDto | undefined) => string | undefined;
13
+ /**
14
+ * Resolves the icon tooltip text. Receives the matched deployment (or
15
+ * `undefined`) and a decoded fallback string derived from the model path.
16
+ */
17
+ resolveIconTooltip: (deployment: DeploymentItemDto | undefined, fallback: string) => string | undefined;
18
+ /** Resolves the href to navigate to when the conversation row is clicked. */
19
+ resolveHref: (panelConversationId: string) => string;
20
+ /**
21
+ * Returns badge metadata for a scheduled-task conversation, or `undefined`
22
+ * when the item should not show a task badge.
23
+ */
24
+ resolveTaskBadge?: (item: ConversationListItemDto) => {
25
+ label: string;
26
+ isUnread: boolean;
27
+ } | undefined;
28
+ }
29
+ /** Parameters accepted by `useConversationPanelItems`. */
30
+ export interface UseConversationPanelItemsParams extends UseConversationPanelItemsResolvers {
31
+ /** Raw conversation list from the API. */
32
+ items: ConversationListItemDto[];
33
+ /** Available deployments used to resolve icons and tooltips. */
34
+ deployments: DeploymentItemDto[];
35
+ /** Whether the deployments list is still loading (drives `isIconLoading`). */
36
+ isDeploymentsLoading: boolean;
37
+ }
38
+ /**
39
+ * Maps raw `ConversationListItemDto[]` to panel-compatible conversation items.
40
+ *
41
+ * Returns a memoised array whose shape is compatible with the conversation
42
+ * panel's item contract. All app-specific concerns (icon URL resolution,
43
+ * route generation, id normalisation) are injected via resolver callbacks.
44
+ */
45
+ export declare const useConversationPanelItems: ({ items, deployments, isDeploymentsLoading, toPanelConversationId, resolveIconUrl, resolveIconTooltip, resolveHref, resolveTaskBadge, }: UseConversationPanelItemsParams) => {
46
+ showTaskBadge?: boolean | undefined;
47
+ taskBadgeLabel?: string | undefined;
48
+ isUnread?: boolean | undefined;
49
+ id: string;
50
+ title: string;
51
+ isPinned: boolean;
52
+ iconUrl: string | undefined;
53
+ iconTooltip: string | undefined;
54
+ isIconLoading: boolean;
55
+ source: FilterTab;
56
+ href: string;
57
+ }[];
58
+ //# sourceMappingURL=useConversationPanelItems.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useConversationPanelItems.d.ts","sourceRoot":"","sources":["../../../src/conversation/useConversationPanelItems/useConversationPanelItems.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,iBAAiB,EAClB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAMtD;;GAEG;AACH,eAAO,MAAM,qBAAqB,GAChC,MAAM,IAAI,CAAC,uBAAuB,EAAE,cAAc,GAAG,iBAAiB,CAAC,KACtE,SAIF,CAAC;AAEF,oFAAoF;AACpF,MAAM,WAAW,kCAAkC;IACjD,0EAA0E;IAC1E,qBAAqB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,CAAC;IAC9C,sFAAsF;IACtF,cAAc,EAAE,CACd,UAAU,EAAE,iBAAiB,GAAG,SAAS,KACtC,MAAM,GAAG,SAAS,CAAC;IACxB;;;OAGG;IACH,kBAAkB,EAAE,CAClB,UAAU,EAAE,iBAAiB,GAAG,SAAS,EACzC,QAAQ,EAAE,MAAM,KACb,MAAM,GAAG,SAAS,CAAC;IACxB,6EAA6E;IAC7E,WAAW,EAAE,CAAC,mBAAmB,EAAE,MAAM,KAAK,MAAM,CAAC;IACrD;;;OAGG;IACH,gBAAgB,CAAC,EAAE,CACjB,IAAI,EAAE,uBAAuB,KAC1B;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,GAAG,SAAS,CAAC;CACvD;AAED,0DAA0D;AAC1D,MAAM,WAAW,+BAAgC,SAAQ,kCAAkC;IACzF,0CAA0C;IAC1C,KAAK,EAAE,uBAAuB,EAAE,CAAC;IACjC,gEAAgE;IAChE,WAAW,EAAE,iBAAiB,EAAE,CAAC;IACjC,8EAA8E;IAC9E,oBAAoB,EAAE,OAAO,CAAC;CAC/B;AAED;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB,GAAI,yIASvC,+BAA+B;;;;;;;;;;;;GAkD/B,CAAC"}
@@ -0,0 +1,32 @@
1
+ import { ChangeEvent, RefObject } from 'react';
2
+ /** Parameters for `useImportFilePicker`. */
3
+ export interface UseImportFilePickerParams {
4
+ /**
5
+ * MIME types / file-extension filter string passed to the hidden input's
6
+ * `accept` attribute. The host resolves any platform-specific policy before
7
+ * passing this value.
8
+ */
9
+ accept?: string;
10
+ /** Called with the selected `File` after the user confirms their choice. */
11
+ onFileSelected: (file: File) => void;
12
+ }
13
+ /** Controls returned by `useImportFilePicker`. */
14
+ export interface UseImportFilePickerResult {
15
+ /** Ref to attach to the hidden `<input type="file">` element. */
16
+ inputRef: RefObject<HTMLInputElement | null>;
17
+ /** Programmatically opens the native file picker by clicking the hidden input. */
18
+ triggerImport: () => void;
19
+ /** `onChange` handler for the hidden input; calls `onFileSelected` and resets the value. */
20
+ handleFileChange: (event: ChangeEvent<HTMLInputElement>) => void;
21
+ }
22
+ /**
23
+ * Manages the hidden `<input type="file">` pattern used to trigger a native
24
+ * file-picker without a visible control.
25
+ *
26
+ * The host renders `<input ref={inputRef} type="file" onChange={handleFileChange} />`
27
+ * and calls `triggerImport()` when the user initiates an import action. The
28
+ * hook sets the `accept` attribute via a layout effect so re-selecting the
29
+ * same file always fires `onChange` (the value is reset after each selection).
30
+ */
31
+ export declare const useImportFilePicker: ({ accept, onFileSelected, }: UseImportFilePickerParams) => UseImportFilePickerResult;
32
+ //# sourceMappingURL=useImportFilePicker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useImportFilePicker.d.ts","sourceRoot":"","sources":["../../../src/conversation/useImportFilePicker/useImportFilePicker.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,WAAW,EAChB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAEf,4CAA4C;AAC5C,MAAM,WAAW,yBAAyB;IACxC;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,4EAA4E;IAC5E,cAAc,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;CACtC;AAED,kDAAkD;AAClD,MAAM,WAAW,yBAAyB;IACxC,iEAAiE;IACjE,QAAQ,EAAE,SAAS,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;IAC7C,kFAAkF;IAClF,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,4FAA4F;IAC5F,gBAAgB,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;CAClE;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,GAAI,6BAGjC,yBAAyB,KAAG,yBA6B9B,CAAC"}
package/index.d.ts CHANGED
@@ -9,6 +9,7 @@ export { formatQuotedNameList } from './conversation/conversation-transfer/impor
9
9
  export * from './catalog/deployment-endpoint-url';
10
10
  export * from './catalog/deployment-id';
11
11
  export * from './catalog/entity-details';
12
+ export * from './catalog/map-deployment-limits-to-catalog';
12
13
  export * from './catalog/map-deployment-limits-to-input';
13
14
  export * from './catalog/map-deployment-to-catalog-item';
14
15
  export * from './catalog/map-entity-details-to-catalog';
@@ -16,6 +17,7 @@ export * from './catalog/map-prompt-to-catalog-item';
16
17
  export * from './catalog/map-skill-to-catalog-item';
17
18
  export * from './catalog/mcp-endpoint-url';
18
19
  export * from './catalog/publish';
20
+ export * from './catalog/useFavoriteEntitiesState/useFavoriteEntitiesState';
19
21
  export * from './conversation/announcement-message';
20
22
  export * from './conversation/conversation-transfer/types';
21
23
  export * from './conversation/create-chat-stream-api';
@@ -31,6 +33,7 @@ export * from './conversation/starter-option';
31
33
  export * from './prompt/export-prompt';
32
34
  export * from './prompt/prompt';
33
35
  export * from './prompt/prompt-resource';
36
+ export * from './prompt/usePromptsState/usePromptsState';
34
37
  export * from './scheduled-task/scheduled-task-mapping';
35
38
  export * from './scheduled-task/scheduled-task-trigger';
36
39
  export * from './skill/skill';
@@ -41,6 +44,13 @@ export * from './skill/useSkillEditorSubmit';
41
44
  export * from './skill/useSkillFileActions';
42
45
  export * from './skill/skill-manifest';
43
46
  export * from './skill/skill-types';
47
+ export * from './skill/useSkillsState/useSkillsState';
48
+ export * from './conversation/deriveConversationRowActionState/deriveConversationRowActionState';
49
+ export * from './conversation/useActiveConversationSync/useActiveConversationSync';
50
+ export * from './conversation/useAsyncConfirmDialog/useAsyncConfirmDialog';
51
+ export * from './conversation/useConversationLookupMaps/useConversationLookupMaps';
52
+ export * from './conversation/useConversationPanelItems/useConversationPanelItems';
53
+ export * from './conversation/useImportFilePicker/useImportFilePicker';
44
54
  export * from './conversation/useAttachmentUpload/useAttachmentUpload';
45
55
  export * from './conversation/useConversationExport/useConversationExport';
46
56
  export { attachmentsToDtos, attachmentToDto, } from './conversation/useConversationHandlers/attachment-to-dto';
package/index.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,wCAAwC,CAAC;AACvD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,sDAAsD,CAAC;AACrE,cAAc,8DAA8D,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,0DAA0D,CAAC;AAC3F,OAAO,EACL,YAAY,EACZ,aAAa,GACd,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AAChG,cAAc,mCAAmC,CAAC;AAClD,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0CAA0C,CAAC;AACzD,c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