tinybase 9.4.0 → 9.5.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. package/@types/_internal/store/with-schemas/index.d.ts +43 -8
  2. package/@types/mergeable-store/with-schemas/index.d.ts +30 -11
  3. package/@types/queries/index.d.ts +11 -11
  4. package/@types/queries/with-schemas/index.d.ts +17 -3
  5. package/@types/schematizers/index.d.ts +6 -4
  6. package/@types/schematizers/schematizer-arktype/index.d.ts +6 -6
  7. package/@types/schematizers/schematizer-arktype/with-schemas/index.d.ts +112 -1
  8. package/@types/schematizers/schematizer-effect/index.d.ts +9 -11
  9. package/@types/schematizers/schematizer-effect/with-schemas/index.d.ts +114 -1
  10. package/@types/schematizers/schematizer-typebox/index.d.ts +7 -7
  11. package/@types/schematizers/schematizer-typebox/with-schemas/index.d.ts +114 -1
  12. package/@types/schematizers/schematizer-valibot/index.d.ts +6 -6
  13. package/@types/schematizers/schematizer-valibot/with-schemas/index.d.ts +112 -1
  14. package/@types/schematizers/schematizer-yup/index.d.ts +5 -4
  15. package/@types/schematizers/schematizer-yup/with-schemas/index.d.ts +112 -1
  16. package/@types/schematizers/schematizer-zod/index.d.ts +6 -6
  17. package/@types/schematizers/schematizer-zod/with-schemas/index.d.ts +112 -1
  18. package/@types/schematizers/with-schemas/index.d.ts +113 -4
  19. package/@types/store/index.d.ts +175 -16
  20. package/@types/store/with-schemas/index.d.ts +238 -55
  21. package/@types/synchronizers/with-schemas/index.d.ts +12 -2
  22. package/@types/ui-react/with-schemas/index.d.ts +576 -7
  23. package/@types/ui-react-dom/index.d.ts +10 -10
  24. package/@types/ui-react-dom/with-schemas/index.d.ts +94 -10
  25. package/@types/ui-react-dom-charts/index.d.ts +7 -7
  26. package/@types/ui-react-dom-charts/with-schemas/index.d.ts +7 -7
  27. package/@types/ui-react-inspector/index.d.ts +1 -1
  28. package/@types/ui-react-inspector/with-schemas/index.d.ts +1 -1
  29. package/@types/ui-solid/with-schemas/index.d.ts +340 -7
  30. package/@types/ui-solid-dom/index.d.ts +10 -10
  31. package/@types/ui-solid-dom/with-schemas/index.d.ts +94 -10
  32. package/@types/ui-solid-inspector/index.d.ts +1 -1
  33. package/@types/ui-solid-inspector/with-schemas/index.d.ts +1 -1
  34. package/@types/ui-svelte/with-schemas/index.d.ts +30 -0
  35. package/@types/ui-svelte-dom/index.d.ts +10 -10
  36. package/@types/ui-svelte-dom/with-schemas/index.d.ts +94 -10
  37. package/@types/ui-svelte-inspector/index.d.ts +1 -1
  38. package/@types/ui-svelte-inspector/with-schemas/index.d.ts +1 -1
  39. package/agents.md +4 -0
  40. package/index.js +76 -22
  41. package/mergeable-store/index.js +76 -22
  42. package/mergeable-store/with-schemas/index.js +76 -22
  43. package/min/index.js +1 -1
  44. package/min/index.js.gz +0 -0
  45. package/min/mergeable-store/index.js +1 -1
  46. package/min/mergeable-store/index.js.gz +0 -0
  47. package/min/mergeable-store/with-schemas/index.js +1 -1
  48. package/min/mergeable-store/with-schemas/index.js.gz +0 -0
  49. package/min/omni/index.js +1 -1
  50. package/min/omni/index.js.gz +0 -0
  51. package/min/omni/with-schemas/index.js +1 -1
  52. package/min/omni/with-schemas/index.js.gz +0 -0
  53. package/min/schematizers/index.js +1 -1
  54. package/min/schematizers/index.js.gz +0 -0
  55. package/min/schematizers/schematizer-arktype/index.js +1 -1
  56. package/min/schematizers/schematizer-arktype/index.js.gz +0 -0
  57. package/min/schematizers/schematizer-arktype/with-schemas/index.js +1 -1
  58. package/min/schematizers/schematizer-arktype/with-schemas/index.js.gz +0 -0
  59. package/min/schematizers/schematizer-effect/index.js +1 -1
  60. package/min/schematizers/schematizer-effect/index.js.gz +0 -0
  61. package/min/schematizers/schematizer-effect/with-schemas/index.js +1 -1
  62. package/min/schematizers/schematizer-effect/with-schemas/index.js.gz +0 -0
  63. package/min/schematizers/schematizer-typebox/index.js +1 -1
  64. package/min/schematizers/schematizer-typebox/index.js.gz +0 -0
  65. package/min/schematizers/schematizer-typebox/with-schemas/index.js +1 -1
  66. package/min/schematizers/schematizer-typebox/with-schemas/index.js.gz +0 -0
  67. package/min/schematizers/schematizer-valibot/index.js +1 -1
  68. package/min/schematizers/schematizer-valibot/index.js.gz +0 -0
  69. package/min/schematizers/schematizer-valibot/with-schemas/index.js +1 -1
  70. package/min/schematizers/schematizer-valibot/with-schemas/index.js.gz +0 -0
  71. package/min/schematizers/schematizer-yup/index.js +1 -1
  72. package/min/schematizers/schematizer-yup/index.js.gz +0 -0
  73. package/min/schematizers/schematizer-yup/with-schemas/index.js +1 -1
  74. package/min/schematizers/schematizer-yup/with-schemas/index.js.gz +0 -0
  75. package/min/schematizers/schematizer-zod/index.js +1 -1
  76. package/min/schematizers/schematizer-zod/index.js.gz +0 -0
  77. package/min/schematizers/schematizer-zod/with-schemas/index.js +1 -1
  78. package/min/schematizers/schematizer-zod/with-schemas/index.js.gz +0 -0
  79. package/min/schematizers/with-schemas/index.js +1 -1
  80. package/min/schematizers/with-schemas/index.js.gz +0 -0
  81. package/min/store/index.js +1 -1
  82. package/min/store/index.js.gz +0 -0
  83. package/min/store/with-schemas/index.js +1 -1
  84. package/min/store/with-schemas/index.js.gz +0 -0
  85. package/min/ui-react-inspector/index.js +1 -1
  86. package/min/ui-react-inspector/index.js.gz +0 -0
  87. package/min/ui-react-inspector/with-schemas/index.js +1 -1
  88. package/min/ui-react-inspector/with-schemas/index.js.gz +0 -0
  89. package/min/ui-solid-inspector/index.js +1 -1
  90. package/min/ui-solid-inspector/index.js.gz +0 -0
  91. package/min/ui-solid-inspector/with-schemas/index.js +1 -1
  92. package/min/ui-solid-inspector/with-schemas/index.js.gz +0 -0
  93. package/min/ui-svelte-inspector/index.js +1 -1
  94. package/min/ui-svelte-inspector/index.js.gz +0 -0
  95. package/min/ui-svelte-inspector/with-schemas/index.js +1 -1
  96. package/min/ui-svelte-inspector/with-schemas/index.js.gz +0 -0
  97. package/min/with-schemas/index.js +1 -1
  98. package/min/with-schemas/index.js.gz +0 -0
  99. package/omni/index.js +76 -22
  100. package/omni/with-schemas/index.js +76 -22
  101. package/package.json +2 -2
  102. package/readme.md +14 -14
  103. package/releases.md +95 -65
  104. package/schematizers/index.js +54 -6
  105. package/schematizers/schematizer-arktype/index.js +99 -19
  106. package/schematizers/schematizer-arktype/with-schemas/index.js +99 -19
  107. package/schematizers/schematizer-effect/index.js +101 -11
  108. package/schematizers/schematizer-effect/with-schemas/index.js +101 -11
  109. package/schematizers/schematizer-typebox/index.js +87 -11
  110. package/schematizers/schematizer-typebox/with-schemas/index.js +87 -11
  111. package/schematizers/schematizer-valibot/index.js +125 -21
  112. package/schematizers/schematizer-valibot/with-schemas/index.js +125 -21
  113. package/schematizers/schematizer-yup/index.js +58 -14
  114. package/schematizers/schematizer-yup/with-schemas/index.js +58 -14
  115. package/schematizers/schematizer-zod/index.js +131 -12
  116. package/schematizers/schematizer-zod/with-schemas/index.js +131 -12
  117. package/schematizers/with-schemas/index.js +54 -6
  118. package/store/index.js +76 -22
  119. package/store/with-schemas/index.js +76 -22
  120. package/ui-react-inspector/index.js +76 -22
  121. package/ui-react-inspector/with-schemas/index.js +76 -22
  122. package/ui-solid-inspector/index.js +76 -22
  123. package/ui-solid-inspector/with-schemas/index.js +76 -22
  124. package/ui-svelte-inspector/index.js +76 -22
  125. package/ui-svelte-inspector/with-schemas/index.js +76 -22
  126. package/with-schemas/index.js +76 -22
