@grafana/plugin-ui 0.7.2 → 0.9.0

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.
Files changed (417) hide show
  1. package/README.md +3 -34
  2. package/dist/components/AsyncButtonCascader/AsyncButtonCascader.js +4 -5
  3. package/dist/components/AsyncButtonCascader/AsyncButtonCascader.js.map +1 -1
  4. package/dist/components/ConfigEditor/AdvancedSettings/AdvancedHttpSettings.js +28 -0
  5. package/dist/components/ConfigEditor/AdvancedSettings/AdvancedHttpSettings.js.map +1 -0
  6. package/dist/components/ConfigEditor/AdvancedSettings/index.js +6 -0
  7. package/dist/components/ConfigEditor/AdvancedSettings/index.js.map +1 -0
  8. package/dist/components/ConfigEditor/Auth/Auth.js +24 -0
  9. package/dist/components/ConfigEditor/Auth/Auth.js.map +1 -0
  10. package/dist/components/ConfigEditor/Auth/auth-method/AuthMethodSettings.js +109 -0
  11. package/dist/components/ConfigEditor/Auth/auth-method/AuthMethodSettings.js.map +1 -0
  12. package/dist/components/ConfigEditor/Auth/auth-method/BasicAuth.js +23 -0
  13. package/dist/components/ConfigEditor/Auth/auth-method/BasicAuth.js.map +1 -0
  14. package/dist/components/ConfigEditor/Auth/custom-headers/CustomHeader.js +41 -0
  15. package/dist/components/ConfigEditor/Auth/custom-headers/CustomHeader.js.map +1 -0
  16. package/dist/components/ConfigEditor/Auth/custom-headers/CustomHeaders.js +76 -0
  17. package/dist/components/ConfigEditor/Auth/custom-headers/CustomHeaders.js.map +1 -0
  18. package/dist/components/ConfigEditor/Auth/index.js +10 -0
  19. package/dist/components/ConfigEditor/Auth/index.js.map +1 -0
  20. package/dist/components/ConfigEditor/Auth/styles.js +19 -0
  21. package/dist/components/ConfigEditor/Auth/styles.js.map +1 -0
  22. package/dist/components/ConfigEditor/Auth/tls/SelfSignedCertificate.js +18 -0
  23. package/dist/components/ConfigEditor/Auth/tls/SelfSignedCertificate.js.map +1 -0
  24. package/dist/components/ConfigEditor/Auth/tls/SkipTLSVerification.js +11 -0
  25. package/dist/components/ConfigEditor/Auth/tls/SkipTLSVerification.js.map +1 -0
  26. package/dist/components/ConfigEditor/Auth/tls/TLSClientAuth.js +22 -0
  27. package/dist/components/ConfigEditor/Auth/tls/TLSClientAuth.js.map +1 -0
  28. package/dist/components/ConfigEditor/Auth/tls/TLSSettings.js +25 -0
  29. package/dist/components/ConfigEditor/Auth/tls/TLSSettings.js.map +1 -0
  30. package/dist/components/ConfigEditor/Auth/tls/TLSSettingsSection.js +35 -0
  31. package/dist/components/ConfigEditor/Auth/tls/TLSSettingsSection.js.map +1 -0
  32. package/dist/components/ConfigEditor/Auth/types.js +11 -0
  33. package/dist/components/ConfigEditor/Auth/types.js.map +1 -0
  34. package/dist/components/ConfigEditor/Auth/utils.js +112 -0
  35. package/dist/components/ConfigEditor/Auth/utils.js.map +1 -0
  36. package/dist/components/ConfigEditor/ConfigSection/ConfigDescriptionLink.js +32 -0
  37. package/dist/components/ConfigEditor/ConfigSection/ConfigDescriptionLink.js.map +1 -0
  38. package/dist/components/ConfigEditor/ConfigSection/ConfigSection.js +12 -0
  39. package/dist/components/ConfigEditor/ConfigSection/ConfigSection.js.map +1 -0
  40. package/dist/components/ConfigEditor/ConfigSection/ConfigSubSection.js +12 -0
  41. package/dist/components/ConfigEditor/ConfigSection/ConfigSubSection.js.map +1 -0
  42. package/dist/components/ConfigEditor/ConfigSection/GenericConfigSection.js +40 -0
  43. package/dist/components/ConfigEditor/ConfigSection/GenericConfigSection.js.map +1 -0
  44. package/dist/components/ConfigEditor/ConfigSection/index.js +10 -0
  45. package/dist/components/ConfigEditor/ConfigSection/index.js.map +1 -0
  46. package/dist/components/ConfigEditor/Connection/ConnectionSettings.js +25 -0
  47. package/dist/components/ConfigEditor/Connection/ConnectionSettings.js.map +1 -0
  48. package/dist/components/ConfigEditor/Connection/index.js +6 -0
  49. package/dist/components/ConfigEditor/Connection/index.js.map +1 -0
  50. package/dist/components/ConfigEditor/DataSourceDescription.js +39 -0
  51. package/dist/components/ConfigEditor/DataSourceDescription.js.map +1 -0
  52. package/dist/components/ConfigEditor/SecureSocksProxyToggle.js +8 -13
  53. package/dist/components/ConfigEditor/SecureSocksProxyToggle.js.map +1 -1
  54. package/dist/components/ConfigEditor/index.js +15 -3
  55. package/dist/components/ConfigEditor/index.js.map +1 -1
  56. package/dist/components/ConfigEditor/types.js +3 -0
  57. package/dist/components/ConfigEditor/types.js.map +1 -0
  58. package/dist/components/CustomHeadersSettings/CustomHeadersSettings.js +12 -17
  59. package/dist/components/CustomHeadersSettings/CustomHeadersSettings.js.map +1 -1
  60. package/dist/components/DataLinks/DataLink.js +3 -3
  61. package/dist/components/DataLinks/DataLink.js.map +1 -1
  62. package/dist/components/DataLinks/DataLinks.js +6 -9
  63. package/dist/components/DataLinks/DataLinks.js.map +1 -1
  64. package/dist/components/DataLinks/index.js.map +1 -1
  65. package/dist/components/DataSourcePicker/DataSourcePicker.js +4 -6
  66. package/dist/components/DataSourcePicker/DataSourcePicker.js.map +1 -1
  67. package/dist/components/DatePicker/DatePicker.js +5 -3
  68. package/dist/components/DatePicker/DatePicker.js.map +1 -1
  69. package/dist/components/DatePicker/styles.js +8 -10
  70. package/dist/components/DatePicker/styles.js.map +1 -1
  71. package/dist/components/DatePickerWithInput/DatePickerWithInput.js +1 -1
  72. package/dist/components/DatePickerWithInput/DatePickerWithInput.js.map +1 -1
  73. package/dist/components/DebounceInput/DebounceInput.js +3 -1
  74. package/dist/components/DebounceInput/DebounceInput.js.map +1 -1
  75. package/dist/components/Plugins/PluginSignatureBadge.js.map +1 -1
  76. package/dist/components/QueryEditor/AccessoryButton.js +3 -4
  77. package/dist/components/QueryEditor/AccessoryButton.js.map +1 -1
  78. package/dist/components/QueryEditor/DatasetSelector.js.map +1 -1
  79. package/dist/components/QueryEditor/EditorField.js +7 -9
  80. package/dist/components/QueryEditor/EditorField.js.map +1 -1
  81. package/dist/components/QueryEditor/EditorFieldGroup.js +2 -2
  82. package/dist/components/QueryEditor/EditorFieldGroup.js.map +1 -1
  83. package/dist/components/QueryEditor/EditorHeader.js +3 -4
  84. package/dist/components/QueryEditor/EditorHeader.js.map +1 -1
  85. package/dist/components/QueryEditor/EditorList.js +5 -6
  86. package/dist/components/QueryEditor/EditorList.js.map +1 -1
  87. package/dist/components/QueryEditor/EditorRow.js +3 -3
  88. package/dist/components/QueryEditor/EditorRow.js.map +1 -1
  89. package/dist/components/QueryEditor/EditorRows.js +2 -2
  90. package/dist/components/QueryEditor/EditorRows.js.map +1 -1
  91. package/dist/components/QueryEditor/EditorStack.js +13 -0
  92. package/dist/components/QueryEditor/EditorStack.js.map +1 -0
  93. package/dist/components/QueryEditor/EditorSwitch.js.map +1 -1
  94. package/dist/components/QueryEditor/FlexItem.js.map +1 -1
  95. package/dist/components/QueryEditor/InlineSelect.js +5 -8
  96. package/dist/components/QueryEditor/InlineSelect.js.map +1 -1
  97. package/dist/components/QueryEditor/InputGroup.js +29 -9
  98. package/dist/components/QueryEditor/InputGroup.js.map +1 -1
  99. package/dist/components/QueryEditor/QueryHeader.js +1 -4
  100. package/dist/components/QueryEditor/QueryHeader.js.map +1 -1
  101. package/dist/components/QueryEditor/RunQueryButton.js +3 -5
  102. package/dist/components/QueryEditor/RunQueryButton.js.map +1 -1
  103. package/dist/components/QueryEditor/TableSelector.js.map +1 -1
  104. package/dist/components/QueryEditor/index.js +3 -3
  105. package/dist/components/QueryEditor/index.js.map +1 -1
  106. package/dist/components/QueryEditor/query-editor-raw/QueryEditorRaw.js +2 -2
  107. package/dist/components/QueryEditor/query-editor-raw/QueryEditorRaw.js.map +1 -1
  108. package/dist/components/QueryEditor/types.js +2 -2
  109. package/dist/components/QueryEditor/types.js.map +1 -1
  110. package/dist/components/QueryEditor/utils/sql.utils.js.map +1 -1
  111. package/dist/components/QueryEditor/visual-query-builder/AwesomeQueryBuilder.js +1 -1
  112. package/dist/components/QueryEditor/visual-query-builder/AwesomeQueryBuilder.js.map +1 -1
  113. package/dist/components/QueryEditor/visual-query-builder/EditorField.js.map +1 -1
  114. package/dist/components/QueryEditor/visual-query-builder/EditorRow.js +2 -2
  115. package/dist/components/QueryEditor/visual-query-builder/EditorRow.js.map +1 -1
  116. package/dist/components/QueryEditor/visual-query-builder/EditorRows.js +2 -2
  117. package/dist/components/QueryEditor/visual-query-builder/EditorRows.js.map +1 -1
  118. package/dist/components/QueryEditor/visual-query-builder/SelectRow.js +3 -3
  119. package/dist/components/QueryEditor/visual-query-builder/SelectRow.js.map +1 -1
  120. package/dist/components/QueryEditor/visual-query-builder/VisualEditor.js +1 -1
  121. package/dist/components/QueryEditor/visual-query-builder/VisualEditor.js.map +1 -1
  122. package/dist/components/QueryEditorRow/QueryEditorRow.js +3 -4
  123. package/dist/components/QueryEditorRow/QueryEditorRow.js.map +1 -1
  124. package/dist/components/SQLEditor/components/SQLEditor.js +330 -0
  125. package/dist/components/SQLEditor/components/SQLEditor.js.map +1 -0
  126. package/dist/components/SQLEditor/index.js +25 -0
  127. package/dist/components/SQLEditor/index.js.map +1 -0
  128. package/dist/components/SQLEditor/mocks/Monaco.js +23 -0
  129. package/dist/components/SQLEditor/mocks/Monaco.js.map +1 -0
  130. package/dist/components/SQLEditor/mocks/TextModel.js +22 -0
  131. package/dist/components/SQLEditor/mocks/TextModel.js.map +1 -0
  132. package/dist/components/SQLEditor/mocks/queries/multiLineFullQuery.js +216 -0
  133. package/dist/components/SQLEditor/mocks/queries/multiLineFullQuery.js.map +1 -0
  134. package/dist/components/SQLEditor/mocks/queries/multiLineFullQueryWithAggregation.js +231 -0
  135. package/dist/components/SQLEditor/mocks/queries/multiLineFullQueryWithAggregation.js.map +1 -0
  136. package/dist/components/SQLEditor/mocks/queries/multiLineMultipleColumns.js +271 -0
  137. package/dist/components/SQLEditor/mocks/queries/multiLineMultipleColumns.js.map +1 -0
  138. package/dist/components/SQLEditor/mocks/queries/singleLineEmptyQuery.js +8 -0
  139. package/dist/components/SQLEditor/mocks/queries/singleLineEmptyQuery.js.map +1 -0
  140. package/dist/components/SQLEditor/mocks/queries/singleLineFullQuery.js +196 -0
  141. package/dist/components/SQLEditor/mocks/queries/singleLineFullQuery.js.map +1 -0
  142. package/dist/components/SQLEditor/mocks/queries/singleLineFullQueryWithAggregation.js +211 -0
  143. package/dist/components/SQLEditor/mocks/queries/singleLineFullQueryWithAggregation.js.map +1 -0
  144. package/dist/components/SQLEditor/mocks/queries/singleLineMultipleColumns.js +251 -0
  145. package/dist/components/SQLEditor/mocks/queries/singleLineMultipleColumns.js.map +1 -0
  146. package/dist/components/SQLEditor/mocks/queries/singleLineTwoQueries.js +386 -0
  147. package/dist/components/SQLEditor/mocks/queries/singleLineTwoQueries.js.map +1 -0
  148. package/dist/components/SQLEditor/mocks/queries/singleLineTwoQueriesWithAggregation.js +416 -0
  149. package/dist/components/SQLEditor/mocks/queries/singleLineTwoQueriesWithAggregation.js.map +1 -0
  150. package/dist/components/SQLEditor/mocks/testData.js +22 -0
  151. package/dist/components/SQLEditor/mocks/testData.js.map +1 -0
  152. package/dist/components/SQLEditor/standardSql/definition.js +13 -0
  153. package/dist/components/SQLEditor/standardSql/definition.js.map +1 -0
  154. package/dist/components/SQLEditor/standardSql/getStandardSuggestions.js +26 -0
  155. package/dist/components/SQLEditor/standardSql/getStandardSuggestions.js.map +1 -0
  156. package/dist/components/SQLEditor/standardSql/getStatementPosition.js +24 -0
  157. package/dist/components/SQLEditor/standardSql/getStatementPosition.js.map +1 -0
  158. package/dist/components/SQLEditor/standardSql/language.js +875 -0
  159. package/dist/components/SQLEditor/standardSql/language.js.map +1 -0
  160. package/dist/components/SQLEditor/standardSql/macros.js +166 -0
  161. package/dist/components/SQLEditor/standardSql/macros.js.map +1 -0
  162. package/dist/components/SQLEditor/standardSql/standardSQLCompletionItemProvider.js +30 -0
  163. package/dist/components/SQLEditor/standardSql/standardSQLCompletionItemProvider.js.map +1 -0
  164. package/dist/components/SQLEditor/standardSql/standardSuggestionsRegistry.js +378 -0
  165. package/dist/components/SQLEditor/standardSql/standardSuggestionsRegistry.js.map +1 -0
  166. package/dist/components/SQLEditor/standardSql/statementPositionResolversRegistry.js +234 -0
  167. package/dist/components/SQLEditor/standardSql/statementPositionResolversRegistry.js.map +1 -0
  168. package/dist/components/SQLEditor/standardSql/suggestionsKindRegistry.js +153 -0
  169. package/dist/components/SQLEditor/standardSql/suggestionsKindRegistry.js.map +1 -0
  170. package/dist/components/SQLEditor/standardSql/types.js +3 -0
  171. package/dist/components/SQLEditor/standardSql/types.js.map +1 -0
  172. package/dist/components/SQLEditor/test-utils/index.js +11 -0
  173. package/dist/components/SQLEditor/test-utils/index.js.map +1 -0
  174. package/dist/components/SQLEditor/test-utils/statementPosition.js +40 -0
  175. package/dist/components/SQLEditor/test-utils/statementPosition.js.map +1 -0
  176. package/dist/components/SQLEditor/test-utils/types.js +3 -0
  177. package/dist/components/SQLEditor/test-utils/types.js.map +1 -0
  178. package/dist/components/SQLEditor/types.js +139 -0
  179. package/dist/components/SQLEditor/types.js.map +1 -0
  180. package/dist/components/SQLEditor/utils/LinkedToken.js +147 -0
  181. package/dist/components/SQLEditor/utils/LinkedToken.js.map +1 -0
  182. package/dist/components/SQLEditor/utils/commands.js +8 -0
  183. package/dist/components/SQLEditor/utils/commands.js.map +1 -0
  184. package/dist/components/SQLEditor/utils/debugger.js +14 -0
  185. package/dist/components/SQLEditor/utils/debugger.js.map +1 -0
  186. package/dist/components/SQLEditor/utils/getSuggestionKind.js +18 -0
  187. package/dist/components/SQLEditor/utils/getSuggestionKind.js.map +1 -0
  188. package/dist/components/SQLEditor/utils/linkedTokenBuilder.js +46 -0
  189. package/dist/components/SQLEditor/utils/linkedTokenBuilder.js.map +1 -0
  190. package/dist/components/SQLEditor/utils/toCompletionItem.js +10 -0
  191. package/dist/components/SQLEditor/utils/toCompletionItem.js.map +1 -0
  192. package/dist/components/SQLEditor/utils/tokenUtils.js +72 -0
  193. package/dist/components/SQLEditor/utils/tokenUtils.js.map +1 -0
  194. package/dist/components/SQLEditor/utils/types.js +3 -0
  195. package/dist/components/SQLEditor/utils/types.js.map +1 -0
  196. package/dist/components/Segment/Segment.js +2 -1
  197. package/dist/components/Segment/Segment.js.map +1 -1
  198. package/dist/components/VisualQueryBuilder/QueryModellerBase.js +35 -0
  199. package/dist/components/VisualQueryBuilder/QueryModellerBase.js.map +1 -0
  200. package/dist/components/VisualQueryBuilder/components/LabelFilterItem.js +125 -0
  201. package/dist/components/VisualQueryBuilder/components/LabelFilterItem.js.map +1 -0
  202. package/dist/components/VisualQueryBuilder/components/LabelFilters.js +37 -0
  203. package/dist/components/VisualQueryBuilder/components/LabelFilters.js.map +1 -0
  204. package/dist/components/VisualQueryBuilder/components/OperationEditor.js +41 -0
  205. package/dist/components/VisualQueryBuilder/components/OperationEditor.js.map +1 -0
  206. package/dist/components/VisualQueryBuilder/components/OperationEditorBody.js +173 -0
  207. package/dist/components/VisualQueryBuilder/components/OperationEditorBody.js.map +1 -0
  208. package/dist/components/VisualQueryBuilder/components/OperationExplainedBox.js +64 -0
  209. package/dist/components/VisualQueryBuilder/components/OperationExplainedBox.js.map +1 -0
  210. package/dist/components/VisualQueryBuilder/components/OperationHeader.js +67 -0
  211. package/dist/components/VisualQueryBuilder/components/OperationHeader.js.map +1 -0
  212. package/dist/components/VisualQueryBuilder/components/OperationInfoButton.js +71 -0
  213. package/dist/components/VisualQueryBuilder/components/OperationInfoButton.js.map +1 -0
  214. package/dist/components/VisualQueryBuilder/components/OperationList.js +129 -0
  215. package/dist/components/VisualQueryBuilder/components/OperationList.js.map +1 -0
  216. package/dist/components/VisualQueryBuilder/components/OperationListExplained.js +22 -0
  217. package/dist/components/VisualQueryBuilder/components/OperationListExplained.js.map +1 -0
  218. package/dist/components/VisualQueryBuilder/components/OperationParamEditor.js +71 -0
  219. package/dist/components/VisualQueryBuilder/components/OperationParamEditor.js.map +1 -0
  220. package/dist/components/VisualQueryBuilder/components/OperationsEditorRow.js +24 -0
  221. package/dist/components/VisualQueryBuilder/components/OperationsEditorRow.js.map +1 -0
  222. package/dist/components/VisualQueryBuilder/components/QueryBuilderHints.js +54 -0
  223. package/dist/components/VisualQueryBuilder/components/QueryBuilderHints.js.map +1 -0
  224. package/dist/components/VisualQueryBuilder/components/QueryEditorModeToggle.js +17 -0
  225. package/dist/components/VisualQueryBuilder/components/QueryEditorModeToggle.js.map +1 -0
  226. package/dist/components/VisualQueryBuilder/components/QueryHeaderSwitch.js +32 -0
  227. package/dist/components/VisualQueryBuilder/components/QueryHeaderSwitch.js.map +1 -0
  228. package/dist/components/VisualQueryBuilder/components/QueryOptionGroup.js +81 -0
  229. package/dist/components/VisualQueryBuilder/components/QueryOptionGroup.js.map +1 -0
  230. package/dist/components/VisualQueryBuilder/components/RawQuery.js +25 -0
  231. package/dist/components/VisualQueryBuilder/components/RawQuery.js.map +1 -0
  232. package/dist/components/VisualQueryBuilder/index.js +29 -0
  233. package/dist/components/VisualQueryBuilder/index.js.map +1 -0
  234. package/dist/components/VisualQueryBuilder/types.js +10 -0
  235. package/dist/components/VisualQueryBuilder/types.js.map +1 -0
  236. package/dist/components/index.js +2 -0
  237. package/dist/components/index.js.map +1 -1
  238. package/dist/datasource/SqlDatasource.js.map +1 -1
  239. package/dist/hooks/useDebounce.js +2 -0
  240. package/dist/hooks/useDebounce.js.map +1 -1
  241. package/dist/index.js +1 -7
  242. package/dist/index.js.map +1 -1
  243. package/dist/src/components/AsyncButtonCascader/AsyncButtonCascader.d.ts +5 -2
  244. package/dist/src/components/ConfigEditor/AdvancedSettings/AdvancedHttpSettings.d.ts +8 -0
  245. package/dist/src/components/ConfigEditor/AdvancedSettings/index.d.ts +1 -0
  246. package/dist/src/components/ConfigEditor/Auth/Auth.d.ts +18 -0
  247. package/dist/src/components/ConfigEditor/Auth/auth-method/AuthMethodSettings.d.ts +14 -0
  248. package/dist/src/components/ConfigEditor/Auth/auth-method/BasicAuth.d.ts +17 -0
  249. package/dist/src/components/ConfigEditor/Auth/custom-headers/CustomHeader.d.ts +10 -0
  250. package/dist/src/components/ConfigEditor/Auth/custom-headers/CustomHeaders.d.ts +8 -0
  251. package/dist/src/components/ConfigEditor/Auth/index.d.ts +4 -0
  252. package/dist/src/components/ConfigEditor/Auth/styles.d.ts +4 -0
  253. package/dist/src/components/ConfigEditor/Auth/tls/SelfSignedCertificate.d.ts +13 -0
  254. package/dist/src/components/ConfigEditor/Auth/tls/SkipTLSVerification.d.ts +7 -0
  255. package/dist/src/components/ConfigEditor/Auth/tls/TLSClientAuth.d.ts +20 -0
  256. package/dist/src/components/ConfigEditor/Auth/tls/TLSSettings.d.ts +11 -0
  257. package/dist/src/components/ConfigEditor/Auth/tls/TLSSettingsSection.d.ts +9 -0
  258. package/dist/src/components/ConfigEditor/Auth/types.d.ts +28 -0
  259. package/dist/src/components/ConfigEditor/Auth/utils.d.ts +12 -0
  260. package/dist/src/components/ConfigEditor/ConfigSection/ConfigDescriptionLink.d.ts +8 -0
  261. package/dist/src/components/ConfigEditor/ConfigSection/ConfigSection.d.ts +5 -0
  262. package/dist/src/components/ConfigEditor/ConfigSection/ConfigSubSection.d.ts +5 -0
  263. package/dist/src/components/ConfigEditor/ConfigSection/GenericConfigSection.d.ts +10 -0
  264. package/dist/src/components/ConfigEditor/ConfigSection/index.d.ts +3 -0
  265. package/dist/src/components/ConfigEditor/Connection/ConnectionSettings.d.ts +13 -0
  266. package/dist/src/components/ConfigEditor/Connection/index.d.ts +1 -0
  267. package/dist/src/components/ConfigEditor/DataSourceDescription.d.ts +9 -0
  268. package/dist/src/components/ConfigEditor/SecureSocksProxyToggle.d.ts +4 -4
  269. package/dist/src/components/ConfigEditor/index.d.ts +7 -2
  270. package/dist/src/components/ConfigEditor/types.d.ts +3 -0
  271. package/dist/src/components/CustomHeadersSettings/CustomHeadersSettings.d.ts +2 -2
  272. package/dist/src/components/DataLinks/DataLink.d.ts +1 -1
  273. package/dist/src/components/Plugins/PluginSignatureBadge.d.ts +5 -2
  274. package/dist/src/components/QueryEditor/AccessoryButton.d.ts +2 -2
  275. package/dist/src/components/QueryEditor/DatasetSelector.d.ts +2 -2
  276. package/dist/src/components/QueryEditor/EditorField.d.ts +2 -1
  277. package/dist/src/components/QueryEditor/EditorFieldGroup.d.ts +2 -1
  278. package/dist/src/components/QueryEditor/EditorHeader.d.ts +2 -1
  279. package/dist/src/components/QueryEditor/EditorList.d.ts +1 -1
  280. package/dist/src/components/QueryEditor/EditorRow.d.ts +2 -1
  281. package/dist/src/components/QueryEditor/EditorRows.d.ts +2 -1
  282. package/dist/src/components/QueryEditor/EditorStack.d.ts +13 -0
  283. package/dist/src/components/QueryEditor/EditorSwitch.d.ts +2 -2
  284. package/dist/src/components/QueryEditor/FlexItem.d.ts +2 -2
  285. package/dist/src/components/QueryEditor/InputGroup.d.ts +7 -2
  286. package/dist/src/components/QueryEditor/RunQueryButton.d.ts +3 -3
  287. package/dist/src/components/QueryEditor/TableSelector.d.ts +2 -2
  288. package/dist/src/components/QueryEditor/index.d.ts +1 -1
  289. package/dist/src/components/QueryEditor/query-editor-raw/QueryEditorRaw.d.ts +1 -1
  290. package/dist/src/components/QueryEditor/types.d.ts +9 -14
  291. package/dist/src/components/QueryEditor/visual-query-builder/EditorField.d.ts +1 -1
  292. package/dist/src/components/QueryEditor/visual-query-builder/EditorRow.d.ts +2 -1
  293. package/dist/src/components/QueryEditor/visual-query-builder/EditorRows.d.ts +2 -1
  294. package/dist/src/components/QueryEditor/visual-query-builder/VisualEditor.d.ts +3 -4
  295. package/dist/src/components/SQLEditor/components/SQLEditor.d.ts +29 -0
  296. package/dist/src/components/SQLEditor/index.d.ts +7 -0
  297. package/dist/src/components/SQLEditor/mocks/Monaco.d.ts +3 -0
  298. package/dist/src/components/SQLEditor/mocks/TextModel.d.ts +7 -0
  299. package/dist/src/components/SQLEditor/mocks/queries/multiLineFullQuery.d.ts +2 -0
  300. package/dist/src/components/SQLEditor/mocks/queries/multiLineFullQueryWithAggregation.d.ts +2 -0
  301. package/dist/src/components/SQLEditor/mocks/queries/multiLineMultipleColumns.d.ts +2 -0
  302. package/dist/src/components/SQLEditor/mocks/queries/singleLineEmptyQuery.d.ts +2 -0
  303. package/dist/src/components/SQLEditor/mocks/queries/singleLineFullQuery.d.ts +2 -0
  304. package/dist/src/components/SQLEditor/mocks/queries/singleLineFullQueryWithAggregation.d.ts +2 -0
  305. package/dist/src/components/SQLEditor/mocks/queries/singleLineMultipleColumns.d.ts +2 -0
  306. package/dist/src/components/SQLEditor/mocks/queries/singleLineTwoQueries.d.ts +2 -0
  307. package/dist/src/components/SQLEditor/mocks/queries/singleLineTwoQueriesWithAggregation.d.ts +2 -0
  308. package/dist/src/components/SQLEditor/mocks/testData.d.ts +9 -0
  309. package/dist/src/components/SQLEditor/standardSql/definition.d.ts +3 -0
  310. package/dist/src/components/SQLEditor/standardSql/getStandardSuggestions.d.ts +6 -0
  311. package/dist/src/components/SQLEditor/standardSql/getStatementPosition.d.ts +5 -0
  312. package/dist/src/components/SQLEditor/standardSql/language.d.ts +23 -0
  313. package/dist/src/components/SQLEditor/standardSql/macros.d.ts +2 -0
  314. package/dist/src/components/SQLEditor/standardSql/standardSQLCompletionItemProvider.d.ts +4 -0
  315. package/dist/src/components/SQLEditor/standardSql/standardSuggestionsRegistry.d.ts +7 -0
  316. package/dist/src/components/SQLEditor/standardSql/statementPositionResolversRegistry.d.ts +2 -0
  317. package/dist/src/components/SQLEditor/standardSql/suggestionsKindRegistry.d.ts +7 -0
  318. package/dist/src/components/SQLEditor/standardSql/types.d.ts +33 -0
  319. package/dist/src/components/SQLEditor/test-utils/index.d.ts +7 -0
  320. package/dist/src/components/SQLEditor/test-utils/statementPosition.d.ts +3 -0
  321. package/dist/src/components/SQLEditor/test-utils/types.d.ts +12 -0
  322. package/dist/src/components/SQLEditor/types.d.ts +249 -0
  323. package/dist/src/components/SQLEditor/utils/LinkedToken.d.ts +29 -0
  324. package/dist/src/components/SQLEditor/utils/commands.d.ts +4 -0
  325. package/dist/src/components/SQLEditor/utils/debugger.d.ts +5 -0
  326. package/dist/src/components/SQLEditor/utils/getSuggestionKind.d.ts +7 -0
  327. package/dist/src/components/SQLEditor/utils/linkedTokenBuilder.d.ts +4 -0
  328. package/dist/src/components/SQLEditor/utils/toCompletionItem.d.ts +2 -0
  329. package/dist/src/components/SQLEditor/utils/tokenUtils.d.ts +14 -0
  330. package/dist/src/components/SQLEditor/utils/types.d.ts +11 -0
  331. package/dist/src/components/VisualQueryBuilder/QueryModellerBase.d.ts +18 -0
  332. package/dist/src/components/VisualQueryBuilder/components/LabelFilterItem.d.ts +18 -0
  333. package/dist/src/components/VisualQueryBuilder/components/LabelFilters.d.ts +14 -0
  334. package/dist/src/components/VisualQueryBuilder/components/OperationEditor.d.ts +19 -0
  335. package/dist/src/components/VisualQueryBuilder/components/OperationEditorBody.d.ts +22 -0
  336. package/dist/src/components/VisualQueryBuilder/components/OperationExplainedBox.d.ts +7 -0
  337. package/dist/src/components/VisualQueryBuilder/components/OperationHeader.d.ts +14 -0
  338. package/dist/src/components/VisualQueryBuilder/components/OperationInfoButton.d.ts +9 -0
  339. package/dist/src/components/VisualQueryBuilder/components/OperationList.d.ts +15 -0
  340. package/dist/src/components/VisualQueryBuilder/components/OperationListExplained.d.ts +17 -0
  341. package/dist/src/components/VisualQueryBuilder/components/OperationParamEditor.d.ts +4 -0
  342. package/dist/src/components/VisualQueryBuilder/components/OperationsEditorRow.d.ts +2 -0
  343. package/dist/src/components/VisualQueryBuilder/components/QueryBuilderHints.d.ts +20 -0
  344. package/dist/src/components/VisualQueryBuilder/components/QueryEditorModeToggle.d.ts +8 -0
  345. package/dist/src/components/VisualQueryBuilder/components/QueryHeaderSwitch.d.ts +7 -0
  346. package/dist/src/components/VisualQueryBuilder/components/QueryOptionGroup.d.ts +9 -0
  347. package/dist/src/components/VisualQueryBuilder/components/RawQuery.d.ts +12 -0
  348. package/dist/src/components/VisualQueryBuilder/index.d.ts +13 -0
  349. package/dist/src/components/VisualQueryBuilder/types.d.ts +89 -0
  350. package/dist/src/components/index.d.ts +5 -3
  351. package/dist/src/datasource/SqlDatasource.d.ts +3 -6
  352. package/dist/src/index.d.ts +0 -4
  353. package/dist/src/utils/changeset/functions.d.ts +1 -1
  354. package/dist/test/mocks/Datasource.js +1 -1
  355. package/dist/test/mocks/Datasource.js.map +1 -1
  356. package/dist/test/mocks/Plugin.js +2 -11
  357. package/dist/test/mocks/Plugin.js.map +1 -1
  358. package/dist/test/mocks/QueryEditorProps.js +0 -1
  359. package/dist/test/mocks/QueryEditorProps.js.map +1 -1
  360. package/dist/test/mocks/utils.js.map +1 -1
  361. package/dist/utils/changeset/functions.js +1 -1
  362. package/dist/utils/changeset/functions.js.map +1 -1
  363. package/dist/utils/changeset/index.js +20 -20
  364. package/dist/utils/changeset/index.js.map +1 -1
  365. package/package.json +41 -14
  366. package/CHANGELOG.md +0 -25
  367. package/dist/8x/fixtures/index.js +0 -7
  368. package/dist/8x/fixtures/index.js.map +0 -1
  369. package/dist/8x/fixtures/select.js +0 -43
  370. package/dist/8x/fixtures/select.js.map +0 -1
  371. package/dist/8x/index.js +0 -5
  372. package/dist/8x/index.js.map +0 -1
  373. package/dist/components/ConfigEditor/InlineLabel.js +0 -24
  374. package/dist/components/ConfigEditor/InlineLabel.js.map +0 -1
  375. package/dist/components/QueryEditor/ErrorBoundary.js +0 -23
  376. package/dist/components/QueryEditor/ErrorBoundary.js.map +0 -1
  377. package/dist/components/QueryEditor/Stack.js +0 -27
  378. package/dist/components/QueryEditor/Stack.js.map +0 -1
  379. package/dist/components/QueryEditor/visual-query-builder/Stack.js +0 -27
  380. package/dist/components/QueryEditor/visual-query-builder/Stack.js.map +0 -1
  381. package/dist/src/8x/fixtures/index.d.ts +0 -1
  382. package/dist/src/8x/fixtures/select.d.ts +0 -11
  383. package/dist/src/8x/index.d.ts +0 -1
  384. package/dist/src/components/ConfigEditor/InlineLabel.d.ts +0 -7
  385. package/dist/src/components/QueryEditor/ErrorBoundary.d.ts +0 -14
  386. package/dist/src/components/QueryEditor/Stack.d.ts +0 -9
  387. package/dist/src/components/QueryEditor/visual-query-builder/Stack.d.ts +0 -9
  388. package/dist/src/test/mocks/TestDatasource.d.ts +0 -6
  389. package/dist/src/test/mocks/style.d.ts +0 -1
  390. package/dist/src/test/setupTests.d.ts +0 -1
  391. package/dist/src/unreleasedComponents/SecretInput.d.ts +0 -15
  392. package/dist/src/unreleasedComponents/SecretTextarea.d.ts +0 -19
  393. package/dist/src/unreleasedComponents/index.d.ts +0 -2
  394. package/dist/src/utils/compatFeatures.d.ts +0 -9
  395. package/dist/src/utils/compatibility.d.ts +0 -13
  396. package/dist/src/utils/index.d.ts +0 -3
  397. package/dist/src/utils/testDatasource.d.ts +0 -19
  398. package/dist/test/mocks/TestDatasource.js +0 -24
  399. package/dist/test/mocks/TestDatasource.js.map +0 -1
  400. package/dist/test/mocks/style.js +0 -5
  401. package/dist/test/mocks/style.js.map +0 -1
  402. package/dist/test/setupTests.js +0 -17
  403. package/dist/test/setupTests.js.map +0 -1
  404. package/dist/unreleasedComponents/SecretInput.js +0 -21
  405. package/dist/unreleasedComponents/SecretInput.js.map +0 -1
  406. package/dist/unreleasedComponents/SecretTextarea.js +0 -36
  407. package/dist/unreleasedComponents/SecretTextarea.js.map +0 -1
  408. package/dist/unreleasedComponents/index.js +0 -9
  409. package/dist/unreleasedComponents/index.js.map +0 -1
  410. package/dist/utils/compatFeatures.js +0 -20
  411. package/dist/utils/compatFeatures.js.map +0 -1
  412. package/dist/utils/compatibility.js +0 -31
  413. package/dist/utils/compatibility.js.map +0 -1
  414. package/dist/utils/index.js +0 -8
  415. package/dist/utils/index.js.map +0 -1
  416. package/dist/utils/testDatasource.js +0 -30
  417. package/dist/utils/testDatasource.js.map +0 -1
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BINARY_OPERATIONS_KEY = exports.QueryEditorMode = exports.RawQuery = exports.QueryOptionGroup = exports.QueryHeaderSwitch = exports.QueryEditorModeToggle = exports.QueryBuilderHints = exports.OperationsEditorRow = exports.OperationListExplained = exports.OperationList = exports.OperationExplainedBox = exports.LabelFilters = exports.QueryModellerBase = void 0;
4
+ var QueryModellerBase_1 = require("./QueryModellerBase");
5
+ Object.defineProperty(exports, "QueryModellerBase", { enumerable: true, get: function () { return QueryModellerBase_1.QueryModellerBase; } });
6
+ var LabelFilters_1 = require("./components/LabelFilters");
7
+ Object.defineProperty(exports, "LabelFilters", { enumerable: true, get: function () { return LabelFilters_1.LabelFilters; } });
8
+ var OperationExplainedBox_1 = require("./components/OperationExplainedBox");
9
+ Object.defineProperty(exports, "OperationExplainedBox", { enumerable: true, get: function () { return OperationExplainedBox_1.OperationExplainedBox; } });
10
+ var OperationList_1 = require("./components/OperationList");
11
+ Object.defineProperty(exports, "OperationList", { enumerable: true, get: function () { return OperationList_1.OperationList; } });
12
+ var OperationListExplained_1 = require("./components/OperationListExplained");
13
+ Object.defineProperty(exports, "OperationListExplained", { enumerable: true, get: function () { return OperationListExplained_1.OperationListExplained; } });
14
+ var OperationsEditorRow_1 = require("./components/OperationsEditorRow");
15
+ Object.defineProperty(exports, "OperationsEditorRow", { enumerable: true, get: function () { return OperationsEditorRow_1.OperationsEditorRow; } });
16
+ var QueryBuilderHints_1 = require("./components/QueryBuilderHints");
17
+ Object.defineProperty(exports, "QueryBuilderHints", { enumerable: true, get: function () { return QueryBuilderHints_1.QueryBuilderHints; } });
18
+ var QueryEditorModeToggle_1 = require("./components/QueryEditorModeToggle");
19
+ Object.defineProperty(exports, "QueryEditorModeToggle", { enumerable: true, get: function () { return QueryEditorModeToggle_1.QueryEditorModeToggle; } });
20
+ var QueryHeaderSwitch_1 = require("./components/QueryHeaderSwitch");
21
+ Object.defineProperty(exports, "QueryHeaderSwitch", { enumerable: true, get: function () { return QueryHeaderSwitch_1.QueryHeaderSwitch; } });
22
+ var QueryOptionGroup_1 = require("./components/QueryOptionGroup");
23
+ Object.defineProperty(exports, "QueryOptionGroup", { enumerable: true, get: function () { return QueryOptionGroup_1.QueryOptionGroup; } });
24
+ var RawQuery_1 = require("./components/RawQuery");
25
+ Object.defineProperty(exports, "RawQuery", { enumerable: true, get: function () { return RawQuery_1.RawQuery; } });
26
+ var types_1 = require("./types");
27
+ Object.defineProperty(exports, "QueryEditorMode", { enumerable: true, get: function () { return types_1.QueryEditorMode; } });
28
+ Object.defineProperty(exports, "BINARY_OPERATIONS_KEY", { enumerable: true, get: function () { return types_1.BINARY_OPERATIONS_KEY; } });
29
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/VisualQueryBuilder/index.ts"],"names":[],"mappings":";;;AAAA,yDAAwD;AAA/C,sHAAA,iBAAiB,OAAA;AAC1B,0DAAyD;AAAhD,4GAAA,YAAY,OAAA;AACrB,4EAA2E;AAAlE,8HAAA,qBAAqB,OAAA;AAC9B,4DAA2D;AAAlD,8GAAA,aAAa,OAAA;AACtB,8EAA6E;AAApE,gIAAA,sBAAsB,OAAA;AAC/B,wEAAuE;AAA9D,0HAAA,mBAAmB,OAAA;AAC5B,oEAAmE;AAA1D,sHAAA,iBAAiB,OAAA;AAC1B,4EAA2E;AAAlE,8HAAA,qBAAqB,OAAA;AAC9B,oEAAmE;AAA1D,sHAAA,iBAAiB,OAAA;AAC1B,kEAAiE;AAAxD,oHAAA,gBAAgB,OAAA;AACzB,kDAAiD;AAAxC,oGAAA,QAAQ,OAAA;AAEjB,iCAAiE;AAAxD,wGAAA,eAAe,OAAA;AAAE,8GAAA,qBAAqB,OAAA"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BINARY_OPERATIONS_KEY = exports.QueryEditorMode = void 0;
4
+ var QueryEditorMode;
5
+ (function (QueryEditorMode) {
6
+ QueryEditorMode["Code"] = "code";
7
+ QueryEditorMode["Builder"] = "builder";
8
+ })(QueryEditorMode = exports.QueryEditorMode || (exports.QueryEditorMode = {}));
9
+ exports.BINARY_OPERATIONS_KEY = 'Binary operations';
10
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/VisualQueryBuilder/types.ts"],"names":[],"mappings":";;;AAkFA,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,gCAAa,CAAA;IACb,sCAAmB,CAAA;AACrB,CAAC,EAHW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAG1B;AAyBY,QAAA,qBAAqB,GAAG,mBAAmB,CAAA"}
@@ -25,4 +25,6 @@ tslib_1.__exportStar(require("./QueryEditor"), exports);
25
25
  tslib_1.__exportStar(require("./ConfigEditor"), exports);
