You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import type { Configuration } from './configuration';
import { getElementDetails } from './data';
import { ComponentsEntity, ElementDetailsEntity, Entities } from './schemata';
import { nodeIsElement } from './util';
/**
* Generic callback for providing `component` entities for given Elements.
* Auto discovers element and name from parameters and returns the list of components that encapsulate that element.
* @param withDetails Whether details for each component should be included.
* @param configurations List of configurations that contain component definitions.
* @param params Arbitrary parameters that should include an element and optionally a logical name for that element.
* @returns `component_parents` entity, or if `withDetails` specified, a list of entities containing `component_parents` and the details for each component as `element` entities.