@fc-components/monaco-editor 0.1.21 → 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.
@@ -2019,8 +2019,7 @@ var getStyles = function getStyles(placeholder) {
2019
2019
  };
2020
2020
  function PromQLEditor(props) {
2021
2021
  var id = v4();
2022
- var _props$className = props.className,
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 maxHeight = props.maxHeight,
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,
@@ -3636,8 +3633,9 @@ 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,