@octaviaflow/core 3.0.4 → 3.0.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/index.js CHANGED
@@ -6010,7 +6010,7 @@ function DescriptionList({
6010
6010
  // src/components/Dialog/Dialog.tsx
6011
6011
  import { AnimatePresence as AnimatePresence3, motion as motion5 } from "framer-motion";
6012
6012
  import { useRef as useRef11 } from "react";
6013
- import { FocusScope, useDialog, useModal, useOverlay } from "react-aria";
6013
+ import { FocusScope, OverlayProvider, useDialog, useModal, useOverlay } from "react-aria";
6014
6014
  import { createPortal } from "react-dom";
6015
6015
 
6016
6016
  // src/utils/motion.ts
@@ -6130,7 +6130,10 @@ function DialogContent({
6130
6130
  }
6131
6131
  function Dialog(props) {
6132
6132
  if (typeof document === "undefined") return null;
6133
- return createPortal(/* @__PURE__ */ jsx26(DialogContent, { ...props }), document.body);
6133
+ return createPortal(
6134
+ /* @__PURE__ */ jsx26(OverlayProvider, { children: /* @__PURE__ */ jsx26(DialogContent, { ...props }) }),
6135
+ document.body
6136
+ );
6134
6137
  }
6135
6138
 
6136
6139
  // src/components/DonutChart/DonutChart.tsx
@@ -11476,7 +11479,7 @@ function Skeleton({ variant = "text", width, height, lines = 1, className }) {
11476
11479
  // src/components/SlideoutPanel/SlideoutPanel.tsx
11477
11480
  import { AnimatePresence as AnimatePresence9, motion as motion12 } from "framer-motion";
11478
11481
  import { useRef as useRef28 } from "react";
11479
- import { FocusScope as FocusScope2, useDialog as useDialog2, useModal as useModal2, useOverlay as useOverlay2 } from "react-aria";
11482
+ import { FocusScope as FocusScope2, OverlayProvider as OverlayProvider2, useDialog as useDialog2, useModal as useModal2, useOverlay as useOverlay2 } from "react-aria";
11480
11483
  import { createPortal as createPortal8 } from "react-dom";
11481
11484
  import { Fragment as Fragment16, jsx as jsx71, jsxs as jsxs69 } from "react/jsx-runtime";
11482
11485
  var slideVariants2 = {
@@ -11569,7 +11572,10 @@ function SlideoutContent({
11569
11572
  }
11570
11573
  function SlideoutPanel(props) {
11571
11574
  if (typeof document === "undefined") return null;
11572
- return createPortal8(/* @__PURE__ */ jsx71(SlideoutContent, { ...props }), document.body);
11575
+ return createPortal8(
11576
+ /* @__PURE__ */ jsx71(OverlayProvider2, { children: /* @__PURE__ */ jsx71(SlideoutContent, { ...props }) }),
11577
+ document.body
11578
+ );
11573
11579
  }
11574
11580
 
11575
11581
  // src/components/Slider/Slider.tsx
@@ -15504,7 +15510,7 @@ function YamlViewer({
15504
15510
  // src/provider/OdsProvider.tsx
15505
15511
  import { generateCssVars, resolveConfig } from "@octaviaflow/config";
15506
15512
  import { createContext as createContext3, useContext as useContext3, useEffect as useEffect21, useMemo as useMemo18 } from "react";
15507
- import { OverlayProvider } from "react-aria";
15513
+ import { OverlayProvider as OverlayProvider3 } from "react-aria";
15508
15514
  import { jsx as jsx98 } from "react/jsx-runtime";
15509
15515
  var OdsContext = createContext3(null);
15510
15516
  function OdsProvider({ config: userConfig, children }) {
@@ -15526,7 +15532,7 @@ function OdsProvider({ config: userConfig, children }) {
15526
15532
  }
15527
15533
  }, [resolved]);
15528
15534
  const contextValue = useMemo18(() => ({ config: resolved }), [resolved]);
15529
- return /* @__PURE__ */ jsx98(OdsContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx98(OverlayProvider, { children }) });
15535
+ return /* @__PURE__ */ jsx98(OdsContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx98(OverlayProvider3, { children }) });
15530
15536
  }
15531
15537
  function useOds() {
15532
15538
  const ctx = useContext3(OdsContext);