tinybase 8.1.0-beta.2 → 8.1.0-beta.3

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.
Files changed (61) hide show
  1. package/@types/ui-svelte/index.d.ts +268 -325
  2. package/@types/ui-svelte/with-schemas/index.d.ts +265 -322
  3. package/index.js +1 -1
  4. package/mergeable-store/index.js +1 -1
  5. package/mergeable-store/with-schemas/index.js +1 -1
  6. package/min/index.js +1 -1
  7. package/min/index.js.gz +0 -0
  8. package/min/mergeable-store/index.js +1 -1
  9. package/min/mergeable-store/index.js.gz +0 -0
  10. package/min/mergeable-store/with-schemas/index.js +1 -1
  11. package/min/mergeable-store/with-schemas/index.js.gz +0 -0
  12. package/min/omni/index.js +1 -1
  13. package/min/omni/index.js.gz +0 -0
  14. package/min/omni/with-schemas/index.js +1 -1
  15. package/min/omni/with-schemas/index.js.gz +0 -0
  16. package/min/persisters/persister-remote/index.js +1 -1
  17. package/min/persisters/persister-remote/index.js.gz +0 -0
  18. package/min/persisters/persister-remote/with-schemas/index.js +1 -1
  19. package/min/persisters/persister-remote/with-schemas/index.js.gz +0 -0
  20. package/min/queries/index.js +1 -1
  21. package/min/queries/index.js.gz +0 -0
  22. package/min/queries/with-schemas/index.js +1 -1
  23. package/min/queries/with-schemas/index.js.gz +0 -0
  24. package/min/store/index.js +1 -1
  25. package/min/store/index.js.gz +0 -0
  26. package/min/store/with-schemas/index.js +1 -1
  27. package/min/store/with-schemas/index.js.gz +0 -0
  28. package/min/ui-react/index.js +1 -1
  29. package/min/ui-react/index.js.gz +0 -0
  30. package/min/ui-react/with-schemas/index.js +1 -1
  31. package/min/ui-react/with-schemas/index.js.gz +0 -0
  32. package/min/ui-react-dom/index.js +1 -1
  33. package/min/ui-react-dom/index.js.gz +0 -0
  34. package/min/ui-react-dom/with-schemas/index.js +1 -1
  35. package/min/ui-react-dom/with-schemas/index.js.gz +0 -0
  36. package/min/ui-react-inspector/index.js +1 -1
  37. package/min/ui-react-inspector/index.js.gz +0 -0
  38. package/min/ui-react-inspector/with-schemas/index.js +1 -1
  39. package/min/ui-react-inspector/with-schemas/index.js.gz +0 -0
  40. package/min/with-schemas/index.js +1 -1
  41. package/min/with-schemas/index.js.gz +0 -0
  42. package/omni/index.js +5 -2
  43. package/omni/with-schemas/index.js +5 -2
  44. package/package.json +1 -1
  45. package/persisters/persister-remote/index.js +4 -1
  46. package/persisters/persister-remote/with-schemas/index.js +4 -1
  47. package/queries/index.js +1 -1
  48. package/queries/with-schemas/index.js +1 -1
  49. package/readme.md +3 -3
  50. package/releases.md +16 -5
  51. package/store/index.js +1 -1
  52. package/store/with-schemas/index.js +1 -1
  53. package/ui-react/index.js +7 -6
  54. package/ui-react/with-schemas/index.js +7 -6
  55. package/ui-react-dom/index.js +7 -6
  56. package/ui-react-dom/with-schemas/index.js +7 -6
  57. package/ui-react-inspector/index.js +29 -21
  58. package/ui-react-inspector/with-schemas/index.js +29 -21
  59. package/ui-svelte/index.js +1 -1
  60. package/ui-svelte/with-schemas/index.js +1 -1
  61. package/with-schemas/index.js +1 -1
@@ -8,9 +8,9 @@
8
8
  * property. Hooks register listeners such that components using those hooks
9
9
  * re-render when data changes.
10
10
  *
11
- * Hook parameters accept either plain values or reactive getter functions
12
- * (`MaybeGetter<T> = T | (() => T)`), so passing `() => tableId` from a
13
- * `let`-bound Svelte prop makes the hook re-execute whenever the prop changes.
11
+ * Hook parameters accept either plain values or reactive getter functions (see
12
+ * the MaybeGetter type), so passing `() => tableId` from a `let`-bound Svelte
13
+ * prop makes the hook re-execute whenever the prop changes.
14
14
  *
15
15
  * The components in this module provide a further abstraction over those hooks
16
16
  * to ease the composition of user interfaces that use TinyBase.
@@ -104,8 +104,8 @@ import type {Synchronizer} from '../synchronizers/index.d.ts';
104
104
  export type MaybeGetter<T> = T | (() => T);
105
105
 
