tinybase 5.3.0 → 5.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/common/index.cjs +5 -7
- package/cjs/common/with-schemas/index.cjs +5 -7
- package/cjs/es6/common/index.cjs +5 -7
- package/cjs/es6/common/with-schemas/index.cjs +5 -7
- package/cjs/es6/index.cjs +18 -12
- package/cjs/es6/indexes/index.cjs +0 -6
- package/cjs/es6/indexes/with-schemas/index.cjs +0 -6
- package/cjs/es6/mergeable-store/index.cjs +17 -11
- package/cjs/es6/mergeable-store/with-schemas/index.cjs +17 -11
- package/cjs/es6/metrics/index.cjs +1 -1
- package/cjs/es6/metrics/with-schemas/index.cjs +1 -1
- package/cjs/es6/min/common/index.cjs +1 -1
- package/cjs/es6/min/common/index.cjs.gz +0 -0
- package/cjs/es6/min/common/with-schemas/index.cjs +1 -1
- package/cjs/es6/min/common/with-schemas/index.cjs.gz +0 -0
- package/cjs/es6/min/index.cjs +1 -1
- package/cjs/es6/min/index.cjs.gz +0 -0
- package/cjs/es6/min/indexes/index.cjs +1 -1
- package/cjs/es6/min/indexes/index.cjs.gz +0 -0
- package/cjs/es6/min/indexes/with-schemas/index.cjs +1 -1
- package/cjs/es6/min/indexes/with-schemas/index.cjs.gz +0 -0
- package/cjs/es6/min/mergeable-store/index.cjs +1 -1
- package/cjs/es6/min/mergeable-store/index.cjs.gz +0 -0
- package/cjs/es6/min/mergeable-store/with-schemas/index.cjs +1 -1
- package/cjs/es6/min/mergeable-store/with-schemas/index.cjs.gz +0 -0
- package/cjs/es6/min/persisters/persister-pglite/index.cjs +1 -1
- package/cjs/es6/min/persisters/persister-pglite/index.cjs.gz +0 -0
- package/cjs/es6/min/persisters/persister-pglite/with-schemas/index.cjs +1 -1
- package/cjs/es6/min/persisters/persister-pglite/with-schemas/index.cjs.gz +0 -0
- package/cjs/es6/min/store/index.cjs +1 -1
- package/cjs/es6/min/store/index.cjs.gz +0 -0
- package/cjs/es6/min/store/with-schemas/index.cjs +1 -1
- package/cjs/es6/min/store/with-schemas/index.cjs.gz +0 -0
- package/cjs/es6/min/synchronizers/index.cjs +1 -1
- package/cjs/es6/min/synchronizers/index.cjs.gz +0 -0
- package/cjs/es6/min/synchronizers/synchronizer-broadcast-channel/index.cjs +1 -1
- package/cjs/es6/min/synchronizers/synchronizer-broadcast-channel/index.cjs.gz +0 -0
- package/cjs/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs +1 -1
- package/cjs/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs.gz +0 -0
- package/cjs/es6/min/synchronizers/synchronizer-local/index.cjs +1 -1
- package/cjs/es6/min/synchronizers/synchronizer-local/index.cjs.gz +0 -0
- package/cjs/es6/min/synchronizers/synchronizer-local/with-schemas/index.cjs +1 -1
- package/cjs/es6/min/synchronizers/synchronizer-local/with-schemas/index.cjs.gz +0 -0
- package/cjs/es6/min/synchronizers/synchronizer-ws-client/index.cjs +1 -1
- package/cjs/es6/min/synchronizers/synchronizer-ws-client/index.cjs.gz +0 -0
- package/cjs/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.cjs +1 -1
- package/cjs/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.cjs.gz +0 -0
- package/cjs/es6/min/synchronizers/synchronizer-ws-server/index.cjs +1 -1
- package/cjs/es6/min/synchronizers/synchronizer-ws-server/index.cjs.gz +0 -0
- package/cjs/es6/min/synchronizers/synchronizer-ws-server/with-schemas/index.cjs +1 -1
- package/cjs/es6/min/synchronizers/synchronizer-ws-server/with-schemas/index.cjs.gz +0 -0
- package/cjs/es6/min/synchronizers/with-schemas/index.cjs +1 -1
- package/cjs/es6/min/synchronizers/with-schemas/index.cjs.gz +0 -0
- package/cjs/es6/min/tools/index.cjs +1 -1
- package/cjs/es6/min/tools/index.cjs.gz +0 -0
- package/cjs/es6/min/tools/with-schemas/index.cjs +1 -1
- package/cjs/es6/min/tools/with-schemas/index.cjs.gz +0 -0
- package/cjs/es6/min/ui-react/index.cjs +1 -1
- package/cjs/es6/min/ui-react/index.cjs.gz +0 -0
- package/cjs/es6/min/ui-react/with-schemas/index.cjs +1 -1
- package/cjs/es6/min/ui-react/with-schemas/index.cjs.gz +0 -0
- package/cjs/es6/min/ui-react-dom/index.cjs +1 -1
- package/cjs/es6/min/ui-react-dom/index.cjs.gz +0 -0
- package/cjs/es6/min/ui-react-dom/with-schemas/index.cjs +1 -1
- package/cjs/es6/min/ui-react-dom/with-schemas/index.cjs.gz +0 -0
- package/cjs/es6/min/ui-react-inspector/index.cjs +1 -1
- package/cjs/es6/min/ui-react-inspector/index.cjs.gz +0 -0
- package/cjs/es6/min/ui-react-inspector/with-schemas/index.cjs +1 -1
- package/cjs/es6/min/ui-react-inspector/with-schemas/index.cjs.gz +0 -0
- package/cjs/es6/min/with-schemas/index.cjs +1 -1
- package/cjs/es6/min/with-schemas/index.cjs.gz +0 -0
- package/cjs/es6/persisters/persister-pglite/index.cjs +1 -1
- package/cjs/es6/persisters/persister-pglite/with-schemas/index.cjs +1 -1
- package/cjs/es6/queries/index.cjs +1 -1
- package/cjs/es6/queries/with-schemas/index.cjs +1 -1
- package/cjs/es6/store/index.cjs +0 -6
- package/cjs/es6/store/with-schemas/index.cjs +0 -6
- package/cjs/es6/synchronizers/index.cjs +5 -7
- package/cjs/es6/synchronizers/synchronizer-broadcast-channel/index.cjs +5 -7
- package/cjs/es6/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs +5 -7
- package/cjs/es6/synchronizers/synchronizer-local/index.cjs +5 -7
- package/cjs/es6/synchronizers/synchronizer-local/with-schemas/index.cjs +5 -7
- package/cjs/es6/synchronizers/synchronizer-ws-client/index.cjs +5 -7
- package/cjs/es6/synchronizers/synchronizer-ws-client/with-schemas/index.cjs +5 -7
- package/cjs/es6/synchronizers/synchronizer-ws-server/index.cjs +5 -7
- package/cjs/es6/synchronizers/synchronizer-ws-server/with-schemas/index.cjs +5 -7
- package/cjs/es6/synchronizers/with-schemas/index.cjs +5 -7
- package/cjs/es6/tools/index.cjs +7 -4
- package/cjs/es6/tools/with-schemas/index.cjs +7 -4
- package/cjs/es6/ui-react/index.cjs +101 -109
- package/cjs/es6/ui-react/with-schemas/index.cjs +101 -109
- package/cjs/es6/ui-react-dom/index.cjs +14 -8
- package/cjs/es6/ui-react-dom/with-schemas/index.cjs +14 -8
- package/cjs/es6/ui-react-inspector/index.cjs +18 -16
- package/cjs/es6/ui-react-inspector/with-schemas/index.cjs +18 -16
- package/cjs/es6/with-schemas/index.cjs +18 -12
- package/cjs/index.cjs +18 -12
- package/cjs/indexes/index.cjs +0 -6
- package/cjs/indexes/with-schemas/index.cjs +0 -6
- package/cjs/mergeable-store/index.cjs +17 -11
- package/cjs/mergeable-store/with-schemas/index.cjs +17 -11
- package/cjs/metrics/index.cjs +1 -1
- package/cjs/metrics/with-schemas/index.cjs +1 -1
- package/cjs/min/common/index.cjs +1 -1
- package/cjs/min/common/index.cjs.gz +0 -0
- package/cjs/min/common/with-schemas/index.cjs +1 -1
- package/cjs/min/common/with-schemas/index.cjs.gz +0 -0
- package/cjs/min/index.cjs +1 -1
- package/cjs/min/index.cjs.gz +0 -0
- package/cjs/min/indexes/index.cjs +1 -1
- package/cjs/min/indexes/index.cjs.gz +0 -0
- package/cjs/min/indexes/with-schemas/index.cjs +1 -1
- package/cjs/min/indexes/with-schemas/index.cjs.gz +0 -0
- package/cjs/min/mergeable-store/index.cjs +1 -1
- package/cjs/min/mergeable-store/index.cjs.gz +0 -0
- package/cjs/min/mergeable-store/with-schemas/index.cjs +1 -1
- package/cjs/min/mergeable-store/with-schemas/index.cjs.gz +0 -0
- package/cjs/min/persisters/persister-pglite/index.cjs +1 -1
- package/cjs/min/persisters/persister-pglite/index.cjs.gz +0 -0
- package/cjs/min/persisters/persister-pglite/with-schemas/index.cjs +1 -1
- package/cjs/min/persisters/persister-pglite/with-schemas/index.cjs.gz +0 -0
- package/cjs/min/store/index.cjs +1 -1
- package/cjs/min/store/index.cjs.gz +0 -0
- package/cjs/min/store/with-schemas/index.cjs +1 -1
- package/cjs/min/store/with-schemas/index.cjs.gz +0 -0
- package/cjs/min/synchronizers/index.cjs +1 -1
- package/cjs/min/synchronizers/index.cjs.gz +0 -0
- package/cjs/min/synchronizers/synchronizer-broadcast-channel/index.cjs +1 -1
- package/cjs/min/synchronizers/synchronizer-broadcast-channel/index.cjs.gz +0 -0
- package/cjs/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs +1 -1
- package/cjs/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs.gz +0 -0
- package/cjs/min/synchronizers/synchronizer-local/index.cjs +1 -1
- package/cjs/min/synchronizers/synchronizer-local/index.cjs.gz +0 -0
- package/cjs/min/synchronizers/synchronizer-local/with-schemas/index.cjs +1 -1
- package/cjs/min/synchronizers/synchronizer-local/with-schemas/index.cjs.gz +0 -0
- package/cjs/min/synchronizers/synchronizer-ws-client/index.cjs +1 -1
- package/cjs/min/synchronizers/synchronizer-ws-client/index.cjs.gz +0 -0
- package/cjs/min/synchronizers/synchronizer-ws-client/with-schemas/index.cjs +1 -1
- package/cjs/min/synchronizers/synchronizer-ws-client/with-schemas/index.cjs.gz +0 -0
- package/cjs/min/synchronizers/synchronizer-ws-server/index.cjs +1 -1
- package/cjs/min/synchronizers/synchronizer-ws-server/index.cjs.gz +0 -0
- package/cjs/min/synchronizers/synchronizer-ws-server/with-schemas/index.cjs +1 -1
- package/cjs/min/synchronizers/synchronizer-ws-server/with-schemas/index.cjs.gz +0 -0
- package/cjs/min/synchronizers/with-schemas/index.cjs +1 -1
- package/cjs/min/synchronizers/with-schemas/index.cjs.gz +0 -0
- package/cjs/min/tools/index.cjs +1 -1
- package/cjs/min/tools/index.cjs.gz +0 -0
- package/cjs/min/tools/with-schemas/index.cjs +1 -1
- package/cjs/min/tools/with-schemas/index.cjs.gz +0 -0
- package/cjs/min/ui-react/index.cjs +1 -1
- package/cjs/min/ui-react/index.cjs.gz +0 -0
- package/cjs/min/ui-react/with-schemas/index.cjs +1 -1
- package/cjs/min/ui-react/with-schemas/index.cjs.gz +0 -0
- package/cjs/min/ui-react-dom/index.cjs +1 -1
- package/cjs/min/ui-react-dom/index.cjs.gz +0 -0
- package/cjs/min/ui-react-dom/with-schemas/index.cjs +1 -1
- package/cjs/min/ui-react-dom/with-schemas/index.cjs.gz +0 -0
- package/cjs/min/ui-react-inspector/index.cjs +1 -1
- package/cjs/min/ui-react-inspector/index.cjs.gz +0 -0
- package/cjs/min/ui-react-inspector/with-schemas/index.cjs +1 -1
- package/cjs/min/ui-react-inspector/with-schemas/index.cjs.gz +0 -0
- package/cjs/min/with-schemas/index.cjs +1 -1
- package/cjs/min/with-schemas/index.cjs.gz +0 -0
- package/cjs/persisters/persister-pglite/index.cjs +1 -1
- package/cjs/persisters/persister-pglite/with-schemas/index.cjs +1 -1
- package/cjs/queries/index.cjs +1 -1
- package/cjs/queries/with-schemas/index.cjs +1 -1
- package/cjs/store/index.cjs +0 -6
- package/cjs/store/with-schemas/index.cjs +0 -6
- package/cjs/synchronizers/index.cjs +5 -7
- package/cjs/synchronizers/synchronizer-broadcast-channel/index.cjs +5 -7
- package/cjs/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs +5 -7
- package/cjs/synchronizers/synchronizer-local/index.cjs +5 -7
- package/cjs/synchronizers/synchronizer-local/with-schemas/index.cjs +5 -7
- package/cjs/synchronizers/synchronizer-ws-client/index.cjs +5 -7
- package/cjs/synchronizers/synchronizer-ws-client/with-schemas/index.cjs +5 -7
- package/cjs/synchronizers/synchronizer-ws-server/index.cjs +5 -7
- package/cjs/synchronizers/synchronizer-ws-server/with-schemas/index.cjs +5 -7
- package/cjs/synchronizers/with-schemas/index.cjs +5 -7
- package/cjs/tools/index.cjs +7 -4
- package/cjs/tools/with-schemas/index.cjs +7 -4
- package/cjs/ui-react/index.cjs +97 -107
- package/cjs/ui-react/with-schemas/index.cjs +97 -107
- package/cjs/ui-react-dom/index.cjs +14 -8
- package/cjs/ui-react-dom/with-schemas/index.cjs +14 -8
- package/cjs/ui-react-inspector/index.cjs +18 -16
- package/cjs/ui-react-inspector/with-schemas/index.cjs +18 -16
- package/cjs/with-schemas/index.cjs +18 -12
- package/common/index.js +5 -7
- package/common/with-schemas/index.js +5 -7
- package/es6/common/index.js +5 -7
- package/es6/common/with-schemas/index.js +5 -7
- package/es6/index.js +18 -12
- package/es6/indexes/index.js +0 -6
- package/es6/indexes/with-schemas/index.js +0 -6
- package/es6/mergeable-store/index.js +17 -11
- package/es6/mergeable-store/with-schemas/index.js +17 -11
- package/es6/metrics/index.js +1 -1
- package/es6/metrics/with-schemas/index.js +1 -1
- package/es6/min/common/index.js +1 -1
- package/es6/min/common/index.js.gz +0 -0
- package/es6/min/common/with-schemas/index.js +1 -1
- package/es6/min/common/with-schemas/index.js.gz +0 -0
- package/es6/min/index.js +1 -1
- package/es6/min/index.js.gz +0 -0
- package/es6/min/indexes/index.js +1 -1
- package/es6/min/indexes/index.js.gz +0 -0
- package/es6/min/indexes/with-schemas/index.js +1 -1
- package/es6/min/indexes/with-schemas/index.js.gz +0 -0
- package/es6/min/mergeable-store/index.js +1 -1
- package/es6/min/mergeable-store/index.js.gz +0 -0
- package/es6/min/mergeable-store/with-schemas/index.js +1 -1
- package/es6/min/mergeable-store/with-schemas/index.js.gz +0 -0
- package/es6/min/persisters/persister-pglite/index.js +1 -1
- package/es6/min/persisters/persister-pglite/index.js.gz +0 -0
- package/es6/min/persisters/persister-pglite/with-schemas/index.js +1 -1
- package/es6/min/persisters/persister-pglite/with-schemas/index.js.gz +0 -0
- package/es6/min/store/index.js +1 -1
- package/es6/min/store/index.js.gz +0 -0
- package/es6/min/store/with-schemas/index.js +1 -1
- package/es6/min/store/with-schemas/index.js.gz +0 -0
- package/es6/min/synchronizers/index.js +1 -1
- package/es6/min/synchronizers/index.js.gz +0 -0
- package/es6/min/synchronizers/synchronizer-broadcast-channel/index.js +1 -1
- package/es6/min/synchronizers/synchronizer-broadcast-channel/index.js.gz +0 -0
- package/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +1 -1
- package/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js.gz +0 -0
- package/es6/min/synchronizers/synchronizer-local/index.js +1 -1
- package/es6/min/synchronizers/synchronizer-local/index.js.gz +0 -0
- package/es6/min/synchronizers/synchronizer-local/with-schemas/index.js +1 -1
- package/es6/min/synchronizers/synchronizer-local/with-schemas/index.js.gz +0 -0
- package/es6/min/synchronizers/synchronizer-ws-client/index.js +1 -1
- package/es6/min/synchronizers/synchronizer-ws-client/index.js.gz +0 -0
- package/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.js +1 -1
- package/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.js.gz +0 -0
- package/es6/min/synchronizers/synchronizer-ws-server/index.js +1 -1
- package/es6/min/synchronizers/synchronizer-ws-server/index.js.gz +0 -0
- package/es6/min/synchronizers/synchronizer-ws-server/with-schemas/index.js +1 -1
- package/es6/min/synchronizers/synchronizer-ws-server/with-schemas/index.js.gz +0 -0
- package/es6/min/synchronizers/with-schemas/index.js +1 -1
- package/es6/min/synchronizers/with-schemas/index.js.gz +0 -0
- package/es6/min/tools/index.js +1 -1
- package/es6/min/tools/index.js.gz +0 -0
- package/es6/min/tools/with-schemas/index.js +1 -1
- package/es6/min/tools/with-schemas/index.js.gz +0 -0
- package/es6/min/ui-react/index.js +1 -1
- package/es6/min/ui-react/index.js.gz +0 -0
- package/es6/min/ui-react/with-schemas/index.js +1 -1
- package/es6/min/ui-react/with-schemas/index.js.gz +0 -0
- package/es6/min/ui-react-dom/index.js +1 -1
- package/es6/min/ui-react-dom/index.js.gz +0 -0
- package/es6/min/ui-react-dom/with-schemas/index.js +1 -1
- package/es6/min/ui-react-dom/with-schemas/index.js.gz +0 -0
- package/es6/min/ui-react-inspector/index.js +1 -1
- package/es6/min/ui-react-inspector/index.js.gz +0 -0
- package/es6/min/ui-react-inspector/with-schemas/index.js +1 -1
- package/es6/min/ui-react-inspector/with-schemas/index.js.gz +0 -0
- package/es6/min/with-schemas/index.js +1 -1
- package/es6/min/with-schemas/index.js.gz +0 -0
- package/es6/persisters/persister-pglite/index.js +1 -1
- package/es6/persisters/persister-pglite/with-schemas/index.js +1 -1
- package/es6/queries/index.js +1 -1
- package/es6/queries/with-schemas/index.js +1 -1
- package/es6/store/index.js +0 -6
- package/es6/store/with-schemas/index.js +0 -6
- package/es6/synchronizers/index.js +5 -7
- package/es6/synchronizers/synchronizer-broadcast-channel/index.js +5 -7
- package/es6/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +5 -7
- package/es6/synchronizers/synchronizer-local/index.js +5 -7
- package/es6/synchronizers/synchronizer-local/with-schemas/index.js +5 -7
- package/es6/synchronizers/synchronizer-ws-client/index.js +5 -7
- package/es6/synchronizers/synchronizer-ws-client/with-schemas/index.js +5 -7
- package/es6/synchronizers/synchronizer-ws-server/index.js +5 -7
- package/es6/synchronizers/synchronizer-ws-server/with-schemas/index.js +5 -7
- package/es6/synchronizers/with-schemas/index.js +5 -7
- package/es6/tools/index.js +7 -4
- package/es6/tools/with-schemas/index.js +7 -4
- package/es6/ui-react/index.js +101 -109
- package/es6/ui-react/with-schemas/index.js +101 -109
- package/es6/ui-react-dom/index.js +14 -8
- package/es6/ui-react-dom/with-schemas/index.js +14 -8
- package/es6/ui-react-inspector/index.js +18 -16
- package/es6/ui-react-inspector/with-schemas/index.js +18 -16
- package/es6/with-schemas/index.js +18 -12
- package/index.js +18 -12
- package/indexes/index.js +0 -6
- package/indexes/with-schemas/index.js +0 -6
- package/mergeable-store/index.js +17 -11
- package/mergeable-store/with-schemas/index.js +17 -11
- package/metrics/index.js +1 -1
- package/metrics/with-schemas/index.js +1 -1
- package/min/common/index.js +1 -1
- package/min/common/index.js.gz +0 -0
- package/min/common/with-schemas/index.js +1 -1
- package/min/common/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/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/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/with-schemas/index.js +1 -1
- package/min/synchronizers/with-schemas/index.js.gz +0 -0
- package/min/tools/index.js +1 -1
- package/min/tools/index.js.gz +0 -0
- package/min/tools/with-schemas/index.js +1 -1
- package/min/tools/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 +5 -5
- package/persisters/persister-pglite/index.js +1 -1
- package/persisters/persister-pglite/with-schemas/index.js +1 -1
- package/queries/index.js +1 -1
- package/queries/with-schemas/index.js +1 -1
- package/readme.md +14 -14
- package/releases.md +24 -24
- package/store/index.js +0 -6
- package/store/with-schemas/index.js +0 -6
- package/synchronizers/index.js +5 -7
- package/synchronizers/synchronizer-broadcast-channel/index.js +5 -7
- package/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +5 -7
- package/synchronizers/synchronizer-local/index.js +5 -7
- package/synchronizers/synchronizer-local/with-schemas/index.js +5 -7
- package/synchronizers/synchronizer-ws-client/index.js +5 -7
- package/synchronizers/synchronizer-ws-client/with-schemas/index.js +5 -7
- package/synchronizers/synchronizer-ws-server/index.js +5 -7
- package/synchronizers/synchronizer-ws-server/with-schemas/index.js +5 -7
- package/synchronizers/with-schemas/index.js +5 -7
- package/tools/index.js +7 -4
- package/tools/with-schemas/index.js +7 -4
- package/ui-react/index.js +97 -107
- package/ui-react/with-schemas/index.js +97 -107
- package/ui-react-dom/index.js +14 -8
- package/ui-react-dom/with-schemas/index.js +14 -8
- package/ui-react-inspector/index.js +18 -16
- package/ui-react-inspector/with-schemas/index.js +18 -16
- package/umd/common/index.js +5 -7
- package/umd/common/with-schemas/index.js +5 -7
- package/umd/es6/common/index.js +5 -7
- package/umd/es6/common/with-schemas/index.js +5 -7
- package/umd/es6/index.js +18 -12
- package/umd/es6/indexes/index.js +0 -6
- package/umd/es6/indexes/with-schemas/index.js +0 -6
- package/umd/es6/mergeable-store/index.js +17 -11
- package/umd/es6/mergeable-store/with-schemas/index.js +17 -11
- package/umd/es6/metrics/index.js +1 -1
- package/umd/es6/metrics/with-schemas/index.js +1 -1
- package/umd/es6/min/common/index.js +1 -1
- package/umd/es6/min/common/index.js.gz +0 -0
- package/umd/es6/min/common/with-schemas/index.js +1 -1
- package/umd/es6/min/common/with-schemas/index.js.gz +0 -0
- package/umd/es6/min/index.js +1 -1
- package/umd/es6/min/index.js.gz +0 -0
- package/umd/es6/min/indexes/index.js +1 -1
- package/umd/es6/min/indexes/index.js.gz +0 -0
- package/umd/es6/min/indexes/with-schemas/index.js +1 -1
- package/umd/es6/min/indexes/with-schemas/index.js.gz +0 -0
- package/umd/es6/min/mergeable-store/index.js +1 -1
- package/umd/es6/min/mergeable-store/index.js.gz +0 -0
- package/umd/es6/min/mergeable-store/with-schemas/index.js +1 -1
- package/umd/es6/min/mergeable-store/with-schemas/index.js.gz +0 -0
- package/umd/es6/min/persisters/persister-pglite/index.js +1 -1
- package/umd/es6/min/persisters/persister-pglite/index.js.gz +0 -0
- package/umd/es6/min/persisters/persister-pglite/with-schemas/index.js +1 -1
- package/umd/es6/min/persisters/persister-pglite/with-schemas/index.js.gz +0 -0
- package/umd/es6/min/store/index.js +1 -1
- package/umd/es6/min/store/index.js.gz +0 -0
- package/umd/es6/min/store/with-schemas/index.js +1 -1
- package/umd/es6/min/store/with-schemas/index.js.gz +0 -0
- package/umd/es6/min/synchronizers/index.js +1 -1
- package/umd/es6/min/synchronizers/index.js.gz +0 -0
- package/umd/es6/min/synchronizers/synchronizer-broadcast-channel/index.js +1 -1
- package/umd/es6/min/synchronizers/synchronizer-broadcast-channel/index.js.gz +0 -0
- package/umd/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +1 -1
- package/umd/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js.gz +0 -0
- package/umd/es6/min/synchronizers/synchronizer-local/index.js +1 -1
- package/umd/es6/min/synchronizers/synchronizer-local/index.js.gz +0 -0
- package/umd/es6/min/synchronizers/synchronizer-local/with-schemas/index.js +1 -1
- package/umd/es6/min/synchronizers/synchronizer-local/with-schemas/index.js.gz +0 -0
- package/umd/es6/min/synchronizers/synchronizer-ws-client/index.js +1 -1
- package/umd/es6/min/synchronizers/synchronizer-ws-client/index.js.gz +0 -0
- package/umd/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.js +1 -1
- package/umd/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.js.gz +0 -0
- package/umd/es6/min/synchronizers/synchronizer-ws-server/index.js +1 -1
- package/umd/es6/min/synchronizers/synchronizer-ws-server/index.js.gz +0 -0
- package/umd/es6/min/synchronizers/synchronizer-ws-server/with-schemas/index.js +1 -1
- package/umd/es6/min/synchronizers/synchronizer-ws-server/with-schemas/index.js.gz +0 -0
- package/umd/es6/min/synchronizers/with-schemas/index.js +1 -1
- package/umd/es6/min/synchronizers/with-schemas/index.js.gz +0 -0
- package/umd/es6/min/tools/index.js +1 -1
- package/umd/es6/min/tools/index.js.gz +0 -0
- package/umd/es6/min/tools/with-schemas/index.js +1 -1
- package/umd/es6/min/tools/with-schemas/index.js.gz +0 -0
- package/umd/es6/min/ui-react/index.js +1 -1
- package/umd/es6/min/ui-react/index.js.gz +0 -0
- package/umd/es6/min/ui-react/with-schemas/index.js +1 -1
- package/umd/es6/min/ui-react/with-schemas/index.js.gz +0 -0
- package/umd/es6/min/ui-react-dom/index.js +1 -1
- package/umd/es6/min/ui-react-dom/index.js.gz +0 -0
- package/umd/es6/min/ui-react-dom/with-schemas/index.js +1 -1
- package/umd/es6/min/ui-react-dom/with-schemas/index.js.gz +0 -0
- package/umd/es6/min/ui-react-inspector/index.js +1 -1
- package/umd/es6/min/ui-react-inspector/index.js.gz +0 -0
- package/umd/es6/min/ui-react-inspector/with-schemas/index.js +1 -1
- package/umd/es6/min/ui-react-inspector/with-schemas/index.js.gz +0 -0
- package/umd/es6/min/with-schemas/index.js +1 -1
- package/umd/es6/min/with-schemas/index.js.gz +0 -0
- package/umd/es6/persisters/persister-pglite/index.js +1 -1
- package/umd/es6/persisters/persister-pglite/with-schemas/index.js +1 -1
- package/umd/es6/queries/index.js +1 -1
- package/umd/es6/queries/with-schemas/index.js +1 -1
- package/umd/es6/store/index.js +0 -6
- package/umd/es6/store/with-schemas/index.js +0 -6
- package/umd/es6/synchronizers/index.js +5 -7
- package/umd/es6/synchronizers/synchronizer-broadcast-channel/index.js +5 -7
- package/umd/es6/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +5 -7
- package/umd/es6/synchronizers/synchronizer-local/index.js +5 -7
- package/umd/es6/synchronizers/synchronizer-local/with-schemas/index.js +5 -7
- package/umd/es6/synchronizers/synchronizer-ws-client/index.js +5 -7
- package/umd/es6/synchronizers/synchronizer-ws-client/with-schemas/index.js +5 -7
- package/umd/es6/synchronizers/synchronizer-ws-server/index.js +5 -7
- package/umd/es6/synchronizers/synchronizer-ws-server/with-schemas/index.js +5 -7
- package/umd/es6/synchronizers/with-schemas/index.js +5 -7
- package/umd/es6/tools/index.js +7 -4
- package/umd/es6/tools/with-schemas/index.js +7 -4
- package/umd/es6/ui-react/index.js +101 -118
- package/umd/es6/ui-react/with-schemas/index.js +101 -118
- package/umd/es6/ui-react-dom/index.js +14 -8
- package/umd/es6/ui-react-dom/with-schemas/index.js +14 -8
- package/umd/es6/ui-react-inspector/index.js +18 -16
- package/umd/es6/ui-react-inspector/with-schemas/index.js +18 -16
- package/umd/es6/with-schemas/index.js +18 -12
- package/umd/index.js +18 -12
- package/umd/indexes/index.js +0 -6
- package/umd/indexes/with-schemas/index.js +0 -6
- package/umd/mergeable-store/index.js +17 -11
- package/umd/mergeable-store/with-schemas/index.js +17 -11
- package/umd/metrics/index.js +1 -1
- package/umd/metrics/with-schemas/index.js +1 -1
- package/umd/min/common/index.js +1 -1
- package/umd/min/common/index.js.gz +0 -0
- package/umd/min/common/with-schemas/index.js +1 -1
- package/umd/min/common/with-schemas/index.js.gz +0 -0
- package/umd/min/index.js +1 -1
- package/umd/min/index.js.gz +0 -0
- package/umd/min/indexes/index.js +1 -1
- package/umd/min/indexes/index.js.gz +0 -0
- package/umd/min/indexes/with-schemas/index.js +1 -1
- package/umd/min/indexes/with-schemas/index.js.gz +0 -0
- package/umd/min/mergeable-store/index.js +1 -1
- package/umd/min/mergeable-store/index.js.gz +0 -0
- package/umd/min/mergeable-store/with-schemas/index.js +1 -1
- package/umd/min/mergeable-store/with-schemas/index.js.gz +0 -0
- package/umd/min/persisters/persister-pglite/index.js +1 -1
- package/umd/min/persisters/persister-pglite/index.js.gz +0 -0
- package/umd/min/persisters/persister-pglite/with-schemas/index.js +1 -1
- package/umd/min/persisters/persister-pglite/with-schemas/index.js.gz +0 -0
- package/umd/min/store/index.js +1 -1
- package/umd/min/store/index.js.gz +0 -0
- package/umd/min/store/with-schemas/index.js +1 -1
- package/umd/min/store/with-schemas/index.js.gz +0 -0
- package/umd/min/synchronizers/index.js +1 -1
- package/umd/min/synchronizers/index.js.gz +0 -0
- package/umd/min/synchronizers/synchronizer-broadcast-channel/index.js +1 -1
- package/umd/min/synchronizers/synchronizer-broadcast-channel/index.js.gz +0 -0
- package/umd/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +1 -1
- package/umd/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js.gz +0 -0
- package/umd/min/synchronizers/synchronizer-local/index.js +1 -1
- package/umd/min/synchronizers/synchronizer-local/index.js.gz +0 -0
- package/umd/min/synchronizers/synchronizer-local/with-schemas/index.js +1 -1
- package/umd/min/synchronizers/synchronizer-local/with-schemas/index.js.gz +0 -0
- package/umd/min/synchronizers/synchronizer-ws-client/index.js +1 -1
- package/umd/min/synchronizers/synchronizer-ws-client/index.js.gz +0 -0
- package/umd/min/synchronizers/synchronizer-ws-client/with-schemas/index.js +1 -1
- package/umd/min/synchronizers/synchronizer-ws-client/with-schemas/index.js.gz +0 -0
- package/umd/min/synchronizers/synchronizer-ws-server/index.js +1 -1
- package/umd/min/synchronizers/synchronizer-ws-server/index.js.gz +0 -0
- package/umd/min/synchronizers/synchronizer-ws-server/with-schemas/index.js +1 -1
- package/umd/min/synchronizers/synchronizer-ws-server/with-schemas/index.js.gz +0 -0
- package/umd/min/synchronizers/with-schemas/index.js +1 -1
- package/umd/min/synchronizers/with-schemas/index.js.gz +0 -0
- package/umd/min/tools/index.js +1 -1
- package/umd/min/tools/index.js.gz +0 -0
- package/umd/min/tools/with-schemas/index.js +1 -1
- package/umd/min/tools/with-schemas/index.js.gz +0 -0
- package/umd/min/ui-react/index.js +1 -1
- package/umd/min/ui-react/index.js.gz +0 -0
- package/umd/min/ui-react/with-schemas/index.js +1 -1
- package/umd/min/ui-react/with-schemas/index.js.gz +0 -0
- package/umd/min/ui-react-dom/index.js +1 -1
- package/umd/min/ui-react-dom/index.js.gz +0 -0
- package/umd/min/ui-react-dom/with-schemas/index.js +1 -1
- package/umd/min/ui-react-dom/with-schemas/index.js.gz +0 -0
- package/umd/min/ui-react-inspector/index.js +1 -1
- package/umd/min/ui-react-inspector/index.js.gz +0 -0
- package/umd/min/ui-react-inspector/with-schemas/index.js +1 -1
- package/umd/min/ui-react-inspector/with-schemas/index.js.gz +0 -0
- package/umd/min/with-schemas/index.js +1 -1
- package/umd/min/with-schemas/index.js.gz +0 -0
- package/umd/persisters/persister-pglite/index.js +1 -1
- package/umd/persisters/persister-pglite/with-schemas/index.js +1 -1
- package/umd/queries/index.js +1 -1
- package/umd/queries/with-schemas/index.js +1 -1
- package/umd/store/index.js +0 -6
- package/umd/store/with-schemas/index.js +0 -6
- package/umd/synchronizers/index.js +5 -7
- package/umd/synchronizers/synchronizer-broadcast-channel/index.js +5 -7
- package/umd/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +5 -7
- package/umd/synchronizers/synchronizer-local/index.js +5 -7
- package/umd/synchronizers/synchronizer-local/with-schemas/index.js +5 -7
- package/umd/synchronizers/synchronizer-ws-client/index.js +5 -7
- package/umd/synchronizers/synchronizer-ws-client/with-schemas/index.js +5 -7
- package/umd/synchronizers/synchronizer-ws-server/index.js +5 -7
- package/umd/synchronizers/synchronizer-ws-server/with-schemas/index.js +5 -7
- package/umd/synchronizers/with-schemas/index.js +5 -7
- package/umd/tools/index.js +7 -4
- package/umd/tools/with-schemas/index.js +7 -4
- package/umd/ui-react/index.js +97 -110
- package/umd/ui-react/with-schemas/index.js +97 -110
- package/umd/ui-react-dom/index.js +14 -8
- package/umd/ui-react-dom/with-schemas/index.js +14 -8
- package/umd/ui-react-inspector/index.js +18 -16
- package/umd/ui-react-inspector/with-schemas/index.js +18 -16
- package/umd/with-schemas/index.js +18 -12
- package/with-schemas/index.js +18 -12
|
@@ -8,7 +8,9 @@ const FUNCTION = getTypeOf(getTypeOf);
|
|
|
8
8
|
const LISTENER = 'Listener';
|
|
9
9
|
const RESULT = 'Result';
|
|
10
10
|
const GET = 'get';
|
|
11
|
+
const SET = 'set';
|
|
11
12
|
const ADD = 'add';
|
|
13
|
+
const DEL = 'del';
|
|
12
14
|
const HAS = 'Has';
|
|
13
15
|
const _HAS = 'has';
|
|
14
16
|
const IDS = 'Ids';
|
|
@@ -24,7 +26,19 @@ const CELL_IDS = CELL + IDS;
|
|
|
24
26
|
const VALUE = 'Value';
|
|
25
27
|
const VALUES = VALUE + 's';
|
|
26
28
|
const VALUE_IDS = VALUE + IDS;
|
|
29
|
+
const TRANSACTION = 'Transaction';
|
|
30
|
+
const PARTIAL = 'Partial';
|
|
31
|
+
const FINISH = 'Finish';
|
|
27
32
|
const STATUS = 'Status';
|
|
33
|
+
const METRIC = 'Metric';
|
|
34
|
+
const INDEX = 'Index';
|
|
35
|
+
const SLICE = 'Slice';
|
|
36
|
+
const RELATIONSHIP = 'Relationship';
|
|
37
|
+
const REMOTE_ROW_ID = 'Remote' + ROW + 'Id';
|
|
38
|
+
const LOCAL = 'Local';
|
|
39
|
+
const LINKED = 'Linked';
|
|
40
|
+
const QUERY = 'Query';
|
|
41
|
+
const CHECKPOINT = 'Checkpoint';
|
|
28
42
|
|
|
29
43
|
const GLOBAL = globalThis;
|
|
30
44
|
const isUndefined = (thing) => thing == void 0;
|
|
@@ -47,6 +61,38 @@ const arrayIsEmpty = (array) => size(array) == 0;
|
|
|
47
61
|
const arrayFilter = (array, cb) => array.filter(cb);
|
|
48
62
|
const arrayWith = (array, index, value) => array.with(index, value);
|
|
49
63
|
|
|
64
|
+
const {
|
|
65
|
+
PureComponent,
|
|
66
|
+
Fragment,
|
|
67
|
+
createContext,
|
|
68
|
+
createElement,
|
|
69
|
+
useCallback,
|
|
70
|
+
useContext,
|
|
71
|
+
useEffect,
|
|
72
|
+
useLayoutEffect,
|
|
73
|
+
useMemo,
|
|
74
|
+
useRef,
|
|
75
|
+
useState,
|
|
76
|
+
useSyncExternalStore,
|
|
77
|
+
} = React;
|
|
78
|
+
const getProps = (getProps2, ...ids) =>
|
|
79
|
+
isUndefined(getProps2) ? {} : getProps2(...ids);
|
|
80
|
+
const getRelationshipsStoreTableIds = (relationships, relationshipId) => [
|
|
81
|
+
relationships,
|
|
82
|
+
relationships == null ? void 0 : relationships.getStore(),
|
|
83
|
+
relationships == null
|
|
84
|
+
? void 0
|
|
85
|
+
: relationships.getLocalTableId(relationshipId),
|
|
86
|
+
relationships == null
|
|
87
|
+
? void 0
|
|
88
|
+
: relationships.getRemoteTableId(relationshipId),
|
|
89
|
+
];
|
|
90
|
+
const getIndexStoreTableId = (indexes, indexId) => [
|
|
91
|
+
indexes,
|
|
92
|
+
indexes == null ? void 0 : indexes.getStore(),
|
|
93
|
+
indexes == null ? void 0 : indexes.getTableId(indexId),
|
|
94
|
+
];
|
|
95
|
+
|
|
50
96
|
const object = Object;
|
|
51
97
|
const getPrototypeOf = (obj) => object.getPrototypeOf(obj);
|
|
52
98
|
const objEntries = object.entries;
|
|
@@ -89,22 +135,10 @@ const objEnsure = (obj, id, getDefaultValue) => {
|
|
|
89
135
|
return obj[id];
|
|
90
136
|
};
|
|
91
137
|
|
|
92
|
-
const {createContext, useContext: useContext$1, useEffect: useEffect$1} = React;
|
|
93
|
-
var Offsets = /* @__PURE__ */ ((Offsets2) => {
|
|
94
|
-
Offsets2[(Offsets2['Store'] = 0)] = 'Store';
|
|
95
|
-
Offsets2[(Offsets2['Metrics'] = 1)] = 'Metrics';
|
|
96
|
-
Offsets2[(Offsets2['Indexes'] = 2)] = 'Indexes';
|
|
97
|
-
Offsets2[(Offsets2['Relationships'] = 3)] = 'Relationships';
|
|
98
|
-
Offsets2[(Offsets2['Queries'] = 4)] = 'Queries';
|
|
99
|
-
Offsets2[(Offsets2['Checkpoints'] = 5)] = 'Checkpoints';
|
|
100
|
-
Offsets2[(Offsets2['Persister'] = 6)] = 'Persister';
|
|
101
|
-
Offsets2[(Offsets2['Synchronizer'] = 7)] = 'Synchronizer';
|
|
102
|
-
return Offsets2;
|
|
103
|
-
})(Offsets || {});
|
|
104
138
|
const Context = objEnsure(GLOBAL, TINYBASE + '_uirc', () => createContext([]));
|
|
105
139
|
const useThing = (id, offset) => {
|
|
106
140
|
var _a;
|
|
107
|
-
const contextValue = useContext
|
|
141
|
+
const contextValue = useContext(Context);
|
|
108
142
|
return isUndefined(id)
|
|
109
143
|
? contextValue[offset * 2]
|
|
110
144
|
: isString(id)
|
|
@@ -118,8 +152,8 @@ const useThingOrThingById = (thingOrThingId, offset) => {
|
|
|
118
152
|
: thingOrThingId;
|
|
119
153
|
};
|
|
120
154
|
const useProvideThing = (thingId, thing, offset) => {
|
|
121
|
-
const {16: addExtraThingById, 17: delExtraThingById} = useContext
|
|
122
|
-
useEffect
|
|
155
|
+
const {16: addExtraThingById, 17: delExtraThingById} = useContext(Context);
|
|
156
|
+
useEffect(() => {
|
|
123
157
|
addExtraThingById == null
|
|
124
158
|
? void 0
|
|
125
159
|
: addExtraThingById(offset, thingId, thing);
|
|
@@ -129,7 +163,7 @@ const useProvideThing = (thingId, thing, offset) => {
|
|
|
129
163
|
};
|
|
130
164
|
const useThingIds = (offset) => {
|
|
131
165
|
var _a;
|
|
132
|
-
return objIds((_a = useContext
|
|
166
|
+
return objIds((_a = useContext(Context)[offset * 2 + 1]) != null ? _a : {});
|
|
133
167
|
};
|
|
134
168
|
const useStoreIds = () => useThingIds(0 /* Store */);
|
|
135
169
|
const useStore = (id) => useThing(id, 0 /* Store */);
|
|
@@ -180,11 +214,6 @@ const useSynchronizerOrSynchronizerById = (synchronizerOrSynchronizerId) =>
|
|
|
180
214
|
const useProvideSynchronizer = (persisterId, persister) =>
|
|
181
215
|
useProvideThing(persisterId, persister, 7 /* Synchronizer */);
|
|
182
216
|
|
|
183
|
-
const lower = (str) => str.toLowerCase();
|
|
184
|
-
lower(LISTENER);
|
|
185
|
-
const TRANSACTION = 'Transaction';
|
|
186
|
-
lower(TRANSACTION);
|
|
187
|
-
|
|
188
217
|
var __async = (__this, __arguments, generator) => {
|
|
189
218
|
return new Promise((resolve, reject) => {
|
|
190
219
|
var fulfilled = (value) => {
|
|
@@ -208,15 +237,6 @@ var __async = (__this, __arguments, generator) => {
|
|
|
208
237
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
209
238
|
});
|
|
210
239
|
};
|
|
211
|
-
const {
|
|
212
|
-
useCallback: useCallback$2,
|
|
213
|
-
useEffect,
|
|
214
|
-
useMemo: useMemo$1,
|
|
215
|
-
useLayoutEffect: useLayoutEffect$1,
|
|
216
|
-
useRef: useRef$1,
|
|
217
|
-
useState: useState$2,
|
|
218
|
-
useSyncExternalStore,
|
|
219
|
-
} = React;
|
|
220
240
|
const EMPTY_ARRAY = [];
|
|
221
241
|
const DEFAULTS = [{}, [], [EMPTY_ARRAY, void 0, EMPTY_ARRAY], void 0, false, 0];
|
|
222
242
|
const IS_EQUALS = [
|
|
@@ -232,8 +252,8 @@ const IS_EQUALS = [
|
|
|
232
252
|
];
|
|
233
253
|
const isEqual = (thing1, thing2) => thing1 === thing2;
|
|
234
254
|
const useCreate = (store, create, createDeps = EMPTY_ARRAY) => {
|
|
235
|
-
const [, rerender] = useState
|
|
236
|
-
const [thing, setThing] = useState
|
|
255
|
+
const [, rerender] = useState();
|
|
256
|
+
const [thing, setThing] = useState();
|
|
237
257
|
useEffect(
|
|
238
258
|
() => {
|
|
239
259
|
const newThing = store ? create(store) : void 0;
|
|
@@ -255,8 +275,8 @@ const addAndDelListener = (thing, listenable, ...args) => {
|
|
|
255
275
|
return () => (thing == null ? void 0 : thing.delListener(listenerId));
|
|
256
276
|
};
|
|
257
277
|
const useListenable = (listenable, thing, returnType, args = EMPTY_ARRAY) => {
|
|
258
|
-
const lastResult = useRef
|
|
259
|
-
const getResult = useCallback
|
|
278
|
+
const lastResult = useRef(DEFAULTS[returnType]);
|
|
279
|
+
const getResult = useCallback(
|
|
260
280
|
() => {
|
|
261
281
|
var _a, _b, _c;
|
|
262
282
|
const nextResult =
|
|
@@ -281,7 +301,7 @@ const useListenable = (listenable, thing, returnType, args = EMPTY_ARRAY) => {
|
|
|
281
301
|
/* eslint-disable-next-line react-hooks/exhaustive-deps */
|
|
282
302
|
[thing, returnType, listenable, ...args],
|
|
283
303
|
);
|
|
284
|
-
const subscribe = useCallback
|
|
304
|
+
const subscribe = useCallback(
|
|
285
305
|
(listener) =>
|
|
286
306
|
addAndDelListener(
|
|
287
307
|
thing,
|
|
@@ -302,7 +322,7 @@ const useListener = (
|
|
|
302
322
|
preArgs = EMPTY_ARRAY,
|
|
303
323
|
...postArgs
|
|
304
324
|
) =>
|
|
305
|
-
useLayoutEffect
|
|
325
|
+
useLayoutEffect(
|
|
306
326
|
() =>
|
|
307
327
|
addAndDelListener(thing, listenable, ...preArgs, listener, ...postArgs),
|
|
308
328
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -318,12 +338,12 @@ const useSetCallback = (
|
|
|
318
338
|
...args
|
|
319
339
|
) => {
|
|
320
340
|
const store = useStoreOrStoreById(storeOrStoreId);
|
|
321
|
-
return useCallback
|
|
341
|
+
return useCallback(
|
|
322
342
|
(parameter) =>
|
|
323
343
|
ifNotUndefined(store, (store2) =>
|
|
324
344
|
ifNotUndefined(get(parameter, store2), (thing) =>
|
|
325
345
|
then(
|
|
326
|
-
store2[
|
|
346
|
+
store2[SET + settable](
|
|
327
347
|
...argsOrGetArgs(args, store2, parameter),
|
|
328
348
|
thing,
|
|
329
349
|
),
|
|
@@ -346,12 +366,12 @@ const useDel = (
|
|
|
346
366
|
...args
|
|
347
367
|
) => {
|
|
348
368
|
const store = useStoreOrStoreById(storeOrStoreId);
|
|
349
|
-
return useCallback
|
|
369
|
+
return useCallback(
|
|
350
370
|
(parameter) =>
|
|
351
371
|
then(
|
|
352
372
|
store == null
|
|
353
373
|
? void 0
|
|
354
|
-
: store[
|
|
374
|
+
: store[DEL + deletable](...argsOrGetArgs(args, store, parameter)),
|
|
355
375
|
),
|
|
356
376
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
357
377
|
[store, deletable, ...thenDeps, ...nonFunctionDeps(args)],
|
|
@@ -361,16 +381,16 @@ const useCheckpointAction = (checkpointsOrCheckpointsId, action, arg) => {
|
|
|
361
381
|
const checkpoints = useCheckpointsOrCheckpointsById(
|
|
362
382
|
checkpointsOrCheckpointsId,
|
|
363
383
|
);
|
|
364
|
-
return useCallback
|
|
384
|
+
return useCallback(
|
|
365
385
|
() => (checkpoints == null ? void 0 : checkpoints[action](arg)),
|
|
366
386
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
367
387
|
[checkpoints, action, arg],
|
|
368
388
|
);
|
|
369
389
|
};
|
|
370
390
|
const useCreateStore = (create, createDeps = EMPTY_ARRAY) =>
|
|
371
|
-
useMemo
|
|
391
|
+
useMemo(create, createDeps);
|
|
372
392
|
const useCreateMergeableStore = (create, createDeps = EMPTY_ARRAY) =>
|
|
373
|
-
useMemo
|
|
393
|
+
useMemo(create, createDeps);
|
|
374
394
|
const useHasTables = (storeOrStoreId) =>
|
|
375
395
|
useListenable(
|
|
376
396
|
TABLES,
|
|
@@ -540,7 +560,7 @@ const useAddRowCallback = (
|
|
|
540
560
|
reuseRowIds = true,
|
|
541
561
|
) => {
|
|
542
562
|
const store = useStoreOrStoreById(storeOrStoreId);
|
|
543
|
-
return useCallback
|
|
563
|
+
return useCallback(
|
|
544
564
|
(parameter) =>
|
|
545
565
|
ifNotUndefined(store, (store2) =>
|
|
546
566
|
ifNotUndefined(getRow(parameter, store2), (row) =>
|
|
@@ -570,7 +590,7 @@ const useSetPartialRowCallback = (
|
|
|
570
590
|
) =>
|
|
571
591
|
useSetCallback(
|
|
572
592
|
storeOrStoreId,
|
|
573
|
-
|
|
593
|
+
PARTIAL + ROW,
|
|
574
594
|
getPartialRow,
|
|
575
595
|
getPartialRowDeps,
|
|
576
596
|
then,
|
|
@@ -623,7 +643,7 @@ const useSetPartialValuesCallback = (
|
|
|
623
643
|
) =>
|
|
624
644
|
useSetCallback(
|
|
625
645
|
storeOrStoreId,
|
|
626
|
-
|
|
646
|
+
PARTIAL + VALUES,
|
|
627
647
|
getPartialValues,
|
|
628
648
|
getPartialValuesDeps,
|
|
629
649
|
then,
|
|
@@ -974,7 +994,7 @@ const useWillFinishTransactionListener = (
|
|
|
974
994
|
storeOrStoreId,
|
|
975
995
|
) =>
|
|
976
996
|
useListener(
|
|
977
|
-
'
|
|
997
|
+
'Will' + FINISH + TRANSACTION,
|
|
978
998
|
useStoreOrStoreById(storeOrStoreId),
|
|
979
999
|
listener,
|
|
980
1000
|
listenerDeps,
|
|
@@ -985,7 +1005,7 @@ const useDidFinishTransactionListener = (
|
|
|
985
1005
|
storeOrStoreId,
|
|
986
1006
|
) =>
|
|
987
1007
|
useListener(
|
|
988
|
-
'
|
|
1008
|
+
'Did' + FINISH + TRANSACTION,
|
|
989
1009
|
useStoreOrStoreById(storeOrStoreId),
|
|
990
1010
|
listener,
|
|
991
1011
|
listenerDeps,
|
|
@@ -994,13 +1014,13 @@ const useCreateMetrics = (store, create, createDeps) =>
|
|
|
994
1014
|
useCreate(store, create, createDeps);
|
|
995
1015
|
const useMetricIds = (metricsOrMetricsId) =>
|
|
996
1016
|
useListenable(
|
|
997
|
-
|
|
1017
|
+
METRIC + IDS,
|
|
998
1018
|
useMetricsOrMetricsById(metricsOrMetricsId),
|
|
999
1019
|
1 /* Array */,
|
|
1000
1020
|
);
|
|
1001
1021
|
const useMetric = (metricId, metricsOrMetricsId) =>
|
|
1002
1022
|
useListenable(
|
|
1003
|
-
|
|
1023
|
+
METRIC,
|
|
1004
1024
|
useMetricsOrMetricsById(metricsOrMetricsId),
|
|
1005
1025
|
3 /* CellOrValue */,
|
|
1006
1026
|
[metricId],
|
|
@@ -1012,7 +1032,7 @@ const useMetricListener = (
|
|
|
1012
1032
|
metricsOrMetricsId,
|
|
1013
1033
|
) =>
|
|
1014
1034
|
useListener(
|
|
1015
|
-
|
|
1035
|
+
METRIC,
|
|
1016
1036
|
useMetricsOrMetricsById(metricsOrMetricsId),
|
|
1017
1037
|
listener,
|
|
1018
1038
|
listenerDeps,
|
|
@@ -1022,20 +1042,20 @@ const useCreateIndexes = (store, create, createDeps) =>
|
|
|
1022
1042
|
useCreate(store, create, createDeps);
|
|
1023
1043
|
const useSliceIds = (indexId, indexesOrIndexesId) =>
|
|
1024
1044
|
useListenable(
|
|
1025
|
-
|
|
1045
|
+
SLICE + IDS,
|
|
1026
1046
|
useIndexesOrIndexesById(indexesOrIndexesId),
|
|
1027
1047
|
1 /* Array */,
|
|
1028
1048
|
[indexId],
|
|
1029
1049
|
);
|
|
1030
1050
|
const useIndexIds = (indexesOrIndexesId) =>
|
|
1031
1051
|
useListenable(
|
|
1032
|
-
|
|
1052
|
+
INDEX + IDS,
|
|
1033
1053
|
useIndexesOrIndexesById(indexesOrIndexesId),
|
|
1034
1054
|
1 /* Array */,
|
|
1035
1055
|
);
|
|
1036
1056
|
const useSliceRowIds = (indexId, sliceId, indexesOrIndexesId) =>
|
|
1037
1057
|
useListenable(
|
|
1038
|
-
|
|
1058
|
+
SLICE + ROW_IDS,
|
|
1039
1059
|
useIndexesOrIndexesById(indexesOrIndexesId),
|
|
1040
1060
|
1 /* Array */,
|
|
1041
1061
|
[indexId, sliceId],
|
|
@@ -1047,7 +1067,7 @@ const useSliceIdsListener = (
|
|
|
1047
1067
|
indexesOrIndexesId,
|
|
1048
1068
|
) =>
|
|
1049
1069
|
useListener(
|
|
1050
|
-
|
|
1070
|
+
SLICE + IDS,
|
|
1051
1071
|
useIndexesOrIndexesById(indexesOrIndexesId),
|
|
1052
1072
|
listener,
|
|
1053
1073
|
listenerDeps,
|
|
@@ -1061,7 +1081,7 @@ const useSliceRowIdsListener = (
|
|
|
1061
1081
|
indexesOrIndexesId,
|
|
1062
1082
|
) =>
|
|
1063
1083
|
useListener(
|
|
1064
|
-
|
|
1084
|
+
SLICE + ROW_IDS,
|
|
1065
1085
|
useIndexesOrIndexesById(indexesOrIndexesId),
|
|
1066
1086
|
listener,
|
|
1067
1087
|
listenerDeps,
|
|
@@ -1071,7 +1091,7 @@ const useCreateRelationships = (store, create, createDeps) =>
|
|
|
1071
1091
|
useCreate(store, create, createDeps);
|
|
1072
1092
|
const useRelationshipIds = (relationshipsOrRelationshipsId) =>
|
|
1073
1093
|
useListenable(
|
|
1074
|
-
|
|
1094
|
+
RELATIONSHIP + IDS,
|
|
1075
1095
|
useRelationshipsOrRelationshipsById(relationshipsOrRelationshipsId),
|
|
1076
1096
|
1 /* Array */,
|
|
1077
1097
|
);
|
|
@@ -1081,7 +1101,7 @@ const useRemoteRowId = (
|
|
|
1081
1101
|
relationshipsOrRelationshipsId,
|
|
1082
1102
|
) =>
|
|
1083
1103
|
useListenable(
|
|
1084
|
-
|
|
1104
|
+
REMOTE_ROW_ID,
|
|
1085
1105
|
useRelationshipsOrRelationshipsById(relationshipsOrRelationshipsId),
|
|
1086
1106
|
3 /* CellOrValue */,
|
|
1087
1107
|
[relationshipId, localRowId],
|
|
@@ -1092,7 +1112,7 @@ const useLocalRowIds = (
|
|
|
1092
1112
|
relationshipsOrRelationshipsId,
|
|
1093
1113
|
) =>
|
|
1094
1114
|
useListenable(
|
|
1095
|
-
|
|
1115
|
+
LOCAL + ROW_IDS,
|
|
1096
1116
|
useRelationshipsOrRelationshipsById(relationshipsOrRelationshipsId),
|
|
1097
1117
|
1 /* Array */,
|
|
1098
1118
|
[relationshipId, remoteRowId],
|
|
@@ -1103,7 +1123,7 @@ const useLinkedRowIds = (
|
|
|
1103
1123
|
relationshipsOrRelationshipsId,
|
|
1104
1124
|
) =>
|
|
1105
1125
|
useListenable(
|
|
1106
|
-
|
|
1126
|
+
LINKED + ROW_IDS,
|
|
1107
1127
|
useRelationshipsOrRelationshipsById(relationshipsOrRelationshipsId),
|
|
1108
1128
|
1 /* Array */,
|
|
1109
1129
|
[relationshipId, firstRowId],
|
|
@@ -1116,7 +1136,7 @@ const useRemoteRowIdListener = (
|
|
|
1116
1136
|
relationshipsOrRelationshipsId,
|
|
1117
1137
|
) =>
|
|
1118
1138
|
useListener(
|
|
1119
|
-
|
|
1139
|
+
REMOTE_ROW_ID,
|
|
1120
1140
|
useRelationshipsOrRelationshipsById(relationshipsOrRelationshipsId),
|
|
1121
1141
|
listener,
|
|
1122
1142
|
listenerDeps,
|
|
@@ -1130,7 +1150,7 @@ const useLocalRowIdsListener = (
|
|
|
1130
1150
|
relationshipsOrRelationshipsId,
|
|
1131
1151
|
) =>
|
|
1132
1152
|
useListener(
|
|
1133
|
-
|
|
1153
|
+
LOCAL + ROW_IDS,
|
|
1134
1154
|
useRelationshipsOrRelationshipsById(relationshipsOrRelationshipsId),
|
|
1135
1155
|
listener,
|
|
1136
1156
|
listenerDeps,
|
|
@@ -1144,7 +1164,7 @@ const useLinkedRowIdsListener = (
|
|
|
1144
1164
|
relationshipsOrRelationshipsId,
|
|
1145
1165
|
) =>
|
|
1146
1166
|
useListener(
|
|
1147
|
-
|
|
1167
|
+
LINKED + ROW_IDS,
|
|
1148
1168
|
useRelationshipsOrRelationshipsById(relationshipsOrRelationshipsId),
|
|
1149
1169
|
listener,
|
|
1150
1170
|
listenerDeps,
|
|
@@ -1154,7 +1174,7 @@ const useCreateQueries = (store, create, createDeps) =>
|
|
|
1154
1174
|
useCreate(store, create, createDeps);
|
|
1155
1175
|
const useQueryIds = (queriesOrQueriesId) =>
|
|
1156
1176
|
useListenable(
|
|
1157
|
-
|
|
1177
|
+
QUERY + IDS,
|
|
1158
1178
|
useQueriesOrQueriesById(queriesOrQueriesId),
|
|
1159
1179
|
1 /* Array */,
|
|
1160
1180
|
);
|
|
@@ -1337,13 +1357,13 @@ const useCreateCheckpoints = (store, create, createDeps) =>
|
|
|
1337
1357
|
useCreate(store, create, createDeps);
|
|
1338
1358
|
const useCheckpointIds = (checkpointsOrCheckpointsId) =>
|
|
1339
1359
|
useListenable(
|
|
1340
|
-
|
|
1360
|
+
CHECKPOINT + IDS,
|
|
1341
1361
|
useCheckpointsOrCheckpointsById(checkpointsOrCheckpointsId),
|
|
1342
1362
|
2 /* Checkpoints */,
|
|
1343
1363
|
);
|
|
1344
1364
|
const useCheckpoint = (checkpointId, checkpointsOrCheckpointsId) =>
|
|
1345
1365
|
useListenable(
|
|
1346
|
-
|
|
1366
|
+
CHECKPOINT,
|
|
1347
1367
|
useCheckpointsOrCheckpointsById(checkpointsOrCheckpointsId),
|
|
1348
1368
|
3 /* CellOrValue */,
|
|
1349
1369
|
[checkpointId],
|
|
@@ -1358,7 +1378,7 @@ const useSetCheckpointCallback = (
|
|
|
1358
1378
|
const checkpoints = useCheckpointsOrCheckpointsById(
|
|
1359
1379
|
checkpointsOrCheckpointsId,
|
|
1360
1380
|
);
|
|
1361
|
-
return useCallback
|
|
1381
|
+
return useCallback(
|
|
1362
1382
|
(parameter) =>
|
|
1363
1383
|
ifNotUndefined(checkpoints, (checkpoints2) => {
|
|
1364
1384
|
const label = getCheckpoint(parameter);
|
|
@@ -1382,7 +1402,7 @@ const useGoToCallback = (
|
|
|
1382
1402
|
const checkpoints = useCheckpointsOrCheckpointsById(
|
|
1383
1403
|
checkpointsOrCheckpointsId,
|
|
1384
1404
|
);
|
|
1385
|
-
return useCallback
|
|
1405
|
+
return useCallback(
|
|
1386
1406
|
(parameter) =>
|
|
1387
1407
|
ifNotUndefined(checkpoints, (checkpoints2) =>
|
|
1388
1408
|
ifNotUndefined(getCheckpointId(parameter), (checkpointId) =>
|
|
@@ -1433,7 +1453,7 @@ const useCheckpointIdsListener = (
|
|
|
1433
1453
|
checkpointsOrCheckpointsId,
|
|
1434
1454
|
) =>
|
|
1435
1455
|
useListener(
|
|
1436
|
-
|
|
1456
|
+
CHECKPOINT + IDS,
|
|
1437
1457
|
useCheckpointsOrCheckpointsById(checkpointsOrCheckpointsId),
|
|
1438
1458
|
listener,
|
|
1439
1459
|
listenerDeps,
|
|
@@ -1445,7 +1465,7 @@ const useCheckpointListener = (
|
|
|
1445
1465
|
checkpointsOrCheckpointsId,
|
|
1446
1466
|
) =>
|
|
1447
1467
|
useListener(
|
|
1448
|
-
|
|
1468
|
+
CHECKPOINT,
|
|
1449
1469
|
useCheckpointsOrCheckpointsById(checkpointsOrCheckpointsId),
|
|
1450
1470
|
listener,
|
|
1451
1471
|
listenerDeps,
|
|
@@ -1460,8 +1480,8 @@ const useCreatePersister = (
|
|
|
1460
1480
|
destroy,
|
|
1461
1481
|
destroyDeps = EMPTY_ARRAY,
|
|
1462
1482
|
) => {
|
|
1463
|
-
const [, rerender] = useState
|
|
1464
|
-
const [persister, setPersister] = useState
|
|
1483
|
+
const [, rerender] = useState();
|
|
1484
|
+
const [persister, setPersister] = useState();
|
|
1465
1485
|
useEffect(
|
|
1466
1486
|
() => {
|
|
1467
1487
|
(() =>
|
|
@@ -1518,7 +1538,7 @@ const useCreateSynchronizer = (
|
|
|
1518
1538
|
destroy,
|
|
1519
1539
|
destroyDeps = EMPTY_ARRAY,
|
|
1520
1540
|
) => {
|
|
1521
|
-
const [synchronizer, setSynchronizer] = useState
|
|
1541
|
+
const [synchronizer, setSynchronizer] = useState();
|
|
1522
1542
|
useEffect(
|
|
1523
1543
|
() => {
|
|
1524
1544
|
(() =>
|
|
@@ -1562,33 +1582,6 @@ const useSynchronizerStatusListener = (
|
|
|
1562
1582
|
[],
|
|
1563
1583
|
);
|
|
1564
1584
|
|
|
1565
|
-
const {
|
|
1566
|
-
PureComponent,
|
|
1567
|
-
Fragment,
|
|
1568
|
-
createElement,
|
|
1569
|
-
useCallback: useCallback$1,
|
|
1570
|
-
useLayoutEffect,
|
|
1571
|
-
useRef,
|
|
1572
|
-
useState: useState$1,
|
|
1573
|
-
} = React;
|
|
1574
|
-
const getProps = (getProps2, ...ids) =>
|
|
1575
|
-
isUndefined(getProps2) ? {} : getProps2(...ids);
|
|
1576
|
-
const getRelationshipsStoreTableIds = (relationships, relationshipId) => [
|
|
1577
|
-
relationships,
|
|
1578
|
-
relationships == null ? void 0 : relationships.getStore(),
|
|
1579
|
-
relationships == null
|
|
1580
|
-
? void 0
|
|
1581
|
-
: relationships.getLocalTableId(relationshipId),
|
|
1582
|
-
relationships == null
|
|
1583
|
-
? void 0
|
|
1584
|
-
: relationships.getRemoteTableId(relationshipId),
|
|
1585
|
-
];
|
|
1586
|
-
const getIndexStoreTableId = (indexes, indexId) => [
|
|
1587
|
-
indexes,
|
|
1588
|
-
indexes == null ? void 0 : indexes.getStore(),
|
|
1589
|
-
indexes == null ? void 0 : indexes.getTableId(indexId),
|
|
1590
|
-
];
|
|
1591
|
-
|
|
1592
1585
|
var __defProp = Object.defineProperty;
|
|
1593
1586
|
var __defProps = Object.defineProperties;
|
|
1594
1587
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
@@ -1626,7 +1619,6 @@ var __objRest = (source, exclude) => {
|
|
|
1626
1619
|
}
|
|
1627
1620
|
return target;
|
|
1628
1621
|
};
|
|
1629
|
-
const {useCallback, useContext, useMemo, useState} = React;
|
|
1630
1622
|
const mergeParentThings = (
|
|
1631
1623
|
offset,
|
|
1632
1624
|
parentValue,
|
|
@@ -1833,56 +1825,56 @@ const Provider = ({
|
|
|
1833
1825
|
value: useMemo(
|
|
1834
1826
|
() => [
|
|
1835
1827
|
...mergeParentThings(
|
|
1836
|
-
|
|
1828
|
+
0 /* Store */,
|
|
1837
1829
|
parentValue,
|
|
1838
1830
|
store,
|
|
1839
1831
|
storesById,
|
|
1840
1832
|
extraThingsById,
|
|
1841
1833
|
),
|
|
1842
1834
|
...mergeParentThings(
|
|
1843
|
-
|
|
1835
|
+
1 /* Metrics */,
|
|
1844
1836
|
parentValue,
|
|
1845
1837
|
metrics,
|
|
1846
1838
|
metricsById,
|
|
1847
1839
|
extraThingsById,
|
|
1848
1840
|
),
|
|
1849
1841
|
...mergeParentThings(
|
|
1850
|
-
|
|
1842
|
+
2 /* Indexes */,
|
|
1851
1843
|
parentValue,
|
|
1852
1844
|
indexes,
|
|
1853
1845
|
indexesById,
|
|
1854
1846
|
extraThingsById,
|
|
1855
1847
|
),
|
|
1856
1848
|
...mergeParentThings(
|
|
1857
|
-
|
|
1849
|
+
3 /* Relationships */,
|
|
1858
1850
|
parentValue,
|
|
1859
1851
|
relationships,
|
|
1860
1852
|
relationshipsById,
|
|
1861
1853
|
extraThingsById,
|
|
1862
1854
|
),
|
|
1863
1855
|
...mergeParentThings(
|
|
1864
|
-
|
|
1856
|
+
4 /* Queries */,
|
|
1865
1857
|
parentValue,
|
|
1866
1858
|
queries,
|
|
1867
1859
|
queriesById,
|
|
1868
1860
|
extraThingsById,
|
|
1869
1861
|
),
|
|
1870
1862
|
...mergeParentThings(
|
|
1871
|
-
|
|
1863
|
+
5 /* Checkpoints */,
|
|
1872
1864
|
parentValue,
|
|
1873
1865
|
checkpoints,
|
|
1874
1866
|
checkpointsById,
|
|
1875
1867
|
extraThingsById,
|
|
1876
1868
|
),
|
|
1877
1869
|
...mergeParentThings(
|
|
1878
|
-
|
|
1870
|
+
6 /* Persister */,
|
|
1879
1871
|
parentValue,
|
|
1880
1872
|
persister,
|
|
1881
1873
|
persistersById,
|
|
1882
1874
|
extraThingsById,
|
|
1883
1875
|
),
|
|
1884
1876
|
...mergeParentThings(
|
|
1885
|
-
|
|
1877
|
+
7 /* Synchronizer */,
|
|
1886
1878
|
parentValue,
|
|
1887
1879
|
synchronizer,
|
|
1888
1880
|
synchronizersById,
|
|
@@ -32,6 +32,8 @@ const CELL = 'Cell';
|
|
|
32
32
|
const VALUE = 'Value';
|
|
33
33
|
const CURRENT_TARGET = 'currentTarget';
|
|
34
34
|
const _VALUE = 'value';
|
|
35
|
+
const strSplit = (str, separator = EMPTY_STRING, limit) =>
|
|
36
|
+
str.split(separator, limit);
|
|
35
37
|
|
|
36
38
|
const math = Math;
|
|
37
39
|
const mathMin = math.min;
|
|
@@ -54,11 +56,16 @@ const getTypeCase = (type, stringCase, numberCase, booleanCase) =>
|
|
|
54
56
|
const {
|
|
55
57
|
PureComponent,
|
|
56
58
|
Fragment,
|
|
59
|
+
createContext,
|
|
57
60
|
createElement,
|
|
58
|
-
useCallback
|
|
61
|
+
useCallback,
|
|
62
|
+
useContext,
|
|
63
|
+
useEffect,
|
|
59
64
|
useLayoutEffect,
|
|
65
|
+
useMemo,
|
|
60
66
|
useRef,
|
|
61
|
-
useState
|
|
67
|
+
useState,
|
|
68
|
+
useSyncExternalStore,
|
|
62
69
|
} = React;
|
|
63
70
|
const getProps = (getProps2, ...ids) =>
|
|
64
71
|
isUndefined(getProps2) ? {} : getProps2(...ids);
|
|
@@ -125,7 +132,6 @@ var __objRest = (source, exclude) => {
|
|
|
125
132
|
}
|
|
126
133
|
return target;
|
|
127
134
|
};
|
|
128
|
-
const {useCallback, useMemo, useState} = React;
|
|
129
135
|
const DOT = '.';
|
|
130
136
|
const EDITABLE = 'editable';
|
|
131
137
|
const LEFT_ARROW = '\u2190';
|
|
@@ -349,7 +355,7 @@ const RelationshipInHtmlRow = ({
|
|
|
349
355
|
idColumn === false
|
|
350
356
|
? null
|
|
351
357
|
: /* @__PURE__ */ createElement(
|
|
352
|
-
|
|
358
|
+
Fragment,
|
|
353
359
|
null,
|
|
354
360
|
/* @__PURE__ */ createElement('th', null, localRowId),
|
|
355
361
|
/* @__PURE__ */ createElement('th', null, remoteRowId),
|
|
@@ -357,7 +363,7 @@ const RelationshipInHtmlRow = ({
|
|
|
357
363
|
objToArray(
|
|
358
364
|
cells,
|
|
359
365
|
({component: CellView2, getComponentProps}, compoundCellId) => {
|
|
360
|
-
const [tableId, cellId] = compoundCellId
|
|
366
|
+
const [tableId, cellId] = strSplit(compoundCellId, DOT, 2);
|
|
361
367
|
const rowId =
|
|
362
368
|
tableId === localTableId
|
|
363
369
|
? localRowId
|
|
@@ -694,7 +700,7 @@ const RelationshipInHtmlTable = ({
|
|
|
694
700
|
idColumn === false
|
|
695
701
|
? null
|
|
696
702
|
: /* @__PURE__ */ createElement(
|
|
697
|
-
|
|
703
|
+
Fragment,
|
|
698
704
|
null,
|
|
699
705
|
/* @__PURE__ */ createElement(
|
|
700
706
|
'th',
|
|
@@ -860,11 +866,11 @@ const SortedTablePaginator = ({
|
|
|
860
866
|
offset + limit < total,
|
|
861
867
|
);
|
|
862
868
|
return /* @__PURE__ */ createElement(
|
|
863
|
-
|
|
869
|
+
Fragment,
|
|
864
870
|
null,
|
|
865
871
|
total > limit &&
|
|
866
872
|
/* @__PURE__ */ createElement(
|
|
867
|
-
|
|
873
|
+
Fragment,
|
|
868
874
|
null,
|
|
869
875
|
/* @__PURE__ */ createElement(
|
|
870
876
|
'button',
|