@factorialco/f0-react 6.88.0 → 6.88.2

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 (77) hide show
  1. package/dist/{ChatDocxThumbnail-DzNPNFya.js → ChatDocxThumbnail-DhzoVI1K.js} +11 -8
  2. package/dist/{ChatPdfThumbnail-BFul62a4.js → ChatPdfThumbnail-BHa-zmGt.js} +1 -1
  3. package/dist/{ChatSheetThumbnail-CxGL5ukQ.js → ChatSheetThumbnail-D8aN1W_0.js} +3 -2
  4. package/dist/{ChatTextThumbnail-FVwMzn0I.js → ChatTextThumbnail-B53pSYUy.js} +2 -1
  5. package/dist/{CoachmarkProvider-2_pMSJdO.js → CoachmarkProvider-Dl0ullRd.js} +11948 -11697
  6. package/dist/{DocumentToolbar-BR442e_P.js → DocumentToolbar-CbvxX6_A.js} +2 -2
  7. package/dist/{DocxViewer-YweHIcvR.js → DocxViewer-D0ywzo9E.js} +11 -9
  8. package/dist/{F0AiProcessingOverlay-Dpen_hcq.js → F0AiProcessingOverlay-CwJG6TgU.js} +492 -405
  9. package/dist/{F0CanvasPanel-DjWQhvxj.js → F0CanvasPanel-CpgOQnbI.js} +7475 -7355
  10. package/dist/F0CanvasPanel.css +1 -1
  11. package/dist/{F0VideoPlayer-CYnKHXXD.js → F0VideoPlayer-CXAjfSnS.js} +447 -429
  12. package/dist/{LocationMap-YcfJrfST.js → LocationMap-BHPvamUV.js} +5 -3
  13. package/dist/{SheetViewer-CPr0Xea_.js → SheetViewer-B0xNsuOQ.js} +3 -3
  14. package/dist/{TextViewer-Cu9mNx0F.js → TextViewer-DDrr3xIG.js} +4 -3
  15. package/dist/ai.d.ts +13 -13
  16. package/dist/ai.js +2 -2
  17. package/dist/component-status.d.ts +8 -8
  18. package/dist/component-status.js +3 -2
  19. package/dist/{experimental-Q9kMJ9wE.js → experimental-B-SPgEj_.js} +3070 -2859
  20. package/dist/experimental.d.ts +65 -54
  21. package/dist/experimental.js +3 -3
  22. package/dist/f0.d.ts +84 -73
  23. package/dist/f0.js +8070 -7967
  24. package/dist/i18n-provider-defaults.d.ts +4 -4
  25. package/dist/{index-O6DySIGj.js → index-D1wOJXWr.js} +23 -13
  26. package/dist/index-uG8opRj1.js +4 -0
  27. package/dist/{pdfWorker-CrkERbwq.js → pdfWorker-mxUZLnlP.js} +2 -2
  28. package/dist/{sheetPreview-5qeAOp0W.js → sheetPreview-Djc-YyVs.js} +4 -2
  29. package/icons/app/CursorClick.d.ts.map +1 -1
  30. package/icons/app/FitView.d.ts.map +1 -1
  31. package/icons/modules/Benefits.d.ts.map +1 -1
  32. package/icons/modules/Calendar.d.ts.map +1 -1
  33. package/icons/modules/Cards.d.ts.map +1 -1
  34. package/icons/modules/ClockIn.d.ts.map +1 -1
  35. package/icons/modules/Communities.d.ts.map +1 -1
  36. package/icons/modules/Complaints.d.ts.map +1 -1
  37. package/icons/modules/Discover.d.ts.map +1 -1
  38. package/icons/modules/Documents.d.ts.map +1 -1
  39. package/icons/modules/Engagement.d.ts.map +1 -1
  40. package/icons/modules/Finance.d.ts.map +1 -1
  41. package/icons/modules/Goals.d.ts.map +1 -1
  42. package/icons/modules/Home.d.ts.map +1 -1
  43. package/icons/modules/Hub.d.ts.map +1 -1
  44. package/icons/modules/Inbox.d.ts.map +1 -1
  45. package/icons/modules/ItManagement.d.ts.map +1 -1
  46. package/icons/modules/Kudos.d.ts.map +1 -1
  47. package/icons/modules/LMS.d.ts.map +1 -1
  48. package/icons/modules/Marketplace.d.ts.map +1 -1
  49. package/icons/modules/Meetings.d.ts.map +1 -1
  50. package/icons/modules/MyDocuments.d.ts.map +1 -1
  51. package/icons/modules/Organization.d.ts.map +1 -1
  52. package/icons/modules/Overviews.d.ts.map +1 -1
  53. package/icons/modules/Pages.d.ts.map +1 -1
  54. package/icons/modules/Payroll.d.ts.map +1 -1
  55. package/icons/modules/Performance.d.ts.map +1 -1
  56. package/icons/modules/Profile.d.ts.map +1 -1
  57. package/icons/modules/Projects.d.ts.map +1 -1
  58. package/icons/modules/Recruitment.d.ts.map +1 -1
  59. package/icons/modules/Reports.d.ts.map +1 -1
  60. package/icons/modules/Rocket.d.ts.map +1 -1
  61. package/icons/modules/SalaryAdvance.d.ts.map +1 -1
  62. package/icons/modules/Sales.d.ts.map +1 -1
  63. package/icons/modules/Settings.d.ts.map +1 -1
  64. package/icons/modules/Shifts.d.ts.map +1 -1
  65. package/icons/modules/Social.d.ts.map +1 -1
  66. package/icons/modules/Software.d.ts.map +1 -1
  67. package/icons/modules/Spaces.d.ts.map +1 -1
  68. package/icons/modules/Spending.d.ts.map +1 -1
  69. package/icons/modules/Tasks.d.ts.map +1 -1
  70. package/icons/modules/TimeOff.d.ts.map +1 -1
  71. package/icons/modules/TimeTracking.d.ts.map +1 -1
  72. package/icons/modules/Trainings.d.ts.map +1 -1
  73. package/icons/modules/Treasury.d.ts.map +1 -1
  74. package/icons/modules/Workflows.d.ts.map +1 -1
  75. package/icons/special/One.d.ts.map +1 -1
  76. package/package.json +6 -3
  77. package/dist/index-N_SH9qr4.js +0 -4
