@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
|
@@ -5,6 +5,9 @@
|
|
|
5
5
|
* @returns
|
|
6
6
|
*/
|
|
7
7
|
export declare function useStyle(prefixCls?: string): {
|
|
8
|
+
hashId: string;
|
|
8
9
|
wrapSSR: (node: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => import("react").JSX.Element;
|
|
10
|
+
} | {
|
|
11
|
+
wrapSSR: (node: any) => any;
|
|
9
12
|
hashId: string;
|
|
10
13
|
};
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare function useStyle(prefixCls?: string): {
|
|
3
|
+
hashId: string;
|
|
3
4
|
wrapSSR: (node: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => import("react").JSX.Element;
|
|
5
|
+
} | {
|
|
6
|
+
wrapSSR: (node: any) => any;
|
|
4
7
|
hashId: string;
|
|
5
8
|
};
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare function useStyle(prefixCls?: string): {
|
|
3
|
+
hashId: string;
|
|
3
4
|
wrapSSR: (node: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => import("react").JSX.Element;
|
|
5
|
+
} | {
|
|
6
|
+
wrapSSR: (node: any) => any;
|
|
4
7
|
hashId: string;
|
|
5
8
|
};
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare function useStyle(prefixCls?: string): {
|
|
3
|
+
hashId: string;
|
|
3
4
|
wrapSSR: (node: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => import("react").JSX.Element;
|
|
5
|
+
} | {
|
|
6
|
+
wrapSSR: (node: any) => any;
|
|
4
7
|
hashId: string;
|
|
5
8
|
};
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare function useBrowserStyle(prefixCls?: string): {
|
|
3
|
+
hashId: string;
|
|
3
4
|
wrapSSR: (node: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => import("react").JSX.Element;
|
|
5
|
+
} | {
|
|
6
|
+
wrapSSR: (node: any) => any;
|
|
4
7
|
hashId: string;
|
|
5
8
|
};
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare function useFileStyle(prefixCls?: string): {
|
|
3
|
+
hashId: string;
|
|
3
4
|
wrapSSR: (node: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => import("react").JSX.Element;
|
|
5
|
+
} | {
|
|
6
|
+
wrapSSR: (node: any) => any;
|
|
4
7
|
hashId: string;
|
|
5
8
|
};
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare function useHtmlPreviewStyle(prefixCls?: string): {
|
|
3
|
+
hashId: string;
|
|
3
4
|
wrapSSR: (node: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => import("react").JSX.Element;
|
|
5
|
+
} | {
|
|
6
|
+
wrapSSR: (node: any) => any;
|
|
4
7
|
hashId: string;
|
|
5
8
|
};
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare function useRealtimeFollowStyle(prefixCls?: string): {
|
|
3
|
+
hashId: string;
|
|
3
4
|
wrapSSR: (node: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => import("react").JSX.Element;
|
|
5
|
+
} | {
|
|
6
|
+
wrapSSR: (node: any) => any;
|
|
4
7
|
hashId: string;
|
|
5
8
|
};
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare function useTaskStyle(prefixCls?: string): {
|
|
3
|
+
hashId: string;
|
|
3
4
|
wrapSSR: (node: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => import("react").JSX.Element;
|
|
5
|
+
} | {
|
|
6
|
+
wrapSSR: (node: any) => any;
|
|
4
7
|
hashId: string;
|
|
5
8
|
};
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare function useWorkspaceStyle(prefixCls?: string): {
|
|
3
|
+
hashId: string;
|
|
3
4
|
wrapSSR: (node: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => import("react").JSX.Element;
|
|
5
|
+
} | {
|
|
6
|
+
wrapSSR: (node: any) => any;
|
|
4
7
|
hashId: string;
|
|
5
8
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ant-design/agentic-ui",
|
|
3
|
-
"version": "2.29.
|
|
3
|
+
"version": "2.29.13",
|
|
4
4
|
"description": "面向智能体的 UI 组件库,提供多步推理可视化、工具调用展示、任务执行协同等 Agentic UI 能力",
|
|
5
5
|
"repository": "git@github.com:ant-design/agentic-ui.git",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
"lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
|
|
23
23
|
"lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
|
|
24
24
|
"prepare": "husky install && dumi setup",
|
|
25
|
-
"prepublishOnly": "father doctor && pnpm run test && pnpm run build",
|
|
26
25
|
"prettier": "prettier --write \"{src,docs,test}/**/*.{js,jsx,ts,tsx,css,less,json,md}\"",
|
|
27
26
|
"preview": "pnpm dumi preview",
|
|
28
27
|
"report:demo": "node scripts/generateDemoReport.js",
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
/**
|
|
3
|
-
* BubbleChat
|
|
4
|
-
* @param prefixCls
|
|
5
|
-
* @returns
|
|
6
|
-
*/
|
|
7
|
-
export declare function useStyle(prefixCls?: string): {
|
|
8
|
-
wrapSSR: (node: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => import("react").JSX.Element;
|
|
9
|
-
hashId: string;
|
|
10
|
-
};
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
function _define_property(obj, key, value) {
|
|
2
|
-
if (key in obj) {
|
|
3
|
-
Object.defineProperty(obj, key, {
|
|
4
|
-
value: value,
|
|
5
|
-
enumerable: true,
|
|
6
|
-
configurable: true,
|
|
7
|
-
writable: true
|
|
8
|
-
});
|
|
9
|
-
} else {
|
|
10
|
-
obj[key] = value;
|
|
11
|
-
}
|
|
12
|
-
return obj;
|
|
13
|
-
}
|
|
14
|
-
function _object_spread(target) {
|
|
15
|
-
for(var i = 1; i < arguments.length; i++){
|
|
16
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
17
|
-
var ownKeys = Object.keys(source);
|
|
18
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
19
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
20
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
21
|
-
}));
|
|
22
|
-
}
|
|
23
|
-
ownKeys.forEach(function(key) {
|
|
24
|
-
_define_property(target, key, source[key]);
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
return target;
|
|
28
|
-
}
|
|
29
|
-
function ownKeys(object, enumerableOnly) {
|
|
30
|
-
var keys = Object.keys(object);
|
|
31
|
-
if (Object.getOwnPropertySymbols) {
|
|
32
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
33
|
-
if (enumerableOnly) {
|
|
34
|
-
symbols = symbols.filter(function(sym) {
|
|
35
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
keys.push.apply(keys, symbols);
|
|
39
|
-
}
|
|
40
|
-
return keys;
|
|
41
|
-
}
|
|
42
|
-
function _object_spread_props(target, source) {
|
|
43
|
-
source = source != null ? source : {};
|
|
44
|
-
if (Object.getOwnPropertyDescriptors) {
|
|
45
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
46
|
-
} else {
|
|
47
|
-
ownKeys(Object(source)).forEach(function(key) {
|
|
48
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
return target;
|
|
52
|
-
}
|
|
53
|
-
import { useEditorStyleRegister } from "../../../../Hooks/useStyle";
|
|
54
|
-
var genStyle = function(token) {
|
|
55
|
-
return _define_property({}, token.componentCls, {
|
|
56
|
-
cursor: 'pointer',
|
|
57
|
-
position: 'relative',
|
|
58
|
-
display: 'flex',
|
|
59
|
-
alignItems: 'center',
|
|
60
|
-
'&-container': {
|
|
61
|
-
padding: 12,
|
|
62
|
-
border: '1px solid #f0f0f0',
|
|
63
|
-
borderRadius: '0.5em',
|
|
64
|
-
margin: '8px 0',
|
|
65
|
-
width: '100%',
|
|
66
|
-
maxHeight: '120px',
|
|
67
|
-
minHeight: 72,
|
|
68
|
-
backgroundImage: 'linear-gradient(rgb(249, 251, 255) 0%, rgb(243, 248, 255) 100%)',
|
|
69
|
-
flex: 1,
|
|
70
|
-
display: 'flex',
|
|
71
|
-
alignItems: 'center',
|
|
72
|
-
gap: 12,
|
|
73
|
-
color: '#262626',
|
|
74
|
-
justifyContent: 'space-between',
|
|
75
|
-
'&-content': {
|
|
76
|
-
display: 'flex',
|
|
77
|
-
alignItems: 'center',
|
|
78
|
-
gap: 12,
|
|
79
|
-
color: '#262626',
|
|
80
|
-
fontSize: 16,
|
|
81
|
-
flex: 1,
|
|
82
|
-
minWidth: 0,
|
|
83
|
-
'& &-title': {
|
|
84
|
-
overflow: 'ellipsis',
|
|
85
|
-
textOverflow: 'ellipsis',
|
|
86
|
-
textWrap: 'nowrap',
|
|
87
|
-
textDecoration: 'none',
|
|
88
|
-
display: 'block',
|
|
89
|
-
color: '#262626'
|
|
90
|
-
},
|
|
91
|
-
'& &-description': {
|
|
92
|
-
flex: 1,
|
|
93
|
-
minWidth: 0,
|
|
94
|
-
marginTop: 4,
|
|
95
|
-
lineHeight: '24px',
|
|
96
|
-
display: 'flex',
|
|
97
|
-
fontSize: 12,
|
|
98
|
-
color: 'rgba(0,0,0,0.45)',
|
|
99
|
-
justifyContent: 'space-between'
|
|
100
|
-
},
|
|
101
|
-
'& &-collaborators': {
|
|
102
|
-
flex: 1,
|
|
103
|
-
minWidth: 0,
|
|
104
|
-
display: 'flex',
|
|
105
|
-
justifyContent: 'space-between'
|
|
106
|
-
},
|
|
107
|
-
'& &-updateTime': {
|
|
108
|
-
color: 'rgba(0,0,0,0.45)',
|
|
109
|
-
fontSize: 12
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
|
-
'& [data-icon-box]': {
|
|
113
|
-
padding: '0 18px',
|
|
114
|
-
color: '#6b7280',
|
|
115
|
-
cursor: 'pointer',
|
|
116
|
-
'&:hover': {
|
|
117
|
-
color: '#1667ff'
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
});
|
|
122
|
-
};
|
|
123
|
-
/**
|
|
124
|
-
* BubbleChat
|
|
125
|
-
* @param prefixCls
|
|
126
|
-
* @returns
|
|
127
|
-
*/ export function useStyle(prefixCls) {
|
|
128
|
-
return useEditorStyleRegister('editor-content-link-card', function(token) {
|
|
129
|
-
var editorToken = _object_spread_props(_object_spread({}, token), {
|
|
130
|
-
componentCls: ".".concat(prefixCls)
|
|
131
|
-
});
|
|
132
|
-
return [
|
|
133
|
-
genStyle(editorToken)
|
|
134
|
-
];
|
|
135
|
-
});
|
|
136
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
/**
|
|
3
|
-
* BubbleChat
|
|
4
|
-
* @param prefixCls
|
|
5
|
-
* @returns
|
|
6
|
-
*/
|
|
7
|
-
export declare function useStyle(prefixCls?: string): {
|
|
8
|
-
wrapSSR: (node: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => import("react").JSX.Element;
|
|
9
|
-
hashId: string;
|
|
10
|
-
};
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
function _define_property(obj, key, value) {
|
|
2
|
-
if (key in obj) {
|
|
3
|
-
Object.defineProperty(obj, key, {
|
|
4
|
-
value: value,
|
|
5
|
-
enumerable: true,
|
|
6
|
-
configurable: true,
|
|
7
|
-
writable: true
|
|
8
|
-
});
|
|
9
|
-
} else {
|
|
10
|
-
obj[key] = value;
|
|
11
|
-
}
|
|
12
|
-
return obj;
|
|
13
|
-
}
|
|
14
|
-
function _object_spread(target) {
|
|
15
|
-
for(var i = 1; i < arguments.length; i++){
|
|
16
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
17
|
-
var ownKeys = Object.keys(source);
|
|
18
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
19
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
20
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
21
|
-
}));
|
|
22
|
-
}
|
|
23
|
-
ownKeys.forEach(function(key) {
|
|
24
|
-
_define_property(target, key, source[key]);
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
return target;
|
|
28
|
-
}
|
|
29
|
-
function ownKeys(object, enumerableOnly) {
|
|
30
|
-
var keys = Object.keys(object);
|
|
31
|
-
if (Object.getOwnPropertySymbols) {
|
|
32
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
33
|
-
if (enumerableOnly) {
|
|
34
|
-
symbols = symbols.filter(function(sym) {
|
|
35
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
keys.push.apply(keys, symbols);
|
|
39
|
-
}
|
|
40
|
-
return keys;
|
|
41
|
-
}
|
|
42
|
-
function _object_spread_props(target, source) {
|
|
43
|
-
source = source != null ? source : {};
|
|
44
|
-
if (Object.getOwnPropertyDescriptors) {
|
|
45
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
46
|
-
} else {
|
|
47
|
-
ownKeys(Object(source)).forEach(function(key) {
|
|
48
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
return target;
|
|
52
|
-
}
|
|
53
|
-
import { useEditorStyleRegister } from "../../../../Hooks/useStyle";
|
|
54
|
-
var genStyle = function(token) {
|
|
55
|
-
var _obj;
|
|
56
|
-
return _define_property({}, token.componentCls, (_obj = {
|
|
57
|
-
listStyle: 'disc',
|
|
58
|
-
marginBottom: '0',
|
|
59
|
-
marginTop: '0',
|
|
60
|
-
'&-container': {
|
|
61
|
-
marginTop: '0.5em',
|
|
62
|
-
marginBottom: '0.5em'
|
|
63
|
-
},
|
|
64
|
-
'div[data-be="paragraph"]': {
|
|
65
|
-
display: 'block',
|
|
66
|
-
marginBottom: '0 !important',
|
|
67
|
-
marginTop: '0 !important',
|
|
68
|
-
paddingTop: '0 !important',
|
|
69
|
-
paddingBottom: '0 !important'
|
|
70
|
-
}
|
|
71
|
-
}, _define_property(_obj, "li:not(".concat(token.componentCls, "-task) > :first-child [data-drag-handle]"), {
|
|
72
|
-
paddingLeft: '2px',
|
|
73
|
-
paddingRight: '12px',
|
|
74
|
-
left: '-44px !important'
|
|
75
|
-
}), _define_property(_obj, "li".concat(token.componentCls, "-task > :nth-child(2) [data-drag-handle]"), {
|
|
76
|
-
paddingLeft: '2px',
|
|
77
|
-
paddingRight: '10px',
|
|
78
|
-
left: '-50px !important'
|
|
79
|
-
}), _define_property(_obj, '&-check-item', {
|
|
80
|
-
display: 'flex',
|
|
81
|
-
alignItems: 'center',
|
|
82
|
-
position: 'absolute',
|
|
83
|
-
userSelect: 'none',
|
|
84
|
-
height: '1.87em',
|
|
85
|
-
left: '0',
|
|
86
|
-
top: '0',
|
|
87
|
-
zIndex: 10
|
|
88
|
-
}), _define_property(_obj, '&-item', _define_property({
|
|
89
|
-
position: 'relative',
|
|
90
|
-
wordBreak: 'break-all',
|
|
91
|
-
gap: '4px',
|
|
92
|
-
"> [data-be='list']": {
|
|
93
|
-
marginBottom: '0'
|
|
94
|
-
}
|
|
95
|
-
}, "&".concat(token.componentCls, "-task"), {
|
|
96
|
-
paddingLeft: '24px',
|
|
97
|
-
display: 'flex',
|
|
98
|
-
alignItems: 'center'
|
|
99
|
-
})), _define_property(_obj, '&.ol', _define_property({
|
|
100
|
-
'&::marker': {
|
|
101
|
-
color: 'var(--color-gray-text-light)'
|
|
102
|
-
}
|
|
103
|
-
}, "&".concat(token.componentCls), _define_property({
|
|
104
|
-
listStyle: 'decimal'
|
|
105
|
-
}, "& ol".concat(token.componentCls), _define_property({
|
|
106
|
-
listStyle: 'lower-alpha',
|
|
107
|
-
paddingLeft: 'var(--padding-4x)'
|
|
108
|
-
}, "& ol".concat(token.componentCls), _define_property({
|
|
109
|
-
listStyle: 'lower-roman'
|
|
110
|
-
}, "& ol".concat(token.componentCls), {
|
|
111
|
-
listStyle: 'decimal'
|
|
112
|
-
}))))), _define_property(_obj, '&.ul', _define_property({}, "&".concat(token.componentCls), _define_property({
|
|
113
|
-
listStyle: 'disc'
|
|
114
|
-
}, "& ul".concat(token.componentCls), _define_property({
|
|
115
|
-
listStyle: 'circle',
|
|
116
|
-
paddingLeft: 'var(--padding-4x)'
|
|
117
|
-
}, "& ul".concat(token.componentCls), _define_property({
|
|
118
|
-
listStyle: 'square'
|
|
119
|
-
}, "& ul".concat(token.componentCls), {
|
|
120
|
-
listStyle: 'disc'
|
|
121
|
-
}))))), _define_property(_obj, '&[data-task]', {
|
|
122
|
-
listStyle: 'none !important',
|
|
123
|
-
paddingLeft: '0'
|
|
124
|
-
}), _obj));
|
|
125
|
-
};
|
|
126
|
-
/**
|
|
127
|
-
* BubbleChat
|
|
128
|
-
* @param prefixCls
|
|
129
|
-
* @returns
|
|
130
|
-
*/ export function useStyle(prefixCls) {
|
|
131
|
-
return useEditorStyleRegister('editor-content-list', function(token) {
|
|
132
|
-
var editorToken = _object_spread_props(_object_spread({}, token), {
|
|
133
|
-
componentCls: ".".concat(prefixCls)
|
|
134
|
-
});
|
|
135
|
-
return [
|
|
136
|
-
genStyle(editorToken)
|
|
137
|
-
];
|
|
138
|
-
});
|
|
139
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
/**
|
|
3
|
-
* Mermaid 组件样式 Hook
|
|
4
|
-
* @param prefixCls - 样式类名前缀
|
|
5
|
-
* @returns 样式相关的 className 和 hashId
|
|
6
|
-
*/
|
|
7
|
-
export declare function useStyle(prefixCls?: string): {
|
|
8
|
-
wrapSSR: (node: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => import("react").JSX.Element;
|
|
9
|
-
hashId: string;
|
|
10
|
-
};
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
function _define_property(obj, key, value) {
|
|
2
|
-
if (key in obj) {
|
|
3
|
-
Object.defineProperty(obj, key, {
|
|
4
|
-
value: value,
|
|
5
|
-
enumerable: true,
|
|
6
|
-
configurable: true,
|
|
7
|
-
writable: true
|
|
8
|
-
});
|
|
9
|
-
} else {
|
|
10
|
-
obj[key] = value;
|
|
11
|
-
}
|
|
12
|
-
return obj;
|
|
13
|
-
}
|
|
14
|
-
function _object_spread(target) {
|
|
15
|
-
for(var i = 1; i < arguments.length; i++){
|
|
16
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
17
|
-
var ownKeys = Object.keys(source);
|
|
18
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
19
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
20
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
21
|
-
}));
|
|
22
|
-
}
|
|
23
|
-
ownKeys.forEach(function(key) {
|
|
24
|
-
_define_property(target, key, source[key]);
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
return target;
|
|
28
|
-
}
|
|
29
|
-
function ownKeys(object, enumerableOnly) {
|
|
30
|
-
var keys = Object.keys(object);
|
|
31
|
-
if (Object.getOwnPropertySymbols) {
|
|
32
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
33
|
-
if (enumerableOnly) {
|
|
34
|
-
symbols = symbols.filter(function(sym) {
|
|
35
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
keys.push.apply(keys, symbols);
|
|
39
|
-
}
|
|
40
|
-
return keys;
|
|
41
|
-
}
|
|
42
|
-
function _object_spread_props(target, source) {
|
|
43
|
-
source = source != null ? source : {};
|
|
44
|
-
if (Object.getOwnPropertyDescriptors) {
|
|
45
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
46
|
-
} else {
|
|
47
|
-
ownKeys(Object(source)).forEach(function(key) {
|
|
48
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
return target;
|
|
52
|
-
}
|
|
53
|
-
import { useEditorStyleRegister } from "../../../../Hooks/useStyle";
|
|
54
|
-
var genStyle = function(token) {
|
|
55
|
-
return _define_property({}, token.componentCls, {
|
|
56
|
-
// 基础容器样式
|
|
57
|
-
height: '240px',
|
|
58
|
-
minWidth: '300px',
|
|
59
|
-
maxWidth: '800px',
|
|
60
|
-
minHeight: '240px',
|
|
61
|
-
display: 'flex',
|
|
62
|
-
flexDirection: 'column',
|
|
63
|
-
alignItems: 'center',
|
|
64
|
-
alignSelf: 'stretch',
|
|
65
|
-
zIndex: 5,
|
|
66
|
-
color: 'rgb(27, 27, 27)',
|
|
67
|
-
padding: '1em',
|
|
68
|
-
margin: '1em 0',
|
|
69
|
-
fontSize: '0.8em',
|
|
70
|
-
lineHeight: '1.5',
|
|
71
|
-
overflowX: 'auto',
|
|
72
|
-
whiteSpace: 'pre-wrap',
|
|
73
|
-
wordBreak: 'break-all',
|
|
74
|
-
fontFamily: "'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",
|
|
75
|
-
wordWrap: 'break-word',
|
|
76
|
-
borderRadius: '12px',
|
|
77
|
-
background: '#FFFFFF',
|
|
78
|
-
boxShadow: 'var(--shadow-control-base)',
|
|
79
|
-
// SVG 渲染优化
|
|
80
|
-
'& svg': {
|
|
81
|
-
// 节点样式
|
|
82
|
-
'& .node': {
|
|
83
|
-
'& rect, & circle, & ellipse, & polygon': {
|
|
84
|
-
stroke: '#333',
|
|
85
|
-
strokeWidth: '1px',
|
|
86
|
-
fill: '#fff'
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
// 强制设置所有文字样式
|
|
90
|
-
'& text': {
|
|
91
|
-
// 确保文字不会被裁剪
|
|
92
|
-
dominantBaseline: 'middle',
|
|
93
|
-
textAnchor: 'middle'
|
|
94
|
-
},
|
|
95
|
-
// 节点标签 - 更大的字体
|
|
96
|
-
'& .nodeLabel': {
|
|
97
|
-
fontWeight: 500,
|
|
98
|
-
fill: '#333 !important'
|
|
99
|
-
},
|
|
100
|
-
// 边标签 - 稍小一些但仍然清晰
|
|
101
|
-
'& .edgeLabel': {
|
|
102
|
-
fill: '#666 !important'
|
|
103
|
-
},
|
|
104
|
-
// 专门针对流程图的文字
|
|
105
|
-
'& .flowchart-label': {
|
|
106
|
-
fill: '#333 !important'
|
|
107
|
-
},
|
|
108
|
-
// 针对不同类型的标签
|
|
109
|
-
'& .label': {
|
|
110
|
-
fill: '#333 !important'
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
// 错误状态样式
|
|
114
|
-
'&-error': {
|
|
115
|
-
color: '#d73a49',
|
|
116
|
-
background: '#ffeaea',
|
|
117
|
-
border: '1px solid #f97583',
|
|
118
|
-
padding: '12px',
|
|
119
|
-
borderRadius: '4px',
|
|
120
|
-
textAlign: 'left',
|
|
121
|
-
'& pre': {
|
|
122
|
-
margin: '8px 0 0',
|
|
123
|
-
background: '#f6f8fa',
|
|
124
|
-
padding: '8px',
|
|
125
|
-
borderRadius: '4px',
|
|
126
|
-
fontSize: '12px'
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
});
|
|
130
|
-
};
|
|
131
|
-
/**
|
|
132
|
-
* Mermaid 组件样式 Hook
|
|
133
|
-
* @param prefixCls - 样式类名前缀
|
|
134
|
-
* @returns 样式相关的 className 和 hashId
|
|
135
|
-
*/ export function useStyle(prefixCls) {
|
|
136
|
-
return useEditorStyleRegister('editor-content-mermaid', function(token) {
|
|
137
|
-
var editorToken = _object_spread_props(_object_spread({}, token), {
|
|
138
|
-
componentCls: ".".concat(prefixCls)
|
|
139
|
-
});
|
|
140
|
-
return [
|
|
141
|
-
genStyle(editorToken)
|
|
142
|
-
];
|
|
143
|
-
});
|
|
144
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
/**
|
|
3
|
-
* TableCellIndex 样式 hook
|
|
4
|
-
* @param prefixCls 组件前缀类名
|
|
5
|
-
* @returns 样式相关的对象
|
|
6
|
-
*/
|
|
7
|
-
export declare function useStyle(prefixCls?: string): {
|
|
8
|
-
wrapSSR: (node: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => import("react").JSX.Element;
|
|
9
|
-
hashId: string;
|
|
10
|
-
};
|