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/dist/index.cjs +36722 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.css +12371 -0
- package/dist/index.css.map +1 -0
- package/dist/index.modern.js +36558 -0
- package/dist/index.modern.js.map +1 -0
- package/dist/index.umd.js +36717 -0
- package/dist/index.umd.js.map +1 -0
- package/package.json +1 -1
- package/src/html/property.js +3 -3
package/package.json
CHANGED
package/src/html/property.js
CHANGED
@@ -141,10 +141,10 @@ export const Property = (props) => {
|
|
141
141
|
|
142
142
|
// Handle copy
|
143
143
|
const handleCopy = useCallback(async () => {
|
144
|
-
if (!copyable || !
|
144
|
+
if (!copyable || !value) return
|
145
145
|
|
146
146
|
try {
|
147
|
-
await navigator.clipboard.writeText(
|
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
|
294
|
+
{value2 || (placeholder ? <span className="property-value__placeholder">{placeholder}</span> : '')}
|
295
295
|
</span>
|
296
296
|
|
297
297
|
{/* Copy indicator */}
|