tinybase 5.3.0 → 5.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (567) hide show
  1. package/cjs/common/index.cjs +5 -7
  2. package/cjs/common/with-schemas/index.cjs +5 -7
  3. package/cjs/es6/common/index.cjs +5 -7
  4. package/cjs/es6/common/with-schemas/index.cjs +5 -7
  5. package/cjs/es6/index.cjs +18 -12
  6. package/cjs/es6/indexes/index.cjs +0 -6
  7. package/cjs/es6/indexes/with-schemas/index.cjs +0 -6
  8. package/cjs/es6/mergeable-store/index.cjs +17 -11
  9. package/cjs/es6/mergeable-store/with-schemas/index.cjs +17 -11
  10. package/cjs/es6/metrics/index.cjs +1 -1
  11. package/cjs/es6/metrics/with-schemas/index.cjs +1 -1
  12. package/cjs/es6/min/common/index.cjs +1 -1
  13. package/cjs/es6/min/common/index.cjs.gz +0 -0
  14. package/cjs/es6/min/common/with-schemas/index.cjs +1 -1
  15. package/cjs/es6/min/common/with-schemas/index.cjs.gz +0 -0
  16. package/cjs/es6/min/index.cjs +1 -1
  17. package/cjs/es6/min/index.cjs.gz +0 -0
  18. package/cjs/es6/min/indexes/index.cjs +1 -1
  19. package/cjs/es6/min/indexes/index.cjs.gz +0 -0
  20. package/cjs/es6/min/indexes/with-schemas/index.cjs +1 -1
  21. package/cjs/es6/min/indexes/with-schemas/index.cjs.gz +0 -0
  22. package/cjs/es6/min/mergeable-store/index.cjs +1 -1
  23. package/cjs/es6/min/mergeable-store/index.cjs.gz +0 -0
  24. package/cjs/es6/min/mergeable-store/with-schemas/index.cjs +1 -1
  25. package/cjs/es6/min/mergeable-store/with-schemas/index.cjs.gz +0 -0
  26. package/cjs/es6/min/persisters/persister-pglite/index.cjs +1 -1
  27. package/cjs/es6/min/persisters/persister-pglite/index.cjs.gz +0 -0
  28. package/cjs/es6/min/persisters/persister-pglite/with-schemas/index.cjs +1 -1
  29. package/cjs/es6/min/persisters/persister-pglite/with-schemas/index.cjs.gz +0 -0
  30. package/cjs/es6/min/store/index.cjs +1 -1
  31. package/cjs/es6/min/store/index.cjs.gz +0 -0
  32. package/cjs/es6/min/store/with-schemas/index.cjs +1 -1
  33. package/cjs/es6/min/store/with-schemas/index.cjs.gz +0 -0
  34. package/cjs/es6/min/synchronizers/index.cjs +1 -1
  35. package/cjs/es6/min/synchronizers/index.cjs.gz +0 -0
  36. package/cjs/es6/min/synchronizers/synchronizer-broadcast-channel/index.cjs +1 -1
  37. package/cjs/es6/min/synchronizers/synchronizer-broadcast-channel/index.cjs.gz +0 -0
  38. package/cjs/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs +1 -1
  39. package/cjs/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs.gz +0 -0
  40. package/cjs/es6/min/synchronizers/synchronizer-local/index.cjs +1 -1
  41. package/cjs/es6/min/synchronizers/synchronizer-local/index.cjs.gz +0 -0
  42. package/cjs/es6/min/synchronizers/synchronizer-local/with-schemas/index.cjs +1 -1
  43. package/cjs/es6/min/synchronizers/synchronizer-local/with-schemas/index.cjs.gz +0 -0
  44. package/cjs/es6/min/synchronizers/synchronizer-ws-client/index.cjs +1 -1
  45. package/cjs/es6/min/synchronizers/synchronizer-ws-client/index.cjs.gz +0 -0
  46. package/cjs/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.cjs +1 -1
  47. package/cjs/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.cjs.gz +0 -0
  48. package/cjs/es6/min/synchronizers/synchronizer-ws-server/index.cjs +1 -1
  49. package/cjs/es6/min/synchronizers/synchronizer-ws-server/index.cjs.gz +0 -0
  50. package/cjs/es6/min/synchronizers/synchronizer-ws-server/with-schemas/index.cjs +1 -1
  51. package/cjs/es6/min/synchronizers/synchronizer-ws-server/with-schemas/index.cjs.gz +0 -0
  52. package/cjs/es6/min/synchronizers/with-schemas/index.cjs +1 -1
  53. package/cjs/es6/min/synchronizers/with-schemas/index.cjs.gz +0 -0
  54. package/cjs/es6/min/tools/index.cjs +1 -1
  55. package/cjs/es6/min/tools/index.cjs.gz +0 -0
  56. package/cjs/es6/min/tools/with-schemas/index.cjs +1 -1
  57. package/cjs/es6/min/tools/with-schemas/index.cjs.gz +0 -0
  58. package/cjs/es6/min/ui-react/index.cjs +1 -1
  59. package/cjs/es6/min/ui-react/index.cjs.gz +0 -0
  60. package/cjs/es6/min/ui-react/with-schemas/index.cjs +1 -1
  61. package/cjs/es6/min/ui-react/with-schemas/index.cjs.gz +0 -0
  62. package/cjs/es6/min/ui-react-dom/index.cjs +1 -1
  63. package/cjs/es6/min/ui-react-dom/index.cjs.gz +0 -0
  64. package/cjs/es6/min/ui-react-dom/with-schemas/index.cjs +1 -1
  65. package/cjs/es6/min/ui-react-dom/with-schemas/index.cjs.gz +0 -0
  66. package/cjs/es6/min/ui-react-inspector/index.cjs +1 -1
  67. package/cjs/es6/min/ui-react-inspector/index.cjs.gz +0 -0
  68. package/cjs/es6/min/ui-react-inspector/with-schemas/index.cjs +1 -1
  69. package/cjs/es6/min/ui-react-inspector/with-schemas/index.cjs.gz +0 -0
  70. package/cjs/es6/min/with-schemas/index.cjs +1 -1
  71. package/cjs/es6/min/with-schemas/index.cjs.gz +0 -0
  72. package/cjs/es6/persisters/persister-pglite/index.cjs +1 -1
  73. package/cjs/es6/persisters/persister-pglite/with-schemas/index.cjs +1 -1
  74. package/cjs/es6/queries/index.cjs +1 -1
  75. package/cjs/es6/queries/with-schemas/index.cjs +1 -1
  76. package/cjs/es6/store/index.cjs +0 -6
  77. package/cjs/es6/store/with-schemas/index.cjs +0 -6
  78. package/cjs/es6/synchronizers/index.cjs +5 -7
  79. package/cjs/es6/synchronizers/synchronizer-broadcast-channel/index.cjs +5 -7
  80. package/cjs/es6/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs +5 -7
  81. package/cjs/es6/synchronizers/synchronizer-local/index.cjs +5 -7
  82. package/cjs/es6/synchronizers/synchronizer-local/with-schemas/index.cjs +5 -7
  83. package/cjs/es6/synchronizers/synchronizer-ws-client/index.cjs +5 -7
  84. package/cjs/es6/synchronizers/synchronizer-ws-client/with-schemas/index.cjs +5 -7
  85. package/cjs/es6/synchronizers/synchronizer-ws-server/index.cjs +5 -7
  86. package/cjs/es6/synchronizers/synchronizer-ws-server/with-schemas/index.cjs +5 -7
  87. package/cjs/es6/synchronizers/with-schemas/index.cjs +5 -7
  88. package/cjs/es6/tools/index.cjs +7 -4
  89. package/cjs/es6/tools/with-schemas/index.cjs +7 -4
  90. package/cjs/es6/ui-react/index.cjs +101 -109
  91. package/cjs/es6/ui-react/with-schemas/index.cjs +101 -109
  92. package/cjs/es6/ui-react-dom/index.cjs +14 -8
  93. package/cjs/es6/ui-react-dom/with-schemas/index.cjs +14 -8
  94. package/cjs/es6/ui-react-inspector/index.cjs +18 -16
  95. package/cjs/es6/ui-react-inspector/with-schemas/index.cjs +18 -16
  96. package/cjs/es6/with-schemas/index.cjs +18 -12
  97. package/cjs/index.cjs +18 -12
  98. package/cjs/indexes/index.cjs +0 -6
  99. package/cjs/indexes/with-schemas/index.cjs +0 -6
  100. package/cjs/mergeable-store/index.cjs +17 -11
  101. package/cjs/mergeable-store/with-schemas/index.cjs +17 -11
  102. package/cjs/metrics/index.cjs +1 -1
  103. package/cjs/metrics/with-schemas/index.cjs +1 -1
  104. package/cjs/min/common/index.cjs +1 -1
  105. package/cjs/min/common/index.cjs.gz +0 -0
  106. package/cjs/min/common/with-schemas/index.cjs +1 -1
  107. package/cjs/min/common/with-schemas/index.cjs.gz +0 -0
  108. package/cjs/min/index.cjs +1 -1
  109. package/cjs/min/index.cjs.gz +0 -0
  110. package/cjs/min/indexes/index.cjs +1 -1
  111. package/cjs/min/indexes/index.cjs.gz +0 -0
  112. package/cjs/min/indexes/with-schemas/index.cjs +1 -1
  113. package/cjs/min/indexes/with-schemas/index.cjs.gz +0 -0
  114. package/cjs/min/mergeable-store/index.cjs +1 -1
  115. package/cjs/min/mergeable-store/index.cjs.gz +0 -0
  116. package/cjs/min/mergeable-store/with-schemas/index.cjs +1 -1
  117. package/cjs/min/mergeable-store/with-schemas/index.cjs.gz +0 -0
  118. package/cjs/min/persisters/persister-pglite/index.cjs +1 -1
  119. package/cjs/min/persisters/persister-pglite/index.cjs.gz +0 -0
  120. package/cjs/min/persisters/persister-pglite/with-schemas/index.cjs +1 -1
  121. package/cjs/min/persisters/persister-pglite/with-schemas/index.cjs.gz +0 -0
  122. package/cjs/min/store/index.cjs +1 -1
  123. package/cjs/min/store/index.cjs.gz +0 -0
  124. package/cjs/min/store/with-schemas/index.cjs +1 -1
  125. package/cjs/min/store/with-schemas/index.cjs.gz +0 -0
  126. package/cjs/min/synchronizers/index.cjs +1 -1
  127. package/cjs/min/synchronizers/index.cjs.gz +0 -0
  128. package/cjs/min/synchronizers/synchronizer-broadcast-channel/index.cjs +1 -1
  129. package/cjs/min/synchronizers/synchronizer-broadcast-channel/index.cjs.gz +0 -0
  130. package/cjs/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs +1 -1
  131. package/cjs/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs.gz +0 -0
  132. package/cjs/min/synchronizers/synchronizer-local/index.cjs +1 -1
  133. package/cjs/min/synchronizers/synchronizer-local/index.cjs.gz +0 -0
  134. package/cjs/min/synchronizers/synchronizer-local/with-schemas/index.cjs +1 -1
  135. package/cjs/min/synchronizers/synchronizer-local/with-schemas/index.cjs.gz +0 -0
  136. package/cjs/min/synchronizers/synchronizer-ws-client/index.cjs +1 -1
  137. package/cjs/min/synchronizers/synchronizer-ws-client/index.cjs.gz +0 -0
  138. package/cjs/min/synchronizers/synchronizer-ws-client/with-schemas/index.cjs +1 -1
  139. package/cjs/min/synchronizers/synchronizer-ws-client/with-schemas/index.cjs.gz +0 -0
  140. package/cjs/min/synchronizers/synchronizer-ws-server/index.cjs +1 -1
  141. package/cjs/min/synchronizers/synchronizer-ws-server/index.cjs.gz +0 -0
  142. package/cjs/min/synchronizers/synchronizer-ws-server/with-schemas/index.cjs +1 -1
  143. package/cjs/min/synchronizers/synchronizer-ws-server/with-schemas/index.cjs.gz +0 -0
  144. package/cjs/min/synchronizers/with-schemas/index.cjs +1 -1
  145. package/cjs/min/synchronizers/with-schemas/index.cjs.gz +0 -0
  146. package/cjs/min/tools/index.cjs +1 -1
  147. package/cjs/min/tools/index.cjs.gz +0 -0
  148. package/cjs/min/tools/with-schemas/index.cjs +1 -1
  149. package/cjs/min/tools/with-schemas/index.cjs.gz +0 -0
  150. package/cjs/min/ui-react/index.cjs +1 -1
  151. package/cjs/min/ui-react/index.cjs.gz +0 -0
  152. package/cjs/min/ui-react/with-schemas/index.cjs +1 -1
  153. package/cjs/min/ui-react/with-schemas/index.cjs.gz +0 -0
  154. package/cjs/min/ui-react-dom/index.cjs +1 -1
  155. package/cjs/min/ui-react-dom/index.cjs.gz +0 -0
  156. package/cjs/min/ui-react-dom/with-schemas/index.cjs +1 -1
  157. package/cjs/min/ui-react-dom/with-schemas/index.cjs.gz +0 -0
  158. package/cjs/min/ui-react-inspector/index.cjs +1 -1
  159. package/cjs/min/ui-react-inspector/index.cjs.gz +0 -0
  160. package/cjs/min/ui-react-inspector/with-schemas/index.cjs +1 -1
  161. package/cjs/min/ui-react-inspector/with-schemas/index.cjs.gz +0 -0
  162. package/cjs/min/with-schemas/index.cjs +1 -1
  163. package/cjs/min/with-schemas/index.cjs.gz +0 -0
  164. package/cjs/persisters/persister-pglite/index.cjs +1 -1
  165. package/cjs/persisters/persister-pglite/with-schemas/index.cjs +1 -1
  166. package/cjs/queries/index.cjs +1 -1
  167. package/cjs/queries/with-schemas/index.cjs +1 -1
  168. package/cjs/store/index.cjs +0 -6
  169. package/cjs/store/with-schemas/index.cjs +0 -6
  170. package/cjs/synchronizers/index.cjs +5 -7
  171. package/cjs/synchronizers/synchronizer-broadcast-channel/index.cjs +5 -7
  172. package/cjs/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs +5 -7
  173. package/cjs/synchronizers/synchronizer-local/index.cjs +5 -7
  174. package/cjs/synchronizers/synchronizer-local/with-schemas/index.cjs +5 -7
  175. package/cjs/synchronizers/synchronizer-ws-client/index.cjs +5 -7
  176. package/cjs/synchronizers/synchronizer-ws-client/with-schemas/index.cjs +5 -7
  177. package/cjs/synchronizers/synchronizer-ws-server/index.cjs +5 -7
  178. package/cjs/synchronizers/synchronizer-ws-server/with-schemas/index.cjs +5 -7
  179. package/cjs/synchronizers/with-schemas/index.cjs +5 -7
  180. package/cjs/tools/index.cjs +7 -4
  181. package/cjs/tools/with-schemas/index.cjs +7 -4
  182. package/cjs/ui-react/index.cjs +97 -107
  183. package/cjs/ui-react/with-schemas/index.cjs +97 -107
  184. package/cjs/ui-react-dom/index.cjs +14 -8
  185. package/cjs/ui-react-dom/with-schemas/index.cjs +14 -8
  186. package/cjs/ui-react-inspector/index.cjs +18 -16
  187. package/cjs/ui-react-inspector/with-schemas/index.cjs +18 -16
  188. package/cjs/with-schemas/index.cjs +18 -12
  189. package/common/index.js +5 -7
  190. package/common/with-schemas/index.js +5 -7
  191. package/es6/common/index.js +5 -7
  192. package/es6/common/with-schemas/index.js +5 -7
  193. package/es6/index.js +18 -12
  194. package/es6/indexes/index.js +0 -6
  195. package/es6/indexes/with-schemas/index.js +0 -6
  196. package/es6/mergeable-store/index.js +17 -11
  197. package/es6/mergeable-store/with-schemas/index.js +17 -11
  198. package/es6/metrics/index.js +1 -1
  199. package/es6/metrics/with-schemas/index.js +1 -1
  200. package/es6/min/common/index.js +1 -1
  201. package/es6/min/common/index.js.gz +0 -0
  202. package/es6/min/common/with-schemas/index.js +1 -1
  203. package/es6/min/common/with-schemas/index.js.gz +0 -0
  204. package/es6/min/index.js +1 -1
  205. package/es6/min/index.js.gz +0 -0
  206. package/es6/min/indexes/index.js +1 -1
  207. package/es6/min/indexes/index.js.gz +0 -0
  208. package/es6/min/indexes/with-schemas/index.js +1 -1
  209. package/es6/min/indexes/with-schemas/index.js.gz +0 -0
  210. package/es6/min/mergeable-store/index.js +1 -1
  211. package/es6/min/mergeable-store/index.js.gz +0 -0
  212. package/es6/min/mergeable-store/with-schemas/index.js +1 -1
  213. package/es6/min/mergeable-store/with-schemas/index.js.gz +0 -0
  214. package/es6/min/persisters/persister-pglite/index.js +1 -1
  215. package/es6/min/persisters/persister-pglite/index.js.gz +0 -0
  216. package/es6/min/persisters/persister-pglite/with-schemas/index.js +1 -1
  217. package/es6/min/persisters/persister-pglite/with-schemas/index.js.gz +0 -0
  218. package/es6/min/store/index.js +1 -1
  219. package/es6/min/store/index.js.gz +0 -0
  220. package/es6/min/store/with-schemas/index.js +1 -1
  221. package/es6/min/store/with-schemas/index.js.gz +0 -0
  222. package/es6/min/synchronizers/index.js +1 -1
  223. package/es6/min/synchronizers/index.js.gz +0 -0
  224. package/es6/min/synchronizers/synchronizer-broadcast-channel/index.js +1 -1
  225. package/es6/min/synchronizers/synchronizer-broadcast-channel/index.js.gz +0 -0
  226. package/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +1 -1
  227. package/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js.gz +0 -0
  228. package/es6/min/synchronizers/synchronizer-local/index.js +1 -1
  229. package/es6/min/synchronizers/synchronizer-local/index.js.gz +0 -0
  230. package/es6/min/synchronizers/synchronizer-local/with-schemas/index.js +1 -1
  231. package/es6/min/synchronizers/synchronizer-local/with-schemas/index.js.gz +0 -0
  232. package/es6/min/synchronizers/synchronizer-ws-client/index.js +1 -1
  233. package/es6/min/synchronizers/synchronizer-ws-client/index.js.gz +0 -0
  234. package/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.js +1 -1
  235. package/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.js.gz +0 -0
  236. package/es6/min/synchronizers/synchronizer-ws-server/index.js +1 -1
  237. package/es6/min/synchronizers/synchronizer-ws-server/index.js.gz +0 -0
  238. package/es6/min/synchronizers/synchronizer-ws-server/with-schemas/index.js +1 -1
  239. package/es6/min/synchronizers/synchronizer-ws-server/with-schemas/index.js.gz +0 -0
  240. package/es6/min/synchronizers/with-schemas/index.js +1 -1
  241. package/es6/min/synchronizers/with-schemas/index.js.gz +0 -0
  242. package/es6/min/tools/index.js +1 -1
  243. package/es6/min/tools/index.js.gz +0 -0
  244. package/es6/min/tools/with-schemas/index.js +1 -1
  245. package/es6/min/tools/with-schemas/index.js.gz +0 -0
  246. package/es6/min/ui-react/index.js +1 -1
  247. package/es6/min/ui-react/index.js.gz +0 -0
  248. package/es6/min/ui-react/with-schemas/index.js +1 -1
  249. package/es6/min/ui-react/with-schemas/index.js.gz +0 -0
  250. package/es6/min/ui-react-dom/index.js +1 -1
  251. package/es6/min/ui-react-dom/index.js.gz +0 -0
  252. package/es6/min/ui-react-dom/with-schemas/index.js +1 -1
  253. package/es6/min/ui-react-dom/with-schemas/index.js.gz +0 -0
  254. package/es6/min/ui-react-inspector/index.js +1 -1
  255. package/es6/min/ui-react-inspector/index.js.gz +0 -0
  256. package/es6/min/ui-react-inspector/with-schemas/index.js +1 -1
  257. package/es6/min/ui-react-inspector/with-schemas/index.js.gz +0 -0
  258. package/es6/min/with-schemas/index.js +1 -1
  259. package/es6/min/with-schemas/index.js.gz +0 -0
  260. package/es6/persisters/persister-pglite/index.js +1 -1
  261. package/es6/persisters/persister-pglite/with-schemas/index.js +1 -1
  262. package/es6/queries/index.js +1 -1
  263. package/es6/queries/with-schemas/index.js +1 -1
  264. package/es6/store/index.js +0 -6
  265. package/es6/store/with-schemas/index.js +0 -6
  266. package/es6/synchronizers/index.js +5 -7
  267. package/es6/synchronizers/synchronizer-broadcast-channel/index.js +5 -7
  268. package/es6/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +5 -7
  269. package/es6/synchronizers/synchronizer-local/index.js +5 -7
  270. package/es6/synchronizers/synchronizer-local/with-schemas/index.js +5 -7
  271. package/es6/synchronizers/synchronizer-ws-client/index.js +5 -7
  272. package/es6/synchronizers/synchronizer-ws-client/with-schemas/index.js +5 -7
  273. package/es6/synchronizers/synchronizer-ws-server/index.js +5 -7
  274. package/es6/synchronizers/synchronizer-ws-server/with-schemas/index.js +5 -7
  275. package/es6/synchronizers/with-schemas/index.js +5 -7
  276. package/es6/tools/index.js +7 -4
  277. package/es6/tools/with-schemas/index.js +7 -4
  278. package/es6/ui-react/index.js +101 -109
  279. package/es6/ui-react/with-schemas/index.js +101 -109
  280. package/es6/ui-react-dom/index.js +14 -8
  281. package/es6/ui-react-dom/with-schemas/index.js +14 -8
  282. package/es6/ui-react-inspector/index.js +18 -16
  283. package/es6/ui-react-inspector/with-schemas/index.js +18 -16
  284. package/es6/with-schemas/index.js +18 -12
  285. package/index.js +18 -12
  286. package/indexes/index.js +0 -6
  287. package/indexes/with-schemas/index.js +0 -6
  288. package/mergeable-store/index.js +17 -11
  289. package/mergeable-store/with-schemas/index.js +17 -11
  290. package/metrics/index.js +1 -1
  291. package/metrics/with-schemas/index.js +1 -1
  292. package/min/common/index.js +1 -1
  293. package/min/common/index.js.gz +0 -0
  294. package/min/common/with-schemas/index.js +1 -1
  295. package/min/common/with-schemas/index.js.gz +0 -0
  296. package/min/index.js +1 -1
  297. package/min/index.js.gz +0 -0
  298. package/min/indexes/index.js +1 -1
  299. package/min/indexes/index.js.gz +0 -0
  300. package/min/indexes/with-schemas/index.js +1 -1
  301. package/min/indexes/with-schemas/index.js.gz +0 -0
  302. package/min/mergeable-store/index.js +1 -1
  303. package/min/mergeable-store/index.js.gz +0 -0
  304. package/min/mergeable-store/with-schemas/index.js +1 -1
  305. package/min/mergeable-store/with-schemas/index.js.gz +0 -0
  306. package/min/persisters/persister-pglite/index.js +1 -1
  307. package/min/persisters/persister-pglite/index.js.gz +0 -0
  308. package/min/persisters/persister-pglite/with-schemas/index.js +1 -1
  309. package/min/persisters/persister-pglite/with-schemas/index.js.gz +0 -0
  310. package/min/store/index.js +1 -1
  311. package/min/store/index.js.gz +0 -0
  312. package/min/store/with-schemas/index.js +1 -1
  313. package/min/store/with-schemas/index.js.gz +0 -0
  314. package/min/synchronizers/index.js +1 -1
  315. package/min/synchronizers/index.js.gz +0 -0
  316. package/min/synchronizers/synchronizer-broadcast-channel/index.js +1 -1
  317. package/min/synchronizers/synchronizer-broadcast-channel/index.js.gz +0 -0
  318. package/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +1 -1
  319. package/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js.gz +0 -0
  320. package/min/synchronizers/synchronizer-local/index.js +1 -1
  321. package/min/synchronizers/synchronizer-local/index.js.gz +0 -0
  322. package/min/synchronizers/synchronizer-local/with-schemas/index.js +1 -1
  323. package/min/synchronizers/synchronizer-local/with-schemas/index.js.gz +0 -0
  324. package/min/synchronizers/synchronizer-ws-client/index.js +1 -1
  325. package/min/synchronizers/synchronizer-ws-client/index.js.gz +0 -0
  326. package/min/synchronizers/synchronizer-ws-client/with-schemas/index.js +1 -1
  327. package/min/synchronizers/synchronizer-ws-client/with-schemas/index.js.gz +0 -0
  328. package/min/synchronizers/synchronizer-ws-server/index.js +1 -1
  329. package/min/synchronizers/synchronizer-ws-server/index.js.gz +0 -0
  330. package/min/synchronizers/synchronizer-ws-server/with-schemas/index.js +1 -1
  331. package/min/synchronizers/synchronizer-ws-server/with-schemas/index.js.gz +0 -0
  332. package/min/synchronizers/with-schemas/index.js +1 -1
  333. package/min/synchronizers/with-schemas/index.js.gz +0 -0
  334. package/min/tools/index.js +1 -1
  335. package/min/tools/index.js.gz +0 -0
  336. package/min/tools/with-schemas/index.js +1 -1
  337. package/min/tools/with-schemas/index.js.gz +0 -0
  338. package/min/ui-react/index.js +1 -1
  339. package/min/ui-react/index.js.gz +0 -0
  340. package/min/ui-react/with-schemas/index.js +1 -1
  341. package/min/ui-react/with-schemas/index.js.gz +0 -0
  342. package/min/ui-react-dom/index.js +1 -1
  343. package/min/ui-react-dom/index.js.gz +0 -0
  344. package/min/ui-react-dom/with-schemas/index.js +1 -1
  345. package/min/ui-react-dom/with-schemas/index.js.gz +0 -0
  346. package/min/ui-react-inspector/index.js +1 -1
  347. package/min/ui-react-inspector/index.js.gz +0 -0
  348. package/min/ui-react-inspector/with-schemas/index.js +1 -1
  349. package/min/ui-react-inspector/with-schemas/index.js.gz +0 -0
  350. package/min/with-schemas/index.js +1 -1
  351. package/min/with-schemas/index.js.gz +0 -0
  352. package/package.json +5 -5
  353. package/persisters/persister-pglite/index.js +1 -1
  354. package/persisters/persister-pglite/with-schemas/index.js +1 -1
  355. package/queries/index.js +1 -1
  356. package/queries/with-schemas/index.js +1 -1
  357. package/readme.md +14 -14
  358. package/releases.md +24 -24
  359. package/store/index.js +0 -6
  360. package/store/with-schemas/index.js +0 -6
  361. package/synchronizers/index.js +5 -7
  362. package/synchronizers/synchronizer-broadcast-channel/index.js +5 -7
  363. package/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +5 -7
  364. package/synchronizers/synchronizer-local/index.js +5 -7
  365. package/synchronizers/synchronizer-local/with-schemas/index.js +5 -7
  366. package/synchronizers/synchronizer-ws-client/index.js +5 -7
  367. package/synchronizers/synchronizer-ws-client/with-schemas/index.js +5 -7
  368. package/synchronizers/synchronizer-ws-server/index.js +5 -7
  369. package/synchronizers/synchronizer-ws-server/with-schemas/index.js +5 -7
  370. package/synchronizers/with-schemas/index.js +5 -7
  371. package/tools/index.js +7 -4
  372. package/tools/with-schemas/index.js +7 -4
  373. package/ui-react/index.js +97 -107
  374. package/ui-react/with-schemas/index.js +97 -107
  375. package/ui-react-dom/index.js +14 -8
  376. package/ui-react-dom/with-schemas/index.js +14 -8
  377. package/ui-react-inspector/index.js +18 -16
  378. package/ui-react-inspector/with-schemas/index.js +18 -16
  379. package/umd/common/index.js +5 -7
  380. package/umd/common/with-schemas/index.js +5 -7
  381. package/umd/es6/common/index.js +5 -7
  382. package/umd/es6/common/with-schemas/index.js +5 -7
  383. package/umd/es6/index.js +18 -12
  384. package/umd/es6/indexes/index.js +0 -6
  385. package/umd/es6/indexes/with-schemas/index.js +0 -6
  386. package/umd/es6/mergeable-store/index.js +17 -11
  387. package/umd/es6/mergeable-store/with-schemas/index.js +17 -11
  388. package/umd/es6/metrics/index.js +1 -1
  389. package/umd/es6/metrics/with-schemas/index.js +1 -1
  390. package/umd/es6/min/common/index.js +1 -1
  391. package/umd/es6/min/common/index.js.gz +0 -0
  392. package/umd/es6/min/common/with-schemas/index.js +1 -1
  393. package/umd/es6/min/common/with-schemas/index.js.gz +0 -0
  394. package/umd/es6/min/index.js +1 -1
  395. package/umd/es6/min/index.js.gz +0 -0
  396. package/umd/es6/min/indexes/index.js +1 -1
  397. package/umd/es6/min/indexes/index.js.gz +0 -0
  398. package/umd/es6/min/indexes/with-schemas/index.js +1 -1
  399. package/umd/es6/min/indexes/with-schemas/index.js.gz +0 -0
  400. package/umd/es6/min/mergeable-store/index.js +1 -1
  401. package/umd/es6/min/mergeable-store/index.js.gz +0 -0
  402. package/umd/es6/min/mergeable-store/with-schemas/index.js +1 -1
  403. package/umd/es6/min/mergeable-store/with-schemas/index.js.gz +0 -0
  404. package/umd/es6/min/persisters/persister-pglite/index.js +1 -1
  405. package/umd/es6/min/persisters/persister-pglite/index.js.gz +0 -0
  406. package/umd/es6/min/persisters/persister-pglite/with-schemas/index.js +1 -1
  407. package/umd/es6/min/persisters/persister-pglite/with-schemas/index.js.gz +0 -0
  408. package/umd/es6/min/store/index.js +1 -1
  409. package/umd/es6/min/store/index.js.gz +0 -0
  410. package/umd/es6/min/store/with-schemas/index.js +1 -1
  411. package/umd/es6/min/store/with-schemas/index.js.gz +0 -0
  412. package/umd/es6/min/synchronizers/index.js +1 -1
  413. package/umd/es6/min/synchronizers/index.js.gz +0 -0
  414. package/umd/es6/min/synchronizers/synchronizer-broadcast-channel/index.js +1 -1
  415. package/umd/es6/min/synchronizers/synchronizer-broadcast-channel/index.js.gz +0 -0
  416. package/umd/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +1 -1
  417. package/umd/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js.gz +0 -0
  418. package/umd/es6/min/synchronizers/synchronizer-local/index.js +1 -1
  419. package/umd/es6/min/synchronizers/synchronizer-local/index.js.gz +0 -0
  420. package/umd/es6/min/synchronizers/synchronizer-local/with-schemas/index.js +1 -1
  421. package/umd/es6/min/synchronizers/synchronizer-local/with-schemas/index.js.gz +0 -0
  422. package/umd/es6/min/synchronizers/synchronizer-ws-client/index.js +1 -1
  423. package/umd/es6/min/synchronizers/synchronizer-ws-client/index.js.gz +0 -0
  424. package/umd/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.js +1 -1
  425. package/umd/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.js.gz +0 -0
  426. package/umd/es6/min/synchronizers/synchronizer-ws-server/index.js +1 -1
  427. package/umd/es6/min/synchronizers/synchronizer-ws-server/index.js.gz +0 -0
  428. package/umd/es6/min/synchronizers/synchronizer-ws-server/with-schemas/index.js +1 -1
  429. package/umd/es6/min/synchronizers/synchronizer-ws-server/with-schemas/index.js.gz +0 -0
  430. package/umd/es6/min/synchronizers/with-schemas/index.js +1 -1
  431. package/umd/es6/min/synchronizers/with-schemas/index.js.gz +0 -0
  432. package/umd/es6/min/tools/index.js +1 -1
  433. package/umd/es6/min/tools/index.js.gz +0 -0
  434. package/umd/es6/min/tools/with-schemas/index.js +1 -1
  435. package/umd/es6/min/tools/with-schemas/index.js.gz +0 -0
  436. package/umd/es6/min/ui-react/index.js +1 -1
  437. package/umd/es6/min/ui-react/index.js.gz +0 -0
  438. package/umd/es6/min/ui-react/with-schemas/index.js +1 -1
  439. package/umd/es6/min/ui-react/with-schemas/index.js.gz +0 -0
  440. package/umd/es6/min/ui-react-dom/index.js +1 -1
  441. package/umd/es6/min/ui-react-dom/index.js.gz +0 -0
  442. package/umd/es6/min/ui-react-dom/with-schemas/index.js +1 -1
  443. package/umd/es6/min/ui-react-dom/with-schemas/index.js.gz +0 -0
  444. package/umd/es6/min/ui-react-inspector/index.js +1 -1
  445. package/umd/es6/min/ui-react-inspector/index.js.gz +0 -0
  446. package/umd/es6/min/ui-react-inspector/with-schemas/index.js +1 -1
  447. package/umd/es6/min/ui-react-inspector/with-schemas/index.js.gz +0 -0
  448. package/umd/es6/min/with-schemas/index.js +1 -1
  449. package/umd/es6/min/with-schemas/index.js.gz +0 -0
  450. package/umd/es6/persisters/persister-pglite/index.js +1 -1
  451. package/umd/es6/persisters/persister-pglite/with-schemas/index.js +1 -1
  452. package/umd/es6/queries/index.js +1 -1
  453. package/umd/es6/queries/with-schemas/index.js +1 -1
  454. package/umd/es6/store/index.js +0 -6
  455. package/umd/es6/store/with-schemas/index.js +0 -6
  456. package/umd/es6/synchronizers/index.js +5 -7
  457. package/umd/es6/synchronizers/synchronizer-broadcast-channel/index.js +5 -7
  458. package/umd/es6/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +5 -7
  459. package/umd/es6/synchronizers/synchronizer-local/index.js +5 -7
  460. package/umd/es6/synchronizers/synchronizer-local/with-schemas/index.js +5 -7
  461. package/umd/es6/synchronizers/synchronizer-ws-client/index.js +5 -7
  462. package/umd/es6/synchronizers/synchronizer-ws-client/with-schemas/index.js +5 -7
  463. package/umd/es6/synchronizers/synchronizer-ws-server/index.js +5 -7
  464. package/umd/es6/synchronizers/synchronizer-ws-server/with-schemas/index.js +5 -7
  465. package/umd/es6/synchronizers/with-schemas/index.js +5 -7
  466. package/umd/es6/tools/index.js +7 -4
  467. package/umd/es6/tools/with-schemas/index.js +7 -4
  468. package/umd/es6/ui-react/index.js +101 -118
  469. package/umd/es6/ui-react/with-schemas/index.js +101 -118
  470. package/umd/es6/ui-react-dom/index.js +14 -8
  471. package/umd/es6/ui-react-dom/with-schemas/index.js +14 -8
  472. package/umd/es6/ui-react-inspector/index.js +18 -16
  473. package/umd/es6/ui-react-inspector/with-schemas/index.js +18 -16
  474. package/umd/es6/with-schemas/index.js +18 -12
  475. package/umd/index.js +18 -12
  476. package/umd/indexes/index.js +0 -6
  477. package/umd/indexes/with-schemas/index.js +0 -6
  478. package/umd/mergeable-store/index.js +17 -11
  479. package/umd/mergeable-store/with-schemas/index.js +17 -11
  480. package/umd/metrics/index.js +1 -1
  481. package/umd/metrics/with-schemas/index.js +1 -1
  482. package/umd/min/common/index.js +1 -1
  483. package/umd/min/common/index.js.gz +0 -0
  484. package/umd/min/common/with-schemas/index.js +1 -1
  485. package/umd/min/common/with-schemas/index.js.gz +0 -0
  486. package/umd/min/index.js +1 -1
  487. package/umd/min/index.js.gz +0 -0
  488. package/umd/min/indexes/index.js +1 -1
  489. package/umd/min/indexes/index.js.gz +0 -0
  490. package/umd/min/indexes/with-schemas/index.js +1 -1
  491. package/umd/min/indexes/with-schemas/index.js.gz +0 -0
  492. package/umd/min/mergeable-store/index.js +1 -1
  493. package/umd/min/mergeable-store/index.js.gz +0 -0
  494. package/umd/min/mergeable-store/with-schemas/index.js +1 -1
  495. package/umd/min/mergeable-store/with-schemas/index.js.gz +0 -0
  496. package/umd/min/persisters/persister-pglite/index.js +1 -1
  497. package/umd/min/persisters/persister-pglite/index.js.gz +0 -0
  498. package/umd/min/persisters/persister-pglite/with-schemas/index.js +1 -1
  499. package/umd/min/persisters/persister-pglite/with-schemas/index.js.gz +0 -0
  500. package/umd/min/store/index.js +1 -1
  501. package/umd/min/store/index.js.gz +0 -0
  502. package/umd/min/store/with-schemas/index.js +1 -1
  503. package/umd/min/store/with-schemas/index.js.gz +0 -0
  504. package/umd/min/synchronizers/index.js +1 -1
  505. package/umd/min/synchronizers/index.js.gz +0 -0
  506. package/umd/min/synchronizers/synchronizer-broadcast-channel/index.js +1 -1
  507. package/umd/min/synchronizers/synchronizer-broadcast-channel/index.js.gz +0 -0
  508. package/umd/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +1 -1
  509. package/umd/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js.gz +0 -0
  510. package/umd/min/synchronizers/synchronizer-local/index.js +1 -1
  511. package/umd/min/synchronizers/synchronizer-local/index.js.gz +0 -0
  512. package/umd/min/synchronizers/synchronizer-local/with-schemas/index.js +1 -1
  513. package/umd/min/synchronizers/synchronizer-local/with-schemas/index.js.gz +0 -0
  514. package/umd/min/synchronizers/synchronizer-ws-client/index.js +1 -1
  515. package/umd/min/synchronizers/synchronizer-ws-client/index.js.gz +0 -0
  516. package/umd/min/synchronizers/synchronizer-ws-client/with-schemas/index.js +1 -1
  517. package/umd/min/synchronizers/synchronizer-ws-client/with-schemas/index.js.gz +0 -0
  518. package/umd/min/synchronizers/synchronizer-ws-server/index.js +1 -1
  519. package/umd/min/synchronizers/synchronizer-ws-server/index.js.gz +0 -0
  520. package/umd/min/synchronizers/synchronizer-ws-server/with-schemas/index.js +1 -1
  521. package/umd/min/synchronizers/synchronizer-ws-server/with-schemas/index.js.gz +0 -0
  522. package/umd/min/synchronizers/with-schemas/index.js +1 -1
  523. package/umd/min/synchronizers/with-schemas/index.js.gz +0 -0
  524. package/umd/min/tools/index.js +1 -1
  525. package/umd/min/tools/index.js.gz +0 -0
  526. package/umd/min/tools/with-schemas/index.js +1 -1
  527. package/umd/min/tools/with-schemas/index.js.gz +0 -0
  528. package/umd/min/ui-react/index.js +1 -1
  529. package/umd/min/ui-react/index.js.gz +0 -0
  530. package/umd/min/ui-react/with-schemas/index.js +1 -1
  531. package/umd/min/ui-react/with-schemas/index.js.gz +0 -0
  532. package/umd/min/ui-react-dom/index.js +1 -1
  533. package/umd/min/ui-react-dom/index.js.gz +0 -0
  534. package/umd/min/ui-react-dom/with-schemas/index.js +1 -1
  535. package/umd/min/ui-react-dom/with-schemas/index.js.gz +0 -0
  536. package/umd/min/ui-react-inspector/index.js +1 -1
  537. package/umd/min/ui-react-inspector/index.js.gz +0 -0
  538. package/umd/min/ui-react-inspector/with-schemas/index.js +1 -1
  539. package/umd/min/ui-react-inspector/with-schemas/index.js.gz +0 -0
  540. package/umd/min/with-schemas/index.js +1 -1
  541. package/umd/min/with-schemas/index.js.gz +0 -0
  542. package/umd/persisters/persister-pglite/index.js +1 -1
  543. package/umd/persisters/persister-pglite/with-schemas/index.js +1 -1
  544. package/umd/queries/index.js +1 -1
  545. package/umd/queries/with-schemas/index.js +1 -1
  546. package/umd/store/index.js +0 -6
  547. package/umd/store/with-schemas/index.js +0 -6
  548. package/umd/synchronizers/index.js +5 -7
  549. package/umd/synchronizers/synchronizer-broadcast-channel/index.js +5 -7
  550. package/umd/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +5 -7
  551. package/umd/synchronizers/synchronizer-local/index.js +5 -7
  552. package/umd/synchronizers/synchronizer-local/with-schemas/index.js +5 -7
  553. package/umd/synchronizers/synchronizer-ws-client/index.js +5 -7
  554. package/umd/synchronizers/synchronizer-ws-client/with-schemas/index.js +5 -7
  555. package/umd/synchronizers/synchronizer-ws-server/index.js +5 -7
  556. package/umd/synchronizers/synchronizer-ws-server/with-schemas/index.js +5 -7
  557. package/umd/synchronizers/with-schemas/index.js +5 -7
  558. package/umd/tools/index.js +7 -4
  559. package/umd/tools/with-schemas/index.js +7 -4
  560. package/umd/ui-react/index.js +97 -110
  561. package/umd/ui-react/with-schemas/index.js +97 -110
  562. package/umd/ui-react-dom/index.js +14 -8
  563. package/umd/ui-react-dom/with-schemas/index.js +14 -8
  564. package/umd/ui-react-inspector/index.js +18 -16
  565. package/umd/ui-react-inspector/with-schemas/index.js +18 -16
  566. package/umd/with-schemas/index.js +18 -12
  567. package/with-schemas/index.js +18 -12
