@storybook/react 11.0.0-beta.0 → 11.0.0-beta.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.
Files changed (37) hide show
  1. package/dist/_browser-chunks/{chunk-2TQVKMJE.js → chunk-EA5DV32Q.js} +36 -1
  2. package/dist/_browser-chunks/{chunk-EZD3TIPB.js → chunk-I62VTYU3.js} +17 -4
  3. package/dist/_browser-chunks/{chunk-7QIM3PHH.js → chunk-U7XUEUFQ.js} +3 -3
  4. package/dist/_browser-chunks/{chunk-LGSTPTL6.js → chunk-WWHCZJWM.js} +10 -9
  5. package/dist/_node-chunks/{chunk-27VFNEPI.js → chunk-2DNUEB5U.js} +6798 -15258
  6. package/dist/_node-chunks/chunk-ASUAJQT5.js +63 -0
  7. package/dist/_node-chunks/chunk-BWU7O3KC.js +61 -0
  8. package/dist/_node-chunks/chunk-DW2HJ23M.js +1674 -0
  9. package/dist/_node-chunks/chunk-PXKXGEPO.js +6643 -0
  10. package/dist/_node-chunks/chunk-QRCEILHM.js +93 -0
  11. package/dist/_node-chunks/chunk-TP7UUO2M.js +18 -0
  12. package/dist/_node-chunks/chunk-VQBUQHU3.js +33 -0
  13. package/dist/_node-chunks/chunk-XIFLZILW.js +65 -0
  14. package/dist/_node-chunks/chunk-XQPV7U3R.js +1395 -0
  15. package/dist/_node-chunks/extractArgTypesFromComponentFile-PKEIPQGN.js +44 -0
  16. package/dist/_node-chunks/extractReactDocgenInfo-J6CKNSQN.js +59 -0
  17. package/dist/_node-chunks/extractReactTypescriptDocgenInfo-AJTC3KA3.js +105 -0
  18. package/dist/_node-chunks/reactDocgen-YAGNM6ZQ.js +26 -0
  19. package/dist/builder-docgen.d.ts +51 -0
  20. package/dist/builder-docgen.js +25 -0
  21. package/dist/{chunk-DwM7QKaD.d.ts → chunk-6b3AvPEC.d.ts} +66 -1
  22. package/dist/docgen/docgen-worker.js +23 -87
  23. package/dist/entry-preview-argtypes.js +1 -1
  24. package/dist/entry-preview-docs.js +1 -1
  25. package/dist/entry-preview.js +1 -1
  26. package/dist/index.d.ts +2 -2
  27. package/dist/index.js +4 -4
  28. package/dist/preset.js +79 -1363
  29. package/dist/preview.d.ts +1 -1
  30. package/dist/preview.js +4 -4
  31. package/package.json +21 -6
  32. package/template/cli/js/Button.stories.js +11 -10
  33. package/template/cli/js/Header.stories.js +6 -5
  34. package/template/cli/js/Page.stories.js +6 -5
  35. package/template/cli/ts/Button.stories.ts +11 -14
  36. package/template/cli/ts/Header.stories.ts +6 -9
  37. package/template/cli/ts/Page.stories.ts +6 -9
@@ -0,0 +1,63 @@
1
+ import CJS_COMPAT_NODE_URL_0pbco1v5vos from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_0pbco1v5vos from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_0pbco1v5vos from "node:module";
4
+
5
+ var __filename = CJS_COMPAT_NODE_URL_0pbco1v5vos.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_0pbco1v5vos.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_0pbco1v5vos.createRequire(import.meta.url);
8
+
9
+ // ------------------------------------------------------------
10
+ // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
+ // ------------------------------------------------------------
12
+ var __create = Object.create;
13
+ var __defProp = Object.defineProperty;
14
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
15
+ var __getOwnPropNames = Object.getOwnPropertyNames;
16
+ var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
17
+ var __require = /* @__PURE__ */ ((x) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(x, {
18
+ get: (a, b) => (typeof require < "u" ? require : a)[b]
19
+ }) : x)(function(x) {
20
+ if (typeof require < "u") return require.apply(this, arguments);
21
+ throw Error('Dynamic require of "' + x + '" is not supported');
22
+ });
23
+ var __esm = (fn, res, err) => function() {
24
+ if (err) throw err[0];
25
+ try {
26
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
27
+ } catch (e) {
28
+ throw err = [e], e;
29
+ }
30
+ };
31
+ var __commonJS = (cb, mod) => function() {
32
+ try {
33
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
34
+ } catch (e) {
35
+ throw mod = 0, e;
36
+ }
37
+ };
38
+ var __export = (target, all) => {
39
+ for (var name in all)
40
+ __defProp(target, name, { get: all[name], enumerable: !0 });
41
+ }, __copyProps = (to, from, except, desc) => {
42
+ if (from && typeof from == "object" || typeof from == "function")
43
+ for (let key of __getOwnPropNames(from))
44
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
45
+ return to;
46
+ };
47
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
48
+ // If the importer is in node compatibility mode or this is not an ESM
49
+ // file that has been converted to a CommonJS file using a Babel-
50
+ // compatible transform (i.e. "__esModule" has not been set), then set
51
+ // "default" to the CommonJS "module.exports" for node compatibility.
52
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
53
+ mod
54
+ )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
55
+
56
+ export {
57
+ __require,
58
+ __esm,
59
+ __commonJS,
60
+ __export,
61
+ __toESM,
62
+ __toCommonJS
63
+ };
@@ -0,0 +1,61 @@
1
+ import CJS_COMPAT_NODE_URL_0pbco1v5vos from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_0pbco1v5vos from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_0pbco1v5vos from "node:module";
4
+
5
+ var __filename = CJS_COMPAT_NODE_URL_0pbco1v5vos.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_0pbco1v5vos.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_0pbco1v5vos.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-ASUAJQT5.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
+ };