@lobehub/ui 1.158.0 → 1.159.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/es/hooks/useHighlight.js +1 -1
- package/package.json +1 -89
package/es/hooks/useHighlight.js
CHANGED
|
@@ -23,7 +23,7 @@ export var useHighlight = function useHighlight(text, lang, isDarkMode) {
|
|
|
23
23
|
case 5:
|
|
24
24
|
_context.prev = 5;
|
|
25
25
|
_context.t0 = _context["catch"](0);
|
|
26
|
-
console.error(
|
|
26
|
+
console.error('shiki Highlight error:', _context.t0);
|
|
27
27
|
return _context.abrupt("return", text);
|
|
28
28
|
case 9:
|
|
29
29
|
case "end":
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.159.0",
|
|
4
4
|
"description": "Lobe UI is an open-source UI component library for building AIGC web apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lobehub",
|
|
@@ -40,51 +40,6 @@
|
|
|
40
40
|
"storybook.d.ts",
|
|
41
41
|
"storybook.js"
|
|
42
42
|
],
|
|
43
|
-
"scripts": {
|
|
44
|
-
"build": "father build",
|
|
45
|
-
"build:watch": "father dev",
|
|
46
|
-
"ci": "npm run lint:circular && npm run lint && npm run type-check",
|
|
47
|
-
"clean": "rm -r es lib dist coverage .dumi/tmp .eslintcache node_modules/.cache",
|
|
48
|
-
"dev": "dumi dev",
|
|
49
|
-
"docs:build": "dumi build",
|
|
50
|
-
"docs:build-analyze": "ANALYZE=1 dumi build",
|
|
51
|
-
"docs:dev": "dumi dev",
|
|
52
|
-
"doctor": "father doctor",
|
|
53
|
-
"lint": "eslint \"{src,tests}/**/*.{js,jsx,ts,tsx}\" --fix",
|
|
54
|
-
"lint:circular": "dpdm src/**/*.{ts,tsx} --warning false --tree false --exit-code circular:1 -T true",
|
|
55
|
-
"lint:md": "remark . --quiet --frail --output",
|
|
56
|
-
"lint:style": "stylelint \"{src,tests}/**/*.{js,jsx,ts,tsx}\" --fix",
|
|
57
|
-
"prepare": "husky && npm run setup",
|
|
58
|
-
"prepublishOnly": "father doctor && npm run build",
|
|
59
|
-
"prettier": "prettier -c --write --no-error-on-unmatched-pattern \"**/**\"",
|
|
60
|
-
"pull": "git pull",
|
|
61
|
-
"release": "semantic-release",
|
|
62
|
-
"setup": "dumi setup",
|
|
63
|
-
"start": "npm run docs:dev",
|
|
64
|
-
"test": "vitest --passWithNoTests",
|
|
65
|
-
"test:coverage": "vitest run --coverage --passWithNoTests",
|
|
66
|
-
"test:update": "vitest -u",
|
|
67
|
-
"type-check": "tsc --noEmit"
|
|
68
|
-
},
|
|
69
|
-
"lint-staged": {
|
|
70
|
-
"*.md": [
|
|
71
|
-
"remark --quiet --output --",
|
|
72
|
-
"prettier --write --no-error-on-unmatched-pattern"
|
|
73
|
-
],
|
|
74
|
-
"*.json": [
|
|
75
|
-
"prettier --write --no-error-on-unmatched-pattern"
|
|
76
|
-
],
|
|
77
|
-
"*.{js,jsx}": [
|
|
78
|
-
"prettier --write",
|
|
79
|
-
"stylelint --fix",
|
|
80
|
-
"eslint --fix"
|
|
81
|
-
],
|
|
82
|
-
"*.{ts,tsx}": [
|
|
83
|
-
"prettier --parser=typescript --write",
|
|
84
|
-
"stylelint --fix",
|
|
85
|
-
"eslint --fix"
|
|
86
|
-
]
|
|
87
|
-
},
|
|
88
43
|
"dependencies": {
|
|
89
44
|
"@babel/runtime": "^7.26.0",
|
|
90
45
|
"@dnd-kit/core": "^6.3.1",
|
|
@@ -119,45 +74,6 @@
|
|
|
119
74
|
"shiki": "^1.26.1",
|
|
120
75
|
"unified": "^10.1.2"
|
|
121
76
|
},
|
|
122
|
-
"devDependencies": {
|
|
123
|
-
"@ant-design/icons": "^5.5.2",
|
|
124
|
-
"@commitlint/cli": "^19.6.1",
|
|
125
|
-
"@lobehub/lint": "^1.24.4",
|
|
126
|
-
"@testing-library/react": "^14.3.1",
|
|
127
|
-
"@types/chroma-js": "^2.4.5",
|
|
128
|
-
"@types/lodash-es": "^4.17.12",
|
|
129
|
-
"@types/mdx": "^2.0.13",
|
|
130
|
-
"@types/numeral": "^2.0.5",
|
|
131
|
-
"@types/pangu": "^4.0.2",
|
|
132
|
-
"@types/query-string": "^6.3.0",
|
|
133
|
-
"@types/react": "^19.0.2",
|
|
134
|
-
"@types/react-avatar-editor": "^13.0.3",
|
|
135
|
-
"@types/react-dom": "^19.0.2",
|
|
136
|
-
"@types/unist": "^3.0.3",
|
|
137
|
-
"@types/uuid": "^10.0.0",
|
|
138
|
-
"@vitest/coverage-v8": "~1.2.2",
|
|
139
|
-
"babel-plugin-antd-style": "^1.0.4",
|
|
140
|
-
"commitlint": "^19.6.1",
|
|
141
|
-
"concurrently": "^9.1.2",
|
|
142
|
-
"cross-env": "^7.0.3",
|
|
143
|
-
"dpdm": "^3.14.0",
|
|
144
|
-
"dumi": "^2.4.17",
|
|
145
|
-
"dumi-theme-lobehub": "^1.10.10",
|
|
146
|
-
"eslint": "^8.57.1",
|
|
147
|
-
"father": "^4.5.1",
|
|
148
|
-
"husky": "^9.1.7",
|
|
149
|
-
"jsdom": "^25.0.1",
|
|
150
|
-
"lint-staged": "^15.3.0",
|
|
151
|
-
"prettier": "^3.4.2",
|
|
152
|
-
"remark": "^14.0.3",
|
|
153
|
-
"remark-cli": "^11.0.0",
|
|
154
|
-
"semantic-release": "^21.1.2",
|
|
155
|
-
"stylelint": "^15.11.0",
|
|
156
|
-
"typescript": "^5.7.2",
|
|
157
|
-
"unist-util-is": "^6.0.0",
|
|
158
|
-
"unist-util-visit": "^5.0.0",
|
|
159
|
-
"vitest": "~1.2.2"
|
|
160
|
-
},
|
|
161
77
|
"peerDependencies": {
|
|
162
78
|
"@ant-design/cssinjs": "^1.22.0",
|
|
163
79
|
"@babel/runtime": "^7.0.0",
|
|
@@ -182,9 +98,5 @@
|
|
|
182
98
|
"url-join": "^5.0.0",
|
|
183
99
|
"use-merge-value": "^1.2.0",
|
|
184
100
|
"uuid": "^11.0.0"
|
|
185
|
-
},
|
|
186
|
-
"publishConfig": {
|
|
187
|
-
"access": "public",
|
|
188
|
-
"registry": "https://registry.npmjs.org"
|
|
189
101
|
}
|
|
190
102
|
}
|