@coldsmirk/inkstone-elasticsearch 0.22.0 → 0.24.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 CHANGED
@@ -82,12 +82,19 @@ interface ElasticsearchEditorProps {
82
82
  * markers are drawn without it.
83
83
  */
84
84
  markerWording?: (marker: ElasticsearchMarker) => string;
85
+ /**
86
+ * Extra construction options, merged under this editor's own (`ariaLabel`): the escape hatch
87
+ * a host reaches for a construction option no prop names — `overflowWidgetsDomNode`, where
88
+ * the page's own layers would otherwise stand over the editor's floating widgets (hover,
89
+ * completion, parameter hints) left inside it.
90
+ */
91
+ options?: editor.IStandaloneEditorConstructionOptions;
85
92
  }
86
93
  /**
87
94
  * The request editing surface: Monaco under the `elasticsearch` grammar, one or more requests
88
95
  * in the console's spelling, the run key handing the caret over, completion and hover wired
89
96
  * through `registerElasticsearchLanguage`, and the markers refreshed on every change.
90
97
  */
91
- declare function ElasticsearchEditor({ value, onChange, dark, height, fontSize, locale, placeholder, ariaLabel, languageId, loading, failure, onRun, runActionLabel, onCaret, onReady, onMount, assist, markerWording }: ElasticsearchEditorProps): import("react").JSX.Element;
98
+ declare function ElasticsearchEditor({ value, onChange, dark, height, fontSize, locale, placeholder, ariaLabel, languageId, loading, failure, onRun, runActionLabel, onCaret, onReady, onMount, assist, markerWording, options }: ElasticsearchEditorProps): import("react").JSX.Element;
92
99
  //#endregion
93
100
  export { ElasticsearchCaret, ElasticsearchEditor, ElasticsearchEditorHandle, ElasticsearchEditorProps };
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 ElasticsearchEditor({ value, onChange, dark = false, height = 200, fontSize, locale, placeholder, ariaLabel, languageId = ELASTICSEARCH_LANGUAGE_ID, loading, failure, onRun, runActionLabel = "Run request", onCaret, onReady, onMount, assist, markerWording }) {
35
+ function ElasticsearchEditor({ value, onChange, dark = false, height = 200, fontSize, locale, placeholder, ariaLabel, languageId = ELASTICSEARCH_LANGUAGE_ID, loading, failure, onRun, runActionLabel = "Run request", onCaret, onReady, onMount, assist, markerWording, options }) {
36
36
  const [modelPath] = useState(() => `file:///inkstone-elasticsearch/${String(nextEditorId())}.es`);
37
37
  const bindings = useRef([]);
38
38
  const assistRef = useLatest(assist ?? null);
@@ -60,7 +60,10 @@ function ElasticsearchEditor({ value, onChange, dark = false, height = 200, font
60
60
  language: languageId,
61
61
  loading,
62
62
  locale,
63
- options: { ariaLabel },
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-elasticsearch",
3
- "version": "0.22.0",
3
+ "version": "0.24.0",
4
4
  "description": "Elasticsearch request editing intelligence for Monaco: the console spelling (a method and a path, the body after), endpoint and index completion, body keys by context, request markers, and a drop-in React request editor.",
5
5
  "keywords": [
6
6
  "elasticsearch",
@@ -46,12 +46,12 @@
46
46
  "monaco-editor": "^0.56.0",
47
47
  "react": "^19.2.8",
48
48
  "react-dom": "^19.2.8",
49
- "@coldsmirk/inkstone-react": "^0.22.0"
49
+ "@coldsmirk/inkstone-react": "^0.24.0"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "monaco-editor": "^0.56.0",
53
53
  "react": ">=19",
54
- "@coldsmirk/inkstone-react": "^0.22.0"
54
+ "@coldsmirk/inkstone-react": "^0.24.0"
55
55
  },
56
56
  "peerDependenciesMeta": {
57
57
  "@coldsmirk/inkstone-react": {