@factorialco/f0-react 1.396.0 → 1.398.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,6 +1,6 @@
1
1
  import { jsx as q, jsxs as le } from "react/jsx-runtime";
2
2
  import { useInsertionEffect as ze, createContext as Xe, useContext as Ye, useRef as B, useEffect as ie, useState as Ue, useCallback as $e, useMemo as qe } from "react";
3
- import { G as He, J as Ke, K as je, M as Qe, N as Me, Q as Je, R as Ze, V as et, W as tt, X as nt, Y as Ne, Z as rt, _ as ot, $ as it, a0 as st, a1 as at, a2 as ct, a3 as ut, a4 as se, a5 as lt, a6 as ft, a7 as ht, a8 as dt, a9 as mt, aa as pt, ab as fe, ac as gt } from "./F0AiChat-sQnVZIig.js";
3
+ import { G as He, J as Ke, K as je, M as Qe, N as Me, Q as Je, R as Ze, V as et, W as tt, X as nt, Y as Ne, Z as rt, _ as ot, $ as it, a0 as st, a1 as at, a2 as ct, a3 as ut, a4 as se, a5 as lt, a6 as ft, a7 as ht, a8 as dt, a9 as mt, aa as pt, ab as fe, ac as gt } from "./F0AiChat-CiwHSzAS.js";
4
4
  import { useTrackVolume as vt } from "@livekit/components-react";
5
5
  function wt(t, e, n) {
6
6
  ze(() => t.on(e, n), [t, e, n]);
package/dist/ai.d.ts CHANGED
@@ -725,7 +725,7 @@ export declare const defaultTranslations: {
725
725
  readonly dismiss: "Dismiss";
726
726
  };
727
727
  };