26
26
  var CustomHeadersSettings_1 = require("./CustomHeadersSettings/CustomHeadersSettings");
27
27
  Object.defineProperty(exports, "CustomHeadersSettings", { enumerable: true, get: function () { return CustomHeadersSettings_1.CustomHeadersSettings; } });
28
+ tslib_1.__exportStar(require("./VisualQueryBuilder"), exports);
29
+ tslib_1.__exportStar(require("./SQLEditor"), exports);
28
30
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":";;;;AAAA,iFAAgF;AAAvE,0HAAA,mBAAmB,OAAA;AAC5B,kEAAiE;AAAxD,gHAAA,cAAc,OAAA;AACvB,+DAGuC;AAFrC,8GAAA,aAAa,OAAA;AAGf,6CAG2B;AAFzB,kGAAA,OAAO,OAAA;AAGT,sDAAsE;AAA7D,wGAAA,UAAU,OAAA;AACnB,iFAImD;AAHjD,0HAAA,mBAAmB,OAAA;AAEnB,iHAAA,UAAU,OAAA;AAEZ,8EAAoD;AACpD,sDAA4B;AAC5B,8DAAoC;AACpC,kCAA6D;AAApD,kGAAA,YAAY,OAAA;AAAE,sGAAA,gBAAgB,OAAA;AACvC,wDAA8B;AAC9B,yDAA+B;AAC/B,uFAAsF;AAA7E,8HAAA,qBAAqB,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":";;;;AAAA,iFAAgF;AAAvE,0HAAA,mBAAmB,OAAA;AAC5B,kEAAiE;AAAxD,gHAAA,cAAc,OAAA;AACvB,+DAAkF;AAAzE,8GAAA,aAAa,OAAA;AACtB,6CAA0D;AAAjD,kGAAA,OAAO,OAAA;AAChB,sDAAsE;AAA7D,wGAAA,UAAU,OAAA;AACnB,iFAAsH;AAA7G,0HAAA,mBAAmB,OAAA;AAA4B,iHAAA,UAAU,OAAA;AAClE,8EAAoD;AACpD,sDAA4B;AAC5B,8DAAoC;AACpC,kCAA6D;AAApD,kGAAA,YAAY,OAAA;AAAE,sGAAA,gBAAgB,OAAA;AACvC,wDAA8B;AAC9B,yDAA+B;AAC/B,uFAAsF;AAA7E,8HAAA,qBAAqB,OAAA;AAC9B,+DAAqC;AACrC,sDAA4B"}
@@ -1 +1 @@
1
- {"version":3,"file":"SqlDatasource.js","sourceRoot":"","sources":["../../src/datasource/SqlDatasource.ts"],"names":[],"mappings":";;;;AAAA,+BAAyC;AACzC,8CAAiD;AAEjD,wCAUuB;AACvB,8CAQ0B;AAE1B,2CAA0C;AAC1C,0EAA0E;AAC1E,2DAAuH;AAyBvH,MAAsB,aAAc,SAAQ,+BAA2C;IAQrF,YACE,gBAAwD,EACrC,cAA2B,IAAA,wBAAc,GAAE;QAE9D,KAAK,CAAC,gBAAgB,CAAC,CAAC;QAFL,gBAAW,GAAX,WAAW,CAAgC;QAJhE,gBAAW,GAAG,EAAE,CAAC;QAoBjB,wBAAmB,GAAG,CAAC,KAAiC,EAAE,QAAkC,EAAE,EAAE;YAC9F,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;gBAC7B,IAAI,QAAQ,CAAC,KAAK,IAAI,QAAQ,CAAC,UAAU,EAAE;oBACzC,MAAM,MAAM,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;oBACxD,OAAO,MAAM,CAAC;iBACf;qBAAM;oBACL,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AAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,8BAAsB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;AAD/E,QAAA,oBAAoB,wBAC2D;AAErF,MAAM,wBAAwB,GAAG,CAAC,IAIxC,EAAc,EAAE;IACf,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,GAAG,IAAI,CAAC;IACrC,IAAI,CAAC,IAAA,4BAAoB,EAAC,KAAK,CAAC,EAAE;QAChC,OAAO,EAAE,CAAC;KACX;IAED,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;IAEvB,OAAO,GAAG,OAAO,IAAI,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC;IAC1C,MAAM,KAAK,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,YAAY,GAAG,YAAY,EAAE,CAAC,CAAC,CAAC,GAAG,YAAY,EAAE,CAAC;IAElG,OAAO;QACL,cAAc,EAAE;YACd,KAAK;YACL,IAAI,EAAE,EAAE;SACT;KACF,CAAC;AACJ,CAAC,CAAC;AArBW,QAAA,wBAAwB,4BAqBnC"}
@@ -12,6 +12,8 @@ const useDebounce = (value, delay = exports.DEFAULT_DELAY) => {
12
12
  return () => {
13
13
  clearTimeout(handler);
14
14
  };
15
+ // TODO: We should fix this
16
+ // eslint-disable-next-line react-hooks/exhaustive-deps
15
17
  }, [value]);