@@ -1,11 +1,12 @@
1
1
  import { jsx as p } from "react/jsx-runtime";
2
- import { m } from "./experimental-Q9kMJ9wE.js";
2
+ import { m } from "./experimental-B-SPgEj_.js";
3
3
  import { useRef as l, useEffect as i, useState as b } from "react";
4
4
  const k = "https://tiles.openfreemap.org/styles/positron", y = "https://tiles.openfreemap.org/styles/dark", R = 15, d = (n) => {
5
5
  const [c, s] = b(!1);
6
6
  return i(() => {
7
7
  const r = n.current;
8
- if (!r) return;
8
+ if (!r)
9
+ return;
9
10
  const a = () => s(r.closest(".dark") !== null);
10
11
  a();
11
12
  const t = new MutationObserver(a);
@@ -25,7 +26,8 @@ const k = "https://tiles.openfreemap.org/styles/positron", y = "https://tiles.op
25
26
  const u = l(null);
26
27
  return i(() => {
27
28
  const o = s.current;
28
- if (!o) return;
29
+ if (!o)
30
+ return;
29
31
  u.current = e.current;
30
32
  const f = new m.Map({
31
33
  container: o,
@@ -1,8 +1,8 @@
1
1
  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
- import { u as v, T as S, h as V, S as R } from "./F0CanvasPanel-DjWQhvxj.js";
4
- import { f as z, c as E } from "./sheetPreview-5qeAOp0W.js";
5
- import { u as _, D as j } from "./DocumentToolbar-BR442e_P.js";
3
+ import { u as v, T as S, h as V, S as R } from "./F0CanvasPanel-CpgOQnbI.js";
4
+ import { f as z, c as E } from "./sheetPreview-Djc-YyVs.js";
5
+ import { u as _, D as j } from "./DocumentToolbar-CbvxX6_A.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
- import { u as x, S as p, p as w } from "./F0CanvasPanel-DjWQhvxj.js";
4
- import { u as y, D as g } from "./DocumentToolbar-BR442e_P.js";
3
+ import { u as x, S as p, p as w } from "./F0CanvasPanel-CpgOQnbI.js";
4
+ import { u as y, D as g } from "./DocumentToolbar-CbvxX6_A.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",
@@ -30,7 +30,8 @@ const k = 2 * 1024 * 1024, v = [
30
30
  return h(() => {
31
31
  let s = !1;
32
32
  return c(null), m(!1), fetch(o, { credentials: l ? "include" : "same-origin" }).then((t) => {
33
- if (!t.ok) throw new Error(`${t.status}`);
33
+ if (!t.ok)
34
+ throw new Error(`${t.status}`);
34
35
  return t.text();
35
36
  }).then((t) => {
36
37
  s || c(t.slice(0, k));
package/dist/ai.d.ts CHANGED
@@ -689,7 +689,7 @@ export declare type AiInsightCardContent = {
689
689
  avatar: Pick<F0AvatarPersonProps, "firstName" | "lastName" | "src">;
690
690
  } | {
691
691
  content: "people";
692
- avatars: Array<Pick<F0AvatarPersonProps, "firstName" | "lastName" | "src">>;
692
+ avatars: Pick<F0AvatarPersonProps, "firstName" | "lastName" | "src">[];
693
693
  } | {
694
694
  content: "team";
695
695
  avatar: Pick<F0AvatarTeamProps, "name" | "src">;
@@ -1796,10 +1796,10 @@ export declare type DashboardCanvasContent = CanvasContentBase & {
1796
1796
  };
1797
1797
 
1798
1798
  export declare interface DashboardFetchSpec {
1799
- fetch: Array<{
1799
+ fetch: {
1800
1800
  toolId: string;
1801
1801
  args: Record<string, unknown>;
1802
- }>;
1802
+ }[];
1803
1803
  query: string | null;
1804
1804
  columnLabels?: Record<string, string>;
1805
1805
  }
@@ -4608,7 +4608,7 @@ declare type F0TagListProps<T extends TagType_2> = {
4608
4608
  /**
4609
4609
  * Array of tag data corresponding to the specified type.
4610
4610
  */
4611
- tags: Array<TagTypeMapping[T]>;
4611
+ tags: TagTypeMapping[T][];
4612
4612
  /**
4613
4613
  * The maximum number of tags to display.
4614
4614
  * @default 4
@@ -4910,14 +4910,14 @@ declare type Message = {
4910
4910
  id?: string;
4911
4911
  role?: string;
4912
4912
  content?: unknown;
4913
- toolCalls?: Array<{
4913
+ toolCalls?: {
4914
4914
  id: string;
4915
4915
  type?: string;
4916
4916
  function?: {
4917
4917
  name: string;
4918
4918
  arguments: string;
4919
4919
  };
4920
- }>;
4920
+ }[];
4921
4921
  generativeUI?: () => unknown;
4922
4922
  rawData?: unknown;
4923
4923
  /**
@@ -5244,11 +5244,11 @@ declare type Props_2 = {
5244
5244
  export declare interface RadarComputation {
5245
5245
  datasetId: string;
5246
5246
  seriesColumn: string;
5247
- indicators: Array<{
5247
+ indicators: {
5248
5248
  column: string;
5249
5249
  label: string;
5250
5250
  max?: number;
5251
- }>;
5251
+ }[];
5252
5252
  limit?: number;
5253
5253
  sortBy?: string;
5254
5254
  sortOrder?: "asc" | "desc";
@@ -5588,7 +5588,7 @@ declare type UseChatHistoryReturn = {
5588
5588
  threads: ChatThread[];
5589
5589
  isLoading: boolean;
5590
5590
  error: string | null;
5591
- refetch: () => void;
5591
+ refetch: () => Promise<void>;
5592
5592
  pinnedIds: Set<string>;
5593
5593
  /**
5594
5594
  * Ids of threads with an in-flight pin/unpin/delete request. Use it to show a
@@ -5762,17 +5762,17 @@ declare namespace _Page {
5762
5762
  declare module "gridstack" {
5763
5763
  interface GridStackWidget {
5764
5764
  id?: string;
5765
- allowedSizes?: Array<{
5765
+ allowedSizes?: {
5766
5766
  w: number;
5767
5767
  h: number;
5768
- }>;
5768
+ }[];
5769
5769
  meta?: Record<string, unknown>;
5770
5770
  }
5771
5771
  interface GridStackNode {
5772
- allowedSizes?: Array<{
5772
+ allowedSizes?: {
5773
5773
  w: number;
5774
5774
  h: number;
5775
- }>;
5775
+ }[];
5776
5776
  }
5777
5777
  }
5778
5778
 
package/dist/ai.js CHANGED
@@ -1,6 +1,6 @@
1
- import { C as e, D as r, c as t, F as i, a as o, f as n, g as F, d as C, e as l, I as A, P as d, b as u, u as h } from "./F0CanvasPanel-DjWQhvxj.js";
1
+ import { C as e, D as r, c as t, F as i, a as o, f as n, g as F, d as C, e as l, I as A, P as d, b as u, u as h } from "./F0CanvasPanel-CpgOQnbI.js";
2
2
  import { defaultTranslations as c } from "./i18n-provider-defaults.js";
3
- import { A as P, C as T, t as p, s as v, v as g, y as f, l as y, i as S, q as x, z as b, B as k, p as H, r as O, j as V, e as w, g as B, k as M, F as z, T as D, w as L, h as j, a as q, n as E, m as G, o as R, b as J, f as K, x as N, c as Q, d as U, u as W } from "./F0AiProcessingOverlay-Dpen_hcq.js";
3
+ import { A as P, C as T, t as p, s as v, v as g, y as f, l as y, i as S, q as x, z as b, B as k, p as H, r as O, j as V, e as w, g as B, k as M, F as z, T as D, w as L, h as j, a as q, n as E, m as G, o as R, b as J, f as K, x as N, c as Q, d as U, u as W } from "./F0AiProcessingOverlay-CwJG6TgU.js";
4
4
  export {
5
5
  P as AiChatTranslationsProvider,
6
6
  e as ChatSpinner,
@@ -235,16 +235,16 @@ export declare interface RequirementResult {
235
235
  * changes for 60 days, and Foundations approval. Those remain manual promotion
236
236
  * gates (see Lifecycle/Definition of Done).
237
237
  */
238
- export declare const STABLE_REQUIREMENTS: ReadonlyArray<{
238
+ export declare const STABLE_REQUIREMENTS: readonly {
239
239
  key: string;
240
240
  label: string;
241
241
  detail: string;
242
- criteria?: Array<{
242
+ criteria?: {
243
243
  label: string;
244
244
  isMet: (c: ComponentEntry) => boolean;
245
- }>;
245
+ }[];
246
246
  isMet: (c: ComponentEntry) => boolean;
247
- }>;
247
+ }[];
248
248
 
249
249
  /** Human-readable badge label per maturity level. */
250
250
  export declare const STATUS_LABELS: Record<ApiStatus, string>;
@@ -274,17 +274,17 @@ declare namespace _Page {
274
274
  declare module "gridstack" {
275
275
  interface GridStackWidget {
276
276
  id?: string;
277
- allowedSizes?: Array<{
277
+ allowedSizes?: {
278
278
  w: number;
279
279
  h: number;
280
- }>;
280
+ }[];
281
281
  meta?: Record<string, unknown>;
282
282
  }
283
283
  interface GridStackNode {
284
- allowedSizes?: Array<{
284
+ allowedSizes?: {
285
285
  w: number;
286
286
  h: number;
287
- }>;
287
+ }[];
288
288
  }
289
289
  }
290
290