@storybook/nextjs-vite 11.0.0-rc.0 → 11.0.0-rc.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.
@@ -1,4 +1,4 @@
1
- import { createRequire as CJS_COMPAT_CREATE_REQUIRE_lu7y55605sn } from "node:module";var require = CJS_COMPAT_CREATE_REQUIRE_lu7y55605sn(import.meta.url);
1
+ import { createRequire as CJS_COMPAT_CREATE_REQUIRE_xt79wnp7okp } from "node:module";var require = CJS_COMPAT_CREATE_REQUIRE_xt79wnp7okp(import.meta.url);
2
2
  var __create = Object.create;
3
3
  var __defProp = Object.defineProperty;
4
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
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(scope2) {
4009
- return scope2.flags & SCOPE_FUNCTION || !this.inModule && scope2.flags & SCOPE_TOP;
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 scope2 = this.currentScope();
4014
- redeclared = scope2.lexical.indexOf(name) > -1 || scope2.functions.indexOf(name) > -1 || scope2.var.indexOf(name) > -1, scope2.lexical.push(name), this.inModule && scope2.flags & SCOPE_TOP && delete this.undefinedExports[name];
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 scope2 = this.scopeStack[i];
4039
- if (scope2.flags & SCOPE_VAR)
4040
- return scope2;
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 scope2 = this.scopeStack[i];
4045
- if (scope2.flags & SCOPE_VAR && !(scope2.flags & SCOPE_ARROW))
4046
- return scope2;
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 } = scope, ErrorBoundary = class extends ReactComponent {
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) && !scope.FEATURES?.experimentalTestSyntax)
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-vite",
3
- "version": "11.0.0-rc.0",
3
+ "version": "11.0.0-rc.2",
4
4
  "description": "Storybook for Next.js and Vite: Develop, document, and test UI components in isolation",
5
5
  "keywords": [
6
6
  "storybook",
@@ -88,11 +88,11 @@
88
88
  "!src/**/*"
89
89
  ],
90
90
  "dependencies": {
91
- "@storybook/builder-vite": "11.0.0-rc.0",
92
- "@storybook/react": "11.0.0-rc.0",
93
- "@storybook/react-vite": "11.0.0-rc.0",
91
+ "@storybook/builder-vite": "11.0.0-rc.2",
92
+ "@storybook/react": "11.0.0-rc.2",
93
+ "@storybook/react-vite": "11.0.0-rc.2",
94
94
  "styled-jsx": "5.1.6",
95
- "vite-plugin-storybook-nextjs": "11.0.0-rc.0"
95
+ "vite-plugin-storybook-nextjs": "11.0.0-rc.2"
96
96
  },
97
97
  "devDependencies": {
98
98
  "@types/node": "^22.19.1",
@@ -111,7 +111,7 @@
111
111
  "react-docgen": "^8.0.2",
112
112
  "react-docgen-typescript": "^2.2.2",
113
113
  "react-dom": "^18.0.0 || ^19.0.0",
114
- "storybook": "^11.0.0-rc.0",
114
+ "storybook": "^11.0.0-rc.2",
115
115
  "typescript": "^5.9.0 || ^6.0.0 || ^7.0.0",
116
116
  "vite": "^6.3.0 || ^7.0.0 || ^8.0.0"
117
117
  },