@fc-components/monaco-editor 0.1.20 → 0.1.22
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 -4
- 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 -4
- package/dist/monaco-editor.esm.js.map +1 -1
- package/dist/promql/index.d.ts +1 -0
- package/dist/sql/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/promql/index.tsx +4 -1
- package/src/sql/index.tsx +6 -1
|
@@ -2019,7 +2019,8 @@ var getStyles = function getStyles(placeholder) {
|
|
|
2019
2019
|
};
|
|
2020
2020
|
function PromQLEditor(props) {
|
|
2021
2021
|
var id = v4();
|
|
2022
|
-
var
|
|
2022
|
+
var className = props.className,
|
|
2023
|
+
_props$size = props.size,
|
|
2023
2024
|
size = _props$size === void 0 ? 'middle' : _props$size,
|
|
2024
2025
|
_props$theme = props.theme,
|
|
2025
2026
|
theme = _props$theme === void 0 ? 'light' : _props$theme,
|
|
@@ -2232,7 +2233,7 @@ function PromQLEditor(props) {
|
|
|
2232
2233
|
}
|
|
2233
2234
|
}, [enableAutocomplete, props.url, props.lookbackInterval, JSON.stringify(props.variablesNames), props.durationVariablesCompletion, props.httpMethod, props.apiPrefix, placeholder, enableRequests]);
|
|
2234
2235
|
return React.createElement("div", {
|
|
2235
|
-
className: 'ant-input' + (size ? " " + SIZE_MAP[size].className : '') + (disabled ? " ant-input-disabled " + containerDisabledClassName : '') + (readOnly ? " " + containerReadOnlyClassName : '')
|
|
2236
|
+
className: 'ant-input' + (size ? " " + SIZE_MAP[size].className : '') + (disabled ? " ant-input-disabled " + containerDisabledClassName : '') + (readOnly ? " " + containerReadOnlyClassName : '') + (className ? " " + className : '')
|
|
2236
2237
|
}, React.createElement("div", {
|
|
2237
2238
|
ref: containerRef
|
|
2238
2239
|
}, React.createElement(MonacoEditor, {
|
|
@@ -3496,7 +3497,8 @@ var containerDisabledClassName$2 = /*#__PURE__*/css(_templateObject$2 || (_templ
|
|
|
3496
3497
|
var containerReadOnlyClassName$2 = /*#__PURE__*/css(_templateObject2$2 || (_templateObject2$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n .monaco-editor .cursors-layer > .cursor {\n opacity: 0 !important;\n }\n"])));
|
|
3497
3498
|
function SqlEditor(props) {
|
|
3498
3499
|
var id = v4();
|
|
3499
|
-
var
|
|
3500
|
+
var className = props.className,
|
|
3501
|
+
maxHeight = props.maxHeight,
|
|
3500
3502
|
fontSize = props.fontSize,
|
|
3501
3503
|
_props$size = props.size,
|
|
3502
3504
|
size = _props$size === void 0 ? 'middle' : _props$size,
|
|
@@ -3631,8 +3633,9 @@ function SqlEditor(props) {
|
|
|
3631
3633
|
};
|
|
3632
3634
|
var themeValue = themeMap$2[theme];
|
|
3633
3635
|
return React.createElement("div", {
|
|
3634
|
-
className: 'ant-input' + (size ? " " + SIZE_MAP$2[size].className : '') + (disabled ? " ant-input-disabled " + containerDisabledClassName$2 : '') + (readOnly ? " " + containerReadOnlyClassName$2 : ''),
|
|
3636
|
+
className: 'ant-input' + (size ? " " + SIZE_MAP$2[size].className : '') + (disabled ? " ant-input-disabled " + containerDisabledClassName$2 : '') + (readOnly ? " " + containerReadOnlyClassName$2 : '') + (className ? " " + className : ''),
|
|
3635
3637
|
style: {
|
|
3638
|
+
display: 'block',
|
|
3636
3639
|
resize: 'vertical',
|
|
3637
3640
|
overflow: 'auto',
|
|
3638
3641
|
minHeight: SIZE_MAP$2[size].minHeight,
|
|
@@ -3661,6 +3664,7 @@ function SqlEditor(props) {
|
|
|
3661
3664
|
scrollBeyondLastLine: false,
|
|
3662
3665
|
smoothScrolling: true,
|
|
3663
3666
|
fontSize: fontSize,
|
|
3667
|
+
lineHeight: 24,
|
|
3664
3668
|
tabSize: 2,
|
|
3665
3669
|
wordWrap: 'on',
|
|
3666
3670
|
automaticLayout: true,
|