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
|
@@ -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);
|
|
@@ -74,7 +81,6 @@
|
|
|
74
81
|
const objMap = (obj, cb) =>
|
|
75
82
|
objNew(objToArray(obj, (value, id) => [id, cb(value, id)]));
|
|
76
83
|
|
|
77
|
-
const {useCallback, useMemo, useState} = React;
|
|
78
84
|
const DOT = '.';
|
|
79
85
|
const EDITABLE = 'editable';
|
|
80
86
|
const LEFT_ARROW = '\u2190';
|
|
@@ -295,7 +301,7 @@
|
|
|
295
301
|
idColumn === false
|
|
296
302
|
? null
|
|
297
303
|
: /* @__PURE__ */ createElement(
|
|
298
|
-
|
|
304
|
+
Fragment,
|
|
299
305
|
null,
|
|
300
306
|
/* @__PURE__ */ createElement('th', null, localRowId),
|
|
301
307
|
/* @__PURE__ */ createElement('th', null, remoteRowId),
|
|
@@ -303,7 +309,7 @@
|
|
|
303
309
|
objToArray(
|
|
304
310
|
cells,
|
|
305
311
|
({component: CellView2, getComponentProps}, compoundCellId) => {
|
|
306
|
-
const [tableId, cellId] = compoundCellId
|
|
312
|
+
const [tableId, cellId] = strSplit(compoundCellId, DOT, 2);
|
|
307
313
|
const rowId =
|
|
308
314
|
tableId === localTableId
|
|
309
315
|
? localRowId
|
|
@@ -607,7 +613,7 @@
|
|
|
607
613
|
idColumn === false
|
|
608
614
|
? null
|
|
609
615
|
: /* @__PURE__ */ createElement(
|
|
610
|
-
|
|
616
|
+
Fragment,
|
|
611
617
|
null,
|
|
612
618
|
/* @__PURE__ */ createElement(
|
|
613
619
|
'th',
|
|
@@ -756,11 +762,11 @@
|
|
|
756
762
|
offset + limit < total,
|
|
757
763
|
);
|
|
758
764
|
return /* @__PURE__ */ createElement(
|
|
759
|
-
|
|
765
|
+
Fragment,
|
|
760
766
|
null,
|
|
761
767
|
total > limit &&
|
|
762
768
|
/* @__PURE__ */ createElement(
|
|
763
|
-
|
|
769
|
+
Fragment,
|
|
764
770
|
null,
|
|
765
771
|
/* @__PURE__ */ createElement(
|
|
766
772
|
'button',
|
|
@@ -40,6 +40,8 @@
|
|
|
40
40
|
const _VALUE = 'value';
|
|
41
41
|
const UNDEFINED = '\uFFFC';
|
|
42
42
|
const id = (key) => EMPTY_STRING + key;
|
|
43
|
+
const strSplit = (str, separator = EMPTY_STRING, limit) =>
|
|
44
|
+
str.split(separator, limit);
|
|
43
45
|
|
|
44
46
|
const GLOBAL = globalThis;
|
|
45
47
|
const WINDOW = GLOBAL.window;
|
|
@@ -65,11 +67,16 @@
|
|
|
65
67
|
const {
|
|
66
68
|
PureComponent,
|
|
67
69
|
Fragment,
|
|
70
|
+
createContext,
|
|
68
71
|
createElement,
|
|
69
|
-
useCallback
|
|
72
|
+
useCallback,
|
|
73
|
+
useContext,
|
|
74
|
+
useEffect,
|
|
70
75
|
useLayoutEffect,
|
|
76
|
+
useMemo,
|
|
71
77
|
useRef,
|
|
72
|
-
useState
|
|
78
|
+
useState,
|
|
79
|
+
useSyncExternalStore,
|
|
73
80
|
} = React;
|
|
74
81
|
const getProps = (getProps2, ...ids) =>
|
|
75
82
|
isUndefined(getProps2) ? {} : getProps2(...ids);
|
|
@@ -172,7 +179,7 @@
|
|
|
172
179
|
arrayMap(arraySort([...ids]), callback);
|
|
173
180
|
const useEditable = (uniqueId, s) => [
|
|
174
181
|
!!uiReact.useCell(STATE_TABLE, uniqueId, EDITABLE_CELL, s),
|
|
175
|
-
useCallback
|
|
182
|
+
useCallback(
|
|
176
183
|
(event) => {
|
|
177
184
|
s.setCell(
|
|
178
185
|
STATE_TABLE,
|
|
@@ -368,7 +375,6 @@
|
|
|
368
375
|
const getTypeCase = (type, stringCase, numberCase, booleanCase) =>
|
|
369
376
|
type == STRING ? stringCase : type == NUMBER ? numberCase : booleanCase;
|
|
370
377
|
|
|
371
|
-
const {useCallback, useMemo, useState} = React;
|
|
372
378
|
const DOT = '.';
|
|
373
379
|
const EDITABLE = 'editable';
|
|
374
380
|
const LEFT_ARROW = '\u2190';
|
|
@@ -589,7 +595,7 @@
|
|
|
589
595
|
idColumn === false
|
|
590
596
|
? null
|
|
591
597
|
: /* @__PURE__ */ createElement(
|
|
592
|
-
|
|
598
|
+
Fragment,
|
|
593
599
|
null,
|
|
594
600
|
/* @__PURE__ */ createElement('th', null, localRowId),
|
|
595
601
|
/* @__PURE__ */ createElement('th', null, remoteRowId),
|
|
@@ -597,7 +603,7 @@
|
|
|
597
603
|
objToArray(
|
|
598
604
|
cells,
|
|
599
605
|
({component: CellView2, getComponentProps}, compoundCellId) => {
|
|
600
|
-
const [tableId, cellId] = compoundCellId
|
|
606
|
+
const [tableId, cellId] = strSplit(compoundCellId, DOT, 2);
|
|
601
607
|
const rowId =
|
|
602
608
|
tableId === localTableId
|
|
603
609
|
? localRowId
|
|
@@ -882,7 +888,7 @@
|
|
|
882
888
|
idColumn === false
|
|
883
889
|
? null
|
|
884
890
|
: /* @__PURE__ */ createElement(
|
|
885
|
-
|
|
891
|
+
Fragment,
|
|
886
892
|
null,
|
|
887
893
|
/* @__PURE__ */ createElement(
|
|
888
894
|
'th',
|
|
@@ -1018,11 +1024,11 @@
|
|
|
1018
1024
|
offset + limit < total,
|
|
1019
1025
|
);
|
|
1020
1026
|
return /* @__PURE__ */ createElement(
|
|
1021
|
-
|
|
1027
|
+
Fragment,
|
|
1022
1028
|
null,
|
|
1023
1029
|
total > limit &&
|
|
1024
1030
|
/* @__PURE__ */ createElement(
|
|
1025
|
-
|
|
1031
|
+
Fragment,
|
|
1026
1032
|
null,
|
|
1027
1033
|
/* @__PURE__ */ createElement(
|
|
1028
1034
|
'button',
|
|
@@ -1359,7 +1365,7 @@
|
|
|
1359
1365
|
const Body = ({s}) => {
|
|
1360
1366
|
const articleRef = useRef(null);
|
|
1361
1367
|
const idleCallbackRef = useRef(0);
|
|
1362
|
-
const [scrolled, setScrolled] = useState
|
|
1368
|
+
const [scrolled, setScrolled] = useState(false);
|
|
1363
1369
|
const {scrollLeft, scrollTop} = uiReact.useValues(s);
|
|
1364
1370
|
useLayoutEffect(() => {
|
|
1365
1371
|
const article = articleRef.current;
|
|
@@ -1377,7 +1383,7 @@
|
|
|
1377
1383
|
return () => observer.disconnect();
|
|
1378
1384
|
}
|
|
1379
1385
|
}, [scrolled, scrollLeft, scrollTop]);
|
|
1380
|
-
const handleScroll = useCallback
|
|
1386
|
+
const handleScroll = useCallback(
|
|
1381
1387
|
(event) => {
|
|
1382
1388
|
const {scrollLeft: scrollLeft2, scrollTop: scrollTop2} =
|
|
1383
1389
|
event[CURRENT_TARGET];
|
|
@@ -1978,11 +1984,7 @@
|
|
|
1978
1984
|
const pairClone = (array) => [...array];
|
|
1979
1985
|
const pairIsEqual = ([entry1, entry2]) => entry1 === entry2;
|
|
1980
1986
|
|
|
1981
|
-
|
|
1982
|
-
'-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz'.split(
|
|
1983
|
-
EMPTY_STRING,
|
|
1984
|
-
);
|
|
1985
|
-
mapNew(arrayMap(ENCODE, (char, index) => [char, index]));
|
|
1987
|
+
strSplit('-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz');
|
|
1986
1988
|
|
|
1987
1989
|
const defaultSorter = (sortKey1, sortKey2) =>
|
|
1988
1990
|
(sortKey1 ?? 0) < (sortKey2 ?? 0) ? -1 : 1;
|
|
@@ -40,6 +40,8 @@
|
|
|
40
40
|
const _VALUE = 'value';
|
|
41
41
|
const UNDEFINED = '\uFFFC';
|
|
42
42
|
const id = (key) => EMPTY_STRING + key;
|
|
43
|
+
const strSplit = (str, separator = EMPTY_STRING, limit) =>
|
|
44
|
+
str.split(separator, limit);
|
|
43
45
|
|
|
44
46
|
const GLOBAL = globalThis;
|
|
45
47
|
const WINDOW = GLOBAL.window;
|
|
@@ -65,11 +67,16 @@
|
|
|
65
67
|
const {
|
|
66
68
|
PureComponent,
|
|
67
69
|
Fragment,
|
|
70
|
+
createContext,
|
|
68
71
|
createElement,
|
|
69
|
-
useCallback
|
|
72
|
+
useCallback,
|
|
73
|
+
useContext,
|
|
74
|
+
useEffect,
|
|
70
75
|
useLayoutEffect,
|
|
76
|
+
useMemo,
|
|
71
77
|
useRef,
|
|
72
|
-
useState
|
|
78
|
+
useState,
|
|
79
|
+
useSyncExternalStore,
|
|
73
80
|
} = React;
|
|
74
81
|
const getProps = (getProps2, ...ids) =>
|
|
75
82
|
isUndefined(getProps2) ? {} : getProps2(...ids);
|
|
@@ -172,7 +179,7 @@
|
|
|
172
179
|
arrayMap(arraySort([...ids]), callback);
|
|
173
180
|
const useEditable = (uniqueId, s) => [
|
|
174
181
|
!!uiReact.useCell(STATE_TABLE, uniqueId, EDITABLE_CELL, s),
|
|
175
|
-
useCallback
|
|
182
|
+
useCallback(
|
|
176
183
|
(event) => {
|
|
177
184
|
s.setCell(
|
|
178
185
|
STATE_TABLE,
|
|
@@ -368,7 +375,6 @@
|
|
|
368
375
|
const getTypeCase = (type, stringCase, numberCase, booleanCase) =>
|
|
369
376
|
type == STRING ? stringCase : type == NUMBER ? numberCase : booleanCase;
|
|
370
377
|
|
|
371
|
-
const {useCallback, useMemo, useState} = React;
|
|
372
378
|
const DOT = '.';
|
|
373
379
|
const EDITABLE = 'editable';
|
|
374
380
|
const LEFT_ARROW = '\u2190';
|
|
@@ -589,7 +595,7 @@
|
|
|
589
595
|
idColumn === false
|
|
590
596
|
? null
|
|
591
597
|
: /* @__PURE__ */ createElement(
|
|
592
|
-
|
|
598
|
+
Fragment,
|
|
593
599
|
null,
|
|
594
600
|
/* @__PURE__ */ createElement('th', null, localRowId),
|
|
595
601
|
/* @__PURE__ */ createElement('th', null, remoteRowId),
|
|
@@ -597,7 +603,7 @@
|
|
|
597
603
|
objToArray(
|
|
598
604
|
cells,
|
|
599
605
|
({component: CellView2, getComponentProps}, compoundCellId) => {
|
|
600
|
-
const [tableId, cellId] = compoundCellId
|
|
606
|
+
const [tableId, cellId] = strSplit(compoundCellId, DOT, 2);
|
|
601
607
|
const rowId =
|
|
602
608
|
tableId === localTableId
|
|
603
609
|
? localRowId
|
|
@@ -882,7 +888,7 @@
|
|
|
882
888
|
idColumn === false
|
|
883
889
|
? null
|
|
884
890
|
: /* @__PURE__ */ createElement(
|
|
885
|
-
|
|
891
|
+
Fragment,
|
|
886
892
|
null,
|
|
887
893
|
/* @__PURE__ */ createElement(
|
|
888
894
|
'th',
|
|
@@ -1018,11 +1024,11 @@
|
|
|
1018
1024
|
offset + limit < total,
|
|
1019
1025
|
);
|
|
1020
1026
|
return /* @__PURE__ */ createElement(
|
|
1021
|
-
|
|
1027
|
+
Fragment,
|
|
1022
1028
|
null,
|
|
1023
1029
|
total > limit &&
|
|
1024
1030
|
/* @__PURE__ */ createElement(
|
|
1025
|
-
|
|
1031
|
+
Fragment,
|
|
1026
1032
|
null,
|
|
1027
1033
|
/* @__PURE__ */ createElement(
|
|
1028
1034
|
'button',
|
|
@@ -1359,7 +1365,7 @@
|
|
|
1359
1365
|
const Body = ({s}) => {
|
|
1360
1366
|
const articleRef = useRef(null);
|
|
1361
1367
|
const idleCallbackRef = useRef(0);
|
|
1362
|
-
const [scrolled, setScrolled] = useState
|
|
1368
|
+
const [scrolled, setScrolled] = useState(false);
|
|
1363
1369
|
const {scrollLeft, scrollTop} = uiReact.useValues(s);
|
|
1364
1370
|
useLayoutEffect(() => {
|
|
1365
1371
|
const article = articleRef.current;
|
|
@@ -1377,7 +1383,7 @@
|
|
|
1377
1383
|
return () => observer.disconnect();
|
|
1378
1384
|
}
|
|
1379
1385
|
}, [scrolled, scrollLeft, scrollTop]);
|
|
1380
|
-
const handleScroll = useCallback
|
|
1386
|
+
const handleScroll = useCallback(
|
|
1381
1387
|
(event) => {
|
|
1382
1388
|
const {scrollLeft: scrollLeft2, scrollTop: scrollTop2} =
|
|
1383
1389
|
event[CURRENT_TARGET];
|
|
@@ -1978,11 +1984,7 @@
|
|
|
1978
1984
|
const pairClone = (array) => [...array];
|
|
1979
1985
|
const pairIsEqual = ([entry1, entry2]) => entry1 === entry2;
|
|
1980
1986
|
|
|
1981
|
-
|
|
1982
|
-
'-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz'.split(
|
|
1983
|
-
EMPTY_STRING,
|
|
1984
|
-
);
|
|
1985
|
-
mapNew(arrayMap(ENCODE, (char, index) => [char, index]));
|
|
1987
|
+
strSplit('-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz');
|
|
1986
1988
|
|
|
1987
1989
|
const defaultSorter = (sortKey1, sortKey2) =>
|
|
1988
1990
|
(sortKey1 ?? 0) < (sortKey2 ?? 0) ? -1 : 1;
|
|
@@ -24,7 +24,9 @@
|
|
|
24
24
|
const LISTENER = 'Listener';
|
|
25
25
|
const RESULT = 'Result';
|
|
26
26
|
const GET = 'get';
|
|
27
|
+
const SET = 'set';
|
|
27
28
|
const ADD = 'add';
|
|
29
|
+
const DEL = 'del';
|
|
28
30
|
const HAS = 'Has';
|
|
29
31
|
const IDS = 'Ids';
|
|
30
32
|
const TABLE = 'Table';
|
|
@@ -39,9 +41,12 @@
|
|
|
39
41
|
const VALUE = 'Value';
|
|
40
42
|
const VALUES = VALUE + 's';
|
|
41
43
|
const VALUE_IDS = VALUE + IDS;
|
|
44
|
+
const TRANSACTION = 'Transaction';
|
|
42
45
|
const id = (key) => EMPTY_STRING + key;
|
|
43
46
|
const strStartsWith = (str, prefix) => str.startsWith(prefix);
|
|
44
47
|
const strEndsWith = (str, suffix) => str.endsWith(suffix);
|
|
48
|
+
const strSplit = (str, separator = EMPTY_STRING, limit) =>
|
|
49
|
+
str.split(separator, limit);
|
|
45
50
|
|
|
46
51
|
const GLOBAL = globalThis;
|
|
47
52
|
const math = Math;
|
|
@@ -768,11 +773,12 @@
|
|
|
768
773
|
);
|
|
769
774
|
|
|
770
775
|
const MASK6 = 63;
|
|
771
|
-
const ENCODE =
|
|
772
|
-
'-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz'
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
+
const ENCODE = strSplit(
|
|
777
|
+
'-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz',
|
|
778
|
+
);
|
|
779
|
+
const DECODE = /* @__PURE__ */ mapNew(
|
|
780
|
+
/* @__PURE__ */ arrayMap(ENCODE, (char, index) => [char, index]),
|
|
781
|
+
);
|
|
776
782
|
const encode = (num) => ENCODE[num & MASK6];
|
|
777
783
|
const decode = (str, pos) => mapGet(DECODE, str[pos]) ?? 0;
|
|
778
784
|
|
|
@@ -994,7 +1000,7 @@
|
|
|
994
1000
|
return objFreeze(indexes);
|
|
995
1001
|
});
|
|
996
1002
|
|
|
997
|
-
const numericAggregators = mapNew([
|
|
1003
|
+
const numericAggregators = /* @__PURE__ */ mapNew([
|
|
998
1004
|
[
|
|
999
1005
|
AVG,
|
|
1000
1006
|
[
|
|
@@ -1830,7 +1836,7 @@
|
|
|
1830
1836
|
return objFreeze(relationships);
|
|
1831
1837
|
});
|
|
1832
1838
|
|
|
1833
|
-
const textEncoder = new GLOBAL.TextEncoder();
|
|
1839
|
+
const textEncoder = /* @__PURE__ */ new GLOBAL.TextEncoder();
|
|
1834
1840
|
const getHash = (value) => {
|
|
1835
1841
|
let hash = 2166136261;
|
|
1836
1842
|
arrayForEach(textEncoder.encode(value), (char) => {
|
|
@@ -3787,16 +3793,16 @@
|
|
|
3787
3793
|
store,
|
|
3788
3794
|
(method, name) =>
|
|
3789
3795
|
(mergeableStore[name] = // fluent methods
|
|
3790
|
-
strStartsWith(name,
|
|
3791
|
-
strStartsWith(name,
|
|
3796
|
+
strStartsWith(name, SET) ||
|
|
3797
|
+
strStartsWith(name, DEL) ||
|
|
3792
3798
|
strStartsWith(name, 'apply') ||
|
|
3793
|
-
strEndsWith(name,
|
|
3794
|
-
name == '
|
|
3799
|
+
strEndsWith(name, TRANSACTION) ||
|
|
3800
|
+
name == 'call' + LISTENER
|
|
3795
3801
|
? (...args) => {
|
|
3796
3802
|
method(...args);
|
|
3797
3803
|
return mergeableStore;
|
|
3798
3804
|
}
|
|
3799
|
-
: strStartsWith(name,
|
|
3805
|
+
: strStartsWith(name, ADD) && strEndsWith(name, LISTENER)
|
|
3800
3806
|
? (...args) => {
|
|
3801
3807
|
const listenerArg = LISTENER_ARGS[slice(name, 3, -8)] ?? 0;
|
|
3802
3808
|
const listener = args[listenerArg];
|
package/with-schemas/index.js
CHANGED
|
@@ -13,7 +13,9 @@ const MAX = 'max';
|
|
|
13
13
|
const LISTENER = 'Listener';
|
|
14
14
|
const RESULT = 'Result';
|
|
15
15
|
const GET = 'get';
|
|
16
|
+
const SET = 'set';
|
|
16
17
|
const ADD = 'add';
|
|
18
|
+
const DEL = 'del';
|
|
17
19
|
const HAS = 'Has';
|
|
18
20
|
const IDS = 'Ids';
|
|
19
21
|
const TABLE = 'Table';
|
|
@@ -28,9 +30,12 @@ const CELL_IDS = CELL + IDS;
|
|
|
28
30
|
const VALUE = 'Value';
|
|
29
31
|
const VALUES = VALUE + 's';
|
|
30
32
|
const VALUE_IDS = VALUE + IDS;
|
|
33
|
+
const TRANSACTION = 'Transaction';
|
|
31
34
|
const id = (key) => EMPTY_STRING + key;
|
|
32
35
|
const strStartsWith = (str, prefix) => str.startsWith(prefix);
|
|
33
36
|
const strEndsWith = (str, suffix) => str.endsWith(suffix);
|
|
37
|
+
const strSplit = (str, separator = EMPTY_STRING, limit) =>
|
|
38
|
+
str.split(separator, limit);
|
|
34
39
|
|
|
35
40
|
const GLOBAL = globalThis;
|
|
36
41
|
const math = Math;
|
|
@@ -750,11 +755,12 @@ const createCheckpoints = getCreateFunction(
|
|
|
750
755
|
);
|
|
751
756
|
|
|
752
757
|
const MASK6 = 63;
|
|
753
|
-
const ENCODE =
|
|
754
|
-
'-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz'
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
+
const ENCODE = strSplit(
|
|
759
|
+
'-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz',
|
|
760
|
+
);
|
|
761
|
+
const DECODE = /* @__PURE__ */ mapNew(
|
|
762
|
+
/* @__PURE__ */ arrayMap(ENCODE, (char, index) => [char, index]),
|
|
763
|
+
);
|
|
758
764
|
const encode = (num) => ENCODE[num & MASK6];
|
|
759
765
|
const decode = (str, pos) => mapGet(DECODE, str[pos]) ?? 0;
|
|
760
766
|
|
|
@@ -969,7 +975,7 @@ const createIndexes = getCreateFunction((store) => {
|
|
|
969
975
|
return objFreeze(indexes);
|
|
970
976
|
});
|
|
971
977
|
|
|
972
|
-
const numericAggregators = mapNew([
|
|
978
|
+
const numericAggregators = /* @__PURE__ */ mapNew([
|
|
973
979
|
[
|
|
974
980
|
AVG,
|
|
975
981
|
[
|
|
@@ -1790,7 +1796,7 @@ const createRelationships = getCreateFunction((store) => {
|
|
|
1790
1796
|
return objFreeze(relationships);
|
|
1791
1797
|
});
|
|
1792
1798
|
|
|
1793
|
-
const textEncoder = new GLOBAL.TextEncoder();
|
|
1799
|
+
const textEncoder = /* @__PURE__ */ new GLOBAL.TextEncoder();
|
|
1794
1800
|
const getHash = (value) => {
|
|
1795
1801
|
let hash = 2166136261;
|
|
1796
1802
|
arrayForEach(textEncoder.encode(value), (char) => {
|
|
@@ -3702,16 +3708,16 @@ const createMergeableStore = (uniqueId) => {
|
|
|
3702
3708
|
store,
|
|
3703
3709
|
(method, name) =>
|
|
3704
3710
|
(mergeableStore[name] = // fluent methods
|
|
3705
|
-
strStartsWith(name,
|
|
3706
|
-
strStartsWith(name,
|
|
3711
|
+
strStartsWith(name, SET) ||
|
|
3712
|
+
strStartsWith(name, DEL) ||
|
|
3707
3713
|
strStartsWith(name, 'apply') ||
|
|
3708
|
-
strEndsWith(name,
|
|
3709
|
-
name == '
|
|
3714
|
+
strEndsWith(name, TRANSACTION) ||
|
|
3715
|
+
name == 'call' + LISTENER
|
|
3710
3716
|
? (...args) => {
|
|
3711
3717
|
method(...args);
|
|
3712
3718
|
return mergeableStore;
|
|
3713
3719
|
}
|
|
3714
|
-
: strStartsWith(name,
|
|
3720
|
+
: strStartsWith(name, ADD) && strEndsWith(name, LISTENER)
|
|
3715
3721
|
? (...args) => {
|
|
3716
3722
|
const listenerArg = LISTENER_ARGS[slice(name, 3, -8)] ?? 0;
|
|
3717
3723
|
const listener = args[listenerArg];
|