@configura/web-ui 2.0.0-alpha.15 → 2.0.0-alpha.16
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.
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export const ResetButton = (props) => {
|
|
3
|
+
var _a;
|
|
4
|
+
const { callback, tooltip } = props;
|
|
5
|
+
return (React.createElement("div", { className: `cfgReset ${(_a = props.className) !== null && _a !== void 0 ? _a : ""}`, style: props.style },
|
|
6
|
+
React.createElement("button", { title: tooltip, className: "cfgInput", onClick: callback }, "Reset")));
|
|
7
|
+
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { CfgHistoryManager } from "@configura/web-api";
|
|
2
2
|
import React, { useState } from "react";
|
|
3
3
|
const shareLabel = "Share";
|
|
4
|
-
export const ShareView = () => {
|
|
4
|
+
export const ShareView = (props) => {
|
|
5
|
+
var _a;
|
|
5
6
|
const [value, setValue] = useState(shareLabel);
|
|
6
7
|
// No need for a useMemo, this will always be the same instance
|
|
7
8
|
const historyManager = CfgHistoryManager.instance;
|
|
8
|
-
return (React.createElement("div", { className:
|
|
9
|
+
return (React.createElement("div", { className: `cfgShare ${(_a = props.className) !== null && _a !== void 0 ? _a : ""}`, style: props.style },
|
|
9
10
|
React.createElement("input", { title: "Click to copy a share-link to the clipboard", className: "cfgInput", readOnly: true, value: value, onBlur: () => setValue(shareLabel), onFocus: (event) => {
|
|
10
11
|
const url = historyManager.getUrl();
|
|
11
12
|
setValue(url);
|
package/dist/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export * from "./components/productConfiguration/CfgFeatureView.js";
|
|
|
15
15
|
export * from "./components/productConfiguration/CfgGroupView.js";
|
|
16
16
|
export * from "./components/productConfiguration/CfgProductConfigurationView.js";
|
|
17
17
|
export * from "./components/ProductInformation.js";
|
|
18
|
+
export * from "./components/ResetButton.js";
|
|
18
19
|
export * from "./components/ShareView.js";
|
|
19
20
|
export * from "./components/TaskListView.js";
|
|
20
21
|
export * from "./components/TaskStartView.js";
|
package/dist/index.js
CHANGED
|
@@ -15,6 +15,7 @@ export * from "./components/productConfiguration/CfgFeatureView.js";
|
|
|
15
15
|
export * from "./components/productConfiguration/CfgGroupView.js";
|
|
16
16
|
export * from "./components/productConfiguration/CfgProductConfigurationView.js";
|
|
17
17
|
export * from "./components/ProductInformation.js";
|
|
18
|
+
export * from "./components/ResetButton.js";
|
|
18
19
|
export * from "./components/ShareView.js";
|
|
19
20
|
export * from "./components/TaskListView.js";
|
|
20
21
|
export * from "./components/TaskStartView.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@configura/web-ui",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.16",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
]
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@configura/web-api": "2.0.0-alpha.
|
|
35
|
+
"@configura/web-api": "2.0.0-alpha.16"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@babel/preset-env": "^7.14.4",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"publishConfig": {
|
|
65
65
|
"access": "public"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "8c03272c5c4eb3445ad9a06dda0abe1d1fefab49"
|
|
68
68
|
}
|