106
106
  /**
107
- * The StoreOrStoreId type is used when you need to refer to a Store in a
108
- * Svelte hook or component.
107
+ * The StoreOrStoreId type is used when you need to refer to a Store in a Svelte
108
+ * hook or component.
109
109
  *
110
110
  * In some simple cases you will already have a direct reference to the Store.
111
111
  *
@@ -2365,8 +2365,8 @@ export function useCheckpoints(id?: Id): Checkpoints | undefined;
2365
2365
  /**
2366
2366
  * The useCheckpointsOrCheckpointsById hook is used to get a reference to a
2367
2367
  * Checkpoints object from a Provider context, or have it passed directly.
2368
- * @param checkpointsOrCheckpointsId The Checkpoints object, its Id, or a
2369
- * getter returning either.
2368
+ * @param checkpointsOrCheckpointsId The Checkpoints object, its Id, or a getter
2369
+ * returning either.
2370
2370
  * @returns A getter function returning the Checkpoints object, or `undefined`.
2371
2371
  * @category Hook
2372
2372
  * @since v8.1.0
@@ -2543,14 +2543,13 @@ export function useSynchronizerStatus(
2543
2543
  ): {readonly current: Status};
2544
2544
 
2545
2545
  /**
2546
- * The useHasTablesListener hook registers a listener that is
2547
- * called whenever any Tables are added to or removed from the
2548
- * Store. The listener is tied to the component's `$effect`
2549
- * lifecycle and is removed when the component unmounts.
2550
- * @param listener The function to call when table presence
2551
- * changes.
2552
- * @param mutator An optional boolean indicating the listener
2553
- * mutates Store data.
2546
+ * The useHasTablesListener hook registers a listener that is called whenever
2547
+ * any Tables are added to or removed from the Store. The listener is tied to
2548
+ * the component's `$effect` lifecycle and is removed when the component
2549
+ * unmounts.
2550
+ * @param listener The function to call when table presence changes.
2551
+ * @param mutator An optional boolean indicating the listener mutates Store
2552
+ * data.
2554
2553
  * @param storeOrStoreId The Store to use, or its Id.
2555
2554
  * @category Hook
2556
2555
  * @since v8.1.0
@@ -2562,11 +2561,11 @@ export function useHasTablesListener(
2562
2561
  ): void;
2563
2562
 
2564
2563
  /**
2565
- * The useTablesListener hook registers a listener that is
2566
- * called whenever tabular data in the Store changes.
2564
+ * The useTablesListener hook registers a listener that is called whenever
2565
+ * tabular data in the Store changes.
2567
2566
  * @param listener The function to call when Tables change.
2568
- * @param mutator An optional boolean indicating the listener
2569
- * mutates Store data.
2567
+ * @param mutator An optional boolean indicating the listener mutates Store
2568
+ * data.
2570
2569
  * @param storeOrStoreId The Store to use, or its Id.
2571
2570
  * @category Hook
2572
2571
  * @since v8.1.0
@@ -2578,11 +2577,11 @@ export function useTablesListener(
2578
2577
  ): void;
2579
2578
 
2580
2579
  /**
2581
- * The useTableIdsListener hook registers a listener that is
2582
- * called whenever the set of Table Ids in the Store changes.
2580
+ * The useTableIdsListener hook registers a listener that is called whenever the
2581
+ * set of Table Ids in the Store changes.
2583
2582
  * @param listener The function to call when Table Ids change.
2584
- * @param mutator An optional boolean indicating the listener
2585
- * mutates Store data.
2583
+ * @param mutator An optional boolean indicating the listener mutates Store
2584
+ * data.
2586
2585
  * @param storeOrStoreId The Store to use, or its Id.
2587
2586
  * @category Hook
2588
2587
  * @since v8.1.0
@@ -2594,14 +2593,13 @@ export function useTableIdsListener(
2594
2593
  ): void;
2595
2594
 
2596
2595
  /**
2597
- * The useHasTableListener hook registers a listener that is
2598
- * called whenever a specified Table is added to or removed
2599
- * from the Store.
2600
- * @param tableId The Id of the Table to listen to, or `null`
2601
- * to listen to any Table.
2596
+ * The useHasTableListener hook registers a listener that is called whenever a
2597
+ * specified Table is added to or removed from the Store.
2598
+ * @param tableId The Id of the Table to listen to, or `null` to listen to any
2599
+ * Table.
2602
2600
  * @param listener The function to call when the Table changes.
2603
- * @param mutator An optional boolean indicating the listener
2604
- * mutates Store data.
2601
+ * @param mutator An optional boolean indicating the listener mutates Store
2602
+ * data.
2605
2603
  * @param storeOrStoreId The Store to use, or its Id.
2606
2604
  * @category Hook
2607
2605
  * @since v8.1.0
@@ -2614,13 +2612,13 @@ export function useHasTableListener(
2614
2612
  ): void;
2615
2613
 
2616
2614
  /**
2617
- * The useTableListener hook registers a listener that is
2618
- * called whenever data in a specified Table changes.
2619
- * @param tableId The Id of the Table to listen to, or `null`
2620
- * to listen to any Table.
2615
+ * The useTableListener hook registers a listener that is called whenever data
2616
+ * in a specified Table changes.
2617
+ * @param tableId The Id of the Table to listen to, or `null` to listen to any
2618
+ * Table.
2621
2619
  * @param listener The function to call when the Table changes.
2622
- * @param mutator An optional boolean indicating the listener
2623
- * mutates Store data.
2620
+ * @param mutator An optional boolean indicating the listener mutates Store
2621
+ * data.
2624
2622
  * @param storeOrStoreId The Store to use, or its Id.
2625
2623
  * @category Hook
2626
2624
  * @since v8.1.0
@@ -2633,13 +2631,13 @@ export function useTableListener(
2633
2631
  ): void;
2634
2632
 
2635
2633
  /**
2636
- * The useTableCellIdsListener hook registers a listener that
2637
- * is called whenever the Cell Ids used across a Table change.
2638
- * @param tableId The Id of the Table to listen to, or `null`
2639
- * to listen to any Table.
2634
+ * The useTableCellIdsListener hook registers a listener that is called whenever
2635
+ * the Cell Ids used across a Table change.
2636
+ * @param tableId The Id of the Table to listen to, or `null` to listen to any
2637
+ * Table.
2640
2638
  * @param listener The function to call when Cell Ids change.
2641
- * @param mutator An optional boolean indicating the listener
2642
- * mutates Store data.
2639
+ * @param mutator An optional boolean indicating the listener mutates Store
2640
+ * data.
2643
2641
  * @param storeOrStoreId The Store to use, or its Id.
2644
2642
  * @category Hook
2645
2643
  * @since v8.1.0
@@ -2652,17 +2650,15 @@ export function useTableCellIdsListener(
2652
2650
  ): void;
2653
2651
 
2654
2652
  /**
2655
- * The useHasTableCellListener hook registers a listener that
2656
- * is called whenever a specified Cell Id is added to or
2657
- * removed from across a Table.
2658
- * @param tableId The Id of the Table to listen to, or `null`
2659
- * to listen to any Table.
2660
- * @param cellId The Id of the Cell to listen to, or `null`
2661
- * to listen to any Cell Id.
2662
- * @param listener The function to call when the Cell Id
2663
- * changes.
2664
- * @param mutator An optional boolean indicating the listener
2665
- * mutates Store data.
2653
+ * The useHasTableCellListener hook registers a listener that is called whenever
2654
+ * a specified Cell Id is added to or removed from across a Table.
2655
+ * @param tableId The Id of the Table to listen to, or `null` to listen to any
2656
+ * Table.
2657
+ * @param cellId The Id of the Cell to listen to, or `null` to listen to any
2658
+ * Cell Id.
2659
+ * @param listener The function to call when the Cell Id changes.
2660
+ * @param mutator An optional boolean indicating the listener mutates Store
2661
+ * data.
2666
2662
  * @param storeOrStoreId The Store to use, or its Id.
2667
2663
  * @category Hook
2668
2664
  * @since v8.1.0
@@ -2676,14 +2672,13 @@ export function useHasTableCellListener(
2676
2672
  ): void;
2677
2673
 
2678
2674
  /**
2679
- * The useRowCountListener hook registers a listener that is
2680
- * called whenever the count of Rows in a Table changes.
2681
- * @param tableId The Id of the Table to listen to, or `null`
2682
- * to listen to any Table.
2683
- * @param listener The function to call when the Row count
2684
- * changes.
2685
- * @param mutator An optional boolean indicating the listener
2686
- * mutates Store data.
2675
+ * The useRowCountListener hook registers a listener that is called whenever the
2676
+ * count of Rows in a Table changes.
2677
+ * @param tableId The Id of the Table to listen to, or `null` to listen to any
2678
+ * Table.
2679
+ * @param listener The function to call when the Row count changes.
2680
+ * @param mutator An optional boolean indicating the listener mutates Store
2681
+ * data.
2687
2682
  * @param storeOrStoreId The Store to use, or its Id.
2688
2683
  * @category Hook
2689
2684
  * @since v8.1.0
@@ -2696,13 +2691,13 @@ export function useRowCountListener(
2696
2691
  ): void;
2697
2692
 
2698
2693
  /**
2699
- * The useRowIdsListener hook registers a listener that is
2700
- * called whenever the Row Ids in a Table change.
2701
- * @param tableId The Id of the Table to listen to, or `null`
2702
- * to listen to any Table.
2694
+ * The useRowIdsListener hook registers a listener that is called whenever the
2695
+ * Row Ids in a Table change.
2696
+ * @param tableId The Id of the Table to listen to, or `null` to listen to any
2697
+ * Table.
2703
2698
  * @param listener The function to call when Row Ids change.
2704
- * @param mutator An optional boolean indicating the listener
2705
- * mutates Store data.
2699
+ * @param mutator An optional boolean indicating the listener mutates Store
2700
+ * data.
2706
2701
  * @param storeOrStoreId The Store to use, or its Id.
2707
2702
  * @category Hook
2708
2703
  * @since v8.1.0
@@ -2715,19 +2710,17 @@ export function useRowIdsListener(
2715
2710
  ): void;
2716
2711
 
2717
2712
  /**
2718
- * The useSortedRowIdsListener hook registers a listener that
2719
- * is called whenever the sorted Row Ids in a Table change.
2713
+ * The useSortedRowIdsListener hook registers a listener that is called whenever
2714
+ * the sorted Row Ids in a Table change.
2720
2715
  * @param tableId The Id of the Table to listen to.
2721
- * @param cellId The Id of the Cell to sort by, or `undefined`
2722
- * for default order.
2716
+ * @param cellId The Id of the Cell to sort by, or `undefined` for default
2717
+ * order.
2723
2718
  * @param descending Whether to sort descending.
2724
2719
  * @param offset The index of the first Row to include.
2725
- * @param limit The maximum number of Rows to include, or
2726
- * `undefined` for all.
2727
- * @param listener The function to call when sorted Row Ids
2728
- * change.
2729
- * @param mutator An optional boolean indicating the listener
2730
- * mutates Store data.
2720
+ * @param limit The maximum number of Rows to include, or `undefined` for all.
2721
+ * @param listener The function to call when sorted Row Ids change.
2722
+ * @param mutator An optional boolean indicating the listener mutates Store
2723
+ * data.
2731
2724
  * @param storeOrStoreId The Store to use, or its Id.
2732
2725
  * @category Hook
2733
2726
  * @since v8.1.0
@@ -2744,16 +2737,14 @@ export function useSortedRowIdsListener(
2744
2737
  ): void;
2745
2738
 
2746
2739
  /**
2747
- * The useHasRowListener hook registers a listener that is
2748
- * called whenever a specified Row is added to or removed from
2749
- * a Table.
2750
- * @param tableId The Id of the Table to listen to, or `null`
2751
- * to listen to any Table.
2752
- * @param rowId The Id of the Row to listen to, or `null` to
2753
- * listen to any Row.
2740
+ * The useHasRowListener hook registers a listener that is called whenever a
2741
+ * specified Row is added to or removed from a Table.
2742
+ * @param tableId The Id of the Table to listen to, or `null` to listen to any
2743
+ * Table.
2744
+ * @param rowId The Id of the Row to listen to, or `null` to listen to any Row.
2754
2745
  * @param listener The function to call when the Row changes.
2755
- * @param mutator An optional boolean indicating the listener
2756
- * mutates Store data.
2746
+ * @param mutator An optional boolean indicating the listener mutates Store
2747
+ * data.
2757
2748
  * @param storeOrStoreId The Store to use, or its Id.
2758
2749
  * @category Hook
2759
2750
  * @since v8.1.0
@@ -2767,15 +2758,14 @@ export function useHasRowListener(
2767
2758
  ): void;
2768
2759
 
2769
2760
  /**
2770
- * The useRowListener hook registers a listener that is called
2771
- * whenever data in a specified Row changes.
2772
- * @param tableId The Id of the Table to listen to, or `null`
2773
- * to listen to any Table.
2774
- * @param rowId The Id of the Row to listen to, or `null` to
2775
- * listen to any Row.
2761
+ * The useRowListener hook registers a listener that is called whenever data in
2762
+ * a specified Row changes.
2763
+ * @param tableId The Id of the Table to listen to, or `null` to listen to any
2764
+ * Table.
2765
+ * @param rowId The Id of the Row to listen to, or `null` to listen to any Row.
2776
2766
  * @param listener The function to call when the Row changes.
2777
- * @param mutator An optional boolean indicating the listener
2778
- * mutates Store data.
2767
+ * @param mutator An optional boolean indicating the listener mutates Store
2768
+ * data.
2779
2769
  * @param storeOrStoreId The Store to use, or its Id.
2780
2770
  * @category Hook
2781
2771
  * @since v8.1.0
@@ -2789,15 +2779,14 @@ export function useRowListener(
2789
2779
  ): void;
2790
2780
 
2791
2781
  /**
2792
- * The useCellIdsListener hook registers a listener that is
2793
- * called whenever the Cell Ids in a Row change.
2794
- * @param tableId The Id of the Table to listen to, or `null`
2795
- * to listen to any Table.
2796
- * @param rowId The Id of the Row to listen to, or `null` to
2797
- * listen to any Row.
2782
+ * The useCellIdsListener hook registers a listener that is called whenever the
2783
+ * Cell Ids in a Row change.
2784
+ * @param tableId The Id of the Table to listen to, or `null` to listen to any
2785
+ * Table.
2786
+ * @param rowId The Id of the Row to listen to, or `null` to listen to any Row.
2798
2787
  * @param listener The function to call when Cell Ids change.
2799
- * @param mutator An optional boolean indicating the listener
2800
- * mutates Store data.
2788
+ * @param mutator An optional boolean indicating the listener mutates Store
2789
+ * data.
2801
2790
  * @param storeOrStoreId The Store to use, or its Id.
2802
2791
  * @category Hook
2803
2792
  * @since v8.1.0
@@ -2811,18 +2800,16 @@ export function useCellIdsListener(
2811
2800
  ): void;
2812
2801
 
2813
2802
  /**
2814
- * The useHasCellListener hook registers a listener that is
2815
- * called whenever a specified Cell is added to or removed from
2816
- * a Row.
2817
- * @param tableId The Id of the Table to listen to, or `null`
2818
- * to listen to any Table.
2819
- * @param rowId The Id of the Row to listen to, or `null` to
2820
- * listen to any Row.
2821
- * @param cellId The Id of the Cell to listen to, or `null` to
2822
- * listen to any Cell.
2803
+ * The useHasCellListener hook registers a listener that is called whenever a
2804
+ * specified Cell is added to or removed from a Row.
2805
+ * @param tableId The Id of the Table to listen to, or `null` to listen to any
2806
+ * Table.
2807
+ * @param rowId The Id of the Row to listen to, or `null` to listen to any Row.
2808
+ * @param cellId The Id of the Cell to listen to, or `null` to listen to any
2809
+ * Cell.
2823
2810
  * @param listener The function to call when the Cell changes.
2824
- * @param mutator An optional boolean indicating the listener
2825
- * mutates Store data.
2811
+ * @param mutator An optional boolean indicating the listener mutates Store
2812
+ * data.
2826
2813
  * @param storeOrStoreId The Store to use, or its Id.
2827
2814
  * @category Hook
2828
2815
  * @since v8.1.0
@@ -2837,17 +2824,16 @@ export function useHasCellListener(
2837
2824
  ): void;
2838
2825
 
2839
2826
  /**
2840
- * The useCellListener hook registers a listener that is called
2841
- * whenever the value of a specified Cell changes.
2842
- * @param tableId The Id of the Table to listen to, or `null`
2843
- * to listen to any Table.
2844
- * @param rowId The Id of the Row to listen to, or `null` to
2845
- * listen to any Row.
2846
- * @param cellId The Id of the Cell to listen to, or `null` to
2847
- * listen to any Cell.
2827
+ * The useCellListener hook registers a listener that is called whenever the
2828
+ * value of a specified Cell changes.
2829
+ * @param tableId The Id of the Table to listen to, or `null` to listen to any
2830
+ * Table.
2831
+ * @param rowId The Id of the Row to listen to, or `null` to listen to any Row.
2832
+ * @param cellId The Id of the Cell to listen to, or `null` to listen to any
2833
+ * Cell.
2848
2834
  * @param listener The function to call when the Cell changes.
2849
- * @param mutator An optional boolean indicating the listener
2850
- * mutates Store data.
2835
+ * @param mutator An optional boolean indicating the listener mutates Store
2836
+ * data.
2851
2837
  * @param storeOrStoreId The Store to use, or its Id.
2852
2838
  * @category Hook
2853
2839
  * @since v8.1.0
@@ -2862,13 +2848,11 @@ export function useCellListener(
2862
2848
  ): void;
2863
2849
 
2864
2850
  /**
2865
- * The useHasValuesListener hook registers a listener that is
2866
- * called whenever any Values are added to or removed from the
2867
- * Store.
2868
- * @param listener The function to call when value presence
2869
- * changes.
2870
- * @param mutator An optional boolean indicating the listener
2871
- * mutates Store data.
2851
+ * The useHasValuesListener hook registers a listener that is called whenever
2852
+ * any Values are added to or removed from the Store.
2853
+ * @param listener The function to call when value presence changes.
2854
+ * @param mutator An optional boolean indicating the listener mutates Store
2855
+ * data.
2872
2856
  * @param storeOrStoreId The Store to use, or its Id.
2873
2857
  * @category Hook
2874
2858
  * @since v8.1.0
@@ -2880,11 +2864,11 @@ export function useHasValuesListener(
2880
2864
  ): void;
2881
2865
 
2882
2866
  /**
2883
- * The useValuesListener hook registers a listener that is
2884
- * called whenever any Values in the Store change.
2867
+ * The useValuesListener hook registers a listener that is called whenever any
2868
+ * Values in the Store change.
2885
2869
  * @param listener The function to call when Values change.
2886
- * @param mutator An optional boolean indicating the listener
2887
- * mutates Store data.
2870
+ * @param mutator An optional boolean indicating the listener mutates Store
2871
+ * data.
2888
2872
  * @param storeOrStoreId The Store to use, or its Id.
2889
2873
  * @category Hook
2890
2874
  * @since v8.1.0
@@ -2896,11 +2880,11 @@ export function useValuesListener(
2896
2880
  ): void;
2897
2881
 
2898
2882
  /**
2899
- * The useValueIdsListener hook registers a listener that is
2900
- * called whenever the Value Ids in the Store change.
2883
+ * The useValueIdsListener hook registers a listener that is called whenever the
2884
+ * Value Ids in the Store change.
2901
2885
  * @param listener The function to call when Value Ids change.
2902
- * @param mutator An optional boolean indicating the listener
2903
- * mutates Store data.
2886
+ * @param mutator An optional boolean indicating the listener mutates Store
2887
+ * data.
2904
2888
  * @param storeOrStoreId The Store to use, or its Id.
2905
2889
  * @category Hook
2906
2890
  * @since v8.1.0
@@ -2912,14 +2896,13 @@ export function useValueIdsListener(
2912
2896
  ): void;
2913
2897
 
2914
2898
  /**
2915
- * The useHasValueListener hook registers a listener that is
2916
- * called whenever a specified Value is added to or removed
2917
- * from the Store.
2918
- * @param valueId The Id of the Value to listen to, or `null`
2919
- * to listen to any Value.
2899
+ * The useHasValueListener hook registers a listener that is called whenever a
2900
+ * specified Value is added to or removed from the Store.
2901
+ * @param valueId The Id of the Value to listen to, or `null` to listen to any
2902
+ * Value.
2920
2903
  * @param listener The function to call when the Value changes.
2921
- * @param mutator An optional boolean indicating the listener
2922
- * mutates Store data.
2904
+ * @param mutator An optional boolean indicating the listener mutates Store
2905
+ * data.
2923
2906
  * @param storeOrStoreId The Store to use, or its Id.
2924
2907
  * @category Hook
2925
2908
  * @since v8.1.0
@@ -2932,13 +2915,13 @@ export function useHasValueListener(
2932
2915
  ): void;
2933
2916
 
2934
2917
  /**
2935
- * The useValueListener hook registers a listener that is
2936
- * called whenever the value of a specified Value changes.
2937
- * @param valueId The Id of the Value to listen to, or `null`
2938
- * to listen to any Value.
2918
+ * The useValueListener hook registers a listener that is called whenever the
2919
+ * value of a specified Value changes.
2920
+ * @param valueId The Id of the Value to listen to, or `null` to listen to any
2921
+ * Value.
2939
2922
  * @param listener The function to call when the Value changes.
2940
- * @param mutator An optional boolean indicating the listener
2941
- * mutates Store data.
2923
+ * @param mutator An optional boolean indicating the listener mutates Store
2924
+ * data.
2942
2925
  * @param storeOrStoreId The Store to use, or its Id.
2943
2926
  * @category Hook
2944
2927
  * @since v8.1.0
@@ -2951,8 +2934,8 @@ export function useValueListener(
2951
2934
  ): void;
2952
2935
 
2953
2936
  /**
2954
- * The useStartTransactionListener hook registers a listener
2955
- * that is called at the start of every Store transaction.
2937
+ * The useStartTransactionListener hook registers a listener that is called at
2938
+ * the start of every Store transaction.
2956
2939
  * @param listener The function to call at transaction start.
2957
2940
  * @param storeOrStoreId The Store to use, or its Id.
2958
2941
  * @category Hook
@@ -2964,8 +2947,8 @@ export function useStartTransactionListener(
2964
2947
  ): void;
2965
2948
 
2966
2949
  /**
2967
- * The useWillFinishTransactionListener hook registers a
2968
- * listener called just before a Store transaction completes.
2950
+ * The useWillFinishTransactionListener hook registers a listener called just
2951
+ * before a Store transaction completes.
2969
2952
  * @param listener The function to call before transaction end.
2970
2953
  * @param storeOrStoreId The Store to use, or its Id.
2971
2954
  * @category Hook
@@ -2977,8 +2960,8 @@ export function useWillFinishTransactionListener(
2977
2960
  ): void;
2978
2961
 
2979
2962
  /**
2980
- * The useDidFinishTransactionListener hook registers a
2981
- * listener called just after a Store transaction completes.
2963
+ * The useDidFinishTransactionListener hook registers a listener called just
2964
+ * after a Store transaction completes.
2982
2965
  * @param listener The function to call after transaction end.
2983
2966
  * @param storeOrStoreId The Store to use, or its Id.
2984
2967
  * @category Hook
@@ -2990,14 +2973,12 @@ export function useDidFinishTransactionListener(
2990
2973
  ): void;
2991
2974
 
2992
2975
  /**
2993
- * The useMetricListener hook registers a listener that is
2994
- * called whenever a specified Metric value changes.
2995
- * @param metricId The Id of the Metric to listen to, or
2996
- * `null` to listen to any Metric.
2997
- * @param listener The function to call when the Metric
2998
- * changes.
2999
- * @param metricsOrMetricsId The Metrics object to use, or
3000
- * its Id.
2976
+ * The useMetricListener hook registers a listener that is called whenever a
2977
+ * specified Metric value changes.
2978
+ * @param metricId The Id of the Metric to listen to, or `null` to listen to any
2979
+ * Metric.
2980
+ * @param listener The function to call when the Metric changes.
2981
+ * @param metricsOrMetricsId The Metrics object to use, or its Id.
3001
2982
  * @category Hook
3002
2983
  * @since v8.1.0
3003
2984
  */
