@factorialco/f0-react 1.420.0 → 1.422.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/{F0HILActionConfirmation-DmSwzvkv.js → F0HILActionConfirmation-DxshcaDQ.js} +1 -1
- package/dist/ai.d.ts +35 -12
- package/dist/ai.js +2 -2
- package/dist/experimental.d.ts +26 -11
- package/dist/experimental.js +212 -212
- package/dist/f0.d.ts +40 -12
- package/dist/f0.js +1745 -1829
- package/dist/i18n-provider-defaults.d.ts +21 -11
- package/dist/i18n-provider-defaults.js +10 -0
- package/dist/{index-BVculwZa.js → index-CIfYW3SA.js} +1 -1
- package/dist/{registry-BQtwbAA5.js → registry-WX4F5JvC.js} +27382 -27103
- package/dist/styles.css +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defaultTranslations as ke } from "./i18n-provider-defaults.js";
|
|
2
2
|
import { jsx as q, jsxs as le } from "react/jsx-runtime";
|
|
3
3
|
import { useInsertionEffect as Xe, createContext as Ye, useContext as $e, useRef as B, useEffect as ie, useState as Ue, useCallback as qe, useMemo as He } from "react";
|
|
4
|
-
import { r as Ke, l as je, m as Qe, n as Je, o as Me, p as Ze, q as et, s as tt, t as rt, v as nt, w as Ne, x as ot, V as it, y as st, z as at, A as ct, S as ut, H as lt, B as se, D as ft, E as dt, G as ht, J as mt, K as pt, L as vt, M as fe, N as gt } from "./registry-
|
|
4
|
+
import { r as Ke, l as je, m as Qe, n as Je, o as Me, p as Ze, q as et, s as tt, t as rt, v as nt, w as Ne, x as ot, V as it, y as st, z as at, A as ct, S as ut, H as lt, B as se, D as ft, E as dt, G as ht, J as mt, K as pt, L as vt, M as fe, N as gt } from "./registry-WX4F5JvC.js";
|
|
5
5
|
import { useTrackVolume as wt } from "@livekit/components-react";
|
|
6
6
|
function Tt(t, e, r) {
|
|
7
7
|
Xe(() => t.on(e, r), [t, e, r]);
|
package/dist/ai.d.ts
CHANGED
|
@@ -399,6 +399,16 @@ export declare const aiTranslations: {
|
|
|
399
399
|
readonly controls: "← → to move";
|
|
400
400
|
readonly escToExit: "Esc to exit";
|
|
401
401
|
};
|
|
402
|
+
readonly creditWarning: {
|
|
403
|
+
readonly soft: "You're running low on AI credits.";
|
|
404
|
+
readonly getCredits: "Get credits";
|
|
405
|
+
readonly dismiss: "Dismiss";
|
|
406
|
+
readonly messageBanner: {
|
|
407
|
+
readonly title: "This response requires credits";
|
|
408
|
+
readonly description: "Your company has run out of AI credits.";
|
|
409
|
+
readonly actionLabel: "Get credits";
|
|
410
|
+
};
|
|
411
|
+
};
|
|
402
412
|
readonly growth: {
|
|
403
413
|
readonly demoCard: {
|
|
404
414
|
readonly title: "See {{moduleName}} in action";
|
|
@@ -632,6 +642,9 @@ export declare const ChatSpinner: ForwardRefExoticComponent<Omit<SVGProps<SVGSVG
|
|
|
632
642
|
|
|
633
643
|
declare type ChatTextareaProps = InputProps & {
|
|
634
644
|
submitLabel?: string;
|
|
645
|
+
creditWarning?: "soft";
|
|
646
|
+
onDismissCreditWarning?: () => void;
|
|
647
|
+
onGetCredits?: () => void;
|
|
635
648
|
};
|
|
636
649
|
|
|
637
650
|
declare interface CollectionComputation {
|
|
@@ -1109,6 +1122,16 @@ export declare const defaultTranslations: {
|
|
|
1109
1122
|
readonly controls: "← → to move";
|
|
1110
1123
|
readonly escToExit: "Esc to exit";
|
|
1111
1124
|
};
|
|
1125
|
+
readonly creditWarning: {
|
|
1126
|
+
readonly soft: "You're running low on AI credits.";
|
|
1127
|
+
readonly getCredits: "Get credits";
|
|
1128
|
+
readonly dismiss: "Dismiss";
|
|
1129
|
+
readonly messageBanner: {
|
|
1130
|
+
readonly title: "This response requires credits";
|
|
1131
|
+
readonly description: "Your company has run out of AI credits.";
|
|
1132
|
+
readonly actionLabel: "Get credits";
|
|
1133
|
+
};
|
|
1134
|
+
};
|
|
1112
1135
|
readonly growth: {
|
|
1113
1136
|
readonly demoCard: {
|
|
1114
1137
|
readonly title: "See {{moduleName}} in action";
|
|
@@ -1381,7 +1404,7 @@ export declare const F0AiChat: () => JSX_2.Element | null;
|
|
|
1381
1404
|
*/
|
|
1382
1405
|
export declare const F0AiChatProvider: ({ enabled, greeting, initialMessage, welcomeScreenSuggestions, disclaimer, resizable, defaultVisualizationMode, lockVisualizationMode, historyEnabled, footer, VoiceMode, entityResolvers, toolHints, credits, onThumbsUp, onThumbsDown, children, agent, tracking, ...copilotKitProps }: AiChatProviderProps) => JSX_2.Element;
|
|
1383
1406
|
|
|
1384
|
-
export declare const F0AiChatTextArea: ({ submitLabel, inProgress, onSend, onStop, }: ChatTextareaProps) => JSX_2.Element;
|
|
1407
|
+
export declare const F0AiChatTextArea: ({ submitLabel, inProgress, onSend, onStop, creditWarning, onDismissCreditWarning, onGetCredits, }: ChatTextareaProps) => JSX_2.Element;
|
|
1385
1408
|
|
|
1386
1409
|
/**
|
|
1387
1410
|
* @experimental This is an experimental component use it at your own risk
|
|
@@ -1762,6 +1785,11 @@ declare module "gridstack" {
|
|
|
1762
1785
|
}
|
|
1763
1786
|
|
|
1764
1787
|
|
|
1788
|
+
declare namespace Calendar {
|
|
1789
|
+
var displayName: string;
|
|
1790
|
+
}
|
|
1791
|
+
|
|
1792
|
+
|
|
1765
1793
|
declare module "@tiptap/core" {
|
|
1766
1794
|
interface Commands<ReturnType> {
|
|
1767
1795
|
aiBlock: {
|
|
@@ -1793,10 +1821,8 @@ declare module "@tiptap/core" {
|
|
|
1793
1821
|
|
|
1794
1822
|
declare module "@tiptap/core" {
|
|
1795
1823
|
interface Commands<ReturnType> {
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
src: string;
|
|
1799
|
-
}) => ReturnType;
|
|
1824
|
+
transcript: {
|
|
1825
|
+
insertTranscript: (data: TranscriptData) => ReturnType;
|
|
1800
1826
|
};
|
|
1801
1827
|
}
|
|
1802
1828
|
}
|
|
@@ -1804,13 +1830,10 @@ declare module "@tiptap/core" {
|
|
|
1804
1830
|
|
|
1805
1831
|
declare module "@tiptap/core" {
|
|
1806
1832
|
interface Commands<ReturnType> {
|
|
1807
|
-
|
|
1808
|
-
|
|
1833
|
+
videoEmbed: {
|
|
1834
|
+
setVideoEmbed: (options: {
|
|
1835
|
+
src: string;
|
|
1836
|
+
}) => ReturnType;
|
|
1809
1837
|
};
|
|
1810
1838
|
}
|
|
1811
1839
|
}
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
declare namespace Calendar {
|
|
1815
|
-
var displayName: string;
|
|
1816
|
-
}
|
package/dist/ai.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as t, h as i, F as e, a as n, C as o, b as r, j as A, k as c, I as u, g as F, c as h, d as C, u as l, f as I, e as f } from "./registry-
|
|
1
|
+
import { i as t, h as i, F as e, a as n, C as o, b as r, j as A, k as c, I as u, g as F, c as h, d as C, u as l, f as I, e as f } from "./registry-WX4F5JvC.js";
|
|
2
2
|
import { defaultTranslations as d } from "./i18n-provider-defaults.js";
|
|
3
|
-
import { A as p, F as S, c as g, d as v, b as x, a as k, o as O, u as P } from "./F0HILActionConfirmation-
|
|
3
|
+
import { A as p, F as S, c as g, d as v, b as x, a as k, o as O, u as P } from "./F0HILActionConfirmation-DxshcaDQ.js";
|
|
4
4
|
export {
|
|
5
5
|
p as AiChatTranslationsProvider,
|
|
6
6
|
t as ChatSpinner,
|
package/dist/experimental.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ import { CompanyCellValue } from './types/company';
|
|
|
20
20
|
import { CompanyCellValue as CompanyCellValue_2 } from './experimental';
|
|
21
21
|
import { CompanyItemProps } from './types';
|
|
22
22
|
import { ComponentProps } from 'react';
|
|
23
|
+
import { CompoundCellValue } from './types/compound';
|
|
23
24
|
import { CopilotKitProps } from '@copilotkit/react-core';
|
|
24
25
|
import { CountryCellValue } from './types/country';
|
|
25
26
|
import { DateCellValue } from './types/date';
|
|
@@ -2677,6 +2678,16 @@ declare const defaultTranslations: {
|
|
|
2677
2678
|
readonly controls: "← → to move";
|
|
2678
2679
|
readonly escToExit: "Esc to exit";
|
|
2679
2680
|
};
|
|
2681
|
+
readonly creditWarning: {
|
|
2682
|
+
readonly soft: "You're running low on AI credits.";
|
|
2683
|
+
readonly getCredits: "Get credits";
|
|
2684
|
+
readonly dismiss: "Dismiss";
|
|
2685
|
+
readonly messageBanner: {
|
|
2686
|
+
readonly title: "This response requires credits";
|
|
2687
|
+
readonly description: "Your company has run out of AI credits.";
|
|
2688
|
+
readonly actionLabel: "Get credits";
|
|
2689
|
+
};
|
|
2690
|
+
};
|
|
2680
2691
|
readonly growth: {
|
|
2681
2692
|
readonly demoCard: {
|
|
2682
2693
|
readonly title: "See {{moduleName}} in action";
|
|
@@ -6808,6 +6819,7 @@ export declare function useSidebar(): FrameContextType;
|
|
|
6808
6819
|
declare type ValueDisplayRendererContext = {
|
|
6809
6820
|
visualization: ValueDisplayVisualizationType;
|
|
6810
6821
|
i18n: TranslationsType;
|
|
6822
|
+
tableAlign?: ValueDisplayTableAlignment;
|
|
6811
6823
|
};
|
|
6812
6824
|
|
|
6813
6825
|
/**
|
|
@@ -6827,6 +6839,7 @@ declare const valueDisplayRenderers: {
|
|
|
6827
6839
|
readonly number: (args: NumberCellValue, meta: ValueDisplayRendererContext) => JSX_2.Element;
|
|
6828
6840
|
readonly date: (args: DateCellValue, meta: ValueDisplayRendererContext) => JSX_2.Element;
|
|
6829
6841
|
readonly amount: (args: AmountCellValue, meta: ValueDisplayRendererContext) => JSX_2.Element;
|
|
6842
|
+
readonly compound: (args: CompoundCellValue, meta: ValueDisplayRendererContext) => JSX_2.Element;
|
|
6830
6843
|
readonly avatarList: (args: AvatarListCellValue, meta: ValueDisplayRendererContext) => JSX_2.Element;
|
|
6831
6844
|
readonly status: (args: StatusCellValue) => JSX_2.Element;
|
|
6832
6845
|
readonly alertTag: (args: AlertTagCellValue) => JSX_2.Element;
|
|
@@ -6847,6 +6860,8 @@ declare const valueDisplayRenderers: {
|
|
|
6847
6860
|
readonly delta: (args: DeltaCellValue) => JSX_2.Element;
|
|
6848
6861
|
};
|
|
6849
6862
|
|
|
6863
|
+
declare type ValueDisplayTableAlignment = "left" | "right";
|
|
6864
|
+
|
|
6850
6865
|
declare type ValueDisplayVisualizationType = "table" | "card" | "list" | (string & {});
|
|
6851
6866
|
|
|
6852
6867
|
declare type Variant = (typeof statuses)[number];
|
|
@@ -7192,6 +7207,11 @@ declare module "gridstack" {
|
|
|
7192
7207
|
}
|
|
7193
7208
|
|
|
7194
7209
|
|
|
7210
|
+
declare namespace Calendar {
|
|
7211
|
+
var displayName: string;
|
|
7212
|
+
}
|
|
7213
|
+
|
|
7214
|
+
|
|
7195
7215
|
declare module "@tiptap/core" {
|
|
7196
7216
|
interface Commands<ReturnType> {
|
|
7197
7217
|
aiBlock: {
|
|
@@ -7223,10 +7243,8 @@ declare module "@tiptap/core" {
|
|
|
7223
7243
|
|
|
7224
7244
|
declare module "@tiptap/core" {
|
|
7225
7245
|
interface Commands<ReturnType> {
|
|
7226
|
-
|
|
7227
|
-
|
|
7228
|
-
src: string;
|
|
7229
|
-
}) => ReturnType;
|
|
7246
|
+
transcript: {
|
|
7247
|
+
insertTranscript: (data: TranscriptData) => ReturnType;
|
|
7230
7248
|
};
|
|
7231
7249
|
}
|
|
7232
7250
|
}
|
|
@@ -7234,13 +7252,10 @@ declare module "@tiptap/core" {
|
|
|
7234
7252
|
|
|
7235
7253
|
declare module "@tiptap/core" {
|
|
7236
7254
|
interface Commands<ReturnType> {
|
|
7237
|
-
|
|
7238
|
-
|
|
7255
|
+
videoEmbed: {
|
|
7256
|
+
setVideoEmbed: (options: {
|
|
7257
|
+
src: string;
|
|
7258
|
+
}) => ReturnType;
|
|
7239
7259
|
};
|
|
7240
7260
|
}
|
|
7241
7261
|
}
|
|
7242
|
-
|
|
7243
|
-
|
|
7244
|
-
declare namespace Calendar {
|
|
7245
|
-
var displayName: string;
|
|
7246
|
-
}
|