@factorialco/f0-react 6.3.2 → 6.4.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/{ChatPdfThumbnail-DsiMxESY.js → ChatPdfThumbnail-DyDN7a-p.js} +1 -1
- package/dist/{DocumentToolbar-CO9RsNK1.js → DocumentToolbar-CAyUihSI.js} +1 -1
- package/dist/{DocxViewer-BRrCHV2y.js → DocxViewer-Dl3crfqU.js} +1 -1
- package/dist/{SheetViewer-CKOeLEd2.js → SheetViewer-CqS4McZP.js} +1 -1
- package/dist/{TextViewer-BmDrm887.js → TextViewer-CnSGe6Lw.js} +1 -1
- package/dist/ai.d.ts +34 -2
- package/dist/component-status.js +1 -1
- package/dist/experimental.d.ts +34 -2
- package/dist/experimental.js +4 -4
- package/dist/f0.d.ts +158 -5
- package/dist/f0.js +10387 -10064
- package/dist/{index-DZ4jJo6T.js → index-C5uJNrqj.js} +24 -24
- package/dist/{index-BnjwVHNf.js → index-Cdvq3ahA.js} +2 -2
- package/dist/{pdfWorker-CtIjWi5f.js → pdfWorker-CDTHY8xz.js} +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as i, jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import { useState as u, useCallback as m, useMemo as p } from "react";
|
|
3
3
|
import { u as x, i as w, j as k, k as S, l as C } from "./F0CanvasPanel-C6qzM_nP.js";
|
|
4
|
-
import { n as g, a as h, f as v, T as r, d as F } from "./index-
|
|
4
|
+
import { n as g, a as h, f as v, T as r, d as F } from "./index-Cdvq3ahA.js";
|
|
5
5
|
const D = () => {
|
|
6
6
|
const [t, a] = u(1), n = m(
|
|
7
7
|
() => a((e) => g(e) ?? e),
|
|
@@ -2,7 +2,7 @@ import { jsxs as c, jsx as t } from "react/jsx-runtime";
|
|
|
2
2
|
import { useRef as g, useState as h, useEffect as b } from "react";
|
|
3
3
|
import { r as p } from "./docx-preview-BaRDMyPN.js";
|
|
4
4
|
import { u as v, S as w } from "./F0CanvasPanel-C6qzM_nP.js";
|
|
5
|
-
import { u as x, D as y } from "./DocumentToolbar-
|
|
5
|
+
import { u as x, D as y } from "./DocumentToolbar-CAyUihSI.js";
|
|
6
6
|
const V = ({
|
|
7
7
|
url: o,
|
|
8
8
|
filename: d,
|
|
@@ -2,7 +2,7 @@ import { jsxs as a, jsx as r, Fragment as N } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState as i, useEffect as k } from "react";
|
|
3
3
|
import { u as v, T as S, h as V, S as R } from "./F0CanvasPanel-C6qzM_nP.js";
|
|
4
4
|
import { f as z, c as E } from "./sheetPreview-5qeAOp0W.js";
|
|
5
|
-
import { u as _, D as j } from "./DocumentToolbar-
|
|
5
|
+
import { u as _, D as j } from "./DocumentToolbar-CAyUihSI.js";
|
|
6
6
|
const g = 1e3, F = 100, G = ({
|
|
7
7
|
url: n,
|
|
8
8
|
filename: y,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as b, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useState as _, useEffect as h } from "react";
|
|
3
3
|
import { u as x, S as p, p as w } from "./F0CanvasPanel-C6qzM_nP.js";
|
|
4
|
-
import { u as y, D as g } from "./DocumentToolbar-
|
|
4
|
+
import { u as y, D as g } from "./DocumentToolbar-CAyUihSI.js";
|
|
5
5
|
const k = 2 * 1024 * 1024, v = [
|
|
6
6
|
"[&_h1]:mb-3 [&_h1]:mt-6 [&_h1]:text-2xl [&_h1]:font-semibold",
|
|
7
7
|
"[&_h2]:mb-2 [&_h2]:mt-5 [&_h2]:text-xl [&_h2]:font-semibold",
|
package/dist/ai.d.ts
CHANGED
|
@@ -1295,7 +1295,7 @@ export declare interface ChatDashboardBarChartConfig extends ChatDashboardChartC
|
|
|
1295
1295
|
stacked?: boolean;
|
|
1296
1296
|
}
|
|
1297
1297
|
|
|
1298
|
-
export declare type ChatDashboardChartConfig = ChatDashboardBarChartConfig | ChatDashboardLineChartConfig | ChatDashboardFunnelChartConfig | ChatDashboardRadarChartConfig | ChatDashboardPieChartConfig | ChatDashboardGaugeChartConfig | ChatDashboardHeatmapChartConfig;
|
|
1298
|
+
export declare type ChatDashboardChartConfig = ChatDashboardBarChartConfig | ChatDashboardLineChartConfig | ChatDashboardFunnelChartConfig | ChatDashboardRadarChartConfig | ChatDashboardPieChartConfig | ChatDashboardGaugeChartConfig | ChatDashboardHeatmapChartConfig | ChatDashboardScatterChartConfig;
|
|
1299
1299
|
|
|
1300
1300
|
declare interface ChatDashboardChartConfigBase {
|
|
1301
1301
|
showLegend?: boolean;
|
|
@@ -1307,7 +1307,7 @@ declare interface ChatDashboardChartConfigBase {
|
|
|
1307
1307
|
export declare interface ChatDashboardChartItem extends ChatDashboardItemBase {
|
|
1308
1308
|
type: "chart";
|
|
1309
1309
|
chart: ChatDashboardChartConfig;
|
|
1310
|
-
computation: ChartComputation | RadarComputation | PieComputation | GaugeComputation | HeatmapComputation;
|
|
1310
|
+
computation: ChartComputation | RadarComputation | PieComputation | GaugeComputation | HeatmapComputation | ScatterComputation;
|
|
1311
1311
|
}
|
|
1312
1312
|
|
|
1313
1313
|
export declare interface ChatDashboardCollectionItem extends ChatDashboardItemBase {
|
|
@@ -1494,6 +1494,23 @@ export declare interface ChatDashboardRadarChartConfig extends ChatDashboardChar
|
|
|
1494
1494
|
showArea?: boolean;
|
|
1495
1495
|
}
|
|
1496
1496
|
|
|
1497
|
+
export declare interface ChatDashboardScatterChartConfig {
|
|
1498
|
+
type: "scatter";
|
|
1499
|
+
pointSize?: number;
|
|
1500
|
+
scaleAxes?: boolean;
|
|
1501
|
+
showGrid?: boolean;
|
|
1502
|
+
/** Only rendered with 2+ series, but still needed so a skeleton can reserve for it. */
|
|
1503
|
+
showLegend?: boolean;
|
|
1504
|
+
/** What the X measure is, e.g. "salary" — labels the x row in the tooltip */
|
|
1505
|
+
xAxisName?: string;
|
|
1506
|
+
/** What the Y measure is, e.g. "tenure" — labels the y row in the tooltip */
|
|
1507
|
+
yAxisName?: string;
|
|
1508
|
+
/** Formats the Y measure */
|
|
1509
|
+
valueFormat?: FormatPreset;
|
|
1510
|
+
/** Formats the X measure, which is a second measure rather than a category */
|
|
1511
|
+
xValueFormat?: FormatPreset;
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1497
1514
|
export declare const ChatSpinner: ForwardRefExoticComponent<ChatSpinnerProps & RefAttributes<HTMLDivElement>>;
|
|
1498
1515
|
|
|
1499
1516
|
declare interface ChatSpinnerProps {
|
|
@@ -4882,6 +4899,21 @@ export declare interface ResolvedStepAnswer {
|
|
|
4882
4899
|
cancelled?: boolean;
|
|
4883
4900
|
}
|
|
4884
4901
|
|
|
4902
|
+
/**
|
|
4903
|
+
* Both axes are measures, so there is no aggregation: a scatter plots one
|
|
4904
|
+
* point per row rather than grouping rows into categories. `label` names the
|
|
4905
|
+
* column identifying each point, and `series` the optional column that splits
|
|
4906
|
+
* the points into colour groups.
|
|
4907
|
+
*/
|
|
4908
|
+
export declare interface ScatterComputation {
|
|
4909
|
+
datasetId: string;
|
|
4910
|
+
xAxis: string;
|
|
4911
|
+
yAxis: string;
|
|
4912
|
+
label?: string;
|
|
4913
|
+
series?: string;
|
|
4914
|
+
limit?: number;
|
|
4915
|
+
}
|
|
4916
|
+
|
|
4885
4917
|
declare type SetFormCardValueFormatter = <T = unknown>(entry: FormCardValueFormatterEntry<T>) => void;
|
|
4886
4918
|
|
|
4887
4919
|
/**
|