@rspress/shared 2.0.3 → 2.0.4

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
@@ -187,6 +187,13 @@ export declare type LlmsUI = {
187
187
  * @default ['markdownLink', 'chatgpt', 'claude']
188
188
  */
189
189
  viewOptions?: LlmsViewOption[];
190
+ /**
191
+ * Where to display the LLM UI components.
192
+ * - 'title': Show as buttons below the H1 title (default)
193
+ * - 'outline': Show as separate rows in the outline sidebar
194
+ * @default 'title'
195
+ */
196
+ placement?: 'title' | 'outline';
190
197
  } | boolean;
191
198
 
192
199
  /**
@@ -231,6 +238,7 @@ export declare type LocalSearchOptions = SearchHooks & {
231
238
  mode?: 'local';
232
239
  /**
233
240
  * Whether to generate separate search index for each version
241
+ * @default true
234
242
  */
235
243
  versioned?: boolean;
236
244
  /**
@@ -301,6 +309,8 @@ export declare type NavItemWithLink = {
301
309
  tag?: string;
302
310
  activeMatch?: string;
303
311
  position?: 'left' | 'right';
312
+ lang?: string;
313
+ rel?: string;
304
314
  };
305
315
 
306
316
  export declare interface NavItemWithLinkAndChildren {
@@ -310,6 +320,8 @@ export declare interface NavItemWithLinkAndChildren {
310
320
  tag?: string;
311
321
  activeMatch?: string;
312
322
  position?: 'left' | 'right';
323
+ lang?: string;
324
+ rel?: string;
313
325
  }
314
326
 
315
327
  export declare interface NormalizedLocales extends Omit<LocaleConfig, 'sidebar'> {
@@ -180,6 +180,13 @@ declare type LlmsUI = {
180
180
  * @default ['markdownLink', 'chatgpt', 'claude']
181
181
  */
182
182
  viewOptions?: LlmsViewOption[];
183
+ /**
184
+ * Where to display the LLM UI components.
185
+ * - 'title': Show as buttons below the H1 title (default)
186
+ * - 'outline': Show as separate rows in the outline sidebar
187
+ * @default 'title'
188
+ */
189
+ placement?: 'title' | 'outline';
183
190
  } | boolean;
184
191
 
185
192
  /**
@@ -230,6 +237,7 @@ declare type LocalSearchOptions = SearchHooks & {
230
237
  mode?: 'local';
231
238
  /**
232
239
  * Whether to generate separate search index for each version
240
+ * @default true
233
241
  */
234
242
  versioned?: boolean;
235
243
  /**
@@ -291,6 +299,8 @@ declare type NavItemWithLink = {
291
299
  tag?: string;
292
300
  activeMatch?: string;
293
301
  position?: 'left' | 'right';
302
+ lang?: string;
303
+ rel?: string;
294
304
  };
295
305
 
296
306
  declare interface NavItemWithLinkAndChildren {
@@ -300,6 +310,8 @@ declare interface NavItemWithLinkAndChildren {
300
310
  tag?: string;
301
311
  activeMatch?: string;
302
312
  position?: 'left' | 'right';
313
+ lang?: string;
314
+ rel?: string;
303
315
  }
304
316
 
305
317
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspress/shared",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/web-infra-dev/rspress.git",
@@ -32,20 +32,20 @@
32
32
  "dist"
33
33
  ],
34
34
  "dependencies": {
35
- "@rsbuild/core": "2.0.0-beta.3",
36
- "@shikijs/rehype": "^3.21.0",
35
+ "@rsbuild/core": "2.0.0-beta.6",
36
+ "@shikijs/rehype": "^4.0.1",
37
37
  "gray-matter": "4.0.3",
38
38
  "lodash-es": "^4.17.23",
39
39
  "unified": "^11.0.5"
40
40
  },
41
41
  "devDependencies": {
42
- "@rslib/core": "0.19.5",
42
+ "@rslib/core": "0.19.6",
43
43
  "@types/lodash-es": "^4.17.12",
44
44
  "@types/node": "^22.8.1",
45
- "@types/react": "^19.2.13",
45
+ "@types/react": "^19.2.14",
46
46
  "mdast-util-mdx-jsx": "^3.2.0",
47
47
  "medium-zoom": "1.1.0",
48
- "rimraf": "^6.1.2",
48
+ "rimraf": "^6.1.3",
49
49
  "rsbuild-plugin-publint": "^0.3.4",
50
50
  "typescript": "^5.8.2"
51
51
  },