@coldsmirk/inkstone-redis 0.22.0 → 0.23.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/react.d.ts +8 -1
- package/dist/react.js +5 -2
- package/package.json +3 -3
package/dist/react.d.ts
CHANGED
|
@@ -83,6 +83,13 @@ interface RedisEditorProps {
|
|
|
83
83
|
* markers are drawn without it.
|
|
84
84
|
*/
|
|
85
85
|
markerWording?: (marker: RedisMarker) => string;
|
|
86
|
+
/**
|
|
87
|
+
* Extra construction options, merged under this editor's own (`ariaLabel`): the escape hatch
|
|
88
|
+
* a host reaches for a construction option no prop names — `overflowWidgetsDomNode`, where
|
|
89
|
+
* the page's own layers would otherwise stand over the editor's floating widgets (hover,
|
|
90
|
+
* completion, parameter hints) left inside it.
|
|
91
|
+
*/
|
|
92
|
+
options?: editor.IStandaloneEditorConstructionOptions;
|
|
86
93
|
}
|
|
87
94
|
/**
|
|
88
95
|
* The command-line editing surface: Monaco under the `redis` grammar, one command a line, the
|
|
@@ -90,6 +97,6 @@ interface RedisEditorProps {
|
|
|
90
97
|
* through `registerRedisLanguage`, and each line's markers refreshed on every change (they are
|
|
91
98
|
* one split per line, cheap enough to run synchronously).
|
|
92
99
|
*/
|
|
93
|
-
declare function RedisEditor({ value, onChange, dark, height, fontSize, locale, placeholder, ariaLabel, languageId, loading, failure, onRun, runActionLabel, onCaret, onReady, onMount, assist, markerWording }: RedisEditorProps): import("react").JSX.Element;
|
|
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;
|
|
94
101
|
//#endregion
|
|
95
102
|
export { RedisCaret, RedisEditor, RedisEditorHandle, RedisEditorProps };
|
package/dist/react.js
CHANGED
|
@@ -32,7 +32,7 @@ function caretOf(instance) {
|
|
|
32
32
|
to: model.getOffsetAt(selection.getEndPosition())
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
|
-
function RedisEditor({ value, onChange, dark = false, height = 200, fontSize, locale, placeholder, ariaLabel, languageId = REDIS_LANGUAGE_ID, loading, failure, onRun, runActionLabel = "Run command", onCaret, onReady, onMount, assist, markerWording }) {
|
|
35
|
+
function RedisEditor({ value, onChange, dark = false, height = 200, fontSize, locale, placeholder, ariaLabel, languageId = REDIS_LANGUAGE_ID, loading, failure, onRun, runActionLabel = "Run command", onCaret, onReady, onMount, assist, markerWording, options }) {
|
|
36
36
|
const [modelPath] = useState(() => `file:///inkstone-redis/${String(nextEditorId())}.redis`);
|
|
37
37
|
const bindings = useRef([]);
|
|
38
38
|
const assistRef = useLatest(assist ?? null);
|
|
@@ -60,7 +60,10 @@ function RedisEditor({ value, onChange, dark = false, height = 200, fontSize, lo
|
|
|
60
60
|
language: languageId,
|
|
61
61
|
loading,
|
|
62
62
|
locale,
|
|
63
|
-
options: {
|
|
63
|
+
options: {
|
|
64
|
+
...options,
|
|
65
|
+
ariaLabel
|
|
66
|
+
},
|
|
64
67
|
path: modelPath,
|
|
65
68
|
placeholder,
|
|
66
69
|
value,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coldsmirk/inkstone-redis",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.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",
|
|
@@ -45,12 +45,12 @@
|
|
|
45
45
|
"monaco-editor": "^0.56.0",
|
|
46
46
|
"react": "^19.2.8",
|
|
47
47
|
"react-dom": "^19.2.8",
|
|
48
|
-
"@coldsmirk/inkstone-react": "^0.
|
|
48
|
+
"@coldsmirk/inkstone-react": "^0.23.0"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"monaco-editor": "^0.56.0",
|
|
52
52
|
"react": ">=19",
|
|
53
|
-
"@coldsmirk/inkstone-react": "^0.
|
|
53
|
+
"@coldsmirk/inkstone-react": "^0.23.0"
|
|
54
54
|
},
|
|
55
55
|
"peerDependenciesMeta": {
|
|
56
56
|
"@coldsmirk/inkstone-react": {
|