@factorialco/f0-react 8.24.0 → 8.28.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.
Files changed (31) hide show
  1. package/dist/{ChatPdfThumbnail-Hbw_WAU8.js → ChatPdfThumbnail-76lZY5ae.js} +1 -1
  2. package/dist/{ChatPostComposerDialog-tfRN0-3K.js → ChatPostComposerDialog-CEX5fw42.js} +19 -19
  3. package/dist/{DocumentToolbar-DX79oXzF.js → DocumentToolbar-DYmTcpSP.js} +2 -2
  4. package/dist/{DocxViewer-BJRn9ROF.js → DocxViewer-B9TQv3Hj.js} +2 -2
  5. package/dist/{F0AiProcessingOverlay-B5WA3jJt.js → F0AiProcessingOverlay-hGn9LOZJ.js} +1 -1
  6. package/dist/{F0CanvasPanel-Rkf-f6ge.js → F0CanvasPanel-9nKAw7ck.js} +23994 -23451
  7. package/dist/{F0Map-Dzgjuq89.js → F0Map-Chfnm0BC.js} +4 -4
  8. package/dist/{F0VideoPlayer-BG_MSJyp.js → F0VideoPlayer-BlIN9tNR.js} +2 -2
  9. package/dist/{MapProvider-DlazFyCh.js → MapProvider-DHX6Eb2y.js} +56 -56
  10. package/dist/{SheetViewer-CoayiGl_.js → SheetViewer-CenNW1Oc.js} +2 -2
  11. package/dist/{TextViewer-Dljx7q7Y.js → TextViewer-ChFUVDAi.js} +2 -2
  12. package/dist/ai.d.ts +38 -10
  13. package/dist/ai.js +2 -2
  14. package/dist/component-status.d.ts +33 -10
  15. package/dist/component-status.js +16 -16
  16. package/dist/{experimental-B5_SBbZo.js → experimental-B0dtwyN_.js} +14949 -17813
  17. package/dist/experimental.d.ts +124 -12
  18. package/dist/experimental.js +275 -272
  19. package/dist/f0.d.ts +94 -32
  20. package/dist/f0.js +7995 -7947
  21. package/dist/i18n-provider-defaults.d.ts +38 -10
  22. package/dist/i18n-provider-defaults.js +5 -0
  23. package/dist/{index-BcDwQNGH.js → index-Cvy98Wf3.js} +3 -3
  24. package/dist/{index-C255Mt5f.js → index-DVdaC2pk.js} +1 -1
  25. package/dist/index-DcRkKTf6.js +4 -0
  26. package/dist/{index-Bf7snjOt.js → index-DvgwBZyS.js} +2 -2
  27. package/dist/{index-dsJVIYGM.js → index-mWe7Jgzz.js} +3 -3
  28. package/dist/{pdfWorker-V2aHzdYi.js → pdfWorker-BuQCiUUb.js} +2 -2
  29. package/dist/styles.css +1 -1
  30. package/package.json +2 -3
  31. package/dist/index-BoXRnsIw.js +0 -4
package/dist/f0.d.ts CHANGED
@@ -5407,6 +5407,9 @@ export declare const defaultTranslations: {
5407
5407
  readonly language: "Language";
5408
5408
  readonly audio: "Audio";
5409
5409
  };
