@storybook/nextjs 11.0.0-beta.5 → 11.0.0-rc.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/dist/index.js +12 -20
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -4005,13 +4005,13 @@ var require_acorn = __commonJS({
|
|
|
4005
4005
|
this.scopeStack.push(new Scope(flags));
|
|
4006
4006
|
}, pp$5.exitScope = function() {
|
|
4007
4007
|
this.scopeStack.pop();
|
|
4008
|
-
}, pp$5.treatFunctionsAsVarInScope = function(
|
|
4009
|
-
return
|
|
4008
|
+
}, pp$5.treatFunctionsAsVarInScope = function(scope) {
|
|
4009
|
+
return scope.flags & SCOPE_FUNCTION || !this.inModule && scope.flags & SCOPE_TOP;
|
|
4010
4010
|
}, pp$5.declareName = function(name, bindingType, pos) {
|
|
4011
4011
|
var redeclared = !1;
|
|
4012
4012
|
if (bindingType === BIND_LEXICAL) {
|
|
4013
|
-
var
|
|
4014
|
-
redeclared =
|
|
4013
|
+
var scope = this.currentScope();
|
|
4014
|
+
redeclared = scope.lexical.indexOf(name) > -1 || scope.functions.indexOf(name) > -1 || scope.var.indexOf(name) > -1, scope.lexical.push(name), this.inModule && scope.flags & SCOPE_TOP && delete this.undefinedExports[name];
|
|
4015
4015
|
} else if (bindingType === BIND_SIMPLE_CATCH) {
|
|
4016
4016
|
var scope$1 = this.currentScope();
|
|
4017
4017
|
scope$1.lexical.push(name);
|
|
@@ -4035,15 +4035,15 @@ var require_acorn = __commonJS({
|
|
|
4035
4035
|
return this.scopeStack[this.scopeStack.length - 1];
|
|
4036
4036
|
}, pp$5.currentVarScope = function() {
|
|
4037
4037
|
for (var i = this.scopeStack.length - 1; ; i--) {
|
|
4038
|
-
var
|
|
4039
|
-
if (
|
|
4040
|
-
return
|
|
4038
|
+
var scope = this.scopeStack[i];
|
|
4039
|
+
if (scope.flags & SCOPE_VAR)
|
|
4040
|
+
return scope;
|
|
4041
4041
|
}
|
|
4042
4042
|
}, pp$5.currentThisScope = function() {
|
|
4043
4043
|
for (var i = this.scopeStack.length - 1; ; i--) {
|
|
4044
|
-
var
|
|
4045
|
-
if (
|
|
4046
|
-
return
|
|
4044
|
+
var scope = this.scopeStack[i];
|
|
4045
|
+
if (scope.flags & SCOPE_VAR && !(scope.flags & SCOPE_ARROW))
|
|
4046
|
+
return scope;
|
|
4047
4047
|
}
|
|
4048
4048
|
};
|
|
4049
4049
|
var Node = function(parser, pos, loc) {
|
|
@@ -6200,14 +6200,6 @@ __export(entry_preview_exports, {
|
|
|
6200
6200
|
});
|
|
6201
6201
|
import * as React5 from "react";
|
|
6202
6202
|
import { Tag } from "storybook/internal/preview-api";
|
|
6203
|
-
|
|
6204
|
-
// ../../../node_modules/@storybook/global/dist/index.mjs
|
|
6205
|
-
var scope = (() => {
|
|
6206
|
-
let win;
|
|
6207
|
-
return typeof window < "u" ? win = window : typeof globalThis < "u" ? win = globalThis : typeof global < "u" ? win = global : typeof self < "u" ? win = self : win = {}, win;
|
|
6208
|
-
})();
|
|
6209
|
-
|
|
6210
|
-
// ../../renderers/react/src/entry-preview.tsx
|
|
6211
6203
|
import { configure } from "storybook/test";
|
|
6212
6204
|
|
|
6213
6205
|
// ../../renderers/react/src/act-compat.ts
|
|
@@ -6291,7 +6283,7 @@ var render = (args, context) => {
|
|
|
6291
6283
|
|
|
6292
6284
|
// ../../renderers/react/src/renderToCanvas.tsx
|
|
6293
6285
|
import React3, { Fragment, Component as ReactComponent, StrictMode } from "react";
|
|
6294
|
-
var { FRAMEWORK_OPTIONS } =
|
|
6286
|
+
var { FRAMEWORK_OPTIONS } = globalThis, ErrorBoundary = class extends ReactComponent {
|
|
6295
6287
|
constructor() {
|
|
6296
6288
|
super(...arguments);
|
|
6297
6289
|
this.state = { hasError: !1 };
|
|
@@ -6374,7 +6366,7 @@ var decorators = [
|
|
|
6374
6366
|
return React5.createElement(React5.Suspense, null, story());
|
|
6375
6367
|
},
|
|
6376
6368
|
(story, context) => {
|
|
6377
|
-
if (context.tags?.includes(Tag.TEST_FN) && !
|
|
6369
|
+
if (context.tags?.includes(Tag.TEST_FN) && !globalThis.FEATURES?.experimentalTestSyntax)
|
|
6378
6370
|
throw new Error(
|
|
6379
6371
|
"To use the experimental test function, you must enable the experimentalTestSyntax feature flag. See https://storybook.js.org/docs/api/main-config/main-config-features#experimentaltestsyntax"
|
|
6380
6372
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/nextjs",
|
|
3
|
-
"version": "11.0.0-
|
|
3
|
+
"version": "11.0.0-rc.1",
|
|
4
4
|
"description": "Storybook for Next.js: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -101,9 +101,9 @@
|
|
|
101
101
|
"@babel/preset-typescript": "^7.28.5",
|
|
102
102
|
"@babel/runtime": "^7.28.4",
|
|
103
103
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
|
|
104
|
-
"@storybook/builder-webpack5": "11.0.0-
|
|
105
|
-
"@storybook/preset-react-webpack": "11.0.0-
|
|
106
|
-
"@storybook/react": "11.0.0-
|
|
104
|
+
"@storybook/builder-webpack5": "11.0.0-rc.1",
|
|
105
|
+
"@storybook/preset-react-webpack": "11.0.0-rc.1",
|
|
106
|
+
"@storybook/react": "11.0.0-rc.1",
|
|
107
107
|
"@types/semver": "^7.7.1",
|
|
108
108
|
"babel-loader": "^9.1.3",
|
|
109
109
|
"browserify-zlib": "^0.2.0",
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
"react-docgen": "^8.0.2",
|
|
149
149
|
"react-docgen-typescript": "^2.2.2",
|
|
150
150
|
"react-dom": "^18.0.0 || ^19.0.0",
|
|
151
|
-
"storybook": "^11.0.0-
|
|
151
|
+
"storybook": "^11.0.0-rc.1",
|
|
152
152
|
"typescript": "^5.9.0 || ^6.0.0 || ^7.0.0",
|
|
153
153
|
"webpack": "^5.0.0"
|
|
154
154
|
},
|