@grafana/plugin-ui 0.16.0-dsconfig.a155abe → 0.16.0-dsconfig.d7f2506
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
|
@@ -23523,6 +23523,7 @@ const formatYamlDiff = (existing, body) => {
|
|
|
23523
23523
|
return "```diff\n" + diffLines.join("\n") + "\n```";
|
|
23524
23524
|
};
|
|
23525
23525
|
|
|
23526
|
+
const DSCONFIG_STATIC_URL = "/public/plugins/{pluginType}/schema/dsconfig.json";
|
|
23526
23527
|
const PACK_STATIC_URL = "https://raw.githubusercontent.com/grafana/dsconfig/refs/heads/main/dsconfig/packs/{packID}.json";
|
|
23527
23528
|
|
|
23528
23529
|
const PACK_IDS = [
|
|
@@ -23642,9 +23643,9 @@ async function getConfigSchema(pluginType) {
|
|
|
23642
23643
|
}
|
|
23643
23644
|
let schema;
|
|
23644
23645
|
try {
|
|
23645
|
-
|
|
23646
|
-
|
|
23647
|
-
|
|
23646
|
+
schema = await runtime.getBackendSrv().get(
|
|
23647
|
+
DSCONFIG_STATIC_URL.replaceAll("{pluginType}", pluginType)
|
|
23648
|
+
);
|
|
23648
23649
|
} catch (e) {
|
|
23649
23650
|
console.warn(`no schema available for ${pluginType}`);
|
|
23650
23651
|
schema = {};
|