@fc-components/monaco-editor 0.1.21 → 0.1.23
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 +11 -10
- 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 +11 -10
- package/dist/monaco-editor.esm.js.map +1 -1
- package/dist/sql/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/promql/index.tsx +2 -5
- package/src/sql/index.tsx +12 -3
|
@@ -2019,8 +2019,7 @@ var getStyles = function getStyles(placeholder) {
|
|
|
2019
2019
|
};
|
|
2020
2020
|
function PromQLEditor(props) {
|
|
2021
2021
|
var id = v4();
|
|
2022
|
-
var
|
|
2023
|
-
className = _props$className === void 0 ? '' : _props$className,
|
|
2022
|
+
var className = props.className,
|
|
2024
2023
|
_props$size = props.size,
|
|
2025
2024
|
size = _props$size === void 0 ? 'middle' : _props$size,
|
|
2026
2025
|
_props$theme = props.theme,
|
|
@@ -2234,10 +2233,7 @@ function PromQLEditor(props) {
|
|
|
2234
2233
|
}
|
|
2235
2234
|
}, [enableAutocomplete, props.url, props.lookbackInterval, JSON.stringify(props.variablesNames), props.durationVariablesCompletion, props.httpMethod, props.apiPrefix, placeholder, enableRequests]);
|
|
2236
2235
|
return React.createElement("div", {
|
|
2237
|
-
className: 'ant-input' + (size ? " " + SIZE_MAP[size].className : '') + (disabled ? " ant-input-disabled " + containerDisabledClassName : '') + (readOnly ? " " + containerReadOnlyClassName : '') + (" " + className)
|
|
2238
|
-
style: {
|
|
2239
|
-
display: 'block'
|
|
2240
|
-
}
|
|
2236
|
+
className: 'ant-input' + (size ? " " + SIZE_MAP[size].className : '') + (disabled ? " ant-input-disabled " + containerDisabledClassName : '') + (readOnly ? " " + containerReadOnlyClassName : '') + (className ? " " + className : '')
|
|
2241
2237
|
}, React.createElement("div", {
|
|
2242
2238
|
ref: containerRef
|
|
2243
2239
|
}, React.createElement(MonacoEditor, {
|
|
@@ -3501,7 +3497,8 @@ var containerDisabledClassName$2 = /*#__PURE__*/css(_templateObject$2 || (_templ
|
|
|
3501
3497
|
var containerReadOnlyClassName$2 = /*#__PURE__*/css(_templateObject2$2 || (_templateObject2$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n .monaco-editor .cursors-layer > .cursor {\n opacity: 0 !important;\n }\n"])));
|
|
3502
3498
|
function SqlEditor(props) {
|
|
3503
3499
|
var id = v4();
|
|
3504
|
-
var
|
|
3500
|
+
var className = props.className,
|
|
3501
|
+
maxHeight = props.maxHeight,
|
|
3505
3502
|
fontSize = props.fontSize,
|
|
3506
3503
|
_props$size = props.size,
|
|
3507
3504
|
size = _props$size === void 0 ? 'middle' : _props$size,
|
|
@@ -3590,7 +3587,7 @@ function SqlEditor(props) {
|
|
|
3590
3587
|
var containerDiv = containerRef.current;
|
|
3591
3588
|
if (containerDiv !== null) {
|
|
3592
3589
|
var pixelHeight = editor$1.getContentHeight();
|
|
3593
|
-
containerDiv.style.
|
|
3590
|
+
containerDiv.style.minHeight = pixelHeight + "px";
|
|
3594
3591
|
containerDiv.style.width = '100%';
|
|
3595
3592
|
var pixelWidth = containerDiv.clientWidth;
|
|
3596
3593
|
editor$1.layout({
|
|
@@ -3636,15 +3633,19 @@ function SqlEditor(props) {
|
|
|
3636
3633
|
};
|
|
3637
3634
|
var themeValue = themeMap$2[theme];
|
|
3638
3635
|
return React.createElement("div", {
|
|
3639
|
-
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 : ''),
|
|
3640
3637
|
style: {
|
|
3638
|
+
display: 'block',
|
|
3641
3639
|
resize: 'vertical',
|
|
3642
3640
|
overflow: 'auto',
|
|
3643
3641
|
minHeight: SIZE_MAP$2[size].minHeight,
|
|
3644
3642
|
maxHeight: maxHeight
|
|
3645
3643
|
}
|
|
3646
3644
|
}, React.createElement("div", {
|
|
3647
|
-
ref: containerRef
|
|
3645
|
+
ref: containerRef,
|
|
3646
|
+
style: {
|
|
3647
|
+
height: '100%'
|
|
3648
|
+
}
|
|
3648
3649
|
}, React.createElement(MonacoEditor, {
|
|
3649
3650
|
width: '100%',
|
|
3650
3651
|
height: '100%',
|