@factorialco/f0-react 1.317.0 → 1.317.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.
@@ -6466,28 +6466,11 @@ declare global {
6466
6466
  }
6467
6467
  }
6468
6468
 
6469
- declare module "gridstack" {
6470
- interface GridStackWidget {
6471
- id?: string;
6472
- allowedSizes?: Array<{
6473
- w: number;
6474
- h: number;
6475
- }>;
6476
- meta?: Record<string, unknown>;
6477
- }
6478
- interface GridStackNode {
6479
- allowedSizes?: Array<{
6480
- w: number;
6481
- h: number;
6482
- }>;
6483
- }
6484
- }
6485
-
6486
6469
 
6487
6470
  declare module "@tiptap/core" {
6488
6471
  interface Commands<ReturnType> {
6489
- aiBlock: {
6490
- insertAIBlock: (data: AIBlockData, config: AIBlockConfigWithLabels) => ReturnType;
6472
+ liveCompanion: {
6473
+ insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
6491
6474
  };
6492
6475
  }
6493
6476
  }
@@ -6495,8 +6478,8 @@ declare module "@tiptap/core" {
6495
6478
 
6496
6479
  declare module "@tiptap/core" {
6497
6480
  interface Commands<ReturnType> {
6498
- liveCompanion: {
6499
- insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
6481
+ aiBlock: {
6482
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfigWithLabels) => ReturnType;
6500
6483
  };
6501
6484
  }
6502
6485
  }
@@ -6510,9 +6493,21 @@ declare module "@tiptap/core" {
6510
6493
  }
6511
6494
  }
6512
6495
 
6513
-
6514
- declare namespace Calendar {
6515
- var displayName: string;
6496
+ declare module "gridstack" {
6497
+ interface GridStackWidget {
6498
+ id?: string;
6499
+ allowedSizes?: Array<{
6500
+ w: number;
6501
+ h: number;
6502
+ }>;
6503
+ meta?: Record<string, unknown>;
6504
+ }
6505
+ interface GridStackNode {
6506
+ allowedSizes?: Array<{
6507
+ w: number;
6508
+ h: number;
6509
+ }>;
6510
+ }
6516
6511
  }
6517
6512
 
6518
6513
 
@@ -6523,3 +6518,8 @@ declare module "@tiptap/core" {
6523
6518
  };
6524
6519
  }
6525
6520
  }
6521
+
6522
+
6523
+ declare namespace Calendar {
6524
+ var displayName: string;
6525
+ }
@@ -26953,7 +26953,7 @@ const F3e = Kt(Zb, xX), kX = ({ data: t, dataConfig: e, scaleMin: n, scaleMax: i
26953
26953
  }, D3e = kM(ha("RadarChart", kX)), wX = ge.create(D4), bX = () => {
26954
26954
  const t = Ze();
26955
26955
  return x("div", {
26956
- className: "absolute left-1/2 top-1/2 flex -translate-x-1/2 -translate-y-1/2 flex-row items-center gap-1 rounded-full border border-solid border-f1-border-secondary bg-f1-background px-2 py-1.5 pr-2.5 shadow-md",
26956
+ className: "flex flex-row items-center gap-1 rounded-full border border-solid border-f1-border-secondary bg-f1-background px-2 py-1.5 pr-2.5 shadow-md",
26957
26957
  children: [f(wX, {
26958
26958
  size: "xs",
26959
26959
  animate: {
@@ -28193,7 +28193,10 @@ const zX = Pi({
28193
28193
  })
28194
28194
  }), s && f(GX, {})]
28195
28195
  }), o && f(ge.div, {
28196
- className: "absolute left-0 top-0 h-full w-full",
28196
+ className: "fixed z-50 flex h-screen w-full items-center justify-center",
28197
+ style: {
28198
+ inset: 0
28199
+ },
28197
28200
  initial: {
28198
28201
  opacity: 0,
28199
28202
  scale: 0.95
@@ -28206,7 +28209,10 @@ const zX = Pi({
28206
28209
  opacity: 0,
28207
28210
  scale: 0.95
28208
28211
  },
28209
- children: f(CX, {})
28212
+ children: f("div", {
28213
+ className: "translate-y-48",
28214
+ children: f(CX, {})
28215
+ })
28210
28216
  })]
28211
28217
  })
28212
28218
  });
