@grafana/create-plugin 1.5.0-canary.250.d5b56b8.0 → 1.5.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,20 @@
1
+ # v1.5.0 (Wed May 24 2023)
2
+
3
+ :tada: This release contains work from a new contributor! :tada:
4
+
5
+ Thank you, Dominik Prokop ([@dprokop](https://github.com/dprokop)), for all your work!
6
+
7
+ #### 🚀 Enhancement
8
+
9
+ - Create Plugin: Add scenes app scaffolding [#250](https://github.com/grafana/plugin-tools/pull/250) ([@dprokop](https://github.com/dprokop) [@jackw](https://github.com/jackw))
10
+
11
+ #### Authors: 2
12
+
13
+ - Dominik Prokop ([@dprokop](https://github.com/dprokop))
14
+ - Jack Westbrook ([@jackw](https://github.com/jackw))
15
+
16
+ ---
17
+
1
18
  # v1.4.0 (Tue May 23 2023)
2
19
 
3
20
  #### 🚀 Enhancement
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grafana/create-plugin",
3
- "version": "1.5.0-canary.250.d5b56b8.0",
3
+ "version": "1.5.0",
4
4
  "main": "index.js",
5
5
  "repository": {
6
6
  "directory": "packages/create-plugin",
@@ -66,5 +66,5 @@
66
66
  "engines": {
67
67
  "node": ">=16"
68
68
  },
69
- "gitHead": "d5b56b813e5d5d06b8c997a06e8c61d9b9ef1f41"
69
+ "gitHead": "cbf24b16b6fbdcf7af2208d96e164db5d68e570c"
70
70
  }
@@ -6,11 +6,11 @@ This template is a starting point for building an app plugin with [scenes](https
6
6
 
7
7
  App plugins can let you create a custom out-of-the-box monitoring experience by custom pages, nested datasources and panel plugins.
8
8
 
9
- ## What is @grafana/scenes
9
+ ## What is @grafana/scenes?
10
10
 
11
11
  [@grafana/scenes](https://github.com/grafana/scenes) is a framework to enable versatile app plugins implementation. It provides an easy way to build apps that resemble Grafana's dashboarding experience, including template variables support, versatile layouts, panels rendering and more.
12
12
 
13
- To learn more about @grafana/scenes usage please refer to [documentation](https://grafana.github.io/scenes)
13
+ To learn more about @grafana/scenes usage please refer to the [documentation](https://grafana.github.io/scenes)
14
14
 
15
15
  ## What does this template contain?
16
16
 
@@ -1,9 +1,8 @@
1
1
  import React, { useState, ChangeEvent } from 'react';
2
- import { Button, Field, Input, useStyles2, FieldSet } from '@grafana/ui';
2
+ import { Button, Field, Input, useStyles2, FieldSet, SecretInput } from '@grafana/ui';
3
3
  import { PluginConfigPageProps, AppPluginMeta, PluginMeta, GrafanaTheme2 } from '@grafana/data';
4
4
  import { getBackendSrv, locationService } from '@grafana/runtime';
5
5
  import { css } from '@emotion/css';
6
- import { SecretInput } from '../SecretInput';
7
6
  import { testIds } from '../testIds';
8
7
 
9
8
  export type JsonData = {
@@ -1,25 +0,0 @@
1
- import * as React from 'react';
2
- import { Input, HorizontalGroup, Button } from '@grafana/ui';
3
-
4
- type Props = React.ComponentProps<typeof Input> & {
5
- /** Defines if the password is already set or not. (It is needed as in some cases the backend doesn't send back the actual password) */
6
- isConfigured: boolean;
7
- /** Called when the user clicks on the "Reset" button */
8
- onReset: () => void;
9
- };
10
-
11
- // This replaces the "LegacyForms.SecretFormField" component from @grafana/ui, so we can start using the newer form components.
12
- export const SecretInput = ({ isConfigured, onReset, ...props }: Props) => {
13
- if (isConfigured) {
14
- return (
15
- <HorizontalGroup>
16
- <Input {...props} type="text" disabled={true} value="configured" />
17
- <Button onClick={onReset} variant="secondary">
18
- Reset
19
- </Button>
20
- </HorizontalGroup>
21
- );
22
- }
23
-
24
- return <Input {...props} type="password" />;
25
- };
@@ -1 +0,0 @@
1
- export * from './SecretInput';