@almadar/ui 2.17.0 → 2.19.0

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.
@@ -1,4 +1,4 @@
1
- import React8, { forwardRef, useRef, useEffect, useImperativeHandle, createContext, useState, useMemo, useCallback, Component, useContext } from 'react';
1
+ import React7, { forwardRef, useRef, useEffect, useImperativeHandle, useState, useMemo, useCallback, Component, useContext } from 'react';
2
2
  import { useThree, useFrame, Canvas } from '@react-three/fiber';
3
3
  import * as THREE6 from 'three';
4
4
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
@@ -7,6 +7,7 @@ import { GLTFLoader as GLTFLoader$1 } from 'three/examples/jsm/loaders/GLTFLoade
7
7
  import { OrbitControls as OrbitControls$1 } from 'three/examples/jsm/controls/OrbitControls.js';
8
8
  import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader.js';
9
9
  import { OBJLoader } from 'three/examples/jsm/loaders/OBJLoader.js';
10
+ import { EventBusContext } from '@almadar/ui/providers';
10
11
  import { clsx } from 'clsx';
11
12
  import { twMerge } from 'tailwind-merge';
12
13
 
@@ -1348,9 +1349,6 @@ function useRaycaster(options) {
1348
1349
  isWithinCanvas
1349
1350
  };
1350
1351
  }
1351
- var EventBusContext = createContext(null);
1352
-
1353
- // hooks/useEventBus.ts
1354
1352
  function getGlobalEventBus() {
1355
1353
  if (typeof window !== "undefined") {
1356
1354
  return window.__kflowEventBus ?? null;
@@ -1818,7 +1816,7 @@ function UnitRenderer({
1818
1816
  onAnimationStateChange,
1819
1817
  animationSpeed = 1
1820
1818
  }) {
1821
- const handleUnitClick = React8.useCallback(
1819
+ const handleUnitClick = React7.useCallback(
1822
1820
  (unit) => {
1823
1821
  onUnitClick?.(unit);
1824
1822
  },
@@ -2797,7 +2795,7 @@ var positionStyles = {
2797
2795
  fixed: "fixed",
2798
2796
  sticky: "sticky"
2799
2797
  };
2800
- var Box = React8.forwardRef(
2798
+ var Box = React7.forwardRef(
2801
2799
  ({
2802
2800
  padding,
2803
2801
  paddingX,