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.
- package/dist/_shared/diagnostics.d.ts +4 -0
- package/dist/_shared/diagnostics.js +4 -0
- package/dist/{chunk-H3D2JA3J.js → chunk-OCG5VM4H.js} +519 -326
- package/dist/contract/index.d.ts +11 -0
- package/dist/contract/index.js +2 -0
- package/dist/guards/index.d.ts +11 -2
- package/dist/html/index.d.ts +98 -0
- package/dist/html/index.js +860 -0
- package/dist/lit/index.d.ts +11 -0
- package/dist/lit/index.js +519 -326
- package/dist/preact/index.d.ts +20 -0
- package/dist/preact/index.js +519 -326
- package/dist/react/index.d.ts +2 -2
- package/dist/react/index.js +1 -1
- package/dist/react/legacy.d.ts +2 -2
- package/dist/react/legacy.js +1 -1
- package/dist/{react-options-DQTX4YS_.d.ts → react-options-BUBVohU6.d.ts} +50 -33
- package/dist/solid/index.d.ts +20 -0
- package/dist/solid/index.js +519 -326
- package/dist/svelte/index.d.ts +11 -0
- package/dist/svelte/index.js +519 -326
- package/dist/vite-plugin/index.d.ts +4 -0
- package/dist/vue/index.d.ts +11 -0
- package/dist/vue/index.js +519 -326
- package/dist/web/index.d.ts +11 -0
- package/dist/web/index.js +519 -326
- package/package.json +12 -5
package/dist/svelte/index.d.ts
CHANGED
|
@@ -240,6 +240,7 @@ type AriaResult = ValidResult | AriaInvalidResult;
|
|
|
240
240
|
|
|
241
241
|
type AriaRule<C extends AriaContext = AriaContext> = ((context: C) => readonly AriaResult[]) & {
|
|
242
242
|
readonly readsProps?: readonly string[];
|
|
243
|
+
readonly tags?: readonly string[];
|
|
243
244
|
};
|
|
244
245
|
|
|
245
246
|
type PropNormalizer = (props: Readonly<AnyRecord & IntrinsicProps>) => Partial<AnyRecord & IntrinsicProps>;
|
|
@@ -252,6 +253,16 @@ type EnforcementOptions<TAllowed extends ElementType = ElementType> = {
|
|
|
252
253
|
*/
|
|
253
254
|
readonly diagnostics?: Diagnostics | DiagnosticsMode;
|
|
254
255
|
readonly aria?: readonly AriaRule[];
|
|
256
|
+
/**
|
|
257
|
+
* Rules that need `AriaPolicyEngine`'s fix-application/caching machinery
|
|
258
|
+
* (`AriaRule`'s `readsProps`, fixable `AriaFix` results) but have no
|
|
259
|
+
* relationship to ARIA semantics — an HTML fact or a security check like a
|
|
260
|
+
* dangerous-URL-scheme guard, for example. Evaluated together with `aria`
|
|
261
|
+
* (both run through the same engine, merged into one rule set) — this is a
|
|
262
|
+
* separate bucket purely so a non-ARIA rule doesn't have to sit under the
|
|
263
|
+
* misleading `aria` name to get the machinery it needs.
|
|
264
|
+
*/
|
|
265
|
+
readonly rules?: readonly AriaRule[];
|
|
255
266
|
readonly children?: readonly ChildRuleInput[];
|
|
256
267
|
/**
|
|
257
268
|
* When true, only children matching a `children` rule (or text, per `allowText`)
|