@rspress/shared 0.0.0-next-20240509110203 → 0.0.0-next-20240517094621

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 +4 -1
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -584,7 +584,10 @@ interface Hero {
584
584
  text: string;
585
585
  tagline: string;
586
586
  image?: {
587
- src: string;
587
+ src: string | {
588
+ dark: string;
589
+ light: string;
590
+ };
588
591
  alt: string;
589
592
  /**
590
593
  * `srcset` and `sizes` are attributes of `<img>` tag. Please refer to https://mdn.io/srcset for the usage.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspress/shared",
3
- "version": "0.0.0-next-20240509110203",
3
+ "version": "0.0.0-next-20240517094621",
4
4
  "types": "./dist/index.d.ts",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -52,7 +52,7 @@
52
52
  "devDependencies": {
53
53
  "lodash-es": "^4.17.21",
54
54
  "@types/interpret": "^1.1.1",
55
- "@types/jest": "~29.2.4",
55
+ "@types/jest": "~29.5.12",
56
56
  "@types/lodash": "^4.17.0",
57
57
  "@types/lodash-es": "^4.17.8",
58
58
  "@types/node": "^18.11.17",