@factorialco/f0-react 1.334.0 → 1.336.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 CHANGED
@@ -714,6 +714,11 @@ declare module "gridstack" {
714
714
  }
715
715
 
716
716
 
717
+ declare namespace Calendar {
718
+ var displayName: string;
719
+ }
720
+
721
+
717
722
  declare module "@tiptap/core" {
718
723
  interface Commands<ReturnType> {
719
724
  aiBlock: {
@@ -740,8 +745,3 @@ declare module "@tiptap/core" {
740
745
  };
741
746
  }
742
747
  }
743
-
744
-
745
- declare namespace Calendar {
746
- var displayName: string;
747
- }
package/dist/ai.js CHANGED
@@ -1,5 +1,5 @@
1
- import { A as i, a as r, b as t, d as o, c as n, H as e, e as A, u as l, f as u } from "./AiChatTranslationsProvider-DuArZC6y.js";
2
- import { I as f, u as h } from "./index-D0AzMbXI.js";
1
+ import { A as i, a as r, b as t, d as o, c as n, H as e, e as A, u as l, f as u } from "./AiChatTranslationsProvider-CSN_jvHE.js";
2
+ import { I as f, u as h } from "./index-CKWAEs9z.js";
3
3
  import { defaultTranslations as m } from "./i18n-provider-defaults.js";
4
4
  export {
5
5
  i as ActionItem,
@@ -2092,6 +2092,7 @@ declare interface DatePickerPopupProps {
2092
2092
  hideCalendarInput?: boolean;
2093
2093
  asChild?: boolean;
2094
2094
  onCompareToChange?: (compareTo: DateRangeComplete | DateRangeComplete[] | undefined) => void;
2095
+ weekStartsOn?: WeekStartsOn;
2095
2096
  }
2096
2097
 
2097
2098
  export declare type DatePickerValue = {
@@ -3172,32 +3173,6 @@ export { F0SelectProps as SelectProps }
3172
3173
 
3173
3174
  export declare function F0TableOfContent(props: TOCProps): JSX_2.Element;
3174
3175
 
3175
- /**
3176
- * @experimental This is an experimental component use it at your own risk
3177
- */
3178
- export declare const F0TableOfContentPopover: typeof F0TableOfContentPopover_2;
3179
-
3180
- /**
3181
- * Internal implementation of the TableOfContentPopover component.
3182
- * This component includes all props including private ones.
3183
- */
3184
- declare function F0TableOfContentPopover_2({ title, items, className, activeItem, collapsible, showChildrenCounter, barsAlign, size, variant, }: F0TableOfContentPopoverProps): JSX_2.Element;
3185
-
3186
- declare interface F0TableOfContentPopoverProps extends Omit<TOCProps, "sortable" | "onReorder" | "showSearchBox" | "title" | "hideChildrenCounter"> {
3187
- /** Optional title displayed at the top of the menu popup */
3188
- title?: string;
3189
- /** Alignment of the collapsed bars (left or right) */
3190
- barsAlign?: "left" | "right";
3191
- /** Whether sections can be collapsed/expanded */
3192
- collapsible?: boolean;
3193
- /** Show the count of children items next to parent items */
3194
- showChildrenCounter?: boolean;
3195
- /** Maximum height of the popup: sm (max 240px), md (max 400px), lg (max 600px). Content auto-adjusts within limit. */
3196
- size?: PopupSize;
3197
- /** Visual variant: "dark" for light backgrounds (default), "light" for dark backgrounds */
3198
- variant?: TableOfContentPopoverVariant;
3199
- }
3200
-
3201
3176
  declare const F0TagAlert: ForwardRefExoticComponent<Props_7 & RefAttributes<HTMLDivElement>>;
3202
3177
 
3203
3178
  declare const F0TagRaw: ForwardRefExoticComponent<F0TagRawProps & RefAttributes<HTMLDivElement>>;
@@ -3488,6 +3463,12 @@ declare interface FrameContextType {
3488
3463
 
3489
3464
  export declare const getGranularityDefinition: (granularityKey: GranularityDefinitionKey) => GranularityDefinition;
3490
3465
 
3466
+ /**
3467
+ * Get granularity definitions with week granularity configured with the specified weekStartsOn.
3468
+ * The week granularity is only created when needed (lazy creation).
3469
+ */
3470
+ export declare function getGranularityDefinitions(weekStartsOn?: WeekStartsOn): Record<string, GranularityDefinition>;
3471
+
3491
3472
  export declare const getGranularitySimpleDefinition: (granularityKey: GranularityDefinitionKey) => GranularityDefinitionSimple;
3492
3473
 
3493
3474
  /**
@@ -3503,6 +3484,7 @@ export declare const getSecondaryActions: (secondaryActions: SecondaryActionsDef
3503
3484
  export declare interface GranularityDefinition {
3504
3485
  calendarMode?: CalendarMode;
3505
3486
  calendarView: CalendarView;
3487
+ weekStartsOn?: WeekStartsOn;
3506
3488
  label: (viewDate: Date, i18n: TranslationsType) => ReactNode;
3507
3489
  toRangeString: (date: Date | DateRange | undefined | null, i18n: TranslationsType, format?: DateStringFormat) => DateRangeString;
3508
3490
  toRange: <T extends Date | DateRange | undefined | null>(date: T) => T extends Date | DateRange ? DateRangeComplete : T;
@@ -3524,6 +3506,7 @@ export declare interface GranularityDefinition {
3524
3506
  setViewDate: (date: Date) => void;
3525
3507
  viewDate: Date;
3526
3508
  compact?: boolean;
3509
+ weekStartsOn?: WeekStartsOn;
3527
3510
  }) => ReactNode;
3528
3511
  add: (date: DateRangeComplete, delta: number) => DateRangeComplete;
3529
3512
  getPrevNext(date: DateRange, options: DateNavigationOptions): PrevNextDateNavigation;
@@ -4506,7 +4489,7 @@ export declare const OneCalendar: {
4506
4489
  displayName: string;
4507
4490
  };
4508
4491
 
4509
- export declare const OneCalendarInternal: ({ mode, view, onSelect, defaultMonth, defaultSelected, showNavigation, showInput, minDate, maxDate, compact, }: OneCalendarInternalProps) => JSX_2.Element;
4492
+ export declare const OneCalendarInternal: ({ mode, view, onSelect, defaultMonth, defaultSelected, showNavigation, showInput, minDate, maxDate, compact, weekStartsOn, }: OneCalendarInternalProps) => JSX_2.Element;
4510
4493
 
4511
4494
  export declare interface OneCalendarInternalProps {
4512
4495
  mode: CalendarMode;
@@ -4519,6 +4502,7 @@ export declare interface OneCalendarInternalProps {
4519
4502
  minDate?: Date;
4520
4503
  maxDate?: Date;
4521
4504
  compact?: boolean;
4505
+ weekStartsOn?: WeekStartsOn;
4522
4506
  }
4523
4507
 
4524
4508
  export declare type OneCalendarProps = Omit<OneCalendarInternalProps, (typeof privateProps_5)[number]>;
@@ -4912,8 +4896,6 @@ export declare const PieChartWidget: ForwardRefExoticComponent<Omit<WidgetProps_
4912
4896
  chart: PieChartProps;
4913
4897
  } & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLElement | SVGElement>>;
4914
4898
 
4915
- declare type PopupSize = "sm" | "md" | "lg";
4916
-
4917
4899
  declare type PostDescriptionProps = {
4918
4900
  content: HTMLString;
4919
4901
  collapsed?: boolean;
@@ -5831,8 +5813,6 @@ declare interface TableHeadProps {
5831
5813
  className?: string;
5832
5814
  }
5833
5815
 
5834
- declare type TableOfContentPopoverVariant = "dark" | "light";
5835
-
5836
5816
  declare type TableVisualizationOptions<R extends RecordType, _Filters extends FiltersDefinition, Sortings extends SortingsDefinition, Summaries extends SummariesDefinition> = {
5837
5817
  /**
5838
5818
  * The columns to display
@@ -6346,6 +6326,18 @@ declare interface WeekdaysProps {
6346
6326
  daysOfTheWeek?: string[];
6347
6327
  }
6348
6328
 
6329
+ export declare const WeekStartDay: {
6330
+ readonly Sunday: 0;
6331
+ readonly Monday: 1;
6332
+ readonly Tuesday: 2;
6333
+ readonly Wednesday: 3;
6334
+ readonly Thursday: 4;
6335
+ readonly Friday: 5;
6336
+ readonly Saturday: 6;
6337
+ };
6338
+
6339
+ export declare type WeekStartsOn = (typeof WeekStartDay)[keyof typeof WeekStartDay];
6340
+
6349
6341
  declare type WelcomeScreenSuggestion = {
6350
6342
  icon: IconType;
6351
6343
  message: string;
@@ -6513,6 +6505,11 @@ declare module "gridstack" {
6513
6505
  }
6514
6506
 
6515
6507
 
6508
+ declare namespace Calendar {
6509
+ var displayName: string;
6510
+ }
6511
+
6512
+
6516
6513
  declare module "@tiptap/core" {
6517
6514
  interface Commands<ReturnType> {
6518
6515
  aiBlock: {
@@ -6539,8 +6536,3 @@ declare module "@tiptap/core" {
6539
6536
  };
6540
6537
  }
6541
6538
  }
6542
-
6543
-
6544
- declare namespace Calendar {
6545
- var displayName: string;
6546
- }