@lobehub/ui 2.12.5 → 2.13.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/Drawer/Drawer.js
CHANGED
|
@@ -96,8 +96,11 @@ var Drawer = /*#__PURE__*/memo(function (_ref) {
|
|
|
96
96
|
style: _objectSpread({
|
|
97
97
|
background: theme.colorBgLayout,
|
|
98
98
|
borderRight: "1px solid ".concat(theme.colorBorderSecondary),
|
|
99
|
+
height: '100%',
|
|
99
100
|
overflowX: 'hidden',
|
|
100
|
-
overflowY: 'auto'
|
|
101
|
+
overflowY: 'auto',
|
|
102
|
+
position: 'sticky',
|
|
103
|
+
top: 0
|
|
101
104
|
}, styles === null || styles === void 0 ? void 0 : styles.sidebar),
|
|
102
105
|
width: sidebarWidth,
|
|
103
106
|
children: sidebar
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
-
var _excluded = ["node"],
|
|
4
|
+
var _excluded = ["node", "href"],
|
|
5
5
|
_excluded2 = ["children"];
|
|
6
6
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7
7
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -54,8 +54,12 @@ var DefaultFootnotes = /*#__PURE__*/memo(function (_ref) {
|
|
|
54
54
|
props = _ref2.props;
|
|
55
55
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
56
56
|
var node = props.node,
|
|
57
|
+
href = props.href,
|
|
57
58
|
rest = _objectWithoutProperties(props, _excluded);
|
|
58
|
-
|
|
59
|
+
var Container = href ? A : 'div';
|
|
60
|
+
return /*#__PURE__*/_createElement(Container, _objectSpread(_objectSpread({}, href ? _objectSpread({
|
|
61
|
+
href: href
|
|
62
|
+
}, rest) : rest), {}, {
|
|
59
63
|
key: index
|
|
60
64
|
}), /*#__PURE__*/_jsxs(Block, {
|
|
61
65
|
align: 'stretch',
|
|
@@ -94,9 +98,9 @@ var Footnotes = /*#__PURE__*/memo(function (_ref3) {
|
|
|
94
98
|
rest = _objectWithoutProperties(_ref3, _excluded2);
|
|
95
99
|
var links = useMemo(function () {
|
|
96
100
|
try {
|
|
97
|
-
return JSON.parse(rest['data-footnote-links'] || '');
|
|
101
|
+
return JSON.parse(rest['data-footnote-links'] || '[]');
|
|
98
102
|
} catch (error) {
|
|
99
|
-
console.error(error);
|
|
103
|
+
console.error('Failed to parse footnote links:', error);
|
|
100
104
|
return [];
|
|
101
105
|
}
|
|
102
106
|
}, [rest['data-footnote-links']]);
|