@grafana/plugin-types 0.0.44 → 0.0.45

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.
@@ -87,6 +87,10 @@ export interface PluginSchema {
87
87
  * URL value to use for this specific link.
88
88
  */
89
89
  url?: string;
90
+ /**
91
+ * A string that indicates where to display the linked resource
92
+ */
93
+ target?: "_blank" | "_self" | "_parent" | "_top";
90
94
  }[];
91
95
  /**
92
96
  * SVG images that are used as plugin icons.
@@ -388,9 +392,9 @@ export interface PluginSchema {
388
392
  */
389
393
  skipDataQuery?: boolean;
390
394
  /**
391
- * Marks a plugin as a pre-release.
395
+ * Describes plugins life cycle status
392
396
  */
393
- state?: "alpha" | "beta";
397
+ state?: "alpha" | "beta" | "stable" | "deprecated";
394
398
  /**
395
399
  * For data source plugins, if the plugin supports streaming. Used in Explore to start live streaming.
396
400
  */
@@ -452,7 +456,7 @@ export interface PluginSchema {
452
456
  */
453
457
  extensions?: {
454
458
  /**
455
- * This list must contain all component extensions that your plugin registers to other extension points using [`.addComponent()`](https://grafana.com/developers/plugin-tools/reference/ui-extensions#addcomponent). **Components that are not listed here won't work.**
459
+ * This list must contain all component extensions that your plugin registers to other extension points using [`.addComponent()`](https://grafana.com/developers/plugin-tools/reference/ui-extensions-reference/ui-extensions#addcomponent). **Components that are not listed here won't work.**
456
460
  */
457
461
  addedComponents?: {
458
462
  /**
@@ -470,7 +474,7 @@ export interface PluginSchema {
470
474
  [k: string]: unknown;
471
475
  }[];
472
476
  /**
473
- * This list must contain all link extensions that your plugin registers to other extension points using [`.addLink()`](https://grafana.com/developers/plugin-tools/reference/ui-extensions#addlink). **Links that are not listed here won't work.**
477
+ * This list must contain all link extensions that your plugin registers to other extension points using [`.addLink()`](https://grafana.com/developers/plugin-tools/reference/ui-extensions-reference/ui-extensions#addlink). **Links that are not listed here won't work.**
474
478
  */
475
479
  addedLinks?: {
476
480
  /**
@@ -488,7 +492,25 @@ export interface PluginSchema {
488
492
  [k: string]: unknown;
489
493
  }[];
490
494
  /**
491
- * This list must contain all components that your plugin exposes using [`.exposeComponent()`](https://grafana.com/developers/plugin-tools/reference/ui-extensions#exposecomponent). **Components that are not listed here won't work.**
495
+ * This list must contain all function extensions that your plugin registers to other extension points using [`.addedFunctions()`](https://grafana.com/developers/plugin-tools/reference/ui-extensions-reference/ui-extensions#addfunction). **Functions that are not listed here won't work.**
496
+ */
497
+ addedFunctions?: {
498
+ /**
499
+ * The extension point ids your plugin registers the extension to, e.g. `["grafana/dashboard/panel/menu"]`
500
+ */
501
+ targets: string[];
502
+ /**
503
+ * The title of your function extension.
504
+ */
505
+ title: string;
506
+ /**
507
+ * Additional information about your function extension.
508
+ */
509
+ description?: string;
510
+ [k: string]: unknown;
511
+ }[];
512
+ /**
513
+ * This list must contain all components that your plugin exposes using [`.exposeComponent()`](https://grafana.com/developers/plugin-tools/reference/ui-extensions-reference/ui-extensions#exposecomponent). **Components that are not listed here won't work.**
492
514
  */
493
515
  exposedComponents?: {
494
516
  /**
@@ -506,7 +528,7 @@ export interface PluginSchema {
506
528
  [k: string]: unknown;
507
529
  }[];
508
530
  /**
509
- * This list must contain all extension points that your plugin defines using [`usePluginLinks()`](https://grafana.com/developers/plugin-tools/reference/ui-extensions#usepluginlinks) or [`usePluginComponents()`](https://grafana.com/developers/plugin-tools/reference/ui-extensions#useplugincomponents). **Extension points that are not listed in here won't work.**
531
+ * This list must contain all extension points that your plugin defines using [`usePluginLinks()`](https://grafana.com/developers/plugin-tools/reference/ui-extensions-reference/ui-extensions#usepluginlinks) or [`usePluginComponents()`](https://grafana.com/developers/plugin-tools/reference/ui-extensions-reference/ui-extensions#useplugincomponents). **Extension points that are not listed in here won't work.**
510
532
  */
511
533
  extensionPoints?: {
512
534
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grafana/plugin-types",
3
- "version": "0.0.44",
3
+ "version": "0.0.45",
4
4
  "description": "NPM package consisting of various Grafana plugins exposed types.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Grafana Labs",