@factorialco/f0-react 4.6.0 → 4.7.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 -7
- package/dist/experimental.js +57 -54
- package/dist/f0.d.ts +7 -7
- package/dist/i18n-provider-defaults.d.ts +7 -7
- package/package.json +1 -1
package/dist/ai.d.ts
CHANGED
|
@@ -4721,8 +4721,11 @@ declare module "@tiptap/core" {
|
|
|
4721
4721
|
|
|
4722
4722
|
declare module "@tiptap/core" {
|
|
4723
4723
|
interface Commands<ReturnType> {
|
|
4724
|
-
|
|
4725
|
-
|
|
4724
|
+
enhanceHighlight: {
|
|
4725
|
+
setEnhanceHighlight: (from: number, to: number, options?: {
|
|
4726
|
+
placeholder?: string;
|
|
4727
|
+
}) => ReturnType;
|
|
4728
|
+
clearEnhanceHighlight: () => ReturnType;
|
|
4726
4729
|
};
|
|
4727
4730
|
}
|
|
4728
4731
|
}
|
|
@@ -4730,11 +4733,8 @@ declare module "@tiptap/core" {
|
|
|
4730
4733
|
|
|
4731
4734
|
declare module "@tiptap/core" {
|
|
4732
4735
|
interface Commands<ReturnType> {
|
|
4733
|
-
|
|
4734
|
-
|
|
4735
|
-
placeholder?: string;
|
|
4736
|
-
}) => ReturnType;
|
|
4737
|
-
clearEnhanceHighlight: () => ReturnType;
|
|
4736
|
+
moodTracker: {
|
|
4737
|
+
insertMoodTracker: (data: MoodTrackerData) => ReturnType;
|
|
4738
4738
|
};
|
|
4739
4739
|
}
|
|
4740
4740
|
}
|
package/dist/experimental.d.ts
CHANGED
|
@@ -6349,6 +6349,7 @@ export declare interface MenuCategory {
|
|
|
6349
6349
|
export declare interface MenuItem extends NavigationItem {
|
|
6350
6350
|
icon: IconType;
|
|
6351
6351
|
badge?: number;
|
|
6352
|
+
tag?: string;
|
|
6352
6353
|
}
|
|
6353
6354
|
|
|
6354
6355
|
export declare interface MenuProps {
|
|
@@ -9780,8 +9781,11 @@ declare module "@tiptap/core" {
|
|
|
9780
9781
|
|
|
9781
9782
|
declare module "@tiptap/core" {
|
|
9782
9783
|
interface Commands<ReturnType> {
|
|
9783
|
-
|
|
9784
|
-
|
|
9784
|
+
enhanceHighlight: {
|
|
9785
|
+
setEnhanceHighlight: (from: number, to: number, options?: {
|
|
9786
|
+
placeholder?: string;
|
|
9787
|
+
}) => ReturnType;
|
|
9788
|
+
clearEnhanceHighlight: () => ReturnType;
|
|
9785
9789
|
};
|
|
9786
9790
|
}
|
|
9787
9791
|
}
|
|
@@ -9789,11 +9793,8 @@ declare module "@tiptap/core" {
|
|
|
9789
9793
|
|
|
9790
9794
|
declare module "@tiptap/core" {
|
|
9791
9795
|
interface Commands<ReturnType> {
|
|
9792
|
-
|
|
9793
|
-
|
|
9794
|
-
placeholder?: string;
|
|
9795
|
-
}) => ReturnType;
|
|
9796
|
-
clearEnhanceHighlight: () => ReturnType;
|
|
9796
|
+
moodTracker: {
|
|
9797
|
+
insertMoodTracker: (data: MoodTrackerData) => ReturnType;
|
|
9797
9798
|
};
|
|
9798
9799
|
}
|
|
9799
9800
|
}
|
package/dist/experimental.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { h as pa, B as ba, i as xa, j as va, k as Dt, l as Be, m as
|
|
1
|
+
import { h as pa, B as ba, i as xa, j as va, k as Dt, l as Be, m as ze, n as ya, o as p, p as J, q as ye, u as le, T as wa, r as Na, s as Ca, R as Ia, t as ka, v as ce, w as Sa, x as Nt, y as ut, z as Ve, A as Oe, E as Fa, G as Aa, H as U, J as La, K as Oa, L as xe, M as mn, N as Pa, O as Ea, Q as G, S as hn, U as z, V as ke, W as _a, X as Da, Y as Ta, Z as za, _ as Ra, $ as Pe, a0 as gn, a1 as Ba, a2 as we, a3 as Ue, a4 as $a, e as pn, a5 as Ae, a6 as Ma, a7 as bn, a8 as ie, a9 as Z, aa as xn, ab as vn, ac as Wa, ad as yn, ae as pe, af as ae, ag as ja, ah as Va, ai as Ua, aj as Ha, ak as Ga, al as ve, am as Ye, an as Ka, ao as qa, ap as Ya, aq as Ja, ar as Je, as as wn, at as Za, au as Xa, av as Qa, aw as He, ax as er, ay as Nn, az as tr, aA as nr, aB as ar, aC as rr, aD as ir, aE as lr, aF as sr, aG as or, aH as ft, aI as Cn, aJ as mt, aK as In, aL as cr, aM as dr, aN as ur, aO as fr, aP as mr, aQ as Ze, aR as Xe, aS as ht, aT as kn, aU as hr, aV as Ct, aW as gr, aX as pr, aY as br, aZ as Le, a_ as xr, a$ as vr, b0 as $e, b1 as Tt, b2 as gt, b3 as yr, b4 as wr, a as Nr, b as Cr, b5 as Sn, b6 as Ir, g as kr, F as Sr, b7 as Fr, b8 as Fn, b9 as Ar, ba as An, bb as Ln, bc as Lr, bd as Or, be as Pr, bf as Er, bg as _r, bh as Dr, bi as Tr, bj as zr, bk as Rr, bl as On, bm as Br, bn as $r, bo as Mr, bp as Wr, bq as ge, br as It, bs as kt, bt as St, bu as Pn, bv as Ft, bw as En, bx as _n, by as jr, bz as Vr, bA as Ur, bB as Hr, bC as Gr, bD as Kr, bE as qr, bF as Yr, bG as zt, bH as Jr, bI as Zr, bJ as Rt, bK as Bt, bL as $t, bM as Xr, bN as Qr, bO as ei, bP as ti, bQ as Dn, bR as ni, bS as ai } from "./F0CanvasPanel-NAs7-9VU.js";
|
|
2
2
|
import { c3 as Jc, c2 as Zc, cf as Xc, b$ as Qc, c0 as ed, bT as td, bU as nd, ci as ad, bV as rd, bW as id, cj as ld, c1 as sd, cb as od, cc as cd, cg as dd, bX as ud, c5 as fd, c4 as md, bY as hd, bZ as gd, cd as pd, ck as bd, ce as xd, ch as vd, ca as yd, c7 as wd, c9 as Nd, c6 as Cd, b_ as Id, c8 as kd } from "./F0CanvasPanel-NAs7-9VU.js";
|
|
3
3
|
import { jsx as e, jsxs as o, Fragment as X } from "react/jsx-runtime";
|
|
4
|
-
import ue, { forwardRef as H, useRef as j, useTransition as ri, useState as D, useLayoutEffect as Tn, useId as pt, useContext as
|
|
4
|
+
import ue, { forwardRef as H, useRef as j, useTransition as ri, useState as D, useLayoutEffect as Tn, useId as pt, useContext as Ee, createContext as Qe, useEffect as W, useCallback as ne, useMemo as q, Fragment as ii, isValidElement as li, cloneElement as zn, Children as Rn } from "react";
|
|
5
5
|
import { C as si, P as oi, a as Bn, M as ci, p as di, b as ui, R as Mt, c as $n, u as fi, d as mi, e as hi, f as gi, g as pi, h as Mn, S as bi, A as xi, B as vi, L as yi, i as wi, V as Ni, j as Ci, k as Ii, l as ki, O as Si } from "./useDataCollectionSource-Coj9e5oF.js";
|
|
6
6
|
import { r as Fd, s as Ad, o as Ld, H as Od, t as Pd, z as Ed, a8 as _d, G as Dd, q as Td, aa as zd, a9 as Rd, Q as Bd, ad as $d, F as Md, Y as Wd, U as jd, J as Vd, af as Ud, K as Hd, Z as Gd, _ as Kd, v as qd, ab as Yd, ac as Jd, N as Zd, $ as Xd, a5 as Qd, a7 as eu, w as tu, y as nu, D as au, W as ru, ae as iu, X as lu, T as su, ag as ou, x as cu, E as du, m as uu, n as fu, a1 as mu, a2 as hu, a6 as gu, I as pu, a3 as bu, a0 as xu, a4 as vu } from "./useDataCollectionSource-Coj9e5oF.js";
|
|
7
7
|
const Fi = pa("Search", [
|
|
@@ -122,7 +122,7 @@ function Ei({ breadcrumbs: t, append: n }) {
|
|
|
122
122
|
isFirst: f === 0,
|
|
123
123
|
children: f === t.length - 1 ? n : void 0
|
|
124
124
|
},
|
|
125
|
-
|
|
125
|
+
ze(d)
|
|
126
126
|
))
|
|
127
127
|
}
|
|
128
128
|
),
|
|
@@ -135,7 +135,7 @@ function Ei({ breadcrumbs: t, append: n }) {
|
|
|
135
135
|
item: l.headItem,
|
|
136
136
|
isLast: !1
|
|
137
137
|
},
|
|
138
|
-
`first-item-${
|
|
138
|
+
`first-item-${ze(l.headItem)}`
|
|
139
139
|
),
|
|
140
140
|
c && /* @__PURE__ */ o(X, { children: [
|
|
141
141
|
/* @__PURE__ */ e(
|
|
@@ -153,7 +153,7 @@ function Ei({ breadcrumbs: t, append: n }) {
|
|
|
153
153
|
isFirst: !1,
|
|
154
154
|
children: f === l.tailItems.length - 1 ? n : void 0
|
|
155
155
|
},
|
|
156
|
-
|
|
156
|
+
ze(d)
|
|
157
157
|
))
|
|
158
158
|
] }),
|
|
159
159
|
!c && /* @__PURE__ */ e(X, { children: l.tailItems.map((d, f) => /* @__PURE__ */ e(
|
|
@@ -164,12 +164,12 @@ function Ei({ breadcrumbs: t, append: n }) {
|
|
|
164
164
|
isFirst: !1,
|
|
165
165
|
children: f === l.tailItems.length - 1 ? n : void 0
|
|
166
166
|
},
|
|
167
|
-
|
|
167
|
+
ze(d)
|
|
168
168
|
)) })
|
|
169
169
|
] })
|
|
170
170
|
]
|
|
171
171
|
},
|
|
172
|
-
`breadcrumb-${
|
|
172
|
+
`breadcrumb-${ze(t.at(-1)) ?? 0}`
|
|
173
173
|
);
|
|
174
174
|
}
|
|
175
175
|
const _i = ye({
|
|
@@ -369,7 +369,7 @@ const _i = ye({
|
|
|
369
369
|
}, Se = () => {
|
|
370
370
|
};
|
|
371
371
|
function et() {
|
|
372
|
-
const t =
|
|
372
|
+
const t = Ee(Vn);
|
|
373
373
|
return t === null ? {
|
|
374
374
|
enabled: !1,
|
|
375
375
|
setEnabled: Se,
|
|
@@ -451,8 +451,8 @@ const Un = ({
|
|
|
451
451
|
!i && /* @__PURE__ */ e(Sa, { side: "left", className: "font-medium", children: l.ai.welcome })
|
|
452
452
|
] }) }) }) : null;
|
|
453
453
|
}, Vt = "one_sidebar_locked", Hn = Qe(void 0);
|
|
454
|
-
function
|
|
455
|
-
const t =
|
|
454
|
+
function _e() {
|
|
455
|
+
const t = Ee(Hn);
|
|
456
456
|
return t === void 0 ? {
|
|
457
457
|
isSmallScreen: !1,
|
|
458
458
|
isLastToggleInvokedByUser: !0,
|
|
@@ -521,7 +521,7 @@ const Ut = J.create(U), Ht = {
|
|
|
521
521
|
const [r, i] = D(!1), l = () => {
|
|
522
522
|
i(!0), n(!t);
|
|
523
523
|
};
|
|
524
|
-
return /* @__PURE__ */ e(
|
|
524
|
+
return /* @__PURE__ */ e(Oe, { mode: "wait", children: /* @__PURE__ */ e(
|
|
525
525
|
"button",
|
|
526
526
|
{
|
|
527
527
|
className: p(
|
|
@@ -878,7 +878,7 @@ const Ut = J.create(U), Ht = {
|
|
|
878
878
|
G,
|
|
879
879
|
{
|
|
880
880
|
variant: "ghost",
|
|
881
|
-
icon:
|
|
881
|
+
icon: Pe,
|
|
882
882
|
size: "sm",
|
|
883
883
|
hideLabel: !0,
|
|
884
884
|
onClick: s,
|
|
@@ -910,7 +910,7 @@ const Ut = J.create(U), Ht = {
|
|
|
910
910
|
] });
|
|
911
911
|
}, Ot = Qe(null), Qo = Ot.Provider;
|
|
912
912
|
function ec() {
|
|
913
|
-
return
|
|
913
|
+
return Ee(Ot);
|
|
914
914
|
}
|
|
915
915
|
function Ki(t, n) {
|
|
916
916
|
const a = n?.getItemTitle, r = n?.mode ?? "url", i = t !== null, l = t?.previousItem ?? null, s = t?.nextItem ?? null, c = t?.previousItemUrl ?? null, d = t?.nextItemUrl ?? null, f = t?.absoluteIndex ?? null, u = t?.totalItems, m = t?.hasPrevious ?? !1, h = t?.hasNext ?? !1, b = t?.goToPrevious, g = t?.goToNext;
|
|
@@ -946,7 +946,7 @@ function tc({
|
|
|
946
946
|
oneSwitchTooltip: d,
|
|
947
947
|
oneSwitchAutoOpen: f
|
|
948
948
|
}) {
|
|
949
|
-
const { sidebarState: u, toggleSidebar: m } =
|
|
949
|
+
const { sidebarState: u, toggleSidebar: m } = _e(), h = Ee(Ot), b = l ?? h ?? void 0, g = [
|
|
950
950
|
{
|
|
951
951
|
id: t.href,
|
|
952
952
|
label: t.name,
|
|
@@ -964,7 +964,7 @@ function tc({
|
|
|
964
964
|
),
|
|
965
965
|
children: [
|
|
966
966
|
/* @__PURE__ */ o("div", { className: "flex flex-grow items-center", children: [
|
|
967
|
-
/* @__PURE__ */ e(
|
|
967
|
+
/* @__PURE__ */ e(Oe, { children: !i && u !== "locked" && /* @__PURE__ */ e(
|
|
968
968
|
J.div,
|
|
969
969
|
{
|
|
970
970
|
initial: { opacity: 0, width: 0 },
|
|
@@ -1180,7 +1180,7 @@ const Yi = () => {
|
|
|
1180
1180
|
},
|
|
1181
1181
|
isOpen: n,
|
|
1182
1182
|
autoClearMinutes: i
|
|
1183
|
-
}), /* @__PURE__ */ e(
|
|
1183
|
+
}), /* @__PURE__ */ e(Oe, { children: n && /* @__PURE__ */ e(
|
|
1184
1184
|
J.div,
|
|
1185
1185
|
{
|
|
1186
1186
|
"aria-hidden": !n,
|
|
@@ -1301,7 +1301,7 @@ const Yi = () => {
|
|
|
1301
1301
|
variant: "ghost",
|
|
1302
1302
|
hideLabel: !0,
|
|
1303
1303
|
label: "",
|
|
1304
|
-
icon:
|
|
1304
|
+
icon: Pe,
|
|
1305
1305
|
onClick: d
|
|
1306
1306
|
}
|
|
1307
1307
|
) }),
|
|
@@ -1397,7 +1397,7 @@ const Yi = () => {
|
|
|
1397
1397
|
G,
|
|
1398
1398
|
{
|
|
1399
1399
|
variant: "ghost",
|
|
1400
|
-
icon:
|
|
1400
|
+
icon: Pe,
|
|
1401
1401
|
size: "sm",
|
|
1402
1402
|
hideLabel: !0,
|
|
1403
1403
|
onClick: a,
|
|
@@ -1962,7 +1962,7 @@ const qt = ({
|
|
|
1962
1962
|
/* @__PURE__ */ e("div", { className: "flex flex-1 flex-col", children: /* @__PURE__ */ e("div", { className: "flex flex-1 flex-row items-center gap-2 break-all", children: /* @__PURE__ */ e("span", { className: p("line-clamp-1"), children: t }) }) })
|
|
1963
1963
|
]
|
|
1964
1964
|
}
|
|
1965
|
-
) }),
|
|
1965
|
+
) }), Re = ({ primaryAction: t, secondaryActions: n }) => {
|
|
1966
1966
|
if (!n || n.length === 0)
|
|
1967
1967
|
return /* @__PURE__ */ e(
|
|
1968
1968
|
G,
|
|
@@ -2021,24 +2021,24 @@ const qt = ({
|
|
|
2021
2021
|
disabled: r || !l
|
|
2022
2022
|
} : void 0;
|
|
2023
2023
|
return x || (x = y, y = void 0), m && u ? (b = /* @__PURE__ */ e(
|
|
2024
|
-
|
|
2024
|
+
Re,
|
|
2025
2025
|
{
|
|
2026
2026
|
primaryAction: x,
|
|
2027
2027
|
secondaryActions: y ? [y] : []
|
|
2028
2028
|
}
|
|
2029
2029
|
), g = /* @__PURE__ */ e(
|
|
2030
|
-
|
|
2030
|
+
Re,
|
|
2031
2031
|
{
|
|
2032
2032
|
primaryAction: t[0],
|
|
2033
2033
|
secondaryActions: t.slice(1)
|
|
2034
2034
|
}
|
|
2035
2035
|
)) : m ? b = /* @__PURE__ */ e(
|
|
2036
|
-
|
|
2036
|
+
Re,
|
|
2037
2037
|
{
|
|
2038
2038
|
primaryAction: t[0],
|
|
2039
2039
|
secondaryActions: t.slice(1)
|
|
2040
2040
|
}
|
|
2041
|
-
) : u && (b = /* @__PURE__ */ e(
|
|
2041
|
+
) : u && (b = /* @__PURE__ */ e(Re, { primaryAction: x, secondaryActions: [] }), y && (g = /* @__PURE__ */ e(Re, { primaryAction: y, secondaryActions: [] }))), /* @__PURE__ */ e("footer", { className: "rounded-bl-xl border-0 border-r-[1px] border-t-[1px] border-solid border-f1-border-secondary bg-f1-background/30 backdrop-blur-2xl", children: /* @__PURE__ */ o("div", { className: "flex flex-1 justify-between p-2", children: [
|
|
2042
2042
|
b,
|
|
2043
2043
|
g
|
|
2044
2044
|
] }) });
|
|
@@ -2259,8 +2259,8 @@ const qt = ({
|
|
|
2259
2259
|
h,
|
|
2260
2260
|
T.id
|
|
2261
2261
|
), oe = (T?.subItems ?? []).filter(
|
|
2262
|
-
(
|
|
2263
|
-
(ga) => ga.subId ===
|
|
2262
|
+
(Te) => Q?.subItems?.some(
|
|
2263
|
+
(ga) => ga.subId === Te.subId
|
|
2264
2264
|
)
|
|
2265
2265
|
), he = (T.subItems?.length ?? 0) === oe.length, ha = !he && oe.length > 0;
|
|
2266
2266
|
return /* @__PURE__ */ e(
|
|
@@ -2268,14 +2268,14 @@ const qt = ({
|
|
|
2268
2268
|
{
|
|
2269
2269
|
groupView: !0,
|
|
2270
2270
|
expanded: T.expanded ?? !1,
|
|
2271
|
-
onExpand: (
|
|
2271
|
+
onExpand: (Te) => g(T, Te),
|
|
2272
2272
|
search: i,
|
|
2273
2273
|
entity: T,
|
|
2274
2274
|
onSelect: l,
|
|
2275
2275
|
onRemove: s,
|
|
2276
2276
|
selected: he,
|
|
2277
2277
|
partialSelected: ha,
|
|
2278
|
-
showGroupIcon: a.find((
|
|
2278
|
+
showGroupIcon: a.find((Te) => Te.value === r)?.groupType === "team",
|
|
2279
2279
|
singleSelector: B,
|
|
2280
2280
|
goToFirst: v,
|
|
2281
2281
|
goToLast: C,
|
|
@@ -2367,7 +2367,7 @@ const qt = ({
|
|
|
2367
2367
|
}
|
|
2368
2368
|
const ee = F > 0 && K === F, Y = K > 0;
|
|
2369
2369
|
return [ee, Y];
|
|
2370
|
-
}, [n, k, t]), Ce = te.length, se = !B && (y || N), it = O && O.length > 0,
|
|
2370
|
+
}, [n, k, t]), Ce = te.length, se = !B && (y || N), it = O && O.length > 0, De = !w && (!B && se || it);
|
|
2371
2371
|
return /* @__PURE__ */ o(
|
|
2372
2372
|
"div",
|
|
2373
2373
|
{
|
|
@@ -2418,7 +2418,7 @@ const qt = ({
|
|
|
2418
2418
|
{
|
|
2419
2419
|
className: p(
|
|
2420
2420
|
"flex-grow-1 flex h-96 flex-col justify-start gap-1 border-0 border-r-[1px] border-solid border-f1-border-secondary bg-f1-background",
|
|
2421
|
-
|
|
2421
|
+
De ? "" : "rounded-b-xl border-r-0"
|
|
2422
2422
|
),
|
|
2423
2423
|
children: [
|
|
2424
2424
|
w && /* @__PURE__ */ e("div", { className: "flex h-full w-full flex-row items-center justify-center", children: /* @__PURE__ */ e(bn, {}) }),
|
|
@@ -2506,7 +2506,7 @@ const qt = ({
|
|
|
2506
2506
|
right: !a && /* @__PURE__ */ e(
|
|
2507
2507
|
U,
|
|
2508
2508
|
{
|
|
2509
|
-
icon:
|
|
2509
|
+
icon: Pe,
|
|
2510
2510
|
size: "sm",
|
|
2511
2511
|
className: "cursor-pointer text-f1-icon-secondary",
|
|
2512
2512
|
onClick: () => n?.(t)
|
|
@@ -2757,7 +2757,7 @@ const qt = ({
|
|
|
2757
2757
|
(w) => w.subItems && w.subItems.length > 0
|
|
2758
2758
|
),
|
|
2759
2759
|
[t.entities]
|
|
2760
|
-
), m =
|
|
2760
|
+
), m = Ee(ir), b = m.portalContainer && (m.position === "center" || m.position === "fullscreen") ? m.portalContainer : void 0;
|
|
2761
2761
|
function g(w) {
|
|
2762
2762
|
if (t.singleSelector) {
|
|
2763
2763
|
t.onSelect(w), a(!1);
|
|
@@ -3592,7 +3592,7 @@ const Bl = () => /* @__PURE__ */ o("div", { className: "flex flex-col justify-ar
|
|
|
3592
3592
|
),
|
|
3593
3593
|
children: t.map((a) => {
|
|
3594
3594
|
const r = /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
3595
|
-
|
|
3595
|
+
Le,
|
|
3596
3596
|
{
|
|
3597
3597
|
icon: a.icon,
|
|
3598
3598
|
text: a.label ?? (a.description || ""),
|
|
@@ -4088,7 +4088,7 @@ const Bl = () => /* @__PURE__ */ o("div", { className: "flex flex-col justify-ar
|
|
|
4088
4088
|
) })
|
|
4089
4089
|
] }),
|
|
4090
4090
|
"bottomTags" in a && /* @__PURE__ */ e("div", { className: "-ml-1.5 flex flex-row items-center [&>div]:-mr-1", children: a.bottomTags.map((l, s) => /* @__PURE__ */ o(X, { children: [
|
|
4091
|
-
/* @__PURE__ */ e(
|
|
4091
|
+
/* @__PURE__ */ e(Le, { ...l }, l.text),
|
|
4092
4092
|
s < a.bottomTags.length - 1 && /* @__PURE__ */ e("span", { children: "·" })
|
|
4093
4093
|
] })) }),
|
|
4094
4094
|
"description" in a && a.description && /* @__PURE__ */ e("p", { className: "truncate text-f1-foreground-secondary", children: a.description })
|
|
@@ -4191,7 +4191,7 @@ function Jl(t, n, a) {
|
|
|
4191
4191
|
return !n && t ? a === "hidden" : n && !t ? a !== "hidden" : !1;
|
|
4192
4192
|
}
|
|
4193
4193
|
function Zl(t, n) {
|
|
4194
|
-
const { sidebarState: a, toggleSidebar: r } =
|
|
4194
|
+
const { sidebarState: a, toggleSidebar: r } = _e(), i = j(t);
|
|
4195
4195
|
W(() => {
|
|
4196
4196
|
n && Jl(
|
|
4197
4197
|
t,
|
|
@@ -4207,7 +4207,7 @@ function Xl({
|
|
|
4207
4207
|
sidebar: r,
|
|
4208
4208
|
banner: i
|
|
4209
4209
|
}) {
|
|
4210
|
-
const { sidebarState: l, toggleSidebar: s, isSmallScreen: c, setForceFloat: d } =
|
|
4210
|
+
const { sidebarState: l, toggleSidebar: s, isSmallScreen: c, setForceFloat: d } = _e(), f = Ze(), {
|
|
4211
4211
|
open: u,
|
|
4212
4212
|
visualizationMode: m,
|
|
4213
4213
|
canvasContent: h,
|
|
@@ -4243,7 +4243,7 @@ function Xl({
|
|
|
4243
4243
|
children: /* @__PURE__ */ o("div", { className: "scrollbar-macos grid h-screen grid-cols-1 grid-rows-[auto_minmax(0,1fr)]", children: [
|
|
4244
4244
|
/* @__PURE__ */ e("div", { className: "col-[1/-1]", children: i }),
|
|
4245
4245
|
/* @__PURE__ */ e(Sn, { id: "ai-chat-group", children: /* @__PURE__ */ o("div", { className: "relative isolate flex h-full", children: [
|
|
4246
|
-
/* @__PURE__ */ e(
|
|
4246
|
+
/* @__PURE__ */ e(Oe, { children: l === "unlocked" && /* @__PURE__ */ e(
|
|
4247
4247
|
J.nav,
|
|
4248
4248
|
{
|
|
4249
4249
|
className: p(
|
|
@@ -4376,7 +4376,7 @@ const ra = ({
|
|
|
4376
4376
|
onPulseClick: s
|
|
4377
4377
|
}) => {
|
|
4378
4378
|
const c = le(), [d, f] = D(!l);
|
|
4379
|
-
return /* @__PURE__ */ e("div", { className: "relative h-10 w-10", children: /* @__PURE__ */ e(
|
|
4379
|
+
return /* @__PURE__ */ e("div", { className: "relative h-10 w-10", children: /* @__PURE__ */ e(Oe, { mode: "popLayout", initial: !!d, children: d ? /* @__PURE__ */ e(
|
|
4380
4380
|
J.div,
|
|
4381
4381
|
{
|
|
4382
4382
|
className: "relative h-10 w-10 rounded-full bg-f1-background-warning",
|
|
@@ -4524,7 +4524,7 @@ function ia({
|
|
|
4524
4524
|
period: a,
|
|
4525
4525
|
embedded: r = !1
|
|
4526
4526
|
}) {
|
|
4527
|
-
const { sidebarState: i, toggleSidebar: l, isSmallScreen: s } =
|
|
4527
|
+
const { sidebarState: i, toggleSidebar: l, isSmallScreen: s } = _e();
|
|
4528
4528
|
return /* @__PURE__ */ o(
|
|
4529
4529
|
"div",
|
|
4530
4530
|
{
|
|
@@ -4905,7 +4905,7 @@ function rs({ isExpanded: t }) {
|
|
|
4905
4905
|
);
|
|
4906
4906
|
}
|
|
4907
4907
|
function is() {
|
|
4908
|
-
const { prevSidebarState: t, sidebarState: n, toggleSidebar: a, isSmallScreen: r } =
|
|
4908
|
+
const { prevSidebarState: t, sidebarState: n, toggleSidebar: a, isSmallScreen: r } = _e(), i = j(null);
|
|
4909
4909
|
return W(() => {
|
|
4910
4910
|
t === "hidden" && n === "locked" && i.current?.focus();
|
|
4911
4911
|
}, [t, n]), /* @__PURE__ */ o(
|
|
@@ -4921,7 +4921,7 @@ function is() {
|
|
|
4921
4921
|
"aria-label": "Close Sidebar",
|
|
4922
4922
|
children: [
|
|
4923
4923
|
/* @__PURE__ */ e("div", { className: p("hidden", { flex: !r }), children: /* @__PURE__ */ e(rs, { isExpanded: n === "locked" }) }),
|
|
4924
|
-
/* @__PURE__ */ e("div", { className: p("hidden", { flex: r }), children: /* @__PURE__ */ e(U, { icon:
|
|
4924
|
+
/* @__PURE__ */ e("div", { className: p("hidden", { flex: r }), children: /* @__PURE__ */ e(U, { icon: Pe, size: "md" }) })
|
|
4925
4925
|
]
|
|
4926
4926
|
}
|
|
4927
4927
|
);
|
|
@@ -4967,7 +4967,7 @@ function ss({ children: t }) {
|
|
|
4967
4967
|
);
|
|
4968
4968
|
}
|
|
4969
4969
|
function Et() {
|
|
4970
|
-
const t =
|
|
4970
|
+
const t = Ee(sa);
|
|
4971
4971
|
if (!t)
|
|
4972
4972
|
throw new Error("useDragContext must be used within a DragProvider");
|
|
4973
4973
|
return t;
|
|
@@ -4976,7 +4976,7 @@ const os = ({
|
|
|
4976
4976
|
item: t,
|
|
4977
4977
|
active: n
|
|
4978
4978
|
}) => /* @__PURE__ */ o("div", { className: "flex w-full items-center justify-between", children: [
|
|
4979
|
-
/* @__PURE__ */ o("div", { className: "flex items-center gap-1.5 font-medium text-f1-foreground", children: [
|
|
4979
|
+
/* @__PURE__ */ o("div", { className: "flex min-w-0 items-center gap-1.5 font-medium text-f1-foreground", children: [
|
|
4980
4980
|
/* @__PURE__ */ e(
|
|
4981
4981
|
U,
|
|
4982
4982
|
{
|
|
@@ -4990,7 +4990,10 @@ const os = ({
|
|
|
4990
4990
|
),
|
|
4991
4991
|
/* @__PURE__ */ e("span", { children: t.label })
|
|
4992
4992
|
] }),
|
|
4993
|
-
t.badge && /* @__PURE__ */
|
|
4993
|
+
(t.tag || t.badge) && /* @__PURE__ */ o("div", { className: "flex flex-shrink-0 items-center gap-1.5", children: [
|
|
4994
|
+
t.tag && /* @__PURE__ */ e(Le, { text: t.tag }),
|
|
4995
|
+
t.badge && /* @__PURE__ */ e(Je, { value: t.badge, size: "sm", type: "bold" })
|
|
4996
|
+
] })
|
|
4994
4997
|
] }), cs = ({ item: t }) => {
|
|
4995
4998
|
const { isActive: n } = Nt(), { label: a, icon: r, ...i } = t, l = n(i.href, { exact: i.exactMatch });
|
|
4996
4999
|
return /* @__PURE__ */ e(
|
|
@@ -5504,7 +5507,7 @@ function ms({
|
|
|
5504
5507
|
footer: a,
|
|
5505
5508
|
onFooterDropdownClick: r
|
|
5506
5509
|
}) {
|
|
5507
|
-
const { sidebarState: i, isSmallScreen: l } =
|
|
5510
|
+
const { sidebarState: i, isSmallScreen: l } = _e(), s = Ze(), [c, d] = ft({ threshold: 1 }), [f, u] = ft({ threshold: 1 }), m = le(), h = {
|
|
5508
5511
|
x: {
|
|
5509
5512
|
ease: i !== "locked" ? l ? [0.25, 0.46, 0.45, 0.94] : [0.175, 0.885, 0.32, 1.1] : [0, 0, 0.58, 1],
|
|
5510
5513
|
duration: s ? 0 : i !== "locked" && !l ? 0.3 : 0.2
|
|
@@ -5563,7 +5566,7 @@ function ms({
|
|
|
5563
5566
|
"bottom-ref"
|
|
5564
5567
|
)
|
|
5565
5568
|
] }),
|
|
5566
|
-
/* @__PURE__ */ o(
|
|
5569
|
+
/* @__PURE__ */ o(Oe, { children: [
|
|
5567
5570
|
!d && /* @__PURE__ */ e(rn, { position: "top" }, "shadow-scroll-top"),
|
|
5568
5571
|
!u && /* @__PURE__ */ e(rn, { position: "bottom" }, "shadow-scroll-bottom")
|
|
5569
5572
|
] })
|
|
@@ -5585,7 +5588,7 @@ const vc = ie(ms), hs = {
|
|
|
5585
5588
|
size: "sm"
|
|
5586
5589
|
},
|
|
5587
5590
|
rejected: {
|
|
5588
|
-
icon:
|
|
5591
|
+
icon: Pe,
|
|
5589
5592
|
type: "critical",
|
|
5590
5593
|
size: "sm"
|
|
5591
5594
|
}
|
|
@@ -5839,7 +5842,7 @@ function wc(t) {
|
|
|
5839
5842
|
...T,
|
|
5840
5843
|
navigationFilters: x.currentNavigationFilters
|
|
5841
5844
|
})
|
|
5842
|
-
}),
|
|
5845
|
+
}), De = q(() => s || (x.idProvider ? (T, Q) => x.idProvider(T, Q) : pi), [s, x.idProvider]), F = q(() => {
|
|
5843
5846
|
if (!be || se === null) return P;
|
|
5844
5847
|
const T = P.previousItem ?? se.previous, Q = P.nextItem ?? se.next, oe = (he) => he && k ? k(he) ?? null : null;
|
|
5845
5848
|
return {
|
|
@@ -5856,12 +5859,12 @@ function wc(t) {
|
|
|
5856
5859
|
// the resolved neighbor instead.
|
|
5857
5860
|
goToPrevious: te ? P.goToPrevious : () => {
|
|
5858
5861
|
se.previous && P.setActiveItemId(
|
|
5859
|
-
|
|
5862
|
+
De(se.previous)
|
|
5860
5863
|
);
|
|
5861
5864
|
},
|
|
5862
5865
|
goToNext: te ? P.goToNext : () => {
|
|
5863
5866
|
se.next && P.setActiveItemId(
|
|
5864
|
-
|
|
5867
|
+
De(se.next)
|
|
5865
5868
|
);
|
|
5866
5869
|
}
|
|
5867
5870
|
};
|
|
@@ -5871,7 +5874,7 @@ function wc(t) {
|
|
|
5871
5874
|
se,
|
|
5872
5875
|
te,
|
|
5873
5876
|
k,
|
|
5874
|
-
|
|
5877
|
+
De
|
|
5875
5878
|
]), K = Ki(F, {
|
|
5876
5879
|
getItemTitle: d,
|
|
5877
5880
|
mode: h
|
|
@@ -7083,7 +7086,7 @@ function wt({
|
|
|
7083
7086
|
] }),
|
|
7084
7087
|
/* @__PURE__ */ o("div", { className: "flex flex-row items-center gap-2", children: [
|
|
7085
7088
|
a && /* @__PURE__ */ e(_n, { ...a }),
|
|
7086
|
-
r && /* @__PURE__ */ e(
|
|
7089
|
+
r && /* @__PURE__ */ e(Le, { ...r }),
|
|
7087
7090
|
!!i && /* @__PURE__ */ e(Je, { value: i })
|
|
7088
7091
|
] })
|
|
7089
7092
|
] });
|
|
@@ -7544,9 +7547,9 @@ function Mc({
|
|
|
7544
7547
|
),
|
|
7545
7548
|
N && E
|
|
7546
7549
|
] }) : /* @__PURE__ */ o(X, { children: [
|
|
7547
|
-
s && C && /* @__PURE__ */ e(X, { children: /* @__PURE__ */ e(
|
|
7550
|
+
s && C && /* @__PURE__ */ e(X, { children: /* @__PURE__ */ e(Le, { text: C.name, icon: C.icon }) }),
|
|
7548
7551
|
N && E,
|
|
7549
|
-
P && R && /* @__PURE__ */ e(
|
|
7552
|
+
P && R && /* @__PURE__ */ e(Le, { text: R })
|
|
7550
7553
|
] }) })
|
|
7551
7554
|
] }) });
|
|
7552
7555
|
}
|
|
@@ -8002,5 +8005,5 @@ export {
|
|
|
8002
8005
|
vu as useInfiniteScrollPagination,
|
|
8003
8006
|
Ki as usePageHeaderItemNavigation,
|
|
8004
8007
|
ec as usePageHeaderNavigation,
|
|
8005
|
-
|
|
8008
|
+
_e as useSidebar
|
|
8006
8009
|
};
|
package/dist/f0.d.ts
CHANGED
|
@@ -17187,8 +17187,11 @@ declare module "@tiptap/core" {
|
|
|
17187
17187
|
|
|
17188
17188
|
declare module "@tiptap/core" {
|
|
17189
17189
|
interface Commands<ReturnType> {
|
|
17190
|
-
|
|
17191
|
-
|
|
17190
|
+
enhanceHighlight: {
|
|
17191
|
+
setEnhanceHighlight: (from: number, to: number, options?: {
|
|
17192
|
+
placeholder?: string;
|
|
17193
|
+
}) => ReturnType;
|
|
17194
|
+
clearEnhanceHighlight: () => ReturnType;
|
|
17192
17195
|
};
|
|
17193
17196
|
}
|
|
17194
17197
|
}
|
|
@@ -17196,11 +17199,8 @@ declare module "@tiptap/core" {
|
|
|
17196
17199
|
|
|
17197
17200
|
declare module "@tiptap/core" {
|
|
17198
17201
|
interface Commands<ReturnType> {
|
|
17199
|
-
|
|
17200
|
-
|
|
17201
|
-
placeholder?: string;
|
|
17202
|
-
}) => ReturnType;
|
|
17203
|
-
clearEnhanceHighlight: () => ReturnType;
|
|
17202
|
+
moodTracker: {
|
|
17203
|
+
insertMoodTracker: (data: MoodTrackerData) => ReturnType;
|
|
17204
17204
|
};
|
|
17205
17205
|
}
|
|
17206
17206
|
}
|
|
@@ -876,8 +876,11 @@ declare module "@tiptap/core" {
|
|
|
876
876
|
|
|
877
877
|
declare module "@tiptap/core" {
|
|
878
878
|
interface Commands<ReturnType> {
|
|
879
|
-
|
|
880
|
-
|
|
879
|
+
enhanceHighlight: {
|
|
880
|
+
setEnhanceHighlight: (from: number, to: number, options?: {
|
|
881
|
+
placeholder?: string;
|
|
882
|
+
}) => ReturnType;
|
|
883
|
+
clearEnhanceHighlight: () => ReturnType;
|
|
881
884
|
};
|
|
882
885
|
}
|
|
883
886
|
}
|
|
@@ -885,11 +888,8 @@ declare module "@tiptap/core" {
|
|
|
885
888
|
|
|
886
889
|
declare module "@tiptap/core" {
|
|
887
890
|
interface Commands<ReturnType> {
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
placeholder?: string;
|
|
891
|
-
}) => ReturnType;
|
|
892
|
-
clearEnhanceHighlight: () => ReturnType;
|
|
891
|
+
moodTracker: {
|
|
892
|
+
insertMoodTracker: (data: MoodTrackerData) => ReturnType;
|
|
893
893
|
};
|
|
894
894
|
}
|
|
895
895
|
}
|