tinybase 5.0.0-beta.27 → 5.0.0-beta.28

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 (249) hide show
  1. package/@types/_internal/ui-react/with-schemas/index.d.cts +274 -0
  2. package/@types/_internal/ui-react/with-schemas/index.d.ts +274 -0
  3. package/@types/checkpoints/index.d.cts +30 -1
  4. package/@types/checkpoints/index.d.ts +30 -1
  5. package/@types/checkpoints/with-schemas/index.d.cts +30 -1
  6. package/@types/checkpoints/with-schemas/index.d.ts +30 -1
  7. package/@types/common/index.d.cts +9 -0
  8. package/@types/common/index.d.ts +9 -0
  9. package/@types/common/with-schemas/index.d.cts +9 -0
  10. package/@types/common/with-schemas/index.d.ts +9 -0
  11. package/@types/index.d.cts +1 -0
  12. package/@types/index.d.ts +1 -0
  13. package/@types/indexes/index.d.cts +32 -1
  14. package/@types/indexes/index.d.ts +32 -1
  15. package/@types/indexes/with-schemas/index.d.cts +32 -1
  16. package/@types/indexes/with-schemas/index.d.ts +32 -1
  17. package/@types/mergeable-store/index.d.cts +0 -2
  18. package/@types/mergeable-store/index.d.ts +0 -2
  19. package/@types/mergeable-store/with-schemas/index.d.cts +2 -2
  20. package/@types/mergeable-store/with-schemas/index.d.ts +2 -2
  21. package/@types/metrics/index.d.cts +30 -4
  22. package/@types/metrics/index.d.ts +30 -4
  23. package/@types/metrics/with-schemas/index.d.cts +30 -4
  24. package/@types/metrics/with-schemas/index.d.ts +30 -4
  25. package/@types/persisters/index.d.cts +87 -25
  26. package/@types/persisters/index.d.ts +87 -25
  27. package/@types/persisters/persister-automerge/index.d.cts +4 -4
  28. package/@types/persisters/persister-automerge/index.d.ts +4 -4
  29. package/@types/persisters/persister-automerge/with-schemas/index.d.cts +4 -4
  30. package/@types/persisters/persister-automerge/with-schemas/index.d.ts +4 -4
  31. package/@types/persisters/persister-browser/index.d.cts +7 -4
  32. package/@types/persisters/persister-browser/index.d.ts +7 -4
  33. package/@types/persisters/persister-browser/with-schemas/index.d.cts +7 -4
  34. package/@types/persisters/persister-browser/with-schemas/index.d.ts +7 -4
  35. package/@types/persisters/persister-cr-sqlite-wasm/index.d.cts +4 -4
  36. package/@types/persisters/persister-cr-sqlite-wasm/index.d.ts +4 -4
  37. package/@types/persisters/persister-cr-sqlite-wasm/with-schemas/index.d.cts +4 -4
  38. package/@types/persisters/persister-cr-sqlite-wasm/with-schemas/index.d.ts +4 -4
  39. package/@types/persisters/persister-electric-sql/index.d.cts +4 -4
  40. package/@types/persisters/persister-electric-sql/index.d.ts +4 -4
  41. package/@types/persisters/persister-electric-sql/with-schemas/index.d.cts +4 -4
  42. package/@types/persisters/persister-electric-sql/with-schemas/index.d.ts +4 -4
  43. package/@types/persisters/persister-expo-sqlite/index.d.cts +4 -4
  44. package/@types/persisters/persister-expo-sqlite/index.d.ts +4 -4
  45. package/@types/persisters/persister-expo-sqlite/with-schemas/index.d.cts +4 -4
  46. package/@types/persisters/persister-expo-sqlite/with-schemas/index.d.ts +4 -4
  47. package/@types/persisters/persister-file/index.d.cts +6 -4
  48. package/@types/persisters/persister-file/index.d.ts +6 -4
  49. package/@types/persisters/persister-file/with-schemas/index.d.cts +6 -4
  50. package/@types/persisters/persister-file/with-schemas/index.d.ts +6 -4
  51. package/@types/persisters/persister-indexed-db/index.d.cts +5 -4
  52. package/@types/persisters/persister-indexed-db/index.d.ts +5 -4
  53. package/@types/persisters/persister-indexed-db/with-schemas/index.d.cts +5 -4
  54. package/@types/persisters/persister-indexed-db/with-schemas/index.d.ts +5 -4
  55. package/@types/persisters/persister-libsql/index.d.cts +5 -4
  56. package/@types/persisters/persister-libsql/index.d.ts +5 -4
  57. package/@types/persisters/persister-libsql/with-schemas/index.d.cts +5 -4
  58. package/@types/persisters/persister-libsql/with-schemas/index.d.ts +5 -4
  59. package/@types/persisters/persister-partykit-client/index.d.cts +12 -6
  60. package/@types/persisters/persister-partykit-client/index.d.ts +12 -6
  61. package/@types/persisters/persister-partykit-client/with-schemas/index.d.cts +12 -6
  62. package/@types/persisters/persister-partykit-client/with-schemas/index.d.ts +12 -6
  63. package/@types/persisters/persister-partykit-server/index.d.cts +11 -3
  64. package/@types/persisters/persister-partykit-server/index.d.ts +11 -3
  65. package/@types/persisters/persister-partykit-server/with-schemas/index.d.cts +11 -3
  66. package/@types/persisters/persister-partykit-server/with-schemas/index.d.ts +11 -3
  67. package/@types/persisters/persister-powersync/index.d.cts +5 -4
  68. package/@types/persisters/persister-powersync/index.d.ts +5 -4
  69. package/@types/persisters/persister-powersync/with-schemas/index.d.cts +5 -4
  70. package/@types/persisters/persister-powersync/with-schemas/index.d.ts +5 -4
  71. package/@types/persisters/persister-remote/index.d.cts +6 -4
  72. package/@types/persisters/persister-remote/index.d.ts +6 -4
  73. package/@types/persisters/persister-remote/with-schemas/index.d.cts +6 -4
  74. package/@types/persisters/persister-remote/with-schemas/index.d.ts +6 -4
  75. package/@types/persisters/persister-sqlite-wasm/index.d.cts +4 -4
  76. package/@types/persisters/persister-sqlite-wasm/index.d.ts +4 -4
  77. package/@types/persisters/persister-sqlite-wasm/with-schemas/index.d.cts +4 -4
  78. package/@types/persisters/persister-sqlite-wasm/with-schemas/index.d.ts +4 -4
  79. package/@types/persisters/persister-sqlite3/index.d.cts +4 -4
  80. package/@types/persisters/persister-sqlite3/index.d.ts +4 -4
  81. package/@types/persisters/persister-sqlite3/with-schemas/index.d.cts +4 -4
  82. package/@types/persisters/persister-sqlite3/with-schemas/index.d.ts +4 -4
  83. package/@types/persisters/persister-yjs/index.d.cts +4 -4
  84. package/@types/persisters/persister-yjs/index.d.ts +4 -4
  85. package/@types/persisters/persister-yjs/with-schemas/index.d.cts +4 -4
  86. package/@types/persisters/persister-yjs/with-schemas/index.d.ts +4 -4
  87. package/@types/persisters/with-schemas/index.d.cts +87 -25
  88. package/@types/persisters/with-schemas/index.d.ts +87 -25
  89. package/@types/queries/index.d.cts +64 -4
  90. package/@types/queries/index.d.ts +64 -4
  91. package/@types/queries/with-schemas/index.d.cts +64 -4
  92. package/@types/queries/with-schemas/index.d.ts +64 -4
  93. package/@types/relationships/index.d.cts +34 -1
  94. package/@types/relationships/index.d.ts +34 -1
  95. package/@types/relationships/with-schemas/index.d.cts +34 -1
  96. package/@types/relationships/with-schemas/index.d.ts +34 -1
  97. package/@types/store/index.d.cts +125 -0
  98. package/@types/store/index.d.ts +125 -0
  99. package/@types/store/with-schemas/index.d.cts +125 -0
  100. package/@types/store/with-schemas/index.d.ts +125 -0
  101. package/@types/synchronizers/index.d.cts +32 -10
  102. package/@types/synchronizers/index.d.ts +32 -10
  103. package/@types/synchronizers/synchronizer-broadcast-channel/index.d.cts +114 -0
  104. package/@types/synchronizers/synchronizer-broadcast-channel/index.d.ts +114 -0
  105. package/@types/synchronizers/synchronizer-broadcast-channel/with-schemas/index.d.cts +128 -0
  106. package/@types/synchronizers/synchronizer-broadcast-channel/with-schemas/index.d.ts +128 -0
  107. package/@types/synchronizers/synchronizer-local/index.d.cts +16 -17
  108. package/@types/synchronizers/synchronizer-local/index.d.ts +16 -17
  109. package/@types/synchronizers/synchronizer-local/with-schemas/index.d.cts +16 -17
  110. package/@types/synchronizers/synchronizer-local/with-schemas/index.d.ts +16 -17
  111. package/@types/synchronizers/synchronizer-ws-client/index.d.cts +66 -6
  112. package/@types/synchronizers/synchronizer-ws-client/index.d.ts +66 -6
  113. package/@types/synchronizers/synchronizer-ws-client/with-schemas/index.d.cts +77 -6
  114. package/@types/synchronizers/synchronizer-ws-client/with-schemas/index.d.ts +77 -6
  115. package/@types/synchronizers/synchronizer-ws-server/index.d.cts +486 -7
  116. package/@types/synchronizers/synchronizer-ws-server/index.d.ts +486 -7
  117. package/@types/synchronizers/synchronizer-ws-server/with-schemas/index.d.cts +486 -7
  118. package/@types/synchronizers/synchronizer-ws-server/with-schemas/index.d.ts +486 -7
  119. package/@types/synchronizers/with-schemas/index.d.cts +29 -11
  120. package/@types/synchronizers/with-schemas/index.d.ts +29 -11
  121. package/@types/tools/index.d.cts +22 -0
  122. package/@types/tools/index.d.ts +22 -0
  123. package/@types/tools/with-schemas/index.d.cts +22 -0
  124. package/@types/tools/with-schemas/index.d.ts +22 -0
  125. package/@types/ui-react/index.d.cts +375 -1
  126. package/@types/ui-react/index.d.ts +375 -1
  127. package/@types/ui-react/with-schemas/index.d.cts +100 -1
  128. package/@types/ui-react/with-schemas/index.d.ts +100 -1
  129. package/@types/ui-react-dom/index.d.cts +112 -0
  130. package/@types/ui-react-dom/index.d.ts +112 -0
  131. package/@types/ui-react-dom/with-schemas/index.d.cts +112 -0
  132. package/@types/ui-react-dom/with-schemas/index.d.ts +112 -0
  133. package/@types/ui-react-inspector/index.d.cts +6 -2
  134. package/@types/ui-react-inspector/index.d.ts +6 -2
  135. package/@types/ui-react-inspector/with-schemas/index.d.cts +118 -2
  136. package/@types/ui-react-inspector/with-schemas/index.d.ts +118 -2
  137. package/@types/with-schemas/index.d.cts +1 -0
  138. package/@types/with-schemas/index.d.ts +1 -0
  139. package/cjs/es6/index.cjs +2 -2
  140. package/cjs/es6/min/synchronizers/synchronizer-broadcast-channel/index.cjs +1 -0
  141. package/cjs/es6/min/synchronizers/synchronizer-broadcast-channel/index.cjs.gz +0 -0
  142. package/cjs/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs +1 -0
  143. package/cjs/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs.gz +0 -0
  144. package/cjs/es6/min/synchronizers/synchronizer-ws-client/index.cjs +1 -1
  145. package/cjs/es6/min/synchronizers/synchronizer-ws-client/index.cjs.gz +0 -0
  146. package/cjs/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.cjs +1 -1
  147. package/cjs/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.cjs.gz +0 -0
  148. package/cjs/es6/synchronizers/index.cjs +2 -2
  149. package/cjs/es6/synchronizers/synchronizer-broadcast-channel/index.cjs +628 -0
  150. package/cjs/es6/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs +628 -0
  151. package/cjs/es6/synchronizers/synchronizer-local/index.cjs +4 -4
  152. package/cjs/es6/synchronizers/synchronizer-local/with-schemas/index.cjs +4 -4
  153. package/cjs/es6/synchronizers/synchronizer-ws-client/index.cjs +15 -21
  154. package/cjs/es6/synchronizers/synchronizer-ws-client/with-schemas/index.cjs +15 -21
  155. package/cjs/es6/synchronizers/with-schemas/index.cjs +2 -2
  156. package/cjs/es6/with-schemas/index.cjs +2 -2
  157. package/cjs/index.cjs +2 -2
  158. package/cjs/min/synchronizers/synchronizer-broadcast-channel/index.cjs +1 -0
  159. package/cjs/min/synchronizers/synchronizer-broadcast-channel/index.cjs.gz +0 -0
  160. package/cjs/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs +1 -0
  161. package/cjs/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs.gz +0 -0
  162. package/cjs/min/synchronizers/synchronizer-ws-client/index.cjs +1 -1
  163. package/cjs/min/synchronizers/synchronizer-ws-client/index.cjs.gz +0 -0
  164. package/cjs/min/synchronizers/synchronizer-ws-client/with-schemas/index.cjs +1 -1
  165. package/cjs/min/synchronizers/synchronizer-ws-client/with-schemas/index.cjs.gz +0 -0
  166. package/cjs/synchronizers/index.cjs +2 -2
  167. package/cjs/synchronizers/synchronizer-broadcast-channel/index.cjs +500 -0
  168. package/cjs/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs +500 -0
  169. package/cjs/synchronizers/synchronizer-local/index.cjs +4 -4
  170. package/cjs/synchronizers/synchronizer-local/with-schemas/index.cjs +4 -4
  171. package/cjs/synchronizers/synchronizer-ws-client/index.cjs +15 -21
  172. package/cjs/synchronizers/synchronizer-ws-client/with-schemas/index.cjs +15 -21
  173. package/cjs/synchronizers/with-schemas/index.cjs +2 -2
  174. package/cjs/with-schemas/index.cjs +2 -2
  175. package/es6/index.js +2 -2
  176. package/es6/min/synchronizers/synchronizer-broadcast-channel/index.js +1 -0
  177. package/es6/min/synchronizers/synchronizer-broadcast-channel/index.js.gz +0 -0
  178. package/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +1 -0
  179. package/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js.gz +0 -0
  180. package/es6/min/synchronizers/synchronizer-ws-client/index.js +1 -1
  181. package/es6/min/synchronizers/synchronizer-ws-client/index.js.gz +0 -0
  182. package/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.js +1 -1
  183. package/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.js.gz +0 -0
  184. package/es6/synchronizers/index.js +2 -2
  185. package/es6/synchronizers/synchronizer-broadcast-channel/index.js +626 -0
  186. package/es6/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +626 -0
  187. package/es6/synchronizers/synchronizer-local/index.js +4 -4
  188. package/es6/synchronizers/synchronizer-local/with-schemas/index.js +4 -4
  189. package/es6/synchronizers/synchronizer-ws-client/index.js +15 -21
  190. package/es6/synchronizers/synchronizer-ws-client/with-schemas/index.js +15 -21
  191. package/es6/synchronizers/with-schemas/index.js +2 -2
  192. package/es6/with-schemas/index.js +2 -2
  193. package/index.js +2 -2
  194. package/min/synchronizers/synchronizer-broadcast-channel/index.js +1 -0
  195. package/min/synchronizers/synchronizer-broadcast-channel/index.js.gz +0 -0
  196. package/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +1 -0
  197. package/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js.gz +0 -0
  198. package/min/synchronizers/synchronizer-ws-client/index.js +1 -1
  199. package/min/synchronizers/synchronizer-ws-client/index.js.gz +0 -0
  200. package/min/synchronizers/synchronizer-ws-client/with-schemas/index.js +1 -1
  201. package/min/synchronizers/synchronizer-ws-client/with-schemas/index.js.gz +0 -0
  202. package/package.json +105 -1
  203. package/readme.md +9 -9
  204. package/releases.md +4 -4
  205. package/synchronizers/index.js +2 -2
  206. package/synchronizers/synchronizer-broadcast-channel/index.js +498 -0
  207. package/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +498 -0
  208. package/synchronizers/synchronizer-local/index.js +4 -4
  209. package/synchronizers/synchronizer-local/with-schemas/index.js +4 -4
  210. package/synchronizers/synchronizer-ws-client/index.js +15 -21
  211. package/synchronizers/synchronizer-ws-client/with-schemas/index.js +15 -21
  212. package/synchronizers/with-schemas/index.js +2 -2
  213. package/umd/es6/index.js +2 -2
  214. package/umd/es6/min/synchronizers/synchronizer-broadcast-channel/index.js +1 -0
  215. package/umd/es6/min/synchronizers/synchronizer-broadcast-channel/index.js.gz +0 -0
  216. package/umd/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +1 -0
  217. package/umd/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js.gz +0 -0
  218. package/umd/es6/min/synchronizers/synchronizer-ws-client/index.js +1 -1
  219. package/umd/es6/min/synchronizers/synchronizer-ws-client/index.js.gz +0 -0
  220. package/umd/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.js +1 -1
  221. package/umd/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.js.gz +0 -0
  222. package/umd/es6/synchronizers/index.js +2 -2
  223. package/umd/es6/synchronizers/synchronizer-broadcast-channel/index.js +654 -0
  224. package/umd/es6/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +654 -0
  225. package/umd/es6/synchronizers/synchronizer-local/index.js +4 -4
  226. package/umd/es6/synchronizers/synchronizer-local/with-schemas/index.js +4 -4
  227. package/umd/es6/synchronizers/synchronizer-ws-client/index.js +15 -21
  228. package/umd/es6/synchronizers/synchronizer-ws-client/with-schemas/index.js +15 -21
  229. package/umd/es6/synchronizers/with-schemas/index.js +2 -2
  230. package/umd/es6/with-schemas/index.js +2 -2
  231. package/umd/index.js +2 -2
  232. package/umd/min/synchronizers/synchronizer-broadcast-channel/index.js +1 -0
  233. package/umd/min/synchronizers/synchronizer-broadcast-channel/index.js.gz +0 -0
  234. package/umd/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +1 -0
  235. package/umd/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js.gz +0 -0
  236. package/umd/min/synchronizers/synchronizer-ws-client/index.js +1 -1
  237. package/umd/min/synchronizers/synchronizer-ws-client/index.js.gz +0 -0
  238. package/umd/min/synchronizers/synchronizer-ws-client/with-schemas/index.js +1 -1
  239. package/umd/min/synchronizers/synchronizer-ws-client/with-schemas/index.js.gz +0 -0
  240. package/umd/synchronizers/index.js +2 -2
  241. package/umd/synchronizers/synchronizer-broadcast-channel/index.js +516 -0
  242. package/umd/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +516 -0
  243. package/umd/synchronizers/synchronizer-local/index.js +4 -4
  244. package/umd/synchronizers/synchronizer-local/with-schemas/index.js +4 -4
  245. package/umd/synchronizers/synchronizer-ws-client/index.js +15 -21
  246. package/umd/synchronizers/synchronizer-ws-client/with-schemas/index.js +15 -21
  247. package/umd/synchronizers/with-schemas/index.js +2 -2
  248. package/umd/with-schemas/index.js +2 -2
  249. package/with-schemas/index.js +2 -2
