@hkyhy/marsun-components-core 0.1.25 → 0.1.26
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/dist/components/Auth/UserProfileCard/UserProfileCard.d.ts +23 -0
- package/dist/components/Auth/UserProfileCard/UserProfileCard.js +57 -0
- package/dist/components/Auth/UserProfileCard/UserProfileCard.js.map +1 -0
- package/dist/components/Auth/UserProfileCard/index.d.ts +2 -0
- package/dist/components/Auth/UserProfileCard/style.module.scss.js +14 -0
- package/dist/components/Auth/UserProfileCard/style.module.scss.js.map +1 -0
- package/dist/components/Auth/index.d.ts +2 -0
- package/dist/index.js +133 -131
- package/dist/index.js.map +1 -1
- package/dist/marsun-components-core.css +1 -1
- package/dist/styles/global.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { MenuProps } from 'antd';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
export type UserProfileCardProps = {
|
|
4
|
+
/** 主文案(姓名 / 展示名) */
|
|
5
|
+
name: string;
|
|
6
|
+
/** 副文案(邮箱 / 工号等) */
|
|
7
|
+
sub?: string;
|
|
8
|
+
/** 头像文字,默认 name 首字 */
|
|
9
|
+
avatarText?: string;
|
|
10
|
+
/** 侧栏折叠时仅显示头像 */
|
|
11
|
+
collapsed?: boolean;
|
|
12
|
+
/** 自定义下拉菜单;不传则在提供 onLogout 时生成「退出登录」 */
|
|
13
|
+
menuItems?: MenuProps['items'];
|
|
14
|
+
/** 点击默认「退出登录」时回调 */
|
|
15
|
+
onLogout?: () => void;
|
|
16
|
+
className?: string;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* 侧栏底部用户卡片:整卡点击向上展开菜单(默认退出登录)。
|
|
20
|
+
* 纯 UI;是否挂载由业务根据登录态决定。
|
|
21
|
+
*/
|
|
22
|
+
declare const UserProfileCard: React.FC<UserProfileCardProps>;
|
|
23
|
+
export default UserProfileCard;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import { LogOut as u } from "../../Icons/index.js";
|
|
3
|
+
import { Avatar as h, Dropdown as N } from "antd";
|
|
4
|
+
import p from "classnames";
|
|
5
|
+
import { useMemo as v } from "react";
|
|
6
|
+
import r from "./style.module.scss.js";
|
|
7
|
+
const C = ({
|
|
8
|
+
name: l,
|
|
9
|
+
sub: t,
|
|
10
|
+
avatarText: f,
|
|
11
|
+
collapsed: i = !1,
|
|
12
|
+
menuItems: a,
|
|
13
|
+
onLogout: s,
|
|
14
|
+
className: m
|
|
15
|
+
}) => {
|
|
16
|
+
const d = (f || l).trim().charAt(0).toUpperCase() || "U", o = v(() => a || (s ? [
|
|
17
|
+
{
|
|
18
|
+
key: "logout",
|
|
19
|
+
danger: !0,
|
|
20
|
+
label: "退出登录",
|
|
21
|
+
icon: /* @__PURE__ */ e(u, { size: 14 }),
|
|
22
|
+
onClick: s
|
|
23
|
+
}
|
|
24
|
+
] : []), [a, s]), c = /* @__PURE__ */ n(
|
|
25
|
+
"button",
|
|
26
|
+
{
|
|
27
|
+
type: "button",
|
|
28
|
+
className: p(
|
|
29
|
+
r["user-profile-card"],
|
|
30
|
+
i && r["user-profile-card--collapsed"],
|
|
31
|
+
m
|
|
32
|
+
),
|
|
33
|
+
"aria-label": "用户菜单",
|
|
34
|
+
children: [
|
|
35
|
+
/* @__PURE__ */ e(h, { className: r["user-profile-avatar"], size: i ? 32 : 40, children: d }),
|
|
36
|
+
i ? null : /* @__PURE__ */ n("div", { className: r["user-profile-meta"], children: [
|
|
37
|
+
/* @__PURE__ */ e("div", { className: r["user-profile-name"], title: l, children: l }),
|
|
38
|
+
t ? /* @__PURE__ */ e("div", { className: r["user-profile-sub"], title: t, children: t }) : null
|
|
39
|
+
] })
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
return /* @__PURE__ */ e(
|
|
44
|
+
"div",
|
|
45
|
+
{
|
|
46
|
+
className: p(
|
|
47
|
+
r["user-profile-wrap"],
|
|
48
|
+
i && r["user-profile-wrap--collapsed"]
|
|
49
|
+
),
|
|
50
|
+
children: o && o.length > 0 ? /* @__PURE__ */ e(N, { menu: { items: o }, trigger: ["click"], placement: "topLeft", children: c }) : c
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
};
|
|
54
|
+
export {
|
|
55
|
+
C as default
|
|
56
|
+
};
|
|
57
|
+
//# sourceMappingURL=UserProfileCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserProfileCard.js","sources":["../../../../src/components/Auth/UserProfileCard/UserProfileCard.tsx"],"sourcesContent":["import { LogOut } from '../../Icons';\nimport { Avatar, Dropdown } from 'antd';\nimport type { MenuProps } from 'antd';\nimport classNames from 'classnames';\nimport React, { useMemo } from 'react';\nimport styles from './style.module.scss';\n\nexport type UserProfileCardProps = {\n /** 主文案(姓名 / 展示名) */\n name: string;\n /** 副文案(邮箱 / 工号等) */\n sub?: string;\n /** 头像文字,默认 name 首字 */\n avatarText?: string;\n /** 侧栏折叠时仅显示头像 */\n collapsed?: boolean;\n /** 自定义下拉菜单;不传则在提供 onLogout 时生成「退出登录」 */\n menuItems?: MenuProps['items'];\n /** 点击默认「退出登录」时回调 */\n onLogout?: () => void;\n className?: string;\n};\n\n/**\n * 侧栏底部用户卡片:整卡点击向上展开菜单(默认退出登录)。\n * 纯 UI;是否挂载由业务根据登录态决定。\n */\nconst UserProfileCard: React.FC<UserProfileCardProps> = ({\n name,\n sub,\n avatarText,\n collapsed = false,\n menuItems,\n onLogout,\n className,\n}) => {\n const initial = (avatarText || name).trim().charAt(0).toUpperCase() || 'U';\n\n const items = useMemo<MenuProps['items']>(() => {\n if (menuItems) return menuItems;\n if (!onLogout) return [];\n return [\n {\n key: 'logout',\n danger: true,\n label: '退出登录',\n icon: <LogOut size={14} />,\n onClick: onLogout,\n },\n ];\n }, [menuItems, onLogout]);\n\n const card = (\n <button\n type=\"button\"\n className={classNames(\n styles['user-profile-card'],\n collapsed && styles['user-profile-card--collapsed'],\n className,\n )}\n aria-label=\"用户菜单\"\n >\n <Avatar className={styles['user-profile-avatar']} size={collapsed ? 32 : 40}>\n {initial}\n </Avatar>\n {!collapsed ? (\n <div className={styles['user-profile-meta']}>\n <div className={styles['user-profile-name']} title={name}>\n {name}\n </div>\n {sub ? (\n <div className={styles['user-profile-sub']} title={sub}>\n {sub}\n </div>\n ) : null}\n </div>\n ) : null}\n </button>\n );\n\n return (\n <div\n className={classNames(\n styles['user-profile-wrap'],\n collapsed && styles['user-profile-wrap--collapsed'],\n )}\n >\n {items && items.length > 0 ? (\n <Dropdown menu={{ items }} trigger={['click']} placement=\"topLeft\">\n {card}\n </Dropdown>\n ) : (\n card\n )}\n </div>\n );\n};\n\nexport default UserProfileCard;\n"],"names":["UserProfileCard","name","sub","avatarText","collapsed","menuItems","onLogout","className","initial","items","useMemo","jsx","LogOut","card","jsxs","classNames","styles","Avatar","Dropdown"],"mappings":";;;;;;AA2BA,MAAMA,IAAkD,CAAC;AAAA,EACvD,MAAAC;AAAA,EACA,KAAAC;AAAA,EACA,YAAAC;AAAA,EACA,WAAAC,IAAY;AAAA,EACZ,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC;AACF,MAAM;AACJ,QAAMC,KAAWL,KAAcF,GAAM,OAAO,OAAO,CAAC,EAAE,YAAA,KAAiB,KAEjEQ,IAAQC,EAA4B,MACpCL,MACCC,IACE;AAAA,IACL;AAAA,MACE,KAAK;AAAA,MACL,QAAQ;AAAA,MACR,OAAO;AAAA,MACP,MAAM,gBAAAK,EAACC,GAAA,EAAO,MAAM,GAAA,CAAI;AAAA,MACxB,SAASN;AAAA,IAAA;AAAA,EACX,IARoB,CAAA,IAUrB,CAACD,GAAWC,CAAQ,CAAC,GAElBO,IACJ,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAK;AAAA,MACL,WAAWC;AAAA,QACTC,EAAO,mBAAmB;AAAA,QAC1BZ,KAAaY,EAAO,8BAA8B;AAAA,QAClDT;AAAA,MAAA;AAAA,MAEF,cAAW;AAAA,MAEX,UAAA;AAAA,QAAA,gBAAAI,EAACM,GAAA,EAAO,WAAWD,EAAO,qBAAqB,GAAG,MAAMZ,IAAY,KAAK,IACtE,UAAAI,EAAA,CACH;AAAA,QACEJ,IAWE,OAVF,gBAAAU,EAAC,SAAI,WAAWE,EAAO,mBAAmB,GACxC,UAAA;AAAA,UAAA,gBAAAL,EAAC,SAAI,WAAWK,EAAO,mBAAmB,GAAG,OAAOf,GACjD,UAAAA,GACH;AAAA,UACCC,IACC,gBAAAS,EAAC,OAAA,EAAI,WAAWK,EAAO,kBAAkB,GAAG,OAAOd,GAChD,UAAAA,EAAA,CACH,IACE;AAAA,QAAA,EAAA,CACN;AAAA,MACE;AAAA,IAAA;AAAA,EAAA;AAIR,SACE,gBAAAS;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWI;AAAA,QACTC,EAAO,mBAAmB;AAAA,QAC1BZ,KAAaY,EAAO,8BAA8B;AAAA,MAAA;AAAA,MAGnD,eAASP,EAAM,SAAS,IACvB,gBAAAE,EAACO,KAAS,MAAM,EAAE,OAAAT,EAAA,GAAS,SAAS,CAAC,OAAO,GAAG,WAAU,WACtD,aACH,IAEAI;AAAA,IAAA;AAAA,EAAA;AAIR;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const r = {
|
|
2
|
+
"user-profile-wrap": "_user-profile-wrap_1rbrn_1",
|
|
3
|
+
"user-profile-wrap--collapsed": "_user-profile-wrap--collapsed_1rbrn_6",
|
|
4
|
+
"user-profile-card": "_user-profile-card_1rbrn_12",
|
|
5
|
+
"user-profile-card--collapsed": "_user-profile-card--collapsed_1rbrn_30",
|
|
6
|
+
"user-profile-avatar": "_user-profile-avatar_1rbrn_36",
|
|
7
|
+
"user-profile-meta": "_user-profile-meta_1rbrn_43",
|
|
8
|
+
"user-profile-name": "_user-profile-name_1rbrn_48",
|
|
9
|
+
"user-profile-sub": "_user-profile-sub_1rbrn_58"
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
r as default
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=style.module.scss.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"style.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export { default as PermissionGuard } from './PermissionGuard';
|
|
2
2
|
export { default as ProtectedRoute } from './ProtectedRoute';
|
|
3
3
|
export { hasPermission } from './hasPermission';
|
|
4
|
+
export { UserProfileCard } from './UserProfileCard';
|
|
5
|
+
export type { UserProfileCardProps } from './UserProfileCard';
|
package/dist/index.js
CHANGED
|
@@ -88,32 +88,33 @@ import { default as Ba } from "./components/Table/Table.js";
|
|
|
88
88
|
import { default as va } from "./components/Tag/Tags/index.js";
|
|
89
89
|
import { default as Ha } from "./components/AgentHub/Chat/Detail/ThinkingSection/index.js";
|
|
90
90
|
import { default as Ga } from "./components/TooltipInfo/TooltipInfo.js";
|
|
91
|
-
import { default as Va } from "./components/
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
101
|
-
import {
|
|
102
|
-
import {
|
|
103
|
-
import {
|
|
104
|
-
import {
|
|
105
|
-
import {
|
|
106
|
-
import {
|
|
107
|
-
import {
|
|
108
|
-
import {
|
|
109
|
-
import {
|
|
110
|
-
import {
|
|
111
|
-
import {
|
|
112
|
-
import {
|
|
113
|
-
import {
|
|
114
|
-
import {
|
|
115
|
-
import {
|
|
116
|
-
import {
|
|
91
|
+
import { default as Va } from "./components/Auth/UserProfileCard/UserProfileCard.js";
|
|
92
|
+
import { default as qa } from "./components/VirtualScrollbar/VirtualScrollbar/index.js";
|
|
93
|
+
import { CHUNK_METHOD_OPTIONS as Wa, EMBEDDING_MODEL_OPTIONS as ja, PARSE_STATUS_CONFIG as Ja } from "./components/AgentHub/KnowledgeBase/constants/types.js";
|
|
94
|
+
import { CITATION_LINK_PREFIX as Za, citationDisplayNumber as $a, citationIdToIndex as es, countUniqueCitedSources as ts, detectCitationIdBase as os, extractCitationIdsFromContent as rs, extractCitationTitle as as, formatCitationDocBasename as ss, formatCitationMeta as is, formatCitationPositions as ls, injectCitationMarkdownLinks as ms, normalizeCitation as ns, parseCitationLinkHref as fs, prepareCitationContent as ps, resolveCitationTitle as ds, sanitizeCitationHtml as us, stripCitationFrontmatter as xs } from "./components/AgentHub/Chat/utils/citationContent.js";
|
|
95
|
+
import { CancelButton as Cs, Form as Ss, FormInfo as Fs, FormModal as Ps, FormSteps as gs, FormStepsModal as Ts, Input as hs, InputNumber as Is, List as Ms, MultiField as Ds, ResetButton as Rs, Select as Es, SubmitButton as As, Switch as Ls, TableList as Os, TextArea as bs } from "./components/Form/kneFormInfo.js";
|
|
96
|
+
import { FileItem as Us } from "./components/File/FileItem/index.js";
|
|
97
|
+
import { FilterProvider as ys, useFilterRegister as Bs, useFilterState as Ns } from "./components/Filter/useFilterState.js";
|
|
98
|
+
import { GroupList as ks, RULES as Hs, default as zs, compileErrMsg as Gs, computedFieldValueFromFormData as Ks, computedFormDataFormState as Vs, filterEmpty as Ys, findField as qs, formUtils as Xs, interceptors as Ws, isEmpty as js, isNotEmpty as Js, matchFields as Qs, preset as Zs, stateToError as $s, stateToIsPass as ei, useField as ti, useFormApi as oi, useFormContext as ri, useGroup as ai, useReset as si, useSubmit as ii } from "@kne/react-form";
|
|
99
|
+
import { PageShellProvider as mi, usePageShell as ni, usePageShellLoading as fi } from "./components/Layout/PageShell/PageShellContext.js";
|
|
100
|
+
import { animateScrollFromTopToBottom as di, animateScrollTo as ui, getScrollBottom as xi } from "./components/AgentHub/Chat/utils/smoothScroll.js";
|
|
101
|
+
import { downloadFileItem as Ci, getFileDownloadAuthHeaders as Si, getFileDownloadUrl as Fi } from "./components/File/utils/download.js";
|
|
102
|
+
import { extractCitations as gi, formatSessionTime as Ti, getSessionDisplayName as hi, isWelcomeOnlyMessages as Ii, parseSessionMessages as Mi, toDisplayMessages as Di } from "./components/AgentHub/Chat/utils/sessionMessages.js";
|
|
103
|
+
import { formatLlmTextToHtml as Ei, parseLlmText as Ai } from "./components/LlmFormattedText/parseLlmText.js";
|
|
104
|
+
import { getFileExtension as Oi, getFileIcon as bi, getFileTypeName as _i, normalizeExtension as Ui, normalizeFileDisplayItem as wi, parseFileNameFromUrl as yi } from "./components/File/fileDisplay.js";
|
|
105
|
+
import { hasCitationMarkers as Ni, normalizeAssistantMarkdown as vi, normalizeDisplayText as ki, parseAssistantContent as Hi } from "./components/AgentHub/Chat/utils/messageContent.js";
|
|
106
|
+
import { hasPermission as Gi } from "./components/Auth/hasPermission.js";
|
|
107
|
+
import { resolveHidden as Vi } from "./components/Filter/types.js";
|
|
108
|
+
import { sanitizeMermaidChart as qi, stripProseFromMermaid as Xi } from "./components/AgentHub/Chat/utils/sanitizeMermaidChart.js";
|
|
109
|
+
import { useAutoScrollToBottom as ji } from "./components/AgentHub/Chat/hooks/useAutoScrollToBottom.js";
|
|
110
|
+
import { useChat as Qi } from "./components/AgentHub/Chat/hooks/useChat.js";
|
|
111
|
+
import { useChatSessions as $i } from "./components/AgentHub/Chat/hooks/useChatSessions.js";
|
|
112
|
+
import { useCitationPanel as tl } from "./components/AgentHub/Chat/hooks/useCitationPanel.js";
|
|
113
|
+
import { useKBDocuments as rl } from "./components/AgentHub/KnowledgeBase/hooks/useKBDocuments.js";
|
|
114
|
+
import { useKnowledgeBase as sl } from "./components/AgentHub/KnowledgeBase/hooks/useKnowledgeBase.js";
|
|
115
|
+
import { useMarsunAuth as ll, useMarsunCore as ml, useMarsunFetch as nl } from "./provider/context.js";
|
|
116
|
+
import { useSSECompletion as pl } from "./components/AgentHub/Chat/hooks/useSSECompletion.js";
|
|
117
|
+
import { useTypewriter as ul } from "./components/AgentHub/Chat/hooks/useTypewriter.js";
|
|
117
118
|
export {
|
|
118
119
|
ao as AgentHubAccessGuard,
|
|
119
120
|
io as AgentHubIndexRedirect,
|
|
@@ -124,9 +125,9 @@ export {
|
|
|
124
125
|
Be as BarChart3,
|
|
125
126
|
Ne as BookOpen,
|
|
126
127
|
ve as Bot,
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
128
|
+
Wa as CHUNK_METHOD_OPTIONS,
|
|
129
|
+
Za as CITATION_LINK_PREFIX,
|
|
130
|
+
Cs as CancelButton,
|
|
130
131
|
uo as ChatAgentFab,
|
|
131
132
|
co as ChatAgentFabLayout,
|
|
132
133
|
So as ChatAssistantForm,
|
|
@@ -170,7 +171,7 @@ export {
|
|
|
170
171
|
ot as Database,
|
|
171
172
|
$o as DocumentTable,
|
|
172
173
|
rt as Download,
|
|
173
|
-
|
|
174
|
+
ja as EMBEDDING_MODEL_OPTIONS,
|
|
174
175
|
ce as EMPLOYEE_ID_FORMAT_MESSAGE,
|
|
175
176
|
Ce as EMPLOYEE_ID_SIX_DIGIT_PATTERN,
|
|
176
177
|
tr as Empty,
|
|
@@ -180,7 +181,7 @@ export {
|
|
|
180
181
|
st as File,
|
|
181
182
|
it as FileArchive,
|
|
182
183
|
lt as FileImage,
|
|
183
|
-
|
|
184
|
+
Us as FileItemView,
|
|
184
185
|
lr as FileLink,
|
|
185
186
|
nr as FilePreview,
|
|
186
187
|
pr as FilePreviewLink,
|
|
@@ -194,7 +195,7 @@ export {
|
|
|
194
195
|
Ir as FilterNumberRange,
|
|
195
196
|
Dr as FilterPanel,
|
|
196
197
|
Er as FilterPopover,
|
|
197
|
-
|
|
198
|
+
ys as FilterProvider,
|
|
198
199
|
Lr as FilterSelect,
|
|
199
200
|
br as FilterTreeSelect,
|
|
200
201
|
Ur as FilterTrigger,
|
|
@@ -202,12 +203,12 @@ export {
|
|
|
202
203
|
pt as Flame,
|
|
203
204
|
dt as Folder,
|
|
204
205
|
ut as FolderOpen,
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
206
|
+
Ss as Form,
|
|
207
|
+
Fs as FormInfo,
|
|
208
|
+
Ps as FormModal,
|
|
209
|
+
gs as FormSteps,
|
|
210
|
+
Ts as FormStepsModal,
|
|
211
|
+
ks as GroupList,
|
|
211
212
|
xt as Hash,
|
|
212
213
|
ct as House,
|
|
213
214
|
Ct as ICON_NAMES,
|
|
@@ -215,8 +216,8 @@ export {
|
|
|
215
216
|
Ft as Import,
|
|
216
217
|
Pt as Inbox,
|
|
217
218
|
gt as Info,
|
|
218
|
-
|
|
219
|
-
|
|
219
|
+
hs as Input,
|
|
220
|
+
Is as InputNumber,
|
|
220
221
|
yr as KBFilterBar,
|
|
221
222
|
Nr as KBFormModal,
|
|
222
223
|
kr as KnowledgeBaseForm,
|
|
@@ -224,7 +225,7 @@ export {
|
|
|
224
225
|
l as LAYOUT_TOKENS,
|
|
225
226
|
Tt as LayoutDashboard,
|
|
226
227
|
ht as LayoutGrid,
|
|
227
|
-
|
|
228
|
+
Ms as List,
|
|
228
229
|
Kr as LlmFormattedText,
|
|
229
230
|
It as Loader2,
|
|
230
231
|
Mt as Lock,
|
|
@@ -240,13 +241,13 @@ export {
|
|
|
240
241
|
At as MessageSquare,
|
|
241
242
|
Lt as Minimize2,
|
|
242
243
|
ra as ModulePageShell,
|
|
243
|
-
|
|
244
|
+
Ds as MultiField,
|
|
244
245
|
m as PALETTE,
|
|
245
|
-
|
|
246
|
+
Ja as PARSE_STATUS_CONFIG,
|
|
246
247
|
z as PERMISSIONS_STORAGE_KEY,
|
|
247
248
|
G as PERMISSION_DEFINITIONS_KEY,
|
|
248
249
|
sa as PageHeaderLayout,
|
|
249
|
-
|
|
250
|
+
mi as PageShellProvider,
|
|
250
251
|
la as PageSpin,
|
|
251
252
|
Ot as PanelLeftClose,
|
|
252
253
|
bt as PanelLeftOpen,
|
|
@@ -259,13 +260,13 @@ export {
|
|
|
259
260
|
yt as Presentation,
|
|
260
261
|
ca as ProtectedRoute,
|
|
261
262
|
L as REDIRECT_URL_PARAM,
|
|
262
|
-
|
|
263
|
-
|
|
263
|
+
Hs as RULES,
|
|
264
|
+
zs as ReactForm,
|
|
264
265
|
Bt as RefreshCw,
|
|
265
|
-
|
|
266
|
+
Rs as ResetButton,
|
|
266
267
|
Nt as RotateCw,
|
|
267
268
|
Sa as SEMANTIC_COLORS,
|
|
268
|
-
|
|
269
|
+
Es as Select,
|
|
269
270
|
Fa as SemanticTag,
|
|
270
271
|
vt as Send,
|
|
271
272
|
ga as SessionActionButtons,
|
|
@@ -282,12 +283,12 @@ export {
|
|
|
282
283
|
Oa as StatPendingBreakdown,
|
|
283
284
|
_a as StepForm,
|
|
284
285
|
wa as StepModal,
|
|
285
|
-
|
|
286
|
-
|
|
286
|
+
As as SubmitButton,
|
|
287
|
+
Ls as Switch,
|
|
287
288
|
Ba as Table,
|
|
288
|
-
|
|
289
|
+
Os as TableList,
|
|
289
290
|
va as Tags,
|
|
290
|
-
|
|
291
|
+
bs as TextArea,
|
|
291
292
|
Ha as ThinkingSection,
|
|
292
293
|
Yt as ThumbsDown,
|
|
293
294
|
qt as ThumbsUp,
|
|
@@ -299,12 +300,13 @@ export {
|
|
|
299
300
|
Jt as Upload,
|
|
300
301
|
Qt as User,
|
|
301
302
|
Zt as UserPlus,
|
|
303
|
+
Va as UserProfileCard,
|
|
302
304
|
$t as UserRoundCog,
|
|
303
305
|
eo as Users,
|
|
304
|
-
|
|
306
|
+
qa as VirtualScrollbar,
|
|
305
307
|
to as X,
|
|
306
|
-
|
|
307
|
-
|
|
308
|
+
di as animateScrollFromTopToBottom,
|
|
309
|
+
ui as animateScrollTo,
|
|
308
310
|
o as applyCssTokenOverrides,
|
|
309
311
|
r as applyThemeToCssVariables,
|
|
310
312
|
O as buildAbsoluteLocationRedirectUrl,
|
|
@@ -315,131 +317,131 @@ export {
|
|
|
315
317
|
b as buildLocationRedirectUrl,
|
|
316
318
|
_ as buildLoginPath,
|
|
317
319
|
ge as buildPersonOptionLookup,
|
|
318
|
-
|
|
319
|
-
|
|
320
|
+
$a as citationDisplayNumber,
|
|
321
|
+
es as citationIdToIndex,
|
|
320
322
|
N as clearLastActivity,
|
|
321
323
|
le as collectDepartmentIds,
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
324
|
+
Gs as compileErrMsg,
|
|
325
|
+
Ks as computedFieldValueFromFormData,
|
|
326
|
+
Vs as computedFormDataFormState,
|
|
327
|
+
ts as countUniqueCitedSources,
|
|
326
328
|
oo as createIcon,
|
|
327
329
|
Q as createMarsunRequest,
|
|
328
330
|
Te as createPersonSelectFilter,
|
|
329
|
-
|
|
330
|
-
|
|
331
|
+
os as detectCitationIdBase,
|
|
332
|
+
Ci as downloadFileItem,
|
|
331
333
|
Se as employeeIdFormatRule,
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
334
|
+
rs as extractCitationIdsFromContent,
|
|
335
|
+
as as extractCitationTitle,
|
|
336
|
+
gi as extractCitations,
|
|
335
337
|
me as extractDepartmentSubtree,
|
|
336
338
|
f as fetchWithTimeout,
|
|
337
|
-
|
|
339
|
+
Ys as filterEmpty,
|
|
338
340
|
ne as findDepartmentRootId,
|
|
339
|
-
|
|
341
|
+
qs as findField,
|
|
340
342
|
fe as flattenDepartments,
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
343
|
+
Xs as formUtils,
|
|
344
|
+
ss as formatCitationDocBasename,
|
|
345
|
+
is as formatCitationMeta,
|
|
346
|
+
ls as formatCitationPositions,
|
|
345
347
|
C as formatFileSize,
|
|
346
|
-
|
|
348
|
+
Ei as formatLlmTextToHtml,
|
|
347
349
|
he as formatPersonValueLabel,
|
|
348
350
|
D as formatPickerValue,
|
|
349
|
-
|
|
351
|
+
Ti as formatSessionTime,
|
|
350
352
|
a as generateTheme,
|
|
351
353
|
re as getDepartmentPath,
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
354
|
+
Si as getFileDownloadAuthHeaders,
|
|
355
|
+
Fi as getFileDownloadUrl,
|
|
356
|
+
Oi as getFileExtension,
|
|
357
|
+
bi as getFileIcon,
|
|
358
|
+
_i as getFileTypeName,
|
|
357
359
|
v as getLastActivityTime,
|
|
358
360
|
pe as getNormalUserAccessibleDepartmentIds,
|
|
359
361
|
de as getNormalUserDepartmentTree,
|
|
360
|
-
|
|
361
|
-
|
|
362
|
+
xi as getScrollBottom,
|
|
363
|
+
hi as getSessionDisplayName,
|
|
362
364
|
V as getStoredPermissionMap,
|
|
363
365
|
Y as getStoredUserPermissions,
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
366
|
+
Ni as hasCitationMarkers,
|
|
367
|
+
Gi as hasPermission,
|
|
368
|
+
ms as injectCitationMarkdownLinks,
|
|
369
|
+
Ws as interceptors,
|
|
368
370
|
ue as intersectDepartmentIds,
|
|
369
|
-
|
|
370
|
-
|
|
371
|
+
js as isEmpty,
|
|
372
|
+
Js as isNotEmpty,
|
|
371
373
|
Fe as isValidEmployeeIdFormat,
|
|
372
374
|
R as isValidPickerValue,
|
|
373
|
-
|
|
375
|
+
Ii as isWelcomeOnlyMessages,
|
|
374
376
|
q as loadPermissionDefinitions,
|
|
375
377
|
X as loadUserRolePermissions,
|
|
376
|
-
|
|
378
|
+
Qs as matchFields,
|
|
377
379
|
Ie as matchPersonOptionSearch,
|
|
378
380
|
ae as mergeDepartmentPathMaps,
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
381
|
+
vi as normalizeAssistantMarkdown,
|
|
382
|
+
ns as normalizeCitation,
|
|
383
|
+
ki as normalizeDisplayText,
|
|
384
|
+
Ui as normalizeExtension,
|
|
385
|
+
wi as normalizeFileDisplayItem,
|
|
384
386
|
Me as normalizePersonDtos,
|
|
385
387
|
De as normalizeRawPersonList,
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
388
|
+
Hi as parseAssistantContent,
|
|
389
|
+
fs as parseCitationLinkHref,
|
|
390
|
+
yi as parseFileNameFromUrl,
|
|
391
|
+
Ai as parseLlmText,
|
|
390
392
|
E as parsePickerValue,
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
393
|
+
Mi as parseSessionMessages,
|
|
394
|
+
ps as prepareCitationContent,
|
|
395
|
+
Zs as preset,
|
|
394
396
|
U as readRedirectUrlFromSearch,
|
|
395
397
|
F as recentDayRange,
|
|
396
398
|
P as recentDayRangeStrings,
|
|
397
399
|
g as recentYearRange,
|
|
398
|
-
|
|
399
|
-
|
|
400
|
+
ds as resolveCitationTitle,
|
|
401
|
+
Vi as resolveHidden,
|
|
400
402
|
u as resolveMaybeFn,
|
|
401
403
|
Re as resolvePersonDepartmentName,
|
|
402
404
|
w as resolveRedirectUrl,
|
|
403
405
|
Ee as resolveSelectPersonOption,
|
|
404
406
|
x as resolveVisible,
|
|
405
|
-
|
|
406
|
-
|
|
407
|
+
us as sanitizeCitationHtml,
|
|
408
|
+
qi as sanitizeMermaidChart,
|
|
407
409
|
W as savePermissionDefinitions,
|
|
408
410
|
j as saveUserRolePermissions,
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
411
|
+
$s as stateToError,
|
|
412
|
+
ei as stateToIsPass,
|
|
413
|
+
xs as stripCitationFrontmatter,
|
|
414
|
+
Xi as stripProseFromMermaid,
|
|
413
415
|
T as toApiStartEnd,
|
|
414
416
|
h as toDateRange,
|
|
415
417
|
I as toDateTimeRange,
|
|
416
418
|
se as toDepartmentPathMaps,
|
|
417
|
-
|
|
419
|
+
Di as toDisplayMessages,
|
|
418
420
|
Ae as toPersonOptions,
|
|
419
421
|
Le as toPersonSelectOptions,
|
|
420
422
|
Oe as toReviewerPersonOptions,
|
|
421
423
|
k as touchLastActivity,
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
424
|
+
ji as useAutoScrollToBottom,
|
|
425
|
+
Qi as useChat,
|
|
426
|
+
$i as useChatSessions,
|
|
427
|
+
tl as useCitationPanel,
|
|
426
428
|
p as useFetchData,
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
429
|
+
ti as useField,
|
|
430
|
+
Bs as useFilterRegister,
|
|
431
|
+
Ns as useFilterState,
|
|
432
|
+
oi as useFormApi,
|
|
433
|
+
ri as useFormContext,
|
|
434
|
+
ai as useGroup,
|
|
435
|
+
rl as useKBDocuments,
|
|
436
|
+
sl as useKnowledgeBase,
|
|
437
|
+
ll as useMarsunAuth,
|
|
438
|
+
ml as useMarsunCore,
|
|
439
|
+
nl as useMarsunFetch,
|
|
440
|
+
ni as usePageShell,
|
|
441
|
+
fi as usePageShellLoading,
|
|
442
|
+
si as useReset,
|
|
443
|
+
pl as useSSECompletion,
|
|
444
|
+
ii as useSubmit,
|
|
445
|
+
ul as useTypewriter
|
|
444
446
|
};
|
|
445
447
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|