@onehat/ui 0.3.133 → 0.3.134
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/package.json
CHANGED
|
@@ -54,6 +54,9 @@ export default function withPresetButtons(WrappedComponent, isGrid = false) {
|
|
|
54
54
|
disableDuplicate = !isEditor,
|
|
55
55
|
disablePrint = !isGrid,
|
|
56
56
|
|
|
57
|
+
// withAlert
|
|
58
|
+
showInfo,
|
|
59
|
+
|
|
57
60
|
// withComponent
|
|
58
61
|
self,
|
|
59
62
|
|
|
@@ -276,6 +279,9 @@ export default function withPresetButtons(WrappedComponent, isGrid = false) {
|
|
|
276
279
|
|
|
277
280
|
// Send it to clipboard
|
|
278
281
|
navigator?.clipboard.writeText(text);
|
|
282
|
+
if (showInfo) {
|
|
283
|
+
showInfo('Copied to clipboard!');
|
|
284
|
+
}
|
|
279
285
|
};
|
|
280
286
|
// onPrint = () => {
|
|
281
287
|
// debugger;
|