@octanejs/floating-ui 0.1.11 → 0.1.15

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/floating-ui",
3
- "version": "0.1.11",
3
+ "version": "0.1.15",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "engines": {
@@ -37,19 +37,19 @@
37
37
  ".": "./src/index.ts"
38
38
  },
39
39
  "dependencies": {
40
- "@floating-ui/dom": "^1.7.0",
41
- "@floating-ui/utils": "^0.2.11",
40
+ "@floating-ui/dom": "^1.8.0",
41
+ "@floating-ui/utils": "^0.2.12",
42
42
  "tabbable": "^6.5.0"
43
43
  },
44
44
  "peerDependencies": {
45
- "octane": "0.1.12"
45
+ "octane": "0.1.16"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@floating-ui/react": "0.27.19",
49
- "react": "^19.2.0",
50
- "react-dom": "^19.2.0",
51
- "vitest": "^4.1.9",
52
- "octane": "0.1.12"
49
+ "react": "^19.2.7",
50
+ "react-dom": "^19.2.7",
51
+ "vitest": "^4.1.10",
52
+ "octane": "0.1.16"
53
53
  },
54
54
  "scripts": {
55
55
  "test": "vitest run"
@@ -91,9 +91,7 @@ interface PortalContextValue {
91
91
  portalNode: HTMLElement | null;
92
92
  setFocusManagerState: (
93
93
  state:
94
- | FocusManagerState
95
- | null
96
- | ((prev: FocusManagerState | null) => FocusManagerState | null),
94
+ FocusManagerState | null | ((prev: FocusManagerState | null) => FocusManagerState | null),
97
95
  ) => void;
98
96
  beforeInsideRef: MutableRefObject<HTMLSpanElement | null>;
99
97
  afterInsideRef: MutableRefObject<HTMLSpanElement | null>;
@@ -22,8 +22,7 @@ type Duration = number | Partial<{ open: number; close: number }>;
22
22
  // Upstream's `CSSStylesProperty`, with `React.CSSProperties` → the octane style
23
23
  // object form.
24
24
  type CSSStylesProperty =
25
- | CSSProperties
26
- | ((params: { side: Side; placement: Placement }) => CSSProperties);
25
+ CSSProperties | ((params: { side: Side; placement: Placement }) => CSSProperties);
27
26
 
28
27
  function useDelayUnmount(open: boolean, durationMs: number, slot: symbol | undefined): boolean {
29
28
  const [isMounted, setIsMounted] = useState(open, subSlot(slot, 'mounted'));
@@ -43,8 +43,7 @@ export interface UseTypeaheadProps {
43
43
  * @default lowercase-finder
44
44
  */
45
45
  findMatch?:
46
- | null
47
- | ((list: Array<string | null>, typedString: string) => string | null | undefined);
46
+ null | ((list: Array<string | null>, typedString: string) => string | null | undefined);
48
47
  /**
49
48
  * The number of milliseconds to wait before resetting the typed string.
50
49
  * @default 750
@@ -298,7 +298,7 @@ export function deepEqual(a: any, b: any): boolean {
298
298
  if (Array.isArray(a)) {
299
299
  length = a.length;
300
300
  if (length !== b.length) return false;
301
- for (i = length; i-- !== 0; ) {
301
+ for (i = length; i-- !== 0;) {
302
302
  if (!deepEqual(a[i], b[i])) {
303
303
  return false;
304
304
  }
@@ -310,12 +310,12 @@ export function deepEqual(a: any, b: any): boolean {
310
310
  if (length !== Object.keys(b).length) {
311
311
  return false;
312
312
  }
313
- for (i = length; i-- !== 0; ) {
313
+ for (i = length; i-- !== 0;) {
314
314
  if (!{}.hasOwnProperty.call(b, keys[i])) {
315
315
  return false;
316
316
  }
317
317
  }
318
- for (i = length; i-- !== 0; ) {
318
+ for (i = length; i-- !== 0;) {
319
319
  const key = keys[i];
320
320
  if (key === '_owner' && a.$$typeof) {
321
321
  continue;