tinybase 6.0.0-beta.2 → 6.0.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.
- package/@types/_internal/queries/with-schemas/index.d.cts +6 -6
- package/@types/_internal/queries/with-schemas/index.d.ts +6 -6
- package/@types/_internal/store/with-schemas/index.d.cts +1 -1
- package/@types/_internal/store/with-schemas/index.d.ts +1 -1
- package/@types/_internal/ui-react/with-schemas/index.d.cts +13 -13
- package/@types/_internal/ui-react/with-schemas/index.d.ts +13 -13
- package/@types/checkpoints/index.d.cts +0 -1
- package/@types/checkpoints/index.d.ts +0 -1
- package/@types/checkpoints/with-schemas/index.d.cts +0 -1
- package/@types/checkpoints/with-schemas/index.d.ts +0 -1
- package/@types/indexes/index.d.cts +1 -2
- package/@types/indexes/index.d.ts +1 -2
- package/@types/indexes/with-schemas/index.d.cts +6 -7
- package/@types/indexes/with-schemas/index.d.ts +6 -7
- package/@types/mergeable-store/index.d.cts +1 -2
- package/@types/mergeable-store/index.d.ts +1 -2
- package/@types/mergeable-store/with-schemas/index.d.cts +1 -2
- package/@types/mergeable-store/with-schemas/index.d.ts +1 -2
- package/@types/metrics/index.d.cts +1 -2
- package/@types/metrics/index.d.ts +1 -2
- package/@types/metrics/with-schemas/index.d.cts +1 -2
- package/@types/metrics/with-schemas/index.d.ts +1 -2
- package/@types/persisters/index.d.cts +22 -23
- package/@types/persisters/index.d.ts +22 -23
- package/@types/persisters/persister-automerge/index.d.cts +6 -7
- package/@types/persisters/persister-automerge/index.d.ts +6 -7
- package/@types/persisters/persister-automerge/with-schemas/index.d.cts +5 -6
- package/@types/persisters/persister-automerge/with-schemas/index.d.ts +5 -6
- package/@types/persisters/persister-browser/index.d.cts +5 -6
- package/@types/persisters/persister-browser/index.d.ts +5 -6
- package/@types/persisters/persister-browser/with-schemas/index.d.cts +5 -6
- package/@types/persisters/persister-browser/with-schemas/index.d.ts +5 -6
- package/@types/persisters/persister-cr-sqlite-wasm/index.d.cts +7 -8
- package/@types/persisters/persister-cr-sqlite-wasm/index.d.ts +7 -8
- package/@types/persisters/persister-cr-sqlite-wasm/with-schemas/index.d.cts +10 -11
- package/@types/persisters/persister-cr-sqlite-wasm/with-schemas/index.d.ts +10 -11
- package/@types/persisters/persister-durable-object-storage/index.d.cts +5 -6
- package/@types/persisters/persister-durable-object-storage/index.d.ts +5 -6
- package/@types/persisters/persister-durable-object-storage/with-schemas/index.d.cts +5 -6
- package/@types/persisters/persister-durable-object-storage/with-schemas/index.d.ts +5 -6
- package/@types/persisters/persister-electric-sql/index.d.cts +7 -8
- package/@types/persisters/persister-electric-sql/index.d.ts +7 -8
- package/@types/persisters/persister-electric-sql/with-schemas/index.d.cts +10 -11
- package/@types/persisters/persister-electric-sql/with-schemas/index.d.ts +10 -11
- package/@types/persisters/persister-expo-sqlite/index.d.cts +8 -9
- package/@types/persisters/persister-expo-sqlite/index.d.ts +8 -9
- package/@types/persisters/persister-expo-sqlite/with-schemas/index.d.cts +11 -12
- package/@types/persisters/persister-expo-sqlite/with-schemas/index.d.ts +11 -12
- package/@types/persisters/persister-file/index.d.cts +3 -4
- package/@types/persisters/persister-file/index.d.ts +3 -4
- package/@types/persisters/persister-file/with-schemas/index.d.cts +3 -4
- package/@types/persisters/persister-file/with-schemas/index.d.ts +3 -4
- package/@types/persisters/persister-indexed-db/index.d.cts +3 -4
- package/@types/persisters/persister-indexed-db/index.d.ts +3 -4
- package/@types/persisters/persister-indexed-db/with-schemas/index.d.cts +2 -3
- package/@types/persisters/persister-indexed-db/with-schemas/index.d.ts +2 -3
- package/@types/persisters/persister-libsql/index.d.cts +4 -5
- package/@types/persisters/persister-libsql/index.d.ts +4 -5
- package/@types/persisters/persister-libsql/with-schemas/index.d.cts +7 -8
- package/@types/persisters/persister-libsql/with-schemas/index.d.ts +7 -8
- package/@types/persisters/persister-partykit-client/index.d.cts +4 -5
- package/@types/persisters/persister-partykit-client/index.d.ts +4 -5
- package/@types/persisters/persister-partykit-client/with-schemas/index.d.cts +3 -4
- package/@types/persisters/persister-partykit-client/with-schemas/index.d.ts +3 -4
- package/@types/persisters/persister-partykit-server/index.d.cts +1 -2
- package/@types/persisters/persister-partykit-server/index.d.ts +1 -2
- package/@types/persisters/persister-partykit-server/with-schemas/index.d.cts +1 -2
- package/@types/persisters/persister-partykit-server/with-schemas/index.d.ts +1 -2
- package/@types/persisters/persister-pglite/index.d.cts +5 -6
- package/@types/persisters/persister-pglite/index.d.ts +5 -6
- package/@types/persisters/persister-pglite/with-schemas/index.d.cts +8 -9
- package/@types/persisters/persister-pglite/with-schemas/index.d.ts +8 -9
- package/@types/persisters/persister-postgres/index.d.cts +8 -9
- package/@types/persisters/persister-postgres/index.d.ts +8 -9
- package/@types/persisters/persister-postgres/with-schemas/index.d.cts +11 -12
- package/@types/persisters/persister-postgres/with-schemas/index.d.ts +11 -12
- package/@types/persisters/persister-powersync/index.d.cts +7 -8
- package/@types/persisters/persister-powersync/index.d.ts +7 -8
- package/@types/persisters/persister-powersync/with-schemas/index.d.cts +10 -11
- package/@types/persisters/persister-powersync/with-schemas/index.d.ts +10 -11
- package/@types/persisters/persister-remote/index.d.cts +3 -4
- package/@types/persisters/persister-remote/index.d.ts +3 -4
- package/@types/persisters/persister-remote/with-schemas/index.d.cts +2 -3
- package/@types/persisters/persister-remote/with-schemas/index.d.ts +2 -3
- package/@types/persisters/persister-sqlite-wasm/index.d.cts +7 -8
- package/@types/persisters/persister-sqlite-wasm/index.d.ts +7 -8
- package/@types/persisters/persister-sqlite-wasm/with-schemas/index.d.cts +11 -12
- package/@types/persisters/persister-sqlite-wasm/with-schemas/index.d.ts +11 -12
- package/@types/persisters/persister-sqlite3/index.d.cts +5 -6
- package/@types/persisters/persister-sqlite3/index.d.ts +5 -6
- package/@types/persisters/persister-sqlite3/with-schemas/index.d.cts +8 -9
- package/@types/persisters/persister-sqlite3/with-schemas/index.d.ts +8 -9
- package/@types/persisters/persister-yjs/index.d.cts +4 -5
- package/@types/persisters/persister-yjs/index.d.ts +4 -5
- package/@types/persisters/persister-yjs/with-schemas/index.d.cts +3 -4
- package/@types/persisters/persister-yjs/with-schemas/index.d.ts +3 -4
- package/@types/persisters/with-schemas/index.d.cts +26 -27
- package/@types/persisters/with-schemas/index.d.ts +26 -27
- package/@types/queries/index.d.cts +1 -2
- package/@types/queries/index.d.ts +1 -2
- package/@types/queries/with-schemas/index.d.cts +10 -11
- package/@types/queries/with-schemas/index.d.ts +10 -11
- package/@types/relationships/index.d.cts +25 -2
- package/@types/relationships/index.d.ts +25 -2
- package/@types/relationships/with-schemas/index.d.cts +25 -2
- package/@types/relationships/with-schemas/index.d.ts +25 -2
- package/@types/store/index.d.cts +1 -2
- package/@types/store/index.d.ts +1 -2
- package/@types/store/with-schemas/index.d.cts +0 -1
- package/@types/store/with-schemas/index.d.ts +0 -1
- package/@types/synchronizers/index.d.cts +6 -7
- package/@types/synchronizers/index.d.ts +6 -7
- package/@types/synchronizers/synchronizer-broadcast-channel/index.d.cts +3 -4
- package/@types/synchronizers/synchronizer-broadcast-channel/index.d.ts +3 -4
- package/@types/synchronizers/synchronizer-broadcast-channel/with-schemas/index.d.cts +3 -4
- package/@types/synchronizers/synchronizer-broadcast-channel/with-schemas/index.d.ts +3 -4
- package/@types/synchronizers/synchronizer-local/index.d.cts +2 -3
- package/@types/synchronizers/synchronizer-local/index.d.ts +2 -3
- package/@types/synchronizers/synchronizer-local/with-schemas/index.d.cts +2 -3
- package/@types/synchronizers/synchronizer-local/with-schemas/index.d.ts +2 -3
- package/@types/synchronizers/synchronizer-ws-client/index.d.cts +5 -6
- package/@types/synchronizers/synchronizer-ws-client/index.d.ts +5 -6
- package/@types/synchronizers/synchronizer-ws-client/with-schemas/index.d.cts +5 -6
- package/@types/synchronizers/synchronizer-ws-client/with-schemas/index.d.ts +5 -6
- package/@types/synchronizers/synchronizer-ws-server/index.d.cts +29 -30
- package/@types/synchronizers/synchronizer-ws-server/index.d.ts +29 -30
- package/@types/synchronizers/synchronizer-ws-server/with-schemas/index.d.cts +33 -34
- package/@types/synchronizers/synchronizer-ws-server/with-schemas/index.d.ts +33 -34
- package/@types/synchronizers/synchronizer-ws-server-durable-object/index.d.cts +4 -5
- package/@types/synchronizers/synchronizer-ws-server-durable-object/index.d.ts +4 -5
- package/@types/synchronizers/synchronizer-ws-server-durable-object/with-schemas/index.d.cts +8 -9
- package/@types/synchronizers/synchronizer-ws-server-durable-object/with-schemas/index.d.ts +8 -9
- package/@types/synchronizers/synchronizer-ws-server-simple/index.d.cts +4 -5
- package/@types/synchronizers/synchronizer-ws-server-simple/index.d.ts +4 -5
- package/@types/synchronizers/synchronizer-ws-server-simple/with-schemas/index.d.cts +4 -5
- package/@types/synchronizers/synchronizer-ws-server-simple/with-schemas/index.d.ts +4 -5
- package/@types/synchronizers/with-schemas/index.d.cts +10 -11
- package/@types/synchronizers/with-schemas/index.d.ts +10 -11
- package/@types/ui-react/index.d.cts +489 -490
- package/@types/ui-react/index.d.ts +489 -490
- package/@types/ui-react/with-schemas/index.d.cts +494 -495
- package/@types/ui-react/with-schemas/index.d.ts +494 -495
- package/@types/ui-react-dom/index.d.cts +39 -40
- package/@types/ui-react-dom/index.d.ts +39 -40
- package/@types/ui-react-dom/with-schemas/index.d.cts +39 -40
- package/@types/ui-react-dom/with-schemas/index.d.ts +39 -40
- package/@types/ui-react-inspector/index.d.cts +2 -3
- package/@types/ui-react-inspector/index.d.ts +2 -3
- package/@types/ui-react-inspector/with-schemas/index.d.cts +41 -42
- package/@types/ui-react-inspector/with-schemas/index.d.ts +41 -42
- package/checkpoints/index.js +9 -9
- package/checkpoints/with-schemas/index.js +9 -9
- package/index.js +110 -110
- package/indexes/index.js +3 -3
- package/indexes/with-schemas/index.js +3 -3
- package/mergeable-store/index.js +150 -150
- package/mergeable-store/with-schemas/index.js +150 -150
- package/metrics/index.js +3 -3
- package/metrics/with-schemas/index.js +3 -3
- package/min/checkpoints/index.js +1 -1
- package/min/checkpoints/index.js.gz +0 -0
- package/min/checkpoints/with-schemas/index.js +1 -1
- package/min/checkpoints/with-schemas/index.js.gz +0 -0
- package/min/index.js +1 -1
- package/min/index.js.gz +0 -0
- package/min/indexes/index.js +1 -1
- package/min/indexes/index.js.gz +0 -0
- package/min/indexes/with-schemas/index.js +1 -1
- package/min/indexes/with-schemas/index.js.gz +0 -0
- package/min/mergeable-store/index.js +1 -1
- package/min/mergeable-store/index.js.gz +0 -0
- package/min/mergeable-store/with-schemas/index.js +1 -1
- package/min/mergeable-store/with-schemas/index.js.gz +0 -0
- package/min/metrics/index.js +1 -1
- package/min/metrics/index.js.gz +0 -0
- package/min/metrics/with-schemas/index.js +1 -1
- package/min/metrics/with-schemas/index.js.gz +0 -0
- package/min/persisters/index.js +1 -1
- package/min/persisters/index.js.gz +0 -0
- package/min/persisters/persister-automerge/index.js +1 -1
- package/min/persisters/persister-automerge/index.js.gz +0 -0
- package/min/persisters/persister-automerge/with-schemas/index.js +1 -1
- package/min/persisters/persister-automerge/with-schemas/index.js.gz +0 -0
- package/min/persisters/persister-browser/index.js +1 -1
- package/min/persisters/persister-browser/index.js.gz +0 -0
- package/min/persisters/persister-browser/with-schemas/index.js +1 -1
- package/min/persisters/persister-browser/with-schemas/index.js.gz +0 -0
- package/min/persisters/persister-cr-sqlite-wasm/index.js +1 -1
- package/min/persisters/persister-cr-sqlite-wasm/index.js.gz +0 -0
- package/min/persisters/persister-cr-sqlite-wasm/with-schemas/index.js +1 -1
- package/min/persisters/persister-cr-sqlite-wasm/with-schemas/index.js.gz +0 -0
- package/min/persisters/persister-durable-object-storage/index.js +1 -1
- package/min/persisters/persister-durable-object-storage/index.js.gz +0 -0
- package/min/persisters/persister-durable-object-storage/with-schemas/index.js +1 -1
- package/min/persisters/persister-durable-object-storage/with-schemas/index.js.gz +0 -0
- package/min/persisters/persister-electric-sql/index.js +1 -1
- package/min/persisters/persister-electric-sql/index.js.gz +0 -0
- package/min/persisters/persister-electric-sql/with-schemas/index.js +1 -1
- package/min/persisters/persister-electric-sql/with-schemas/index.js.gz +0 -0
- package/min/persisters/persister-expo-sqlite/index.js +1 -1
- package/min/persisters/persister-expo-sqlite/index.js.gz +0 -0
- package/min/persisters/persister-expo-sqlite/with-schemas/index.js +1 -1
- package/min/persisters/persister-expo-sqlite/with-schemas/index.js.gz +0 -0
- package/min/persisters/persister-file/index.js +1 -1
- package/min/persisters/persister-file/index.js.gz +0 -0
- package/min/persisters/persister-file/with-schemas/index.js +1 -1
- package/min/persisters/persister-file/with-schemas/index.js.gz +0 -0
- package/min/persisters/persister-indexed-db/index.js +1 -1
- package/min/persisters/persister-indexed-db/index.js.gz +0 -0
- package/min/persisters/persister-indexed-db/with-schemas/index.js +1 -1
- package/min/persisters/persister-indexed-db/with-schemas/index.js.gz +0 -0
- package/min/persisters/persister-libsql/index.js +1 -1
- package/min/persisters/persister-libsql/index.js.gz +0 -0
- package/min/persisters/persister-libsql/with-schemas/index.js +1 -1
- package/min/persisters/persister-libsql/with-schemas/index.js.gz +0 -0
- package/min/persisters/persister-partykit-client/index.js +1 -1
- package/min/persisters/persister-partykit-client/index.js.gz +0 -0
- package/min/persisters/persister-partykit-client/with-schemas/index.js +1 -1
- package/min/persisters/persister-partykit-client/with-schemas/index.js.gz +0 -0
- package/min/persisters/persister-partykit-server/index.js +1 -1
- package/min/persisters/persister-partykit-server/index.js.gz +0 -0
- package/min/persisters/persister-partykit-server/with-schemas/index.js +1 -1
- package/min/persisters/persister-partykit-server/with-schemas/index.js.gz +0 -0
- package/min/persisters/persister-pglite/index.js +1 -1
- package/min/persisters/persister-pglite/index.js.gz +0 -0
- package/min/persisters/persister-pglite/with-schemas/index.js +1 -1
- package/min/persisters/persister-pglite/with-schemas/index.js.gz +0 -0
- package/min/persisters/persister-postgres/index.js +1 -1
- package/min/persisters/persister-postgres/index.js.gz +0 -0
- package/min/persisters/persister-postgres/with-schemas/index.js +1 -1
- package/min/persisters/persister-postgres/with-schemas/index.js.gz +0 -0
- package/min/persisters/persister-powersync/index.js +1 -1
- package/min/persisters/persister-powersync/index.js.gz +0 -0
- package/min/persisters/persister-powersync/with-schemas/index.js +1 -1
- package/min/persisters/persister-powersync/with-schemas/index.js.gz +0 -0
- package/min/persisters/persister-remote/index.js +1 -1
- package/min/persisters/persister-remote/index.js.gz +0 -0
- package/min/persisters/persister-remote/with-schemas/index.js +1 -1
- package/min/persisters/persister-remote/with-schemas/index.js.gz +0 -0
- package/min/persisters/persister-sqlite-wasm/index.js +1 -1
- package/min/persisters/persister-sqlite-wasm/index.js.gz +0 -0
- package/min/persisters/persister-sqlite-wasm/with-schemas/index.js +1 -1
- package/min/persisters/persister-sqlite-wasm/with-schemas/index.js.gz +0 -0
- package/min/persisters/persister-sqlite3/index.js +1 -1
- package/min/persisters/persister-sqlite3/index.js.gz +0 -0
- package/min/persisters/persister-sqlite3/with-schemas/index.js +1 -1
- package/min/persisters/persister-sqlite3/with-schemas/index.js.gz +0 -0
- package/min/persisters/persister-yjs/index.js +1 -1
- package/min/persisters/persister-yjs/index.js.gz +0 -0
- package/min/persisters/persister-yjs/with-schemas/index.js +1 -1
- package/min/persisters/persister-yjs/with-schemas/index.js.gz +0 -0
- package/min/persisters/with-schemas/index.js +1 -1
- package/min/persisters/with-schemas/index.js.gz +0 -0
- package/min/queries/index.js +1 -1
- package/min/queries/index.js.gz +0 -0
- package/min/queries/with-schemas/index.js +1 -1
- package/min/queries/with-schemas/index.js.gz +0 -0
- package/min/relationships/index.js +1 -1
- package/min/relationships/index.js.gz +0 -0
- package/min/relationships/with-schemas/index.js +1 -1
- package/min/relationships/with-schemas/index.js.gz +0 -0
- package/min/store/index.js +1 -1
- package/min/store/index.js.gz +0 -0
- package/min/store/with-schemas/index.js +1 -1
- package/min/store/with-schemas/index.js.gz +0 -0
- package/min/synchronizers/index.js +1 -1
- package/min/synchronizers/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-broadcast-channel/index.js +1 -1
- package/min/synchronizers/synchronizer-broadcast-channel/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +1 -1
- package/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-local/index.js +1 -1
- package/min/synchronizers/synchronizer-local/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-local/with-schemas/index.js +1 -1
- package/min/synchronizers/synchronizer-local/with-schemas/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-ws-client/index.js +1 -1
- package/min/synchronizers/synchronizer-ws-client/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-ws-client/with-schemas/index.js +1 -1
- package/min/synchronizers/synchronizer-ws-client/with-schemas/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-ws-server/index.js +1 -1
- package/min/synchronizers/synchronizer-ws-server/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-ws-server/with-schemas/index.js +1 -1
- package/min/synchronizers/synchronizer-ws-server/with-schemas/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-ws-server-durable-object/index.js +1 -1
- package/min/synchronizers/synchronizer-ws-server-durable-object/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-ws-server-durable-object/with-schemas/index.js +1 -1
- package/min/synchronizers/synchronizer-ws-server-durable-object/with-schemas/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-ws-server-simple/index.js +1 -1
- package/min/synchronizers/synchronizer-ws-server-simple/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-ws-server-simple/with-schemas/index.js +1 -1
- package/min/synchronizers/synchronizer-ws-server-simple/with-schemas/index.js.gz +0 -0
- package/min/synchronizers/with-schemas/index.js +1 -1
- package/min/synchronizers/with-schemas/index.js.gz +0 -0
- package/min/ui-react/index.js +1 -1
- package/min/ui-react/index.js.gz +0 -0
- package/min/ui-react/with-schemas/index.js +1 -1
- package/min/ui-react/with-schemas/index.js.gz +0 -0
- package/min/ui-react-dom/index.js +1 -1
- package/min/ui-react-dom/index.js.gz +0 -0
- package/min/ui-react-dom/with-schemas/index.js +1 -1
- package/min/ui-react-dom/with-schemas/index.js.gz +0 -0
- package/min/ui-react-inspector/index.js +1 -1
- package/min/ui-react-inspector/index.js.gz +0 -0
- package/min/ui-react-inspector/with-schemas/index.js +1 -1
- package/min/ui-react-inspector/with-schemas/index.js.gz +0 -0
- package/min/with-schemas/index.js +1 -1
- package/min/with-schemas/index.js.gz +0 -0
- package/package.json +6 -6
- package/persisters/index.js +120 -120
- package/persisters/persister-automerge/index.js +8 -8
- package/persisters/persister-automerge/with-schemas/index.js +8 -8
- package/persisters/persister-browser/index.js +8 -8
- package/persisters/persister-browser/with-schemas/index.js +8 -8
- package/persisters/persister-cr-sqlite-wasm/index.js +119 -119
- package/persisters/persister-cr-sqlite-wasm/with-schemas/index.js +119 -119
- package/persisters/persister-durable-object-storage/index.js +12 -12
- package/persisters/persister-durable-object-storage/with-schemas/index.js +12 -12
- package/persisters/persister-electric-sql/index.js +119 -119
- package/persisters/persister-electric-sql/with-schemas/index.js +119 -119
- package/persisters/persister-expo-sqlite/index.js +119 -119
- package/persisters/persister-expo-sqlite/with-schemas/index.js +119 -119
- package/persisters/persister-file/index.js +10 -10
- package/persisters/persister-file/with-schemas/index.js +10 -10
- package/persisters/persister-indexed-db/index.js +8 -8
- package/persisters/persister-indexed-db/with-schemas/index.js +8 -8
- package/persisters/persister-libsql/index.js +119 -119
- package/persisters/persister-libsql/with-schemas/index.js +119 -119
- package/persisters/persister-partykit-client/index.js +23 -23
- package/persisters/persister-partykit-client/with-schemas/index.js +23 -23
- package/persisters/persister-partykit-server/index.js +13 -9
- package/persisters/persister-partykit-server/with-schemas/index.js +13 -9
- package/persisters/persister-pglite/index.js +128 -128
- package/persisters/persister-pglite/with-schemas/index.js +128 -128
- package/persisters/persister-postgres/index.js +128 -128
- package/persisters/persister-postgres/with-schemas/index.js +128 -128
- package/persisters/persister-powersync/index.js +119 -119
- package/persisters/persister-powersync/with-schemas/index.js +119 -119
- package/persisters/persister-remote/index.js +8 -8
- package/persisters/persister-remote/with-schemas/index.js +8 -8
- package/persisters/persister-sqlite-wasm/index.js +119 -119
- package/persisters/persister-sqlite-wasm/with-schemas/index.js +119 -119
- package/persisters/persister-sqlite3/index.js +119 -119
- package/persisters/persister-sqlite3/with-schemas/index.js +119 -119
- package/persisters/persister-yjs/index.js +14 -14
- package/persisters/persister-yjs/with-schemas/index.js +14 -14
- package/persisters/with-schemas/index.js +120 -120
- package/queries/index.js +16 -16
- package/queries/with-schemas/index.js +16 -16
- package/readme.md +13 -32
- package/relationships/index.js +3 -3
- package/relationships/with-schemas/index.js +3 -3
- package/releases.md +35 -34
- package/store/index.js +43 -43
- package/store/with-schemas/index.js +43 -43
- package/synchronizers/index.js +31 -31
- package/synchronizers/synchronizer-broadcast-channel/index.js +31 -31
- package/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +31 -31
- package/synchronizers/synchronizer-local/index.js +31 -31
- package/synchronizers/synchronizer-local/with-schemas/index.js +31 -31
- package/synchronizers/synchronizer-ws-client/index.js +25 -25
- package/synchronizers/synchronizer-ws-client/with-schemas/index.js +25 -25
- package/synchronizers/synchronizer-ws-server/index.js +65 -65
- package/synchronizers/synchronizer-ws-server/with-schemas/index.js +65 -65
- package/synchronizers/synchronizer-ws-server-durable-object/index.js +25 -25
- package/synchronizers/synchronizer-ws-server-durable-object/with-schemas/index.js +25 -25
- package/synchronizers/synchronizer-ws-server-simple/index.js +3 -3
- package/synchronizers/synchronizer-ws-server-simple/with-schemas/index.js +3 -3
- package/synchronizers/with-schemas/index.js +31 -31
- package/ui-react/index.js +31 -34
- package/ui-react/with-schemas/index.js +31 -34
- package/ui-react-dom/index.js +24 -24
- package/ui-react-dom/with-schemas/index.js +24 -24
- package/ui-react-inspector/index.js +3066 -3067
- package/ui-react-inspector/with-schemas/index.js +3066 -3067
- package/with-schemas/index.js +110 -110
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* @module ui-react-inspector
|
|
10
10
|
* @since v5.0.0
|
|
11
11
|
*/
|
|
12
|
-
|
|
13
12
|
import type {
|
|
14
13
|
CellIdFromSchema,
|
|
15
14
|
TableIdFromSchema,
|
|
@@ -27,9 +26,9 @@ import type {
|
|
|
27
26
|
ValueProps,
|
|
28
27
|
} from '../../_internal/ui-react/with-schemas/index.d.cts';
|
|
29
28
|
import type {Id, Ids} from '../../common/with-schemas/index.d.cts';
|
|
30
|
-
import type {ComponentType} from 'react';
|
|
31
29
|
import type {NoSchemas} from '../../store/index.d.cts';
|
|
32
30
|
import type {OptionalSchemas} from '../../store/with-schemas/index.d.cts';
|
|
31
|
+
import type {ComponentType} from 'react';
|
|
33
32
|
|
|
34
33
|
/**
|
|
35
34
|
* The CustomCell object is used to configure custom cell rendering in an HTML
|
|
@@ -658,11 +657,11 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
658
657
|
* a <table> element with a CSS class.
|
|
659
658
|
*
|
|
660
659
|
* ```jsx
|
|
661
|
-
* import {Provider} from 'tinybase/ui-react';
|
|
662
660
|
* import React from 'react';
|
|
663
|
-
* import {TableInHtmlTable} from 'tinybase/ui-react-dom';
|
|
664
661
|
* import {createRoot} from 'react-dom/client';
|
|
665
662
|
* import {createStore} from 'tinybase';
|
|
663
|
+
* import {Provider} from 'tinybase/ui-react';
|
|
664
|
+
* import {TableInHtmlTable} from 'tinybase/ui-react-dom';
|
|
666
665
|
*
|
|
667
666
|
* const App = ({store}) => (
|
|
668
667
|
* <Provider store={store}>
|
|
@@ -708,11 +707,11 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
708
707
|
* row is removed.
|
|
709
708
|
*
|
|
710
709
|
* ```jsx
|
|
711
|
-
* import {CellView, Provider} from 'tinybase/ui-react';
|
|
712
710
|
* import React from 'react';
|
|
713
|
-
* import {TableInHtmlTable} from 'tinybase/ui-react-dom';
|
|
714
711
|
* import {createRoot} from 'react-dom/client';
|
|
715
712
|
* import {createStore} from 'tinybase';
|
|
713
|
+
* import {CellView, Provider} from 'tinybase/ui-react';
|
|
714
|
+
* import {TableInHtmlTable} from 'tinybase/ui-react-dom';
|
|
716
715
|
*
|
|
717
716
|
* const App = ({store}) => (
|
|
718
717
|
* <Provider store={store}>
|
|
@@ -816,11 +815,11 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
816
815
|
* Table in a <table> element with a CSS class.
|
|
817
816
|
*
|
|
818
817
|
* ```jsx
|
|
819
|
-
* import {Provider} from 'tinybase/ui-react';
|
|
820
818
|
* import React from 'react';
|
|
821
|
-
* import {SortedTableInHtmlTable} from 'tinybase/ui-react-dom';
|
|
822
819
|
* import {createRoot} from 'react-dom/client';
|
|
823
820
|
* import {createStore} from 'tinybase';
|
|
821
|
+
* import {Provider} from 'tinybase/ui-react';
|
|
822
|
+
* import {SortedTableInHtmlTable} from 'tinybase/ui-react-dom';
|
|
824
823
|
*
|
|
825
824
|
* const App = ({store}) => (
|
|
826
825
|
* <Provider store={store}>
|
|
@@ -874,11 +873,11 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
874
873
|
* of each row is removed.
|
|
875
874
|
*
|
|
876
875
|
* ```jsx
|
|
877
|
-
* import {CellView, Provider} from 'tinybase/ui-react';
|
|
878
876
|
* import React from 'react';
|
|
879
|
-
* import {SortedTableInHtmlTable} from 'tinybase/ui-react-dom';
|
|
880
877
|
* import {createRoot} from 'react-dom/client';
|
|
881
878
|
* import {createStore} from 'tinybase';
|
|
879
|
+
* import {CellView, Provider} from 'tinybase/ui-react';
|
|
880
|
+
* import {SortedTableInHtmlTable} from 'tinybase/ui-react-dom';
|
|
882
881
|
*
|
|
883
882
|
* const App = ({store}) => (
|
|
884
883
|
* <Provider store={store}>
|
|
@@ -972,11 +971,11 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
972
971
|
* in a <table> element with a CSS class.
|
|
973
972
|
*
|
|
974
973
|
* ```jsx
|
|
975
|
-
* import {Provider} from 'tinybase/ui-react';
|
|
976
974
|
* import React from 'react';
|
|
977
|
-
* import {ValuesInHtmlTable} from 'tinybase/ui-react-dom';
|
|
978
975
|
* import {createRoot} from 'react-dom/client';
|
|
979
976
|
* import {createStore} from 'tinybase';
|
|
977
|
+
* import {Provider} from 'tinybase/ui-react';
|
|
978
|
+
* import {ValuesInHtmlTable} from 'tinybase/ui-react-dom';
|
|
980
979
|
*
|
|
981
980
|
* const App = ({store}) => (
|
|
982
981
|
* <Provider store={store}>
|
|
@@ -1018,11 +1017,11 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1018
1017
|
* the top of the table and the Id column at the start of each row is removed.
|
|
1019
1018
|
*
|
|
1020
1019
|
* ```jsx
|
|
1021
|
-
* import {Provider, ValueView} from 'tinybase/ui-react';
|
|
1022
1020
|
* import React from 'react';
|
|
1023
|
-
* import {ValuesInHtmlTable} from 'tinybase/ui-react-dom';
|
|
1024
1021
|
* import {createRoot} from 'react-dom/client';
|
|
1025
1022
|
* import {createStore} from 'tinybase';
|
|
1023
|
+
* import {Provider, ValueView} from 'tinybase/ui-react';
|
|
1024
|
+
* import {ValuesInHtmlTable} from 'tinybase/ui-react-dom';
|
|
1026
1025
|
*
|
|
1027
1026
|
* const App = ({store}) => (
|
|
1028
1027
|
* <Provider store={store}>
|
|
@@ -1099,11 +1098,11 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1099
1098
|
* in a <table> element with a CSS class.
|
|
1100
1099
|
*
|
|
1101
1100
|
* ```jsx
|
|
1101
|
+
* import React from 'react';
|
|
1102
|
+
* import {createRoot} from 'react-dom/client';
|
|
1102
1103
|
* import {createIndexes, createStore} from 'tinybase';
|
|
1103
1104
|
* import {Provider} from 'tinybase/ui-react';
|
|
1104
|
-
* import React from 'react';
|
|
1105
1105
|
* import {SliceInHtmlTable} from 'tinybase/ui-react-dom';
|
|
1106
|
-
* import {createRoot} from 'react-dom/client';
|
|
1107
1106
|
*
|
|
1108
1107
|
* const App = ({indexes}) => (
|
|
1109
1108
|
* <Provider indexes={indexes}>
|
|
@@ -1155,11 +1154,11 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1155
1154
|
* row is removed.
|
|
1156
1155
|
*
|
|
1157
1156
|
* ```jsx
|
|
1158
|
-
* import {CellView, Provider} from 'tinybase/ui-react';
|
|
1159
|
-
* import {createIndexes, createStore} from 'tinybase';
|
|
1160
1157
|
* import React from 'react';
|
|
1161
|
-
* import {SliceInHtmlTable} from 'tinybase/ui-react-dom';
|
|
1162
1158
|
* import {createRoot} from 'react-dom/client';
|
|
1159
|
+
* import {createIndexes, createStore} from 'tinybase';
|
|
1160
|
+
* import {CellView, Provider} from 'tinybase/ui-react';
|
|
1161
|
+
* import {SliceInHtmlTable} from 'tinybase/ui-react-dom';
|
|
1163
1162
|
*
|
|
1164
1163
|
* const App = ({indexes}) => (
|
|
1165
1164
|
* <Provider indexes={indexes}>
|
|
@@ -1262,11 +1261,11 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1262
1261
|
* CSS class. Note the dotted pairs that are used as column headings.
|
|
1263
1262
|
*
|
|
1264
1263
|
* ```jsx
|
|
1264
|
+
* import React from 'react';
|
|
1265
|
+
* import {createRoot} from 'react-dom/client';
|
|
1265
1266
|
* import {createRelationships, createStore} from 'tinybase';
|
|
1266
1267
|
* import {Provider} from 'tinybase/ui-react';
|
|
1267
|
-
* import React from 'react';
|
|
1268
1268
|
* import {RelationshipInHtmlTable} from 'tinybase/ui-react-dom';
|
|
1269
|
-
* import {createRoot} from 'react-dom/client';
|
|
1270
1269
|
*
|
|
1271
1270
|
* const App = ({relationships}) => (
|
|
1272
1271
|
* <Provider relationships={relationships}>
|
|
@@ -1326,11 +1325,11 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1326
1325
|
* the table and the Id column at the start of each row is removed.
|
|
1327
1326
|
*
|
|
1328
1327
|
* ```jsx
|
|
1329
|
-
* import {CellView, Provider} from 'tinybase/ui-react';
|
|
1330
|
-
* import {createRelationships, createStore} from 'tinybase';
|
|
1331
1328
|
* import React from 'react';
|
|
1332
|
-
* import {RelationshipInHtmlTable} from 'tinybase/ui-react-dom';
|
|
1333
1329
|
* import {createRoot} from 'react-dom/client';
|
|
1330
|
+
* import {createRelationships, createStore} from 'tinybase';
|
|
1331
|
+
* import {CellView, Provider} from 'tinybase/ui-react';
|
|
1332
|
+
* import {RelationshipInHtmlTable} from 'tinybase/ui-react-dom';
|
|
1334
1333
|
*
|
|
1335
1334
|
* const App = ({relationships}) => (
|
|
1336
1335
|
* <Provider relationships={relationships}>
|
|
@@ -1426,11 +1425,11 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1426
1425
|
* ResultTable in a <table> element with a CSS class.
|
|
1427
1426
|
*
|
|
1428
1427
|
* ```jsx
|
|
1428
|
+
* import React from 'react';
|
|
1429
|
+
* import {createRoot} from 'react-dom/client';
|
|
1429
1430
|
* import {createQueries, createStore} from 'tinybase';
|
|
1430
1431
|
* import {Provider} from 'tinybase/ui-react';
|
|
1431
|
-
* import React from 'react';
|
|
1432
1432
|
* import {ResultTableInHtmlTable} from 'tinybase/ui-react-dom';
|
|
1433
|
-
* import {createRoot} from 'react-dom/client';
|
|
1434
1433
|
*
|
|
1435
1434
|
* const App = ({queries}) => (
|
|
1436
1435
|
* <Provider queries={queries}>
|
|
@@ -1480,11 +1479,11 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1480
1479
|
* the start of each row is removed.
|
|
1481
1480
|
*
|
|
1482
1481
|
* ```jsx
|
|
1483
|
-
* import {Provider, ResultCellView} from 'tinybase/ui-react';
|
|
1484
|
-
* import {createQueries, createStore} from 'tinybase';
|
|
1485
1482
|
* import React from 'react';
|
|
1486
|
-
* import {ResultTableInHtmlTable} from 'tinybase/ui-react-dom';
|
|
1487
1483
|
* import {createRoot} from 'react-dom/client';
|
|
1484
|
+
* import {createQueries, createStore} from 'tinybase';
|
|
1485
|
+
* import {Provider, ResultCellView} from 'tinybase/ui-react';
|
|
1486
|
+
* import {ResultTableInHtmlTable} from 'tinybase/ui-react-dom';
|
|
1488
1487
|
*
|
|
1489
1488
|
* const App = ({queries}) => (
|
|
1490
1489
|
* <Provider queries={queries}>
|
|
@@ -1592,11 +1591,11 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1592
1591
|
* renders the ResultTable in a <table> element with a CSS class.
|
|
1593
1592
|
*
|
|
1594
1593
|
* ```jsx
|
|
1594
|
+
* import React from 'react';
|
|
1595
|
+
* import {createRoot} from 'react-dom/client';
|
|
1595
1596
|
* import {createQueries, createStore} from 'tinybase';
|
|
1596
1597
|
* import {Provider} from 'tinybase/ui-react';
|
|
1597
|
-
* import React from 'react';
|
|
1598
1598
|
* import {ResultSortedTableInHtmlTable} from 'tinybase/ui-react-dom';
|
|
1599
|
-
* import {createRoot} from 'react-dom/client';
|
|
1600
1599
|
*
|
|
1601
1600
|
* const App = ({queries}) => (
|
|
1602
1601
|
* <Provider queries={queries}>
|
|
@@ -1650,11 +1649,11 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1650
1649
|
* column at the start of each row is removed.
|
|
1651
1650
|
*
|
|
1652
1651
|
* ```jsx
|
|
1653
|
-
* import {Provider, ResultCellView} from 'tinybase/ui-react';
|
|
1654
|
-
* import {createQueries, createStore} from 'tinybase';
|
|
1655
1652
|
* import React from 'react';
|
|
1656
|
-
* import {ResultSortedTableInHtmlTable} from 'tinybase/ui-react-dom';
|
|
1657
1653
|
* import {createRoot} from 'react-dom/client';
|
|
1654
|
+
* import {createQueries, createStore} from 'tinybase';
|
|
1655
|
+
* import {Provider, ResultCellView} from 'tinybase/ui-react';
|
|
1656
|
+
* import {ResultSortedTableInHtmlTable} from 'tinybase/ui-react-dom';
|
|
1658
1657
|
*
|
|
1659
1658
|
* const App = ({queries}) => (
|
|
1660
1659
|
* <Provider queries={queries}>
|
|
@@ -1748,11 +1747,11 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1748
1747
|
* Cell.
|
|
1749
1748
|
*
|
|
1750
1749
|
* ```jsx
|
|
1751
|
-
* import {EditableCellView} from 'tinybase/ui-react-dom';
|
|
1752
|
-
* import {Provider} from 'tinybase/ui-react';
|
|
1753
1750
|
* import React from 'react';
|
|
1754
1751
|
* import {createRoot} from 'react-dom/client';
|
|
1755
1752
|
* import {createStore} from 'tinybase';
|
|
1753
|
+
* import {Provider} from 'tinybase/ui-react';
|
|
1754
|
+
* import {EditableCellView} from 'tinybase/ui-react-dom';
|
|
1756
1755
|
*
|
|
1757
1756
|
* const App = ({store}) => (
|
|
1758
1757
|
* <Provider store={store}>
|
|
@@ -1818,11 +1817,11 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1818
1817
|
* Value.
|
|
1819
1818
|
*
|
|
1820
1819
|
* ```jsx
|
|
1821
|
-
* import {EditableValueView} from 'tinybase/ui-react-dom';
|
|
1822
|
-
* import {Provider} from 'tinybase/ui-react';
|
|
1823
1820
|
* import React from 'react';
|
|
1824
1821
|
* import {createRoot} from 'react-dom/client';
|
|
1825
1822
|
* import {createStore} from 'tinybase';
|
|
1823
|
+
* import {Provider} from 'tinybase/ui-react';
|
|
1824
|
+
* import {EditableValueView} from 'tinybase/ui-react-dom';
|
|
1826
1825
|
*
|
|
1827
1826
|
* const App = ({store}) => (
|
|
1828
1827
|
* <Provider store={store}>
|
|
@@ -1873,11 +1872,11 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1873
1872
|
* Table in a <table> element with a SortedTablePaginator (the default).
|
|
1874
1873
|
*
|
|
1875
1874
|
* ```jsx
|
|
1876
|
-
* import {Provider} from 'tinybase/ui-react';
|
|
1877
1875
|
* import React from 'react';
|
|
1878
|
-
* import {SortedTableInHtmlTable} from 'tinybase/ui-react-dom';
|
|
1879
1876
|
* import {createRoot} from 'react-dom/client';
|
|
1880
1877
|
* import {createStore} from 'tinybase';
|
|
1878
|
+
* import {Provider} from 'tinybase/ui-react';
|
|
1879
|
+
* import {SortedTableInHtmlTable} from 'tinybase/ui-react-dom';
|
|
1881
1880
|
*
|
|
1882
1881
|
* const App = ({store}) => (
|
|
1883
1882
|
* <Provider store={store}>
|
|
@@ -1959,11 +1958,11 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1959
1958
|
* tool.
|
|
1960
1959
|
*
|
|
1961
1960
|
* ```jsx
|
|
1962
|
-
* import {Inspector} from 'tinybase/ui-react-inspector';
|
|
1963
|
-
* import {Provider} from 'tinybase/ui-react';
|
|
1964
1961
|
* import React from 'react';
|
|
1965
1962
|
* import {createRoot} from 'react-dom/client';
|
|
1966
1963
|
* import {createStore} from 'tinybase';
|
|
1964
|
+
* import {Provider} from 'tinybase/ui-react';
|
|
1965
|
+
* import {Inspector} from 'tinybase/ui-react-inspector';
|
|
1967
1966
|
*
|
|
1968
1967
|
* const App = ({store}) => (
|
|
1969
1968
|
* <Provider store={store}>
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* @module ui-react-inspector
|
|
10
10
|
* @since v5.0.0
|
|
11
11
|
*/
|
|
12
|
-
|
|
13
12
|
import type {
|
|
14
13
|
CellIdFromSchema,
|
|
15
14
|
TableIdFromSchema,
|
|
@@ -27,9 +26,9 @@ import type {
|
|
|
27
26
|
ValueProps,
|
|
28
27
|
} from '../../_internal/ui-react/with-schemas/index.d.ts';
|
|
29
28
|
import type {Id, Ids} from '../../common/with-schemas/index.d.ts';
|
|
30
|
-
import type {ComponentType} from 'react';
|
|
31
29
|
import type {NoSchemas} from '../../store/index.d.ts';
|
|
32
30
|
import type {OptionalSchemas} from '../../store/with-schemas/index.d.ts';
|
|
31
|
+
import type {ComponentType} from 'react';
|
|
33
32
|
|
|
34
33
|
/**
|
|
35
34
|
* The CustomCell object is used to configure custom cell rendering in an HTML
|
|
@@ -658,11 +657,11 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
658
657
|
* a <table> element with a CSS class.
|
|
659
658
|
*
|
|
660
659
|
* ```jsx
|
|
661
|
-
* import {Provider} from 'tinybase/ui-react';
|
|
662
660
|
* import React from 'react';
|
|
663
|
-
* import {TableInHtmlTable} from 'tinybase/ui-react-dom';
|
|
664
661
|
* import {createRoot} from 'react-dom/client';
|
|
665
662
|
* import {createStore} from 'tinybase';
|
|
663
|
+
* import {Provider} from 'tinybase/ui-react';
|
|
664
|
+
* import {TableInHtmlTable} from 'tinybase/ui-react-dom';
|
|
666
665
|
*
|
|
667
666
|
* const App = ({store}) => (
|
|
668
667
|
* <Provider store={store}>
|
|
@@ -708,11 +707,11 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
708
707
|
* row is removed.
|
|
709
708
|
*
|
|
710
709
|
* ```jsx
|
|
711
|
-
* import {CellView, Provider} from 'tinybase/ui-react';
|
|
712
710
|
* import React from 'react';
|
|
713
|
-
* import {TableInHtmlTable} from 'tinybase/ui-react-dom';
|
|
714
711
|
* import {createRoot} from 'react-dom/client';
|
|
715
712
|
* import {createStore} from 'tinybase';
|
|
713
|
+
* import {CellView, Provider} from 'tinybase/ui-react';
|
|
714
|
+
* import {TableInHtmlTable} from 'tinybase/ui-react-dom';
|
|
716
715
|
*
|
|
717
716
|
* const App = ({store}) => (
|
|
718
717
|
* <Provider store={store}>
|
|
@@ -816,11 +815,11 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
816
815
|
* Table in a <table> element with a CSS class.
|
|
817
816
|
*
|
|
818
817
|
* ```jsx
|
|
819
|
-
* import {Provider} from 'tinybase/ui-react';
|
|
820
818
|
* import React from 'react';
|
|
821
|
-
* import {SortedTableInHtmlTable} from 'tinybase/ui-react-dom';
|
|
822
819
|
* import {createRoot} from 'react-dom/client';
|
|
823
820
|
* import {createStore} from 'tinybase';
|
|
821
|
+
* import {Provider} from 'tinybase/ui-react';
|
|
822
|
+
* import {SortedTableInHtmlTable} from 'tinybase/ui-react-dom';
|
|
824
823
|
*
|
|
825
824
|
* const App = ({store}) => (
|
|
826
825
|
* <Provider store={store}>
|
|
@@ -874,11 +873,11 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
874
873
|
* of each row is removed.
|
|
875
874
|
*
|
|
876
875
|
* ```jsx
|
|
877
|
-
* import {CellView, Provider} from 'tinybase/ui-react';
|
|
878
876
|
* import React from 'react';
|
|
879
|
-
* import {SortedTableInHtmlTable} from 'tinybase/ui-react-dom';
|
|
880
877
|
* import {createRoot} from 'react-dom/client';
|
|
881
878
|
* import {createStore} from 'tinybase';
|
|
879
|
+
* import {CellView, Provider} from 'tinybase/ui-react';
|
|
880
|
+
* import {SortedTableInHtmlTable} from 'tinybase/ui-react-dom';
|
|
882
881
|
*
|
|
883
882
|
* const App = ({store}) => (
|
|
884
883
|
* <Provider store={store}>
|
|
@@ -972,11 +971,11 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
972
971
|
* in a <table> element with a CSS class.
|
|
973
972
|
*
|
|
974
973
|
* ```jsx
|
|
975
|
-
* import {Provider} from 'tinybase/ui-react';
|
|
976
974
|
* import React from 'react';
|
|
977
|
-
* import {ValuesInHtmlTable} from 'tinybase/ui-react-dom';
|
|
978
975
|
* import {createRoot} from 'react-dom/client';
|
|
979
976
|
* import {createStore} from 'tinybase';
|
|
977
|
+
* import {Provider} from 'tinybase/ui-react';
|
|
978
|
+
* import {ValuesInHtmlTable} from 'tinybase/ui-react-dom';
|
|
980
979
|
*
|
|
981
980
|
* const App = ({store}) => (
|
|
982
981
|
* <Provider store={store}>
|
|
@@ -1018,11 +1017,11 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1018
1017
|
* the top of the table and the Id column at the start of each row is removed.
|
|
1019
1018
|
*
|
|
1020
1019
|
* ```jsx
|
|
1021
|
-
* import {Provider, ValueView} from 'tinybase/ui-react';
|
|
1022
1020
|
* import React from 'react';
|
|
1023
|
-
* import {ValuesInHtmlTable} from 'tinybase/ui-react-dom';
|
|
1024
1021
|
* import {createRoot} from 'react-dom/client';
|
|
1025
1022
|
* import {createStore} from 'tinybase';
|
|
1023
|
+
* import {Provider, ValueView} from 'tinybase/ui-react';
|
|
1024
|
+
* import {ValuesInHtmlTable} from 'tinybase/ui-react-dom';
|
|
1026
1025
|
*
|
|
1027
1026
|
* const App = ({store}) => (
|
|
1028
1027
|
* <Provider store={store}>
|
|
@@ -1099,11 +1098,11 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1099
1098
|
* in a <table> element with a CSS class.
|
|
1100
1099
|
*
|
|
1101
1100
|
* ```jsx
|
|
1101
|
+
* import React from 'react';
|
|
1102
|
+
* import {createRoot} from 'react-dom/client';
|
|
1102
1103
|
* import {createIndexes, createStore} from 'tinybase';
|
|
1103
1104
|
* import {Provider} from 'tinybase/ui-react';
|
|
1104
|
-
* import React from 'react';
|
|
1105
1105
|
* import {SliceInHtmlTable} from 'tinybase/ui-react-dom';
|
|
1106
|
-
* import {createRoot} from 'react-dom/client';
|
|
1107
1106
|
*
|
|
1108
1107
|
* const App = ({indexes}) => (
|
|
1109
1108
|
* <Provider indexes={indexes}>
|
|
@@ -1155,11 +1154,11 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1155
1154
|
* row is removed.
|
|
1156
1155
|
*
|
|
1157
1156
|
* ```jsx
|
|
1158
|
-
* import {CellView, Provider} from 'tinybase/ui-react';
|
|
1159
|
-
* import {createIndexes, createStore} from 'tinybase';
|
|
1160
1157
|
* import React from 'react';
|
|
1161
|
-
* import {SliceInHtmlTable} from 'tinybase/ui-react-dom';
|
|
1162
1158
|
* import {createRoot} from 'react-dom/client';
|
|
1159
|
+
* import {createIndexes, createStore} from 'tinybase';
|
|
1160
|
+
* import {CellView, Provider} from 'tinybase/ui-react';
|
|
1161
|
+
* import {SliceInHtmlTable} from 'tinybase/ui-react-dom';
|
|
1163
1162
|
*
|
|
1164
1163
|
* const App = ({indexes}) => (
|
|
1165
1164
|
* <Provider indexes={indexes}>
|
|
@@ -1262,11 +1261,11 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1262
1261
|
* CSS class. Note the dotted pairs that are used as column headings.
|
|
1263
1262
|
*
|
|
1264
1263
|
* ```jsx
|
|
1264
|
+
* import React from 'react';
|
|
1265
|
+
* import {createRoot} from 'react-dom/client';
|
|
1265
1266
|
* import {createRelationships, createStore} from 'tinybase';
|
|
1266
1267
|
* import {Provider} from 'tinybase/ui-react';
|
|
1267
|
-
* import React from 'react';
|
|
1268
1268
|
* import {RelationshipInHtmlTable} from 'tinybase/ui-react-dom';
|
|
1269
|
-
* import {createRoot} from 'react-dom/client';
|
|
1270
1269
|
*
|
|
1271
1270
|
* const App = ({relationships}) => (
|
|
1272
1271
|
* <Provider relationships={relationships}>
|
|
@@ -1326,11 +1325,11 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1326
1325
|
* the table and the Id column at the start of each row is removed.
|
|
1327
1326
|
*
|
|
1328
1327
|
* ```jsx
|
|
1329
|
-
* import {CellView, Provider} from 'tinybase/ui-react';
|
|
1330
|
-
* import {createRelationships, createStore} from 'tinybase';
|
|
1331
1328
|
* import React from 'react';
|
|
1332
|
-
* import {RelationshipInHtmlTable} from 'tinybase/ui-react-dom';
|
|
1333
1329
|
* import {createRoot} from 'react-dom/client';
|
|
1330
|
+
* import {createRelationships, createStore} from 'tinybase';
|
|
1331
|
+
* import {CellView, Provider} from 'tinybase/ui-react';
|
|
1332
|
+
* import {RelationshipInHtmlTable} from 'tinybase/ui-react-dom';
|
|
1334
1333
|
*
|
|
1335
1334
|
* const App = ({relationships}) => (
|
|
1336
1335
|
* <Provider relationships={relationships}>
|
|
@@ -1426,11 +1425,11 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1426
1425
|
* ResultTable in a <table> element with a CSS class.
|
|
1427
1426
|
*
|
|
1428
1427
|
* ```jsx
|
|
1428
|
+
* import React from 'react';
|
|
1429
|
+
* import {createRoot} from 'react-dom/client';
|
|
1429
1430
|
* import {createQueries, createStore} from 'tinybase';
|
|
1430
1431
|
* import {Provider} from 'tinybase/ui-react';
|
|
1431
|
-
* import React from 'react';
|
|
1432
1432
|
* import {ResultTableInHtmlTable} from 'tinybase/ui-react-dom';
|
|
1433
|
-
* import {createRoot} from 'react-dom/client';
|
|
1434
1433
|
*
|
|
1435
1434
|
* const App = ({queries}) => (
|
|
1436
1435
|
* <Provider queries={queries}>
|
|
@@ -1480,11 +1479,11 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1480
1479
|
* the start of each row is removed.
|
|
1481
1480
|
*
|
|
1482
1481
|
* ```jsx
|
|
1483
|
-
* import {Provider, ResultCellView} from 'tinybase/ui-react';
|
|
1484
|
-
* import {createQueries, createStore} from 'tinybase';
|
|
1485
1482
|
* import React from 'react';
|
|
1486
|
-
* import {ResultTableInHtmlTable} from 'tinybase/ui-react-dom';
|
|
1487
1483
|
* import {createRoot} from 'react-dom/client';
|
|
1484
|
+
* import {createQueries, createStore} from 'tinybase';
|
|
1485
|
+
* import {Provider, ResultCellView} from 'tinybase/ui-react';
|
|
1486
|
+
* import {ResultTableInHtmlTable} from 'tinybase/ui-react-dom';
|
|
1488
1487
|
*
|
|
1489
1488
|
* const App = ({queries}) => (
|
|
1490
1489
|
* <Provider queries={queries}>
|
|
@@ -1592,11 +1591,11 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1592
1591
|
* renders the ResultTable in a <table> element with a CSS class.
|
|
1593
1592
|
*
|
|
1594
1593
|
* ```jsx
|
|
1594
|
+
* import React from 'react';
|
|
1595
|
+
* import {createRoot} from 'react-dom/client';
|
|
1595
1596
|
* import {createQueries, createStore} from 'tinybase';
|
|
1596
1597
|
* import {Provider} from 'tinybase/ui-react';
|
|
1597
|
-
* import React from 'react';
|
|
1598
1598
|
* import {ResultSortedTableInHtmlTable} from 'tinybase/ui-react-dom';
|
|
1599
|
-
* import {createRoot} from 'react-dom/client';
|
|
1600
1599
|
*
|
|
1601
1600
|
* const App = ({queries}) => (
|
|
1602
1601
|
* <Provider queries={queries}>
|
|
@@ -1650,11 +1649,11 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1650
1649
|
* column at the start of each row is removed.
|
|
1651
1650
|
*
|
|
1652
1651
|
* ```jsx
|
|
1653
|
-
* import {Provider, ResultCellView} from 'tinybase/ui-react';
|
|
1654
|
-
* import {createQueries, createStore} from 'tinybase';
|
|
1655
1652
|
* import React from 'react';
|
|
1656
|
-
* import {ResultSortedTableInHtmlTable} from 'tinybase/ui-react-dom';
|
|
1657
1653
|
* import {createRoot} from 'react-dom/client';
|
|
1654
|
+
* import {createQueries, createStore} from 'tinybase';
|
|
1655
|
+
* import {Provider, ResultCellView} from 'tinybase/ui-react';
|
|
1656
|
+
* import {ResultSortedTableInHtmlTable} from 'tinybase/ui-react-dom';
|
|
1658
1657
|
*
|
|
1659
1658
|
* const App = ({queries}) => (
|
|
1660
1659
|
* <Provider queries={queries}>
|
|
@@ -1748,11 +1747,11 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1748
1747
|
* Cell.
|
|
1749
1748
|
*
|
|
1750
1749
|
* ```jsx
|
|
1751
|
-
* import {EditableCellView} from 'tinybase/ui-react-dom';
|
|
1752
|
-
* import {Provider} from 'tinybase/ui-react';
|
|
1753
1750
|
* import React from 'react';
|
|
1754
1751
|
* import {createRoot} from 'react-dom/client';
|
|
1755
1752
|
* import {createStore} from 'tinybase';
|
|
1753
|
+
* import {Provider} from 'tinybase/ui-react';
|
|
1754
|
+
* import {EditableCellView} from 'tinybase/ui-react-dom';
|
|
1756
1755
|
*
|
|
1757
1756
|
* const App = ({store}) => (
|
|
1758
1757
|
* <Provider store={store}>
|
|
@@ -1818,11 +1817,11 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1818
1817
|
* Value.
|
|
1819
1818
|
*
|
|
1820
1819
|
* ```jsx
|
|
1821
|
-
* import {EditableValueView} from 'tinybase/ui-react-dom';
|
|
1822
|
-
* import {Provider} from 'tinybase/ui-react';
|
|
1823
1820
|
* import React from 'react';
|
|
1824
1821
|
* import {createRoot} from 'react-dom/client';
|
|
1825
1822
|
* import {createStore} from 'tinybase';
|
|
1823
|
+
* import {Provider} from 'tinybase/ui-react';
|
|
1824
|
+
* import {EditableValueView} from 'tinybase/ui-react-dom';
|
|
1826
1825
|
*
|
|
1827
1826
|
* const App = ({store}) => (
|
|
1828
1827
|
* <Provider store={store}>
|
|
@@ -1873,11 +1872,11 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1873
1872
|
* Table in a <table> element with a SortedTablePaginator (the default).
|
|
1874
1873
|
*
|
|
1875
1874
|
* ```jsx
|
|
1876
|
-
* import {Provider} from 'tinybase/ui-react';
|
|
1877
1875
|
* import React from 'react';
|
|
1878
|
-
* import {SortedTableInHtmlTable} from 'tinybase/ui-react-dom';
|
|
1879
1876
|
* import {createRoot} from 'react-dom/client';
|
|
1880
1877
|
* import {createStore} from 'tinybase';
|
|
1878
|
+
* import {Provider} from 'tinybase/ui-react';
|
|
1879
|
+
* import {SortedTableInHtmlTable} from 'tinybase/ui-react-dom';
|
|
1881
1880
|
*
|
|
1882
1881
|
* const App = ({store}) => (
|
|
1883
1882
|
* <Provider store={store}>
|
|
@@ -1959,11 +1958,11 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1959
1958
|
* tool.
|
|
1960
1959
|
*
|
|
1961
1960
|
* ```jsx
|
|
1962
|
-
* import {Inspector} from 'tinybase/ui-react-inspector';
|
|
1963
|
-
* import {Provider} from 'tinybase/ui-react';
|
|
1964
1961
|
* import React from 'react';
|
|
1965
1962
|
* import {createRoot} from 'react-dom/client';
|
|
1966
1963
|
* import {createStore} from 'tinybase';
|
|
1964
|
+
* import {Provider} from 'tinybase/ui-react';
|
|
1965
|
+
* import {Inspector} from 'tinybase/ui-react-inspector';
|
|
1967
1966
|
*
|
|
1968
1967
|
* const App = ({store}) => (
|
|
1969
1968
|
* <Provider store={store}>
|
package/checkpoints/index.js
CHANGED
|
@@ -17,8 +17,12 @@ const arrayPop = (array) => array.pop();
|
|
|
17
17
|
const arrayUnshift = (array, ...values) => array.unshift(...values);
|
|
18
18
|
const arrayShift = (array) => array.shift();
|
|
19
19
|
|
|
20
|
-
const
|
|
21
|
-
|
|
20
|
+
const setOrDelCell = (store, tableId, rowId, cellId, cell) =>
|
|
21
|
+
isUndefined(cell)
|
|
22
|
+
? store.delCell(tableId, rowId, cellId, true)
|
|
23
|
+
: store.setCell(tableId, rowId, cellId, cell);
|
|
24
|
+
const setOrDelValue = (store, valueId, value) =>
|
|
25
|
+
isUndefined(value) ? store.delValue(valueId) : store.setValue(valueId, value);
|
|
22
26
|
|
|
23
27
|
const collSizeN = (collSizer) => (coll) =>
|
|
24
28
|
arrayReduce(collValues(coll), (total, coll2) => total + collSizer(coll2), 0);
|
|
@@ -30,6 +34,9 @@ const collValues = (coll) => [...(coll?.values() ?? [])];
|
|
|
30
34
|
const collForEach = (coll, cb) => coll?.forEach(cb);
|
|
31
35
|
const collDel = (coll, keyOrValue) => coll?.delete(keyOrValue);
|
|
32
36
|
|
|
37
|
+
const object = Object;
|
|
38
|
+
const objFreeze = object.freeze;
|
|
39
|
+
|
|
33
40
|
const mapNew = (entries) => new Map(entries);
|
|
34
41
|
const mapGet = (map, key) => map?.get(key);
|
|
35
42
|
const mapForEach = (map, cb) =>
|
|
@@ -66,13 +73,6 @@ const visitTree = (node, path, ensureLeaf, pruneLeaf, p = 0) =>
|
|
|
66
73
|
},
|
|
67
74
|
);
|
|
68
75
|
|
|
69
|
-
const setOrDelCell = (store, tableId, rowId, cellId, cell) =>
|
|
70
|
-
isUndefined(cell)
|
|
71
|
-
? store.delCell(tableId, rowId, cellId, true)
|
|
72
|
-
: store.setCell(tableId, rowId, cellId, cell);
|
|
73
|
-
const setOrDelValue = (store, valueId, value) =>
|
|
74
|
-
isUndefined(value) ? store.delValue(valueId) : store.setValue(valueId, value);
|
|
75
|
-
|
|
76
76
|
const setNew = (entryOrEntries) =>
|
|
77
77
|
new Set(
|
|
78
78
|
isArray(entryOrEntries) || isUndefined(entryOrEntries)
|
|
@@ -17,8 +17,12 @@ const arrayPop = (array) => array.pop();
|
|
|
17
17
|
const arrayUnshift = (array, ...values) => array.unshift(...values);
|
|
18
18
|
const arrayShift = (array) => array.shift();
|
|
19
19
|
|
|
20
|
-
const
|
|
21
|
-
|
|
20
|
+
const setOrDelCell = (store, tableId, rowId, cellId, cell) =>
|
|
21
|
+
isUndefined(cell)
|
|
22
|
+
? store.delCell(tableId, rowId, cellId, true)
|
|
23
|
+
: store.setCell(tableId, rowId, cellId, cell);
|
|
24
|
+
const setOrDelValue = (store, valueId, value) =>
|
|
25
|
+
isUndefined(value) ? store.delValue(valueId) : store.setValue(valueId, value);
|
|
22
26
|
|
|
23
27
|
const collSizeN = (collSizer) => (coll) =>
|
|
24
28
|
arrayReduce(collValues(coll), (total, coll2) => total + collSizer(coll2), 0);
|
|
@@ -30,6 +34,9 @@ const collValues = (coll) => [...(coll?.values() ?? [])];
|
|
|
30
34
|
const collForEach = (coll, cb) => coll?.forEach(cb);
|
|
31
35
|
const collDel = (coll, keyOrValue) => coll?.delete(keyOrValue);
|
|
32
36
|
|
|
37
|
+
const object = Object;
|
|
38
|
+
const objFreeze = object.freeze;
|
|
39
|
+
|
|
33
40
|
const mapNew = (entries) => new Map(entries);
|
|
34
41
|
const mapGet = (map, key) => map?.get(key);
|
|
35
42
|
const mapForEach = (map, cb) =>
|
|
@@ -66,13 +73,6 @@ const visitTree = (node, path, ensureLeaf, pruneLeaf, p = 0) =>
|
|
|
66
73
|
},
|
|
67
74
|
);
|
|
68
75
|
|
|
69
|
-
const setOrDelCell = (store, tableId, rowId, cellId, cell) =>
|
|
70
|
-
isUndefined(cell)
|
|
71
|
-
? store.delCell(tableId, rowId, cellId, true)
|
|
72
|
-
: store.setCell(tableId, rowId, cellId, cell);
|
|
73
|
-
const setOrDelValue = (store, valueId, value) =>
|
|
74
|
-
isUndefined(value) ? store.delValue(valueId) : store.setValue(valueId, value);
|
|
75
|
-
|
|
76
76
|
const setNew = (entryOrEntries) =>
|
|
77
77
|
new Set(
|
|
78
78
|
isArray(entryOrEntries) || isUndefined(entryOrEntries)
|