zds-pickers 4.1.0 → 4.1.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.
@@ -83,6 +83,7 @@ const SoundfontProvider = (props) => {
83
83
  },
84
84
  };
85
85
  setInstrument(player);
86
+ setIsLoading(false);
86
87
  }
87
88
  else {
88
89
  setIsLoading(false);
@@ -14,7 +14,6 @@ const KeyPicker = (props) => {
14
14
  const octaveStart = 60 + (octave - 4) * 12;
15
15
  const octaveEnd = octaveStart + 11;
16
16
  const shouldHighlight = value !== noSelection && value >= octaveStart && value <= octaveEnd;
17
- return (_jsx(OctavePlayer, { ...rest, selectedNotes: shouldHighlight ? [value] : [], disabled: disabled, height: height, width: width, octave: octave, onClick: handleKeyClick }));
17
+ return (_jsx(OctavePlayer, { ...rest, selectedNotes: shouldHighlight ? [value] : [], disabled: disabled, height: height, width: width, octave: octave, onClick: handleKeyClick, instrumentName: "acoustic_grand_piano" }));
18
18
  };
19
- KeyPicker.propTypes = {};
20
19
  export { KeyPicker };
@@ -7,9 +7,6 @@ type KeyPickerProps = Omit<OctavePlayerProps, 'selectedNotes' | 'onClick'> & {
7
7
  width?: number;
8
8
  octave?: number;
9
9
  };
10
- declare const KeyPicker: {
11
- (props: KeyPickerProps): import("react/jsx-runtime").JSX.Element;
12
- propTypes: {};
13
- };
10
+ declare const KeyPicker: (props: KeyPickerProps) => import("react/jsx-runtime").JSX.Element;
14
11
  export { KeyPicker };
15
12
  export type { KeyPickerProps };
@@ -137,6 +137,7 @@ const SoundfontProvider = (props: SoundfontProviderProps) => {
137
137
  },
138
138
  }
139
139
  setInstrument(player as Soundfont.Player)
140
+ setIsLoading(false)
140
141
  } else {
141
142
  setIsLoading(false)
142
143
  }
@@ -46,11 +46,10 @@ const KeyPicker = (props: KeyPickerProps) => {
46
46
  width={width}
47
47
  octave={octave}
48
48
  onClick={handleKeyClick}
49
+ instrumentName="acoustic_grand_piano"
49
50
  />
50
51
  )
51
52
  }
52
53
 
53
- KeyPicker.propTypes = {}
54
-
55
54
  export { KeyPicker }
56
55
  export type { KeyPickerProps }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zds-pickers",
3
- "version": "4.1.0",
3
+ "version": "4.1.1",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.es.js",
6
6
  "types": "./dist/types/index.d.ts",