@storybook/preview-api 8.2.0-alpha.9 → 8.2.0-beta.1
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/package.json +14 -42
 - package/shim.d.ts +2 -0
 - package/shim.js +1 -0
 - package/shim.mjs +1 -0
 - package/README.md +0 -12
 - package/dist/index.d.ts +0 -838
 - package/dist/index.js +0 -67
 - package/dist/index.mjs +0 -86
 - package/template/stories/global.d.ts +0 -11
 - package/template/stories/import.js +0 -1
 
    
        package/package.json
    CHANGED
    
    | 
         @@ -1,6 +1,6 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            {
         
     | 
| 
       2 
2 
     | 
    
         
             
              "name": "@storybook/preview-api",
         
     | 
| 
       3 
     | 
    
         
            -
              "version": "8.2.0- 
     | 
| 
      
 3 
     | 
    
         
            +
              "version": "8.2.0-beta.1",
         
     | 
| 
       4 
4 
     | 
    
         
             
              "description": "",
         
     | 
| 
       5 
5 
     | 
    
         
             
              "keywords": [
         
     | 
| 
       6 
6 
     | 
    
         
             
                "storybook"
         
     | 
| 
         @@ -22,55 +22,27 @@ 
     | 
|
| 
       22 
22 
     | 
    
         
             
              "sideEffects": false,
         
     | 
| 
       23 
23 
     | 
    
         
             
              "exports": {
         
     | 
| 
       24 
24 
     | 
    
         
             
                ".": {
         
     | 
| 
       25 
     | 
    
         
            -
                  "types": "./ 
     | 
| 
       26 
     | 
    
         
            -
                  "import": "./ 
     | 
| 
       27 
     | 
    
         
            -
                  "require": "./ 
     | 
| 
      
 25 
     | 
    
         
            +
                  "types": "./shim.d.ts",
         
     | 
| 
      
 26 
     | 
    
         
            +
                  "import": "./shim.mjs",
         
     | 
| 
      
 27 
     | 
    
         
            +
                  "require": "./shim.js"
         
     | 
| 
       28 
28 
     | 
    
         
             
                },
         
     | 
| 
       29 
29 
     | 
    
         
             
                "./package.json": "./package.json"
         
     | 
| 
       30 
30 
     | 
    
         
             
              },
         
     | 
| 
       31 
     | 
    
         
            -
              "main": " 
     | 
| 
       32 
     | 
    
         
            -
              "module": " 
     | 
| 
       33 
     | 
    
         
            -
              "react-native": " 
     | 
| 
       34 
     | 
    
         
            -
              "types": " 
     | 
| 
      
 31 
     | 
    
         
            +
              "main": "./shim.js",
         
     | 
| 
      
 32 
     | 
    
         
            +
              "module": "./shim.mjs",
         
     | 
| 
      
 33 
     | 
    
         
            +
              "react-native": "./shim.mjs",
         
     | 
| 
      
 34 
     | 
    
         
            +
              "types": "./shim.d.ts",
         
     | 
| 
       35 
35 
     | 
    
         
             
              "files": [
         
     | 
| 
       36 
     | 
    
         
            -
                "dist/**/*",
         
     | 
| 
       37 
36 
     | 
    
         
             
                "README.md",
         
     | 
| 
       38 
37 
     | 
    
         
             
                "*.js",
         
     | 
| 
       39 
     | 
    
         
            -
                "*. 
     | 
| 
       40 
     | 
    
         
            -
                " 
     | 
| 
      
 38 
     | 
    
         
            +
                "*.mjs",
         
     | 
| 
      
 39 
     | 
    
         
            +
                "*.cjs",
         
     | 
| 
      
 40 
     | 
    
         
            +
                "*.d.ts"
         
     | 
| 
       41 
41 
     | 
    
         
             
              ],
         
     | 
| 
       42 
     | 
    
         
            -
              " 
     | 
| 
       43 
     | 
    
         
            -
                " 
     | 
| 
       44 
     | 
    
         
            -
                "prep": "node --loader ../../../scripts/node_modules/esbuild-register/loader.js -r ../../../scripts/node_modules/esbuild-register/register.js ../../../scripts/prepare/bundle.ts"
         
     | 
| 
       45 
     | 
    
         
            -
              },
         
     | 
| 
       46 
     | 
    
         
            -
              "dependencies": {
         
     | 
| 
       47 
     | 
    
         
            -
                "@storybook/channels": "8.2.0-alpha.9",
         
     | 
| 
       48 
     | 
    
         
            -
                "@storybook/client-logger": "8.2.0-alpha.9",
         
     | 
| 
       49 
     | 
    
         
            -
                "@storybook/core-events": "8.2.0-alpha.9",
         
     | 
| 
       50 
     | 
    
         
            -
                "@storybook/csf": "^0.1.8",
         
     | 
| 
       51 
     | 
    
         
            -
                "@storybook/global": "^5.0.0",
         
     | 
| 
       52 
     | 
    
         
            -
                "@storybook/types": "8.2.0-alpha.9",
         
     | 
| 
       53 
     | 
    
         
            -
                "@types/qs": "^6.9.5",
         
     | 
| 
       54 
     | 
    
         
            -
                "dequal": "^2.0.2",
         
     | 
| 
       55 
     | 
    
         
            -
                "lodash": "^4.17.21",
         
     | 
| 
       56 
     | 
    
         
            -
                "memoizerific": "^1.11.3",
         
     | 
| 
       57 
     | 
    
         
            -
                "qs": "^6.10.0",
         
     | 
| 
       58 
     | 
    
         
            -
                "tiny-invariant": "^1.3.1",
         
     | 
| 
       59 
     | 
    
         
            -
                "ts-dedent": "^2.0.0",
         
     | 
| 
       60 
     | 
    
         
            -
                "util-deprecate": "^1.0.2"
         
     | 
| 
       61 
     | 
    
         
            -
              },
         
     | 
| 
       62 
     | 
    
         
            -
              "devDependencies": {
         
     | 
| 
       63 
     | 
    
         
            -
                "@storybook/core-common": "8.2.0-alpha.9",
         
     | 
| 
       64 
     | 
    
         
            -
                "ansi-to-html": "^0.6.11",
         
     | 
| 
       65 
     | 
    
         
            -
                "slash": "^5.0.0"
         
     | 
| 
      
 42 
     | 
    
         
            +
              "peerDependencies": {
         
     | 
| 
      
 43 
     | 
    
         
            +
                "storybook": "^8.2.0-beta.1"
         
     | 
| 
       66 
44 
     | 
    
         
             
              },
         
     | 
| 
       67 
45 
     | 
    
         
             
              "publishConfig": {
         
     | 
| 
       68 
46 
     | 
    
         
             
                "access": "public"
         
     | 
| 
       69 
     | 
    
         
            -
              } 
     | 
| 
       70 
     | 
    
         
            -
              "bundler": {
         
     | 
| 
       71 
     | 
    
         
            -
                "entries": [
         
     | 
| 
       72 
     | 
    
         
            -
                  "./src/index.ts"
         
     | 
| 
       73 
     | 
    
         
            -
                ]
         
     | 
| 
       74 
     | 
    
         
            -
              },
         
     | 
| 
       75 
     | 
    
         
            -
              "gitHead": "e6a7fd8a655c69780bc20b9749c2699e44beae16"
         
     | 
| 
      
 47 
     | 
    
         
            +
              }
         
     | 
| 
       76 
48 
     | 
    
         
             
            }
         
     | 
    
        package/shim.d.ts
    ADDED
    
    
    
        package/shim.js
    ADDED
    
    | 
         @@ -0,0 +1 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            module.exports = require('storybook/internal/preview-api');
         
     | 
    
        package/shim.mjs
    ADDED
    
    | 
         @@ -0,0 +1 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            export * from 'storybook/internal/preview-api';
         
     | 
    
        package/README.md
    DELETED
    
    | 
         @@ -1,12 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            # Preview API
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
            TODO write proper documentation of this package
         
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
       5 
     | 
    
         
            -
            # "Sub packages" README documents
         
     | 
| 
       6 
     | 
    
         
            -
             
     | 
| 
       7 
     | 
    
         
            -
            This package used to be multiple packages (they have been combined into this one):
         
     | 
| 
       8 
     | 
    
         
            -
             
     | 
| 
       9 
     | 
    
         
            -
            - `@storybook/addons` [read (old) docs](./README-addons.md)
         
     | 
| 
       10 
     | 
    
         
            -
            - `@storybook/core-client` [read (old) docs](./README-core-client.md)
         
     | 
| 
       11 
     | 
    
         
            -
            - `@storybook/preview-web` [read (old) docs](./README-preview-web.md)
         
     | 
| 
       12 
     | 
    
         
            -
            - `@storybook/store` [read (old) docs](./README-store.md)
         
     |