@factorialco/f0-react 3.8.6 → 3.10.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/{F0CanvasPanel-aglhSbg3.js → F0CanvasPanel-BvLSkRnA.js} +286 -281
- package/dist/ai.d.ts +7 -0
- package/dist/ai.js +2 -2
- package/dist/experimental.d.ts +8 -3
- package/dist/experimental.js +6 -6
- package/dist/f0.d.ts +59 -10
- package/dist/f0.js +8090 -7948
- package/dist/i18n-provider-defaults.d.ts +3 -0
- package/dist/i18n-provider-defaults.js +3 -0
- package/dist/styles.css +1 -1
- package/dist/{useChatHistory-B_DtZIvl.js → useChatHistory-BiGAedQR.js} +3 -3
- package/dist/{useDataCollectionSource-Dbyvznk0.js → useDataCollectionSource-i7W7yrnF.js} +2 -2
- package/package.json +1 -1
package/dist/ai.d.ts
CHANGED
|
@@ -2348,6 +2348,9 @@ export declare const defaultTranslations: {
|
|
|
2348
2348
|
readonly questionType: "Question type";
|
|
2349
2349
|
readonly questionOptions: "Question options";
|
|
2350
2350
|
readonly actions: "Actions";
|
|
2351
|
+
readonly locked: "Locked";
|
|
2352
|
+
readonly lockedSectionNotice: "These questions are predefined and can't be edited, moved, or removed.";
|
|
2353
|
+
readonly lockedQuestionNotice: "This question is predefined and can't be edited or removed.";
|
|
2351
2354
|
readonly sectionTitlePlaceholder: "Section title";
|
|
2352
2355
|
readonly lastQuestionDialogTitle: "Remove last question from section";
|
|
2353
2356
|
readonly lastQuestionDialogDescription: "Moving this question will leave the section empty and it will be removed. Do you want to continue?";
|
|
@@ -3644,6 +3647,10 @@ declare type F0TagRawProps = {
|
|
|
3644
3647
|
* Info text to display an i icon and a tooltip next to the tag
|
|
3645
3648
|
*/
|
|
3646
3649
|
info?: string;
|
|
3650
|
+
/**
|
|
3651
|
+
* Extra classes merged onto the tag (e.g. to give it a background).
|
|
3652
|
+
*/
|
|
3653
|
+
className?: string;
|
|
3647
3654
|
} & ({
|
|
3648
3655
|
icon: IconType;
|
|
3649
3656
|
onlyIcon: true;
|
package/dist/ai.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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-
|
|
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-BvLSkRnA.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-
|
|
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-BiGAedQR.js";
|
|
4
4
|
export {
|
|
5
5
|
P as AiChatTranslationsProvider,
|
|
6
6
|
e as ChatSpinner,
|
package/dist/experimental.d.ts
CHANGED
|
@@ -3579,6 +3579,9 @@ declare const defaultTranslations: {
|
|
|
3579
3579
|
readonly questionType: "Question type";
|
|
3580
3580
|
readonly questionOptions: "Question options";
|
|
3581
3581
|
readonly actions: "Actions";
|
|
3582
|
+
readonly locked: "Locked";
|
|
3583
|
+
readonly lockedSectionNotice: "These questions are predefined and can't be edited, moved, or removed.";
|
|
3584
|
+
readonly lockedQuestionNotice: "This question is predefined and can't be edited or removed.";
|
|
3582
3585
|
readonly sectionTitlePlaceholder: "Section title";
|
|
3583
3586
|
readonly lastQuestionDialogTitle: "Remove last question from section";
|
|
3584
3587
|
readonly lastQuestionDialogDescription: "Moving this question will leave the section empty and it will be removed. Do you want to continue?";
|
|
@@ -4405,8 +4408,6 @@ export declare const F0AvatarModule: WithDataTestIdReturnType_5<typeof F0AvatarM
|
|
|
4405
4408
|
/**
|
|
4406
4409
|
* Module avatar
|
|
4407
4410
|
* @description A component that displays a module avatar
|
|
4408
|
-
* @experimental
|
|
4409
|
-
* @returns
|
|
4410
4411
|
*/
|
|
4411
4412
|
declare function F0AvatarModule_2({ size, module, ...props }: F0AvatarModuleProps): JSX_2.Element;
|
|
4412
4413
|
|
|
@@ -5013,6 +5014,10 @@ declare type F0TagRawProps = {
|
|
|
5013
5014
|
* Info text to display an i icon and a tooltip next to the tag
|
|
5014
5015
|
*/
|
|
5015
5016
|
info?: string;
|
|
5017
|
+
/**
|
|
5018
|
+
* Extra classes merged onto the tag (e.g. to give it a background).
|
|
5019
|
+
*/
|
|
5020
|
+
className?: string;
|
|
5016
5021
|
} & ({
|
|
5017
5022
|
icon: IconType;
|
|
5018
5023
|
onlyIcon: true;
|
|
@@ -6226,7 +6231,7 @@ declare interface MetricComputation {
|
|
|
6226
6231
|
export declare const MobileDropdown: ({ items, children, dataTestId }: DropdownProps) => JSX_2.Element;
|
|
6227
6232
|
|
|
6228
6233
|
declare const moduleAvatarVariants: (props?: ({
|
|
6229
|
-
size?: "lg" | "md" | "sm" | "xs" | "
|
|
6234
|
+
size?: "lg" | "md" | "sm" | "xs" | "3xs" | "2xs" | undefined;
|
|
6230
6235
|
} & ({
|
|
6231
6236
|
class?: ClassValue;
|
|
6232
6237
|
className?: never;
|
package/dist/experimental.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { h as ga, B as pa, i as ba, j as xa, k as Dt, l as Be, m as Te, n as va, o as b, p as J, q as ye, u as oe, T as ya, r as wa, s as Na, R as Ca, t as Ia, v as ce, w as ka, x as Nt, y as ut, z as Ve, A as Le, E as Sa, G as Fa, H as U, J as Aa, K as La, L as xe, M as mn, N as Oa, O as Pa, Q as H, S as hn, U as z, V as ke, W as Ea, X as _a, Y as Da, Z as Ta, _ as za, $ as Oe, a0 as gn, a1 as Ra, a2 as we, a3 as Ue, a4 as Ba, e as pn, a5 as Ae, a6 as $a, a7 as bn, a8 as ie, a9 as X, aa as xn, ab as vn, ac as Ma, ad as yn, ae as pe, af as ae, ag as Wa, ah as ja, ai as Va, aj as Ua, ak as ve, al as Ye, am as Ha, an as Ga, ao as Ka, ap as qa, aq as Je, ar as wn, as as Ya, at as Ja, au as Za, av as He, aw as Xa, ax as Nn, ay as Qa, az as er, aA as tr, aB as nr, aC as ar, aD as rr, aE as ir, aF as lr, aG as ft, aH as Cn, aI as mt, aJ as In, aK as sr, aL as or, aM as cr, aN as dr, aO as ur, aP as Ze, aQ as Xe, aR as ht, aS as kn, aT as fr, aU as Ct, aV as mr, aW as hr, aX as gr, aY as Re, aZ as pr, a_ as br, a$ as $e, b0 as Tt, b1 as gt, b2 as xr, b3 as vr, a as yr, b as wr, b4 as Sn, b5 as Nr, g as Cr, F as Ir, b6 as kr, b7 as Fn, b8 as Sr, b9 as An, ba as Ln, bb as Fr, bc as Ar, bd as Lr, be as Or, bf as Pr, bg as Er, bh as _r, bi as Dr, bj as Tr, bk as On, bl as zr, bm as Rr, bn as Br, bo as $r, bp as ge, bq as It, br as kt, bs as St, bt as Pn, bu as Ft, bv as En, bw as _n, bx as Mr, by as Wr, bz as jr, bA as Vr, bB as Ur, bC as Hr, bD as Gr, bE as Kr, bF as zt, bG as qr, bH as Yr, bI as Rt, bJ as Bt, bK as $t, bL as Jr, bM as Zr, bN as Xr, bO as Qr, bP as Dn, bQ as ei, bR as ti } from "./F0CanvasPanel-
|
|
2
|
-
import { c1 as Kc, c0 as qc, cd as Yc, bZ as Jc, b_ as Zc, bS as Xc, cg as Qc, bT as ed, bU as td, ch as nd, b$ as ad, c9 as rd, ca as id, ce as ld, bV as sd, c3 as od, c2 as cd, bW as dd, bX as ud, cb as fd, ci as md, cc as hd, cf as gd, c8 as pd, c5 as bd, c7 as xd, c4 as vd, bY as yd, c6 as wd } from "./F0CanvasPanel-
|
|
1
|
+
import { h as ga, B as pa, i as ba, j as xa, k as Dt, l as Be, m as Te, n as va, o as b, p as J, q as ye, u as oe, T as ya, r as wa, s as Na, R as Ca, t as Ia, v as ce, w as ka, x as Nt, y as ut, z as Ve, A as Le, E as Sa, G as Fa, H as U, J as Aa, K as La, L as xe, M as mn, N as Oa, O as Pa, Q as H, S as hn, U as z, V as ke, W as Ea, X as _a, Y as Da, Z as Ta, _ as za, $ as Oe, a0 as gn, a1 as Ra, a2 as we, a3 as Ue, a4 as Ba, e as pn, a5 as Ae, a6 as $a, a7 as bn, a8 as ie, a9 as X, aa as xn, ab as vn, ac as Ma, ad as yn, ae as pe, af as ae, ag as Wa, ah as ja, ai as Va, aj as Ua, ak as ve, al as Ye, am as Ha, an as Ga, ao as Ka, ap as qa, aq as Je, ar as wn, as as Ya, at as Ja, au as Za, av as He, aw as Xa, ax as Nn, ay as Qa, az as er, aA as tr, aB as nr, aC as ar, aD as rr, aE as ir, aF as lr, aG as ft, aH as Cn, aI as mt, aJ as In, aK as sr, aL as or, aM as cr, aN as dr, aO as ur, aP as Ze, aQ as Xe, aR as ht, aS as kn, aT as fr, aU as Ct, aV as mr, aW as hr, aX as gr, aY as Re, aZ as pr, a_ as br, a$ as $e, b0 as Tt, b1 as gt, b2 as xr, b3 as vr, a as yr, b as wr, b4 as Sn, b5 as Nr, g as Cr, F as Ir, b6 as kr, b7 as Fn, b8 as Sr, b9 as An, ba as Ln, bb as Fr, bc as Ar, bd as Lr, be as Or, bf as Pr, bg as Er, bh as _r, bi as Dr, bj as Tr, bk as On, bl as zr, bm as Rr, bn as Br, bo as $r, bp as ge, bq as It, br as kt, bs as St, bt as Pn, bu as Ft, bv as En, bw as _n, bx as Mr, by as Wr, bz as jr, bA as Vr, bB as Ur, bC as Hr, bD as Gr, bE as Kr, bF as zt, bG as qr, bH as Yr, bI as Rt, bJ as Bt, bK as $t, bL as Jr, bM as Zr, bN as Xr, bO as Qr, bP as Dn, bQ as ei, bR as ti } from "./F0CanvasPanel-BvLSkRnA.js";
|
|
2
|
+
import { c1 as Kc, c0 as qc, cd as Yc, bZ as Jc, b_ as Zc, bS as Xc, cg as Qc, bT as ed, bU as td, ch as nd, b$ as ad, c9 as rd, ca as id, ce as ld, bV as sd, c3 as od, c2 as cd, bW as dd, bX as ud, cb as fd, ci as md, cc as hd, cf as gd, c8 as pd, c5 as bd, c7 as xd, c4 as vd, bY as yd, c6 as wd } from "./F0CanvasPanel-BvLSkRnA.js";
|
|
3
3
|
import { jsx as e, jsxs as o, Fragment as Z } from "react/jsx-runtime";
|
|
4
4
|
import ue, { forwardRef as G, useRef as j, useTransition as ni, useState as D, useLayoutEffect as Tn, useId as pt, useContext as Pe, createContext as Qe, useEffect as W, useCallback as ne, useMemo as q, Fragment as ai, isValidElement as ri, cloneElement as zn, Children as Rn } from "react";
|
|
5
|
-
import { C as ii, P as li, a as Bn, M as si, p as oi, b as ci, R as Mt, c as $n, u as di, d as ui, e as fi, f as mi, g as hi, h as Mn, S as gi, A as pi, B as bi, L as xi, i as vi, V as yi, j as wi, k as Ni, l as Ci, O as Ii } from "./useDataCollectionSource-
|
|
6
|
-
import { r as Cd, s as Id, o as kd, H as Sd, t as Fd, z as Ad, a8 as Ld, G as Od, q as Pd, aa as Ed, a9 as _d, Q as Dd, ad as Td, F as zd, Y as Rd, U as Bd, J as $d, af as Md, K as Wd, Z as jd, _ as Vd, v as Ud, ab as Hd, ac as Gd, N as Kd, $ as qd, a5 as Yd, a7 as Jd, w as Zd, y as Xd, D as Qd, W as eu, ae as tu, X as nu, T as au, ag as ru, x as iu, E as lu, m as su, n as ou, a1 as cu, a2 as du, a6 as uu, I as fu, a3 as mu, a0 as hu, a4 as gu } from "./useDataCollectionSource-
|
|
5
|
+
import { C as ii, P as li, a as Bn, M as si, p as oi, b as ci, R as Mt, c as $n, u as di, d as ui, e as fi, f as mi, g as hi, h as Mn, S as gi, A as pi, B as bi, L as xi, i as vi, V as yi, j as wi, k as Ni, l as Ci, O as Ii } from "./useDataCollectionSource-i7W7yrnF.js";
|
|
6
|
+
import { r as Cd, s as Id, o as kd, H as Sd, t as Fd, z as Ad, a8 as Ld, G as Od, q as Pd, aa as Ed, a9 as _d, Q as Dd, ad as Td, F as zd, Y as Rd, U as Bd, J as $d, af as Md, K as Wd, Z as jd, _ as Vd, v as Ud, ab as Hd, ac as Gd, N as Kd, $ as qd, a5 as Yd, a7 as Jd, w as Zd, y as Xd, D as Qd, W as eu, ae as tu, X as nu, T as au, ag as ru, x as iu, E as lu, m as su, n as ou, a1 as cu, a2 as du, a6 as uu, I as fu, a3 as mu, a0 as hu, a4 as gu } from "./useDataCollectionSource-i7W7yrnF.js";
|
|
7
7
|
const ki = ga("Search", [
|
|
8
8
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
9
9
|
["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
|
|
@@ -3448,7 +3448,7 @@ const Pl = ({
|
|
|
3448
3448
|
onClick: r
|
|
3449
3449
|
}) => /* @__PURE__ */ o("div", { className: "flex w-full flex-col items-start justify-between gap-4 rounded-md bg-gradient-to-r from-[#F5A51C]/30 via-[#E51943]/30 to-[#5596F6]/30 px-3 py-3 ring-1 ring-inset ring-f1-border-secondary sm:flex-row sm:items-center sm:px-4", children: [
|
|
3450
3450
|
/* @__PURE__ */ o("div", { className: "flex flex-col items-start gap-3 sm:flex-row sm:items-center", children: [
|
|
3451
|
-
/* @__PURE__ */ e(kn, { module: "kudos", size: "
|
|
3451
|
+
/* @__PURE__ */ e(kn, { module: "kudos", size: "md" }),
|
|
3452
3452
|
/* @__PURE__ */ o("div", { className: "flex flex-col", children: [
|
|
3453
3453
|
/* @__PURE__ */ e("span", { className: "font-medium text-f1-foreground", children: t }),
|
|
3454
3454
|
/* @__PURE__ */ e("span", { className: "text-f1-foreground-secondary", children: n })
|
|
@@ -7000,7 +7000,7 @@ function cn({
|
|
|
7000
7000
|
return /* @__PURE__ */ o(to, { onClick: (c) => {
|
|
7001
7001
|
c.preventDefault(), r?.(t);
|
|
7002
7002
|
}, className: l, children: [
|
|
7003
|
-
/* @__PURE__ */ e(kn, { module: i ?? "inbox", size: "
|
|
7003
|
+
/* @__PURE__ */ e(kn, { module: i ?? "inbox", size: "sm" }),
|
|
7004
7004
|
/* @__PURE__ */ o("div", { className: "flex-1", children: [
|
|
7005
7005
|
/* @__PURE__ */ e("p", { className: "line-clamp-1 font-medium", children: n }),
|
|
7006
7006
|
/* @__PURE__ */ e("p", { className: "line-clamp-1 text-f1-foreground-secondary", children: a })
|
package/dist/f0.d.ts
CHANGED
|
@@ -1551,8 +1551,19 @@ declare type BaseQuestionProps = {
|
|
|
1551
1551
|
type: QuestionType;
|
|
1552
1552
|
children: React.ReactNode;
|
|
1553
1553
|
required?: boolean;
|
|
1554
|
-
locked?: boolean;
|
|
1555
1554
|
hiddenActions?: HiddenActions;
|
|
1555
|
+
/**
|
|
1556
|
+
* Locks the question on its own — independent of any section. A question is
|
|
1557
|
+
* also locked when its containing section is locked.
|
|
1558
|
+
*/
|
|
1559
|
+
locked?: boolean;
|
|
1560
|
+
/**
|
|
1561
|
+
* Optional notice shown in the lock tooltip when the question is locked. Use
|
|
1562
|
+
* it to say what this specific question is — it takes precedence over the
|
|
1563
|
+
* parent section's `LockedSectionNotice` and over the default question notice
|
|
1564
|
+
* from the i18n provider.
|
|
1565
|
+
*/
|
|
1566
|
+
lockedNote?: LockedQuestionNotice;
|
|
1556
1567
|
};
|
|
1557
1568
|
|
|
1558
1569
|
declare type BaseQuestionPropsForOtherQuestionComponents = Omit<BaseQuestionProps, "children" | "onChange">;
|
|
@@ -1647,11 +1658,11 @@ declare const boxVariants: (props?: ({
|
|
|
1647
1658
|
borderBottom?: "none" | "default" | "thick" | undefined;
|
|
1648
1659
|
borderLeft?: "none" | "default" | "thick" | undefined;
|
|
1649
1660
|
borderRight?: "none" | "default" | "thick" | undefined;
|
|
1650
|
-
borderRadius?: "none" | "lg" | "md" | "sm" | "xs" | "xl" | "
|
|
1651
|
-
borderRadiusTopLeft?: "none" | "lg" | "md" | "sm" | "xs" | "xl" | "
|
|
1652
|
-
borderRadiusTopRight?: "none" | "lg" | "md" | "sm" | "xs" | "xl" | "
|
|
1653
|
-
borderRadiusBottomLeft?: "none" | "lg" | "md" | "sm" | "xs" | "xl" | "
|
|
1654
|
-
borderRadiusBottomRight?: "none" | "lg" | "md" | "sm" | "xs" | "xl" | "
|
|
1661
|
+
borderRadius?: "none" | "lg" | "md" | "sm" | "xs" | "xl" | "2xs" | "2xl" | "full" | "3xl" | undefined;
|
|
1662
|
+
borderRadiusTopLeft?: "none" | "lg" | "md" | "sm" | "xs" | "xl" | "2xs" | "2xl" | "full" | "3xl" | undefined;
|
|
1663
|
+
borderRadiusTopRight?: "none" | "lg" | "md" | "sm" | "xs" | "xl" | "2xs" | "2xl" | "full" | "3xl" | undefined;
|
|
1664
|
+
borderRadiusBottomLeft?: "none" | "lg" | "md" | "sm" | "xs" | "xl" | "2xs" | "2xl" | "full" | "3xl" | undefined;
|
|
1665
|
+
borderRadiusBottomRight?: "none" | "lg" | "md" | "sm" | "xs" | "xl" | "2xs" | "2xl" | "full" | "3xl" | undefined;
|
|
1655
1666
|
borderStyle?: "none" | "dashed" | "dotted" | "double" | "solid" | undefined;
|
|
1656
1667
|
background?: "info" | "bold" | "secondary" | "inverse" | "critical" | "accent" | "warning" | "positive" | "promote" | "selected" | "critical-bold" | "transparent" | "overlay" | "primary" | "tertiary" | "inverse-secondary" | "accent-bold" | "info-bold" | "warning-bold" | "positive-bold" | "selected-secondary" | "selected-bold" | undefined;
|
|
1657
1668
|
width?: SizeToken_2 | undefined;
|
|
@@ -4862,6 +4873,9 @@ export declare const defaultTranslations: {
|
|
|
4862
4873
|
readonly questionType: "Question type";
|
|
4863
4874
|
readonly questionOptions: "Question options";
|
|
4864
4875
|
readonly actions: "Actions";
|
|
4876
|
+
readonly locked: "Locked";
|
|
4877
|
+
readonly lockedSectionNotice: "These questions are predefined and can't be edited, moved, or removed.";
|
|
4878
|
+
readonly lockedQuestionNotice: "This question is predefined and can't be edited or removed.";
|
|
4865
4879
|
readonly sectionTitlePlaceholder: "Section title";
|
|
4866
4880
|
readonly lastQuestionDialogTitle: "Remove last question from section";
|
|
4867
4881
|
readonly lastQuestionDialogDescription: "Moving this question will leave the section empty and it will be removed. Do you want to continue?";
|
|
@@ -6840,8 +6854,6 @@ export declare const F0AvatarModule: WithDataTestIdReturnType_4<typeof F0AvatarM
|
|
|
6840
6854
|
/**
|
|
6841
6855
|
* Module avatar
|
|
6842
6856
|
* @description A component that displays a module avatar
|
|
6843
|
-
* @experimental
|
|
6844
|
-
* @returns
|
|
6845
6857
|
*/
|
|
6846
6858
|
declare function F0AvatarModule_2({ size, module, ...props }: F0AvatarModuleProps): JSX_2.Element;
|
|
6847
6859
|
|
|
@@ -12343,6 +12355,23 @@ export declare interface LoadingStateProps {
|
|
|
12343
12355
|
label: string;
|
|
12344
12356
|
}
|
|
12345
12357
|
|
|
12358
|
+
export declare type LockedQuestionNotice = {
|
|
12359
|
+
description: string;
|
|
12360
|
+
};
|
|
12361
|
+
|
|
12362
|
+
/**
|
|
12363
|
+
* Explanation surfaced in a locked item's lock tooltip (authoring view only —
|
|
12364
|
+
* never shown in the answering/preview form), saying why it can't be edited,
|
|
12365
|
+
* moved, or removed. Rendered as a title-less popover on hovering the lock.
|
|
12366
|
+
*
|
|
12367
|
+
* A section and an individual question each carry their own `lockedNote`; a
|
|
12368
|
+
* locked question prefers its own `LockedQuestionNotice` and otherwise falls
|
|
12369
|
+
* back to the section's `LockedSectionNotice`.
|
|
12370
|
+
*/
|
|
12371
|
+
export declare type LockedSectionNotice = {
|
|
12372
|
+
description: string;
|
|
12373
|
+
};
|
|
12374
|
+
|
|
12346
12375
|
/** Margin tokens (spacing + auto for centering) */
|
|
12347
12376
|
export declare type MarginToken = SpacingToken | "auto";
|
|
12348
12377
|
|
|
@@ -12625,7 +12654,7 @@ declare type MimeType_2 = "image" | "video" | "audio" | "text" | "application" |
|
|
|
12625
12654
|
export { MimeType_2 as MimeType }
|
|
12626
12655
|
|
|
12627
12656
|
declare const moduleAvatarVariants: (props?: ({
|
|
12628
|
-
size?: "lg" | "md" | "sm" | "xs" | "
|
|
12657
|
+
size?: "lg" | "md" | "sm" | "xs" | "3xs" | "2xs" | undefined;
|
|
12629
12658
|
} & ({
|
|
12630
12659
|
class?: ClassValue;
|
|
12631
12660
|
className?: never;
|
|
@@ -14449,9 +14478,20 @@ export declare type SectionElement = Omit<SectionProps, "onAction" | "onChange">
|
|
|
14449
14478
|
|
|
14450
14479
|
declare type SectionProps = {
|
|
14451
14480
|
id: string;
|
|
14452
|
-
|
|
14481
|
+
/**
|
|
14482
|
+
* Section heading. Optional — a section may have no title (e.g. a predefined,
|
|
14483
|
+
* blocked section that leads with a `lockedNote` instead). In the editable
|
|
14484
|
+
* view an empty title shows a placeholder so authors can add one; when the
|
|
14485
|
+
* section is locked/read-only an empty title is hidden entirely.
|
|
14486
|
+
*/
|
|
14487
|
+
title?: string;
|
|
14453
14488
|
description?: string;
|
|
14454
14489
|
locked?: boolean;
|
|
14490
|
+
/**
|
|
14491
|
+
* Optional explanation surfaced in the lock tooltip (authoring view only).
|
|
14492
|
+
* Pair with `locked` to say why a predefined section can't be edited or moved.
|
|
14493
|
+
*/
|
|
14494
|
+
lockedNote?: LockedSectionNotice;
|
|
14455
14495
|
questions?: QuestionElement[];
|
|
14456
14496
|
};
|
|
14457
14497
|
|
|
@@ -14736,6 +14776,11 @@ declare interface SurveyAnsweringFormDialogProps extends SurveyAnsweringFormShar
|
|
|
14736
14776
|
/** Inline mode: read-only rendering embedded in the page, no dialog */
|
|
14737
14777
|
declare interface SurveyAnsweringFormInlineProps extends SurveyAnsweringFormSharedProps {
|
|
14738
14778
|
inline: true;
|
|
14779
|
+
/**
|
|
14780
|
+
* Hide the built-in ResourceHeader (title + description). Useful when the
|
|
14781
|
+
* embedding page already renders its own resource header above the form.
|
|
14782
|
+
*/
|
|
14783
|
+
hideResourceHeader?: boolean;
|
|
14739
14784
|
mode?: never;
|
|
14740
14785
|
module?: never;
|
|
14741
14786
|
position?: never;
|
|
@@ -15159,6 +15204,10 @@ export declare type TagRawProps = {
|
|
|
15159
15204
|
* Info text to display an i icon and a tooltip next to the tag
|
|
15160
15205
|
*/
|
|
15161
15206
|
info?: string;
|
|
15207
|
+
/**
|
|
15208
|
+
* Extra classes merged onto the tag (e.g. to give it a background).
|
|
15209
|
+
*/
|
|
15210
|
+
className?: string;
|
|
15162
15211
|
} & ({
|
|
15163
15212
|
icon: IconType;
|
|
15164
15213
|
onlyIcon: true;
|