@factorialco/f0-react 4.52.0 → 4.53.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.
@@ -1,5 +1,17 @@
1
1
  import { default as default_2 } from 'react';
2
2
 
3
+ export declare const A11Y_TIER_ORDER: A11yTier[];
4
+
5
+ /**
6
+ * A component's accessibility posture, ordered like doc quality. "skipped" =
7
+ * at least one story opts out of axe; "todo" = axe runs but non-blocking;
8
+ * "enforced" = every story runs axe at test:"error" (⇒ axe-clean on a green
9
+ * main). Stable requires "enforced".
10
+ */
11
+ export declare type A11yTier = "skipped" | "todo" | "enforced";
12
+
13
+ export declare function a11yTierAtLeast(actual: A11yTier, min: A11yTier): boolean;
14
+
3
15
  /**
4
16
  * Component Status API
5
17
  * ====================
@@ -42,6 +54,8 @@ export declare interface ComponentEntry {
42
54
  hasMdxDocs: boolean;
43
55
  docQuality: DocQuality;
44
56
  docSignals: DocSignals;
57
+ /** Accessibility posture: "skipped" | "todo" | "enforced" (see A11yTier). */
58
+ a11yTier: A11yTier;
45
59
  storyFile: string;
46
60
  }
47
61
 
@@ -259,11 +273,9 @@ declare namespace Calendar {
259
273
 
260
274
  declare module "@tiptap/core" {
261
275
  interface Commands<ReturnType> {
262
- enhanceHighlight: {
263
- setEnhanceHighlight: (from: number, to: number, options?: {
264
- placeholder?: string;
265
- }) => ReturnType;
266
- clearEnhanceHighlight: () => ReturnType;
276
+ aiBlock: {
277
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
278
+ executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
267
279
  };
268
280
  }
269
281
  }
@@ -271,8 +283,11 @@ declare module "@tiptap/core" {
271
283
 
272
284
  declare module "@tiptap/core" {
273
285
  interface Commands<ReturnType> {
274
- moodTracker: {
275
- insertMoodTracker: (data: MoodTrackerData) => ReturnType;
286
+ enhanceHighlight: {
287
+ setEnhanceHighlight: (from: number, to: number, options?: {
288
+ placeholder?: string;
289
+ }) => ReturnType;
290
+ clearEnhanceHighlight: () => ReturnType;
276
291
  };
277
292
  }
278
293
  }
@@ -280,9 +295,8 @@ declare module "@tiptap/core" {
280
295
 
281
296
  declare module "@tiptap/core" {
282
297
  interface Commands<ReturnType> {
283
- aiBlock: {
284
- insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
285
- executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
298
+ moodTracker: {
299
+ insertMoodTracker: (data: MoodTrackerData) => ReturnType;
286
300
  };
287
301
  }
288
302
  }