@factorialco/f0-react 6.9.1 → 6.11.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.
@@ -1,5 +1,5 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { D as l, P as d, e as s } from "./pdfWorker-CXF7VKxK.js";
2
+ import { D as l, P as d, e as s } from "./pdfWorker-2_ZMbk4J.js";
3
3
  s();
4
4
  const f = ({
5
5
  url: n,
@@ -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-B6yrVWWP.js";
4
- import { n as g, a as h, f as v, T as r, d as F } from "./index-DwCZfN6F.js";
4
+ import { n as g, a as h, f as v, T as r, d as F } from "./index-C3LJVkTD.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-B6yrVWWP.js";
5
- import { u as x, D as y } from "./DocumentToolbar-CYJ9RD_9.js";
5
+ import { u as x, D as y } from "./DocumentToolbar-JXloIW8M.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-B6yrVWWP.js";
4
4
  import { f as z, c as E } from "./sheetPreview-5qeAOp0W.js";
5
- import { u as _, D as j } from "./DocumentToolbar-CYJ9RD_9.js";
5
+ import { u as _, D as j } from "./DocumentToolbar-JXloIW8M.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-B6yrVWWP.js";
4
- import { u as y, D as g } from "./DocumentToolbar-CYJ9RD_9.js";
4
+ import { u as y, D as g } from "./DocumentToolbar-JXloIW8M.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
@@ -910,6 +910,38 @@ export declare type AttachedFile = {
910
910
  errorMessage?: string;
911
911
  };
912
912
 
913
+ /**
914
+ * Autofill-timesheet canvas content — renders an editable timesheet proposal
915
+ * (day-grouped shift blocks the user can adjust and confirm) in the canvas panel.
916
+ */
917
+ export declare type AutofillTimesheetCanvasContent = CanvasContentBase & {
918
+ type: "autofillTimesheet";
919
+ employeeId: string;
920
+ startOn: string;
921
+ endOn: string;
922
+ shifts: AutofillTimesheetShift[];
923
+ };
924
+
925
+ /**
926
+ * A single proposed shift block in a timesheet-autofill preview. Every proposed
927
+ * block carries concrete employee-local clock times (ISO datetime or "HH:MM");
928
+ * days that cannot be proposed are omitted rather than emitted with empty bounds.
929
+ */
930
+ export declare type AutofillTimesheetShift = {
931
+ date: string;
932
+ clockIn: string;
933
+ clockOut: string;
934
+ workable: boolean;
935
+ workplaceId?: string | null;
936
+ workAreaId?: string | null;
937
+ /**
938
+ * Host-defined work-location kind. Left as a loose string to keep the kit
939
+ * host-agnostic; the factorial consumer narrows it to its attendance
940
+ * location-type enum (today: "office" | "work_from_home" | "business_trip").
941
+ */
942
+ locationType?: string | null;
943
+ };
944
+
913
945
  declare const Avatar: React_2.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React_2.RefAttributes<HTMLSpanElement>, "ref"> & {
914
946
  size?: (typeof internalAvatarSizes)[number];
915
947
  type?: (typeof internalAvatarTypes)[number];
@@ -1085,7 +1117,7 @@ declare type CanvasCardAvatar = {
1085
1117
  * Discriminated union for canvas panel content.
1086
1118
  * Add new entity types to this union as they are implemented.
1087
1119
  */
1088
- export declare type CanvasContent = DashboardCanvasContent | FormCanvasContent | DataDownloadCanvasContent;
1120
+ export declare type CanvasContent = DashboardCanvasContent | FormCanvasContent | DataDownloadCanvasContent | AutofillTimesheetCanvasContent;
1089
1121
 
1090
1122
  /**
1091
1123
  * Base shape shared by all canvas content types.
@@ -5496,10 +5528,9 @@ declare module "@tiptap/core" {
5496
5528
 
5497
5529
  declare module "@tiptap/core" {
5498
5530
  interface Commands<ReturnType> {
5499
- indent: {
5500
- setIndent: (level: number) => ReturnType;
5501
- unsetIndent: () => ReturnType;
5502
- outdent: () => ReturnType;
5531
+ fontSize: {
5532
+ setFontSize: (fontSize: string) => ReturnType;
5533
+ unsetFontSize: () => ReturnType;
5503
5534
  };
5504
5535
  }
5505
5536
  }
@@ -5507,9 +5538,10 @@ declare module "@tiptap/core" {
5507
5538
 
5508
5539
  declare module "@tiptap/core" {
5509
5540
  interface Commands<ReturnType> {
5510
- fontSize: {
5511
- setFontSize: (fontSize: string) => ReturnType;
5512
- unsetFontSize: () => ReturnType;
5541
+ indent: {
5542
+ setIndent: (level: number) => ReturnType;
5543
+ unsetIndent: () => ReturnType;
5544
+ outdent: () => ReturnType;
5513
5545
  };
5514
5546
  }
5515
5547
  }
@@ -307,10 +307,9 @@ declare module "@tiptap/core" {
307
307
 
308
308
  declare module "@tiptap/core" {
309
309
  interface Commands<ReturnType> {
310
- indent: {
311
- setIndent: (level: number) => ReturnType;
312
- unsetIndent: () => ReturnType;
313
- outdent: () => ReturnType;
310
+ fontSize: {
311
+ setFontSize: (fontSize: string) => ReturnType;
312
+ unsetFontSize: () => ReturnType;
314
313
  };
315
314
  }
316
315
  }
@@ -318,9 +317,10 @@ declare module "@tiptap/core" {
318
317
 
319
318
  declare module "@tiptap/core" {
320
319
  interface Commands<ReturnType> {
321
- fontSize: {
322
- setFontSize: (fontSize: string) => ReturnType;
323
- unsetFontSize: () => ReturnType;
320
+ indent: {
321
+ setIndent: (level: number) => ReturnType;
322
+ unsetIndent: () => ReturnType;
323
+ outdent: () => ReturnType;
324
324
  };
325
325
  }
326
326
  }