Beat the butter and sugars together in a large bowl with a mixer on medium speed until fluffy, about four minutes. Reduce the speed and beat in the egg, egg yolk and vanilla until smooth, about two minutes. Add the flour mixture, walnuts and dried apricots to the bowl with a spatula and stir until fully combined.