@coldsmirk/inkstone-mongodb 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 CHANGED
@@ -82,12 +82,19 @@ interface MongodbEditorProps {
82
82
  * markers are drawn without it.
83
83
  */
84
84
  markerWording?: (marker: MongodbMarker) => 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 command editing surface: Monaco under the `mongodb` grammar, one command document in the
88
95
  * shell's spelling, the run key handing the caret over, completion and hover wired through
89
96
  * `registerMongodbLanguage`, and the markers refreshed on every change.
90
97
  */
91
- declare function MongodbEditor({ value, onChange, dark, height, fontSize, locale, placeholder, ariaLabel, languageId, loading, failure, onRun, runActionLabel, onCaret, onReady, onMount, assist, markerWording }: MongodbEditorProps): import("react").JSX.Element;
98
+ declare function MongodbEditor({ value, onChange, dark, height, fontSize, locale, placeholder, ariaLabel, languageId, loading, failure, onRun, runActionLabel, onCaret, onReady, onMount, assist, markerWording, options }: MongodbEditorProps): import("react").JSX.Element;
92
99
  //#endregion
93
100
  export { MongodbCaret, MongodbEditor, MongodbEditorHandle, MongodbEditorProps };
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 MongodbEditor({ value, onChange, dark = false, height = 200, fontSize, locale, placeholder, ariaLabel, languageId = MONGODB_LANGUAGE_ID, loading, failure, onRun, runActionLabel = "Run command", onCaret, onReady, onMount, assist, markerWording }) {
35
+ function MongodbEditor({ value, onChange, dark = false, height = 200, fontSize, locale, placeholder, ariaLabel, languageId = MONGODB_LANGUAGE_ID, loading, failure, onRun, runActionLabel = "Run command", onCaret, onReady, onMount, assist, markerWording, options }) {
36
36
  const [modelPath] = useState(() => `file:///inkstone-mongodb/${String(nextEditorId())}.mongodb`);
37
37
  const bindings = useRef([]);
38
38
  const assistRef = useLatest(assist ?? null);
@@ -60,7 +60,10 @@ function MongodbEditor({ value, onChange, dark = false, height = 200, fontSize,
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-mongodb",
3
- "version": "0.22.0",
3
+ "version": "0.23.0",
4
4
  "description": "MongoDB command editing intelligence for Monaco: a command document in the shell's own spelling, the database commands and their fields, query, update and aggregation operators by context, collection completion, markers, and a drop-in React command editor.",
5
5
  "keywords": [
6
6
  "mongodb",
@@ -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.23.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.23.0"
55
55
  },
56
56
  "peerDependenciesMeta": {
57
57
  "@coldsmirk/inkstone-react": {