@coldsmirk/inkstone-redis 0.30.0 → 0.31.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/monaco.d.ts +8 -9
- package/dist/react.d.ts +5 -6
- package/package.json +6 -7
package/dist/monaco.d.ts
CHANGED
|
@@ -5,18 +5,18 @@ import { IDisposable, editor } from "monaco-editor";
|
|
|
5
5
|
/**
|
|
6
6
|
* The monaco module itself, as `onMount` hands it over.
|
|
7
7
|
*/
|
|
8
|
-
type MonacoModule = typeof monacoEditor;
|
|
8
|
+
export type MonacoModule = typeof monacoEditor;
|
|
9
9
|
/**
|
|
10
10
|
* The language id the editor registers a command line under.
|
|
11
11
|
*/
|
|
12
|
-
declare const REDIS_LANGUAGE_ID = "redis";
|
|
12
|
+
export declare const REDIS_LANGUAGE_ID = "redis";
|
|
13
13
|
/**
|
|
14
14
|
* Register the language — the id, its Monarch grammar and its bracket configuration — once per
|
|
15
15
|
* monaco module. Call it before the first model of the language is created (`beforeMount`);
|
|
16
16
|
* a model created under an id Monaco does not know yet is plain text until it is.
|
|
17
17
|
*/
|
|
18
|
-
declare function defineRedisLanguage(monaco: MonacoModule, languageId?: string, commands?: readonly RedisCommand[]): void;
|
|
19
|
-
interface RedisLanguageHooks {
|
|
18
|
+
export declare function defineRedisLanguage(monaco: MonacoModule, languageId?: string, commands?: readonly RedisCommand[]): void;
|
|
19
|
+
export interface RedisLanguageHooks {
|
|
20
20
|
/**
|
|
21
21
|
* The assist as it stands right now — read per request rather than captured, so the host
|
|
22
22
|
* can swap it without touching Monaco's registry; null answers nothing.
|
|
@@ -28,15 +28,14 @@ interface RedisLanguageHooks {
|
|
|
28
28
|
* caller's to hold: Monaco's registry outlives any editor, and a provider left behind would
|
|
29
29
|
* answer for a model that no longer exists.
|
|
30
30
|
*/
|
|
31
|
-
declare function registerRedisLanguage(monaco: MonacoModule, modelPath: string, hooks: RedisLanguageHooks, languageId?: string): IDisposable[];
|
|
31
|
+
export declare function registerRedisLanguage(monaco: MonacoModule, modelPath: string, hooks: RedisLanguageHooks, languageId?: string): IDisposable[];
|
|
32
32
|
/**
|
|
33
33
|
* The owner Monaco files this package's markers under.
|
|
34
34
|
*/
|
|
35
|
-
declare const REDIS_MARKER_OWNER = "inkstone-redis";
|
|
35
|
+
export declare const REDIS_MARKER_OWNER = "inkstone-redis";
|
|
36
36
|
/**
|
|
37
37
|
* Put `markers` on the model as Monaco's own, replacing this package's last set; the words
|
|
38
38
|
* beside each code are the host's, handed in per code.
|
|
39
39
|
*/
|
|
40
|
-
declare function setRedisMarkers(monaco: MonacoModule, model: editor.ITextModel, markers: readonly RedisMarker[], wording: (marker: RedisMarker) => string): void;
|
|
41
|
-
//#endregion
|
|
42
|
-
export { MonacoModule, REDIS_LANGUAGE_ID, REDIS_MARKER_OWNER, RedisLanguageHooks, defineRedisLanguage, registerRedisLanguage, setRedisMarkers };
|
|
40
|
+
export declare function setRedisMarkers(monaco: MonacoModule, model: editor.ITextModel, markers: readonly RedisMarker[], wording: (marker: RedisMarker) => string): void;
|
|
41
|
+
//#endregion
|
package/dist/react.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { editor } from "monaco-editor";
|
|
|
7
7
|
* What a host reaches into the editor for: inserting at the caret — a key tree is an input
|
|
8
8
|
* device — and the focus.
|
|
9
9
|
*/
|
|
10
|
-
interface RedisEditorHandle {
|
|
10
|
+
export interface RedisEditorHandle {
|
|
11
11
|
insert: (text: string) => void;
|
|
12
12
|
focus: () => void;
|
|
13
13
|
}
|
|
@@ -17,12 +17,12 @@ interface RedisEditorHandle {
|
|
|
17
17
|
* selected. It rides with the text because the two must belong to the same instant: the
|
|
18
18
|
* controlled `value` is one render behind the keystroke that triggered a run.
|
|
19
19
|
*/
|
|
20
|
-
interface RedisCaret {
|
|
20
|
+
export interface RedisCaret {
|
|
21
21
|
text: string;
|
|
22
22
|
from: number;
|
|
23
23
|
to: number;
|
|
24
24
|
}
|
|
25
|
-
interface RedisEditorProps {
|
|
25
|
+
export interface RedisEditorProps {
|
|
26
26
|
value: string;
|
|
27
27
|
onChange: (value: string) => void;
|
|
28
28
|
/**
|
|
@@ -97,6 +97,5 @@ interface RedisEditorProps {
|
|
|
97
97
|
* through `registerRedisLanguage`, and each line's markers refreshed on every change (they are
|
|
98
98
|
* one split per line, cheap enough to run synchronously).
|
|
99
99
|
*/
|
|
100
|
-
declare function RedisEditor({ value, onChange, dark, height, fontSize, locale, placeholder, ariaLabel, languageId, loading, failure, onRun, runActionLabel, onCaret, onReady, onMount, assist, markerWording, options }: RedisEditorProps): import("react").JSX.Element;
|
|
101
|
-
//#endregion
|
|
102
|
-
export { RedisCaret, RedisEditor, RedisEditorHandle, RedisEditorProps };
|
|
100
|
+
export declare function RedisEditor({ value, onChange, dark, height, fontSize, locale, placeholder, ariaLabel, languageId, loading, failure, onRun, runActionLabel, onCaret, onReady, onMount, assist, markerWording, options }: RedisEditorProps): import("react").JSX.Element;
|
|
101
|
+
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coldsmirk/inkstone-redis",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.31.0",
|
|
4
4
|
"description": "Redis command-line editing intelligence for Monaco: the command table of Redis 7.2 (names, syntax, arity), redis-cli's own line splitting, completion / hover / signature help, line markers, and a drop-in React command editor.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"redis",
|
|
@@ -42,15 +42,14 @@
|
|
|
42
42
|
"dist"
|
|
43
43
|
],
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"monaco-editor": "^0.
|
|
46
|
-
"react": "^19.
|
|
47
|
-
"react
|
|
48
|
-
"@coldsmirk/inkstone-react": "^0.30.0"
|
|
45
|
+
"monaco-editor": "^0.57.0",
|
|
46
|
+
"react": "^19.3.0",
|
|
47
|
+
"@coldsmirk/inkstone-react": "^0.31.0"
|
|
49
48
|
},
|
|
50
49
|
"peerDependencies": {
|
|
51
|
-
"monaco-editor": "^0.
|
|
50
|
+
"monaco-editor": "^0.57.0",
|
|
52
51
|
"react": ">=19",
|
|
53
|
-
"@coldsmirk/inkstone-react": "^0.
|
|
52
|
+
"@coldsmirk/inkstone-react": "^0.31.0"
|
|
54
53
|
},
|
|
55
54
|
"peerDependenciesMeta": {
|
|
56
55
|
"@coldsmirk/inkstone-react": {
|