@factorialco/f0-react 6.3.3 → 6.5.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/ai.d.ts +43 -10
- package/dist/component-status.d.ts +8 -8
- package/dist/component-status.js +1 -1
- package/dist/experimental.d.ts +43 -10
- package/dist/f0.d.ts +205 -14
- package/dist/f0.js +14847 -14189
- package/dist/i18n-provider-defaults.d.ts +9 -8
- package/dist/i18n-provider-defaults.js +1 -0
- package/package.json +1 -1
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 {
|
|
@@ -2546,6 +2563,7 @@ export declare const defaultTranslations: {
|
|
|
2546
2563
|
readonly title: "No data available";
|
|
2547
2564
|
readonly description: "Try a different date or fewer filters";
|
|
2548
2565
|
};
|
|
2566
|
+
readonly windowedCategories: "Showing {{count}} of {{total}} categories";
|
|
2549
2567
|
readonly tooltip: {
|
|
2550
2568
|
readonly ofTotal: "of total";
|
|
2551
2569
|
readonly total: "total";
|
|
@@ -4882,6 +4900,21 @@ export declare interface ResolvedStepAnswer {
|
|
|
4882
4900
|
cancelled?: boolean;
|
|
4883
4901
|
}
|
|
4884
4902
|
|
|
4903
|
+
/**
|
|
4904
|
+
* Both axes are measures, so there is no aggregation: a scatter plots one
|
|
4905
|
+
* point per row rather than grouping rows into categories. `label` names the
|
|
4906
|
+
* column identifying each point, and `series` the optional column that splits
|
|
4907
|
+
* the points into colour groups.
|
|
4908
|
+
*/
|
|
4909
|
+
export declare interface ScatterComputation {
|
|
4910
|
+
datasetId: string;
|
|
4911
|
+
xAxis: string;
|
|
4912
|
+
yAxis: string;
|
|
4913
|
+
label?: string;
|
|
4914
|
+
series?: string;
|
|
4915
|
+
limit?: number;
|
|
4916
|
+
}
|
|
4917
|
+
|
|
4885
4918
|
declare type SetFormCardValueFormatter = <T = unknown>(entry: FormCardValueFormatterEntry<T>) => void;
|
|
4886
4919
|
|
|
4887
4920
|
/**
|
|
@@ -5297,11 +5330,9 @@ declare module "@tiptap/core" {
|
|
|
5297
5330
|
|
|
5298
5331
|
declare module "@tiptap/core" {
|
|
5299
5332
|
interface Commands<ReturnType> {
|
|
5300
|
-
|
|
5301
|
-
|
|
5302
|
-
|
|
5303
|
-
}) => ReturnType;
|
|
5304
|
-
clearEnhanceHighlight: () => ReturnType;
|
|
5333
|
+
fontSize: {
|
|
5334
|
+
setFontSize: (fontSize: string) => ReturnType;
|
|
5335
|
+
unsetFontSize: () => ReturnType;
|
|
5305
5336
|
};
|
|
5306
5337
|
}
|
|
5307
5338
|
}
|
|
@@ -5309,9 +5340,11 @@ declare module "@tiptap/core" {
|
|
|
5309
5340
|
|
|
5310
5341
|
declare module "@tiptap/core" {
|
|
5311
5342
|
interface Commands<ReturnType> {
|
|
5312
|
-
|
|
5313
|
-
|
|
5314
|
-
|
|
5343
|
+
enhanceHighlight: {
|
|
5344
|
+
setEnhanceHighlight: (from: number, to: number, options?: {
|
|
5345
|
+
placeholder?: string;
|
|
5346
|
+
}) => ReturnType;
|
|
5347
|
+
clearEnhanceHighlight: () => ReturnType;
|
|
5315
5348
|
};
|
|
5316
5349
|
}
|
|
5317
5350
|
}
|
|
@@ -295,11 +295,9 @@ declare module "@tiptap/core" {
|
|
|
295
295
|
|
|
296
296
|
declare module "@tiptap/core" {
|
|
297
297
|
interface Commands<ReturnType> {
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
}) => ReturnType;
|
|
302
|
-
clearEnhanceHighlight: () => ReturnType;
|
|
298
|
+
fontSize: {
|
|
299
|
+
setFontSize: (fontSize: string) => ReturnType;
|
|
300
|
+
unsetFontSize: () => ReturnType;
|
|
303
301
|
};
|
|
304
302
|
}
|
|
305
303
|
}
|
|
@@ -307,9 +305,11 @@ declare module "@tiptap/core" {
|
|
|
307
305
|
|
|
308
306
|
declare module "@tiptap/core" {
|
|
309
307
|
interface Commands<ReturnType> {
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
308
|
+
enhanceHighlight: {
|
|
309
|
+
setEnhanceHighlight: (from: number, to: number, options?: {
|
|
310
|
+
placeholder?: string;
|
|
311
|
+
}) => ReturnType;
|
|
312
|
+
clearEnhanceHighlight: () => ReturnType;
|
|
313
313
|
};
|
|
314
314
|
}
|
|
315
315
|
}
|