storybook 10.0.0-beta.4 → 10.0.0-beta.5
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/_browser-chunks/Color-KPLIACXP.js +1569 -0
- 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-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-ZTS4EIKQ.js} +18 -13
- package/dist/_node-chunks/camelcase-K3BM7RII.js +18 -0
- package/dist/_node-chunks/{chunk-MOO2Y4GI.js → chunk-2VMDKLSW.js} +6 -6
- package/dist/_node-chunks/{chunk-7IIAUEWB.js → chunk-3VVGIILJ.js} +8 -8
- package/dist/_node-chunks/{chunk-SF2IETZ2.js → chunk-4KRR46V2.js} +36 -23
- package/dist/_node-chunks/{chunk-4VGW2SQA.js → chunk-4VDRH7SM.js} +7 -7
- package/dist/_node-chunks/chunk-7LG5CLCT.js +18 -0
- package/dist/_node-chunks/{chunk-AC3BNULF.js → chunk-ACUNHBEO.js} +22 -22
- package/dist/_node-chunks/{camelcase-O2O7JODG.js → chunk-AK5PHLUA.js} +9 -8
- package/dist/_node-chunks/{chunk-4FMOVB65.js → chunk-D7SDB4XE.js} +223 -243
- package/dist/_node-chunks/chunk-DWJ7TV2O.js +62 -0
- package/dist/_node-chunks/{chunk-JSSBBVU5.js → chunk-DZJNLBBL.js} +7 -7
- package/dist/_node-chunks/{chunk-YRPXGWKW.js → chunk-EIHJ5J3O.js} +8 -8
- package/dist/_node-chunks/{chunk-HAVE6SGK.js → chunk-F3WE3456.js} +7 -7
- package/dist/_node-chunks/{chunk-TTQRDWDJ.js → chunk-F7YW5W6B.js} +12 -12
- package/dist/_node-chunks/{chunk-AXFNB3AN.js → chunk-H52PBBSK.js} +7 -7
- package/dist/_node-chunks/{chunk-OL2HWCBH.js → chunk-J3DQMIO4.js} +7 -7
- package/dist/_node-chunks/{chunk-XT6O5CVI.js → chunk-K4YETNYJ.js} +30 -21
- package/dist/_node-chunks/{chunk-TBAIXCHN.js → chunk-KU3JBNPY.js} +8 -8
- package/dist/_node-chunks/{chunk-6COBULLV.js → chunk-KZB7ELL6.js} +162 -103
- package/dist/_node-chunks/{chunk-JECCFKKM.js → chunk-OC3TVLYU.js} +7 -7
- package/dist/_node-chunks/{chunk-N3GFXZDP.js → chunk-P3TWEOO5.js} +7 -7
- package/dist/_node-chunks/{chunk-NOSGJ5PL.js → chunk-P7YMEOXF.js} +7 -7
- package/dist/_node-chunks/{chunk-IB5AEYPX.js → chunk-PIKDGR3O.js} +7 -7
- package/dist/_node-chunks/{chunk-FWFQ2GU7.js → chunk-QHIU5I7C.js} +6 -6
- package/dist/_node-chunks/{chunk-NF3GXIEK.js → chunk-SW3VZAH7.js} +9 -9
- package/dist/_node-chunks/{chunk-XA4TAMUS.js → chunk-TBWOUVTA.js} +10 -9
- package/dist/_node-chunks/{chunk-YJHXEN7U.js → chunk-TKN5TEZV.js} +583 -180
- package/dist/_node-chunks/{chunk-JP4LEAXM.js → chunk-TVKUJ3SE.js} +623 -750
- package/dist/_node-chunks/{chunk-TYGVOW7L.js → chunk-UTCFHTQH.js} +8 -8
- package/dist/_node-chunks/{chunk-DCHFG5TX.js → chunk-VQN4WAIA.js} +7 -7
- package/dist/_node-chunks/{chunk-USDZSU5L.js → chunk-VWSUFVUF.js} +7 -7
- package/dist/_node-chunks/{chunk-3J7DQ6TI.js → chunk-VX5P3IYA.js} +7 -7
- package/dist/_node-chunks/{chunk-5OILJTZE.js → chunk-WCSHG2QT.js} +7 -7
- package/dist/_node-chunks/{default-browser-id-J4OIAAJ5.js → default-browser-id-4RZZMHJE.js} +7 -7
- package/dist/_node-chunks/{dist-BMKSKYDI.js → dist-OGRBL76N.js} +9 -9
- package/dist/_node-chunks/{globby-DASPUXWI.js → globby-65LOULA6.js} +9 -9
- package/dist/_node-chunks/{lib-L6BIH4EV.js → lib-TF7JCT3A.js} +36 -12
- package/dist/_node-chunks/{mdx-N42X6CFJ-2COTUDSL.js → mdx-N42X6CFJ-6ZJEUZMZ.js} +8 -8
- package/dist/_node-chunks/{p-limit-HVR3I7TJ.js → p-limit-PF7JSPDT.js} +7 -7
- package/dist/_node-chunks/{plugin-2XPSFYWZ.js → plugin-A6XAWMXN.js} +10 -10
- package/dist/_node-chunks/{plugin-FZOHPRK7.js → plugin-LGHGAC6J.js} +10 -10
- package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-FGQM2EPC.js → webpack-inject-mocker-runtime-plugin-HDSEOU3Z.js} +1307 -847
- package/dist/_node-chunks/{webpack-mock-plugin-4HOAIYSX.js → webpack-mock-plugin-ZJJVMJUS.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 +50 -43
- package/dist/common/index.js +21 -21
- package/dist/components/index.js +24 -20
- package/dist/core-server/index.js +3541 -3216
- package/dist/core-server/presets/common-manager.js +440 -720
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +22 -22
- 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 +8910 -18107
- package/dist/manager/runtime.js +3256 -2945
- package/dist/manager-api/index.js +23 -20
- package/dist/node-logger/index.d.ts +1 -1
- package/dist/node-logger/index.js +1136 -661
- package/dist/preview/runtime.js +12061 -21584
- 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.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/package.json +3 -3
- 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/common/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_0oz6lpav6bgq from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0oz6lpav6bgq from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0oz6lpav6bgq.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0oz6lpav6bgq.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq.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-ACUNHBEO.js";
|
|
87
|
+
import "../_node-chunks/chunk-OC3TVLYU.js";
|
|
88
|
+
import "../_node-chunks/chunk-WCSHG2QT.js";
|
|
89
89
|
import {
|
|
90
90
|
versions_default
|
|
91
|
-
} from "../_node-chunks/chunk-
|
|
91
|
+
} from "../_node-chunks/chunk-DWJ7TV2O.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-TBWOUVTA.js";
|
|
104
|
+
import "../_node-chunks/chunk-DZJNLBBL.js";
|
|
105
|
+
import "../_node-chunks/chunk-VWSUFVUF.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-KU3JBNPY.js";
|
|
112
|
+
import "../_node-chunks/chunk-4VDRH7SM.js";
|
|
113
|
+
import "../_node-chunks/chunk-VX5P3IYA.js";
|
|
114
|
+
import "../_node-chunks/chunk-UTCFHTQH.js";
|
|
115
|
+
import "../_node-chunks/chunk-J3DQMIO4.js";
|
|
116
|
+
import "../_node-chunks/chunk-P7YMEOXF.js";
|
|
117
|
+
import "../_node-chunks/chunk-P3TWEOO5.js";
|
|
118
|
+
import "../_node-chunks/chunk-2VMDKLSW.js";
|
|
119
119
|
export {
|
|
120
120
|
COMMON_ENV_VARS,
|
|
121
121
|
DEFAULT_FILES_PATTERN,
|
package/dist/components/index.js
CHANGED
|
@@ -6,10 +6,7 @@ import {
|
|
|
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
|
|