@xenosystem/blocks 0.13.2 → 0.13.3

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.
@@ -879,8 +879,12 @@ function applyTransportUi(c, intent) {
879
879
  const tick = c.fractionToTick(intent.fraction);
880
880
  if (intent.phase === "begin") c.beginScrub(tick);
881
881
  else if (intent.phase === "move") c.updateScrub(tick);
882
- else if (intent.phase === "end") c.endScrub();
883
- else c.cancelScrub();
882
+ else if (intent.phase === "end") {
883
+ if (c.isScrubbing()) {
884
+ c.updateScrub(tick);
885
+ c.endScrub();
886
+ } else c.seek(tick);
887
+ } else c.cancelScrub();
884
888
  break;
885
889
  }
886
890
  }
@@ -1031,6 +1035,7 @@ function TransportPanelView({ controller }) {
1031
1035
  const scrub = useCallback((fraction, phase) => applyTransportUi(controller, { kind: "scrub", fraction, phase }), [controller]);
1032
1036
  const onKeyDown = useCallback(
1033
1037
  (e) => {
1038
+ if (e.defaultPrevented) return;
1034
1039
  if (controller.handleKey({ key: e.key, ctrl: e.ctrlKey, meta: e.metaKey, shift: e.shiftKey }, "down")) {
1035
1040
  e.preventDefault();
1036
1041
  e.stopPropagation();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xenosystem/blocks",
3
- "version": "0.13.2",
3
+ "version": "0.13.3",
4
4
  "description": "XENO Blocks — rung 3 of the front ladder: components composed into a contract-bearing unit (manifest: ports, intents, commands, agent surface), rendered by @xenosystem/workbench. ONE package, one subpath per family (/auth, /edit, /data, /time, /ops, /trust, /agent), one named export per block — XENO PACKAGE NAMING - STANDARD.md.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -64,7 +64,7 @@
64
64
  "peerDependencies": {
65
65
  "@duckdb/duckdb-wasm": ">=1.28.0",
66
66
  "@xenosystem/block-sdk": ">=0.3.3 <1",
67
- "@xenosystem/components": ">=0.17.2 <1",
67
+ "@xenosystem/components": ">=0.18.0 <1",
68
68
  "@xenosystem/data-core": "^0.1.0",
69
69
  "@xenosystem/elements-react": ">=0.0.1",
70
70
  "@xenosystem/time-core": "^0.1.0",
@@ -80,7 +80,7 @@
80
80
  "@types/react": "^19.0.0",
81
81
  "@types/react-dom": "^19.0.0",
82
82
  "@xenosystem/block-sdk": "^0.3.3",
83
- "@xenosystem/components": "^0.17.2",
83
+ "@xenosystem/components": "^0.18.0",
84
84
  "@xenosystem/data-core": "^0.1.0",
85
85
  "@xenosystem/elements-react": "0.0.1",
86
86
  "@xenosystem/time-core": "^0.1.0",