@factorialco/f0-react 4.28.1 → 4.29.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 +7 -7
- package/dist/experimental.d.ts +8 -8
- package/dist/experimental.js +2 -2
- package/dist/f0.d.ts +21 -12
- package/dist/f0.js +1892 -1851
- package/dist/i18n-provider-defaults.d.ts +7 -7
- package/dist/{useDataCollectionSource-BWJkxuVd.js → useDataCollectionSource-C27vc_VB.js} +4 -2
- package/package.json +1 -1
package/dist/ai.d.ts
CHANGED
|
@@ -5069,8 +5069,11 @@ declare module "@tiptap/core" {
|
|
|
5069
5069
|
|
|
5070
5070
|
declare module "@tiptap/core" {
|
|
5071
5071
|
interface Commands<ReturnType> {
|
|
5072
|
-
|
|
5073
|
-
|
|
5072
|
+
enhanceHighlight: {
|
|
5073
|
+
setEnhanceHighlight: (from: number, to: number, options?: {
|
|
5074
|
+
placeholder?: string;
|
|
5075
|
+
}) => ReturnType;
|
|
5076
|
+
clearEnhanceHighlight: () => ReturnType;
|
|
5074
5077
|
};
|
|
5075
5078
|
}
|
|
5076
5079
|
}
|
|
@@ -5078,11 +5081,8 @@ declare module "@tiptap/core" {
|
|
|
5078
5081
|
|
|
5079
5082
|
declare module "@tiptap/core" {
|
|
5080
5083
|
interface Commands<ReturnType> {
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
placeholder?: string;
|
|
5084
|
-
}) => ReturnType;
|
|
5085
|
-
clearEnhanceHighlight: () => ReturnType;
|
|
5084
|
+
moodTracker: {
|
|
5085
|
+
insertMoodTracker: (data: MoodTrackerData) => ReturnType;
|
|
5086
5086
|
};
|
|
5087
5087
|
}
|
|
5088
5088
|
}
|
package/dist/experimental.d.ts
CHANGED
|
@@ -297,7 +297,7 @@ declare type ActionProps_3 = {
|
|
|
297
297
|
* @default "default"
|
|
298
298
|
* @optional
|
|
299
299
|
*/
|
|
300
|
-
variant?: "default" | "outline" | "promote";
|
|
300
|
+
variant?: "default" | "outline" | "neutral" | "promote";
|
|
301
301
|
/**
|
|
302
302
|
* The icon of the action
|
|
303
303
|
* @optional
|
|
@@ -10713,8 +10713,11 @@ declare module "@tiptap/core" {
|
|
|
10713
10713
|
|
|
10714
10714
|
declare module "@tiptap/core" {
|
|
10715
10715
|
interface Commands<ReturnType> {
|
|
10716
|
-
|
|
10717
|
-
|
|
10716
|
+
enhanceHighlight: {
|
|
10717
|
+
setEnhanceHighlight: (from: number, to: number, options?: {
|
|
10718
|
+
placeholder?: string;
|
|
10719
|
+
}) => ReturnType;
|
|
10720
|
+
clearEnhanceHighlight: () => ReturnType;
|
|
10718
10721
|
};
|
|
10719
10722
|
}
|
|
10720
10723
|
}
|
|
@@ -10722,11 +10725,8 @@ declare module "@tiptap/core" {
|
|
|
10722
10725
|
|
|
10723
10726
|
declare module "@tiptap/core" {
|
|
10724
10727
|
interface Commands<ReturnType> {
|
|
10725
|
-
|
|
10726
|
-
|
|
10727
|
-
placeholder?: string;
|
|
10728
|
-
}) => ReturnType;
|
|
10729
|
-
clearEnhanceHighlight: () => ReturnType;
|
|
10728
|
+
moodTracker: {
|
|
10729
|
+
insertMoodTracker: (data: MoodTrackerData) => ReturnType;
|
|
10730
10730
|
};
|
|
10731
10731
|
}
|
|
10732
10732
|
}
|
package/dist/experimental.js
CHANGED
|
@@ -2,8 +2,8 @@ import { h as Va, B as Ga, i as Ka, j as qa, k as wn, l as lt, m as tt, n as Ya,
|
|
|
2
2
|
import { cD as vm, cC as ym, cP as wm, cz as Nm, cA as Cm, cs as km, ct as Im, ct as Sm, cu as Fm, cS as Tm, cB as Am, cL as Em, cM as Rm, cQ as Dm, cv as Pm, cF as Lm, cE as Om, cw as _m, cx as zm, cN as $m, cT as Bm, cO as Mm, cR as jm, cK as Wm, cH as Hm, cJ as Um, cG as Vm, cy as Gm, cI as Km } from "./F0CanvasPanel-BgGyMiWm.js";
|
|
3
3
|
import { jsx as t, jsxs as d, Fragment as fe } from "react/jsx-runtime";
|
|
4
4
|
import Te, { forwardRef as de, useRef as z, useTransition as Qi, useState as R, useLayoutEffect as Je, useId as Qt, useContext as Le, createContext as Ie, useEffect as K, useCallback as U, useMemo as J, Fragment as qe, isValidElement as Ji, cloneElement as jr, memo as Wr, Children as Hr } from "react";
|
|
5
|
-
import { C as Xi, P as Zi, a as it, M as eo, p as to, b as no, R as Fn, c as Ur, u as ro, d as ao, e as so, f as io, g as oo, O as Vr, h as Gr, S as lo, A as co, B as uo, L as fo, i as mo, V as ho, j as po, k as go, l as bo } from "./useDataCollectionSource-
|
|
6
|
-
import { r as Ym, s as Qm, o as Jm, H as Xm, t as Zm, z as eh, a8 as th, G as nh, q as rh, aa as ah, a9 as sh, Q as ih, ad as oh, F as lh, Y as ch, U as dh, J as uh, af as fh, K as mh, Z as hh, _ as ph, v as gh, ab as bh, ac as xh, N as vh, $ as yh, a5 as wh, a7 as Nh, w as Ch, y as kh, D as Ih, W as Sh, ae as Fh, X as Th, T as Ah, ag as Eh, x as Rh, E as Dh, m as Ph, n as Lh, a1 as Oh, a2 as _h, a6 as zh, I as $h, a3 as Bh, a0 as Mh, a4 as jh } from "./useDataCollectionSource-
|
|
5
|
+
import { C as Xi, P as Zi, a as it, M as eo, p as to, b as no, R as Fn, c as Ur, u as ro, d as ao, e as so, f as io, g as oo, O as Vr, h as Gr, S as lo, A as co, B as uo, L as fo, i as mo, V as ho, j as po, k as go, l as bo } from "./useDataCollectionSource-C27vc_VB.js";
|
|
6
|
+
import { r as Ym, s as Qm, o as Jm, H as Xm, t as Zm, z as eh, a8 as th, G as nh, q as rh, aa as ah, a9 as sh, Q as ih, ad as oh, F as lh, Y as ch, U as dh, J as uh, af as fh, K as mh, Z as hh, _ as ph, v as gh, ab as bh, ac as xh, N as vh, $ as yh, a5 as wh, a7 as Nh, w as Ch, y as kh, D as Ih, W as Sh, ae as Fh, X as Th, T as Ah, ag as Eh, x as Rh, E as Dh, m as Ph, n as Lh, a1 as Oh, a2 as _h, a6 as zh, I as $h, a3 as Bh, a0 as Mh, a4 as jh } from "./useDataCollectionSource-C27vc_VB.js";
|
|
7
7
|
const xo = Va("Search", [
|
|
8
8
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
9
9
|
["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
|
package/dist/f0.d.ts
CHANGED
|
@@ -348,7 +348,7 @@ declare type ActionProps_2 = {
|
|
|
348
348
|
* @default "default"
|
|
349
349
|
* @optional
|
|
350
350
|
*/
|
|
351
|
-
variant?: "default" | "outline" | "promote";
|
|
351
|
+
variant?: "default" | "outline" | "neutral" | "promote";
|
|
352
352
|
/**
|
|
353
353
|
* The icon of the action
|
|
354
354
|
* @optional
|
|
@@ -6935,12 +6935,21 @@ export declare interface F0AudioPlayerCardProps extends F0AudioPlayerProps {
|
|
|
6935
6935
|
|
|
6936
6936
|
export declare interface F0AudioPlayerProps extends WithDataTestIdProps, DataAttributes_2 {
|
|
6937
6937
|
/**
|
|
6938
|
-
* The audio source URL
|
|
6938
|
+
* The audio source. Either a URL string, or a function that lazily resolves
|
|
6939
|
+
* the URL the first time playback is requested. Use the function form for
|
|
6940
|
+
* on-demand credentials (e.g. presigned URLs) so the URL is only fetched on
|
|
6941
|
+
* user intent.
|
|
6939
6942
|
*/
|
|
6940
|
-
src: string;
|
|
6943
|
+
src: string | (() => Promise<string>);
|
|
6944
|
+
/**
|
|
6945
|
+
* Known total duration in seconds. Lets the player show the total time and an
|
|
6946
|
+
* active seek bar before the audio loads (e.g. with `preload="none"`).
|
|
6947
|
+
* Superseded by the real duration once metadata loads.
|
|
6948
|
+
*/
|
|
6949
|
+
duration?: number;
|
|
6941
6950
|
/**
|
|
6942
6951
|
* How much of the audio to preload.
|
|
6943
|
-
* @default "metadata"
|
|
6952
|
+
* @default "metadata" ("none" when `src` is a function)
|
|
6944
6953
|
*/
|
|
6945
6954
|
preload?: "none" | "metadata" | "auto";
|
|
6946
6955
|
/**
|
|
@@ -16557,7 +16566,7 @@ export declare function useAiChat(): AiChatProviderReturnValue;
|
|
|
16557
16566
|
|
|
16558
16567
|
export declare function useAiChatTranslations(): AiChatTranslations;
|
|
16559
16568
|
|
|
16560
|
-
export declare const useAudioPlayer: (audioRef: RefObject<HTMLAudioElement>, callbacks?: UseAudioPlayerCallbacks) => AudioPlayerControls;
|
|
16569
|
+
export declare const useAudioPlayer: (audioRef: RefObject<HTMLAudioElement>, callbacks?: UseAudioPlayerCallbacks, initialDuration?: number) => AudioPlayerControls;
|
|
16561
16570
|
|
|
16562
16571
|
declare interface UseAudioPlayerCallbacks {
|
|
16563
16572
|
onPlay?: () => void;
|
|
@@ -17663,8 +17672,11 @@ declare module "@tiptap/core" {
|
|
|
17663
17672
|
|
|
17664
17673
|
declare module "@tiptap/core" {
|
|
17665
17674
|
interface Commands<ReturnType> {
|
|
17666
|
-
|
|
17667
|
-
|
|
17675
|
+
enhanceHighlight: {
|
|
17676
|
+
setEnhanceHighlight: (from: number, to: number, options?: {
|
|
17677
|
+
placeholder?: string;
|
|
17678
|
+
}) => ReturnType;
|
|
17679
|
+
clearEnhanceHighlight: () => ReturnType;
|
|
17668
17680
|
};
|
|
17669
17681
|
}
|
|
17670
17682
|
}
|
|
@@ -17672,11 +17684,8 @@ declare module "@tiptap/core" {
|
|
|
17672
17684
|
|
|
17673
17685
|
declare module "@tiptap/core" {
|
|
17674
17686
|
interface Commands<ReturnType> {
|
|
17675
|
-
|
|
17676
|
-
|
|
17677
|
-
placeholder?: string;
|
|
17678
|
-
}) => ReturnType;
|
|
17679
|
-
clearEnhanceHighlight: () => ReturnType;
|
|
17687
|
+
moodTracker: {
|
|
17688
|
+
insertMoodTracker: (data: MoodTrackerData) => ReturnType;
|
|
17680
17689
|
};
|
|
17681
17690
|
}
|
|
17682
17691
|
}
|