@@ -39745,21 +39751,23 @@ const sne = {
39745
39751
  })
39746
39752
  });
39747
39753
  }, gne = (t, e) => {
39748
- const { rowWithChildren: n, nestedVariant: i, onLoadMoreChildren: r } = e ?? {}, o = i === "detailed", s = r ? Z_ / 2 - i1 : fu / 2 - i1, a = n && !r ? cne : o ? V2 - 6 : V2;
39754
+ const { rowWithChildren: n, nestedVariant: i, onLoadMoreChildren: r } = e ?? {}, o = i === "detailed", s = r ? Z_ / 2 - i1 : fu / 2 - i1, a = n && !r ? cne : o ? V2 - 6 : V2, l = t !== 0 && `calc(${t}px - ${fu + i1}px )`;
39749
39755
  return {
39750
39756
  "--line-left": `-${2 * n1}px`,
39751
39757
  "--line-width": lne,
39752
39758
  "--horizontal-offset": `${s}px`,
39753
39759
  "--horizontal-left": "4px",
39754
39760
  "--horizontal-height": `${G0 / 2}px`,
39755
- "--line-height": `calc(${t} - ${fu + i1}px )`,
39756
- "--connector-width": `${a}px`
39761
+ "--connector-width": `${a}px`,
39762
+ ...l ? {
39763
+ "--line-height": l
39764
+ } : {}
39757
39765
  };
39758
39766
  }, vne = "h-full overflow-visible before:absolute before:-left-[var(--line-left)] before:top-[40px] before:h-[var(--line-height)] before:w-[var(--line-width)] before:bg-f1-foreground-disabled before:content-['']", yne = "after:absolute after:left-[var(--horizontal-left)] after:top-[var(--horizontal-offset)] after:h-[var(--horizontal-height)] after:w-[var(--connector-width)] after:rounded-bl-[var(--horizontal-height)] after:content-[''] after:shadow-[inset_1px_-1px_0_0_hsl(var(--neutral-30))]", xne = ({ firstCell: t, nestedRowProps: e }) => {
39759
39767
  const n = J_(t, e?.depth ?? 0), i = dne(e?.expanded ?? !1, t), r = e === void 0 || e?.nestedVariant === "basic", o = e?.nestedVariant === "detailed", s = r || e?.rowWithChildren, a = o && e?.onLoadMoreChildren, l = n ? ig({
39760
39768
  depth: e?.depth ?? 0,
39761
39769
  padding: 0
39762
- }) : void 0, c = e?.connectorHeight ? `${e?.connectorHeight}px` : "0px";
39770
+ }) : void 0, c = e?.connectorHeight ?? 0;
39763
39771
  return !i && !n && !e?.rowWithChildren ? null : f("div", {
39764
39772
  className: F("absolute inset-0 h-full", e?.parentHasChildren && i && vne, e?.parentHasChildren && n && s && !a && yne),
39765
39773
  style: {
@@ -40094,7 +40102,7 @@ const eS = (t, e, n) => {
40094
40102
  );
40095
40103
  return vs(() => {
40096
40104
  const u = e?.previousElementSibling;
40097
- if (!e || !i || !u) {
40105
+ if (!e || !i || e === i || !u) {
40098
40106
  s(0);
40099
40107
  return;
40100
40108
  }
package/dist/f0.d.ts CHANGED
@@ -4955,28 +4955,11 @@ declare global {
4955
4955
  }
4956
4956
  }
4957
4957
 
4958
- declare module "gridstack" {
4959
- interface GridStackWidget {
4960
- id?: string;
4961
- allowedSizes?: Array<{
4962
- w: number;
4963
- h: number;
4964
- }>;
4965
- meta?: Record<string, unknown>;
4966
- }
4967
- interface GridStackNode {
4968
- allowedSizes?: Array<{
4969
- w: number;
4970
- h: number;
4971
- }>;
4972
- }
4973
- }
4974
-
4975
4958
 
4976
4959
  declare module "@tiptap/core" {
4977
4960
  interface Commands<ReturnType> {
4978
- aiBlock: {
4979
- insertAIBlock: (data: AIBlockData, config: AIBlockConfigWithLabels) => ReturnType;
4961
+ liveCompanion: {
4962
+ insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
4980
4963
  };
4981
4964
  }
4982
4965
  }
@@ -4984,8 +4967,8 @@ declare module "@tiptap/core" {
4984
4967
 
4985
4968
  declare module "@tiptap/core" {
4986
4969
  interface Commands<ReturnType> {
4987
- liveCompanion: {
4988
- insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
4970
+ aiBlock: {
4971
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfigWithLabels) => ReturnType;
4989
4972
  };
4990
4973
  }
4991
4974
  }
@@ -4999,9 +4982,21 @@ declare module "@tiptap/core" {
4999
4982
  }
5000
4983
  }
5001
4984
 
5002
-
5003
- declare namespace Calendar {
5004
- var displayName: string;
4985
+ declare module "gridstack" {
4986
+ interface GridStackWidget {
4987
+ id?: string;
4988
+ allowedSizes?: Array<{
4989
+ w: number;
4990
+ h: number;
4991
+ }>;
4992
+ meta?: Record<string, unknown>;
4993
+ }
4994
+ interface GridStackNode {
4995
+ allowedSizes?: Array<{
4996
+ w: number;
4997
+ h: number;
4998
+ }>;
4999
+ }
5005
5000
  }
5006
5001
 
5007
5002
 
@@ -5012,3 +5007,8 @@ declare module "@tiptap/core" {
5012
5007
  };
5013
5008
  }
5014
5009
  }
5010
+
5011
+
5012
+ declare namespace Calendar {
5013
+ var displayName: string;
5014
+ }
@@ -458,28 +458,11 @@ declare global {
458
458
  }
459
459
  }
460
460
 
461
- declare module "gridstack" {
462
- interface GridStackWidget {
463
- id?: string;
464
- allowedSizes?: Array<{
465
- w: number;
466
- h: number;
467
- }>;
468
- meta?: Record<string, unknown>;
469
- }
470
- interface GridStackNode {
471
- allowedSizes?: Array<{
472
- w: number;
473
- h: number;
474
- }>;
475
- }
476
- }
477
-
478
461
 
479
462
  declare module "@tiptap/core" {
480
463
  interface Commands<ReturnType> {
481
- aiBlock: {
482
- insertAIBlock: (data: AIBlockData, config: AIBlockConfigWithLabels) => ReturnType;
464
+ liveCompanion: {
465
+ insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
483
466
  };
484
467
  }
485
468
  }
@@ -487,8 +470,8 @@ declare module "@tiptap/core" {
487
470
 
488
471
  declare module "@tiptap/core" {
489
472
  interface Commands<ReturnType> {
490
- liveCompanion: {
491
- insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
473
+ aiBlock: {
474
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfigWithLabels) => ReturnType;
492
475
  };
493
476
  }
494
477
  }
@@ -502,9 +485,21 @@ declare module "@tiptap/core" {
502
485
  }
503
486
  }
504
487
 
505
-
506
- declare namespace Calendar {
507
- var displayName: string;
488
+ declare module "gridstack" {
489
+ interface GridStackWidget {
490
+ id?: string;
491
+ allowedSizes?: Array<{
492
+ w: number;
493
+ h: number;
494
+ }>;
495
+ meta?: Record<string, unknown>;
496
+ }
497
+ interface GridStackNode {
498
+ allowedSizes?: Array<{
499
+ w: number;
500
+ h: number;
501
+ }>;
502
+ }
508
503
  }
509
504
 
510
505
 
@@ -515,3 +510,8 @@ declare module "@tiptap/core" {
515
510
  };
516
511
  }
517
512
  }
513
+
514
+
515
+ declare namespace Calendar {
516
+ var displayName: string;
517
+ }