@lobehub/ui 2.12.2 → 2.12.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/es/Hotkey/utils.js
CHANGED
|
@@ -4,12 +4,14 @@ import { KeyMapEnum } from "./const";
|
|
|
4
4
|
export var NORMATIVE_MODIFIER = [
|
|
5
5
|
// win: Ctrl ,mac: Control
|
|
6
6
|
KeyMapEnum.Ctrl, KeyMapEnum.Control,
|
|
7
|
+
// win: Win ,mac: Command
|
|
8
|
+
KeyMapEnum.Meta,
|
|
9
|
+
// Mod should have same priority as Ctrl since it represents Ctrl on Windows
|
|
10
|
+
KeyMapEnum.Mod,
|
|
7
11
|
// win: Alt ,mac: Option
|
|
8
12
|
KeyMapEnum.Alt,
|
|
9
13
|
// win: Shift ,mac: Shift
|
|
10
|
-
KeyMapEnum.Shift
|
|
11
|
-
// win: Win ,mac: Command
|
|
12
|
-
KeyMapEnum.Meta, KeyMapEnum.Mod];
|
|
14
|
+
KeyMapEnum.Shift];
|
|
13
15
|
var orderMap = Object.fromEntries(NORMATIVE_MODIFIER.map(function (key, index) {
|
|
14
16
|
return [key, index];
|
|
15
17
|
}));
|
|
@@ -79,6 +79,7 @@ var SyntaxMermaid = /*#__PURE__*/memo(function (_ref) {
|
|
|
79
79
|
return /*#__PURE__*/_jsx(Image, {
|
|
80
80
|
alt: 'mermaid',
|
|
81
81
|
maxHeight: 480,
|
|
82
|
+
minWidth: 300,
|
|
82
83
|
objectFit: 'contain',
|
|
83
84
|
preview: enablePanZoom ? {
|
|
84
85
|
mask: false,
|
|
@@ -94,6 +95,7 @@ var SyntaxMermaid = /*#__PURE__*/memo(function (_ref) {
|
|
|
94
95
|
background: variant === 'filled' ? background : undefined,
|
|
95
96
|
borderRadius: 0,
|
|
96
97
|
margin: 0,
|
|
98
|
+
minWidth: 300,
|
|
97
99
|
padding: variant === 'borderless' ? 0 : 16,
|
|
98
100
|
position: 'relative',
|
|
99
101
|
width: '100%'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/ui",
|
|
3
|
-
"version": "2.12.
|
|
3
|
+
"version": "2.12.4",
|
|
4
4
|
"description": "Lobe UI is an open-source UI component library for building AIGC web apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lobehub",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"katex": "^0.16.22",
|
|
74
74
|
"leva": "^0.10.0",
|
|
75
75
|
"lodash-es": "^4.17.21",
|
|
76
|
-
"lucide-react": "^0.
|
|
76
|
+
"lucide-react": "^0.543.0",
|
|
77
77
|
"marked": "^16.2.0",
|
|
78
78
|
"mermaid": "^11.9.0",
|
|
79
79
|
"numeral": "^2.0.6",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"remark-math": "^6.0.0",
|
|
103
103
|
"shiki": "^3.8.1",
|
|
104
104
|
"swr": "^2.3.4",
|
|
105
|
-
"ts-md5": "^
|
|
105
|
+
"ts-md5": "^2.0.0",
|
|
106
106
|
"unified": "^11.0.5",
|
|
107
107
|
"url-join": "^5.0.0",
|
|
108
108
|
"use-merge-value": "^1.2.0",
|