@epam/ai-dial-chat-shared 1.1.0-dev.405 → 1.1.0-dev.413

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.
@@ -0,0 +1,512 @@
1
+ import { DialFileName as e, NOT_ALLOWED_SYMBOLS_REGEXP as t, NeutralButton as n, Popup as r, PopupSize as i, PrimaryButton as a, Spinner as o } from "@epam/ai-dial-ui-kit";
2
+ import { memo as s, useCallback as c, useEffect as l, useMemo as u, useRef as d, useState as f } from "react";
3
+ import { Fragment as ee, jsx as p, jsxs as m } from "react/jsx-runtime";
4
+ import { DialFileManager as te, DialFileManagerActions as h, DialFileManagerTabs as ne, DialFileNodeType as g, GridSelectionMode as _ } from "@epam/ai-dial-react-file-manager";
5
+ //#region src/file-manager/file-manager-variant.ts
6
+ var v = /* @__PURE__ */ function(e) {
7
+ return e.Attach = "attach", e.Standalone = "standalone", e.FolderPicker = "folder-picker", e;
8
+ }({}), y = /* @__PURE__ */ function(e) {
9
+ return e.Attach = "attach", e.Browse = "browse", e.Full = "full", e;
10
+ }({}), b = (e) => e.split("/").some((e) => e.startsWith(".")), x = (e) => {
11
+ let t = e.replace(/\/$/, ""), n = t.lastIndexOf("/");
12
+ return n > 0 ? t.slice(0, n + 1) : "";
13
+ }, S = /* @__PURE__ */ function(e) {
14
+ return e.Queued = "queued", e.Uploading = "uploading", e.Completed = "completed", e.Failed = "failed", e.Cancelled = "cancelled", e;
15
+ }({}), C = (e) => {
16
+ if (e.id) {
17
+ let t = document.querySelector(`[row-id="${e.id}"]`);
18
+ if (t) return t;
19
+ }
20
+ return e.rowIndex == null ? null : document.querySelector(`[row-index="${e.rowIndex}"]`);
21
+ }, w = (e, t) => {
22
+ requestAnimationFrame(() => {
23
+ requestAnimationFrame(() => {
24
+ !e.isDestroyed() && t.rowIndex != null && e.ensureNodeVisible(t, "middle"), C(t)?.scrollIntoView({
25
+ block: "center",
26
+ behavior: "auto"
27
+ });
28
+ });
29
+ });
30
+ }, T = (e) => e.find((e) => e.data?.isTemporary) ?? e[0] ?? null, E = ({ resolveTargetNode: e = T } = {}) => {
31
+ let t = d(/* @__PURE__ */ new Set()), n = d(!1), r = d(null), i = c(() => {
32
+ t.current = /* @__PURE__ */ new Set(), n.current = !1;
33
+ }, []), a = c((e) => {
34
+ let { api: t } = e;
35
+ !t.isDestroyed() && e.rowIndex != null && t.ensureIndexVisible(e.rowIndex);
36
+ }, []), o = c((r) => {
37
+ let { api: i } = r, a = /* @__PURE__ */ new Set(), o = [];
38
+ i.forEachNode((e) => {
39
+ let r = e.data?.id;
40
+ r && (a.add(r), n.current && !t.current.has(r) && o.push(e));
41
+ }), t.current = a, n.current = !0;
42
+ let s = e(o);
43
+ s && w(i, s);
44
+ }, [e]), s = c((e) => {
45
+ let t = r.current;
46
+ t !== e && (t != null && (t.removeEventListener("cellEditingStarted", a), t.removeEventListener("rowDataUpdated", o)), e.addEventListener("cellEditingStarted", a), e.addEventListener("rowDataUpdated", o), r.current = e);
47
+ }, [a, o]);
48
+ return l(() => () => {
49
+ let e = r.current;
50
+ e != null && !e.isDestroyed() && (e.removeEventListener("cellEditingStarted", a), e.removeEventListener("rowDataUpdated", o)), r.current = null;
51
+ }, [a, o]), {
52
+ handleGridApiChange: s,
53
+ reset: i
54
+ };
55
+ }, D = ({ title: e, text: t, cancelLabel: i, onCancel: a }) => /* @__PURE__ */ p(r, {
56
+ className: "!h-fit !max-h-full !w-[400px]",
57
+ open: !0,
58
+ closeOnOutsideClick: !1,
59
+ hideClose: !0,
60
+ onClose: a,
61
+ footer: /* @__PURE__ */ p("div", {
62
+ className: "flex justify-end gap-2 px-6 py-4",
63
+ children: /* @__PURE__ */ p(n, {
64
+ label: i,
65
+ onClick: a
66
+ })
67
+ }),
68
+ children: /* @__PURE__ */ m("div", {
69
+ "aria-live": "polite",
70
+ className: "flex flex-col items-center gap-4 px-6 py-4 text-center",
71
+ children: [/* @__PURE__ */ p(o, {
72
+ size: 32,
73
+ fullWidth: !1,
74
+ ariaLabel: e
75
+ }), /* @__PURE__ */ m("div", {
76
+ className: "flex flex-col gap-1",
77
+ children: [/* @__PURE__ */ p("div", { children: e }), /* @__PURE__ */ p("div", {
78
+ className: "dial-small-text text-secondary",
79
+ children: t
80
+ })]
81
+ })]
82
+ })
83
+ });
84
+ s(D);
85
+ //#endregion
86
+ //#region src/file-manager/UploadProgressModal/UploadProgressModal.tsx
87
+ var O = ({ batchState: t, uploadProgressTitle: i, uploadProgressText: a, cancelLabel: o, onCancel: s }) => {
88
+ let { files: l } = t, u = c((e) => e === void 0 ? null : /* @__PURE__ */ p("div", {
89
+ className: "h-1 w-full overflow-hidden rounded-full bg-control-disable-primary",
90
+ "data-qa": "uploading-indicator",
91
+ role: "progressbar",
92
+ "aria-valuemin": 0,
93
+ "aria-valuemax": 100,
94
+ "aria-valuenow": e,
95
+ children: /* @__PURE__ */ p("div", {
96
+ className: "h-full rounded-full bg-control-accent transition-all duration-300",
97
+ style: { width: `${e}%` }
98
+ })
99
+ }), []);
100
+ return /* @__PURE__ */ p(r, {
101
+ className: "!h-fit !max-h-full !w-[400px] mobile:!w-full desktop:!max-h-[693px]",
102
+ open: t.isOpen,
103
+ closeOnOutsideClick: !1,
104
+ hideClose: !0,
105
+ onClose: s,
106
+ footer: /* @__PURE__ */ p("div", {
107
+ className: "flex justify-end gap-2 px-6 py-4",
108
+ children: /* @__PURE__ */ p(n, {
109
+ label: o,
110
+ onClick: s
111
+ })
112
+ }),
113
+ header: /* @__PURE__ */ m("div", {
114
+ className: "flex flex-col gap-2",
115
+ children: [/* @__PURE__ */ p("div", { children: i }), /* @__PURE__ */ p("div", {
116
+ className: "dial-small-text text-secondary",
117
+ "data-qa": "uploading-items-count",
118
+ children: a
119
+ })]
120
+ }),
121
+ children: /* @__PURE__ */ p("div", {
122
+ className: "flex h-full max-h-full flex-col gap-4 px-6",
123
+ children: /* @__PURE__ */ p("div", {
124
+ className: "flex min-h-0 flex-1 flex-col gap-2 overflow-y-auto",
125
+ children: l.map((t) => /* @__PURE__ */ p("div", {
126
+ className: "rounded bg-layer-sunken px-3 py-2",
127
+ children: /* @__PURE__ */ p(e, {
128
+ name: t.name,
129
+ details: u(t.percent)
130
+ })
131
+ }, t.id))
132
+ })
133
+ })
134
+ });
135
+ };
136
+ s(O);
137
+ //#endregion
138
+ //#region src/file-manager/DialFileManagerShell/DialFileManagerShell.tsx
139
+ var k = (e, t) => {
140
+ if (e.isDownloading) return t.downloadingLabel;
141
+ if (e.isDeleting) return t.deletingLabel;
142
+ if (e.isRenaming && !e.isMoving) return t.renamingLabel;
143
+ if (e.isUnsharing) return t.unsharingLabel;
144
+ if (e.isRemovingAccess) return t.removingAccessLabel;
145
+ }, A = ({ controller: e, labels: n, activeTab: r, tabs: i, onTabChange: s, selectedPaths: c, onSelectedPathsChange: d, variant: g, actionProfile: b, autoSelectUploadedItems: C = !1, allowedFileTypes: w, maxSelectableFileSize: T, isRowSelectable: A, getDisabledTooltip: j, unsupportedFileTypeTooltip: M }) => {
146
+ let { items: re, isLoading: N, error: P, path: F, onPathChange: I, retry: L, onSearchFiles: R, isSearching: z, searchResults: B, clearSearchResults: ie, expandedPaths: ae, loadedPaths: oe, onExpandedPathsChange: se, onFolderPopupPathChange: ce, folderPopupLoadingPaths: V, onUploadFiles: le, onUploadArchive: ue, onValidateUpload: de, uploadBatchState: H, cancelUpload: fe, clearUploadBatch: pe, onCreateFolder: me, onCreateFolderValidate: he, onDownloadFiles: ge, isDownloading: _e, onDeleteFiles: ve, isDeleting: ye, onMoveToFiles: be, onRenameValidate: xe, isRenaming: Se, onCopyFiles: Ce, isCopying: we, isMoving: U, cancelCopyMove: Te, uploadEnabled: W, isNewButtonDisabled: G, disabledNewButtonTooltip: K, visibleColumns: q, dateLocale: Ee, dateOptions: De, actionLabels: J, sharedWithMeIds: Oe, sharedByMePaths: Y, onUnshareFiles: ke, isUnsharing: Ae, onRemoveFilesAccess: je, isRemovingAccess: Me, fileMetadata: Ne, isFileMetadataLoading: Pe, onGetInfo: Fe, clearMetadata: Ie } = e, [X, Le] = f(void 0), { handleGridApiChange: Re, reset: ze } = E();
147
+ l(() => {
148
+ ze();
149
+ }, [r, ze]);
150
+ let Z = u(() => {
151
+ let e = {};
152
+ return h.Download in J && (e[h.Download] = n.downloadLabel), h.Delete in J && (e[h.Delete] = n.deleteLabel), h.Rename in J && (e[h.Rename] = n.renameLabel), h.Copy in J && (e[h.Copy] = n.copyLabel), h.Move in J && (e[h.Move] = n.moveLabel), h.Duplicate in J && (e[h.Duplicate] = n.duplicateLabel), h.Unshare in J && (e[h.Unshare] = n.unshareLabel), h.RemoveAccess in J && (e[h.RemoveAccess] = n.removeAccessLabel), e;
153
+ }, [
154
+ J,
155
+ n.downloadLabel,
156
+ n.deleteLabel,
157
+ n.renameLabel,
158
+ n.copyLabel,
159
+ n.moveLabel,
160
+ n.duplicateLabel,
161
+ n.unshareLabel,
162
+ n.removeAccessLabel
163
+ ]), Be = u(() => h.Info in J ? {
164
+ ...Z,
165
+ [h.Info]: n.infoLabel
166
+ } : Z, [
167
+ Z,
168
+ J,
169
+ n.infoLabel
170
+ ]), Q = u(() => {
171
+ if (c.size === 0) return !1;
172
+ for (let e of c) if (!Y.has(e)) return !1;
173
+ return !0;
174
+ }, [c, Y]), Ve = u(() => {
175
+ if (Q) return Z;
176
+ let { [h.RemoveAccess]: e, ...t } = Z;
177
+ return t;
178
+ }, [Z, Q]), He = u(() => ({
179
+ selectionMode: _.MULTIPLE,
180
+ visibleColumns: q,
181
+ dateLocale: Ee,
182
+ dateOptions: De,
183
+ additionalGridOptions: {
184
+ domLayout: "normal",
185
+ rowSelection: {
186
+ mode: "multiRow",
187
+ isRowSelectable: A ?? (() => !0)
188
+ }
189
+ },
190
+ actionLabels: Be
191
+ }), [
192
+ q,
193
+ Ee,
194
+ De,
195
+ Be,
196
+ A
197
+ ]), Ue = u(() => ({
198
+ header: n.treeHeaderByTab[r],
199
+ expandedPaths: ae,
200
+ loadedPaths: oe,
201
+ loadingPaths: V,
202
+ onExpandedPathsChange: se,
203
+ actionLabels: Z
204
+ }), [
205
+ n.treeHeaderByTab,
206
+ r,
207
+ ae,
208
+ oe,
209
+ V,
210
+ se,
211
+ Z
212
+ ]), We = g === v.Standalone && b === y.Full && r === ne.MyFiles && W, Ge = u(() => ({
213
+ tabs: i,
214
+ activeTab: r,
215
+ onTabChange: s,
216
+ showHiddenFilesToggle: !0,
217
+ hiddenFilesSwitcherLabel: n.hiddenFilesLabel,
218
+ showHiddenFilesLabel: n.showHiddenFilesLabel,
219
+ hideHiddenFilesLabel: n.hideHiddenFilesLabel,
220
+ isNewButtonDisabled: G,
221
+ disabledNewButtonTooltip: K,
222
+ newActions: {
223
+ uploadFiles: { label: n.uploadFilesLabel },
224
+ newFolder: { label: n.newFolderLabel },
225
+ ...We ? { uploadArchive: { label: n.uploadArchiveAction } } : {}
226
+ }
227
+ }), [
228
+ i,
229
+ r,
230
+ s,
231
+ n.hiddenFilesLabel,
232
+ n.showHiddenFilesLabel,
233
+ n.hideHiddenFilesLabel,
234
+ G,
235
+ K,
236
+ n.uploadFilesLabel,
237
+ n.newFolderLabel,
238
+ We,
239
+ n.uploadArchiveAction
240
+ ]), Ke = u(() => ({
241
+ getSelectionLabel: n.getSelectionLabel,
242
+ actionLabels: Ve
243
+ }), [n.getSelectionLabel, Ve]), qe = u(() => ({
244
+ cancelLabel: n.deleteCancelLabel,
245
+ confirmLabel: n.deleteConfirmLabel,
246
+ titleRenderer: n.deleteConfirmTitle,
247
+ contentRenderer: n.deleteConfirmBody
248
+ }), [
249
+ n.deleteCancelLabel,
250
+ n.deleteConfirmLabel,
251
+ n.deleteConfirmTitle,
252
+ n.deleteConfirmBody
253
+ ]), Je = u(() => {
254
+ let e;
255
+ for (let t of c) {
256
+ let n = x(t);
257
+ if (e === void 0) e = n;
258
+ else if (e !== n) return;
259
+ }
260
+ return e;
261
+ }, [c]), $ = X != null && V.has(X), Ye = $ ? X : Je, Xe = u(() => ({
262
+ copyLabel: n.copyLabel,
263
+ moveLabel: n.moveLabel,
264
+ addFolderLabel: n.addFolderLabel,
265
+ hiddenFilesSwitcherLabel: n.hiddenFilesSwitcherLabel,
266
+ getCopyHeader: n.getCopyHeader,
267
+ getMoveHeader: n.getMoveHeader,
268
+ disabledPathTooltip: $ ? n.folderPickerLoadingTooltip : n.moveSourceDisabledTooltip,
269
+ emptyStateTitle: n.folderPickerEmptyStateTitle,
270
+ emptyStateDescription: n.folderPickerEmptyStateDescription,
271
+ sourceFolder: Ye,
272
+ destinationFolderPath: X,
273
+ setDestinationFolderPath: Le,
274
+ filesLoading: $
275
+ }), [
276
+ n.copyLabel,
277
+ n.moveLabel,
278
+ n.addFolderLabel,
279
+ n.hiddenFilesSwitcherLabel,
280
+ n.getCopyHeader,
281
+ n.getMoveHeader,
282
+ n.folderPickerLoadingTooltip,
283
+ n.moveSourceDisabledTooltip,
284
+ n.folderPickerEmptyStateTitle,
285
+ n.folderPickerEmptyStateDescription,
286
+ $,
287
+ Ye,
288
+ X
289
+ ]), Ze = () => {
290
+ fe(), pe();
291
+ }, Qe = u(() => ({
292
+ fileMetadata: Ne,
293
+ loading: Pe,
294
+ clearMetadata: Ie,
295
+ header: n.metadataHeader,
296
+ nameLabel: n.metadataNameLabel,
297
+ pathLabel: n.metadataPathLabel,
298
+ modifiedDateLabel: n.metadataModifiedDateLabel,
299
+ sizeLabel: n.metadataSizeLabel,
300
+ authorLabel: n.metadataAuthorLabel
301
+ }), [
302
+ Ne,
303
+ Pe,
304
+ Ie,
305
+ n.metadataHeader,
306
+ n.metadataNameLabel,
307
+ n.metadataPathLabel,
308
+ n.metadataModifiedDateLabel,
309
+ n.metadataSizeLabel,
310
+ n.metadataAuthorLabel
311
+ ]), $e = k({
312
+ isDownloading: _e,
313
+ isDeleting: ye,
314
+ isRenaming: Se,
315
+ isMoving: U,
316
+ isUnsharing: Ae,
317
+ isRemovingAccess: Me
318
+ }, n), et = u(() => {
319
+ if (H == null) return "";
320
+ let e = H.files.filter((e) => e.status !== S.Uploading).length;
321
+ return n.getUploadProgressText(e, H.files.length);
322
+ }, [H, n]), tt = u(() => B != null && !z ? {
323
+ title: n.searchEmptyStateTitle,
324
+ description: ""
325
+ } : F.split("/").filter(Boolean).length > 1 ? {
326
+ title: n.folderEmptyStateTitle,
327
+ description: ""
328
+ } : n.emptyStateByTab[r], [
329
+ B,
330
+ z,
331
+ F,
332
+ n.searchEmptyStateTitle,
333
+ n.folderEmptyStateTitle,
334
+ n.emptyStateByTab,
335
+ r
336
+ ]);
337
+ return /* @__PURE__ */ m(ee, { children: [
338
+ P == null ? /* @__PURE__ */ m("div", {
339
+ className: "relative flex min-h-0 w-full grow overflow-auto bg-layer-sunken",
340
+ children: [/* @__PURE__ */ p(te, {
341
+ className: "min-h-0 w-full grow bg-layer-sunken",
342
+ gridClassName: "size-full",
343
+ items: re,
344
+ path: F,
345
+ onPathChange: I,
346
+ onGridApiChange: Re,
347
+ filesLoading: N,
348
+ allowedFileTypes: w,
349
+ maxSelectableFileSize: T,
350
+ selectedPaths: c,
351
+ onSelectedPathsChange: d,
352
+ navigationPanelOptions: { searchable: !0 },
353
+ hideSearchPathItemName: !0,
354
+ onSearchFiles: R,
355
+ searchInProgress: z,
356
+ searchResults: B ?? [],
357
+ clearSearchResults: ie,
358
+ gridOptions: He,
359
+ treeOptions: Ue,
360
+ onFolderPopupPathChange: ce,
361
+ toolbarOptions: Ge,
362
+ bulkActionsToolbarOptions: Ke,
363
+ autoSelectUploadedItems: C,
364
+ emptyStateTitle: tt.title,
365
+ emptyStateDescription: tt.description,
366
+ uploadEnabled: W,
367
+ sharedWithMeIds: Oe,
368
+ sharedByMePaths: Y,
369
+ onUnshareFiles: ke,
370
+ onRemoveFilesAccess: je,
371
+ fileMetadataPopupOptions: Qe,
372
+ onGetInfo: Fe,
373
+ onUploadFiles: le,
374
+ onUploadArchive: ue,
375
+ onValidateUpload: de,
376
+ onCreateFolder: me,
377
+ onCreateFolderValidate: he,
378
+ onDownloadFiles: ge,
379
+ onDeleteFiles: ve,
380
+ onMoveToFiles: be,
381
+ onCopyFiles: Ce,
382
+ onRenameValidate: xe,
383
+ renameValidationMessages: n.renameValidationMessages,
384
+ isRenameFileAvailable: W,
385
+ deleteConfirmationOptions: qe,
386
+ conflictResolutionPopupOptions: n.conflictResolutionPopupOptions,
387
+ destinationFolderPopupOptions: Xe,
388
+ forbiddenSymbolsRegExp: t,
389
+ forbiddenSymbolsTooltip: n.forbiddenSymbolsTooltip,
390
+ getDisabledTooltip: j,
391
+ unsupportedFileTypeTooltip: M
392
+ }), $e != null && /* @__PURE__ */ p("div", {
393
+ "aria-live": "polite",
394
+ className: "absolute inset-0 z-[52] flex items-center justify-center bg-backdrop desktop:p-4",
395
+ children: /* @__PURE__ */ p(o, {
396
+ size: 32,
397
+ fullWidth: !1,
398
+ ariaLabel: $e
399
+ })
400
+ })]
401
+ }) : /* @__PURE__ */ m("div", {
402
+ role: "alert",
403
+ className: "flex flex-col items-center gap-4 p-6",
404
+ children: [/* @__PURE__ */ p("p", { children: n.errorMessage }), /* @__PURE__ */ p(a, {
405
+ label: n.retryLabel,
406
+ onClick: L
407
+ })]
408
+ }),
409
+ H != null && /* @__PURE__ */ p(O, {
410
+ batchState: H,
411
+ uploadProgressTitle: n.uploadProgressTitle,
412
+ uploadProgressText: et,
413
+ cancelLabel: n.cancelLabel,
414
+ onCancel: Ze
415
+ }),
416
+ (we || U) && /* @__PURE__ */ p(D, {
417
+ title: U ? n.operationLoaderMoveTitle : n.operationLoaderCopyTitle,
418
+ text: U ? n.movingLabel : n.copyingLabel,
419
+ cancelLabel: n.operationLoaderCancelLabel,
420
+ onCancel: Te
421
+ })
422
+ ] });
423
+ };
424
+ s(A);
425
+ //#endregion
426
+ //#region src/file-manager/FileManagerAttachModal/FileManagerAttachModal.tsx
427
+ var j = s(({ isOpen: e, onClose: t, onAttach: n, onSkippedUnsupportedFiles: o, onCountLimitExceeded: s, controller: l, isAnyOperationInProgress: d, activeTab: f, tabs: ee, onTabChange: te, labels: h, variant: ne, actionProfile: _, selectedPaths: v, onSelectedPathsChange: y, resolveFolderPath: x, isFileTypeAllowed: S, maxSelectableFileSize: C, maximumAttachmentsAmount: w, existingAttachmentsAmount: T = 0, isRowSelectable: E, getDisabledTooltip: D, unsupportedFileTypeTooltip: O, allowedFileTypes: k, autoSelectUploadedItems: j = !1 }) => {
428
+ let { items: M, isLoading: re, searchResults: N } = l, P = u(() => {
429
+ let e = /* @__PURE__ */ new Map(), t = (n) => {
430
+ n.forEach((n) => {
431
+ (n.nodeType === g.ITEM || n.nodeType === g.FOLDER) && (e.set(n.path, n), n.id && e.set(n.id, n)), n.items && t(n.items);
432
+ });
433
+ };
434
+ return t(M), N?.forEach((t) => {
435
+ e.set(t.path, t), t.id && e.set(t.id, t);
436
+ }), e;
437
+ }, [M, N]), F = u(() => Array.from(v).map((e) => P.get(e)).filter((e) => e != null), [P, v]), I = c(() => {
438
+ let e = [], t = [];
439
+ for (let n of F) b(n.path) || (n.nodeType === g.FOLDER ? e.push(n.path) : t.push(n));
440
+ let r = e.filter((t) => !e.some((e) => e !== t && t.startsWith(`${e}/`))), i = t.filter((e) => !(b(e.path) || S != null && e.contentType != null && !S(e.contentType))), a = i.filter((e) => !r.some((t) => e.path.startsWith(`${t}/`)));
441
+ t.length - i.length > 0 && o?.();
442
+ let c = r.flatMap((e) => {
443
+ let t = P.get(e);
444
+ if (t == null) return [];
445
+ let n = x(t);
446
+ return n == null ? [] : [n];
447
+ }), l = T + a.length + c.length;
448
+ if (w != null && w > 0 && l > w) {
449
+ s?.(l, w);
450
+ return;
451
+ }
452
+ n({
453
+ files: a,
454
+ folderPaths: c
455
+ });
456
+ }, [
457
+ n,
458
+ o,
459
+ s,
460
+ F,
461
+ S,
462
+ w,
463
+ T,
464
+ P,
465
+ x
466
+ ]), { title: L, attachLabel: R, headerDescription: z, ...B } = h;
467
+ return /* @__PURE__ */ p(r, {
468
+ open: e,
469
+ header: /* @__PURE__ */ m("div", {
470
+ className: "flex flex-col gap-1",
471
+ children: [/* @__PURE__ */ p("span", { children: L }), z != null && /* @__PURE__ */ p("p", {
472
+ className: "dial-small-text text-start",
473
+ children: z
474
+ })]
475
+ }),
476
+ ariaLabel: L,
477
+ size: i.Lg,
478
+ className: "flex !h-[min(800px,100dvh)] w-full flex-col !bg-layer-sunken",
479
+ onClose: t,
480
+ footer: /* @__PURE__ */ p("div", {
481
+ className: "flex justify-end px-6 py-4",
482
+ children: /* @__PURE__ */ p(a, {
483
+ label: R,
484
+ disabled: F.length === 0 || re || d,
485
+ onClick: I
486
+ })
487
+ }),
488
+ children: /* @__PURE__ */ p("div", {
489
+ className: "flex min-h-0 flex-col",
490
+ children: /* @__PURE__ */ p(A, {
491
+ controller: l,
492
+ labels: B,
493
+ activeTab: f,
494
+ tabs: ee,
495
+ onTabChange: te,
496
+ selectedPaths: v,
497
+ onSelectedPathsChange: y,
498
+ variant: ne,
499
+ actionProfile: _,
500
+ autoSelectUploadedItems: j,
501
+ allowedFileTypes: k,
502
+ maxSelectableFileSize: C,
503
+ isRowSelectable: E,
504
+ getDisabledTooltip: D,
505
+ unsupportedFileTypeTooltip: O
506
+ })
507
+ })
508
+ });
509
+ });
510
+ j.displayName = "FileManagerAttachModal";
511
+ //#endregion
512
+ export { E as a, b as c, D as i, y as l, A as n, S as o, O as r, x as s, j as t, v as u };
@@ -18,9 +18,9 @@ export interface MarkdownRendererClassNames extends MarkdownTableClassNames {
18
18
  h6?: string;
19
19
  /** Classes on `<p>` elements. */
20
20
  p?: string;
21
- /** Extra classes on `<ul>` (base: `list-disc ps-5`). */
21
+ /** Extra classes on `<ul>` (base: `list-disc ps-[2em]`). */
22
22
  ul?: string;
23
- /** Extra classes on `<ol>` (base: `list-decimal ps-5`). */
23
+ /** Extra classes on `<ol>` (base: `list-decimal ps-[2em]`). */
24
24
  ol?: string;
25
25
  /** Typography class for `<strong>`. Defaults to `'dial-body-paragraph-semi-text'` — the semibold step matching the default `p` class. */
26
26
  strong?: string;
@@ -120,7 +120,6 @@ export interface MarkdownRendererColors {
120
120
  /** Text color for inline `<code>` spans. Defaults to `--text-primary`. */
121
121
  inlineCodeText?: string;
122
122
  }
123
- /** Default react-markdown component overrides shared across all consumers. */
124
123
  export declare const defaultMarkdownComponents: Components;
125
124
  /** Markdown renderer with GFM support. Styling is driven by `classNames`; structural overrides via `components`. */
126
125
  export declare const MarkdownRenderer: FC<MarkdownRendererProps>;
@@ -1 +1 @@
1
- {"version":3,"file":"MarkdownRenderer.d.ts","sourceRoot":"","sources":["../../../src/components/MarkdownRenderer/MarkdownRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsC,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AACpE,OAAsB,EAAE,KAAK,UAAU,EAAE,KAAK,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAO9E,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAOzD,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,uBAAuB,CAAC;AAI/B,0EAA0E;AAC1E,MAAM,WAAW,0BAA2B,SAAQ,uBAAuB;IACzE,uBAAuB;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,uBAAuB;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,uBAAuB;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,uBAAuB;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,uBAAuB;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,uBAAuB;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,iCAAiC;IACjC,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,wDAAwD;IACxD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,2DAA2D;IAC3D,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,yIAAyI;IACzI,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,2DAA2D;IAC3D,EAAE,CAAC,EAAE,M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kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,mFAAmF;IACnF,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,qFAAqF;IACrF,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,wDAAwD;IACxD,MAAM,CAAC,EAAE,sBAAsB,CAAC;IAChC,uGAAuG;IACvG,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,iHAAiH;IACjH,yBAAyB,CAAC,EAAE,MAAM,CAAC;CACpC;AAED,0EAA0E;AAC1E,MAAM,WAAW,sBAAsB;IACrC,wDAAwD;IACxD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,0DAA0D;IAC1D,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iEAAiE;IACjE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,wFAAwF;IACxF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,6EAA6E;IAC7E,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,+DAA+D;IAC/D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,uFAAuF;IACvF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gFAAgF;IAChF,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,sEAAsE;IACtE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mFAAmF;IACnF,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,0EAA0E;IAC1E,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AA8HD,8EAA8E;AAC9E,eAAO,MAAM,yBAAyB,EAAE,UAEvC,CAAC;AAsOF,oHAAoH;AACpH,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CAyItD,CAAC"}
1
+ {"version":3,"file":"MarkdownRenderer.d.ts","sourceRoot":"","sources":["../../../src/components/MarkdownRenderer/MarkdownRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,EAAE,EAER,MAAM,OAAO,CAAC;AACf,OA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AC;IAC3B,iEAAiE;IACjE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,wFAAwF;IACxF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,6EAA6E;IAC7E,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,+DAA+D;IAC/D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,uFAAuF;IACvF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gFAAgF;IAChF,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,sEAAsE;IACtE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mFAAmF;IACnF,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,0EAA0E;IAC1E,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AA+JD,eAAO,MAAM,yBAAyB,EAAE,UAGvC,CAAC;AAkQF,oHAAoH;AACpH,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CAyItD,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare const RESIZABLE_TEXTAREA_CLASS_NAME = "max-h-[50vh]";
2
+ export declare const MARKDOWN_EDITOR_MAX_HEIGHT_CLASS_NAME = "[&_.w-md-editor]:max-h-[70vh]";
3
+ //# sourceMappingURL=resizable-fields.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resizable-fields.d.ts","sourceRoot":"","sources":["../../src/constants/resizable-fields.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,6BAA6B,iBAAiB,CAAC;AAU5D,eAAO,MAAM,qCAAqC,kCACjB,CAAC"}
@@ -0,0 +1,4 @@
1
+ /** Optional file-manager UI. Import this entry from a lazy feature boundary. */
2
+ export * from '../file-manager/DialFileManagerShell/DialFileManagerShell';
3
+ export * from '../file-manager/FileManagerAttachModal/FileManagerAttachModal';
4
+ //# sourceMappingURL=file-manager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-manager.d.ts","sourceRoot":"","sources":["../../src/entry-points/file-manager.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,cAAc,2DAA2D,CAAC;AAC1E,cAAc,+DAA+D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useGridEditingScroll.d.ts","sourceRoot":"","sources":["../../../src/file-manager/useGridEditingScroll/useGridEditingScroll.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAEL,OAAO,EACP,QAAQ,EAET,MAAM,mBAAmB,CAAC;AAmC3B,kDAAkD;AAClD,MAAM,WAAW,2BAA2B;IAC1C,oKAAoK;IACpK,iBAAiB,CAAC,EAAE,CAClB,QAAQ,EAAE,QAAQ,CAAC,kBAAkB,CAAC,EAAE,KACrC,QAAQ,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC;CAC1C;AAOD,iDAAiD;AACjD,MAAM,WAAW,0BAA0B;IACzC,0DAA0D;IAC1D,mBAAmB,EAAE,CAAC,GAAG,EAAE,OAAO,CAAC,kBAAkB,CAAC,KAAK,IAAI,CAAC;IAChE,2GAA2G;IAC3G,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,oBAAoB,GAAI,yBAElC,2BAAgC,KAAG,0BAiFrC,CAAC"}
1
+ {"version":3,"file":"useGridEditingScroll.d.ts","sourceRoot":"","sources":["../../../src/file-manager/useGridEditingScroll/useGridEditingScroll.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,KAAK,EAEV,OAAO,EACP,QAAQ,EAET,MAAM,mBAAmB,CAAC;AAmC3B,kDAAkD;AAClD,MAAM,WAAW,2BAA2B;IAC1C,oKAAoK;IACpK,iBAAiB,CAAC,EAAE,CAClB,QAAQ,EAAE,QAAQ,CAAC,kBAAkB,CAAC,EAAE,KACrC,QAAQ,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC;CAC1C;AAOD,iDAAiD;AACjD,MAAM,WAAW,0BAA0B;IACzC,0DAA0D;IAC1D,mBAAmB,EAAE,CAAC,GAAG,EAAE,OAAO,CAAC,kBAAkB,CAAC,KAAK,IAAI,CAAC;IAChE,2GAA2G;IAC3G,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,oBAAoB,GAAI,yBAElC,2BAAgC,KAAG,0BAiFrC,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { n as e, t } from "./FileManagerAttachModal-rkWJ1bqK.js";
2
+ export { e as DialFileManagerShell, t as FileManagerAttachModal };