@epam/ai-dial-chat-shared 1.4.0-dev.63 → 1.4.0-dev.66
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/index.d.ts +2 -0
- package/index.d.ts.map +1 -1
- package/index.js +79 -78
- package/models/org-unit.d.ts +13 -0
- package/models/org-unit.d.ts.map +1 -0
- package/package.json +1 -1
- package/utils/org-unit.d.ts +17 -0
- package/utils/org-unit.d.ts.map +1 -0
- package/utils/org-unit.js +16 -0
package/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export * from './models/application-visualizer';
|
|
|
16
16
|
export * from './models/entity';
|
|
17
17
|
export * from './models/locale';
|
|
18
18
|
export * from './models/inline-segment';
|
|
19
|
+
export * from './models/org-unit';
|
|
19
20
|
export * from './types/attachment';
|
|
20
21
|
export * from './types/entity-type';
|
|
21
22
|
export * from './types/mime-type';
|
|
@@ -27,6 +28,7 @@ export * from './utils/string-utils';
|
|
|
27
28
|
export * from './utils/entity-field-limits';
|
|
28
29
|
export * from './utils/merge-class';
|
|
29
30
|
export * from './utils/build-css-vars';
|
|
31
|
+
export * from './utils/org-unit';
|
|
30
32
|
export * from './utils/message';
|
|
31
33
|
export * from './utils/message-attachment-to-display';
|
|
32
34
|
export * from './utils/mime-type';
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sCAAsC,CAAC;AACrD,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mCAAmC,CAAC;AAClD,cAAc,qBAAqB,CAAC;AACpC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAw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nE,OAAO,EAAE,2BAA2B,EAAE,MAAM,wCAAwC,CAAC;AAErF,cAAc,qDAAqD,CAAC"}
|
package/index.js
CHANGED
|
@@ -14,81 +14,82 @@ import { PROHIBITED_CONVERSATION_NAME_CHARS_RE as P, getUtf8ByteLength as F, san
|
|
|
14
14
|
import { ENTITY_DESCRIPTION_MAX_LENGTH as z, ENTITY_INSTRUCTIONS_MAX_LENGTH as B, ENTITY_NAME_MAX_LENGTH as V, exceedsMaxLength as H, hasControlCharacters as U } from "./utils/entity-field-limits.js";
|
|
15
15
|
import { mergeClasses as W } from "./utils/merge-class.js";
|
|
16
16
|
import { buildCssVars as G } from "./utils/build-css-vars.js";
|
|
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
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
94
|
-
|
|
17
|
+
import { isOrgUnitFolder as K, normalizeOrgUnitFolder as q, toOrgUnitFolderSet as J } from "./utils/org-unit.js";
|
|
18
|
+
import { isStatusMessage as Y } from "./utils/message.js";
|
|
19
|
+
import { messageAttachmentToDisplayAttachment as X, messageAttachmentsToDisplayAttachments as Z } from "./utils/message-attachment-to-display.js";
|
|
20
|
+
import { isAudioTranscriptionSupported as Q } from "./utils/is-audio-transcription-supported.js";
|
|
21
|
+
import { copyMarkdownAsRichText as $, copyToClipboard as ee, markdownToRichTextHtml as te } from "./utils/copy-to-clipboard.js";
|
|
22
|
+
import { makeOutsideInert as ne } from "./utils/dom.js";
|
|
23
|
+
import { formatLastUsed as re } from "./utils/format-last-used.js";
|
|
24
|
+
import { formatFileSize as ie } from "./utils/format-file-size.js";
|
|
25
|
+
import { formatCost as ae, formatPrice as oe, formatUnitPrice as se } from "./utils/format-price.js";
|
|
26
|
+
import { base64ToBlob as ce, downloadTextFile as le, ensureDownloadFilename as ue, getFileExtensionForLanguage as de, triggerAnchorDownload as fe, triggerBlobDownload as pe, tryBase64ToBytes as me } from "./utils/file-download.js";
|
|
27
|
+
import { isSyntaxHighlightingAllowed as he } from "./utils/syntax-highlighting.js";
|
|
28
|
+
import { ENTITY_TYPE_BG_COLOR as ge, ENTITY_TYPE_COLOR as _e } from "./constants/entity-colors.js";
|
|
29
|
+
import { PROMPT_PARAM_DEFAULT_SEPARATOR as ve, PROMPT_PARAM_PATTERN as ye, PROMPT_VARIABLE_CLASS_NAME as be, buildPromptParamDefaults as xe, extractPromptParams as Se, rehypePromptVariables as Ce, resolvePromptParams as we } from "./utils/prompt-variables.js";
|
|
30
|
+
import { generateUUID as Te } from "./utils/generate-uuid.js";
|
|
31
|
+
import { BASE_LG_ICON_PROPS as Ee, BASE_MD_ICON_PROPS as De } from "./constants/icon.js";
|
|
32
|
+
import { HIDDEN_FILE as Oe, PUBLIC_BUCKET as ke } from "./constants/dial.js";
|
|
33
|
+
import { TAG_INPUT_TAG_CLASS_NAME as Ae } from "./constants/tag-input.js";
|
|
34
|
+
import { MARKDOWN_EDITOR_FILL_HEIGHT_CLASS_NAME as je, MARKDOWN_EDITOR_MAX_HEIGHT_CLASS_NAME as Me, RESIZABLE_FIELD_MAX_HEIGHT_CSS_VARIABLE as Ne, RESIZABLE_TEXTAREA_CLASS_NAME as Pe } from "./constants/resizable-fields.js";
|
|
35
|
+
import { MARKDOWN_EDITOR_PREVIEW_LIST_CLASS_NAME as Fe } from "./constants/markdown-editor.js";
|
|
36
|
+
import { SELECT_LIST_MAX_HEIGHT_CLASS_NAME as Ie, SELECT_LIST_MAX_HEIGHT_PX as Le } from "./constants/select-list.js";
|
|
37
|
+
import { DESKTOP_BREAKPOINT_PX as Re, DESKTOP_MEDIA_QUERY as ze, MOBILE_MAX_WIDTH_PX as Be, MOBILE_MEDIA_QUERY as Ve, PHONE_MEDIA_QUERY as He, TABLET_BREAKPOINT_PX as Ue, TABLET_MEDIA_QUERY as We } from "./constants/breakpoint.js";
|
|
38
|
+
import { InitialsAvatar as Ge } from "./components/InitialsAvatar/InitialsAvatar.js";
|
|
39
|
+
import { DeploymentIcon as Ke } from "./components/DeploymentIcon/DeploymentIcon.js";
|
|
40
|
+
import { CopyButton as qe, CopyIconButton as Je } from "./components/CopyButton/CopyButton.js";
|
|
41
|
+
import { extractInitials as Ye } from "./utils/initials.js";
|
|
42
|
+
import { pickAvatarColor as Xe } from "./utils/avatar-color.js";
|
|
43
|
+
import { useIsPhone as Ze } from "./hooks/useIsPhone.js";
|
|
44
|
+
import { ActionMenu as Qe } from "./components/ActionMenu/ActionMenu.js";
|
|
45
|
+
import { PanelEmptyState as $e } from "./components/PanelEmptyState/PanelEmptyState.js";
|
|
46
|
+
import { NewVersionAlert as et } from "./components/NewVersionAlert/NewVersionAlert.js";
|
|
47
|
+
import { NotificationStack as tt } from "./components/NotificationStack/NotificationStack.js";
|
|
48
|
+
import { ItemHeader as nt } from "./components/ItemHeader/ItemHeader.js";
|
|
49
|
+
import { EntityTypeLabel as rt } from "./components/EntityTypeLabel/EntityTypeLabel.js";
|
|
50
|
+
import { FeaturedChip as it } from "./components/FeaturedChip/FeaturedChip.js";
|
|
51
|
+
import { EntityHeader as at } from "./components/EntityHeader/EntityHeader.js";
|
|
52
|
+
import { ResourceSummary as ot } from "./components/ResourceSummary/ResourceSummary.js";
|
|
53
|
+
import { ConfirmationIdentityCard as st } from "./components/ConfirmationIdentityCard/ConfirmationIdentityCard.js";
|
|
54
|
+
import { ConfirmationIdentityRow as ct } from "./components/ConfirmationIdentityRow/ConfirmationIdentityRow.js";
|
|
55
|
+
import { ConfirmationView as lt } from "./components/ConfirmationView/ConfirmationView.js";
|
|
56
|
+
import { ConfirmationFooter as ut } from "./components/ConfirmationView/ConfirmationFooter.js";
|
|
57
|
+
import { ConfirmationDialog as dt } from "./components/ConfirmationDialog/ConfirmationDialog.js";
|
|
58
|
+
import { DELETE_CONFIRMATION_MAX_LISTED_NAMES as ft, DeleteConfirmationView as pt } from "./components/DeleteConfirmationView/DeleteConfirmationView.js";
|
|
59
|
+
import { DeleteConfirmationDialog as mt } from "./components/DeleteConfirmationDialog/DeleteConfirmationDialog.js";
|
|
60
|
+
import { DeleteConfirmationDrawer as ht } from "./components/DeleteConfirmationDrawer/DeleteConfirmationDrawer.js";
|
|
61
|
+
import { TableHeader as gt } from "./components/MarkdownRenderer/Table/TableHeader.js";
|
|
62
|
+
import { TextRefinementState as _t, useTextRefinement as vt } from "./hooks/useTextRefinement.js";
|
|
63
|
+
import { TextRefinementField as yt } from "./components/TextRefinementField/TextRefinementField.js";
|
|
64
|
+
import { CHAT_SHARED_CLASS as bt } from "./constants/public-class-names.js";
|
|
65
|
+
import { useCodeCopy as xt } from "./hooks/useCodeCopy.js";
|
|
66
|
+
import { restrainedSyntaxTheme as St } from "./components/MarkdownRenderer/CodeBlock/syntax-theme.js";
|
|
67
|
+
import { MarkdownCodeBlock as Ct } from "./components/MarkdownRenderer/CodeBlock/CodeBlock.js";
|
|
68
|
+
import { DEFAULT_MARKDOWN_TABLE_DOWNLOAD_FILENAME as wt, MARKDOWN_TABLE_CSV_MIME_TYPE as Tt, MarkdownTableCopyFormat as Et, serializeMarkdownTableRows as Dt } from "./components/MarkdownRenderer/Table/table-serialization.js";
|
|
69
|
+
import { MarkdownTable as Ot } from "./components/MarkdownRenderer/Table/MarkdownTable.js";
|
|
70
|
+
import { MarkdownRenderer as kt, defaultMarkdownComponents as At } from "./components/MarkdownRenderer/MarkdownRenderer.js";
|
|
71
|
+
import { COMPACT_MARKDOWN_CLASS_NAMES as jt, DEFAULT_MARKDOWN_CLASS_NAMES as Mt } from "./components/MarkdownRenderer/markdown-class-names.js";
|
|
72
|
+
import { PlainTextRenderer as Nt } from "./components/MarkdownRenderer/PlainTextRenderer.js";
|
|
73
|
+
import { MDMessageViewer as Pt } from "./components/MarkdownRenderer/MDMessageViewer.js";
|
|
74
|
+
import { MarkdownWithPlaceholders as Ft } from "./components/MarkdownWithPlaceholders/MarkdownWithPlaceholders.js";
|
|
75
|
+
import { buildInlineSegmentSource as It, createInlineSegmentComponents as Lt, createRehypeInlineSegments as Rt } from "./utils/inline-segments.js";
|
|
76
|
+
import { useCollapsedText as zt } from "./hooks/useCollapsedText.js";
|
|
77
|
+
import { useAvailableHeightCap as Bt } from "./hooks/useAvailableHeightCap.js";
|
|
78
|
+
import { useControlErrorAssociation as Vt } from "./hooks/useControlErrorAssociation.js";
|
|
79
|
+
import { useIsMobile as Ht } from "./hooks/useIsMobile.js";
|
|
80
|
+
import { useIsTablet as Ut } from "./hooks/useIsTablet.js";
|
|
81
|
+
import { useIsTextClipped as Wt } from "./hooks/useIsTextClipped.js";
|
|
82
|
+
import { useIsVerticallyClamped as Gt } from "./hooks/useIsVerticallyClamped.js";
|
|
83
|
+
import { useUnsavedChangesGuard as Kt } from "./hooks/useUnsavedChangesGuard.js";
|
|
84
|
+
import { useUnsavedChanges as qt } from "./components/UnsavedChangesProvider/unsaved-changes-context.js";
|
|
85
|
+
import { useUnsavedChangesLeaveGuard as Jt } from "./hooks/useUnsavedChangesLeaveGuard.js";
|
|
86
|
+
import { useUnsavedChangesLeaveConfirmation as Yt } from "./hooks/useUnsavedChangesLeaveConfirmation.js";
|
|
87
|
+
import { UnsavedChangesProvider as Xt } from "./components/UnsavedChangesProvider/UnsavedChangesProvider.js";
|
|
88
|
+
import { DialFileManagerActionProfile as Zt, DialFileManagerVariant as Qt } from "./file-manager/file-manager-variant.js";
|
|
89
|
+
import { getParentFolderPath as $t, isHiddenPath as en } from "./file-manager/path.js";
|
|
90
|
+
import { FileDownloadStatus as tn, FileUploadFailureReason as nn, FileUploadStatus as rn, isDownloadInProgress as an, isUploadInProgress as on } from "./file-manager/upload-batch.js";
|
|
91
|
+
import { useGridEditingScroll as sn } from "./file-manager/useGridEditingScroll/useGridEditingScroll.js";
|
|
92
|
+
import { OperationLoaderModal as cn } from "./file-manager/OperationLoaderModal/OperationLoaderModal.js";
|
|
93
|
+
import { isSkillSelectionUnsupported as ln } from "./utils/is-skill-selection-unsupported.js";
|
|
94
|
+
import { toConversationTransferQueueItems as un } from "./conversation-transfer/conversation-transfer-queue.js";
|
|
95
|
+
export { Qe as ActionMenu, m as AttachmentErrorReason, h as AttachmentType, Ee as BASE_LG_ICON_PROPS, De as BASE_MD_ICON_PROPS, s as BackgroundGenerationStatus, bt as CHAT_SHARED_CLASS, jt as COMPACT_MARKDOWN_CLASS_NAMES, g as CatalogEntityType, y as CodeBlockTheme, dt as ConfirmationDialog, ut as ConfirmationFooter, st as ConfirmationIdentityCard, ct as ConfirmationIdentityRow, lt as ConfirmationView, a as ConversationKind, e as ConversationTransferErrorCode, t as ConversationTransferJobStatus, n as ConversationTransferSubjectKind, r as ConversationTransferUnitKind, i as ConversationTransferWarningCode, qe as CopyButton, Je as CopyIconButton, Mt as DEFAULT_MARKDOWN_CLASS_NAMES, wt as DEFAULT_MARKDOWN_TABLE_DOWNLOAD_FILENAME, ft as DELETE_CONFIRMATION_MAX_LISTED_NAMES, Re as DESKTOP_BREAKPOINT_PX, ze as DESKTOP_MEDIA_QUERY, mt as DeleteConfirmationDialog, ht as DeleteConfirmationDrawer, pt as DeleteConfirmationView, Ke as DeploymentIcon, Zt as DialFileManagerActionProfile, Qt as DialFileManagerVariant, z as ENTITY_DESCRIPTION_MAX_LENGTH, B as ENTITY_INSTRUCTIONS_MAX_LENGTH, V as ENTITY_NAME_MAX_LENGTH, ge as ENTITY_TYPE_BG_COLOR, _e as ENTITY_TYPE_COLOR, at as EntityHeader, rt as EntityTypeLabel, it as FeaturedChip, tn as FileDownloadStatus, _ as FileExtension, nn as FileUploadFailureReason, rn as FileUploadStatus, o as FilterTab, Oe as HIDDEN_FILE, Ge as InitialsAvatar, nt as ItemHeader, je as MARKDOWN_EDITOR_FILL_HEIGHT_CLASS_NAME, Me as MARKDOWN_EDITOR_MAX_HEIGHT_CLASS_NAME, Fe as MARKDOWN_EDITOR_PREVIEW_LIST_CLASS_NAME, Tt as MARKDOWN_TABLE_CSV_MIME_TYPE, Pt as MDMessageViewer, v as MIMEType, b as MIME_TYPE_ALIASES, x as MIME_TYPE_AUDIO_PREFIX, S as MIME_TYPE_EXT_MAP, C as MIME_TYPE_WILDCARD, Be as MOBILE_MAX_WIDTH_PX, Ve as MOBILE_MEDIA_QUERY, Ct as MarkdownCodeBlock, kt as MarkdownRenderer, Ot as MarkdownTable, Et as MarkdownTableCopyFormat, Ft as MarkdownWithPlaceholders, c as MessageRating, l as MessageRole, et as NewVersionAlert, tt as NotificationStack, cn as OperationLoaderModal, He as PHONE_MEDIA_QUERY, P as PROHIBITED_CONVERSATION_NAME_CHARS_RE, ve as PROMPT_PARAM_DEFAULT_SEPARATOR, ye as PROMPT_PARAM_PATTERN, be as PROMPT_VARIABLE_CLASS_NAME, ke as PUBLIC_BUCKET, $e as PanelEmptyState, Nt as PlainTextRenderer, Ne as RESIZABLE_FIELD_MAX_HEIGHT_CSS_VARIABLE, Pe as RESIZABLE_TEXTAREA_CLASS_NAME, u as RequestStatus, ot as ResourceSummary, p as ResponseFormat, Ie as SELECT_LIST_MAX_HEIGHT_CLASS_NAME, Le as SELECT_LIST_MAX_HEIGHT_PX, d as StageStatus, f as StatusEvent, Ue as TABLET_BREAKPOINT_PX, We as TABLET_MEDIA_QUERY, Ae as TAG_INPUT_TAG_CLASS_NAME, gt as TableHeader, yt as TextRefinementField, _t as TextRefinementState, Xt as UnsavedChangesProvider, ce as base64ToBlob, G as buildCssVars, It as buildInlineSegmentSource, xe as buildPromptParamDefaults, $ as copyMarkdownAsRichText, ee as copyToClipboard, Lt as createInlineSegmentComponents, Rt as createRehypeInlineSegments, M as decodeJsonFromBase64, At as defaultMarkdownComponents, le as downloadTextFile, N as encodeJsonToBase64, ue as ensureDownloadFilename, H as exceedsMaxLength, Ye as extractInitials, Se as extractPromptParams, ae as formatCost, ie as formatFileSize, re as formatLastUsed, oe as formatPrice, se as formatUnitPrice, Te as generateUUID, w as getAttachmentTypeFromMime, T as getBaseMimeType, de as getFileExtensionForLanguage, $t as getParentFolderPath, F as getUtf8ByteLength, U as hasControlCharacters, E as inferMimeTypeFromPath, k as isAnnotationSelector, Q as isAudioTranscriptionSupported, an as isDownloadInProgress, en as isHiddenPath, K as isOrgUnitFolder, ln as isSkillSelectionUnsupported, Y as isStatusMessage, he as isSyntaxHighlightingAllowed, on as isUploadInProgress, ne as makeOutsideInert, te as markdownToRichTextHtml, W as mergeClasses, X as messageAttachmentToDisplayAttachment, Z as messageAttachmentsToDisplayAttachments, D as normalizeMimeType, q as normalizeOrgUnitFolder, A as normalizePersistedHtmlTagAttachmentType, j as normalizeRawAnnotations, Xe as pickAvatarColor, Ce as rehypePromptVariables, we as resolvePromptParams, St as restrainedSyntaxTheme, I as sanitizeConversationName, Dt as serializeMarkdownTableRows, L as stripTrailingDots, O as stripUrlQueryAndFragment, un as toConversationTransferQueueItems, J as toOrgUnitFolderSet, fe as triggerAnchorDownload, pe as triggerBlobDownload, R as truncateToUtf8Bytes, me as tryBase64ToBytes, Bt as useAvailableHeightCap, xt as useCodeCopy, zt as useCollapsedText, Vt as useControlErrorAssociation, sn as useGridEditingScroll, Ht as useIsMobile, Ze as useIsPhone, Ut as useIsTablet, Wt as useIsTextClipped, Gt as useIsVerticallyClamped, vt as useTextRefinement, qt as useUnsavedChanges, Kt as useUnsavedChangesGuard, Yt as useUnsavedChangesLeaveConfirmation, Jt as useUnsavedChangesLeaveGuard };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** A DIAL Core org unit: an organisation's folder in the public bucket. */
|
|
2
|
+
export interface OrgUnit {
|
|
3
|
+
id: string;
|
|
4
|
+
/** Unit name; also the last segment of its folder. */
|
|
5
|
+
name: string;
|
|
6
|
+
/** Name to show people; equals `name` when Core has none. */
|
|
7
|
+
displayName: string;
|
|
8
|
+
/** Decoded unit address without a trailing slash, e.g. `public/Acme/US Risk`. */
|
|
9
|
+
path: string;
|
|
10
|
+
/** Unit folder as DIAL Core returns it: url-encoded, with a trailing slash, e.g. `public/Acme/US%20Risk/`. */
|
|
11
|
+
folder: string;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=org-unit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"org-unit.d.ts","sourceRoot":"","sources":["../../src/models/org-unit.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,sDAAsD;IACtD,IAAI,EAAE,MAAM,CAAC;IACb,6DAA6D;IAC7D,WAAW,EAAE,MAAM,CAAC;IACpB,iFAAiF;IACjF,IAAI,EAAE,MAAM,CAAC;IACb,8GAA8G;IAC9G,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { OrgUnit } from '../models/org-unit';
|
|
2
|
+
/**
|
|
3
|
+
* Returns a unit's Core `folder` (url-encoded, rooted at `public/`, e.g.
|
|
4
|
+
* `public/Acme/US%20Risk/`) as a decoded public-relative folder with one
|
|
5
|
+
* trailing slash (`Acme/US Risk/`), or `''` for the public root and for a
|
|
6
|
+
* folder outside `public/`.
|
|
7
|
+
*/
|
|
8
|
+
export declare const normalizeOrgUnitFolder: (folder: string) => string;
|
|
9
|
+
/** The normalised folders of `units`, for repeated {@link isOrgUnitFolder} lookups. */
|
|
10
|
+
export declare const toOrgUnitFolderSet: (units: readonly OrgUnit[]) => ReadonlySet<string>;
|
|
11
|
+
/**
|
|
12
|
+
* Whether `publicPath` — a decoded path relative to the public bucket, as the
|
|
13
|
+
* file manager and the publish tree show it (`Acme/US Risk`) — is a unit's own
|
|
14
|
+
* folder. A folder inside a unit is not a unit.
|
|
15
|
+
*/
|
|
16
|
+
export declare const isOrgUnitFolder: (unitFolders: ReadonlySet<string>, publicPath: string) => boolean;
|
|
17
|
+
//# sourceMappingURL=org-unit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"org-unit.d.ts","sourceRoot":"","sources":["../../src/utils/org-unit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAmBlD;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,GAAI,QAAQ,MAAM,KAAG,MAIvD,CAAC;AAEF,uFAAuF;AACvF,eAAO,MAAM,kBAAkB,GAC7B,OAAO,SAAS,OAAO,EAAE,KACxB,WAAW,CAAC,MAAM,CAKlB,CAAC;AAEJ;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAC1B,aAAa,WAAW,CAAC,MAAM,CAAC,EAChC,YAAY,MAAM,KACjB,OAGF,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region src/utils/org-unit.ts
|
|
2
|
+
var e = (e) => {
|
|
3
|
+
try {
|
|
4
|
+
return decodeURIComponent(e);
|
|
5
|
+
} catch {
|
|
6
|
+
return e;
|
|
7
|
+
}
|
|
8
|
+
}, t = (e) => e.split("/").filter((e) => e !== ""), n = (e) => e.length === 0 ? "" : `${e.join("/")}/`, r = (r) => {
|
|
9
|
+
let [i, ...a] = t(r);
|
|
10
|
+
return i === "public" ? n(a.map(e)) : "";
|
|
11
|
+
}, i = (e) => new Set(e.map(({ folder: e }) => r(e)).filter((e) => e !== "")), a = (e, r) => {
|
|
12
|
+
let i = n(t(r));
|
|
13
|
+
return i !== "" && e.has(i);
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { a as isOrgUnitFolder, r as normalizeOrgUnitFolder, i as toOrgUnitFolderSet };
|