@@ -232,6 +232,18 @@ export type TableInHtmlTableProps<
232
232
  [CellId in CellIdFromSchema<Schemas[0], TableId>]?:
233
233
  string | CustomCell<Schemas, TableId, CellId>;
234
234
  };
235
+ /**
236
+ * An optional list of extra Cells to render before the main table Cells.
237
+ * @category Prop
238
+ * @since v8.4.0
239
+ */
240
+ readonly extraCellsBefore?: ExtraRowCell<Schemas, TableId>[];
241
+ /**
242
+ * An optional list of extra Cells to render after the main table Cells.
243
+ * @category Prop
244
+ * @since v8.4.0
245
+ */
246
+ readonly extraCellsAfter?: ExtraRowCell<Schemas, TableId>[];
235
247
  }
236
248
  : never
237
249
  : never;
@@ -312,6 +324,18 @@ export type SortedTableInHtmlTableProps<
312
324
  string | CustomCell<Schemas, TableId, CellId>;
313
325
  };
314
326
  /**
327
+ * An optional list of extra Cells to render before the main table Cells.
328
+ * @category Prop
329
+ * @since v8.4.0
330
+ */
331
+ readonly extraCellsBefore?: ExtraRowCell<Schemas, TableId>[];
332
+ /**
333
+ * An optional list of extra Cells to render after the main table Cells.
334
+ * @category Prop
335
+ * @since v8.4.0
336
+ */
337
+ readonly extraCellsAfter?: ExtraRowCell<Schemas, TableId>[];
338
+ /**
315
339
  * Whether the table should be interactive such that clicking a header changes
316
340
  * the sorting and/or direction.
317
341
  * @category Prop
@@ -379,6 +403,18 @@ export type ValuesInHtmlTableProps<Schemas extends OptionalSchemas> = {
379
403
  * @since v8.4.0
380
404
  */
