link/utils/conflictingdecorators
module
Functions
areDecoratorsConflicting( a, b ) → booleaninternalmodule:link/utils/conflictingdecorators~areDecoratorsConflictingChecks if two decorators conflict with each other.
Decorators conflict when they share the same HTML attribute names (excluding mergeable attributes) or style properties.
Parameters
a : DecoratorLikeThe first decorator.
b : DecoratorLikeThe second decorator.
Returns
boolean
resolveConflictingDecorators( options = { options.allDecorators, options.decoratorStates } ) → Record<string, boolean>internalmodule:link/utils/conflictingdecorators~resolveConflictingDecoratorsResolves conflicting manual decorators by automatically disabling decorators that share the same HTML attributes with newly enabled decorators.
Parameters
options : objectConfiguration object.
Propertiesoptions.allDecorators : Array<object>Collection of all manual decorators.
options.decoratorStates : Record<string, boolean>Initial decorator states.
Returns
Record<string, boolean>Updated decorator states with conflicts resolved.