@rspress/shared 2.0.0-rc.6 → 2.0.0-rc.7

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
@@ -33,6 +33,13 @@ export declare interface EditLink {
33
33
  }
34
34
 
35
35
  export declare interface Feature {
36
+ /**
37
+ * Feature icon, supports:
38
+ * - Emoji: '🚀'
39
+ * - HTML string: '<span class="icon">...</span>'
40
+ * - SVG string: '<svg>...</svg>'
41
+ * - Image URL: '/icons/feature.svg' or 'https://example.com/icon.png'
42
+ */
36
43
  icon: string;
37
44
  title: string;
38
45
  details: string;
@@ -32,6 +32,13 @@ declare interface EditLink {
32
32
  export declare const extractTextAndId: (title?: string) => [text: string, customId: string];
33
33
 
34
34
  declare interface Feature {
35
+ /**
36
+ * Feature icon, supports:
37
+ * - Emoji: '🚀'
38
+ * - HTML string: '<span class="icon">...</span>'
39
+ * - SVG string: '<svg>...</svg>'
40
+ * - Image URL: '/icons/feature.svg' or 'https://example.com/icon.png'
41
+ */
35
42
  icon: string;
36
43
  title: string;
37
44
  details: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspress/shared",
3
- "version": "2.0.0-rc.6",
3
+ "version": "2.0.0-rc.7",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/web-infra-dev/rspress.git",
@@ -32,7 +32,7 @@
32
32
  "dist"
33
33
  ],
34
34
  "dependencies": {
35
- "@rsbuild/core": "~1.7.2",
35
+ "@rsbuild/core": "2.0.0-alpha.2",
36
36
  "@shikijs/rehype": "^3.21.0",
37
37
  "gray-matter": "4.0.3",
38
38
  "lodash-es": "^4.17.22",