package/ui-react/index.js CHANGED
@@ -8,7 +8,9 @@ const FUNCTION = getTypeOf(getTypeOf);
8
8
  const LISTENER = 'Listener';
9
9
  const RESULT = 'Result';
10
10
  const GET = 'get';
11
+ const SET = 'set';
11
12
  const ADD = 'add';
13
+ const DEL = 'del';
12
14
  const HAS = 'Has';
13
15
  const _HAS = 'has';
14
16
  const IDS = 'Ids';
@@ -24,7 +26,19 @@ const CELL_IDS = CELL + IDS;
24
26
  const VALUE = 'Value';
25
27
  const VALUES = VALUE + 's';
26
28
  const VALUE_IDS = VALUE + IDS;
29
+ const TRANSACTION = 'Transaction';
30
+ const PARTIAL = 'Partial';
31
+ const FINISH = 'Finish';
27
32
  const STATUS = 'Status';
33
+ const METRIC = 'Metric';
34
+ const INDEX = 'Index';
35
+ const SLICE = 'Slice';
36
+ const RELATIONSHIP = 'Relationship';
37
+ const REMOTE_ROW_ID = 'Remote' + ROW + 'Id';
38
+ const LOCAL = 'Local';
39
+ const LINKED = 'Linked';
40
+ const QUERY = 'Query';
41
+ const CHECKPOINT = 'Checkpoint';
28
42
 
