@storybook/addon-themes 8.1.0-alpha.1 → 8.1.0-alpha.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,5 @@
1
+ import { ProjectAnnotations, Renderer } from '@storybook/types';
2
+
3
+ declare const globals: ProjectAnnotations<Renderer>['globals'];
4
+
5
+ export { globals };
package/dist/preview.js CHANGED
@@ -1,3 +1,5 @@
1
+ 'use strict';
2
+
1
3
  var GLOBAL_KEY="theme";var globals={[GLOBAL_KEY]:""};
2
4
 
3
- export { globals };
5
+ exports.globals = globals;
@@ -0,0 +1,3 @@
1
+ var GLOBAL_KEY="theme";var globals={[GLOBAL_KEY]:""};
2
+
3
+ export { globals };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/addon-themes",
3
- "version": "8.1.0-alpha.1",
3
+ "version": "8.1.0-alpha.3",
4
4
  "description": "Switch between multiple themes for you components in Storybook",
5
5
  "keywords": [
6
6
  "css",
@@ -33,8 +33,12 @@
33
33
  "require": "./dist/index.js",
34
34
  "import": "./dist/index.mjs"
35
35
  },
36
+ "./preview": {
37
+ "types": "./dist/preview.d.ts",
38
+ "require": "./dist/preview.js",
39
+ "import": "./dist/preview.mjs"
40
+ },
36
41
  "./manager": "./dist/manager.js",
37
- "./preview": "./dist/preview.js",
38
42
  "./package.json": "./package.json",
39
43
  "./postinstall": "./postinstall.js"
40
44
  },
@@ -56,14 +60,14 @@
56
60
  "ts-dedent": "^2.0.0"
57
61
  },
58
62
  "devDependencies": {
59
- "@storybook/client-logger": "8.1.0-alpha.1",
60
- "@storybook/components": "8.1.0-alpha.1",
61
- "@storybook/core-events": "8.1.0-alpha.1",
63
+ "@storybook/client-logger": "8.1.0-alpha.3",
64
+ "@storybook/components": "8.1.0-alpha.3",
65
+ "@storybook/core-events": "8.1.0-alpha.3",
62
66
  "@storybook/icons": "^1.2.5",
63
- "@storybook/manager-api": "8.1.0-alpha.1",
64
- "@storybook/preview-api": "8.1.0-alpha.1",
65
- "@storybook/theming": "8.1.0-alpha.1",
66
- "@storybook/types": "8.1.0-alpha.1",
67
+ "@storybook/manager-api": "8.1.0-alpha.3",
68
+ "@storybook/preview-api": "8.1.0-alpha.3",
69
+ "@storybook/theming": "8.1.0-alpha.3",
70
+ "@storybook/types": "8.1.0-alpha.3",
67
71
  "typescript": "^5.3.2"
68
72
  },
69
73
  "publishConfig": {