@factorialco/f0-react 1.414.1 → 1.415.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/ai.d.ts CHANGED
@@ -1920,6 +1920,35 @@ export declare function useAiChatTranslations(): AiChatTranslations;
1920
1920
  */
1921
1921
  export declare const useDefaultCopilotActions: () => void;
1922
1922
 
1923
+ /**
1924
+ * Hook that registers all AI form interaction tools and pushes
1925
+ * form context to the co-agent shared state via `useCoAgent`.
1926
+ *
1927
+ * Must be called inside a component tree that has both:
1928
+ * - A `F0AiFormRegistryProvider` ancestor (for form lookup)
1929
+ * - A CopilotKit context (for tool registration + co-agent state)
1930
+ * - An `AiChatStateProvider` ancestor (for the agent name)
1931
+ */
1932
+ export declare const useF0AiFormActions: () => void;
1933
+
1934
+ /**
1935
+ * AI tool that fills one or more fields in an active F0Form.
1936
+ * After setting values, it triggers validation and returns any errors.
1937
+ */
1938
+ export declare const useFormFillAction: () => void;
1939
+
1940
+ /**
1941
+ * AI tool that reads the current state of an active F0Form —
1942
+ * current values, dirty status, and validation errors.
1943
+ */
1944
+ export declare const useFormGetStateAction: () => void;
1945
+
1946
+ /**
1947
+ * AI tool that submits an active F0Form.
1948
+ * Triggers validation first — only calls onSubmit if all fields pass.
1949
+ */
1950
+ export declare const useFormSubmitAction: () => void;
1951
+
1923
1952
  export declare function useI18n(): TranslationsType & {
1924
1953
  t: (key: TranslationKey, args?: Record<string, string | number>) => string;
1925
1954
  };
@@ -1990,11 +2019,6 @@ declare module "gridstack" {
1990
2019
  }
1991
2020
 
1992
2021
 
