tinybase 9.1.0-beta.1 → 9.1.0

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 (94) hide show
  1. package/@types/_internal/store/with-schemas/index.d.ts +133 -2
  2. package/@types/indexes/index.d.ts +97 -0
  3. package/@types/indexes/with-schemas/index.d.ts +137 -0
  4. package/@types/store/index.d.ts +96 -18
  5. package/@types/store/with-schemas/index.d.ts +107 -44
  6. package/@types/ui-react/index.d.ts +42 -0
  7. package/@types/ui-react/with-schemas/index.d.ts +101 -32
  8. package/@types/ui-react-dom/index.d.ts +10 -10
  9. package/@types/ui-react-dom/with-schemas/index.d.ts +10 -10
  10. package/@types/ui-react-dom-charts/index.d.ts +7 -7
  11. package/@types/ui-react-dom-charts/with-schemas/index.d.ts +7 -7
  12. package/@types/ui-react-inspector/index.d.ts +1 -1
  13. package/@types/ui-react-inspector/with-schemas/index.d.ts +1 -1
  14. package/@types/ui-solid/index.d.ts +42 -0
  15. package/@types/ui-solid/with-schemas/index.d.ts +101 -32
  16. package/@types/ui-solid-dom/index.d.ts +10 -10
  17. package/@types/ui-solid-dom/with-schemas/index.d.ts +10 -10
  18. package/@types/ui-solid-inspector/index.d.ts +1 -1
  19. package/@types/ui-solid-inspector/with-schemas/index.d.ts +1 -1
  20. package/@types/ui-svelte/index.d.ts +34 -0
  21. package/@types/ui-svelte/with-schemas/index.d.ts +34 -0
  22. package/@types/ui-svelte-dom/index.d.ts +10 -10
  23. package/@types/ui-svelte-dom/with-schemas/index.d.ts +10 -10
  24. package/@types/ui-svelte-inspector/index.d.ts +1 -1
  25. package/@types/ui-svelte-inspector/with-schemas/index.d.ts +1 -1
  26. package/index.js +121 -32
  27. package/indexes/index.js +39 -0
  28. package/indexes/with-schemas/index.js +39 -0
  29. package/mergeable-store/index.js +82 -32
  30. package/mergeable-store/with-schemas/index.js +82 -32
  31. package/min/index.js +1 -1
  32. package/min/index.js.gz +0 -0
  33. package/min/indexes/index.js +1 -1
  34. package/min/indexes/index.js.gz +0 -0
  35. package/min/indexes/with-schemas/index.js +1 -1
  36. package/min/indexes/with-schemas/index.js.gz +0 -0
  37. package/min/mergeable-store/index.js +1 -1
  38. package/min/mergeable-store/index.js.gz +0 -0
  39. package/min/mergeable-store/with-schemas/index.js +1 -1
  40. package/min/mergeable-store/with-schemas/index.js.gz +0 -0
  41. package/min/omni/index.js +1 -1
  42. package/min/omni/index.js.gz +0 -0
  43. package/min/omni/with-schemas/index.js +1 -1
  44. package/min/omni/with-schemas/index.js.gz +0 -0
  45. package/min/store/index.js +1 -1
  46. package/min/store/index.js.gz +0 -0
  47. package/min/store/with-schemas/index.js +1 -1
  48. package/min/store/with-schemas/index.js.gz +0 -0
  49. package/min/ui-react/index.js +1 -1
  50. package/min/ui-react/index.js.gz +0 -0
  51. package/min/ui-react/with-schemas/index.js +1 -1
  52. package/min/ui-react/with-schemas/index.js.gz +0 -0
  53. package/min/ui-react-inspector/index.js +1 -1
  54. package/min/ui-react-inspector/index.js.gz +0 -0
  55. package/min/ui-react-inspector/with-schemas/index.js +1 -1
  56. package/min/ui-react-inspector/with-schemas/index.js.gz +0 -0
  57. package/min/ui-solid/index.js +1 -1
  58. package/min/ui-solid/index.js.gz +0 -0
  59. package/min/ui-solid/with-schemas/index.js +1 -1
  60. package/min/ui-solid/with-schemas/index.js.gz +0 -0
  61. package/min/ui-solid-inspector/index.js +1 -1
  62. package/min/ui-solid-inspector/index.js.gz +0 -0
  63. package/min/ui-solid-inspector/with-schemas/index.js +1 -1
  64. package/min/ui-solid-inspector/with-schemas/index.js.gz +0 -0
  65. package/min/ui-svelte/index.js +1 -1
  66. package/min/ui-svelte/index.js.gz +0 -0
  67. package/min/ui-svelte/with-schemas/index.js +1 -1
  68. package/min/ui-svelte/with-schemas/index.js.gz +0 -0
  69. package/min/ui-svelte-inspector/index.js +1 -1
  70. package/min/ui-svelte-inspector/index.js.gz +0 -0
  71. package/min/ui-svelte-inspector/with-schemas/index.js +1 -1
  72. package/min/ui-svelte-inspector/with-schemas/index.js.gz +0 -0
  73. package/min/with-schemas/index.js +1 -1
  74. package/min/with-schemas/index.js.gz +0 -0
  75. package/omni/index.js +121 -32
  76. package/omni/with-schemas/index.js +121 -32
  77. package/package.json +5 -5
  78. package/readme.md +14 -14
  79. package/releases.md +101 -60
  80. package/store/index.js +82 -32
  81. package/store/with-schemas/index.js +82 -32
  82. package/ui-react/index.js +16 -0
  83. package/ui-react/with-schemas/index.js +16 -0
  84. package/ui-react-inspector/index.js +82 -32
  85. package/ui-react-inspector/with-schemas/index.js +82 -32
  86. package/ui-solid/index.js +16 -0
  87. package/ui-solid/with-schemas/index.js +16 -0
  88. package/ui-solid-inspector/index.js +82 -32
  89. package/ui-solid-inspector/with-schemas/index.js +82 -32
  90. package/ui-svelte/index.js +18 -0
  91. package/ui-svelte/with-schemas/index.js +18 -0
  92. package/ui-svelte-inspector/index.js +82 -32
  93. package/ui-svelte-inspector/with-schemas/index.js +82 -32
  94. package/with-schemas/index.js +121 -32
