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
|
@@ -17,7 +17,9 @@
|
|
|
17
17
|
const LISTENER = 'Listener';
|
|
18
18
|
const RESULT = 'Result';
|
|
19
19
|
const GET = 'get';
|
|
20
|
+
const SET = 'set';
|
|
20
21
|
const ADD = 'add';
|
|
22
|
+
const DEL = 'del';
|
|
21
23
|
const HAS = 'Has';
|
|
22
24
|
const _HAS = 'has';
|
|
23
25
|
const IDS = 'Ids';
|
|
@@ -33,7 +35,19 @@
|
|
|
33
35
|
const VALUE = 'Value';
|
|
34
36
|
const VALUES = VALUE + 's';
|
|
35
37
|
const VALUE_IDS = VALUE + IDS;
|
|
38
|
+
const TRANSACTION = 'Transaction';
|
|
39
|
+
const PARTIAL = 'Partial';
|
|
40
|
+
const FINISH = 'Finish';
|
|
36
41
|
const STATUS = 'Status';
|
|
42
|
+
const METRIC = 'Metric';
|
|
43
|
+
const INDEX = 'Index';
|
|
44
|
+
const SLICE = 'Slice';
|
|
45
|
+
const RELATIONSHIP = 'Relationship';
|
|
46
|
+
const REMOTE_ROW_ID = 'Remote' + ROW + 'Id';
|
|
47
|
+
const LOCAL = 'Local';
|
|
48
|
+
const LINKED = 'Linked';
|
|
49
|
+
const QUERY = 'Query';
|
|
50
|
+
const CHECKPOINT = 'Checkpoint';
|
|
37
51
|
|
|
38
52
|
const GLOBAL = globalThis;
|
|
39
53
|
const isUndefined = (thing) => thing == void 0;
|
|
@@ -60,6 +74,38 @@
|
|
|
60
74
|
const arrayFilter = (array, cb) => array.filter(cb);
|
|
61
75
|
const arrayWith = (array, index, value) => array.with(index, value);
|
|
62
76
|
|
|
77
|
+
const {
|
|
78
|
+
PureComponent,
|
|
79
|
+
Fragment,
|
|
80
|
+
createContext,
|
|
81
|
+
createElement,
|
|
82
|
+
useCallback,
|
|
83
|
+
useContext,
|
|
84
|
+
useEffect,
|
|
85
|
+
useLayoutEffect,
|
|
86
|
+
useMemo,
|
|
87
|
+
useRef,
|
|
88
|
+
useState,
|
|
89
|
+
useSyncExternalStore,
|
|
90
|
+
} = React;
|
|
91
|
+
const getProps = (getProps2, ...ids) =>
|
|
92
|
+
isUndefined(getProps2) ? {} : getProps2(...ids);
|
|
93
|
+
const getRelationshipsStoreTableIds = (relationships, relationshipId) => [
|
|
94
|
+
relationships,
|
|
95
|
+
relationships == null ? void 0 : relationships.getStore(),
|
|
96
|
+
relationships == null
|
|
97
|
+
? void 0
|
|
98
|
+
: relationships.getLocalTableId(relationshipId),
|
|
99
|
+
relationships == null
|
|
100
|
+
? void 0
|
|
101
|
+
: relationships.getRemoteTableId(relationshipId),
|
|
102
|
+
];
|
|
103
|
+
const getIndexStoreTableId = (indexes, indexId) => [
|
|
104
|
+
indexes,
|
|
105
|
+
indexes == null ? void 0 : indexes.getStore(),
|
|
106
|
+
indexes == null ? void 0 : indexes.getTableId(indexId),
|
|
107
|
+
];
|
|
108
|
+
|
|
63
109
|
const object = Object;
|
|
64
110
|
const getPrototypeOf = (obj) => object.getPrototypeOf(obj);
|
|
65
111
|
const objEntries = object.entries;
|
|
@@ -102,28 +148,12 @@
|
|
|
102
148
|
return obj[id];
|
|
103
149
|
};
|
|
104
150
|
|
|
105
|
-
const {
|
|
106
|
-
createContext,
|
|
107
|
-
useContext: useContext$1,
|
|
108
|
-
useEffect: useEffect$1,
|
|
109
|
-
} = React;
|
|
110
|
-
var Offsets = /* @__PURE__ */ ((Offsets2) => {
|
|
111
|
-
Offsets2[(Offsets2['Store'] = 0)] = 'Store';
|
|
112
|
-
Offsets2[(Offsets2['Metrics'] = 1)] = 'Metrics';
|
|
113
|
-
Offsets2[(Offsets2['Indexes'] = 2)] = 'Indexes';
|
|
114
|
-
Offsets2[(Offsets2['Relationships'] = 3)] = 'Relationships';
|
|
115
|
-
Offsets2[(Offsets2['Queries'] = 4)] = 'Queries';
|
|
116
|
-
Offsets2[(Offsets2['Checkpoints'] = 5)] = 'Checkpoints';
|
|
117
|
-
Offsets2[(Offsets2['Persister'] = 6)] = 'Persister';
|
|
118
|
-
Offsets2[(Offsets2['Synchronizer'] = 7)] = 'Synchronizer';
|
|
119
|
-
return Offsets2;
|
|
120
|
-
})(Offsets || {});
|
|
121
151
|
const Context = objEnsure(GLOBAL, TINYBASE + '_uirc', () =>
|
|
122
152
|
createContext([]),
|
|
123
153
|
);
|
|
124
154
|
const useThing = (id, offset) => {
|
|
125
155
|
var _a;
|
|
126
|
-
const contextValue = useContext
|
|
156
|
+
const contextValue = useContext(Context);
|
|
127
157
|
return isUndefined(id)
|
|
128
158
|
? contextValue[offset * 2]
|
|
129
159
|
: isString(id)
|
|
@@ -137,9 +167,8 @@
|
|
|
137
167
|
: thingOrThingId;
|
|
138
168
|
};
|
|
139
169
|
const useProvideThing = (thingId, thing, offset) => {
|
|
140
|
-
const {16: addExtraThingById, 17: delExtraThingById} =
|
|
141
|
-
|
|
142
|
-
useEffect$1(() => {
|
|
170
|
+
const {16: addExtraThingById, 17: delExtraThingById} = useContext(Context);
|
|
171
|
+
useEffect(() => {
|
|
143
172
|
addExtraThingById == null
|
|
144
173
|
? void 0
|
|
145
174
|
: addExtraThingById(offset, thingId, thing);
|
|
@@ -149,9 +178,7 @@
|
|
|
149
178
|
};
|
|
150
179
|
const useThingIds = (offset) => {
|
|
151
180
|
var _a;
|
|
152
|
-
return objIds(
|
|
153
|
-
(_a = useContext$1(Context)[offset * 2 + 1]) != null ? _a : {},
|
|
154
|
-
);
|
|
181
|
+
return objIds((_a = useContext(Context)[offset * 2 + 1]) != null ? _a : {});
|
|
155
182
|
};
|
|
156
183
|
const useStoreIds = () => useThingIds(0 /* Store */);
|
|
157
184
|
const useStore = (id) => useThing(id, 0 /* Store */);
|
|
@@ -204,11 +231,6 @@
|
|
|
204
231
|
const useProvideSynchronizer = (persisterId, persister) =>
|
|
205
232
|
useProvideThing(persisterId, persister, 7 /* Synchronizer */);
|
|
206
233
|
|
|
207
|
-
const lower = (str) => str.toLowerCase();
|
|
208
|
-
lower(LISTENER);
|
|
209
|
-
const TRANSACTION = 'Transaction';
|
|
210
|
-
lower(TRANSACTION);
|
|
211
|
-
|
|
212
234
|
var __async = (__this, __arguments, generator) => {
|
|
213
235
|
return new Promise((resolve, reject) => {
|
|
214
236
|
var fulfilled = (value) => {
|
|
@@ -232,15 +254,6 @@
|
|
|
232
254
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
233
255
|
});
|
|
234
256
|
};
|
|
235
|
-
const {
|
|
236
|
-
useCallback: useCallback$2,
|
|
237
|
-
useEffect,
|
|
238
|
-
useMemo: useMemo$1,
|
|
239
|
-
useLayoutEffect: useLayoutEffect$1,
|
|
240
|
-
useRef: useRef$1,
|
|
241
|
-
useState: useState$2,
|
|
242
|
-
useSyncExternalStore,
|
|
243
|
-
} = React;
|
|
244
257
|
const EMPTY_ARRAY = [];
|
|
245
258
|
const DEFAULTS = [
|
|
246
259
|
{},
|
|
@@ -263,8 +276,8 @@
|
|
|
263
276
|
];
|
|
264
277
|
const isEqual = (thing1, thing2) => thing1 === thing2;
|
|
265
278
|
const useCreate = (store, create, createDeps = EMPTY_ARRAY) => {
|
|
266
|
-
const [, rerender] = useState
|
|
267
|
-
const [thing, setThing] = useState
|
|
279
|
+
const [, rerender] = useState();
|
|
280
|
+
const [thing, setThing] = useState();
|
|
268
281
|
useEffect(
|
|
269
282
|
() => {
|
|
270
283
|
const newThing = store ? create(store) : void 0;
|
|
@@ -286,8 +299,8 @@
|
|
|
286
299
|
return () => (thing == null ? void 0 : thing.delListener(listenerId));
|
|
287
300
|
};
|
|
288
301
|
const useListenable = (listenable, thing, returnType, args = EMPTY_ARRAY) => {
|
|
289
|
-
const lastResult = useRef
|
|
290
|
-
const getResult = useCallback
|
|
302
|
+
const lastResult = useRef(DEFAULTS[returnType]);
|
|
303
|
+
const getResult = useCallback(
|
|
291
304
|
() => {
|
|
292
305
|
var _a, _b, _c;
|
|
293
306
|
const nextResult =
|
|
@@ -312,7 +325,7 @@
|
|
|
312
325
|
/* eslint-disable-next-line react-hooks/exhaustive-deps */
|
|
313
326
|
[thing, returnType, listenable, ...args],
|
|
314
327
|
);
|
|
315
|
-
const subscribe = useCallback
|
|
328
|
+
const subscribe = useCallback(
|
|
316
329
|
(listener) =>
|
|
317
330
|
addAndDelListener(
|
|
318
331
|
thing,
|
|
@@ -333,7 +346,7 @@
|
|
|
333
346
|
preArgs = EMPTY_ARRAY,
|
|
334
347
|
...postArgs
|
|
335
348
|
) =>
|
|
336
|
-
useLayoutEffect
|
|
349
|
+
useLayoutEffect(
|
|
337
350
|
() =>
|
|
338
351
|
addAndDelListener(thing, listenable, ...preArgs, listener, ...postArgs),
|
|
339
352
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -349,12 +362,12 @@
|
|
|
349
362
|
...args
|
|
350
363
|
) => {
|
|
351
364
|
const store = useStoreOrStoreById(storeOrStoreId);
|
|
352
|
-
return useCallback
|
|
365
|
+
return useCallback(
|
|
353
366
|
(parameter) =>
|
|
354
367
|
ifNotUndefined(store, (store2) =>
|
|
355
368
|
ifNotUndefined(get(parameter, store2), (thing) =>
|
|
356
369
|
then(
|
|
357
|
-
store2[
|
|
370
|
+
store2[SET + settable](
|
|
358
371
|
...argsOrGetArgs(args, store2, parameter),
|
|
359
372
|
thing,
|
|
360
373
|
),
|
|
@@ -378,14 +391,12 @@
|
|
|
378
391
|
...args
|
|
379
392
|
) => {
|
|
380
393
|
const store = useStoreOrStoreById(storeOrStoreId);
|
|
381
|
-
return useCallback
|
|
394
|
+
return useCallback(
|
|
382
395
|
(parameter) =>
|
|
383
396
|
then(
|
|
384
397
|
store == null
|
|
385
398
|
? void 0
|
|
386
|
-
: store[
|
|
387
|
-
...argsOrGetArgs(args, store, parameter),
|
|
388
|
-
),
|
|
399
|
+
: store[DEL + deletable](...argsOrGetArgs(args, store, parameter)),
|
|
389
400
|
),
|
|
390
401
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
391
402
|
[store, deletable, ...thenDeps, ...nonFunctionDeps(args)],
|
|
@@ -395,16 +406,16 @@
|
|
|
395
406
|
const checkpoints = useCheckpointsOrCheckpointsById(
|
|
396
407
|
checkpointsOrCheckpointsId,
|
|
397
408
|
);
|
|
398
|
-
return useCallback
|
|
409
|
+
return useCallback(
|
|
399
410
|
() => (checkpoints == null ? void 0 : checkpoints[action](arg)),
|
|
400
411
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
401
412
|
[checkpoints, action, arg],
|
|
402
413
|
);
|
|
403
414
|
};
|
|
404
415
|
const useCreateStore = (create, createDeps = EMPTY_ARRAY) =>
|
|
405
|
-
useMemo
|
|
416
|
+
useMemo(create, createDeps);
|
|
406
417
|
const useCreateMergeableStore = (create, createDeps = EMPTY_ARRAY) =>
|
|
407
|
-
useMemo
|
|
418
|
+
useMemo(create, createDeps);
|
|
408
419
|
const useHasTables = (storeOrStoreId) =>
|
|
409
420
|
useListenable(
|
|
410
421
|
TABLES,
|
|
@@ -584,7 +595,7 @@
|
|
|
584
595
|
reuseRowIds = true,
|
|
585
596
|
) => {
|
|
586
597
|
const store = useStoreOrStoreById(storeOrStoreId);
|
|
587
|
-
return useCallback
|
|
598
|
+
return useCallback(
|
|
588
599
|
(parameter) =>
|
|
589
600
|
ifNotUndefined(store, (store2) =>
|
|
590
601
|
ifNotUndefined(getRow(parameter, store2), (row) =>
|
|
@@ -614,7 +625,7 @@
|
|
|
614
625
|
) =>
|
|
615
626
|
useSetCallback(
|
|
616
627
|
storeOrStoreId,
|
|
617
|
-
|
|
628
|
+
PARTIAL + ROW,
|
|
618
629
|
getPartialRow,
|
|
619
630
|
getPartialRowDeps,
|
|
620
631
|
then,
|
|
@@ -667,7 +678,7 @@
|
|
|
667
678
|
) =>
|
|
668
679
|
useSetCallback(
|
|
669
680
|
storeOrStoreId,
|
|
670
|
-
|
|
681
|
+
PARTIAL + VALUES,
|
|
671
682
|
getPartialValues,
|
|
672
683
|
getPartialValuesDeps,
|
|
673
684
|
then,
|
|
@@ -1032,7 +1043,7 @@
|
|
|
1032
1043
|
storeOrStoreId,
|
|
1033
1044
|
) =>
|
|
1034
1045
|
useListener(
|
|
1035
|
-
'
|
|
1046
|
+
'Will' + FINISH + TRANSACTION,
|
|
1036
1047
|
useStoreOrStoreById(storeOrStoreId),
|
|
1037
1048
|
listener,
|
|
1038
1049
|
listenerDeps,
|
|
@@ -1043,7 +1054,7 @@
|
|
|
1043
1054
|
storeOrStoreId,
|
|
1044
1055
|
) =>
|
|
1045
1056
|
useListener(
|
|
1046
|
-
'
|
|
1057
|
+
'Did' + FINISH + TRANSACTION,
|
|
1047
1058
|
useStoreOrStoreById(storeOrStoreId),
|
|
1048
1059
|
listener,
|
|
1049
1060
|
listenerDeps,
|
|
@@ -1052,13 +1063,13 @@
|
|
|
1052
1063
|
useCreate(store, create, createDeps);
|
|
1053
1064
|
const useMetricIds = (metricsOrMetricsId) =>
|
|
1054
1065
|
useListenable(
|
|
1055
|
-
|
|
1066
|
+
METRIC + IDS,
|
|
1056
1067
|
useMetricsOrMetricsById(metricsOrMetricsId),
|
|
1057
1068
|
1 /* Array */,
|
|
1058
1069
|
);
|
|
1059
1070
|
const useMetric = (metricId, metricsOrMetricsId) =>
|
|
1060
1071
|
useListenable(
|
|
1061
|
-
|
|
1072
|
+
METRIC,
|
|
1062
1073
|
useMetricsOrMetricsById(metricsOrMetricsId),
|
|
1063
1074
|
3 /* CellOrValue */,
|
|
1064
1075
|
[metricId],
|
|
@@ -1070,7 +1081,7 @@
|
|
|
1070
1081
|
metricsOrMetricsId,
|
|
1071
1082
|
) =>
|
|
1072
1083
|
useListener(
|
|
1073
|
-
|
|
1084
|
+
METRIC,
|
|
1074
1085
|
useMetricsOrMetricsById(metricsOrMetricsId),
|
|
1075
1086
|
listener,
|
|
1076
1087
|
listenerDeps,
|
|
@@ -1080,20 +1091,20 @@
|
|
|
1080
1091
|
useCreate(store, create, createDeps);
|
|
1081
1092
|
const useSliceIds = (indexId, indexesOrIndexesId) =>
|
|
1082
1093
|
useListenable(
|
|
1083
|
-
|
|
1094
|
+
SLICE + IDS,
|
|
1084
1095
|
useIndexesOrIndexesById(indexesOrIndexesId),
|
|
1085
1096
|
1 /* Array */,
|
|
1086
1097
|
[indexId],
|
|
1087
1098
|
);
|
|
1088
1099
|
const useIndexIds = (indexesOrIndexesId) =>
|
|
1089
1100
|
useListenable(
|
|
1090
|
-
|
|
1101
|
+
INDEX + IDS,
|
|
1091
1102
|
useIndexesOrIndexesById(indexesOrIndexesId),
|
|
1092
1103
|
1 /* Array */,
|
|
1093
1104
|
);
|
|
1094
1105
|
const useSliceRowIds = (indexId, sliceId, indexesOrIndexesId) =>
|
|
1095
1106
|
useListenable(
|
|
1096
|
-
|
|
1107
|
+
SLICE + ROW_IDS,
|
|
1097
1108
|
useIndexesOrIndexesById(indexesOrIndexesId),
|
|
1098
1109
|
1 /* Array */,
|
|
1099
1110
|
[indexId, sliceId],
|
|
@@ -1105,7 +1116,7 @@
|
|
|
1105
1116
|
indexesOrIndexesId,
|
|
1106
1117
|
) =>
|
|
1107
1118
|
useListener(
|
|
1108
|
-
|
|
1119
|
+
SLICE + IDS,
|
|
1109
1120
|
useIndexesOrIndexesById(indexesOrIndexesId),
|
|
1110
1121
|
listener,
|
|
1111
1122
|
listenerDeps,
|
|
@@ -1119,7 +1130,7 @@
|
|
|
1119
1130
|
indexesOrIndexesId,
|
|
1120
1131
|
) =>
|
|
1121
1132
|
useListener(
|
|
1122
|
-
|
|
1133
|
+
SLICE + ROW_IDS,
|
|
1123
1134
|
useIndexesOrIndexesById(indexesOrIndexesId),
|
|
1124
1135
|
listener,
|
|
1125
1136
|
listenerDeps,
|
|
@@ -1129,7 +1140,7 @@
|
|
|
1129
1140
|
useCreate(store, create, createDeps);
|
|
1130
1141
|
const useRelationshipIds = (relationshipsOrRelationshipsId) =>
|
|
1131
1142
|
useListenable(
|
|
1132
|
-
|
|
1143
|
+
RELATIONSHIP + IDS,
|
|
1133
1144
|
useRelationshipsOrRelationshipsById(relationshipsOrRelationshipsId),
|
|
1134
1145
|
1 /* Array */,
|
|
1135
1146
|
);
|
|
@@ -1139,7 +1150,7 @@
|
|
|
1139
1150
|
relationshipsOrRelationshipsId,
|
|
1140
1151
|
) =>
|
|
1141
1152
|
useListenable(
|
|
1142
|
-
|
|
1153
|
+
REMOTE_ROW_ID,
|
|
1143
1154
|
useRelationshipsOrRelationshipsById(relationshipsOrRelationshipsId),
|
|
1144
1155
|
3 /* CellOrValue */,
|
|
1145
1156
|
[relationshipId, localRowId],
|
|
@@ -1150,7 +1161,7 @@
|
|
|
1150
1161
|
relationshipsOrRelationshipsId,
|
|
1151
1162
|
) =>
|
|
1152
1163
|
useListenable(
|
|
1153
|
-
|
|
1164
|
+
LOCAL + ROW_IDS,
|
|
1154
1165
|
useRelationshipsOrRelationshipsById(relationshipsOrRelationshipsId),
|
|
1155
1166
|
1 /* Array */,
|
|
1156
1167
|
[relationshipId, remoteRowId],
|
|
@@ -1161,7 +1172,7 @@
|
|
|
1161
1172
|
relationshipsOrRelationshipsId,
|
|
1162
1173
|
) =>
|
|
1163
1174
|
useListenable(
|
|
1164
|
-
|
|
1175
|
+
LINKED + ROW_IDS,
|
|
1165
1176
|
useRelationshipsOrRelationshipsById(relationshipsOrRelationshipsId),
|
|
1166
1177
|
1 /* Array */,
|
|
1167
1178
|
[relationshipId, firstRowId],
|
|
@@ -1174,7 +1185,7 @@
|
|
|
1174
1185
|
relationshipsOrRelationshipsId,
|
|
1175
1186
|
) =>
|
|
1176
1187
|
useListener(
|
|
1177
|
-
|
|
1188
|
+
REMOTE_ROW_ID,
|
|
1178
1189
|
useRelationshipsOrRelationshipsById(relationshipsOrRelationshipsId),
|
|
1179
1190
|
listener,
|
|
1180
1191
|
listenerDeps,
|
|
@@ -1188,7 +1199,7 @@
|
|
|
1188
1199
|
relationshipsOrRelationshipsId,
|
|
1189
1200
|
) =>
|
|
1190
1201
|
useListener(
|
|
1191
|
-
|
|
1202
|
+
LOCAL + ROW_IDS,
|
|
1192
1203
|
useRelationshipsOrRelationshipsById(relationshipsOrRelationshipsId),
|
|
1193
1204
|
listener,
|
|
1194
1205
|
listenerDeps,
|
|
@@ -1202,7 +1213,7 @@
|
|
|
1202
1213
|
relationshipsOrRelationshipsId,
|
|
1203
1214
|
) =>
|
|
1204
1215
|
useListener(
|
|
1205
|
-
|
|
1216
|
+
LINKED + ROW_IDS,
|
|
1206
1217
|
useRelationshipsOrRelationshipsById(relationshipsOrRelationshipsId),
|
|
1207
1218
|
listener,
|
|
1208
1219
|
listenerDeps,
|
|
@@ -1212,7 +1223,7 @@
|
|
|
1212
1223
|
useCreate(store, create, createDeps);
|
|
1213
1224
|
const useQueryIds = (queriesOrQueriesId) =>
|
|
1214
1225
|
useListenable(
|
|
1215
|
-
|
|
1226
|
+
QUERY + IDS,
|
|
1216
1227
|
useQueriesOrQueriesById(queriesOrQueriesId),
|
|
1217
1228
|
1 /* Array */,
|
|
1218
1229
|
);
|
|
@@ -1395,13 +1406,13 @@
|
|
|
1395
1406
|
useCreate(store, create, createDeps);
|
|
1396
1407
|
const useCheckpointIds = (checkpointsOrCheckpointsId) =>
|
|
1397
1408
|
useListenable(
|
|
1398
|
-
|
|
1409
|
+
CHECKPOINT + IDS,
|
|
1399
1410
|
useCheckpointsOrCheckpointsById(checkpointsOrCheckpointsId),
|
|
1400
1411
|
2 /* Checkpoints */,
|
|
1401
1412
|
);
|
|
1402
1413
|
const useCheckpoint = (checkpointId, checkpointsOrCheckpointsId) =>
|
|
1403
1414
|
useListenable(
|
|
1404
|
-
|
|
1415
|
+
CHECKPOINT,
|
|
1405
1416
|
useCheckpointsOrCheckpointsById(checkpointsOrCheckpointsId),
|
|
1406
1417
|
3 /* CellOrValue */,
|
|
1407
1418
|
[checkpointId],
|
|
@@ -1416,7 +1427,7 @@
|
|
|
1416
1427
|
const checkpoints = useCheckpointsOrCheckpointsById(
|
|
1417
1428
|
checkpointsOrCheckpointsId,
|
|
1418
1429
|
);
|
|
1419
|
-
return useCallback
|
|
1430
|
+
return useCallback(
|
|
1420
1431
|
(parameter) =>
|
|
1421
1432
|
ifNotUndefined(checkpoints, (checkpoints2) => {
|
|
1422
1433
|
const label = getCheckpoint(parameter);
|
|
@@ -1440,7 +1451,7 @@
|
|
|
1440
1451
|
const checkpoints = useCheckpointsOrCheckpointsById(
|
|
1441
1452
|
checkpointsOrCheckpointsId,
|
|
1442
1453
|
);
|
|
1443
|
-
return useCallback
|
|
1454
|
+
return useCallback(
|
|
1444
1455
|
(parameter) =>
|
|
1445
1456
|
ifNotUndefined(checkpoints, (checkpoints2) =>
|
|
1446
1457
|
ifNotUndefined(getCheckpointId(parameter), (checkpointId) =>
|
|
@@ -1491,7 +1502,7 @@
|
|
|
1491
1502
|
checkpointsOrCheckpointsId,
|
|
1492
1503
|
) =>
|
|
1493
1504
|
useListener(
|
|
1494
|
-
|
|
1505
|
+
CHECKPOINT + IDS,
|
|
1495
1506
|
useCheckpointsOrCheckpointsById(checkpointsOrCheckpointsId),
|
|
1496
1507
|
listener,
|
|
1497
1508
|
listenerDeps,
|
|
@@ -1503,7 +1514,7 @@
|
|
|
1503
1514
|
checkpointsOrCheckpointsId,
|
|
1504
1515
|
) =>
|
|
1505
1516
|
useListener(
|
|
1506
|
-
|
|
1517
|
+
CHECKPOINT,
|
|
1507
1518
|
useCheckpointsOrCheckpointsById(checkpointsOrCheckpointsId),
|
|
1508
1519
|
listener,
|
|
1509
1520
|
listenerDeps,
|
|
@@ -1518,8 +1529,8 @@
|
|
|
1518
1529
|
destroy,
|
|
1519
1530
|
destroyDeps = EMPTY_ARRAY,
|
|
1520
1531
|
) => {
|
|
1521
|
-
const [, rerender] = useState
|
|
1522
|
-
const [persister, setPersister] = useState
|
|
1532
|
+
const [, rerender] = useState();
|
|
1533
|
+
const [persister, setPersister] = useState();
|
|
1523
1534
|
useEffect(
|
|
1524
1535
|
() => {
|
|
1525
1536
|
(() =>
|
|
@@ -1576,7 +1587,7 @@
|
|
|
1576
1587
|
destroy,
|
|
1577
1588
|
destroyDeps = EMPTY_ARRAY,
|
|
1578
1589
|
) => {
|
|
1579
|
-
const [synchronizer, setSynchronizer] = useState
|
|
1590
|
+
const [synchronizer, setSynchronizer] = useState();
|
|
1580
1591
|
useEffect(
|
|
1581
1592
|
() => {
|
|
1582
1593
|
(() =>
|
|
@@ -1620,33 +1631,6 @@
|
|
|
1620
1631
|
[],
|
|
1621
1632
|
);
|
|
1622
1633
|
|
|
1623
|
-
const {
|
|
1624
|
-
PureComponent,
|
|
1625
|
-
Fragment,
|
|
1626
|
-
createElement,
|
|
1627
|
-
useCallback: useCallback$1,
|
|
1628
|
-
useLayoutEffect,
|
|
1629
|
-
useRef,
|
|
1630
|
-
useState: useState$1,
|
|
1631
|
-
} = React;
|
|
1632
|
-
const getProps = (getProps2, ...ids) =>
|
|
1633
|
-
isUndefined(getProps2) ? {} : getProps2(...ids);
|
|
1634
|
-
const getRelationshipsStoreTableIds = (relationships, relationshipId) => [
|
|
1635
|
-
relationships,
|
|
1636
|
-
relationships == null ? void 0 : relationships.getStore(),
|
|
1637
|
-
relationships == null
|
|
1638
|
-
? void 0
|
|
1639
|
-
: relationships.getLocalTableId(relationshipId),
|
|
1640
|
-
relationships == null
|
|
1641
|
-
? void 0
|
|
1642
|
-
: relationships.getRemoteTableId(relationshipId),
|
|
1643
|
-
];
|
|
1644
|
-
const getIndexStoreTableId = (indexes, indexId) => [
|
|
1645
|
-
indexes,
|
|
1646
|
-
indexes == null ? void 0 : indexes.getStore(),
|
|
1647
|
-
indexes == null ? void 0 : indexes.getTableId(indexId),
|
|
1648
|
-
];
|
|
1649
|
-
|
|
1650
1634
|
var __defProp = Object.defineProperty;
|
|
1651
1635
|
var __defProps = Object.defineProperties;
|
|
1652
1636
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
@@ -1684,7 +1668,6 @@
|
|
|
1684
1668
|
}
|
|
1685
1669
|
return target;
|
|
1686
1670
|
};
|
|
1687
|
-
const {useCallback, useContext, useMemo, useState} = React;
|
|
1688
1671
|
const mergeParentThings = (
|
|
1689
1672
|
offset,
|
|
1690
1673
|
parentValue,
|
|
@@ -1897,56 +1880,56 @@
|
|
|
1897
1880
|
value: useMemo(
|
|
1898
1881
|
() => [
|
|
1899
1882
|
...mergeParentThings(
|
|
1900
|
-
|
|
1883
|
+
0 /* Store */,
|
|
1901
1884
|
parentValue,
|
|
1902
1885
|
store,
|
|
1903
1886
|
storesById,
|
|
1904
1887
|
extraThingsById,
|
|
1905
1888
|
),
|
|
1906
1889
|
...mergeParentThings(
|
|
1907
|
-
|
|
1890
|
+
1 /* Metrics */,
|
|
1908
1891
|
parentValue,
|
|
1909
1892
|
metrics,
|
|
1910
1893
|
metricsById,
|
|
1911
1894
|
extraThingsById,
|
|
1912
1895
|
),
|
|
1913
1896
|
...mergeParentThings(
|
|
1914
|
-
|
|
1897
|
+
2 /* Indexes */,
|
|
1915
1898
|
parentValue,
|
|
1916
1899
|
indexes,
|
|
1917
1900
|
indexesById,
|
|
1918
1901
|
extraThingsById,
|
|
1919
1902
|
),
|
|
1920
1903
|
...mergeParentThings(
|
|
1921
|
-
|
|
1904
|
+
3 /* Relationships */,
|
|
1922
1905
|
parentValue,
|
|
1923
1906
|
relationships,
|
|
1924
1907
|
relationshipsById,
|
|
1925
1908
|
extraThingsById,
|
|
1926
1909
|
),
|
|
1927
1910
|
...mergeParentThings(
|
|
1928
|
-
|
|
1911
|
+
4 /* Queries */,
|
|
1929
1912
|
parentValue,
|
|
1930
1913
|
queries,
|
|
1931
1914
|
queriesById,
|
|
1932
1915
|
extraThingsById,
|
|
1933
1916
|
),
|
|
1934
1917
|
...mergeParentThings(
|
|
1935
|
-
|
|
1918
|
+
5 /* Checkpoints */,
|
|
1936
1919
|
parentValue,
|
|
1937
1920
|
checkpoints,
|
|
1938
1921
|
checkpointsById,
|
|
1939
1922
|
extraThingsById,
|
|
1940
1923
|
),
|
|
1941
1924
|
...mergeParentThings(
|
|
1942
|
-
|
|
1925
|
+
6 /* Persister */,
|
|
1943
1926
|
parentValue,
|
|
1944
1927
|
persister,
|
|
1945
1928
|
persistersById,
|
|
1946
1929
|
extraThingsById,
|
|
1947
1930
|
),
|
|
1948
1931
|
...mergeParentThings(
|
|
1949
|
-
|
|
1932
|
+
7 /* Synchronizer */,
|
|
1950
1933
|
parentValue,
|
|
1951
1934
|
synchronizer,
|
|
1952
1935
|
synchronizersById,
|
|
@@ -22,6 +22,8 @@
|
|
|
22
22
|
const VALUE = 'Value';
|
|
23
23
|
const CURRENT_TARGET = 'currentTarget';
|
|
24
24
|
const _VALUE = 'value';
|
|
25
|
+
const strSplit = (str, separator = EMPTY_STRING, limit) =>
|
|
26
|
+
str.split(separator, limit);
|
|
25
27
|
|
|
26
28
|
const math = Math;
|
|
27
29
|
const mathMin = math.min;
|
|
@@ -44,11 +46,16 @@
|
|
|
44
46
|
const {
|
|
45
47
|
PureComponent,
|
|
46
48
|
Fragment,
|
|
49
|
+
createContext,
|
|
47
50
|
createElement,
|
|
48
|
-
useCallback
|
|
51
|
+
useCallback,
|
|
52
|
+
useContext,
|
|
53
|
+
useEffect,
|
|
49
54
|
useLayoutEffect,
|
|
55
|
+
useMemo,
|
|
50
56
|
useRef,
|
|
51
|
-
useState
|
|
57
|
+
useState,
|
|
58
|
+
useSyncExternalStore,
|
|
52
59
|
} = React;
|
|
53
60
|
const getProps = (getProps2, ...ids) =>
|
|
54
61
|
isUndefined(getProps2) ? {} : getProps2(...ids);
|
|
@@ -115,7 +122,6 @@
|
|
|
115
122
|
}
|
|
116
123
|
return target;
|
|
117
124
|
};
|
|
118
|
-
const {useCallback, useMemo, useState} = React;
|
|
119
125
|
const DOT = '.';
|
|
120
126
|
const EDITABLE = 'editable';
|
|
121
127
|
const LEFT_ARROW = '\u2190';
|
|
@@ -350,7 +356,7 @@
|
|
|
350
356
|
idColumn === false
|
|
351
357
|
? null
|
|
352
358
|
: /* @__PURE__ */ createElement(
|
|
353
|
-
|
|
359
|
+
Fragment,
|
|
354
360
|
null,
|
|
355
361
|
/* @__PURE__ */ createElement('th', null, localRowId),
|
|
356
362
|
/* @__PURE__ */ createElement('th', null, remoteRowId),
|
|
@@ -358,7 +364,7 @@
|
|
|
358
364
|
objToArray(
|
|
359
365
|
cells,
|
|
360
366
|
({component: CellView2, getComponentProps}, compoundCellId) => {
|
|
361
|
-
const [tableId, cellId] = compoundCellId
|
|
367
|
+
const [tableId, cellId] = strSplit(compoundCellId, DOT, 2);
|
|
362
368
|
const rowId =
|
|
363
369
|
tableId === localTableId
|
|
364
370
|
? localRowId
|
|
@@ -695,7 +701,7 @@
|
|
|
695
701
|
idColumn === false
|
|
696
702
|
? null
|
|
697
703
|
: /* @__PURE__ */ createElement(
|
|
698
|
-
|
|
704
|
+
Fragment,
|
|
699
705
|
null,
|
|
700
706
|
/* @__PURE__ */ createElement(
|
|
701
707
|
'th',
|
|
@@ -875,11 +881,11 @@
|
|
|
875
881
|
offset + limit < total,
|
|
876
882
|
);
|
|
877
883
|
return /* @__PURE__ */ createElement(
|
|
878
|
-
|
|
884
|
+
Fragment,
|
|
879
885
|
null,
|
|
880
886
|
total > limit &&
|
|
881
887
|
/* @__PURE__ */ createElement(
|
|
882
|
-
|
|
888
|
+
Fragment,
|
|
883
889
|
null,
|
|
884
890
|
/* @__PURE__ */ createElement(
|
|
885
891
|
'button',
|