@windrun-huaiin/third-ui 5.7.0 → 5.8.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/dist/fuma/mdx/index.d.mts +2 -11
- package/dist/fuma/mdx/index.d.ts +2 -11
- package/dist/fuma/mdx/index.js +5 -2
- package/dist/fuma/mdx/index.js.map +1 -1
- package/dist/fuma/mdx/index.mjs +5 -2
- package/dist/fuma/mdx/index.mjs.map +1 -1
- package/dist/fuma/server.d.mts +5 -3
- package/dist/fuma/server.d.ts +5 -3
- package/dist/fuma/server.js +3 -1
- package/dist/fuma/server.js.map +1 -1
- package/dist/fuma/server.mjs +3 -1
- package/dist/fuma/server.mjs.map +1 -1
- package/dist/toc-base-BC7kXpDU.d.mts +15 -0
- package/dist/toc-base-BC7kXpDU.d.ts +15 -0
- package/package.json +1 -1
- package/src/fuma/fuma-page-genarator.tsx +15 -5
- package/src/fuma/mdx/toc-base.tsx +10 -2
package/dist/fuma/server.mjs
CHANGED
|
@@ -56,6 +56,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
56
56
|
|
|
57
57
|
// src/fuma/fuma-page-genarator.tsx
|
|
58
58
|
import { DocsBody, DocsDescription, DocsPage, DocsTitle } from "fumadocs-ui/page";
|
|
59
|
+
import { cloneElement as cloneElement2 } from "react";
|
|
59
60
|
|
|
60
61
|
// ../base-ui/src/assets/github.tsx
|
|
61
62
|
import React from "react";
|
|
@@ -2888,6 +2889,7 @@ function TocFooterWrapper({ lastModified, editPath, githubBaseUrl, copyButtonCom
|
|
|
2888
2889
|
// src/fuma/fuma-page-genarator.tsx
|
|
2889
2890
|
import { jsx as jsx47, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2890
2891
|
function createFumaPage({
|
|
2892
|
+
sourceKey,
|
|
2891
2893
|
mdxContentSource,
|
|
2892
2894
|
getMDXComponents,
|
|
2893
2895
|
mdxSourceDir,
|
|
@@ -2908,7 +2910,7 @@ function createFumaPage({
|
|
|
2908
2910
|
TocFooterWrapper,
|
|
2909
2911
|
{
|
|
2910
2912
|
lastModified: page.data.date,
|
|
2911
|
-
copyButtonComponent,
|
|
2913
|
+
copyButtonComponent: copyButtonComponent ? cloneElement2(copyButtonComponent, { sourceKey }) : void 0,
|
|
2912
2914
|
editPath: path,
|
|
2913
2915
|
githubBaseUrl
|
|
2914
2916
|
}
|