@factorialco/f0-react 1.413.0 → 1.413.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-C58IuYYg.js → F0AiChat-CMz8oLke.js} +2834 -2803
- package/dist/F0AnalyticsDashboard-Doa70ufI.js +54136 -0
- package/dist/F0AnalyticsDashboard.css +1 -1
- package/dist/F0ChatDashboard.js +290 -2
- package/dist/{F0HILActionConfirmation-CasXGy89.js → F0HILActionConfirmation-MJSEogqB.js} +321 -315
- package/dist/{F0Input-JjjfHKNJ.js → F0Input-C9w04Jpr.js} +92 -93
- package/dist/ai.d.ts +83 -29
- package/dist/ai.js +43 -41
- package/dist/experimental.js +1902 -1998
- package/dist/f0.d.ts +83 -29
- package/dist/f0.js +250 -247
- package/dist/{index-DuS_uOqo.js → index-Brt3Hz6G.js} +3 -3
- package/dist/useDataCollectionSource-CzKsWqw5.js +10111 -0
- package/dist/useDataCollectionSource.css +1 -0
- package/package.json +1 -1
- package/dist/F0AnalyticsDashboard-HOK1Grhk.js +0 -64242
- package/dist/F0ChatDashboard-e_oKQtbl.js +0 -292
|
@@ -109665,23 +109665,23 @@ export {
|
|
|
109665
109665
|
kH as d$,
|
|
109666
109666
|
bc as d0,
|
|
109667
109667
|
GI as d1,
|
|
109668
|
-
|
|
109669
|
-
|
|
109670
|
-
|
|
109671
|
-
|
|
109672
|
-
|
|
109673
|
-
|
|
109674
|
-
|
|
109675
|
-
|
|
109676
|
-
|
|
109677
|
-
|
|
109678
|
-
|
|
109679
|
-
|
|
109680
|
-
|
|
109681
|
-
|
|
109682
|
-
|
|
109683
|
-
|
|
109684
|
-
|
|
109668
|
+
Jn1 as d2,
|
|
109669
|
+
Lk as d3,
|
|
109670
|
+
wB as d4,
|
|
109671
|
+
AB as d5,
|
|
109672
|
+
Ad as d6,
|
|
109673
|
+
Td as d7,
|
|
109674
|
+
Dd as d8,
|
|
109675
|
+
Ow as d9,
|
|
109676
|
+
II as dA,
|
|
109677
|
+
XI as dB,
|
|
109678
|
+
ka as dC,
|
|
109679
|
+
tB as dD,
|
|
109680
|
+
rB as dE,
|
|
109681
|
+
hr1 as dF,
|
|
109682
|
+
cB as dG,
|
|
109683
|
+
CB as dH,
|
|
109684
|
+
gr1 as dI,
|
|
109685
109685
|
br1 as dJ,
|
|
109686
109686
|
wr1 as dK,
|
|
109687
109687
|
yr1 as dL,
|
|
@@ -109700,87 +109700,86 @@ export {
|
|
|
109700
109700
|
d0 as dY,
|
|
109701
109701
|
or as dZ,
|
|
109702
109702
|
qs2 as d_,
|
|
109703
|
-
|
|
109704
|
-
|
|
109705
|
-
|
|
109706
|
-
|
|
109707
|
-
|
|
109708
|
-
|
|
109709
|
-
|
|
109710
|
-
|
|
109711
|
-
|
|
109712
|
-
|
|
109713
|
-
|
|
109714
|
-
|
|
109715
|
-
|
|
109716
|
-
|
|
109717
|
-
|
|
109718
|
-
|
|
109719
|
-
|
|
109720
|
-
|
|
109721
|
-
|
|
109722
|
-
|
|
109723
|
-
|
|
109724
|
-
|
|
109725
|
-
|
|
109726
|
-
|
|
109727
|
-
|
|
109703
|
+
qu2 as da,
|
|
109704
|
+
zr1 as db,
|
|
109705
|
+
UI as dc,
|
|
109706
|
+
QI as dd,
|
|
109707
|
+
bj as de,
|
|
109708
|
+
Cr1 as df,
|
|
109709
|
+
Zr1 as dg,
|
|
109710
|
+
p8 as dh,
|
|
109711
|
+
Qn1 as di,
|
|
109712
|
+
cx as dj,
|
|
109713
|
+
Ar1 as dk,
|
|
109714
|
+
qn as dl,
|
|
109715
|
+
Xe1 as dm,
|
|
109716
|
+
D3 as dn,
|
|
109717
|
+
n01 as dp,
|
|
109718
|
+
Qr1 as dq,
|
|
109719
|
+
Jr1 as dr,
|
|
109720
|
+
lF as ds,
|
|
109721
|
+
n4 as dt,
|
|
109722
|
+
gc as du,
|
|
109723
|
+
sr1 as dv,
|
|
109724
|
+
lr1 as dw,
|
|
109725
|
+
WI as dx,
|
|
109726
|
+
mI as dy,
|
|
109727
|
+
gI as dz,
|
|
109728
109728
|
JL as e,
|
|
109729
109729
|
sd as e0,
|
|
109730
109730
|
HH as e1,
|
|
109731
109731
|
zk as e2,
|
|
109732
109732
|
wc as e3,
|
|
109733
|
-
|
|
109734
|
-
|
|
109735
|
-
|
|
109736
|
-
|
|
109737
|
-
|
|
109738
|
-
|
|
109739
|
-
|
|
109740
|
-
|
|
109741
|
-
|
|
109742
|
-
|
|
109743
|
-
|
|
109744
|
-
|
|
109745
|
-
|
|
109746
|
-
|
|
109747
|
-
|
|
109748
|
-
|
|
109749
|
-
|
|
109750
|
-
|
|
109751
|
-
|
|
109752
|
-
|
|
109753
|
-
|
|
109754
|
-
|
|
109755
|
-
|
|
109756
|
-
|
|
109757
|
-
|
|
109758
|
-
|
|
109759
|
-
|
|
109760
|
-
|
|
109761
|
-
|
|
109762
|
-
|
|
109763
|
-
|
|
109764
|
-
|
|
109765
|
-
|
|
109766
|
-
|
|
109767
|
-
|
|
109768
|
-
|
|
109769
|
-
c8 as
|
|
109770
|
-
|
|
109771
|
-
|
|
109772
|
-
|
|
109773
|
-
|
|
109774
|
-
|
|
109775
|
-
|
|
109776
|
-
|
|
109777
|
-
|
|
109778
|
-
|
|
109779
|
-
|
|
109780
|
-
|
|
109781
|
-
|
|
109782
|
-
|
|
109783
|
-
nl2 as ez,
|
|
109733
|
+
er as e4,
|
|
109734
|
+
Qn as e5,
|
|
109735
|
+
oD as e6,
|
|
109736
|
+
Ml as e7,
|
|
109737
|
+
c3 as e8,
|
|
109738
|
+
t7 as e9,
|
|
109739
|
+
j2 as eA,
|
|
109740
|
+
Y1 as eB,
|
|
109741
|
+
i9 as eC,
|
|
109742
|
+
Fr as eD,
|
|
109743
|
+
r8 as eE,
|
|
109744
|
+
Nr1 as eF,
|
|
109745
|
+
Dr1 as eG,
|
|
109746
|
+
Tr1 as eH,
|
|
109747
|
+
F4 as eI,
|
|
109748
|
+
pi as eJ,
|
|
109749
|
+
y3 as eK,
|
|
109750
|
+
a7 as eL,
|
|
109751
|
+
dl2 as eM,
|
|
109752
|
+
Fu2 as eN,
|
|
109753
|
+
Jv as eO,
|
|
109754
|
+
cd2 as eP,
|
|
109755
|
+
dd2 as eQ,
|
|
109756
|
+
kF as eR,
|
|
109757
|
+
ah as ea,
|
|
109758
|
+
SN as eb,
|
|
109759
|
+
er1 as ec,
|
|
109760
|
+
q6 as ed,
|
|
109761
|
+
nl2 as ee,
|
|
109762
|
+
tl2 as ef,
|
|
109763
|
+
gs2 as eg,
|
|
109764
|
+
pl as eh,
|
|
109765
|
+
tx as ei,
|
|
109766
|
+
nx as ej,
|
|
109767
|
+
rx as ek,
|
|
109768
|
+
PH as el,
|
|
109769
|
+
c8 as em,
|
|
109770
|
+
b91 as en,
|
|
109771
|
+
V6 as eo,
|
|
109772
|
+
E6 as ep,
|
|
109773
|
+
or1 as eq,
|
|
109774
|
+
Yb as er,
|
|
109775
|
+
R01 as es,
|
|
109776
|
+
jC2 as et,
|
|
109777
|
+
Xr1 as eu,
|
|
109778
|
+
k01 as ev,
|
|
109779
|
+
ll2 as ew,
|
|
109780
|
+
ef2 as ex,
|
|
109781
|
+
Tn1 as ey,
|
|
109782
|
+
sn1 as ez,
|
|
109784
109783
|
ZN as f,
|
|
109785
109784
|
y6 as g,
|
|
109786
109785
|
E3 as h,
|
package/dist/ai.d.ts
CHANGED
|
@@ -203,8 +203,6 @@ declare type AiChatProviderReturnValue = {
|
|
|
203
203
|
} & Pick<AiChatState, "greeting" | "agent" | "disclaimer" | "resizable" | "entityResolvers" | "toolHints"> & {
|
|
204
204
|
/** The current canvas content, or null when canvas is closed */
|
|
205
205
|
canvasContent: CanvasContent | null;
|
|
206
|
-
/** The dashboard config from the current canvas content, or null */
|
|
207
|
-
canvasDashboard: ChatDashboardConfig | null;
|
|
208
206
|
/** Open the canvas panel with the given content */
|
|
209
207
|
openCanvas: (content: CanvasContent) => void;
|
|
210
208
|
/** Close the canvas panel and restore the previous visualization mode */
|
|
@@ -213,10 +211,6 @@ declare type AiChatProviderReturnValue = {
|
|
|
213
211
|
activeToolHint: AiChatToolHint | null;
|
|
214
212
|
/** Set the active tool hint (pass null to clear) */
|
|
215
213
|
setActiveToolHint: React.Dispatch<React.SetStateAction<AiChatToolHint | null>>;
|
|
216
|
-
/** Get a saved dashboard config by toolCallId (returns updated config after user edits) */
|
|
217
|
-
getSavedDashboardConfig: (toolCallId: string) => ChatDashboardConfig | undefined;
|
|
218
|
-
/** Save an updated dashboard config keyed by toolCallId */
|
|
219
|
-
updateDashboardConfig: (toolCallId: string, config: ChatDashboardConfig) => void;
|
|
220
214
|
};
|
|
221
215
|
|
|
222
216
|
/**
|
|
@@ -367,19 +361,54 @@ export declare function Blockquote({ children, ...props }: React.HTMLAttributes<
|
|
|
367
361
|
|
|
368
362
|
/**
|
|
369
363
|
* Discriminated union for canvas panel content.
|
|
370
|
-
*
|
|
364
|
+
* Add new entity types to this union as they are implemented.
|
|
371
365
|
*/
|
|
372
|
-
export declare type CanvasContent =
|
|
373
|
-
|
|
366
|
+
export declare type CanvasContent = DashboardCanvasContent;
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* Base shape shared by all canvas content types.
|
|
370
|
+
* Every entity adds its own fields on top of this.
|
|
371
|
+
*/
|
|
372
|
+
export declare type CanvasContentBase = {
|
|
373
|
+
type: string;
|
|
374
374
|
title: string;
|
|
375
|
-
config: ChatDashboardConfig;
|
|
376
|
-
apiConfig: {
|
|
377
|
-
baseUrl: string;
|
|
378
|
-
headers: Record<string, string>;
|
|
379
|
-
};
|
|
380
375
|
toolCallId?: string;
|
|
381
376
|
};
|
|
382
377
|
|
|
378
|
+
/**
|
|
379
|
+
* Contract for a canvas entity type.
|
|
380
|
+
*
|
|
381
|
+
* Each entity (dashboard, survey, goal, job-posting…) implements this
|
|
382
|
+
* interface and registers itself via `registerCanvasEntity()`.
|
|
383
|
+
*
|
|
384
|
+
* To add a new entity type:
|
|
385
|
+
* 1. Create a folder in `canvas/entities/<your-entity>/`
|
|
386
|
+
* 2. Define a type extending `CanvasContentBase` in `types.ts`
|
|
387
|
+
* 3. Implement `CanvasEntityDefinition` in `index.ts`
|
|
388
|
+
* 4. Import the entity module in `canvas/index.ts`
|
|
389
|
+
*/
|
|
390
|
+
export declare type CanvasEntityDefinition<T extends CanvasContentBase = CanvasContentBase> = {
|
|
391
|
+
/** Must match the `type` discriminant on the content object */
|
|
392
|
+
type: T["type"];
|
|
393
|
+
/** Renders the main body of the canvas panel */
|
|
394
|
+
renderContent: (props: {
|
|
395
|
+
content: T;
|
|
396
|
+
refreshKey: number;
|
|
397
|
+
}) => ReactNode;
|
|
398
|
+
/** Renders header actions (placed before the close button) */
|
|
399
|
+
renderHeaderActions: (props: {
|
|
400
|
+
content: T;
|
|
401
|
+
}) => ReactNode;
|
|
402
|
+
/**
|
|
403
|
+
* Optional wrapper providing entity-scoped context around
|
|
404
|
+
* both header actions and body (e.g. shared edit-mode state).
|
|
405
|
+
*/
|
|
406
|
+
wrapper?: (props: {
|
|
407
|
+
content: T;
|
|
408
|
+
children: ReactNode;
|
|
409
|
+
}) => ReactNode;
|
|
410
|
+
};
|
|
411
|
+
|
|
383
412
|
export declare interface ChartComputation {
|
|
384
413
|
datasetId: string;
|
|
385
414
|
xAxis: string;
|
|
@@ -548,6 +577,29 @@ export declare interface CollectionComputation {
|
|
|
548
577
|
*/
|
|
549
578
|
export declare type CSSRgbString = `rgb(${number}, ${number}, ${number})` | `rgb(${number},${number},${number})`;
|
|
550
579
|
|
|
580
|
+
/**
|
|
581
|
+
* Dashboard canvas content — renders an analytics dashboard.
|
|
582
|
+
*/
|
|
583
|
+
export declare type DashboardCanvasContent = CanvasContentBase & {
|
|
584
|
+
type: "dashboard";
|
|
585
|
+
config: ChatDashboardConfig;
|
|
586
|
+
apiConfig: {
|
|
587
|
+
baseUrl: string;
|
|
588
|
+
headers: Record<string, string>;
|
|
589
|
+
};
|
|
590
|
+
};
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* Dashboard-specific card that wraps CanvasCard with config-store
|
|
594
|
+
* subscription logic. Re-renders when the user edits and saves
|
|
595
|
+
* the dashboard layout.
|
|
596
|
+
*/
|
|
597
|
+
declare function DashboardCard({ config: originalConfig, onView, toolCallId, }: F0ChatReportCardProps): JSX_2.Element;
|
|
598
|
+
|
|
599
|
+
declare namespace DashboardCard {
|
|
600
|
+
var displayName: string;
|
|
601
|
+
}
|
|
602
|
+
|
|
551
603
|
export declare interface DashboardFetchSpec {
|
|
552
604
|
fetch: Array<{
|
|
553
605
|
toolId: string;
|
|
@@ -1395,29 +1447,19 @@ declare const F0AuraVoiceAnimationVariants: (props?: ({
|
|
|
1395
1447
|
})) | undefined) => string;
|
|
1396
1448
|
|
|
1397
1449
|
/**
|
|
1398
|
-
*
|
|
1399
|
-
*
|
|
1400
|
-
* title/description, and an item summary in metadata. Clicking the
|
|
1401
|
-
* card triggers `onView` to open the canvas panel.
|
|
1402
|
-
*
|
|
1403
|
-
* Subscribes to the external `savedDashboardConfigStore` via
|
|
1404
|
-
* `useSyncExternalStore` so it re-renders when the user edits the
|
|
1405
|
-
* dashboard layout and saves — independently of React context.
|
|
1450
|
+
* @deprecated Use `DashboardCard` from `canvas/entities/dashboard` directly.
|
|
1451
|
+
* This re-export exists for backwards compatibility.
|
|
1406
1452
|
*/
|
|
1407
|
-
export declare
|
|
1453
|
+
export declare const F0ChatReportCard: typeof DashboardCard;
|
|
1408
1454
|
|
|
1409
|
-
export declare
|
|
1410
|
-
var displayName: string;
|
|
1411
|
-
}
|
|
1412
|
-
|
|
1413
|
-
export declare interface F0ChatReportCardProps {
|
|
1455
|
+
export declare type F0ChatReportCardProps = {
|
|
1414
1456
|
/** The original dashboard config from the agent */
|
|
1415
1457
|
config: ChatDashboardConfig;
|
|
1416
1458
|
/** Callback when the user clicks the card to view the report */
|
|
1417
1459
|
onView: (config: ChatDashboardConfig) => void;
|
|
1418
1460
|
/** Tool call ID used to look up saved (edited) dashboard configs */
|
|
1419
1461
|
toolCallId?: string;
|
|
1420
|
-
}
|
|
1462
|
+
};
|
|
1421
1463
|
|
|
1422
1464
|
/**
|
|
1423
1465
|
* Component that renders an optional markdown preview followed by
|
|
@@ -1661,6 +1703,12 @@ declare interface GaugeComputation {
|
|
|
1661
1703
|
name?: string;
|
|
1662
1704
|
}
|
|
1663
1705
|
|
|
1706
|
+
/**
|
|
1707
|
+
* Look up a registered entity definition by content type.
|
|
1708
|
+
* Returns `undefined` if the type hasn't been registered.
|
|
1709
|
+
*/
|
|
1710
|
+
export declare function getCanvasEntity(type: string): CanvasEntityDefinition<any> | undefined;
|
|
1711
|
+
|
|
1664
1712
|
export declare function H1({ children, ...props }: React.HTMLAttributes<HTMLHeadingElement>): JSX_2.Element;
|
|
1665
1713
|
|
|
1666
1714
|
export declare function H2({ children, ...props }: React.HTMLAttributes<HTMLHeadingElement>): JSX_2.Element;
|
|
@@ -1806,6 +1854,12 @@ declare interface RadarComputation {
|
|
|
1806
1854
|
sortOrder?: "asc" | "desc";
|
|
1807
1855
|
}
|
|
1808
1856
|
|
|
1857
|
+
/**
|
|
1858
|
+
* Register a canvas entity definition.
|
|
1859
|
+
* Called as a side-effect when each entity module is imported.
|
|
1860
|
+
*/
|
|
1861
|
+
export declare function registerCanvasEntity<T extends CanvasContentBase>(definition: CanvasEntityDefinition<T>): void;
|
|
1862
|
+
|
|
1809
1863
|
export declare function Strong({ children, ...props }: React.HTMLAttributes<HTMLSpanElement>): JSX_2.Element;
|
|
1810
1864
|
|
|
1811
1865
|
export declare function Table({ children, ...props }: React.HTMLAttributes<HTMLTableElement>): JSX_2.Element;
|
package/dist/ai.js
CHANGED
|
@@ -1,56 +1,58 @@
|
|
|
1
|
-
import { I as e, u as t } from "./F0Input-
|
|
1
|
+
import { I as e, u as t } from "./F0Input-C9w04Jpr.js";
|
|
2
2
|
import { defaultTranslations as i } from "./i18n-provider-defaults.js";
|
|
3
|
-
import { A as r, B as l, C as A, p as F, E as c,
|
|
4
|
-
import { A as
|
|
3
|
+
import { A as r, B as l, C as A, p as F, E as c, h as u, F as C, a as h, D as d, i as m, b as T, j as f, w as p, x as g, y as I, z as S, c as k, q as x, s as v, t as H, H as M, I as P, L as b, O as w, v as E, P as O, S as y, T as D, m as R, n as L, o as q, U as z, k as B, l as U, g as j, r as V, u as G, d as J, f as K, e as N } from "./F0AiChat-CMz8oLke.js";
|
|
4
|
+
import { A as W, F as X, c as Y, d as Z, e as _, b as $, a as aa, o as sa, u as ea } from "./F0HILActionConfirmation-MJSEogqB.js";
|
|
5
5
|
export {
|
|
6
6
|
r as A,
|
|
7
|
-
|
|
7
|
+
W as AiChatTranslationsProvider,
|
|
8
8
|
l as Blockquote,
|
|
9
9
|
A as ChatSpinner,
|
|
10
10
|
F as Em,
|
|
11
11
|
c as EntityRef,
|
|
12
12
|
u as F0ActionItem,
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
C as F0AiChat,
|
|
14
|
+
h as F0AiChatProvider,
|
|
15
15
|
d as F0AiChatTextArea,
|
|
16
16
|
m as F0AiCollapsibleMessage,
|
|
17
17
|
T as F0AiFullscreenChat,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
18
|
+
X as F0AiMask,
|
|
19
|
+
Y as F0AuraVoiceAnimation,
|
|
20
|
+
Z as F0ChatReportCard,
|
|
21
|
+
f as F0DataDownload,
|
|
22
|
+
_ as F0HILActionConfirmation,
|
|
23
|
+
p as F0MessageSources,
|
|
24
|
+
g as F0OneIcon,
|
|
25
|
+
I as F0OneSwitch,
|
|
26
|
+
S as F0Thinking,
|
|
27
|
+
k as FullscreenChatContext,
|
|
28
|
+
x as H1,
|
|
29
|
+
v as H2,
|
|
30
|
+
H as H3,
|
|
31
|
+
M as Hr,
|
|
32
32
|
e as I18nProvider,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
33
|
+
P as Image,
|
|
34
|
+
b as Li,
|
|
35
|
+
w as Ol,
|
|
36
|
+
E as P,
|
|
37
|
+
O as Pre,
|
|
38
|
+
y as Strong,
|
|
39
|
+
D as Table,
|
|
40
|
+
R as TableSimple,
|
|
41
|
+
L as Td,
|
|
42
|
+
q as Th,
|
|
43
|
+
z as Ul,
|
|
44
|
+
$ as actionItemStatuses,
|
|
45
|
+
aa as aiTranslations,
|
|
46
46
|
i as defaultTranslations,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
G as
|
|
47
|
+
B as f0MarkdownRenderers,
|
|
48
|
+
U as f0MarkdownRenderersSimple,
|
|
49
|
+
j as getCanvasEntity,
|
|
50
|
+
sa as oneIconSizes,
|
|
51
|
+
V as registerCanvasEntity,
|
|
52
|
+
G as useAiChat,
|
|
53
|
+
ea as useAiChatTranslations,
|
|
54
|
+
J as useDefaultCopilotActions,
|
|
53
55
|
t as useI18n,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
+
K as useMessageSourcesAction,
|
|
57
|
+
N as useOrchestratorThinkingAction
|
|
56
58
|
};
|