@lobehub/ui 1.84.1 → 1.85.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 +24 -1
- package/es/Form/index.js +3 -1
- package/es/Hero/style.js +1 -1
- package/es/Highlighter/index.js +1 -1
- package/es/hooks/useHighlight.d.ts +1 -1
- package/es/hooks/useHighlight.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -108,7 +108,7 @@ $ pnpm start
|
|
|
108
108
|
|
|
109
109
|
<!-- CONTRIBUTION GROUP -->
|
|
110
110
|
|
|
111
|
-
> 📊 Total: <kbd>**
|
|
111
|
+
> 📊 Total: <kbd>**6**</kbd>
|
|
112
112
|
|
|
113
113
|
<a href="https://github.com/canisminor1990" title="canisminor1990">
|
|
114
114
|
<img src="https://avatars.githubusercontent.com/u/17870709?v=4" width="50" />
|
|
@@ -122,6 +122,9 @@ $ pnpm start
|
|
|
122
122
|
<a href="https://github.com/actions-user" title="actions-user">
|
|
123
123
|
<img src="https://avatars.githubusercontent.com/u/65916846?v=4" width="50" />
|
|
124
124
|
</a>
|
|
125
|
+
<a href="https://github.com/Wxh16144" title="Wxh16144">
|
|
126
|
+
<img src="https://avatars.githubusercontent.com/u/32004925?v=4" width="50" />
|
|
127
|
+
</a>
|
|
125
128
|
<a href="https://github.com/meganjohnson96" title="meganjohnson96">
|
|
126
129
|
<img src="https://avatars.githubusercontent.com/u/136729222?v=4" width="50" />
|
|
127
130
|
</a>
|
|
@@ -134,6 +137,19 @@ $ pnpm start
|
|
|
134
137
|
|
|
135
138
|
</div>
|
|
136
139
|
|
|
140
|
+
## 🔗 More Products
|
|
141
|
+
|
|
142
|
+
- **[🤖 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.
|
|
143
|
+
- **[🤯 Lobe Theme][lobe-theme] :** The modern theme for stable diffusion webui, exquisite interface design, highly customizable UI, and efficiency boosting features.
|
|
144
|
+
- **[🌏 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.
|
|
145
|
+
- **[💌 Lobe Commit][lobe-commit] :** Lobe Commit is a CLI tool that leverages Langchain/ChatGPT to generate Gitmoji-based commit messages.
|
|
146
|
+
|
|
147
|
+
<div align="right">
|
|
148
|
+
|
|
149
|
+
[![][back-to-top]](#readme-top)
|
|
150
|
+
|
|
151
|
+
</div>
|
|
152
|
+
|
|
137
153
|
---
|
|
138
154
|
|
|
139
155
|
#### 📝 License
|
|
@@ -189,3 +205,10 @@ This project is [MIT](./LICENSE) licensed.
|
|
|
189
205
|
|
|
190
206
|
[issues-shield]: https://img.shields.io/github/issues/lobehub/lobe-ui.svg?style=flat
|
|
191
207
|
[issues-url]: https://github.com/lobehub/lobe-ui/issues/new/choose
|
|
208
|
+
|
|
209
|
+
<!-- products -->
|
|
210
|
+
|
|
211
|
+
[lobe-chat]: https://github.com/lobehub/lobe-chat
|
|
212
|
+
[lobe-theme]: https://github.com/lobehub/sd-webui-lobe-theme
|
|
213
|
+
[lobe-commit]: https://github.com/lobehub/lobe-commit/tree/master/packages/lobe-commit
|
|
214
|
+
[lobe-i18n]: https://github.com/lobehub/lobe-commit/tree/master/packages/lobe-i18n
|
package/es/Form/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["className", "itemMinWidth", "footer", "items", "children"];
|
|
3
|
+
var _excluded = ["className", "itemMinWidth", "footer", "form", "items", "children"];
|
|
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 { Form as AntForm } from 'antd';
|
|
@@ -15,6 +15,7 @@ var FormParent = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
15
15
|
var className = _ref.className,
|
|
16
16
|
itemMinWidth = _ref.itemMinWidth,
|
|
17
17
|
footer = _ref.footer,
|
|
18
|
+
form = _ref.form,
|
|
18
19
|
items = _ref.items,
|
|
19
20
|
children = _ref.children,
|
|
20
21
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -24,6 +25,7 @@ var FormParent = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
24
25
|
return /*#__PURE__*/_jsxs(AntForm, _objectSpread(_objectSpread({
|
|
25
26
|
className: cx(styles.form, className),
|
|
26
27
|
colon: false,
|
|
28
|
+
form: form,
|
|
27
29
|
layout: "horizontal",
|
|
28
30
|
ref: ref
|
|
29
31
|
}, props), {}, {
|
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:
|
|
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 -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',
|
package/es/Highlighter/index.js
CHANGED
|
@@ -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,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
|
*/
|
package/es/hooks/useHighlight.js
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "1.85.0",
|
|
4
4
|
"description": "Lobe UI is an open-source UI component library for building AIGC web apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lobehub",
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
"father": "^4",
|
|
133
133
|
"husky": "^8",
|
|
134
134
|
"jsdom": "^22",
|
|
135
|
-
"lint-staged": "^
|
|
135
|
+
"lint-staged": "^14",
|
|
136
136
|
"prettier": "^3",
|
|
137
137
|
"react": "^18",
|
|
138
138
|
"react-dom": "^18",
|