@@ -668,7 +668,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
668
668
  *
669
669
  * See the <TableInHtmlTable /> (React) demo for this component in action:
670
670
  *
671
- * ![TableInHtmlTable example](https://beta.tinybase.org/shots/tableinhtmltable-react-demo.png
671
+ * ![TableInHtmlTable example](https://tinybase.org/shots/tableinhtmltable-react-demo.png
672
672
  * "TableInHtmlTable example")
673
673
  *
674
674
  * The component's props identify which Table to render based on Table Id, and
@@ -822,7 +822,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
822
822
  * See the <SortedTableInHtmlTable /> (React) demo for this component in
823
823
  * action:
824
824
  *
825
- * ![SortedTableInHtmlTable example](https://beta.tinybase.org/shots/sortedtableinhtmltable-react-demo.png
825
+ * ![SortedTableInHtmlTable example](https://tinybase.org/shots/sortedtableinhtmltable-react-demo.png
826
826
  * "SortedTableInHtmlTable example")
827
827
  *
828
828
  * The component's props identify which Table to render based on Table Id, and
@@ -1003,7 +1003,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1003
1003
  *
1004
1004
  * See the <ValuesInHtmlTable /> (React) demo for this component in action:
1005
1005
  *
1006
- * ![ValuesInHtmlTable example](https://beta.tinybase.org/shots/valuesinhtmltable-react-demo.png
1006
+ * ![ValuesInHtmlTable example](https://tinybase.org/shots/valuesinhtmltable-react-demo.png
1007
1007
  * "ValuesInHtmlTable example")
1008
1008
  *
1009
1009
  * The component's props identify which Row to render based on Table Id, Row Id,
@@ -1142,7 +1142,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1142
1142
  *
1143
1143
  * See the <SliceInHtmlTable /> (React) demo for this component in action:
1144
1144
  *
1145
- * ![SliceInHtmlTable example](https://beta.tinybase.org/shots/sliceinhtmltable-react-demo.png
1145
+ * ![SliceInHtmlTable example](https://tinybase.org/shots/sliceinhtmltable-react-demo.png
1146
1146
  * "SliceInHtmlTable example")
1147
1147
  *
1148
1148
  * The component's props identify which Slice to render based on Index Id, Slice
@@ -1308,7 +1308,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1308
1308
  * See the <RelationshipInHtmlTable /> (React) demo for this component in
1309
1309
  * action:
1310
1310
  *
1311
- * ![RelationshipInHtmlTable example](https://beta.tinybase.org/shots/relationshipinhtmltable-react-demo.png
1311
+ * ![RelationshipInHtmlTable example](https://tinybase.org/shots/relationshipinhtmltable-react-demo.png
1312
1312
  * "RelationshipInHtmlTable example")
1313
1313
  *
1314
1314
  * The component's props identify which Relationship to render based on
@@ -1494,7 +1494,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1494
1494
  * See the <ResultTableInHtmlTable /> (React) demo for this component in
1495
1495
  * action:
1496
1496
  *
1497
- * ![ResultTableInHtmlTable example](https://beta.tinybase.org/shots/resulttableinhtmltable-react-demo.png
1497
+ * ![ResultTableInHtmlTable example](https://tinybase.org/shots/resulttableinhtmltable-react-demo.png
1498
1498
  * "ResultTableInHtmlTable example")
1499
1499
  *
1500
1500
  * The component's props identify which ResultTable to render based on query Id,
@@ -1655,7 +1655,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1655
1655
  * See the <ResultSortedTableInHtmlTable /> (React) demo for this component in
1656
1656
  * action:
1657
1657
  *
1658
- * ![ResultSortedTableInHtmlTable example](https://beta.tinybase.org/shots/resultsortedtableinhtmltable-react-demo.png
1658
+ * ![ResultSortedTableInHtmlTable example](https://tinybase.org/shots/resultsortedtableinhtmltable-react-demo.png
1659
1659
  * "ResultSortedTableInHtmlTable example")
1660
1660
  *
1661
1661
  * The component's props identify which ResultTable to render based on query Id,
@@ -1837,7 +1837,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1837
1837
  *
1838
1838
  * See the <EditableCellView /> (React) demo for this component in action:
1839
1839
  *
1840
- * ![EditableCellView example](https://beta.tinybase.org/shots/editablecellview-react-demo.png
1840
+ * ![EditableCellView example](https://tinybase.org/shots/editablecellview-react-demo.png
1841
1841
  * "EditableCellView example")
1842
1842
  *
1843
1843
  * The component's props identify which Cell to render based on Table Id, Row
@@ -1922,7 +1922,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1922
1922
  *
1923
1923
  * See the <EditableValueView /> (React) demo for this component in action:
1924
1924
  *
1925
- * ![EditableValueView example](https://beta.tinybase.org/shots/editablevalueview-react-demo.png
1925
+ * ![EditableValueView example](https://tinybase.org/shots/editablevalueview-react-demo.png
1926
1926
  * "EditableValueView example")
1927
1927
  *
1928
1928
  * The component's props identify which Value to render based on Table Id, Row
@@ -1993,7 +1993,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1993
1993
  * See the <SortedTableInHtmlTable /> (React) demo for this component in
1994
1994
  * action:
1995
1995
  *
1996
- * ![SortedTablePaginator example](https://beta.tinybase.org/shots/sortedtablepaginator-react-demo.png
1996
+ * ![SortedTablePaginator example](https://tinybase.org/shots/sortedtablepaginator-react-demo.png
1997
1997
  * "SortedTablePaginator example")
1998
1998
  *
1999
1999
  * The component displays 'previous' and 'next' buttons for paging through the
@@ -483,7 +483,7 @@ export type YAxisProps = {
483
483
  *
484
484
  * See the Composing Charts (React) demo for this component in action:
485
485
  *
486
- * ![CartesianChart component example](https://beta.tinybase.org/shots/composing-charts-react-demo.png
486
+ * ![CartesianChart component example](https://tinybase.org/shots/composing-charts-react-demo.png
487
487
  * "CartesianChart component example")
488
488
  *
489
489
  * The series children declare their own xCellId and yCellId bindings. The
@@ -542,7 +542,7 @@ export function CartesianChart(
542
542
  *
543
543
  * See the Axis Overrides (React) demo for this component in action:
544
544
  *
545
- * ![XAxis component example](https://beta.tinybase.org/shots/axis-overrides-react-demo.png
545
+ * ![XAxis component example](https://tinybase.org/shots/axis-overrides-react-demo.png
546
546
  * "XAxis component example")
547
547
  * @category Store components
548
548
  * @since v8.5.0
@@ -558,7 +558,7 @@ export function XAxis(props: XAxisProps): ComponentReturnType;
558
558
  *
559
559
  * See the Axis Overrides (React) demo for this component in action:
560
560
  *
561
- * ![YAxis component example](https://beta.tinybase.org/shots/axis-overrides-react-demo.png
561
+ * ![YAxis component example](https://tinybase.org/shots/axis-overrides-react-demo.png
562
562
  * "YAxis component example")
563
563
  * @category Store components
564
564
  * @since v8.5.0
@@ -574,7 +574,7 @@ export function YAxis(props: YAxisProps): ComponentReturnType;
574
574
  *
575
575
  * See the Composing Charts (React) demo for this component in action:
576
576
  *
577
- * ![LineSeries component example](https://beta.tinybase.org/shots/composing-charts-react-demo.png
577
+ * ![LineSeries component example](https://tinybase.org/shots/composing-charts-react-demo.png
578
578
  * "LineSeries component example")
579
579
  * @category Store components
580
580
  * @since v8.5.0
@@ -590,7 +590,7 @@ export function LineSeries(props: SeriesProps): ComponentReturnType;
590
590
  *
591
591
  * See the Composing Charts (React) demo for this component in action:
592
592
  *
593
- * ![BarSeries component example](https://beta.tinybase.org/shots/composing-charts-react-demo.png
593
+ * ![BarSeries component example](https://tinybase.org/shots/composing-charts-react-demo.png
594
594
  * "BarSeries component example")
595
595
  * @category Store components
596
596
  * @since v8.5.0
@@ -607,7 +607,7 @@ export function BarSeries(props: SeriesProps): ComponentReturnType;
607
607
  *
608
608
  * See the <LineChart /> (React) demo for this component in action:
609
609
  *
610
- * ![LineChart component example](https://beta.tinybase.org/shots/basic-chart-react-demo.png "LineChart
610
+ * ![LineChart component example](https://tinybase.org/shots/basic-chart-react-demo.png "LineChart
611
611
  * component example")
612
612
  * @category Store components
613
613
  * @since v8.5.0
@@ -660,7 +660,7 @@ export function LineChart(
660
660
  *
661
661
  * See the Sorting And Types (React) demo for this component in action:
662
662
  *
663
- * ![BarChart component example](https://beta.tinybase.org/shots/sorting-and-types-react-demo.png
663
+ * ![BarChart component example](https://tinybase.org/shots/sorting-and-types-react-demo.png
664
664
  * "BarChart component example")
665
665
  * @category Store components
666
666
  * @since v8.5.0
@@ -544,7 +544,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
544
544
  *
545
545
  * See the Composing Charts (React) demo for this component in action:
546
546
  *
547
- * ![CartesianChart component example](https://beta.tinybase.org/shots/composing-charts-react-demo.png
547
+ * ![CartesianChart component example](https://tinybase.org/shots/composing-charts-react-demo.png
548
548
  * "CartesianChart component example")
549
549
  *
550
550
  * The series children declare their own xCellId and yCellId bindings. The
@@ -609,7 +609,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
609
609
  *
610
610
  * See the Axis Overrides (React) demo for this component in action:
611
611
  *
612
- * ![XAxis component example](https://beta.tinybase.org/shots/axis-overrides-react-demo.png
612
+ * ![XAxis component example](https://tinybase.org/shots/axis-overrides-react-demo.png
613
613
  * "XAxis component example")
614
614
  * @category Store components
615
615
  * @since v8.5.0
@@ -625,7 +625,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
625
625
  *
626
626
  * See the Axis Overrides (React) demo for this component in action:
627
627
  *
628
- * ![YAxis component example](https://beta.tinybase.org/shots/axis-overrides-react-demo.png
628
+ * ![YAxis component example](https://tinybase.org/shots/axis-overrides-react-demo.png
629
629
  * "YAxis component example")
630
630
  * @category Store components
631
631
  * @since v8.5.0
@@ -641,7 +641,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
641
641
  *
642
642
  * See the Composing Charts (React) demo for this component in action:
643
643
  *
644
- * ![LineSeries component example](https://beta.tinybase.org/shots/composing-charts-react-demo.png
644
+ * ![LineSeries component example](https://tinybase.org/shots/composing-charts-react-demo.png
645
645
  * "LineSeries component example")
646
646
  * @category Store components
647
647
  * @since v8.5.0
@@ -657,7 +657,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
657
657
  *
658
658
  * See the Composing Charts (React) demo for this component in action:
659
659
  *
660
- * ![BarSeries component example](https://beta.tinybase.org/shots/composing-charts-react-demo.png
660
+ * ![BarSeries component example](https://tinybase.org/shots/composing-charts-react-demo.png
661
661
  * "BarSeries component example")
662
662
  * @category Store components
663
663
  * @since v8.5.0
@@ -684,7 +684,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
684
684
  *
685
685
  * See the <LineChart /> (React) demo for this component in action:
686
686
  *
687
- * ![LineChart component example](https://beta.tinybase.org/shots/basic-chart-react-demo.png "LineChart
687
+ * ![LineChart component example](https://tinybase.org/shots/basic-chart-react-demo.png "LineChart
688
688
  * component example")
689
689
  * @category Store components
690
690
  * @since v8.5.0
@@ -750,7 +750,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
750
750
  *
751
751
  * See the Sorting And Types (React) demo for this component in action:
752
752
  *
753
- * ![BarChart component example](https://beta.tinybase.org/shots/sorting-and-types-react-demo.png
753
+ * ![BarChart component example](https://tinybase.org/shots/sorting-and-types-react-demo.png
754
754
  * "BarChart component example")
755
755
  * @category Store components
756
756
  * @since v8.5.0
@@ -46,7 +46,7 @@ export type InspectorProps = {
46
46
  *
47
47
  * See the <Inspector /> (React) demo for this component in action:
48
48
  *
49
- * ![Inspector example](https://beta.tinybase.org/shots/inspector-react-demo.png
49
+ * ![Inspector example](https://tinybase.org/shots/inspector-react-demo.png
50
50
  * "Inspector example")
51
51
  *
52
52
  * The component displays a nub in the corner of the screen which you may then
@@ -46,7 +46,7 @@ export type InspectorProps = {
46
46
  *
47
47
  * See the <Inspector /> (React) demo for this component in action:
48
48
  *
49
- * ![Inspector example](https://beta.tinybase.org/shots/inspector-react-demo.png
49
+ * ![Inspector example](https://tinybase.org/shots/inspector-react-demo.png
50
50
  * "Inspector example")
51
51
  *
52
52
  * The component displays a nub in the corner of the screen which you may then
@@ -6871,6 +6871,26 @@ export function useIndexIds(
6871
6871
  indexesOrIndexesId?: MaybeAccessor<IndexesOrIndexesId | undefined>,
6872
6872
  ): Accessor<Ids>;
6873
6873
 
6874
+ /**
6875
+ * The useHasIndex primitive returns a boolean indicating whether a given Index
6876
+ * exists in the Indexes object, and registers a listener so that any changes to
6877
+ * that result will cause an update.
6878
+ *
6879
+ * This primitive follows the same Indexes object resolution rules as the
6880
+ * useIndexIds primitive.
6881
+ * @param indexId The Id of a possible Index in the Indexes object.
6882
+ * @param indexesOrIndexesId The Indexes object to be accessed: omit for the
6883
+ * default context Indexes object, provide an Id for a named context Indexes
6884
+ * object, or provide an explicit reference.
6885
+ * @returns Whether an Index with that Id exists.
6886
+ * @category Indexes primitives
6887
+ * @since v9.1.0
6888
+ */
6889
+ export function useHasIndex(
6890
+ indexId: MaybeAccessor<Id>,
6891
+ indexesOrIndexesId?: MaybeAccessor<IndexesOrIndexesId | undefined>,
6892
+ ): Accessor<boolean>;
6893
+
6874
6894
  /**
6875
6895
  * The useSliceIds primitive gets the list of Slice Ids in an Index, and
6876
6896
  * registers a listener so that any changes to that result will cause an update.
@@ -6958,6 +6978,28 @@ export function useSliceIds(
6958
6978
  indexesOrIndexesId?: MaybeAccessor<IndexesOrIndexesId | undefined>,
6959
6979
  ): Accessor<Ids>;
6960
6980
 
6981
+ /**
6982
+ * The useHasSlice primitive returns a boolean indicating whether a given Slice
6983
+ * exists in an Index, and registers a listener so that any changes to that
6984
+ * result will cause an update.
6985
+ *
6986
+ * This primitive follows the same Indexes object resolution rules as the
6987
+ * useSliceIds primitive.
6988
+ * @param indexId The Id of a possible Index in the Indexes object.
6989
+ * @param sliceId The Id of a possible Slice in the Index.
6990
+ * @param indexesOrIndexesId The Indexes object to be accessed: omit for the
6991
+ * default context Indexes object, provide an Id for a named context Indexes
6992
+ * object, or provide an explicit reference.
6993
+ * @returns Whether a Slice with that Id exists.
6994
+ * @category Indexes primitives
6995
+ * @since v9.1.0
6996
+ */
6997
+ export function useHasSlice(
6998
+ indexId: MaybeAccessor<Id>,
6999
+ sliceId: MaybeAccessor<Id>,
7000
+ indexesOrIndexesId?: MaybeAccessor<IndexesOrIndexesId | undefined>,
7001
+ ): Accessor<boolean>;
7002
+
6961
7003
  /**
6962
7004
  * The useSliceRowIds primitive gets the list of Row Ids in a given Slice, and
6963
7005
  * registers a listener so that any changes to that result will cause an update.
@@ -143,6 +143,8 @@ import type {
143
143
  MapCell,
144
144
  MapValue,
145
145
  OptionalSchemas,
146
+ PartialRow,
147
+ PartialValues,
146
148
  Row,
147
149
  RowCountListener,
148
150
  RowIdsListener,
@@ -2691,13 +2693,13 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
2691
2693
  * @category Store primitives
2692
2694
  * @since v8.3.0
2693
2695
  */
2694
- useSetTablesCallback: <Parameter, SetTables = Tables<Schemas[0], true>>(
2696
+ useSetTablesCallback: <Parameter>(
2695
2697
  getTables: (
2696
2698
  parameter: Parameter,
2697
2699
  store: Store<Schemas>,
2698
- ) => NoInfer<SetTables>,
2700
+ ) => Tables<Schemas[0], true>,
2699
2701
  storeOrStoreId?: MaybeAccessor<StoreOrStoreId<Schemas> | undefined>,
2700
- then?: (store: Store<Schemas>, tables: SetTables) => void,
2702
+ then?: (store: Store<Schemas>, tables: Tables<Schemas[0], true>) => void,
2701
2703
  ) => ParameterizedCallback<Parameter>;
2702
2704
 
2703
2705
  /**
@@ -2803,15 +2805,17 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
2803
2805
  useSetTableCallback: <
2804
2806
  Parameter,
2805
2807
  TableId extends TableIdFromSchema<Schemas[0]>,
2806
- SetTable = Table<Schemas[0], TableId, true>,
2807
2808
  >(
2808
2809
  tableId: MaybeAccessor<TableId> | GetId<Schemas, Parameter, TableId>,
2809
2810
  getTable: (
2810
2811
  parameter: Parameter,
2811
2812
  store: Store<Schemas>,
2812
- ) => NoInfer<SetTable>,
2813
+ ) => Table<Schemas[0], TableId, true>,
2813
2814
  storeOrStoreId?: MaybeAccessor<StoreOrStoreId<Schemas> | undefined>,
2814
- then?: (store: Store<Schemas>, table: SetTable) => void,
2815
+ then?: (
2816
+ store: Store<Schemas>,
2817
+ table: Table<Schemas[0], TableId, true>,
2818
+ ) => void,
2815
2819
  ) => ParameterizedCallback<Parameter>;
2816
2820
 
2817
2821
  /**
@@ -2917,16 +2921,15 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
2917
2921
  * @category Store primitives
2918
2922
  * @since v8.3.0
2919
2923
  */
2920
- useSetRowCallback: <
2921
- Parameter,
2922
- TableId extends TableIdFromSchema<Schemas[0]>,
2923
- SetRow = Row<Schemas[0], TableId, true>,
2924
- >(
2924
+ useSetRowCallback: <Parameter, TableId extends TableIdFromSchema<Schemas[0]>>(
2925
2925
  tableId: MaybeAccessor<TableId> | GetId<Schemas, Parameter, TableId>,
2926
2926
  rowId: MaybeAccessor<Id> | GetId<Schemas, Parameter, Id>,
2927
- getRow: (parameter: Parameter, store: Store<Schemas>) => NoInfer<SetRow>,
2927
+ getRow: (
2928
+ parameter: Parameter,
2929
+ store: Store<Schemas>,
2930
+ ) => Row<Schemas[0], TableId, true>,
2928
2931
  storeOrStoreId?: MaybeAccessor<StoreOrStoreId<Schemas> | undefined>,
2929
- then?: (store: Store<Schemas>, row: SetRow) => void,
2932
+ then?: (store: Store<Schemas>, row: Row<Schemas[0], TableId, true>) => void,
2930
2933
  ) => ParameterizedCallback<Parameter>;
2931
2934
 
2932
2935
  /**
@@ -3039,15 +3042,18 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
3039
3042
  * @category Store primitives
3040
3043
  * @since v8.3.0
3041
3044
  */
3042
- useAddRowCallback: <
3043
- Parameter,
3044
- TableId extends TableIdFromSchema<Schemas[0]>,
3045
- AddRow = Row<Schemas[0], TableId, true>,
3046
- >(
3045
+ useAddRowCallback: <Parameter, TableId extends TableIdFromSchema<Schemas[0]>>(
3047
3046
  tableId: MaybeAccessor<TableId> | GetId<Schemas, Parameter, TableId>,
3048
- getRow: (parameter: Parameter, store: Store<Schemas>) => NoInfer<AddRow>,
3047
+ getRow: (
3048
+ parameter: Parameter,
3049
+ store: Store<Schemas>,
3050
+ ) => Row<Schemas[0], TableId, true>,
3049
3051
  storeOrStoreId?: MaybeAccessor<StoreOrStoreId<Schemas> | undefined>,
3050
- then?: (rowId: Id | undefined, store: Store<Schemas>, row: AddRow) => void,
3052
+ then?: (
3053
+ rowId: Id | undefined,
3054
+ store: Store<Schemas>,
3055
+ row: Row<Schemas[0], TableId, true>,
3056
+ ) => void,
3051
3057
  reuseRowIds?: boolean,
3052
3058
  ) => ParameterizedCallback<Parameter>;
3053
3059
 
@@ -3158,16 +3164,18 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
3158
3164
  useSetPartialRowCallback: <
3159
3165
  Parameter,
3160
3166
  TableId extends TableIdFromSchema<Schemas[0]>,
3161
- SetPartialRow = Row<Schemas[0], TableId, true>,
3162
3167
  >(
3163
3168
  tableId: MaybeAccessor<TableId> | GetId<Schemas, Parameter, TableId>,
3164
3169
  rowId: MaybeAccessor<Id> | GetId<Schemas, Parameter, Id>,
3165
3170
  getPartialRow: (
3166
3171
  parameter: Parameter,
3167
3172
  store: Store<Schemas>,
3168
- ) => NoInfer<SetPartialRow>,
3173
+ ) => PartialRow<Schemas[0], TableId>,
3169
3174
  storeOrStoreId?: MaybeAccessor<StoreOrStoreId<Schemas> | undefined>,
3170
- then?: (store: Store<Schemas>, partialRow: SetPartialRow) => void,
3175
+ then?: (
3176
+ store: Store<Schemas>,
3177
+ partialRow: PartialRow<Schemas[0], TableId>,
3178
+ ) => void,
3171
3179
  ) => ParameterizedCallback<Parameter>;
3172
3180
 
3173
3181
  /**
@@ -3353,13 +3361,13 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
3353
3361
  * @category Store primitives
3354
3362
  * @since v8.3.0
3355
3363
  */
3356
- useSetValuesCallback: <Parameter, SetValues = Values<Schemas[1], true>>(
3364
+ useSetValuesCallback: <Parameter>(
3357
3365
  getValues: (
3358
3366
  parameter: Parameter,
3359
3367
  store: Store<Schemas>,
3360
- ) => NoInfer<SetValues>,
3368
+ ) => Values<Schemas[1], true>,
3361
3369
  storeOrStoreId?: MaybeAccessor<StoreOrStoreId<Schemas> | undefined>,
3362
- then?: (store: Store<Schemas>, values: SetValues) => void,
3370
+ then?: (store: Store<Schemas>, values: Values<Schemas[1], true>) => void,
3363
3371
  ) => ParameterizedCallback<Parameter>;
3364
3372
 
3365
3373
  /**
@@ -3460,16 +3468,16 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
3460
3468
  * @category Store primitives
3461
3469
  * @since v8.3.0
3462
3470
  */
3463
- useSetPartialValuesCallback: <
3464
- Parameter,
3465
- SetPartialValues = Values<Schemas[1], true>,
3466
- >(
3471
+ useSetPartialValuesCallback: <Parameter>(
3467
3472
  getPartialValues: (
3468
3473
  parameter: Parameter,
3469
3474
  store: Store<Schemas>,
3470
- ) => NoInfer<SetPartialValues>,
3475
+ ) => PartialValues<Schemas[1]>,
3471
3476
  storeOrStoreId?: MaybeAccessor<StoreOrStoreId<Schemas> | undefined>,
3472
- then?: (store: Store<Schemas>, partialValues: SetPartialValues) => void,
3477
+ then?: (
3478
+ store: Store<Schemas>,
3479
+ partialValues: PartialValues<Schemas[1]>,
3480
+ ) => void,
3473
3481
  ) => ParameterizedCallback<Parameter>;
3474
3482
 
3475
3483
  /**
@@ -7827,6 +7835,35 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
7827
7835
  indexesOrIndexesId?: MaybeAccessor<IndexesOrIndexesId<Schemas> | undefined>,
7828
7836
  ): Accessor<Ids>;
7829
7837
 
7838
+ /**
7839
+ * The useHasIndex primitive returns a boolean indicating whether a given Index
7840
+ * exists in the Indexes object, and registers a listener so that any changes to
7841
+ * that result will cause an update.
7842
+ *
7843
+ * This has schema-based typing. The following is a simplified representation:
7844
+ *
7845
+ * ```ts override
7846
+ * useHasIndex(
7847
+ * indexId: MaybeAccessor<Id>,
7848
+ * indexesOrIndexesId?: MaybeAccessor<IndexesOrIndexesId | undefined>,
7849
+ * ): Accessor<boolean>;
7850
+ * ```
7851
+ *
7852
+ * This primitive follows the same Indexes object resolution rules as the
7853
+ * useIndexIds primitive.
7854
+ * @param indexId The Id of a possible Index in the Indexes object.
7855
+ * @param indexesOrIndexesId The Indexes object to be accessed: omit for the
7856
+ * default context Indexes object, provide an Id for a named context Indexes
7857
+ * object, or provide an explicit reference.
7858
+ * @returns Whether an Index with that Id exists.
7859
+ * @category Indexes primitives
7860
+ * @since v9.1.0
7861
+ */
7862
+ useHasIndex: (
7863
+ indexId: MaybeAccessor<Id>,
7864
+ indexesOrIndexesId?: MaybeAccessor<IndexesOrIndexesId<Schemas> | undefined>,
7865
+ ) => Accessor<boolean>;
7866
+
7830
7867
  /**
7831
7868
  * The useSliceIds primitive gets the list of Slice Ids in an Index, and
7832
7869
  * registers a listener so that any changes to that result will cause an update.
@@ -7923,6 +7960,38 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
7923
7960
  indexesOrIndexesId?: MaybeAccessor<IndexesOrIndexesId<Schemas> | undefined>,
7924
7961
  ) => Accessor<Ids>;
7925
7962
 
7963
+ /**
7964
+ * The useHasSlice primitive returns a boolean indicating whether a given Slice
7965
+ * exists in an Index, and registers a listener so that any changes to that
7966
+ * result will cause an update.
7967
+ *
7968
+ * This has schema-based typing. The following is a simplified representation:
7969
+ *
7970
+ * ```ts override
7971
+ * useHasSlice(
7972
+ * indexId: MaybeAccessor<Id>,
7973
+ * sliceId: MaybeAccessor<Id>,
7974
+ * indexesOrIndexesId?: MaybeAccessor<IndexesOrIndexesId | undefined>,
7975
+ * ): Accessor<boolean>;
7976
+ * ```
7977
+ *
7978
+ * This primitive follows the same Indexes object resolution rules as the
7979
+ * useSliceIds primitive.
7980
+ * @param indexId The Id of a possible Index in the Indexes object.
7981
+ * @param sliceId The Id of a possible Slice in the Index.
7982
+ * @param indexesOrIndexesId The Indexes object to be accessed: omit for the
7983
+ * default context Indexes object, provide an Id for a named context Indexes
7984
+ * object, or provide an explicit reference.
7985
+ * @returns Whether a Slice with that Id exists.
7986
+ * @category Indexes primitives
7987
+ * @since v9.1.0
7988
+ */
7989
+ useHasSlice: (
7990
+ indexId: MaybeAccessor<Id>,
7991
+ sliceId: MaybeAccessor<Id>,
7992
+ indexesOrIndexesId?: MaybeAccessor<IndexesOrIndexesId<Schemas> | undefined>,
7993
+ ) => Accessor<boolean>;
7994
+
7926
7995
  /**
7927
7996
  * The useSliceRowIds primitive gets the list of Row Ids in a given Slice, and
7928
7997
  * registers a listener so that any changes to that result will cause an update.
@@ -692,7 +692,7 @@ export type SortedTablePaginatorProps = {
692
692
  *
693
693
  * See the <TableInHtmlTable /> (Solid) demo for this component in action:
694
694
  *
695
- * ![TableInHtmlTable example](https://beta.tinybase.org/shots/tableinhtmltable-solid-demo.png
695
+ * ![TableInHtmlTable example](https://tinybase.org/shots/tableinhtmltable-solid-demo.png
696
696
  * "TableInHtmlTable example")
697
697
  *
698
698
  * The component's props identify which Table to render based on Table Id, and
@@ -836,7 +836,7 @@ export function TableInHtmlTable(
836
836
  * See the <SortedTableInHtmlTable /> (Solid) demo for this component in
837
837
  * action:
838
838
  *
839
- * ![SortedTableInHtmlTable example](https://beta.tinybase.org/shots/sortedtableinhtmltable-solid-demo.png
839
+ * ![SortedTableInHtmlTable example](https://tinybase.org/shots/sortedtableinhtmltable-solid-demo.png
840
840
  * "SortedTableInHtmlTable example")
841
841
  *
842
842
  * The component's props identify which Table to render based on Table Id, and
@@ -1007,7 +1007,7 @@ export function SortedTableInHtmlTable(
1007
1007
  *
1008
1008
  * See the <ValuesInHtmlTable /> (Solid) demo for this component in action:
1009
1009
  *
1010
- * ![ValuesInHtmlTable example](https://beta.tinybase.org/shots/valuesinhtmltable-solid-demo.png
1010
+ * ![ValuesInHtmlTable example](https://tinybase.org/shots/valuesinhtmltable-solid-demo.png
1011
1011
  * "ValuesInHtmlTable example")
1012
1012
  *
1013
1013
  * The component's props identify which Row to render based on Table Id, Row Id,
@@ -1136,7 +1136,7 @@ export function ValuesInHtmlTable(
1136
1136
  *
1137
1137
  * See the <SliceInHtmlTable /> (Solid) demo for this component in action:
1138
1138
  *
1139
- * ![SliceInHtmlTable example](https://beta.tinybase.org/shots/sliceinhtmltable-solid-demo.png
1139
+ * ![SliceInHtmlTable example](https://tinybase.org/shots/sliceinhtmltable-solid-demo.png
1140
1140
  * "SliceInHtmlTable example")
1141
1141
  *
1142
1142
  * The component's props identify which Slice to render based on Index Id, Slice
@@ -1292,7 +1292,7 @@ export function SliceInHtmlTable(
1292
1292
  * See the <RelationshipInHtmlTable /> (Solid) demo for this component in
1293
1293
  * action:
1294
1294
  *
1295
- * ![RelationshipInHtmlTable example](https://beta.tinybase.org/shots/relationshipinhtmltable-solid-demo.png
1295
+ * ![RelationshipInHtmlTable example](https://tinybase.org/shots/relationshipinhtmltable-solid-demo.png
1296
1296
  * "RelationshipInHtmlTable example")
1297
1297
  *
1298
1298
  * The component's props identify which Relationship to render based on
@@ -1466,7 +1466,7 @@ export function RelationshipInHtmlTable(
1466
1466
  * See the <ResultTableInHtmlTable /> (Solid) demo for this component in
1467
1467
  * action:
1468
1468
  *
1469
- * ![ResultTableInHtmlTable example](https://beta.tinybase.org/shots/resulttableinhtmltable-solid-demo.png
1469
+ * ![ResultTableInHtmlTable example](https://tinybase.org/shots/resulttableinhtmltable-solid-demo.png
1470
1470
  * "ResultTableInHtmlTable example")
1471
1471
  *
1472
1472
  * The component's props identify which ResultTable to render based on query Id,
@@ -1617,7 +1617,7 @@ export function ResultTableInHtmlTable(
1617
1617
  * See the <ResultSortedTableInHtmlTable /> (Solid) demo for this component in
1618
1618
  * action:
1619
1619
  *
1620
- * ![ResultSortedTableInHtmlTable example](https://beta.tinybase.org/shots/resultsortedtableinhtmltable-solid-demo.png
1620
+ * ![ResultSortedTableInHtmlTable example](https://tinybase.org/shots/resultsortedtableinhtmltable-solid-demo.png
1621
1621
  * "ResultSortedTableInHtmlTable example")
1622
1622
  *
1623
1623
  * The component's props identify which ResultTable to render based on query Id,
@@ -1789,7 +1789,7 @@ export function ResultSortedTableInHtmlTable(
1789
1789
  *
1790
1790
  * See the <EditableCellView /> (Solid) demo for this component in action:
1791
1791
  *
1792
- * ![EditableCellView example](https://beta.tinybase.org/shots/editablecellview-solid-demo.png
1792
+ * ![EditableCellView example](https://tinybase.org/shots/editablecellview-solid-demo.png
1793
1793
  * "EditableCellView example")
1794
1794
  *
1795
1795
  * The component's props identify which Cell to render based on Table Id, Row
@@ -1859,7 +1859,7 @@ export function EditableCellView(
1859
1859
  *
1860
1860
  * See the <EditableValueView /> (Solid) demo for this component in action:
1861
1861
  *
1862
- * ![EditableValueView example](https://beta.tinybase.org/shots/editablevalueview-solid-demo.png
1862
+ * ![EditableValueView example](https://tinybase.org/shots/editablevalueview-solid-demo.png
1863
1863
  * "EditableValueView example")
1864
1864
  *
1865
1865
  * The component's props identify which Value to render based on Table Id, Row
@@ -1929,7 +1929,7 @@ export function EditableValueView(
1929
1929
  * See the <SortedTableInHtmlTable /> (Solid) demo for this component in
1930
1930
  * action:
1931
1931
  *
1932
- * ![SortedTablePaginator example](https://beta.tinybase.org/shots/sortedtablepaginator-solid-demo.png
1932
+ * ![SortedTablePaginator example](https://tinybase.org/shots/sortedtablepaginator-solid-demo.png
1933
1933
  * "SortedTablePaginator example")
1934
1934
  *
1935
1935
  * The component displays 'previous' and 'next' buttons for paging through the