tinybase 4.0.0-beta.4 → 4.0.0-beta.5.1

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 (269) hide show
  1. package/lib/cjs/persisters/persister-automerge.cjs +1 -0
  2. package/lib/cjs/persisters/persister-automerge.cjs.gz +0 -0
  3. package/lib/cjs/persisters/persister-browser.cjs +1 -0
  4. package/lib/cjs/persisters/persister-browser.cjs.gz +0 -0
  5. package/lib/cjs/persisters/persister-cr-sqlite-wasm.cjs +1 -0
  6. package/lib/cjs/persisters/persister-cr-sqlite-wasm.cjs.gz +0 -0
  7. package/lib/cjs/persisters/persister-file.cjs +1 -0
  8. package/lib/cjs/persisters/persister-file.cjs.gz +0 -0
  9. package/lib/cjs/persisters/persister-remote.cjs +1 -0
  10. package/lib/cjs/persisters/persister-remote.cjs.gz +0 -0
  11. package/lib/cjs/persisters/persister-sqlite-wasm.cjs +1 -0
  12. package/lib/cjs/persisters/persister-sqlite-wasm.cjs.gz +0 -0
  13. package/lib/cjs/persisters/persister-sqlite3.cjs +1 -0
  14. package/lib/cjs/persisters/persister-sqlite3.cjs.gz +0 -0
  15. package/lib/cjs/persisters/persister-yjs.cjs +1 -0
  16. package/lib/cjs/persisters/persister-yjs.cjs.gz +0 -0
  17. package/lib/cjs/persisters.cjs +1 -1
  18. package/lib/cjs/persisters.cjs.gz +0 -0
  19. package/lib/cjs/store.cjs +1 -1
  20. package/lib/cjs/store.cjs.gz +0 -0
  21. package/lib/cjs/tinybase.cjs +1 -1
  22. package/lib/cjs/tinybase.cjs.gz +0 -0
  23. package/lib/cjs/tools.cjs +1 -1
  24. package/lib/cjs/tools.cjs.gz +0 -0
  25. package/lib/cjs/ui-react.cjs +1 -1
  26. package/lib/cjs/ui-react.cjs.gz +0 -0
  27. package/lib/cjs-es6/persisters/persister-automerge.cjs +1 -0
  28. package/lib/cjs-es6/persisters/persister-automerge.cjs.gz +0 -0
  29. package/lib/cjs-es6/persisters/persister-browser.cjs +1 -0
  30. package/lib/cjs-es6/persisters/persister-browser.cjs.gz +0 -0
  31. package/lib/cjs-es6/persisters/persister-cr-sqlite-wasm.cjs +1 -0
  32. package/lib/cjs-es6/persisters/persister-cr-sqlite-wasm.cjs.gz +0 -0
  33. package/lib/cjs-es6/persisters/persister-file.cjs +1 -0
  34. package/lib/cjs-es6/persisters/persister-file.cjs.gz +0 -0
  35. package/lib/cjs-es6/persisters/persister-remote.cjs +1 -0
  36. package/lib/cjs-es6/persisters/persister-remote.cjs.gz +0 -0
  37. package/lib/cjs-es6/persisters/persister-sqlite-wasm.cjs +1 -0
  38. package/lib/cjs-es6/persisters/persister-sqlite-wasm.cjs.gz +0 -0
  39. package/lib/cjs-es6/persisters/persister-sqlite3.cjs +1 -0
  40. package/lib/cjs-es6/persisters/persister-sqlite3.cjs.gz +0 -0
  41. package/lib/cjs-es6/persisters/persister-yjs.cjs +1 -0
  42. package/lib/cjs-es6/persisters/persister-yjs.cjs.gz +0 -0
  43. package/lib/cjs-es6/persisters.cjs +1 -1
  44. package/lib/cjs-es6/persisters.cjs.gz +0 -0
  45. package/lib/cjs-es6/store.cjs +1 -1
  46. package/lib/cjs-es6/store.cjs.gz +0 -0
  47. package/lib/cjs-es6/tinybase.cjs +1 -1
  48. package/lib/cjs-es6/tinybase.cjs.gz +0 -0
  49. package/lib/cjs-es6/tools.cjs +1 -1
  50. package/lib/cjs-es6/tools.cjs.gz +0 -0
  51. package/lib/cjs-es6/ui-react.cjs +1 -1
  52. package/lib/cjs-es6/ui-react.cjs.gz +0 -0
  53. package/lib/debug/{persister-automerge.js → persisters/persister-automerge.js} +58 -31
  54. package/lib/debug/{persister-browser.js → persisters/persister-browser.js} +49 -20
  55. package/lib/debug/persisters/persister-cr-sqlite-wasm.js +665 -0
  56. package/lib/debug/{persister-file.js → persisters/persister-file.js} +51 -25
  57. package/lib/debug/{persister-remote.js → persisters/persister-remote.js} +48 -19
  58. package/lib/debug/persisters/persister-sqlite-wasm.js +673 -0
  59. package/lib/debug/persisters/persister-sqlite3.js +676 -0
  60. package/lib/debug/{persister-yjs.js → persisters/persister-yjs.js} +49 -20
  61. package/lib/debug/persisters.js +47 -18
  62. package/lib/debug/store.js +79 -29
  63. package/lib/debug/tinybase.js +123 -46
  64. package/lib/debug/tools.js +121 -27
  65. package/lib/debug/ui-react.js +24 -0
  66. package/lib/es6/persisters/persister-automerge.js +1 -0
  67. package/lib/es6/persisters/persister-automerge.js.gz +0 -0
  68. package/lib/es6/persisters/persister-browser.js +1 -0
  69. package/lib/es6/persisters/persister-browser.js.gz +0 -0
  70. package/lib/es6/persisters/persister-cr-sqlite-wasm.js +1 -0
  71. package/lib/es6/persisters/persister-cr-sqlite-wasm.js.gz +0 -0
  72. package/lib/es6/persisters/persister-file.js +1 -0
  73. package/lib/es6/persisters/persister-file.js.gz +0 -0
  74. package/lib/es6/persisters/persister-remote.js +1 -0
  75. package/lib/es6/persisters/persister-remote.js.gz +0 -0
  76. package/lib/es6/persisters/persister-sqlite-wasm.js +1 -0
  77. package/lib/es6/persisters/persister-sqlite-wasm.js.gz +0 -0
  78. package/lib/es6/persisters/persister-sqlite3.js +1 -0
  79. package/lib/es6/persisters/persister-sqlite3.js.gz +0 -0
  80. package/lib/es6/persisters/persister-yjs.js +1 -0
  81. package/lib/es6/persisters/persister-yjs.js.gz +0 -0
  82. package/lib/es6/persisters.js +1 -1
  83. package/lib/es6/persisters.js.gz +0 -0
  84. package/lib/es6/store.js +1 -1
  85. package/lib/es6/store.js.gz +0 -0
  86. package/lib/es6/tinybase.js +1 -1
  87. package/lib/es6/tinybase.js.gz +0 -0
  88. package/lib/es6/tools.js +1 -1
  89. package/lib/es6/tools.js.gz +0 -0
  90. package/lib/es6/ui-react.js +1 -1
  91. package/lib/es6/ui-react.js.gz +0 -0
  92. package/lib/persisters/persister-automerge.js +1 -0
  93. package/lib/persisters/persister-automerge.js.gz +0 -0
  94. package/lib/persisters/persister-browser.js +1 -0
  95. package/lib/persisters/persister-browser.js.gz +0 -0
  96. package/lib/persisters/persister-cr-sqlite-wasm.js +1 -0
  97. package/lib/persisters/persister-cr-sqlite-wasm.js.gz +0 -0
  98. package/lib/persisters/persister-file.js +1 -0
  99. package/lib/persisters/persister-file.js.gz +0 -0
  100. package/lib/persisters/persister-remote.js +1 -0
  101. package/lib/persisters/persister-remote.js.gz +0 -0
  102. package/lib/persisters/persister-sqlite-wasm.js +1 -0
  103. package/lib/persisters/persister-sqlite-wasm.js.gz +0 -0
  104. package/lib/persisters/persister-sqlite3.js +1 -0
  105. package/lib/persisters/persister-sqlite3.js.gz +0 -0
  106. package/lib/persisters/persister-yjs.js +1 -0
  107. package/lib/persisters/persister-yjs.js.gz +0 -0
  108. package/lib/persisters.js +1 -1
  109. package/lib/persisters.js.gz +0 -0
  110. package/lib/store.js +1 -1
  111. package/lib/store.js.gz +0 -0
  112. package/lib/tinybase.js +1 -1
  113. package/lib/tinybase.js.gz +0 -0
  114. package/lib/tools.js +1 -1
  115. package/lib/tools.js.gz +0 -0
  116. package/lib/types/checkpoints.d.ts +0 -27
  117. package/lib/types/common.d.ts +0 -9
  118. package/lib/types/indexes.d.ts +0 -26
  119. package/lib/types/metrics.d.ts +0 -23
  120. package/lib/types/{persister-automerge.d.ts → persisters/persister-automerge.d.ts} +4 -6
  121. package/lib/types/{persister-browser.d.ts → persisters/persister-browser.d.ts} +2 -5
  122. package/lib/types/persisters/persister-cr-sqlite-wasm.d.ts +95 -0
  123. package/lib/types/{persister-file.d.ts → persisters/persister-file.d.ts} +3 -5
  124. package/lib/types/{persister-remote.d.ts → persisters/persister-remote.d.ts} +2 -4
  125. package/lib/types/persisters/persister-sqlite-wasm.d.ts +102 -0
  126. package/lib/types/persisters/persister-sqlite3.d.ts +109 -0
  127. package/lib/types/{persister-yjs.d.ts → persisters/persister-yjs.d.ts} +4 -6
  128. package/lib/types/persisters.d.ts +517 -27
  129. package/lib/types/queries.d.ts +52 -127
  130. package/lib/types/relationships.d.ts +0 -26
  131. package/lib/types/store.d.ts +347 -196
  132. package/lib/types/tinybase.d.ts +0 -1
  133. package/lib/types/tools.d.ts +15 -28
  134. package/lib/types/ui-react.d.ts +196 -181
  135. package/lib/types/with-schemas/checkpoints.d.ts +5 -32
  136. package/lib/types/with-schemas/common.d.ts +0 -9
  137. package/lib/types/with-schemas/indexes.d.ts +9 -35
  138. package/lib/types/with-schemas/metrics.d.ts +9 -32
  139. package/lib/types/with-schemas/{persister-automerge.d.ts → persisters/persister-automerge.d.ts} +4 -6
  140. package/lib/types/with-schemas/{persister-browser.d.ts → persisters/persister-browser.d.ts} +2 -5
  141. package/lib/types/with-schemas/persisters/persister-cr-sqlite-wasm.d.ts +105 -0
  142. package/lib/types/with-schemas/{persister-file.d.ts → persisters/persister-file.d.ts} +3 -5
  143. package/lib/types/with-schemas/{persister-remote.d.ts → persisters/persister-remote.d.ts} +2 -4
  144. package/lib/types/with-schemas/persisters/persister-sqlite-wasm.d.ts +113 -0
  145. package/lib/types/with-schemas/persisters/persister-sqlite3.d.ts +119 -0
  146. package/lib/types/with-schemas/{persister-yjs.d.ts → persisters/persister-yjs.d.ts} +4 -6
  147. package/lib/types/with-schemas/persisters.d.ts +534 -29
  148. package/lib/types/with-schemas/queries.d.ts +61 -224
  149. package/lib/types/with-schemas/relationships.d.ts +9 -35
  150. package/lib/types/with-schemas/store.d.ts +488 -239
  151. package/lib/types/with-schemas/tinybase.d.ts +0 -1
  152. package/lib/types/with-schemas/tools.d.ts +19 -32
  153. package/lib/types/with-schemas/ui-react.d.ts +221 -186
  154. package/lib/ui-react.js +1 -1
  155. package/lib/ui-react.js.gz +0 -0
  156. package/lib/umd/persisters/persister-automerge.js +1 -0
  157. package/lib/umd/persisters/persister-automerge.js.gz +0 -0
  158. package/lib/umd/persisters/persister-browser.js +1 -0
  159. package/lib/umd/persisters/persister-browser.js.gz +0 -0
  160. package/lib/umd/persisters/persister-cr-sqlite-wasm.js +1 -0
  161. package/lib/umd/persisters/persister-cr-sqlite-wasm.js.gz +0 -0
  162. package/lib/umd/persisters/persister-file.js +1 -0
  163. package/lib/umd/persisters/persister-file.js.gz +0 -0
  164. package/lib/umd/persisters/persister-remote.js +1 -0
  165. package/lib/umd/persisters/persister-remote.js.gz +0 -0
  166. package/lib/umd/persisters/persister-sqlite-wasm.js +1 -0
  167. package/lib/umd/persisters/persister-sqlite-wasm.js.gz +0 -0
  168. package/lib/umd/persisters/persister-sqlite3.js +1 -0
  169. package/lib/umd/persisters/persister-sqlite3.js.gz +0 -0
  170. package/lib/umd/persisters/persister-yjs.js +1 -0
  171. package/lib/umd/persisters/persister-yjs.js.gz +0 -0
  172. package/lib/umd/persisters.js +1 -1
  173. package/lib/umd/persisters.js.gz +0 -0
  174. package/lib/umd/store.js +1 -1
  175. package/lib/umd/store.js.gz +0 -0
  176. package/lib/umd/tinybase.js +1 -1
  177. package/lib/umd/tinybase.js.gz +0 -0
  178. package/lib/umd/tools.js +1 -1
  179. package/lib/umd/tools.js.gz +0 -0
  180. package/lib/umd/ui-react.js +1 -1
  181. package/lib/umd/ui-react.js.gz +0 -0
  182. package/lib/umd-es6/persisters/persister-automerge.js +1 -0
  183. package/lib/umd-es6/persisters/persister-automerge.js.gz +0 -0
  184. package/lib/umd-es6/persisters/persister-browser.js +1 -0
  185. package/lib/umd-es6/persisters/persister-browser.js.gz +0 -0
  186. package/lib/umd-es6/persisters/persister-cr-sqlite-wasm.js +1 -0
  187. package/lib/umd-es6/persisters/persister-cr-sqlite-wasm.js.gz +0 -0
  188. package/lib/umd-es6/persisters/persister-file.js +1 -0
  189. package/lib/umd-es6/persisters/persister-file.js.gz +0 -0
  190. package/lib/umd-es6/persisters/persister-remote.js +1 -0
  191. package/lib/umd-es6/persisters/persister-remote.js.gz +0 -0
  192. package/lib/umd-es6/persisters/persister-sqlite-wasm.js +1 -0
  193. package/lib/umd-es6/persisters/persister-sqlite-wasm.js.gz +0 -0
  194. package/lib/umd-es6/persisters/persister-sqlite3.js +1 -0
  195. package/lib/umd-es6/persisters/persister-sqlite3.js.gz +0 -0
  196. package/lib/umd-es6/persisters/persister-yjs.js +1 -0
  197. package/lib/umd-es6/persisters/persister-yjs.js.gz +0 -0
  198. package/lib/umd-es6/persisters.js +1 -1
  199. package/lib/umd-es6/persisters.js.gz +0 -0
  200. package/lib/umd-es6/store.js +1 -1
  201. package/lib/umd-es6/store.js.gz +0 -0
  202. package/lib/umd-es6/tinybase.js +1 -1
  203. package/lib/umd-es6/tinybase.js.gz +0 -0
  204. package/lib/umd-es6/tools.js +1 -1
  205. package/lib/umd-es6/tools.js.gz +0 -0
  206. package/lib/umd-es6/ui-react.js +1 -1
  207. package/lib/umd-es6/ui-react.js.gz +0 -0
  208. package/package.json +39 -22
  209. package/readme.md +3 -3
  210. package/lib/cjs/persister-automerge.cjs +0 -1
  211. package/lib/cjs/persister-automerge.cjs.gz +0 -0
  212. package/lib/cjs/persister-browser.cjs +0 -1
  213. package/lib/cjs/persister-browser.cjs.gz +0 -0
  214. package/lib/cjs/persister-file.cjs +0 -1
  215. package/lib/cjs/persister-file.cjs.gz +0 -0
  216. package/lib/cjs/persister-remote.cjs +0 -1
  217. package/lib/cjs/persister-remote.cjs.gz +0 -0
  218. package/lib/cjs/persister-yjs.cjs +0 -1
  219. package/lib/cjs/persister-yjs.cjs.gz +0 -0
  220. package/lib/cjs-es6/persister-automerge.cjs +0 -1
  221. package/lib/cjs-es6/persister-automerge.cjs.gz +0 -0
  222. package/lib/cjs-es6/persister-browser.cjs +0 -1
  223. package/lib/cjs-es6/persister-browser.cjs.gz +0 -0
  224. package/lib/cjs-es6/persister-file.cjs +0 -1
  225. package/lib/cjs-es6/persister-file.cjs.gz +0 -0
  226. package/lib/cjs-es6/persister-remote.cjs +0 -1
  227. package/lib/cjs-es6/persister-remote.cjs.gz +0 -0
  228. package/lib/cjs-es6/persister-yjs.cjs +0 -1
  229. package/lib/cjs-es6/persister-yjs.cjs.gz +0 -0
  230. package/lib/es6/persister-automerge.js +0 -1
  231. package/lib/es6/persister-automerge.js.gz +0 -0
  232. package/lib/es6/persister-browser.js +0 -1
  233. package/lib/es6/persister-browser.js.gz +0 -0
  234. package/lib/es6/persister-file.js +0 -1
  235. package/lib/es6/persister-file.js.gz +0 -0
  236. package/lib/es6/persister-remote.js +0 -1
  237. package/lib/es6/persister-remote.js.gz +0 -0
  238. package/lib/es6/persister-yjs.js +0 -1
  239. package/lib/es6/persister-yjs.js.gz +0 -0
  240. package/lib/persister-automerge.js +0 -1
  241. package/lib/persister-automerge.js.gz +0 -0
  242. package/lib/persister-browser.js +0 -1
  243. package/lib/persister-browser.js.gz +0 -0
  244. package/lib/persister-file.js +0 -1
  245. package/lib/persister-file.js.gz +0 -0
  246. package/lib/persister-remote.js +0 -1
  247. package/lib/persister-remote.js.gz +0 -0
  248. package/lib/persister-yjs.js +0 -1
  249. package/lib/persister-yjs.js.gz +0 -0
  250. package/lib/umd/persister-automerge.js +0 -1
  251. package/lib/umd/persister-automerge.js.gz +0 -0
  252. package/lib/umd/persister-browser.js +0 -1
  253. package/lib/umd/persister-browser.js.gz +0 -0
  254. package/lib/umd/persister-file.js +0 -1
  255. package/lib/umd/persister-file.js.gz +0 -0
  256. package/lib/umd/persister-remote.js +0 -1
  257. package/lib/umd/persister-remote.js.gz +0 -0
  258. package/lib/umd/persister-yjs.js +0 -1
  259. package/lib/umd/persister-yjs.js.gz +0 -0
  260. package/lib/umd-es6/persister-automerge.js +0 -1
  261. package/lib/umd-es6/persister-automerge.js.gz +0 -0
  262. package/lib/umd-es6/persister-browser.js +0 -1
  263. package/lib/umd-es6/persister-browser.js.gz +0 -0
  264. package/lib/umd-es6/persister-file.js +0 -1
  265. package/lib/umd-es6/persister-file.js.gz +0 -0
  266. package/lib/umd-es6/persister-remote.js +0 -1
  267. package/lib/umd-es6/persister-remote.js.gz +0 -0
  268. package/lib/umd-es6/persister-yjs.js +0 -1
  269. package/lib/umd-es6/persister-yjs.js.gz +0 -0
