@storybook/experimental-nextjs-vite 0.0.0-pr-30371-sha-07dc4675 → 0.0.0-pr-30197-sha-a3d613d5
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +5 -26
- package/dist/node/index.d.ts +8 -0
- package/dist/node/index.js +1 -0
- package/dist/node/index.mjs +5 -0
- package/dist/types-5e52b38d.d.ts +27 -0
- package/package.json +14 -7
package/dist/index.d.ts
CHANGED
@@ -1,30 +1,9 @@
|
|
1
1
|
import vitePluginStorybookNextJs from 'vite-plugin-storybook-nextjs';
|
2
|
-
|
3
|
-
import {
|
4
|
-
import { StorybookConfig as StorybookConfig$1 } from '@storybook/react-vite';
|
2
|
+
export { F as FrameworkOptions, S as StorybookConfig } from './types-5e52b38d.js';
|
3
|
+
import { NamedOrDefaultProjectAnnotations, NormalizedProjectAnnotations, Args, StoryAnnotationsOrFn, ProjectAnnotations, ComposedStoryFn, Store_CSFExports, StoriesWithPartialProps } from 'storybook/internal/types';
|
5
4
|
import { ReactRenderer, Meta } from '@storybook/react';
|
6
|
-
|
7
|
-
|
8
|
-
type BuilderName = CompatibleString<'@storybook/builder-vite'>;
|
9
|
-
type FrameworkOptions = {
|
10
|
-
/** The path to the Next.js configuration file. */
|
11
|
-
nextConfigPath?: string;
|
12
|
-
builder?: BuilderOptions;
|
13
|
-
};
|
14
|
-
type StorybookConfigFramework = {
|
15
|
-
framework: FrameworkName | {
|
16
|
-
name: FrameworkName;
|
17
|
-
options: FrameworkOptions;
|
18
|
-
};
|
19
|
-
core?: StorybookConfig$1['core'] & {
|
20
|
-
builder?: BuilderName | {
|
21
|
-
name: BuilderName;
|
22
|
-
options: BuilderOptions;
|
23
|
-
};
|
24
|
-
};
|
25
|
-
};
|
26
|
-
/** The interface for Storybook configuration in `main.ts` files. */
|
27
|
-
type StorybookConfig = Omit<StorybookConfig$1, keyof StorybookConfigFramework> & StorybookConfigFramework;
|
5
|
+
import '@storybook/builder-vite';
|
6
|
+
import '@storybook/react-vite';
|
28
7
|
|
29
8
|
/**
|
30
9
|
* Function that sets the globalConfig of your storybook. The global config is the preview module of
|
@@ -108,4 +87,4 @@ declare module '@storybook/experimental-nextjs-vite/vite-plugin' {
|
|
108
87
|
const storybookNextJsPlugin: typeof vitePluginStorybookNextJs;
|
109
88
|
}
|
110
89
|
|
111
|
-
export {
|
90
|
+
export { composeStories, composeStory, setProjectAnnotations };
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { S as StorybookConfig } from '../types-5e52b38d.js';
|
2
|
+
import 'storybook/internal/types';
|
3
|
+
import '@storybook/builder-vite';
|
4
|
+
import '@storybook/react-vite';
|
5
|
+
|
6
|
+
declare function defineMain(config: StorybookConfig): StorybookConfig;
|
7
|
+
|
8
|
+
export { defineMain };
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod);var node_exports={};__export(node_exports,{defineMain:()=>defineMain});module.exports=__toCommonJS(node_exports);function defineMain(config){return config}0&&(module.exports={defineMain});
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { CompatibleString } from 'storybook/internal/types';
|
2
|
+
import { BuilderOptions } from '@storybook/builder-vite';
|
3
|
+
import { StorybookConfig as StorybookConfig$1 } from '@storybook/react-vite';
|
4
|
+
|
5
|
+
type FrameworkName = CompatibleString<'@storybook/experimental-nextjs-vite'>;
|
6
|
+
type BuilderName = CompatibleString<'@storybook/builder-vite'>;
|
7
|
+
type FrameworkOptions = {
|
8
|
+
/** The path to the Next.js configuration file. */
|
9
|
+
nextConfigPath?: string;
|
10
|
+
builder?: BuilderOptions;
|
11
|
+
};
|
12
|
+
type StorybookConfigFramework = {
|
13
|
+
framework: FrameworkName | {
|
14
|
+
name: FrameworkName;
|
15
|
+
options: FrameworkOptions;
|
16
|
+
};
|
17
|
+
core?: StorybookConfig$1['core'] & {
|
18
|
+
builder?: BuilderName | {
|
19
|
+
name: BuilderName;
|
20
|
+
options: BuilderOptions;
|
21
|
+
};
|
22
|
+
};
|
23
|
+
};
|
24
|
+
/** The interface for Storybook configuration in `main.ts` files. */
|
25
|
+
type StorybookConfig = Omit<StorybookConfig$1, keyof StorybookConfigFramework> & StorybookConfigFramework;
|
26
|
+
|
27
|
+
export { FrameworkOptions as F, StorybookConfig as S };
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@storybook/experimental-nextjs-vite",
|
3
|
-
"version": "0.0.0-pr-
|
3
|
+
"version": "0.0.0-pr-30197-sha-a3d613d5",
|
4
4
|
"description": "Storybook for Next.js and Vite",
|
5
5
|
"keywords": [
|
6
6
|
"storybook",
|
@@ -58,6 +58,12 @@
|
|
58
58
|
"import": "./dist/vite-plugin/index.mjs",
|
59
59
|
"require": "./dist/vite-plugin/index.js"
|
60
60
|
},
|
61
|
+
"./node": {
|
62
|
+
"types": "./dist/node/index.d.ts",
|
63
|
+
"node": "./dist/node/index.js",
|
64
|
+
"import": "./dist/node/index.mjs",
|
65
|
+
"require": "./dist/node/index.js"
|
66
|
+
},
|
61
67
|
"./package.json": "./package.json"
|
62
68
|
},
|
63
69
|
"main": "dist/index.js",
|
@@ -95,10 +101,10 @@
|
|
95
101
|
"prep": "jiti ../../../scripts/prepare/bundle.ts"
|
96
102
|
},
|
97
103
|
"dependencies": {
|
98
|
-
"@storybook/builder-vite": "0.0.0-pr-
|
99
|
-
"@storybook/react": "0.0.0-pr-
|
100
|
-
"@storybook/react-vite": "0.0.0-pr-
|
101
|
-
"@storybook/test": "0.0.0-pr-
|
104
|
+
"@storybook/builder-vite": "0.0.0-pr-30197-sha-a3d613d5",
|
105
|
+
"@storybook/react": "0.0.0-pr-30197-sha-a3d613d5",
|
106
|
+
"@storybook/react-vite": "0.0.0-pr-30197-sha-a3d613d5",
|
107
|
+
"@storybook/test": "0.0.0-pr-30197-sha-a3d613d5",
|
102
108
|
"styled-jsx": "5.1.6",
|
103
109
|
"vite-plugin-storybook-nextjs": "^1.1.0"
|
104
110
|
},
|
@@ -108,11 +114,11 @@
|
|
108
114
|
"typescript": "^5.3.2"
|
109
115
|
},
|
110
116
|
"peerDependencies": {
|
111
|
-
"@storybook/test": "0.0.0-pr-
|
117
|
+
"@storybook/test": "0.0.0-pr-30197-sha-a3d613d5",
|
112
118
|
"next": "^14.1.0 || ^15.0.0",
|
113
119
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta",
|
114
120
|
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta",
|
115
|
-
"storybook": "^0.0.0-pr-
|
121
|
+
"storybook": "^0.0.0-pr-30197-sha-a3d613d5",
|
116
122
|
"vite": "^5.0.0 || ^6.0.0"
|
117
123
|
},
|
118
124
|
"peerDependenciesMeta": {
|
@@ -134,6 +140,7 @@
|
|
134
140
|
"./src/index.ts",
|
135
141
|
"./src/vite-plugin/index.ts",
|
136
142
|
"./src/preset.ts",
|
143
|
+
"./src/node/index.ts",
|
137
144
|
"./src/preview.tsx",
|
138
145
|
"./src/export-mocks/cache/index.ts",
|
139
146
|
"./src/export-mocks/headers/index.ts",
|