Skip to content

Commit

Permalink
fix: deps
Browse files Browse the repository at this point in the history
  • Loading branch information
zernonia committed Feb 4, 2025
1 parent 8ad0c37 commit 83d9e3a
Show file tree
Hide file tree
Showing 4 changed files with 1,897 additions and 1,155 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "module",
"version": "1.0.0-alpha.9",
"private": true,
"packageManager": "pnpm@9.15.5",
"packageManager": "pnpm@9.15.0",
"license": "MIT",
"repository": "unovue/reka-ui",
"workspaces": [
Expand Down Expand Up @@ -33,7 +33,7 @@
"bumpp": "^9.11.1",
"eslint": "^9.19.0",
"lint-staged": "^15.4.3",
"pnpm": "^9.15.5",
"pnpm": "^9.15.0",
"rimraf": "^6.0.1",
"simple-git-hooks": "^2.11.1",
"typescript": "5.3.3"
Expand All @@ -45,7 +45,7 @@
},
"pnpm": {
"patchedDependencies": {
"vitepress@1.2.3": "patches/vitepress@1.2.3.patch"
"vitepress": "patches/vitepress.patch"
}
},
"simple-git-hooks": {
Expand Down
35 changes: 35 additions & 0 deletions patches/vitepress.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
diff --git a/dist/node/chunk-Zsoi3j4v.js b/dist/node/chunk-Zsoi3j4v.js
index 8cfe39e30b9e866566716751deb57a58555b7bf8..71aecd26099f5b8df57827d3f56ed5b0fff9f378 100644
--- a/dist/node/chunk-Zsoi3j4v.js
+++ b/dist/node/chunk-Zsoi3j4v.js
@@ -35093,11 +35093,12 @@ function preWrapperPlugin(md, options) {
md.renderer.rules.fence = (...args) => {
const [tokens, idx] = args;
const token = tokens[idx];
+ const title = extractTitle(token.info);
token.info = token.info.replace(/\[.*\]/, "");
const active = / active( |$)/.test(token.info) ? " active" : "";
token.info = token.info.replace(/ active$/, "").replace(/ active /, " ");
const lang = extractLang(token.info);
- return `<div class="language-${lang}${getAdaptiveThemeMarker(options)}${active}"><button title="${options.codeCopyButtonTitle}" class="copy"></button><span class="lang">${lang}</span>` + fence(...args) + "</div>";
+ return `<div name="${title}" class="language-${lang}${getAdaptiveThemeMarker(options)}${active}"><button title="${options.codeCopyButtonTitle}" class="copy"></button><span class="lang">${lang}</span>` + fence(...args) + "</div>";
};
}
function getAdaptiveThemeMarker(options) {
diff --git a/types/default-theme.d.ts b/types/default-theme.d.ts
index 10681a847be1df591c649c1cf1645db774b3a3b4..cbe5c0cde3f1eb0da98f779121cf1c76710fb388 100644
--- a/types/default-theme.d.ts
+++ b/types/default-theme.d.ts
@@ -272,6 +272,12 @@ export namespace DefaultTheme {
* Customize text that appears on the footer of previous/next page.
*/
docFooterText?: string
+
+
+ /**
+ * Icon for the item
+ */
+ icon?: string

rel?: string
target?: string
87 changes: 0 additions & 87 deletions patches/vitepress@1.2.3.patch

This file was deleted.

Loading

0 comments on commit 83d9e3a

Please sign in to comment.