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.cjs
CHANGED
@@ -5646,9 +5646,9 @@ var Property = function Property(props) {
|
|
5646
5646
|
// Handle copy
|
5647
5647
|
var handleCopy = React.useCallback(function () {
|
5648
5648
|
try {
|
5649
|
-
if (!copyable || !
|
5649
|
+
if (!copyable || !value) return Promise.resolve();
|
5650
5650
|
var _temp = _catch$d(function () {
|
5651
|
-
return Promise.resolve(navigator.clipboard.writeText(
|
5651
|
+
return Promise.resolve(navigator.clipboard.writeText(String(value))).then(function () {}); // Could trigger a toast notification here
|
5652
5652
|
}, function (error) {
|
5653
5653
|
console.warn('Failed to copy property value:', error);
|
5654
5654
|
});
|
@@ -5771,9 +5771,9 @@ var Property = function Property(props) {
|
|
5771
5771
|
className: "property-value__display " + (copyable ? 'property-value__display--copyable' : ''),
|
5772
5772
|
onClick: copyable ? handleCopy : undefined,
|
5773
5773
|
title: copyable ? 'Click to copy' : undefined
|
5774
|
-
}, value2 || placeholder
|
5774
|
+
}, value2 || (placeholder ? /*#__PURE__*/React__default["default"].createElement("span", {
|
5775
5775
|
className: "property-value__placeholder"
|
5776
|
-
}, placeholder)), copyable && value2 && /*#__PURE__*/React__default["default"].createElement(Icon, {
|
5776
|
+
}, placeholder) : '')), copyable && value2 && /*#__PURE__*/React__default["default"].createElement(Icon, {
|
5777
5777
|
icon: "content_copy",
|
5778
5778
|
size: "small",
|
5779
5779
|
className: "property-value__copy",
|