atom.io 0.14.0 → 0.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/data/dist/index.cjs +1473 -52
- package/data/dist/index.cjs.map +1 -1
- package/data/dist/index.d.cts +315 -16
- package/data/dist/index.js +10 -267
- package/data/dist/index.js.map +1 -1
- package/data/package.json +5 -5
- package/data/src/join.ts +3 -3
- package/dist/chunk-5VJ77LZE.js +176 -0
- package/dist/chunk-5VJ77LZE.js.map +1 -0
- package/dist/chunk-CK7GNCU5.js +309 -0
- package/dist/chunk-CK7GNCU5.js.map +1 -0
- package/dist/chunk-KW7RA7IM.js +67 -0
- package/dist/chunk-KW7RA7IM.js.map +1 -0
- package/dist/chunk-LFXB7Y6M.js +68 -0
- package/dist/chunk-LFXB7Y6M.js.map +1 -0
- package/dist/chunk-NYCVSXQB.js +181 -0
- package/dist/chunk-NYCVSXQB.js.map +1 -0
- package/dist/chunk-TE3ZSTQ6.js +2516 -0
- package/dist/chunk-TE3ZSTQ6.js.map +1 -0
- package/dist/index.cjs +2244 -55
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +268 -21
- package/dist/index.js +1 -152
- package/dist/index.js.map +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/internal/dist/index.cjs +208 -79
- package/internal/dist/index.cjs.map +1 -1
- package/internal/dist/index.d.cts +226 -27
- package/internal/dist/index.js +1 -2240
- package/internal/dist/index.js.map +1 -1
- package/internal/package.json +5 -5
- package/introspection/dist/index.cjs +1618 -46
- package/introspection/dist/index.cjs.map +1 -1
- package/introspection/dist/index.d.cts +374 -4
- package/introspection/dist/index.js +2 -316
- package/introspection/dist/index.js.map +1 -1
- package/introspection/package.json +5 -5
- package/json/dist/index.cjs +1560 -8
- package/json/dist/index.cjs.map +1 -1
- package/json/dist/index.d.cts +371 -7
- package/json/dist/index.js +1 -76
- package/json/dist/index.js.map +1 -1
- package/json/package.json +5 -5
- package/package.json +5 -4
- package/react/dist/index.cjs +1604 -14
- package/react/dist/index.cjs.map +1 -1
- package/react/dist/index.d.cts +375 -4
- package/react/dist/index.js +2 -68
- package/react/dist/index.js.map +1 -1
- package/react/package.json +5 -5
- package/react-devtools/dist/index.cjs +2268 -198
- package/react-devtools/dist/index.cjs.map +1 -1
- package/react-devtools/dist/index.css +2 -2
- package/react-devtools/dist/index.d.cts +148 -24
- package/react-devtools/dist/index.js +57 -297
- package/react-devtools/dist/index.js.map +1 -1
- package/react-devtools/package.json +5 -5
- package/realtime-client/dist/index.cjs +1585 -35
- package/realtime-client/dist/index.cjs.map +1 -1
- package/realtime-client/dist/index.d.cts +382 -12
- package/realtime-client/dist/index.js +2 -165
- package/realtime-client/dist/index.js.map +1 -1
- package/realtime-client/package.json +5 -5
- package/realtime-react/dist/index.cjs +1782 -35
- package/realtime-react/dist/index.cjs.map +1 -1
- package/realtime-react/dist/index.d.cts +49 -9
- package/realtime-react/dist/index.js +4 -66
- package/realtime-react/dist/index.js.map +1 -1
- package/realtime-react/package.json +5 -5
- package/realtime-server/dist/index.cjs +1604 -58
- package/realtime-server/dist/index.cjs.map +1 -1
- package/realtime-server/dist/index.d.cts +391 -11
- package/realtime-server/dist/index.js +27 -21
- package/realtime-server/dist/index.js.map +1 -1
- package/realtime-server/package.json +6 -6
- package/realtime-testing/dist/index.cjs +2352 -16
- package/realtime-testing/dist/index.cjs.map +1 -1
- package/realtime-testing/dist/index.d.cts +486 -3
- package/realtime-testing/dist/index.js +10 -31
- package/realtime-testing/dist/index.js.map +1 -1
- package/realtime-testing/package.json +5 -5
- package/transceivers/set-rtx/dist/index.cjs +31 -10
- package/transceivers/set-rtx/dist/index.cjs.map +1 -1
- package/transceivers/set-rtx/dist/index.d.cts +29 -3
- package/transceivers/set-rtx/dist/index.js +2 -3
- package/transceivers/set-rtx/dist/index.js.map +1 -1
- package/transceivers/set-rtx/package.json +6 -6
- package/data/dist/index.d.ts +0 -158
- package/data/dist/metafile-cjs.json +0 -1
- package/data/dist/metafile-esm.json +0 -1
- package/dist/index.d.ts +0 -243
- package/dist/metafile-esm.json +0 -1
- package/internal/dist/index.d.ts +0 -421
- package/internal/dist/metafile-cjs.json +0 -1
- package/internal/dist/metafile-esm.json +0 -1
- package/introspection/dist/index.d.ts +0 -24
- package/introspection/dist/metafile-cjs.json +0 -1
- package/introspection/dist/metafile-esm.json +0 -1
- package/json/dist/index.d.ts +0 -51
- package/json/dist/metafile-cjs.json +0 -1
- package/json/dist/metafile-esm.json +0 -1
- package/react/dist/index.d.ts +0 -23
- package/react/dist/metafile-cjs.json +0 -1
- package/react/dist/metafile-esm.json +0 -1
- package/react-devtools/dist/index.d.ts +0 -341
- package/react-devtools/dist/metafile-cjs.json +0 -1
- package/react-devtools/dist/metafile-esm.json +0 -1
- package/realtime-client/dist/index.d.ts +0 -22
- package/realtime-client/dist/metafile-cjs.json +0 -1
- package/realtime-client/dist/metafile-esm.json +0 -1
- package/realtime-react/dist/index.d.ts +0 -27
- package/realtime-react/dist/metafile-cjs.json +0 -1
- package/realtime-react/dist/metafile-esm.json +0 -1
- package/realtime-server/dist/index.d.ts +0 -25
- package/realtime-server/dist/metafile-cjs.json +0 -1
- package/realtime-server/dist/metafile-esm.json +0 -1
- package/realtime-testing/dist/index.d.ts +0 -49
- package/realtime-testing/dist/metafile-cjs.json +0 -1
- package/realtime-testing/dist/metafile-esm.json +0 -1
- package/transceivers/set-rtx/dist/index.d.ts +0 -40
- package/transceivers/set-rtx/dist/metafile-cjs.json +0 -1
- package/transceivers/set-rtx/dist/metafile-esm.json +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"inputs":{"src/future.ts":{"bytes":813,"imports":[],"format":"esm"},"src/lineage.ts":{"bytes":348,"imports":[],"format":"esm"},"src/caching.ts":{"bytes":1836,"imports":[{"path":"src/future.ts","kind":"import-statement","original":"./future"},{"path":"src/lineage.ts","kind":"import-statement","original":"./lineage"}],"format":"esm"},"src/read-or-compute-value.ts":{"bytes":877,"imports":[{"path":"src/caching.ts","kind":"import-statement","original":"./caching"}],"format":"esm"},"src/operation.ts":{"bytes":1941,"imports":[{"path":"src/lineage.ts","kind":"import-statement","original":"./lineage"}],"format":"esm"},"src/set-state/become.ts":{"bytes":303,"imports":[],"format":"esm"},"src/subject.ts":{"bytes":742,"imports":[],"format":"esm"},"src/set-state/copy-mutable-if-needed.ts":{"bytes":710,"imports":[{"path":"src/mutable/index.ts","kind":"import-statement","original":"../mutable"}],"format":"esm"},"src/set-state/copy-mutable-in-transaction.ts":{"bytes":1347,"imports":[{"path":"src/index.ts","kind":"import-statement","original":".."},{"path":"src/set-state/copy-mutable-if-needed.ts","kind":"import-statement","original":"./copy-mutable-if-needed"}],"format":"esm"},"src/set-state/emit-update.ts":{"bytes":523,"imports":[],"format":"esm"},"src/set-state/evict-downstream.ts":{"bytes":915,"imports":[{"path":"src/caching.ts","kind":"import-statement","original":"../caching"},{"path":"src/lineage.ts","kind":"import-statement","original":"../lineage"},{"path":"src/operation.ts","kind":"import-statement","original":"../operation"}],"format":"esm"},"src/set-state/stow-update.ts":{"bytes":1332,"imports":[{"path":"src/lineage.ts","kind":"import-statement","original":"../lineage"},{"path":"src/mutable/index.ts","kind":"import-statement","original":"../mutable"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/set-state/set-atom.ts":{"bytes":1341,"imports":[{"path":"src/atom/index.ts","kind":"import-statement","original":"../atom"},{"path":"src/caching.ts","kind":"import-statement","original":"../caching"},{"path":"src/lineage.ts","kind":"import-statement","original":"../lineage"},{"path":"src/operation.ts","kind":"import-statement","original":"../operation"},{"path":"src/read-or-compute-value.ts","kind":"import-statement","original":"../read-or-compute-value"},{"path":"src/set-state/become.ts","kind":"import-statement","original":"./become"},{"path":"src/set-state/copy-mutable-in-transaction.ts","kind":"import-statement","original":"./copy-mutable-in-transaction"},{"path":"src/set-state/emit-update.ts","kind":"import-statement","original":"./emit-update"},{"path":"src/set-state/evict-downstream.ts","kind":"import-statement","original":"./evict-downstream"},{"path":"src/set-state/stow-update.ts","kind":"import-statement","original":"./stow-update"}],"format":"esm"},"src/set-state/set-atom-or-selector.ts":{"bytes":386,"imports":[{"path":"src/set-state/set-atom.ts","kind":"import-statement","original":"./set-atom"}],"format":"esm"},"src/set-state/index.ts":{"bytes":64,"imports":[{"path":"src/set-state/become.ts","kind":"import-statement","original":"./become"},{"path":"src/set-state/set-atom-or-selector.ts","kind":"import-statement","original":"./set-atom-or-selector"}],"format":"esm"},"src/store/deposit.ts":{"bytes":1134,"imports":[],"format":"esm"},"../../rel8/junction/src/junction.ts":{"bytes":10655,"imports":[],"format":"esm"},"../../rel8/junction/src/index.ts":{"bytes":27,"imports":[{"path":"../../rel8/junction/src/junction.ts","kind":"import-statement","original":"./junction"}],"format":"esm"},"src/store/store.ts":{"bytes":4316,"imports":[{"path":"atom.io","kind":"import-statement","external":true},{"path":"../../rel8/junction/src/index.ts","kind":"import-statement","original":"~/packages/rel8/junction/src"},{"path":"src/subject.ts","kind":"import-statement","original":"../subject"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/store/withdraw.ts":{"bytes":3229,"imports":[{"path":"src/lineage.ts","kind":"import-statement","original":"../lineage"}],"format":"esm"},"src/store/withdraw-new-family-member.ts":{"bytes":1458,"imports":[{"path":"src/index.ts","kind":"import-statement","original":".."}],"format":"esm"},"src/store/index.ts":{"bytes":122,"imports":[{"path":"src/store/deposit.ts","kind":"import-statement","original":"./deposit"},{"path":"src/store/store.ts","kind":"import-statement","original":"./store"},{"path":"src/store/withdraw.ts","kind":"import-statement","original":"./withdraw"},{"path":"src/store/withdraw-new-family-member.ts","kind":"import-statement","original":"./withdraw-new-family-member"}],"format":"esm"},"src/keys.ts":{"bytes":963,"imports":[{"path":"src/lineage.ts","kind":"import-statement","original":"./lineage"}],"format":"esm"},"src/selector/get-selector-dependency-keys.ts":{"bytes":596,"imports":[{"path":"src/keys.ts","kind":"import-statement","original":"../keys"},{"path":"src/lineage.ts","kind":"import-statement","original":"../lineage"}],"format":"esm"},"src/selector/trace-selector-atoms.ts":{"bytes":1467,"imports":[{"path":"src/keys.ts","kind":"import-statement","original":"../keys"},{"path":"src/selector/get-selector-dependency-keys.ts","kind":"import-statement","original":"./get-selector-dependency-keys"}],"format":"esm"},"src/selector/update-selector-atoms.ts":{"bytes":986,"imports":[{"path":"src/lineage.ts","kind":"import-statement","original":"../lineage"},{"path":"src/selector/trace-selector-atoms.ts","kind":"import-statement","original":"./trace-selector-atoms"}],"format":"esm"},"src/selector/register-selector.ts":{"bytes":1712,"imports":[{"path":"src/lineage.ts","kind":"import-statement","original":"../lineage"},{"path":"src/read-or-compute-value.ts","kind":"import-statement","original":"../read-or-compute-value"},{"path":"src/set-state/index.ts","kind":"import-statement","original":"../set-state"},{"path":"src/store/index.ts","kind":"import-statement","original":"../store"},{"path":"src/selector/update-selector-atoms.ts","kind":"import-statement","original":"./update-selector-atoms"}],"format":"esm"},"src/selector/create-read-write-selector.ts":{"bytes":2001,"imports":[{"path":"src/caching.ts","kind":"import-statement","original":"../caching"},{"path":"src/lineage.ts","kind":"import-statement","original":"../lineage"},{"path":"src/operation.ts","kind":"import-statement","original":"../operation"},{"path":"src/set-state/become.ts","kind":"import-statement","original":"../set-state/become"},{"path":"src/subject.ts","kind":"import-statement","original":"../subject"},{"path":"src/selector/create-selector.ts","kind":"import-statement","original":"./create-selector"},{"path":"src/selector/register-selector.ts","kind":"import-statement","original":"./register-selector"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/selector/create-readonly-selector.ts":{"bytes":1463,"imports":[{"path":"src/caching.ts","kind":"import-statement","original":"../caching"},{"path":"src/lineage.ts","kind":"import-statement","original":"../lineage"},{"path":"src/subject.ts","kind":"import-statement","original":"../subject"},{"path":"src/selector/create-selector.ts","kind":"import-statement","original":"./create-selector"},{"path":"src/selector/register-selector.ts","kind":"import-statement","original":"./register-selector"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/selector/create-selector.ts":{"bytes":1896,"imports":[{"path":"src/lineage.ts","kind":"import-statement","original":"../lineage"},{"path":"src/selector/create-read-write-selector.ts","kind":"import-statement","original":"./create-read-write-selector"},{"path":"src/selector/create-readonly-selector.ts","kind":"import-statement","original":"./create-readonly-selector"}],"format":"esm"},"src/selector/delete-selector.ts":{"bytes":1082,"imports":[{"path":"src/index.ts","kind":"import-statement","original":".."}],"format":"esm"},"src/selector/index.ts":{"bytes":230,"imports":[{"path":"src/selector/create-selector.ts","kind":"import-statement","original":"./create-selector"},{"path":"src/selector/delete-selector.ts","kind":"import-statement","original":"./delete-selector"},{"path":"src/selector/get-selector-dependency-keys.ts","kind":"import-statement","original":"./get-selector-dependency-keys"},{"path":"src/selector/register-selector.ts","kind":"import-statement","original":"./register-selector"},{"path":"src/selector/trace-selector-atoms.ts","kind":"import-statement","original":"./trace-selector-atoms"},{"path":"src/selector/update-selector-atoms.ts","kind":"import-statement","original":"./update-selector-atoms"}],"format":"esm"},"src/subscribe/recall-state.ts":{"bytes":434,"imports":[{"path":"src/lineage.ts","kind":"import-statement","original":"../lineage"}],"format":"esm"},"src/subscribe/subscribe-to-root-atoms.ts":{"bytes":1511,"imports":[{"path":"src/read-or-compute-value.ts","kind":"import-statement","original":"../read-or-compute-value"},{"path":"src/selector/index.ts","kind":"import-statement","original":"../selector"},{"path":"src/subscribe/recall-state.ts","kind":"import-statement","original":"./recall-state"}],"format":"esm"},"src/subscribe/subscribe-to-state.ts":{"bytes":1329,"imports":[{"path":"atom.io/internal","kind":"import-statement","external":true}],"format":"esm"},"src/subscribe/subscribe-to-timeline.ts":{"bytes":814,"imports":[{"path":"atom.io/internal","kind":"import-statement","external":true}],"format":"esm"},"src/subscribe/subscribe-to-transaction.ts":{"bytes":846,"imports":[{"path":"atom.io/internal","kind":"import-statement","external":true}],"format":"esm"},"src/subscribe/index.ts":{"bytes":162,"imports":[{"path":"src/subscribe/subscribe-to-root-atoms.ts","kind":"import-statement","original":"./subscribe-to-root-atoms"},{"path":"src/subscribe/subscribe-to-state.ts","kind":"import-statement","original":"./subscribe-to-state"},{"path":"src/subscribe/subscribe-to-timeline.ts","kind":"import-statement","original":"./subscribe-to-timeline"},{"path":"src/subscribe/subscribe-to-transaction.ts","kind":"import-statement","original":"./subscribe-to-transaction"}],"format":"esm"},"src/mutable/tracker.ts":{"bytes":5117,"imports":[{"path":"atom.io","kind":"import-statement","external":true},{"path":"src/index.ts","kind":"import-statement","original":".."},{"path":"src/atom/index.ts","kind":"import-statement","original":"../atom"}],"format":"esm"},"src/mutable/create-mutable-atom.ts":{"bytes":1337,"imports":[{"path":"atom.io/json","kind":"import-statement","external":true},{"path":"src/atom/index.ts","kind":"import-statement","original":"../atom"},{"path":"src/lineage.ts","kind":"import-statement","original":"../lineage"},{"path":"src/subscribe/index.ts","kind":"import-statement","original":"../subscribe"},{"path":"src/mutable/tracker.ts","kind":"import-statement","original":"./tracker"}],"format":"esm"},"src/families/create-atom-family.ts":{"bytes":1653,"imports":[{"path":"atom.io/json","kind":"import-statement","external":true},{"path":"src/atom/index.ts","kind":"import-statement","original":"../atom"},{"path":"src/lineage.ts","kind":"import-statement","original":"../lineage"},{"path":"src/store/index.ts","kind":"import-statement","original":"../store"},{"path":"src/subject.ts","kind":"import-statement","original":"../subject"}],"format":"esm"},"src/families/create-readonly-selector-family.ts":{"bytes":1243,"imports":[{"path":"atom.io/json","kind":"import-statement","external":true},{"path":"src/lineage.ts","kind":"import-statement","original":"../lineage"},{"path":"src/selector/index.ts","kind":"import-statement","original":"../selector"},{"path":"src/store/index.ts","kind":"import-statement","original":"../store"},{"path":"src/subject.ts","kind":"import-statement","original":"../subject"}],"format":"esm"},"src/families/create-selector-family.ts":{"bytes":1938,"imports":[{"path":"atom.io/json","kind":"import-statement","external":true},{"path":"src/lineage.ts","kind":"import-statement","original":"../lineage"},{"path":"src/selector/index.ts","kind":"import-statement","original":"../selector"},{"path":"src/store/index.ts","kind":"import-statement","original":"../store"},{"path":"src/subject.ts","kind":"import-statement","original":"../subject"},{"path":"src/families/create-readonly-selector-family.ts","kind":"import-statement","original":"./create-readonly-selector-family"}],"format":"esm"},"src/families/index.ts":{"bytes":128,"imports":[{"path":"src/families/create-atom-family.ts","kind":"import-statement","original":"./create-atom-family"},{"path":"src/families/create-readonly-selector-family.ts","kind":"import-statement","original":"./create-readonly-selector-family"},{"path":"src/families/create-selector-family.ts","kind":"import-statement","original":"./create-selector-family"}],"format":"esm"},"src/mutable/tracker-family.ts":{"bytes":1644,"imports":[{"path":"atom.io/json","kind":"import-statement","external":true},{"path":"src/families/index.ts","kind":"import-statement","original":"../families"},{"path":"src/mutable/tracker.ts","kind":"import-statement","original":"./tracker"}],"format":"esm"},"src/mutable/create-mutable-atom-family.ts":{"bytes":852,"imports":[{"path":"atom.io/json","kind":"import-statement","external":true},{"path":"src/index.ts","kind":"import-statement","original":".."},{"path":"src/mutable/tracker-family.ts","kind":"import-statement","original":"./tracker-family"}],"format":"esm"},"src/mutable/get-json-family.ts":{"bytes":733,"imports":[{"path":"src/lineage.ts","kind":"import-statement","original":"../lineage"}],"format":"esm"},"src/mutable/get-json-token.ts":{"bytes":779,"imports":[],"format":"esm"},"src/mutable/get-update-token.ts":{"bytes":657,"imports":[],"format":"esm"},"src/mutable/is-atom-token-mutable.ts":{"bytes":203,"imports":[],"format":"esm"},"src/mutable/transceiver.ts":{"bytes":3768,"imports":[],"format":"esm"},"src/mutable/index.ts":{"bytes":516,"imports":[{"path":"src/mutable/create-mutable-atom.ts","kind":"import-statement","original":"./create-mutable-atom"},{"path":"src/mutable/create-mutable-atom-family.ts","kind":"import-statement","original":"./create-mutable-atom-family"},{"path":"src/mutable/get-json-family.ts","kind":"import-statement","original":"./get-json-family"},{"path":"src/mutable/get-json-token.ts","kind":"import-statement","original":"./get-json-token"},{"path":"src/mutable/get-update-token.ts","kind":"import-statement","original":"./get-update-token"},{"path":"src/mutable/is-atom-token-mutable.ts","kind":"import-statement","original":"./is-atom-token-mutable"},{"path":"src/mutable/tracker.ts","kind":"import-statement","original":"./tracker"},{"path":"src/mutable/tracker-family.ts","kind":"import-statement","original":"./tracker-family"},{"path":"src/mutable/transceiver.ts","kind":"import-statement","original":"./transceiver"}],"format":"esm"},"src/atom/is-default.ts":{"bytes":856,"imports":[{"path":"src/lineage.ts","kind":"import-statement","original":"../lineage"},{"path":"src/selector/index.ts","kind":"import-statement","original":"../selector"}],"format":"esm"},"src/atom/create-atom.ts":{"bytes":2579,"imports":[{"path":"atom.io","kind":"import-statement","external":true},{"path":"src/caching.ts","kind":"import-statement","original":"../caching"},{"path":"src/lineage.ts","kind":"import-statement","original":"../lineage"},{"path":"src/mutable/index.ts","kind":"import-statement","original":"../mutable"},{"path":"src/store/index.ts","kind":"import-statement","original":"../store"},{"path":"src/subject.ts","kind":"import-statement","original":"../subject"},{"path":"src/subscribe/index.ts","kind":"import-statement","original":"../subscribe"},{"path":"src/atom/is-default.ts","kind":"import-statement","original":"./is-default"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/atom/delete-atom.ts":{"bytes":966,"imports":[{"path":"src/index.ts","kind":"import-statement","original":".."}],"format":"esm"},"src/atom/index.ts":{"bytes":89,"imports":[{"path":"src/atom/create-atom.ts","kind":"import-statement","original":"./create-atom"},{"path":"src/atom/delete-atom.ts","kind":"import-statement","original":"./delete-atom"},{"path":"src/atom/is-default.ts","kind":"import-statement","original":"./is-default"}],"format":"esm"},"src/lazy-map.ts":{"bytes":761,"imports":[],"format":"esm"},"src/not-found-error.ts":{"bytes":637,"imports":[],"format":"esm"},"src/timeline/add-atom-to-timeline.ts":{"bytes":6674,"imports":[{"path":"src/lineage.ts","kind":"import-statement","original":"../lineage"},{"path":"src/store/index.ts","kind":"import-statement","original":"../store"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/timeline/create-timeline.ts":{"bytes":3151,"imports":[{"path":"src/lineage.ts","kind":"import-statement","original":"../lineage"},{"path":"src/subject.ts","kind":"import-statement","original":"../subject"},{"path":"src/timeline/add-atom-to-timeline.ts","kind":"import-statement","original":"./add-atom-to-timeline"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/timeline/time-travel.ts":{"bytes":2576,"imports":[{"path":"atom.io","kind":"import-statement","external":true}],"format":"esm"},"src/timeline/index.ts":{"bytes":103,"imports":[{"path":"src/timeline/add-atom-to-timeline.ts","kind":"import-statement","original":"./add-atom-to-timeline"},{"path":"src/timeline/create-timeline.ts","kind":"import-statement","original":"./create-timeline"},{"path":"src/timeline/time-travel.ts","kind":"import-statement","original":"./time-travel"}],"format":"esm"},"src/transaction/abort-transaction.ts":{"bytes":538,"imports":[{"path":"src/lineage.ts","kind":"import-statement","original":"../lineage"}],"format":"esm"},"src/transaction/apply-transaction.ts":{"bytes":2902,"imports":[{"path":"atom.io","kind":"import-statement","external":true},{"path":"src/lineage.ts","kind":"import-statement","original":"../lineage"},{"path":"src/store/index.ts","kind":"import-statement","original":"../store"}],"format":"esm"},"src/transaction/build-transaction.ts":{"bytes":1378,"imports":[{"path":"../../rel8/junction/src/index.ts","kind":"import-statement","original":"~/packages/rel8/junction/src"},{"path":"src/lazy-map.ts","kind":"import-statement","original":"../lazy-map"},{"path":"src/lineage.ts","kind":"import-statement","original":"../lineage"}],"format":"esm"},"src/transaction/create-transaction.ts":{"bytes":1704,"imports":[{"path":"atom.io","kind":"import-statement","external":true},{"path":"src/lineage.ts","kind":"import-statement","original":"../lineage"},{"path":"src/store/index.ts","kind":"import-statement","original":"../store"},{"path":"src/subject.ts","kind":"import-statement","original":"../subject"},{"path":"src/transaction/abort-transaction.ts","kind":"import-statement","original":"./abort-transaction"},{"path":"src/transaction/apply-transaction.ts","kind":"import-statement","original":"./apply-transaction"},{"path":"src/transaction/build-transaction.ts","kind":"import-statement","original":"./build-transaction"}],"format":"esm"},"src/transaction/redo-transaction.ts":{"bytes":877,"imports":[{"path":"atom.io","kind":"import-statement","external":true},{"path":"src/store/index.ts","kind":"import-statement","original":"../store"}],"format":"esm"},"src/transaction/undo-transaction.ts":{"bytes":887,"imports":[{"path":"atom.io","kind":"import-statement","external":true},{"path":"src/store/index.ts","kind":"import-statement","original":"../store"}],"format":"esm"},"src/transaction/index.ts":{"bytes":542,"imports":[{"path":"src/transaction/abort-transaction.ts","kind":"import-statement","original":"./abort-transaction"},{"path":"src/transaction/apply-transaction.ts","kind":"import-statement","original":"./apply-transaction"},{"path":"src/transaction/build-transaction.ts","kind":"import-statement","original":"./build-transaction"},{"path":"src/transaction/create-transaction.ts","kind":"import-statement","original":"./create-transaction"},{"path":"src/transaction/redo-transaction.ts","kind":"import-statement","original":"./redo-transaction"},{"path":"src/transaction/undo-transaction.ts","kind":"import-statement","original":"./undo-transaction"}],"format":"esm"},"src/index.ts":{"bytes":495,"imports":[{"path":"src/atom/index.ts","kind":"import-statement","original":"./atom"},{"path":"src/caching.ts","kind":"import-statement","original":"./caching"},{"path":"src/lineage.ts","kind":"import-statement","original":"./lineage"},{"path":"src/families/index.ts","kind":"import-statement","original":"./families"},{"path":"src/future.ts","kind":"import-statement","original":"./future"},{"path":"src/keys.ts","kind":"import-statement","original":"./keys"},{"path":"src/lazy-map.ts","kind":"import-statement","original":"./lazy-map"},{"path":"src/mutable/index.ts","kind":"import-statement","original":"./mutable"},{"path":"src/not-found-error.ts","kind":"import-statement","original":"./not-found-error"},{"path":"src/operation.ts","kind":"import-statement","original":"./operation"},{"path":"src/read-or-compute-value.ts","kind":"import-statement","original":"./read-or-compute-value"},{"path":"src/selector/index.ts","kind":"import-statement","original":"./selector"},{"path":"src/set-state/index.ts","kind":"import-statement","original":"./set-state"},{"path":"src/store/index.ts","kind":"import-statement","original":"./store"},{"path":"src/subject.ts","kind":"import-statement","original":"./subject"},{"path":"src/subscribe/index.ts","kind":"import-statement","original":"./subscribe"},{"path":"src/timeline/index.ts","kind":"import-statement","original":"./timeline"},{"path":"src/transaction/index.ts","kind":"import-statement","original":"./transaction"}],"format":"esm"}},"outputs":{"dist/index.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":159869},"dist/index.js":{"imports":[{"path":"atom.io","kind":"import-statement","external":true},{"path":"atom.io/json","kind":"import-statement","external":true},{"path":"atom.io","kind":"import-statement","external":true},{"path":"atom.io/internal","kind":"import-statement","external":true},{"path":"atom.io/internal","kind":"import-statement","external":true},{"path":"atom.io/internal","kind":"import-statement","external":true},{"path":"atom.io","kind":"import-statement","external":true},{"path":"atom.io/json","kind":"import-statement","external":true},{"path":"atom.io/json","kind":"import-statement","external":true},{"path":"atom.io/json","kind":"import-statement","external":true},{"path":"atom.io/json","kind":"import-statement","external":true},{"path":"atom.io/json","kind":"import-statement","external":true},{"path":"atom.io","kind":"import-statement","external":true},{"path":"atom.io","kind":"import-statement","external":true},{"path":"atom.io","kind":"import-statement","external":true},{"path":"atom.io","kind":"import-statement","external":true},{"path":"atom.io","kind":"import-statement","external":true}],"exports":["FamilyTracker","Future","IMPLICIT","LazyMap","NotFoundError","StatefulSubject","Store","Subject","TRANSACTION_PHASES","Tracker","abortTransaction","addAtomToTimeline","applyTransaction","become","buildTransaction","cacheValue","clearStore","closeOperation","createAtom","createAtomFamily","createMutableAtom","createMutableAtomFamily","createReadonlySelectorFamily","createSelector","createSelectorFamily","createTimeline","createTransaction","deleteAtom","deleteSelector","deposit","eldest","evictCachedValue","getJsonFamily","getJsonToken","getSelectorDependencyKeys","getUpdateToken","isAtomDefault","isAtomKey","isAtomMutable","isAtomTokenMutable","isDone","isReadonlySelectorKey","isSelectorDefault","isSelectorKey","isStateKey","isTransceiver","isValueCached","markAtomAsDefault","markAtomAsNotDefault","markDone","newest","openOperation","readCachedValue","readOrComputeValue","redoTransactionUpdate","registerSelector","setAtomOrSelector","subscribeToRootAtoms","subscribeToState","subscribeToTimeline","subscribeToTransaction","timeTravel","traceAllSelectorAtoms","traceSelectorAtoms","undoTransactionUpdate","updateSelectorAtoms","withdraw","withdrawNewFamilyMember"],"entryPoint":"src/index.ts","inputs":{"src/atom/create-atom.ts":{"bytesInOutput":1924},"src/future.ts":{"bytesInOutput":488},"src/lineage.ts":{"bytesInOutput":212},"src/caching.ts":{"bytesInOutput":1276},"src/mutable/create-mutable-atom.ts":{"bytesInOutput":806},"src/read-or-compute-value.ts":{"bytesInOutput":658},"src/operation.ts":{"bytesInOutput":1666},"src/set-state/become.ts":{"bytesInOutput":211},"src/subject.ts":{"bytesInOutput":614},"src/set-state/index.ts":{"bytesInOutput":0},"src/set-state/copy-mutable-if-needed.ts":{"bytesInOutput":517},"src/set-state/copy-mutable-in-transaction.ts":{"bytesInOutput":946},"src/set-state/emit-update.ts":{"bytesInOutput":270},"src/set-state/evict-downstream.ts":{"bytesInOutput":772},"src/set-state/stow-update.ts":{"bytesInOutput":965},"src/set-state/set-atom.ts":{"bytesInOutput":739},"src/set-state/set-atom-or-selector.ts":{"bytesInOutput":160},"src/store/deposit.ts":{"bytesInOutput":172},"src/store/index.ts":{"bytesInOutput":0},"src/store/store.ts":{"bytesInOutput":3189},"../../rel8/junction/src/junction.ts":{"bytesInOutput":7828},"../../rel8/junction/src/index.ts":{"bytesInOutput":0},"src/store/withdraw.ts":{"bytesInOutput":416},"src/store/withdraw-new-family-member.ts":{"bytesInOutput":509},"src/keys.ts":{"bytesInOutput":340},"src/selector/get-selector-dependency-keys.ts":{"bytesInOutput":292},"src/selector/trace-selector-atoms.ts":{"bytesInOutput":1115},"src/selector/update-selector-atoms.ts":{"bytesInOutput":764},"src/selector/register-selector.ts":{"bytesInOutput":1447},"src/selector/create-read-write-selector.ts":{"bytesInOutput":1397},"src/selector/create-readonly-selector.ts":{"bytesInOutput":957},"src/selector/create-selector.ts":{"bytesInOutput":673},"src/selector/index.ts":{"bytesInOutput":0},"src/selector/delete-selector.ts":{"bytesInOutput":959},"src/subscribe/recall-state.ts":{"bytesInOutput":199},"src/subscribe/subscribe-to-root-atoms.ts":{"bytesInOutput":1115},"src/subscribe/index.ts":{"bytesInOutput":0},"src/subscribe/subscribe-to-state.ts":{"bytesInOutput":1146},"src/subscribe/subscribe-to-timeline.ts":{"bytesInOutput":654},"src/subscribe/subscribe-to-transaction.ts":{"bytesInOutput":675},"src/mutable/tracker.ts":{"bytesInOutput":4324},"src/mutable/index.ts":{"bytesInOutput":51},"src/mutable/create-mutable-atom-family.ts":{"bytesInOutput":295},"src/mutable/tracker-family.ts":{"bytesInOutput":994},"src/families/create-atom-family.ts":{"bytesInOutput":1057},"src/families/index.ts":{"bytesInOutput":0},"src/families/create-readonly-selector-family.ts":{"bytesInOutput":747},"src/families/create-selector-family.ts":{"bytesInOutput":1006},"src/mutable/get-json-family.ts":{"bytesInOutput":210},"src/mutable/get-json-token.ts":{"bytesInOutput":424},"src/mutable/get-update-token.ts":{"bytesInOutput":319},"src/mutable/is-atom-token-mutable.ts":{"bytesInOutput":81},"src/mutable/transceiver.ts":{"bytesInOutput":148},"src/atom/is-default.ts":{"bytesInOutput":622},"src/atom/index.ts":{"bytesInOutput":0},"src/atom/delete-atom.ts":{"bytesInOutput":960},"src/index.ts":{"bytesInOutput":0},"src/lazy-map.ts":{"bytesInOutput":702},"src/not-found-error.ts":{"bytesInOutput":411},"src/timeline/add-atom-to-timeline.ts":{"bytesInOutput":7521},"src/timeline/index.ts":{"bytesInOutput":0},"src/timeline/create-timeline.ts":{"bytesInOutput":2238},"src/timeline/time-travel.ts":{"bytesInOutput":2489},"src/transaction/abort-transaction.ts":{"bytesInOutput":487},"src/transaction/index.ts":{"bytesInOutput":59},"src/transaction/apply-transaction.ts":{"bytesInOutput":2904},"src/transaction/build-transaction.ts":{"bytesInOutput":1272},"src/transaction/create-transaction.ts":{"bytesInOutput":1113},"src/transaction/redo-transaction.ts":{"bytesInOutput":718},"src/transaction/undo-transaction.ts":{"bytesInOutput":728}},"bytes":72368}}}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { AtomToken, ReadonlySelectorToken, SelectorToken, TransactionToken, ƒn, ReadonlySelectorFamily, TransactionUpdate, TimelineToken } from 'atom.io';
|
|
2
|
-
import * as Internal from 'atom.io/internal';
|
|
3
|
-
import { Timeline } from 'atom.io/internal';
|
|
4
|
-
|
|
5
|
-
type AtomTokenIndex = StateTokenIndex<AtomToken<unknown>>;
|
|
6
|
-
|
|
7
|
-
type SelectorTokenIndex = StateTokenIndex<ReadonlySelectorToken<unknown> | SelectorToken<unknown>>;
|
|
8
|
-
|
|
9
|
-
declare const attachIntrospectionStates: (store?: Internal.Store) => {
|
|
10
|
-
atomIndex: ReadonlySelectorToken<AtomTokenIndex>;
|
|
11
|
-
selectorIndex: ReadonlySelectorToken<SelectorTokenIndex>;
|
|
12
|
-
transactionIndex: ReadonlySelectorToken<TransactionToken<ƒn>[]>;
|
|
13
|
-
findTransactionLogState: ReadonlySelectorFamily<TransactionUpdate<ƒn>[]>;
|
|
14
|
-
timelineIndex: ReadonlySelectorToken<TimelineToken[]>;
|
|
15
|
-
findTimelineState: ReadonlySelectorFamily<Timeline>;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
type FamilyNode<Token extends AtomToken<unknown> | ReadonlySelectorToken<unknown> | SelectorToken<unknown>> = {
|
|
19
|
-
key: string;
|
|
20
|
-
familyMembers: Record<string, Token>;
|
|
21
|
-
};
|
|
22
|
-
type StateTokenIndex<Token extends AtomToken<unknown> | ReadonlySelectorToken<unknown> | SelectorToken<unknown>> = Record<string, FamilyNode<Token> | Token>;
|
|
23
|
-
|
|
24
|
-
export { type FamilyNode, type StateTokenIndex, attachIntrospectionStates };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"inputs":{"src/attach-atom-index.ts":{"bytes":2213,"imports":[{"path":"atom.io/internal","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/attach-selector-index.ts":{"bytes":2622,"imports":[{"path":"atom.io/internal","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/attach-timeline-family.ts":{"bytes":1489,"imports":[{"path":"atom.io/internal","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/attach-timeline-index.ts":{"bytes":1013,"imports":[{"path":"atom.io/internal","kind":"import-statement","external":true}],"format":"esm"},"src/attach-transaction-index.ts":{"bytes":1086,"imports":[{"path":"atom.io/internal","kind":"import-statement","external":true}],"format":"esm"},"src/attach-transaction-logs.ts":{"bytes":1110,"imports":[{"path":"atom.io/internal","kind":"import-statement","external":true}],"format":"esm"},"src/attach-introspection-states.ts":{"bytes":1462,"imports":[{"path":"atom.io/internal","kind":"import-statement","external":true},{"path":"src/attach-atom-index.ts","kind":"import-statement","original":"./attach-atom-index"},{"path":"src/attach-selector-index.ts","kind":"import-statement","original":"./attach-selector-index"},{"path":"src/attach-timeline-family.ts","kind":"import-statement","original":"./attach-timeline-family"},{"path":"src/attach-timeline-index.ts","kind":"import-statement","original":"./attach-timeline-index"},{"path":"src/attach-transaction-index.ts","kind":"import-statement","original":"./attach-transaction-index"},{"path":"src/attach-transaction-logs.ts","kind":"import-statement","original":"./attach-transaction-logs"}],"format":"esm"},"src/index.ts":{"bytes":488,"imports":[{"path":"src/attach-introspection-states.ts","kind":"import-statement","original":"./attach-introspection-states"}],"format":"esm"}},"outputs":{"dist/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":20231},"dist/index.cjs":{"imports":[{"path":"atom.io/internal","kind":"import-statement","external":true},{"path":"atom.io/internal","kind":"import-statement","external":true},{"path":"atom.io/internal","kind":"import-statement","external":true},{"path":"atom.io/internal","kind":"import-statement","external":true},{"path":"atom.io/internal","kind":"import-statement","external":true},{"path":"atom.io/internal","kind":"import-statement","external":true},{"path":"atom.io/internal","kind":"import-statement","external":true}],"exports":["attachIntrospectionStates"],"entryPoint":"src/index.ts","inputs":{"src/attach-introspection-states.ts":{"bytesInOutput":432},"src/attach-atom-index.ts":{"bytesInOutput":2373},"src/attach-selector-index.ts":{"bytesInOutput":2740},"src/attach-timeline-family.ts":{"bytesInOutput":1645},"src/attach-timeline-index.ts":{"bytesInOutput":961},"src/attach-transaction-index.ts":{"bytesInOutput":997},"src/attach-transaction-logs.ts":{"bytesInOutput":1011},"src/index.ts":{"bytesInOutput":0}},"bytes":11330}}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"inputs":{"src/attach-atom-index.ts":{"bytes":2213,"imports":[{"path":"atom.io/internal","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/attach-selector-index.ts":{"bytes":2622,"imports":[{"path":"atom.io/internal","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/attach-timeline-family.ts":{"bytes":1489,"imports":[{"path":"atom.io/internal","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/attach-timeline-index.ts":{"bytes":1013,"imports":[{"path":"atom.io/internal","kind":"import-statement","external":true}],"format":"esm"},"src/attach-transaction-index.ts":{"bytes":1086,"imports":[{"path":"atom.io/internal","kind":"import-statement","external":true}],"format":"esm"},"src/attach-transaction-logs.ts":{"bytes":1110,"imports":[{"path":"atom.io/internal","kind":"import-statement","external":true}],"format":"esm"},"src/attach-introspection-states.ts":{"bytes":1462,"imports":[{"path":"atom.io/internal","kind":"import-statement","external":true},{"path":"src/attach-atom-index.ts","kind":"import-statement","original":"./attach-atom-index"},{"path":"src/attach-selector-index.ts","kind":"import-statement","original":"./attach-selector-index"},{"path":"src/attach-timeline-family.ts","kind":"import-statement","original":"./attach-timeline-family"},{"path":"src/attach-timeline-index.ts","kind":"import-statement","original":"./attach-timeline-index"},{"path":"src/attach-transaction-index.ts","kind":"import-statement","original":"./attach-transaction-index"},{"path":"src/attach-transaction-logs.ts","kind":"import-statement","original":"./attach-transaction-logs"}],"format":"esm"},"src/index.ts":{"bytes":488,"imports":[{"path":"src/attach-introspection-states.ts","kind":"import-statement","original":"./attach-introspection-states"}],"format":"esm"}},"outputs":{"dist/index.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":20231},"dist/index.js":{"imports":[{"path":"atom.io/internal","kind":"import-statement","external":true},{"path":"atom.io/internal","kind":"import-statement","external":true},{"path":"atom.io/internal","kind":"import-statement","external":true},{"path":"atom.io/internal","kind":"import-statement","external":true},{"path":"atom.io/internal","kind":"import-statement","external":true},{"path":"atom.io/internal","kind":"import-statement","external":true},{"path":"atom.io/internal","kind":"import-statement","external":true}],"exports":["attachIntrospectionStates"],"entryPoint":"src/index.ts","inputs":{"src/attach-introspection-states.ts":{"bytesInOutput":432},"src/attach-atom-index.ts":{"bytesInOutput":2373},"src/attach-selector-index.ts":{"bytesInOutput":2740},"src/attach-timeline-family.ts":{"bytesInOutput":1645},"src/attach-timeline-index.ts":{"bytesInOutput":961},"src/attach-transaction-index.ts":{"bytesInOutput":997},"src/attach-transaction-logs.ts":{"bytesInOutput":1011},"src/index.ts":{"bytesInOutput":0}},"bytes":11330}}}
|
package/json/dist/index.d.ts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import * as AtomIO from 'atom.io';
|
|
2
|
-
import { Store } from 'atom.io/internal';
|
|
3
|
-
|
|
4
|
-
type JsonInterface<T, J extends Serializable = Serializable> = {
|
|
5
|
-
toJson: (t: T) => J;
|
|
6
|
-
fromJson: (json: J) => T;
|
|
7
|
-
};
|
|
8
|
-
declare const stringSetJsonInterface: JsonInterface<Set<string>, Array<string>>;
|
|
9
|
-
|
|
10
|
-
type primitive = boolean | number | string | null;
|
|
11
|
-
declare const isString: (input: unknown) => input is string;
|
|
12
|
-
declare const isNumber: (input: unknown) => input is number;
|
|
13
|
-
declare const isBoolean: (input: unknown) => input is boolean;
|
|
14
|
-
declare const isNull: (input: unknown) => input is null;
|
|
15
|
-
declare const isPrimitive: (input: unknown) => input is primitive;
|
|
16
|
-
|
|
17
|
-
type Serializable = primitive | Readonly<{
|
|
18
|
-
[key: string]: Serializable;
|
|
19
|
-
}> | ReadonlyArray<Serializable>;
|
|
20
|
-
type Object$1<Key extends string = string, Value extends Serializable = Serializable> = Record<Key, Value>;
|
|
21
|
-
type Array<Element extends Serializable = Serializable> = ReadonlyArray<Element>;
|
|
22
|
-
|
|
23
|
-
type json_Array<Element extends Serializable = Serializable> = Array<Element>;
|
|
24
|
-
type json_Serializable = Serializable;
|
|
25
|
-
declare namespace json {
|
|
26
|
-
export type { json_Array as Array, Object$1 as Object, json_Serializable as Serializable };
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
declare const parseJson: <S extends Stringified<Serializable>>(str: string | S) => S extends Stringified<infer J extends Serializable> ? J : Serializable;
|
|
30
|
-
type Stringified<J extends Serializable> = string & {
|
|
31
|
-
__json: J;
|
|
32
|
-
};
|
|
33
|
-
declare const stringifyJson: <J extends Serializable>(json: J) => Stringified<J>;
|
|
34
|
-
type Empty = Record<string, never>;
|
|
35
|
-
declare const JSON_TYPE_NAMES: readonly ["array", "boolean", "null", "number", "object", "string"];
|
|
36
|
-
type JsonTypeName = (typeof JSON_TYPE_NAMES)[number];
|
|
37
|
-
interface JsonTypes extends Record<JsonTypeName, Serializable> {
|
|
38
|
-
array: Array;
|
|
39
|
-
boolean: boolean;
|
|
40
|
-
null: null;
|
|
41
|
-
number: number;
|
|
42
|
-
object: Object$1;
|
|
43
|
-
string: string;
|
|
44
|
-
}
|
|
45
|
-
declare const JSON_DEFAULTS: JsonTypes;
|
|
46
|
-
|
|
47
|
-
declare const selectJson: <T, J extends Serializable>(atom: AtomIO.AtomToken<T>, transform: JsonInterface<T, J>, store?: Store) => AtomIO.SelectorToken<J>;
|
|
48
|
-
|
|
49
|
-
declare const selectJsonFamily: <T, J extends Serializable, K extends Serializable>(atomFamily: AtomIO.AtomFamily<T, K>, transform: JsonInterface<T, J>, store?: Store) => AtomIO.SelectorFamily<J, K>;
|
|
50
|
-
|
|
51
|
-
export { type Empty, JSON_DEFAULTS, JSON_TYPE_NAMES, json as Json, type JsonInterface, type JsonTypeName, type JsonTypes, type Stringified, isBoolean, isNull, isNumber, isPrimitive, isString, parseJson, type primitive, selectJson, selectJsonFamily, stringSetJsonInterface, stringifyJson };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"inputs":{"../../anvl/src/json/json-interface.ts":{"bytes":340,"imports":[],"format":"esm"},"../../anvl/src/json/index.ts":{"bytes":980,"imports":[{"path":"../../anvl/src/json/json-interface.ts","kind":"import-statement","original":"./json-interface"}],"format":"esm"},"../../anvl/src/primitive/index.ts":{"bytes":597,"imports":[],"format":"esm"},"src/select-json.ts":{"bytes":621,"imports":[{"path":"atom.io/internal","kind":"import-statement","external":true},{"path":"atom.io/internal","kind":"import-statement","external":true}],"format":"esm"},"src/select-json-family.ts":{"bytes":968,"imports":[{"path":"atom.io/internal","kind":"import-statement","external":true},{"path":"src/index.ts","kind":"import-statement","original":"."}],"format":"esm"},"src/index.ts":{"bytes":155,"imports":[{"path":"../../anvl/src/json/index.ts","kind":"import-statement","original":"~/packages/anvl/src/json"},{"path":"../../anvl/src/primitive/index.ts","kind":"import-statement","original":"~/packages/anvl/src/primitive"},{"path":"src/select-json.ts","kind":"import-statement","original":"./select-json"},{"path":"src/select-json-family.ts","kind":"import-statement","original":"./select-json-family"}],"format":"esm"}},"outputs":{"dist/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5634},"dist/index.cjs":{"imports":[{"path":"atom.io/internal","kind":"import-statement","external":true},{"path":"atom.io/internal","kind":"import-statement","external":true},{"path":"atom.io/internal","kind":"import-statement","external":true}],"exports":["JSON_DEFAULTS","JSON_TYPE_NAMES","isBoolean","isNull","isNumber","isPrimitive","isString","parseJson","selectJson","selectJsonFamily","stringSetJsonInterface","stringifyJson"],"entryPoint":"src/index.ts","inputs":{"../../anvl/src/json/json-interface.ts":{"bytesInOutput":118},"../../anvl/src/json/index.ts":{"bytesInOutput":300},"src/index.ts":{"bytesInOutput":0},"../../anvl/src/primitive/index.ts":{"bytesInOutput":373},"src/select-json.ts":{"bytesInOutput":386},"src/select-json-family.ts":{"bytesInOutput":658}},"bytes":2199}}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"inputs":{"../../anvl/src/json/json-interface.ts":{"bytes":340,"imports":[],"format":"esm"},"../../anvl/src/json/index.ts":{"bytes":980,"imports":[{"path":"../../anvl/src/json/json-interface.ts","kind":"import-statement","original":"./json-interface"}],"format":"esm"},"../../anvl/src/primitive/index.ts":{"bytes":597,"imports":[],"format":"esm"},"src/select-json.ts":{"bytes":621,"imports":[{"path":"atom.io/internal","kind":"import-statement","external":true},{"path":"atom.io/internal","kind":"import-statement","external":true}],"format":"esm"},"src/select-json-family.ts":{"bytes":968,"imports":[{"path":"atom.io/internal","kind":"import-statement","external":true},{"path":"src/index.ts","kind":"import-statement","original":"."}],"format":"esm"},"src/index.ts":{"bytes":155,"imports":[{"path":"../../anvl/src/json/index.ts","kind":"import-statement","original":"~/packages/anvl/src/json"},{"path":"../../anvl/src/primitive/index.ts","kind":"import-statement","original":"~/packages/anvl/src/primitive"},{"path":"src/select-json.ts","kind":"import-statement","original":"./select-json"},{"path":"src/select-json-family.ts","kind":"import-statement","original":"./select-json-family"}],"format":"esm"}},"outputs":{"dist/index.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":5634},"dist/index.js":{"imports":[{"path":"atom.io/internal","kind":"import-statement","external":true},{"path":"atom.io/internal","kind":"import-statement","external":true},{"path":"atom.io/internal","kind":"import-statement","external":true}],"exports":["JSON_DEFAULTS","JSON_TYPE_NAMES","isBoolean","isNull","isNumber","isPrimitive","isString","parseJson","selectJson","selectJsonFamily","stringSetJsonInterface","stringifyJson"],"entryPoint":"src/index.ts","inputs":{"../../anvl/src/json/json-interface.ts":{"bytesInOutput":118},"../../anvl/src/json/index.ts":{"bytesInOutput":300},"src/index.ts":{"bytesInOutput":0},"../../anvl/src/primitive/index.ts":{"bytesInOutput":373},"src/select-json.ts":{"bytesInOutput":386},"src/select-json-family.ts":{"bytesInOutput":658}},"bytes":2199}}}
|
package/react/dist/index.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Store } from 'atom.io/internal';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { StateToken, ReadonlySelectorToken, MutableAtomToken, TimelineToken } from 'atom.io';
|
|
4
|
-
import { Json } from 'atom.io/json';
|
|
5
|
-
|
|
6
|
-
declare const StoreContext: React.Context<Store>;
|
|
7
|
-
declare const StoreProvider: React.FC<{
|
|
8
|
-
children: React.ReactNode;
|
|
9
|
-
store?: Store;
|
|
10
|
-
}>;
|
|
11
|
-
|
|
12
|
-
declare function useI<T>(token: StateToken<T>): <New extends T>(next: New | ((old: T) => New)) => void;
|
|
13
|
-
declare function useO<T>(token: ReadonlySelectorToken<T> | StateToken<T>): T;
|
|
14
|
-
declare function useJSON<Serializable extends Json.Serializable>(token: MutableAtomToken<any, Serializable>): Serializable;
|
|
15
|
-
type TimelineMeta = {
|
|
16
|
-
at: number;
|
|
17
|
-
length: number;
|
|
18
|
-
undo: () => void;
|
|
19
|
-
redo: () => void;
|
|
20
|
-
};
|
|
21
|
-
declare function useTL(token: TimelineToken): TimelineMeta;
|
|
22
|
-
|
|
23
|
-
export { StoreContext, StoreProvider, type TimelineMeta, useI, useJSON, useO, useTL };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"inputs":{"src/store-context.tsx":{"bytes":399,"imports":[{"path":"atom.io/internal","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/store-hooks.ts":{"bytes":2285,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"atom.io","kind":"import-statement","external":true},{"path":"atom.io/internal","kind":"import-statement","external":true},{"path":"src/store-context.tsx","kind":"import-statement","original":"./store-context"}],"format":"esm"},"src/index.ts":{"bytes":62,"imports":[{"path":"src/store-context.tsx","kind":"import-statement","original":"./store-context"},{"path":"src/store-hooks.ts","kind":"import-statement","original":"./store-hooks"}],"format":"esm"}},"outputs":{"dist/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4490},"dist/index.cjs":{"imports":[{"path":"atom.io/internal","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"atom.io","kind":"import-statement","external":true},{"path":"atom.io/internal","kind":"import-statement","external":true}],"exports":["StoreContext","StoreProvider","useI","useJSON","useO","useTL"],"entryPoint":"src/index.ts","inputs":{"src/store-context.tsx":{"bytesInOutput":308},"src/index.ts":{"bytesInOutput":0},"src/store-hooks.ts":{"bytesInOutput":1717}},"bytes":2153}}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"inputs":{"src/store-context.tsx":{"bytes":399,"imports":[{"path":"atom.io/internal","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/store-hooks.ts":{"bytes":2285,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"atom.io","kind":"import-statement","external":true},{"path":"atom.io/internal","kind":"import-statement","external":true},{"path":"src/store-context.tsx","kind":"import-statement","original":"./store-context"}],"format":"esm"},"src/index.ts":{"bytes":62,"imports":[{"path":"src/store-context.tsx","kind":"import-statement","original":"./store-context"},{"path":"src/store-hooks.ts","kind":"import-statement","original":"./store-hooks"}],"format":"esm"}},"outputs":{"dist/index.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":4490},"dist/index.js":{"imports":[{"path":"atom.io/internal","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"atom.io","kind":"import-statement","external":true},{"path":"atom.io/internal","kind":"import-statement","external":true}],"exports":["StoreContext","StoreProvider","useI","useJSON","useO","useTL"],"entryPoint":"src/index.ts","inputs":{"src/store-context.tsx":{"bytesInOutput":308},"src/index.ts":{"bytesInOutput":0},"src/store-hooks.ts":{"bytesInOutput":1717}},"bytes":2153}}}
|
|
@@ -1,341 +0,0 @@
|
|
|
1
|
-
import * as atom_io from 'atom.io';
|
|
2
|
-
import { FamilyMetadata, ƒn, TransactionUpdate, MutableAtomToken, AtomToken, StateToken, TimelineUpdate, StateUpdate, AtomFamily, ReadonlySelectorFamily, SelectorFamily, ReadonlySelectorToken, SelectorToken, TransactionToken, TimelineToken, AtomIOLogger, Logger } from 'atom.io';
|
|
3
|
-
import { Json } from 'atom.io/json';
|
|
4
|
-
|
|
5
|
-
type ClassSignature = abstract new (...args: any) => any;
|
|
6
|
-
|
|
7
|
-
type RefinementStrategy = ClassSignature | Refinement$1<unknown, any>;
|
|
8
|
-
type Supported<Refine extends RefinementStrategy> = Refine extends Refinement$1<unknown, infer T> ? T : Refine extends ClassSignature ? InstanceType<Refine> : never;
|
|
9
|
-
type RefinementSupport = Record<string, RefinementStrategy>;
|
|
10
|
-
declare class Refinery<SupportedTypes extends RefinementSupport> {
|
|
11
|
-
supported: SupportedTypes;
|
|
12
|
-
constructor(supported: SupportedTypes);
|
|
13
|
-
refine(input: unknown): {
|
|
14
|
-
[K in keyof SupportedTypes]: {
|
|
15
|
-
type: K;
|
|
16
|
-
data: Supported<SupportedTypes[K]>;
|
|
17
|
-
};
|
|
18
|
-
}[keyof SupportedTypes] | null;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
interface Refinement$1<A, B extends A> {
|
|
22
|
-
(a: A): a is B;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
type PlainObject = Record<keyof any, unknown>;
|
|
26
|
-
|
|
27
|
-
declare class Subject<T> {
|
|
28
|
-
Subscriber: (value: T) => void;
|
|
29
|
-
subscribers: Map<string, this[`Subscriber`]>;
|
|
30
|
-
subscribe(key: string, subscriber: this[`Subscriber`]): () => void;
|
|
31
|
-
private unsubscribe;
|
|
32
|
-
next(value: T): void;
|
|
33
|
-
}
|
|
34
|
-
declare class StatefulSubject<T> extends Subject<T> {
|
|
35
|
-
state: T;
|
|
36
|
-
constructor(initialState: T);
|
|
37
|
-
next(value: T): void;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
type Selector<T> = {
|
|
41
|
-
key: string;
|
|
42
|
-
type: `selector`;
|
|
43
|
-
family?: FamilyMetadata;
|
|
44
|
-
install: (store: Store) => void;
|
|
45
|
-
subject: Subject<{
|
|
46
|
-
newValue: T;
|
|
47
|
-
oldValue: T;
|
|
48
|
-
}>;
|
|
49
|
-
get: () => T;
|
|
50
|
-
set: (newValue: T | ((oldValue: T) => T)) => void;
|
|
51
|
-
};
|
|
52
|
-
type ReadonlySelector<T> = {
|
|
53
|
-
key: string;
|
|
54
|
-
type: `readonly_selector`;
|
|
55
|
-
family?: FamilyMetadata;
|
|
56
|
-
install: (store: Store) => void;
|
|
57
|
-
subject: Subject<{
|
|
58
|
-
newValue: T;
|
|
59
|
-
oldValue: T;
|
|
60
|
-
}>;
|
|
61
|
-
get: () => T;
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
type Transaction<ƒ extends ƒn> = {
|
|
65
|
-
key: string;
|
|
66
|
-
type: `transaction`;
|
|
67
|
-
install: (store: Store) => void;
|
|
68
|
-
subject: Subject<TransactionUpdate<ƒ>>;
|
|
69
|
-
run: (...parameters: Parameters<ƒ>) => ReturnType<ƒ>;
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
type TransactionMeta<ƒ extends ƒn> = {
|
|
73
|
-
phase: `applying` | `building`;
|
|
74
|
-
time: number;
|
|
75
|
-
update: TransactionUpdate<ƒ>;
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
type primitive = boolean | number | string | null;
|
|
79
|
-
|
|
80
|
-
type Serializable = primitive | Readonly<{
|
|
81
|
-
[key: string]: Serializable;
|
|
82
|
-
}> | ReadonlyArray<Serializable>;
|
|
83
|
-
type Object$1<Key extends string = string, Value extends Serializable = Serializable> = Record<Key, Value>;
|
|
84
|
-
|
|
85
|
-
type Refinement<Unrefined, Refined extends Unrefined> = (value: Unrefined) => value is Refined;
|
|
86
|
-
type Cardinality = `1:1` | `1:n` | `n:n`;
|
|
87
|
-
|
|
88
|
-
interface JunctionEntries<Content extends Object$1 | null> extends Object$1 {
|
|
89
|
-
readonly relations: [string, string[]][];
|
|
90
|
-
readonly contents: [string, Content][];
|
|
91
|
-
}
|
|
92
|
-
interface JunctionSchema<ASide extends string, BSide extends string> extends Object$1 {
|
|
93
|
-
readonly between: [a: ASide, b: BSide];
|
|
94
|
-
readonly cardinality: Cardinality;
|
|
95
|
-
}
|
|
96
|
-
type BaseExternalStoreConfiguration = {
|
|
97
|
-
addRelation: (a: string, b: string) => void;
|
|
98
|
-
deleteRelation: (a: string, b: string) => void;
|
|
99
|
-
replaceRelationsSafely: (a: string, bs: string[]) => void;
|
|
100
|
-
replaceRelationsUnsafely: (a: string, bs: string[]) => void;
|
|
101
|
-
getRelatedKeys: (key: string) => Set<string> | undefined;
|
|
102
|
-
has: (a: string, b?: string) => boolean;
|
|
103
|
-
};
|
|
104
|
-
type ExternalStoreWithContentConfiguration<Content extends Object$1> = {
|
|
105
|
-
getContent: (contentKey: string) => Content | undefined;
|
|
106
|
-
setContent: (contentKey: string, content: Content) => void;
|
|
107
|
-
deleteContent: (contentKey: string) => void;
|
|
108
|
-
};
|
|
109
|
-
type Empty<Obj extends object> = {
|
|
110
|
-
[Key in keyof Obj]?: undefined;
|
|
111
|
-
};
|
|
112
|
-
type ExternalStoreConfiguration<Content extends Object$1 | null> = Content extends Object$1 ? BaseExternalStoreConfiguration & ExternalStoreWithContentConfiguration<Content> : BaseExternalStoreConfiguration & Empty<ExternalStoreWithContentConfiguration<Object$1>>;
|
|
113
|
-
type JunctionAdvancedConfiguration<Content extends Object$1 | null> = {
|
|
114
|
-
externalStore?: ExternalStoreConfiguration<Content>;
|
|
115
|
-
isContent?: Refinement<unknown, Content>;
|
|
116
|
-
makeContentKey?: (a: string, b: string) => string;
|
|
117
|
-
};
|
|
118
|
-
type JunctionJSON<ASide extends string, BSide extends string, Content extends Object$1 | null> = JunctionEntries<Content> & JunctionSchema<ASide, BSide>;
|
|
119
|
-
declare class Junction<const ASide extends string, const BSide extends string, const Content extends Object$1 | null = null> {
|
|
120
|
-
readonly a: ASide;
|
|
121
|
-
readonly b: BSide;
|
|
122
|
-
readonly cardinality: Cardinality;
|
|
123
|
-
readonly relations: Map<string, Set<string>>;
|
|
124
|
-
readonly contents: Map<string, Content>;
|
|
125
|
-
isContent: Refinement<unknown, Content> | null;
|
|
126
|
-
makeContentKey: (a: string, b: string) => string;
|
|
127
|
-
getRelatedKeys(key: string): Set<string> | undefined;
|
|
128
|
-
protected addRelation(a: string, b: string): void;
|
|
129
|
-
protected deleteRelation(a: string, b: string): void;
|
|
130
|
-
protected replaceRelationsUnsafely(a: string, bs: string[]): void;
|
|
131
|
-
protected replaceRelationsSafely(a: string, bs: string[]): void;
|
|
132
|
-
protected getContentInternal(contentKey: string): Content | undefined;
|
|
133
|
-
protected setContent(contentKey: string, content: Content): void;
|
|
134
|
-
protected deleteContent(contentKey: string): void;
|
|
135
|
-
constructor(data: JunctionSchema<ASide, BSide> & Partial<JunctionEntries<Content>>, config?: JunctionAdvancedConfiguration<Content>);
|
|
136
|
-
toJSON(): JunctionJSON<ASide, BSide, Content>;
|
|
137
|
-
set(a: string, ...rest: Content extends null ? [b: string] : [b: string, content: Content]): this;
|
|
138
|
-
set(relation: {
|
|
139
|
-
[Key in ASide | BSide]: string;
|
|
140
|
-
}, ...rest: Content extends null ? [] | [b?: undefined] : [content: Content]): this;
|
|
141
|
-
delete(a: string, b?: string): this;
|
|
142
|
-
delete(relation: Record<ASide | BSide, string> | Record<ASide, string> | Record<BSide, string>, b?: undefined): this;
|
|
143
|
-
getRelatedKey(key: string): string | undefined;
|
|
144
|
-
replaceRelations(a: string, relations: Content extends null ? string[] : Record<string, Content>, config?: {
|
|
145
|
-
reckless: boolean;
|
|
146
|
-
}): this;
|
|
147
|
-
getContent(a: string, b: string): Content | undefined;
|
|
148
|
-
getRelationEntries(input: Record<ASide, string> | Record<BSide, string>): [string, Content][];
|
|
149
|
-
has(a: string, b?: string): boolean;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
interface Lineage {
|
|
153
|
-
parent: typeof this | null;
|
|
154
|
-
child: typeof this | null;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
interface Transceiver<Signal extends Json.Serializable> {
|
|
158
|
-
do: (update: Signal) => void;
|
|
159
|
-
undo: (update: Signal) => void;
|
|
160
|
-
subscribe: (key: string, fn: (update: Signal) => void) => () => void;
|
|
161
|
-
cacheUpdateNumber: number;
|
|
162
|
-
getUpdateNumber: (update: Signal) => number;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* @internal Give the tracker a transceiver state and a store, and it will
|
|
167
|
-
* subscribe to the transceiver's inner value. When the inner value changes,
|
|
168
|
-
* the tracker will update its own state to reflect the change.
|
|
169
|
-
*/
|
|
170
|
-
declare class Tracker<Mutable extends Transceiver<any>> {
|
|
171
|
-
private Update;
|
|
172
|
-
private initializeState;
|
|
173
|
-
private unsubscribeFromInnerValue;
|
|
174
|
-
private observeCore;
|
|
175
|
-
private updateCore;
|
|
176
|
-
mutableState: MutableAtomToken<Mutable, Json.Serializable>;
|
|
177
|
-
latestUpdateState: AtomToken<typeof this.Update | null>;
|
|
178
|
-
constructor(mutableState: MutableAtomToken<Mutable, Json.Serializable>, store: Store);
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
interface MutableAtom<T> extends Atom<T> {
|
|
182
|
-
mutable: true;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
type OperationProgress = {
|
|
186
|
-
open: false;
|
|
187
|
-
} | {
|
|
188
|
-
open: true;
|
|
189
|
-
done: Set<string>;
|
|
190
|
-
prev: Map<string, any>;
|
|
191
|
-
time: number;
|
|
192
|
-
token: StateToken<any>;
|
|
193
|
-
};
|
|
194
|
-
|
|
195
|
-
type TimelineAtomUpdate = StateUpdate<unknown> & {
|
|
196
|
-
key: string;
|
|
197
|
-
type: `atom_update`;
|
|
198
|
-
timestamp: number;
|
|
199
|
-
family?: FamilyMetadata;
|
|
200
|
-
};
|
|
201
|
-
type TimelineSelectorUpdate = {
|
|
202
|
-
key: string;
|
|
203
|
-
type: `selector_update`;
|
|
204
|
-
timestamp: number;
|
|
205
|
-
atomUpdates: Omit<TimelineAtomUpdate, `timestamp`>[];
|
|
206
|
-
};
|
|
207
|
-
type TimelineTransactionUpdate = TransactionUpdate<ƒn> & {
|
|
208
|
-
key: string;
|
|
209
|
-
type: `transaction_update`;
|
|
210
|
-
timestamp: number;
|
|
211
|
-
};
|
|
212
|
-
type Timeline = {
|
|
213
|
-
type: `timeline`;
|
|
214
|
-
key: string;
|
|
215
|
-
at: number;
|
|
216
|
-
shouldCapture?: (update: TimelineUpdate, timeline: Timeline) => boolean;
|
|
217
|
-
timeTraveling: `into_future` | `into_past` | null;
|
|
218
|
-
history: TimelineUpdate[];
|
|
219
|
-
selectorTime: number | null;
|
|
220
|
-
transactionKey: string | null;
|
|
221
|
-
install: (store: Store) => void;
|
|
222
|
-
subject: Subject<TimelineAtomUpdate | TimelineSelectorUpdate | TimelineTransactionUpdate | `redo` | `undo`>;
|
|
223
|
-
};
|
|
224
|
-
|
|
225
|
-
declare class Store implements Lineage {
|
|
226
|
-
parent: Store | null;
|
|
227
|
-
child: Store | null;
|
|
228
|
-
valueMap: Map<string, any>;
|
|
229
|
-
atoms: Map<string, Atom<any> | MutableAtom<any>>;
|
|
230
|
-
selectors: Map<string, Selector<any>>;
|
|
231
|
-
readonlySelectors: Map<string, ReadonlySelector<any>>;
|
|
232
|
-
trackers: Map<string, Tracker<Transceiver<any>>>;
|
|
233
|
-
families: Map<string, AtomFamily<any, any> | ReadonlySelectorFamily<any, any> | SelectorFamily<any, any>>;
|
|
234
|
-
timelines: Map<string, Timeline>;
|
|
235
|
-
transactions: Map<string, Transaction<ƒn>>;
|
|
236
|
-
atomsThatAreDefault: Set<string>;
|
|
237
|
-
timelineAtoms: Junction<"timelineKey", "atomKey", null>;
|
|
238
|
-
selectorAtoms: Junction<"selectorKey", "atomKey", null>;
|
|
239
|
-
selectorGraph: Junction<"upstreamSelectorKey", "downstreamSelectorKey", {
|
|
240
|
-
source: string;
|
|
241
|
-
}>;
|
|
242
|
-
subject: {
|
|
243
|
-
atomCreation: Subject<AtomToken<unknown>>;
|
|
244
|
-
selectorCreation: Subject<ReadonlySelectorToken<unknown> | SelectorToken<unknown>>;
|
|
245
|
-
transactionCreation: Subject<TransactionToken<ƒn>>;
|
|
246
|
-
timelineCreation: Subject<TimelineToken>;
|
|
247
|
-
transactionApplying: StatefulSubject<TransactionMeta<ƒn> | null>;
|
|
248
|
-
operationStatus: Subject<OperationProgress>;
|
|
249
|
-
};
|
|
250
|
-
operation: OperationProgress;
|
|
251
|
-
transactionMeta: TransactionMeta<ƒn> | null;
|
|
252
|
-
config: {
|
|
253
|
-
name: string;
|
|
254
|
-
};
|
|
255
|
-
loggers: AtomIOLogger[];
|
|
256
|
-
logger: Logger;
|
|
257
|
-
constructor(name: string, store?: Store | null);
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
type Atom<T> = {
|
|
261
|
-
key: string;
|
|
262
|
-
type: `atom`;
|
|
263
|
-
family?: FamilyMetadata;
|
|
264
|
-
install: (store: Store) => void;
|
|
265
|
-
subject: Subject<{
|
|
266
|
-
newValue: T;
|
|
267
|
-
oldValue: T;
|
|
268
|
-
}>;
|
|
269
|
-
default: T | (() => T);
|
|
270
|
-
cleanup?: () => void;
|
|
271
|
-
};
|
|
272
|
-
|
|
273
|
-
type AtomTokenIndex = StateTokenIndex<AtomToken<unknown>>;
|
|
274
|
-
|
|
275
|
-
type FamilyNode<Token extends AtomToken<unknown> | ReadonlySelectorToken<unknown> | SelectorToken<unknown>> = {
|
|
276
|
-
key: string;
|
|
277
|
-
familyMembers: Record<string, Token>;
|
|
278
|
-
};
|
|
279
|
-
type StateTokenIndex<Token extends AtomToken<unknown> | ReadonlySelectorToken<unknown> | SelectorToken<unknown>> = Record<string, FamilyNode<Token> | Token>;
|
|
280
|
-
|
|
281
|
-
type SelectorTokenIndex = StateTokenIndex<ReadonlySelectorToken<unknown> | SelectorToken<unknown>>;
|
|
282
|
-
|
|
283
|
-
type Delta = {
|
|
284
|
-
summary: string;
|
|
285
|
-
added?: [path: string, addedStringifiedValue: string][];
|
|
286
|
-
removed?: [path: string, removedStringifiedValue: string][];
|
|
287
|
-
changed?: [path: string, delta: Delta][];
|
|
288
|
-
};
|
|
289
|
-
type Diff<T> = (a: T, b: T) => Delta;
|
|
290
|
-
type DiffTree<T> = (a: T, b: T, recurse: Differ<any, any>[`diff`]) => Delta;
|
|
291
|
-
declare class Differ<Leaf extends Record<string, any>, Tree extends Record<string, any>> {
|
|
292
|
-
leafRefinery: Refinery<Leaf>;
|
|
293
|
-
treeRefinery: Refinery<Tree>;
|
|
294
|
-
leafDiffers: {
|
|
295
|
-
[KL in keyof Leaf]: Diff<Supported<Leaf[KL]>>;
|
|
296
|
-
};
|
|
297
|
-
treeDiffers: {
|
|
298
|
-
[KT in keyof Tree]: DiffTree<Supported<Tree[KT]>>;
|
|
299
|
-
};
|
|
300
|
-
constructor(leafRefinery: Refinery<Leaf>, treeRefinery: Refinery<Tree>, diffFunctions: {
|
|
301
|
-
[KT in keyof Tree]: DiffTree<Supported<Tree[KT]>>;
|
|
302
|
-
} & {
|
|
303
|
-
[KL in keyof Leaf]: Diff<Supported<Leaf[KL]>>;
|
|
304
|
-
});
|
|
305
|
-
diff(a: unknown, b: unknown): Delta;
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
declare const AtomIODevtools: () => JSX.Element;
|
|
309
|
-
|
|
310
|
-
declare const atomIndex: atom_io.ReadonlySelectorToken<AtomTokenIndex>;
|
|
311
|
-
declare const selectorIndex: atom_io.ReadonlySelectorToken<SelectorTokenIndex>;
|
|
312
|
-
declare const transactionIndex: atom_io.ReadonlySelectorToken<atom_io.TransactionToken<atom_io.ƒn>[]>;
|
|
313
|
-
declare const findTransactionLogState: atom_io.ReadonlySelectorFamily<atom_io.TransactionUpdate<atom_io.ƒn>[]>;
|
|
314
|
-
declare const timelineIndex: atom_io.ReadonlySelectorToken<atom_io.TimelineToken[]>;
|
|
315
|
-
declare const findTimelineState: atom_io.ReadonlySelectorFamily<Timeline>;
|
|
316
|
-
declare const devtoolsAreOpenState: atom_io.AtomToken<boolean>;
|
|
317
|
-
type DevtoolsView = `atoms` | `selectors` | `timelines` | `transactions`;
|
|
318
|
-
declare const devtoolsViewSelectionState: atom_io.AtomToken<DevtoolsView>;
|
|
319
|
-
declare const devtoolsViewOptionsState: atom_io.AtomToken<DevtoolsView[]>;
|
|
320
|
-
declare const findViewIsOpenState: atom_io.AtomFamily<boolean, string>;
|
|
321
|
-
declare const primitiveRefinery: Refinery<{
|
|
322
|
-
number: (input: unknown) => input is number;
|
|
323
|
-
string: (input: unknown) => input is string;
|
|
324
|
-
boolean: (input: unknown) => input is boolean;
|
|
325
|
-
null: (input: unknown) => input is null;
|
|
326
|
-
}>;
|
|
327
|
-
declare const jsonTreeRefinery: Refinery<{
|
|
328
|
-
object: (input: unknown) => input is PlainObject;
|
|
329
|
-
array: (input: unknown) => input is unknown[];
|
|
330
|
-
}>;
|
|
331
|
-
declare const prettyJson: Differ<{
|
|
332
|
-
number: (input: unknown) => input is number;
|
|
333
|
-
string: (input: unknown) => input is string;
|
|
334
|
-
boolean: (input: unknown) => input is boolean;
|
|
335
|
-
null: (input: unknown) => input is null;
|
|
336
|
-
}, {
|
|
337
|
-
object: (input: unknown) => input is PlainObject;
|
|
338
|
-
array: (input: unknown) => input is unknown[];
|
|
339
|
-
}>;
|
|
340
|
-
|
|
341
|
-
export { AtomIODevtools, atomIndex, devtoolsAreOpenState, devtoolsViewOptionsState, devtoolsViewSelectionState, findTimelineState, findTransactionLogState, findViewIsOpenState, jsonTreeRefinery, prettyJson, primitiveRefinery, selectorIndex, timelineIndex, transactionIndex };
|