react-msaview 5.7.1 → 5.7.2

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.
@@ -11,7 +11,20 @@ const GappynessSlider = observer(function GappynessSlider({ model, }) {
11
11
  "Hide columns w/ >",
12
12
  allowedGappyness,
13
13
  "% gaps"),
14
- React.createElement(Slider, { style: { width: 100 }, min: 1, max: 100, value: allowedGappyness, onChange: (_, val) => {
14
+ React.createElement(Slider
15
+ // Named, because the class alone is not enough to find it from outside.
16
+ // An MSA is normally embedded beside other MUI Sliders (in JBrowse, the
17
+ // linear view's own zoom control), so a `.MuiSlider-thumb` selector in a
18
+ // test or a screenshot spec picks whichever comes first in the document
19
+ // and drives that instead — which reads as this slider ignoring its
20
+ // keyboard. Target `[data-testid="gappyness_slider"] input` to reach the
21
+ // hidden range input MUI renders in the thumb, which is the node that
22
+ // takes focus and receives arrow/PageUp/PageDown.
23
+ //
24
+ // Deliberately NOT `slotProps={{ input: ... }}`: passing slotProps here
25
+ // widens the Slider's generic so `onChange`'s `val` infers as
26
+ // `number | number[]` and no longer assigns to setAllowedGappyness.
27
+ , { "data-testid": "gappyness_slider", style: { width: 100 }, min: 1, max: 100, value: allowedGappyness, onChange: (_, val) => {
15
28
  model.setAllowedGappyness(val);
16
29
  } })));
17
30
  });
@@ -1 +1 @@
1
- {"version":3,"file":"GappynessSlider.js","sourceRoot":"","sources":["../../../src/components/header/GappynessSlider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAIrC,MAAM,eAAe,GAAG,QAAQ,CAAC,SAAS,eAAe,CAAC,EACxD,KAAK,GAGN;IACC,MAAM,EAAE,QAAQ,EAAE,gBAAgB,EAAE,GAAG,KAAK,CAAA;IAC5C,IAAI,CAAC,QAAQ,E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oBAAC,MAAM;QACL,wEAAwE;QACxE,wEAAwE;QACxE,yEAAyE;QACzE,wEAAwE;QACxE,oEAAoE;QACpE,yEAAyE;QACzE,sEAAsE;QACtE,kDAAkD;QAClD,EAAE;QACF,wEAAwE;QACxE,8DAA8D;QAC9D,oEAAoE;2BACxD,kBAAkB,EAC9B,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,EACrB,GAAG,EAAE,CAAC,EACN,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,gBAAgB,EACvB,QAAQ,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE;gBACnB,KAAK,CAAC,mBAAmB,CAAC,GAAG,CAAC,CAAA;YAChC,CAAC,GACD,CACE,CACP,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,eAAe,CAAA"}
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "5.7.1";
1
+ export declare const version = "5.7.2";
package/dist/version.js CHANGED
@@ -1,2 +1,2 @@
1
- export const version = '5.7.1';
1
+ export const version = '5.7.2';
2
2
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-msaview",
3
3
  "author": "Colin",
4
- "version": "5.7.1",
4
+ "version": "5.7.2",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "repository": {
@@ -42,8 +42,8 @@
42
42
  "dependencies": {
43
43
  "colord": "^2.9.3",
44
44
  "flatbush": "^4.6.2",
45
- "@jbrowse/svgcanvas": "5.7.1",
46
- "msa-parsers": "5.7.1"
45
+ "@jbrowse/svgcanvas": "5.7.2",
46
+ "msa-parsers": "5.7.2"
47
47
  },
48
48
  "scripts": {
49
49
  "clean": "rimraf dist bundle",
@@ -20,6 +20,19 @@ const GappynessSlider = observer(function GappynessSlider({
20
20
  Hide columns w/ >{allowedGappyness}% gaps
21
21
  </Typography>
22
22
  <Slider
23
+ // Named, because the class alone is not enough to find it from outside.
24
+ // An MSA is normally embedded beside other MUI Sliders (in JBrowse, the
25
+ // linear view's own zoom control), so a `.MuiSlider-thumb` selector in a
26
+ // test or a screenshot spec picks whichever comes first in the document
27
+ // and drives that instead — which reads as this slider ignoring its
28
+ // keyboard. Target `[data-testid="gappyness_slider"] input` to reach the
29
+ // hidden range input MUI renders in the thumb, which is the node that
30
+ // takes focus and receives arrow/PageUp/PageDown.
31
+ //
32
+ // Deliberately NOT `slotProps={{ input: ... }}`: passing slotProps here
33
+ // widens the Slider's generic so `onChange`'s `val` infers as
34
+ // `number | number[]` and no longer assigns to setAllowedGappyness.
35
+ data-testid="gappyness_slider"
23
36
  style={{ width: 100 }}
24
37
  min={1}
25
38
  max={100}
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const version = '5.7.1'
1
+ export const version = '5.7.2'