@factorialco/f0-react 8.13.0 → 8.14.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 (29) hide show
  1. package/dist/{ChatPdfThumbnail-wfHsJLMk.js → ChatPdfThumbnail-DQAaRnF_.js} +1 -1
  2. package/dist/{ChatPostComposerDialog-BdkiO0Ix.js → ChatPostComposerDialog-XfPm58yR.js} +3 -3
  3. package/dist/{DocumentToolbar-Bc1znO_Q.js → DocumentToolbar-5rDTICMO.js} +2 -2
  4. package/dist/{DocxViewer-DjTE3iVD.js → DocxViewer-De1562fv.js} +2 -2
  5. package/dist/{F0AiProcessingOverlay-CdARCdjY.js → F0AiProcessingOverlay-DsYC1y7h.js} +1 -1
  6. package/dist/{F0CanvasPanel-DNldfGAD.js → F0CanvasPanel-BOfI7kdt.js} +21 -21
  7. package/dist/{F0Map-CcN0iO6Z.js → F0Map-Blu4giJd.js} +4 -4
  8. package/dist/{F0VideoPlayer-pQI4xLzC.js → F0VideoPlayer-x-rP6CbN.js} +2 -2
  9. package/dist/{MapProvider-Bz6kk4Zk.js → MapProvider-C3GwpLvD.js} +223 -222
  10. package/dist/{SheetViewer-CY-N-_YY.js → SheetViewer-BnB1JDyT.js} +2 -2
  11. package/dist/{TextViewer-2miTeh8l.js → TextViewer-BWz8DeNh.js} +2 -2
  12. package/dist/ai.d.ts +8 -8
  13. package/dist/ai.js +2 -2
  14. package/dist/component-status.d.ts +8 -8
  15. package/dist/component-status.js +1 -1
  16. package/dist/{experimental-V-tJLMOO.js → experimental-Dcqo6LKY.js} +3700 -3598
  17. package/dist/experimental.d.ts +59 -8
  18. package/dist/experimental.js +286 -283
  19. package/dist/f0.d.ts +8 -8
  20. package/dist/f0.js +10 -10
  21. package/dist/i18n-provider-defaults.d.ts +8 -8
  22. package/dist/{index-1WtOcIAn.js → index-B3HKo6eh.js} +3 -3
  23. package/dist/{index-CoUo_j13.js → index-ByS5rEW8.js} +3 -3
  24. package/dist/{index-Cditp0m4.js → index-ByYNq9Km.js} +1 -1
  25. package/dist/index-CJkiXBGr.js +4 -0
  26. package/dist/{index-YbrAEaQ8.js → index-CarJc0-r.js} +2 -2
  27. package/dist/{pdfWorker-D5Kshpho.js → pdfWorker-Dtx0px6E.js} +2 -2
  28. package/package.json +1 -1
  29. package/dist/index-BxfHx5Xb.js +0 -4
@@ -4364,6 +4364,33 @@ declare type CompareToDef = {
4364
4364
 
4365
4365
  declare type CompareToDefKey = string;
4366
4366
 
4367
+ export declare interface ConfettiOptions {
4368
+ preset?: ConfettiPreset;
4369
+ /**
4370
+ * Hex colours. `canvas-confetti` parses these with its own hex reader, so
4371
+ * design tokens and `hsl()` strings are silently mangled.
4372
+ */
4373
+ colors?: string[];
4374
+ particleCount?: number;
4375
+ spread?: number;
4376
+ /** Burst only: rain always falls from a random point along the top edge. */
4377
+ origin?: {
4378
+ x?: number;
4379
+ y?: number;
4380
+ };
4381
+ /** Rain only: how long the fall lasts, in milliseconds. */
4382
+ duration?: number;
4383
+ }
4384
+
4385
+ /**
4386
+ * `canvas-confetti` reads colours as hex and nothing else, so the design tokens
4387
+ * cannot reach the canvas. These are the paper colours from the celebration
4388
+ * design; pass `colors` to override them.
4389
+ */
4390
+ export declare const confettiPalette: string[];
4391
+
4392
+ export declare type ConfettiPreset = "burst" | "rain";
4393
+
4367
4394
  /**
4368
4395
  * @experimental This is an experimental component use it at your own risk
4369
4396
  */
@@ -9814,6 +9841,25 @@ export declare interface F0CommunityPostsCarouselProps {
9814
9841
  pagination?: CarouselPaging;
9815
9842
  }
9816
9843
 
9844
+ /**
9845
+ * @experimental This is an experimental component, use it at your own risk.
9846
+ */
9847
+ export declare const F0Confetti: WithDataTestIdReturnType_2<ForwardRefExoticComponent<F0ConfettiProps & RefAttributes<F0ConfettiHandle>>>;
9848
+
9849
+ export declare interface F0ConfettiHandle {
9850
+ fire: (options?: ConfettiOptions) => void;
9851
+ reset: () => void;
9852
+ }
9853
+
9854
+ export declare interface F0ConfettiProps extends WithDataTestIdProps {
9855
+ /** `container` fills the nearest positioned ancestor, `viewport` the screen. */
9856
+ layer?: "container" | "viewport";
9857
+ /** Fires once when the canvas mounts, never again on re-render. */
9858
+ fireOnMount?: boolean;
9859
+ /** Defaults for the mount burst and for `fire()` calls; `fire(options)` overrides them. */
9860
+ options?: ConfettiOptions;
9861
+ }
9862
+
9817
9863
  declare type F0DialogActionItem = {
9818
9864
  value: string;
9819
9865
  label: string;
@@ -19474,6 +19520,11 @@ export declare function useCompactOnScroll({ threshold,
19474
19520
  container: React.RefObject<HTMLElement | null>;
19475
19521
  }): boolean;
19476
19522
 
19523
+ export declare const useConfetti: (canvasRef: RefObject<HTMLCanvasElement | null>) => {
19524
+ fire: (options?: ConfettiOptions) => void;
19525
+ reset: () => void;
19526
+ };
19527
+
19477
19528
  export declare type UseDataCollectionData<R extends RecordType> = UseDataCollectionDataReturn<R> & {
19478
19529
  summaries?: R;
19479
19530
  };
@@ -20833,9 +20884,11 @@ declare module "@tiptap/core" {
20833
20884
 
20834
20885
  declare module "@tiptap/core" {
20835
20886
  interface Commands<ReturnType> {
20836
- fontSize: {
20837
- setFontSize: (fontSize: string) => ReturnType;
20838
- unsetFontSize: () => ReturnType;
20887
+ enhanceHighlight: {
20888
+ setEnhanceHighlight: (from: number, to: number, options?: {
20889
+ placeholder?: string;
20890
+ }) => ReturnType;
20891
+ clearEnhanceHighlight: () => ReturnType;
20839
20892
  };
20840
20893
  }
20841
20894
  }
@@ -20843,11 +20896,9 @@ declare module "@tiptap/core" {
20843
20896
 
20844
20897
  declare module "@tiptap/core" {
20845
20898
  interface Commands<ReturnType> {
20846
- enhanceHighlight: {
20847
- setEnhanceHighlight: (from: number, to: number, options?: {
20848
- placeholder?: string;
20849
- }) => ReturnType;
20850
- clearEnhanceHighlight: () => ReturnType;
20899
+ fontSize: {
20900
+ setFontSize: (fontSize: string) => ReturnType;
20901
+ unsetFontSize: () => ReturnType;
20851
20902
  };
20852
20903
  }
20853
20904
  }