5410
+ readonly swipeDeck: {
5411
+ readonly label: "Swipe deck";
5412
+ };
5410
5413
  readonly meetingCard: {
5411
5414
  readonly today: "Today";
5412
5415
  readonly yesterday: "Yesterday";
@@ -6016,6 +6019,7 @@ export declare const defaultTranslations: {
6016
6019
  readonly documentPreview: "Document preview";
6017
6020
  readonly videoPlayerLabel: "Video player: {{name}}";
6018
6021
  readonly loadingVideo: "Loading video: {{name}}";
6022
+ readonly previewUnavailable: "Can't preview this file";
6019
6023
  readonly photo: "Photo";
6020
6024
  readonly photoCount: {
6021
6025
  readonly one: "{{count}} photo";
@@ -6129,6 +6133,7 @@ export declare const defaultTranslations: {
6129
6133
  readonly description: "Try a different date or fewer filters";
6130
6134
  };
6131
6135
  readonly windowedCategories: "Showing {{count}} of {{total}} categories";
6136
+ readonly noData: "No data";
6132
6137
  readonly tooltip: {
6133
6138
  readonly ofTotal: "of total";
6134
6139
  readonly total: "total";
@@ -10096,7 +10101,7 @@ declare interface F0DataChartBaseProps extends F0DataChartCommonProps, F0DataCha
10096
10101
  /**
10097
10102
  * Props shared by every `F0DataChart` variant.
10098
10103
  */
10099
- declare interface F0DataChartCommonProps {
10104
+ declare interface F0DataChartCommonProps<Point extends F0DataChartPointClick = F0DataChartMarkPointClick> {
10100
10105
  /** Customize or opt out of the empty state shown when data is empty. */
10101
10106
  emptyState?: F0DataChartEmptyStateProps;
10102
10107
  /**
@@ -10106,9 +10111,10 @@ declare interface F0DataChartCommonProps {
10106
10111
  * Line charts accept a click anywhere in the plot area, since a line is too
10107
10112
  * thin to hit — the same allowance their axis-triggered tooltip already
10108
10113
  * makes — and answer with the whole category in
10109
- * {@link F0DataChartPointClick.series}, matching what the tooltip showed.
10114
+ * {@link F0DataChartPointClickBase.series}, matching what the tooltip
10115
+ * showed.
10110
10116
  */
10111
- onPointClick?: (point: F0DataChartPointClick) => void;
10117
+ onPointClick?: (point: Point) => void;
10112
10118
  }
10113
10119
 
10114
10120
  /**
@@ -10342,6 +10348,21 @@ export declare interface F0DataChartLineSeries {
10342
10348
  /** Line interpolation type */
10343
10349
  export declare type F0DataChartLineType = "linear" | "smooth" | "step";
10344
10350
 
10351
+ /** A click on any chart except a radar. */
10352
+ export declare interface F0DataChartMarkPointClick extends F0DataChartPointClickBase {
10353
+ /**
10354
+ * Every number the mark carries, in series order: `[42]` for a bar or a
10355
+ * slice, `[x, y]` for a scatter point, `[xIndex, yIndex, value]` for a
10356
+ * heatmap cell.
10357
+ *
10358
+ * {@link value} is the last entry, which is the measure for every type
10359
+ * except scatter — there both entries are measures, and quoting only the
10360
+ * last one drops half the point. Read this when the chart type has more
10361
+ * than one number to say.
10362
+ */
10363
+ values: number[];
10364
+ }
10365
+
10345
10366
  /**
10346
10367
  * A single data point in a pie chart.
10347
10368
  */
@@ -10398,38 +10419,43 @@ export declare interface F0DataChartPieSeries {
10398
10419
  color?: ChartColorToken;
10399
10420
  }
10400
10421
 
10422
+ /** What a click on any chart type resolved to. */
10423
+ export declare type F0DataChartPointClick = F0DataChartMarkPointClick | F0DataChartRadarPointClick;
10424
+
10401
10425
  /**
10402
10426
  * What a click resolved to — one bar segment, one slice, one point, or (for a
10403
10427
  * line, where the click can land anywhere in the plot area) a whole category.
10404
10428
  *
10405
10429
  * The top-level fields always name a single series, so a consumer that wants
10406
- * one number has one. {@link F0DataChartPointClick.series} carries everything
10407
- * the click resolved, which for a line is every series at that category — the
10408
- * same rows its tooltip shows.
10430
+ * one number has one. {@link F0DataChartPointClickBase.series} carries
10431
+ * everything the click resolved, which for a line is every series at that
10432
+ * category — the same rows its tooltip shows.
10409
10433
  */
10410
- export declare interface F0DataChartPointClick {
10434
+ declare interface F0DataChartPointClickBase {
10411
10435
  /** Interaction surface that resolved the point. */
10412
10436
  source: "pointer";
10413
- /** Configured series name for the mark. Empty when ECharts does not report one. */
10437
+ /**
10438
+ * Configured series name for the mark. Empty when ECharts does not report one.
10439
+ *
10440
+ * For a radar it is the clicked polygon's name: a click picks a whole
10441
+ * polygon, never one spoke. For a heatmap it is the cell's y-axis category,
10442
+ * so a row reads like a series.
10443
+ */
10414
10444
  seriesName: string;
10415
10445
  /**
10416
10446
  * Mark name reported by ECharts: an axis category, pie slice, funnel stage,
10417
- * scatter label, or gauge/radar item name. Empty when the mark has no name.
10447
+ * scatter label, or gauge item name. For a heatmap it is the cell's x-axis
10448
+ * category. Empty for a radar, whose polygon spans every indicator, and
10449
+ * whenever the mark has no name.
10418
10450
  */
10419
10451
  category: string;
10420
- /** Raw, unformatted value. Consumers apply their own formatting. */
10421
- value: number;
10422
10452
  /**
10423
- * Every number the mark carries, in series order: `[42]` for a bar or a
10424
- * slice, `[x, y]` for a scatter point, `[xIndex, yIndex, value]` for a
10425
- * heatmap cell.
10453
+ * Raw, unformatted value. Consumers apply their own formatting.
10426
10454
  *
10427
- * {@link value} is the last entry, which is the measure for every type
10428
- * except scatter — there both entries are measures, and quoting only the
10429
- * last one drops half the point. Read this when the chart type has more
10430
- * than one number to say.
10455
+ * For a radar this is the last indicator that has data, not a single
10456
+ * observation — read {@link values} instead.
10431
10457
  */
10432
- values: number[];
10458
+ value: number;
10433
10459
  /**
10434
10460
  * Every series the click resolved, in the order they are configured.
10435
10461
  *
@@ -10483,12 +10509,21 @@ export declare interface F0DataChartRadarIndicator {
10483
10509
  max?: number;
10484
10510
  }
10485
10511
 
10512
+ /** A click on a radar, which picks a whole polygon. */
10513
+ export declare interface F0DataChartRadarPointClick extends F0DataChartPointClickBase {
10514
+ /**
10515
+ * One entry per indicator, in indicator order. `null` is an indicator with
10516
+ * no data; {@link value} is then the last indicator that has one.
10517
+ */
10518
+ values: (number | null)[];
10519
+ }
10520
+
10486
10521
  /**
10487
10522
  * Radar chart variant props.
10488
10523
  *
10489
10524
  * Radar charts use a polar coordinate system — no cartesian axes.
10490
10525
  */
10491
- export declare interface F0DataChartRadarProps extends F0DataChartCommonProps, F0DataChartLegendInteractionProps {
10526
+ export declare interface F0DataChartRadarProps extends F0DataChartCommonProps<F0DataChartRadarPointClick>, F0DataChartLegendInteractionProps {
10492
10527
  /** Chart type */
10493
10528
  type: "radar";
10494
10529
  /** Axes of the radar — defines the dimensions to compare */
@@ -10520,8 +10555,12 @@ export declare interface F0DataChartRadarProps extends F0DataChartCommonProps, F
10520
10555
  export declare interface F0DataChartRadarSeries {
10521
10556
  /** Display name used in legend and tooltip (e.g. "Team A", "Team B") */
10522
10557
  name: string;
10523
- /** Values — one per indicator, in the same order */
10524
- data: number[];
10558
+ /**
10559
+ * Values — one per indicator, in the same order. `null` marks an indicator
10560
+ * with no data: the tooltip reads "No data" and no vertex label is drawn.
10561
+ * ECharts still draws that vertex at the centre, the same place as `0`.
10562
+ */
10563
+ data: (number | null)[];
10525
10564
  /** Override color for this series. Must be an F0 design token name. */
10526
10565
  color?: ChartColorToken;
10527
10566
  }
@@ -22738,16 +22777,6 @@ declare module "@tiptap/core" {
22738
22777
  }
22739
22778
 
22740
22779
 
22741
- declare module "@tiptap/core" {
22742
- interface Commands<ReturnType> {
22743
- fontSize: {
22744
- setFontSize: (fontSize: string) => ReturnType;
22745
- unsetFontSize: () => ReturnType;
22746
- };
22747
- }
22748
- }
22749
-
22750
-
22751
22780
  declare module "@tiptap/core" {
22752
22781
  interface Commands<ReturnType> {
22753
22782
  enhanceHighlight: {
@@ -22771,6 +22800,16 @@ declare module "@tiptap/core" {
22771
22800
  }
22772
22801
 
22773
22802
 
22803
+ declare module "@tiptap/core" {
22804
+ interface Commands<ReturnType> {
22805
+ fontSize: {
22806
+ setFontSize: (fontSize: string) => ReturnType;
22807
+ unsetFontSize: () => ReturnType;
22808
+ };
22809
+ }
22810
+ }
22811
+
22812
+
22774
22813
  declare module "@tiptap/core" {
22775
22814
  interface Commands<ReturnType> {
22776
22815
  moodTracker: {
@@ -22818,3 +22857,26 @@ declare namespace F0GraphCollapserWrapperInner {
22818
22857
  declare namespace F0GraphStackGroupWrapperInner {
22819
22858
  var displayName: string;
22820
22859
  }
22860
+
22861
+
22862
+ declare global {
22863
+ interface Window {
22864
+ __f0Jank?: JankProbe;
22865
+ }
22866
+ }
22867
+
22868
+
22869
+ declare global {
22870
+ interface Window {
22871
+ __f0ChatHarness?: JankHarnessApi;
22872
+ __f0JankInput?: JankRealInput;
22873
+ __f0JankLast?: JankReport;
22874
+ __f0JankState?: JankRunState;
22875
+ /** Set by the runner when recording video: draw the anchor lines. */
22876
+ __f0JankOverlay?: boolean;
22877
+ /** Set by the runner: serve images through a slow route. */
22878
+ __f0JankSlowImages?: boolean;
22879
+ /** Force hard assertions on the gates (also `?jankStrict` in the URL). */
22880
+ __f0JankStrict?: boolean;
22881
+ }
22882
+ }