@@ -3008,13 +2989,12 @@ export function useMetricListener(
3008
2989
  ): void;
3009
2990
 
3010
2991
  /**
3011
- * The useSliceIdsListener hook registers a listener that is
3012
- * called whenever the Slice Ids in an Index change.
3013
- * @param indexId The Id of the Index to listen to, or `null`
3014
- * to listen to any Index.
2992
+ * The useSliceIdsListener hook registers a listener that is called whenever the
2993
+ * Slice Ids in an Index change.
2994
+ * @param indexId The Id of the Index to listen to, or `null` to listen to any
2995
+ * Index.
3015
2996
  * @param listener The function to call when Slice Ids change.
3016
- * @param indexesOrIndexesId The Indexes object to use, or its
3017
- * Id.
2997
+ * @param indexesOrIndexesId The Indexes object to use, or its Id.
3018
2998
  * @category Hook
3019
2999
  * @since v8.1.0
3020
3000
  */
@@ -3025,16 +3005,14 @@ export function useSliceIdsListener(
3025
3005
  ): void;
3026
3006
 
3027
3007
  /**
3028
- * The useSliceRowIdsListener hook registers a listener that
3029
- * is called whenever the Row Ids in a Slice change.
3030
- * @param indexId The Id of the Index to listen to, or `null`
3031
- * to listen to any Index.
3032
- * @param sliceId The Id of the Slice to listen to, or `null`
3033
- * to listen to any Slice.
3034
- * @param listener The function to call when Slice Row Ids
3035
- * change.
3036
- * @param indexesOrIndexesId The Indexes object to use, or its
3037
- * Id.
3008
+ * The useSliceRowIdsListener hook registers a listener that is called whenever
3009
+ * the Row Ids in a Slice change.
3010
+ * @param indexId The Id of the Index to listen to, or `null` to listen to any
3011
+ * Index.
3012
+ * @param sliceId The Id of the Slice to listen to, or `null` to listen to any
3013
+ * Slice.
3014
+ * @param listener The function to call when Slice Row Ids change.
3015
+ * @param indexesOrIndexesId The Indexes object to use, or its Id.
3038
3016
  * @category Hook
3039
3017
  * @since v8.1.0
3040
3018
  */
