@factorialco/f0-react 1.459.1 → 1.461.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
@@ -324,6 +324,14 @@ declare type AiChatProviderReturnValue = {
324
324
  pendingContext: PendingContext | null;
325
325
  /** Set pending context (pass null to clear) */
326
326
  setPendingContext: React.Dispatch<React.SetStateAction<PendingContext | null>>;
327
+ /**
328
+ * Quoted fragment the user is replying to. Rendered as a chip above the
329
+ * textarea and, on submit, prepended as a markdown blockquote to the user's
330
+ * message (plus an invisible `<quote-context>` tag for the agent).
331
+ */
332
+ pendingQuote: PendingQuote | null;
333
+ /** Set the pending quote (pass null to clear). */
334
+ setPendingQuote: React.Dispatch<React.SetStateAction<PendingQuote | null>>;
327
335
  } & Pick<AiChatState, "greeting" | "agent" | "disclaimer" | "resizable" | "entityRefs" | "canvasActions" | "toolHints" | "credits" | "creditWarning" | "fileAttachments"> & {
328
336
  /** The current canvas content, or null when canvas is closed */
329
337
  canvasContent: CanvasContent | null;
@@ -565,14 +573,22 @@ export declare const aiTranslations: {
565
573
  readonly removeFile: "Remove";
566
574
  readonly fileUploadError: "Upload failed";
567
575
  readonly dropFilesHere: "Drop your files here";
576
+ readonly reply: "Reply";
577
+ readonly removeQuote: "Remove quote";
568
578
  readonly clarifyingQuestion: {
569
579
  readonly submit: "Submit";
570
580
  readonly next: "Next";
571
581
  readonly back: "Back";
582
+ readonly skip: "Skip";
572
583
  readonly typeYourAnswer: "Type your answer…";
573
584
  readonly stepOf: "{{current}} of {{total}}";
574
585
  readonly custom: "own answer";
575
586
  readonly skipped: "skipped";
587
+ readonly navHint: {
588
+ readonly navigate: "navigate";
589
+ readonly select: "select";
590
+ readonly skip: "skip";
591
+ };
576
592
  };
577
593
  readonly growth: {
578
594
  readonly demoCard: {
@@ -1080,6 +1096,8 @@ declare interface ClarifyingQuestionState {
1080
1096
  toggleOption: (optionId: string) => void;
1081
1097
  /** Confirm the current step's selection and advance (or submit on final step) */
1082
1098
  confirm: () => void;
1099
+ /** Skip the current step (only valid when the step is optional) */
1100
+ skip: () => void;
1083
1101
  /** Go back to the previous step */
1084
1102
  back: () => void;
1085
1103
  /** Set the custom answer text */
@@ -1740,14 +1758,22 @@ export declare const defaultTranslations: {
1740
1758
  readonly removeFile: "Remove";
1741
1759
  readonly fileUploadError: "Upload failed";
1742
1760
  readonly dropFilesHere: "Drop your files here";
1761
+ readonly reply: "Reply";
1762
+ readonly removeQuote: "Remove quote";
1743
1763
  readonly clarifyingQuestion: {
1744
1764
  readonly submit: "Submit";
1745
1765
  readonly next: "Next";
1746
1766
  readonly back: "Back";
1767
+ readonly skip: "Skip";
1747
1768
  readonly typeYourAnswer: "Type your answer…";
1748
1769
  readonly stepOf: "{{current}} of {{total}}";
1749
1770
  readonly custom: "own answer";
1750
1771
  readonly skipped: "skipped";
1772
+ readonly navHint: {
1773
+ readonly navigate: "navigate";
1774
+ readonly select: "select";
1775
+ readonly skip: "skip";
1776
+ };
1751
1777
  };
1752
1778
  readonly growth: {
1753
1779
  readonly demoCard: {
@@ -2907,6 +2933,17 @@ declare type PendingContext = {
2907
2933
  context: string;
2908
2934
  };
2909
2935
 
2936
+ /**
2937
+ * Quoted fragment the user is replying to. Shown as a chip above the
2938
+ * textarea and, on submit, rendered as a markdown blockquote at the top of
2939
+ * the resulting user message. The blockquote alone is enough context — the
2940
+ * conversation thread tells the agent what it refers to.
2941
+ */
2942
+ declare type PendingQuote = {
2943
+ /** Plain-text selection (markdown stripped by the browser's toString()). */
2944
+ text: string;
2945
+ };
2946
+
2910
2947
  declare type PersonAvatarVariant = Extract<AvatarVariant, {
2911
2948
  type: "person";
2912
2949
  }>;
@@ -3246,8 +3283,10 @@ declare module "@tiptap/core" {
3246
3283
 
3247
3284
  declare module "@tiptap/core" {
3248
3285
  interface Commands<ReturnType> {
3249
- transcript: {
3250
- insertTranscript: (data: TranscriptData) => ReturnType;
3286
+ videoEmbed: {
3287
+ setVideoEmbed: (options: {
3288
+ src: string;
3289
+ }) => ReturnType;
3251
3290
  };
3252
3291
  }
3253
3292
  }
@@ -3255,10 +3294,8 @@ declare module "@tiptap/core" {
3255
3294
 
3256
3295
  declare module "@tiptap/core" {
3257
3296
  interface Commands<ReturnType> {
3258
- videoEmbed: {
3259
- setVideoEmbed: (options: {
3260
- src: string;
3261
- }) => ReturnType;
3297
+ transcript: {
3298
+ insertTranscript: (data: TranscriptData) => ReturnType;
3262
3299
  };
3263
3300
  }
3264
3301
  }
package/dist/ai.js CHANGED
@@ -1,6 +1,6 @@
1
- import { l as t, k as e, F as r, a as o, C as i, b as n, m as F, n as u, d as A, I as c, g as C, c as m, h, e as l, u as d, j as I, i as f, f as T } from "./F0AiChat-Cq75OE5L.js";
1
+ import { l as t, k as e, F as r, a as o, C as i, b as n, m as F, n as u, d as A, I as c, g as C, c as m, h, e as l, u as d, j as I, i as f, f as T } from "./F0AiChat-DWjSV6Pc.js";
2
2
  import { defaultTranslations as S } from "./i18n-provider-defaults.js";
3
- import { A as v, e as x, F as P, c as V, d as k, b as O, a as b, f as y, o as M, u as j } from "./types-C_fX7qbj.js";
3
+ import { A as v, e as x, F as P, c as V, d as k, b as O, a as b, f as y, o as M, u as j } from "./types-B56SYlU9.js";
4
4
  export {
5
5
  v as AiChatTranslationsProvider,
6
6
  t as ChatSpinner,
@@ -3122,14 +3122,22 @@ declare const defaultTranslations: {
3122
3122
  readonly removeFile: "Remove";
3123
3123
  readonly fileUploadError: "Upload failed";
3124
3124
  readonly dropFilesHere: "Drop your files here";
3125
+ readonly reply: "Reply";
3126
+ readonly removeQuote: "Remove quote";
3125
3127
  readonly clarifyingQuestion: {
3126
3128
  readonly submit: "Submit";
3127
3129
  readonly next: "Next";
3128
3130
  readonly back: "Back";
3131
+ readonly skip: "Skip";
3129
3132
  readonly typeYourAnswer: "Type your answer…";
3130
3133
  readonly stepOf: "{{current}} of {{total}}";
3131
3134
  readonly custom: "own answer";
3132
3135
  readonly skipped: "skipped";
3136
+ readonly navHint: {
3137
+ readonly navigate: "navigate";
3138
+ readonly select: "select";
3139
+ readonly skip: "skip";
3140
+ };
3133
3141
  };
3134
3142
  readonly growth: {
3135
3143
  readonly demoCard: {
@@ -8052,8 +8060,10 @@ declare module "@tiptap/core" {
8052
8060
 
8053
8061
  declare module "@tiptap/core" {
8054
8062
  interface Commands<ReturnType> {
8055
- transcript: {
8056
- insertTranscript: (data: TranscriptData) => ReturnType;
8063
+ videoEmbed: {
8064
+ setVideoEmbed: (options: {
8065
+ src: string;
8066
+ }) => ReturnType;
8057
8067
  };
8058
8068
  }
8059
8069
  }
@@ -8061,10 +8071,8 @@ declare module "@tiptap/core" {
8061
8071
 
8062
8072
  declare module "@tiptap/core" {
8063
8073
  interface Commands<ReturnType> {
8064
- videoEmbed: {
8065
- setVideoEmbed: (options: {
8066
- src: string;
8067
- }) => ReturnType;
8074
+ transcript: {
8075
+ insertTranscript: (data: TranscriptData) => ReturnType;
8068
8076
  };
8069
8077
  }
8070
8078
  }
@@ -1,9 +1,9 @@
1
- import { a9 as oa, aa as ca, ab as da, ac as ua, ad as Ft, ae as Te, af as fa, ag as ht, ah as rt, ai as Be, O as b, W as Z, P as be, u as se, aj as ma, ak as ha, al as pa, am as ba, an as ga, a5 as oe, ao as xa, U as Ee, ap as va, aq as wa, ar as $, as as ya, at as Na, M as _e, au as ln, av as Ca, aw as ka, Q as B, ax as sn, a8 as E, ay as ge, az as Sa, aA as Ia, aB as Fa, aC as Aa, aD as La, aE as Ce, aF as on, aG as Ea, aH as xe, aI as $e, aJ as _a, aK as pt, n as cn, aL as Ne, aM as Oa, aN as dn, a6 as ne, aO as H, R as un, aP as fn, aQ as Ta, aR as mn, aS as me, a7 as ee, aT as Da, aU as za, aV as Pa, aW as Ra, X as pe, aX as Ge, aY as Ba, aZ as $a, a_ as Wa, a$ as Ma, b0 as He, b1 as hn, b2 as ja, b3 as Va, b4 as Ga, b5 as We, b6 as Ha, b7 as Ua, b8 as Ka, b9 as qa, ba as Ya, bb as Za, bc as Xa, bd as Ja, be as Qa, bf as er, bg as lt, bh as it, bi as pn, bj as tr, bk as nr, bl as bn, bm as ar, bn as rr, T as Ue, bo as bt, bp as gn, bq as lr, br as xn, bs as ir, bt as sr, bu as or, bv as Le, bw as cr, bx as De, by as At, bz as st, bA as dr, bB as ur, a as fr, c as mr, bC as hr, bD as vn, bE as pr, bF as br, F as gr, bG as wn, _ as xr, bH as yn, bI as vr, bJ as Lt, bK as wr, bL as yr, bM as Nr, bN as Cr, bO as Nn, bP as kr, bQ as Sr, bR as Ir, bS as Fr, bT as Ar, Y as Cn, bU as ue, bV as kn, bW as gt, bX as xt, bY as vt, bZ as Sn, b_ as wt, b$ as In, $ as Fn, c0 as Lr, c1 as Er, c2 as _r, c3 as Or, c4 as Tr, c5 as Dr, c6 as zr, c7 as Pr, c8 as Rr, c9 as Br, ca as $r, cb as Et, cc as _t, cd as Ot, ce as Wr, cf as Mr, cg as jr, ch as Vr, ci as An, cj as Gr, ck as Hr, cl as Ur } from "./F0AiChat-Cq75OE5L.js";
2
- import { cF as Ac, cE as Lc, co as Ec, cR as _c, cy as Oc, cz as Tc, cn as Dc, cB as zc, cp as Pc, d1 as Rc, c$ as Bc, cq as $c, cC as Wc, cD as Mc, cA as jc, cr as Vc, cN as Gc, cO as Hc, cS as Uc, cZ as Kc, c_ as qc, d0 as Yc, cx as Zc, cs as Xc, cH as Jc, cG as Qc, ct as ed, cu as td, cv as nd, cP as ad, d2 as rd, cm as ld, cQ as id, cU as sd, cV as od, cM as cd, cJ as dd, cL as ud, cI as fd, cw as md, cK as hd, cW as pd, cX as bd, cT as gd, cY as xd } from "./F0AiChat-Cq75OE5L.js";
1
+ import { a9 as oa, aa as ca, ab as da, ac as ua, ad as Ft, ae as Te, af as fa, ag as ht, ah as rt, ai as Be, O as b, W as Z, P as be, u as se, aj as ma, ak as ha, al as pa, am as ba, an as ga, a5 as oe, ao as xa, U as Ee, ap as va, aq as wa, ar as $, as as ya, at as Na, M as _e, au as ln, av as Ca, aw as ka, Q as B, ax as sn, a8 as E, ay as ge, az as Sa, aA as Ia, aB as Fa, aC as Aa, aD as La, aE as Ce, aF as on, aG as Ea, aH as xe, aI as $e, aJ as _a, aK as pt, n as cn, aL as Ne, aM as Oa, aN as dn, a6 as ne, aO as H, R as un, aP as fn, aQ as Ta, aR as mn, aS as me, a7 as ee, aT as Da, aU as za, aV as Pa, aW as Ra, X as pe, aX as Ge, aY as Ba, aZ as $a, a_ as Wa, a$ as Ma, b0 as He, b1 as hn, b2 as ja, b3 as Va, b4 as Ga, b5 as We, b6 as Ha, b7 as Ua, b8 as Ka, b9 as qa, ba as Ya, bb as Za, bc as Xa, bd as Ja, be as Qa, bf as er, bg as lt, bh as it, bi as pn, bj as tr, bk as nr, bl as bn, bm as ar, bn as rr, T as Ue, bo as bt, bp as gn, bq as lr, br as xn, bs as ir, bt as sr, bu as or, bv as Le, bw as cr, bx as De, by as At, bz as st, bA as dr, bB as ur, a as fr, c as mr, bC as hr, bD as vn, bE as pr, bF as br, F as gr, bG as wn, _ as xr, bH as yn, bI as vr, bJ as Lt, bK as wr, bL as yr, bM as Nr, bN as Cr, bO as Nn, bP as kr, bQ as Sr, bR as Ir, bS as Fr, bT as Ar, Y as Cn, bU as ue, bV as kn, bW as gt, bX as xt, bY as vt, bZ as Sn, b_ as wt, b$ as In, $ as Fn, c0 as Lr, c1 as Er, c2 as _r, c3 as Or, c4 as Tr, c5 as Dr, c6 as zr, c7 as Pr, c8 as Rr, c9 as Br, ca as $r, cb as Et, cc as _t, cd as Ot, ce as Wr, cf as Mr, cg as jr, ch as Vr, ci as An, cj as Gr, ck as Hr, cl as Ur } from "./F0AiChat-DWjSV6Pc.js";
2
+ import { cF as Ac, cE as Lc, co as Ec, cR as _c, cy as Oc, cz as Tc, cn as Dc, cB as zc, cp as Pc, d1 as Rc, c$ as Bc, cq as $c, cC as Wc, cD as Mc, cA as jc, cr as Vc, cN as Gc, cO as Hc, cS as Uc, cZ as Kc, c_ as qc, d0 as Yc, cx as Zc, cs as Xc, cH as Jc, cG as Qc, ct as ed, cu as td, cv as nd, cP as ad, d2 as rd, cm as ld, cQ as id, cU as sd, cV as od, cM as cd, cJ as dd, cL as ud, cI as fd, cw as md, cK as hd, cW as pd, cX as bd, cT as gd, cY as xd } from "./F0AiChat-DWjSV6Pc.js";
3
3
  import { jsx as e, jsxs as o, Fragment as U } from "react/jsx-runtime";
4
4
  import re, { forwardRef as j, useRef as V, useTransition as Kr, useState as _, useLayoutEffect as Ln, useContext as Ke, createContext as yt, useCallback as Q, useMemo as K, useEffect as W, useId as qr, Fragment as Yr, isValidElement as Zr, cloneElement as En, Children as _n } from "react";
5
- import { C as Xr, P as Jr, g as On, c as Qr, F as ot, f as el, a as tl, A as nl, B as al, L as rl, b as ll, V as il, d as sl, e as Tt, h as ol, i as cl } from "./index-B5WjgUhX.js";
6
- import { l as wd, m as yd, j as Nd, n as Cd, s as kd, D as Sd, k as Id, o as Fd, w as Ad, x as Ld, N as Ed, y as _d, p as Od, r as Td, R as Dd, u as zd, q as Pd, _ as Rd, v as Bd, t as $d } from "./index-B5WjgUhX.js";
5
+ import { C as Xr, P as Jr, g as On, c as Qr, F as ot, f as el, a as tl, A as nl, B as al, L as rl, b as ll, V as il, d as sl, e as Tt, h as ol, i as cl } from "./index-cVHXkm00.js";
6
+ import { l as wd, m as yd, j as Nd, n as Cd, s as kd, D as Sd, k as Id, o as Fd, w as Ad, x as Ld, N as Ed, y as _d, p as Od, r as Td, R as Dd, u as zd, q as Pd, _ as Rd, v as Bd, t as $d } from "./index-cVHXkm00.js";
7
7
  const dl = oa("Search", [
8
8
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
9
9
  ["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
package/dist/f0.d.ts CHANGED
@@ -697,6 +697,14 @@ declare type AiChatProviderReturnValue = {
697
697
  pendingContext: PendingContext | null;
698
698
  /** Set pending context (pass null to clear) */
699
699
  setPendingContext: React.Dispatch<React.SetStateAction<PendingContext | null>>;
700
+ /**
701
+ * Quoted fragment the user is replying to. Rendered as a chip above the
702
+ * textarea and, on submit, prepended as a markdown blockquote to the user's
703
+ * message (plus an invisible `<quote-context>` tag for the agent).
704
+ */
705
+ pendingQuote: PendingQuote | null;
706
+ /** Set the pending quote (pass null to clear). */
707
+ setPendingQuote: React.Dispatch<React.SetStateAction<PendingQuote | null>>;
700
708
  } & Pick<AiChatState, "greeting" | "agent" | "disclaimer" | "resizable" | "entityRefs" | "canvasActions" | "toolHints" | "credits" | "creditWarning" | "fileAttachments"> & {
701
709
  /** The current canvas content, or null when canvas is closed */
702
710
  canvasContent: CanvasContent | null;
@@ -938,14 +946,22 @@ export declare const aiTranslations: {
938
946
  readonly removeFile: "Remove";
939
947
  readonly fileUploadError: "Upload failed";
940
948
  readonly dropFilesHere: "Drop your files here";
949
+ readonly reply: "Reply";
950
+ readonly removeQuote: "Remove quote";
941
951
  readonly clarifyingQuestion: {
942
952
  readonly submit: "Submit";
943
953
  readonly next: "Next";
944
954
  readonly back: "Back";
955
+ readonly skip: "Skip";
945
956
  readonly typeYourAnswer: "Type your answer…";
946
957
  readonly stepOf: "{{current}} of {{total}}";
947
958
  readonly custom: "own answer";
948
959
  readonly skipped: "skipped";
960
+ readonly navHint: {
961
+ readonly navigate: "navigate";
962
+ readonly select: "select";
963
+ readonly skip: "skip";
964
+ };
949
965
  };
950
966
  readonly growth: {
951
967
  readonly demoCard: {
@@ -2647,6 +2663,8 @@ declare interface ClarifyingQuestionState {
2647
2663
  toggleOption: (optionId: string) => void;
2648
2664
  /** Confirm the current step's selection and advance (or submit on final step) */
2649
2665
  confirm: () => void;
2666
+ /** Skip the current step (only valid when the step is optional) */
2667
+ skip: () => void;
2650
2668
  /** Go back to the previous step */
2651
2669
  back: () => void;
2652
2670
  /** Set the custom answer text */
@@ -4210,14 +4228,22 @@ export declare const defaultTranslations: {
4210
4228
  readonly removeFile: "Remove";
4211
4229
  readonly fileUploadError: "Upload failed";
4212
4230
  readonly dropFilesHere: "Drop your files here";
4231
+ readonly reply: "Reply";
4232
+ readonly removeQuote: "Remove quote";
4213
4233
  readonly clarifyingQuestion: {
4214
4234
  readonly submit: "Submit";
4215
4235
  readonly next: "Next";
4216
4236
  readonly back: "Back";
4237
+ readonly skip: "Skip";
4217
4238
  readonly typeYourAnswer: "Type your answer…";
4218
4239
  readonly stepOf: "{{current}} of {{total}}";
4219
4240
  readonly custom: "own answer";
4220
4241
  readonly skipped: "skipped";
4242
+ readonly navHint: {
4243
+ readonly navigate: "navigate";
4244
+ readonly select: "select";
4245
+ readonly skip: "skip";
4246
+ };
4221
4247
  };
4222
4248
  readonly growth: {
4223
4249
  readonly demoCard: {
@@ -6849,6 +6875,10 @@ export declare interface F0FormDefinitionPerSection<T extends F0PerSectionSchema
6849
6875
  defaultValuesFn?: (params: Record<string, unknown>) => Promise<{
6850
6876
  [K in keyof T]?: Partial<z.infer<T[K]>>;
6851
6877
  }>;
6878
+ /** Pre-existing file metadata for file fields — resolved before the form renders */
6879
+ initialFiles?: InitialFile[];
6880
+ /** Whether async initialFiles are still being resolved */
6881
+ isLoadingInitialFiles?: boolean;
6852
6882
  /** Wizard steps — when present, F0WizardForm uses these instead of auto-deriving from sections */
6853
6883
  steps?: F0WizardFormStep[];
6854
6884
  }
@@ -6872,6 +6902,10 @@ export declare interface F0FormDefinitionSingleSchema<TSchema extends F0FormSche
6872
6902
  defaultValuesParamsSchema?: ZodType;
6873
6903
  /** Raw defaultValues function for AI registry use when params are involved */
6874
6904
  defaultValuesFn?: (params: Record<string, unknown>) => Promise<Partial<z.infer<TSchema>>>;
6905
+ /** Pre-existing file metadata for file fields — resolved before the form renders */
6906
+ initialFiles?: InitialFile[];
6907
+ /** Whether async initialFiles are still being resolved */
6908
+ isLoadingInitialFiles?: boolean;
6875
6909
  /** Wizard steps — when present, F0WizardForm uses these instead of auto-deriving from sections */
6876
6910
  steps?: F0WizardFormStep[];
6877
6911
  }
@@ -7115,6 +7149,11 @@ export declare interface F0FormPropsWithPerSectionSchema<T extends F0PerSectionS
7115
7149
  * `defaultValues` against `InitialFile.value`.
7116
7150
  */
7117
7151
  initialFiles?: InitialFile[];
7152
+ /**
7153
+ * Whether async `initialFiles` are still being resolved.
7154
+ * When true, file fields show a skeleton until the files arrive.
7155
+ */
7156
+ isLoadingInitialFiles?: boolean;
7118
7157
  /**
7119
7158
  * Upload hook shared by all file fields in the form.
7120
7159
  */
@@ -7178,6 +7217,11 @@ export declare interface F0FormPropsWithSingleSchema<TSchema extends F0FormSchem
7178
7217
  * `defaultValues` against `InitialFile.value`.
7179
7218
  */
7180
7219
  initialFiles?: InitialFile[];
7220
+ /**
7221
+ * Whether async `initialFiles` are still being resolved.
7222
+ * When true, file fields show a skeleton until the files arrive.
7223
+ */
7224
+ isLoadingInitialFiles?: boolean;
7181
7225
  /**
7182
7226
  * Upload hook shared by all file fields in the form.
7183
7227
  * Called once per file to obtain an independent upload instance.
@@ -10575,6 +10619,17 @@ declare type PendingContext = {
10575
10619
  context: string;
10576
10620
  };
10577
10621
 
10622
+ /**
10623
+ * Quoted fragment the user is replying to. Shown as a chip above the
10624
+ * textarea and, on submit, rendered as a markdown blockquote at the top of
10625
+ * the resulting user message. The blockquote alone is enough context — the
10626
+ * conversation thread tells the agent what it refers to.
10627
+ */
10628
+ declare type PendingQuote = {
10629
+ /** Plain-text selection (markdown stripped by the browser's toString()). */
10630
+ text: string;
10631
+ };
10632
+
10578
10633
  /**
10579
10634
  * Creates a union of `[sectionId, data]` pairs for each key in T.
10580
10635
  * Used to build a callback where TypeScript narrows `data` based on `sectionId`.
@@ -12740,6 +12795,12 @@ declare interface UseF0FormDefinitionPerSectionInputBase<T extends F0PerSectionS
12740
12795
  onSubmit: (arg: F0WizardFormPerSectionSubmitArg<T>) => Promise<F0FormSubmitResult> | F0FormSubmitResult;
12741
12796
  submitConfig?: F0PerSectionSubmitConfig;
12742
12797
  errorTriggerMode?: F0FormErrorTriggerMode;
12798
+ /**
12799
+ * Pre-existing file metadata for file fields.
12800
+ * Accepts a static array or an async function `(signal: AbortSignal) => Promise<InitialFile[]>`
12801
+ * that resolves the list at mount time.
12802
+ */
12803
+ initialFiles?: AsyncOrSync<InitialFile[]>;
12743
12804
  /** Wizard steps — when present, F0WizardForm uses these instead of auto-deriving from sections */
12744
12805
  steps?: F0WizardFormStep[];
12745
12806
  }
@@ -12774,6 +12835,12 @@ declare interface UseF0FormDefinitionSingleSchemaInputBase<TSchema extends F0For
12774
12835
  onSubmit: (arg: F0WizardFormSingleSubmitArg<TSchema>) => Promise<F0FormSubmitResult> | F0FormSubmitResult;
12775
12836
  submitConfig?: F0FormSubmitConfig;
12776
12837
  errorTriggerMode?: F0FormErrorTriggerMode;
12838
+ /**
12839
+ * Pre-existing file metadata for file fields.
12840
+ * Accepts a static array or an async function `(signal: AbortSignal) => Promise<InitialFile[]>`
12841
+ * that resolves the list at mount time.
12842
+ */
12843
+ initialFiles?: AsyncOrSync<InitialFile[]>;
12777
12844
  /** Wizard steps — when present, F0WizardForm uses these instead of auto-deriving from sections */
12778
12845
  steps?: F0WizardFormStep[];
12779
12846
  }
@@ -13317,8 +13384,10 @@ declare module "@tiptap/core" {
13317
13384
 
13318
13385
  declare module "@tiptap/core" {
13319
13386
  interface Commands<ReturnType> {
13320
- transcript: {
13321
- insertTranscript: (data: TranscriptData) => ReturnType;
13387
+ videoEmbed: {
13388
+ setVideoEmbed: (options: {
13389
+ src: string;
13390
+ }) => ReturnType;
13322
13391
  };
13323
13392
  }
13324
13393
  }
@@ -13326,10 +13395,8 @@ declare module "@tiptap/core" {
13326
13395
 
13327
13396
  declare module "@tiptap/core" {
13328
13397
  interface Commands<ReturnType> {
13329
- videoEmbed: {
13330
- setVideoEmbed: (options: {
13331
- src: string;
13332
- }) => ReturnType;
13398
+ transcript: {
13399
+ insertTranscript: (data: TranscriptData) => ReturnType;
13333
13400
  };
13334
13401
  }
13335
13402
  }
package/dist/f0.js CHANGED
@@ -1,12 +1,12 @@
1
- import { fy as Or, a6 as se, bU as Tn, O as P, P as ht, fz as Mr, W as yt, dG as zo, aS as Yi, fA as Io, a7 as zr, a8 as de, u as oe, ar as he, fp as Ut, U as Bo, ac as Po, M as Ir, fB as un, aO as Oe, aL as hi, fC as Ho, fD as Wo, fE as qo, fF as Ji, a0 as Go, fG as $o, fH as Br, fI as jo, bd as fi, be as mi, a5 as Fn, bf as gi, aX as Pr, cR as hn, fJ as Hr, fK as Uo, eg as Vo, fL as Zi, ef as Qo, fM as Ko, fN as wt, fO as Vt, fP as Xo, fQ as Wr, fR as Yo, fS as Jo, fT as An, fU as Zo, fV as ea, R as We, b0 as ta, d4 as si, d3 as qr, fW as na, fX as pi, cn as ia, fY as ra, fZ as Gr, f_ as Ln, f$ as sa, g0 as oa, aI as vi, Q as Ce, aJ as aa, aK as fn, ce as la, g1 as ca, aR as On, g2 as $r, g3 as da, g4 as ua, g5 as ha, g6 as fa, cB as ma, m as ga, dq as pa, aq as jr, f4 as ft, g7 as Ur, f2 as Vr, g8 as mn, g9 as Qr, ch as Kr, ga as Xr, as as bi, at as yi, gb as xi, aw as wi, aB as De, gc as Ci, aD as xt, gd as At, ge as Lt, av as Ot, gf as Mt, gg as va, gh as Zt, gi as Yr, gj as gn, bM as Pt, gk as _e, cs as ba, gl as Jr, gm as ya, gn as pn, cr as xa, cq as wa, go as Ca, gp as Sa, bO as Mn, aE as zn, gq as Zr, bJ as Si, bP as Ei, bc as Ea, gr as Ae, gs as Na, gt as _a, gu as es, gv as In, gw as Da, gx as Ra, cj as ts, gy as ka, gz as Ta, gA as Fa, gB as Aa, bp as ns, bv as La, fs as Oa, ft as Ma, fv as za, gC as is, bW as Ia, b_ as Ba, gD as er, c5 as Pa, gE as rs, gF as Ha, gG as Wa } from "./F0AiChat-Cq75OE5L.js";
2
- import { hk as Lf, gL as Of, co as Mf, l as zf, hy as If, bo as Bf, k as Pf, F as Hf, a as Wf, C as qf, hb as Gf, b as $f, gY as jf, bN as Uf, c7 as Vf, _ as Qf, c8 as Kf, gI as Xf, bh as Yf, Y as Jf, X as Zf, Z as em, b3 as tm, gS as nm, gW as im, gJ as rm, gX as sm, gZ as om, g$ as am, hD as lm, bx as cm, n as dm, hv as um, b5 as hm, $ as fm, hf as mm, bB as gm, hg as pm, hi as vm, hj as bm, d1 as ym, c$ as xm, d as wm, gM as Cm, hl as Sm, gN as Em, gO as Nm, gP as _m, cN as Dm, cO as Rm, gH as km, gQ as Tm, hC as Fm, gR as Am, bu as Lm, d0 as Om, hh as Mm, cP as zm, cm as Im, hE as Bm, gT as Pm, gU as Hm, gV as Wm, gK as qm, cQ as Gm, hx as $m, hq as jm, hd as Um, h4 as Vm, h3 as Qm, h2 as Km, ha as Xm, ht as Ym, g as Jm, hp as Zm, bs as eg, cM as tg, cJ as ng, cL as ig, h9 as rg, cI as sg, h5 as og, ho as ag, hn as lg, h6 as cg, cw as dg, cK as ug, h0 as hg, h1 as fg, h7 as mg, c as gg, hm as pg, hr as vg, h as bg, hz as yg, hA as xg, hB as wg, bq as Cg, hc as Sg, g_ as Eg, he as Ng, e as _g, hw as Dg, hs as Rg, j as kg, i as Tg, bV as Fg, T as Ag, h8 as Lg, hu as Og, f as Mg, hF as zg } from "./F0AiChat-Cq75OE5L.js";
1
+ import { fy as Or, a6 as se, bU as Tn, O as P, P as ht, fz as Mr, W as yt, dG as zo, aS as Yi, fA as Io, a7 as zr, a8 as de, u as oe, ar as he, fp as Ut, U as Bo, ac as Po, M as Ir, fB as un, aO as Oe, aL as hi, fC as Ho, fD as Wo, fE as qo, fF as Ji, a0 as Go, fG as $o, fH as Br, fI as jo, bd as fi, be as mi, a5 as Fn, bf as gi, aX as Pr, cR as hn, fJ as Hr, fK as Uo, eg as Vo, fL as Zi, ef as Qo, fM as Ko, fN as wt, fO as Vt, fP as Xo, fQ as Wr, fR as Yo, fS as Jo, fT as An, fU as Zo, fV as ea, R as We, b0 as ta, d4 as si, d3 as qr, fW as na, fX as pi, cn as ia, fY as ra, fZ as Gr, f_ as Ln, f$ as sa, g0 as oa, aI as vi, Q as Ce, aJ as aa, aK as fn, ce as la, g1 as ca, aR as On, g2 as $r, g3 as da, g4 as ua, g5 as ha, g6 as fa, cB as ma, m as ga, dq as pa, aq as jr, f4 as ft, g7 as Ur, f2 as Vr, g8 as mn, g9 as Qr, ch as Kr, ga as Xr, as as bi, at as yi, gb as xi, aw as wi, aB as De, gc as Ci, aD as xt, gd as At, ge as Lt, av as Ot, gf as Mt, gg as va, gh as Zt, gi as Yr, gj as gn, bM as Pt, gk as _e, cs as ba, gl as Jr, gm as ya, gn as pn, cr as xa, cq as wa, go as Ca, gp as Sa, bO as Mn, aE as zn, gq as Zr, bJ as Si, bP as Ei, bc as Ea, gr as Ae, gs as Na, gt as _a, gu as es, gv as In, gw as Da, gx as Ra, cj as ts, gy as ka, gz as Ta, gA as Fa, gB as Aa, bp as ns, bv as La, fs as Oa, ft as Ma, fv as za, gC as is, bW as Ia, b_ as Ba, gD as er, c5 as Pa, gE as rs, gF as Ha, gG as Wa } from "./F0AiChat-DWjSV6Pc.js";
2
+ import { hk as Lf, gL as Of, co as Mf, l as zf, hy as If, bo as Bf, k as Pf, F as Hf, a as Wf, C as qf, hb as Gf, b as $f, gY as jf, bN as Uf, c7 as Vf, _ as Qf, c8 as Kf, gI as Xf, bh as Yf, Y as Jf, X as Zf, Z as em, b3 as tm, gS as nm, gW as im, gJ as rm, gX as sm, gZ as om, g$ as am, hD as lm, bx as cm, n as dm, hv as um, b5 as hm, $ as fm, hf as mm, bB as gm, hg as pm, hi as vm, hj as bm, d1 as ym, c$ as xm, d as wm, gM as Cm, hl as Sm, gN as Em, gO as Nm, gP as _m, cN as Dm, cO as Rm, gH as km, gQ as Tm, hC as Fm, gR as Am, bu as Lm, d0 as Om, hh as Mm, cP as zm, cm as Im, hE as Bm, gT as Pm, gU as Hm, gV as Wm, gK as qm, cQ as Gm, hx as $m, hq as jm, hd as Um, h4 as Vm, h3 as Qm, h2 as Km, ha as Xm, ht as Ym, g as Jm, hp as Zm, bs as eg, cM as tg, cJ as ng, cL as ig, h9 as rg, cI as sg, h5 as og, ho as ag, hn as lg, h6 as cg, cw as dg, cK as ug, h0 as hg, h1 as fg, h7 as mg, c as gg, hm as pg, hr as vg, h as bg, hz as yg, hA as xg, hB as wg, bq as Cg, hc as Sg, g_ as Eg, he as Ng, e as _g, hw as Dg, hs as Rg, j as kg, i as Tg, bV as Fg, T as Ag, h8 as Lg, hu as Og, f as Mg, hF as zg } from "./F0AiChat-DWjSV6Pc.js";
3
3
  import { jsx as l, jsxs as C, Fragment as we } from "react/jsx-runtime";
4
4
  import ae, { forwardRef as qe, useRef as W, useImperativeHandle as qa, Children as vn, createContext as Qe, useContext as Re, useState as j, useMemo as B, useEffect as V, useCallback as I, useLayoutEffect as oi, createElement as en, isValidElement as ss, Fragment as Ga, memo as os, useReducer as $a, cloneElement as ja, useId as as } from "react";
5
- import { g as Ua, h as Va } from "./types-C_fX7qbj.js";
6
- import { A as Bg, e as Pg, F as Hg, c as Wg, d as qg, b as Gg, a as $g, f as jg, o as Ug, u as Vg } from "./types-C_fX7qbj.js";
5
+ import { g as Ua, h as Va } from "./types-B56SYlU9.js";
6
+ import { A as Bg, e as Pg, F as Hg, c as Wg, d as qg, b as Gg, a as $g, f as jg, o as Ug, u as Vg } from "./types-B56SYlU9.js";
7
7
  import { createPortal as ls, unstable_batchedUpdates as tn } from "react-dom";
8
- import { C as Qa, M as Ni, D as Ka, z as Xa, u as cs, j as Ya } from "./index-B5WjgUhX.js";
9
- import { l as Kg, m as Xg, n as Yg, s as Jg, F as Zg, o as ep, w as tp, x as np, N as ip, y as rp, p as sp, P as op, r as ap, R as lp, q as cp, _ as dp, v as up, t as hp } from "./index-B5WjgUhX.js";
8
+ import { C as Qa, M as Ni, D as Ka, z as Xa, u as cs, j as Ya } from "./index-cVHXkm00.js";
9
+ import { l as Kg, m as Xg, n as Yg, s as Jg, F as Zg, o as ep, w as tp, x as np, N as ip, y as rp, p as sp, P as op, r as ap, R as lp, q as cp, _ as dp, v as up, t as hp } from "./index-cVHXkm00.js";
10
10
  import { defaultTranslations as mp } from "./i18n-provider-defaults.js";
11
11
  import './f0.css';const Ja = {
12
12
  xs: 1,
@@ -478,14 +478,22 @@ export declare const defaultTranslations: {
478
478
  readonly removeFile: "Remove";
479
479
  readonly fileUploadError: "Upload failed";
480
480
  readonly dropFilesHere: "Drop your files here";
481
+ readonly reply: "Reply";
482
+ readonly removeQuote: "Remove quote";
481
483
  readonly clarifyingQuestion: {
482
484
  readonly submit: "Submit";
483
485
  readonly next: "Next";
484
486
  readonly back: "Back";
487
+ readonly skip: "Skip";
485
488
  readonly typeYourAnswer: "Type your answer…";
486
489
  readonly stepOf: "{{current}} of {{total}}";
487
490
  readonly custom: "own answer";
488
491
  readonly skipped: "skipped";
492
+ readonly navHint: {
493
+ readonly navigate: "navigate";
494
+ readonly select: "select";
495
+ readonly skip: "skip";
496
+ };
489
497
  };
490
498
  readonly growth: {
491
499
  readonly demoCard: {
@@ -827,8 +835,10 @@ declare module "@tiptap/core" {
827
835
 
828
836
  declare module "@tiptap/core" {
829
837
  interface Commands<ReturnType> {
830
- transcript: {
831
- insertTranscript: (data: TranscriptData) => ReturnType;
838
+ videoEmbed: {
839
+ setVideoEmbed: (options: {
840
+ src: string;
841
+ }) => ReturnType;
832
842
  };
833
843
  }
834
844
  }
@@ -836,10 +846,8 @@ declare module "@tiptap/core" {
836
846
 
837
847
  declare module "@tiptap/core" {
838
848
  interface Commands<ReturnType> {
839
- videoEmbed: {
840
- setVideoEmbed: (options: {
841
- src: string;
842
- }) => ReturnType;
849
+ transcript: {
850
+ insertTranscript: (data: TranscriptData) => ReturnType;
843
851
  };
844
852
  }
845
853
  }
@@ -478,14 +478,22 @@ const e = {
478
478
  removeFile: "Remove",
479
479
  fileUploadError: "Upload failed",
480
480
  dropFilesHere: "Drop your files here",
481
+ reply: "Reply",
482
+ removeQuote: "Remove quote",
481
483
  clarifyingQuestion: {
482
484
  submit: "Submit",
483
485
  next: "Next",
484
486
  back: "Back",
487
+ skip: "Skip",
485
488
  typeYourAnswer: "Type your answer…",
486
489
  stepOf: "{{current}} of {{total}}",
487
490
  custom: "own answer",
488
- skipped: "skipped"
491
+ skipped: "skipped",
492
+ navHint: {
493
+ navigate: "navigate",
494
+ select: "select",
495
+ skip: "skip"
496
+ }
489
497
  },
490
498
  growth: {
491
499
  demoCard: {
@@ -1,7 +1,7 @@
1
1
  import { jsxs as x, jsx as m, Fragment as Bt } from "react/jsx-runtime";
2
2
  import * as K from "react";
3
3
  import C, { useRef as ot, useState as ae, useCallback as Ye, useEffect as Ze, useLayoutEffect as Ac, PureComponent as Kn, useMemo as $s, forwardRef as Pt, useId as Cc, useImperativeHandle as Ec, memo as Sf, Fragment as Ra } from "react";
4
- import { M as Pn, aG as kf, O as z, ax as Af, d3 as Cf, d4 as Ef, P as js, a6 as Re, aO as Gi, d5 as An, d6 as Of, d7 as _f, d8 as Nf, d9 as $a, da as ja, db as Fa, dc as za, dd as Ba, de as Oc, df as ui, dg as Tf, dh as Pf, di as Df, aW as Dn, dj as _e, dk as U, dl as Me, dm as _c, dn as Mf, dp as Nc, dq as Fs, dr as Lf, ds as ye, dt as Yi, du as oe, dv as Tc, dw as qi, dx as zs, dy as Bs, dz as Vs, dA as pe, dB as Pe, dC as Go, dD as Xi, dE as If, dF as Oe, dG as Ji, dH as Te, dI as pn, dJ as Hs, dK as Zi, dL as di, dM as Qi, c9 as Ws, dN as Rf, dO as Qr, dP as ki, dQ as $f, dR as jf, dS as Ff, dT as zf, dU as Bf, dV as Vf, dW as Pc, dX as Dc, dY as Mc, dZ as Lc, d_ as Ic, d$ as Hf, e0 as Ai, e1 as Wf, e2 as Uf, e3 as $r, e4 as Kt, a3 as Ot, e5 as Us, e6 as jr, e7 as Rc, a4 as $c, e8 as Kf, e9 as Gf, a1 as Yf, ea as qf, bV as Xf, a2 as Jf, eb as fe, ec as we, aj as Zf, ak as Qf, al as eh, ao as th, ed as jc, ee as nh, ef as Fc, bU as Dt, ar as _t, bp as rh, Q, aE as Ks, eg as ih, cI as Ce, eh as et, ei as gt, ej as $e, ek as oh, el as fi, em as rt, en as zc, eo as qe, ep as Gs, eq as Qe, er as Va, es as sh, et as Bc, eu as be, ev as Ve, ew as vr, ex as Ci, ey as Vc, ez as ah, eA as mn, eB as lh, eC as ch, eD as uh, a8 as j, aS as Hc, bu as dh, a7 as Wc, eE as Fr, eF as zr, eG as Ys, eH as fh, eI as Uc, eJ as Kc, eK as Gc, eL as hh, eM as Yc, eN as qc, eO as Xc, eP as Jc, eQ as Zc, eR as Qc, eS as ph, eT as mh, u as gn, aN as gh, bM as eo, U as eu, W as tn, bo as yh, b7 as bh, br as vh, eU as wh, eV as xh, eW as Sh, eX as kh, eY as Ah, eZ as Ch, aJ as tu, aK as qs, aL as to, e_ as Ha, e$ as Eh, f0 as Oh, f1 as _h, f2 as Nh, f3 as Th, f4 as Ph, f5 as Dh, f6 as Mh, f7 as Lh, f8 as Ih, f9 as Rh, fa as $h, fb as jh, fc as Fh, fd as zh, fe as Bh, ff as Vh, X as Hh, aC as Wh, aQ as Uh, bB as Kh, bv as Wa, Y as Gh, aI as Yh, bN as nu, aH as Ua, b$ as qh, cA as ru, fg as Xh, fh as Jh, fi as Zh, fj as Qh, fk as ep, fl as tp, fm as np, b3 as Yo, aX as iu, fn as rp, c7 as ou, fo as ip, b2 as op, fp as sp, fq as ap, fr as lp, fs as cp, ft as up, fu as dp, fv as fp, fw as hp, fx as pp, c6 as Ka } from "./F0AiChat-Cq75OE5L.js";
4
+ import { M as Pn, aG as kf, O as z, ax as Af, d3 as Cf, d4 as Ef, P as js, a6 as Re, aO as Gi, d5 as An, d6 as Of, d7 as _f, d8 as Nf, d9 as $a, da as ja, db as Fa, dc as za, dd as Ba, de as Oc, df as ui, dg as Tf, dh as Pf, di as Df, aW as Dn, dj as _e, dk as U, dl as Me, dm as _c, dn as Mf, dp as Nc, dq as Fs, dr as Lf, ds as ye, dt as Yi, du as oe, dv as Tc, dw as qi, dx as zs, dy as Bs, dz as Vs, dA as pe, dB as Pe, dC as Go, dD as Xi, dE as If, dF as Oe, dG as Ji, dH as Te, dI as pn, dJ as Hs, dK as Zi, dL as di, dM as Qi, c9 as Ws, dN as Rf, dO as Qr, dP as ki, dQ as $f, dR as jf, dS as Ff, dT as zf, dU as Bf, dV as Vf, dW as Pc, dX as Dc, dY as Mc, dZ as Lc, d_ as Ic, d$ as Hf, e0 as Ai, e1 as Wf, e2 as Uf, e3 as $r, e4 as Kt, a3 as Ot, e5 as Us, e6 as jr, e7 as Rc, a4 as $c, e8 as Kf, e9 as Gf, a1 as Yf, ea as qf, bV as Xf, a2 as Jf, eb as fe, ec as we, aj as Zf, ak as Qf, al as eh, ao as th, ed as jc, ee as nh, ef as Fc, bU as Dt, ar as _t, bp as rh, Q, aE as Ks, eg as ih, cI as Ce, eh as et, ei as gt, ej as $e, ek as oh, el as fi, em as rt, en as zc, eo as qe, ep as Gs, eq as Qe, er as Va, es as sh, et as Bc, eu as be, ev as Ve, ew as vr, ex as Ci, ey as Vc, ez as ah, eA as mn, eB as lh, eC as ch, eD as uh, a8 as j, aS as Hc, bu as dh, a7 as Wc, eE as Fr, eF as zr, eG as Ys, eH as fh, eI as Uc, eJ as Kc, eK as Gc, eL as hh, eM as Yc, eN as qc, eO as Xc, eP as Jc, eQ as Zc, eR as Qc, eS as ph, eT as mh, u as gn, aN as gh, bM as eo, U as eu, W as tn, bo as yh, b7 as bh, br as vh, eU as wh, eV as xh, eW as Sh, eX as kh, eY as Ah, eZ as Ch, aJ as tu, aK as qs, aL as to, e_ as Ha, e$ as Eh, f0 as Oh, f1 as _h, f2 as Nh, f3 as Th, f4 as Ph, f5 as Dh, f6 as Mh, f7 as Lh, f8 as Ih, f9 as Rh, fa as $h, fb as jh, fc as Fh, fd as zh, fe as Bh, ff as Vh, X as Hh, aC as Wh, aQ as Uh, bB as Kh, bv as Wa, Y as Gh, aI as Yh, bN as nu, aH as Ua, b$ as qh, cA as ru, fg as Xh, fh as Jh, fi as Zh, fj as Qh, fk as ep, fl as tp, fm as np, b3 as Yo, aX as iu, fn as rp, c7 as ou, fo as ip, b2 as op, fp as sp, fq as ap, fr as lp, fs as cp, ft as up, fu as dp, fv as fp, fw as hp, fx as pp, c6 as Ka } from "./F0AiChat-DWjSV6Pc.js";
5
5
  import './index.css';const mp = {
6
6
  active: !0,
7
7
  breakpoints: {},