381
405
  readonly getValueComponentProps?: (valueId: Id) => ExtraProps;
406
+ /**
407
+ * An optional list of extra Cells to render before the main table Cells.
408
+ * @category Prop
409
+ * @since v8.4.0
410
+ */
411
+ readonly extraCellsBefore?: ExtraValueCell<Schemas>[];
412
+ /**
413
+ * An optional list of extra Cells to render after the main table Cells.
414
+ * @category Prop
415
+ * @since v8.4.0
416
+ */
417
+ readonly extraCellsAfter?: ExtraValueCell<Schemas>[];
382
418
  };
383
419
 
384
420
  /**
@@ -427,6 +463,18 @@ export type SliceInHtmlTableProps<Schemas extends OptionalSchemas> = {
427
463
  */
428
464
  readonly customCells?:
429
465
  Ids | {[cellId: Id]: string | CustomCell<NoSchemas, Id, Id>};
466
+ /**
467
+ * An optional list of extra Cells to render before the main table Cells.
468
+ * @category Prop
469
+ * @since v8.4.0
470
+ */
471
+ readonly extraCellsBefore?: ExtraRowCell<NoSchemas, Id>[];
472
+ /**
473
+ * An optional list of extra Cells to render after the main table Cells.
474
+ * @category Prop
475
+ * @since v8.4.0
476
+ */
477
+ readonly extraCellsAfter?: ExtraRowCell<NoSchemas, Id>[];
430
478
  };
431
479
 
432
480
  /**
@@ -477,6 +525,18 @@ export type RelationshipInHtmlTableProps<Schemas extends OptionalSchemas> = {
477
525
  */
478
526
  readonly customCells?:
479
527
  Ids | {[cellId: Id]: string | CustomCell<NoSchemas, Id, Id>};
528
+ /**
529
+ * An optional list of extra Cells to render before the main table Cells.
530
+ * @category Prop
531
+ * @since v8.4.0
532
+ */
533
+ readonly extraCellsBefore?: ExtraRowCell<NoSchemas, Id>[];
534
+ /**
535
+ * An optional list of extra Cells to render after the main table Cells.
536
+ * @category Prop
537
+ * @since v8.4.0
538
+ */
539
+ readonly extraCellsAfter?: ExtraRowCell<NoSchemas, Id>[];
480
540
  };
481
541
 
482
542
  /**
@@ -512,6 +572,18 @@ export type ResultTableInHtmlTableProps<Schemas extends OptionalSchemas> = {
512
572
  */
513
573
  readonly customCells?:
514
574
  Ids | {[cellId: Id]: string | CustomResultCell<Schemas>};
575
+ /**
576
+ * An optional list of extra Cells to render before the main table Cells.
577
+ * @category Prop
578
+ * @since v8.4.0
579
+ */
580
+ readonly extraCellsBefore?: ExtraRowCell<NoSchemas, Id>[];
581
+ /**
582
+ * An optional list of extra Cells to render after the main table Cells.
583
+ * @category Prop
584
+ * @since v8.4.0
585
+ */
586
+ readonly extraCellsAfter?: ExtraRowCell<NoSchemas, Id>[];
515
587
  };
516
588
 