@@ -3046,17 +3024,15 @@ export function useSliceRowIdsListener(
3046
3024
  ): void;
3047
3025
 
3048
3026
  /**
3049
- * The useRemoteRowIdListener hook registers a listener that
3050
- * is called whenever the remote Row Id for a local Row
3051
- * changes.
3052
- * @param relationshipId The Id of the Relationship, or `null`
3053
- * to listen to any Relationship.
3054
- * @param localRowId The Id of the local Row, or `null` to
3055
- * listen to any local Row.
3056
- * @param listener The function to call when the remote Row Id
3057
- * changes.
3058
- * @param relationshipsOrRelationshipsId The Relationships
3059
- * object to use, or its Id.
3027
+ * The useRemoteRowIdListener hook registers a listener that is called whenever
3028
+ * the remote Row Id for a local Row changes.
3029
+ * @param relationshipId The Id of the Relationship, or `null` to listen to any
3030
+ * Relationship.
3031
+ * @param localRowId The Id of the local Row, or `null` to listen to any local
3032
+ * Row.
3033
+ * @param listener The function to call when the remote Row Id changes.
3034
+ * @param relationshipsOrRelationshipsId The Relationships object to use, or its
3035
+ * Id.
3060
3036
  * @category Hook
3061
3037
  * @since v8.1.0
3062
3038
  */
