@rspress/core 0.2.0 → 1.0.0-beta.1

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.
Files changed (38) hide show
  1. package/dist/index.js +29 -27
  2. package/dist/index.js.map +1 -1
  3. package/dist/loader.d.ts +0 -1
  4. package/dist/loader.js +14 -11
  5. package/dist/loader.js.map +1 -1
  6. package/dist/runtime/App.js +3 -4
  7. package/dist/runtime/Content.js +15 -8
  8. package/dist/runtime/hooks.d.ts +10 -0
  9. package/dist/runtime/hooks.js +6 -2
  10. package/dist/runtime/index.d.ts +1 -1
  11. package/dist/runtime/index.js +1 -1
  12. package/dist/runtime/utils.d.ts +3 -2
  13. package/dist/runtime/utils.js +6 -2
  14. package/dist/theme/bundle.css +5 -3
  15. package/dist/theme/bundle.js +45 -22
  16. package/dist/theme/bundle.js.map +1 -1
  17. package/package.json +6 -6
  18. package/src/runtime/App.tsx +4 -6
  19. package/src/runtime/Content.tsx +24 -11
  20. package/src/runtime/global.d.ts +4 -5
  21. package/src/runtime/hooks.ts +22 -2
  22. package/src/runtime/index.ts +1 -1
  23. package/src/runtime/utils.ts +9 -8
  24. package/src/theme-default/components/DocFooter/index.tsx +1 -1
  25. package/src/theme-default/components/HomeHero/index.tsx +1 -1
  26. package/src/theme-default/components/Link/index.module.scss +0 -1
  27. package/src/theme-default/components/Link/index.tsx +21 -2
  28. package/src/theme-default/components/Nav/NavMenuSingleItem.tsx +1 -1
  29. package/src/theme-default/components/Overview/index.tsx +1 -1
  30. package/src/theme-default/components/Search/logic/search.ts +1 -1
  31. package/src/theme-default/components/Sidebar/SidebarGroup.tsx +1 -1
  32. package/src/theme-default/components/Sidebar/SidebarItem.tsx +1 -1
  33. package/src/theme-default/layout/DocLayout/docComponents/index.module.scss +4 -0
  34. package/src/theme-default/layout/DocLayout/docComponents/link.tsx +14 -8
  35. package/src/theme-default/layout/DocLayout/docComponents/pre.tsx +1 -1
  36. package/src/theme-default/layout/HomeLayout/index.tsx +1 -0
  37. package/src/theme-default/logic/sideEffects.ts +7 -0
  38. package/src/theme-default/logic/usePathUtils.ts +2 -1
