function addToRegistry(id, item, context) {
	if (Registry.isLocked()) {
		throw new Error(
			`CMF: The registry is locked, you cannot therefore add '${id}' in it. ` +
				'Please check your CMF configuration, it should not move after the initial ' +
				'configuration before bootstrap.',
		);
	}

	const registry = getRegistry(context);
	if (registry[id]) {
		// eslint-disable-next-line no-console
		console.warn(
			`CMF: The '${id}' object is registered, overriding an existing '${id}' object. ` +
				'Please check your CMF configuration, you might not want that.',
		);
	}
	if (item === undefined) {
		throw new Error(
			`CMF: you can't register undefined in '${id}'.
			You may have an import error in your configuration`,
		);
	}
	registry[id] = item;
}
/**
 * Internal. Call this one to add anything you want into the registry.
 * It will be added only if not locked.
 * Be warned any existing content will be overridden.
 * You should use this to add a new configurable concept to CMF.
 * By default it's internally used to register expression, component and actionCreator
 * @param {string} id Where you want it to store in the registry to get it later
 * @param {any} item Everything you want, a function, an object or whatever
 */
Internal. Call this one to add anything you want into the registry.
It will be added only if not locked.
Be warned any existing content will be overridden.
You should use this to add a new configurable concept to CMF.
By default it's internally used to register expression, component and actionCreator
@param {string} id Where you want it to store in the registry to get it later
@param {any} item Everything you want, a function, an object or whatever
Internal . Call this one to add anything you want into the registry . It will be added only if not locked . Be warned any existing content will be overridden . You should use this to add a new configurable concept to CMF . By default it ' s internally used to register expression component and actionCreator @param { string } id Where you want it to store in the registry to get it later @param { any } item Everything you want a function an object or whatever
function addToRegistry(id, item, context) {
	if (Registry.isLocked()) {
		throw new Error(
			`CMF: The registry is locked, you cannot therefore add '${id}' in it. ` +
				'Please check your CMF configuration, it should not move after the initial ' +
				'configuration before bootstrap.',
		);
	}
	const registry = getRegistry(context);
	if (registry[id]) {
		console.warn(
			`CMF: The '${id}' object is registered, overriding an existing '${id}' object. ` +
				'Please check your CMF configuration, you might not want that.',
		);
	}
	if (item === undefined) {
		throw new Error(
			`CMF: you can't register undefined in '${id}'.
			You may have an import error in your configuration`,
		);
	}
	registry[id] = item;
}
function addToRegistry ( id , item , context ) { if ( Registry . isLocked ( ) ) { throw new Error ( ` ${ id } ` + 'Please check your CMF configuration, it should not move after the initial ' + 'configuration before bootstrap.' , ) ; } const registry = getRegistry ( context ) ; if ( registry [ id ] ) { console . warn ( ` ${ id } ${ id } ` + 'Please check your CMF configuration, you might not want that.' , ) ; } if ( item === undefined ) { throw new Error ( ` ${ id } ` , ) ; } registry [ id ] = item ; }
Internal.
Internal .
// eslint-disable-next-line no-console