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.modern.js
CHANGED
@@ -5637,9 +5637,9 @@ var Property = function Property(props) {
|
|
5637
5637
|
// Handle copy
|
5638
5638
|
var handleCopy = useCallback(function () {
|
5639
5639
|
try {
|
5640
|
-
if (!copyable || !
|
5640
|
+
if (!copyable || !value) return Promise.resolve();
|
5641
5641
|
var _temp = _catch$d(function () {
|
5642
|
-
return Promise.resolve(navigator.clipboard.writeText(
|
5642
|
+
return Promise.resolve(navigator.clipboard.writeText(String(value))).then(function () {}); // Could trigger a toast notification here
|
5643
5643
|
}, function (error) {
|
5644
5644
|
console.warn('Failed to copy property value:', error);
|
5645
5645
|
});
|
@@ -5762,9 +5762,9 @@ var Property = function Property(props) {
|
|
5762
5762
|
className: "property-value__display " + (copyable ? 'property-value__display--copyable' : ''),
|
5763
5763
|
onClick: copyable ? handleCopy : undefined,
|
5764
5764
|
title: copyable ? 'Click to copy' : undefined
|
5765
|
-
}, value2 || placeholder
|
5765
|
+
}, value2 || (placeholder ? /*#__PURE__*/React.createElement("span", {
|
5766
5766
|
className: "property-value__placeholder"
|
5767
|
-
}, placeholder)), copyable && value2 && /*#__PURE__*/React.createElement(Icon, {
|
5767
|
+
}, placeholder) : '')), copyable && value2 && /*#__PURE__*/React.createElement(Icon, {
|
5768
5768
|
icon: "content_copy",
|
5769
5769
|
size: "small",
|
5770
5770
|
className: "property-value__copy",
|