@storybook/react 11.0.0-rc.0 → 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.
@@ -18,7 +18,6 @@ __export(entry_preview_exports, {
18
18
  });
19
19
  import * as React4 from "react";
20
20
  import { Tag } from "storybook/internal/preview-api";
21
- import { global as global2 } from "@storybook/global";
22
21
  import { configure } from "storybook/test";
23
22
 
24
23
  // src/act-compat.ts
@@ -102,8 +101,7 @@ var render = (args, context) => {
102
101
 
103
102
  // src/renderToCanvas.tsx
104
103
  import React3, { Fragment, Component as ReactComponent, StrictMode } from "react";
105
- import { global } from "@storybook/global";
106
- var { FRAMEWORK_OPTIONS } = global, ErrorBoundary = class extends ReactComponent {
104
+ var { FRAMEWORK_OPTIONS } = globalThis, ErrorBoundary = class extends ReactComponent {
107
105
  constructor() {
108
106
  super(...arguments);
109
107
  this.state = { hasError: !1 };
@@ -181,7 +179,7 @@ var decorators = [
181
179
  return React4.createElement(React4.Suspense, null, story());
182
180
  },
183
181
  (story, context) => {
184
- if (context.tags?.includes(Tag.TEST_FN) && !global2.FEATURES?.experimentalTestSyntax)
182
+ if (context.tags?.includes(Tag.TEST_FN) && !globalThis.FEATURES?.experimentalTestSyntax)
185
183
  throw new Error(
186
184
  "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"
187
185
  );
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  entry_preview_exports
3
- } from "./chunk-I62VTYU3.js";
3
+ } from "./chunk-MB4PPIXP.js";
4
4
  import {
5
5
  entry_preview_argtypes_exports
6
6
  } from "./chunk-WWHCZJWM.js";
@@ -1,4 +1,4 @@
1
- import { createRequire as CJS_COMPAT_CREATE_REQUIRE_irrednmjp7d } from "node:module";var require = CJS_COMPAT_CREATE_REQUIRE_irrednmjp7d(import.meta.url);
1
+ import { createRequire as CJS_COMPAT_CREATE_REQUIRE_juebbzyx8w } from "node:module";var require = CJS_COMPAT_CREATE_REQUIRE_juebbzyx8w(import.meta.url);
2
2
  var __create = Object.create;
3
3
  var __defProp = Object.defineProperty;
4
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -5,7 +5,7 @@ import {
5
5
  parameters,
6
6
  render,
7
7
  renderToCanvas
8
- } from "./_browser-chunks/chunk-I62VTYU3.js";
8
+ } from "./_browser-chunks/chunk-MB4PPIXP.js";
9
9
  import {
10
10
  applyDecorators
11
11
  } from "./_browser-chunks/chunk-DDIRQRCA.js";
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  __definePreview
3
- } from "./_browser-chunks/chunk-LK5PKCYS.js";
3
+ } from "./_browser-chunks/chunk-RHGZ5MD3.js";
4
4
  import {
5
5
  entry_preview_exports,
6
6
  renderToCanvas
7
- } from "./_browser-chunks/chunk-I62VTYU3.js";
7
+ } from "./_browser-chunks/chunk-MB4PPIXP.js";
8
8
  import {
9
9
  entry_preview_argtypes_exports
10
10
  } from "./_browser-chunks/chunk-WWHCZJWM.js";
@@ -14,9 +14,7 @@ import "./_browser-chunks/chunk-B3FR4PBN.js";
14
14
  import "./_browser-chunks/chunk-UAWMPV5J.js";
15
15
 
16
16
  // src/globals.ts
17
- import { global } from "@storybook/global";
18
- var { window: globalWindow } = global;
19
- globalWindow && (globalWindow.STORYBOOK_ENV = "react");
17
+ globalThis.STORYBOOK_ENV = "react";
20
18
 
21
19
  // src/portable-stories.tsx
22
20
  import * as React from "react";
package/dist/preview.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  __definePreview
3
- } from "./_browser-chunks/chunk-LK5PKCYS.js";
4
- import "./_browser-chunks/chunk-I62VTYU3.js";
3
+ } from "./_browser-chunks/chunk-RHGZ5MD3.js";
4
+ import "./_browser-chunks/chunk-MB4PPIXP.js";
5
5
  import "./_browser-chunks/chunk-WWHCZJWM.js";
6
6
  import "./_browser-chunks/chunk-XQNZ5YRO.js";
7
7
  import "./_browser-chunks/chunk-DDIRQRCA.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/react",
3
- "version": "11.0.0-rc.0",
3
+ "version": "11.0.0-rc.1",
4
4
  "description": "Storybook React renderer",
5
5
  "keywords": [
6
6
  "storybook"
@@ -52,11 +52,8 @@
52
52
  "*.d.ts",
53
53
  "!src/**/*"
54
54
  ],
55
- "dependencies": {
56
- "@storybook/global": "^5.0.0"
57
- },
58
55
  "devDependencies": {
59
- "@storybook/component-meta-typescript": "11.0.0-rc.0",
56
+ "@storybook/component-meta-typescript": "11.0.0-rc.1",
60
57
  "@types/babel-plugin-react-docgen": "^4.2.3",
61
58
  "@types/escodegen": "^0.0.6",
62
59
  "@types/estree": "^1.0.6",
@@ -90,7 +87,7 @@
90
87
  "react-docgen": "^8.0.2",
91
88
  "react-docgen-typescript": "^2.2.2",
92
89
  "react-dom": "^18.0.0 || ^19.0.0",
93
- "storybook": "^11.0.0-rc.0",
90
+ "storybook": "^11.0.0-rc.1",
94
91
  "typescript": "^5.9.0 || ^6.0.0 || ^7.0.0"
95
92
  },
96
93
  "peerDependenciesMeta": {
@@ -1,5 +1,3 @@
1
- import { global as globalThis } from '@storybook/global';
2
-
3
1
  import { Button } from './Button.jsx';
4
2
  import { Form } from './Form.jsx';
5
3
  import { Html } from './Html.jsx';