517
589
  /**
@@ -575,6 +647,18 @@ export type ResultSortedTableInHtmlTableProps<Schemas extends OptionalSchemas> =
575
647
  readonly customCells?:
576
648
  Ids | {[cellId: Id]: string | CustomResultCell<Schemas>};
577
649
  /**
650
+ * An optional list of extra Cells to render before the main table Cells.
651
+ * @category Prop
652
+ * @since v8.4.0
653
+ */
654
+ readonly extraCellsBefore?: ExtraRowCell<NoSchemas, Id>[];
655
+ /**
656
+ * An optional list of extra Cells to render after the main table Cells.
657
+ * @category Prop
658
+ * @since v8.4.0
659
+ */
660
+ readonly extraCellsAfter?: ExtraRowCell<NoSchemas, Id>[];
661
+ /**
578
662
  * Whether the table should be interactive such that clicking a header changes
579
663
  * the sorting and/or direction.
580
664
  * @category Prop
@@ -669,7 +753,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
669
753
  *
670
754
  * See the <TableInHtmlTable /> (Solid) demo for this component in action:
671
755
  *
672
- * ![TableInHtmlTable example](https://tinybase.org/shots/tableinhtmltable-solid-demo.png
756
+ * ![TableInHtmlTable example](https://beta.tinybase.org/shots/tableinhtmltable-solid-demo.png
673
757
  * "TableInHtmlTable example")
674
758
  *
675
759
  * The component's props identify which Table to render based on Table Id, and
@@ -821,7 +905,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
821
905
  * See the <SortedTableInHtmlTable /> (Solid) demo for this component in
822
906
  * action:
823
907
  *
824
- * ![SortedTableInHtmlTable example](https://tinybase.org/shots/sortedtableinhtmltable-solid-demo.png
908
+ * ![SortedTableInHtmlTable example](https://beta.tinybase.org/shots/sortedtableinhtmltable-solid-demo.png
825
909
  * "SortedTableInHtmlTable example")
826
910
  *
827
911
  * The component's props identify which Table to render based on Table Id, and
@@ -1000,7 +1084,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1000
1084
  *
1001
1085
  * See the <ValuesInHtmlTable /> (Solid) demo for this component in action:
1002
1086
  *
1003
- * ![ValuesInHtmlTable example](https://tinybase.org/shots/valuesinhtmltable-solid-demo.png
1087
+ * ![ValuesInHtmlTable example](https://beta.tinybase.org/shots/valuesinhtmltable-solid-demo.png
1004
1088
  * "ValuesInHtmlTable example")
1005
1089
  *
1006
1090
  * The component's props identify which Row to render based on Table Id, Row Id,
@@ -1137,7 +1221,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1137
1221
  *
1138
1222
  * See the <SliceInHtmlTable /> (Solid) demo for this component in action:
1139
1223
  *
1140
- * ![SliceInHtmlTable example](https://tinybase.org/shots/sliceinhtmltable-solid-demo.png
1224
+ * ![SliceInHtmlTable example](https://beta.tinybase.org/shots/sliceinhtmltable-solid-demo.png
1141
1225
  * "SliceInHtmlTable example")
1142
1226
  *
1143
1227
  * The component's props identify which Slice to render based on Index Id, Slice
@@ -1301,7 +1385,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1301
1385
  * See the <RelationshipInHtmlTable /> (Solid) demo for this component in
1302
1386
  * action:
1303
1387
  *
1304
- * ![RelationshipInHtmlTable example](https://tinybase.org/shots/relationshipinhtmltable-solid-demo.png
1388
+ * ![RelationshipInHtmlTable example](https://beta.tinybase.org/shots/relationshipinhtmltable-solid-demo.png
1305
1389
  * "RelationshipInHtmlTable example")
1306
1390
  *
1307
1391
  * The component's props identify which Relationship to render based on
@@ -1483,7 +1567,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1483
1567
  * See the <ResultTableInHtmlTable /> (Solid) demo for this component in
1484
1568
  * action:
1485
1569
  *
1486
- * ![ResultTableInHtmlTable example](https://tinybase.org/shots/resulttableinhtmltable-solid-demo.png
1570
+ * ![ResultTableInHtmlTable example](https://beta.tinybase.org/shots/resulttableinhtmltable-solid-demo.png
1487
1571
  * "ResultTableInHtmlTable example")
1488
1572
  *
1489
1573
  * The component's props identify which ResultTable to render based on query Id,
@@ -1642,7 +1726,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1642
1726
  * See the <ResultSortedTableInHtmlTable /> (Solid) demo for this component in
1643
1727
  * action:
1644
1728
  *
1645
- * ![ResultSortedTableInHtmlTable example](https://tinybase.org/shots/resultsortedtableinhtmltable-solid-demo.png
1729
+ * ![ResultSortedTableInHtmlTable example](https://beta.tinybase.org/shots/resultsortedtableinhtmltable-solid-demo.png
1646
1730
  * "ResultSortedTableInHtmlTable example")
1647
1731
  *
1648
1732
  * The component's props identify which ResultTable to render based on query Id,
@@ -1822,7 +1906,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1822
1906
  *
1823
1907
  * See the <EditableCellView /> (Solid) demo for this component in action:
1824
1908
  *
1825
- * ![EditableCellView example](https://tinybase.org/shots/editablecellview-solid-demo.png
1909
+ * ![EditableCellView example](https://beta.tinybase.org/shots/editablecellview-solid-demo.png
1826
1910
  * "EditableCellView example")
1827
1911
  *
1828
1912
  * The component's props identify which Cell to render based on Table Id, Row
@@ -1906,7 +1990,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1906
1990
  *
1907
1991
  * See the <EditableValueView /> (Solid) demo for this component in action:
1908
1992
  *
1909
- * ![EditableValueView example](https://tinybase.org/shots/editablevalueview-solid-demo.png
1993
+ * ![EditableValueView example](https://beta.tinybase.org/shots/editablevalueview-solid-demo.png
1910
1994
  * "EditableValueView example")
1911
1995
  *
1912
1996
  * The component's props identify which Value to render based on Table Id, Row
@@ -1976,7 +2060,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1976
2060
  * See the <SortedTableInHtmlTable /> (Solid) demo for this component in
1977
2061
  * action:
1978
2062
  *
1979
- * ![SortedTablePaginator example](https://tinybase.org/shots/sortedtablepaginator-solid-demo.png
2063
+ * ![SortedTablePaginator example](https://beta.tinybase.org/shots/sortedtablepaginator-solid-demo.png
1980
2064
  * "SortedTablePaginator example")
1981
2065
  *
1982
2066
  * The component displays 'previous' and 'next' buttons for paging through the
@@ -49,7 +49,7 @@ export type InspectorProps = {
49
49
  *
50
50
  * See the <Inspector /> (Solid) demo for this component in action:
51
51
  *
52
- * ![Inspector example](https://tinybase.org/shots/inspector-solid-demo.png
52
+ * ![Inspector example](https://beta.tinybase.org/shots/inspector-solid-demo.png
53
53
  * "Inspector example")
54
54
  *
55
55
  * The component displays a nub in the corner of the screen which you may then
@@ -49,7 +49,7 @@ export type InspectorProps = {
49
49
  *
50
50
  * See the <Inspector /> (Solid) demo for this component in action:
51
51
  *
52
- * ![Inspector example](https://tinybase.org/shots/inspector-solid-demo.png
52
+ * ![Inspector example](https://beta.tinybase.org/shots/inspector-solid-demo.png
53
53
  * "Inspector example")
54
54
  *
55
55
  * The component displays a nub in the corner of the screen which you may then
@@ -1,3 +1,33 @@
1
+ /**
2
+ * The ui-svelte module of the TinyBase project provides reactive functions,
3
+ * listener functions, and components to make it easy to create reactive Svelte
4
+ * 5 apps with Store objects.
5
+ *
6
+ * The reactive functions in this module provide access to the data and
7
+ * structures exposed by other modules in the project. They return reactive
8
+ * objects with a `current` property. Those functions register listeners such
9
+ * that components using them re-render when data changes.
10
+ *
11
+ * The components in this module provide a further abstraction over those
12
+ * reactive functions, and use Svelte snippet props to customize rendering in an
13
+ * idiomatic way.
14
+ *
15
+ * Functions like the getStore function and getMetrics function return TinyBase
16
+ * objects directly from Provider context. Functions like the getCell function,
17
+ * the getRow function, the getTable function, the getValue function, and the
18
+ * hasCell function return reactive objects whose `current` property reflects
19
+ * underlying TinyBase data.
20
+ *
21
+ * Function parameters accept either plain values or reactive getter functions
22
+ * (as per the MaybeGetter type), so passing `() => tableId` from a `let`-bound
23
+ * Svelte prop makes the function re-execute whenever the prop changes.
24
+ * @see Building UIs With Svelte guide
25
+ * @see Hello World (Svelte) demo
26
+ * @see Countries (Svelte) demo
27
+ * @packageDocumentation
28
+ * @module ui-svelte
29
+ * @since v8.1.0
30
+ */
1
31
  import type {Component, Snippet} from 'svelte';