29
43
  const GLOBAL = globalThis;
30
44
  const isUndefined = (thing) => thing == void 0;
@@ -47,6 +61,34 @@ const arrayIsEmpty = (array) => size(array) == 0;
47
61
  const arrayFilter = (array, cb) => array.filter(cb);
48
62
  const arrayWith = (array, index, value) => array.with(index, value);
49
63
 
64
+ const {
65
+ PureComponent,
66
+ Fragment,
67
+ createContext,
68
+ createElement,
69
+ useCallback,
70
+ useContext,
71
+ useEffect,
72
+ useLayoutEffect,
73
+ useMemo,
74
+ useRef,
75
+ useState,
76
+ useSyncExternalStore,
77
+ } = React;
78
+ const getProps = (getProps2, ...ids) =>
79
+ isUndefined(getProps2) ? {} : getProps2(...ids);
80
+ const getRelationshipsStoreTableIds = (relationships, relationshipId) => [
81
+ relationships,
82
+ relationships?.getStore(),
83
+ relationships?.getLocalTableId(relationshipId),
84
+ relationships?.getRemoteTableId(relationshipId),
85
+ ];
86
+ const getIndexStoreTableId = (indexes, indexId) => [
87
+ indexes,
88
+ indexes?.getStore(),
89
+ indexes?.getTableId(indexId),
90
+ ];
91
+
50
92
  const object = Object;
