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.umd.js CHANGED
@@ -5639,9 +5639,9 @@
5639
5639
  // Handle copy
5640
5640
  var handleCopy = React.useCallback(function () {
5641
5641
  try {
5642
- if (!copyable || !value2) return Promise.resolve();
5642
+ if (!copyable || !value) return Promise.resolve();
5643
5643
  var _temp = _catch$d(function () {
5644
- return Promise.resolve(navigator.clipboard.writeText(value2)).then(function () {}); // Could trigger a toast notification here
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 && /*#__PURE__*/React__default["default"].createElement("span", {
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",