@epam/ai-dial-projects 1.4.0-dev.135 → 1.4.0-dev.139
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":"ProjectView.d.ts","sourceRoot":"","sources":["../../../src/components/ProjectView/ProjectView.tsx"],"names":[],"mappings":"AAuCA,OAAO,KAAK,EAEV,gBAAgB,EACjB,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"ProjectView.d.ts","sourceRoot":"","sources":["../../../src/components/ProjectView/ProjectView.tsx"],"names":[],"mappings":"AAuCA,OAAO,KAAK,EAEV,gBAAgB,EACjB,MAAM,iCAAiC,CAAC;AA6iBzC,2HAA2H;AAC3H,eAAO,MAAM,WAAW,wDAA6B,CAAC"}
|
package/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { ActionMenu as e, ConfirmationDialog as t, ConfirmationIdentityRow as n, DeleteConfirmationDialog as r, MARKDOWN_EDITOR_MAX_HEIGHT_CLASS_NAME as i, MARKDOWN_EDITOR_PREVIEW_LIST_CLASS_NAME as a, MarkdownRenderer as o, PROHIBITED_CONVERSATION_NAME_CHARS_RE as s, PanelEmptyState as c, RequestStatus as l, ResourceSummary as u, TextRefinementField as d, buildCssVars as f, getAttachmentTypeFromMime as p, inferMimeTypeFromPath as m, mergeClasses as h, useAvailableHeightCap as g, useIsMobile as _, useTextRefinement as v } from "@epam/ai-dial-chat-shared";
|
|
2
|
-
import { Button as y, ButtonAppearance as ee, ButtonDropdown as b, ButtonVariant as x, CaptionText as S, CardShell as C, ConfirmationPopupVariant as w, DIAL_ICON_SIZE as T, DIAL_KIT_ICON_STROKE as E, ElementSize as D, EllipsisTooltip as O, ErrorText as k, FileDropzone as te, FolderPath as A, GhostButton as j, GhostIconButton as ne, Highlight as M, Input as re, Label as N, LinkButton as P, LiveRegion as F, LiveRegionElement as ie, LiveRegionPoliteness as
|
|
3
|
-
import { IconArrowNarrowLeft as z, IconArrowsSort as le, IconDotsVertical as ue, IconDownload as de, IconPencilMinus as fe, IconPin as pe, IconPinFilled as B, IconPlus as me, IconShare as he, IconSparkles as
|
|
4
|
-
import { Suspense as
|
|
2
|
+
import { Button as y, ButtonAppearance as ee, ButtonDropdown as b, ButtonVariant as x, CaptionText as S, CardShell as C, ConfirmationPopupVariant as w, DIAL_ICON_SIZE as T, DIAL_KIT_ICON_STROKE as E, ElementSize as D, EllipsisTooltip as O, ErrorText as k, FileDropzone as te, FolderPath as A, GhostButton as j, GhostIconButton as ne, Highlight as M, Input as re, Label as N, LinkButton as P, LiveRegion as F, LiveRegionElement as ie, LiveRegionPoliteness as ae, MenuItemMark as I, NeutralButton as L, Popup as R, PopupSize as oe, Search as se, Spinner as ce } from "@epam/ai-dial-ui-kit";
|
|
3
|
+
import { IconArrowNarrowLeft as z, IconArrowsSort as le, IconDotsVertical as ue, IconDownload as de, IconPencilMinus as fe, IconPin as pe, IconPinFilled as B, IconPlus as me, IconShare as he, IconSparkles as ge, IconTrashX as _e, IconUserOff as ve, IconWorldOff as ye, IconWorldShare as be, createReactComponent as xe } from "@tabler/icons-react";
|
|
4
|
+
import { Suspense as Se, lazy as V, memo as H, useCallback as U, useEffect as Ce, useId as W, useMemo as G, useRef as K, useState as q } from "react";
|
|
5
5
|
import { Fragment as we, jsx as J, jsxs as Y } from "react/jsx-runtime";
|
|
6
6
|
import { AttachmentCard as Te, FileDndOverlay as Ee } from "@epam/ai-dial-attachment-input";
|
|
7
|
-
import { BuilderFormActionsOrder as De, BuilderFormContainer as
|
|
8
|
-
import { LazyMarkdownEditor as
|
|
7
|
+
import { BuilderFormActionsOrder as De, BuilderFormContainer as Oe } from "@epam/ai-dial-builder-form";
|
|
8
|
+
import { LazyMarkdownEditor as ke } from "@epam/ai-dial-ui-kit/editors";
|
|
9
9
|
//#region src/types/projects-sort-key.ts
|
|
10
|
-
var
|
|
10
|
+
var Ae = /* @__PURE__ */ function(e) {
|
|
11
11
|
return e.Newest = "newest", e.Oldest = "oldest", e.NameAsc = "name-asc", e;
|
|
12
|
-
}({}),
|
|
12
|
+
}({}), X = (e, t) => {
|
|
13
13
|
let n = t.trim().toLocaleLowerCase();
|
|
14
14
|
return n ? e.filter((e) => e.name.toLocaleLowerCase().includes(n)) : e;
|
|
15
15
|
}, je = (e, t, n) => {
|
|
@@ -17,8 +17,8 @@ var ke = /* @__PURE__ */ function(e) {
|
|
|
17
17
|
sensitivity: "base",
|
|
18
18
|
numeric: !0
|
|
19
19
|
}), i = (e, t) => r.compare(e.name, t.name), a = (e, t) => Number(t.isPinned ?? !1) - Number(e.isPinned ?? !1);
|
|
20
|
-
if (t ===
|
|
21
|
-
let o = t ===
|
|
20
|
+
if (t === Ae.NameAsc) return [...e].sort((e, t) => a(e, t) || i(e, t));
|
|
21
|
+
let o = t === Ae.Oldest ? 1 : -1;
|
|
22
22
|
return [...e].sort((e, t) => {
|
|
23
23
|
let n = a(e, t);
|
|
24
24
|
return n === 0 ? e.updatedAt == null && t.updatedAt == null ? i(e, t) : e.updatedAt == null ? 1 : t.updatedAt == null ? -1 : (e.updatedAt - t.updatedAt) * o || i(e, t) : n;
|
|
@@ -141,7 +141,7 @@ var ke = /* @__PURE__ */ function(e) {
|
|
|
141
141
|
"--pr-updated-at-text": C?.updatedAtText,
|
|
142
142
|
"--pr-path-text": C?.pathText,
|
|
143
143
|
"--pr-card-focus-outline": C?.cardFocusOutline
|
|
144
|
-
}), P = _(),
|
|
144
|
+
}), P = _(), ae = G(() => Date.now(), [e]), L = u.trim(), R = r.length > 0, oe = R && e.length === 0, z = G(() => je(X(e, u), p, v), [
|
|
145
145
|
e,
|
|
146
146
|
u,
|
|
147
147
|
p,
|
|
@@ -149,7 +149,7 @@ var ke = /* @__PURE__ */ function(e) {
|
|
|
149
149
|
]), ue = g.sortOptions.find((e) => e.value === p)?.label ?? g.sortLabel, de = G(() => g.sortOptions.map((e) => ({
|
|
150
150
|
key: e.value,
|
|
151
151
|
label: e.label,
|
|
152
|
-
mark:
|
|
152
|
+
mark: I.Check,
|
|
153
153
|
checked: e.value === p,
|
|
154
154
|
onClick: () => m(e.value)
|
|
155
155
|
})), [
|
|
@@ -159,7 +159,7 @@ var ke = /* @__PURE__ */ function(e) {
|
|
|
159
159
|
]), fe = (e) => {
|
|
160
160
|
d(e ?? "");
|
|
161
161
|
}, pe = () => {
|
|
162
|
-
if (!t) return n ? g.errorLabel :
|
|
162
|
+
if (!t) return n ? g.errorLabel : R ? g.incompleteLabel : e.length === 0 ? g.emptyStateLabel : z.length === 0 ? g.noResultsLabel : g.resultCountLabel(z.length);
|
|
163
163
|
}, B = (e, t) => a ? /* @__PURE__ */ J(y, {
|
|
164
164
|
label: g.createProjectLabel,
|
|
165
165
|
variant: e,
|
|
@@ -178,18 +178,18 @@ var ke = /* @__PURE__ */ function(e) {
|
|
|
178
178
|
label: g.emptyStateLabel,
|
|
179
179
|
description: g.emptyStateDescription,
|
|
180
180
|
action: B(x.Secondary, "mt-2"),
|
|
181
|
-
containerClassName:
|
|
181
|
+
containerClassName: _e,
|
|
182
182
|
labelClassName: "mt-3",
|
|
183
183
|
descriptionClassName: re
|
|
184
184
|
}) : z.length === 0 ? /* @__PURE__ */ J(c, {
|
|
185
185
|
label: g.noResultsLabel,
|
|
186
|
-
containerClassName:
|
|
186
|
+
containerClassName: _e,
|
|
187
187
|
labelClassName: "mt-3"
|
|
188
188
|
}) : /* @__PURE__ */ J("ul", {
|
|
189
189
|
className: "m-0 grid w-full min-w-0 list-none grid-cols-1 gap-4 p-0 desktop:grid-cols-3 desktop:gap-5",
|
|
190
190
|
children: z.map((e) => /* @__PURE__ */ J(Re, {
|
|
191
191
|
project: e,
|
|
192
|
-
searchQuery:
|
|
192
|
+
searchQuery: L,
|
|
193
193
|
sourceLabel: g.sourceLabels[e.source],
|
|
194
194
|
folderPathLabel: g.folderPathLabel,
|
|
195
195
|
pinnedLabel: g.pinnedLabel ?? "Pinned",
|
|
@@ -197,14 +197,14 @@ var ke = /* @__PURE__ */ function(e) {
|
|
|
197
197
|
onTogglePin: o,
|
|
198
198
|
href: l?.(e.id),
|
|
199
199
|
onOpen: s,
|
|
200
|
-
now:
|
|
200
|
+
now: ae,
|
|
201
201
|
locale: v,
|
|
202
202
|
updatedAtClassName: M,
|
|
203
203
|
titleClassName: te,
|
|
204
204
|
pathLabelClassName: A,
|
|
205
205
|
pathLeafClassName: ne
|
|
206
206
|
}, e.id))
|
|
207
|
-
}),
|
|
207
|
+
}), ge = t || n || oe, _e = "mt-6 p-3 desktop:mt-0";
|
|
208
208
|
return /* @__PURE__ */ Y("div", {
|
|
209
209
|
style: N,
|
|
210
210
|
className: h("relative flex size-full min-h-0 min-w-0 flex-1 flex-col", ze.container),
|
|
@@ -266,7 +266,7 @@ var ke = /* @__PURE__ */ function(e) {
|
|
|
266
266
|
}),
|
|
267
267
|
/* @__PURE__ */ Y("div", {
|
|
268
268
|
className: "flex w-full min-w-0 flex-1 flex-col items-center gap-4 px-4 pb-20 desktop:gap-5 desktop:px-8 desktop:pt-6 desktop:pb-8",
|
|
269
|
-
children: [
|
|
269
|
+
children: [R && !t && !n && !oe && /* @__PURE__ */ Y("div", {
|
|
270
270
|
className: "flex w-full max-w-[1116px] flex-wrap items-center gap-3",
|
|
271
271
|
children: [/* @__PURE__ */ J("p", {
|
|
272
272
|
className: h(k, ze.subtitle),
|
|
@@ -276,7 +276,7 @@ var ke = /* @__PURE__ */ function(e) {
|
|
|
276
276
|
onClick: i
|
|
277
277
|
})]
|
|
278
278
|
}), /* @__PURE__ */ J("div", {
|
|
279
|
-
className: h("flex w-full max-w-[1116px] min-w-0 flex-col items-center",
|
|
279
|
+
className: h("flex w-full max-w-[1116px] min-w-0 flex-col items-center", ge && "flex-1 justify-center"),
|
|
280
280
|
children: he()
|
|
281
281
|
})]
|
|
282
282
|
})
|
|
@@ -365,15 +365,15 @@ var ke = /* @__PURE__ */ function(e) {
|
|
|
365
365
|
dropZone: "_dropZone_ru73x_11",
|
|
366
366
|
label: "_label_ru73x_20",
|
|
367
367
|
link: "_link_ru73x_24"
|
|
368
|
-
}, lt =
|
|
369
|
-
let ne = W(), M = W(), P = W(),
|
|
368
|
+
}, lt = V(async () => ({ default: (await ke()).MarkdownEditor })), ut = (e) => `Preview ${e}`, dt = (e) => `Download ${e}`, ft = "The project name can't be changed after creation", pt = ({ values: e, errors: t, onFieldChange: n, contextFiles: r, onContextFilesChange: o, onContextFileClick: s, onContextFileDownload: c, selectedContextFileId: l, allowedExtensions: u, maxFileBytes: p, maxTotalBytes: m, onPickFromFileManager: _, onRefineInstructions: y, onBack: ee, onCancel: b, onSubmit: x, isSubmitting: C = !1, isNameReadOnly: w = !1, labels: D, markdownEditorTheme: O, className: A, styles: j }) => {
|
|
369
|
+
let ne = W(), M = W(), P = W(), I = W(), L = W(), R = W(), oe = K(null), se = g(), [le, ue] = q(!1), [de, fe] = q([]), [pe, B] = q(""), me = v({
|
|
370
370
|
value: e.instructions,
|
|
371
371
|
onChange: (e) => n("instructions", e),
|
|
372
372
|
onRefine: y,
|
|
373
373
|
disabled: C
|
|
374
|
-
}), he = me.isPending,
|
|
375
|
-
t.name ?
|
|
376
|
-
let
|
|
374
|
+
}), he = me.isPending, ge = Ze(e.name), _e = D.nameReadOnlyHint ?? ft, ve = t.name ?? (le && ge != null ? D.nameErrors[ge] : void 0), ye = !w && !!t.name, be = ge != null || ye || C || he, xe;
|
|
375
|
+
t.name ? xe = M : ve && (xe = P);
|
|
376
|
+
let V = [w && I, xe].filter(Boolean).join(" ") || void 0;
|
|
377
377
|
Ce(() => {
|
|
378
378
|
t.name && !w && oe.current?.focus();
|
|
379
379
|
}, [t.name, w]);
|
|
@@ -385,7 +385,7 @@ var ke = /* @__PURE__ */ function(e) {
|
|
|
385
385
|
maxTotalBytes: m
|
|
386
386
|
});
|
|
387
387
|
fe(n), t.length > 0 && o([...r, ...t]), B([t.length > 0 ? D.filesAddedStatus(t.length) : "", ...n.map(({ name: e, reason: t }) => D.fileRejections[t](e))].filter(Boolean).join(" "));
|
|
388
|
-
}, { isDragActive: we, handlers:
|
|
388
|
+
}, { isDragActive: we, handlers: ke } = Ue(U), Ae = D.openFileLabel ?? ut, X = D.downloadFileLabel ?? dt, je = (e) => {
|
|
389
389
|
let t = r.find((t) => t.id === e);
|
|
390
390
|
o(r.filter((t) => t.id !== e)), fe([]), t && B(D.fileRemovedStatus(t.name));
|
|
391
391
|
}, Me = async (e) => {
|
|
@@ -394,7 +394,7 @@ var ke = /* @__PURE__ */ function(e) {
|
|
|
394
394
|
e && U(e);
|
|
395
395
|
} catch {}
|
|
396
396
|
}, Ne = () => {
|
|
397
|
-
|
|
397
|
+
be || x();
|
|
398
398
|
}, { colors: Z, typography: Pe, contextListClassName: Fe } = j ?? {}, Q = Pe?.titleClassName ?? "dial-h1-text", Ie = h(Pe?.labelClassName ?? "dial-tiny-semi-text", ct.label), Le = Pe?.helperClassName ?? "dial-tiny-text", Re = f({
|
|
399
399
|
"--pcf-label-text": Z?.labelText,
|
|
400
400
|
"--pcf-link-text": Z?.linkText,
|
|
@@ -410,7 +410,7 @@ var ke = /* @__PURE__ */ function(e) {
|
|
|
410
410
|
});
|
|
411
411
|
return /* @__PURE__ */ Y("div", {
|
|
412
412
|
className: h("relative flex h-full min-h-0 w-full", A),
|
|
413
|
-
...
|
|
413
|
+
...ke,
|
|
414
414
|
children: [
|
|
415
415
|
/* @__PURE__ */ J(Ee, {
|
|
416
416
|
isVisible: we,
|
|
@@ -419,7 +419,7 @@ var ke = /* @__PURE__ */ function(e) {
|
|
|
419
419
|
subtitle: D.dropOverlaySubtitle
|
|
420
420
|
}
|
|
421
421
|
}),
|
|
422
|
-
/* @__PURE__ */ J(
|
|
422
|
+
/* @__PURE__ */ J(Oe, {
|
|
423
423
|
labels: {
|
|
424
424
|
title: D.title,
|
|
425
425
|
backButtonLabel: D.backLabel,
|
|
@@ -431,7 +431,7 @@ var ke = /* @__PURE__ */ function(e) {
|
|
|
431
431
|
onCancel: b,
|
|
432
432
|
onSubmit: Ne,
|
|
433
433
|
isCancelDisabled: C,
|
|
434
|
-
isSubmitDisabled:
|
|
434
|
+
isSubmitDisabled: be,
|
|
435
435
|
isSubmitting: C,
|
|
436
436
|
footerActionsOrder: De.SubmitFirst,
|
|
437
437
|
backIcon: /* @__PURE__ */ J(z, {
|
|
@@ -471,32 +471,32 @@ var ke = /* @__PURE__ */ function(e) {
|
|
|
471
471
|
"aria-required": !0,
|
|
472
472
|
readOnly: w,
|
|
473
473
|
disabled: w,
|
|
474
|
-
tooltipText: w ?
|
|
475
|
-
invalid: !!
|
|
476
|
-
"aria-invalid": !!
|
|
477
|
-
"aria-describedby":
|
|
474
|
+
tooltipText: w ? _e : void 0,
|
|
475
|
+
invalid: !!ve,
|
|
476
|
+
"aria-invalid": !!ve,
|
|
477
|
+
"aria-describedby": V
|
|
478
478
|
}),
|
|
479
479
|
w && /* @__PURE__ */ J(S, {
|
|
480
|
-
id:
|
|
480
|
+
id: I,
|
|
481
481
|
className: Le,
|
|
482
|
-
text:
|
|
482
|
+
text: _e
|
|
483
483
|
}),
|
|
484
484
|
/* @__PURE__ */ J(k, {
|
|
485
|
-
announce:
|
|
485
|
+
announce: ae.Assertive,
|
|
486
486
|
id: M,
|
|
487
487
|
className: Le,
|
|
488
488
|
text: t.name ?? ""
|
|
489
489
|
}),
|
|
490
|
-
|
|
490
|
+
ve && !t.name && /* @__PURE__ */ J(k, {
|
|
491
491
|
id: P,
|
|
492
492
|
className: Le,
|
|
493
|
-
text:
|
|
493
|
+
text: ve
|
|
494
494
|
})
|
|
495
495
|
]
|
|
496
496
|
}),
|
|
497
497
|
/* @__PURE__ */ J(d, {
|
|
498
498
|
isEnabled: !!y,
|
|
499
|
-
fieldId:
|
|
499
|
+
fieldId: L,
|
|
500
500
|
label: D.instructionsLabel,
|
|
501
501
|
labelClassName: Ie,
|
|
502
502
|
labels: ze,
|
|
@@ -505,16 +505,16 @@ var ke = /* @__PURE__ */ function(e) {
|
|
|
505
505
|
children: /* @__PURE__ */ Y("div", {
|
|
506
506
|
className: "flex flex-1 flex-col gap-2",
|
|
507
507
|
children: [!y && /* @__PURE__ */ J(N, {
|
|
508
|
-
htmlFor:
|
|
508
|
+
htmlFor: L,
|
|
509
509
|
className: Ie,
|
|
510
510
|
label: D.instructionsLabel
|
|
511
511
|
}), /* @__PURE__ */ J("div", {
|
|
512
512
|
ref: se,
|
|
513
513
|
className: h("w-full", i, a),
|
|
514
|
-
children: /* @__PURE__ */ J(
|
|
514
|
+
children: /* @__PURE__ */ J(Se, {
|
|
515
515
|
fallback: /* @__PURE__ */ J(ce, { ariaLabel: D.editorLoadingAriaLabel ?? "Loading editor" }),
|
|
516
516
|
children: /* @__PURE__ */ J(lt, {
|
|
517
|
-
id:
|
|
517
|
+
id: L,
|
|
518
518
|
value: e.instructions,
|
|
519
519
|
onChange: (e) => {
|
|
520
520
|
me.reset(), n("instructions", e);
|
|
@@ -528,11 +528,11 @@ var ke = /* @__PURE__ */ function(e) {
|
|
|
528
528
|
})
|
|
529
529
|
}),
|
|
530
530
|
/* @__PURE__ */ Y("section", {
|
|
531
|
-
"aria-labelledby":
|
|
531
|
+
"aria-labelledby": R,
|
|
532
532
|
className: "flex flex-col gap-2",
|
|
533
533
|
children: [
|
|
534
534
|
/* @__PURE__ */ J("h2", {
|
|
535
|
-
id:
|
|
535
|
+
id: R,
|
|
536
536
|
className: Ie,
|
|
537
537
|
children: D.contextLabel
|
|
538
538
|
}),
|
|
@@ -550,7 +550,7 @@ var ke = /* @__PURE__ */ function(e) {
|
|
|
550
550
|
}),
|
|
551
551
|
/* @__PURE__ */ J(F, {
|
|
552
552
|
visuallyHidden: !0,
|
|
553
|
-
politeness:
|
|
553
|
+
politeness: ae.Assertive,
|
|
554
554
|
children: Be
|
|
555
555
|
}),
|
|
556
556
|
r.length > 0 && /* @__PURE__ */ J("ul", {
|
|
@@ -565,8 +565,8 @@ var ke = /* @__PURE__ */ function(e) {
|
|
|
565
565
|
onDownload: c,
|
|
566
566
|
labels: {
|
|
567
567
|
removeLabel: D.removeFileLabel(e.name),
|
|
568
|
-
clickLabel:
|
|
569
|
-
downloadLabel:
|
|
568
|
+
clickLabel: Ae(e.name),
|
|
569
|
+
downloadLabel: X(e.name)
|
|
570
570
|
}
|
|
571
571
|
})
|
|
572
572
|
}, e.id))
|
|
@@ -583,7 +583,7 @@ var ke = /* @__PURE__ */ function(e) {
|
|
|
583
583
|
})
|
|
584
584
|
]
|
|
585
585
|
});
|
|
586
|
-
}, mt =
|
|
586
|
+
}, mt = xe("outline", "pin-off", "PinOff", [
|
|
587
587
|
["path", {
|
|
588
588
|
d: "M3 3l18 18",
|
|
589
589
|
key: "svg-0"
|
|
@@ -625,15 +625,15 @@ var ke = /* @__PURE__ */ function(e) {
|
|
|
625
625
|
contentType: e.contentType,
|
|
626
626
|
type: p(e.contentType),
|
|
627
627
|
status: l.Idle
|
|
628
|
-
}), gt = (e) => `Download ${e}`, _t = H(({ project: t, isLoading: n = !1, hasError: r = !1, isNotFound: i = !1,
|
|
629
|
-
let { colors: I, typography:
|
|
628
|
+
}), gt = (e) => `Download ${e}`, _t = "You no longer have access to this project", vt = "The owner may have stopped sharing it or deleted it.", yt = H(({ project: t, isLoading: n = !1, hasError: r = !1, isNotFound: i = !1, isAccessDenied: a = !1, isPinned: s, isPinPending: l = !1, contextSearchQuery: u, onContextSearchQueryChange: d, onBack: p, onTogglePin: m, onPublish: g, onUnpublish: _, onEdit: v, onShare: y, onRevokeAccess: ee, onActionMenuOpenChange: b, onDelete: x, onRemoveFromMyList: S, onDownload: C, onContextFileClick: w, onContextFileDownload: D, selectedContextFileId: k, isDetailsStacked: te = !1, onRetry: A, onBrowseProjects: M, mainContent: re, mainContentLabel: N = "Project content", labels: P, styles: ae }) => {
|
|
629
|
+
let { colors: I, typography: R, contextListClassName: oe } = ae ?? {}, le = P.downloadFileLabel ?? gt, B = P.accessDeniedLabel ?? _t, me = P.accessDeniedDescription ?? vt, ge = R?.titleClassName ?? "dial-h1-text", xe = R?.panelTitleClassName ?? "dial-body-semi-text", Se = R?.sectionTitleClassName ?? "dial-tiny-text", V = R?.bodyClassName ?? "dial-small-text", H = R?.helperClassName ?? "dial-tiny-text", U = R?.instructionsHeadingClassName ?? "dial-small-semi-text", Ce = f({
|
|
630
630
|
"--pv-bg": I?.background,
|
|
631
631
|
"--pv-border": I?.border,
|
|
632
632
|
"--pv-heading-text": I?.headingText,
|
|
633
633
|
"--pv-body-text": I?.bodyText,
|
|
634
634
|
"--pv-secondary-text": I?.secondaryText
|
|
635
|
-
}),
|
|
636
|
-
let e = h("mb-1 mt-3 first:mt-0",
|
|
635
|
+
}), K = G(() => t?.contextFiles ?? [], [t]), q = G(() => st(K, u), [K, u]), Ee = u.trim(), De = W(), Oe = G(() => {
|
|
636
|
+
let e = h("mb-1 mt-3 first:mt-0", U);
|
|
637
637
|
return {
|
|
638
638
|
h1: e,
|
|
639
639
|
h2: e,
|
|
@@ -645,68 +645,68 @@ var ke = /* @__PURE__ */ function(e) {
|
|
|
645
645
|
ul: V,
|
|
646
646
|
ol: V
|
|
647
647
|
};
|
|
648
|
-
}, [V,
|
|
649
|
-
|
|
648
|
+
}, [V, U]), ke = P.unpublishLabel ?? "Unpublish", Ae = () => {
|
|
649
|
+
l || m();
|
|
650
650
|
}, X = (e) => /* @__PURE__ */ J(e, {
|
|
651
651
|
size: T.SM,
|
|
652
652
|
"aria-hidden": !0,
|
|
653
653
|
stroke: E
|
|
654
|
-
}),
|
|
654
|
+
}), je = (e) => {
|
|
655
655
|
let t = [];
|
|
656
656
|
return e && t.push({
|
|
657
657
|
key: "pin",
|
|
658
|
-
label:
|
|
659
|
-
icon: X(
|
|
660
|
-
onClick:
|
|
661
|
-
}), e &&
|
|
658
|
+
label: s ? P.unpinLabel : P.pinLabel,
|
|
659
|
+
icon: X(s ? mt : pe),
|
|
660
|
+
onClick: Ae
|
|
661
|
+
}), e && _ ? t.push({
|
|
662
662
|
key: "unpublish",
|
|
663
|
-
label:
|
|
664
|
-
icon: X(ve),
|
|
665
|
-
onClick: g
|
|
666
|
-
}) : e && m && t.push({
|
|
667
|
-
key: "publish",
|
|
668
|
-
label: N.publishLabel,
|
|
663
|
+
label: ke,
|
|
669
664
|
icon: X(ye),
|
|
670
|
-
onClick:
|
|
671
|
-
})
|
|
665
|
+
onClick: _
|
|
666
|
+
}) : e && g && t.push({
|
|
667
|
+
key: "publish",
|
|
668
|
+
label: P.publishLabel,
|
|
669
|
+
icon: X(be),
|
|
670
|
+
onClick: g
|
|
671
|
+
}), e && v && t.push({
|
|
672
672
|
key: "edit",
|
|
673
|
-
label:
|
|
673
|
+
label: P.editLabel,
|
|
674
674
|
icon: X(fe),
|
|
675
|
-
onClick:
|
|
676
|
-
}),
|
|
675
|
+
onClick: v
|
|
676
|
+
}), y && t.push({
|
|
677
677
|
key: "share",
|
|
678
|
-
label:
|
|
678
|
+
label: P.shareLabel,
|
|
679
679
|
icon: X(he),
|
|
680
|
-
onClick:
|
|
680
|
+
onClick: y
|
|
681
681
|
}), t.push({
|
|
682
682
|
key: "download",
|
|
683
|
-
label:
|
|
683
|
+
label: P.downloadLabel,
|
|
684
684
|
icon: X(de),
|
|
685
|
-
onClick:
|
|
686
|
-
}),
|
|
685
|
+
onClick: C
|
|
686
|
+
}), ee && t.push({
|
|
687
687
|
key: "revokeAccess",
|
|
688
|
-
label:
|
|
688
|
+
label: P.revokeAccessLabel ?? "Revoke access",
|
|
689
|
+
icon: X(ve),
|
|
690
|
+
onClick: ee
|
|
691
|
+
}), S && t.push({
|
|
692
|
+
key: "removeFromMyList",
|
|
693
|
+
label: P.removeFromMyListLabel ?? "Remove from My List",
|
|
689
694
|
icon: X(_e),
|
|
690
|
-
onClick:
|
|
695
|
+
onClick: S
|
|
691
696
|
}), x && t.push({
|
|
692
|
-
key: "removeFromMyList",
|
|
693
|
-
label: N.removeFromMyListLabel ?? "Remove from My List",
|
|
694
|
-
icon: X(ge),
|
|
695
|
-
onClick: x
|
|
696
|
-
}), b && t.push({
|
|
697
697
|
key: "delete",
|
|
698
|
-
label:
|
|
699
|
-
icon: X(
|
|
698
|
+
label: P.deleteLabel,
|
|
699
|
+
icon: X(_e),
|
|
700
700
|
danger: !0,
|
|
701
|
-
onClick:
|
|
701
|
+
onClick: x
|
|
702
702
|
}), t;
|
|
703
|
-
},
|
|
703
|
+
}, Me = (n, r) => /* @__PURE__ */ J("div", {
|
|
704
704
|
className: r,
|
|
705
705
|
children: /* @__PURE__ */ J(e, {
|
|
706
|
-
onOpenChange:
|
|
707
|
-
items:
|
|
708
|
-
title: n ? t?.name ??
|
|
709
|
-
closeLabel:
|
|
706
|
+
onOpenChange: b,
|
|
707
|
+
items: je(n),
|
|
708
|
+
title: n ? t?.name ?? P.moreActionsLabel : P.moreActionsLabel,
|
|
709
|
+
closeLabel: P.closeLabel,
|
|
710
710
|
matchReferenceWidth: !1,
|
|
711
711
|
listClassName: "w-[200px]",
|
|
712
712
|
children: /* @__PURE__ */ J(ne, {
|
|
@@ -715,64 +715,80 @@ var ke = /* @__PURE__ */ function(e) {
|
|
|
715
715
|
"aria-hidden": !0,
|
|
716
716
|
stroke: E
|
|
717
717
|
}),
|
|
718
|
-
"aria-label":
|
|
718
|
+
"aria-label": P.moreActionsLabel
|
|
719
719
|
})
|
|
720
720
|
})
|
|
721
|
-
}),
|
|
721
|
+
}), Ne = () => n ? /* @__PURE__ */ J(ce, { ariaLabel: P.loadingAriaLabel ?? "Loading project" }) : a ? /* @__PURE__ */ Y("div", {
|
|
722
|
+
className: "flex flex-col items-center gap-3 text-center",
|
|
723
|
+
children: [/* @__PURE__ */ Y("div", {
|
|
724
|
+
className: "flex flex-col items-center gap-1",
|
|
725
|
+
children: [/* @__PURE__ */ J("p", {
|
|
726
|
+
"aria-hidden": !0,
|
|
727
|
+
className: h(V, $.body),
|
|
728
|
+
children: B
|
|
729
|
+
}), /* @__PURE__ */ J("p", {
|
|
730
|
+
className: h(H, $.secondary),
|
|
731
|
+
children: me
|
|
732
|
+
})]
|
|
733
|
+
}), /* @__PURE__ */ J(j, {
|
|
734
|
+
label: P.browseProjectsLabel,
|
|
735
|
+
onClick: M
|
|
736
|
+
})]
|
|
737
|
+
}) : r ? /* @__PURE__ */ Y("div", {
|
|
722
738
|
className: "flex flex-col items-center gap-3",
|
|
723
739
|
children: [/* @__PURE__ */ J("p", {
|
|
724
740
|
"aria-hidden": !0,
|
|
725
741
|
className: h(V, $.body),
|
|
726
|
-
children:
|
|
742
|
+
children: P.errorLabel
|
|
727
743
|
}), /* @__PURE__ */ J(j, {
|
|
728
|
-
label:
|
|
729
|
-
onClick:
|
|
744
|
+
label: P.retryLabel,
|
|
745
|
+
onClick: A
|
|
730
746
|
})]
|
|
731
747
|
}) : /* @__PURE__ */ Y("div", {
|
|
732
748
|
className: "flex flex-col items-center gap-3",
|
|
733
749
|
children: [/* @__PURE__ */ J("p", {
|
|
734
750
|
className: h(V, $.body),
|
|
735
|
-
children:
|
|
751
|
+
children: P.notFoundLabel
|
|
736
752
|
}), /* @__PURE__ */ J(j, {
|
|
737
|
-
label:
|
|
738
|
-
onClick:
|
|
753
|
+
label: P.browseProjectsLabel,
|
|
754
|
+
onClick: M
|
|
739
755
|
})]
|
|
740
|
-
});
|
|
741
|
-
if (n || r || i || t == null) return /* @__PURE__ */ Y("div", {
|
|
742
|
-
style:
|
|
756
|
+
}), Z = null;
|
|
757
|
+
if (!n && a ? Z = B : !n && r && (Z = P.errorLabel), n || a || r || i || t == null) return /* @__PURE__ */ Y("div", {
|
|
758
|
+
style: Ce,
|
|
743
759
|
className: h("flex h-full w-full min-w-0 items-center justify-center p-4", $.container),
|
|
744
760
|
children: [/* @__PURE__ */ J(F, {
|
|
745
761
|
visuallyHidden: !0,
|
|
746
|
-
children:
|
|
747
|
-
}),
|
|
762
|
+
children: Z
|
|
763
|
+
}), Ne()]
|
|
748
764
|
});
|
|
749
|
-
let
|
|
765
|
+
let Pe = () => K.length === 0 ? /* @__PURE__ */ J(c, { label: P.emptyContextLabel }) : /* @__PURE__ */ Y(we, { children: [
|
|
750
766
|
/* @__PURE__ */ J("div", {
|
|
751
767
|
role: "search",
|
|
752
768
|
children: /* @__PURE__ */ J(se, {
|
|
753
|
-
value:
|
|
754
|
-
onChange: (e) =>
|
|
755
|
-
placeholder:
|
|
756
|
-
clearLabel:
|
|
757
|
-
"aria-label":
|
|
769
|
+
value: u,
|
|
770
|
+
onChange: (e) => d(e ?? ""),
|
|
771
|
+
placeholder: P.contextSearchPlaceholder,
|
|
772
|
+
clearLabel: P.clearSearchLabel,
|
|
773
|
+
"aria-label": P.contextSearchAriaLabel
|
|
758
774
|
})
|
|
759
775
|
}),
|
|
760
|
-
|
|
761
|
-
className: h(
|
|
762
|
-
children:
|
|
776
|
+
q.length === 0 ? /* @__PURE__ */ J("p", {
|
|
777
|
+
className: h(H, $.secondary),
|
|
778
|
+
children: P.noContextMatchesLabel
|
|
763
779
|
}) : /* @__PURE__ */ J("ul", {
|
|
764
|
-
className: h("m-0 flex min-w-0 list-none flex-wrap gap-2 p-0 pt-2",
|
|
765
|
-
children:
|
|
780
|
+
className: h("m-0 flex min-w-0 list-none flex-wrap gap-2 p-0 pt-2", oe),
|
|
781
|
+
children: q.map((e) => /* @__PURE__ */ J("li", {
|
|
766
782
|
className: "min-w-0",
|
|
767
783
|
children: /* @__PURE__ */ J(Te, {
|
|
768
784
|
attachment: ht(e),
|
|
769
|
-
searchQuery:
|
|
770
|
-
onClick:
|
|
771
|
-
onDownload:
|
|
772
|
-
isSelected: e.name ===
|
|
785
|
+
searchQuery: Ee,
|
|
786
|
+
onClick: w,
|
|
787
|
+
onDownload: D,
|
|
788
|
+
isSelected: e.name === k,
|
|
773
789
|
labels: {
|
|
774
|
-
clickLabel:
|
|
775
|
-
downloadLabel:
|
|
790
|
+
clickLabel: P.openFileLabel(e.name),
|
|
791
|
+
downloadLabel: le(e.name)
|
|
776
792
|
}
|
|
777
793
|
})
|
|
778
794
|
}, e.name))
|
|
@@ -780,11 +796,11 @@ var ke = /* @__PURE__ */ function(e) {
|
|
|
780
796
|
/* @__PURE__ */ J(F, {
|
|
781
797
|
visuallyHidden: !0,
|
|
782
798
|
as: ie.Span,
|
|
783
|
-
children:
|
|
799
|
+
children: Ee === "" ? "" : P.contextResultCountLabel(q.length)
|
|
784
800
|
})
|
|
785
|
-
] }),
|
|
801
|
+
] }), Fe = !te;
|
|
786
802
|
return /* @__PURE__ */ Y("div", {
|
|
787
|
-
style:
|
|
803
|
+
style: Ce,
|
|
788
804
|
className: h("flex size-full min-h-0 min-w-0 flex-1 flex-col", $.container),
|
|
789
805
|
children: [/* @__PURE__ */ Y("header", {
|
|
790
806
|
className: h("flex min-w-0 shrink-0 items-center gap-2 px-4 py-3 desktop:px-8 desktop:py-4", $.header),
|
|
@@ -796,80 +812,80 @@ var ke = /* @__PURE__ */ function(e) {
|
|
|
796
812
|
"aria-hidden": !0,
|
|
797
813
|
stroke: E
|
|
798
814
|
}),
|
|
799
|
-
"aria-label":
|
|
800
|
-
onClick:
|
|
815
|
+
"aria-label": P.backLabel,
|
|
816
|
+
onClick: p
|
|
801
817
|
}),
|
|
802
818
|
/* @__PURE__ */ J("h1", {
|
|
803
|
-
className: h("min-w-0 flex-1",
|
|
819
|
+
className: h("min-w-0 flex-1", ge, $.title),
|
|
804
820
|
children: /* @__PURE__ */ J(O, { text: t.name })
|
|
805
821
|
}),
|
|
806
822
|
/* @__PURE__ */ J(j, {
|
|
807
|
-
label:
|
|
808
|
-
iconBefore: J(
|
|
823
|
+
label: s ? P.unpinLabel : P.pinLabel,
|
|
824
|
+
iconBefore: J(s ? mt : pe, {
|
|
809
825
|
size: T.MD,
|
|
810
826
|
"aria-hidden": !0,
|
|
811
827
|
stroke: E
|
|
812
828
|
}),
|
|
813
|
-
"aria-disabled":
|
|
814
|
-
onClick:
|
|
829
|
+
"aria-disabled": l || void 0,
|
|
830
|
+
onClick: Ae,
|
|
815
831
|
className: "hidden shrink-0 desktop:inline-flex"
|
|
816
832
|
}),
|
|
817
|
-
|
|
818
|
-
label:
|
|
819
|
-
iconBefore: /* @__PURE__ */ J(
|
|
833
|
+
_ && /* @__PURE__ */ J(L, {
|
|
834
|
+
label: ke,
|
|
835
|
+
iconBefore: /* @__PURE__ */ J(ye, {
|
|
820
836
|
size: T.MD,
|
|
821
837
|
"aria-hidden": !0,
|
|
822
838
|
stroke: E
|
|
823
839
|
}),
|
|
824
|
-
onClick:
|
|
840
|
+
onClick: _,
|
|
825
841
|
className: "hidden shrink-0 desktop:inline-flex"
|
|
826
842
|
}),
|
|
827
|
-
!
|
|
828
|
-
label:
|
|
829
|
-
iconBefore: /* @__PURE__ */ J(
|
|
843
|
+
!_ && g && /* @__PURE__ */ J(L, {
|
|
844
|
+
label: P.publishLabel,
|
|
845
|
+
iconBefore: /* @__PURE__ */ J(be, {
|
|
830
846
|
size: T.MD,
|
|
831
847
|
"aria-hidden": !0,
|
|
832
848
|
stroke: E
|
|
833
849
|
}),
|
|
834
|
-
onClick:
|
|
850
|
+
onClick: g,
|
|
835
851
|
className: "hidden shrink-0 desktop:inline-flex"
|
|
836
852
|
}),
|
|
837
|
-
|
|
838
|
-
label:
|
|
853
|
+
v && /* @__PURE__ */ J(L, {
|
|
854
|
+
label: P.editLabel,
|
|
839
855
|
iconBefore: /* @__PURE__ */ J(fe, {
|
|
840
856
|
size: T.MD,
|
|
841
857
|
"aria-hidden": !0,
|
|
842
858
|
stroke: E
|
|
843
859
|
}),
|
|
844
|
-
onClick:
|
|
860
|
+
onClick: v,
|
|
845
861
|
className: "hidden shrink-0 desktop:inline-flex"
|
|
846
862
|
}),
|
|
847
|
-
|
|
848
|
-
|
|
863
|
+
Me(!1, "hidden desktop:block"),
|
|
864
|
+
Me(!0, "desktop:hidden")
|
|
849
865
|
]
|
|
850
866
|
}), /* @__PURE__ */ Y("div", {
|
|
851
|
-
className: h("flex min-h-0 min-w-0 flex-1 flex-col overflow-y-auto",
|
|
852
|
-
children: [
|
|
853
|
-
"aria-label":
|
|
854
|
-
className: h("flex min-w-0 flex-1 flex-col px-4 py-6 desktop:px-8",
|
|
867
|
+
className: h("flex min-h-0 min-w-0 flex-1 flex-col overflow-y-auto", Fe && "desktop:flex-row desktop:overflow-hidden", re == null && Fe && "desktop:justify-end"),
|
|
868
|
+
children: [re != null && /* @__PURE__ */ J("section", {
|
|
869
|
+
"aria-label": N,
|
|
870
|
+
className: h("flex min-w-0 flex-1 flex-col px-4 py-6 desktop:px-8", Fe && "desktop:overflow-y-auto"),
|
|
855
871
|
children: /* @__PURE__ */ J("div", {
|
|
856
872
|
className: "mx-auto flex w-full max-w-[748px] min-w-0 flex-col gap-5",
|
|
857
|
-
children:
|
|
873
|
+
children: re
|
|
858
874
|
})
|
|
859
875
|
}), /* @__PURE__ */ Y("aside", {
|
|
860
|
-
"aria-labelledby":
|
|
861
|
-
className: h("flex w-full min-w-0 flex-col gap-5 border-t px-4 py-6 desktop:px-8",
|
|
876
|
+
"aria-labelledby": De,
|
|
877
|
+
className: h("flex w-full min-w-0 flex-col gap-5 border-t px-4 py-6 desktop:px-8", Fe && "desktop:w-[488px] desktop:shrink-0 desktop:overflow-y-auto desktop:border-s desktop:border-t-0", $.panel),
|
|
862
878
|
children: [
|
|
863
879
|
/* @__PURE__ */ J("h2", {
|
|
864
|
-
id:
|
|
865
|
-
className: h(
|
|
866
|
-
children:
|
|
880
|
+
id: De,
|
|
881
|
+
className: h(xe, $.title),
|
|
882
|
+
children: P.detailsLabel
|
|
867
883
|
}),
|
|
868
884
|
t.description !== "" && /* @__PURE__ */ Y("section", {
|
|
869
885
|
className: "flex min-w-0 flex-col gap-1",
|
|
870
886
|
children: [/* @__PURE__ */ J("h3", {
|
|
871
|
-
className: h(
|
|
872
|
-
children:
|
|
887
|
+
className: h(Se, $.secondary),
|
|
888
|
+
children: P.descriptionLabel
|
|
873
889
|
}), /* @__PURE__ */ J("p", {
|
|
874
890
|
className: h("wrap-break-word whitespace-pre-line", V, $.body),
|
|
875
891
|
children: t.description
|
|
@@ -878,32 +894,32 @@ var ke = /* @__PURE__ */ function(e) {
|
|
|
878
894
|
t.instructions !== "" && /* @__PURE__ */ Y("section", {
|
|
879
895
|
className: "flex min-w-0 flex-col gap-1",
|
|
880
896
|
children: [/* @__PURE__ */ J("h3", {
|
|
881
|
-
className: h(
|
|
882
|
-
children:
|
|
897
|
+
className: h(Se, $.secondary),
|
|
898
|
+
children: P.instructionsLabel
|
|
883
899
|
}), /* @__PURE__ */ J("div", {
|
|
884
900
|
className: h("min-w-0 wrap-break-word", V, $.body),
|
|
885
901
|
children: /* @__PURE__ */ J(o, {
|
|
886
902
|
content: t.instructions,
|
|
887
|
-
classNames:
|
|
903
|
+
classNames: Oe
|
|
888
904
|
})
|
|
889
905
|
})]
|
|
890
906
|
}),
|
|
891
907
|
/* @__PURE__ */ Y("section", {
|
|
892
908
|
className: "flex min-w-0 flex-col gap-2",
|
|
893
909
|
children: [/* @__PURE__ */ J("h3", {
|
|
894
|
-
className: h(
|
|
895
|
-
children:
|
|
896
|
-
}),
|
|
910
|
+
className: h(Se, $.secondary),
|
|
911
|
+
children: P.contextLabel
|
|
912
|
+
}), Pe()]
|
|
897
913
|
})
|
|
898
914
|
]
|
|
899
915
|
})]
|
|
900
916
|
})]
|
|
901
917
|
});
|
|
902
|
-
}),
|
|
918
|
+
}), bt = {
|
|
903
919
|
row: "_row_1030u_1",
|
|
904
920
|
readDot: "_readDot_1030u_6",
|
|
905
921
|
unreadDot: "_unreadDot_1030u_10"
|
|
906
|
-
},
|
|
922
|
+
}, xt = ({ item: t, labels: n, rowTitleClassName: r, unreadRowTitleClassName: i, onOpen: a, onRename: o, onDelete: s }) => {
|
|
907
923
|
let c = W(), [l, u] = q(!1), d = t.isUnread === !0, f = G(() => [...o ? [{
|
|
908
924
|
key: "rename",
|
|
909
925
|
label: n.renameLabel,
|
|
@@ -921,7 +937,7 @@ var ke = /* @__PURE__ */ function(e) {
|
|
|
921
937
|
o
|
|
922
938
|
]);
|
|
923
939
|
return /* @__PURE__ */ Y("li", {
|
|
924
|
-
className: h("group/row flex min-w-0 items-center gap-1 rounded-xl",
|
|
940
|
+
className: h("group/row flex min-w-0 items-center gap-1 rounded-xl", bt.row),
|
|
925
941
|
children: [
|
|
926
942
|
/* @__PURE__ */ Y("button", {
|
|
927
943
|
type: "button",
|
|
@@ -933,7 +949,7 @@ var ke = /* @__PURE__ */ function(e) {
|
|
|
933
949
|
t.leading ?? /* @__PURE__ */ J("span", {
|
|
934
950
|
"aria-hidden": !0,
|
|
935
951
|
className: "flex size-4 shrink-0 items-center justify-center",
|
|
936
|
-
children: /* @__PURE__ */ J("span", { className: h("size-[7.11px] rounded-full", d ?
|
|
952
|
+
children: /* @__PURE__ */ J("span", { className: h("size-[7.11px] rounded-full", d ? bt.unreadDot : bt.readDot) })
|
|
937
953
|
}),
|
|
938
954
|
/* @__PURE__ */ J(O, {
|
|
939
955
|
text: t.title,
|
|
@@ -942,7 +958,7 @@ var ke = /* @__PURE__ */ function(e) {
|
|
|
942
958
|
t.trailing ?? (d && t.leading != null && /* @__PURE__ */ J("span", {
|
|
943
959
|
"aria-hidden": !0,
|
|
944
960
|
className: "flex size-6 shrink-0 items-center justify-center",
|
|
945
|
-
children: /* @__PURE__ */ J("span", { className: h("size-[7.11px] rounded-full",
|
|
961
|
+
children: /* @__PURE__ */ J("span", { className: h("size-[7.11px] rounded-full", bt.unreadDot) })
|
|
946
962
|
}))
|
|
947
963
|
]
|
|
948
964
|
}),
|
|
@@ -970,7 +986,7 @@ var ke = /* @__PURE__ */ function(e) {
|
|
|
970
986
|
})
|
|
971
987
|
]
|
|
972
988
|
});
|
|
973
|
-
},
|
|
989
|
+
}, St = H(({ items: e, isLoading: t = !1, hasError: n = !1, onRetry: r, hasMore: i = !1, isLoadingMore: a = !1, onLoadMore: o, isEmptyStateShown: s = !0, onOpen: l, onRename: u, onDelete: d, labels: p, typography: m, colors: g }) => {
|
|
974
990
|
let _ = W(), v = m?.titleClassName ?? "dial-body-semi-text", y = m?.rowTitleClassName ?? "dial-body-text", ee = m?.unreadRowTitleClassName ?? "dial-body-semi-text", b = G(() => f({
|
|
975
991
|
"--pcl-read-dot": g?.readDot,
|
|
976
992
|
"--pcl-unread-dot": g?.unreadDot,
|
|
@@ -1023,7 +1039,7 @@ var ke = /* @__PURE__ */ function(e) {
|
|
|
1023
1039
|
})
|
|
1024
1040
|
}) : /* @__PURE__ */ Y(we, { children: [/* @__PURE__ */ J("ul", {
|
|
1025
1041
|
className: "m-0 flex min-w-0 list-none flex-col gap-2 p-0",
|
|
1026
|
-
children: e.map((e) => /* @__PURE__ */ J(
|
|
1042
|
+
children: e.map((e) => /* @__PURE__ */ J(xt, {
|
|
1027
1043
|
item: e,
|
|
1028
1044
|
labels: p,
|
|
1029
1045
|
rowTitleClassName: y,
|
|
@@ -1040,14 +1056,14 @@ var ke = /* @__PURE__ */ function(e) {
|
|
|
1040
1056
|
})] })
|
|
1041
1057
|
]
|
|
1042
1058
|
});
|
|
1043
|
-
}),
|
|
1044
|
-
let v = W(), y = K(null), [b, S] = q(null), [C, w] = q(""), [D, O] = q(), [k, te] = q(!1), [A, j] = q(!1), M = K(0), [N, P] = q(null), [F, ie] = q(!1),
|
|
1045
|
-
|
|
1046
|
-
}, []),
|
|
1047
|
-
let e =
|
|
1048
|
-
|
|
1059
|
+
}), Ct = H(({ composer: e, outputs: t, hasOutputs: n = !1, items: i, isLoading: a = !1, hasError: o = !1, onRetry: s, hasMore: c, isLoadingMore: l, onLoadMore: u, onOpen: d, onRename: f, onGenerateTitle: p, onDelete: m, labels: h, listTypography: g, listColors: _ }) => {
|
|
1060
|
+
let v = W(), y = K(null), [b, S] = q(null), [C, w] = q(""), [D, O] = q(), [k, te] = q(!1), [A, j] = q(!1), M = K(0), [N, P] = q(null), [F, ie] = q(!1), ae = K(null), I = U(() => {
|
|
1061
|
+
ae.current = document.activeElement;
|
|
1062
|
+
}, []), L = U(() => {
|
|
1063
|
+
let e = ae.current;
|
|
1064
|
+
ae.current = null, e?.isConnected && window.setTimeout(() => e.focus(), 0);
|
|
1049
1065
|
}, []), se = U((e) => {
|
|
1050
|
-
|
|
1066
|
+
ae.current = null, window.setTimeout(() => {
|
|
1051
1067
|
let t = y.current;
|
|
1052
1068
|
if (!t) return;
|
|
1053
1069
|
let n = t.querySelectorAll("li > button"), r = n[Math.min(e, n.length - 1)] ?? t.querySelector("h2, section");
|
|
@@ -1066,23 +1082,23 @@ var ke = /* @__PURE__ */ function(e) {
|
|
|
1066
1082
|
b
|
|
1067
1083
|
]);
|
|
1068
1084
|
let le = U((e) => {
|
|
1069
|
-
|
|
1085
|
+
I();
|
|
1070
1086
|
let t = z(e);
|
|
1071
1087
|
M.current += 1, j(!1), S(t), w(t?.title ?? ""), O(void 0);
|
|
1072
|
-
}, [z,
|
|
1073
|
-
|
|
1074
|
-
}, [z,
|
|
1075
|
-
k || (M.current += 1, j(!1), S(null),
|
|
1076
|
-
}, [k,
|
|
1077
|
-
F || (P(null),
|
|
1078
|
-
}, [F,
|
|
1088
|
+
}, [z, I]), ue = U((e) => {
|
|
1089
|
+
I(), P(z(e));
|
|
1090
|
+
}, [z, I]), de = U(() => {
|
|
1091
|
+
k || (M.current += 1, j(!1), S(null), L());
|
|
1092
|
+
}, [k, L]), fe = U(() => {
|
|
1093
|
+
F || (P(null), L());
|
|
1094
|
+
}, [F, L]), pe = b != null && C.trim() === b.title.trim(), B = U(async () => {
|
|
1079
1095
|
if (!b || !f || k || pe) return;
|
|
1080
1096
|
let e = C.trim();
|
|
1081
1097
|
if (!e) O(h.renameEmptyError);
|
|
1082
1098
|
else {
|
|
1083
1099
|
te(!0);
|
|
1084
1100
|
try {
|
|
1085
|
-
await f(b.id, e), S(null),
|
|
1101
|
+
await f(b.id, e), S(null), L();
|
|
1086
1102
|
} catch {} finally {
|
|
1087
1103
|
te(!1);
|
|
1088
1104
|
}
|
|
@@ -1094,7 +1110,7 @@ var ke = /* @__PURE__ */ function(e) {
|
|
|
1094
1110
|
f,
|
|
1095
1111
|
b,
|
|
1096
1112
|
C,
|
|
1097
|
-
|
|
1113
|
+
L
|
|
1098
1114
|
]), me = U(async () => {
|
|
1099
1115
|
if (!b || !p || A) return;
|
|
1100
1116
|
let e = ++M.current;
|
|
@@ -1116,7 +1132,7 @@ var ke = /* @__PURE__ */ function(e) {
|
|
|
1116
1132
|
b
|
|
1117
1133
|
]), he = U((e) => {
|
|
1118
1134
|
e.key !== "Enter" || e.nativeEvent.isComposing || (e.preventDefault(), B());
|
|
1119
|
-
}, [B]),
|
|
1135
|
+
}, [B]), _e = U(async () => {
|
|
1120
1136
|
if (!N || !m) return;
|
|
1121
1137
|
let e = i.findIndex((e) => e.id === N.id);
|
|
1122
1138
|
ie(!0);
|
|
@@ -1130,7 +1146,7 @@ var ke = /* @__PURE__ */ function(e) {
|
|
|
1130
1146
|
se,
|
|
1131
1147
|
i,
|
|
1132
1148
|
m
|
|
1133
|
-
]),
|
|
1149
|
+
]), ve = G(() => [{
|
|
1134
1150
|
label: h.renameCancelLabel ?? "Cancel",
|
|
1135
1151
|
variant: x.Primary,
|
|
1136
1152
|
appearance: ee.Ghost,
|
|
@@ -1158,7 +1174,7 @@ var ke = /* @__PURE__ */ function(e) {
|
|
|
1158
1174
|
/* @__PURE__ */ J("div", {
|
|
1159
1175
|
ref: y,
|
|
1160
1176
|
className: "contents",
|
|
1161
|
-
children: /* @__PURE__ */ J(
|
|
1177
|
+
children: /* @__PURE__ */ J(St, {
|
|
1162
1178
|
items: i,
|
|
1163
1179
|
isLoading: a,
|
|
1164
1180
|
hasError: o,
|
|
@@ -1175,11 +1191,11 @@ var ke = /* @__PURE__ */ function(e) {
|
|
|
1175
1191
|
colors: _
|
|
1176
1192
|
})
|
|
1177
1193
|
}),
|
|
1178
|
-
b && /* @__PURE__ */ J(
|
|
1194
|
+
b && /* @__PURE__ */ J(R, {
|
|
1179
1195
|
open: !0,
|
|
1180
1196
|
header: h.renameTitle,
|
|
1181
1197
|
size: oe.Sm,
|
|
1182
|
-
mainButtons:
|
|
1198
|
+
mainButtons: ve,
|
|
1183
1199
|
onClose: de,
|
|
1184
1200
|
children: /* @__PURE__ */ Y("div", {
|
|
1185
1201
|
className: "flex items-end gap-2 px-6 py-4",
|
|
@@ -1208,7 +1224,7 @@ var ke = /* @__PURE__ */ function(e) {
|
|
|
1208
1224
|
className: "flex",
|
|
1209
1225
|
"aria-hidden": !0,
|
|
1210
1226
|
children: /* @__PURE__ */ J(ce, { size: T.MD })
|
|
1211
|
-
}) : /* @__PURE__ */ J(
|
|
1227
|
+
}) : /* @__PURE__ */ J(ge, {
|
|
1212
1228
|
size: T.MD,
|
|
1213
1229
|
stroke: E,
|
|
1214
1230
|
"aria-hidden": !0
|
|
@@ -1224,21 +1240,21 @@ var ke = /* @__PURE__ */ function(e) {
|
|
|
1224
1240
|
labels: h.deleteDialog,
|
|
1225
1241
|
isLoading: F,
|
|
1226
1242
|
onConfirm: () => {
|
|
1227
|
-
|
|
1243
|
+
_e();
|
|
1228
1244
|
},
|
|
1229
1245
|
onClose: fe
|
|
1230
1246
|
})
|
|
1231
1247
|
] });
|
|
1232
|
-
}),
|
|
1248
|
+
}), wt = {
|
|
1233
1249
|
title: "_title_17sbf_1",
|
|
1234
1250
|
secondary: "_secondary_17sbf_5"
|
|
1235
|
-
},
|
|
1251
|
+
}, Tt = 6, Et = (e) => ({
|
|
1236
1252
|
id: e.name,
|
|
1237
1253
|
name: e.name,
|
|
1238
1254
|
contentType: e.contentType,
|
|
1239
1255
|
type: p(e.contentType),
|
|
1240
1256
|
status: l.Idle
|
|
1241
|
-
}),
|
|
1257
|
+
}), Dt = H(({ items: e, onOpenOutput: t, selectedOutputName: n, hasError: r = !1, onRetry: i, previewLimit: a = Tt, labels: o, styles: s }) => {
|
|
1242
1258
|
let c = W(), l = W(), u = K(null), d = K(!1), [p, m] = q(!1), { colors: g, typography: _, listClassName: v } = s ?? {}, y = _?.titleClassName ?? "dial-body-semi-text", ee = _?.helperClassName ?? "dial-tiny-text", b = o?.title ?? "Outputs", x = o?.errorLabel ?? "Could not load outputs", S = G(() => f({
|
|
1243
1259
|
"--po-heading-text": g?.headingText,
|
|
1244
1260
|
"--po-secondary-text": g?.secondaryText
|
|
@@ -1261,7 +1277,7 @@ var ke = /* @__PURE__ */ function(e) {
|
|
|
1261
1277
|
ref: u,
|
|
1262
1278
|
id: c,
|
|
1263
1279
|
tabIndex: -1,
|
|
1264
|
-
className: h("m-0",
|
|
1280
|
+
className: h("m-0", wt.title, y),
|
|
1265
1281
|
children: b
|
|
1266
1282
|
}), !r && E && /* @__PURE__ */ J(P, {
|
|
1267
1283
|
label: p ? te : k,
|
|
@@ -1271,7 +1287,7 @@ var ke = /* @__PURE__ */ function(e) {
|
|
|
1271
1287
|
})]
|
|
1272
1288
|
}), r ? /* @__PURE__ */ Y(we, { children: [/* @__PURE__ */ J("p", {
|
|
1273
1289
|
"aria-hidden": !0,
|
|
1274
|
-
className: h("m-0",
|
|
1290
|
+
className: h("m-0", wt.secondary, ee),
|
|
1275
1291
|
children: x
|
|
1276
1292
|
}), i && /* @__PURE__ */ J(j, {
|
|
1277
1293
|
className: "self-start",
|
|
@@ -1283,7 +1299,7 @@ var ke = /* @__PURE__ */ function(e) {
|
|
|
1283
1299
|
children: D.map((e) => /* @__PURE__ */ J("li", {
|
|
1284
1300
|
className: "shrink-0",
|
|
1285
1301
|
children: /* @__PURE__ */ J(Te, {
|
|
1286
|
-
attachment:
|
|
1302
|
+
attachment: Et(e),
|
|
1287
1303
|
onClick: t,
|
|
1288
1304
|
isSelected: e.name === n,
|
|
1289
1305
|
labels: { clickLabel: O(e.name) }
|
|
@@ -1295,13 +1311,13 @@ var ke = /* @__PURE__ */ function(e) {
|
|
|
1295
1311
|
children: r ? x : ""
|
|
1296
1312
|
})]
|
|
1297
1313
|
});
|
|
1298
|
-
}),
|
|
1314
|
+
}), Ot = "Remove from My List", kt = [
|
|
1299
1315
|
"You will lose access to this item",
|
|
1300
1316
|
"Other people keep their access",
|
|
1301
1317
|
"You will need a new invitation to get it back"
|
|
1302
|
-
],
|
|
1318
|
+
], At = H(({ isOpen: e, projectName: r, isRemoving: i = !1, onConfirm: a, onClose: o, labels: s }) => /* @__PURE__ */ J(t, {
|
|
1303
1319
|
open: e,
|
|
1304
|
-
title: s?.title ??
|
|
1320
|
+
title: s?.title ?? Ot,
|
|
1305
1321
|
variant: w.Info,
|
|
1306
1322
|
identity: /* @__PURE__ */ J(u, { children: /* @__PURE__ */ J(n, { name: r }) }),
|
|
1307
1323
|
message: s?.message?.(r) ?? /* @__PURE__ */ Y(we, { children: [
|
|
@@ -1309,14 +1325,14 @@ var ke = /* @__PURE__ */ function(e) {
|
|
|
1309
1325
|
/* @__PURE__ */ J("strong", { children: r }),
|
|
1310
1326
|
" from your list? You'll need a new invitation to access it again."
|
|
1311
1327
|
] }),
|
|
1312
|
-
consequences: s?.consequences ??
|
|
1313
|
-
confirmLabel: s?.confirmLabel ??
|
|
1328
|
+
consequences: s?.consequences ?? kt,
|
|
1329
|
+
confirmLabel: s?.confirmLabel ?? Ot,
|
|
1314
1330
|
cancelLabel: s?.cancelLabel ?? "Cancel",
|
|
1315
1331
|
isLoading: i,
|
|
1316
1332
|
loadingStatusLabel: s?.removingStatusLabel ?? "Removing…",
|
|
1317
1333
|
onConfirm: a,
|
|
1318
1334
|
onClose: o
|
|
1319
|
-
})),
|
|
1335
|
+
})), jt = H(({ projectName: e, projectHref: t, onBack: n, onProjectLinkClick: r, backLabel: i, className: a, nameClassName: o = "dial-body-text" }) => /* @__PURE__ */ Y("nav", {
|
|
1320
1336
|
"aria-label": i,
|
|
1321
1337
|
className: h("flex max-w-full min-w-0 shrink-0 items-center gap-2 border-b px-4 py-2", a),
|
|
1322
1338
|
children: [/* @__PURE__ */ J(ne, {
|
|
@@ -1337,13 +1353,13 @@ var ke = /* @__PURE__ */ function(e) {
|
|
|
1337
1353
|
className: h("min-w-0", o)
|
|
1338
1354
|
})
|
|
1339
1355
|
})]
|
|
1340
|
-
})),
|
|
1356
|
+
})), Mt = "Revoke access", Nt = [
|
|
1341
1357
|
"People you shared with will lose access",
|
|
1342
1358
|
"Existing share links will stop working",
|
|
1343
1359
|
"Your own copy will remain available"
|
|
1344
|
-
],
|
|
1360
|
+
], Pt = H(({ isOpen: e, projectName: r, isRevoking: i = !1, onConfirm: a, onClose: o, labels: s }) => /* @__PURE__ */ J(t, {
|
|
1345
1361
|
open: e,
|
|
1346
|
-
title: s?.title ??
|
|
1362
|
+
title: s?.title ?? Mt,
|
|
1347
1363
|
variant: w.Danger,
|
|
1348
1364
|
identity: /* @__PURE__ */ J(u, { children: /* @__PURE__ */ J(n, { name: r }) }),
|
|
1349
1365
|
message: s?.message?.(r) ?? /* @__PURE__ */ Y(we, { children: [
|
|
@@ -1351,8 +1367,8 @@ var ke = /* @__PURE__ */ function(e) {
|
|
|
1351
1367
|
/* @__PURE__ */ J("strong", { children: r }),
|
|
1352
1368
|
"? Anyone you shared it with will lose access."
|
|
1353
1369
|
] }),
|
|
1354
|
-
consequences: s?.consequences ??
|
|
1355
|
-
confirmLabel: s?.confirmLabel ??
|
|
1370
|
+
consequences: s?.consequences ?? Nt,
|
|
1371
|
+
confirmLabel: s?.confirmLabel ?? Mt,
|
|
1356
1372
|
cancelLabel: s?.cancelLabel ?? "Cancel",
|
|
1357
1373
|
isLoading: i,
|
|
1358
1374
|
loadingStatusLabel: s?.revokingStatusLabel ?? "Revoking access…",
|
|
@@ -1360,4 +1376,4 @@ var ke = /* @__PURE__ */ function(e) {
|
|
|
1360
1376
|
onClose: o
|
|
1361
1377
|
}));
|
|
1362
1378
|
//#endregion
|
|
1363
|
-
export { We as ContextFileRejection, Ke as PROJECT_NAME_MAX_BYTES,
|
|
1379
|
+
export { We as ContextFileRejection, Ke as PROJECT_NAME_MAX_BYTES, jt as ProjectChatHeader, St as ProjectConversationList, Ct as ProjectConversationsPanel, pt as ProjectCreateForm, Ge as ProjectNameError, Dt as ProjectOutputs, At as ProjectRemoveFromListConfirmation, Pt as ProjectRevokeAccessConfirmation, Ve as ProjectSource, yt as ProjectView, Be as Projects, Ae as ProjectsSortKey, ot as checkContextFiles, st as filterContextFileItems, tt as getContextFilesSize, $e as isStoredContextFile, Ze as validateProjectName };
|
|
@@ -77,6 +77,10 @@ export interface ProjectViewLabels {
|
|
|
77
77
|
notFoundLabel: string;
|
|
78
78
|
/** Label of the action that returns to the projects list. */
|
|
79
79
|
browseProjectsLabel: string;
|
|
80
|
+
/** Title of the access-denied state. Defaults to `'You no longer have access to this project'`. */
|
|
81
|
+
accessDeniedLabel?: string;
|
|
82
|
+
/** Explanation under the access-denied title. Defaults to `'The owner may have stopped sharing it or deleted it.'`. */
|
|
83
|
+
accessDeniedDescription?: string;
|
|
80
84
|
/** Accessible label of the loading spinner. Defaults to `'Loading project'`. */
|
|
81
85
|
loadingAriaLabel?: string;
|
|
82
86
|
}
|
|
@@ -130,6 +134,8 @@ export interface ProjectViewProps {
|
|
|
130
134
|
hasError?: boolean;
|
|
131
135
|
/** Shows the not-found state. Defaults to `false`. */
|
|
132
136
|
isNotFound?: boolean;
|
|
137
|
+
/** Shows the access-denied state, with a way back to the list and no retry; it wins over `hasError`. Defaults to `false`. */
|
|
138
|
+
isAccessDenied?: boolean;
|
|
133
139
|
/** Whether the project is pinned. */
|
|
134
140
|
isPinned: boolean;
|
|
135
141
|
/** Ignores Pin toggle activations while a pin change is saved; the toggle stays focusable. Defaults to `false`. */
|
|
@@ -170,7 +176,7 @@ export interface ProjectViewProps {
|
|
|
170
176
|
isDetailsStacked?: boolean;
|
|
171
177
|
/** Called from the retry action of the error state. */
|
|
172
178
|
onRetry: () => void;
|
|
173
|
-
/** Called from the not-found
|
|
179
|
+
/** Called from the action of the not-found and access-denied states. */
|
|
174
180
|
onBrowseProjects: () => void;
|
|
175
181
|
/** Content of the main column, before the Details panel (stacked above it on mobile); the column is omitted when unset. */
|
|
176
182
|
mainContent?: ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-view-props.d.ts","sourceRoot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,MAAM,IAAI,CAAC;IACrB,kEAAkE;IAClE,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,gGAAgG;IAChG,sBAAsB,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IACnD,wEAAwE;IACxE,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,gIAAgI;IAChI,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,uCAAuC;IACvC,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,0GAA0G;IAC1G,kBAAkB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,uHAAuH;IACvH,qBAAqB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,4FAA4F;IAC5F,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,2HAA2H;IAC3H,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,uDAAuD;IACvD,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,
|
|
1
|
+
{"version":3,"file":"project-view-props.d.ts","sourceRoot":"","sources":["../../src/models/project-view-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,8EAA8E;AAC9E,MAAM,WAAW,sBAAsB;IACrC,oDAAoD;IACpD,IAAI,EAAE,MAAM,CAAC;IACb,gDAAgD;IAChD,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,2DAA2D;AAC3D,MAAM,WAAW,gBAAgB;IAC/B,oBAAoB;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,iEAAiE;IACjE,WAAW,EAAE,MAAM,CAAC;IACpB,gEAAgE;IAChE,YAAY,EAAE,MAAM,CAAC;IACrB,uCAAuC;IACvC,YAAY,EAAE,sBAAsB,EAAE,CAAC;CACxC;AAED,kEAAkE;AAClE,MAAM,WAAW,iBAAiB;IAChC,0CAA0C;IAC1C,SA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AAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,uHAAuH;IACvH,qBAAqB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,4FAA4F;IAC5F,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,2HAA2H;IAC3H,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,uDAAuD;IACvD,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,wEAAwE;IACxE,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,2HAA2H;IAC3H,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,2EAA2E;IAC3E,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,wBAAwB;IACxB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,sCAAsC;IACtC,MAAM,CAAC,EAAE,iBAAiB,CAAC;CAC5B"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/ai-dial-projects",
|
|
3
3
|
"description": "Presentational Projects page shell, New and Edit project form, and project view — searchable, sortable grid of the projects available to a user",
|
|
4
|
-
"version": "1.4.0-dev.
|
|
4
|
+
"version": "1.4.0-dev.139",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"**/*.css",
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@epam/ai-dial-attachment-input": "1.4.0-dev.
|
|
25
|
-
"@epam/ai-dial-builder-form": "1.4.0-dev.
|
|
24
|
+
"@epam/ai-dial-attachment-input": "1.4.0-dev.139",
|
|
25
|
+
"@epam/ai-dial-builder-form": "1.4.0-dev.139",
|
|
26
26
|
"@tabler/icons-react": "^3.50.0",
|
|
27
27
|
"@uiw/react-markdown-preview": "^5.2.1",
|
|
28
28
|
"@uiw/react-md-editor": "^4.2.2"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@epam/ai-dial-chat-shared": "1.4.0-dev.
|
|
31
|
+
"@epam/ai-dial-chat-shared": "1.4.0-dev.139",
|
|
32
32
|
"@epam/ai-dial-ui-kit": "^0.16.0",
|
|
33
33
|
"react": "^19.2.8"
|
|
34
34
|
},
|