@epam/ai-dial-chat-shared 1.3.0-dev.37 → 1.3.0-dev.372
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/ActionMenu/ActionMenu.d.ts +26 -0
- package/components/ActionMenu/ActionMenu.d.ts.map +1 -0
- package/components/ActionMenu/ActionMenu.js +50 -0
- package/components/ConfirmationDialog/ConfirmationDialog.d.ts +6 -1
- package/components/ConfirmationDialog/ConfirmationDialog.d.ts.map +1 -1
- package/components/ConfirmationDialog/ConfirmationDialog.js +11 -9
- package/components/ConfirmationIdentityCard/ConfirmationIdentityCard.module.scss.js +5 -4
- package/components/ConfirmationIdentityRow/ConfirmationIdentityRow.js +2 -2
- package/components/ConfirmationIdentityRow/ConfirmationIdentityRow.module.scss.js +3 -2
- package/components/ConfirmationView/ConfirmationFooter.d.ts.map +1 -1
- package/components/ConfirmationView/ConfirmationFooter.js +25 -26
- package/components/ConfirmationView/ConfirmationView.d.ts +2 -0
- package/components/ConfirmationView/ConfirmationView.d.ts.map +1 -1
- package/components/ConfirmationView/ConfirmationView.js +12 -12
- package/components/ConfirmationView/ConfirmationView.module.scss.js +6 -5
- package/components/DeleteConfirmationDrawer/DeleteConfirmationDrawer.d.ts +31 -0
- package/components/DeleteConfirmationDrawer/DeleteConfirmationDrawer.d.ts.map +1 -0
- package/components/DeleteConfirmationDrawer/DeleteConfirmationDrawer.js +36 -0
- package/components/DeleteConfirmationView/DeleteConfirmationView.d.ts +3 -0
- package/components/DeleteConfirmationView/DeleteConfirmationView.d.ts.map +1 -1
- package/components/DeleteConfirmationView/DeleteConfirmationView.js +36 -27
- package/components/DeleteConfirmationView/DeleteConfirmationView.module.scss.js +5 -4
- package/components/DeploymentIcon/DeploymentIcon.module.scss.js +3 -2
- package/components/EntityHeader/EntityHeader.js +1 -1
- package/components/InitialsAvatar/InitialsAvatar.d.ts +3 -0
- package/components/InitialsAvatar/InitialsAvatar.d.ts.map +1 -1
- package/components/InitialsAvatar/InitialsAvatar.js +4 -3
- package/components/ItemHeader/ItemHeader.d.ts +5 -1
- package/components/ItemHeader/ItemHeader.d.ts.map +1 -1
- package/components/ItemHeader/ItemHeader.js +4 -1
- package/components/ItemHeader/ItemHeader.module.scss.js +5 -4
- package/components/MarkdownRenderer/CodeBlock/CodeBlock.d.ts +6 -2
- package/components/MarkdownRenderer/CodeBlock/CodeBlock.d.ts.map +1 -1
- package/components/MarkdownRenderer/CodeBlock/CodeBlock.js +58 -58
- package/components/MarkdownRenderer/CodeBlock/CodeBlock.module.scss.js +9 -8
- package/components/MarkdownRenderer/CodeBlock/syntax-theme.d.ts.map +1 -1
- package/components/MarkdownRenderer/MDMessageViewer.d.ts +6 -2
- package/components/MarkdownRenderer/MDMessageViewer.d.ts.map +1 -1
- package/components/MarkdownRenderer/MDMessageViewer.js +14 -12
- package/components/MarkdownRenderer/MarkdownRenderer.d.ts +8 -0
- package/components/MarkdownRenderer/MarkdownRenderer.d.ts.map +1 -1
- package/components/MarkdownRenderer/MarkdownRenderer.js +146 -136
- package/components/MarkdownRenderer/MarkdownRenderer.module.scss.js +9 -8
- package/components/MarkdownRenderer/Math/MarkdownMathBlock.js +1 -1
- package/components/MarkdownRenderer/Math/MarkdownMathBlock.module.scss.js +5 -4
- package/components/MarkdownRenderer/PlainTextRenderer.js +1 -1
- package/components/MarkdownRenderer/Table/MarkdownTable.d.ts +4 -0
- package/components/MarkdownRenderer/Table/MarkdownTable.d.ts.map +1 -1
- package/components/MarkdownRenderer/Table/MarkdownTable.js +68 -63
- package/components/MarkdownRenderer/Table/MarkdownTable.module.scss.js +15 -13
- package/components/MarkdownRenderer/Table/TableHeader.module.scss.js +3 -2
- package/components/MarkdownRenderer/markdown-whitespace.js +2 -6
- package/components/NewVersionAlert/NewVersionAlert.d.ts +27 -0
- package/components/NewVersionAlert/NewVersionAlert.d.ts.map +1 -0
- package/components/NewVersionAlert/NewVersionAlert.js +28 -0
- package/components/NewVersionAlert/NewVersionAlert.module.scss.js +4 -0
- package/components/NotificationStack/NotificationStack.d.ts +48 -0
- package/components/NotificationStack/NotificationStack.d.ts.map +1 -0
- package/components/NotificationStack/NotificationStack.js +111 -0
- package/components/PanelEmptyState/PanelEmptyState.d.ts +12 -2
- package/components/PanelEmptyState/PanelEmptyState.d.ts.map +1 -1
- package/components/PanelEmptyState/PanelEmptyState.js +19 -9
- package/components/PanelEmptyState/PanelEmptyState.module.scss.js +6 -2
- package/components/ResourceSummary/ResourceSummary.module.scss.js +5 -4
- package/components/TextRefinementField/TextRefinementField.d.ts +4 -2
- package/components/TextRefinementField/TextRefinementField.d.ts.map +1 -1
- package/components/TextRefinementField/TextRefinementField.js +84 -55
- package/components/UnsavedChangesProvider/UnsavedChangesProvider.d.ts +22 -0
- package/components/UnsavedChangesProvider/UnsavedChangesProvider.d.ts.map +1 -0
- package/components/UnsavedChangesProvider/UnsavedChangesProvider.js +57 -0
- package/components/UnsavedChangesProvider/unsaved-changes-context.d.ts +44 -0
- package/components/UnsavedChangesProvider/unsaved-changes-context.d.ts.map +1 -0
- package/components/UnsavedChangesProvider/unsaved-changes-context.js +13 -0
- package/constants/breakpoint.d.ts +6 -0
- package/constants/breakpoint.d.ts.map +1 -1
- package/constants/breakpoint.js +2 -2
- package/conversation-transfer/conversation-transfer-queue.d.ts +16 -0
- package/conversation-transfer/conversation-transfer-queue.d.ts.map +1 -0
- package/conversation-transfer/conversation-transfer-queue.js +24 -0
- package/entry-points/markdown.d.ts +1 -0
- package/entry-points/markdown.d.ts.map +1 -1
- package/file-manager/DialFileManagerShell/DialFileManagerShell.d.ts +15 -0
- package/file-manager/DialFileManagerShell/DialFileManagerShell.d.ts.map +1 -1
- package/file-manager/DialFileManagerShell/DialFileManagerShell.js +330 -266
- package/file-manager/DialFileManagerShell/DialFileManagerShell.module.scss.js +8 -0
- package/file-manager/FileManagerAttachModal/FileManagerAttachModal.d.ts +7 -0
- package/file-manager/FileManagerAttachModal/FileManagerAttachModal.d.ts.map +1 -1
- package/file-manager/FileManagerAttachModal/FileManagerAttachModal.js +85 -80
- package/file-manager/FileManagerAttachModal/FileManagerAttachModal.module.scss.js +7 -0
- package/file-manager/OperationLoaderModal/OperationLoaderModal.d.ts +5 -0
- package/file-manager/OperationLoaderModal/OperationLoaderModal.d.ts.map +1 -1
- package/file-manager/OperationLoaderModal/OperationLoaderModal.js +25 -20
- package/file-manager/OperationLoaderModal/OperationLoaderModal.module.scss.js +4 -0
- package/file-manager/file-manager-controller.d.ts +11 -3
- package/file-manager/file-manager-controller.d.ts.map +1 -1
- package/file-manager/index.d.ts +1 -0
- package/file-manager/index.d.ts.map +1 -1
- package/file-manager/labels.d.ts +23 -2
- package/file-manager/labels.d.ts.map +1 -1
- package/file-manager/shell-styles.d.ts +37 -0
- package/file-manager/shell-styles.d.ts.map +1 -0
- package/file-manager/upload-batch.d.ts +46 -0
- package/file-manager/upload-batch.d.ts.map +1 -1
- package/file-manager/upload-batch.js +6 -2
- package/file-manager/upload-queue.d.ts +44 -4
- package/file-manager/upload-queue.d.ts.map +1 -1
- package/file-manager/upload-queue.js +45 -13
- package/file-manager.js +4 -4
- package/hooks/useAvailableHeightCap.js +1 -1
- package/hooks/useControlErrorAssociation.d.ts +3 -0
- package/hooks/useControlErrorAssociation.d.ts.map +1 -0
- package/hooks/useControlErrorAssociation.js +12 -0
- package/hooks/useIsMobile.js +1 -1
- package/hooks/useIsPhone.d.ts +3 -0
- package/hooks/useIsPhone.d.ts.map +1 -0
- package/hooks/useIsPhone.js +13 -0
- package/hooks/useIsTablet.d.ts +3 -0
- package/hooks/useIsTablet.d.ts.map +1 -0
- package/hooks/useIsTablet.js +13 -0
- package/hooks/useIsTextClipped.d.ts +26 -0
- package/hooks/useIsTextClipped.d.ts.map +1 -0
- package/hooks/useIsTextClipped.js +25 -0
- package/hooks/useIsVerticallyClamped.d.ts +16 -0
- package/hooks/useIsVerticallyClamped.d.ts.map +1 -0
- package/hooks/useIsVerticallyClamped.js +20 -0
- package/hooks/useTextRefinement.d.ts +1 -1
- package/hooks/useTextRefinement.d.ts.map +1 -1
- package/hooks/useTextRefinement.js +4 -4
- package/hooks/useUnsavedChangesGuard.js +1 -5
- package/hooks/useUnsavedChangesLeaveConfirmation.d.ts +12 -0
- package/hooks/useUnsavedChangesLeaveConfirmation.d.ts.map +1 -0
- package/hooks/useUnsavedChangesLeaveConfirmation.js +22 -0
- package/hooks/useUnsavedChangesLeaveGuard.d.ts +24 -0
- package/hooks/useUnsavedChangesLeaveGuard.d.ts.map +1 -0
- package/hooks/useUnsavedChangesLeaveGuard.js +24 -0
- package/index.css +3 -2
- package/index.d.ts +17 -0
- package/index.d.ts.map +1 -1
- package/index.js +93 -76
- package/markdown.js +3 -2
- package/models/auth.d.ts +2 -0
- package/models/auth.d.ts.map +1 -1
- package/models/chat.d.ts +2 -0
- package/models/chat.d.ts.map +1 -1
- package/models/conversation-classification.d.ts +5 -0
- package/models/conversation-classification.d.ts.map +1 -1
- package/models/conversation-classification.js +3 -1
- package/models/inline-segment.d.ts +11 -0
- package/models/inline-segment.d.ts.map +1 -0
- package/models/text-refinement.d.ts +6 -2
- package/models/text-refinement.d.ts.map +1 -1
- package/package.json +10 -17
- package/utils/base64-json.d.ts +14 -0
- package/utils/base64-json.d.ts.map +1 -0
- package/utils/base64-json.js +4 -0
- package/utils/dom.d.ts +8 -0
- package/utils/dom.d.ts.map +1 -0
- package/utils/dom.js +10 -0
- package/utils/format-price.js +10 -10
- package/utils/inline-segments.d.ts +38 -0
- package/utils/inline-segments.d.ts.map +1 -0
- package/utils/inline-segments.js +53 -0
- package/utils/latex.d.ts +4 -3
- package/utils/latex.d.ts.map +1 -1
- package/utils/latex.js +47 -41
- package/utils/markdown-html.d.ts +14 -0
- package/utils/markdown-html.d.ts.map +1 -0
- package/utils/markdown-html.js +11 -0
- package/utils/message-attachment-to-display.js +1 -1
- package/utils/mime-type.js +1 -1
- package/utils/prompt-variables.js +5 -9
- package/utils/syntax-highlighting.js +8 -8
|
@@ -5,88 +5,93 @@ import { downloadTextFile as r } from "../../../utils/file-download.js";
|
|
|
5
5
|
import { CHAT_SHARED_CLASS as i } from "../../../constants/public-class-names.js";
|
|
6
6
|
import { useHorizontalOverflow as a } from "../../../hooks/useHorizontalOverflow.js";
|
|
7
7
|
import o from "./MarkdownTable.module.scss.js";
|
|
8
|
-
import {
|
|
9
|
-
import { useMarkdownTableActions as
|
|
10
|
-
import { ElementSize as
|
|
11
|
-
import { memo as
|
|
12
|
-
import { jsx as
|
|
8
|
+
import { DEFAULT_MARKDOWN_TABLE_DOWNLOAD_FILENAME as s, MARKDOWN_TABLE_CSV_MIME_TYPE as c, MarkdownTableCopyFormat as l, serializeMarkdownTableRows as u } from "./table-serialization.js";
|
|
9
|
+
import { useMarkdownTableActions as d } from "./useMarkdownTableActions/useMarkdownTableActions.js";
|
|
10
|
+
import { ElementSize as f, GhostIconButton as p, LiveRegion as m, LiveRegionElement as h } from "@epam/ai-dial-ui-kit";
|
|
11
|
+
import { memo as g, useCallback as _, useEffect as v, useRef as y, useState as b } from "react";
|
|
12
|
+
import { jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
13
13
|
//#region src/components/MarkdownRenderer/Table/MarkdownTable.tsx
|
|
14
|
-
var
|
|
15
|
-
let [
|
|
16
|
-
"--cm-markdown-border":
|
|
17
|
-
"--cm-table-scrollbar":
|
|
18
|
-
"--cm-table-fade":
|
|
19
|
-
"--cm-table-row-divider":
|
|
20
|
-
"--cm-table-row-hover-bg":
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
14
|
+
var C = 2e3, w = g(({ children: s, classNames: g, colors: w, actionLabels: T, downloadFilename: E, isStreaming: D, onOpenInCanvas: O, scrollRegionAriaLabel: k = "Scrollable table" }) => {
|
|
15
|
+
let [A, j] = b(!1), M = y(null), { scrollContainerRef: N, contentRef: P, hasContentBeyondStart: F, hasContentBeyondEnd: I, handleScroll: L } = a(), R = t({
|
|
16
|
+
"--cm-markdown-border": w?.border,
|
|
17
|
+
"--cm-table-scrollbar": w?.scrollbar,
|
|
18
|
+
"--cm-table-fade": w?.fade,
|
|
19
|
+
"--cm-table-row-divider": w?.rowDivider,
|
|
20
|
+
"--cm-table-row-hover-bg": w?.rowHoverBackground,
|
|
21
|
+
"--cm-table-actions-border": w?.actionsBorder,
|
|
22
|
+
"--cm-table-actions-bg": w?.actionsBackground
|
|
23
|
+
}), z = F || I;
|
|
24
|
+
v(() => () => {
|
|
25
|
+
M.current != null && clearTimeout(M.current);
|
|
24
26
|
}, []);
|
|
25
|
-
let
|
|
26
|
-
let e =
|
|
27
|
-
e
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
let B = _(() => {
|
|
28
|
+
let e = P.current;
|
|
29
|
+
if (e == null) return;
|
|
30
|
+
let t = u(Array.from(e.rows), l.Markdown);
|
|
31
|
+
n(t).then((e) => {
|
|
32
|
+
e && (M.current != null && clearTimeout(M.current), j(!0), M.current = setTimeout(() => {
|
|
33
|
+
j(!1);
|
|
34
|
+
}, C));
|
|
31
35
|
});
|
|
32
|
-
}, [
|
|
33
|
-
let e =
|
|
34
|
-
e
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
36
|
+
}, [P]), V = _(() => {
|
|
37
|
+
let e = P.current;
|
|
38
|
+
if (e == null) return;
|
|
39
|
+
let t = u(Array.from(e.rows), l.Csv);
|
|
40
|
+
r(`\uFEFF${t}`, E ?? "table.csv", c);
|
|
41
|
+
}, [P, E]), H = _(() => {
|
|
42
|
+
let e = P.current;
|
|
43
|
+
e != null && O != null && O(u(Array.from(e.rows), l.Markdown));
|
|
44
|
+
}, [P, O]), U = d({
|
|
45
|
+
actionLabels: T,
|
|
46
|
+
isCopied: A,
|
|
47
|
+
onCopy: B,
|
|
48
|
+
onDownloadCsv: V,
|
|
49
|
+
onOpenInCanvas: O == null ? void 0 : H
|
|
50
|
+
}), W = U.length > 0 && !D;
|
|
51
|
+
return /* @__PURE__ */ S("div", {
|
|
52
|
+
style: R,
|
|
53
|
+
className: e("group/table relative w-full max-w-full min-w-0 overflow-clip rounded-xl border", o.tableContainer, g.tableWrapper, i.table),
|
|
48
54
|
children: [
|
|
49
|
-
|
|
55
|
+
W && /* @__PURE__ */ x("div", {
|
|
50
56
|
className: "sticky top-0 z-10 h-0",
|
|
51
|
-
children: /* @__PURE__ */
|
|
52
|
-
className: "absolute
|
|
53
|
-
children:
|
|
57
|
+
children: /* @__PURE__ */ x("div", {
|
|
58
|
+
className: e("absolute inset-e-2 top-2 flex items-center gap-1 rounded-lg border px-2 py-1 opacity-0 shadow-xs transition-opacity group-hover/table:opacity-100 focus-within:opacity-100", o.actions),
|
|
59
|
+
children: U.map((e) => /* @__PURE__ */ x(p, {
|
|
54
60
|
tooltipProps: { tooltip: e.label },
|
|
55
61
|
"aria-label": e.label,
|
|
56
|
-
icon: /* @__PURE__ */
|
|
62
|
+
icon: /* @__PURE__ */ x("span", {
|
|
57
63
|
"aria-hidden": !0,
|
|
58
64
|
children: e.icon
|
|
59
65
|
}),
|
|
60
|
-
size:
|
|
66
|
+
size: f.Small,
|
|
61
67
|
onClick: e.onClick
|
|
62
68
|
}, e.label))
|
|
63
69
|
})
|
|
64
70
|
}),
|
|
65
|
-
/* @__PURE__ */
|
|
66
|
-
ref:
|
|
67
|
-
className: e("w-full
|
|
68
|
-
[o.tableScrollFadeBoth]:
|
|
69
|
-
[o.tableScrollFadeStart]:
|
|
70
|
-
[o.tableScrollFadeEnd]: !
|
|
71
|
+
/* @__PURE__ */ x("div", {
|
|
72
|
+
ref: N,
|
|
73
|
+
className: e("w-full max-w-full min-w-0 overflow-x-auto", o.scrollContainer, g.tableScrollContainer, {
|
|
74
|
+
[o.tableScrollFadeBoth]: F && I,
|
|
75
|
+
[o.tableScrollFadeStart]: F && !I,
|
|
76
|
+
[o.tableScrollFadeEnd]: !F && I
|
|
71
77
|
}, i.tableScroll),
|
|
72
|
-
onScroll:
|
|
73
|
-
role:
|
|
74
|
-
"aria-label":
|
|
75
|
-
tabIndex:
|
|
76
|
-
children: /* @__PURE__ */
|
|
77
|
-
ref:
|
|
78
|
-
className: e("w-max min-w-full border-collapse",
|
|
79
|
-
children:
|
|
78
|
+
onScroll: L,
|
|
79
|
+
role: z ? "region" : void 0,
|
|
80
|
+
"aria-label": z ? k : void 0,
|
|
81
|
+
tabIndex: z ? 0 : void 0,
|
|
82
|
+
children: /* @__PURE__ */ x("table", {
|
|
83
|
+
ref: P,
|
|
84
|
+
className: e("w-max min-w-full border-collapse", g.tableFont ?? "dial-small-text"),
|
|
85
|
+
children: s
|
|
80
86
|
})
|
|
81
87
|
}),
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
children: O ? C.copiedLabel ?? "" : ""
|
|
88
|
+
T?.copyLabel && /* @__PURE__ */ x(m, {
|
|
89
|
+
visuallyHidden: !0,
|
|
90
|
+
as: h.Span,
|
|
91
|
+
children: A ? T.copiedLabel ?? "" : ""
|
|
87
92
|
})
|
|
88
93
|
]
|
|
89
94
|
});
|
|
90
95
|
});
|
|
91
96
|
//#endregion
|
|
92
|
-
export {
|
|
97
|
+
export { s as DEFAULT_MARKDOWN_TABLE_DOWNLOAD_FILENAME, c as MARKDOWN_TABLE_CSV_MIME_TYPE, w as MarkdownTable, l as MarkdownTableCopyFormat, u as serializeMarkdownTableRows };
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
//#region src/components/MarkdownRenderer/Table/MarkdownTable.module.scss
|
|
2
|
+
var e = "_tableContainer_82t2b_1", t = "_tableContainerLight_82t2b_6", n = "_actions_82t2b_10", r = "_copiedIcon_82t2b_15", i = "_scrollContainer_82t2b_19", a = "_tableHeaderCell_82t2b_35", o = "_sectionRow_82t2b_42", s = "_rowDivider_82t2b_46", c = "_row_82t2b_46", l = "_tableScrollFadeEnd_82t2b_56", u = "_tableScrollFadeStart_82t2b_64", d = "_tableScrollFadeBoth_82t2b_72", f = {
|
|
3
|
+
tableContainer: e,
|
|
4
|
+
tableContainerLight: t,
|
|
5
|
+
actions: n,
|
|
6
|
+
copiedIcon: r,
|
|
7
|
+
scrollContainer: i,
|
|
8
|
+
tableHeaderCell: a,
|
|
9
|
+
sectionRow: o,
|
|
10
|
+
rowDivider: s,
|
|
11
|
+
row: c,
|
|
12
|
+
tableScrollFadeEnd: l,
|
|
13
|
+
tableScrollFadeStart: u,
|
|
14
|
+
tableScrollFadeBoth: d
|
|
13
15
|
};
|
|
14
16
|
//#endregion
|
|
15
|
-
export {
|
|
17
|
+
export { n as actions, r as copiedIcon, f as default, c as row, s as rowDivider, i as scrollContainer, o as sectionRow, e as tableContainer, t as tableContainerLight, a as tableHeaderCell, d as tableScrollFadeBoth, l as tableScrollFadeEnd, u as tableScrollFadeStart };
|
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
//#region src/components/MarkdownRenderer/markdown-whitespace.ts
|
|
2
|
-
var e = new Set([
|
|
2
|
+
var e = /* @__PURE__ */ new Set([
|
|
3
3
|
"code",
|
|
4
4
|
"pre",
|
|
5
5
|
"math",
|
|
6
6
|
"script",
|
|
7
7
|
"style"
|
|
8
8
|
]), t = "\xA0", n = / {2,}/g, r = (e) => `${t.repeat(e.length - 1)} `, i = (t) => {
|
|
9
|
-
|
|
10
|
-
t.value = t.value.replace(n, r);
|
|
11
|
-
return;
|
|
12
|
-
}
|
|
13
|
-
t.type === "element" && t.tagName && e.has(t.tagName) || t.children?.forEach(i);
|
|
9
|
+
t.type === "text" && t.value ? t.value = t.value.replace(n, r) : t.type === "element" && t.tagName && e.has(t.tagName) || t.children?.forEach(i);
|
|
14
10
|
}, a = () => (e) => {
|
|
15
11
|
i(e);
|
|
16
12
|
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
/** User-visible strings of `NewVersionAlert`. */
|
|
3
|
+
export interface NewVersionAlertLabels {
|
|
4
|
+
/** Screen heading. Defaults to `'New version available'`. */
|
|
5
|
+
heading?: string;
|
|
6
|
+
/** Explanation under the heading. Defaults to `'Reload the page to get the latest version.'`. */
|
|
7
|
+
message?: string;
|
|
8
|
+
/** Reload button text. Defaults to `'Reload the page'`. */
|
|
9
|
+
reloadLabel?: string;
|
|
10
|
+
}
|
|
11
|
+
/** CSS custom-property overrides for `NewVersionAlert`. */
|
|
12
|
+
export interface NewVersionAlertColors {
|
|
13
|
+
/** Refresh icon color. Defaults to `--text-accent`. */
|
|
14
|
+
icon?: string;
|
|
15
|
+
}
|
|
16
|
+
/** Props for `NewVersionAlert`. */
|
|
17
|
+
export interface NewVersionAlertProps {
|
|
18
|
+
/** Called when the reload button is activated; the host reloads the page. */
|
|
19
|
+
onReload: () => void;
|
|
20
|
+
/** User-visible strings, each with an English default. */
|
|
21
|
+
labels?: NewVersionAlertLabels;
|
|
22
|
+
/** Color overrides applied as CSS custom properties. */
|
|
23
|
+
colors?: NewVersionAlertColors;
|
|
24
|
+
}
|
|
25
|
+
/** Full-screen prompt shown instead of the app once a newer build has been deployed. */
|
|
26
|
+
export declare const NewVersionAlert: FC<NewVersionAlertProps>;
|
|
27
|
+
//# sourceMappingURL=NewVersionAlert.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NewVersionAlert.d.ts","sourceRoot":"","sources":["../../../src/components/NewVersionAlert/NewVersionAlert.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAQ,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAItC,iDAAiD;AACjD,MAAM,WAAW,qBAAqB;IACpC,6DAA6D;IAC7D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iGAAiG;IACjG,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,2DAA2D;IAC3D,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,2DAA2D;AAC3D,MAAM,WAAW,qBAAqB;IACpC,uDAAuD;IACvD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,mCAAmC;AACnC,MAAM,WAAW,oBAAoB;IACnC,6EAA6E;IAC7E,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,0DAA0D;IAC1D,MAAM,CAAC,EAAE,qBAAqB,CAAC;IAC/B,wDAAwD;IACxD,MAAM,CAAC,EAAE,qBAAqB,CAAC;CAChC;AAGD,wFAAwF;AACxF,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CA6BpD,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { buildCssVars as e } from "../../utils/build-css-vars.js";
|
|
2
|
+
import t from "./NewVersionAlert.module.scss.js";
|
|
3
|
+
import { DIAL_ICON_SIZE as n, DIAL_KIT_ICON_STROKE as r, PrimaryButton as i, StateScreen as a } from "@epam/ai-dial-ui-kit";
|
|
4
|
+
import { memo as o } from "react";
|
|
5
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
6
|
+
import { IconRefresh as c } from "@tabler/icons-react";
|
|
7
|
+
//#region src/components/NewVersionAlert/NewVersionAlert.tsx
|
|
8
|
+
var l = o(({ onReload: o, labels: l, colors: u }) => /* @__PURE__ */ s("div", {
|
|
9
|
+
className: "size-full",
|
|
10
|
+
style: e({ "--nva-icon": u?.icon }),
|
|
11
|
+
children: /* @__PURE__ */ s(a, {
|
|
12
|
+
icon: /* @__PURE__ */ s(c, {
|
|
13
|
+
"aria-hidden": "true",
|
|
14
|
+
size: n.LG,
|
|
15
|
+
stroke: r,
|
|
16
|
+
className: t.icon
|
|
17
|
+
}),
|
|
18
|
+
title: l?.heading ?? "New version available",
|
|
19
|
+
description: l?.message ?? "Reload the page to get the latest version.",
|
|
20
|
+
action: /* @__PURE__ */ s(i, {
|
|
21
|
+
autoFocus: !0,
|
|
22
|
+
label: l?.reloadLabel ?? "Reload the page",
|
|
23
|
+
onClick: o
|
|
24
|
+
})
|
|
25
|
+
})
|
|
26
|
+
}));
|
|
27
|
+
//#endregion
|
|
28
|
+
export { l as NewVersionAlert };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { NotificationVariant } from '@epam/ai-dial-ui-kit';
|
|
2
|
+
import { FC, ReactNode } from 'react';
|
|
3
|
+
/** One toast in a `NotificationStack`. */
|
|
4
|
+
export interface NotificationStackItem {
|
|
5
|
+
/** Stable id, handed back to `onDismiss`. */
|
|
6
|
+
id: string;
|
|
7
|
+
/** Kit variant: icon, colour and live-region politeness. */
|
|
8
|
+
variant: NotificationVariant;
|
|
9
|
+
/** Optional heading above the message. */
|
|
10
|
+
title?: string;
|
|
11
|
+
/** Message body. */
|
|
12
|
+
message?: ReactNode;
|
|
13
|
+
/** Optional control at the toast's inline end; an action-bearing toast stays until dismissed. */
|
|
14
|
+
action?: ReactNode;
|
|
15
|
+
/** Trace id shown as a copyable "Request ID" row; a toast carrying one stays until dismissed. */
|
|
16
|
+
requestId?: string;
|
|
17
|
+
}
|
|
18
|
+
/** User-visible strings of `NotificationStack`. */
|
|
19
|
+
export interface NotificationStackLabels {
|
|
20
|
+
/** Label before the request id. Defaults to `'Request ID'`. */
|
|
21
|
+
requestId?: string;
|
|
22
|
+
/** Accessible name of the copy button. Defaults to `'Copy request ID'`. */
|
|
23
|
+
copyRequestIdAriaLabel?: string;
|
|
24
|
+
/** Announcement after a successful copy. Defaults to `'Request ID copied'`. */
|
|
25
|
+
requestIdCopied?: string;
|
|
26
|
+
/** Announcement after a failed copy. Defaults to `"Couldn't copy request ID"`. */
|
|
27
|
+
requestIdCopyFailed?: string;
|
|
28
|
+
/** Accessible name of each toast's close button. Defaults to `'Close notification'`. */
|
|
29
|
+
close?: string;
|
|
30
|
+
}
|
|
31
|
+
/** Props for `NotificationStack`. */
|
|
32
|
+
export interface NotificationStackProps {
|
|
33
|
+
/** Toasts in arrival order; the newest renders last. */
|
|
34
|
+
items: readonly NotificationStackItem[];
|
|
35
|
+
/** Called with a toast's id when it is closed or its dismiss delay ends. */
|
|
36
|
+
onDismiss: (id: string) => void;
|
|
37
|
+
/** User-visible strings, each with an English default. */
|
|
38
|
+
labels?: NotificationStackLabels;
|
|
39
|
+
/** Delay before a plain toast dismisses itself, in milliseconds. Defaults to `5000`. */
|
|
40
|
+
dismissDelayMs?: number;
|
|
41
|
+
/** Classes of the fixed stack, replacing the default bottom-edge (phone) / bottom-end corner (desktop) placement. */
|
|
42
|
+
className?: string;
|
|
43
|
+
/** CSS class applied to the request-id row. Defaults to `'dial-tiny-text'`. */
|
|
44
|
+
requestIdClassName?: string;
|
|
45
|
+
}
|
|
46
|
+
/** Portalled stack of toasts that auto-dismisses plain ones and keeps request-id and action toasts until closed. */
|
|
47
|
+
export declare const NotificationStack: FC<NotificationStackProps>;
|
|
48
|
+
//# sourceMappingURL=NotificationStack.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotificationStack.d.ts","sourceRoot":"","sources":["../../../src/components/NotificationStack/NotificationStack.tsx"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,mBAAmB,EACzB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAOL,KAAK,EAAE,EACP,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAKf,0CAA0C;AAC1C,MAAM,WAAW,qBAAqB;IACpC,6CAA6C;IAC7C,EAAE,EAAE,MAAM,CAAC;IACX,4DAA4D;IAC5D,OAAO,EAAE,mBAAmB,CAAC;IAC7B,0CAA0C;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oBAAoB;IACpB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,iGAAiG;IACjG,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,iGAAiG;IACjG,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,mDAAmD;AACnD,MAAM,WAAW,uBAAuB;IACtC,+DAA+D;IAC/D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2EAA2E;IAC3E,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,+EAA+E;IAC/E,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,kFAAkF;IAClF,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,wFAAwF;IACxF,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,qCAAqC;AACrC,MAAM,WAAW,sBAAsB;IACrC,wDAAwD;IACxD,KAAK,EAAE,SAAS,qBAAqB,EAAE,CAAC;IACxC,4EAA4E;IAC5E,SAAS,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,0DAA0D;IAC1D,MAAM,CAAC,EAAE,uBAAuB,CAAC;IACjC,wFAAwF;IACxF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,qHAAqH;IACrH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+EAA+E;IAC/E,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAkJD,oHAAoH;AACpH,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAwDxD,CAAC"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { mergeClasses as e } from "../../utils/merge-class.js";
|
|
2
|
+
import { copyToClipboard as t } from "../../utils/copy-to-clipboard.js";
|
|
3
|
+
import { DIAL_ICON_SIZE as n, DIAL_KIT_ICON_STROKE as r, GhostIconButton as i, LiveRegion as a, LiveRegionElement as o, Notification as s } from "@epam/ai-dial-ui-kit";
|
|
4
|
+
import { memo as c, useEffect as l, useLayoutEffect as u, useMemo as d, useRef as f, useState as p } from "react";
|
|
5
|
+
import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
6
|
+
import { IconCopy as _ } from "@tabler/icons-react";
|
|
7
|
+
import { createPortal as v } from "react-dom";
|
|
8
|
+
//#region src/components/NotificationStack/NotificationStack.tsx
|
|
9
|
+
var y = 2e3, b = "pointer-events-none fixed inset-x-0 bottom-[calc(1.5rem+env(safe-area-inset-bottom))] z-70 flex max-h-[calc(100dvh-3rem)] flex-col items-center gap-2 overflow-y-auto px-4 desktop:inset-s-auto desktop:me-6 desktop:w-[min(600px,calc(100vw-3rem))] desktop:items-end desktop:px-0", x = ({ requestId: s, labels: c, className: u }) => {
|
|
10
|
+
let [d, f] = p("idle");
|
|
11
|
+
l(() => {
|
|
12
|
+
if (d === "idle") return;
|
|
13
|
+
let e = window.setTimeout(() => f("idle"), y);
|
|
14
|
+
return () => window.clearTimeout(e);
|
|
15
|
+
}, [d]);
|
|
16
|
+
let m = async () => {
|
|
17
|
+
try {
|
|
18
|
+
let e = await t(s);
|
|
19
|
+
f(e ? "copied" : "failed");
|
|
20
|
+
} catch {
|
|
21
|
+
f("failed");
|
|
22
|
+
}
|
|
23
|
+
}, v = "";
|
|
24
|
+
return d === "copied" ? v = c.requestIdCopied : d === "failed" && (v = c.requestIdCopyFailed), /* @__PURE__ */ g("div", {
|
|
25
|
+
className: e("mt-1 flex min-w-0 items-center gap-1", u),
|
|
26
|
+
children: [
|
|
27
|
+
/* @__PURE__ */ g("span", {
|
|
28
|
+
className: "text-start",
|
|
29
|
+
children: [c.requestId, ":"]
|
|
30
|
+
}),
|
|
31
|
+
/* @__PURE__ */ h("span", {
|
|
32
|
+
dir: "ltr",
|
|
33
|
+
className: "min-w-0 truncate",
|
|
34
|
+
children: s
|
|
35
|
+
}),
|
|
36
|
+
/* @__PURE__ */ h(i, {
|
|
37
|
+
icon: /* @__PURE__ */ h(_, {
|
|
38
|
+
size: n.SM,
|
|
39
|
+
"aria-hidden": !0,
|
|
40
|
+
stroke: r
|
|
41
|
+
}),
|
|
42
|
+
"aria-label": c.copyRequestIdAriaLabel,
|
|
43
|
+
onClick: () => void m()
|
|
44
|
+
}),
|
|
45
|
+
/* @__PURE__ */ h(a, {
|
|
46
|
+
visuallyHidden: !0,
|
|
47
|
+
as: o.Span,
|
|
48
|
+
children: v
|
|
49
|
+
})
|
|
50
|
+
]
|
|
51
|
+
});
|
|
52
|
+
}, S = c(({ item: e, onDismiss: t, dismissDelayMs: n, labels: r, requestIdClassName: i }) => {
|
|
53
|
+
l(() => {
|
|
54
|
+
if (e.requestId || e.action) return;
|
|
55
|
+
let r = setTimeout(() => t(e.id), n);
|
|
56
|
+
return () => clearTimeout(r);
|
|
57
|
+
}, [
|
|
58
|
+
e.id,
|
|
59
|
+
e.requestId,
|
|
60
|
+
e.action,
|
|
61
|
+
t,
|
|
62
|
+
n
|
|
63
|
+
]);
|
|
64
|
+
let a = d(() => /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("div", {
|
|
65
|
+
className: "max-h-[30vh] overflow-y-auto wrap-anywhere",
|
|
66
|
+
children: e.message
|
|
67
|
+
}), e.requestId && /* @__PURE__ */ h(x, {
|
|
68
|
+
requestId: e.requestId,
|
|
69
|
+
labels: r,
|
|
70
|
+
className: i
|
|
71
|
+
})] }), [
|
|
72
|
+
e.message,
|
|
73
|
+
e.requestId,
|
|
74
|
+
r,
|
|
75
|
+
i
|
|
76
|
+
]);
|
|
77
|
+
return /* @__PURE__ */ h(s, {
|
|
78
|
+
className: "pointer-events-auto w-full max-w-[min(600px,100%)] desktop:w-auto",
|
|
79
|
+
variant: e.variant,
|
|
80
|
+
title: e.title,
|
|
81
|
+
message: a,
|
|
82
|
+
action: e.action,
|
|
83
|
+
closable: !0,
|
|
84
|
+
closeAriaLabel: r.close,
|
|
85
|
+
onClose: () => t(e.id)
|
|
86
|
+
});
|
|
87
|
+
}), C = c(({ items: e, onDismiss: t, labels: n, dismissDelayMs: r = 5e3, className: i = b, requestIdClassName: a = "dial-tiny-text" }) => {
|
|
88
|
+
let o = f(null), s = f(/* @__PURE__ */ new Set()), c = d(() => ({
|
|
89
|
+
requestId: n?.requestId ?? "Request ID",
|
|
90
|
+
copyRequestIdAriaLabel: n?.copyRequestIdAriaLabel ?? "Copy request ID",
|
|
91
|
+
requestIdCopied: n?.requestIdCopied ?? "Request ID copied",
|
|
92
|
+
requestIdCopyFailed: n?.requestIdCopyFailed ?? "Couldn't copy request ID",
|
|
93
|
+
close: n?.close ?? "Close notification"
|
|
94
|
+
}), [n]);
|
|
95
|
+
return u(() => {
|
|
96
|
+
let t = o.current, n = s.current;
|
|
97
|
+
t && e.some(({ id: e }) => !n.has(e)) && (t.scrollTop = t.scrollHeight), s.current = new Set(e.map(({ id: e }) => e));
|
|
98
|
+
}, [e]), e.length ? v(/* @__PURE__ */ h("div", {
|
|
99
|
+
ref: o,
|
|
100
|
+
className: i,
|
|
101
|
+
children: e.map((e) => /* @__PURE__ */ h(S, {
|
|
102
|
+
item: e,
|
|
103
|
+
onDismiss: t,
|
|
104
|
+
dismissDelayMs: r,
|
|
105
|
+
labels: c,
|
|
106
|
+
requestIdClassName: a
|
|
107
|
+
}, e.id))
|
|
108
|
+
}), document.body) : null;
|
|
109
|
+
});
|
|
110
|
+
//#endregion
|
|
111
|
+
export { C as NotificationStack };
|
|
@@ -3,19 +3,29 @@ import { FC, ReactNode } from 'react';
|
|
|
3
3
|
export interface PanelEmptyStateColors {
|
|
4
4
|
/** Label text color. */
|
|
5
5
|
label?: string;
|
|
6
|
+
/** Description text color. */
|
|
7
|
+
description?: string;
|
|
6
8
|
}
|
|
7
9
|
/** Props for `PanelEmptyState`. */
|
|
8
10
|
export interface PanelEmptyStateProps {
|
|
9
11
|
/** Primary message of the empty state. */
|
|
10
12
|
label: string;
|
|
13
|
+
/** Secondary line under the label, e.g. what to do next. */
|
|
14
|
+
description?: string;
|
|
15
|
+
/** Optional way forward, such as a button, rendered under the text. */
|
|
16
|
+
action?: ReactNode;
|
|
11
17
|
/** Color overrides applied as CSS custom properties. */
|
|
12
18
|
colors?: PanelEmptyStateColors;
|
|
13
|
-
/** CSS class applied to the label text
|
|
19
|
+
/** CSS class applied to the label text, on top of the kit's title typography. */
|
|
14
20
|
labelClassName?: string;
|
|
21
|
+
/** CSS class applied to the description text, on top of the kit's description typography. */
|
|
22
|
+
descriptionClassName?: string;
|
|
15
23
|
/** CSS class applied to the empty-state container. */
|
|
16
24
|
containerClassName?: string;
|
|
17
|
-
/** Decorative illustration above the label. Defaults to the kit's `NoDataContent`
|
|
25
|
+
/** Decorative illustration above the label. Defaults to the kit's `NoDataContent` illustration. */
|
|
18
26
|
icon?: ReactNode;
|
|
27
|
+
/** Announces the empty state to assistive tech as it appears, e.g. after a search. */
|
|
28
|
+
live?: boolean;
|
|
19
29
|
}
|
|
20
30
|
/** Centered empty-state block for use inside a sidebar panel body. */
|
|
21
31
|
export declare const PanelEmptyState: FC<PanelEmptyStateProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PanelEmptyState.d.ts","sourceRoot":"","sources":["../../../src/components/PanelEmptyState/PanelEmptyState.tsx"],"names":[],"mappings":"AACA,OAAO,EAAQ,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAKtD,yEAAyE;AACzE,MAAM,WAAW,qBAAqB;IACpC,wBAAwB;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"PanelEmptyState.d.ts","sourceRoot":"","sources":["../../../src/components/PanelEmptyState/PanelEmptyState.tsx"],"names":[],"mappings":"AACA,OAAO,EAAQ,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAKtD,yEAAyE;AACzE,MAAM,WAAW,qBAAqB;IACpC,wBAAwB;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,8BAA8B;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,mCAAmC;AACnC,MAAM,WAAW,oBAAoB;IACnC,0CAA0C;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,4DAA4D;IAC5D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uEAAuE;IACvE,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,wDAAwD;IACxD,MAAM,CAAC,EAAE,qBAAqB,CAAC;IAC/B,iFAAiF;IACjF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,6FAA6F;IAC7F,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,mGAAmG;IACnG,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,sFAAsF;IACtF,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,sEAAsE;AACtE,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CAmCpD,CAAC"}
|
|
@@ -5,14 +5,24 @@ import { NoDataContent as r } from "@epam/ai-dial-ui-kit";
|
|
|
5
5
|
import { memo as i } from "react";
|
|
6
6
|
import { jsx as a } from "react/jsx-runtime";
|
|
7
7
|
//#region src/components/PanelEmptyState/PanelEmptyState.tsx
|
|
8
|
-
var o = i(({ label: i,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
8
|
+
var o = i(({ label: i, description: o, action: s, colors: c, labelClassName: l, descriptionClassName: u, containerClassName: d, icon: f, live: p }) => {
|
|
9
|
+
let m = t({
|
|
10
|
+
"--pes-label-color": c?.label,
|
|
11
|
+
"--pes-description-color": c?.description
|
|
12
|
+
});
|
|
13
|
+
return /* @__PURE__ */ a("div", {
|
|
14
|
+
style: m,
|
|
15
|
+
children: /* @__PURE__ */ a(r, {
|
|
16
|
+
title: i,
|
|
17
|
+
description: o,
|
|
18
|
+
action: s,
|
|
19
|
+
icon: f,
|
|
20
|
+
live: p,
|
|
21
|
+
titleClassName: e(n.label, l),
|
|
22
|
+
descriptionClassName: e(n.description, u),
|
|
23
|
+
className: d
|
|
24
|
+
})
|
|
25
|
+
});
|
|
26
|
+
});
|
|
17
27
|
//#endregion
|
|
18
28
|
export { o as PanelEmptyState };
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/components/PanelEmptyState/PanelEmptyState.module.scss
|
|
2
|
+
var e = "_label_1qwvo_1", t = "_description_1qwvo_5", n = {
|
|
3
|
+
label: e,
|
|
4
|
+
description: t
|
|
5
|
+
};
|
|
2
6
|
//#endregion
|
|
3
|
-
export {
|
|
7
|
+
export { n as default, t as description, e as label };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
//#region src/components/ResourceSummary/ResourceSummary.module.scss
|
|
2
|
+
var e = "_row_1csuq_1", t = "_versionTag_1csuq_7", n = {
|
|
3
|
+
row: e,
|
|
4
|
+
versionTag: t
|
|
4
5
|
};
|
|
5
6
|
//#endregion
|
|
6
|
-
export {
|
|
7
|
+
export { n as default, e as row, t as versionTag };
|
|
@@ -23,9 +23,11 @@ export interface TextRefinementFieldProps {
|
|
|
23
23
|
feedbackClassName?: string;
|
|
24
24
|
/** Class applied to the error message, after `feedbackClassName`. */
|
|
25
25
|
errorClassName?: string;
|
|
26
|
-
/**
|
|
26
|
+
/** Caption shown at the end of the row below the control, beside the refinement status — e.g. a character counter. */
|
|
27
|
+
caption?: string;
|
|
28
|
+
/** The refinable control, whose id must equal `fieldId`; it is made read-only while a request is pending. */
|
|
27
29
|
children: ReactNode;
|
|
28
30
|
}
|
|
29
|
-
/** Label row with Refine
|
|
31
|
+
/** Label row with Refine, Restore original and Regenerate actions and live feedback around one refinable field. */
|
|
30
32
|
export declare const TextRefinementField: FC<TextRefinementFieldProps>;
|
|
31
33
|
//# sourceMappingURL=TextRefinementField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextRefinementField.d.ts","sourceRoot":"","sources":["../../../src/components/TextRefinementField/TextRefinementField.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TextRefinementField.d.ts","sourceRoot":"","sources":["../../../src/components/TextRefinementField/TextRefinementField.tsx"],"names":[],"mappings":"AAYA,OAAO,EAA2B,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACzE,OAAO,EAEL,KAAK,oBAAoB,EAC1B,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAGzE,uCAAuC;AACvC,MAAM,WAAW,wBAAwB;IACvC,iFAAiF;IACjF,SAAS,EAAE,OAAO,CAAC;IACnB,+EAA+E;IAC/E,OAAO,EAAE,MAAM,CAAC;IAChB,4CAA4C;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,sEAAsE;IACtE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sCAAsC;IACtC,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,8CAA8C;IAC9C,UAAU,EAAE,oBAAoB,CAAC;IACjC,6BAA6B;IAC7B,QAAQ,EAAE,OAAO,CAAC;IAClB,iEAAiE;IACjE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,qEAAqE;IACrE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sHAAsH;IACtH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,6GAA6G;IAC7G,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,mHAAmH;AACnH,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,wBAAwB,CA2K5D,CAAC"}
|