@lobehub/ui 1.138.10 → 1.138.11
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/A/index.d.ts +1 -2
- package/es/A/index.js +3 -2
- package/es/Img/index.js +3 -2
- package/es/mdx/Link.d.ts +1 -2
- package/es/mdx/mdxComponents.d.ts +2 -13
- package/package.json +2 -1
package/es/A/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { AnchorProps } from 'antd';
|
|
3
2
|
import { AProps } from "../types";
|
|
4
|
-
declare const A: import("react").ForwardRefExoticComponent<AProps &
|
|
3
|
+
declare const A: import("react").ForwardRefExoticComponent<AProps & import("react").RefAttributes<any>>;
|
|
5
4
|
export default A;
|
package/es/A/index.js
CHANGED
|
@@ -13,9 +13,10 @@ var createContainer = function createContainer(as) {
|
|
|
13
13
|
};
|
|
14
14
|
var A = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
15
15
|
var config = useContext(ConfigContext);
|
|
16
|
+
var render = (config === null || config === void 0 ? void 0 : config.aAs) || 'a';
|
|
16
17
|
var AContainer = useMemo(function () {
|
|
17
|
-
return createContainer(
|
|
18
|
-
}, [
|
|
18
|
+
return createContainer(render);
|
|
19
|
+
}, [render]);
|
|
19
20
|
return /*#__PURE__*/_jsx(AContainer, _objectSpread({
|
|
20
21
|
ref: ref
|
|
21
22
|
}, props));
|
package/es/Img/index.js
CHANGED
|
@@ -17,9 +17,10 @@ var Img = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
17
17
|
var unoptimized = _ref.unoptimized,
|
|
18
18
|
res = _objectWithoutProperties(_ref, _excluded);
|
|
19
19
|
var config = useContext(ConfigContext);
|
|
20
|
+
var render = (config === null || config === void 0 ? void 0 : config.imgAs) || 'img';
|
|
20
21
|
var ImgContainer = useMemo(function () {
|
|
21
|
-
return createContainer(
|
|
22
|
-
}, [
|
|
22
|
+
return createContainer(render);
|
|
23
|
+
}, [render]);
|
|
23
24
|
return /*#__PURE__*/_jsx(ImgContainer, _objectSpread({
|
|
24
25
|
ref: ref,
|
|
25
26
|
unoptimized: unoptimized === undefined ? config === null || config === void 0 ? void 0 : config.imgUnoptimized : unoptimized
|
package/es/mdx/Link.d.ts
CHANGED
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const mdxComponents:
|
|
3
|
-
Callout: import("react").FC<import("./Callout").CalloutProps>;
|
|
4
|
-
Card: import("react").FC<import("./Card").CardProps>;
|
|
5
|
-
Cards: import("react").FC<import("..").GridProps>;
|
|
6
|
-
FileTree: import("react").FC<import("..").DivProps>;
|
|
7
|
-
Image: import("react").FC<import("./Image").ImageProps>;
|
|
8
|
-
Steps: import("react").FC<import("..").DivProps>;
|
|
9
|
-
Tab: import("react").FC<import("..").DivProps>;
|
|
10
|
-
Tabs: import("react").FC<import("./Tabs").TabsProps>;
|
|
11
|
-
Video: import("react").FC<import("./Video").VideoProps>;
|
|
12
|
-
a: import("react").FC<import("./Link").LinkProps>;
|
|
13
|
-
};
|
|
1
|
+
import type { MDXComponents } from 'mdx/types';
|
|
2
|
+
declare const mdxComponents: MDXComponents;
|
|
14
3
|
export default mdxComponents;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/ui",
|
|
3
|
-
"version": "1.138.
|
|
3
|
+
"version": "1.138.11",
|
|
4
4
|
"description": "Lobe UI is an open-source UI component library for building AIGC web apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lobehub",
|
|
@@ -129,6 +129,7 @@
|
|
|
129
129
|
"@testing-library/react": "^14.3.1",
|
|
130
130
|
"@types/chroma-js": "^2.4.4",
|
|
131
131
|
"@types/lodash-es": "^4.17.12",
|
|
132
|
+
"@types/mdx": "^2.0.13",
|
|
132
133
|
"@types/pangu": "^4.0.2",
|
|
133
134
|
"@types/query-string": "^6.3.0",
|
|
134
135
|
"@types/react": "18.2.40",
|