storybook 9.1.0-alpha.4 → 9.1.0-alpha.6
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/bin/index.cjs +62 -69
- package/dist/bin/index.js +43 -50
- package/dist/cli/bin/index.cjs +604 -604
- package/dist/cli/bin/index.js +151 -150
- package/dist/cli/index.cjs +13787 -13796
- package/dist/cli/index.d.ts +706 -15
- package/dist/cli/index.js +12363 -12371
- package/dist/common/index.cjs +10988 -10891
- package/dist/common/index.d.ts +342 -69
- package/dist/common/index.js +24631 -24531
- package/dist/components/index.cjs +5 -3
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.js +5 -3
- package/dist/controls/preview.cjs +14 -14
- package/dist/controls/preview.d.ts +1 -1
- package/dist/controls/preview.js +2 -2
- package/dist/core-server/index.cjs +4838 -4791
- package/dist/core-server/index.d.ts +10 -1
- package/dist/core-server/index.js +5746 -5699
- package/dist/core-server/presets/common-manager.js +46 -32
- package/dist/core-server/presets/common-preset.cjs +1047 -1045
- package/dist/core-server/presets/common-preset.js +2053 -2048
- package/dist/csf/index.d.ts +2 -1
- package/dist/csf-tools/index.cjs +226 -224
- package/dist/csf-tools/index.js +116 -112
- package/dist/manager/globals-runtime.js +6 -4
- package/dist/manager-api/index.cjs +73 -73
- package/dist/manager-api/index.js +140 -140
- package/dist/node-logger/index.cjs +8520 -994
- package/dist/node-logger/index.d.ts +395 -2
- package/dist/node-logger/index.js +8535 -995
- package/dist/server-errors.cjs +201 -242
- package/dist/server-errors.d.ts +1 -12
- package/dist/server-errors.js +182 -223
- package/dist/telemetry/index.cjs +1326 -1325
- package/dist/telemetry/index.d.ts +3 -2
- package/dist/telemetry/index.js +1217 -1214
- package/dist/types/index.d.ts +3 -3
- package/package.json +18 -9
|
@@ -22081,12 +22081,14 @@ function lS({
|
|
|
22081
22081
|
width: t,
|
|
22082
22082
|
height: r,
|
|
22083
22083
|
onEscapeKeyDown: n,
|
|
22084
|
-
onInteractOutside: a = /* @__PURE__ */ o((
|
|
22084
|
+
onInteractOutside: a = /* @__PURE__ */ o((u) => u.preventDefault(), "onInteractOutside"),
|
|
22085
22085
|
className: l,
|
|
22086
22086
|
container: c,
|
|
22087
|
-
|
|
22087
|
+
portalSelector: s,
|
|
22088
|
+
...f
|
|
22088
22089
|
}) {
|
|
22089
|
-
|
|
22090
|
+
let u = c ?? (s ? document.querySelector(s) : null) ?? document.body;
|
|
22091
|
+
return /* @__PURE__ */ wr.default.createElement($0, { ...f }, /* @__PURE__ */ wr.default.createElement(W0, { container: u }, /* @__PURE__ */ wr.default.
|
|
22090
22092
|
createElement(U0, { asChild: !0 }, /* @__PURE__ */ wr.default.createElement(K0, null)), /* @__PURE__ */ wr.default.createElement(
|
|
22091
22093
|
G0,
|
|
22092
22094
|
{
|
|
@@ -517,8 +517,9 @@ interface ModalProps extends Omit<React__default.ComponentProps<typeof Root>, 'c
|
|
|
517
517
|
onInteractOutside?: ContentProps['onInteractOutside'];
|
|
518
518
|
className?: string;
|
|
519
519
|
container?: HTMLElement;
|
|
520
|
+
portalSelector?: string;
|
|
520
521
|
}
|
|
521
|
-
declare function BaseModal({ children, width, height, onEscapeKeyDown, onInteractOutside, className, container, ...rootProps }: ModalProps): React__default.JSX.Element;
|
|
522
|
+
declare function BaseModal({ children, width, height, onEscapeKeyDown, onInteractOutside, className, container, portalSelector, ...rootProps }: ModalProps): React__default.JSX.Element;
|
|
522
523
|
declare const Modal: typeof BaseModal & typeof Components & {
|
|
523
524
|
Dialog: typeof Dialog$1;
|
|
524
525
|
};
|
package/dist/components/index.js
CHANGED
|
@@ -11307,12 +11307,14 @@ function Nv({
|
|
|
11307
11307
|
width: t,
|
|
11308
11308
|
height: r,
|
|
11309
11309
|
onEscapeKeyDown: n,
|
|
11310
|
-
onInteractOutside: a = /* @__PURE__ */ o((
|
|
11310
|
+
onInteractOutside: a = /* @__PURE__ */ o((u) => u.preventDefault(), "onInteractOutside"),
|
|
11311
11311
|
className: i,
|
|
11312
11312
|
container: c,
|
|
11313
|
-
|
|
11313
|
+
portalSelector: l,
|
|
11314
|
+
...s
|
|
11314
11315
|
}) {
|
|
11315
|
-
|
|
11316
|
+
let u = c ?? (l ? document.querySelector(l) : null) ?? document.body;
|
|
11317
|
+
return /* @__PURE__ */ zr.createElement(n0, { ...s }, /* @__PURE__ */ zr.createElement(o0, { container: u }, /* @__PURE__ */ zr.createElement(
|
|
11316
11318
|
a0, { asChild: !0 }, /* @__PURE__ */ zr.createElement(f0, null)), /* @__PURE__ */ zr.createElement(
|
|
11317
11319
|
i0,
|
|
11318
11320
|
{
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
for (var
|
|
8
|
-
|
|
9
|
-
},
|
|
2
|
+
var r = Object.defineProperty;
|
|
3
|
+
var n = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var d = Object.getOwnPropertyNames;
|
|
5
|
+
var f = Object.prototype.hasOwnProperty;
|
|
6
|
+
var i = (o, e) => {
|
|
7
|
+
for (var p in e)
|
|
8
|
+
r(o, p, { get: e[p], enumerable: !0 });
|
|
9
|
+
}, l = (o, e, p, s) => {
|
|
10
10
|
if (e && typeof e == "object" || typeof e == "function")
|
|
11
|
-
for (let
|
|
12
|
-
!
|
|
11
|
+
for (let t of d(e))
|
|
12
|
+
!f.call(o, t) && t !== p && r(o, t, { get: () => e[t], enumerable: !(s = n(e, t)) || s.enumerable });
|
|
13
13
|
return o;
|
|
14
14
|
};
|
|
15
|
-
var
|
|
15
|
+
var m = (o) => l(r({}, "__esModule", { value: !0 }), o);
|
|
16
16
|
|
|
17
17
|
// src/controls/preview.ts
|
|
18
18
|
var T = {};
|
|
19
|
-
|
|
19
|
+
i(T, {
|
|
20
20
|
default: () => C
|
|
21
21
|
});
|
|
22
|
-
module.exports =
|
|
23
|
-
var
|
|
22
|
+
module.exports = m(T);
|
|
23
|
+
var y = require("storybook/internal/csf"), C = (0, y.definePreviewAddon)({
|
|
24
24
|
// Controls addon doesn't need any preview-side configuration
|
|
25
25
|
// It operates entirely through the manager UI
|
|
26
26
|
});
|
package/dist/controls/preview.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// src/controls/preview.ts
|
|
2
2
|
import { definePreviewAddon as e } from "storybook/internal/csf";
|
|
3
|
-
var
|
|
3
|
+
var t = e({
|
|
4
4
|
// Controls addon doesn't need any preview-side configuration
|
|
5
5
|
// It operates entirely through the manager UI
|
|
6
6
|
});
|
|
7
7
|
export {
|
|
8
|
-
|
|
8
|
+
t as default
|
|
9
9
|
};
|