51
93
  const getPrototypeOf = (obj) => object.getPrototypeOf(obj);
52
94
  const objEntries = object.entries;
@@ -89,21 +131,9 @@ const objEnsure = (obj, id, getDefaultValue) => {
89
131
  return obj[id];
90
132
  };
91
133
 
92
- const {createContext, useContext: useContext$1, useEffect: useEffect$1} = React;
93
- var Offsets = /* @__PURE__ */ ((Offsets2) => {
94
- Offsets2[(Offsets2['Store'] = 0)] = 'Store';
95
- Offsets2[(Offsets2['Metrics'] = 1)] = 'Metrics';
96
- Offsets2[(Offsets2['Indexes'] = 2)] = 'Indexes';
97
- Offsets2[(Offsets2['Relationships'] = 3)] = 'Relationships';
98
- Offsets2[(Offsets2['Queries'] = 4)] = 'Queries';
99
- Offsets2[(Offsets2['Checkpoints'] = 5)] = 'Checkpoints';
100
- Offsets2[(Offsets2['Persister'] = 6)] = 'Persister';
101
- Offsets2[(Offsets2['Synchronizer'] = 7)] = 'Synchronizer';
102
- return Offsets2;
103
- })(Offsets || {});
104
134
  const Context = objEnsure(GLOBAL, TINYBASE + '_uirc', () => createContext([]));
