214 |
215 |
Query Parameters
216 |
217 |
218 | {queryParams.map((queryParam, i) => (
219 | {
223 | this.onQueryParamChange(i, h)
224 | }}
225 | onBlur={this.updateSettings}
226 | onRemove={this.onQueryParamRemove}
227 | onReset={this.onQueryParamReset}
228 | />
229 | ))}
230 |
231 |
232 |
242 |
243 |
244 | )
245 | }
246 | }
247 |
248 | export default CustomQueryParamsSettings
249 |
--------------------------------------------------------------------------------
/src/components/fields/JsonPathField.tsx:
--------------------------------------------------------------------------------
1 | import { BracesPlugin, QueryField, SlatePrism } from '@grafana/ui'
2 | import { useDebounce } from 'hooks/useDebounce'
3 | import React, { useEffect, useState } from 'react'
4 |
5 | interface Props {
6 | jsonPath: string
7 | onChange: (v: string) => void
8 | }
9 |
10 | /**
11 | * JsonPathQueryField is an editor for JSON Path.
12 | */
13 | export const JsonPathField: React.FC