jaml-ui 2.3.1 → 2.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/dist/index.js +5059 -7368
- package/dist/index.js.map +1 -1
- package/dist/lib/jaml/jamlLangCodemirror.d.ts +12 -3
- package/package.json +2 -2
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CompletionContext, CompletionResult } from '@codemirror/autocomplete';
|
|
2
|
+
import { Tooltip } from '@codemirror/view';
|
|
2
3
|
/**
|
|
3
4
|
* CodeMirror completion source backed by jaml-lang's context-aware completions.
|
|
4
5
|
* Tap into `joker: ` and you get the joker list; type `Blue` and it narrows to
|
|
@@ -6,8 +7,16 @@ import { CompletionContext, CompletionResult } from '@codemirror/autocomplete';
|
|
|
6
7
|
*/
|
|
7
8
|
export declare function jamlCompletionSource(context: CompletionContext): CompletionResult | null;
|
|
8
9
|
/**
|
|
9
|
-
* CodeMirror lint source backed by jaml-lang diagnostics (YAML syntax +
|
|
10
|
-
* structural validation). The Motely WASM engine stays the final
|
|
11
|
-
* this is the fast structural gate.
|
|
10
|
+
* CodeMirror lint source backed by jaml-lang diagnostics (YAML syntax + the
|
|
11
|
+
* generated structural validation). The Motely WASM engine stays the final
|
|
12
|
+
* authority; this is the fast structural gate. Severity is the raw LSP number.
|
|
12
13
|
*/
|
|
13
14
|
export declare const jamlLinter: import('@codemirror/state').Extension;
|
|
15
|
+
/**
|
|
16
|
+
* CodeMirror hover backed by jaml-lang's getHover — explains the key/enum member
|
|
17
|
+
* under the cursor (e.g. hover `joker` or `Blueprint`). Contents are light
|
|
18
|
+
* markdown ("**word** — detail"); rendered (bold + code) into the tooltip dom.
|
|
19
|
+
*/
|
|
20
|
+
export declare const jamlHoverTooltip: import('@codemirror/state').Extension & {
|
|
21
|
+
active: import('@codemirror/state').StateField<readonly Tooltip[]>;
|
|
22
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jaml-ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "Balatro rendering components, sprite metadata, and optional Motely helpers for React apps.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
"@react-three/drei": "^10.7.7",
|
|
143
143
|
"@react-three/fiber": "^9.6.1",
|
|
144
144
|
"@types/js-yaml": "^4.0.9",
|
|
145
|
-
"jaml-lang": "^0.
|
|
145
|
+
"jaml-lang": "^1.0.0",
|
|
146
146
|
"js-yaml": "^4.1.1",
|
|
147
147
|
"lucide-react": "^1.16.0",
|
|
148
148
|
"three": "^0.184.0",
|