ywana-core8 0.1.102 → 0.1.103
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/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +4 -4
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +4 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/property.js +3 -3
package/dist/index.umd.js
CHANGED
@@ -5639,9 +5639,9 @@
|
|
5639
5639
|
// Handle copy
|
5640
5640
|
var handleCopy = React.useCallback(function () {
|
5641
5641
|
try {
|
5642
|
-
if (!copyable || !
|
5642
|
+
if (!copyable || !value) return Promise.resolve();
|
5643
5643
|
var _temp = _catch$d(function () {
|
5644
|
-
return Promise.resolve(navigator.clipboard.writeText(
|
5644
|
+
return Promise.resolve(navigator.clipboard.writeText(String(value))).then(function () {}); // Could trigger a toast notification here
|
5645
5645
|
}, function (error) {
|
5646
5646
|
console.warn('Failed to copy property value:', error);
|
5647
5647
|
});
|
@@ -5764,9 +5764,9 @@
|
|
5764
5764
|
className: "property-value__display " + (copyable ? 'property-value__display--copyable' : ''),
|
5765
5765
|
onClick: copyable ? handleCopy : undefined,
|
5766
5766
|
title: copyable ? 'Click to copy' : undefined
|
5767
|
-
}, value2 || placeholder
|
5767
|
+
}, value2 || (placeholder ? /*#__PURE__*/React__default["default"].createElement("span", {
|
5768
5768
|
className: "property-value__placeholder"
|
5769
|
-
}, placeholder)), copyable && value2 && /*#__PURE__*/React__default["default"].createElement(Icon, {
|
5769
|
+
}, placeholder) : '')), copyable && value2 && /*#__PURE__*/React__default["default"].createElement(Icon, {
|
5770
5770
|
icon: "content_copy",
|
5771
5771
|
size: "small",
|
5772
5772
|
className: "property-value__copy",
|