@@ -3070,17 +3046,15 @@ export function useRemoteRowIdListener(
3070
3046
  ): void;
3071
3047
 
3072
3048
  /**
3073
- * The useLocalRowIdsListener hook registers a listener that
3074
- * is called whenever the local Row Ids for a remote Row
3075
- * change.
3076
- * @param relationshipId The Id of the Relationship, or `null`
3077
- * to listen to any Relationship.
3078
- * @param remoteRowId The Id of the remote Row, or `null` to
3079
- * listen to any remote Row.
3080
- * @param listener The function to call when local Row Ids
3081
- * change.
3082
- * @param relationshipsOrRelationshipsId The Relationships
3083
- * object to use, or its Id.
3049
+ * The useLocalRowIdsListener hook registers a listener that is called whenever
3050
+ * the local Row Ids for a remote Row change.
3051
+ * @param relationshipId The Id of the Relationship, or `null` to listen to any
3052
+ * Relationship.
3053
+ * @param remoteRowId The Id of the remote Row, or `null` to listen to any
3054
+ * remote Row.
3055
+ * @param listener The function to call when local Row Ids change.
3056
+ * @param relationshipsOrRelationshipsId The Relationships object to use, or its
3057
+ * Id.
3084
3058
  * @category Hook
3085
3059
  * @since v8.1.0
3086
3060
  */