16
18
  return debouncedValue;
17
19
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useDebounce.js","sourceRoot":"","sources":["../../src/hooks/useDebounce.ts"],"names":[],"mappings":";;;AAAA,iCAA4C;AAE/B,QAAA,aAAa,GAAG,GAAG,CAAC;AAE1B,MAAM,WAAW,GAAG,CAAI,KAAQ,EAAE,QAAgB,qBAAa,EAAE,EAAE;IACxE,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAE5D,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,MAAM,OAAO,GAAG,UAAU,CAAC,GAAG,EAAE;YAC9B,iBAAiB,CAAC,KAAK,CAAC,CAAC;QAC3B,CAAC,EAAE,KAAK,CAAC,CAAC;QAEV,OAAO,GAAG,EAAE;YACV,YAAY,CAAC,OAAO,CAAC,CAAC;QACxB,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAEZ,OAAO,cAAc,CAAC;AACxB,CAAC,CAAC;AAdW,QAAA,WAAW,eActB"}
1
+ {"version":3,"file":"useDebounce.js","sourceRoot":"","sources":["../../src/hooks/useDebounce.ts"],"names":[],"mappings":";;;AAAA,iCAA4C;AAE/B,QAAA,aAAa,GAAG,GAAG,CAAC;AAE1B,MAAM,WAAW,GAAG,CAAI,KAAQ,EAAE,QAAgB,qBAAa,EAAE,EAAE;IACxE,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAE5D,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,MAAM,OAAO,GAAG,UAAU,CAAC,GAAG,EAAE;YAC9B,iBAAiB,CAAC,KAAK,CAAC,CAAC;QAC3B,CAAC,EAAE,KAAK,CAAC,CAAC;QAEV,OAAO,GAAG,EAAE;YACV,YAAY,CAAC,OAAO,CAAC,CAAC;QACxB,CAAC,CAAC;QACF,2BAA2B;QAC3B,uDAAuD;IACzD,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAEZ,OAAO,cAAc,CAAC;AACxB,CAAC,CAAC;AAhBW,QAAA,WAAW,eAgBtB"}
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.generateOptions = exports.selectOption = exports.SqlDatasource = void 0;
3
+ exports.SqlDatasource = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  /**
6
6
  * A library containing the different design components of the Grafana plugins ecosystem.
@@ -8,12 +8,6 @@ const tslib_1 = require("tslib");
8
8
  * @packageDocumentation
9
9
  */
