tinybase 10.0.0-beta.1 → 10.0.0-beta.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.
Files changed (149) hide show
  1. package/@types/common/index.d.ts +1 -0
  2. package/@types/common/with-schemas/index.d.ts +1 -0
  3. package/@types/indexes/index.d.ts +1 -0
  4. package/@types/indexes/with-schemas/index.d.ts +1 -0
  5. package/@types/metrics/index.d.ts +1 -0
  6. package/@types/metrics/with-schemas/index.d.ts +1 -0
  7. package/@types/omni/index.d.ts +1 -0
  8. package/@types/omni/with-schemas/index.d.ts +1 -0
  9. package/@types/persisters/index.d.ts +1 -0
  10. package/@types/persisters/persister-partykit-server/index.d.ts +17 -0
  11. package/@types/persisters/persister-partykit-server/with-schemas/index.d.ts +17 -0
  12. package/@types/persisters/persister-tinyjoin/index.d.ts +197 -0
  13. package/@types/persisters/persister-tinyjoin/with-schemas/index.d.ts +221 -0
  14. package/@types/persisters/with-schemas/index.d.ts +1 -0
  15. package/@types/queries/index.d.ts +3 -0
  16. package/@types/queries/with-schemas/index.d.ts +3 -0
  17. package/@types/relationships/index.d.ts +1 -0
  18. package/@types/relationships/with-schemas/index.d.ts +1 -0
  19. package/@types/store/index.d.ts +4 -0
  20. package/@types/store/with-schemas/index.d.ts +4 -0
  21. package/@types/ui-react/index.d.ts +2 -0
  22. package/@types/ui-react/with-schemas/index.d.ts +1 -0
  23. package/@types/ui-react-dom-charts/index.d.ts +7 -0
  24. package/@types/ui-react-dom-charts/with-schemas/index.d.ts +7 -0
  25. package/@types/ui-solid/index.d.ts +2 -0
  26. package/@types/ui-solid/with-schemas/index.d.ts +1 -0
  27. package/@types/ui-svelte/index.d.ts +23 -0
  28. package/@types/ui-svelte/with-schemas/index.d.ts +23 -0
  29. package/@types/ui-svelte-dom/index.d.ts +10 -0
  30. package/@types/ui-svelte-dom/with-schemas/index.d.ts +10 -0
  31. package/@types/ui-svelte-inspector/index.d.ts +1 -0
  32. package/@types/ui-svelte-inspector/with-schemas/index.d.ts +1 -0
  33. package/min/omni/index.js +1 -1
  34. package/min/omni/index.js.gz +0 -0
  35. package/min/omni/with-schemas/index.js +1 -1
  36. package/min/omni/with-schemas/index.js.gz +0 -0
  37. package/min/persisters/index.js +1 -1
  38. package/min/persisters/index.js.gz +0 -0
  39. package/min/persisters/persister-better-sqlite3/index.js +1 -1
  40. package/min/persisters/persister-better-sqlite3/index.js.gz +0 -0
  41. package/min/persisters/persister-better-sqlite3/with-schemas/index.js +1 -1
  42. package/min/persisters/persister-better-sqlite3/with-schemas/index.js.gz +0 -0
  43. package/min/persisters/persister-capacitor-sqlite/index.js +1 -1
  44. package/min/persisters/persister-capacitor-sqlite/index.js.gz +0 -0
  45. package/min/persisters/persister-capacitor-sqlite/with-schemas/index.js +1 -1
  46. package/min/persisters/persister-capacitor-sqlite/with-schemas/index.js.gz +0 -0
  47. package/min/persisters/persister-cr-sqlite-wasm/index.js +1 -1
  48. package/min/persisters/persister-cr-sqlite-wasm/index.js.gz +0 -0
  49. package/min/persisters/persister-cr-sqlite-wasm/with-schemas/index.js +1 -1
  50. package/min/persisters/persister-cr-sqlite-wasm/with-schemas/index.js.gz +0 -0
  51. package/min/persisters/persister-durable-object-sql-storage/index.js +1 -1
  52. package/min/persisters/persister-durable-object-sql-storage/index.js.gz +0 -0
  53. package/min/persisters/persister-durable-object-sql-storage/with-schemas/index.js +1 -1
  54. package/min/persisters/persister-durable-object-sql-storage/with-schemas/index.js.gz +0 -0
  55. package/min/persisters/persister-electric-sql/index.js +1 -1
  56. package/min/persisters/persister-electric-sql/index.js.gz +0 -0
  57. package/min/persisters/persister-electric-sql/with-schemas/index.js +1 -1
  58. package/min/persisters/persister-electric-sql/with-schemas/index.js.gz +0 -0
  59. package/min/persisters/persister-expo-sqlite/index.js +1 -1
  60. package/min/persisters/persister-expo-sqlite/index.js.gz +0 -0
  61. package/min/persisters/persister-expo-sqlite/with-schemas/index.js +1 -1
  62. package/min/persisters/persister-expo-sqlite/with-schemas/index.js.gz +0 -0
  63. package/min/persisters/persister-libsql/index.js +1 -1
  64. package/min/persisters/persister-libsql/index.js.gz +0 -0
  65. package/min/persisters/persister-libsql/with-schemas/index.js +1 -1
  66. package/min/persisters/persister-libsql/with-schemas/index.js.gz +0 -0
  67. package/min/persisters/persister-pg/index.js +1 -1
  68. package/min/persisters/persister-pg/index.js.gz +0 -0
  69. package/min/persisters/persister-pg/with-schemas/index.js +1 -1
  70. package/min/persisters/persister-pg/with-schemas/index.js.gz +0 -0
  71. package/min/persisters/persister-pglite/index.js +1 -1
  72. package/min/persisters/persister-pglite/index.js.gz +0 -0
  73. package/min/persisters/persister-pglite/with-schemas/index.js +1 -1
  74. package/min/persisters/persister-pglite/with-schemas/index.js.gz +0 -0
  75. package/min/persisters/persister-postgres/index.js +1 -1
  76. package/min/persisters/persister-postgres/index.js.gz +0 -0
  77. package/min/persisters/persister-postgres/with-schemas/index.js +1 -1
  78. package/min/persisters/persister-postgres/with-schemas/index.js.gz +0 -0
  79. package/min/persisters/persister-powersync/index.js +1 -1
  80. package/min/persisters/persister-powersync/index.js.gz +0 -0
  81. package/min/persisters/persister-powersync/with-schemas/index.js +1 -1
  82. package/min/persisters/persister-powersync/with-schemas/index.js.gz +0 -0
  83. package/min/persisters/persister-react-native-sqlite/index.js +1 -1
  84. package/min/persisters/persister-react-native-sqlite/index.js.gz +0 -0
  85. package/min/persisters/persister-react-native-sqlite/with-schemas/index.js +1 -1
  86. package/min/persisters/persister-react-native-sqlite/with-schemas/index.js.gz +0 -0
  87. package/min/persisters/persister-sqlite-bun/index.js +1 -1
  88. package/min/persisters/persister-sqlite-bun/index.js.gz +0 -0
  89. package/min/persisters/persister-sqlite-bun/with-schemas/index.js +1 -1
  90. package/min/persisters/persister-sqlite-bun/with-schemas/index.js.gz +0 -0
  91. package/min/persisters/persister-sqlite-node/index.js +1 -1
  92. package/min/persisters/persister-sqlite-node/index.js.gz +0 -0
  93. package/min/persisters/persister-sqlite-node/with-schemas/index.js +1 -1
  94. package/min/persisters/persister-sqlite-node/with-schemas/index.js.gz +0 -0
  95. package/min/persisters/persister-sqlite-wasm/index.js +1 -1
  96. package/min/persisters/persister-sqlite-wasm/index.js.gz +0 -0
  97. package/min/persisters/persister-sqlite-wasm/with-schemas/index.js +1 -1
  98. package/min/persisters/persister-sqlite-wasm/with-schemas/index.js.gz +0 -0
  99. package/min/persisters/persister-sqlite3/index.js +1 -1
  100. package/min/persisters/persister-sqlite3/index.js.gz +0 -0
  101. package/min/persisters/persister-sqlite3/with-schemas/index.js +1 -1
  102. package/min/persisters/persister-sqlite3/with-schemas/index.js.gz +0 -0
  103. package/min/persisters/persister-tinyjoin/index.js +1 -0
  104. package/min/persisters/persister-tinyjoin/index.js.gz +0 -0
  105. package/min/persisters/persister-tinyjoin/with-schemas/index.js +1 -0
  106. package/min/persisters/persister-tinyjoin/with-schemas/index.js.gz +0 -0
  107. package/min/persisters/with-schemas/index.js +1 -1
  108. package/min/persisters/with-schemas/index.js.gz +0 -0
  109. package/omni/index.js +146 -66
  110. package/omni/with-schemas/index.js +146 -66
  111. package/package.json +41 -1
  112. package/persisters/index.js +28 -13
  113. package/persisters/persister-better-sqlite3/index.js +70 -55
  114. package/persisters/persister-better-sqlite3/with-schemas/index.js +70 -55
  115. package/persisters/persister-capacitor-sqlite/index.js +70 -55
  116. package/persisters/persister-capacitor-sqlite/with-schemas/index.js +70 -55
  117. package/persisters/persister-cr-sqlite-wasm/index.js +70 -55
  118. package/persisters/persister-cr-sqlite-wasm/with-schemas/index.js +70 -55
  119. package/persisters/persister-durable-object-sql-storage/index.js +28 -13
  120. package/persisters/persister-durable-object-sql-storage/with-schemas/index.js +28 -13
  121. package/persisters/persister-electric-sql/index.js +70 -55
  122. package/persisters/persister-electric-sql/with-schemas/index.js +70 -55
  123. package/persisters/persister-expo-sqlite/index.js +70 -55
  124. package/persisters/persister-expo-sqlite/with-schemas/index.js +70 -55
  125. package/persisters/persister-libsql/index.js +70 -55
  126. package/persisters/persister-libsql/with-schemas/index.js +70 -55
  127. package/persisters/persister-pg/index.js +77 -62
  128. package/persisters/persister-pg/with-schemas/index.js +77 -62
  129. package/persisters/persister-pglite/index.js +28 -13
  130. package/persisters/persister-pglite/with-schemas/index.js +28 -13
  131. package/persisters/persister-postgres/index.js +28 -13
  132. package/persisters/persister-postgres/with-schemas/index.js +28 -13
  133. package/persisters/persister-powersync/index.js +81 -66
  134. package/persisters/persister-powersync/with-schemas/index.js +81 -66
  135. package/persisters/persister-react-native-sqlite/index.js +70 -55
  136. package/persisters/persister-react-native-sqlite/with-schemas/index.js +70 -55
  137. package/persisters/persister-sqlite-bun/index.js +70 -55
  138. package/persisters/persister-sqlite-bun/with-schemas/index.js +70 -55
  139. package/persisters/persister-sqlite-node/index.js +70 -55
  140. package/persisters/persister-sqlite-node/with-schemas/index.js +70 -55
  141. package/persisters/persister-sqlite-wasm/index.js +70 -55
  142. package/persisters/persister-sqlite-wasm/with-schemas/index.js +70 -55
  143. package/persisters/persister-sqlite3/index.js +70 -55
  144. package/persisters/persister-sqlite3/with-schemas/index.js +70 -55
  145. package/persisters/persister-tinyjoin/index.js +1710 -0
  146. package/persisters/persister-tinyjoin/with-schemas/index.js +1710 -0
  147. package/persisters/with-schemas/index.js +28 -13
  148. package/readme.md +3 -3
  149. package/releases.md +20 -1
