@factorialco/f0-react 2.39.0 → 2.40.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.
@@ -852,9 +852,9 @@ declare module "gridstack" {
852
852
 
853
853
  declare module "@tiptap/core" {
854
854
  interface Commands<ReturnType> {
855
- aiBlock: {
856
- insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
857
- executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
855
+ enhanceHighlight: {
856
+ setEnhanceHighlight: (from: number, to: number) => ReturnType;
857
+ clearEnhanceHighlight: () => ReturnType;
858
858
  };
859
859
  }
860
860
  }
@@ -862,9 +862,9 @@ declare module "@tiptap/core" {
862
862
 
863
863
  declare module "@tiptap/core" {
864
864
  interface Commands<ReturnType> {
865
- enhanceHighlight: {
866
- setEnhanceHighlight: (from: number, to: number) => ReturnType;
867
- clearEnhanceHighlight: () => ReturnType;
865
+ aiBlock: {
866
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
867
+ executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
868
868
  };
869
869
  }
870
870
  }
@@ -51572,47 +51572,51 @@ const uJ = ({
51572
51572
  onError: n,
51573
51573
  onHookUpdate: i
51574
51574
  }) => {
51575
- const r = te(
51575
+ const [r, s] = B(!1), o = te(
51576
+ () => ({
51577
+ ...t,
51578
+ isLoading: r,
51579
+ setIsLoading: s
51580
+ }),
51581
+ [t, r]
51582
+ ), a = te(
51576
51583
  () => cJ(t.currentFilters, e.filters),
51577
51584
  [t.currentFilters, e.filters]
51578
- ), s = qu(t, {
51579
- filters: r,
51585
+ ), l = qu(o, {
51586
+ filters: a,
51580
51587
  onError: n
51581
51588
  }), {
51582
- data: o,
51583
- search: a,
51584
- setSearch: l,
51585
- isInitialLoading: d,
51586
- isLoading: f,
51587
- isLoadingMore: c,
51588
- error: u,
51589
- paginationInfo: h,
51590
- setPage: m,
51591
- loadMore: g,
51592
- totalItems: y,
51593
- mergedFilters: v,
51594
- summaries: b
51595
- } = s;
51589
+ data: d,
51590
+ search: f,
51591
+ setSearch: c,
51592
+ isInitialLoading: u,
51593
+ isLoading: h,
51594
+ isLoadingMore: m,
51595
+ error: g,
51596
+ paginationInfo: y,
51597
+ setPage: v,
51598
+ loadMore: b,
51599
+ totalItems: k,
51600
+ mergedFilters: w,
51601
+ summaries: _
51602
+ } = l;
51596
51603
  return se(() => {
51597
51604
  i?.(e.id, {
51598
- data: o,
51599
- search: a,
51600
- setSearch: l,
51601
- isInitialLoading: d,
51602
- isLoading: f,
51603
- isLoadingMore: c,
51604
- error: u,
51605
- paginationInfo: h,
51606
- setPage: m,
51607
- loadMore: g,
51608
- totalItems: y,
51609
- mergedFilters: v,
51610
- summaries: b
51605
+ data: d,
51606
+ search: f,
51607
+ setSearch: c,
51608
+ isInitialLoading: u,
51609
+ isLoading: h,
51610
+ isLoadingMore: m,
51611
+ error: g,
51612
+ paginationInfo: y,
51613
+ setPage: v,
51614
+ loadMore: b,
51615
+ totalItems: k,
51616
+ mergedFilters: w,
51617
+ summaries: _
51611
51618
  });
51612
51619
  }, [
51613
- o,
51614
- a,
51615
- l,
51616
51620
  d,
51617
51621
  f,
51618
51622
  c,
@@ -51623,6 +51627,9 @@ const uJ = ({
51623
51627
  y,
51624
51628
  v,
51625
51629
  b,
51630
+ k,
51631
+ w,
51632
+ _,
51626
51633
  i,
51627
51634
  e.id
51628
51635
  ]), null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@factorialco/f0-react",
3
- "version": "2.39.0",
3
+ "version": "2.40.0",
4
4
  "private": false,
5
5
  "files": [
6
6
  "assets",
@@ -256,6 +256,7 @@
256
256
  "format": "sh -c 'oxfmt \"${@:-src/}\"' --",
257
257
  "format:check": "sh -c 'oxfmt --check \"${@:-src/}\"' --",
258
258
  "tsc": "tsc --noEmit",
259
+ "check:api-surface": "tsx .scripts/check-api-surface.ts",
259
260
  "vitest": "vitest --project=unit",
260
261
  "vitest:ui": "vitest --project=unit --ui",
261
262
  "vitest:watch": "vitest --project=unit dev",