@ant-design/agentic-ui 2.29.12 → 2.29.13
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/AILabel/style.d.ts +3 -0
- package/dist/AgentRunBar/style.d.ts +3 -0
- package/dist/AgenticLayout/style.d.ts +3 -0
- package/dist/AnswerAlert/style.d.ts +3 -0
- package/dist/BackTo/style.d.ts +3 -0
- package/dist/Bubble/List/style.d.ts +3 -0
- package/dist/Bubble/MessagesContent/VoiceButton/style.d.ts +3 -0
- package/dist/Bubble/MessagesContent/docInfoStyle.d.ts +3 -0
- package/dist/Bubble/MessagesContent/style.d.ts +3 -0
- package/dist/Bubble/style.d.ts +3 -0
- package/dist/ChatBootPage/ButtonTabGroupStyle.d.ts +3 -0
- package/dist/ChatBootPage/ButtonTabStyle.d.ts +6 -0
- package/dist/ChatBootPage/CaseReplyStyle.d.ts +3 -0
- package/dist/ChatBootPage/style.d.ts +3 -0
- package/dist/ChatLayout/style.d.ts +3 -0
- package/dist/Components/ActionIconBox/style.d.ts +3 -0
- package/dist/Components/ActionItemBox/ActionItemBox.d.ts +1 -1
- package/dist/Components/ActionItemBox/style.d.ts +3 -0
- package/dist/Components/Button/IconButton/style.d.ts +3 -0
- package/dist/Components/Button/SwitchButton/style.d.ts +3 -0
- package/dist/Components/Button/ToggleButton/style.d.ts +3 -0
- package/dist/Components/GradientText/index.d.ts +1 -1
- package/dist/Components/GradientText/style.d.ts +3 -0
- package/dist/Components/LayoutHeader/style.d.ts +3 -0
- package/dist/Components/Loading/Loading.d.ts +1 -1
- package/dist/Components/Loading/style.d.ts +3 -0
- package/dist/Components/SuggestionList/style.d.ts +3 -0
- package/dist/Components/TextAnimate/index.d.ts +1 -1
- package/dist/Components/TextAnimate/style.d.ts +3 -0
- package/dist/Components/TypingAnimation/index.d.ts +1 -1
- package/dist/Components/TypingAnimation/style.d.ts +3 -0
- package/dist/Components/VisualList/style.d.ts +3 -0
- package/dist/Components/lotties/TextLoading/style.d.ts +3 -0
- package/dist/Components/lotties/bubble-actions/Abstract/style.d.ts +3 -0
- package/dist/History/components/HistoryItem.js +3 -0
- package/dist/History/components/NewChatComponent.style.d.ts +3 -0
- package/dist/History/style.d.ts +3 -0
- package/dist/History/style.js +2 -2
- package/dist/Hooks/useLanguage.d.ts +1 -0
- package/dist/Hooks/useStyle/index.d.ts +3 -0
- package/dist/Hooks/useStyle/index.js +7 -4
- package/dist/I18n/locales.d.ts +1 -0
- package/dist/I18n/locales.js +2 -0
- package/dist/MarkdownEditor/editor/Editor.d.ts +1 -2
- package/dist/MarkdownEditor/editor/Editor.js +16 -5
- package/dist/MarkdownEditor/editor/components/CommentList/style.d.ts +3 -0
- package/dist/MarkdownEditor/editor/components/ContributorAvatar/style.d.ts +3 -0
- package/dist/MarkdownEditor/editor/components/LazyElement/style.d.ts +3 -0
- package/dist/MarkdownEditor/editor/components/fntTag/index.d.ts +1 -1
- package/dist/MarkdownEditor/editor/components/fntTag/style.d.ts +3 -0
- package/dist/MarkdownEditor/editor/elements/Blockquote/ReadonlyBlockquote.js +0 -5
- package/dist/MarkdownEditor/editor/elements/Blockquote/index.js +0 -10
- package/dist/MarkdownEditor/editor/elements/Break/ReadonlyBreak.js +0 -2
- package/dist/MarkdownEditor/editor/elements/Break/index.js +0 -2
- package/dist/MarkdownEditor/editor/elements/Card/ReadonlyCard.js +0 -6
- package/dist/MarkdownEditor/editor/elements/Card/index.js +0 -11
- package/dist/MarkdownEditor/editor/elements/Code/ReadonlyCode.js +4 -9
- package/dist/MarkdownEditor/editor/elements/Code/index.js +4 -9
- package/dist/MarkdownEditor/editor/elements/Comment/index.d.ts +0 -2
- package/dist/MarkdownEditor/editor/elements/Comment/index.js +1 -1
- package/dist/MarkdownEditor/editor/elements/CommentLeaf/index.d.ts +1 -2
- package/dist/MarkdownEditor/editor/elements/CommentLeaf/index.js +3 -9
- package/dist/MarkdownEditor/editor/elements/FncLeaf/index.d.ts +1 -2
- package/dist/MarkdownEditor/editor/elements/FncLeaf/index.js +2 -32
- package/dist/MarkdownEditor/editor/elements/FootnoteDefinition/ReadonlyFootnoteDefinition.js +0 -7
- package/dist/MarkdownEditor/editor/elements/FootnoteDefinition/index.js +0 -1
- package/dist/MarkdownEditor/editor/elements/FootnoteReference/ReadonlyFootnoteReference.js +0 -3
- package/dist/MarkdownEditor/editor/elements/FootnoteReference/index.js +0 -1
- package/dist/MarkdownEditor/editor/elements/Head/ReadonlyHead.js +0 -4
- package/dist/MarkdownEditor/editor/elements/Head/index.js +0 -9
- package/dist/MarkdownEditor/editor/elements/Hr/ReadonlyHr.js +0 -2
- package/dist/MarkdownEditor/editor/elements/Hr/index.js +0 -2
- package/dist/MarkdownEditor/editor/elements/Image/index.js +2 -31
- package/dist/MarkdownEditor/editor/elements/InlineKatex/ReadonlyInlineKatex.js +0 -5
- package/dist/MarkdownEditor/editor/elements/LinkCard/ReadonlyLinkCard.js +11 -25
- package/dist/MarkdownEditor/editor/elements/LinkCard/index.js +11 -25
- package/dist/MarkdownEditor/editor/elements/List/List.d.ts +0 -3
- package/dist/MarkdownEditor/editor/elements/List/List.js +5 -36
- package/dist/MarkdownEditor/editor/elements/List/ListItem.js +4 -18
- package/dist/MarkdownEditor/editor/elements/List/ReadonlyList.js +4 -21
- package/dist/MarkdownEditor/editor/elements/List/ReadonlyListItem.js +3 -14
- package/dist/MarkdownEditor/editor/elements/Mermaid/ReadonlyMermaid.js +5 -12
- package/dist/MarkdownEditor/editor/elements/Mermaid/index.js +5 -12
- package/dist/MarkdownEditor/editor/elements/Paragraph/ReadonlyParagraph.js +0 -9
- package/dist/MarkdownEditor/editor/elements/Paragraph/index.js +0 -1
- package/dist/MarkdownEditor/editor/elements/Schema/ReadonlySchema.js +0 -13
- package/dist/MarkdownEditor/editor/elements/Schema/index.js +0 -3
- package/dist/MarkdownEditor/editor/elements/Table/ReadonlyTableComponent.d.ts +0 -1
- package/dist/MarkdownEditor/editor/elements/Table/ReadonlyTableComponent.js +9 -7
- package/dist/MarkdownEditor/editor/elements/Table/SimpleTable.js +3 -48
- package/dist/MarkdownEditor/editor/elements/Table/Table.d.ts +1 -2
- package/dist/MarkdownEditor/editor/elements/Table/Table.js +8 -7
- package/dist/MarkdownEditor/editor/elements/Table/TableCellIndex/index.js +7 -9
- package/dist/MarkdownEditor/editor/elements/Table/TableCellIndexSpacer/index.js +7 -9
- package/dist/MarkdownEditor/editor/elements/Table/TableRowIndex/index.js +3 -5
- package/dist/MarkdownEditor/editor/elements/Table/Td/index.js +6 -8
- package/dist/MarkdownEditor/editor/elements/TagPopup/index.js +8 -10
- package/dist/MarkdownEditor/editor/elements/index.d.ts +1 -1
- package/dist/MarkdownEditor/editor/elements/index.js +83 -105
- package/dist/MarkdownEditor/editor/parser/parse/parseTable.d.ts +3 -2
- package/dist/MarkdownEditor/editor/parser/parse/parseTable.js +14 -3
- package/dist/MarkdownEditor/editor/parser/parserMarkdownToSlateNode.js +12 -2
- package/dist/MarkdownEditor/editor/plugins/useKeyboard.js +4 -1
- package/dist/MarkdownEditor/editor/plugins/useOnchange.js +9 -2
- package/dist/MarkdownEditor/editor/style.d.ts +3 -0
- package/dist/MarkdownEditor/editor/tools/ToolBar/FloatBar.js +1 -2
- package/dist/MarkdownEditor/editor/tools/ToolBar/ReadonlyBaseBar.d.ts +0 -1
- package/dist/MarkdownEditor/editor/tools/ToolBar/ReadonlyBaseBar.js +3 -4
- package/dist/MarkdownEditor/editor/tools/ToolBar/floatBarStyle.d.ts +3 -0
- package/dist/MarkdownEditor/editor/tools/ToolBar/toolBarStyle.d.ts +3 -0
- package/dist/MarkdownEditor/editor/tools/insertAutocompleteStyle.d.ts +3 -0
- package/dist/MarkdownEditor/style.d.ts +3 -0
- package/dist/MarkdownEditor/style.js +575 -3
- package/dist/MarkdownInputField/AttachmentButton/AttachmentButtonPopover.d.ts +3 -0
- package/dist/MarkdownInputField/AttachmentButton/AttachmentButtonPopover.js +47 -10
- package/dist/MarkdownInputField/AttachmentButton/AttachmentFileList/style.d.ts +3 -0
- package/dist/MarkdownInputField/AttachmentButton/index.d.ts +4 -0
- package/dist/MarkdownInputField/AttachmentButton/index.js +5 -3
- package/dist/MarkdownInputField/AttachmentButton/style.d.ts +3 -0
- package/dist/MarkdownInputField/BeforeToolContainer/BeforeToolContainer.d.ts +1 -1
- package/dist/MarkdownInputField/BorderBeamAnimation.js +47 -25
- package/dist/MarkdownInputField/FileMapView/style.d.ts +3 -0
- package/dist/MarkdownInputField/RefinePromptButton/style.d.ts +3 -0
- package/dist/MarkdownInputField/SendButton/style.d.ts +3 -0
- package/dist/MarkdownInputField/SkillModeBar/style.d.ts +3 -0
- package/dist/MarkdownInputField/TopOperatingArea/style.d.ts +3 -0
- package/dist/MarkdownInputField/VoiceInput/style.d.ts +3 -0
- package/dist/MarkdownInputField/style.d.ts +3 -0
- package/dist/Plugins/chart/AreaChart/style.d.ts +3 -0
- package/dist/Plugins/chart/BarChart/style.d.ts +3 -0
- package/dist/Plugins/chart/ChartAttrToolBar/ChartAttrToolBarStyle.d.ts +3 -0
- package/dist/Plugins/chart/ChartStatistic/style.d.ts +3 -0
- package/dist/Plugins/chart/DonutChart/style.d.ts +3 -0
- package/dist/Plugins/chart/FunnelChart/style.d.ts +3 -0
- package/dist/Plugins/chart/LineChart/style.d.ts +3 -0
- package/dist/Plugins/chart/RadarChart/style.d.ts +3 -0
- package/dist/Plugins/chart/ScatterChart/style.d.ts +3 -0
- package/dist/Plugins/chart/components/ChartContainer/style.d.ts +3 -0
- package/dist/Plugins/chart/components/ChartFilter/style.d.ts +3 -0
- package/dist/Plugins/chart/components/ChartToolBar/style.d.ts +3 -0
- package/dist/Plugins/mermaid/MermaidFallback.d.ts +1 -2
- package/dist/Plugins/mermaid/MermaidRendererImpl.d.ts +1 -2
- package/dist/Plugins/mermaid/style.d.ts +3 -0
- package/dist/Plugins/mermaid/style.js +5 -2
- package/dist/Plugins/mermaid/utils.js +1 -1
- package/dist/Quote/style.d.ts +3 -0
- package/dist/Schema/SchemaEditor/style.d.ts +3 -0
- package/dist/TaskList/index.d.ts +1 -1
- package/dist/TaskList/style.d.ts +3 -0
- package/dist/ThoughtChainList/DotAni/index.d.ts +1 -2
- package/dist/ThoughtChainList/DotAni/style.d.ts +3 -0
- package/dist/ThoughtChainList/style.d.ts +3 -0
- package/dist/ToolUseBar/style.d.ts +3 -0
- package/dist/ToolUseBarThink/style.d.ts +3 -0
- package/dist/WelcomeMessage/style.d.ts +3 -0
- package/dist/Workspace/Browser/style.d.ts +3 -0
- package/dist/Workspace/File/style.d.ts +3 -0
- package/dist/Workspace/HtmlPreview/style.d.ts +3 -0
- package/dist/Workspace/RealtimeFollow/style.d.ts +3 -0
- package/dist/Workspace/Task/style.d.ts +3 -0
- package/dist/Workspace/style.d.ts +3 -0
- package/package.json +1 -2
- package/dist/MarkdownEditor/editor/elements/LinkCard/style.d.ts +0 -10
- package/dist/MarkdownEditor/editor/elements/LinkCard/style.js +0 -136
- package/dist/MarkdownEditor/editor/elements/List/style.d.ts +0 -10
- package/dist/MarkdownEditor/editor/elements/List/style.js +0 -139
- package/dist/MarkdownEditor/editor/elements/Mermaid/style.d.ts +0 -10
- package/dist/MarkdownEditor/editor/elements/Mermaid/style.js +0 -144
- package/dist/MarkdownEditor/editor/elements/Table/TableCellIndex/style.d.ts +0 -10
- package/dist/MarkdownEditor/editor/elements/Table/TableCellIndex/style.js +0 -131
- package/dist/MarkdownEditor/editor/elements/Table/TableCellIndexSpacer/style.d.ts +0 -10
- package/dist/MarkdownEditor/editor/elements/Table/TableCellIndexSpacer/style.js +0 -125
- package/dist/MarkdownEditor/editor/elements/Table/TableRowIndex/style.d.ts +0 -10
- package/dist/MarkdownEditor/editor/elements/Table/TableRowIndex/style.js +0 -74
- package/dist/MarkdownEditor/editor/elements/Table/Td/style.d.ts +0 -10
- package/dist/MarkdownEditor/editor/elements/Table/Td/style.js +0 -93
- package/dist/MarkdownEditor/editor/elements/Table/style.d.ts +0 -11
- package/dist/MarkdownEditor/editor/elements/Table/style.js +0 -255
- package/dist/MarkdownEditor/editor/elements/TagPopup/style.d.ts +0 -5
- package/dist/MarkdownEditor/editor/elements/TagPopup/style.js +0 -111
|
@@ -107,7 +107,6 @@ import { useEditorStore } from "../../store";
|
|
|
107
107
|
var bubble = (useContext(BubbleConfigContext) || {}).bubble;
|
|
108
108
|
return useMemo(function() {
|
|
109
109
|
if ((apaasify === null || apaasify === void 0 ? void 0 : apaasify.enable) && apaasify.render) {
|
|
110
|
-
debugInfo('Schema - 使用自定义 apaasify 渲染');
|
|
111
110
|
var renderedContent = apaasify.render(props, bubble === null || bubble === void 0 ? void 0 : bubble.originData);
|
|
112
111
|
return /*#__PURE__*/ React.createElement("div", _object_spread_props(_object_spread({}, node.attributes), {
|
|
113
112
|
"data-testid": "schema-container",
|
|
@@ -131,7 +130,6 @@ import { useEditorStore } from "../../store";
|
|
|
131
130
|
}
|
|
132
131
|
if (node.language === 'agentar-card') {
|
|
133
132
|
var _props_element_value;
|
|
134
|
-
debugInfo('Schema - 使用 AgentAR 卡片渲染');
|
|
135
133
|
return /*#__PURE__*/ React.createElement("div", {
|
|
136
134
|
"data-testid": "agentar-card-container",
|
|
137
135
|
style: {
|
|
@@ -146,7 +144,6 @@ import { useEditorStore } from "../../store";
|
|
|
146
144
|
useDefaultValues: false
|
|
147
145
|
}));
|
|
148
146
|
}
|
|
149
|
-
debugInfo('Schema - 使用默认 JSON 渲染');
|
|
150
147
|
return /*#__PURE__*/ React.createElement("div", _object_spread_props(_object_spread({}, node.attributes), {
|
|
151
148
|
"data-testid": "schema-container",
|
|
152
149
|
style: {
|
|
@@ -71,7 +71,7 @@ import { parserSlateNodeToMarkdown } from "../../utils";
|
|
|
71
71
|
* 专门针对 readonly 模式优化的表格组件
|
|
72
72
|
* 移除了不必要的滚动监听和复杂的宽度计算
|
|
73
73
|
*/ export var ReadonlyTableComponent = /*#__PURE__*/ React.memo(function(param) {
|
|
74
|
-
var
|
|
74
|
+
var children = param.children, element = param.element, baseCls = param.baseCls;
|
|
75
75
|
var _element_children__children, _element_children_, _element_children, _editorProps_tableConfig, _i18n_locale;
|
|
76
76
|
var editorProps = useEditorStore().editorProps;
|
|
77
77
|
var getPrefixCls = useContext(ConfigProvider.ConfigContext).getPrefixCls;
|
|
@@ -146,11 +146,14 @@ import { parserSlateNodeToMarkdown } from "../../utils";
|
|
|
146
146
|
var _editorProps_tableConfig;
|
|
147
147
|
return /*#__PURE__*/ React.createElement("table", {
|
|
148
148
|
ref: tableTargetRef,
|
|
149
|
-
className: classNames("".concat(baseCls, "-editor-table"), 'readonly',
|
|
149
|
+
className: classNames("".concat(baseCls, "-editor-table"), 'readonly', "".concat(baseCls, "-readonly-table"), _define_property({}, "".concat(baseCls, "-readonly-pure"), editorProps === null || editorProps === void 0 ? void 0 : (_editorProps_tableConfig = editorProps.tableConfig) === null || _editorProps_tableConfig === void 0 ? void 0 : _editorProps_tableConfig.pure))
|
|
150
150
|
}, /*#__PURE__*/ React.createElement("colgroup", null, colWidths.map(function(colWidth, index) {
|
|
151
|
+
var isLastCol = index === colWidths.length - 1;
|
|
151
152
|
return /*#__PURE__*/ React.createElement("col", {
|
|
152
153
|
key: index,
|
|
153
|
-
style: {
|
|
154
|
+
style: isLastCol ? {
|
|
155
|
+
minWidth: 60
|
|
156
|
+
} : {
|
|
154
157
|
width: colWidth,
|
|
155
158
|
minWidth: colWidth,
|
|
156
159
|
maxWidth: colWidth
|
|
@@ -160,14 +163,13 @@ import { parserSlateNodeToMarkdown } from "../../utils";
|
|
|
160
163
|
}, [
|
|
161
164
|
colWidths,
|
|
162
165
|
children,
|
|
163
|
-
hashId,
|
|
164
166
|
baseCls
|
|
165
167
|
]);
|
|
166
168
|
// 缓存操作按钮内容
|
|
167
169
|
var popoverContent = useMemo(function() {
|
|
168
170
|
var _i18n_locale, _i18n_locale1;
|
|
169
171
|
return /*#__PURE__*/ React.createElement("div", {
|
|
170
|
-
className: classNames(
|
|
172
|
+
className: classNames("".concat(baseCls, "-readonly-table-actions"))
|
|
171
173
|
}, (actions === null || actions === void 0 ? void 0 : actions.fullScreen) && /*#__PURE__*/ React.createElement(ActionIconBox, {
|
|
172
174
|
title: (i18n === null || i18n === void 0 ? void 0 : (_i18n_locale = i18n.locale) === null || _i18n_locale === void 0 ? void 0 : _i18n_locale.fullScreen) || '全屏',
|
|
173
175
|
onClick: handleFullScreen
|
|
@@ -183,7 +185,7 @@ import { parserSlateNodeToMarkdown } from "../../utils";
|
|
|
183
185
|
handleCopy
|
|
184
186
|
]);
|
|
185
187
|
return /*#__PURE__*/ React.createElement(React.Fragment, null, /*#__PURE__*/ React.createElement("div", {
|
|
186
|
-
className: classNames(baseCls
|
|
188
|
+
className: classNames(baseCls)
|
|
187
189
|
}, tableDom), popoverContent, previewOpen && /*#__PURE__*/ React.createElement(Modal, {
|
|
188
190
|
title: (editorProps === null || editorProps === void 0 ? void 0 : (_editorProps_tableConfig = editorProps.tableConfig) === null || _editorProps_tableConfig === void 0 ? void 0 : _editorProps_tableConfig.previewTitle) || (i18n === null || i18n === void 0 ? void 0 : (_i18n_locale = i18n.locale) === null || _i18n_locale === void 0 ? void 0 : _i18n_locale.previewTable) || '预览表格',
|
|
189
191
|
open: previewOpen,
|
|
@@ -193,7 +195,7 @@ import { parserSlateNodeToMarkdown } from "../../utils";
|
|
|
193
195
|
width: "80vw",
|
|
194
196
|
onCancel: handleModalClose
|
|
195
197
|
}, /*#__PURE__*/ React.createElement("div", {
|
|
196
|
-
className: classNames(baseCls,
|
|
198
|
+
className: classNames(baseCls, getPrefixCls('agentic-md-editor-content')),
|
|
197
199
|
style: {
|
|
198
200
|
flex: 1,
|
|
199
201
|
minWidth: 0,
|
|
@@ -54,7 +54,6 @@ import { ConfigProvider } from "antd";
|
|
|
54
54
|
import classNames from "classnames";
|
|
55
55
|
import React, { useContext, useMemo } from "react";
|
|
56
56
|
import { ReactEditor, useSlate } from "slate-react";
|
|
57
|
-
import { useTableStyle } from "./style";
|
|
58
57
|
import { SlateTable } from "./Table";
|
|
59
58
|
import { TablePropsProvider } from "./TableContext";
|
|
60
59
|
/**
|
|
@@ -64,64 +63,20 @@ import { TablePropsProvider } from "./TableContext";
|
|
|
64
63
|
var getPrefixCls = useContext(ConfigProvider.ConfigContext).getPrefixCls;
|
|
65
64
|
var baseCls = getPrefixCls('agentic-md-editor-content-table');
|
|
66
65
|
var editor = useSlate();
|
|
67
|
-
var _useTableStyle = useTableStyle(baseCls, {}), wrapSSR = _useTableStyle.wrapSSR, hashId = _useTableStyle.hashId;
|
|
68
66
|
var tablePath = useMemo(function() {
|
|
69
67
|
return ReactEditor.findPath(editor, props.element);
|
|
70
68
|
}, [
|
|
71
69
|
props.element
|
|
72
70
|
]);
|
|
73
|
-
|
|
74
|
-
// useEffect(() => {
|
|
75
|
-
// if (tableNode.finished === false) {
|
|
76
|
-
// setShowAsText(false);
|
|
77
|
-
// const timer = setTimeout(() => {
|
|
78
|
-
// setShowAsText(true);
|
|
79
|
-
// }, 5000);
|
|
80
|
-
// return () => {
|
|
81
|
-
// clearTimeout(timer);
|
|
82
|
-
// };
|
|
83
|
-
// } else {
|
|
84
|
-
// setShowAsText(false);
|
|
85
|
-
// }
|
|
86
|
-
// }, [tableNode.finished]);
|
|
87
|
-
// // 如果是不完整状态
|
|
88
|
-
// if (tableNode.finished === false) {
|
|
89
|
-
// // 如果 5 秒后仍未完成,显示为文本
|
|
90
|
-
// if (showAsText) {
|
|
91
|
-
// return (
|
|
92
|
-
// <div {...props.attributes}>
|
|
93
|
-
// <div
|
|
94
|
-
// style={{
|
|
95
|
-
// padding: '8px 12px',
|
|
96
|
-
// border: '1px solid #d9d9d9',
|
|
97
|
-
// borderRadius: '4px',
|
|
98
|
-
// color: 'rgba(0, 0, 0, 0.65)',
|
|
99
|
-
// wordBreak: 'break-all',
|
|
100
|
-
// }}
|
|
101
|
-
// ></div>
|
|
102
|
-
// {props.children}
|
|
103
|
-
// </div>
|
|
104
|
-
// );
|
|
105
|
-
// }
|
|
106
|
-
// // 5 秒内显示加载骨架屏
|
|
107
|
-
// return (
|
|
108
|
-
// <div {...props.attributes}>
|
|
109
|
-
// <Skeleton active paragraph={{ rows: 3 }} />
|
|
110
|
-
// {props.children}
|
|
111
|
-
// </div>
|
|
112
|
-
// );
|
|
113
|
-
// }
|
|
114
|
-
return wrapSSR(/*#__PURE__*/ React.createElement(TablePropsProvider, {
|
|
71
|
+
return /*#__PURE__*/ React.createElement(TablePropsProvider, {
|
|
115
72
|
tablePath: tablePath,
|
|
116
73
|
tableNode: props.element
|
|
117
74
|
}, /*#__PURE__*/ React.createElement("div", _object_spread_props(_object_spread({}, props.attributes), {
|
|
118
75
|
"data-be": 'table',
|
|
119
76
|
draggable: false,
|
|
120
|
-
className: classNames("".concat(baseCls, "-container")
|
|
77
|
+
className: classNames("".concat(baseCls, "-container")),
|
|
121
78
|
style: {
|
|
122
79
|
position: 'relative'
|
|
123
80
|
}
|
|
124
|
-
}), /*#__PURE__*/ React.createElement(SlateTable,
|
|
125
|
-
hashId: hashId
|
|
126
|
-
}), props.children))));
|
|
81
|
+
}), /*#__PURE__*/ React.createElement(SlateTable, props, props.children)));
|
|
127
82
|
};
|
|
@@ -26,7 +26,6 @@ import { RenderElementProps } from 'slate-react';
|
|
|
26
26
|
*
|
|
27
27
|
* @see https://reactjs.org/docs/hooks-intro.html React Hooks
|
|
28
28
|
*/
|
|
29
|
-
export declare const SlateTable: ({
|
|
29
|
+
export declare const SlateTable: ({ children, ...props }: {
|
|
30
30
|
children: React.ReactNode;
|
|
31
|
-
hashId: string;
|
|
32
31
|
} & RenderElementProps) => React.JSX.Element;
|
|
@@ -181,8 +181,7 @@ import useScrollShadow from "./useScrollShadow";
|
|
|
181
181
|
*
|
|
182
182
|
* @see https://reactjs.org/docs/hooks-intro.html React Hooks
|
|
183
183
|
*/ export var SlateTable = function(_0) {
|
|
184
|
-
var
|
|
185
|
-
"hashId",
|
|
184
|
+
var children = _0.children, props = _object_without_properties(_0, [
|
|
186
185
|
"children"
|
|
187
186
|
]);
|
|
188
187
|
var _props_element_children__children, _props_element_children_, _props_element_children, _props_element, _props_element_otherProps, _props_element1, _props_element_children1, _props_element2;
|
|
@@ -307,7 +306,7 @@ import useScrollShadow from "./useScrollShadow";
|
|
|
307
306
|
var tableDom = useMemo(function() {
|
|
308
307
|
return /*#__PURE__*/ React.createElement("table", {
|
|
309
308
|
ref: tableTargetRef,
|
|
310
|
-
className: classNames("".concat(baseCls, "-editor-table")
|
|
309
|
+
className: classNames("".concat(baseCls, "-editor-table")),
|
|
311
310
|
onDragStart: function(e) {
|
|
312
311
|
// 阻止拖拽开始事件
|
|
313
312
|
e.preventDefault();
|
|
@@ -320,9 +319,13 @@ import useScrollShadow from "./useScrollShadow";
|
|
|
320
319
|
maxWidth: 12
|
|
321
320
|
}
|
|
322
321
|
}), (colWidths || []).map(function(colWidth, index) {
|
|
322
|
+
var _ref;
|
|
323
|
+
var isLastCol = index === ((_ref = colWidths === null || colWidths === void 0 ? void 0 : colWidths.length) !== null && _ref !== void 0 ? _ref : 0) - 1;
|
|
323
324
|
return /*#__PURE__*/ React.createElement("col", {
|
|
324
325
|
key: index,
|
|
325
|
-
style: {
|
|
326
|
+
style: isLastCol ? {
|
|
327
|
+
minWidth: 60
|
|
328
|
+
} : {
|
|
326
329
|
width: colWidth,
|
|
327
330
|
minWidth: colWidth,
|
|
328
331
|
maxWidth: colWidth
|
|
@@ -335,7 +338,6 @@ import useScrollShadow from "./useScrollShadow";
|
|
|
335
338
|
}, [
|
|
336
339
|
colWidths,
|
|
337
340
|
children,
|
|
338
|
-
hashId,
|
|
339
341
|
baseCls
|
|
340
342
|
]);
|
|
341
343
|
// 缓存boxShadow样式,只在scrollState变化时重新计算
|
|
@@ -352,14 +354,13 @@ import useScrollShadow from "./useScrollShadow";
|
|
|
352
354
|
// readonly 模式渲染 - 使用优化的组件(早期返回)
|
|
353
355
|
if (readonly) {
|
|
354
356
|
return /*#__PURE__*/ React.createElement(ReadonlyTableComponent, {
|
|
355
|
-
hashId: hashId,
|
|
356
357
|
element: props.element,
|
|
357
358
|
baseCls: baseCls
|
|
358
359
|
}, children);
|
|
359
360
|
}
|
|
360
361
|
// 编辑模式渲染
|
|
361
362
|
return /*#__PURE__*/ React.createElement("div", {
|
|
362
|
-
className: classNames(baseCls
|
|
363
|
+
className: classNames(baseCls),
|
|
363
364
|
ref: tableRef,
|
|
364
365
|
style: _object_spread_props(_object_spread({}, boxShadowStyle), {
|
|
365
366
|
position: 'relative'
|
|
@@ -94,7 +94,6 @@ import { useClickAway } from "../../../../../Hooks/useClickAway";
|
|
|
94
94
|
import { useRefFunction } from "../../../../../Hooks/useRefFunction";
|
|
95
95
|
import { NativeTableEditor } from "../../../../utils/native-table";
|
|
96
96
|
import { TablePropsContext } from "../TableContext";
|
|
97
|
-
import { useStyle } from "./style";
|
|
98
97
|
/**
|
|
99
98
|
* TableCellIndex 组件 - 表格行索引单元格组件
|
|
100
99
|
*
|
|
@@ -133,7 +132,6 @@ import { useStyle } from "./style";
|
|
|
133
132
|
var style = param.style, className = param.className, rowIndex = param.rowIndex, tablePath = param.tablePath;
|
|
134
133
|
var context = useContext(ConfigProvider.ConfigContext);
|
|
135
134
|
var baseClassName = context === null || context === void 0 ? void 0 : context.getPrefixCls('agentic-md-editor-table-cell-index');
|
|
136
|
-
var _useStyle = useStyle(baseClassName), wrapSSR = _useStyle.wrapSSR, hashId = _useStyle.hashId;
|
|
137
135
|
var editor = useSlate();
|
|
138
136
|
var tableContext = useContext(TablePropsContext);
|
|
139
137
|
var deleteIconPosition = tableContext.deleteIconPosition, setDeleteIconPosition = tableContext.setDeleteIconPosition;
|
|
@@ -389,9 +387,9 @@ import { useStyle } from "./style";
|
|
|
389
387
|
clearSelect();
|
|
390
388
|
}
|
|
391
389
|
}, ref);
|
|
392
|
-
return
|
|
390
|
+
return /*#__PURE__*/ React.createElement("td", {
|
|
393
391
|
ref: ref,
|
|
394
|
-
className: classNames(baseClassName,
|
|
392
|
+
className: classNames(baseClassName, className, 'config-td'),
|
|
395
393
|
contentEditable: false,
|
|
396
394
|
style: _object_spread({
|
|
397
395
|
padding: 0,
|
|
@@ -402,18 +400,18 @@ import { useStyle } from "./style";
|
|
|
402
400
|
onClick: handleClick,
|
|
403
401
|
title: rowIndex !== undefined ? '点击显示操作按钮' : undefined
|
|
404
402
|
}, /*#__PURE__*/ React.createElement("div", {
|
|
405
|
-
className: classNames("".concat(baseClassName, "-action-buttons"), shouldShowDeleteIcon && "".concat(baseClassName, "-action-buttons-visible")
|
|
403
|
+
className: classNames("".concat(baseClassName, "-action-buttons"), shouldShowDeleteIcon && "".concat(baseClassName, "-action-buttons-visible"))
|
|
406
404
|
}, shouldShowDeleteIcon && /*#__PURE__*/ React.createElement("div", {
|
|
407
|
-
className: classNames("".concat(baseClassName, "-action-button"), "".concat(baseClassName, "-insert-row-before")
|
|
405
|
+
className: classNames("".concat(baseClassName, "-action-button"), "".concat(baseClassName, "-insert-row-before")),
|
|
408
406
|
onClick: handleInsertRowBefore,
|
|
409
407
|
title: "在上面增加一行"
|
|
410
408
|
}, /*#__PURE__*/ React.createElement(InsertRowAboveOutlined, null)), /*#__PURE__*/ React.createElement("div", {
|
|
411
|
-
className: classNames("".concat(baseClassName, "-action-button"), "".concat(baseClassName, "-delete-icon")
|
|
409
|
+
className: classNames("".concat(baseClassName, "-action-button"), "".concat(baseClassName, "-delete-icon")),
|
|
412
410
|
onClick: handleDeleteClick,
|
|
413
411
|
title: "删除整行"
|
|
414
412
|
}, /*#__PURE__*/ React.createElement(DeleteOutlined, null)), shouldShowDeleteIcon && /*#__PURE__*/ React.createElement("div", {
|
|
415
|
-
className: classNames("".concat(baseClassName, "-action-button"), "".concat(baseClassName, "-insert-row-after")
|
|
413
|
+
className: classNames("".concat(baseClassName, "-action-button"), "".concat(baseClassName, "-insert-row-after")),
|
|
416
414
|
onClick: handleInsertRowAfter,
|
|
417
415
|
title: "在下面增加一行"
|
|
418
|
-
}, /*#__PURE__*/ React.createElement(InsertRowBelowOutlined, null))))
|
|
416
|
+
}, /*#__PURE__*/ React.createElement(InsertRowBelowOutlined, null))));
|
|
419
417
|
};
|
|
@@ -94,7 +94,6 @@ import { useClickAway } from "../../../../../Hooks/useClickAway";
|
|
|
94
94
|
import { useRefFunction } from "../../../../../Hooks/useRefFunction";
|
|
95
95
|
import { NativeTableEditor } from "../../../../utils/native-table";
|
|
96
96
|
import { TablePropsContext } from "../TableContext";
|
|
97
|
-
import { useStyle } from "./style";
|
|
98
97
|
/**
|
|
99
98
|
* TableCellIndexSpacer 组件 - 表格索引间隔单元格组件
|
|
100
99
|
*
|
|
@@ -133,7 +132,6 @@ import { useStyle } from "./style";
|
|
|
133
132
|
var style = param.style, className = param.className, columnIndex = param.columnIndex, tablePath = param.tablePath;
|
|
134
133
|
var context = useContext(ConfigProvider.ConfigContext);
|
|
135
134
|
var baseClassName = context === null || context === void 0 ? void 0 : context.getPrefixCls('agentic-md-editor-table-cell-index-spacer');
|
|
136
|
-
var _useStyle = useStyle(baseClassName), wrapSSR = _useStyle.wrapSSR, hashId = _useStyle.hashId;
|
|
137
135
|
var editor = useSlate();
|
|
138
136
|
var tableContext = useContext(TablePropsContext);
|
|
139
137
|
var deleteIconPosition = tableContext.deleteIconPosition, setDeleteIconPosition = tableContext.setDeleteIconPosition;
|
|
@@ -377,9 +375,9 @@ import { useStyle } from "./style";
|
|
|
377
375
|
var shouldShowDeleteIcon = deleteIconPosition && deleteIconPosition.columnIndex === columnIndex;
|
|
378
376
|
// 判断是否应该显示增加列的按钮(总是显示)
|
|
379
377
|
var shouldShowInsertButtons = shouldShowDeleteIcon;
|
|
380
|
-
return
|
|
378
|
+
return /*#__PURE__*/ React.createElement("td", {
|
|
381
379
|
ref: ref,
|
|
382
|
-
className: classNames(baseClassName,
|
|
380
|
+
className: classNames(baseClassName, className, 'config-td'),
|
|
383
381
|
contentEditable: false,
|
|
384
382
|
style: _object_spread({
|
|
385
383
|
cursor: columnIndex !== undefined ? 'pointer' : 'default',
|
|
@@ -390,18 +388,18 @@ import { useStyle } from "./style";
|
|
|
390
388
|
onClick: handleClick,
|
|
391
389
|
title: columnIndex !== undefined ? columnIndex === -1 ? '点击选中整个表格' : '点击选中整列,显示操作按钮' : undefined
|
|
392
390
|
}, /*#__PURE__*/ React.createElement("div", {
|
|
393
|
-
className: classNames("".concat(baseClassName, "-action-buttons"), shouldShowDeleteIcon && "".concat(baseClassName, "-action-buttons-visible")
|
|
391
|
+
className: classNames("".concat(baseClassName, "-action-buttons"), shouldShowDeleteIcon && "".concat(baseClassName, "-action-buttons-visible"))
|
|
394
392
|
}, shouldShowInsertButtons && /*#__PURE__*/ React.createElement("div", {
|
|
395
|
-
className: classNames("".concat(baseClassName, "-action-button"), "".concat(baseClassName, "-insert-column-before")
|
|
393
|
+
className: classNames("".concat(baseClassName, "-action-button"), "".concat(baseClassName, "-insert-column-before")),
|
|
396
394
|
onClick: handleInsertColumnBefore,
|
|
397
395
|
title: "在前面增加一列"
|
|
398
396
|
}, /*#__PURE__*/ React.createElement(InsertRowLeftOutlined, null)), /*#__PURE__*/ React.createElement("div", {
|
|
399
|
-
className: classNames("".concat(baseClassName, "-action-button"), "".concat(baseClassName, "-delete-icon")
|
|
397
|
+
className: classNames("".concat(baseClassName, "-action-button"), "".concat(baseClassName, "-delete-icon")),
|
|
400
398
|
onClick: handleDeleteClick,
|
|
401
399
|
title: "删除整列"
|
|
402
400
|
}, /*#__PURE__*/ React.createElement(DeleteOutlined, null)), shouldShowInsertButtons && /*#__PURE__*/ React.createElement("div", {
|
|
403
|
-
className: classNames("".concat(baseClassName, "-action-button"), "".concat(baseClassName, "-insert-column-after")
|
|
401
|
+
className: classNames("".concat(baseClassName, "-action-button"), "".concat(baseClassName, "-insert-column-after")),
|
|
404
402
|
onClick: handleInsertColumnAfter,
|
|
405
403
|
title: "在后面增加一列"
|
|
406
|
-
}, /*#__PURE__*/ React.createElement(InsertRowRightOutlined, null))))
|
|
404
|
+
}, /*#__PURE__*/ React.createElement(InsertRowRightOutlined, null))));
|
|
407
405
|
};
|
|
@@ -2,7 +2,6 @@ import { ConfigProvider } from "antd";
|
|
|
2
2
|
import classNames from "classnames";
|
|
3
3
|
import React, { useContext } from "react";
|
|
4
4
|
import { TableCellIndexSpacer } from "../TableCellIndexSpacer";
|
|
5
|
-
import { useStyle } from "./style";
|
|
6
5
|
/**
|
|
7
6
|
* TableRowIndex 组件 - 表格行索引组件
|
|
8
7
|
*
|
|
@@ -38,9 +37,8 @@ import { useStyle } from "./style";
|
|
|
38
37
|
var _param_colWidths = param.colWidths, colWidths = _param_colWidths === void 0 ? [] : _param_colWidths, style = param.style, className = param.className, tablePath = param.tablePath;
|
|
39
38
|
var context = useContext(ConfigProvider.ConfigContext);
|
|
40
39
|
var baseClassName = context === null || context === void 0 ? void 0 : context.getPrefixCls('agentic-md-editor-table-row-index');
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
className: classNames(baseClassName, hashId, className, 'config-tr'),
|
|
40
|
+
return /*#__PURE__*/ React.createElement("tr", {
|
|
41
|
+
className: classNames(baseClassName, className, 'config-tr'),
|
|
44
42
|
style: style
|
|
45
43
|
}, /*#__PURE__*/ React.createElement(TableCellIndexSpacer, {
|
|
46
44
|
style: {
|
|
@@ -59,5 +57,5 @@ import { useStyle } from "./style";
|
|
|
59
57
|
columnIndex: index,
|
|
60
58
|
tablePath: tablePath
|
|
61
59
|
});
|
|
62
|
-
}))
|
|
60
|
+
}));
|
|
63
61
|
};
|
|
@@ -54,7 +54,6 @@ import { ConfigProvider } from "antd";
|
|
|
54
54
|
import classNames from "classnames";
|
|
55
55
|
import React, { useContext, useRef } from "react";
|
|
56
56
|
import { useSlateSelection } from "slate-react";
|
|
57
|
-
import { useStyle } from "./style";
|
|
58
57
|
/**
|
|
59
58
|
* Td 组件 - 表格数据单元格组件
|
|
60
59
|
*
|
|
@@ -105,7 +104,6 @@ import { useStyle } from "./style";
|
|
|
105
104
|
var getPrefixCls = useContext(ConfigProvider.ConfigContext).getPrefixCls;
|
|
106
105
|
var prefix = getPrefixCls('agentic-md-editor-table-td');
|
|
107
106
|
var tdRef = useRef(null);
|
|
108
|
-
var _useStyle = useStyle(prefix), wrapSSR = _useStyle.wrapSSR, hashId = _useStyle.hashId;
|
|
109
107
|
// 创建 ref 回调函数来处理 ref 冲突
|
|
110
108
|
var handleRef = function(node) {
|
|
111
109
|
tdRef.current = node;
|
|
@@ -116,16 +114,16 @@ import { useStyle } from "./style";
|
|
|
116
114
|
}
|
|
117
115
|
};
|
|
118
116
|
if (element.hidden) {
|
|
119
|
-
return
|
|
117
|
+
return /*#__PURE__*/ React.createElement("td", {
|
|
120
118
|
ref: tdRef,
|
|
121
|
-
className: classNames(
|
|
119
|
+
className: classNames(prefix),
|
|
122
120
|
style: {
|
|
123
121
|
display: 'none'
|
|
124
122
|
}
|
|
125
|
-
})
|
|
123
|
+
});
|
|
126
124
|
}
|
|
127
|
-
return
|
|
128
|
-
className: classNames(
|
|
125
|
+
return /*#__PURE__*/ React.createElement("td", _object_spread_props(_object_spread({
|
|
126
|
+
className: classNames(prefix),
|
|
129
127
|
style: _object_spread({
|
|
130
128
|
textAlign: align || 'left',
|
|
131
129
|
width: width || 'auto'
|
|
@@ -134,5 +132,5 @@ import { useStyle } from "./style";
|
|
|
134
132
|
colSpan: element === null || element === void 0 ? void 0 : element.colSpan
|
|
135
133
|
}, attributes), {
|
|
136
134
|
ref: handleRef
|
|
137
|
-
}), children)
|
|
135
|
+
}), children);
|
|
138
136
|
};
|
|
@@ -231,7 +231,6 @@ import classNames from "classnames";
|
|
|
231
231
|
import React, { useContext, useEffect, useRef, useState } from "react";
|
|
232
232
|
import { ReactEditor, useSlate } from "slate-react";
|
|
233
233
|
import { SuggestionConnext } from "../../../../MarkdownInputField/Suggestion";
|
|
234
|
-
import { useStyle } from "./style";
|
|
235
234
|
/**
|
|
236
235
|
* TagPopup 组件 - 在编辑器中显示一个标签弹出选择框
|
|
237
236
|
*
|
|
@@ -328,7 +327,7 @@ var handleMouseLeave = function(domRef) {
|
|
|
328
327
|
if (!target) return;
|
|
329
328
|
target.setAttribute('data-no-focus', '');
|
|
330
329
|
};
|
|
331
|
-
var createDefaultDom = function(domRef, baseCls,
|
|
330
|
+
var createDefaultDom = function(domRef, baseCls, loading, selectedItems, children, text, placeholder, isOpen) {
|
|
332
331
|
var isEmpty = !(text === null || text === void 0 ? void 0 : text.trim());
|
|
333
332
|
var hasItems = (selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.length) > 0;
|
|
334
333
|
var _obj;
|
|
@@ -336,7 +335,7 @@ var createDefaultDom = function(domRef, baseCls, hashId, loading, selectedItems,
|
|
|
336
335
|
ref: domRef,
|
|
337
336
|
"data-tag-popup-input": true,
|
|
338
337
|
"data-no-focus": true,
|
|
339
|
-
className: classNames("".concat(baseCls, "-input"),
|
|
338
|
+
className: classNames("".concat(baseCls, "-input"), (_obj = {
|
|
340
339
|
empty: isEmpty
|
|
341
340
|
}, _define_property(_obj, "".concat(baseCls, "-loading"), loading), _define_property(_obj, "".concat(baseCls, "-has-arrow"), hasItems), _obj)),
|
|
342
341
|
onMouseEnter: function() {
|
|
@@ -348,7 +347,7 @@ var createDefaultDom = function(domRef, baseCls, hashId, loading, selectedItems,
|
|
|
348
347
|
title: placeholder,
|
|
349
348
|
contentEditable: !hasItems ? undefined : false
|
|
350
349
|
}, children, hasItems && /*#__PURE__*/ React.createElement(ChevronDown, {
|
|
351
|
-
className: classNames("".concat(baseCls, "-arrow"),
|
|
350
|
+
className: classNames("".concat(baseCls, "-arrow"), {
|
|
352
351
|
empty: isEmpty,
|
|
353
352
|
open: isOpen
|
|
354
353
|
})
|
|
@@ -401,8 +400,7 @@ export var TagPopup = function(props) {
|
|
|
401
400
|
var domRef = useRef(null);
|
|
402
401
|
var suggestionConnext = useContext(SuggestionConnext);
|
|
403
402
|
var antdContext = useContext(ConfigProvider.ConfigContext);
|
|
404
|
-
var baseCls = antdContext === null || antdContext === void 0 ? void 0 : antdContext.getPrefixCls('agentic-tag-popup');
|
|
405
|
-
var _useStyle = useStyle(baseCls), wrapSSR = _useStyle.wrapSSR, hashId = _useStyle.hashId;
|
|
403
|
+
var baseCls = antdContext === null || antdContext === void 0 ? void 0 : antdContext.getPrefixCls('agentic-md-editor-tag-popup');
|
|
406
404
|
var currentNodePath = useRef();
|
|
407
405
|
useEffect(function() {
|
|
408
406
|
var path = getNodePath(editor, domRef);
|
|
@@ -444,10 +442,10 @@ export var TagPopup = function(props) {
|
|
|
444
442
|
}, []);
|
|
445
443
|
var placeholder = props.placeholder;
|
|
446
444
|
var isOpen = type === 'dropdown' ? open : (suggestionConnext === null || suggestionConnext === void 0 ? void 0 : suggestionConnext.open) || false;
|
|
447
|
-
var defaultDom = createDefaultDom(domRef, baseCls,
|
|
445
|
+
var defaultDom = createDefaultDom(domRef, baseCls, loading, selectedItems, children, props.text, placeholder, isOpen);
|
|
448
446
|
var renderDom = getRenderDom(props.tagRender, props, defaultDom, onSelect, currentNodePath);
|
|
449
447
|
// 预先计算容器 className 与 style,减少 JSX 中的嵌套
|
|
450
|
-
var containerClassName = classNames(baseCls,
|
|
448
|
+
var containerClassName = classNames(baseCls, props.className, props.prefixCls, props.tagTextClassName, "".concat(baseCls, "-type-").concat(type));
|
|
451
449
|
var containerStyle = _object_spread({}, runFunction(props.tagTextStyle, _object_spread_props(_object_spread({}, props), {
|
|
452
450
|
text: props.text,
|
|
453
451
|
placeholder: placeholder
|
|
@@ -472,9 +470,9 @@ export var TagPopup = function(props) {
|
|
|
472
470
|
onOpenChange: setOpen,
|
|
473
471
|
menu: dropdownMenu
|
|
474
472
|
}, renderDom) : renderDom;
|
|
475
|
-
return
|
|
473
|
+
return /*#__PURE__*/ React.createElement("div", {
|
|
476
474
|
className: containerClassName,
|
|
477
475
|
style: containerStyle,
|
|
478
476
|
onClick: handleContainerClick
|
|
479
|
-
}, content)
|
|
477
|
+
}, content);
|
|
480
478
|
};
|
|
@@ -49,7 +49,7 @@ export declare const MElement: React.MemoExoticComponent<(props: RenderElementPr
|
|
|
49
49
|
deps?: string[];
|
|
50
50
|
}) => React.JSX.Element>;
|
|
51
51
|
export declare const MLeaf: React.MemoExoticComponent<(props: RenderLeafProps & {
|
|
52
|
-
|
|
52
|
+
readonly?: boolean;
|
|
53
53
|
comment: MarkdownEditorProps['comment'];
|
|
54
54
|
fncProps: MarkdownEditorProps['fncProps'];
|
|
55
55
|
tagInputProps: MarkdownEditorProps['tagInputProps'];
|