@lobehub/ui 1.11.2 → 1.11.4
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
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
|
|
7
7
|
<h1>Lobe UI</h1>
|
|
8
8
|
|
|
9
|
-
Lobe UI is an open-source UI component library for building
|
|
10
|
-
|
|
9
|
+
Lobe UI is an open-source UI component library for building _AIGC_ web apps
|
|
10
|
+
|
|
11
11
|
[Changelog](./CHANGELOG.md) · [Report Bug][issues-url] · [Request Feature][issues-url]
|
|
12
|
-
|
|
12
|
+
|
|
13
13
|
<!-- SHIELD GROUP -->
|
|
14
14
|
|
|
15
15
|
[![release][release-shield]][release-url]
|
|
@@ -21,19 +21,36 @@ Lobe UI is an open-source UI component library for building chatbot web apps
|
|
|
21
21
|
[![forks][forks-shield]][forks-url]
|
|
22
22
|
[![stargazers][stargazers-shield]][stargazers-url]
|
|
23
23
|
[![issues][issues-shield]][issues-url]
|
|
24
|
-
|
|
24
|
+
|
|
25
25
|

|
|
26
26
|
|
|
27
27
|
</div>
|
|
28
28
|
|
|
29
29
|
## 📦 Installation
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
This package is [ESM only](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).
|
|
32
|
+
|
|
33
|
+
To install Lobe UI, run the following command:
|
|
32
34
|
|
|
33
35
|
```bash
|
|
34
36
|
pnpm add @lobehub/ui
|
|
35
37
|
```
|
|
36
38
|
|
|
39
|
+
## Usage
|
|
40
|
+
|
|
41
|
+
### Compile with NextJS
|
|
42
|
+
|
|
43
|
+
by work correct with nextjs ssr, add `transpilePackages: ['@lobehub/ui']` to `next.config.js`. For example:
|
|
44
|
+
|
|
45
|
+
```js
|
|
46
|
+
// next.config.js
|
|
47
|
+
const nextConfig = {
|
|
48
|
+
// ...other config
|
|
49
|
+
|
|
50
|
+
transpilePackages: ['@lobehub/ui'],
|
|
51
|
+
};
|
|
52
|
+
```
|
|
53
|
+
|
|
37
54
|
<div align="right">
|
|
38
55
|
|
|
39
56
|
[![][back-to-top]](#readme-top)
|
|
@@ -61,7 +78,6 @@ $ pnpm start
|
|
|
61
78
|
|
|
62
79
|
</div>
|
|
63
80
|
|
|
64
|
-
|
|
65
81
|
## 🤝 Contributing
|
|
66
82
|
|
|
67
83
|
<!-- CONTRIBUTION GROUP -->
|
|
@@ -90,11 +106,11 @@ $ pnpm start
|
|
|
90
106
|
</div>
|
|
91
107
|
|
|
92
108
|
---
|
|
109
|
+
|
|
93
110
|
#### 📝 License
|
|
94
111
|
|
|
95
112
|
Copyright © 2023 [LobeHub][profile-url]. <br />
|
|
96
|
-
This project is [MIT](./LICENSE) licensed.
|
|
97
|
-
|
|
113
|
+
This project is [MIT](./LICENSE) licensed.
|
|
98
114
|
|
|
99
115
|
<!-- LINK GROUP -->
|
|
100
116
|
|
|
@@ -39,7 +39,7 @@ var SyntaxHighlighter = /*#__PURE__*/memo(function (_ref) {
|
|
|
39
39
|
})
|
|
40
40
|
}) : /*#__PURE__*/_jsx("div", {
|
|
41
41
|
dangerouslySetInnerHTML: {
|
|
42
|
-
__html: codeToHtml(children, language,
|
|
42
|
+
__html: codeToHtml(children, language, isDarkMode) || ''
|
|
43
43
|
},
|
|
44
44
|
className: styles.shiki
|
|
45
45
|
}), isLoading && /*#__PURE__*/_jsxs(Center, {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const themeConfig: any;
|