@@ -27,10 +27,9 @@ export async function initPageData(routePath) {
27
27
  // eslint-disable-next-line prefer-const
28
28
  toc = [],
29
29
  // eslint-disable-next-line prefer-const
30
- title = "",
31
- frontmatter
32
- } = globalThis.__RSPRESS_PAGE_META?.[encodedPagePath] || {};
33
- frontmatter = frontmatter || mod.frontmatter || {};
30
+ title = ""
31
+ } = mod.default.__RSPRESS_PAGE_META?.[encodedPagePath] || {};
32
+ const frontmatter = mod.frontmatter || {};
34
33
  return {
35
34
  siteData,
36
35
  page: {
@@ -1,9 +1,18 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { Suspense } from "react";
2
+ import { Suspense, memo } from "react";
3
3
  import { matchRoutes, useLocation } from "react-router-dom";
4
+ import siteData from "virtual-site-data";
4
5
  import { normalizeRoutePath } from "./utils";
5
- import { usePageData, useViewTransition } from "./hooks";
6
+ import { useViewTransition } from "./hooks";
6
7
  const { routes } = process.env.__SSR__ ? require("virtual-routes-ssr") : require("virtual-routes");
8
+ function TransitionContentImpl(props) {
9
+ let element = props.el;
10
+ if (siteData?.themeConfig?.enableContentAnimation) {
11
+ element = useViewTransition(props.el);
12
+ }
13
+ return element;
14
+ }
15
+ const TransitionContent = /* @__PURE__ */ memo(TransitionContentImpl, (prevProps, nextProps) => prevProps.el === nextProps.el);
7
16
  export const Content = ({ fallback = /* @__PURE__ */ _jsx(_Fragment, {}) }) => {
8
17
  const { pathname } = useLocation();
9
18
  const matched = matchRoutes(routes, normalizeRoutePath(pathname));
@@ -11,15 +20,13 @@ export const Content = ({ fallback = /* @__PURE__ */ _jsx(_Fragment, {}) }) => {
11
20
  return /* @__PURE__ */ _jsx("div", {});
12
21
  }
13
22
  const routesElement = matched[0].route.element;
14
- let element = routesElement;
15
- if (usePageData().siteData.themeConfig.enableContentAnimation) {
16
- element = useViewTransition(routesElement);
17
- }
18
23
  if (!process.env.__IS_REACT_18__ && process.env.__SSR__) {
19
- return element;
24
+ return routesElement;
20
25
  }
21
26
  return /* @__PURE__ */ _jsx(Suspense, {
22
27
  fallback,
23
- children: element
28
+ children: /* @__PURE__ */ _jsx(TransitionContent, {
29
+ el: routesElement
30
+ })
24
31
  });
25
32
  };
@@ -25,5 +25,15 @@ declare global {
25
25
  startViewTransition: (callback: () => void) => void;
26
26
  }
27
27
  }
28
+ /**
29
+ * There is a pitfall.
30
+ * I was working on the navigation between pages with hash. eg. from `guide/start` -> `config/repress#nav`
31
+ * I need a time to dispatch an event so that the sideEffect.ts would know that
32
+ * the dom is attached to the browser. Otherwise the scroll position and the
33
+ * animation would be incorrect. You can search for `RspressReloadContent` in this codebase
34
+ * to findout the logic that are consuming the event.
35
+ * The reason I didn't write it here is that I hope the logic of handling scroll and position
36
+ * could be in one place so that people wouldn't be confused.
37
+ */
28
38
  export declare function useViewTransition(dom: any): any;
29
39
  export {};
@@ -26,14 +26,18 @@ export function useI18n() {
26
26
  export function useViewTransition(dom) {
27
27
  const [element, setElement] = useState(dom);
28
28
  useLayoutEffect(() => {
29
- if (document.startViewTransition) {
29
+ if (document.startViewTransition && element !== dom) {
30
30
  document.startViewTransition(() => {
31
31
  flushSync(() => {
32
32
  setElement(dom);
33
33
  });
34
+ window.dispatchEvent(new Event("RspressReloadContent"));
34
35
  });
35
36
  } else {
36
- setElement(dom);
37
+ flushSync(() => {
38
+ setElement(dom);
39
+ });
40
+ window.dispatchEvent(new Event("RspressReloadContent"));
37
41
  }
38
42
  }, [
39
43
  dom
@@ -1,6 +1,6 @@
1
1
  export * from './hooks';
2
2
  export * from './Content';
3
- export { normalizeHref, withBase, removeBase, addLeadingSlash, removeTrailingSlash, normalizeSlash, isProduction, normalizeRoutePath, isEqualPath } from './utils';
3
+ export { normalizeHrefInRuntime, withBase, removeBase, addLeadingSlash, removeTrailingSlash, normalizeSlash, isProduction, normalizeRoutePath, isEqualPath } from './utils';
4
4
  export { useLocation, useNavigate } from 'react-router-dom';
5
5
  export { Helmet } from 'react-helmet-async';
6
6
  export { NoSSR } from './NoSSR';
@@ -1,6 +1,6 @@
1
1
  export * from "./hooks";
2
2
  export * from "./Content";
3
- export { normalizeHref, withBase, removeBase, addLeadingSlash, removeTrailingSlash, normalizeSlash, isProduction, normalizeRoutePath, isEqualPath } from "./utils";
3
+ export { normalizeHrefInRuntime, withBase, removeBase, addLeadingSlash, removeTrailingSlash, normalizeSlash, isProduction, normalizeRoutePath, isEqualPath } from "./utils";
4
4
  export { useLocation, useNavigate } from "react-router-dom";
5
5
  export { Helmet } from "react-helmet-async";
6
6
  export { NoSSR } from "./NoSSR";
@@ -1,6 +1,7 @@
1
- import { addLeadingSlash, removeTrailingSlash, normalizeSlash, isProduction, normalizeHref } from '@rspress/shared';
1
+ import { addLeadingSlash, removeTrailingSlash, normalizeSlash, isProduction } from '@rspress/shared';
2
2
  export declare function normalizeRoutePath(routePath: string): string;
3
3
  export declare function withBase(url?: string): string;
4
4
  export declare function removeBase(url: string): string;
5
5
  export declare function isEqualPath(a: string, b: string): boolean;
6
- export { addLeadingSlash, removeTrailingSlash, normalizeSlash, isProduction, normalizeHref };
6
+ export declare function normalizeHrefInRuntime(a: string): string;
7
+ export { addLeadingSlash, removeTrailingSlash, normalizeSlash, isProduction };
@@ -10,6 +10,10 @@ export function removeBase(url) {
10
10
  return rawRemoveBase(url, siteData.base);
11
11
  }
12
12
  export function isEqualPath(a, b) {
13
- return withBase(normalizeHref(a)) === withBase(normalizeHref(b));
13
+ return withBase(normalizeHrefInRuntime(a)) === withBase(normalizeHrefInRuntime(b));
14
14
  }
15
- export { addLeadingSlash, removeTrailingSlash, normalizeSlash, isProduction, normalizeHref };
15
+ export function normalizeHrefInRuntime(a) {
16
+ const cleanUrls = Boolean(siteData?.route?.cleanUrls);
17
+ return normalizeHref(a, cleanUrls);
18
+ }
19
+ export { addLeadingSlash, removeTrailingSlash, normalizeSlash, isProduction };
@@ -1444,14 +1444,13 @@ button:focus-visible {
1444
1444
  color: var(--rp-c-brand-dark);
1445
1445
  }
1446
1446
 
1447
- /* src/theme-default/components/Link/index.module.scss?css_virtual&hash=b863786183fb8875da59238226b359ae */
1447
+ /* src/theme-default/components/Link/index.module.scss?css_virtual&hash=bb9fa7255cb6499c6f823a2fd851a6fd */
1448
1448
  .link_b3367:hover {
1449
1449
  color: var(--rp-c-brand);
1450
1450
  transition: color 0.2s;
1451
1451
  }
1452
1452
  .link_b3367 {
1453
1453
  display: block;
1454
- font-size: 14px;
1455
1454
  font-weight: 500;
1456
1455
  }
1457
1456
 
@@ -2615,7 +2614,7 @@ button:focus-visible {
2615
2614
  background-color: var(--rp-c-bg-mute) !important;
2616
2615
  }
2617
2616
 
2618
- /* src/theme-default/layout/DocLayout/docComponents/index.module.scss?css_virtual&hash=c8929e12ddaa45bf7c7aba8314fe1e7c */
2617
+ /* src/theme-default/layout/DocLayout/docComponents/index.module.scss?css_virtual&hash=b8aad7bec210b5a8a58874e911240716 */
2619
2618
  .title_f1ea0 {
2620
2619
  position: relative;
2621
2620
  font-weight: 600;
@@ -2673,3 +2672,6 @@ summary a:hover {
2673
2672
  .rspress-doc details:hover {
2674
2673
  background-color: var(--rp-c-bg-mute);
2675
2674
  }
2675
+ .inline-link_f1ea0 {
2676
+ display: inline;
2677
+ }
@@ -50,7 +50,7 @@ import globalComponents from "virtual-global-components";
50
50
 
51
51
  // src/theme-default/layout/DocLayout/index.tsx
52
52
  import { jsx as _jsx14, jsxs as _jsxs8 } from "react/jsx-runtime";
53
- import { useLocation as useLocation3 } from "react-router-dom";
53
+ import { useLocation as useLocation4 } from "react-router-dom";
54
54
  import { useEffect as useEffect7, useState as useState4 } from "react";
55
55
  import { MDXProvider } from "@mdx-js/react";
56
56
  import { getCustomMDXComponent } from "@theme";
@@ -315,6 +315,13 @@ function bindingWindowScroll() {
315
315
  history.pushState(null, "", hash);
316
316
  scrollTo(link, hash, true);
317
317
  window.dispatchEvent(new Event("hashchange"));
318
+ } else {
319
+ window.addEventListener("RspressReloadContent", () => {
320
+ if (location.hash.length > 1) {
321
+ const ele = document.getElementById(location.hash.slice(1));
322
+ scrollToTarget(ele, false);
323
+ }
324
+ });
318
325
  }
319
326
  }
320
327
  }
@@ -396,8 +403,8 @@ function setup() {
396
403
  }
397
404
 
398
405
  // src/theme-default/logic/usePathUtils.ts
399
- import { isExternalUrl, normalizeHref } from "@rspress/shared";
400
- import { removeBase, useLang, usePageData as usePageData4, useVersion, withBase as withBase3 } from "@/runtime";
406
+ import { isExternalUrl } from "@rspress/shared";
407
+ import { removeBase, useLang, usePageData as usePageData4, normalizeHrefInRuntime as normalizeHref, useVersion, withBase as withBase3 } from "@/runtime";
401
408
  function usePathUtils() {
402
409
  const currentLang = useLang();
403
410
  const currentVersion = useVersion();
@@ -579,7 +586,7 @@ function EditLink() {
579
586
 
580
587
  // src/theme-default/components/Link/index.tsx
581
588
  import { jsx as _jsx4 } from "react/jsx-runtime";
582
- import { matchRoutes, useNavigate } from "react-router-dom";
589
+ import { matchRoutes, useLocation as useLocation3, useNavigate } from "react-router-dom";
583
590
  import nprogress from "nprogress";
584
591
  import { routes } from "virtual-routes";
585
592
 
@@ -587,7 +594,7 @@ import { routes } from "virtual-routes";
587
594
  var index_module_default2 = { "link": "link_b3367" };
588
595
 
589
596
  // src/theme-default/components/Link/index.tsx
590
- import { normalizeHref as normalizeHref2, normalizeRoutePath, withBase as withBase4 } from "@/runtime";
597
+ import { normalizeHrefInRuntime as normalizeHref2, normalizeRoutePath, withBase as withBase4 } from "@/runtime";
591
598
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
592
599
  try {
593
600
  var info = gen[key](arg);
@@ -628,9 +635,19 @@ function Link(props) {
628
635
  const rel = isExternal ? "noopener noreferrer" : void 0;
629
636
  const withBaseUrl = isExternal ? href : withBase4(normalizeHref2(href));
630
637
  const navigate = useNavigate();
638
+ const { pathname } = useLocation3();
639
+ const inCurrentPage = withBaseUrl.startsWith(pathname);
631
640
  const handleNavigate = function() {
632
641
  var _ref = _async_to_generator(function* (e) {
633
642
  e.preventDefault();
643
+ const hash = withBaseUrl.split("#")[1];
644
+ if (!isExternal && inCurrentPage && hash) {
645
+ const el = document.getElementById(hash);
646
+ if (el) {
647
+ scrollToTarget(el, true);
648
+ }
649
+ return;
650
+ }
634
651
  if (!process.env.__SSR__) {
635
652
  const matchedRoutes = matchRoutes(routes, normalizeRoutePath(withBaseUrl));
636
653
  if (matchedRoutes === null || matchedRoutes === void 0 ? void 0 : matchedRoutes.length) {
@@ -675,7 +692,7 @@ function Link(props) {
675
692
  var index_module_default3 = { "pager": "pager_33e00", "has-next": "has-next_33e00", "hasNext": "has-next_33e00", "prev": "prev_33e00", "next": "next_33e00", "pager-link": "pager-link_33e00", "pagerLink": "pager-link_33e00", "title": "title_33e00", "desc": "desc_33e00" };
676
693
 
677
694
  // src/theme-default/components/DocFooter/index.tsx
678
- import { normalizeHref as normalizeHref3, usePageData as usePageData5 } from "@/runtime";
695
+ import { normalizeHrefInRuntime as normalizeHref3, usePageData as usePageData5 } from "@/runtime";
679
696
  function DocFooter() {
680
697
  const { prevPage, nextPage } = usePrevNextPage();
681
698
  const { prevPageText = "Previous Page", nextPageText = "Next page", lastUpdatedText: localesLastUpdatedText = "Last Updated", lastUpdated: localesLastUpdated = false } = useLocaleSiteData();
@@ -865,7 +882,7 @@ var SvgArrowRight = (props) => /* @__PURE__ */ _jsx7("svg", _object_spread_props
865
882
  var arrow_right_default = SvgArrowRight;
866
883
 
867
884
  // src/theme-default/components/Sidebar/SidebarGroup.tsx
868
- import { normalizeHref as normalizeHref4, withBase as withBase5 } from "@/runtime";
885
+ import { normalizeHrefInRuntime as normalizeHref4, withBase as withBase5 } from "@/runtime";
869
886
  function _define_property4(obj, key, value) {
870
887
  if (key in obj) {
871
888
  Object.defineProperty(obj, key, {
@@ -1067,7 +1084,7 @@ function SidebarGroup(props) {
1067
1084
  }
1068
1085
 
1069
1086
  // src/theme-default/components/Sidebar/SidebarItem.tsx
1070
- import { normalizeHref as normalizeHref5 } from "@/runtime";
1087
+ import { normalizeHrefInRuntime as normalizeHref5 } from "@/runtime";
1071
1088
  function _define_property5(obj, key, value) {
1072
1089
  if (key in obj) {
1073
1090
  Object.defineProperty(obj, key, {
@@ -1393,7 +1410,7 @@ import { useMemo } from "react";
1393
1410
  var index_module_default5 = { "header-anchor": "header-anchor_90d29", "headerAnchor": "header-anchor_90d29", "overview-groups": "overview-groups_90d29", "overviewGroups": "overview-groups_90d29", "overview-group-li": "overview-group-li_90d29", "overviewGroupLi": "overview-group-li_90d29", "level-2": "level-2_90d29", "level2": "level-2_90d29", "overview-group": "overview-group_90d29", "overviewGroup": "overview-group_90d29", "header": "header_90d29" };
1394
1411
 
1395
1412
  // src/theme-default/components/Overview/index.tsx
1396
- import { usePageData as usePageData7, normalizeHref as normalizeHref6, withBase as withBase6, isEqualPath as isEqualPath4 } from "@/runtime";
1413
+ import { usePageData as usePageData7, normalizeHrefInRuntime as normalizeHref6, withBase as withBase6, isEqualPath as isEqualPath4 } from "@/runtime";
1397
1414
  function _define_property8(obj, key, value) {
1398
1415
  if (key in obj) {
1399
1416
  Object.defineProperty(obj, key, {
@@ -1592,7 +1609,7 @@ function DocLayout(props) {
1592
1609
  const { themeConfig } = siteData2;
1593
1610
  const localesData = useLocaleSiteData();
1594
1611
  const sidebar = localesData.sidebar || {};
1595
- const { pathname } = useLocation3();
1612
+ const { pathname } = useLocation4();
1596
1613
  const { items: sidebarData } = useSidebarData();
1597
1614
  const langRoutePrefix = normalizeSlash(localesData.langRoutePrefix || "");
1598
1615
  var _frontmatter_hideNavbar, _ref;
@@ -1864,7 +1881,7 @@ function Button(props) {
1864
1881
  var index_module_default8 = { "clip": "clip_1e4a0", "mask": "mask_1e4a0" };
1865
1882
 
1866
1883
  // src/theme-default/components/HomeHero/index.tsx
1867
- import { normalizeHref as normalizeHref7 } from "@/runtime";
1884
+ import { normalizeHrefInRuntime as normalizeHref7 } from "@/runtime";
1868
1885
  var DEFAULT_HERO = {
1869
1886
  name: "modern",
1870
1887
  text: "modern ssg",
@@ -2043,7 +2060,7 @@ function HomeLayout(props) {
2043
2060
  // src/theme-default/components/Nav/index.tsx
2044
2061
  import { jsx as _jsx36, jsxs as _jsxs23 } from "react/jsx-runtime";
2045
2062
  import { replaceLang } from "@rspress/shared";
2046
- import { useLocation as useLocation4 } from "react-router-dom";
2063
+ import { useLocation as useLocation5 } from "react-router-dom";
2047
2064
  import { Search } from "@theme";
2048
2065
  import { useContext as useContext3, useEffect as useEffect11, useState as useState10 } from "react";
2049
2066
 
@@ -2220,7 +2237,7 @@ import { withoutBase } from "@rspress/shared";
2220
2237
  var index_module_default11 = { "container": "container_47ac2", "leftNav": "leftNav_47ac2", "rightNav": "rightNav_47ac2", "activeItem": "activeItem_47ac2", "singleItem": "singleItem_47ac2", "navContainer": "navContainer_47ac2", "social-links-icon": "social-links-icon_47ac2", "socialLinksIcon": "social-links-icon_47ac2", "menu-item": "menu-item_47ac2", "menuItem": "menu-item_47ac2", "mobileNavMenu": "mobileNavMenu_47ac2", "mask": "mask_47ac2", "docPage": "docPage_47ac2" };
2221
2238
 
2222
2239
  // src/theme-default/components/Nav/NavMenuSingleItem.tsx
2223
- import { normalizeHref as normalizeHref8 } from "@/runtime";
2240
+ import { normalizeHrefInRuntime as normalizeHref8 } from "@/runtime";
2224
2241
  function NavMenuSingleItem(item) {
2225
2242
  const { pathname, base } = item;
2226
2243
  const isActive2 = new RegExp(item.activeMatch || item.link).test(withoutBase(pathname, base));
@@ -3563,7 +3580,7 @@ function Nav2(props) {
3563
3580
  const { beforeNavTitle, afterNavTitle, beforeNav } = props;
3564
3581
  const { siteData: siteData2, page } = usePageData11();
3565
3582
  const { logo: rawLogo, base } = siteData2;
3566
- const { pathname } = useLocation4();
3583
+ const { pathname } = useLocation5();
3567
3584
  const { theme } = useContext3(ThemeContext3);
3568
3585
  const localeData = useLocaleSiteData();
3569
3586
  const currentVersion = useVersion2();
@@ -4563,7 +4580,7 @@ var RemoteProvider = class {
4563
4580
  };
4564
4581
 
4565
4582
  // src/theme-default/components/Search/logic/search.ts
4566
- import { normalizeHref as normalizeHref9 } from "@/runtime";
4583
+ import { normalizeHrefInRuntime as normalizeHref9 } from "@/runtime";
4567
4584
  function asyncGeneratorStep4(gen, resolve, reject, _next, _throw, key, arg) {
4568
4585
  try {
4569
4586
  var info = gen[key](arg);
@@ -5926,7 +5943,7 @@ function Pre({ children }) {
5926
5943
  children: codeTitle
5927
5944
  }),
5928
5945
  /* @__PURE__ */ _jsx52("div", {
5929
- className: "rspress-code-content",
5946
+ className: "rspress-code-content rspress-scrollbar",
5930
5947
  children
5931
5948
  })
5932
5949
  ]
@@ -6647,7 +6664,7 @@ function PackageManagerTabs({ command, additionalTabs = [] }) {
6647
6664
  import { jsx as _jsx59 } from "react/jsx-runtime";
6648
6665
 
6649
6666
  // src/theme-default/layout/DocLayout/docComponents/index.module.scss
6650
- var index_module_default17 = { "title": "title_f1ea0", "blockquote": "blockquote_f1ea0", "link": "link_f1ea0" };
6667
+ var index_module_default17 = { "title": "title_f1ea0", "blockquote": "blockquote_f1ea0", "link": "link_f1ea0", "inline-link": "inline-link_f1ea0", "inlineLink": "inline-link_f1ea0" };
6651
6668
 
6652
6669
  // src/theme-default/layout/DocLayout/docComponents/title.tsx
6653
6670
  function _define_property38(obj, key, value) {
@@ -6993,12 +7010,18 @@ function _object_spread_props34(target, source) {
6993
7010
  return target;
6994
7011
  }
6995
7012
  var A = (props) => {
6996
- const { href = "" } = props;
7013
+ const { href = "", className = "" } = props;
6997
7014
  const { normalizeLinkHref } = usePathUtils();
6998
- return /* @__PURE__ */ _jsx63("a", _object_spread_props34(_object_spread42({}, props), {
6999
- className: `${index_module_default17.link} ${props.className}`,
7000
- href: normalizeLinkHref(href)
7001
- }));
7015
+ if (className.includes("header-anchor")) {
7016
+ return /* @__PURE__ */ _jsx63("a", _object_spread_props34(_object_spread42({}, props), {
7017
+ className: `${index_module_default17.link} ${className}`
7018
+ }));
7019
+ } else {
7020
+ return /* @__PURE__ */ _jsx63(Link, _object_spread_props34(_object_spread42({}, props), {
7021
+ className: `${className} ${index_module_default17.link} ${index_module_default17["inline-link"]}`,
7022
+ href: normalizeLinkHref(href)
7023
+ }));
7024
+ }
7002
7025
  };
7003
7026
 
7004
7027
  // src/theme-default/layout/DocLayout/docComponents/paragraph.tsx