lib/services/pages.js
function renameReferenceUniquely(uri) {
  const prefix = uri.substr(0, uri.indexOf('/_components/'));

  return `${prefix}/_components/${getComponentName(uri)}/instances/${uid.get()}`;
}
function renameReferenceUniquely(uri) {
  const prefix = uri.substr(0, uri.indexOf('/_components/'));

  return `${prefix}/_components/${getComponentName(uri)}/instances/${uid.get()}`;
}
function renameReferenceUniquely ( uri ) { const prefix = uri . substr ( 0 , uri . indexOf ( '/_components/' ) ) ; return ` ${ prefix } ${ getComponentName ( uri ) } ${ uid . get ( ) } ` ; }
Get a reference that is unique, but of the same component type as original.
@param {string} uri
@returns {string}
Get a reference that is unique but of the same component type as original .