@factorialco/f0-react 1.468.1 → 1.469.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/{F0AiChat-PvF3C9uo.js → F0AiChat-DjRuphGp.js} +62859 -61937
- package/dist/ai.d.ts +56 -13
- package/dist/ai.js +2 -2
- package/dist/experimental.d.ts +29 -12
- package/dist/experimental.js +16 -7
- package/dist/f0.d.ts +61 -13
- package/dist/f0.js +60 -46
- package/dist/i18n-provider-defaults.d.ts +24 -12
- package/dist/i18n-provider-defaults.js +13 -1
- package/dist/{index-BS1dlpUd.js → index-DzJ2kD_x.js} +1750 -1759
- package/dist/styles.css +1 -1
- package/dist/{types-B6yZPlfK.js → types-DEz6Mm20.js} +1 -1
- package/package.json +1 -1
package/dist/ai.d.ts
CHANGED
|
@@ -317,6 +317,13 @@ declare type AiChatProviderReturnValue = {
|
|
|
317
317
|
*/
|
|
318
318
|
fileDragOver: boolean;
|
|
319
319
|
/* Excluded from this release type: setFileDragOver */
|
|
320
|
+
/**
|
|
321
|
+
* Process files that were dropped onto the chat. Delegates to the
|
|
322
|
+
* `processFiles` callback registered by `ChatTextarea`'s file-attachment
|
|
323
|
+
* hook. Used by the chat-wide DropOverlay rendered in `SidebarWindow`.
|
|
324
|
+
*/
|
|
325
|
+
processDroppedFiles: (files: File[]) => void;
|
|
326
|
+
/* Excluded from this release type: setProcessDroppedFilesFunction */
|
|
320
327
|
/**
|
|
321
328
|
* Pre-loaded context shown as an empty state in the chat.
|
|
322
329
|
* Prepended to the first user message as `<pending-context>`.
|
|
@@ -339,6 +346,12 @@ declare type AiChatProviderReturnValue = {
|
|
|
339
346
|
openCanvas: (content: CanvasContent) => void;
|
|
340
347
|
/** Close the canvas panel and restore the previous visualization mode */
|
|
341
348
|
closeCanvas: () => void;
|
|
349
|
+
/** The currently active mini-game (easter egg), or null */
|
|
350
|
+
activeGame: "dino" | "pong" | null;
|
|
351
|
+
/** Launch a mini-game overlay */
|
|
352
|
+
openGame: (game: "dino" | "pong") => void;
|
|
353
|
+
/** Close the active mini-game overlay */
|
|
354
|
+
closeGame: () => void;
|
|
342
355
|
/** The currently active tool hint, or null if none is selected */
|
|
343
356
|
activeToolHint: AiChatToolHint | null;
|
|
344
357
|
/** Set the active tool hint (pass null to clear) */
|
|
@@ -565,6 +578,18 @@ export declare const aiTranslations: {
|
|
|
565
578
|
readonly controls: "← → to move";
|
|
566
579
|
readonly escToExit: "Esc to exit";
|
|
567
580
|
};
|
|
581
|
+
readonly dino: {
|
|
582
|
+
readonly title: "One Run";
|
|
583
|
+
readonly tapToStart: "Press Space or tap to start";
|
|
584
|
+
readonly gameOver: "Game over";
|
|
585
|
+
readonly pressToRestart: "Space to restart";
|
|
586
|
+
readonly score: "Score";
|
|
587
|
+
readonly yourScore: "Your score";
|
|
588
|
+
readonly newRecord: "New record!";
|
|
589
|
+
readonly hi: "HI";
|
|
590
|
+
readonly controls: "Space to jump · ↓ to crouch";
|
|
591
|
+
readonly escToExit: "Esc to exit";
|
|
592
|
+
};
|
|
568
593
|
readonly creditWarning: {
|
|
569
594
|
readonly soft: "You're running low on AI credits.";
|
|
570
595
|
readonly getCredits: "Get credits";
|
|
@@ -593,7 +618,7 @@ export declare const aiTranslations: {
|
|
|
593
618
|
readonly navHint: {
|
|
594
619
|
readonly navigate: "navigate";
|
|
595
620
|
readonly select: "select";
|
|
596
|
-
readonly
|
|
621
|
+
readonly cancel: "cancel";
|
|
597
622
|
};
|
|
598
623
|
};
|
|
599
624
|
readonly growth: {
|
|
@@ -1105,6 +1130,12 @@ declare interface ClarifyingQuestionState {
|
|
|
1105
1130
|
confirm: () => void;
|
|
1106
1131
|
/** Skip the current step (only valid when the step is optional) */
|
|
1107
1132
|
skip: () => void;
|
|
1133
|
+
/**
|
|
1134
|
+
* Cancel the entire clarifying flow. Closes the panel and marks the tool
|
|
1135
|
+
* call as resolved-but-not-completed so it doesn't re-appear on history
|
|
1136
|
+
* reload. Cancellation is silent — no message is sent to the agent.
|
|
1137
|
+
*/
|
|
1138
|
+
cancel: () => void;
|
|
1108
1139
|
/** Go back to the previous step */
|
|
1109
1140
|
back: () => void;
|
|
1110
1141
|
/** Set the custom answer text */
|
|
@@ -1757,6 +1788,18 @@ export declare const defaultTranslations: {
|
|
|
1757
1788
|
readonly controls: "← → to move";
|
|
1758
1789
|
readonly escToExit: "Esc to exit";
|
|
1759
1790
|
};
|
|
1791
|
+
readonly dino: {
|
|
1792
|
+
readonly title: "One Run";
|
|
1793
|
+
readonly tapToStart: "Press Space or tap to start";
|
|
1794
|
+
readonly gameOver: "Game over";
|
|
1795
|
+
readonly pressToRestart: "Space to restart";
|
|
1796
|
+
readonly score: "Score";
|
|
1797
|
+
readonly yourScore: "Your score";
|
|
1798
|
+
readonly newRecord: "New record!";
|
|
1799
|
+
readonly hi: "HI";
|
|
1800
|
+
readonly controls: "Space to jump · ↓ to crouch";
|
|
1801
|
+
readonly escToExit: "Esc to exit";
|
|
1802
|
+
};
|
|
1760
1803
|
readonly creditWarning: {
|
|
1761
1804
|
readonly soft: "You're running low on AI credits.";
|
|
1762
1805
|
readonly getCredits: "Get credits";
|
|
@@ -1785,7 +1828,7 @@ export declare const defaultTranslations: {
|
|
|
1785
1828
|
readonly navHint: {
|
|
1786
1829
|
readonly navigate: "navigate";
|
|
1787
1830
|
readonly select: "select";
|
|
1788
|
-
readonly
|
|
1831
|
+
readonly cancel: "cancel";
|
|
1789
1832
|
};
|
|
1790
1833
|
};
|
|
1791
1834
|
readonly growth: {
|
|
@@ -3260,11 +3303,16 @@ declare module "gridstack" {
|
|
|
3260
3303
|
}
|
|
3261
3304
|
|
|
3262
3305
|
|
|
3306
|
+
declare namespace Calendar {
|
|
3307
|
+
var displayName: string;
|
|
3308
|
+
}
|
|
3309
|
+
|
|
3310
|
+
|
|
3263
3311
|
declare module "@tiptap/core" {
|
|
3264
3312
|
interface Commands<ReturnType> {
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3313
|
+
aiBlock: {
|
|
3314
|
+
insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
|
|
3315
|
+
executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
|
|
3268
3316
|
};
|
|
3269
3317
|
}
|
|
3270
3318
|
}
|
|
@@ -3272,9 +3320,9 @@ declare module "@tiptap/core" {
|
|
|
3272
3320
|
|
|
3273
3321
|
declare module "@tiptap/core" {
|
|
3274
3322
|
interface Commands<ReturnType> {
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3323
|
+
enhanceHighlight: {
|
|
3324
|
+
setEnhanceHighlight: (from: number, to: number) => ReturnType;
|
|
3325
|
+
clearEnhanceHighlight: () => ReturnType;
|
|
3278
3326
|
};
|
|
3279
3327
|
}
|
|
3280
3328
|
}
|
|
@@ -3307,8 +3355,3 @@ declare module "@tiptap/core" {
|
|
|
3307
3355
|
};
|
|
3308
3356
|
}
|
|
3309
3357
|
}
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
declare namespace Calendar {
|
|
3313
|
-
var displayName: string;
|
|
3314
|
-
}
|
package/dist/ai.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { l as t, k as e, F as r, a as o, C as i, b as n, m as F, n as u, d as A, I as c, g as C, c as m, h, e as l, u as d, j as I, i as f, f as T } from "./F0AiChat-
|
|
1
|
+
import { l as t, k as e, F as r, a as o, C as i, b as n, m as F, n as u, d as A, I as c, g as C, c as m, h, e as l, u as d, j as I, i as f, f as T } from "./F0AiChat-DjRuphGp.js";
|
|
2
2
|
import { defaultTranslations as S } from "./i18n-provider-defaults.js";
|
|
3
|
-
import { A as v, e as x, F as P, c as V, d as k, b as O, a as b, f as y, o as M, u as j } from "./types-
|
|
3
|
+
import { A as v, e as x, F as P, c as V, d as k, b as O, a as b, f as y, o as M, u as j } from "./types-DEz6Mm20.js";
|
|
4
4
|
export {
|
|
5
5
|
v as AiChatTranslationsProvider,
|
|
6
6
|
t as ChatSpinner,
|
package/dist/experimental.d.ts
CHANGED
|
@@ -1245,6 +1245,11 @@ declare type ButtonInternalProps = Pick<ActionProps, "size" | "disabled" | "clas
|
|
|
1245
1245
|
* If true, the button is inactive and does not respond to user interaction.
|
|
1246
1246
|
*/
|
|
1247
1247
|
disabled?: boolean;
|
|
1248
|
+
/**
|
|
1249
|
+
* If true and disabled is also true, the button retains its normal visual appearance
|
|
1250
|
+
* (no reduced opacity or not-allowed cursor) while still being non-interactive.
|
|
1251
|
+
*/
|
|
1252
|
+
withoutDisabledAppearance?: boolean;
|
|
1248
1253
|
/**
|
|
1249
1254
|
* @private
|
|
1250
1255
|
* If true, the button is visually active or selected (pressed state).
|
|
@@ -3115,6 +3120,18 @@ declare const defaultTranslations: {
|
|
|
3115
3120
|
readonly controls: "← → to move";
|
|
3116
3121
|
readonly escToExit: "Esc to exit";
|
|
3117
3122
|
};
|
|
3123
|
+
readonly dino: {
|
|
3124
|
+
readonly title: "One Run";
|
|
3125
|
+
readonly tapToStart: "Press Space or tap to start";
|
|
3126
|
+
readonly gameOver: "Game over";
|
|
3127
|
+
readonly pressToRestart: "Space to restart";
|
|
3128
|
+
readonly score: "Score";
|
|
3129
|
+
readonly yourScore: "Your score";
|
|
3130
|
+
readonly newRecord: "New record!";
|
|
3131
|
+
readonly hi: "HI";
|
|
3132
|
+
readonly controls: "Space to jump · ↓ to crouch";
|
|
3133
|
+
readonly escToExit: "Esc to exit";
|
|
3134
|
+
};
|
|
3118
3135
|
readonly creditWarning: {
|
|
3119
3136
|
readonly soft: "You're running low on AI credits.";
|
|
3120
3137
|
readonly getCredits: "Get credits";
|
|
@@ -3143,7 +3160,7 @@ declare const defaultTranslations: {
|
|
|
3143
3160
|
readonly navHint: {
|
|
3144
3161
|
readonly navigate: "navigate";
|
|
3145
3162
|
readonly select: "select";
|
|
3146
|
-
readonly
|
|
3163
|
+
readonly cancel: "cancel";
|
|
3147
3164
|
};
|
|
3148
3165
|
};
|
|
3149
3166
|
readonly growth: {
|
|
@@ -8036,11 +8053,16 @@ declare module "gridstack" {
|
|
|
8036
8053
|
}
|
|
8037
8054
|
|
|
8038
8055
|
|
|
8056
|
+
declare namespace Calendar {
|
|
8057
|
+
var displayName: string;
|
|
8058
|
+
}
|
|
8059
|
+
|
|
8060
|
+
|
|
8039
8061
|
declare module "@tiptap/core" {
|
|
8040
8062
|
interface Commands<ReturnType> {
|
|
8041
|
-
|
|
8042
|
-
|
|
8043
|
-
|
|
8063
|
+
aiBlock: {
|
|
8064
|
+
insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
|
|
8065
|
+
executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
|
|
8044
8066
|
};
|
|
8045
8067
|
}
|
|
8046
8068
|
}
|
|
@@ -8048,9 +8070,9 @@ declare module "@tiptap/core" {
|
|
|
8048
8070
|
|
|
8049
8071
|
declare module "@tiptap/core" {
|
|
8050
8072
|
interface Commands<ReturnType> {
|
|
8051
|
-
|
|
8052
|
-
|
|
8053
|
-
|
|
8073
|
+
enhanceHighlight: {
|
|
8074
|
+
setEnhanceHighlight: (from: number, to: number) => ReturnType;
|
|
8075
|
+
clearEnhanceHighlight: () => ReturnType;
|
|
8054
8076
|
};
|
|
8055
8077
|
}
|
|
8056
8078
|
}
|
|
@@ -8083,8 +8105,3 @@ declare module "@tiptap/core" {
|
|
|
8083
8105
|
};
|
|
8084
8106
|
}
|
|
8085
8107
|
}
|
|
8086
|
-
|
|
8087
|
-
|
|
8088
|
-
declare namespace Calendar {
|
|
8089
|
-
var displayName: string;
|
|
8090
|
-
}
|
package/dist/experimental.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a9 as oa, aa as ca, ab as da, ac as ua, ad as Ft, ae as Te, af as fa, ag as ht, ah as rt, ai as Be, O as p, W as Z, P as pe, u as se, aj as ma, ak as ha, al as ba, am as pa, an as ga, a5 as oe, ao as xa, U as Ee, ap as va, aq as wa, ar as $, as as ya, at as Na, M as _e, au as ln, av as Ca, aw as ka, Q as B, ax as sn, a8 as E, ay as ge, az as Sa, aA as Ia, aB as Fa, aC as Aa, aD as La, aE as Ce, aF as on, aG as Ea, aH as xe, aI as $e, aJ as _a, aK as bt, n as cn, aL as Ne, aM as Oa, aN as dn, a6 as ne, aO as H, R as un, aP as fn, aQ as Ta, aR as mn, aS as me, a7 as ee, aT as Da, aU as za, aV as Pa, aW as Ra, X as be, aX as Ge, aY as Ba, aZ as $a, a_ as Wa, a$ as Ma, b0 as He, b1 as hn, b2 as ja, b3 as Va, b4 as Ga, b5 as We, b6 as Ha, b7 as Ua, b8 as Ka, b9 as qa, ba as Ya, bb as Za, bc as Xa, bd as Ja, be as Qa, bf as er, bg as lt, bh as it, bi as bn, bj as tr, bk as nr, bl as pn, bm as ar, bn as rr, T as Ue, bo as pt, bp as gn, bq as lr, br as xn, bs as ir, bt as sr, bu as or, bv as Le, bw as cr, bx as De, by as At, bz as st, bA as dr, bB as ur, a as fr, c as mr, bC as hr, bD as vn, bE as br, bF as pr, F as gr, bG as wn, _ as xr, bH as yn, bI as vr, bJ as Lt, bK as wr, bL as yr, bM as Nr, bN as Cr, bO as Nn, bP as kr, bQ as Sr, bR as Ir, bS as Fr, bT as Ar, Y as Cn, bU as ue, bV as kn, bW as gt, bX as xt, bY as vt, bZ as Sn, b_ as wt, b$ as In, $ as Fn, c0 as Lr, c1 as Er, c2 as _r, c3 as Or, c4 as Tr, c5 as Dr, c6 as zr, c7 as Pr, c8 as Rr, c9 as Br, ca as $r, cb as Et, cc as _t, cd as Ot, ce as Wr, cf as Mr, cg as jr, ch as Vr, ci as An, cj as Gr, ck as Hr, cl as Ur } from "./F0AiChat-
|
|
2
|
-
import { cF as Ac, cE as Lc, co as Ec, cR as _c, cy as Oc, cz as Tc, cn as Dc, cB as zc, cp as Pc, d1 as Rc, c$ as Bc, cq as $c, cC as Wc, cD as Mc, cA as jc, cr as Vc, cN as Gc, cO as Hc, cS as Uc, cZ as Kc, c_ as qc, d0 as Yc, cx as Zc, cs as Xc, cH as Jc, cG as Qc, ct as ed, cu as td, cv as nd, cP as ad, d2 as rd, cm as ld, cQ as id, cU as sd, cV as od, cM as cd, cJ as dd, cL as ud, cI as fd, cw as md, cK as hd, cW as bd, cX as pd, cT as gd, cY as xd } from "./F0AiChat-
|
|
1
|
+
import { a9 as oa, aa as ca, ab as da, ac as ua, ad as Ft, ae as Te, af as fa, ag as ht, ah as rt, ai as Be, O as p, W as Z, P as pe, u as se, aj as ma, ak as ha, al as ba, am as pa, an as ga, a5 as oe, ao as xa, U as Ee, ap as va, aq as wa, ar as $, as as ya, at as Na, M as _e, au as ln, av as Ca, aw as ka, Q as B, ax as sn, a8 as E, ay as ge, az as Sa, aA as Ia, aB as Fa, aC as Aa, aD as La, aE as Ce, aF as on, aG as Ea, aH as xe, aI as $e, aJ as _a, aK as bt, n as cn, aL as Ne, aM as Oa, aN as dn, a6 as ne, aO as H, R as un, aP as fn, aQ as Ta, aR as mn, aS as me, a7 as ee, aT as Da, aU as za, aV as Pa, aW as Ra, X as be, aX as Ge, aY as Ba, aZ as $a, a_ as Wa, a$ as Ma, b0 as He, b1 as hn, b2 as ja, b3 as Va, b4 as Ga, b5 as We, b6 as Ha, b7 as Ua, b8 as Ka, b9 as qa, ba as Ya, bb as Za, bc as Xa, bd as Ja, be as Qa, bf as er, bg as lt, bh as it, bi as bn, bj as tr, bk as nr, bl as pn, bm as ar, bn as rr, T as Ue, bo as pt, bp as gn, bq as lr, br as xn, bs as ir, bt as sr, bu as or, bv as Le, bw as cr, bx as De, by as At, bz as st, bA as dr, bB as ur, a as fr, c as mr, bC as hr, bD as vn, bE as br, bF as pr, F as gr, bG as wn, _ as xr, bH as yn, bI as vr, bJ as Lt, bK as wr, bL as yr, bM as Nr, bN as Cr, bO as Nn, bP as kr, bQ as Sr, bR as Ir, bS as Fr, bT as Ar, Y as Cn, bU as ue, bV as kn, bW as gt, bX as xt, bY as vt, bZ as Sn, b_ as wt, b$ as In, $ as Fn, c0 as Lr, c1 as Er, c2 as _r, c3 as Or, c4 as Tr, c5 as Dr, c6 as zr, c7 as Pr, c8 as Rr, c9 as Br, ca as $r, cb as Et, cc as _t, cd as Ot, ce as Wr, cf as Mr, cg as jr, ch as Vr, ci as An, cj as Gr, ck as Hr, cl as Ur } from "./F0AiChat-DjRuphGp.js";
|
|
2
|
+
import { cF as Ac, cE as Lc, co as Ec, cR as _c, cy as Oc, cz as Tc, cn as Dc, cB as zc, cp as Pc, d1 as Rc, c$ as Bc, cq as $c, cC as Wc, cD as Mc, cA as jc, cr as Vc, cN as Gc, cO as Hc, cS as Uc, cZ as Kc, c_ as qc, d0 as Yc, cx as Zc, cs as Xc, cH as Jc, cG as Qc, ct as ed, cu as td, cv as nd, cP as ad, d2 as rd, cm as ld, cQ as id, cU as sd, cV as od, cM as cd, cJ as dd, cL as ud, cI as fd, cw as md, cK as hd, cW as bd, cX as pd, cT as gd, cY as xd } from "./F0AiChat-DjRuphGp.js";
|
|
3
3
|
import { jsx as e, jsxs as o, Fragment as U } from "react/jsx-runtime";
|
|
4
4
|
import re, { forwardRef as j, useRef as V, useTransition as Kr, useState as _, useLayoutEffect as Ln, useContext as Ke, createContext as yt, useCallback as Q, useMemo as K, useEffect as W, useId as qr, Fragment as Yr, isValidElement as Zr, cloneElement as En, Children as _n } from "react";
|
|
5
|
-
import { C as Xr, P as Jr, g as On, c as Qr, F as ot, f as el, a as tl, A as nl, B as al, L as rl, b as ll, V as il, d as sl, e as Tt, h as ol, i as cl } from "./index-
|
|
6
|
-
import { l as wd, m as yd, j as Nd, n as Cd, s as kd, D as Sd, k as Id, o as Fd, w as Ad, x as Ld, N as Ed, y as _d, p as Od, r as Td, R as Dd, u as zd, q as Pd, _ as Rd, v as Bd, t as $d } from "./index-
|
|
5
|
+
import { C as Xr, P as Jr, g as On, c as Qr, F as ot, f as el, a as tl, A as nl, B as al, L as rl, b as ll, V as il, d as sl, e as Tt, h as ol, i as cl } from "./index-DzJ2kD_x.js";
|
|
6
|
+
import { l as wd, m as yd, j as Nd, n as Cd, s as kd, D as Sd, k as Id, o as Fd, w as Ad, x as Ld, N as Ed, y as _d, p as Od, r as Td, R as Dd, u as zd, q as Pd, _ as Rd, v as Bd, t as $d } from "./index-DzJ2kD_x.js";
|
|
7
7
|
const dl = oa("Search", [
|
|
8
8
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
9
9
|
["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
|
|
@@ -4229,8 +4229,11 @@ function Di({
|
|
|
4229
4229
|
"div",
|
|
4230
4230
|
{
|
|
4231
4231
|
className: p(
|
|
4232
|
-
|
|
4233
|
-
|
|
4232
|
+
// z-[21] sits above the chat wrapper (z-20 in canvas
|
|
4233
|
+
// mode) so the canvas card's right-side shadow paints
|
|
4234
|
+
// over the chat surface instead of being clipped by it.
|
|
4235
|
+
"pointer-events-none flex justify-end",
|
|
4236
|
+
N ? "fixed inset-0 z-[50]" : "absolute bottom-0 left-0 top-0 z-[21]"
|
|
4234
4237
|
),
|
|
4235
4238
|
style: N ? void 0 : { right: T },
|
|
4236
4239
|
children: /* @__PURE__ */ e(pr, {})
|
|
@@ -4244,7 +4247,13 @@ function Di({
|
|
|
4244
4247
|
"[&_.copilotKitSidebarContentWrapper]:relative [&_.copilotKitSidebarContentWrapper]:h-full [&_.copilotKitSidebarContentWrapper]:w-full",
|
|
4245
4248
|
N ? "fixed inset-0 z-[30]" : p(
|
|
4246
4249
|
"absolute right-0 top-0 bottom-0",
|
|
4247
|
-
|
|
4250
|
+
// In canvas mode the chat wrapper must sit above
|
|
4251
|
+
// the CanvasPanel (z-[15]) so the ResizeHandle's
|
|
4252
|
+
// hit-area (which extends a few pixels over the
|
|
4253
|
+
// canvas side of the seam) can receive hover
|
|
4254
|
+
// events — otherwise the canvas captures them
|
|
4255
|
+
// and the handle never lights up.
|
|
4256
|
+
D || w ? "z-20" : "z-0",
|
|
4248
4257
|
i === "hidden" && D ? "pl-1" : "pl-0"
|
|
4249
4258
|
)
|
|
4250
4259
|
),
|
package/dist/f0.d.ts
CHANGED
|
@@ -690,6 +690,13 @@ declare type AiChatProviderReturnValue = {
|
|
|
690
690
|
*/
|
|
691
691
|
fileDragOver: boolean;
|
|
692
692
|
/* Excluded from this release type: setFileDragOver */
|
|
693
|
+
/**
|
|
694
|
+
* Process files that were dropped onto the chat. Delegates to the
|
|
695
|
+
* `processFiles` callback registered by `ChatTextarea`'s file-attachment
|
|
696
|
+
* hook. Used by the chat-wide DropOverlay rendered in `SidebarWindow`.
|
|
697
|
+
*/
|
|
698
|
+
processDroppedFiles: (files: File[]) => void;
|
|
699
|
+
/* Excluded from this release type: setProcessDroppedFilesFunction */
|
|
693
700
|
/**
|
|
694
701
|
* Pre-loaded context shown as an empty state in the chat.
|
|
695
702
|
* Prepended to the first user message as `<pending-context>`.
|
|
@@ -712,6 +719,12 @@ declare type AiChatProviderReturnValue = {
|
|
|
712
719
|
openCanvas: (content: CanvasContent) => void;
|
|
713
720
|
/** Close the canvas panel and restore the previous visualization mode */
|
|
714
721
|
closeCanvas: () => void;
|
|
722
|
+
/** The currently active mini-game (easter egg), or null */
|
|
723
|
+
activeGame: "dino" | "pong" | null;
|
|
724
|
+
/** Launch a mini-game overlay */
|
|
725
|
+
openGame: (game: "dino" | "pong") => void;
|
|
726
|
+
/** Close the active mini-game overlay */
|
|
727
|
+
closeGame: () => void;
|
|
715
728
|
/** The currently active tool hint, or null if none is selected */
|
|
716
729
|
activeToolHint: AiChatToolHint | null;
|
|
717
730
|
/** Set the active tool hint (pass null to clear) */
|
|
@@ -938,6 +951,18 @@ export declare const aiTranslations: {
|
|
|
938
951
|
readonly controls: "← → to move";
|
|
939
952
|
readonly escToExit: "Esc to exit";
|
|
940
953
|
};
|
|
954
|
+
readonly dino: {
|
|
955
|
+
readonly title: "One Run";
|
|
956
|
+
readonly tapToStart: "Press Space or tap to start";
|
|
957
|
+
readonly gameOver: "Game over";
|
|
958
|
+
readonly pressToRestart: "Space to restart";
|
|
959
|
+
readonly score: "Score";
|
|
960
|
+
readonly yourScore: "Your score";
|
|
961
|
+
readonly newRecord: "New record!";
|
|
962
|
+
readonly hi: "HI";
|
|
963
|
+
readonly controls: "Space to jump · ↓ to crouch";
|
|
964
|
+
readonly escToExit: "Esc to exit";
|
|
965
|
+
};
|
|
941
966
|
readonly creditWarning: {
|
|
942
967
|
readonly soft: "You're running low on AI credits.";
|
|
943
968
|
readonly getCredits: "Get credits";
|
|
@@ -966,7 +991,7 @@ export declare const aiTranslations: {
|
|
|
966
991
|
readonly navHint: {
|
|
967
992
|
readonly navigate: "navigate";
|
|
968
993
|
readonly select: "select";
|
|
969
|
-
readonly
|
|
994
|
+
readonly cancel: "cancel";
|
|
970
995
|
};
|
|
971
996
|
};
|
|
972
997
|
readonly growth: {
|
|
@@ -1726,6 +1751,11 @@ declare type ButtonInternalProps = Pick<ActionProps, "size" | "disabled" | "clas
|
|
|
1726
1751
|
* If true, the button is inactive and does not respond to user interaction.
|
|
1727
1752
|
*/
|
|
1728
1753
|
disabled?: boolean;
|
|
1754
|
+
/**
|
|
1755
|
+
* If true and disabled is also true, the button retains its normal visual appearance
|
|
1756
|
+
* (no reduced opacity or not-allowed cursor) while still being non-interactive.
|
|
1757
|
+
*/
|
|
1758
|
+
withoutDisabledAppearance?: boolean;
|
|
1729
1759
|
/**
|
|
1730
1760
|
* @private
|
|
1731
1761
|
* If true, the button is visually active or selected (pressed state).
|
|
@@ -2672,6 +2702,12 @@ declare interface ClarifyingQuestionState {
|
|
|
2672
2702
|
confirm: () => void;
|
|
2673
2703
|
/** Skip the current step (only valid when the step is optional) */
|
|
2674
2704
|
skip: () => void;
|
|
2705
|
+
/**
|
|
2706
|
+
* Cancel the entire clarifying flow. Closes the panel and marks the tool
|
|
2707
|
+
* call as resolved-but-not-completed so it doesn't re-appear on history
|
|
2708
|
+
* reload. Cancellation is silent — no message is sent to the agent.
|
|
2709
|
+
*/
|
|
2710
|
+
cancel: () => void;
|
|
2675
2711
|
/** Go back to the previous step */
|
|
2676
2712
|
back: () => void;
|
|
2677
2713
|
/** Set the custom answer text */
|
|
@@ -4227,6 +4263,18 @@ export declare const defaultTranslations: {
|
|
|
4227
4263
|
readonly controls: "← → to move";
|
|
4228
4264
|
readonly escToExit: "Esc to exit";
|
|
4229
4265
|
};
|
|
4266
|
+
readonly dino: {
|
|
4267
|
+
readonly title: "One Run";
|
|
4268
|
+
readonly tapToStart: "Press Space or tap to start";
|
|
4269
|
+
readonly gameOver: "Game over";
|
|
4270
|
+
readonly pressToRestart: "Space to restart";
|
|
4271
|
+
readonly score: "Score";
|
|
4272
|
+
readonly yourScore: "Your score";
|
|
4273
|
+
readonly newRecord: "New record!";
|
|
4274
|
+
readonly hi: "HI";
|
|
4275
|
+
readonly controls: "Space to jump · ↓ to crouch";
|
|
4276
|
+
readonly escToExit: "Esc to exit";
|
|
4277
|
+
};
|
|
4230
4278
|
readonly creditWarning: {
|
|
4231
4279
|
readonly soft: "You're running low on AI credits.";
|
|
4232
4280
|
readonly getCredits: "Get credits";
|
|
@@ -4255,7 +4303,7 @@ export declare const defaultTranslations: {
|
|
|
4255
4303
|
readonly navHint: {
|
|
4256
4304
|
readonly navigate: "navigate";
|
|
4257
4305
|
readonly select: "select";
|
|
4258
|
-
readonly
|
|
4306
|
+
readonly cancel: "cancel";
|
|
4259
4307
|
};
|
|
4260
4308
|
};
|
|
4261
4309
|
readonly growth: {
|
|
@@ -13575,11 +13623,16 @@ declare module "gridstack" {
|
|
|
13575
13623
|
}
|
|
13576
13624
|
|
|
13577
13625
|
|
|
13626
|
+
declare namespace Calendar {
|
|
13627
|
+
var displayName: string;
|
|
13628
|
+
}
|
|
13629
|
+
|
|
13630
|
+
|
|
13578
13631
|
declare module "@tiptap/core" {
|
|
13579
13632
|
interface Commands<ReturnType> {
|
|
13580
|
-
|
|
13581
|
-
|
|
13582
|
-
|
|
13633
|
+
aiBlock: {
|
|
13634
|
+
insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
|
|
13635
|
+
executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
|
|
13583
13636
|
};
|
|
13584
13637
|
}
|
|
13585
13638
|
}
|
|
@@ -13587,9 +13640,9 @@ declare module "@tiptap/core" {
|
|
|
13587
13640
|
|
|
13588
13641
|
declare module "@tiptap/core" {
|
|
13589
13642
|
interface Commands<ReturnType> {
|
|
13590
|
-
|
|
13591
|
-
|
|
13592
|
-
|
|
13643
|
+
enhanceHighlight: {
|
|
13644
|
+
setEnhanceHighlight: (from: number, to: number) => ReturnType;
|
|
13645
|
+
clearEnhanceHighlight: () => ReturnType;
|
|
13593
13646
|
};
|
|
13594
13647
|
}
|
|
13595
13648
|
}
|
|
@@ -13622,8 +13675,3 @@ declare module "@tiptap/core" {
|
|
|
13622
13675
|
};
|
|
13623
13676
|
}
|
|
13624
13677
|
}
|
|
13625
|
-
|
|
13626
|
-
|
|
13627
|
-
declare namespace Calendar {
|
|
13628
|
-
var displayName: string;
|
|
13629
|
-
}
|
package/dist/f0.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { fz as Or, a6 as se, bU as Tn, O as P, P as ht, fA as Mr, W as yt, dG as zo, aS as Yi, fB as Io, a7 as zr, a8 as de, u as oe, ar as he, fq as Ut, U as Bo, ac as Po, M as Ir, fC as un, aO as Oe, aL as hi, fD as Ho, fE as Wo, fF as qo, fG as Ji, a0 as Go, fH as $o, fI as Br, fJ as jo, bd as fi, be as mi, a5 as Fn, bf as gi, aX as Pr, cR as hn, fK as Hr, fL as Uo, eg as Vo, fM as Zi, ef as Qo, fN as Ko, fO as wt, fP as Vt, fQ as Xo, fR as Wr, fS as Yo, fT as Jo, fU as An, fV as Zo, fW as ea, R as We, b0 as ta, d4 as si, d3 as qr, fX as na, fY as pi, cn as ia, fZ as ra, f_ as Gr, f$ as Ln, g0 as sa, g1 as oa, aI as vi, Q as Ce, aJ as aa, aK as fn, ce as la, g2 as ca, aR as On, g3 as $r, g4 as da, g5 as ua, g6 as ha, g7 as fa, cB as ma, m as ga, dq as pa, aq as jr, f5 as ft, g8 as Ur, f3 as Vr, g9 as mn, ga as Qr, ch as Kr, gb as Xr, as as bi, at as yi, gc as xi, aw as wi, aB as De, gd as Ci, aD as xt, ge as At, gf as Lt, av as Ot, gg as Mt, gh as va, gi as Zt, gj as Yr, gk as gn, bM as Pt, gl as _e, cs as ba, gm as Jr, gn as ya, go as pn, cr as xa, cq as wa, gp as Ca, gq as Sa, bO as Mn, aE as zn, gr as Zr, bJ as Si, bP as Ei, bc as Ea, gs as Ae, gt as Na, gu as _a, gv as es, gw as In, gx as Da, gy as Ra, cj as ts, gz as ka, gA as Ta, gB as Fa, gC as Aa, bp as ns, bv as La, ft as Oa, fu as Ma, fw as za, gD as is, bW as Ia, b_ as Ba, gE as er, c5 as Pa, gF as rs, gG as Ha, gH as Wa } from "./F0AiChat-DjRuphGp.js";
|
|
2
|
+
import { hl as Lf, gM as Of, co as Mf, l as zf, hz as If, bo as Bf, k as Pf, F as Hf, a as Wf, C as qf, hc as Gf, b as $f, gZ as jf, bN as Uf, c7 as Vf, _ as Qf, c8 as Kf, gJ as Xf, bh as Yf, Y as Jf, X as Zf, Z as em, b3 as tm, gT as nm, gX as im, gK as rm, gY as sm, g_ as om, h0 as am, hE as lm, bx as cm, n as dm, hw as um, b5 as hm, $ as fm, hg as mm, bB as gm, hh as pm, hj as vm, hk as bm, d1 as ym, c$ as xm, d as wm, gN as Cm, hm as Sm, gO as Em, gP as Nm, gQ as _m, cN as Dm, cO as Rm, gI as km, gR as Tm, hD as Fm, gS as Am, bu as Lm, d0 as Om, hi as Mm, cP as zm, cm as Im, hF as Bm, gU as Pm, gV as Hm, gW as Wm, gL as qm, cQ as Gm, hy as $m, hr as jm, he as Um, h5 as Vm, h4 as Qm, h3 as Km, hb as Xm, hu as Ym, g as Jm, hq as Zm, bs as eg, cM as tg, cJ as ng, cL as ig, ha as rg, cI as sg, h6 as og, hp as ag, ho as lg, h7 as cg, cw as dg, cK as ug, h1 as hg, h2 as fg, h8 as mg, c as gg, hn as pg, hs as vg, h as bg, hA as yg, hB as xg, hC as wg, bq as Cg, hd as Sg, g$ as Eg, hf as Ng, e as _g, hx as Dg, ht as Rg, j as kg, i as Tg, bV as Fg, T as Ag, h9 as Lg, hv as Og, f as Mg, hG as zg } from "./F0AiChat-DjRuphGp.js";
|
|
3
3
|
import { jsx as l, jsxs as C, Fragment as we } from "react/jsx-runtime";
|
|
4
4
|
import ae, { forwardRef as qe, useRef as W, useImperativeHandle as qa, Children as vn, createContext as Qe, useContext as Re, useState as j, useMemo as B, useEffect as V, useCallback as I, useLayoutEffect as oi, createElement as en, isValidElement as ss, Fragment as Ga, memo as os, useReducer as $a, cloneElement as ja, useId as as } from "react";
|
|
5
|
-
import { g as Ua, h as Va } from "./types-
|
|
6
|
-
import { A as Bg, e as Pg, F as Hg, c as Wg, d as qg, b as Gg, a as $g, f as jg, o as Ug, u as Vg } from "./types-
|
|
5
|
+
import { g as Ua, h as Va } from "./types-DEz6Mm20.js";
|
|
6
|
+
import { A as Bg, e as Pg, F as Hg, c as Wg, d as qg, b as Gg, a as $g, f as jg, o as Ug, u as Vg } from "./types-DEz6Mm20.js";
|
|
7
7
|
import { createPortal as ls, unstable_batchedUpdates as tn } from "react-dom";
|
|
8
|
-
import { C as Qa, M as Ni, D as Ka, z as Xa, u as cs, j as Ya } from "./index-
|
|
9
|
-
import { l as Kg, m as Xg, n as Yg, s as Jg, F as Zg, o as ep, w as tp, x as np, N as ip, y as rp, p as sp, P as op, r as ap, R as lp, q as cp, _ as dp, v as up, t as hp } from "./index-
|
|
8
|
+
import { C as Qa, M as Ni, D as Ka, z as Xa, u as cs, j as Ya } from "./index-DzJ2kD_x.js";
|
|
9
|
+
import { l as Kg, m as Xg, n as Yg, s as Jg, F as Zg, o as ep, w as tp, x as np, N as ip, y as rp, p as sp, P as op, r as ap, R as lp, q as cp, _ as dp, v as up, t as hp } from "./index-DzJ2kD_x.js";
|
|
10
10
|
import { defaultTranslations as mp } from "./i18n-provider-defaults.js";
|
|
11
11
|
import './f0.css';const Ja = {
|
|
12
12
|
xs: 1,
|
|
@@ -12008,7 +12008,11 @@ const Sr = {
|
|
|
12008
12008
|
disabled: r,
|
|
12009
12009
|
isEmojiMode: s = !1
|
|
12010
12010
|
}) => {
|
|
12011
|
-
const { value: o, label: a } = n, [d, u] = j(!1)
|
|
12011
|
+
const { value: o, label: a } = n, [d, u] = j(!1);
|
|
12012
|
+
V(() => {
|
|
12013
|
+
r && u(!1);
|
|
12014
|
+
}, [r]);
|
|
12015
|
+
const c = () => {
|
|
12012
12016
|
r || t(o);
|
|
12013
12017
|
}, h = (f) => {
|
|
12014
12018
|
i?.(o, f.native), u(!1);
|
|
@@ -12016,54 +12020,64 @@ const Sr = {
|
|
|
12016
12020
|
return /* @__PURE__ */ l(
|
|
12017
12021
|
"div",
|
|
12018
12022
|
{
|
|
12023
|
+
"data-testid": `score-edit-option-${o}`,
|
|
12019
12024
|
className: P(
|
|
12020
12025
|
"group relative flex h-10 min-w-20 flex-1 items-center justify-center rounded-md border border-solid border-f1-border-secondary text-center font-medium",
|
|
12021
12026
|
e && "border-f1-border-selected bg-f1-background-selected-secondary",
|
|
12022
12027
|
r ? "cursor-default" : "cursor-pointer"
|
|
12023
12028
|
),
|
|
12024
12029
|
onClick: c,
|
|
12025
|
-
children: s ? /* @__PURE__ */ C(
|
|
12026
|
-
|
|
12027
|
-
|
|
12028
|
-
|
|
12029
|
-
|
|
12030
|
-
|
|
12031
|
-
|
|
12032
|
-
|
|
12033
|
-
}
|
|
12034
|
-
) }),
|
|
12035
|
-
/* @__PURE__ */ l(
|
|
12036
|
-
gi,
|
|
12037
|
-
{
|
|
12038
|
-
side: "bottom",
|
|
12039
|
-
align: "center",
|
|
12040
|
-
className: "w-fit border-none bg-transparent p-2 shadow-none",
|
|
12041
|
-
onClick: (f) => {
|
|
12042
|
-
f.preventDefault(), f.stopPropagation();
|
|
12043
|
-
},
|
|
12044
|
-
children: /* @__PURE__ */ l(
|
|
12045
|
-
Ca,
|
|
12030
|
+
children: s ? /* @__PURE__ */ C(
|
|
12031
|
+
fi,
|
|
12032
|
+
{
|
|
12033
|
+
open: !r && d,
|
|
12034
|
+
onOpenChange: r ? void 0 : u,
|
|
12035
|
+
children: [
|
|
12036
|
+
/* @__PURE__ */ l(mi, { asChild: !0, children: /* @__PURE__ */ l(
|
|
12037
|
+
Ce,
|
|
12046
12038
|
{
|
|
12047
|
-
|
|
12048
|
-
|
|
12049
|
-
|
|
12050
|
-
|
|
12051
|
-
|
|
12052
|
-
|
|
12053
|
-
|
|
12054
|
-
|
|
12055
|
-
|
|
12056
|
-
|
|
12057
|
-
|
|
12058
|
-
|
|
12059
|
-
|
|
12060
|
-
|
|
12061
|
-
|
|
12039
|
+
emoji: a,
|
|
12040
|
+
label: o.toString(),
|
|
12041
|
+
variant: "ghost",
|
|
12042
|
+
disabled: r,
|
|
12043
|
+
withoutDisabledAppearance: !0,
|
|
12044
|
+
hideLabel: !0
|
|
12045
|
+
}
|
|
12046
|
+
) }),
|
|
12047
|
+
/* @__PURE__ */ l(
|
|
12048
|
+
gi,
|
|
12049
|
+
{
|
|
12050
|
+
side: "bottom",
|
|
12051
|
+
align: "center",
|
|
12052
|
+
className: "w-fit border-none bg-transparent p-2 shadow-none",
|
|
12053
|
+
onClick: (f) => {
|
|
12054
|
+
f.preventDefault(), f.stopPropagation();
|
|
12055
|
+
},
|
|
12056
|
+
children: /* @__PURE__ */ l(
|
|
12057
|
+
Ca,
|
|
12058
|
+
{
|
|
12059
|
+
data: Sa,
|
|
12060
|
+
onEmojiSelect: h,
|
|
12061
|
+
locale: "en",
|
|
12062
|
+
icons: "outline",
|
|
12063
|
+
set: "twitter",
|
|
12064
|
+
theme: "light",
|
|
12065
|
+
emojiButtonSize: 32,
|
|
12066
|
+
emojiButtonRadius: "10px",
|
|
12067
|
+
emojiSize: 24,
|
|
12068
|
+
maxFrequentRows: 2,
|
|
12069
|
+
skinTonePosition: "none",
|
|
12070
|
+
previewPosition: "none",
|
|
12071
|
+
searchPosition: "top",
|
|
12072
|
+
navPosition: "top",
|
|
12073
|
+
dynamicWidth: !0
|
|
12074
|
+
}
|
|
12075
|
+
)
|
|
12062
12076
|
}
|
|
12063
12077
|
)
|
|
12064
|
-
|
|
12065
|
-
|
|
12066
|
-
|
|
12078
|
+
]
|
|
12079
|
+
}
|
|
12080
|
+
) : /* @__PURE__ */ l("span", { className: "text-base font-medium", children: a })
|
|
12067
12081
|
}
|
|
12068
12082
|
);
|
|
12069
12083
|
}, Ju = ({
|
|
@@ -470,6 +470,18 @@ export declare const defaultTranslations: {
|
|
|
470
470
|
readonly controls: "← → to move";
|
|
471
471
|
readonly escToExit: "Esc to exit";
|
|
472
472
|
};
|
|
473
|
+
readonly dino: {
|
|
474
|
+
readonly title: "One Run";
|
|
475
|
+
readonly tapToStart: "Press Space or tap to start";
|
|
476
|
+
readonly gameOver: "Game over";
|
|
477
|
+
readonly pressToRestart: "Space to restart";
|
|
478
|
+
readonly score: "Score";
|
|
479
|
+
readonly yourScore: "Your score";
|
|
480
|
+
readonly newRecord: "New record!";
|
|
481
|
+
readonly hi: "HI";
|
|
482
|
+
readonly controls: "Space to jump · ↓ to crouch";
|
|
483
|
+
readonly escToExit: "Esc to exit";
|
|
484
|
+
};
|
|
473
485
|
readonly creditWarning: {
|
|
474
486
|
readonly soft: "You're running low on AI credits.";
|
|
475
487
|
readonly getCredits: "Get credits";
|
|
@@ -498,7 +510,7 @@ export declare const defaultTranslations: {
|
|
|
498
510
|
readonly navHint: {
|
|
499
511
|
readonly navigate: "navigate";
|
|
500
512
|
readonly select: "select";
|
|
501
|
-
readonly
|
|
513
|
+
readonly cancel: "cancel";
|
|
502
514
|
};
|
|
503
515
|
};
|
|
504
516
|
readonly growth: {
|
|
@@ -805,11 +817,16 @@ declare module "gridstack" {
|
|
|
805
817
|
}
|
|
806
818
|
|
|
807
819
|
|
|
820
|
+
declare namespace Calendar {
|
|
821
|
+
var displayName: string;
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
|
|
808
825
|
declare module "@tiptap/core" {
|
|
809
826
|
interface Commands<ReturnType> {
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
827
|
+
aiBlock: {
|
|
828
|
+
insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
|
|
829
|
+
executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
|
|
813
830
|
};
|
|
814
831
|
}
|
|
815
832
|
}
|
|
@@ -817,9 +834,9 @@ declare module "@tiptap/core" {
|
|
|
817
834
|
|
|
818
835
|
declare module "@tiptap/core" {
|
|
819
836
|
interface Commands<ReturnType> {
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
837
|
+
enhanceHighlight: {
|
|
838
|
+
setEnhanceHighlight: (from: number, to: number) => ReturnType;
|
|
839
|
+
clearEnhanceHighlight: () => ReturnType;
|
|
823
840
|
};
|
|
824
841
|
}
|
|
825
842
|
}
|
|
@@ -852,8 +869,3 @@ declare module "@tiptap/core" {
|
|
|
852
869
|
};
|
|
853
870
|
}
|
|
854
871
|
}
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
declare namespace Calendar {
|
|
858
|
-
var displayName: string;
|
|
859
|
-
}
|