@@ -46,11 +46,15 @@ export type CustomCell<
46
46
  /**
47
47
  * An optional string that will be used as the label at the top of the table
48
48
  * column for this Cell.
49
+ * @category Prop
50
+ * @since v4.1.0
49
51
  */
50
52
  label?: string;
51
53
  /**
52
54
  * An optional custom component for rendering each Cell in the Table (to
53
55
  * override the default CellView component).
56
+ * @category Prop
57
+ * @since v4.1.0
54
58
  */
55
59
  component?: ComponentType<
56
60
  CellPropsForTableIdAndCellId<Schemas, TableId, CellId>
@@ -58,6 +62,8 @@ export type CustomCell<
58
62
  /**
59
63
  * An optional function for generating extra props for each custom Cell
60
64
  * component based on Row and Cell Id.
65
+ * @category Prop
66
+ * @since v4.1.0
61
67
  */
62
68
  getComponentProps?: (rowId: Id, cellId: CellId) => ExtraProps;
63
69
  };
@@ -72,16 +78,22 @@ export type CustomResultCell<Schemas extends OptionalSchemas> = {
72
78
  /**
73
79
  * An optional string that will be used as the label at the top of the table
74
80
  * column for this Cell.
81
+ * @category Prop
82
+ * @since v4.1.0
75
83
  */
76
84
  label?: string;
77
85
  /**
78
86
  * An optional custom component for rendering each Cell in the ResultTable (to
79
87
  * override the default ResultCellView component).
88
+ * @category Prop
89
+ * @since v4.1.0
80
90
  */
81
91
  component?: ComponentType<ResultCellProps<Schemas>>;
82
92
  /**
83
93
  * An optional function for generating extra props for each custom Cell
84
94
  * component based on Row and Cell Id.
95
+ * @category Prop
96
+ * @since v4.1.0
85
97
  */
86
98
  getComponentProps?: (rowId: Id, cellId: Id) => ExtraProps;
87
99
  };
