@rspress/core 2.1.0-beta.1 → 2.1.0-beta.2
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/cli/index.js +2 -2
- package/dist/config/loadConfigFile.js +1 -1
- package/dist/eject-theme/components/CdnTabs/index.test.tsx +71 -0
- package/dist/eject-theme/components/CdnTabs/index.tsx +175 -0
- package/dist/eject-theme/components/DocContent/index.tsx +0 -3
- package/dist/eject-theme/components/FallbackHeading/index.tsx +6 -1
- package/dist/eject-theme/components/Link/index.tsx +9 -18
- package/dist/eject-theme/components/Link/useLinkNavigate.ts +17 -3
- package/dist/eject-theme/components/NavTitle/index.test.tsx +78 -0
- package/dist/eject-theme/components/NavTitle/index.tsx +9 -5
- package/dist/eject-theme/components/PackageManagerTabs/index.test.tsx +79 -1
- package/dist/eject-theme/components/PackageManagerTabs/index.tsx +25 -12
- package/dist/eject-theme/components/Search/NoSearchResult.scss +1 -2
- package/dist/eject-theme/components/Search/SearchPanel.scss +75 -63
- package/dist/eject-theme/components/Search/SuggestItem.scss +28 -41
- package/dist/eject-theme/components/Sidebar/SidebarItem.scss +8 -0
- package/dist/eject-theme/components/Sidebar/SidebarSectionHeader.scss +3 -0
- package/dist/node/PluginDriver.d.ts +5 -0
- package/dist/node/PluginDriver.js +14 -5
- package/dist/node/auto-nav-sidebar/index.js +1 -1
- package/dist/node/auto-nav-sidebar/locales.js +1 -1
- package/dist/node/auto-nav-sidebar/normalize.js +1 -1
- package/dist/node/auto-nav-sidebar/utils.js +1 -1
- package/dist/node/auto-nav-sidebar/walk.js +1 -1
- package/dist/node/constants.js +1 -1
- package/dist/node/eject.js +1 -1
- package/dist/node/initRsbuild.js +12 -4
- package/dist/node/mdx/rehypePlugins/headerAnchor.js +1 -0
- package/dist/node/mdx/remarkPlugins/link.js +1 -1
- package/dist/node/route/RoutePage.js +1 -1
- package/dist/node/route/RouteService.js +1 -1
- package/dist/node/route/extractPageData.js +1 -1
- package/dist/node/route/normalizeRoutePath.js +1 -1
- package/dist/node/runtimeModule/i18n/getI18nData.d.ts +11 -0
- package/dist/node/runtimeModule/{i18n.js → i18n/getI18nData.js} +35 -22
- package/dist/node/runtimeModule/i18n/rsbuildPlugin.d.ts +5 -0
- package/dist/node/runtimeModule/i18n/rsbuildPlugin.js +21 -0
- package/dist/node/runtimeModule/pageData/createPageData.js +1 -1
- package/dist/node/runtimeModule/pageData/rsbuildPlugin.js +1 -1
- package/dist/node/runtimeModule/searchHooks.js +1 -1
- package/dist/node/runtimeModule/siteData/createSiteData.d.ts +2 -1
- package/dist/node/runtimeModule/siteData/createSiteData.js +3 -3
- package/dist/node/runtimeModule/siteData/normalizeThemeConfig.d.ts +2 -1
- package/dist/node/runtimeModule/siteData/normalizeThemeConfig.js +3 -4
- package/dist/node/runtimeModule/siteData/rsbuildPlugin.js +2 -2
- package/dist/node/serve.js +1 -1
- package/dist/node/sitemap.d.ts +7 -2
- package/dist/node/sitemap.js +40 -57
- package/dist/node/ssg/alternateLinks.js +1 -1
- package/dist/node/ssg/htmlFile.js +1 -1
- package/dist/node/ssg/renderHtmlTemplate.js +1 -1
- package/dist/node/ssg/renderPage.js +1 -1
- package/dist/node/ssg/renderPageWorker.js +1 -1
- package/dist/node/ssg/renderPages.js +2 -2
- package/dist/node/ssg/rsbuildPluginSSG.js +1 -1
- package/dist/node/ssg/ssgEnv.js +1 -1
- package/dist/node/ssg-md/llms/emitLlmsTxt.js +1 -1
- package/dist/node/ssg-md/llms/llmsTxt.js +1 -1
- package/dist/node/ssg-md/renderPage.js +1 -1
- package/dist/node/ssg-md/renderPages.js +2 -2
- package/dist/node/ssg-md/rsbuildPluginSSGMD.js +1 -1
- package/dist/node/utils/checkLanguageParity.js +1 -1
- package/dist/node/utils/createHash.js +1 -1
- package/dist/node/utils/flattenMdxContent.js +1 -1
- package/dist/node/utils/getPageKey.js +1 -1
- package/dist/node/utils/reactAlias.js +2 -2
- package/dist/{h~0.js → p~0.js} +6 -4
- package/dist/runtime/App.js +14 -10
- package/dist/runtime/BrowserOnly.d.ts +1 -1
- package/dist/runtime/BrowserOnly.js +53 -20
- package/dist/runtime/ClientApp.js +4 -0
- package/dist/runtime/NoSSR.d.ts +7 -3
- package/dist/runtime/NoSSR.js +30 -9
- package/dist/runtime/PageRoute.js +20 -8
- package/dist/runtime/index.d.ts +3 -2
- package/dist/runtime/index.js +3 -4
- package/dist/runtime/react.d.ts +5 -0
- package/dist/runtime/react.js +4 -0
- package/dist/runtime/reactDom.d.ts +6 -0
- package/dist/runtime/reactDom.js +2 -1
- package/dist/runtime/socialLinks.d.ts +1 -0
- package/dist/runtime/socialLinks.js +3 -0
- package/dist/theme/assets/bun.js +101 -0
- package/dist/theme/assets/deno.js +15 -0
- package/dist/theme/assets/jsdelivr.js +53 -0
- package/dist/theme/{components/PackageManagerTabs/icons/Npm.js → assets/npm.js} +4 -4
- package/dist/theme/{components/PackageManagerTabs/icons/Pnpm.js → assets/pnpm.js} +4 -4
- package/dist/theme/assets/unpkg.js +15 -0
- package/dist/theme/assets/yarn.js +22 -0
- package/dist/theme/components/CdnTabs/index.d.ts +10 -0
- package/dist/theme/components/CdnTabs/index.js +146 -0
- package/dist/theme/components/DocContent/index.js +1 -2
- package/dist/theme/components/FallbackHeading/index.js +1 -0
- package/dist/theme/components/Link/index.js +4 -13
- package/dist/theme/components/Link/useLinkNavigate.js +12 -4
- package/dist/theme/components/NavTitle/index.js +10 -5
- package/dist/theme/components/PackageManagerTabs/index.d.ts +2 -0
- package/dist/theme/components/PackageManagerTabs/index.js +22 -12
- package/dist/theme/components/Search/NoSearchResult.css +1 -2
- package/dist/theme/components/Search/SearchPanel.css +72 -51
- package/dist/theme/components/Search/SuggestItem.css +21 -34
- package/dist/theme/components/Sidebar/SidebarItem.css +5 -0
- package/dist/theme/components/Sidebar/SidebarSectionHeader.css +1 -0
- package/dist/theme/hooks/useDynamicToc.js +27 -34
- package/dist/theme/icons.d.ts +7 -0
- package/dist/theme/icons.js +15 -1
- package/dist/theme/index.d.ts +1 -2
- package/dist/theme/index.js +1 -2
- package/dist/theme/layout/Layout/index.js +1 -2
- package/dist/y~0.js +166 -0
- package/package.json +13 -13
- package/dist/b~0.js +0 -104
- package/dist/eject-theme/components/PackageManagerTabs/icons/Bun.tsx +0 -101
- package/dist/eject-theme/components/PackageManagerTabs/icons/Deno.tsx +0 -18
- package/dist/eject-theme/components/PackageManagerTabs/icons/Npm.tsx +0 -16
- package/dist/eject-theme/components/PackageManagerTabs/icons/Pnpm.tsx +0 -22
- package/dist/eject-theme/components/PackageManagerTabs/icons/Yarn.tsx +0 -18
- package/dist/node/runtimeModule/i18n.d.ts +0 -8
- package/dist/theme/components/PackageManagerTabs/icons/Bun.d.ts +0 -2
- package/dist/theme/components/PackageManagerTabs/icons/Bun.js +0 -137
- package/dist/theme/components/PackageManagerTabs/icons/Deno.d.ts +0 -2
- package/dist/theme/components/PackageManagerTabs/icons/Deno.js +0 -15
- package/dist/theme/components/PackageManagerTabs/icons/Npm.d.ts +0 -2
- package/dist/theme/components/PackageManagerTabs/icons/Pnpm.d.ts +0 -2
- package/dist/theme/components/PackageManagerTabs/icons/Yarn.d.ts +0 -2
- package/dist/theme/components/PackageManagerTabs/icons/Yarn.js +0 -22
- package/dist/theme/logic/useScrollAfterNav.d.ts +0 -5
- package/dist/theme/logic/useScrollAfterNav.js +0 -35
- package/dist/theme/logic/useScrollReset.d.ts +0 -5
- package/dist/theme/logic/useScrollReset.js +0 -12
- package/dist/tu~0.js +0 -3
- /package/dist/node/runtimeModule/{DEFAULT_I18N_TEXT.d.ts → i18n/DEFAULT_I18N_TEXT.d.ts} +0 -0
- /package/dist/node/runtimeModule/{DEFAULT_I18N_TEXT.js → i18n/DEFAULT_I18N_TEXT.js} +0 -0
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
function Bun(props) {
|
|
3
|
-
return /*#__PURE__*/ jsxs("svg", {
|
|
4
|
-
id: "Bun",
|
|
5
|
-
width: "1.2em",
|
|
6
|
-
height: "1.2em",
|
|
7
|
-
viewBox: "0 0 80 70",
|
|
8
|
-
...props,
|
|
9
|
-
children: [
|
|
10
|
-
/*#__PURE__*/ jsx("path", {
|
|
11
|
-
id: "Shadow",
|
|
12
|
-
d: "M71.09,20.74c-.16-.17-.33-.34-.5-.5s-.33-.34-.5-.5-.33-.34-.5-.5-.33-.34-.5-.5-.33-.34-.5-.5-.33-.34-.5-.5-.33-.34-.5-.5A26.46,26.46,0,0,1,75.5,35.7c0,16.57-16.82,30.05-37.5,30.05-11.58,0-21.94-4.23-28.83-10.86l.5.5.5.5.5.5.5.5.5.5.5.5.5.5C19.55,65.3,30.14,69.75,42,69.75c20.68,0,37.5-13.48,37.5-30C79.5,32.69,76.46,26,71.09,20.74Z"
|
|
13
|
-
}),
|
|
14
|
-
/*#__PURE__*/ jsxs("g", {
|
|
15
|
-
id: "Body",
|
|
16
|
-
children: [
|
|
17
|
-
/*#__PURE__*/ jsx("path", {
|
|
18
|
-
id: "Background",
|
|
19
|
-
d: "M73,35.7c0,15.21-15.67,27.54-35,27.54S3,50.91,3,35.7C3,26.27,9,17.94,18.22,13S33.18,3,38,3s8.94,4.13,19.78,10C67,17.94,73,26.27,73,35.7Z",
|
|
20
|
-
style: {
|
|
21
|
-
fill: '#fbf0df'
|
|
22
|
-
}
|
|
23
|
-
}),
|
|
24
|
-
/*#__PURE__*/ jsx("path", {
|
|
25
|
-
id: "Bottom_Shadow",
|
|
26
|
-
"data-name": "Bottom Shadow",
|
|
27
|
-
d: "M73,35.7a21.67,21.67,0,0,0-.8-5.78c-2.73,33.3-43.35,34.9-59.32,24.94A40,40,0,0,0,38,63.24C57.3,63.24,73,50.89,73,35.7Z",
|
|
28
|
-
style: {
|
|
29
|
-
fill: '#f6dece'
|
|
30
|
-
}
|
|
31
|
-
}),
|
|
32
|
-
/*#__PURE__*/ jsx("path", {
|
|
33
|
-
id: "Light_Shine",
|
|
34
|
-
"data-name": "Light Shine",
|
|
35
|
-
d: "M24.53,11.17C29,8.49,34.94,3.46,40.78,3.45A9.29,9.29,0,0,0,38,3c-2.42,0-5,1.25-8.25,3.13-1.13.66-2.3,1.39-3.54,2.15-2.33,1.44-5,3.07-8,4.7C8.69,18.13,3,26.62,3,35.7c0,.4,0,.8,0,1.19C9.06,15.48,20.07,13.85,24.53,11.17Z",
|
|
36
|
-
style: {
|
|
37
|
-
fill: '#fffefc'
|
|
38
|
-
}
|
|
39
|
-
}),
|
|
40
|
-
/*#__PURE__*/ jsx("path", {
|
|
41
|
-
id: "Top",
|
|
42
|
-
d: "M35.12,5.53A16.41,16.41,0,0,1,29.49,18c-.28.25-.06.73.3.59,3.37-1.31,7.92-5.23,6-13.14C35.71,5,35.12,5.12,35.12,5.53Zm2.27,0A16.24,16.24,0,0,1,39,19c-.12.35.31.65.55.36C41.74,16.56,43.65,11,37.93,5,37.64,4.74,37.19,5.14,37.39,5.49Zm2.76-.17A16.42,16.42,0,0,1,47,17.12a.33.33,0,0,0,.65.11c.92-3.49.4-9.44-7.17-12.53C40.08,4.54,39.82,5.08,40.15,5.32ZM21.69,15.76a16.94,16.94,0,0,0,10.47-9c.18-.36.75-.22.66.18-1.73,8-7.52,9.67-11.12,9.45C21.32,16.4,21.33,15.87,21.69,15.76Z",
|
|
43
|
-
style: {
|
|
44
|
-
fill: '#ccbea7',
|
|
45
|
-
fillRule: 'evenodd'
|
|
46
|
-
}
|
|
47
|
-
}),
|
|
48
|
-
/*#__PURE__*/ jsx("path", {
|
|
49
|
-
id: "Outline",
|
|
50
|
-
d: "M38,65.75C17.32,65.75.5,52.27.5,35.7c0-10,6.18-19.33,16.53-24.92,3-1.6,5.57-3.21,7.86-4.62,1.26-.78,2.45-1.51,3.6-2.19C32,1.89,35,.5,38,.5s5.62,1.2,8.9,3.14c1,.57,2,1.19,3.07,1.87,2.49,1.54,5.3,3.28,9,5.27C69.32,16.37,75.5,25.69,75.5,35.7,75.5,52.27,58.68,65.75,38,65.75ZM38,3c-2.42,0-5,1.25-8.25,3.13-1.13.66-2.3,1.39-3.54,2.15-2.33,1.44-5,3.07-8,4.7C8.69,18.13,3,26.62,3,35.7,3,50.89,18.7,63.25,38,63.25S73,50.89,73,35.7C73,26.62,67.31,18.13,57.78,13,54,11,51.05,9.12,48.66,7.64c-1.09-.67-2.09-1.29-3-1.84C42.63,4,40.42,3,38,3Z"
|
|
51
|
-
})
|
|
52
|
-
]
|
|
53
|
-
}),
|
|
54
|
-
/*#__PURE__*/ jsxs("g", {
|
|
55
|
-
id: "Mouth",
|
|
56
|
-
children: [
|
|
57
|
-
/*#__PURE__*/ jsx("g", {
|
|
58
|
-
id: "Background-2",
|
|
59
|
-
"data-name": "Background",
|
|
60
|
-
children: /*#__PURE__*/ jsx("path", {
|
|
61
|
-
d: "M45.05,43a8.93,8.93,0,0,1-2.92,4.71,6.81,6.81,0,0,1-4,1.88A6.84,6.84,0,0,1,34,47.71,8.93,8.93,0,0,1,31.12,43a.72.72,0,0,1,.8-.81H44.26A.72.72,0,0,1,45.05,43Z",
|
|
62
|
-
style: {
|
|
63
|
-
fill: '#b71422'
|
|
64
|
-
}
|
|
65
|
-
})
|
|
66
|
-
}),
|
|
67
|
-
/*#__PURE__*/ jsxs("g", {
|
|
68
|
-
id: "Tongue",
|
|
69
|
-
children: [
|
|
70
|
-
/*#__PURE__*/ jsx("path", {
|
|
71
|
-
id: "Background-3",
|
|
72
|
-
"data-name": "Background",
|
|
73
|
-
d: "M34,47.79a6.91,6.91,0,0,0,4.12,1.9,6.91,6.91,0,0,0,4.11-1.9,10.63,10.63,0,0,0,1-1.07,6.83,6.83,0,0,0-4.9-2.31,6.15,6.15,0,0,0-5,2.78C33.56,47.4,33.76,47.6,34,47.79Z",
|
|
74
|
-
style: {
|
|
75
|
-
fill: '#ff6164'
|
|
76
|
-
}
|
|
77
|
-
}),
|
|
78
|
-
/*#__PURE__*/ jsx("path", {
|
|
79
|
-
id: "Outline-2",
|
|
80
|
-
"data-name": "Outline",
|
|
81
|
-
d: "M34.16,47a5.36,5.36,0,0,1,4.19-2.08,6,6,0,0,1,4,1.69c.23-.25.45-.51.66-.77a7,7,0,0,0-4.71-1.93,6.36,6.36,0,0,0-4.89,2.36A9.53,9.53,0,0,0,34.16,47Z"
|
|
82
|
-
})
|
|
83
|
-
]
|
|
84
|
-
}),
|
|
85
|
-
/*#__PURE__*/ jsx("path", {
|
|
86
|
-
id: "Outline-3",
|
|
87
|
-
"data-name": "Outline",
|
|
88
|
-
d: "M38.09,50.19a7.42,7.42,0,0,1-4.45-2,9.52,9.52,0,0,1-3.11-5.05,1.2,1.2,0,0,1,.26-1,1.41,1.41,0,0,1,1.13-.51H44.26a1.44,1.44,0,0,1,1.13.51,1.19,1.19,0,0,1,.25,1h0a9.52,9.52,0,0,1-3.11,5.05A7.42,7.42,0,0,1,38.09,50.19Zm-6.17-7.4c-.16,0-.2.07-.21.09a8.29,8.29,0,0,0,2.73,4.37A6.23,6.23,0,0,0,38.09,49a6.28,6.28,0,0,0,3.65-1.73,8.3,8.3,0,0,0,2.72-4.37.21.21,0,0,0-.2-.09Z"
|
|
89
|
-
})
|
|
90
|
-
]
|
|
91
|
-
}),
|
|
92
|
-
/*#__PURE__*/ jsxs("g", {
|
|
93
|
-
id: "Face",
|
|
94
|
-
children: [
|
|
95
|
-
/*#__PURE__*/ jsx("ellipse", {
|
|
96
|
-
id: "Right_Blush",
|
|
97
|
-
"data-name": "Right Blush",
|
|
98
|
-
cx: "53.22",
|
|
99
|
-
cy: "40.18",
|
|
100
|
-
rx: "5.85",
|
|
101
|
-
ry: "3.44",
|
|
102
|
-
style: {
|
|
103
|
-
fill: '#febbd0'
|
|
104
|
-
}
|
|
105
|
-
}),
|
|
106
|
-
/*#__PURE__*/ jsx("ellipse", {
|
|
107
|
-
id: "Left_Bluch",
|
|
108
|
-
"data-name": "Left Bluch",
|
|
109
|
-
cx: "22.95",
|
|
110
|
-
cy: "40.18",
|
|
111
|
-
rx: "5.85",
|
|
112
|
-
ry: "3.44",
|
|
113
|
-
style: {
|
|
114
|
-
fill: '#febbd0'
|
|
115
|
-
}
|
|
116
|
-
}),
|
|
117
|
-
/*#__PURE__*/ jsx("path", {
|
|
118
|
-
id: "Eyes",
|
|
119
|
-
d: "M25.7,38.8a5.51,5.51,0,1,0-5.5-5.51A5.51,5.51,0,0,0,25.7,38.8Zm24.77,0A5.51,5.51,0,1,0,45,33.29,5.5,5.5,0,0,0,50.47,38.8Z",
|
|
120
|
-
style: {
|
|
121
|
-
fillRule: 'evenodd'
|
|
122
|
-
}
|
|
123
|
-
}),
|
|
124
|
-
/*#__PURE__*/ jsx("path", {
|
|
125
|
-
id: "Iris",
|
|
126
|
-
d: "M24,33.64a2.07,2.07,0,1,0-2.06-2.07A2.07,2.07,0,0,0,24,33.64Zm24.77,0a2.07,2.07,0,1,0-2.06-2.07A2.07,2.07,0,0,0,48.75,33.64Z",
|
|
127
|
-
style: {
|
|
128
|
-
fill: '#fff',
|
|
129
|
-
fillRule: 'evenodd'
|
|
130
|
-
}
|
|
131
|
-
})
|
|
132
|
-
]
|
|
133
|
-
})
|
|
134
|
-
]
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
export { Bun };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
function Deno(props) {
|
|
3
|
-
return /*#__PURE__*/ jsx("svg", {
|
|
4
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
-
width: "1em",
|
|
6
|
-
height: "1em",
|
|
7
|
-
viewBox: "0 0 24 24",
|
|
8
|
-
...props,
|
|
9
|
-
children: /*#__PURE__*/ jsx("path", {
|
|
10
|
-
fill: "currentColor",
|
|
11
|
-
d: "M1.105 18.02A11.9 11.9 0 0 1 0 12.985q0-.698.078-1.376a12 12 0 0 1 .231-1.34A12 12 0 0 1 4.025 4.02a12 12 0 0 1 5.46-2.771a12 12 0 0 1 3.428-.23c1.452.112 2.825.477 4.077 1.05a12 12 0 0 1 2.78 1.774a12.02 12.02 0 0 1 4.053 7.078A12 12 0 0 1 24 12.985q0 .454-.036.914a12 12 0 0 1-.728 3.305a12 12 0 0 1-2.38 3.875c-1.33 1.357-3.02 1.962-4.43 1.936a4.4 4.4 0 0 1-2.724-1.024c-.99-.853-1.391-1.83-1.53-2.919a5 5 0 0 1 .128-1.518c.105-.38.37-1.116.76-1.437c-.455-.197-1.04-.624-1.226-.829c-.045-.05-.04-.13 0-.183a.155.155 0 0 1 .177-.053c.392.134.869.267 1.372.35c.66.111 1.484.25 2.317.292c2.03.1 4.153-.813 4.812-2.627s.403-3.609-1.96-4.685s-3.454-2.356-5.363-3.128c-1.247-.505-2.636-.205-4.06.582c-3.838 2.121-7.277 8.822-5.69 15.032a.191.191 0 0 1-.315.19a12 12 0 0 1-1.25-1.634a12 12 0 0 1-.769-1.404M11.57 6.087c.649-.051 1.214.501 1.31 1.236c.13.979-.228 1.99-1.41 2.013c-1.01.02-1.315-.997-1.248-1.614c.066-.616.574-1.575 1.35-1.635"
|
|
12
|
-
})
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
export { Deno };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
function Yarn(props) {
|
|
3
|
-
return /*#__PURE__*/ jsx("svg", {
|
|
4
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
-
width: "1em",
|
|
6
|
-
height: "1em",
|
|
7
|
-
viewBox: "0 0 128 128",
|
|
8
|
-
...props,
|
|
9
|
-
children: /*#__PURE__*/ jsxs("g", {
|
|
10
|
-
fill: "#2c8ebb",
|
|
11
|
-
children: [
|
|
12
|
-
/*#__PURE__*/ jsx("path", {
|
|
13
|
-
d: "M99.24 80.71C94.9 80.76 91.1 83 87.89 85c-6 3.71-9 3.47-9 3.47l-.1-.17c-.41-.67 1.92-6.68-.69-13.84c-2.82-7.83-7.3-9.72-6.94-10.32c1.53-2.59 5.36-6.7 6.89-14.36c.91-4.64.67-12.28-1.39-16.28c-.38-.74-3.78 1.24-3.78 1.24s-3.18-7.09-4.07-7.66c-2.87-1.84-6 7.61-6 7.61a14 14 0 0 0-11.71 4.5a9.64 9.64 0 0 1-3.85 2.27c-.41.14-.91.12-2.15 3.47c-1.9 5.07 3.24 10.81 3.24 10.81s-6.13 4.33-8.4 9.72a24.78 24.78 0 0 0-1.75 11.68s-4.36 3.78-4.64 7.68a12.87 12.87 0 0 0 1.77 7.83a1.94 1.94 0 0 0 2.63.91s-2.9 3.38-.19 4.81c2.47 1.29 6.63 2 8.83-.19c1.6-1.6 1.92-5.17 2.51-6.63c.14-.34.62.57 1.08 1a10 10 0 0 0 1.36 1s-3.9 1.68-2.3 5.51c.53 1.27 2.42 2.08 5.51 2.06c1.15 0 13.76-.72 17.12-1.53a4.33 4.33 0 0 0 2.61-1.46a63 63 0 0 0 15.49-7c4.74-3.09 6.68-3.93 10.51-4.84c3.16-.75 2.95-5.65-1.24-5.58z"
|
|
14
|
-
}),
|
|
15
|
-
/*#__PURE__*/ jsx("path", {
|
|
16
|
-
d: "M64 2a62 62 0 1 0 62 62A62 62 0 0 0 64 2zm37.3 87.83c-3.35.81-4.91 1.44-9.41 4.36a67 67 0 0 1-15.56 7.18a8.71 8.71 0 0 1-3.64 1.77c-3.81.93-16.88 1.63-17.91 1.63h-.24c-4 0-6.27-1.24-7.49-2.54c-3.4 1.7-7.8 1-11-.69a5.55 5.55 0 0 1-3-3.9a6 6 0 0 1 0-2.06a6.66 6.66 0 0 1-.79-1A16.38 16.38 0 0 1 30 84.52c.29-3.73 2.87-7.06 4.55-8.83A28.56 28.56 0 0 1 36.61 64a26.82 26.82 0 0 1 6.82-9c-1.65-2.78-3.33-7.06-1.7-11.42c1.17-3.11 2.13-4.84 4.24-5.58a6.84 6.84 0 0 0 2.51-1.34A17.65 17.65 0 0 1 60.34 31c.19-.48.41-1 .65-1.46c1.6-3.4 3.3-5.31 5.29-6a4.88 4.88 0 0 1 4.4.5c.65.43 1.48 1 3.9 6a4.69 4.69 0 0 1 2.85-.1a3.81 3.81 0 0 1 2.39 1.94c2.47 4.74 2.8 13.19 1.72 18.62a33.8 33.8 0 0 1-5.84 13.31a25.73 25.73 0 0 1 5.77 9.43a25.42 25.42 0 0 1 1.41 10.41A28.7 28.7 0 0 0 86 81.91c3.06-1.89 7.68-4.74 13.19-4.81a6.62 6.62 0 0 1 7 5.7a6.35 6.35 0 0 1-4.89 7.03z"
|
|
17
|
-
})
|
|
18
|
-
]
|
|
19
|
-
})
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
export { Yarn };
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { useLocation } from "@rspress/core/runtime";
|
|
2
|
-
import { useLayoutEffect } from "react";
|
|
3
|
-
function parseCSSLength(value) {
|
|
4
|
-
if (!value || 'auto' === value || 'none' === value) return 0;
|
|
5
|
-
const numValue = Number.parseFloat(value);
|
|
6
|
-
if (Number.isNaN(numValue)) return 0;
|
|
7
|
-
return numValue;
|
|
8
|
-
}
|
|
9
|
-
function getTargetTop(element) {
|
|
10
|
-
const scrollPaddingTop = parseCSSLength(window.getComputedStyle(document.documentElement).getPropertyValue('scroll-padding-top'));
|
|
11
|
-
const targetTop = window.scrollY + element.getBoundingClientRect().top - scrollPaddingTop;
|
|
12
|
-
return Math.round(targetTop);
|
|
13
|
-
}
|
|
14
|
-
function scrollToTarget(target) {
|
|
15
|
-
const offsetTop = getTargetTop(target);
|
|
16
|
-
window.scrollTo({
|
|
17
|
-
left: 0,
|
|
18
|
-
top: offsetTop
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
function useScrollAfterNav() {
|
|
22
|
-
const location = useLocation();
|
|
23
|
-
useLayoutEffect(()=>{
|
|
24
|
-
if ("u" < typeof window) return;
|
|
25
|
-
const decodedHash = decodeURIComponent(window.location.hash);
|
|
26
|
-
if (decodedHash.length > 0) {
|
|
27
|
-
const target = document.getElementById(decodedHash.slice(1));
|
|
28
|
-
if (target) scrollToTarget(target);
|
|
29
|
-
}
|
|
30
|
-
}, [
|
|
31
|
-
location,
|
|
32
|
-
location.pathname
|
|
33
|
-
]);
|
|
34
|
-
}
|
|
35
|
-
export { useScrollAfterNav };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { useLayoutEffect } from "react";
|
|
2
|
-
import { useLocation } from "react-router-dom";
|
|
3
|
-
function useScrollReset() {
|
|
4
|
-
const { pathname } = useLocation();
|
|
5
|
-
useLayoutEffect(()=>{
|
|
6
|
-
const decodedHash = decodeURIComponent(window.location.hash);
|
|
7
|
-
if (0 === decodedHash.length) window.scrollTo(0, 0);
|
|
8
|
-
}, [
|
|
9
|
-
pathname
|
|
10
|
-
]);
|
|
11
|
-
}
|
|
12
|
-
export { useScrollReset };
|
package/dist/tu~0.js
DELETED
|
File without changes
|
|
File without changes
|