@factorialco/f0-react 3.8.0 → 3.8.3

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
@@ -3368,10 +3368,6 @@ declare interface F0CardRowProps {
3368
3368
  * with the matching `status` tag at the call site.
3369
3369
  */
3370
3370
  inactive?: boolean;
3371
- /**
3372
- * Compact layout: tighter padding and smaller controls.
3373
- */
3374
- compact?: boolean;
3375
3371
  /**
3376
3372
  * Container width at which the actions drop to their own line (below it) vs.
3377
3373
  * sit inline (at/above it). `never` keeps them inline at every width.
package/dist/ai.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { C as e, D as r, c as t, F as o, a as i, f as n, g as F, d as C, e as A, I as l, P as d, b as u, u as m } from "./F0CanvasPanel-DUO4iIQa.js";
2
2
  import { defaultTranslations as c } from "./i18n-provider-defaults.js";
3
- import { A as P, s as v, t as f, w as g, l as p, i as T, q as y, x as S, p as x, r as H, j as V, e as b, g as k, k as w, F as M, h as O, a as D, n as j, m as q, o as z, b as B, f as E, v as L, c as R, d as G, u as J } from "./useChatHistory-CwVDNwKK.js";
3
+ import { A as P, s as v, t as f, w as g, l as p, i as T, q as y, x as S, p as x, r as H, j as V, e as b, g as k, k as w, F as M, h as O, a as D, n as j, m as q, o as z, b as B, f as E, v as L, c as R, d as G, u as J } from "./useChatHistory-CiI4OwLF.js";
4
4
  export {
5
5
  P as AiChatTranslationsProvider,
6
6
  e as ChatSpinner,
package/dist/f0.d.ts CHANGED
@@ -7292,9 +7292,7 @@ export declare type F0CardProps = Omit<CardInternalProps, (typeof privateProps_3
7292
7292
  * @experimental This is an experimental component, use it at your own risk.
7293
7293
  */
7294
7294
  export declare const F0CardRow: WithDataTestIdReturnType_3<ForwardRefExoticComponent<F0CardRowProps & RefAttributes<HTMLDivElement>> & {
7295
- Skeleton: ({ compact }: {
7296
- compact?: boolean;
7297
- }) => JSX_2.Element;
7295
+ Skeleton: () => JSX_2.Element;
7298
7296
  }>;
7299
7297
 
7300
7298
  export declare interface F0CardRowProps {
@@ -7348,10 +7346,6 @@ export declare interface F0CardRowProps {
7348
7346
  * with the matching `status` tag at the call site.
7349
7347
  */
7350
7348
  inactive?: boolean;
7351
- /**
7352
- * Compact layout: tighter padding and smaller controls.
7353
- */
7354
- compact?: boolean;
7355
7349
  /**
7356
7350
  * Container width at which the actions drop to their own line (below it) vs.
7357
7351
  * sit inline (at/above it). `never` keeps them inline at every width.
@@ -14348,6 +14342,28 @@ export declare type RowSpanToken = "1" | "2" | "3" | "4" | "5" | "6" | "full";
14348
14342
  /** Grid row count (1–6 + none) */
14349
14343
  export declare type RowsToken = "1" | "2" | "3" | "4" | "5" | "6" | "none";
14350
14344
 
14345
+ /** A mocked single-choice question. */
14346
+ declare type SampleChoiceQuestion = {
14347
+ type: "choice";
14348
+ /** The question prompt shown above the options */
14349
+ question: string;
14350
+ /** The answer options, rendered as non-interactive radio rows */
14351
+ options: string[];
14352
+ };
14353
+
14354
+ /** A mocked rating-scale question (e.g. Very low → Very high). */
14355
+ declare type SampleRatingQuestion = {
14356
+ type: "rating";
14357
+ /** The question prompt shown above the scale */
14358
+ question: string;
14359
+ /** Number of rating steps to render (default 5) */
14360
+ steps?: number;
14361
+ /** Caption under the lowest step */
14362
+ minLabel?: string;
14363
+ /** Caption under the highest step */
14364
+ maxLabel?: string;
14365
+ };
14366
+
14351
14367
  export declare type SearchFilterDefinition = BaseFilterDefinition<"search">;
14352
14368
 
14353
14369
  declare type SearchOptions = {
@@ -14851,6 +14867,16 @@ export declare type SurveyFormSubmitResult = {
14851
14867
  errors?: Record<string, string>;
14852
14868
  };
14853
14869
 
14870
+ /**
14871
+ * A non-interactive preview of a survey question, used to illustrate what a
14872
+ * given survey type produces (for example inside the survey type selector).
14873
+ * It is purely presentational — the inputs are mocked placeholders, not real
14874
+ * form fields.
14875
+ */
14876
+ export declare function SurveySampleQuestion(props: SurveySampleQuestionProps): JSX_2.Element;
14877
+
14878
+ export declare type SurveySampleQuestionProps = SampleRatingQuestion | SampleChoiceQuestion;
14879
+
14854
14880
  export declare function SurveySteppedLoadingSkeleton(): JSX_2.Element;
14855
14881
 
14856
14882
  export declare type SurveySubmitAnswers = Record<string, string | number | boolean | string[] | Date | null>;