@epam/ai-dial-chat-hooks 1.4.0-dev.12 → 1.4.0-dev.126
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/map-api-error.d.ts +10 -0
- package/api-error/map-api-error.d.ts.map +1 -0
- package/api-error/map-api-error.js +11 -0
- package/attachment/useAttachmentAction/useAttachmentAction.d.ts +1 -1
- package/attachment/useAttachmentAction/useAttachmentAction.d.ts.map +1 -1
- package/attachment/useAttachmentAction/useAttachmentAction.js +35 -44
- package/catalog/create-publish-api.d.ts +28 -1
- package/catalog/create-publish-api.d.ts.map +1 -1
- package/catalog/create-publish-api.js +21 -1
- package/catalog/entity-details.d.ts +5 -2
- package/catalog/entity-details.d.ts.map +1 -1
- package/catalog/map-entity-details-to-catalog.d.ts +4 -0
- package/catalog/map-entity-details-to-catalog.d.ts.map +1 -1
- package/catalog/map-entity-details-to-catalog.js +15 -13
- package/catalog/publish-dependency-icons.d.ts +22 -0
- package/catalog/publish-dependency-icons.d.ts.map +1 -0
- package/catalog/publish-dependency-icons.js +11 -0
- package/catalog/publish-target-taken.d.ts +31 -0
- package/catalog/publish-target-taken.d.ts.map +1 -0
- package/catalog/publish-target-taken.js +14 -0
- package/catalog/publish.d.ts +15 -2
- package/catalog/publish.d.ts.map +1 -1
- package/catalog/publish.js +15 -4
- package/catalog/resource-name-conflict.d.ts.map +1 -1
- package/catalog/resource-name-conflict.js +19 -22
- package/catalog/resource-save-adapter.d.ts +7 -2
- package/catalog/resource-save-adapter.d.ts.map +1 -1
- package/catalog/resource-save-adapters.d.ts +32 -7
- package/catalog/resource-save-adapters.d.ts.map +1 -1
- package/catalog/resource-save-adapters.js +47 -41
- package/catalog/resource-save.d.ts +17 -9
- package/catalog/resource-save.d.ts.map +1 -1
- package/catalog/resource-save.js +34 -25
- package/catalog/save-destination-root.d.ts +12 -0
- package/catalog/save-destination-root.d.ts.map +1 -0
- package/catalog/save-destination-root.js +6 -0
- package/catalog/use-publish-dependencies.d.ts +19 -0
- package/catalog/use-publish-dependencies.d.ts.map +1 -0
- package/catalog/use-publish-dependencies.js +25 -0
- package/catalog/use-publish-target-guard.d.ts +45 -0
- package/catalog/use-publish-target-guard.d.ts.map +1 -0
- package/catalog/use-publish-target-guard.js +18 -0
- package/catalog/usePublishFolders/usePublishFolders.d.ts +8 -2
- package/catalog/usePublishFolders/usePublishFolders.d.ts.map +1 -1
- package/catalog/usePublishFolders/usePublishFolders.js +29 -29
- package/catalog/useResourceSavePanel/useResourceSavePanel.d.ts +27 -6
- package/catalog/useResourceSavePanel/useResourceSavePanel.d.ts.map +1 -1
- package/catalog/useResourceSavePanel/useResourceSavePanel.js +184 -118
- package/catalog/useVersionHistory/useVersionHistory.d.ts +38 -0
- package/catalog/useVersionHistory/useVersionHistory.d.ts.map +1 -0
- package/catalog/useVersionHistory/useVersionHistory.js +49 -0
- package/catalog/useVersionHistory/useVersionHistorySection.d.ts +30 -0
- package/catalog/useVersionHistory/useVersionHistorySection.d.ts.map +1 -0
- package/catalog/useVersionHistory/useVersionHistorySection.js +31 -0
- package/catalog/version-history.d.ts +42 -0
- package/catalog/version-history.d.ts.map +1 -0
- package/catalog/version-history.js +27 -0
- package/catalog.js +39 -31
- package/conversation/announcement-message.d.ts +12 -0
- package/conversation/announcement-message.d.ts.map +1 -1
- package/conversation/announcement-message.js +16 -10
- package/conversation/conversation-list.d.ts +7 -1
- package/conversation/conversation-list.d.ts.map +1 -1
- package/conversation/conversation-list.js +11 -2
- package/conversation/conversation-transfer/zip-export.d.ts +1 -1
- package/conversation/conversation-transfer/zip-export.d.ts.map +1 -1
- package/conversation/conversation-transfer/zip-export.js +7 -8
- package/conversation/conversation-transfer/zip-import.d.ts.map +1 -1
- package/conversation/conversation-transfer/zip-import.js +8 -9
- package/conversation/useConversationExport/useConversationExport.d.ts.map +1 -1
- package/conversation/useConversationExport/useConversationExport.js +3 -1
- package/conversation/useConversationStream/generation-resume.d.ts.map +1 -1
- package/conversation/useConversationStream/generation-resume.js +119 -96
- package/conversation.js +44 -44
- package/entry-points/catalog.d.ts +7 -0
- package/entry-points/catalog.d.ts.map +1 -1
- package/entry-points/file-manager.d.ts +1 -0
- package/entry-points/file-manager.d.ts.map +1 -1
- package/entry-points/project.d.ts +5 -0
- package/entry-points/project.d.ts.map +1 -1
- package/entry-points/scheduled-tasks.d.ts +2 -0
- package/entry-points/scheduled-tasks.d.ts.map +1 -1
- package/entry-points/usage-limits.d.ts +1 -0
- package/entry-points/usage-limits.d.ts.map +1 -1
- package/entry-points/utils.d.ts +7 -0
- package/entry-points/utils.d.ts.map +1 -1
- package/file-manager.js +33 -32
- package/files/annotation.d.ts +3 -3
- package/files/annotation.d.ts.map +1 -1
- package/files/annotation.js +12 -11
- package/files/attachment-canvas.d.ts +1 -1
- package/files/attachment-canvas.d.ts.map +1 -1
- package/files/attachment-canvas.js +135 -135
- package/files/attachment-type-labels.d.ts +3 -0
- package/files/attachment-type-labels.d.ts.map +1 -0
- package/files/attachment-type-labels.js +12 -0
- package/files/attachment-types.d.ts +0 -2
- package/files/attachment-types.d.ts.map +1 -1
- package/files/attachment-types.js +7 -14
- package/files/dial-file.d.ts +24 -0
- package/files/dial-file.d.ts.map +1 -1
- package/files/dial-file.js +35 -5
- package/index.d.ts +23 -0
- package/index.d.ts.map +1 -1
- package/index.js +266 -244
- package/org-units/models.d.ts +11 -0
- package/org-units/models.d.ts.map +1 -0
- package/org-units/org-unit-guards.d.ts +98 -0
- package/org-units/org-unit-guards.d.ts.map +1 -0
- package/org-units/org-unit-guards.js +41 -0
- package/org-units/types.d.ts +14 -0
- package/org-units/types.d.ts.map +1 -0
- package/org-units/types.js +6 -0
- package/org-units/useFolderGuards/useFolderGuards.d.ts +31 -0
- package/org-units/useFolderGuards/useFolderGuards.d.ts.map +1 -0
- package/org-units/useFolderGuards/useFolderGuards.js +50 -0
- package/org-units/useOrgUnits/useOrgUnits.d.ts +34 -0
- package/org-units/useOrgUnits/useOrgUnits.d.ts.map +1 -0
- package/org-units/useOrgUnits/useOrgUnits.js +54 -0
- package/package.json +19 -19
- package/project/project-conversation-data-source.js +4 -4
- package/project/project-sharing-client.d.ts +8 -0
- package/project/project-sharing-client.d.ts.map +1 -0
- package/project/project-sharing-client.js +11 -0
- package/project/project-sharing.d.ts +28 -0
- package/project/project-sharing.d.ts.map +1 -0
- package/project/project-sharing.js +22 -0
- package/project/use-pinned-project-chats.d.ts +4 -2
- package/project/use-pinned-project-chats.d.ts.map +1 -1
- package/project/use-pinned-project-chats.js +152 -96
- package/project/use-project-conversations.d.ts.map +1 -1
- package/project/use-project-conversations.js +2 -2
- package/project/use-project-remove-from-list.d.ts +30 -0
- package/project/use-project-remove-from-list.d.ts.map +1 -0
- package/project/use-project-remove-from-list.js +39 -0
- package/project/use-project-revoke-access.d.ts +15 -0
- package/project/use-project-revoke-access.d.ts.map +1 -0
- package/project/use-project-revoke-access.js +32 -0
- package/project/use-project-share-recipients.d.ts +7 -0
- package/project/use-project-share-recipients.d.ts.map +1 -0
- package/project/use-project-share-recipients.js +36 -0
- package/project/use-projects.d.ts +1 -0
- package/project/use-projects.d.ts.map +1 -1
- package/project/use-projects.js +2 -1
- package/project.js +7 -2
- package/scheduled-task/scheduled-task-description.d.ts +19 -13
- package/scheduled-task/scheduled-task-description.d.ts.map +1 -1
- package/scheduled-task/scheduled-task-description.js +39 -55
- package/scheduled-task/scheduled-task-display.d.ts +67 -6
- package/scheduled-task/scheduled-task-display.d.ts.map +1 -1
- package/scheduled-task/scheduled-task-display.js +55 -43
- package/scheduled-task/scheduled-task-next-occurrence.d.ts +9 -5
- package/scheduled-task/scheduled-task-next-occurrence.d.ts.map +1 -1
- package/scheduled-task/scheduled-task-next-occurrence.js +16 -16
- package/scheduled-task/scheduled-task-time-format.d.ts +36 -0
- package/scheduled-task/scheduled-task-time-format.d.ts.map +1 -0
- package/scheduled-task/scheduled-task-time-format.js +34 -0
- package/scheduled-task/scheduled-task-trigger.d.ts +6 -4
- package/scheduled-task/scheduled-task-trigger.d.ts.map +1 -1
- package/scheduled-task/scheduled-task-trigger.js +92 -115
- package/scheduled-tasks.js +15 -13
- package/shared/timezones.d.ts +30 -0
- package/shared/timezones.d.ts.map +1 -0
- package/shared/timezones.js +102 -0
- package/skill/skill-archive.d.ts.map +1 -1
- package/skill/skill-archive.js +6 -7
- package/skill/skill.d.ts +2 -2
- package/skill/skill.d.ts.map +1 -1
- package/skill/skill.js +33 -34
- package/skill/useSkillEditorLoad.js +1 -1
- package/skill/useSkillEditorSubmit.d.ts +4 -1
- package/skill/useSkillEditorSubmit.d.ts.map +1 -1
- package/skill/useSkillEditorSubmit.js +125 -121
- package/usage/map-usage-data-to-dashboard.d.ts +22 -1
- package/usage/map-usage-data-to-dashboard.d.ts.map +1 -1
- package/usage/map-usage-data-to-dashboard.js +33 -2
- package/usage/spending-limits-mode.d.ts +37 -0
- package/usage/spending-limits-mode.d.ts.map +1 -0
- package/usage/spending-limits-mode.js +15 -0
- package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.d.ts +6 -2
- package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.d.ts.map +1 -1
- package/usage/useUsageLimitBanner/useUsageLimitBanner.d.ts +4 -1
- package/usage/useUsageLimitBanner/useUsageLimitBanner.d.ts.map +1 -1
- package/usage/useUsageLimitBanner/useUsageLimitBanner.js +55 -47
- package/usage-limits.js +6 -5
- package/usage.js +3 -3
- package/utils.js +28 -22
- package/shared/cron-day-of-month.d.ts +0 -21
- package/shared/cron-day-of-month.d.ts.map +0 -1
- package/shared/cron-day-of-month.js +0 -13
package/file-manager.js
CHANGED
|
@@ -1,32 +1,33 @@
|
|
|
1
|
-
import { FileSelectionKind as e, getFileSelectionKind as t, isDialFileId as n, isDialFolderId as r,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
|
|
1
|
+
import { FileSelectionKind as e, getFileSelectionKind as t, isDialFileId as n, isDialFolderId as r, isDialProjectFileId as i, isDialStoredFileId as a, isOwnDialFileId as o, parseDialProjectFileId as s, resolveDialFileBucketAndPath as c, resolveDialFolderPath as l, resolveRelativeDialFilePath as u } from "./files/dial-file.js";
|
|
2
|
+
import { openAnnotationAttachment as d } from "./files/annotation.js";
|
|
3
|
+
import { isDialFileAcceptType as f, mimeTypesToDialFileAcceptTypes as p, mimeTypesToFileAccept as m } from "./files/attachment-types.js";
|
|
4
|
+
import { sanitizeFileName as h, splitFileNameExtension as g, trimFileNameToByteLimit as _ } from "./files/file-name.js";
|
|
5
|
+
import { DialFilesApiUploadMode as v } from "./files/dial-files-api.js";
|
|
6
|
+
import { FileManagerNotificationReason as y, FileNameValidationErrorReason as b, FileOperationKind as x } from "./files/dial-file-manager.types.js";
|
|
7
|
+
import { COLUMNS_MY_FILES as S, COLUMNS_ORGANIZATION as C, COLUMNS_SHARED as w, CORE_PERMISSION_MAP as T, DATE_OPTIONS as E, DIAL_FILE_MANAGER_SECTION_TABS as D, PATH_SEPARATOR_REGEXP as O, RESERVED_MARKER_NAME as k, UPLOAD_CONCURRENCY as A } from "./files/dial-file-manager.model.js";
|
|
8
|
+
import { buildSharedItemVirtualPath as j, dialCorePathToRelative as M, findDialFileByPath as N, findFolderByVirtualPath as P, formatOperationFolderName as F, getVirtualPathName as I, hasDialFileWritePermission as L, hasForbiddenNameSymbols as R, hasSamePaths as z, isCopyMoveDuplicateAllowed as B, isShareActionsAllowed as V, normalizeVirtualPath as H, parseNewFolderVirtualPath as U, resolveOwnerCoords as W, resolveSectionByPath as G, unionPathSets as K, withRoutableRootLabels as q } from "./files/dial-file-manager-path.util.js";
|
|
9
|
+
import { resolveDialFileApiPath as J, virtualPathToApiPath as Y } from "./files/resolve-dial-file-api-path.js";
|
|
10
|
+
import { prepareCopyItems as X, prepareMoveRenameItems as Z } from "./files/dial-file-manager-copy-move.util.js";
|
|
11
|
+
import { UploadBodyEncoding as Q, UploadNetworkError as $, createUploadFileWithProgress as ee } from "./files/create-upload-file-with-progress.js";
|
|
12
|
+
import { buildFromCache as te, buildSharedSearchScope as ne, fetchByTab as re, fetchForSearch as ie, findFirstSuccessfulCopyMoveItem as ae, mapCorePermissions as oe, mapFileMetadataToDialFile as se, mapSearchItem as ce, mergeCreatedFolderIntoCache as le, resolveTransferFailureReason as ue, resolveUploadFailureReason as de, updateEntry as fe } from "./files/dial-file-manager-mapping.util.js";
|
|
13
|
+
import { mimeTypesToAttachmentExtensionLabels as pe } from "./files/attachment-type-labels.js";
|
|
14
|
+
import { createFilesApiClient as me } from "./files/create-files-api.js";
|
|
15
|
+
import { getUrlFileName as he, isExternalSourcePreviewable as ge, resolveExternalSourceContentType as _e } from "./files/source-content.js";
|
|
16
|
+
import { annotationToDisplayAttachment as ve, attachmentDtoToDisplayAttachment as ye, attachmentDtosToDisplayAttachments as be } from "./files/attachment-dto-to-display.js";
|
|
17
|
+
import { useUnshareConfirmationState as xe } from "./files/useUnshareConfirmationState/useUnshareConfirmationState.js";
|
|
18
|
+
import { dialFileToAttachment as Se, dialFilesToAttachments as Ce, dialFolderPathToAttachment as we } from "./files/dial-file-to-attachment.js";
|
|
19
|
+
import { DownloadDestinationType as Te } from "./files/download-destination.js";
|
|
20
|
+
import { prepareDownloadDestination as Ee } from "./files/prepare-download-destination.js";
|
|
21
|
+
import { deriveActionProfile as De } from "./files/file-manager-variant.js";
|
|
22
|
+
import { useDialFileListing as Oe } from "./files/useDialFileListing/useDialFileListing.js";
|
|
23
|
+
import { useDialFileMetadata as ke } from "./files/useDialFileMetadata/useDialFileMetadata.js";
|
|
24
|
+
import { useDialFileMutations as Ae } from "./files/useDialFileMutations/useDialFileMutations.js";
|
|
25
|
+
import { useDialFileSharing as je } from "./files/useDialFileSharing/useDialFileSharing.js";
|
|
26
|
+
import { useDialFileUploadBatch as Me } from "./files/useDialFileUploadBatch/useDialFileUploadBatch.js";
|
|
27
|
+
import { useDialFileManager as Ne } from "./files/useDialFileManager/useDialFileManager.js";
|
|
28
|
+
import { useDialFileManagerSections as Pe } from "./files/useDialFileManagerSections/useDialFileManagerSections.js";
|
|
29
|
+
import { useDialFileManagerTabConfig as Fe } from "./files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.js";
|
|
30
|
+
import { useFileAttachmentPicker as Ie } from "./files/useFileAttachmentPicker/useFileAttachmentPicker.js";
|
|
31
|
+
import { useFileAttachmentModalState as Le } from "./files/useFileAttachmentModalState/useFileAttachmentModalState.js";
|
|
32
|
+
import { useGridEditingScroll as Re } from "@epam/ai-dial-chat-shared";
|
|
33
|
+
export { S as COLUMNS_MY_FILES, C as COLUMNS_ORGANIZATION, w as COLUMNS_SHARED, T as CORE_PERMISSION_MAP, E as DATE_OPTIONS, D as DIAL_FILE_MANAGER_SECTION_TABS, v as DialFilesApiUploadMode, Te as DownloadDestinationType, y as FileManagerNotificationReason, b as FileNameValidationErrorReason, x as FileOperationKind, e as FileSelectionKind, O as PATH_SEPARATOR_REGEXP, k as RESERVED_MARKER_NAME, A as UPLOAD_CONCURRENCY, Q as UploadBodyEncoding, $ as UploadNetworkError, ve as annotationToDisplayAttachment, ye as attachmentDtoToDisplayAttachment, be as attachmentDtosToDisplayAttachments, te as buildFromCache, j as buildSharedItemVirtualPath, ne as buildSharedSearchScope, me as createFilesApiClient, ee as createUploadFileWithProgress, De as deriveActionProfile, M as dialCorePathToRelative, Se as dialFileToAttachment, Ce as dialFilesToAttachments, we as dialFolderPathToAttachment, re as fetchByTab, ie as fetchForSearch, N as findDialFileByPath, ae as findFirstSuccessfulCopyMoveItem, P as findFolderByVirtualPath, F as formatOperationFolderName, t as getFileSelectionKind, he as getUrlFileName, I as getVirtualPathName, L as hasDialFileWritePermission, R as hasForbiddenNameSymbols, z as hasSamePaths, B as isCopyMoveDuplicateAllowed, f as isDialFileAcceptType, n as isDialFileId, r as isDialFolderId, i as isDialProjectFileId, a as isDialStoredFileId, ge as isExternalSourcePreviewable, o as isOwnDialFileId, V as isShareActionsAllowed, oe as mapCorePermissions, se as mapFileMetadataToDialFile, ce as mapSearchItem, le as mergeCreatedFolderIntoCache, pe as mimeTypesToAttachmentExtensionLabels, p as mimeTypesToDialFileAcceptTypes, m as mimeTypesToFileAccept, H as normalizeVirtualPath, d as openAnnotationAttachment, s as parseDialProjectFileId, U as parseNewFolderVirtualPath, X as prepareCopyItems, Ee as prepareDownloadDestination, Z as prepareMoveRenameItems, J as resolveDialFileApiPath, c as resolveDialFileBucketAndPath, l as resolveDialFolderPath, _e as resolveExternalSourceContentType, W as resolveOwnerCoords, u as resolveRelativeDialFilePath, G as resolveSectionByPath, ue as resolveTransferFailureReason, de as resolveUploadFailureReason, h as sanitizeFileName, g as splitFileNameExtension, _ as trimFileNameToByteLimit, K as unionPathSets, fe as updateEntry, Oe as useDialFileListing, Ne as useDialFileManager, Pe as useDialFileManagerSections, Fe as useDialFileManagerTabConfig, ke as useDialFileMetadata, Ae as useDialFileMutations, je as useDialFileSharing, Me as useDialFileUploadBatch, Le as useFileAttachmentModalState, Ie as useFileAttachmentPicker, Re as useGridEditingScroll, xe as useUnshareConfirmationState, Y as virtualPathToApiPath, q as withRoutableRootLabels };
|
package/files/annotation.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import { AttachmentResource } from '@epam/ai-dial-chat-shared';
|
|
|
2
2
|
import { ResolveDownloadUrl } from '../attachment/useAttachmentAction/useAttachmentAction';
|
|
3
3
|
/**
|
|
4
4
|
* Opens a cited/referenced attachment: triggers a browser download for
|
|
5
|
-
* DIAL-hosted files (`files/...` ids) via the injected
|
|
6
|
-
* otherwise opens the URL in a new tab. No-ops when the
|
|
7
|
-
* URL or the download URL cannot be resolved.
|
|
5
|
+
* DIAL-hosted files (`files/...` and project file ids) via the injected
|
|
6
|
+
* `resolveDownloadUrl`, otherwise opens the URL in a new tab. No-ops when the
|
|
7
|
+
* attachment has no URL or the download URL cannot be resolved.
|
|
8
8
|
*/
|
|
9
9
|
export declare const openAnnotationAttachment: (attachment: AttachmentResource, resolveDownloadUrl: ResolveDownloadUrl) => void;
|
|
10
10
|
//# sourceMappingURL=annotation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annotation.d.ts","sourceRoot":"","sources":["../../src/files/annotation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,kBAAkB,
|
|
1
|
+
{"version":3,"file":"annotation.d.ts","sourceRoot":"","sources":["../../src/files/annotation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,kBAAkB,EAGxB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uDAAuD,CAAC;AAGhG;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,GACnC,YAAY,kBAAkB,EAC9B,oBAAoB,kBAAkB,KACrC,IAgBF,CAAC"}
|
package/files/annotation.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { isDialStoredFileId as e } from "./dial-file.js";
|
|
2
|
+
import { ensureDownloadFilename as t, triggerAnchorDownload as n } from "@epam/ai-dial-chat-shared";
|
|
3
3
|
//#region src/files/annotation.ts
|
|
4
|
-
var
|
|
5
|
-
let { url:
|
|
6
|
-
if (
|
|
7
|
-
let
|
|
8
|
-
if (e(
|
|
9
|
-
let e =
|
|
4
|
+
var r = (r, i) => {
|
|
5
|
+
let { url: a } = r;
|
|
6
|
+
if (a == null) return;
|
|
7
|
+
let o = a.split("#")[0];
|
|
8
|
+
if (e(o)) {
|
|
9
|
+
let e = i(o);
|
|
10
10
|
if (e == null) return;
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
let a = r.title ?? o.split("/").pop() ?? "";
|
|
12
|
+
n(e, t(a, o, r.type));
|
|
13
|
+
} else window.open(a, "_blank", "noopener,noreferrer");
|
|
13
14
|
};
|
|
14
15
|
//#endregion
|
|
15
|
-
export {
|
|
16
|
+
export { r as openAnnotationAttachment };
|
|
@@ -7,7 +7,7 @@ import { AnnotationGroup } from '@epam/ai-dial-quotations';
|
|
|
7
7
|
* file-download endpoint.
|
|
8
8
|
*/
|
|
9
9
|
export interface AttachmentCanvasUrlResolvers {
|
|
10
|
-
/** Resolves a DIAL Core file id to a downloadable URL. */
|
|
10
|
+
/** Resolves a DIAL Core file id or project file id (a citation or reference source) to a downloadable URL. */
|
|
11
11
|
resolveDialFileDownloadUrl: (fileId: string) => string | undefined;
|
|
12
12
|
/** Resolves the best downloadable DIAL-file URL from an attachment's `url` or `referenceUrl`. */
|
|
13
13
|
resolveDialUrl: (attachment: DisplayAttachment) => string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attachment-canvas.d.ts","sourceRoot":"","sources":["../../src/files/attachment-canvas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,EAGlB,8BAA8B,EAC9B,gBAAgB,EAChB,sBAAsB,EACtB,uBAAuB,EACxB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAIL,aAAa,EAEd,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EACV,UAAU,EACV,qBAAqB,EAErB,kBAAkB,EAClB,gBAAgB,EAEhB,iBAAiB,EAElB,MAAM,2BAA2B,CAAC;AA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