@factorialco/f0-react 1.188.0 → 1.189.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.
@@ -3540,6 +3540,7 @@ declare type ProductUpdatesProp = {
3540
3540
  dismissable: boolean;
3541
3541
  onClose?: () => void;
3542
3542
  trackVisibility?: (open: boolean) => void;
3543
+ type?: "one-campaign" | undefined;
3543
3544
  }>;
3544
3545
  };
3545
3546
  };
@@ -4790,8 +4791,8 @@ declare global {
4790
4791
 
4791
4792
  declare module "@tiptap/core" {
4792
4793
  interface Commands<ReturnType> {
4793
- liveCompanion: {
4794
- insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
4794
+ aiBlock: {
4795
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfigWithLabels) => ReturnType;
4795
4796
  };
4796
4797
  }
4797
4798
  }
@@ -4799,8 +4800,8 @@ declare module "@tiptap/core" {
4799
4800
 
4800
4801
  declare module "@tiptap/core" {
4801
4802
  interface Commands<ReturnType> {
4802
- aiBlock: {
4803
- insertAIBlock: (data: AIBlockData, config: AIBlockConfigWithLabels) => ReturnType;
4803
+ liveCompanion: {
4804
+ insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
4804
4805
  };
4805
4806
  }
4806
4807
  }
@@ -4815,6 +4816,11 @@ declare module "@tiptap/core" {
4815
4816
  }
4816
4817
 
4817
4818
 
4819
+ declare namespace Calendar {
4820
+ var displayName: string;
4821
+ }
4822
+
4823
+
4818
4824
  declare module "@tiptap/core" {
4819
4825
  interface Commands<ReturnType> {
4820
4826
  moodTracker: {
@@ -4822,8 +4828,3 @@ declare module "@tiptap/core" {
4822
4828
  };
4823
4829
  }
4824
4830
  }
4825
-
4826
-
4827
- declare namespace Calendar {
4828
- var displayName: string;
4829
- }
@@ -1,5 +1,5 @@
1
- import { aB as ov, aC as av, aD as k0, aE as La, aF as Vk, aG as Hk, aH as Wk, aI as Vc, aJ as qk, aK as Uk, aL as Kk, aM as K, aN as lv, aO as Gk, aP as Jk, aQ as Yk, aR as ws, aS as Jo, aT as Jl, aU as Zk, aV as el, aW as Xk, aX as Hc, aY as Qk, aZ as ew, a_ as tl, a$ as tw, b0 as nw, b1 as iw, b2 as w0, b3 as rw, b4 as x0, b5 as sw, b6 as dv, b7 as fv, b8 as ow, b9 as Qs, q as At, a as N, ba as nr, P as Ge, bb as Ve, s as de, j as it, y as re, bc as _f, L as Nr, bd as je, be as ir, _ as cv, bf as Re, bg as aw, bh as lw, bi as dw, bj as Fh, bk as uv, v as Yl, w as ii, x as ai, bl as fw, bm as Zl, bn as Qu, bo as cw, n as Cf, bp as hv, f as uw, bq as hw, br as pw, bs as mw, b as _0, bt as gw, bu as yw, bv as pv, bw as Bh, bx as vw, c as Sf, by as eo, bz as $h, bA as $t, bB as bw, bC as Tn, bD as kw, bE as mv, bF as ww, bG as Bi, bH as xw, bI as _w, bJ as Cw, bK as Sw, bL as Nw, bM as gv, bN as Lw, bO as C0, bP as Mw, ax as to, S as Mi, t as zh, bQ as Ew, bR as yv, bS as Jt, $ as Ma, r as rr, bT as zr, bU as Tw, bV as Xr, bW as jh, a8 as Wn, bX as ye, bY as Yt, bZ as Nf, b_ as Yo, b$ as Ow, c0 as vv, c1 as bv, h as Lf, i as Mf, k as Ef, c2 as Vh, c3 as Aw, c4 as kv, C as mn, c5 as wv, c6 as Dw, c7 as Iw, G as Rw, c8 as xv, c9 as gt, ca as e1, cb as _v, a5 as t1, cc as Pw, cd as Fw, ce as Bw, cf as $w, cg as zw, ay as Tf, a2 as n1, F as Hh, aA as jw, ch as Ln, az as Vw, ci as Cv, cj as an, ck as Sv, cl as hr, cm as Hw, cn as Ww, co as qt, cp as Xl, cq as Nv, cr as qw, ag as Of, a6 as Wh, al as jr, cs as qh, ct as Uh, cu as Lv, cv as Uw, a9 as Kw, a1 as Mv, cw as Gw, cx as Ev, cy as Jw, cz as Yw, cA as Zw, D as Tv, u as Ov, cB as S0, cC as Xw, cD as Ea, cE as Qw, cF as Af, K as ex, m as tx, cG as nx, cH as ix, cI as rx, cJ as sx, cK as ox, cL as ax, cM as lx, cN as dx, p as fx, an as cx, cO as Av, cP as Df, cQ as N0, Y as Dv, cR as Ta, cS as Iv, cT as Rv, cU as ux, a0 as no, cV as hx, a3 as Pv, I as px, cW as ft, cX as L0, cY as mx, cZ as gx, c_ as yx, c$ as Wc, d0 as vx, d1 as bx, ab as Ql, ao as M0, d2 as Fv, z as If, d3 as Rf, d4 as Pf, E as Ff, aa as Kh, d5 as kx, as as wx, d6 as i1, d7 as xx, d8 as ed, at as _x, d9 as Cx, ar as Bv, aq as Sx, ap as Nx, da as Lx, db as Mx, ac as Ex, dc as Tx, a4 as Ox, dd as Oa, de as Gh, df as Jh, dg as Aa, dh as $v, di as zv, dj as Ax, au as jv, dk as Vv, ad as Hv, dl as Dx, dm as Ix, dn as Rx, H as Px, A as Fx, B as Bx, e as $x, g as zx, V as jx, d as Vx, dp as E0, dq as Hx, dr as Wx, ds as qx, dt as Wv, du as Ux } from "./hooks-DJZUy5yN.js";
2
- import { J as EJ, dw as TJ, a7 as OJ, dv as AJ } from "./hooks-DJZUy5yN.js";
1
+ import { aC as ov, aD as av, aE as k0, aF as La, aG as Vk, aH as Hk, aI as Wk, aJ as Vc, aK as qk, aL as Uk, aM as Kk, aN as K, aO as lv, aP as Gk, aQ as Jk, aR as Yk, aS as ws, aT as Jo, aU as Jl, aV as Zk, aW as el, aX as Xk, aY as Hc, aZ as Qk, a_ as ew, a$ as tl, b0 as tw, b1 as nw, b2 as iw, b3 as w0, b4 as rw, b5 as x0, b6 as sw, b7 as dv, b8 as fv, b9 as ow, ba as Qs, q as At, a as N, bb as nr, P as Ge, bc as Ve, s as de, j as it, y as re, bd as _f, L as Nr, be as je, bf as ir, _ as cv, bg as Re, bh as aw, bi as lw, bj as dw, bk as Fh, bl as uv, v as Yl, w as ii, x as ai, bm as fw, bn as Zl, bo as Qu, bp as cw, n as Cf, bq as hv, f as uw, br as hw, bs as pw, bt as mw, b as _0, bu as gw, bv as yw, bw as pv, bx as Bh, by as vw, c as Sf, bz as eo, bA as $h, bB as $t, bC as bw, bD as Tn, bE as kw, bF as mv, bG as ww, bH as Bi, bI as xw, bJ as _w, bK as Cw, bL as Sw, bM as Nw, bN as gv, bO as Lw, bP as C0, bQ as Mw, ay as to, S as Mi, t as zh, bR as Ew, bS as yv, bT as Jt, $ as Ma, r as rr, bU as zr, bV as Tw, bW as Xr, bX as jh, a8 as Wn, bY as ye, bZ as Yt, b_ as Nf, b$ as Yo, c0 as Ow, c1 as vv, c2 as bv, h as Lf, i as Mf, k as Ef, c3 as Vh, c4 as Aw, c5 as kv, C as mn, c6 as wv, c7 as Dw, c8 as Iw, G as Rw, c9 as xv, ca as gt, cb as e1, cc as _v, a5 as t1, cd as Pw, ce as Fw, cf as Bw, cg as $w, ch as zw, az as Tf, a2 as n1, F as Hh, aB as jw, ci as Ln, aA as Vw, cj as Cv, ck as an, cl as Sv, cm as hr, cn as Hw, co as Ww, cp as qt, cq as Xl, cr as Nv, cs as qw, ag as Of, a6 as Wh, al as jr, ct as qh, cu as Uh, cv as Lv, cw as Uw, a9 as Kw, a1 as Mv, cx as Gw, cy as Ev, cz as Jw, cA as Yw, cB as Zw, D as Tv, u as Ov, cC as S0, cD as Xw, cE as Ea, cF as Qw, cG as Af, K as ex, m as tx, cH as nx, cI as ix, cJ as rx, cK as sx, cL as ox, cM as ax, cN as lx, cO as dx, p as fx, an as cx, cP as Av, cQ as Df, cR as N0, Y as Dv, cS as Ta, cT as Iv, cU as Rv, cV as ux, a0 as no, cW as hx, a3 as Pv, I as px, cX as ft, cY as L0, cZ as mx, c_ as gx, c$ as yx, d0 as Wc, d1 as vx, d2 as bx, ab as Ql, ao as M0, d3 as Fv, z as If, d4 as Rf, d5 as Pf, E as Ff, aa as Kh, d6 as kx, as as wx, d7 as i1, d8 as xx, d9 as ed, at as _x, da as Cx, ar as Bv, aq as Sx, ap as Nx, db as Lx, dc as Mx, ac as Ex, dd as Tx, a4 as Ox, de as Oa, df as Gh, dg as Jh, dh as Aa, di as $v, dj as zv, dk as Ax, au as jv, dl as Vv, ad as Hv, dm as Dx, dn as Ix, dp as Rx, H as Px, A as Fx, B as Bx, e as $x, g as zx, V as jx, d as Vx, dq as E0, dr as Hx, ds as Wx, dt as qx, du as Wv, dv as Ux } from "./hooks-DsGkXKt7.js";
2
+ import { J as EJ, dx as TJ, a7 as OJ, dw as AJ } from "./hooks-DsGkXKt7.js";
3
3
  import { jsxs as b, jsx as f, Fragment as Ne } from "react/jsx-runtime";
4
4
  import * as I from "react";
5
5
  import X, { forwardRef as H, createContext as Rn, useRef as le, useState as B, useCallback as Ce, useContext as ln, useMemo as he, useEffect as te, PureComponent as Kx, useId as Qr, useLayoutEffect as Yh, memo as Da, Fragment as sr, useTransition as Gx, isValidElement as Jx, cloneElement as qv, useDeferredValue as Yx, useDebugValue as Uv, createRef as Zx, createElement as Xx, version as T0, useImperativeHandle as Bf, Children as Kv } from "react";
@@ -15991,7 +15991,7 @@ const t2 = K.create(de), n2 = {
15991
15991
  /* @__PURE__ */ b("div", { className: "px-1 pb-2", children: [
15992
15992
  /* @__PURE__ */ b("div", { className: "flex flex-row items-center justify-between px-3", children: [
15993
15993
  /* @__PURE__ */ f("p", { className: "text-balance pb-2 pt-2 text-sm font-medium text-f1-foreground-secondary", children: n == null ? void 0 : n.sectionTitle }),
15994
- /* @__PURE__ */ f("div", { className: "relative z-10 h-6 w-6", children: /* @__PURE__ */ f(
15994
+ e && /* @__PURE__ */ f("div", { className: "relative z-10 h-6 w-6", children: /* @__PURE__ */ f(
15995
15995
  re,
15996
15996
  {
15997
15997
  variant: "ghost",
@@ -16017,7 +16017,8 @@ const t2 = K.create(de), n2 = {
16017
16017
  ...l,
16018
16018
  isVisible: !0,
16019
16019
  trackVisibility: l.trackVisibility,
16020
- onClick: () => a(l.onClick)
16020
+ onClick: () => a(l.onClick),
16021
+ type: l.type
16021
16022
  },
16022
16023
  l.title
16023
16024
  ))
package/dist/f0.d.ts CHANGED
@@ -949,6 +949,21 @@ export declare interface ErrorMessageProps {
949
949
  description: string;
950
950
  }
951
951
 
952
+ declare type EventCatcherFunction = (eventName: EventName, params: EventParams) => void;
953
+
954
+ declare interface EventCatcherProviderProps {
955
+ children: ReactNode;
956
+ onEvent: EventCatcherFunction;
957
+ enabled?: boolean;
958
+ catchEvents?: string[];
959
+ }
960
+
961
+ declare type EventName = "datacollection.filter-change" | "datacollection.sorting-change" | "datacollection.preset-click";
962
+
963
+ declare type EventParams = Record<string, EventScalar | Array<EventScalar>>;
964
+
965
+ declare type EventScalar = string | number | boolean | undefined | null;
966
+
952
967
  export declare const experimental: <T extends (...args: any[]) => any>(name: string, component: T) => T;
953
968
 
954
969
  export declare const F0Avatar: ({ avatar, size }: AvatarProps) => ReactNode;
@@ -1144,6 +1159,8 @@ export declare const F0ChipList: {
1144
1159
  displayName: string;
1145
1160
  };
1146
1161
 
1162
+ export declare function F0EventCatcherProvider({ children, onEvent, enabled, catchEvents, }: EventCatcherProviderProps): JSX.Element;
1163
+
1147
1164
  export declare const F0Icon: ForwardRefExoticComponent<Omit<Omit<F0IconProps_2, "ref"> & RefAttributes<SVGSVGElement>, "ref"> & RefAttributes<HTMLElement | SVGElement>>;
1148
1165
 
1149
1166
  export declare interface F0IconProps extends SVGProps<SVGSVGElement>, VariantProps<typeof iconVariants> {
@@ -1602,7 +1619,7 @@ declare type ProductBlankslateProps = {
1602
1619
  };
1603
1620
  };
1604
1621
 
1605
- export declare function ProductCard({ title, description, onClick, onClose, isVisible, dismissable, trackVisibility, ...props }: ProductCardProps): false | JSX_2.Element;
1622
+ export declare function ProductCard({ title, description, onClick, onClose, isVisible, dismissable, trackVisibility, type, ...props }: ProductCardProps): false | JSX_2.Element;
1606
1623
 
1607
1624
  export declare type ProductCardProps = {
1608
1625
  title: string;
@@ -1613,6 +1630,7 @@ export declare type ProductCardProps = {
1613
1630
  dismissable?: boolean;
1614
1631
  trackVisibility?: (open: boolean) => void;
1615
1632
  module: ModuleId;
1633
+ type?: "one-campaign" | undefined;
1616
1634
  };
1617
1635
 
1618
1636
  export declare function ProductModal({ isOpen, onClose, title, image, benefits, errorMessage, successMessage, loadingState, nextSteps, closeLabel, primaryAction, modalTitle, modalModule, secondaryAction, portalContainer, tag, }: ProductModalProps): JSX_2.Element;
@@ -2098,8 +2116,8 @@ declare global {
2098
2116
 
2099
2117
  declare module "@tiptap/core" {
2100
2118
  interface Commands<ReturnType> {
2101
- liveCompanion: {
2102
- insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
2119
+ aiBlock: {
2120
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfigWithLabels) => ReturnType;
2103
2121
  };
2104
2122
  }
2105
2123
  }
@@ -2107,8 +2125,8 @@ declare module "@tiptap/core" {
2107
2125
 
2108
2126
  declare module "@tiptap/core" {
2109
2127
  interface Commands<ReturnType> {
2110
- aiBlock: {
2111
- insertAIBlock: (data: AIBlockData, config: AIBlockConfigWithLabels) => ReturnType;
2128
+ liveCompanion: {
2129
+ insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
2112
2130
  };
2113
2131
  }
2114
2132
  }
@@ -2123,6 +2141,11 @@ declare module "@tiptap/core" {
2123
2141
  }
2124
2142
 
2125
2143
 
2144
+ declare namespace Calendar {
2145
+ var displayName: string;
2146
+ }
2147
+
2148
+
2126
2149
  declare module "@tiptap/core" {
2127
2150
  interface Commands<ReturnType> {
2128
2151
  moodTracker: {
@@ -2130,8 +2153,3 @@ declare module "@tiptap/core" {
2130
2153
  };
2131
2154
  }
2132
2155
  }
2133
-
2134
-
2135
- declare namespace Calendar {
2136
- var displayName: string;
2137
- }
package/dist/f0.js CHANGED
@@ -1,5 +1,5 @@
1
- import { C as v, L as pe, c as ve, P as H, a as b, f as ge, b as be, A as xe, B as Ce, d as ye, e as we, g as Ne, V as Le, h as U, i as W, j as Pe, k as Y, S as G, l as D, m as X, n as ke, O as Fe, o as J, p as Se, q as Me, F as K, r as De, s as Te, t as Be, D as Re, u as Ie, v as $e, w as Oe, x as Q, y as w, U as Z, z as Ee, E as _e, G as z, H as je, I as ee, J as ze, K as Ve, M as qe, N as Ae, Q as He, R as Ue, X as We, T as Ye, W as Ge, Y as Xe, Z as Je } from "./hooks-DJZUy5yN.js";
2
- import { ao as Ua, _ as Wa, aq as Ya, ay as Ga, $ as Xa, a0 as Ja, a1 as Ka, a2 as Qa, a3 as Za, a4 as er, a5 as ar, a6 as rr, a8 as sr, a9 as tr, aa as lr, ab as or, ad as nr, ae as ir, af as dr, ag as cr, aj as ur, ak as fr, al as hr, am as mr, ac as pr, an as vr, ai as gr, av as br, ap as xr, az as Cr, a7 as yr, ah as wr, ar as Nr, as as Lr, at as Pr, aA as kr, au as Fr, ax as Sr, aw as Mr } from "./hooks-DJZUy5yN.js";
1
+ import { C as v, L as pe, c as ve, P as H, a as b, f as ge, b as be, A as xe, B as Ce, d as ye, e as we, g as Ne, V as Le, h as U, i as W, j as Pe, k as Y, S as G, l as D, m as X, n as ke, O as Fe, o as J, p as Se, q as Me, F as K, r as De, s as Te, t as Be, D as Re, u as Ie, v as $e, w as Oe, x as Q, y as w, U as Z, z as Ee, E as _e, G as z, H as je, I as ee, J as ze, K as Ve, M as qe, N as Ae, Q as He, R as Ue, X as We, T as Ye, W as Ge, Y as Xe, Z as Je } from "./hooks-DsGkXKt7.js";
2
+ import { ao as Ua, _ as Wa, aq as Ya, az as Ga, $ as Xa, a0 as Ja, a1 as Ka, a2 as Qa, a3 as Za, a4 as er, a5 as ar, a6 as rr, a8 as sr, a9 as tr, aa as lr, ab as or, av as nr, ad as ir, ae as dr, af as cr, ag as ur, aj as fr, ak as hr, al as mr, am as pr, ac as vr, an as gr, ai as br, aw as xr, ap as Cr, aA as yr, a7 as wr, ah as Nr, ar as Lr, as as Pr, at as kr, aB as Fr, au as Sr, ay as Mr, ax as Dr } from "./hooks-DsGkXKt7.js";
3
3
  import { jsx as e, jsxs as c, Fragment as O } from "react/jsx-runtime";
4
4
  import * as E from "react";
5
5
  import Ke, { useState as g, forwardRef as B, useRef as ae, useImperativeHandle as Qe, Children as Ze, useEffect as re, createContext as ea } from "react";
@@ -976,30 +976,31 @@ export {
976
976
  lr as F0Card,
977
977
  or as F0Checkbox,
978
978
  Oa as F0ChipList,
979
+ nr as F0EventCatcherProvider,
979
980
  Te as F0Icon,
980
- nr as F0TagAlert,
981
- ir as F0TagBalance,
982
- dr as F0TagCompany,
983
- cr as F0TagDot,
984
- ur as F0TagList,
985
- fr as F0TagPerson,
981
+ ir as F0TagAlert,
982
+ dr as F0TagBalance,
983
+ cr as F0TagCompany,
984
+ ur as F0TagDot,
985
+ fr as F0TagList,
986
+ hr as F0TagPerson,
986
987
  De as F0TagRaw,
987
- hr as F0TagStatus,
988
- mr as F0TagTeam,
988
+ mr as F0TagStatus,
989
+ pr as F0TagTeam,
989
990
  qa as FactorialOneProvider,
990
991
  ja as HomeLayout,
991
992
  Ba as LineChart,
992
993
  ka as Link,
993
- pr as OneFilterPicker,
994
+ vr as OneFilterPicker,
994
995
  Ra as PieChart,
995
996
  Ye as PrivacyModeProvider,
996
997
  ue as ProductBlankslate,
997
- vr as ProductCard,
998
+ gr as ProductCard,
998
999
  za as ProductModal,
999
1000
  ga as ProductWidget,
1000
1001
  $a as ProgressBarChart,
1001
1002
  Ea as StandardLayout,
1002
- gr as TagCounter,
1003
+ br as TagCounter,
1003
1004
  _a as TwoColumnLayout,
1004
1005
  Z as UpsellRequestResponseDialog,
1005
1006
  ba as UpsellingBanner,
@@ -1007,18 +1008,18 @@ export {
1007
1008
  Va as UpsellingPopover,
1008
1009
  Ia as VerticalBarChart,
1009
1010
  Fa as avatarVariants,
1010
- br as buildTranslations,
1011
- xr as createAtlaskitDriver,
1011
+ xr as buildTranslations,
1012
+ Cr as createAtlaskitDriver,
1012
1013
  Pa as defaultTranslations,
1013
1014
  ke as experimental,
1014
- Cr as getEmojiLabel,
1015
- yr as modules,
1016
- wr as tagDotColors,
1017
- Nr as useDndEvents,
1018
- Lr as useDraggable,
1019
- Pr as useDroppableList,
1020
- kr as useEmojiConfetti,
1021
- Fr as usePrivacyMode,
1022
- Sr as useReducedMotion,
1023
- Mr as useXRay
1015
+ yr as getEmojiLabel,
1016
+ wr as modules,
1017
+ Nr as tagDotColors,
1018
+ Lr as useDndEvents,
1019
+ Pr as useDraggable,
1020
+ kr as useDroppableList,
1021
+ Fr as useEmojiConfetti,
1022
+ Sr as usePrivacyMode,
1023
+ Mr as useReducedMotion,
1024
+ Dr as useXRay
1024
1025
  };