@rspress/shared 2.1.1 → 2.1.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/index.d.ts +3 -2
- package/dist/node-utils.d.ts +3 -2
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -151,6 +151,7 @@ export declare interface I18nText {
|
|
|
151
151
|
themeText?: I18nTextValue;
|
|
152
152
|
copyMarkdownText?: I18nTextValue;
|
|
153
153
|
copyMarkdownLinkText?: I18nTextValue;
|
|
154
|
+
viewMarkdownText?: I18nTextValue;
|
|
154
155
|
openInText?: I18nTextValue;
|
|
155
156
|
menuTitle?: I18nTextValue;
|
|
156
157
|
outlineTitle?: I18nTextValue;
|
|
@@ -313,7 +314,7 @@ export declare type LlmsUI = {
|
|
|
313
314
|
/**
|
|
314
315
|
* Options for LlmsViewOptions component dropdown menu.
|
|
315
316
|
* Set to `false` or an empty array to hide the view options UI.
|
|
316
|
-
* @default ['markdownLink', 'chatgpt', 'claude']
|
|
317
|
+
* @default ['markdownLink', 'viewMarkdown', 'chatgpt', 'claude']
|
|
317
318
|
*/
|
|
318
319
|
viewOptions?: false | LlmsViewOption[];
|
|
319
320
|
/**
|
|
@@ -329,7 +330,7 @@ export declare type LlmsUI = {
|
|
|
329
330
|
* Built-in option item for LlmsViewOptions configured through
|
|
330
331
|
* `rspress.config.ts`.
|
|
331
332
|
*/
|
|
332
|
-
export declare type LlmsViewOption = 'markdownLink' | 'chatgpt' | 'claude';
|
|
333
|
+
export declare type LlmsViewOption = 'markdownLink' | 'viewMarkdown' | 'chatgpt' | 'claude';
|
|
333
334
|
|
|
334
335
|
export declare interface Locale {
|
|
335
336
|
lang: string;
|
package/dist/node-utils.d.ts
CHANGED
|
@@ -152,6 +152,7 @@ declare interface I18nText {
|
|
|
152
152
|
themeText?: I18nTextValue;
|
|
153
153
|
copyMarkdownText?: I18nTextValue;
|
|
154
154
|
copyMarkdownLinkText?: I18nTextValue;
|
|
155
|
+
viewMarkdownText?: I18nTextValue;
|
|
155
156
|
openInText?: I18nTextValue;
|
|
156
157
|
menuTitle?: I18nTextValue;
|
|
157
158
|
outlineTitle?: I18nTextValue;
|
|
@@ -300,7 +301,7 @@ declare type LlmsUI = {
|
|
|
300
301
|
/**
|
|
301
302
|
* Options for LlmsViewOptions component dropdown menu.
|
|
302
303
|
* Set to `false` or an empty array to hide the view options UI.
|
|
303
|
-
* @default ['markdownLink', 'chatgpt', 'claude']
|
|
304
|
+
* @default ['markdownLink', 'viewMarkdown', 'chatgpt', 'claude']
|
|
304
305
|
*/
|
|
305
306
|
viewOptions?: false | LlmsViewOption[];
|
|
306
307
|
/**
|
|
@@ -316,7 +317,7 @@ declare type LlmsUI = {
|
|
|
316
317
|
* Built-in option item for LlmsViewOptions configured through
|
|
317
318
|
* `rspress.config.ts`.
|
|
318
319
|
*/
|
|
319
|
-
declare type LlmsViewOption = 'markdownLink' | 'chatgpt' | 'claude';
|
|
320
|
+
declare type LlmsViewOption = 'markdownLink' | 'viewMarkdown' | 'chatgpt' | 'claude';
|
|
320
321
|
|
|
321
322
|
export declare function loadFrontMatter<TFrontmatter extends Record<string, unknown> = FrontMatterMeta>(source: string, filepath: string, root: string, outputWarning?: boolean): {
|
|
322
323
|
frontmatter: TFrontmatter;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspress/shared",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/web-infra-dev/rspress.git",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@rsbuild/core": "^2.2.14",
|
|
49
49
|
"@shikijs/rehype": "^4.2.0",
|
|
50
50
|
"@types/react": "^19.3.0",
|
|
51
|
-
"mdast-util-mdx-jsx": "^3.2.
|
|
51
|
+
"mdast-util-mdx-jsx": "^3.2.1",
|
|
52
52
|
"unified": "^11.0.5"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"gray-matter": "4.0.3",
|
|
60
60
|
"lodash-es": "^4.18.1",
|
|
61
61
|
"medium-zoom": "1.1.2",
|
|
62
|
-
"rimraf": "^6.1.
|
|
62
|
+
"rimraf": "^6.1.4",
|
|
63
63
|
"rsbuild-plugin-publint": "^1.0.0",
|
|
64
64
|
"typescript": "^6.0.3"
|
|
65
65
|
},
|