@kolkrabbi/kol-hardware 0.9.0 → 0.9.1

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": "@kolkrabbi/kol-hardware",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "private": false,
5
5
  "description": "Panel controls for instruments",
6
6
  "license": "MIT",
@@ -20,9 +20,9 @@
20
20
  "react-dom": "^18.3.0 || ^19.0.0"
21
21
  },
22
22
  "devDependencies": {
23
- "@kolkrabbi/kol-component": "^0.311.0",
24
23
  "@kolkrabbi/kol-icons": "^0.52.0",
25
- "@kolkrabbi/kol-theme": "^0.196.0"
24
+ "@kolkrabbi/kol-theme": "^0.196.0",
25
+ "@kolkrabbi/kol-component": "^0.311.2"
26
26
  },
27
27
  "files": [
28
28
  "src",
@@ -2,7 +2,7 @@ import { createContext, memo, useContext } from 'react'
2
2
  import { HP_PX, TOTAL_HP, ROW_HEIGHT, RAIL_HEIGHT, hpToPx } from './eurorack.js'
3
3
 
4
4
  /* the case's width in HP, handed to its rows */
5
- const RackHpContext = createContext(TOTAL_HP)
5
+ const RackHpContext = (globalThis[Symbol.for('@kolkrabbi/kol-hardware/RackHpContext')] ??= createContext(TOTAL_HP))
6
6
 
7
7
  const Rail = memo(function Rail({ hp }) {
8
8
  return (