@@ -3094,15 +3068,13 @@ export function useLocalRowIdsListener(
3094
3068
  ): void;
3095
3069
 
3096
3070
  /**
3097
- * The useLinkedRowIdsListener hook registers a listener that
3098
- * is called whenever the linked Row Ids for a first Row
3099
- * change.
3071
+ * The useLinkedRowIdsListener hook registers a listener that is called whenever
3072
+ * the linked Row Ids for a first Row change.
3100
3073
  * @param relationshipId The Id of the Relationship.
3101
3074
  * @param firstRowId The Id of the first Row.
3102
- * @param listener The function to call when linked Row Ids
3103
- * change.
3104
- * @param relationshipsOrRelationshipsId The Relationships
3105
- * object to use, or its Id.
3075
+ * @param listener The function to call when linked Row Ids change.
3076
+ * @param relationshipsOrRelationshipsId The Relationships object to use, or its
3077
+ * Id.
3106
3078
  * @category Hook
3107
3079
  * @since v8.1.0
3108
3080
  */
@@ -3116,14 +3088,12 @@ export function useLinkedRowIdsListener(
3116
3088
  ): void;
3117
3089
 
3118
3090
  /**
3119
- * The useResultTableListener hook registers a listener that
3120
- * is called whenever the result Table of a query changes.
3121
- * @param queryId The Id of the query to listen to, or `null`
3122
- * to listen to any query.
3123
- * @param listener The function to call when the result Table
3124
- * changes.
3125
- * @param queriesOrQueriesId The Queries object to use, or its
3126
- * Id.
3091
+ * The useResultTableListener hook registers a listener that is called whenever
3092
+ * the result Table of a query changes.
3093
+ * @param queryId The Id of the query to listen to, or `null` to listen to any
3094
+ * query.
3095
+ * @param listener The function to call when the result Table changes.
3096
+ * @param queriesOrQueriesId The Queries object to use, or its Id.
3127
3097
  * @category Hook
3128
3098
  * @since v8.1.0
3129
3099
  */
@@ -3134,14 +3104,12 @@ export function useResultTableListener(
3134
3104
  ): void;
3135
3105
 
3136
3106
  /**
3137
- * The useResultTableCellIdsListener hook registers a listener
3138
- * that is called whenever the Cell Ids across a result Table
3139
- * change.
3140
- * @param queryId The Id of the query to listen to, or `null`
3141
- * to listen to any query.
3107
+ * The useResultTableCellIdsListener hook registers a listener that is called
3108
+ * whenever the Cell Ids across a result Table change.
3109
+ * @param queryId The Id of the query to listen to, or `null` to listen to any
3110
+ * query.
3142
3111
  * @param listener The function to call when Cell Ids change.
3143
- * @param queriesOrQueriesId The Queries object to use, or its
3144
- * Id.
3112
+ * @param queriesOrQueriesId The Queries object to use, or its Id.
3145
3113
  * @category Hook
3146
3114
  * @since v8.1.0
3147
3115
  */
@@ -3152,13 +3120,12 @@ export function useResultTableCellIdsListener(
3152
3120
  ): void;
3153
3121
 
