ywana-core8 0.1.101 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ywana-core8",
3
- "version": "0.1.101",
3
+ "version": "0.1.103",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -141,10 +141,10 @@ export const Property = (props) => {
141
141
 
142
142
  // Handle copy
143
143
  const handleCopy = useCallback(async () => {
144
- if (!copyable || !value2) return
144
+ if (!copyable || !value) return
145
145
 
146
146
  try {
147
- await navigator.clipboard.writeText(value2)
147
+ await navigator.clipboard.writeText(String(value))
148
148
  // Could trigger a toast notification here
149
149
  } catch (error) {
150
150
  console.warn('Failed to copy property value:', error)
@@ -291,7 +291,7 @@ export const Property = (props) => {
291
291
  onClick={copyable ? handleCopy : undefined}
292
292
  title={copyable ? 'Click to copy' : undefined}
293
293
  >
294
- {value2 || (placeholder && <span className="property-value__placeholder">{placeholder}</span>)}
294
+ {value2 || (placeholder ? <span className="property-value__placeholder">{placeholder}</span> : '')}
295
295
  </span>
296
296
 
297
297
  {/* Copy indicator */}