@fc-components/monaco-editor 0.1.20 → 0.1.21
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/monaco-editor.cjs.development.js +8 -2
- package/dist/monaco-editor.cjs.development.js.map +1 -1
- package/dist/monaco-editor.cjs.production.min.js +1 -1
- package/dist/monaco-editor.cjs.production.min.js.map +1 -1
- package/dist/monaco-editor.esm.js +8 -2
- package/dist/monaco-editor.esm.js.map +1 -1
- package/dist/promql/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/promql/index.tsx +7 -1
- package/src/sql/index.tsx +1 -0
|
@@ -2025,7 +2025,9 @@ var getStyles = function getStyles(placeholder) {
|
|
|
2025
2025
|
};
|
|
2026
2026
|
function PromQLEditor(props) {
|
|
2027
2027
|
var id = uuid.v4();
|
|
2028
|
-
var _props$
|
|
2028
|
+
var _props$className = props.className,
|
|
2029
|
+
className = _props$className === void 0 ? '' : _props$className,
|
|
2030
|
+
_props$size = props.size,
|
|
2029
2031
|
size = _props$size === void 0 ? 'middle' : _props$size,
|
|
2030
2032
|
_props$theme = props.theme,
|
|
2031
2033
|
theme = _props$theme === void 0 ? 'light' : _props$theme,
|
|
@@ -2238,7 +2240,10 @@ function PromQLEditor(props) {
|
|
|
2238
2240
|
}
|
|
2239
2241
|
}, [enableAutocomplete, props.url, props.lookbackInterval, JSON.stringify(props.variablesNames), props.durationVariablesCompletion, props.httpMethod, props.apiPrefix, placeholder, enableRequests]);
|
|
2240
2242
|
return React__default.createElement("div", {
|
|
2241
|
-
className: 'ant-input' + (size ? " " + SIZE_MAP[size].className : '') + (disabled ? " ant-input-disabled " + containerDisabledClassName : '') + (readOnly ? " " + containerReadOnlyClassName : '')
|
|
2243
|
+
className: 'ant-input' + (size ? " " + SIZE_MAP[size].className : '') + (disabled ? " ant-input-disabled " + containerDisabledClassName : '') + (readOnly ? " " + containerReadOnlyClassName : '') + (" " + className),
|
|
2244
|
+
style: {
|
|
2245
|
+
display: 'block'
|
|
2246
|
+
}
|
|
2242
2247
|
}, React__default.createElement("div", {
|
|
2243
2248
|
ref: containerRef
|
|
2244
2249
|
}, React__default.createElement(MonacoEditor, {
|
|
@@ -3667,6 +3672,7 @@ function SqlEditor(props) {
|
|
|
3667
3672
|
scrollBeyondLastLine: false,
|
|
3668
3673
|
smoothScrolling: true,
|
|
3669
3674
|
fontSize: fontSize,
|
|
3675
|
+
lineHeight: 24,
|
|
3670
3676
|
tabSize: 2,
|
|
3671
3677
|
wordWrap: 'on',
|
|
3672
3678
|
automaticLayout: true,
|