@lobehub/ui 1.84.2 โ†’ 1.86.0

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/README.md CHANGED
@@ -42,6 +42,8 @@ Lobe UI is an open-source UI component library for building _AIGC_ web apps
42
42
 
43
43
  - [๐Ÿค Contributing](#-contributing)
44
44
 
45
+ - [๐Ÿ”— More Products](#-more-products)
46
+
45
47
  ####
46
48
 
47
49
  </details>
@@ -108,7 +110,7 @@ $ pnpm start
108
110
 
109
111
  <!-- CONTRIBUTION GROUP -->
110
112
 
111
- > ๐Ÿ“Š Total: <kbd>**5**</kbd>
113
+ > ๐Ÿ“Š Total: <kbd>**6**</kbd>
112
114
 
113
115
  <a href="https://github.com/canisminor1990" title="canisminor1990">
114
116
  <img src="https://avatars.githubusercontent.com/u/17870709?v=4" width="50" />
@@ -122,6 +124,9 @@ $ pnpm start
122
124
  <a href="https://github.com/actions-user" title="actions-user">
123
125
  <img src="https://avatars.githubusercontent.com/u/65916846?v=4" width="50" />
124
126
  </a>
127
+ <a href="https://github.com/Wxh16144" title="Wxh16144">
128
+ <img src="https://avatars.githubusercontent.com/u/32004925?v=4" width="50" />
129
+ </a>
125
130
  <a href="https://github.com/meganjohnson96" title="meganjohnson96">
126
131
  <img src="https://avatars.githubusercontent.com/u/136729222?v=4" width="50" />
127
132
  </a>
@@ -134,6 +139,19 @@ $ pnpm start
134
139
 
135
140
  </div>
136
141
 
142
+ ## ๐Ÿ”— More Products
143
+
144
+ - **[๐Ÿค– Lobe Chat][lobe-chat] :** An open-source, extensible (Function Calling), high-performance chatbot framework. It supports one-click free deployment of your private ChatGPT/LLM web application.
145
+ - **[๐Ÿคฏ Lobe Theme][lobe-theme] :** The modern theme for stable diffusion webui, exquisite interface design, highly customizable UI, and efficiency boosting features.
146
+ - **[๐ŸŒ Lobe i18n][lobe-i18n] :** Lobe i18n is an automation tool for the i18n (internationalization) translation process, powered by ChatGPT. It supports features such as automatic splitting of large files, incremental updates, and customization options for the OpenAI model, API proxy, and temperature.
147
+ - **[๐Ÿ’Œ Lobe Commit][lobe-commit] :** Lobe Commit is a CLI tool that leverages Langchain/ChatGPT to generate Gitmoji-based commit messages.
148
+
149
+ <div align="right">
150
+
151
+ [![][back-to-top]](#readme-top)
152
+
153
+ </div>
154
+
137
155
  ---
138
156
 
139
157
  #### ๐Ÿ“ License
@@ -143,49 +161,26 @@ This project is [MIT](./LICENSE) licensed.
143
161
 
144
162
  <!-- LINK GROUP -->
145
163
 
146
- [profile-url]: https://github.com/lobehub
147
- [gitpod-url]: https://gitpod.io/#https://github.com/lobehub/lobe-ui
148
-
149
- <!-- SHIELD LINK GROUP -->
150
-
151
164
  [back-to-top]: https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square
152
-
153
- <!-- release -->
154
-
155
- [release-shield]: https://img.shields.io/npm/v/@lobehub/ui?label=%F0%9F%A4%AF%20NPM
156
- [release-url]: https://www.npmjs.com/package/@lobehub/ui
157
-
158
- <!-- releaseDate -->
159
-
160
- [release-date-shield]: https://img.shields.io/github/release-date/lobehub/lobe-ui?style=flat
161
- [release-date-url]: https://github.com/lobehub/lobe-ui/releases
162
-
163
- <!-- ciTest -->
164
-
165
- [ci-test-shield]: https://github.com/lobehub/lobe-ui/workflows/Test%20CI/badge.svg
166
- [ci-test-url]: https://github.com/lobehub/lobe-ui/actions?query=workflow%3ATest%20CI
167
-
168
- <!-- ciRelease -->
169
-
170
165
  [ci-release-shield]: https://github.com/lobehub/lobe-ui/workflows/Release%20CI/badge.svg
171
166
  [ci-release-url]: https://github.com/lobehub/lobe-ui/actions?query=workflow%3ARelease%20CI
172
-
173
- <!-- contributors -->
174
-
167
+ [ci-test-shield]: https://github.com/lobehub/lobe-ui/workflows/Test%20CI/badge.svg
168
+ [ci-test-url]: https://github.com/lobehub/lobe-ui/actions?query=workflow%3ATest%20CI
175
169
  [contributors-shield]: https://img.shields.io/github/contributors/lobehub/lobe-ui.svg?style=flat
176
170
  [contributors-url]: https://github.com/lobehub/lobe-ui/graphs/contributors
177
-
178
- <!-- forks -->
179
-
180
171
  [forks-shield]: https://img.shields.io/github/forks/lobehub/lobe-ui.svg?style=flat
181
172
  [forks-url]: https://github.com/lobehub/lobe-ui/network/members
182
-
183
- <!-- stargazers -->
184
-
185
- [stargazers-shield]: https://img.shields.io/github/stars/lobehub/lobe-ui.svg?style=flat
186
- [stargazers-url]: https://github.com/lobehub/lobe-ui/stargazers
187
-
188
- <!-- issues -->
189
-
173
+ [gitpod-url]: https://gitpod.io/#https://github.com/lobehub/lobe-ui
190
174
  [issues-shield]: https://img.shields.io/github/issues/lobehub/lobe-ui.svg?style=flat
191
175
  [issues-url]: https://github.com/lobehub/lobe-ui/issues/new/choose
176
+ [lobe-chat]: https://github.com/lobehub/lobe-chat
177
+ [lobe-commit]: https://github.com/lobehub/lobe-commit/tree/master/packages/lobe-commit
178
+ [lobe-i18n]: https://github.com/lobehub/lobe-commit/tree/master/packages/lobe-i18n
179
+ [lobe-theme]: https://github.com/lobehub/sd-webui-lobe-theme
180
+ [profile-url]: https://github.com/lobehub
181
+ [release-date-shield]: https://img.shields.io/github/release-date/lobehub/lobe-ui?style=flat
182
+ [release-date-url]: https://github.com/lobehub/lobe-ui/releases
183
+ [release-shield]: https://img.shields.io/npm/v/@lobehub/ui?label=%F0%9F%A4%AF%20NPM
184
+ [release-url]: https://www.npmjs.com/package/@lobehub/ui
185
+ [stargazers-shield]: https://img.shields.io/github/stars/lobehub/lobe-ui.svg?style=flat
186
+ [stargazers-url]: https://github.com/lobehub/lobe-ui/stargazers
package/es/Hero/style.js CHANGED
@@ -12,7 +12,7 @@ export var useStyles = createStyles(function (_ref) {
12
12
  canvas: cx(stylish.gradientAnimation, css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n pointer-events: none;\n\n position: absolute;\n z-index: 10;\n top: -250px;\n left: 50%;\n transform: translateX(-50%) scale(1.5);\n\n width: 600px;\n height: 400px;\n\n opacity: 0.2;\n filter: blur(100px);\n\n ", " {\n width: 200px;\n height: 300px;\n }\n "])), responsive.mobile)),
13
13
  container: css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n position: relative;\n box-sizing: border-box;\n text-align: center;\n "]))),
14
14
  desc: css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n margin-top: 0;\n font-size: ", "px;\n color: ", ";\n text-align: center;\n\n ", " {\n margin: 24px 16px;\n font-size: ", "px;\n }\n "])), token.fontSizeHeading3, token.colorTextSecondary, responsive.mobile, token.fontSizeHeading5),
15
- title: css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n z-index: 10;\n margin: 0;\n font-size: 100px;\n\n ", "\n\n b {\n ", "\n position: relative;\n z-index: 5;\n background-clip: text;\n\n -webkit-text-fill-color: transparent;\n }\n "])), responsive({
15
+ title: css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n z-index: 10;\n margin: 0;\n font-size: 100px;\n\n ", "\n\n b {\n ", "\n position: relative;\n z-index: 5;\n background-clip: text;\n\n -webkit-text-fill-color: transparent;\n\n &::selection {\n -webkit-text-fill-color: #000 !important;\n }\n }\n "])), responsive({
16
16
  mobile: {
17
17
  display: 'flex',
18
18
  flexDirection: 'column',
@@ -47,7 +47,7 @@ export var Highlighter = /*#__PURE__*/memo(function (_ref) {
47
47
  children: language.toLowerCase()
48
48
  }), /*#__PURE__*/_jsx(SyntaxHighlighter, {
49
49
  language: language === null || language === void 0 ? void 0 : language.toLowerCase(),
50
- children: children.trim()
50
+ children: children === null || children === void 0 ? void 0 : children.trim()
51
51
  })]
52
52
  }));
53
53
  });
@@ -1,3 +1,4 @@
1
+ import 'katex/dist/katex.min.css';
1
2
  import { CSSProperties } from 'react';
2
3
  export interface MarkdownProps {
3
4
  /**
@@ -4,11 +4,14 @@ var _excluded = ["children", "className", "style"];
4
4
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
5
5
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
6
6
  import { Collapse, Divider, Image, Typography } from 'antd';
7
+ import 'katex/dist/katex.min.css';
7
8
  import { memo } from 'react';
8
9
  import { ErrorBoundary } from 'react-error-boundary';
9
10
  import ReactMarkdown from 'react-markdown';
11
+ import rehypeKatex from 'rehype-katex';
10
12
  import rehypeRaw from 'rehype-raw';
11
13
  import remarkGfm from 'remark-gfm';
14
+ import remarkMath from 'remark-math';
12
15
  import Code from "./Code";
13
16
  import CodeBlock from "./CodeBlock";
14
17
  import { useStyles } from "./style";
@@ -49,8 +52,8 @@ var Markdown = /*#__PURE__*/memo(function (_ref) {
49
52
  children: /*#__PURE__*/_jsx(ReactMarkdown, _objectSpread(_objectSpread({
50
53
  className: styles.markdown,
51
54
  components: components,
52
- rehypePlugins: [rehypeRaw],
53
- remarkPlugins: [remarkGfm]
55
+ rehypePlugins: [rehypeRaw, rehypeKatex],
56
+ remarkPlugins: [remarkGfm, remarkMath]
54
57
  }, props), {}, {
55
58
  children: children
56
59
  }))
@@ -1,5 +1,5 @@
1
1
  import { type Highlighter, type HighlighterCoreOptions } from 'shikiji';
2
- export declare const languageMap: readonly ["javascript", "js", "jsx", "json", "markdown", "md", "less", "css", "typescript", "ts", "tsx", "diff", "bash"];
2
+ export declare const languageMap: readonly ["javascript", "js", "jsx", "json", "markdown", "md", "less", "css", "python", "py", "typescript", "ts", "tsx", "diff", "bash"];
3
3
  /**
4
4
  * @title ไปฃ็ ้ซ˜ไบฎ็š„ๅญ˜ๅ‚จๅฏน่ฑก
5
5
  */
@@ -4,7 +4,7 @@ import { getHighlighter } from 'shikiji';
4
4
  import { shallow } from 'zustand/shallow';
5
5
  import { createWithEqualityFn } from 'zustand/traditional';
6
6
  import { themeConfig } from "../Highlighter/theme";
7
- export var languageMap = ['javascript', 'js', 'jsx', 'json', 'markdown', 'md', 'less', 'css', 'typescript', 'ts', 'tsx', 'diff', 'bash'];
7
+ export var languageMap = ['javascript', 'js', 'jsx', 'json', 'markdown', 'md', 'less', 'css', 'python', 'py', 'typescript', 'ts', 'tsx', 'diff', 'bash'];
8
8
 
9
9
  /**
10
10
  * @title ไปฃ็ ้ซ˜ไบฎ็š„ๅญ˜ๅ‚จๅฏน่ฑก
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/ui",
3
- "version": "1.84.2",
3
+ "version": "1.86.0",
4
4
  "description": "Lobe UI is an open-source UI component library for building AIGC web apps",
5
5
  "keywords": [
6
6
  "lobehub",
@@ -88,6 +88,7 @@
88
88
  "emoji-regex": "^10",
89
89
  "fast-deep-equal": "^3",
90
90
  "immer": "^10",
91
+ "katex": "^0.16",
91
92
  "leva": "^0",
92
93
  "lodash-es": "^4",
93
94
  "lucide-react": "latest",
@@ -100,8 +101,10 @@
100
101
  "react-markdown": "^8",
101
102
  "react-rnd": "^10",
102
103
  "react-simple-code-editor": "^0",
104
+ "rehype-katex": "^6",
103
105
  "rehype-raw": "^6",
104
106
  "remark-gfm": "^3",
107
+ "remark-math": "^5",
105
108
  "shikiji": "^0",
106
109
  "styled-components": "^6",
107
110
  "three": "^0.150",
@@ -132,7 +135,7 @@
132
135
  "father": "^4",
133
136
  "husky": "^8",
134
137
  "jsdom": "^22",
135
- "lint-staged": "^13",
138
+ "lint-staged": "^14",
136
139
  "prettier": "^3",
137
140
  "react": "^18",
138
141
  "react-dom": "^18",