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.
@@ -65,6 +65,10 @@ declare enum DiagnosticCode {
65
65
  HtmlInputStepIgnoredForType = "HTML3109",
66
66
  HtmlInputAcceptIgnoredForType = "HTML3110",
67
67
  HtmlInputCaptureIgnoredForType = "HTML3111",
68
+ HtmlInputSizeIgnoredForType = "HTML3112",
69
+ HtmlInputAltIgnoredForType = "HTML3113",
70
+ HtmlInputHeightIgnoredForType = "HTML3114",
71
+ HtmlInputWidthIgnoredForType = "HTML3115",
68
72
  A11yInputMissingAccessibleName = "A11Y8100",
69
73
  A11yInputPlaceholderNotLabel = "A11Y8101",
70
74
  A11yInputPasswordAutocomplete = "A11Y8102",
@@ -237,6 +237,7 @@ type AriaResult = ValidResult | AriaInvalidResult;
237
237
 
238
238
  type AriaRule<C extends AriaContext = AriaContext> = ((context: C) => readonly AriaResult[]) & {
239
239
  readonly readsProps?: readonly string[];
240
+ readonly tags?: readonly string[];
240
241
  };
241
242
 
242
243
  type PropNormalizer = (props: Readonly<AnyRecord & IntrinsicProps>) => Partial<AnyRecord & IntrinsicProps>;
@@ -249,6 +250,16 @@ type EnforcementOptions<TAllowed extends ElementType = ElementType> = {
249
250
  */
250
251
  readonly diagnostics?: Diagnostics | DiagnosticsMode;
251
252
  readonly aria?: readonly AriaRule[];
253
+ /**
254
+ * Rules that need `AriaPolicyEngine`'s fix-application/caching machinery
255
+ * (`AriaRule`'s `readsProps`, fixable `AriaFix` results) but have no
256
+ * relationship to ARIA semantics — an HTML fact or a security check like a
257
+ * dangerous-URL-scheme guard, for example. Evaluated together with `aria`
258
+ * (both run through the same engine, merged into one rule set) — this is a
259
+ * separate bucket purely so a non-ARIA rule doesn't have to sit under the
260
+ * misleading `aria` name to get the machinery it needs.
261
+ */
262
+ readonly rules?: readonly AriaRule[];
252
263
  readonly children?: readonly ChildRuleInput[];
253
264
  /**
254
265
  * When true, only children matching a `children` rule (or text, per `allowText`)