myoperator-mcp 0.2.109 → 0.2.110
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.js +29 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3021,6 +3021,10 @@ export interface ReadableFieldProps
|
|
|
3021
3021
|
headerAction?: {
|
|
3022
3022
|
label: string;
|
|
3023
3023
|
onClick: () => void;
|
|
3024
|
+
/** When true, button is shown but non-interactive */
|
|
3025
|
+
disabled?: boolean;
|
|
3026
|
+
/** Tooltip text shown on hover when disabled */
|
|
3027
|
+
disabledTooltip?: string;
|
|
3024
3028
|
};
|
|
3025
3029
|
/** Callback when value is copied */
|
|
3026
3030
|
onValueCopy?: (value: string) => void;
|
|
@@ -3121,13 +3125,31 @@ export const ReadableField = React.forwardRef<HTMLDivElement, ReadableFieldProps
|
|
|
3121
3125
|
{label}
|
|
3122
3126
|
</span>
|
|
3123
3127
|
{headerAction && (
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3128
|
+
headerAction.disabled ? (
|
|
3129
|
+
<span className="relative group/regen-action">
|
|
3130
|
+
<button
|
|
3131
|
+
type="button"
|
|
3132
|
+
disabled
|
|
3133
|
+
className="text-sm font-semibold text-semantic-text-muted tracking-[0.014px] opacity-50 cursor-not-allowed rounded"
|
|
3134
|
+
>
|
|
3135
|
+
{headerAction.label}
|
|
3136
|
+
</button>
|
|
3137
|
+
{headerAction.disabledTooltip && (
|
|
3138
|
+
<span className="pointer-events-none absolute bottom-full right-0 mb-2 whitespace-nowrap rounded bg-semantic-primary px-2 py-1 text-xs text-semantic-text-inverted opacity-0 transition-opacity group-hover/regen-action:opacity-100 z-10">
|
|
3139
|
+
{headerAction.disabledTooltip}
|
|
3140
|
+
<span className="absolute top-full right-2 border-4 border-transparent border-t-semantic-primary" />
|
|
3141
|
+
</span>
|
|
3142
|
+
)}
|
|
3143
|
+
</span>
|
|
3144
|
+
) : (
|
|
3145
|
+
<button
|
|
3146
|
+
type="button"
|
|
3147
|
+
onClick={headerAction.onClick}
|
|
3148
|
+
className="text-sm font-semibold text-semantic-text-muted tracking-[0.014px] hover:text-semantic-text-primary focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-semantic-text-primary rounded transition-colors"
|
|
3149
|
+
>
|
|
3150
|
+
{headerAction.label}
|
|
3151
|
+
</button>
|
|
3152
|
+
)
|
|
3131
3153
|
)}
|
|
3132
3154
|
</div>
|
|
3133
3155
|
|
package/package.json
CHANGED