@factorialco/f0-react 1.470.0 → 1.470.2
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-XZjqd4AY.js → F0AiChat-tvZo2d0g.js} +39802 -40561
- package/dist/ai.d.ts +2 -26
- package/dist/ai.js +2 -2
- package/dist/experimental.d.ts +0 -12
- package/dist/experimental.js +415 -415
- package/dist/f0.d.ts +2 -26
- package/dist/f0.js +6 -6
- package/dist/i18n-provider-defaults.d.ts +0 -12
- package/dist/i18n-provider-defaults.js +0 -12
- package/dist/{index-_wtftEvC.js → index-C0E-IJhP.js} +1 -1
- package/dist/styles.css +1 -1
- package/dist/{types-_SCbiXxu.js → types-BUlx9vcm.js} +1 -1
- package/package.json +1 -1
package/dist/f0.d.ts
CHANGED
|
@@ -720,9 +720,9 @@ declare type AiChatProviderReturnValue = {
|
|
|
720
720
|
/** Close the canvas panel and restore the previous visualization mode */
|
|
721
721
|
closeCanvas: () => void;
|
|
722
722
|
/** The currently active mini-game (easter egg), or null */
|
|
723
|
-
activeGame: "
|
|
723
|
+
activeGame: "pong" | null;
|
|
724
724
|
/** Launch a mini-game overlay */
|
|
725
|
-
openGame: (game: "
|
|
725
|
+
openGame: (game: "pong") => void;
|
|
726
726
|
/** Close the active mini-game overlay */
|
|
727
727
|
closeGame: () => void;
|
|
728
728
|
/** The currently active tool hint, or null if none is selected */
|
|
@@ -951,18 +951,6 @@ export declare const aiTranslations: {
|
|
|
951
951
|
readonly controls: "← → to move";
|
|
952
952
|
readonly escToExit: "Esc to exit";
|
|
953
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
|
-
};
|
|
966
954
|
readonly creditWarning: {
|
|
967
955
|
readonly soft: "You're running low on AI credits.";
|
|
968
956
|
readonly getCredits: "Get credits";
|
|
@@ -4263,18 +4251,6 @@ export declare const defaultTranslations: {
|
|
|
4263
4251
|
readonly controls: "← → to move";
|
|
4264
4252
|
readonly escToExit: "Esc to exit";
|
|
4265
4253
|
};
|
|
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
|
-
};
|
|
4278
4254
|
readonly creditWarning: {
|
|
4279
4255
|
readonly soft: "You're running low on AI credits.";
|
|
4280
4256
|
readonly getCredits: "Get credits";
|
package/dist/f0.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
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-
|
|
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-
|
|
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-tvZo2d0g.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-tvZo2d0g.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-BUlx9vcm.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-BUlx9vcm.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-C0E-IJhP.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-C0E-IJhP.js";
|
|
10
10
|
import { defaultTranslations as mp } from "./i18n-provider-defaults.js";
|
|
11
11
|
import './f0.css';const Ja = {
|
|
12
12
|
xs: 1,
|
|
@@ -470,18 +470,6 @@ 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
|
-
};
|
|
485
473
|
readonly creditWarning: {
|
|
486
474
|
readonly soft: "You're running low on AI credits.";
|
|
487
475
|
readonly getCredits: "Get credits";
|
|
@@ -470,18 +470,6 @@ const e = {
|
|
|
470
470
|
controls: "← → to move",
|
|
471
471
|
escToExit: "Esc to exit"
|
|
472
472
|
},
|
|
473
|
-
dino: {
|
|
474
|
-
title: "One Run",
|
|
475
|
-
tapToStart: "Press Space or tap to start",
|
|
476
|
-
gameOver: "Game over",
|
|
477
|
-
pressToRestart: "Space to restart",
|
|
478
|
-
score: "Score",
|
|
479
|
-
yourScore: "Your score",
|
|
480
|
-
newRecord: "New record!",
|
|
481
|
-
hi: "HI",
|
|
482
|
-
controls: "Space to jump · ↓ to crouch",
|
|
483
|
-
escToExit: "Esc to exit"
|
|
484
|
-
},
|
|
485
473
|
creditWarning: {
|
|
486
474
|
soft: "You're running low on AI credits.",
|
|
487
475
|
getCredits: "Get credits",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as x, jsx as m, Fragment as Bt } from "react/jsx-runtime";
|
|
2
2
|
import * as K from "react";
|
|
3
3
|
import C, { useRef as ot, useState as ae, useCallback as Ye, useEffect as Ze, useLayoutEffect as kc, PureComponent as Kn, useMemo as $s, forwardRef as Pt, useId as Ac, useImperativeHandle as Cc, memo as wf, Fragment as Ia } from "react";
|
|
4
|
-
import { M as Pn, aG as xf, O as z, ax as Sf, d3 as kf, d4 as Af, P as js, a6 as Re, aO as Ki, d5 as An, d6 as Cf, d7 as Ef, d8 as Ra, d9 as $a, da as ja, db as Fa, dc as za, dd as Of, de as _f, df as Nf, dg as Tf, dh as Ec, di as Oc, aW as Dn, dj as _e, dk as U, dl as Me, dm as _c, dn as Pf, dp as Nc, dq as Fs, dr as Df, ds as ye, dt as Gi, du as oe, dv as Tc, dw as Yi, dx as zs, dy as Bs, dz as Vs, dA as pe, dB as Pe, dC as Go, dD as qi, dE as Mf, dF as Oe, dG as Xi, dH as Te, dI as pn, dJ as Hs, dK as Ji, dL as ui, dM as Zi, c9 as Ws, dN as Lf, dO as Qr, dP as Si, dQ as If, dR as Rf, dS as $f, dT as jf, dU as Ff, dV as zf, dW as Pc, dX as Dc, dY as Mc, dZ as Lc, d_ as Ic, d$ as Bf, e0 as ki, e1 as Vf, e2 as Hf, e3 as $r, e4 as Kt, a3 as Ot, e5 as Us, e6 as jr, e7 as Rc, a4 as $c, e8 as Wf, e9 as Uf, a1 as Kf, ea as Gf, bV as Yf, a2 as qf, eb as fe, ec as we,
|
|
4
|
+
import { M as Pn, aG as xf, O as z, ax as Sf, d3 as kf, d4 as Af, P as js, a6 as Re, aO as Ki, d5 as An, d6 as Cf, d7 as Ef, d8 as Ra, d9 as $a, da as ja, db as Fa, dc as za, dd as Of, de as _f, df as Nf, dg as Tf, dh as Ec, di as Oc, aW as Dn, dj as _e, dk as U, dl as Me, dm as _c, dn as Pf, dp as Nc, dq as Fs, dr as Df, ds as ye, dt as Gi, du as oe, dv as Tc, dw as Yi, dx as zs, dy as Bs, dz as Vs, dA as pe, dB as Pe, dC as Go, dD as qi, dE as Mf, dF as Oe, dG as Xi, dH as Te, dI as pn, dJ as Hs, dK as Ji, dL as ui, dM as Zi, c9 as Ws, dN as Lf, dO as Qr, dP as Si, dQ as If, dR as Rf, dS as $f, dT as jf, dU as Ff, dV as zf, dW as Pc, dX as Dc, dY as Mc, dZ as Lc, d_ as Ic, d$ as Bf, e0 as ki, e1 as Vf, e2 as Hf, e3 as $r, e4 as Kt, a3 as Ot, e5 as Us, e6 as jr, e7 as Rc, a4 as $c, e8 as Wf, e9 as Uf, a1 as Kf, ea as Gf, bV as Yf, a2 as qf, eb as fe, ec as we, ag as Xf, ah as Jf, ai as Zf, al as Qf, ed as jc, ee as eh, ef as Fc, bU as Dt, ar as _t, bp as th, Q, aE as Ks, eg as nh, cI as Ce, eh as Ao, ei as et, ej as gt, ek as $e, el as rh, em as di, en as rt, eo as zc, ep as qe, eq as Gs, er as Qe, es as Ba, et as ih, eu as Bc, ev as be, ew as Ve, ex as vr, ey as Ai, ez as Vc, eA as oh, eB as mn, eC as sh, eD as ah, eE as lh, a8 as j, aS as Hc, bu as ch, a7 as Wc, eF as Fr, eG as zr, eH as Ys, eI as uh, eJ as Uc, eK as Kc, eL as Gc, eM as dh, eN as Yc, eO as qc, eP as Xc, eQ as Jc, eR as Zc, eS as Qc, eT as fh, eU as hh, u as gn, aN as ph, bM as Qi, U as eu, W as tn, bo as mh, b7 as gh, br as yh, eV as bh, eW as vh, eX as wh, eY as xh, eZ as Sh, e_ as kh, aJ as tu, aK as qs, aL as eo, e$ as Va, f0 as Ah, f1 as Ch, f2 as Eh, f3 as Oh, f4 as _h, f5 as Nh, f6 as Th, f7 as Ph, f8 as Dh, f9 as Mh, fa as Lh, fb as Ih, fc as Rh, fd as $h, fe as jh, ff as Fh, fg as zh, X as Bh, aC as Vh, aQ as Hh, bB as Wh, bv as Ha, Y as Uh, aI as Kh, bN as nu, aH as Wa, b$ as Gh, cA as ru, fh as Yh, fi as qh, fj as Xh, fk as Jh, fl as Zh, fm as Qh, fn as ep, b3 as Yo, aX as iu, fo as tp, c7 as ou, fp as np, b2 as rp, fq as ip, fr as op, fs as sp, ft as ap, fu as lp, fv as cp, fw as up, fx as dp, fy as fp, c6 as Ua } from "./F0AiChat-tvZo2d0g.js";
|
|
5
5
|
import './index.css';const hp = {
|
|
6
6
|
active: !0,
|
|
7
7
|
breakpoints: {},
|