@epam/ai-dial-chat-hooks 1.1.0-dev.383 → 1.1.0-dev.390
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-error-DuLNy43N.js +45 -0
- package/attachment-types-AAoN9E95.js +7760 -0
- package/{attachment/useAttachmentValidation/useAttachmentValidation.d.ts → attachments.d.ts} +88 -44
- package/attachments.js +2 -0
- package/browser-Btsa0Lmr.js +607 -0
- package/catalog.d.ts +946 -0
- package/catalog.js +3 -0
- package/{conversation-sources/useConversationSources/useConversationSources.d.ts → conversation-sources.d.ts} +25 -20
- package/conversation-sources.js +2 -0
- package/conversation-transfer.d.ts +189 -0
- package/conversation-transfer.js +3 -0
- package/conversation.d.ts +907 -0
- package/conversation.js +2 -0
- package/cron-weekday-B4w29eAC.js +4 -0
- package/date-BeuD8G79.js +4 -0
- package/deployment-id-CxWgJTs9.js +6 -0
- package/file-manager.d.ts +1344 -0
- package/file-manager.js +4 -0
- package/formatting-CZyyxBG3.js +4 -0
- package/index.d.ts +4945 -126
- package/index.js +27 -19152
- package/oauth.d.ts +440 -0
- package/oauth.js +3 -0
- package/package.json +142 -21
- package/prompt-resource-Bt1I-8ri.js +41 -0
- package/scheduled-task-trigger-D9RZCk52.js +145 -0
- package/{scheduled-task/scheduled-task-trigger.d.ts → scheduled-tasks.d.ts} +51 -27
- package/scheduled-tasks.js +2 -0
- package/{conversation/useConversationScroll/useConversationScroll.d.ts → scroll-anchoring.d.ts} +50 -46
- package/scroll-anchoring.js +2 -0
- package/{useShareRecipientsCount/useShareRecipientsCount.d.ts → sharing.d.ts} +65 -36
- package/sharing.js +3 -0
- package/skill-editor.d.ts +503 -0
- package/skill-editor.js +3 -0
- package/skill-manifest-CCX8s4nn.js +4035 -0
- package/{skill/useSkillsState/useSkillsState.d.ts → skills-state.d.ts} +40 -35
- package/skills-state.js +2 -0
- package/string-utils-iBi2Y55C.js +10 -0
- package/toolset-id-CkxRHyU0.js +10 -0
- package/useAttachmentValidation-CkMTd5lA.js +102 -0
- package/useConversationImport-C2h1GBY4.js +807 -0
- package/useConversationScroll-CliIMnjP.js +122 -0
- package/useConversationSources-DKaKvjXZ.js +47 -0
- package/useDialFileManagerTabConfig-DGQw8H8H.js +2289 -0
- package/usePanelMaxWidth-BEZYuqF9.js +44 -0
- package/useShareLink-xkiaxATt.js +44 -0
- package/useShareRecipientsCount-BgwCLKY0.js +37 -0
- package/useSkillFileActions-BU5PzZ_8.js +373 -0
- package/useSkillFilePreview-BYfZUJhr.js +1005 -0
- package/useSkillsState-BoLlwmzb.js +52 -0
- package/useToolsMenu-BXdahO0i.js +1874 -0
- package/useToolsetLogin-GhFtKs4D.js +276 -0
- package/useUsageData-D7BxloKZ.js +201 -0
- package/utils.d.ts +373 -0
- package/utils.js +7 -0
- package/{usePageFileDrag/usePageFileDrag.d.ts → viewport-layout.d.ts} +27 -16
- package/viewport-layout.js +2 -0
- package/api-error/api-error.d.ts +0 -18
- package/api-error/api-error.d.ts.map +0 -1
- package/api-transport/create-csrf-middleware.d.ts +0 -15
- package/api-transport/create-csrf-middleware.d.ts.map +0 -1
- package/api-transport/create-unauthorized-middleware.d.ts +0 -40
- package/api-transport/create-unauthorized-middleware.d.ts.map +0 -1
- package/attachment/useAttachmentAction/useAttachmentAction.d.ts +0 -32
- package/attachment/useAttachmentAction/useAttachmentAction.d.ts.map +0 -1
- package/attachment/useAttachmentValidation/useAttachmentValidation.d.ts.map +0 -1
- package/catalog/catalog-derivations.d.ts +0 -27
- package/catalog/catalog-derivations.d.ts.map +0 -1
- package/catalog/catalog-primary-action.d.ts +0 -47
- package/catalog/catalog-primary-action.d.ts.map +0 -1
- package/catalog/create-publish-api.d.ts +0 -32
- package/catalog/create-publish-api.d.ts.map +0 -1
- package/catalog/deployment-endpoint-url.d.ts +0 -19
- package/catalog/deployment-endpoint-url.d.ts.map +0 -1
- package/catalog/deployment-id.d.ts +0 -21
- package/catalog/deployment-id.d.ts.map +0 -1
- package/catalog/entity-details.d.ts +0 -132
- package/catalog/entity-details.d.ts.map +0 -1
- package/catalog/map-deployment-limits-to-catalog.d.ts +0 -33
- package/catalog/map-deployment-limits-to-catalog.d.ts.map +0 -1
- package/catalog/map-deployment-limits-to-input.d.ts +0 -15
- package/catalog/map-deployment-limits-to-input.d.ts.map +0 -1
- package/catalog/map-deployment-to-catalog-item.d.ts +0 -60
- package/catalog/map-deployment-to-catalog-item.d.ts.map +0 -1
- package/catalog/map-entity-details-to-catalog.d.ts +0 -23
- package/catalog/map-entity-details-to-catalog.d.ts.map +0 -1
- package/catalog/map-prompt-to-catalog-item.d.ts +0 -43
- package/catalog/map-prompt-to-catalog-item.d.ts.map +0 -1
- package/catalog/map-skill-to-catalog-item.d.ts +0 -87
- package/catalog/map-skill-to-catalog-item.d.ts.map +0 -1
- package/catalog/mcp-endpoint-url.d.ts +0 -18
- package/catalog/mcp-endpoint-url.d.ts.map +0 -1
- package/catalog/publish.d.ts +0 -17
- package/catalog/publish.d.ts.map +0 -1
- package/catalog/useCatalogItemDetails.d.ts +0 -73
- package/catalog/useCatalogItemDetails.d.ts.map +0 -1
- package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.d.ts +0 -37
- package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.d.ts.map +0 -1
- package/catalog/usePublishFolders/usePublishFolders.d.ts +0 -73
- package/catalog/usePublishFolders/usePublishFolders.d.ts.map +0 -1
- package/conversation/announcement-message.d.ts +0 -34
- package/conversation/announcement-message.d.ts.map +0 -1
- package/conversation/conversation-transfer/async.d.ts +0 -10
- package/conversation/conversation-transfer/async.d.ts.map +0 -1
- package/conversation/conversation-transfer/attachment-refs.d.ts +0 -12
- package/conversation/conversation-transfer/attachment-refs.d.ts.map +0 -1
- package/conversation/conversation-transfer/build-upload-path.d.ts +0 -40
- package/conversation/conversation-transfer/build-upload-path.d.ts.map +0 -1
- package/conversation/conversation-transfer/date.d.ts +0 -5
- package/conversation/conversation-transfer/date.d.ts.map +0 -1
- package/conversation/conversation-transfer/dial-file-resolve.d.ts +0 -10
- package/conversation/conversation-transfer/dial-file-resolve.d.ts.map +0 -1
- package/conversation/conversation-transfer/export-conversation.d.ts +0 -8
- package/conversation/conversation-transfer/export-conversation.d.ts.map +0 -1
- package/conversation/conversation-transfer/import-conversation.d.ts +0 -82
- package/conversation/conversation-transfer/import-conversation.d.ts.map +0 -1
- package/conversation/conversation-transfer/progress.d.ts +0 -60
- package/conversation/conversation-transfer/progress.d.ts.map +0 -1
- package/conversation/conversation-transfer/queue.d.ts +0 -54
- package/conversation/conversation-transfer/queue.d.ts.map +0 -1
- package/conversation/conversation-transfer/types.d.ts +0 -36
- package/conversation/conversation-transfer/types.d.ts.map +0 -1
- package/conversation/conversation-transfer/zip-export.d.ts +0 -31
- package/conversation/conversation-transfer/zip-export.d.ts.map +0 -1
- package/conversation/conversation-transfer/zip-import.d.ts +0 -17
- package/conversation/conversation-transfer/zip-import.d.ts.map +0 -1
- package/conversation/create-chat-stream-api.d.ts +0 -38
- package/conversation/create-chat-stream-api.d.ts.map +0 -1
- package/conversation/deriveConversationRowActionState/deriveConversationRowActionState.d.ts +0 -39
- package/conversation/deriveConversationRowActionState/deriveConversationRowActionState.d.ts.map +0 -1
- package/conversation/display-name-watch.d.ts +0 -4
- package/conversation/display-name-watch.d.ts.map +0 -1
- package/conversation/footer-message.d.ts +0 -10
- package/conversation/footer-message.d.ts.map +0 -1
- package/conversation/get-model-id-from-conversation-id.d.ts +0 -27
- package/conversation/get-model-id-from-conversation-id.d.ts.map +0 -1
- package/conversation/greeting.d.ts +0 -18
- package/conversation/greeting.d.ts.map +0 -1
- package/conversation/message-factory.d.ts +0 -7
- package/conversation/message-factory.d.ts.map +0 -1
- package/conversation/message-utils.d.ts +0 -27
- package/conversation/message-utils.d.ts.map +0 -1
- package/conversation/overlay-messages.d.ts +0 -5
- package/conversation/overlay-messages.d.ts.map +0 -1
- package/conversation/quick-app-conversation-starters.d.ts +0 -10
- package/conversation/quick-app-conversation-starters.d.ts.map +0 -1
- package/conversation/starter-option.d.ts +0 -21
- package/conversation/starter-option.d.ts.map +0 -1
- package/conversation/useActiveConversationSync/useActiveConversationSync.d.ts +0 -34
- package/conversation/useActiveConversationSync/useActiveConversationSync.d.ts.map +0 -1
- package/conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.d.ts +0 -46
- package/conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.d.ts.map +0 -1
- package/conversation/useAttachmentUpload/useAttachmentUpload.d.ts +0 -26
- package/conversation/useAttachmentUpload/useAttachmentUpload.d.ts.map +0 -1
- package/conversation/useConversationExport/useConversationExport.d.ts +0 -72
- package/conversation/useConversationExport/useConversationExport.d.ts.map +0 -1
- package/conversation/useConversationHandlers/attachment-to-dto.d.ts +0 -7
- package/conversation/useConversationHandlers/attachment-to-dto.d.ts.map +0 -1
- package/conversation/useConversationHandlers/message-factory.d.ts +0 -9
- package/conversation/useConversationHandlers/message-factory.d.ts.map +0 -1
- package/conversation/useConversationHandlers/message-utils.d.ts +0 -14
- package/conversation/useConversationHandlers/message-utils.d.ts.map +0 -1
- package/conversation/useConversationHandlers/starter-option.d.ts +0 -14
- package/conversation/useConversationHandlers/starter-option.d.ts.map +0 -1
- package/conversation/useConversationHandlers/useConversationHandlers.d.ts +0 -66
- package/conversation/useConversationHandlers/useConversationHandlers.d.ts.map +0 -1
- package/conversation/useConversationImport/useConversationImport.d.ts +0 -53
- package/conversation/useConversationImport/useConversationImport.d.ts.map +0 -1
- package/conversation/useConversationLookupMaps/useConversationLookupMaps.d.ts +0 -24
- package/conversation/useConversationLookupMaps/useConversationLookupMaps.d.ts.map +0 -1
- package/conversation/useConversationPanelItems/useConversationPanelItems.d.ts +0 -58
- package/conversation/useConversationPanelItems/useConversationPanelItems.d.ts.map +0 -1
- package/conversation/useConversationScroll/useConversationScroll.d.ts.map +0 -1
- package/conversation/useConversationStream/apply-chunk.d.ts +0 -20
- package/conversation/useConversationStream/apply-chunk.d.ts.map +0 -1
- package/conversation/useConversationStream/buffered-generation.d.ts +0 -15
- package/conversation/useConversationStream/buffered-generation.d.ts.map +0 -1
- package/conversation/useConversationStream/conversation-path.d.ts +0 -7
- package/conversation/useConversationStream/conversation-path.d.ts.map +0 -1
- package/conversation/useConversationStream/generation-resume.d.ts +0 -39
- package/conversation/useConversationStream/generation-resume.d.ts.map +0 -1
- package/conversation/useConversationStream/useConversationStream.d.ts +0 -92
- package/conversation/useConversationStream/useConversationStream.d.ts.map +0 -1
- package/conversation/useImportFilePicker/useImportFilePicker.d.ts +0 -32
- package/conversation/useImportFilePicker/useImportFilePicker.d.ts.map +0 -1
- package/conversation-sources/useConversationSources/useConversationSources.d.ts.map +0 -1
- package/files/annotation.d.ts +0 -10
- package/files/annotation.d.ts.map +0 -1
- package/files/attachment-canvas.d.ts +0 -104
- package/files/attachment-canvas.d.ts.map +0 -1
- package/files/attachment-dto-to-display.d.ts +0 -10
- package/files/attachment-dto-to-display.d.ts.map +0 -1
- package/files/attachment-types.d.ts +0 -14
- package/files/attachment-types.d.ts.map +0 -1
- package/files/create-files-api.d.ts +0 -52
- package/files/create-files-api.d.ts.map +0 -1
- package/files/create-upload-file-with-progress.d.ts +0 -24
- package/files/create-upload-file-with-progress.d.ts.map +0 -1
- package/files/dial-file-manager-copy-move.util.d.ts +0 -15
- package/files/dial-file-manager-copy-move.util.d.ts.map +0 -1
- package/files/dial-file-manager-mapping.util.d.ts +0 -35
- package/files/dial-file-manager-mapping.util.d.ts.map +0 -1
- package/files/dial-file-manager-path.util.d.ts +0 -39
- package/files/dial-file-manager-path.util.d.ts.map +0 -1
- package/files/dial-file-manager.model.d.ts +0 -26
- package/files/dial-file-manager.model.d.ts.map +0 -1
- package/files/dial-file-manager.types.d.ts +0 -317
- package/files/dial-file-manager.types.d.ts.map +0 -1
- package/files/dial-file-to-attachment.d.ts +0 -26
- package/files/dial-file-to-attachment.d.ts.map +0 -1
- package/files/dial-file.d.ts +0 -17
- package/files/dial-file.d.ts.map +0 -1
- package/files/dial-files-api.d.ts +0 -71
- package/files/dial-files-api.d.ts.map +0 -1
- package/files/download-destination.d.ts +0 -31
- package/files/download-destination.d.ts.map +0 -1
- package/files/file-manager-variant.d.ts +0 -4
- package/files/file-manager-variant.d.ts.map +0 -1
- package/files/file-name.d.ts +0 -19
- package/files/file-name.d.ts.map +0 -1
- package/files/prepare-download-destination.d.ts +0 -8
- package/files/prepare-download-destination.d.ts.map +0 -1
- package/files/resolve-dial-file-api-path.d.ts +0 -13
- package/files/resolve-dial-file-api-path.d.ts.map +0 -1
- package/files/useDialFileListing/useDialFileListing.d.ts +0 -73
- package/files/useDialFileListing/useDialFileListing.d.ts.map +0 -1
- package/files/useDialFileManager/useDialFileManager.d.ts +0 -16
- package/files/useDialFileManager/useDialFileManager.d.ts.map +0 -1
- package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.d.ts +0 -14
- package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.d.ts.map +0 -1
- package/files/useDialFileMetadata/useDialFileMetadata.d.ts +0 -28
- package/files/useDialFileMetadata/useDialFileMetadata.d.ts.map +0 -1
- package/files/useDialFileMutations/useDialFileMutations.d.ts +0 -68
- package/files/useDialFileMutations/useDialFileMutations.d.ts.map +0 -1
- package/files/useDialFileSharing/useDialFileSharing.d.ts +0 -30
- package/files/useDialFileSharing/useDialFileSharing.d.ts.map +0 -1
- package/files/useDialFileUploadBatch/useDialFileUploadBatch.d.ts +0 -45
- package/files/useDialFileUploadBatch/useDialFileUploadBatch.d.ts.map +0 -1
- package/index.d.ts.map +0 -1
- package/oauth/authorize-url.d.ts +0 -16
- package/oauth/authorize-url.d.ts.map +0 -1
- package/oauth/handshake.d.ts +0 -30
- package/oauth/handshake.d.ts.map +0 -1
- package/oauth/models.d.ts +0 -81
- package/oauth/models.d.ts.map +0 -1
- package/oauth/popup.d.ts +0 -30
- package/oauth/popup.d.ts.map +0 -1
- package/oauth/toolset-id.d.ts +0 -23
- package/oauth/toolset-id.d.ts.map +0 -1
- package/oauth/types.d.ts +0 -84
- package/oauth/types.d.ts.map +0 -1
- package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.d.ts +0 -54
- package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.d.ts.map +0 -1
- package/oauth/useToolsetLogin/useToolsetLogin.d.ts +0 -79
- package/oauth/useToolsetLogin/useToolsetLogin.d.ts.map +0 -1
- package/prompt/export-prompt.d.ts +0 -31
- package/prompt/export-prompt.d.ts.map +0 -1
- package/prompt/prompt-resource.d.ts +0 -30
- package/prompt/prompt-resource.d.ts.map +0 -1
- package/prompt/prompt.d.ts +0 -34
- package/prompt/prompt.d.ts.map +0 -1
- package/prompt/usePromptsState/usePromptsState.d.ts +0 -34
- package/prompt/usePromptsState/usePromptsState.d.ts.map +0 -1
- package/scheduled-task/scheduled-task-mapping.d.ts +0 -19
- package/scheduled-task/scheduled-task-mapping.d.ts.map +0 -1
- package/scheduled-task/scheduled-task-trigger.d.ts.map +0 -1
- package/shared/application-schema.d.ts +0 -10
- package/shared/application-schema.d.ts.map +0 -1
- package/shared/browser-timezone.d.ts +0 -7
- package/shared/browser-timezone.d.ts.map +0 -1
- package/shared/cron-weekday.d.ts +0 -5
- package/shared/cron-weekday.d.ts.map +0 -1
- package/shared/custom-apps.d.ts +0 -7
- package/shared/custom-apps.d.ts.map +0 -1
- package/shared/external-services.d.ts +0 -16
- package/shared/external-services.d.ts.map +0 -1
- package/shared/formatting.d.ts +0 -5
- package/shared/formatting.d.ts.map +0 -1
- package/shared/locale.d.ts +0 -45
- package/shared/locale.d.ts.map +0 -1
- package/shared/string-utils.d.ts +0 -9
- package/shared/string-utils.d.ts.map +0 -1
- package/shared/toolset-login-events.d.ts +0 -15
- package/shared/toolset-login-events.d.ts.map +0 -1
- package/skill/skill-file-batch-validation.d.ts +0 -70
- package/skill/skill-file-batch-validation.d.ts.map +0 -1
- package/skill/skill-file-preview.d.ts +0 -25
- package/skill/skill-file-preview.d.ts.map +0 -1
- package/skill/skill-manifest.d.ts +0 -28
- package/skill/skill-manifest.d.ts.map +0 -1
- package/skill/skill-types.d.ts +0 -42
- package/skill/skill-types.d.ts.map +0 -1
- package/skill/skill.d.ts +0 -114
- package/skill/skill.d.ts.map +0 -1
- package/skill/useSkillEditorLoad.d.ts +0 -74
- package/skill/useSkillEditorLoad.d.ts.map +0 -1
- package/skill/useSkillEditorSubmit.d.ts +0 -105
- package/skill/useSkillEditorSubmit.d.ts.map +0 -1
- package/skill/useSkillFileActions.d.ts +0 -53
- package/skill/useSkillFileActions.d.ts.map +0 -1
- package/skill/useSkillFilePreview.d.ts +0 -38
- package/skill/useSkillFilePreview.d.ts.map +0 -1
- package/skill/useSkillsState/useSkillsState.d.ts.map +0 -1
- package/test-setup.d.ts +0 -2
- package/test-setup.d.ts.map +0 -1
- package/usage/useUsageData/useUsageData.d.ts +0 -20
- package/usage/useUsageData/useUsageData.d.ts.map +0 -1
- package/useChatSettingsFormConfig/useChatSettingsFormConfig.d.ts +0 -128
- package/useChatSettingsFormConfig/useChatSettingsFormConfig.d.ts.map +0 -1
- package/usePageFileDrag/usePageFileDrag.d.ts.map +0 -1
- package/usePanelMaxWidth/usePanelMaxWidth.d.ts +0 -6
- package/usePanelMaxWidth/usePanelMaxWidth.d.ts.map +0 -1
- package/useShareLink/useShareLink.d.ts +0 -23
- package/useShareLink/useShareLink.d.ts.map +0 -1
- package/useShareRecipientsCount/useShareRecipientsCount.d.ts.map +0 -1
- package/useToolsMenu/useToolsMenu.d.ts +0 -31
- package/useToolsMenu/useToolsMenu.d.ts.map +0 -1
- package/useViewportWidth/useViewportWidth.d.ts +0 -3
- package/useViewportWidth/useViewportWidth.d.ts.map +0 -1
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { SkillEditorFileActions, SkillEditorValues, SkillFileTreeNode } from '@epam/ai-dial-skill-editor';
|
|
2
|
-
import { Dispatch, SetStateAction } from 'react';
|
|
3
|
-
import { SkillFileBatchValidationMessages } from './skill-file-batch-validation';
|
|
4
|
-
import { SkillFileContent } from './skill-file-preview';
|
|
5
|
-
/** Localized messages `useSkillFileActions` needs beyond per-candidate batch validation. */
|
|
6
|
-
export interface SkillFileActionsMessages extends SkillFileBatchValidationMessages {
|
|
7
|
-
/** Returned as the commit error when an imported manifest's `name` doesn't match the skill being edited. */
|
|
8
|
-
manifestNameMismatch: string;
|
|
9
|
-
/** Returned as the commit error when the user declines the manifest-import confirmation. */
|
|
10
|
-
manifestImportDeclined: string;
|
|
11
|
-
/** Generic fallback commit error for a batch with invalid candidates but no specific batch error. */
|
|
12
|
-
saveError: string;
|
|
13
|
-
}
|
|
14
|
-
/** Parameters accepted by {@link useSkillFileActions}. */
|
|
15
|
-
export interface UseSkillFileActionsParams {
|
|
16
|
-
/** The editor's current supporting-file tree. */
|
|
17
|
-
files: SkillFileTreeNode[];
|
|
18
|
-
/** Updates `files`. */
|
|
19
|
-
setFiles: Dispatch<SetStateAction<SkillFileTreeNode[]>>;
|
|
20
|
-
/** In-memory bytes for every supporting file, keyed by relative path. */
|
|
21
|
-
filesContentRef: React.MutableRefObject<Map<string, SkillFileContent>>;
|
|
22
|
-
/** The loaded (or imported) manifest's full parsed frontmatter. */
|
|
23
|
-
frontmatterRef: React.MutableRefObject<Record<string, unknown>>;
|
|
24
|
-
/** The seeded baseline manifest values, used to approximate the projected total size. */
|
|
25
|
-
loadedValues: SkillEditorValues | undefined;
|
|
26
|
-
/** Updates `loadedValues` after a manifest import. */
|
|
27
|
-
setLoadedValues: Dispatch<SetStateAction<SkillEditorValues | undefined>>;
|
|
28
|
-
/** Whether the form is editing an existing skill rather than creating a new one. */
|
|
29
|
-
isEditMode: boolean;
|
|
30
|
-
/** Whether the form currently diverges from its seeded baseline. */
|
|
31
|
-
isDirty: boolean;
|
|
32
|
-
/** Updates the currently selected file-tree node path. */
|
|
33
|
-
setSelectedPath: Dispatch<SetStateAction<string>>;
|
|
34
|
-
/** Localized messages, resolved by the host. */
|
|
35
|
-
messages: SkillFileActionsMessages;
|
|
36
|
-
}
|
|
37
|
-
/** Return value of {@link useSkillFileActions}. */
|
|
38
|
-
export interface UseSkillFileActionsResult {
|
|
39
|
-
/** File-tree mutation operations, passed straight to `SkillEditor`'s `fileActions` prop. */
|
|
40
|
-
fileActions: SkillEditorFileActions;
|
|
41
|
-
/** Whether the "replace Skill metadata?" confirmation prompt should be shown. */
|
|
42
|
-
pendingManifestImport: boolean;
|
|
43
|
-
/** Resolves the in-flight manifest-import confirmation with the user's choice. */
|
|
44
|
-
resolveManifestImport: (accepted: boolean) => void;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Owns the Skill Editor's batch file upload workflow: validating a staged
|
|
48
|
-
* batch, committing it atomically (supporting files plus an optional
|
|
49
|
-
* `SKILL.md` manifest import, with a confirmation gate), and removing
|
|
50
|
-
* already-committed nodes.
|
|
51
|
-
*/
|
|
52
|
-
export declare const useSkillFileActions: ({ files, setFiles, filesContentRef, frontmatterRef, loadedValues, setLoadedValues, isEditMode, isDirty, setSelectedPath, messages, }: UseSkillFileActionsParams) => UseSkillFileActionsResult;
|
|
53
|
-
//# sourceMappingURL=useSkillFileActions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useSkillFileActions.d.ts","sourceRoot":"","sources":["../../src/skill/useSkillFileActions.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EAEvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAQtD,OAAO,EAEL,KAAK,gCAAgC,EACtC,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,4FAA4F;AAC5F,MAAM,WAAW,wBAAyB,SAAQ,gCAAgC;IAChF,4GAA4G;IAC5G,oBAAoB,EAAE,MAAM,CAAC;I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import { SkillFileContent } from './skill-file-preview';
|
|
2
|
-
/** Discriminant for the kind of error a `useSkillFilePreview` load can produce. */
|
|
3
|
-
export declare enum SkillPreviewErrorKind {
|
|
4
|
-
/** HTTP 403 — the caller lacks permission to read this file. */
|
|
5
|
-
Forbidden = "forbidden",
|
|
6
|
-
/** Any non-403 load failure. */
|
|
7
|
-
Generic = "generic"
|
|
8
|
-
}
|
|
9
|
-
/** Options accepted by `useSkillFilePreview`. */
|
|
10
|
-
export interface UseSkillFilePreviewOptions {
|
|
11
|
-
/**
|
|
12
|
-
* Opaque id of the selected skill file. Changing this resets all state
|
|
13
|
-
* and starts a new load; stale resolutions from the previous id are discarded.
|
|
14
|
-
*/
|
|
15
|
-
fileId: string;
|
|
16
|
-
/**
|
|
17
|
-
* App-owned loader; resolves with the raw file bytes when the request
|
|
18
|
-
* succeeds. The hook never constructs a URL or imports a REST client.
|
|
19
|
-
*/
|
|
20
|
-
onLoadFile: (fileId: string) => Promise<SkillFileContent>;
|
|
21
|
-
}
|
|
22
|
-
/** State returned by `useSkillFilePreview`. */
|
|
23
|
-
export interface UseSkillFilePreviewResult {
|
|
24
|
-
/** `true` while the async load is in flight. */
|
|
25
|
-
isLoading: boolean;
|
|
26
|
-
/** Resolved file content, or `null` while loading or after an error. */
|
|
27
|
-
content: SkillFileContent | null;
|
|
28
|
-
/** Classified load error, or `null` while loading or after a success. */
|
|
29
|
-
error: SkillPreviewErrorKind | null;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Headless hook that manages the skill-file preview loading lifecycle.
|
|
33
|
-
* Starts a new load on mount and whenever `fileId` changes; classifies errors
|
|
34
|
-
* as `Forbidden` (HTTP 403) or `Generic`; discards settlements from superseded
|
|
35
|
-
* or unmounted loads.
|
|
36
|
-
*/
|
|
37
|
-
export declare const useSkillFilePreview: ({ fileId, onLoadFile, }: UseSkillFilePreviewOptions) => UseSkillFilePreviewResult;
|
|
38
|
-
//# sourceMappingURL=useSkillFilePreview.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useSkillFilePreview.d.ts","sourceRoot":"","sources":["../../src/skill/useSkillFilePreview.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,mFAAmF;AACnF,oBAAY,qBAAqB;IAC/B,gEAAgE;IAChE,SAAS,cAAc;IACvB,gCAAgC;IAChC,OAAO,YAAY;CACpB;AAED,iDAAiD;AACjD,MAAM,WAAW,0BAA0B;IACzC;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,gBAAgB,CAAC,CAAC;CAC3D;AAED,+CAA+C;AAC/C,MAAM,WAAW,yBAAyB;IACxC,gDAAgD;IAChD,SAAS,EAAE,OAAO,CAAC;IACnB,wEAAwE;IACxE,OAAO,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACjC,yEAAyE;IACzE,KAAK,EAAE,qBAAqB,GAAG,IAAI,CAAC;CACrC;AAED;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,GAAI,yBAGjC,0BAA0B,KAAG,yBAoC/B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
package/test-setup.d.ts
DELETED
package/test-setup.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test-setup.d.ts","sourceRoot":"","sources":["../src/test-setup.ts"],"names":[],"mappings":""}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { UserLimitStatsResponseDto } from '@epam/ai-dial-chat-api-client';
|
|
2
|
-
/** Return shape of {@link useUsageData}. */
|
|
3
|
-
export interface UseUsageDataResult {
|
|
4
|
-
/** Rolling usage and rate-limit stats for every deployment the caller has used in the trailing 30 days, plus the caller's global cost budget. */
|
|
5
|
-
usage: UserLimitStatsResponseDto | undefined;
|
|
6
|
-
/** `true` while the fetch is in flight. */
|
|
7
|
-
isLoading: boolean;
|
|
8
|
-
/** Set when the `getUserUsage` call rejects. */
|
|
9
|
-
usageError: Error | undefined;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Fetches usage stats via the provided `getUserUsage` function on mount.
|
|
13
|
-
*
|
|
14
|
-
* `enabled` (default `true`) lets callers behind a feature flag skip the fetch
|
|
15
|
-
* entirely. The hook accepts the fetch function as a parameter so the caller
|
|
16
|
-
* supplies an already-configured API client — the hook never constructs or
|
|
17
|
-
* imports one itself.
|
|
18
|
-
*/
|
|
19
|
-
export declare const useUsageData: (getUserUsage: () => Promise<UserLimitStatsResponseDto>, enabled?: boolean) => UseUsageDataResult;
|
|
20
|
-
//# sourceMappingURL=useUsageData.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useUsageData.d.ts","sourceRoot":"","sources":["../../../src/usage/useUsageData/useUsageData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAG/E,4CAA4C;AAC5C,MAAM,WAAW,kBAAkB;IACjC,iJAAiJ;IACjJ,KAAK,EAAE,yBAAyB,GAAG,SAAS,CAAC;IAC7C,2CAA2C;IAC3C,SAAS,EAAE,OAAO,CAAC;IACnB,gDAAgD;IAChD,UAAU,EAAE,KAAK,GAAG,SAAS,CAAC;CAC/B;AAKD;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,GACvB,cAAc,MAAM,OAAO,CAAC,yBAAyB,CAAC,EACtD,iBAAc,KACb,kBAmCF,CAAC"}
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { ResponseFormat, Conversation, DeploymentFeatures } from '@epam/ai-dial-chat-shared';
|
|
2
|
-
/** Values emitted by the chat-settings modal when the user clicks Save. */
|
|
3
|
-
export interface ChatSettingsValues {
|
|
4
|
-
/** Updated response format, present when the response-format field was shown. */
|
|
5
|
-
responseFormat?: ResponseFormat;
|
|
6
|
-
/** Updated system prompt, present when the system-prompt field was shown. */
|
|
7
|
-
systemPrompt?: string;
|
|
8
|
-
/** Updated temperature, present when the temperature field was shown. */
|
|
9
|
-
temperature?: number;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Translatable strings the chat-settings form surfaces. Every field defaults
|
|
13
|
-
* to an English fallback inside the hook; pass translated values from the
|
|
14
|
-
* consuming app (e.g. via a `useTranslation`-backed labels hook).
|
|
15
|
-
*/
|
|
16
|
-
export interface ChatSettingsFormLabels {
|
|
17
|
-
/** Dropdown item label and modal title. */
|
|
18
|
-
settings: string;
|
|
19
|
-
/** Toast/message text announced after a successful save. */
|
|
20
|
-
savedNotification: string;
|
|
21
|
-
/** Label for the response-format field. */
|
|
22
|
-
responseFormatLabel: string;
|
|
23
|
-
/** Helper text shown below the response-format field. */
|
|
24
|
-
responseFormatHint: string;
|
|
25
|
-
/** Label for the Markdown radio option. */
|
|
26
|
-
responseFormatMarkdown: string;
|
|
27
|
-
/** Label for the plain-text radio option. */
|
|
28
|
-
responseFormatPlainText: string;
|
|
29
|
-
/** Label for the system-prompt field. */
|
|
30
|
-
systemPromptLabel: string;
|
|
31
|
-
/** Tooltip for the system-prompt field. */
|
|
32
|
-
systemPromptTooltip: string;
|
|
33
|
-
/** Label for the temperature field. */
|
|
34
|
-
temperatureLabel: string;
|
|
35
|
-
/** Label for the precise end of the temperature slider. */
|
|
36
|
-
temperaturePrecise: string;
|
|
37
|
-
/** Label for the neutral midpoint of the temperature slider. */
|
|
38
|
-
temperatureNeutral: string;
|
|
39
|
-
/** Label for the creative end of the temperature slider. */
|
|
40
|
-
temperatureCreative: string;
|
|
41
|
-
/** Hint text shown below the temperature field. */
|
|
42
|
-
temperatureHint: string;
|
|
43
|
-
/** Save button label. */
|
|
44
|
-
saveLabel: string;
|
|
45
|
-
/** Tooltip shown on the disabled Save button. */
|
|
46
|
-
saveDisabledTooltip: string;
|
|
47
|
-
}
|
|
48
|
-
/** Configuration the chat-settings popover/modal consumes. */
|
|
49
|
-
export type UseChatSettingsFormConfigResult = {
|
|
50
|
-
/** Feature flags controlling which fields appear. */
|
|
51
|
-
features: {
|
|
52
|
-
systemPrompt: boolean;
|
|
53
|
-
temperature: boolean;
|
|
54
|
-
responseFormat: boolean;
|
|
55
|
-
};
|
|
56
|
-
/** Current response format pre-selected in the modal. */
|
|
57
|
-
responseFormat: ResponseFormat;
|
|
58
|
-
/** Current system prompt pre-populated in the modal. */
|
|
59
|
-
systemPrompt: string;
|
|
60
|
-
/** Current temperature pre-populated in the modal. */
|
|
61
|
-
temperature: number;
|
|
62
|
-
/** Called with updated values when the user clicks Save. */
|
|
63
|
-
onSave: (values: ChatSettingsValues) => void;
|
|
64
|
-
/** Label for the dropdown menu item. */
|
|
65
|
-
menuItemLabel: string;
|
|
66
|
-
/** Modal title. */
|
|
67
|
-
title: string;
|
|
68
|
-
/** Label for the response-format field. */
|
|
69
|
-
responseFormatLabel: string;
|
|
70
|
-
/** Helper text shown below the response-format field. */
|
|
71
|
-
responseFormatHint: string;
|
|
72
|
-
/** Label for the Markdown radio option. */
|
|
73
|
-
responseFormatMarkdownLabel: string;
|
|
74
|
-
/** Label for the plain-text radio option. */
|
|
75
|
-
responseFormatPlainTextLabel: string;
|
|
76
|
-
/** Label for the system-prompt field. */
|
|
77
|
-
systemPromptLabel: string;
|
|
78
|
-
/** Tooltip for the system-prompt field. */
|
|
79
|
-
systemPromptTooltip: string;
|
|
80
|
-
/** Label for the temperature field. */
|
|
81
|
-
temperatureLabel: string;
|
|
82
|
-
/** Slider endpoint labels, in `[precise, neutral, creative]` order. */
|
|
83
|
-
temperatureLabels: [string, string, string];
|
|
84
|
-
/** Hint text shown below the temperature field. */
|
|
85
|
-
temperatureHint: string;
|
|
86
|
-
/** Save button label. */
|
|
87
|
-
saveLabel: string;
|
|
88
|
-
/** Tooltip shown on the disabled Save button. */
|
|
89
|
-
saveDisabledTooltip: string;
|
|
90
|
-
};
|
|
91
|
-
interface LocalModeValues {
|
|
92
|
-
responseFormat: ResponseFormat;
|
|
93
|
-
systemPrompt: string;
|
|
94
|
-
temperature: number;
|
|
95
|
-
}
|
|
96
|
-
interface LocalModeParams {
|
|
97
|
-
mode: 'local';
|
|
98
|
-
values: LocalModeValues;
|
|
99
|
-
onValuesChange: (values: LocalModeValues) => void;
|
|
100
|
-
deploymentFeatures?: DeploymentFeatures;
|
|
101
|
-
/** True when the selected deployment is a Quick App. Its orchestrator sets its own fixed temperature, so the temperature field is forced off regardless of `deploymentFeatures`. */
|
|
102
|
-
isQuickApp?: boolean;
|
|
103
|
-
}
|
|
104
|
-
interface ConversationModeParams {
|
|
105
|
-
mode: 'conversation';
|
|
106
|
-
conversation: Conversation;
|
|
107
|
-
onConversationChange: (conversation: Conversation) => void;
|
|
108
|
-
deploymentFeatures?: DeploymentFeatures;
|
|
109
|
-
/** True when the conversation's deployment is a Quick App. Its orchestrator sets its own fixed temperature, so the temperature field is forced off regardless of `deploymentFeatures`. */
|
|
110
|
-
isQuickApp?: boolean;
|
|
111
|
-
}
|
|
112
|
-
type Params = LocalModeParams | ConversationModeParams;
|
|
113
|
-
/** Common, host-injected options shared by both modes. */
|
|
114
|
-
interface Options {
|
|
115
|
-
/** Translatable labels. Fields not provided fall back to English defaults. */
|
|
116
|
-
labels?: Partial<ChatSettingsFormLabels>;
|
|
117
|
-
/** Called after a successful save so the host can surface its own toast/notification. */
|
|
118
|
-
onSaved?: () => void;
|
|
119
|
-
}
|
|
120
|
-
/**
|
|
121
|
-
* Assembles the chat-settings form config (feature flags, current values, save
|
|
122
|
-
* handler, labels) for either an in-flight local composer or a persisted
|
|
123
|
-
* conversation. Headless: translation and notifications are the host's
|
|
124
|
-
* responsibility, supplied via `labels` and `onSaved`.
|
|
125
|
-
*/
|
|
126
|
-
export declare const useChatSettingsFormConfig: (params: Params & Options) => UseChatSettingsFormConfigResult;
|
|
127
|
-
export {};
|
|
128
|
-
//# sourceMappingURL=useChatSettingsFormConfig.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useChatSettingsFormConfig.d.ts","sourceRoot":"","sources":["../../src/useChatSettingsFormConfig/useChatSettingsFormConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACxB,MAAM,2BAA2B,CAAC;AAGnC,2EAA2E;AAC3E,MAAM,WAAW,kBAAkB;IACjC,iFAAiF;IACjF,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,6EAA6E;I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AC1L,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,KAAK,MAAM,GAAG,eAAe,GAAG,sBAAsB,CAAC;AAEvD,0DAA0D;AAC1D,UAAU,OAAO;IACf,8EAA8E;IAC9E,MAAM,CAAC,EAAE,OAAO,CAAC,sBAAsB,CAAC,CAAC;IACzC,yFAAyF;IACzF,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AA4BD;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,GACpC,QAAQ,MAAM,GAAG,OAAO,KACvB,+BA+FF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usePageFileDrag.d.ts","sourceRoot":"","sources":["../../src/usePageFileDrag/usePageFileDrag.ts"],"names":[],"mappings":"AAQA,+CAA+C;AAC/C,MAAM,WAAW,qBAAqB;IACpC,sDAAsD;IACtD,UAAU,EAAE,OAAO,CAAC;IACpB,oEAAoE;IACpE,YAAY,EAAE,IAAI,EAAE,CAAC;IACrB,iEAAiE;IACjE,eAAe,EAAE,MAAM,IAAI,CAAC;CAC7B;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAC1B,8BAA2B,EAC3B,mBAAgB,KACf,qBAwEF,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Returns the maximum pixel width a resizable side panel may occupy without
|
|
3
|
-
* collapsing the main content area below `minContentAreaWidth`.
|
|
4
|
-
*/
|
|
5
|
-
export declare const usePanelMaxWidth: (minContentAreaWidth: number) => number;
|
|
6
|
-
//# sourceMappingURL=usePanelMaxWidth.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usePanelMaxWidth.d.ts","sourceRoot":"","sources":["../../src/usePanelMaxWidth/usePanelMaxWidth.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAAI,qBAAqB,MAAM,KAAG,MAG9D,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ShareApi } from '@epam/ai-dial-chat-api-client';
|
|
2
|
-
import { ShareLinkAccess, ShareLinkData } from '@epam/ai-dial-share';
|
|
3
|
-
/** Result returned by {@link useShareLink}. */
|
|
4
|
-
export interface UseShareLinkResult {
|
|
5
|
-
/** Resolved share-link data, or `undefined` while loading or on error. */
|
|
6
|
-
data: ShareLinkData | undefined;
|
|
7
|
-
/** Whether the share link is still being created. */
|
|
8
|
-
isLoading: boolean;
|
|
9
|
-
/** Set when the share link could not be created. */
|
|
10
|
-
error: Error | null;
|
|
11
|
-
/** Requests a new share link for the given access levels. */
|
|
12
|
-
setAccess: (access: ShareLinkAccess[]) => void;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Resolves and manages share-link data for a DIAL Core resource.
|
|
16
|
-
*
|
|
17
|
-
* Accepts an already-configured `ShareApi` instance — this hook owns only
|
|
18
|
-
* the request lifecycle (loading/error, a stale-response guard, and
|
|
19
|
-
* re-fetch on access change), not the client's base URL, auth, or CSRF
|
|
20
|
-
* setup, which stay the caller's responsibility.
|
|
21
|
-
*/
|
|
22
|
-
export declare const useShareLink: (shareApi: Pick<ShareApi, "createShareLink">, itemId: string, origin?: string) => UseShareLinkResult;
|
|
23
|
-
//# sourceMappingURL=useShareLink.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useShareLink.d.ts","sourceRoot":"","sources":["../../src/useShareLink/useShareLink.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,QAAQ,EACd,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAYrE,+CAA+C;AAC/C,MAAM,WAAW,kBAAkB;IACjC,0EAA0E;IAC1E,IAAI,EAAE,aAAa,GAAG,SAAS,CAAC;IAChC,qDAAqD;IACrD,SAAS,EAAE,OAAO,CAAC;IACnB,oDAAoD;IACpD,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,6DAA6D;IAC7D,SAAS,EAAE,CAAC,MAAM,EAAE,eAAe,EAAE,KAAK,IAAI,CAAC;CAChD;AAcD;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,GACvB,UAAU,IAAI,CAAC,QAAQ,EAAE,iBAAiB,CAAC,EAC3C,QAAQ,MAAM,EACd,SAAQ,MAA+B,KACtC,kBAwDF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useShareRecipientsCount.d.ts","sourceRoot":"","sources":["../../src/useShareRecipientsCount/useShareRecipientsCount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAG9D,yEAAyE;AACzE,oBAAY,qBAAqB;IAC/B,+CAA+C;IAC/C,IAAI,SAAS;IACb,6BAA6B;IAC7B,OAAO,YAAY;IACnB,8CAA8C;IAC9C,QAAQ,aAAa;IACrB,kDAAkD;IAClD,OAAO,YAAY;CACpB;AAED,sDAAsD;AACtD,MAAM,WAAW,oBAAoB;IACnC,2DAA2D;IAC3D,MAAM,EAAE,qBAAqB,CAAC;IAC9B,kFAAkF;IAClF,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,+DAA+D;AAC/D,MAAM,WAAW,6BAA6B;IAC5C,sEAAsE;IACtE,sBAAsB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACjD,6CAA6C;IAC7C,kBAAkB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,oBAAoB,CAAC;IAC7D,+EAA+E;IAC/E,yBAAyB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACrD;AAMD;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,GAClC,UAAU,IAAI,CAAC,QAAQ,EAAE,yBAAyB,CAAC,KAClD,6BA0DF,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { DeploymentConfigurationSchema, ToolMenuItem } from '@epam/ai-dial-chat-shared';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
/** Host-supplied inputs to {@link useToolsMenu}. */
|
|
4
|
-
export interface UseToolsMenuParams {
|
|
5
|
-
/** Id of the currently selected deployment, or `null` when none is selected. */
|
|
6
|
-
selectedItemId: string | null;
|
|
7
|
-
/** JSON-schema configuration for the selected deployment, or `null` when none. */
|
|
8
|
-
selectedDeploymentConfiguration: DeploymentConfigurationSchema | null;
|
|
9
|
-
/** Icon element rendered on every tool menu item. Defaults to `null`. */
|
|
10
|
-
toolIcon?: ReactNode;
|
|
11
|
-
}
|
|
12
|
-
/** Result returned by {@link useToolsMenu}. */
|
|
13
|
-
export type UseToolsMenuResult = {
|
|
14
|
-
/** One item per boolean property of the deployment configuration schema, in schema order. */
|
|
15
|
-
toolsMenuItems: ToolMenuItem[];
|
|
16
|
-
/** Toggles the tool with the given id; ignores unknown ids. */
|
|
17
|
-
onToolToggle: (id: string) => void;
|
|
18
|
-
/** Stable record of tool ids to their current on/off state, for completion requests. */
|
|
19
|
-
toolConfigurationValue: Record<string, boolean>;
|
|
20
|
-
/** Restores toggle state from a persisted tool configuration record. */
|
|
21
|
-
restoreToolConfiguration: (configurationValue: Record<string, unknown> | undefined) => void;
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* Derives the tools submenu from the active deployment's configuration schema:
|
|
25
|
-
* every boolean property becomes a toggle. Manages toggle state locally, resets
|
|
26
|
-
* on deployment change, and exposes a stable `toolConfigurationValue` record for
|
|
27
|
-
* inclusion in completion requests. Headless: the tool icon is the host's
|
|
28
|
-
* responsibility, supplied via `toolIcon`.
|
|
29
|
-
*/
|
|
30
|
-
export declare const useToolsMenu: (params: UseToolsMenuParams) => UseToolsMenuResult;
|
|
31
|
-
//# sourceMappingURL=useToolsMenu.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useToolsMenu.d.ts","sourceRoot":"","sources":["../../src/useToolsMenu/useToolsMenu.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,6BAA6B,EAE7B,YAAY,EACb,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,KAAK,SAAS,EAMf,MAAM,OAAO,CAAC;AAEf,oDAAoD;AACpD,MAAM,WAAW,kBAAkB;IACjC,gFAAgF;IAChF,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,kFAAkF;IAClF,+BAA+B,EAAE,6BAA6B,GAAG,IAAI,CAAC;IACtE,yEAAyE;IACzE,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,+CAA+C;AAC/C,MAAM,MAAM,kBAAkB,GAAG;IAC/B,6FAA6F;IAC7F,cAAc,EAAE,YAAY,EAAE,CAAC;IAC/B,+DAA+D;IAC/D,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,wFAAwF;IACxF,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChD,wEAAwE;IACxE,wBAAwB,EAAE,CACxB,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,KACpD,IAAI,CAAC;CACX,CAAC;AAuCF;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,GACvB,QAAQ,kBAAkB,KACzB,kBAuFF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useViewportWidth.d.ts","sourceRoot":"","sources":["../../src/useViewportWidth/useViewportWidth.ts"],"names":[],"mappings":"AAKA,0EAA0E;AAC1E,eAAO,MAAM,gBAAgB,QAAO,MAYnC,CAAC"}
|