@lobehub/ui 6.5.0 → 6.6.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 +87 -125
- package/es/Accordion/style.d.mts +2 -2
- package/es/AutoComplete/style.d.mts +1 -1
- package/es/Carousel/Carousel.mjs +7 -8
- package/es/Carousel/Carousel.mjs.map +1 -1
- package/es/Drawer/atoms.mjs +5 -5
- package/es/Drawer/atoms.mjs.map +1 -1
- package/es/EditorSlashMenu/EditorSlashMenu.mjs +7 -9
- package/es/EditorSlashMenu/EditorSlashMenu.mjs.map +1 -1
- package/es/FormKit/List.mjs +24 -24
- package/es/FormKit/List.mjs.map +1 -1
- package/es/Highlighter/Highlighter.mjs +1 -3
- package/es/Highlighter/Highlighter.mjs.map +1 -1
- package/es/Highlighter/LangSelect.mjs +2 -2
- package/es/Highlighter/LangSelect.mjs.map +1 -1
- package/es/Highlighter/SyntaxHighlighter/StaticRenderer.mjs +2 -3
- package/es/Highlighter/SyntaxHighlighter/StaticRenderer.mjs.map +1 -1
- package/es/Highlighter/SyntaxHighlighter/StreamRenderer.mjs +4 -20
- package/es/Highlighter/SyntaxHighlighter/StreamRenderer.mjs.map +1 -1
- package/es/Highlighter/SyntaxHighlighter/index.mjs +2 -3
- package/es/Highlighter/SyntaxHighlighter/index.mjs.map +1 -1
- package/es/Highlighter/SyntaxHighlighter/tokenFade.mjs.map +1 -1
- package/es/Highlighter/const.d.mts +2 -0
- package/es/Highlighter/const.mjs +95 -12
- package/es/Highlighter/const.mjs.map +1 -1
- package/es/Highlighter/engine.mjs +75 -0
- package/es/Highlighter/engine.mjs.map +1 -0
- package/es/Highlighter/languages.mjs +501 -0
- package/es/Highlighter/languages.mjs.map +1 -0
- package/es/Highlighter/theme/lobe-highlights-theme.mjs +73 -0
- package/es/Highlighter/theme/lobe-highlights-theme.mjs.map +1 -0
- package/es/Highlighter/tokens.mjs +50 -0
- package/es/Highlighter/tokens.mjs.map +1 -0
- package/es/Highlighter/type.d.mts +5 -2
- package/es/Image/viewer/ActualSizeIcon.mjs +3 -4
- package/es/Image/viewer/ActualSizeIcon.mjs.map +1 -1
- package/es/ImageSelect/ImageSelect.mjs +22 -22
- package/es/ImageSelect/ImageSelect.mjs.map +1 -1
- package/es/Markdown/SyntaxMarkdown/MarkdownRender.mjs.map +1 -1
- package/es/Markdown/SyntaxMarkdown/StreamdownRender.mjs.map +1 -1
- package/es/Markdown/components/Footnotes.mjs +26 -26
- package/es/Markdown/components/Footnotes.mjs.map +1 -1
- package/es/Markdown/plugins/remarkCjkAutolink.mjs +101 -0
- package/es/Markdown/plugins/remarkCjkAutolink.mjs.map +1 -0
- package/es/Modal/Modal.mjs.map +1 -1
- package/es/Modal/atoms.mjs +5 -5
- package/es/Modal/atoms.mjs.map +1 -1
- package/es/Pagination/Pagination.mjs +5 -5
- package/es/Pagination/Pagination.mjs.map +1 -1
- package/es/Popover/PopoverInGroup.mjs.map +1 -1
- package/es/Rate/Rate.mjs +3 -4
- package/es/Rate/Rate.mjs.map +1 -1
- package/es/SearchBar/SearchBar.mjs +3 -1
- package/es/SearchBar/SearchBar.mjs.map +1 -1
- package/es/Select/parts.mjs +20 -20
- package/es/Select/parts.mjs.map +1 -1
- package/es/Spin/NetworkGlyph.mjs +5 -7
- package/es/Spin/NetworkGlyph.mjs.map +1 -1
- package/es/Table/render/Header.mjs +15 -16
- package/es/Table/render/Header.mjs.map +1 -1
- package/es/color/ColorScales/ScaleRow.mjs +7 -7
- package/es/color/ColorScales/ScaleRow.mjs.map +1 -1
- package/es/color/ColorScales/index.mjs +20 -21
- package/es/color/ColorScales/index.mjs.map +1 -1
- package/es/color/CssVar/ScaleRow.mjs +7 -7
- package/es/color/CssVar/ScaleRow.mjs.map +1 -1
- package/es/color/CssVar/VarRow.mjs +7 -7
- package/es/color/CssVar/VarRow.mjs.map +1 -1
- package/es/color/CssVar/index.mjs +20 -21
- package/es/color/CssVar/index.mjs.map +1 -1
- package/es/dashboard/PageSkeleton/PageSkeleton.mjs +30 -25
- package/es/dashboard/PageSkeleton/PageSkeleton.mjs.map +1 -1
- package/es/eslint/index.d.mts +1 -1
- package/es/hooks/useHighlight.mjs +35 -107
- package/es/hooks/useHighlight.mjs.map +1 -1
- package/es/hooks/useMarkdown/useMarkdownRemarkPlugins.mjs +2 -0
- package/es/hooks/useMarkdown/useMarkdownRemarkPlugins.mjs.map +1 -1
- package/es/hooks/useStreamHighlight.mjs +90 -194
- package/es/hooks/useStreamHighlight.mjs.map +1 -1
- package/es/node_modules/.pnpm/{eslint@10.13.0_jiti@2.6.1_supports-color@10.2.2 → eslint@10.13.0_jiti@2.7.0_supports-color@10.2.2}/node_modules/eslint/lib/types/index.d.mts +1 -1
- package/es/style.css +2 -46
- package/package.json +4 -6
package/es/style.css
CHANGED
|
@@ -1331,52 +1331,8 @@
|
|
|
1331
1331
|
display: block;
|
|
1332
1332
|
}
|
|
1333
1333
|
|
|
1334
|
-
.lobe-syntax-highlighter-shiki pre
|
|
1335
|
-
|
|
1336
|
-
}
|
|
1337
|
-
|
|
1338
|
-
.lobe-syntax-highlighter-shiki pre .highlighted {
|
|
1339
|
-
background: var(--lobe-color-fill-tertiary);
|
|
1340
|
-
}
|
|
1341
|
-
|
|
1342
|
-
.lobe-syntax-highlighter-shiki pre .highlighted.warning {
|
|
1343
|
-
background: var(--lobe-color-warning-bg);
|
|
1344
|
-
}
|
|
1345
|
-
|
|
1346
|
-
.lobe-syntax-highlighter-shiki pre .highlighted.error {
|
|
1347
|
-
background: var(--lobe-color-error-bg);
|
|
1348
|
-
}
|
|
1349
|
-
|
|
1350
|
-
.lobe-syntax-highlighter-shiki pre .highlighted-word {
|
|
1351
|
-
border: 1px solid var(--lobe-color-border-secondary);
|
|
1352
|
-
border-radius: var(--lobe-border-radius);
|
|
1353
|
-
background: var(--lobe-color-fill-tertiary);
|
|
1354
|
-
padding-block: .1em;
|
|
1355
|
-
padding-inline: .2em;
|
|
1356
|
-
}
|
|
1357
|
-
|
|
1358
|
-
.lobe-syntax-highlighter-shiki pre .diff.remove {
|
|
1359
|
-
background: var(--lobe-color-error-bg);
|
|
1360
|
-
}
|
|
1361
|
-
|
|
1362
|
-
.lobe-syntax-highlighter-shiki pre .diff.remove:before {
|
|
1363
|
-
content: "-";
|
|
1364
|
-
color: var(--lobe-color-error-text);
|
|
1365
|
-
display: inline-block;
|
|
1366
|
-
position: absolute;
|
|
1367
|
-
inset-inline-start: 4px;
|
|
1368
|
-
}
|
|
1369
|
-
|
|
1370
|
-
.lobe-syntax-highlighter-shiki pre .diff.add {
|
|
1371
|
-
background: var(--lobe-color-success-bg);
|
|
1372
|
-
}
|
|
1373
|
-
|
|
1374
|
-
.lobe-syntax-highlighter-shiki pre .diff.add:before {
|
|
1375
|
-
content: "+";
|
|
1376
|
-
color: var(--lobe-color-success-text);
|
|
1377
|
-
display: inline-block;
|
|
1378
|
-
position: absolute;
|
|
1379
|
-
inset-inline-start: 4px;
|
|
1334
|
+
.lobe-syntax-highlighter-shiki pre code .line:empty:before {
|
|
1335
|
+
content: "";
|
|
1380
1336
|
}
|
|
1381
1337
|
|
|
1382
1338
|
.lobe-syntax-highlighter-transparent pre {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/ui",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.6.0",
|
|
4
4
|
"description": "Lobe UI is an open-source UI component library for building AIGC web apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lobehub",
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
"test": "vitest --passWithNoTests",
|
|
145
145
|
"test:coverage": "vitest run --coverage --passWithNoTests",
|
|
146
146
|
"test:update": "vitest -u",
|
|
147
|
-
"type-check": "
|
|
147
|
+
"type-check": "tsrs --noEmit"
|
|
148
148
|
},
|
|
149
149
|
"dependencies": {
|
|
150
150
|
"@base-ui/react": "1.9.0",
|
|
@@ -160,9 +160,7 @@
|
|
|
160
160
|
"@lobehub/streamdown": "^1.4.0",
|
|
161
161
|
"@mdx-js/mdx": "^3.1.1",
|
|
162
162
|
"@pierre/diffs": "1.5.2",
|
|
163
|
-
"@
|
|
164
|
-
"@shikijs/stream": "^4.5.0",
|
|
165
|
-
"@shikijs/transformers": "^4.5.0",
|
|
163
|
+
"@pierre/highlights": "^0.2.0",
|
|
166
164
|
"@stylexjs/stylex": "0.19.1",
|
|
167
165
|
"@tanstack/form-core": "^1.33.5",
|
|
168
166
|
"@tanstack/react-table": "^9.2.8",
|
|
@@ -177,6 +175,7 @@
|
|
|
177
175
|
"katex": "^0.18.1 || ^0.19.0",
|
|
178
176
|
"leva": "^0.10.1",
|
|
179
177
|
"lucide-react": "^1.55.0",
|
|
178
|
+
"mdast-util-gfm-autolink-literal": "^2.0.1",
|
|
180
179
|
"motion": "^13.0.0 || ^14.0.0",
|
|
181
180
|
"pele": "^1.6.0",
|
|
182
181
|
"re-resizable": "^6.11.2",
|
|
@@ -191,7 +190,6 @@
|
|
|
191
190
|
"remark-cjk-friendly": "^2.3.2",
|
|
192
191
|
"remark-gfm": "^4.0.1",
|
|
193
192
|
"remark-math": "^6.0.0",
|
|
194
|
-
"shiki": "^4.5.0",
|
|
195
193
|
"unified": "^11.0.5",
|
|
196
194
|
"unist-util-visit-parents": "^6.0.2",
|
|
197
195
|
"uqr": "^0.1.3",
|