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 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 || !value2) return Promise.resolve();
5649
+ if (!copyable || !value) return Promise.resolve();
5650
5650
  var _temp = _catch$d(function () {
5651
- return Promise.resolve(navigator.clipboard.writeText(value2)).then(function () {}); // Could trigger a toast notification here
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 && /*#__PURE__*/React__default["default"].createElement("span", {
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",