@@ -96,16 +108,22 @@ export type CustomResultCell<Schemas extends OptionalSchemas> = {
96
108
  export type HtmlTableProps = {
97
109
  /**
98
110
  * A string className to use on the root of the resulting element.
111
+ * @category Prop
112
+ * @since v4.1.0
99
113
  */
100
114
  readonly className?: string;
101
115
  /**
102
116
  * Whether a header row should be rendered at the top of the table, defaulting
103
117
  * to `true`.
118
+ * @category Prop
119
+ * @since v4.1.0
104
120
  */
105
121
  readonly headerRow?: boolean;
106
122
  /**
107
123
  * Whether an Id column should be rendered on the left of the table,
108
124
  * defaulting to `true`.
125
+ * @category Prop
126
+ * @since v4.1.0
109
127
  */
110
128
  readonly idColumn?: boolean;
111
129
  };
@@ -126,17 +144,23 @@ export type TableInHtmlTableProps<
126
144
  ? {
127
145
  /**
128
146
  * The Id of the Table in the Store to be rendered.
147
+ * @category Prop
148
+ * @since v4.1.0
129
149
  */
130
150
  readonly tableId: TableId;
131
151
  /**
132
152
  * The Store to be accessed: omit for the default context Store, provide an Id
133
153
  * for a named context Store, or provide an explicit reference.
154
+ * @category Prop
155
+ * @since v4.1.0
134
156
  */
135
157
  readonly store?: StoreOrStoreId<Schemas>;
136
158
  /**
137
159
  * Whether the Cells should be editable. This affects the default CellView
138
160
  * component (to use the EditableCellView component instead) but of course
139
161
  * will not affect custom Cell components if you have set them.
162
+ * @category Prop
163
+ * @since v4.1.0
140
164
  */
141
165
  readonly editable?: boolean;
142
166
  /**
@@ -145,6 +169,8 @@ export type TableInHtmlTableProps<
145
169
  * Cell Ids as keys, and with a value that can either be a string label to
146
170
  * show in the column header, or a CustomCell object to further configure the
147
171
  * column.
172
+ * @category Prop
173
+ * @since v4.1.0
148
174
  */
149
175
  readonly customCells?:
150
176
  | CellIdFromSchema<Schemas[0], TableId>[]
@@ -173,34 +199,48 @@ export type SortedTableInHtmlTableProps<
173
199
  ? {
174
200
  /**
175
201
  * The Id of the Table in the Store to be rendered.
202
+ * @category Prop
203
+ * @since v4.1.0
176
204
  */
177
205
  readonly tableId: TableId;
178
206
  /**
179
207
  * The Id of the Cell whose values are used for the sorting. If omitted, the
180
208
  * view will sort the Row Id itself.
209
+ * @category Prop
210
+ * @since v4.1.0
181
211
  */
182
212
  readonly cellId?: CellIdFromSchema<Schemas[0], TableId>;
183
213
  /**
184
214
  * Whether the sorting should be in descending order.
215
+ * @category Prop
216
+ * @since v4.1.0
185
217
  */
186
218
  readonly descending?: boolean;
187
219
  /**
188
220
  * The number of Row Ids to skip for pagination purposes.
221
+ * @category Prop
222
+ * @since v4.1.0
189
223
  */
190
224
  readonly offset?: number;
191
225
  /**
192
226
  * The maximum number of Row Ids to return.
227
+ * @category Prop
228
+ * @since v4.1.0
193
229
  */
194
230
  readonly limit?: number;
195
231
  /**
196
232
  * The Store to be accessed: omit for the default context Store, provide an Id
197
233
  * for a named context Store, or provide an explicit reference.
234
+ * @category Prop
235
+ * @since v4.1.0
198
236
  */
199
237
  readonly store?: StoreOrStoreId<Schemas>;
200
238
  /**
201
239
  * Whether the Cells should be editable. This affects the default CellView
202
240
  * component (to use the EditableCellView component instead) but of course
203
241
  * will not affect custom Cell components if you have set them.
242
+ * @category Prop
243
+ * @since v4.1.0
204
244
  */
205
245
  readonly editable?: boolean;
206
246
  /**
@@ -209,6 +249,8 @@ export type SortedTableInHtmlTableProps<
209
249
  * Cell Ids as keys, and with a value that can either be a string label to
210
250
  * show in the column header, or a CustomCell object to further configure the
211
251
  * column.
252
+ * @category Prop
253
+ * @since v4.1.0
212
254
  */
213
255
  readonly customCells?:
214
256
  | CellIdFromSchema<Schemas[0], TableId>[]
@@ -220,17 +262,23 @@ export type SortedTableInHtmlTableProps<
220
262
  /**
221
263
  * Whether the table should be interactive such that clicking a header changes
222
264
  * the sorting and/or direction.
265
+ * @category Prop
266
+ * @since v4.1.0
223
267
  */
224
268
  readonly sortOnClick?: boolean;
225
269
  /**
226
270
  * Either `true` to show the default SortedTablePaginator for the Table, or
227
271
  * provide your own paginator component that takes SortedTablePaginatorProps.
272
+ * @category Prop
273
+ * @since v4.1.0
228
274
  */
229
275
  readonly paginator?: boolean | ComponentType<SortedTablePaginatorProps>;
230
276
  /**
231
277
  * A function that is called whenever the sorting or pagination of the Table
232
278
  * is changed by the user, invoked with the sorted Cell Id, whether descending
233
279
  * or not, and the offset of the pagination.
280
+ * @category Prop
281
+ * @since v4.1.0
234
282
  */
235
283
  readonly onChange?: (
236
284
  sortAndOffset: [
@@ -253,22 +301,30 @@ export type ValuesInHtmlTableProps<Schemas extends OptionalSchemas> = {
253
301
  /**
254
302
  * The Store to be accessed: omit for the default context Store, provide an Id
255
303
  * for a named context Store, or provide an explicit reference.
304
+ * @category Prop
305
+ * @since v4.1.0
256
306
  */
257
307
  readonly store?: StoreOrStoreId<Schemas>;
258
308
  /**
259
309
  * Whether the Values should be editable. This affects the default ValueView
260
310
  * component (to use the EditableValueView component instead) but of course
261
311
  * will not affect a custom valueComponent if you have set one.
312
+ * @category Prop
313
+ * @since v4.1.0
262
314
  */
263
315
  readonly editable?: boolean;
264
316
  /**
265
317
  * A custom component for rendering each Value in the Store (to override the
266
318
  * default ValueView component).
319
+ * @category Prop
320
+ * @since v4.1.0
267
321
  */
268
322
  readonly valueComponent?: ComponentType<ValueProps<Schemas>>;
269
323
  /**
270
324
  * A function for generating extra props for each custom Value component based
271
325
  * on its Id.
326
+ * @category Prop
327
+ * @since v4.1.0
272
328
  */
273
329
  readonly getValueComponentProps?: (valueId: Id) => ExtraProps;
274
330
  };
@@ -282,22 +338,30 @@ export type ValuesInHtmlTableProps<Schemas extends OptionalSchemas> = {
282
338
  export type SliceInHtmlTableProps<Schemas extends OptionalSchemas> = {
283
339
  /**
284
340
  * The Id of the Index in the Indexes object.
341
+ * @category Prop
342
+ * @since v4.1.0
285
343
  */
286
344
  readonly indexId: Id;
287
345
  /**
288
346
  * The Id of the Slice in the Index to be rendered.
347
+ * @category Prop
348
+ * @since v4.1.0
289
349
  */
290
350
  readonly sliceId: Id;
291
351
  /**
292
352
  * The Indexes object to be accessed: omit for the default context Indexes
293
353
  * object, provide an Id for a named context Indexes object, or provide an
294
354
  * explicit reference.
355
+ * @category Prop
356
+ * @since v4.1.0
295
357
  */
296
358
  readonly indexes?: IndexesOrIndexesId<Schemas>;
297
359
  /**
298
360
  * Whether the Cells should be editable. This affects the default CellView
299
361
  * component (to use the EditableCellView component instead) but of course
300
362
  * will not affect custom Cell components if you have set them.
363
+ * @category Prop
364
+ * @since v4.1.0
301
365
  */
302
366
  readonly editable?: boolean;
303
367
  /**
@@ -306,6 +370,8 @@ export type SliceInHtmlTableProps<Schemas extends OptionalSchemas> = {
306
370
  * Cell Ids as keys, and with a value that can either be a string label to
307
371
  * show in the column header, or a CustomCell object to further configure the
308
372
  * column.
373
+ * @category Prop
374
+ * @since v4.1.0
309
375
  */
310
376
  readonly customCells?:
311
377
  | Ids
@@ -328,18 +394,24 @@ export type RelationshipInHtmlTableProps<Schemas extends OptionalSchemas> = {
328
394
  /**
329
395
  * The Id of the relationship in the Relationships object for which the
330
396
  * relationship Table Rows will be rendered.
397
+ * @category Prop
398
+ * @since v4.1.0
331
399
  */
332
400
  readonly relationshipId: Id;
333
401
  /**
334
402
  * The Relationships object to be accessed: omit for the default context
335
403
  * Relationships object, provide an Id for a named context Relationships
336
404
  * object, or provide an explicit reference.
405
+ * @category Prop
406
+ * @since v4.1.0
337
407
  */
338
408
  readonly relationships?: RelationshipsOrRelationshipsId<Schemas>;
339
409
  /**
340
410
  * Whether the Cells should be editable. This affects the default CellView
341
411
  * component (to use the EditableCellView component instead) but of course
342
412
  * will not affect custom Cell components if you have set them.
413
+ * @category Prop
414
+ * @since v4.1.0
343
415
  */
344
416
  readonly editable?: boolean;
345
417
  /**
@@ -349,6 +421,8 @@ export type RelationshipInHtmlTableProps<Schemas extends OptionalSchemas> = {
349
421
  * pairs as keys, and with a value that can either be a string label to show
350
422
  * in the column header, or a CustomCell object to further configure the
351
423
  * column.
424
+ * @category Prop
425
+ * @since v4.1.0
352
426
  */
353
427
  readonly customCells?:
354
428
  | Ids
@@ -365,12 +439,16 @@ export type ResultTableInHtmlTableProps<Schemas extends OptionalSchemas> = {
365
439
  /**
366
440
  * The Id of the query in the Queries object for which the ResultTable will be
367
441
  * rendered.
442
+ * @category Prop
443
+ * @since v4.1.0
368
444
  */
369
445
  readonly queryId: Id;
370
446
  /**
371
447
  * The Queries object to be accessed: omit for the default context Queries
372
448
  * object, provide an Id for a named context Queries object, or provide an
373
449
  * explicit reference.
450
+ * @category Prop
451
+ * @since v4.1.0
374
452
  */
375
453
  readonly queries?: QueriesOrQueriesId<Schemas>;
376
454
  /**
@@ -379,6 +457,8 @@ export type ResultTableInHtmlTableProps<Schemas extends OptionalSchemas> = {
379
457
  * desired Cell Ids as keys, and with a value that can either be a string
380
458
  * label to show in the column header, or a ResultCustomCell object to further
381
459
  * configure the column.
460
+ * @category Prop
461
+ * @since v4.1.0
382
462
  */
383
463
  readonly customCells?:
384
464
  | Ids
@@ -397,29 +477,41 @@ export type ResultSortedTableInHtmlTableProps<Schemas extends OptionalSchemas> =
397
477
  /**
398
478
  * The Id of the query in the Queries object for which the ResultTable will be
399
479
  * rendered.
480
+ * @category Prop
481
+ * @since v4.1.0
400
482
  */
401
483
  readonly queryId: Id;
402
484
  /**
403
485
  * The Id of the Cell whose values are used for the sorting. If omitted, the
404
486
  * view will sort the Row Id itself.
487
+ * @category Prop
488
+ * @since v4.1.0
405
489
  */
406
490
  readonly cellId?: Id;
407
491
  /**
408
492
  * Whether the sorting should be in descending order.
493
+ * @category Prop
494
+ * @since v4.1.0
409
495
  */
410
496
  readonly descending?: boolean;
411
497
  /**
412
498
  * The number of Row Ids to skip for pagination purposes.
499
+ * @category Prop
500
+ * @since v4.1.0
413
501
  */
414
502
  readonly offset?: number;
415
503
  /**
416
504
  * The maximum number of Row Ids to return.
505
+ * @category Prop
506
+ * @since v4.1.0
417
507
  */
418
508
  readonly limit?: number;
419
509
  /**
420
510
  * The Queries object to be accessed: omit for the default context Queries
421
511
  * object, provide an Id for a named context Queries object, or provide an
422
512
  * explicit reference.
513
+ * @category Prop
514
+ * @since v4.1.0
423
515
  */
424
516
  readonly queries?: QueriesOrQueriesId<Schemas>;
425
517
  /**
@@ -428,6 +520,8 @@ export type ResultSortedTableInHtmlTableProps<Schemas extends OptionalSchemas> =
428
520
  * desired Cell Ids as keys, and with a value that can either be a string
429
521
  * label to show in the column header, or a ResultCustomCell object to further
430
522
  * configure the column.
523
+ * @category Prop
524
+ * @since v4.1.0
431
525
  */
432
526
  readonly customCells?:
433
527
  | Ids
@@ -435,18 +529,24 @@ export type ResultSortedTableInHtmlTableProps<Schemas extends OptionalSchemas> =
435
529
  /**
436
530
  * Whether the table should be interactive such that clicking a header changes
437
531
  * the sorting and/or direction.
532
+ * @category Prop
533
+ * @since v4.1.0
438
534
  */
439
535
  readonly sortOnClick?: boolean;
440
536
  /**
441
537
  * Either `true` to show the default SortedTablePaginator for the ResultTable,
442
538
  * or provide your own paginator component that takes
443
539
  * SortedTablePaginatorProps.
540
+ * @category Prop
541
+ * @since v4.1.0
444
542
  */
445
543
  readonly paginator?: boolean | ComponentType<SortedTablePaginatorProps>;
446
544
  /**
447
545
  * A function that is called whenever the sorting or pagination of the
448
546
  * ResultTable is changed by the user, invoked with the sorted Cell Id,
449
547
  * whether descending or not, and the offset of the pagination.
548
+ * @category Prop
549
+ * @since v4.1.0
450
550
  */
451
551
  readonly onChange?: (
452
552
  sortAndOffset: [
@@ -467,28 +567,40 @@ export type SortedTablePaginatorProps = {
467
567
  /**
468
568
  * An event that will fire when the offset is updated, called with the new
469
569
  * offset.
570
+ * @category Prop
571
+ * @since v4.1.0
470
572
  */
471
573
  readonly onChange: (offset: number) => void;
472
574
  /**
473
575
  * The number of Row Ids to skip for pagination.
576
+ * @category Prop
577
+ * @since v4.1.0
474
578
  */
475
579
  readonly offset?: number;
476
580
  /**
477
581
  * The maximum number of Row Ids being returned.
582
+ * @category Prop
583
+ * @since v4.1.0
478
584
  */
479
585
  readonly limit?: number;
480
586
  /**
481
587
  * The total number of Row Ids in the paginated table.
588
+ * @category Prop
589
+ * @since v4.1.0
482
590
  */
483
591
  readonly total: number;
484
592
  /**
485
593
  * A noun to use in the pagination label for a single row, defaulting to
486
594
  * 'row'.
595
+ * @category Prop
596
+ * @since v4.1.0
487
597
  */
488
598
  readonly singular?: string;
489
599
  /**
490
600
  * A noun to use in the pagination label for multiple rows, defaulting to the
491
601
  * value of the singular noun suffixed with the letter 's'.
602
+ * @category Prop
603
+ * @since v4.1.0
492
604
  */
493
605
  readonly plural?: string;
494
606
  };