@fe-free/core 1.6.0 → 1.6.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @fe-free/core
2
2
 
3
+ ## 1.6.1
4
+
5
+ ### Patch Changes
6
+
7
+ - feat: md
8
+ - @fe-free/tool@1.6.1
9
+
3
10
  ## 1.6.0
4
11
 
5
12
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fe-free/core",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "",
5
5
  "main": "./src/index.ts",
6
6
  "author": "",
@@ -39,7 +39,7 @@
39
39
  "remark-gfm": "^4.0.1",
40
40
  "vanilla-jsoneditor": "^0.23.1",
41
41
  "zustand": "^4.5.4",
42
- "@fe-free/tool": "1.6.0"
42
+ "@fe-free/tool": "1.6.1"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "@ant-design/pro-components": "^2.8.7",
@@ -1,8 +1,25 @@
1
+ import { DownOutlined, UpOutlined } from '@ant-design/icons';
2
+ import { useState } from 'react';
3
+
1
4
  function DeepSeekBlock(props: { children: string }) {
5
+ const [show, setShow] = useState(true);
6
+
2
7
  return (
3
- <div className="markdown-body-deep-seek-block relative mb-3 pl-[14px] text-[#00000099] text-[14px]">
4
- <div className="top=0 absolute left-0 h-full w-[2px] bg-[#00000014]" />
5
- {props.children === '<br/>' ? undefined : props.children}
8
+ <div className="markdown-body-deep-seek-block mb-3 text-[#00000099] text-[14px] flex flex-col gap-2">
9
+ <div
10
+ className="cursor-pointer"
11
+ onClick={() => {
12
+ setShow((v) => !v);
13
+ }}
14
+ >
15
+ 深度思考 {show ? <UpOutlined /> : <DownOutlined />}
16
+ </div>
17
+ {show && (
18
+ <div className="relative pl-[15px]">
19
+ <div className="top=0 absolute left-0 h-full w-[2px] bg-[#00000014]" />
20
+ {props.children === '<br/>' ? undefined : props.children}
21
+ </div>
22
+ )}
6
23
  </div>
7
24
  );
8
25
  }
@@ -129,3 +129,12 @@ export const DeepSeek: Story = {
129
129
  `,
130
130
  },
131
131
  };
132
+
133
+ export const DeepSeekPending: Story = {
134
+ args: {
135
+ children: `<think>
136
+ 好的,我现在需要处理用户的问题。用户一开始用中文打招呼“你好”,然后我的回应应该遵循之前设定的角色和技能。首先,我需要确认用户是否是前端工程师求职者,或者他们需要哪方面的帮助。根据角色设定,我应该先了解他们的具体情况,比如技术栈、工作年限、项目经验和目标城市。
137
+
138
+ `,
139
+ },
140
+ };