728
- readonly coCreationForm: {
728
+ readonly surveyFormBuilder: {
729
729
  readonly actions: {
730
730
  readonly actions: "Actions";
731
731
  readonly duplicateQuestion: "Duplicate question";
@@ -757,7 +757,11 @@ export declare const defaultTranslations: {
757
757
  };
758
758
  readonly answer: {
759
759
  readonly label: "Answer";
760
- readonly placeholder: "Respondent's answer";
760
+ readonly dropdownPlaceholder: "Pick an option";
761
+ readonly textPlaceholder: "Type your answer";
762
+ readonly numericPlaceholder: "Enter a number";
763
+ readonly linkPlaceholder: "https://example.com";
764
+ readonly invalidUrl: "Enter a valid URL";
761
765
  };
762
766
  readonly labels: {
763
767
  readonly applyingChanges: "Applying changes";
@@ -776,6 +780,16 @@ export declare const defaultTranslations: {
776
780
  readonly lastQuestionDialogDescription: "Moving this question will leave the section empty and it will be removed. Do you want to continue?";
777
781
  };
778
782
  };
783
+ readonly surveyAnsweringForm: {
784
+ readonly actions: {
785
+ readonly submit: "Submit survey";
786
+ readonly cancel: "Cancel";
787
+ readonly next: "Next";
788
+ readonly previous: "Previous";
789
+ readonly expand: "Expand";
790
+ readonly collapse: "Collapse";
791
+ };
792
+ };
779
793
  readonly richTextEditor: {
780
794
  readonly bold: "Bold";
781
795
  readonly italic: "Italic";
package/dist/ai.js CHANGED
@@ -1,6 +1,6 @@
1
- import { A as e, B as t, C as i, q as n, E as o, h as r, F as l, a as A, D as c, i as F, b as u, j as h, w as C, x as d, y as m, z as T, c as f, r as S, s as p, t as I, H as g, I as k, m as x, L as H, O as M, v as P, P as b, S as w, T as O, n as v, o as D, p as E, U as L, k as R, l as q, d as y, e as z, u as B, g as U, f as j } from "./F0AiChat-sQnVZIig.js";
1
+ import { A as e, B as t, C as i, q as n, E as o, h as r, F as l, a as A, D as c, i as F, b as u, j as h, w as C, x as d, y as m, z as T, c as f, r as S, s as p, t as I, H as g, I as k, m as x, L as H, O as M, v as P, P as b, S as w, T as O, n as v, o as D, p as E, U as L, k as R, l as q, d as y, e as z, u as B, g as U, f as j } from "./F0AiChat-CiwHSzAS.js";
2
2
  import { defaultTranslations as G } from "./i18n-provider-defaults.js";
3
- import { A as K, F as N, c as Q, d as W, b as X, a as Y, o as Z, u as _ } from "./F0HILActionConfirmation-D74w-tBZ.js";
3
+ import { A as K, F as N, c as Q, d as W, b as X, a as Y, o as Z, u as _ } from "./F0HILActionConfirmation-Ba7uFrN1.js";
4
4
  export {
5
5
  e as A,
6
6
  K as AiChatTranslationsProvider,
@@ -1 +1 @@
1
- ._rfx31ssb:before{border-radius:50%}._15m6ys7w:before{border-color:var(--stroke-color)}._3l8810ly:before{border-width:var(--stroke-width)}._kzdanqa1:before{border-style:solid}._13y0usvi:before{box-sizing:border-box}._154ifghn{top:var(--line-main-axis-start)}._154ihv0e{top:var(--main-axis-offset)}._19wo70hn:before{bottom:var(--terminal-cross-axis-offset)}._1auk70hn:before{top:var(--terminal-cross-axis-offset)}._1aukuj5p:before{top:var(--terminal-main-axis-start)}._1bsb10ly{width:var(--stroke-width)}._1cs8stnw:before{position:absolute}._1e02fghn{inset-inline-start:var(--line-main-axis-start)}._1e0c1ule{display:block}._1kt9b3bt:before{content:""}._1ltvhv0e{left:var(--main-axis-offset)}._1mp4vjfa:before{width:var(--terminal-diameter)}._1pbykb7n{z-index:1}._1xi2hv0e{right:var(--main-axis-offset)}._4t3i10ly{height:var(--stroke-width)}._94n5hv0e{bottom:var(--main-axis-offset)}._94n5idpf{bottom:0}._bfhkys7w{background-color:var(--stroke-color)}._cfu11ld9:before{display:var(--terminal-display)}._kfgtvjfa:before{height:var(--terminal-diameter)}._kqswstnw{position:absolute}._lcxvglyw{pointer-events:none}._ooun70hn:before{right:var(--terminal-cross-axis-offset)}._qnec70hn:before{left:var(--terminal-cross-axis-offset)}._rjxpidpf{inset-inline-end:0}._z5wtuj5p:before{inset-inline-start:var(--terminal-main-axis-start)}.notes-text-editor-title::-moz-selection{background-color:hsl(var(--selected-50) / .2)}.preserved-selection,.notes-text-editor-title::selection{background-color:hsl(var(--selected-50) / .2)}.notes-text-editor *::-moz-selection{background-color:transparent!important}.notes-text-editor *::selection{background-color:transparent!important}.notes-text-editor p{position:relative;margin-bottom:8px;padding:0;font-size:16px;font-weight:400;line-height:24px;letter-spacing:-.16px}.notes-text-editor p:last-child{margin-bottom:0}.notes-text-editor h1{margin-bottom:10px;padding:0;font-size:29px;font-weight:600;line-height:39px;letter-spacing:-.58px}.notes-text-editor h2{margin-bottom:8px;padding:0;font-size:24px;font-weight:600;line-height:32px;letter-spacing:-.48px}.notes-text-editor h3{margin-bottom:7px;padding:0;font-size:19px;font-weight:600;line-height:26px;letter-spacing:-.19px}.notes-text-editor ul{margin:0 0 8px;list-style-type:disc}.notes-text-editor ol{margin:0 0 8px;list-style-type:decimal}.notes-text-editor a{cursor:pointer;font-weight:500;color:hsl(var(--accent-70));text-decoration-line:none}.notes-text-editor strong{font-weight:600}.notes-text-editor em{font-style:italic}.notes-text-editor u{text-decoration-line:underline}.notes-text-editor s{text-decoration-line:line-through}.notes-text-editor .f1-bullet-list{list-style-type:disc}.notes-text-editor .f1-ordered-list{list-style-type:decimal}.notes-text-editor ul,.notes-text-editor ol{padding-left:20px}.notes-text-editor .f1-ordered-list p,.notes-text-editor .f1-bullet-list p{margin-left:8px}.notes-text-editor li{margin-bottom:8px}.notes-text-editor pre{position:relative;margin:16px 0;overflow-x:auto;white-space:pre-wrap;border-radius:.75rem;background-color:hsl(var(--neutral-10));padding:8px}.notes-text-editor code{font-size:.75rem;line-height:1rem;font-family:Menlo,Consolas,Monaco,monospace}.notes-text-editor blockquote{margin:0 0 10px;border-width:0px;border-left-width:4px;border-style:solid;border-color:hsl(var(--neutral-30));padding-left:16px}.notes-text-editor:focus{outline:2px solid transparent;outline-offset:2px}.notes-text-editor .ProseMirror-selectednode,.ProseMirror .ProseMirror-selectednode,.ProseMirror-selectednode,.node-image.ProseMirror-selectednode{outline:none!important}.notes-text-editor hr{margin-top:12px;margin-bottom:12px;border-width:0px;border-top-width:1px;border-color:hsl(var(--neutral-30))}.notes-text-editor mark{border-radius:.375rem;background-color:hsl(var(--promote-50) / .3);padding:2px;color:hsl(var(--neutral-100))}.notes-text-editor p:empty:before{content:" "}.notes-text-editor ul[data-type=taskList]{padding-left:0}.f1-task-item{margin-bottom:8px;display:flex;list-style-type:none;gap:8px}.f1-task-item div{flex:1 1 0%}.f1-task-item input{-moz-appearance:none;appearance:none;-webkit-appearance:none;position:relative;height:1.25rem;width:1.25rem;flex-shrink:0;cursor:pointer;border-radius:.375rem;border-width:1px;border-style:solid;border-color:hsl(var(--neutral-30));background-color:hsl(var(--neutral-0));transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.f1-task-item input:hover{border-color:hsl(var(--neutral-40))}.f1-task-item input:checked{border-color:hsl(var(--selected-50) / .4);background-color:hsl(var(--selected-60))}.f1-task-item[data-checked=true]>div>p{color:hsl(var(--neutral-50));text-decoration-line:line-through}.f1-task-item input:checked:after{position:absolute;left:50%;top:50%;height:1rem;width:1rem;--tw-translate-x: -50%;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));content:"";background-image:url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.75 16.75L17.75 7.25004' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M6.25 11.75L10.75 16.75' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-position:center;background-repeat:no-repeat;background-size:contain}.f1-task-item-content{min-width:0px;flex:1 1 0%;outline:none}.f1-task-item[data-checked=true] .f1-task-item-content{color:hsl(var(--neutral-50));text-decoration-line:line-through}.f1-task-item-content p{margin:0}.tiptap p.is-empty:before{pointer-events:none;float:left;display:block;height:0px;max-width:100%;text-overflow:ellipsis;white-space:nowrap;color:hsl(var(--neutral-40));content:attr(data-placeholder)}.editor-mood-tracker p{margin:0}.rich-text-details{margin-top:0;margin-bottom:0;display:flex;gap:8px;padding-top:4px;padding-bottom:4px;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.rich-text-details summary{font-size:1rem;line-height:1.5rem;letter-spacing:-.01em;font-weight:600}.rich-text-details summary::marker{content:""}.rich-text-details>button{display:flex;height:1.5rem;width:1.5rem;align-items:center;justify-content:center;border-radius:.375rem;background-color:hsl(var(--neutral-0))}.rich-text-details>button:hover{background-color:hsl(var(--neutral-10))}.rich-text-details>button:before{font-size:.625rem;line-height:.75rem;color:hsl(var(--neutral-100));content:"▶"}.rich-text-details.is-open>button:before{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rich-text-details>div{display:flex;width:100%;flex-direction:column;gap:8px}.rich-text-details>div>[data-type=detailsContent]>:last-child{margin-bottom:8px}.rich-text-details.rich-text-details{margin-bottom:8px}.notes-text-editor table{margin:0;width:100%;table-layout:fixed;overflow:hidden;border-collapse:collapse}.notes-text-editor table td,.notes-text-editor table th{position:relative;box-sizing:border-box;min-width:1rem;border-width:1px;border-style:solid;border-color:hsl(var(--neutral-30));padding:10px 12px;vertical-align:top}.notes-text-editor table td>*,.notes-text-editor table th>*{margin-bottom:0}.notes-text-editor table th{text-align:left}.notes-text-editor table th>*{font-weight:500;color:hsl(var(--neutral-50))}.notes-text-editor table .selectedCell:after{pointer-events:none;position:absolute;inset:0;z-index:10;background-color:hsl(var(--selected-50) / .1);content:""}.notes-text-editor table .column-resize-handle{pointer-events:none;position:absolute;bottom:-2px;right:-2px;top:0;width:.25rem;cursor:col-resize;background-color:hsl(var(--selected-50))}.notes-text-editor .tableWrapper{margin-bottom:12px;overflow-x:auto}.notes-text-editor .resize-cursor{cursor:col-resize}
1
+ .notes-text-editor-title::-moz-selection{background-color:hsl(var(--selected-50) / .2)}.preserved-selection,.notes-text-editor-title::selection{background-color:hsl(var(--selected-50) / .2)}.notes-text-editor *::-moz-selection{background-color:transparent!important}.notes-text-editor *::selection{background-color:transparent!important}.notes-text-editor p{position:relative;margin-bottom:8px;padding:0;font-size:16px;font-weight:400;line-height:24px;letter-spacing:-.16px}.notes-text-editor p:last-child{margin-bottom:0}.notes-text-editor h1{margin-bottom:10px;padding:0;font-size:29px;font-weight:600;line-height:39px;letter-spacing:-.58px}.notes-text-editor h2{margin-bottom:8px;padding:0;font-size:24px;font-weight:600;line-height:32px;letter-spacing:-.48px}.notes-text-editor h3{margin-bottom:7px;padding:0;font-size:19px;font-weight:600;line-height:26px;letter-spacing:-.19px}.notes-text-editor ul{margin:0 0 8px;list-style-type:disc}.notes-text-editor ol{margin:0 0 8px;list-style-type:decimal}.notes-text-editor a{cursor:pointer;font-weight:500;color:hsl(var(--accent-70));text-decoration-line:none}.notes-text-editor strong{font-weight:600}.notes-text-editor em{font-style:italic}.notes-text-editor u{text-decoration-line:underline}.notes-text-editor s{text-decoration-line:line-through}.notes-text-editor .f1-bullet-list{list-style-type:disc}.notes-text-editor .f1-ordered-list{list-style-type:decimal}.notes-text-editor ul,.notes-text-editor ol{padding-left:20px}.notes-text-editor .f1-ordered-list p,.notes-text-editor .f1-bullet-list p{margin-left:8px}.notes-text-editor li{margin-bottom:8px}.notes-text-editor pre{position:relative;margin:16px 0;overflow-x:auto;white-space:pre-wrap;border-radius:.75rem;background-color:hsl(var(--neutral-10));padding:8px}.notes-text-editor code{font-size:.75rem;line-height:1rem;font-family:Menlo,Consolas,Monaco,monospace}.notes-text-editor blockquote{margin:0 0 10px;border-width:0px;border-left-width:4px;border-style:solid;border-color:hsl(var(--neutral-30));padding-left:16px}.notes-text-editor:focus{outline:2px solid transparent;outline-offset:2px}.notes-text-editor .ProseMirror-selectednode,.ProseMirror .ProseMirror-selectednode,.ProseMirror-selectednode,.node-image.ProseMirror-selectednode{outline:none!important}.notes-text-editor hr{margin-top:12px;margin-bottom:12px;border-width:0px;border-top-width:1px;border-color:hsl(var(--neutral-30))}.notes-text-editor mark{border-radius:.375rem;background-color:hsl(var(--promote-50) / .3);padding:2px;color:hsl(var(--neutral-100))}.notes-text-editor p:empty:before{content:" "}.notes-text-editor ul[data-type=taskList]{padding-left:0}.f1-task-item{margin-bottom:8px;display:flex;list-style-type:none;gap:8px}.f1-task-item div{flex:1 1 0%}.f1-task-item input{-moz-appearance:none;appearance:none;-webkit-appearance:none;position:relative;height:1.25rem;width:1.25rem;flex-shrink:0;cursor:pointer;border-radius:.375rem;border-width:1px;border-style:solid;border-color:hsl(var(--neutral-30));background-color:hsl(var(--neutral-0));transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.f1-task-item input:hover{border-color:hsl(var(--neutral-40))}.f1-task-item input:checked{border-color:hsl(var(--selected-50) / .4);background-color:hsl(var(--selected-60))}.f1-task-item[data-checked=true]>div>p{color:hsl(var(--neutral-50));text-decoration-line:line-through}.f1-task-item input:checked:after{position:absolute;left:50%;top:50%;height:1rem;width:1rem;--tw-translate-x: -50%;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));content:"";background-image:url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.75 16.75L17.75 7.25004' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M6.25 11.75L10.75 16.75' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-position:center;background-repeat:no-repeat;background-size:contain}.f1-task-item-content{min-width:0px;flex:1 1 0%;outline:none}.f1-task-item[data-checked=true] .f1-task-item-content{color:hsl(var(--neutral-50));text-decoration-line:line-through}.f1-task-item-content p{margin:0}.tiptap p.is-empty:before{pointer-events:none;float:left;display:block;height:0px;max-width:100%;text-overflow:ellipsis;white-space:nowrap;color:hsl(var(--neutral-40));content:attr(data-placeholder)}.editor-mood-tracker p{margin:0}.rich-text-details{margin-top:0;margin-bottom:0;display:flex;gap:8px;padding-top:4px;padding-bottom:4px;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.rich-text-details summary{font-size:1rem;line-height:1.5rem;letter-spacing:-.01em;font-weight:600}.rich-text-details summary::marker{content:""}.rich-text-details>button{display:flex;height:1.5rem;width:1.5rem;align-items:center;justify-content:center;border-radius:.375rem;background-color:hsl(var(--neutral-0))}.rich-text-details>button:hover{background-color:hsl(var(--neutral-10))}.rich-text-details>button:before{font-size:.625rem;line-height:.75rem;color:hsl(var(--neutral-100));content:"▶"}.rich-text-details.is-open>button:before{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rich-text-details>div{display:flex;width:100%;flex-direction:column;gap:8px}.rich-text-details>div>[data-type=detailsContent]>:last-child{margin-bottom:8px}.rich-text-details.rich-text-details{margin-bottom:8px}.notes-text-editor table{margin:0;width:100%;table-layout:fixed;overflow:hidden;border-collapse:collapse}.notes-text-editor table td,.notes-text-editor table th{position:relative;box-sizing:border-box;min-width:1rem;border-width:1px;border-style:solid;border-color:hsl(var(--neutral-30));padding:10px 12px;vertical-align:top}.notes-text-editor table td>*,.notes-text-editor table th>*{margin-bottom:0}.notes-text-editor table th{text-align:left}.notes-text-editor table th>*{font-weight:500;color:hsl(var(--neutral-50))}.notes-text-editor table .selectedCell:after{pointer-events:none;position:absolute;inset:0;z-index:10;background-color:hsl(var(--selected-50) / .1);content:""}.notes-text-editor table .column-resize-handle{pointer-events:none;position:absolute;bottom:-2px;right:-2px;top:0;width:.25rem;cursor:col-resize;background-color:hsl(var(--selected-50))}.notes-text-editor .tableWrapper{margin-bottom:12px;overflow-x:auto}.notes-text-editor .resize-cursor{cursor:col-resize}
@@ -132,7 +132,7 @@ export declare type ActionBarGroup = {
132
132
  items: ActionBarItem[];
133
133
  };
134
134
 
135
- export declare type ActionBarItem = ActionType_2;
135
+ export declare type ActionBarItem = ActionType;
136
136
 
137
137
  export declare type ActionBarStatus = "idle" | "loading" | "success";
138
138
 
@@ -318,7 +318,14 @@ declare type ActionSize = (typeof actionSizes)[number];
318
318
 
319
319
  declare const actionSizes: readonly ["sm", "md", "lg"];
320
320
 
321
- export declare type ActionType = "duplicate" | "delete";
321
+ declare type ActionType = {
322
+ label: string;
323
+ icon?: IconType;
324
+ onClick?: () => void;
325
+ disabled?: boolean;
326
+ critical?: boolean;
327
+ description?: string;
328
+ };
322
329
 
323
330
  export declare type actionType = {
324
331
  label: string;
@@ -328,15 +335,6 @@ export declare type actionType = {
328
335
  icon?: IconType;
329
336
  };
330
337
 
331
- declare type ActionType_2 = {
332
- label: string;
333
- icon?: IconType;
334
- onClick?: () => void;
335
- disabled?: boolean;
336
- critical?: boolean;
337
- description?: string;
338
- };
339
-
340
338
  declare type ActionVariant = (typeof actionVariants)[number];
341
339
 
342
340
  declare const actionVariants: readonly ["default", "outline", "critical", "neutral", "ghost", "promote", "outlinePromote", "ai", "link", "unstyled", "mention"];
@@ -348,7 +346,7 @@ export declare const ActivityItemList: (({ items, loadingMoreItems, onClickItem,
348
346
  Skeleton: () => default_2.JSX.Element;
349
347
  };
350
348
 
351
- export declare type ActivityItemListProps = Pick<SectionProps_2, "items" | "onClickItem"> & {
349
+ export declare type ActivityItemListProps = Pick<SectionProps, "items" | "onClickItem"> & {
352
350
  onEndReached?: () => void;
353
351
  onEndReachedItemsThreshold?: number;
354
352
  loadingMoreItems?: boolean;
@@ -883,25 +881,6 @@ export declare type BasePaginatedResponse<R> = BaseResponse<R> & {
883
881
  perPage: number;
884
882
  };
885
883
 
886
- export declare type BaseQuestionOnChangeParams = {
887
- id: string;
888
- title?: string;
889
- description?: string;
890
- required?: boolean;
891
- };
892
-
893
- declare type BaseQuestionProps = {
894
- id: string;
895
- title: string;
896
- description?: string;
897
- type: QuestionType;
898
- children: React.ReactNode;
899
- required?: boolean;
900
- locked?: boolean;
901
- };
902
-
903
- declare type BaseQuestionPropsForOtherQuestionComponents = Omit<BaseQuestionProps, "children" | "onChange">;
904
-
905
884
  /**
906
885
  * Base response type for collection data
907
886
  * @template R - The type of records in the collection
@@ -1579,32 +1558,6 @@ declare interface ClockInGraphProps {
1579
1558
 
1580
1559
  declare type ClockInStatus = "clocked-in" | "break" | "clocked-out";
1581
1560
 
1582
- export declare const CoCreationForm: WithDataTestIdReturnType_4<({ elements: elementsProp, isEditMode, onChange, disallowOptionalQuestions, allowedQuestionTypes, applyingChanges, }: CoCreationFormProps) => JSX_2.Element>;
1583
-
1584
- export declare type CoCreationFormCallbacks = {
1585
- onQuestionChange?: (params: OnChangeQuestionParams) => void;
1586
- onSectionChange?: (params: OnChangeSectionParams) => void;
1587
- onAddNewElement?: (params: OnAddNewElementParams) => void;
1588
- onDuplicateElement?: (params: OnDuplicateElementParams) => void;
1589
- };
1590
-
1591
- export declare type CoCreationFormElement = {
1592
- type: "section";
1593
- section: SectionElement;
1594
- } | {
1595
- type: "question";
1596
- question: QuestionElement;
1597
- };
1598
-
1599
- export declare type CoCreationFormProps = {
1600
- elements: CoCreationFormElement[];
1601
- onChange: (elements: CoCreationFormElement[]) => void;
1602
- isEditMode?: boolean;
1603
- disallowOptionalQuestions?: boolean;
1604
- allowedQuestionTypes?: QuestionType[];
1605
- applyingChanges?: boolean;
1606
- };
1607
-
1608
1561
  declare type ColId = string;
1609
1562
 
1610
1563
  /**
@@ -1740,8 +1693,6 @@ declare type CompareToDef = {
1740
1693
 
1741
1694
  declare type CompareToDefKey = string;
1742
1695
 
1743
- export declare function computeSectionEndIds(elements: CoCreationFormElement[]): Set<string>;
1744
-
1745
1696
  declare type Content = (ComponentProps<typeof DataList.Item> & {
1746
1697
  type: "item";
1747
1698
  }) | (ComponentProps<typeof DataList.PersonItem> & {
@@ -2178,10 +2129,6 @@ export declare interface DatePreset {
2178
2129
  value: DateRange | (() => DateRange);
2179
2130
  }
2180
2131
 
2181
- declare type DateQuestionProps = BaseQuestionPropsForOtherQuestionComponents & {
2182
- value?: Date | null;
2183
- };
2184
-
2185
2132
  export declare type DateRange = {
2186
2133
  from: Date;
2187
2134
  to?: Date;
@@ -2677,7 +2624,7 @@ declare const defaultTranslations: {
2677
2624
  readonly dismiss: "Dismiss";
2678
2625
  };
2679
2626
  };
2680
- readonly coCreationForm: {
2627
+ readonly surveyFormBuilder: {
2681
2628
  readonly actions: {
2682
2629
  readonly actions: "Actions";
2683
2630
  readonly duplicateQuestion: "Duplicate question";
@@ -2709,7 +2656,11 @@ declare const defaultTranslations: {
2709
2656
  };
2710
2657
  readonly answer: {
2711
2658
  readonly label: "Answer";
2712
- readonly placeholder: "Respondent's answer";
2659
+ readonly dropdownPlaceholder: "Pick an option";
2660
+ readonly textPlaceholder: "Type your answer";
2661
+ readonly numericPlaceholder: "Enter a number";
2662
+ readonly linkPlaceholder: "https://example.com";
2663
+ readonly invalidUrl: "Enter a valid URL";
2713
2664
  };
2714
2665
  readonly labels: {
2715
2666
  readonly applyingChanges: "Applying changes";
@@ -2728,6 +2679,16 @@ declare const defaultTranslations: {
2728
2679
  readonly lastQuestionDialogDescription: "Moving this question will leave the section empty and it will be removed. Do you want to continue?";
2729
2680
  };
2730
2681
  };
2682
+ readonly surveyAnsweringForm: {
2683
+ readonly actions: {
2684
+ readonly submit: "Submit survey";
2685
+ readonly cancel: "Cancel";
2686
+ readonly next: "Next";
2687
+ readonly previous: "Previous";
2688
+ readonly expand: "Expand";
2689
+ readonly collapse: "Collapse";
2690
+ };
2691
+ };
2731
2692
  readonly richTextEditor: {
2732
2693
  readonly bold: "Bold";
2733
2694
  readonly italic: "Italic";
@@ -2940,12 +2901,6 @@ declare type DropdownProps = Omit<DropdownInternalProps, (typeof privateProps_4)
2940
2901
  onOpenChange?: (open: boolean) => void;
2941
2902
  } & WithDataTestIdProps;
2942
2903
 
2943
- declare type DropdownSingleQuestionProps = BaseQuestionPropsForOtherQuestionComponents & {
2944
- type: "dropdown-single";
2945
- options: SelectQuestionOption[];
2946
- value?: string | null;
2947
- };
2948
-
2949
2904
  /** The edit mode for a column cell in the editable table. */
2950
2905
  declare type EditableTableCellEditType = "text" | "date" | "select" | "multiselect";
2951
2906
 
@@ -2999,8 +2954,6 @@ export declare type editorStateType = {
2999
2954
  json: JSONContent | null;
3000
2955
  };
3001
2956
 
3002
- export declare type ElementType = QuestionType | "section";
3003
-
3004
2957
  declare type EmptyState = {
3005
2958
  emoji?: string;
3006
2959
  title: string;
@@ -3829,20 +3782,6 @@ declare type FlagAvatarVariant = Extract<AvatarVariant, {
3829
3782
  type: "flag";
3830
3783
  }>;
3831
3784
 
3832
- export declare type FlatFormItem = {
3833
- type: "section-header";
3834
- id: string;
3835
- section: SectionElement;
3836
- } | {
3837
- type: "question";
3838
- id: string;
3839
- question: QuestionElement;
3840
- } | {
3841
- type: "section-end";
3842
- id: string;
3843
- sectionId: string;
3844
- };
3845
-
3846
3785
  export declare type FlattenedItem = {
3847
3786
  parent: EntitySelectEntity | null;
3848
3787
  subItem: EntitySelectSubEntity & {
@@ -3851,8 +3790,6 @@ export declare type FlattenedItem = {
3851
3790
  };
3852
3791
  };
3853
3792
 
3854
- export declare function flattenElements(elements: CoCreationFormElement[]): FlatFormItem[];
3855
-
3856
3793
  declare type FontSize = (typeof fontSizes)[number];
3857
3794
 
3858
3795
  declare const fontSizes: readonly ["sm", "md", "lg"];
@@ -4169,21 +4106,6 @@ export declare type InfiniteScrollPaginatedResponse<TRecord> = BasePaginatedResp
4169
4106
  hasMore: boolean;
4170
4107
  };
4171
4108
 
4172
- /**
4173
- * Re-inject section-end markers into a flat list that has none.
4174
- *
4175
- * Uses `inSectionQuestionIds` (the set of question IDs that originally
4176
- * belonged to *any* section) to determine where each section ends:
4177
- * - Questions in the set stay inside the current section.
4178
- * - Original standalone questions (NOT in the set) cause the section to close
4179
- * before them so they remain standalone.
4180
- *
4181
- * This allows cross-section moves (a question from section B placed after
4182
- * section A's header joins section A) while keeping standalone questions
4183
- * outside sections unless the user explicitly drags them between section items.
4184
- */
4185
- export declare function injectSectionEnds(items: FlatFormItem[], inSectionQuestionIds: Set<string>): FlatFormItem[];
4186
-
4187
4109
  /**
4188
4110
  * @experimental This is an experimental component use it at your own risk
4189
4111
  */
@@ -4367,10 +4289,6 @@ declare type LinkProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
4367
4289
  disabled?: boolean;
4368
4290
  };
4369
4291
 
4370
- declare type LinkQuestionProps = BaseQuestionPropsForOtherQuestionComponents & {
4371
- value?: string | null;
4372
- };
4373
-
4374
4292
  /**
4375
4293
  * Group List: Renders the list for a group
4376
4294
  */
@@ -4866,10 +4784,6 @@ declare type NumericFormatterOptions = {
4866
4784
  useGrouping?: boolean;
4867
4785
  };
4868
4786
 
4869
- declare type NumericQuestionProps = BaseQuestionPropsForOtherQuestionComponents & {
4870
- value?: number | null;
4871
- };
4872
-
4873
4787
  /**
4874
4788
  * Represents a numeric value that can be formatted with optional units.
4875
4789
  *
@@ -4943,61 +4857,11 @@ declare interface OmniButtonProps {
4943
4857
  hasNewUpdate?: boolean;
4944
4858
  }
4945
4859
 
4946
- export declare type OnAddNewElementParams = {
4947
- type: ElementType;
4948
- afterId?: string;
4949
- };
4950
-
4951
4860
  export declare type OnBulkActionCallback<Record extends RecordType, Filters extends FiltersDefinition> = (...args: [
4952
4861
  action: BulkAction,
4953
4862
  ...Parameters<OnSelectItemsCallback<Record, Filters>>
4954
4863
  ]) => void;
4955
4864
 
4956
- declare type OnChangeQuestionParams = BaseQuestionOnChangeParams & ({
4957
- type: "text" | "longText";
4958
- value?: string | null;
4959
- } | {
4960
- type: "rating";
4961
- value: number;
4962
- options?: {
4963
- value: number;
4964
- label: string;
4965
- }[];
4966
- } | {
4967
- type: "select";
4968
- value?: string | null;
4969
- options: SelectQuestionOption[];
4970
- } | {
4971
- type: "multi-select";
4972
- value?: string[] | null;
4973
- options: SelectQuestionOption[];
4974
- } | {
4975
- type: "dropdown-single";
4976
- value?: string | null;
4977
- options?: SelectQuestionOption[];
4978
- } | {
4979
- type: "numeric";
4980
- value?: number | null;
4981
- } | {
4982
- type: "link";
4983
- value?: string | null;
4984
- } | {
4985
- type: "date";
4986
- value?: Date | null;
4987
- });
4988
-
4989
- export declare type OnChangeSectionParams = {
4990
- id: string;
4991
- title: string;
4992
- description?: string;
4993
- questions?: QuestionElement[];
4994
- };
4995
-
4996
- export declare type OnDuplicateElementParams = {
4997
- elementId: string;
4998
- type: ElementType;
4999
- };
5000
-
5001
4865
  /**
5002
4866
  * @experimental This is an experimental component use it at your own risk
5003
4867
  */
@@ -5713,30 +5577,6 @@ declare type Pulse = (typeof pulses)[number];
5713
5577
 
5714
5578
  declare const pulses: readonly ["superNegative", "negative", "neutral", "positive", "superPositive"];
5715
5579
 
5716
- export declare type QuestionActionParams = {
5717
- questionId: string;
5718
- type: ActionType;
5719
- index: number;
5720
- };
5721
-
5722
- export declare type QuestionElement = Omit<TextQuestionProps, QuestionPropsToOmit> | Omit<RatingQuestionProps & {
5723
- type: "rating";
5724
- }, QuestionPropsToOmit> | Omit<SelectQuestionProps & {
5725
- type: "select" | "multi-select";
5726
- }, QuestionPropsToOmit> | Omit<DropdownSingleQuestionProps & {
5727
- type: "dropdown-single";
5728
- }, QuestionPropsToOmit> | Omit<NumericQuestionProps & {
5729
- type: "numeric";
5730
- }, QuestionPropsToOmit> | Omit<LinkQuestionProps & {
5731
- type: "link";
5732
- }, QuestionPropsToOmit> | Omit<DateQuestionProps & {
5733
- type: "date";
5734
- }, QuestionPropsToOmit>;
5735
-
5736
- declare type QuestionPropsToOmit = "onAction" | "onChange" | "onAddNewElement";
5737
-
5738
- export declare type QuestionType = "rating" | "select" | "multi-select" | "dropdown-single" | "text" | "longText" | "numeric" | "link" | "date";
5739
-
5740
5580
  export declare const RadarChart: RadarChartGeneric;
5741
5581
 
5742
5582
  export declare const _RadarChart: <K extends ChartConfig>({ data, dataConfig, scaleMin, scaleMax, aspect }: RadarChartProps<K>, ref: ForwardedRef<HTMLDivElement>) => JSX_2.Element;
@@ -5753,15 +5593,6 @@ export declare type RadarChartProps<K extends ChartConfig> = {
5753
5593
 
5754
5594
  export declare const rangeSeparator = "\u2192";
5755
5595
 
5756
- declare type RatingQuestionProps = BaseQuestionPropsForOtherQuestionComponents & {
5757
- value?: number;
5758
- } & {
5759
- options: {
5760
- value: number;
5761
- label: string;
5762
- }[];
5763
- };
5764
-
5765
5596
  declare interface ReactionProps {
5766
5597
  emoji: string;
5767
5598
  initialCount: number;
@@ -5781,8 +5612,6 @@ declare interface ReactionsProps {
5781
5612
  };
5782
5613
  }
5783
5614
 
5784
- export declare function reconstructElements(flatItems: FlatFormItem[]): CoCreationFormElement[];
5785
-
5786
5615
  /**
5787
5616
  * Utility type to get all possible paths through an object using dot notation
5788
5617
  * @template T - The object type to traverse
@@ -5951,28 +5780,12 @@ export declare type secondaryActionType = (actionType | toggleActionType) & {
5951
5780
  type?: "button" | "switch";
5952
5781
  };
5953
5782
 
5954
- export declare type SectionActionParams = {
5955
- sectionId: string;
5956
- type: ActionType;
5957
- index: number;
5958
- };
5959
-
5960
- export declare type SectionElement = Omit<SectionProps, "onAction" | "onChange">;
5961
-
5962
5783
  /**
5963
5784
  * @experimental This is an experimental component use it at your own risk
5964
5785
  */
5965
5786
  export declare const SectionHeader: ({ title, description, action, link, separator, }: Props_2) => JSX_2.Element;
5966
5787
 
5967
5788
  declare type SectionProps = {
5968
- id: string;
5969
- title: string;
5970
- description?: string;
5971
- locked?: boolean;
5972
- questions?: QuestionElement[];
5973
- };
5974
-
5975
- declare type SectionProps_2 = {
5976
5789
  title: string;
5977
5790
  items: Omit<ActivityItemProps, "onClick">[];
5978
5791
  onClickItem: (id: string) => void;
@@ -6026,23 +5839,6 @@ export declare type SelectedState = {
6026
5839
 
6027
5840
  export declare type SelectionId = number | string;
6028
5841
 
6029
- export declare type SelectQuestionOption = {
6030
- id?: string;
6031
- value: string;
6032
- label: string;
6033
- correct?: boolean;
6034
- };
6035
-
6036
- declare type SelectQuestionProps = BaseQuestionPropsForOtherQuestionComponents & {
6037
- options: SelectQuestionOption[];
6038
- } & ({
6039
- type: "select";
6040
- value?: string | null;
6041
- } | {
6042
- type: "multi-select";
6043
- value?: string[] | null;
6044
- });
6045
-
6046
5842
  export declare const selectSizes: readonly ["sm", "md"];
6047
5843
 
6048
5844
  /**
@@ -6542,11 +6338,6 @@ declare const Textarea_2: React_2.ForwardRefExoticComponent<Omit<React_2.Textare
6542
6338
 
6543
6339
  export declare type TextareaProps = Pick<ComponentProps<typeof Textarea_2>, "disabled" | "onChange" | "value" | "placeholder" | "rows" | "cols" | "label" | "labelIcon" | "icon" | "hideLabel" | "maxLength" | "clearable" | "onBlur" | "onFocus" | "name" | "status" | "hint" | "error" | "size" | "loading" | "required">;
6544
6340
 
6545
- declare type TextQuestionProps = BaseQuestionPropsForOtherQuestionComponents & {
6546
- type: "text" | "longText";
6547
- value?: string | null;
6548
- };
6549
-
6550
6341
  declare const THEMES: {
6551
6342
  readonly light: "";
6552
6343
  readonly dark: ".dark";