@coldsmirk/inkstone-sql 0.14.0 → 0.15.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/index.d.ts +0 -1
- package/dist/index.js +14 -12
- package/dist/monaco.d.ts +0 -1
- package/dist/react.d.ts +1 -23
- package/package.json +7 -7
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { C as CatalogTable, S as CatalogFunction, _ as readCall, a as createSqlAssist, b as runnableStatement, c as SqlSource, d as CallRead, f as IdentifierRead, g as TableRef, h as StatementRead, i as SqlSignatureHelp, l as createSqlSchema, m as StatementContext, n as SqlCompletionCandidate, o as SqlCatalog, p as Runnable, r as SqlHoverCard, s as SqlSchema, t as SqlAssist, u as qualifiedName, v as readIdentifier, w as SqlKind, x as CatalogColumn, y as readStatement } from "./assist-B5eZ0e5W.js";
|
|
2
|
-
|
|
3
2
|
//#region src/functions.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* The function vocabulary this bench speaks: the curated floor this project wrote
|
package/dist/index.js
CHANGED
|
@@ -469,12 +469,13 @@ const ALTERNATIVE_QUOTE_CLOSE = {
|
|
|
469
469
|
function closeDelimited(text, from, delimiter, backslash) {
|
|
470
470
|
let at = from;
|
|
471
471
|
while (at < text.length) if (backslash && text[at] === "\\" && at + 1 < text.length) at += 2;
|
|
472
|
-
else if (text[at] === delimiter)
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
472
|
+
else if (text[at] === delimiter) {
|
|
473
|
+
if (text[at + 1] === delimiter) at += 2;
|
|
474
|
+
else return {
|
|
475
|
+
end: at + 1,
|
|
476
|
+
sealed: true
|
|
477
|
+
};
|
|
478
|
+
} else at += 1;
|
|
478
479
|
return {
|
|
479
480
|
end: text.length,
|
|
480
481
|
sealed: false
|
|
@@ -482,12 +483,13 @@ function closeDelimited(text, from, delimiter, backslash) {
|
|
|
482
483
|
}
|
|
483
484
|
function closeBracket(text, from) {
|
|
484
485
|
let at = from;
|
|
485
|
-
while (at < text.length) if (text[at] === "]")
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
486
|
+
while (at < text.length) if (text[at] === "]") {
|
|
487
|
+
if (text[at + 1] === "]") at += 2;
|
|
488
|
+
else return {
|
|
489
|
+
end: at + 1,
|
|
490
|
+
sealed: true
|
|
491
|
+
};
|
|
492
|
+
} else at += 1;
|
|
491
493
|
return {
|
|
492
494
|
end: text.length,
|
|
493
495
|
sealed: false
|
package/dist/monaco.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { t as SqlAssist } from "./assist-B5eZ0e5W.js";
|
|
2
2
|
import * as monacoEditor from "monaco-editor";
|
|
3
3
|
import { IDisposable } from "monaco-editor";
|
|
4
|
-
|
|
5
4
|
//#region src/monaco.d.ts
|
|
6
5
|
/**
|
|
7
6
|
* The monaco module itself, as `onMount` hands it over — typed structurally so this entry needs
|
package/dist/react.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { t as SqlAssist } from "./assist-B5eZ0e5W.js";
|
|
|
2
2
|
import { MonacoModule } from "./monaco.js";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
import { editor } from "monaco-editor";
|
|
5
|
-
|
|
6
5
|
//#region src/react.d.ts
|
|
7
6
|
/**
|
|
8
7
|
* What a host needs to reach into the editor for: inserting at the caret (a schema tree is an
|
|
@@ -132,27 +131,6 @@ interface SqlEditorProps {
|
|
|
132
131
|
* The editor draws no chrome of its own: it is a band of its host's surface, and the separation
|
|
133
132
|
* is the host's hairline rules — a border here would dress a pane up as a form input.
|
|
134
133
|
*/
|
|
135
|
-
declare function SqlEditor({
|
|
136
|
-
value,
|
|
137
|
-
onChange,
|
|
138
|
-
dark,
|
|
139
|
-
height,
|
|
140
|
-
fontSize,
|
|
141
|
-
locale,
|
|
142
|
-
placeholder,
|
|
143
|
-
ariaLabel,
|
|
144
|
-
languageId,
|
|
145
|
-
loading,
|
|
146
|
-
failure,
|
|
147
|
-
onRun,
|
|
148
|
-
runActionLabel,
|
|
149
|
-
onCaret,
|
|
150
|
-
highlight,
|
|
151
|
-
highlightClassName,
|
|
152
|
-
onFormatRefused,
|
|
153
|
-
onReady,
|
|
154
|
-
onMount,
|
|
155
|
-
assist
|
|
156
|
-
}: SqlEditorProps): import("react").JSX.Element;
|
|
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;
|
|
157
135
|
//#endregion
|
|
158
136
|
export { SqlCaret, SqlEditor, SqlEditorHandle, SqlEditorProps };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coldsmirk/inkstone-sql",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.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",
|
|
@@ -46,15 +46,15 @@
|
|
|
46
46
|
"sql-formatter": "^15.8.2"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"monaco-editor": "^0.
|
|
50
|
-
"react": "^19.2.
|
|
51
|
-
"react-dom": "^19.2.
|
|
52
|
-
"@coldsmirk/inkstone-react": "^0.
|
|
49
|
+
"monaco-editor": "^0.56.0",
|
|
50
|
+
"react": "^19.2.8",
|
|
51
|
+
"react-dom": "^19.2.8",
|
|
52
|
+
"@coldsmirk/inkstone-react": "^0.15.0"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"monaco-editor": "^0.
|
|
55
|
+
"monaco-editor": "^0.56.0",
|
|
56
56
|
"react": ">=19",
|
|
57
|
-
"@coldsmirk/inkstone-react": "^0.
|
|
57
|
+
"@coldsmirk/inkstone-react": "^0.15.0"
|
|
58
58
|
},
|
|
59
59
|
"peerDependenciesMeta": {
|
|
60
60
|
"@coldsmirk/inkstone-react": {
|