function getMainKeysFromComponents(components, version) {
  const {
    COMPONENTS_KEYS
  } = getBundleRulesDataByVersion(version);
  let componentsDictionary = {};
  COMPONENTS_KEYS.forEach((key) => {
    if (components[key]) {
      componentsDictionary[key] = Object.keys(components[key]);
    }
  });
  return componentsDictionary;
}
Returns a dictionary with the resusable component keys and their mainKeys in document before the bundle
@param {object} components - The wrapper with the root reusable components before the bundle
@param {string} version - The spec version
@returns {object} - A directory with the local components keys related with their mainKeys