code: function supportsObject(object, noGrip = false) {
    if (noGrip === true || !isGrip(object)) {
      return false;
    }
  
    const type = getGripType(object, noGrip);
    return object.preview && type === "DocumentType";
  }
docs: Registration