@histoire/shared 0.14.0 → 0.14.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.
@@ -119,6 +119,10 @@ export interface HistoireConfig {
119
119
  * Enable persistence of the color scheme in the browser.
120
120
  */
121
121
  storeColorScheme?: boolean;
122
+ /**
123
+ * Class added to the story preview when dark mode is enabled.
124
+ */
125
+ darkClass?: string;
122
126
  };
123
127
  /**
124
128
  * Setup file exporting a default function executed when setting up each story preview.
@@ -165,6 +169,7 @@ export interface HistoireConfig {
165
169
  autoApplyContrastColor?: boolean;
166
170
  /**
167
171
  * Class added to the html root of the story preview when dark mode is enabled.
172
+ * @deprecated use `theme.darkClass` instead
168
173
  */
169
174
  sandboxDarkClass?: string;
170
175
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@histoire/shared",
3
- "version": "0.14.0",
3
+ "version": "0.14.2",
4
4
  "description": "Shared utilities for Histoire",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -25,7 +25,7 @@
25
25
  "types": "./dist/index.d.ts",
26
26
  "sideEffects": false,
27
27
  "dependencies": {
28
- "@histoire/vendors": "^0.14.0",
28
+ "@histoire/vendors": "^0.14.2",
29
29
  "@types/fs-extra": "^9.0.13",
30
30
  "@types/markdown-it": "^12.2.3",
31
31
  "chokidar": "^3.5.3",
@@ -128,6 +128,10 @@ export interface HistoireConfig {
128
128
  * Enable persistence of the color scheme in the browser.
129
129
  */
130
130
  storeColorScheme?: boolean
131
+ /**
132
+ * Class added to the story preview when dark mode is enabled.
133
+ */
134
+ darkClass?: string
131
135
  }
132
136
  /**
133
137
  * Setup file exporting a default function executed when setting up each story preview.
@@ -174,6 +178,7 @@ export interface HistoireConfig {
174
178
  autoApplyContrastColor?: boolean
175
179
  /**
176
180
  * Class added to the html root of the story preview when dark mode is enabled.
181
+ * @deprecated use `theme.darkClass` instead
177
182
  */
178
183
  sandboxDarkClass?: string
179
184
  /**