1993
- declare namespace Calendar {
1994
- var displayName: string;
1995
- }
1996
-
1997
-
1998
2022
  declare module "@tiptap/core" {
1999
2023
  interface Commands<ReturnType> {
2000
2024
  aiBlock: {
@@ -2042,3 +2066,8 @@ declare module "@tiptap/core" {
2042
2066
  };
2043
2067
  }
2044
2068
  }
2069
+
2070
+
2071
+ declare namespace Calendar {
2072
+ var displayName: string;
2073
+ }
package/dist/ai.js CHANGED
@@ -1,37 +1,37 @@
1
- import { I as e, u as t } from "./F0Input-C9w04Jpr.js";
1
+ import { I as e, u as t } from "./F0Input-Ctwd5zZH.js";
2
2
  import { defaultTranslations as i } from "./i18n-provider-defaults.js";
3
- import { A as r, B as l, C as A, p as F, E as c, h as u, F as C, a as h, D as d, i as m, b as T, j as f, w as p, x as g, y as I, z as S, c as k, q as x, s as v, t as H, H as M, I as P, L as b, O as w, v as E, P as O, S as y, T as D, m as R, n as L, o as q, U as z, k as B, l as U, g as j, r as V, u as G, d as J, f as K, e as N } from "./F0AiChat-CBy7rZCW.js";
4
- import { A as W, F as X, c as Y, d as Z, e as _, b as $, a as aa, o as sa, u as ea } from "./F0HILActionConfirmation-BvAjbJKj.js";
3
+ import { A as r, B as l, C as F, v as A, E as u, l as c, F as m, a as C, M as h, m as d, b as S, n as T, D as f, G as p, J as g, K as I, c as k, w as x, x as M, y as b, H as v, I as H, L as P, O as w, z as E, P as O, S as y, T as D, q as R, s as L, t as q, U as z, o as B, p as G, g as U, r as j, u as J, d as K, h as V, i as N, k as Q, j as W, f as X, e as Y } from "./F0AiChat-CrcLUV-I.js";
4
+ import { A as _, F as $, c as aa, d as sa, e as ea, b as ta, a as oa, o as ia, u as na } from "./F0HILActionConfirmation-Bu877U3G.js";
5
5
  export {
6
6
  r as A,
7
- W as AiChatTranslationsProvider,
7
+ _ as AiChatTranslationsProvider,
8
8
  l as Blockquote,
9
- A as ChatSpinner,
10
- F as Em,
11
- c as EntityRef,
12
- u as F0ActionItem,
13
- C as F0AiChat,
14
- h as F0AiChatProvider,
15
- d as F0AiChatTextArea,
16
- m as F0AiCollapsibleMessage,
17
- T as F0AiFullscreenChat,
18
- X as F0AiMask,
19
- Y as F0AuraVoiceAnimation,
20
- Z as F0ChatReportCard,
21
- f as F0DataDownload,
22
- _ as F0HILActionConfirmation,
23
- p as F0MessageSources,
24
- g as F0OneIcon,
25
- I as F0OneSwitch,
26
- S as F0Thinking,
9
+ F as ChatSpinner,
10
+ A as Em,
11
+ u as EntityRef,
12
+ c as F0ActionItem,
13
+ m as F0AiChat,
14
+ C as F0AiChatProvider,
15
+ h as F0AiChatTextArea,
16
+ d as F0AiCollapsibleMessage,
17
+ S as F0AiFullscreenChat,
18
+ $ as F0AiMask,
19
+ aa as F0AuraVoiceAnimation,
20
+ sa as F0ChatReportCard,
21
+ T as F0DataDownload,
22
+ ea as F0HILActionConfirmation,
23
+ f as F0MessageSources,
24
+ p as F0OneIcon,
25
+ g as F0OneSwitch,
26
+ I as F0Thinking,
27
27
  k as FullscreenChatContext,
28
28
  x as H1,
29
- v as H2,
30
- H as H3,
31
- M as Hr,
29
+ M as H2,
30
+ b as H3,
31
+ v as Hr,
32
32
  e as I18nProvider,
33
- P as Image,
34
- b as Li,
33
+ H as Image,
34
+ P as Li,
35
35
  w as Ol,
36
36
  E as P,
37
37
  O as Pre,
@@ -41,18 +41,22 @@ export {
41
41
  L as Td,
42
42
  q as Th,
43
43
  z as Ul,
44
- $ as actionItemStatuses,
45
- aa as aiTranslations,
44
+ ta as actionItemStatuses,
45
+ oa as aiTranslations,
46
46
  i as defaultTranslations,
47
47
  B as f0MarkdownRenderers,
48
- U as f0MarkdownRenderersSimple,
49
- j as getCanvasEntity,
50
- sa as oneIconSizes,
51
- V as registerCanvasEntity,
52
- G as useAiChat,
53
- ea as useAiChatTranslations,
54
- J as useDefaultCopilotActions,
48
+ G as f0MarkdownRenderersSimple,
49
+ U as getCanvasEntity,
50
+ ia as oneIconSizes,
51
+ j as registerCanvasEntity,
52
+ J as useAiChat,
53
+ na as useAiChatTranslations,
54
+ K as useDefaultCopilotActions,
55
+ V as useF0AiFormActions,
56
+ N as useFormFillAction,
57
+ Q as useFormGetStateAction,
58
+ W as useFormSubmitAction,
55
59
  t as useI18n,
56
- K as useMessageSourcesAction,
57
- N as useOrchestratorThinkingAction
60
+ X as useMessageSourcesAction,
61
+ Y as useOrchestratorThinkingAction
58
62
  };
@@ -7135,11 +7135,6 @@ declare module "gridstack" {
7135
7135
  }
7136
7136
 
7137
7137
 
7138
- declare namespace Calendar {
7139
- var displayName: string;
7140
- }
7141
-
7142
-
7143
7138
  declare module "@tiptap/core" {
7144
7139
  interface Commands<ReturnType> {
7145
7140
  aiBlock: {
@@ -7187,3 +7182,8 @@ declare module "@tiptap/core" {
7187
7182
  };
7188
7183
  }
7189
7184
  }
7185
+
7186
+
7187
+ declare namespace Calendar {
7188
+ var displayName: string;
7189
+ }