@rspress/shared 1.11.2 → 1.12.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +14 -1
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -135,6 +135,11 @@ interface Config$1 {
135
135
  * Whether to enable the animation for translation pages
136
136
  */
137
137
  enableContentAnimation?: boolean;
138
+ /**
139
+ * Enable scroll to top button on documentation
140
+ * @default false
141
+ */
142
+ enableScrollToTop?: boolean;
138
143
  }
139
144
  /**
140
145
  * locale config
@@ -201,11 +206,19 @@ interface SidebarGroup {
201
206
  items: (SidebarItem | SidebarDivider | SidebarGroup | string)[];
202
207
  collapsible?: boolean;
203
208
  collapsed?: boolean;
209
+ /**
210
+ * For hmr usage in development
211
+ */
212
+ _fileKey?: string;
204
213
  }
205
214
  type SidebarItem = {
206
215
  text: string;
207
216
  link: string;
208
217
  tag?: string;
218
+ /**
219
+ * For hmr usage in development
220
+ */
221
+ _fileKey?: string;
209
222
  };
210
223
  type SidebarDivider = {
211
224
  dividerType: 'dashed' | 'solid';
@@ -237,7 +250,7 @@ interface SocialLink {
237
250
  mode: 'link' | 'text' | 'img';
238
251
  content: string;
239
252
  }
240
- type SocialLinkIcon = 'lark' | 'discord' | 'facebook' | 'github' | 'instagram' | 'linkedin' | 'slack' | 'twitter' | 'youtube' | 'wechat' | 'qq' | 'juejin' | 'zhihu' | 'bilibili' | 'weibo' | 'gitlab' | {
253
+ type SocialLinkIcon = 'lark' | 'discord' | 'facebook' | 'github' | 'instagram' | 'linkedin' | 'slack' | 'twitter' | 'youtube' | 'wechat' | 'qq' | 'juejin' | 'zhihu' | 'bilibili' | 'weibo' | 'gitlab' | 'X' | {
241
254
  svg: string;
242
255
  };
243
256
  interface Footer {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspress/shared",
3
- "version": "1.11.2",
3
+ "version": "1.12.0",
4
4
  "types": "./dist/index.d.ts",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",