zds-pickers 4.1.1 → 4.1.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.
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/other/SoundFontProvider.js +4 -4
- package/dist/types/other/SoundFontProvider.d.ts +1 -1
- package/lib/soundfonts/acoustic_grand_piano-mp3.js +107 -0
- package/package.json +5 -1
- package/.editorconfig +0 -19
- package/.github/workflows/codeql-analysis.yml +0 -67
- package/.nvmrc +0 -1
- package/.prettierignore +0 -0
- package/.prettierrc +0 -13
- package/.storybook/main.ts +0 -42
- package/.storybook/manager.ts +0 -12
- package/.storybook/preview.tsx +0 -26
- package/.vscode/extensions.json +0 -32
- package/.vscode/javascript.code-snippets +0 -229
- package/.vscode/settings.json +0 -358
- package/biome.jsonc +0 -158
- package/lib/@types/nebiru-react-rotary-knob.d.ts +0 -20
- package/lib/@types/react-svgmt.d.ts +0 -74
- package/lib/@types/zds-mappings.d.ts +0 -55
- package/lib/@types/zds-react-piano.d.ts +0 -17
- package/lib/hooks/useComponentSize.ts +0 -52
- package/lib/hooks/useStateWithDynamicDefault.ts +0 -13
- package/lib/index.ts +0 -52
- package/lib/midi/ccValues.ts +0 -139
- package/lib/midi/export.ts +0 -88
- package/lib/other/DefaultTooltip.ts +0 -14
- package/lib/other/OctavePlayer.tsx +0 -139
- package/lib/other/SoundFontProvider.tsx +0 -214
- package/lib/other/SvgText.tsx +0 -221
- package/lib/pickers/CCPicker.tsx +0 -28
- package/lib/pickers/ChannelMappingPicker.tsx +0 -150
- package/lib/pickers/ChannelPicker.tsx +0 -84
- package/lib/pickers/KeyPicker.tsx +0 -55
- package/lib/pickers/Knob.tsx +0 -93
- package/lib/pickers/KnobPicker.tsx +0 -93
- package/lib/pickers/LatchPicker.tsx +0 -33
- package/lib/pickers/MappingPicker.tsx +0 -68
- package/lib/pickers/NotePicker.tsx +0 -95
- package/lib/pickers/PianoPicker.tsx +0 -81
- package/lib/pickers/PolarityPicker.tsx +0 -39
- package/lib/pickers/ResponseCurve.tsx +0 -251
- package/lib/pickers/ResponseCurvePicker.tsx +0 -75
- package/lib/pickers/Select.tsx +0 -268
- package/lib/pickers/StatusPicker.tsx +0 -30
- package/lib/pickers/ValuePicker.tsx +0 -67
- package/lib/pickers/knobSkin10.tsx +0 -112
- package/lib/rotaryKnob/InternalInput.tsx +0 -43
- package/lib/rotaryKnob/Types.ts +0 -6
- package/lib/rotaryKnob/helpers/DrawCircle.tsx +0 -41
- package/lib/rotaryKnob/helpers/DrawLine.tsx +0 -32
- package/lib/rotaryKnob/helpers/HelpersOverlay.tsx +0 -43
- package/lib/rotaryKnob/helpers/KnobVisualHelpers.tsx +0 -138
- package/lib/rotaryKnob/index.tsx +0 -417
- package/lib/rotaryKnob/knobdefaultskin.ts +0 -69
- package/lib/rotaryKnob/utils.ts +0 -112
- package/lib/utils.ts +0 -41
- package/stories/assets/sampleStyles.css +0 -365
- package/stories/assets/utils.js +0 -7
- package/stories/picker.stories.tsx +0 -432
- package/tsconfig.json +0 -35
- package/vite.config.ts +0 -41
- /package/{lib/temp → dist/soundfonts}/acoustic_grand_piano-mp3.js +0 -0
package/.vscode/settings.json
DELETED
|
@@ -1,358 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"[json]": {
|
|
3
|
-
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
4
|
-
},
|
|
5
|
-
"cSpell.words": [
|
|
6
|
-
"accentcolor",
|
|
7
|
-
"acumin",
|
|
8
|
-
"alertdialog",
|
|
9
|
-
"annotatable",
|
|
10
|
-
"antialiased",
|
|
11
|
-
"apos",
|
|
12
|
-
"appbar",
|
|
13
|
-
"arity",
|
|
14
|
-
"assetcode",
|
|
15
|
-
"autobind",
|
|
16
|
-
"autoinstall",
|
|
17
|
-
"autosize",
|
|
18
|
-
"avclub",
|
|
19
|
-
"bgcolor",
|
|
20
|
-
"biblio",
|
|
21
|
-
"bitbucket",
|
|
22
|
-
"blastpoll",
|
|
23
|
-
"Bookhead",
|
|
24
|
-
"borderless",
|
|
25
|
-
"browserslist",
|
|
26
|
-
"builtins",
|
|
27
|
-
"callout",
|
|
28
|
-
"callouts",
|
|
29
|
-
"camelcase",
|
|
30
|
-
"caniuse",
|
|
31
|
-
"cata",
|
|
32
|
-
"classnames",
|
|
33
|
-
"clearfix",
|
|
34
|
-
"colspan",
|
|
35
|
-
"columnheader",
|
|
36
|
-
"combinator",
|
|
37
|
-
"combobox",
|
|
38
|
-
"Confirmer",
|
|
39
|
-
"Consolas",
|
|
40
|
-
"consts",
|
|
41
|
-
"contenteditable",
|
|
42
|
-
"contenthash",
|
|
43
|
-
"contentid",
|
|
44
|
-
"contentsubtype",
|
|
45
|
-
"contenttype",
|
|
46
|
-
"contrib",
|
|
47
|
-
"controltype",
|
|
48
|
-
"corejs",
|
|
49
|
-
"crossfades",
|
|
50
|
-
"crosshair",
|
|
51
|
-
"cssnext",
|
|
52
|
-
"dash",
|
|
53
|
-
"deauthorize",
|
|
54
|
-
"debounced",
|
|
55
|
-
"decycle",
|
|
56
|
-
"dedupe",
|
|
57
|
-
"deduped",
|
|
58
|
-
"deepmerge",
|
|
59
|
-
"deletable",
|
|
60
|
-
"desaturate",
|
|
61
|
-
"describedby",
|
|
62
|
-
"devs",
|
|
63
|
-
"devtool",
|
|
64
|
-
"devtools",
|
|
65
|
-
"doubleclick",
|
|
66
|
-
"dpcm",
|
|
67
|
-
"draftjs",
|
|
68
|
-
"dragpreview",
|
|
69
|
-
"Dropdown",
|
|
70
|
-
"Droppable",
|
|
71
|
-
"dualheadline",
|
|
72
|
-
"ELAR",
|
|
73
|
-
"enlargen",
|
|
74
|
-
"extq",
|
|
75
|
-
"Falsy",
|
|
76
|
-
"favicons",
|
|
77
|
-
"filesize",
|
|
78
|
-
"flowplayer",
|
|
79
|
-
"flowtype",
|
|
80
|
-
"fname",
|
|
81
|
-
"Fontello",
|
|
82
|
-
"formik",
|
|
83
|
-
"fullchain",
|
|
84
|
-
"Fullscreen",
|
|
85
|
-
"gdocs",
|
|
86
|
-
"gradebook",
|
|
87
|
-
"grammarly",
|
|
88
|
-
"grayscale",
|
|
89
|
-
"greyscale",
|
|
90
|
-
"hacky",
|
|
91
|
-
"Hardcode",
|
|
92
|
-
"harker",
|
|
93
|
-
"haspopup",
|
|
94
|
-
"healthcheck",
|
|
95
|
-
"hellip",
|
|
96
|
-
"Helvetica",
|
|
97
|
-
"hideothers",
|
|
98
|
-
"highjpg",
|
|
99
|
-
"Hotspot",
|
|
100
|
-
"hsshc",
|
|
101
|
-
"htaccess",
|
|
102
|
-
"Idxs",
|
|
103
|
-
"immer",
|
|
104
|
-
"indentfirstline",
|
|
105
|
-
"interactives",
|
|
106
|
-
"isect",
|
|
107
|
-
"keyframes",
|
|
108
|
-
"labelledby",
|
|
109
|
-
"lcov",
|
|
110
|
-
"lectura",
|
|
111
|
-
"lexile",
|
|
112
|
-
"lexiles",
|
|
113
|
-
"likei",
|
|
114
|
-
"lname",
|
|
115
|
-
"loadouts",
|
|
116
|
-
"localstorage",
|
|
117
|
-
"macos",
|
|
118
|
-
"mailto",
|
|
119
|
-
"managedtabmode",
|
|
120
|
-
"markdownlint",
|
|
121
|
-
"mediaquery",
|
|
122
|
-
"memoized",
|
|
123
|
-
"Menlo",
|
|
124
|
-
"middlewares",
|
|
125
|
-
"minimap",
|
|
126
|
-
"mixins",
|
|
127
|
-
"mkdocs",
|
|
128
|
-
"mockdate",
|
|
129
|
-
"monospace",
|
|
130
|
-
"mpegurl",
|
|
131
|
-
"multiline",
|
|
132
|
-
"multitool",
|
|
133
|
-
"nassignments",
|
|
134
|
-
"nbinder",
|
|
135
|
-
"nblast",
|
|
136
|
-
"nbsp",
|
|
137
|
-
"ndefine",
|
|
138
|
-
"Newbery",
|
|
139
|
-
"nintro",
|
|
140
|
-
"nlibrary",
|
|
141
|
-
"nmodel",
|
|
142
|
-
"nonclassified",
|
|
143
|
-
"noninteractive",
|
|
144
|
-
"noopener",
|
|
145
|
-
"noreferrer",
|
|
146
|
-
"notistack",
|
|
147
|
-
"novalidate",
|
|
148
|
-
"noverview",
|
|
149
|
-
"nowrap",
|
|
150
|
-
"npractice",
|
|
151
|
-
"nread",
|
|
152
|
-
"nreview",
|
|
153
|
-
"nsynctv",
|
|
154
|
-
"nthink",
|
|
155
|
-
"nusinglanguage",
|
|
156
|
-
"nvocab",
|
|
157
|
-
"nwrite",
|
|
158
|
-
"nyourturn",
|
|
159
|
-
"objs",
|
|
160
|
-
"omittable",
|
|
161
|
-
"Outdent",
|
|
162
|
-
"pageset",
|
|
163
|
-
"paren",
|
|
164
|
-
"partch",
|
|
165
|
-
"pasteandmatchstyle",
|
|
166
|
-
"piechart",
|
|
167
|
-
"pinnable",
|
|
168
|
-
"pixi",
|
|
169
|
-
"playbackrates",
|
|
170
|
-
"plusplus",
|
|
171
|
-
"pmmmwh",
|
|
172
|
-
"polyfill",
|
|
173
|
-
"Portalling",
|
|
174
|
-
"preflight",
|
|
175
|
-
"Prefs",
|
|
176
|
-
"preinstall",
|
|
177
|
-
"preloaded",
|
|
178
|
-
"println",
|
|
179
|
-
"privkey",
|
|
180
|
-
"Quik",
|
|
181
|
-
"quikpoll",
|
|
182
|
-
"rainforest",
|
|
183
|
-
"rainforests",
|
|
184
|
-
"rangeslider",
|
|
185
|
-
"recurse",
|
|
186
|
-
"redbox",
|
|
187
|
-
"rehooks",
|
|
188
|
-
"renderprops",
|
|
189
|
-
"rerender",
|
|
190
|
-
"reselect",
|
|
191
|
-
"reselector",
|
|
192
|
-
"resetzoom",
|
|
193
|
-
"reviewee",
|
|
194
|
-
"rfdc",
|
|
195
|
-
"Roboto",
|
|
196
|
-
"rotater",
|
|
197
|
-
"rowgroup",
|
|
198
|
-
"rowheader",
|
|
199
|
-
"rowspan",
|
|
200
|
-
"sbblast",
|
|
201
|
-
"sbpoll",
|
|
202
|
-
"sbvocab",
|
|
203
|
-
"scorable",
|
|
204
|
-
"scrollable",
|
|
205
|
-
"scrollbar",
|
|
206
|
-
"scrollbars",
|
|
207
|
-
"Scroller",
|
|
208
|
-
"seekbar",
|
|
209
|
-
"selectable",
|
|
210
|
-
"selectall",
|
|
211
|
-
"semibold",
|
|
212
|
-
"serializer",
|
|
213
|
-
"Serializers",
|
|
214
|
-
"shallowequal",
|
|
215
|
-
"showdate",
|
|
216
|
-
"sidebarstate",
|
|
217
|
-
"signin",
|
|
218
|
-
"skillstv",
|
|
219
|
-
"smtp",
|
|
220
|
-
"Snackbar",
|
|
221
|
-
"soundfont",
|
|
222
|
-
"spacebar",
|
|
223
|
-
"spaghettification",
|
|
224
|
-
"spinbutton",
|
|
225
|
-
"squeries",
|
|
226
|
-
"Squery",
|
|
227
|
-
"sstls",
|
|
228
|
-
"storysource",
|
|
229
|
-
"strikethrough",
|
|
230
|
-
"studysync",
|
|
231
|
-
"subappbar",
|
|
232
|
-
"submenu",
|
|
233
|
-
"subnav",
|
|
234
|
-
"substate",
|
|
235
|
-
"Substates",
|
|
236
|
-
"subvariant",
|
|
237
|
-
"superstatic",
|
|
238
|
-
"svgmt",
|
|
239
|
-
"svgr",
|
|
240
|
-
"svgsprites",
|
|
241
|
-
"swcrc",
|
|
242
|
-
"swipeable",
|
|
243
|
-
"swiper",
|
|
244
|
-
"SYNCBLAST",
|
|
245
|
-
"syncblasts",
|
|
246
|
-
"Synctv",
|
|
247
|
-
"tablist",
|
|
248
|
-
"tabpanel",
|
|
249
|
-
"Tahoma",
|
|
250
|
-
"tanuki",
|
|
251
|
-
"tawk",
|
|
252
|
-
"testid",
|
|
253
|
-
"textbox",
|
|
254
|
-
"themr",
|
|
255
|
-
"thunked",
|
|
256
|
-
"togglefullscreen",
|
|
257
|
-
"toolbutton",
|
|
258
|
-
"Tooltipped",
|
|
259
|
-
"tooltips",
|
|
260
|
-
"Truthy",
|
|
261
|
-
"tunajs",
|
|
262
|
-
"Turnitin",
|
|
263
|
-
"unhide",
|
|
264
|
-
"Uniqs",
|
|
265
|
-
"unmock",
|
|
266
|
-
"Unmount",
|
|
267
|
-
"unmounting",
|
|
268
|
-
"Unsectioned",
|
|
269
|
-
"Unstyled",
|
|
270
|
-
"Validators",
|
|
271
|
-
"valuenow",
|
|
272
|
-
"valuetext",
|
|
273
|
-
"videojs",
|
|
274
|
-
"visualiser",
|
|
275
|
-
"voiceovers",
|
|
276
|
-
"WCAG",
|
|
277
|
-
"webfont",
|
|
278
|
-
"webfontloader",
|
|
279
|
-
"webvtt",
|
|
280
|
-
"Wireframe",
|
|
281
|
-
"wordcloud",
|
|
282
|
-
"xlarge",
|
|
283
|
-
"xlink",
|
|
284
|
-
"xsmall",
|
|
285
|
-
"xxlarge",
|
|
286
|
-
"xxsmall",
|
|
287
|
-
"xxxlarge",
|
|
288
|
-
"zoomin",
|
|
289
|
-
"zoomout",
|
|
290
|
-
"Zoomy"
|
|
291
|
-
],
|
|
292
|
-
"editor.autoClosingBrackets": "beforeWhitespace",
|
|
293
|
-
"editor.autoClosingQuotes": "beforeWhitespace",
|
|
294
|
-
"editor.autoIndent": "full",
|
|
295
|
-
"editor.codeActionsOnSave": {
|
|
296
|
-
"source.fixAll.eslint": "explicit"
|
|
297
|
-
},
|
|
298
|
-
"editor.detectIndentation": false,
|
|
299
|
-
"editor.formatOnPaste": false,
|
|
300
|
-
"editor.formatOnType": false,
|
|
301
|
-
"editor.formatOnSave": true,
|
|
302
|
-
"editor.formatOnSaveMode": "modifications",
|
|
303
|
-
"editor.tabCompletion": "on",
|
|
304
|
-
"emmet.excludeLanguages": ["markdown", "javascript"],
|
|
305
|
-
"emmet.includeLanguages": {
|
|
306
|
-
"javascript": "javascriptreact",
|
|
307
|
-
"markdown": "html"
|
|
308
|
-
},
|
|
309
|
-
"eslint.alwaysShowStatus": true,
|
|
310
|
-
"eslint.packageManager": "yarn",
|
|
311
|
-
"eslint.workingDirectories": [
|
|
312
|
-
{
|
|
313
|
-
"changeProcessCWD": true,
|
|
314
|
-
"directory": "./"
|
|
315
|
-
}
|
|
316
|
-
],
|
|
317
|
-
"eslint.options": {
|
|
318
|
-
"extensions": [".js", ".jsx", ".md", ".mdx", ".ts", ".tsx"]
|
|
319
|
-
},
|
|
320
|
-
"eslint.validate": [
|
|
321
|
-
"javascript",
|
|
322
|
-
"javascriptreact",
|
|
323
|
-
"markdown",
|
|
324
|
-
"mdx",
|
|
325
|
-
"typescript",
|
|
326
|
-
"typescriptreact"
|
|
327
|
-
],
|
|
328
|
-
"files.exclude": {
|
|
329
|
-
"**/*.flow": true,
|
|
330
|
-
"**/.DS_Store": true,
|
|
331
|
-
"**/.git": true,
|
|
332
|
-
"**/.hg": true,
|
|
333
|
-
"**/.svn": true,
|
|
334
|
-
"**/CVS": true,
|
|
335
|
-
".cache": true,
|
|
336
|
-
".vscode": true,
|
|
337
|
-
"coverage": true,
|
|
338
|
-
"dist": true,
|
|
339
|
-
"flow-coverage": true,
|
|
340
|
-
"node_modules": true
|
|
341
|
-
},
|
|
342
|
-
"files.insertFinalNewline": true,
|
|
343
|
-
"files.trimTrailingWhitespace": true,
|
|
344
|
-
"html.format.endWithNewline": true,
|
|
345
|
-
"javascript.validate.enable": false,
|
|
346
|
-
"js/ts.implicitProjectConfig.checkJs": false,
|
|
347
|
-
"search.exclude": {
|
|
348
|
-
"**/bower_components": true,
|
|
349
|
-
"**/node_modules": true,
|
|
350
|
-
"build": true,
|
|
351
|
-
"coverage": true,
|
|
352
|
-
"dist": true,
|
|
353
|
-
"flow-coverage": true,
|
|
354
|
-
"native/chrome": true
|
|
355
|
-
},
|
|
356
|
-
"terminal.integrated.shellArgs.osx": [],
|
|
357
|
-
"window.title": "${rootName} ${activeEditorMedium} ${dirty}"
|
|
358
|
-
}
|
package/biome.jsonc
DELETED
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://biomejs.dev/schemas/1.9.3/schema.json",
|
|
3
|
-
"vcs": {
|
|
4
|
-
"enabled": true,
|
|
5
|
-
"clientKind": "git",
|
|
6
|
-
"useIgnoreFile": false
|
|
7
|
-
},
|
|
8
|
-
"files": {
|
|
9
|
-
"ignoreUnknown": false,
|
|
10
|
-
"include": [
|
|
11
|
-
//
|
|
12
|
-
"**/*.[tj]s*"
|
|
13
|
-
],
|
|
14
|
-
"ignore": [
|
|
15
|
-
//
|
|
16
|
-
"**/dist",
|
|
17
|
-
"**/playwright-report",
|
|
18
|
-
"**/coverage",
|
|
19
|
-
"**/e2e-results",
|
|
20
|
-
"**/e2e/__config__/sessions",
|
|
21
|
-
"**/.storybook/site",
|
|
22
|
-
"**/__mocks__",
|
|
23
|
-
"**/__config__",
|
|
24
|
-
"*.spec.*",
|
|
25
|
-
"acoustic_grand_piano-mp3.js"
|
|
26
|
-
]
|
|
27
|
-
},
|
|
28
|
-
"formatter": {
|
|
29
|
-
"enabled": true,
|
|
30
|
-
|
|
31
|
-
"attributePosition": "multiline",
|
|
32
|
-
"formatWithErrors": true,
|
|
33
|
-
"ignore": [],
|
|
34
|
-
"indentStyle": "space",
|
|
35
|
-
"indentWidth": 2,
|
|
36
|
-
"lineWidth": 80,
|
|
37
|
-
"useEditorconfig": true
|
|
38
|
-
},
|
|
39
|
-
"organizeImports": {
|
|
40
|
-
"enabled": true,
|
|
41
|
-
"ignore": []
|
|
42
|
-
},
|
|
43
|
-
"linter": {
|
|
44
|
-
"enabled": true,
|
|
45
|
-
"ignore": [],
|
|
46
|
-
"rules": {
|
|
47
|
-
"recommended": true,
|
|
48
|
-
|
|
49
|
-
"a11y": {
|
|
50
|
-
"noLabelWithoutControl": "off",
|
|
51
|
-
"noSvgWithoutTitle": "off",
|
|
52
|
-
"useFocusableInteractive": "off",
|
|
53
|
-
"useKeyWithClickEvents": "off",
|
|
54
|
-
"useSemanticElements": "off",
|
|
55
|
-
"useAltText": "off"
|
|
56
|
-
},
|
|
57
|
-
|
|
58
|
-
"complexity": {
|
|
59
|
-
"noExcessiveCognitiveComplexity": {
|
|
60
|
-
"level": "error",
|
|
61
|
-
"options": {
|
|
62
|
-
"maxAllowedComplexity": 20
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
"noForEach": "error",
|
|
66
|
-
"noUselessStringConcat": "error",
|
|
67
|
-
"noUselessUndefinedInitialization": "error",
|
|
68
|
-
"noVoid": "error",
|
|
69
|
-
"useSimplifiedLogicExpression": "error"
|
|
70
|
-
},
|
|
71
|
-
|
|
72
|
-
"correctness": {
|
|
73
|
-
"noInvalidNewBuiltin": "error",
|
|
74
|
-
"noNewSymbol": "error",
|
|
75
|
-
"noNodejsModules": "off",
|
|
76
|
-
// fails for aliases atm
|
|
77
|
-
// "noUndeclaredDependencies": "error",
|
|
78
|
-
"noUndeclaredVariables": "error",
|
|
79
|
-
"noUnusedFunctionParameters": {
|
|
80
|
-
"level": "error",
|
|
81
|
-
"fix": "none"
|
|
82
|
-
},
|
|
83
|
-
"noUnusedImports": "error",
|
|
84
|
-
"noUnusedPrivateClassMembers": {
|
|
85
|
-
"level": "error",
|
|
86
|
-
"fix": "none"
|
|
87
|
-
},
|
|
88
|
-
"noUnusedVariables": {
|
|
89
|
-
"level": "error",
|
|
90
|
-
"fix": "none"
|
|
91
|
-
},
|
|
92
|
-
"useHookAtTopLevel": "error"
|
|
93
|
-
},
|
|
94
|
-
|
|
95
|
-
"performance": {
|
|
96
|
-
"noReExportAll": "off",
|
|
97
|
-
"useTopLevelRegex": "off",
|
|
98
|
-
"noAccumulatingSpread": "error"
|
|
99
|
-
},
|
|
100
|
-
|
|
101
|
-
"style": {
|
|
102
|
-
"noDefaultExport": "off",
|
|
103
|
-
"noDoneCallback": "error",
|
|
104
|
-
"noNegationElse": "error",
|
|
105
|
-
"noYodaExpression": "error",
|
|
106
|
-
"useBlockStatements": "off",
|
|
107
|
-
"useCollapsedElseIf": "error",
|
|
108
|
-
"useConsistentArrayType": "error",
|
|
109
|
-
"useConsistentBuiltinInstantiation": "error",
|
|
110
|
-
"useDefaultSwitchClause": "error",
|
|
111
|
-
"useForOf": "warn",
|
|
112
|
-
"useFragmentSyntax": "error",
|
|
113
|
-
"useShorthandArrayType": "error",
|
|
114
|
-
"useShorthandAssign": "error",
|
|
115
|
-
"useThrowNewError": "error",
|
|
116
|
-
"useThrowOnlyError": "error"
|
|
117
|
-
},
|
|
118
|
-
|
|
119
|
-
"suspicious": {
|
|
120
|
-
"noArrayIndexKey": "off",
|
|
121
|
-
"noConsole": "error",
|
|
122
|
-
"noEvolvingTypes": "error",
|
|
123
|
-
"noMisplacedAssertion": "error",
|
|
124
|
-
"noSkippedTests": "error",
|
|
125
|
-
"useAwait": "error",
|
|
126
|
-
"useErrorMessage": "error",
|
|
127
|
-
"useNumberToFixedDigitsArgument": "error"
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
},
|
|
131
|
-
"javascript": {
|
|
132
|
-
"formatter": {
|
|
133
|
-
"enabled": true,
|
|
134
|
-
|
|
135
|
-
"arrowParentheses": "asNeeded",
|
|
136
|
-
"attributePosition": "multiline",
|
|
137
|
-
"bracketSameLine": true,
|
|
138
|
-
"bracketSpacing": true,
|
|
139
|
-
"jsxQuoteStyle": "double",
|
|
140
|
-
"quoteProperties": "asNeeded",
|
|
141
|
-
"quoteStyle": "single",
|
|
142
|
-
"semicolons": "asNeeded",
|
|
143
|
-
"trailingCommas": "all"
|
|
144
|
-
},
|
|
145
|
-
"globals": ["gapi", "afterEach", "React"]
|
|
146
|
-
},
|
|
147
|
-
"json": {
|
|
148
|
-
"parser": {
|
|
149
|
-
"allowComments": true,
|
|
150
|
-
"allowTrailingCommas": true
|
|
151
|
-
},
|
|
152
|
-
"formatter": {
|
|
153
|
-
"trailingCommas": "none"
|
|
154
|
-
}
|
|
155
|
-
},
|
|
156
|
-
|
|
157
|
-
"overrides": []
|
|
158
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
declare module 'nebiru-react-rotary-knob' {
|
|
2
|
-
const Knob: React.ComponentType<{
|
|
3
|
-
clampMax: number
|
|
4
|
-
clampMin: number
|
|
5
|
-
className: string
|
|
6
|
-
disabled: boolean
|
|
7
|
-
max: number
|
|
8
|
-
min: number
|
|
9
|
-
onChange: (value: number) => void
|
|
10
|
-
onWheel?: (event: WheelEvent) => void
|
|
11
|
-
preciseMode: boolean
|
|
12
|
-
rotateDegrees: number
|
|
13
|
-
skin: typeof import('./knobSkin10').default
|
|
14
|
-
style: React.CSSProperties
|
|
15
|
-
unlockDistance: number
|
|
16
|
-
value: number
|
|
17
|
-
}>
|
|
18
|
-
|
|
19
|
-
export { Knob }
|
|
20
|
-
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
declare module 'react-svgmt' {
|
|
2
|
-
import React from 'react'
|
|
3
|
-
|
|
4
|
-
type DrawCircleProps = React.SVGProps<SVGCircleElement> & {
|
|
5
|
-
r: number
|
|
6
|
-
borderColor?: string
|
|
7
|
-
fillColor?: string
|
|
8
|
-
borderWidth?: number
|
|
9
|
-
fillOpacity: number
|
|
10
|
-
cx: number
|
|
11
|
-
cy: number
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
class DrawCircle extends React.Component<DrawCircleProps> {
|
|
15
|
-
render(): React.JSX.Element
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
type InternalInputProps = {
|
|
19
|
-
min: number
|
|
20
|
-
max: number
|
|
21
|
-
value: number
|
|
22
|
-
step?: number
|
|
23
|
-
inputRef: React.RefObject<HTMLInputElement>
|
|
24
|
-
onChange: (val: number) => void
|
|
25
|
-
style?: React.CSSProperties
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
class InternalInput extends React.Component<InternalInputProps> {
|
|
29
|
-
static defaultProps: {
|
|
30
|
-
step: number
|
|
31
|
-
}
|
|
32
|
-
render(): React.JSX.Element
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
type Point = {
|
|
36
|
-
x: number
|
|
37
|
-
y: number
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
type DrawLineProps = React.SVGProps<SVGLineElement> & {
|
|
41
|
-
width?: number
|
|
42
|
-
color?: string
|
|
43
|
-
p1: Point
|
|
44
|
-
p2: Point
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
class DrawLine extends React.Component<DrawLineProps> {
|
|
48
|
-
render(): React.JSX.Element
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
type SvgLoaderProps = {
|
|
52
|
-
svg?: string
|
|
53
|
-
svgXML?: string
|
|
54
|
-
width?: string | number
|
|
55
|
-
height?: string | number
|
|
56
|
-
style?: React.CSSProperties
|
|
57
|
-
onSVGReady?: (svg: SVGElement) => void
|
|
58
|
-
children?: React.ReactNode
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
type SvgProxyProps = {
|
|
62
|
-
children?: React.ReactNode
|
|
63
|
-
selector: string
|
|
64
|
-
transform?: string
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
class SvgLoader extends React.Component<SvgLoaderProps> {
|
|
68
|
-
render(): React.JSX.Element
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
class SvgProxy extends React.Component<SvgProxyProps> {
|
|
72
|
-
render(): React.JSX.Element
|
|
73
|
-
}
|
|
74
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
declare module 'zds-mappings' {
|
|
2
|
-
function cloneMapping(mappingName: string): Mapping
|
|
3
|
-
function createUserMapping(mappingName: string): Mapping
|
|
4
|
-
function editUserMapping(
|
|
5
|
-
mappingName: string,
|
|
6
|
-
noteNum: number,
|
|
7
|
-
field: string,
|
|
8
|
-
value: string | number,
|
|
9
|
-
): Mapping
|
|
10
|
-
|
|
11
|
-
function getMapping(mappingName: string): Mapping
|
|
12
|
-
|
|
13
|
-
function emptyMapping(): Mapping
|
|
14
|
-
|
|
15
|
-
function getNextAvailableMappingName(path: string): string
|
|
16
|
-
function reverse(mapping: Mapping): string
|
|
17
|
-
function storeMapping(mappingName: string, rawContent: string): void
|
|
18
|
-
function validateContent(content: string): boolean
|
|
19
|
-
|
|
20
|
-
function getAvailableGroups(): { label: string; value: string }[]
|
|
21
|
-
function getStockNames(): string[]
|
|
22
|
-
function getUserMappingNames(): string[]
|
|
23
|
-
function removeMapping(mappingName: string): void
|
|
24
|
-
function renameUserMapping(
|
|
25
|
-
oldKey: string,
|
|
26
|
-
newKey: string,
|
|
27
|
-
): { [key: string]: string | number }
|
|
28
|
-
|
|
29
|
-
interface MapItem {
|
|
30
|
-
note: number
|
|
31
|
-
group: string
|
|
32
|
-
name: string
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
type Mapping = MapItem[]
|
|
36
|
-
|
|
37
|
-
export {
|
|
38
|
-
cloneMapping,
|
|
39
|
-
createUserMapping,
|
|
40
|
-
emptyMapping,
|
|
41
|
-
editUserMapping,
|
|
42
|
-
getAvailableGroups,
|
|
43
|
-
getMapping,
|
|
44
|
-
getNextAvailableMappingName,
|
|
45
|
-
getStockNames,
|
|
46
|
-
getUserMappingNames,
|
|
47
|
-
removeMapping,
|
|
48
|
-
renameUserMapping,
|
|
49
|
-
reverse,
|
|
50
|
-
storeMapping,
|
|
51
|
-
validateContent,
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export type { MapItem, Mapping }
|
|
55
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
declare module 'zds-react-piano' {
|
|
2
|
-
type NoteRange = {
|
|
3
|
-
first: number
|
|
4
|
-
last: number
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
const ReactPiano: React.ComponentType<{
|
|
8
|
-
disabled?: boolean
|
|
9
|
-
keyWidthToHeight: number
|
|
10
|
-
noteRange: NoteRange
|
|
11
|
-
width: number
|
|
12
|
-
}>
|
|
13
|
-
|
|
14
|
-
export { ReactPiano as Piano }
|
|
15
|
-
|
|
16
|
-
export type { NoteRange }
|
|
17
|
-
}
|