@octanejs/resizable-panels 0.0.16 → 0.0.18

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/resizable-panels",
3
- "version": "0.0.16",
3
+ "version": "0.0.18",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "engines": {
@@ -29,7 +29,7 @@
29
29
  ".": "./src/index.tsrx"
30
30
  },
31
31
  "peerDependencies": {
32
- "octane": "^0.7.0"
32
+ "octane": "^0.9.0"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@testing-library/jest-dom": "^6.9.1",
@@ -46,8 +46,8 @@
46
46
  "vite": "^8.1.5",
47
47
  "vitest": "3.2.4",
48
48
  "vitest-fail-on-console": "^0.10.1",
49
- "@octanejs/testing-library": "0.1.56",
50
- "octane": "0.7.0"
49
+ "@octanejs/testing-library": "0.1.58",
50
+ "octane": "0.9.0"
51
51
  },
52
52
  "scripts": {
53
53
  "test": "pnpm upstream:materialize && vitest run --root ../.. --project resizable-panels && vitest run --root ../.. --project resizable-panels-server && pnpm test:upstream && vitest run --root ../.. --project resizable-panels-browser",
@@ -56,6 +56,6 @@
56
56
  "upstream:verify": "node ../../scripts/react-parity/verify-provenance.mjs && node audit/verify-provenance.mjs",
57
57
  "upstream:verify:negative-controls": "node audit/verify-provenance.mjs --negative-controls",
58
58
  "typecheck:probes": "tsc --noEmit -p audit/type-probes/tsconfig.pristine.json && tsrx-tsc --noEmit -p typetests/tsconfig.json",
59
- "typecheck": "tsrx-tsc --noEmit -p tsconfig.json && tsrx-tsc --noEmit -p typetests/tsconfig.json"
59
+ "typecheck": "octane-tsc -p tsconfig.json -p typetests/tsconfig.json"
60
60
  }
61
61
  }
@@ -23,11 +23,13 @@ export function onDocumentPointerDown(event: PointerEvent) {
23
23
  if (!didChangeFocus) {
24
24
  didChangeFocus = true;
25
25
 
26
+ // `focusVisible` is newer than some consumers' DOM lib; the assertion keeps
27
+ // both older and current lib.dom versions compiling.
28
+ // https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#browser_compatibility
26
29
  current.separator.element.focus({
27
- // @ts-expect-error https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#browser_compatibility
28
30
  focusVisible: false,
29
31
  preventScroll: true,
30
- });
32
+ } as FocusOptions);
31
33
 
32
34
  // TRICKY
33
35
  // Calling setPointerCapture() here would help with detecting pointer "pointermove"/"pointerup" events that happen over iframes