praxis-kit 6.2.3 → 6.6.0

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.
@@ -218,6 +218,7 @@ type AriaResult = ValidResult | AriaInvalidResult;
218
218
 
219
219
  type AriaRule<C extends AriaContext = AriaContext> = ((context: C) => readonly AriaResult[]) & {
220
220
  readonly readsProps?: readonly string[];
221
+ readonly tags?: readonly string[];
221
222
  };
222
223
 
223
224
  type PropNormalizer = (props: Readonly<AnyRecord & IntrinsicProps>) => Partial<AnyRecord & IntrinsicProps>;
@@ -230,6 +231,16 @@ type EnforcementOptions<TAllowed extends ElementType = ElementType> = {
230
231
  */
231
232
  readonly diagnostics?: Diagnostics | DiagnosticsMode;
232
233
  readonly aria?: readonly AriaRule[];
234
+ /**
235
+ * Rules that need `AriaPolicyEngine`'s fix-application/caching machinery
236
+ * (`AriaRule`'s `readsProps`, fixable `AriaFix` results) but have no
237
+ * relationship to ARIA semantics — an HTML fact or a security check like a
238
+ * dangerous-URL-scheme guard, for example. Evaluated together with `aria`
239
+ * (both run through the same engine, merged into one rule set) — this is a
240
+ * separate bucket purely so a non-ARIA rule doesn't have to sit under the
241
+ * misleading `aria` name to get the machinery it needs.
242
+ */
243
+ readonly rules?: readonly AriaRule[];
233
244
  readonly children?: readonly ChildRuleInput[];
234
245
  /**
235
246
  * When true, only children matching a `children` rule (or text, per `allowText`)