105
135
  const useThing = (id, offset) => {
106
- const contextValue = useContext$1(Context);
136
+ const contextValue = useContext(Context);
107
137
  return isUndefined(id)
108
138
  ? contextValue[offset * 2]
109
139
  : isString(id)
@@ -117,14 +147,14 @@ const useThingOrThingById = (thingOrThingId, offset) => {
117
147
  : thingOrThingId;
118
148
  };
119
149
  const useProvideThing = (thingId, thing, offset) => {
120
- const {16: addExtraThingById, 17: delExtraThingById} = useContext$1(Context);
121
- useEffect$1(() => {
150
+ const {16: addExtraThingById, 17: delExtraThingById} = useContext(Context);
151
+ useEffect(() => {
122
152
  addExtraThingById?.(offset, thingId, thing);
123
153
  return () => delExtraThingById?.(offset, thingId);
124
154
  }, [addExtraThingById, thingId, thing, offset, delExtraThingById]);
125
155
  };
126
156
  const useThingIds = (offset) =>
127
- objIds(useContext$1(Context)[offset * 2 + 1] ?? {});
157
+ objIds(useContext(Context)[offset * 2 + 1] ?? {});
128
158
  const useStoreIds = () => useThingIds(0 /* Store */);
129
159
  const useStore = (id) => useThing(id, 0 /* Store */);
130
160
  const useStoreOrStoreById = (storeOrStoreId) =>
@@ -174,20 +204,6 @@ const useSynchronizerOrSynchronizerById = (synchronizerOrSynchronizerId) =>
174
204
  const useProvideSynchronizer = (persisterId, persister) =>
175
205
  useProvideThing(persisterId, persister, 7 /* Synchronizer */);
176
206
 
177
- const lower = (str) => str.toLowerCase();
178
- lower(LISTENER);
179
- const TRANSACTION = 'Transaction';
180
- lower(TRANSACTION);
181
-
182
- const {
183
- useCallback: useCallback$2,
184
- useEffect,
185
- useMemo: useMemo$1,
186
- useLayoutEffect: useLayoutEffect$1,
187
- useRef: useRef$1,
188
- useState: useState$2,
189
- useSyncExternalStore,
190
- } = React;
191
207
  const EMPTY_ARRAY = [];
192
208
  const DEFAULTS = [{}, [], [EMPTY_ARRAY, void 0, EMPTY_ARRAY], void 0, false, 0];
193
209
  const IS_EQUALS = [
@@ -203,8 +219,8 @@ const IS_EQUALS = [
203
219
  ];
204
220
  const isEqual = (thing1, thing2) => thing1 === thing2;
205
221
  const useCreate = (store, create, createDeps = EMPTY_ARRAY) => {
206
- const [, rerender] = useState$2();
207
- const [thing, setThing] = useState$2();
222
+ const [, rerender] = useState();
223
+ const [thing, setThing] = useState();
208
224
  useEffect(
209
225
  () => {
210
226
  const newThing = store ? create(store) : void 0;
@@ -222,8 +238,8 @@ const addAndDelListener = (thing, listenable, ...args) => {
222
238
  return () => thing?.delListener(listenerId);
223
239
  };
224
240
  const useListenable = (listenable, thing, returnType, args = EMPTY_ARRAY) => {
225
- const lastResult = useRef$1(DEFAULTS[returnType]);
226
- const getResult = useCallback$2(
241
+ const lastResult = useRef(DEFAULTS[returnType]);
242
+ const getResult = useCallback(
227
243
  () => {
228
244
  const nextResult =
229
245
  thing?.[(returnType == 4 /* Boolean */ ? _HAS : GET) + listenable]?.(
@@ -236,7 +252,7 @@ const useListenable = (listenable, thing, returnType, args = EMPTY_ARRAY) => {
236
252
  /* eslint-disable-next-line react-hooks/exhaustive-deps */
237
253
  [thing, returnType, listenable, ...args],
238
254
  );
239
- const subscribe = useCallback$2(
255
+ const subscribe = useCallback(
240
256
  (listener) =>
241
257
  addAndDelListener(
242
258
  thing,
@@ -257,7 +273,7 @@ const useListener = (
257
273
  preArgs = EMPTY_ARRAY,
258
274
  ...postArgs
259
275
  ) =>
260
- useLayoutEffect$1(
276
+ useLayoutEffect(
261
277
  () =>
262
278
  addAndDelListener(thing, listenable, ...preArgs, listener, ...postArgs),
263
279
  // eslint-disable-next-line react-hooks/exhaustive-deps
@@ -273,12 +289,12 @@ const useSetCallback = (
273
289
  ...args
274
290
  ) => {
275
291
  const store = useStoreOrStoreById(storeOrStoreId);
276
- return useCallback$2(
292
+ return useCallback(
277
293
  (parameter) =>
278
294
  ifNotUndefined(store, (store2) =>
279
295
  ifNotUndefined(get(parameter, store2), (thing) =>
280
296
  then(
281
- store2['set' + settable](
297
+ store2[SET + settable](
282
298
  ...argsOrGetArgs(args, store2, parameter),
283
299
  thing,
284
300
  ),
@@ -301,11 +317,9 @@ const useDel = (
301
317
  ...args
302
318
  ) => {
303
319
  const store = useStoreOrStoreById(storeOrStoreId);
304
- return useCallback$2(
320
+ return useCallback(
305
321
  (parameter) =>
306
- then(
307
- store?.['del' + deletable](...argsOrGetArgs(args, store, parameter)),
308
- ),
322
+ then(store?.[DEL + deletable](...argsOrGetArgs(args, store, parameter))),
309
323
  // eslint-disable-next-line react-hooks/exhaustive-deps
310
324
  [store, deletable, ...thenDeps, ...nonFunctionDeps(args)],
311
325
  );
@@ -314,16 +328,16 @@ const useCheckpointAction = (checkpointsOrCheckpointsId, action, arg) => {
314
328
  const checkpoints = useCheckpointsOrCheckpointsById(
315
329
  checkpointsOrCheckpointsId,
316
330
  );
317
- return useCallback$2(
331
+ return useCallback(
318
332
  () => checkpoints?.[action](arg),
319
333
  // eslint-disable-next-line react-hooks/exhaustive-deps
320
334
  [checkpoints, action, arg],
321
335
  );
322
336
  };
323
337
  const useCreateStore = (create, createDeps = EMPTY_ARRAY) =>
324
- useMemo$1(create, createDeps);
338
+ useMemo(create, createDeps);
325
339
  const useCreateMergeableStore = (create, createDeps = EMPTY_ARRAY) =>
326
- useMemo$1(create, createDeps);
340
+ useMemo(create, createDeps);
327
341
  const useHasTables = (storeOrStoreId) =>
328
342
  useListenable(
329
343
  TABLES,
@@ -493,7 +507,7 @@ const useAddRowCallback = (
493
507
  reuseRowIds = true,
494
508
  ) => {
495
509
  const store = useStoreOrStoreById(storeOrStoreId);
496
- return useCallback$2(
510
+ return useCallback(
497
511
  (parameter) =>
498
512
  ifNotUndefined(store, (store2) =>
499
513
  ifNotUndefined(getRow(parameter, store2), (row) =>
@@ -523,7 +537,7 @@ const useSetPartialRowCallback = (
523
537
  ) =>
524
538
  useSetCallback(
525
539
  storeOrStoreId,
526
- 'PartialRow',
540
+ PARTIAL + ROW,
527
541
  getPartialRow,
528
542
  getPartialRowDeps,
529
543
  then,
@@ -576,7 +590,7 @@ const useSetPartialValuesCallback = (
576
590
  ) =>
577
591
  useSetCallback(
578
592
  storeOrStoreId,
579
- 'PartialValues',
593
+ PARTIAL + VALUES,
580
594
  getPartialValues,
581
595
  getPartialValuesDeps,
582
596
  then,
@@ -927,7 +941,7 @@ const useWillFinishTransactionListener = (
927
941
  storeOrStoreId,
928
942
  ) =>
929
943
  useListener(
930
- 'WillFinish' + TRANSACTION,
944
+ 'Will' + FINISH + TRANSACTION,
931
945
  useStoreOrStoreById(storeOrStoreId),
932
946
  listener,
933
947
  listenerDeps,
@@ -938,7 +952,7 @@ const useDidFinishTransactionListener = (
938
952
  storeOrStoreId,
939
953
  ) =>
940
954
  useListener(
941
- 'DidFinish' + TRANSACTION,
955
+ 'Did' + FINISH + TRANSACTION,
942
956
  useStoreOrStoreById(storeOrStoreId),
943
957
  listener,
944
958
  listenerDeps,
@@ -947,13 +961,13 @@ const useCreateMetrics = (store, create, createDeps) =>
947
961
  useCreate(store, create, createDeps);
948
962
  const useMetricIds = (metricsOrMetricsId) =>
949
963
  useListenable(
950
- 'MetricIds',
964
+ METRIC + IDS,
951
965
  useMetricsOrMetricsById(metricsOrMetricsId),
952
966
  1 /* Array */,
953
967
  );
954
968
  const useMetric = (metricId, metricsOrMetricsId) =>
955
969
  useListenable(
956
- 'Metric',
970
+ METRIC,
957
971
  useMetricsOrMetricsById(metricsOrMetricsId),
958
972
  3 /* CellOrValue */,
959
973
  [metricId],
@@ -965,7 +979,7 @@ const useMetricListener = (
965
979
  metricsOrMetricsId,
966
980
  ) =>
967
981
  useListener(
968
- 'Metric',
982
+ METRIC,
969
983
  useMetricsOrMetricsById(metricsOrMetricsId),
970
984
  listener,
971
985
  listenerDeps,
@@ -975,20 +989,20 @@ const useCreateIndexes = (store, create, createDeps) =>
975
989
  useCreate(store, create, createDeps);
976
990
  const useSliceIds = (indexId, indexesOrIndexesId) =>
977
991
  useListenable(
978
- 'SliceIds',
992
+ SLICE + IDS,
979
993
  useIndexesOrIndexesById(indexesOrIndexesId),
980
994
  1 /* Array */,
981
995
  [indexId],
982
996
  );
983
997
  const useIndexIds = (indexesOrIndexesId) =>
984
998
  useListenable(
985
- 'IndexIds',
999
+ INDEX + IDS,
986
1000
  useIndexesOrIndexesById(indexesOrIndexesId),
987
1001
  1 /* Array */,
988
1002
  );
989
1003
  const useSliceRowIds = (indexId, sliceId, indexesOrIndexesId) =>
990
1004
  useListenable(
991
- 'Slice' + ROW_IDS,
1005
+ SLICE + ROW_IDS,
992
1006
  useIndexesOrIndexesById(indexesOrIndexesId),
993
1007
  1 /* Array */,
994
1008
  [indexId, sliceId],
@@ -1000,7 +1014,7 @@ const useSliceIdsListener = (
1000
1014
  indexesOrIndexesId,
1001
1015
  ) =>
1002
1016
  useListener(
1003
- 'SliceIds',
1017
+ SLICE + IDS,
1004
1018
  useIndexesOrIndexesById(indexesOrIndexesId),
1005
1019
  listener,
1006
1020
  listenerDeps,
@@ -1014,7 +1028,7 @@ const useSliceRowIdsListener = (
1014
1028
  indexesOrIndexesId,
1015
1029
  ) =>
1016
1030
  useListener(
1017
- 'Slice' + ROW_IDS,
1031
+ SLICE + ROW_IDS,
1018
1032
  useIndexesOrIndexesById(indexesOrIndexesId),
1019
1033
  listener,
1020
1034
  listenerDeps,
@@ -1024,7 +1038,7 @@ const useCreateRelationships = (store, create, createDeps) =>
1024
1038
  useCreate(store, create, createDeps);
1025
1039
  const useRelationshipIds = (relationshipsOrRelationshipsId) =>
1026
1040
  useListenable(
1027
- 'RelationshipIds',
1041
+ RELATIONSHIP + IDS,
1028
1042
  useRelationshipsOrRelationshipsById(relationshipsOrRelationshipsId),
1029
1043
  1 /* Array */,
1030
1044
  );
@@ -1034,7 +1048,7 @@ const useRemoteRowId = (
1034
1048
  relationshipsOrRelationshipsId,
1035
1049
  ) =>
1036
1050
  useListenable(
1037
- 'RemoteRowId',
1051
+ REMOTE_ROW_ID,
1038
1052
  useRelationshipsOrRelationshipsById(relationshipsOrRelationshipsId),
1039
1053
  3 /* CellOrValue */,
1040
1054
  [relationshipId, localRowId],
@@ -1045,7 +1059,7 @@ const useLocalRowIds = (
1045
1059
  relationshipsOrRelationshipsId,
1046
1060
  ) =>
1047
1061
  useListenable(
1048
- 'Local' + ROW_IDS,
1062
+ LOCAL + ROW_IDS,
1049
1063
  useRelationshipsOrRelationshipsById(relationshipsOrRelationshipsId),
1050
1064
  1 /* Array */,
1051
1065
  [relationshipId, remoteRowId],
@@ -1056,7 +1070,7 @@ const useLinkedRowIds = (
1056
1070
  relationshipsOrRelationshipsId,
1057
1071
  ) =>
1058
1072
  useListenable(
1059
- 'Linked' + ROW_IDS,
1073
+ LINKED + ROW_IDS,
1060
1074
  useRelationshipsOrRelationshipsById(relationshipsOrRelationshipsId),
1061
1075
  1 /* Array */,
1062
1076
  [relationshipId, firstRowId],
@@ -1069,7 +1083,7 @@ const useRemoteRowIdListener = (
1069
1083
  relationshipsOrRelationshipsId,
1070
1084
  ) =>
1071
1085
  useListener(
1072
- 'RemoteRowId',
1086
+ REMOTE_ROW_ID,
1073
1087
  useRelationshipsOrRelationshipsById(relationshipsOrRelationshipsId),
1074
1088
  listener,
1075
1089
  listenerDeps,
@@ -1083,7 +1097,7 @@ const useLocalRowIdsListener = (
1083
1097
  relationshipsOrRelationshipsId,
1084
1098
  ) =>
1085
1099
  useListener(
1086
- 'Local' + ROW_IDS,
1100
+ LOCAL + ROW_IDS,
1087
1101
  useRelationshipsOrRelationshipsById(relationshipsOrRelationshipsId),
1088
1102
  listener,
1089
1103
  listenerDeps,
@@ -1097,7 +1111,7 @@ const useLinkedRowIdsListener = (
1097
1111
  relationshipsOrRelationshipsId,
1098
1112
  ) =>
1099
1113
  useListener(
1100
- 'Linked' + ROW_IDS,
1114
+ LINKED + ROW_IDS,
1101
1115
  useRelationshipsOrRelationshipsById(relationshipsOrRelationshipsId),
1102
1116
  listener,
1103
1117
  listenerDeps,
@@ -1107,7 +1121,7 @@ const useCreateQueries = (store, create, createDeps) =>
1107
1121
  useCreate(store, create, createDeps);
1108
1122
  const useQueryIds = (queriesOrQueriesId) =>
1109
1123
  useListenable(
1110
- 'QueryIds',
1124
+ QUERY + IDS,
1111
1125
  useQueriesOrQueriesById(queriesOrQueriesId),
1112
1126
  1 /* Array */,
1113
1127
  );
@@ -1290,13 +1304,13 @@ const useCreateCheckpoints = (store, create, createDeps) =>
1290
1304
  useCreate(store, create, createDeps);
1291
1305
  const useCheckpointIds = (checkpointsOrCheckpointsId) =>
1292
1306
  useListenable(
1293
- 'CheckpointIds',
1307
+ CHECKPOINT + IDS,
1294
1308
  useCheckpointsOrCheckpointsById(checkpointsOrCheckpointsId),
1295
1309
  2 /* Checkpoints */,
1296
1310
  );
1297
1311
  const useCheckpoint = (checkpointId, checkpointsOrCheckpointsId) =>
1298
1312
  useListenable(
1299
- 'Checkpoint',
1313
+ CHECKPOINT,
1300
1314
  useCheckpointsOrCheckpointsById(checkpointsOrCheckpointsId),
1301
1315
  3 /* CellOrValue */,
1302
1316
  [checkpointId],
@@ -1311,7 +1325,7 @@ const useSetCheckpointCallback = (
1311
1325
  const checkpoints = useCheckpointsOrCheckpointsById(
1312
1326
  checkpointsOrCheckpointsId,
1313
1327
  );
1314
- return useCallback$2(
1328
+ return useCallback(
1315
1329
  (parameter) =>
1316
1330
  ifNotUndefined(checkpoints, (checkpoints2) => {
1317
1331
  const label = getCheckpoint(parameter);
@@ -1335,7 +1349,7 @@ const useGoToCallback = (
1335
1349
  const checkpoints = useCheckpointsOrCheckpointsById(
1336
1350
  checkpointsOrCheckpointsId,
1337
1351
  );
1338
- return useCallback$2(
1352
+ return useCallback(
1339
1353
  (parameter) =>
1340
1354
  ifNotUndefined(checkpoints, (checkpoints2) =>
1341
1355
  ifNotUndefined(getCheckpointId(parameter), (checkpointId) =>
@@ -1378,7 +1392,7 @@ const useCheckpointIdsListener = (
1378
1392
  checkpointsOrCheckpointsId,
1379
1393
  ) =>
1380
1394
  useListener(
1381
- 'CheckpointIds',
1395
+ CHECKPOINT + IDS,
1382
1396
  useCheckpointsOrCheckpointsById(checkpointsOrCheckpointsId),
1383
1397
  listener,
1384
1398
  listenerDeps,
@@ -1390,7 +1404,7 @@ const useCheckpointListener = (
1390
1404
  checkpointsOrCheckpointsId,
1391
1405
  ) =>
1392
1406
  useListener(
1393
- 'Checkpoint',
1407
+ CHECKPOINT,
1394
1408
  useCheckpointsOrCheckpointsById(checkpointsOrCheckpointsId),
1395
1409
  listener,
1396
1410
  listenerDeps,
@@ -1405,8 +1419,8 @@ const useCreatePersister = (
1405
1419
  destroy,
1406
1420
  destroyDeps = EMPTY_ARRAY,
1407
1421
  ) => {
1408
- const [, rerender] = useState$2();
1409
- const [persister, setPersister] = useState$2();
1422
+ const [, rerender] = useState();
1423
+ const [persister, setPersister] = useState();
1410
1424
  useEffect(
1411
1425
  () => {
1412
1426
  (async () => {
@@ -1461,7 +1475,7 @@ const useCreateSynchronizer = (
1461
1475
  destroy,
1462
1476
  destroyDeps = EMPTY_ARRAY,
1463
1477
  ) => {
1464
- const [synchronizer, setSynchronizer] = useState$2();
1478
+ const [synchronizer, setSynchronizer] = useState();
1465
1479
  useEffect(
1466
1480
  () => {
1467
1481
  (async () => {
@@ -1504,30 +1518,6 @@ const useSynchronizerStatusListener = (
1504
1518
  [],
1505
1519
  );
1506
1520
 
1507
- const {
1508
- PureComponent,
1509
- Fragment,
1510
- createElement,
1511
- useCallback: useCallback$1,
1512
- useLayoutEffect,
1513
- useRef,
1514
- useState: useState$1,
1515
- } = React;
1516
- const getProps = (getProps2, ...ids) =>
1517
- isUndefined(getProps2) ? {} : getProps2(...ids);
1518
- const getRelationshipsStoreTableIds = (relationships, relationshipId) => [
1519
- relationships,
1520
- relationships?.getStore(),
1521
- relationships?.getLocalTableId(relationshipId),
1522
- relationships?.getRemoteTableId(relationshipId),
1523
- ];
1524
- const getIndexStoreTableId = (indexes, indexId) => [
1525
- indexes,
1526
- indexes?.getStore(),
1527
- indexes?.getTableId(indexId),
1528
- ];
1529
-
1530
- const {useCallback, useContext, useMemo, useState} = React;
1531
1521
  const mergeParentThings = (
1532
1522
  offset,
1533
1523
  parentValue,
@@ -1709,56 +1699,56 @@ const Provider = ({
1709
1699
  value: useMemo(
1710
1700
  () => [
1711
1701
  ...mergeParentThings(
1712
- Offsets.Store,
1702
+ 0 /* Store */,
1713
1703
  parentValue,
1714
1704
  store,
1715
1705
  storesById,
1716
1706
  extraThingsById,
1717
1707
  ),
1718
1708
  ...mergeParentThings(
1719
- Offsets.Metrics,
1709
+ 1 /* Metrics */,
1720
1710
  parentValue,
1721
1711
  metrics,
1722
1712
  metricsById,
1723
1713
  extraThingsById,
1724
1714
  ),
1725
1715
  ...mergeParentThings(
1726
- Offsets.Indexes,
1716
+ 2 /* Indexes */,
1727
1717
  parentValue,
1728
1718
  indexes,
1729
1719
  indexesById,
1730
1720
  extraThingsById,
1731
1721
  ),
1732
1722
  ...mergeParentThings(
1733
- Offsets.Relationships,
1723
+ 3 /* Relationships */,
1734
1724
  parentValue,
1735
1725
  relationships,
1736
1726
  relationshipsById,
1737
1727
  extraThingsById,
1738
1728
  ),
1739
1729
  ...mergeParentThings(
1740
- Offsets.Queries,
1730
+ 4 /* Queries */,
1741
1731
  parentValue,
1742
1732
  queries,
1743
1733
  queriesById,
1744
1734
  extraThingsById,
1745
1735
  ),
1746
1736
  ...mergeParentThings(
1747
- Offsets.Checkpoints,
1737
+ 5 /* Checkpoints */,
1748
1738
  parentValue,
1749
1739
  checkpoints,
1750
1740
  checkpointsById,
1751
1741
  extraThingsById,
1752
1742
  ),
1753
1743
  ...mergeParentThings(
1754
- Offsets.Persister,
1744
+ 6 /* Persister */,
1755
1745
  parentValue,
1756
1746
  persister,
1757
1747
  persistersById,
1758
1748
  extraThingsById,
1759
1749
  ),
1760
1750
  ...mergeParentThings(
1761
- Offsets.Synchronizer,
1751
+ 7 /* Synchronizer */,
1762
1752
  parentValue,
1763
1753
  synchronizer,
1764
1754
  synchronizersById,