window.coveoCustomScripts['default'] = function (promise, component) {
  Coveo.triggerRecentQuery = function(query){
    var root = document.getElementById('standaloneSearchbox');
    Coveo.state(root,'q',query);
    Coveo.executeQuery(root);
  }

  Coveo.updatePlaceHolder = function(text){
    var input = document.querySelector('.magic-box-input input');
    input.setAttribute('placeholder',text);
  }
}