@epam/ai-dial-chat-shared 1.3.0-dev.241 → 1.3.0-dev.245

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.
@@ -1 +1 @@
1
- {"version":3,"file":"DialFileManagerShell.d.ts","sourceRoot":"","sources":["../../../src/file-manager/DialFileManagerShell/DialFileManagerShell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,mBAAmB,EAEnB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACrB,MAAM,kCAAkC,CAAC;AAQ1C,OAAO,EAML,KAAK,EAAE,EACR,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAG/E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,EACvB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAEV,0BAA0B,EAE3B,MAAM,WAAW,CAAC;AAGnB,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAgDlE,yDAAyD;AACzD,MAAM,WAAW,yBAAyB;IACxC,8EAA8E;IAC9E,UAAU,EAAE,qBAAqB,CAAC;IAClC,qDAAqD;IACrD,MAAM,EAAE,0BAA0B,CAAC;IACnC,4BAA4B;IAC5B,SAAS,EAAE,mBAAmB,CAAC;IAC/B,kFAAkF;IAClF,IAAI,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IAC9B,0CAA0C;IAC1C,WAAW,EAAE,CAAC,GAAG,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAChD,2DAA2D;IAC3D,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC3B,yCAAyC;IACzC,qBAAqB,EAAE,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;IACpD,mGAAmG;IACnG,OAAO,EAAE,sBAAsB,CAAC;IAChC,wEAAwE;IACxE,aAAa,EAAE,4BAA4B,CAAC;IAC5C,gFAAgF;IAChF,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,8CAA8C;IAC9C,gBAAgB,CAAC,EAAE,kBAAkB,EAAE,CAAC;IACxC,6JAA6J;IAC7J,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,sMAAsM;IACtM,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,iFAAiF;IACjF,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE;QACvB,IAAI,CAAC,EAAE,yBAAyB,GAAG,IAAI,CAAC;KACzC,KAAK,OAAO,CAAC;IACd,0EAA0E;IAC1E,kBAAkB,CAAC,EAAE,CAAC,GAAG,EAAE,kBAAkB,KAAK,MAAM,GAAG,SAAS,CAAC;IACrE,uDAAuD;IACvD,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,0EAA0E;IAC1E,SAAS,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,mFAAmF;IACnF,gBAAgB,CAAC,EAAE,CAAC,GAAG,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACrD,0KAA0K;IAC1K,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,4DAA4D;IAC5D,MAAM,CAAC,EAAE,0BAA0B,CAAC;CACrC;AAED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC,yBAAyB,CA2lB9D,CAAC;;AAEF,wBAA0C"}
1
+ {"version":3,"file":"DialFileManagerShell.d.ts","sourceRoot":"","sources":["../../../src/file-manager/DialFileManagerShell/DialFileManagerShell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,mBAAmB,EAEnB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACrB,MAAM,k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E;QACvB,IAAI,CAAC,EAAE,yBAAyB,GAAG,IAAI,CAAC;KACzC,KAAK,OAAO,CAAC;IACd,0EAA0E;IAC1E,kBAAkB,CAAC,EAAE,CAAC,GAAG,EAAE,kBAAkB,KAAK,MAAM,GAAG,SAAS,CAAC;IACrE,uDAAuD;IACvD,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,0EAA0E;IAC1E,SAAS,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,mFAAmF;IACnF,gBAAgB,CAAC,EAAE,CAAC,GAAG,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACrD,0KAA0K;IAC1K,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,4DAA4D;IAC5D,MAAM,CAAC,EAAE,0BAA0B,CAAC;CACrC;AAED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC,yBAAyB,CAumB9D,CAAC;;AAEF,wBAA0C"}
@@ -5,359 +5,364 @@ import { getParentFolderPath as ee } from "../path.js";
5
5
  import { useGridEditingScroll as te } from "../useGridEditingScroll/useGridEditingScroll.js";
6
6
  import { OperationLoaderModal as ne } from "../OperationLoaderModal/OperationLoaderModal.js";
7
7
  import { TransferQueueRowKind as i, buildTransferQueueLabels as re, parseTransferQueueRowId as ie, toTransferQueueItems as ae } from "../upload-queue.js";
8
- import oe from "./DialFileManagerShell.module.scss.js";
9
- import { ButtonVariant as se, NOT_ALLOWED_SYMBOLS_REGEXP as ce, PrimaryButton as le, Spinner as ue, TransferQueue as de } from "@epam/ai-dial-ui-kit";
10
- import { memo as a, useCallback as o, useEffect as fe, useMemo as s, useState as pe } from "react";
11
- import { Fragment as me, jsx as c, jsxs as l } from "react/jsx-runtime";
12
- import { DialFileManager as he, DialFileManagerActions as u, DialFileManagerTabs as ge, GridSelectionMode as _e } from "@epam/ai-dial-react-file-manager";
8
+ import a from "./DialFileManagerShell.module.scss.js";
9
+ import { Button as oe, ButtonAppearance as se, ButtonVariant as o, ElementSize as ce, ErrorMessageNotification as le, NOT_ALLOWED_SYMBOLS_REGEXP as ue, Spinner as de, TransferQueue as fe } from "@epam/ai-dial-ui-kit";
10
+ import { memo as s, useCallback as c, useEffect as pe, useMemo as l, useState as me } from "react";
11
+ import { Fragment as he, jsx as u, jsxs as d } from "react/jsx-runtime";
12
+ import { DialFileManager as ge, DialFileManagerActions as f, DialFileManagerTabs as _e, GridSelectionMode as ve } from "@epam/ai-dial-react-file-manager";
13
13
  //#region src/file-manager/DialFileManagerShell/DialFileManagerShell.tsx
14
- var ve = (e, t) => {
14
+ var ye = (e, t) => {
15
15
  if (e.isDeleting) return t.deletingLabel;
16
16
  if (e.isRenaming && !e.isMoving) return t.renamingLabel;
17
17
  if (e.isUnsharing) return t.unsharingLabel;
18
18
  if (e.isRemovingAccess) return t.removingAccessLabel;
19
- }, d = ({ controller: a, labels: d, activeTab: f, tabs: p, onTabChange: m, selectedPaths: h, onSelectedPathsChange: ye, variant: g, actionProfile: be, autoSelectUploadedItems: xe = !1, allowedFileTypes: Se, maxSelectableFileSize: _, oversizedUploadMessage: Ce, isRowSelectable: v, getDisabledTooltip: we, unsupportedFileTypeTooltip: Te, treeContainerClassName: y, onPreview: Ee, onTableFileClick: De, previewExtensions: Oe, styles: ke }) => {
20
- let { items: Ae, isLoading: je, error: Me, path: b, onPathChange: Ne, retry: Pe, onSearchFiles: Fe, isSearching: Ie, searchResults: Le, clearSearchResults: Re, expandedPaths: x, loadedPaths: S, onExpandedPathsChange: C, onFolderPopupPathChange: ze, folderPopupLoadingPaths: w, onUploadFiles: Be, onUploadArchive: Ve, onValidateUpload: He, uploadBatchState: T, cancelUpload: E, cancelUploadFile: D, clearUploadBatch: O, downloadBatchState: k, cancelDownloadFile: A, cancelAllDownloads: j, clearDownloadBatch: M, onCreateFolder: Ue, onCreateFolderValidate: We, onDownloadFiles: Ge, onDeleteFiles: Ke, isDeleting: qe, onMoveToFiles: Je, onRenameValidate: Ye, isRenaming: Xe, onCopyFiles: Ze, isCopying: Qe, isMoving: N, cancelCopyMove: $e, uploadEnabled: P, isNewButtonDisabled: F, disabledNewButtonTooltip: I, visibleColumns: L, dateLocale: R, dateOptions: z, actionLabels: B, sharedWithMeIds: et, sharedByMePaths: V, onUnshareFiles: tt, isUnsharing: nt, onRemoveFilesAccess: rt, isRemovingAccess: it, fileMetadata: H, isFileMetadataLoading: U, onGetInfo: at, clearMetadata: W, sectionTab: ot } = a, G = ot ?? f, [K, st] = pe(void 0), { handleGridApiChange: ct, reset: q } = te();
21
- fe(() => {
22
- q();
23
- }, [G, q]);
24
- let J = s(() => {
19
+ }, p = ({ controller: s, labels: p, activeTab: m, tabs: h, onTabChange: g, selectedPaths: _, onSelectedPathsChange: be, variant: v, actionProfile: xe, autoSelectUploadedItems: Se = !1, allowedFileTypes: Ce, maxSelectableFileSize: y, oversizedUploadMessage: b, isRowSelectable: x, getDisabledTooltip: we, unsupportedFileTypeTooltip: Te, treeContainerClassName: S, onPreview: Ee, onTableFileClick: De, previewExtensions: Oe, styles: ke }) => {
20
+ let { items: Ae, isLoading: je, error: Me, path: C, onPathChange: Ne, retry: Pe, onSearchFiles: Fe, isSearching: Ie, searchResults: Le, clearSearchResults: Re, expandedPaths: w, loadedPaths: T, onExpandedPathsChange: E, onFolderPopupPathChange: ze, folderPopupLoadingPaths: D, onUploadFiles: Be, onUploadArchive: Ve, onValidateUpload: He, uploadBatchState: O, cancelUpload: k, cancelUploadFile: A, clearUploadBatch: j, downloadBatchState: M, cancelDownloadFile: Ue, cancelAllDownloads: N, clearDownloadBatch: P, onCreateFolder: We, onCreateFolderValidate: Ge, onDownloadFiles: Ke, onDeleteFiles: qe, isDeleting: Je, onMoveToFiles: Ye, onRenameValidate: Xe, isRenaming: Ze, onCopyFiles: Qe, isCopying: $e, isMoving: F, cancelCopyMove: et, uploadEnabled: I, isNewButtonDisabled: L, disabledNewButtonTooltip: R, visibleColumns: z, dateLocale: B, dateOptions: V, actionLabels: H, sharedWithMeIds: tt, sharedByMePaths: U, onUnshareFiles: nt, isUnsharing: rt, onRemoveFilesAccess: it, isRemovingAccess: at, fileMetadata: W, isFileMetadataLoading: G, onGetInfo: ot, clearMetadata: K, sectionTab: st } = s, q = st ?? m, [J, ct] = me(void 0), { handleGridApiChange: lt, reset: Y } = te();
21
+ pe(() => {
22
+ Y();
23
+ }, [q, Y]);
24
+ let X = l(() => {
25
25
  let e = {};
26
- return u.Download in B && (e[u.Download] = d.downloadLabel), u.Delete in B && (e[u.Delete] = d.deleteLabel), u.Rename in B && (e[u.Rename] = d.renameLabel), u.Copy in B && (e[u.Copy] = d.copyLabel), u.Move in B && (e[u.Move] = d.moveLabel), u.Duplicate in B && (e[u.Duplicate] = d.duplicateLabel), u.Unshare in B && (e[u.Unshare] = d.unshareLabel), u.RemoveAccess in B && (e[u.RemoveAccess] = d.removeAccessLabel), e;
26
+ return f.Download in H && (e[f.Download] = p.downloadLabel), f.Delete in H && (e[f.Delete] = p.deleteLabel), f.Rename in H && (e[f.Rename] = p.renameLabel), f.Copy in H && (e[f.Copy] = p.copyLabel), f.Move in H && (e[f.Move] = p.moveLabel), f.Duplicate in H && (e[f.Duplicate] = p.duplicateLabel), f.Unshare in H && (e[f.Unshare] = p.unshareLabel), f.RemoveAccess in H && (e[f.RemoveAccess] = p.removeAccessLabel), e;
27
27
  }, [
28
- B,
29
- d.downloadLabel,
30
- d.deleteLabel,
31
- d.renameLabel,
32
- d.copyLabel,
33
- d.moveLabel,
34
- d.duplicateLabel,
35
- d.unshareLabel,
36
- d.removeAccessLabel
37
- ]), Y = s(() => {
38
- let e = d.previewLabel == null ? J : {
39
- ...J,
40
- [u.Preview]: d.previewLabel
28
+ H,
29
+ p.downloadLabel,
30
+ p.deleteLabel,
31
+ p.renameLabel,
32
+ p.copyLabel,
33
+ p.moveLabel,
34
+ p.duplicateLabel,
35
+ p.unshareLabel,
36
+ p.removeAccessLabel
37
+ ]), ut = l(() => {
38
+ let e = p.previewLabel == null ? X : {
39
+ ...X,
40
+ [f.Preview]: p.previewLabel
41
41
  };
42
- return u.Info in B ? {
42
+ return f.Info in H ? {
43
43
  ...e,
44
- [u.Info]: d.infoLabel
44
+ [f.Info]: p.infoLabel
45
45
  } : e;
46
46
  }, [
47
- J,
48
- B,
49
- d.infoLabel,
50
- d.previewLabel
51
- ]), X = s(() => {
52
- if (h.size === 0) return !1;
53
- for (let e of h) if (!V.has(e)) return !1;
47
+ X,
48
+ H,
49
+ p.infoLabel,
50
+ p.previewLabel
51
+ ]), dt = l(() => {
52
+ if (_.size === 0) return !1;
53
+ for (let e of _) if (!U.has(e)) return !1;
54
54
  return !0;
55
- }, [h, V]), Z = s(() => {
56
- if (X) return J;
57
- let { [u.RemoveAccess]: e, ...t } = J;
55
+ }, [_, U]), ft = l(() => {
56
+ if (dt) return X;
57
+ let { [f.RemoveAccess]: e, ...t } = X;
58
58
  return t;
59
- }, [J, X]), Q = g === r.Attach, lt = s(() => ({
60
- selectionMode: _e.MULTIPLE,
59
+ }, [X, dt]), Z = v === r.Attach, pt = l(() => ({
60
+ selectionMode: ve.MULTIPLE,
61
61
  filterable: !1,
62
62
  withoutHeaderBorders: !0,
63
63
  containerClassName: "rounded-none shadow-none",
64
- visibleColumns: L,
65
- dateLocale: R,
66
- dateOptions: z,
64
+ visibleColumns: z,
65
+ dateLocale: B,
66
+ dateOptions: V,
67
67
  additionalGridOptions: {
68
68
  domLayout: "normal",
69
69
  rowSelection: {
70
70
  mode: "multiRow",
71
- isRowSelectable: v ?? (() => !0)
71
+ isRowSelectable: x ?? (() => !0)
72
72
  }
73
73
  },
74
- actionLabels: Y
74
+ actionLabels: ut
75
75
  }), [
76
- L,
77
- R,
78
76
  z,
79
- Y,
80
- v
81
- ]), ut = s(() => ({
82
- header: d.treeHeader ?? null,
83
- containerClassName: y ?? (g === r.Attach ? "min-h-0 h-full w-[360px] shrink-0 border-e border-tertiary bg-layer-raised" : void 0),
84
- tabsAriaLabel: d.treeHeaderByTab[f],
85
- tabs: p,
86
- activeTab: f,
87
- onTabChange: m,
88
- expandedPaths: x,
89
- loadedPaths: S,
90
- loadingPaths: w,
91
- onExpandedPathsChange: C,
92
- actionLabels: J
77
+ B,
78
+ V,
79
+ ut,
80
+ x
81
+ ]), mt = l(() => ({
82
+ header: p.treeHeader ?? null,
83
+ containerClassName: S ?? (v === r.Attach ? "min-h-0 h-full w-[360px] shrink-0 border-e border-tertiary bg-layer-raised" : void 0),
84
+ tabsAriaLabel: p.treeHeaderByTab[m],
85
+ tabs: h,
86
+ activeTab: m,
87
+ onTabChange: g,
88
+ expandedPaths: w,
89
+ loadedPaths: T,
90
+ loadingPaths: D,
91
+ onExpandedPathsChange: E,
92
+ actionLabels: X
93
93
  }), [
94
- d.treeHeader,
95
- d.treeHeaderByTab,
96
- y,
97
- g,
98
- p,
99
- f,
100
- m,
101
- x,
94
+ p.treeHeader,
95
+ p.treeHeaderByTab,
102
96
  S,
97
+ v,
98
+ h,
99
+ m,
100
+ g,
103
101
  w,
104
- C,
105
- J
106
- ]), dt = g === r.Standalone && be === n.Full && G === ge.MyFiles && P, ft = s(() => ({
102
+ T,
103
+ D,
104
+ E,
105
+ X
106
+ ]), ht = v === r.Standalone && xe === n.Full && q === _e.MyFiles && I, gt = l(() => ({
107
107
  showHiddenFilesToggle: !0,
108
- ...Q ? { newButtonVariant: se.Neutral } : {},
109
- hiddenFilesSwitcherLabel: d.hiddenFilesLabel,
110
- showHiddenFilesLabel: d.showHiddenFilesLabel,
111
- hideHiddenFilesLabel: d.hideHiddenFilesLabel,
112
- isNewButtonDisabled: F,
113
- disabledNewButtonTooltip: I,
108
+ ...Z ? { newButtonVariant: o.Neutral } : {},
109
+ hiddenFilesSwitcherLabel: p.hiddenFilesLabel,
110
+ showHiddenFilesLabel: p.showHiddenFilesLabel,
111
+ hideHiddenFilesLabel: p.hideHiddenFilesLabel,
112
+ isNewButtonDisabled: L,
113
+ disabledNewButtonTooltip: R,
114
114
  newActions: {
115
115
  uploadFiles: {
116
- label: d.uploadFilesLabel,
116
+ label: p.uploadFilesLabel,
117
117
  icon: null
118
118
  },
119
119
  newFolder: {
120
- label: d.newFolderLabel,
120
+ label: p.newFolderLabel,
121
121
  icon: null
122
122
  },
123
- ...dt ? { uploadArchive: {
124
- label: d.uploadArchiveAction,
123
+ ...ht ? { uploadArchive: {
124
+ label: p.uploadArchiveAction,
125
125
  icon: null
126
126
  } } : {}
127
127
  }
128
128
  }), [
129
- Q,
130
- d.hiddenFilesLabel,
131
- d.showHiddenFilesLabel,
132
- d.hideHiddenFilesLabel,
133
- F,
134
- I,
135
- d.uploadFilesLabel,
136
- d.newFolderLabel,
137
- dt,
138
- d.uploadArchiveAction
139
- ]), pt = s(() => Q ? void 0 : {
140
- getSelectionLabel: d.getSelectionLabel,
141
- actionLabels: Z
129
+ Z,
130
+ p.hiddenFilesLabel,
131
+ p.showHiddenFilesLabel,
132
+ p.hideHiddenFilesLabel,
133
+ L,
134
+ R,
135
+ p.uploadFilesLabel,
136
+ p.newFolderLabel,
137
+ ht,
138
+ p.uploadArchiveAction
139
+ ]), _t = l(() => Z ? void 0 : {
140
+ getSelectionLabel: p.getSelectionLabel,
141
+ actionLabels: ft
142
142
  }, [
143
- Q,
144
- d.getSelectionLabel,
145
- Z
146
- ]), mt = s(() => ({
147
- cancelLabel: d.deleteCancelLabel,
148
- confirmLabel: d.deleteConfirmLabel,
149
- closeLabel: d.deleteCloseLabel,
150
- titleRenderer: d.deleteConfirmTitle,
151
- contentRenderer: d.deleteConfirmBody
143
+ Z,
144
+ p.getSelectionLabel,
145
+ ft
146
+ ]), vt = l(() => ({
147
+ cancelLabel: p.deleteCancelLabel,
148
+ confirmLabel: p.deleteConfirmLabel,
149
+ closeLabel: p.deleteCloseLabel,
150
+ titleRenderer: p.deleteConfirmTitle,
151
+ contentRenderer: p.deleteConfirmBody
152
152
  }), [
153
- d.deleteCancelLabel,
154
- d.deleteConfirmLabel,
155
- d.deleteCloseLabel,
156
- d.deleteConfirmTitle,
157
- d.deleteConfirmBody
158
- ]), ht = s(() => {
153
+ p.deleteCancelLabel,
154
+ p.deleteConfirmLabel,
155
+ p.deleteCloseLabel,
156
+ p.deleteConfirmTitle,
157
+ p.deleteConfirmBody
158
+ ]), yt = l(() => {
159
159
  let e;
160
- for (let t of h) {
160
+ for (let t of _) {
161
161
  let n = ee(t);
162
162
  if (e === void 0) e = n;
163
163
  else if (e !== n) return;
164
164
  }
165
165
  return e;
166
- }, [h]), $ = K != null && w.has(K), gt = $ ? K : ht, _t = s(() => ({
167
- copyLabel: d.copyLabel,
168
- moveLabel: d.moveLabel,
169
- addFolderLabel: d.addFolderLabel,
170
- hiddenFilesSwitcherLabel: d.hiddenFilesSwitcherLabel,
171
- getCopyHeader: d.getCopyHeader,
172
- getMoveHeader: d.getMoveHeader,
173
- disabledPathTooltip: $ ? d.folderPickerLoadingTooltip : d.moveSourceDisabledTooltip,
174
- movedIntoItselfTooltip: d.movedIntoItselfTooltip,
175
- emptyStateTitle: d.folderPickerEmptyStateTitle,
176
- emptyStateDescription: d.folderPickerEmptyStateDescription,
177
- sourceFolder: gt,
178
- destinationFolderPath: K,
179
- setDestinationFolderPath: st,
180
- filesLoading: $
166
+ }, [_]), Q = J != null && D.has(J), bt = Q ? J : yt, xt = l(() => ({
167
+ copyLabel: p.copyLabel,
168
+ moveLabel: p.moveLabel,
169
+ addFolderLabel: p.addFolderLabel,
170
+ hiddenFilesSwitcherLabel: p.hiddenFilesSwitcherLabel,
171
+ getCopyHeader: p.getCopyHeader,
172
+ getMoveHeader: p.getMoveHeader,
173
+ disabledPathTooltip: Q ? p.folderPickerLoadingTooltip : p.moveSourceDisabledTooltip,
174
+ movedIntoItselfTooltip: p.movedIntoItselfTooltip,
175
+ emptyStateTitle: p.folderPickerEmptyStateTitle,
176
+ emptyStateDescription: p.folderPickerEmptyStateDescription,
177
+ sourceFolder: bt,
178
+ destinationFolderPath: J,
179
+ setDestinationFolderPath: ct,
180
+ filesLoading: Q
181
181
  }), [
182
- d.copyLabel,
183
- d.moveLabel,
184
- d.addFolderLabel,
185
- d.hiddenFilesSwitcherLabel,
186
- d.getCopyHeader,
187
- d.getMoveHeader,
188
- d.folderPickerLoadingTooltip,
189
- d.moveSourceDisabledTooltip,
190
- d.movedIntoItselfTooltip,
191
- d.folderPickerEmptyStateTitle,
192
- d.folderPickerEmptyStateDescription,
193
- $,
194
- gt,
195
- K
196
- ]), vt = o(() => {
197
- E(), j(), O(), M();
182
+ p.copyLabel,
183
+ p.moveLabel,
184
+ p.addFolderLabel,
185
+ p.hiddenFilesSwitcherLabel,
186
+ p.getCopyHeader,
187
+ p.getMoveHeader,
188
+ p.folderPickerLoadingTooltip,
189
+ p.moveSourceDisabledTooltip,
190
+ p.movedIntoItselfTooltip,
191
+ p.folderPickerEmptyStateTitle,
192
+ p.folderPickerEmptyStateDescription,
193
+ Q,
194
+ bt,
195
+ J
196
+ ]), St = c(() => {
197
+ k(), N(), j(), P();
198
198
  }, [
199
- E,
199
+ k,
200
+ N,
200
201
  j,
201
- O,
202
- M
203
- ]), yt = o((e) => {
202
+ P
203
+ ]), Ct = c((e) => {
204
204
  let t = ie(e);
205
- t?.kind === i.Upload ? D(t.entryId) : t?.kind === i.Download && A(t.entryId);
206
- }, [D, A]), bt = s(() => ae(T, k, d.uploadFailureMessages), [
207
- T,
208
- k,
209
- d.uploadFailureMessages
210
- ]), xt = T?.files.length ?? 0, St = k?.files.length ?? 0, Ct = d.getTransferQueueTitle?.({
211
- uploads: xt,
212
- downloads: St
213
- }) ?? d.getUploadQueueTitle(xt + St), wt = s(() => re({
214
- uploadLabels: d.uploadQueueLabels,
215
- downloadLabels: d.downloadQueueLabels,
216
- mixedProgressLabel: d.transferQueueProgressAriaLabel,
217
- uploadNames: new Set(T?.files.map((e) => e.name)),
218
- downloadNames: new Set(k?.files.map((e) => e.name))
205
+ t?.kind === i.Upload ? A(t.entryId) : t?.kind === i.Download && Ue(t.entryId);
206
+ }, [A, Ue]), wt = l(() => ae(O, M, p.uploadFailureMessages), [
207
+ O,
208
+ M,
209
+ p.uploadFailureMessages
210
+ ]), Tt = O?.files.length ?? 0, Et = M?.files.length ?? 0, Dt = p.getTransferQueueTitle?.({
211
+ uploads: Tt,
212
+ downloads: Et
213
+ }) ?? p.getUploadQueueTitle(Tt + Et), Ot = l(() => re({
214
+ uploadLabels: p.uploadQueueLabels,
215
+ downloadLabels: p.downloadQueueLabels,
216
+ mixedProgressLabel: p.transferQueueProgressAriaLabel,
217
+ uploadNames: new Set(O?.files.map((e) => e.name)),
218
+ downloadNames: new Set(M?.files.map((e) => e.name))
219
219
  }), [
220
- d.uploadQueueLabels,
221
- d.downloadQueueLabels,
222
- d.transferQueueProgressAriaLabel,
223
- T,
224
- k
225
- ]), Tt = s(() => ({
226
- fileMetadata: H,
227
- loading: U,
228
- clearMetadata: W,
229
- header: d.metadataHeader,
230
- nameLabel: d.metadataNameLabel,
231
- pathLabel: d.metadataPathLabel,
232
- modifiedDateLabel: d.metadataModifiedDateLabel,
233
- sizeLabel: d.metadataSizeLabel,
234
- authorLabel: d.metadataAuthorLabel
220
+ p.uploadQueueLabels,
221
+ p.downloadQueueLabels,
222
+ p.transferQueueProgressAriaLabel,
223
+ O,
224
+ M
225
+ ]), kt = l(() => ({
226
+ fileMetadata: W,
227
+ loading: G,
228
+ clearMetadata: K,
229
+ header: p.metadataHeader,
230
+ nameLabel: p.metadataNameLabel,
231
+ pathLabel: p.metadataPathLabel,
232
+ modifiedDateLabel: p.metadataModifiedDateLabel,
233
+ sizeLabel: p.metadataSizeLabel,
234
+ authorLabel: p.metadataAuthorLabel
235
235
  }), [
236
- H,
237
- U,
238
236
  W,
239
- d.metadataHeader,
240
- d.metadataNameLabel,
241
- d.metadataPathLabel,
242
- d.metadataModifiedDateLabel,
243
- d.metadataSizeLabel,
244
- d.metadataAuthorLabel
245
- ]), Et = ve({
246
- isDeleting: qe,
247
- isRenaming: Xe,
248
- isMoving: N,
249
- isUnsharing: nt,
250
- isRemovingAccess: it
251
- }, d), Dt = s(() => b.split("/").filter(Boolean).length > 1 ? {
252
- title: d.folderEmptyStateTitle,
237
+ G,
238
+ K,
239
+ p.metadataHeader,
240
+ p.metadataNameLabel,
241
+ p.metadataPathLabel,
242
+ p.metadataModifiedDateLabel,
243
+ p.metadataSizeLabel,
244
+ p.metadataAuthorLabel
245
+ ]), At = ye({
246
+ isDeleting: Je,
247
+ isRenaming: Ze,
248
+ isMoving: F,
249
+ isUnsharing: rt,
250
+ isRemovingAccess: at
251
+ }, p), $ = l(() => C.split("/").filter(Boolean).length > 1 ? {
252
+ title: p.folderEmptyStateTitle,
253
253
  description: ""
254
- } : d.emptyStateByTab[G], [
255
- b,
256
- d.folderEmptyStateTitle,
257
- d.emptyStateByTab,
258
- G
259
- ]), Ot = t({ "--dfms-surface": ke?.colors?.surface });
260
- return /* @__PURE__ */ l(me, { children: [
261
- Me == null ? /* @__PURE__ */ l("div", {
262
- style: Ot,
263
- className: e("relative flex min-h-0 w-full grow overflow-auto", oe.surface),
264
- children: [/* @__PURE__ */ c(he, {
265
- className: e("min-h-0 w-full grow", oe.surface, Q && "p-0"),
266
- contentClassName: Q ? "px-0 pb-0" : void 0,
267
- gridClassName: g === r.Attach ? "size-full gap-6 px-6 py-4" : "size-full",
254
+ } : p.emptyStateByTab[q], [
255
+ C,
256
+ p.folderEmptyStateTitle,
257
+ p.emptyStateByTab,
258
+ q
259
+ ]), jt = t({ "--dfms-surface": ke?.colors?.surface });
260
+ return /* @__PURE__ */ d(he, { children: [
261
+ Me == null ? /* @__PURE__ */ d("div", {
262
+ style: jt,
263
+ className: e("relative flex min-h-0 w-full grow overflow-auto", a.surface),
264
+ children: [/* @__PURE__ */ u(ge, {
265
+ className: e("min-h-0 w-full grow", a.surface, Z && "p-0"),
266
+ contentClassName: Z ? "px-0 pb-0" : void 0,
267
+ gridClassName: v === r.Attach ? "size-full gap-6 px-6 py-4" : "size-full",
268
268
  items: Ae,
269
- path: b,
269
+ path: C,
270
270
  onPathChange: Ne,
271
- onGridApiChange: ct,
271
+ onGridApiChange: lt,
272
272
  filesLoading: je,
273
- allowedFileTypes: Se,
274
- maxSelectableFileSize: _,
275
- maxFileSize: _,
276
- uploadValidationMessages: Ce == null ? void 0 : { oversizedFiles: Ce },
277
- selectedPaths: h,
278
- onSelectedPathsChange: ye,
273
+ allowedFileTypes: Ce,
274
+ maxSelectableFileSize: y,
275
+ maxFileSize: y,
276
+ uploadValidationMessages: b == null ? void 0 : { oversizedFiles: b },
277
+ selectedPaths: _,
278
+ onSelectedPathsChange: be,
279
279
  navigationPanelOptions: {
280
280
  searchable: !0,
281
- placeholder: d.searchPlaceholderByTab?.[G]
281
+ placeholder: p.searchPlaceholderByTab?.[q]
282
282
  },
283
283
  hideSearchPathItemName: !0,
284
284
  onSearchFiles: Fe,
285
285
  searchInProgress: Ie,
286
286
  searchResults: Le ?? [],
287
287
  clearSearchResults: Re,
288
- gridOptions: lt,
289
- treeOptions: ut,
288
+ gridOptions: pt,
289
+ treeOptions: mt,
290
290
  onFolderPopupPathChange: ze,
291
- toolbarOptions: ft,
292
- bulkActionsToolbarOptions: pt,
293
- autoSelectUploadedItems: xe,
294
- emptyStateTitle: Dt.title,
295
- emptyStateDescription: Dt.description,
296
- searchEmptyStateTitle: d.searchEmptyStateTitle,
297
- uploadEnabled: P,
298
- sharedWithMeIds: et,
299
- sharedByMePaths: V,
300
- onUnshareFiles: tt,
301
- onRemoveFilesAccess: rt,
302
- fileMetadataPopupOptions: Tt,
303
- onGetInfo: at,
291
+ toolbarOptions: gt,
292
+ bulkActionsToolbarOptions: _t,
293
+ autoSelectUploadedItems: Se,
294
+ emptyStateTitle: $.title,
295
+ emptyStateDescription: $.description,
296
+ searchEmptyStateTitle: p.searchEmptyStateTitle,
297
+ uploadEnabled: I,
298
+ sharedWithMeIds: tt,
299
+ sharedByMePaths: U,
300
+ onUnshareFiles: nt,
301
+ onRemoveFilesAccess: it,
302
+ fileMetadataPopupOptions: kt,
303
+ onGetInfo: ot,
304
304
  onPreview: Ee,
305
305
  onTableFileClick: De,
306
306
  previewExtensions: Oe,
307
307
  onUploadFiles: Be,
308
308
  onUploadArchive: Ve,
309
309
  onValidateUpload: He,
310
- onCreateFolder: Ue,
311
- onCreateFolderValidate: We,
312
- onDownloadFiles: Ge,
313
- onDeleteFiles: Ke,
314
- onMoveToFiles: Je,
315
- onCopyFiles: Ze,
316
- onRenameValidate: Ye,
317
- renameValidationMessages: d.renameValidationMessages,
318
- isRenameFileAvailable: P,
319
- deleteConfirmationOptions: mt,
320
- conflictResolutionPopupOptions: d.conflictResolutionPopupOptions,
321
- destinationFolderPopupOptions: _t,
322
- forbiddenSymbolsRegExp: ce,
323
- forbiddenSymbolsTooltip: d.forbiddenSymbolsTooltip,
310
+ onCreateFolder: We,
311
+ onCreateFolderValidate: Ge,
312
+ onDownloadFiles: Ke,
313
+ onDeleteFiles: qe,
314
+ onMoveToFiles: Ye,
315
+ onCopyFiles: Qe,
316
+ onRenameValidate: Xe,
317
+ renameValidationMessages: p.renameValidationMessages,
318
+ isRenameFileAvailable: I,
319
+ deleteConfirmationOptions: vt,
320
+ conflictResolutionPopupOptions: p.conflictResolutionPopupOptions,
321
+ destinationFolderPopupOptions: xt,
322
+ forbiddenSymbolsRegExp: ue,
323
+ forbiddenSymbolsTooltip: p.forbiddenSymbolsTooltip,
324
324
  getDisabledTooltip: we,
325
325
  unsupportedFileTypeTooltip: Te
326
- }), Et != null && /* @__PURE__ */ c("div", {
326
+ }), At != null && /* @__PURE__ */ u("div", {
327
327
  "aria-live": "polite",
328
328
  className: "absolute inset-0 z-52 flex items-center justify-center bg-backdrop desktop:p-4",
329
- children: /* @__PURE__ */ c(ue, {
329
+ children: /* @__PURE__ */ u(de, {
330
330
  size: 32,
331
331
  fullWidth: !1,
332
- ariaLabel: Et
332
+ ariaLabel: At
333
333
  })
334
334
  })]
335
- }) : /* @__PURE__ */ l("div", {
336
- role: "alert",
337
- className: "flex flex-col items-center gap-4 p-6",
338
- children: [/* @__PURE__ */ c("p", { children: d.errorMessage }), /* @__PURE__ */ c(le, {
339
- label: d.retryLabel,
340
- onClick: Pe
341
- })]
335
+ }) : /* @__PURE__ */ u("div", {
336
+ className: "p-6",
337
+ children: /* @__PURE__ */ u(le, {
338
+ message: p.errorMessage,
339
+ action: /* @__PURE__ */ u(oe, {
340
+ variant: o.Neutral,
341
+ appearance: se.Outlined,
342
+ size: ce.Small,
343
+ label: p.retryLabel,
344
+ onClick: Pe
345
+ })
346
+ })
342
347
  }),
343
- /* @__PURE__ */ c("div", {
348
+ /* @__PURE__ */ u("div", {
344
349
  className: "fixed inset-e-4 bottom-4 z-51",
345
- children: /* @__PURE__ */ c(de, {
346
- title: Ct,
347
- items: bt,
348
- onClose: vt,
349
- onCancelItem: yt,
350
- labels: wt
350
+ children: /* @__PURE__ */ u(fe, {
351
+ title: Dt,
352
+ items: wt,
353
+ onClose: St,
354
+ onCancelItem: Ct,
355
+ labels: Ot
351
356
  })
352
357
  }),
353
- (Qe || N) && /* @__PURE__ */ c(ne, {
354
- title: N ? d.operationLoaderMoveTitle : d.operationLoaderCopyTitle,
355
- text: N ? d.movingLabel : d.copyingLabel,
356
- cancelLabel: d.operationLoaderCancelLabel,
357
- onCancel: $e
358
+ ($e || F) && /* @__PURE__ */ u(ne, {
359
+ title: F ? p.operationLoaderMoveTitle : p.operationLoaderCopyTitle,
360
+ text: F ? p.movingLabel : p.copyingLabel,
361
+ cancelLabel: p.operationLoaderCancelLabel,
362
+ onCancel: et
358
363
  })
359
364
  ] });
360
365
  };
361
- a(d);
366
+ s(p);
362
367
  //#endregion
363
- export { d as DialFileManagerShell };
368
+ export { p as DialFileManagerShell };
@@ -0,0 +1,3 @@
1
+ /** Adds `errorId` to the `aria-describedby` of the element `getControl` returns and sets `aria-invalid` while `hasError` is true. */
2
+ export declare const useControlErrorAssociation: (getControl: () => Element | null, errorId: string, hasError: boolean) => void;
3
+ //# sourceMappingURL=useControlErrorAssociation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useControlErrorAssociation.d.ts","sourceRoot":"","sources":["../../src/hooks/useControlErrorAssociation.ts"],"names":[],"mappings":"AASA,qIAAqI;AACrI,eAAO,MAAM,0BAA0B,GACrC,YAAY,MAAM,OAAO,GAAG,IAAI,EAChC,SAAS,MAAM,EACf,UAAU,OAAO,KAChB,IAqBF,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { useLayoutEffect as e } from "react";
2
+ //#region src/hooks/useControlErrorAssociation.ts
3
+ var t = (t, n, r) => {
4
+ e(() => {
5
+ let e = t();
6
+ if (!e) return;
7
+ let i = (e.getAttribute("aria-describedby") ?? "").split(/\s+/).filter((e) => e !== "" && e !== n);
8
+ r ? (i.push(n), e.setAttribute("aria-invalid", "true")) : e.removeAttribute("aria-invalid"), i.length > 0 ? e.setAttribute("aria-describedby", i.join(" ")) : e.removeAttribute("aria-describedby");
9
+ });
10
+ };
11
+ //#endregion
12
+ export { t as useControlErrorAssociation };
package/index.d.ts CHANGED
@@ -70,6 +70,7 @@ export * from './components/MarkdownRenderer/Table/TableHeader';
70
70
  export * from './components/TextRefinementField/TextRefinementField';
71
71
  export * from './entry-points/markdown';
72
72
  export * from './hooks/useAvailableHeightCap';
73
+ export * from './hooks/useControlErrorAssociation';
73
74
  export * from './hooks/useIsMobile';
74
75
  export * from './hooks/useTextRefinement';
75
76
  export * from './hooks/useUnsavedChangesGuard';
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;A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Ac,gDAAgD,CAAC;AAC/D,cAAc,kDAAkD,CAAC;AACjE,cAAc,oDAAoD,CAAC;AACnE,cAAc,4DAA4D,CAAC;AAC3E,cAAc,gEAAgE,CAAC;AAC/E,cAAc,iDAAiD,CAAC;AAChE,cAAc,sDAAsD,CAAC;AACrE,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oCAAoC,CAAC;AACnD,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAY/C,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,2BAA2B,EAAE,MAAM,wCAAwC,CAAC"}
package/index.js CHANGED
@@ -68,12 +68,13 @@ import { MarkdownWithPlaceholders as Ct } from "./components/MarkdownWithPlaceho
68
68
  import { buildInlineSegmentSource as wt, createInlineSegmentComponents as Tt, createRehypeInlineSegments as Et } from "./utils/inline-segments.js";
69
69
  import { useCollapsedText as Dt } from "./hooks/useCollapsedText.js";
70
70
  import { useAvailableHeightCap as Ot } from "./hooks/useAvailableHeightCap.js";
71
- import { useIsMobile as kt } from "./hooks/useIsMobile.js";
72
- import { useUnsavedChangesGuard as At } from "./hooks/useUnsavedChangesGuard.js";
73
- import { DialFileManagerActionProfile as jt, DialFileManagerVariant as Mt } from "./file-manager/file-manager-variant.js";
74
- import { getParentFolderPath as Nt, isHiddenPath as Pt } from "./file-manager/path.js";
75
- import { FileDownloadStatus as Ft, FileUploadFailureReason as It, FileUploadStatus as Lt, isDownloadInProgress as Rt, isUploadInProgress as zt } from "./file-manager/upload-batch.js";
76
- import { useGridEditingScroll as Bt } from "./file-manager/useGridEditingScroll/useGridEditingScroll.js";
77
- import { OperationLoaderModal as Vt } from "./file-manager/OperationLoaderModal/OperationLoaderModal.js";
78
- import { isSkillSelectionUnsupported as Ht } from "./utils/is-skill-selection-unsupported.js";
79
- export { m as AttachmentErrorReason, h as AttachmentType, Se as BASE_LG_ICON_PROPS, Ce as BASE_MD_ICON_PROPS, s as BackgroundGenerationStatus, ct as CHAT_SHARED_CLASS, yt as COMPACT_MARKDOWN_CLASS_NAMES, g as CatalogEntityType, y as CodeBlockTheme, et as ConfirmationDialog, $e as ConfirmationFooter, Xe as ConfirmationIdentityCard, Ze as ConfirmationIdentityRow, Qe as ConfirmationView, a as ConversationKind, e as ConversationTransferErrorCode, t as ConversationTransferJobStatus, n as ConversationTransferSubjectKind, r as ConversationTransferUnitKind, i as ConversationTransferWarningCode, Be as CopyButton, Ve as CopyIconButton, bt as DEFAULT_MARKDOWN_CLASS_NAMES, ft as DEFAULT_MARKDOWN_TABLE_DOWNLOAD_FILENAME, tt as DELETE_CONFIRMATION_MAX_LISTED_NAMES, Pe as DESKTOP_BREAKPOINT_PX, Fe as DESKTOP_MEDIA_QUERY, rt as DeleteConfirmationDialog, nt as DeleteConfirmationView, ze as DeploymentIcon, jt as DialFileManagerActionProfile, Mt as DialFileManagerVariant, z as ENTITY_DESCRIPTION_MAX_LENGTH, B as ENTITY_INSTRUCTIONS_MAX_LENGTH, V as ENTITY_NAME_MAX_LENGTH, fe as ENTITY_TYPE_BG_COLOR, pe as ENTITY_TYPE_COLOR, Je as EntityHeader, Ke as EntityTypeLabel, qe as FeaturedChip, Ft as FileDownloadStatus, _ as FileExtension, It as FileUploadFailureReason, Lt as FileUploadStatus, o as FilterTab, we as HIDDEN_FILE, Re as InitialsAvatar, Ge as ItemHeader, De as MARKDOWN_EDITOR_FILL_HEIGHT_CLASS_NAME, Oe as MARKDOWN_EDITOR_MAX_HEIGHT_CLASS_NAME, je as MARKDOWN_EDITOR_PREVIEW_LIST_CLASS_NAME, pt as MARKDOWN_TABLE_CSV_MIME_TYPE, St 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, Ie as MOBILE_MAX_WIDTH_PX, Le as MOBILE_MEDIA_QUERY, dt as MarkdownCodeBlock, _t as MarkdownRenderer, gt as MarkdownTable, mt as MarkdownTableCopyFormat, Ct as MarkdownWithPlaceholders, c as MessageRating, l as MessageRole, Vt as OperationLoaderModal, P as PROHIBITED_CONVERSATION_NAME_CHARS_RE, me as PROMPT_PARAM_DEFAULT_SEPARATOR, he as PROMPT_PARAM_PATTERN, ge as PROMPT_VARIABLE_CLASS_NAME, Te as PUBLIC_BUCKET, We as PanelEmptyState, xt as PlainTextRenderer, ke as RESIZABLE_FIELD_MAX_HEIGHT_CSS_VARIABLE, Ae as RESIZABLE_TEXTAREA_CLASS_NAME, u as RequestStatus, Ye as ResourceSummary, p as ResponseFormat, Me as SELECT_LIST_MAX_HEIGHT_CLASS_NAME, Ne as SELECT_LIST_MAX_HEIGHT_PX, d as StageStatus, f as StatusEvent, Ee as TAG_INPUT_TAG_CLASS_NAME, it as TableHeader, st as TextRefinementField, at as TextRefinementState, ie as base64ToBlob, G as buildCssVars, wt as buildInlineSegmentSource, _e as buildPromptParamDefaults, X as copyMarkdownAsRichText, Z as copyToClipboard, Tt as createInlineSegmentComponents, Et as createRehypeInlineSegments, M as decodeJsonFromBase64, vt as defaultMarkdownComponents, ae as downloadTextFile, N as encodeJsonToBase64, oe as ensureDownloadFilename, H as exceedsMaxLength, He as extractInitials, ve as extractPromptParams, te as formatCost, ee as formatFileSize, $ as formatLastUsed, ne as formatPrice, re as formatUnitPrice, xe as generateUUID, w as getAttachmentTypeFromMime, T as getBaseMimeType, se as getFileExtensionForLanguage, Nt as getParentFolderPath, F as getUtf8ByteLength, U as hasControlCharacters, E as inferMimeTypeFromPath, k as isAnnotationSelector, Y as isAudioTranscriptionSupported, Rt as isDownloadInProgress, Pt as isHiddenPath, Ht as isSkillSelectionUnsupported, K as isStatusMessage, de as isSyntaxHighlightingAllowed, zt as isUploadInProgress, Q as markdownToRichTextHtml, W as mergeClasses, q as messageAttachmentToDisplayAttachment, J as messageAttachmentsToDisplayAttachments, D as normalizeMimeType, A as normalizePersistedHtmlTagAttachmentType, j as normalizeRawAnnotations, Ue as pickAvatarColor, ye as rehypePromptVariables, be as resolvePromptParams, ut as restrainedSyntaxTheme, I as sanitizeConversationName, ht as serializeMarkdownTableRows, L as stripTrailingDots, O as stripUrlQueryAndFragment, ce as triggerAnchorDownload, le as triggerBlobDownload, R as truncateToUtf8Bytes, ue as tryBase64ToBytes, Ot as useAvailableHeightCap, lt as useCodeCopy, Dt as useCollapsedText, Bt as useGridEditingScroll, kt as useIsMobile, ot as useTextRefinement, At as useUnsavedChangesGuard };
71
+ import { useControlErrorAssociation as kt } from "./hooks/useControlErrorAssociation.js";
72
+ import { useIsMobile as At } from "./hooks/useIsMobile.js";
73
+ import { useUnsavedChangesGuard as jt } from "./hooks/useUnsavedChangesGuard.js";
74
+ import { DialFileManagerActionProfile as Mt, DialFileManagerVariant as Nt } from "./file-manager/file-manager-variant.js";
75
+ import { getParentFolderPath as Pt, isHiddenPath as Ft } from "./file-manager/path.js";
76
+ import { FileDownloadStatus as It, FileUploadFailureReason as Lt, FileUploadStatus as Rt, isDownloadInProgress as zt, isUploadInProgress as Bt } from "./file-manager/upload-batch.js";
77
+ import { useGridEditingScroll as Vt } from "./file-manager/useGridEditingScroll/useGridEditingScroll.js";
78
+ import { OperationLoaderModal as Ht } from "./file-manager/OperationLoaderModal/OperationLoaderModal.js";
79
+ import { isSkillSelectionUnsupported as Ut } from "./utils/is-skill-selection-unsupported.js";
80
+ export { m as AttachmentErrorReason, h as AttachmentType, Se as BASE_LG_ICON_PROPS, Ce as BASE_MD_ICON_PROPS, s as BackgroundGenerationStatus, ct as CHAT_SHARED_CLASS, yt as COMPACT_MARKDOWN_CLASS_NAMES, g as CatalogEntityType, y as CodeBlockTheme, et as ConfirmationDialog, $e as ConfirmationFooter, Xe as ConfirmationIdentityCard, Ze as ConfirmationIdentityRow, Qe as ConfirmationView, a as ConversationKind, e as ConversationTransferErrorCode, t as ConversationTransferJobStatus, n as ConversationTransferSubjectKind, r as ConversationTransferUnitKind, i as ConversationTransferWarningCode, Be as CopyButton, Ve as CopyIconButton, bt as DEFAULT_MARKDOWN_CLASS_NAMES, ft as DEFAULT_MARKDOWN_TABLE_DOWNLOAD_FILENAME, tt as DELETE_CONFIRMATION_MAX_LISTED_NAMES, Pe as DESKTOP_BREAKPOINT_PX, Fe as DESKTOP_MEDIA_QUERY, rt as DeleteConfirmationDialog, nt as DeleteConfirmationView, ze as DeploymentIcon, Mt as DialFileManagerActionProfile, Nt as DialFileManagerVariant, z as ENTITY_DESCRIPTION_MAX_LENGTH, B as ENTITY_INSTRUCTIONS_MAX_LENGTH, V as ENTITY_NAME_MAX_LENGTH, fe as ENTITY_TYPE_BG_COLOR, pe as ENTITY_TYPE_COLOR, Je as EntityHeader, Ke as EntityTypeLabel, qe as FeaturedChip, It as FileDownloadStatus, _ as FileExtension, Lt as FileUploadFailureReason, Rt as FileUploadStatus, o as FilterTab, we as HIDDEN_FILE, Re as InitialsAvatar, Ge as ItemHeader, De as MARKDOWN_EDITOR_FILL_HEIGHT_CLASS_NAME, Oe as MARKDOWN_EDITOR_MAX_HEIGHT_CLASS_NAME, je as MARKDOWN_EDITOR_PREVIEW_LIST_CLASS_NAME, pt as MARKDOWN_TABLE_CSV_MIME_TYPE, St 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, Ie as MOBILE_MAX_WIDTH_PX, Le as MOBILE_MEDIA_QUERY, dt as MarkdownCodeBlock, _t as MarkdownRenderer, gt as MarkdownTable, mt as MarkdownTableCopyFormat, Ct as MarkdownWithPlaceholders, c as MessageRating, l as MessageRole, Ht as OperationLoaderModal, P as PROHIBITED_CONVERSATION_NAME_CHARS_RE, me as PROMPT_PARAM_DEFAULT_SEPARATOR, he as PROMPT_PARAM_PATTERN, ge as PROMPT_VARIABLE_CLASS_NAME, Te as PUBLIC_BUCKET, We as PanelEmptyState, xt as PlainTextRenderer, ke as RESIZABLE_FIELD_MAX_HEIGHT_CSS_VARIABLE, Ae as RESIZABLE_TEXTAREA_CLASS_NAME, u as RequestStatus, Ye as ResourceSummary, p as ResponseFormat, Me as SELECT_LIST_MAX_HEIGHT_CLASS_NAME, Ne as SELECT_LIST_MAX_HEIGHT_PX, d as StageStatus, f as StatusEvent, Ee as TAG_INPUT_TAG_CLASS_NAME, it as TableHeader, st as TextRefinementField, at as TextRefinementState, ie as base64ToBlob, G as buildCssVars, wt as buildInlineSegmentSource, _e as buildPromptParamDefaults, X as copyMarkdownAsRichText, Z as copyToClipboard, Tt as createInlineSegmentComponents, Et as createRehypeInlineSegments, M as decodeJsonFromBase64, vt as defaultMarkdownComponents, ae as downloadTextFile, N as encodeJsonToBase64, oe as ensureDownloadFilename, H as exceedsMaxLength, He as extractInitials, ve as extractPromptParams, te as formatCost, ee as formatFileSize, $ as formatLastUsed, ne as formatPrice, re as formatUnitPrice, xe as generateUUID, w as getAttachmentTypeFromMime, T as getBaseMimeType, se as getFileExtensionForLanguage, Pt as getParentFolderPath, F as getUtf8ByteLength, U as hasControlCharacters, E as inferMimeTypeFromPath, k as isAnnotationSelector, Y as isAudioTranscriptionSupported, zt as isDownloadInProgress, Ft as isHiddenPath, Ut as isSkillSelectionUnsupported, K as isStatusMessage, de as isSyntaxHighlightingAllowed, Bt as isUploadInProgress, Q as markdownToRichTextHtml, W as mergeClasses, q as messageAttachmentToDisplayAttachment, J as messageAttachmentsToDisplayAttachments, D as normalizeMimeType, A as normalizePersistedHtmlTagAttachmentType, j as normalizeRawAnnotations, Ue as pickAvatarColor, ye as rehypePromptVariables, be as resolvePromptParams, ut as restrainedSyntaxTheme, I as sanitizeConversationName, ht as serializeMarkdownTableRows, L as stripTrailingDots, O as stripUrlQueryAndFragment, ce as triggerAnchorDownload, le as triggerBlobDownload, R as truncateToUtf8Bytes, ue as tryBase64ToBytes, Ot as useAvailableHeightCap, lt as useCodeCopy, Dt as useCollapsedText, kt as useControlErrorAssociation, Vt as useGridEditingScroll, At as useIsMobile, ot as useTextRefinement, jt as useUnsavedChangesGuard };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-chat-shared",
3
3
  "description": "Shared domain models, utilities, and UI components for AI DIAL Chat libraries",
4
- "version": "1.3.0-dev.241",
4
+ "version": "1.3.0-dev.245",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "sideEffects": [