@@ -3272,6 +3272,7 @@ export interface Queries {
3272
3272
  * with a reference to the Queries object.
3273
3273
  * @param listener The function that will be called whenever a Query
3274
3274
  * definition is added or removed.
3275
+ * @returns A unique Id for the listener that can later be used to remove it.
3275
3276
  * @example
3276
3277
  * This example creates a Store, a Queries object, and then registers a
3277
3278
  * listener that responds to the addition and the removal of a Query
@@ -3321,6 +3322,7 @@ export interface Queries {
3321
3322
  * @param queryId The Id of the query to listen to, or `null` as a wildcard.
3322
3323
  * @param listener The function that will be called whenever the param values
3323
3324
  * of the query change.
3325
+ * @returns A unique Id for the listener that can later be used to remove it.
3324
3326
  * @example
3325
3327
  * This example registers two listeners that respond to changes to the param
3326
3328
  * values of a specific query, or any query respectively.
@@ -3392,6 +3394,7 @@ export interface Queries {
3392
3394
  * @param paramId The Id of the param to listen to, or `null` as a wildcard.
3393
3395
  * @param listener The function that will be called whenever the specific
3394
3396
  * param value of the query changes.
3397
+ * @returns A unique Id for the listener that can later be used to remove it.
3395
3398
  * @example
3396
3399
  * This example registers two listeners that respond to changes to a specific
3397
3400
  * param value of a specific query, or any param value of any query
@@ -3582,6 +3582,7 @@ export interface Queries<in out Schemas extends OptionalSchemas> {
3582
3582
  * with a reference to the Queries object.
3583
3583
  * @param listener The function that will be called whenever a Query
3584
3584
  * definition is added or removed.
3585
+ * @returns A unique Id for the listener that can later be used to remove it.
3585
3586
  * @example
3586
3587
  * This example creates a Store, a Queries object, and then registers a
3587
3588
  * listener that responds to the addition and the removal of a Query
@@ -3637,6 +3638,7 @@ export interface Queries<in out Schemas extends OptionalSchemas> {
3637
3638
  * @param queryId The Id of the query to listen to, or `null` as a wildcard.
3638
3639
  * @param listener The function that will be called whenever the param values
3639
3640
  * of the query change.
3641
+ * @returns A unique Id for the listener that can later be used to remove it.
3640
3642
  * @example
3641
3643
  * This example registers two listeners that respond to changes to the param
3642
3644
  * values of a specific query, or any query respectively.
@@ -3721,6 +3723,7 @@ export interface Queries<in out Schemas extends OptionalSchemas> {
3721
3723
  * @param paramId The Id of the param to listen to, or `null` as a wildcard.
3722
3724
  * @param listener The function that will be called whenever the specific
3723
3725
  * param value of the query changes.
3726
+ * @returns A unique Id for the listener that can later be used to remove it.
3724
3727
  * @example
3725
3728
  * This example registers two listeners that respond to changes to a specific
3726
3729
  * param value of a specific query, or any param value of any query
@@ -755,6 +755,7 @@ export interface Relationships {
755
755
  * called with a reference to the Relationships object.
756
756
  * @param listener The function that will be called whenever a Relationship
757
757
  * definition is added or removed.
758
+ * @returns A unique Id for the listener that can later be used to remove it.
758
759
  * @example
759
760
  * This example creates a Store, a Relationships object, and then registers a
760
761
  * listener that responds to the addition and the removal of a Relationship
@@ -866,6 +866,7 @@ export interface Relationships<in out Schemas extends OptionalSchemas> {
866
866
  * called with a reference to the Relationships object.
867
867
  * @param listener The function that will be called whenever a Relationship
868
868
  * definition is added or removed.
869
+ * @returns A unique Id for the listener that can later be used to remove it.
869
870
  * @example
870
871
  * This example creates a Store, a Relationships object, and then registers a
871
872
  * listener that responds to the addition and the removal of a Relationship
@@ -739,6 +739,7 @@ export type ValueCallback = (valueId: Id, value: Value) => void;
739
739
  * new one, such as when incrementing a number. See that method for specific
740
740
  * examples.
741
741
  * @param cell The current value of the Cell to map to a new value.
742
+ * @returns The new value of the Cell.
742
743
  * @category Callback
743
744
  * @since v1.0.0
744
745
  */
@@ -752,6 +753,7 @@ export type MapCell = (cell: CellOrUndefined) => Cell;
752
753
  * a new one, such as when incrementing a number. See that method for specific
753
754
  * examples.
754
755
  * @param value The current Value to map to a new Value.
756
+ * @returns The new Value.
755
757
  * @category Callback
756
758
  * @since v3.0.0
757
759
  */
@@ -765,6 +767,7 @@ export type MapValue = (value: ValueOrUndefined) => Value;
765
767
  * setMetricDefinition method of a Metrics object, or the setIndexDefinition
766
768
  * method of an Indexes object. See those methods for specific examples.
767
769
  * @param cellId The Id of the Cell to fetch the value for.
770
+ * @returns The value of the Cell, or `undefined`.
768
771
  * @category Callback
769
772
  * @since v1.0.0
770
773
  */
@@ -871,6 +874,7 @@ export type ChangedValueIds = {[valueId: Id]: IdAddedOrRemoved};
871
874
  * can use the getTransactionChanges method and getTransactionLog method of the
872
875
  * Store directly to decide whether to do the rollback.
873
876
  * @param store A reference to the Store that is completing a transaction.
877
+ * @returns Whether to rollback the transaction.
874
878
  * @category Callback
875
879
  * @since v1.0.0
876
880
  */
@@ -1000,6 +1000,7 @@ export type ValueCallback<
1000
1000
  * new one, such as when incrementing a number. See that method for specific
1001
1001
  * examples.
1002
1002
  * @param cell The current value of the Cell to map to a new value.
1003
+ * @returns The new value of the Cell.
1003
1004
  * @category Callback
1004
1005
  * @since v1.0.0
1005
1006
  */
@@ -1025,6 +1026,7 @@ export type MapCell<
1025
1026
  * a new one, such as when incrementing a number. See that method for specific
1026
1027
  * examples.
1027
1028
  * @param value The current Value to map to a new Value.
1029
+ * @returns The new Value.
1028
1030
  * @category Callback
1029
1031
  * @since v3.0.0
1030
1032
  */
@@ -1047,6 +1049,7 @@ export type MapValue<
1047
1049
  * setMetricDefinition method of a Metrics object, or the setIndexDefinition
1048
1050
  * method of an Indexes object. See those methods for specific examples.
1049
1051
  * @param cellId The Id of the Cell to fetch the value for.
1052
+ * @returns The value of the Cell, or `undefined`.
1050
1053
  * @category Callback
1051
1054
  * @since v1.0.0
1052
1055
  */
@@ -1200,6 +1203,7 @@ export type ChangedValueIds<Schema extends OptionalValuesSchema> = {
1200
1203
  * can use the getTransactionChanges method and getTransactionLog method of the
1201
1204
  * Store directly to decide whether to do the rollback.
1202
1205
  * @param store A reference to the Store that is completing a transaction.
1206
+ * @returns Whether to rollback the transaction.
1203
1207
  * @category Callback
1204
1208
  * @since v1.0.0
1205
1209
  */
@@ -288,6 +288,7 @@ export type UndoOrRedoInformation = [boolean, Callback, Id | undefined, string];
288
288
  * useSetTableCallback hook or useSetRowCallback hook - so that the Id arguments
289
289
  * of the object to set can also be dependent on the event or parameter provided
290
290
  * (as well as the object itself being set).
291
+ * @returns The Id, determined from the parameter and Store.
291
292
  * @category Identity
292
293
  * @since v1.0.0
293
294
  */
@@ -392,6 +393,7 @@ export function useCreateStore(
392
393
 
393
394
  /**
394
395
  * The useCreateMergeableStore hook.
396
+ * @returns A reference to the MergeableStore.
395
397
  * @category Store hooks
396
398
  * @since v1.0.0
397
399
  */
@@ -491,6 +491,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
491
491
 
492
492
  /**
493
493
  * The useCreateMergeableStore hook.
494
+ * @returns A reference to the MergeableStore.
494
495
  * @category Store hooks
495
496
  * @since v1.0.0
496
497
  */
@@ -489,6 +489,7 @@ export type YAxisProps = {
489
489
  * The series children declare their own xCellId and yCellId bindings. The
490
490
  * optional XAxis component and YAxis component children can be used to
491
491
  * configure axis titles, bounds, ticks, and tick formatting.
492
+ * @returns A rendering of the chart frame and its series.
492
493
  * @category Store components
493
494
  * @since v8.5.0
494
495
  * @example
@@ -544,6 +545,7 @@ export function CartesianChart(
544
545
  *
545
546
  * ![XAxis component example](https://beta.tinybase.org/shots/axis-overrides-react-demo.png
546
547
  * "XAxis component example")
548
+ * @returns Nothing, since this component only configures the x axis.
547
549
  * @category Store components
548
550
  * @since v8.5.0
549
551
  */
@@ -560,6 +562,7 @@ export function XAxis(props: XAxisProps): ComponentReturnType;
560
562
  *
561
563
  * ![YAxis component example](https://beta.tinybase.org/shots/axis-overrides-react-demo.png
562
564
  * "YAxis component example")
565
+ * @returns Nothing, since this component only configures the y axis.
563
566
  * @category Store components
564
567
  * @since v8.5.0
565
568
  */
@@ -576,6 +579,7 @@ export function YAxis(props: YAxisProps): ComponentReturnType;
576
579
  *
577
580
  * ![LineSeries component example](https://beta.tinybase.org/shots/composing-charts-react-demo.png
578
581
  * "LineSeries component example")
582
+ * @returns A rendering of the line series.
579
583
  * @category Store components
580
584
  * @since v8.5.0
581
585
  */
@@ -592,6 +596,7 @@ export function LineSeries(props: SeriesProps): ComponentReturnType;
592
596
  *
593
597
  * ![BarSeries component example](https://beta.tinybase.org/shots/composing-charts-react-demo.png
594
598
  * "BarSeries component example")
599
+ * @returns A rendering of the bar series.
595
600
  * @category Store components
596
601
  * @since v8.5.0
597
602
  */
@@ -609,6 +614,7 @@ export function BarSeries(props: SeriesProps): ComponentReturnType;
609
614
  *
610
615
  * ![LineChart component example](https://beta.tinybase.org/shots/basic-chart-react-demo.png "LineChart
611
616
  * component example")
617
+ * @returns A rendering of the line chart.
612
618
  * @category Store components
613
619
  * @since v8.5.0
614
620
  * @example
@@ -662,6 +668,7 @@ export function LineChart(
662
668
  *
663
669
  * ![BarChart component example](https://beta.tinybase.org/shots/sorting-and-types-react-demo.png
664
670
  * "BarChart component example")
671
+ * @returns A rendering of the bar chart.
665
672
  * @category Store components
666
673
  * @since v8.5.0
667
674
  * @example
@@ -550,6 +550,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
550
550
  * The series children declare their own xCellId and yCellId bindings. The
551
551
  * optional XAxis component and YAxis component children can be used to
552
552
  * configure axis titles, bounds, ticks, and tick formatting.
553
+ * @returns A rendering of the chart frame and its series.
553
554
  * @category Store components
554
555
  * @since v8.5.0
555
556
  * @example
@@ -611,6 +612,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
611
612
  *
612
613
  * ![XAxis component example](https://beta.tinybase.org/shots/axis-overrides-react-demo.png
613
614
  * "XAxis component example")
615
+ * @returns Nothing, since this component only configures the x axis.
614
616
  * @category Store components
615
617
  * @since v8.5.0
616
618
  */
@@ -627,6 +629,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
627
629
  *
628
630
  * ![YAxis component example](https://beta.tinybase.org/shots/axis-overrides-react-demo.png
629
631
  * "YAxis component example")
632
+ * @returns Nothing, since this component only configures the y axis.
630
633
  * @category Store components
631
634
  * @since v8.5.0
632
635
  */
@@ -643,6 +646,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
643
646
  *
644
647
  * ![LineSeries component example](https://beta.tinybase.org/shots/composing-charts-react-demo.png
645
648
  * "LineSeries component example")
649
+ * @returns A rendering of the line series.
646
650
  * @category Store components
647
651
  * @since v8.5.0
648
652
  */
@@ -659,6 +663,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
659
663
  *
660
664
  * ![BarSeries component example](https://beta.tinybase.org/shots/composing-charts-react-demo.png
661
665
  * "BarSeries component example")
666
+ * @returns A rendering of the bar series.
662
667
  * @category Store components
663
668
  * @since v8.5.0
664
669
  */
@@ -686,6 +691,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
686
691
  *
687
692
  * ![LineChart component example](https://beta.tinybase.org/shots/basic-chart-react-demo.png "LineChart
688
693
  * component example")
694
+ * @returns A rendering of the line chart.
689
695
  * @category Store components
690
696
  * @since v8.5.0
691
697
  * @example
@@ -752,6 +758,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
752
758
  *
753
759
  * ![BarChart component example](https://beta.tinybase.org/shots/sorting-and-types-react-demo.png
754
760
  * "BarChart component example")
761
+ * @returns A rendering of the bar chart.
755
762
  * @category Store components
756
763
  * @since v8.5.0
757
764
  * @example
@@ -315,6 +315,7 @@ export type UndoOrRedoInformation = [
315
315
  * useSetTableCallback primitive or useSetRowCallback primitive - so that the Id
316
316
  * arguments of the object to set can also be dependent on the event or
317
317
  * parameter provided (as well as the object itself being set).
318
+ * @returns The Id, determined from the parameter and Store.
318
319
  * @category Identity
319
320
  * @since v8.3.0
320
321
  */
@@ -357,6 +358,7 @@ export function useCreateStore(create: () => Store): Accessor<Store>;
357
358
 
358
359
  /**
359
360
  * The useCreateMergeableStore primitive.
361
+ * @returns A reference to the MergeableStore.
360
362
  * @category Store primitives
361
363
  * @since v8.3.0
362
364
  */
@@ -449,6 +449,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
449
449
 
450
450
  /**
451
451
  * The useCreateMergeableStore primitive.
452
+ * @returns A reference to the MergeableStore.
452
453
  * @category Store primitives
453
454
  * @since v8.3.0
454
455
  */
@@ -1335,6 +1335,7 @@ export type CurrentCheckpointViewProps = {
1335
1335
  * defaults and named instances remain visible unless a nearer Provider replaces
1336
1336
  * them.
1337
1337
  * @param props The props for this component.
1338
+ * @returns A rendering of the child components.
1338
1339
  * @example
1339
1340
  * This example creates a Provider context with a default Store.
1340
1341
  *
@@ -1344,6 +1345,7 @@ export type CurrentCheckpointViewProps = {
1344
1345
  * // <App />
1345
1346
  * // </Provider>
1346
1347
  * ```
1348
+ * @function
1347
1349
  * @category Component
1348
1350
  * @since v8.1.0
1349
1351
  */
@@ -1391,6 +1393,7 @@ export const Provider: Component<ProviderProps>;
1391
1393
  * console.log(app.textContent);
1392
1394
  * // -> ''
1393
1395
  * ```
1396
+ * @function
1394
1397
  * @category Component
1395
1398
  * @since v8.1.0
1396
1399
  */
@@ -1435,6 +1438,7 @@ export const BackwardCheckpointsView: Component<BackwardCheckpointsViewProps>;
1435
1438
  * console.log(app.textContent);
1436
1439
  * // -> 'dog'
1437
1440
  * ```
1441
+ * @function
1438
1442
  * @category Component
1439
1443
  * @since v8.1.0
1440
1444
  */
@@ -1480,6 +1484,7 @@ export const CellView: Component<CellViewProps>;
1480
1484
  * console.log(app.textContent);
1481
1485
  * // -> ''
1482
1486
  * ```
1487
+ * @function
1483
1488
  * @category Component
1484
1489
  * @since v8.1.0
1485
1490
  */
@@ -1527,6 +1532,7 @@ export const CheckpointView: Component<CheckpointViewProps>;
1527
1532
  * console.log(app.textContent);
1528
1533
  * // -> '0'
1529
1534
  * ```
1535
+ * @function
1530
1536
  * @category Component
1531
1537
  * @since v8.1.0
1532
1538
  */
@@ -1574,6 +1580,7 @@ export const CurrentCheckpointView: Component<CurrentCheckpointViewProps>;
1574
1580
  * console.log(app.textContent);
1575
1581
  * // -> ''
1576
1582
  * ```
1583
+ * @function
1577
1584
  * @category Component
1578
1585
  * @since v8.1.0
1579
1586
  */
@@ -1625,6 +1632,7 @@ export const ForwardCheckpointsView: Component<ForwardCheckpointsViewProps>;
1625
1632
  * console.log(app.textContent);
1626
1633
  * // -> 'dog cat'
1627
1634
  * ```
1635
+ * @function
1628
1636
  * @category Component
1629
1637
  * @since v8.1.0
1630
1638
  */
@@ -1683,6 +1691,7 @@ export const IndexView: Component<IndexViewProps>;
1683
1691
  * console.log(app.textContent);
1684
1692
  * // -> 'fido felix'
1685
1693
  * ```
1694
+ * @function
1686
1695
  * @category Component
1687
1696
  * @since v8.1.0
1688
1697
  */
@@ -1735,6 +1744,7 @@ export const LinkedRowsView: Component<LinkedRowsViewProps>;
1735
1744
  * console.log(app.textContent);
1736
1745
  * // -> 'fido'
1737
1746
  * ```
1747
+ * @function
1738
1748
  * @category Component
1739
1749
  * @since v8.1.0
1740
1750
  */
@@ -1784,6 +1794,7 @@ export const LocalRowsView: Component<LocalRowsViewProps>;
1784
1794
  * console.log(app.textContent);
1785
1795
  * // -> '2'
1786
1796
  * ```
1797
+ * @function
1787
1798
  * @category Component
1788
1799
  * @since v8.1.0
1789
1800
  */
@@ -1836,6 +1847,7 @@ export const MetricView: Component<MetricViewProps>;
1836
1847
  * console.log(app.textContent);
1837
1848
  * // -> 'dog'
1838
1849
  * ```
1850
+ * @function
1839
1851
  * @category Component
1840
1852
  * @since v8.1.0
1841
1853
  */
@@ -1885,6 +1897,7 @@ export const RemoteRowView: Component<RemoteRowViewProps>;
1885
1897
  * console.log(app.textContent);
1886
1898
  * // -> 'brown'
1887
1899
  * ```
1900
+ * @function
1888
1901
  * @category Component
1889
1902
  * @since v8.1.0
1890
1903
  */
@@ -1936,6 +1949,7 @@ export const ResultCellView: Component<ResultCellViewProps>;
1936
1949
  * console.log(app.textContent);
1937
1950
  * // -> 'color'
1938
1951
  * ```
1952
+ * @function
1939
1953
  * @category Component
1940
1954
  * @since v8.1.0
1941
1955
  */
@@ -1993,6 +2007,7 @@ export const ResultRowView: Component<ResultRowViewProps>;
1993
2007
  * console.log(app.textContent);
1994
2008
  * // -> 'felix fido'
1995
2009
  * ```
2010
+ * @function
1996
2011
  * @category Component
1997
2012
  * @since v8.1.0
1998
2013
  */
@@ -2045,6 +2060,7 @@ export const ResultSortedTableView: Component<ResultSortedTableViewProps>;
2045
2060
  * console.log(app.textContent);
2046
2061
  * // -> 'fido felix'
2047
2062
  * ```
2063
+ * @function
2048
2064
  * @category Component
2049
2065
  * @since v8.1.0
2050
2066
  */
@@ -2089,6 +2105,7 @@ export const ResultTableView: Component<ResultTableViewProps>;
2089
2105
  * console.log(app.textContent);
2090
2106
  * // -> 'dog'
2091
2107
  * ```
2108
+ * @function
2092
2109
  * @category Component
2093
2110
  * @since v8.1.0
2094
2111
  */
@@ -2140,6 +2157,7 @@ export const RowView: Component<RowViewProps>;
2140
2157
  * console.log(app.textContent);
2141
2158
  * // -> 'fido'
2142
2159
  * ```
2160
+ * @function
2143
2161
  * @category Component
2144
2162
  * @since v8.1.0
2145
2163
  */
@@ -2187,6 +2205,7 @@ export const SliceView: Component<SliceViewProps>;
2187
2205
  * console.log(app.textContent);
2188
2206
  * // -> 'fido felix'
2189
2207
  * ```
2208
+ * @function
2190
2209
  * @category Component
2191
2210
  * @since v8.1.0
2192
2211
  */
@@ -2233,6 +2252,7 @@ export const SortedTableView: Component<SortedTableViewProps>;
2233
2252
  * console.log(app.textContent);
2234
2253
  * // -> 'fido felix'
2235
2254
  * ```
2255
+ * @function
2236
2256
  * @category Component
2237
2257
  * @since v8.1.0
2238
2258
  */
@@ -2280,6 +2300,7 @@ export const TableView: Component<TableViewProps>;
2280
2300
  * console.log(app.textContent);
2281
2301
  * // -> 'pets species'
2282
2302
  * ```
2303
+ * @function
2283
2304
  * @category Component
2284
2305
  * @since v8.1.0
2285
2306
  */
@@ -2324,6 +2345,7 @@ export const TablesView: Component<TablesViewProps>;
2324
2345
  * console.log(app.textContent);
2325
2346
  * // -> 'true'
2326
2347
  * ```
2348
+ * @function
2327
2349
  * @category Component
2328
2350
  * @since v8.1.0
2329
2351
  */
@@ -2370,6 +2392,7 @@ export const ValueView: Component<ValueViewProps>;
2370
2392
  * console.log(app.textContent);
2371
2393
  * // -> 'open employees'
2372
2394
  * ```
2395
+ * @function
2373
2396
  * @category Component
2374
2397
  * @since v8.1.0
2375
2398
  */
@@ -1420,6 +1420,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1420
1420
  * defaults and named instances remain visible unless a nearer Provider replaces
1421
1421
  * them.
1422
1422
  * @param props The props for this component.
1423
+ * @returns A rendering of the child components.
1423
1424
  * @example
1424
1425
  * This example creates a Provider context with a default Store.
1425
1426
  *
@@ -1429,6 +1430,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1429
1430
  * // <App />
1430
1431
  * // </Provider>
1431
1432
  * ```
1433
+ * @function
1432
1434
  * @category Component
1433
1435
  * @since v8.1.0
1434
1436
  */
@@ -1479,6 +1481,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1479
1481
  * console.log(app.textContent);
1480
1482
  * // -> 'dog'
1481
1483
  * ```
1484
+ * @function
1482
1485
  * @category Component
1483
1486
  * @since v8.1.0
1484
1487
  */
@@ -1529,6 +1532,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1529
1532
  * console.log(app.textContent);
1530
1533
  * // -> 'true'
1531
1534
  * ```
1535
+ * @function
1532
1536
  * @category Component
1533
1537
  * @since v8.1.0
1534
1538
  */
@@ -1579,6 +1583,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1579
1583
  * console.log(app.textContent);
1580
1584
  * // -> 'dog'
1581
1585
  * ```
1586
+ * @function
1582
1587
  * @category Component
1583
1588
  * @since v8.1.0
1584
1589
  */
@@ -1631,6 +1636,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1631
1636
  * console.log(app.textContent);
1632
1637
  * // -> 'fido felix'
1633
1638
  * ```
1639
+ * @function
1634
1640
  * @category Component
1635
1641
  * @since v8.1.0
1636
1642
  */
@@ -1684,6 +1690,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1684
1690
  * console.log(app.textContent);
1685
1691
  * // -> 'fido felix'
1686
1692
  * ```
1693
+ * @function
1687
1694
  * @category Component
1688
1695
  * @since v8.1.0
1689
1696
  */
@@ -1737,6 +1744,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1737
1744
  * console.log(app.textContent);
1738
1745
  * // -> 'pets species'
1739
1746
  * ```
1747
+ * @function
1740
1748
  * @category Component
1741
1749
  * @since v8.1.0
1742
1750
  */
@@ -1789,6 +1797,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1789
1797
  * console.log(app.textContent);
1790
1798
  * // -> 'open employees'
1791
1799
  * ```
1800
+ * @function
1792
1801
  * @category Component
1793
1802
  * @since v8.1.0
1794
1803
  */
@@ -1844,6 +1853,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1844
1853
  * console.log(app.textContent);
1845
1854
  * // -> '2'
1846
1855
  * ```
1856
+ * @function
1847
1857
  * @category Component
1848
1858
  * @since v8.1.0
1849
1859
  */
@@ -1901,6 +1911,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1901
1911
  * console.log(app.textContent);
1902
1912
  * // -> 'dog cat'
1903
1913
  * ```
1914
+ * @function
1904
1915
  * @category Component
1905
1916
  * @since v8.1.0
1906
1917
  */
@@ -1958,6 +1969,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1958
1969
  * console.log(app.textContent);
1959
1970
  * // -> 'fido'
1960
1971
  * ```
1972
+ * @function
1961
1973
  * @category Component
1962
1974
  * @since v8.1.0
1963
1975
  */
@@ -2016,6 +2028,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
2016
2028
  * console.log(app.textContent);
2017
2029
  * // -> 'dog'
2018
2030
  * ```
2031
+ * @function
2019
2032
  * @category Component
2020
2033
  * @since v8.1.0
2021
2034
  */
@@ -2074,6 +2087,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
2074
2087
  * console.log(app.textContent);
2075
2088
  * // -> 'fido'
2076
2089
  * ```
2090
+ * @function
2077
2091
  * @category Component
2078
2092
  * @since v8.1.0
2079
2093
  */
@@ -2138,6 +2152,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
2138
2152
  * console.log(app.textContent);
2139
2153
  * // -> 'fido felix'
2140
2154
  * ```
2155
+ * @function
2141
2156
  * @category Component
2142
2157
  * @since v8.1.0
2143
2158
  */
@@ -2193,6 +2208,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
2193
2208
  * console.log(app.textContent);
2194
2209
  * // -> 'brown'
2195
2210
  * ```
2211
+ * @function
2196
2212
  * @category Component
2197
2213
  * @since v8.1.0
2198
2214
  */
@@ -2250,6 +2266,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
2250
2266
  * console.log(app.textContent);
2251
2267
  * // -> 'color'
2252
2268
  * ```
2269
+ * @function
2253
2270
  * @category Component
2254
2271
  * @since v8.1.0
2255
2272
  */
@@ -2308,6 +2325,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
2308
2325
  * console.log(app.textContent);
2309
2326
  * // -> 'fido felix'
2310
2327
  * ```
2328
+ * @function
2311
2329
  * @category Component
2312
2330
  * @since v8.1.0
2313
2331
  */
@@ -2371,6 +2389,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
2371
2389
  * console.log(app.textContent);
2372
2390
  * // -> 'felix fido'
2373
2391
  * ```
2392
+ * @function
2374
2393
  * @category Component
2375
2394
  * @since v8.1.0
2376
2395
  */
@@ -2424,6 +2443,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
2424
2443
  * console.log(app.textContent);
2425
2444
  * // -> ''
2426
2445
  * ```
2446
+ * @function
2427
2447
  * @category Component
2428
2448
  * @since v8.1.0
2429
2449
  */
@@ -2477,6 +2497,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
2477
2497
  * console.log(app.textContent);
2478
2498
  * // -> ''
2479
2499
  * ```
2500
+ * @function
2480
2501
  * @category Component
2481
2502
  * @since v8.1.0
2482
2503
  */
@@ -2532,6 +2553,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
2532
2553
  * console.log(app.textContent);
2533
2554
  * // -> ''
2534
2555
  * ```
2556
+ * @function
2535
2557
  * @category Component
2536
2558
  * @since v8.1.0
2537
2559
  */
@@ -2587,6 +2609,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
2587
2609
  * console.log(app.textContent);
2588
2610
  * // -> '0'
2589
2611
  * ```
2612
+ * @function
2590
2613
  * @category Component
2591
2614
  * @since v8.1.0
2592
2615
  */