@@ -9,7 +9,6 @@
9
9
  *
10
10
  * The components in this module provide a further abstraction over those hooks
11
11
  * to ease the composition of user interfaces that use TinyBase.
12
- *
13
12
  * @see Building UIs guides
14
13
  * @see Building UIs With Metrics guide
15
14
  * @see Building UIs With Indexes guide
@@ -79,6 +78,7 @@ import {
79
78
  SortedRowIdsListener,
80
79
  Store,
81
80
  Table,
81
+ TableCellIdsListener,
82
82
  TableIdsListener,
83
83
  TableListener,
84
84
  Tables,
@@ -136,7 +136,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
136
136
  *
137
137
  * Many hooks and components in this ui-react module take this type as a
138
138
  * parameter or a prop, allowing you to pass in either the Store or its Id.
139
- *
140
139
  * @category Identity
141
140
  */
142
141
  StoreOrStoreId: StoreOrStoreId<Schemas>;
@@ -161,7 +160,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
161
160
  *
162
161
  * Many hooks and components in this ui-react module take this type as a
163
162
  * parameter or a prop, allowing you to pass in either the Store or its Id.
164
- *
165
163
  * @category Identity
166
164
  */
167
165
  MetricsOrMetricsId: MetricsOrMetricsId<Schemas>;
@@ -186,7 +184,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
186
184
  *
187
185
  * Many hooks and components in this ui-react module take this type as a
188
186
  * parameter or a prop, allowing you to pass in either the Store or its Id.
189
- *
190
187
  * @category Identity
191
188
  */
192
189
  IndexesOrIndexesId: IndexesOrIndexesId<Schemas>;
@@ -211,7 +208,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
211
208
  *
212
209
  * Many hooks and components in this ui-react module take this type as a
213
210
  * parameter or a prop, allowing you to pass in either the Store or its Id.
214
- *
215
211
  * @category Identity
216
212
  */
217
213
  RelationshipsOrRelationshipsId: RelationshipsOrRelationshipsId<Schemas>;
@@ -236,9 +232,8 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
236
232
  *
237
233
  * Many hooks and components in this ui-react module take this type as a
238
234
  * parameter or a prop, allowing you to pass in either the Store or its Id.
239
- *
240
235
  * @category Identity
241
- * @since v2.0
236
+ * @since v2.0.0
242
237
  */
243
238
  QueriesOrQueriesId: QueriesOrQueriesId<Schemas>;
244
239
 
@@ -262,7 +257,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
262
257
  *
263
258
  * Many hooks and components in this ui-react module take this type as a
264
259
  * parameter or a prop, allowing you to pass in either the Store or its Id.
265
- *
266
260
  * @category Identity
267
261
  */
268
262
  CheckpointsOrCheckpointsId: CheckpointsOrCheckpointsId<Schemas>;
@@ -275,7 +269,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
275
269
  * This type is useful if you are building undo or redo buttons. See the
276
270
  * useUndoInformation hook and the useRedoInformation hook for more details and
277
271
  * examples.
278
- *
279
272
  * @category Checkpoints
280
273
  */
281
274
  UndoOrRedoInformation: UndoOrRedoInformation;
@@ -307,7 +300,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
307
300
  * should cause the Store to be recreated, you can provide them in an array in
308
301
  * the optional second parameter, just as you would for any React hook with
309
302
  * dependencies.
310
- *
311
303
  * @param create A function for performing the creation of the Store, plus any
312
304
  * additional steps such as adding data or listeners, and returning it.
313
305
  * @param createDeps An optional array of dependencies for the `create`
@@ -393,7 +385,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
393
385
  * The useStore hook lets you either get a reference to the default Store (when
394
386
  * called without a parameter), or one of the Store objects that are named by Id
395
387
  * (when called with an Id parameter).
396
- *
397
388
  * @param id An optional Id for accessing a Store that was named with an Id in
398
389
  * the Provider.
399
390
  * @returns A reference to the Store (or `undefined` if not within a Provider
@@ -462,7 +453,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
462
453
  * When first rendered, this hook will create a listener so that changes to the
463
454
  * Tables will cause a re-render. When the component containing this hook is
464
455
  * unmounted, the listener will be automatically removed.
465
- *
466
456
  * @param storeOrStoreId The Store to be accessed: omit for the default context
467
457
  * Store, provide an Id for a named context Store, or provide an explicit
468
458
  * reference.
@@ -545,7 +535,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
545
535
  * When first rendered, this hook will create a listener so that changes to the
546
536
  * Table Ids will cause a re-render. When the component containing this hook is
547
537
  * unmounted, the listener will be automatically removed.
548
- *
549
538
  * @param storeOrStoreId The Store to be accessed: omit for the default context
550
539
  * Store, provide an Id for a named context Store, or provide an explicit
551
540
  * reference.
@@ -630,7 +619,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
630
619
  * When first rendered, this hook will create a listener so that changes to the
631
620
  * Table will cause a re-render. When the component containing this hook is
632
621
  * unmounted, the listener will be automatically removed.
633
- *
634
622
  * @param tableId The Id of the Table in the Store.
635
623
  * @param storeOrStoreId The Store to be accessed: omit for the default context
636
624
  * Store, provide an Id for a named context Store, or provide an explicit
@@ -699,6 +687,100 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
699
687
  storeOrStoreId?: StoreOrStoreId<Schemas>,
700
688
  ) => Table<Schemas[0], TableId>;
701
689
 
690
+ /**
691
+ * The useTableCellIds hook returns the Ids of every Cell used across the whole
692
+ * Table, and registers a listener so that any changes to that result will cause
693
+ * a re-render.
694
+ *
695
+ * This has schema-based typing. The following is a simplified representation:
696
+ *
697
+ * ```ts override
698
+ * useTableCellIds(
699
+ * tableId: Id,
700
+ * storeOrStoreId?: StoreOrStoreId,
701
+ * ): Ids;
702
+ * ```
703
+ *
704
+ * A Provider component is used to wrap part of an application in a context, and
705
+ * it can contain a default Store or a set of Store objects named by Id. The
706
+ * useTableCellIds hook lets you indicate which Store to get data for: omit the
707
+ * optional final parameter for the default context Store, provide an Id for a
708
+ * named context Store, or provide a Store explicitly by reference.
709
+ *
710
+ * When first rendered, this hook will create a listener so that changes to the
711
+ * Table Cell Ids will cause a re-render. When the component containing this
712
+ * hook is unmounted, the listener will be automatically removed.
713
+ * @param tableId The Id of the Table in the Store.
714
+ * @param storeOrStoreId The Store to be accessed: omit for the default context
715
+ * Store, provide an Id for a named context Store, or provide an explicit
716
+ * reference.
717
+ * @returns An array of the Ids of every Cell used across the whole Table.
718
+ * @example
719
+ * This example creates a Store outside the application, which is used in the
720
+ * useTableCellIds hook by reference. A change to the data in the Store
721
+ * re-renders the component.
722
+ *
723
+ * ```jsx
724
+ * const store = createStore().setCell('pets', 'fido', 'color', 'brown');
725
+ * const App = () => (
726
+ * <span>{JSON.stringify(useTableCellIds('pets', store))}</span>
727
+ * );
728
+ *
729
+ * const app = document.createElement('div');
730
+ * ReactDOMClient.createRoot(app).render(<App />); // !act
731
+ * console.log(app.innerHTML);
732
+ * // -> '<span>["color"]</span>'
733
+ *
734
+ * store.setCell('pets', 'felix', 'species', 'cat'); // !act
735
+ * console.log(app.innerHTML);
736
+ * // -> '<span>["color","species"]</span>'
737
+ * ```
738
+ * @example
739
+ * This example creates a Provider context into which a default Store is
740
+ * provided. A component within it then uses the useTableCellIds hook.
741
+ *
742
+ * ```jsx
743
+ * const App = ({store}) => (
744
+ * <Provider store={store}>
745
+ * <Pane />
746
+ * </Provider>
747
+ * );
748
+ * const Pane = () => <span>{JSON.stringify(useTableCellIds('pets'))}</span>;
749
+ *
750
+ * const store = createStore().setCell('pets', 'fido', 'color', 'brown');
751
+ * const app = document.createElement('div');
752
+ * ReactDOMClient.createRoot(app).render(<App store={store} />); // !act
753
+ * console.log(app.innerHTML);
754
+ * // -> '<span>["color"]</span>'
755
+ * ```
756
+ * @example
757
+ * This example creates a Provider context into which a Store is provided, named
758
+ * by Id. A component within it then uses the useTableCellIds hook.
759
+ *
760
+ * ```jsx
761
+ * const App = ({store}) => (
762
+ * <Provider storesById={{petStore: store}}>
763
+ * <Pane />
764
+ * </Provider>
765
+ * );
766
+ * const Pane = () => (
767
+ * <span>{JSON.stringify(useTableCellIds('pets', 'petStore'))}</span>
768
+ * );
769
+ *
770
+ * const store = createStore().setCell('pets', 'fido', 'color', 'brown');
771
+ * const app = document.createElement('div');
772
+ * ReactDOMClient.createRoot(app).render(<App store={store} />); // !act
773
+ * console.log(app.innerHTML);
774
+ * // -> '<span>["color"]</span>'
775
+ * ```
776
+ * @category Store hooks
777
+ * @since v3.3.0
778
+ */
779
+ useTableCellIds: <TableId extends TableIdFromSchema<Schemas[0]>>(
780
+ tableId: TableId,
781
+ storeOrStoreId?: StoreOrStoreId<Schemas>,
782
+ ) => CellIdFromSchema<Schemas[0], TableId>[];
783
+
702
784
  /**
703
785
  * The useRowIds hook returns the Ids of every Row in a given Table, and
704
786
  * registers a listener so that any changes to that result will cause a
@@ -719,7 +801,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
719
801
  * When first rendered, this hook will create a listener so that changes to the
720
802
  * Row Ids will cause a re-render. When the component containing this hook is
721
803
  * unmounted, the listener will be automatically removed.
722
- *
723
804
  * @param tableId The Id of the Table in the Store.
724
805
  * @param storeOrStoreId The Store to be accessed: omit for the default context
725
806
  * Store, provide an Id for a named context Store, or provide an explicit
@@ -815,7 +896,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
815
896
  * When first rendered, this hook will create a listener so that changes to the
816
897
  * sorted Row Ids will cause a re-render. When the component containing this
817
898
  * hook is unmounted, the listener will be automatically removed.
818
- *
819
899
  * @param tableId The Id of the Table in the Store.
820
900
  * @param cellId The Id of the Cell whose values are used for the sorting, or
821
901
  * `undefined` to by sort the Row Id itself.
@@ -908,7 +988,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
908
988
  * // -> '<span>["felix","fido"]</span>'
909
989
  * ```
910
990
  * @category Store hooks
911
- * @since v2.0
991
+ * @since v2.0.0
912
992
  */
913
993
  useSortedRowIds: <
914
994
  TableId extends TableIdFromSchema<Schemas[0]>,
@@ -946,7 +1026,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
946
1026
  * When first rendered, this hook will create a listener so that changes to the
947
1027
  * Row will cause a re-render. When the component containing this hook is
948
1028
  * unmounted, the listener will be automatically removed.
949
- *
950
1029
  * @param tableId The Id of the Table in the Store.
951
1030
  * @param rowId The Id of the Row in the Table.
952
1031
  * @param storeOrStoreId The Store to be accessed: omit for the default context
@@ -1043,7 +1122,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1043
1122
  * When first rendered, this hook will create a listener so that changes to the
1044
1123
  * Cell Ids will cause a re-render. When the component containing this hook is
1045
1124
  * unmounted, the listener will be automatically removed.
1046
- *
1047
1125
  * @param tableId The Id of the Table in the Store.
1048
1126
  * @param rowId The Id of the Row in the Table.
1049
1127
  * @param storeOrStoreId The Store to be accessed: omit for the default context
@@ -1112,14 +1190,11 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1112
1190
  * ```
1113
1191
  * @category Store hooks
1114
1192
  */
1115
- useCellIds: <
1116
- TableId extends TableIdFromSchema<Schemas[0]>,
1117
- Ids extends CellIdFromSchema<Schemas[0], TableId>[],
1118
- >(
1193
+ useCellIds: <TableId extends TableIdFromSchema<Schemas[0]>>(
1119
1194
  tableId: TableId,
1120
1195
  rowId: Id,
1121
1196
  storeOrStoreId?: StoreOrStoreId<Schemas>,
1122
- ) => Ids;
1197
+ ) => CellIdFromSchema<Schemas[0], TableId>[];
1123
1198
 
1124
1199
  /**
1125
1200
  * The useCell hook returns an object containing the value of a single Cell in a
@@ -1146,7 +1221,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1146
1221
  * When first rendered, this hook will create a listener so that changes to the
1147
1222
  * Cell will cause a re-render. When the component containing this hook is
1148
1223
  * unmounted, the listener will be automatically removed.
1149
- *
1150
1224
  * @param tableId The Id of the Table in the Store.
1151
1225
  * @param rowId The Id of the Row in the Table.
1152
1226
  * @param cellId The Id of the Cell in the Row.
@@ -1242,7 +1316,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1242
1316
  * When first rendered, this hook will create a listener so that changes to the
1243
1317
  * Values will cause a re-render. When the component containing this hook is
1244
1318
  * unmounted, the listener will be automatically removed.
1245
- *
1246
1319
  * @param storeOrStoreId The Store to be accessed: omit for the default context
1247
1320
  * Store, provide an Id for a named context Store, or provide an explicit
1248
1321
  * reference.
@@ -1302,7 +1375,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1302
1375
  * // -> '<span>{"open":true}</span>'
1303
1376
  * ```
1304
1377
  * @category Store hooks
1305
- * @since v3.0
1378
+ * @since v3.0.0
1306
1379
  */
1307
1380
  useValues: (storeOrStoreId?: StoreOrStoreId<Schemas>) => Values<Schemas[1]>;
1308
1381
 
@@ -1325,7 +1398,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1325
1398
  * When first rendered, this hook will create a listener so that changes to the
1326
1399
  * Value Ids will cause a re-render. When the component containing this hook is
1327
1400
  * unmounted, the listener will be automatically removed.
1328
- *
1329
1401
  * @param storeOrStoreId The Store to be accessed: omit for the default context
1330
1402
  * Store, provide an Id for a named context Store, or provide an explicit
1331
1403
  * reference.
@@ -1385,7 +1457,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1385
1457
  * // -> '<span>["open"]</span>'
1386
1458
  * ```
1387
1459
  * @category Store hooks
1388
- * @since v3.0
1460
+ * @since v3.0.0
1389
1461
  */
1390
1462
  useValueIds: (
1391
1463
  storeOrStoreId?: StoreOrStoreId<Schemas>,
@@ -1414,7 +1486,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1414
1486
  * When first rendered, this hook will create a listener so that changes to the
1415
1487
  * Value will cause a re-render. When the component containing this hook is
1416
1488
  * unmounted, the listener will be automatically removed.
1417
- *
1418
1489
  * @param valueId The Id of the Value in the Store.
1419
1490
  * @param storeOrStoreId The Store to be accessed: omit for the default context
1420
1491
  * Store, provide an Id for a named context Store, or provide an explicit
@@ -1477,7 +1548,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1477
1548
  * // -> '<span>true</span>'
1478
1549
  * ```
1479
1550
  * @category Store hooks
1480
- * @since v3.0
1551
+ * @since v3.0.0
1481
1552
  */
1482
1553
  useValue: <ValueId extends ValueIdFromSchema<Schemas[1]>>(
1483
1554
  valueId: ValueId,
@@ -1520,7 +1591,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1520
1591
  * The Store to which the callback will make the mutation (indicated by the
1521
1592
  * hook's `storeOrStoreId` parameter) is always automatically used as a hook
1522
1593
  * dependency for the callback.
1523
- *
1524
1594
  * @param getTables A function which returns the Tables object that will be used
1525
1595
  * to update the Store, based on the parameter the callback will receive (and
1526
1596
  * which is most likely a DOM event).
@@ -1619,7 +1689,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1619
1689
  * The Store to which the callback will make the mutation (indicated by the
1620
1690
  * hook's `storeOrStoreId` parameter) is always automatically used as a hook
1621
1691
  * dependency for the callback.
1622
- *
1623
1692
  * @param tableId The Id of the Table in the Store to set.
1624
1693
  * @param getTable A function which returns the Table object that will be used
1625
1694
  * to update the Store, based on the parameter the callback will receive (and
@@ -1726,7 +1795,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1726
1795
  * The Store to which the callback will make the mutation (indicated by the
1727
1796
  * hook's `storeOrStoreId` parameter) is always automatically used as a hook
1728
1797
  * dependency for the callback.
1729
- *
1730
1798
  * @param tableId The Id of the Table in the Store.
1731
1799
  * @param rowId The Id of the Row in the Table to set.
1732
1800
  * @param getRow A function which returns the Row object that will be used to
@@ -1840,7 +1908,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1840
1908
  * specify `reuseRowIds` to be `false`, then the Id will be a monotonically
1841
1909
  * increasing string representation of an increasing integer, regardless of any
1842
1910
  * you may have previously deleted.
1843
- *
1844
1911
  * @param tableId The Id of the Table in the Store.
1845
1912
  * @param getRow A function which returns the Row object that will be used to
1846
1913
  * update the Store, based on the parameter the callback will receive (and which
@@ -1858,7 +1925,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1858
1925
  * parameter defaults to an empty array.
1859
1926
  * @param reuseRowIds Whether Ids should be recycled from previously deleted Row
1860
1927
  * objects, defaulting to `true`.
1861
- *
1862
1928
  * @returns A parameterized callback for subsequent use.
1863
1929
  * @example
1864
1930
  * This example uses the useAddRowCallback hook to create an event handler which
@@ -1949,7 +2015,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1949
2015
  * The Store to which the callback will make the mutation (indicated by the
1950
2016
  * hook's `storeOrStoreId` parameter) is always automatically used as a hook
1951
2017
  * dependency for the callback.
1952
- *
1953
2018
  * @param tableId The Id of the Table in the Store.
1954
2019
  * @param rowId The Id of the Row in the Table to set.
1955
2020
  * @param getPartialRow A function which returns the partial Row object that
@@ -2061,7 +2126,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
2061
2126
  * The Store to which the callback will make the mutation (indicated by the
2062
2127
  * hook's `storeOrStoreId` parameter) is always automatically used as a hook
2063
2128
  * dependency for the callback.
2064
- *
2065
2129
  * @param tableId The Id of the Table in the Store.
2066
2130
  * @param rowId The Id of the Row in the Table.
2067
2131
  * @param cellId The Id of the Cell in the Row to set.
@@ -2212,7 +2276,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
2212
2276
  * The Store to which the callback will make the mutation (indicated by the
2213
2277
  * hook's `storeOrStoreId` parameter) is always automatically used as a hook
2214
2278
  * dependency for the callback.
2215
- *
2216
2279
  * @param getValues A function which returns the Values object that will be used
2217
2280
  * to update the Store, based on the parameter the callback will receive (and
2218
2281
  * which is most likely a DOM event).
@@ -2262,7 +2325,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
2262
2325
  * // -> '{"bubbles":true}'
2263
2326
  * ```
2264
2327
  * @category Store hooks
2265
- * @since v3.0
2328
+ * @since v3.0.0
2266
2329
  */
2267
2330
  useSetValuesCallback: <Parameter, SetValues = Values<Schemas[1], true>>(
2268
2331
  getValues: (
@@ -2312,7 +2375,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
2312
2375
  * The Store to which the callback will make the mutation (indicated by the
2313
2376
  * hook's `storeOrStoreId` parameter) is always automatically used as a hook
2314
2377
  * dependency for the callback.
2315
- *
2316
2378
  * @param getPartialValues A function which returns the partial Values object
2317
2379
  * that will be used to update the Store, based on the parameter the callback
2318
2380
  * will receive (and which is most likely a DOM event).
@@ -2363,7 +2425,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
2363
2425
  * // -> '{"open":true,"bubbles":true}'
2364
2426
  * ```
2365
2427
  * @category Store hooks
2366
- * @since v3.0
2428
+ * @since v3.0.0
2367
2429
  */
2368
2430
  useSetPartialValuesCallback: <
2369
2431
  Parameter,
@@ -2416,7 +2478,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
2416
2478
  * The Store to which the callback will make the mutation (indicated by the
2417
2479
  * hook's `storeOrStoreId` parameter) is always automatically used as a hook
2418
2480
  * dependency for the callback.
2419
- *
2420
2481
  * @param valueId The Id of the Value in the Store to set.
2421
2482
  * @param getValue A function which returns the Value object that will be used
2422
2483
  * to update the Store, based on the parameter the callback will receive (and
@@ -2468,7 +2529,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
2468
2529
  * // -> '{"open":true,"bubbles":true}'
2469
2530
  * ```
2470
2531
  * @category Store hooks
2471
- * @since v3.0
2532
+ * @since v3.0.0
2472
2533
  */
2473
2534
  useSetValueCallback: <
2474
2535
  Parameter,
@@ -2511,7 +2572,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
2511
2572
  * The Store to which the callback will make the deletion (indicated by the
2512
2573
  * hook's `storeOrStoreId` parameter) is always automatically used as a hook
2513
2574
  * dependency for the callback.
2514
- *
2515
2575
  * @param storeOrStoreId The Store to be updated: omit for the default context
2516
2576
  * Store, provide an Id for a named context Store, or provide an explicit
2517
2577
  * reference.
@@ -2585,7 +2645,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
2585
2645
  * The Store to which the callback will make the deletion (indicated by the
2586
2646
  * hook's `storeOrStoreId` parameter) is always automatically used as a hook
2587
2647
  * dependency for the callback.
2588
- *
2589
2648
  * @param tableId The Id of the Table in the Store.
2590
2649
  * @param storeOrStoreId The Store to be updated: omit for the default context
2591
2650
  * Store, provide an Id for a named context Store, or provide an explicit
@@ -2662,7 +2721,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
2662
2721
  * The Store to which the callback will make the deletion (indicated by the
2663
2722
  * hook's `storeOrStoreId` parameter) is always automatically used as a hook
2664
2723
  * dependency for the callback.
2665
- *
2666
2724
  * @param tableId The Id of the Table in the Store.
2667
2725
  * @param rowId The Id of the Row in the Table.
2668
2726
  * @param storeOrStoreId The Store to be updated: omit for the default context
@@ -2743,7 +2801,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
2743
2801
  * The Store to which the callback will make the deletion (indicated by the
2744
2802
  * hook's `storeOrStoreId` parameter) is always automatically used as a hook
2745
2803
  * dependency for the callback.
2746
- *
2747
2804
  * @param tableId The Id of the Table in the Store.
2748
2805
  * @param rowId The Id of the Row in the Table.
2749
2806
  * @param cellId The Id of the Cell in the Row.
@@ -2834,7 +2891,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
2834
2891
  * The Store to which the callback will make the deletion (indicated by the
2835
2892
  * hook's `storeOrStoreId` parameter) is always automatically used as a hook
2836
2893
  * dependency for the callback.
2837
- *
2838
2894
  * @param storeOrStoreId The Store to be updated: omit for the default context
2839
2895
  * Store, provide an Id for a named context Store, or provide an explicit
2840
2896
  * reference.
@@ -2875,7 +2931,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
2875
2931
  * // -> '{}'
2876
2932
  * ```
2877
2933
  * @category Store hooks
2878
- * @since v3.0
2934
+ * @since v3.0.0
2879
2935
  */
2880
2936
  useDelValuesCallback: (
2881
2937
  storeOrStoreId?: StoreOrStoreId<Schemas>,
@@ -2909,7 +2965,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
2909
2965
  * The Store to which the callback will make the deletion (indicated by the
2910
2966
  * hook's `storeOrStoreId` parameter) is always automatically used as a hook
2911
2967
  * dependency for the callback.
2912
- *
2913
2968
  * @param valueId The Id of the Value in the Store.
2914
2969
  * @param storeOrStoreId The Store to be updated: omit for the default context
2915
2970
  * Store, provide an Id for a named context Store, or provide an explicit
@@ -2951,7 +3006,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
2951
3006
  * // -> '{"employees":3}'
2952
3007
  * ```
2953
3008
  * @category Store hooks
2954
- * @since v3.0
3009
+ * @since v3.0.0
2955
3010
  */
2956
3011
  useDelValueCallback: <ValueId extends ValueIdFromSchema<Schemas[1]>>(
2957
3012
  valueId: ValueId,
@@ -2983,7 +3038,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
2983
3038
  * you to remove it manually, the useTablesListener hook manages this lifecycle
2984
3039
  * for you: when the listener changes (per its `listenerDeps` dependencies) or
2985
3040
  * the component unmounts, the listener on the underlying Store will be deleted.
2986
- *
2987
3041
  * @param listener The function that will be called whenever tabular data in the
2988
3042
  * Store changes.
2989
3043
  * @param listenerDeps An optional array of dependencies for the `listener`
@@ -3057,7 +3111,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
3057
3111
  * lifecycle for you: when the listener changes (per its `listenerDeps`
3058
3112
  * dependencies) or the component unmounts, the listener on the underlying Store
3059
3113
  * will be deleted.
3060
- *
3061
3114
  * @param listener The function that will be called whenever the Table Ids in
3062
3115
  * the Store change.
3063
3116
  * @param listenerDeps An optional array of dependencies for the `listener`
@@ -3134,7 +3187,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
3134
3187
  * you to remove it manually, the useTableListener hook manages this lifecycle
3135
3188
  * for you: when the listener changes (per its `listenerDeps` dependencies) or
3136
3189
  * the component unmounts, the listener on the underlying Store will be deleted.
3137
- *
3138
3190
  * @param tableId The Id of the Table to listen to, or `null` as a wildcard.
3139
3191
  * @param listener The function that will be called whenever data in the Table
3140
3192
  * changes.
@@ -3188,6 +3240,88 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
3188
3240
  storeOrStoreId?: StoreOrStoreId<Schemas>,
3189
3241
  ) => void;
3190
3242
 
3243
+ /**
3244
+ * The useTableCellIdsListener hook registers a listener function with a Store
3245
+ * that will be called whenever the Cell Ids that appear anywhere in a Table
3246
+ * change.
3247
+ *
3248
+ * This has schema-based typing. The following is a simplified representation:
3249
+ *
3250
+ * ```ts override
3251
+ * useTableCellIdsListener(
3252
+ * tableId: IdOrNull,
3253
+ * listener: TableCellIdsListener,
3254
+ * listenerDeps?: React.DependencyList,
3255
+ * mutator?: boolean,
3256
+ * storeOrStoreId?: StoreOrStoreId,
3257
+ * ): void;
3258
+ * ```
3259
+ *
3260
+ * This hook is useful for situations where a component needs to register its
3261
+ * own specific listener to do more than simply tracking the value (which is
3262
+ * more easily done with the useTableCellIds hook).
3263
+ *
3264
+ * You can either listen to a single Table (by specifying its Id as the method's
3265
+ * first parameter) or changes to any Table (by providing `null`).
3266
+ *
3267
+ * Unlike the addTableCellIdsListener method, which returns a listener Id and
3268
+ * requires you to remove it manually, the useTableCellIdsListener hook manages
3269
+ * this lifecycle for you: when the listener changes (per its `listenerDeps`
3270
+ * dependencies) or the component unmounts, the listener on the underlying Store
3271
+ * will be deleted.
3272
+ * @param tableId The Id of the Table to listen to, or `null` as a wildcard.
3273
+ * @param listener The function that will be called whenever the Cell Ids that
3274
+ * appear anywhere in a Table change.
3275
+ * @param listenerDeps An optional array of dependencies for the `listener`
3276
+ * function, which, if any change, result in the re-registration of the
3277
+ * listener. This parameter defaults to an empty array.
3278
+ * @param mutator An optional boolean that indicates that the listener mutates
3279
+ * Store data.
3280
+ * @param storeOrStoreId The Store to register the listener with: omit for the
3281
+ * default context Store, provide an Id for a named context Store, or provide an
3282
+ * explicit reference.
3283
+ * @example
3284
+ * This example uses the useTableCellIdsListener hook to create a listener that
3285
+ * is scoped to a single component. When the component is unmounted, the
3286
+ * listener is removed from the Store.
3287
+ *
3288
+ * ```jsx
3289
+ * const App = ({store}) => (
3290
+ * <Provider store={store}>
3291
+ * <Pane />
3292
+ * </Provider>
3293
+ * );
3294
+ * const Pane = () => {
3295
+ * useTableCellIdsListener('pets', () => console.log('Cell Ids changed'));
3296
+ * return <span>App</span>;
3297
+ * };
3298
+ *
3299
+ * const store = createStore().setTables({pets: {fido: {color: 'brown'}}});
3300
+ * const app = document.createElement('div');
3301
+ * const root = ReactDOMClient.createRoot(app);
3302
+ * root.render(<App store={store} />); // !act
3303
+ * console.log(store.getListenerStats().tableCellIds);
3304
+ * // -> 1
3305
+ *
3306
+ * store.setRow('pets', 'felix', {species: 'cat'}); // !act
3307
+ * // -> 'Cell Ids changed'
3308
+ *
3309
+ * root.unmount(); // !act
3310
+ * console.log(store.getListenerStats().rowIds);
3311
+ * // -> 0
3312
+ * ```
3313
+ * @category Store hooks
3314
+ */
3315
+ useTableCellIdsListener: <
3316
+ TableIdOrNull extends TableIdFromSchema<Schemas[0]> | null,
3317
+ >(
3318
+ tableId: TableIdOrNull,
3319
+ listener: TableCellIdsListener<Schemas, TableIdOrNull>,
3320
+ listenerDeps?: React.DependencyList,
3321
+ mutator?: boolean,
3322
+ storeOrStoreId?: StoreOrStoreId<Schemas>,
3323
+ ) => void;
3324
+
3191
3325
  /**
3192
3326
  * The useRowIdsListener hook registers a listener function with a Store that
3193
3327
  * will be called whenever the Row Ids in a Table change.
@@ -3215,7 +3349,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
3215
3349
  * you to remove it manually, the useRowIdsListener hook manages this lifecycle
3216
3350
  * for you: when the listener changes (per its `listenerDeps` dependencies) or
3217
3351
  * the component unmounts, the listener on the underlying Store will be deleted.
3218
- *
3219
3352
  * @param tableId The Id of the Table to listen to, or `null` as a wildcard.
3220
3353
  * @param listener The function that will be called whenever the Row Ids in the
3221
3354
  * Table change.
@@ -3299,7 +3432,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
3299
3432
  * this lifecycle for you: when the listener changes (per its `listenerDeps`
3300
3433
  * dependencies) or the component unmounts, the listener on the underlying Store
3301
3434
  * will be deleted.
3302
- *
3303
3435
  * @param tableId The Id of the Table in the Store.
3304
3436
  * @param cellId The Id of the Cell whose values are used for the sorting, or
3305
3437
  * `undefined` to by sort the Row Id itself.
@@ -3354,7 +3486,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
3354
3486
  * // -> 0
3355
3487
  * ```
3356
3488
  * @category Store hooks
3357
- * @since v2.0
3489
+ * @since v2.0.0
3358
3490
  */
3359
3491
  useSortedRowIdsListener: <
3360
3492
  TableId extends TableIdFromSchema<Schemas[0]>,
@@ -3415,7 +3547,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
3415
3547
  * you to remove it manually, the useRowListener hook manages this lifecycle for
3416
3548
  * you: when the listener changes (per its `listenerDeps` dependencies) or the
3417
3549
  * component unmounts, the listener on the underlying Store will be deleted.
3418
- *
3419
3550
  * @param tableId The Id of the Table to listen to, or `null` as a wildcard.
3420
3551
  * @param rowId The Id of the Row to listen to, or `null` as a wildcard.
3421
3552
  * @param listener The function that will be called whenever data in the Row
@@ -3507,7 +3638,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
3507
3638
  * lifecycle for you: when the listener changes (per its `listenerDeps`
3508
3639
  * dependencies) or the component unmounts, the listener on the underlying Store
3509
3640
  * will be deleted.
3510
- *
3511
3641
  * @param tableId The Id of the Table to listen to, or `null` as a wildcard.
3512
3642
  * @param rowId The Id of the Row to listen to, or `null` as a wildcard.
3513
3643
  * @param listener The function that will be called whenever the Cell Ids in the
@@ -3601,7 +3731,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
3601
3731
  * you to remove it manually, the useCellListener hook manages this lifecycle
3602
3732
  * for you: when the listener changes (per its `listenerDeps` dependencies) or
3603
3733
  * the component unmounts, the listener on the underlying Store will be deleted.
3604
- *
3605
3734
  * @param tableId The Id of the Table to listen to, or `null` as a wildcard.
3606
3735
  * @param rowId The Id of the Row to listen to, or `null` as a wildcard.
3607
3736
  * @param cellId The Id of the Cell to listen to, or `null` as a wildcard.
@@ -3690,7 +3819,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
3690
3819
  * you to remove it manually, the useValuesListener hook manages this lifecycle
3691
3820
  * for you: when the listener changes (per its `listenerDeps` dependencies) or
3692
3821
  * the component unmounts, the listener on the underlying Store will be deleted.
3693
- *
3694
3822
  * @param listener The function that will be called whenever keyed value data in
3695
3823
  * the Store changes.
3696
3824
  * @param listenerDeps An optional array of dependencies for the `listener`
@@ -3732,7 +3860,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
3732
3860
  * // -> 0
3733
3861
  * ```
3734
3862
  * @category Store hooks
3735
- * @since v3.0
3863
+ * @since v3.0.0
3736
3864
  */
3737
3865
  useValuesListener: (
3738
3866
  listener: ValuesListener<Schemas>,
@@ -3765,7 +3893,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
3765
3893
  * lifecycle for you: when the listener changes (per its `listenerDeps`
3766
3894
  * dependencies) or the component unmounts, the listener on the underlying Store
3767
3895
  * will be deleted.
3768
- *
3769
3896
  * @param listener The function that will be called whenever the Value Ids in
3770
3897
  * the Store change.
3771
3898
  * @param listenerDeps An optional array of dependencies for the `listener`
@@ -3807,7 +3934,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
3807
3934
  * // -> 0
3808
3935
  * ```
3809
3936
  * @category Store hooks
3810
- * @since v3.0
3937
+ * @since v3.0.0
3811
3938
  */
3812
3939
  useValueIdsListener: (
3813
3940
  listener: ValueIdsListener<Schemas>,
@@ -3843,7 +3970,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
3843
3970
  * you to remove it manually, the useValueListener hook manages this lifecycle
3844
3971
  * for you: when the listener changes (per its `listenerDeps` dependencies) or
3845
3972
  * the component unmounts, the listener on the underlying Store will be deleted.
3846
- *
3847
3973
  * @param valueId The Id of the Value to listen to, or `null` as a wildcard.
3848
3974
  * @param listener The function that will be called whenever data in the Value
3849
3975
  * changes.
@@ -3886,7 +4012,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
3886
4012
  * // -> 0
3887
4013
  * ```
3888
4014
  * @category Store hooks
3889
- * @since v3.0
4015
+ * @since v3.0.0
3890
4016
  */
3891
4017
  useValueListener: <
3892
4018
  ValueIdOrNull extends ValueIdFromSchema<Schemas[1]> | null,
@@ -3929,7 +4055,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
3929
4055
  *
3930
4056
  * This hook ensures the Metrics object is destroyed whenever a new one is
3931
4057
  * created or the component is unmounted.
3932
- *
3933
4058
  * @param store A reference to the Store for which to create a new Metrics
3934
4059
  * object.
3935
4060
  * @param create A function for performing the creation steps of the Metrics
@@ -4037,7 +4162,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
4037
4162
  * The useMetrics hook lets you either get a reference to the default Metrics
4038
4163
  * object (when called without a parameter), or one of the Metrics objects that
4039
4164
  * are named by Id (when called with an Id parameter).
4040
- *
4041
4165
  * @param id An optional Id for accessing a Metrics object that was named with
4042
4166
  * an Id in the Provider.
4043
4167
  * @returns A reference to the Metrics object (or `undefined` if not within a
@@ -4111,7 +4235,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
4111
4235
  * When first rendered, this hook will create a listener so that changes to the
4112
4236
  * Metric will cause a re-render. When the component containing this hook is
4113
4237
  * unmounted, the listener will be automatically removed.
4114
- *
4115
4238
  * @param metricId The Id of the Metric.
4116
4239
  * @param metricsOrMetricsId The Metrics object to be accessed: omit for the
4117
4240
  * default context Metrics object, provide an Id for a named context Metrics
@@ -4226,7 +4349,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
4226
4349
  * for you: when the listener changes (per its `listenerDeps` dependencies) or
4227
4350
  * the component unmounts, the listener on the underlying Metrics object, will
4228
4351
  * be deleted.
4229
- *
4230
4352
  * @param metricId The Id of the Metric to listen to, or `null` as a wildcard.
4231
4353
  * @param listener The function that will be called whenever the Metric changes.
4232
4354
  * @param listenerDeps An optional array of dependencies for the `listener`
@@ -4312,7 +4434,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
4312
4434
  *
4313
4435
  * This hook ensures the Indexes object is destroyed whenever a new one is
4314
4436
  * created or the component is unmounted.
4315
- *
4316
4437
  * @param store A reference to the Store for which to create a new Indexes
4317
4438
  * object.
4318
4439
  * @param create A function for performing the creation steps of the Indexes
@@ -4428,7 +4549,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
4428
4549
  * The useIndexes hook lets you either get a reference to the default Indexes
4429
4550
  * object (when called without a parameter), or one of the Indexes objects that
4430
4551
  * are named by Id (when called with an Id parameter).
4431
- *
4432
4552
  * @param id An optional Id for accessing an Indexes object that was named with
4433
4553
  * an Id in the Provider.
4434
4554
  * @returns A reference to the Indexes object (or `undefined` if not within a
@@ -4502,7 +4622,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
4502
4622
  * When first rendered, this hook will create a listener so that changes to the
4503
4623
  * Slice Ids will cause a re-render. When the component containing this hook is
4504
4624
  * unmounted, the listener will be automatically removed.
4505
- *
4506
4625
  * @param indexId The Id of the Index.
4507
4626
  * @param indexesOrIndexesId The Indexes object to be accessed: omit for the
4508
4627
  * default context Indexes object, provide an Id for a named context Indexes
@@ -4618,7 +4737,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
4618
4737
  * When first rendered, this hook will create a listener so that changes to the
4619
4738
  * Row Ids in the Slice will cause a re-render. When the component containing
4620
4739
  * this hook is unmounted, the listener will be automatically removed.
4621
- *
4622
4740
  * @param indexId The Id of the Index.
4623
4741
  * @param sliceId The Id of the Slice in the Index.
4624
4742
  * @param indexesOrIndexesId The Indexes object to be accessed: omit for the
@@ -4745,7 +4863,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
4745
4863
  * lifecycle for you: when the listener changes (per its `listenerDeps`
4746
4864
  * dependencies) or the component unmounts, the listener on the underlying
4747
4865
  * Indexes object will be deleted.
4748
- *
4749
4866
  * @param indexId The Id of the Index to listen to, or `null` as a wildcard.
4750
4867
  * @param listener The function that will be called whenever the Slice Ids in
4751
4868
  * the Index change.
@@ -4835,7 +4952,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
4835
4952
  * this lifecycle for you: when the listener changes (per its `listenerDeps`
4836
4953
  * dependencies) or the component unmounts, the listener on the underlying
4837
4954
  * Indexes object will be deleted.
4838
- *
4839
4955
  * @param indexId The Id of the Index to listen to, or `null` as a wildcard.
4840
4956
  * @param sliceId The Id of the Slice to listen to, or `null` as a wildcard.
4841
4957
  * @param listener The function that will be called whenever the Row Ids in the
@@ -4927,7 +5043,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
4927
5043
  *
4928
5044
  * This hook ensures the Relationships object is destroyed whenever a new one is
4929
5045
  * created or the component is unmounted.
4930
- *
4931
5046
  * @param store A reference to the Store for which to create a new Relationships
4932
5047
  * object.
4933
5048
  * @param create An optional callback for performing post-creation steps on the
@@ -5051,7 +5166,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
5051
5166
  * Relationships object (when called without a parameter), or one of the
5052
5167
  * Relationships objects that are named by Id (when called with an Id
5053
5168
  * parameter).
5054
- *
5055
5169
  * @param id An optional Id for accessing a Relationships object that was named
5056
5170
  * with an Id in the Provider.
5057
5171
  * @returns A reference to the Relationships object (or `undefined` if not
@@ -5135,7 +5249,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
5135
5249
  * When first rendered, this hook will create a listener so that changes to the
5136
5250
  * remote Row Id will cause a re-render. When the component containing this hook
5137
5251
  * is unmounted, the listener will be automatically removed.
5138
- *
5139
5252
  * @param relationshipId The Id of the Relationship.
5140
5253
  * @param localRowId The Id of the local Row in the Relationship.
5141
5254
  * @param relationshipsOrRelationshipsId The Relationships object to be
@@ -5254,7 +5367,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
5254
5367
  * When first rendered, this hook will create a listener so that changes to the
5255
5368
  * local Row Id will cause a re-render. When the component containing this hook
5256
5369
  * is unmounted, the listener will be automatically removed.
5257
- *
5258
5370
  * @param relationshipId The Id of the Relationship.
5259
5371
  * @param remoteRowId The Id of the remote Row in the Relationship.
5260
5372
  * @param relationshipsOrRelationshipsId The Relationships object to be
@@ -5381,7 +5493,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
5381
5493
  * When first rendered, this hook will create a listener so that changes to the
5382
5494
  * linked Row Ids will cause a re-render. When the component containing this
5383
5495
  * hook is unmounted, the listener will be automatically removed.
5384
- *
5385
5496
  * @param relationshipId The Id of the Relationship.
5386
5497
  * @param firstRowId The Id of the first Row in the linked list Relationship.
5387
5498
  * @param relationshipsOrRelationshipsId The Relationships object to be
@@ -5524,7 +5635,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
5524
5635
  * this lifecycle for you: when the listener changes (per its `listenerDeps`
5525
5636
  * dependencies) or the component unmounts, the listener on the underlying
5526
5637
  * Indexes object will be deleted.
5527
- *
5528
5638
  * @param relationshipId The Id of the Relationship to listen to, or `null` as a
5529
5639
  * wildcard.
5530
5640
  * @param localRowId The Id of the local Row to listen to, or `null` as a
@@ -5625,7 +5735,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
5625
5735
  * this lifecycle for you: when the listener changes (per its `listenerDeps`
5626
5736
  * dependencies) or the component unmounts, the listener on the underlying
5627
5737
  * Indexes object will be deleted.
5628
- *
5629
5738
  * @param relationshipId The Id of the Relationship to listen to, or `null` as a
5630
5739
  * wildcard.
5631
5740
  * @param remoteRowId The Id of the remote Row to listen to, or `null` as a
@@ -5722,7 +5831,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
5722
5831
  * this lifecycle for you: when the listener changes (per its `listenerDeps`
5723
5832
  * dependencies) or the component unmounts, the listener on the underlying
5724
5833
  * Indexes object will be deleted.
5725
- *
5726
5834
  * @param relationshipId The Id of the Relationship to listen to.
5727
5835
  * @param firstRowId The Id of the first Row of the linked list to listen to.
5728
5836
  * @param listener The function that will be called whenever the linked Row Ids
@@ -5820,7 +5928,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
5820
5928
  *
5821
5929
  * This hook ensures the Queries object is destroyed whenever a new one is
5822
5930
  * created or the component is unmounted.
5823
- *
5824
5931
  * @param store A reference to the Store for which to create a new Queries
5825
5932
  * object.
5826
5933
  * @param create An optional callback for performing post-creation steps on the
@@ -5913,7 +6020,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
5913
6020
  * // -> '<span>brown</span>'
5914
6021
  * ```
5915
6022
  * @category Queries hooks
5916
- * @since v2.0
6023
+ * @since v2.0.0
5917
6024
  */
5918
6025
  useCreateQueries: (
5919
6026
  store: Store<Schemas>,
@@ -5939,7 +6046,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
5939
6046
  * The useQueries hook lets you either get a reference to the default Queries
5940
6047
  * object (when called without a parameter), or one of the Queries objects that
5941
6048
  * are named by Id (when called with an Id parameter).
5942
- *
5943
6049
  * @param id An optional Id for accessing a Queries object that was named with
5944
6050
  * an Id in the Provider.
5945
6051
  * @returns A reference to the Queries object (or `undefined` if not within a
@@ -5987,7 +6093,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
5987
6093
  * // -> '<span>0</span>'
5988
6094
  * ```
5989
6095
  * @category Queries hooks
5990
- * @since v2.0
6096
+ * @since v2.0.0
5991
6097
  */
5992
6098
  useQueries: (id?: Id) => Queries<Schemas> | undefined;
5993
6099
 
@@ -6015,7 +6121,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
6015
6121
  * When first rendered, this hook will create a listener so that changes to the
6016
6122
  * query result will cause a re-render. When the component containing this hook
6017
6123
  * is unmounted, the listener will be automatically removed.
6018
- *
6019
6124
  * @param queryId The Id of the query.
6020
6125
  * @param queriesOrQueriesId The Queries object to be accessed: omit for the
6021
6126
  * default context Queries object, provide an Id for a named context Queries
@@ -6113,7 +6218,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
6113
6218
  * // -> '<span>{"fido":{"color":"brown"},"cujo":{"color":"black"}}</span>'
6114
6219
  * ```
6115
6220
  * @category Queries hooks
6116
- * @since v2.0
6221
+ * @since v2.0.0
6117
6222
  */
6118
6223
  useResultTable: (
6119
6224
  queryId: Id,
@@ -6144,7 +6249,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
6144
6249
  * When first rendered, this hook will create a listener so that changes to the
6145
6250
  * result Row Ids will cause a re-render. When the component containing this
6146
6251
  * hook is unmounted, the listener will be automatically removed.
6147
- *
6148
6252
  * @param queryId The Id of the query.
6149
6253
  * @param queriesOrQueriesId The Queries object to be accessed: omit for the
6150
6254
  * default context Queries object, provide an Id for a named context Queries
@@ -6243,7 +6347,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
6243
6347
  * // -> '<span>["fido","cujo"]</span>'
6244
6348
  * ```
6245
6349
  * @category Queries hooks
6246
- * @since v2.0
6350
+ * @since v2.0.0
6247
6351
  */
6248
6352
  useResultRowIds: (
6249
6353
  queryId: Id,
@@ -6278,7 +6382,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
6278
6382
  * When first rendered, this hook will create a listener so that changes to the
6279
6383
  * sorted result Row Ids will cause a re-render. When the component containing
6280
6384
  * this hook is unmounted, the listener will be automatically removed.
6281
- *
6282
6385
  * @param queryId The Id of the query.
6283
6386
  * @param cellId The Id of the result Cell whose values are used for the
6284
6387
  * sorting, or `undefined` to by sort the result Row Id itself.
@@ -6405,7 +6508,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
6405
6508
  * // -> '<span>["cujo","fido"]</span>'
6406
6509
  * ```
6407
6510
  * @category Queries hooks
6408
- * @since v2.0
6511
+ * @since v2.0.0
6409
6512
  */
6410
6513
  useResultSortedRowIds: (
6411
6514
  queryId: Id,
@@ -6441,7 +6544,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
6441
6544
  * When first rendered, this hook will create a listener so that changes to the
6442
6545
  * result Row will cause a re-render. When the component containing this hook is
6443
6546
  * unmounted, the listener will be automatically removed.
6444
- *
6445
6547
  * @param queryId The Id of the query.
6446
6548
  * @param rowId The Id of the Row in the result Table.
6447
6549
  * @param queriesOrQueriesId The Queries object to be accessed: omit for the
@@ -6543,7 +6645,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
6543
6645
  * // -> '<span>{"color":"brown"}</span>'
6544
6646
  * ```
6545
6647
  * @category Queries hooks
6546
- * @since v2.0
6648
+ * @since v2.0.0
6547
6649
  */
6548
6650
  useResultRow: (
6549
6651
  queryId: Id,
@@ -6576,7 +6678,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
6576
6678
  * When first rendered, this hook will create a listener so that changes to the
6577
6679
  * result Cell Ids will cause a re-render. When the component containing this
6578
6680
  * hook is unmounted, the listener will be automatically removed.
6579
- *
6580
6681
  * @param queryId The Id of the query.
6581
6682
  * @param rowId The Id of the Row in the result Table.
6582
6683
  * @param queriesOrQueriesId The Queries object to be accessed: omit for the
@@ -6684,7 +6785,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
6684
6785
  * // -> '<span>["species","color"]</span>'
6685
6786
  * ```
6686
6787
  * @category Queries hooks
6687
- * @since v2.0
6788
+ * @since v2.0.0
6688
6789
  */
6689
6790
  useResultCellIds: (
6690
6791
  queryId: Id,
@@ -6718,7 +6819,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
6718
6819
  * When first rendered, this hook will create a listener so that changes to the
6719
6820
  * result Cell will cause a re-render. When the component containing this hook
6720
6821
  * is unmounted, the listener will be automatically removed.
6721
- *
6722
6822
  * @param queryId The Id of the query.
6723
6823
  * @param rowId The Id of the Row in the result Table.
6724
6824
  * @param cellId The Id of the Cell in the Row.
@@ -6822,7 +6922,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
6822
6922
  * // -> '<span>brown</span>'
6823
6923
  * ```
6824
6924
  * @category Queries hooks
6825
- * @since v2.0
6925
+ * @since v2.0.0
6826
6926
  */
6827
6927
  useResultCell: (
6828
6928
  queryId: Id,
@@ -6859,7 +6959,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
6859
6959
  * this lifecycle for you: when the listener changes (per its `listenerDeps`
6860
6960
  * dependencies) or the component unmounts, the listener on the underlying
6861
6961
  * Queries object will be deleted.
6862
- *
6863
6962
  * @param queryId The Id of the query to listen to, or `null` as a wildcard.
6864
6963
  * @param listener The function that will be called whenever data in the
6865
6964
  * matching result Table changes.
@@ -6911,7 +7010,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
6911
7010
  * // -> 0
6912
7011
  * ```
6913
7012
  * @category Queries hooks
6914
- * @since v2.0
7013
+ * @since v2.0.0
6915
7014
  */
6916
7015
  useResultTableListener: (
6917
7016
  queryId: IdOrNull,
@@ -6948,7 +7047,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
6948
7047
  * this lifecycle for you: when the listener changes (per its `listenerDeps`
6949
7048
  * dependencies) or the component unmounts, the listener on the underlying
6950
7049
  * Queries object will be deleted.
6951
- *
6952
7050
  * @param queryId The Id of the query to listen to, or `null` as a wildcard.
6953
7051
  * @param listener The function that will be called whenever the Row Ids in the
6954
7052
  * matching result Table change.
@@ -7000,7 +7098,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
7000
7098
  * // -> 0
7001
7099
  * ```
7002
7100
  * @category Queries hooks
7003
- * @since v2.0
7101
+ * @since v2.0.0
7004
7102
  */
7005
7103
  useResultRowIdsListener: (
7006
7104
  queryId: IdOrNull,
@@ -7038,7 +7136,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
7038
7136
  * hook manages this lifecycle for you: when the listener changes (per its
7039
7137
  * `listenerDeps` dependencies) or the component unmounts, the listener on the
7040
7138
  * underlying Queries object will be deleted.
7041
- *
7042
7139
  * @param queryId The Id of the query to listen to.
7043
7140
  * @param cellId The Id of the Cell whose values are used for the sorting, or
7044
7141
  * `undefined` to by sort the Row Id itself.
@@ -7100,7 +7197,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
7100
7197
  * // -> 0
7101
7198
  * ```
7102
7199
  * @category Queries hooks
7103
- * @since v2.0
7200
+ * @since v2.0.0
7104
7201
  */
7105
7202
  useResultSortedRowIdsListener: (
7106
7203
  queryId: Id,
@@ -7147,7 +7244,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
7147
7244
  * this lifecycle for you: when the listener changes (per its `listenerDeps`
7148
7245
  * dependencies) or the component unmounts, the listener on the underlying
7149
7246
  * Queries object will be deleted.
7150
- *
7151
7247
  * @param queryId The Id of the query to listen to, or `null` as a wildcard.
7152
7248
  * @param rowId The Id of the result Row to listen to, or `null` as a wildcard.
7153
7249
  * @param listener The function that will be called whenever data in the
@@ -7200,7 +7296,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
7200
7296
  * // -> 0
7201
7297
  * ```
7202
7298
  * @category Queries hooks
7203
- * @since v2.0
7299
+ * @since v2.0.0
7204
7300
  */
7205
7301
  useResultRowListener: (
7206
7302
  queryId: IdOrNull,
@@ -7241,7 +7337,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
7241
7337
  * this lifecycle for you: when the listener changes (per its `listenerDeps`
7242
7338
  * dependencies) or the component unmounts, the listener on the underlying
7243
7339
  * Queries object will be deleted.
7244
- *
7245
7340
  * @param queryId The Id of the query to listen to, or `null` as a wildcard.
7246
7341
  * @param rowId The Id of the result Row to listen to, or `null` as a wildcard.
7247
7342
  * @param listener The function that will be called whenever the Row Ids in the
@@ -7297,7 +7392,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
7297
7392
  * // -> 0
7298
7393
  * ```
7299
7394
  * @category Queries hooks
7300
- * @since v2.0
7395
+ * @since v2.0.0
7301
7396
  */
7302
7397
  useResultCellIdsListener: (
7303
7398
  queryId: IdOrNull,
@@ -7342,7 +7437,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
7342
7437
  * this lifecycle for you: when the listener changes (per its `listenerDeps`
7343
7438
  * dependencies) or the component unmounts, the listener on the underlying
7344
7439
  * Queries object will be deleted.
7345
- *
7346
7440
  * @param queryId The Id of the query to listen to, or `null` as a wildcard.
7347
7441
  * @param rowId The Id of the result Row to listen to, or `null` as a wildcard.
7348
7442
  * @param cellId The Id of the result Cell to listen to, or `null` as a
@@ -7397,7 +7491,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
7397
7491
  * // -> 0
7398
7492
  * ```
7399
7493
  * @category Queries hooks
7400
- * @since v2.0
7494
+ * @since v2.0.0
7401
7495
  */
7402
7496
  useResultCellListener: (
7403
7497
  queryId: IdOrNull,
@@ -7440,7 +7534,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
7440
7534
  *
7441
7535
  * This hook ensures the Checkpoints object is destroyed whenever a new one is
7442
7536
  * created or the component is unmounted.
7443
- *
7444
7537
  * @param store A reference to the Store for which to create a new Checkpoints
7445
7538
  * object.
7446
7539
  * @param create A function for performing the creation steps of the Checkpoints
@@ -7537,7 +7630,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
7537
7630
  * The useCheckpoints hook lets you either get a reference to the default
7538
7631
  * Checkpoints object (when called without a parameter), or one of the
7539
7632
  * Checkpoints objects that are named by Id (when called with an Id parameter).
7540
- *
7541
7633
  * @param id An optional Id for accessing a Checkpoints object that was named
7542
7634
  * with an Id in the Provider.
7543
7635
  * @returns A reference to the Checkpoints object (or `undefined` if not within
@@ -7618,7 +7710,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
7618
7710
  * When first rendered, this hook will create a listener so that changes to the
7619
7711
  * checkpoint Ids will cause a re-render. When the component containing this
7620
7712
  * hook is unmounted, the listener will be automatically removed.
7621
- *
7622
7713
  * @param checkpointsOrCheckpointsId The Checkpoints object to be accessed: omit
7623
7714
  * for the default context Checkpoints object, provide an Id for a named context
7624
7715
  * Checkpoints object, or provide an explicit reference.
@@ -7726,7 +7817,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
7726
7817
  * When first rendered, this hook will create a listener so that changes to the
7727
7818
  * label will cause a re-render. When the component containing this hook is
7728
7819
  * unmounted, the listener will be automatically removed.
7729
- *
7730
7820
  * @param checkpointId The Id of the checkpoint.
7731
7821
  * @param checkpointsOrCheckpointsId The Checkpoints object to be accessed: omit
7732
7822
  * for the default context Checkpoints object, provide an Id for a named context
@@ -7842,7 +7932,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
7842
7932
  * The Checkpoints object for which the callback will set the checkpoint
7843
7933
  * (indicated by the hook's `checkpointsOrCheckpointsId` parameter) is always
7844
7934
  * automatically used as a hook dependency for the callback.
7845
- *
7846
7935
  * @param getCheckpoint An optional function which returns a string that will be
7847
7936
  * used to describe the actions leading up to this checkpoint, based on the
7848
7937
  * parameter the callback will receive (and which is most likely a DOM event).
@@ -7922,7 +8011,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
7922
8011
  * backward to the previous checkpoint - such as when clicking an undo button.
7923
8012
  *
7924
8013
  * If there is no previous checkpoint to return to, this callback has no effect.
7925
- *
7926
8014
  * @param checkpointsOrCheckpointsId The Checkpoints object to use to go
7927
8015
  * backward: omit for the default context Checkpoints object, provide an Id for
7928
8016
  * a named context Checkpoints object, or provide an explicit reference.
@@ -7978,7 +8066,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
7978
8066
  * forward to the next checkpoint - such as when clicking an redo button.
7979
8067
  *
7980
8068
  * If there is no future checkpoint to return to, this callback has no effect.
7981
- *
7982
8069
  * @param checkpointsOrCheckpointsId The Checkpoints object to use to go
7983
8070
  * backward: omit for the default context Checkpoints object, provide an Id for
7984
8071
  * a named context Checkpoints object, or provide an explicit reference.
@@ -8057,7 +8144,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
8057
8144
  * The Checkpoints object for which the callback will set the checkpoint
8058
8145
  * (indicated by the hook's `checkpointsOrCheckpointsId` parameter) is always
8059
8146
  * automatically used as a hook dependency for the callback.
8060
- *
8061
8147
  * @param getCheckpointId A function which returns an Id that will be used to
8062
8148
  * indicate which checkpoint to move to, based on the parameter the callback
8063
8149
  * will receive (and which is most likely a DOM event).
@@ -8130,7 +8216,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
8130
8216
  * contains whether an undo action is available (to enable the button), the
8131
8217
  * callback to perform the undo action, the current checkpoint Id that will be
8132
8218
  * undone, and its label, if available.
8133
- *
8134
8219
  * @param checkpointsOrCheckpointsId The Checkpoints object to use to go
8135
8220
  * backward: omit for the default context Checkpoints object, provide an Id for
8136
8221
  * a named context Checkpoints object, or provide an explicit reference.
@@ -8184,7 +8269,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
8184
8269
  * contains whether a redo action is available (to enable the button), the
8185
8270
  * callback to perform the redo action, the checkpoint Id that will be redone,
8186
8271
  * and its label, if available.
8187
- *
8188
8272
  * @param checkpointsOrCheckpointsId The Checkpoints object to use to go
8189
8273
  * backward: omit for the default context Checkpoints object, provide an Id for
8190
8274
  * a named context Checkpoints object, or provide an explicit reference.
@@ -8246,7 +8330,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
8246
8330
  * this lifecycle for you: when the listener changes (per its `listenerDeps`
8247
8331
  * dependencies) or the component unmounts, the listener on the underlying
8248
8332
  * Checkpoints object will be deleted.
8249
- *
8250
8333
  * @param listener The function that will be called whenever the checkpoints
8251
8334
  * change.
8252
8335
  * @param listenerDeps An optional array of dependencies for the `listener`
@@ -8326,7 +8409,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
8326
8409
  * this lifecycle for you: when the listener changes (per its `listenerDeps`
8327
8410
  * dependencies) or the component unmounts, the listener on the underlying
8328
8411
  * Checkpoints object will be deleted.
8329
- *
8330
8412
  * @param checkpointId The Id of the checkpoint to listen to, or `null` as a
8331
8413
  * wildcard.
8332
8414
  * @param listener The function that will be called whenever the checkpoint
@@ -8420,7 +8502,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
8420
8502
  *
8421
8503
  * This hook ensures the Persister object is destroyed whenever a new one is
8422
8504
  * created or the component is unmounted.
8423
- *
8424
8505
  * @param store A reference to the Store for which to create a new Persister
8425
8506
  * object.
8426
8507
  * @param create A function for performing the creation steps of the Persister
@@ -8539,7 +8620,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
8539
8620
 
8540
8621
  /**
8541
8622
  * The ExtraProps type represents a set of arbitrary additional props.
8542
- *
8543
8623
  * @category Props
8544
8624
  */
8545
8625
  ExtraProps: ExtraProps;
@@ -8547,7 +8627,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
8547
8627
  /**
8548
8628
  * TablesProps props are used for components that refer to all the Tables in a
8549
8629
  * Store, such as the TablesView component.
8550
- *
8551
8630
  * @category Props
8552
8631
  */
8553
8632
  TablesProps: TablesProps<Schemas>;
@@ -8555,7 +8634,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
8555
8634
  /**
8556
8635
  * TableProps props are used for components that refer to a single Table in a
8557
8636
  * Store, such as the TableView component.
8558
- *
8559
8637
  * @category Props
8560
8638
  */
8561
8639
  TableProps: TableProps<Schemas>;
@@ -8563,16 +8641,14 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
8563
8641
  /**
8564
8642
  * SortedTableProps props are used for components that refer to a single sorted
8565
8643
  * Table in a Store, such as the SortedTableView component.
8566
- *
8567
8644
  * @category Props
8568
- * @since v2.0
8645
+ * @since v2.0.0
8569
8646
  */
8570
8647
  SortedTableProps: SortedTableProps<Schemas>;
8571
8648
 
8572
8649
  /**
8573
8650
  * RowProps props are used for components that refer to a single Row in a Table,
8574
8651
  * such as the RowView component.
8575
- *
8576
8652
  * @category Props
8577
8653
  */
8578
8654
  RowProps: RowProps<Schemas>;
@@ -8580,7 +8656,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
8580
8656
  /**
8581
8657
  * CellProps props are used for components that refer to a single Cell in a Row,
8582
8658
  * such as the CellView component.
8583
- *
8584
8659
  * @category Props
8585
8660
  */
8586
8661
  CellProps: CellProps<Schemas>;
@@ -8588,25 +8663,22 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
8588
8663
  /**
8589
8664
  * ValuesProps props are used for components that refer to all the Values in a
8590
8665
  * Store, such as the ValuesView component.
8591
- *
8592
8666
  * @category Props
8593
- * @since v3.0
8667
+ * @since v3.0.0
8594
8668
  */
8595
8669
  ValuesProps: ValuesProps<Schemas>;
8596
8670
 
8597
8671
  /**
8598
8672
  * ValueProps props are used for components that refer to a single Value in a
8599
8673
  * Row, such as the ValueView component.
8600
- *
8601
8674
  * @category Props
8602
- * @since v3.0
8675
+ * @since v3.0.0
8603
8676
  */
8604
8677
  ValueProps: ValueProps<Schemas>;
8605
8678
 
8606
8679
  /**
8607
8680
  * MetricProps props are used for components that refer to a single Metric in a
8608
8681
  * Metrics object, such as the MetricView component.
8609
- *
8610
8682
  * @category Props
8611
8683
  */
8612
8684
  MetricProps: MetricProps<Schemas>;
@@ -8614,7 +8686,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
8614
8686
  /**
8615
8687
  * IndexProps props are used for components that refer to a single Index in an
8616
8688
  * Indexes object, such as the IndexView component.
8617
- *
8618
8689
  * @category Props
8619
8690
  */
8620
8691
  IndexProps: IndexProps<Schemas>;
@@ -8622,7 +8693,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
8622
8693
  /**
8623
8694
  * SliceProps props are used for components that refer to a single Slice in an
8624
8695
  * Index object, such as the SliceView component.
8625
- *
8626
8696
  * @category Props
8627
8697
  */
8628
8698
  SliceProps: SliceProps<Schemas>;
@@ -8631,7 +8701,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
8631
8701
  * RemoteRowProps props are used for components that refer to a single
8632
8702
  * Relationship in a Relationships object, and where you want to render a remote
8633
8703
  * Row based on a local Row, such as in the RemoteRowView component.
8634
- *
8635
8704
  * @category Props
8636
8705
  */
8637
8706
  RemoteRowProps: RemoteRowProps<Schemas>;
@@ -8640,7 +8709,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
8640
8709
  * LocalRowsProps props are used for components that refer to a single
8641
8710
  * Relationship in a Relationships object, and where you want to render local
8642
8711
  * Rows based on a remote Row, such as the LocalRowsView component.
8643
- *
8644
8712
  * @category Props
8645
8713
  */
8646
8714
  LocalRowsProps: LocalRowsProps<Schemas>;
@@ -8649,7 +8717,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
8649
8717
  * LinkedRowsProps props are used for components that refer to a single
8650
8718
  * Relationship in a Relationships object, and where you want to render a linked
8651
8719
  * list of Rows starting from a first Row, such as the LinkedRowsView component.
8652
- *
8653
8720
  * @category Props
8654
8721
  */
8655
8722
  LinkedRowsProps: LinkedRowsProps<Schemas>;
@@ -8657,43 +8724,38 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
8657
8724
  /**
8658
8725
  * ResultTableProps props are used for components that refer to a single query
8659
8726
  * result Table, such as the ResultTableView component.
8660
- *
8661
8727
  * @category Props
8662
- * @since v2.0
8728
+ * @since v2.0.0
8663
8729
  */
8664
8730
  ResultTableProps: ResultTableProps<Schemas>;
8665
8731
 
8666
8732
  /**
8667
8733
  * ResultSortedTableProps props are used for components that refer to a single
8668
8734
  * sorted query result Table, such as the ResultSortedTableView component.
8669
- *
8670
8735
  * @category Props
8671
- * @since v2.0
8736
+ * @since v2.0.0
8672
8737
  */
8673
8738
  ResultSortedTableProps: ResultSortedTableProps<Schemas>;
8674
8739
 
8675
8740
  /**
8676
8741
  * ResultRowProps props are used for components that refer to a single Row in a
8677
8742
  * query result Table, such as the ResultRowView component.
8678
- *
8679
8743
  * @category Props
8680
- * @since v2.0
8744
+ * @since v2.0.0
8681
8745
  */
8682
8746
  ResultRowProps: ResultRowProps<Schemas>;
8683
8747
 
8684
8748
  /**
8685
8749
  * ResultRowProps props are used for components that refer to a single Cell in a
8686
8750
  * Row of a result Table, such as the ResultCellView component.
8687
- *
8688
8751
  * @category Props
8689
- * @since v2.0
8752
+ * @since v2.0.0
8690
8753
  */
8691
8754
  ResultCellProps: ResultCellProps<Schemas>;
8692
8755
 
8693
8756
  /**
8694
8757
  * CheckpointProps props are used for components that refer to a single
8695
8758
  * checkpoint in a Checkpoints object, such as the CheckpointView component.
8696
- *
8697
8759
  * @category Props
8698
8760
  */
8699
8761
  CheckpointProps: CheckpointProps<Schemas>;
@@ -8702,7 +8764,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
8702
8764
  * BackwardCheckpointsProps props are used for components that refer to a list
8703
8765
  * of previous checkpoints in a Checkpoints object, such as the
8704
8766
  * BackwardCheckpointsView component.
8705
- *
8706
8767
  * @category Props
8707
8768
  */
8708
8769
  BackwardCheckpointsProps: BackwardCheckpointsProps<Schemas>;
@@ -8711,7 +8772,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
8711
8772
  * CurrentCheckpointsProps props are used for components that refer to the
8712
8773
  * current checkpoints in a Checkpoints object, such as the
8713
8774
  * BackwardCheckpointsView component.
8714
- *
8715
8775
  * @category Props
8716
8776
  */
8717
8777
  CurrentCheckpointProps: CurrentCheckpointProps<Schemas>;
@@ -8720,7 +8780,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
8720
8780
  * ForwardCheckpointsProps props are used for components that refer to a list of
8721
8781
  * future checkpoints in a Checkpoints object, such as the
8722
8782
  * ForwardCheckpointsView component.
8723
- *
8724
8783
  * @category Props
8725
8784
  */
8726
8785
  ForwardCheckpointsProps: ForwardCheckpointsProps<Schemas>;
@@ -8733,7 +8792,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
8733
8792
  * One of each type of object can be provided as a default within the context.
8734
8793
  * Additionally, multiple of each type of object can be provided in an Id-keyed
8735
8794
  * map to the `___ById` props.
8736
- *
8737
8795
  * @category Props
8738
8796
  */
8739
8797
  ProviderProps: ProviderProps<Schemas>;
@@ -8741,7 +8799,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
8741
8799
  /**
8742
8800
  * ComponentReturnType is a simple alias for what a React component can return:
8743
8801
  * either a ReactElement, or `null` for an empty component.
8744
- *
8745
8802
  * @category Component
8746
8803
  */
8747
8804
  ComponentReturnType: ReactElement<any, any> | null;
@@ -8770,7 +8827,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
8770
8827
  * will be visible within the inner context. If the outer context contains a
8771
8828
  * Store named by Id and the inner context contains a Store named by a different
8772
8829
  * Id, both will be visible within the inner context.
8773
- *
8774
8830
  * @param props The props for this component.
8775
8831
  * @returns A rendering of the child components.
8776
8832
  * @example
@@ -8876,7 +8932,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
8876
8932
  *
8877
8933
  * This component uses the useCell hook under the covers, which means that any
8878
8934
  * changes to the specified Cell will cause a re-render.
8879
- *
8880
8935
  * @param props The props for this component.
8881
8936
  * @returns A rendering of the Cell, or nothing, if not present.
8882
8937
  * @example
@@ -8978,7 +9033,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
8978
9033
  *
8979
9034
  * This component uses the useCellIds hook under the covers, which means that
8980
9035
  * any changes to the structure of the Row will cause a re-render.
8981
- *
8982
9036
  * @param props The props for this component.
8983
9037
  * @returns A rendering of the Row, or nothing, if not present.
8984
9038
  * @example
@@ -9099,7 +9153,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
9099
9153
  * This component uses the useSortedRowIds hook under the covers, which means
9100
9154
  * that any changes to the structure or sorting of the Table will cause a
9101
9155
  * re-render.
9102
- *
9103
9156
  * @param props The props for this component.
9104
9157
  * @returns A rendering of the Table, or nothing, if not present.
9105
9158
  * @example
@@ -9203,7 +9256,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
9203
9256
  * // -> '<div><span>felix: cat</span><span><b>fido</b>: dog</span></div>'
9204
9257
  * ```
9205
9258
  * @category Store components
9206
- * @since v2.0
9259
+ * @since v2.0.0
9207
9260
  */
9208
9261
  SortedTableView: (props: SortedTableProps<Schemas>) => ComponentReturnType;
9209
9262
 
@@ -9233,7 +9286,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
9233
9286
  *
9234
9287
  * This component uses the useRowIds hook under the covers, which means that any
9235
9288
  * changes to the structure of the Table will cause a re-render.
9236
- *
9237
9289
  * @param props The props for this component.
9238
9290
  * @returns A rendering of the Table, or nothing, if not present.
9239
9291
  * @example
@@ -9348,7 +9400,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
9348
9400
  *
9349
9401
  * This component uses the useTableIds hook under the covers, which means that
9350
9402
  * any changes to the structure of the Store will cause a re-render.
9351
- *
9352
9403
  * @param props The props for this component.
9353
9404
  * @returns A rendering of the Store, or nothing, if not present.
9354
9405
  * @example
@@ -9460,7 +9511,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
9460
9511
  *
9461
9512
  * This component uses the useValue hook under the covers, which means that any
9462
9513
  * changes to the specified Value will cause a re-render.
9463
- *
9464
9514
  * @param props The props for this component.
9465
9515
  * @returns A rendering of the Value, or nothing, if not present.
9466
9516
  * @example
@@ -9532,7 +9582,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
9532
9582
  * // -> '<span></span>'
9533
9583
  * ```
9534
9584
  * @category Store components
9535
- * @since v3.0
9585
+ * @since v3.0.0
9536
9586
  */
9537
9587
  ValueView: (props: ValueProps<Schemas>) => ComponentReturnType;
9538
9588
 
@@ -9562,7 +9612,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
9562
9612
  *
9563
9613
  * This component uses the useValueIds hook under the covers, which means that
9564
9614
  * any changes to the Store's Values will cause a re-render.
9565
- *
9566
9615
  * @param props The props for this component.
9567
9616
  * @returns A rendering of the Values, or nothing, if not present.
9568
9617
  * @example
@@ -9644,7 +9693,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
9644
9693
  * // -> '<div><span><b>open</b>: true</span><span>employees: 3</span></div>'
9645
9694
  * ```
9646
9695
  * @category Store components
9647
- * @since v3.0
9696
+ * @since v3.0.0
9648
9697
  */
9649
9698
  ValuesView: (props: ValuesProps<Schemas>) => ComponentReturnType;
9650
9699
 
@@ -9664,7 +9713,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
9664
9713
  *
9665
9714
  * This component uses the useMetric hook under the covers, which means that any
9666
9715
  * changes to the Metric will cause a re-render.
9667
- *
9668
9716
  * @param props The props for this component.
9669
9717
  * @returns A rendering of the Metric, or nothing, if not present.
9670
9718
  * @example
@@ -9781,7 +9829,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
9781
9829
  *
9782
9830
  * This component uses the useSliceRowIds hook under the covers, which means
9783
9831
  * that any changes to the structure of the Slice will cause a re-render.
9784
- *
9785
9832
  * @param props The props for this component.
9786
9833
  * @returns A rendering of the Slice, or nothing, if not present.
9787
9834
  * @example
@@ -9914,7 +9961,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
9914
9961
  *
9915
9962
  * This component uses the useSliceIds hook under the covers, which means that
9916
9963
  * any changes to the structure of the Index will cause a re-render.
9917
- *
9918
9964
  * @param props The props for this component.
9919
9965
  * @returns A rendering of the Index, or nothing, if not present.
9920
9966
  * @example
@@ -10043,7 +10089,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
10043
10089
  * This component uses the useRemoteRowId hook under the covers, which means
10044
10090
  * that any changes to the remote Row Id in the Relationship will cause a
10045
10091
  * re-render.
10046
- *
10047
10092
  * @param props The props for this component.
10048
10093
  * @returns A rendering of the remote Row, or nothing, if not present.
10049
10094
  * @example
@@ -10183,7 +10228,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
10183
10228
  * This component uses the useLocalRowIds hook under the covers, which means
10184
10229
  * that any changes to the local Row Ids in the Relationship will cause a
10185
10230
  * re-render.
10186
- *
10187
10231
  * @param props The props for this component.
10188
10232
  * @returns A rendering of the local Row objects, or nothing, if not present.
10189
10233
  * @example
@@ -10324,7 +10368,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
10324
10368
  * This component uses the useLocalRowIds hook under the covers, which means
10325
10369
  * that any changes to the local Row Ids in the Relationship will cause a
10326
10370
  * re-render.
10327
- *
10328
10371
  * @param props The props for this component.
10329
10372
  * @returns A rendering of the local Row objects, or nothing, if not present.
10330
10373
  * @example
@@ -10467,7 +10510,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
10467
10510
  *
10468
10511
  * This component uses the useResultCell hook under the covers, which means that
10469
10512
  * any changes to the specified Cell will cause a re-render.
10470
- *
10471
10513
  * @param props The props for this component.
10472
10514
  * @returns A rendering of the result Cell, or nothing, if not present.
10473
10515
  * @example
@@ -10570,7 +10612,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
10570
10612
  * // -> '<span></span>'
10571
10613
  * ```
10572
10614
  * @category Queries components
10573
- * @since v2.0
10615
+ * @since v2.0.0
10574
10616
  */
10575
10617
  ResultCellView: (props: ResultCellProps<Schemas>) => ComponentReturnType;
10576
10618
 
@@ -10602,7 +10644,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
10602
10644
  *
10603
10645
  * This component uses the useResultCellIds hook under the covers, which means
10604
10646
  * that any changes to the structure of the result Row will cause a re-render.
10605
- *
10606
10647
  * @param props The props for this component.
10607
10648
  * @returns A rendering of the result Row, or nothing, if not present.
10608
10649
  * @example
@@ -10723,7 +10764,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
10723
10764
  * // -> '<div><span><b>species</b>: dog</span><span>color: brown</span></div>'
10724
10765
  * ```
10725
10766
  * @category Queries components
10726
- * @since v2.0
10767
+ * @since v2.0.0
10727
10768
  */
10728
10769
  ResultRowView: (props: ResultRowProps<Schemas>) => ComponentReturnType;
10729
10770
 
@@ -10758,7 +10799,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
10758
10799
  * This component uses the useResultSortedRowIds hook under the covers, which
10759
10800
  * means that any changes to the structure or sorting of the result Table will
10760
10801
  * cause a re-render.
10761
- *
10762
10802
  * @param props The props for this component.
10763
10803
  * @returns A rendering of the result Table, or nothing, if not present.
10764
10804
  * @example
@@ -10869,7 +10909,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
10869
10909
  * // -> '<div><span>felix: black</span><span><b>fido</b>: brown</span></div>'
10870
10910
  * ```
10871
10911
  * @category Queries components
10872
- * @since v2.0
10912
+ * @since v2.0.0
10873
10913
  */
10874
10914
  ResultSortedTableView: (
10875
10915
  props: ResultSortedTableProps<Schemas>,
@@ -10899,7 +10939,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
10899
10939
  *
10900
10940
  * This component uses the useResultRowIds hook under the covers, which means
10901
10941
  * that any changes to the structure of the result Table will cause a re-render.
10902
- *
10903
10942
  * @param props The props for this component.
10904
10943
  * @returns A rendering of the result Table, or nothing, if not present.
10905
10944
  * @example
@@ -11000,7 +11039,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
11000
11039
  * // -> '<div><span><b>fido</b>: brown</span><span>felix: black</span></div>'
11001
11040
  * ```
11002
11041
  * @category Queries components
11003
- * @since v2.0
11042
+ * @since v2.0.0
11004
11043
  */
11005
11044
  ResultTableView: (props: ResultTableProps<Schemas>) => ComponentReturnType;
11006
11045
 
@@ -11022,7 +11061,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
11022
11061
  *
11023
11062
  * This component uses the useCheckpoint hook under the covers, which means that
11024
11063
  * any changes to the local Row Ids in the Relationship will cause a re-render.
11025
- *
11026
11064
  * @param props The props for this component.
11027
11065
  * @returns A rendering of the checkpoint: its label if present, or Id.
11028
11066
  * @example
@@ -11087,7 +11125,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
11087
11125
  * This component uses the useCheckpointIds hook under the covers, which means
11088
11126
  * that any changes to the checkpoint Ids in the Checkpoints object will cause a
11089
11127
  * re-render.
11090
- *
11091
11128
  * @param props The props for this component.
11092
11129
  * @returns A rendering of the previous checkpoints, if present.
11093
11130
  * @example
@@ -11231,7 +11268,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
11231
11268
  * This component uses the useCheckpointIds hook under the covers, which means
11232
11269
  * that any changes to the current checkpoint Id in the Checkpoints object will
11233
11270
  * cause a re-render.
11234
- *
11235
11271
  * @param props The props for this component.
11236
11272
  * @returns A rendering of the current checkpoint, if present.
11237
11273
  * @example
@@ -11377,7 +11413,6 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
11377
11413
  * This component uses the useCheckpointIds hook under the covers, which means
11378
11414
  * that any changes to the checkpoint Ids in the Checkpoints object will cause a
11379
11415
  * re-render.
11380
- *
11381
11416
  * @param props The props for this component.
11382
11417
  * @returns A rendering of the future checkpoints, if present.
11383
11418
  * @example