@rspress/shared 1.18.2 → 1.18.3

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/index.d.ts CHANGED
@@ -341,7 +341,7 @@ interface DocFooter {
341
341
  }
342
342
  interface SocialLink {
343
343
  icon: SocialLinkIcon;
344
- mode: 'link' | 'text' | 'img';
344
+ mode: 'link' | 'text' | 'img' | 'dom';
345
345
  content: string;
346
346
  }
347
347
  type SocialLinkIcon = 'lark' | 'discord' | 'facebook' | 'github' | 'instagram' | 'linkedin' | 'slack' | 'twitter' | 'youtube' | 'wechat' | 'qq' | 'juejin' | 'zhihu' | 'bilibili' | 'weibo' | 'gitlab' | 'X' | {
@@ -624,6 +624,7 @@ interface FrontMatterMeta {
624
624
  outline?: boolean;
625
625
  lineNumbers?: boolean;
626
626
  overviewHeaders?: number;
627
+ titleSuffix?: string;
627
628
  }
628
629
  interface PageData {
629
630
  siteData: SiteData<Config$1>;
package/dist/index.js CHANGED
@@ -1279,6 +1279,9 @@ function normalizeHref(url, cleanUrls = false) {
1279
1279
  if (cleanUrls && cleanUrl2.endsWith("/")) {
1280
1280
  cleanUrl2 += "index";
1281
1281
  }
1282
+ if (cleanUrls && cleanUrl2.endsWith(".html")) {
1283
+ cleanUrl2 = cleanUrl2.replace(/\.html$/, "");
1284
+ }
1282
1285
  return addLeadingSlash(hash ? `${cleanUrl2}#${hash}` : cleanUrl2);
1283
1286
  }
1284
1287
  function withoutLang(path, langs) {
package/dist/index.mjs CHANGED
@@ -1221,6 +1221,9 @@ function normalizeHref(url, cleanUrls = false) {
1221
1221
  if (cleanUrls && cleanUrl2.endsWith("/")) {
1222
1222
  cleanUrl2 += "index";
1223
1223
  }
1224
+ if (cleanUrls && cleanUrl2.endsWith(".html")) {
1225
+ cleanUrl2 = cleanUrl2.replace(/\.html$/, "");
1226
+ }
1224
1227
  return addLeadingSlash(hash ? `${cleanUrl2}#${hash}` : cleanUrl2);
1225
1228
  }
1226
1229
  function withoutLang(path, langs) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspress/shared",
3
- "version": "1.18.2",
3
+ "version": "1.18.3",
4
4
  "types": "./dist/index.d.ts",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -61,7 +61,7 @@
61
61
  "rimraf": "~3.0.2",
62
62
  "ts-node": "^10.9.1",
63
63
  "typescript": "~5.0.4",
64
- "medium-zoom": "1.0.8",
64
+ "medium-zoom": "1.1.0",
65
65
  "@types/fs-extra": "11.0.4"
66
66
  },
67
67
  "sideEffects": [],