10
10
  tslib_1.__exportStar(require("./components"), exports);
11
- tslib_1.__exportStar(require("./unreleasedComponents"), exports);
12
- tslib_1.__exportStar(require("./test/mocks"), exports);
13
- tslib_1.__exportStar(require("./utils"), exports);
14
11
  var SqlDatasource_1 = require("./datasource/SqlDatasource");
15
12
  Object.defineProperty(exports, "SqlDatasource", { enumerable: true, get: function () { return SqlDatasource_1.SqlDatasource; } });
16
- var _8x_1 = require("./8x");
17
- Object.defineProperty(exports, "selectOption", { enumerable: true, get: function () { return _8x_1.selectOption; } });
18
- Object.defineProperty(exports, "generateOptions", { enumerable: true, get: function () { return _8x_1.generateOptions; } });
19
13
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA;;;;GAIG;AACH,uDAA6B;AAC7B,iEAAuC;AACvC,uDAA6B;AAC7B,kDAAwB;AACxB,4DAA2D;AAAlD,8GAAA,aAAa,OAAA;AACtB,4BAAqD;AAA5C,mGAAA,YAAY,OAAA;AAAE,sGAAA,eAAe,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA;;;;GAIG;AACH,uDAA6B;AAC7B,4DAA2D;AAAlD,8GAAA,aAAa,OAAA"}
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { CascaderOption } from 'rc-cascader';
3
3
  export interface AsyncButtonCascaderProps {
4
4
  options: CascaderOption[];
@@ -15,4 +15,7 @@ export interface AsyncButtonCascaderProps {
15
15
  onPopupVisibleChange?: (visible: boolean) => void;
16
16
  className?: string;
17
17
  }
18
- export declare const AsyncButtonCascader: React.FC<AsyncButtonCascaderProps>;
18
+ export declare const AsyncButtonCascader: {
19
+ (props: AsyncButtonCascaderProps): JSX.Element;
20
+ displayName: string;
21
+ };
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { Config, OnChangeHandler } from '../types';
3
+ export type Props<C extends Config = Config> = {
4
+ config: C;
5
+ onChange: OnChangeHandler<C>;
6
+ className?: string;
7
+ };
8
+ export declare const AdvancedHttpSettings: <C extends Config = Config>(props: Props<C>) => JSX.Element;
@@ -0,0 +1 @@
1
+ export { AdvancedHttpSettings } from './AdvancedHttpSettings';
@@ -0,0 +1,18 @@
1
+ /// <reference types="react" />
2
+ import { AuthMethod, AuthMethodSelectOption, CustomMethod, CustomMethodId } from './types';
3
+ import { Props as TLSSettingsProps } from './tls/TLSSettings';
4
+ import { Props as BasicAuthProps } from './auth-method/BasicAuth';
5
+ import { Props as CustomHeadersProps } from './custom-headers/CustomHeaders';
6
+ export type Props = {
7
+ selectedMethod: AuthMethod | CustomMethodId;
8
+ mostCommonMethod?: AuthMethod | CustomMethodId;
9
+ visibleMethods?: Array<AuthMethod | CustomMethodId>;
10
+ defaultOptionsOverrides?: Partial<Record<AuthMethod, AuthMethodSelectOption>>;
11
+ customMethods?: CustomMethod[];
12
+ onAuthMethodSelect: (authType: AuthMethod | CustomMethodId) => void;
13
+ basicAuth?: Omit<BasicAuthProps, 'readOnly'>;
14
+ TLS?: Omit<TLSSettingsProps, 'readOnly'>;
15
+ customHeaders?: Omit<CustomHeadersProps, 'readOnly'>;
16
+ readOnly?: boolean;
17
+ };
18
+ export declare const Auth: ({ selectedMethod, mostCommonMethod, visibleMethods, defaultOptionsOverrides, customMethods, onAuthMethodSelect, basicAuth, TLS, customHeaders, readOnly, }: Props) => JSX.Element;
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { Props as BasicAuthProps } from './BasicAuth';
3
+ import { AuthMethod, CustomMethod, CustomMethodId, AuthMethodSelectOption } from '../types';
4
+ export type Props = {
5
+ selectedMethod: AuthMethod | CustomMethodId;
6
+ mostCommonMethod?: AuthMethod | CustomMethodId;
7
+ visibleMethods?: Array<AuthMethod | CustomMethodId>;
8
+ defaultOptionsOverrides?: Partial<Record<AuthMethod, AuthMethodSelectOption>>;
9
+ customMethods?: CustomMethod[];
10
+ onAuthMethodSelect: (authType: AuthMethod | CustomMethodId) => void;
11
+ basicAuth?: Omit<BasicAuthProps, 'readOnly'>;
12
+ readOnly: boolean;
13
+ };
14
+ export declare const AuthMethodSettings: ({ selectedMethod, mostCommonMethod, visibleMethods: visibleMethodsFromProps, defaultOptionsOverrides, customMethods, onAuthMethodSelect, basicAuth, readOnly, }: Props) => JSX.Element;
@@ -0,0 +1,17 @@
1
+ /// <reference types="react" />
2
+ import { PopoverContent } from '@grafana/ui';
3
+ export type Props = {
4
+ user?: string;
5
+ passwordConfigured: boolean;
6
+ userLabel?: string;
7
+ userTooltip?: PopoverContent;
8
+ userPlaceholder?: string;
9
+ passwordLabel?: string;
10
+ passwordTooltip?: PopoverContent;
11
+ passwordPlaceholder?: string;
12
+ onUserChange: (user: string) => void;
13
+ onPasswordChange: (password: string) => void;
14
+ onPasswordReset: () => void;
15
+ readOnly: boolean;
16
+ };
17
+ export declare const BasicAuth: ({ user, passwordConfigured, userLabel, userTooltip, userPlaceholder, passwordLabel, passwordTooltip, passwordPlaceholder, onUserChange, onPasswordChange, onPasswordReset, readOnly, }: Props) => JSX.Element;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import type { LocalHeader } from '../types';
3
+ export type Props = {
4
+ header: LocalHeader;
5
+ onChange: (header: LocalHeader) => void;
6
+ onBlur: () => void;
7
+ onDelete: () => void;
8
+ readOnly: boolean;
9
+ };
10
+ export declare const CustomHeader: ({ header, onChange, onBlur, onDelete, readOnly }: Props) => JSX.Element;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import type { Header, HeaderWithValue } from '../types';
3
+ export type Props = {
4
+ headers: Header[];
5
+ onChange: (headers: HeaderWithValue[]) => void;
6
+ readOnly: boolean;
7
+ };
8
+ export declare const CustomHeaders: ({ headers: headersFromProps, onChange, readOnly }: Props) => JSX.Element;
@@ -0,0 +1,4 @@
1
+ export { Auth } from './Auth';
2
+ export type { Props as AuthProps } from './Auth';
3
+ export { AuthMethod } from './types';
4
+ export { convertLegacyAuthProps } from './utils';
@@ -0,0 +1,4 @@
1
+ export declare const useCommonStyles: () => {
2
+ inlineFieldNoMarginRight: string;
3
+ inlineFieldWithSecret: string;
4
+ };
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ export type Props = {
3
+ enabled: boolean;
4
+ onToggle: (enabled: boolean) => void;
5
+ certificateConfigured: boolean;
6
+ onCertificateChange: (certificate: string) => void;
7
+ onCertificateReset: () => void;
8
+ tooltips?: {
9
+ certificateLabel?: string;
10
+ };
11
+ readOnly: boolean;
12
+ };
13
+ export declare const SelfSignedCertificate: ({ enabled, certificateConfigured, onToggle, onCertificateChange, onCertificateReset, tooltips, readOnly, }: Props) => JSX.Element;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ export type Props = {
3
+ enabled: boolean;
4
+ onToggle: (enabled: boolean) => void;
5
+ readOnly: boolean;
6
+ };
7
+ export declare const SkipTLSVerification: ({ enabled, onToggle, readOnly }: Props) => JSX.Element;
@@ -0,0 +1,20 @@
1
+ /// <reference types="react" />
2
+ export type Props = {
3
+ enabled: boolean;
4
+ onToggle: (enabled: boolean) => void;
5
+ serverName: string;
6
+ clientCertificateConfigured: boolean;
7
+ clientKeyConfigured: boolean;
8
+ onServerNameChange: (serverName: string) => void;
9
+ onClientCertificateChange: (clientCertificate: string) => void;
10
+ onClientKeyChange: (clientKey: string) => void;
11
+ onClientCertificateReset: () => void;
12
+ onClientKeyReset: () => void;
13
+ tooltips?: {
14
+ serverNameLabel?: string;
15
+ certificateLabel?: string;
16
+ keyLabel?: string;
17
+ };
18
+ readOnly: boolean;
19
+ };
20
+ export declare const TLSClientAuth: ({ enabled, serverName, clientCertificateConfigured, clientKeyConfigured, onToggle, onServerNameChange, onClientCertificateChange, onClientKeyChange, onClientCertificateReset, onClientKeyReset, tooltips, readOnly, }: Props) => JSX.Element;
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { Props as SelfSignedCertificateProps } from './SelfSignedCertificate';
3
+ import { Props as TLSClientAuthProps } from './TLSClientAuth';
4
+ import { Props as SkipTLSVerificationProps } from './SkipTLSVerification';
5
+ export type Props = {
6
+ selfSignedCertificate: Omit<SelfSignedCertificateProps, 'readOnly'>;
7
+ TLSClientAuth: Omit<TLSClientAuthProps, 'readOnly'>;
8
+ skipTLSVerification: Omit<SkipTLSVerificationProps, 'readOnly'>;
9
+ readOnly: boolean;
10
+ };
11
+ export declare const TLSSettings: ({ selfSignedCertificate, TLSClientAuth, skipTLSVerification, readOnly }: Props) => JSX.Element;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ export type Props = {
3
+ enabled: boolean;
4
+ label: string;
5
+ tooltipText: string;
6
+ onToggle: (enabled: boolean) => void;
7
+ readOnly: boolean;
8
+ };
9
+ export declare const TLSSettingsSection: ({ children, enabled, label, tooltipText, onToggle, readOnly, }: React.PropsWithChildren<Props>) => JSX.Element;
@@ -0,0 +1,28 @@
1
+ import { ReactElement } from 'react';
2
+ export declare enum AuthMethod {
3
+ NoAuth = "NoAuth",
4
+ BasicAuth = "BasicAuth",
5
+ OAuthForward = "OAuthForward",
6
+ CrossSiteCredentials = "CrossSiteCredentials"
7
+ }
8
+ export interface AuthMethodSelectOption {
9
+ label?: string;
10
+ description?: string;
11
+ }
12
+ export type CustomMethodId = `custom-${string}`;
13
+ export type CustomMethod = {
14
+ id: CustomMethodId;
15
+ label: string;
16
+ description: string;
17
+ component: ReactElement;
18
+ };
19
+ export type Header = {
20
+ name: string;
21
+ configured: boolean;
22
+ };
23
+ export type HeaderWithValue = Header & {
24
+ value: string;
25
+ };
26
+ export type LocalHeader = HeaderWithValue & {
27
+ id: string;
28
+ };
@@ -0,0 +1,12 @@
1
+ import { Props as AuthProps } from './Auth';
2
+ import { AuthMethod, CustomMethodId } from './types';
3
+ import { Config, OnChangeHandler } from '../types';
4
+ export declare function convertLegacyAuthProps<C extends Config = Config>({ config, onChange, }: {
5
+ config: C;
6
+ onChange: OnChangeHandler<C>;
7
+ }): AuthProps;
8
+ export declare function getSelectedMethod<C extends Config = Config>(config: C): AuthMethod;
9
+ export declare function getOnAuthMethodSelectHandler<C extends Config = Config>(config: C, onChange: OnChangeHandler<C>): (method: AuthMethod | CustomMethodId) => void;
10
+ export declare function getBasicAuthProps<C extends Config = Config>(config: C, onChange: OnChangeHandler<C>): AuthProps['basicAuth'];
11
+ export declare function getTLSProps<C extends Config = Config>(config: C, onChange: OnChangeHandler<C>): AuthProps['TLS'];
12
+ export declare function getCustomHeaders<C extends Config = Config>(config: C, onChange: OnChangeHandler<C>): AuthProps['customHeaders'];
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ type Props = {
3
+ description: string;
4
+ suffix: string;
5
+ feature: string;
6
+ };
7
+ export declare function ConfigDescriptionLink(props: Props): JSX.Element;
8
+ export {};
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { Props as GenericConfigSectionProps } from './GenericConfigSection';
3
+ type Props = Omit<GenericConfigSectionProps, 'kind'>;
4
+ export declare const ConfigSection: ({ children, ...props }: React.PropsWithChildren<Props>) => JSX.Element;
5
+ export {};
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { Props as GenericConfigSectionProps } from './GenericConfigSection';
3
+ type Props = Omit<GenericConfigSectionProps, 'kind'>;
4
+ export declare const ConfigSubSection: ({ children, ...props }: React.PropsWithChildren<Props>) => JSX.Element;
5
+ export {};
@@ -0,0 +1,10 @@
1
+ import React, { ReactNode } from 'react';
2
+ export type Props = {
3
+ title: string;
4
+ description?: ReactNode;
5
+ isCollapsible?: boolean;
6
+ isInitiallyOpen?: boolean;
7
+ kind?: 'section' | 'sub-section';
8
+ className?: string;
9
+ };
10
+ export declare const GenericConfigSection: ({ children, title, description, isCollapsible, isInitiallyOpen, kind, className, }: React.PropsWithChildren<Props>) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ export { ConfigSection } from './ConfigSection';
2
+ export { ConfigSubSection } from './ConfigSubSection';
3
+ export { ConfigDescriptionLink } from './ConfigDescriptionLink';
@@ -0,0 +1,13 @@
1
+ import { ReactNode } from 'react';
2
+ import { PopoverContent } from '@grafana/ui';
3
+ import { Config, OnChangeHandler } from '../types';
4
+ export type Props<C extends Config = Config> = {
5
+ config: C;
6
+ onChange: OnChangeHandler<C>;
7
+ description?: ReactNode;
8
+ urlPlaceholder?: string;
9
+ urlTooltip?: PopoverContent;
10
+ urlLabel?: string;
11
+ className?: string;
12
+ };
13
+ export declare const ConnectionSettings: <C extends Config = Config>(props: Props<C>) => JSX.Element;
@@ -0,0 +1 @@
1
+ export { ConnectionSettings } from './ConnectionSettings';
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ type Props = {
3
+ dataSourceName: string;
4
+ docsLink: string;
5
+ hasRequiredFields?: boolean;
6
+ className?: string;
7
+ };
8
+ export declare const DataSourceDescription: ({ dataSourceName, docsLink, hasRequiredFields, className }: Props) => JSX.Element;
9
+ export {};
@@ -1,10 +1,10 @@
1
- import React from "react";
2
- import { InlineLabel as OriginalInlineLabel } from "@grafana/ui";
3
- import { DataSourceSettings } from "@grafana/data";
1
+ import React from 'react';
2
+ import { InlineLabel as OriginalInlineLabel } from '@grafana/ui';
3
+ import { DataSourceSettings } from '@grafana/data';
4
4
  type Props = Omit<React.ComponentProps<typeof OriginalInlineLabel>, 'children'> & {
5
5
  dataSourceConfig: DataSourceSettings<any, any>;
6
6
  onChange: (config: DataSourceSettings) => void;
7
7
  labelWidth: number;
8
8
  };
9
- export declare const SecureSocksProxyToggle: React.FC<Props>;
9
+ export declare const SecureSocksProxyToggle: ({ labelWidth, ...props }: Props) => any;
10
10
  export {};
@@ -1,2 +1,7 @@
1
- export { InlineLabel } from "./InlineLabel";
2
- export { SecureSocksProxyToggle } from "./SecureSocksProxyToggle";
1
+ export { SecureSocksProxyToggle } from './SecureSocksProxyToggle';
2
+ export { DataSourceDescription } from './DataSourceDescription';
3
+ export { ConfigSection, ConfigSubSection, ConfigDescriptionLink } from './ConfigSection';
4
+ export { Auth, AuthMethod, convertLegacyAuthProps } from './Auth';
5
+ export type { AuthProps } from './Auth';
6
+ export { ConnectionSettings } from './Connection';
7
+ export { AdvancedHttpSettings } from './AdvancedSettings';
@@ -0,0 +1,3 @@
1
+ import { DataSourceSettings, DataSourceJsonData } from '@grafana/data';
2
+ export type Config<JSONData extends DataSourceJsonData = any, SecureJSONData = any> = DataSourceSettings<JSONData, SecureJSONData>;
3
+ export type OnChangeHandler<C extends Config = Config> = (config: C) => void;
@@ -1,5 +1,5 @@
1
- import { PureComponent } from "react";
2
- import { DataSourceSettings } from "@grafana/data";
1
+ import { PureComponent } from 'react';
2
+ import { DataSourceSettings } from '@grafana/data';
3
3
  export interface CustomHeader {
4
4
  id: string;
5
5
  name: string;
@@ -3,7 +3,7 @@ import { VariableSuggestion, DataSourceInstanceSettings, DataSourceJsonData } fr
3
3
  import { DataLinkConfig } from './types';
4
4
  type Props = {
5
5
  value: DataLinkConfig;
6
- datasources?: DataSourceInstanceSettings<DataSourceJsonData>[];
6
+ datasources?: Array<DataSourceInstanceSettings<DataSourceJsonData>>;
7
7
  onChange: (value: DataLinkConfig) => void;
8
8
  onDelete: () => void;
9
9
  suggestions: VariableSuggestion[];
@@ -1,9 +1,12 @@
1
- import React, { HTMLAttributes } from 'react';
1
+ import { HTMLAttributes } from 'react';
2
2
  import { PluginErrorCode, PluginSignatureStatus } from '@grafana/data';
3
3
  interface Props extends HTMLAttributes<HTMLDivElement> {
4
4
  status?: PluginSignatureStatus;
5
5
  }
6
- export declare const PluginSignatureBadge: React.FC<Props>;
6
+ export declare const PluginSignatureBadge: {
7
+ ({ status, ...otherProps }: Props): JSX.Element;
8
+ displayName: string;
9
+ };
7
10
  export declare function isUnsignedPluginSignature(signature?: PluginSignatureStatus): boolean | undefined;
8
11
  export declare function mapPluginErrorCodeToSignatureStatus(code: PluginErrorCode): PluginSignatureStatus.invalid | PluginSignatureStatus.modified | PluginSignatureStatus.missing;
9
12
  export {};
@@ -1,6 +1,6 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { ButtonProps } from '@grafana/ui';
3
3
  interface AccessoryButtonProps extends ButtonProps {
4
4
  }
5
- export declare const AccessoryButton: React.FC<AccessoryButtonProps>;
5
+ export declare const AccessoryButton: ({ className, ...props }: AccessoryButtonProps) => JSX.Element;
6
6
  export {};
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { SelectableValue } from '@grafana/data';
3
3
  import { DB, ResourceSelectorProps } from './types';
4
4
  interface DatasetSelectorProps extends ResourceSelectorProps {
@@ -9,5 +9,5 @@ interface DatasetSelectorProps extends ResourceSelectorProps {
9
9
  disabled?: boolean;
10
10
  onChange: (v: SelectableValue) => void;
11
11
  }
12
- export declare const DatasetSelector: React.FC<DatasetSelectorProps>;
12
+ export declare const DatasetSelector: ({ db, dataset, value, onChange, disabled, className, applyDefault, }: DatasetSelectorProps) => JSX.Element;
13
13
  export {};
@@ -6,6 +6,7 @@ interface EditorFieldProps extends ComponentProps<typeof Field> {
6
6
  width?: number | string;
7
7
  optional?: boolean;
8
8
  tooltip?: PopoverContent;
9
+ tooltipInteractive?: boolean;
9
10
  }
10
- export declare const EditorField: React.FC<EditorFieldProps>;
11
+ export declare const EditorField: (props: EditorFieldProps) => JSX.Element;
11
12
  export {};
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  interface EditorFieldGroupProps {
3
+ children?: React.ReactNode;
3
4
  }
4
- export declare const EditorFieldGroup: React.FC<EditorFieldGroupProps>;
5
+ export declare const EditorFieldGroup: ({ children }: EditorFieldGroupProps) => JSX.Element;
5
6
  export {};
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  interface EditorHeaderProps {
3
+ children?: React.ReactNode;
3
4
  }
4
- export declare const EditorHeader: React.FC<EditorHeaderProps>;
5
+ export declare const EditorHeader: ({ children }: EditorHeaderProps) => JSX.Element;
5
6
  export {};
@@ -4,5 +4,5 @@ interface EditorListProps<T> {
4
4
  renderItem: (item: Partial<T>, onChangeItem: (item: Partial<T>) => void, onDeleteItem: () => void) => React.ReactElement;
5
5
  onChange: (items: Array<Partial<T>>) => void;
6
6
  }
7
- export declare function EditorList<T>({ items, renderItem, onChange }: EditorListProps<T>): JSX.Element;
7
+ export declare const EditorList: React.ForwardRefExoticComponent<EditorListProps<unknown> & React.RefAttributes<HTMLButtonElement>>;
8
8
  export {};
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  interface EditorRowProps {
3
+ children?: React.ReactNode;
3
4
  }
4
- export declare const EditorRow: React.FC<EditorRowProps>;
5
+ export declare const EditorRow: ({ children }: EditorRowProps) => JSX.Element;
5
6
  export {};
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  interface EditorRowsProps {
3
+ children?: React.ReactNode;
3
4
  }
4
- export declare const EditorRows: React.FC<EditorRowsProps>;
5
+ export declare const EditorRows: ({ children }: EditorRowsProps) => JSX.Element;
5
6
  export {};
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { ThemeSpacingTokens } from '@grafana/data';
3
+ export type Direction = 'row' | 'row-reverse' | 'column' | 'column-reverse';
4
+ export type AlignItems = 'stretch' | 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'start' | 'end' | 'self-start' | 'self-end';
5
+ interface StackProps {
6
+ children?: React.ReactNode;
7
+ direction?: Direction;
8
+ alignItems?: AlignItems;
9
+ wrap?: boolean;
10
+ gap?: ThemeSpacingTokens;
11
+ }
12
+ export declare const EditorStack: ({ children, wrap: wrapItems, ...props }: StackProps) => JSX.Element;
13
+ export {};
@@ -1,3 +1,3 @@
1
1
  import { Switch } from '@grafana/ui';
2
- import React, { ComponentProps } from 'react';
3
- export declare const EditorSwitch: React.FC<ComponentProps<typeof Switch>>;
2
+ import { ComponentProps } from 'react';
3
+ export declare const EditorSwitch: (props: ComponentProps<typeof Switch>) => JSX.Element;