@factorialco/f0-react 6.22.1 → 6.23.1

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/f0.d.ts CHANGED
@@ -5689,6 +5689,21 @@ export declare const defaultTranslations: {
5689
5689
  readonly submit: "Submit";
5690
5690
  readonly stepOf: "Step {{current}} of {{total}}";
5691
5691
  };
5692
+ readonly widgets: {
5693
+ /** Turns a widget over to read what it is telling you (Home's `info`). */
5694
+ readonly whatThisMeans: "What this info means?";
5695
+ /** The button on that other side, which turns it back. */
5696
+ readonly gotIt: "Got it";
5697
+ /** The widget menu's own items, and the dialogs they open. */
5698
+ readonly editParams: "Edit params";
5699
+ readonly editParamsTitle: "Edit widget params";
5700
+ readonly removeWidget: "Remove widget";
5701
+ readonly addWidget: "Add widget";
5702
+ /** Heads the widgets a Home suggests, at the top of the picker. */
5703
+ readonly recommended: "Recommended";
5704
+ /** Why a drop onto a pinned widget was refused. `{{title}}` is its name. */
5705
+ readonly cannotMoveHere: "You can't move a widget here — {{title}} is locked.";
5706
+ };
5692
5707
  readonly pdfViewer: {
5693
5708
  readonly toolbar: "Document toolbar";
5694
5709
  readonly previousPage: "Previous page";
@@ -7729,7 +7744,7 @@ export declare type F0AvatarIconProps = {
7729
7744
  } & Partial<Pick<BaseAvatarProps, "aria-label" | "aria-labelledby">>;
7730
7745
 
7731
7746
  export declare const F0AvatarList: WithDataTestIdReturnType_4< {
7732
- ({ avatars, size, type, noTooltip, remainingCount: initialRemainingCount, max, tooltipScroll, }: F0AvatarListProps_2): JSX_2.Element;
7747
+ ({ avatars, size, type, noTooltip, remainingCount: initialRemainingCount, max, tooltipScroll, layout, }: F0AvatarListProps_2): JSX_2.Element;
7733
7748
  displayName: string;
7734
7749
  }>;
7735
7750
 
@@ -7754,8 +7769,16 @@ export declare type F0AvatarListProps = {
7754
7769
  */
7755
7770
  noTooltip?: boolean;
7756
7771
  /**
7757
- * The maximum number of avatars to display.
7758
- * @default 3
7772
+ * The exact number of avatars to keep visible; the rest collapse into the
7773
+ * `+N` counter. Not a soft cap — a provided `max` is forwarded as
7774
+ * `OverflowList`'s `min` as well, so exactly this many avatars render even in
7775
+ * a container too narrow to fit them (see `F0AvatarList.tsx`).
7776
+ *
7777
+ * There is no numeric default. Left unset, the visible count is
7778
+ * container-driven: `OverflowList` measures the available width and shows as
7779
+ * many avatars as fit, collapsing the remainder into the counter. So passing
7780
+ * a number opts into a fixed footprint, and omitting it opts into filling
7781
+ * the row.
7759
7782
  */
7760
7783
  max?: number;
7761
7784
  /**
@@ -7763,10 +7786,17 @@ export declare type F0AvatarListProps = {
7763
7786
  */
7764
7787
  remainingCount?: number;
7765
7788
  /**
7766
- * The layout of the avatar list.
7767
- * - "fill" - Avatars will expand to fill the available width, with overflow items shown in a counter
7768
- * - "compact" - Avatars will be stacked tightly together up to the max limit, with remaining shown in counter
7769
- * @default "compact"
7789
+ * @deprecated Never implemented — `F0AvatarList` has always ignored this
7790
+ * prop — and not needed, because `max` already selects between the two
7791
+ * layouts it described. Omit `max` for what this called `"fill"`:
7792
+ * `OverflowList` measures the row and shows as many avatars as fit. Pass a
7793
+ * `max` for `"compact"`: it doubles as `min`, so exactly that many stay
7794
+ * visible. A separate switch could only contradict `max` — `layout="fill"`
7795
+ * with `max={3}` has no coherent meaning — which is why this is going rather
7796
+ * than getting an implementation.
7797
+ * @removeIn 7.0.0
7798
+ * @migration Remove the prop. If you were passing `layout="compact"` to cap
7799
+ * the row, add `max={n}`: `"compact"` never capped anything.
7770
7800
  */
7771
7801
  layout?: "fill" | "compact";
7772
7802
  /**
@@ -19678,9 +19708,11 @@ declare namespace Calendar {
19678
19708
 
19679
19709
  declare module "@tiptap/core" {
19680
19710
  interface Commands<ReturnType> {
19681
- aiBlock: {
19682
- insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
19683
- executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
19711
+ enhanceHighlight: {
19712
+ setEnhanceHighlight: (from: number, to: number, options?: {
19713
+ placeholder?: string;
19714
+ }) => ReturnType;
19715
+ clearEnhanceHighlight: () => ReturnType;
19684
19716
  };
19685
19717
  }
19686
19718
  }
@@ -19688,11 +19720,9 @@ declare module "@tiptap/core" {
19688
19720
 
19689
19721
  declare module "@tiptap/core" {
19690
19722
  interface Commands<ReturnType> {
19691
- enhanceHighlight: {
19692
- setEnhanceHighlight: (from: number, to: number, options?: {
19693
- placeholder?: string;
19694
- }) => ReturnType;
19695
- clearEnhanceHighlight: () => ReturnType;
19723
+ aiBlock: {
19724
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
19725
+ executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
19696
19726
  };
19697
19727
  }
19698
19728
  }
@@ -19730,10 +19760,8 @@ declare module "@tiptap/core" {
19730
19760
 
19731
19761
  declare module "@tiptap/core" {
19732
19762
  interface Commands<ReturnType> {
19733
- videoEmbed: {
19734
- setVideoEmbed: (options: {
19735
- src: string;
19736
- }) => ReturnType;
19763
+ transcript: {
19764
+ insertTranscript: (data: TranscriptData) => ReturnType;
19737
19765
  };
19738
19766
  }
19739
19767
  }
@@ -19741,8 +19769,10 @@ declare module "@tiptap/core" {
19741
19769
 
19742
19770
  declare module "@tiptap/core" {
19743
19771
  interface Commands<ReturnType> {
19744
- transcript: {
19745
- insertTranscript: (data: TranscriptData) => ReturnType;
19772
+ videoEmbed: {
19773
+ setVideoEmbed: (options: {
19774
+ src: string;
19775
+ }) => ReturnType;
19746
19776
  };
19747
19777
  }
19748
19778
  }