{"version":3,"file":"InlineInput.cjs","sources":["../../../../src/components/CodeMirror/InlineInput.tsx"],"sourcesContent":["import { autocompletion } from '@codemirror/autocomplete';\nimport { EditorState, type Extension } from '@codemirror/state';\nimport { EditorView, tooltips } from '@codemirror/view';\nimport { css, cx } from '@emotion/css';\nimport { memo, useMemo } from 'react';\n\nimport { type GrafanaTheme2 } from '@grafana/data';\n\nimport { useStyles2, useTheme2 } from '../../themes/ThemeContext';\nimport { getFocusStyles } from '../../themes/mixins';\nimport { getInputStyles } from '../Input/Input';\n\nimport { CodeEditor } from './CodeEditor';\nimport { type CodeMirrorCompletionSource, type CodeMirrorExtension } from './types';\n\nexport interface CodeMirrorInlineInputProps {\n  value: string;\n  onChange: (value: string) => void;\n  /** Placeholder shown when the input is empty. */\n  placeholder?: string;\n  /**\n   * Completion sources, e.g. for variable suggestions.\n   * Memoize this — a new array each render reconfigures the editor.\n   */\n  completionSources?: readonly CodeMirrorCompletionSource[];\n  /**\n   * Extra extensions layered on top, e.g. syntax highlighting or token theming.\n   * Memoize this — a new array each render reconfigures the editor.\n   */\n  extensions?: CodeMirrorExtension[];\n  'aria-label'?: string;\n  'aria-labelledby'?: string;\n  /**\n   * DOM id applied to the wrapping element. The editable element is rendered as\n   * a descendant, so selectors like `#your-id [contenteditable=\"true\"]` resolve\n   * to it.\n   */\n  id?: string;\n  /**\n   * When `true` (default) the field uses the monospace font, suited to code-ish\n   * content like URLs. Pass `false` for prose-like content (e.g. a title) to use\n   * the standard proportional UI font.\n   */\n  monospace?: boolean;\n}\n\n/**\n * Keeps the editor to a single line: any transaction that would produce more\n * than one line (a typed Enter, a programmatic newline) is dropped.\n */\nexport const singleLineFilter: Extension = EditorState.transactionFilter.of((tr) => (tr.newDoc.lines > 1 ? [] : tr));\n\n/**\n * Strips newlines from pasted text so multi-line clipboard content (e.g. a URL\n * copied with a trailing newline) collapses into the single line rather than\n * being rejected wholesale by `singleLineFilter`.\n */\nexport const stripNewlinesOnPaste: Extension = EditorView.domEventHandlers({\n  paste(event, view) {\n    const text = event.clipboardData?.getData('text');\n    if (!text || !/[\\r\\n]/.test(text)) {\n      return false;\n    }\n    event.preventDefault();\n    view.dispatch(view.state.replaceSelection(text.replace(/[\\r\\n]+/g, '')));\n    return true;\n  },\n});\n\n// A single-line text field shouldn't look or behave like a code editor. Disable\n// gutters, active-line highlighting, bracket closing/matching, auto-indent, and\n// the bundled autocompletion (this component configures its own). Editing\n// niceties (undo history, the default keymap) stay on.\n//\n// `drawSelection` is off so the browser's native caret/selection is used. With\n// the placeholder rendered as an overlay (not a CodeMirror widget), an empty\n// doc is a normal `<div class=\"cm-line\"><br></div>`, which the native caret\n// anchors to and renders on the first focus — the drawn caret did not show on\n// an empty doc here.\nconst INLINE_BASIC_SETUP = {\n  lineNumbers: false,\n  foldGutter: false,\n  highlightActiveLine: false,\n  highlightActiveLineGutter: false,\n  closeBrackets: false,\n  bracketMatching: false,\n  indentOnInput: false,\n  autocompletion: false,\n  drawSelection: false,\n} as const;\n\nfunction createInlineInputTheme(theme: GrafanaTheme2, monospace: boolean): Extension {\n  const fontFamily = monospace ? theme.typography.fontFamilyMonospace : theme.typography.fontFamily;\n  return EditorView.theme({\n    '&': {\n      fontSize: theme.typography.body.fontSize,\n      fontFamily,\n      backgroundColor: 'transparent',\n    },\n    '&.cm-focused': {\n      outline: 'none',\n    },\n    '.cm-scroller': {\n      fontFamily,\n      // Values wrap (see `lineWrapping`) rather than scrolling horizontally.\n      overflowX: 'hidden',\n      overflowY: 'hidden',\n      lineHeight: 'inherit',\n    },\n    '.cm-content': {\n      padding: 0,\n      color: theme.colors.text.primary,\n      // `drawSelection` is off (see basicSetup), so this colors the native caret.\n      caretColor: theme.colors.text.primary,\n    },\n    '.cm-line': {\n      padding: 0,\n    },\n    // The popup is parented to `document.body` (see `tooltips` extension) so it\n    // escapes the modal's clipping/stacking context; lift it above the modal.\n    '.cm-tooltip': {\n      zIndex: theme.zIndex.portal,\n    },\n    // Autocomplete dropdown — match Grafana surfaces rather than the editor theme.\n    '.cm-tooltip.cm-tooltip-autocomplete': {\n      backgroundColor: theme.colors.background.primary,\n      border: `1px solid ${theme.colors.border.weak}`,\n      borderRadius: theme.shape.radius.default,\n      boxShadow: theme.flags.visualDesignRefresh ? theme.shadows.z2 : theme.shadows.z3,\n    },\n    // The detail panel (\"info\" / documentation). CodeMirror gives it no color of\n    // its own, so without this it falls back to the editor's light/dark base\n    // theme and is unreadable on Grafana surfaces.\n    '.cm-tooltip.cm-completionInfo': {\n      backgroundColor: theme.colors.background.primary,\n      color: theme.colors.text.primary,\n      border: `1px solid ${theme.colors.border.weak}`,\n      borderRadius: theme.shape.radius.default,\n      boxShadow: theme.flags.visualDesignRefresh ? theme.shadows.z2 : theme.shadows.z3,\n      padding: theme.spacing(0.5, 1),\n      fontFamily: theme.typography.fontFamily,\n      fontSize: theme.typography.bodySmall.fontSize,\n    },\n    '.cm-tooltip.cm-tooltip-autocomplete > ul': {\n      fontFamily: theme.typography.fontFamily,\n      maxHeight: '300px',\n    },\n    '.cm-tooltip.cm-tooltip-autocomplete > ul > li': {\n      padding: '2px 8px',\n      color: theme.colors.text.primary,\n    },\n    '.cm-tooltip-autocomplete ul li[aria-selected]': {\n      backgroundColor: theme.colors.action.hover,\n      color: theme.colors.text.primary,\n    },\n    '.cm-tooltip-autocomplete ul li:hover': {\n      backgroundColor: theme.colors.action.hover,\n      color: theme.colors.text.primary,\n    },\n    '.cm-completionLabel': {\n      fontFamily: theme.typography.fontFamilyMonospace,\n    },\n    '.cm-completionDetail': {\n      color: theme.colors.text.secondary,\n      fontStyle: 'normal',\n      marginLeft: theme.spacing(1),\n    },\n  });\n}\n\nconst getStyles = (theme: GrafanaTheme2, monospace: boolean) => ({\n  // Render the standard Grafana input chrome (border, background, radius,\n  // typography) so the field reads like a normal text input. The inner editor\n  // is transparent (see `createInlineInputTheme`), so this background — and the\n  // placeholder overlay behind it — show through.\n  wrapper: cx(\n    getInputStyles({ theme }).input,\n    css({\n      display: 'flex',\n      alignItems: 'center',\n      width: '100%',\n      // Float to the standard input height so a single-line value lines up with\n      // sibling `Input` fields (`alignItems` centers the editor within it), but\n      // only as a minimum: a wrapped, multi-line value grows the field downward.\n      minHeight: theme.spacing(theme.components.height.md),\n      padding: theme.spacing(0.25, 1),\n      '&:focus-within': getFocusStyles(theme),\n    })\n  ),\n  // The editor fills the row, sits above the placeholder overlay, and may shrink\n  // so long values scroll horizontally instead of stretching the field.\n  editor: css({\n    position: 'relative',\n    zIndex: 1,\n    flex: 1,\n    minWidth: 0,\n    '& > div': {\n      width: '100%',\n    },\n  }),\n  // The placeholder is rendered here as an overlay rather than via CodeMirror's\n  // inline widget: the widget left the empty editor with no caret anchor, so the\n  // caret was invisible until the first edit. Sitting behind the transparent\n  // editor, this shows through while the editor keeps a normal caret.\n  placeholder: css({\n    position: 'absolute',\n    left: theme.spacing(1),\n    right: theme.spacing(1),\n    top: '50%',\n    transform: 'translateY(-50%)',\n    color: theme.colors.text.disabled,\n    fontFamily: monospace ? theme.typography.fontFamilyMonospace : theme.typography.fontFamily,\n    fontSize: theme.typography.body.fontSize,\n    pointerEvents: 'none',\n    whiteSpace: 'nowrap',\n    overflow: 'hidden',\n  }),\n});\n\n/**\n * A single-line text input built on `CodeMirrorEditor`, styled to read as a\n * standard Grafana text field. Supports placeholder text and completion\n * sources; layer syntax highlighting or token theming via `extensions`.\n */\nexport const CodeMirrorInlineInput = memo(function CodeMirrorInlineInput({\n  value,\n  onChange,\n  placeholder,\n  completionSources,\n  extensions: extraExtensions,\n  'aria-label': ariaLabel,\n  'aria-labelledby': ariaLabelledby,\n  id,\n  monospace = true,\n}: CodeMirrorInlineInputProps) {\n  const theme = useTheme2();\n  const styles = useStyles2(getStyles, monospace);\n\n  const editorTheme = useMemo(() => createInlineInputTheme(theme, monospace), [theme, monospace]);\n\n  const extensions = useMemo(\n    () => [\n      singleLineFilter,\n      stripNewlinesOnPaste,\n      // Soft-wrap a long value across visual rows. This is layout-only: it adds\n      // no newline to the doc, so `singleLineFilter` still sees one line and\n      // hard Enter stays blocked — the field grows downward instead of clipping.\n      EditorView.lineWrapping,\n      // Render tooltips (the completion popup) in `document.body` so they aren't\n      // clipped by, or stacked beneath, a containing modal's scroll/footer.\n      tooltips({ parent: document.body }),\n      // The visible placeholder is an overlay (see render); expose it to\n      // assistive tech via `aria-placeholder` on the editable element.\n      ...(placeholder ? [EditorView.contentAttributes.of({ 'aria-placeholder': placeholder })] : []),\n      // Configure autocompletion directly (rather than via the base's\n      // `completionSources` prop) so `interactionDelay` can be disabled: Enter\n      // has no other purpose in a single-line input, so it should accept the\n      // selected completion immediately, matching the previous behavior.\n      ...(completionSources?.length ? [autocompletion({ override: [...completionSources], interactionDelay: 0 })] : []),\n      ...(extraExtensions ?? []),\n    ],\n    [placeholder, completionSources, extraExtensions]\n  );\n\n  return (\n    <div className={styles.wrapper} id={id}>\n      <div className={styles.editor}>\n        <CodeEditor\n          value={value}\n          onChange={onChange}\n          theme={editorTheme}\n          basicSetup={INLINE_BASIC_SETUP}\n          height=\"auto\"\n          extensions={extensions}\n          aria-label={ariaLabel}\n          aria-labelledby={ariaLabelledby}\n          indentWithTab={false}\n        />\n      </div>\n      {placeholder && value.length === 0 && (\n        <div className={styles.placeholder} aria-hidden>\n          {placeholder}\n        </div>\n      )}\n    </div>\n  );\n});\n"],"names":["EditorState","EditorView","cx","getInputStyles","css","getFocusStyles","memo","CodeMirrorInlineInput","useTheme2","useStyles2","useMemo","tooltips","autocompletion","jsxs","jsx","CodeEditor"],"mappings":";;;;;;;;;;;;;;;;AAkDO,MAAM,gBAAA,GAA8BA,iBAAA,CAAY,iBAAA,CAAkB,EAAA,CAAG,CAAC,EAAA,KAAQ,EAAA,CAAG,MAAA,CAAO,KAAA,GAAQ,CAAA,GAAI,EAAC,GAAI,EAAG;AAO5G,MAAM,oBAAA,GAAkCC,gBAAW,gBAAA,CAAiB;AAAA,EACzE,KAAA,CAAM,OAAO,IAAA,EAAM;AA1DrB,IAAA,IAAA,EAA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