@grafana/plugin-ui 0.10.2 → 0.10.3
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/cjs/index.cjs
CHANGED
|
@@ -39739,6 +39739,16 @@ const selectOption = async (container, optionLabel, typeOptionLabel) => {
|
|
|
39739
39739
|
const option = await waitForWrapper(() => getQueriesForElement(container).getByText(optionLabel));
|
|
39740
39740
|
userEvent.click(option);
|
|
39741
39741
|
};
|
|
39742
|
+
const generateOptions = () => {
|
|
39743
|
+
const numberOfOptions = 5;
|
|
39744
|
+
return Array.from(new Array(numberOfOptions), () => {
|
|
39745
|
+
const name = chanceExports.Chance().name();
|
|
39746
|
+
return {
|
|
39747
|
+
label: name,
|
|
39748
|
+
value: lodash.kebabCase(name)
|
|
39749
|
+
};
|
|
39750
|
+
});
|
|
39751
|
+
};
|
|
39742
39752
|
|
|
39743
39753
|
const mockDataSourcePluginMeta = () => ({
|
|
39744
39754
|
builtIn: generateBoolean(),
|
|
@@ -40016,6 +40026,7 @@ exports.convertLegacyAuthProps = convertLegacyAuthProps;
|
|
|
40016
40026
|
exports.formatDate = formatDate;
|
|
40017
40027
|
exports.generateArrayOf = generateArrayOf;
|
|
40018
40028
|
exports.generateBoolean = generateBoolean;
|
|
40029
|
+
exports.generateOptions = generateOptions;
|
|
40019
40030
|
exports.getStandardSQLCompletionProvider = getStandardSQLCompletionProvider;
|
|
40020
40031
|
exports.grafanaStandardSQLLanguage = language;
|
|
40021
40032
|
exports.grafanaStandardSQLLanguageConf = conf;
|