@storybook/react 11.0.0-beta.0 → 11.0.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.
Files changed (32) hide show
  1. package/dist/_browser-chunks/{chunk-7QIM3PHH.js → chunk-6MBKXM7O.js} +1 -1
  2. package/dist/_browser-chunks/{chunk-EZD3TIPB.js → chunk-I62VTYU3.js} +17 -4
  3. package/dist/_node-chunks/{chunk-27VFNEPI.js → chunk-37XDLJI5.js} +6788 -15249
  4. package/dist/_node-chunks/chunk-FCIBS77S.js +61 -0
  5. package/dist/_node-chunks/chunk-FUHORIY7.js +1395 -0
  6. package/dist/_node-chunks/chunk-GQOGANUK.js +35 -0
  7. package/dist/_node-chunks/chunk-IYZUDUNZ.js +1674 -0
  8. package/dist/_node-chunks/chunk-PPFRYFMF.js +57 -0
  9. package/dist/_node-chunks/chunk-RVHW3VEA.js +63 -0
  10. package/dist/_node-chunks/chunk-U53ZMSA3.js +5442 -0
  11. package/dist/_node-chunks/chunk-YNIH7TZQ.js +93 -0
  12. package/dist/_node-chunks/extractArgTypesFromComponentFile-EQEZZAHL.js +42 -0
  13. package/dist/_node-chunks/extractReactDocgenInfo-COAPYCG6.js +59 -0
  14. package/dist/_node-chunks/extractReactTypescriptDocgenInfo-7FFDIBEA.js +105 -0
  15. package/dist/_node-chunks/reactDocgen-6ZJPM2YE.js +26 -0
  16. package/dist/builder-docgen.d.ts +51 -0
  17. package/dist/builder-docgen.js +24 -0
  18. package/dist/{chunk-DwM7QKaD.d.ts → chunk-6b3AvPEC.d.ts} +66 -1
  19. package/dist/docgen/docgen-worker.js +15 -83
  20. package/dist/entry-preview.js +1 -1
  21. package/dist/index.d.ts +2 -2
  22. package/dist/index.js +2 -2
  23. package/dist/preset.js +59 -1353
  24. package/dist/preview.d.ts +1 -1
  25. package/dist/preview.js +2 -2
  26. package/package.json +18 -5
  27. package/template/cli/js/Button.stories.js +11 -10
  28. package/template/cli/js/Header.stories.js +6 -5
  29. package/template/cli/js/Page.stories.js +6 -5
  30. package/template/cli/ts/Button.stories.ts +11 -14
  31. package/template/cli/ts/Header.stories.ts +6 -9
  32. package/template/cli/ts/Page.stories.ts +6 -9
@@ -0,0 +1,61 @@
1
+ import CJS_COMPAT_NODE_URL_19uq4gz0tcr from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_19uq4gz0tcr from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_19uq4gz0tcr from "node:module";
4
+
5
+ var __filename = CJS_COMPAT_NODE_URL_19uq4gz0tcr.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_19uq4gz0tcr.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_19uq4gz0tcr.createRequire(import.meta.url);
8
+
9
+ // ------------------------------------------------------------
10
+ // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
+ // ------------------------------------------------------------
12
+ import {
13
+ __commonJS
14
+ } from "./chunk-RVHW3VEA.js";
15
+
16
+ // ../../../node_modules/ts-dedent/dist/index.js
17
+ var require_dist = __commonJS({
18
+ "../../../node_modules/ts-dedent/dist/index.js"(exports) {
19
+ "use strict";
20
+ Object.defineProperty(exports, "__esModule", { value: !0 });
21
+ exports.dedent = void 0;
22
+ function dedent(templ) {
23
+ for (var values = [], _i = 1; _i < arguments.length; _i++)
24
+ values[_i - 1] = arguments[_i];
25
+ var strings = Array.from(typeof templ == "string" ? [templ] : templ);
26
+ strings[strings.length - 1] = strings[strings.length - 1].replace(/\r?\n([\t ]*)$/, "");
27
+ var indentLengths = strings.reduce(function(arr, str) {
28
+ var matches = str.match(/\n([\t ]+|(?!\s).)/g);
29
+ return matches ? arr.concat(matches.map(function(match) {
30
+ var _a, _b;
31
+ return (_b = (_a = match.match(/[\t ]/g)) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0;
32
+ })) : arr;
33
+ }, []);
34
+ if (indentLengths.length) {
35
+ var pattern_1 = new RegExp(`
36
+ [ ]{` + Math.min.apply(Math, indentLengths) + "}", "g");
37
+ strings = strings.map(function(str) {
38
+ return str.replace(pattern_1, `
39
+ `);
40
+ });
41
+ }
42
+ strings[0] = strings[0].replace(/^\r?\n/, "");
43
+ var string = strings[0];
44
+ return values.forEach(function(value, i) {
45
+ var endentations = string.match(/(?:^|\n)( *)$/), endentation = endentations ? endentations[1] : "", indentedValue = value;
46
+ typeof value == "string" && value.includes(`
47
+ `) && (indentedValue = String(value).split(`
48
+ `).map(function(str, i2) {
49
+ return i2 === 0 ? str : "" + endentation + str;
50
+ }).join(`
51
+ `)), string += indentedValue + strings[i + 1];
52
+ }), string;
53
+ }
54
+ exports.dedent = dedent;
55
+ exports.default = dedent;
56
+ }
57
+ });
58
+
59
+ export {
60
+ require_dist
61
+ };