3154
3122
  /**
3155
- * The useResultRowCountListener hook registers a listener that
3156
- * is called whenever the count of result Rows changes.
3157
- * @param queryId The Id of the query to listen to, or `null`
3158
- * to listen to any query.
3123
+ * The useResultRowCountListener hook registers a listener that is called
3124
+ * whenever the count of result Rows changes.
3125
+ * @param queryId The Id of the query to listen to, or `null` to listen to any
3126
+ * query.
3159
3127
  * @param listener The function to call when the count changes.
3160
- * @param queriesOrQueriesId The Queries object to use, or its
3161
- * Id.
3128
+ * @param queriesOrQueriesId The Queries object to use, or its Id.
3162
3129
  * @category Hook
3163
3130
  * @since v8.1.0
3164
3131
  */
@@ -3169,14 +3136,12 @@ export function useResultRowCountListener(
3169
3136
  ): void;
3170
3137
 
3171
3138
  /**
3172
- * The useResultRowIdsListener hook registers a listener that
3173
- * is called whenever the result Row Ids of a query change.
3174
- * @param queryId The Id of the query to listen to, or `null`
3175
- * to listen to any query.
3176
- * @param listener The function to call when result Row Ids
3177
- * change.
3178
- * @param queriesOrQueriesId The Queries object to use, or its
3179
- * Id.
3139
+ * The useResultRowIdsListener hook registers a listener that is called whenever
3140
+ * the result Row Ids of a query change.
3141
+ * @param queryId The Id of the query to listen to, or `null` to listen to any
3142
+ * query.
3143
+ * @param listener The function to call when result Row Ids change.
3144
+ * @param queriesOrQueriesId The Queries object to use, or its Id.
3180
3145
  * @category Hook
3181
3146
  * @since v8.1.0
3182
3147
  */
@@ -3187,19 +3152,16 @@ export function useResultRowIdsListener(
3187
3152
  ): void;
3188
3153
 
3189
3154
  /**
3190
- * The useResultSortedRowIdsListener hook registers a listener
3191
- * that is called whenever the sorted result Row Ids change.
3155
+ * The useResultSortedRowIdsListener hook registers a listener that is called
3156
+ * whenever the sorted result Row Ids change.
3192
3157
  * @param queryId The Id of the query to listen to.
3193
- * @param cellId The Id of the Cell to sort by, or `undefined`
3194
- * for default order.
3158
+ * @param cellId The Id of the Cell to sort by, or `undefined` for default
3159
+ * order.
3195
3160
  * @param descending Whether to sort descending.
3196
3161
  * @param offset The index of the first Row to include.
3197
- * @param limit The maximum number of Rows to include, or
3198
- * `undefined` for all.
3199
- * @param listener The function to call when sorted Row Ids
3200
- * change.
3201
- * @param queriesOrQueriesId The Queries object to use, or its
3202
- * Id.
3162
+ * @param limit The maximum number of Rows to include, or `undefined` for all.
3163
+ * @param listener The function to call when sorted Row Ids change.
3164
+ * @param queriesOrQueriesId The Queries object to use, or its Id.
3203
3165
  * @category Hook
3204
3166
  * @since v8.1.0
3205
3167
  */
@@ -3214,16 +3176,14 @@ export function useResultSortedRowIdsListener(
3214
3176
  ): void;
3215
3177
 
3216
3178
  /**
3217
- * The useResultRowListener hook registers a listener that is
3218
- * called whenever a result Row changes.
3219
- * @param queryId The Id of the query to listen to, or `null`
3220
- * to listen to any query.
3221
- * @param rowId The Id of the result Row to listen to, or
3222
- * `null` to listen to any result Row.
3223
- * @param listener The function to call when the result Row
3224
- * changes.
3225
- * @param queriesOrQueriesId The Queries object to use, or its
3226
- * Id.
3179
+ * The useResultRowListener hook registers a listener that is called whenever a
3180
+ * result Row changes.
3181
+ * @param queryId The Id of the query to listen to, or `null` to listen to any
3182
+ * query.
3183
+ * @param rowId The Id of the result Row to listen to, or `null` to listen to
3184
+ * any result Row.
3185
+ * @param listener The function to call when the result Row changes.
3186
+ * @param queriesOrQueriesId The Queries object to use, or its Id.
3227
3187
  * @category Hook
3228
3188
  * @since v8.1.0
3229
3189
  */
@@ -3235,15 +3195,14 @@ export function useResultRowListener(
3235
3195
  ): void;
3236
3196
 
3237
3197
  /**
3238
- * The useResultCellIdsListener hook registers a listener that
3239
- * is called whenever the Cell Ids in a result Row change.
3240
- * @param queryId The Id of the query to listen to, or `null`
3241
- * to listen to any query.
3242
- * @param rowId The Id of the result Row to listen to, or
3243
- * `null` to listen to any result Row.
3198
+ * The useResultCellIdsListener hook registers a listener that is called
3199
+ * whenever the Cell Ids in a result Row change.
3200
+ * @param queryId The Id of the query to listen to, or `null` to listen to any
3201
+ * query.
3202
+ * @param rowId The Id of the result Row to listen to, or `null` to listen to
3203
+ * any result Row.
3244
3204
  * @param listener The function to call when Cell Ids change.
3245
- * @param queriesOrQueriesId The Queries object to use, or its
3246
- * Id.
3205
+ * @param queriesOrQueriesId The Queries object to use, or its Id.
3247
3206
  * @category Hook
3248
3207
  * @since v8.1.0
3249
3208
  */
@@ -3255,18 +3214,16 @@ export function useResultCellIdsListener(
3255
3214
  ): void;
3256
3215
 
3257
3216
  /**
3258
- * The useResultCellListener hook registers a listener that is
3259
- * called whenever the value of a result Cell changes.
3260
- * @param queryId The Id of the query to listen to, or `null`
3261
- * to listen to any query.
3262
- * @param rowId The Id of the result Row to listen to, or
3263
- * `null` to listen to any result Row.
3264
- * @param cellId The Id of the result Cell to listen to, or
3265
- * `null` to listen to any result Cell.
3266
- * @param listener The function to call when the result Cell
3267
- * changes.
3268
- * @param queriesOrQueriesId The Queries object to use, or its
3269
- * Id.
3217
+ * The useResultCellListener hook registers a listener that is called whenever
3218
+ * the value of a result Cell changes.
3219
+ * @param queryId The Id of the query to listen to, or `null` to listen to any
3220
+ * query.
3221
+ * @param rowId The Id of the result Row to listen to, or `null` to listen to
3222
+ * any result Row.
3223
+ * @param cellId The Id of the result Cell to listen to, or `null` to listen to
3224
+ * any result Cell.
3225
+ * @param listener The function to call when the result Cell changes.
3226
+ * @param queriesOrQueriesId The Queries object to use, or its Id.
3270
3227
  * @category Hook
3271
3228
  * @since v8.1.0
3272
3229
  */
