@factorialco/f0-react 1.470.2 → 1.471.1
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/{F0AiChat-tvZo2d0g.js → F0AiChat-DdSiSBlS.js} +59076 -58340
- package/dist/F0AiChat.css +1 -1
- package/dist/ai.d.ts +91 -9
- package/dist/ai.js +2 -2
- package/dist/experimental.d.ts +78 -8
- package/dist/experimental.js +44 -44
- package/dist/f0.d.ts +91 -9
- package/dist/f0.js +53 -53
- package/dist/i18n-provider-defaults.d.ts +18 -6
- package/dist/i18n-provider-defaults.js +14 -2
- package/dist/{index-C0E-IJhP.js → index-CLDD0rbK.js} +4165 -4657
- package/dist/{types-BUlx9vcm.js → types-BUGVwNcw.js} +1 -1
- package/package.json +1 -1
package/dist/f0.d.ts
CHANGED
|
@@ -863,6 +863,7 @@ export declare const aiTranslations: {
|
|
|
863
863
|
readonly unsavedChanges: "Unsaved changes";
|
|
864
864
|
readonly saveChanges: "Save changes";
|
|
865
865
|
readonly discardChanges: "Discard";
|
|
866
|
+
readonly saveAsChanges: "Save as";
|
|
866
867
|
readonly exportTable: "Download table";
|
|
867
868
|
readonly generatedTableFilename: "OneGeneratedTable";
|
|
868
869
|
readonly feedbackModal: {
|
|
@@ -912,6 +913,7 @@ export declare const aiTranslations: {
|
|
|
912
913
|
};
|
|
913
914
|
readonly reportCard: {
|
|
914
915
|
readonly reportLabel: "Report";
|
|
916
|
+
readonly tableLabel: "Table";
|
|
915
917
|
readonly openButton: "Open";
|
|
916
918
|
};
|
|
917
919
|
readonly formCard: {
|
|
@@ -920,6 +922,7 @@ export declare const aiTranslations: {
|
|
|
920
922
|
readonly dashboard: {
|
|
921
923
|
readonly save: "Save";
|
|
922
924
|
readonly saveToAnalytics: "Save the dashboard in Analytics";
|
|
925
|
+
readonly saveTableToAnalytics: "Save the table in Analytics";
|
|
923
926
|
readonly saveAs: "Save as";
|
|
924
927
|
readonly saveDialog: {
|
|
925
928
|
readonly title: "Save dashboard";
|
|
@@ -929,12 +932,21 @@ export declare const aiTranslations: {
|
|
|
929
932
|
readonly save: "Save";
|
|
930
933
|
readonly cancel: "Cancel";
|
|
931
934
|
};
|
|
935
|
+
readonly status: {
|
|
936
|
+
readonly saved: "Saved";
|
|
937
|
+
readonly draft: "Draft";
|
|
938
|
+
readonly unsaved: "Unsaved";
|
|
939
|
+
};
|
|
940
|
+
readonly statusLabel: "Status";
|
|
941
|
+
readonly lastEdited: "Last edited";
|
|
942
|
+
readonly createdBy: "Created by";
|
|
932
943
|
};
|
|
933
944
|
readonly dataDownload: {
|
|
934
945
|
readonly title: "Download";
|
|
935
946
|
readonly download: "Download {{format}}";
|
|
936
947
|
readonly exportDashboard: "Export dashboard as {{format}}";
|
|
937
|
-
readonly
|
|
948
|
+
readonly export: "Export";
|
|
949
|
+
readonly exporting: "Exporting…";
|
|
938
950
|
readonly rows: "{{amount}} rows";
|
|
939
951
|
};
|
|
940
952
|
readonly dashboardItem: {
|
|
@@ -2377,6 +2389,13 @@ declare interface ChatDashboardColumn {
|
|
|
2377
2389
|
declare interface ChatDashboardConfig {
|
|
2378
2390
|
/** Dashboard title displayed in the canvas header and chat report card */
|
|
2379
2391
|
title: string;
|
|
2392
|
+
/**
|
|
2393
|
+
* AI-generated 1–2 sentence summary of what the dashboard shows. Displayed
|
|
2394
|
+
* under the title in the canvas header. Optional at the type level so
|
|
2395
|
+
* legacy persisted dashboards (before the agent started emitting it) still
|
|
2396
|
+
* parse; the agent schema makes it required going forward.
|
|
2397
|
+
*/
|
|
2398
|
+
description?: string;
|
|
2380
2399
|
/** Filter definitions — keys become filter IDs */
|
|
2381
2400
|
filters?: Record<string, ChatDashboardFilterDefinition>;
|
|
2382
2401
|
/**
|
|
@@ -3079,8 +3098,23 @@ export declare const Dashboard: WithDataTestIdReturnType_3<ComponentType<Dashboa
|
|
|
3079
3098
|
declare type DashboardCanvasActions = {
|
|
3080
3099
|
/** Update an existing saved dashboard */
|
|
3081
3100
|
save: (id: string, category: string, config: ChatDashboardConfig) => Promise<void>;
|
|
3082
|
-
/**
|
|
3083
|
-
|
|
3101
|
+
/**
|
|
3102
|
+
* Create a new saved dashboard. Returns the new dashboard's id and
|
|
3103
|
+
* category so subsequent edits can call `save` (which requires both).
|
|
3104
|
+
* Returning void / undefined leaves the canvas in its current state.
|
|
3105
|
+
*/
|
|
3106
|
+
create: (title: string, description: string, config: ChatDashboardConfig, category?: string) => Promise<{
|
|
3107
|
+
id: string;
|
|
3108
|
+
category: string;
|
|
3109
|
+
} | void>;
|
|
3110
|
+
/**
|
|
3111
|
+
* Fetch creator + last-edited metadata for a saved dashboard. The header
|
|
3112
|
+
* calls this lazily, only when the current dashboard has a
|
|
3113
|
+
* `savedDashboardId`. Returning `void` signals "no metadata available" —
|
|
3114
|
+
* the header will skip rendering the avatar and the last-edited row
|
|
3115
|
+
* instead of showing a placeholder.
|
|
3116
|
+
*/
|
|
3117
|
+
getMetadata?: (id: string) => Promise<DashboardMetadata | void>;
|
|
3084
3118
|
};
|
|
3085
3119
|
|
|
3086
3120
|
/**
|
|
@@ -3248,6 +3282,42 @@ declare type DashboardItemLayout = {
|
|
|
3248
3282
|
y: number;
|
|
3249
3283
|
};
|
|
3250
3284
|
|
|
3285
|
+
/**
|
|
3286
|
+
* Creator + last-edited metadata for a saved dashboard. Returned by
|
|
3287
|
+
* `DashboardCanvasActions.getMetadata` so the header can render the author
|
|
3288
|
+
* avatar and the freshness signal only once a dashboard has been persisted.
|
|
3289
|
+
*
|
|
3290
|
+
* `title` and `description` are also returned: once a dashboard has an id
|
|
3291
|
+
* the backend is the source of truth and may diverge from what's stored in
|
|
3292
|
+
* the chat history (e.g. someone renamed the dashboard from the Analytics
|
|
3293
|
+
* list page since this conversation was first opened). The header prefers
|
|
3294
|
+
* these values over the ones baked into `content` / `config`.
|
|
3295
|
+
*/
|
|
3296
|
+
declare type DashboardMetadata = {
|
|
3297
|
+
/**
|
|
3298
|
+
* Latest persisted title. When present, the header displays this instead
|
|
3299
|
+
* of `content.title` so the chat-history snapshot never shadows the
|
|
3300
|
+
* authoritative backend copy.
|
|
3301
|
+
*/
|
|
3302
|
+
title?: string;
|
|
3303
|
+
/**
|
|
3304
|
+
* Latest persisted description. Same rationale as `title` — takes
|
|
3305
|
+
* precedence over `config.description` once the dashboard is saved.
|
|
3306
|
+
*/
|
|
3307
|
+
description?: string;
|
|
3308
|
+
creator: {
|
|
3309
|
+
firstName: string;
|
|
3310
|
+
lastName: string;
|
|
3311
|
+
/** Optional avatar image URL. Falls back to initials when omitted. */
|
|
3312
|
+
src?: string;
|
|
3313
|
+
};
|
|
3314
|
+
/**
|
|
3315
|
+
* Last edited timestamp. Accepts `Date` or an ISO-8601 string so host apps
|
|
3316
|
+
* can forward backend payloads verbatim without pre-parsing.
|
|
3317
|
+
*/
|
|
3318
|
+
lastEdited: Date | string;
|
|
3319
|
+
};
|
|
3320
|
+
|
|
3251
3321
|
/** Data returned by a metric item's fetchData */
|
|
3252
3322
|
export declare interface DashboardMetricData {
|
|
3253
3323
|
/** The main numeric value displayed in large text */
|
|
@@ -4163,6 +4233,7 @@ export declare const defaultTranslations: {
|
|
|
4163
4233
|
readonly unsavedChanges: "Unsaved changes";
|
|
4164
4234
|
readonly saveChanges: "Save changes";
|
|
4165
4235
|
readonly discardChanges: "Discard";
|
|
4236
|
+
readonly saveAsChanges: "Save as";
|
|
4166
4237
|
readonly exportTable: "Download table";
|
|
4167
4238
|
readonly generatedTableFilename: "OneGeneratedTable";
|
|
4168
4239
|
readonly feedbackModal: {
|
|
@@ -4212,6 +4283,7 @@ export declare const defaultTranslations: {
|
|
|
4212
4283
|
};
|
|
4213
4284
|
readonly reportCard: {
|
|
4214
4285
|
readonly reportLabel: "Report";
|
|
4286
|
+
readonly tableLabel: "Table";
|
|
4215
4287
|
readonly openButton: "Open";
|
|
4216
4288
|
};
|
|
4217
4289
|
readonly formCard: {
|
|
@@ -4220,6 +4292,7 @@ export declare const defaultTranslations: {
|
|
|
4220
4292
|
readonly dashboard: {
|
|
4221
4293
|
readonly save: "Save";
|
|
4222
4294
|
readonly saveToAnalytics: "Save the dashboard in Analytics";
|
|
4295
|
+
readonly saveTableToAnalytics: "Save the table in Analytics";
|
|
4223
4296
|
readonly saveAs: "Save as";
|
|
4224
4297
|
readonly saveDialog: {
|
|
4225
4298
|
readonly title: "Save dashboard";
|
|
@@ -4229,12 +4302,21 @@ export declare const defaultTranslations: {
|
|
|
4229
4302
|
readonly save: "Save";
|
|
4230
4303
|
readonly cancel: "Cancel";
|
|
4231
4304
|
};
|
|
4305
|
+
readonly status: {
|
|
4306
|
+
readonly saved: "Saved";
|
|
4307
|
+
readonly draft: "Draft";
|
|
4308
|
+
readonly unsaved: "Unsaved";
|
|
4309
|
+
};
|
|
4310
|
+
readonly statusLabel: "Status";
|
|
4311
|
+
readonly lastEdited: "Last edited";
|
|
4312
|
+
readonly createdBy: "Created by";
|
|
4232
4313
|
};
|
|
4233
4314
|
readonly dataDownload: {
|
|
4234
4315
|
readonly title: "Download";
|
|
4235
4316
|
readonly download: "Download {{format}}";
|
|
4236
4317
|
readonly exportDashboard: "Export dashboard as {{format}}";
|
|
4237
|
-
readonly
|
|
4318
|
+
readonly export: "Export";
|
|
4319
|
+
readonly exporting: "Exporting…";
|
|
4238
4320
|
readonly rows: "{{amount}} rows";
|
|
4239
4321
|
};
|
|
4240
4322
|
readonly dashboardItem: {
|
|
@@ -13616,9 +13698,8 @@ declare module "@tiptap/core" {
|
|
|
13616
13698
|
|
|
13617
13699
|
declare module "@tiptap/core" {
|
|
13618
13700
|
interface Commands<ReturnType> {
|
|
13619
|
-
|
|
13620
|
-
|
|
13621
|
-
clearEnhanceHighlight: () => ReturnType;
|
|
13701
|
+
moodTracker: {
|
|
13702
|
+
insertMoodTracker: (data: MoodTrackerData) => ReturnType;
|
|
13622
13703
|
};
|
|
13623
13704
|
}
|
|
13624
13705
|
}
|
|
@@ -13626,8 +13707,9 @@ declare module "@tiptap/core" {
|
|
|
13626
13707
|
|
|
13627
13708
|
declare module "@tiptap/core" {
|
|
13628
13709
|
interface Commands<ReturnType> {
|
|
13629
|
-
|
|
13630
|
-
|
|
13710
|
+
enhanceHighlight: {
|
|
13711
|
+
setEnhanceHighlight: (from: number, to: number) => ReturnType;
|
|
13712
|
+
clearEnhanceHighlight: () => ReturnType;
|
|
13631
13713
|
};
|
|
13632
13714
|
}
|
|
13633
13715
|
}
|
package/dist/f0.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { fA as Or, a6 as se, bU as Tn, O as P, P as ht, fB as Mr, W as yt, dH as zo, aS as Yi, fC as Io, a7 as zr, a8 as de, u as oe, ar as he, fr as Ut, U as Bo, ac as Po, M as Ir, fD as un, aO as Oe, aL as hi, fE as Ho, fF as Wo, fG as qo, fH as Ji, a0 as Go, fI as $o, fJ as Br, fK as jo, bd as fi, be as mi, a5 as Fn, bf as gi, aX as Pr, cS as hn, fL as Hr, fM as Uo, eh as Vo, fN as Zi, eg as Qo, fO as Ko, fP as wt, fQ as Vt, fR as Xo, fS as Wr, fT as Yo, fU as Jo, fV as An, fW as Zo, fX as ea, R as We, b0 as ta, d5 as si, d4 as qr, fY as na, fZ as pi, cn as ia, f_ as ra, f$ as Gr, g0 as Ln, g1 as sa, g2 as oa, aI as vi, Q as Ce, aJ as aa, aK as fn, ce as la, g3 as ca, aR as On, fo as bi, g4 as $r, g5 as da, g6 as ua, g7 as ha, g8 as fa, cC as ma, m as ga, dr as pa, aq as jr, f6 as ft, g9 as Ur, f4 as Vr, ga as mn, gb as Qr, ch as Kr, gc as Xr, as as yi, at as xi, gd as wi, aw as Ci, aB as De, ge as Si, aD as xt, gf as At, gg as Lt, av as Ot, gh as Mt, gi as va, gj as Zt, gk as Yr, gl as gn, bM as Pt, gm as _e, cs as ba, gn as Jr, go as ya, gp as pn, cr as xa, cq as wa, gq as Ca, gr as Sa, bO as Mn, aE as zn, gs as Zr, bJ as Ei, bP as Ni, bc as Ea, gt as Ae, gu as Na, gv as _a, gw as es, gx as In, gy as Da, gz as Ra, cx as ts, cj as ns, gA as ka, gB as Ta, gC as Fa, gD as Aa, bp as is, bv as La, fu as Oa, fv as Ma, fx as za, gE as rs, bW as Ia, b_ as Ba, gF as er, c5 as Pa, gG as ss, gH as Ha, gI as Wa } from "./F0AiChat-DdSiSBlS.js";
|
|
2
|
+
import { hm as Lf, gN as Of, co as Mf, l as zf, hA as If, bo as Bf, k as Pf, F as Hf, a as Wf, C as qf, hd as Gf, b as $f, g_ as jf, bN as Uf, c7 as Vf, _ as Qf, c8 as Kf, gK as Xf, bh as Yf, Y as Jf, X as Zf, Z as em, b3 as tm, gU as nm, gY as im, gL as rm, gZ as sm, g$ as om, h1 as am, hF as lm, bx as cm, n as dm, hx as um, b5 as hm, $ as fm, hh as mm, bB as gm, hi as pm, hk as vm, hl as bm, d2 as ym, d0 as xm, d as wm, gO as Cm, hn as Sm, gP as Em, gQ as Nm, gR as _m, cO as Dm, cP as Rm, gJ as km, gS as Tm, hE as Fm, gT as Am, bu as Lm, d1 as Om, hj as Mm, cQ as zm, cm as Im, hG as Bm, gV as Pm, gW as Hm, gX as Wm, gM as qm, cR as Gm, hz as $m, hs as jm, hf as Um, h6 as Vm, h5 as Qm, h4 as Km, hc as Xm, hv as Ym, g as Jm, hr as Zm, bs as eg, cN as tg, cK as ng, cM as ig, hb as rg, cJ as sg, h7 as og, hq as ag, hp as lg, h8 as cg, cw as dg, cL as ug, h2 as hg, h3 as fg, h9 as mg, c as gg, ho as pg, ht as vg, h as bg, hB as yg, hC as xg, hD as wg, bq as Cg, he as Sg, h0 as Eg, hg as Ng, e as _g, hy as Dg, hu as Rg, j as kg, i as Tg, bV as Fg, T as Ag, ha as Lg, hw as Og, f as Mg, hH as zg } from "./F0AiChat-DdSiSBlS.js";
|
|
3
3
|
import { jsx as l, jsxs as C, Fragment as we } from "react/jsx-runtime";
|
|
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
|
|
5
|
-
import { g as Ua, h as Va } from "./types-
|
|
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-
|
|
7
|
-
import { createPortal as
|
|
8
|
-
import { C as Qa,
|
|
9
|
-
import { l as Kg, m as Xg, n as Yg, s as Jg, F as Zg, o as ep,
|
|
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 os, Fragment as Ga, memo as as, useReducer as $a, cloneElement as ja, useId as ls } from "react";
|
|
5
|
+
import { g as Ua, h as Va } from "./types-BUGVwNcw.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-BUGVwNcw.js";
|
|
7
|
+
import { createPortal as cs, unstable_batchedUpdates as tn } from "react-dom";
|
|
8
|
+
import { C as Qa, D as Ka, y as Xa, j as Ya } from "./index-CLDD0rbK.js";
|
|
9
|
+
import { l as Kg, m as Xg, n as Yg, s as Jg, F as Zg, o as ep, v as tp, w as np, N as ip, x as rp, p as sp, P as op, r as ap, R as lp, q as cp, _ as dp, u as up, t as hp } from "./index-CLDD0rbK.js";
|
|
10
10
|
import { defaultTranslations as mp } from "./i18n-provider-defaults.js";
|
|
11
11
|
import './f0.css';const Ja = {
|
|
12
12
|
xs: 1,
|
|
@@ -515,7 +515,7 @@ function ul() {
|
|
|
515
515
|
const { _reactContentMap: n } = hs(), { getWidgetContainer: e } = cl();
|
|
516
516
|
return /* @__PURE__ */ l(we, { children: Array.from(n.value.entries()).map(([t, i]) => {
|
|
517
517
|
const r = e(t);
|
|
518
|
-
return r ? /* @__PURE__ */ l(dl.Provider, { value: { widget: { id: t } }, children: i &&
|
|
518
|
+
return r ? /* @__PURE__ */ l(dl.Provider, { value: { widget: { id: t } }, children: i && cs(i, r) }, t) : (console.error(`Widget container not found for widget ${t}`), null);
|
|
519
519
|
}) });
|
|
520
520
|
}
|
|
521
521
|
function hl(n, e, t, i, r) {
|
|
@@ -4641,7 +4641,7 @@ const Rl = ({
|
|
|
4641
4641
|
}, kl = bl(
|
|
4642
4642
|
"BlockContent",
|
|
4643
4643
|
Rl
|
|
4644
|
-
), Tl = (n) => !
|
|
4644
|
+
), Tl = (n) => !os(n) || !n.type || typeof n.type == "string" || typeof n.type == "symbol" ? !1 : "__isPageLayoutBlock" in n.type, Fl = (n) => !os(n) || !n.type || typeof n.type == "string" || typeof n.type == "symbol" ? !1 : "__isPageLayoutGroup" in n.type, bs = (n, e, t) => {
|
|
4645
4645
|
const i = vn.toArray(e);
|
|
4646
4646
|
for (const r of i)
|
|
4647
4647
|
t.includes("block") && Tl(r) || t.includes("group") && Fl(r) || console.warn(
|
|
@@ -5045,7 +5045,7 @@ function jl(n) {
|
|
|
5045
5045
|
id: a,
|
|
5046
5046
|
announcement: o
|
|
5047
5047
|
}));
|
|
5048
|
-
return t ?
|
|
5048
|
+
return t ? cs(c, t) : c;
|
|
5049
5049
|
}
|
|
5050
5050
|
var pe;
|
|
5051
5051
|
(function(n) {
|
|
@@ -6693,7 +6693,7 @@ var dt;
|
|
|
6693
6693
|
(function(n) {
|
|
6694
6694
|
n[n.Uninitialized = 0] = "Uninitialized", n[n.Initializing = 1] = "Initializing", n[n.Initialized = 2] = "Initialized";
|
|
6695
6695
|
})(dt || (dt = {}));
|
|
6696
|
-
const jc = /* @__PURE__ */
|
|
6696
|
+
const jc = /* @__PURE__ */ as(function(e) {
|
|
6697
6697
|
var t, i, r, s;
|
|
6698
6698
|
let {
|
|
6699
6699
|
id: o,
|
|
@@ -9349,7 +9349,7 @@ function Ee({
|
|
|
9349
9349
|
hideLabel: c,
|
|
9350
9350
|
initialFiles: h
|
|
9351
9351
|
}) {
|
|
9352
|
-
const f =
|
|
9352
|
+
const f = ls(), m = d ?? (n.validation ? Wr(n.validation) : !1), p = !c && n.type !== "checkbox" && n.type !== "custom", v = {
|
|
9353
9353
|
value: e,
|
|
9354
9354
|
onChange: t,
|
|
9355
9355
|
onBlur: i ?? (() => {
|
|
@@ -10294,10 +10294,10 @@ const bf = se(ho), uu = ({
|
|
|
10294
10294
|
primaryAction: a,
|
|
10295
10295
|
secondaryActions: d,
|
|
10296
10296
|
otherActions: u
|
|
10297
|
-
} = n, c =
|
|
10297
|
+
} = n, c = ls(), h = o?.some(Boolean), f = a || d && d.length > 0 || u && u.length > 0;
|
|
10298
10298
|
return /* @__PURE__ */ C(Wi, { status: e, isLast: t, hideStatus: i, children: [
|
|
10299
10299
|
/* @__PURE__ */ l("div", { className: "flex min-h-8 items-center gap-3", children: /* @__PURE__ */ l(hu, { props: n, contentId: c }) }),
|
|
10300
|
-
o && h && /* @__PURE__ */ l("div", { className: "pl-9", children: /* @__PURE__ */ l(
|
|
10300
|
+
o && h && /* @__PURE__ */ l("div", { className: "pl-9", children: /* @__PURE__ */ l(bi, { items: o }) }),
|
|
10301
10301
|
r && /* @__PURE__ */ l("div", { id: c, role: "region", className: "flex flex-col gap-0 pl-4", children: s.map((m, p) => /* @__PURE__ */ l(gu, { props: m }, `${m.title}-${p}`)) }),
|
|
10302
10302
|
f && /* @__PURE__ */ l("div", { className: "pl-9", children: /* @__PURE__ */ l(
|
|
10303
10303
|
fo,
|
|
@@ -10311,7 +10311,7 @@ const bf = se(ho), uu = ({
|
|
|
10311
10311
|
}, pu = ({ props: n }) => {
|
|
10312
10312
|
const { metadata: e, primaryAction: t, secondaryActions: i, otherActions: r } = n, s = e?.some(Boolean), o = t || i && i.length > 0 || r && r.length > 0;
|
|
10313
10313
|
return /* @__PURE__ */ C("div", { className: "pl-9", children: [
|
|
10314
|
-
e && s && /* @__PURE__ */ l("div", { className: "mb-3", children: /* @__PURE__ */ l(
|
|
10314
|
+
e && s && /* @__PURE__ */ l("div", { className: "mb-3", children: /* @__PURE__ */ l(bi, { items: e }) }),
|
|
10315
10315
|
o && /* @__PURE__ */ l("div", { className: "mb-3", children: /* @__PURE__ */ l(
|
|
10316
10316
|
fo,
|
|
10317
10317
|
{
|
|
@@ -10338,7 +10338,7 @@ const bf = se(ho), uu = ({
|
|
|
10338
10338
|
),
|
|
10339
10339
|
r && /* @__PURE__ */ l(qt, { content: r, variant: "description" })
|
|
10340
10340
|
] }),
|
|
10341
|
-
/* @__PURE__ */ l("div", { className: "flex justify-end items-center gap-3 pl-9", children: e === "completed" && s && o && /* @__PURE__ */ l(
|
|
10341
|
+
/* @__PURE__ */ l("div", { className: "flex justify-end items-center gap-3 pl-9", children: e === "completed" && s && o && /* @__PURE__ */ l(bi, { items: s }) })
|
|
10342
10342
|
] });
|
|
10343
10343
|
}, go = ({ props: n }) => {
|
|
10344
10344
|
const { status: e, isLast: t = !1, hideStatus: i = !1 } = n;
|
|
@@ -10643,7 +10643,7 @@ const Sf = se(
|
|
|
10643
10643
|
),
|
|
10644
10644
|
/* @__PURE__ */ l("span", { className: "font-medium", children: n.t("surveyFormBuilder.labels.applyingChanges") })
|
|
10645
10645
|
] });
|
|
10646
|
-
}, Au =
|
|
10646
|
+
}, Au = as(Fu);
|
|
10647
10647
|
var Lu = Dd();
|
|
10648
10648
|
const yr = /* @__PURE__ */ pa(Lu), bo = (n) => {
|
|
10649
10649
|
switch (n) {
|
|
@@ -11083,20 +11083,20 @@ const $i = () => {
|
|
|
11083
11083
|
o.filter((f) => !!f.datasetKey).map((f) => f.datasetKey)
|
|
11084
11084
|
)
|
|
11085
11085
|
);
|
|
11086
|
-
return n || e ? null : /* @__PURE__ */ l("div", { className: "ml-6 flex justify-center", children: /* @__PURE__ */ C(
|
|
11087
|
-
/* @__PURE__ */ l(
|
|
11086
|
+
return n || e ? null : /* @__PURE__ */ l("div", { className: "ml-6 flex justify-center", children: /* @__PURE__ */ C(yi, { open: r, onOpenChange: s, children: [
|
|
11087
|
+
/* @__PURE__ */ l(xi, { asChild: !0, children: /* @__PURE__ */ l(
|
|
11088
11088
|
Ce,
|
|
11089
11089
|
{
|
|
11090
|
-
icon:
|
|
11090
|
+
icon: wi,
|
|
11091
11091
|
label: a("surveyFormBuilder.actions.addQuestion"),
|
|
11092
11092
|
size: "md",
|
|
11093
11093
|
variant: "outline",
|
|
11094
11094
|
hideLabel: !0
|
|
11095
11095
|
}
|
|
11096
11096
|
) }),
|
|
11097
|
-
/* @__PURE__ */ C(
|
|
11097
|
+
/* @__PURE__ */ C(Ci, { align: "center", className: "w-80", children: [
|
|
11098
11098
|
/* @__PURE__ */ l(De, { onClick: u, children: /* @__PURE__ */ C("div", { className: "flex w-full flex-row items-center gap-2", children: [
|
|
11099
|
-
/* @__PURE__ */ l(he, { icon:
|
|
11099
|
+
/* @__PURE__ */ l(he, { icon: Si, color: "default" }),
|
|
11100
11100
|
/* @__PURE__ */ l("span", { className: "flex-1 text-base font-medium", children: a("surveyFormBuilder.questionTypes.section") })
|
|
11101
11101
|
] }) }),
|
|
11102
11102
|
/* @__PURE__ */ l(xt, {}),
|
|
@@ -11452,8 +11452,8 @@ function qu({
|
|
|
11452
11452
|
questionType: i,
|
|
11453
11453
|
canDelete: r
|
|
11454
11454
|
});
|
|
11455
|
-
return /* @__PURE__ */ C(
|
|
11456
|
-
/* @__PURE__ */ l(
|
|
11455
|
+
return /* @__PURE__ */ C(yi, { open: n, onOpenChange: e, children: [
|
|
11456
|
+
/* @__PURE__ */ l(xi, { tabIndex: -1, asChild: !0, children: /* @__PURE__ */ l(
|
|
11457
11457
|
Ce,
|
|
11458
11458
|
{
|
|
11459
11459
|
icon: un,
|
|
@@ -11464,7 +11464,7 @@ function qu({
|
|
|
11464
11464
|
hideLabel: !0
|
|
11465
11465
|
}
|
|
11466
11466
|
) }),
|
|
11467
|
-
/* @__PURE__ */ C(
|
|
11467
|
+
/* @__PURE__ */ C(Ci, { className: "w-80", align: "start", children: [
|
|
11468
11468
|
/* @__PURE__ */ l(va, { className: "p-4 pb-2 font-medium text-f1-foreground-secondary", children: s("surveyFormBuilder.labels.questionOptions") }),
|
|
11469
11469
|
!f && /* @__PURE__ */ l(Zt, { children: /* @__PURE__ */ l(
|
|
11470
11470
|
wr,
|
|
@@ -11678,25 +11678,25 @@ const Sr = {
|
|
|
11678
11678
|
b && "opacity-100"
|
|
11679
11679
|
),
|
|
11680
11680
|
children: /* @__PURE__ */ C(
|
|
11681
|
-
|
|
11681
|
+
yi,
|
|
11682
11682
|
{
|
|
11683
11683
|
open: b,
|
|
11684
11684
|
onOpenChange: w,
|
|
11685
11685
|
children: [
|
|
11686
|
-
/* @__PURE__ */ l(
|
|
11686
|
+
/* @__PURE__ */ l(xi, { asChild: !0, children: /* @__PURE__ */ l(
|
|
11687
11687
|
Ce,
|
|
11688
11688
|
{
|
|
11689
|
-
icon:
|
|
11689
|
+
icon: wi,
|
|
11690
11690
|
label: x("surveyFormBuilder.actions.addQuestion"),
|
|
11691
11691
|
size: "sm",
|
|
11692
11692
|
variant: "outline",
|
|
11693
11693
|
hideLabel: !0
|
|
11694
11694
|
}
|
|
11695
11695
|
) }),
|
|
11696
|
-
/* @__PURE__ */ C(
|
|
11696
|
+
/* @__PURE__ */ C(Ci, { align: "center", className: "w-80", children: [
|
|
11697
11697
|
!g && /* @__PURE__ */ C(we, { children: [
|
|
11698
11698
|
/* @__PURE__ */ l(De, { onClick: F, children: /* @__PURE__ */ C("div", { className: "flex w-full flex-row items-center gap-2", children: [
|
|
11699
|
-
/* @__PURE__ */ l(he, { icon:
|
|
11699
|
+
/* @__PURE__ */ l(he, { icon: Si, color: "default" }),
|
|
11700
11700
|
/* @__PURE__ */ l("span", { className: "flex-1 text-base font-medium", children: x("surveyFormBuilder.questionTypes.section") })
|
|
11701
11701
|
] }) }),
|
|
11702
11702
|
/* @__PURE__ */ l(xt, {})
|
|
@@ -12366,7 +12366,7 @@ const th = {
|
|
|
12366
12366
|
};
|
|
12367
12367
|
return o ? null : /* @__PURE__ */ l(ce, { ...e, children: /* @__PURE__ */ C("div", { className: "-mx-0.5 flex flex-col items-start [&>div]:w-full", children: [
|
|
12368
12368
|
/* @__PURE__ */ l(Gi, { children: /* @__PURE__ */ l(
|
|
12369
|
-
|
|
12369
|
+
Ei,
|
|
12370
12370
|
{
|
|
12371
12371
|
axis: "y",
|
|
12372
12372
|
values: n,
|
|
@@ -12398,7 +12398,7 @@ const th = {
|
|
|
12398
12398
|
{
|
|
12399
12399
|
label: u("surveyFormBuilder.selectQuestion.addOption"),
|
|
12400
12400
|
variant: "ghost",
|
|
12401
|
-
icon:
|
|
12401
|
+
icon: wi,
|
|
12402
12402
|
onClick: p
|
|
12403
12403
|
}
|
|
12404
12404
|
) })
|
|
@@ -12482,7 +12482,7 @@ const th = {
|
|
|
12482
12482
|
showEndOfSection: e,
|
|
12483
12483
|
className: t
|
|
12484
12484
|
}) => {
|
|
12485
|
-
const { isDragging: i, setIsDragging: r, setDraggedItemId: s, draggedItemId: o } = Nt(), a =
|
|
12485
|
+
const { isDragging: i, setIsDragging: r, setDraggedItemId: s, draggedItemId: o } = Nt(), a = Ni(), { disabled: d, answering: u, getSectionContainingQuestion: c } = ue(), h = c(n.question.id), f = !!h && o === h.id, m = () => {
|
|
12486
12486
|
r(!0), s(n.question.id);
|
|
12487
12487
|
}, p = () => {
|
|
12488
12488
|
r(!1), s(null);
|
|
@@ -12538,7 +12538,7 @@ const th = {
|
|
|
12538
12538
|
}
|
|
12539
12539
|
);
|
|
12540
12540
|
}, oh = ({ question: n }) => {
|
|
12541
|
-
const { isDragging: e, setIsDragging: t, setDraggedItemId: i } = Nt(), r =
|
|
12541
|
+
const { isDragging: e, setIsDragging: t, setDraggedItemId: i } = Nt(), r = Ni(), { disabled: s, answering: o, getSectionContainingQuestion: a } = ue(), d = a(n.id), u = () => {
|
|
12542
12542
|
t(!0), i(n.id);
|
|
12543
12543
|
}, c = () => {
|
|
12544
12544
|
t(!1), i(null);
|
|
@@ -12713,7 +12713,7 @@ const th = {
|
|
|
12713
12713
|
] }),
|
|
12714
12714
|
!s && /* @__PURE__ */ C(we, { children: [
|
|
12715
12715
|
/* @__PURE__ */ l(Gi, { children: /* @__PURE__ */ l(
|
|
12716
|
-
|
|
12716
|
+
Ei,
|
|
12717
12717
|
{
|
|
12718
12718
|
axis: "y",
|
|
12719
12719
|
values: i,
|
|
@@ -12735,7 +12735,7 @@ const th = {
|
|
|
12735
12735
|
item: n,
|
|
12736
12736
|
className: e
|
|
12737
12737
|
}) => {
|
|
12738
|
-
const { isDragging: t, setIsDragging: i, setDraggedItemId: r, draggedItemId: s } = Nt(), o =
|
|
12738
|
+
const { isDragging: t, setIsDragging: i, setDraggedItemId: r, draggedItemId: s } = Nt(), o = Ni(), { disabled: a, answering: d } = ue(), u = s === n.section.id, c = () => {
|
|
12739
12739
|
i(!0), r(n.section.id);
|
|
12740
12740
|
}, h = () => {
|
|
12741
12741
|
i(!1), r(null);
|
|
@@ -12920,7 +12920,7 @@ const th = {
|
|
|
12920
12920
|
return {
|
|
12921
12921
|
id: _,
|
|
12922
12922
|
label: y.title || t,
|
|
12923
|
-
icon:
|
|
12923
|
+
icon: Si,
|
|
12924
12924
|
onClick: S,
|
|
12925
12925
|
...!v && !g && !y.locked && {
|
|
12926
12926
|
otherActions: [
|
|
@@ -13313,7 +13313,7 @@ const bh = ({
|
|
|
13313
13313
|
exit: { filter: "blur(0px)" },
|
|
13314
13314
|
children: [
|
|
13315
13315
|
/* @__PURE__ */ l(
|
|
13316
|
-
|
|
13316
|
+
Ei,
|
|
13317
13317
|
{
|
|
13318
13318
|
axis: "y",
|
|
13319
13319
|
values: h,
|
|
@@ -14308,7 +14308,7 @@ function Ah({
|
|
|
14308
14308
|
),
|
|
14309
14309
|
children: [
|
|
14310
14310
|
/* @__PURE__ */ l("div", { className: "mb-6", children: /* @__PURE__ */ l(
|
|
14311
|
-
|
|
14311
|
+
ts,
|
|
14312
14312
|
{
|
|
14313
14313
|
title: i,
|
|
14314
14314
|
description: r,
|
|
@@ -14325,7 +14325,7 @@ function Ah({
|
|
|
14325
14325
|
alignItems: "center",
|
|
14326
14326
|
paddingX: "lg",
|
|
14327
14327
|
children: /* @__PURE__ */ l(
|
|
14328
|
-
|
|
14328
|
+
ns,
|
|
14329
14329
|
{
|
|
14330
14330
|
emoji: L.emoji,
|
|
14331
14331
|
title: L.title,
|
|
@@ -14408,7 +14408,7 @@ function Lh({
|
|
|
14408
14408
|
datasets: d,
|
|
14409
14409
|
children: /* @__PURE__ */ C("div", { className: "mx-auto flex w-full max-w-3xl flex-col", children: [
|
|
14410
14410
|
/* @__PURE__ */ l("div", { className: "mb-6", children: /* @__PURE__ */ l(
|
|
14411
|
-
|
|
14411
|
+
ts,
|
|
14412
14412
|
{
|
|
14413
14413
|
title: e,
|
|
14414
14414
|
description: t,
|
|
@@ -14437,7 +14437,7 @@ function Lh({
|
|
|
14437
14437
|
alignItems: "center",
|
|
14438
14438
|
paddingX: "lg",
|
|
14439
14439
|
children: /* @__PURE__ */ l(
|
|
14440
|
-
|
|
14440
|
+
ns,
|
|
14441
14441
|
{
|
|
14442
14442
|
emoji: f.emoji,
|
|
14443
14443
|
title: f.title,
|
|
@@ -14485,7 +14485,7 @@ const Oh = ({ benefits: n }) => /* @__PURE__ */ l("div", { className: "flex flex
|
|
|
14485
14485
|
/* @__PURE__ */ C("div", { className: "flex flex-col gap-5", children: [
|
|
14486
14486
|
/* @__PURE__ */ C("div", { className: "flex flex-col gap-2", children: [
|
|
14487
14487
|
/* @__PURE__ */ C("div", { className: "flex flex-row items-center gap-2", children: [
|
|
14488
|
-
s && /* @__PURE__ */ l(
|
|
14488
|
+
s && /* @__PURE__ */ l(is, { module: s }),
|
|
14489
14489
|
o && /* @__PURE__ */ l("p", { className: "text-base font-medium text-f1-foreground", children: o })
|
|
14490
14490
|
] }),
|
|
14491
14491
|
(a || d) && /* @__PURE__ */ C("div", { className: "flex justify-start gap-2", children: [
|
|
@@ -14531,7 +14531,7 @@ function Ih({
|
|
|
14531
14531
|
children: [
|
|
14532
14532
|
/* @__PURE__ */ C("div", { className: "flex flex-row items-center justify-between px-4 py-4", children: [
|
|
14533
14533
|
/* @__PURE__ */ C(za, { className: "flex flex-row items-center gap-2 text-lg font-semibold text-f1-foreground", children: [
|
|
14534
|
-
r && /* @__PURE__ */ l(
|
|
14534
|
+
r && /* @__PURE__ */ l(is, { module: r, size: "lg" }),
|
|
14535
14535
|
t
|
|
14536
14536
|
] }),
|
|
14537
14537
|
/* @__PURE__ */ l(
|
|
@@ -14639,7 +14639,7 @@ function Bh({
|
|
|
14639
14639
|
}
|
|
14640
14640
|
),
|
|
14641
14641
|
T && b && /* @__PURE__ */ l(
|
|
14642
|
-
|
|
14642
|
+
rs,
|
|
14643
14643
|
{
|
|
14644
14644
|
open: !0,
|
|
14645
14645
|
onClose: () => {
|
|
@@ -14714,7 +14714,7 @@ function Ph({
|
|
|
14714
14714
|
] }),
|
|
14715
14715
|
a && /* @__PURE__ */ l(Pa, { className: "p-3", children: a.map(
|
|
14716
14716
|
(m) => m.type === "upsell" ? /* @__PURE__ */ l(
|
|
14717
|
-
|
|
14717
|
+
ss,
|
|
14718
14718
|
{
|
|
14719
14719
|
label: m.label,
|
|
14720
14720
|
onRequest: m.onClick,
|
|
@@ -14742,7 +14742,7 @@ function Ph({
|
|
|
14742
14742
|
const Hh = se(Ph), ko = qe(
|
|
14743
14743
|
function({ primaryAction: e, secondaryAction: t, ...i }, r) {
|
|
14744
14744
|
const s = (d) => d.variant === "promote" ? /* @__PURE__ */ l(
|
|
14745
|
-
|
|
14745
|
+
ss,
|
|
14746
14746
|
{
|
|
14747
14747
|
label: d.label,
|
|
14748
14748
|
onRequest: async () => {
|
|
@@ -14857,7 +14857,7 @@ function Wh({
|
|
|
14857
14857
|
)
|
|
14858
14858
|
] }),
|
|
14859
14859
|
R?.type === "upsell" && R.showConfirmation && S && /* @__PURE__ */ l(
|
|
14860
|
-
|
|
14860
|
+
rs,
|
|
14861
14861
|
{
|
|
14862
14862
|
open: !0,
|
|
14863
14863
|
onClose: k,
|
|
@@ -14917,7 +14917,7 @@ export {
|
|
|
14917
14917
|
Xf as F0AvatarFile,
|
|
14918
14918
|
Yf as F0AvatarIcon,
|
|
14919
14919
|
Jf as F0AvatarList,
|
|
14920
|
-
|
|
14920
|
+
is as F0AvatarModule,
|
|
14921
14921
|
Zf as F0AvatarPerson,
|
|
14922
14922
|
em as F0AvatarTeam,
|
|
14923
14923
|
tf as F0BigNumber,
|
|
@@ -14978,7 +14978,7 @@ export {
|
|
|
14978
14978
|
Dm as OneCalendar,
|
|
14979
14979
|
Rm as OneCalendarInternal,
|
|
14980
14980
|
Yi as OneEllipsis,
|
|
14981
|
-
|
|
14981
|
+
ns as OneEmptyState,
|
|
14982
14982
|
km as OneFilterPicker,
|
|
14983
14983
|
sp as PieChart,
|
|
14984
14984
|
Tm as PieChartSkeleton,
|
|
@@ -15000,9 +15000,9 @@ export {
|
|
|
15000
15000
|
wf as Tag,
|
|
15001
15001
|
Mm as TagCounter,
|
|
15002
15002
|
Jh as TwoColumnLayout,
|
|
15003
|
-
|
|
15003
|
+
rs as UpsellRequestResponseDialog,
|
|
15004
15004
|
Df as UpsellingBanner,
|
|
15005
|
-
|
|
15005
|
+
ss as UpsellingButton,
|
|
15006
15006
|
Rf as UpsellingPopover,
|
|
15007
15007
|
cp as VerticalBarChart,
|
|
15008
15008
|
zm as WeekStartDay,
|
|
@@ -382,6 +382,7 @@ export declare const defaultTranslations: {
|
|
|
382
382
|
readonly unsavedChanges: "Unsaved changes";
|
|
383
383
|
readonly saveChanges: "Save changes";
|
|
384
384
|
readonly discardChanges: "Discard";
|
|
385
|
+
readonly saveAsChanges: "Save as";
|
|
385
386
|
readonly exportTable: "Download table";
|
|
386
387
|
readonly generatedTableFilename: "OneGeneratedTable";
|
|
387
388
|
readonly feedbackModal: {
|
|
@@ -431,6 +432,7 @@ export declare const defaultTranslations: {
|
|
|
431
432
|
};
|
|
432
433
|
readonly reportCard: {
|
|
433
434
|
readonly reportLabel: "Report";
|
|
435
|
+
readonly tableLabel: "Table";
|
|
434
436
|
readonly openButton: "Open";
|
|
435
437
|
};
|
|
436
438
|
readonly formCard: {
|
|
@@ -439,6 +441,7 @@ export declare const defaultTranslations: {
|
|
|
439
441
|
readonly dashboard: {
|
|
440
442
|
readonly save: "Save";
|
|
441
443
|
readonly saveToAnalytics: "Save the dashboard in Analytics";
|
|
444
|
+
readonly saveTableToAnalytics: "Save the table in Analytics";
|
|
442
445
|
readonly saveAs: "Save as";
|
|
443
446
|
readonly saveDialog: {
|
|
444
447
|
readonly title: "Save dashboard";
|
|
@@ -448,12 +451,21 @@ export declare const defaultTranslations: {
|
|
|
448
451
|
readonly save: "Save";
|
|
449
452
|
readonly cancel: "Cancel";
|
|
450
453
|
};
|
|
454
|
+
readonly status: {
|
|
455
|
+
readonly saved: "Saved";
|
|
456
|
+
readonly draft: "Draft";
|
|
457
|
+
readonly unsaved: "Unsaved";
|
|
458
|
+
};
|
|
459
|
+
readonly statusLabel: "Status";
|
|
460
|
+
readonly lastEdited: "Last edited";
|
|
461
|
+
readonly createdBy: "Created by";
|
|
451
462
|
};
|
|
452
463
|
readonly dataDownload: {
|
|
453
464
|
readonly title: "Download";
|
|
454
465
|
readonly download: "Download {{format}}";
|
|
455
466
|
readonly exportDashboard: "Export dashboard as {{format}}";
|
|
456
|
-
readonly
|
|
467
|
+
readonly export: "Export";
|
|
468
|
+
readonly exporting: "Exporting…";
|
|
457
469
|
readonly rows: "{{amount}} rows";
|
|
458
470
|
};
|
|
459
471
|
readonly dashboardItem: {
|
|
@@ -822,9 +834,8 @@ declare module "@tiptap/core" {
|
|
|
822
834
|
|
|
823
835
|
declare module "@tiptap/core" {
|
|
824
836
|
interface Commands<ReturnType> {
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
clearEnhanceHighlight: () => ReturnType;
|
|
837
|
+
moodTracker: {
|
|
838
|
+
insertMoodTracker: (data: MoodTrackerData) => ReturnType;
|
|
828
839
|
};
|
|
829
840
|
}
|
|
830
841
|
}
|
|
@@ -832,8 +843,9 @@ declare module "@tiptap/core" {
|
|
|
832
843
|
|
|
833
844
|
declare module "@tiptap/core" {
|
|
834
845
|
interface Commands<ReturnType> {
|
|
835
|
-
|
|
836
|
-
|
|
846
|
+
enhanceHighlight: {
|
|
847
|
+
setEnhanceHighlight: (from: number, to: number) => ReturnType;
|
|
848
|
+
clearEnhanceHighlight: () => ReturnType;
|
|
837
849
|
};
|
|
838
850
|
}
|
|
839
851
|
}
|