2
32
  import type {
3
33
  AllCellIdFromSchema,
@@ -693,7 +693,7 @@ export type SortedTablePaginatorProps = {
693
693
  *
694
694
  * See the <TableInHtmlTable /> (Svelte) demo for this component in action:
695
695
  *
696
- * ![TableInHtmlTable example](https://tinybase.org/shots/tableinhtmltable-svelte-demo.png
696
+ * ![TableInHtmlTable example](https://beta.tinybase.org/shots/tableinhtmltable-svelte-demo.png
697
697
  * "TableInHtmlTable example")
698
698
  *
699
699
  * The component's props identify which Table to render based on Table Id, and
@@ -857,7 +857,7 @@ export const TableInHtmlTable: Component<
857
857
  * See the <SortedTableInHtmlTable /> (Svelte) demo for this component in
858
858
  * action:
859
859
  *
860
- * ![SortedTableInHtmlTable example](https://tinybase.org/shots/sortedtableinhtmltable-svelte-demo.png
860
+ * ![SortedTableInHtmlTable example](https://beta.tinybase.org/shots/sortedtableinhtmltable-svelte-demo.png
861
861
  * "SortedTableInHtmlTable example")
862
862
  *
863
863
  * The component's props identify which Table to render based on Table Id, and
@@ -1045,7 +1045,7 @@ export const SortedTableInHtmlTable: Component<
1045
1045
  *
1046
1046
  * See the <ValuesInHtmlTable /> (Svelte) demo for this component in action:
1047
1047
  *
1048
- * ![ValuesInHtmlTable example](https://tinybase.org/shots/valuesinhtmltable-svelte-demo.png
1048
+ * ![ValuesInHtmlTable example](https://beta.tinybase.org/shots/valuesinhtmltable-svelte-demo.png
1049
1049
  * "ValuesInHtmlTable example")
1050
1050
  *
1051
1051
  * The component's props identify which Row to render based on Table Id, Row Id,
@@ -1188,7 +1188,7 @@ export const ValuesInHtmlTable: Component<
1188
1188
  *
1189
1189
  * See the <SliceInHtmlTable /> (Svelte) demo for this component in action:
1190
1190
  *
1191
- * ![SliceInHtmlTable example](https://tinybase.org/shots/sliceinhtmltable-svelte-demo.png
1191
+ * ![SliceInHtmlTable example](https://beta.tinybase.org/shots/sliceinhtmltable-svelte-demo.png
1192
1192
  * "SliceInHtmlTable example")
1193
1193
  *
1194
1194
  * The component's props identify which Slice to render based on Index Id, Slice
@@ -1360,7 +1360,7 @@ export const SliceInHtmlTable: Component<
1360
1360
  * See the <RelationshipInHtmlTable /> (Svelte) demo for this component in
1361
1361
  * action:
1362
1362
  *
1363
- * ![RelationshipInHtmlTable example](https://tinybase.org/shots/relationshipinhtmltable-svelte-demo.png
1363
+ * ![RelationshipInHtmlTable example](https://beta.tinybase.org/shots/relationshipinhtmltable-svelte-demo.png
1364
1364
  * "RelationshipInHtmlTable example")
1365
1365
  *
1366
1366
  * The component's props identify which Relationship to render based on
@@ -1547,7 +1547,7 @@ export const RelationshipInHtmlTable: Component<
1547
1547
  * See the <ResultTableInHtmlTable /> (Svelte) demo for this component in
1548
1548
  * action:
1549
1549
  *
1550
- * ![ResultTableInHtmlTable example](https://tinybase.org/shots/resulttableinhtmltable-svelte-demo.png
1550
+ * ![ResultTableInHtmlTable example](https://beta.tinybase.org/shots/resulttableinhtmltable-svelte-demo.png
1551
1551
  * "ResultTableInHtmlTable example")
1552
1552
  *
1553
1553
  * The component's props identify which ResultTable to render based on query Id,
@@ -1716,7 +1716,7 @@ export const ResultTableInHtmlTable: Component<
1716
1716
  * See the <ResultSortedTableInHtmlTable /> (Svelte) demo for this component in
1717
1717
  * action:
1718
1718
  *
1719
- * ![ResultSortedTableInHtmlTable example](https://tinybase.org/shots/resultsortedtableinhtmltable-svelte-demo.png
1719
+ * ![ResultSortedTableInHtmlTable example](https://beta.tinybase.org/shots/resultsortedtableinhtmltable-svelte-demo.png
1720
1720
  * "ResultSortedTableInHtmlTable example")
1721
1721
  *
1722
1722
  * The component's props identify which ResultTable to render based on query Id,
@@ -1905,7 +1905,7 @@ export const ResultSortedTableInHtmlTable: Component<
1905
1905
  *
1906
1906
  * See the <EditableCellView /> (Svelte) demo for this component in action:
1907
1907
  *
1908
- * ![EditableCellView example](https://tinybase.org/shots/editablecellview-svelte-demo.png
1908
+ * ![EditableCellView example](https://beta.tinybase.org/shots/editablecellview-svelte-demo.png
1909
1909
  * "EditableCellView example")
1910
1910
  *
1911
1911
  * The component's props identify which Cell to render based on Table Id, Row
@@ -1978,7 +1978,7 @@ export const EditableCellView: Component<
1978
1978
  *
1979
1979
  * See the <EditableValueView /> (Svelte) demo for this component in action:
1980
1980
  *
1981
- * ![EditableValueView example](https://tinybase.org/shots/editablevalueview-svelte-demo.png
1981
+ * ![EditableValueView example](https://beta.tinybase.org/shots/editablevalueview-svelte-demo.png
1982
1982
  * "EditableValueView example")
1983
1983
  *
1984
1984
  * The component's props identify which Value to render based on Table Id, Row
@@ -2053,7 +2053,7 @@ export const EditableValueView: Component<
2053
2053
  * See the <SortedTableInHtmlTable /> (Svelte) demo for this component in
2054
2054
  * action:
2055
2055
  *
2056
- * ![SortedTablePaginator example](https://tinybase.org/shots/sortedtablepaginator-svelte-demo.png
2056
+ * ![SortedTablePaginator example](https://beta.tinybase.org/shots/sortedtablepaginator-svelte-demo.png
2057
2057
  * "SortedTablePaginator example")
2058
2058
  *
2059
2059
  * The component displays 'previous' and 'next' buttons for paging through the
@@ -230,6 +230,18 @@ export type TableInHtmlTableProps<
230
230
  [CellId in CellIdFromSchema<Schemas[0], TableId>]?:
231
231
  string | CustomCell<Schemas, TableId, CellId>;
232
232
  };
233
+ /**
234
+ * An optional list of extra Cells to render before the main table Cells.
235
+ * @category Prop
236
+ * @since v6.6.0
237
+ */
238
+ readonly extraCellsBefore?: ExtraRowCell<Schemas, TableId>[];
239
+ /**
240
+ * An optional list of extra Cells to render after the main table Cells.
241
+ * @category Prop
242
+ * @since v6.6.0
243
+ */
244
+ readonly extraCellsAfter?: ExtraRowCell<Schemas, TableId>[];
233
245
  }
234
246
  : never
235
247
  : never;
@@ -310,6 +322,18 @@ export type SortedTableInHtmlTableProps<
310
322
  string | CustomCell<Schemas, TableId, CellId>;
311
323
  };
312
324
  /**
325
+ * An optional list of extra Cells to render before the main table Cells.
326
+ * @category Prop
327
+ * @since v6.6.0
328
+ */
329
+ readonly extraCellsBefore?: ExtraRowCell<Schemas, TableId>[];
330
+ /**
331
+ * An optional list of extra Cells to render after the main table Cells.
332
+ * @category Prop
333
+ * @since v6.6.0
334
+ */
335
+ readonly extraCellsAfter?: ExtraRowCell<Schemas, TableId>[];
336
+ /**
313
337
  * Whether the table should be interactive such that clicking a header changes
314
338
  * the sorting and/or direction.
315
339
  * @category Prop
@@ -377,6 +401,18 @@ export type ValuesInHtmlTableProps<Schemas extends OptionalSchemas> = {
377
401
  * @since v4.1.0
378
402
  */
379
403
  readonly getValueComponentProps?: (valueId: Id) => {[prop: string]: any};
404
+ /**
405
+ * An optional list of extra Cells to render before the main table Cells.
406
+ * @category Prop
407
+ * @since v6.6.0
408
+ */
409
+ readonly extraCellsBefore?: ExtraValueCell<Schemas>[];
410
+ /**
411
+ * An optional list of extra Cells to render after the main table Cells.
412
+ * @category Prop
413
+ * @since v6.6.0
414
+ */
415
+ readonly extraCellsAfter?: ExtraValueCell<Schemas>[];
380
416
  };
381
417
 
382
418
  /**
@@ -425,6 +461,18 @@ export type SliceInHtmlTableProps<Schemas extends OptionalSchemas> = {
425
461
  */
426
462
  readonly customCells?:
427
463
  Ids | {[cellId: Id]: string | CustomCell<NoSchemas, Id, Id>};
464
+ /**
465
+ * An optional list of extra Cells to render before the main table Cells.
466
+ * @category Prop
467
+ * @since v6.6.0
468
+ */
469
+ readonly extraCellsBefore?: ExtraRowCell<NoSchemas, Id>[];
470
+ /**
471
+ * An optional list of extra Cells to render after the main table Cells.
472
+ * @category Prop
473
+ * @since v6.6.0
474
+ */
475
+ readonly extraCellsAfter?: ExtraRowCell<NoSchemas, Id>[];
428
476
  };
429
477
 
430
478
  /**
@@ -475,6 +523,18 @@ export type RelationshipInHtmlTableProps<Schemas extends OptionalSchemas> = {
475
523
  */
476
524
  readonly customCells?:
477
525
  Ids | {[cellId: Id]: string | CustomCell<NoSchemas, Id, Id>};
526
+ /**
527
+ * An optional list of extra Cells to render before the main table Cells.
528
+ * @category Prop
529
+ * @since v6.6.0
530
+ */
531
+ readonly extraCellsBefore?: ExtraRowCell<NoSchemas, Id>[];
532
+ /**
533
+ * An optional list of extra Cells to render after the main table Cells.
534
+ * @category Prop
535
+ * @since v6.6.0
536
+ */
537
+ readonly extraCellsAfter?: ExtraRowCell<NoSchemas, Id>[];
478
538
  };
479
539
 
480
540
  /**
@@ -510,6 +570,18 @@ export type ResultTableInHtmlTableProps<Schemas extends OptionalSchemas> = {
510
570
  */
511
571
  readonly customCells?:
512
572
  Ids | {[cellId: Id]: string | CustomResultCell<Schemas>};
573
+ /**
574
+ * An optional list of extra Cells to render before the main table Cells.
575
+ * @category Prop
576
+ * @since v6.6.0
577
+ */
578
+ readonly extraCellsBefore?: ExtraRowCell<NoSchemas, Id>[];
579
+ /**
580
+ * An optional list of extra Cells to render after the main table Cells.
581
+ * @category Prop
582
+ * @since v6.6.0
583
+ */
584
+ readonly extraCellsAfter?: ExtraRowCell<NoSchemas, Id>[];
513
585
  };
514
586
 
515
587
  /**
@@ -573,6 +645,18 @@ export type ResultSortedTableInHtmlTableProps<Schemas extends OptionalSchemas> =
573
645
  readonly customCells?:
574
646
  Ids | {[cellId: Id]: string | CustomResultCell<Schemas>};
575
647
  /**
648
+ * An optional list of extra Cells to render before the main table Cells.
649
+ * @category Prop
650
+ * @since v6.6.0
651
+ */
652
+ readonly extraCellsBefore?: ExtraRowCell<NoSchemas, Id>[];
653
+ /**
654
+ * An optional list of extra Cells to render after the main table Cells.
655
+ * @category Prop
656
+ * @since v6.6.0
657
+ */
658
+ readonly extraCellsAfter?: ExtraRowCell<NoSchemas, Id>[];
659
+ /**
576
660
  * Whether the table should be interactive such that clicking a header changes
577
661
  * the sorting and/or direction.
578
662
  * @category Prop
@@ -667,7 +751,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
667
751
  *
668
752
  * See the <TableInHtmlTable /> (Svelte) demo for this component in action:
669
753
  *
670
- * ![TableInHtmlTable example](https://tinybase.org/shots/tableinhtmltable-svelte-demo.png
754
+ * ![TableInHtmlTable example](https://beta.tinybase.org/shots/tableinhtmltable-svelte-demo.png
671
755
  * "TableInHtmlTable example")
672
756
  *
673
757
  * The component's props identify which Table to render based on Table Id, and
@@ -837,7 +921,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
837
921
  * See the <SortedTableInHtmlTable /> (Svelte) demo for this component in
838
922
  * action:
839
923
  *
840
- * ![SortedTableInHtmlTable example](https://tinybase.org/shots/sortedtableinhtmltable-svelte-demo.png
924
+ * ![SortedTableInHtmlTable example](https://beta.tinybase.org/shots/sortedtableinhtmltable-svelte-demo.png
841
925
  * "SortedTableInHtmlTable example")
842
926
  *
843
927
  * The component's props identify which Table to render based on Table Id, and
@@ -1033,7 +1117,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1033
1117
  *
1034
1118
  * See the <ValuesInHtmlTable /> (Svelte) demo for this component in action:
1035
1119
  *
1036
- * ![ValuesInHtmlTable example](https://tinybase.org/shots/valuesinhtmltable-svelte-demo.png
1120
+ * ![ValuesInHtmlTable example](https://beta.tinybase.org/shots/valuesinhtmltable-svelte-demo.png
1037
1121
  * "ValuesInHtmlTable example")
1038
1122
  *
1039
1123
  * The component's props identify which Row to render based on Table Id, Row Id,
@@ -1184,7 +1268,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1184
1268
  *
1185
1269
  * See the <SliceInHtmlTable /> (Svelte) demo for this component in action:
1186
1270
  *
1187
- * ![SliceInHtmlTable example](https://tinybase.org/shots/sliceinhtmltable-svelte-demo.png
1271
+ * ![SliceInHtmlTable example](https://beta.tinybase.org/shots/sliceinhtmltable-svelte-demo.png
1188
1272
  * "SliceInHtmlTable example")
1189
1273
  *
1190
1274
  * The component's props identify which Slice to render based on Index Id, Slice
@@ -1362,7 +1446,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1362
1446
  * See the <RelationshipInHtmlTable /> (Svelte) demo for this component in
1363
1447
  * action:
1364
1448
  *
1365
- * ![RelationshipInHtmlTable example](https://tinybase.org/shots/relationshipinhtmltable-svelte-demo.png
1449
+ * ![RelationshipInHtmlTable example](https://beta.tinybase.org/shots/relationshipinhtmltable-svelte-demo.png
1366
1450
  * "RelationshipInHtmlTable example")
1367
1451
  *
1368
1452
  * The component's props identify which Relationship to render based on
@@ -1557,7 +1641,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1557
1641
  * See the <ResultTableInHtmlTable /> (Svelte) demo for this component in
1558
1642
  * action:
1559
1643
  *
1560
- * ![ResultTableInHtmlTable example](https://tinybase.org/shots/resulttableinhtmltable-svelte-demo.png
1644
+ * ![ResultTableInHtmlTable example](https://beta.tinybase.org/shots/resulttableinhtmltable-svelte-demo.png
1561
1645
  * "ResultTableInHtmlTable example")
1562
1646
  *
1563
1647
  * The component's props identify which ResultTable to render based on query Id,
@@ -1734,7 +1818,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1734
1818
  * See the <ResultSortedTableInHtmlTable /> (Svelte) demo for this component in
1735
1819
  * action:
1736
1820
  *
1737
- * ![ResultSortedTableInHtmlTable example](https://tinybase.org/shots/resultsortedtableinhtmltable-svelte-demo.png
1821
+ * ![ResultSortedTableInHtmlTable example](https://beta.tinybase.org/shots/resultsortedtableinhtmltable-svelte-demo.png
1738
1822
  * "ResultSortedTableInHtmlTable example")
1739
1823
  *
1740
1824
  * The component's props identify which ResultTable to render based on query Id,
@@ -1931,7 +2015,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1931
2015
  *
1932
2016
  * See the <EditableCellView /> (Svelte) demo for this component in action:
1933
2017
  *
1934
- * ![EditableCellView example](https://tinybase.org/shots/editablecellview-svelte-demo.png
2018
+ * ![EditableCellView example](https://beta.tinybase.org/shots/editablecellview-svelte-demo.png
1935
2019
  * "EditableCellView example")
1936
2020
  *
1937
2021
  * The component's props identify which Cell to render based on Table Id, Row
@@ -2018,7 +2102,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
2018
2102
  *
2019
2103
  * See the <EditableValueView /> (Svelte) demo for this component in action:
2020
2104
  *
2021
- * ![EditableValueView example](https://tinybase.org/shots/editablevalueview-svelte-demo.png
2105
+ * ![EditableValueView example](https://beta.tinybase.org/shots/editablevalueview-svelte-demo.png
2022
2106
  * "EditableValueView example")
2023
2107
  *
2024
2108
  * The component's props identify which Value to render based on Table Id, Row
@@ -2093,7 +2177,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
2093
2177
  * See the <SortedTableInHtmlTable /> (Svelte) demo for this component in
2094
2178
  * action:
2095
2179
  *
2096
- * ![SortedTablePaginator example](https://tinybase.org/shots/sortedtablepaginator-svelte-demo.png
2180
+ * ![SortedTablePaginator example](https://beta.tinybase.org/shots/sortedtablepaginator-svelte-demo.png
2097
2181
  * "SortedTablePaginator example")
2098
2182
  *
2099
2183
  * The component displays 'previous' and 'next' buttons for paging through the
@@ -49,7 +49,7 @@ export type InspectorProps = {
49
49
  *
50
50
  * See the <Inspector /> (Svelte) demo for this component in action:
51
51
  *
52
- * ![Inspector example](https://tinybase.org/shots/inspector-svelte-demo.png
52
+ * ![Inspector example](https://beta.tinybase.org/shots/inspector-svelte-demo.png
53
53
  * "Inspector example")
54
54
  *
55
55
  * The component displays a nub in the corner of the screen which you may then
@@ -49,7 +49,7 @@ export type InspectorProps = {
49
49
  *
50
50
  * See the <Inspector /> (Svelte) demo for this component in action:
51
51
  *
52
- * ![Inspector example](https://tinybase.org/shots/inspector-svelte-demo.png
52
+ * ![Inspector example](https://beta.tinybase.org/shots/inspector-svelte-demo.png
53
53
  * "Inspector example")
54
54
  *
55
55
  * The component displays a nub in the corner of the screen which you may then
package/agents.md CHANGED
@@ -568,6 +568,10 @@ All code examples in a guide file are concatenated and executed as a test:
568
568
 
569
569
  When adding a new feature:
570
570
 
571
+ - Never alias imports in release-note examples to avoid shared-scope name
572
+ collisions. Import each symbol unaliased once in the most recent applicable
573
+ example, and remove conflicting imports from later examples in the page.
574
+
571
575
  1. **Update `/site/guides/20_releases.md`** (NOT `/releases.md`):
572
576
  - Add new version section at the top
573
577
  - Include working code example that will be tested