storybook 10.0.0-beta.4 → 10.0.0-beta.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/assets/server/openBrowser.applescript +94 -0
- package/dist/_browser-chunks/Color-KPLIACXP.js +1569 -0
- package/dist/_browser-chunks/{WithTooltip-ERFLZL6W.js → WithTooltip-SK46ZJ2J.js} +1 -1
- package/dist/_browser-chunks/{chunk-YY5GICNT.js → chunk-6E2SHJSL.js} +175 -32
- package/dist/_browser-chunks/{chunk-MZNYTCNT.js → chunk-AM4PZYVQ.js} +10 -63
- package/dist/_browser-chunks/{chunk-EOILZP2R.js → chunk-BOOOPFZF.js} +7 -2
- package/dist/_browser-chunks/{chunk-YWDKX534.js → chunk-FA42P6MO.js} +49 -4
- package/dist/_browser-chunks/chunk-G33S6YM3.js +521 -0
- package/dist/_browser-chunks/chunk-GJ67EE65.js +67 -0
- package/dist/_browser-chunks/{chunk-4QPX7WIQ.js → chunk-JJZMHC3A.js} +57 -166
- package/dist/_browser-chunks/{chunk-MD2FTHCZ.js → chunk-JVSKG4YS.js} +3 -16
- package/dist/_browser-chunks/{chunk-E7VLET3C.js → chunk-KSCAWCCE.js} +3947 -4291
- package/dist/_browser-chunks/chunk-QK3L5AXO.js +372 -0
- package/dist/_browser-chunks/chunk-VUAFL5XK.js +20 -0
- package/dist/_browser-chunks/{chunk-T7RCAJIX.js → chunk-Y3M7TW6K.js} +43 -47
- package/dist/_browser-chunks/{chunk-PYK5ZTFK.js → chunk-YQV3EGQ5.js} +5 -5
- package/dist/_browser-chunks/{syntaxhighlighter-YYAA4CS4.js → syntaxhighlighter-RJW7FE3A.js} +3 -2
- package/dist/_node-chunks/{builder-manager-IKHPPPFE.js → builder-manager-V33CQT2M.js} +26 -151
- package/dist/_node-chunks/camelcase-BZ55OCHI.js +18 -0
- package/dist/_node-chunks/{chunk-5OILJTZE.js → chunk-2DMFI367.js} +7 -7
- package/dist/_node-chunks/{chunk-DCHFG5TX.js → chunk-4TOI4VSK.js} +7 -7
- package/dist/_node-chunks/{chunk-XA4TAMUS.js → chunk-55VWKF63.js} +710 -935
- package/dist/_node-chunks/{chunk-N3GFXZDP.js → chunk-5IEY46LQ.js} +7 -7
- package/dist/_node-chunks/{chunk-YRPXGWKW.js → chunk-6PTV7XGR.js} +8 -8
- package/dist/_node-chunks/{chunk-4FMOVB65.js → chunk-7NJGTQ3W.js} +223 -243
- package/dist/_node-chunks/{chunk-4VGW2SQA.js → chunk-7WH7AGOR.js} +7 -7
- package/dist/_node-chunks/{camelcase-O2O7JODG.js → chunk-A7CUP23N.js} +9 -8
- package/dist/_node-chunks/{chunk-XT6O5CVI.js → chunk-B3AMFGAL.js} +30 -21
- package/dist/_node-chunks/{chunk-IB5AEYPX.js → chunk-BNOZ3EKF.js} +7 -7
- package/dist/_node-chunks/{chunk-TTQRDWDJ.js → chunk-DC7OWBHB.js} +12 -12
- package/dist/_node-chunks/{chunk-3J7DQ6TI.js → chunk-E6TLN2J2.js} +7 -7
- package/dist/_node-chunks/{chunk-JP4LEAXM.js → chunk-EAOPWIKA.js} +623 -750
- package/dist/_node-chunks/{chunk-YJHXEN7U.js → chunk-EY5PTUZL.js} +583 -180
- package/dist/_node-chunks/{chunk-JSSBBVU5.js → chunk-F3PO67U3.js} +7 -7
- package/dist/_node-chunks/chunk-FDDJHDCE.js +62 -0
- package/dist/_node-chunks/{chunk-6COBULLV.js → chunk-HEBHWRWL.js} +162 -103
- package/dist/_node-chunks/{chunk-USDZSU5L.js → chunk-HPFXREVG.js} +7 -7
- package/dist/_node-chunks/{chunk-JECCFKKM.js → chunk-IINJT47N.js} +7 -7
- package/dist/_node-chunks/{chunk-OL2HWCBH.js → chunk-JNHUDBJL.js} +7 -7
- package/dist/_node-chunks/{chunk-NF3GXIEK.js → chunk-JOXYGIZK.js} +9 -9
- package/dist/_node-chunks/{chunk-NOSGJ5PL.js → chunk-MLBTKECD.js} +7 -7
- package/dist/_node-chunks/{chunk-TYGVOW7L.js → chunk-NJXBURX7.js} +8 -8
- package/dist/_node-chunks/{chunk-AXFNB3AN.js → chunk-NKZ4UPPV.js} +7 -7
- package/dist/_node-chunks/{chunk-HAVE6SGK.js → chunk-NUVGSFQI.js} +7 -7
- package/dist/_node-chunks/chunk-R5DIBOM6.js +18 -0
- package/dist/_node-chunks/{chunk-AC3BNULF.js → chunk-RIPA4LFD.js} +22 -22
- package/dist/_node-chunks/{chunk-TBAIXCHN.js → chunk-TJIMCNYJ.js} +8 -8
- package/dist/_node-chunks/{chunk-SF2IETZ2.js → chunk-UYKQJMQY.js} +36 -23
- package/dist/_node-chunks/{chunk-7IIAUEWB.js → chunk-VQH4ZFTS.js} +8 -8
- package/dist/_node-chunks/{chunk-FWFQ2GU7.js → chunk-VSC6LSCQ.js} +6 -6
- package/dist/_node-chunks/{chunk-MOO2Y4GI.js → chunk-XZTBG2TG.js} +6 -6
- package/dist/_node-chunks/{dist-BMKSKYDI.js → dist-CGGAYWME.js} +9 -9
- package/dist/_node-chunks/{globby-DASPUXWI.js → globby-3IFB7BJC.js} +17 -13
- package/dist/_node-chunks/{lib-L6BIH4EV.js → lib-IT6OBSID.js} +36 -12
- package/dist/_node-chunks/{mdx-N42X6CFJ-2COTUDSL.js → mdx-N42X6CFJ-WM36SSZ6.js} +8 -8
- package/dist/_node-chunks/{p-limit-HVR3I7TJ.js → p-limit-3V5XIKA7.js} +7 -7
- package/dist/_node-chunks/{plugin-FZOHPRK7.js → plugin-3YREMMJJ.js} +10 -10
- package/dist/_node-chunks/{plugin-2XPSFYWZ.js → plugin-GJUBUKCT.js} +10 -10
- package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-FGQM2EPC.js → webpack-inject-mocker-runtime-plugin-DCJQFJQ5.js} +1307 -847
- package/dist/_node-chunks/{webpack-mock-plugin-4HOAIYSX.js → webpack-mock-plugin-XJNFAHBI.js} +9 -9
- package/dist/babel/index.d.ts +1 -1
- package/dist/babel/index.js +11 -11
- package/dist/bin/core.js +638 -187
- package/dist/bin/dispatcher.js +11 -11
- package/dist/bin/loader.js +8 -8
- package/dist/cli/index.d.ts +61 -74
- package/dist/cli/index.js +56 -44
- package/dist/common/index.js +21 -21
- package/dist/components/index.js +27 -23
- package/dist/core-events/index.d.ts +18 -2
- package/dist/core-events/index.js +7 -1
- package/dist/core-server/index.js +4545 -4115
- package/dist/core-server/presets/common-manager.js +507 -747
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +691 -29
- package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +9 -9
- package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +10 -10
- package/dist/csf/index.js +6 -6
- package/dist/csf-tools/index.js +9 -9
- package/dist/docs-tools/index.js +4 -4
- package/dist/instrumenter/index.js +1 -1
- package/dist/manager/globals-runtime.js +9164 -18083
- package/dist/manager/globals.d.ts +0 -4
- package/dist/manager/globals.js +1 -6
- package/dist/manager/runtime.js +12967 -11396
- package/dist/manager-api/index.d.ts +2 -0
- package/dist/manager-api/index.js +303 -64
- package/dist/node-logger/index.d.ts +1 -1
- package/dist/node-logger/index.js +1136 -661
- package/dist/preview/runtime.js +12068 -21585
- package/dist/preview-api/index.d.ts +68 -67
- package/dist/preview-api/index.js +6 -6
- package/dist/router/index.js +2 -2
- package/dist/server-errors.js +10 -10
- package/dist/telemetry/index.d.ts +1 -1
- package/dist/telemetry/index.js +24 -24
- package/dist/test/index.js +1872 -4023
- package/dist/theming/index.d.ts +2 -2
- package/dist/theming/index.js +6 -6
- package/dist/types/index.d.ts +4 -0
- package/package.json +7 -6
- package/dist/_browser-chunks/Color-SFYJJKWL.js +0 -605
- package/dist/_browser-chunks/chunk-DHO2SA6L.js +0 -12
- package/dist/_browser-chunks/chunk-WPHPDNUA.js +0 -974
- package/dist/_node-chunks/chunk-CHJLO2LV.js +0 -62
- package/dist/_node-chunks/chunk-MNG223PY.js +0 -18
- package/dist/_node-chunks/default-browser-id-J4OIAAJ5.js +0 -1719
package/dist/common/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_0v1evul49qdo from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0v1evul49qdo from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0v1evul49qdo from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0v1evul49qdo.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0v1evul49qdo.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0v1evul49qdo.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -83,12 +83,12 @@ import {
|
|
|
83
83
|
transformImportFiles,
|
|
84
84
|
validateConfigurationFiles,
|
|
85
85
|
validateFrameworkName
|
|
86
|
-
} from "../_node-chunks/chunk-
|
|
87
|
-
import "../_node-chunks/chunk-
|
|
88
|
-
import "../_node-chunks/chunk-
|
|
86
|
+
} from "../_node-chunks/chunk-RIPA4LFD.js";
|
|
87
|
+
import "../_node-chunks/chunk-IINJT47N.js";
|
|
88
|
+
import "../_node-chunks/chunk-2DMFI367.js";
|
|
89
89
|
import {
|
|
90
90
|
versions_default
|
|
91
|
-
} from "../_node-chunks/chunk-
|
|
91
|
+
} from "../_node-chunks/chunk-FDDJHDCE.js";
|
|
92
92
|
import {
|
|
93
93
|
findFilesUp,
|
|
94
94
|
getProjectRoot,
|
|
@@ -100,22 +100,22 @@ import {
|
|
|
100
100
|
optionalEnvToBoolean,
|
|
101
101
|
stringifyEnvs,
|
|
102
102
|
stringifyProcessEnvs
|
|
103
|
-
} from "../_node-chunks/chunk-
|
|
104
|
-
import "../_node-chunks/chunk-
|
|
105
|
-
import "../_node-chunks/chunk-
|
|
103
|
+
} from "../_node-chunks/chunk-55VWKF63.js";
|
|
104
|
+
import "../_node-chunks/chunk-F3PO67U3.js";
|
|
105
|
+
import "../_node-chunks/chunk-HPFXREVG.js";
|
|
106
106
|
import {
|
|
107
107
|
importMetaResolve,
|
|
108
108
|
importModule,
|
|
109
109
|
resolvePackageDir,
|
|
110
110
|
safeResolveModule
|
|
111
|
-
} from "../_node-chunks/chunk-
|
|
112
|
-
import "../_node-chunks/chunk-
|
|
113
|
-
import "../_node-chunks/chunk-
|
|
114
|
-
import "../_node-chunks/chunk-
|
|
115
|
-
import "../_node-chunks/chunk-
|
|
116
|
-
import "../_node-chunks/chunk-
|
|
117
|
-
import "../_node-chunks/chunk-
|
|
118
|
-
import "../_node-chunks/chunk-
|
|
111
|
+
} from "../_node-chunks/chunk-TJIMCNYJ.js";
|
|
112
|
+
import "../_node-chunks/chunk-7WH7AGOR.js";
|
|
113
|
+
import "../_node-chunks/chunk-E6TLN2J2.js";
|
|
114
|
+
import "../_node-chunks/chunk-NJXBURX7.js";
|
|
115
|
+
import "../_node-chunks/chunk-JNHUDBJL.js";
|
|
116
|
+
import "../_node-chunks/chunk-MLBTKECD.js";
|
|
117
|
+
import "../_node-chunks/chunk-5IEY46LQ.js";
|
|
118
|
+
import "../_node-chunks/chunk-XZTBG2TG.js";
|
|
119
119
|
export {
|
|
120
120
|
COMMON_ENV_VARS,
|
|
121
121
|
DEFAULT_FILES_PATTERN,
|
package/dist/components/index.js
CHANGED
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WithToolTipState
|
|
3
|
-
} from "../_browser-chunks/chunk-
|
|
3
|
+
} from "../_browser-chunks/chunk-BOOOPFZF.js";
|
|
4
4
|
import {
|
|
5
5
|
ActionBar,
|
|
6
6
|
ScrollArea,
|
|
7
7
|
SyntaxHighlighter,
|
|
8
8
|
createCopyToClipboardFunction
|
|
9
|
-
} from "../_browser-chunks/chunk-
|
|
10
|
-
import {
|
|
11
|
-
_objectWithoutPropertiesLoose
|
|
12
|
-
} from "../_browser-chunks/chunk-VAMFPZY3.js";
|
|
9
|
+
} from "../_browser-chunks/chunk-AM4PZYVQ.js";
|
|
13
10
|
import "../_browser-chunks/chunk-P2LUROS2.js";
|
|
14
11
|
import "../_browser-chunks/chunk-WJWT2LN5.js";
|
|
15
12
|
import "../_browser-chunks/chunk-VBZTU7DO.js";
|
|
@@ -481,6 +478,10 @@ import "../_browser-chunks/chunk-OGVSPJVI.js";
|
|
|
481
478
|
import "../_browser-chunks/chunk-AQHB5MEL.js";
|
|
482
479
|
import "../_browser-chunks/chunk-5B53MDLY.js";
|
|
483
480
|
import "../_browser-chunks/chunk-VVVPU2RE.js";
|
|
481
|
+
import "../_browser-chunks/chunk-GJ67EE65.js";
|
|
482
|
+
import {
|
|
483
|
+
_objectWithoutPropertiesLoose
|
|
484
|
+
} from "../_browser-chunks/chunk-VAMFPZY3.js";
|
|
484
485
|
import {
|
|
485
486
|
curriedDarken$1,
|
|
486
487
|
curriedLighten$1,
|
|
@@ -1521,7 +1522,7 @@ import React6, { Suspense, lazy } from "react";
|
|
|
1521
1522
|
var languages = [];
|
|
1522
1523
|
var Comp = null;
|
|
1523
1524
|
var LazySyntaxHighlighter = lazy(async () => {
|
|
1524
|
-
const { SyntaxHighlighter: SyntaxHighlighter3 } = await import("../_browser-chunks/syntaxhighlighter-
|
|
1525
|
+
const { SyntaxHighlighter: SyntaxHighlighter3 } = await import("../_browser-chunks/syntaxhighlighter-RJW7FE3A.js");
|
|
1525
1526
|
if (languages.length > 0) {
|
|
1526
1527
|
languages.forEach((args) => {
|
|
1527
1528
|
SyntaxHighlighter3.registerLanguage(...args);
|
|
@@ -1537,7 +1538,7 @@ var LazySyntaxHighlighter = lazy(async () => {
|
|
|
1537
1538
|
});
|
|
1538
1539
|
var LazySyntaxHighlighterWithFormatter = lazy(async () => {
|
|
1539
1540
|
const [{ SyntaxHighlighter: SyntaxHighlighter3 }, { formatter }] = await Promise.all([
|
|
1540
|
-
import("../_browser-chunks/syntaxhighlighter-
|
|
1541
|
+
import("../_browser-chunks/syntaxhighlighter-RJW7FE3A.js"),
|
|
1541
1542
|
import("../_browser-chunks/formatter-OMEEQ6HG.js")
|
|
1542
1543
|
]);
|
|
1543
1544
|
if (languages.length > 0) {
|
|
@@ -1590,6 +1591,7 @@ __export(dist_exports, {
|
|
|
1590
1591
|
import * as React33 from "react";
|
|
1591
1592
|
|
|
1592
1593
|
// ../node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/primitive/dist/index.mjs
|
|
1594
|
+
var canUseDOM = !!(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
1593
1595
|
function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
|
|
1594
1596
|
return /* @__PURE__ */ __name(function handleEvent(event) {
|
|
1595
1597
|
originalEventHandler?.(event);
|
|
@@ -1826,6 +1828,7 @@ var SYNC_STATE = Symbol("RADIX:SYNC_STATE");
|
|
|
1826
1828
|
import * as React17 from "react";
|
|
1827
1829
|
|
|
1828
1830
|
// ../node_modules/@radix-ui/react-dismissable-layer/node_modules/@radix-ui/primitive/dist/index.mjs
|
|
1831
|
+
var canUseDOM2 = !!(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
1829
1832
|
function composeEventHandlers2(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
|
|
1830
1833
|
return /* @__PURE__ */ __name(function handleEvent(event) {
|
|
1831
1834
|
originalEventHandler?.(event);
|
|
@@ -1909,8 +1912,9 @@ function mergeProps(slotProps, childProps) {
|
|
|
1909
1912
|
if (isHandler) {
|
|
1910
1913
|
if (slotPropValue && childPropValue) {
|
|
1911
1914
|
overrideProps[propName] = (...args) => {
|
|
1912
|
-
childPropValue(...args);
|
|
1915
|
+
const result = childPropValue(...args);
|
|
1913
1916
|
slotPropValue(...args);
|
|
1917
|
+
return result;
|
|
1914
1918
|
};
|
|
1915
1919
|
} else if (slotPropValue) {
|
|
1916
1920
|
overrideProps[propName] = slotPropValue;
|
|
@@ -1962,7 +1966,7 @@ var NODES = [
|
|
|
1962
1966
|
];
|
|
1963
1967
|
var Primitive = NODES.reduce((primitive, node) => {
|
|
1964
1968
|
const Slot3 = createSlot(`Primitive.${node}`);
|
|
1965
|
-
const
|
|
1969
|
+
const Node2 = React14.forwardRef((props, forwardedRef) => {
|
|
1966
1970
|
const { asChild, ...primitiveProps } = props;
|
|
1967
1971
|
const Comp2 = asChild ? Slot3 : node;
|
|
1968
1972
|
if (typeof window !== "undefined") {
|
|
@@ -1970,8 +1974,8 @@ var Primitive = NODES.reduce((primitive, node) => {
|
|
|
1970
1974
|
}
|
|
1971
1975
|
return jsx3(Comp2, { ...primitiveProps, ref: forwardedRef });
|
|
1972
1976
|
});
|
|
1973
|
-
|
|
1974
|
-
return { ...primitive, [node]:
|
|
1977
|
+
Node2.displayName = `Primitive.${node}`;
|
|
1978
|
+
return { ...primitive, [node]: Node2 };
|
|
1975
1979
|
}, {});
|
|
1976
1980
|
function dispatchDiscreteCustomEvent(target, event) {
|
|
1977
1981
|
if (target) ReactDOM.flushSync(() => target.dispatchEvent(event));
|
|
@@ -2512,7 +2516,7 @@ function usePresence(present) {
|
|
|
2512
2516
|
const ownerWindow = node.ownerDocument.defaultView ?? window;
|
|
2513
2517
|
const handleAnimationEnd = /* @__PURE__ */ __name((event) => {
|
|
2514
2518
|
const currentAnimationName = getAnimationName(stylesRef.current);
|
|
2515
|
-
const isCurrentAnimation = currentAnimationName.includes(event.animationName);
|
|
2519
|
+
const isCurrentAnimation = currentAnimationName.includes(CSS.escape(event.animationName));
|
|
2516
2520
|
if (event.target === node && isCurrentAnimation) {
|
|
2517
2521
|
send("ANIMATION_END");
|
|
2518
2522
|
if (!prevPresentRef.current) {
|
|
@@ -2854,14 +2858,14 @@ var RemoveScroll = React28.forwardRef(function(props, parentRef) {
|
|
|
2854
2858
|
onWheelCapture: nothing,
|
|
2855
2859
|
onTouchMoveCapture: nothing
|
|
2856
2860
|
}), callbacks = _a[0], setCallbacks = _a[1];
|
|
2857
|
-
var forwardProps = props.forwardProps, children = props.children, className = props.className, removeScrollBar = props.removeScrollBar, enabled = props.enabled, shards = props.shards, sideCar = props.sideCar, noIsolation = props.noIsolation, inert = props.inert, allowPinchZoom = props.allowPinchZoom, _b = props.as, Container3 = _b === void 0 ? "div" : _b, gapMode = props.gapMode, rest = __rest(props, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]);
|
|
2861
|
+
var forwardProps = props.forwardProps, children = props.children, className = props.className, removeScrollBar = props.removeScrollBar, enabled = props.enabled, shards = props.shards, sideCar = props.sideCar, noRelative = props.noRelative, noIsolation = props.noIsolation, inert = props.inert, allowPinchZoom = props.allowPinchZoom, _b = props.as, Container3 = _b === void 0 ? "div" : _b, gapMode = props.gapMode, rest = __rest(props, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]);
|
|
2858
2862
|
var SideCar2 = sideCar;
|
|
2859
2863
|
var containerRef = useMergeRefs([ref, parentRef]);
|
|
2860
2864
|
var containerProps = __assign(__assign({}, rest), callbacks);
|
|
2861
2865
|
return React28.createElement(
|
|
2862
2866
|
React28.Fragment,
|
|
2863
2867
|
null,
|
|
2864
|
-
enabled && React28.createElement(SideCar2, { sideCar: effectCar, removeScrollBar, shards, noIsolation, inert, setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref, gapMode }),
|
|
2868
|
+
enabled && React28.createElement(SideCar2, { sideCar: effectCar, removeScrollBar, shards, noRelative, noIsolation, inert, setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref, gapMode }),
|
|
2865
2869
|
forwardProps ? React28.cloneElement(React28.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef })) : React28.createElement(Container3, __assign({}, containerProps, { className, ref: containerRef }), children)
|
|
2866
2870
|
);
|
|
2867
2871
|
});
|
|
@@ -3137,6 +3141,9 @@ var handleScroll = /* @__PURE__ */ __name(function(axis, endTarget, event, sourc
|
|
|
3137
3141
|
var availableScroll = 0;
|
|
3138
3142
|
var availableScrollTop = 0;
|
|
3139
3143
|
do {
|
|
3144
|
+
if (!target) {
|
|
3145
|
+
break;
|
|
3146
|
+
}
|
|
3140
3147
|
var _a = getScrollVariables(axis, target), position = _a[0], scroll_1 = _a[1], capacity = _a[2];
|
|
3141
3148
|
var elementScroll = scroll_1 - capacity - directionFactor * position;
|
|
3142
3149
|
if (position || elementScroll) {
|
|
@@ -3145,11 +3152,8 @@ var handleScroll = /* @__PURE__ */ __name(function(axis, endTarget, event, sourc
|
|
|
3145
3152
|
availableScrollTop += position;
|
|
3146
3153
|
}
|
|
3147
3154
|
}
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
} else {
|
|
3151
|
-
target = target.parentNode;
|
|
3152
|
-
}
|
|
3155
|
+
var parent_1 = target.parentNode;
|
|
3156
|
+
target = parent_1 && parent_1.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? parent_1.host : parent_1;
|
|
3153
3157
|
} while (
|
|
3154
3158
|
// portaled content
|
|
3155
3159
|
!targetInLock && target !== document.body || // self content
|
|
@@ -3313,7 +3317,7 @@ function RemoveScrollSideCar(props) {
|
|
|
3313
3317
|
React31.Fragment,
|
|
3314
3318
|
null,
|
|
3315
3319
|
inert ? React31.createElement(Style2, { styles: generateStyle(id) }) : null,
|
|
3316
|
-
removeScrollBar ? React31.createElement(RemoveScrollBar, { gapMode: props.gapMode }) : null
|
|
3320
|
+
removeScrollBar ? React31.createElement(RemoveScrollBar, { noRelative: props.noRelative, gapMode: props.gapMode }) : null
|
|
3317
3321
|
);
|
|
3318
3322
|
}
|
|
3319
3323
|
__name(RemoveScrollSideCar, "RemoveScrollSideCar");
|
|
@@ -3457,7 +3461,7 @@ var hideOthers = /* @__PURE__ */ __name(function(originalTarget, parentNode, mar
|
|
|
3457
3461
|
return null;
|
|
3458
3462
|
};
|
|
3459
3463
|
}
|
|
3460
|
-
targets.push.apply(targets, Array.from(activeParentNode.querySelectorAll("[aria-live]")));
|
|
3464
|
+
targets.push.apply(targets, Array.from(activeParentNode.querySelectorAll("[aria-live], script")));
|
|
3461
3465
|
return applyAttributeToOthers(targets, activeParentNode, markerName, "aria-hidden");
|
|
3462
3466
|
}, "hideOthers");
|
|
3463
3467
|
|
|
@@ -5101,11 +5105,11 @@ var Form = Object.assign(
|
|
|
5101
5105
|
// src/components/components/tooltip/lazy-WithTooltip.tsx
|
|
5102
5106
|
import React52, { Suspense as Suspense2, lazy as lazy2 } from "react";
|
|
5103
5107
|
var LazyWithTooltip = lazy2(
|
|
5104
|
-
() => import("../_browser-chunks/WithTooltip-
|
|
5108
|
+
() => import("../_browser-chunks/WithTooltip-SK46ZJ2J.js").then((mod) => ({ default: mod.WithTooltip }))
|
|
5105
5109
|
);
|
|
5106
5110
|
var WithTooltip = /* @__PURE__ */ __name((props) => React52.createElement(Suspense2, { fallback: React52.createElement("div", null) }, React52.createElement(LazyWithTooltip, { ...props })), "WithTooltip");
|
|
5107
5111
|
var LazyWithTooltipPure = lazy2(
|
|
5108
|
-
() => import("../_browser-chunks/WithTooltip-
|
|
5112
|
+
() => import("../_browser-chunks/WithTooltip-SK46ZJ2J.js").then((mod) => ({ default: mod.WithTooltipPure }))
|
|
5109
5113
|
);
|
|
5110
5114
|
var WithTooltipPure = /* @__PURE__ */ __name((props) => React52.createElement(Suspense2, { fallback: React52.createElement("div", null) }, React52.createElement(LazyWithTooltipPure, { ...props })), "WithTooltipPure");
|
|
5111
5115
|
|
|
@@ -229,6 +229,18 @@ interface StoryFinishedPayload {
|
|
|
229
229
|
reporters: Report[];
|
|
230
230
|
}
|
|
231
231
|
|
|
232
|
+
type OpenInEditorRequestPayload = {
|
|
233
|
+
file: string;
|
|
234
|
+
line?: number;
|
|
235
|
+
column?: number;
|
|
236
|
+
};
|
|
237
|
+
type OpenInEditorResponsePayload = {
|
|
238
|
+
file: string;
|
|
239
|
+
line?: number;
|
|
240
|
+
column?: number;
|
|
241
|
+
error: string | null;
|
|
242
|
+
};
|
|
243
|
+
|
|
232
244
|
declare enum events {
|
|
233
245
|
CHANNEL_WS_DISCONNECT = "channelWSDisconnect",
|
|
234
246
|
CHANNEL_CREATED = "channelCreated",
|
|
@@ -286,7 +298,9 @@ declare enum events {
|
|
|
286
298
|
ARGTYPES_INFO_REQUEST = "argtypesInfoRequest",
|
|
287
299
|
ARGTYPES_INFO_RESPONSE = "argtypesInfoResponse",
|
|
288
300
|
CREATE_NEW_STORYFILE_REQUEST = "createNewStoryfileRequest",
|
|
289
|
-
CREATE_NEW_STORYFILE_RESPONSE = "createNewStoryfileResponse"
|
|
301
|
+
CREATE_NEW_STORYFILE_RESPONSE = "createNewStoryfileResponse",
|
|
302
|
+
OPEN_IN_EDITOR_REQUEST = "openInEditorRequest",
|
|
303
|
+
OPEN_IN_EDITOR_RESPONSE = "openInEditorResponse"
|
|
290
304
|
}
|
|
291
305
|
|
|
292
306
|
declare const CHANNEL_WS_DISCONNECT: events;
|
|
@@ -346,5 +360,7 @@ declare const SAVE_STORY_REQUEST: events;
|
|
|
346
360
|
declare const SAVE_STORY_RESPONSE: events;
|
|
347
361
|
declare const ARGTYPES_INFO_REQUEST: events;
|
|
348
362
|
declare const ARGTYPES_INFO_RESPONSE: events;
|
|
363
|
+
declare const OPEN_IN_EDITOR_REQUEST: events;
|
|
364
|
+
declare const OPEN_IN_EDITOR_RESPONSE: events;
|
|
349
365
|
|
|
350
|
-
export { ARGTYPES_INFO_REQUEST, ARGTYPES_INFO_RESPONSE, type ArgTypesRequestPayload, type ArgTypesResponsePayload, CHANNEL_CREATED, CHANNEL_WS_DISCONNECT, CONFIG_ERROR, CREATE_NEW_STORYFILE_REQUEST, CREATE_NEW_STORYFILE_RESPONSE, CURRENT_STORY_WAS_SET, type CreateNewStoryErrorPayload, type CreateNewStoryRequestPayload, type CreateNewStoryResponsePayload, DOCS_PREPARED, DOCS_RENDERED, FILE_COMPONENT_SEARCH_REQUEST, FILE_COMPONENT_SEARCH_RESPONSE, FORCE_REMOUNT, FORCE_RE_RENDER, type FileComponentSearchRequestPayload, type FileComponentSearchResponsePayload, GLOBALS_UPDATED, NAVIGATE_URL, PLAY_FUNCTION_THREW_EXCEPTION, PRELOAD_ENTRIES, PREVIEW_BUILDER_PROGRESS, PREVIEW_KEYDOWN, REGISTER_SUBSCRIPTION, REQUEST_WHATS_NEW_DATA, RESET_STORY_ARGS, RESULT_WHATS_NEW_DATA, type RequestData, type ResponseData, SAVE_STORY_REQUEST, SAVE_STORY_RESPONSE, SELECT_STORY, SET_CONFIG, SET_CURRENT_STORY, SET_FILTER, SET_GLOBALS, SET_INDEX, SET_STORIES, SET_WHATS_NEW_CACHE, SHARED_STATE_CHANGED, SHARED_STATE_SET, STORIES_COLLAPSE_ALL, STORIES_EXPAND_ALL, STORY_ARGS_UPDATED, STORY_CHANGED, STORY_ERRORED, STORY_FINISHED, STORY_HOT_UPDATED, STORY_INDEX_INVALIDATED, STORY_MISSING, STORY_PREPARED, STORY_RENDERED, STORY_RENDER_PHASE_CHANGED, STORY_SPECIFIED, STORY_THREW_EXCEPTION, STORY_UNCHANGED, type SaveStoryRequestPayload, type SaveStoryResponsePayload, type StoryFinishedPayload, TELEMETRY_ERROR, TOGGLE_WHATS_NEW_NOTIFICATIONS, UNHANDLED_ERRORS_WHILE_PLAYING, UPDATE_GLOBALS, UPDATE_QUERY_PARAMS, UPDATE_STORY_ARGS, type WhatsNewCache, type WhatsNewData, events as default };
|
|
366
|
+
export { ARGTYPES_INFO_REQUEST, ARGTYPES_INFO_RESPONSE, type ArgTypesRequestPayload, type ArgTypesResponsePayload, CHANNEL_CREATED, CHANNEL_WS_DISCONNECT, CONFIG_ERROR, CREATE_NEW_STORYFILE_REQUEST, CREATE_NEW_STORYFILE_RESPONSE, CURRENT_STORY_WAS_SET, type CreateNewStoryErrorPayload, type CreateNewStoryRequestPayload, type CreateNewStoryResponsePayload, DOCS_PREPARED, DOCS_RENDERED, FILE_COMPONENT_SEARCH_REQUEST, FILE_COMPONENT_SEARCH_RESPONSE, FORCE_REMOUNT, FORCE_RE_RENDER, type FileComponentSearchRequestPayload, type FileComponentSearchResponsePayload, GLOBALS_UPDATED, NAVIGATE_URL, OPEN_IN_EDITOR_REQUEST, OPEN_IN_EDITOR_RESPONSE, type OpenInEditorRequestPayload, type OpenInEditorResponsePayload, PLAY_FUNCTION_THREW_EXCEPTION, PRELOAD_ENTRIES, PREVIEW_BUILDER_PROGRESS, PREVIEW_KEYDOWN, REGISTER_SUBSCRIPTION, REQUEST_WHATS_NEW_DATA, RESET_STORY_ARGS, RESULT_WHATS_NEW_DATA, type RequestData, type ResponseData, SAVE_STORY_REQUEST, SAVE_STORY_RESPONSE, SELECT_STORY, SET_CONFIG, SET_CURRENT_STORY, SET_FILTER, SET_GLOBALS, SET_INDEX, SET_STORIES, SET_WHATS_NEW_CACHE, SHARED_STATE_CHANGED, SHARED_STATE_SET, STORIES_COLLAPSE_ALL, STORIES_EXPAND_ALL, STORY_ARGS_UPDATED, STORY_CHANGED, STORY_ERRORED, STORY_FINISHED, STORY_HOT_UPDATED, STORY_INDEX_INVALIDATED, STORY_MISSING, STORY_PREPARED, STORY_RENDERED, STORY_RENDER_PHASE_CHANGED, STORY_SPECIFIED, STORY_THREW_EXCEPTION, STORY_UNCHANGED, type SaveStoryRequestPayload, type SaveStoryResponsePayload, type StoryFinishedPayload, TELEMETRY_ERROR, TOGGLE_WHATS_NEW_NOTIFICATIONS, UNHANDLED_ERRORS_WHILE_PLAYING, UPDATE_GLOBALS, UPDATE_QUERY_PARAMS, UPDATE_STORY_ARGS, type WhatsNewCache, type WhatsNewData, events as default };
|
|
@@ -59,6 +59,8 @@ var events = /* @__PURE__ */ ((events2) => {
|
|
|
59
59
|
events2["ARGTYPES_INFO_RESPONSE"] = "argtypesInfoResponse";
|
|
60
60
|
events2["CREATE_NEW_STORYFILE_REQUEST"] = "createNewStoryfileRequest";
|
|
61
61
|
events2["CREATE_NEW_STORYFILE_RESPONSE"] = "createNewStoryfileResponse";
|
|
62
|
+
events2["OPEN_IN_EDITOR_REQUEST"] = "openInEditorRequest";
|
|
63
|
+
events2["OPEN_IN_EDITOR_RESPONSE"] = "openInEditorResponse";
|
|
62
64
|
return events2;
|
|
63
65
|
})(events || {});
|
|
64
66
|
var core_events_default = events;
|
|
@@ -119,7 +121,9 @@ var {
|
|
|
119
121
|
SAVE_STORY_REQUEST,
|
|
120
122
|
SAVE_STORY_RESPONSE,
|
|
121
123
|
ARGTYPES_INFO_REQUEST,
|
|
122
|
-
ARGTYPES_INFO_RESPONSE
|
|
124
|
+
ARGTYPES_INFO_RESPONSE,
|
|
125
|
+
OPEN_IN_EDITOR_REQUEST,
|
|
126
|
+
OPEN_IN_EDITOR_RESPONSE
|
|
123
127
|
} = events;
|
|
124
128
|
export {
|
|
125
129
|
ARGTYPES_INFO_REQUEST,
|
|
@@ -138,6 +142,8 @@ export {
|
|
|
138
142
|
FORCE_RE_RENDER,
|
|
139
143
|
GLOBALS_UPDATED,
|
|
140
144
|
NAVIGATE_URL,
|
|
145
|
+
OPEN_IN_EDITOR_REQUEST,
|
|
146
|
+
OPEN_IN_EDITOR_RESPONSE,
|
|
141
147
|
PLAY_FUNCTION_THREW_EXCEPTION,
|
|
142
148
|
PRELOAD_ENTRIES,
|
|
143
149
|
PREVIEW_BUILDER_PROGRESS,
|