@coldsmirk/inkstone-sql 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
@@ -114,6 +114,13 @@ interface SqlEditorProps {
114
114
  * the escape hatch for host-specific concerns (focus shields, extra actions).
115
115
  */
116
116
  onMount?: (instance: editor.IStandaloneCodeEditor, monaco: MonacoModule) => void;
117
+ /**
118
+ * Extra construction options, merged under this editor's own (`ariaLabel`): the escape hatch
119
+ * a host reaches for a construction option no prop names — `overflowWidgetsDomNode`, where
120
+ * the page's own layers would otherwise stand over the editor's floating widgets (hover,
121
+ * completion, parameter hints) left inside it.
122
+ */
123
+ options?: editor.IStandaloneEditorConstructionOptions;
117
124
  /**
118
125
  * What the editor's language features answer from — the schema and dialect of the connection
119
126
  * being edited (`createSqlAssist`). Read through a ref at every request, so the host can swap
@@ -131,6 +138,6 @@ interface SqlEditorProps {
131
138
  * The editor draws no chrome of its own: it is a band of its host's surface, and the separation
132
139
  * is the host's hairline rules — a border here would dress a pane up as a form input.
133
140
  */
134
- declare function SqlEditor({ value, onChange, dark, height, fontSize, locale, placeholder, ariaLabel, languageId, loading, failure, onRun, runActionLabel, onCaret, highlight, highlightClassName, onFormatRefused, onReady, onMount, assist }: SqlEditorProps): import("react").JSX.Element;
141
+ declare function SqlEditor({ value, onChange, dark, height, fontSize, locale, placeholder, ariaLabel, languageId, loading, failure, onRun, runActionLabel, onCaret, highlight, highlightClassName, onFormatRefused, onReady, onMount, options, assist }: SqlEditorProps): import("react").JSX.Element;
135
142
  //#endregion
136
143
  export { SqlCaret, SqlEditor, SqlEditorHandle, SqlEditorProps };
package/dist/react.js CHANGED
@@ -42,7 +42,7 @@ function monacoRange(model, span) {
42
42
  endColumn: to.column
43
43
  };
44
44
  }
45
- function SqlEditor({ value, onChange, dark = false, height = 200, fontSize, locale, placeholder, ariaLabel, languageId = "sql", loading, failure, onRun, runActionLabel = "Run statement", onCaret, highlight = null, highlightClassName = "inkstone-sql-runnable", onFormatRefused, onReady, onMount, assist }) {
45
+ function SqlEditor({ value, onChange, dark = false, height = 200, fontSize, locale, placeholder, ariaLabel, languageId = "sql", loading, failure, onRun, runActionLabel = "Run statement", onCaret, highlight = null, highlightClassName = "inkstone-sql-runnable", onFormatRefused, onReady, onMount, options, assist }) {
46
46
  const [modelPath] = useState(() => `file:///inkstone-sql/${nextEditorId()}.sql`);
47
47
  const bindings = useRef([]);
48
48
  const assistRef = useLatest(assist ?? null);
@@ -93,6 +93,7 @@ function SqlEditor({ value, onChange, dark = false, height = 200, fontSize, loca
93
93
  placeholder,
94
94
  value,
95
95
  options: {
96
+ ...options,
96
97
  ariaLabel,
97
98
  suggest: { snippetsPreventQuickSuggestions: false }
98
99
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coldsmirk/inkstone-sql",
3
- "version": "0.22.0",
3
+ "version": "0.24.0",
4
4
  "description": "Schema-aware SQL editing intelligence for Monaco: lexical statement reading under per-dialect noise profiles, catalog-driven completion/hover/signature help, unified-placeholder awareness, formatting, and a drop-in React SQL editor.",
5
5
  "keywords": [
6
6
  "sql",
@@ -49,12 +49,12 @@
49
49
  "monaco-editor": "^0.56.0",
50
50
  "react": "^19.2.8",
51
51
  "react-dom": "^19.2.8",
52
- "@coldsmirk/inkstone-react": "^0.22.0"
52
+ "@coldsmirk/inkstone-react": "^0.24.0"
53
53
  },
54
54
  "peerDependencies": {
55
55
  "monaco-editor": "^0.56.0",
56
56
  "react": ">=19",
57
- "@coldsmirk/inkstone-react": "^0.22.0"
57
+ "@coldsmirk/inkstone-react": "^0.24.0"
58
58
  },
59
59
  "peerDependenciesMeta": {
60
60
  "@coldsmirk/inkstone-react": {