@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
|
@@ -2019,7 +2019,9 @@ var getStyles = function getStyles(placeholder) {
|
|
|
2019
2019
|
};
|
|
2020
2020
|
function PromQLEditor(props) {
|
|
2021
2021
|
var id = v4();
|
|
2022
|
-
var _props$
|
|
2022
|
+
var _props$className = props.className,
|
|
2023
|
+
className = _props$className === void 0 ? '' : _props$className,
|
|
2024
|
+
_props$size = props.size,
|
|
2023
2025
|
size = _props$size === void 0 ? 'middle' : _props$size,
|
|
2024
2026
|
_props$theme = props.theme,
|
|
2025
2027
|
theme = _props$theme === void 0 ? 'light' : _props$theme,
|
|
@@ -2232,7 +2234,10 @@ function PromQLEditor(props) {
|
|
|
2232
2234
|
}
|
|
2233
2235
|
}, [enableAutocomplete, props.url, props.lookbackInterval, JSON.stringify(props.variablesNames), props.durationVariablesCompletion, props.httpMethod, props.apiPrefix, placeholder, enableRequests]);
|
|
2234
2236
|
return React.createElement("div", {
|
|
2235
|
-
className: 'ant-input' + (size ? " " + SIZE_MAP[size].className : '') + (disabled ? " ant-input-disabled " + containerDisabledClassName : '') + (readOnly ? " " + containerReadOnlyClassName : '')
|
|
2237
|
+
className: 'ant-input' + (size ? " " + SIZE_MAP[size].className : '') + (disabled ? " ant-input-disabled " + containerDisabledClassName : '') + (readOnly ? " " + containerReadOnlyClassName : '') + (" " + className),
|
|
2238
|
+
style: {
|
|
2239
|
+
display: 'block'
|
|
2240
|
+
}
|
|
2236
2241
|
}, React.createElement("div", {
|
|
2237
2242
|
ref: containerRef
|
|
2238
2243
|
}, React.createElement(MonacoEditor, {
|
|
@@ -3661,6 +3666,7 @@ function SqlEditor(props) {
|
|
|
3661
3666
|
scrollBeyondLastLine: false,
|
|
3662
3667
|
smoothScrolling: true,
|
|
3663
3668
|
fontSize: fontSize,
|
|
3669
|
+
lineHeight: 24,
|
|
3664
3670
|
tabSize: 2,
|
|
3665
3671
|
wordWrap: 'on',
|
|
3666
3672
|
automaticLayout: true,
|