@@ -3279,14 +3236,12 @@ export function useResultCellListener(
3279
3236
  ): void;
3280
3237
 
3281
3238
  /**
3282
- * The useParamValuesListener hook registers a listener that
3283
- * is called whenever the parameter values for a query change.
3284
- * @param queryId The Id of the query to listen to, or `null`
3285
- * to listen to any query.
3286
- * @param listener The function to call when parameter values
3287
- * change.
3288
- * @param queriesOrQueriesId The Queries object to use, or its
3289
- * Id.
3239
+ * The useParamValuesListener hook registers a listener that is called whenever
3240
+ * the parameter values for a query change.
3241
+ * @param queryId The Id of the query to listen to, or `null` to listen to any
3242
+ * query.
3243
+ * @param listener The function to call when parameter values change.
3244
+ * @param queriesOrQueriesId The Queries object to use, or its Id.
3290
3245
  * @category Hook
3291
3246
  * @since v8.1.0
3292
3247
  */
@@ -3297,17 +3252,14 @@ export function useParamValuesListener(
3297
3252
  ): void;
3298
3253
 
3299
3254
  /**
3300
- * The useParamValueListener hook registers a listener that is
3301
- * called whenever a specific parameter value for a query
3302
- * changes.
3303
- * @param queryId The Id of the query to listen to, or `null`
3304
- * to listen to any query.
3305
- * @param paramId The Id of the parameter to listen to, or
3306
- * `null` to listen to any parameter.
3307
- * @param listener The function to call when the parameter
3308
- * value changes.
3309
- * @param queriesOrQueriesId The Queries object to use, or its
3310
- * Id.
3255
+ * The useParamValueListener hook registers a listener that is called whenever a
3256
+ * specific parameter value for a query changes.
3257
+ * @param queryId The Id of the query to listen to, or `null` to listen to any
3258
+ * query.
3259
+ * @param paramId The Id of the parameter to listen to, or `null` to listen to
3260
+ * any parameter.
3261
+ * @param listener The function to call when the parameter value changes.
3262
+ * @param queriesOrQueriesId The Queries object to use, or its Id.
3311
3263
  * @category Hook
3312
3264
  * @since v8.1.0
3313
3265
  */
@@ -3319,12 +3271,10 @@ export function useParamValueListener(
3319
3271
  ): void;
3320
3272
 
3321
3273
  /**
3322
- * The useCheckpointIdsListener hook registers a listener that
3323
- * is called whenever the Checkpoint Ids change.
3324
- * @param listener The function to call when Checkpoint Ids
3325
- * change.
3326
- * @param checkpointsOrCheckpointsId The Checkpoints object to
3327
- * use, or its Id.
3274
+ * The useCheckpointIdsListener hook registers a listener that is called
3275
+ * whenever the Checkpoint Ids change.
3276
+ * @param listener The function to call when Checkpoint Ids change.
3277
+ * @param checkpointsOrCheckpointsId The Checkpoints object to use, or its Id.
3328
3278
  * @category Hook
3329
3279
  * @since v8.1.0
3330
3280
  */
@@ -3336,14 +3286,12 @@ export function useCheckpointIdsListener(
3336
3286
  ): void;
3337
3287
 
3338
3288
  /**
3339
- * The useCheckpointListener hook registers a listener that is
3340
- * called whenever the label of a specified Checkpoint changes.
3341
- * @param checkpointId The Id of the Checkpoint to listen to,
3342
- * or `null` to listen to any Checkpoint.
3343
- * @param listener The function to call when the Checkpoint
3344
- * label changes.
3345
- * @param checkpointsOrCheckpointsId The Checkpoints object to
3346
- * use, or its Id.
3289
+ * The useCheckpointListener hook registers a listener that is called whenever
3290
+ * the label of a specified Checkpoint changes.
3291
+ * @param checkpointId The Id of the Checkpoint to listen to, or `null` to
3292
+ * listen to any Checkpoint.
3293
+ * @param listener The function to call when the Checkpoint label changes.
3294
+ * @param checkpointsOrCheckpointsId The Checkpoints object to use, or its Id.
3347
3295
  * @category Hook
3348
3296
  * @since v8.1.0
3349
3297
  */
@@ -3356,12 +3304,10 @@ export function useCheckpointListener(
3356
3304
  ): void;
3357
3305
 
3358
3306
  /**
3359
- * The usePersisterStatusListener hook registers a listener
3360
- * that is called whenever the status of a Persister changes.
3361
- * @param listener The function to call when the status
3362
- * changes.
3363
- * @param persisterOrPersisterId The Persister to use, or its
3364
- * Id.
3307
+ * The usePersisterStatusListener hook registers a listener that is called
3308
+ * whenever the status of a Persister changes.
3309
+ * @param listener The function to call when the status changes.
3310
+ * @param persisterOrPersisterId The Persister to use, or its Id.
3365
3311
  * @category Hook
3366
3312
  * @since v8.1.0
3367
3313
  */
@@ -3371,13 +3317,10 @@ export function usePersisterStatusListener(
3371
3317
  ): void;
3372
3318
 
3373
3319
  /**
3374
- * The useSynchronizerStatusListener hook registers a listener
3375
- * that is called whenever the status of a Synchronizer
3376
- * changes.
3377
- * @param listener The function to call when the status
3378
- * changes.
3379
- * @param synchronizerOrSynchronizerId The Synchronizer to use,
3380
- * or its Id.
3320
+ * The useSynchronizerStatusListener hook registers a listener that is called
3321
+ * whenever the status of a Synchronizer changes.
3322
+ * @param listener The function to call when the status changes.
3323
+ * @param synchronizerOrSynchronizerId The Synchronizer to use, or its Id.
3381
3324
  * @category Hook
3382
3325
  * @since v8.1.0
3383
3326
  */