@azure/api-management-custom-widgets-scaffolder 1.0.0-alpha.20220801.4 → 1.0.0-beta.1

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.
@@ -10,7 +10,7 @@
10
10
  "deploy": "npm run build && node deploy.js"
11
11
  },
12
12
  "dependencies": {
13
- "@azure/api-management-custom-widgets-tools": "^1.0.0-beta.1",
13
+ "@azure/api-management-custom-widgets-tools": "^1.0.0-beta.1"
14
14
  },
15
15
  "devDependencies": {
16
16
  "prettier": "^2.5.1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azure/api-management-custom-widgets-scaffolder",
3
- "version": "1.0.0-alpha.20220801.4",
3
+ "version": "1.0.0-beta.1",
4
4
  "author": "Microsoft Corporation",
5
5
  "license": "MIT",
6
6
  "sdk-type": "client",
@@ -62,7 +62,7 @@
62
62
  "unit-test": "npm run unit-test:node && npm run unit-test:browser"
63
63
  },
64
64
  "devDependencies": {
65
- "@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb",
65
+ "@azure/dev-tool": "^1.0.0",
66
66
  "@microsoft/api-extractor": "7.18.11",
67
67
  "@types/chai": "^4.1.6",
68
68
  "@types/mocha": "^7.0.2",
@@ -71,7 +71,7 @@
71
71
  "@types/inquirer": "^8.2.1",
72
72
  "@types/yargs": "^17.0.10",
73
73
  "@types/yargs-parser": "^21.0.0",
74
- "@azure/eslint-plugin-azure-sdk": ">=3.0.0-alpha <3.0.0-alphb",
74
+ "@azure/eslint-plugin-azure-sdk": "^3.0.0",
75
75
  "chai": "^4.2.0",
76
76
  "cross-env": "^7.0.2",
77
77
  "eslint": "^7.15.0",
@@ -83,7 +83,7 @@
83
83
  "typescript": "~4.6.0",
84
84
  "util": "^0.12.1",
85
85
  "dotenv": "^8.2.0",
86
- "@azure/test-utils": ">=1.0.0-alpha <1.0.0-alphb",
86
+ "@azure/test-utils": "^1.0.0",
87
87
  "@types/mustache": "4.1.2",
88
88
  "sinon": "^9.0.4",
89
89
  "@types/sinon": "^9.0.4"
@@ -1,25 +0,0 @@
1
- import {EditorData} from "@azure/api-management-custom-widgets-tools"
2
- import {useEditorData, useSecrets} from "../hooks"
3
- import {TValues} from "../values"
4
-
5
- const DataField = ({title, value}: {title: keyof EditorData<TValues> | keyof TValues; value: string}) => (
6
- <p>
7
- {title}: <b>{value}</b>
8
- </p>
9
- )
10
-
11
- const App = () => {
12
- const editorData = useEditorData()
13
- const secrets = useSecrets()
14
-
15
- return (
16
- <>
17
- <h1>Hello {{displayName}}!</h1>
18
-
19
- <DataField title="field1" value={editorData.values.field1} />
20
- <DataField title="field2" value={editorData.values.field2} />
21
- </>
22
- )
23
- }
24
-
25
- export default App