@ovnonvo/abc-editor 0.3.5 → 0.4.0
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/README.md +16 -11
- package/dist/abc-editor.cjs.js +11 -16
- package/dist/abc-editor.es.js +1104 -1120
- package/dist/src/components/AbcEditor.d.ts.map +1 -1
- package/dist/src/utils/chamberAbc.d.ts +3 -0
- package/dist/src/utils/chamberAbc.d.ts.map +1 -0
- package/dist/src/utils/highlightAbc.d.ts +1 -21
- package/dist/src/utils/highlightAbc.d.ts.map +1 -1
- package/dist/src/utils/validateAbc.d.ts +4 -4
- package/dist/src/utils/validateAbc.d.ts.map +1 -1
- package/package.json +7 -3
- package/dist/src/components/AbcPreview.d.ts +0 -8
- package/dist/src/components/AbcPreview.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbcEditor.d.ts","sourceRoot":"","sources":["../../../src/components/AbcEditor.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AbcEditor.d.ts","sourceRoot":"","sources":["../../../src/components/AbcEditor.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAE1C,UAAU,cAAc;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AA8BD,eAAO,MAAM,SAAS,GAAI,4BAAsC,cAAc,4CAgV7E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chamberAbc.d.ts","sourceRoot":"","sources":["../../../src/utils/chamberAbc.ts"],"names":[],"mappings":"AAAA,OAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAK7E,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -1,24 +1,4 @@
|
|
|
1
|
-
export interface ParseResult {
|
|
2
|
-
html: string;
|
|
3
|
-
nextIndex: number;
|
|
4
|
-
slurLevelDelta?: number;
|
|
5
|
-
}
|
|
6
1
|
export declare const escapeHtml: (text: string) => string;
|
|
7
|
-
export declare const parseBarLine: (line: string, index: number) => ParseResult | null;
|
|
8
|
-
export declare const parseAccidental: (line: string, index: number) => ParseResult | null;
|
|
9
|
-
export declare const parseTupletOrSlur: (line: string, index: number, slurLevel: number) => ParseResult | null;
|
|
10
|
-
export declare const parseNoteWithDuration: (line: string, index: number) => ParseResult | null;
|
|
11
|
-
export declare const parseChordBracket: (line: string, index: number) => ParseResult | null;
|
|
12
|
-
export declare const parseRest: (line: string, index: number) => ParseResult | null;
|
|
13
|
-
export declare const parseTie: (line: string, index: number) => ParseResult | null;
|
|
14
|
-
export declare const parseOrnament: (line: string, index: number) => ParseResult | null;
|
|
15
|
-
export declare const parseAnnotation: (line: string, index: number) => ParseResult | null;
|
|
16
|
-
export declare const parseChordSymbol: (line: string, index: number) => ParseResult | null;
|
|
17
|
-
export declare const parseDecoration: (line: string, index: number) => ParseResult | null;
|
|
18
|
-
export declare const parseGraceNote: (line: string, index: number) => ParseResult | null;
|
|
19
|
-
export declare const parseInlineField: (line: string, index: number) => ParseResult | null;
|
|
20
|
-
export declare const parseVoltaBracket: (line: string, index: number) => ParseResult | null;
|
|
21
|
-
export declare const parseBrokenRhythm: (line: string, index: number) => ParseResult | null;
|
|
22
|
-
export declare const highlightMusicLine: (line: string) => string;
|
|
23
2
|
export declare const highlightAbc: (code: string) => string;
|
|
3
|
+
export declare const highlightMusicLine: (line: string) => string;
|
|
24
4
|
//# sourceMappingURL=highlightAbc.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"highlightAbc.d.ts","sourceRoot":"","sources":["../../../src/utils/highlightAbc.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"highlightAbc.d.ts","sourceRoot":"","sources":["../../../src/utils/highlightAbc.ts"],"names":[],"mappings":"AA2DA,eAAO,MAAM,UAAU,GAAI,MAAM,MAAM,KAAG,MAOzC,CAAC;AAQF,eAAO,MAAM,YAAY,GAAI,MAAM,MAAM,KAAG,MAqC3C,CAAC;AAGF,eAAO,MAAM,kBAAkB,GAAI,MAAM,MAAM,KAAG,MAEjD,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export interface ValidationError {
|
|
2
2
|
line: number;
|
|
3
|
-
|
|
3
|
+
column: number;
|
|
4
4
|
startCol: number;
|
|
5
5
|
endCol: number;
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
severity: 'error' | 'warning' | 'info';
|
|
7
|
+
code: string;
|
|
8
8
|
message: string;
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* ABC
|
|
11
|
+
* ABC記法をバリデーションして、エラーがある箇所を返す
|
|
12
12
|
*/
|
|
13
13
|
export declare const validateAbc: (code: string) => ValidationError[];
|
|
14
14
|
//# sourceMappingURL=validateAbc.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validateAbc.d.ts","sourceRoot":"","sources":["../../../src/utils/validateAbc.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,
|
|
1
|
+
{"version":3,"file":"validateAbc.d.ts","sourceRoot":"","sources":["../../../src/utils/validateAbc.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AA0CD;;GAEG;AACH,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,KAAG,eAAe,EAoDzD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ovnonvo/abc-editor",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "A React component for editing ABC music notation with syntax highlighting, autocomplete, and validation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/abc-editor.cjs.js",
|
|
@@ -54,7 +54,8 @@
|
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"react": "^18.0.0 || ^19.0.0",
|
|
57
|
-
"react-dom": "^18.0.0 || ^19.0.0"
|
|
57
|
+
"react-dom": "^18.0.0 || ^19.0.0",
|
|
58
|
+
"chamber-abc": "^0.2.0"
|
|
58
59
|
},
|
|
59
60
|
"devDependencies": {
|
|
60
61
|
"@eslint/js": "^9.39.1",
|
|
@@ -78,6 +79,9 @@
|
|
|
78
79
|
"typescript-eslint": "^8.46.4",
|
|
79
80
|
"vite": "^7.2.4",
|
|
80
81
|
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
81
|
-
"
|
|
82
|
+
"vite-plugin-top-level-await": "^1.6.0",
|
|
83
|
+
"vite-plugin-wasm": "^3.5.0",
|
|
84
|
+
"vitest": "^4.0.12",
|
|
85
|
+
"chamber-abc": "^0.2.0"
|
|
82
86
|
}
|
|
83
87
|
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Theme } from "../types/abc";
|
|
2
|
-
interface AbcPreviewProps {
|
|
3
|
-
value: string;
|
|
4
|
-
theme?: Theme;
|
|
5
|
-
}
|
|
6
|
-
export declare const AbcPreview: ({ value, theme }: AbcPreviewProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export {};
|
|
8
|
-
//# sourceMappingURL=AbcPreview.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AbcPreview.d.ts","sourceRoot":"","sources":["../../../src/components/AbcPreview.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAE1C,UAAU,eAAe;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAED,eAAO,MAAM,UAAU,GAAI,kBAA4B,eAAe,4CAgBrE,CAAC"}
|