xmlui 0.11.11 → 0.11.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -272,11 +272,12 @@ declare interface Behavior {
272
272
  /**
273
273
  * A function that determines if the behavior should be applied based on the
274
274
  * component's context and props.
275
+ * @param context The renderer context of the component.
275
276
  * @param node The component definition.
276
277
  * @param metadata The metadata of the component.
277
278
  * @returns True if the behavior can be attached, otherwise false.
278
279
  */
279
- canAttach: (node: ComponentDef, metadata: ComponentMetadata) => boolean;
280
+ canAttach: (context: RendererContext<any>, node: ComponentDef, metadata: ComponentMetadata) => boolean;
280
281
  /**
281
282
  * A function that attaches the behavior to the component's React node.
282
283
  * @param context The renderer context of the component.