@octanejs/radix 0.1.3 → 0.1.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@octanejs/radix",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "octane": {
@@ -35,8 +35,8 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "aria-hidden": "^1.2.6",
38
- "@octanejs/floating-ui": "0.1.3",
39
- "octane": "0.1.4"
38
+ "@octanejs/floating-ui": "0.1.4",
39
+ "octane": "0.1.5"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@tsrx/react": "^0.2.37",
package/src/ScrollArea.ts CHANGED
@@ -249,7 +249,7 @@ function useStateMachine(
249
249
  machine: Record<string, Record<string, string>>,
250
250
  slot: symbol | undefined,
251
251
  ): [string, (event: string) => void] {
252
- return useReducer(
252
+ const [state, dispatch] = useReducer(
253
253
  (state: string, event: string): string => {
254
254
  const nextState = machine[state][event];
255
255
  return nextState ?? state;
@@ -257,6 +257,7 @@ function useStateMachine(
257
257
  initialState,
258
258
  slot,
259
259
  );
260
+ return [state, dispatch];
260
261
  }
261
262
 
262
263
  function ScrollbarScroll(props: any): any {